@ckeditor/ckeditor5-ai 47.3.0-alpha.2 → 47.3.0-alpha.4
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-editor.css +18 -11
- package/dist/index.css +19 -11
- 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.d.ts +1 -0
- 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
- package/theme/aiballoon/aiballoon.css +2 -1
- package/theme/aiquickactions/aiquickactions.css +17 -10
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x199c49=_0x3c45;(function(_0x1d72e9,_0x50667f){const _0x255e8f=_0x3c45,_0x15785a=_0x1d72e9();while(!![]){try{const _0x181bab=parseInt(_0x255e8f(0xed))/0x1+parseInt(_0x255e8f(0x148))/0x2+parseInt(_0x255e8f(0x103))/0x3*(parseInt(_0x255e8f(0xf0))/0x4)+-parseInt(_0x255e8f(0xfb))/0x5*(parseInt(_0x255e8f(0x10a))/0x6)+parseInt(_0x255e8f(0xee))/0x7*(parseInt(_0x255e8f(0x144))/0x8)+-parseInt(_0x255e8f(0x143))/0x9*(-parseInt(_0x255e8f(0x135))/0xa)+-parseInt(_0x255e8f(0x130))/0xb;if(_0x181bab===_0x50667f)break;else _0x15785a['push'](_0x15785a['shift']());}catch(_0x4a372c){_0x15785a['push'](_0x15785a['shift']());}}}(_0x4d57,0xe15b9));import{KeystrokeHandler as _0x210eca}from'ckeditor5/src/utils.js';function _0x4d57(){const _0x26ee5e=['locale','382563fXDLyt','4092232HYNmMx','execute','_setUpKeystrokes','keys','1194442WNmojH','width','_createActionsDropdownOrButton','map','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','left','759491enMjkB','14WRbUKM','setTemplate','152LrtrVt','createCollection','actionsButton','slice','focus','destroy','keystrokeHandler','balloonPanelClass','_createActionsDropdown','unbind','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','100QYEArG','ck-ai-chat__feed__ai-suggestion__actions\x20','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','has','ck-ai-chat__feed__ai-suggestion__actions--no-animation','add','_dropdownCurrentConfig','button','86547eFMpYC','isTrackChangesOn','isVisible','tooltip','showChangeInTextModel','div','ck-ai-button-primary','345012qWhBPJ','class','actionName','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','_updateDropdownActions','applySuggestion','_setUpList','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','fire','esc','filter','hide','bodyCollection','arrowless','listenTo','_createActionsButton','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','updateLabels','ck-ai-chat__feed__ai-suggestion__actions__balloon','applySuggestionModel','_dropdownOriginalConfig','listView','pin','_firstRender','element','bind','length','isEnabled','ck-ai-chat__feed__ai-suggestion__actions','label','ck-hidden','remove','insertSuggestion','_partsCount','change:isTrackChangesOn','bindTemplate','listItemModels','open','31329815hCeUNa','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','delegate','arrowView','bottom','340gzhlrm','balloonPanelView','children','insertSuggestionModel','uiLanguageDirection','source','showChangeInText','detachFromDom','attachToDom','items','ltr','set','content'];_0x4d57=function(){return _0x26ee5e;};return _0x4d57();}import{BalloonPanelView as _0x5a287b,BodyCollection as _0x3da82d,ButtonView as _0x454ca3,clickOutsideHandler as _0x22b885,ListItemButtonView as _0x1019db,ListItemView as _0x4f612d,ListView as _0x1a7d7a,SplitButtonView as _0x4edb86,UIModel as _0x34e993,View as _0x5df997}from'ckeditor5/src/ui.js';import{IconCheck as _0x4e0e94,IconAddComment as _0x44c786,IconDocumentWithLoupe as _0x28ec80}from'ckeditor5/src/icons.js';import{getTranslation as _0x42a1bf}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x199c49(0x10f),_0x199c49(0x12a),_0x199c49(0x13b)];export class AIChatFeedSuggestionItemActionsView extends _0x5df997{[_0x199c49(0xf2)];[_0x199c49(0x137)];[_0x199c49(0x11d)];[_0x199c49(0x107)];[_0x199c49(0x138)];[_0x199c49(0x12b)]=0x1;[_0x199c49(0x11e)];[_0x199c49(0x101)];[_0x199c49(0x121)]=!0x0;constructor(_0x23947b,_0x13e24f){const _0x3673bb=_0x199c49;super(_0x23947b),this[_0x3673bb(0x11e)]=_0x13e24f||[...AI_REPLY_ACTIONS],this[_0x3673bb(0x101)]=[...this[_0x3673bb(0x11e)]];const _0x8958=this[_0x3673bb(0x12d)];this[_0x3673bb(0x140)](_0x3673bb(0x125),!0x0),this[_0x3673bb(0x140)](_0x3673bb(0x105),!0x0),this[_0x3673bb(0x140)](_0x3673bb(0x104),!0x1),this[_0x3673bb(0x11d)]=new _0x34e993({'label':Pn(_0x3673bb(0x10f),_0x23947b,this[_0x3673bb(0x12b)]),'icon':_0x4e0e94,'withText':!0x0,'type':_0x3673bb(0x102),'actionName':_0x3673bb(0x10f)}),this[_0x3673bb(0x107)]=new _0x34e993({'label':Pn(_0x3673bb(0x13b),_0x23947b,this[_0x3673bb(0x12b)]),'icon':_0x28ec80,'withText':!0x0,'type':_0x3673bb(0x102),'actionName':_0x3673bb(0x13b)}),this[_0x3673bb(0x138)]=new _0x34e993({'label':Pn(_0x3673bb(0x12a),_0x23947b,this[_0x3673bb(0x12b)]),'icon':_0x44c786,'withText':!0x0,'type':_0x3673bb(0x102),'actionName':_0x3673bb(0x12a)}),this[_0x3673bb(0xf2)]=this[_0x3673bb(0xe9)](_0x23947b),this[_0x3673bb(0x137)]=this[_0x3673bb(0xf1)](),this[_0x3673bb(0xf2)]&&this[_0x3673bb(0x137)][_0x3673bb(0x100)](this[_0x3673bb(0xf2)]),this[_0x3673bb(0xef)]({'tag':_0x3673bb(0x108),'attributes':{'class':['ck',_0x3673bb(0x126),_0x8958['if'](_0x3673bb(0x105),_0x3673bb(0x128),_0x9a58bd=>!_0x9a58bd)]},'children':this[_0x3673bb(0x137)]}),this['on'](_0x3673bb(0x12c),()=>{const _0x5472bf=_0x3673bb;this[_0x5472bf(0x101)]=this[_0x5472bf(0x104)]?this[_0x5472bf(0x11e)][_0x5472bf(0x114)](_0x4c718e=>_0x5472bf(0x10f)!==_0x4c718e):[...this[_0x5472bf(0x11e)]],this[_0x5472bf(0x10e)](_0x23947b);});}[_0x199c49(0x10e)](_0x46eeaf){const _0x19853f=_0x199c49;this[_0x19853f(0xf2)]&&this[_0x19853f(0x137)][_0x19853f(0xfe)](this[_0x19853f(0xf2)])&&(this[_0x19853f(0x137)][_0x19853f(0x129)](this[_0x19853f(0xf2)]),this[_0x19853f(0xf2)][_0x19853f(0xf5)]()),this[_0x19853f(0xf2)]=this[_0x19853f(0xe9)](_0x46eeaf),this[_0x19853f(0xf2)]&&this[_0x19853f(0x137)][_0x19853f(0x100)](this[_0x19853f(0xf2)]);}[_0x199c49(0xe9)](_0x4ac8f9){const _0x5687c7=_0x199c49;if(0x0==this[_0x5687c7(0x101)][_0x5687c7(0x124)])return null;const _0x5deed6=0x1===this[_0x5687c7(0x101)][_0x5687c7(0x124)]?this[_0x5687c7(0x119)](_0x4ac8f9):this[_0x5687c7(0xf8)](_0x4ac8f9),_0x266558=this[_0x5687c7(0x121)]?'':_0x5687c7(0xff);_0x5deed6[_0x5687c7(0x140)]({'label':Pn(this[_0x5687c7(0x101)][0x0],_0x4ac8f9,this[_0x5687c7(0x12b)]),'tooltip':Hn(this[_0x5687c7(0x101)][0x0],_0x4ac8f9,this[_0x5687c7(0x12b)]),'withText':!0x0,'class':_0x5687c7(0xfc)+_0x266558});for(const _0x45baad of this[_0x5687c7(0x101)])_0x5deed6['on'](_0x45baad,()=>{const _0x300600=_0x5687c7;this[_0x300600(0x112)](_0x45baad);});return this[_0x5687c7(0x121)]=!0x1,_0x5deed6;}[_0x199c49(0x119)](_0x180c26){const _0x115429=_0x199c49,_0x5ede3c=new _0x454ca3(_0x180c26);return _0x5ede3c[_0x115429(0x140)]({'class':_0x115429(0x109),'withText':!0x0}),_0x5ede3c['on'](_0x115429(0x145),()=>{const _0x167cd2=_0x115429;_0x5ede3c[_0x167cd2(0x112)](this[_0x167cd2(0x101)][0x0]);}),_0x5ede3c;}[_0x199c49(0xf8)](_0x217ddb){const _0x528772=_0x199c49,_0x2daa44=new Nn(_0x217ddb,{'listItemModels':this[_0x528772(0x101)][_0x528772(0xea)](_0x2e8c33=>{const _0xcd6ee5=_0x528772;switch(_0x2e8c33){case _0xcd6ee5(0x10f):return this[_0xcd6ee5(0x11d)];case _0xcd6ee5(0x13b):return this[_0xcd6ee5(0x107)];case _0xcd6ee5(0x12a):return this[_0xcd6ee5(0x138)];}})});return _0x2daa44[_0x528772(0x140)]({'label':Pn(this[_0x528772(0x101)][0x0],_0x217ddb,this[_0x528772(0x12b)]),'tooltip':Hn(this[_0x528772(0x101)][0x0],_0x217ddb,this[_0x528772(0x12b)]),'withText':!0x0,'class':_0x528772(0x126),'balloonPanelClass':_0x528772(0x11c)}),_0x2daa44[_0x528772(0x123)](_0x528772(0x125))['to'](this),_0x2daa44;}[_0x199c49(0x11b)](_0x3d7a9b){const _0x5c0d0f=_0x199c49,_0x301106=this[_0x5c0d0f(0x142)];this[_0x5c0d0f(0x12b)]=_0x3d7a9b||this[_0x5c0d0f(0x12b)],this[_0x5c0d0f(0xf2)][_0x5c0d0f(0x140)]({'label':Pn(this[_0x5c0d0f(0x101)][0x0],_0x301106,this[_0x5c0d0f(0x12b)]),'tooltip':Hn(this[_0x5c0d0f(0x101)][0x0],_0x301106,this[_0x5c0d0f(0x12b)])}),this[_0x5c0d0f(0x11d)][_0x5c0d0f(0x127)]=Pn(_0x5c0d0f(0x10f),_0x301106,this[_0x5c0d0f(0x12b)]),this[_0x5c0d0f(0x107)][_0x5c0d0f(0x127)]=Pn(_0x5c0d0f(0x13b),_0x301106,this[_0x5c0d0f(0x12b)]),this[_0x5c0d0f(0x138)][_0x5c0d0f(0x127)]=Pn(_0x5c0d0f(0x12a),_0x301106,this[_0x5c0d0f(0x12b)]);}}class Nn extends _0x4edb86{[_0x199c49(0x116)];[_0x199c49(0x136)];[_0x199c49(0x11f)];[_0x199c49(0xf6)];constructor(_0x2aefba,_0x5d36d0){const _0x87077=_0x199c49;super(_0x2aefba),this[_0x87077(0x136)]=new _0x5a287b(this[_0x87077(0x142)]),this[_0x87077(0x116)]=new _0x3da82d(this[_0x87077(0x142)]),this[_0x87077(0x116)][_0x87077(0x13d)](),this[_0x87077(0x140)](_0x87077(0xf7),''),this[_0x87077(0x136)][_0x87077(0x123)](_0x87077(0x10b))['to'](this,_0x87077(0xf7)),this[_0x87077(0x11f)]=this[_0x87077(0x110)](_0x5d36d0[_0x87077(0x12e)][_0x87077(0xf3)](0x1)),this[_0x87077(0x116)][_0x87077(0x100)](this[_0x87077(0x136)]),this[_0x87077(0x136)][_0x87077(0x141)][_0x87077(0x100)](this[_0x87077(0x11f)]),this[_0x87077(0x133)][_0x87077(0xf9)](_0x87077(0x106)),this[_0x87077(0x133)][_0x87077(0x140)](_0x87077(0x106),_0x42a1bf(this[_0x87077(0x142)],_0x87077(0x11a))),this[_0x87077(0x146)](),this['on'](_0x87077(0x145),()=>{const _0x2d19b1=_0x87077,_0x3ef1b6=_0x5d36d0[_0x2d19b1(0x12e)][0x0][_0x2d19b1(0x10c)];this[_0x2d19b1(0x112)](_0x3ef1b6),this[_0x2d19b1(0x136)][_0x2d19b1(0x115)](),this[_0x2d19b1(0x133)][_0x2d19b1(0xf4)]();}),this['on'](_0x87077(0x12f),()=>{const _0x23d668=_0x87077;this[_0x23d668(0x136)][_0x23d668(0x105)]?(this[_0x23d668(0x136)][_0x23d668(0x115)](),this[_0x23d668(0x133)][_0x23d668(0xf4)]()):(this[_0x23d668(0x136)][_0x23d668(0x120)]({'target':this[_0x23d668(0x122)],'positions':[_0x23d668(0x13f)===this[_0x23d668(0x142)][_0x23d668(0x139)]?Gn:yn]}),this[_0x23d668(0x11f)][_0x23d668(0xf4)]());}),_0x22b885({'emitter':this[_0x87077(0x136)],'callback':()=>{const _0x4a9655=_0x87077;this[_0x4a9655(0x136)][_0x4a9655(0x115)]();},'activator':()=>this[_0x87077(0x136)][_0x87077(0x105)],'contextElements':()=>[this[_0x87077(0x122)],this[_0x87077(0x136)][_0x87077(0x122)]]});}[_0x199c49(0x110)](_0x1937ec){const _0x135e12=_0x199c49,_0x13b2c6=this[_0x135e12(0x142)],_0x37781f=new _0x1a7d7a(_0x13b2c6);for(const _0xf1a842 of _0x1937ec){const _0x13a520=new _0x4f612d(_0x13b2c6),_0x250ed6=new _0x1019db(_0x13b2c6);_0x250ed6[_0x135e12(0x123)](...Object[_0x135e12(0x147)](_0xf1a842))['to'](_0xf1a842),_0x250ed6[_0x135e12(0x132)](_0x135e12(0x145))['to'](_0x37781f),_0x13a520[_0x135e12(0x137)][_0x135e12(0x100)](_0x250ed6),_0x37781f[_0x135e12(0x13e)][_0x135e12(0x100)](_0x13a520);}return _0x37781f[_0x135e12(0x13e)][_0x135e12(0x132)](_0x135e12(0x145))['to'](this),_0x37781f['on'](_0x135e12(0x145),_0x47bd37=>{const _0x1ec74a=_0x135e12,_0x15b5d6=_0x47bd37[_0x1ec74a(0x13a)];this[_0x1ec74a(0x112)](_0x15b5d6[_0x1ec74a(0x10c)]),this[_0x1ec74a(0x136)][_0x1ec74a(0x115)](),this[_0x1ec74a(0x133)][_0x1ec74a(0xf4)]();}),_0x37781f;}[_0x199c49(0x146)](){const _0x50f707=_0x199c49;this[_0x50f707(0xf6)]=new _0x210eca(),this[_0x50f707(0xf6)][_0x50f707(0x118)](this[_0x50f707(0x136)][_0x50f707(0x122)]),this[_0x50f707(0xf6)][_0x50f707(0x140)](_0x50f707(0x113),(_0x14ee35,_0x387e4a)=>{const _0x2f9a47=_0x50f707;this[_0x2f9a47(0x136)][_0x2f9a47(0x115)](),this[_0x2f9a47(0x133)][_0x2f9a47(0xf4)](),_0x387e4a();});}[_0x199c49(0xf5)](){const _0x170482=_0x199c49;super[_0x170482(0xf5)](),this[_0x170482(0xf6)][_0x170482(0xf5)](),this[_0x170482(0x136)][_0x170482(0xf5)](),this[_0x170482(0x116)][_0x170482(0x13c)]();}}function Gn(_0x2a1068){const _0xe060d4=_0x199c49;return{'top':_0x2a1068[_0xe060d4(0x134)],'left':_0x2a1068[_0xe060d4(0xec)],'name':_0xe060d4(0x117),'config':{'withArrow':!0x1}};}function _0x3c45(_0x171f7d,_0x10b4ec){const _0x4d5757=_0x4d57();return _0x3c45=function(_0x3c455e,_0x41d655){_0x3c455e=_0x3c455e-0xe8;let _0x19d46d=_0x4d5757[_0x3c455e];return _0x19d46d;},_0x3c45(_0x171f7d,_0x10b4ec);}function yn(_0x249c9c,_0x27196a){const _0x46e8bf=_0x199c49;return{'top':_0x249c9c[_0x46e8bf(0x134)],'left':_0x249c9c[_0x46e8bf(0xec)]-(_0x27196a[_0x46e8bf(0xe8)]-_0x249c9c[_0x46e8bf(0xe8)]),'name':_0x46e8bf(0x117),'config':{'withArrow':!0x1}};}function Pn(_0x386f52,_0x4b4482,_0xfed9bc){const _0x44df1a=_0x199c49;switch(_0x386f52){case _0x44df1a(0x10f):return _0x42a1bf(_0x4b4482,_0x44df1a(0x111),_0xfed9bc);case _0x44df1a(0x13b):return _0x42a1bf(_0x4b4482,_0x44df1a(0x131),_0xfed9bc);case _0x44df1a(0x12a):return _0x42a1bf(_0x4b4482,_0x44df1a(0xfa),_0xfed9bc);}}function Hn(_0x2f84ab,_0x4ce9ae,_0x160e86){const _0x354b01=_0x199c49;switch(_0x2f84ab){case _0x354b01(0x10f):return _0x42a1bf(_0x4ce9ae,_0x354b01(0x10d),_0x160e86);case _0x354b01(0x13b):return _0x42a1bf(_0x4ce9ae,_0x354b01(0xfd),_0x160e86);case _0x354b01(0x12a):return _0x42a1bf(_0x4ce9ae,_0x354b01(0xeb),_0x160e86);}}
|
|
23
|
+
const _0x1c10d8=_0x58a2;(function(_0x2a84a2,_0x1c6fa9){const _0x5d6217=_0x58a2,_0x4386c3=_0x2a84a2();while(!![]){try{const _0x173d01=-parseInt(_0x5d6217(0xdb))/0x1+parseInt(_0x5d6217(0x123))/0x2+-parseInt(_0x5d6217(0xd2))/0x3*(parseInt(_0x5d6217(0x101))/0x4)+-parseInt(_0x5d6217(0x113))/0x5*(-parseInt(_0x5d6217(0x126))/0x6)+parseInt(_0x5d6217(0xfb))/0x7+-parseInt(_0x5d6217(0xe9))/0x8*(parseInt(_0x5d6217(0x11b))/0x9)+-parseInt(_0x5d6217(0xd1))/0xa*(-parseInt(_0x5d6217(0xc8))/0xb);if(_0x173d01===_0x1c6fa9)break;else _0x4386c3['push'](_0x4386c3['shift']());}catch(_0xe0cbdb){_0x4386c3['push'](_0x4386c3['shift']());}}}(_0x5192,0x2de09));import{KeystrokeHandler as _0x286552}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x2aec5b,BodyCollection as _0x26d380,ButtonView as _0x35695e,clickOutsideHandler as _0x50afb9,ListItemButtonView as _0x19f196,ListItemView as _0x2b04d3,ListView as _0x5120ff,SplitButtonView as _0x541d2f,UIModel as _0x9e1030,View as _0x421d78}from'ckeditor5/src/ui.js';import{IconCheck as _0x24f62b,IconAddComment as _0x245c7d,IconDocumentWithLoupe as _0x447f77}from'ckeditor5/src/icons.js';import{getTranslation as _0x29bda1}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x1c10d8(0xfc),_0x1c10d8(0xd5),_0x1c10d8(0x122)];export class AIChatFeedSuggestionItemActionsView extends _0x421d78{[_0x1c10d8(0xe7)];[_0x1c10d8(0xda)];[_0x1c10d8(0x10d)];[_0x1c10d8(0xce)];[_0x1c10d8(0xf2)];[_0x1c10d8(0x117)]=0x1;[_0x1c10d8(0xf1)];[_0x1c10d8(0xdd)];[_0x1c10d8(0xde)]=!0x0;constructor(_0x573f36,_0x10104d){const _0x21412f=_0x1c10d8;super(_0x573f36),this[_0x21412f(0xf1)]=_0x10104d||[...AI_REPLY_ACTIONS],this[_0x21412f(0xdd)]=[...this[_0x21412f(0xf1)]];const _0x2a8d45=this[_0x21412f(0x114)];this[_0x21412f(0xfd)](_0x21412f(0xd3),!0x0),this[_0x21412f(0xfd)](_0x21412f(0xee),!0x0),this[_0x21412f(0xfd)](_0x21412f(0xf5),!0x1),this[_0x21412f(0x10d)]=new _0x9e1030({'label':Ln(_0x21412f(0xfc),_0x573f36,this[_0x21412f(0x117)]),'icon':_0x24f62b,'withText':!0x0,'type':_0x21412f(0xea),'actionName':_0x21412f(0xfc)}),this[_0x21412f(0xce)]=new _0x9e1030({'label':Ln(_0x21412f(0x122),_0x573f36,this[_0x21412f(0x117)]),'icon':_0x447f77,'withText':!0x0,'type':_0x21412f(0xea),'actionName':_0x21412f(0x122)}),this[_0x21412f(0xf2)]=new _0x9e1030({'label':Ln(_0x21412f(0xd5),_0x573f36,this[_0x21412f(0x117)]),'icon':_0x245c7d,'withText':!0x0,'type':_0x21412f(0xea),'actionName':_0x21412f(0xd5)}),this[_0x21412f(0xe7)]=this[_0x21412f(0x121)](_0x573f36),this[_0x21412f(0xda)]=this[_0x21412f(0x128)](),this[_0x21412f(0xe7)]&&this[_0x21412f(0xda)][_0x21412f(0xf9)](this[_0x21412f(0xe7)]),this[_0x21412f(0xed)]({'tag':_0x21412f(0xd6),'attributes':{'class':['ck',_0x21412f(0xf6),_0x2a8d45['if'](_0x21412f(0xee),_0x21412f(0xc9),_0x14b1f9=>!_0x14b1f9)]},'children':this[_0x21412f(0xda)]}),this['on'](_0x21412f(0x103),()=>{const _0x1fe489=_0x21412f;this[_0x1fe489(0xdd)]=this[_0x1fe489(0xf5)]?this[_0x1fe489(0xf1)][_0x1fe489(0xe0)](_0x304359=>_0x1fe489(0xfc)!==_0x304359):[...this[_0x1fe489(0xf1)]],this[_0x1fe489(0xe5)](_0x573f36);});}[_0x1c10d8(0xe5)](_0x31c11b){const _0x502116=_0x1c10d8;this[_0x502116(0xe7)]&&this[_0x502116(0xda)][_0x502116(0xe1)](this[_0x502116(0xe7)])&&(this[_0x502116(0xda)][_0x502116(0x111)](this[_0x502116(0xe7)]),this[_0x502116(0xe7)][_0x502116(0xd9)]()),this[_0x502116(0xe7)]=this[_0x502116(0x121)](_0x31c11b),this[_0x502116(0xe7)]&&this[_0x502116(0xda)][_0x502116(0xf9)](this[_0x502116(0xe7)]);}[_0x1c10d8(0x121)](_0x1ac687){const _0x487311=_0x1c10d8;if(0x0==this[_0x487311(0xdd)][_0x487311(0xec)])return null;const _0x3a87d3=0x1===this[_0x487311(0xdd)][_0x487311(0xec)]?this[_0x487311(0xd7)](_0x1ac687):this[_0x487311(0x108)](_0x1ac687),_0x586728=this[_0x487311(0xde)]?'':_0x487311(0xe4);_0x3a87d3[_0x487311(0xfd)]({'label':Ln(this[_0x487311(0xdd)][0x0],_0x1ac687,this[_0x487311(0x117)]),'tooltip':Un(this[_0x487311(0xdd)][0x0],_0x1ac687,this[_0x487311(0x117)]),'withText':!0x0,'class':_0x487311(0xcf)+_0x586728});for(const _0x304628 of this[_0x487311(0xdd)])_0x3a87d3['on'](_0x304628,()=>{const _0x4713b0=_0x487311;this[_0x4713b0(0xf8)](_0x304628);});return this[_0x487311(0xde)]=!0x1,_0x3a87d3;}[_0x1c10d8(0xd7)](_0x45345c){const _0x36e64a=_0x1c10d8,_0x27484c=new _0x35695e(_0x45345c);return _0x27484c[_0x36e64a(0xfd)]({'class':_0x36e64a(0xe8),'withText':!0x0}),_0x27484c['on'](_0x36e64a(0xfa),()=>{const _0x2e7fb5=_0x36e64a;_0x27484c[_0x2e7fb5(0xf8)](this[_0x2e7fb5(0xdd)][0x0]);}),_0x27484c;}[_0x1c10d8(0x108)](_0x19d3f3){const _0x554a2d=_0x1c10d8,_0x19fa0b=new yn(_0x19d3f3,{'listItemModels':this[_0x554a2d(0xdd)][_0x554a2d(0x10e)](_0x269558=>{const _0x3f520b=_0x554a2d;switch(_0x269558){case _0x3f520b(0xfc):return this[_0x3f520b(0x10d)];case _0x3f520b(0x122):return this[_0x3f520b(0xce)];case _0x3f520b(0xd5):return this[_0x3f520b(0xf2)];}})});return _0x19fa0b[_0x554a2d(0xfd)]({'label':Ln(this[_0x554a2d(0xdd)][0x0],_0x19d3f3,this[_0x554a2d(0x117)]),'tooltip':Un(this[_0x554a2d(0xdd)][0x0],_0x19d3f3,this[_0x554a2d(0x117)]),'withText':!0x0,'class':_0x554a2d(0xf6),'balloonPanelClass':_0x554a2d(0x106)}),_0x19fa0b[_0x554a2d(0x11e)](_0x554a2d(0xd3))['to'](this),_0x19fa0b;}[_0x1c10d8(0x127)](_0x1afd20){const _0xe33ab0=_0x1c10d8,_0x3131cf=this[_0xe33ab0(0x107)];this[_0xe33ab0(0x117)]=_0x1afd20||this[_0xe33ab0(0x117)],this[_0xe33ab0(0xe7)][_0xe33ab0(0xfd)]({'label':Ln(this[_0xe33ab0(0xdd)][0x0],_0x3131cf,this[_0xe33ab0(0x117)]),'tooltip':Un(this[_0xe33ab0(0xdd)][0x0],_0x3131cf,this[_0xe33ab0(0x117)])}),this[_0xe33ab0(0x10d)][_0xe33ab0(0xf0)]=Ln(_0xe33ab0(0xfc),_0x3131cf,this[_0xe33ab0(0x117)]),this[_0xe33ab0(0xce)][_0xe33ab0(0xf0)]=Ln(_0xe33ab0(0x122),_0x3131cf,this[_0xe33ab0(0x117)]),this[_0xe33ab0(0xf2)][_0xe33ab0(0xf0)]=Ln(_0xe33ab0(0xd5),_0x3131cf,this[_0xe33ab0(0x117)]);}}class yn extends _0x541d2f{[_0x1c10d8(0x100)];[_0x1c10d8(0xca)];[_0x1c10d8(0xdf)];[_0x1c10d8(0x115)];constructor(_0x21507d,_0x820bb8){const _0x1dc25f=_0x1c10d8;super(_0x21507d),this[_0x1dc25f(0xca)]=new _0x2aec5b(this[_0x1dc25f(0x107)]),this[_0x1dc25f(0x100)]=new _0x26d380(this[_0x1dc25f(0x107)]),this[_0x1dc25f(0x100)][_0x1dc25f(0xcc)](),this[_0x1dc25f(0xfd)](_0x1dc25f(0x10b),''),this[_0x1dc25f(0xca)][_0x1dc25f(0x11e)](_0x1dc25f(0xd4))['to'](this,_0x1dc25f(0x10b)),this[_0x1dc25f(0xdf)]=this[_0x1dc25f(0x118)](_0x820bb8[_0x1dc25f(0xeb)][_0x1dc25f(0xe3)](0x1)),this[_0x1dc25f(0x100)][_0x1dc25f(0xf9)](this[_0x1dc25f(0xca)]),this[_0x1dc25f(0xca)][_0x1dc25f(0xf4)][_0x1dc25f(0xf9)](this[_0x1dc25f(0xdf)]),this[_0x1dc25f(0x125)][_0x1dc25f(0xd0)](_0x1dc25f(0x109)),this[_0x1dc25f(0x125)][_0x1dc25f(0xfd)](_0x1dc25f(0x109),_0x29bda1(this[_0x1dc25f(0x107)],_0x1dc25f(0xff))),this[_0x1dc25f(0xf3)](),this['on'](_0x1dc25f(0xfa),()=>{const _0x484cc9=_0x1dc25f,_0x37b304=_0x820bb8[_0x484cc9(0xeb)][0x0][_0x484cc9(0x124)];this[_0x484cc9(0xf8)](_0x37b304),this[_0x484cc9(0xca)][_0x484cc9(0xef)](),this[_0x484cc9(0x125)][_0x484cc9(0xe2)]();}),this['on'](_0x1dc25f(0xf7),()=>{const _0x5a9343=_0x1dc25f;this[_0x5a9343(0xca)][_0x5a9343(0xee)]?(this[_0x5a9343(0xca)][_0x5a9343(0xef)](),this[_0x5a9343(0x125)][_0x5a9343(0xe2)]()):(this[_0x5a9343(0xca)][_0x5a9343(0x120)]({'target':this[_0x5a9343(0x11d)],'positions':[_0x5a9343(0x104)===this[_0x5a9343(0x107)][_0x5a9343(0x11f)]?Pn:Hn]}),this[_0x5a9343(0xdf)][_0x5a9343(0xe2)]());}),_0x50afb9({'emitter':this[_0x1dc25f(0xca)],'callback':()=>{const _0x4664d5=_0x1dc25f;this[_0x4664d5(0xca)][_0x4664d5(0xef)]();},'activator':()=>this[_0x1dc25f(0xca)][_0x1dc25f(0xee)],'contextElements':()=>[this[_0x1dc25f(0x11d)],this[_0x1dc25f(0xca)][_0x1dc25f(0x11d)]]});}[_0x1c10d8(0x118)](_0xf7718a){const _0x3aab03=_0x1c10d8,_0x5c9e3b=this[_0x3aab03(0x107)],_0x4b7d6d=new _0x5120ff(_0x5c9e3b);for(const _0x5d0abc of _0xf7718a){const _0x344390=new _0x2b04d3(_0x5c9e3b),_0x210bc7=new _0x19f196(_0x5c9e3b);_0x210bc7[_0x3aab03(0x11e)](...Object[_0x3aab03(0x116)](_0x5d0abc))['to'](_0x5d0abc),_0x210bc7[_0x3aab03(0x11a)](_0x3aab03(0xfa))['to'](_0x4b7d6d),_0x344390[_0x3aab03(0xda)][_0x3aab03(0xf9)](_0x210bc7),_0x4b7d6d[_0x3aab03(0x10c)][_0x3aab03(0xf9)](_0x344390);}return _0x4b7d6d[_0x3aab03(0x10c)][_0x3aab03(0x11a)](_0x3aab03(0xfa))['to'](this),_0x4b7d6d['on'](_0x3aab03(0xfa),_0x41eaf6=>{const _0x2d44ac=_0x3aab03,_0x4a6054=_0x41eaf6[_0x2d44ac(0x102)];this[_0x2d44ac(0xf8)](_0x4a6054[_0x2d44ac(0x124)]),this[_0x2d44ac(0xca)][_0x2d44ac(0xef)](),this[_0x2d44ac(0x125)][_0x2d44ac(0xe2)]();}),_0x4b7d6d;}[_0x1c10d8(0xf3)](){const _0x297fae=_0x1c10d8;this[_0x297fae(0x115)]=new _0x286552(),this[_0x297fae(0x115)][_0x297fae(0x110)](this[_0x297fae(0xca)][_0x297fae(0x11d)]),this[_0x297fae(0x115)][_0x297fae(0xfd)](_0x297fae(0xdc),(_0x51219c,_0x579ff3)=>{const _0x3ca4ca=_0x297fae;this[_0x3ca4ca(0xca)][_0x3ca4ca(0xef)](),this[_0x3ca4ca(0x125)][_0x3ca4ca(0xe2)](),_0x579ff3();});}[_0x1c10d8(0xd9)](){const _0x4dcfbe=_0x1c10d8;super[_0x4dcfbe(0xd9)](),this[_0x4dcfbe(0x115)][_0x4dcfbe(0xd9)](),this[_0x4dcfbe(0xca)][_0x4dcfbe(0xd9)](),this[_0x4dcfbe(0x100)][_0x4dcfbe(0xcb)]();}}function Pn(_0x3dcd3d){const _0x518ef2=_0x1c10d8;return{'top':_0x3dcd3d[_0x518ef2(0x10a)],'left':_0x3dcd3d[_0x518ef2(0xe6)],'name':_0x518ef2(0x119),'config':{'withArrow':!0x1}};}function Hn(_0x10a27c,_0x55024f){const _0x2bb9b2=_0x1c10d8;return{'top':_0x10a27c[_0x2bb9b2(0x10a)],'left':_0x10a27c[_0x2bb9b2(0xe6)]-(_0x55024f[_0x2bb9b2(0x112)]-_0x10a27c[_0x2bb9b2(0x112)]),'name':_0x2bb9b2(0x119),'config':{'withArrow':!0x1}};}function Ln(_0x5b77ca,_0x5b410a,_0x4871b0){const _0x2425d2=_0x1c10d8;switch(_0x5b77ca){case _0x2425d2(0xfc):return _0x29bda1(_0x5b410a,_0x2425d2(0x10f),_0x4871b0);case _0x2425d2(0x122):return _0x29bda1(_0x5b410a,_0x2425d2(0x105),_0x4871b0);case _0x2425d2(0xd5):return _0x29bda1(_0x5b410a,_0x2425d2(0xfe),_0x4871b0);}}function _0x58a2(_0x36a957,_0x32ec6a){const _0x5192c0=_0x5192();return _0x58a2=function(_0x58a2a4,_0x45cb08){_0x58a2a4=_0x58a2a4-0xc8;let _0x489ee3=_0x5192c0[_0x58a2a4];return _0x489ee3;},_0x58a2(_0x36a957,_0x32ec6a);}function Un(_0x3f6449,_0x2be635,_0x1cae8f){const _0x54b510=_0x1c10d8;switch(_0x3f6449){case _0x54b510(0xfc):return _0x29bda1(_0x2be635,_0x54b510(0x11c),_0x1cae8f);case _0x54b510(0x122):return _0x29bda1(_0x2be635,_0x54b510(0xcd),_0x1cae8f);case _0x54b510(0xd5):return _0x29bda1(_0x2be635,_0x54b510(0xd8),_0x1cae8f);}}function _0x5192(){const _0x277e96=['_createActionsDropdown','tooltip','bottom','balloonPanelClass','items','applySuggestionModel','map','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','listenTo','remove','width','20HeUKKc','bindTemplate','keystrokeHandler','keys','_partsCount','_setUpList','arrowless','delegate','45ciGttL','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','element','bind','uiLanguageDirection','pin','_createActionsDropdownOrButton','showChangeInText','155548HbFxMG','actionName','arrowView','213018EgatdQ','updateLabels','createCollection','11wPCcde','ck-hidden','balloonPanelView','detachFromDom','attachToDom','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','showChangeInTextModel','ck-ai-chat__feed__ai-suggestion__actions\x20','unbind','5181780oYjAkw','6WeLtRk','isEnabled','class','insertSuggestion','div','_createActionsButton','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','destroy','children','135609IIZNRr','esc','_dropdownCurrentConfig','_firstRender','listView','filter','has','focus','slice','ck-ai-chat__feed__ai-suggestion__actions--no-animation','_updateDropdownActions','left','actionsButton','ck-ai-button-primary','244296qaiddz','button','listItemModels','length','setTemplate','isVisible','hide','label','_dropdownOriginalConfig','insertSuggestionModel','_setUpKeystrokes','content','isTrackChangesOn','ck-ai-chat__feed__ai-suggestion__actions','open','fire','add','execute','473725UIsKlr','applySuggestion','set','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','bodyCollection','658864GBjnxK','source','change:isTrackChangesOn','ltr','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','ck-ai-chat__feed__ai-suggestion__actions__balloon','locale'];_0x5192=function(){return _0x277e96;};return _0x5192();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0xdf28e1=_0x177d;(function(_0xd8a9c9,_0x21c63b){var _0x7d6804=_0x177d,_0x2ed248=_0xd8a9c9();while(!![]){try{var _0x5a443e=-parseInt(_0x7d6804(0x155))/0x1*(-parseInt(_0x7d6804(0x171))/0x2)+-parseInt(_0x7d6804(0x16c))/0x3*(-parseInt(_0x7d6804(0x173))/0x4)+-parseInt(_0x7d6804(0x172))/0x5*(parseInt(_0x7d6804(0x14c))/0x6)+parseInt(_0x7d6804(0x154))/0x7*(-parseInt(_0x7d6804(0x15b))/0x8)+-parseInt(_0x7d6804(0x175))/0x9*(parseInt(_0x7d6804(0x150))/0xa)+-parseInt(_0x7d6804(0x151))/0xb+parseInt(_0x7d6804(0x161))/0xc*(parseInt(_0x7d6804(0x14b))/0xd);if(_0x5a443e===_0x21c63b)break;else _0x2ed248['push'](_0x2ed248['shift']());}catch(_0x1c5382){_0x2ed248['push'](_0x2ed248['shift']());}}}(_0x3a3f,0xb7ac8));import{AIChatFeedItemView as _0x468003}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x94f713}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x3a3f(){var _0x2b5290=['showDiff','isEnabled','extendTemplate','updateContent','availableActions','containerView','mouseLeaveSuggestion','453ylBGAS','set','isVisible','mouseOverSuggestion','toggleSuggestionDisplayMode','148076BZlNwm','64385OmfCKK','18840wYweXc','ck-ai-chat__feed__ai-suggestion','9mdGubz','like','actionsView','hasNonEmptyParts','applySuggestion','options','1744496bZHAzO','402YuIbZa','isTrackChangesOn','bodyView','dislike','8607010AMBBbO','10311169dcRoIn','updateSources','hasPendingParts','35231ErtbFd','13bpGviq','insertSuggestion','areActionsDisabled','rejectSuggestion','addMany','updatePartState','8TVrNBd','markAsDone','showChangeInText','bind','updateLabels','fire','156sLNyul','getPartView','children','partsCount'];_0x3a3f=function(){return _0x2b5290;};return _0x3a3f();}function _0x177d(_0x588b55,_0x2ee788){var _0x3a3fa5=_0x3a3f();return _0x177d=function(_0x177db9,_0x20bba2){_0x177db9=_0x177db9-0x146;var _0x45eb9e=_0x3a3fa5[_0x177db9];return _0x45eb9e;},_0x177d(_0x588b55,_0x2ee788);}import{AIChatFeedSuggestionItemActionsView as _0x57296e}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x468003{[_0xdf28e1(0x16a)];[_0xdf28e1(0x147)];constructor(_0x9fa3c2,_0x13bde8){var _0x131486=_0xdf28e1;super(_0x13bde8),this[_0x131486(0x16d)](_0x131486(0x14d),!0x1),this[_0x131486(0x16a)]=new _0x94f713(_0x9fa3c2,{'showDiff':_0x13bde8[_0x131486(0x165)],'areActionsDisabled':_0x13bde8[_0x131486(0x157)],'availableActions':_0x13bde8[_0x131486(0x169)]}),this[_0x131486(0x16a)]['on'](_0x131486(0x170),(_0x3e919c,_0x23c046)=>{var _0x46f811=_0x131486;this[_0x46f811(0x160)](_0x46f811(0x170),{'replyId':this[_0x46f811(0x14a)]['id'],'showDiff':_0x23c046[_0x46f811(0x165)]});}),this[_0x131486(0x16a)]['on'](_0x131486(0x146),()=>{var _0x7947fc=_0x131486;this[_0x7947fc(0x160)](_0x7947fc(0x146),{'replyId':this[_0x7947fc(0x14a)]['id']});}),this[_0x131486(0x16a)]['on'](_0x131486(0x14f),()=>{var _0x40af43=_0x131486;this[_0x40af43(0x160)](_0x40af43(0x14f),{'replyId':this[_0x40af43(0x14a)]['id']});}),this[_0x131486(0x16a)]['on'](_0x131486(0x15d),(_0xbddc90,{index:_0x3b3f8d})=>{var _0x1cf579=_0x131486;this[_0x1cf579(0x160)](_0x1cf579(0x15d),{'replyId':this[_0x1cf579(0x14a)]['id'],'partIndex':_0x3b3f8d});}),this[_0x131486(0x16a)]['on'](_0x131486(0x156),(_0x4b9888,{index:_0x2bafd9})=>{var _0x402e10=_0x131486;this[_0x402e10(0x160)](_0x402e10(0x156),{'replyId':this[_0x402e10(0x14a)]['id'],'partIndex':_0x2bafd9});}),this[_0x131486(0x16a)]['on'](_0x131486(0x158),(_0x5123fa,{index:_0x643cdd})=>{var _0x1b69a4=_0x131486;this[_0x1b69a4(0x160)](_0x1b69a4(0x158),{'replyId':this[_0x1b69a4(0x14a)]['id'],'partIndex':_0x643cdd});}),this[_0x131486(0x16a)]['on'](_0x131486(0x16f),(_0x10a3f9,{index:_0x575d34})=>{var _0x5bdfdd=_0x131486;this[_0x5bdfdd(0x160)](_0x5bdfdd(0x16f),{'replyId':this[_0x5bdfdd(0x14a)]['id'],'partIndex':_0x575d34});}),this[_0x131486(0x16a)]['on'](_0x131486(0x16b),(_0x3929cd,{index:_0x1e62e8})=>{var _0x1b3a95=_0x131486;this[_0x1b3a95(0x160)](_0x1b3a95(0x16b),{'replyId':this[_0x1b3a95(0x14a)]['id'],'partIndex':_0x1e62e8});}),this[_0x131486(0x147)]=new _0x57296e(_0x9fa3c2,this[_0x131486(0x14a)][_0x131486(0x169)]),this[_0x131486(0x147)][_0x131486(0x15e)](_0x131486(0x14d))['to'](this,_0x131486(0x14d)),this[_0x131486(0x147)]['on'](_0x131486(0x15d),()=>{var _0x23a6aa=_0x131486;this[_0x23a6aa(0x160)](_0x23a6aa(0x15d),{'replyId':this[_0x23a6aa(0x14a)]['id']});}),this[_0x131486(0x147)]['on'](_0x131486(0x156),()=>{var _0x47017b=_0x131486;this[_0x47017b(0x160)](_0x47017b(0x156),{'replyId':this[_0x47017b(0x14a)]['id']});}),this[_0x131486(0x147)]['on'](_0x131486(0x149),()=>{var _0x52298a=_0x131486;this[_0x52298a(0x160)](_0x52298a(0x149),{'replyId':this[_0x52298a(0x14a)]['id']});}),_0x13bde8[_0x131486(0x157)]?this[_0x131486(0x147)][_0x131486(0x166)]=!0x1:this[_0x131486(0x147)][_0x131486(0x15e)](_0x131486(0x166))['to'](this[_0x131486(0x16a)][_0x131486(0x14e)],_0x131486(0x153)),this[_0x131486(0x163)][_0x131486(0x159)]([this[_0x131486(0x16a)],this[_0x131486(0x147)]]),this[_0x131486(0x167)]({'attributes':{'class':[_0x131486(0x174)]}});}async[_0xdf28e1(0x168)](_0x4aeb69){var _0x59c54f=_0xdf28e1;await this[_0x59c54f(0x16a)][_0x59c54f(0x168)](_0x4aeb69),this[_0x59c54f(0x147)][_0x59c54f(0x15f)](this[_0x59c54f(0x16a)][_0x59c54f(0x14e)][_0x59c54f(0x164)]);}[_0xdf28e1(0x15a)](_0x1d5e75,_0x108a9a){var _0x2e0b1a=_0xdf28e1;this[_0x2e0b1a(0x16a)][_0x2e0b1a(0x14e)][_0x2e0b1a(0x15a)](_0x1d5e75,_0x108a9a);}[_0xdf28e1(0x152)](_0x226edb){var _0x521cbc=_0xdf28e1;this[_0x521cbc(0x16a)][_0x521cbc(0x152)](_0x226edb);}[_0xdf28e1(0x162)](_0x1d4a47){var _0x3852f3=_0xdf28e1;return this[_0x3852f3(0x16a)][_0x3852f3(0x14e)][_0x3852f3(0x162)](_0x1d4a47);}[_0xdf28e1(0x15c)](){var _0x155c76=_0xdf28e1;super[_0x155c76(0x15c)](),this[_0x155c76(0x16a)][_0x155c76(0x15c)](),this[_0x155c76(0x147)][_0x155c76(0x16e)]=this[_0x155c76(0x16a)][_0x155c76(0x14e)][_0x155c76(0x148)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x54e2e8=_0x3022;(function(_0x584eb2,_0x56ef64){var _0x19e4b1=_0x3022,_0xe7e30b=_0x584eb2();while(!![]){try{var _0x101521=-parseInt(_0x19e4b1(0xa6))/0x1*(-parseInt(_0x19e4b1(0x86))/0x2)+-parseInt(_0x19e4b1(0xa4))/0x3*(-parseInt(_0x19e4b1(0x8f))/0x4)+parseInt(_0x19e4b1(0x91))/0x5+parseInt(_0x19e4b1(0x96))/0x6*(parseInt(_0x19e4b1(0xa2))/0x7)+-parseInt(_0x19e4b1(0x85))/0x8*(-parseInt(_0x19e4b1(0xa1))/0x9)+parseInt(_0x19e4b1(0xa3))/0xa*(-parseInt(_0x19e4b1(0x99))/0xb)+-parseInt(_0x19e4b1(0x89))/0xc*(parseInt(_0x19e4b1(0x87))/0xd);if(_0x101521===_0x56ef64)break;else _0xe7e30b['push'](_0xe7e30b['shift']());}catch(_0x2b227c){_0xe7e30b['push'](_0xe7e30b['shift']());}}}(_0x38be,0x4e9fb));import{AIChatFeedItemView as _0x3132c1}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x5316d6}from'./aichatfeedcontextchipsview.js';import{View as _0x2502a3}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x3132c1{[_0x54e2e8(0x8d)]=null;[_0x54e2e8(0x9a)];[_0x54e2e8(0x92)];[_0x54e2e8(0x8a)];constructor(_0x5d49a3,_0x50a121,_0x3d0a53){var _0x1b29f6=_0x54e2e8;super(_0x50a121),this[_0x1b29f6(0x9a)]=_0x5d49a3,this[_0x1b29f6(0x92)]=_0x3d0a53,this[_0x1b29f6(0x8e)](),this[_0x1b29f6(0x93)](),this[_0x1b29f6(0xa8)]({'attributes':{'class':[_0x1b29f6(0x88)]}});}[_0x54e2e8(0x8e)](){var _0x29191b=_0x54e2e8;this[_0x29191b(0x9c)][_0x29191b(0x95)]&&this[_0x29191b(0x9c)][_0x29191b(0x95)][_0x29191b(0xa7)]>0x0&&(this[_0x29191b(0x8d)]=new _0x5316d6(this[_0x29191b(0x9a)],this[_0x29191b(0x9c)][_0x29191b(0x95)][_0x29191b(0x94)](_0x22a2e1=>!_0x22a2e1[_0x29191b(0x9d)]),this[_0x29191b(0x92)]),this[_0x29191b(0x8d)][_0x29191b(0xa8)]({'attributes':{'class':_0x29191b(0x9e)}}),this[_0x29191b(0x9b)][_0x29191b(0x97)](this[_0x29191b(0x8d)]));}[_0x54e2e8(0x93)](){var _0x3e2ea8=_0x54e2e8;this[_0x3e2ea8(0x8a)]=new _0x2502a3(this[_0x3e2ea8(0x9a)]),this[_0x3e2ea8(0x8a)][_0x3e2ea8(0x8c)]({'tag':_0x3e2ea8(0x84),'attributes':{'class':_0x3e2ea8(0xa5)}}),this[_0x3e2ea8(0x9b)][_0x3e2ea8(0x97)](this[_0x3e2ea8(0x8a)]);}[_0x54e2e8(0x9f)](){var _0x426ab2=_0x54e2e8;super[_0x426ab2(0x9f)](),this[_0x426ab2(0x8a)][_0x426ab2(0x8b)][_0x426ab2(0x90)]=this[_0x426ab2(0x9c)][_0x426ab2(0xa0)],this[_0x426ab2(0x98)]();}}function _0x3022(_0x3c783d,_0x38a307){var _0x38be7f=_0x38be();return _0x3022=function(_0x30229d,_0x5af8d6){_0x30229d=_0x30229d-0x84;var _0x1c1dcd=_0x38be7f[_0x30229d];return _0x1c1dcd;},_0x3022(_0x3c783d,_0x38a307);}function _0x38be(){var _0x51b516=['_locale','children','options','hidden','ck-ai-chat__feed__context-chips','render','initialContent','9ljfOxd','624659rnPmSd','4717590lViIyB','4803JgThQX','ck-ai-chat__feed__message-content','465769lzFxcY','length','extendTemplate','div','2402552YoVuYK','2bPWJbZ','13GnvMPg','ck-ai-chat__feed__user-message','7812060QLfFYW','_messageContentView','element','setTemplate','_contextChipsView','_createContextChipsView','680vKOkPD','innerHTML','1586560dbhrDC','_bodyCollection','_createMessageContentView','filter','contextItems','6UCCGhg','add','markAsDone','11dYZBtB'];_0x38be=function(){return _0x51b516;};return _0x38be();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47f085=_0x4b2c;function _0x4b2c(_0x2e068f,_0x45c83f){const _0x8fa5d4=_0x8fa5();return _0x4b2c=function(_0x4b2c57,_0x619d16){_0x4b2c57=_0x4b2c57-0x187;let _0x550ffe=_0x8fa5d4[_0x4b2c57];return _0x550ffe;},_0x4b2c(_0x2e068f,_0x45c83f);}(function(_0x2dff29,_0x5b00eb){const _0x372af7=_0x4b2c,_0x25d110=_0x2dff29();while(!![]){try{const _0xc81178=-parseInt(_0x372af7(0x19a))/0x1+parseInt(_0x372af7(0x194))/0x2+-parseInt(_0x372af7(0x18e))/0x3*(parseInt(_0x372af7(0x190))/0x4)+parseInt(_0x372af7(0x19c))/0x5*(parseInt(_0x372af7(0x196))/0x6)+parseInt(_0x372af7(0x18c))/0x7+parseInt(_0x372af7(0x191))/0x8+-parseInt(_0x372af7(0x197))/0x9;if(_0xc81178===_0x5b00eb)break;else _0x25d110['push'](_0x25d110['shift']());}catch(_0x1c3aca){_0x25d110['push'](_0x25d110['shift']());}}}(_0x8fa5,0xcb52d));import{AI_SUGGESTION_UI_EVENT_NAMES as _0xd0fd14}from'../../aicore/utils/eventnames.js';function _0x8fa5(){const _0x50e15c=['removeContextItem','addDocumentToContext','sendUserMessage','startConversation','6777470ucqMOE','toggleReasoning','87FoaLRz','selectModel','39284FgwxHu','1968000SzxMvM','addFileToContext','resizeTabs','1614944qBSbCV','addUrlToContext','132hmHHAe','14233392RaDPFV','toggleWebSearch','loadSourceResources','982978uDlYZl','abortPromptStream','377365hdYwKw','addResourceToContext'];_0x8fa5=function(){return _0x50e15c;};return _0x8fa5();}export const AI_CHAT_UI_EVENT_NAMES=[..._0xd0fd14,_0x47f085(0x18b),_0x47f085(0x193),_0x47f085(0x18a),_0x47f085(0x19b),_0x47f085(0x189),_0x47f085(0x192),_0x47f085(0x195),_0x47f085(0x187),_0x47f085(0x188),_0x47f085(0x199),_0x47f085(0x198),_0x47f085(0x18d),_0x47f085(0x18f)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x30ee(){const _0x52ef02=['once','length','enqueue','callback','_queueEmpty','completePromise','21474GMLVLy','createTask','resolve','2593916SBVKZB','12534sTkgwp','3206QmMlbo','signal','queue','5woDBaB','queueEmptyPromise','259230rfRBLZ','shift','15744680PuuSdW','push','_abortController','2922962jTygoU','reject','abort','fire','_processQueue','isProcessing','2168tNGqjB','2221023gJaBpz'];_0x30ee=function(){return _0x52ef02;};return _0x30ee();}const _0x4e9dd8=_0x375b;function _0x375b(_0x3583c2,_0x235384){const _0x30eeeb=_0x30ee();return _0x375b=function(_0x375be9,_0x36eb11){_0x375be9=_0x375be9-0x1c3;let _0x4607b6=_0x30eeeb[_0x375be9];return _0x4607b6;},_0x375b(_0x3583c2,_0x235384);}(function(_0x2aee07,_0x3b53c2){const _0x5a5c79=_0x375b,_0x2e9b9e=_0x2aee07();while(!![]){try{const _0x269bed=parseInt(_0x5a5c79(0x1d0))/0x1+-parseInt(_0x5a5c79(0x1d5))/0x2+parseInt(_0x5a5c79(0x1dc))/0x3+-parseInt(_0x5a5c79(0x1c9))/0x4*(parseInt(_0x5a5c79(0x1ce))/0x5)+parseInt(_0x5a5c79(0x1ca))/0x6*(parseInt(_0x5a5c79(0x1cb))/0x7)+parseInt(_0x5a5c79(0x1db))/0x8*(-parseInt(_0x5a5c79(0x1c6))/0x9)+parseInt(_0x5a5c79(0x1d2))/0xa;if(_0x269bed===_0x3b53c2)break;else _0x2e9b9e['push'](_0x2e9b9e['shift']());}catch(_0x42a664){_0x2e9b9e['push'](_0x2e9b9e['shift']());}}}(_0x30ee,0xbd05b));import{EmitterMixin as _0x4700a6}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x4700a6(){[_0x4e9dd8(0x1cd)]=[];[_0x4e9dd8(0x1da)]=!0x1;[_0x4e9dd8(0x1d4)];async[_0x4e9dd8(0x1df)](_0x274c39){const _0x181e59=_0x4e9dd8,_0x2a03e9=this[_0x181e59(0x1c7)](_0x274c39);return this[_0x181e59(0x1cd)][_0x181e59(0x1d3)](_0x2a03e9),this[_0x181e59(0x1d9)](),_0x2a03e9[_0x181e59(0x1c5)];}[_0x4e9dd8(0x1d7)](){const _0x3d7370=_0x4e9dd8;this[_0x3d7370(0x1da)]&&(this[_0x3d7370(0x1d4)][_0x3d7370(0x1d7)](),this[_0x3d7370(0x1d4)]=void 0x0,this[_0x3d7370(0x1cd)]=[],this[_0x3d7370(0x1d8)](_0x3d7370(0x1c4)),this[_0x3d7370(0x1da)]=!0x1);}get[_0x4e9dd8(0x1cf)](){const _0x3f5e33=_0x4e9dd8;return this[_0x3f5e33(0x1cd)][_0x3f5e33(0x1de)]||this[_0x3f5e33(0x1da)]?new Promise(_0x398305=>{const _0x12f10b=_0x3f5e33;this[_0x12f10b(0x1dd)](_0x12f10b(0x1c4),()=>{_0x398305();});}):Promise[_0x3f5e33(0x1c8)]();}async[_0x4e9dd8(0x1d9)](){const _0x234cc7=_0x4e9dd8;if(!this[_0x234cc7(0x1da)]){this[_0x234cc7(0x1d4)]=new AbortController(),this[_0x234cc7(0x1da)]=!0x0;try{for(;this[_0x234cc7(0x1cd)][_0x234cc7(0x1de)]&&this[_0x234cc7(0x1da)];){const _0x489cf2=this[_0x234cc7(0x1cd)][_0x234cc7(0x1d1)]();try{await _0x489cf2[_0x234cc7(0x1c3)](this[_0x234cc7(0x1d4)][_0x234cc7(0x1cc)]),_0x489cf2[_0x234cc7(0x1c8)]();}catch(_0x2fcce0){_0x489cf2[_0x234cc7(0x1d6)](_0x2fcce0);}}}finally{this[_0x234cc7(0x1da)]=!0x1,this[_0x234cc7(0x1d4)]=void 0x0;}this[_0x234cc7(0x1d8)](_0x234cc7(0x1c4));}}[_0x4e9dd8(0x1c7)](_0x3fa264){let _0x2c9869,_0xe5cdc7;const _0x2f09e7=new Promise((_0x3212a4,_0x39badc)=>{_0x2c9869=_0x3212a4,_0xe5cdc7=_0x39badc;});return{'callback':_0x3fa264,'resolve':_0x2c9869,'reject':_0xe5cdc7,'completePromise':_0x2f09e7};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x544ea3=_0x928f;(function(_0x1f197f,_0x5101f2){var _0x460264=_0x928f,_0x23b480=_0x1f197f();while(!![]){try{var _0x589128=parseInt(_0x460264(0x1da))/0x1*(parseInt(_0x460264(0x1d2))/0x2)+parseInt(_0x460264(0x1db))/0x3+-parseInt(_0x460264(0x1de))/0x4+parseInt(_0x460264(0x1d8))/0x5+-parseInt(_0x460264(0x1d5))/0x6*(-parseInt(_0x460264(0x1dc))/0x7)+-parseInt(_0x460264(0x1d4))/0x8+parseInt(_0x460264(0x1d3))/0x9;if(_0x589128===_0x5101f2)break;else _0x23b480['push'](_0x23b480['shift']());}catch(_0x4016c6){_0x23b480['push'](_0x23b480['shift']());}}}(_0x236f,0x85feb));function _0x928f(_0x6814b0,_0x4c6ec3){var _0x236fd0=_0x236f();return _0x928f=function(_0x928ffe,_0x139136){_0x928ffe=_0x928ffe-0x1d1;var _0x3e0d35=_0x236fd0[_0x928ffe];return _0x3e0d35;},_0x928f(_0x6814b0,_0x4c6ec3);}function _0x236f(){var _0x34befd=['isPremiumPlugin','2072992qPQNAz','pluginName','4GWxXFs','1132128VdOvBc','6401792jRriFm','6aEddhj','isOfficialPlugin','AIChatHistory','4786060UKHEkc','requires','165379FJDccw','161394NgHwyK','2798285pbSDpP'];_0x236f=function(){return _0x34befd;};return _0x236f();}import{ContextPlugin as _0x288aa1}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x625c34}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x308791}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x288aa1{static get[_0x544ea3(0x1d9)](){return[_0x625c34,_0x308791];}static get[_0x544ea3(0x1d1)](){var _0x41e55c=_0x544ea3;return _0x41e55c(0x1d7);}static get[_0x544ea3(0x1d6)](){return!0x0;}static get[_0x544ea3(0x1dd)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x42a89b=_0x183f;(function(_0x1fc87b,_0x45a7d0){const _0x45d5f7=_0x183f,_0x3e0e97=_0x1fc87b();while(!![]){try{const _0x111c6b=parseInt(_0x45d5f7(0x116))/0x1+-parseInt(_0x45d5f7(0xf4))/0x2*(parseInt(_0x45d5f7(0x108))/0x3)+-parseInt(_0x45d5f7(0x156))/0x4*(parseInt(_0x45d5f7(0x13b))/0x5)+parseInt(_0x45d5f7(0x149))/0x6+parseInt(_0x45d5f7(0x111))/0x7*(-parseInt(_0x45d5f7(0xf9))/0x8)+-parseInt(_0x45d5f7(0x11d))/0x9*(parseInt(_0x45d5f7(0x14c))/0xa)+-parseInt(_0x45d5f7(0x12e))/0xb*(-parseInt(_0x45d5f7(0x10a))/0xc);if(_0x111c6b===_0x45a7d0)break;else _0x3e0e97['push'](_0x3e0e97['shift']());}catch(_0x5e3fae){_0x3e0e97['push'](_0x3e0e97['shift']());}}}(_0x5e5b,0xc4afe));import{ContextPlugin as _0x258791}from'ckeditor5/src/core.js';import{AIConnector as _0xee4ddd}from'../aicore/aiconnector.js';function _0x5e5b(){const _0x29e29c=['32MfcIQU','removeHistoryItem','_clearItemLoading','getMonth','chat','22224SQflmg','getFullYear','AI_CHAT_HISTORY_UNPIN_ACTION','toLocaleDateString','_setIsMaximized','resize','view','editConversationTitle','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','_handleHistoryErrorUI','get','AI_CHAT_HISTORY_CATEGORY_PINNED','setDate','AI_CHAT_HISTORY_CATEGORY_LATER','pin','25593fztLhA','_generateErrorMessage','281076riYMCK','_aiConnector','loadItems','activateTab','handleRemovedConversation','rename','isPremiumPlugin','2324lBVflh','push','updateItems','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','selectConversation','491895eudXrO','locale','updateItemPinned','error','_handleEditTitle','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','createdAt','9XYizbh','AI_CHAT_UNTITLED_CONVERSATION','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','_handleSelectConversation','setConversationPinned','_handleTogglePin','operation','requires','itemId','pinned','updateItemLoadingState','loadConversation','remove','itemsLoaded','listenTo','pluginName','length','825ATpDLA','plugins','getGroupId','map','resizedTabs','removeItem','showError','openChat','removeConversation','AI_CHAT_HISTORY_PIN_ACTION','items','_getCategorizedItems','activeConversation','3305CgAhyv','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','setIsMaximized','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','_showConversationHistory','_setItemLoading','AI_CHAT_HISTORY_ERROR_GENERIC','activateTab:history','_updateHistoryItemsUI','AIChatHistoryController','unpin','getItem','resizeTabs','updateItemTitle','376074JVySoX','AI_CHAT_HISTORY_CATEGORY_TODAY','change:activeConversation','4343180cRxNXh','getItems','_handleRemove','history','updates','getDate','itemRemoved','init','setLoadingSkeleton','_aiChatController','76xeFfVw','isOfficialPlugin','_aiChatHistoryUi','title','context','itemUpdated'];_0x5e5b=function(){return _0x29e29c;};return _0x5e5b();}function _0x183f(_0x12c53c,_0x5c3fa7){const _0x5e5b6d=_0x5e5b();return _0x183f=function(_0x183fb0,_0x35a1bd){_0x183fb0=_0x183fb0-0xf4;let _0x22cf45=_0x5e5b6d[_0x183fb0];return _0x22cf45;},_0x183f(_0x12c53c,_0x5c3fa7);}import{AIChatController as _0x27f0f6}from'../aichat/aichatcontroller.js';import{AITabs as _0x4544ea}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x1f8d2c}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x4dd2f3}from'./model/aichathistoryconversations.js';import{getTranslation as _0x25e800}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x258791{[_0x42a89b(0x10b)];[_0x42a89b(0x158)];[_0x42a89b(0x155)];static get[_0x42a89b(0x124)](){return[_0xee4ddd,_0x27f0f6,_0x1f8d2c,_0x4544ea];}static get[_0x42a89b(0x12c)](){const _0x21d354=_0x42a89b;return _0x21d354(0x144);}static get[_0x42a89b(0x157)](){return!0x0;}static get[_0x42a89b(0x110)](){return!0x0;}[_0x42a89b(0x153)](){const _0x5854dc=_0x42a89b;this[_0x5854dc(0x10b)]=this[_0x5854dc(0x15a)][_0x5854dc(0x12f)][_0x5854dc(0x103)](_0xee4ddd),this[_0x5854dc(0x158)]=this[_0x5854dc(0x15a)][_0x5854dc(0x12f)][_0x5854dc(0x103)](_0x1f8d2c),this[_0x5854dc(0x155)]=this[_0x5854dc(0x15a)][_0x5854dc(0x12f)][_0x5854dc(0x103)](_0x27f0f6);const _0x26c9fc=this[_0x5854dc(0x15a)][_0x5854dc(0x12f)][_0x5854dc(0x103)](_0x4544ea),_0x2a1703=this[_0x5854dc(0x155)][_0x5854dc(0x130)]();this[_0x5854dc(0x14f)]=new _0x4dd2f3({'connector':this[_0x5854dc(0x10b)],'group':_0x2a1703}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x158)],_0x5854dc(0x136),(_0x275a37,_0x12fa32)=>{const _0x573ac8=_0x5854dc;this[_0x573ac8(0x140)](_0x12fa32['id'],_0x573ac8(0x129)),this[_0x573ac8(0x14e)](_0x12fa32['id']);}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x158)],_0x5854dc(0x100),(_0xe4860a,_0x4f3932)=>{const _0x548d95=_0x5854dc;this[_0x548d95(0x140)](_0x4f3932['id'],_0x548d95(0x10f)),this[_0x548d95(0x11a)](_0x4f3932['id'],_0x4f3932[_0x548d95(0x159)]);}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x14f)],_0x5854dc(0x15b),(_0x29dad4,_0xde22de)=>{const _0x1f625d=_0x5854dc;void 0x0!==_0xde22de[_0x1f625d(0x150)][_0x1f625d(0x159)]&&this[_0x1f625d(0x158)][_0x1f625d(0x148)](_0xde22de[_0x1f625d(0x125)],_0xde22de[_0x1f625d(0x150)][_0x1f625d(0x159)]),void 0x0!==_0xde22de[_0x1f625d(0x150)][_0x1f625d(0x126)]&&this[_0x1f625d(0x143)](),this[_0x1f625d(0xf6)](_0xde22de[_0x1f625d(0x125)]);}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x14f)],_0x5854dc(0x152),(_0x308430,_0x46066c)=>{const _0x54fa8a=_0x5854dc;this[_0x54fa8a(0x155)][_0x54fa8a(0x10e)](_0x46066c[_0x54fa8a(0x125)]),this[_0x54fa8a(0x158)][_0x54fa8a(0xf5)](_0x46066c[_0x54fa8a(0x125)]),this[_0x54fa8a(0xf6)](_0x46066c[_0x54fa8a(0x125)]);}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x14f)],_0x5854dc(0x12a),()=>{const _0xf966ce=_0x5854dc;this[_0xf966ce(0x143)]();}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x14f)],_0x5854dc(0x119),(_0x95432a,_0x474dee)=>{const _0x6e84fb=_0x5854dc;this[_0x6e84fb(0x102)](_0x474dee[_0x6e84fb(0x119)],_0x474dee[_0x6e84fb(0x123)],_0x474dee[_0x6e84fb(0x125)]);}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x158)],_0x5854dc(0x115),(_0x2f8125,_0x24c014)=>{const _0x2130b2=_0x5854dc;this[_0x2130b2(0x120)](_0x24c014['id']);}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x158)],_0x5854dc(0x121),(_0x59b61d,_0x3c9795)=>{const _0x2bdebe=_0x5854dc,_0x23edf8=_0x3c9795[_0x2bdebe(0x126)]?_0x2bdebe(0x107):_0x2bdebe(0x145);this[_0x2bdebe(0x140)](_0x3c9795['id'],_0x23edf8),this[_0x2bdebe(0x122)](_0x3c9795['id'],_0x3c9795[_0x2bdebe(0x126)]);}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x158)],_0x5854dc(0x135),()=>{const _0xd244fb=_0x5854dc;_0x26c9fc[_0xd244fb(0xff)][_0xd244fb(0x10d)](_0xd244fb(0xf8));}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x155)],_0x5854dc(0x14b),()=>{const _0x2d8354=_0x5854dc;this[_0x2d8354(0x143)]();}),_0x26c9fc[_0x5854dc(0xff)]['on'](_0x5854dc(0x142),()=>{const _0x54584a=_0x5854dc;this[_0x54584a(0x13f)]();}),this[_0x5854dc(0x12b)](_0x26c9fc,_0x5854dc(0x132),(_0x4c0276,_0x2d90ba)=>{const _0x22bdf2=_0x5854dc;this[_0x22bdf2(0xfd)](_0x2d90ba);}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x158)],_0x5854dc(0x147),()=>{const _0x35c39d=_0x5854dc;_0x26c9fc[_0x35c39d(0xfe)]();});}async[_0x42a89b(0x11a)](_0x33d1ca,_0xde810){const _0x46ad98=_0x42a89b;await this[_0x46ad98(0x14f)][_0x46ad98(0x148)](_0x33d1ca,_0xde810);}async[_0x42a89b(0x122)](_0x218ce0,_0x5537e1){const _0x203172=_0x42a89b;await this[_0x203172(0x14f)][_0x203172(0x118)](_0x218ce0,_0x5537e1);}async[_0x42a89b(0x14e)](_0x4e4ccf){const _0x1fa857=_0x42a89b;await this[_0x1fa857(0x14f)][_0x1fa857(0x133)](_0x4e4ccf);}async[_0x42a89b(0x120)](_0x451602){const _0x1442ed=_0x42a89b;await this[_0x1442ed(0x155)][_0x1442ed(0x128)](_0x451602);}async[_0x42a89b(0x13f)](){const _0x2eec14=_0x42a89b;this[_0x2eec14(0x158)][_0x2eec14(0x134)](''),this[_0x2eec14(0x158)][_0x2eec14(0x154)](!0x0),await this[_0x2eec14(0x14f)][_0x2eec14(0x153)](),this[_0x2eec14(0x158)][_0x2eec14(0x154)](!0x1);}[_0x42a89b(0x143)](){const _0x4e4af3=_0x42a89b,_0x4db14c=this[_0x4e4af3(0x155)][_0x4e4af3(0x13a)]?.['id'],_0x18d77f=this[_0x4e4af3(0x139)]()[_0x4e4af3(0x131)](_0x5bf1b6=>({'title':_0x5bf1b6[_0x4e4af3(0x159)],'items':_0x5bf1b6[_0x4e4af3(0x138)][_0x4e4af3(0x131)](_0x2c9ee0=>({'id':_0x2c9ee0['id'],'title':_0x2c9ee0[_0x4e4af3(0x159)]||_0x25e800(this[_0x4e4af3(0x15a)][_0x4e4af3(0x117)],_0x4e4af3(0x11e)),'createdAt':new Date(_0x2c9ee0[_0x4e4af3(0x11c)])[_0x4e4af3(0xfc)](),'active':_0x2c9ee0['id']===_0x4db14c,'pinned':_0x2c9ee0[_0x4e4af3(0x126)]}))}));this[_0x4e4af3(0x158)][_0x4e4af3(0x113)](_0x18d77f);}[_0x42a89b(0x140)](_0x37ea34,_0x4ad43f){const _0x493cf3=_0x42a89b;this[_0x493cf3(0x158)][_0x493cf3(0x127)](_0x37ea34,_0x4ad43f,!0x0);}[_0x42a89b(0xf6)](_0x3e2bfb){const _0x351e18=_0x42a89b;this[_0x351e18(0x158)][_0x351e18(0x127)](_0x3e2bfb,null,!0x1);}[_0x42a89b(0x102)](_0x53b3cd,_0x563fe1,_0x50d48f){const _0x35b7dc=_0x42a89b,_0x5d1c53=this[_0x35b7dc(0x109)](_0x563fe1,_0x50d48f);this[_0x35b7dc(0x158)][_0x35b7dc(0x134)](_0x5d1c53),_0x50d48f&&this[_0x35b7dc(0xf6)](_0x50d48f),this[_0x35b7dc(0x158)][_0x35b7dc(0x154)](!0x1);}[_0x42a89b(0x109)](_0x5163fd,_0x27279c){const _0x5ad0f4=_0x42a89b,_0x319018=_0x27279c?this[_0x5ad0f4(0x14f)][_0x5ad0f4(0x146)](_0x27279c):null,_0x14c25d=_0x319018?.[_0x5ad0f4(0x159)]||_0x25e800(this[_0x5ad0f4(0x15a)][_0x5ad0f4(0x117)],_0x5ad0f4(0x11e));switch(_0x5163fd){case _0x5ad0f4(0x148):return _0x25e800(this[_0x5ad0f4(0x15a)][_0x5ad0f4(0x117)],_0x5ad0f4(0x114),_0x14c25d);case _0x5ad0f4(0x118):{const _0x19d735=_0x25e800(this[_0x5ad0f4(0x15a)][_0x5ad0f4(0x117)],_0x319018?.[_0x5ad0f4(0x126)]?_0x5ad0f4(0xfb):_0x5ad0f4(0x137));return _0x25e800(this[_0x5ad0f4(0x15a)][_0x5ad0f4(0x117)],_0x5ad0f4(0x13e),[_0x19d735,_0x14c25d]);}case _0x5ad0f4(0x133):return _0x25e800(this[_0x5ad0f4(0x15a)][_0x5ad0f4(0x117)],_0x5ad0f4(0x11f),_0x14c25d);case _0x5ad0f4(0x153):case _0x5ad0f4(0x10c):return _0x25e800(this[_0x5ad0f4(0x15a)][_0x5ad0f4(0x117)],_0x5ad0f4(0x11b));default:return _0x25e800(this[_0x5ad0f4(0x15a)][_0x5ad0f4(0x117)],_0x5ad0f4(0x141));}}[_0x42a89b(0x139)](){const _0x341b28=_0x42a89b,_0x446195=new Date(),_0x145c3b=new Date(_0x446195[_0x341b28(0xfa)](),_0x446195[_0x341b28(0xf7)](),_0x446195[_0x341b28(0x151)]()),_0x14b630=new Date(_0x145c3b);_0x14b630[_0x341b28(0x105)](_0x14b630[_0x341b28(0x151)]()-0x1);const _0x51ac94=new Date(_0x145c3b);_0x51ac94[_0x341b28(0x105)](_0x51ac94[_0x341b28(0x151)]()-0xe);const _0xeab952=this[_0x341b28(0x14f)][_0x341b28(0x14d)]({'pinned':!0x0}),_0x390b0b=this[_0x341b28(0x14f)][_0x341b28(0x14d)]({'from':_0x145c3b,'to':_0x145c3b}),_0x2cc6a7=this[_0x341b28(0x14f)][_0x341b28(0x14d)]({'from':_0x14b630,'to':_0x14b630}),_0x46f3cc=this[_0x341b28(0x14f)][_0x341b28(0x14d)]({'from':_0x51ac94,'to':_0x14b630}),_0x384b91=this[_0x341b28(0x14f)][_0x341b28(0x14d)]({'to':_0x51ac94}),_0x6c283d=[];return _0xeab952[_0x341b28(0x12d)]>0x0&&_0x6c283d[_0x341b28(0x112)]({'title':_0x25e800(this[_0x341b28(0x15a)][_0x341b28(0x117)],_0x341b28(0x104)),'items':_0xeab952}),_0x390b0b[_0x341b28(0x12d)]>0x0&&_0x6c283d[_0x341b28(0x112)]({'title':_0x25e800(this[_0x341b28(0x15a)][_0x341b28(0x117)],_0x341b28(0x14a)),'items':_0x390b0b}),_0x2cc6a7[_0x341b28(0x12d)]>0x0&&_0x6c283d[_0x341b28(0x112)]({'title':_0x25e800(this[_0x341b28(0x15a)][_0x341b28(0x117)],_0x341b28(0x101)),'items':_0x2cc6a7}),_0x46f3cc[_0x341b28(0x12d)]>0x0&&_0x6c283d[_0x341b28(0x112)]({'title':_0x25e800(this[_0x341b28(0x15a)][_0x341b28(0x117)],_0x341b28(0x13c)),'items':_0x46f3cc}),_0x384b91[_0x341b28(0x12d)]>0x0&&_0x6c283d[_0x341b28(0x112)]({'title':_0x25e800(this[_0x341b28(0x15a)][_0x341b28(0x117)],_0x341b28(0x106)),'items':_0x384b91}),_0x6c283d;}[_0x42a89b(0xfd)](_0x537101){const _0x219330=_0x42a89b;this[_0x219330(0x158)][_0x219330(0x13d)](_0x537101);}}
|
|
23
|
+
function _0x2fed(){const _0x1a456a=['_handleEditTitle','AIChatHistoryController','updateItemLoadingState','removeConversation','selectConversation','removeHistoryItem','map','showError','editConversationTitle','6457056czeloR','itemsLoaded','resizedTabs','_aiConnector','getItem','unpin','36cfxwbp','AI_CHAT_HISTORY_PIN_ACTION','_clearItemLoading','updateItemPinned','_handleSelectConversation','updates','77327TJPArw','activateTab','107552GRchbE','4aBXMMP','_showConversationHistory','toLocaleDateString','_handleTogglePin','AI_CHAT_HISTORY_CATEGORY_LATER','updateItems','rename','isPremiumPlugin','pinned','AI_CHAT_UNTITLED_CONVERSATION','_handleHistoryErrorUI','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','pin','AI_CHAT_HISTORY_ERROR_GENERIC','727638JGJURK','_aiChatHistoryUi','resizeTabs','_setItemLoading','length','title','history','AI_CHAT_HISTORY_CATEGORY_PINNED','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','removeItem','getDate','activateTab:history','updateItemTitle','getFullYear','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','push','setConversationPinned','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','_updateHistoryItemsUI','_setIsMaximized','3161070xJaYKy','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','AI_CHAT_HISTORY_UNPIN_ACTION','change:activeConversation','loadConversation','_generateErrorMessage','_aiChatController','requires','error','plugins','setLoadingSkeleton','AI_CHAT_HISTORY_CATEGORY_TODAY','isOfficialPlugin','itemUpdated','loadItems','context','get','pluginName','handleRemovedConversation','setDate','activeConversation','itemRemoved','4329976EtDmCG','getMonth','operation','resize','openChat','createdAt','listenTo','_handleRemove','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','remove','getGroupId','init','_getCategorizedItems','3559472LXERqp','getItems','view','chat','items','locale','itemId','5bbElne','setIsMaximized'];_0x2fed=function(){return _0x1a456a;};return _0x2fed();}const _0x2ab1bc=_0x62ce;(function(_0x4a5349,_0x2b9bd7){const _0xfa1ebf=_0x62ce,_0xffcd3d=_0x4a5349();while(!![]){try{const _0x5c000b=parseInt(_0xfa1ebf(0x1ee))/0x1*(parseInt(_0xfa1ebf(0x1f1))/0x2)+-parseInt(_0xfa1ebf(0x1ff))/0x3+parseInt(_0xfa1ebf(0x229))/0x4*(parseInt(_0xfa1ebf(0x23d))/0x5)+-parseInt(_0xfa1ebf(0x1e2))/0x6+parseInt(_0xfa1ebf(0x236))/0x7+-parseInt(_0xfa1ebf(0x1f0))/0x8*(parseInt(_0xfa1ebf(0x1e8))/0x9)+parseInt(_0xfa1ebf(0x213))/0xa;if(_0x5c000b===_0x2b9bd7)break;else _0xffcd3d['push'](_0xffcd3d['shift']());}catch(_0x49aea5){_0xffcd3d['push'](_0xffcd3d['shift']());}}}(_0x2fed,0xa8465));import{ContextPlugin as _0x2b7178}from'ckeditor5/src/core.js';import{AIConnector as _0x4a740a}from'../aicore/aiconnector.js';import{AIChatController as _0x325ed4}from'../aichat/aichatcontroller.js';import{AITabs as _0x7d598e}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x55338e}from'./aichathistoryui.js';function _0x62ce(_0x12adf8,_0x18e9b3){const _0x2fedc2=_0x2fed();return _0x62ce=function(_0x62ce21,_0x3e8add){_0x62ce21=_0x62ce21-0x1dc;let _0x44d9fb=_0x2fedc2[_0x62ce21];return _0x44d9fb;},_0x62ce(_0x12adf8,_0x18e9b3);}import{AIChatHistoryConversations as _0x45940a}from'./model/aichathistoryconversations.js';import{getTranslation as _0x2d57d4}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x2b7178{[_0x2ab1bc(0x1e5)];[_0x2ab1bc(0x200)];[_0x2ab1bc(0x219)];static get[_0x2ab1bc(0x21a)](){return[_0x4a740a,_0x325ed4,_0x55338e,_0x7d598e];}static get[_0x2ab1bc(0x224)](){const _0x10ad00=_0x2ab1bc;return _0x10ad00(0x240);}static get[_0x2ab1bc(0x21f)](){return!0x0;}static get[_0x2ab1bc(0x1f8)](){return!0x0;}[_0x2ab1bc(0x234)](){const _0x5af26a=_0x2ab1bc;this[_0x5af26a(0x1e5)]=this[_0x5af26a(0x222)][_0x5af26a(0x21c)][_0x5af26a(0x223)](_0x4a740a),this[_0x5af26a(0x200)]=this[_0x5af26a(0x222)][_0x5af26a(0x21c)][_0x5af26a(0x223)](_0x55338e),this[_0x5af26a(0x219)]=this[_0x5af26a(0x222)][_0x5af26a(0x21c)][_0x5af26a(0x223)](_0x325ed4);const _0x4291da=this[_0x5af26a(0x222)][_0x5af26a(0x21c)][_0x5af26a(0x223)](_0x7d598e);try{const _0x1402cf=this[_0x5af26a(0x219)][_0x5af26a(0x233)]();this[_0x5af26a(0x205)]=new _0x45940a({'connector':this[_0x5af26a(0x1e5)],'group':_0x1402cf}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x200)],_0x5af26a(0x1dc),(_0x3332fc,_0x9dc001)=>{const _0x39f15e=_0x5af26a;this[_0x39f15e(0x202)](_0x9dc001['id'],_0x39f15e(0x232)),this[_0x39f15e(0x230)](_0x9dc001['id']);}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x200)],_0x5af26a(0x1e1),(_0x189418,_0x3f95fd)=>{const _0x24acc7=_0x5af26a;this[_0x24acc7(0x202)](_0x3f95fd['id'],_0x24acc7(0x1f7)),this[_0x24acc7(0x23f)](_0x3f95fd['id'],_0x3f95fd[_0x24acc7(0x204)]);}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x205)],_0x5af26a(0x220),(_0x34b8e2,_0x4ccbb8)=>{const _0x49104a=_0x5af26a;void 0x0!==_0x4ccbb8[_0x49104a(0x1ed)][_0x49104a(0x204)]&&this[_0x49104a(0x200)][_0x49104a(0x20b)](_0x4ccbb8[_0x49104a(0x23c)],_0x4ccbb8[_0x49104a(0x1ed)][_0x49104a(0x204)]),void 0x0!==_0x4ccbb8[_0x49104a(0x1ed)][_0x49104a(0x1f9)]&&this[_0x49104a(0x211)](),this[_0x49104a(0x1ea)](_0x4ccbb8[_0x49104a(0x23c)]);}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x205)],_0x5af26a(0x228),(_0x40230d,_0x16249a)=>{const _0xe63025=_0x5af26a;this[_0xe63025(0x219)][_0xe63025(0x225)](_0x16249a[_0xe63025(0x23c)]),this[_0xe63025(0x200)][_0xe63025(0x1de)](_0x16249a[_0xe63025(0x23c)]),this[_0xe63025(0x1ea)](_0x16249a[_0xe63025(0x23c)]);}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x205)],_0x5af26a(0x1e3),()=>{const _0x518c72=_0x5af26a;this[_0x518c72(0x211)]();}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x205)],_0x5af26a(0x21b),(_0x3b9cf3,_0x5d6275)=>{const _0x552838=_0x5af26a;this[_0x552838(0x1fb)](_0x5d6275[_0x552838(0x21b)],_0x5d6275[_0x552838(0x22b)],_0x5d6275[_0x552838(0x23c)]);}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x200)],_0x5af26a(0x1dd),(_0x36894c,_0x4d443e)=>{const _0x2fd874=_0x5af26a;this[_0x2fd874(0x1ec)](_0x4d443e['id']);}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x200)],_0x5af26a(0x20f),(_0x26601c,_0x3172f6)=>{const _0x5b8a7a=_0x5af26a,_0x4ca200=_0x3172f6[_0x5b8a7a(0x1f9)]?_0x5b8a7a(0x1fd):_0x5b8a7a(0x1e7);this[_0x5b8a7a(0x202)](_0x3172f6['id'],_0x4ca200),this[_0x5b8a7a(0x1f4)](_0x3172f6['id'],_0x3172f6[_0x5b8a7a(0x1f9)]);}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x200)],_0x5af26a(0x22d),()=>{const _0x23eca7=_0x5af26a;_0x4291da[_0x23eca7(0x238)][_0x23eca7(0x1ef)](_0x23eca7(0x239));}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x219)],_0x5af26a(0x216),()=>{const _0x1f68c6=_0x5af26a;this[_0x1f68c6(0x211)]();}),_0x4291da[_0x5af26a(0x238)]['on'](_0x5af26a(0x20a),()=>{const _0xf53f06=_0x5af26a;this[_0xf53f06(0x1f2)]();}),this[_0x5af26a(0x22f)](_0x4291da,_0x5af26a(0x1e4),(_0x575d39,_0x106bec)=>{const _0x10b8b1=_0x5af26a;this[_0x10b8b1(0x212)](_0x106bec);}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x200)],_0x5af26a(0x201),()=>{const _0x8d229a=_0x5af26a;_0x4291da[_0x8d229a(0x22c)]();});}catch(_0x1645a5){this[_0x5af26a(0x1fb)](_0x1645a5,_0x5af26a(0x234));}}async[_0x2ab1bc(0x23f)](_0x39f4b9,_0x3a3e45){const _0x20b8f2=_0x2ab1bc;await this[_0x20b8f2(0x205)][_0x20b8f2(0x20b)](_0x39f4b9,_0x3a3e45);}async[_0x2ab1bc(0x1f4)](_0xd28227,_0x3ec159){const _0x12f1b9=_0x2ab1bc;await this[_0x12f1b9(0x205)][_0x12f1b9(0x1eb)](_0xd28227,_0x3ec159);}async[_0x2ab1bc(0x230)](_0x5b20e1){const _0x5c683f=_0x2ab1bc;await this[_0x5c683f(0x205)][_0x5c683f(0x208)](_0x5b20e1);}async[_0x2ab1bc(0x1ec)](_0x4fa89c){const _0x2cd3f3=_0x2ab1bc;await this[_0x2cd3f3(0x219)][_0x2cd3f3(0x217)](_0x4fa89c);}async[_0x2ab1bc(0x1f2)](){const _0x1956a4=_0x2ab1bc;this[_0x1956a4(0x200)][_0x1956a4(0x1e0)](''),this[_0x1956a4(0x200)][_0x1956a4(0x21d)](!0x0),await this[_0x1956a4(0x205)][_0x1956a4(0x234)](),this[_0x1956a4(0x200)][_0x1956a4(0x21d)](!0x1);}[_0x2ab1bc(0x211)](){const _0x11c7d6=_0x2ab1bc,_0x56baf4=this[_0x11c7d6(0x219)][_0x11c7d6(0x227)]?.['id'],_0x23aebc=this[_0x11c7d6(0x235)]()[_0x11c7d6(0x1df)](_0x341d95=>({'title':_0x341d95[_0x11c7d6(0x204)],'items':_0x341d95[_0x11c7d6(0x23a)][_0x11c7d6(0x1df)](_0x1ac5d9=>({'id':_0x1ac5d9['id'],'title':_0x1ac5d9[_0x11c7d6(0x204)]||_0x2d57d4(this[_0x11c7d6(0x222)][_0x11c7d6(0x23b)],_0x11c7d6(0x1fa)),'createdAt':new Date(_0x1ac5d9[_0x11c7d6(0x22e)])[_0x11c7d6(0x1f3)](),'active':_0x1ac5d9['id']===_0x56baf4,'pinned':_0x1ac5d9[_0x11c7d6(0x1f9)]}))}));this[_0x11c7d6(0x200)][_0x11c7d6(0x1f6)](_0x23aebc);}[_0x2ab1bc(0x202)](_0x2cc5ee,_0x1ac500){const _0xc8fafe=_0x2ab1bc;this[_0xc8fafe(0x200)][_0xc8fafe(0x241)](_0x2cc5ee,_0x1ac500,!0x0);}[_0x2ab1bc(0x1ea)](_0x77b0e2){const _0x138da7=_0x2ab1bc;this[_0x138da7(0x200)][_0x138da7(0x241)](_0x77b0e2,null,!0x1);}[_0x2ab1bc(0x1fb)](_0x3c6c5f,_0x3fb56c,_0x29ff21){const _0x26f487=_0x2ab1bc,_0x17bea5=this[_0x26f487(0x218)](_0x3fb56c,_0x29ff21);this[_0x26f487(0x200)][_0x26f487(0x1e0)](_0x17bea5),_0x29ff21&&this[_0x26f487(0x1ea)](_0x29ff21),this[_0x26f487(0x200)][_0x26f487(0x21d)](!0x1);}[_0x2ab1bc(0x218)](_0x5233c9,_0x24351b){const _0x1e13d8=_0x2ab1bc,_0x2a303c=_0x24351b?this[_0x1e13d8(0x205)][_0x1e13d8(0x1e6)](_0x24351b):null,_0x476460=_0x2a303c?.[_0x1e13d8(0x204)]||_0x2d57d4(this[_0x1e13d8(0x222)][_0x1e13d8(0x23b)],_0x1e13d8(0x1fa));switch(_0x5233c9){case _0x1e13d8(0x20b):return _0x2d57d4(this[_0x1e13d8(0x222)][_0x1e13d8(0x23b)],_0x1e13d8(0x214),_0x476460);case _0x1e13d8(0x1eb):{const _0x2b14ec=_0x2d57d4(this[_0x1e13d8(0x222)][_0x1e13d8(0x23b)],_0x2a303c?.[_0x1e13d8(0x1f9)]?_0x1e13d8(0x215):_0x1e13d8(0x1e9));return _0x2d57d4(this[_0x1e13d8(0x222)][_0x1e13d8(0x23b)],_0x1e13d8(0x1fc),[_0x2b14ec,_0x476460]);}case _0x1e13d8(0x208):return _0x2d57d4(this[_0x1e13d8(0x222)][_0x1e13d8(0x23b)],_0x1e13d8(0x20d),_0x476460);case _0x1e13d8(0x234):case _0x1e13d8(0x221):return _0x2d57d4(this[_0x1e13d8(0x222)][_0x1e13d8(0x23b)],_0x1e13d8(0x207));default:return _0x2d57d4(this[_0x1e13d8(0x222)][_0x1e13d8(0x23b)],_0x1e13d8(0x1fe));}}[_0x2ab1bc(0x235)](){const _0x297893=_0x2ab1bc,_0x453cb0=new Date(),_0xfd9c92=new Date(_0x453cb0[_0x297893(0x20c)](),_0x453cb0[_0x297893(0x22a)](),_0x453cb0[_0x297893(0x209)]()),_0x112e45=new Date(_0xfd9c92);_0x112e45[_0x297893(0x226)](_0x112e45[_0x297893(0x209)]()-0x1);const _0x111ad0=new Date(_0xfd9c92);_0x111ad0[_0x297893(0x226)](_0x111ad0[_0x297893(0x209)]()-0xe);const _0x20032a=this[_0x297893(0x205)][_0x297893(0x237)]({'pinned':!0x0}),_0x398b61=this[_0x297893(0x205)][_0x297893(0x237)]({'from':_0xfd9c92,'to':_0xfd9c92}),_0x36e2fe=this[_0x297893(0x205)][_0x297893(0x237)]({'from':_0x112e45,'to':_0x112e45}),_0x312849=this[_0x297893(0x205)][_0x297893(0x237)]({'from':_0x111ad0,'to':_0x112e45}),_0x9e0189=this[_0x297893(0x205)][_0x297893(0x237)]({'to':_0x111ad0}),_0x6f9109=[];return _0x20032a[_0x297893(0x203)]>0x0&&_0x6f9109[_0x297893(0x20e)]({'title':_0x2d57d4(this[_0x297893(0x222)][_0x297893(0x23b)],_0x297893(0x206)),'items':_0x20032a}),_0x398b61[_0x297893(0x203)]>0x0&&_0x6f9109[_0x297893(0x20e)]({'title':_0x2d57d4(this[_0x297893(0x222)][_0x297893(0x23b)],_0x297893(0x21e)),'items':_0x398b61}),_0x36e2fe[_0x297893(0x203)]>0x0&&_0x6f9109[_0x297893(0x20e)]({'title':_0x2d57d4(this[_0x297893(0x222)][_0x297893(0x23b)],_0x297893(0x231)),'items':_0x36e2fe}),_0x312849[_0x297893(0x203)]>0x0&&_0x6f9109[_0x297893(0x20e)]({'title':_0x2d57d4(this[_0x297893(0x222)][_0x297893(0x23b)],_0x297893(0x210)),'items':_0x312849}),_0x9e0189[_0x297893(0x203)]>0x0&&_0x6f9109[_0x297893(0x20e)]({'title':_0x2d57d4(this[_0x297893(0x222)][_0x297893(0x23b)],_0x297893(0x1f5)),'items':_0x9e0189}),_0x6f9109;}[_0x2ab1bc(0x212)](_0x4caaef){const _0x240650=_0x2ab1bc;this[_0x240650(0x200)][_0x240650(0x23e)](_0x4caaef);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x371fc4=_0x5e23;(function(_0x14ea87,_0x3c3df8){const _0x2c560e=_0x5e23,_0x2afe5d=_0x14ea87();while(!![]){try{const _0xdd1c13=-parseInt(_0x2c560e(0x1f6))/0x1*(parseInt(_0x2c560e(0x1cf))/0x2)+parseInt(_0x2c560e(0x1f3))/0x3*(parseInt(_0x2c560e(0x1ca))/0x4)+-parseInt(_0x2c560e(0x1ed))/0x5*(-parseInt(_0x2c560e(0x1d1))/0x6)+-parseInt(_0x2c560e(0x1cb))/0x7+parseInt(_0x2c560e(0x1e4))/0x8*(-parseInt(_0x2c560e(0x1f0))/0x9)+parseInt(_0x2c560e(0x1c9))/0xa*(parseInt(_0x2c560e(0x1ec))/0xb)+parseInt(_0x2c560e(0x1e9))/0xc*(parseInt(_0x2c560e(0x1ce))/0xd);if(_0xdd1c13===_0x3c3df8)break;else _0x2afe5d['push'](_0x2afe5d['shift']());}catch(_0x44e123){_0x2afe5d['push'](_0x2afe5d['shift']());}}}(_0x316a,0x8677c));import{ContextPlugin as _0x1fa25f}from'ckeditor5/src/core.js';import{AITabs as _0x1fd463}from'../aitabs/aitabs.js';function _0x5e23(_0x2558cb,_0x43c5c1){const _0x316a0d=_0x316a();return _0x5e23=function(_0x5e2301,_0x59220b){_0x5e2301=_0x5e2301-0x1c6;let _0x40c7d6=_0x316a0d[_0x5e2301];return _0x40c7d6;},_0x5e23(_0x2558cb,_0x43c5c1);}import{IconAIHistory as _0x50d2cf}from'ckeditor5/src/icons.js';function _0x316a(){const _0xcc6c21=['removeConversation','context','pluginName','history','30704qyuueJ','editConversationTitle','updateHistoryItemsWithCategories','updateItemLoadingState','AI_CHAT_HISTORY_HEADING','773028ZoEdBa','hideError','resizeTabs','971773rUgjoJ','2650RVXIXc','openChat','showResizeButton','2097xoIyvx','view','updateItems','9cUSpnm','requires','removeHistoryItem','1002669EVxiUP','isPremiumPlugin','errorMessage','isLoading','110LPAIMR','1223744sVRIJp','3602858cXTlLA','showConversationHistory','selectConversation','52EDbCXV','2KoOFcp','delegate','9228jocgFq','plugins','isOfficialPlugin','AITabs','setConversationPinned','setLoadingSkeleton','get','_historyView','locale','isMaximized','AIChatHistoryUI','setIsMaximized','updateItemTitle','showError','addTab'];_0x316a=function(){return _0xcc6c21;};return _0x316a();}import{AIChatHistoryView as _0x5cb5dd}from'./ui/aichathistoryview.js';import{getTranslation as _0xaa1ffe}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x371fc4(0x1cc),_0x371fc4(0x1e0),_0x371fc4(0x1e5),_0x371fc4(0x1d5),_0x371fc4(0x1cd),_0x371fc4(0x1ee),_0x371fc4(0x1eb)];export class AIChatHistoryUI extends _0x1fa25f{static get[_0x371fc4(0x1f4)](){return[_0x1fd463];}[_0x371fc4(0x1d8)];static get[_0x371fc4(0x1e2)](){const _0x5917f5=_0x371fc4;return _0x5917f5(0x1db);}static get[_0x371fc4(0x1d3)](){return!0x0;}static get[_0x371fc4(0x1c6)](){return!0x0;}constructor(_0x2b7928){const _0x3bf0e3=_0x371fc4;super(_0x2b7928);const _0x130f6f=this[_0x3bf0e3(0x1e1)][_0x3bf0e3(0x1d2)][_0x3bf0e3(0x1d7)](_0x3bf0e3(0x1d4));this[_0x3bf0e3(0x1d8)]=new _0x5cb5dd(this[_0x3bf0e3(0x1e1)][_0x3bf0e3(0x1d9)],_0x130f6f[_0x3bf0e3(0x1ef)]),this[_0x3bf0e3(0x1d8)][_0x3bf0e3(0x1d0)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x130f6f[_0x3bf0e3(0x1f1)][_0x3bf0e3(0x1df)]({'id':_0x3bf0e3(0x1e3),'buttonLabel':_0xaa1ffe(this[_0x3bf0e3(0x1e1)][_0x3bf0e3(0x1d9)],_0x3bf0e3(0x1e8)),'buttonIcon':_0x50d2cf,'order':0x0,'content':this[_0x3bf0e3(0x1d8)]});}[_0x371fc4(0x1f5)](_0x4eb627){const _0x51df08=_0x371fc4;this[_0x51df08(0x1d8)][_0x51df08(0x1f5)](_0x4eb627);}[_0x371fc4(0x1f2)](_0x291d74){const _0x2162df=_0x371fc4;this[_0x2162df(0x1d8)][_0x2162df(0x1e6)](_0x291d74);}[_0x371fc4(0x1dd)](_0x422f17,_0x21dfe9){const _0x37d272=_0x371fc4;this[_0x37d272(0x1d8)][_0x37d272(0x1dd)](_0x422f17,_0x21dfe9);}[_0x371fc4(0x1e7)](_0x39e261,_0x590c7e,_0x1f888e){const _0x2edb33=_0x371fc4;this[_0x2edb33(0x1d8)][_0x2edb33(0x1e7)](_0x39e261,_0x590c7e,_0x1f888e);}[_0x371fc4(0x1d6)](_0xd0b9ff){const _0x24a9b7=_0x371fc4;this[_0x24a9b7(0x1d8)][_0x24a9b7(0x1c8)]=_0xd0b9ff;}[_0x371fc4(0x1de)](_0x2470be){const _0x46562e=_0x371fc4;this[_0x46562e(0x1d8)][_0x46562e(0x1c7)]=_0x2470be;}[_0x371fc4(0x1ea)](){const _0x32d938=_0x371fc4;this[_0x32d938(0x1d8)][_0x32d938(0x1c7)]='';}[_0x371fc4(0x1dc)](_0x39659a){const _0x3d7945=_0x371fc4;this[_0x3d7945(0x1d8)][_0x3d7945(0x1da)]=_0x39659a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x402e00=_0x446a;function _0x446a(_0x506533,_0x23f51d){const _0x2cb775=_0x2cb7();return _0x446a=function(_0x446a96,_0x527778){_0x446a96=_0x446a96-0xc9;let _0x1b872a=_0x2cb775[_0x446a96];return _0x1b872a;},_0x446a(_0x506533,_0x23f51d);}(function(_0xf55bce,_0x19a7f1){const _0x185d26=_0x446a,_0x8dcd53=_0xf55bce();while(!![]){try{const _0x3468e0=parseInt(_0x185d26(0xca))/0x1+parseInt(_0x185d26(0xdc))/0x2*(-parseInt(_0x185d26(0xe8))/0x3)+parseInt(_0x185d26(0xef))/0x4+-parseInt(_0x185d26(0xd1))/0x5*(-parseInt(_0x185d26(0xed))/0x6)+-parseInt(_0x185d26(0xdb))/0x7+parseInt(_0x185d26(0xcb))/0x8*(-parseInt(_0x185d26(0xf7))/0x9)+parseInt(_0x185d26(0xd0))/0xa*(parseInt(_0x185d26(0xcf))/0xb);if(_0x3468e0===_0x19a7f1)break;else _0x8dcd53['push'](_0x8dcd53['shift']());}catch(_0x25b719){_0x8dcd53['push'](_0x8dcd53['shift']());}}}(_0x2cb7,0xda467));function _0x2cb7(){const _0x56bfaa=['group','updateItemPinned','addItem','getTime','fire','getMonth','createdAt','itemRemoved','init','findIndex','4449OyKgTA','removeItem','getDate','splice','getItems','15816HSGBwN','pinned','452620doIWHB','error','filter','items','itemsLoaded','updatePinned','getItem','from','16290iorLdS','getResult','updateItemTitle','706837tkqhEt','6080JIQwkl','getFullYear','find','updateTitle','14590455DaOCsb','20ZMDXsd','2725jjAgWK','fetchConversations','push','map','deleteConversation','updateConversation','loadItems','itemUpdated','getConversations','execute','7754796DFOqNx','2066tvBdaW','connector'];_0x2cb7=function(){return _0x56bfaa;};return _0x2cb7();}import{EmitterMixin as _0x14308b}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x477f30}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x14308b(){[_0x402e00(0xf2)]=[];[_0x402e00(0xdd)];[_0x402e00(0xde)];constructor({connector:_0x5db8e3,group:_0x3ce6e}){const _0x377580=_0x402e00;super(),this[_0x377580(0xdd)]=_0x5db8e3,this[_0x377580(0xde)]=_0x3ce6e;}async[_0x402e00(0xe6)](){const _0x44bca2=_0x402e00;try{const _0x2a9192=this[_0x44bca2(0xdd)][_0x44bca2(0xd2)](this[_0x44bca2(0xde)]),_0x53de46=await _0x2a9192[_0x44bca2(0xd9)]();this[_0x44bca2(0xd7)](_0x53de46);}catch(_0x1ff092){this[_0x44bca2(0xe2)](_0x44bca2(0xf0),{'error':_0x1ff092,'operation':_0x44bca2(0xe6)});}}[_0x402e00(0xe0)](_0x269782){const _0x5577c8=_0x402e00;this[_0x5577c8(0xf2)][_0x5577c8(0xd3)](_0x269782);}async[_0x402e00(0xe9)](_0x4e3a04){const _0x403c12=_0x402e00,_0x4e0959=this[_0x403c12(0xf2)][_0x403c12(0xe7)](_0x255de1=>_0x255de1['id']===_0x4e3a04);if(-0x1===_0x4e0959)return!0x1;try{return await this[_0x403c12(0xdd)][_0x403c12(0xd5)](_0x4e3a04)[_0x403c12(0xda)](),this[_0x403c12(0xf2)][_0x403c12(0xeb)](_0x4e0959,0x1),this[_0x403c12(0xe2)](_0x403c12(0xe5),{'itemId':_0x4e3a04}),!0x0;}catch(_0x69e5e6){return this[_0x403c12(0xe2)](_0x403c12(0xf0),{'error':_0x69e5e6,'operation':_0x403c12(0xe9),'itemId':_0x4e3a04}),!0x1;}}[_0x402e00(0xf5)](_0x421484){const _0x258849=_0x402e00;return this[_0x258849(0xf2)][_0x258849(0xcd)](_0x2574b8=>_0x2574b8['id']===_0x421484);}async[_0x402e00(0xc9)](_0x1ce1f4,_0x4c219f){const _0x233bed=_0x402e00,_0x32e582=this[_0x233bed(0xf5)](_0x1ce1f4);if(!_0x32e582)return!0x1;try{return await this[_0x233bed(0xdd)][_0x233bed(0xd6)](_0x1ce1f4,{'title':_0x4c219f})[_0x233bed(0xf8)](),_0x32e582[_0x233bed(0xce)](_0x4c219f),this[_0x233bed(0xe2)](_0x233bed(0xd8),{'itemId':_0x1ce1f4,'updates':{'title':_0x4c219f}}),!0x0;}catch(_0x3801c7){return this[_0x233bed(0xe2)](_0x233bed(0xf0),{'error':_0x3801c7,'operation':_0x233bed(0xc9),'itemId':_0x1ce1f4}),!0x1;}}async[_0x402e00(0xdf)](_0x2a223a,_0x449815){const _0x571ed9=_0x402e00,_0x11d209=this[_0x571ed9(0xf5)](_0x2a223a);if(!_0x11d209)return!0x1;try{return await this[_0x571ed9(0xdd)][_0x571ed9(0xd6)](_0x2a223a,{'pinned':_0x449815})[_0x571ed9(0xf8)](),_0x11d209[_0x571ed9(0xf4)](_0x449815),this[_0x571ed9(0xe2)](_0x571ed9(0xd8),{'itemId':_0x2a223a,'updates':{'pinned':_0x449815}}),!0x0;}catch(_0x370677){return this[_0x571ed9(0xe2)](_0x571ed9(0xf0),{'error':_0x370677,'operation':_0x571ed9(0xdf),'itemId':_0x2a223a}),!0x1;}}[_0x402e00(0xd7)](_0x180961){const _0x424b50=_0x402e00;try{this[_0x424b50(0xf2)]=[],_0x180961[_0x424b50(0xd4)](_0x2258ab=>{const _0x8eaeb8=_0x424b50;this[_0x8eaeb8(0xe0)](new _0x477f30(_0x2258ab));}),this[_0x424b50(0xe2)](_0x424b50(0xf3),{'items':[...this[_0x424b50(0xf2)]]});}catch(_0x2714c4){this[_0x424b50(0xe2)](_0x424b50(0xf0),{'error':_0x2714c4,'operation':_0x424b50(0xd7)});}}[_0x402e00(0xec)](_0x28b045={}){const _0xc2b8ee=_0x402e00,_0x38c2db=void 0x0!==_0x28b045[_0xc2b8ee(0xee)]&&_0x28b045[_0xc2b8ee(0xee)],_0x2ead2b=_0x28b045[_0xc2b8ee(0xf6)]?new Date(_0x28b045[_0xc2b8ee(0xf6)][_0xc2b8ee(0xcc)](),_0x28b045[_0xc2b8ee(0xf6)][_0xc2b8ee(0xe3)](),_0x28b045[_0xc2b8ee(0xf6)][_0xc2b8ee(0xea)]()):null,_0x3259e4=_0x28b045['to']?new Date(_0x28b045['to'][_0xc2b8ee(0xcc)](),_0x28b045['to'][_0xc2b8ee(0xe3)](),_0x28b045['to'][_0xc2b8ee(0xea)]()):null;return this[_0xc2b8ee(0xf2)][_0xc2b8ee(0xf1)](_0x318ae3=>{const _0xa43b11=_0xc2b8ee;if(_0x318ae3[_0xa43b11(0xee)]!==_0x38c2db)return!0x1;if(_0x3259e4){const _0x1a80df=new Date(_0x318ae3[_0xa43b11(0xe4)][_0xa43b11(0xcc)](),_0x318ae3[_0xa43b11(0xe4)][_0xa43b11(0xe3)](),_0x318ae3[_0xa43b11(0xe4)][_0xa43b11(0xea)]());return _0x2ead2b?_0x2ead2b[_0xa43b11(0xe1)]()===_0x3259e4[_0xa43b11(0xe1)]()?_0x1a80df[_0xa43b11(0xe1)]()===_0x2ead2b[_0xa43b11(0xe1)]():_0x1a80df<_0x3259e4&&_0x1a80df>=_0x2ead2b:_0x1a80df<_0x3259e4;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x11ac5e=_0x3f42;(function(_0x875bac,_0x5ec506){var _0x43950a=_0x3f42,_0x41059a=_0x875bac();while(!![]){try{var _0x22c6d6=-parseInt(_0x43950a(0x6f))/0x1*(parseInt(_0x43950a(0x74))/0x2)+-parseInt(_0x43950a(0x68))/0x3+parseInt(_0x43950a(0x71))/0x4+parseInt(_0x43950a(0x6e))/0x5*(-parseInt(_0x43950a(0x6b))/0x6)+-parseInt(_0x43950a(0x6a))/0x7+-parseInt(_0x43950a(0x6d))/0x8*(-parseInt(_0x43950a(0x6c))/0x9)+parseInt(_0x43950a(0x73))/0xa;if(_0x22c6d6===_0x5ec506)break;else _0x41059a['push'](_0x41059a['shift']());}catch(_0x11eef2){_0x41059a['push'](_0x41059a['shift']());}}}(_0x18b4,0xd993f));function _0x3f42(_0x54d96b,_0x4c5179){var _0x18b43d=_0x18b4();return _0x3f42=function(_0x3f42c5,_0x40abfd){_0x3f42c5=_0x3f42c5-0x68;var _0x16c961=_0x18b43d[_0x3f42c5];return _0x16c961;},_0x3f42(_0x54d96b,_0x4c5179);}function _0x18b4(){var _0x229276=['8QyvClG','5GNWIMh','176iuNJaL','updatePinned','4872140TiqjFX','set','14441950ZPOvsX','19610QjpoKq','title','pinned','createdAt','updateTitle','314736LzvWTM','updatedAt','5550181KfJHLF','4007418kjGLtb','13683123rSYgkN'];_0x18b4=function(){return _0x229276;};return _0x18b4();}import{ObservableMixin as _0x5cb155}from'ckeditor5/src/utils.js';import{escape as _0x7e0aab}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x5cb155(){['id'];[_0x11ac5e(0x77)];constructor({id:_0x27b547,title:_0x4c9b49,createdAt:_0x4dbc23,updatedAt:_0x8ef2c4,pinned:_0xd9dca2}){var _0x28fb5e=_0x11ac5e;super(),this['id']=_0x27b547,this[_0x28fb5e(0x77)]=new Date(_0x4dbc23),this[_0x28fb5e(0x72)](_0x28fb5e(0x75),_0x4c9b49),this[_0x28fb5e(0x72)](_0x28fb5e(0x69),_0x8ef2c4?new Date(_0x8ef2c4):null),this[_0x28fb5e(0x72)](_0x28fb5e(0x76),_0xd9dca2||!0x1);}[_0x11ac5e(0x78)](_0x45bbbf){var _0x2eeb9e=_0x11ac5e;this[_0x2eeb9e(0x72)](_0x2eeb9e(0x75),_0x7e0aab(_0x45bbbf)),this[_0x2eeb9e(0x69)]=new Date();}[_0x11ac5e(0x70)](_0x4aab57){var _0x284b2c=_0x11ac5e;this[_0x284b2c(0x72)](_0x284b2c(0x76),_0x4aab57),this[_0x284b2c(0x69)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
const _0xaeca37=_0x4c9d;function _0x4c9d(_0x444775,_0x5d180f){const _0x4000b6=_0x4000();return _0x4c9d=function(_0x4c9dc3,_0x28ee1e){_0x4c9dc3=_0x4c9dc3-0x7e;let _0x2ff1e7=_0x4000b6[_0x4c9dc3];return _0x2ff1e7;},_0x4c9d(_0x444775,_0x5d180f);}(function(_0x48e511,_0x50b7d5){const _0x348d2c=_0x4c9d,_0x3fdd61=_0x48e511();while(!![]){try{const _0x5ea4c8=-parseInt(_0x348d2c(0x89))/0x1+parseInt(_0x348d2c(0x7e))/0x2+parseInt(_0x348d2c(0x98))/0x3*(-parseInt(_0x348d2c(0xc2))/0x4)+-parseInt(_0x348d2c(0xb8))/0x5+parseInt(_0x348d2c(0x90))/0x6+-parseInt(_0x348d2c(0xc6))/0x7*(parseInt(_0x348d2c(0xd1))/0x8)+parseInt(_0x348d2c(0xb6))/0x9;if(_0x5ea4c8===_0x50b7d5)break;else _0x3fdd61['push'](_0x3fdd61['shift']());}catch(_0x135785){_0x3fdd61['push'](_0x3fdd61['shift']());}}}(_0x4000,0x9b033));import{ListItemView as _0x2af3af,HighlightedTextView as _0x4146a2,ButtonView as _0x4f1d49,ListView as _0x22d302,IconView as _0xf5bab7,createDropdown as _0x458fea,InputTextView as _0x324671}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x182e5f,IconPin as _0x473ff4,IconCheck as _0x1a36c5,IconCancel as _0x44de2f}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x4b55fd,ConfirmMixin as _0x9e9f92}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x4000(){const _0x175c7a=['Enter','AI_CHAT_HISTORY_ACCEPT','editConversationTitle','children','2420202YWRIvi','setTemplate','pinned','AI_CHAT_HISTORY_LOADING_PINNING','AI_CHAT_HISTORY_LOADING_UNPINNING','showConfirm','updateTitle','ck-ai-chat-history__item','clear','_createEditInputView','tiny','1058738paBxAp','AI_CHAT_HISTORY_CANCEL','click','ck-ai-chat-history__item-actions','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-chat-history__item-row','key','4092432GAhQNC','panelPosition','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','LOADING_LABELS','createCollection','string','ck-ai-chat-history__item-main-content','add','1859223eqwUpn','AI_CHAT_HISTORY_REMOVE','match','AI_CHAT_HISTORY_REMOVE_CONFIRM','value','isEdit','isOn','_titleView','_createCancelEditButtonView','extendTemplate','ck-ai-chat-history__item-check','_createPinButtonView','ck-ai-chat-history__item-title','bindTemplate','label','updateLoadingState','ck-ai-chat-history__item-date','_createCheckView','_createAcceptEditButtonView','change:isEdit','ck-ai-chat-history__item-content','mainContent','_createMenuDropdownView','AI_CHAT_HISTORY_LOADING_REMOVING','panelView','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-loader','buttonView','setConversationPinned','highlightText','15242112QayQye','locale','2205930znyeyd','execute','_createSpinnerView','ck-ai-loader__text','ck-ai-chat-history__item--active','text','isMatching','focus','AI_CHAT_HISTORY_EDIT_NAME','ck-ai-chat-history__item--edit','4GLVpkg','addMany','loadingState','ck-hidden','1163603KkTkpY','isVisible','fire','items','ck-confirm-view-submit','div','span','edit:cancel','selectConversation','bind','_commitEditInputValue','40JigrVu','element','listitem','withText','removeConversation','ck-confirm-view-cancel','then','ck-ai-chat-history__item-check-container','set','actions'];_0x4000=function(){return _0x175c7a;};return _0x4000();}import{escape as _0x3a3df9}from'es-toolkit/compat';import{AISpinnerView as _0x44e26e}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x224c49}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x9e9f92(_0x2af3af){['id'];static [_0xaeca37(0x93)]={'remove':_0xaeca37(0xaf),'rename':_0xaeca37(0x8d),'pin':_0xaeca37(0x81),'unpin':_0xaeca37(0x82)};[_0xaeca37(0xda)];[_0xaeca37(0xad)];[_0xaeca37(0x9f)];constructor(_0x12c027,_0x433b9e){const _0x5a84c6=_0xaeca37;super(_0x12c027);const _0x2fc88f=this[_0x5a84c6(0xa5)];this[_0x5a84c6(0xd9)](_0x5a84c6(0x9d),!0x1),this[_0x5a84c6(0xd9)](_0x5a84c6(0xc7),!0x0),this[_0x5a84c6(0xd9)](_0x5a84c6(0x80),!!_0x433b9e[_0x5a84c6(0x80)]),this[_0x5a84c6(0xd9)](_0x5a84c6(0xc4),null),this['id']=_0x433b9e['id'];const {title:_0x2562c1,createdAt:_0x581820,active:_0x503e9a=!0x1}=_0x433b9e;this[_0x5a84c6(0x9f)]=new _0x4146a2(),this[_0x5a84c6(0x9f)][_0x5a84c6(0xbd)]=_0x2562c1,this[_0x5a84c6(0x9f)][_0x5a84c6(0xa1)]({'attributes':{'class':[_0x5a84c6(0xa4)]}});const _0x271dc8=this[_0x5a84c6(0xa9)](),_0x35f624=this[_0x5a84c6(0xa3)](_0x12c027),_0xd64351=this[_0x5a84c6(0xae)](),_0x10c9d7=this[_0x5a84c6(0x87)](_0x12c027,_0x2562c1),_0x1feb67=this[_0x5a84c6(0xaa)](_0x12c027,_0x10c9d7),_0x116bc8=this[_0x5a84c6(0xa0)](_0x12c027,_0x10c9d7);this[_0x5a84c6(0xda)]=this[_0x5a84c6(0x94)](),this[_0x5a84c6(0xad)]=this[_0x5a84c6(0x94)](),this[_0x5a84c6(0xad)][_0x5a84c6(0x97)](this[_0x5a84c6(0x9f)]),this[_0x5a84c6(0xda)][_0x5a84c6(0x97)](_0x35f624),this[_0x5a84c6(0xda)][_0x5a84c6(0x97)](_0xd64351),this['on'](_0x5a84c6(0xab),(_0x3bfc8f,_0x2dd3e8,_0x44ff95)=>{const _0x58baa4=_0x5a84c6;this[_0x58baa4(0xda)][_0x58baa4(0x86)](),this[_0x58baa4(0xad)][_0x58baa4(0x86)](),_0x44ff95?(this[_0x58baa4(0xda)][_0x58baa4(0x97)](_0x1feb67),this[_0x58baa4(0xda)][_0x58baa4(0x97)](_0x116bc8),this[_0x58baa4(0xad)][_0x58baa4(0x97)](_0x10c9d7),_0x10c9d7[_0x58baa4(0xd2)][_0x58baa4(0xbf)]()):(this[_0x58baa4(0xda)][_0x58baa4(0x97)](_0x35f624),this[_0x58baa4(0xda)][_0x58baa4(0x97)](_0xd64351),this[_0x58baa4(0xad)][_0x58baa4(0x97)](this[_0x58baa4(0x9f)]));}),this[_0x5a84c6(0x7f)]({'tag':'li','attributes':{'class':[_0x5a84c6(0x85),_0x503e9a?_0x5a84c6(0xbc):'',_0x2fc88f['if'](_0x5a84c6(0xc7),_0x5a84c6(0xc5),_0x2c5a58=>!_0x2c5a58),_0x2fc88f['if'](_0x5a84c6(0x9d),_0x5a84c6(0xc1))],'role':_0x5a84c6(0xd3)},'children':[{'tag':_0x5a84c6(0xcc),'attributes':{'class':[_0x5a84c6(0xd8)]},'children':[{'tag':_0x5a84c6(0xcb),'attributes':{'class':[_0x5a84c6(0xa2),_0x2fc88f['if'](_0x5a84c6(0xc4),_0x5a84c6(0xc5),_0xbdfa00=>!!_0xbdfa00)]},'children':_0x503e9a?[_0x271dc8]:[]},{'tag':_0x5a84c6(0xcb),'attributes':{'class':[_0x5a84c6(0xb2),_0x2fc88f['if'](_0x5a84c6(0xc4),_0x5a84c6(0xc5),_0x28aa49=>!_0x28aa49)]},'children':[this[_0x5a84c6(0xba)]()]}]},{'tag':_0x5a84c6(0xcb),'attributes':{'class':[_0x5a84c6(0x8e)]},'children':[{'tag':_0x5a84c6(0xcb),'attributes':{'class':[_0x5a84c6(0xac)]},'on':{'click':this[_0x5a84c6(0xa5)]['to'](_0x5a84c6(0x8b))},'children':[{'tag':_0x5a84c6(0xcb),'attributes':{'class':[_0x5a84c6(0x96)]},'children':[{'tag':_0x5a84c6(0xcb),'attributes':{'class':[_0x5a84c6(0xa4),_0x2fc88f['if'](_0x5a84c6(0xc4),_0x5a84c6(0xc5),_0x20e69c=>!!_0x20e69c)]},'children':this[_0x5a84c6(0xad)]},{'tag':_0x5a84c6(0xcb),'attributes':{'class':[_0x5a84c6(0xbb),_0x2fc88f['if'](_0x5a84c6(0xc4),_0x5a84c6(0xc5),_0x54085e=>!_0x54085e)]},'children':[{'text':_0x2fc88f['to'](_0x5a84c6(0xc4),_0x21e02a=>_0x21e02a?_0x224c49(this[_0x5a84c6(0xb7)],AIChatHistoryListItemView[_0x5a84c6(0x93)][_0x21e02a]):'')}]}]},{'tag':_0x5a84c6(0xcc),'attributes':{'class':[_0x5a84c6(0xa8)]},'children':[_0x581820]}]},{'tag':_0x5a84c6(0xcb),'attributes':{'class':[_0x5a84c6(0x8c)]},'children':this[_0x5a84c6(0xda)]}]}]}),this['on'](_0x5a84c6(0x8b),()=>{const _0xdfcef4=_0x5a84c6;this[_0xdfcef4(0x9d)]||this[_0xdfcef4(0xc8)](_0xdfcef4(0xce),{'id':this['id']});});}[_0xaeca37(0x84)](_0x2c5be3){const _0x4b52f5=_0xaeca37;this[_0x4b52f5(0x9f)][_0x4b52f5(0xbd)]=_0x3a3df9(_0x2c5be3);}[_0xaeca37(0xa7)](_0x5eb7d1,_0x4aaa6a){const _0x7e5c1c=_0xaeca37;this[_0x7e5c1c(0xd9)](_0x7e5c1c(0xc4),_0x4aaa6a?_0x5eb7d1:null);}[_0xaeca37(0xa9)](){const _0x139f19=_0xaeca37,_0x5c0f00=new _0xf5bab7();return _0x5c0f00[_0x139f19(0xd9)]({'content':_0x1a36c5}),_0x5c0f00;}[_0xaeca37(0xa3)](_0x50541c){const _0xe9d832=_0xaeca37,_0x23e8e1=new _0x4f1d49(_0x50541c);return _0x23e8e1[_0xe9d832(0xd9)]({'label':_0x224c49(_0x50541c,_0xe9d832(0xb1)),'icon':_0x473ff4,'withText':!0x1,'tooltip':!0x0}),_0x23e8e1[_0xe9d832(0xcf)](_0xe9d832(0x9e))['to'](this,_0xe9d832(0x80)),_0x23e8e1['on'](_0xe9d832(0xb9),()=>{const _0x303559=_0xe9d832,_0x202a7a=!this[_0x303559(0x80)];this[_0x303559(0xc8)](_0x303559(0xb4),{'id':this['id'],'pinned':_0x202a7a});}),_0x23e8e1;}[_0xaeca37(0xae)](){const _0x2d19f5=_0xaeca37,_0x2fc5be=_0x458fea(this[_0x2d19f5(0xb7)],_0x4b55fd),_0x1adf50=_0x2fc5be[_0x2d19f5(0xb0)][_0x2d19f5(0xde)];_0x2fc5be[_0x2d19f5(0xb3)][_0x2d19f5(0xd9)]({'label':_0x224c49(this[_0x2d19f5(0xb7)],_0x2d19f5(0x92)),'icon':_0x182e5f}),_0x2fc5be[_0x2d19f5(0x91)]='sw';const _0x576ab7=new _0x4f1d49(this[_0x2d19f5(0xb7)]);_0x576ab7[_0x2d19f5(0xa6)]=_0x224c49(this[_0x2d19f5(0xb7)],_0x2d19f5(0xc0)),_0x576ab7[_0x2d19f5(0xd4)]=!0x0,_0x576ab7['on'](_0x2d19f5(0xb9),()=>{const _0x475eaf=_0x2d19f5;this[_0x475eaf(0x9d)]=!0x0;});const _0x51ff9d=new _0x4f1d49(this[_0x2d19f5(0xb7)]);_0x51ff9d[_0x2d19f5(0xa6)]=_0x224c49(this[_0x2d19f5(0xb7)],_0x2d19f5(0x99)),_0x51ff9d[_0x2d19f5(0xd4)]=!0x0,_0x51ff9d['on'](_0x2d19f5(0xb9),()=>{const _0x3aa3d1=_0x2d19f5;this[_0x3aa3d1(0x83)](_0x224c49(this[_0x3aa3d1(0xb7)],_0x3aa3d1(0x9b)),this[_0x3aa3d1(0xd2)])[_0x3aa3d1(0xd7)](()=>{const _0x566470=_0x3aa3d1;this[_0x566470(0xc8)](_0x566470(0xd5),{'id':this['id']});});});const _0x2f2f34=new _0x22d302(this[_0x2d19f5(0xb7)]),_0x257aca=new _0x2af3af(this[_0x2d19f5(0xb7)]);_0x257aca[_0x2d19f5(0xde)][_0x2d19f5(0x97)](_0x576ab7);const _0x31eee2=new _0x2af3af(this[_0x2d19f5(0xb7)]);return _0x31eee2[_0x2d19f5(0xde)][_0x2d19f5(0x97)](_0x51ff9d),_0x2f2f34[_0x2d19f5(0xc9)][_0x2d19f5(0xc3)]([_0x257aca,_0x31eee2]),_0x1adf50[_0x2d19f5(0x97)](_0x2f2f34),_0x2fc5be;}[_0xaeca37(0x87)](_0x335e0a,_0x12982e){const _0x4e63a9=_0xaeca37,_0x1d8841=new _0x324671(_0x335e0a),_0x5a20de=_0x1d8841[_0x4e63a9(0xa5)];return _0x1d8841[_0x4e63a9(0x9c)]=_0x12982e,_0x1d8841[_0x4e63a9(0xa1)]({'on':{'keydown':_0x5a20de['to'](_0x45524f=>{const _0x43ef79=_0x4e63a9;_0x43ef79(0xdb)==_0x45524f[_0x43ef79(0x8f)]&&this[_0x43ef79(0xd0)](_0x1d8841);})}}),_0x1d8841;}[_0xaeca37(0xaa)](_0x3d50f9,_0x2bf232){const _0x1bf88e=_0xaeca37,_0x5b987d=new _0x4f1d49(_0x3d50f9);return _0x5b987d[_0x1bf88e(0xd9)]({'icon':_0x1a36c5,'withText':!0x1,'tooltip':_0x224c49(_0x3d50f9,_0x1bf88e(0xdc))}),_0x5b987d[_0x1bf88e(0xa1)]({'attributes':{'class':[_0x1bf88e(0xca)]}}),_0x5b987d['on'](_0x1bf88e(0xb9),()=>{const _0x39b939=_0x1bf88e;this[_0x39b939(0xd0)](_0x2bf232);}),_0x5b987d;}[_0xaeca37(0xd0)](_0x262542){const _0x559f8f=_0xaeca37,_0x1fe4ab=_0x262542[_0x559f8f(0xd2)][_0x559f8f(0x9c)]||'';this[_0x559f8f(0x9f)][_0x559f8f(0xbd)]=_0x1fe4ab,this[_0x559f8f(0x9d)]=!0x1,this[_0x559f8f(0xc8)](_0x559f8f(0xdd),{'id':this['id'],'title':_0x1fe4ab});}[_0xaeca37(0xa0)](_0x3249d7,_0x25f80e){const _0x122d07=_0xaeca37,_0x30e464=new _0x4f1d49(_0x3249d7);return _0x30e464[_0x122d07(0xd9)]({'icon':_0x44de2f,'withText':!0x1,'tooltip':_0x224c49(_0x3249d7,_0x122d07(0x8a))}),_0x30e464[_0x122d07(0xa1)]({'attributes':{'class':[_0x122d07(0xd6)]}}),_0x30e464['on'](_0x122d07(0xb9),()=>{const _0x4bd898=_0x122d07;this[_0x4bd898(0x9d)]=!0x1,_0x25f80e[_0x4bd898(0x9c)]=this[_0x4bd898(0x9f)][_0x4bd898(0xbd)]||'',this[_0x4bd898(0xc8)](_0x4bd898(0xcd));}),_0x30e464;}[_0xaeca37(0xba)](){const _0x2f0593=_0xaeca37,_0x173b5a=new _0x44e26e(_0x2f0593(0x88));return _0x173b5a[_0x2f0593(0xc7)]=!0x0,_0x173b5a;}[_0xaeca37(0xbe)](_0x5787b0){const _0x3418d0=_0xaeca37;return this[_0x3418d0(0x9f)]&&_0x3418d0(0x95)==typeof this[_0x3418d0(0x9f)][_0x3418d0(0xbd)]&&this[_0x3418d0(0x9f)][_0x3418d0(0xbd)][_0x3418d0(0x9a)](_0x5787b0)?{'title':!0x0}:null;}[_0xaeca37(0xb5)](_0x2af052){const _0x4722e=_0xaeca37;this[_0x4722e(0x9f)][_0x4722e(0xb5)](_0x2af052);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x500e(_0x4d1693,_0x538e6d){const _0x198b05=_0x198b();return _0x500e=function(_0x500ef1,_0x40650d){_0x500ef1=_0x500ef1-0x147;let _0x5b5234=_0x198b05[_0x500ef1];return _0x5b5234;},_0x500e(_0x4d1693,_0x538e6d);}const _0x51524b=_0x500e;(function(_0x26096e,_0xcc0b65){const _0x2850fd=_0x500e,_0x470c96=_0x26096e();while(!![]){try{const _0x4fc39f=-parseInt(_0x2850fd(0x150))/0x1*(parseInt(_0x2850fd(0x154))/0x2)+-parseInt(_0x2850fd(0x15a))/0x3*(parseInt(_0x2850fd(0x14c))/0x4)+-parseInt(_0x2850fd(0x15c))/0x5*(parseInt(_0x2850fd(0x147))/0x6)+parseInt(_0x2850fd(0x149))/0x7*(parseInt(_0x2850fd(0x14d))/0x8)+-parseInt(_0x2850fd(0x15b))/0x9+parseInt(_0x2850fd(0x160))/0xa+parseInt(_0x2850fd(0x163))/0xb;if(_0x4fc39f===_0xcc0b65)break;else _0x470c96['push'](_0x470c96['shift']());}catch(_0x5885a9){_0x470c96['push'](_0x470c96['shift']());}}}(_0x198b,0x1ff70));import{ListItemView as _0x161101,View as _0x19020e,ListView as _0x1fa0e8}from'ckeditor5/src/ui.js';function _0x198b(){const _0x1df045=['1434537cubVWL','5iUJbzF','indexOf','ck-ai-chat-history__section-title','set','826320qKzzJJ','removeItem','bindTemplate','5792336GqJtNO','highlightText','find','isVisible','filter','addMany','1461342xRFYxs','remove','431165TcFrVu','length','isMatching','4HRFquP','8qRmEbk','ck-hidden','itemsViews','4552FDNULi','setTemplate','getItem','splice','32jQmMSH','title','_itemsListView','ck-ai-chat-history__section','items','div','192279Rvntbb'];_0x198b=function(){return _0x1df045;};return _0x198b();}export class AIChatHistoryListView extends _0x161101{[_0x51524b(0x155)];[_0x51524b(0x14f)];[_0x51524b(0x156)];constructor(_0x41ac64,{title:_0xf08aac,items:_0xc96c69}){const _0x4a5fba=_0x51524b;super(_0x41ac64);const _0x5a81b0=this[_0x4a5fba(0x162)];this[_0x4a5fba(0x15f)](_0x4a5fba(0x166),!0x0),this[_0x4a5fba(0x155)]=_0xf08aac,this[_0x4a5fba(0x14f)]=_0xc96c69;const _0x2eee48=new _0x19020e(_0x41ac64);_0x2eee48[_0x4a5fba(0x151)]({'tag':_0x4a5fba(0x159),'attributes':{'class':[_0x4a5fba(0x15e)]},'children':[this[_0x4a5fba(0x155)]]}),this[_0x4a5fba(0x156)]=new _0x1fa0e8(_0x41ac64),this[_0x4a5fba(0x156)][_0x4a5fba(0x158)][_0x4a5fba(0x168)](this[_0x4a5fba(0x14f)]),this[_0x4a5fba(0x151)]({'tag':'li','attributes':{'class':[_0x4a5fba(0x157),_0x5a81b0['if'](_0x4a5fba(0x166),_0x4a5fba(0x14e),_0x1d0ad0=>!_0x1d0ad0)]},'children':[_0x2eee48,this[_0x4a5fba(0x156)]]});}[_0x51524b(0x167)](_0x470aef){const _0x43ae72=_0x51524b,_0x476d29=this[_0x43ae72(0x14f)][_0x43ae72(0x14a)];let _0x41fa30=0x0;for(const _0x1ed1f0 of this[_0x43ae72(0x14f)]){if(_0x470aef){const _0x2dcd7a=_0x1ed1f0[_0x43ae72(0x14b)](_0x470aef);_0x1ed1f0[_0x43ae72(0x166)]=!!_0x2dcd7a,_0x1ed1f0[_0x43ae72(0x164)](_0x470aef);}else _0x1ed1f0[_0x43ae72(0x166)]=!0x0,_0x1ed1f0[_0x43ae72(0x164)](null);_0x1ed1f0[_0x43ae72(0x166)]&&_0x41fa30++;}return this[_0x43ae72(0x166)]=_0x41fa30>0x0,{'resultsCount':_0x41fa30,'totalItemsCount':_0x476d29};}[_0x51524b(0x152)](_0xaed28){const _0x3c60d5=_0x51524b;return this[_0x3c60d5(0x14f)][_0x3c60d5(0x165)](_0x19b923=>_0x19b923['id']===_0xaed28);}[_0x51524b(0x161)](_0x1a8ec5){const _0xe0294d=_0x51524b,_0x2a855c=this[_0xe0294d(0x14f)][_0xe0294d(0x15d)](_0x1a8ec5);-0x1!==_0x2a855c&&(this[_0xe0294d(0x14f)][_0xe0294d(0x153)](_0x2a855c,0x1),this[_0xe0294d(0x156)][_0xe0294d(0x158)][_0xe0294d(0x148)](_0x1a8ec5));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x28fa(_0x21312a,_0x5b99f7){const _0x7aa8ef=_0x7aa8();return _0x28fa=function(_0x28fa98,_0x4bacf5){_0x28fa98=_0x28fa98-0xb9;let _0x4577db=_0x7aa8ef[_0x28fa98];return _0x4577db;},_0x28fa(_0x21312a,_0x5b99f7);}const _0x3d4f41=_0x28fa;(function(_0x4c7073,_0x295e00){const _0x52b478=_0x28fa,_0x557c3e=_0x4c7073();while(!![]){try{const _0x4bdc7=-parseInt(_0x52b478(0xbb))/0x1*(parseInt(_0x52b478(0xb9))/0x2)+parseInt(_0x52b478(0xc4))/0x3+-parseInt(_0x52b478(0xc3))/0x4+parseInt(_0x52b478(0xbe))/0x5*(-parseInt(_0x52b478(0xbc))/0x6)+parseInt(_0x52b478(0xba))/0x7*(-parseInt(_0x52b478(0xc1))/0x8)+-parseInt(_0x52b478(0xc7))/0x9+parseInt(_0x52b478(0xc5))/0xa;if(_0x4bdc7===_0x295e00)break;else _0x557c3e['push'](_0x557c3e['shift']());}catch(_0x57907f){_0x557c3e['push'](_0x557c3e['shift']());}}}(_0x7aa8,0xdb760));import{ListView as _0x47e536}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x47e536{[_0x3d4f41(0xbf)];constructor(_0x198b0a,_0x1cb983){const _0xaa60c=_0x3d4f41;super(_0x198b0a),this[_0xaa60c(0xbf)]=_0x1cb983,this[_0xaa60c(0xc0)][_0xaa60c(0xc8)](this[_0xaa60c(0xbf)]),this[_0xaa60c(0xc2)]({'attributes':{'class':[_0xaa60c(0xbd)]}});}[_0x3d4f41(0xc6)](_0x39d4f5){const _0x1146ad=_0x3d4f41;let _0x50ac93=0x0,_0x17ff99=0x0;for(const _0x54c32f of this[_0x1146ad(0xbf)]){const {resultsCount:_0x180520,totalItemsCount:_0x328a2c}=_0x54c32f[_0x1146ad(0xc6)](_0x39d4f5);_0x50ac93+=_0x180520,_0x17ff99+=_0x328a2c;}return{'resultsCount':_0x50ac93,'totalItemsCount':_0x17ff99};}}function _0x7aa8(){const _0x4e5233=['items','11629336DcSFuf','extendTemplate','2523320WsxLAq','1485717GkrpLV','54178750jKbSAR','filter','13199724ayRZUI','addMany','6osjIQO','7ViwKji','396509HgkGot','12LLRcyx','ck-ai-chat-history__sections','683855FXVPQG','sections'];_0x7aa8=function(){return _0x4e5233;};return _0x7aa8();}
|
|
@@ -21,6 +21,7 @@ export declare class AIChatHistoryView extends View {
|
|
|
21
21
|
errorMessage: string;
|
|
22
22
|
isSearchViewVisible: boolean;
|
|
23
23
|
isEmptyViewVisible: boolean;
|
|
24
|
+
isMainErrorViewVisible: boolean;
|
|
24
25
|
constructor(locale: Locale, showResizeButton: boolean);
|
|
25
26
|
/**
|
|
26
27
|
* Updates the chat history list with pre-categorized items from the model.
|