@ckeditor/ckeditor5-ai 47.3.0-alpha.1 → 47.3.0-alpha.3
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 -15
- package/dist/index.css +19 -15
- 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 -14
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x48300d=_0xec87;(function(_0x47def2,_0x46fc49){const _0x4bb6c2=_0xec87,_0x17f529=_0x47def2();while(!![]){try{const _0xe2a26e=-parseInt(_0x4bb6c2(0x1bf))/0x1+parseInt(_0x4bb6c2(0x205))/0x2+-parseInt(_0x4bb6c2(0x20d))/0x3*(parseInt(_0x4bb6c2(0x1d9))/0x4)+parseInt(_0x4bb6c2(0x1ea))/0x5+-parseInt(_0x4bb6c2(0x209))/0x6*(parseInt(_0x4bb6c2(0x1f3))/0x7)+parseInt(_0x4bb6c2(0x1ff))/0x8*(-parseInt(_0x4bb6c2(0x1b3))/0x9)+parseInt(_0x4bb6c2(0x1b0))/0xa;if(_0xe2a26e===_0x46fc49)break;else _0x17f529['push'](_0x17f529['shift']());}catch(_0x261364){_0x17f529['push'](_0x17f529['shift']());}}}(_0x2273,0xcbcf9));import{KeystrokeHandler as _0x340251}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x1969c0,BodyCollection as _0x271ab8,ButtonView as _0x51059f,clickOutsideHandler as _0x5eb937,ListItemButtonView as _0x4305c3,ListItemView as _0xb6d551,ListView as _0x5ebe94,SplitButtonView as _0x222148,UIModel as _0x161fcb,View as _0x3b09c5}from'ckeditor5/src/ui.js';function _0x2273(){const _0x34786f=['AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','actionName','bindTemplate','1518684cDjqpC','bind','hide','width','5268666diiror','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','_dropdownOriginalConfig','showChangeInTextModel','378AOhttv','ck-ai-chat__feed__ai-suggestion__actions__balloon','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','30367350YQZqIB','actionsButton','arrowView','4644mkWPSP','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','listView','filter','set','attachToDom','remove','has','unbind','execute','div','balloonPanelView','495761QJiNfv','isEnabled','_createActionsDropdown','insertSuggestion','change:isTrackChangesOn','listenTo','_setUpList','ck-ai-chat__feed__ai-suggestion__actions--no-animation','open','locale','button','setTemplate','tooltip','source','_firstRender','ltr','ck-ai-chat__feed__ai-suggestion__actions\x20','pin','listItemModels','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','_setUpKeystrokes','applySuggestion','ck-ai-chat__feed__ai-suggestion__actions','ck-hidden','add','delegate','32348BsjpfE','keys','bottom','children','_createActionsButton','createCollection','map','esc','content','updateLabels','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','showChangeInText','applySuggestionModel','balloonPanelClass','focus','class','label','3932910lptEVO','detachFromDom','insertSuggestionModel','_createActionsDropdownOrButton','uiLanguageDirection','ck-ai-button-primary','_dropdownCurrentConfig','arrowless','element','7JCicYK','keystrokeHandler','bodyCollection','left','_partsCount','fire','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','destroy','isVisible','_updateDropdownActions','length','slice','21008WbcpjL','items','isTrackChangesOn'];_0x2273=function(){return _0x34786f;};return _0x2273();}import{IconCheck as _0x4adfcd,IconAddComment as _0x9fc540,IconDocumentWithLoupe as _0x592000}from'ckeditor5/src/icons.js';import{getTranslation as _0x407edc}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x48300d(0x1d4),_0x48300d(0x1c2),_0x48300d(0x1e4)];export class AIChatFeedSuggestionItemActionsView extends _0x3b09c5{[_0x48300d(0x1b1)];[_0x48300d(0x1dc)];[_0x48300d(0x1e5)];[_0x48300d(0x20c)];[_0x48300d(0x1ec)];[_0x48300d(0x1f7)]=0x1;[_0x48300d(0x20b)];[_0x48300d(0x1f0)];[_0x48300d(0x1cd)]=!0x0;constructor(_0x415e07,_0x5d7fff){const _0x5ba672=_0x48300d;super(_0x415e07),this[_0x5ba672(0x20b)]=_0x5d7fff||[...AI_REPLY_ACTIONS],this[_0x5ba672(0x1f0)]=[...this[_0x5ba672(0x20b)]];const _0x277cc6=this[_0x5ba672(0x204)];this[_0x5ba672(0x1b7)](_0x5ba672(0x1c0),!0x0),this[_0x5ba672(0x1b7)](_0x5ba672(0x1fb),!0x0),this[_0x5ba672(0x1b7)](_0x5ba672(0x201),!0x1),this[_0x5ba672(0x1e5)]=new _0x161fcb({'label':Pn(_0x5ba672(0x1d4),_0x415e07,this[_0x5ba672(0x1f7)]),'icon':_0x4adfcd,'withText':!0x0,'type':_0x5ba672(0x1c9),'actionName':_0x5ba672(0x1d4)}),this[_0x5ba672(0x20c)]=new _0x161fcb({'label':Pn(_0x5ba672(0x1e4),_0x415e07,this[_0x5ba672(0x1f7)]),'icon':_0x592000,'withText':!0x0,'type':_0x5ba672(0x1c9),'actionName':_0x5ba672(0x1e4)}),this[_0x5ba672(0x1ec)]=new _0x161fcb({'label':Pn(_0x5ba672(0x1c2),_0x415e07,this[_0x5ba672(0x1f7)]),'icon':_0x9fc540,'withText':!0x0,'type':_0x5ba672(0x1c9),'actionName':_0x5ba672(0x1c2)}),this[_0x5ba672(0x1b1)]=this[_0x5ba672(0x1ed)](_0x415e07),this[_0x5ba672(0x1dc)]=this[_0x5ba672(0x1de)](),this[_0x5ba672(0x1b1)]&&this[_0x5ba672(0x1dc)][_0x5ba672(0x1d7)](this[_0x5ba672(0x1b1)]),this[_0x5ba672(0x1ca)]({'tag':_0x5ba672(0x1bd),'attributes':{'class':['ck',_0x5ba672(0x1d5),_0x277cc6['if'](_0x5ba672(0x1fb),_0x5ba672(0x1d6),_0x3c45d6=>!_0x3c45d6)]},'children':this[_0x5ba672(0x1dc)]}),this['on'](_0x5ba672(0x1c3),()=>{const _0x5c4d7c=_0x5ba672;this[_0x5c4d7c(0x1f0)]=this[_0x5c4d7c(0x201)]?this[_0x5c4d7c(0x20b)][_0x5c4d7c(0x1b6)](_0x588448=>_0x5c4d7c(0x1d4)!==_0x588448):[...this[_0x5c4d7c(0x20b)]],this[_0x5c4d7c(0x1fc)](_0x415e07);});}[_0x48300d(0x1fc)](_0x29ebe2){const _0x4b7371=_0x48300d;this[_0x4b7371(0x1b1)]&&this[_0x4b7371(0x1dc)][_0x4b7371(0x1ba)](this[_0x4b7371(0x1b1)])&&(this[_0x4b7371(0x1dc)][_0x4b7371(0x1b9)](this[_0x4b7371(0x1b1)]),this[_0x4b7371(0x1b1)][_0x4b7371(0x1fa)]()),this[_0x4b7371(0x1b1)]=this[_0x4b7371(0x1ed)](_0x29ebe2),this[_0x4b7371(0x1b1)]&&this[_0x4b7371(0x1dc)][_0x4b7371(0x1d7)](this[_0x4b7371(0x1b1)]);}[_0x48300d(0x1ed)](_0x19d85a){const _0x38691a=_0x48300d;if(0x0==this[_0x38691a(0x1f0)][_0x38691a(0x1fd)])return null;const _0x225f41=0x1===this[_0x38691a(0x1f0)][_0x38691a(0x1fd)]?this[_0x38691a(0x1dd)](_0x19d85a):this[_0x38691a(0x1c1)](_0x19d85a),_0x51f7fc=this[_0x38691a(0x1cd)]?'':_0x38691a(0x1c6);_0x225f41[_0x38691a(0x1b7)]({'label':Pn(this[_0x38691a(0x1f0)][0x0],_0x19d85a,this[_0x38691a(0x1f7)]),'tooltip':Hn(this[_0x38691a(0x1f0)][0x0],_0x19d85a,this[_0x38691a(0x1f7)]),'withText':!0x0,'class':_0x38691a(0x1cf)+_0x51f7fc});for(const _0x3809f5 of this[_0x38691a(0x1f0)])_0x225f41['on'](_0x3809f5,()=>{const _0x3ca771=_0x38691a;this[_0x3ca771(0x1f8)](_0x3809f5);});return this[_0x38691a(0x1cd)]=!0x1,_0x225f41;}[_0x48300d(0x1dd)](_0x909a92){const _0x4a73e=_0x48300d,_0x464c01=new _0x51059f(_0x909a92);return _0x464c01[_0x4a73e(0x1b7)]({'class':_0x4a73e(0x1ef),'withText':!0x0}),_0x464c01['on'](_0x4a73e(0x1bc),()=>{const _0x116b5c=_0x4a73e;_0x464c01[_0x116b5c(0x1f8)](this[_0x116b5c(0x1f0)][0x0]);}),_0x464c01;}[_0x48300d(0x1c1)](_0x141598){const _0x3b4fb9=_0x48300d,_0x35934f=new Nn(_0x141598,{'listItemModels':this[_0x3b4fb9(0x1f0)][_0x3b4fb9(0x1df)](_0x2b9095=>{const _0x2fb926=_0x3b4fb9;switch(_0x2b9095){case _0x2fb926(0x1d4):return this[_0x2fb926(0x1e5)];case _0x2fb926(0x1e4):return this[_0x2fb926(0x20c)];case _0x2fb926(0x1c2):return this[_0x2fb926(0x1ec)];}})});return _0x35934f[_0x3b4fb9(0x1b7)]({'label':Pn(this[_0x3b4fb9(0x1f0)][0x0],_0x141598,this[_0x3b4fb9(0x1f7)]),'tooltip':Hn(this[_0x3b4fb9(0x1f0)][0x0],_0x141598,this[_0x3b4fb9(0x1f7)]),'withText':!0x0,'class':_0x3b4fb9(0x1d5),'balloonPanelClass':_0x3b4fb9(0x20e)}),_0x35934f[_0x3b4fb9(0x206)](_0x3b4fb9(0x1c0))['to'](this),_0x35934f;}[_0x48300d(0x1e2)](_0xe30e92){const _0x35492b=_0x48300d,_0x45b06f=this[_0x35492b(0x1c8)];this[_0x35492b(0x1f7)]=_0xe30e92||this[_0x35492b(0x1f7)],this[_0x35492b(0x1b1)][_0x35492b(0x1b7)]({'label':Pn(this[_0x35492b(0x1f0)][0x0],_0x45b06f,this[_0x35492b(0x1f7)]),'tooltip':Hn(this[_0x35492b(0x1f0)][0x0],_0x45b06f,this[_0x35492b(0x1f7)])}),this[_0x35492b(0x1e5)][_0x35492b(0x1e9)]=Pn(_0x35492b(0x1d4),_0x45b06f,this[_0x35492b(0x1f7)]),this[_0x35492b(0x20c)][_0x35492b(0x1e9)]=Pn(_0x35492b(0x1e4),_0x45b06f,this[_0x35492b(0x1f7)]),this[_0x35492b(0x1ec)][_0x35492b(0x1e9)]=Pn(_0x35492b(0x1c2),_0x45b06f,this[_0x35492b(0x1f7)]);}}class Nn extends _0x222148{[_0x48300d(0x1f5)];[_0x48300d(0x1be)];[_0x48300d(0x1b5)];[_0x48300d(0x1f4)];constructor(_0x40e136,_0x138d00){const _0x10e01a=_0x48300d;super(_0x40e136),this[_0x10e01a(0x1be)]=new _0x1969c0(this[_0x10e01a(0x1c8)]),this[_0x10e01a(0x1f5)]=new _0x271ab8(this[_0x10e01a(0x1c8)]),this[_0x10e01a(0x1f5)][_0x10e01a(0x1b8)](),this[_0x10e01a(0x1b7)](_0x10e01a(0x1e6),''),this[_0x10e01a(0x1be)][_0x10e01a(0x206)](_0x10e01a(0x1e8))['to'](this,_0x10e01a(0x1e6)),this[_0x10e01a(0x1b5)]=this[_0x10e01a(0x1c5)](_0x138d00[_0x10e01a(0x1d1)][_0x10e01a(0x1fe)](0x1)),this[_0x10e01a(0x1f5)][_0x10e01a(0x1d7)](this[_0x10e01a(0x1be)]),this[_0x10e01a(0x1be)][_0x10e01a(0x1e1)][_0x10e01a(0x1d7)](this[_0x10e01a(0x1b5)]),this[_0x10e01a(0x1b2)][_0x10e01a(0x1bb)](_0x10e01a(0x1cb)),this[_0x10e01a(0x1b2)][_0x10e01a(0x1b7)](_0x10e01a(0x1cb),_0x407edc(this[_0x10e01a(0x1c8)],_0x10e01a(0x1e3))),this[_0x10e01a(0x1d3)](),this['on'](_0x10e01a(0x1bc),()=>{const _0x3a9f4d=_0x10e01a,_0x2e65b9=_0x138d00[_0x3a9f4d(0x1d1)][0x0][_0x3a9f4d(0x203)];this[_0x3a9f4d(0x1f8)](_0x2e65b9),this[_0x3a9f4d(0x1be)][_0x3a9f4d(0x207)](),this[_0x3a9f4d(0x1b2)][_0x3a9f4d(0x1e7)]();}),this['on'](_0x10e01a(0x1c7),()=>{const _0x5d3f04=_0x10e01a;this[_0x5d3f04(0x1be)][_0x5d3f04(0x1fb)]?(this[_0x5d3f04(0x1be)][_0x5d3f04(0x207)](),this[_0x5d3f04(0x1b2)][_0x5d3f04(0x1e7)]()):(this[_0x5d3f04(0x1be)][_0x5d3f04(0x1d0)]({'target':this[_0x5d3f04(0x1f2)],'positions':[_0x5d3f04(0x1ce)===this[_0x5d3f04(0x1c8)][_0x5d3f04(0x1ee)]?Gn:yn]}),this[_0x5d3f04(0x1b5)][_0x5d3f04(0x1e7)]());}),_0x5eb937({'emitter':this[_0x10e01a(0x1be)],'callback':()=>{const _0x27becf=_0x10e01a;this[_0x27becf(0x1be)][_0x27becf(0x207)]();},'activator':()=>this[_0x10e01a(0x1be)][_0x10e01a(0x1fb)],'contextElements':()=>[this[_0x10e01a(0x1f2)],this[_0x10e01a(0x1be)][_0x10e01a(0x1f2)]]});}[_0x48300d(0x1c5)](_0x4af93a){const _0x5203c6=_0x48300d,_0x191e1e=this[_0x5203c6(0x1c8)],_0x1d4f87=new _0x5ebe94(_0x191e1e);for(const _0x4d0455 of _0x4af93a){const _0x15919d=new _0xb6d551(_0x191e1e),_0x45b559=new _0x4305c3(_0x191e1e);_0x45b559[_0x5203c6(0x206)](...Object[_0x5203c6(0x1da)](_0x4d0455))['to'](_0x4d0455),_0x45b559[_0x5203c6(0x1d8)](_0x5203c6(0x1bc))['to'](_0x1d4f87),_0x15919d[_0x5203c6(0x1dc)][_0x5203c6(0x1d7)](_0x45b559),_0x1d4f87[_0x5203c6(0x200)][_0x5203c6(0x1d7)](_0x15919d);}return _0x1d4f87[_0x5203c6(0x200)][_0x5203c6(0x1d8)](_0x5203c6(0x1bc))['to'](this),_0x1d4f87['on'](_0x5203c6(0x1bc),_0x4f314c=>{const _0x262586=_0x5203c6,_0x5a0f10=_0x4f314c[_0x262586(0x1cc)];this[_0x262586(0x1f8)](_0x5a0f10[_0x262586(0x203)]),this[_0x262586(0x1be)][_0x262586(0x207)](),this[_0x262586(0x1b2)][_0x262586(0x1e7)]();}),_0x1d4f87;}[_0x48300d(0x1d3)](){const _0x192b6b=_0x48300d;this[_0x192b6b(0x1f4)]=new _0x340251(),this[_0x192b6b(0x1f4)][_0x192b6b(0x1c4)](this[_0x192b6b(0x1be)][_0x192b6b(0x1f2)]),this[_0x192b6b(0x1f4)][_0x192b6b(0x1b7)](_0x192b6b(0x1e0),(_0x5c726e,_0xbdcc19)=>{const _0x44fe33=_0x192b6b;this[_0x44fe33(0x1be)][_0x44fe33(0x207)](),this[_0x44fe33(0x1b2)][_0x44fe33(0x1e7)](),_0xbdcc19();});}[_0x48300d(0x1fa)](){const _0x35d2d5=_0x48300d;super[_0x35d2d5(0x1fa)](),this[_0x35d2d5(0x1f4)][_0x35d2d5(0x1fa)](),this[_0x35d2d5(0x1be)][_0x35d2d5(0x1fa)](),this[_0x35d2d5(0x1f5)][_0x35d2d5(0x1eb)]();}}function Gn(_0x5cbe64){const _0x307be3=_0x48300d;return{'top':_0x5cbe64[_0x307be3(0x1db)],'left':_0x5cbe64[_0x307be3(0x1f6)],'name':_0x307be3(0x1f1),'config':{'withArrow':!0x1}};}function _0xec87(_0x1e3510,_0x483746){const _0x227317=_0x2273();return _0xec87=function(_0xec87a2,_0x4a8a76){_0xec87a2=_0xec87a2-0x1af;let _0x258940=_0x227317[_0xec87a2];return _0x258940;},_0xec87(_0x1e3510,_0x483746);}function yn(_0x24560a,_0x113334){const _0x38279c=_0x48300d;return{'top':_0x24560a[_0x38279c(0x1db)],'left':_0x24560a[_0x38279c(0x1f6)]-(_0x113334[_0x38279c(0x208)]-_0x24560a[_0x38279c(0x208)]),'name':_0x38279c(0x1f1),'config':{'withArrow':!0x1}};}function Pn(_0x517d4a,_0x128689,_0x4b3e85){const _0x3e34d4=_0x48300d;switch(_0x517d4a){case _0x3e34d4(0x1d4):return _0x407edc(_0x128689,_0x3e34d4(0x1b4),_0x4b3e85);case _0x3e34d4(0x1e4):return _0x407edc(_0x128689,_0x3e34d4(0x1f9),_0x4b3e85);case _0x3e34d4(0x1c2):return _0x407edc(_0x128689,_0x3e34d4(0x202),_0x4b3e85);}}function Hn(_0x29857d,_0x52c1b8,_0x3c9de5){const _0x169abd=_0x48300d;switch(_0x29857d){case _0x169abd(0x1d4):return _0x407edc(_0x52c1b8,_0x169abd(0x1d2),_0x3c9de5);case _0x169abd(0x1e4):return _0x407edc(_0x52c1b8,_0x169abd(0x1af),_0x3c9de5);case _0x169abd(0x1c2):return _0x407edc(_0x52c1b8,_0x169abd(0x20a),_0x3c9de5);}}
|
|
23
|
+
const _0xdaca80=_0x23aa;(function(_0x2e08e9,_0x116a33){const _0x497e9a=_0x23aa,_0x27641f=_0x2e08e9();while(!![]){try{const _0xa1a58c=parseInt(_0x497e9a(0x194))/0x1*(parseInt(_0x497e9a(0x196))/0x2)+parseInt(_0x497e9a(0x1c7))/0x3+-parseInt(_0x497e9a(0x1a8))/0x4*(parseInt(_0x497e9a(0x1a3))/0x5)+parseInt(_0x497e9a(0x1a2))/0x6*(-parseInt(_0x497e9a(0x1b7))/0x7)+-parseInt(_0x497e9a(0x1df))/0x8+parseInt(_0x497e9a(0x1a9))/0x9*(-parseInt(_0x497e9a(0x1cd))/0xa)+parseInt(_0x497e9a(0x1d7))/0xb*(parseInt(_0x497e9a(0x1de))/0xc);if(_0xa1a58c===_0x116a33)break;else _0x27641f['push'](_0x27641f['shift']());}catch(_0x1cee38){_0x27641f['push'](_0x27641f['shift']());}}}(_0x5f49,0x55039));import{KeystrokeHandler as _0x228a2e}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x622373,BodyCollection as _0x25eaef,ButtonView as _0x423369,clickOutsideHandler as _0x4db55c,ListItemButtonView as _0x2bc0a5,ListItemView as _0x49fac1,ListView as _0x3e2bdd,SplitButtonView as _0x49116a,UIModel as _0x8f5186,View as _0x36c386}from'ckeditor5/src/ui.js';import{IconCheck as _0x2dbfb8,IconAddComment as _0x44132d,IconDocumentWithLoupe as _0x2d6111}from'ckeditor5/src/icons.js';import{getTranslation as _0x2bdf2b}from'../../../aicore/utils/common-translations.js';function _0x23aa(_0x8e2a0c,_0x34ef7e){const _0x5f497c=_0x5f49();return _0x23aa=function(_0x23aaa8,_0x45a826){_0x23aaa8=_0x23aaa8-0x187;let _0x445c44=_0x5f497c[_0x23aaa8];return _0x445c44;},_0x23aa(_0x8e2a0c,_0x34ef7e);}export const AI_REPLY_ACTIONS=[_0xdaca80(0x1ad),_0xdaca80(0x1d4),_0xdaca80(0x1aa)];export class AIChatFeedSuggestionItemActionsView extends _0x36c386{[_0xdaca80(0x1a4)];[_0xdaca80(0x1a5)];[_0xdaca80(0x1dd)];[_0xdaca80(0x1c9)];[_0xdaca80(0x1a1)];[_0xdaca80(0x1d6)]=0x1;[_0xdaca80(0x1d9)];[_0xdaca80(0x1c5)];[_0xdaca80(0x1af)]=!0x0;constructor(_0x2c9133,_0x4cdb37){const _0x25a30f=_0xdaca80;super(_0x2c9133),this[_0x25a30f(0x1d9)]=_0x4cdb37||[...AI_REPLY_ACTIONS],this[_0x25a30f(0x1c5)]=[...this[_0x25a30f(0x1d9)]];const _0x301c65=this[_0x25a30f(0x1e0)];this[_0x25a30f(0x1bd)](_0x25a30f(0x1c2),!0x0),this[_0x25a30f(0x1bd)](_0x25a30f(0x1ca),!0x0),this[_0x25a30f(0x1bd)](_0x25a30f(0x1a7),!0x1),this[_0x25a30f(0x1dd)]=new _0x8f5186({'label':Pn(_0x25a30f(0x1ad),_0x2c9133,this[_0x25a30f(0x1d6)]),'icon':_0x2dbfb8,'withText':!0x0,'type':_0x25a30f(0x190),'actionName':_0x25a30f(0x1ad)}),this[_0x25a30f(0x1c9)]=new _0x8f5186({'label':Pn(_0x25a30f(0x1aa),_0x2c9133,this[_0x25a30f(0x1d6)]),'icon':_0x2d6111,'withText':!0x0,'type':_0x25a30f(0x190),'actionName':_0x25a30f(0x1aa)}),this[_0x25a30f(0x1a1)]=new _0x8f5186({'label':Pn(_0x25a30f(0x1d4),_0x2c9133,this[_0x25a30f(0x1d6)]),'icon':_0x44132d,'withText':!0x0,'type':_0x25a30f(0x190),'actionName':_0x25a30f(0x1d4)}),this[_0x25a30f(0x1a4)]=this[_0x25a30f(0x1cf)](_0x2c9133),this[_0x25a30f(0x1a5)]=this[_0x25a30f(0x1c4)](),this[_0x25a30f(0x1a4)]&&this[_0x25a30f(0x1a5)][_0x25a30f(0x199)](this[_0x25a30f(0x1a4)]),this[_0x25a30f(0x1a0)]({'tag':_0x25a30f(0x1b2),'attributes':{'class':['ck',_0x25a30f(0x18f),_0x301c65['if'](_0x25a30f(0x1ca),_0x25a30f(0x19b),_0x1eb256=>!_0x1eb256)]},'children':this[_0x25a30f(0x1a5)]}),this['on'](_0x25a30f(0x1c1),()=>{const _0x1249bd=_0x25a30f;this[_0x1249bd(0x1c5)]=this[_0x1249bd(0x1a7)]?this[_0x1249bd(0x1d9)][_0x1249bd(0x1e4)](_0x185bb5=>_0x1249bd(0x1ad)!==_0x185bb5):[...this[_0x1249bd(0x1d9)]],this[_0x1249bd(0x1e3)](_0x2c9133);});}[_0xdaca80(0x1e3)](_0x32787c){const _0x1b96f6=_0xdaca80;this[_0x1b96f6(0x1a4)]&&this[_0x1b96f6(0x1a5)][_0x1b96f6(0x192)](this[_0x1b96f6(0x1a4)])&&(this[_0x1b96f6(0x1a5)][_0x1b96f6(0x1ae)](this[_0x1b96f6(0x1a4)]),this[_0x1b96f6(0x1a4)][_0x1b96f6(0x1db)]()),this[_0x1b96f6(0x1a4)]=this[_0x1b96f6(0x1cf)](_0x32787c),this[_0x1b96f6(0x1a4)]&&this[_0x1b96f6(0x1a5)][_0x1b96f6(0x199)](this[_0x1b96f6(0x1a4)]);}[_0xdaca80(0x1cf)](_0x28981b){const _0x511e7a=_0xdaca80;if(0x0==this[_0x511e7a(0x1c5)][_0x511e7a(0x189)])return null;const _0xbb95e0=0x1===this[_0x511e7a(0x1c5)][_0x511e7a(0x189)]?this[_0x511e7a(0x191)](_0x28981b):this[_0x511e7a(0x1bf)](_0x28981b),_0x3091d6=this[_0x511e7a(0x1af)]?'':_0x511e7a(0x1b4);_0xbb95e0[_0x511e7a(0x1bd)]({'label':Pn(this[_0x511e7a(0x1c5)][0x0],_0x28981b,this[_0x511e7a(0x1d6)]),'tooltip':Hn(this[_0x511e7a(0x1c5)][0x0],_0x28981b,this[_0x511e7a(0x1d6)]),'withText':!0x0,'class':_0x511e7a(0x19a)+_0x3091d6});for(const _0x2db284 of this[_0x511e7a(0x1c5)])_0xbb95e0['on'](_0x2db284,()=>{const _0x1475c6=_0x511e7a;this[_0x1475c6(0x1e6)](_0x2db284);});return this[_0x511e7a(0x1af)]=!0x1,_0xbb95e0;}[_0xdaca80(0x191)](_0x4c9d6c){const _0x2973a6=_0xdaca80,_0x524c33=new _0x423369(_0x4c9d6c);return _0x524c33[_0x2973a6(0x1bd)]({'class':_0x2973a6(0x1d3),'withText':!0x0}),_0x524c33['on'](_0x2973a6(0x187),()=>{const _0x23bd9c=_0x2973a6;_0x524c33[_0x23bd9c(0x1e6)](this[_0x23bd9c(0x1c5)][0x0]);}),_0x524c33;}[_0xdaca80(0x1bf)](_0x1b426a){const _0x701e2c=_0xdaca80,_0x3c9739=new Nn(_0x1b426a,{'listItemModels':this[_0x701e2c(0x1c5)][_0x701e2c(0x1b1)](_0x394085=>{const _0x4ca0f6=_0x701e2c;switch(_0x394085){case _0x4ca0f6(0x1ad):return this[_0x4ca0f6(0x1dd)];case _0x4ca0f6(0x1aa):return this[_0x4ca0f6(0x1c9)];case _0x4ca0f6(0x1d4):return this[_0x4ca0f6(0x1a1)];}})});return _0x3c9739[_0x701e2c(0x1bd)]({'label':Pn(this[_0x701e2c(0x1c5)][0x0],_0x1b426a,this[_0x701e2c(0x1d6)]),'tooltip':Hn(this[_0x701e2c(0x1c5)][0x0],_0x1b426a,this[_0x701e2c(0x1d6)]),'withText':!0x0,'class':_0x701e2c(0x18f),'balloonPanelClass':_0x701e2c(0x19d)}),_0x3c9739[_0x701e2c(0x193)](_0x701e2c(0x1c2))['to'](this),_0x3c9739;}[_0xdaca80(0x1e2)](_0x295225){const _0x38855c=_0xdaca80,_0x5af2a0=this[_0x38855c(0x195)];this[_0x38855c(0x1d6)]=_0x295225||this[_0x38855c(0x1d6)],this[_0x38855c(0x1a4)][_0x38855c(0x1bd)]({'label':Pn(this[_0x38855c(0x1c5)][0x0],_0x5af2a0,this[_0x38855c(0x1d6)]),'tooltip':Hn(this[_0x38855c(0x1c5)][0x0],_0x5af2a0,this[_0x38855c(0x1d6)])}),this[_0x38855c(0x1dd)][_0x38855c(0x19f)]=Pn(_0x38855c(0x1ad),_0x5af2a0,this[_0x38855c(0x1d6)]),this[_0x38855c(0x1c9)][_0x38855c(0x19f)]=Pn(_0x38855c(0x1aa),_0x5af2a0,this[_0x38855c(0x1d6)]),this[_0x38855c(0x1a1)][_0x38855c(0x19f)]=Pn(_0x38855c(0x1d4),_0x5af2a0,this[_0x38855c(0x1d6)]);}}class Nn extends _0x49116a{[_0xdaca80(0x1b8)];[_0xdaca80(0x1d0)];[_0xdaca80(0x1c0)];[_0xdaca80(0x1ba)];constructor(_0x160ff3,_0x2ae954){const _0x42185e=_0xdaca80;super(_0x160ff3),this[_0x42185e(0x1d0)]=new _0x622373(this[_0x42185e(0x195)]),this[_0x42185e(0x1b8)]=new _0x25eaef(this[_0x42185e(0x195)]),this[_0x42185e(0x1b8)][_0x42185e(0x19c)](),this[_0x42185e(0x1bd)](_0x42185e(0x197),''),this[_0x42185e(0x1d0)][_0x42185e(0x193)](_0x42185e(0x1ac))['to'](this,_0x42185e(0x197)),this[_0x42185e(0x1c0)]=this[_0x42185e(0x18a)](_0x2ae954[_0x42185e(0x1c3)][_0x42185e(0x1bb)](0x1)),this[_0x42185e(0x1b8)][_0x42185e(0x199)](this[_0x42185e(0x1d0)]),this[_0x42185e(0x1d0)][_0x42185e(0x18d)][_0x42185e(0x199)](this[_0x42185e(0x1c0)]),this[_0x42185e(0x19e)][_0x42185e(0x1bc)](_0x42185e(0x1cc)),this[_0x42185e(0x19e)][_0x42185e(0x1bd)](_0x42185e(0x1cc),_0x2bdf2b(this[_0x42185e(0x195)],_0x42185e(0x1d2))),this[_0x42185e(0x1dc)](),this['on'](_0x42185e(0x187),()=>{const _0x23c115=_0x42185e,_0x131a41=_0x2ae954[_0x23c115(0x1c3)][0x0][_0x23c115(0x1b3)];this[_0x23c115(0x1e6)](_0x131a41),this[_0x23c115(0x1d0)][_0x23c115(0x1b5)](),this[_0x23c115(0x19e)][_0x23c115(0x1ce)]();}),this['on'](_0x42185e(0x198),()=>{const _0x5c2a1a=_0x42185e;this[_0x5c2a1a(0x1d0)][_0x5c2a1a(0x1ca)]?(this[_0x5c2a1a(0x1d0)][_0x5c2a1a(0x1b5)](),this[_0x5c2a1a(0x19e)][_0x5c2a1a(0x1ce)]()):(this[_0x5c2a1a(0x1d0)][_0x5c2a1a(0x1d5)]({'target':this[_0x5c2a1a(0x1e8)],'positions':[_0x5c2a1a(0x1cb)===this[_0x5c2a1a(0x195)][_0x5c2a1a(0x1b0)]?Gn:yn]}),this[_0x5c2a1a(0x1c0)][_0x5c2a1a(0x1ce)]());}),_0x4db55c({'emitter':this[_0x42185e(0x1d0)],'callback':()=>{const _0x3c8b24=_0x42185e;this[_0x3c8b24(0x1d0)][_0x3c8b24(0x1b5)]();},'activator':()=>this[_0x42185e(0x1d0)][_0x42185e(0x1ca)],'contextElements':()=>[this[_0x42185e(0x1e8)],this[_0x42185e(0x1d0)][_0x42185e(0x1e8)]]});}[_0xdaca80(0x18a)](_0x192245){const _0x163521=_0xdaca80,_0x310fd0=this[_0x163521(0x195)],_0x9802f5=new _0x3e2bdd(_0x310fd0);for(const _0x5bdb12 of _0x192245){const _0x54972e=new _0x49fac1(_0x310fd0),_0x691b1a=new _0x2bc0a5(_0x310fd0);_0x691b1a[_0x163521(0x193)](...Object[_0x163521(0x18b)](_0x5bdb12))['to'](_0x5bdb12),_0x691b1a[_0x163521(0x1b6)](_0x163521(0x187))['to'](_0x9802f5),_0x54972e[_0x163521(0x1a5)][_0x163521(0x199)](_0x691b1a),_0x9802f5[_0x163521(0x1da)][_0x163521(0x199)](_0x54972e);}return _0x9802f5[_0x163521(0x1da)][_0x163521(0x1b6)](_0x163521(0x187))['to'](this),_0x9802f5['on'](_0x163521(0x187),_0x9bb878=>{const _0x2bd37c=_0x163521,_0x140a6b=_0x9bb878[_0x2bd37c(0x1e1)];this[_0x2bd37c(0x1e6)](_0x140a6b[_0x2bd37c(0x1b3)]),this[_0x2bd37c(0x1d0)][_0x2bd37c(0x1b5)](),this[_0x2bd37c(0x19e)][_0x2bd37c(0x1ce)]();}),_0x9802f5;}[_0xdaca80(0x1dc)](){const _0x13ccbc=_0xdaca80;this[_0x13ccbc(0x1ba)]=new _0x228a2e(),this[_0x13ccbc(0x1ba)][_0x13ccbc(0x1ab)](this[_0x13ccbc(0x1d0)][_0x13ccbc(0x1e8)]),this[_0x13ccbc(0x1ba)][_0x13ccbc(0x1bd)](_0x13ccbc(0x1a6),(_0x17a13c,_0x44ac1b)=>{const _0x4991d8=_0x13ccbc;this[_0x4991d8(0x1d0)][_0x4991d8(0x1b5)](),this[_0x4991d8(0x19e)][_0x4991d8(0x1ce)](),_0x44ac1b();});}[_0xdaca80(0x1db)](){const _0x438b19=_0xdaca80;super[_0x438b19(0x1db)](),this[_0x438b19(0x1ba)][_0x438b19(0x1db)](),this[_0x438b19(0x1d0)][_0x438b19(0x1db)](),this[_0x438b19(0x1b8)][_0x438b19(0x18c)]();}}function Gn(_0x236f81){const _0x21f07b=_0xdaca80;return{'top':_0x236f81[_0x21f07b(0x1c8)],'left':_0x236f81[_0x21f07b(0x1b9)],'name':_0x21f07b(0x18e),'config':{'withArrow':!0x1}};}function yn(_0x524317,_0x396a68){const _0x2ed0b0=_0xdaca80;return{'top':_0x524317[_0x2ed0b0(0x1c8)],'left':_0x524317[_0x2ed0b0(0x1b9)]-(_0x396a68[_0x2ed0b0(0x1e5)]-_0x524317[_0x2ed0b0(0x1e5)]),'name':_0x2ed0b0(0x18e),'config':{'withArrow':!0x1}};}function Pn(_0x524f3c,_0x4960b4,_0x2db83a){const _0x4d3ffc=_0xdaca80;switch(_0x524f3c){case _0x4d3ffc(0x1ad):return _0x2bdf2b(_0x4960b4,_0x4d3ffc(0x1d8),_0x2db83a);case _0x4d3ffc(0x1aa):return _0x2bdf2b(_0x4960b4,_0x4d3ffc(0x1be),_0x2db83a);case _0x4d3ffc(0x1d4):return _0x2bdf2b(_0x4960b4,_0x4d3ffc(0x1d1),_0x2db83a);}}function Hn(_0x1e3388,_0x42d405,_0x11360d){const _0x7b4da=_0xdaca80;switch(_0x1e3388){case _0x7b4da(0x1ad):return _0x2bdf2b(_0x42d405,_0x7b4da(0x1e7),_0x11360d);case _0x7b4da(0x1aa):return _0x2bdf2b(_0x42d405,_0x7b4da(0x188),_0x11360d);case _0x7b4da(0x1d4):return _0x2bdf2b(_0x42d405,_0x7b4da(0x1c6),_0x11360d);}}function _0x5f49(){const _0x50d2c7=['_dropdownCurrentConfig','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','1942821WAtAOX','bottom','showChangeInTextModel','isVisible','ltr','tooltip','30bHZvwh','focus','_createActionsDropdownOrButton','balloonPanelView','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','ck-ai-button-primary','insertSuggestion','pin','_partsCount','319ClxfVb','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','_dropdownOriginalConfig','items','destroy','_setUpKeystrokes','applySuggestionModel','361668tGtFYl','4124896xjTUhU','bindTemplate','source','updateLabels','_updateDropdownActions','filter','width','fire','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','element','execute','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','length','_setUpList','keys','detachFromDom','content','arrowless','ck-ai-chat__feed__ai-suggestion__actions','button','_createActionsButton','has','bind','1jWhOjb','locale','926434KMOXip','balloonPanelClass','open','add','ck-ai-chat__feed__ai-suggestion__actions\x20','ck-hidden','attachToDom','ck-ai-chat__feed__ai-suggestion__actions__balloon','arrowView','label','setTemplate','insertSuggestionModel','102oGPYyB','25TZGAKY','actionsButton','children','esc','isTrackChangesOn','159564sfmjNP','879651dewdlL','showChangeInText','listenTo','class','applySuggestion','remove','_firstRender','uiLanguageDirection','map','div','actionName','ck-ai-chat__feed__ai-suggestion__actions--no-animation','hide','delegate','258734mzuSRG','bodyCollection','left','keystrokeHandler','slice','unbind','set','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','_createActionsDropdown','listView','change:isTrackChangesOn','isEnabled','listItemModels','createCollection'];_0x5f49=function(){return _0x50d2c7;};return _0x5f49();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2e603c=_0x6dfd;(function(_0x47d2db,_0x3d45f1){var _0x27955b=_0x6dfd,_0x4f0065=_0x47d2db();while(!![]){try{var _0x22b086=-parseInt(_0x27955b(0x207))/0x1+parseInt(_0x27955b(0x1e8))/0x2+-parseInt(_0x27955b(0x1fb))/0x3*(parseInt(_0x27955b(0x1f5))/0x4)+parseInt(_0x27955b(0x1ed))/0x5+parseInt(_0x27955b(0x1e0))/0x6+parseInt(_0x27955b(0x1fd))/0x7+parseInt(_0x27955b(0x202))/0x8*(-parseInt(_0x27955b(0x209))/0x9);if(_0x22b086===_0x3d45f1)break;else _0x4f0065['push'](_0x4f0065['shift']());}catch(_0x351870){_0x4f0065['push'](_0x4f0065['shift']());}}}(_0x135f,0x98276));function _0x6dfd(_0x591a79,_0x3eb9b6){var _0x135fae=_0x135f();return _0x6dfd=function(_0x6dfd02,_0x5dc530){_0x6dfd02=_0x6dfd02-0x1df;var _0x4cd267=_0x135fae[_0x6dfd02];return _0x4cd267;},_0x6dfd(_0x591a79,_0x3eb9b6);}import{AIChatFeedItemView as _0x223b59}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x3a58d}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x2533c9}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x223b59{[_0x2e603c(0x1ee)];[_0x2e603c(0x1f9)];constructor(_0x236ecd,_0x1323d4){var _0x7855fc=_0x2e603c;super(_0x1323d4),this[_0x7855fc(0x1fc)](_0x7855fc(0x1e1),!0x1),this[_0x7855fc(0x1ee)]=new _0x3a58d(_0x236ecd,{'showDiff':_0x1323d4[_0x7855fc(0x1f3)],'areActionsDisabled':_0x1323d4[_0x7855fc(0x1f8)],'availableActions':_0x1323d4[_0x7855fc(0x1ea)]}),this[_0x7855fc(0x1ee)]['on'](_0x7855fc(0x1ff),(_0x1547f4,_0x8d8a5c)=>{var _0x17a30c=_0x7855fc;this[_0x17a30c(0x1e7)](_0x17a30c(0x1ff),{'replyId':this[_0x17a30c(0x205)]['id'],'showDiff':_0x8d8a5c[_0x17a30c(0x1f3)]});}),this[_0x7855fc(0x1ee)]['on'](_0x7855fc(0x1ef),()=>{var _0x17938f=_0x7855fc;this[_0x17938f(0x1e7)](_0x17938f(0x1ef),{'replyId':this[_0x17938f(0x205)]['id']});}),this[_0x7855fc(0x1ee)]['on'](_0x7855fc(0x1df),()=>{var _0x1d1db4=_0x7855fc;this[_0x1d1db4(0x1e7)](_0x1d1db4(0x1df),{'replyId':this[_0x1d1db4(0x205)]['id']});}),this[_0x7855fc(0x1ee)]['on'](_0x7855fc(0x1e5),(_0xaa01ef,{index:_0x7c8b1c})=>{var _0xbc9106=_0x7855fc;this[_0xbc9106(0x1e7)](_0xbc9106(0x1e5),{'replyId':this[_0xbc9106(0x205)]['id'],'partIndex':_0x7c8b1c});}),this[_0x7855fc(0x1ee)]['on'](_0x7855fc(0x1fe),(_0x3ce486,{index:_0x11bb08})=>{var _0x589024=_0x7855fc;this[_0x589024(0x1e7)](_0x589024(0x1fe),{'replyId':this[_0x589024(0x205)]['id'],'partIndex':_0x11bb08});}),this[_0x7855fc(0x1ee)]['on'](_0x7855fc(0x206),(_0x288496,{index:_0x42be8c})=>{var _0x56684e=_0x7855fc;this[_0x56684e(0x1e7)](_0x56684e(0x206),{'replyId':this[_0x56684e(0x205)]['id'],'partIndex':_0x42be8c});}),this[_0x7855fc(0x1ee)]['on'](_0x7855fc(0x1e2),(_0x51f92d,{index:_0x24d0b5})=>{var _0x18d60d=_0x7855fc;this[_0x18d60d(0x1e7)](_0x18d60d(0x1e2),{'replyId':this[_0x18d60d(0x205)]['id'],'partIndex':_0x24d0b5});}),this[_0x7855fc(0x1ee)]['on'](_0x7855fc(0x201),(_0x319b0a,{index:_0x5d1b38})=>{var _0x4bd3a6=_0x7855fc;this[_0x4bd3a6(0x1e7)](_0x4bd3a6(0x201),{'replyId':this[_0x4bd3a6(0x205)]['id'],'partIndex':_0x5d1b38});}),this[_0x7855fc(0x1f9)]=new _0x2533c9(_0x236ecd,this[_0x7855fc(0x205)][_0x7855fc(0x1ea)]),this[_0x7855fc(0x1f9)][_0x7855fc(0x1fa)](_0x7855fc(0x1e1))['to'](this,_0x7855fc(0x1e1)),this[_0x7855fc(0x1f9)]['on'](_0x7855fc(0x1e5),()=>{var _0x14f362=_0x7855fc;this[_0x14f362(0x1e7)](_0x14f362(0x1e5),{'replyId':this[_0x14f362(0x205)]['id']});}),this[_0x7855fc(0x1f9)]['on'](_0x7855fc(0x1fe),()=>{var _0x2fb8a5=_0x7855fc;this[_0x2fb8a5(0x1e7)](_0x2fb8a5(0x1fe),{'replyId':this[_0x2fb8a5(0x205)]['id']});}),this[_0x7855fc(0x1f9)]['on'](_0x7855fc(0x208),()=>{var _0x52c62c=_0x7855fc;this[_0x52c62c(0x1e7)](_0x52c62c(0x208),{'replyId':this[_0x52c62c(0x205)]['id']});}),_0x1323d4[_0x7855fc(0x1f8)]?this[_0x7855fc(0x1f9)][_0x7855fc(0x1e6)]=!0x1:this[_0x7855fc(0x1f9)][_0x7855fc(0x1fa)](_0x7855fc(0x1e6))['to'](this[_0x7855fc(0x1ee)][_0x7855fc(0x1ec)],_0x7855fc(0x1f4)),this[_0x7855fc(0x1f0)][_0x7855fc(0x1e9)]([this[_0x7855fc(0x1ee)],this[_0x7855fc(0x1f9)]]),this[_0x7855fc(0x1e3)]({'attributes':{'class':[_0x7855fc(0x1f2)]}});}async[_0x2e603c(0x204)](_0x54b2c7){var _0x496e11=_0x2e603c;await this[_0x496e11(0x1ee)][_0x496e11(0x204)](_0x54b2c7),this[_0x496e11(0x1f9)][_0x496e11(0x1f1)](this[_0x496e11(0x1ee)][_0x496e11(0x1ec)][_0x496e11(0x200)]);}[_0x2e603c(0x1f6)](_0x2cd28b,_0x350db3){var _0x44b697=_0x2e603c;this[_0x44b697(0x1ee)][_0x44b697(0x1ec)][_0x44b697(0x1f6)](_0x2cd28b,_0x350db3);}[_0x2e603c(0x1e4)](_0x55efab){var _0x407780=_0x2e603c;this[_0x407780(0x1ee)][_0x407780(0x1e4)](_0x55efab);}[_0x2e603c(0x203)](_0x24efd0){var _0x34d36e=_0x2e603c;return this[_0x34d36e(0x1ee)][_0x34d36e(0x1ec)][_0x34d36e(0x203)](_0x24efd0);}[_0x2e603c(0x1eb)](){var _0x40d291=_0x2e603c;super[_0x40d291(0x1eb)](),this[_0x40d291(0x1ee)][_0x40d291(0x1eb)](),this[_0x40d291(0x1f9)][_0x40d291(0x20a)]=this[_0x40d291(0x1ee)][_0x40d291(0x1ec)][_0x40d291(0x1f7)];}}function _0x135f(){var _0x230242=['hasNonEmptyParts','areActionsDisabled','actionsView','bind','3fABYGN','set','8590162tpiaqa','insertSuggestion','toggleSuggestionDisplayMode','partsCount','mouseLeaveSuggestion','47896raZrCN','getPartView','updateContent','options','rejectSuggestion','1187839hXRysJ','applySuggestion','2061GciZzL','isVisible','dislike','6237870TqTibd','isTrackChangesOn','mouseOverSuggestion','extendTemplate','updateSources','showChangeInText','isEnabled','fire','992194yFXDys','addMany','availableActions','markAsDone','bodyView','4033870QgBpzz','containerView','like','children','updateLabels','ck-ai-chat__feed__ai-suggestion','showDiff','hasPendingParts','1550392oPISNo','updatePartState'];_0x135f=function(){return _0x230242;};return _0x135f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x31d286=_0x4e58;(function(_0xc7bdca,_0xbe06af){var _0x2fd79a=_0x4e58,_0x551141=_0xc7bdca();while(!![]){try{var _0x226aeb=-parseInt(_0x2fd79a(0x171))/0x1+-parseInt(_0x2fd79a(0x180))/0x2+parseInt(_0x2fd79a(0x17e))/0x3*(-parseInt(_0x2fd79a(0x16b))/0x4)+-parseInt(_0x2fd79a(0x17c))/0x5*(parseInt(_0x2fd79a(0x168))/0x6)+-parseInt(_0x2fd79a(0x164))/0x7*(-parseInt(_0x2fd79a(0x16d))/0x8)+parseInt(_0x2fd79a(0x16e))/0x9*(-parseInt(_0x2fd79a(0x15f))/0xa)+-parseInt(_0x2fd79a(0x177))/0xb*(-parseInt(_0x2fd79a(0x161))/0xc);if(_0x226aeb===_0xbe06af)break;else _0x551141['push'](_0x551141['shift']());}catch(_0xbb9360){_0x551141['push'](_0x551141['shift']());}}}(_0x3f56,0x374a3));function _0x4e58(_0x3d773c,_0x572a17){var _0x3f56d6=_0x3f56();return _0x4e58=function(_0x4e5865,_0x55b1f4){_0x4e5865=_0x4e5865-0x15f;var _0x5b523f=_0x3f56d6[_0x4e5865];return _0x5b523f;},_0x4e58(_0x3d773c,_0x572a17);}import{AIChatFeedItemView as _0x2b9f38}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0xa7603e}from'./aichatfeedcontextchipsview.js';function _0x3f56(){var _0x4cbc15=['_createMessageContentView','_locale','10RGHEES','options','6277896kYFUjs','_messageContentView','contextItems','20118lxgupj','element','render','markAsDone','1598286jpuIet','filter','_bodyCollection','7468xYFwEg','length','968cGdLvP','105264adEBFK','extendTemplate','div','122961MlJSxy','innerHTML','ck-ai-chat__feed__context-chips','children','setTemplate','_createContextChipsView','11FHtwcR','add','hidden','_contextChipsView','initialContent','5EqVCLG','ck-ai-chat__feed__user-message','93hQVSrZ','ck-ai-chat__feed__message-content','371060JjQCsp'];_0x3f56=function(){return _0x4cbc15;};return _0x3f56();}import{View as _0x38b009}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x2b9f38{[_0x31d286(0x17a)]=null;[_0x31d286(0x182)];[_0x31d286(0x16a)];[_0x31d286(0x162)];constructor(_0x41789b,_0xa5f965,_0x4bdb12){var _0x56150f=_0x31d286;super(_0xa5f965),this[_0x56150f(0x182)]=_0x41789b,this[_0x56150f(0x16a)]=_0x4bdb12,this[_0x56150f(0x176)](),this[_0x56150f(0x181)](),this[_0x56150f(0x16f)]({'attributes':{'class':[_0x56150f(0x17d)]}});}[_0x31d286(0x176)](){var _0xfd5fee=_0x31d286;this[_0xfd5fee(0x160)][_0xfd5fee(0x163)]&&this[_0xfd5fee(0x160)][_0xfd5fee(0x163)][_0xfd5fee(0x16c)]>0x0&&(this[_0xfd5fee(0x17a)]=new _0xa7603e(this[_0xfd5fee(0x182)],this[_0xfd5fee(0x160)][_0xfd5fee(0x163)][_0xfd5fee(0x169)](_0x349598=>!_0x349598[_0xfd5fee(0x179)]),this[_0xfd5fee(0x16a)]),this[_0xfd5fee(0x17a)][_0xfd5fee(0x16f)]({'attributes':{'class':_0xfd5fee(0x173)}}),this[_0xfd5fee(0x174)][_0xfd5fee(0x178)](this[_0xfd5fee(0x17a)]));}[_0x31d286(0x181)](){var _0x2c9c30=_0x31d286;this[_0x2c9c30(0x162)]=new _0x38b009(this[_0x2c9c30(0x182)]),this[_0x2c9c30(0x162)][_0x2c9c30(0x175)]({'tag':_0x2c9c30(0x170),'attributes':{'class':_0x2c9c30(0x17f)}}),this[_0x2c9c30(0x174)][_0x2c9c30(0x178)](this[_0x2c9c30(0x162)]);}[_0x31d286(0x166)](){var _0x4f2981=_0x31d286;super[_0x4f2981(0x166)](),this[_0x4f2981(0x162)][_0x4f2981(0x165)][_0x4f2981(0x172)]=this[_0x4f2981(0x160)][_0x4f2981(0x17b)],this[_0x4f2981(0x167)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
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
|
-
const
|
|
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
|
-
var
|
|
23
|
+
var _0xa3e311=_0x3453;function _0x3453(_0x51f4d6,_0x43ca0f){var _0x109d7b=_0x109d();return _0x3453=function(_0x34534d,_0x3a6b28){_0x34534d=_0x34534d-0xef;var _0x16ba6=_0x109d7b[_0x34534d];return _0x16ba6;},_0x3453(_0x51f4d6,_0x43ca0f);}(function(_0x4b312d,_0x2ce1d5){var _0x48467e=_0x3453,_0x24bb2b=_0x4b312d();while(!![]){try{var _0x88dfce=parseInt(_0x48467e(0xf0))/0x1*(-parseInt(_0x48467e(0xf3))/0x2)+-parseInt(_0x48467e(0xf7))/0x3*(-parseInt(_0x48467e(0x100))/0x4)+-parseInt(_0x48467e(0xf6))/0x5*(-parseInt(_0x48467e(0xfe))/0x6)+-parseInt(_0x48467e(0xfd))/0x7*(-parseInt(_0x48467e(0xef))/0x8)+parseInt(_0x48467e(0xff))/0x9+parseInt(_0x48467e(0xf8))/0xa*(parseInt(_0x48467e(0xfa))/0xb)+parseInt(_0x48467e(0xf9))/0xc*(-parseInt(_0x48467e(0xfc))/0xd);if(_0x88dfce===_0x2ce1d5)break;else _0x24bb2b['push'](_0x24bb2b['shift']());}catch(_0xecff3a){_0x24bb2b['push'](_0x24bb2b['shift']());}}}(_0x109d,0xf1939));import{ContextPlugin as _0x3ed39}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x362537}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x551d7e}from'./aichathistoryui.js';function _0x109d(){var _0x45d491=['90RbYswm','325086UrONOb','6414890dBMTEB','2000220BcCjPS','11GqZbMl','isPremiumPlugin','13hpRFLf','1160971WzYonU','258504LlfNtX','661869yiFkPA','4MPpNII','48tWJTTm','239640zuqrAa','requires','AIChatHistory','12XyUnCK','isOfficialPlugin','pluginName'];_0x109d=function(){return _0x45d491;};return _0x109d();}export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x3ed39{static get[_0xa3e311(0xf1)](){return[_0x362537,_0x551d7e];}static get[_0xa3e311(0xf5)](){var _0x152646=_0xa3e311;return _0x152646(0xf2);}static get[_0xa3e311(0xf4)](){return!0x0;}static get[_0xa3e311(0xfb)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x214b81=_0x2fb1;function _0x2fb1(_0x5a977b,_0xa12bc5){const _0x4d31f6=_0x4d31();return _0x2fb1=function(_0x2fb10d,_0x3e1935){_0x2fb10d=_0x2fb10d-0x10a;let _0x9d134d=_0x4d31f6[_0x2fb10d];return _0x9d134d;},_0x2fb1(_0x5a977b,_0xa12bc5);}(function(_0x2f7a7e,_0x462a7b){const _0x7b72a2=_0x2fb1,_0x4cdb6a=_0x2f7a7e();while(!![]){try{const _0x15c62b=-parseInt(_0x7b72a2(0x156))/0x1*(parseInt(_0x7b72a2(0x16f))/0x2)+parseInt(_0x7b72a2(0x162))/0x3+parseInt(_0x7b72a2(0x12f))/0x4*(-parseInt(_0x7b72a2(0x142))/0x5)+parseInt(_0x7b72a2(0x12b))/0x6+-parseInt(_0x7b72a2(0x131))/0x7+-parseInt(_0x7b72a2(0x151))/0x8+parseInt(_0x7b72a2(0x13e))/0x9*(parseInt(_0x7b72a2(0x133))/0xa);if(_0x15c62b===_0x462a7b)break;else _0x4cdb6a['push'](_0x4cdb6a['shift']());}catch(_0x3b01a1){_0x4cdb6a['push'](_0x4cdb6a['shift']());}}}(_0x4d31,0x88f1e));import{ContextPlugin as _0x42609a}from'ckeditor5/src/core.js';import{AIConnector as _0x3b06de}from'../aicore/aiconnector.js';import{AIChatController as _0x5df332}from'../aichat/aichatcontroller.js';import{AITabs as _0x42dde1}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0xa89e6b}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x20c48b}from'./model/aichathistoryconversations.js';import{getTranslation as _0x5365e2}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x42609a{[_0x214b81(0x111)];[_0x214b81(0x117)];[_0x214b81(0x14f)];static get[_0x214b81(0x16a)](){return[_0x3b06de,_0x5df332,_0xa89e6b,_0x42dde1];}static get[_0x214b81(0x12d)](){const _0x57a347=_0x214b81;return _0x57a347(0x115);}static get[_0x214b81(0x11f)](){return!0x0;}static get[_0x214b81(0x136)](){return!0x0;}[_0x214b81(0x11e)](){const _0x243657=_0x214b81;this[_0x243657(0x111)]=this[_0x243657(0x15f)][_0x243657(0x16c)][_0x243657(0x144)](_0x3b06de),this[_0x243657(0x117)]=this[_0x243657(0x15f)][_0x243657(0x16c)][_0x243657(0x144)](_0xa89e6b),this[_0x243657(0x14f)]=this[_0x243657(0x15f)][_0x243657(0x16c)][_0x243657(0x144)](_0x5df332);const _0x14d066=this[_0x243657(0x15f)][_0x243657(0x16c)][_0x243657(0x144)](_0x42dde1),_0x35c9a0=this[_0x243657(0x14f)][_0x243657(0x124)]();this[_0x243657(0x161)]=new _0x20c48b({'connector':this[_0x243657(0x111)],'group':_0x35c9a0}),this[_0x243657(0x10e)](this[_0x243657(0x117)],_0x243657(0x13d),(_0x3aecd2,_0x26b05b)=>{const _0xa3688e=_0x243657;this[_0xa3688e(0x165)](_0x26b05b['id'],_0xa3688e(0x13c)),this[_0xa3688e(0x13f)](_0x26b05b['id']);}),this[_0x243657(0x10e)](this[_0x243657(0x117)],_0x243657(0x169),(_0x435f5c,_0xe21b7d)=>{const _0x379900=_0x243657;this[_0x379900(0x165)](_0xe21b7d['id'],_0x379900(0x10f)),this[_0x379900(0x123)](_0xe21b7d['id'],_0xe21b7d[_0x379900(0x118)]);}),this[_0x243657(0x10e)](this[_0x243657(0x161)],_0x243657(0x15a),(_0x53bb51,_0x4020db)=>{const _0x3551d7=_0x243657;void 0x0!==_0x4020db[_0x3551d7(0x113)][_0x3551d7(0x118)]&&this[_0x3551d7(0x117)][_0x3551d7(0x13b)](_0x4020db[_0x3551d7(0x12e)],_0x4020db[_0x3551d7(0x113)][_0x3551d7(0x118)]),void 0x0!==_0x4020db[_0x3551d7(0x113)][_0x3551d7(0x130)]&&this[_0x3551d7(0x14c)](),this[_0x3551d7(0x153)](_0x4020db[_0x3551d7(0x12e)]);}),this[_0x243657(0x10e)](this[_0x243657(0x161)],_0x243657(0x154),(_0x57b1ef,_0x1d1c40)=>{const _0x5dbe06=_0x243657;this[_0x5dbe06(0x14f)][_0x5dbe06(0x120)](_0x1d1c40[_0x5dbe06(0x12e)]),this[_0x5dbe06(0x117)][_0x5dbe06(0x11b)](_0x1d1c40[_0x5dbe06(0x12e)]),this[_0x5dbe06(0x153)](_0x1d1c40[_0x5dbe06(0x12e)]);}),this[_0x243657(0x10e)](this[_0x243657(0x161)],_0x243657(0x10d),()=>{const _0x2e44ea=_0x243657;this[_0x2e44ea(0x14c)]();}),this[_0x243657(0x10e)](this[_0x243657(0x161)],_0x243657(0x140),(_0x1dd4af,_0x2acb4b)=>{const _0x3f6322=_0x243657;this[_0x3f6322(0x12a)](_0x2acb4b[_0x3f6322(0x140)],_0x2acb4b[_0x3f6322(0x147)],_0x2acb4b[_0x3f6322(0x12e)]);}),this[_0x243657(0x10e)](this[_0x243657(0x117)],_0x243657(0x16b),(_0x4c7258,_0x2b5266)=>{const _0x4b52d1=_0x243657;this[_0x4b52d1(0x11a)](_0x2b5266['id']);}),this[_0x243657(0x10e)](this[_0x243657(0x117)],_0x243657(0x146),(_0x516e76,_0x1376ac)=>{const _0xf335b4=_0x243657,_0x4d92e1=_0x1376ac[_0xf335b4(0x130)]?_0xf335b4(0x138):_0xf335b4(0x134);this[_0xf335b4(0x165)](_0x1376ac['id'],_0x4d92e1),this[_0xf335b4(0x150)](_0x1376ac['id'],_0x1376ac[_0xf335b4(0x130)]);}),this[_0x243657(0x10e)](this[_0x243657(0x117)],_0x243657(0x15e),()=>{const _0x4d64f0=_0x243657;_0x14d066[_0x4d64f0(0x145)][_0x4d64f0(0x143)](_0x4d64f0(0x148));}),this[_0x243657(0x10e)](this[_0x243657(0x14f)],_0x243657(0x15c),()=>{const _0x55f272=_0x243657;this[_0x55f272(0x14c)]();}),_0x14d066[_0x243657(0x145)]['on'](_0x243657(0x166),()=>{const _0x59500c=_0x243657;this[_0x59500c(0x129)]();}),this[_0x243657(0x10e)](_0x14d066,_0x243657(0x157),(_0x2374d0,_0x68290)=>{const _0x290a5f=_0x243657;this[_0x290a5f(0x112)](_0x68290);}),this[_0x243657(0x10e)](this[_0x243657(0x117)],_0x243657(0x128),()=>{const _0x326580=_0x243657;_0x14d066[_0x326580(0x141)]();});}async[_0x214b81(0x123)](_0x47e06f,_0x3df344){const _0x54eb3a=_0x214b81;await this[_0x54eb3a(0x161)][_0x54eb3a(0x13b)](_0x47e06f,_0x3df344);}async[_0x214b81(0x150)](_0x5cfa98,_0x1ab23){const _0xce0492=_0x214b81;await this[_0xce0492(0x161)][_0xce0492(0x137)](_0x5cfa98,_0x1ab23);}async[_0x214b81(0x13f)](_0x13b9a8){const _0x17be2f=_0x214b81;await this[_0x17be2f(0x161)][_0x17be2f(0x160)](_0x13b9a8);}async[_0x214b81(0x11a)](_0xb01d6d){const _0x38b9f4=_0x214b81;await this[_0x38b9f4(0x14f)][_0x38b9f4(0x119)](_0xb01d6d);}async[_0x214b81(0x129)](){const _0x982e63=_0x214b81;this[_0x982e63(0x117)][_0x982e63(0x149)](''),this[_0x982e63(0x117)][_0x982e63(0x122)](!0x0),await this[_0x982e63(0x161)][_0x982e63(0x11e)](),this[_0x982e63(0x117)][_0x982e63(0x122)](!0x1);}[_0x214b81(0x14c)](){const _0x4291f0=_0x214b81,_0x1a4abc=this[_0x4291f0(0x14f)][_0x4291f0(0x13a)]?.['id'],_0x1688ae=this[_0x4291f0(0x132)]()[_0x4291f0(0x14e)](_0x1177bc=>({'title':_0x1177bc[_0x4291f0(0x118)],'items':_0x1177bc[_0x4291f0(0x125)][_0x4291f0(0x14e)](_0x4c412d=>({'id':_0x4c412d['id'],'title':_0x4c412d[_0x4291f0(0x118)]||_0x5365e2(this[_0x4291f0(0x15f)][_0x4291f0(0x116)],_0x4291f0(0x163)),'createdAt':new Date(_0x4c412d[_0x4291f0(0x12c)])[_0x4291f0(0x10a)](),'active':_0x4c412d['id']===_0x1a4abc,'pinned':_0x4c412d[_0x4291f0(0x130)]}))}));this[_0x4291f0(0x117)][_0x4291f0(0x152)](_0x1688ae);}[_0x214b81(0x165)](_0x1c7221,_0x2592e1){const _0x4fb2c3=_0x214b81;this[_0x4fb2c3(0x117)][_0x4fb2c3(0x155)](_0x1c7221,_0x2592e1,!0x0);}[_0x214b81(0x153)](_0x2cc288){const _0x1ce309=_0x214b81;this[_0x1ce309(0x117)][_0x1ce309(0x155)](_0x2cc288,null,!0x1);}[_0x214b81(0x12a)](_0x4970b4,_0x17b59d,_0x740de){const _0x17c1f7=_0x214b81,_0x35bfa7=this[_0x17c1f7(0x139)](_0x17b59d,_0x740de);this[_0x17c1f7(0x117)][_0x17c1f7(0x149)](_0x35bfa7),_0x740de&&this[_0x17c1f7(0x153)](_0x740de),this[_0x17c1f7(0x117)][_0x17c1f7(0x122)](!0x1);}[_0x214b81(0x139)](_0x52fd8d,_0x5049b3){const _0x5f5d51=_0x214b81,_0x48a53d=_0x5049b3?this[_0x5f5d51(0x161)][_0x5f5d51(0x135)](_0x5049b3):null,_0x138a9f=_0x48a53d?.[_0x5f5d51(0x118)]||_0x5365e2(this[_0x5f5d51(0x15f)][_0x5f5d51(0x116)],_0x5f5d51(0x163));switch(_0x52fd8d){case _0x5f5d51(0x13b):return _0x5365e2(this[_0x5f5d51(0x15f)][_0x5f5d51(0x116)],_0x5f5d51(0x159),_0x138a9f);case _0x5f5d51(0x137):{const _0x15a4b6=_0x5365e2(this[_0x5f5d51(0x15f)][_0x5f5d51(0x116)],_0x48a53d?.[_0x5f5d51(0x130)]?_0x5f5d51(0x167):_0x5f5d51(0x114));return _0x5365e2(this[_0x5f5d51(0x15f)][_0x5f5d51(0x116)],_0x5f5d51(0x127),[_0x15a4b6,_0x138a9f]);}case _0x5f5d51(0x160):return _0x5365e2(this[_0x5f5d51(0x15f)][_0x5f5d51(0x116)],_0x5f5d51(0x168),_0x138a9f);case _0x5f5d51(0x11e):case _0x5f5d51(0x11d):return _0x5365e2(this[_0x5f5d51(0x15f)][_0x5f5d51(0x116)],_0x5f5d51(0x10b));default:return _0x5365e2(this[_0x5f5d51(0x15f)][_0x5f5d51(0x116)],_0x5f5d51(0x121));}}[_0x214b81(0x132)](){const _0x38b34a=_0x214b81,_0x2bbae8=new Date(),_0xb945f8=new Date(_0x2bbae8[_0x38b34a(0x15b)](),_0x2bbae8[_0x38b34a(0x110)](),_0x2bbae8[_0x38b34a(0x126)]()),_0x3553ea=new Date(_0xb945f8);_0x3553ea[_0x38b34a(0x14a)](_0x3553ea[_0x38b34a(0x126)]()-0x1);const _0x57ac8c=new Date(_0xb945f8);_0x57ac8c[_0x38b34a(0x14a)](_0x57ac8c[_0x38b34a(0x126)]()-0xe);const _0x145b98=this[_0x38b34a(0x161)][_0x38b34a(0x16d)]({'pinned':!0x0}),_0x4278c6=this[_0x38b34a(0x161)][_0x38b34a(0x16d)]({'from':_0xb945f8,'to':_0xb945f8}),_0x2a5bd4=this[_0x38b34a(0x161)][_0x38b34a(0x16d)]({'from':_0x3553ea,'to':_0x3553ea}),_0x90ca6b=this[_0x38b34a(0x161)][_0x38b34a(0x16d)]({'from':_0x57ac8c,'to':_0x3553ea}),_0x4d6d6b=this[_0x38b34a(0x161)][_0x38b34a(0x16d)]({'to':_0x57ac8c}),_0x344c8c=[];return _0x145b98[_0x38b34a(0x164)]>0x0&&_0x344c8c[_0x38b34a(0x10c)]({'title':_0x5365e2(this[_0x38b34a(0x15f)][_0x38b34a(0x116)],_0x38b34a(0x158)),'items':_0x145b98}),_0x4278c6[_0x38b34a(0x164)]>0x0&&_0x344c8c[_0x38b34a(0x10c)]({'title':_0x5365e2(this[_0x38b34a(0x15f)][_0x38b34a(0x116)],_0x38b34a(0x14b)),'items':_0x4278c6}),_0x2a5bd4[_0x38b34a(0x164)]>0x0&&_0x344c8c[_0x38b34a(0x10c)]({'title':_0x5365e2(this[_0x38b34a(0x15f)][_0x38b34a(0x116)],_0x38b34a(0x14d)),'items':_0x2a5bd4}),_0x90ca6b[_0x38b34a(0x164)]>0x0&&_0x344c8c[_0x38b34a(0x10c)]({'title':_0x5365e2(this[_0x38b34a(0x15f)][_0x38b34a(0x116)],_0x38b34a(0x11c)),'items':_0x90ca6b}),_0x4d6d6b[_0x38b34a(0x164)]>0x0&&_0x344c8c[_0x38b34a(0x10c)]({'title':_0x5365e2(this[_0x38b34a(0x15f)][_0x38b34a(0x116)],_0x38b34a(0x15d)),'items':_0x4d6d6b}),_0x344c8c;}[_0x214b81(0x112)](_0x38e276){const _0x31464b=_0x214b81;this[_0x31464b(0x117)][_0x31464b(0x16e)](_0x38e276);}}function _0x4d31(){const _0x4da2f8=['plugins','getItems','setIsMaximized','2DCWjyd','toLocaleDateString','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','push','itemsLoaded','listenTo','rename','getMonth','_aiConnector','_setIsMaximized','updates','AI_CHAT_HISTORY_PIN_ACTION','AIChatHistoryController','locale','_aiChatHistoryUi','title','loadConversation','_handleSelectConversation','removeHistoryItem','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','loadItems','init','isOfficialPlugin','handleRemovedConversation','AI_CHAT_HISTORY_ERROR_GENERIC','setLoadingSkeleton','_handleEditTitle','getGroupId','items','getDate','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','resizeTabs','_showConversationHistory','_handleHistoryErrorUI','4242222JLYKwk','createdAt','pluginName','itemId','88rTWLRY','pinned','1475789IYNPsj','_getCategorizedItems','309640SGWWPp','unpin','getItem','isPremiumPlugin','updateItemPinned','pin','_generateErrorMessage','activeConversation','updateItemTitle','remove','removeConversation','243lQlPjE','_handleRemove','error','resize','242020LuAMil','activateTab','get','view','setConversationPinned','operation','chat','showError','setDate','AI_CHAT_HISTORY_CATEGORY_TODAY','_updateHistoryItemsUI','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','map','_aiChatController','_handleTogglePin','3339144FSqobm','updateItems','_clearItemLoading','itemRemoved','updateItemLoadingState','352367Iarrwq','resizedTabs','AI_CHAT_HISTORY_CATEGORY_PINNED','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','itemUpdated','getFullYear','change:activeConversation','AI_CHAT_HISTORY_CATEGORY_LATER','openChat','context','removeItem','history','3190008WHefTx','AI_CHAT_UNTITLED_CONVERSATION','length','_setItemLoading','activateTab:history','AI_CHAT_HISTORY_UNPIN_ACTION','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','editConversationTitle','requires','selectConversation'];_0x4d31=function(){return _0x4da2f8;};return _0x4d31();}
|
|
23
|
+
function _0x5c0f(){const _0x428da1=['AI_CHAT_HISTORY_CATEGORY_TODAY','unpin','loadItems','getItems','1503433IoyMwU','editConversationTitle','requires','getFullYear','rename','chat','_handleRemove','locale','pin','updateItemLoadingState','_aiConnector','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','error','pinned','4616502vsjeli','_showConversationHistory','54IFAFQi','2215540ZhrxBO','resizeTabs','_handleHistoryErrorUI','AI_CHAT_HISTORY_UNPIN_ACTION','5icWcSb','setConversationPinned','updateItems','AI_CHAT_HISTORY_CATEGORY_LATER','resize','_updateHistoryItemsUI','pluginName','activateTab','resizedTabs','getDate','2AIUglV','title','_handleTogglePin','operation','map','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','isOfficialPlugin','itemUpdated','view','_aiChatHistoryUi','_handleEditTitle','getItem','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','3826221FcadHX','init','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','get','_setIsMaximized','push','_getCategorizedItems','items','getMonth','openChat','history','createdAt','AIChatHistoryController','activeConversation','14184910ITAouG','AI_CHAT_HISTORY_PIN_ACTION','updateItemTitle','change:activeConversation','plugins','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','removeConversation','activateTab:history','getGroupId','_generateErrorMessage','AI_CHAT_HISTORY_ERROR_GENERIC','handleRemovedConversation','itemRemoved','listenTo','updateItemPinned','_aiChatController','1042792eZpQrw','setIsMaximized','removeItem','_clearItemLoading','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','setLoadingSkeleton','itemId','AI_CHAT_UNTITLED_CONVERSATION','setDate','_setItemLoading','remove','selectConversation','length','_handleSelectConversation','toLocaleDateString','context','itemsLoaded','loadConversation','showError','AI_CHAT_HISTORY_CATEGORY_PINNED','removeHistoryItem','updates','isPremiumPlugin','47538zmFcvr'];_0x5c0f=function(){return _0x428da1;};return _0x5c0f();}const _0x54a666=_0x5588;(function(_0x2671f3,_0x56be26){const _0x5a12e5=_0x5588,_0x34b990=_0x2671f3();while(!![]){try{const _0x38bb1f=-parseInt(_0x5a12e5(0x1f3))/0x1*(-parseInt(_0x5a12e5(0x212))/0x2)+parseInt(_0x5a12e5(0x201))/0x3+parseInt(_0x5a12e5(0x204))/0x4+-parseInt(_0x5a12e5(0x208))/0x5*(-parseInt(_0x5a12e5(0x1ee))/0x6)+-parseInt(_0x5a12e5(0x21f))/0x7+parseInt(_0x5a12e5(0x1d7))/0x8*(-parseInt(_0x5a12e5(0x203))/0x9)+-parseInt(_0x5a12e5(0x22d))/0xa;if(_0x38bb1f===_0x56be26)break;else _0x34b990['push'](_0x34b990['shift']());}catch(_0x5287b6){_0x34b990['push'](_0x34b990['shift']());}}}(_0x5c0f,0xd1337));import{ContextPlugin as _0x276097}from'ckeditor5/src/core.js';import{AIConnector as _0x53998e}from'../aicore/aiconnector.js';import{AIChatController as _0x575752}from'../aichat/aichatcontroller.js';import{AITabs as _0x2f2f17}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x5c69b8}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x487c00}from'./model/aichathistoryconversations.js';function _0x5588(_0x578d31,_0x1fa813){const _0x5c0f35=_0x5c0f();return _0x5588=function(_0x5588c3,_0x19ec09){_0x5588c3=_0x5588c3-0x1d0;let _0x1ec811=_0x5c0f35[_0x5588c3];return _0x1ec811;},_0x5588(_0x578d31,_0x1fa813);}import{getTranslation as _0xaf882f}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x276097{[_0x54a666(0x1fd)];[_0x54a666(0x21b)];[_0x54a666(0x1d6)];static get[_0x54a666(0x1f5)](){return[_0x53998e,_0x575752,_0x5c69b8,_0x2f2f17];}static get[_0x54a666(0x20e)](){const _0x496c1a=_0x54a666;return _0x496c1a(0x22b);}static get[_0x54a666(0x218)](){return!0x0;}static get[_0x54a666(0x1ed)](){return!0x0;}[_0x54a666(0x220)](){const _0xbfe057=_0x54a666;this[_0xbfe057(0x1fd)]=this[_0xbfe057(0x1e6)][_0xbfe057(0x231)][_0xbfe057(0x222)](_0x53998e),this[_0xbfe057(0x21b)]=this[_0xbfe057(0x1e6)][_0xbfe057(0x231)][_0xbfe057(0x222)](_0x5c69b8),this[_0xbfe057(0x1d6)]=this[_0xbfe057(0x1e6)][_0xbfe057(0x231)][_0xbfe057(0x222)](_0x575752);const _0x3ff16b=this[_0xbfe057(0x1e6)][_0xbfe057(0x231)][_0xbfe057(0x222)](_0x2f2f17);try{const _0x6790b4=this[_0xbfe057(0x1d6)][_0xbfe057(0x235)]();this[_0xbfe057(0x229)]=new _0x487c00({'connector':this[_0xbfe057(0x1fd)],'group':_0x6790b4}),this[_0xbfe057(0x1d4)](this[_0xbfe057(0x21b)],_0xbfe057(0x233),(_0x1fcea3,_0x3557e8)=>{const _0x48a6a0=_0xbfe057;this[_0x48a6a0(0x1e0)](_0x3557e8['id'],_0x48a6a0(0x1e1)),this[_0x48a6a0(0x1f9)](_0x3557e8['id']);}),this[_0xbfe057(0x1d4)](this[_0xbfe057(0x21b)],_0xbfe057(0x1f4),(_0x4ade7a,_0x22f131)=>{const _0x3c281d=_0xbfe057;this[_0x3c281d(0x1e0)](_0x22f131['id'],_0x3c281d(0x1f7)),this[_0x3c281d(0x21c)](_0x22f131['id'],_0x22f131[_0x3c281d(0x213)]);}),this[_0xbfe057(0x1d4)](this[_0xbfe057(0x229)],_0xbfe057(0x219),(_0x23244f,_0x364922)=>{const _0x20ed07=_0xbfe057;void 0x0!==_0x364922[_0x20ed07(0x1ec)][_0x20ed07(0x213)]&&this[_0x20ed07(0x21b)][_0x20ed07(0x22f)](_0x364922[_0x20ed07(0x1dd)],_0x364922[_0x20ed07(0x1ec)][_0x20ed07(0x213)]),void 0x0!==_0x364922[_0x20ed07(0x1ec)][_0x20ed07(0x200)]&&this[_0x20ed07(0x20d)](),this[_0x20ed07(0x1da)](_0x364922[_0x20ed07(0x1dd)]);}),this[_0xbfe057(0x1d4)](this[_0xbfe057(0x229)],_0xbfe057(0x1d3),(_0x564cd4,_0x1b5f68)=>{const _0x4849d8=_0xbfe057;this[_0x4849d8(0x1d6)][_0x4849d8(0x1d2)](_0x1b5f68[_0x4849d8(0x1dd)]),this[_0x4849d8(0x21b)][_0x4849d8(0x1eb)](_0x1b5f68[_0x4849d8(0x1dd)]),this[_0x4849d8(0x1da)](_0x1b5f68[_0x4849d8(0x1dd)]);}),this[_0xbfe057(0x1d4)](this[_0xbfe057(0x229)],_0xbfe057(0x1e7),()=>{const _0x1197fe=_0xbfe057;this[_0x1197fe(0x20d)]();}),this[_0xbfe057(0x1d4)](this[_0xbfe057(0x229)],_0xbfe057(0x1ff),(_0x1bdf69,_0x12e279)=>{const _0x3eb6e1=_0xbfe057;this[_0x3eb6e1(0x206)](_0x12e279[_0x3eb6e1(0x1ff)],_0x12e279[_0x3eb6e1(0x215)],_0x12e279[_0x3eb6e1(0x1dd)]);}),this[_0xbfe057(0x1d4)](this[_0xbfe057(0x21b)],_0xbfe057(0x1e2),(_0x2b3cfa,_0xab4191)=>{const _0x197370=_0xbfe057;this[_0x197370(0x1e4)](_0xab4191['id']);}),this[_0xbfe057(0x1d4)](this[_0xbfe057(0x21b)],_0xbfe057(0x209),(_0x1fed8f,_0x475dbb)=>{const _0x3a8468=_0xbfe057,_0x2aeb0e=_0x475dbb[_0x3a8468(0x200)]?_0x3a8468(0x1fb):_0x3a8468(0x1f0);this[_0x3a8468(0x1e0)](_0x475dbb['id'],_0x2aeb0e),this[_0x3a8468(0x214)](_0x475dbb['id'],_0x475dbb[_0x3a8468(0x200)]);}),this[_0xbfe057(0x1d4)](this[_0xbfe057(0x21b)],_0xbfe057(0x228),()=>{const _0x3d4c0d=_0xbfe057;_0x3ff16b[_0x3d4c0d(0x21a)][_0x3d4c0d(0x20f)](_0x3d4c0d(0x1f8));}),this[_0xbfe057(0x1d4)](this[_0xbfe057(0x1d6)],_0xbfe057(0x230),()=>{const _0x397ef4=_0xbfe057;this[_0x397ef4(0x20d)]();}),_0x3ff16b[_0xbfe057(0x21a)]['on'](_0xbfe057(0x234),()=>{const _0x32434e=_0xbfe057;this[_0x32434e(0x202)]();}),this[_0xbfe057(0x1d4)](_0x3ff16b,_0xbfe057(0x210),(_0x16d079,_0x304242)=>{const _0x542a1b=_0xbfe057;this[_0x542a1b(0x223)](_0x304242);}),this[_0xbfe057(0x1d4)](this[_0xbfe057(0x21b)],_0xbfe057(0x205),()=>{const _0x365698=_0xbfe057;_0x3ff16b[_0x365698(0x20c)]();});}catch(_0x16057d){this[_0xbfe057(0x206)](_0x16057d,_0xbfe057(0x220));}}async[_0x54a666(0x21c)](_0x2984e0,_0x27bcb5){const _0x56c847=_0x54a666;await this[_0x56c847(0x229)][_0x56c847(0x22f)](_0x2984e0,_0x27bcb5);}async[_0x54a666(0x214)](_0x499007,_0x27f1c7){const _0x1695f9=_0x54a666;await this[_0x1695f9(0x229)][_0x1695f9(0x1d5)](_0x499007,_0x27f1c7);}async[_0x54a666(0x1f9)](_0x26f4d0){const _0x3f9909=_0x54a666;await this[_0x3f9909(0x229)][_0x3f9909(0x1d9)](_0x26f4d0);}async[_0x54a666(0x1e4)](_0x44ee44){const _0x3c5d30=_0x54a666;await this[_0x3c5d30(0x1d6)][_0x3c5d30(0x1e8)](_0x44ee44);}async[_0x54a666(0x202)](){const _0x269411=_0x54a666;this[_0x269411(0x21b)][_0x269411(0x1e9)](''),this[_0x269411(0x21b)][_0x269411(0x1dc)](!0x0),await this[_0x269411(0x229)][_0x269411(0x220)](),this[_0x269411(0x21b)][_0x269411(0x1dc)](!0x1);}[_0x54a666(0x20d)](){const _0x1aea98=_0x54a666,_0x48401b=this[_0x1aea98(0x1d6)][_0x1aea98(0x22c)]?.['id'],_0xafe090=this[_0x1aea98(0x225)]()[_0x1aea98(0x216)](_0x103bf9=>({'title':_0x103bf9[_0x1aea98(0x213)],'items':_0x103bf9[_0x1aea98(0x226)][_0x1aea98(0x216)](_0x4d964e=>({'id':_0x4d964e['id'],'title':_0x4d964e[_0x1aea98(0x213)]||_0xaf882f(this[_0x1aea98(0x1e6)][_0x1aea98(0x1fa)],_0x1aea98(0x1de)),'createdAt':new Date(_0x4d964e[_0x1aea98(0x22a)])[_0x1aea98(0x1e5)](),'active':_0x4d964e['id']===_0x48401b,'pinned':_0x4d964e[_0x1aea98(0x200)]}))}));this[_0x1aea98(0x21b)][_0x1aea98(0x20a)](_0xafe090);}[_0x54a666(0x1e0)](_0x250b38,_0x3deb75){const _0x409d11=_0x54a666;this[_0x409d11(0x21b)][_0x409d11(0x1fc)](_0x250b38,_0x3deb75,!0x0);}[_0x54a666(0x1da)](_0x5609d){const _0x166b0d=_0x54a666;this[_0x166b0d(0x21b)][_0x166b0d(0x1fc)](_0x5609d,null,!0x1);}[_0x54a666(0x206)](_0x5643d6,_0x4de934,_0x4828b1){const _0x338d80=_0x54a666,_0xfbc519=this[_0x338d80(0x1d0)](_0x4de934,_0x4828b1);this[_0x338d80(0x21b)][_0x338d80(0x1e9)](_0xfbc519),_0x4828b1&&this[_0x338d80(0x1da)](_0x4828b1),this[_0x338d80(0x21b)][_0x338d80(0x1dc)](!0x1);}[_0x54a666(0x1d0)](_0x4d9357,_0x358e9a){const _0x39a91c=_0x54a666,_0xb8c0bd=_0x358e9a?this[_0x39a91c(0x229)][_0x39a91c(0x21d)](_0x358e9a):null,_0x432598=_0xb8c0bd?.[_0x39a91c(0x213)]||_0xaf882f(this[_0x39a91c(0x1e6)][_0x39a91c(0x1fa)],_0x39a91c(0x1de));switch(_0x4d9357){case _0x39a91c(0x22f):return _0xaf882f(this[_0x39a91c(0x1e6)][_0x39a91c(0x1fa)],_0x39a91c(0x1db),_0x432598);case _0x39a91c(0x1d5):{const _0x9bd29b=_0xaf882f(this[_0x39a91c(0x1e6)][_0x39a91c(0x1fa)],_0xb8c0bd?.[_0x39a91c(0x200)]?_0x39a91c(0x207):_0x39a91c(0x22e));return _0xaf882f(this[_0x39a91c(0x1e6)][_0x39a91c(0x1fa)],_0x39a91c(0x217),[_0x9bd29b,_0x432598]);}case _0x39a91c(0x1d9):return _0xaf882f(this[_0x39a91c(0x1e6)][_0x39a91c(0x1fa)],_0x39a91c(0x232),_0x432598);case _0x39a91c(0x220):case _0x39a91c(0x1f1):return _0xaf882f(this[_0x39a91c(0x1e6)][_0x39a91c(0x1fa)],_0x39a91c(0x221));default:return _0xaf882f(this[_0x39a91c(0x1e6)][_0x39a91c(0x1fa)],_0x39a91c(0x1d1));}}[_0x54a666(0x225)](){const _0x529022=_0x54a666,_0x43e0bd=new Date(),_0x7f18f1=new Date(_0x43e0bd[_0x529022(0x1f6)](),_0x43e0bd[_0x529022(0x227)](),_0x43e0bd[_0x529022(0x211)]()),_0xb7c2b7=new Date(_0x7f18f1);_0xb7c2b7[_0x529022(0x1df)](_0xb7c2b7[_0x529022(0x211)]()-0x1);const _0xb270f1=new Date(_0x7f18f1);_0xb270f1[_0x529022(0x1df)](_0xb270f1[_0x529022(0x211)]()-0xe);const _0x2d11b8=this[_0x529022(0x229)][_0x529022(0x1f2)]({'pinned':!0x0}),_0x191127=this[_0x529022(0x229)][_0x529022(0x1f2)]({'from':_0x7f18f1,'to':_0x7f18f1}),_0x4396fa=this[_0x529022(0x229)][_0x529022(0x1f2)]({'from':_0xb7c2b7,'to':_0xb7c2b7}),_0x2c4ada=this[_0x529022(0x229)][_0x529022(0x1f2)]({'from':_0xb270f1,'to':_0xb7c2b7}),_0x58339a=this[_0x529022(0x229)][_0x529022(0x1f2)]({'to':_0xb270f1}),_0x4512cb=[];return _0x2d11b8[_0x529022(0x1e3)]>0x0&&_0x4512cb[_0x529022(0x224)]({'title':_0xaf882f(this[_0x529022(0x1e6)][_0x529022(0x1fa)],_0x529022(0x1ea)),'items':_0x2d11b8}),_0x191127[_0x529022(0x1e3)]>0x0&&_0x4512cb[_0x529022(0x224)]({'title':_0xaf882f(this[_0x529022(0x1e6)][_0x529022(0x1fa)],_0x529022(0x1ef)),'items':_0x191127}),_0x4396fa[_0x529022(0x1e3)]>0x0&&_0x4512cb[_0x529022(0x224)]({'title':_0xaf882f(this[_0x529022(0x1e6)][_0x529022(0x1fa)],_0x529022(0x1fe)),'items':_0x4396fa}),_0x2c4ada[_0x529022(0x1e3)]>0x0&&_0x4512cb[_0x529022(0x224)]({'title':_0xaf882f(this[_0x529022(0x1e6)][_0x529022(0x1fa)],_0x529022(0x21e)),'items':_0x2c4ada}),_0x58339a[_0x529022(0x1e3)]>0x0&&_0x4512cb[_0x529022(0x224)]({'title':_0xaf882f(this[_0x529022(0x1e6)][_0x529022(0x1fa)],_0x529022(0x20b)),'items':_0x58339a}),_0x4512cb;}[_0x54a666(0x223)](_0x2d0f08){const _0x2e0c6c=_0x54a666;this[_0x2e0c6c(0x21b)][_0x2e0c6c(0x1d8)](_0x2d0f08);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3abbb2=_0x557a;function _0x557a(_0x2b0634,_0x5a108f){const _0x3b4274=_0x3b42();return _0x557a=function(_0x557a96,_0x348b70){_0x557a96=_0x557a96-0xd9;let _0x2d9351=_0x3b4274[_0x557a96];return _0x2d9351;},_0x557a(_0x2b0634,_0x5a108f);}(function(_0x174a09,_0x3579da){const _0x3304f1=_0x557a,_0x1aed55=_0x174a09();while(!![]){try{const _0x16cd59=parseInt(_0x3304f1(0xfc))/0x1*(-parseInt(_0x3304f1(0xf3))/0x2)+parseInt(_0x3304f1(0xf6))/0x3*(parseInt(_0x3304f1(0xf4))/0x4)+-parseInt(_0x3304f1(0x107))/0x5*(parseInt(_0x3304f1(0xeb))/0x6)+-parseInt(_0x3304f1(0xdc))/0x7*(parseInt(_0x3304f1(0xf7))/0x8)+parseInt(_0x3304f1(0xe4))/0x9*(-parseInt(_0x3304f1(0xe0))/0xa)+parseInt(_0x3304f1(0xe6))/0xb*(-parseInt(_0x3304f1(0xde))/0xc)+-parseInt(_0x3304f1(0xfd))/0xd*(-parseInt(_0x3304f1(0x108))/0xe);if(_0x16cd59===_0x3579da)break;else _0x1aed55['push'](_0x1aed55['shift']());}catch(_0x331052){_0x1aed55['push'](_0x1aed55['shift']());}}}(_0x3b42,0xd72c3));function _0x3b42(){const _0x28d6fa=['updateHistoryItemsWithCategories','895yfJLYF','28YjMYoI','selectConversation','errorMessage','isOfficialPlugin','updateItemTitle','locale','19887BdWGwK','isPremiumPlugin','1716cQfMuV','openChat','635480kxnhDw','get','showError','context','234FPvwxP','editConversationTitle','23067NSOwVC','setIsMaximized','updateItems','showResizeButton','plugins','42870PQYZaR','removeConversation','hideError','isLoading','delegate','updateItemLoadingState','AIChatHistoryUI','AI_CHAT_HISTORY_HEADING','2ivekbD','17000KjLhfJ','history','27IjbAHH','320ZJLctW','_historyView','pluginName','requires','setLoadingSkeleton','1309701BgOZXj','35733828eZsKVu','AITabs','removeHistoryItem','addTab','setConversationPinned','view','isMaximized','resizeTabs','showConversationHistory'];_0x3b42=function(){return _0x28d6fa;};return _0x3b42();}import{ContextPlugin as _0x220bde}from'ckeditor5/src/core.js';import{AITabs as _0x442ec4}from'../aitabs/aitabs.js';import{IconAIHistory as _0x369a1a}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x435781}from'./ui/aichathistoryview.js';import{getTranslation as _0x5a57d4}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x3abbb2(0x105),_0x3abbb2(0xec),_0x3abbb2(0xe5),_0x3abbb2(0x101),_0x3abbb2(0x109),_0x3abbb2(0xdf),_0x3abbb2(0x104)];export class AIChatHistoryUI extends _0x220bde{static get[_0x3abbb2(0xfa)](){return[_0x442ec4];}[_0x3abbb2(0xf8)];static get[_0x3abbb2(0xf9)](){const _0x1055d0=_0x3abbb2;return _0x1055d0(0xf1);}static get[_0x3abbb2(0xd9)](){return!0x0;}static get[_0x3abbb2(0xdd)](){return!0x0;}constructor(_0x5a64aa){const _0x1fdda9=_0x3abbb2;super(_0x5a64aa);const _0x7bb06f=this[_0x1fdda9(0xe3)][_0x1fdda9(0xea)][_0x1fdda9(0xe1)](_0x1fdda9(0xfe));this[_0x1fdda9(0xf8)]=new _0x435781(this[_0x1fdda9(0xe3)][_0x1fdda9(0xdb)],_0x7bb06f[_0x1fdda9(0xe9)]),this[_0x1fdda9(0xf8)][_0x1fdda9(0xef)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x7bb06f[_0x1fdda9(0x102)][_0x1fdda9(0x100)]({'id':_0x1fdda9(0xf5),'buttonLabel':_0x5a57d4(this[_0x1fdda9(0xe3)][_0x1fdda9(0xdb)],_0x1fdda9(0xf2)),'buttonIcon':_0x369a1a,'order':0x0,'content':this[_0x1fdda9(0xf8)]});}[_0x3abbb2(0xff)](_0x225f1f){const _0x4f9c6b=_0x3abbb2;this[_0x4f9c6b(0xf8)][_0x4f9c6b(0xff)](_0x225f1f);}[_0x3abbb2(0xe8)](_0x258da9){const _0x286d01=_0x3abbb2;this[_0x286d01(0xf8)][_0x286d01(0x106)](_0x258da9);}[_0x3abbb2(0xda)](_0x6fda31,_0xb50b6e){const _0x4bf5cf=_0x3abbb2;this[_0x4bf5cf(0xf8)][_0x4bf5cf(0xda)](_0x6fda31,_0xb50b6e);}[_0x3abbb2(0xf0)](_0x545985,_0x2ae23b,_0x1d417c){const _0x102e26=_0x3abbb2;this[_0x102e26(0xf8)][_0x102e26(0xf0)](_0x545985,_0x2ae23b,_0x1d417c);}[_0x3abbb2(0xfb)](_0x4fc723){const _0x5d5794=_0x3abbb2;this[_0x5d5794(0xf8)][_0x5d5794(0xee)]=_0x4fc723;}[_0x3abbb2(0xe2)](_0x273a3f){const _0x5404b8=_0x3abbb2;this[_0x5404b8(0xf8)][_0x5404b8(0x10a)]=_0x273a3f;}[_0x3abbb2(0xed)](){const _0x16574c=_0x3abbb2;this[_0x16574c(0xf8)][_0x16574c(0x10a)]='';}[_0x3abbb2(0xe7)](_0x432a9a){const _0x2f61f8=_0x3abbb2;this[_0x2f61f8(0xf8)][_0x2f61f8(0x103)]=_0x432a9a;}}
|
|
@@ -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
|
-
var
|
|
23
|
+
var _0x587c9c=_0x5603;(function(_0x3c351c,_0x1fb4e5){var _0x323a8c=_0x5603,_0x6771e1=_0x3c351c();while(!![]){try{var _0x50d16d=-parseInt(_0x323a8c(0x77))/0x1*(parseInt(_0x323a8c(0x76))/0x2)+parseInt(_0x323a8c(0x7f))/0x3+-parseInt(_0x323a8c(0x73))/0x4+-parseInt(_0x323a8c(0x75))/0x5+-parseInt(_0x323a8c(0x7a))/0x6+-parseInt(_0x323a8c(0x72))/0x7*(-parseInt(_0x323a8c(0x7d))/0x8)+parseInt(_0x323a8c(0x81))/0x9*(parseInt(_0x323a8c(0x79))/0xa);if(_0x50d16d===_0x1fb4e5)break;else _0x6771e1['push'](_0x6771e1['shift']());}catch(_0x31f422){_0x6771e1['push'](_0x6771e1['shift']());}}}(_0xb222,0x5a0b6));function _0xb222(){var _0x1da3c0=['createdAt','679HFUiCO','2041512qgWZIT','updatePinned','667000VRtpmK','522782cdvNle','2IHfVlz','set','17180kbXAEw','2299626dJOaOz','title','pinned','30424YnmqfD','updatedAt','546702vkeqgB','updateTitle','7164IduYsp'];_0xb222=function(){return _0x1da3c0;};return _0xb222();}function _0x5603(_0x1f3ea4,_0x357c46){var _0xb22285=_0xb222();return _0x5603=function(_0x560352,_0x350ccf){_0x560352=_0x560352-0x71;var _0x34c61f=_0xb22285[_0x560352];return _0x34c61f;},_0x5603(_0x1f3ea4,_0x357c46);}import{ObservableMixin as _0x343aa9}from'ckeditor5/src/utils.js';import{escape as _0x23add4}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x343aa9(){['id'];[_0x587c9c(0x71)];constructor({id:_0x3043c5,title:_0x1ba3c3,createdAt:_0x35052f,updatedAt:_0x357e82,pinned:_0x57cf99}){var _0x1e2aee=_0x587c9c;super(),this['id']=_0x3043c5,this[_0x1e2aee(0x71)]=new Date(_0x35052f),this[_0x1e2aee(0x78)](_0x1e2aee(0x7b),_0x1ba3c3),this[_0x1e2aee(0x78)](_0x1e2aee(0x7e),_0x357e82?new Date(_0x357e82):null),this[_0x1e2aee(0x78)](_0x1e2aee(0x7c),_0x57cf99||!0x1);}[_0x587c9c(0x80)](_0x3bbe95){var _0x52b24a=_0x587c9c;this[_0x52b24a(0x78)](_0x52b24a(0x7b),_0x23add4(_0x3bbe95)),this[_0x52b24a(0x7e)]=new Date();}[_0x587c9c(0x74)](_0x5c996c){var _0x2d4955=_0x587c9c;this[_0x2d4955(0x78)](_0x2d4955(0x7c),_0x5c996c),this[_0x2d4955(0x7e)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
const _0x43df29=_0x57c6;function _0x57c6(_0x5e38f0,_0x507530){const _0x2d0e30=_0x2d0e();return _0x57c6=function(_0x57c6c7,_0x4349b3){_0x57c6c7=_0x57c6c7-0x186;let _0x12b608=_0x2d0e30[_0x57c6c7];return _0x12b608;},_0x57c6(_0x5e38f0,_0x507530);}(function(_0x4d61b3,_0x256044){const _0x15962a=_0x57c6,_0x569675=_0x4d61b3();while(!![]){try{const _0x37907c=-parseInt(_0x15962a(0x1a9))/0x1+-parseInt(_0x15962a(0x1cb))/0x2*(-parseInt(_0x15962a(0x1e1))/0x3)+-parseInt(_0x15962a(0x1b0))/0x4*(-parseInt(_0x15962a(0x199))/0x5)+-parseInt(_0x15962a(0x1b6))/0x6*(-parseInt(_0x15962a(0x1b4))/0x7)+-parseInt(_0x15962a(0x1d3))/0x8*(-parseInt(_0x15962a(0x1dd))/0x9)+parseInt(_0x15962a(0x1b8))/0xa+parseInt(_0x15962a(0x1bf))/0xb*(-parseInt(_0x15962a(0x1d2))/0xc);if(_0x37907c===_0x256044)break;else _0x569675['push'](_0x569675['shift']());}catch(_0x3d132b){_0x569675['push'](_0x569675['shift']());}}}(_0x2d0e,0x31209));function _0x2d0e(){const _0x3fd0e4=['_createPinButtonView','fire','219WdAkne','showConfirm','ck-ai-chat-history__item-title','div','withText','_createAcceptEditButtonView','set','AI_CHAT_HISTORY_PIN_BUTTON','element','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_REMOVE_CONFIRM','highlightText','click','ck-ai-chat-history__item-check','ck-ai-chat-history__item-row','editConversationTitle','AI_CHAT_HISTORY_REMOVE','ck-ai-chat-history__item-content','locale','ck-confirm-view-submit','AI_CHAT_HISTORY_ACCEPT','isOn','ck-ai-loader','_titleView','listitem','change:isEdit','ck-ai-loader__text','_createSpinnerView','5aTMdRz','AI_CHAT_HISTORY_LOADING_RENAMING','addMany','panelView','isVisible','ck-ai-chat-history__item--edit','_createCancelEditButtonView','execute','string','add','updateLoadingState','buttonView','bind','ck-ai-chat-history__item-actions','AI_CHAT_HISTORY_LOADING_REMOVING','mainContent','215219ZEORGi','updateTitle','loadingState','ck-ai-chat-history__item--active','clear','pinned','removeConversation','795524ySyPlv','span','items','ck-ai-chat-history__item-check-container','378rJdXQf','panelPosition','13296rdNOhZ','isEdit','3188870TFNzvL','selectConversation','focus','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','value','_commitEditInputValue','text','22YvlMxr','AI_CHAT_HISTORY_CANCEL','_createEditInputView','LOADING_LABELS','Enter','label','createCollection','_createMenuDropdownView','extendTemplate','then','key','_createCheckView','6532kitmMw','ck-ai-chat-history__item-main-content','ck-ai-chat-history__item-date','ck-confirm-view-cancel','edit:cancel','AI_CHAT_HISTORY_EDIT_NAME','isMatching','3711972IPwAdX','74944stUVVq','match','ck-ai-chat-history__item','actions','tiny','ck-hidden','AI_CHAT_HISTORY_LOADING_PINNING','bindTemplate','setTemplate','children','153VvsXCQ','setConversationPinned'];_0x2d0e=function(){return _0x3fd0e4;};return _0x2d0e();}import{ListItemView as _0x35341a,HighlightedTextView as _0xc31c3,ButtonView as _0x20c287,ListView as _0x366e2f,IconView as _0x1b9917,createDropdown as _0x1cfec9,InputTextView as _0x4b29e6}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x23c60e,IconPin as _0x1bfa46,IconCheck as _0x1c74ab,IconCancel as _0xa1aeb2}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1e339d,ConfirmMixin as _0x2a14c4}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x40c139}from'es-toolkit/compat';import{AISpinnerView as _0x202244}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x5091bf}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2a14c4(_0x35341a){['id'];static [_0x43df29(0x1c2)]={'remove':_0x43df29(0x1a7),'rename':_0x43df29(0x19a),'pin':_0x43df29(0x1d9),'unpin':_0x43df29(0x186)};[_0x43df29(0x1d6)];[_0x43df29(0x1a8)];[_0x43df29(0x194)];constructor(_0x294934,_0x4f105e){const _0x2cfdd9=_0x43df29;super(_0x294934);const _0x3236b3=this[_0x2cfdd9(0x1da)];this[_0x2cfdd9(0x1e7)](_0x2cfdd9(0x1b7),!0x1),this[_0x2cfdd9(0x1e7)](_0x2cfdd9(0x19d),!0x0),this[_0x2cfdd9(0x1e7)](_0x2cfdd9(0x1ae),!!_0x4f105e[_0x2cfdd9(0x1ae)]),this[_0x2cfdd9(0x1e7)](_0x2cfdd9(0x1ab),null),this['id']=_0x4f105e['id'];const {title:_0x1dd42b,createdAt:_0x548c9d,active:_0x1fb72a=!0x1}=_0x4f105e;this[_0x2cfdd9(0x194)]=new _0xc31c3(),this[_0x2cfdd9(0x194)][_0x2cfdd9(0x1be)]=_0x1dd42b,this[_0x2cfdd9(0x194)][_0x2cfdd9(0x1c7)]({'attributes':{'class':[_0x2cfdd9(0x1e3)]}});const _0x523fc8=this[_0x2cfdd9(0x1ca)](),_0x3441be=this[_0x2cfdd9(0x1df)](_0x294934),_0x137925=this[_0x2cfdd9(0x1c6)](),_0x312d1c=this[_0x2cfdd9(0x1c1)](_0x294934,_0x1dd42b),_0x32fd9d=this[_0x2cfdd9(0x1e6)](_0x294934,_0x312d1c),_0x5dc49b=this[_0x2cfdd9(0x19f)](_0x294934,_0x312d1c);this[_0x2cfdd9(0x1d6)]=this[_0x2cfdd9(0x1c5)](),this[_0x2cfdd9(0x1a8)]=this[_0x2cfdd9(0x1c5)](),this[_0x2cfdd9(0x1a8)][_0x2cfdd9(0x1a2)](this[_0x2cfdd9(0x194)]),this[_0x2cfdd9(0x1d6)][_0x2cfdd9(0x1a2)](_0x3441be),this[_0x2cfdd9(0x1d6)][_0x2cfdd9(0x1a2)](_0x137925),this['on'](_0x2cfdd9(0x196),(_0x24c01f,_0x22b6b5,_0x4b0cf5)=>{const _0x5e0906=_0x2cfdd9;this[_0x5e0906(0x1d6)][_0x5e0906(0x1ad)](),this[_0x5e0906(0x1a8)][_0x5e0906(0x1ad)](),_0x4b0cf5?(this[_0x5e0906(0x1d6)][_0x5e0906(0x1a2)](_0x32fd9d),this[_0x5e0906(0x1d6)][_0x5e0906(0x1a2)](_0x5dc49b),this[_0x5e0906(0x1a8)][_0x5e0906(0x1a2)](_0x312d1c),_0x312d1c[_0x5e0906(0x1e9)][_0x5e0906(0x1ba)]()):(this[_0x5e0906(0x1d6)][_0x5e0906(0x1a2)](_0x3441be),this[_0x5e0906(0x1d6)][_0x5e0906(0x1a2)](_0x137925),this[_0x5e0906(0x1a8)][_0x5e0906(0x1a2)](this[_0x5e0906(0x194)]));}),this[_0x2cfdd9(0x1db)]({'tag':'li','attributes':{'class':[_0x2cfdd9(0x1d5),_0x1fb72a?_0x2cfdd9(0x1ac):'',_0x3236b3['if'](_0x2cfdd9(0x19d),_0x2cfdd9(0x1d8),_0x21c07a=>!_0x21c07a),_0x3236b3['if'](_0x2cfdd9(0x1b7),_0x2cfdd9(0x19e))],'role':_0x2cfdd9(0x195)},'children':[{'tag':_0x2cfdd9(0x1b1),'attributes':{'class':[_0x2cfdd9(0x1b3)]},'children':[{'tag':_0x2cfdd9(0x1e4),'attributes':{'class':[_0x2cfdd9(0x18a),_0x3236b3['if'](_0x2cfdd9(0x1ab),_0x2cfdd9(0x1d8),_0x4a2951=>!!_0x4a2951)]},'children':_0x1fb72a?[_0x523fc8]:[]},{'tag':_0x2cfdd9(0x1e4),'attributes':{'class':[_0x2cfdd9(0x193),_0x3236b3['if'](_0x2cfdd9(0x1ab),_0x2cfdd9(0x1d8),_0x3ad974=>!_0x3ad974)]},'children':[this[_0x2cfdd9(0x198)]()]}]},{'tag':_0x2cfdd9(0x1e4),'attributes':{'class':[_0x2cfdd9(0x18b)]},'children':[{'tag':_0x2cfdd9(0x1e4),'attributes':{'class':[_0x2cfdd9(0x18e)]},'on':{'click':this[_0x2cfdd9(0x1da)]['to'](_0x2cfdd9(0x189))},'children':[{'tag':_0x2cfdd9(0x1e4),'attributes':{'class':[_0x2cfdd9(0x1cc)]},'children':[{'tag':_0x2cfdd9(0x1e4),'attributes':{'class':[_0x2cfdd9(0x1e3),_0x3236b3['if'](_0x2cfdd9(0x1ab),_0x2cfdd9(0x1d8),_0x3b5c62=>!!_0x3b5c62)]},'children':this[_0x2cfdd9(0x1a8)]},{'tag':_0x2cfdd9(0x1e4),'attributes':{'class':[_0x2cfdd9(0x197),_0x3236b3['if'](_0x2cfdd9(0x1ab),_0x2cfdd9(0x1d8),_0x56d2e1=>!_0x56d2e1)]},'children':[{'text':_0x3236b3['to'](_0x2cfdd9(0x1ab),_0x57606a=>_0x57606a?_0x5091bf(this[_0x2cfdd9(0x18f)],AIChatHistoryListItemView[_0x2cfdd9(0x1c2)][_0x57606a]):'')}]}]},{'tag':_0x2cfdd9(0x1b1),'attributes':{'class':[_0x2cfdd9(0x1cd)]},'children':[_0x548c9d]}]},{'tag':_0x2cfdd9(0x1e4),'attributes':{'class':[_0x2cfdd9(0x1a6)]},'children':this[_0x2cfdd9(0x1d6)]}]}]}),this['on'](_0x2cfdd9(0x189),()=>{const _0x4fb087=_0x2cfdd9;this[_0x4fb087(0x1b7)]||this[_0x4fb087(0x1e0)](_0x4fb087(0x1b9),{'id':this['id']});});}[_0x43df29(0x1aa)](_0x122e82){const _0x54d505=_0x43df29;this[_0x54d505(0x194)][_0x54d505(0x1be)]=_0x40c139(_0x122e82);}[_0x43df29(0x1a3)](_0x183f67,_0x29a807){const _0x1e102b=_0x43df29;this[_0x1e102b(0x1e7)](_0x1e102b(0x1ab),_0x29a807?_0x183f67:null);}[_0x43df29(0x1ca)](){const _0x5e500b=_0x43df29,_0x2f15b7=new _0x1b9917();return _0x2f15b7[_0x5e500b(0x1e7)]({'content':_0x1c74ab}),_0x2f15b7;}[_0x43df29(0x1df)](_0x522417){const _0x4387a9=_0x43df29,_0x3f4148=new _0x20c287(_0x522417);return _0x3f4148[_0x4387a9(0x1e7)]({'label':_0x5091bf(_0x522417,_0x4387a9(0x1e8)),'icon':_0x1bfa46,'withText':!0x1,'tooltip':!0x0}),_0x3f4148[_0x4387a9(0x1a5)](_0x4387a9(0x192))['to'](this,_0x4387a9(0x1ae)),_0x3f4148['on'](_0x4387a9(0x1a0),()=>{const _0x1f52f1=_0x4387a9,_0xf94069=!this[_0x1f52f1(0x1ae)];this[_0x1f52f1(0x1e0)](_0x1f52f1(0x1de),{'id':this['id'],'pinned':_0xf94069});}),_0x3f4148;}[_0x43df29(0x1c6)](){const _0x15540e=_0x43df29,_0x1c5a7a=_0x1cfec9(this[_0x15540e(0x18f)],_0x1e339d),_0x2e0b1f=_0x1c5a7a[_0x15540e(0x19c)][_0x15540e(0x1dc)];_0x1c5a7a[_0x15540e(0x1a4)][_0x15540e(0x1e7)]({'label':_0x5091bf(this[_0x15540e(0x18f)],_0x15540e(0x1bb)),'icon':_0x23c60e}),_0x1c5a7a[_0x15540e(0x1b5)]='sw';const _0x347166=new _0x20c287(this[_0x15540e(0x18f)]);_0x347166[_0x15540e(0x1c4)]=_0x5091bf(this[_0x15540e(0x18f)],_0x15540e(0x1d0)),_0x347166[_0x15540e(0x1e5)]=!0x0,_0x347166['on'](_0x15540e(0x1a0),()=>{const _0x3c4b09=_0x15540e;this[_0x3c4b09(0x1b7)]=!0x0;});const _0x405fb1=new _0x20c287(this[_0x15540e(0x18f)]);_0x405fb1[_0x15540e(0x1c4)]=_0x5091bf(this[_0x15540e(0x18f)],_0x15540e(0x18d)),_0x405fb1[_0x15540e(0x1e5)]=!0x0,_0x405fb1['on'](_0x15540e(0x1a0),()=>{const _0x581f76=_0x15540e;this[_0x581f76(0x1e2)](_0x5091bf(this[_0x581f76(0x18f)],_0x581f76(0x187)),this[_0x581f76(0x1e9)])[_0x581f76(0x1c8)](()=>{const _0x36d427=_0x581f76;this[_0x36d427(0x1e0)](_0x36d427(0x1af),{'id':this['id']});});});const _0x543b5c=new _0x366e2f(this[_0x15540e(0x18f)]),_0xb54612=new _0x35341a(this[_0x15540e(0x18f)]);_0xb54612[_0x15540e(0x1dc)][_0x15540e(0x1a2)](_0x347166);const _0x50d0ee=new _0x35341a(this[_0x15540e(0x18f)]);return _0x50d0ee[_0x15540e(0x1dc)][_0x15540e(0x1a2)](_0x405fb1),_0x543b5c[_0x15540e(0x1b2)][_0x15540e(0x19b)]([_0xb54612,_0x50d0ee]),_0x2e0b1f[_0x15540e(0x1a2)](_0x543b5c),_0x1c5a7a;}[_0x43df29(0x1c1)](_0x5635ff,_0x1a371e){const _0x5953e7=_0x43df29,_0x32e5d6=new _0x4b29e6(_0x5635ff),_0x3cc972=_0x32e5d6[_0x5953e7(0x1da)];return _0x32e5d6[_0x5953e7(0x1bc)]=_0x1a371e,_0x32e5d6[_0x5953e7(0x1c7)]({'on':{'keydown':_0x3cc972['to'](_0x230889=>{const _0x8fa4a1=_0x5953e7;_0x8fa4a1(0x1c3)==_0x230889[_0x8fa4a1(0x1c9)]&&this[_0x8fa4a1(0x1bd)](_0x32e5d6);})}}),_0x32e5d6;}[_0x43df29(0x1e6)](_0x2197f6,_0x4bd15f){const _0x405756=_0x43df29,_0x20a04d=new _0x20c287(_0x2197f6);return _0x20a04d[_0x405756(0x1e7)]({'icon':_0x1c74ab,'withText':!0x1,'tooltip':_0x5091bf(_0x2197f6,_0x405756(0x191))}),_0x20a04d[_0x405756(0x1c7)]({'attributes':{'class':[_0x405756(0x190)]}}),_0x20a04d['on'](_0x405756(0x1a0),()=>{const _0x356cae=_0x405756;this[_0x356cae(0x1bd)](_0x4bd15f);}),_0x20a04d;}[_0x43df29(0x1bd)](_0x3d3ad7){const _0x27e6bc=_0x43df29,_0x5c32a1=_0x3d3ad7[_0x27e6bc(0x1e9)][_0x27e6bc(0x1bc)]||'';this[_0x27e6bc(0x194)][_0x27e6bc(0x1be)]=_0x5c32a1,this[_0x27e6bc(0x1b7)]=!0x1,this[_0x27e6bc(0x1e0)](_0x27e6bc(0x18c),{'id':this['id'],'title':_0x5c32a1});}[_0x43df29(0x19f)](_0x4e2c34,_0x816b26){const _0x295aa8=_0x43df29,_0x3929a0=new _0x20c287(_0x4e2c34);return _0x3929a0[_0x295aa8(0x1e7)]({'icon':_0xa1aeb2,'withText':!0x1,'tooltip':_0x5091bf(_0x4e2c34,_0x295aa8(0x1c0))}),_0x3929a0[_0x295aa8(0x1c7)]({'attributes':{'class':[_0x295aa8(0x1ce)]}}),_0x3929a0['on'](_0x295aa8(0x1a0),()=>{const _0x1d41f5=_0x295aa8;this[_0x1d41f5(0x1b7)]=!0x1,_0x816b26[_0x1d41f5(0x1bc)]=this[_0x1d41f5(0x194)][_0x1d41f5(0x1be)]||'',this[_0x1d41f5(0x1e0)](_0x1d41f5(0x1cf));}),_0x3929a0;}[_0x43df29(0x198)](){const _0x439749=_0x43df29,_0x59617a=new _0x202244(_0x439749(0x1d7));return _0x59617a[_0x439749(0x19d)]=!0x0,_0x59617a;}[_0x43df29(0x1d1)](_0x177122){const _0x40c161=_0x43df29;return this[_0x40c161(0x194)]&&_0x40c161(0x1a1)==typeof this[_0x40c161(0x194)][_0x40c161(0x1be)]&&this[_0x40c161(0x194)][_0x40c161(0x1be)][_0x40c161(0x1d4)](_0x177122)?{'title':!0x0}:null;}[_0x43df29(0x188)](_0x55911d){const _0x5bcf6b=_0x43df29;this[_0x5bcf6b(0x194)][_0x5bcf6b(0x188)](_0x55911d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59955b=_0x5aa4;(function(_0x37e9c8,_0x2bf808){const _0x57735c=_0x5aa4,_0x987c40=_0x37e9c8();while(!![]){try{const _0x1f7b07=-parseInt(_0x57735c(0xc0))/0x1*(-parseInt(_0x57735c(0xc5))/0x2)+-parseInt(_0x57735c(0xb9))/0x3+-parseInt(_0x57735c(0xd3))/0x4+-parseInt(_0x57735c(0xb8))/0x5+-parseInt(_0x57735c(0xc8))/0x6*(parseInt(_0x57735c(0xca))/0x7)+parseInt(_0x57735c(0xd5))/0x8+-parseInt(_0x57735c(0xd0))/0x9*(-parseInt(_0x57735c(0xc2))/0xa);if(_0x1f7b07===_0x2bf808)break;else _0x987c40['push'](_0x987c40['shift']());}catch(_0x1dec06){_0x987c40['push'](_0x987c40['shift']());}}}(_0x43f4,0x92d22));import{ListItemView as _0x526feb,View as _0x53177f,ListView as _0x238f73}from'ckeditor5/src/ui.js';function _0x43f4(){const _0x3949ca=['set','ck-ai-chat-history__section-title','ck-hidden','9GAXGta','remove','title','2753832WHGidZ','div','4234984QnKaSM','getItem','splice','length','4026315siPoqn','1344285nRoYmD','itemsViews','setTemplate','addMany','find','isMatching','indexOf','346JFpyVA','filter','19566610HyIySJ','ck-ai-chat-history__section','isVisible','5302wDXdKD','bindTemplate','highlightText','35346XzWHrF','removeItem','1022IVPMJr','_itemsListView','items'];_0x43f4=function(){return _0x3949ca;};return _0x43f4();}function _0x5aa4(_0x2175ca,_0x5e78d8){const _0x43f461=_0x43f4();return _0x5aa4=function(_0x5aa4e0,_0x4665e9){_0x5aa4e0=_0x5aa4e0-0xb8;let _0x2ac668=_0x43f461[_0x5aa4e0];return _0x2ac668;},_0x5aa4(_0x2175ca,_0x5e78d8);}export class AIChatHistoryListView extends _0x526feb{[_0x59955b(0xd2)];[_0x59955b(0xba)];[_0x59955b(0xcb)];constructor(_0xb08ab,{title:_0x509938,items:_0x19f977}){const _0x733bf=_0x59955b;super(_0xb08ab);const _0x4f7c87=this[_0x733bf(0xc6)];this[_0x733bf(0xcd)](_0x733bf(0xc4),!0x0),this[_0x733bf(0xd2)]=_0x509938,this[_0x733bf(0xba)]=_0x19f977;const _0x4aa51e=new _0x53177f(_0xb08ab);_0x4aa51e[_0x733bf(0xbb)]({'tag':_0x733bf(0xd4),'attributes':{'class':[_0x733bf(0xce)]},'children':[this[_0x733bf(0xd2)]]}),this[_0x733bf(0xcb)]=new _0x238f73(_0xb08ab),this[_0x733bf(0xcb)][_0x733bf(0xcc)][_0x733bf(0xbc)](this[_0x733bf(0xba)]),this[_0x733bf(0xbb)]({'tag':'li','attributes':{'class':[_0x733bf(0xc3),_0x4f7c87['if'](_0x733bf(0xc4),_0x733bf(0xcf),_0x50fd00=>!_0x50fd00)]},'children':[_0x4aa51e,this[_0x733bf(0xcb)]]});}[_0x59955b(0xc1)](_0x1604bf){const _0x538dd3=_0x59955b,_0x5bbbf7=this[_0x538dd3(0xba)][_0x538dd3(0xd8)];let _0x321863=0x0;for(const _0x27a4d3 of this[_0x538dd3(0xba)]){if(_0x1604bf){const _0x7b55c0=_0x27a4d3[_0x538dd3(0xbe)](_0x1604bf);_0x27a4d3[_0x538dd3(0xc4)]=!!_0x7b55c0,_0x27a4d3[_0x538dd3(0xc7)](_0x1604bf);}else _0x27a4d3[_0x538dd3(0xc4)]=!0x0,_0x27a4d3[_0x538dd3(0xc7)](null);_0x27a4d3[_0x538dd3(0xc4)]&&_0x321863++;}return this[_0x538dd3(0xc4)]=_0x321863>0x0,{'resultsCount':_0x321863,'totalItemsCount':_0x5bbbf7};}[_0x59955b(0xd6)](_0x5cbffc){const _0x4a7792=_0x59955b;return this[_0x4a7792(0xba)][_0x4a7792(0xbd)](_0xcccd=>_0xcccd['id']===_0x5cbffc);}[_0x59955b(0xc9)](_0x4a99a3){const _0x6470f6=_0x59955b,_0x687107=this[_0x6470f6(0xba)][_0x6470f6(0xbf)](_0x4a99a3);-0x1!==_0x687107&&(this[_0x6470f6(0xba)][_0x6470f6(0xd7)](_0x687107,0x1),this[_0x6470f6(0xcb)][_0x6470f6(0xcc)][_0x6470f6(0xd1)](_0x4a99a3));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
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.
|