@ckeditor/ckeditor5-ai 47.1.0-alpha.1 → 47.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xfe841e=_0x21b7;(function(_0xcfa4c3,_0x339a79){const _0x500d2f=_0x21b7,_0x53f5d5=_0xcfa4c3();while(!![]){try{const _0x459dea=parseInt(_0x500d2f(0x188))/0x1*(-parseInt(_0x500d2f(0x1bd))/0x2)+-parseInt(_0x500d2f(0x196))/0x3+-parseInt(_0x500d2f(0x1bc))/0x4*(-parseInt(_0x500d2f(0x195))/0x5)+-parseInt(_0x500d2f(0x1d6))/0x6*(parseInt(_0x500d2f(0x197))/0x7)+-parseInt(_0x500d2f(0x1d9))/0x8*(parseInt(_0x500d2f(0x1a5))/0x9)+-parseInt(_0x500d2f(0x1a2))/0xa+-parseInt(_0x500d2f(0x1c2))/0xb*(-parseInt(_0x500d2f(0x187))/0xc);if(_0x459dea===_0x339a79)break;else _0x53f5d5['push'](_0x53f5d5['shift']());}catch(_0x2cdd67){_0x53f5d5['push'](_0x53f5d5['shift']());}}}(_0x29df,0xe0a46));import{KeystrokeHandler as _0x511bfd}from'ckeditor5/src/utils.js';function _0x21b7(_0x4411a6,_0x5e58b3){const _0x29dfe1=_0x29df();return _0x21b7=function(_0x21b78c,_0x43eadc){_0x21b78c=_0x21b78c-0x185;let _0x42216b=_0x29dfe1[_0x21b78c];return _0x42216b;},_0x21b7(_0x4411a6,_0x5e58b3);}import{BalloonPanelView as _0x22c92c,BodyCollection as _0x1b05ad,ButtonView as _0x49abbd,clickOutsideHandler as _0x3dd6d9,ListItemButtonView as _0x393caf,ListItemView as _0x1047e2,ListView as _0x487f65,SplitButtonView as _0x3caf8a,UIModel as _0x9af8c4,View as _0x8f7ca1}from'ckeditor5/src/ui.js';import{IconCheck as _0x3ee3a7,IconAddComment as _0x4eace6,IconDocumentWithLoupe as _0x3326dd}from'ckeditor5/src/icons.js';import{getTranslation as _0x5e429a}from'../../../aicore/utils/common-translations.js';export const ACTIONS=[_0xfe841e(0x186),_0xfe841e(0x18b),_0xfe841e(0x1da)];export class AIChatFeedSuggestionItemActionsView extends _0x8f7ca1{[_0xfe841e(0x193)];[_0xfe841e(0x190)];[_0xfe841e(0x1c6)];[_0xfe841e(0x1bf)];[_0xfe841e(0x1d8)];[_0xfe841e(0x1b9)]=0x1;[_0xfe841e(0x19f)];[_0xfe841e(0x1d5)];[_0xfe841e(0x1b3)]=!0x0;constructor(_0x2d8f32,_0x4d8122){const _0x171030=_0xfe841e;super(_0x2d8f32),this[_0x171030(0x19f)]=_0x4d8122||[...ACTIONS],this[_0x171030(0x1d5)]=[...this[_0x171030(0x19f)]];const _0xb1c213=this[_0x171030(0x18a)];this[_0x171030(0x1cc)](_0x171030(0x185),!0x0),this[_0x171030(0x1cc)](_0x171030(0x1a0),!0x0),this[_0x171030(0x1c6)]=new _0x9af8c4({'label':Hn(_0x171030(0x186),_0x2d8f32,this[_0x171030(0x1b9)]),'icon':_0x3ee3a7,'withText':!0x0,'type':_0x171030(0x1ca),'actionName':_0x171030(0x186)}),this[_0x171030(0x1bf)]=new _0x9af8c4({'label':Hn(_0x171030(0x1da),_0x2d8f32,this[_0x171030(0x1b9)]),'icon':_0x3326dd,'withText':!0x0,'type':_0x171030(0x1ca),'actionName':_0x171030(0x1da)}),this[_0x171030(0x1d8)]=new _0x9af8c4({'label':Hn(_0x171030(0x18b),_0x2d8f32,this[_0x171030(0x1b9)]),'icon':_0x4eace6,'withText':!0x0,'type':_0x171030(0x1ca),'actionName':_0x171030(0x18b)}),this[_0x171030(0x193)]=this[_0x171030(0x1be)](_0x2d8f32),this[_0x171030(0x190)]=this[_0x171030(0x1d1)]([this[_0x171030(0x193)]]),this[_0x171030(0x1b5)]({'tag':_0x171030(0x18f),'attributes':{'class':['ck',_0x171030(0x1d4),_0xb1c213['if'](_0x171030(0x1a0),_0x171030(0x18d),_0x3e8c0b=>!_0x3e8c0b)]},'children':this[_0x171030(0x190)]}),this[_0x171030(0x1cf)](this,_0x171030(0x1e4),()=>{const _0x4f854d=_0x171030;this[_0x4f854d(0x1d5)]=this[_0x4f854d(0x19b)]?this[_0x4f854d(0x19f)][_0x4f854d(0x1db)](_0x434b13=>_0x4f854d(0x186)!==_0x434b13):[...this[_0x4f854d(0x19f)]],this[_0x4f854d(0x1bb)](_0x2d8f32);});}[_0xfe841e(0x1bb)](_0x18c9c1){const _0x57cb11=_0xfe841e;this[_0x57cb11(0x190)][_0x57cb11(0x1a1)](this[_0x57cb11(0x193)])&&(this[_0x57cb11(0x190)][_0x57cb11(0x1c0)](this[_0x57cb11(0x193)]),this[_0x57cb11(0x193)][_0x57cb11(0x1b2)]()),0x0!=this[_0x57cb11(0x1d5)][_0x57cb11(0x1b6)]&&(this[_0x57cb11(0x193)]=this[_0x57cb11(0x1be)](_0x18c9c1),this[_0x57cb11(0x190)][_0x57cb11(0x1e5)](this[_0x57cb11(0x193)]));}[_0xfe841e(0x1be)](_0x6fbc19){const _0x105568=_0xfe841e,_0x25744c=0x1===this[_0x105568(0x1d5)][_0x105568(0x1b6)]?this[_0x105568(0x1b0)](_0x6fbc19):this[_0x105568(0x1cd)](_0x6fbc19),_0xd2d154=this[_0x105568(0x1b3)]?'':_0x105568(0x1c3);_0x25744c[_0x105568(0x1cc)]({'label':Hn(this[_0x105568(0x1d5)][0x0],_0x6fbc19,this[_0x105568(0x1b9)]),'tooltip':Un(this[_0x105568(0x1d5)][0x0],_0x6fbc19,this[_0x105568(0x1b9)]),'withText':!0x0,'class':_0x105568(0x198)+_0xd2d154});for(const _0x4eeae5 of this[_0x105568(0x1d5)])_0x25744c['on'](_0x4eeae5,()=>{const _0x585873=_0x105568;this[_0x585873(0x1ab)](_0x4eeae5);});return this[_0x105568(0x1b3)]=!0x1,_0x25744c;}[_0xfe841e(0x1b0)](_0x57d985){const _0x5508e5=_0xfe841e,_0xa023af=new _0x49abbd(_0x57d985);return _0xa023af[_0x5508e5(0x1cc)]({'class':_0x5508e5(0x19c),'withText':!0x0}),_0xa023af['on'](_0x5508e5(0x191),()=>{const _0x221ed3=_0x5508e5;_0xa023af[_0x221ed3(0x1ab)](this[_0x221ed3(0x1d5)][0x0]);}),_0xa023af;}[_0xfe841e(0x1cd)](_0x45b4e9){const _0x4df0c9=_0xfe841e,_0x2d1257=new Gn(_0x45b4e9,{'listItemModels':this[_0x4df0c9(0x1d5)][_0x4df0c9(0x1de)](_0x1674ea=>{const _0x3525c8=_0x4df0c9;switch(_0x1674ea){case _0x3525c8(0x186):return this[_0x3525c8(0x1c6)];case _0x3525c8(0x1da):return this[_0x3525c8(0x1bf)];case _0x3525c8(0x18b):return this[_0x3525c8(0x1d8)];}})});return _0x2d1257[_0x4df0c9(0x1cc)]({'label':Hn(this[_0x4df0c9(0x1d5)][0x0],_0x45b4e9,this[_0x4df0c9(0x1b9)]),'tooltip':Un(this[_0x4df0c9(0x1d5)][0x0],_0x45b4e9,this[_0x4df0c9(0x1b9)]),'withText':!0x0,'class':_0x4df0c9(0x1d4),'balloonPanelClass':_0x4df0c9(0x1a3)}),_0x2d1257[_0x4df0c9(0x1b4)](_0x4df0c9(0x185))['to'](this),_0x2d1257;}[_0xfe841e(0x1c8)](_0x3285ac){const _0x59e1c5=_0xfe841e,_0x1751eb=this[_0x59e1c5(0x19e)];this[_0x59e1c5(0x1b9)]=_0x3285ac||this[_0x59e1c5(0x1b9)],this[_0x59e1c5(0x193)][_0x59e1c5(0x1cc)]({'label':Hn(this[_0x59e1c5(0x1d5)][0x0],_0x1751eb,this[_0x59e1c5(0x1b9)]),'tooltip':Un(this[_0x59e1c5(0x1d5)][0x0],_0x1751eb,this[_0x59e1c5(0x1b9)])}),this[_0x59e1c5(0x1c6)][_0x59e1c5(0x1ad)]=Hn(_0x59e1c5(0x186),_0x1751eb,this[_0x59e1c5(0x1b9)]),this[_0x59e1c5(0x1bf)][_0x59e1c5(0x1ad)]=Hn(_0x59e1c5(0x1da),_0x1751eb,this[_0x59e1c5(0x1b9)]),this[_0x59e1c5(0x1d8)][_0x59e1c5(0x1ad)]=Hn(_0x59e1c5(0x18b),_0x1751eb,this[_0x59e1c5(0x1b9)]);}}class Gn extends _0x3caf8a{[_0xfe841e(0x1d0)];[_0xfe841e(0x19d)];[_0xfe841e(0x1c4)];[_0xfe841e(0x1e2)];constructor(_0x4cacb5,_0x394b30){const _0x3b283c=_0xfe841e;super(_0x4cacb5),this[_0x3b283c(0x19d)]=new _0x22c92c(this[_0x3b283c(0x19e)]),this[_0x3b283c(0x1d0)]=new _0x1b05ad(this[_0x3b283c(0x19e)]),this[_0x3b283c(0x1d0)][_0x3b283c(0x192)](),this[_0x3b283c(0x1cc)](_0x3b283c(0x189),''),this[_0x3b283c(0x19d)][_0x3b283c(0x1b4)](_0x3b283c(0x1cb))['to'](this,_0x3b283c(0x189)),this[_0x3b283c(0x1c4)]=this[_0x3b283c(0x18e)](_0x394b30[_0x3b283c(0x1a8)][_0x3b283c(0x1dd)](0x1)),this[_0x3b283c(0x1d0)][_0x3b283c(0x1e5)](this[_0x3b283c(0x19d)]),this[_0x3b283c(0x19d)][_0x3b283c(0x1df)][_0x3b283c(0x1e5)](this[_0x3b283c(0x1c4)]),this[_0x3b283c(0x1dc)][_0x3b283c(0x1ce)](_0x3b283c(0x1e3)),this[_0x3b283c(0x1dc)][_0x3b283c(0x1cc)](_0x3b283c(0x1e3),_0x5e429a(this[_0x3b283c(0x19e)],_0x3b283c(0x1b8))),this[_0x3b283c(0x1ba)](),this['on'](_0x3b283c(0x191),()=>{const _0x1f3a06=_0x3b283c,_0x5a5032=_0x394b30[_0x1f3a06(0x1a8)][0x0][_0x1f3a06(0x1d3)];this[_0x1f3a06(0x1ab)](_0x5a5032),this[_0x1f3a06(0x19d)][_0x1f3a06(0x199)](),this[_0x1f3a06(0x1dc)][_0x1f3a06(0x1af)]();}),this['on'](_0x3b283c(0x1a4),()=>{const _0x54a91c=_0x3b283c;this[_0x54a91c(0x19d)][_0x54a91c(0x1a0)]?(this[_0x54a91c(0x19d)][_0x54a91c(0x199)](),this[_0x54a91c(0x1dc)][_0x54a91c(0x1af)]()):(this[_0x54a91c(0x19d)][_0x54a91c(0x1d2)]({'target':this[_0x54a91c(0x1a9)],'positions':[_0x54a91c(0x1c1)===this[_0x54a91c(0x19e)][_0x54a91c(0x1e6)]?yn:Pn]}),this[_0x54a91c(0x1c4)][_0x54a91c(0x1af)]());}),_0x3dd6d9({'emitter':this[_0x3b283c(0x19d)],'callback':()=>{const _0x4cc622=_0x3b283c;this[_0x4cc622(0x19d)][_0x4cc622(0x199)]();},'activator':()=>this[_0x3b283c(0x19d)][_0x3b283c(0x1a0)],'contextElements':()=>[this[_0x3b283c(0x1a9)],this[_0x3b283c(0x19d)][_0x3b283c(0x1a9)]]});}[_0xfe841e(0x18e)](_0x58f70b){const _0x278221=_0xfe841e,_0x57e2e9=this[_0x278221(0x19e)],_0x8fcb4a=new _0x487f65(_0x57e2e9);for(const _0x38efec of _0x58f70b){const _0x4c5a21=new _0x1047e2(_0x57e2e9),_0x35fe72=new _0x393caf(_0x57e2e9);_0x35fe72[_0x278221(0x1b4)](...Object[_0x278221(0x1b7)](_0x38efec))['to'](_0x38efec),_0x35fe72[_0x278221(0x1e0)](_0x278221(0x191))['to'](_0x8fcb4a),_0x4c5a21[_0x278221(0x190)][_0x278221(0x1e5)](_0x35fe72),_0x8fcb4a[_0x278221(0x19a)][_0x278221(0x1e5)](_0x4c5a21);}return _0x8fcb4a[_0x278221(0x19a)][_0x278221(0x1e0)](_0x278221(0x191))['to'](this),_0x8fcb4a['on'](_0x278221(0x191),_0x3e6c17=>{const _0x18bd68=_0x278221,_0x5ef09a=_0x3e6c17[_0x18bd68(0x1aa)];this[_0x18bd68(0x1ab)](_0x5ef09a[_0x18bd68(0x1d3)]),this[_0x18bd68(0x19d)][_0x18bd68(0x199)](),this[_0x18bd68(0x1dc)][_0x18bd68(0x1af)]();}),_0x8fcb4a;}[_0xfe841e(0x1ba)](){const _0x3d12de=_0xfe841e;this[_0x3d12de(0x1e2)]=new _0x511bfd(),this[_0x3d12de(0x1e2)][_0x3d12de(0x1cf)](this[_0x3d12de(0x19d)][_0x3d12de(0x1a9)]),this[_0x3d12de(0x1e2)][_0x3d12de(0x1cc)](_0x3d12de(0x1b1),(_0x4aac6f,_0x4e8a70)=>{const _0x365a67=_0x3d12de;this[_0x365a67(0x19d)][_0x365a67(0x199)](),this[_0x365a67(0x1dc)][_0x365a67(0x1af)](),_0x4e8a70();});}[_0xfe841e(0x1b2)](){const _0x25b392=_0xfe841e;super[_0x25b392(0x1b2)](),this[_0x25b392(0x1e2)][_0x25b392(0x1b2)](),this[_0x25b392(0x19d)][_0x25b392(0x1b2)](),this[_0x25b392(0x1d0)][_0x25b392(0x1d7)]();}}function yn(_0x4ba18b){const _0x338992=_0xfe841e;return{'top':_0x4ba18b[_0x338992(0x1a6)],'left':_0x4ba18b[_0x338992(0x1c9)],'name':_0x338992(0x1ac),'config':{'withArrow':!0x1}};}function _0x29df(){const _0x3d4dbc=['balloonPanelView','locale','_dropdownOriginalConfig','isVisible','has','11492460zNPxdi','ck-ai-chat__feed__ai-suggestion__actions__balloon','open','259020BrsZaB','bottom','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','listItemModels','element','source','fire','arrowless','label','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','focus','_createActionsButton','esc','destroy','_firstRender','bind','setTemplate','length','keys','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','_partsCount','_setUpKeystrokes','_updateDropdownActions','4JTUMxP','234MuUPok','_createActionsDropdownOrButton','showChangeInTextModel','remove','ltr','57874157LEZsuZ','ck-ai-chat__feed__ai-suggestion__actions--no-animation','listView','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','applySuggestionModel','width','updateLabels','left','button','class','set','_createActionsDropdown','unbind','listenTo','bodyCollection','createCollection','pin','actionName','ck-ai-chat__feed__ai-suggestion__actions','_dropdownCurrentConfig','83958wJcWdJ','detachFromDom','insertSuggestionModel','128EHAppy','showChangeInText','filter','arrowView','slice','map','content','delegate','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','keystrokeHandler','tooltip','change:isTrackChangesOn','add','uiLanguageDirection','isEnabled','applySuggestion','12DcUbqg','7895JpWVHF','balloonPanelClass','bindTemplate','insertSuggestion','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','ck-hidden','_setUpList','div','children','execute','attachToDom','actionsButton','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','1575745FQpxsh','3975780NwdzbF','399kqDFBH','ck-ai-chat__feed__ai-suggestion__actions\x20','hide','items','isTrackChangesOn','ck-ai-button-primary'];_0x29df=function(){return _0x3d4dbc;};return _0x29df();}function Pn(_0x1ac5f4,_0x368a22){const _0x7a1f4e=_0xfe841e;return{'top':_0x1ac5f4[_0x7a1f4e(0x1a6)],'left':_0x1ac5f4[_0x7a1f4e(0x1c9)]-(_0x368a22[_0x7a1f4e(0x1c7)]-_0x1ac5f4[_0x7a1f4e(0x1c7)]),'name':_0x7a1f4e(0x1ac),'config':{'withArrow':!0x1}};}function Hn(_0x46959e,_0x5efa44,_0x22ab5d){const _0x19e940=_0xfe841e;switch(_0x46959e){case _0x19e940(0x186):return _0x5e429a(_0x5efa44,_0x19e940(0x1e1),_0x22ab5d);case _0x19e940(0x1da):return _0x5e429a(_0x5efa44,_0x19e940(0x1a7),_0x22ab5d);case _0x19e940(0x18b):return _0x5e429a(_0x5efa44,_0x19e940(0x1c5),_0x22ab5d);}}function Un(_0x50a2d3,_0x32a6b2,_0x87c703){const _0x5f3a47=_0xfe841e;switch(_0x50a2d3){case _0x5f3a47(0x186):return _0x5e429a(_0x32a6b2,_0x5f3a47(0x194),_0x87c703);case _0x5f3a47(0x1da):return _0x5e429a(_0x32a6b2,_0x5f3a47(0x18c),_0x87c703);case _0x5f3a47(0x18b):return _0x5e429a(_0x32a6b2,_0x5f3a47(0x1ae),_0x87c703);}}
|
|
23
|
+
const _0x430bb0=_0xc3de;function _0xc3de(_0x53665d,_0x588f28){const _0x139103=_0x1391();return _0xc3de=function(_0xc3de4b,_0x27093d){_0xc3de4b=_0xc3de4b-0x1b5;let _0x11f251=_0x139103[_0xc3de4b];return _0x11f251;},_0xc3de(_0x53665d,_0x588f28);}(function(_0xe6fea,_0x592f18){const _0xd4800f=_0xc3de,_0x41a497=_0xe6fea();while(!![]){try{const _0x1166b5=parseInt(_0xd4800f(0x204))/0x1*(-parseInt(_0xd4800f(0x1d2))/0x2)+parseInt(_0xd4800f(0x202))/0x3+parseInt(_0xd4800f(0x1ec))/0x4*(-parseInt(_0xd4800f(0x1e2))/0x5)+-parseInt(_0xd4800f(0x20f))/0x6*(parseInt(_0xd4800f(0x1df))/0x7)+-parseInt(_0xd4800f(0x1cf))/0x8+-parseInt(_0xd4800f(0x1ce))/0x9+parseInt(_0xd4800f(0x1be))/0xa;if(_0x1166b5===_0x592f18)break;else _0x41a497['push'](_0x41a497['shift']());}catch(_0x24dbdd){_0x41a497['push'](_0x41a497['shift']());}}}(_0x1391,0xb9422));import{KeystrokeHandler as _0x15137e}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x2ba922,BodyCollection as _0x38bfc1,ButtonView as _0x275776,clickOutsideHandler as _0x2e79f8,ListItemButtonView as _0x115381,ListItemView as _0x4e8cf9,ListView as _0x29ba27,SplitButtonView as _0x3ba56b,UIModel as _0x6ce7ae,View as _0x1f6f17}from'ckeditor5/src/ui.js';function _0x1391(){const _0x592dac=['button','actionName','class','delegate','detachFromDom','createCollection','27713UCfZgq','balloonPanelView','ck-ai-button-primary','150930NhdsWo','length','hide','keystrokeHandler','div','items','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','width','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','element','36oSXAxL','_updateDropdownActions','pin','_dropdownOriginalConfig','bodyCollection','execute','map','tooltip','content','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','ck-ai-chat__feed__ai-suggestion__actions__balloon','set','isVisible','isEnabled','actionsButton','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','isTrackChangesOn','ltr','locale','add','_setUpList','bottom','1841898LXokyX','balloonPanelClass','97gpqxgX','has','ck-ai-chat__feed__ai-suggestion__actions--no-animation','change:isTrackChangesOn','arrowless','insertSuggestionModel','label','listItemModels','uiLanguageDirection','arrowView','bindTemplate','1278cEhmMn','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','listenTo','source','_setUpKeystrokes','_firstRender','children','attachToDom','remove','_createActionsDropdown','_partsCount','listView','ck-ai-chat__feed__ai-suggestion__actions\x20','slice','focus','36239780NUFkAB','_dropdownCurrentConfig','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','ck-hidden','fire','esc','filter','applySuggestionModel','open','destroy','showChangeInText','_createActionsDropdownOrButton','ck-ai-chat__feed__ai-suggestion__actions','showChangeInTextModel','applySuggestion','unbind','8944515jgrXwy','9621096nPtptn','insertSuggestion','setTemplate','3458jKGagQ','left','updateLabels','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','bind','keys','_createActionsButton'];_0x1391=function(){return _0x592dac;};return _0x1391();}import{IconCheck as _0x3bbc49,IconAddComment as _0x5e7c10,IconDocumentWithLoupe as _0x5203c0}from'ckeditor5/src/icons.js';import{getTranslation as _0xf11d16}from'../../../aicore/utils/common-translations.js';export const ACTIONS=[_0x430bb0(0x1cc),_0x430bb0(0x1d0),_0x430bb0(0x1c8)];export class AIChatFeedSuggestionItemActionsView extends _0x1f6f17{[_0x430bb0(0x1fa)];[_0x430bb0(0x1b5)];[_0x430bb0(0x1c5)];[_0x430bb0(0x1cb)];[_0x430bb0(0x209)];[_0x430bb0(0x1b9)]=0x1;[_0x430bb0(0x1ef)];[_0x430bb0(0x1bf)];[_0x430bb0(0x214)]=!0x0;constructor(_0x220698,_0x453a57){const _0x5dd9e2=_0x430bb0;super(_0x220698),this[_0x5dd9e2(0x1ef)]=_0x453a57||[...ACTIONS],this[_0x5dd9e2(0x1bf)]=[...this[_0x5dd9e2(0x1ef)]];const _0x380eab=this[_0x5dd9e2(0x20e)];this[_0x5dd9e2(0x1f7)](_0x5dd9e2(0x1f9),!0x0),this[_0x5dd9e2(0x1f7)](_0x5dd9e2(0x1f8),!0x0),this[_0x5dd9e2(0x1c5)]=new _0x6ce7ae({'label':Pn(_0x5dd9e2(0x1cc),_0x220698,this[_0x5dd9e2(0x1b9)]),'icon':_0x3bbc49,'withText':!0x0,'type':_0x5dd9e2(0x1d9),'actionName':_0x5dd9e2(0x1cc)}),this[_0x5dd9e2(0x1cb)]=new _0x6ce7ae({'label':Pn(_0x5dd9e2(0x1c8),_0x220698,this[_0x5dd9e2(0x1b9)]),'icon':_0x5203c0,'withText':!0x0,'type':_0x5dd9e2(0x1d9),'actionName':_0x5dd9e2(0x1c8)}),this[_0x5dd9e2(0x209)]=new _0x6ce7ae({'label':Pn(_0x5dd9e2(0x1d0),_0x220698,this[_0x5dd9e2(0x1b9)]),'icon':_0x5e7c10,'withText':!0x0,'type':_0x5dd9e2(0x1d9),'actionName':_0x5dd9e2(0x1d0)}),this[_0x5dd9e2(0x1fa)]=this[_0x5dd9e2(0x1c9)](_0x220698),this[_0x5dd9e2(0x1b5)]=this[_0x5dd9e2(0x1de)]([this[_0x5dd9e2(0x1fa)]]),this[_0x5dd9e2(0x1d1)]({'tag':_0x5dd9e2(0x1e6),'attributes':{'class':['ck',_0x5dd9e2(0x1ca),_0x380eab['if'](_0x5dd9e2(0x1f8),_0x5dd9e2(0x1c1),_0x34d0b5=>!_0x34d0b5)]},'children':this[_0x5dd9e2(0x1b5)]}),this[_0x5dd9e2(0x211)](this,_0x5dd9e2(0x207),()=>{const _0x5c83f9=_0x5dd9e2;this[_0x5c83f9(0x1bf)]=this[_0x5c83f9(0x1fc)]?this[_0x5c83f9(0x1ef)][_0x5c83f9(0x1c4)](_0x218f6f=>_0x5c83f9(0x1cc)!==_0x218f6f):[...this[_0x5c83f9(0x1ef)]],this[_0x5c83f9(0x1ed)](_0x220698);});}[_0x430bb0(0x1ed)](_0x150d85){const _0x235728=_0x430bb0;this[_0x235728(0x1b5)][_0x235728(0x205)](this[_0x235728(0x1fa)])&&(this[_0x235728(0x1b5)][_0x235728(0x1b7)](this[_0x235728(0x1fa)]),this[_0x235728(0x1fa)][_0x235728(0x1c7)]()),0x0!=this[_0x235728(0x1bf)][_0x235728(0x1e3)]&&(this[_0x235728(0x1fa)]=this[_0x235728(0x1c9)](_0x150d85),this[_0x235728(0x1b5)][_0x235728(0x1ff)](this[_0x235728(0x1fa)]));}[_0x430bb0(0x1c9)](_0x2b0ef2){const _0x26d89f=_0x430bb0,_0x38a5f1=0x1===this[_0x26d89f(0x1bf)][_0x26d89f(0x1e3)]?this[_0x26d89f(0x1d8)](_0x2b0ef2):this[_0x26d89f(0x1b8)](_0x2b0ef2),_0x4232b4=this[_0x26d89f(0x214)]?'':_0x26d89f(0x206);_0x38a5f1[_0x26d89f(0x1f7)]({'label':Pn(this[_0x26d89f(0x1bf)][0x0],_0x2b0ef2,this[_0x26d89f(0x1b9)]),'tooltip':Hn(this[_0x26d89f(0x1bf)][0x0],_0x2b0ef2,this[_0x26d89f(0x1b9)]),'withText':!0x0,'class':_0x26d89f(0x1bb)+_0x4232b4});for(const _0x23d8c0 of this[_0x26d89f(0x1bf)])_0x38a5f1['on'](_0x23d8c0,()=>{const _0x31d314=_0x26d89f;this[_0x31d314(0x1c2)](_0x23d8c0);});return this[_0x26d89f(0x214)]=!0x1,_0x38a5f1;}[_0x430bb0(0x1d8)](_0x18cfb3){const _0x409103=_0x430bb0,_0x4f547c=new _0x275776(_0x18cfb3);return _0x4f547c[_0x409103(0x1f7)]({'class':_0x409103(0x1e1),'withText':!0x0}),_0x4f547c['on'](_0x409103(0x1f1),()=>{const _0x1c107b=_0x409103;_0x4f547c[_0x1c107b(0x1c2)](this[_0x1c107b(0x1bf)][0x0]);}),_0x4f547c;}[_0x430bb0(0x1b8)](_0x53e8e1){const _0x34d45d=_0x430bb0,_0x573314=new Nn(_0x53e8e1,{'listItemModels':this[_0x34d45d(0x1bf)][_0x34d45d(0x1f2)](_0x29520c=>{const _0x18c274=_0x34d45d;switch(_0x29520c){case _0x18c274(0x1cc):return this[_0x18c274(0x1c5)];case _0x18c274(0x1c8):return this[_0x18c274(0x1cb)];case _0x18c274(0x1d0):return this[_0x18c274(0x209)];}})});return _0x573314[_0x34d45d(0x1f7)]({'label':Pn(this[_0x34d45d(0x1bf)][0x0],_0x53e8e1,this[_0x34d45d(0x1b9)]),'tooltip':Hn(this[_0x34d45d(0x1bf)][0x0],_0x53e8e1,this[_0x34d45d(0x1b9)]),'withText':!0x0,'class':_0x34d45d(0x1ca),'balloonPanelClass':_0x34d45d(0x1f6)}),_0x573314[_0x34d45d(0x1d6)](_0x34d45d(0x1f9))['to'](this),_0x573314;}[_0x430bb0(0x1d4)](_0x1ec419){const _0x501ef0=_0x430bb0,_0x3d0e2f=this[_0x501ef0(0x1fe)];this[_0x501ef0(0x1b9)]=_0x1ec419||this[_0x501ef0(0x1b9)],this[_0x501ef0(0x1fa)][_0x501ef0(0x1f7)]({'label':Pn(this[_0x501ef0(0x1bf)][0x0],_0x3d0e2f,this[_0x501ef0(0x1b9)]),'tooltip':Hn(this[_0x501ef0(0x1bf)][0x0],_0x3d0e2f,this[_0x501ef0(0x1b9)])}),this[_0x501ef0(0x1c5)][_0x501ef0(0x20a)]=Pn(_0x501ef0(0x1cc),_0x3d0e2f,this[_0x501ef0(0x1b9)]),this[_0x501ef0(0x1cb)][_0x501ef0(0x20a)]=Pn(_0x501ef0(0x1c8),_0x3d0e2f,this[_0x501ef0(0x1b9)]),this[_0x501ef0(0x209)][_0x501ef0(0x20a)]=Pn(_0x501ef0(0x1d0),_0x3d0e2f,this[_0x501ef0(0x1b9)]);}}class Nn extends _0x3ba56b{[_0x430bb0(0x1f0)];[_0x430bb0(0x1e0)];[_0x430bb0(0x1ba)];[_0x430bb0(0x1e5)];constructor(_0x2b319c,_0x727150){const _0x410bfb=_0x430bb0;super(_0x2b319c),this[_0x410bfb(0x1e0)]=new _0x2ba922(this[_0x410bfb(0x1fe)]),this[_0x410bfb(0x1f0)]=new _0x38bfc1(this[_0x410bfb(0x1fe)]),this[_0x410bfb(0x1f0)][_0x410bfb(0x1b6)](),this[_0x410bfb(0x1f7)](_0x410bfb(0x203),''),this[_0x410bfb(0x1e0)][_0x410bfb(0x1d6)](_0x410bfb(0x1db))['to'](this,_0x410bfb(0x203)),this[_0x410bfb(0x1ba)]=this[_0x410bfb(0x200)](_0x727150[_0x410bfb(0x20b)][_0x410bfb(0x1bc)](0x1)),this[_0x410bfb(0x1f0)][_0x410bfb(0x1ff)](this[_0x410bfb(0x1e0)]),this[_0x410bfb(0x1e0)][_0x410bfb(0x1f4)][_0x410bfb(0x1ff)](this[_0x410bfb(0x1ba)]),this[_0x410bfb(0x20d)][_0x410bfb(0x1cd)](_0x410bfb(0x1f3)),this[_0x410bfb(0x20d)][_0x410bfb(0x1f7)](_0x410bfb(0x1f3),_0xf11d16(this[_0x410bfb(0x1fe)],_0x410bfb(0x1e8))),this[_0x410bfb(0x213)](),this['on'](_0x410bfb(0x1f1),()=>{const _0x463bd1=_0x410bfb,_0xa6ba6c=_0x727150[_0x463bd1(0x20b)][0x0][_0x463bd1(0x1da)];this[_0x463bd1(0x1c2)](_0xa6ba6c),this[_0x463bd1(0x1e0)][_0x463bd1(0x1e4)](),this[_0x463bd1(0x20d)][_0x463bd1(0x1bd)]();}),this['on'](_0x410bfb(0x1c6),()=>{const _0x398331=_0x410bfb;this[_0x398331(0x1e0)][_0x398331(0x1f8)]?(this[_0x398331(0x1e0)][_0x398331(0x1e4)](),this[_0x398331(0x20d)][_0x398331(0x1bd)]()):(this[_0x398331(0x1e0)][_0x398331(0x1ee)]({'target':this[_0x398331(0x1eb)],'positions':[_0x398331(0x1fd)===this[_0x398331(0x1fe)][_0x398331(0x20c)]?Gn:yn]}),this[_0x398331(0x1ba)][_0x398331(0x1bd)]());}),_0x2e79f8({'emitter':this[_0x410bfb(0x1e0)],'callback':()=>{const _0x5e0fb1=_0x410bfb;this[_0x5e0fb1(0x1e0)][_0x5e0fb1(0x1e4)]();},'activator':()=>this[_0x410bfb(0x1e0)][_0x410bfb(0x1f8)],'contextElements':()=>[this[_0x410bfb(0x1eb)],this[_0x410bfb(0x1e0)][_0x410bfb(0x1eb)]]});}[_0x430bb0(0x200)](_0x3ab409){const _0x5d0a53=_0x430bb0,_0x399674=this[_0x5d0a53(0x1fe)],_0x24b1dd=new _0x29ba27(_0x399674);for(const _0x5a21e4 of _0x3ab409){const _0x2a385a=new _0x4e8cf9(_0x399674),_0x30fa8d=new _0x115381(_0x399674);_0x30fa8d[_0x5d0a53(0x1d6)](...Object[_0x5d0a53(0x1d7)](_0x5a21e4))['to'](_0x5a21e4),_0x30fa8d[_0x5d0a53(0x1dc)](_0x5d0a53(0x1f1))['to'](_0x24b1dd),_0x2a385a[_0x5d0a53(0x1b5)][_0x5d0a53(0x1ff)](_0x30fa8d),_0x24b1dd[_0x5d0a53(0x1e7)][_0x5d0a53(0x1ff)](_0x2a385a);}return _0x24b1dd[_0x5d0a53(0x1e7)][_0x5d0a53(0x1dc)](_0x5d0a53(0x1f1))['to'](this),_0x24b1dd['on'](_0x5d0a53(0x1f1),_0x31ad7b=>{const _0x3d2c79=_0x5d0a53,_0x3dc832=_0x31ad7b[_0x3d2c79(0x212)];this[_0x3d2c79(0x1c2)](_0x3dc832[_0x3d2c79(0x1da)]),this[_0x3d2c79(0x1e0)][_0x3d2c79(0x1e4)](),this[_0x3d2c79(0x20d)][_0x3d2c79(0x1bd)]();}),_0x24b1dd;}[_0x430bb0(0x213)](){const _0xa61874=_0x430bb0;this[_0xa61874(0x1e5)]=new _0x15137e(),this[_0xa61874(0x1e5)][_0xa61874(0x211)](this[_0xa61874(0x1e0)][_0xa61874(0x1eb)]),this[_0xa61874(0x1e5)][_0xa61874(0x1f7)](_0xa61874(0x1c3),(_0x2a8c3c,_0x134f1b)=>{const _0xdbc14a=_0xa61874;this[_0xdbc14a(0x1e0)][_0xdbc14a(0x1e4)](),this[_0xdbc14a(0x20d)][_0xdbc14a(0x1bd)](),_0x134f1b();});}[_0x430bb0(0x1c7)](){const _0x2b5efc=_0x430bb0;super[_0x2b5efc(0x1c7)](),this[_0x2b5efc(0x1e5)][_0x2b5efc(0x1c7)](),this[_0x2b5efc(0x1e0)][_0x2b5efc(0x1c7)](),this[_0x2b5efc(0x1f0)][_0x2b5efc(0x1dd)]();}}function Gn(_0x1891e7){const _0x586070=_0x430bb0;return{'top':_0x1891e7[_0x586070(0x201)],'left':_0x1891e7[_0x586070(0x1d3)],'name':_0x586070(0x208),'config':{'withArrow':!0x1}};}function yn(_0x5dcfd9,_0x2fed5c){const _0x452028=_0x430bb0;return{'top':_0x5dcfd9[_0x452028(0x201)],'left':_0x5dcfd9[_0x452028(0x1d3)]-(_0x2fed5c[_0x452028(0x1e9)]-_0x5dcfd9[_0x452028(0x1e9)]),'name':_0x452028(0x208),'config':{'withArrow':!0x1}};}function Pn(_0x6e0659,_0x3e777f,_0x22e125){const _0x1d291f=_0x430bb0;switch(_0x6e0659){case _0x1d291f(0x1cc):return _0xf11d16(_0x3e777f,_0x1d291f(0x1ea),_0x22e125);case _0x1d291f(0x1c8):return _0xf11d16(_0x3e777f,_0x1d291f(0x210),_0x22e125);case _0x1d291f(0x1d0):return _0xf11d16(_0x3e777f,_0x1d291f(0x1d5),_0x22e125);}}function Hn(_0x49bdfc,_0x2912a2,_0x762eea){const _0x44a05a=_0x430bb0;switch(_0x49bdfc){case _0x44a05a(0x1cc):return _0xf11d16(_0x2912a2,_0x44a05a(0x1c0),_0x762eea);case _0x44a05a(0x1c8):return _0xf11d16(_0x2912a2,_0x44a05a(0x1f5),_0x762eea);case _0x44a05a(0x1d0):return _0xf11d16(_0x2912a2,_0x44a05a(0x1fb),_0x762eea);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x597bfb=_0x6b67;(function(_0x5002af,_0xfc9757){var _0x3a9288=_0x6b67,_0x54cd93=_0x5002af();while(!![]){try{var _0x42ee9a=parseInt(_0x3a9288(0x200))/0x1+-parseInt(_0x3a9288(0x1e6))/0x2*(parseInt(_0x3a9288(0x1f9))/0x3)+parseInt(_0x3a9288(0x1fe))/0x4*(parseInt(_0x3a9288(0x1e9))/0x5)+-parseInt(_0x3a9288(0x20a))/0x6+-parseInt(_0x3a9288(0x202))/0x7*(parseInt(_0x3a9288(0x203))/0x8)+parseInt(_0x3a9288(0x208))/0x9+parseInt(_0x3a9288(0x206))/0xa*(parseInt(_0x3a9288(0x20c))/0xb);if(_0x42ee9a===_0xfc9757)break;else _0x54cd93['push'](_0x54cd93['shift']());}catch(_0x51c215){_0x54cd93['push'](_0x54cd93['shift']());}}}(_0x1722,0x47668));import{AIChatFeedItemView as _0x46655e}from'./aichatfeeditemview.js';function _0x1722(){var _0x2afce6=['actionsView','320388PcYIDz','bodyView','rejectSuggestion','isVisible','mouseLeaveSuggestion','2520iILqgL','toggleSuggestionDisplayMode','201336qKgeiZ','updateLabels','679ZcmNid','12656xWytDO','containerView','options','413890TsksaU','applySuggestion','4934934sueCpP','insertSuggestion','722142bHLLeM','ck-ai-chat__feed__ai-suggestion','55edcVaf','markAsDone','hasPendingParts','mouseOverSuggestion','getPartView','isTrackChangesOn','addMany','10RPBRBj','updatePartState','areActionsDisabled','1140zUBreS','dislike','bind','partsCount','dropdownConfig','fire','isEnabled','updateSources','like','showDiff','updateContent','showChangeInText','extendTemplate','children','hasNonEmptyParts'];_0x1722=function(){return _0x2afce6;};return _0x1722();}function _0x6b67(_0x49606a,_0x164241){var _0x172206=_0x1722();return _0x6b67=function(_0x6b6758,_0x449d04){_0x6b6758=_0x6b6758-0x1e4;var _0x1972fe=_0x172206[_0x6b6758];return _0x1972fe;},_0x6b67(_0x49606a,_0x164241);}import{AISuggestionContainerView as _0x430dd4}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x32dccc}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x46655e{[_0x597bfb(0x204)];[_0x597bfb(0x1f8)];constructor(_0x53fade,_0x16f6a3){var _0x437470=_0x597bfb;super(_0x16f6a3),this[_0x437470(0x204)]=new _0x430dd4(_0x53fade,{'showDiff':_0x16f6a3[_0x437470(0x1f2)],'areActionsDisabled':_0x16f6a3[_0x437470(0x1e8)]}),this[_0x437470(0x204)]['on'](_0x437470(0x1ff),(_0x267ec9,_0x187853)=>{var _0x133156=_0x437470;this[_0x133156(0x1ee)](_0x133156(0x1ff),{'replyId':this[_0x133156(0x205)]['id'],'showDiff':_0x187853[_0x133156(0x1f2)]});}),this[_0x437470(0x204)]['on'](_0x437470(0x1f1),()=>{var _0x60148c=_0x437470;this[_0x60148c(0x1ee)](_0x60148c(0x1f1),{'replyId':this[_0x60148c(0x205)]['id']});}),this[_0x437470(0x204)]['on'](_0x437470(0x1ea),()=>{var _0x324693=_0x437470;this[_0x324693(0x1ee)](_0x324693(0x1ea),{'replyId':this[_0x324693(0x205)]['id']});}),this[_0x437470(0x204)]['on'](_0x437470(0x1f4),(_0x9cf23f,{index:_0x2a4f0e})=>{var _0x57f0e3=_0x437470;this[_0x57f0e3(0x1ee)](_0x57f0e3(0x1f4),{'replyId':this[_0x57f0e3(0x205)]['id'],'partIndex':_0x2a4f0e});}),this[_0x437470(0x204)]['on'](_0x437470(0x209),(_0x50fcb0,{index:_0x5dd328})=>{var _0x493076=_0x437470;this[_0x493076(0x1ee)](_0x493076(0x209),{'replyId':this[_0x493076(0x205)]['id'],'partIndex':_0x5dd328});}),this[_0x437470(0x204)]['on'](_0x437470(0x1fb),(_0xc8cfaf,{index:_0x248920})=>{var _0x44ca6e=_0x437470;this[_0x44ca6e(0x1ee)](_0x44ca6e(0x1fb),{'replyId':this[_0x44ca6e(0x205)]['id'],'partIndex':_0x248920});}),this[_0x437470(0x204)]['on'](_0x437470(0x20f),(_0x1fea09,{index:_0x4916e4})=>{var _0x43cdc9=_0x437470;this[_0x43cdc9(0x1ee)](_0x43cdc9(0x20f),{'replyId':this[_0x43cdc9(0x205)]['id'],'partIndex':_0x4916e4});}),this[_0x437470(0x204)]['on'](_0x437470(0x1fd),(_0x5e8078,{index:_0xb82bde})=>{var _0x2829d7=_0x437470;this[_0x2829d7(0x1ee)](_0x2829d7(0x1fd),{'replyId':this[_0x2829d7(0x205)]['id'],'partIndex':_0xb82bde});}),this[_0x437470(0x1f8)]=new _0x32dccc(_0x53fade,this[_0x437470(0x205)][_0x437470(0x1ed)]),this[_0x437470(0x1f8)][_0x437470(0x1eb)](_0x437470(0x1e4))['to'](this,_0x437470(0x1e4)),this[_0x437470(0x1f8)]['on'](_0x437470(0x1f4),()=>{var _0x2231df=_0x437470;this[_0x2231df(0x1ee)](_0x2231df(0x1f4),{'replyId':this[_0x2231df(0x205)]['id']});}),this[_0x437470(0x1f8)]['on'](_0x437470(0x209),()=>{var _0x3572ff=_0x437470;this[_0x3572ff(0x1ee)](_0x3572ff(0x209),{'replyId':this[_0x3572ff(0x205)]['id']});}),this[_0x437470(0x1f8)]['on'](_0x437470(0x207),()=>{var _0x9e80ae=_0x437470;this[_0x9e80ae(0x1ee)](_0x9e80ae(0x207),{'replyId':this[_0x9e80ae(0x205)]['id']});}),_0x16f6a3[_0x437470(0x1e8)]?this[_0x437470(0x1f8)][_0x437470(0x1ef)]=!0x1:this[_0x437470(0x1f8)][_0x437470(0x1eb)](_0x437470(0x1ef))['to'](this[_0x437470(0x204)][_0x437470(0x1fa)],_0x437470(0x20e)),this[_0x437470(0x1f6)][_0x437470(0x1e5)]([this[_0x437470(0x204)],this[_0x437470(0x1f8)]]),this[_0x437470(0x1f5)]({'attributes':{'class':[_0x437470(0x20b)]}});}async[_0x597bfb(0x1f3)](_0x195e7e){var _0x90a555=_0x597bfb;await this[_0x90a555(0x204)][_0x90a555(0x1f3)](_0x195e7e),this[_0x90a555(0x1f8)][_0x90a555(0x201)](this[_0x90a555(0x204)][_0x90a555(0x1fa)][_0x90a555(0x1ec)]);}[_0x597bfb(0x1e7)](_0x345125,_0x125a04){var _0x53beec=_0x597bfb;this[_0x53beec(0x204)][_0x53beec(0x1fa)][_0x53beec(0x1e7)](_0x345125,_0x125a04);}[_0x597bfb(0x1f0)](_0x31cc04){var _0x5347cc=_0x597bfb;this[_0x5347cc(0x204)][_0x5347cc(0x1f0)](_0x31cc04);}[_0x597bfb(0x210)](_0xd32425){var _0x3d8e8e=_0x597bfb;return this[_0x3d8e8e(0x204)][_0x3d8e8e(0x1fa)][_0x3d8e8e(0x210)](_0xd32425);}[_0x597bfb(0x20d)](){var _0x21c4e7=_0x597bfb;super[_0x21c4e7(0x20d)](),this[_0x21c4e7(0x204)][_0x21c4e7(0x20d)](),this[_0x21c4e7(0x1f8)][_0x21c4e7(0x1fc)]=this[_0x21c4e7(0x204)][_0x21c4e7(0x1fa)][_0x21c4e7(0x1f7)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2a8f(){var _0xabd4d0=['filter','_locale','render','markAsDone','_bodyCollection','element','options','ck-ai-chat__feed__context-chips','25836OlnyLj','initialContent','_messageContentView','717384ucpjjR','790FUOmYc','div','length','innerHTML','ck-ai-chat__feed__message-content','add','_contextChipsView','3147Doncer','children','contextItems','128777dAmQoR','2793489vEgUfp','_createContextChipsView','6935697srVOxw','24AnAgqo','ck-ai-chat__feed__user-message','hidden','extendTemplate','90yZXhmq','_createMessageContentView','1793561LlnJYg','698kJVUGv','setTemplate'];_0x2a8f=function(){return _0xabd4d0;};return _0x2a8f();}function _0x57fa(_0x87f64d,_0x4f8187){var _0x2a8fe=_0x2a8f();return _0x57fa=function(_0x57fa8b,_0x588c3e){_0x57fa8b=_0x57fa8b-0x158;var _0x3b22e9=_0x2a8fe[_0x57fa8b];return _0x3b22e9;},_0x57fa(_0x87f64d,_0x4f8187);}var _0x203a73=_0x57fa;(function(_0xae41ee,_0x3df9a2){var _0x9b7395=_0x57fa,_0x36e6fd=_0xae41ee();while(!![]){try{var _0x4c5c97=parseInt(_0x9b7395(0x167))/0x1*(-parseInt(_0x9b7395(0x175))/0x2)+parseInt(_0x9b7395(0x16b))/0x3+-parseInt(_0x9b7395(0x15f))/0x4+-parseInt(_0x9b7395(0x172))/0x5*(-parseInt(_0x9b7395(0x15c))/0x6)+parseInt(_0x9b7395(0x174))/0x7*(-parseInt(_0x9b7395(0x16e))/0x8)+parseInt(_0x9b7395(0x16d))/0x9+-parseInt(_0x9b7395(0x160))/0xa*(-parseInt(_0x9b7395(0x16a))/0xb);if(_0x4c5c97===_0x3df9a2)break;else _0x36e6fd['push'](_0x36e6fd['shift']());}catch(_0x24f888){_0x36e6fd['push'](_0x36e6fd['shift']());}}}(_0x2a8f,0xa09af));import{AIChatFeedItemView as _0x37be33}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x2874a4}from'./aichatfeedcontextchipsview.js';import{View as _0x7249d2}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x37be33{[_0x203a73(0x166)]=null;[_0x203a73(0x178)];[_0x203a73(0x158)];[_0x203a73(0x15e)];constructor(_0x3c05f5,_0x430fde,_0x43ead6){var _0x15565f=_0x203a73;super(_0x430fde),this[_0x15565f(0x178)]=_0x3c05f5,this[_0x15565f(0x158)]=_0x43ead6,this[_0x15565f(0x16c)](),this[_0x15565f(0x173)](),this[_0x15565f(0x171)]({'attributes':{'class':[_0x15565f(0x16f)]}});}[_0x203a73(0x16c)](){var _0x3b08c6=_0x203a73;this[_0x3b08c6(0x15a)][_0x3b08c6(0x169)]&&this[_0x3b08c6(0x15a)][_0x3b08c6(0x169)][_0x3b08c6(0x162)]>0x0&&(this[_0x3b08c6(0x166)]=new _0x2874a4(this[_0x3b08c6(0x178)],this[_0x3b08c6(0x15a)][_0x3b08c6(0x169)][_0x3b08c6(0x177)](_0x205d08=>!_0x205d08[_0x3b08c6(0x170)]),this[_0x3b08c6(0x158)]),this[_0x3b08c6(0x166)][_0x3b08c6(0x171)]({'attributes':{'class':_0x3b08c6(0x15b)}}),this[_0x3b08c6(0x168)][_0x3b08c6(0x165)](this[_0x3b08c6(0x166)]));}[_0x203a73(0x173)](){var _0x5aa700=_0x203a73;this[_0x5aa700(0x15e)]=new _0x7249d2(this[_0x5aa700(0x178)]),this[_0x5aa700(0x15e)][_0x5aa700(0x176)]({'tag':_0x5aa700(0x161),'attributes':{'class':_0x5aa700(0x164)}}),this[_0x5aa700(0x168)][_0x5aa700(0x165)](this[_0x5aa700(0x15e)]);}[_0x203a73(0x179)](){var _0x312e5f=_0x203a73;super[_0x312e5f(0x179)](),this[_0x312e5f(0x15e)][_0x312e5f(0x159)][_0x312e5f(0x163)]=this[_0x312e5f(0x15a)][_0x312e5f(0x15d)],this[_0x312e5f(0x17a)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x194556=_0x45d5;(function(_0x524e13,_0x57ae8e){const _0x47af18=_0x45d5,_0x1cff80=_0x524e13();while(!![]){try{const _0x54ac3d=-parseInt(_0x47af18(0x168))/0x1+-parseInt(_0x47af18(0x175))/0x2*(-parseInt(_0x47af18(0x169))/0x3)+parseInt(_0x47af18(0x16b))/0x4*(parseInt(_0x47af18(0x16a))/0x5)+parseInt(_0x47af18(0x172))/0x6+parseInt(_0x47af18(0x17b))/0x7+-parseInt(_0x47af18(0x17a))/0x8+-parseInt(_0x47af18(0x17c))/0x9;if(_0x54ac3d===_0x57ae8e)break;else _0x1cff80['push'](_0x1cff80['shift']());}catch(_0x39ef23){_0x1cff80['push'](_0x1cff80['shift']());}}}(_0x73c2,0x34e12));import{AI_SUGGESTION_UI_EVENT_NAMES as _0x221fa9}from'../../aicore/utils/eventnames.js';function _0x45d5(_0x200cb6,_0x51cd66){const _0x73c28f=_0x73c2();return _0x45d5=function(_0x45d561,_0x9e220a){_0x45d561=_0x45d561-0x168;let _0x398e48=_0x73c28f[_0x45d561];return _0x398e48;},_0x45d5(_0x200cb6,_0x51cd66);}function _0x73c2(){const _0xfb3fca=['26ySvuNA','toggleWebSearch','addDocumentToContext','selectModel','sendUserMessage','3185168LobkRv','2604826AkFiek','720837SqawZb','loadSourceResources','104156dkAfCV','5277OgqwyA','10kIUFgx','713840vAfoAu','resizeTabs','addUrlToContext','removeContextItem','addFileToContext','addResourceToContext','toggleReasoning','282504ONEpwA','abortPromptStream','startConversation'];_0x73c2=function(){return _0xfb3fca;};return _0x73c2();}export const AI_CHAT_UI_EVENT_NAMES=[..._0x221fa9,_0x194556(0x174),_0x194556(0x16c),_0x194556(0x179),_0x194556(0x173),_0x194556(0x177),_0x194556(0x16f),_0x194556(0x16d),_0x194556(0x170),_0x194556(0x16e),_0x194556(0x17d),_0x194556(0x176),_0x194556(0x171),_0x194556(0x178)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3620f0=_0x2f8e;(function(_0x47aad3,_0x4c4427){const _0x3b0a2d=_0x2f8e,_0x2dc22d=_0x47aad3();while(!![]){try{const _0xbc206=-parseInt(_0x3b0a2d(0x159))/0x1+-parseInt(_0x3b0a2d(0x157))/0x2+-parseInt(_0x3b0a2d(0x160))/0x3+parseInt(_0x3b0a2d(0x15a))/0x4*(-parseInt(_0x3b0a2d(0x161))/0x5)+-parseInt(_0x3b0a2d(0x15e))/0x6+parseInt(_0x3b0a2d(0x167))/0x7*(-parseInt(_0x3b0a2d(0x16e))/0x8)+-parseInt(_0x3b0a2d(0x15c))/0x9*(-parseInt(_0x3b0a2d(0x16b))/0xa);if(_0xbc206===_0x4c4427)break;else _0x2dc22d['push'](_0x2dc22d['shift']());}catch(_0x208d1d){_0x2dc22d['push'](_0x2dc22d['shift']());}}}(_0xff51,0x81584));import{EmitterMixin as _0x318a68}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x318a68(){[_0x3620f0(0x15d)]=[];[_0x3620f0(0x158)]=!0x1;[_0x3620f0(0x170)];async[_0x3620f0(0x163)](_0x47802c){const _0x552fde=_0x3620f0,_0x351aa3=this[_0x552fde(0x168)](_0x47802c);return this[_0x552fde(0x15d)][_0x552fde(0x165)](_0x351aa3),this[_0x552fde(0x156)](),_0x351aa3[_0x552fde(0x166)];}[_0x3620f0(0x16a)](){const _0x1760fd=_0x3620f0;this[_0x1760fd(0x158)]&&(this[_0x1760fd(0x170)][_0x1760fd(0x16a)](),this[_0x1760fd(0x170)]=void 0x0,this[_0x1760fd(0x15d)]=[],this[_0x1760fd(0x15b)](_0x1760fd(0x15f)),this[_0x1760fd(0x158)]=!0x1);}get[_0x3620f0(0x16d)](){const _0x5907d7=_0x3620f0;return this[_0x5907d7(0x15d)][_0x5907d7(0x164)]||this[_0x5907d7(0x158)]?new Promise(_0xfe1c72=>{const _0x320b62=_0x5907d7;this[_0x320b62(0x171)](_0x320b62(0x15f),()=>{_0xfe1c72();});}):Promise[_0x5907d7(0x155)]();}async[_0x3620f0(0x156)](){const _0x356f52=_0x3620f0;if(!this[_0x356f52(0x158)]){this[_0x356f52(0x170)]=new AbortController(),this[_0x356f52(0x158)]=!0x0;try{for(;this[_0x356f52(0x15d)][_0x356f52(0x164)]&&this[_0x356f52(0x158)];){const _0x1f67e1=this[_0x356f52(0x15d)][_0x356f52(0x169)]();try{await _0x1f67e1[_0x356f52(0x16c)](this[_0x356f52(0x170)][_0x356f52(0x162)]),_0x1f67e1[_0x356f52(0x155)]();}catch(_0x49571d){_0x1f67e1[_0x356f52(0x16f)](_0x49571d);}}}finally{this[_0x356f52(0x158)]=!0x1,this[_0x356f52(0x170)]=void 0x0;}this[_0x356f52(0x15b)](_0x356f52(0x15f));}}[_0x3620f0(0x168)](_0x5c1cf1){let _0x46382e,_0x52442f;const _0x456a5a=new Promise((_0x2a0be5,_0x275557)=>{_0x46382e=_0x2a0be5,_0x52442f=_0x275557;});return{'callback':_0x5c1cf1,'resolve':_0x46382e,'reject':_0x52442f,'completePromise':_0x456a5a};}}function _0x2f8e(_0x352f9f,_0x217547){const _0xff519a=_0xff51();return _0x2f8e=function(_0x2f8e3a,_0x448684){_0x2f8e3a=_0x2f8e3a-0x155;let _0x520d14=_0xff519a[_0x2f8e3a];return _0x520d14;},_0x2f8e(_0x352f9f,_0x217547);}function _0xff51(){const _0x330054=['_queueEmpty','2039448SpKrYh','4899745VhuQqL','signal','enqueue','length','push','completePromise','14FoaDWH','createTask','shift','abort','87240pMmCTV','callback','queueEmptyPromise','3210656OGwkTC','reject','_abortController','once','resolve','_processQueue','1488026BjidPA','isProcessing','779942flfwsk','4SkwJGJ','fire','4959NOxTzg','queue','1744464ppyrro'];_0xff51=function(){return _0x330054;};return _0xff51();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bf503=_0x121d;function _0x121d(_0x46c248,_0x306d24){const _0x5b7cbb=_0x5b7c();return _0x121d=function(_0x121d6d,_0x3c02da){_0x121d6d=_0x121d6d-0x1f1;let _0x2a5a1c=_0x5b7cbb[_0x121d6d];return _0x2a5a1c;},_0x121d(_0x46c248,_0x306d24);}(function(_0x4753e3,_0xbad72e){const _0x21dbc5=_0x121d,_0x247daa=_0x4753e3();while(!![]){try{const _0x1393ae=-parseInt(_0x21dbc5(0x21c))/0x1*(-parseInt(_0x21dbc5(0x1f1))/0x2)+-parseInt(_0x21dbc5(0x20f))/0x3+parseInt(_0x21dbc5(0x209))/0x4+parseInt(_0x21dbc5(0x205))/0x5*(-parseInt(_0x21dbc5(0x1fc))/0x6)+-parseInt(_0x21dbc5(0x20b))/0x7*(parseInt(_0x21dbc5(0x215))/0x8)+-parseInt(_0x21dbc5(0x206))/0x9+-parseInt(_0x21dbc5(0x218))/0xa*(-parseInt(_0x21dbc5(0x1f4))/0xb);if(_0x1393ae===_0xbad72e)break;else _0x247daa['push'](_0x247daa['shift']());}catch(_0x486d95){_0x247daa['push'](_0x247daa['shift']());}}}(_0x5b7c,0x8d268));const ws=[_0x1bf503(0x219),_0x1bf503(0x207),_0x1bf503(0x20d),_0x1bf503(0x202)],fs=[_0x1bf503(0x210),_0x1bf503(0x1fd),_0x1bf503(0x1f3),_0x1bf503(0x213),_0x1bf503(0x211),_0x1bf503(0x1f9),'\x20'];function _0x5b7c(){const _0x112483=['keydown','scrollHeight','addEventListener','71110BQYuLo','5313276gNFOyb','touchstart','isRunning','4496644JcqaJx','includes','1421dnTcNV','_isAtBottom','pointerdown','auto','2111463PhphBl','ArrowUp','Home','bind','PageDown','destroy','12808QUwRjA','isUserPaused','signal','654560vREvUG','wheel','scrollTo','start','385ZMOwLG','2690XibYlZ','stop','PageUp','220uscNTy','_stop','key','abort','animationFrameId','End','_onUserEvent','deltaY','318RgNVnj','ArrowDown','element','abortController','type','_rafUpdate'];_0x5b7c=function(){return _0x112483;};return _0x5b7c();}export class ScrollManager{[_0x1bf503(0x1fe)];[_0x1bf503(0x1f8)];[_0x1bf503(0x208)];[_0x1bf503(0x1ff)];[_0x1bf503(0x216)];constructor(_0x3c8105){const _0x38f893=_0x1bf503;this[_0x38f893(0x1fe)]=_0x3c8105,this[_0x38f893(0x1f8)]=null,this[_0x38f893(0x208)]=!0x1,this[_0x38f893(0x1ff)]=new AbortController(),this[_0x38f893(0x216)]=!0x1;for(const _0x16a63e of ws){const _0x2765e8=_0x38f893(0x202)!==_0x16a63e;this[_0x38f893(0x1fe)][_0x38f893(0x204)](_0x16a63e,this[_0x38f893(0x1fa)][_0x38f893(0x212)](this),{'passive':_0x2765e8,'signal':this[_0x38f893(0x1ff)][_0x38f893(0x217)]});}}[_0x1bf503(0x21b)](){const _0x543f96=_0x1bf503;this[_0x543f96(0x208)]||(this[_0x543f96(0x208)]=!0x0,this[_0x543f96(0x216)]=!0x1,this[_0x543f96(0x1f8)]=requestAnimationFrame(this[_0x543f96(0x201)][_0x543f96(0x212)](this)));}[_0x1bf503(0x1f2)](){requestAnimationFrame(()=>{const _0x38385f=_0x121d;this[_0x38385f(0x1f5)]();});}[_0x1bf503(0x214)](){const _0x43329d=_0x1bf503;this[_0x43329d(0x1f5)](),this[_0x43329d(0x1ff)][_0x43329d(0x1f7)]();}[_0x1bf503(0x1f5)](){const _0x312b05=_0x1bf503;null!==this[_0x312b05(0x1f8)]&&(cancelAnimationFrame(this[_0x312b05(0x1f8)]),this[_0x312b05(0x1f8)]=null),this[_0x312b05(0x208)]&&(this[_0x312b05(0x208)]=!0x1),this[_0x312b05(0x216)]=!0x1;}[_0x1bf503(0x1fa)](_0x15a92c){const _0x5d1ed5=_0x1bf503;if(this[_0x5d1ed5(0x208)]){if(_0x5d1ed5(0x202)===_0x15a92c[_0x5d1ed5(0x200)]){const _0x1aea9d=_0x15a92c[_0x5d1ed5(0x1f6)];if(!fs[_0x5d1ed5(0x20a)](_0x1aea9d))return;}_0x15a92c instanceof WheelEvent?_0x15a92c[_0x5d1ed5(0x1fb)]<0x0?this[_0x5d1ed5(0x216)]=!0x0:this[_0x5d1ed5(0x216)]=!this[_0x5d1ed5(0x20c)]():this[_0x5d1ed5(0x216)]=!0x0;}}[_0x1bf503(0x20c)](){const _0x5ef630=_0x1bf503,{scrollTop:_0x3167c4,scrollHeight:_0x155439,clientHeight:_0x9666be}=this[_0x5ef630(0x1fe)];return _0x155439-_0x3167c4-_0x9666be<=0x5;}[_0x1bf503(0x201)](){const _0xcdb3d6=_0x1bf503;this[_0xcdb3d6(0x208)]&&(this[_0xcdb3d6(0x216)]||this[_0xcdb3d6(0x1fe)][_0xcdb3d6(0x21a)]({'top':this[_0xcdb3d6(0x1fe)][_0xcdb3d6(0x203)],'behavior':_0xcdb3d6(0x20e)}),this[_0xcdb3d6(0x1f8)]=requestAnimationFrame(this[_0xcdb3d6(0x201)][_0xcdb3d6(0x212)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x32dfb6=_0x6f07;(function(_0x56613b,_0x40b335){var _0x91c508=_0x6f07,_0x2011da=_0x56613b();while(!![]){try{var _0x403dc5=parseInt(_0x91c508(0x153))/0x1+-parseInt(_0x91c508(0x149))/0x2*(-parseInt(_0x91c508(0x14a))/0x3)+parseInt(_0x91c508(0x14e))/0x4*(-parseInt(_0x91c508(0x148))/0x5)+parseInt(_0x91c508(0x14f))/0x6*(parseInt(_0x91c508(0x157))/0x7)+-parseInt(_0x91c508(0x156))/0x8*(-parseInt(_0x91c508(0x152))/0x9)+-parseInt(_0x91c508(0x155))/0xa*(-parseInt(_0x91c508(0x14c))/0xb)+-parseInt(_0x91c508(0x147))/0xc*(parseInt(_0x91c508(0x158))/0xd);if(_0x403dc5===_0x40b335)break;else _0x2011da['push'](_0x2011da['shift']());}catch(_0x1e540a){_0x2011da['push'](_0x2011da['shift']());}}}(_0x1800,0xb9abb));function _0x6f07(_0x289ead,_0x257d6c){var _0x1800c9=_0x1800();return _0x6f07=function(_0x6f07f0,_0x5c062d){_0x6f07f0=_0x6f07f0-0x147;var _0x13f195=_0x1800c9[_0x6f07f0];return _0x13f195;},_0x6f07(_0x289ead,_0x257d6c);}import{ContextPlugin as _0x5101c8}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x6677f3}from'./aichathistorycontroller.js';function _0x1800(){var _0x11c392=['1147452gRbAYJ','isOfficialPlugin','898172vUFDWL','AIChatHistory','40mssIVb','42dYoMlW','pluginName','isPremiumPlugin','10544211phJvFy','700794hJYQRh','requires','70DrJEyj','8oTZQGf','1230271bzsJGd','455YWvCYh','882876yIAdyQ','360565bjGtMX','2fAcgfQ'];_0x1800=function(){return _0x11c392;};return _0x1800();}import{AIChatHistoryUI as _0x2d4d14}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x5101c8{static get[_0x32dfb6(0x154)](){return[_0x6677f3,_0x2d4d14];}static get[_0x32dfb6(0x150)](){var _0x3ce9c1=_0x32dfb6;return _0x3ce9c1(0x14d);}static get[_0x32dfb6(0x14b)](){return!0x0;}static get[_0x32dfb6(0x151)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x2379(_0x48175e,_0x26eb4e){const _0x223842=_0x2238();return _0x2379=function(_0x23799c,_0x4d6877){_0x23799c=_0x23799c-0x177;let _0x3ea5c9=_0x223842[_0x23799c];return _0x3ea5c9;},_0x2379(_0x48175e,_0x26eb4e);}function _0x2238(){const _0x2b50f7=['_clearItemLoading','9PNAnqA','history','AI_CHAT_HISTORY_CATEGORY_LATER','_setIsMaximized','152317qCrBXT','title','setDate','length','pin','_handleSelectConversation','updateItemTitle','isPremiumPlugin','showError','AI_CHAT_HISTORY_PIN_ACTION','isOfficialPlugin','getItem','2886HiyLvK','init','resizeTabs','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','unpin','357KHXxBi','7884PqhdzU','toLocaleDateString','setLoadingSkeleton','478559xVEdch','pluginName','getMonth','resizedTabs','pinned','AIChatHistoryController','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','_setItemLoading','2QjSsMe','loadConversation','push','getDate','itemUpdated','itemId','removeConversation','AI_CHAT_HISTORY_ERROR_GENERIC','view','itemsLoaded','loadItems','error','AI_CHAT_UNTITLED_CONVERSATION','401355LXCnzp','activateTab:history','_handleHistoryErrorUI','remove','20THvtVh','get','_handleRemove','handleRemovedConversation','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','change:activeConversation','items','_handleEditTitle','getItems','activateTab','3650744kzTlbs','requires','_updateHistoryItemsUI','260IZzVfF','removeHistoryItem','createdAt','_showConversationHistory','_getCategorizedItems','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','AI_CHAT_HISTORY_CATEGORY_TODAY','_aiChatController','removeItem','_generateErrorMessage','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','updateItemLoadingState','activeConversation','setConversationPinned','map','selectConversation','_handleTogglePin','chat','getFullYear','editConversationTitle','resize','setIsMaximized','91005BbjmeC','context','updateItemPinned','openChat','updateItems','itemRemoved','getGroupId','locale','operation','rename','AI_CHAT_HISTORY_CATEGORY_PINNED','67590cJsDyx','AI_CHAT_HISTORY_UNPIN_ACTION','_aiConnector','_aiChatHistoryUi','listenTo','plugins','updates'];_0x2238=function(){return _0x2b50f7;};return _0x2238();}const _0x5c5520=_0x2379;(function(_0x38a3c1,_0x5e8cd4){const _0x4fce3f=_0x2379,_0x447532=_0x38a3c1();while(!![]){try{const _0x19482f=parseInt(_0x4fce3f(0x1cc))/0x1+-parseInt(_0x4fce3f(0x1d4))/0x2*(parseInt(_0x4fce3f(0x178))/0x3)+parseInt(_0x4fce3f(0x17c))/0x4*(parseInt(_0x4fce3f(0x19f))/0x5)+parseInt(_0x4fce3f(0x1aa))/0x6*(parseInt(_0x4fce3f(0x1c8))/0x7)+-parseInt(_0x4fce3f(0x186))/0x8*(parseInt(_0x4fce3f(0x1b2))/0x9)+-parseInt(_0x4fce3f(0x189))/0xa*(parseInt(_0x4fce3f(0x1b6))/0xb)+-parseInt(_0x4fce3f(0x1c9))/0xc*(-parseInt(_0x4fce3f(0x1c2))/0xd);if(_0x19482f===_0x5e8cd4)break;else _0x447532['push'](_0x447532['shift']());}catch(_0x320242){_0x447532['push'](_0x447532['shift']());}}}(_0x2238,0x52f47));import{ContextPlugin as _0x21c9ba}from'ckeditor5/src/core.js';import{AIConnector as _0x3d4e69}from'../aicore/aiconnector.js';import{AIChatController as _0x384e4a}from'../aichat/aichatcontroller.js';import{AITabs as _0x40c05d}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x507a82}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x5542f8}from'./model/aichathistoryconversations.js';import{getTranslation as _0x53bf4e}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x21c9ba{[_0x5c5520(0x1ac)];[_0x5c5520(0x1ad)];[_0x5c5520(0x190)];static get[_0x5c5520(0x187)](){return[_0x3d4e69,_0x384e4a,_0x507a82,_0x40c05d];}static get[_0x5c5520(0x1cd)](){const _0x524939=_0x5c5520;return _0x524939(0x1d1);}static get[_0x5c5520(0x1c0)](){return!0x0;}static get[_0x5c5520(0x1bd)](){return!0x0;}[_0x5c5520(0x1c3)](){const _0x51f921=_0x5c5520;this[_0x51f921(0x1ac)]=this[_0x51f921(0x1a0)][_0x51f921(0x1af)][_0x51f921(0x17d)](_0x3d4e69),this[_0x51f921(0x1ad)]=this[_0x51f921(0x1a0)][_0x51f921(0x1af)][_0x51f921(0x17d)](_0x507a82),this[_0x51f921(0x190)]=this[_0x51f921(0x1a0)][_0x51f921(0x1af)][_0x51f921(0x17d)](_0x384e4a);const _0x1c7e83=this[_0x51f921(0x1a0)][_0x51f921(0x1af)][_0x51f921(0x17d)](_0x40c05d),_0x3456b8=this[_0x51f921(0x190)][_0x51f921(0x1a5)]();this[_0x51f921(0x1b3)]=new _0x5542f8({'connector':this[_0x51f921(0x1ac)],'group':_0x3456b8}),this[_0x51f921(0x1ae)](this[_0x51f921(0x1ad)],_0x51f921(0x1da),(_0x4673f5,_0x582e21)=>{const _0x5dfeba=_0x51f921;this[_0x5dfeba(0x1d3)](_0x582e21['id'],_0x5dfeba(0x17b)),this[_0x5dfeba(0x17e)](_0x582e21['id']);}),this[_0x51f921(0x1ae)](this[_0x51f921(0x1ad)],_0x51f921(0x19c),(_0x2a3708,_0x15fb8f)=>{const _0x13623d=_0x51f921;this[_0x13623d(0x1d3)](_0x15fb8f['id'],_0x13623d(0x1a8)),this[_0x13623d(0x183)](_0x15fb8f['id'],_0x15fb8f[_0x13623d(0x1b7)]);}),this[_0x51f921(0x1ae)](this[_0x51f921(0x1b3)],_0x51f921(0x1d8),(_0x381ec8,_0x1a5997)=>{const _0x41e19e=_0x51f921;void 0x0!==_0x1a5997[_0x41e19e(0x1b0)][_0x41e19e(0x1b7)]&&this[_0x41e19e(0x1ad)][_0x41e19e(0x1bc)](_0x1a5997[_0x41e19e(0x1d9)],_0x1a5997[_0x41e19e(0x1b0)][_0x41e19e(0x1b7)]),void 0x0!==_0x1a5997[_0x41e19e(0x1b0)][_0x41e19e(0x1d0)]&&this[_0x41e19e(0x188)](),this[_0x41e19e(0x1b1)](_0x1a5997[_0x41e19e(0x1d9)]);}),this[_0x51f921(0x1ae)](this[_0x51f921(0x1b3)],_0x51f921(0x1a4),(_0x4793e9,_0x1bd84b)=>{const _0x230998=_0x51f921;this[_0x230998(0x190)][_0x230998(0x17f)](_0x1bd84b[_0x230998(0x1d9)]),this[_0x230998(0x1ad)][_0x230998(0x18a)](_0x1bd84b[_0x230998(0x1d9)]),this[_0x230998(0x1b1)](_0x1bd84b[_0x230998(0x1d9)]);}),this[_0x51f921(0x1ae)](this[_0x51f921(0x1b3)],_0x51f921(0x1dd),()=>{const _0x11e96b=_0x51f921;this[_0x11e96b(0x188)]();}),this[_0x51f921(0x1ae)](this[_0x51f921(0x1b3)],_0x51f921(0x1df),(_0x4d9167,_0x19f32b)=>{const _0xe27ce5=_0x51f921;this[_0xe27ce5(0x17a)](_0x19f32b[_0xe27ce5(0x1df)],_0x19f32b[_0xe27ce5(0x1a7)],_0x19f32b[_0xe27ce5(0x1d9)]);}),this[_0x51f921(0x1ae)](this[_0x51f921(0x1ad)],_0x51f921(0x198),(_0x597c2b,_0x1c24d0)=>{const _0x1251df=_0x51f921;this[_0x1251df(0x1bb)](_0x1c24d0['id']);}),this[_0x51f921(0x1ae)](this[_0x51f921(0x1ad)],_0x51f921(0x196),(_0x335500,_0x36dbe6)=>{const _0x250d83=_0x51f921,_0x5a4b57=_0x36dbe6[_0x250d83(0x1d0)]?_0x250d83(0x1ba):_0x250d83(0x1c7);this[_0x250d83(0x1d3)](_0x36dbe6['id'],_0x5a4b57),this[_0x250d83(0x199)](_0x36dbe6['id'],_0x36dbe6[_0x250d83(0x1d0)]);}),this[_0x51f921(0x1ae)](this[_0x51f921(0x1ad)],_0x51f921(0x1a2),()=>{const _0x1134f8=_0x51f921;_0x1c7e83[_0x1134f8(0x1dc)][_0x1134f8(0x185)](_0x1134f8(0x19a));}),this[_0x51f921(0x1ae)](this[_0x51f921(0x190)],_0x51f921(0x181),()=>{const _0x378222=_0x51f921;this[_0x378222(0x188)]();}),_0x1c7e83[_0x51f921(0x1dc)]['on'](_0x51f921(0x179),()=>{const _0x79ff4d=_0x51f921;this[_0x79ff4d(0x18c)]();}),this[_0x51f921(0x1ae)](_0x1c7e83,_0x51f921(0x1cf),(_0x2c29b6,_0x2f7179)=>{const _0x504a2b=_0x51f921;this[_0x504a2b(0x1b5)](_0x2f7179);}),this[_0x51f921(0x1ae)](this[_0x51f921(0x1ad)],_0x51f921(0x1c4),()=>{const _0x3466c8=_0x51f921;_0x1c7e83[_0x3466c8(0x19d)]();});}async[_0x5c5520(0x183)](_0x3ee246,_0x2547b0){const _0x470214=_0x5c5520;await this[_0x470214(0x1b3)][_0x470214(0x1bc)](_0x3ee246,_0x2547b0);}async[_0x5c5520(0x199)](_0x19e596,_0x20443c){const _0x46deed=_0x5c5520;await this[_0x46deed(0x1b3)][_0x46deed(0x1a1)](_0x19e596,_0x20443c);}async[_0x5c5520(0x17e)](_0x4913d1){const _0x318a11=_0x5c5520;await this[_0x318a11(0x1b3)][_0x318a11(0x191)](_0x4913d1);}async[_0x5c5520(0x1bb)](_0x2869e5){const _0x39a156=_0x5c5520;await this[_0x39a156(0x190)][_0x39a156(0x1d5)](_0x2869e5);}async[_0x5c5520(0x18c)](){const _0x505644=_0x5c5520;this[_0x505644(0x1ad)][_0x505644(0x1be)](''),this[_0x505644(0x1ad)][_0x505644(0x1cb)](!0x0),await this[_0x505644(0x1b3)][_0x505644(0x1c3)](),this[_0x505644(0x1ad)][_0x505644(0x1cb)](!0x1);}[_0x5c5520(0x188)](){const _0x17cdbd=_0x5c5520,_0x298939=this[_0x17cdbd(0x190)][_0x17cdbd(0x195)]?.['id'],_0x3ec532=this[_0x17cdbd(0x18d)]()[_0x17cdbd(0x197)](_0x51043d=>({'title':_0x51043d[_0x17cdbd(0x1b7)],'items':_0x51043d[_0x17cdbd(0x182)][_0x17cdbd(0x197)](_0x12f508=>({'id':_0x12f508['id'],'title':_0x12f508[_0x17cdbd(0x1b7)]||_0x53bf4e(this[_0x17cdbd(0x1a0)][_0x17cdbd(0x1a6)],_0x17cdbd(0x177)),'createdAt':new Date(_0x12f508[_0x17cdbd(0x18b)])[_0x17cdbd(0x1ca)](),'active':_0x12f508['id']===_0x298939,'pinned':_0x12f508[_0x17cdbd(0x1d0)]}))}));this[_0x17cdbd(0x1ad)][_0x17cdbd(0x1a3)](_0x3ec532);}[_0x5c5520(0x1d3)](_0x1a9274,_0xa6a0ef){const _0x34abca=_0x5c5520;this[_0x34abca(0x1ad)][_0x34abca(0x194)](_0x1a9274,_0xa6a0ef,!0x0);}[_0x5c5520(0x1b1)](_0x3394c3){const _0x32dcaf=_0x5c5520;this[_0x32dcaf(0x1ad)][_0x32dcaf(0x194)](_0x3394c3,null,!0x1);}[_0x5c5520(0x17a)](_0x693f18,_0x3a86ad,_0x5831f2){const _0x48e767=_0x5c5520,_0x2acbcc=this[_0x48e767(0x192)](_0x3a86ad,_0x5831f2);this[_0x48e767(0x1ad)][_0x48e767(0x1be)](_0x2acbcc),_0x5831f2&&this[_0x48e767(0x1b1)](_0x5831f2),this[_0x48e767(0x1ad)][_0x48e767(0x1cb)](!0x1);}[_0x5c5520(0x192)](_0x593c88,_0x769965){const _0x402895=_0x5c5520,_0x21980c=_0x769965?this[_0x402895(0x1b3)][_0x402895(0x1c1)](_0x769965):null,_0x23c188=_0x21980c?.[_0x402895(0x1b7)]||_0x53bf4e(this[_0x402895(0x1a0)][_0x402895(0x1a6)],_0x402895(0x177));switch(_0x593c88){case _0x402895(0x1bc):return _0x53bf4e(this[_0x402895(0x1a0)][_0x402895(0x1a6)],_0x402895(0x193),_0x23c188);case _0x402895(0x1a1):{const _0x1c2aa5=_0x53bf4e(this[_0x402895(0x1a0)][_0x402895(0x1a6)],_0x21980c?.[_0x402895(0x1d0)]?_0x402895(0x1ab):_0x402895(0x1bf));return _0x53bf4e(this[_0x402895(0x1a0)][_0x402895(0x1a6)],_0x402895(0x1c6),[_0x1c2aa5,_0x23c188]);}case _0x402895(0x191):return _0x53bf4e(this[_0x402895(0x1a0)][_0x402895(0x1a6)],_0x402895(0x1c5),_0x23c188);case _0x402895(0x1c3):case _0x402895(0x1de):return _0x53bf4e(this[_0x402895(0x1a0)][_0x402895(0x1a6)],_0x402895(0x180));default:return _0x53bf4e(this[_0x402895(0x1a0)][_0x402895(0x1a6)],_0x402895(0x1db));}}[_0x5c5520(0x18d)](){const _0x96ab80=_0x5c5520,_0x3a70bd=new Date(),_0x247f89=new Date(_0x3a70bd[_0x96ab80(0x19b)](),_0x3a70bd[_0x96ab80(0x1ce)](),_0x3a70bd[_0x96ab80(0x1d7)]()),_0x3b510b=new Date(_0x247f89);_0x3b510b[_0x96ab80(0x1b8)](_0x3b510b[_0x96ab80(0x1d7)]()-0x1);const _0x3135df=new Date(_0x247f89);_0x3135df[_0x96ab80(0x1b8)](_0x3135df[_0x96ab80(0x1d7)]()-0xe);const _0x219d01=this[_0x96ab80(0x1b3)][_0x96ab80(0x184)]({'pinned':!0x0}),_0x3d477a=this[_0x96ab80(0x1b3)][_0x96ab80(0x184)]({'from':_0x247f89,'to':_0x247f89}),_0x157a49=this[_0x96ab80(0x1b3)][_0x96ab80(0x184)]({'from':_0x3b510b,'to':_0x3b510b}),_0x36bd30=this[_0x96ab80(0x1b3)][_0x96ab80(0x184)]({'from':_0x3135df,'to':_0x3b510b}),_0x2a448c=this[_0x96ab80(0x1b3)][_0x96ab80(0x184)]({'to':_0x3135df}),_0x2d0099=[];return _0x219d01[_0x96ab80(0x1b9)]>0x0&&_0x2d0099[_0x96ab80(0x1d6)]({'title':_0x53bf4e(this[_0x96ab80(0x1a0)][_0x96ab80(0x1a6)],_0x96ab80(0x1a9)),'items':_0x219d01}),_0x3d477a[_0x96ab80(0x1b9)]>0x0&&_0x2d0099[_0x96ab80(0x1d6)]({'title':_0x53bf4e(this[_0x96ab80(0x1a0)][_0x96ab80(0x1a6)],_0x96ab80(0x18f)),'items':_0x3d477a}),_0x157a49[_0x96ab80(0x1b9)]>0x0&&_0x2d0099[_0x96ab80(0x1d6)]({'title':_0x53bf4e(this[_0x96ab80(0x1a0)][_0x96ab80(0x1a6)],_0x96ab80(0x18e)),'items':_0x157a49}),_0x36bd30[_0x96ab80(0x1b9)]>0x0&&_0x2d0099[_0x96ab80(0x1d6)]({'title':_0x53bf4e(this[_0x96ab80(0x1a0)][_0x96ab80(0x1a6)],_0x96ab80(0x1d2)),'items':_0x36bd30}),_0x2a448c[_0x96ab80(0x1b9)]>0x0&&_0x2d0099[_0x96ab80(0x1d6)]({'title':_0x53bf4e(this[_0x96ab80(0x1a0)][_0x96ab80(0x1a6)],_0x96ab80(0x1b4)),'items':_0x2a448c}),_0x2d0099;}[_0x5c5520(0x1b5)](_0x4dcaaf){const _0x318103=_0x5c5520;this[_0x318103(0x1ad)][_0x318103(0x19e)](_0x4dcaaf);}}
|
|
23
|
+
const _0x45a116=_0x19ca;(function(_0x384687,_0x2a42bd){const _0x41bd8c=_0x19ca,_0x5e20e1=_0x384687();while(!![]){try{const _0x1c915d=-parseInt(_0x41bd8c(0x1e5))/0x1*(-parseInt(_0x41bd8c(0x226))/0x2)+-parseInt(_0x41bd8c(0x1de))/0x3+-parseInt(_0x41bd8c(0x1d2))/0x4*(parseInt(_0x41bd8c(0x1ea))/0x5)+parseInt(_0x41bd8c(0x1cf))/0x6*(parseInt(_0x41bd8c(0x20f))/0x7)+-parseInt(_0x41bd8c(0x1e1))/0x8*(-parseInt(_0x41bd8c(0x204))/0x9)+-parseInt(_0x41bd8c(0x1d3))/0xa*(parseInt(_0x41bd8c(0x1f7))/0xb)+parseInt(_0x41bd8c(0x219))/0xc;if(_0x1c915d===_0x2a42bd)break;else _0x5e20e1['push'](_0x5e20e1['shift']());}catch(_0xb3fc95){_0x5e20e1['push'](_0x5e20e1['shift']());}}}(_0x31a6,0x1edde));import{ContextPlugin as _0x2a24e0}from'ckeditor5/src/core.js';import{AIConnector as _0x3521ad}from'../aicore/aiconnector.js';import{AIChatController as _0x191fa9}from'../aichat/aichatcontroller.js';import{AITabs as _0x19bdd0}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0xa349a6}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x32ef09}from'./model/aichathistoryconversations.js';function _0x19ca(_0x25a533,_0x108256){const _0x31a67a=_0x31a6();return _0x19ca=function(_0x19ca3b,_0x44df29){_0x19ca3b=_0x19ca3b-0x1ca;let _0x5ff487=_0x31a67a[_0x19ca3b];return _0x5ff487;},_0x19ca(_0x25a533,_0x108256);}import{getTranslation as _0x27d84a}from'../aicore/utils/common-translations.js';function _0x31a6(){const _0x29f9b5=['items','pinned','setConversationPinned','remove','getItem','createdAt','updateItems','activateTab:history','change:activeConversation','title','activateTab','init','336PYOYDO','resizeTabs','chat','48068YBcGjM','196750kgXzAx','loadItems','editConversationTitle','itemRemoved','view','getFullYear','openChat','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','_updateHistoryItemsUI','_clearItemLoading','_aiChatController','670779igDPRz','isOfficialPlugin','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','40pyNNcH','AIChatHistoryController','AI_CHAT_HISTORY_ERROR_GENERIC','updateItemPinned','183907hsqIYh','updateItemLoadingState','get','history','AI_CHAT_HISTORY_CATEGORY_TODAY','100MfFMar','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','showError','AI_CHAT_HISTORY_UNPIN_ACTION','_setIsMaximized','_generateErrorMessage','itemUpdated','removeHistoryItem','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','itemsLoaded','activeConversation','44nBMzNR','_getCategorizedItems','AI_CHAT_HISTORY_CATEGORY_PINNED','_handleRemove','_aiChatHistoryUi','_handleEditTitle','resize','operation','requires','locale','length','context','plugins','114039IfkCCo','setLoadingSkeleton','_handleSelectConversation','isPremiumPlugin','removeItem','getItems','pluginName','updates','_setItemLoading','AI_CHAT_HISTORY_CATEGORY_LATER','error','28154PjpqZO','_handleTogglePin','map','removeConversation','setIsMaximized','unpin','AI_CHAT_UNTITLED_CONVERSATION','updateItemTitle','_aiConnector','resizedTabs','2358828kHWjuX','selectConversation','getGroupId','getDate','_showConversationHistory','_handleHistoryErrorUI','listenTo','handleRemovedConversation','setDate','pin','getMonth','loadConversation','AI_CHAT_HISTORY_PIN_ACTION','2mRgRtf','toLocaleDateString','push','rename','itemId'];_0x31a6=function(){return _0x29f9b5;};return _0x31a6();}export class AIChatHistoryController extends _0x2a24e0{[_0x45a116(0x217)];[_0x45a116(0x1fb)];[_0x45a116(0x1dd)];static get[_0x45a116(0x1ff)](){return[_0x3521ad,_0x191fa9,_0xa349a6,_0x19bdd0];}static get[_0x45a116(0x20a)](){const _0x3b2c6d=_0x45a116;return _0x3b2c6d(0x1e2);}static get[_0x45a116(0x1df)](){return!0x0;}static get[_0x45a116(0x207)](){return!0x0;}[_0x45a116(0x1ce)](){const _0x2b6896=_0x45a116;this[_0x2b6896(0x217)]=this[_0x2b6896(0x202)][_0x2b6896(0x203)][_0x2b6896(0x1e7)](_0x3521ad),this[_0x2b6896(0x1fb)]=this[_0x2b6896(0x202)][_0x2b6896(0x203)][_0x2b6896(0x1e7)](_0xa349a6),this[_0x2b6896(0x1dd)]=this[_0x2b6896(0x202)][_0x2b6896(0x203)][_0x2b6896(0x1e7)](_0x191fa9);const _0x31f93b=this[_0x2b6896(0x202)][_0x2b6896(0x203)][_0x2b6896(0x1e7)](_0x19bdd0),_0x269915=this[_0x2b6896(0x1dd)][_0x2b6896(0x21b)]();this[_0x2b6896(0x1e8)]=new _0x32ef09({'connector':this[_0x2b6896(0x217)],'group':_0x269915}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x212),(_0x199dc6,_0x7888c8)=>{const _0x18f681=_0x2b6896;this[_0x18f681(0x20c)](_0x7888c8['id'],_0x18f681(0x22e)),this[_0x18f681(0x1fa)](_0x7888c8['id']);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x1d5),(_0x5b0263,_0x234f66)=>{const _0x336e79=_0x2b6896;this[_0x336e79(0x20c)](_0x234f66['id'],_0x336e79(0x229)),this[_0x336e79(0x1fc)](_0x234f66['id'],_0x234f66[_0x336e79(0x1cc)]);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1e8)],_0x2b6896(0x1f2),(_0xf0b76e,_0x1c5c74)=>{const _0x50a33a=_0x2b6896;void 0x0!==_0x1c5c74[_0x50a33a(0x20b)][_0x50a33a(0x1cc)]&&this[_0x50a33a(0x1fb)][_0x50a33a(0x216)](_0x1c5c74[_0x50a33a(0x22a)],_0x1c5c74[_0x50a33a(0x20b)][_0x50a33a(0x1cc)]),void 0x0!==_0x1c5c74[_0x50a33a(0x20b)][_0x50a33a(0x22c)]&&this[_0x50a33a(0x1db)](),this[_0x50a33a(0x1dc)](_0x1c5c74[_0x50a33a(0x22a)]);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1e8)],_0x2b6896(0x1d6),(_0x12bb3c,_0x21e967)=>{const _0x5407d6=_0x2b6896;this[_0x5407d6(0x1dd)][_0x5407d6(0x220)](_0x21e967[_0x5407d6(0x22a)]),this[_0x5407d6(0x1fb)][_0x5407d6(0x1f3)](_0x21e967[_0x5407d6(0x22a)]),this[_0x5407d6(0x1dc)](_0x21e967[_0x5407d6(0x22a)]);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1e8)],_0x2b6896(0x1f5),()=>{const _0x4c047d=_0x2b6896;this[_0x4c047d(0x1db)]();}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1e8)],_0x2b6896(0x20e),(_0x2195e9,_0x21b43f)=>{const _0x4b01c6=_0x2b6896;this[_0x4b01c6(0x21e)](_0x21b43f[_0x4b01c6(0x20e)],_0x21b43f[_0x4b01c6(0x1fe)],_0x21b43f[_0x4b01c6(0x22a)]);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x21a),(_0x6be44d,_0x6f3a66)=>{const _0x996442=_0x2b6896;this[_0x996442(0x206)](_0x6f3a66['id']);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x22d),(_0x34eb66,_0xdc3511)=>{const _0x3819eb=_0x2b6896,_0x12481e=_0xdc3511[_0x3819eb(0x22c)]?_0x3819eb(0x222):_0x3819eb(0x214);this[_0x3819eb(0x20c)](_0xdc3511['id'],_0x12481e),this[_0x3819eb(0x210)](_0xdc3511['id'],_0xdc3511[_0x3819eb(0x22c)]);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x1d9),()=>{const _0x85050e=_0x2b6896;_0x31f93b[_0x85050e(0x1d7)][_0x85050e(0x1cd)](_0x85050e(0x1d1));}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1dd)],_0x2b6896(0x1cb),()=>{const _0x573806=_0x2b6896;this[_0x573806(0x1db)]();}),_0x31f93b[_0x2b6896(0x1d7)]['on'](_0x2b6896(0x1ca),()=>{const _0x572900=_0x2b6896;this[_0x572900(0x21d)]();}),this[_0x2b6896(0x21f)](_0x31f93b,_0x2b6896(0x218),(_0x4f037b,_0x42fe27)=>{const _0x101918=_0x2b6896;this[_0x101918(0x1f0)](_0x42fe27);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x1d0),()=>{const _0x25a91f=_0x2b6896;_0x31f93b[_0x25a91f(0x1fd)]();});}async[_0x45a116(0x1fc)](_0x283874,_0x4ab74d){const _0x14c607=_0x45a116;await this[_0x14c607(0x1e8)][_0x14c607(0x216)](_0x283874,_0x4ab74d);}async[_0x45a116(0x210)](_0x52ea5c,_0x4d7faa){const _0x58daa4=_0x45a116;await this[_0x58daa4(0x1e8)][_0x58daa4(0x1e4)](_0x52ea5c,_0x4d7faa);}async[_0x45a116(0x1fa)](_0x405180){const _0x4b01f8=_0x45a116;await this[_0x4b01f8(0x1e8)][_0x4b01f8(0x208)](_0x405180);}async[_0x45a116(0x206)](_0x53f671){const _0x247a56=_0x45a116;await this[_0x247a56(0x1dd)][_0x247a56(0x224)](_0x53f671);}async[_0x45a116(0x21d)](){const _0x508425=_0x45a116;this[_0x508425(0x1fb)][_0x508425(0x1ee)](''),this[_0x508425(0x1fb)][_0x508425(0x205)](!0x0),await this[_0x508425(0x1e8)][_0x508425(0x1ce)](),this[_0x508425(0x1fb)][_0x508425(0x205)](!0x1);}[_0x45a116(0x1db)](){const _0x28934c=_0x45a116,_0x1a79c4=this[_0x28934c(0x1dd)][_0x28934c(0x1f6)]?.['id'],_0x1f005a=this[_0x28934c(0x1f8)]()[_0x28934c(0x211)](_0x110675=>({'title':_0x110675[_0x28934c(0x1cc)],'items':_0x110675[_0x28934c(0x22b)][_0x28934c(0x211)](_0x5d89e0=>({'id':_0x5d89e0['id'],'title':_0x5d89e0[_0x28934c(0x1cc)]||_0x27d84a(this[_0x28934c(0x202)][_0x28934c(0x200)],_0x28934c(0x215)),'createdAt':new Date(_0x5d89e0[_0x28934c(0x230)])[_0x28934c(0x227)](),'active':_0x5d89e0['id']===_0x1a79c4,'pinned':_0x5d89e0[_0x28934c(0x22c)]}))}));this[_0x28934c(0x1fb)][_0x28934c(0x231)](_0x1f005a);}[_0x45a116(0x20c)](_0x1334ee,_0x118959){const _0xdb7e57=_0x45a116;this[_0xdb7e57(0x1fb)][_0xdb7e57(0x1e6)](_0x1334ee,_0x118959,!0x0);}[_0x45a116(0x1dc)](_0x19d68f){const _0x44cb67=_0x45a116;this[_0x44cb67(0x1fb)][_0x44cb67(0x1e6)](_0x19d68f,null,!0x1);}[_0x45a116(0x21e)](_0x49c25c,_0x3a96e5,_0x13949c){const _0xcacca0=_0x45a116,_0x1a0af9=this[_0xcacca0(0x1f1)](_0x3a96e5,_0x13949c);this[_0xcacca0(0x1fb)][_0xcacca0(0x1ee)](_0x1a0af9),_0x13949c&&this[_0xcacca0(0x1dc)](_0x13949c),this[_0xcacca0(0x1fb)][_0xcacca0(0x205)](!0x1);}[_0x45a116(0x1f1)](_0x4f6f4f,_0x51d947){const _0x5a3598=_0x45a116,_0x47dd32=_0x51d947?this[_0x5a3598(0x1e8)][_0x5a3598(0x22f)](_0x51d947):null,_0x2a27f5=_0x47dd32?.[_0x5a3598(0x1cc)]||_0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x215));switch(_0x4f6f4f){case _0x5a3598(0x216):return _0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x1e0),_0x2a27f5);case _0x5a3598(0x1e4):{const _0x4a09bf=_0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x47dd32?.[_0x5a3598(0x22c)]?_0x5a3598(0x1ef):_0x5a3598(0x225));return _0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x1ec),[_0x4a09bf,_0x2a27f5]);}case _0x5a3598(0x208):return _0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x1da),_0x2a27f5);case _0x5a3598(0x1ce):case _0x5a3598(0x1d4):return _0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x1f4));default:return _0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x1e3));}}[_0x45a116(0x1f8)](){const _0x22ee0a=_0x45a116,_0x122705=new Date(),_0x4cfd7a=new Date(_0x122705[_0x22ee0a(0x1d8)](),_0x122705[_0x22ee0a(0x223)](),_0x122705[_0x22ee0a(0x21c)]()),_0x26dc60=new Date(_0x4cfd7a);_0x26dc60[_0x22ee0a(0x221)](_0x26dc60[_0x22ee0a(0x21c)]()-0x1);const _0x2e173e=new Date(_0x4cfd7a);_0x2e173e[_0x22ee0a(0x221)](_0x2e173e[_0x22ee0a(0x21c)]()-0xe);const _0x4b7b0f=this[_0x22ee0a(0x1e8)][_0x22ee0a(0x209)]({'pinned':!0x0}),_0x417876=this[_0x22ee0a(0x1e8)][_0x22ee0a(0x209)]({'from':_0x4cfd7a,'to':_0x4cfd7a}),_0x258436=this[_0x22ee0a(0x1e8)][_0x22ee0a(0x209)]({'from':_0x26dc60,'to':_0x26dc60}),_0x1bd15d=this[_0x22ee0a(0x1e8)][_0x22ee0a(0x209)]({'from':_0x2e173e,'to':_0x26dc60}),_0x350758=this[_0x22ee0a(0x1e8)][_0x22ee0a(0x209)]({'to':_0x2e173e}),_0x4b049c=[];return _0x4b7b0f[_0x22ee0a(0x201)]>0x0&&_0x4b049c[_0x22ee0a(0x228)]({'title':_0x27d84a(this[_0x22ee0a(0x202)][_0x22ee0a(0x200)],_0x22ee0a(0x1f9)),'items':_0x4b7b0f}),_0x417876[_0x22ee0a(0x201)]>0x0&&_0x4b049c[_0x22ee0a(0x228)]({'title':_0x27d84a(this[_0x22ee0a(0x202)][_0x22ee0a(0x200)],_0x22ee0a(0x1e9)),'items':_0x417876}),_0x258436[_0x22ee0a(0x201)]>0x0&&_0x4b049c[_0x22ee0a(0x228)]({'title':_0x27d84a(this[_0x22ee0a(0x202)][_0x22ee0a(0x200)],_0x22ee0a(0x1ed)),'items':_0x258436}),_0x1bd15d[_0x22ee0a(0x201)]>0x0&&_0x4b049c[_0x22ee0a(0x228)]({'title':_0x27d84a(this[_0x22ee0a(0x202)][_0x22ee0a(0x200)],_0x22ee0a(0x1eb)),'items':_0x1bd15d}),_0x350758[_0x22ee0a(0x201)]>0x0&&_0x4b049c[_0x22ee0a(0x228)]({'title':_0x27d84a(this[_0x22ee0a(0x202)][_0x22ee0a(0x200)],_0x22ee0a(0x20d)),'items':_0x350758}),_0x4b049c;}[_0x45a116(0x1f0)](_0x5b94ee){const _0x542c38=_0x45a116;this[_0x542c38(0x1fb)][_0x542c38(0x213)](_0x5b94ee);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x96e3f1=_0x3f90;(function(_0x4e29bd,_0x15f6e3){const _0x1785b6=_0x3f90,_0x53f088=_0x4e29bd();while(!![]){try{const _0x2d53de=parseInt(_0x1785b6(0x1f0))/0x1+parseInt(_0x1785b6(0x1f1))/0x2*(parseInt(_0x1785b6(0x1d3))/0x3)+-parseInt(_0x1785b6(0x1ea))/0x4+parseInt(_0x1785b6(0x1e9))/0x5+parseInt(_0x1785b6(0x1d5))/0x6+-parseInt(_0x1785b6(0x1da))/0x7+parseInt(_0x1785b6(0x1fd))/0x8;if(_0x2d53de===_0x15f6e3)break;else _0x53f088['push'](_0x53f088['shift']());}catch(_0x42be1e){_0x53f088['push'](_0x53f088['shift']());}}}(_0x129d,0x19a4e));import{ContextPlugin as _0x48cec8}from'ckeditor5/src/core.js';import{AITabs as _0x2dd222}from'../aitabs/aitabs.js';import{IconAIHistory as _0x1053ca}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x3a5788}from'./ui/aichathistoryview.js';function _0x129d(){const _0x5b1e19=['_historyView','updateItemTitle','showResizeButton','isMaximized','view','history','AIChatHistoryUI','context','hideError','625250mocYPw','475192GhNakR','AITabs','setConversationPinned','isOfficialPlugin','isLoading','updateItems','72272oVEqwg','1242SVNVol','AI_CHAT_HISTORY_HEADING','get','errorMessage','updateHistoryItemsWithCategories','requires','locale','editConversationTitle','openChat','isPremiumPlugin','addTab','showError','1167768vsFDuX','plugins','237ogRpGL','updateItemLoadingState','121938Fkcsbr','removeConversation','selectConversation','showConversationHistory','removeHistoryItem','1321873avLBWS','resizeTabs','pluginName','delegate','setLoadingSkeleton','setIsMaximized'];_0x129d=function(){return _0x5b1e19;};return _0x129d();}import{getTranslation as _0xa81edb}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';function _0x3f90(_0x5d0e1a,_0x5e237c){const _0x129d4b=_0x129d();return _0x3f90=function(_0x3f90c1,_0x2a1e8a){_0x3f90c1=_0x3f90c1-0x1d2;let _0x5f1bdb=_0x129d4b[_0x3f90c1];return _0x5f1bdb;},_0x3f90(_0x5d0e1a,_0x5e237c);}export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x96e3f1(0x1d8),_0x96e3f1(0x1d6),_0x96e3f1(0x1f8),_0x96e3f1(0x1ec),_0x96e3f1(0x1d7),_0x96e3f1(0x1f9),_0x96e3f1(0x1db)];export class AIChatHistoryUI extends _0x48cec8{static get[_0x96e3f1(0x1f6)](){return[_0x2dd222];}[_0x96e3f1(0x1e0)];static get[_0x96e3f1(0x1dc)](){const _0x5b5ebf=_0x96e3f1;return _0x5b5ebf(0x1e6);}static get[_0x96e3f1(0x1ed)](){return!0x0;}static get[_0x96e3f1(0x1fa)](){return!0x0;}constructor(_0x1842ab){const _0x5e03af=_0x96e3f1;super(_0x1842ab);const _0x1a2dfd=this[_0x5e03af(0x1e7)][_0x5e03af(0x1d2)][_0x5e03af(0x1f3)](_0x5e03af(0x1eb));this[_0x5e03af(0x1e0)]=new _0x3a5788(this[_0x5e03af(0x1e7)][_0x5e03af(0x1f7)],_0x1a2dfd[_0x5e03af(0x1e2)]),this[_0x5e03af(0x1e0)][_0x5e03af(0x1dd)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x1a2dfd[_0x5e03af(0x1e4)][_0x5e03af(0x1fb)]({'id':_0x5e03af(0x1e5),'buttonLabel':_0xa81edb(this[_0x5e03af(0x1e7)][_0x5e03af(0x1f7)],_0x5e03af(0x1f2)),'buttonIcon':_0x1053ca,'order':0x0,'content':this[_0x5e03af(0x1e0)]});}[_0x96e3f1(0x1d9)](_0x31081e){const _0x54a7ab=_0x96e3f1;this[_0x54a7ab(0x1e0)][_0x54a7ab(0x1d9)](_0x31081e);}[_0x96e3f1(0x1ef)](_0x12e9b){const _0x583b83=_0x96e3f1;this[_0x583b83(0x1e0)][_0x583b83(0x1f5)](_0x12e9b);}[_0x96e3f1(0x1e1)](_0x5cf696,_0x18eba9){const _0x137d19=_0x96e3f1;this[_0x137d19(0x1e0)][_0x137d19(0x1e1)](_0x5cf696,_0x18eba9);}[_0x96e3f1(0x1d4)](_0x24a7e1,_0x7c0a34,_0x549d07){const _0x2849ba=_0x96e3f1;this[_0x2849ba(0x1e0)][_0x2849ba(0x1d4)](_0x24a7e1,_0x7c0a34,_0x549d07);}[_0x96e3f1(0x1de)](_0x585417){const _0x1886cf=_0x96e3f1;this[_0x1886cf(0x1e0)][_0x1886cf(0x1ee)]=_0x585417;}[_0x96e3f1(0x1fc)](_0x3b9626){const _0x1e2a46=_0x96e3f1;this[_0x1e2a46(0x1e0)][_0x1e2a46(0x1f4)]=_0x3b9626;}[_0x96e3f1(0x1e8)](){const _0x3db6d2=_0x96e3f1;this[_0x3db6d2(0x1e0)][_0x3db6d2(0x1f4)]='';}[_0x96e3f1(0x1df)](_0x5df42c){const _0x230f79=_0x96e3f1;this[_0x230f79(0x1e0)][_0x230f79(0x1e3)]=_0x5df42c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4b92d5=_0x107f;(function(_0xd7559c,_0x46ec28){const _0x3c3525=_0x107f,_0x24d85c=_0xd7559c();while(!![]){try{const _0x197bad=parseInt(_0x3c3525(0x1f8))/0x1+-parseInt(_0x3c3525(0x1ff))/0x2+parseInt(_0x3c3525(0x211))/0x3*(-parseInt(_0x3c3525(0x1f2))/0x4)+-parseInt(_0x3c3525(0x1e8))/0x5*(-parseInt(_0x3c3525(0x20e))/0x6)+parseInt(_0x3c3525(0x204))/0x7+parseInt(_0x3c3525(0x1f5))/0x8*(parseInt(_0x3c3525(0x20a))/0x9)+-parseInt(_0x3c3525(0x20d))/0xa;if(_0x197bad===_0x46ec28)break;else _0x24d85c['push'](_0x24d85c['shift']());}catch(_0x2e0f00){_0x24d85c['push'](_0x24d85c['shift']());}}}(_0x5da3,0xed0c0));import{EmitterMixin as _0x14fa1b}from'ckeditor5/src/utils.js';function _0x107f(_0x313136,_0x4ea688){const _0x5da344=_0x5da3();return _0x107f=function(_0x107f8b,_0x216012){_0x107f8b=_0x107f8b-0x1e5;let _0x53da8c=_0x5da344[_0x107f8b];return _0x53da8c;},_0x107f(_0x313136,_0x4ea688);}function _0x5da3(){const _0x515d10=['itemRemoved','fetchConversations','find','getTime','12323339VTVnzR','items','group','execute','pinned','filter','89361dIWccF','from','addItem','29616470MczBQW','7446kbdYOO','removeItem','itemsLoaded','183dDWbDO','updateItemPinned','connector','loadItems','push','updateTitle','7670mOBkCn','getDate','getItem','getItems','getResult','updatePinned','findIndex','updateItemTitle','updateConversation','getConversations','125180EyLibX','splice','init','1232aCWZvZ','error','createdAt','880836QixGRi','getMonth','deleteConversation','map','getFullYear','fire','itemUpdated','464974FXnYwW'];_0x5da3=function(){return _0x515d10;};return _0x5da3();}import{AIChatHistoryItem as _0x4601e7}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x14fa1b(){[_0x4b92d5(0x205)]=[];[_0x4b92d5(0x213)];[_0x4b92d5(0x206)];constructor({connector:_0xa4eedf,group:_0x5daf5b}){const _0x264738=_0x4b92d5;super(),this[_0x264738(0x213)]=_0xa4eedf,this[_0x264738(0x206)]=_0x5daf5b;}async[_0x4b92d5(0x1f4)](){const _0x58e8be=_0x4b92d5;try{const _0x12fb85=this[_0x58e8be(0x213)][_0x58e8be(0x201)](this[_0x58e8be(0x206)]),_0x1e4d35=await _0x12fb85[_0x58e8be(0x1f1)]();this[_0x58e8be(0x1e5)](_0x1e4d35);}catch(_0x1fd872){this[_0x58e8be(0x1fd)](_0x58e8be(0x1f6),{'error':_0x1fd872,'operation':_0x58e8be(0x1f4)});}}[_0x4b92d5(0x20c)](_0xbc544c){const _0x1c90a3=_0x4b92d5;this[_0x1c90a3(0x205)][_0x1c90a3(0x1e6)](_0xbc544c);}async[_0x4b92d5(0x20f)](_0x54f224){const _0x22505f=_0x4b92d5,_0x548d60=this[_0x22505f(0x205)][_0x22505f(0x1ee)](_0xd39730=>_0xd39730['id']===_0x54f224);if(-0x1===_0x548d60)return!0x1;try{return await this[_0x22505f(0x213)][_0x22505f(0x1fa)](_0x54f224)[_0x22505f(0x207)](),this[_0x22505f(0x205)][_0x22505f(0x1f3)](_0x548d60,0x1),this[_0x22505f(0x1fd)](_0x22505f(0x200),{'itemId':_0x54f224}),!0x0;}catch(_0x403e45){return this[_0x22505f(0x1fd)](_0x22505f(0x1f6),{'error':_0x403e45,'operation':_0x22505f(0x20f),'itemId':_0x54f224}),!0x1;}}[_0x4b92d5(0x1ea)](_0xb69035){const _0xa5e61f=_0x4b92d5;return this[_0xa5e61f(0x205)][_0xa5e61f(0x202)](_0x1bc978=>_0x1bc978['id']===_0xb69035);}async[_0x4b92d5(0x1ef)](_0x122627,_0x3c204d){const _0x4c31d6=_0x4b92d5,_0x386157=this[_0x4c31d6(0x1ea)](_0x122627);if(!_0x386157)return!0x1;try{return await this[_0x4c31d6(0x213)][_0x4c31d6(0x1f0)](_0x122627,{'title':_0x3c204d})[_0x4c31d6(0x1ec)](),_0x386157[_0x4c31d6(0x1e7)](_0x3c204d),this[_0x4c31d6(0x1fd)](_0x4c31d6(0x1fe),{'itemId':_0x122627,'updates':{'title':_0x3c204d}}),!0x0;}catch(_0xc150ab){return this[_0x4c31d6(0x1fd)](_0x4c31d6(0x1f6),{'error':_0xc150ab,'operation':_0x4c31d6(0x1ef),'itemId':_0x122627}),!0x1;}}async[_0x4b92d5(0x212)](_0x56d01b,_0x1fdf63){const _0x4c0221=_0x4b92d5,_0x301dca=this[_0x4c0221(0x1ea)](_0x56d01b);if(!_0x301dca)return!0x1;try{return await this[_0x4c0221(0x213)][_0x4c0221(0x1f0)](_0x56d01b,{'pinned':_0x1fdf63})[_0x4c0221(0x1ec)](),_0x301dca[_0x4c0221(0x1ed)](_0x1fdf63),this[_0x4c0221(0x1fd)](_0x4c0221(0x1fe),{'itemId':_0x56d01b,'updates':{'pinned':_0x1fdf63}}),!0x0;}catch(_0x24d06a){return this[_0x4c0221(0x1fd)](_0x4c0221(0x1f6),{'error':_0x24d06a,'operation':_0x4c0221(0x212),'itemId':_0x56d01b}),!0x1;}}[_0x4b92d5(0x1e5)](_0x54f249){const _0x21c69f=_0x4b92d5;try{this[_0x21c69f(0x205)]=[],_0x54f249[_0x21c69f(0x1fb)](_0x138be7=>{const _0x11035f=_0x21c69f;this[_0x11035f(0x20c)](new _0x4601e7(_0x138be7));}),this[_0x21c69f(0x1fd)](_0x21c69f(0x210),{'items':[...this[_0x21c69f(0x205)]]});}catch(_0x4b0685){this[_0x21c69f(0x1fd)](_0x21c69f(0x1f6),{'error':_0x4b0685,'operation':_0x21c69f(0x1e5)});}}[_0x4b92d5(0x1eb)](_0x292523={}){const _0x32a579=_0x4b92d5,_0x2091d5=void 0x0!==_0x292523[_0x32a579(0x208)]&&_0x292523[_0x32a579(0x208)],_0x32972f=_0x292523[_0x32a579(0x20b)]?new Date(_0x292523[_0x32a579(0x20b)][_0x32a579(0x1fc)](),_0x292523[_0x32a579(0x20b)][_0x32a579(0x1f9)](),_0x292523[_0x32a579(0x20b)][_0x32a579(0x1e9)]()):null,_0x464d3e=_0x292523['to']?new Date(_0x292523['to'][_0x32a579(0x1fc)](),_0x292523['to'][_0x32a579(0x1f9)](),_0x292523['to'][_0x32a579(0x1e9)]()):null;return this[_0x32a579(0x205)][_0x32a579(0x209)](_0x3ce83e=>{const _0x32bb56=_0x32a579;if(_0x3ce83e[_0x32bb56(0x208)]!==_0x2091d5)return!0x1;if(_0x464d3e){const _0x4597be=new Date(_0x3ce83e[_0x32bb56(0x1f7)][_0x32bb56(0x1fc)](),_0x3ce83e[_0x32bb56(0x1f7)][_0x32bb56(0x1f9)](),_0x3ce83e[_0x32bb56(0x1f7)][_0x32bb56(0x1e9)]());return _0x32972f?_0x32972f[_0x32bb56(0x203)]()===_0x464d3e[_0x32bb56(0x203)]()?_0x4597be[_0x32bb56(0x203)]()===_0x32972f[_0x32bb56(0x203)]():_0x4597be<_0x464d3e&&_0x4597be>=_0x32972f:_0x4597be<_0x464d3e;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x11254b=_0x4664;(function(_0x5a250f,_0xa9ece2){var _0x3e1b99=_0x4664,_0x57e3c3=_0x5a250f();while(!![]){try{var _0x24ef0d=parseInt(_0x3e1b99(0x148))/0x1*(parseInt(_0x3e1b99(0x153))/0x2)+parseInt(_0x3e1b99(0x14a))/0x3*(-parseInt(_0x3e1b99(0x143))/0x4)+parseInt(_0x3e1b99(0x150))/0x5+-parseInt(_0x3e1b99(0x151))/0x6*(-parseInt(_0x3e1b99(0x14e))/0x7)+-parseInt(_0x3e1b99(0x146))/0x8+-parseInt(_0x3e1b99(0x147))/0x9+parseInt(_0x3e1b99(0x14d))/0xa;if(_0x24ef0d===_0xa9ece2)break;else _0x57e3c3['push'](_0x57e3c3['shift']());}catch(_0x1bd362){_0x57e3c3['push'](_0x57e3c3['shift']());}}}(_0x1e50,0x4ffaa));function _0x4664(_0x909384,_0x3462d2){var _0x1e5098=_0x1e50();return _0x4664=function(_0x46644e,_0x8a7cd7){_0x46644e=_0x46644e-0x143;var _0x2113db=_0x1e5098[_0x46644e];return _0x2113db;},_0x4664(_0x909384,_0x3462d2);}import{ObservableMixin as _0x16361f}from'ckeditor5/src/utils.js';function _0x1e50(){var _0x4a7ddc=['title','1134820yWShFI','1126405HljKzw','pinned','1906505mQdGSm','6TxtrHd','updateTitle','2yUQHaR','4piZEzm','set','createdAt','2113136BMBszn','2573838bTlbiv','559571NeVsbO','updatedAt','1012653KGbZZW','updatePinned'];_0x1e50=function(){return _0x4a7ddc;};return _0x1e50();}import{escape as _0x10cf01}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x16361f(){['id'];[_0x11254b(0x145)];constructor({id:_0x1b6aab,title:_0x5eccdf,createdAt:_0x5b510b,updatedAt:_0x1fe41e,pinned:_0x3075b6}){var _0x15eb5f=_0x11254b;super(),this['id']=_0x1b6aab,this[_0x15eb5f(0x145)]=new Date(_0x5b510b),this[_0x15eb5f(0x144)](_0x15eb5f(0x14c),_0x5eccdf),this[_0x15eb5f(0x144)](_0x15eb5f(0x149),_0x1fe41e?new Date(_0x1fe41e):null),this[_0x15eb5f(0x144)](_0x15eb5f(0x14f),_0x3075b6||!0x1);}[_0x11254b(0x152)](_0x132c70){var _0x25bbf1=_0x11254b;this[_0x25bbf1(0x144)](_0x25bbf1(0x14c),_0x10cf01(_0x132c70)),this[_0x25bbf1(0x149)]=new Date();}[_0x11254b(0x14b)](_0x36a83b){var _0x439a5b=_0x11254b;this[_0x439a5b(0x144)](_0x439a5b(0x14f),_0x36a83b),this[_0x439a5b(0x149)]=new Date();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x28f5f3=_0x438d;(function(_0x1bc365,_0x4a4fce){const _0x5398a9=_0x438d,_0x390d56=_0x1bc365();while(!![]){try{const _0x2e6ba3=parseInt(_0x5398a9(0x132))/0x1+-parseInt(_0x5398a9(0x139))/0x2*(-parseInt(_0x5398a9(0x106))/0x3)+parseInt(_0x5398a9(0x11f))/0x4*(parseInt(_0x5398a9(0xf7))/0x5)+parseInt(_0x5398a9(0xfd))/0x6*(parseInt(_0x5398a9(0x136))/0x7)+parseInt(_0x5398a9(0x134))/0x8*(-parseInt(_0x5398a9(0x12c))/0x9)+-parseInt(_0x5398a9(0xe5))/0xa+parseInt(_0x5398a9(0xf8))/0xb*(-parseInt(_0x5398a9(0xff))/0xc);if(_0x2e6ba3===_0x4a4fce)break;else _0x390d56['push'](_0x390d56['shift']());}catch(_0x3ad9a7){_0x390d56['push'](_0x390d56['shift']());}}}(_0x5370,0xd4fc9));import{ListItemView as _0x4d680d,HighlightedTextView as _0x1d8b39,ButtonView as _0x39accb,ListView as _0x59f30d,IconView as _0x242918,createDropdown as _0x1c3571,InputTextView as _0x165543}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x4465ff,IconPin as _0x1e5508,IconCheck as _0x1c1c9a,IconCancel as _0x306445}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1f83b3,ConfirmMixin as _0x3c8914}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x165488}from'es-toolkit/compat';function _0x5370(){const _0x495a98=['isEdit','editConversationTitle','AI_CHAT_HISTORY_LOADING_PINNING','_createMenuDropdownView','ck-ai-chat-history__item-actions','element','setTemplate','_createCheckView','LOADING_LABELS','addMany','ck-hidden','updateTitle','ck-ai-chat-history__item--edit','15256SxZxJF','isVisible','Enter','loadingState','_commitEditInputValue','tiny','_createSpinnerView','set','mainContent','bind','ck-ai-loader','extendTemplate','ck-ai-chat-history__item-content','297MsUazT','buttonView','panelView','selectConversation','ck-ai-loader__text','AI_CHAT_HISTORY_LOADING_UNPINNING','901858LvSqoG','fire','4752DsjCZh','bindTemplate','1973377XKhfdF','locale','change:isEdit','1166abMMYx','AI_CHAT_HISTORY_REMOVE_CONFIRM','createCollection','AI_CHAT_HISTORY_REMOVE','_createEditInputView','isMatching','focus','click','children','_titleView','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','add','value','ck-ai-chat-history__item--active','match','10893090cxhnKF','panelPosition','AI_CHAT_HISTORY_ACCEPT','withText','ck-ai-chat-history__item-check','removeConversation','key','ck-ai-chat-history__item-date','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item-title','ck-confirm-view-cancel','AI_CHAT_HISTORY_CANCEL','edit:cancel','string','span','then','div','updateLoadingState','1585cPHuzc','165uyrPwO','AI_CHAT_HISTORY_LOADING_RENAMING','showConfirm','AI_CHAT_HISTORY_EDIT_NAME','pinned','30LgdKEe','ck-ai-chat-history__item-check-container','2472408gMrwqL','label','ck-ai-chat-history__item-row','text','items','_createCancelEditButtonView','listitem','7983pDqtyt','actions','setConversationPinned','_createPinButtonView','isOn','execute','_createAcceptEditButtonView','ck-ai-chat-history__item','clear','ck-ai-chat-history__item-main-content','ck-confirm-view-submit','highlightText'];_0x5370=function(){return _0x495a98;};return _0x5370();}function _0x438d(_0xe75de7,_0x560b37){const _0x5370bf=_0x5370();return _0x438d=function(_0x438d0f,_0x5ee648){_0x438d0f=_0x438d0f-0xd9;let _0x37b665=_0x5370bf[_0x438d0f];return _0x37b665;},_0x438d(_0xe75de7,_0x560b37);}import{AISpinnerView as _0x20027e}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x44d73d}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0x3c8914(_0x4d680d){['id'];static [_0x28f5f3(0x11a)]={'remove':_0x28f5f3(0xdf),'rename':_0x28f5f3(0xf9),'pin':_0x28f5f3(0x114),'unpin':_0x28f5f3(0x131)};[_0x28f5f3(0x107)];[_0x28f5f3(0x127)];[_0x28f5f3(0xde)];constructor(_0x4384ce,_0x4c54c4){const _0x415b7c=_0x28f5f3;super(_0x4384ce);const _0x3968c0=this[_0x415b7c(0x135)];this[_0x415b7c(0x126)](_0x415b7c(0x112),!0x1),this[_0x415b7c(0x126)](_0x415b7c(0x120),!0x0),this[_0x415b7c(0x126)](_0x415b7c(0xfc),!!_0x4c54c4[_0x415b7c(0xfc)]),this[_0x415b7c(0x126)](_0x415b7c(0x122),null),this['id']=_0x4c54c4['id'];const {title:_0x506cc2,createdAt:_0x8b824c,active:_0x2af3da=!0x1}=_0x4c54c4;this[_0x415b7c(0xde)]=new _0x1d8b39(),this[_0x415b7c(0xde)][_0x415b7c(0x102)]=_0x506cc2,this[_0x415b7c(0xde)][_0x415b7c(0x12a)]({'attributes':{'class':[_0x415b7c(0xee)]}});const _0x80f903=this[_0x415b7c(0x119)](),_0x4c7a9c=this[_0x415b7c(0x109)](_0x4384ce),_0x150e1d=this[_0x415b7c(0x115)](),_0x1fe37a=this[_0x415b7c(0xd9)](_0x4384ce,_0x506cc2),_0x60b043=this[_0x415b7c(0x10c)](_0x4384ce,_0x1fe37a),_0x16abf5=this[_0x415b7c(0x104)](_0x4384ce,_0x1fe37a);this[_0x415b7c(0x107)]=this[_0x415b7c(0x13b)](),this[_0x415b7c(0x127)]=this[_0x415b7c(0x13b)](),this[_0x415b7c(0x127)][_0x415b7c(0xe1)](this[_0x415b7c(0xde)]),this[_0x415b7c(0x107)][_0x415b7c(0xe1)](_0x4c7a9c),this[_0x415b7c(0x107)][_0x415b7c(0xe1)](_0x150e1d),this['on'](_0x415b7c(0x138),(_0x7c8e5e,_0x1efb70,_0x3a8ece)=>{const _0x5e39e0=_0x415b7c;this[_0x5e39e0(0x107)][_0x5e39e0(0x10e)](),this[_0x5e39e0(0x127)][_0x5e39e0(0x10e)](),_0x3a8ece?(this[_0x5e39e0(0x107)][_0x5e39e0(0xe1)](_0x60b043),this[_0x5e39e0(0x107)][_0x5e39e0(0xe1)](_0x16abf5),this[_0x5e39e0(0x127)][_0x5e39e0(0xe1)](_0x1fe37a),_0x1fe37a[_0x5e39e0(0x117)][_0x5e39e0(0xdb)]()):(this[_0x5e39e0(0x107)][_0x5e39e0(0xe1)](_0x4c7a9c),this[_0x5e39e0(0x107)][_0x5e39e0(0xe1)](_0x150e1d),this[_0x5e39e0(0x127)][_0x5e39e0(0xe1)](this[_0x5e39e0(0xde)]));}),this[_0x415b7c(0x118)]({'tag':'li','attributes':{'class':[_0x415b7c(0x10d),_0x2af3da?_0x415b7c(0xe3):'',_0x3968c0['if'](_0x415b7c(0x120),_0x415b7c(0x11c),_0x152fa2=>!_0x152fa2),_0x3968c0['if'](_0x415b7c(0x112),_0x415b7c(0x11e))],'role':_0x415b7c(0x105)},'children':[{'tag':_0x415b7c(0xf3),'attributes':{'class':[_0x415b7c(0xfe)]},'children':[{'tag':_0x415b7c(0xf5),'attributes':{'class':[_0x415b7c(0xe9),_0x3968c0['if'](_0x415b7c(0x122),_0x415b7c(0x11c),_0x5160d2=>!!_0x5160d2)]},'children':_0x2af3da?[_0x80f903]:[]},{'tag':_0x415b7c(0xf5),'attributes':{'class':[_0x415b7c(0x129),_0x3968c0['if'](_0x415b7c(0x122),_0x415b7c(0x11c),_0x253db5=>!_0x253db5)]},'children':[this[_0x415b7c(0x125)]()]}]},{'tag':_0x415b7c(0xf5),'attributes':{'class':[_0x415b7c(0x101)]},'children':[{'tag':_0x415b7c(0xf5),'attributes':{'class':[_0x415b7c(0x12b)]},'on':{'click':this[_0x415b7c(0x135)]['to'](_0x415b7c(0xdc))},'children':[{'tag':_0x415b7c(0xf5),'attributes':{'class':[_0x415b7c(0x10f)]},'children':[{'tag':_0x415b7c(0xf5),'attributes':{'class':[_0x415b7c(0xee),_0x3968c0['if'](_0x415b7c(0x122),_0x415b7c(0x11c),_0x1747ed=>!!_0x1747ed)]},'children':this[_0x415b7c(0x127)]},{'tag':_0x415b7c(0xf5),'attributes':{'class':[_0x415b7c(0x130),_0x3968c0['if'](_0x415b7c(0x122),_0x415b7c(0x11c),_0x261dfe=>!_0x261dfe)]},'children':[{'text':_0x3968c0['to'](_0x415b7c(0x122),_0x3b7a76=>_0x3b7a76?_0x44d73d(this[_0x415b7c(0x137)],AIChatHistoryListItemView[_0x415b7c(0x11a)][_0x3b7a76]):'')}]}]},{'tag':_0x415b7c(0xf3),'attributes':{'class':[_0x415b7c(0xec)]},'children':[_0x8b824c]}]},{'tag':_0x415b7c(0xf5),'attributes':{'class':[_0x415b7c(0x116)]},'children':this[_0x415b7c(0x107)]}]}]}),this['on'](_0x415b7c(0xdc),()=>{const _0x4c8a3e=_0x415b7c;this[_0x4c8a3e(0x112)]||this[_0x4c8a3e(0x133)](_0x4c8a3e(0x12f),{'id':this['id']});});}[_0x28f5f3(0x11d)](_0x1aa6d3){const _0xaf7175=_0x28f5f3;this[_0xaf7175(0xde)][_0xaf7175(0x102)]=_0x165488(_0x1aa6d3);}[_0x28f5f3(0xf6)](_0x45bd7e,_0x1203c2){const _0x106543=_0x28f5f3;this[_0x106543(0x126)](_0x106543(0x122),_0x1203c2?_0x45bd7e:null);}[_0x28f5f3(0x119)](){const _0x494943=_0x28f5f3,_0x4eac30=new _0x242918();return _0x4eac30[_0x494943(0x126)]({'content':_0x1c1c9a}),_0x4eac30;}[_0x28f5f3(0x109)](_0x1d0275){const _0xb834a2=_0x28f5f3,_0x41d211=new _0x39accb(_0x1d0275);return _0x41d211[_0xb834a2(0x126)]({'label':_0x44d73d(_0x1d0275,_0xb834a2(0xed)),'icon':_0x1e5508,'withText':!0x1,'tooltip':!0x0}),_0x41d211[_0xb834a2(0x128)](_0xb834a2(0x10a))['to'](this,_0xb834a2(0xfc)),_0x41d211['on'](_0xb834a2(0x10b),()=>{const _0x31e964=_0xb834a2,_0x215ac5=!this[_0x31e964(0xfc)];this[_0x31e964(0x133)](_0x31e964(0x108),{'id':this['id'],'pinned':_0x215ac5});}),_0x41d211;}[_0x28f5f3(0x115)](){const _0x5ea715=_0x28f5f3,_0x20ab2d=_0x1c3571(this[_0x5ea715(0x137)],_0x1f83b3),_0x5d01b6=_0x20ab2d[_0x5ea715(0x12e)][_0x5ea715(0xdd)];_0x20ab2d[_0x5ea715(0x12d)][_0x5ea715(0x126)]({'label':_0x44d73d(this[_0x5ea715(0x137)],_0x5ea715(0xe0)),'icon':_0x4465ff}),_0x20ab2d[_0x5ea715(0xe6)]='sw';const _0xeff85c=new _0x39accb(this[_0x5ea715(0x137)]);_0xeff85c[_0x5ea715(0x100)]=_0x44d73d(this[_0x5ea715(0x137)],_0x5ea715(0xfb)),_0xeff85c[_0x5ea715(0xe8)]=!0x0,_0xeff85c['on'](_0x5ea715(0x10b),()=>{const _0x502e73=_0x5ea715;this[_0x502e73(0x112)]=!0x0;});const _0x17c941=new _0x39accb(this[_0x5ea715(0x137)]);_0x17c941[_0x5ea715(0x100)]=_0x44d73d(this[_0x5ea715(0x137)],_0x5ea715(0x13c)),_0x17c941[_0x5ea715(0xe8)]=!0x0,_0x17c941['on'](_0x5ea715(0x10b),()=>{const _0x4c7cea=_0x5ea715;this[_0x4c7cea(0xfa)](_0x44d73d(this[_0x4c7cea(0x137)],_0x4c7cea(0x13a)),this[_0x4c7cea(0x117)])[_0x4c7cea(0xf4)](()=>{const _0x492d03=_0x4c7cea;this[_0x492d03(0x133)](_0x492d03(0xea),{'id':this['id']});});});const _0x32ef86=new _0x59f30d(this[_0x5ea715(0x137)]),_0x49aaae=new _0x4d680d(this[_0x5ea715(0x137)]);_0x49aaae[_0x5ea715(0xdd)][_0x5ea715(0xe1)](_0xeff85c);const _0x1f843f=new _0x4d680d(this[_0x5ea715(0x137)]);return _0x1f843f[_0x5ea715(0xdd)][_0x5ea715(0xe1)](_0x17c941),_0x32ef86[_0x5ea715(0x103)][_0x5ea715(0x11b)]([_0x49aaae,_0x1f843f]),_0x5d01b6[_0x5ea715(0xe1)](_0x32ef86),_0x20ab2d;}[_0x28f5f3(0xd9)](_0x3c9c10,_0x1696a0){const _0x17b997=_0x28f5f3,_0x12985a=new _0x165543(_0x3c9c10),_0x33816b=_0x12985a[_0x17b997(0x135)];return _0x12985a[_0x17b997(0xe2)]=_0x1696a0,_0x12985a[_0x17b997(0x12a)]({'on':{'keydown':_0x33816b['to'](_0xce77d9=>{const _0x2f975f=_0x17b997;_0x2f975f(0x121)==_0xce77d9[_0x2f975f(0xeb)]&&this[_0x2f975f(0x123)](_0x12985a);})}}),_0x12985a;}[_0x28f5f3(0x10c)](_0x4994b4,_0x3ff4af){const _0x311d10=_0x28f5f3,_0x5b29d7=new _0x39accb(_0x4994b4);return _0x5b29d7[_0x311d10(0x126)]({'icon':_0x1c1c9a,'withText':!0x1,'tooltip':_0x44d73d(_0x4994b4,_0x311d10(0xe7))}),_0x5b29d7[_0x311d10(0x12a)]({'attributes':{'class':[_0x311d10(0x110)]}}),_0x5b29d7['on'](_0x311d10(0x10b),()=>{const _0x5663f7=_0x311d10;this[_0x5663f7(0x123)](_0x3ff4af);}),_0x5b29d7;}[_0x28f5f3(0x123)](_0x1e7018){const _0x4ed6aa=_0x28f5f3,_0x39d3bd=_0x1e7018[_0x4ed6aa(0x117)][_0x4ed6aa(0xe2)]||'';this[_0x4ed6aa(0xde)][_0x4ed6aa(0x102)]=_0x39d3bd,this[_0x4ed6aa(0x112)]=!0x1,this[_0x4ed6aa(0x133)](_0x4ed6aa(0x113),{'id':this['id'],'title':_0x39d3bd});}[_0x28f5f3(0x104)](_0x2ec673,_0x4377a4){const _0x5d17f4=_0x28f5f3,_0x2b9fc1=new _0x39accb(_0x2ec673);return _0x2b9fc1[_0x5d17f4(0x126)]({'icon':_0x306445,'withText':!0x1,'tooltip':_0x44d73d(_0x2ec673,_0x5d17f4(0xf0))}),_0x2b9fc1[_0x5d17f4(0x12a)]({'attributes':{'class':[_0x5d17f4(0xef)]}}),_0x2b9fc1['on'](_0x5d17f4(0x10b),()=>{const _0x1bdeb6=_0x5d17f4;this[_0x1bdeb6(0x112)]=!0x1,_0x4377a4[_0x1bdeb6(0xe2)]=this[_0x1bdeb6(0xde)][_0x1bdeb6(0x102)]||'',this[_0x1bdeb6(0x133)](_0x1bdeb6(0xf1));}),_0x2b9fc1;}[_0x28f5f3(0x125)](){const _0x2972b4=_0x28f5f3,_0x198ed8=new _0x20027e(_0x2972b4(0x124));return _0x198ed8[_0x2972b4(0x120)]=!0x0,_0x198ed8;}[_0x28f5f3(0xda)](_0x4a3808){const _0xdb5db6=_0x28f5f3;return this[_0xdb5db6(0xde)]&&_0xdb5db6(0xf2)==typeof this[_0xdb5db6(0xde)][_0xdb5db6(0x102)]&&this[_0xdb5db6(0xde)][_0xdb5db6(0x102)][_0xdb5db6(0xe4)](_0x4a3808)?{'title':!0x0}:null;}[_0x28f5f3(0x111)](_0x1048d2){const _0x144d4c=_0x28f5f3;this[_0x144d4c(0xde)][_0x144d4c(0x111)](_0x1048d2);}}
|
|
23
|
+
const _0x49abae=_0x12b0;(function(_0x2b22e2,_0x1eb096){const _0x54ed81=_0x12b0,_0x1f2984=_0x2b22e2();while(!![]){try{const _0x38400c=parseInt(_0x54ed81(0x1ec))/0x1+parseInt(_0x54ed81(0x208))/0x2+-parseInt(_0x54ed81(0x234))/0x3*(parseInt(_0x54ed81(0x20b))/0x4)+parseInt(_0x54ed81(0x1fc))/0x5+parseInt(_0x54ed81(0x1f0))/0x6*(parseInt(_0x54ed81(0x1eb))/0x7)+parseInt(_0x54ed81(0x1f8))/0x8*(parseInt(_0x54ed81(0x226))/0x9)+-parseInt(_0x54ed81(0x22f))/0xa*(parseInt(_0x54ed81(0x242))/0xb);if(_0x38400c===_0x1eb096)break;else _0x1f2984['push'](_0x1f2984['shift']());}catch(_0x5456f2){_0x1f2984['push'](_0x1f2984['shift']());}}}(_0x29fd,0x976d5));import{ListItemView as _0x2ebbec,HighlightedTextView as _0x140a75,ButtonView as _0x45e6fe,ListView as _0x2667ea,IconView as _0xce0c39,createDropdown as _0x513490,InputTextView as _0x3cb1ca}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x279bd1,IconPin as _0x119cde,IconCheck as _0xabb492,IconCancel as _0x4f727b}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x2bc894,ConfirmMixin as _0x1d6bee}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x3c3118}from'es-toolkit/compat';import{AISpinnerView as _0x436288}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x5d7906}from'../../aicore/utils/common-translations.js';function _0x12b0(_0x505c45,_0x3df57f){const _0x29fd67=_0x29fd();return _0x12b0=function(_0x12b076,_0x1af8c0){_0x12b076=_0x12b076-0x1e5;let _0x5814b9=_0x29fd67[_0x12b076];return _0x5814b9;},_0x12b0(_0x505c45,_0x3df57f);}function _0x29fd(){const _0x3be7bb=['ck-hidden','112406PlInoa','600862bDlasm','isOn','match','set','438fUSkzf','AI_CHAT_HISTORY_CANCEL','AI_CHAT_HISTORY_LOADING_PINNING','_createMenuDropdownView','ck-ai-chat-history__item-actions','bind','_createEditInputView','loadingState','72wLGzoI','element','locale','span','4671295hFXkzm','highlightText','panelPosition','AI_CHAT_HISTORY_PIN_BUTTON','AI_CHAT_HISTORY_ACCEPT','mainContent','selectConversation','_createCheckView','children','_createSpinnerView','bindTemplate','click','2079926hjCoHs','string','updateTitle','2179104JxrSpN','ck-ai-chat-history__item','AI_CHAT_HISTORY_REMOVE_CONFIRM','change:isEdit','ck-confirm-view-cancel','tiny','setTemplate','updateLoadingState','editConversationTitle','ck-ai-loader__text','div','ck-ai-chat-history__item-check','edit:cancel','value','ck-ai-chat-history__item-content','_createAcceptEditButtonView','label','execute','showConfirm','_titleView','panelView','key','AI_CHAT_HISTORY_EDIT_NAME','isEdit','AI_CHAT_HISTORY_LOADING_REMOVING','ck-ai-chat-history__item-title','AI_CHAT_HISTORY_REMOVE','73269dvQbJB','removeConversation','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','focus','ck-ai-chat-history__item-check-container','text','_commitEditInputValue','isVisible','createCollection','26555660xxSMcK','fire','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-loader','AI_CHAT_HISTORY_LOADING_UNPINNING','3dHwoIC','pinned','then','ck-ai-chat-history__item-date','ck-ai-chat-history__item-main-content','add','_createPinButtonView','ck-confirm-view-submit','LOADING_LABELS','actions','ck-ai-chat-history__item-row','ck-ai-chat-history__item--edit','setConversationPinned','extendTemplate','11mfbwpL','isMatching','withText','items','clear','addMany','Enter','listitem','buttonView','ck-ai-chat-history__item--active','_createCancelEditButtonView'];_0x29fd=function(){return _0x3be7bb;};return _0x29fd();}export class AIChatHistoryListItemView extends _0x1d6bee(_0x2ebbec){['id'];static [_0x49abae(0x23c)]={'remove':_0x49abae(0x223),'rename':_0x49abae(0x231),'pin':_0x49abae(0x1f2),'unpin':_0x49abae(0x233)};[_0x49abae(0x23d)];[_0x49abae(0x201)];[_0x49abae(0x21e)];constructor(_0x57a31f,_0x5d9c37){const _0x3b1537=_0x49abae;super(_0x57a31f);const _0x38a4b8=this[_0x3b1537(0x206)];this[_0x3b1537(0x1ef)](_0x3b1537(0x222),!0x1),this[_0x3b1537(0x1ef)](_0x3b1537(0x22d),!0x0),this[_0x3b1537(0x1ef)](_0x3b1537(0x235),!!_0x5d9c37[_0x3b1537(0x235)]),this[_0x3b1537(0x1ef)](_0x3b1537(0x1f7),null),this['id']=_0x5d9c37['id'];const {title:_0x55d5fa,createdAt:_0x6ec62e,active:_0x6a4d8c=!0x1}=_0x5d9c37;this[_0x3b1537(0x21e)]=new _0x140a75(),this[_0x3b1537(0x21e)][_0x3b1537(0x22b)]=_0x55d5fa,this[_0x3b1537(0x21e)][_0x3b1537(0x241)]({'attributes':{'class':[_0x3b1537(0x224)]}});const _0x588830=this[_0x3b1537(0x203)](),_0x581f3c=this[_0x3b1537(0x23a)](_0x57a31f),_0x2cd307=this[_0x3b1537(0x1f3)](),_0x1b4d9f=this[_0x3b1537(0x1f6)](_0x57a31f,_0x55d5fa),_0x2f8945=this[_0x3b1537(0x21a)](_0x57a31f,_0x1b4d9f),_0x50a045=this[_0x3b1537(0x1e9)](_0x57a31f,_0x1b4d9f);this[_0x3b1537(0x23d)]=this[_0x3b1537(0x22e)](),this[_0x3b1537(0x201)]=this[_0x3b1537(0x22e)](),this[_0x3b1537(0x201)][_0x3b1537(0x239)](this[_0x3b1537(0x21e)]),this[_0x3b1537(0x23d)][_0x3b1537(0x239)](_0x581f3c),this[_0x3b1537(0x23d)][_0x3b1537(0x239)](_0x2cd307),this['on'](_0x3b1537(0x20e),(_0x26f1ca,_0x308943,_0x35ca0e)=>{const _0x1d5845=_0x3b1537;this[_0x1d5845(0x23d)][_0x1d5845(0x246)](),this[_0x1d5845(0x201)][_0x1d5845(0x246)](),_0x35ca0e?(this[_0x1d5845(0x23d)][_0x1d5845(0x239)](_0x2f8945),this[_0x1d5845(0x23d)][_0x1d5845(0x239)](_0x50a045),this[_0x1d5845(0x201)][_0x1d5845(0x239)](_0x1b4d9f),_0x1b4d9f[_0x1d5845(0x1f9)][_0x1d5845(0x229)]()):(this[_0x1d5845(0x23d)][_0x1d5845(0x239)](_0x581f3c),this[_0x1d5845(0x23d)][_0x1d5845(0x239)](_0x2cd307),this[_0x1d5845(0x201)][_0x1d5845(0x239)](this[_0x1d5845(0x21e)]));}),this[_0x3b1537(0x211)]({'tag':'li','attributes':{'class':[_0x3b1537(0x20c),_0x6a4d8c?_0x3b1537(0x1e8):'',_0x38a4b8['if'](_0x3b1537(0x22d),_0x3b1537(0x1ea),_0x51dab6=>!_0x51dab6),_0x38a4b8['if'](_0x3b1537(0x222),_0x3b1537(0x23f))],'role':_0x3b1537(0x1e6)},'children':[{'tag':_0x3b1537(0x1fb),'attributes':{'class':[_0x3b1537(0x22a)]},'children':[{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x216),_0x38a4b8['if'](_0x3b1537(0x1f7),_0x3b1537(0x1ea),_0x2ba0f3=>!!_0x2ba0f3)]},'children':_0x6a4d8c?[_0x588830]:[]},{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x232),_0x38a4b8['if'](_0x3b1537(0x1f7),_0x3b1537(0x1ea),_0x563ecf=>!_0x563ecf)]},'children':[this[_0x3b1537(0x205)]()]}]},{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x23e)]},'children':[{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x219)]},'on':{'click':this[_0x3b1537(0x206)]['to'](_0x3b1537(0x207))},'children':[{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x238)]},'children':[{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x224),_0x38a4b8['if'](_0x3b1537(0x1f7),_0x3b1537(0x1ea),_0x556576=>!!_0x556576)]},'children':this[_0x3b1537(0x201)]},{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x214),_0x38a4b8['if'](_0x3b1537(0x1f7),_0x3b1537(0x1ea),_0xd4b41a=>!_0xd4b41a)]},'children':[{'text':_0x38a4b8['to'](_0x3b1537(0x1f7),_0x2f7c2b=>_0x2f7c2b?_0x5d7906(this[_0x3b1537(0x1fa)],AIChatHistoryListItemView[_0x3b1537(0x23c)][_0x2f7c2b]):'')}]}]},{'tag':_0x3b1537(0x1fb),'attributes':{'class':[_0x3b1537(0x237)]},'children':[_0x6ec62e]}]},{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x1f4)]},'children':this[_0x3b1537(0x23d)]}]}]}),this['on'](_0x3b1537(0x207),()=>{const _0x375c27=_0x3b1537;this[_0x375c27(0x222)]||this[_0x375c27(0x230)](_0x375c27(0x202),{'id':this['id']});});}[_0x49abae(0x20a)](_0x35db81){const _0x5b2317=_0x49abae;this[_0x5b2317(0x21e)][_0x5b2317(0x22b)]=_0x3c3118(_0x35db81);}[_0x49abae(0x212)](_0x5577d7,_0x5c2984){const _0x49b63e=_0x49abae;this[_0x49b63e(0x1ef)](_0x49b63e(0x1f7),_0x5c2984?_0x5577d7:null);}[_0x49abae(0x203)](){const _0x469002=_0x49abae,_0x4b7b10=new _0xce0c39();return _0x4b7b10[_0x469002(0x1ef)]({'content':_0xabb492}),_0x4b7b10;}[_0x49abae(0x23a)](_0x59a088){const _0x47c378=_0x49abae,_0x289444=new _0x45e6fe(_0x59a088);return _0x289444[_0x47c378(0x1ef)]({'label':_0x5d7906(_0x59a088,_0x47c378(0x1ff)),'icon':_0x119cde,'withText':!0x1,'tooltip':!0x0}),_0x289444[_0x47c378(0x1f5)](_0x47c378(0x1ed))['to'](this,_0x47c378(0x235)),_0x289444['on'](_0x47c378(0x21c),()=>{const _0x57ea8a=_0x47c378,_0x80cd3e=!this[_0x57ea8a(0x235)];this[_0x57ea8a(0x230)](_0x57ea8a(0x240),{'id':this['id'],'pinned':_0x80cd3e});}),_0x289444;}[_0x49abae(0x1f3)](){const _0xb11693=_0x49abae,_0x23fd8c=_0x513490(this[_0xb11693(0x1fa)],_0x2bc894),_0x1f8da4=_0x23fd8c[_0xb11693(0x21f)][_0xb11693(0x204)];_0x23fd8c[_0xb11693(0x1e7)][_0xb11693(0x1ef)]({'label':_0x5d7906(this[_0xb11693(0x1fa)],_0xb11693(0x228)),'icon':_0x279bd1}),_0x23fd8c[_0xb11693(0x1fe)]='sw';const _0x51b5a4=new _0x45e6fe(this[_0xb11693(0x1fa)]);_0x51b5a4[_0xb11693(0x21b)]=_0x5d7906(this[_0xb11693(0x1fa)],_0xb11693(0x221)),_0x51b5a4[_0xb11693(0x244)]=!0x0,_0x51b5a4['on'](_0xb11693(0x21c),()=>{const _0x38da9f=_0xb11693;this[_0x38da9f(0x222)]=!0x0;});const _0x57b0d2=new _0x45e6fe(this[_0xb11693(0x1fa)]);_0x57b0d2[_0xb11693(0x21b)]=_0x5d7906(this[_0xb11693(0x1fa)],_0xb11693(0x225)),_0x57b0d2[_0xb11693(0x244)]=!0x0,_0x57b0d2['on'](_0xb11693(0x21c),()=>{const _0x2f7047=_0xb11693;this[_0x2f7047(0x21d)](_0x5d7906(this[_0x2f7047(0x1fa)],_0x2f7047(0x20d)),this[_0x2f7047(0x1f9)])[_0x2f7047(0x236)](()=>{const _0x3e2e04=_0x2f7047;this[_0x3e2e04(0x230)](_0x3e2e04(0x227),{'id':this['id']});});});const _0x1d71ee=new _0x2667ea(this[_0xb11693(0x1fa)]),_0x6dc613=new _0x2ebbec(this[_0xb11693(0x1fa)]);_0x6dc613[_0xb11693(0x204)][_0xb11693(0x239)](_0x51b5a4);const _0x1c68a2=new _0x2ebbec(this[_0xb11693(0x1fa)]);return _0x1c68a2[_0xb11693(0x204)][_0xb11693(0x239)](_0x57b0d2),_0x1d71ee[_0xb11693(0x245)][_0xb11693(0x247)]([_0x6dc613,_0x1c68a2]),_0x1f8da4[_0xb11693(0x239)](_0x1d71ee),_0x23fd8c;}[_0x49abae(0x1f6)](_0x12df6a,_0x2ee6f4){const _0x5b713f=_0x49abae,_0x442bfc=new _0x3cb1ca(_0x12df6a),_0x112ec3=_0x442bfc[_0x5b713f(0x206)];return _0x442bfc[_0x5b713f(0x218)]=_0x2ee6f4,_0x442bfc[_0x5b713f(0x241)]({'on':{'keydown':_0x112ec3['to'](_0x371390=>{const _0x11e568=_0x5b713f;_0x11e568(0x1e5)==_0x371390[_0x11e568(0x220)]&&this[_0x11e568(0x22c)](_0x442bfc);})}}),_0x442bfc;}[_0x49abae(0x21a)](_0xae24e0,_0x3ff5fe){const _0x585ae6=_0x49abae,_0x4f36fe=new _0x45e6fe(_0xae24e0);return _0x4f36fe[_0x585ae6(0x1ef)]({'icon':_0xabb492,'withText':!0x1,'tooltip':_0x5d7906(_0xae24e0,_0x585ae6(0x200))}),_0x4f36fe[_0x585ae6(0x241)]({'attributes':{'class':[_0x585ae6(0x23b)]}}),_0x4f36fe['on'](_0x585ae6(0x21c),()=>{const _0x3f3c64=_0x585ae6;this[_0x3f3c64(0x22c)](_0x3ff5fe);}),_0x4f36fe;}[_0x49abae(0x22c)](_0x220ff7){const _0x3f7663=_0x49abae,_0x82e7db=_0x220ff7[_0x3f7663(0x1f9)][_0x3f7663(0x218)]||'';this[_0x3f7663(0x21e)][_0x3f7663(0x22b)]=_0x82e7db,this[_0x3f7663(0x222)]=!0x1,this[_0x3f7663(0x230)](_0x3f7663(0x213),{'id':this['id'],'title':_0x82e7db});}[_0x49abae(0x1e9)](_0x19e763,_0x4832b0){const _0x26d868=_0x49abae,_0x3fca7b=new _0x45e6fe(_0x19e763);return _0x3fca7b[_0x26d868(0x1ef)]({'icon':_0x4f727b,'withText':!0x1,'tooltip':_0x5d7906(_0x19e763,_0x26d868(0x1f1))}),_0x3fca7b[_0x26d868(0x241)]({'attributes':{'class':[_0x26d868(0x20f)]}}),_0x3fca7b['on'](_0x26d868(0x21c),()=>{const _0x1963e4=_0x26d868;this[_0x1963e4(0x222)]=!0x1,_0x4832b0[_0x1963e4(0x218)]=this[_0x1963e4(0x21e)][_0x1963e4(0x22b)]||'',this[_0x1963e4(0x230)](_0x1963e4(0x217));}),_0x3fca7b;}[_0x49abae(0x205)](){const _0x2755a7=_0x49abae,_0x1df5d5=new _0x436288(_0x2755a7(0x210));return _0x1df5d5[_0x2755a7(0x22d)]=!0x0,_0x1df5d5;}[_0x49abae(0x243)](_0xaba72){const _0x469922=_0x49abae;return this[_0x469922(0x21e)]&&_0x469922(0x209)==typeof this[_0x469922(0x21e)][_0x469922(0x22b)]&&this[_0x469922(0x21e)][_0x469922(0x22b)][_0x469922(0x1ee)](_0xaba72)?{'title':!0x0}:null;}[_0x49abae(0x1fd)](_0x2d2a45){const _0xcbb4a0=_0x49abae;this[_0xcbb4a0(0x21e)][_0xcbb4a0(0x1fd)](_0x2d2a45);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x528363=_0x1b33;function _0xf89e(){const _0x1a6e56=['ck-ai-chat-history__section','splice','4699158hXPhSE','setTemplate','filter','find','indexOf','3062570rnQPPC','title','itemsViews','1401238RjjlEd','ck-ai-chat-history__section-title','items','14021532ySaEha','removeItem','div','2337433iFYuGx','bindTemplate','addMany','ck-hidden','set','16eAUrye','isMatching','remove','length','highlightText','668343CLABRi','_itemsListView','3FdTzqf','getItem','2835016IwknwA','isVisible'];_0xf89e=function(){return _0x1a6e56;};return _0xf89e();}function _0x1b33(_0x14de54,_0x27abc0){const _0xf89e8=_0xf89e();return _0x1b33=function(_0x1b3323,_0x5dd883){_0x1b3323=_0x1b3323-0x10f;let _0x51ad0a=_0xf89e8[_0x1b3323];return _0x51ad0a;},_0x1b33(_0x14de54,_0x27abc0);}(function(_0x13b586,_0x52110a){const _0x4f8d31=_0x1b33,_0x4a2f91=_0x13b586();while(!![]){try{const _0x55f6d6=-parseInt(_0x4f8d31(0x117))/0x1+-parseInt(_0x4f8d31(0x127))/0x2+-parseInt(_0x4f8d31(0x119))/0x3*(-parseInt(_0x4f8d31(0x11b))/0x4)+-parseInt(_0x4f8d31(0x124))/0x5+parseInt(_0x4f8d31(0x11f))/0x6+-parseInt(_0x4f8d31(0x12d))/0x7*(parseInt(_0x4f8d31(0x112))/0x8)+parseInt(_0x4f8d31(0x12a))/0x9;if(_0x55f6d6===_0x52110a)break;else _0x4a2f91['push'](_0x4a2f91['shift']());}catch(_0x29b069){_0x4a2f91['push'](_0x4a2f91['shift']());}}}(_0xf89e,0x61cc5));import{ListItemView as _0x48e1f2,View as _0x25a53a,ListView as _0x541104}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x48e1f2{[_0x528363(0x125)];[_0x528363(0x126)];[_0x528363(0x118)];constructor(_0x1e91b3,{title:_0x107609,items:_0x37d1d7}){const _0x14272f=_0x528363;super(_0x1e91b3);const _0x5c5970=this[_0x14272f(0x12e)];this[_0x14272f(0x111)](_0x14272f(0x11c),!0x0),this[_0x14272f(0x125)]=_0x107609,this[_0x14272f(0x126)]=_0x37d1d7;const _0x55a17a=new _0x25a53a(_0x1e91b3);_0x55a17a[_0x14272f(0x120)]({'tag':_0x14272f(0x12c),'attributes':{'class':[_0x14272f(0x128)]},'children':[this[_0x14272f(0x125)]]}),this[_0x14272f(0x118)]=new _0x541104(_0x1e91b3),this[_0x14272f(0x118)][_0x14272f(0x129)][_0x14272f(0x10f)](this[_0x14272f(0x126)]),this[_0x14272f(0x120)]({'tag':'li','attributes':{'class':[_0x14272f(0x11d),_0x5c5970['if'](_0x14272f(0x11c),_0x14272f(0x110),_0x5b6d59=>!_0x5b6d59)]},'children':[_0x55a17a,this[_0x14272f(0x118)]]});}[_0x528363(0x121)](_0x50d9f0){const _0x14e75e=_0x528363,_0x5db2cc=this[_0x14e75e(0x126)][_0x14e75e(0x115)];let _0x584a30=0x0;for(const _0x364bd3 of this[_0x14e75e(0x126)]){if(_0x50d9f0){const _0x3ce293=_0x364bd3[_0x14e75e(0x113)](_0x50d9f0);_0x364bd3[_0x14e75e(0x11c)]=!!_0x3ce293,_0x364bd3[_0x14e75e(0x116)](_0x50d9f0);}else _0x364bd3[_0x14e75e(0x11c)]=!0x0,_0x364bd3[_0x14e75e(0x116)](null);_0x364bd3[_0x14e75e(0x11c)]&&_0x584a30++;}return this[_0x14e75e(0x11c)]=_0x584a30>0x0,{'resultsCount':_0x584a30,'totalItemsCount':_0x5db2cc};}[_0x528363(0x11a)](_0x599a0d){const _0x2128d4=_0x528363;return this[_0x2128d4(0x126)][_0x2128d4(0x122)](_0x34ab50=>_0x34ab50['id']===_0x599a0d);}[_0x528363(0x12b)](_0x2a0801){const _0xf8c8d5=_0x528363,_0x11daea=this[_0xf8c8d5(0x126)][_0xf8c8d5(0x123)](_0x2a0801);-0x1!==_0x11daea&&(this[_0xf8c8d5(0x126)][_0xf8c8d5(0x11e)](_0x11daea,0x1),this[_0xf8c8d5(0x118)][_0xf8c8d5(0x129)][_0xf8c8d5(0x114)](_0x2a0801));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d0867=_0x5e8f;function _0x5e8f(_0x360e8f,_0x2e29f5){const _0x4d0a24=_0x4d0a();return _0x5e8f=function(_0x5e8fa7,_0x157eb4){_0x5e8fa7=_0x5e8fa7-0x13a;let _0x1f28fe=_0x4d0a24[_0x5e8fa7];return _0x1f28fe;},_0x5e8f(_0x360e8f,_0x2e29f5);}(function(_0x1aa81f,_0x6b4592){const _0x5f0aae=_0x5e8f,_0x58f913=_0x1aa81f();while(!![]){try{const _0x36aca5=parseInt(_0x5f0aae(0x144))/0x1+-parseInt(_0x5f0aae(0x13d))/0x2*(parseInt(_0x5f0aae(0x13f))/0x3)+-parseInt(_0x5f0aae(0x13b))/0x4+parseInt(_0x5f0aae(0x145))/0x5*(-parseInt(_0x5f0aae(0x148))/0x6)+parseInt(_0x5f0aae(0x13e))/0x7+parseInt(_0x5f0aae(0x141))/0x8+parseInt(_0x5f0aae(0x142))/0x9;if(_0x36aca5===_0x6b4592)break;else _0x58f913['push'](_0x58f913['shift']());}catch(_0x189ee8){_0x58f913['push'](_0x58f913['shift']());}}}(_0x4d0a,0x6060a));import{ListView as _0x44275d}from'ckeditor5/src/ui.js';function _0x4d0a(){const _0xa4fbf=['2gkLttv','940751YkBmut','492819DycALv','extendTemplate','2053832NNmnhp','912087EzRNKL','filter','132594fQsfRt','7520kfLube','sections','items','192wRMKYW','addMany','71584afIiwJ','ck-ai-chat-history__sections'];_0x4d0a=function(){return _0xa4fbf;};return _0x4d0a();}export class AIChatHistorySectionListView extends _0x44275d{[_0x3d0867(0x146)];constructor(_0x470b6f,_0x521b32){const _0x277c64=_0x3d0867;super(_0x470b6f),this[_0x277c64(0x146)]=_0x521b32,this[_0x277c64(0x147)][_0x277c64(0x13a)](this[_0x277c64(0x146)]),this[_0x277c64(0x140)]({'attributes':{'class':[_0x277c64(0x13c)]}});}[_0x3d0867(0x143)](_0x1662f3){const _0x43cb13=_0x3d0867;let _0x1f622f=0x0,_0x4ee608=0x0;for(const _0x7bafa7 of this[_0x43cb13(0x146)]){const {resultsCount:_0x39992f,totalItemsCount:_0x21c4f9}=_0x7bafa7[_0x43cb13(0x143)](_0x1662f3);_0x1f622f+=_0x39992f,_0x4ee608+=_0x21c4f9;}return{'resultsCount':_0x1f622f,'totalItemsCount':_0x4ee608};}}
|