@ckeditor/ckeditor5-ai 47.3.0-alpha.4 → 47.3.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1c10d8=_0x58a2;(function(_0x2a84a2,_0x1c6fa9){const _0x5d6217=_0x58a2,_0x4386c3=_0x2a84a2();while(!![]){try{const _0x173d01=-parseInt(_0x5d6217(0xdb))/0x1+parseInt(_0x5d6217(0x123))/0x2+-parseInt(_0x5d6217(0xd2))/0x3*(parseInt(_0x5d6217(0x101))/0x4)+-parseInt(_0x5d6217(0x113))/0x5*(-parseInt(_0x5d6217(0x126))/0x6)+parseInt(_0x5d6217(0xfb))/0x7+-parseInt(_0x5d6217(0xe9))/0x8*(parseInt(_0x5d6217(0x11b))/0x9)+-parseInt(_0x5d6217(0xd1))/0xa*(-parseInt(_0x5d6217(0xc8))/0xb);if(_0x173d01===_0x1c6fa9)break;else _0x4386c3['push'](_0x4386c3['shift']());}catch(_0xe0cbdb){_0x4386c3['push'](_0x4386c3['shift']());}}}(_0x5192,0x2de09));import{KeystrokeHandler as _0x286552}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x2aec5b,BodyCollection as _0x26d380,ButtonView as _0x35695e,clickOutsideHandler as _0x50afb9,ListItemButtonView as _0x19f196,ListItemView as _0x2b04d3,ListView as _0x5120ff,SplitButtonView as _0x541d2f,UIModel as _0x9e1030,View as _0x421d78}from'ckeditor5/src/ui.js';import{IconCheck as _0x24f62b,IconAddComment as _0x245c7d,IconDocumentWithLoupe as _0x447f77}from'ckeditor5/src/icons.js';import{getTranslation as _0x29bda1}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x1c10d8(0xfc),_0x1c10d8(0xd5),_0x1c10d8(0x122)];export class AIChatFeedSuggestionItemActionsView extends _0x421d78{[_0x1c10d8(0xe7)];[_0x1c10d8(0xda)];[_0x1c10d8(0x10d)];[_0x1c10d8(0xce)];[_0x1c10d8(0xf2)];[_0x1c10d8(0x117)]=0x1;[_0x1c10d8(0xf1)];[_0x1c10d8(0xdd)];[_0x1c10d8(0xde)]=!0x0;constructor(_0x573f36,_0x10104d){const _0x21412f=_0x1c10d8;super(_0x573f36),this[_0x21412f(0xf1)]=_0x10104d||[...AI_REPLY_ACTIONS],this[_0x21412f(0xdd)]=[...this[_0x21412f(0xf1)]];const _0x2a8d45=this[_0x21412f(0x114)];this[_0x21412f(0xfd)](_0x21412f(0xd3),!0x0),this[_0x21412f(0xfd)](_0x21412f(0xee),!0x0),this[_0x21412f(0xfd)](_0x21412f(0xf5),!0x1),this[_0x21412f(0x10d)]=new _0x9e1030({'label':Ln(_0x21412f(0xfc),_0x573f36,this[_0x21412f(0x117)]),'icon':_0x24f62b,'withText':!0x0,'type':_0x21412f(0xea),'actionName':_0x21412f(0xfc)}),this[_0x21412f(0xce)]=new _0x9e1030({'label':Ln(_0x21412f(0x122),_0x573f36,this[_0x21412f(0x117)]),'icon':_0x447f77,'withText':!0x0,'type':_0x21412f(0xea),'actionName':_0x21412f(0x122)}),this[_0x21412f(0xf2)]=new _0x9e1030({'label':Ln(_0x21412f(0xd5),_0x573f36,this[_0x21412f(0x117)]),'icon':_0x245c7d,'withText':!0x0,'type':_0x21412f(0xea),'actionName':_0x21412f(0xd5)}),this[_0x21412f(0xe7)]=this[_0x21412f(0x121)](_0x573f36),this[_0x21412f(0xda)]=this[_0x21412f(0x128)](),this[_0x21412f(0xe7)]&&this[_0x21412f(0xda)][_0x21412f(0xf9)](this[_0x21412f(0xe7)]),this[_0x21412f(0xed)]({'tag':_0x21412f(0xd6),'attributes':{'class':['ck',_0x21412f(0xf6),_0x2a8d45['if'](_0x21412f(0xee),_0x21412f(0xc9),_0x14b1f9=>!_0x14b1f9)]},'children':this[_0x21412f(0xda)]}),this['on'](_0x21412f(0x103),()=>{const _0x1fe489=_0x21412f;this[_0x1fe489(0xdd)]=this[_0x1fe489(0xf5)]?this[_0x1fe489(0xf1)][_0x1fe489(0xe0)](_0x304359=>_0x1fe489(0xfc)!==_0x304359):[...this[_0x1fe489(0xf1)]],this[_0x1fe489(0xe5)](_0x573f36);});}[_0x1c10d8(0xe5)](_0x31c11b){const _0x502116=_0x1c10d8;this[_0x502116(0xe7)]&&this[_0x502116(0xda)][_0x502116(0xe1)](this[_0x502116(0xe7)])&&(this[_0x502116(0xda)][_0x502116(0x111)](this[_0x502116(0xe7)]),this[_0x502116(0xe7)][_0x502116(0xd9)]()),this[_0x502116(0xe7)]=this[_0x502116(0x121)](_0x31c11b),this[_0x502116(0xe7)]&&this[_0x502116(0xda)][_0x502116(0xf9)](this[_0x502116(0xe7)]);}[_0x1c10d8(0x121)](_0x1ac687){const _0x487311=_0x1c10d8;if(0x0==this[_0x487311(0xdd)][_0x487311(0xec)])return null;const _0x3a87d3=0x1===this[_0x487311(0xdd)][_0x487311(0xec)]?this[_0x487311(0xd7)](_0x1ac687):this[_0x487311(0x108)](_0x1ac687),_0x586728=this[_0x487311(0xde)]?'':_0x487311(0xe4);_0x3a87d3[_0x487311(0xfd)]({'label':Ln(this[_0x487311(0xdd)][0x0],_0x1ac687,this[_0x487311(0x117)]),'tooltip':Un(this[_0x487311(0xdd)][0x0],_0x1ac687,this[_0x487311(0x117)]),'withText':!0x0,'class':_0x487311(0xcf)+_0x586728});for(const _0x304628 of this[_0x487311(0xdd)])_0x3a87d3['on'](_0x304628,()=>{const _0x4713b0=_0x487311;this[_0x4713b0(0xf8)](_0x304628);});return this[_0x487311(0xde)]=!0x1,_0x3a87d3;}[_0x1c10d8(0xd7)](_0x45345c){const _0x36e64a=_0x1c10d8,_0x27484c=new _0x35695e(_0x45345c);return _0x27484c[_0x36e64a(0xfd)]({'class':_0x36e64a(0xe8),'withText':!0x0}),_0x27484c['on'](_0x36e64a(0xfa),()=>{const _0x2e7fb5=_0x36e64a;_0x27484c[_0x2e7fb5(0xf8)](this[_0x2e7fb5(0xdd)][0x0]);}),_0x27484c;}[_0x1c10d8(0x108)](_0x19d3f3){const _0x554a2d=_0x1c10d8,_0x19fa0b=new yn(_0x19d3f3,{'listItemModels':this[_0x554a2d(0xdd)][_0x554a2d(0x10e)](_0x269558=>{const _0x3f520b=_0x554a2d;switch(_0x269558){case _0x3f520b(0xfc):return this[_0x3f520b(0x10d)];case _0x3f520b(0x122):return this[_0x3f520b(0xce)];case _0x3f520b(0xd5):return this[_0x3f520b(0xf2)];}})});return _0x19fa0b[_0x554a2d(0xfd)]({'label':Ln(this[_0x554a2d(0xdd)][0x0],_0x19d3f3,this[_0x554a2d(0x117)]),'tooltip':Un(this[_0x554a2d(0xdd)][0x0],_0x19d3f3,this[_0x554a2d(0x117)]),'withText':!0x0,'class':_0x554a2d(0xf6),'balloonPanelClass':_0x554a2d(0x106)}),_0x19fa0b[_0x554a2d(0x11e)](_0x554a2d(0xd3))['to'](this),_0x19fa0b;}[_0x1c10d8(0x127)](_0x1afd20){const _0xe33ab0=_0x1c10d8,_0x3131cf=this[_0xe33ab0(0x107)];this[_0xe33ab0(0x117)]=_0x1afd20||this[_0xe33ab0(0x117)],this[_0xe33ab0(0xe7)][_0xe33ab0(0xfd)]({'label':Ln(this[_0xe33ab0(0xdd)][0x0],_0x3131cf,this[_0xe33ab0(0x117)]),'tooltip':Un(this[_0xe33ab0(0xdd)][0x0],_0x3131cf,this[_0xe33ab0(0x117)])}),this[_0xe33ab0(0x10d)][_0xe33ab0(0xf0)]=Ln(_0xe33ab0(0xfc),_0x3131cf,this[_0xe33ab0(0x117)]),this[_0xe33ab0(0xce)][_0xe33ab0(0xf0)]=Ln(_0xe33ab0(0x122),_0x3131cf,this[_0xe33ab0(0x117)]),this[_0xe33ab0(0xf2)][_0xe33ab0(0xf0)]=Ln(_0xe33ab0(0xd5),_0x3131cf,this[_0xe33ab0(0x117)]);}}class yn extends _0x541d2f{[_0x1c10d8(0x100)];[_0x1c10d8(0xca)];[_0x1c10d8(0xdf)];[_0x1c10d8(0x115)];constructor(_0x21507d,_0x820bb8){const _0x1dc25f=_0x1c10d8;super(_0x21507d),this[_0x1dc25f(0xca)]=new _0x2aec5b(this[_0x1dc25f(0x107)]),this[_0x1dc25f(0x100)]=new _0x26d380(this[_0x1dc25f(0x107)]),this[_0x1dc25f(0x100)][_0x1dc25f(0xcc)](),this[_0x1dc25f(0xfd)](_0x1dc25f(0x10b),''),this[_0x1dc25f(0xca)][_0x1dc25f(0x11e)](_0x1dc25f(0xd4))['to'](this,_0x1dc25f(0x10b)),this[_0x1dc25f(0xdf)]=this[_0x1dc25f(0x118)](_0x820bb8[_0x1dc25f(0xeb)][_0x1dc25f(0xe3)](0x1)),this[_0x1dc25f(0x100)][_0x1dc25f(0xf9)](this[_0x1dc25f(0xca)]),this[_0x1dc25f(0xca)][_0x1dc25f(0xf4)][_0x1dc25f(0xf9)](this[_0x1dc25f(0xdf)]),this[_0x1dc25f(0x125)][_0x1dc25f(0xd0)](_0x1dc25f(0x109)),this[_0x1dc25f(0x125)][_0x1dc25f(0xfd)](_0x1dc25f(0x109),_0x29bda1(this[_0x1dc25f(0x107)],_0x1dc25f(0xff))),this[_0x1dc25f(0xf3)](),this['on'](_0x1dc25f(0xfa),()=>{const _0x484cc9=_0x1dc25f,_0x37b304=_0x820bb8[_0x484cc9(0xeb)][0x0][_0x484cc9(0x124)];this[_0x484cc9(0xf8)](_0x37b304),this[_0x484cc9(0xca)][_0x484cc9(0xef)](),this[_0x484cc9(0x125)][_0x484cc9(0xe2)]();}),this['on'](_0x1dc25f(0xf7),()=>{const _0x5a9343=_0x1dc25f;this[_0x5a9343(0xca)][_0x5a9343(0xee)]?(this[_0x5a9343(0xca)][_0x5a9343(0xef)](),this[_0x5a9343(0x125)][_0x5a9343(0xe2)]()):(this[_0x5a9343(0xca)][_0x5a9343(0x120)]({'target':this[_0x5a9343(0x11d)],'positions':[_0x5a9343(0x104)===this[_0x5a9343(0x107)][_0x5a9343(0x11f)]?Pn:Hn]}),this[_0x5a9343(0xdf)][_0x5a9343(0xe2)]());}),_0x50afb9({'emitter':this[_0x1dc25f(0xca)],'callback':()=>{const _0x4664d5=_0x1dc25f;this[_0x4664d5(0xca)][_0x4664d5(0xef)]();},'activator':()=>this[_0x1dc25f(0xca)][_0x1dc25f(0xee)],'contextElements':()=>[this[_0x1dc25f(0x11d)],this[_0x1dc25f(0xca)][_0x1dc25f(0x11d)]]});}[_0x1c10d8(0x118)](_0xf7718a){const _0x3aab03=_0x1c10d8,_0x5c9e3b=this[_0x3aab03(0x107)],_0x4b7d6d=new _0x5120ff(_0x5c9e3b);for(const _0x5d0abc of _0xf7718a){const _0x344390=new _0x2b04d3(_0x5c9e3b),_0x210bc7=new _0x19f196(_0x5c9e3b);_0x210bc7[_0x3aab03(0x11e)](...Object[_0x3aab03(0x116)](_0x5d0abc))['to'](_0x5d0abc),_0x210bc7[_0x3aab03(0x11a)](_0x3aab03(0xfa))['to'](_0x4b7d6d),_0x344390[_0x3aab03(0xda)][_0x3aab03(0xf9)](_0x210bc7),_0x4b7d6d[_0x3aab03(0x10c)][_0x3aab03(0xf9)](_0x344390);}return _0x4b7d6d[_0x3aab03(0x10c)][_0x3aab03(0x11a)](_0x3aab03(0xfa))['to'](this),_0x4b7d6d['on'](_0x3aab03(0xfa),_0x41eaf6=>{const _0x2d44ac=_0x3aab03,_0x4a6054=_0x41eaf6[_0x2d44ac(0x102)];this[_0x2d44ac(0xf8)](_0x4a6054[_0x2d44ac(0x124)]),this[_0x2d44ac(0xca)][_0x2d44ac(0xef)](),this[_0x2d44ac(0x125)][_0x2d44ac(0xe2)]();}),_0x4b7d6d;}[_0x1c10d8(0xf3)](){const _0x297fae=_0x1c10d8;this[_0x297fae(0x115)]=new _0x286552(),this[_0x297fae(0x115)][_0x297fae(0x110)](this[_0x297fae(0xca)][_0x297fae(0x11d)]),this[_0x297fae(0x115)][_0x297fae(0xfd)](_0x297fae(0xdc),(_0x51219c,_0x579ff3)=>{const _0x3ca4ca=_0x297fae;this[_0x3ca4ca(0xca)][_0x3ca4ca(0xef)](),this[_0x3ca4ca(0x125)][_0x3ca4ca(0xe2)](),_0x579ff3();});}[_0x1c10d8(0xd9)](){const _0x4dcfbe=_0x1c10d8;super[_0x4dcfbe(0xd9)](),this[_0x4dcfbe(0x115)][_0x4dcfbe(0xd9)](),this[_0x4dcfbe(0xca)][_0x4dcfbe(0xd9)](),this[_0x4dcfbe(0x100)][_0x4dcfbe(0xcb)]();}}function Pn(_0x3dcd3d){const _0x518ef2=_0x1c10d8;return{'top':_0x3dcd3d[_0x518ef2(0x10a)],'left':_0x3dcd3d[_0x518ef2(0xe6)],'name':_0x518ef2(0x119),'config':{'withArrow':!0x1}};}function Hn(_0x10a27c,_0x55024f){const _0x2bb9b2=_0x1c10d8;return{'top':_0x10a27c[_0x2bb9b2(0x10a)],'left':_0x10a27c[_0x2bb9b2(0xe6)]-(_0x55024f[_0x2bb9b2(0x112)]-_0x10a27c[_0x2bb9b2(0x112)]),'name':_0x2bb9b2(0x119),'config':{'withArrow':!0x1}};}function Ln(_0x5b77ca,_0x5b410a,_0x4871b0){const _0x2425d2=_0x1c10d8;switch(_0x5b77ca){case _0x2425d2(0xfc):return _0x29bda1(_0x5b410a,_0x2425d2(0x10f),_0x4871b0);case _0x2425d2(0x122):return _0x29bda1(_0x5b410a,_0x2425d2(0x105),_0x4871b0);case _0x2425d2(0xd5):return _0x29bda1(_0x5b410a,_0x2425d2(0xfe),_0x4871b0);}}function _0x58a2(_0x36a957,_0x32ec6a){const _0x5192c0=_0x5192();return _0x58a2=function(_0x58a2a4,_0x45cb08){_0x58a2a4=_0x58a2a4-0xc8;let _0x489ee3=_0x5192c0[_0x58a2a4];return _0x489ee3;},_0x58a2(_0x36a957,_0x32ec6a);}function Un(_0x3f6449,_0x2be635,_0x1cae8f){const _0x54b510=_0x1c10d8;switch(_0x3f6449){case _0x54b510(0xfc):return _0x29bda1(_0x2be635,_0x54b510(0x11c),_0x1cae8f);case _0x54b510(0x122):return _0x29bda1(_0x2be635,_0x54b510(0xcd),_0x1cae8f);case _0x54b510(0xd5):return _0x29bda1(_0x2be635,_0x54b510(0xd8),_0x1cae8f);}}function _0x5192(){const _0x277e96=['_createActionsDropdown','tooltip','bottom','balloonPanelClass','items','applySuggestionModel','map','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','listenTo','remove','width','20HeUKKc','bindTemplate','keystrokeHandler','keys','_partsCount','_setUpList','arrowless','delegate','45ciGttL','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','element','bind','uiLanguageDirection','pin','_createActionsDropdownOrButton','showChangeInText','155548HbFxMG','actionName','arrowView','213018EgatdQ','updateLabels','createCollection','11wPCcde','ck-hidden','balloonPanelView','detachFromDom','attachToDom','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','showChangeInTextModel','ck-ai-chat__feed__ai-suggestion__actions\x20','unbind','5181780oYjAkw','6WeLtRk','isEnabled','class','insertSuggestion','div','_createActionsButton','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','destroy','children','135609IIZNRr','esc','_dropdownCurrentConfig','_firstRender','listView','filter','has','focus','slice','ck-ai-chat__feed__ai-suggestion__actions--no-animation','_updateDropdownActions','left','actionsButton','ck-ai-button-primary','244296qaiddz','button','listItemModels','length','setTemplate','isVisible','hide','label','_dropdownOriginalConfig','insertSuggestionModel','_setUpKeystrokes','content','isTrackChangesOn','ck-ai-chat__feed__ai-suggestion__actions','open','fire','add','execute','473725UIsKlr','applySuggestion','set','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','bodyCollection','658864GBjnxK','source','change:isTrackChangesOn','ltr','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','ck-ai-chat__feed__ai-suggestion__actions__balloon','locale'];_0x5192=function(){return _0x277e96;};return _0x5192();}
|
|
23
|
+
const _0x34a73c=_0x5985;function _0x522e(){const _0x29f353=['element','unbind','open','add','_createActionsDropdownOrButton','ck-ai-chat__feed__ai-suggestion__actions\x20','change:isTrackChangesOn','listView','ck-ai-chat__feed__ai-suggestion__actions','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','isTrackChangesOn','createCollection','balloonPanelClass','uiLanguageDirection','has','actionName','fire','balloonPanelView','isVisible','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','items','detachFromDom','attachToDom','1186221qlRhXN','keys','focus','filter','ck-ai-button-primary','465285rFJGUu','_createActionsDropdown','tooltip','2556066PFuErz','set','_dropdownCurrentConfig','_dropdownOriginalConfig','slice','remove','listItemModels','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','_setUpList','content','arrowView','execute','hide','ck-ai-chat__feed__ai-suggestion__actions--no-animation','bottom','arrowless','_firstRender','bindTemplate','width','destroy','_partsCount','bind','6349365mjdjlE','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','length','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','showChangeInTextModel','div','ck-ai-chat__feed__ai-suggestion__actions__balloon','_updateDropdownActions','ltr','isEnabled','applySuggestionModel','children','22uaAjgb','source','keystrokeHandler','setTemplate','5802144XxeaRV','ck-hidden','label','pin','locale','listenTo','applySuggestion','insertSuggestionModel','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','button','actionsButton','11171160LlnphD','_createActionsButton','left','esc','1934811ETUBvn','16iScnyL','bodyCollection','showChangeInText','delegate','insertSuggestion','class','_setUpKeystrokes','updateLabels','map'];_0x522e=function(){return _0x29f353;};return _0x522e();}(function(_0x4ee92b,_0x3c29e0){const _0x11778e=_0x5985,_0x286ddf=_0x4ee92b();while(!![]){try{const _0x4bc33f=parseInt(_0x11778e(0x1e9))/0x1+parseInt(_0x11778e(0x1b5))/0x2*(-parseInt(_0x11778e(0x1ee))/0x3)+-parseInt(_0x11778e(0x1b9))/0x4+parseInt(_0x11778e(0x208))/0x5+-parseInt(_0x11778e(0x1f1))/0x6+parseInt(_0x11778e(0x1c4))/0x7+parseInt(_0x11778e(0x1c9))/0x8*(parseInt(_0x11778e(0x1c8))/0x9);if(_0x4bc33f===_0x3c29e0)break;else _0x286ddf['push'](_0x286ddf['shift']());}catch(_0x2e423c){_0x286ddf['push'](_0x286ddf['shift']());}}}(_0x522e,0xdb90c));import{KeystrokeHandler as _0x581c7a}from'ckeditor5/src/utils.js';function _0x5985(_0x14cc34,_0x39913c){const _0x522e51=_0x522e();return _0x5985=function(_0x598537,_0x2cd894){_0x598537=_0x598537-0x1b5;let _0x3587a2=_0x522e51[_0x598537];return _0x3587a2;},_0x5985(_0x14cc34,_0x39913c);}import{BalloonPanelView as _0x44658a,BodyCollection as _0x442151,ButtonView as _0x4649b3,clickOutsideHandler as _0x508463,ListItemButtonView as _0x563a16,ListItemView as _0x1b522a,ListView as _0x22d331,SplitButtonView as _0x4374b0,UIModel as _0x3dfc13,View as _0x648a54}from'ckeditor5/src/ui.js';import{IconCheck as _0x2a8198,IconAddComment as _0x44eb27,IconDocumentWithLoupe as _0x544b06}from'ckeditor5/src/icons.js';import{getTranslation as _0x58dbd5}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x34a73c(0x1bf),_0x34a73c(0x1cd),_0x34a73c(0x1cb)];export class AIChatFeedSuggestionItemActionsView extends _0x648a54{[_0x34a73c(0x1c3)];[_0x34a73c(0x213)];[_0x34a73c(0x212)];[_0x34a73c(0x20c)];[_0x34a73c(0x1c0)];[_0x34a73c(0x206)]=0x1;[_0x34a73c(0x1f4)];[_0x34a73c(0x1f3)];[_0x34a73c(0x202)]=!0x0;constructor(_0x4409e0,_0xe42d30){const _0xdec400=_0x34a73c;super(_0x4409e0),this[_0xdec400(0x1f4)]=_0xe42d30||[...AI_REPLY_ACTIONS],this[_0xdec400(0x1f3)]=[...this[_0xdec400(0x1f4)]];const _0x4eaf0f=this[_0xdec400(0x203)];this[_0xdec400(0x1f2)](_0xdec400(0x211),!0x0),this[_0xdec400(0x1f2)](_0xdec400(0x1e4),!0x0),this[_0xdec400(0x1f2)](_0xdec400(0x1dc),!0x1),this[_0xdec400(0x212)]=new _0x3dfc13({'label':Pn(_0xdec400(0x1bf),_0x4409e0,this[_0xdec400(0x206)]),'icon':_0x2a8198,'withText':!0x0,'type':_0xdec400(0x1c2),'actionName':_0xdec400(0x1bf)}),this[_0xdec400(0x20c)]=new _0x3dfc13({'label':Pn(_0xdec400(0x1cb),_0x4409e0,this[_0xdec400(0x206)]),'icon':_0x544b06,'withText':!0x0,'type':_0xdec400(0x1c2),'actionName':_0xdec400(0x1cb)}),this[_0xdec400(0x1c0)]=new _0x3dfc13({'label':Pn(_0xdec400(0x1cd),_0x4409e0,this[_0xdec400(0x206)]),'icon':_0x44eb27,'withText':!0x0,'type':_0xdec400(0x1c2),'actionName':_0xdec400(0x1cd)}),this[_0xdec400(0x1c3)]=this[_0xdec400(0x1d6)](_0x4409e0),this[_0xdec400(0x213)]=this[_0xdec400(0x1dd)](),this[_0xdec400(0x1c3)]&&this[_0xdec400(0x213)][_0xdec400(0x1d5)](this[_0xdec400(0x1c3)]),this[_0xdec400(0x1b8)]({'tag':_0xdec400(0x20d),'attributes':{'class':['ck',_0xdec400(0x1da),_0x4eaf0f['if'](_0xdec400(0x1e4),_0xdec400(0x1ba),_0x12f7e6=>!_0x12f7e6)]},'children':this[_0xdec400(0x213)]}),this['on'](_0xdec400(0x1d8),()=>{const _0x308062=_0xdec400;this[_0x308062(0x1f3)]=this[_0x308062(0x1dc)]?this[_0x308062(0x1f4)][_0x308062(0x1ec)](_0xe3f2f7=>_0x308062(0x1bf)!==_0xe3f2f7):[...this[_0x308062(0x1f4)]],this[_0x308062(0x20f)](_0x4409e0);});}[_0x34a73c(0x20f)](_0x1015f4){const _0x4eddd0=_0x34a73c;this[_0x4eddd0(0x1c3)]&&this[_0x4eddd0(0x213)][_0x4eddd0(0x1e0)](this[_0x4eddd0(0x1c3)])&&(this[_0x4eddd0(0x213)][_0x4eddd0(0x1f6)](this[_0x4eddd0(0x1c3)]),this[_0x4eddd0(0x1c3)][_0x4eddd0(0x205)]()),this[_0x4eddd0(0x1c3)]=this[_0x4eddd0(0x1d6)](_0x1015f4),this[_0x4eddd0(0x1c3)]&&this[_0x4eddd0(0x213)][_0x4eddd0(0x1d5)](this[_0x4eddd0(0x1c3)]);}[_0x34a73c(0x1d6)](_0x52b643){const _0x27de39=_0x34a73c;if(0x0==this[_0x27de39(0x1f3)][_0x27de39(0x20a)])return null;const _0x20d6b8=0x1===this[_0x27de39(0x1f3)][_0x27de39(0x20a)]?this[_0x27de39(0x1c5)](_0x52b643):this[_0x27de39(0x1ef)](_0x52b643),_0x2c0b54=this[_0x27de39(0x202)]?'':_0x27de39(0x1ff);_0x20d6b8[_0x27de39(0x1f2)]({'label':Pn(this[_0x27de39(0x1f3)][0x0],_0x52b643,this[_0x27de39(0x206)]),'tooltip':Hn(this[_0x27de39(0x1f3)][0x0],_0x52b643,this[_0x27de39(0x206)]),'withText':!0x0,'class':_0x27de39(0x1d7)+_0x2c0b54});for(const _0x16eeea of this[_0x27de39(0x1f3)])_0x20d6b8['on'](_0x16eeea,()=>{const _0x4a83b3=_0x27de39;this[_0x4a83b3(0x1e2)](_0x16eeea);});return this[_0x27de39(0x202)]=!0x1,_0x20d6b8;}[_0x34a73c(0x1c5)](_0x442499){const _0x59b57d=_0x34a73c,_0x50162e=new _0x4649b3(_0x442499);return _0x50162e[_0x59b57d(0x1f2)]({'class':_0x59b57d(0x1ed),'withText':!0x0}),_0x50162e['on'](_0x59b57d(0x1fd),()=>{const _0x428ecd=_0x59b57d;_0x50162e[_0x428ecd(0x1e2)](this[_0x428ecd(0x1f3)][0x0]);}),_0x50162e;}[_0x34a73c(0x1ef)](_0x2d836d){const _0x10bc1e=_0x34a73c,_0x3c6d54=new Nn(_0x2d836d,{'listItemModels':this[_0x10bc1e(0x1f3)][_0x10bc1e(0x1d1)](_0x57f428=>{const _0x53350c=_0x10bc1e;switch(_0x57f428){case _0x53350c(0x1bf):return this[_0x53350c(0x212)];case _0x53350c(0x1cb):return this[_0x53350c(0x20c)];case _0x53350c(0x1cd):return this[_0x53350c(0x1c0)];}})});return _0x3c6d54[_0x10bc1e(0x1f2)]({'label':Pn(this[_0x10bc1e(0x1f3)][0x0],_0x2d836d,this[_0x10bc1e(0x206)]),'tooltip':Hn(this[_0x10bc1e(0x1f3)][0x0],_0x2d836d,this[_0x10bc1e(0x206)]),'withText':!0x0,'class':_0x10bc1e(0x1da),'balloonPanelClass':_0x10bc1e(0x20e)}),_0x3c6d54[_0x10bc1e(0x207)](_0x10bc1e(0x211))['to'](this),_0x3c6d54;}[_0x34a73c(0x1d0)](_0x4ffc4b){const _0x4f38a8=_0x34a73c,_0x49553c=this[_0x4f38a8(0x1bd)];this[_0x4f38a8(0x206)]=_0x4ffc4b||this[_0x4f38a8(0x206)],this[_0x4f38a8(0x1c3)][_0x4f38a8(0x1f2)]({'label':Pn(this[_0x4f38a8(0x1f3)][0x0],_0x49553c,this[_0x4f38a8(0x206)]),'tooltip':Hn(this[_0x4f38a8(0x1f3)][0x0],_0x49553c,this[_0x4f38a8(0x206)])}),this[_0x4f38a8(0x212)][_0x4f38a8(0x1bb)]=Pn(_0x4f38a8(0x1bf),_0x49553c,this[_0x4f38a8(0x206)]),this[_0x4f38a8(0x20c)][_0x4f38a8(0x1bb)]=Pn(_0x4f38a8(0x1cb),_0x49553c,this[_0x4f38a8(0x206)]),this[_0x4f38a8(0x1c0)][_0x4f38a8(0x1bb)]=Pn(_0x4f38a8(0x1cd),_0x49553c,this[_0x4f38a8(0x206)]);}}class Nn extends _0x4374b0{[_0x34a73c(0x1ca)];[_0x34a73c(0x1e3)];[_0x34a73c(0x1d9)];[_0x34a73c(0x1b7)];constructor(_0x85e18c,_0x15f76b){const _0xb1b76a=_0x34a73c;super(_0x85e18c),this[_0xb1b76a(0x1e3)]=new _0x44658a(this[_0xb1b76a(0x1bd)]),this[_0xb1b76a(0x1ca)]=new _0x442151(this[_0xb1b76a(0x1bd)]),this[_0xb1b76a(0x1ca)][_0xb1b76a(0x1e8)](),this[_0xb1b76a(0x1f2)](_0xb1b76a(0x1de),''),this[_0xb1b76a(0x1e3)][_0xb1b76a(0x207)](_0xb1b76a(0x1ce))['to'](this,_0xb1b76a(0x1de)),this[_0xb1b76a(0x1d9)]=this[_0xb1b76a(0x1fa)](_0x15f76b[_0xb1b76a(0x1f7)][_0xb1b76a(0x1f5)](0x1)),this[_0xb1b76a(0x1ca)][_0xb1b76a(0x1d5)](this[_0xb1b76a(0x1e3)]),this[_0xb1b76a(0x1e3)][_0xb1b76a(0x1fb)][_0xb1b76a(0x1d5)](this[_0xb1b76a(0x1d9)]),this[_0xb1b76a(0x1fc)][_0xb1b76a(0x1d3)](_0xb1b76a(0x1f0)),this[_0xb1b76a(0x1fc)][_0xb1b76a(0x1f2)](_0xb1b76a(0x1f0),_0x58dbd5(this[_0xb1b76a(0x1bd)],_0xb1b76a(0x1e5))),this[_0xb1b76a(0x1cf)](),this['on'](_0xb1b76a(0x1fd),()=>{const _0x4fef36=_0xb1b76a,_0x1fb018=_0x15f76b[_0x4fef36(0x1f7)][0x0][_0x4fef36(0x1e1)];this[_0x4fef36(0x1e2)](_0x1fb018),this[_0x4fef36(0x1e3)][_0x4fef36(0x1fe)](),this[_0x4fef36(0x1fc)][_0x4fef36(0x1eb)]();}),this['on'](_0xb1b76a(0x1d4),()=>{const _0x2c645f=_0xb1b76a;this[_0x2c645f(0x1e3)][_0x2c645f(0x1e4)]?(this[_0x2c645f(0x1e3)][_0x2c645f(0x1fe)](),this[_0x2c645f(0x1fc)][_0x2c645f(0x1eb)]()):(this[_0x2c645f(0x1e3)][_0x2c645f(0x1bc)]({'target':this[_0x2c645f(0x1d2)],'positions':[_0x2c645f(0x210)===this[_0x2c645f(0x1bd)][_0x2c645f(0x1df)]?Gn:yn]}),this[_0x2c645f(0x1d9)][_0x2c645f(0x1eb)]());}),_0x508463({'emitter':this[_0xb1b76a(0x1e3)],'callback':()=>{const _0x35a6c4=_0xb1b76a;this[_0x35a6c4(0x1e3)][_0x35a6c4(0x1fe)]();},'activator':()=>this[_0xb1b76a(0x1e3)][_0xb1b76a(0x1e4)],'contextElements':()=>[this[_0xb1b76a(0x1d2)],this[_0xb1b76a(0x1e3)][_0xb1b76a(0x1d2)]]});}[_0x34a73c(0x1fa)](_0xa5ce41){const _0xf7bd0=_0x34a73c,_0x139706=this[_0xf7bd0(0x1bd)],_0x22a730=new _0x22d331(_0x139706);for(const _0x1d8177 of _0xa5ce41){const _0x26f7d5=new _0x1b522a(_0x139706),_0x5da962=new _0x563a16(_0x139706);_0x5da962[_0xf7bd0(0x207)](...Object[_0xf7bd0(0x1ea)](_0x1d8177))['to'](_0x1d8177),_0x5da962[_0xf7bd0(0x1cc)](_0xf7bd0(0x1fd))['to'](_0x22a730),_0x26f7d5[_0xf7bd0(0x213)][_0xf7bd0(0x1d5)](_0x5da962),_0x22a730[_0xf7bd0(0x1e6)][_0xf7bd0(0x1d5)](_0x26f7d5);}return _0x22a730[_0xf7bd0(0x1e6)][_0xf7bd0(0x1cc)](_0xf7bd0(0x1fd))['to'](this),_0x22a730['on'](_0xf7bd0(0x1fd),_0x49861d=>{const _0x38ba0b=_0xf7bd0,_0x95f125=_0x49861d[_0x38ba0b(0x1b6)];this[_0x38ba0b(0x1e2)](_0x95f125[_0x38ba0b(0x1e1)]),this[_0x38ba0b(0x1e3)][_0x38ba0b(0x1fe)](),this[_0x38ba0b(0x1fc)][_0x38ba0b(0x1eb)]();}),_0x22a730;}[_0x34a73c(0x1cf)](){const _0x480ed5=_0x34a73c;this[_0x480ed5(0x1b7)]=new _0x581c7a(),this[_0x480ed5(0x1b7)][_0x480ed5(0x1be)](this[_0x480ed5(0x1e3)][_0x480ed5(0x1d2)]),this[_0x480ed5(0x1b7)][_0x480ed5(0x1f2)](_0x480ed5(0x1c7),(_0xba49fe,_0x58ccc1)=>{const _0x1b3db4=_0x480ed5;this[_0x1b3db4(0x1e3)][_0x1b3db4(0x1fe)](),this[_0x1b3db4(0x1fc)][_0x1b3db4(0x1eb)](),_0x58ccc1();});}[_0x34a73c(0x205)](){const _0x50abfd=_0x34a73c;super[_0x50abfd(0x205)](),this[_0x50abfd(0x1b7)][_0x50abfd(0x205)](),this[_0x50abfd(0x1e3)][_0x50abfd(0x205)](),this[_0x50abfd(0x1ca)][_0x50abfd(0x1e7)]();}}function Gn(_0x455744){const _0x3cd13e=_0x34a73c;return{'top':_0x455744[_0x3cd13e(0x200)],'left':_0x455744[_0x3cd13e(0x1c6)],'name':_0x3cd13e(0x201),'config':{'withArrow':!0x1}};}function yn(_0x2e0c16,_0xe6412){const _0x24a90b=_0x34a73c;return{'top':_0x2e0c16[_0x24a90b(0x200)],'left':_0x2e0c16[_0x24a90b(0x1c6)]-(_0xe6412[_0x24a90b(0x204)]-_0x2e0c16[_0x24a90b(0x204)]),'name':_0x24a90b(0x201),'config':{'withArrow':!0x1}};}function Pn(_0x1b533c,_0x5713c0,_0x109e63){const _0x59d2a6=_0x34a73c;switch(_0x1b533c){case _0x59d2a6(0x1bf):return _0x58dbd5(_0x5713c0,_0x59d2a6(0x1f8),_0x109e63);case _0x59d2a6(0x1cb):return _0x58dbd5(_0x5713c0,_0x59d2a6(0x20b),_0x109e63);case _0x59d2a6(0x1cd):return _0x58dbd5(_0x5713c0,_0x59d2a6(0x1db),_0x109e63);}}function Hn(_0x18d9b2,_0x5173be,_0x344dc7){const _0x32171c=_0x34a73c;switch(_0x18d9b2){case _0x32171c(0x1bf):return _0x58dbd5(_0x5173be,_0x32171c(0x1f9),_0x344dc7);case _0x32171c(0x1cb):return _0x58dbd5(_0x5173be,_0x32171c(0x209),_0x344dc7);case _0x32171c(0x1cd):return _0x58dbd5(_0x5173be,_0x32171c(0x1c1),_0x344dc7);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5ad412=_0xf771;(function(_0x18ef08,_0x5300bd){var _0x4b8066=_0xf771,_0x24d6c2=_0x18ef08();while(!![]){try{var _0xbe26af=-parseInt(_0x4b8066(0x157))/0x1*(-parseInt(_0x4b8066(0x141))/0x2)+parseInt(_0x4b8066(0x152))/0x3+-parseInt(_0x4b8066(0x142))/0x4+parseInt(_0x4b8066(0x14d))/0x5*(-parseInt(_0x4b8066(0x146))/0x6)+-parseInt(_0x4b8066(0x15b))/0x7+parseInt(_0x4b8066(0x14f))/0x8*(parseInt(_0x4b8066(0x15e))/0x9)+-parseInt(_0x4b8066(0x13a))/0xa;if(_0xbe26af===_0x5300bd)break;else _0x24d6c2['push'](_0x24d6c2['shift']());}catch(_0xdac7d3){_0x24d6c2['push'](_0x24d6c2['shift']());}}}(_0x52d6,0xc7247));function _0xf771(_0x4fd9b6,_0x2d68a3){var _0x52d69e=_0x52d6();return _0xf771=function(_0xf771d4,_0x435984){_0xf771d4=_0xf771d4-0x139;var _0x23ff36=_0x52d69e[_0xf771d4];return _0x23ff36;},_0xf771(_0x4fd9b6,_0x2d68a3);}import{AIChatFeedItemView as _0x5244ee}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x57b7bc}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x3b6073}from'./aichatfeedsuggestionitemactionsview.js';function _0x52d6(){var _0x236f5b=['availableActions','fire','set','4557340qtuDHo','applySuggestion','containerView','toggleSuggestionDisplayMode','hasPendingParts','showDiff','like','1410790SlwLHT','2079820qASelu','updatePartState','children','rejectSuggestion','6NsthnK','isTrackChangesOn','addMany','insertSuggestion','options','isEnabled','mouseLeaveSuggestion','2566640iCxWqa','areActionsDisabled','152Nemvsf','updateContent','partsCount','4676652oLdPlE','getPartView','bind','markAsDone','bodyView','1UihXla','actionsView','updateSources','updateLabels','10880912lLSxJk','ck-ai-chat__feed__ai-suggestion','extendTemplate','755451urLZDe','mouseOverSuggestion','dislike','hasNonEmptyParts','showChangeInText','isVisible'];_0x52d6=function(){return _0x236f5b;};return _0x52d6();}export class AIChatFeedSuggestionItemView extends _0x5244ee{[_0x5ad412(0x13c)];[_0x5ad412(0x158)];constructor(_0x502ec3,_0x5e4edb){var _0x4e8600=_0x5ad412;super(_0x5e4edb),this[_0x4e8600(0x139)](_0x4e8600(0x147),!0x1),this[_0x4e8600(0x13c)]=new _0x57b7bc(_0x502ec3,{'showDiff':_0x5e4edb[_0x4e8600(0x13f)],'areActionsDisabled':_0x5e4edb[_0x4e8600(0x14e)],'availableActions':_0x5e4edb[_0x4e8600(0x164)]}),this[_0x4e8600(0x13c)]['on'](_0x4e8600(0x13d),(_0x20eafb,_0x3dd9b5)=>{var _0x14474a=_0x4e8600;this[_0x14474a(0x165)](_0x14474a(0x13d),{'replyId':this[_0x14474a(0x14a)]['id'],'showDiff':_0x3dd9b5[_0x14474a(0x13f)]});}),this[_0x4e8600(0x13c)]['on'](_0x4e8600(0x140),()=>{var _0x3c86c1=_0x4e8600;this[_0x3c86c1(0x165)](_0x3c86c1(0x140),{'replyId':this[_0x3c86c1(0x14a)]['id']});}),this[_0x4e8600(0x13c)]['on'](_0x4e8600(0x160),()=>{var _0x5c1f40=_0x4e8600;this[_0x5c1f40(0x165)](_0x5c1f40(0x160),{'replyId':this[_0x5c1f40(0x14a)]['id']});}),this[_0x4e8600(0x13c)]['on'](_0x4e8600(0x162),(_0x450af5,{index:_0x371676})=>{var _0xa7bf20=_0x4e8600;this[_0xa7bf20(0x165)](_0xa7bf20(0x162),{'replyId':this[_0xa7bf20(0x14a)]['id'],'partIndex':_0x371676});}),this[_0x4e8600(0x13c)]['on'](_0x4e8600(0x149),(_0x50ca6b,{index:_0x25d4a8})=>{var _0xcf66c5=_0x4e8600;this[_0xcf66c5(0x165)](_0xcf66c5(0x149),{'replyId':this[_0xcf66c5(0x14a)]['id'],'partIndex':_0x25d4a8});}),this[_0x4e8600(0x13c)]['on'](_0x4e8600(0x145),(_0x368cf1,{index:_0x1e7006})=>{var _0x42ff06=_0x4e8600;this[_0x42ff06(0x165)](_0x42ff06(0x145),{'replyId':this[_0x42ff06(0x14a)]['id'],'partIndex':_0x1e7006});}),this[_0x4e8600(0x13c)]['on'](_0x4e8600(0x15f),(_0x2a5c25,{index:_0x592c69})=>{var _0xa9483f=_0x4e8600;this[_0xa9483f(0x165)](_0xa9483f(0x15f),{'replyId':this[_0xa9483f(0x14a)]['id'],'partIndex':_0x592c69});}),this[_0x4e8600(0x13c)]['on'](_0x4e8600(0x14c),(_0x4f41f6,{index:_0x242eec})=>{var _0x3feebe=_0x4e8600;this[_0x3feebe(0x165)](_0x3feebe(0x14c),{'replyId':this[_0x3feebe(0x14a)]['id'],'partIndex':_0x242eec});}),this[_0x4e8600(0x158)]=new _0x3b6073(_0x502ec3,this[_0x4e8600(0x14a)][_0x4e8600(0x164)]),this[_0x4e8600(0x158)][_0x4e8600(0x154)](_0x4e8600(0x147))['to'](this,_0x4e8600(0x147)),this[_0x4e8600(0x158)]['on'](_0x4e8600(0x162),()=>{var _0x5df006=_0x4e8600;this[_0x5df006(0x165)](_0x5df006(0x162),{'replyId':this[_0x5df006(0x14a)]['id']});}),this[_0x4e8600(0x158)]['on'](_0x4e8600(0x149),()=>{var _0x5dd9af=_0x4e8600;this[_0x5dd9af(0x165)](_0x5dd9af(0x149),{'replyId':this[_0x5dd9af(0x14a)]['id']});}),this[_0x4e8600(0x158)]['on'](_0x4e8600(0x13b),()=>{var _0x32a7d7=_0x4e8600;this[_0x32a7d7(0x165)](_0x32a7d7(0x13b),{'replyId':this[_0x32a7d7(0x14a)]['id']});}),_0x5e4edb[_0x4e8600(0x14e)]?this[_0x4e8600(0x158)][_0x4e8600(0x14b)]=!0x1:this[_0x4e8600(0x158)][_0x4e8600(0x154)](_0x4e8600(0x14b))['to'](this[_0x4e8600(0x13c)][_0x4e8600(0x156)],_0x4e8600(0x13e)),this[_0x4e8600(0x144)][_0x4e8600(0x148)]([this[_0x4e8600(0x13c)],this[_0x4e8600(0x158)]]),this[_0x4e8600(0x15d)]({'attributes':{'class':[_0x4e8600(0x15c)]}});}async[_0x5ad412(0x150)](_0x19664b){var _0x4089be=_0x5ad412;await this[_0x4089be(0x13c)][_0x4089be(0x150)](_0x19664b),this[_0x4089be(0x158)][_0x4089be(0x15a)](this[_0x4089be(0x13c)][_0x4089be(0x156)][_0x4089be(0x151)]);}[_0x5ad412(0x143)](_0x1c6bc2,_0x1b3261){var _0x1c343f=_0x5ad412;this[_0x1c343f(0x13c)][_0x1c343f(0x156)][_0x1c343f(0x143)](_0x1c6bc2,_0x1b3261);}[_0x5ad412(0x159)](_0xd86970){var _0x10498f=_0x5ad412;this[_0x10498f(0x13c)][_0x10498f(0x159)](_0xd86970);}[_0x5ad412(0x153)](_0x236280){var _0x104c1b=_0x5ad412;return this[_0x104c1b(0x13c)][_0x104c1b(0x156)][_0x104c1b(0x153)](_0x236280);}[_0x5ad412(0x155)](){var _0x1a9bbb=_0x5ad412;super[_0x1a9bbb(0x155)](),this[_0x1a9bbb(0x13c)][_0x1a9bbb(0x155)](),this[_0x1a9bbb(0x158)][_0x1a9bbb(0x163)]=this[_0x1a9bbb(0x13c)][_0x1a9bbb(0x156)][_0x1a9bbb(0x161)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x4ccb(_0x312017,_0x3f06be){var _0x2fe787=_0x2fe7();return _0x4ccb=function(_0x4ccbf1,_0xc8aec5){_0x4ccbf1=_0x4ccbf1-0xad;var _0x3c4cf2=_0x2fe787[_0x4ccbf1];return _0x3c4cf2;},_0x4ccb(_0x312017,_0x3f06be);}var _0x1eda9c=_0x4ccb;(function(_0x145161,_0x496b50){var _0x30ad81=_0x4ccb,_0x3efe05=_0x145161();while(!![]){try{var _0x1048bc=-parseInt(_0x30ad81(0xcc))/0x1*(parseInt(_0x30ad81(0xb9))/0x2)+parseInt(_0x30ad81(0xb4))/0x3+-parseInt(_0x30ad81(0xb5))/0x4*(-parseInt(_0x30ad81(0xad))/0x5)+-parseInt(_0x30ad81(0xc0))/0x6*(parseInt(_0x30ad81(0xb6))/0x7)+parseInt(_0x30ad81(0xb0))/0x8+-parseInt(_0x30ad81(0xcd))/0x9*(-parseInt(_0x30ad81(0xc8))/0xa)+-parseInt(_0x30ad81(0xc7))/0xb;if(_0x1048bc===_0x496b50)break;else _0x3efe05['push'](_0x3efe05['shift']());}catch(_0x29fafc){_0x3efe05['push'](_0x3efe05['shift']());}}}(_0x2fe7,0xd5bab));import{AIChatFeedItemView as _0xc58989}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x3c7f10}from'./aichatfeedcontextchipsview.js';import{View as _0xecb524}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0xc58989{[_0x1eda9c(0xb7)]=null;[_0x1eda9c(0xb3)];[_0x1eda9c(0xc4)];[_0x1eda9c(0xbe)];constructor(_0x590c54,_0x1ddd26,_0x5dd53a){var _0x269f49=_0x1eda9c;super(_0x1ddd26),this[_0x269f49(0xb3)]=_0x590c54,this[_0x269f49(0xc4)]=_0x5dd53a,this[_0x269f49(0xbc)](),this[_0x269f49(0xb1)](),this[_0x269f49(0xca)]({'attributes':{'class':[_0x269f49(0xbd)]}});}[_0x1eda9c(0xbc)](){var _0x369031=_0x1eda9c;this[_0x369031(0xc5)][_0x369031(0xbb)]&&this[_0x369031(0xc5)][_0x369031(0xbb)][_0x369031(0xcf)]>0x0&&(this[_0x369031(0xb7)]=new _0x3c7f10(this[_0x369031(0xb3)],this[_0x369031(0xc5)][_0x369031(0xbb)][_0x369031(0xb2)](_0x17d143=>!_0x17d143[_0x369031(0xaf)]),this[_0x369031(0xc4)]),this[_0x369031(0xb7)][_0x369031(0xca)]({'attributes':{'class':_0x369031(0xce)}}),this[_0x369031(0xba)][_0x369031(0xc2)](this[_0x369031(0xb7)]));}[_0x1eda9c(0xb1)](){var _0x2fe7ab=_0x1eda9c;this[_0x2fe7ab(0xbe)]=new _0xecb524(this[_0x2fe7ab(0xb3)]),this[_0x2fe7ab(0xbe)][_0x2fe7ab(0xb8)]({'tag':_0x2fe7ab(0xc1),'attributes':{'class':_0x2fe7ab(0xae)}}),this[_0x2fe7ab(0xba)][_0x2fe7ab(0xc2)](this[_0x2fe7ab(0xbe)]);}[_0x1eda9c(0xc6)](){var _0x1ba266=_0x1eda9c;super[_0x1ba266(0xc6)](),this[_0x1ba266(0xbe)][_0x1ba266(0xbf)][_0x1ba266(0xc3)]=this[_0x1ba266(0xc5)][_0x1ba266(0xcb)],this[_0x1ba266(0xc9)]();}}function _0x2fe7(){var _0x4d5907=['84053XowslP','333OscDbf','ck-ai-chat__feed__context-chips','length','652760dkssdo','ck-ai-chat__feed__message-content','hidden','13219736IRIMSH','_createMessageContentView','filter','_locale','2961831ZdQtVE','16xkftYS','7021RCWude','_contextChipsView','setTemplate','10fxtDKT','children','contextItems','_createContextChipsView','ck-ai-chat__feed__user-message','_messageContentView','element','3876TNhrWG','div','add','innerHTML','_bodyCollection','options','render','26701400YCQosI','326780ypcSef','markAsDone','extendTemplate','initialContent'];_0x2fe7=function(){return _0x4d5907;};return _0x2fe7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x597e(){const _0x3b15fa=['56828yJsJbx','selectModel','16UpDoeN','loadSourceResources','435924sHvcdB','toggleReasoning','removeContextItem','resizeTabs','17012630tLTpCG','startConversation','678178gYZwHQ','sendUserMessage','abortPromptStream','25zcZIsR','addDocumentToContext','3kBQKAF','addResourceToContext','6243377rrSNXo','addFileToContext','toggleWebSearch','addUrlToContext','333316AyzPqo','309726jlaEyA'];_0x597e=function(){return _0x3b15fa;};return _0x597e();}const _0x5c0766=_0x17f9;(function(_0x54c2a5,_0x34cab0){const _0x529b2e=_0x17f9,_0x50cd91=_0x54c2a5();while(!![]){try{const _0x413b44=parseInt(_0x529b2e(0x187))/0x1+parseInt(_0x529b2e(0x194))/0x2*(parseInt(_0x529b2e(0x18c))/0x3)+parseInt(_0x529b2e(0x192))/0x4*(parseInt(_0x529b2e(0x18a))/0x5)+parseInt(_0x529b2e(0x181))/0x6+parseInt(_0x529b2e(0x18e))/0x7+-parseInt(_0x529b2e(0x196))/0x8*(-parseInt(_0x529b2e(0x193))/0x9)+-parseInt(_0x529b2e(0x185))/0xa;if(_0x413b44===_0x34cab0)break;else _0x50cd91['push'](_0x50cd91['shift']());}catch(_0x812dae){_0x50cd91['push'](_0x50cd91['shift']());}}}(_0x597e,0x6f2c7));import{AI_SUGGESTION_UI_EVENT_NAMES as _0x373b23}from'../../aicore/utils/eventnames.js';function _0x17f9(_0x62eb51,_0x31fb3c){const _0x597edf=_0x597e();return _0x17f9=function(_0x17f9d4,_0xf52e62){_0x17f9d4=_0x17f9d4-0x181;let _0x2ebfa0=_0x597edf[_0x17f9d4];return _0x2ebfa0;},_0x17f9(_0x62eb51,_0x31fb3c);}export const AI_CHAT_UI_EVENT_NAMES=[..._0x373b23,_0x5c0766(0x186),_0x5c0766(0x184),_0x5c0766(0x188),_0x5c0766(0x189),_0x5c0766(0x18b),_0x5c0766(0x18f),_0x5c0766(0x191),_0x5c0766(0x18d),_0x5c0766(0x183),_0x5c0766(0x197),_0x5c0766(0x190),_0x5c0766(0x182),_0x5c0766(0x195)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x21fb(_0x171479,_0x385c54){const _0x70f765=_0x70f7();return _0x21fb=function(_0x21fb6e,_0x1be5f5){_0x21fb6e=_0x21fb6e-0x1a0;let _0x4c6d6a=_0x70f765[_0x21fb6e];return _0x4c6d6a;},_0x21fb(_0x171479,_0x385c54);}const _0x334fde=_0x21fb;(function(_0x131190,_0x28798d){const _0x4f3098=_0x21fb,_0x3ec392=_0x131190();while(!![]){try{const _0x4baaf2=parseInt(_0x4f3098(0x1a9))/0x1*(parseInt(_0x4f3098(0x1ad))/0x2)+parseInt(_0x4f3098(0x1ba))/0x3*(parseInt(_0x4f3098(0x1b7))/0x4)+-parseInt(_0x4f3098(0x1ab))/0x5*(parseInt(_0x4f3098(0x1b5))/0x6)+-parseInt(_0x4f3098(0x1bc))/0x7*(-parseInt(_0x4f3098(0x1a6))/0x8)+parseInt(_0x4f3098(0x1a7))/0x9+-parseInt(_0x4f3098(0x1bd))/0xa*(parseInt(_0x4f3098(0x1ae))/0xb)+parseInt(_0x4f3098(0x1a5))/0xc*(-parseInt(_0x4f3098(0x1a2))/0xd);if(_0x4baaf2===_0x28798d)break;else _0x3ec392['push'](_0x3ec392['shift']());}catch(_0x71a491){_0x3ec392['push'](_0x3ec392['shift']());}}}(_0x70f7,0xe2037));import{EmitterMixin as _0x431f94}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x431f94(){[_0x334fde(0x1a1)]=[];[_0x334fde(0x1b8)]=!0x1;[_0x334fde(0x1bb)];async[_0x334fde(0x1b3)](_0x5e0ee3){const _0x3e1335=_0x334fde,_0x19246a=this[_0x3e1335(0x1be)](_0x5e0ee3);return this[_0x3e1335(0x1a1)][_0x3e1335(0x1b4)](_0x19246a),this[_0x3e1335(0x1a3)](),_0x19246a[_0x3e1335(0x1a0)];}[_0x334fde(0x1af)](){const _0x199804=_0x334fde;this[_0x199804(0x1b8)]&&(this[_0x199804(0x1bb)][_0x199804(0x1af)](),this[_0x199804(0x1bb)]=void 0x0,this[_0x199804(0x1a1)]=[],this[_0x199804(0x1b2)](_0x199804(0x1b6)),this[_0x199804(0x1b8)]=!0x1);}get[_0x334fde(0x1b1)](){const _0x21c904=_0x334fde;return this[_0x21c904(0x1a1)][_0x21c904(0x1b0)]||this[_0x21c904(0x1b8)]?new Promise(_0x5c3e=>{const _0x4bbe5d=_0x21c904;this[_0x4bbe5d(0x1a4)](_0x4bbe5d(0x1b6),()=>{_0x5c3e();});}):Promise[_0x21c904(0x1ac)]();}async[_0x334fde(0x1a3)](){const _0x886963=_0x334fde;if(!this[_0x886963(0x1b8)]){this[_0x886963(0x1bb)]=new AbortController(),this[_0x886963(0x1b8)]=!0x0;try{for(;this[_0x886963(0x1a1)][_0x886963(0x1b0)]&&this[_0x886963(0x1b8)];){const _0x1171ee=this[_0x886963(0x1a1)][_0x886963(0x1aa)]();try{await _0x1171ee[_0x886963(0x1b9)](this[_0x886963(0x1bb)][_0x886963(0x1a8)]),_0x1171ee[_0x886963(0x1ac)]();}catch(_0x1d118e){_0x1171ee[_0x886963(0x1bf)](_0x1d118e);}}}finally{this[_0x886963(0x1b8)]=!0x1,this[_0x886963(0x1bb)]=void 0x0;}this[_0x886963(0x1b2)](_0x886963(0x1b6));}}[_0x334fde(0x1be)](_0x7571cc){let _0x1a13f6,_0x370639;const _0x3c068a=new Promise((_0x5950cc,_0x49d790)=>{_0x1a13f6=_0x5950cc,_0x370639=_0x49d790;});return{'callback':_0x7571cc,'resolve':_0x1a13f6,'reject':_0x370639,'completePromise':_0x3c068a};}}function _0x70f7(){const _0x3f4977=['_queueEmpty','4wCdrPE','isProcessing','callback','4827489uvRRpe','_abortController','346108RktyEQ','8290JmQSMM','createTask','reject','completePromise','queue','382993unOpVh','_processQueue','once','12koNCjm','8kFxnaT','242325zKjwQM','signal','5TMHzdb','shift','255SEMXqH','resolve','449842iymtys','22616TCIcTH','abort','length','queueEmptyPromise','fire','enqueue','push','17706zQxpQk'];_0x70f7=function(){return _0x3f4977;};return _0x70f7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1e866e=_0x44af;(function(_0x2951c2,_0x58941d){var _0x15ecf9=_0x44af,_0x2a6e33=_0x2951c2();while(!![]){try{var _0x23aee1=-parseInt(_0x15ecf9(0x1d0))/0x1+parseInt(_0x15ecf9(0x1cd))/0x2+parseInt(_0x15ecf9(0x1ce))/0x3+parseInt(_0x15ecf9(0x1d6))/0x4*(parseInt(_0x15ecf9(0x1d1))/0x5)+-parseInt(_0x15ecf9(0x1db))/0x6*(-parseInt(_0x15ecf9(0x1da))/0x7)+parseInt(_0x15ecf9(0x1cf))/0x8*(-parseInt(_0x15ecf9(0x1d3))/0x9)+-parseInt(_0x15ecf9(0x1d4))/0xa;if(_0x23aee1===_0x58941d)break;else _0x2a6e33['push'](_0x2a6e33['shift']());}catch(_0x5a05c2){_0x2a6e33['push'](_0x2a6e33['shift']());}}}(_0x202a,0x75905));function _0x44af(_0x2cb185,_0x2331b0){var _0x202a6e=_0x202a();return _0x44af=function(_0x44af07,_0x3e44ed){_0x44af07=_0x44af07-0x1cd;var _0x29d3c8=_0x202a6e[_0x44af07];return _0x29d3c8;},_0x44af(_0x2cb185,_0x2331b0);}import{ContextPlugin as _0x9df8d9}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0xdd3e2a}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x400985}from'./aichathistoryui.js';function _0x202a(){var _0x6f524d=['AIChatHistory','20OPwDqe','isOfficialPlugin','pluginName','requires','1112587OSFwCj','12TmjwPP','46540ZXccrY','2773779iLGLDi','5289640FxRgUG','854020agHgvQ','840550JruuaD','isPremiumPlugin','9MYSMFg','1095290UqCuIy'];_0x202a=function(){return _0x6f524d;};return _0x202a();}export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x9df8d9{static get[_0x1e866e(0x1d9)](){return[_0xdd3e2a,_0x400985];}static get[_0x1e866e(0x1d8)](){var _0x222e65=_0x1e866e;return _0x222e65(0x1d5);}static get[_0x1e866e(0x1d7)](){return!0x0;}static get[_0x1e866e(0x1d2)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x2fed(){const _0x1a456a=['_handleEditTitle','AIChatHistoryController','updateItemLoadingState','removeConversation','selectConversation','removeHistoryItem','map','showError','editConversationTitle','6457056czeloR','itemsLoaded','resizedTabs','_aiConnector','getItem','unpin','36cfxwbp','AI_CHAT_HISTORY_PIN_ACTION','_clearItemLoading','updateItemPinned','_handleSelectConversation','updates','77327TJPArw','activateTab','107552GRchbE','4aBXMMP','_showConversationHistory','toLocaleDateString','_handleTogglePin','AI_CHAT_HISTORY_CATEGORY_LATER','updateItems','rename','isPremiumPlugin','pinned','AI_CHAT_UNTITLED_CONVERSATION','_handleHistoryErrorUI','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','pin','AI_CHAT_HISTORY_ERROR_GENERIC','727638JGJURK','_aiChatHistoryUi','resizeTabs','_setItemLoading','length','title','history','AI_CHAT_HISTORY_CATEGORY_PINNED','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','removeItem','getDate','activateTab:history','updateItemTitle','getFullYear','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','push','setConversationPinned','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','_updateHistoryItemsUI','_setIsMaximized','3161070xJaYKy','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','AI_CHAT_HISTORY_UNPIN_ACTION','change:activeConversation','loadConversation','_generateErrorMessage','_aiChatController','requires','error','plugins','setLoadingSkeleton','AI_CHAT_HISTORY_CATEGORY_TODAY','isOfficialPlugin','itemUpdated','loadItems','context','get','pluginName','handleRemovedConversation','setDate','activeConversation','itemRemoved','4329976EtDmCG','getMonth','operation','resize','openChat','createdAt','listenTo','_handleRemove','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','remove','getGroupId','init','_getCategorizedItems','3559472LXERqp','getItems','view','chat','items','locale','itemId','5bbElne','setIsMaximized'];_0x2fed=function(){return _0x1a456a;};return _0x2fed();}const _0x2ab1bc=_0x62ce;(function(_0x4a5349,_0x2b9bd7){const _0xfa1ebf=_0x62ce,_0xffcd3d=_0x4a5349();while(!![]){try{const _0x5c000b=parseInt(_0xfa1ebf(0x1ee))/0x1*(parseInt(_0xfa1ebf(0x1f1))/0x2)+-parseInt(_0xfa1ebf(0x1ff))/0x3+parseInt(_0xfa1ebf(0x229))/0x4*(parseInt(_0xfa1ebf(0x23d))/0x5)+-parseInt(_0xfa1ebf(0x1e2))/0x6+parseInt(_0xfa1ebf(0x236))/0x7+-parseInt(_0xfa1ebf(0x1f0))/0x8*(parseInt(_0xfa1ebf(0x1e8))/0x9)+parseInt(_0xfa1ebf(0x213))/0xa;if(_0x5c000b===_0x2b9bd7)break;else _0xffcd3d['push'](_0xffcd3d['shift']());}catch(_0x49aea5){_0xffcd3d['push'](_0xffcd3d['shift']());}}}(_0x2fed,0xa8465));import{ContextPlugin as _0x2b7178}from'ckeditor5/src/core.js';import{AIConnector as _0x4a740a}from'../aicore/aiconnector.js';import{AIChatController as _0x325ed4}from'../aichat/aichatcontroller.js';import{AITabs as _0x7d598e}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x55338e}from'./aichathistoryui.js';function _0x62ce(_0x12adf8,_0x18e9b3){const _0x2fedc2=_0x2fed();return _0x62ce=function(_0x62ce21,_0x3e8add){_0x62ce21=_0x62ce21-0x1dc;let _0x44d9fb=_0x2fedc2[_0x62ce21];return _0x44d9fb;},_0x62ce(_0x12adf8,_0x18e9b3);}import{AIChatHistoryConversations as _0x45940a}from'./model/aichathistoryconversations.js';import{getTranslation as _0x2d57d4}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x2b7178{[_0x2ab1bc(0x1e5)];[_0x2ab1bc(0x200)];[_0x2ab1bc(0x219)];static get[_0x2ab1bc(0x21a)](){return[_0x4a740a,_0x325ed4,_0x55338e,_0x7d598e];}static get[_0x2ab1bc(0x224)](){const _0x10ad00=_0x2ab1bc;return _0x10ad00(0x240);}static get[_0x2ab1bc(0x21f)](){return!0x0;}static get[_0x2ab1bc(0x1f8)](){return!0x0;}[_0x2ab1bc(0x234)](){const _0x5af26a=_0x2ab1bc;this[_0x5af26a(0x1e5)]=this[_0x5af26a(0x222)][_0x5af26a(0x21c)][_0x5af26a(0x223)](_0x4a740a),this[_0x5af26a(0x200)]=this[_0x5af26a(0x222)][_0x5af26a(0x21c)][_0x5af26a(0x223)](_0x55338e),this[_0x5af26a(0x219)]=this[_0x5af26a(0x222)][_0x5af26a(0x21c)][_0x5af26a(0x223)](_0x325ed4);const _0x4291da=this[_0x5af26a(0x222)][_0x5af26a(0x21c)][_0x5af26a(0x223)](_0x7d598e);try{const _0x1402cf=this[_0x5af26a(0x219)][_0x5af26a(0x233)]();this[_0x5af26a(0x205)]=new _0x45940a({'connector':this[_0x5af26a(0x1e5)],'group':_0x1402cf}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x200)],_0x5af26a(0x1dc),(_0x3332fc,_0x9dc001)=>{const _0x39f15e=_0x5af26a;this[_0x39f15e(0x202)](_0x9dc001['id'],_0x39f15e(0x232)),this[_0x39f15e(0x230)](_0x9dc001['id']);}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x200)],_0x5af26a(0x1e1),(_0x189418,_0x3f95fd)=>{const _0x24acc7=_0x5af26a;this[_0x24acc7(0x202)](_0x3f95fd['id'],_0x24acc7(0x1f7)),this[_0x24acc7(0x23f)](_0x3f95fd['id'],_0x3f95fd[_0x24acc7(0x204)]);}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x205)],_0x5af26a(0x220),(_0x34b8e2,_0x4ccbb8)=>{const _0x49104a=_0x5af26a;void 0x0!==_0x4ccbb8[_0x49104a(0x1ed)][_0x49104a(0x204)]&&this[_0x49104a(0x200)][_0x49104a(0x20b)](_0x4ccbb8[_0x49104a(0x23c)],_0x4ccbb8[_0x49104a(0x1ed)][_0x49104a(0x204)]),void 0x0!==_0x4ccbb8[_0x49104a(0x1ed)][_0x49104a(0x1f9)]&&this[_0x49104a(0x211)](),this[_0x49104a(0x1ea)](_0x4ccbb8[_0x49104a(0x23c)]);}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x205)],_0x5af26a(0x228),(_0x40230d,_0x16249a)=>{const _0xe63025=_0x5af26a;this[_0xe63025(0x219)][_0xe63025(0x225)](_0x16249a[_0xe63025(0x23c)]),this[_0xe63025(0x200)][_0xe63025(0x1de)](_0x16249a[_0xe63025(0x23c)]),this[_0xe63025(0x1ea)](_0x16249a[_0xe63025(0x23c)]);}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x205)],_0x5af26a(0x1e3),()=>{const _0x518c72=_0x5af26a;this[_0x518c72(0x211)]();}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x205)],_0x5af26a(0x21b),(_0x3b9cf3,_0x5d6275)=>{const _0x552838=_0x5af26a;this[_0x552838(0x1fb)](_0x5d6275[_0x552838(0x21b)],_0x5d6275[_0x552838(0x22b)],_0x5d6275[_0x552838(0x23c)]);}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x200)],_0x5af26a(0x1dd),(_0x36894c,_0x4d443e)=>{const _0x2fd874=_0x5af26a;this[_0x2fd874(0x1ec)](_0x4d443e['id']);}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x200)],_0x5af26a(0x20f),(_0x26601c,_0x3172f6)=>{const _0x5b8a7a=_0x5af26a,_0x4ca200=_0x3172f6[_0x5b8a7a(0x1f9)]?_0x5b8a7a(0x1fd):_0x5b8a7a(0x1e7);this[_0x5b8a7a(0x202)](_0x3172f6['id'],_0x4ca200),this[_0x5b8a7a(0x1f4)](_0x3172f6['id'],_0x3172f6[_0x5b8a7a(0x1f9)]);}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x200)],_0x5af26a(0x22d),()=>{const _0x23eca7=_0x5af26a;_0x4291da[_0x23eca7(0x238)][_0x23eca7(0x1ef)](_0x23eca7(0x239));}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x219)],_0x5af26a(0x216),()=>{const _0x1f68c6=_0x5af26a;this[_0x1f68c6(0x211)]();}),_0x4291da[_0x5af26a(0x238)]['on'](_0x5af26a(0x20a),()=>{const _0xf53f06=_0x5af26a;this[_0xf53f06(0x1f2)]();}),this[_0x5af26a(0x22f)](_0x4291da,_0x5af26a(0x1e4),(_0x575d39,_0x106bec)=>{const _0x10b8b1=_0x5af26a;this[_0x10b8b1(0x212)](_0x106bec);}),this[_0x5af26a(0x22f)](this[_0x5af26a(0x200)],_0x5af26a(0x201),()=>{const _0x8d229a=_0x5af26a;_0x4291da[_0x8d229a(0x22c)]();});}catch(_0x1645a5){this[_0x5af26a(0x1fb)](_0x1645a5,_0x5af26a(0x234));}}async[_0x2ab1bc(0x23f)](_0x39f4b9,_0x3a3e45){const _0x20b8f2=_0x2ab1bc;await this[_0x20b8f2(0x205)][_0x20b8f2(0x20b)](_0x39f4b9,_0x3a3e45);}async[_0x2ab1bc(0x1f4)](_0xd28227,_0x3ec159){const _0x12f1b9=_0x2ab1bc;await this[_0x12f1b9(0x205)][_0x12f1b9(0x1eb)](_0xd28227,_0x3ec159);}async[_0x2ab1bc(0x230)](_0x5b20e1){const _0x5c683f=_0x2ab1bc;await this[_0x5c683f(0x205)][_0x5c683f(0x208)](_0x5b20e1);}async[_0x2ab1bc(0x1ec)](_0x4fa89c){const _0x2cd3f3=_0x2ab1bc;await this[_0x2cd3f3(0x219)][_0x2cd3f3(0x217)](_0x4fa89c);}async[_0x2ab1bc(0x1f2)](){const _0x1956a4=_0x2ab1bc;this[_0x1956a4(0x200)][_0x1956a4(0x1e0)](''),this[_0x1956a4(0x200)][_0x1956a4(0x21d)](!0x0),await this[_0x1956a4(0x205)][_0x1956a4(0x234)](),this[_0x1956a4(0x200)][_0x1956a4(0x21d)](!0x1);}[_0x2ab1bc(0x211)](){const _0x11c7d6=_0x2ab1bc,_0x56baf4=this[_0x11c7d6(0x219)][_0x11c7d6(0x227)]?.['id'],_0x23aebc=this[_0x11c7d6(0x235)]()[_0x11c7d6(0x1df)](_0x341d95=>({'title':_0x341d95[_0x11c7d6(0x204)],'items':_0x341d95[_0x11c7d6(0x23a)][_0x11c7d6(0x1df)](_0x1ac5d9=>({'id':_0x1ac5d9['id'],'title':_0x1ac5d9[_0x11c7d6(0x204)]||_0x2d57d4(this[_0x11c7d6(0x222)][_0x11c7d6(0x23b)],_0x11c7d6(0x1fa)),'createdAt':new Date(_0x1ac5d9[_0x11c7d6(0x22e)])[_0x11c7d6(0x1f3)](),'active':_0x1ac5d9['id']===_0x56baf4,'pinned':_0x1ac5d9[_0x11c7d6(0x1f9)]}))}));this[_0x11c7d6(0x200)][_0x11c7d6(0x1f6)](_0x23aebc);}[_0x2ab1bc(0x202)](_0x2cc5ee,_0x1ac500){const _0xc8fafe=_0x2ab1bc;this[_0xc8fafe(0x200)][_0xc8fafe(0x241)](_0x2cc5ee,_0x1ac500,!0x0);}[_0x2ab1bc(0x1ea)](_0x77b0e2){const _0x138da7=_0x2ab1bc;this[_0x138da7(0x200)][_0x138da7(0x241)](_0x77b0e2,null,!0x1);}[_0x2ab1bc(0x1fb)](_0x3c6c5f,_0x3fb56c,_0x29ff21){const _0x26f487=_0x2ab1bc,_0x17bea5=this[_0x26f487(0x218)](_0x3fb56c,_0x29ff21);this[_0x26f487(0x200)][_0x26f487(0x1e0)](_0x17bea5),_0x29ff21&&this[_0x26f487(0x1ea)](_0x29ff21),this[_0x26f487(0x200)][_0x26f487(0x21d)](!0x1);}[_0x2ab1bc(0x218)](_0x5233c9,_0x24351b){const _0x1e13d8=_0x2ab1bc,_0x2a303c=_0x24351b?this[_0x1e13d8(0x205)][_0x1e13d8(0x1e6)](_0x24351b):null,_0x476460=_0x2a303c?.[_0x1e13d8(0x204)]||_0x2d57d4(this[_0x1e13d8(0x222)][_0x1e13d8(0x23b)],_0x1e13d8(0x1fa));switch(_0x5233c9){case _0x1e13d8(0x20b):return _0x2d57d4(this[_0x1e13d8(0x222)][_0x1e13d8(0x23b)],_0x1e13d8(0x214),_0x476460);case _0x1e13d8(0x1eb):{const _0x2b14ec=_0x2d57d4(this[_0x1e13d8(0x222)][_0x1e13d8(0x23b)],_0x2a303c?.[_0x1e13d8(0x1f9)]?_0x1e13d8(0x215):_0x1e13d8(0x1e9));return _0x2d57d4(this[_0x1e13d8(0x222)][_0x1e13d8(0x23b)],_0x1e13d8(0x1fc),[_0x2b14ec,_0x476460]);}case _0x1e13d8(0x208):return _0x2d57d4(this[_0x1e13d8(0x222)][_0x1e13d8(0x23b)],_0x1e13d8(0x20d),_0x476460);case _0x1e13d8(0x234):case _0x1e13d8(0x221):return _0x2d57d4(this[_0x1e13d8(0x222)][_0x1e13d8(0x23b)],_0x1e13d8(0x207));default:return _0x2d57d4(this[_0x1e13d8(0x222)][_0x1e13d8(0x23b)],_0x1e13d8(0x1fe));}}[_0x2ab1bc(0x235)](){const _0x297893=_0x2ab1bc,_0x453cb0=new Date(),_0xfd9c92=new Date(_0x453cb0[_0x297893(0x20c)](),_0x453cb0[_0x297893(0x22a)](),_0x453cb0[_0x297893(0x209)]()),_0x112e45=new Date(_0xfd9c92);_0x112e45[_0x297893(0x226)](_0x112e45[_0x297893(0x209)]()-0x1);const _0x111ad0=new Date(_0xfd9c92);_0x111ad0[_0x297893(0x226)](_0x111ad0[_0x297893(0x209)]()-0xe);const _0x20032a=this[_0x297893(0x205)][_0x297893(0x237)]({'pinned':!0x0}),_0x398b61=this[_0x297893(0x205)][_0x297893(0x237)]({'from':_0xfd9c92,'to':_0xfd9c92}),_0x36e2fe=this[_0x297893(0x205)][_0x297893(0x237)]({'from':_0x112e45,'to':_0x112e45}),_0x312849=this[_0x297893(0x205)][_0x297893(0x237)]({'from':_0x111ad0,'to':_0x112e45}),_0x9e0189=this[_0x297893(0x205)][_0x297893(0x237)]({'to':_0x111ad0}),_0x6f9109=[];return _0x20032a[_0x297893(0x203)]>0x0&&_0x6f9109[_0x297893(0x20e)]({'title':_0x2d57d4(this[_0x297893(0x222)][_0x297893(0x23b)],_0x297893(0x206)),'items':_0x20032a}),_0x398b61[_0x297893(0x203)]>0x0&&_0x6f9109[_0x297893(0x20e)]({'title':_0x2d57d4(this[_0x297893(0x222)][_0x297893(0x23b)],_0x297893(0x21e)),'items':_0x398b61}),_0x36e2fe[_0x297893(0x203)]>0x0&&_0x6f9109[_0x297893(0x20e)]({'title':_0x2d57d4(this[_0x297893(0x222)][_0x297893(0x23b)],_0x297893(0x231)),'items':_0x36e2fe}),_0x312849[_0x297893(0x203)]>0x0&&_0x6f9109[_0x297893(0x20e)]({'title':_0x2d57d4(this[_0x297893(0x222)][_0x297893(0x23b)],_0x297893(0x210)),'items':_0x312849}),_0x9e0189[_0x297893(0x203)]>0x0&&_0x6f9109[_0x297893(0x20e)]({'title':_0x2d57d4(this[_0x297893(0x222)][_0x297893(0x23b)],_0x297893(0x1f5)),'items':_0x9e0189}),_0x6f9109;}[_0x2ab1bc(0x212)](_0x4caaef){const _0x240650=_0x2ab1bc;this[_0x240650(0x200)][_0x240650(0x23e)](_0x4caaef);}}
|
|
23
|
+
const _0x53c691=_0x2563;(function(_0x134627,_0x19d4f7){const _0x10c3af=_0x2563,_0x5ef349=_0x134627();while(!![]){try{const _0x215bf1=-parseInt(_0x10c3af(0x16c))/0x1*(parseInt(_0x10c3af(0x16f))/0x2)+-parseInt(_0x10c3af(0x188))/0x3+parseInt(_0x10c3af(0x177))/0x4+parseInt(_0x10c3af(0x167))/0x5*(parseInt(_0x10c3af(0x199))/0x6)+parseInt(_0x10c3af(0x153))/0x7*(parseInt(_0x10c3af(0x14f))/0x8)+-parseInt(_0x10c3af(0x193))/0x9*(parseInt(_0x10c3af(0x149))/0xa)+parseInt(_0x10c3af(0x178))/0xb;if(_0x215bf1===_0x19d4f7)break;else _0x5ef349['push'](_0x5ef349['shift']());}catch(_0x1322c4){_0x5ef349['push'](_0x5ef349['shift']());}}}(_0x5742,0x7c863));import{ContextPlugin as _0x538aa4}from'ckeditor5/src/core.js';import{AIConnector as _0xd500ba}from'../aicore/aiconnector.js';import{AIChatController as _0xbc0c2d}from'../aichat/aichatcontroller.js';import{AITabs as _0x56d59f}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x5756fb}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x23cbd7}from'./model/aichathistoryconversations.js';function _0x2563(_0x1311f6,_0x32dd54){const _0x57425b=_0x5742();return _0x2563=function(_0x256379,_0x163fa0){_0x256379=_0x256379-0x134;let _0x3fcf8d=_0x57425b[_0x256379];return _0x3fcf8d;},_0x2563(_0x1311f6,_0x32dd54);}import{getTranslation as _0x4f5874}from'../aicore/utils/common-translations.js';function _0x5742(){const _0x477a13=['updateItemLoadingState','get','_setIsMaximized','removeItem','loadItems','selectConversation','pin','_handleTogglePin','resizeTabs','view','setDate','length','_handleRemove','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','error','_handleEditTitle','2262720rMgDga','_handleSelectConversation','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','updateItemTitle','title','3ymwlpk','_updateHistoryItemsUI','pluginName','403778hFuHAg','itemUpdated','editConversationTitle','toLocaleDateString','chat','unpin','_setItemLoading','listenTo','3134724AIXBEQ','17650677QwCLon','updateItems','getItem','_aiChatController','setConversationPinned','map','remove','updates','AI_CHAT_HISTORY_CATEGORY_TODAY','requires','operation','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','locale','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','2607123zAxqez','init','_clearItemLoading','plugins','resize','AI_CHAT_HISTORY_CATEGORY_PINNED','getMonth','context','showError','_generateErrorMessage','getItems','1530IuOEuQ','pinned','AI_CHAT_UNTITLED_CONVERSATION','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','push','getFullYear','6uQcghf','_aiConnector','createdAt','removeConversation','resizedTabs','setIsMaximized','itemsLoaded','removeHistoryItem','AI_CHAT_HISTORY_ERROR_GENERIC','AIChatHistoryController','itemId','updateItemPinned','items','AI_CHAT_HISTORY_UNPIN_ACTION','history','itemRemoved','activateTab','AI_CHAT_HISTORY_CATEGORY_LATER','rename','isPremiumPlugin','_aiChatHistoryUi','getDate','getGroupId','58160jmlcTL','activeConversation','openChat','_getCategorizedItems','_showConversationHistory','isOfficialPlugin','8kQzLSH','loadConversation','_handleHistoryErrorUI','setLoadingSkeleton','928529jKmBVJ','activateTab:history','change:activeConversation','handleRemovedConversation'];_0x5742=function(){return _0x477a13;};return _0x5742();}export class AIChatHistoryController extends _0x538aa4{[_0x53c691(0x19a)];[_0x53c691(0x146)];[_0x53c691(0x17b)];static get[_0x53c691(0x181)](){return[_0xd500ba,_0xbc0c2d,_0x5756fb,_0x56d59f];}static get[_0x53c691(0x16e)](){const _0x160776=_0x53c691;return _0x160776(0x13b);}static get[_0x53c691(0x14e)](){return!0x0;}static get[_0x53c691(0x145)](){return!0x0;}[_0x53c691(0x189)](){const _0x570123=_0x53c691;this[_0x570123(0x19a)]=this[_0x570123(0x18f)][_0x570123(0x18b)][_0x570123(0x158)](_0xd500ba),this[_0x570123(0x146)]=this[_0x570123(0x18f)][_0x570123(0x18b)][_0x570123(0x158)](_0x5756fb),this[_0x570123(0x17b)]=this[_0x570123(0x18f)][_0x570123(0x18b)][_0x570123(0x158)](_0xbc0c2d);const _0x4ebb72=this[_0x570123(0x18f)][_0x570123(0x18b)][_0x570123(0x158)](_0x56d59f);try{const _0x5eec7c=this[_0x570123(0x17b)][_0x570123(0x148)]();this[_0x570123(0x140)]=new _0x23cbd7({'connector':this[_0x570123(0x19a)],'group':_0x5eec7c}),this[_0x570123(0x176)](this[_0x570123(0x146)],_0x570123(0x135),(_0x355141,_0x18414c)=>{const _0x3f44e9=_0x570123;this[_0x3f44e9(0x175)](_0x18414c['id'],_0x3f44e9(0x17e)),this[_0x3f44e9(0x163)](_0x18414c['id']);}),this[_0x570123(0x176)](this[_0x570123(0x146)],_0x570123(0x171),(_0x5e3c39,_0xf4f244)=>{const _0x209dc7=_0x570123;this[_0x209dc7(0x175)](_0xf4f244['id'],_0x209dc7(0x144)),this[_0x209dc7(0x166)](_0xf4f244['id'],_0xf4f244[_0x209dc7(0x16b)]);}),this[_0x570123(0x176)](this[_0x570123(0x140)],_0x570123(0x170),(_0x4b2d93,_0x73a600)=>{const _0x3b8920=_0x570123;void 0x0!==_0x73a600[_0x3b8920(0x17f)][_0x3b8920(0x16b)]&&this[_0x3b8920(0x146)][_0x3b8920(0x16a)](_0x73a600[_0x3b8920(0x13c)],_0x73a600[_0x3b8920(0x17f)][_0x3b8920(0x16b)]),void 0x0!==_0x73a600[_0x3b8920(0x17f)][_0x3b8920(0x194)]&&this[_0x3b8920(0x16d)](),this[_0x3b8920(0x18a)](_0x73a600[_0x3b8920(0x13c)]);}),this[_0x570123(0x176)](this[_0x570123(0x140)],_0x570123(0x141),(_0x2f136e,_0x1ab92e)=>{const _0x1380aa=_0x570123;this[_0x1380aa(0x17b)][_0x1380aa(0x156)](_0x1ab92e[_0x1380aa(0x13c)]),this[_0x1380aa(0x146)][_0x1380aa(0x139)](_0x1ab92e[_0x1380aa(0x13c)]),this[_0x1380aa(0x18a)](_0x1ab92e[_0x1380aa(0x13c)]);}),this[_0x570123(0x176)](this[_0x570123(0x140)],_0x570123(0x138),()=>{const _0x49164c=_0x570123;this[_0x49164c(0x16d)]();}),this[_0x570123(0x176)](this[_0x570123(0x140)],_0x570123(0x165),(_0x4c71fc,_0xa7bf5d)=>{const _0x3d3d9b=_0x570123;this[_0x3d3d9b(0x151)](_0xa7bf5d[_0x3d3d9b(0x165)],_0xa7bf5d[_0x3d3d9b(0x182)],_0xa7bf5d[_0x3d3d9b(0x13c)]);}),this[_0x570123(0x176)](this[_0x570123(0x146)],_0x570123(0x15c),(_0x45fcc7,_0x168f89)=>{const _0x44649c=_0x570123;this[_0x44649c(0x168)](_0x168f89['id']);}),this[_0x570123(0x176)](this[_0x570123(0x146)],_0x570123(0x17c),(_0x525e1a,_0x448d61)=>{const _0x478e43=_0x570123,_0x1e2b8f=_0x448d61[_0x478e43(0x194)]?_0x478e43(0x15d):_0x478e43(0x174);this[_0x478e43(0x175)](_0x448d61['id'],_0x1e2b8f),this[_0x478e43(0x15e)](_0x448d61['id'],_0x448d61[_0x478e43(0x194)]);}),this[_0x570123(0x176)](this[_0x570123(0x146)],_0x570123(0x14b),()=>{const _0x23ba36=_0x570123;_0x4ebb72[_0x23ba36(0x160)][_0x23ba36(0x142)](_0x23ba36(0x173));}),this[_0x570123(0x176)](this[_0x570123(0x17b)],_0x570123(0x155),()=>{const _0x1cd5fe=_0x570123;this[_0x1cd5fe(0x16d)]();}),_0x4ebb72[_0x570123(0x160)]['on'](_0x570123(0x154),()=>{const _0x58872b=_0x570123;this[_0x58872b(0x14d)]();}),this[_0x570123(0x176)](_0x4ebb72,_0x570123(0x136),(_0x5a3423,_0x1f1416)=>{const _0x519cc0=_0x570123;this[_0x519cc0(0x159)](_0x1f1416);}),this[_0x570123(0x176)](this[_0x570123(0x146)],_0x570123(0x15f),()=>{const _0x2bfbe7=_0x570123;_0x4ebb72[_0x2bfbe7(0x18c)]();});}catch(_0x267017){this[_0x570123(0x151)](_0x267017,_0x570123(0x189));}}async[_0x53c691(0x166)](_0x444139,_0x5edf58){const _0x146381=_0x53c691;await this[_0x146381(0x140)][_0x146381(0x16a)](_0x444139,_0x5edf58);}async[_0x53c691(0x15e)](_0x2a54c3,_0x471d86){const _0x25db73=_0x53c691;await this[_0x25db73(0x140)][_0x25db73(0x13d)](_0x2a54c3,_0x471d86);}async[_0x53c691(0x163)](_0x29df75){const _0x246f36=_0x53c691;await this[_0x246f36(0x140)][_0x246f36(0x15a)](_0x29df75);}async[_0x53c691(0x168)](_0x1a6078){const _0x412a38=_0x53c691;await this[_0x412a38(0x17b)][_0x412a38(0x150)](_0x1a6078);}async[_0x53c691(0x14d)](){const _0x5e51f4=_0x53c691;this[_0x5e51f4(0x146)][_0x5e51f4(0x190)](''),this[_0x5e51f4(0x146)][_0x5e51f4(0x152)](!0x0),await this[_0x5e51f4(0x140)][_0x5e51f4(0x189)](),this[_0x5e51f4(0x146)][_0x5e51f4(0x152)](!0x1);}[_0x53c691(0x16d)](){const _0xfb415=_0x53c691,_0xe90a68=this[_0xfb415(0x17b)][_0xfb415(0x14a)]?.['id'],_0x198e7f=this[_0xfb415(0x14c)]()[_0xfb415(0x17d)](_0x352988=>({'title':_0x352988[_0xfb415(0x16b)],'items':_0x352988[_0xfb415(0x13e)][_0xfb415(0x17d)](_0x2fa7b5=>({'id':_0x2fa7b5['id'],'title':_0x2fa7b5[_0xfb415(0x16b)]||_0x4f5874(this[_0xfb415(0x18f)][_0xfb415(0x186)],_0xfb415(0x195)),'createdAt':new Date(_0x2fa7b5[_0xfb415(0x134)])[_0xfb415(0x172)](),'active':_0x2fa7b5['id']===_0xe90a68,'pinned':_0x2fa7b5[_0xfb415(0x194)]}))}));this[_0xfb415(0x146)][_0xfb415(0x179)](_0x198e7f);}[_0x53c691(0x175)](_0x48b151,_0x2c43be){const _0x522471=_0x53c691;this[_0x522471(0x146)][_0x522471(0x157)](_0x48b151,_0x2c43be,!0x0);}[_0x53c691(0x18a)](_0x373381){const _0x4dfe6e=_0x53c691;this[_0x4dfe6e(0x146)][_0x4dfe6e(0x157)](_0x373381,null,!0x1);}[_0x53c691(0x151)](_0x2c7b4c,_0x25e233,_0x4ff57e){const _0x215582=_0x53c691,_0x18fd36=this[_0x215582(0x191)](_0x25e233,_0x4ff57e);this[_0x215582(0x146)][_0x215582(0x190)](_0x18fd36),_0x4ff57e&&this[_0x215582(0x18a)](_0x4ff57e),this[_0x215582(0x146)][_0x215582(0x152)](!0x1);}[_0x53c691(0x191)](_0x386c5d,_0x1c1b79){const _0x355030=_0x53c691,_0x582ceb=_0x1c1b79?this[_0x355030(0x140)][_0x355030(0x17a)](_0x1c1b79):null,_0x115641=_0x582ceb?.[_0x355030(0x16b)]||_0x4f5874(this[_0x355030(0x18f)][_0x355030(0x186)],_0x355030(0x195));switch(_0x386c5d){case _0x355030(0x16a):return _0x4f5874(this[_0x355030(0x18f)][_0x355030(0x186)],_0x355030(0x196),_0x115641);case _0x355030(0x13d):{const _0x49ef87=_0x4f5874(this[_0x355030(0x18f)][_0x355030(0x186)],_0x582ceb?.[_0x355030(0x194)]?_0x355030(0x13f):_0x355030(0x184));return _0x4f5874(this[_0x355030(0x18f)][_0x355030(0x186)],_0x355030(0x183),[_0x49ef87,_0x115641]);}case _0x355030(0x15a):return _0x4f5874(this[_0x355030(0x18f)][_0x355030(0x186)],_0x355030(0x187),_0x115641);case _0x355030(0x189):case _0x355030(0x15b):return _0x4f5874(this[_0x355030(0x18f)][_0x355030(0x186)],_0x355030(0x185));default:return _0x4f5874(this[_0x355030(0x18f)][_0x355030(0x186)],_0x355030(0x13a));}}[_0x53c691(0x14c)](){const _0x335128=_0x53c691,_0x2d1f9c=new Date(),_0x595ee7=new Date(_0x2d1f9c[_0x335128(0x198)](),_0x2d1f9c[_0x335128(0x18e)](),_0x2d1f9c[_0x335128(0x147)]()),_0x2cec36=new Date(_0x595ee7);_0x2cec36[_0x335128(0x161)](_0x2cec36[_0x335128(0x147)]()-0x1);const _0x5195cd=new Date(_0x595ee7);_0x5195cd[_0x335128(0x161)](_0x5195cd[_0x335128(0x147)]()-0xe);const _0x551f5d=this[_0x335128(0x140)][_0x335128(0x192)]({'pinned':!0x0}),_0x4541c7=this[_0x335128(0x140)][_0x335128(0x192)]({'from':_0x595ee7,'to':_0x595ee7}),_0x4dda46=this[_0x335128(0x140)][_0x335128(0x192)]({'from':_0x2cec36,'to':_0x2cec36}),_0x195023=this[_0x335128(0x140)][_0x335128(0x192)]({'from':_0x5195cd,'to':_0x2cec36}),_0xd01ca2=this[_0x335128(0x140)][_0x335128(0x192)]({'to':_0x5195cd}),_0x15e9d1=[];return _0x551f5d[_0x335128(0x162)]>0x0&&_0x15e9d1[_0x335128(0x197)]({'title':_0x4f5874(this[_0x335128(0x18f)][_0x335128(0x186)],_0x335128(0x18d)),'items':_0x551f5d}),_0x4541c7[_0x335128(0x162)]>0x0&&_0x15e9d1[_0x335128(0x197)]({'title':_0x4f5874(this[_0x335128(0x18f)][_0x335128(0x186)],_0x335128(0x180)),'items':_0x4541c7}),_0x4dda46[_0x335128(0x162)]>0x0&&_0x15e9d1[_0x335128(0x197)]({'title':_0x4f5874(this[_0x335128(0x18f)][_0x335128(0x186)],_0x335128(0x169)),'items':_0x4dda46}),_0x195023[_0x335128(0x162)]>0x0&&_0x15e9d1[_0x335128(0x197)]({'title':_0x4f5874(this[_0x335128(0x18f)][_0x335128(0x186)],_0x335128(0x164)),'items':_0x195023}),_0xd01ca2[_0x335128(0x162)]>0x0&&_0x15e9d1[_0x335128(0x197)]({'title':_0x4f5874(this[_0x335128(0x18f)][_0x335128(0x186)],_0x335128(0x143)),'items':_0xd01ca2}),_0x15e9d1;}[_0x53c691(0x159)](_0x3cd20b){const _0xc63cb4=_0x53c691;this[_0xc63cb4(0x146)][_0xc63cb4(0x137)](_0x3cd20b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39b6e2=_0x4c12;(function(_0x4ed502,_0x52bab5){const _0x14672d=_0x4c12,_0x2f8c22=_0x4ed502();while(!![]){try{const _0x44fa23=parseInt(_0x14672d(0x129))/0x1*(-parseInt(_0x14672d(0x117))/0x2)+parseInt(_0x14672d(0x114))/0x3*(parseInt(_0x14672d(0x10e))/0x4)+-parseInt(_0x14672d(0x131))/0x5+parseInt(_0x14672d(0x113))/0x6+-parseInt(_0x14672d(0x12a))/0x7+parseInt(_0x14672d(0x10d))/0x8*(parseInt(_0x14672d(0x135))/0x9)+parseInt(_0x14672d(0x121))/0xa;if(_0x44fa23===_0x52bab5)break;else _0x2f8c22['push'](_0x2f8c22['shift']());}catch(_0x259281){_0x2f8c22['push'](_0x2f8c22['shift']());}}}(_0x3cbc,0x4c3f4));import{ContextPlugin as _0x54ad04}from'ckeditor5/src/core.js';import{AITabs as _0x2a2e32}from'../aitabs/aitabs.js';import{IconAIHistory as _0x13d40a}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x1c4a2d}from'./ui/aichathistoryview.js';import{getTranslation as _0x4ad85d}from'../aicore/utils/common-translations.js';function _0x4c12(_0x4c9115,_0x3591c3){const _0x3cbc35=_0x3cbc();return _0x4c12=function(_0x4c12a9,_0x16665b){_0x4c12a9=_0x4c12a9-0x109;let _0x371ee1=_0x3cbc35[_0x4c12a9];return _0x371ee1;},_0x4c12(_0x4c9115,_0x3591c3);}import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x39b6e2(0x109),_0x39b6e2(0x130),_0x39b6e2(0x115),_0x39b6e2(0x128),_0x39b6e2(0x12e),_0x39b6e2(0x119),_0x39b6e2(0x112)];function _0x3cbc(){const _0xf09368=['updateHistoryItemsWithCategories','setLoadingSkeleton','updateItems','4113400WSJUzM','pluginName','isPremiumPlugin','showError','isOfficialPlugin','AI_CHAT_HISTORY_HEADING','delegate','setConversationPinned','1PvXcfF','730317gqZPkA','hideError','history','removeHistoryItem','selectConversation','view','removeConversation','3074565tGoORC','AIChatHistoryUI','AITabs','plugins','2070SBDCDh','errorMessage','showConversationHistory','isMaximized','isLoading','updateItemLoadingState','20632SEcdpN','8UIYdmB','context','showResizeButton','addTab','resizeTabs','715098GdKTQG','532269IPswes','editConversationTitle','setIsMaximized','893974dfERlX','updateItemTitle','openChat','requires','get','locale','_historyView'];_0x3cbc=function(){return _0xf09368;};return _0x3cbc();}export class AIChatHistoryUI extends _0x54ad04{static get[_0x39b6e2(0x11a)](){return[_0x2a2e32];}[_0x39b6e2(0x11d)];static get[_0x39b6e2(0x122)](){const _0x2e8e13=_0x39b6e2;return _0x2e8e13(0x132);}static get[_0x39b6e2(0x125)](){return!0x0;}static get[_0x39b6e2(0x123)](){return!0x0;}constructor(_0x470e19){const _0x14343a=_0x39b6e2;super(_0x470e19);const _0x2b8d0b=this[_0x14343a(0x10f)][_0x14343a(0x134)][_0x14343a(0x11b)](_0x14343a(0x133));this[_0x14343a(0x11d)]=new _0x1c4a2d(this[_0x14343a(0x10f)][_0x14343a(0x11c)],_0x2b8d0b[_0x14343a(0x110)]),this[_0x14343a(0x11d)][_0x14343a(0x127)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x2b8d0b[_0x14343a(0x12f)][_0x14343a(0x111)]({'id':_0x14343a(0x12c),'buttonLabel':_0x4ad85d(this[_0x14343a(0x10f)][_0x14343a(0x11c)],_0x14343a(0x126)),'buttonIcon':_0x13d40a,'order':0x0,'content':this[_0x14343a(0x11d)]});}[_0x39b6e2(0x12d)](_0x2dd2d8){const _0x354f0f=_0x39b6e2;this[_0x354f0f(0x11d)][_0x354f0f(0x12d)](_0x2dd2d8);}[_0x39b6e2(0x120)](_0x14a771){const _0x47ee6f=_0x39b6e2;this[_0x47ee6f(0x11d)][_0x47ee6f(0x11e)](_0x14a771);}[_0x39b6e2(0x118)](_0x597b43,_0x1f124e){const _0x3cee37=_0x39b6e2;this[_0x3cee37(0x11d)][_0x3cee37(0x118)](_0x597b43,_0x1f124e);}[_0x39b6e2(0x10c)](_0x5ab316,_0x58bd3c,_0x11541f){const _0x1e8e60=_0x39b6e2;this[_0x1e8e60(0x11d)][_0x1e8e60(0x10c)](_0x5ab316,_0x58bd3c,_0x11541f);}[_0x39b6e2(0x11f)](_0xf4dd00){const _0x320566=_0x39b6e2;this[_0x320566(0x11d)][_0x320566(0x10b)]=_0xf4dd00;}[_0x39b6e2(0x124)](_0x4556c4){const _0x406812=_0x39b6e2;this[_0x406812(0x11d)][_0x406812(0x136)]=_0x4556c4;}[_0x39b6e2(0x12b)](){const _0x93ae9a=_0x39b6e2;this[_0x93ae9a(0x11d)][_0x93ae9a(0x136)]='';}[_0x39b6e2(0x116)](_0x3d6bdc){const _0x395ecc=_0x39b6e2;this[_0x395ecc(0x11d)][_0x395ecc(0x10a)]=_0x3d6bdc;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2501(){const _0x5b89d3=['fetchConversations','filter','1MrznxY','3339184qlQeQK','5580xsfvus','updateItemPinned','6QiLQqg','removeItem','9yoDUxD','getConversations','items','1133cJNawO','splice','getDate','getItems','error','group','push','deleteConversation','loadItems','1955219unImXV','itemUpdated','827108VLoEQE','getFullYear','findIndex','itemsLoaded','fire','150116fvTfmm','connector','addItem','from','getItem','init','getResult','find','159570zfOZZB','getMonth','updateTitle','97764LzgUuO','294HpoMEJ','updateItemTitle','getTime','pinned','updateConversation','map','updatePinned','createdAt','execute','itemRemoved'];_0x2501=function(){return _0x5b89d3;};return _0x2501();}const _0x2611e3=_0x5e6c;(function(_0x1659fa,_0x1fb2f0){const _0x6c9b3e=_0x5e6c,_0x5871b4=_0x1659fa();while(!![]){try{const _0x1a1e9c=parseInt(_0x6c9b3e(0x15d))/0x1*(-parseInt(_0x6c9b3e(0x171))/0x2)+parseInt(_0x6c9b3e(0x161))/0x3*(-parseInt(_0x6c9b3e(0x176))/0x4)+parseInt(_0x6c9b3e(0x15f))/0x5*(parseInt(_0x6c9b3e(0x151))/0x6)+parseInt(_0x6c9b3e(0x16f))/0x7+-parseInt(_0x6c9b3e(0x15e))/0x8+parseInt(_0x6c9b3e(0x163))/0x9*(-parseInt(_0x6c9b3e(0x17e))/0xa)+parseInt(_0x6c9b3e(0x166))/0xb*(parseInt(_0x6c9b3e(0x150))/0xc);if(_0x1a1e9c===_0x1fb2f0)break;else _0x5871b4['push'](_0x5871b4['shift']());}catch(_0x26709b){_0x5871b4['push'](_0x5871b4['shift']());}}}(_0x2501,0x3d527));import{EmitterMixin as _0x416327}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x33a46a}from'./aichathistoryitem.js';function _0x5e6c(_0x3f4d0c,_0x28ee05){const _0x25018a=_0x2501();return _0x5e6c=function(_0x5e6cf6,_0x3c10f5){_0x5e6cf6=_0x5e6cf6-0x14e;let _0x10b449=_0x25018a[_0x5e6cf6];return _0x10b449;},_0x5e6c(_0x3f4d0c,_0x28ee05);}export class AIChatHistoryConversations extends _0x416327(){[_0x2611e3(0x165)]=[];[_0x2611e3(0x177)];[_0x2611e3(0x16b)];constructor({connector:_0xc3f5a1,group:_0x1843bb}){const _0x147613=_0x2611e3;super(),this[_0x147613(0x177)]=_0xc3f5a1,this[_0x147613(0x16b)]=_0x1843bb;}async[_0x2611e3(0x17b)](){const _0x2815c0=_0x2611e3;try{const _0x20dfe1=this[_0x2815c0(0x177)][_0x2815c0(0x15b)](this[_0x2815c0(0x16b)]),_0x14e0f6=await _0x20dfe1[_0x2815c0(0x164)]();this[_0x2815c0(0x16e)](_0x14e0f6);}catch(_0x200860){this[_0x2815c0(0x175)](_0x2815c0(0x16a),{'error':_0x200860,'operation':_0x2815c0(0x17b)});}}[_0x2611e3(0x178)](_0x37808d){const _0x245bce=_0x2611e3;this[_0x245bce(0x165)][_0x245bce(0x16c)](_0x37808d);}async[_0x2611e3(0x162)](_0x58d837){const _0x16f67e=_0x2611e3,_0x463932=this[_0x16f67e(0x165)][_0x16f67e(0x173)](_0x494381=>_0x494381['id']===_0x58d837);if(-0x1===_0x463932)return!0x1;try{return await this[_0x16f67e(0x177)][_0x16f67e(0x16d)](_0x58d837)[_0x16f67e(0x159)](),this[_0x16f67e(0x165)][_0x16f67e(0x167)](_0x463932,0x1),this[_0x16f67e(0x175)](_0x16f67e(0x15a),{'itemId':_0x58d837}),!0x0;}catch(_0x5ce890){return this[_0x16f67e(0x175)](_0x16f67e(0x16a),{'error':_0x5ce890,'operation':_0x16f67e(0x162),'itemId':_0x58d837}),!0x1;}}[_0x2611e3(0x17a)](_0xcfcd01){const _0x3ac9f2=_0x2611e3;return this[_0x3ac9f2(0x165)][_0x3ac9f2(0x17d)](_0x389f74=>_0x389f74['id']===_0xcfcd01);}async[_0x2611e3(0x152)](_0x9a9ca4,_0x364de2){const _0x207a91=_0x2611e3,_0x7f82d5=this[_0x207a91(0x17a)](_0x9a9ca4);if(!_0x7f82d5)return!0x1;try{return await this[_0x207a91(0x177)][_0x207a91(0x155)](_0x9a9ca4,{'title':_0x364de2})[_0x207a91(0x17c)](),_0x7f82d5[_0x207a91(0x14f)](_0x364de2),this[_0x207a91(0x175)](_0x207a91(0x170),{'itemId':_0x9a9ca4,'updates':{'title':_0x364de2}}),!0x0;}catch(_0x134cef){return this[_0x207a91(0x175)](_0x207a91(0x16a),{'error':_0x134cef,'operation':_0x207a91(0x152),'itemId':_0x9a9ca4}),!0x1;}}async[_0x2611e3(0x160)](_0x4c5818,_0x15ae37){const _0x5eb205=_0x2611e3,_0x159ce8=this[_0x5eb205(0x17a)](_0x4c5818);if(!_0x159ce8)return!0x1;try{return await this[_0x5eb205(0x177)][_0x5eb205(0x155)](_0x4c5818,{'pinned':_0x15ae37})[_0x5eb205(0x17c)](),_0x159ce8[_0x5eb205(0x157)](_0x15ae37),this[_0x5eb205(0x175)](_0x5eb205(0x170),{'itemId':_0x4c5818,'updates':{'pinned':_0x15ae37}}),!0x0;}catch(_0x2a9cdf){return this[_0x5eb205(0x175)](_0x5eb205(0x16a),{'error':_0x2a9cdf,'operation':_0x5eb205(0x160),'itemId':_0x4c5818}),!0x1;}}[_0x2611e3(0x16e)](_0x3d26f3){const _0x3ac01b=_0x2611e3;try{this[_0x3ac01b(0x165)]=[],_0x3d26f3[_0x3ac01b(0x156)](_0x4f9af1=>{const _0x276dbe=_0x3ac01b;this[_0x276dbe(0x178)](new _0x33a46a(_0x4f9af1));}),this[_0x3ac01b(0x175)](_0x3ac01b(0x174),{'items':[...this[_0x3ac01b(0x165)]]});}catch(_0x5a046a){this[_0x3ac01b(0x175)](_0x3ac01b(0x16a),{'error':_0x5a046a,'operation':_0x3ac01b(0x16e)});}}[_0x2611e3(0x169)](_0x3c2832={}){const _0x429d73=_0x2611e3,_0x471bdf=void 0x0!==_0x3c2832[_0x429d73(0x154)]&&_0x3c2832[_0x429d73(0x154)],_0x2ec994=_0x3c2832[_0x429d73(0x179)]?new Date(_0x3c2832[_0x429d73(0x179)][_0x429d73(0x172)](),_0x3c2832[_0x429d73(0x179)][_0x429d73(0x14e)](),_0x3c2832[_0x429d73(0x179)][_0x429d73(0x168)]()):null,_0x5bfd18=_0x3c2832['to']?new Date(_0x3c2832['to'][_0x429d73(0x172)](),_0x3c2832['to'][_0x429d73(0x14e)](),_0x3c2832['to'][_0x429d73(0x168)]()):null;return this[_0x429d73(0x165)][_0x429d73(0x15c)](_0x3790d4=>{const _0x54688c=_0x429d73;if(_0x3790d4[_0x54688c(0x154)]!==_0x471bdf)return!0x1;if(_0x5bfd18){const _0x5bd307=new Date(_0x3790d4[_0x54688c(0x158)][_0x54688c(0x172)](),_0x3790d4[_0x54688c(0x158)][_0x54688c(0x14e)](),_0x3790d4[_0x54688c(0x158)][_0x54688c(0x168)]());return _0x2ec994?_0x2ec994[_0x54688c(0x153)]()===_0x5bfd18[_0x54688c(0x153)]()?_0x5bd307[_0x54688c(0x153)]()===_0x2ec994[_0x54688c(0x153)]():_0x5bd307<_0x5bfd18&&_0x5bd307>=_0x2ec994:_0x5bd307<_0x5bfd18;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x378b5c=_0x451f;(function(_0xbb78b8,_0x46e639){var _0x2347ef=_0x451f,_0x40ec51=_0xbb78b8();while(!![]){try{var _0xd6d8a=-parseInt(_0x2347ef(0x1bd))/0x1+parseInt(_0x2347ef(0x1be))/0x2*(parseInt(_0x2347ef(0x1b6))/0x3)+-parseInt(_0x2347ef(0x1bf))/0x4*(parseInt(_0x2347ef(0x1ba))/0x5)+parseInt(_0x2347ef(0x1b9))/0x6*(parseInt(_0x2347ef(0x1b8))/0x7)+parseInt(_0x2347ef(0x1c3))/0x8+-parseInt(_0x2347ef(0x1b7))/0x9+parseInt(_0x2347ef(0x1c4))/0xa*(parseInt(_0x2347ef(0x1b5))/0xb);if(_0xd6d8a===_0x46e639)break;else _0x40ec51['push'](_0x40ec51['shift']());}catch(_0x1236d9){_0x40ec51['push'](_0x40ec51['shift']());}}}(_0x41da,0xe2699));import{ObservableMixin as _0x885bf8}from'ckeditor5/src/utils.js';import{escape as _0x16de5b}from'es-toolkit/compat';function _0x41da(){var _0x48e5c4=['4481464RXkAAE','180hGbWZW','pinned','createdAt','1192499uQhQcJ','3jCCVvm','7410663MJQxSH','9453941NwwZDY','6WXZXSk','17665NcbBRl','updateTitle','set','1088288FkRoOW','490638IRpQCZ','1436VAXBPN','title','updatedAt','updatePinned'];_0x41da=function(){return _0x48e5c4;};return _0x41da();}function _0x451f(_0x2b5a5e,_0x31cfc5){var _0x41da2c=_0x41da();return _0x451f=function(_0x451f25,_0x334620){_0x451f25=_0x451f25-0x1b5;var _0x43437a=_0x41da2c[_0x451f25];return _0x43437a;},_0x451f(_0x2b5a5e,_0x31cfc5);}export class AIChatHistoryItem extends _0x885bf8(){['id'];[_0x378b5c(0x1c6)];constructor({id:_0x5df23c,title:_0x9d7bc,createdAt:_0x4d9fe3,updatedAt:_0x1f147d,pinned:_0x215ce7}){var _0x50e462=_0x378b5c;super(),this['id']=_0x5df23c,this[_0x50e462(0x1c6)]=new Date(_0x4d9fe3),this[_0x50e462(0x1bc)](_0x50e462(0x1c0),_0x9d7bc),this[_0x50e462(0x1bc)](_0x50e462(0x1c1),_0x1f147d?new Date(_0x1f147d):null),this[_0x50e462(0x1bc)](_0x50e462(0x1c5),_0x215ce7||!0x1);}[_0x378b5c(0x1bb)](_0x567c44){var _0x474cef=_0x378b5c;this[_0x474cef(0x1bc)](_0x474cef(0x1c0),_0x16de5b(_0x567c44)),this[_0x474cef(0x1c1)]=new Date();}[_0x378b5c(0x1c2)](_0x1c3c4b){var _0xa4770e=_0x378b5c;this[_0xa4770e(0x1bc)](_0xa4770e(0x1c5),_0x1c3c4b),this[_0xa4770e(0x1c1)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x1f62b1=_0x3189;(function(_0x516f92,_0x5994f0){const _0x5b5d64=_0x3189,_0x4cf64a=_0x516f92();while(!![]){try{const _0x11f977=parseInt(_0x5b5d64(0x240))/0x1+parseInt(_0x5b5d64(0x1f3))/0x2+parseInt(_0x5b5d64(0x24e))/0x3+-parseInt(_0x5b5d64(0x229))/0x4*(-parseInt(_0x5b5d64(0x24f))/0x5)+-parseInt(_0x5b5d64(0x239))/0x6*(-parseInt(_0x5b5d64(0x22a))/0x7)+parseInt(_0x5b5d64(0x21a))/0x8*(parseInt(_0x5b5d64(0x23d))/0x9)+-parseInt(_0x5b5d64(0x250))/0xa;if(_0x11f977===_0x5994f0)break;else _0x4cf64a['push'](_0x4cf64a['shift']());}catch(_0x435406){_0x4cf64a['push'](_0x4cf64a['shift']());}}}(_0x4dad,0x5cde1));import{ListItemView as _0x1a092a,HighlightedTextView as _0x30897b,ButtonView as _0x1ac75f,ListView as _0x141d01,IconView as _0x31be68,createDropdown as _0x5d3aad,InputTextView as _0x420f37}from'ckeditor5/src/ui.js';function _0x3189(_0x2ed96a,_0x2f5f6d){const _0x4dad99=_0x4dad();return _0x3189=function(_0x3189a4,_0x111266){_0x3189a4=_0x3189a4-0x1ef;let _0x58f9b1=_0x4dad99[_0x3189a4];return _0x58f9b1;},_0x3189(_0x2ed96a,_0x2f5f6d);}function _0x4dad(){const _0x47ceb7=['showConfirm','tiny','actions','pinned','1895136OwBClT','770030WfqENM','12188630jeoSsF','_createSpinnerView','_createEditInputView','ck-confirm-view-submit','listitem','10180yDYpXP','execute','highlightText','isEdit','AI_CHAT_HISTORY_EDIT_NAME','selectConversation','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item--active','edit:cancel','ck-ai-chat-history__item-check-container','span','withText','string','ck-ai-loader','setTemplate','items','ck-ai-chat-history__item-date','ck-ai-chat-history__item-actions','isVisible','ck-ai-chat-history__item--edit','AI_CHAT_HISTORY_LOADING_RENAMING','setConversationPinned','addMany','loadingState','text','change:isEdit','bind','ck-ai-chat-history__item-check','LOADING_LABELS','ck-hidden','_commitEditInputValue','panelView','_createAcceptEditButtonView','AI_CHAT_HISTORY_CANCEL','AI_CHAT_HISTORY_LOADING_REMOVING','extendTemplate','ck-ai-chat-history__item-title','panelPosition','click','180408CtPjlA','createCollection','_createCancelEditButtonView','removeConversation','value','fire','updateLoadingState','AI_CHAT_HISTORY_LOADING_UNPINNING','locale','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','updateTitle','AI_CHAT_HISTORY_LOADING_PINNING','mainContent','AI_CHAT_HISTORY_REMOVE_CONFIRM','AI_CHAT_HISTORY_REMOVE','4YTgLmg','22141EPccWg','element','label','ck-confirm-view-cancel','add','ck-ai-chat-history__item-content','editConversationTitle','ck-ai-chat-history__item-main-content','_titleView','bindTemplate','children','isMatching','then','_createPinButtonView','_createMenuDropdownView','120ybTBYq','match','isOn','set','72aUDzMS','ck-ai-loader__text','clear','564772mpGpeV','key','Enter','focus','_createCheckView','ck-ai-chat-history__item','buttonView','div','ck-ai-chat-history__item-row','AI_CHAT_HISTORY_ACCEPT'];_0x4dad=function(){return _0x47ceb7;};return _0x4dad();}import{IconThreeHorizontalDots as _0x1f7d63,IconPin as _0x38a06a,IconCheck as _0x1935c3,IconCancel as _0x4a4766}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1c30d4,ConfirmMixin as _0x4ce26d}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x4ebca6}from'es-toolkit/compat';import{AISpinnerView as _0x3ea5cb}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x1c1daf}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4ce26d(_0x1a092a){['id'];static [_0x1f62b1(0x20f)]={'remove':_0x1f62b1(0x215),'rename':_0x1f62b1(0x207),'pin':_0x1f62b1(0x225),'unpin':_0x1f62b1(0x221)};[_0x1f62b1(0x24c)];[_0x1f62b1(0x226)];[_0x1f62b1(0x232)];constructor(_0x2da1da,_0x2679a8){const _0x33c9c4=_0x1f62b1;super(_0x2da1da);const _0x294f92=this[_0x33c9c4(0x233)];this[_0x33c9c4(0x23c)](_0x33c9c4(0x1f6),!0x1),this[_0x33c9c4(0x23c)](_0x33c9c4(0x205),!0x0),this[_0x33c9c4(0x23c)](_0x33c9c4(0x24d),!!_0x2679a8[_0x33c9c4(0x24d)]),this[_0x33c9c4(0x23c)](_0x33c9c4(0x20a),null),this['id']=_0x2679a8['id'];const {title:_0x8a05f0,createdAt:_0x30252b,active:_0x4840fd=!0x1}=_0x2679a8;this[_0x33c9c4(0x232)]=new _0x30897b(),this[_0x33c9c4(0x232)][_0x33c9c4(0x20b)]=_0x8a05f0,this[_0x33c9c4(0x232)][_0x33c9c4(0x216)]({'attributes':{'class':[_0x33c9c4(0x217)]}});const _0x38aead=this[_0x33c9c4(0x244)](),_0x16c130=this[_0x33c9c4(0x237)](_0x2da1da),_0x453cff=this[_0x33c9c4(0x238)](),_0x140113=this[_0x33c9c4(0x1f0)](_0x2da1da,_0x8a05f0),_0x3faebb=this[_0x33c9c4(0x213)](_0x2da1da,_0x140113),_0x57fa46=this[_0x33c9c4(0x21c)](_0x2da1da,_0x140113);this[_0x33c9c4(0x24c)]=this[_0x33c9c4(0x21b)](),this[_0x33c9c4(0x226)]=this[_0x33c9c4(0x21b)](),this[_0x33c9c4(0x226)][_0x33c9c4(0x22e)](this[_0x33c9c4(0x232)]),this[_0x33c9c4(0x24c)][_0x33c9c4(0x22e)](_0x16c130),this[_0x33c9c4(0x24c)][_0x33c9c4(0x22e)](_0x453cff),this['on'](_0x33c9c4(0x20c),(_0x1e723c,_0x1f1b2a,_0x5701a5)=>{const _0x764a9e=_0x33c9c4;this[_0x764a9e(0x24c)][_0x764a9e(0x23f)](),this[_0x764a9e(0x226)][_0x764a9e(0x23f)](),_0x5701a5?(this[_0x764a9e(0x24c)][_0x764a9e(0x22e)](_0x3faebb),this[_0x764a9e(0x24c)][_0x764a9e(0x22e)](_0x57fa46),this[_0x764a9e(0x226)][_0x764a9e(0x22e)](_0x140113),_0x140113[_0x764a9e(0x22b)][_0x764a9e(0x243)]()):(this[_0x764a9e(0x24c)][_0x764a9e(0x22e)](_0x16c130),this[_0x764a9e(0x24c)][_0x764a9e(0x22e)](_0x453cff),this[_0x764a9e(0x226)][_0x764a9e(0x22e)](this[_0x764a9e(0x232)]));}),this[_0x33c9c4(0x201)]({'tag':'li','attributes':{'class':[_0x33c9c4(0x245),_0x4840fd?_0x33c9c4(0x1fa):'',_0x294f92['if'](_0x33c9c4(0x205),_0x33c9c4(0x210),_0xcb3641=>!_0xcb3641),_0x294f92['if'](_0x33c9c4(0x1f6),_0x33c9c4(0x206))],'role':_0x33c9c4(0x1f2)},'children':[{'tag':_0x33c9c4(0x1fd),'attributes':{'class':[_0x33c9c4(0x1fc)]},'children':[{'tag':_0x33c9c4(0x247),'attributes':{'class':[_0x33c9c4(0x20e),_0x294f92['if'](_0x33c9c4(0x20a),_0x33c9c4(0x210),_0x5f39ae=>!!_0x5f39ae)]},'children':_0x4840fd?[_0x38aead]:[]},{'tag':_0x33c9c4(0x247),'attributes':{'class':[_0x33c9c4(0x200),_0x294f92['if'](_0x33c9c4(0x20a),_0x33c9c4(0x210),_0x346fa7=>!_0x346fa7)]},'children':[this[_0x33c9c4(0x1ef)]()]}]},{'tag':_0x33c9c4(0x247),'attributes':{'class':[_0x33c9c4(0x248)]},'children':[{'tag':_0x33c9c4(0x247),'attributes':{'class':[_0x33c9c4(0x22f)]},'on':{'click':this[_0x33c9c4(0x233)]['to'](_0x33c9c4(0x219))},'children':[{'tag':_0x33c9c4(0x247),'attributes':{'class':[_0x33c9c4(0x231)]},'children':[{'tag':_0x33c9c4(0x247),'attributes':{'class':[_0x33c9c4(0x217),_0x294f92['if'](_0x33c9c4(0x20a),_0x33c9c4(0x210),_0x1ee7e9=>!!_0x1ee7e9)]},'children':this[_0x33c9c4(0x226)]},{'tag':_0x33c9c4(0x247),'attributes':{'class':[_0x33c9c4(0x23e),_0x294f92['if'](_0x33c9c4(0x20a),_0x33c9c4(0x210),_0x398676=>!_0x398676)]},'children':[{'text':_0x294f92['to'](_0x33c9c4(0x20a),_0x3d004d=>_0x3d004d?_0x1c1daf(this[_0x33c9c4(0x222)],AIChatHistoryListItemView[_0x33c9c4(0x20f)][_0x3d004d]):'')}]}]},{'tag':_0x33c9c4(0x1fd),'attributes':{'class':[_0x33c9c4(0x203)]},'children':[_0x30252b]}]},{'tag':_0x33c9c4(0x247),'attributes':{'class':[_0x33c9c4(0x204)]},'children':this[_0x33c9c4(0x24c)]}]}]}),this['on'](_0x33c9c4(0x219),()=>{const _0x39ba77=_0x33c9c4;this[_0x39ba77(0x1f6)]||this[_0x39ba77(0x21f)](_0x39ba77(0x1f8),{'id':this['id']});});}[_0x1f62b1(0x224)](_0x330a29){const _0x40b8da=_0x1f62b1;this[_0x40b8da(0x232)][_0x40b8da(0x20b)]=_0x4ebca6(_0x330a29);}[_0x1f62b1(0x220)](_0x5b79c4,_0x554651){const _0x179513=_0x1f62b1;this[_0x179513(0x23c)](_0x179513(0x20a),_0x554651?_0x5b79c4:null);}[_0x1f62b1(0x244)](){const _0x2e9c62=_0x1f62b1,_0x4f0276=new _0x31be68();return _0x4f0276[_0x2e9c62(0x23c)]({'content':_0x1935c3}),_0x4f0276;}[_0x1f62b1(0x237)](_0x140a64){const _0x9e34b0=_0x1f62b1,_0x23dfc8=new _0x1ac75f(_0x140a64);return _0x23dfc8[_0x9e34b0(0x23c)]({'label':_0x1c1daf(_0x140a64,_0x9e34b0(0x1f9)),'icon':_0x38a06a,'withText':!0x1,'tooltip':!0x0}),_0x23dfc8[_0x9e34b0(0x20d)](_0x9e34b0(0x23b))['to'](this,_0x9e34b0(0x24d)),_0x23dfc8['on'](_0x9e34b0(0x1f4),()=>{const _0x561e36=_0x9e34b0,_0x5f2a21=!this[_0x561e36(0x24d)];this[_0x561e36(0x21f)](_0x561e36(0x208),{'id':this['id'],'pinned':_0x5f2a21});}),_0x23dfc8;}[_0x1f62b1(0x238)](){const _0x319bdc=_0x1f62b1,_0x29c932=_0x5d3aad(this[_0x319bdc(0x222)],_0x1c30d4),_0x4a0aac=_0x29c932[_0x319bdc(0x212)][_0x319bdc(0x234)];_0x29c932[_0x319bdc(0x246)][_0x319bdc(0x23c)]({'label':_0x1c1daf(this[_0x319bdc(0x222)],_0x319bdc(0x223)),'icon':_0x1f7d63}),_0x29c932[_0x319bdc(0x218)]='sw';const _0x46909c=new _0x1ac75f(this[_0x319bdc(0x222)]);_0x46909c[_0x319bdc(0x22c)]=_0x1c1daf(this[_0x319bdc(0x222)],_0x319bdc(0x1f7)),_0x46909c[_0x319bdc(0x1fe)]=!0x0,_0x46909c['on'](_0x319bdc(0x1f4),()=>{const _0x54245e=_0x319bdc;this[_0x54245e(0x1f6)]=!0x0;});const _0x19e08b=new _0x1ac75f(this[_0x319bdc(0x222)]);_0x19e08b[_0x319bdc(0x22c)]=_0x1c1daf(this[_0x319bdc(0x222)],_0x319bdc(0x228)),_0x19e08b[_0x319bdc(0x1fe)]=!0x0,_0x19e08b['on'](_0x319bdc(0x1f4),()=>{const _0xf99c0d=_0x319bdc;this[_0xf99c0d(0x24a)](_0x1c1daf(this[_0xf99c0d(0x222)],_0xf99c0d(0x227)),this[_0xf99c0d(0x22b)])[_0xf99c0d(0x236)](()=>{const _0x5245cb=_0xf99c0d;this[_0x5245cb(0x21f)](_0x5245cb(0x21d),{'id':this['id']});});});const _0x5b93ba=new _0x141d01(this[_0x319bdc(0x222)]),_0x35ae84=new _0x1a092a(this[_0x319bdc(0x222)]);_0x35ae84[_0x319bdc(0x234)][_0x319bdc(0x22e)](_0x46909c);const _0x5f255e=new _0x1a092a(this[_0x319bdc(0x222)]);return _0x5f255e[_0x319bdc(0x234)][_0x319bdc(0x22e)](_0x19e08b),_0x5b93ba[_0x319bdc(0x202)][_0x319bdc(0x209)]([_0x35ae84,_0x5f255e]),_0x4a0aac[_0x319bdc(0x22e)](_0x5b93ba),_0x29c932;}[_0x1f62b1(0x1f0)](_0x3202c3,_0x8b28c3){const _0x25f35f=_0x1f62b1,_0x53a05d=new _0x420f37(_0x3202c3),_0x4c141f=_0x53a05d[_0x25f35f(0x233)];return _0x53a05d[_0x25f35f(0x21e)]=_0x8b28c3,_0x53a05d[_0x25f35f(0x216)]({'on':{'keydown':_0x4c141f['to'](_0x187926=>{const _0x4a3c0d=_0x25f35f;_0x4a3c0d(0x242)==_0x187926[_0x4a3c0d(0x241)]&&this[_0x4a3c0d(0x211)](_0x53a05d);})}}),_0x53a05d;}[_0x1f62b1(0x213)](_0x1fa28e,_0x366ea4){const _0x3c5986=_0x1f62b1,_0x470d79=new _0x1ac75f(_0x1fa28e);return _0x470d79[_0x3c5986(0x23c)]({'icon':_0x1935c3,'withText':!0x1,'tooltip':_0x1c1daf(_0x1fa28e,_0x3c5986(0x249))}),_0x470d79[_0x3c5986(0x216)]({'attributes':{'class':[_0x3c5986(0x1f1)]}}),_0x470d79['on'](_0x3c5986(0x1f4),()=>{const _0x21b882=_0x3c5986;this[_0x21b882(0x211)](_0x366ea4);}),_0x470d79;}[_0x1f62b1(0x211)](_0x3f09b5){const _0x315b6b=_0x1f62b1,_0x43120f=_0x3f09b5[_0x315b6b(0x22b)][_0x315b6b(0x21e)]||'';this[_0x315b6b(0x232)][_0x315b6b(0x20b)]=_0x43120f,this[_0x315b6b(0x1f6)]=!0x1,this[_0x315b6b(0x21f)](_0x315b6b(0x230),{'id':this['id'],'title':_0x43120f});}[_0x1f62b1(0x21c)](_0x38cd12,_0xe2f225){const _0x4c93bf=_0x1f62b1,_0x37bfc8=new _0x1ac75f(_0x38cd12);return _0x37bfc8[_0x4c93bf(0x23c)]({'icon':_0x4a4766,'withText':!0x1,'tooltip':_0x1c1daf(_0x38cd12,_0x4c93bf(0x214))}),_0x37bfc8[_0x4c93bf(0x216)]({'attributes':{'class':[_0x4c93bf(0x22d)]}}),_0x37bfc8['on'](_0x4c93bf(0x1f4),()=>{const _0x570404=_0x4c93bf;this[_0x570404(0x1f6)]=!0x1,_0xe2f225[_0x570404(0x21e)]=this[_0x570404(0x232)][_0x570404(0x20b)]||'',this[_0x570404(0x21f)](_0x570404(0x1fb));}),_0x37bfc8;}[_0x1f62b1(0x1ef)](){const _0x541b84=_0x1f62b1,_0x51871f=new _0x3ea5cb(_0x541b84(0x24b));return _0x51871f[_0x541b84(0x205)]=!0x0,_0x51871f;}[_0x1f62b1(0x235)](_0x333b80){const _0x4cd927=_0x1f62b1;return this[_0x4cd927(0x232)]&&_0x4cd927(0x1ff)==typeof this[_0x4cd927(0x232)][_0x4cd927(0x20b)]&&this[_0x4cd927(0x232)][_0x4cd927(0x20b)][_0x4cd927(0x23a)](_0x333b80)?{'title':!0x0}:null;}[_0x1f62b1(0x1f5)](_0x434290){const _0x16a147=_0x1f62b1;this[_0x16a147(0x232)][_0x16a147(0x1f5)](_0x434290);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2993f6=_0x5bb2;(function(_0x222834,_0x444fa7){const _0x32baec=_0x5bb2,_0x491f62=_0x222834();while(!![]){try{const _0x40a9a1=-parseInt(_0x32baec(0x141))/0x1+parseInt(_0x32baec(0x13c))/0x2+-parseInt(_0x32baec(0x14e))/0x3+parseInt(_0x32baec(0x142))/0x4*(parseInt(_0x32baec(0x136))/0x5)+-parseInt(_0x32baec(0x14f))/0x6*(parseInt(_0x32baec(0x13e))/0x7)+-parseInt(_0x32baec(0x153))/0x8+parseInt(_0x32baec(0x13f))/0x9;if(_0x40a9a1===_0x444fa7)break;else _0x491f62['push'](_0x491f62['shift']());}catch(_0x2d5904){_0x491f62['push'](_0x491f62['shift']());}}}(_0x4459,0x4cacf));function _0x5bb2(_0xd52560,_0xa65a77){const _0x445966=_0x4459();return _0x5bb2=function(_0x5bb25a,_0x52ba17){_0x5bb25a=_0x5bb25a-0x135;let _0x18c23f=_0x445966[_0x5bb25a];return _0x18c23f;},_0x5bb2(_0xd52560,_0xa65a77);}function _0x4459(){const _0x245acf=['removeItem','remove','splice','ck-ai-chat-history__section','items','ck-ai-chat-history__section-title','filter','length','bindTemplate','getItem','647922HheMTn','6nwFtLT','find','ck-hidden','_itemsListView','2372112bQMAGI','setTemplate','isMatching','1325HZnwIC','indexOf','addMany','isVisible','highlightText','itemsViews','371646YmJhRJ','set','422989Cbxjxv','8387100aIFAbc','div','323760cinzpD','1404ZCpWcn','title'];_0x4459=function(){return _0x245acf;};return _0x4459();}import{ListItemView as _0x2fc6a9,View as _0xb3394a,ListView as _0x5ec721}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x2fc6a9{[_0x2993f6(0x143)];[_0x2993f6(0x13b)];[_0x2993f6(0x152)];constructor(_0x1be79f,{title:_0x4b7564,items:_0x3bc107}){const _0x4f409c=_0x2993f6;super(_0x1be79f);const _0x33a87b=this[_0x4f409c(0x14c)];this[_0x4f409c(0x13d)](_0x4f409c(0x139),!0x0),this[_0x4f409c(0x143)]=_0x4b7564,this[_0x4f409c(0x13b)]=_0x3bc107;const _0x38c917=new _0xb3394a(_0x1be79f);_0x38c917[_0x4f409c(0x154)]({'tag':_0x4f409c(0x140),'attributes':{'class':[_0x4f409c(0x149)]},'children':[this[_0x4f409c(0x143)]]}),this[_0x4f409c(0x152)]=new _0x5ec721(_0x1be79f),this[_0x4f409c(0x152)][_0x4f409c(0x148)][_0x4f409c(0x138)](this[_0x4f409c(0x13b)]),this[_0x4f409c(0x154)]({'tag':'li','attributes':{'class':[_0x4f409c(0x147),_0x33a87b['if'](_0x4f409c(0x139),_0x4f409c(0x151),_0x475318=>!_0x475318)]},'children':[_0x38c917,this[_0x4f409c(0x152)]]});}[_0x2993f6(0x14a)](_0x31355c){const _0x5f5b06=_0x2993f6,_0x5444fe=this[_0x5f5b06(0x13b)][_0x5f5b06(0x14b)];let _0x46d9b8=0x0;for(const _0x52e644 of this[_0x5f5b06(0x13b)]){if(_0x31355c){const _0x55d8fb=_0x52e644[_0x5f5b06(0x135)](_0x31355c);_0x52e644[_0x5f5b06(0x139)]=!!_0x55d8fb,_0x52e644[_0x5f5b06(0x13a)](_0x31355c);}else _0x52e644[_0x5f5b06(0x139)]=!0x0,_0x52e644[_0x5f5b06(0x13a)](null);_0x52e644[_0x5f5b06(0x139)]&&_0x46d9b8++;}return this[_0x5f5b06(0x139)]=_0x46d9b8>0x0,{'resultsCount':_0x46d9b8,'totalItemsCount':_0x5444fe};}[_0x2993f6(0x14d)](_0x2283ba){const _0x11accf=_0x2993f6;return this[_0x11accf(0x13b)][_0x11accf(0x150)](_0x451377=>_0x451377['id']===_0x2283ba);}[_0x2993f6(0x144)](_0xafb349){const _0x9a6201=_0x2993f6,_0x122c7d=this[_0x9a6201(0x13b)][_0x9a6201(0x137)](_0xafb349);-0x1!==_0x122c7d&&(this[_0x9a6201(0x13b)][_0x9a6201(0x146)](_0x122c7d,0x1),this[_0x9a6201(0x152)][_0x9a6201(0x148)][_0x9a6201(0x145)](_0xafb349));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x30f04d=_0x1ece;function _0x877c(){const _0x1ae7e6=['ck-ai-chat-history__sections','5972zVLqpS','497325QreXSt','sections','6647382HIAlsN','items','extendTemplate','5396097BMjsAN','8kFzXFz','390hEWnzN','1275273FrHtRc','472869srfyvD','841912LkBONZ','filter','30YHQhAI','addMany'];_0x877c=function(){return _0x1ae7e6;};return _0x877c();}(function(_0xb7781c,_0x321085){const _0xa04ff6=_0x1ece,_0x9c3090=_0xb7781c();while(!![]){try{const _0x4e72f5=parseInt(_0xa04ff6(0x124))/0x1+parseInt(_0xa04ff6(0x126))/0x2+-parseInt(_0xa04ff6(0x123))/0x3*(parseInt(_0xa04ff6(0x11b))/0x4)+-parseInt(_0xa04ff6(0x11c))/0x5+-parseInt(_0xa04ff6(0x11e))/0x6+-parseInt(_0xa04ff6(0x121))/0x7*(-parseInt(_0xa04ff6(0x122))/0x8)+-parseInt(_0xa04ff6(0x125))/0x9*(parseInt(_0xa04ff6(0x118))/0xa);if(_0x4e72f5===_0x321085)break;else _0x9c3090['push'](_0x9c3090['shift']());}catch(_0x44c78b){_0x9c3090['push'](_0x9c3090['shift']());}}}(_0x877c,0xddaf9));function _0x1ece(_0x32f1f1,_0x4e7def){const _0x877cdf=_0x877c();return _0x1ece=function(_0x1ece3e,_0xa39f02){_0x1ece3e=_0x1ece3e-0x117;let _0x45d742=_0x877cdf[_0x1ece3e];return _0x45d742;},_0x1ece(_0x32f1f1,_0x4e7def);}import{ListView as _0x23a193}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x23a193{[_0x30f04d(0x11d)];constructor(_0x4144d5,_0x4b2fb9){const _0x4c8ebf=_0x30f04d;super(_0x4144d5),this[_0x4c8ebf(0x11d)]=_0x4b2fb9,this[_0x4c8ebf(0x11f)][_0x4c8ebf(0x119)](this[_0x4c8ebf(0x11d)]),this[_0x4c8ebf(0x120)]({'attributes':{'class':[_0x4c8ebf(0x11a)]}});}[_0x30f04d(0x117)](_0xd73e6){const _0x21b572=_0x30f04d;let _0x3ba7cd=0x0,_0x1d0186=0x0;for(const _0x4289ae of this[_0x21b572(0x11d)]){const {resultsCount:_0x21090a,totalItemsCount:_0x31a1b}=_0x4289ae[_0x21b572(0x117)](_0xd73e6);_0x3ba7cd+=_0x21090a,_0x1d0186+=_0x31a1b;}return{'resultsCount':_0x3ba7cd,'totalItemsCount':_0x1d0186};}}
|