@ckeditor/ckeditor5-ai 47.0.0-alpha.6 → 47.0.0-alpha.7
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/LICENSE.md +4 -0
- package/build/ai.js +1 -1
- package/dist/index-editor.css +54 -18
- package/dist/index.css +64 -19
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +5 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +0 -2
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
- 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.d.ts +3 -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.d.ts +7 -2
- 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.d.ts +4 -0
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -0
- 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.d.ts +8 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aiconfig.d.ts +17 -0
- package/src/aicore/aiconnector.d.ts +13 -0
- 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.d.ts +41 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.d.ts +2 -2
- 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.d.ts +16 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.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/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +17 -4
- package/theme/aichat/aichathistory.css +26 -9
- package/theme/aichat/aiminitoolbar.css +8 -0
- package/theme/aichat/aisuggestioncontainer.css +6 -0
- package/theme/aireviewmode/aireviewmode-check-run-result.css +3 -2
- package/theme/aitabs/aitabsview.css +6 -1
- package/theme/common/aibutton.css +0 -4
- package/theme/common/aiheader.css +1 -0
- package/src/aiquickactions/utils/common-translations.d.ts +0 -9
- package/src/aiquickactions/utils/common-translations.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4aba14=_0x31e0;function _0x31e0(_0x5ed613,_0x3f2840){const _0x50ca23=_0x50ca();return _0x31e0=function(_0x31e0f6,_0x4b02d1){_0x31e0f6=_0x31e0f6-0x9f;let _0x480425=_0x50ca23[_0x31e0f6];return _0x480425;},_0x31e0(_0x5ed613,_0x3f2840);}(function(_0x511d7c,_0x5f392c){const _0x4185c3=_0x31e0,_0x2a7de0=_0x511d7c();while(!![]){try{const _0x3e39d0=parseInt(_0x4185c3(0xe8))/0x1+parseInt(_0x4185c3(0xbd))/0x2*(-parseInt(_0x4185c3(0xbb))/0x3)+parseInt(_0x4185c3(0xe1))/0x4+-parseInt(_0x4185c3(0xcf))/0x5+-parseInt(_0x4185c3(0xa3))/0x6*(parseInt(_0x4185c3(0xba))/0x7)+-parseInt(_0x4185c3(0x9f))/0x8+parseInt(_0x4185c3(0xe6))/0x9;if(_0x3e39d0===_0x5f392c)break;else _0x2a7de0['push'](_0x2a7de0['shift']());}catch(_0xbb945a){_0x2a7de0['push'](_0x2a7de0['shift']());}}}(_0x50ca,0x4218f));import{KeystrokeHandler as _0x53105e}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x302844,BodyCollection as _0x5247ec,clickOutsideHandler as _0x2808b9,ListItemButtonView as _0x5d8095,ListItemView as _0x47cd47,ListView as _0x15abbe,SplitButtonView as _0x2df27c,UIModel as _0x52d6a1,View as _0xc459cd}from'ckeditor5/src/ui.js';import{IconAddComment as _0x3dc0f4,IconDocumentWithLoupe as _0x4d28fb}from'ckeditor5/src/icons.js';import{getTranslation as _0x333328}from'../../../aicore/utils/common-translations.js';export class AIChatFeedSuggestionItemActionsView extends _0xc459cd{[_0x4aba14(0xd4)];[_0x4aba14(0xa5)];[_0x4aba14(0xc0)];[_0x4aba14(0xce)];constructor(_0x589dc5){const _0x1991cf=_0x4aba14;super(_0x589dc5);const _0x3e8893=this[_0x1991cf(0xb5)];this[_0x1991cf(0xaf)](_0x1991cf(0xb2),!0x0),this[_0x1991cf(0xaf)](_0x1991cf(0xdd),!0x0),this[_0x1991cf(0xc0)]=new _0x52d6a1({'label':_0x333328(_0x589dc5,_0x1991cf(0xac)),'icon':_0x4d28fb,'withText':!0x0,'type':_0x1991cf(0xb9),'actionName':_0x1991cf(0xc1)}),this[_0x1991cf(0xce)]=new _0x52d6a1({'label':_0x333328(_0x589dc5,_0x1991cf(0xd5)),'icon':_0x3dc0f4,'withText':!0x0,'type':_0x1991cf(0xb9),'actionName':_0x1991cf(0xa8)}),this[_0x1991cf(0xd4)]=new zo(_0x589dc5,{'listItemModels':[this[_0x1991cf(0xc0)],this[_0x1991cf(0xce)]]}),this[_0x1991cf(0xd4)]['on'](_0x1991cf(0xdc),()=>{const _0x32349e=_0x1991cf;this[_0x32349e(0xb0)](_0x32349e(0xa2));}),this[_0x1991cf(0xd4)]['on'](_0x1991cf(0xc1),()=>{const _0x49dfa3=_0x1991cf;this[_0x49dfa3(0xb0)](_0x49dfa3(0xc1));}),this[_0x1991cf(0xd4)]['on'](_0x1991cf(0xa8),()=>{const _0x2b5d18=_0x1991cf;this[_0x2b5d18(0xb0)](_0x2b5d18(0xa8));}),this[_0x1991cf(0xd4)][_0x1991cf(0xaf)]({'label':_0x1991cf(0xab),'tooltip':_0x333328(this[_0x1991cf(0xc6)],_0x1991cf(0xb8)),'withText':!0x0,'class':_0x1991cf(0xe2),'balloonPanelClass':_0x1991cf(0xae)}),this[_0x1991cf(0xd4)][_0x1991cf(0xb3)](_0x1991cf(0xb2))['to'](this),this[_0x1991cf(0xa5)]=this[_0x1991cf(0xbe)]([this[_0x1991cf(0xd4)]]),this[_0x1991cf(0xb6)]({'tag':_0x1991cf(0xc7),'attributes':{'class':['ck',_0x1991cf(0xe2),_0x3e8893['if'](_0x1991cf(0xdd),_0x1991cf(0xcb),_0x16c1bf=>!_0x16c1bf)]},'children':[this[_0x1991cf(0xd4)]]});}[_0x4aba14(0xa1)](_0x25ca8c){const _0x4f8b58=_0x4aba14,_0x2f33e7=this[_0x4f8b58(0xc6)];this[_0x4f8b58(0xd4)][_0x4f8b58(0xaf)]({'label':_0x333328(_0x2f33e7,_0x4f8b58(0xe3),_0x25ca8c),'tooltip':_0x333328(_0x2f33e7,_0x4f8b58(0xb8),_0x25ca8c)}),this[_0x4f8b58(0xc0)][_0x4f8b58(0xcd)]=_0x333328(_0x2f33e7,_0x4f8b58(0xac),_0x25ca8c),this[_0x4f8b58(0xce)][_0x4f8b58(0xcd)]=_0x333328(_0x2f33e7,_0x4f8b58(0xd5),_0x25ca8c);}}function _0x50ca(){const _0x1de6fd=['setTemplate','_setUpKeystrokes','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','button','343nUGVRa','29649KHeLqo','focus','42oeWSCr','createCollection','ltr','showChangeInTextModel','showChangeInText','width','keystrokeHandler','keys','class','locale','div','tooltip','pin','arrowless','ck-hidden','actionName','label','insertSuggestionModel','1934390hYUweY','_setUpList','attachToDom','balloonPanelView','destroy','actionsDropdown','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','element','listView','bottom','source','content','open','execute','isVisible','listenTo','unbind','uiLanguageDirection','61452hhgFqh','ck-ai-chat__feed__ai-suggestion__actions','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','esc','arrowView','13582611WRWgfr','listItemModels','19574OWQoVT','1636336hKmYII','delegate','updateLabels','applySuggestion','58092wTxAgj','detachFromDom','children','bodyCollection','hide','insertSuggestion','items','left','Apply','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','ck-ai-chat__feed__ai-suggestion__actions__balloon','set','fire','add','isEnabled','bind','balloonPanelClass','bindTemplate'];_0x50ca=function(){return _0x1de6fd;};return _0x50ca();}class zo extends _0x2df27c{[_0x4aba14(0xa6)];[_0x4aba14(0xd2)];[_0x4aba14(0xd7)];[_0x4aba14(0xc3)];constructor(_0x279b97,_0x264a57){const _0xb2ab04=_0x4aba14;super(_0x279b97),this[_0xb2ab04(0xd2)]=new _0x302844(this[_0xb2ab04(0xc6)]),this[_0xb2ab04(0xa6)]=new _0x5247ec(this[_0xb2ab04(0xc6)]),this[_0xb2ab04(0xa6)][_0xb2ab04(0xd1)](),this[_0xb2ab04(0xaf)](_0xb2ab04(0xb4),''),this[_0xb2ab04(0xd2)][_0xb2ab04(0xb3)](_0xb2ab04(0xc5))['to'](this,_0xb2ab04(0xb4)),this[_0xb2ab04(0xd7)]=this[_0xb2ab04(0xd0)](_0x264a57[_0xb2ab04(0xe7)]),this[_0xb2ab04(0xa6)][_0xb2ab04(0xb1)](this[_0xb2ab04(0xd2)]),this[_0xb2ab04(0xd2)][_0xb2ab04(0xda)][_0xb2ab04(0xb1)](this[_0xb2ab04(0xd7)]),this[_0xb2ab04(0xe5)][_0xb2ab04(0xdf)](_0xb2ab04(0xc8)),this[_0xb2ab04(0xe5)][_0xb2ab04(0xaf)](_0xb2ab04(0xc8),_0x333328(this[_0xb2ab04(0xc6)],_0xb2ab04(0xad))),this[_0xb2ab04(0xb7)](),this['on'](_0xb2ab04(0xdc),()=>{const _0x488189=_0xb2ab04;this[_0x488189(0xd2)][_0x488189(0xa7)](),this[_0x488189(0xe5)][_0x488189(0xbc)]();}),this['on'](_0xb2ab04(0xdb),()=>{const _0x3d4818=_0xb2ab04;this[_0x3d4818(0xd2)][_0x3d4818(0xdd)]?(this[_0x3d4818(0xd2)][_0x3d4818(0xa7)](),this[_0x3d4818(0xe5)][_0x3d4818(0xbc)]()):(this[_0x3d4818(0xd2)][_0x3d4818(0xc9)]({'target':this[_0x3d4818(0xd6)],'positions':[_0x3d4818(0xbf)===this[_0x3d4818(0xc6)][_0x3d4818(0xe0)]?Jo:Qo]}),this[_0x3d4818(0xd7)][_0x3d4818(0xbc)]());}),_0x2808b9({'emitter':this[_0xb2ab04(0xd2)],'callback':()=>{const _0x2f615f=_0xb2ab04;this[_0x2f615f(0xd2)][_0x2f615f(0xa7)]();},'activator':()=>this[_0xb2ab04(0xd2)][_0xb2ab04(0xdd)],'contextElements':()=>[this[_0xb2ab04(0xd6)],this[_0xb2ab04(0xd2)][_0xb2ab04(0xd6)]]});}[_0x4aba14(0xd0)](_0xde724f){const _0x4ea58f=_0x4aba14,_0x53706a=this[_0x4ea58f(0xc6)],_0x53bc16=new _0x15abbe(_0x53706a);for(const _0xfe4b7b of _0xde724f){const _0x4119c7=new _0x47cd47(_0x53706a),_0x465dce=new _0x5d8095(_0x53706a);_0x465dce[_0x4ea58f(0xb3)](...Object[_0x4ea58f(0xc4)](_0xfe4b7b))['to'](_0xfe4b7b),_0x465dce[_0x4ea58f(0xa0)](_0x4ea58f(0xdc))['to'](_0x53bc16),_0x4119c7[_0x4ea58f(0xa5)][_0x4ea58f(0xb1)](_0x465dce),_0x53bc16[_0x4ea58f(0xa9)][_0x4ea58f(0xb1)](_0x4119c7);}return _0x53bc16[_0x4ea58f(0xa9)][_0x4ea58f(0xa0)](_0x4ea58f(0xdc))['to'](this),_0x53bc16['on'](_0x4ea58f(0xdc),_0x56c1c8=>{const _0x210a4e=_0x4ea58f,_0x5d1b17=_0x56c1c8[_0x210a4e(0xd9)];this[_0x210a4e(0xb0)](_0x5d1b17[_0x210a4e(0xcc)]),this[_0x210a4e(0xd2)][_0x210a4e(0xa7)](),this[_0x210a4e(0xe5)][_0x210a4e(0xbc)]();}),_0x53bc16;}[_0x4aba14(0xb7)](){const _0x1d4a45=_0x4aba14;this[_0x1d4a45(0xc3)]=new _0x53105e(),this[_0x1d4a45(0xc3)][_0x1d4a45(0xde)](this[_0x1d4a45(0xd2)][_0x1d4a45(0xd6)]),this[_0x1d4a45(0xc3)][_0x1d4a45(0xaf)](_0x1d4a45(0xe4),(_0x2c907f,_0xffd94e)=>{const _0x2e9637=_0x1d4a45;this[_0x2e9637(0xd2)][_0x2e9637(0xa7)](),this[_0x2e9637(0xe5)][_0x2e9637(0xbc)](),_0xffd94e();});}[_0x4aba14(0xd3)](){const _0x3fb5ba=_0x4aba14;super[_0x3fb5ba(0xd3)](),this[_0x3fb5ba(0xc3)][_0x3fb5ba(0xd3)](),this[_0x3fb5ba(0xd2)][_0x3fb5ba(0xd3)](),this[_0x3fb5ba(0xa6)][_0x3fb5ba(0xa4)]();}}function Jo(_0x134653){const _0x5841f0=_0x4aba14;return{'top':_0x134653[_0x5841f0(0xd8)],'left':_0x134653[_0x5841f0(0xaa)],'name':_0x5841f0(0xca),'config':{'withArrow':!0x1}};}function Qo(_0x21548b,_0x594fe2){const _0x2e431e=_0x4aba14;return{'top':_0x21548b[_0x2e431e(0xd8)],'left':_0x21548b[_0x2e431e(0xaa)]-(_0x594fe2[_0x2e431e(0xc2)]-_0x21548b[_0x2e431e(0xc2)]),'name':_0x2e431e(0xca),'config':{'withArrow':!0x1}};}
|
|
23
|
+
const _0x57e2c4=_0x1d80;(function(_0x388a9e,_0x48b5cd){const _0xbd7e6=_0x1d80,_0x602f0=_0x388a9e();while(!![]){try{const _0x246759=parseInt(_0xbd7e6(0xe8))/0x1*(parseInt(_0xbd7e6(0xf9))/0x2)+parseInt(_0xbd7e6(0xde))/0x3+-parseInt(_0xbd7e6(0x10d))/0x4*(-parseInt(_0xbd7e6(0xf1))/0x5)+parseInt(_0xbd7e6(0x107))/0x6+parseInt(_0xbd7e6(0x11b))/0x7+-parseInt(_0xbd7e6(0x119))/0x8*(parseInt(_0xbd7e6(0x132))/0x9)+-parseInt(_0xbd7e6(0x110))/0xa*(parseInt(_0xbd7e6(0x104))/0xb);if(_0x246759===_0x48b5cd)break;else _0x602f0['push'](_0x602f0['shift']());}catch(_0x142447){_0x602f0['push'](_0x602f0['shift']());}}}(_0x1e63,0x9901d));import{KeystrokeHandler as _0x16479b}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x14dbba,BodyCollection as _0x11ac39,ButtonView as _0x28aa8b,clickOutsideHandler as _0x31c236,ListItemButtonView as _0x15ba81,ListItemView as _0x37a4c2,ListView as _0x21ef8c,SplitButtonView as _0x1af947,UIModel as _0x4463ff,View as _0x575270}from'ckeditor5/src/ui.js';import{IconCheck as _0x414bff,IconAddComment as _0x275645,IconDocumentWithLoupe as _0x5288e3}from'ckeditor5/src/icons.js';import{getTranslation as _0x335515}from'../../../aicore/utils/common-translations.js';export const ACTIONS=[_0x57e2c4(0xe9),_0x57e2c4(0xfc),_0x57e2c4(0xe7)];function _0x1d80(_0x58e7dd,_0x5904a7){const _0x1e63a7=_0x1e63();return _0x1d80=function(_0x1d800f,_0x1ee234){_0x1d800f=_0x1d800f-0xde;let _0x3a7c0a=_0x1e63a7[_0x1d800f];return _0x3a7c0a;},_0x1d80(_0x58e7dd,_0x5904a7);}function _0x1e63(){const _0x3caff3=['ck-ai-button-primary','listenTo','remove','_updateDropdownActions','_partsCount','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','destroy','source','_setUpKeystrokes','insertSuggestionModel','ck-hidden','open','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','slice','attachToDom','esc','width','actionName','detachFromDom','523773cRpgFc','ck-ai-chat__feed__ai-suggestion__actions','createCollection','balloonPanelView','change:isTrackChangesOn','keys','arrowView','content','element','locale','3157026bLrlnA','ltr','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','bindTemplate','focus','isEnabled','listView','keystrokeHandler','bind','showChangeInText','773rXCiLI','applySuggestion','arrowless','_createActionsDropdownOrButton','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','isVisible','map','items','_createActionsButton','732345MUhTua','updateLabels','unbind','children','ck-ai-chat__feed__ai-suggestion__actions__balloon','bodyCollection','tooltip','has','2828mXRFVM','label','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','insertSuggestion','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','left','filter','length','div','isTrackChangesOn','add','7343897hVcNvN','actionsButton','hide','1051878AZPVst','listItemModels','balloonPanelClass','class','button','_createActionsDropdown','8KpYzWF','bottom','pin','30opTZcQ','set','applySuggestionModel','_dropdownOriginalConfig','uiLanguageDirection','setTemplate','delegate','execute','_dropdownCurrentConfig','48PLyDoo','showChangeInTextModel','2556155xdTMdl','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','_setUpList','fire'];_0x1e63=function(){return _0x3caff3;};return _0x1e63();}export class AIChatFeedSuggestionItemActionsView extends _0x575270{[_0x57e2c4(0x105)];[_0x57e2c4(0xf4)];[_0x57e2c4(0x112)];[_0x57e2c4(0x11a)];[_0x57e2c4(0x128)];[_0x57e2c4(0x123)]=0x1;[_0x57e2c4(0x113)];[_0x57e2c4(0x118)];constructor(_0x130db8,_0x1b5a0e){const _0x140d67=_0x57e2c4;super(_0x130db8),this[_0x140d67(0x113)]=_0x1b5a0e||[...ACTIONS],this[_0x140d67(0x118)]=[...this[_0x140d67(0x113)]];const _0x4ee512=this[_0x140d67(0xe1)];this[_0x140d67(0x111)](_0x140d67(0xe3),!0x0),this[_0x140d67(0x111)](_0x140d67(0xed),!0x0),this[_0x140d67(0x112)]=new _0x4463ff({'label':An(_0x140d67(0xe9),_0x130db8,this[_0x140d67(0x123)]),'icon':_0x414bff,'withText':!0x0,'type':_0x140d67(0x10b),'actionName':_0x140d67(0xe9)}),this[_0x140d67(0x11a)]=new _0x4463ff({'label':An(_0x140d67(0xe7),_0x130db8,this[_0x140d67(0x123)]),'icon':_0x5288e3,'withText':!0x0,'type':_0x140d67(0x10b),'actionName':_0x140d67(0xe7)}),this[_0x140d67(0x128)]=new _0x4463ff({'label':An(_0x140d67(0xfc),_0x130db8,this[_0x140d67(0x123)]),'icon':_0x275645,'withText':!0x0,'type':_0x140d67(0x10b),'actionName':_0x140d67(0xfc)}),this[_0x140d67(0x105)]=this[_0x140d67(0xeb)](_0x130db8),this[_0x140d67(0xf4)]=this[_0x140d67(0x134)]([this[_0x140d67(0x105)]]),this[_0x140d67(0x115)]({'tag':_0x140d67(0x101),'attributes':{'class':['ck',_0x140d67(0x133),_0x4ee512['if'](_0x140d67(0xed),_0x140d67(0x129),_0x31e78d=>!_0x31e78d)]},'children':this[_0x140d67(0xf4)]}),this[_0x140d67(0x120)](this,_0x140d67(0x136),()=>{const _0x186466=_0x140d67;this[_0x186466(0x118)]=this[_0x186466(0x102)]?this[_0x186466(0x113)][_0x186466(0xff)](_0x5883b1=>_0x186466(0xe9)!==_0x5883b1):[...this[_0x186466(0x113)]],this[_0x186466(0x122)](_0x130db8);});}[_0x57e2c4(0x122)](_0x2f7704){const _0x9d244f=_0x57e2c4;this[_0x9d244f(0xf4)][_0x9d244f(0xf8)](this[_0x9d244f(0x105)])&&(this[_0x9d244f(0xf4)][_0x9d244f(0x121)](this[_0x9d244f(0x105)]),this[_0x9d244f(0x105)][_0x9d244f(0x125)]()),0x0!=this[_0x9d244f(0x118)][_0x9d244f(0x100)]&&(this[_0x9d244f(0x105)]=this[_0x9d244f(0xeb)](_0x2f7704),this[_0x9d244f(0xf4)][_0x9d244f(0x103)](this[_0x9d244f(0x105)]));}[_0x57e2c4(0xeb)](_0x4faf07){const _0x1f883f=_0x57e2c4,_0x14446b=0x1===this[_0x1f883f(0x118)][_0x1f883f(0x100)]?this[_0x1f883f(0xf0)](_0x4faf07):this[_0x1f883f(0x10c)](_0x4faf07);_0x14446b[_0x1f883f(0x111)]({'label':An(this[_0x1f883f(0x118)][0x0],_0x4faf07,this[_0x1f883f(0x123)]),'tooltip':Cn(this[_0x1f883f(0x118)][0x0],_0x4faf07,this[_0x1f883f(0x123)]),'withText':!0x0,'class':_0x1f883f(0x133)});for(const _0x2d55c2 of this[_0x1f883f(0x118)])_0x14446b['on'](_0x2d55c2,()=>{const _0x262aad=_0x1f883f;this[_0x262aad(0x11e)](_0x2d55c2);});return _0x14446b;}[_0x57e2c4(0xf0)](_0xda5208){const _0x4c3734=_0x57e2c4,_0x3647aa=new _0x28aa8b(_0xda5208);return _0x3647aa[_0x4c3734(0x111)]({'class':_0x4c3734(0x11f),'withText':!0x0}),_0x3647aa['on'](_0x4c3734(0x117),()=>{const _0xaaaa8b=_0x4c3734;_0x3647aa[_0xaaaa8b(0x11e)](this[_0xaaaa8b(0x118)][0x0]);}),_0x3647aa;}[_0x57e2c4(0x10c)](_0x36ce42){const _0x4804cd=_0x57e2c4,_0x1c133b=new In(_0x36ce42,{'listItemModels':this[_0x4804cd(0x118)][_0x4804cd(0xee)](_0x5ed829=>{const _0x897039=_0x4804cd;switch(_0x5ed829){case _0x897039(0xe9):return this[_0x897039(0x112)];case _0x897039(0xe7):return this[_0x897039(0x11a)];case _0x897039(0xfc):return this[_0x897039(0x128)];}})});return _0x1c133b[_0x4804cd(0x111)]({'label':An(this[_0x4804cd(0x118)][0x0],_0x36ce42,this[_0x4804cd(0x123)]),'tooltip':Cn(this[_0x4804cd(0x118)][0x0],_0x36ce42,this[_0x4804cd(0x123)]),'withText':!0x0,'class':_0x4804cd(0x133),'balloonPanelClass':_0x4804cd(0xf5)}),_0x1c133b[_0x4804cd(0xe6)](_0x4804cd(0xe3))['to'](this),_0x1c133b;}[_0x57e2c4(0xf2)](_0x58e76a){const _0x5533fc=_0x57e2c4,_0x930f25=this[_0x5533fc(0x13b)];this[_0x5533fc(0x123)]=_0x58e76a||this[_0x5533fc(0x123)],this[_0x5533fc(0x105)][_0x5533fc(0x111)]({'label':An(this[_0x5533fc(0x118)][0x0],_0x930f25,this[_0x5533fc(0x123)]),'tooltip':Cn(this[_0x5533fc(0x118)][0x0],_0x930f25,this[_0x5533fc(0x123)])}),this[_0x5533fc(0x112)][_0x5533fc(0xfa)]=An(_0x5533fc(0xe9),_0x930f25,this[_0x5533fc(0x123)]),this[_0x5533fc(0x11a)][_0x5533fc(0xfa)]=An(_0x5533fc(0xe7),_0x930f25,this[_0x5533fc(0x123)]),this[_0x5533fc(0x128)][_0x5533fc(0xfa)]=An(_0x5533fc(0xfc),_0x930f25,this[_0x5533fc(0x123)]);}}class In extends _0x1af947{[_0x57e2c4(0xf6)];[_0x57e2c4(0x135)];[_0x57e2c4(0xe4)];[_0x57e2c4(0xe5)];constructor(_0x296c06,_0x14b668){const _0x39f649=_0x57e2c4;super(_0x296c06),this[_0x39f649(0x135)]=new _0x14dbba(this[_0x39f649(0x13b)]),this[_0x39f649(0xf6)]=new _0x11ac39(this[_0x39f649(0x13b)]),this[_0x39f649(0xf6)][_0x39f649(0x12d)](),this[_0x39f649(0x111)](_0x39f649(0x109),''),this[_0x39f649(0x135)][_0x39f649(0xe6)](_0x39f649(0x10a))['to'](this,_0x39f649(0x109)),this[_0x39f649(0xe4)]=this[_0x39f649(0x11d)](_0x14b668[_0x39f649(0x108)][_0x39f649(0x12c)](0x1)),this[_0x39f649(0xf6)][_0x39f649(0x103)](this[_0x39f649(0x135)]),this[_0x39f649(0x135)][_0x39f649(0x139)][_0x39f649(0x103)](this[_0x39f649(0xe4)]),this[_0x39f649(0x138)][_0x39f649(0xf3)](_0x39f649(0xf7)),this[_0x39f649(0x138)][_0x39f649(0x111)](_0x39f649(0xf7),_0x335515(this[_0x39f649(0x13b)],_0x39f649(0x124))),this[_0x39f649(0x127)](),this['on'](_0x39f649(0x117),()=>{const _0x12f801=_0x39f649,_0x565958=_0x14b668[_0x12f801(0x108)][0x0][_0x12f801(0x130)];this[_0x12f801(0x11e)](_0x565958),this[_0x12f801(0x135)][_0x12f801(0x106)](),this[_0x12f801(0x138)][_0x12f801(0xe2)]();}),this['on'](_0x39f649(0x12a),()=>{const _0x4ca31c=_0x39f649;this[_0x4ca31c(0x135)][_0x4ca31c(0xed)]?(this[_0x4ca31c(0x135)][_0x4ca31c(0x106)](),this[_0x4ca31c(0x138)][_0x4ca31c(0xe2)]()):(this[_0x4ca31c(0x135)][_0x4ca31c(0x10f)]({'target':this[_0x4ca31c(0x13a)],'positions':[_0x4ca31c(0xdf)===this[_0x4ca31c(0x13b)][_0x4ca31c(0x114)]?Sn:wn]}),this[_0x4ca31c(0xe4)][_0x4ca31c(0xe2)]());}),_0x31c236({'emitter':this[_0x39f649(0x135)],'callback':()=>{const _0x4eced7=_0x39f649;this[_0x4eced7(0x135)][_0x4eced7(0x106)]();},'activator':()=>this[_0x39f649(0x135)][_0x39f649(0xed)],'contextElements':()=>[this[_0x39f649(0x13a)],this[_0x39f649(0x135)][_0x39f649(0x13a)]]});}[_0x57e2c4(0x11d)](_0xc15030){const _0x5a4e78=_0x57e2c4,_0x29f75e=this[_0x5a4e78(0x13b)],_0xdc34f2=new _0x21ef8c(_0x29f75e);for(const _0x4dbca8 of _0xc15030){const _0x270ec2=new _0x37a4c2(_0x29f75e),_0x13bf99=new _0x15ba81(_0x29f75e);_0x13bf99[_0x5a4e78(0xe6)](...Object[_0x5a4e78(0x137)](_0x4dbca8))['to'](_0x4dbca8),_0x13bf99[_0x5a4e78(0x116)](_0x5a4e78(0x117))['to'](_0xdc34f2),_0x270ec2[_0x5a4e78(0xf4)][_0x5a4e78(0x103)](_0x13bf99),_0xdc34f2[_0x5a4e78(0xef)][_0x5a4e78(0x103)](_0x270ec2);}return _0xdc34f2[_0x5a4e78(0xef)][_0x5a4e78(0x116)](_0x5a4e78(0x117))['to'](this),_0xdc34f2['on'](_0x5a4e78(0x117),_0x53c296=>{const _0x5e26e8=_0x5a4e78,_0x5c28ca=_0x53c296[_0x5e26e8(0x126)];this[_0x5e26e8(0x11e)](_0x5c28ca[_0x5e26e8(0x130)]),this[_0x5e26e8(0x135)][_0x5e26e8(0x106)](),this[_0x5e26e8(0x138)][_0x5e26e8(0xe2)]();}),_0xdc34f2;}[_0x57e2c4(0x127)](){const _0xe80577=_0x57e2c4;this[_0xe80577(0xe5)]=new _0x16479b(),this[_0xe80577(0xe5)][_0xe80577(0x120)](this[_0xe80577(0x135)][_0xe80577(0x13a)]),this[_0xe80577(0xe5)][_0xe80577(0x111)](_0xe80577(0x12e),(_0x433114,_0x3e26dd)=>{const _0x55d2ba=_0xe80577;this[_0x55d2ba(0x135)][_0x55d2ba(0x106)](),this[_0x55d2ba(0x138)][_0x55d2ba(0xe2)](),_0x3e26dd();});}[_0x57e2c4(0x125)](){const _0x39f0be=_0x57e2c4;super[_0x39f0be(0x125)](),this[_0x39f0be(0xe5)][_0x39f0be(0x125)](),this[_0x39f0be(0x135)][_0x39f0be(0x125)](),this[_0x39f0be(0xf6)][_0x39f0be(0x131)]();}}function Sn(_0xb93abd){const _0x354f74=_0x57e2c4;return{'top':_0xb93abd[_0x354f74(0x10e)],'left':_0xb93abd[_0x354f74(0xfe)],'name':_0x354f74(0xea),'config':{'withArrow':!0x1}};}function wn(_0x13861c,_0x57ffa1){const _0x4206f9=_0x57e2c4;return{'top':_0x13861c[_0x4206f9(0x10e)],'left':_0x13861c[_0x4206f9(0xfe)]-(_0x57ffa1[_0x4206f9(0x12f)]-_0x13861c[_0x4206f9(0x12f)]),'name':_0x4206f9(0xea),'config':{'withArrow':!0x1}};}function An(_0x423fa8,_0x18e40f,_0x16def5){const _0x34b8ba=_0x57e2c4;switch(_0x423fa8){case _0x34b8ba(0xe9):return _0x335515(_0x18e40f,_0x34b8ba(0xec),_0x16def5);case _0x34b8ba(0xe7):return _0x335515(_0x18e40f,_0x34b8ba(0xe0),_0x16def5);case _0x34b8ba(0xfc):return _0x335515(_0x18e40f,_0x34b8ba(0xfb),_0x16def5);}}function Cn(_0x3350f8,_0xc20865,_0x2a5996){const _0x17e185=_0x57e2c4;switch(_0x3350f8){case _0x17e185(0xe9):return _0x335515(_0xc20865,_0x17e185(0x11c),_0x2a5996);case _0x17e185(0xe7):return _0x335515(_0xc20865,_0x17e185(0xfd),_0x2a5996);case _0x17e185(0xfc):return _0x335515(_0xc20865,_0x17e185(0x12b),_0x2a5996);}}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditemview.js';
|
|
10
10
|
import { type AISuggestionContentPartDefinition } from '../../../aicore/utils/getsuggestionpartsfromreply.js';
|
|
11
|
+
import { type AISuggestionActionName } from './aichatfeedsuggestionitemactionsview.js';
|
|
11
12
|
import { type AIReplySource } from '../../../aicore/model/aireply.js';
|
|
12
13
|
import { type AISuggestionBodyViewContentPartView, type AIContentRenderingStrategy } from '../../../aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js';
|
|
13
14
|
/**
|
|
@@ -22,6 +23,10 @@ export declare class AIChatFeedSuggestionItemView extends AIChatFeedItemView {
|
|
|
22
23
|
* @inheritDoc
|
|
23
24
|
*/
|
|
24
25
|
options: AIChatFeedSuggestionItemViewOptions;
|
|
26
|
+
/**
|
|
27
|
+
* @observable
|
|
28
|
+
*/
|
|
29
|
+
isTrackChangesOn: boolean;
|
|
25
30
|
/**
|
|
26
31
|
* @inheritDoc
|
|
27
32
|
*/
|
|
@@ -71,4 +76,8 @@ export interface AIChatFeedSuggestionItemViewOptions extends AIChatItemViewOptio
|
|
|
71
76
|
* A flag indicating whether the suggestion should show the diff or final suggestion.
|
|
72
77
|
*/
|
|
73
78
|
showDiff: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* The configuration of the advanced reply dropdown in the AI chat feed.
|
|
81
|
+
*/
|
|
82
|
+
dropdownConfig?: Array<AISuggestionActionName>;
|
|
74
83
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x4bc4(_0x7dca98,_0xe3d182){var _0x1d514a=_0x1d51();return _0x4bc4=function(_0x4bc4f3,_0x15abae){_0x4bc4f3=_0x4bc4f3-0x91;var _0x1b86d1=_0x1d514a[_0x4bc4f3];return _0x1b86d1;},_0x4bc4(_0x7dca98,_0xe3d182);}var _0x6c4f86=_0x4bc4;(function(_0x5b8021,_0x3d9968){var _0x2a262c=_0x4bc4,_0x1b7708=_0x5b8021();while(!![]){try{var _0x559abd=-parseInt(_0x2a262c(0xa3))/0x1+parseInt(_0x2a262c(0xb3))/0x2*(-parseInt(_0x2a262c(0x95))/0x3)+-parseInt(_0x2a262c(0xad))/0x4+parseInt(_0x2a262c(0xa2))/0x5+-parseInt(_0x2a262c(0xa5))/0x6+parseInt(_0x2a262c(0xa4))/0x7+parseInt(_0x2a262c(0xaf))/0x8*(parseInt(_0x2a262c(0xb2))/0x9);if(_0x559abd===_0x3d9968)break;else _0x1b7708['push'](_0x1b7708['shift']());}catch(_0x138ae0){_0x1b7708['push'](_0x1b7708['shift']());}}}(_0x1d51,0x71174));import{AIChatFeedItemView as _0x1c1b71}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x5d48cf}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x1d51(){var _0x1bb600=['showChangeInText','updateContent','331311ngGVbi','extendTemplate','actionsView','areActionsDisabled','isTrackChangesOn','ck-ai-chat__feed__ai-suggestion','children','rejectSuggestion','dropdownConfig','dislike','options','hasNonEmptyParts','insertSuggestion','4577325YcpHYG','632827hacTfF','391419JtMNJR','5539140ajSbMd','getPartView','toggleSuggestionDisplayMode','hasPendingParts','mouseOverSuggestion','updateSources','showDiff','updateLabels','1398512amdmBw','markAsDone','1578576DfTdFe','mouseLeaveSuggestion','isEnabled','99MhfmjT','14GWQxaF','isVisible','applySuggestion','like','partsCount','bind','addMany','updatePartState','bodyView','containerView','fire'];_0x1d51=function(){return _0x1bb600;};return _0x1d51();}import{AIChatFeedSuggestionItemActionsView as _0x18c055}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x1c1b71{[_0x6c4f86(0x91)];[_0x6c4f86(0x97)];constructor(_0x1bb664,_0x4b5c6e){var _0x2752b1=_0x6c4f86;super(_0x4b5c6e),this[_0x2752b1(0x91)]=new _0x5d48cf(_0x1bb664,{'showDiff':_0x4b5c6e[_0x2752b1(0xab)],'areActionsDisabled':_0x4b5c6e[_0x2752b1(0x98)]}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0xa7),(_0x580e2c,_0x446c80)=>{var _0x529b55=_0x2752b1;this[_0x529b55(0x92)](_0x529b55(0xa7),{'replyId':this[_0x529b55(0x9f)]['id'],'showDiff':_0x446c80[_0x529b55(0xab)]});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0xb6),()=>{var _0x552647=_0x2752b1;this[_0x552647(0x92)](_0x552647(0xb6),{'replyId':this[_0x552647(0x9f)]['id']});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0x9e),()=>{var _0x3ea189=_0x2752b1;this[_0x3ea189(0x92)](_0x3ea189(0x9e),{'replyId':this[_0x3ea189(0x9f)]['id']});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0x93),(_0x3e0ecb,{index:_0x1023df})=>{var _0x3b48a0=_0x2752b1;this[_0x3b48a0(0x92)](_0x3b48a0(0x93),{'replyId':this[_0x3b48a0(0x9f)]['id'],'partIndex':_0x1023df});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0xa1),(_0x10d406,{index:_0x4b5e01})=>{var _0x2b8bec=_0x2752b1;this[_0x2b8bec(0x92)](_0x2b8bec(0xa1),{'replyId':this[_0x2b8bec(0x9f)]['id'],'partIndex':_0x4b5e01});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0x9c),(_0x5aa73b,{index:_0x5682ba})=>{var _0x22098a=_0x2752b1;this[_0x22098a(0x92)](_0x22098a(0x9c),{'replyId':this[_0x22098a(0x9f)]['id'],'partIndex':_0x5682ba});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0xa9),(_0x3f2d09,{index:_0x2d71bc})=>{var _0x16e713=_0x2752b1;this[_0x16e713(0x92)](_0x16e713(0xa9),{'replyId':this[_0x16e713(0x9f)]['id'],'partIndex':_0x2d71bc});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0xb0),(_0x34fd53,{index:_0x366020})=>{var _0xc05c28=_0x2752b1;this[_0xc05c28(0x92)](_0xc05c28(0xb0),{'replyId':this[_0xc05c28(0x9f)]['id'],'partIndex':_0x366020});}),this[_0x2752b1(0x97)]=new _0x18c055(_0x1bb664,this[_0x2752b1(0x9f)][_0x2752b1(0x9d)]),this[_0x2752b1(0x97)][_0x2752b1(0xb8)](_0x2752b1(0x99))['to'](this,_0x2752b1(0x99)),this[_0x2752b1(0x97)]['on'](_0x2752b1(0x93),()=>{var _0x1fd568=_0x2752b1;this[_0x1fd568(0x92)](_0x1fd568(0x93),{'replyId':this[_0x1fd568(0x9f)]['id']});}),this[_0x2752b1(0x97)]['on'](_0x2752b1(0xa1),()=>{var _0x99f810=_0x2752b1;this[_0x99f810(0x92)](_0x99f810(0xa1),{'replyId':this[_0x99f810(0x9f)]['id']});}),this[_0x2752b1(0x97)]['on'](_0x2752b1(0xb5),()=>{var _0x39cba7=_0x2752b1;this[_0x39cba7(0x92)](_0x39cba7(0xb5),{'replyId':this[_0x39cba7(0x9f)]['id']});}),_0x4b5c6e[_0x2752b1(0x98)]?this[_0x2752b1(0x97)][_0x2752b1(0xb1)]=!0x1:this[_0x2752b1(0x97)][_0x2752b1(0xb8)](_0x2752b1(0xb1))['to'](this[_0x2752b1(0x91)][_0x2752b1(0xbb)],_0x2752b1(0xa8)),this[_0x2752b1(0x9b)][_0x2752b1(0xb9)]([this[_0x2752b1(0x91)],this[_0x2752b1(0x97)]]),this[_0x2752b1(0x96)]({'attributes':{'class':[_0x2752b1(0x9a)]}});}async[_0x6c4f86(0x94)](_0x423597){var _0xd2f056=_0x6c4f86;await this[_0xd2f056(0x91)][_0xd2f056(0x94)](_0x423597),this[_0xd2f056(0x97)][_0xd2f056(0xac)](this[_0xd2f056(0x91)][_0xd2f056(0xbb)][_0xd2f056(0xb7)]);}[_0x6c4f86(0xba)](_0x3c7472,_0x4dc8ac){var _0x28d1e6=_0x6c4f86;this[_0x28d1e6(0x91)][_0x28d1e6(0xbb)][_0x28d1e6(0xba)](_0x3c7472,_0x4dc8ac);}[_0x6c4f86(0xaa)](_0xd6e458){var _0x4b559b=_0x6c4f86;this[_0x4b559b(0x91)][_0x4b559b(0xaa)](_0xd6e458);}[_0x6c4f86(0xa6)](_0x3a2f5f){var _0x22ba4a=_0x6c4f86;return this[_0x22ba4a(0x91)][_0x22ba4a(0xbb)][_0x22ba4a(0xa6)](_0x3a2f5f);}[_0x6c4f86(0xae)](){var _0x521546=_0x6c4f86;super[_0x521546(0xae)](),this[_0x521546(0x91)][_0x521546(0xae)](),this[_0x521546(0x97)][_0x521546(0xb4)]=this[_0x521546(0x91)][_0x521546(0xbb)][_0x521546(0xa0)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x4810(_0x39b6af,_0x18d312){var _0x4ebe79=_0x4ebe();return _0x4810=function(_0x481038,_0x223509){_0x481038=_0x481038-0xf5;var _0x346ced=_0x4ebe79[_0x481038];return _0x346ced;},_0x4810(_0x39b6af,_0x18d312);}var _0x520251=_0x4810;(function(_0x36ed0b,_0x531489){var _0x79a894=_0x4810,_0x542e08=_0x36ed0b();while(!![]){try{var _0x51382a=parseInt(_0x79a894(0x114))/0x1*(-parseInt(_0x79a894(0x10c))/0x2)+-parseInt(_0x79a894(0x116))/0x3*(parseInt(_0x79a894(0x105))/0x4)+parseInt(_0x79a894(0xfe))/0x5*(-parseInt(_0x79a894(0xfc))/0x6)+parseInt(_0x79a894(0x10a))/0x7+parseInt(_0x79a894(0xf5))/0x8*(-parseInt(_0x79a894(0x110))/0x9)+-parseInt(_0x79a894(0x107))/0xa+parseInt(_0x79a894(0x10b))/0xb;if(_0x51382a===_0x531489)break;else _0x542e08['push'](_0x542e08['shift']());}catch(_0x1f02ba){_0x542e08['push'](_0x542e08['shift']());}}}(_0x4ebe,0x97bda));function _0x4ebe(){var _0xa277f7=['278343XWkIkP','add','ck-ai-chat__feed__message-content','innerHTML','55oAhNOV','length','887781ozrqNx','children','80hEdVWb','render','div','markAsDone','_contextChipsView','_bodyCollection','_createMessageContentView','494826SbwaVY','ck-ai-chat__feed__context-chips','20QQloUi','setTemplate','contextItems','extendTemplate','ck-ai-chat__feed__user-message','filter','_messageContentView','12zFAxAP','element','3525710RJBCvE','_locale','_createContextChipsView','3030650GwcJHf','26159936aWVqCr','11276hSqvUy','hidden','options','initialContent'];_0x4ebe=function(){return _0xa277f7;};return _0x4ebe();}import{AIChatFeedItemView as _0x51ac4a}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x31e205}from'./aichatfeedcontextchipsview.js';import{View as _0x551cd6}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x51ac4a{[_0x520251(0xf9)]=null;[_0x520251(0x108)];[_0x520251(0xfa)];[_0x520251(0x104)];constructor(_0x5ec082,_0x4cc64e,_0x2959a1){var _0x2a3049=_0x520251;super(_0x4cc64e),this[_0x2a3049(0x108)]=_0x5ec082,this[_0x2a3049(0xfa)]=_0x2959a1,this[_0x2a3049(0x109)](),this[_0x2a3049(0xfb)](),this[_0x2a3049(0x101)]({'attributes':{'class':[_0x2a3049(0x102)]}});}[_0x520251(0x109)](){var _0x568832=_0x520251;this[_0x568832(0x10e)][_0x568832(0x100)]&&this[_0x568832(0x10e)][_0x568832(0x100)][_0x568832(0x115)]>0x0&&(this[_0x568832(0xf9)]=new _0x31e205(this[_0x568832(0x108)],this[_0x568832(0x10e)][_0x568832(0x100)][_0x568832(0x103)](_0x476049=>!_0x476049[_0x568832(0x10d)]),this[_0x568832(0xfa)]),this[_0x568832(0xf9)][_0x568832(0x101)]({'attributes':{'class':_0x568832(0xfd)}}),this[_0x568832(0x117)][_0x568832(0x111)](this[_0x568832(0xf9)]));}[_0x520251(0xfb)](){var _0x42d50e=_0x520251;this[_0x42d50e(0x104)]=new _0x551cd6(this[_0x42d50e(0x108)]),this[_0x42d50e(0x104)][_0x42d50e(0xff)]({'tag':_0x42d50e(0xf7),'attributes':{'class':_0x42d50e(0x112)}}),this[_0x42d50e(0x117)][_0x42d50e(0x111)](this[_0x42d50e(0x104)]);}[_0x520251(0xf6)](){var _0x1f7285=_0x520251;super[_0x1f7285(0xf6)](),this[_0x1f7285(0x104)][_0x1f7285(0x106)][_0x1f7285(0x113)]=this[_0x1f7285(0x10e)][_0x1f7285(0x10f)],this[_0x1f7285(0xf8)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15cb60=_0x329c;(function(_0x1d98ff,_0x14a8cc){const _0x5669fb=_0x329c,_0xd2a84e=_0x1d98ff();while(!![]){try{const _0x20a6bb=parseInt(_0x5669fb(0x174))/0x1*(-parseInt(_0x5669fb(0x176))/0x2)+-parseInt(_0x5669fb(0x188))/0x3+parseInt(_0x5669fb(0x17b))/0x4*(-parseInt(_0x5669fb(0x178))/0x5)+parseInt(_0x5669fb(0x187))/0x6*(parseInt(_0x5669fb(0x18a))/0x7)+parseInt(_0x5669fb(0x180))/0x8+-parseInt(_0x5669fb(0x17a))/0x9*(-parseInt(_0x5669fb(0x17e))/0xa)+parseInt(_0x5669fb(0x179))/0xb*(parseInt(_0x5669fb(0x17c))/0xc);if(_0x20a6bb===_0x14a8cc)break;else _0xd2a84e['push'](_0xd2a84e['shift']());}catch(_0x1cde02){_0xd2a84e['push'](_0xd2a84e['shift']());}}}(_0x1004,0x4b0e5));function _0x329c(_0x238c2e,_0x59d977){const _0x1004ad=_0x1004();return _0x329c=function(_0x329c0a,_0x321fef){_0x329c0a=_0x329c0a-0x172;let _0x4c0aad=_0x1004ad[_0x329c0a];return _0x4c0aad;},_0x329c(_0x238c2e,_0x59d977);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x60b96e}from'../../aicore/utils/eventnames.js';function _0x1004(){const _0x223b94=['removeContextItem','sendUserMessage','addDocumentToContext','addFileToContext','selectModel','addResourceToContext','1086tZZvSk','1426131LLoUxi','startConversation','6867ogIMAJ','toggleWebSearch','loadSourceResources','165891ukFhcb','toggleReasoning','2lOkLZZ','resizeTabs','86425oCUCoy','6479lVJkVc','1136907fSxppW','92udVazd','18984FxHWUD','addUrlToContext','10FEsEUl','abortPromptStream','884560UqRxmd'];_0x1004=function(){return _0x223b94;};return _0x1004();}export const AI_CHAT_UI_EVENT_NAMES=[..._0x60b96e,_0x15cb60(0x189),_0x15cb60(0x177),_0x15cb60(0x182),_0x15cb60(0x17f),_0x15cb60(0x183),_0x15cb60(0x184),_0x15cb60(0x17d),_0x15cb60(0x186),_0x15cb60(0x181),_0x15cb60(0x173),_0x15cb60(0x172),_0x15cb60(0x175),_0x15cb60(0x185)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b5e42=_0x9371;function _0x9371(_0x4295c6,_0x16ab54){const _0x44d8d8=_0x44d8();return _0x9371=function(_0x93711f,_0x36a1d4){_0x93711f=_0x93711f-0x1a3;let _0x5e5ab3=_0x44d8d8[_0x93711f];return _0x5e5ab3;},_0x9371(_0x4295c6,_0x16ab54);}function _0x44d8(){const _0x29deee=['3320KrSXdj','length','5051928CjHogi','_processQueue','enqueue','10OsZsqj','93890FcDwYy','reject','_abortController','once','11tnpfLA','2373024IIwUOR','shift','push','3031040nsSdPa','isProcessing','1608906yEMOBF','abort','828GLRZiS','queueEmptyPromise','13972rZCxgW','completePromise','signal','fire','14fUXbiu','resolve','createTask','_queueEmpty','queue','19324sQuHnB','callback'];_0x44d8=function(){return _0x29deee;};return _0x44d8();}(function(_0x40177a,_0x14b3f6){const _0x4a9eac=_0x9371,_0x222b3f=_0x40177a();while(!![]){try{const _0x18b849=parseInt(_0x4a9eac(0x1b1))/0x1*(-parseInt(_0x4a9eac(0x1ac))/0x2)+parseInt(_0x4a9eac(0x1be))/0x3+parseInt(_0x4a9eac(0x1c1))/0x4+parseInt(_0x4a9eac(0x1b8))/0x5*(-parseInt(_0x4a9eac(0x1a4))/0x6)+-parseInt(_0x4a9eac(0x1a8))/0x7*(parseInt(_0x4a9eac(0x1b3))/0x8)+parseInt(_0x4a9eac(0x1a6))/0x9*(parseInt(_0x4a9eac(0x1b9))/0xa)+parseInt(_0x4a9eac(0x1bd))/0xb*(-parseInt(_0x4a9eac(0x1b5))/0xc);if(_0x18b849===_0x14b3f6)break;else _0x222b3f['push'](_0x222b3f['shift']());}catch(_0x1a88b4){_0x222b3f['push'](_0x222b3f['shift']());}}}(_0x44d8,0x78084));import{EmitterMixin as _0x383ac8}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x383ac8(){[_0x2b5e42(0x1b0)]=[];[_0x2b5e42(0x1a3)]=!0x1;[_0x2b5e42(0x1bb)];async[_0x2b5e42(0x1b7)](_0x271734){const _0x2edc38=_0x2b5e42,_0x38064f=this[_0x2edc38(0x1ae)](_0x271734);return this[_0x2edc38(0x1b0)][_0x2edc38(0x1c0)](_0x38064f),this[_0x2edc38(0x1b6)](),_0x38064f[_0x2edc38(0x1a9)];}[_0x2b5e42(0x1a5)](){const _0x54be51=_0x2b5e42;this[_0x54be51(0x1a3)]&&(this[_0x54be51(0x1bb)][_0x54be51(0x1a5)](),this[_0x54be51(0x1bb)]=void 0x0,this[_0x54be51(0x1b0)]=[],this[_0x54be51(0x1ab)](_0x54be51(0x1af)),this[_0x54be51(0x1a3)]=!0x1);}get[_0x2b5e42(0x1a7)](){const _0x496419=_0x2b5e42;return this[_0x496419(0x1b0)][_0x496419(0x1b4)]||this[_0x496419(0x1a3)]?new Promise(_0x3ea76f=>{const _0x1505cf=_0x496419;this[_0x1505cf(0x1bc)](_0x1505cf(0x1af),()=>{_0x3ea76f();});}):Promise[_0x496419(0x1ad)]();}async[_0x2b5e42(0x1b6)](){const _0x589b21=_0x2b5e42;if(!this[_0x589b21(0x1a3)]){this[_0x589b21(0x1bb)]=new AbortController(),this[_0x589b21(0x1a3)]=!0x0;try{for(;this[_0x589b21(0x1b0)][_0x589b21(0x1b4)]&&this[_0x589b21(0x1a3)];){const _0x1c105d=this[_0x589b21(0x1b0)][_0x589b21(0x1bf)]();try{await _0x1c105d[_0x589b21(0x1b2)](this[_0x589b21(0x1bb)][_0x589b21(0x1aa)]),_0x1c105d[_0x589b21(0x1ad)]();}catch(_0x351728){_0x1c105d[_0x589b21(0x1ba)](_0x351728);}}}finally{this[_0x589b21(0x1a3)]=!0x1,this[_0x589b21(0x1bb)]=void 0x0;}this[_0x589b21(0x1ab)](_0x589b21(0x1af));}}[_0x2b5e42(0x1ae)](_0x4d5c64){let _0x4538d0,_0x41693b;const _0x2abf6a=new Promise((_0x596d29,_0x318745)=>{_0x4538d0=_0x596d29,_0x41693b=_0x318745;});return{'callback':_0x4d5c64,'resolve':_0x4538d0,'reject':_0x41693b,'completePromise':_0x2abf6a};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x502a0f=_0x417e;(function(_0x5a8055,_0x5c9518){const _0x16c78c=_0x417e,_0x49a3da=_0x5a8055();while(!![]){try{const _0xfab65a=-parseInt(_0x16c78c(0x1ff))/0x1*(parseInt(_0x16c78c(0x1e7))/0x2)+parseInt(_0x16c78c(0x1fa))/0x3+-parseInt(_0x16c78c(0x202))/0x4*(-parseInt(_0x16c78c(0x209))/0x5)+-parseInt(_0x16c78c(0x1e8))/0x6*(parseInt(_0x16c78c(0x1e2))/0x7)+parseInt(_0x16c78c(0x1f2))/0x8+-parseInt(_0x16c78c(0x206))/0x9*(-parseInt(_0x16c78c(0x201))/0xa)+-parseInt(_0x16c78c(0x1ef))/0xb;if(_0xfab65a===_0x5c9518)break;else _0x49a3da['push'](_0x49a3da['shift']());}catch(_0x1aef7c){_0x49a3da['push'](_0x49a3da['shift']());}}}(_0x23a4,0x1eafb));const ls=[_0x502a0f(0x208),_0x502a0f(0x20c),_0x502a0f(0x1e1),_0x502a0f(0x1f7)],ms=[_0x502a0f(0x1fe),_0x502a0f(0x1f0),_0x502a0f(0x1e5),_0x502a0f(0x1fc),_0x502a0f(0x1f9),_0x502a0f(0x204),'\x20'];function _0x23a4(){const _0x432dbb=['signal','scrollHeight','isRunning','_isAtBottom','keydown','start','Home','552666lMTUwF','_onUserEvent','PageDown','includes','ArrowUp','5LOCtQc','stop','1630GXlsVw','239516AkSBDx','_rafUpdate','End','abortController','8739skOOuG','addEventListener','wheel','5JaPgCl','isUserPaused','bind','touchstart','pointerdown','631043DOUYli','destroy','element','PageUp','type','79448WFJtKI','6aajyOI','auto','scrollTo','deltaY','abort','key','animationFrameId','2159674VlbaRR','ArrowDown','_stop','1667360CTxLqU'];_0x23a4=function(){return _0x432dbb;};return _0x23a4();}function _0x417e(_0x509368,_0x1b6d4e){const _0x23a470=_0x23a4();return _0x417e=function(_0x417e22,_0x36f659){_0x417e22=_0x417e22-0x1e1;let _0x4471cb=_0x23a470[_0x417e22];return _0x4471cb;},_0x417e(_0x509368,_0x1b6d4e);}export class ScrollManager{[_0x502a0f(0x1e4)];[_0x502a0f(0x1ee)];[_0x502a0f(0x1f5)];[_0x502a0f(0x205)];[_0x502a0f(0x20a)];constructor(_0x338fec){const _0x241ba3=_0x502a0f;this[_0x241ba3(0x1e4)]=_0x338fec,this[_0x241ba3(0x1ee)]=null,this[_0x241ba3(0x1f5)]=!0x1,this[_0x241ba3(0x205)]=new AbortController(),this[_0x241ba3(0x20a)]=!0x1;for(const _0xd7dd7d of ls){const _0x571a59=_0x241ba3(0x1f7)!==_0xd7dd7d;this[_0x241ba3(0x1e4)][_0x241ba3(0x207)](_0xd7dd7d,this[_0x241ba3(0x1fb)][_0x241ba3(0x20b)](this),{'passive':_0x571a59,'signal':this[_0x241ba3(0x205)][_0x241ba3(0x1f3)]});}}[_0x502a0f(0x1f8)](){const _0x1d0d03=_0x502a0f;this[_0x1d0d03(0x1f5)]||(this[_0x1d0d03(0x1f5)]=!0x0,this[_0x1d0d03(0x20a)]=!0x1,this[_0x1d0d03(0x1ee)]=requestAnimationFrame(this[_0x1d0d03(0x203)][_0x1d0d03(0x20b)](this)));}[_0x502a0f(0x200)](){requestAnimationFrame(()=>{const _0x5cb6cf=_0x417e;this[_0x5cb6cf(0x1f1)]();});}[_0x502a0f(0x1e3)](){const _0x456134=_0x502a0f;this[_0x456134(0x1f1)](),this[_0x456134(0x205)][_0x456134(0x1ec)]();}[_0x502a0f(0x1f1)](){const _0x4fc69a=_0x502a0f;null!==this[_0x4fc69a(0x1ee)]&&(cancelAnimationFrame(this[_0x4fc69a(0x1ee)]),this[_0x4fc69a(0x1ee)]=null),this[_0x4fc69a(0x1f5)]&&(this[_0x4fc69a(0x1f5)]=!0x1),this[_0x4fc69a(0x20a)]=!0x1;}[_0x502a0f(0x1fb)](_0x12194b){const _0x25cd0b=_0x502a0f;if(this[_0x25cd0b(0x1f5)]){if(_0x25cd0b(0x1f7)===_0x12194b[_0x25cd0b(0x1e6)]){const _0x526938=_0x12194b[_0x25cd0b(0x1ed)];if(!ms[_0x25cd0b(0x1fd)](_0x526938))return;}_0x12194b instanceof WheelEvent?_0x12194b[_0x25cd0b(0x1eb)]<0x0?this[_0x25cd0b(0x20a)]=!0x0:this[_0x25cd0b(0x20a)]=!this[_0x25cd0b(0x1f6)]():this[_0x25cd0b(0x20a)]=!0x0;}}[_0x502a0f(0x1f6)](){const _0x4981ef=_0x502a0f,{scrollTop:_0x1e8858,scrollHeight:_0x4511a6,clientHeight:_0x3c928b}=this[_0x4981ef(0x1e4)];return _0x4511a6-_0x1e8858-_0x3c928b<=0x5;}[_0x502a0f(0x203)](){const _0x286d7b=_0x502a0f;this[_0x286d7b(0x1f5)]&&(this[_0x286d7b(0x20a)]||this[_0x286d7b(0x1e4)][_0x286d7b(0x1ea)]({'top':this[_0x286d7b(0x1e4)][_0x286d7b(0x1f4)],'behavior':_0x286d7b(0x1e9)}),this[_0x286d7b(0x1ee)]=requestAnimationFrame(this[_0x286d7b(0x203)][_0x286d7b(0x20b)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3c307a=_0x1675;(function(_0x397506,_0x401896){var _0x576f19=_0x1675,_0x1476eb=_0x397506();while(!![]){try{var _0x1b8089=parseInt(_0x576f19(0x1d1))/0x1+-parseInt(_0x576f19(0x1d7))/0x2+-parseInt(_0x576f19(0x1d9))/0x3+-parseInt(_0x576f19(0x1ce))/0x4*(-parseInt(_0x576f19(0x1d6))/0x5)+-parseInt(_0x576f19(0x1d2))/0x6*(-parseInt(_0x576f19(0x1d0))/0x7)+parseInt(_0x576f19(0x1db))/0x8+-parseInt(_0x576f19(0x1d4))/0x9;if(_0x1b8089===_0x401896)break;else _0x1476eb['push'](_0x1476eb['shift']());}catch(_0xa2a61f){_0x1476eb['push'](_0x1476eb['shift']());}}}(_0x402a,0x1b9c9));function _0x402a(){var _0x52f13c=['pluginName','1073672CBxBhG','142684VvsbHA','isPremiumPlugin','14kgnyVo','143688ixRvGx','636534kHGMUc','requires','281952wMVxVM','isOfficialPlugin','5HDSVre','387068RjSeqv','AIChatHistory','563361GRRnqC'];_0x402a=function(){return _0x52f13c;};return _0x402a();}import{ContextPlugin as _0xed26df}from'ckeditor5/src/core.js';function _0x1675(_0x597eab,_0x302de7){var _0x402a6c=_0x402a();return _0x1675=function(_0x16753b,_0x3630d4){_0x16753b=_0x16753b-0x1ce;var _0x5bfcd6=_0x402a6c[_0x16753b];return _0x5bfcd6;},_0x1675(_0x597eab,_0x302de7);}import{AIChatHistoryController as _0x526f86}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x371bcc}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0xed26df{static get[_0x3c307a(0x1d3)](){return[_0x526f86,_0x371bcc];}static get[_0x3c307a(0x1da)](){var _0x16eb02=_0x3c307a;return _0x16eb02(0x1d8);}static get[_0x3c307a(0x1d5)](){return!0x0;}static get[_0x3c307a(0x1cf)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3bb777=_0x17a5;(function(_0x26edbf,_0x23429c){const _0x2285b3=_0x17a5,_0x2ef61f=_0x26edbf();while(!![]){try{const _0x4ab58a=parseInt(_0x2285b3(0x137))/0x1+parseInt(_0x2285b3(0x123))/0x2+parseInt(_0x2285b3(0xdd))/0x3+-parseInt(_0x2285b3(0x126))/0x4*(parseInt(_0x2285b3(0x11d))/0x5)+-parseInt(_0x2285b3(0xf5))/0x6+parseInt(_0x2285b3(0xd9))/0x7*(parseInt(_0x2285b3(0x106))/0x8)+-parseInt(_0x2285b3(0x11f))/0x9;if(_0x4ab58a===_0x23429c)break;else _0x2ef61f['push'](_0x2ef61f['shift']());}catch(_0x186f66){_0x2ef61f['push'](_0x2ef61f['shift']());}}}(_0x76e5,0x6a813));import{ContextPlugin as _0x2d3c76}from'ckeditor5/src/core.js';import{AIConnector as _0x5b6869}from'../aicore/aiconnector.js';function _0x76e5(){const _0x34eea6=['history','updateItemTitle','updates','getDate','view','309883VrVdUU','AIChatHistoryController','setIsMaximized','itemsLoaded','1863813sfPhDc','activeConversation','AI_CHAT_HISTORY_UNPIN_ACTION','editConversationTitle','itemUpdated','_updateHistoryItemsUI','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','_handleSelectConversation','setConversationPinned','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','length','_generateErrorMessage','selectConversation','removeConversation','showError','itemRemoved','removeHistoryItem','itemId','push','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','operation','updateItemLoadingState','loadConversation','_clearItemLoading','387924Fxznsi','resizedTabs','activateTab:history','createdAt','resize','AI_CHAT_HISTORY_CATEGORY_TODAY','pin','AI_CHAT_HISTORY_PIN_ACTION','isOfficialPlugin','getMonth','unpin','listenTo','_handleHistoryErrorUI','handleRemovedConversation','_aiConnector','getFullYear','_setItemLoading','24qRYVSE','getItems','context','requires','updateItemPinned','setLoadingSkeleton','updateItems','_showConversationHistory','remove','plugins','_aiChatHistoryUi','_aiChatController','AI_CHAT_HISTORY_CATEGORY_LATER','change:activeConversation','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','init','removeItem','_handleTogglePin','get','locale','AI_CHAT_UNTITLED_CONVERSATION','rename','chat','115DWASpH','map','9044028ABrDjd','AI_CHAT_HISTORY_CATEGORY_PINNED','loadItems','resizeTabs','700856NqIZkb','_getCategorizedItems','getItem','16892aYqCdG','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','openChat','_handleEditTitle','setDate','title','_handleRemove','error','pinned','activateTab','_setIsMaximized','isPremiumPlugin','items','getGroupId','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','pluginName','toLocaleDateString','498412dWPHxo','AI_CHAT_HISTORY_ERROR_GENERIC'];_0x76e5=function(){return _0x34eea6;};return _0x76e5();}function _0x17a5(_0x507f8e,_0x387393){const _0x76e581=_0x76e5();return _0x17a5=function(_0x17a513,_0x536410){_0x17a513=_0x17a513-0xd9;let _0x16525c=_0x76e581[_0x17a513];return _0x16525c;},_0x17a5(_0x507f8e,_0x387393);}import{AIChatController as _0x3ff63d}from'../aichat/aichatcontroller.js';import{AITabs as _0x2dc193}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x24a0d5}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x18290a}from'./model/aichathistoryconversations.js';import{getTranslation as _0x2c5fd4}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x2d3c76{[_0x3bb777(0x103)];[_0x3bb777(0x110)];[_0x3bb777(0x111)];static get[_0x3bb777(0x109)](){return[_0x5b6869,_0x3ff63d,_0x24a0d5,_0x2dc193];}static get[_0x3bb777(0x135)](){const _0x3e42cb=_0x3bb777;return _0x3e42cb(0xda);}static get[_0x3bb777(0xfd)](){return!0x0;}static get[_0x3bb777(0x131)](){return!0x0;}[_0x3bb777(0x115)](){const _0x50dd2a=_0x3bb777;this[_0x50dd2a(0x103)]=this[_0x50dd2a(0x108)][_0x50dd2a(0x10f)][_0x50dd2a(0x118)](_0x5b6869),this[_0x50dd2a(0x110)]=this[_0x50dd2a(0x108)][_0x50dd2a(0x10f)][_0x50dd2a(0x118)](_0x24a0d5),this[_0x50dd2a(0x111)]=this[_0x50dd2a(0x108)][_0x50dd2a(0x10f)][_0x50dd2a(0x118)](_0x3ff63d);const _0x204c93=this[_0x50dd2a(0x108)][_0x50dd2a(0x10f)][_0x50dd2a(0x118)](_0x2dc193),_0x443769=this[_0x50dd2a(0x111)][_0x50dd2a(0x133)]();this[_0x50dd2a(0x139)]=new _0x18290a({'connector':this[_0x50dd2a(0x103)],'group':_0x443769}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x110)],_0x50dd2a(0xea),(_0x3d2fcb,_0x4c120c)=>{const _0x56fa5b=_0x50dd2a;this[_0x56fa5b(0x105)](_0x4c120c['id'],_0x56fa5b(0x10e)),this[_0x56fa5b(0x12c)](_0x4c120c['id']);}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x110)],_0x50dd2a(0xe0),(_0x5d3df1,_0x43ab6d)=>{const _0x2656f8=_0x50dd2a;this[_0x2656f8(0x105)](_0x43ab6d['id'],_0x2656f8(0x11b)),this[_0x2656f8(0x129)](_0x43ab6d['id'],_0x43ab6d[_0x2656f8(0x12b)]);}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x139)],_0x50dd2a(0xe1),(_0x4a557c,_0x49cf2c)=>{const _0x2e2430=_0x50dd2a;void 0x0!==_0x49cf2c[_0x2e2430(0x13b)][_0x2e2430(0x12b)]&&this[_0x2e2430(0x110)][_0x2e2430(0x13a)](_0x49cf2c[_0x2e2430(0xee)],_0x49cf2c[_0x2e2430(0x13b)][_0x2e2430(0x12b)]),void 0x0!==_0x49cf2c[_0x2e2430(0x13b)][_0x2e2430(0x12e)]&&this[_0x2e2430(0xe2)](),this[_0x2e2430(0xf4)](_0x49cf2c[_0x2e2430(0xee)]);}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x139)],_0x50dd2a(0xec),(_0x2e6b54,_0x2d2340)=>{const _0x192f1b=_0x50dd2a;this[_0x192f1b(0x111)][_0x192f1b(0x102)](_0x2d2340[_0x192f1b(0xee)]),this[_0x192f1b(0x110)][_0x192f1b(0xed)](_0x2d2340[_0x192f1b(0xee)]),this[_0x192f1b(0xf4)](_0x2d2340[_0x192f1b(0xee)]);}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x139)],_0x50dd2a(0xdc),()=>{const _0x61dfb8=_0x50dd2a;this[_0x61dfb8(0xe2)]();}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x139)],_0x50dd2a(0x12d),(_0x1fb5e7,_0x2d2bcc)=>{const _0x1a728a=_0x50dd2a;this[_0x1a728a(0x101)](_0x2d2bcc[_0x1a728a(0x12d)],_0x2d2bcc[_0x1a728a(0xf1)],_0x2d2bcc[_0x1a728a(0xee)]);}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x110)],_0x50dd2a(0xe9),(_0x48845d,_0x2d8fb5)=>{const _0x15c0d4=_0x50dd2a;this[_0x15c0d4(0xe4)](_0x2d8fb5['id']);}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x110)],_0x50dd2a(0xe5),(_0x37c903,_0x5db82e)=>{const _0x39dd70=_0x50dd2a,_0x15b069=_0x5db82e[_0x39dd70(0x12e)]?_0x39dd70(0xfb):_0x39dd70(0xff);this[_0x39dd70(0x105)](_0x5db82e['id'],_0x15b069),this[_0x39dd70(0x117)](_0x5db82e['id'],_0x5db82e[_0x39dd70(0x12e)]);}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x110)],_0x50dd2a(0x128),()=>{const _0x56d9ad=_0x50dd2a;_0x204c93[_0x56d9ad(0x13d)][_0x56d9ad(0x12f)](_0x56d9ad(0x11c));}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x111)],_0x50dd2a(0x113),()=>{const _0x3c7523=_0x50dd2a;this[_0x3c7523(0xe2)]();}),_0x204c93[_0x50dd2a(0x13d)]['on'](_0x50dd2a(0xf7),()=>{const _0x117e9c=_0x50dd2a;this[_0x117e9c(0x10d)]();}),this[_0x50dd2a(0x100)](_0x204c93,_0x50dd2a(0xf6),(_0x57b44c,_0x1850c9)=>{const _0x39d8ec=_0x50dd2a;this[_0x39d8ec(0x130)](_0x1850c9);}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x110)],_0x50dd2a(0x122),()=>{const _0x65b003=_0x50dd2a;_0x204c93[_0x65b003(0xf9)]();});}async[_0x3bb777(0x129)](_0xb841a4,_0x332975){const _0x58bab3=_0x3bb777;await this[_0x58bab3(0x139)][_0x58bab3(0x13a)](_0xb841a4,_0x332975);}async[_0x3bb777(0x117)](_0x2ff466,_0x166f17){const _0x1eb635=_0x3bb777;await this[_0x1eb635(0x139)][_0x1eb635(0x10a)](_0x2ff466,_0x166f17);}async[_0x3bb777(0x12c)](_0xafb7de){const _0xfe62e3=_0x3bb777;await this[_0xfe62e3(0x139)][_0xfe62e3(0x116)](_0xafb7de);}async[_0x3bb777(0xe4)](_0x53499b){const _0x13d44d=_0x3bb777;await this[_0x13d44d(0x111)][_0x13d44d(0xf3)](_0x53499b);}async[_0x3bb777(0x10d)](){const _0xb2f575=_0x3bb777;this[_0xb2f575(0x110)][_0xb2f575(0xeb)](''),this[_0xb2f575(0x110)][_0xb2f575(0x10b)](!0x0),await this[_0xb2f575(0x139)][_0xb2f575(0x115)](),this[_0xb2f575(0x110)][_0xb2f575(0x10b)](!0x1);}[_0x3bb777(0xe2)](){const _0x4d28a2=_0x3bb777,_0x45a70f=this[_0x4d28a2(0x111)][_0x4d28a2(0xde)]?.['id'],_0x283107=this[_0x4d28a2(0x124)]()[_0x4d28a2(0x11e)](_0x3d26f2=>({'title':_0x3d26f2[_0x4d28a2(0x12b)],'items':_0x3d26f2[_0x4d28a2(0x132)][_0x4d28a2(0x11e)](_0x26c02b=>({'id':_0x26c02b['id'],'title':_0x26c02b[_0x4d28a2(0x12b)]||_0x2c5fd4(this[_0x4d28a2(0x108)][_0x4d28a2(0x119)],_0x4d28a2(0x11a)),'createdAt':new Date(_0x26c02b[_0x4d28a2(0xf8)])[_0x4d28a2(0x136)](),'active':_0x26c02b['id']===_0x45a70f,'pinned':_0x26c02b[_0x4d28a2(0x12e)]}))}));this[_0x4d28a2(0x110)][_0x4d28a2(0x10c)](_0x283107);}[_0x3bb777(0x105)](_0x2c37cb,_0x59722f){const _0x1bf24b=_0x3bb777;this[_0x1bf24b(0x110)][_0x1bf24b(0xf2)](_0x2c37cb,_0x59722f,!0x0);}[_0x3bb777(0xf4)](_0x495a5e){const _0x5d2e99=_0x3bb777;this[_0x5d2e99(0x110)][_0x5d2e99(0xf2)](_0x495a5e,null,!0x1);}[_0x3bb777(0x101)](_0x531615,_0x2eb4c6,_0x54b265){const _0x2a64b3=_0x3bb777,_0x527459=this[_0x2a64b3(0xe8)](_0x2eb4c6,_0x54b265);this[_0x2a64b3(0x110)][_0x2a64b3(0xeb)](_0x527459),_0x54b265&&this[_0x2a64b3(0xf4)](_0x54b265),this[_0x2a64b3(0x110)][_0x2a64b3(0x10b)](!0x1);}[_0x3bb777(0xe8)](_0x16afb9,_0x6641ca){const _0x34fa2c=_0x3bb777,_0x3f8329=_0x6641ca?this[_0x34fa2c(0x139)][_0x34fa2c(0x125)](_0x6641ca):null,_0x408804=_0x3f8329?.[_0x34fa2c(0x12b)]||_0x2c5fd4(this[_0x34fa2c(0x108)][_0x34fa2c(0x119)],_0x34fa2c(0x11a));switch(_0x16afb9){case _0x34fa2c(0x13a):return _0x2c5fd4(this[_0x34fa2c(0x108)][_0x34fa2c(0x119)],_0x34fa2c(0x114),_0x408804);case _0x34fa2c(0x10a):{const _0x3fda50=_0x2c5fd4(this[_0x34fa2c(0x108)][_0x34fa2c(0x119)],_0x3f8329?.[_0x34fa2c(0x12e)]?_0x34fa2c(0xdf):_0x34fa2c(0xfc));return _0x2c5fd4(this[_0x34fa2c(0x108)][_0x34fa2c(0x119)],_0x34fa2c(0x127),[_0x3fda50,_0x408804]);}case _0x34fa2c(0x116):return _0x2c5fd4(this[_0x34fa2c(0x108)][_0x34fa2c(0x119)],_0x34fa2c(0xe6),_0x408804);case _0x34fa2c(0x115):case _0x34fa2c(0x121):return _0x2c5fd4(this[_0x34fa2c(0x108)][_0x34fa2c(0x119)],_0x34fa2c(0xf0));default:return _0x2c5fd4(this[_0x34fa2c(0x108)][_0x34fa2c(0x119)],_0x34fa2c(0x138));}}[_0x3bb777(0x124)](){const _0x2c8895=_0x3bb777,_0x2a0bcb=new Date(),_0x32cdf7=new Date(_0x2a0bcb[_0x2c8895(0x104)](),_0x2a0bcb[_0x2c8895(0xfe)](),_0x2a0bcb[_0x2c8895(0x13c)]()),_0x54a3a5=new Date(_0x32cdf7);_0x54a3a5[_0x2c8895(0x12a)](_0x54a3a5[_0x2c8895(0x13c)]()-0x1);const _0x47d2aa=new Date(_0x32cdf7);_0x47d2aa[_0x2c8895(0x12a)](_0x47d2aa[_0x2c8895(0x13c)]()-0xe);const _0x56009b=this[_0x2c8895(0x139)][_0x2c8895(0x107)]({'pinned':!0x0}),_0x186092=this[_0x2c8895(0x139)][_0x2c8895(0x107)]({'from':_0x32cdf7,'to':_0x32cdf7}),_0x1ffabd=this[_0x2c8895(0x139)][_0x2c8895(0x107)]({'from':_0x54a3a5,'to':_0x54a3a5}),_0x3ce56e=this[_0x2c8895(0x139)][_0x2c8895(0x107)]({'from':_0x47d2aa,'to':_0x54a3a5}),_0x477d06=this[_0x2c8895(0x139)][_0x2c8895(0x107)]({'to':_0x47d2aa}),_0x18e436=[];return _0x56009b[_0x2c8895(0xe7)]>0x0&&_0x18e436[_0x2c8895(0xef)]({'title':_0x2c5fd4(this[_0x2c8895(0x108)][_0x2c8895(0x119)],_0x2c8895(0x120)),'items':_0x56009b}),_0x186092[_0x2c8895(0xe7)]>0x0&&_0x18e436[_0x2c8895(0xef)]({'title':_0x2c5fd4(this[_0x2c8895(0x108)][_0x2c8895(0x119)],_0x2c8895(0xfa)),'items':_0x186092}),_0x1ffabd[_0x2c8895(0xe7)]>0x0&&_0x18e436[_0x2c8895(0xef)]({'title':_0x2c5fd4(this[_0x2c8895(0x108)][_0x2c8895(0x119)],_0x2c8895(0x134)),'items':_0x1ffabd}),_0x3ce56e[_0x2c8895(0xe7)]>0x0&&_0x18e436[_0x2c8895(0xef)]({'title':_0x2c5fd4(this[_0x2c8895(0x108)][_0x2c8895(0x119)],_0x2c8895(0xe3)),'items':_0x3ce56e}),_0x477d06[_0x2c8895(0xe7)]>0x0&&_0x18e436[_0x2c8895(0xef)]({'title':_0x2c5fd4(this[_0x2c8895(0x108)][_0x2c8895(0x119)],_0x2c8895(0x112)),'items':_0x477d06}),_0x18e436;}[_0x3bb777(0x130)](_0x5bd8b4){const _0x23189c=_0x3bb777;this[_0x23189c(0x110)][_0x23189c(0xdb)](_0x5bd8b4);}}
|
|
23
|
+
const _0x26ff02=_0xefa6;(function(_0x47effa,_0x1dbf06){const _0x80e1c=_0xefa6,_0x1fbd2f=_0x47effa();while(!![]){try{const _0x5b9c64=-parseInt(_0x80e1c(0x180))/0x1+parseInt(_0x80e1c(0x146))/0x2+parseInt(_0x80e1c(0x18f))/0x3+-parseInt(_0x80e1c(0x173))/0x4*(-parseInt(_0x80e1c(0x179))/0x5)+parseInt(_0x80e1c(0x150))/0x6+parseInt(_0x80e1c(0x18d))/0x7+-parseInt(_0x80e1c(0x192))/0x8;if(_0x5b9c64===_0x1dbf06)break;else _0x1fbd2f['push'](_0x1fbd2f['shift']());}catch(_0x2052af){_0x1fbd2f['push'](_0x1fbd2f['shift']());}}}(_0x1642,0x97223));import{ContextPlugin as _0x465f46}from'ckeditor5/src/core.js';import{AIConnector as _0x31ed61}from'../aicore/aiconnector.js';import{AIChatController as _0x1332b7}from'../aichat/aichatcontroller.js';import{AITabs as _0x5dd48c}from'../aitabs/aitabs.js';function _0x1642(){const _0x9de2b6=['itemUpdated','AIChatHistoryController','rename','_setIsMaximized','AI_CHAT_HISTORY_UNPIN_ACTION','updateItems','getItem','setLoadingSkeleton','loadItems','_aiConnector','_updateHistoryItemsUI','removeHistoryItem','updateItemTitle','push','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','updates','length','view','pin','resize','operation','get','AI_CHAT_HISTORY_CATEGORY_TODAY','itemId','updateItemLoadingState','setConversationPinned','4dXbskk','resizeTabs','pluginName','setDate','_handleEditTitle','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','1963690yfsYfH','items','_handleTogglePin','pinned','removeConversation','plugins','resizedTabs','735976RJUSRY','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','unpin','_handleHistoryErrorUI','activateTab','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','_showConversationHistory','itemsLoaded','getMonth','setIsMaximized','openChat','updateItemPinned','_aiChatHistoryUi','926604ikfPGD','handleRemovedConversation','3073641DWsAIh','_handleSelectConversation','itemRemoved','18514176vRLBLd','createdAt','_clearItemLoading','init','activateTab:history','_generateErrorMessage','chat','getDate','editConversationTitle','AI_CHAT_UNTITLED_CONVERSATION','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','remove','context','history','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','listenTo','AI_CHAT_HISTORY_CATEGORY_PINNED','removeItem','error','_aiChatController','AI_CHAT_HISTORY_CATEGORY_LATER','change:activeConversation','activeConversation','requires','2019056EIyWQP','locale','getItems','loadConversation','_handleRemove','isPremiumPlugin','isOfficialPlugin','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_HISTORY_ERROR_GENERIC','selectConversation','6660636BXTYaT','map','_getCategorizedItems','_setItemLoading','toLocaleDateString','getFullYear','title','showError','getGroupId'];_0x1642=function(){return _0x9de2b6;};return _0x1642();}import{AIChatHistoryUI as _0x550075}from'./aichathistoryui.js';function _0xefa6(_0x1d582c,_0x4fedb8){const _0x164298=_0x1642();return _0xefa6=function(_0xefa6e5,_0xfc1e71){_0xefa6e5=_0xefa6e5-0x146;let _0x25d033=_0x164298[_0xefa6e5];return _0x25d033;},_0xefa6(_0x1d582c,_0x4fedb8);}import{AIChatHistoryConversations as _0xebc9a1}from'./model/aichathistoryconversations.js';import{getTranslation as _0x6a4575}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x465f46{[_0x26ff02(0x162)];[_0x26ff02(0x18c)];[_0x26ff02(0x1a5)];static get[_0x26ff02(0x1a9)](){return[_0x31ed61,_0x1332b7,_0x550075,_0x5dd48c];}static get[_0x26ff02(0x175)](){const _0x35958b=_0x26ff02;return _0x35958b(0x15a);}static get[_0x26ff02(0x14c)](){return!0x0;}static get[_0x26ff02(0x14b)](){return!0x0;}[_0x26ff02(0x195)](){const _0x34492c=_0x26ff02;this[_0x34492c(0x162)]=this[_0x34492c(0x19e)][_0x34492c(0x17e)][_0x34492c(0x16e)](_0x31ed61),this[_0x34492c(0x18c)]=this[_0x34492c(0x19e)][_0x34492c(0x17e)][_0x34492c(0x16e)](_0x550075),this[_0x34492c(0x1a5)]=this[_0x34492c(0x19e)][_0x34492c(0x17e)][_0x34492c(0x16e)](_0x1332b7);const _0x38a1e8=this[_0x34492c(0x19e)][_0x34492c(0x17e)][_0x34492c(0x16e)](_0x5dd48c),_0x2a50f7=this[_0x34492c(0x1a5)][_0x34492c(0x158)]();this[_0x34492c(0x19f)]=new _0xebc9a1({'connector':this[_0x34492c(0x162)],'group':_0x2a50f7}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x17d),(_0x2578f8,_0x49d1b4)=>{const _0x24e470=_0x34492c;this[_0x24e470(0x153)](_0x49d1b4['id'],_0x24e470(0x19d)),this[_0x24e470(0x14a)](_0x49d1b4['id']);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x19a),(_0x12a136,_0x1abee1)=>{const _0x2abc3d=_0x34492c;this[_0x2abc3d(0x153)](_0x1abee1['id'],_0x2abc3d(0x15b)),this[_0x2abc3d(0x177)](_0x1abee1['id'],_0x1abee1[_0x2abc3d(0x156)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x19f)],_0x34492c(0x159),(_0x2e0272,_0x1a49e2)=>{const _0x16431a=_0x34492c;void 0x0!==_0x1a49e2[_0x16431a(0x168)][_0x16431a(0x156)]&&this[_0x16431a(0x18c)][_0x16431a(0x165)](_0x1a49e2[_0x16431a(0x170)],_0x1a49e2[_0x16431a(0x168)][_0x16431a(0x156)]),void 0x0!==_0x1a49e2[_0x16431a(0x168)][_0x16431a(0x17c)]&&this[_0x16431a(0x163)](),this[_0x16431a(0x194)](_0x1a49e2[_0x16431a(0x170)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x19f)],_0x34492c(0x191),(_0x246934,_0x4edfe5)=>{const _0x41726e=_0x34492c;this[_0x41726e(0x1a5)][_0x41726e(0x18e)](_0x4edfe5[_0x41726e(0x170)]),this[_0x41726e(0x18c)][_0x41726e(0x164)](_0x4edfe5[_0x41726e(0x170)]),this[_0x41726e(0x194)](_0x4edfe5[_0x41726e(0x170)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x19f)],_0x34492c(0x187),()=>{const _0x4bbf05=_0x34492c;this[_0x4bbf05(0x163)]();}),this[_0x34492c(0x1a1)](this[_0x34492c(0x19f)],_0x34492c(0x1a4),(_0x1aaf19,_0x56dab8)=>{const _0x47412c=_0x34492c;this[_0x47412c(0x183)](_0x56dab8[_0x47412c(0x1a4)],_0x56dab8[_0x47412c(0x16d)],_0x56dab8[_0x47412c(0x170)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x14f),(_0x124f0c,_0x1fd148)=>{const _0x8979df=_0x34492c;this[_0x8979df(0x190)](_0x1fd148['id']);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x172),(_0x3c43b9,_0x561613)=>{const _0x2a9102=_0x34492c,_0xee5a05=_0x561613[_0x2a9102(0x17c)]?_0x2a9102(0x16b):_0x2a9102(0x182);this[_0x2a9102(0x153)](_0x561613['id'],_0xee5a05),this[_0x2a9102(0x17b)](_0x561613['id'],_0x561613[_0x2a9102(0x17c)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x18a),()=>{const _0x244cde=_0x34492c;_0x38a1e8[_0x244cde(0x16a)][_0x244cde(0x184)](_0x244cde(0x198));}),this[_0x34492c(0x1a1)](this[_0x34492c(0x1a5)],_0x34492c(0x1a7),()=>{const _0x14fff8=_0x34492c;this[_0x14fff8(0x163)]();}),_0x38a1e8[_0x34492c(0x16a)]['on'](_0x34492c(0x196),()=>{const _0x519e26=_0x34492c;this[_0x519e26(0x186)]();}),this[_0x34492c(0x1a1)](_0x38a1e8,_0x34492c(0x17f),(_0x5cd596,_0x52ce83)=>{const _0x54c718=_0x34492c;this[_0x54c718(0x15c)](_0x52ce83);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x174),()=>{const _0xf74fb5=_0x34492c;_0x38a1e8[_0xf74fb5(0x16c)]();});}async[_0x26ff02(0x177)](_0x39a77a,_0x5cefa3){const _0x2d71f3=_0x26ff02;await this[_0x2d71f3(0x19f)][_0x2d71f3(0x165)](_0x39a77a,_0x5cefa3);}async[_0x26ff02(0x17b)](_0x51a546,_0x4d6f3b){const _0x58e057=_0x26ff02;await this[_0x58e057(0x19f)][_0x58e057(0x18b)](_0x51a546,_0x4d6f3b);}async[_0x26ff02(0x14a)](_0x431bc4){const _0x2e6be1=_0x26ff02;await this[_0x2e6be1(0x19f)][_0x2e6be1(0x1a3)](_0x431bc4);}async[_0x26ff02(0x190)](_0xc0a1e5){const _0x1e627c=_0x26ff02;await this[_0x1e627c(0x1a5)][_0x1e627c(0x149)](_0xc0a1e5);}async[_0x26ff02(0x186)](){const _0x1b94ac=_0x26ff02;this[_0x1b94ac(0x18c)][_0x1b94ac(0x157)](''),this[_0x1b94ac(0x18c)][_0x1b94ac(0x160)](!0x0),await this[_0x1b94ac(0x19f)][_0x1b94ac(0x195)](),this[_0x1b94ac(0x18c)][_0x1b94ac(0x160)](!0x1);}[_0x26ff02(0x163)](){const _0x10d13e=_0x26ff02,_0x541a46=this[_0x10d13e(0x1a5)][_0x10d13e(0x1a8)]?.['id'],_0x1f9838=this[_0x10d13e(0x152)]()[_0x10d13e(0x151)](_0x1e0548=>({'title':_0x1e0548[_0x10d13e(0x156)],'items':_0x1e0548[_0x10d13e(0x17a)][_0x10d13e(0x151)](_0x10bf0e=>({'id':_0x10bf0e['id'],'title':_0x10bf0e[_0x10d13e(0x156)]||_0x6a4575(this[_0x10d13e(0x19e)][_0x10d13e(0x147)],_0x10d13e(0x19b)),'createdAt':new Date(_0x10bf0e[_0x10d13e(0x193)])[_0x10d13e(0x154)](),'active':_0x10bf0e['id']===_0x541a46,'pinned':_0x10bf0e[_0x10d13e(0x17c)]}))}));this[_0x10d13e(0x18c)][_0x10d13e(0x15e)](_0x1f9838);}[_0x26ff02(0x153)](_0x25a3ec,_0x5ca4fe){const _0x1ed475=_0x26ff02;this[_0x1ed475(0x18c)][_0x1ed475(0x171)](_0x25a3ec,_0x5ca4fe,!0x0);}[_0x26ff02(0x194)](_0x5dc68f){const _0x4d3968=_0x26ff02;this[_0x4d3968(0x18c)][_0x4d3968(0x171)](_0x5dc68f,null,!0x1);}[_0x26ff02(0x183)](_0x5c31f6,_0x1d79ff,_0x7b2cab){const _0x451051=_0x26ff02,_0x34fcd2=this[_0x451051(0x197)](_0x1d79ff,_0x7b2cab);this[_0x451051(0x18c)][_0x451051(0x157)](_0x34fcd2),_0x7b2cab&&this[_0x451051(0x194)](_0x7b2cab),this[_0x451051(0x18c)][_0x451051(0x160)](!0x1);}[_0x26ff02(0x197)](_0x5e4d7e,_0x56b4d5){const _0xb2b71a=_0x26ff02,_0xf9dbcc=_0x56b4d5?this[_0xb2b71a(0x19f)][_0xb2b71a(0x15f)](_0x56b4d5):null,_0x40cbed=_0xf9dbcc?.[_0xb2b71a(0x156)]||_0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x19b));switch(_0x5e4d7e){case _0xb2b71a(0x165):return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x1a0),_0x40cbed);case _0xb2b71a(0x18b):{const _0x16ca61=_0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xf9dbcc?.[_0xb2b71a(0x17c)]?_0xb2b71a(0x15d):_0xb2b71a(0x14d));return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x167),[_0x16ca61,_0x40cbed]);}case _0xb2b71a(0x1a3):return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x181),_0x40cbed);case _0xb2b71a(0x195):case _0xb2b71a(0x161):return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x185));default:return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x14e));}}[_0x26ff02(0x152)](){const _0x4f1260=_0x26ff02,_0x4d5ac3=new Date(),_0x49ba20=new Date(_0x4d5ac3[_0x4f1260(0x155)](),_0x4d5ac3[_0x4f1260(0x188)](),_0x4d5ac3[_0x4f1260(0x199)]()),_0x40641f=new Date(_0x49ba20);_0x40641f[_0x4f1260(0x176)](_0x40641f[_0x4f1260(0x199)]()-0x1);const _0x5370d9=new Date(_0x49ba20);_0x5370d9[_0x4f1260(0x176)](_0x5370d9[_0x4f1260(0x199)]()-0xe);const _0xb723b=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'pinned':!0x0}),_0x8589c4=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'from':_0x49ba20,'to':_0x49ba20}),_0x1d8285=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'from':_0x40641f,'to':_0x40641f}),_0x2592fb=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'from':_0x5370d9,'to':_0x40641f}),_0x2cfd4c=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'to':_0x5370d9}),_0x3c1a9a=[];return _0xb723b[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x1a2)),'items':_0xb723b}),_0x8589c4[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x16f)),'items':_0x8589c4}),_0x1d8285[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x19c)),'items':_0x1d8285}),_0x2592fb[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x178)),'items':_0x2592fb}),_0x2cfd4c[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x1a6)),'items':_0x2cfd4c}),_0x3c1a9a;}[_0x26ff02(0x15c)](_0x280735){const _0x1d4df5=_0x26ff02;this[_0x1d4df5(0x18c)][_0x1d4df5(0x189)](_0x280735);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d0d1b=_0xc984;(function(_0x52afaf,_0x20ecb4){const _0x1cdbc3=_0xc984,_0x4edd0b=_0x52afaf();while(!![]){try{const _0x4d311f=parseInt(_0x1cdbc3(0x1c1))/0x1*(-parseInt(_0x1cdbc3(0x1c9))/0x2)+-parseInt(_0x1cdbc3(0x1ce))/0x3+-parseInt(_0x1cdbc3(0x1b3))/0x4+-parseInt(_0x1cdbc3(0x1c8))/0x5*(-parseInt(_0x1cdbc3(0x1b1))/0x6)+-parseInt(_0x1cdbc3(0x1b5))/0x7*(-parseInt(_0x1cdbc3(0x1b8))/0x8)+-parseInt(_0x1cdbc3(0x1d4))/0x9+parseInt(_0x1cdbc3(0x1d8))/0xa*(parseInt(_0x1cdbc3(0x1d0))/0xb);if(_0x4d311f===_0x20ecb4)break;else _0x4edd0b['push'](_0x4edd0b['shift']());}catch(_0x21fe44){_0x4edd0b['push'](_0x4edd0b['shift']());}}}(_0x235f,0xcb483));import{ContextPlugin as _0x1161b2}from'ckeditor5/src/core.js';function _0xc984(_0x473760,_0x24d72f){const _0x235fd5=_0x235f();return _0xc984=function(_0xc98493,_0x1155c8){_0xc98493=_0xc98493-0x1b0;let _0x503d72=_0x235fd5[_0xc98493];return _0x503d72;},_0xc984(_0x473760,_0x24d72f);}import{AITabs as _0x3f729d}from'../aitabs/aitabs.js';import{IconAIHistory as _0x3d6fca}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x162d9f}from'./ui/aichathistoryview.js';import{getTranslation as _0x25a04f}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x3d0d1b(0x1c0),_0x3d0d1b(0x1c5),_0x3d0d1b(0x1bb),_0x3d0d1b(0x1da),_0x3d0d1b(0x1b2),_0x3d0d1b(0x1b6),_0x3d0d1b(0x1bd)];export class AIChatHistoryUI extends _0x1161b2{static get[_0x3d0d1b(0x1cd)](){return[_0x3f729d];}[_0x3d0d1b(0x1d5)];static get[_0x3d0d1b(0x1dd)](){const _0x4c36ba=_0x3d0d1b;return _0x4c36ba(0x1de);}static get[_0x3d0d1b(0x1b0)](){return!0x0;}static get[_0x3d0d1b(0x1cb)](){return!0x0;}constructor(_0x24a312){const _0x44262=_0x3d0d1b;super(_0x24a312);const _0x287fba=this[_0x44262(0x1b7)][_0x44262(0x1be)][_0x44262(0x1ca)](_0x44262(0x1d7));this[_0x44262(0x1d5)]=new _0x162d9f(this[_0x44262(0x1b7)][_0x44262(0x1b4)],_0x287fba[_0x44262(0x1ba)]),this[_0x44262(0x1d5)][_0x44262(0x1d2)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x287fba[_0x44262(0x1cc)][_0x44262(0x1c6)]({'id':_0x44262(0x1db),'buttonLabel':_0x25a04f(this[_0x44262(0x1b7)][_0x44262(0x1b4)],_0x44262(0x1cf)),'buttonIcon':_0x3d6fca,'order':0x0,'content':this[_0x44262(0x1d5)]});}[_0x3d0d1b(0x1d3)](_0x4b9d28){const _0x1099ea=_0x3d0d1b;this[_0x1099ea(0x1d5)][_0x1099ea(0x1d3)](_0x4b9d28);}[_0x3d0d1b(0x1c7)](_0x2b4f6d){const _0x2c6337=_0x3d0d1b;this[_0x2c6337(0x1d5)][_0x2c6337(0x1d9)](_0x2b4f6d);}[_0x3d0d1b(0x1b9)](_0x2ed138,_0x378488){const _0xb4d390=_0x3d0d1b;this[_0xb4d390(0x1d5)][_0xb4d390(0x1b9)](_0x2ed138,_0x378488);}[_0x3d0d1b(0x1d6)](_0x3d7368,_0x3132c1,_0x2ceb33){const _0x2dd3c7=_0x3d0d1b;this[_0x2dd3c7(0x1d5)][_0x2dd3c7(0x1d6)](_0x3d7368,_0x3132c1,_0x2ceb33);}[_0x3d0d1b(0x1bc)](_0xde587e){const _0x173145=_0x3d0d1b;this[_0x173145(0x1d5)][_0x173145(0x1bf)]=_0xde587e;}[_0x3d0d1b(0x1c4)](_0x138e08){const _0x8fa188=_0x3d0d1b;this[_0x8fa188(0x1d5)][_0x8fa188(0x1c2)]=_0x138e08;}[_0x3d0d1b(0x1c3)](){const _0x279c86=_0x3d0d1b;this[_0x279c86(0x1d5)][_0x279c86(0x1c2)]='';}[_0x3d0d1b(0x1dc)](_0x1729ab){const _0x5252ac=_0x3d0d1b;this[_0x5252ac(0x1d5)][_0x5252ac(0x1d1)]=_0x1729ab;}}function _0x235f(){const _0x48ad32=['showConversationHistory','499epFZKP','errorMessage','hideError','showError','removeConversation','addTab','updateItems','25BQHtrx','6170uTViip','get','isPremiumPlugin','view','requires','1927884rZDENo','AI_CHAT_HISTORY_HEADING','319SZhrKx','isMaximized','delegate','removeHistoryItem','243999mcAGUN','_historyView','updateItemLoadingState','AITabs','1180390xRlFvg','updateHistoryItemsWithCategories','setConversationPinned','history','setIsMaximized','pluginName','AIChatHistoryUI','isOfficialPlugin','136326NscwwW','selectConversation','6099548QADjMw','locale','14ZWWrIa','openChat','context','4119792bOlivf','updateItemTitle','showResizeButton','editConversationTitle','setLoadingSkeleton','resizeTabs','plugins','isLoading'];_0x235f=function(){return _0x48ad32;};return _0x235f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x23d5(_0x199fdf,_0x59d21e){const _0x2610fb=_0x2610();return _0x23d5=function(_0x23d5c2,_0x184371){_0x23d5c2=_0x23d5c2-0x12b;let _0x4a7000=_0x2610fb[_0x23d5c2];return _0x4a7000;},_0x23d5(_0x199fdf,_0x59d21e);}const _0x2310ac=_0x23d5;(function(_0x5eecf9,_0x5071a7){const _0x1e1252=_0x23d5,_0x3dc659=_0x5eecf9();while(!![]){try{const _0x5a7c77=parseInt(_0x1e1252(0x133))/0x1+parseInt(_0x1e1252(0x137))/0x2+-parseInt(_0x1e1252(0x130))/0x3*(-parseInt(_0x1e1252(0x150))/0x4)+-parseInt(_0x1e1252(0x141))/0x5+parseInt(_0x1e1252(0x144))/0x6+-parseInt(_0x1e1252(0x13d))/0x7*(parseInt(_0x1e1252(0x159))/0x8)+parseInt(_0x1e1252(0x12f))/0x9*(-parseInt(_0x1e1252(0x13a))/0xa);if(_0x5a7c77===_0x5071a7)break;else _0x3dc659['push'](_0x3dc659['shift']());}catch(_0x33e9e0){_0x3dc659['push'](_0x3dc659['shift']());}}}(_0x2610,0xe2b8b));import{EmitterMixin as _0x123bd6}from'ckeditor5/src/utils.js';function _0x2610(){const _0x4424c2=['group','removeItem','itemsLoaded','updateConversation','connector','init','getItem','getMonth','find','map','loadItems','4GIgPSm','getDate','findIndex','getResult','getConversations','createdAt','pinned','error','itemRemoved','16KnGmMS','execute','splice','getItems','fetchConversations','68832xTVewc','1978401lEzYuH','itemUpdated','getFullYear','255049QkMFYO','updateItemTitle','updateTitle','items','3710492NYznEe','getTime','updateItemPinned','1600DITeUo','addItem','push','2319618wBzHYo','from','updatePinned','fire','8595020bfpwmR','deleteConversation','filter','10585926tfppye'];_0x2610=function(){return _0x4424c2;};return _0x2610();}import{AIChatHistoryItem as _0x9708ea}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x123bd6(){[_0x2310ac(0x136)]=[];[_0x2310ac(0x149)];[_0x2310ac(0x145)];constructor({connector:_0x8e5eae,group:_0x55d069}){const _0x103d89=_0x2310ac;super(),this[_0x103d89(0x149)]=_0x8e5eae,this[_0x103d89(0x145)]=_0x55d069;}async[_0x2310ac(0x14a)](){const _0x4c60fe=_0x2310ac;try{const _0x39868d=this[_0x4c60fe(0x149)][_0x4c60fe(0x12e)](this[_0x4c60fe(0x145)]),_0x58c6a1=await _0x39868d[_0x4c60fe(0x154)]();this[_0x4c60fe(0x14f)](_0x58c6a1);}catch(_0x2ecde0){this[_0x4c60fe(0x140)](_0x4c60fe(0x157),{'error':_0x2ecde0,'operation':_0x4c60fe(0x14a)});}}[_0x2310ac(0x13b)](_0x138615){const _0xc58899=_0x2310ac;this[_0xc58899(0x136)][_0xc58899(0x13c)](_0x138615);}async[_0x2310ac(0x146)](_0x31beb2){const _0x4f6aa6=_0x2310ac,_0x23c840=this[_0x4f6aa6(0x136)][_0x4f6aa6(0x152)](_0x461c0c=>_0x461c0c['id']===_0x31beb2);if(-0x1===_0x23c840)return!0x1;try{return await this[_0x4f6aa6(0x149)][_0x4f6aa6(0x142)](_0x31beb2)[_0x4f6aa6(0x12b)](),this[_0x4f6aa6(0x136)][_0x4f6aa6(0x12c)](_0x23c840,0x1),this[_0x4f6aa6(0x140)](_0x4f6aa6(0x158),{'itemId':_0x31beb2}),!0x0;}catch(_0x2b1d27){return this[_0x4f6aa6(0x140)](_0x4f6aa6(0x157),{'error':_0x2b1d27,'operation':_0x4f6aa6(0x146),'itemId':_0x31beb2}),!0x1;}}[_0x2310ac(0x14b)](_0x283620){const _0x1aa847=_0x2310ac;return this[_0x1aa847(0x136)][_0x1aa847(0x14d)](_0x4e2641=>_0x4e2641['id']===_0x283620);}async[_0x2310ac(0x134)](_0x4e26eb,_0x563e91){const _0x18bb2a=_0x2310ac,_0x2acb11=this[_0x18bb2a(0x14b)](_0x4e26eb);if(!_0x2acb11)return!0x1;try{return await this[_0x18bb2a(0x149)][_0x18bb2a(0x148)](_0x4e26eb,{'title':_0x563e91})[_0x18bb2a(0x153)](),_0x2acb11[_0x18bb2a(0x135)](_0x563e91),this[_0x18bb2a(0x140)](_0x18bb2a(0x131),{'itemId':_0x4e26eb,'updates':{'title':_0x563e91}}),!0x0;}catch(_0x28f381){return this[_0x18bb2a(0x140)](_0x18bb2a(0x157),{'error':_0x28f381,'operation':_0x18bb2a(0x134),'itemId':_0x4e26eb}),!0x1;}}async[_0x2310ac(0x139)](_0x3329c7,_0x5a16c7){const _0x5cb89a=_0x2310ac,_0x1461b1=this[_0x5cb89a(0x14b)](_0x3329c7);if(!_0x1461b1)return!0x1;try{return await this[_0x5cb89a(0x149)][_0x5cb89a(0x148)](_0x3329c7,{'pinned':_0x5a16c7})[_0x5cb89a(0x153)](),_0x1461b1[_0x5cb89a(0x13f)](_0x5a16c7),this[_0x5cb89a(0x140)](_0x5cb89a(0x131),{'itemId':_0x3329c7,'updates':{'pinned':_0x5a16c7}}),!0x0;}catch(_0x83a32a){return this[_0x5cb89a(0x140)](_0x5cb89a(0x157),{'error':_0x83a32a,'operation':_0x5cb89a(0x139),'itemId':_0x3329c7}),!0x1;}}[_0x2310ac(0x14f)](_0x1da50c){const _0xfdc710=_0x2310ac;try{this[_0xfdc710(0x136)]=[],_0x1da50c[_0xfdc710(0x14e)](_0x527692=>{const _0x384bf9=_0xfdc710;this[_0x384bf9(0x13b)](new _0x9708ea(_0x527692));}),this[_0xfdc710(0x140)](_0xfdc710(0x147),{'items':[...this[_0xfdc710(0x136)]]});}catch(_0x2e16a3){this[_0xfdc710(0x140)](_0xfdc710(0x157),{'error':_0x2e16a3,'operation':_0xfdc710(0x14f)});}}[_0x2310ac(0x12d)](_0x72b506={}){const _0x2df8f3=_0x2310ac,_0x371e75=void 0x0!==_0x72b506[_0x2df8f3(0x156)]&&_0x72b506[_0x2df8f3(0x156)],_0x1fa8f3=_0x72b506[_0x2df8f3(0x13e)]?new Date(_0x72b506[_0x2df8f3(0x13e)][_0x2df8f3(0x132)](),_0x72b506[_0x2df8f3(0x13e)][_0x2df8f3(0x14c)](),_0x72b506[_0x2df8f3(0x13e)][_0x2df8f3(0x151)]()):null,_0x2dd2c5=_0x72b506['to']?new Date(_0x72b506['to'][_0x2df8f3(0x132)](),_0x72b506['to'][_0x2df8f3(0x14c)](),_0x72b506['to'][_0x2df8f3(0x151)]()):null;return this[_0x2df8f3(0x136)][_0x2df8f3(0x143)](_0x5a731c=>{const _0x4f0002=_0x2df8f3;if(_0x5a731c[_0x4f0002(0x156)]!==_0x371e75)return!0x1;if(_0x2dd2c5){const _0x31baf7=new Date(_0x5a731c[_0x4f0002(0x155)][_0x4f0002(0x132)](),_0x5a731c[_0x4f0002(0x155)][_0x4f0002(0x14c)](),_0x5a731c[_0x4f0002(0x155)][_0x4f0002(0x151)]());return _0x1fa8f3?_0x1fa8f3[_0x4f0002(0x138)]()===_0x2dd2c5[_0x4f0002(0x138)]()?_0x31baf7[_0x4f0002(0x138)]()===_0x1fa8f3[_0x4f0002(0x138)]():_0x31baf7<_0x2dd2c5&&_0x31baf7>=_0x1fa8f3:_0x31baf7<_0x2dd2c5;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x25145f=_0x4791;(function(_0x346075,_0x178b01){var _0x4059cf=_0x4791,_0x5b12d8=_0x346075();while(!![]){try{var _0x498c68=-parseInt(_0x4059cf(0xda))/0x1+-parseInt(_0x4059cf(0xe2))/0x2+-parseInt(_0x4059cf(0xe6))/0x3*(-parseInt(_0x4059cf(0xdf))/0x4)+parseInt(_0x4059cf(0xdd))/0x5*(parseInt(_0x4059cf(0xe3))/0x6)+-parseInt(_0x4059cf(0xea))/0x7*(-parseInt(_0x4059cf(0xe1))/0x8)+parseInt(_0x4059cf(0xe4))/0x9*(-parseInt(_0x4059cf(0xe7))/0xa)+parseInt(_0x4059cf(0xe9))/0xb;if(_0x498c68===_0x178b01)break;else _0x5b12d8['push'](_0x5b12d8['shift']());}catch(_0x5d6b3b){_0x5b12d8['push'](_0x5b12d8['shift']());}}}(_0x493d,0x4dd56));function _0x4791(_0x39c841,_0x11aadf){var _0x493dae=_0x493d();return _0x4791=function(_0x47913e,_0xcc0d8c){_0x47913e=_0x47913e-0xd9;var _0x2ed3fa=_0x493dae[_0x47913e];return _0x2ed3fa;},_0x4791(_0x39c841,_0x11aadf);}import{ObservableMixin as _0x487228}from'ckeditor5/src/utils.js';function _0x493d(){var _0x11eb8c=['46313CtyKwC','title','updatedAt','4075qsltzu','set','64508eMuedp','updatePinned','16776keeSYe','504298YiGhag','1464jxEqnm','54ESoQAo','updateTitle','15mrtuip','666310rvqaQa','pinned','5967918nLYaFx','651VBzIuO','createdAt'];_0x493d=function(){return _0x11eb8c;};return _0x493d();}import{escape as _0x2673cf}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x487228(){['id'];[_0x25145f(0xd9)];constructor({id:_0x40a1e3,title:_0x25ff1c,createdAt:_0x6f263a,updatedAt:_0x239613,pinned:_0x4c7238}){var _0x49efb0=_0x25145f;super(),this['id']=_0x40a1e3,this[_0x49efb0(0xd9)]=new Date(_0x6f263a),this[_0x49efb0(0xde)](_0x49efb0(0xdb),_0x25ff1c),this[_0x49efb0(0xde)](_0x49efb0(0xdc),_0x239613?new Date(_0x239613):null),this[_0x49efb0(0xde)](_0x49efb0(0xe8),_0x4c7238||!0x1);}[_0x25145f(0xe5)](_0x33019b){var _0x3c0646=_0x25145f;this[_0x3c0646(0xde)](_0x3c0646(0xdb),_0x2673cf(_0x33019b)),this[_0x3c0646(0xdc)]=new Date();}[_0x25145f(0xe0)](_0x312c0e){var _0x597a05=_0x25145f;this[_0x597a05(0xde)](_0x597a05(0xe8),_0x312c0e),this[_0x597a05(0xdc)]=new Date();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xaa24e0=_0x1cd7;(function(_0x359840,_0x4c6d43){const _0x58b009=_0x1cd7,_0x33a574=_0x359840();while(!![]){try{const _0x49fb2f=parseInt(_0x58b009(0xa1))/0x1*(-parseInt(_0x58b009(0x7b))/0x2)+parseInt(_0x58b009(0x7e))/0x3+-parseInt(_0x58b009(0x83))/0x4*(parseInt(_0x58b009(0xbf))/0x5)+-parseInt(_0x58b009(0xbb))/0x6*(-parseInt(_0x58b009(0x9d))/0x7)+parseInt(_0x58b009(0xa2))/0x8+parseInt(_0x58b009(0x9c))/0x9+-parseInt(_0x58b009(0xb5))/0xa;if(_0x49fb2f===_0x4c6d43)break;else _0x33a574['push'](_0x33a574['shift']());}catch(_0x29f5a4){_0x33a574['push'](_0x33a574['shift']());}}}(_0x3d0a,0xc06b0));import{ListItemView as _0x35c3e3,HighlightedTextView as _0x4f18db,ButtonView as _0x1fa10c,ListView as _0x319fca,IconView as _0x5b28bc,createDropdown as _0x509615,InputTextView as _0x360209}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x23b0e4,IconPin as _0x8d6dbb,IconCheck as _0x40eaaa,IconCancel as _0x305b6b}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x539aa6,ConfirmMixin as _0x1b77ff}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x3d0a(){const _0x32e372=['_commitEditInputValue','isVisible','isEdit','712cocODG','AI_CHAT_HISTORY_REMOVE','pinned','_createCancelEditButtonView','AI_CHAT_HISTORY_CANCEL','withText','ck-ai-chat-history__item-check-container','_createAcceptEditButtonView','AI_CHAT_HISTORY_LOADING_UNPINNING','createCollection','focus','ck-confirm-view-cancel','mainContent','_createCheckView','tiny','AI_CHAT_HISTORY_LOADING_PINNING','bindTemplate','ck-ai-chat-history__item-content','loadingState','LOADING_LABELS','bind','match','string','setConversationPinned','AI_CHAT_HISTORY_REMOVE_CONFIRM','8327511KuCOkc','1014559KKAWEA','showConfirm','value','editConversationTitle','2yPStTp','2372712HRrxGH','ck-ai-chat-history__item-row','ck-ai-chat-history__item--active','listitem','ck-ai-chat-history__item-check','text','panelView','click','items','_titleView','clear','then','highlightText','span','ck-confirm-view-submit','execute','ck-ai-chat-history__item-actions','AI_CHAT_HISTORY_PIN_BUTTON','key','14667110RdPJoH','div','buttonView','change:isEdit','_createSpinnerView','actions','42wQnZfr','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','label','selectConversation','5845DpqaqM','updateLoadingState','AI_CHAT_HISTORY_ACCEPT','isOn','locale','ck-ai-chat-history__item','_createMenuDropdownView','updateTitle','AI_CHAT_HISTORY_EDIT_NAME','AI_CHAT_HISTORY_LOADING_REMOVING','ck-ai-chat-history__item-main-content','ck-hidden','_createPinButtonView','_createEditInputView','addMany','set','extendTemplate','fire','children','setTemplate','add','ck-ai-chat-history__item-title','panelPosition','removeConversation','isMatching','AI_CHAT_HISTORY_LOADING_RENAMING','edit:cancel','ck-ai-loader__text','Enter','ck-ai-chat-history__item--edit','399198hpxWoo','ck-ai-loader','ck-ai-chat-history__item-date','1877124CwZKwe','element'];_0x3d0a=function(){return _0x32e372;};return _0x3d0a();}import{escape as _0x40e810}from'es-toolkit/compat';import{AISpinnerView as _0x3d4599}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x5b072e}from'../../aicore/utils/common-translations.js';function _0x1cd7(_0x52e8df,_0x57902f){const _0x3d0a17=_0x3d0a();return _0x1cd7=function(_0x1cd76b,_0x106d54){_0x1cd76b=_0x1cd76b-0x76;let _0x2c0139=_0x3d0a17[_0x1cd76b];return _0x2c0139;},_0x1cd7(_0x52e8df,_0x57902f);}export class AIChatHistoryListItemView extends _0x1b77ff(_0x35c3e3){['id'];static [_0xaa24e0(0x96)]={'remove':_0xaa24e0(0xc8),'rename':_0xaa24e0(0x76),'pin':_0xaa24e0(0x92),'unpin':_0xaa24e0(0x8b)};[_0xaa24e0(0xba)];[_0xaa24e0(0x8f)];[_0xaa24e0(0xab)];constructor(_0x51a803,_0x147b25){const _0x35c7ef=_0xaa24e0;super(_0x51a803);const _0x433e33=this[_0x35c7ef(0x93)];this[_0x35c7ef(0xce)](_0x35c7ef(0x82),!0x1),this[_0x35c7ef(0xce)](_0x35c7ef(0x81),!0x0),this[_0x35c7ef(0xce)](_0x35c7ef(0x85),!!_0x147b25[_0x35c7ef(0x85)]),this[_0x35c7ef(0xce)](_0x35c7ef(0x95),null),this['id']=_0x147b25['id'];const {title:_0x377c1e,createdAt:_0x25a9f7,active:_0x46aa8d=!0x1}=_0x147b25;this[_0x35c7ef(0xab)]=new _0x4f18db(),this[_0x35c7ef(0xab)][_0x35c7ef(0xa7)]=_0x377c1e,this[_0x35c7ef(0xab)][_0x35c7ef(0xcf)]({'attributes':{'class':[_0x35c7ef(0xd4)]}});const _0x2db5df=this[_0x35c7ef(0x90)](),_0x255f19=this[_0x35c7ef(0xcb)](_0x51a803),_0x2dd2bb=this[_0x35c7ef(0xc5)](),_0x59d36d=this[_0x35c7ef(0xcc)](_0x51a803,_0x377c1e),_0xdb8656=this[_0x35c7ef(0x8a)](_0x51a803,_0x59d36d),_0x13e44e=this[_0x35c7ef(0x86)](_0x51a803,_0x59d36d);this[_0x35c7ef(0xba)]=this[_0x35c7ef(0x8c)](),this[_0x35c7ef(0x8f)]=this[_0x35c7ef(0x8c)](),this[_0x35c7ef(0x8f)][_0x35c7ef(0xd3)](this[_0x35c7ef(0xab)]),this[_0x35c7ef(0xba)][_0x35c7ef(0xd3)](_0x255f19),this[_0x35c7ef(0xba)][_0x35c7ef(0xd3)](_0x2dd2bb),this['on'](_0x35c7ef(0xb8),(_0x5487bc,_0x5e470d,_0x50f7ee)=>{const _0xcbc3d9=_0x35c7ef;this[_0xcbc3d9(0xba)][_0xcbc3d9(0xac)](),this[_0xcbc3d9(0x8f)][_0xcbc3d9(0xac)](),_0x50f7ee?(this[_0xcbc3d9(0xba)][_0xcbc3d9(0xd3)](_0xdb8656),this[_0xcbc3d9(0xba)][_0xcbc3d9(0xd3)](_0x13e44e),this[_0xcbc3d9(0x8f)][_0xcbc3d9(0xd3)](_0x59d36d),_0x59d36d[_0xcbc3d9(0x7f)][_0xcbc3d9(0x8d)]()):(this[_0xcbc3d9(0xba)][_0xcbc3d9(0xd3)](_0x255f19),this[_0xcbc3d9(0xba)][_0xcbc3d9(0xd3)](_0x2dd2bb),this[_0xcbc3d9(0x8f)][_0xcbc3d9(0xd3)](this[_0xcbc3d9(0xab)]));}),this[_0x35c7ef(0xd2)]({'tag':'li','attributes':{'class':[_0x35c7ef(0xc4),_0x46aa8d?_0x35c7ef(0xa4):'',_0x433e33['if'](_0x35c7ef(0x81),_0x35c7ef(0xca),_0x3170dd=>!_0x3170dd),_0x433e33['if'](_0x35c7ef(0x82),_0x35c7ef(0x7a))],'role':_0x35c7ef(0xa5)},'children':[{'tag':_0x35c7ef(0xaf),'attributes':{'class':[_0x35c7ef(0x89)]},'children':[{'tag':_0x35c7ef(0xb6),'attributes':{'class':[_0x35c7ef(0xa6),_0x433e33['if'](_0x35c7ef(0x95),_0x35c7ef(0xca),_0x12108e=>!!_0x12108e)]},'children':_0x46aa8d?[_0x2db5df]:[]},{'tag':_0x35c7ef(0xb6),'attributes':{'class':[_0x35c7ef(0x7c),_0x433e33['if'](_0x35c7ef(0x95),_0x35c7ef(0xca),_0x3a52c0=>!_0x3a52c0)]},'children':[this[_0x35c7ef(0xb9)]()]}]},{'tag':_0x35c7ef(0xb6),'attributes':{'class':[_0x35c7ef(0xa3)]},'children':[{'tag':_0x35c7ef(0xb6),'attributes':{'class':[_0x35c7ef(0x94)]},'on':{'click':this[_0x35c7ef(0x93)]['to'](_0x35c7ef(0xa9))},'children':[{'tag':_0x35c7ef(0xb6),'attributes':{'class':[_0x35c7ef(0xc9)]},'children':[{'tag':_0x35c7ef(0xb6),'attributes':{'class':[_0x35c7ef(0xd4),_0x433e33['if'](_0x35c7ef(0x95),_0x35c7ef(0xca),_0x3d5ba1=>!!_0x3d5ba1)]},'children':this[_0x35c7ef(0x8f)]},{'tag':_0x35c7ef(0xb6),'attributes':{'class':[_0x35c7ef(0x78),_0x433e33['if'](_0x35c7ef(0x95),_0x35c7ef(0xca),_0x514838=>!_0x514838)]},'children':[{'text':_0x433e33['to'](_0x35c7ef(0x95),_0x6e3450=>_0x6e3450?_0x5b072e(this[_0x35c7ef(0xc3)],AIChatHistoryListItemView[_0x35c7ef(0x96)][_0x6e3450]):'')}]}]},{'tag':_0x35c7ef(0xaf),'attributes':{'class':[_0x35c7ef(0x7d)]},'children':[_0x25a9f7]}]},{'tag':_0x35c7ef(0xb6),'attributes':{'class':[_0x35c7ef(0xb2)]},'children':this[_0x35c7ef(0xba)]}]}]}),this['on'](_0x35c7ef(0xa9),()=>{const _0x19abd0=_0x35c7ef;this[_0x19abd0(0x82)]||this[_0x19abd0(0xd0)](_0x19abd0(0xbe),{'id':this['id']});});}[_0xaa24e0(0xc6)](_0x5381f7){const _0x48cc6c=_0xaa24e0;this[_0x48cc6c(0xab)][_0x48cc6c(0xa7)]=_0x40e810(_0x5381f7);}[_0xaa24e0(0xc0)](_0x111c98,_0x11231d){const _0x4b5ec3=_0xaa24e0;this[_0x4b5ec3(0xce)](_0x4b5ec3(0x95),_0x11231d?_0x111c98:null);}[_0xaa24e0(0x90)](){const _0x59fa43=_0xaa24e0,_0x4688ac=new _0x5b28bc();return _0x4688ac[_0x59fa43(0xce)]({'content':_0x40eaaa}),_0x4688ac;}[_0xaa24e0(0xcb)](_0x166cfd){const _0x5a1a3e=_0xaa24e0,_0x45e052=new _0x1fa10c(_0x166cfd);return _0x45e052[_0x5a1a3e(0xce)]({'label':_0x5b072e(_0x166cfd,_0x5a1a3e(0xb3)),'icon':_0x8d6dbb,'withText':!0x1,'tooltip':!0x0}),_0x45e052[_0x5a1a3e(0x97)](_0x5a1a3e(0xc2))['to'](this,_0x5a1a3e(0x85)),_0x45e052['on'](_0x5a1a3e(0xb1),()=>{const _0x17f0e2=_0x5a1a3e,_0x54bd8a=!this[_0x17f0e2(0x85)];this[_0x17f0e2(0xd0)](_0x17f0e2(0x9a),{'id':this['id'],'pinned':_0x54bd8a});}),_0x45e052;}[_0xaa24e0(0xc5)](){const _0x4a0aa6=_0xaa24e0,_0x2b234a=_0x509615(this[_0x4a0aa6(0xc3)],_0x539aa6),_0x11ba65=_0x2b234a[_0x4a0aa6(0xa8)][_0x4a0aa6(0xd1)];_0x2b234a[_0x4a0aa6(0xb7)][_0x4a0aa6(0xce)]({'label':_0x5b072e(this[_0x4a0aa6(0xc3)],_0x4a0aa6(0xbc)),'icon':_0x23b0e4}),_0x2b234a[_0x4a0aa6(0xd5)]='sw';const _0x15c9e7=new _0x1fa10c(this[_0x4a0aa6(0xc3)]);_0x15c9e7[_0x4a0aa6(0xbd)]=_0x5b072e(this[_0x4a0aa6(0xc3)],_0x4a0aa6(0xc7)),_0x15c9e7[_0x4a0aa6(0x88)]=!0x0,_0x15c9e7['on'](_0x4a0aa6(0xb1),()=>{const _0x38c2ff=_0x4a0aa6;this[_0x38c2ff(0x82)]=!0x0;});const _0x4fea59=new _0x1fa10c(this[_0x4a0aa6(0xc3)]);_0x4fea59[_0x4a0aa6(0xbd)]=_0x5b072e(this[_0x4a0aa6(0xc3)],_0x4a0aa6(0x84)),_0x4fea59[_0x4a0aa6(0x88)]=!0x0,_0x4fea59['on'](_0x4a0aa6(0xb1),()=>{const _0x18c1e4=_0x4a0aa6;this[_0x18c1e4(0x9e)](_0x5b072e(this[_0x18c1e4(0xc3)],_0x18c1e4(0x9b)),this[_0x18c1e4(0x7f)])[_0x18c1e4(0xad)](()=>{const _0x27c45c=_0x18c1e4;this[_0x27c45c(0xd0)](_0x27c45c(0xd6),{'id':this['id']});});});const _0x132f83=new _0x319fca(this[_0x4a0aa6(0xc3)]),_0xd6e2c8=new _0x35c3e3(this[_0x4a0aa6(0xc3)]);_0xd6e2c8[_0x4a0aa6(0xd1)][_0x4a0aa6(0xd3)](_0x15c9e7);const _0x11d4f6=new _0x35c3e3(this[_0x4a0aa6(0xc3)]);return _0x11d4f6[_0x4a0aa6(0xd1)][_0x4a0aa6(0xd3)](_0x4fea59),_0x132f83[_0x4a0aa6(0xaa)][_0x4a0aa6(0xcd)]([_0xd6e2c8,_0x11d4f6]),_0x11ba65[_0x4a0aa6(0xd3)](_0x132f83),_0x2b234a;}[_0xaa24e0(0xcc)](_0x39bab4,_0x12fa5f){const _0x883a3d=_0xaa24e0,_0x271a9a=new _0x360209(_0x39bab4),_0x4bea91=_0x271a9a[_0x883a3d(0x93)];return _0x271a9a[_0x883a3d(0x9f)]=_0x12fa5f,_0x271a9a[_0x883a3d(0xcf)]({'on':{'keydown':_0x4bea91['to'](_0x462dc5=>{const _0x4be6bc=_0x883a3d;_0x4be6bc(0x79)==_0x462dc5[_0x4be6bc(0xb4)]&&this[_0x4be6bc(0x80)](_0x271a9a);})}}),_0x271a9a;}[_0xaa24e0(0x8a)](_0x3f2521,_0x59a498){const _0x2aa809=_0xaa24e0,_0x4d696c=new _0x1fa10c(_0x3f2521);return _0x4d696c[_0x2aa809(0xce)]({'icon':_0x40eaaa,'withText':!0x1,'tooltip':_0x5b072e(_0x3f2521,_0x2aa809(0xc1))}),_0x4d696c[_0x2aa809(0xcf)]({'attributes':{'class':[_0x2aa809(0xb0)]}}),_0x4d696c['on'](_0x2aa809(0xb1),()=>{const _0x4dec74=_0x2aa809;this[_0x4dec74(0x80)](_0x59a498);}),_0x4d696c;}[_0xaa24e0(0x80)](_0xd09531){const _0x185a0f=_0xaa24e0,_0x41febb=_0xd09531[_0x185a0f(0x7f)][_0x185a0f(0x9f)]||'';this[_0x185a0f(0xab)][_0x185a0f(0xa7)]=_0x41febb,this[_0x185a0f(0x82)]=!0x1,this[_0x185a0f(0xd0)](_0x185a0f(0xa0),{'id':this['id'],'title':_0x41febb});}[_0xaa24e0(0x86)](_0x4f418d,_0x454b80){const _0x14dccc=_0xaa24e0,_0x50206f=new _0x1fa10c(_0x4f418d);return _0x50206f[_0x14dccc(0xce)]({'icon':_0x305b6b,'withText':!0x1,'tooltip':_0x5b072e(_0x4f418d,_0x14dccc(0x87))}),_0x50206f[_0x14dccc(0xcf)]({'attributes':{'class':[_0x14dccc(0x8e)]}}),_0x50206f['on'](_0x14dccc(0xb1),()=>{const _0x299eb0=_0x14dccc;this[_0x299eb0(0x82)]=!0x1,_0x454b80[_0x299eb0(0x9f)]=this[_0x299eb0(0xab)][_0x299eb0(0xa7)]||'',this[_0x299eb0(0xd0)](_0x299eb0(0x77));}),_0x50206f;}[_0xaa24e0(0xb9)](){const _0x5cf7f0=_0xaa24e0,_0x21ff64=new _0x3d4599(_0x5cf7f0(0x91));return _0x21ff64[_0x5cf7f0(0x81)]=!0x0,_0x21ff64;}[_0xaa24e0(0xd7)](_0x34c8a1){const _0x5e94cd=_0xaa24e0;return this[_0x5e94cd(0xab)]&&_0x5e94cd(0x99)==typeof this[_0x5e94cd(0xab)][_0x5e94cd(0xa7)]&&this[_0x5e94cd(0xab)][_0x5e94cd(0xa7)][_0x5e94cd(0x98)](_0x34c8a1)?{'title':!0x0}:null;}[_0xaa24e0(0xae)](_0x5d2c15){const _0x3618f3=_0xaa24e0;this[_0x3618f3(0xab)][_0x3618f3(0xae)](_0x5d2c15);}}
|
|
23
|
+
const _0x5ee390=_0x37a8;function _0x37a8(_0x26366e,_0x44972a){const _0x10d4cf=_0x10d4();return _0x37a8=function(_0x37a898,_0x3dd44f){_0x37a898=_0x37a898-0xd4;let _0x3643ed=_0x10d4cf[_0x37a898];return _0x3643ed;},_0x37a8(_0x26366e,_0x44972a);}(function(_0x4cef72,_0x510e19){const _0x33a949=_0x37a8,_0x41befe=_0x4cef72();while(!![]){try{const _0x33d6ec=parseInt(_0x33a949(0xed))/0x1*(-parseInt(_0x33a949(0x107))/0x2)+-parseInt(_0x33a949(0xe4))/0x3*(-parseInt(_0x33a949(0x101))/0x4)+-parseInt(_0x33a949(0xde))/0x5+parseInt(_0x33a949(0x12e))/0x6*(parseInt(_0x33a949(0xd8))/0x7)+parseInt(_0x33a949(0xf2))/0x8+-parseInt(_0x33a949(0x105))/0x9*(parseInt(_0x33a949(0x110))/0xa)+parseInt(_0x33a949(0x130))/0xb*(parseInt(_0x33a949(0x134))/0xc);if(_0x33d6ec===_0x510e19)break;else _0x41befe['push'](_0x41befe['shift']());}catch(_0x334867){_0x41befe['push'](_0x41befe['shift']());}}}(_0x10d4,0x485d0));import{ListItemView as _0x1d3c8b,HighlightedTextView as _0x15e0ee,ButtonView as _0xcd9673,ListView as _0x24019e,IconView as _0xbf1716,createDropdown as _0x2da753,InputTextView as _0xf7dba4}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x758529,IconPin as _0x155656,IconCheck as _0x40e710,IconCancel as _0x58d142}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1c6f4c,ConfirmMixin as _0xaf8266}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x4888bc}from'es-toolkit/compat';import{AISpinnerView as _0x3336b2}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x54350a}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0xaf8266(_0x1d3c8b){['id'];static [_0x5ee390(0x123)]={'remove':_0x5ee390(0x11d),'rename':_0x5ee390(0x10d),'pin':_0x5ee390(0xfd),'unpin':_0x5ee390(0x112)};[_0x5ee390(0x117)];[_0x5ee390(0xd6)];[_0x5ee390(0xf9)];constructor(_0x256356,_0x9b13fe){const _0x4ee688=_0x5ee390;super(_0x256356);const _0x4f66e6=this[_0x4ee688(0x136)];this[_0x4ee688(0xd9)](_0x4ee688(0x108),!0x1),this[_0x4ee688(0xd9)](_0x4ee688(0xf7),!0x0),this[_0x4ee688(0xd9)](_0x4ee688(0xdd),!!_0x9b13fe[_0x4ee688(0xdd)]),this[_0x4ee688(0xd9)](_0x4ee688(0xf5),null),this['id']=_0x9b13fe['id'];const {title:_0x522d82,createdAt:_0x51aab9,active:_0x1fbc29=!0x1}=_0x9b13fe;this[_0x4ee688(0xf9)]=new _0x15e0ee(),this[_0x4ee688(0xf9)][_0x4ee688(0x102)]=_0x522d82,this[_0x4ee688(0xf9)][_0x4ee688(0x137)]({'attributes':{'class':[_0x4ee688(0x100)]}});const _0x51bb45=this[_0x4ee688(0xda)](),_0xc50165=this[_0x4ee688(0x124)](_0x256356),_0x57144e=this[_0x4ee688(0x135)](),_0x573d84=this[_0x4ee688(0x11b)](_0x256356,_0x522d82),_0x4f146d=this[_0x4ee688(0x131)](_0x256356,_0x573d84),_0x536d35=this[_0x4ee688(0xfa)](_0x256356,_0x573d84);this[_0x4ee688(0x117)]=this[_0x4ee688(0x122)](),this[_0x4ee688(0xd6)]=this[_0x4ee688(0x122)](),this[_0x4ee688(0xd6)][_0x4ee688(0xf3)](this[_0x4ee688(0xf9)]),this[_0x4ee688(0x117)][_0x4ee688(0xf3)](_0xc50165),this[_0x4ee688(0x117)][_0x4ee688(0xf3)](_0x57144e),this['on'](_0x4ee688(0x10b),(_0xb715e4,_0x3bb93b,_0x205041)=>{const _0x512348=_0x4ee688;this[_0x512348(0x117)][_0x512348(0xd4)](),this[_0x512348(0xd6)][_0x512348(0xd4)](),_0x205041?(this[_0x512348(0x117)][_0x512348(0xf3)](_0x4f146d),this[_0x512348(0x117)][_0x512348(0xf3)](_0x536d35),this[_0x512348(0xd6)][_0x512348(0xf3)](_0x573d84),_0x573d84[_0x512348(0x127)][_0x512348(0xe3)]()):(this[_0x512348(0x117)][_0x512348(0xf3)](_0xc50165),this[_0x512348(0x117)][_0x512348(0xf3)](_0x57144e),this[_0x512348(0xd6)][_0x512348(0xf3)](this[_0x512348(0xf9)]));}),this[_0x4ee688(0xdf)]({'tag':'li','attributes':{'class':[_0x4ee688(0xd5),_0x1fbc29?_0x4ee688(0xe0):'',_0x4f66e6['if'](_0x4ee688(0xf7),_0x4ee688(0x104),_0x3b9887=>!_0x3b9887),_0x4f66e6['if'](_0x4ee688(0x108),_0x4ee688(0x126))],'role':_0x4ee688(0xea)},'children':[{'tag':_0x4ee688(0xf1),'attributes':{'class':[_0x4ee688(0x10f)]},'children':[{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0xe6),_0x4f66e6['if'](_0x4ee688(0xf5),_0x4ee688(0x104),_0x1e1193=>!!_0x1e1193)]},'children':_0x1fbc29?[_0x51bb45]:[]},{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x111),_0x4f66e6['if'](_0x4ee688(0xf5),_0x4ee688(0x104),_0x1d18ea=>!_0x1d18ea)]},'children':[this[_0x4ee688(0xfb)]()]}]},{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x12a)]},'children':[{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x114)]},'on':{'click':this[_0x4ee688(0x136)]['to'](_0x4ee688(0x10e))},'children':[{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x132)]},'children':[{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x100),_0x4f66e6['if'](_0x4ee688(0xf5),_0x4ee688(0x104),_0x393a32=>!!_0x393a32)]},'children':this[_0x4ee688(0xd6)]},{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x120),_0x4f66e6['if'](_0x4ee688(0xf5),_0x4ee688(0x104),_0x2e7012=>!_0x2e7012)]},'children':[{'text':_0x4f66e6['to'](_0x4ee688(0xf5),_0x57d2b4=>_0x57d2b4?_0x54350a(this[_0x4ee688(0xff)],AIChatHistoryListItemView[_0x4ee688(0x123)][_0x57d2b4]):'')}]}]},{'tag':_0x4ee688(0xf1),'attributes':{'class':[_0x4ee688(0x103)]},'children':[_0x51aab9]}]},{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x12c)]},'children':this[_0x4ee688(0x117)]}]}]}),this['on'](_0x4ee688(0x10e),()=>{const _0x11311a=_0x4ee688;this[_0x11311a(0x108)]||this[_0x11311a(0xee)](_0x11311a(0x10c),{'id':this['id']});});}[_0x5ee390(0xf6)](_0x31b3a1){const _0xef3714=_0x5ee390;this[_0xef3714(0xf9)][_0xef3714(0x102)]=_0x4888bc(_0x31b3a1);}[_0x5ee390(0x11e)](_0x209aac,_0x22b9c8){const _0x52761a=_0x5ee390;this[_0x52761a(0xd9)](_0x52761a(0xf5),_0x22b9c8?_0x209aac:null);}[_0x5ee390(0xda)](){const _0x4a5394=_0x5ee390,_0x28a882=new _0xbf1716();return _0x28a882[_0x4a5394(0xd9)]({'content':_0x40e710}),_0x28a882;}[_0x5ee390(0x124)](_0xba59af){const _0x21efd2=_0x5ee390,_0x478c38=new _0xcd9673(_0xba59af);return _0x478c38[_0x21efd2(0xd9)]({'label':_0x54350a(_0xba59af,_0x21efd2(0xe2)),'icon':_0x155656,'withText':!0x1,'tooltip':!0x0}),_0x478c38[_0x21efd2(0x12b)](_0x21efd2(0x113))['to'](this,_0x21efd2(0xdd)),_0x478c38['on'](_0x21efd2(0x10a),()=>{const _0x2224d7=_0x21efd2,_0x153074=!this[_0x2224d7(0xdd)];this[_0x2224d7(0xee)](_0x2224d7(0xec),{'id':this['id'],'pinned':_0x153074});}),_0x478c38;}[_0x5ee390(0x135)](){const _0x4f3984=_0x5ee390,_0x690753=_0x2da753(this[_0x4f3984(0xff)],_0x1c6f4c),_0x569a70=_0x690753[_0x4f3984(0x115)][_0x4f3984(0xe9)];_0x690753[_0x4f3984(0xd7)][_0x4f3984(0xd9)]({'label':_0x54350a(this[_0x4f3984(0xff)],_0x4f3984(0xef)),'icon':_0x758529}),_0x690753[_0x4f3984(0xeb)]='sw';const _0x3baaaf=new _0xcd9673(this[_0x4f3984(0xff)]);_0x3baaaf[_0x4f3984(0x125)]=_0x54350a(this[_0x4f3984(0xff)],_0x4f3984(0xfe)),_0x3baaaf[_0x4f3984(0xe8)]=!0x0,_0x3baaaf['on'](_0x4f3984(0x10a),()=>{const _0x48a015=_0x4f3984;this[_0x48a015(0x108)]=!0x0;});const _0x54677e=new _0xcd9673(this[_0x4f3984(0xff)]);_0x54677e[_0x4f3984(0x125)]=_0x54350a(this[_0x4f3984(0xff)],_0x4f3984(0x11f)),_0x54677e[_0x4f3984(0xe8)]=!0x0,_0x54677e['on'](_0x4f3984(0x10a),()=>{const _0x24a927=_0x4f3984;this[_0x24a927(0x133)](_0x54350a(this[_0x24a927(0xff)],_0x24a927(0x128)),this[_0x24a927(0x127)])[_0x24a927(0x119)](()=>{const _0x17025e=_0x24a927;this[_0x17025e(0xee)](_0x17025e(0x11c),{'id':this['id']});});});const _0x13a385=new _0x24019e(this[_0x4f3984(0xff)]),_0xe45a14=new _0x1d3c8b(this[_0x4f3984(0xff)]);_0xe45a14[_0x4f3984(0xe9)][_0x4f3984(0xf3)](_0x3baaaf);const _0x2f7b7b=new _0x1d3c8b(this[_0x4f3984(0xff)]);return _0x2f7b7b[_0x4f3984(0xe9)][_0x4f3984(0xf3)](_0x54677e),_0x13a385[_0x4f3984(0x116)][_0x4f3984(0x121)]([_0xe45a14,_0x2f7b7b]),_0x569a70[_0x4f3984(0xf3)](_0x13a385),_0x690753;}[_0x5ee390(0x11b)](_0x2af60b,_0x311d44){const _0x5350e8=_0x5ee390,_0x3d4c01=new _0xf7dba4(_0x2af60b),_0x1cc100=_0x3d4c01[_0x5350e8(0x136)];return _0x3d4c01[_0x5350e8(0x109)]=_0x311d44,_0x3d4c01[_0x5350e8(0x137)]({'on':{'keydown':_0x1cc100['to'](_0x29cf97=>{const _0x1e7223=_0x5350e8;_0x1e7223(0x11a)==_0x29cf97[_0x1e7223(0x12d)]&&this[_0x1e7223(0x118)](_0x3d4c01);})}}),_0x3d4c01;}[_0x5ee390(0x131)](_0x52a5f3,_0x679dc2){const _0x510d5c=_0x5ee390,_0x141039=new _0xcd9673(_0x52a5f3);return _0x141039[_0x510d5c(0xd9)]({'icon':_0x40e710,'withText':!0x1,'tooltip':_0x54350a(_0x52a5f3,_0x510d5c(0xe1))}),_0x141039[_0x510d5c(0x137)]({'attributes':{'class':[_0x510d5c(0xe5)]}}),_0x141039['on'](_0x510d5c(0x10a),()=>{const _0x2441c5=_0x510d5c;this[_0x2441c5(0x118)](_0x679dc2);}),_0x141039;}[_0x5ee390(0x118)](_0x1418fb){const _0x2de481=_0x5ee390,_0x977885=_0x1418fb[_0x2de481(0x127)][_0x2de481(0x109)]||'';this[_0x2de481(0xf9)][_0x2de481(0x102)]=_0x977885,this[_0x2de481(0x108)]=!0x1,this[_0x2de481(0xee)](_0x2de481(0xf4),{'id':this['id'],'title':_0x977885});}[_0x5ee390(0xfa)](_0x12a451,_0x5a39e2){const _0x16f3ff=_0x5ee390,_0x3b7e9=new _0xcd9673(_0x12a451);return _0x3b7e9[_0x16f3ff(0xd9)]({'icon':_0x58d142,'withText':!0x1,'tooltip':_0x54350a(_0x12a451,_0x16f3ff(0xdb))}),_0x3b7e9[_0x16f3ff(0x137)]({'attributes':{'class':[_0x16f3ff(0xe7)]}}),_0x3b7e9['on'](_0x16f3ff(0x10a),()=>{const _0x3f92e8=_0x16f3ff;this[_0x3f92e8(0x108)]=!0x1,_0x5a39e2[_0x3f92e8(0x109)]=this[_0x3f92e8(0xf9)][_0x3f92e8(0x102)]||'',this[_0x3f92e8(0xee)](_0x3f92e8(0x106));}),_0x3b7e9;}[_0x5ee390(0xfb)](){const _0x5b62b3=_0x5ee390,_0xfaa2ce=new _0x3336b2(_0x5b62b3(0xf8));return _0xfaa2ce[_0x5b62b3(0xf7)]=!0x0,_0xfaa2ce;}[_0x5ee390(0xdc)](_0x55d439){const _0x5776e5=_0x5ee390;return this[_0x5776e5(0xf9)]&&_0x5776e5(0x129)==typeof this[_0x5776e5(0xf9)][_0x5776e5(0x102)]&&this[_0x5776e5(0xf9)][_0x5776e5(0x102)][_0x5776e5(0xf0)](_0x55d439)?{'title':!0x0}:null;}[_0x5ee390(0xfc)](_0x58536e){const _0x5953ad=_0x5ee390;this[_0x5953ad(0xf9)][_0x5953ad(0xfc)](_0x58536e);}}function _0x10d4(){const _0x45254d=['isMatching','pinned','1059975dPkchY','setTemplate','ck-ai-chat-history__item--active','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_PIN_BUTTON','focus','69CrXrtm','ck-confirm-view-submit','ck-ai-chat-history__item-check','ck-confirm-view-cancel','withText','children','listitem','panelPosition','setConversationPinned','246535LUkgUE','fire','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','match','span','4289472mhQOYz','add','editConversationTitle','loadingState','updateTitle','isVisible','tiny','_titleView','_createCancelEditButtonView','_createSpinnerView','highlightText','AI_CHAT_HISTORY_LOADING_PINNING','AI_CHAT_HISTORY_EDIT_NAME','locale','ck-ai-chat-history__item-title','65276EdbhfK','text','ck-ai-chat-history__item-date','ck-hidden','32229DipBsj','edit:cancel','4VSSWjD','isEdit','value','execute','change:isEdit','selectConversation','AI_CHAT_HISTORY_LOADING_RENAMING','click','ck-ai-chat-history__item-check-container','1640QicCIG','ck-ai-loader','AI_CHAT_HISTORY_LOADING_UNPINNING','isOn','ck-ai-chat-history__item-content','panelView','items','actions','_commitEditInputValue','then','Enter','_createEditInputView','removeConversation','AI_CHAT_HISTORY_LOADING_REMOVING','updateLoadingState','AI_CHAT_HISTORY_REMOVE','ck-ai-loader__text','addMany','createCollection','LOADING_LABELS','_createPinButtonView','label','ck-ai-chat-history__item--edit','element','AI_CHAT_HISTORY_REMOVE_CONFIRM','string','ck-ai-chat-history__item-row','bind','ck-ai-chat-history__item-actions','key','512922BsPcvu','div','22attktc','_createAcceptEditButtonView','ck-ai-chat-history__item-main-content','showConfirm','985836bwTMBA','_createMenuDropdownView','bindTemplate','extendTemplate','clear','ck-ai-chat-history__item','mainContent','buttonView','42DEigIJ','set','_createCheckView','AI_CHAT_HISTORY_CANCEL'];_0x10d4=function(){return _0x45254d;};return _0x10d4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43e1f8=_0x3fb2;(function(_0x2445bb,_0x84f66){const _0x2d272f=_0x3fb2,_0xee0755=_0x2445bb();while(!![]){try{const _0x5a2595=-parseInt(_0x2d272f(0xdb))/0x1+-parseInt(_0x2d272f(0xe4))/0x2+-parseInt(_0x2d272f(0xca))/0x3+parseInt(_0x2d272f(0xcb))/0x4+parseInt(_0x2d272f(0xcf))/0x5+-parseInt(_0x2d272f(0xd7))/0x6*(parseInt(_0x2d272f(0xda))/0x7)+-parseInt(_0x2d272f(0xcc))/0x8*(-parseInt(_0x2d272f(0xdf))/0x9);if(_0x5a2595===_0x84f66)break;else _0xee0755['push'](_0xee0755['shift']());}catch(_0x1af279){_0xee0755['push'](_0xee0755['shift']());}}}(_0x4c98,0x8b05f));function _0x4c98(){const _0x388fdf=['title','length','splice','823150ToENBy','bindTemplate','find','highlightText','itemsViews','_itemsListView','2396166MGSscg','4201252nlmaqS','72bDbgwC','isVisible','removeItem','2443115SPfXFS','filter','div','getItem','addMany','ck-ai-chat-history__section-title','ck-hidden','remove','6093432zzxvnB','setTemplate','isMatching','7iuibHg','267589eijcDD','ck-ai-chat-history__section','indexOf','set','1523961NyQCqv','items'];_0x4c98=function(){return _0x388fdf;};return _0x4c98();}import{ListItemView as _0x1291bb,View as _0x3997d5,ListView as _0xe788f8}from'ckeditor5/src/ui.js';function _0x3fb2(_0x12cf8f,_0x2d478e){const _0x4c9861=_0x4c98();return _0x3fb2=function(_0x3fb2a7,_0x9ee425){_0x3fb2a7=_0x3fb2a7-0xc9;let _0x439068=_0x4c9861[_0x3fb2a7];return _0x439068;},_0x3fb2(_0x12cf8f,_0x2d478e);}export class AIChatHistoryListView extends _0x1291bb{[_0x43e1f8(0xe1)];[_0x43e1f8(0xe8)];[_0x43e1f8(0xc9)];constructor(_0x2c7c54,{title:_0x1055dc,items:_0x57a981}){const _0x52be58=_0x43e1f8;super(_0x2c7c54);const _0x46a49e=this[_0x52be58(0xe5)];this[_0x52be58(0xde)](_0x52be58(0xcd),!0x0),this[_0x52be58(0xe1)]=_0x1055dc,this[_0x52be58(0xe8)]=_0x57a981;const _0x442e92=new _0x3997d5(_0x2c7c54);_0x442e92[_0x52be58(0xd8)]({'tag':_0x52be58(0xd1),'attributes':{'class':[_0x52be58(0xd4)]},'children':[this[_0x52be58(0xe1)]]}),this[_0x52be58(0xc9)]=new _0xe788f8(_0x2c7c54),this[_0x52be58(0xc9)][_0x52be58(0xe0)][_0x52be58(0xd3)](this[_0x52be58(0xe8)]),this[_0x52be58(0xd8)]({'tag':'li','attributes':{'class':[_0x52be58(0xdc),_0x46a49e['if'](_0x52be58(0xcd),_0x52be58(0xd5),_0x10fb89=>!_0x10fb89)]},'children':[_0x442e92,this[_0x52be58(0xc9)]]});}[_0x43e1f8(0xd0)](_0x2b1eff){const _0xe1ab42=_0x43e1f8,_0x231285=this[_0xe1ab42(0xe8)][_0xe1ab42(0xe2)];let _0x2329b7=0x0;for(const _0xbaff34 of this[_0xe1ab42(0xe8)]){if(_0x2b1eff){const _0x3607b7=_0xbaff34[_0xe1ab42(0xd9)](_0x2b1eff);_0xbaff34[_0xe1ab42(0xcd)]=!!_0x3607b7,_0xbaff34[_0xe1ab42(0xe7)](_0x2b1eff);}else _0xbaff34[_0xe1ab42(0xcd)]=!0x0,_0xbaff34[_0xe1ab42(0xe7)](null);_0xbaff34[_0xe1ab42(0xcd)]&&_0x2329b7++;}return this[_0xe1ab42(0xcd)]=_0x2329b7>0x0,{'resultsCount':_0x2329b7,'totalItemsCount':_0x231285};}[_0x43e1f8(0xd2)](_0x23dd0d){const _0x27e2af=_0x43e1f8;return this[_0x27e2af(0xe8)][_0x27e2af(0xe6)](_0x222cf3=>_0x222cf3['id']===_0x23dd0d);}[_0x43e1f8(0xce)](_0x221fe9){const _0x3f5257=_0x43e1f8,_0x54eaea=this[_0x3f5257(0xe8)][_0x3f5257(0xdd)](_0x221fe9);-0x1!==_0x54eaea&&(this[_0x3f5257(0xe8)][_0x3f5257(0xe3)](_0x54eaea,0x1),this[_0x3f5257(0xc9)][_0x3f5257(0xe0)][_0x3f5257(0xd6)](_0x221fe9));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4b785e=_0x2d2c;(function(_0x17b981,_0x25f201){const _0x3da4f2=_0x2d2c,_0x401807=_0x17b981();while(!![]){try{const _0x1cb314=-parseInt(_0x3da4f2(0x1f7))/0x1*(parseInt(_0x3da4f2(0x1fd))/0x2)+-parseInt(_0x3da4f2(0x1f2))/0x3*(parseInt(_0x3da4f2(0x1f5))/0x4)+-parseInt(_0x3da4f2(0x201))/0x5*(-parseInt(_0x3da4f2(0x1fc))/0x6)+-parseInt(_0x3da4f2(0x1f3))/0x7*(-parseInt(_0x3da4f2(0x1fb))/0x8)+-parseInt(_0x3da4f2(0x1f9))/0x9+parseInt(_0x3da4f2(0x1ff))/0xa+parseInt(_0x3da4f2(0x1f8))/0xb;if(_0x1cb314===_0x25f201)break;else _0x401807['push'](_0x401807['shift']());}catch(_0x4fda53){_0x401807['push'](_0x401807['shift']());}}}(_0x4d25,0x46704));import{ListView as _0x5b3b0f}from'ckeditor5/src/ui.js';function _0x4d25(){const _0x43a205=['406125KJDneF','items','120424Egrvbn','30330FALCzl','124cuPrBI','addMany','1001600cNZctb','sections','45QMNDAi','filter','699315ZHZNIA','182TBIbfv','extendTemplate','8dUiHLs','ck-ai-chat-history__sections','96cLRsHM','2956470pBXAnB'];_0x4d25=function(){return _0x43a205;};return _0x4d25();}function _0x2d2c(_0x161c39,_0x2c77be){const _0x4d25d3=_0x4d25();return _0x2d2c=function(_0x2d2cd2,_0x426746){_0x2d2cd2=_0x2d2cd2-0x1f2;let _0x26b5a6=_0x4d25d3[_0x2d2cd2];return _0x26b5a6;},_0x2d2c(_0x161c39,_0x2c77be);}export class AIChatHistorySectionListView extends _0x5b3b0f{[_0x4b785e(0x200)];constructor(_0x5f529f,_0x40e020){const _0x46c6df=_0x4b785e;super(_0x5f529f),this[_0x46c6df(0x200)]=_0x40e020,this[_0x46c6df(0x1fa)][_0x46c6df(0x1fe)](this[_0x46c6df(0x200)]),this[_0x46c6df(0x1f4)]({'attributes':{'class':[_0x46c6df(0x1f6)]}});}[_0x4b785e(0x202)](_0x5265c8){const _0x5b9b41=_0x4b785e;let _0x3605cd=0x0,_0xb637b7=0x0;for(const _0x1cf3c5 of this[_0x5b9b41(0x200)]){const {resultsCount:_0xcc656f,totalItemsCount:_0x267b13}=_0x1cf3c5[_0x5b9b41(0x202)](_0x5265c8);_0x3605cd+=_0xcc656f,_0xb637b7+=_0x267b13;}return{'resultsCount':_0x3605cd,'totalItemsCount':_0xb637b7};}}
|