@ckeditor/ckeditor5-ai 47.3.0-alpha.6 → 47.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/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/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/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/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/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/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/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/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x34a73c=_0x5985;function _0x522e(){const _0x29f353=['element','unbind','open','add','_createActionsDropdownOrButton','ck-ai-chat__feed__ai-suggestion__actions\x20','change:isTrackChangesOn','listView','ck-ai-chat__feed__ai-suggestion__actions','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','isTrackChangesOn','createCollection','balloonPanelClass','uiLanguageDirection','has','actionName','fire','balloonPanelView','isVisible','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','items','detachFromDom','attachToDom','1186221qlRhXN','keys','focus','filter','ck-ai-button-primary','465285rFJGUu','_createActionsDropdown','tooltip','2556066PFuErz','set','_dropdownCurrentConfig','_dropdownOriginalConfig','slice','remove','listItemModels','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','_setUpList','content','arrowView','execute','hide','ck-ai-chat__feed__ai-suggestion__actions--no-animation','bottom','arrowless','_firstRender','bindTemplate','width','destroy','_partsCount','bind','6349365mjdjlE','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','length','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','showChangeInTextModel','div','ck-ai-chat__feed__ai-suggestion__actions__balloon','_updateDropdownActions','ltr','isEnabled','applySuggestionModel','children','22uaAjgb','source','keystrokeHandler','setTemplate','5802144XxeaRV','ck-hidden','label','pin','locale','listenTo','applySuggestion','insertSuggestionModel','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','button','actionsButton','11171160LlnphD','_createActionsButton','left','esc','1934811ETUBvn','16iScnyL','bodyCollection','showChangeInText','delegate','insertSuggestion','class','_setUpKeystrokes','updateLabels','map'];_0x522e=function(){return _0x29f353;};return _0x522e();}(function(_0x4ee92b,_0x3c29e0){const _0x11778e=_0x5985,_0x286ddf=_0x4ee92b();while(!![]){try{const _0x4bc33f=parseInt(_0x11778e(0x1e9))/0x1+parseInt(_0x11778e(0x1b5))/0x2*(-parseInt(_0x11778e(0x1ee))/0x3)+-parseInt(_0x11778e(0x1b9))/0x4+parseInt(_0x11778e(0x208))/0x5+-parseInt(_0x11778e(0x1f1))/0x6+parseInt(_0x11778e(0x1c4))/0x7+parseInt(_0x11778e(0x1c9))/0x8*(parseInt(_0x11778e(0x1c8))/0x9);if(_0x4bc33f===_0x3c29e0)break;else _0x286ddf['push'](_0x286ddf['shift']());}catch(_0x2e423c){_0x286ddf['push'](_0x286ddf['shift']());}}}(_0x522e,0xdb90c));import{KeystrokeHandler as _0x581c7a}from'ckeditor5/src/utils.js';function _0x5985(_0x14cc34,_0x39913c){const _0x522e51=_0x522e();return _0x5985=function(_0x598537,_0x2cd894){_0x598537=_0x598537-0x1b5;let _0x3587a2=_0x522e51[_0x598537];return _0x3587a2;},_0x5985(_0x14cc34,_0x39913c);}import{BalloonPanelView as _0x44658a,BodyCollection as _0x442151,ButtonView as _0x4649b3,clickOutsideHandler as _0x508463,ListItemButtonView as _0x563a16,ListItemView as _0x1b522a,ListView as _0x22d331,SplitButtonView as _0x4374b0,UIModel as _0x3dfc13,View as _0x648a54}from'ckeditor5/src/ui.js';import{IconCheck as _0x2a8198,IconAddComment as _0x44eb27,IconDocumentWithLoupe as _0x544b06}from'ckeditor5/src/icons.js';import{getTranslation as _0x58dbd5}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x34a73c(0x1bf),_0x34a73c(0x1cd),_0x34a73c(0x1cb)];export class AIChatFeedSuggestionItemActionsView extends _0x648a54{[_0x34a73c(0x1c3)];[_0x34a73c(0x213)];[_0x34a73c(0x212)];[_0x34a73c(0x20c)];[_0x34a73c(0x1c0)];[_0x34a73c(0x206)]=0x1;[_0x34a73c(0x1f4)];[_0x34a73c(0x1f3)];[_0x34a73c(0x202)]=!0x0;constructor(_0x4409e0,_0xe42d30){const _0xdec400=_0x34a73c;super(_0x4409e0),this[_0xdec400(0x1f4)]=_0xe42d30||[...AI_REPLY_ACTIONS],this[_0xdec400(0x1f3)]=[...this[_0xdec400(0x1f4)]];const _0x4eaf0f=this[_0xdec400(0x203)];this[_0xdec400(0x1f2)](_0xdec400(0x211),!0x0),this[_0xdec400(0x1f2)](_0xdec400(0x1e4),!0x0),this[_0xdec400(0x1f2)](_0xdec400(0x1dc),!0x1),this[_0xdec400(0x212)]=new _0x3dfc13({'label':Pn(_0xdec400(0x1bf),_0x4409e0,this[_0xdec400(0x206)]),'icon':_0x2a8198,'withText':!0x0,'type':_0xdec400(0x1c2),'actionName':_0xdec400(0x1bf)}),this[_0xdec400(0x20c)]=new _0x3dfc13({'label':Pn(_0xdec400(0x1cb),_0x4409e0,this[_0xdec400(0x206)]),'icon':_0x544b06,'withText':!0x0,'type':_0xdec400(0x1c2),'actionName':_0xdec400(0x1cb)}),this[_0xdec400(0x1c0)]=new _0x3dfc13({'label':Pn(_0xdec400(0x1cd),_0x4409e0,this[_0xdec400(0x206)]),'icon':_0x44eb27,'withText':!0x0,'type':_0xdec400(0x1c2),'actionName':_0xdec400(0x1cd)}),this[_0xdec400(0x1c3)]=this[_0xdec400(0x1d6)](_0x4409e0),this[_0xdec400(0x213)]=this[_0xdec400(0x1dd)](),this[_0xdec400(0x1c3)]&&this[_0xdec400(0x213)][_0xdec400(0x1d5)](this[_0xdec400(0x1c3)]),this[_0xdec400(0x1b8)]({'tag':_0xdec400(0x20d),'attributes':{'class':['ck',_0xdec400(0x1da),_0x4eaf0f['if'](_0xdec400(0x1e4),_0xdec400(0x1ba),_0x12f7e6=>!_0x12f7e6)]},'children':this[_0xdec400(0x213)]}),this['on'](_0xdec400(0x1d8),()=>{const _0x308062=_0xdec400;this[_0x308062(0x1f3)]=this[_0x308062(0x1dc)]?this[_0x308062(0x1f4)][_0x308062(0x1ec)](_0xe3f2f7=>_0x308062(0x1bf)!==_0xe3f2f7):[...this[_0x308062(0x1f4)]],this[_0x308062(0x20f)](_0x4409e0);});}[_0x34a73c(0x20f)](_0x1015f4){const _0x4eddd0=_0x34a73c;this[_0x4eddd0(0x1c3)]&&this[_0x4eddd0(0x213)][_0x4eddd0(0x1e0)](this[_0x4eddd0(0x1c3)])&&(this[_0x4eddd0(0x213)][_0x4eddd0(0x1f6)](this[_0x4eddd0(0x1c3)]),this[_0x4eddd0(0x1c3)][_0x4eddd0(0x205)]()),this[_0x4eddd0(0x1c3)]=this[_0x4eddd0(0x1d6)](_0x1015f4),this[_0x4eddd0(0x1c3)]&&this[_0x4eddd0(0x213)][_0x4eddd0(0x1d5)](this[_0x4eddd0(0x1c3)]);}[_0x34a73c(0x1d6)](_0x52b643){const _0x27de39=_0x34a73c;if(0x0==this[_0x27de39(0x1f3)][_0x27de39(0x20a)])return null;const _0x20d6b8=0x1===this[_0x27de39(0x1f3)][_0x27de39(0x20a)]?this[_0x27de39(0x1c5)](_0x52b643):this[_0x27de39(0x1ef)](_0x52b643),_0x2c0b54=this[_0x27de39(0x202)]?'':_0x27de39(0x1ff);_0x20d6b8[_0x27de39(0x1f2)]({'label':Pn(this[_0x27de39(0x1f3)][0x0],_0x52b643,this[_0x27de39(0x206)]),'tooltip':Hn(this[_0x27de39(0x1f3)][0x0],_0x52b643,this[_0x27de39(0x206)]),'withText':!0x0,'class':_0x27de39(0x1d7)+_0x2c0b54});for(const _0x16eeea of this[_0x27de39(0x1f3)])_0x20d6b8['on'](_0x16eeea,()=>{const _0x4a83b3=_0x27de39;this[_0x4a83b3(0x1e2)](_0x16eeea);});return this[_0x27de39(0x202)]=!0x1,_0x20d6b8;}[_0x34a73c(0x1c5)](_0x442499){const _0x59b57d=_0x34a73c,_0x50162e=new _0x4649b3(_0x442499);return _0x50162e[_0x59b57d(0x1f2)]({'class':_0x59b57d(0x1ed),'withText':!0x0}),_0x50162e['on'](_0x59b57d(0x1fd),()=>{const _0x428ecd=_0x59b57d;_0x50162e[_0x428ecd(0x1e2)](this[_0x428ecd(0x1f3)][0x0]);}),_0x50162e;}[_0x34a73c(0x1ef)](_0x2d836d){const _0x10bc1e=_0x34a73c,_0x3c6d54=new Nn(_0x2d836d,{'listItemModels':this[_0x10bc1e(0x1f3)][_0x10bc1e(0x1d1)](_0x57f428=>{const _0x53350c=_0x10bc1e;switch(_0x57f428){case _0x53350c(0x1bf):return this[_0x53350c(0x212)];case _0x53350c(0x1cb):return this[_0x53350c(0x20c)];case _0x53350c(0x1cd):return this[_0x53350c(0x1c0)];}})});return _0x3c6d54[_0x10bc1e(0x1f2)]({'label':Pn(this[_0x10bc1e(0x1f3)][0x0],_0x2d836d,this[_0x10bc1e(0x206)]),'tooltip':Hn(this[_0x10bc1e(0x1f3)][0x0],_0x2d836d,this[_0x10bc1e(0x206)]),'withText':!0x0,'class':_0x10bc1e(0x1da),'balloonPanelClass':_0x10bc1e(0x20e)}),_0x3c6d54[_0x10bc1e(0x207)](_0x10bc1e(0x211))['to'](this),_0x3c6d54;}[_0x34a73c(0x1d0)](_0x4ffc4b){const _0x4f38a8=_0x34a73c,_0x49553c=this[_0x4f38a8(0x1bd)];this[_0x4f38a8(0x206)]=_0x4ffc4b||this[_0x4f38a8(0x206)],this[_0x4f38a8(0x1c3)][_0x4f38a8(0x1f2)]({'label':Pn(this[_0x4f38a8(0x1f3)][0x0],_0x49553c,this[_0x4f38a8(0x206)]),'tooltip':Hn(this[_0x4f38a8(0x1f3)][0x0],_0x49553c,this[_0x4f38a8(0x206)])}),this[_0x4f38a8(0x212)][_0x4f38a8(0x1bb)]=Pn(_0x4f38a8(0x1bf),_0x49553c,this[_0x4f38a8(0x206)]),this[_0x4f38a8(0x20c)][_0x4f38a8(0x1bb)]=Pn(_0x4f38a8(0x1cb),_0x49553c,this[_0x4f38a8(0x206)]),this[_0x4f38a8(0x1c0)][_0x4f38a8(0x1bb)]=Pn(_0x4f38a8(0x1cd),_0x49553c,this[_0x4f38a8(0x206)]);}}class Nn extends _0x4374b0{[_0x34a73c(0x1ca)];[_0x34a73c(0x1e3)];[_0x34a73c(0x1d9)];[_0x34a73c(0x1b7)];constructor(_0x85e18c,_0x15f76b){const _0xb1b76a=_0x34a73c;super(_0x85e18c),this[_0xb1b76a(0x1e3)]=new _0x44658a(this[_0xb1b76a(0x1bd)]),this[_0xb1b76a(0x1ca)]=new _0x442151(this[_0xb1b76a(0x1bd)]),this[_0xb1b76a(0x1ca)][_0xb1b76a(0x1e8)](),this[_0xb1b76a(0x1f2)](_0xb1b76a(0x1de),''),this[_0xb1b76a(0x1e3)][_0xb1b76a(0x207)](_0xb1b76a(0x1ce))['to'](this,_0xb1b76a(0x1de)),this[_0xb1b76a(0x1d9)]=this[_0xb1b76a(0x1fa)](_0x15f76b[_0xb1b76a(0x1f7)][_0xb1b76a(0x1f5)](0x1)),this[_0xb1b76a(0x1ca)][_0xb1b76a(0x1d5)](this[_0xb1b76a(0x1e3)]),this[_0xb1b76a(0x1e3)][_0xb1b76a(0x1fb)][_0xb1b76a(0x1d5)](this[_0xb1b76a(0x1d9)]),this[_0xb1b76a(0x1fc)][_0xb1b76a(0x1d3)](_0xb1b76a(0x1f0)),this[_0xb1b76a(0x1fc)][_0xb1b76a(0x1f2)](_0xb1b76a(0x1f0),_0x58dbd5(this[_0xb1b76a(0x1bd)],_0xb1b76a(0x1e5))),this[_0xb1b76a(0x1cf)](),this['on'](_0xb1b76a(0x1fd),()=>{const _0x4fef36=_0xb1b76a,_0x1fb018=_0x15f76b[_0x4fef36(0x1f7)][0x0][_0x4fef36(0x1e1)];this[_0x4fef36(0x1e2)](_0x1fb018),this[_0x4fef36(0x1e3)][_0x4fef36(0x1fe)](),this[_0x4fef36(0x1fc)][_0x4fef36(0x1eb)]();}),this['on'](_0xb1b76a(0x1d4),()=>{const _0x2c645f=_0xb1b76a;this[_0x2c645f(0x1e3)][_0x2c645f(0x1e4)]?(this[_0x2c645f(0x1e3)][_0x2c645f(0x1fe)](),this[_0x2c645f(0x1fc)][_0x2c645f(0x1eb)]()):(this[_0x2c645f(0x1e3)][_0x2c645f(0x1bc)]({'target':this[_0x2c645f(0x1d2)],'positions':[_0x2c645f(0x210)===this[_0x2c645f(0x1bd)][_0x2c645f(0x1df)]?Gn:yn]}),this[_0x2c645f(0x1d9)][_0x2c645f(0x1eb)]());}),_0x508463({'emitter':this[_0xb1b76a(0x1e3)],'callback':()=>{const _0x35a6c4=_0xb1b76a;this[_0x35a6c4(0x1e3)][_0x35a6c4(0x1fe)]();},'activator':()=>this[_0xb1b76a(0x1e3)][_0xb1b76a(0x1e4)],'contextElements':()=>[this[_0xb1b76a(0x1d2)],this[_0xb1b76a(0x1e3)][_0xb1b76a(0x1d2)]]});}[_0x34a73c(0x1fa)](_0xa5ce41){const _0xf7bd0=_0x34a73c,_0x139706=this[_0xf7bd0(0x1bd)],_0x22a730=new _0x22d331(_0x139706);for(const _0x1d8177 of _0xa5ce41){const _0x26f7d5=new _0x1b522a(_0x139706),_0x5da962=new _0x563a16(_0x139706);_0x5da962[_0xf7bd0(0x207)](...Object[_0xf7bd0(0x1ea)](_0x1d8177))['to'](_0x1d8177),_0x5da962[_0xf7bd0(0x1cc)](_0xf7bd0(0x1fd))['to'](_0x22a730),_0x26f7d5[_0xf7bd0(0x213)][_0xf7bd0(0x1d5)](_0x5da962),_0x22a730[_0xf7bd0(0x1e6)][_0xf7bd0(0x1d5)](_0x26f7d5);}return _0x22a730[_0xf7bd0(0x1e6)][_0xf7bd0(0x1cc)](_0xf7bd0(0x1fd))['to'](this),_0x22a730['on'](_0xf7bd0(0x1fd),_0x49861d=>{const _0x38ba0b=_0xf7bd0,_0x95f125=_0x49861d[_0x38ba0b(0x1b6)];this[_0x38ba0b(0x1e2)](_0x95f125[_0x38ba0b(0x1e1)]),this[_0x38ba0b(0x1e3)][_0x38ba0b(0x1fe)](),this[_0x38ba0b(0x1fc)][_0x38ba0b(0x1eb)]();}),_0x22a730;}[_0x34a73c(0x1cf)](){const _0x480ed5=_0x34a73c;this[_0x480ed5(0x1b7)]=new _0x581c7a(),this[_0x480ed5(0x1b7)][_0x480ed5(0x1be)](this[_0x480ed5(0x1e3)][_0x480ed5(0x1d2)]),this[_0x480ed5(0x1b7)][_0x480ed5(0x1f2)](_0x480ed5(0x1c7),(_0xba49fe,_0x58ccc1)=>{const _0x1b3db4=_0x480ed5;this[_0x1b3db4(0x1e3)][_0x1b3db4(0x1fe)](),this[_0x1b3db4(0x1fc)][_0x1b3db4(0x1eb)](),_0x58ccc1();});}[_0x34a73c(0x205)](){const _0x50abfd=_0x34a73c;super[_0x50abfd(0x205)](),this[_0x50abfd(0x1b7)][_0x50abfd(0x205)](),this[_0x50abfd(0x1e3)][_0x50abfd(0x205)](),this[_0x50abfd(0x1ca)][_0x50abfd(0x1e7)]();}}function Gn(_0x455744){const _0x3cd13e=_0x34a73c;return{'top':_0x455744[_0x3cd13e(0x200)],'left':_0x455744[_0x3cd13e(0x1c6)],'name':_0x3cd13e(0x201),'config':{'withArrow':!0x1}};}function yn(_0x2e0c16,_0xe6412){const _0x24a90b=_0x34a73c;return{'top':_0x2e0c16[_0x24a90b(0x200)],'left':_0x2e0c16[_0x24a90b(0x1c6)]-(_0xe6412[_0x24a90b(0x204)]-_0x2e0c16[_0x24a90b(0x204)]),'name':_0x24a90b(0x201),'config':{'withArrow':!0x1}};}function Pn(_0x1b533c,_0x5713c0,_0x109e63){const _0x59d2a6=_0x34a73c;switch(_0x1b533c){case _0x59d2a6(0x1bf):return _0x58dbd5(_0x5713c0,_0x59d2a6(0x1f8),_0x109e63);case _0x59d2a6(0x1cb):return _0x58dbd5(_0x5713c0,_0x59d2a6(0x20b),_0x109e63);case _0x59d2a6(0x1cd):return _0x58dbd5(_0x5713c0,_0x59d2a6(0x1db),_0x109e63);}}function Hn(_0x18d9b2,_0x5173be,_0x344dc7){const _0x32171c=_0x34a73c;switch(_0x18d9b2){case _0x32171c(0x1bf):return _0x58dbd5(_0x5173be,_0x32171c(0x1f9),_0x344dc7);case _0x32171c(0x1cb):return _0x58dbd5(_0x5173be,_0x32171c(0x209),_0x344dc7);case _0x32171c(0x1cd):return _0x58dbd5(_0x5173be,_0x32171c(0x1c1),_0x344dc7);}}
|
|
23
|
+
const _0x5e2313=_0x3124;(function(_0x2dc477,_0x52ec4c){const _0x529d0d=_0x3124,_0x1d604b=_0x2dc477();while(!![]){try{const _0x2bf880=-parseInt(_0x529d0d(0x15d))/0x1+parseInt(_0x529d0d(0x12a))/0x2*(-parseInt(_0x529d0d(0x127))/0x3)+-parseInt(_0x529d0d(0x138))/0x4*(parseInt(_0x529d0d(0x126))/0x5)+-parseInt(_0x529d0d(0x11b))/0x6+-parseInt(_0x529d0d(0x15f))/0x7*(parseInt(_0x529d0d(0x13a))/0x8)+-parseInt(_0x529d0d(0x148))/0x9+-parseInt(_0x529d0d(0x14a))/0xa*(-parseInt(_0x529d0d(0x115))/0xb);if(_0x2bf880===_0x52ec4c)break;else _0x1d604b['push'](_0x1d604b['shift']());}catch(_0x2f7f15){_0x1d604b['push'](_0x1d604b['shift']());}}}(_0x2b8c,0xde206));import{KeystrokeHandler as _0xb72b4f}from'ckeditor5/src/utils.js';function _0x2b8c(){const _0x418a5a=['detachFromDom','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','_createActionsDropdownOrButton','balloonPanelView','add','esc','length','14617908KBSEJg','remove','12244310cGjPhG','isVisible','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','balloonPanelClass','tooltip','setTemplate','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','_updateDropdownActions','ck-ai-chat__feed__ai-suggestion__actions--no-animation','button','slice','_firstRender','children','insertSuggestion','uiLanguageDirection','listItemModels','set','arrowView','source','1618227kbBkRk','listenTo','7udBdvC','showChangeInTextModel','pin','bind','_createActionsButton','isEnabled','attachToDom','bindTemplate','_createActionsDropdown','label','left','unbind','width','keys','arrowless','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','_dropdownOriginalConfig','fire','_dropdownCurrentConfig','content','_setUpList','applySuggestion','actionName','77bcInJd','listView','createCollection','showChangeInText','div','bottom','6797622cCWakt','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','hide','bodyCollection','ck-ai-button-primary','_partsCount','ck-hidden','focus','change:isTrackChangesOn','map','35VrPYsc','21mpOWPG','open','execute','504534srnXvo','actionsButton','ck-ai-chat__feed__ai-suggestion__actions','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','insertSuggestionModel','items','has','isTrackChangesOn','locale','ck-ai-chat__feed__ai-suggestion__actions__balloon','updateLabels','applySuggestionModel','_setUpKeystrokes','delegate','507708QMQeBK','ck-ai-chat__feed__ai-suggestion__actions\x20','5051624YsLVkM','element','keystrokeHandler','ltr','destroy','class','filter'];_0x2b8c=function(){return _0x418a5a;};return _0x2b8c();}import{BalloonPanelView as _0x8d0a3b,BodyCollection as _0x2bddb7,ButtonView as _0x2a86e5,clickOutsideHandler as _0x7e7f69,ListItemButtonView as _0x384639,ListItemView as _0x32ff44,ListView as _0x3c989b,SplitButtonView as _0x565970,UIModel as _0x27b976,View as _0x11faa8}from'ckeditor5/src/ui.js';import{IconCheck as _0x2e199e,IconAddComment as _0x42addd,IconDocumentWithLoupe as _0x2bf589}from'ckeditor5/src/icons.js';import{getTranslation as _0x2459b7}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x5e2313(0x113),_0x5e2313(0x157),_0x5e2313(0x118)];export class AIChatFeedSuggestionItemActionsView extends _0x11faa8{[_0x5e2313(0x12b)];[_0x5e2313(0x156)];[_0x5e2313(0x135)];[_0x5e2313(0x160)];[_0x5e2313(0x12e)];[_0x5e2313(0x121)]=0x1;[_0x5e2313(0x10e)];[_0x5e2313(0x110)];[_0x5e2313(0x155)]=!0x0;constructor(_0x2ee2b5,_0x1138d4){const _0xc62215=_0x5e2313;super(_0x2ee2b5),this[_0xc62215(0x10e)]=_0x1138d4||[...AI_REPLY_ACTIONS],this[_0xc62215(0x110)]=[...this[_0xc62215(0x10e)]];const _0x1325e4=this[_0xc62215(0x166)];this[_0xc62215(0x15a)](_0xc62215(0x164),!0x0),this[_0xc62215(0x15a)](_0xc62215(0x14b),!0x0),this[_0xc62215(0x15a)](_0xc62215(0x131),!0x1),this[_0xc62215(0x135)]=new _0x27b976({'label':Pn(_0xc62215(0x113),_0x2ee2b5,this[_0xc62215(0x121)]),'icon':_0x2e199e,'withText':!0x0,'type':_0xc62215(0x153),'actionName':_0xc62215(0x113)}),this[_0xc62215(0x160)]=new _0x27b976({'label':Pn(_0xc62215(0x118),_0x2ee2b5,this[_0xc62215(0x121)]),'icon':_0x2bf589,'withText':!0x0,'type':_0xc62215(0x153),'actionName':_0xc62215(0x118)}),this[_0xc62215(0x12e)]=new _0x27b976({'label':Pn(_0xc62215(0x157),_0x2ee2b5,this[_0xc62215(0x121)]),'icon':_0x42addd,'withText':!0x0,'type':_0xc62215(0x153),'actionName':_0xc62215(0x157)}),this[_0xc62215(0x12b)]=this[_0xc62215(0x143)](_0x2ee2b5),this[_0xc62215(0x156)]=this[_0xc62215(0x117)](),this[_0xc62215(0x12b)]&&this[_0xc62215(0x156)][_0xc62215(0x145)](this[_0xc62215(0x12b)]),this[_0xc62215(0x14f)]({'tag':_0xc62215(0x119),'attributes':{'class':['ck',_0xc62215(0x12c),_0x1325e4['if'](_0xc62215(0x14b),_0xc62215(0x122),_0x12db36=>!_0x12db36)]},'children':this[_0xc62215(0x156)]}),this['on'](_0xc62215(0x124),()=>{const _0x55bc2f=_0xc62215;this[_0x55bc2f(0x110)]=this[_0x55bc2f(0x131)]?this[_0x55bc2f(0x10e)][_0x55bc2f(0x140)](_0x3cfabb=>_0x55bc2f(0x113)!==_0x3cfabb):[...this[_0x55bc2f(0x10e)]],this[_0x55bc2f(0x151)](_0x2ee2b5);});}[_0x5e2313(0x151)](_0x4e63b2){const _0x5e6513=_0x5e2313;this[_0x5e6513(0x12b)]&&this[_0x5e6513(0x156)][_0x5e6513(0x130)](this[_0x5e6513(0x12b)])&&(this[_0x5e6513(0x156)][_0x5e6513(0x149)](this[_0x5e6513(0x12b)]),this[_0x5e6513(0x12b)][_0x5e6513(0x13e)]()),this[_0x5e6513(0x12b)]=this[_0x5e6513(0x143)](_0x4e63b2),this[_0x5e6513(0x12b)]&&this[_0x5e6513(0x156)][_0x5e6513(0x145)](this[_0x5e6513(0x12b)]);}[_0x5e2313(0x143)](_0x190345){const _0x6706a2=_0x5e2313;if(0x0==this[_0x6706a2(0x110)][_0x6706a2(0x147)])return null;const _0x2c868c=0x1===this[_0x6706a2(0x110)][_0x6706a2(0x147)]?this[_0x6706a2(0x163)](_0x190345):this[_0x6706a2(0x106)](_0x190345),_0x3c2416=this[_0x6706a2(0x155)]?'':_0x6706a2(0x152);_0x2c868c[_0x6706a2(0x15a)]({'label':Pn(this[_0x6706a2(0x110)][0x0],_0x190345,this[_0x6706a2(0x121)]),'tooltip':Hn(this[_0x6706a2(0x110)][0x0],_0x190345,this[_0x6706a2(0x121)]),'withText':!0x0,'class':_0x6706a2(0x139)+_0x3c2416});for(const _0x42f563 of this[_0x6706a2(0x110)])_0x2c868c['on'](_0x42f563,()=>{const _0x484a1b=_0x6706a2;this[_0x484a1b(0x10f)](_0x42f563);});return this[_0x6706a2(0x155)]=!0x1,_0x2c868c;}[_0x5e2313(0x163)](_0xf8ea99){const _0x3fa21a=_0x5e2313,_0x38c418=new _0x2a86e5(_0xf8ea99);return _0x38c418[_0x3fa21a(0x15a)]({'class':_0x3fa21a(0x120),'withText':!0x0}),_0x38c418['on'](_0x3fa21a(0x129),()=>{const _0x2db898=_0x3fa21a;_0x38c418[_0x2db898(0x10f)](this[_0x2db898(0x110)][0x0]);}),_0x38c418;}[_0x5e2313(0x106)](_0x28084f){const _0x557b6d=_0x5e2313,_0x4e7575=new Nn(_0x28084f,{'listItemModels':this[_0x557b6d(0x110)][_0x557b6d(0x125)](_0x5b44ad=>{const _0x4845e8=_0x557b6d;switch(_0x5b44ad){case _0x4845e8(0x113):return this[_0x4845e8(0x135)];case _0x4845e8(0x118):return this[_0x4845e8(0x160)];case _0x4845e8(0x157):return this[_0x4845e8(0x12e)];}})});return _0x4e7575[_0x557b6d(0x15a)]({'label':Pn(this[_0x557b6d(0x110)][0x0],_0x28084f,this[_0x557b6d(0x121)]),'tooltip':Hn(this[_0x557b6d(0x110)][0x0],_0x28084f,this[_0x557b6d(0x121)]),'withText':!0x0,'class':_0x557b6d(0x12c),'balloonPanelClass':_0x557b6d(0x133)}),_0x4e7575[_0x557b6d(0x162)](_0x557b6d(0x164))['to'](this),_0x4e7575;}[_0x5e2313(0x134)](_0x2f30ac){const _0x287af4=_0x5e2313,_0x4e7164=this[_0x287af4(0x132)];this[_0x287af4(0x121)]=_0x2f30ac||this[_0x287af4(0x121)],this[_0x287af4(0x12b)][_0x287af4(0x15a)]({'label':Pn(this[_0x287af4(0x110)][0x0],_0x4e7164,this[_0x287af4(0x121)]),'tooltip':Hn(this[_0x287af4(0x110)][0x0],_0x4e7164,this[_0x287af4(0x121)])}),this[_0x287af4(0x135)][_0x287af4(0x107)]=Pn(_0x287af4(0x113),_0x4e7164,this[_0x287af4(0x121)]),this[_0x287af4(0x160)][_0x287af4(0x107)]=Pn(_0x287af4(0x118),_0x4e7164,this[_0x287af4(0x121)]),this[_0x287af4(0x12e)][_0x287af4(0x107)]=Pn(_0x287af4(0x157),_0x4e7164,this[_0x287af4(0x121)]);}}class Nn extends _0x565970{[_0x5e2313(0x11f)];[_0x5e2313(0x144)];[_0x5e2313(0x116)];[_0x5e2313(0x13c)];constructor(_0x5ba4d0,_0x346346){const _0x126212=_0x5e2313;super(_0x5ba4d0),this[_0x126212(0x144)]=new _0x8d0a3b(this[_0x126212(0x132)]),this[_0x126212(0x11f)]=new _0x2bddb7(this[_0x126212(0x132)]),this[_0x126212(0x11f)][_0x126212(0x165)](),this[_0x126212(0x15a)](_0x126212(0x14d),''),this[_0x126212(0x144)][_0x126212(0x162)](_0x126212(0x13f))['to'](this,_0x126212(0x14d)),this[_0x126212(0x116)]=this[_0x126212(0x112)](_0x346346[_0x126212(0x159)][_0x126212(0x154)](0x1)),this[_0x126212(0x11f)][_0x126212(0x145)](this[_0x126212(0x144)]),this[_0x126212(0x144)][_0x126212(0x111)][_0x126212(0x145)](this[_0x126212(0x116)]),this[_0x126212(0x15b)][_0x126212(0x109)](_0x126212(0x14e)),this[_0x126212(0x15b)][_0x126212(0x15a)](_0x126212(0x14e),_0x2459b7(this[_0x126212(0x132)],_0x126212(0x11c))),this[_0x126212(0x136)](),this['on'](_0x126212(0x129),()=>{const _0x1d6779=_0x126212,_0xfbac3d=_0x346346[_0x1d6779(0x159)][0x0][_0x1d6779(0x114)];this[_0x1d6779(0x10f)](_0xfbac3d),this[_0x1d6779(0x144)][_0x1d6779(0x11e)](),this[_0x1d6779(0x15b)][_0x1d6779(0x123)]();}),this['on'](_0x126212(0x128),()=>{const _0x274225=_0x126212;this[_0x274225(0x144)][_0x274225(0x14b)]?(this[_0x274225(0x144)][_0x274225(0x11e)](),this[_0x274225(0x15b)][_0x274225(0x123)]()):(this[_0x274225(0x144)][_0x274225(0x161)]({'target':this[_0x274225(0x13b)],'positions':[_0x274225(0x13d)===this[_0x274225(0x132)][_0x274225(0x158)]?Gn:yn]}),this[_0x274225(0x116)][_0x274225(0x123)]());}),_0x7e7f69({'emitter':this[_0x126212(0x144)],'callback':()=>{const _0x379a44=_0x126212;this[_0x379a44(0x144)][_0x379a44(0x11e)]();},'activator':()=>this[_0x126212(0x144)][_0x126212(0x14b)],'contextElements':()=>[this[_0x126212(0x13b)],this[_0x126212(0x144)][_0x126212(0x13b)]]});}[_0x5e2313(0x112)](_0x35853e){const _0x41868=_0x5e2313,_0x55abbb=this[_0x41868(0x132)],_0x241e61=new _0x3c989b(_0x55abbb);for(const _0x57f6e1 of _0x35853e){const _0x503182=new _0x32ff44(_0x55abbb),_0x4ef460=new _0x384639(_0x55abbb);_0x4ef460[_0x41868(0x162)](...Object[_0x41868(0x10b)](_0x57f6e1))['to'](_0x57f6e1),_0x4ef460[_0x41868(0x137)](_0x41868(0x129))['to'](_0x241e61),_0x503182[_0x41868(0x156)][_0x41868(0x145)](_0x4ef460),_0x241e61[_0x41868(0x12f)][_0x41868(0x145)](_0x503182);}return _0x241e61[_0x41868(0x12f)][_0x41868(0x137)](_0x41868(0x129))['to'](this),_0x241e61['on'](_0x41868(0x129),_0x488294=>{const _0x21fa59=_0x41868,_0x13fc88=_0x488294[_0x21fa59(0x15c)];this[_0x21fa59(0x10f)](_0x13fc88[_0x21fa59(0x114)]),this[_0x21fa59(0x144)][_0x21fa59(0x11e)](),this[_0x21fa59(0x15b)][_0x21fa59(0x123)]();}),_0x241e61;}[_0x5e2313(0x136)](){const _0x8a774b=_0x5e2313;this[_0x8a774b(0x13c)]=new _0xb72b4f(),this[_0x8a774b(0x13c)][_0x8a774b(0x15e)](this[_0x8a774b(0x144)][_0x8a774b(0x13b)]),this[_0x8a774b(0x13c)][_0x8a774b(0x15a)](_0x8a774b(0x146),(_0xbb23cc,_0x135735)=>{const _0x3970b8=_0x8a774b;this[_0x3970b8(0x144)][_0x3970b8(0x11e)](),this[_0x3970b8(0x15b)][_0x3970b8(0x123)](),_0x135735();});}[_0x5e2313(0x13e)](){const _0xe523d9=_0x5e2313;super[_0xe523d9(0x13e)](),this[_0xe523d9(0x13c)][_0xe523d9(0x13e)](),this[_0xe523d9(0x144)][_0xe523d9(0x13e)](),this[_0xe523d9(0x11f)][_0xe523d9(0x141)]();}}function Gn(_0x1486d0){const _0x3d8c47=_0x5e2313;return{'top':_0x1486d0[_0x3d8c47(0x11a)],'left':_0x1486d0[_0x3d8c47(0x108)],'name':_0x3d8c47(0x10c),'config':{'withArrow':!0x1}};}function _0x3124(_0x4298a5,_0x3505e7){const _0x2b8c63=_0x2b8c();return _0x3124=function(_0x3124a1,_0x4f976f){_0x3124a1=_0x3124a1-0x106;let _0x268bdf=_0x2b8c63[_0x3124a1];return _0x268bdf;},_0x3124(_0x4298a5,_0x3505e7);}function yn(_0x348d89,_0x1ab2ee){const _0x5494b7=_0x5e2313;return{'top':_0x348d89[_0x5494b7(0x11a)],'left':_0x348d89[_0x5494b7(0x108)]-(_0x1ab2ee[_0x5494b7(0x10a)]-_0x348d89[_0x5494b7(0x10a)]),'name':_0x5494b7(0x10c),'config':{'withArrow':!0x1}};}function Pn(_0x27e756,_0x32accb,_0x4c5f70){const _0x37fb0d=_0x5e2313;switch(_0x27e756){case _0x37fb0d(0x113):return _0x2459b7(_0x32accb,_0x37fb0d(0x11d),_0x4c5f70);case _0x37fb0d(0x118):return _0x2459b7(_0x32accb,_0x37fb0d(0x142),_0x4c5f70);case _0x37fb0d(0x157):return _0x2459b7(_0x32accb,_0x37fb0d(0x150),_0x4c5f70);}}function Hn(_0x239b5b,_0x4d8fe7,_0x188381){const _0x21a161=_0x5e2313;switch(_0x239b5b){case _0x21a161(0x113):return _0x2459b7(_0x4d8fe7,_0x21a161(0x12d),_0x188381);case _0x21a161(0x118):return _0x2459b7(_0x4d8fe7,_0x21a161(0x10d),_0x188381);case _0x21a161(0x157):return _0x2459b7(_0x4d8fe7,_0x21a161(0x14c),_0x188381);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x86b97c=_0x585c;(function(_0xd4b0ec,_0xbdfab1){var _0x289d28=_0x585c,_0x25e3c5=_0xd4b0ec();while(!![]){try{var _0x443072=parseInt(_0x289d28(0xd8))/0x1*(parseInt(_0x289d28(0xcb))/0x2)+-parseInt(_0x289d28(0xe1))/0x3*(parseInt(_0x289d28(0xbd))/0x4)+-parseInt(_0x289d28(0xd2))/0x5*(-parseInt(_0x289d28(0xc1))/0x6)+parseInt(_0x289d28(0xb4))/0x7+parseInt(_0x289d28(0xce))/0x8*(-parseInt(_0x289d28(0xcc))/0x9)+parseInt(_0x289d28(0xd4))/0xa*(parseInt(_0x289d28(0xc3))/0xb)+parseInt(_0x289d28(0xdb))/0xc*(-parseInt(_0x289d28(0xda))/0xd);if(_0x443072===_0xbdfab1)break;else _0x25e3c5['push'](_0x25e3c5['shift']());}catch(_0x739aa){_0x25e3c5['push'](_0x25e3c5['shift']());}}}(_0x30c8,0xaf058));function _0x30c8(){var _0x5cc71c=['updateSources','toggleSuggestionDisplayMode','2705JwLfxN','hasNonEmptyParts','59810JFmCpz','set','mouseOverSuggestion','applySuggestion','2igVSxj','isVisible','87165HRPovZ','2004oPZrQG','ck-ai-chat__feed__ai-suggestion','mouseLeaveSuggestion','showDiff','options','updateContent','87648hjsLvv','getPartView','areActionsDisabled','8167460gxuYrr','children','markAsDone','rejectSuggestion','dislike','availableActions','fire','isTrackChangesOn','extendTemplate','72tOKuHy','bodyView','updateLabels','addMany','3288CMfEiH','isEnabled','2123anrDfJ','showChangeInText','actionsView','partsCount','like','containerView','insertSuggestion','updatePartState','707870WDafhn','90ZIeHrS','hasPendingParts','770352BhjMJV','bind'];_0x30c8=function(){return _0x5cc71c;};return _0x30c8();}import{AIChatFeedItemView as _0x3c9c6c}from'./aichatfeeditemview.js';function _0x585c(_0x5d2f19,_0xb8c70){var _0x30c8bd=_0x30c8();return _0x585c=function(_0x585cb6,_0x4120b8){_0x585cb6=_0x585cb6-0xb3;var _0x4888b2=_0x30c8bd[_0x585cb6];return _0x4888b2;},_0x585c(_0x5d2f19,_0xb8c70);}import{AISuggestionContainerView as _0x336a80}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0xd573b8}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x3c9c6c{[_0x86b97c(0xc8)];[_0x86b97c(0xc5)];constructor(_0x230773,_0x2dd150){var _0x438a4f=_0x86b97c;super(_0x2dd150),this[_0x438a4f(0xd5)](_0x438a4f(0xbb),!0x1),this[_0x438a4f(0xc8)]=new _0x336a80(_0x230773,{'showDiff':_0x2dd150[_0x438a4f(0xde)],'areActionsDisabled':_0x2dd150[_0x438a4f(0xb3)],'availableActions':_0x2dd150[_0x438a4f(0xb9)]}),this[_0x438a4f(0xc8)]['on'](_0x438a4f(0xd1),(_0xc43bcc,_0x51ee35)=>{var _0x2c6588=_0x438a4f;this[_0x2c6588(0xba)](_0x2c6588(0xd1),{'replyId':this[_0x2c6588(0xdf)]['id'],'showDiff':_0x51ee35[_0x2c6588(0xde)]});}),this[_0x438a4f(0xc8)]['on'](_0x438a4f(0xc7),()=>{var _0x3a0f5d=_0x438a4f;this[_0x3a0f5d(0xba)](_0x3a0f5d(0xc7),{'replyId':this[_0x3a0f5d(0xdf)]['id']});}),this[_0x438a4f(0xc8)]['on'](_0x438a4f(0xb8),()=>{var _0x68cb21=_0x438a4f;this[_0x68cb21(0xba)](_0x68cb21(0xb8),{'replyId':this[_0x68cb21(0xdf)]['id']});}),this[_0x438a4f(0xc8)]['on'](_0x438a4f(0xc4),(_0x3e7c57,{index:_0x3820fe})=>{var _0x4459f2=_0x438a4f;this[_0x4459f2(0xba)](_0x4459f2(0xc4),{'replyId':this[_0x4459f2(0xdf)]['id'],'partIndex':_0x3820fe});}),this[_0x438a4f(0xc8)]['on'](_0x438a4f(0xc9),(_0x210eea,{index:_0xc6b56})=>{var _0x1e2232=_0x438a4f;this[_0x1e2232(0xba)](_0x1e2232(0xc9),{'replyId':this[_0x1e2232(0xdf)]['id'],'partIndex':_0xc6b56});}),this[_0x438a4f(0xc8)]['on'](_0x438a4f(0xb7),(_0xeac74c,{index:_0x6d05d0})=>{var _0x2b032a=_0x438a4f;this[_0x2b032a(0xba)](_0x2b032a(0xb7),{'replyId':this[_0x2b032a(0xdf)]['id'],'partIndex':_0x6d05d0});}),this[_0x438a4f(0xc8)]['on'](_0x438a4f(0xd6),(_0xab2916,{index:_0x121425})=>{var _0x46b876=_0x438a4f;this[_0x46b876(0xba)](_0x46b876(0xd6),{'replyId':this[_0x46b876(0xdf)]['id'],'partIndex':_0x121425});}),this[_0x438a4f(0xc8)]['on'](_0x438a4f(0xdd),(_0x576ddf,{index:_0x23e778})=>{var _0x1d698a=_0x438a4f;this[_0x1d698a(0xba)](_0x1d698a(0xdd),{'replyId':this[_0x1d698a(0xdf)]['id'],'partIndex':_0x23e778});}),this[_0x438a4f(0xc5)]=new _0xd573b8(_0x230773,this[_0x438a4f(0xdf)][_0x438a4f(0xb9)]),this[_0x438a4f(0xc5)][_0x438a4f(0xcf)](_0x438a4f(0xbb))['to'](this,_0x438a4f(0xbb)),this[_0x438a4f(0xc5)]['on'](_0x438a4f(0xc4),()=>{var _0x2f56f0=_0x438a4f;this[_0x2f56f0(0xba)](_0x2f56f0(0xc4),{'replyId':this[_0x2f56f0(0xdf)]['id']});}),this[_0x438a4f(0xc5)]['on'](_0x438a4f(0xc9),()=>{var _0x157f61=_0x438a4f;this[_0x157f61(0xba)](_0x157f61(0xc9),{'replyId':this[_0x157f61(0xdf)]['id']});}),this[_0x438a4f(0xc5)]['on'](_0x438a4f(0xd7),()=>{var _0x4d4b15=_0x438a4f;this[_0x4d4b15(0xba)](_0x4d4b15(0xd7),{'replyId':this[_0x4d4b15(0xdf)]['id']});}),_0x2dd150[_0x438a4f(0xb3)]?this[_0x438a4f(0xc5)][_0x438a4f(0xc2)]=!0x1:this[_0x438a4f(0xc5)][_0x438a4f(0xcf)](_0x438a4f(0xc2))['to'](this[_0x438a4f(0xc8)][_0x438a4f(0xbe)],_0x438a4f(0xcd)),this[_0x438a4f(0xb5)][_0x438a4f(0xc0)]([this[_0x438a4f(0xc8)],this[_0x438a4f(0xc5)]]),this[_0x438a4f(0xbc)]({'attributes':{'class':[_0x438a4f(0xdc)]}});}async[_0x86b97c(0xe0)](_0x74fd55){var _0x7af9bf=_0x86b97c;await this[_0x7af9bf(0xc8)][_0x7af9bf(0xe0)](_0x74fd55),this[_0x7af9bf(0xc5)][_0x7af9bf(0xbf)](this[_0x7af9bf(0xc8)][_0x7af9bf(0xbe)][_0x7af9bf(0xc6)]);}[_0x86b97c(0xca)](_0x5ea4d0,_0x284b52){var _0xaf1914=_0x86b97c;this[_0xaf1914(0xc8)][_0xaf1914(0xbe)][_0xaf1914(0xca)](_0x5ea4d0,_0x284b52);}[_0x86b97c(0xd0)](_0x6d1f28){var _0x2bebf0=_0x86b97c;this[_0x2bebf0(0xc8)][_0x2bebf0(0xd0)](_0x6d1f28);}[_0x86b97c(0xe2)](_0x3091ca){var _0xeded34=_0x86b97c;return this[_0xeded34(0xc8)][_0xeded34(0xbe)][_0xeded34(0xe2)](_0x3091ca);}[_0x86b97c(0xb6)](){var _0x2d344e=_0x86b97c;super[_0x2d344e(0xb6)](),this[_0x2d344e(0xc8)][_0x2d344e(0xb6)](),this[_0x2d344e(0xc5)][_0x2d344e(0xd9)]=this[_0x2d344e(0xc8)][_0x2d344e(0xbe)][_0x2d344e(0xd3)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x31d8(_0x44d28f,_0x2319a1){var _0x3b0ea0=_0x3b0e();return _0x31d8=function(_0x31d8de,_0x4137c9){_0x31d8de=_0x31d8de-0x19f;var _0x10983e=_0x3b0ea0[_0x31d8de];return _0x10983e;},_0x31d8(_0x44d28f,_0x2319a1);}var _0x10b234=_0x31d8;(function(_0x12795d,_0x84443f){var _0x3f2497=_0x31d8,_0x3eb72a=_0x12795d();while(!![]){try{var _0x175b80=parseInt(_0x3f2497(0x1bc))/0x1+parseInt(_0x3f2497(0x1bb))/0x2+parseInt(_0x3f2497(0x1b9))/0x3+parseInt(_0x3f2497(0x1b0))/0x4*(-parseInt(_0x3f2497(0x1b1))/0x5)+parseInt(_0x3f2497(0x1b2))/0x6+-parseInt(_0x3f2497(0x1b6))/0x7+parseInt(_0x3f2497(0x1a2))/0x8*(-parseInt(_0x3f2497(0x1ae))/0x9);if(_0x175b80===_0x84443f)break;else _0x3eb72a['push'](_0x3eb72a['shift']());}catch(_0x1fee10){_0x3eb72a['push'](_0x3eb72a['shift']());}}}(_0x3b0e,0xddc66));import{AIChatFeedItemView as _0x728013}from'./aichatfeeditemview.js';function _0x3b0e(){var _0x2808c0=['extendTemplate','4808610FToQCy','_messageContentView','1578172FPNrGc','1088921eMnFTD','_bodyCollection','_contextChipsView','_locale','element','setTemplate','render','2595696FFtKMG','_createMessageContentView','children','options','initialContent','contextItems','ck-ai-chat__feed__message-content','ck-ai-chat__feed__user-message','filter','innerHTML','hidden','add','36eQKuqM','markAsDone','4672100Fmxuxe','5nGBCig','1272090QblisD','length','div','ck-ai-chat__feed__context-chips','2230403NgXzEc','_createContextChipsView'];_0x3b0e=function(){return _0x2808c0;};return _0x3b0e();}import{AIChatFeedContextChipsView as _0x1d4e2b}from'./aichatfeedcontextchipsview.js';import{View as _0x4c0a70}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x728013{[_0x10b234(0x1be)]=null;[_0x10b234(0x1bf)];[_0x10b234(0x1bd)];[_0x10b234(0x1ba)];constructor(_0x300185,_0x42fe9d,_0x25bb53){var _0xa95e8c=_0x10b234;super(_0x42fe9d),this[_0xa95e8c(0x1bf)]=_0x300185,this[_0xa95e8c(0x1bd)]=_0x25bb53,this[_0xa95e8c(0x1b7)](),this[_0xa95e8c(0x1a3)](),this[_0xa95e8c(0x1b8)]({'attributes':{'class':[_0xa95e8c(0x1a9)]}});}[_0x10b234(0x1b7)](){var _0x437b79=_0x10b234;this[_0x437b79(0x1a5)][_0x437b79(0x1a7)]&&this[_0x437b79(0x1a5)][_0x437b79(0x1a7)][_0x437b79(0x1b3)]>0x0&&(this[_0x437b79(0x1be)]=new _0x1d4e2b(this[_0x437b79(0x1bf)],this[_0x437b79(0x1a5)][_0x437b79(0x1a7)][_0x437b79(0x1aa)](_0x4d7eac=>!_0x4d7eac[_0x437b79(0x1ac)]),this[_0x437b79(0x1bd)]),this[_0x437b79(0x1be)][_0x437b79(0x1b8)]({'attributes':{'class':_0x437b79(0x1b5)}}),this[_0x437b79(0x1a4)][_0x437b79(0x1ad)](this[_0x437b79(0x1be)]));}[_0x10b234(0x1a3)](){var _0x1d81e3=_0x10b234;this[_0x1d81e3(0x1ba)]=new _0x4c0a70(this[_0x1d81e3(0x1bf)]),this[_0x1d81e3(0x1ba)][_0x1d81e3(0x1a0)]({'tag':_0x1d81e3(0x1b4),'attributes':{'class':_0x1d81e3(0x1a8)}}),this[_0x1d81e3(0x1a4)][_0x1d81e3(0x1ad)](this[_0x1d81e3(0x1ba)]);}[_0x10b234(0x1a1)](){var _0x139ef4=_0x10b234;super[_0x139ef4(0x1a1)](),this[_0x139ef4(0x1ba)][_0x139ef4(0x19f)][_0x139ef4(0x1ab)]=this[_0x139ef4(0x1a5)][_0x139ef4(0x1a6)],this[_0x139ef4(0x1af)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x105e95=_0x4325;(function(_0x3e9623,_0x420b14){const _0x15955c=_0x4325,_0x22b061=_0x3e9623();while(!![]){try{const _0x5e8401=parseInt(_0x15955c(0xff))/0x1*(parseInt(_0x15955c(0x106))/0x2)+-parseInt(_0x15955c(0x100))/0x3*(-parseInt(_0x15955c(0x10e))/0x4)+-parseInt(_0x15955c(0xf9))/0x5*(-parseInt(_0x15955c(0x107))/0x6)+parseInt(_0x15955c(0x103))/0x7+parseInt(_0x15955c(0xfe))/0x8+-parseInt(_0x15955c(0x105))/0x9*(parseInt(_0x15955c(0x102))/0xa)+-parseInt(_0x15955c(0xf8))/0xb;if(_0x5e8401===_0x420b14)break;else _0x22b061['push'](_0x22b061['shift']());}catch(_0x1ff7bd){_0x22b061['push'](_0x22b061['shift']());}}}(_0x37b1,0x5e736));function _0x37b1(){const _0x59e530=['addResourceToContext','selectModel','sendUserMessage','4WTAqRS','addDocumentToContext','7704840ALclXY','613695JmikEp','toggleWebSearch','addFileToContext','toggleReasoning','resizeTabs','3326880nJJKcj','262853HCsySf','1463799SVwHwu','removeContextItem','40XavGdM','342713sUPVtV','startConversation','1117152wUkmnJ','2KBzkYv','18iLWZgJ','abortPromptStream','addUrlToContext','loadSourceResources'];_0x37b1=function(){return _0x59e530;};return _0x37b1();}function _0x4325(_0x4fbdb5,_0x5bf0e9){const _0x37b199=_0x37b1();return _0x4325=function(_0x432512,_0x4e6dbf){_0x432512=_0x432512-0xf7;let _0x45d26a=_0x37b199[_0x432512];return _0x45d26a;},_0x4325(_0x4fbdb5,_0x5bf0e9);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3eb4fb}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x3eb4fb,_0x105e95(0x104),_0x105e95(0xfd),_0x105e95(0x10d),_0x105e95(0x108),_0x105e95(0xf7),_0x105e95(0xfb),_0x105e95(0x109),_0x105e95(0x10b),_0x105e95(0x101),_0x105e95(0x10a),_0x105e95(0xfa),_0x105e95(0xfc),_0x105e95(0x10c)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4640(){const _0x3641a1=['127494dhtrfN','2238475vbGhWC','_queueEmpty','reject','4922870cZyypH','callback','40yQePjd','shift','resolve','1667498bLfCMX','_processQueue','queue','_abortController','12poXrOC','12515151DxKhvT','19951YiaVLe','6ZXwxDQ','fire','isProcessing','createTask','length','signal','8wRXMsH','242973sISCRc','push','once','abort','queueEmptyPromise','enqueue','completePromise'];_0x4640=function(){return _0x3641a1;};return _0x4640();}const _0x34148e=_0x3fb5;(function(_0x41f5b1,_0x319120){const _0x32d808=_0x3fb5,_0x43e780=_0x41f5b1();while(!![]){try{const _0x157cfa=parseInt(_0x32d808(0x199))/0x1*(-parseInt(_0x32d808(0x197))/0x2)+-parseInt(_0x32d808(0x1a1))/0x3*(parseInt(_0x32d808(0x190))/0x4)+parseInt(_0x32d808(0x18b))/0x5+parseInt(_0x32d808(0x19a))/0x6*(parseInt(_0x32d808(0x193))/0x7)+-parseInt(_0x32d808(0x1a0))/0x8*(-parseInt(_0x32d808(0x18a))/0x9)+-parseInt(_0x32d808(0x18e))/0xa+parseInt(_0x32d808(0x198))/0xb;if(_0x157cfa===_0x319120)break;else _0x43e780['push'](_0x43e780['shift']());}catch(_0x1608bc){_0x43e780['push'](_0x43e780['shift']());}}}(_0x4640,0x658a9));import{EmitterMixin as _0xb8738b}from'ckeditor5/src/utils.js';function _0x3fb5(_0x41f0be,_0x2bedb6){const _0x464003=_0x4640();return _0x3fb5=function(_0x3fb503,_0x161277){_0x3fb503=_0x3fb503-0x189;let _0x5ca309=_0x464003[_0x3fb503];return _0x5ca309;},_0x3fb5(_0x41f0be,_0x2bedb6);}export class PromiseQueue extends _0xb8738b(){[_0x34148e(0x195)]=[];[_0x34148e(0x19c)]=!0x1;[_0x34148e(0x196)];async[_0x34148e(0x1a6)](_0x5d6507){const _0x458ace=_0x34148e,_0x23414b=this[_0x458ace(0x19d)](_0x5d6507);return this[_0x458ace(0x195)][_0x458ace(0x1a2)](_0x23414b),this[_0x458ace(0x194)](),_0x23414b[_0x458ace(0x189)];}[_0x34148e(0x1a4)](){const _0x23163c=_0x34148e;this[_0x23163c(0x19c)]&&(this[_0x23163c(0x196)][_0x23163c(0x1a4)](),this[_0x23163c(0x196)]=void 0x0,this[_0x23163c(0x195)]=[],this[_0x23163c(0x19b)](_0x23163c(0x18c)),this[_0x23163c(0x19c)]=!0x1);}get[_0x34148e(0x1a5)](){const _0x1bb632=_0x34148e;return this[_0x1bb632(0x195)][_0x1bb632(0x19e)]||this[_0x1bb632(0x19c)]?new Promise(_0x3201d9=>{const _0x38a0b5=_0x1bb632;this[_0x38a0b5(0x1a3)](_0x38a0b5(0x18c),()=>{_0x3201d9();});}):Promise[_0x1bb632(0x192)]();}async[_0x34148e(0x194)](){const _0x1f1d04=_0x34148e;if(!this[_0x1f1d04(0x19c)]){this[_0x1f1d04(0x196)]=new AbortController(),this[_0x1f1d04(0x19c)]=!0x0;try{for(;this[_0x1f1d04(0x195)][_0x1f1d04(0x19e)]&&this[_0x1f1d04(0x19c)];){const _0x573793=this[_0x1f1d04(0x195)][_0x1f1d04(0x191)]();try{await _0x573793[_0x1f1d04(0x18f)](this[_0x1f1d04(0x196)][_0x1f1d04(0x19f)]),_0x573793[_0x1f1d04(0x192)]();}catch(_0xcdc3df){_0x573793[_0x1f1d04(0x18d)](_0xcdc3df);}}}finally{this[_0x1f1d04(0x19c)]=!0x1,this[_0x1f1d04(0x196)]=void 0x0;}this[_0x1f1d04(0x19b)](_0x1f1d04(0x18c));}}[_0x34148e(0x19d)](_0x3678b1){let _0x503a27,_0x4cf658;const _0x5aa598=new Promise((_0x4bf3eb,_0x2d6389)=>{_0x503a27=_0x4bf3eb,_0x4cf658=_0x2d6389;});return{'callback':_0x3678b1,'resolve':_0x503a27,'reject':_0x4cf658,'completePromise':_0x5aa598};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2956ed=_0x4e96;(function(_0x2fcb8d,_0x3232de){var _0x4af16e=_0x4e96,_0x14d90b=_0x2fcb8d();while(!![]){try{var _0xa59cc0=parseInt(_0x4af16e(0x167))/0x1*(parseInt(_0x4af16e(0x16b))/0x2)+-parseInt(_0x4af16e(0x162))/0x3+parseInt(_0x4af16e(0x15e))/0x4*(-parseInt(_0x4af16e(0x165))/0x5)+parseInt(_0x4af16e(0x160))/0x6*(-parseInt(_0x4af16e(0x15b))/0x7)+-parseInt(_0x4af16e(0x168))/0x8*(-parseInt(_0x4af16e(0x15f))/0x9)+-parseInt(_0x4af16e(0x16a))/0xa*(parseInt(_0x4af16e(0x15d))/0xb)+-parseInt(_0x4af16e(0x169))/0xc*(-parseInt(_0x4af16e(0x161))/0xd);if(_0xa59cc0===_0x3232de)break;else _0x14d90b['push'](_0x14d90b['shift']());}catch(_0x2b7bee){_0x14d90b['push'](_0x14d90b['shift']());}}}(_0x5ba8,0xe7663));import{ContextPlugin as _0x56a86f}from'ckeditor5/src/core.js';function _0x4e96(_0x529624,_0x39864c){var _0x5ba81c=_0x5ba8();return _0x4e96=function(_0x4e9625,_0x3d499d){_0x4e9625=_0x4e9625-0x15a;var _0x19c361=_0x5ba81c[_0x4e9625];return _0x19c361;},_0x4e96(_0x529624,_0x39864c);}import{AIChatHistoryController as _0x48f312}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x5e2c02}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x56a86f{static get[_0x2956ed(0x163)](){return[_0x48f312,_0x5e2c02];}static get[_0x2956ed(0x15c)](){var _0x11c46c=_0x2956ed;return _0x11c46c(0x164);}static get[_0x2956ed(0x166)](){return!0x0;}static get[_0x2956ed(0x15a)](){return!0x0;}}function _0x5ba8(){var _0x2df4a8=['1812820ZjPQmt','9776LqWKdf','isPremiumPlugin','35nuacoO','pluginName','55ynRnqG','8zejxPl','198jOJskB','324048gsJYkI','13BKuKDs','4656309uhKYYF','requires','AIChatHistory','2503280zWcBEK','isOfficialPlugin','334rlfOIg','554104OVokhb','18255576bUKImh'];_0x5ba8=function(){return _0x2df4a8;};return _0x5ba8();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x53c691=_0x2563;(function(_0x134627,_0x19d4f7){const _0x10c3af=_0x2563,_0x5ef349=_0x134627();while(!![]){try{const _0x215bf1=-parseInt(_0x10c3af(0x16c))/0x1*(parseInt(_0x10c3af(0x16f))/0x2)+-parseInt(_0x10c3af(0x188))/0x3+parseInt(_0x10c3af(0x177))/0x4+parseInt(_0x10c3af(0x167))/0x5*(parseInt(_0x10c3af(0x199))/0x6)+parseInt(_0x10c3af(0x153))/0x7*(parseInt(_0x10c3af(0x14f))/0x8)+-parseInt(_0x10c3af(0x193))/0x9*(parseInt(_0x10c3af(0x149))/0xa)+parseInt(_0x10c3af(0x178))/0xb;if(_0x215bf1===_0x19d4f7)break;else _0x5ef349['push'](_0x5ef349['shift']());}catch(_0x1322c4){_0x5ef349['push'](_0x5ef349['shift']());}}}(_0x5742,0x7c863));import{ContextPlugin as _0x538aa4}from'ckeditor5/src/core.js';import{AIConnector as _0xd500ba}from'../aicore/aiconnector.js';import{AIChatController as _0xbc0c2d}from'../aichat/aichatcontroller.js';import{AITabs as _0x56d59f}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x5756fb}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x23cbd7}from'./model/aichathistoryconversations.js';function _0x2563(_0x1311f6,_0x32dd54){const _0x57425b=_0x5742();return _0x2563=function(_0x256379,_0x163fa0){_0x256379=_0x256379-0x134;let _0x3fcf8d=_0x57425b[_0x256379];return _0x3fcf8d;},_0x2563(_0x1311f6,_0x32dd54);}import{getTranslation as _0x4f5874}from'../aicore/utils/common-translations.js';function _0x5742(){const _0x477a13=['updateItemLoadingState','get','_setIsMaximized','removeItem','loadItems','selectConversation','pin','_handleTogglePin','resizeTabs','view','setDate','length','_handleRemove','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','error','_handleEditTitle','2262720rMgDga','_handleSelectConversation','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','updateItemTitle','title','3ymwlpk','_updateHistoryItemsUI','pluginName','403778hFuHAg','itemUpdated','editConversationTitle','toLocaleDateString','chat','unpin','_setItemLoading','listenTo','3134724AIXBEQ','17650677QwCLon','updateItems','getItem','_aiChatController','setConversationPinned','map','remove','updates','AI_CHAT_HISTORY_CATEGORY_TODAY','requires','operation','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','locale','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','2607123zAxqez','init','_clearItemLoading','plugins','resize','AI_CHAT_HISTORY_CATEGORY_PINNED','getMonth','context','showError','_generateErrorMessage','getItems','1530IuOEuQ','pinned','AI_CHAT_UNTITLED_CONVERSATION','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','push','getFullYear','6uQcghf','_aiConnector','createdAt','removeConversation','resizedTabs','setIsMaximized','itemsLoaded','removeHistoryItem','AI_CHAT_HISTORY_ERROR_GENERIC','AIChatHistoryController','itemId','updateItemPinned','items','AI_CHAT_HISTORY_UNPIN_ACTION','history','itemRemoved','activateTab','AI_CHAT_HISTORY_CATEGORY_LATER','rename','isPremiumPlugin','_aiChatHistoryUi','getDate','getGroupId','58160jmlcTL','activeConversation','openChat','_getCategorizedItems','_showConversationHistory','isOfficialPlugin','8kQzLSH','loadConversation','_handleHistoryErrorUI','setLoadingSkeleton','928529jKmBVJ','activateTab:history','change:activeConversation','handleRemovedConversation'];_0x5742=function(){return _0x477a13;};return _0x5742();}export class AIChatHistoryController extends _0x538aa4{[_0x53c691(0x19a)];[_0x53c691(0x146)];[_0x53c691(0x17b)];static get[_0x53c691(0x181)](){return[_0xd500ba,_0xbc0c2d,_0x5756fb,_0x56d59f];}static get[_0x53c691(0x16e)](){const _0x160776=_0x53c691;return _0x160776(0x13b);}static get[_0x53c691(0x14e)](){return!0x0;}static get[_0x53c691(0x145)](){return!0x0;}[_0x53c691(0x189)](){const _0x570123=_0x53c691;this[_0x570123(0x19a)]=this[_0x570123(0x18f)][_0x570123(0x18b)][_0x570123(0x158)](_0xd500ba),this[_0x570123(0x146)]=this[_0x570123(0x18f)][_0x570123(0x18b)][_0x570123(0x158)](_0x5756fb),this[_0x570123(0x17b)]=this[_0x570123(0x18f)][_0x570123(0x18b)][_0x570123(0x158)](_0xbc0c2d);const _0x4ebb72=this[_0x570123(0x18f)][_0x570123(0x18b)][_0x570123(0x158)](_0x56d59f);try{const _0x5eec7c=this[_0x570123(0x17b)][_0x570123(0x148)]();this[_0x570123(0x140)]=new _0x23cbd7({'connector':this[_0x570123(0x19a)],'group':_0x5eec7c}),this[_0x570123(0x176)](this[_0x570123(0x146)],_0x570123(0x135),(_0x355141,_0x18414c)=>{const _0x3f44e9=_0x570123;this[_0x3f44e9(0x175)](_0x18414c['id'],_0x3f44e9(0x17e)),this[_0x3f44e9(0x163)](_0x18414c['id']);}),this[_0x570123(0x176)](this[_0x570123(0x146)],_0x570123(0x171),(_0x5e3c39,_0xf4f244)=>{const _0x209dc7=_0x570123;this[_0x209dc7(0x175)](_0xf4f244['id'],_0x209dc7(0x144)),this[_0x209dc7(0x166)](_0xf4f244['id'],_0xf4f244[_0x209dc7(0x16b)]);}),this[_0x570123(0x176)](this[_0x570123(0x140)],_0x570123(0x170),(_0x4b2d93,_0x73a600)=>{const _0x3b8920=_0x570123;void 0x0!==_0x73a600[_0x3b8920(0x17f)][_0x3b8920(0x16b)]&&this[_0x3b8920(0x146)][_0x3b8920(0x16a)](_0x73a600[_0x3b8920(0x13c)],_0x73a600[_0x3b8920(0x17f)][_0x3b8920(0x16b)]),void 0x0!==_0x73a600[_0x3b8920(0x17f)][_0x3b8920(0x194)]&&this[_0x3b8920(0x16d)](),this[_0x3b8920(0x18a)](_0x73a600[_0x3b8920(0x13c)]);}),this[_0x570123(0x176)](this[_0x570123(0x140)],_0x570123(0x141),(_0x2f136e,_0x1ab92e)=>{const _0x1380aa=_0x570123;this[_0x1380aa(0x17b)][_0x1380aa(0x156)](_0x1ab92e[_0x1380aa(0x13c)]),this[_0x1380aa(0x146)][_0x1380aa(0x139)](_0x1ab92e[_0x1380aa(0x13c)]),this[_0x1380aa(0x18a)](_0x1ab92e[_0x1380aa(0x13c)]);}),this[_0x570123(0x176)](this[_0x570123(0x140)],_0x570123(0x138),()=>{const _0x49164c=_0x570123;this[_0x49164c(0x16d)]();}),this[_0x570123(0x176)](this[_0x570123(0x140)],_0x570123(0x165),(_0x4c71fc,_0xa7bf5d)=>{const _0x3d3d9b=_0x570123;this[_0x3d3d9b(0x151)](_0xa7bf5d[_0x3d3d9b(0x165)],_0xa7bf5d[_0x3d3d9b(0x182)],_0xa7bf5d[_0x3d3d9b(0x13c)]);}),this[_0x570123(0x176)](this[_0x570123(0x146)],_0x570123(0x15c),(_0x45fcc7,_0x168f89)=>{const _0x44649c=_0x570123;this[_0x44649c(0x168)](_0x168f89['id']);}),this[_0x570123(0x176)](this[_0x570123(0x146)],_0x570123(0x17c),(_0x525e1a,_0x448d61)=>{const _0x478e43=_0x570123,_0x1e2b8f=_0x448d61[_0x478e43(0x194)]?_0x478e43(0x15d):_0x478e43(0x174);this[_0x478e43(0x175)](_0x448d61['id'],_0x1e2b8f),this[_0x478e43(0x15e)](_0x448d61['id'],_0x448d61[_0x478e43(0x194)]);}),this[_0x570123(0x176)](this[_0x570123(0x146)],_0x570123(0x14b),()=>{const _0x23ba36=_0x570123;_0x4ebb72[_0x23ba36(0x160)][_0x23ba36(0x142)](_0x23ba36(0x173));}),this[_0x570123(0x176)](this[_0x570123(0x17b)],_0x570123(0x155),()=>{const _0x1cd5fe=_0x570123;this[_0x1cd5fe(0x16d)]();}),_0x4ebb72[_0x570123(0x160)]['on'](_0x570123(0x154),()=>{const _0x58872b=_0x570123;this[_0x58872b(0x14d)]();}),this[_0x570123(0x176)](_0x4ebb72,_0x570123(0x136),(_0x5a3423,_0x1f1416)=>{const _0x519cc0=_0x570123;this[_0x519cc0(0x159)](_0x1f1416);}),this[_0x570123(0x176)](this[_0x570123(0x146)],_0x570123(0x15f),()=>{const _0x2bfbe7=_0x570123;_0x4ebb72[_0x2bfbe7(0x18c)]();});}catch(_0x267017){this[_0x570123(0x151)](_0x267017,_0x570123(0x189));}}async[_0x53c691(0x166)](_0x444139,_0x5edf58){const _0x146381=_0x53c691;await this[_0x146381(0x140)][_0x146381(0x16a)](_0x444139,_0x5edf58);}async[_0x53c691(0x15e)](_0x2a54c3,_0x471d86){const _0x25db73=_0x53c691;await this[_0x25db73(0x140)][_0x25db73(0x13d)](_0x2a54c3,_0x471d86);}async[_0x53c691(0x163)](_0x29df75){const _0x246f36=_0x53c691;await this[_0x246f36(0x140)][_0x246f36(0x15a)](_0x29df75);}async[_0x53c691(0x168)](_0x1a6078){const _0x412a38=_0x53c691;await this[_0x412a38(0x17b)][_0x412a38(0x150)](_0x1a6078);}async[_0x53c691(0x14d)](){const _0x5e51f4=_0x53c691;this[_0x5e51f4(0x146)][_0x5e51f4(0x190)](''),this[_0x5e51f4(0x146)][_0x5e51f4(0x152)](!0x0),await this[_0x5e51f4(0x140)][_0x5e51f4(0x189)](),this[_0x5e51f4(0x146)][_0x5e51f4(0x152)](!0x1);}[_0x53c691(0x16d)](){const _0xfb415=_0x53c691,_0xe90a68=this[_0xfb415(0x17b)][_0xfb415(0x14a)]?.['id'],_0x198e7f=this[_0xfb415(0x14c)]()[_0xfb415(0x17d)](_0x352988=>({'title':_0x352988[_0xfb415(0x16b)],'items':_0x352988[_0xfb415(0x13e)][_0xfb415(0x17d)](_0x2fa7b5=>({'id':_0x2fa7b5['id'],'title':_0x2fa7b5[_0xfb415(0x16b)]||_0x4f5874(this[_0xfb415(0x18f)][_0xfb415(0x186)],_0xfb415(0x195)),'createdAt':new Date(_0x2fa7b5[_0xfb415(0x134)])[_0xfb415(0x172)](),'active':_0x2fa7b5['id']===_0xe90a68,'pinned':_0x2fa7b5[_0xfb415(0x194)]}))}));this[_0xfb415(0x146)][_0xfb415(0x179)](_0x198e7f);}[_0x53c691(0x175)](_0x48b151,_0x2c43be){const _0x522471=_0x53c691;this[_0x522471(0x146)][_0x522471(0x157)](_0x48b151,_0x2c43be,!0x0);}[_0x53c691(0x18a)](_0x373381){const _0x4dfe6e=_0x53c691;this[_0x4dfe6e(0x146)][_0x4dfe6e(0x157)](_0x373381,null,!0x1);}[_0x53c691(0x151)](_0x2c7b4c,_0x25e233,_0x4ff57e){const _0x215582=_0x53c691,_0x18fd36=this[_0x215582(0x191)](_0x25e233,_0x4ff57e);this[_0x215582(0x146)][_0x215582(0x190)](_0x18fd36),_0x4ff57e&&this[_0x215582(0x18a)](_0x4ff57e),this[_0x215582(0x146)][_0x215582(0x152)](!0x1);}[_0x53c691(0x191)](_0x386c5d,_0x1c1b79){const _0x355030=_0x53c691,_0x582ceb=_0x1c1b79?this[_0x355030(0x140)][_0x355030(0x17a)](_0x1c1b79):null,_0x115641=_0x582ceb?.[_0x355030(0x16b)]||_0x4f5874(this[_0x355030(0x18f)][_0x355030(0x186)],_0x355030(0x195));switch(_0x386c5d){case _0x355030(0x16a):return _0x4f5874(this[_0x355030(0x18f)][_0x355030(0x186)],_0x355030(0x196),_0x115641);case _0x355030(0x13d):{const _0x49ef87=_0x4f5874(this[_0x355030(0x18f)][_0x355030(0x186)],_0x582ceb?.[_0x355030(0x194)]?_0x355030(0x13f):_0x355030(0x184));return _0x4f5874(this[_0x355030(0x18f)][_0x355030(0x186)],_0x355030(0x183),[_0x49ef87,_0x115641]);}case _0x355030(0x15a):return _0x4f5874(this[_0x355030(0x18f)][_0x355030(0x186)],_0x355030(0x187),_0x115641);case _0x355030(0x189):case _0x355030(0x15b):return _0x4f5874(this[_0x355030(0x18f)][_0x355030(0x186)],_0x355030(0x185));default:return _0x4f5874(this[_0x355030(0x18f)][_0x355030(0x186)],_0x355030(0x13a));}}[_0x53c691(0x14c)](){const _0x335128=_0x53c691,_0x2d1f9c=new Date(),_0x595ee7=new Date(_0x2d1f9c[_0x335128(0x198)](),_0x2d1f9c[_0x335128(0x18e)](),_0x2d1f9c[_0x335128(0x147)]()),_0x2cec36=new Date(_0x595ee7);_0x2cec36[_0x335128(0x161)](_0x2cec36[_0x335128(0x147)]()-0x1);const _0x5195cd=new Date(_0x595ee7);_0x5195cd[_0x335128(0x161)](_0x5195cd[_0x335128(0x147)]()-0xe);const _0x551f5d=this[_0x335128(0x140)][_0x335128(0x192)]({'pinned':!0x0}),_0x4541c7=this[_0x335128(0x140)][_0x335128(0x192)]({'from':_0x595ee7,'to':_0x595ee7}),_0x4dda46=this[_0x335128(0x140)][_0x335128(0x192)]({'from':_0x2cec36,'to':_0x2cec36}),_0x195023=this[_0x335128(0x140)][_0x335128(0x192)]({'from':_0x5195cd,'to':_0x2cec36}),_0xd01ca2=this[_0x335128(0x140)][_0x335128(0x192)]({'to':_0x5195cd}),_0x15e9d1=[];return _0x551f5d[_0x335128(0x162)]>0x0&&_0x15e9d1[_0x335128(0x197)]({'title':_0x4f5874(this[_0x335128(0x18f)][_0x335128(0x186)],_0x335128(0x18d)),'items':_0x551f5d}),_0x4541c7[_0x335128(0x162)]>0x0&&_0x15e9d1[_0x335128(0x197)]({'title':_0x4f5874(this[_0x335128(0x18f)][_0x335128(0x186)],_0x335128(0x180)),'items':_0x4541c7}),_0x4dda46[_0x335128(0x162)]>0x0&&_0x15e9d1[_0x335128(0x197)]({'title':_0x4f5874(this[_0x335128(0x18f)][_0x335128(0x186)],_0x335128(0x169)),'items':_0x4dda46}),_0x195023[_0x335128(0x162)]>0x0&&_0x15e9d1[_0x335128(0x197)]({'title':_0x4f5874(this[_0x335128(0x18f)][_0x335128(0x186)],_0x335128(0x164)),'items':_0x195023}),_0xd01ca2[_0x335128(0x162)]>0x0&&_0x15e9d1[_0x335128(0x197)]({'title':_0x4f5874(this[_0x335128(0x18f)][_0x335128(0x186)],_0x335128(0x143)),'items':_0xd01ca2}),_0x15e9d1;}[_0x53c691(0x159)](_0x3cd20b){const _0xc63cb4=_0x53c691;this[_0xc63cb4(0x146)][_0xc63cb4(0x137)](_0x3cd20b);}}
|
|
23
|
+
const _0xd54c3d=_0x5ccc;(function(_0x3f5684,_0x6fdd06){const _0x3c38c4=_0x5ccc,_0x5bea67=_0x3f5684();while(!![]){try{const _0x3cfd57=parseInt(_0x3c38c4(0xb0))/0x1+parseInt(_0x3c38c4(0xd8))/0x2+parseInt(_0x3c38c4(0xe5))/0x3+parseInt(_0x3c38c4(0xad))/0x4+-parseInt(_0x3c38c4(0xb5))/0x5+parseInt(_0x3c38c4(0xc9))/0x6+-parseInt(_0x3c38c4(0xc6))/0x7;if(_0x3cfd57===_0x6fdd06)break;else _0x5bea67['push'](_0x5bea67['shift']());}catch(_0x45ca44){_0x5bea67['push'](_0x5bea67['shift']());}}}(_0x2354,0x40329));import{ContextPlugin as _0x50c1e7}from'ckeditor5/src/core.js';function _0x5ccc(_0x10c65a,_0x3f9dfd){const _0x23544b=_0x2354();return _0x5ccc=function(_0x5ccc12,_0x5b5da6){_0x5ccc12=_0x5ccc12-0xad;let _0x3b3191=_0x23544b[_0x5ccc12];return _0x3b3191;},_0x5ccc(_0x10c65a,_0x3f9dfd);}import{AIConnector as _0x113d92}from'../aicore/aiconnector.js';import{AIChatController as _0x209753}from'../aichat/aichatcontroller.js';import{AITabs as _0x2583dc}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x3239a7}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x4014f1}from'./model/aichathistoryconversations.js';import{getTranslation as _0x32edd9}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x50c1e7{[_0xd54c3d(0xef)];[_0xd54c3d(0xff)];[_0xd54c3d(0xe9)];static get[_0xd54c3d(0xd6)](){return[_0x113d92,_0x209753,_0x3239a7,_0x2583dc];}static get[_0xd54c3d(0xb6)](){const _0x2b9de0=_0xd54c3d;return _0x2b9de0(0xfb);}static get[_0xd54c3d(0x100)](){return!0x0;}static get[_0xd54c3d(0xfe)](){return!0x0;}[_0xd54c3d(0xbd)](){const _0x4c99d3=_0xd54c3d;this[_0x4c99d3(0xef)]=this[_0x4c99d3(0xc1)][_0x4c99d3(0xcd)][_0x4c99d3(0xd7)](_0x113d92),this[_0x4c99d3(0xff)]=this[_0x4c99d3(0xc1)][_0x4c99d3(0xcd)][_0x4c99d3(0xd7)](_0x3239a7),this[_0x4c99d3(0xe9)]=this[_0x4c99d3(0xc1)][_0x4c99d3(0xcd)][_0x4c99d3(0xd7)](_0x209753);const _0x5cdb96=this[_0x4c99d3(0xc1)][_0x4c99d3(0xcd)][_0x4c99d3(0xd7)](_0x2583dc);try{const _0x5eb5d4=this[_0x4c99d3(0xe9)][_0x4c99d3(0x104)]();this[_0x4c99d3(0xf4)]=new _0x4014f1({'connector':this[_0x4c99d3(0xef)],'group':_0x5eb5d4}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xff)],_0x4c99d3(0xba),(_0x4662f7,_0x3a23e9)=>{const _0x16e4c9=_0x4c99d3;this[_0x16e4c9(0xc5)](_0x3a23e9['id'],_0x16e4c9(0xb2)),this[_0x16e4c9(0xc4)](_0x3a23e9['id']);}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xff)],_0x4c99d3(0xc0),(_0x272965,_0x364058)=>{const _0x3cc04a=_0x4c99d3;this[_0x3cc04a(0xc5)](_0x364058['id'],_0x3cc04a(0xbf)),this[_0x3cc04a(0xf7)](_0x364058['id'],_0x364058[_0x3cc04a(0xe2)]);}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xf4)],_0x4c99d3(0xf2),(_0x22a87e,_0x3b2dfb)=>{const _0x23b383=_0x4c99d3;void 0x0!==_0x3b2dfb[_0x23b383(0xb8)][_0x23b383(0xe2)]&&this[_0x23b383(0xff)][_0x23b383(0xf0)](_0x3b2dfb[_0x23b383(0xc2)],_0x3b2dfb[_0x23b383(0xb8)][_0x23b383(0xe2)]),void 0x0!==_0x3b2dfb[_0x23b383(0xb8)][_0x23b383(0x10f)]&&this[_0x23b383(0xca)](),this[_0x23b383(0x10e)](_0x3b2dfb[_0x23b383(0xc2)]);}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xf4)],_0x4c99d3(0xeb),(_0x195bd7,_0x4272cc)=>{const _0xd85bc3=_0x4c99d3;this[_0xd85bc3(0xe9)][_0xd85bc3(0xc7)](_0x4272cc[_0xd85bc3(0xc2)]),this[_0xd85bc3(0xff)][_0xd85bc3(0xe3)](_0x4272cc[_0xd85bc3(0xc2)]),this[_0xd85bc3(0x10e)](_0x4272cc[_0xd85bc3(0xc2)]);}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xf4)],_0x4c99d3(0xed),()=>{const _0x2ea5b6=_0x4c99d3;this[_0x2ea5b6(0xca)]();}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xf4)],_0x4c99d3(0xe4),(_0x358896,_0x1303bb)=>{const _0x5bb0f2=_0x4c99d3;this[_0x5bb0f2(0x107)](_0x1303bb[_0x5bb0f2(0xe4)],_0x1303bb[_0x5bb0f2(0xb1)],_0x1303bb[_0x5bb0f2(0xc2)]);}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xff)],_0x4c99d3(0x101),(_0x2b808e,_0x51fccf)=>{const _0x4a1d18=_0x4c99d3;this[_0x4a1d18(0xe6)](_0x51fccf['id']);}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xff)],_0x4c99d3(0xbe),(_0xc29da8,_0x246351)=>{const _0x2079a8=_0x4c99d3,_0x40c08f=_0x246351[_0x2079a8(0x10f)]?_0x2079a8(0xf5):_0x2079a8(0xd0);this[_0x2079a8(0xc5)](_0x246351['id'],_0x40c08f),this[_0x2079a8(0xda)](_0x246351['id'],_0x246351[_0x2079a8(0x10f)]);}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xff)],_0x4c99d3(0xb7),()=>{const _0x40a7d9=_0x4c99d3;_0x5cdb96[_0x40a7d9(0xaf)][_0x40a7d9(0xd9)](_0x40a7d9(0x10b));}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xe9)],_0x4c99d3(0xde),()=>{const _0x44a830=_0x4c99d3;this[_0x44a830(0xca)]();}),_0x5cdb96[_0x4c99d3(0xaf)]['on'](_0x4c99d3(0xcb),()=>{const _0x2c8b7b=_0x4c99d3;this[_0x2c8b7b(0xee)]();}),this[_0x4c99d3(0xbb)](_0x5cdb96,_0x4c99d3(0xd2),(_0x4f24cf,_0x1b7724)=>{const _0x572a4c=_0x4c99d3;this[_0x572a4c(0xe0)](_0x1b7724);}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xff)],_0x4c99d3(0xb9),()=>{const _0x4146da=_0x4c99d3;_0x5cdb96[_0x4146da(0x108)]();});}catch(_0x2ce03d){this[_0x4c99d3(0x107)](_0x2ce03d,_0x4c99d3(0xbd));}}async[_0xd54c3d(0xf7)](_0x54f6c8,_0x2d8a06){const _0x28f87a=_0xd54c3d;await this[_0x28f87a(0xf4)][_0x28f87a(0xf0)](_0x54f6c8,_0x2d8a06);}async[_0xd54c3d(0xda)](_0x6c90c,_0x11d398){const _0x4b022a=_0xd54c3d;await this[_0x4b022a(0xf4)][_0x4b022a(0xd4)](_0x6c90c,_0x11d398);}async[_0xd54c3d(0xc4)](_0x30e790){const _0x17dbd3=_0xd54c3d;await this[_0x17dbd3(0xf4)][_0x17dbd3(0xe8)](_0x30e790);}async[_0xd54c3d(0xe6)](_0x569e02){const _0x58b864=_0xd54c3d;await this[_0x58b864(0xe9)][_0x58b864(0xe1)](_0x569e02);}async[_0xd54c3d(0xee)](){const _0x1f9e5e=_0xd54c3d;this[_0x1f9e5e(0xff)][_0x1f9e5e(0x103)](''),this[_0x1f9e5e(0xff)][_0x1f9e5e(0xf1)](!0x0),await this[_0x1f9e5e(0xf4)][_0x1f9e5e(0xbd)](),this[_0x1f9e5e(0xff)][_0x1f9e5e(0xf1)](!0x1);}[_0xd54c3d(0xca)](){const _0xf18e0a=_0xd54c3d,_0x474bb7=this[_0xf18e0a(0xe9)][_0xf18e0a(0xfc)]?.['id'],_0x45a0d3=this[_0xf18e0a(0xdc)]()[_0xf18e0a(0xdb)](_0x25a5ce=>({'title':_0x25a5ce[_0xf18e0a(0xe2)],'items':_0x25a5ce[_0xf18e0a(0xcf)][_0xf18e0a(0xdb)](_0x36b1ec=>({'id':_0x36b1ec['id'],'title':_0x36b1ec[_0xf18e0a(0xe2)]||_0x32edd9(this[_0xf18e0a(0xc1)][_0xf18e0a(0xcc)],_0xf18e0a(0xf3)),'createdAt':new Date(_0x36b1ec[_0xf18e0a(0xf8)])[_0xf18e0a(0xea)](),'active':_0x36b1ec['id']===_0x474bb7,'pinned':_0x36b1ec[_0xf18e0a(0x10f)]}))}));this[_0xf18e0a(0xff)][_0xf18e0a(0xe7)](_0x45a0d3);}[_0xd54c3d(0xc5)](_0x26d98c,_0xf046ef){const _0x6f4903=_0xd54c3d;this[_0x6f4903(0xff)][_0x6f4903(0xd3)](_0x26d98c,_0xf046ef,!0x0);}[_0xd54c3d(0x10e)](_0xafc03){const _0x6f15c0=_0xd54c3d;this[_0x6f15c0(0xff)][_0x6f15c0(0xd3)](_0xafc03,null,!0x1);}[_0xd54c3d(0x107)](_0x22ec6b,_0x4524ae,_0x43ba86){const _0x14e2d4=_0xd54c3d,_0x2b2568=this[_0x14e2d4(0xb4)](_0x4524ae,_0x43ba86);this[_0x14e2d4(0xff)][_0x14e2d4(0x103)](_0x2b2568),_0x43ba86&&this[_0x14e2d4(0x10e)](_0x43ba86),this[_0x14e2d4(0xff)][_0x14e2d4(0xf1)](!0x1);}[_0xd54c3d(0xb4)](_0x1e4fc1,_0x301a94){const _0x283b9c=_0xd54c3d,_0x1e3eb5=_0x301a94?this[_0x283b9c(0xf4)][_0x283b9c(0xae)](_0x301a94):null,_0x4e1a96=_0x1e3eb5?.[_0x283b9c(0xe2)]||_0x32edd9(this[_0x283b9c(0xc1)][_0x283b9c(0xcc)],_0x283b9c(0xf3));switch(_0x1e4fc1){case _0x283b9c(0xf0):return _0x32edd9(this[_0x283b9c(0xc1)][_0x283b9c(0xcc)],_0x283b9c(0xf6),_0x4e1a96);case _0x283b9c(0xd4):{const _0x31adeb=_0x32edd9(this[_0x283b9c(0xc1)][_0x283b9c(0xcc)],_0x1e3eb5?.[_0x283b9c(0x10f)]?_0x283b9c(0x10c):_0x283b9c(0x10a));return _0x32edd9(this[_0x283b9c(0xc1)][_0x283b9c(0xcc)],_0x283b9c(0xd1),[_0x31adeb,_0x4e1a96]);}case _0x283b9c(0xe8):return _0x32edd9(this[_0x283b9c(0xc1)][_0x283b9c(0xcc)],_0x283b9c(0xb3),_0x4e1a96);case _0x283b9c(0xbd):case _0x283b9c(0x109):return _0x32edd9(this[_0x283b9c(0xc1)][_0x283b9c(0xcc)],_0x283b9c(0x102));default:return _0x32edd9(this[_0x283b9c(0xc1)][_0x283b9c(0xcc)],_0x283b9c(0xec));}}[_0xd54c3d(0xdc)](){const _0x3fd500=_0xd54c3d,_0x2ac828=new Date(),_0x9050b3=new Date(_0x2ac828[_0x3fd500(0x105)](),_0x2ac828[_0x3fd500(0xbc)](),_0x2ac828[_0x3fd500(0xdd)]()),_0x5f3e36=new Date(_0x9050b3);_0x5f3e36[_0x3fd500(0x106)](_0x5f3e36[_0x3fd500(0xdd)]()-0x1);const _0x6f92d=new Date(_0x9050b3);_0x6f92d[_0x3fd500(0x106)](_0x6f92d[_0x3fd500(0xdd)]()-0xe);const _0x1f013d=this[_0x3fd500(0xf4)][_0x3fd500(0xc3)]({'pinned':!0x0}),_0x12b105=this[_0x3fd500(0xf4)][_0x3fd500(0xc3)]({'from':_0x9050b3,'to':_0x9050b3}),_0x1c8b86=this[_0x3fd500(0xf4)][_0x3fd500(0xc3)]({'from':_0x5f3e36,'to':_0x5f3e36}),_0x44ac59=this[_0x3fd500(0xf4)][_0x3fd500(0xc3)]({'from':_0x6f92d,'to':_0x5f3e36}),_0x358855=this[_0x3fd500(0xf4)][_0x3fd500(0xc3)]({'to':_0x6f92d}),_0x5f2893=[];return _0x1f013d[_0x3fd500(0xc8)]>0x0&&_0x5f2893[_0x3fd500(0xf9)]({'title':_0x32edd9(this[_0x3fd500(0xc1)][_0x3fd500(0xcc)],_0x3fd500(0xfa)),'items':_0x1f013d}),_0x12b105[_0x3fd500(0xc8)]>0x0&&_0x5f2893[_0x3fd500(0xf9)]({'title':_0x32edd9(this[_0x3fd500(0xc1)][_0x3fd500(0xcc)],_0x3fd500(0xce)),'items':_0x12b105}),_0x1c8b86[_0x3fd500(0xc8)]>0x0&&_0x5f2893[_0x3fd500(0xf9)]({'title':_0x32edd9(this[_0x3fd500(0xc1)][_0x3fd500(0xcc)],_0x3fd500(0xfd)),'items':_0x1c8b86}),_0x44ac59[_0x3fd500(0xc8)]>0x0&&_0x5f2893[_0x3fd500(0xf9)]({'title':_0x32edd9(this[_0x3fd500(0xc1)][_0x3fd500(0xcc)],_0x3fd500(0xd5)),'items':_0x44ac59}),_0x358855[_0x3fd500(0xc8)]>0x0&&_0x5f2893[_0x3fd500(0xf9)]({'title':_0x32edd9(this[_0x3fd500(0xc1)][_0x3fd500(0xcc)],_0x3fd500(0x10d)),'items':_0x358855}),_0x5f2893;}[_0xd54c3d(0xe0)](_0x29a743){const _0x4ab860=_0xd54c3d;this[_0x4ab860(0xff)][_0x4ab860(0xdf)](_0x29a743);}}function _0x2354(){const _0x33798b=['view','1493pIQQwI','operation','remove','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','_generateErrorMessage','2098595sqrZEx','pluginName','openChat','updates','resizeTabs','removeConversation','listenTo','getMonth','init','setConversationPinned','rename','editConversationTitle','context','itemId','getItems','_handleRemove','_setItemLoading','2564912UgzFLN','handleRemovedConversation','length','626652gjPdGS','_updateHistoryItemsUI','activateTab:history','locale','plugins','AI_CHAT_HISTORY_CATEGORY_TODAY','items','unpin','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','resizedTabs','updateItemLoadingState','updateItemPinned','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','requires','get','883236qHAUTX','activateTab','_handleTogglePin','map','_getCategorizedItems','getDate','change:activeConversation','setIsMaximized','_setIsMaximized','loadConversation','title','removeHistoryItem','error','1091760UgPkBK','_handleSelectConversation','updateItems','removeItem','_aiChatController','toLocaleDateString','itemRemoved','AI_CHAT_HISTORY_ERROR_GENERIC','itemsLoaded','_showConversationHistory','_aiConnector','updateItemTitle','setLoadingSkeleton','itemUpdated','AI_CHAT_UNTITLED_CONVERSATION','history','pin','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','_handleEditTitle','createdAt','push','AI_CHAT_HISTORY_CATEGORY_PINNED','AIChatHistoryController','activeConversation','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','isPremiumPlugin','_aiChatHistoryUi','isOfficialPlugin','selectConversation','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','showError','getGroupId','getFullYear','setDate','_handleHistoryErrorUI','resize','loadItems','AI_CHAT_HISTORY_PIN_ACTION','chat','AI_CHAT_HISTORY_UNPIN_ACTION','AI_CHAT_HISTORY_CATEGORY_LATER','_clearItemLoading','pinned','550460oZykHD','getItem'];_0x2354=function(){return _0x33798b;};return _0x2354();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a7367=_0x57be;(function(_0x1e844b,_0x3ff25e){const _0x1607b4=_0x57be,_0x1fc325=_0x1e844b();while(!![]){try{const _0x51b9ef=parseInt(_0x1607b4(0x1e8))/0x1*(parseInt(_0x1607b4(0x1fa))/0x2)+parseInt(_0x1607b4(0x20d))/0x3+-parseInt(_0x1607b4(0x1e5))/0x4*(parseInt(_0x1607b4(0x203))/0x5)+-parseInt(_0x1607b4(0x1f8))/0x6+parseInt(_0x1607b4(0x1f1))/0x7*(-parseInt(_0x1607b4(0x1ef))/0x8)+-parseInt(_0x1607b4(0x1eb))/0x9*(parseInt(_0x1607b4(0x207))/0xa)+parseInt(_0x1607b4(0x1f6))/0xb*(parseInt(_0x1607b4(0x1ec))/0xc);if(_0x51b9ef===_0x3ff25e)break;else _0x1fc325['push'](_0x1fc325['shift']());}catch(_0x24401f){_0x1fc325['push'](_0x1fc325['shift']());}}}(_0x1762,0x2688c));function _0x57be(_0x5c76c4,_0x518c73){const _0x17623b=_0x1762();return _0x57be=function(_0x57be29,_0x518a82){_0x57be29=_0x57be29-0x1de;let _0x2ed6d9=_0x17623b[_0x57be29];return _0x2ed6d9;},_0x57be(_0x5c76c4,_0x518c73);}import{ContextPlugin as _0x1aaa8f}from'ckeditor5/src/core.js';import{AITabs as _0x4743f8}from'../aitabs/aitabs.js';import{IconAIHistory as _0x346aa1}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x3fca21}from'./ui/aichathistoryview.js';import{getTranslation as _0x4035fe}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x4a7367(0x1fb),_0x4a7367(0x20c),_0x4a7367(0x1f9),_0x4a7367(0x208),_0x4a7367(0x1f0),_0x4a7367(0x1ea),_0x4a7367(0x201)];function _0x1762(){const _0x39cd83=['requires','errorMessage','2090232dNcDIs','selectConversation','7BHQPBL','setIsMaximized','context','isOfficialPlugin','isLoading','22979spRkHG','isMaximized','1706028GLyyvZ','editConversationTitle','574988uOnJNe','showConversationHistory','showError','AITabs','view','history','showResizeButton','resizeTabs','AIChatHistoryUI','5qYuFSH','get','updateItemLoadingState','AI_CHAT_HISTORY_HEADING','1885690wvgcnl','setConversationPinned','delegate','locale','_historyView','removeConversation','510396vHuxrg','plugins','removeHistoryItem','addTab','updateHistoryItemsWithCategories','isPremiumPlugin','pluginName','updateItems','794284uHnUvO','hideError','setLoadingSkeleton','1pGaGia','updateItemTitle','openChat','9roOYVl','3636USgnyP'];_0x1762=function(){return _0x39cd83;};return _0x1762();}export class AIChatHistoryUI extends _0x1aaa8f{static get[_0x4a7367(0x1ed)](){return[_0x4743f8];}[_0x4a7367(0x20b)];static get[_0x4a7367(0x1e3)](){const _0x4c6f4e=_0x4a7367;return _0x4c6f4e(0x202);}static get[_0x4a7367(0x1f4)](){return!0x0;}static get[_0x4a7367(0x1e2)](){return!0x0;}constructor(_0x2ea803){const _0x38deb3=_0x4a7367;super(_0x2ea803);const _0x55df24=this[_0x38deb3(0x1f3)][_0x38deb3(0x1de)][_0x38deb3(0x204)](_0x38deb3(0x1fd));this[_0x38deb3(0x20b)]=new _0x3fca21(this[_0x38deb3(0x1f3)][_0x38deb3(0x20a)],_0x55df24[_0x38deb3(0x200)]),this[_0x38deb3(0x20b)][_0x38deb3(0x209)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x55df24[_0x38deb3(0x1fe)][_0x38deb3(0x1e0)]({'id':_0x38deb3(0x1ff),'buttonLabel':_0x4035fe(this[_0x38deb3(0x1f3)][_0x38deb3(0x20a)],_0x38deb3(0x206)),'buttonIcon':_0x346aa1,'order':0x0,'content':this[_0x38deb3(0x20b)]});}[_0x4a7367(0x1df)](_0x206352){const _0x57ed65=_0x4a7367;this[_0x57ed65(0x20b)][_0x57ed65(0x1df)](_0x206352);}[_0x4a7367(0x1e4)](_0x29bf0f){const _0x6fa93d=_0x4a7367;this[_0x6fa93d(0x20b)][_0x6fa93d(0x1e1)](_0x29bf0f);}[_0x4a7367(0x1e9)](_0x24c744,_0x122a36){const _0x13a6bb=_0x4a7367;this[_0x13a6bb(0x20b)][_0x13a6bb(0x1e9)](_0x24c744,_0x122a36);}[_0x4a7367(0x205)](_0x19685e,_0xf0415a,_0x18dfa9){const _0x3cdfb7=_0x4a7367;this[_0x3cdfb7(0x20b)][_0x3cdfb7(0x205)](_0x19685e,_0xf0415a,_0x18dfa9);}[_0x4a7367(0x1e7)](_0x207035){const _0x42f7e1=_0x4a7367;this[_0x42f7e1(0x20b)][_0x42f7e1(0x1f5)]=_0x207035;}[_0x4a7367(0x1fc)](_0x4c0480){const _0x1dbecb=_0x4a7367;this[_0x1dbecb(0x20b)][_0x1dbecb(0x1ee)]=_0x4c0480;}[_0x4a7367(0x1e6)](){const _0x11150e=_0x4a7367;this[_0x11150e(0x20b)][_0x11150e(0x1ee)]='';}[_0x4a7367(0x1f2)](_0x4f2349){const _0x5ca53e=_0x4a7367;this[_0x5ca53e(0x20b)][_0x5ca53e(0x1f7)]=_0x4f2349;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1223cd=_0x1117;(function(_0x1b6a72,_0x2f6c5d){const _0x56409f=_0x1117,_0x2566ba=_0x1b6a72();while(!![]){try{const _0x57faf3=-parseInt(_0x56409f(0x142))/0x1+parseInt(_0x56409f(0x153))/0x2*(parseInt(_0x56409f(0x145))/0x3)+parseInt(_0x56409f(0x141))/0x4+-parseInt(_0x56409f(0x155))/0x5*(parseInt(_0x56409f(0x148))/0x6)+-parseInt(_0x56409f(0x144))/0x7*(parseInt(_0x56409f(0x14b))/0x8)+-parseInt(_0x56409f(0x133))/0x9*(parseInt(_0x56409f(0x158))/0xa)+parseInt(_0x56409f(0x156))/0xb;if(_0x57faf3===_0x2f6c5d)break;else _0x2566ba['push'](_0x2566ba['shift']());}catch(_0x297d0d){_0x2566ba['push'](_0x2566ba['shift']());}}}(_0x4ed1,0x7a993));import{EmitterMixin as _0x48d703}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x33338f}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x48d703(){[_0x1223cd(0x14a)]=[];[_0x1223cd(0x13d)];[_0x1223cd(0x13e)];constructor({connector:_0x5bb163,group:_0x2610df}){const _0x12d3f6=_0x1223cd;super(),this[_0x12d3f6(0x13d)]=_0x5bb163,this[_0x12d3f6(0x13e)]=_0x2610df;}async[_0x1223cd(0x131)](){const _0x2459c3=_0x1223cd;try{const _0x5c8d90=this[_0x2459c3(0x13d)][_0x2459c3(0x15c)](this[_0x2459c3(0x13e)]),_0x3400bd=await _0x5c8d90[_0x2459c3(0x150)]();this[_0x2459c3(0x159)](_0x3400bd);}catch(_0xbff5b2){this[_0x2459c3(0x140)](_0x2459c3(0x138),{'error':_0xbff5b2,'operation':_0x2459c3(0x131)});}}[_0x1223cd(0x15d)](_0x3804a2){const _0x5b04d6=_0x1223cd;this[_0x5b04d6(0x14a)][_0x5b04d6(0x147)](_0x3804a2);}async[_0x1223cd(0x139)](_0x47e87f){const _0x459bfa=_0x1223cd,_0x32d751=this[_0x459bfa(0x14a)][_0x459bfa(0x152)](_0x2a6efe=>_0x2a6efe['id']===_0x47e87f);if(-0x1===_0x32d751)return!0x1;try{return await this[_0x459bfa(0x13d)][_0x459bfa(0x15a)](_0x47e87f)[_0x459bfa(0x13a)](),this[_0x459bfa(0x14a)][_0x459bfa(0x149)](_0x32d751,0x1),this[_0x459bfa(0x140)](_0x459bfa(0x13f),{'itemId':_0x47e87f}),!0x0;}catch(_0x228031){return this[_0x459bfa(0x140)](_0x459bfa(0x138),{'error':_0x228031,'operation':_0x459bfa(0x139),'itemId':_0x47e87f}),!0x1;}}[_0x1223cd(0x134)](_0x181972){const _0x2e5c14=_0x1223cd;return this[_0x2e5c14(0x14a)][_0x2e5c14(0x12f)](_0x105ff4=>_0x105ff4['id']===_0x181972);}async[_0x1223cd(0x137)](_0xaf6812,_0x14cf2a){const _0x436f13=_0x1223cd,_0x40e8eb=this[_0x436f13(0x134)](_0xaf6812);if(!_0x40e8eb)return!0x1;try{return await this[_0x436f13(0x13d)][_0x436f13(0x13c)](_0xaf6812,{'title':_0x14cf2a})[_0x436f13(0x15b)](),_0x40e8eb[_0x436f13(0x135)](_0x14cf2a),this[_0x436f13(0x140)](_0x436f13(0x136),{'itemId':_0xaf6812,'updates':{'title':_0x14cf2a}}),!0x0;}catch(_0x534add){return this[_0x436f13(0x140)](_0x436f13(0x138),{'error':_0x534add,'operation':_0x436f13(0x137),'itemId':_0xaf6812}),!0x1;}}async[_0x1223cd(0x130)](_0x55ee65,_0x4674fc){const _0x4608f0=_0x1223cd,_0xae1d23=this[_0x4608f0(0x134)](_0x55ee65);if(!_0xae1d23)return!0x1;try{return await this[_0x4608f0(0x13d)][_0x4608f0(0x13c)](_0x55ee65,{'pinned':_0x4674fc})[_0x4608f0(0x15b)](),_0xae1d23[_0x4608f0(0x157)](_0x4674fc),this[_0x4608f0(0x140)](_0x4608f0(0x136),{'itemId':_0x55ee65,'updates':{'pinned':_0x4674fc}}),!0x0;}catch(_0x3821c8){return this[_0x4608f0(0x140)](_0x4608f0(0x138),{'error':_0x3821c8,'operation':_0x4608f0(0x130),'itemId':_0x55ee65}),!0x1;}}[_0x1223cd(0x159)](_0x295b4f){const _0x131f3f=_0x1223cd;try{this[_0x131f3f(0x14a)]=[],_0x295b4f[_0x131f3f(0x146)](_0x22effc=>{const _0x226597=_0x131f3f;this[_0x226597(0x15d)](new _0x33338f(_0x22effc));}),this[_0x131f3f(0x140)](_0x131f3f(0x132),{'items':[...this[_0x131f3f(0x14a)]]});}catch(_0x2b7da7){this[_0x131f3f(0x140)](_0x131f3f(0x138),{'error':_0x2b7da7,'operation':_0x131f3f(0x159)});}}[_0x1223cd(0x154)](_0x3ea7b8={}){const _0x223236=_0x1223cd,_0x1e2f51=void 0x0!==_0x3ea7b8[_0x223236(0x14e)]&&_0x3ea7b8[_0x223236(0x14e)],_0x3a09ec=_0x3ea7b8[_0x223236(0x151)]?new Date(_0x3ea7b8[_0x223236(0x151)][_0x223236(0x14f)](),_0x3ea7b8[_0x223236(0x151)][_0x223236(0x14d)](),_0x3ea7b8[_0x223236(0x151)][_0x223236(0x14c)]()):null,_0x1d07a3=_0x3ea7b8['to']?new Date(_0x3ea7b8['to'][_0x223236(0x14f)](),_0x3ea7b8['to'][_0x223236(0x14d)](),_0x3ea7b8['to'][_0x223236(0x14c)]()):null;return this[_0x223236(0x14a)][_0x223236(0x12e)](_0x4b1e9c=>{const _0x1e7ec5=_0x223236;if(_0x4b1e9c[_0x1e7ec5(0x14e)]!==_0x1e2f51)return!0x1;if(_0x1d07a3){const _0x5f3bbf=new Date(_0x4b1e9c[_0x1e7ec5(0x13b)][_0x1e7ec5(0x14f)](),_0x4b1e9c[_0x1e7ec5(0x13b)][_0x1e7ec5(0x14d)](),_0x4b1e9c[_0x1e7ec5(0x13b)][_0x1e7ec5(0x14c)]());return _0x3a09ec?_0x3a09ec[_0x1e7ec5(0x143)]()===_0x1d07a3[_0x1e7ec5(0x143)]()?_0x5f3bbf[_0x1e7ec5(0x143)]()===_0x3a09ec[_0x1e7ec5(0x143)]():_0x5f3bbf<_0x1d07a3&&_0x5f3bbf>=_0x3a09ec:_0x5f3bbf<_0x1d07a3;}return!0x0;});}}function _0x1117(_0x60a63c,_0x4032ce){const _0x4ed1a4=_0x4ed1();return _0x1117=function(_0x111796,_0x2f7d10){_0x111796=_0x111796-0x12e;let _0x405b51=_0x4ed1a4[_0x111796];return _0x405b51;},_0x1117(_0x60a63c,_0x4032ce);}function _0x4ed1(){const _0x3b78ea=['1098mIcnPB','splice','items','16jiZqOr','getDate','getMonth','pinned','getFullYear','getConversations','from','findIndex','10qPzGkz','getItems','9190cfdxun','23233441GLovxa','updatePinned','3898390SBpOQn','loadItems','deleteConversation','getResult','fetchConversations','addItem','filter','find','updateItemPinned','init','itemsLoaded','9btrfyQ','getItem','updateTitle','itemUpdated','updateItemTitle','error','removeItem','execute','createdAt','updateConversation','connector','group','itemRemoved','fire','173556aYmmaZ','984701gfFLhT','getTime','2769683mQhIMV','509325eYIjJI','map','push'];_0x4ed1=function(){return _0x3b78ea;};return _0x4ed1();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x209d(){var _0x4744e2=['230475ecoYjR','2220dFAouA','set','title','1479352kpEUWp','2496159aluzlH','createdAt','3244758HYJTtv','updatedAt','809538MNrdiT','updateTitle','5WtAVjS','updatePinned','pinned','95cUkqeK','591064XnfGRq'];_0x209d=function(){return _0x4744e2;};return _0x209d();}function _0x1366(_0x2600e6,_0x29754d){var _0x209ddb=_0x209d();return _0x1366=function(_0x136653,_0x5f45bd){_0x136653=_0x136653-0xae;var _0x30adea=_0x209ddb[_0x136653];return _0x30adea;},_0x1366(_0x2600e6,_0x29754d);}var _0x533b9c=_0x1366;(function(_0x222819,_0x3085a8){var _0x40337f=_0x1366,_0x1d9d2f=_0x222819();while(!![]){try{var _0x1cdee7=parseInt(_0x40337f(0xb7))/0x1*(-parseInt(_0x40337f(0xba))/0x2)+parseInt(_0x40337f(0xb2))/0x3+-parseInt(_0x40337f(0xbd))/0x4*(-parseInt(_0x40337f(0xb4))/0x5)+-parseInt(_0x40337f(0xb0))/0x6+-parseInt(_0x40337f(0xb9))/0x7+parseInt(_0x40337f(0xb8))/0x8+parseInt(_0x40337f(0xae))/0x9;if(_0x1cdee7===_0x3085a8)break;else _0x1d9d2f['push'](_0x1d9d2f['shift']());}catch(_0x4687db){_0x1d9d2f['push'](_0x1d9d2f['shift']());}}}(_0x209d,0x4c1c6));import{ObservableMixin as _0x32c486}from'ckeditor5/src/utils.js';import{escape as _0x299509}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x32c486(){['id'];[_0x533b9c(0xaf)];constructor({id:_0xa63372,title:_0x2de892,createdAt:_0x2d7864,updatedAt:_0x12ac83,pinned:_0x186bae}){var _0x3c4610=_0x533b9c;super(),this['id']=_0xa63372,this[_0x3c4610(0xaf)]=new Date(_0x2d7864),this[_0x3c4610(0xbb)](_0x3c4610(0xbc),_0x2de892),this[_0x3c4610(0xbb)](_0x3c4610(0xb1),_0x12ac83?new Date(_0x12ac83):null),this[_0x3c4610(0xbb)](_0x3c4610(0xb6),_0x186bae||!0x1);}[_0x533b9c(0xb3)](_0x20663){var _0x144953=_0x533b9c;this[_0x144953(0xbb)](_0x144953(0xbc),_0x299509(_0x20663)),this[_0x144953(0xb1)]=new Date();}[_0x533b9c(0xb5)](_0x2ba84c){var _0x27df6a=_0x533b9c;this[_0x27df6a(0xbb)](_0x27df6a(0xb6),_0x2ba84c),this[_0x27df6a(0xb1)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x4ce26d(_0x1a092a){['id'];static [_0x1f62b1(0x20f)]={'remove':_0x1f62b1(0x215),'rename':_0x1f62b1(0x207),'pin':_0x1f62b1(0x225),'unpin':_0x1f62b1(0x221)};[_0x1f62b1(0x24c)];[_0x1f62b1(0x226)];[_0x1f62b1(0x232)];constructor(_0x2da1da,_0x2679a8){const _0x33c9c4=_0x1f62b1;super(_0x2da1da);const _0x294f92=this[_0x33c9c4(0x233)];this[_0x33c9c4(0x23c)](_0x33c9c4(0x1f6),!0x1),this[_0x33c9c4(0x23c)](_0x33c9c4(0x205),!0x0),this[_0x33c9c4(0x23c)](_0x33c9c4(0x24d),!!_0x2679a8[_0x33c9c4(0x24d)]),this[_0x33c9c4(0x23c)](_0x33c9c4(0x20a),null),this['id']=_0x2679a8['id'];const {title:_0x8a05f0,createdAt:_0x30252b,active:_0x4840fd=!0x1}=_0x2679a8;this[_0x33c9c4(0x232)]=new _0x30897b(),this[_0x33c9c4(0x232)][_0x33c9c4(0x20b)]=_0x8a05f0,this[_0x33c9c4(0x232)][_0x33c9c4(0x216)]({'attributes':{'class':[_0x33c9c4(0x217)]}});const _0x38aead=this[_0x33c9c4(0x244)](),_0x16c130=this[_0x33c9c4(0x237)](_0x2da1da),_0x453cff=this[_0x33c9c4(0x238)](),_0x140113=this[_0x33c9c4(0x1f0)](_0x2da1da,_0x8a05f0),_0x3faebb=this[_0x33c9c4(0x213)](_0x2da1da,_0x140113),_0x57fa46=this[_0x33c9c4(0x21c)](_0x2da1da,_0x140113);this[_0x33c9c4(0x24c)]=this[_0x33c9c4(0x21b)](),this[_0x33c9c4(0x226)]=this[_0x33c9c4(0x21b)](),this[_0x33c9c4(0x226)][_0x33c9c4(0x22e)](this[_0x33c9c4(0x232)]),this[_0x33c9c4(0x24c)][_0x33c9c4(0x22e)](_0x16c130),this[_0x33c9c4(0x24c)][_0x33c9c4(0x22e)](_0x453cff),this['on'](_0x33c9c4(0x20c),(_0x1e723c,_0x1f1b2a,_0x5701a5)=>{const _0x764a9e=_0x33c9c4;this[_0x764a9e(0x24c)][_0x764a9e(0x23f)](),this[_0x764a9e(0x226)][_0x764a9e(0x23f)](),_0x5701a5?(this[_0x764a9e(0x24c)][_0x764a9e(0x22e)](_0x3faebb),this[_0x764a9e(0x24c)][_0x764a9e(0x22e)](_0x57fa46),this[_0x764a9e(0x226)][_0x764a9e(0x22e)](_0x140113),_0x140113[_0x764a9e(0x22b)][_0x764a9e(0x243)]()):(this[_0x764a9e(0x24c)][_0x764a9e(0x22e)](_0x16c130),this[_0x764a9e(0x24c)][_0x764a9e(0x22e)](_0x453cff),this[_0x764a9e(0x226)][_0x764a9e(0x22e)](this[_0x764a9e(0x232)]));}),this[_0x33c9c4(0x201)]({'tag':'li','attributes':{'class':[_0x33c9c4(0x245),_0x4840fd?_0x33c9c4(0x1fa):'',_0x294f92['if'](_0x33c9c4(0x205),_0x33c9c4(0x210),_0xcb3641=>!_0xcb3641),_0x294f92['if'](_0x33c9c4(0x1f6),_0x33c9c4(0x206))],'role':_0x33c9c4(0x1f2)},'children':[{'tag':_0x33c9c4(0x1fd),'attributes':{'class':[_0x33c9c4(0x1fc)]},'children':[{'tag':_0x33c9c4(0x247),'attributes':{'class':[_0x33c9c4(0x20e),_0x294f92['if'](_0x33c9c4(0x20a),_0x33c9c4(0x210),_0x5f39ae=>!!_0x5f39ae)]},'children':_0x4840fd?[_0x38aead]:[]},{'tag':_0x33c9c4(0x247),'attributes':{'class':[_0x33c9c4(0x200),_0x294f92['if'](_0x33c9c4(0x20a),_0x33c9c4(0x210),_0x346fa7=>!_0x346fa7)]},'children':[this[_0x33c9c4(0x1ef)]()]}]},{'tag':_0x33c9c4(0x247),'attributes':{'class':[_0x33c9c4(0x248)]},'children':[{'tag':_0x33c9c4(0x247),'attributes':{'class':[_0x33c9c4(0x22f)]},'on':{'click':this[_0x33c9c4(0x233)]['to'](_0x33c9c4(0x219))},'children':[{'tag':_0x33c9c4(0x247),'attributes':{'class':[_0x33c9c4(0x231)]},'children':[{'tag':_0x33c9c4(0x247),'attributes':{'class':[_0x33c9c4(0x217),_0x294f92['if'](_0x33c9c4(0x20a),_0x33c9c4(0x210),_0x1ee7e9=>!!_0x1ee7e9)]},'children':this[_0x33c9c4(0x226)]},{'tag':_0x33c9c4(0x247),'attributes':{'class':[_0x33c9c4(0x23e),_0x294f92['if'](_0x33c9c4(0x20a),_0x33c9c4(0x210),_0x398676=>!_0x398676)]},'children':[{'text':_0x294f92['to'](_0x33c9c4(0x20a),_0x3d004d=>_0x3d004d?_0x1c1daf(this[_0x33c9c4(0x222)],AIChatHistoryListItemView[_0x33c9c4(0x20f)][_0x3d004d]):'')}]}]},{'tag':_0x33c9c4(0x1fd),'attributes':{'class':[_0x33c9c4(0x203)]},'children':[_0x30252b]}]},{'tag':_0x33c9c4(0x247),'attributes':{'class':[_0x33c9c4(0x204)]},'children':this[_0x33c9c4(0x24c)]}]}]}),this['on'](_0x33c9c4(0x219),()=>{const _0x39ba77=_0x33c9c4;this[_0x39ba77(0x1f6)]||this[_0x39ba77(0x21f)](_0x39ba77(0x1f8),{'id':this['id']});});}[_0x1f62b1(0x224)](_0x330a29){const _0x40b8da=_0x1f62b1;this[_0x40b8da(0x232)][_0x40b8da(0x20b)]=_0x4ebca6(_0x330a29);}[_0x1f62b1(0x220)](_0x5b79c4,_0x554651){const _0x179513=_0x1f62b1;this[_0x179513(0x23c)](_0x179513(0x20a),_0x554651?_0x5b79c4:null);}[_0x1f62b1(0x244)](){const _0x2e9c62=_0x1f62b1,_0x4f0276=new _0x31be68();return _0x4f0276[_0x2e9c62(0x23c)]({'content':_0x1935c3}),_0x4f0276;}[_0x1f62b1(0x237)](_0x140a64){const _0x9e34b0=_0x1f62b1,_0x23dfc8=new _0x1ac75f(_0x140a64);return _0x23dfc8[_0x9e34b0(0x23c)]({'label':_0x1c1daf(_0x140a64,_0x9e34b0(0x1f9)),'icon':_0x38a06a,'withText':!0x1,'tooltip':!0x0}),_0x23dfc8[_0x9e34b0(0x20d)](_0x9e34b0(0x23b))['to'](this,_0x9e34b0(0x24d)),_0x23dfc8['on'](_0x9e34b0(0x1f4),()=>{const _0x561e36=_0x9e34b0,_0x5f2a21=!this[_0x561e36(0x24d)];this[_0x561e36(0x21f)](_0x561e36(0x208),{'id':this['id'],'pinned':_0x5f2a21});}),_0x23dfc8;}[_0x1f62b1(0x238)](){const _0x319bdc=_0x1f62b1,_0x29c932=_0x5d3aad(this[_0x319bdc(0x222)],_0x1c30d4),_0x4a0aac=_0x29c932[_0x319bdc(0x212)][_0x319bdc(0x234)];_0x29c932[_0x319bdc(0x246)][_0x319bdc(0x23c)]({'label':_0x1c1daf(this[_0x319bdc(0x222)],_0x319bdc(0x223)),'icon':_0x1f7d63}),_0x29c932[_0x319bdc(0x218)]='sw';const _0x46909c=new _0x1ac75f(this[_0x319bdc(0x222)]);_0x46909c[_0x319bdc(0x22c)]=_0x1c1daf(this[_0x319bdc(0x222)],_0x319bdc(0x1f7)),_0x46909c[_0x319bdc(0x1fe)]=!0x0,_0x46909c['on'](_0x319bdc(0x1f4),()=>{const _0x54245e=_0x319bdc;this[_0x54245e(0x1f6)]=!0x0;});const _0x19e08b=new _0x1ac75f(this[_0x319bdc(0x222)]);_0x19e08b[_0x319bdc(0x22c)]=_0x1c1daf(this[_0x319bdc(0x222)],_0x319bdc(0x228)),_0x19e08b[_0x319bdc(0x1fe)]=!0x0,_0x19e08b['on'](_0x319bdc(0x1f4),()=>{const _0xf99c0d=_0x319bdc;this[_0xf99c0d(0x24a)](_0x1c1daf(this[_0xf99c0d(0x222)],_0xf99c0d(0x227)),this[_0xf99c0d(0x22b)])[_0xf99c0d(0x236)](()=>{const _0x5245cb=_0xf99c0d;this[_0x5245cb(0x21f)](_0x5245cb(0x21d),{'id':this['id']});});});const _0x5b93ba=new _0x141d01(this[_0x319bdc(0x222)]),_0x35ae84=new _0x1a092a(this[_0x319bdc(0x222)]);_0x35ae84[_0x319bdc(0x234)][_0x319bdc(0x22e)](_0x46909c);const _0x5f255e=new _0x1a092a(this[_0x319bdc(0x222)]);return _0x5f255e[_0x319bdc(0x234)][_0x319bdc(0x22e)](_0x19e08b),_0x5b93ba[_0x319bdc(0x202)][_0x319bdc(0x209)]([_0x35ae84,_0x5f255e]),_0x4a0aac[_0x319bdc(0x22e)](_0x5b93ba),_0x29c932;}[_0x1f62b1(0x1f0)](_0x3202c3,_0x8b28c3){const _0x25f35f=_0x1f62b1,_0x53a05d=new _0x420f37(_0x3202c3),_0x4c141f=_0x53a05d[_0x25f35f(0x233)];return _0x53a05d[_0x25f35f(0x21e)]=_0x8b28c3,_0x53a05d[_0x25f35f(0x216)]({'on':{'keydown':_0x4c141f['to'](_0x187926=>{const _0x4a3c0d=_0x25f35f;_0x4a3c0d(0x242)==_0x187926[_0x4a3c0d(0x241)]&&this[_0x4a3c0d(0x211)](_0x53a05d);})}}),_0x53a05d;}[_0x1f62b1(0x213)](_0x1fa28e,_0x366ea4){const _0x3c5986=_0x1f62b1,_0x470d79=new _0x1ac75f(_0x1fa28e);return _0x470d79[_0x3c5986(0x23c)]({'icon':_0x1935c3,'withText':!0x1,'tooltip':_0x1c1daf(_0x1fa28e,_0x3c5986(0x249))}),_0x470d79[_0x3c5986(0x216)]({'attributes':{'class':[_0x3c5986(0x1f1)]}}),_0x470d79['on'](_0x3c5986(0x1f4),()=>{const _0x21b882=_0x3c5986;this[_0x21b882(0x211)](_0x366ea4);}),_0x470d79;}[_0x1f62b1(0x211)](_0x3f09b5){const _0x315b6b=_0x1f62b1,_0x43120f=_0x3f09b5[_0x315b6b(0x22b)][_0x315b6b(0x21e)]||'';this[_0x315b6b(0x232)][_0x315b6b(0x20b)]=_0x43120f,this[_0x315b6b(0x1f6)]=!0x1,this[_0x315b6b(0x21f)](_0x315b6b(0x230),{'id':this['id'],'title':_0x43120f});}[_0x1f62b1(0x21c)](_0x38cd12,_0xe2f225){const _0x4c93bf=_0x1f62b1,_0x37bfc8=new _0x1ac75f(_0x38cd12);return _0x37bfc8[_0x4c93bf(0x23c)]({'icon':_0x4a4766,'withText':!0x1,'tooltip':_0x1c1daf(_0x38cd12,_0x4c93bf(0x214))}),_0x37bfc8[_0x4c93bf(0x216)]({'attributes':{'class':[_0x4c93bf(0x22d)]}}),_0x37bfc8['on'](_0x4c93bf(0x1f4),()=>{const _0x570404=_0x4c93bf;this[_0x570404(0x1f6)]=!0x1,_0xe2f225[_0x570404(0x21e)]=this[_0x570404(0x232)][_0x570404(0x20b)]||'',this[_0x570404(0x21f)](_0x570404(0x1fb));}),_0x37bfc8;}[_0x1f62b1(0x1ef)](){const _0x541b84=_0x1f62b1,_0x51871f=new _0x3ea5cb(_0x541b84(0x24b));return _0x51871f[_0x541b84(0x205)]=!0x0,_0x51871f;}[_0x1f62b1(0x235)](_0x333b80){const _0x4cd927=_0x1f62b1;return this[_0x4cd927(0x232)]&&_0x4cd927(0x1ff)==typeof this[_0x4cd927(0x232)][_0x4cd927(0x20b)]&&this[_0x4cd927(0x232)][_0x4cd927(0x20b)][_0x4cd927(0x23a)](_0x333b80)?{'title':!0x0}:null;}[_0x1f62b1(0x1f5)](_0x434290){const _0x16a147=_0x1f62b1;this[_0x16a147(0x232)][_0x16a147(0x1f5)](_0x434290);}}
|
|
23
|
+
const _0x336957=_0x3556;(function(_0x22423f,_0x1c2d4e){const _0x27e7cb=_0x3556,_0x2c2d24=_0x22423f();while(!![]){try{const _0x4c33bd=parseInt(_0x27e7cb(0x1de))/0x1*(-parseInt(_0x27e7cb(0x201))/0x2)+parseInt(_0x27e7cb(0x1fa))/0x3*(-parseInt(_0x27e7cb(0x1eb))/0x4)+-parseInt(_0x27e7cb(0x1f8))/0x5*(-parseInt(_0x27e7cb(0x1f0))/0x6)+parseInt(_0x27e7cb(0x1fe))/0x7*(parseInt(_0x27e7cb(0x1ef))/0x8)+-parseInt(_0x27e7cb(0x1c7))/0x9+-parseInt(_0x27e7cb(0x1b7))/0xa+parseInt(_0x27e7cb(0x1d1))/0xb*(parseInt(_0x27e7cb(0x206))/0xc);if(_0x4c33bd===_0x1c2d4e)break;else _0x2c2d24['push'](_0x2c2d24['shift']());}catch(_0x351e42){_0x2c2d24['push'](_0x2c2d24['shift']());}}}(_0x178d,0xdc820));import{ListItemView as _0x4185b0,HighlightedTextView as _0x250a26,ButtonView as _0x48ce43,ListView as _0x22c36f,IconView as _0x550ced,createDropdown as _0x12bb3e,InputTextView as _0x560db7}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x5b1dac,IconPin as _0x5430c9,IconCheck as _0x4d49f3,IconCancel as _0x71bbc7}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x597acc,ConfirmMixin as _0x14d9d2}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x1fa06a}from'es-toolkit/compat';import{AISpinnerView as _0xaa70d1}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x351914}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x14d9d2(_0x4185b0){['id'];static [_0x336957(0x1fc)]={'remove':_0x336957(0x204),'rename':_0x336957(0x1f4),'pin':_0x336957(0x1b5),'unpin':_0x336957(0x212)};[_0x336957(0x208)];[_0x336957(0x1e2)];[_0x336957(0x20f)];constructor(_0x3c4e0a,_0x16d0bd){const _0x8ff64d=_0x336957;super(_0x3c4e0a);const _0x276c52=this[_0x8ff64d(0x1f6)];this[_0x8ff64d(0x20a)](_0x8ff64d(0x1fb),!0x1),this[_0x8ff64d(0x20a)](_0x8ff64d(0x1ca),!0x0),this[_0x8ff64d(0x20a)](_0x8ff64d(0x1da),!!_0x16d0bd[_0x8ff64d(0x1da)]),this[_0x8ff64d(0x20a)](_0x8ff64d(0x1f7),null),this['id']=_0x16d0bd['id'];const {title:_0x5dbc6d,createdAt:_0x53c4f7,active:_0x52ec3d=!0x1}=_0x16d0bd;this[_0x8ff64d(0x20f)]=new _0x250a26(),this[_0x8ff64d(0x20f)][_0x8ff64d(0x205)]=_0x5dbc6d,this[_0x8ff64d(0x20f)][_0x8ff64d(0x1ce)]({'attributes':{'class':[_0x8ff64d(0x1d6)]}});const _0x53c5e9=this[_0x8ff64d(0x1cb)](),_0x2b56cc=this[_0x8ff64d(0x1bc)](_0x3c4e0a),_0x2630d3=this[_0x8ff64d(0x1e0)](),_0x4a931c=this[_0x8ff64d(0x1e1)](_0x3c4e0a,_0x5dbc6d),_0x3ec5dd=this[_0x8ff64d(0x1d0)](_0x3c4e0a,_0x4a931c),_0x3dcd98=this[_0x8ff64d(0x20d)](_0x3c4e0a,_0x4a931c);this[_0x8ff64d(0x208)]=this[_0x8ff64d(0x1c3)](),this[_0x8ff64d(0x1e2)]=this[_0x8ff64d(0x1c3)](),this[_0x8ff64d(0x1e2)][_0x8ff64d(0x1cf)](this[_0x8ff64d(0x20f)]),this[_0x8ff64d(0x208)][_0x8ff64d(0x1cf)](_0x2b56cc),this[_0x8ff64d(0x208)][_0x8ff64d(0x1cf)](_0x2630d3),this['on'](_0x8ff64d(0x1c9),(_0x5c4160,_0xb684c9,_0x466895)=>{const _0x230661=_0x8ff64d;this[_0x230661(0x208)][_0x230661(0x214)](),this[_0x230661(0x1e2)][_0x230661(0x214)](),_0x466895?(this[_0x230661(0x208)][_0x230661(0x1cf)](_0x3ec5dd),this[_0x230661(0x208)][_0x230661(0x1cf)](_0x3dcd98),this[_0x230661(0x1e2)][_0x230661(0x1cf)](_0x4a931c),_0x4a931c[_0x230661(0x1cd)][_0x230661(0x1e9)]()):(this[_0x230661(0x208)][_0x230661(0x1cf)](_0x2b56cc),this[_0x230661(0x208)][_0x230661(0x1cf)](_0x2630d3),this[_0x230661(0x1e2)][_0x230661(0x1cf)](this[_0x230661(0x20f)]));}),this[_0x8ff64d(0x1c2)]({'tag':'li','attributes':{'class':[_0x8ff64d(0x1c0),_0x52ec3d?_0x8ff64d(0x1e4):'',_0x276c52['if'](_0x8ff64d(0x1ca),_0x8ff64d(0x207),_0x5e9458=>!_0x5e9458),_0x276c52['if'](_0x8ff64d(0x1fb),_0x8ff64d(0x1c5))],'role':_0x8ff64d(0x20c)},'children':[{'tag':_0x8ff64d(0x213),'attributes':{'class':[_0x8ff64d(0x1ba)]},'children':[{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x1e7),_0x276c52['if'](_0x8ff64d(0x1f7),_0x8ff64d(0x207),_0x3f2224=>!!_0x3f2224)]},'children':_0x52ec3d?[_0x53c5e9]:[]},{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x1fd),_0x276c52['if'](_0x8ff64d(0x1f7),_0x8ff64d(0x207),_0xcc26f0=>!_0xcc26f0)]},'children':[this[_0x8ff64d(0x1c4)]()]}]},{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x1d5)]},'children':[{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x20e)]},'on':{'click':this[_0x8ff64d(0x1f6)]['to'](_0x8ff64d(0x1ed))},'children':[{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x1c1)]},'children':[{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x1d6),_0x276c52['if'](_0x8ff64d(0x1f7),_0x8ff64d(0x207),_0x50aa2c=>!!_0x50aa2c)]},'children':this[_0x8ff64d(0x1e2)]},{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x209),_0x276c52['if'](_0x8ff64d(0x1f7),_0x8ff64d(0x207),_0x158f1e=>!_0x158f1e)]},'children':[{'text':_0x276c52['to'](_0x8ff64d(0x1f7),_0x129234=>_0x129234?_0x351914(this[_0x8ff64d(0x1bb)],AIChatHistoryListItemView[_0x8ff64d(0x1fc)][_0x129234]):'')}]}]},{'tag':_0x8ff64d(0x213),'attributes':{'class':[_0x8ff64d(0x200)]},'children':[_0x53c4f7]}]},{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x211)]},'children':this[_0x8ff64d(0x208)]}]}]}),this['on'](_0x8ff64d(0x1ed),()=>{const _0x210df5=_0x8ff64d;this[_0x210df5(0x1fb)]||this[_0x210df5(0x216)](_0x210df5(0x215),{'id':this['id']});});}[_0x336957(0x1b4)](_0x2be7d7){const _0x309178=_0x336957;this[_0x309178(0x20f)][_0x309178(0x205)]=_0x1fa06a(_0x2be7d7);}[_0x336957(0x203)](_0x7e8f15,_0x3ad67e){const _0x43a2be=_0x336957;this[_0x43a2be(0x20a)](_0x43a2be(0x1f7),_0x3ad67e?_0x7e8f15:null);}[_0x336957(0x1cb)](){const _0x38af5c=_0x336957,_0xe8f632=new _0x550ced();return _0xe8f632[_0x38af5c(0x20a)]({'content':_0x4d49f3}),_0xe8f632;}[_0x336957(0x1bc)](_0x54b7bf){const _0x3c50d0=_0x336957,_0x530f44=new _0x48ce43(_0x54b7bf);return _0x530f44[_0x3c50d0(0x20a)]({'label':_0x351914(_0x54b7bf,_0x3c50d0(0x1c8)),'icon':_0x5430c9,'withText':!0x1,'tooltip':!0x0}),_0x530f44[_0x3c50d0(0x1db)](_0x3c50d0(0x1f2))['to'](this,_0x3c50d0(0x1da)),_0x530f44['on'](_0x3c50d0(0x1be),()=>{const _0x258ed4=_0x3c50d0,_0x117b94=!this[_0x258ed4(0x1da)];this[_0x258ed4(0x216)](_0x258ed4(0x210),{'id':this['id'],'pinned':_0x117b94});}),_0x530f44;}[_0x336957(0x1e0)](){const _0x27f13b=_0x336957,_0x56e145=_0x12bb3e(this[_0x27f13b(0x1bb)],_0x597acc),_0x5f3293=_0x56e145[_0x27f13b(0x1ff)][_0x27f13b(0x1b8)];_0x56e145[_0x27f13b(0x1f9)][_0x27f13b(0x20a)]({'label':_0x351914(this[_0x27f13b(0x1bb)],_0x27f13b(0x1dc)),'icon':_0x5b1dac}),_0x56e145[_0x27f13b(0x1ea)]='sw';const _0x1e97af=new _0x48ce43(this[_0x27f13b(0x1bb)]);_0x1e97af[_0x27f13b(0x1bf)]=_0x351914(this[_0x27f13b(0x1bb)],_0x27f13b(0x20b)),_0x1e97af[_0x27f13b(0x1e3)]=!0x0,_0x1e97af['on'](_0x27f13b(0x1be),()=>{const _0x5a0ce2=_0x27f13b;this[_0x5a0ce2(0x1fb)]=!0x0;});const _0x591add=new _0x48ce43(this[_0x27f13b(0x1bb)]);_0x591add[_0x27f13b(0x1bf)]=_0x351914(this[_0x27f13b(0x1bb)],_0x27f13b(0x1f3)),_0x591add[_0x27f13b(0x1e3)]=!0x0,_0x591add['on'](_0x27f13b(0x1be),()=>{const _0x3791b5=_0x27f13b;this[_0x3791b5(0x1c6)](_0x351914(this[_0x3791b5(0x1bb)],_0x3791b5(0x1d4)),this[_0x3791b5(0x1cd)])[_0x3791b5(0x1f1)](()=>{const _0x329d19=_0x3791b5;this[_0x329d19(0x216)](_0x329d19(0x1d9),{'id':this['id']});});});const _0x2c464d=new _0x22c36f(this[_0x27f13b(0x1bb)]),_0x5c4245=new _0x4185b0(this[_0x27f13b(0x1bb)]);_0x5c4245[_0x27f13b(0x1b8)][_0x27f13b(0x1cf)](_0x1e97af);const _0x3968e4=new _0x4185b0(this[_0x27f13b(0x1bb)]);return _0x3968e4[_0x27f13b(0x1b8)][_0x27f13b(0x1cf)](_0x591add),_0x2c464d[_0x27f13b(0x1dd)][_0x27f13b(0x1d8)]([_0x5c4245,_0x3968e4]),_0x5f3293[_0x27f13b(0x1cf)](_0x2c464d),_0x56e145;}[_0x336957(0x1e1)](_0x232969,_0x10c2cf){const _0x1986b8=_0x336957,_0x3865b2=new _0x560db7(_0x232969),_0x145b38=_0x3865b2[_0x1986b8(0x1f6)];return _0x3865b2[_0x1986b8(0x1ee)]=_0x10c2cf,_0x3865b2[_0x1986b8(0x1ce)]({'on':{'keydown':_0x145b38['to'](_0x21b4c4=>{const _0x29a247=_0x1986b8;_0x29a247(0x1e6)==_0x21b4c4[_0x29a247(0x1b9)]&&this[_0x29a247(0x1bd)](_0x3865b2);})}}),_0x3865b2;}[_0x336957(0x1d0)](_0x156077,_0x2d9739){const _0xe3b2a7=_0x336957,_0xbe3cb=new _0x48ce43(_0x156077);return _0xbe3cb[_0xe3b2a7(0x20a)]({'icon':_0x4d49f3,'withText':!0x1,'tooltip':_0x351914(_0x156077,_0xe3b2a7(0x1f5))}),_0xbe3cb[_0xe3b2a7(0x1ce)]({'attributes':{'class':[_0xe3b2a7(0x1df)]}}),_0xbe3cb['on'](_0xe3b2a7(0x1be),()=>{const _0x43af47=_0xe3b2a7;this[_0x43af47(0x1bd)](_0x2d9739);}),_0xbe3cb;}[_0x336957(0x1bd)](_0x4586ec){const _0x2b3f1b=_0x336957,_0x22a4ba=_0x4586ec[_0x2b3f1b(0x1cd)][_0x2b3f1b(0x1ee)]||'';this[_0x2b3f1b(0x20f)][_0x2b3f1b(0x205)]=_0x22a4ba,this[_0x2b3f1b(0x1fb)]=!0x1,this[_0x2b3f1b(0x216)](_0x2b3f1b(0x1b6),{'id':this['id'],'title':_0x22a4ba});}[_0x336957(0x20d)](_0x2941f6,_0x236be8){const _0x3fc3f9=_0x336957,_0xdb1942=new _0x48ce43(_0x2941f6);return _0xdb1942[_0x3fc3f9(0x20a)]({'icon':_0x71bbc7,'withText':!0x1,'tooltip':_0x351914(_0x2941f6,_0x3fc3f9(0x1cc))}),_0xdb1942[_0x3fc3f9(0x1ce)]({'attributes':{'class':[_0x3fc3f9(0x1e8)]}}),_0xdb1942['on'](_0x3fc3f9(0x1be),()=>{const _0x5db4c4=_0x3fc3f9;this[_0x5db4c4(0x1fb)]=!0x1,_0x236be8[_0x5db4c4(0x1ee)]=this[_0x5db4c4(0x20f)][_0x5db4c4(0x205)]||'',this[_0x5db4c4(0x216)](_0x5db4c4(0x1d2));}),_0xdb1942;}[_0x336957(0x1c4)](){const _0x26afd4=_0x336957,_0x321533=new _0xaa70d1(_0x26afd4(0x202));return _0x321533[_0x26afd4(0x1ca)]=!0x0,_0x321533;}[_0x336957(0x1d7)](_0x1f2a1f){const _0x998d64=_0x336957;return this[_0x998d64(0x20f)]&&_0x998d64(0x217)==typeof this[_0x998d64(0x20f)][_0x998d64(0x205)]&&this[_0x998d64(0x20f)][_0x998d64(0x205)][_0x998d64(0x1ec)](_0x1f2a1f)?{'title':!0x0}:null;}[_0x336957(0x1e5)](_0x1bf875){const _0x8c89a2=_0x336957;this[_0x8c89a2(0x20f)][_0x8c89a2(0x1e5)](_0x1bf875);}}function _0x3556(_0x16e65d,_0x47ec06){const _0x178deb=_0x178d();return _0x3556=function(_0x3556de,_0x1bee75){_0x3556de=_0x3556de-0x1b4;let _0x2c2628=_0x178deb[_0x3556de];return _0x2c2628;},_0x3556(_0x16e65d,_0x47ec06);}function _0x178d(){const _0xde75e3=['1764452lqeedi','match','click','value','136nUxHOG','6373404ThzblP','then','isOn','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_LOADING_RENAMING','AI_CHAT_HISTORY_ACCEPT','bindTemplate','loadingState','5ZJrMem','buttonView','9qwDeLp','isEdit','LOADING_LABELS','ck-ai-loader','567217ekDjGd','panelView','ck-ai-chat-history__item-date','3218ybrJem','tiny','updateLoadingState','AI_CHAT_HISTORY_LOADING_REMOVING','text','3144564GPwOor','ck-hidden','actions','ck-ai-loader__text','set','AI_CHAT_HISTORY_EDIT_NAME','listitem','_createCancelEditButtonView','ck-ai-chat-history__item-content','_titleView','setConversationPinned','ck-ai-chat-history__item-actions','AI_CHAT_HISTORY_LOADING_UNPINNING','span','clear','selectConversation','fire','string','updateTitle','AI_CHAT_HISTORY_LOADING_PINNING','editConversationTitle','16027710VmabYD','children','key','ck-ai-chat-history__item-check-container','locale','_createPinButtonView','_commitEditInputValue','execute','label','ck-ai-chat-history__item','ck-ai-chat-history__item-main-content','setTemplate','createCollection','_createSpinnerView','ck-ai-chat-history__item--edit','showConfirm','10083681YidnwV','AI_CHAT_HISTORY_PIN_BUTTON','change:isEdit','isVisible','_createCheckView','AI_CHAT_HISTORY_CANCEL','element','extendTemplate','add','_createAcceptEditButtonView','165xLbFdf','edit:cancel','div','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item-row','ck-ai-chat-history__item-title','isMatching','addMany','removeConversation','pinned','bind','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','items','883hDgHMm','ck-confirm-view-submit','_createMenuDropdownView','_createEditInputView','mainContent','withText','ck-ai-chat-history__item--active','highlightText','Enter','ck-ai-chat-history__item-check','ck-confirm-view-cancel','focus','panelPosition'];_0x178d=function(){return _0xde75e3;};return _0x178d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe4ffa3=_0x5db8;function _0x5db8(_0x53b48a,_0x351339){const _0xdece1c=_0xdece();return _0x5db8=function(_0x5db88a,_0x14da47){_0x5db88a=_0x5db88a-0x16c;let _0x5162c4=_0xdece1c[_0x5db88a];return _0x5162c4;},_0x5db8(_0x53b48a,_0x351339);}function _0xdece(){const _0xe53467=['itemsViews','indexOf','ck-ai-chat-history__section-title','8mMURkA','1066560Lnjhrr','length','28LFMUel','isMatching','items','2835624wklzqw','ck-hidden','setTemplate','getItem','38upPXPx','find','div','22645720mxDQFD','bindTemplate','removeItem','highlightText','splice','68326wEElZA','set','addMany','remove','1903605WudVTg','_itemsListView','title','ck-ai-chat-history__section','900621UAbhHE','isVisible','filter','1336086sBjMtO'];_0xdece=function(){return _0xe53467;};return _0xdece();}(function(_0x354a13,_0x287da1){const _0x52d2c1=_0x5db8,_0x1b6c11=_0x354a13();while(!![]){try{const _0xf26ec8=parseInt(_0x52d2c1(0x176))/0x1*(parseInt(_0x52d2c1(0x16e))/0x2)+parseInt(_0x52d2c1(0x18b))/0x3+parseInt(_0x52d2c1(0x186))/0x4+-parseInt(_0x52d2c1(0x17a))/0x5+parseInt(_0x52d2c1(0x181))/0x6*(parseInt(_0x52d2c1(0x188))/0x7)+parseInt(_0x52d2c1(0x185))/0x8*(-parseInt(_0x52d2c1(0x17e))/0x9)+-parseInt(_0x52d2c1(0x171))/0xa;if(_0xf26ec8===_0x287da1)break;else _0x1b6c11['push'](_0x1b6c11['shift']());}catch(_0x280041){_0x1b6c11['push'](_0x1b6c11['shift']());}}}(_0xdece,0xa002c));import{ListItemView as _0x172407,View as _0x303731,ListView as _0x4d1497}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x172407{[_0xe4ffa3(0x17c)];[_0xe4ffa3(0x182)];[_0xe4ffa3(0x17b)];constructor(_0x1604ce,{title:_0x1c248a,items:_0x31f5bd}){const _0x2d0994=_0xe4ffa3;super(_0x1604ce);const _0x4b1002=this[_0x2d0994(0x172)];this[_0x2d0994(0x177)](_0x2d0994(0x17f),!0x0),this[_0x2d0994(0x17c)]=_0x1c248a,this[_0x2d0994(0x182)]=_0x31f5bd;const _0x3c72e7=new _0x303731(_0x1604ce);_0x3c72e7[_0x2d0994(0x16c)]({'tag':_0x2d0994(0x170),'attributes':{'class':[_0x2d0994(0x184)]},'children':[this[_0x2d0994(0x17c)]]}),this[_0x2d0994(0x17b)]=new _0x4d1497(_0x1604ce),this[_0x2d0994(0x17b)][_0x2d0994(0x18a)][_0x2d0994(0x178)](this[_0x2d0994(0x182)]),this[_0x2d0994(0x16c)]({'tag':'li','attributes':{'class':[_0x2d0994(0x17d),_0x4b1002['if'](_0x2d0994(0x17f),_0x2d0994(0x18c),_0x51045a=>!_0x51045a)]},'children':[_0x3c72e7,this[_0x2d0994(0x17b)]]});}[_0xe4ffa3(0x180)](_0x313ca2){const _0x51c321=_0xe4ffa3,_0x16fdd0=this[_0x51c321(0x182)][_0x51c321(0x187)];let _0x216007=0x0;for(const _0x446daf of this[_0x51c321(0x182)]){if(_0x313ca2){const _0x81200d=_0x446daf[_0x51c321(0x189)](_0x313ca2);_0x446daf[_0x51c321(0x17f)]=!!_0x81200d,_0x446daf[_0x51c321(0x174)](_0x313ca2);}else _0x446daf[_0x51c321(0x17f)]=!0x0,_0x446daf[_0x51c321(0x174)](null);_0x446daf[_0x51c321(0x17f)]&&_0x216007++;}return this[_0x51c321(0x17f)]=_0x216007>0x0,{'resultsCount':_0x216007,'totalItemsCount':_0x16fdd0};}[_0xe4ffa3(0x16d)](_0x23ed3f){const _0x5bb065=_0xe4ffa3;return this[_0x5bb065(0x182)][_0x5bb065(0x16f)](_0x118ec1=>_0x118ec1['id']===_0x23ed3f);}[_0xe4ffa3(0x173)](_0x35efe1){const _0xafac95=_0xe4ffa3,_0x1b1c43=this[_0xafac95(0x182)][_0xafac95(0x183)](_0x35efe1);-0x1!==_0x1b1c43&&(this[_0xafac95(0x182)][_0xafac95(0x175)](_0x1b1c43,0x1),this[_0xafac95(0x17b)][_0xafac95(0x18a)][_0xafac95(0x179)](_0x35efe1));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57a321=_0x42ee;function _0x42ee(_0xd84c68,_0xee1665){const _0x3f5073=_0x3f50();return _0x42ee=function(_0x42ee23,_0x344a8a){_0x42ee23=_0x42ee23-0x6e;let _0x1f711e=_0x3f5073[_0x42ee23];return _0x1f711e;},_0x42ee(_0xd84c68,_0xee1665);}function _0x3f50(){const _0x81cda9=['ck-ai-chat-history__sections','1210693gPUdlK','3SWMKLX','8yzoVGF','993880pJYNoy','4KxRynk','1067910PNSnvS','items','10xwPtWV','187911xsgvYr','filter','1333911ocVHyR','addMany','6450385JaYSMZ','sections','4147onfKKu','extendTemplate','7wEDBTw','62004keIyyq'];_0x3f50=function(){return _0x81cda9;};return _0x3f50();}(function(_0x419f78,_0x5768a6){const _0x3bf49d=_0x42ee,_0x26b331=_0x419f78();while(!![]){try{const _0x417d99=-parseInt(_0x3bf49d(0x74))/0x1+-parseInt(_0x3bf49d(0x80))/0x2*(parseInt(_0x3bf49d(0x7e))/0x3)+parseInt(_0x3bf49d(0x6e))/0x4*(parseInt(_0x3bf49d(0x76))/0x5)+-parseInt(_0x3bf49d(0x6f))/0x6*(parseInt(_0x3bf49d(0x7a))/0x7)+-parseInt(_0x3bf49d(0x7f))/0x8*(-parseInt(_0x3bf49d(0x72))/0x9)+parseInt(_0x3bf49d(0x71))/0xa*(-parseInt(_0x3bf49d(0x7d))/0xb)+parseInt(_0x3bf49d(0x7b))/0xc*(parseInt(_0x3bf49d(0x78))/0xd);if(_0x417d99===_0x5768a6)break;else _0x26b331['push'](_0x26b331['shift']());}catch(_0x34fca2){_0x26b331['push'](_0x26b331['shift']());}}}(_0x3f50,0xcd28a));import{ListView as _0x41cf55}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x41cf55{[_0x57a321(0x77)];constructor(_0x5a0f0c,_0x3284dc){const _0x261ad9=_0x57a321;super(_0x5a0f0c),this[_0x261ad9(0x77)]=_0x3284dc,this[_0x261ad9(0x70)][_0x261ad9(0x75)](this[_0x261ad9(0x77)]),this[_0x261ad9(0x79)]({'attributes':{'class':[_0x261ad9(0x7c)]}});}[_0x57a321(0x73)](_0x123bc6){const _0x2888b2=_0x57a321;let _0x214c9d=0x0,_0xed69f2=0x0;for(const _0x1ff748 of this[_0x2888b2(0x77)]){const {resultsCount:_0x2de968,totalItemsCount:_0x519bf9}=_0x1ff748[_0x2888b2(0x73)](_0x123bc6);_0x214c9d+=_0x2de968,_0xed69f2+=_0x519bf9;}return{'resultsCount':_0x214c9d,'totalItemsCount':_0xed69f2};}}
|