@ckeditor/ckeditor5-ai 47.2.0-alpha.1 → 47.2.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.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/lang/translations/ar.po +34 -34
- package/lang/translations/bg.po +26 -26
- package/lang/translations/bn.po +26 -26
- package/lang/translations/ca.po +26 -26
- package/lang/translations/cs.po +28 -28
- package/lang/translations/da.po +26 -26
- package/lang/translations/de.po +26 -26
- package/lang/translations/el.po +26 -26
- package/lang/translations/es.po +26 -26
- package/lang/translations/et.po +26 -26
- package/lang/translations/fi.po +26 -26
- package/lang/translations/fr.po +26 -26
- package/lang/translations/he.po +26 -26
- package/lang/translations/hi.po +26 -26
- package/lang/translations/hu.po +26 -26
- package/lang/translations/id.po +24 -24
- package/lang/translations/it.po +26 -26
- package/lang/translations/ja.po +24 -24
- package/lang/translations/ko.po +24 -24
- package/lang/translations/lt.po +28 -28
- package/lang/translations/lv.po +28 -28
- package/lang/translations/ms.po +24 -24
- package/lang/translations/nl.po +26 -26
- package/lang/translations/no.po +26 -26
- package/lang/translations/pl.po +28 -28
- package/lang/translations/pt-br.po +26 -26
- package/lang/translations/pt.po +26 -26
- package/lang/translations/ro.po +28 -28
- package/lang/translations/ru.po +28 -28
- package/lang/translations/sk.po +28 -28
- package/lang/translations/sr.po +28 -28
- package/lang/translations/sv.po +26 -26
- package/lang/translations/th.po +24 -24
- package/lang/translations/tr.po +26 -26
- package/lang/translations/uk.po +28 -28
- package/lang/translations/vi.po +24 -24
- package/lang/translations/zh-cn.po +24 -24
- package/lang/translations/zh.po +24 -24
- 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/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +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/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/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/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x417d10=_0x326e;(function(_0xb5ca31,_0x636f4b){const _0x17ba94=_0x326e,_0x3a0318=_0xb5ca31();while(!![]){try{const _0x2ceca3=-parseInt(_0x17ba94(0x221))/0x1+parseInt(_0x17ba94(0x1d6))/0x2+parseInt(_0x17ba94(0x21a))/0x3+parseInt(_0x17ba94(0x1d8))/0x4+parseInt(_0x17ba94(0x1ce))/0x5*(-parseInt(_0x17ba94(0x20b))/0x6)+parseInt(_0x17ba94(0x1e6))/0x7+parseInt(_0x17ba94(0x1cc))/0x8*(-parseInt(_0x17ba94(0x1d5))/0x9);if(_0x2ceca3===_0x636f4b)break;else _0x3a0318['push'](_0x3a0318['shift']());}catch(_0x4dda6a){_0x3a0318['push'](_0x3a0318['shift']());}}}(_0x2fb4,0x544c8));import{KeystrokeHandler as _0x38b63e}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x22bd38,BodyCollection as _0x1c91d9,ButtonView as _0x4e1203,clickOutsideHandler as _0x573c8b,ListItemButtonView as _0x114659,ListItemView as _0x19302a,ListView as _0x10b117,SplitButtonView as _0x49bee1,UIModel as _0x1243ee,View as _0x34a2d2}from'ckeditor5/src/ui.js';import{IconCheck as _0x2648f9,IconAddComment as _0x18dff3,IconDocumentWithLoupe as _0x41959e}from'ckeditor5/src/icons.js';import{getTranslation as _0x1481d2}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x417d10(0x1db),_0x417d10(0x1c9),_0x417d10(0x1f3)];export class AIChatFeedSuggestionItemActionsView extends _0x34a2d2{[_0x417d10(0x1dc)];[_0x417d10(0x1d0)];[_0x417d10(0x20f)];[_0x417d10(0x210)];[_0x417d10(0x212)];[_0x417d10(0x225)]=0x1;[_0x417d10(0x202)];[_0x417d10(0x220)];[_0x417d10(0x1c8)]=!0x0;constructor(_0x125406,_0x5afc79){const _0x1c7a34=_0x417d10;super(_0x125406),this[_0x1c7a34(0x202)]=_0x5afc79||[...AI_REPLY_ACTIONS],this[_0x1c7a34(0x220)]=[...this[_0x1c7a34(0x202)]];const _0x40a33e=this[_0x1c7a34(0x204)];this[_0x1c7a34(0x1ed)](_0x1c7a34(0x1df),!0x0),this[_0x1c7a34(0x1ed)](_0x1c7a34(0x1cd),!0x0),this[_0x1c7a34(0x1ed)](_0x1c7a34(0x201),!0x1),this[_0x1c7a34(0x20f)]=new _0x1243ee({'label':Hn(_0x1c7a34(0x1db),_0x125406,this[_0x1c7a34(0x225)]),'icon':_0x2648f9,'withText':!0x0,'type':_0x1c7a34(0x21b),'actionName':_0x1c7a34(0x1db)}),this[_0x1c7a34(0x210)]=new _0x1243ee({'label':Hn(_0x1c7a34(0x1f3),_0x125406,this[_0x1c7a34(0x225)]),'icon':_0x41959e,'withText':!0x0,'type':_0x1c7a34(0x21b),'actionName':_0x1c7a34(0x1f3)}),this[_0x1c7a34(0x212)]=new _0x1243ee({'label':Hn(_0x1c7a34(0x1c9),_0x125406,this[_0x1c7a34(0x225)]),'icon':_0x18dff3,'withText':!0x0,'type':_0x1c7a34(0x21b),'actionName':_0x1c7a34(0x1c9)}),this[_0x1c7a34(0x1dc)]=this[_0x1c7a34(0x1ca)](_0x125406),this[_0x1c7a34(0x1d0)]=this[_0x1c7a34(0x1e8)](),this[_0x1c7a34(0x1dc)]&&this[_0x1c7a34(0x1d0)][_0x1c7a34(0x1eb)](this[_0x1c7a34(0x1dc)]),this[_0x1c7a34(0x1cb)]({'tag':_0x1c7a34(0x21c),'attributes':{'class':['ck',_0x1c7a34(0x1d3),_0x40a33e['if'](_0x1c7a34(0x1cd),_0x1c7a34(0x200),_0xa47817=>!_0xa47817)]},'children':this[_0x1c7a34(0x1d0)]}),this['on'](_0x1c7a34(0x1f2),()=>{const _0x435b10=_0x1c7a34;this[_0x435b10(0x220)]=this[_0x435b10(0x201)]?this[_0x435b10(0x202)][_0x435b10(0x1f5)](_0x2f984c=>_0x435b10(0x1db)!==_0x2f984c):[...this[_0x435b10(0x202)]],this[_0x435b10(0x206)](_0x125406);});}[_0x417d10(0x206)](_0x364539){const _0x41f7ef=_0x417d10;this[_0x41f7ef(0x1dc)]&&this[_0x41f7ef(0x1d0)][_0x41f7ef(0x209)](this[_0x41f7ef(0x1dc)])&&(this[_0x41f7ef(0x1d0)][_0x41f7ef(0x1de)](this[_0x41f7ef(0x1dc)]),this[_0x41f7ef(0x1dc)][_0x41f7ef(0x1f1)]()),this[_0x41f7ef(0x1dc)]=this[_0x41f7ef(0x1ca)](_0x364539),this[_0x41f7ef(0x1dc)]&&this[_0x41f7ef(0x1d0)][_0x41f7ef(0x1eb)](this[_0x41f7ef(0x1dc)]);}[_0x417d10(0x1ca)](_0x4b6bc4){const _0x35dd63=_0x417d10;if(0x0==this[_0x35dd63(0x220)][_0x35dd63(0x1e5)])return null;const _0x327437=0x1===this[_0x35dd63(0x220)][_0x35dd63(0x1e5)]?this[_0x35dd63(0x1f8)](_0x4b6bc4):this[_0x35dd63(0x20a)](_0x4b6bc4),_0x42e977=this[_0x35dd63(0x1c8)]?'':_0x35dd63(0x1fa);_0x327437[_0x35dd63(0x1ed)]({'label':Hn(this[_0x35dd63(0x220)][0x0],_0x4b6bc4,this[_0x35dd63(0x225)]),'tooltip':Ln(this[_0x35dd63(0x220)][0x0],_0x4b6bc4,this[_0x35dd63(0x225)]),'withText':!0x0,'class':_0x35dd63(0x207)+_0x42e977});for(const _0x528608 of this[_0x35dd63(0x220)])_0x327437['on'](_0x528608,()=>{const _0x462a50=_0x35dd63;this[_0x462a50(0x211)](_0x528608);});return this[_0x35dd63(0x1c8)]=!0x1,_0x327437;}[_0x417d10(0x1f8)](_0x30e35b){const _0x1483b5=_0x417d10,_0x33e88f=new _0x4e1203(_0x30e35b);return _0x33e88f[_0x1483b5(0x1ed)]({'class':_0x1483b5(0x1fe),'withText':!0x0}),_0x33e88f['on'](_0x1483b5(0x1f7),()=>{const _0x82ba2e=_0x1483b5;_0x33e88f[_0x82ba2e(0x211)](this[_0x82ba2e(0x220)][0x0]);}),_0x33e88f;}[_0x417d10(0x20a)](_0x227ffa){const _0x3744e8=_0x417d10,_0xa4bed1=new Gn(_0x227ffa,{'listItemModels':this[_0x3744e8(0x220)][_0x3744e8(0x1f6)](_0x3255b2=>{const _0x241a5b=_0x3744e8;switch(_0x3255b2){case _0x241a5b(0x1db):return this[_0x241a5b(0x20f)];case _0x241a5b(0x1f3):return this[_0x241a5b(0x210)];case _0x241a5b(0x1c9):return this[_0x241a5b(0x212)];}})});return _0xa4bed1[_0x3744e8(0x1ed)]({'label':Hn(this[_0x3744e8(0x220)][0x0],_0x227ffa,this[_0x3744e8(0x225)]),'tooltip':Ln(this[_0x3744e8(0x220)][0x0],_0x227ffa,this[_0x3744e8(0x225)]),'withText':!0x0,'class':_0x3744e8(0x1d3),'balloonPanelClass':_0x3744e8(0x1d9)}),_0xa4bed1[_0x3744e8(0x1d1)](_0x3744e8(0x1df))['to'](this),_0xa4bed1;}[_0x417d10(0x21e)](_0xaa6e3c){const _0x3a8ebd=_0x417d10,_0x2e3c8e=this[_0x3a8ebd(0x1ea)];this[_0x3a8ebd(0x225)]=_0xaa6e3c||this[_0x3a8ebd(0x225)],this[_0x3a8ebd(0x1dc)][_0x3a8ebd(0x1ed)]({'label':Hn(this[_0x3a8ebd(0x220)][0x0],_0x2e3c8e,this[_0x3a8ebd(0x225)]),'tooltip':Ln(this[_0x3a8ebd(0x220)][0x0],_0x2e3c8e,this[_0x3a8ebd(0x225)])}),this[_0x3a8ebd(0x20f)][_0x3a8ebd(0x1e4)]=Hn(_0x3a8ebd(0x1db),_0x2e3c8e,this[_0x3a8ebd(0x225)]),this[_0x3a8ebd(0x210)][_0x3a8ebd(0x1e4)]=Hn(_0x3a8ebd(0x1f3),_0x2e3c8e,this[_0x3a8ebd(0x225)]),this[_0x3a8ebd(0x212)][_0x3a8ebd(0x1e4)]=Hn(_0x3a8ebd(0x1c9),_0x2e3c8e,this[_0x3a8ebd(0x225)]);}}function _0x326e(_0x595826,_0x3e03ad){const _0x2fb4a6=_0x2fb4();return _0x326e=function(_0x326e1d,_0x81078){_0x326e1d=_0x326e1d-0x1c8;let _0xafa38=_0x2fb4a6[_0x326e1d];return _0xafa38;},_0x326e(_0x595826,_0x3e03ad);}function _0x2fb4(){const _0x959460=['pin','tooltip','source','label','length','4193238ONFhjr','arrowView','createCollection','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','locale','add','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','set','slice','listItemModels','bodyCollection','destroy','change:isTrackChangesOn','showChangeInText','hide','filter','map','execute','_createActionsButton','esc','ck-ai-chat__feed__ai-suggestion__actions--no-animation','arrowless','_setUpList','balloonPanelClass','ck-ai-button-primary','ltr','ck-hidden','isTrackChangesOn','_dropdownOriginalConfig','attachToDom','bindTemplate','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','_updateDropdownActions','ck-ai-chat__feed__ai-suggestion__actions\x20','uiLanguageDirection','has','_createActionsDropdown','66yXqKYU','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','content','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','applySuggestionModel','showChangeInTextModel','fire','insertSuggestionModel','actionName','element','width','unbind','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','open','_setUpKeystrokes','231024XaTyel','button','div','left','updateLabels','listView','_dropdownCurrentConfig','186610SyKgdc','listenTo','class','balloonPanelView','_partsCount','keystrokeHandler','_firstRender','insertSuggestion','_createActionsDropdownOrButton','setTemplate','578048NPJynq','isVisible','263230KOtQyE','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','children','bind','delegate','ck-ai-chat__feed__ai-suggestion__actions','focus','72WlHtnE','1292098IdrsjF','keys','1467844fwJHPC','ck-ai-chat__feed__ai-suggestion__actions__balloon','bottom','applySuggestion','actionsButton','detachFromDom','remove','isEnabled','items'];_0x2fb4=function(){return _0x959460;};return _0x2fb4();}class Gn extends _0x49bee1{[_0x417d10(0x1f0)];[_0x417d10(0x224)];[_0x417d10(0x21f)];[_0x417d10(0x226)];constructor(_0x21638e,_0x32f9d1){const _0x2b1320=_0x417d10;super(_0x21638e),this[_0x2b1320(0x224)]=new _0x22bd38(this[_0x2b1320(0x1ea)]),this[_0x2b1320(0x1f0)]=new _0x1c91d9(this[_0x2b1320(0x1ea)]),this[_0x2b1320(0x1f0)][_0x2b1320(0x203)](),this[_0x2b1320(0x1ed)](_0x2b1320(0x1fd),''),this[_0x2b1320(0x224)][_0x2b1320(0x1d1)](_0x2b1320(0x223))['to'](this,_0x2b1320(0x1fd)),this[_0x2b1320(0x21f)]=this[_0x2b1320(0x1fc)](_0x32f9d1[_0x2b1320(0x1ef)][_0x2b1320(0x1ee)](0x1)),this[_0x2b1320(0x1f0)][_0x2b1320(0x1eb)](this[_0x2b1320(0x224)]),this[_0x2b1320(0x224)][_0x2b1320(0x20d)][_0x2b1320(0x1eb)](this[_0x2b1320(0x21f)]),this[_0x2b1320(0x1e7)][_0x2b1320(0x216)](_0x2b1320(0x1e2)),this[_0x2b1320(0x1e7)][_0x2b1320(0x1ed)](_0x2b1320(0x1e2),_0x1481d2(this[_0x2b1320(0x1ea)],_0x2b1320(0x1cf))),this[_0x2b1320(0x219)](),this['on'](_0x2b1320(0x1f7),()=>{const _0x9d945a=_0x2b1320,_0x40ef00=_0x32f9d1[_0x9d945a(0x1ef)][0x0][_0x9d945a(0x213)];this[_0x9d945a(0x211)](_0x40ef00),this[_0x9d945a(0x224)][_0x9d945a(0x1f4)](),this[_0x9d945a(0x1e7)][_0x9d945a(0x1d4)]();}),this['on'](_0x2b1320(0x218),()=>{const _0x3b47c3=_0x2b1320;this[_0x3b47c3(0x224)][_0x3b47c3(0x1cd)]?(this[_0x3b47c3(0x224)][_0x3b47c3(0x1f4)](),this[_0x3b47c3(0x1e7)][_0x3b47c3(0x1d4)]()):(this[_0x3b47c3(0x224)][_0x3b47c3(0x1e1)]({'target':this[_0x3b47c3(0x214)],'positions':[_0x3b47c3(0x1ff)===this[_0x3b47c3(0x1ea)][_0x3b47c3(0x208)]?yn:Pn]}),this[_0x3b47c3(0x21f)][_0x3b47c3(0x1d4)]());}),_0x573c8b({'emitter':this[_0x2b1320(0x224)],'callback':()=>{const _0x4da2b0=_0x2b1320;this[_0x4da2b0(0x224)][_0x4da2b0(0x1f4)]();},'activator':()=>this[_0x2b1320(0x224)][_0x2b1320(0x1cd)],'contextElements':()=>[this[_0x2b1320(0x214)],this[_0x2b1320(0x224)][_0x2b1320(0x214)]]});}[_0x417d10(0x1fc)](_0x19844c){const _0x4cabdc=_0x417d10,_0x5a782f=this[_0x4cabdc(0x1ea)],_0x34e5dc=new _0x10b117(_0x5a782f);for(const _0x3d7d89 of _0x19844c){const _0x46d141=new _0x19302a(_0x5a782f),_0x4dabc0=new _0x114659(_0x5a782f);_0x4dabc0[_0x4cabdc(0x1d1)](...Object[_0x4cabdc(0x1d7)](_0x3d7d89))['to'](_0x3d7d89),_0x4dabc0[_0x4cabdc(0x1d2)](_0x4cabdc(0x1f7))['to'](_0x34e5dc),_0x46d141[_0x4cabdc(0x1d0)][_0x4cabdc(0x1eb)](_0x4dabc0),_0x34e5dc[_0x4cabdc(0x1e0)][_0x4cabdc(0x1eb)](_0x46d141);}return _0x34e5dc[_0x4cabdc(0x1e0)][_0x4cabdc(0x1d2)](_0x4cabdc(0x1f7))['to'](this),_0x34e5dc['on'](_0x4cabdc(0x1f7),_0x20e1e5=>{const _0x42ca51=_0x4cabdc,_0x4ddd04=_0x20e1e5[_0x42ca51(0x1e3)];this[_0x42ca51(0x211)](_0x4ddd04[_0x42ca51(0x213)]),this[_0x42ca51(0x224)][_0x42ca51(0x1f4)](),this[_0x42ca51(0x1e7)][_0x42ca51(0x1d4)]();}),_0x34e5dc;}[_0x417d10(0x219)](){const _0x5b65e1=_0x417d10;this[_0x5b65e1(0x226)]=new _0x38b63e(),this[_0x5b65e1(0x226)][_0x5b65e1(0x222)](this[_0x5b65e1(0x224)][_0x5b65e1(0x214)]),this[_0x5b65e1(0x226)][_0x5b65e1(0x1ed)](_0x5b65e1(0x1f9),(_0x5c3f2a,_0x4dd56b)=>{const _0xe4eced=_0x5b65e1;this[_0xe4eced(0x224)][_0xe4eced(0x1f4)](),this[_0xe4eced(0x1e7)][_0xe4eced(0x1d4)](),_0x4dd56b();});}[_0x417d10(0x1f1)](){const _0x3d7144=_0x417d10;super[_0x3d7144(0x1f1)](),this[_0x3d7144(0x226)][_0x3d7144(0x1f1)](),this[_0x3d7144(0x224)][_0x3d7144(0x1f1)](),this[_0x3d7144(0x1f0)][_0x3d7144(0x1dd)]();}}function yn(_0x41623a){const _0x53a82a=_0x417d10;return{'top':_0x41623a[_0x53a82a(0x1da)],'left':_0x41623a[_0x53a82a(0x21d)],'name':_0x53a82a(0x1fb),'config':{'withArrow':!0x1}};}function Pn(_0x5bb167,_0x2332af){const _0x56bbcd=_0x417d10;return{'top':_0x5bb167[_0x56bbcd(0x1da)],'left':_0x5bb167[_0x56bbcd(0x21d)]-(_0x2332af[_0x56bbcd(0x215)]-_0x5bb167[_0x56bbcd(0x215)]),'name':_0x56bbcd(0x1fb),'config':{'withArrow':!0x1}};}function Hn(_0x2f11dc,_0x33cd0e,_0x1ee8e0){const _0x1b28f2=_0x417d10;switch(_0x2f11dc){case _0x1b28f2(0x1db):return _0x1481d2(_0x33cd0e,_0x1b28f2(0x1e9),_0x1ee8e0);case _0x1b28f2(0x1f3):return _0x1481d2(_0x33cd0e,_0x1b28f2(0x20e),_0x1ee8e0);case _0x1b28f2(0x1c9):return _0x1481d2(_0x33cd0e,_0x1b28f2(0x217),_0x1ee8e0);}}function Ln(_0xb28f52,_0x5a86d3,_0x52b33c){const _0x39811e=_0x417d10;switch(_0xb28f52){case _0x39811e(0x1db):return _0x1481d2(_0x5a86d3,_0x39811e(0x1ec),_0x52b33c);case _0x39811e(0x1f3):return _0x1481d2(_0x5a86d3,_0x39811e(0x20c),_0x52b33c);case _0x39811e(0x1c9):return _0x1481d2(_0x5a86d3,_0x39811e(0x205),_0x52b33c);}}
|
|
23
|
+
function _0x4dbc(_0x509155,_0x3a9f37){const _0x657f87=_0x657f();return _0x4dbc=function(_0x4dbcb2,_0x55caf5){_0x4dbcb2=_0x4dbcb2-0xc6;let _0x33144e=_0x657f87[_0x4dbcb2];return _0x33144e;},_0x4dbc(_0x509155,_0x3a9f37);}const _0xca73ca=_0x4dbc;(function(_0x34ce56,_0x1ad7a9){const _0x48b209=_0x4dbc,_0x246fe4=_0x34ce56();while(!![]){try{const _0x2bc21b=parseInt(_0x48b209(0xd5))/0x1*(-parseInt(_0x48b209(0xfe))/0x2)+parseInt(_0x48b209(0x121))/0x3*(parseInt(_0x48b209(0xe4))/0x4)+parseInt(_0x48b209(0x10a))/0x5+-parseInt(_0x48b209(0xc7))/0x6+parseInt(_0x48b209(0xd9))/0x7+-parseInt(_0x48b209(0xe1))/0x8+-parseInt(_0x48b209(0x111))/0x9;if(_0x2bc21b===_0x1ad7a9)break;else _0x246fe4['push'](_0x246fe4['shift']());}catch(_0x2097ed){_0x246fe4['push'](_0x246fe4['shift']());}}}(_0x657f,0xd305b));import{KeystrokeHandler as _0x423d75}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x2272ad,BodyCollection as _0x323ab5,ButtonView as _0x5aa251,clickOutsideHandler as _0x22b060,ListItemButtonView as _0x4258ed,ListItemView as _0x57735f,ListView as _0x5b61cb,SplitButtonView as _0x27d063,UIModel as _0x26da5d,View as _0x475ef8}from'ckeditor5/src/ui.js';import{IconCheck as _0x4a23c1,IconAddComment as _0x43ef1e,IconDocumentWithLoupe as _0x5e5ddf}from'ckeditor5/src/icons.js';import{getTranslation as _0x3fe1c5}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0xca73ca(0xcc),_0xca73ca(0xd7),_0xca73ca(0xe8)];export class AIChatFeedSuggestionItemActionsView extends _0x475ef8{[_0xca73ca(0xf1)];[_0xca73ca(0xdc)];[_0xca73ca(0x11c)];[_0xca73ca(0xeb)];[_0xca73ca(0x118)];[_0xca73ca(0x11e)]=0x1;[_0xca73ca(0xe9)];[_0xca73ca(0xe3)];[_0xca73ca(0xed)]=!0x0;constructor(_0x44a822,_0xed4d3){const _0x3a8845=_0xca73ca;super(_0x44a822),this[_0x3a8845(0xe9)]=_0xed4d3||[...AI_REPLY_ACTIONS],this[_0x3a8845(0xe3)]=[...this[_0x3a8845(0xe9)]];const _0x503abd=this[_0x3a8845(0xca)];this[_0x3a8845(0xd8)](_0x3a8845(0x101),!0x0),this[_0x3a8845(0xd8)](_0x3a8845(0xc8),!0x0),this[_0x3a8845(0xd8)](_0x3a8845(0xd0),!0x1),this[_0x3a8845(0x11c)]=new _0x26da5d({'label':Hn(_0x3a8845(0xcc),_0x44a822,this[_0x3a8845(0x11e)]),'icon':_0x4a23c1,'withText':!0x0,'type':_0x3a8845(0xe5),'actionName':_0x3a8845(0xcc)}),this[_0x3a8845(0xeb)]=new _0x26da5d({'label':Hn(_0x3a8845(0xe8),_0x44a822,this[_0x3a8845(0x11e)]),'icon':_0x5e5ddf,'withText':!0x0,'type':_0x3a8845(0xe5),'actionName':_0x3a8845(0xe8)}),this[_0x3a8845(0x118)]=new _0x26da5d({'label':Hn(_0x3a8845(0xd7),_0x44a822,this[_0x3a8845(0x11e)]),'icon':_0x43ef1e,'withText':!0x0,'type':_0x3a8845(0xe5),'actionName':_0x3a8845(0xd7)}),this[_0x3a8845(0xf1)]=this[_0x3a8845(0x10b)](_0x44a822),this[_0x3a8845(0xdc)]=this[_0x3a8845(0xc6)](),this[_0x3a8845(0xf1)]&&this[_0x3a8845(0xdc)][_0x3a8845(0xd1)](this[_0x3a8845(0xf1)]),this[_0x3a8845(0xcb)]({'tag':_0x3a8845(0x106),'attributes':{'class':['ck',_0x3a8845(0x104),_0x503abd['if'](_0x3a8845(0xc8),_0x3a8845(0x109),_0x20cc0f=>!_0x20cc0f)]},'children':this[_0x3a8845(0xdc)]}),this['on'](_0x3a8845(0xe0),()=>{const _0x192b7a=_0x3a8845;this[_0x192b7a(0xe3)]=this[_0x192b7a(0xd0)]?this[_0x192b7a(0xe9)][_0x192b7a(0x102)](_0x4f5ef1=>_0x192b7a(0xcc)!==_0x4f5ef1):[...this[_0x192b7a(0xe9)]],this[_0x192b7a(0x11f)](_0x44a822);});}[_0xca73ca(0x11f)](_0x37ffe5){const _0x3f37de=_0xca73ca;this[_0x3f37de(0xf1)]&&this[_0x3f37de(0xdc)][_0x3f37de(0xd3)](this[_0x3f37de(0xf1)])&&(this[_0x3f37de(0xdc)][_0x3f37de(0xcf)](this[_0x3f37de(0xf1)]),this[_0x3f37de(0xf1)][_0x3f37de(0xd4)]()),this[_0x3f37de(0xf1)]=this[_0x3f37de(0x10b)](_0x37ffe5),this[_0x3f37de(0xf1)]&&this[_0x3f37de(0xdc)][_0x3f37de(0xd1)](this[_0x3f37de(0xf1)]);}[_0xca73ca(0x10b)](_0x47670d){const _0x51e881=_0xca73ca;if(0x0==this[_0x51e881(0xe3)][_0x51e881(0x115)])return null;const _0x50efc6=0x1===this[_0x51e881(0xe3)][_0x51e881(0x115)]?this[_0x51e881(0xce)](_0x47670d):this[_0x51e881(0x10e)](_0x47670d),_0x1d4d61=this[_0x51e881(0xed)]?'':_0x51e881(0x110);_0x50efc6[_0x51e881(0xd8)]({'label':Hn(this[_0x51e881(0xe3)][0x0],_0x47670d,this[_0x51e881(0x11e)]),'tooltip':Ln(this[_0x51e881(0xe3)][0x0],_0x47670d,this[_0x51e881(0x11e)]),'withText':!0x0,'class':_0x51e881(0xea)+_0x1d4d61});for(const _0x3ba810 of this[_0x51e881(0xe3)])_0x50efc6['on'](_0x3ba810,()=>{const _0x61b37b=_0x51e881;this[_0x61b37b(0x114)](_0x3ba810);});return this[_0x51e881(0xed)]=!0x1,_0x50efc6;}[_0xca73ca(0xce)](_0x15272d){const _0x23f299=_0xca73ca,_0x1cc357=new _0x5aa251(_0x15272d);return _0x1cc357[_0x23f299(0xd8)]({'class':_0x23f299(0x113),'withText':!0x0}),_0x1cc357['on'](_0x23f299(0xc9),()=>{const _0x17c478=_0x23f299;_0x1cc357[_0x17c478(0x114)](this[_0x17c478(0xe3)][0x0]);}),_0x1cc357;}[_0xca73ca(0x10e)](_0x36bd19){const _0x1d781a=_0xca73ca,_0x5c53e=new Gn(_0x36bd19,{'listItemModels':this[_0x1d781a(0xe3)][_0x1d781a(0xf9)](_0x38ae72=>{const _0x1286e6=_0x1d781a;switch(_0x38ae72){case _0x1286e6(0xcc):return this[_0x1286e6(0x11c)];case _0x1286e6(0xe8):return this[_0x1286e6(0xeb)];case _0x1286e6(0xd7):return this[_0x1286e6(0x118)];}})});return _0x5c53e[_0x1d781a(0xd8)]({'label':Hn(this[_0x1d781a(0xe3)][0x0],_0x36bd19,this[_0x1d781a(0x11e)]),'tooltip':Ln(this[_0x1d781a(0xe3)][0x0],_0x36bd19,this[_0x1d781a(0x11e)]),'withText':!0x0,'class':_0x1d781a(0x104),'balloonPanelClass':_0x1d781a(0xde)}),_0x5c53e[_0x1d781a(0xee)](_0x1d781a(0x101))['to'](this),_0x5c53e;}[_0xca73ca(0xe2)](_0x8d5d10){const _0x333859=_0xca73ca,_0x320c03=this[_0x333859(0xe7)];this[_0x333859(0x11e)]=_0x8d5d10||this[_0x333859(0x11e)],this[_0x333859(0xf1)][_0x333859(0xd8)]({'label':Hn(this[_0x333859(0xe3)][0x0],_0x320c03,this[_0x333859(0x11e)]),'tooltip':Ln(this[_0x333859(0xe3)][0x0],_0x320c03,this[_0x333859(0x11e)])}),this[_0x333859(0x11c)][_0x333859(0xfd)]=Hn(_0x333859(0xcc),_0x320c03,this[_0x333859(0x11e)]),this[_0x333859(0xeb)][_0x333859(0xfd)]=Hn(_0x333859(0xe8),_0x320c03,this[_0x333859(0x11e)]),this[_0x333859(0x118)][_0x333859(0xfd)]=Hn(_0x333859(0xd7),_0x320c03,this[_0x333859(0x11e)]);}}class Gn extends _0x27d063{[_0xca73ca(0xfc)];[_0xca73ca(0xf4)];[_0xca73ca(0xcd)];[_0xca73ca(0x11a)];constructor(_0x59074d,_0xe55a61){const _0x216e20=_0xca73ca;super(_0x59074d),this[_0x216e20(0xf4)]=new _0x2272ad(this[_0x216e20(0xe7)]),this[_0x216e20(0xfc)]=new _0x323ab5(this[_0x216e20(0xe7)]),this[_0x216e20(0xfc)][_0x216e20(0xff)](),this[_0x216e20(0xd8)](_0x216e20(0xf7),''),this[_0x216e20(0xf4)][_0x216e20(0xee)](_0x216e20(0x124))['to'](this,_0x216e20(0xf7)),this[_0x216e20(0xcd)]=this[_0x216e20(0xda)](_0xe55a61[_0x216e20(0x11d)][_0x216e20(0xf8)](0x1)),this[_0x216e20(0xfc)][_0x216e20(0xd1)](this[_0x216e20(0xf4)]),this[_0x216e20(0xf4)][_0x216e20(0xf5)][_0x216e20(0xd1)](this[_0x216e20(0xcd)]),this[_0x216e20(0xec)][_0x216e20(0x100)](_0x216e20(0x107)),this[_0x216e20(0xec)][_0x216e20(0xd8)](_0x216e20(0x107),_0x3fe1c5(this[_0x216e20(0xe7)],_0x216e20(0xe6))),this[_0x216e20(0x112)](),this['on'](_0x216e20(0xc9),()=>{const _0x2d534b=_0x216e20,_0x21b35e=_0xe55a61[_0x2d534b(0x11d)][0x0][_0x2d534b(0xef)];this[_0x2d534b(0x114)](_0x21b35e),this[_0x2d534b(0xf4)][_0x2d534b(0xf2)](),this[_0x2d534b(0xec)][_0x2d534b(0x122)]();}),this['on'](_0x216e20(0x108),()=>{const _0x46039b=_0x216e20;this[_0x46039b(0xf4)][_0x46039b(0xc8)]?(this[_0x46039b(0xf4)][_0x46039b(0xf2)](),this[_0x46039b(0xec)][_0x46039b(0x122)]()):(this[_0x46039b(0xf4)][_0x46039b(0xfb)]({'target':this[_0x46039b(0x103)],'positions':[_0x46039b(0xf0)===this[_0x46039b(0xe7)][_0x46039b(0x105)]?yn:Pn]}),this[_0x46039b(0xcd)][_0x46039b(0x122)]());}),_0x22b060({'emitter':this[_0x216e20(0xf4)],'callback':()=>{const _0x3263d4=_0x216e20;this[_0x3263d4(0xf4)][_0x3263d4(0xf2)]();},'activator':()=>this[_0x216e20(0xf4)][_0x216e20(0xc8)],'contextElements':()=>[this[_0x216e20(0x103)],this[_0x216e20(0xf4)][_0x216e20(0x103)]]});}[_0xca73ca(0xda)](_0x3ad97c){const _0x3a7b4a=_0xca73ca,_0x22a56f=this[_0x3a7b4a(0xe7)],_0x23bf26=new _0x5b61cb(_0x22a56f);for(const _0x29401e of _0x3ad97c){const _0x4e2aaa=new _0x57735f(_0x22a56f),_0x4b5128=new _0x4258ed(_0x22a56f);_0x4b5128[_0x3a7b4a(0xee)](...Object[_0x3a7b4a(0xd2)](_0x29401e))['to'](_0x29401e),_0x4b5128[_0x3a7b4a(0xf6)](_0x3a7b4a(0xc9))['to'](_0x23bf26),_0x4e2aaa[_0x3a7b4a(0xdc)][_0x3a7b4a(0xd1)](_0x4b5128),_0x23bf26[_0x3a7b4a(0xf3)][_0x3a7b4a(0xd1)](_0x4e2aaa);}return _0x23bf26[_0x3a7b4a(0xf3)][_0x3a7b4a(0xf6)](_0x3a7b4a(0xc9))['to'](this),_0x23bf26['on'](_0x3a7b4a(0xc9),_0x37802c=>{const _0x6b0aec=_0x3a7b4a,_0x25586f=_0x37802c[_0x6b0aec(0xfa)];this[_0x6b0aec(0x114)](_0x25586f[_0x6b0aec(0xef)]),this[_0x6b0aec(0xf4)][_0x6b0aec(0xf2)](),this[_0x6b0aec(0xec)][_0x6b0aec(0x122)]();}),_0x23bf26;}[_0xca73ca(0x112)](){const _0x3912e6=_0xca73ca;this[_0x3912e6(0x11a)]=new _0x423d75(),this[_0x3912e6(0x11a)][_0x3912e6(0x11b)](this[_0x3912e6(0xf4)][_0x3912e6(0x103)]),this[_0x3912e6(0x11a)][_0x3912e6(0xd8)](_0x3912e6(0x10f),(_0x32972c,_0x1afbe8)=>{const _0x1b128d=_0x3912e6;this[_0x1b128d(0xf4)][_0x1b128d(0xf2)](),this[_0x1b128d(0xec)][_0x1b128d(0x122)](),_0x1afbe8();});}[_0xca73ca(0xd4)](){const _0x3445c1=_0xca73ca;super[_0x3445c1(0xd4)](),this[_0x3445c1(0x11a)][_0x3445c1(0xd4)](),this[_0x3445c1(0xf4)][_0x3445c1(0xd4)](),this[_0x3445c1(0xfc)][_0x3445c1(0xdb)]();}}function _0x657f(){const _0x241120=['AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','class','createCollection','4715778uigfuC','isVisible','execute','bindTemplate','setTemplate','applySuggestion','listView','_createActionsButton','remove','isTrackChangesOn','add','keys','has','destroy','1jjfFSQ','bottom','insertSuggestion','set','2114672dCfesG','_setUpList','detachFromDom','children','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','ck-ai-chat__feed__ai-suggestion__actions__balloon','width','change:isTrackChangesOn','2362816OEPjdK','updateLabels','_dropdownCurrentConfig','4kSIqjr','button','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','locale','showChangeInText','_dropdownOriginalConfig','ck-ai-chat__feed__ai-suggestion__actions\x20','showChangeInTextModel','arrowView','_firstRender','bind','actionName','ltr','actionsButton','hide','items','balloonPanelView','content','delegate','balloonPanelClass','slice','map','source','pin','bodyCollection','label','77854dmOYrk','attachToDom','unbind','isEnabled','filter','element','ck-ai-chat__feed__ai-suggestion__actions','uiLanguageDirection','div','tooltip','open','ck-hidden','5250370qNklOv','_createActionsDropdownOrButton','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','left','_createActionsDropdown','esc','ck-ai-chat__feed__ai-suggestion__actions--no-animation','9695871bVyKXc','_setUpKeystrokes','ck-ai-button-primary','fire','length','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','arrowless','insertSuggestionModel','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','keystrokeHandler','listenTo','applySuggestionModel','listItemModels','_partsCount','_updateDropdownActions','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','5129214rOhBdo','focus'];_0x657f=function(){return _0x241120;};return _0x657f();}function yn(_0x399440){const _0x176270=_0xca73ca;return{'top':_0x399440[_0x176270(0xd6)],'left':_0x399440[_0x176270(0x10d)],'name':_0x176270(0x117),'config':{'withArrow':!0x1}};}function Pn(_0x4ab3df,_0x49cf87){const _0x3bfcd2=_0xca73ca;return{'top':_0x4ab3df[_0x3bfcd2(0xd6)],'left':_0x4ab3df[_0x3bfcd2(0x10d)]-(_0x49cf87[_0x3bfcd2(0xdf)]-_0x4ab3df[_0x3bfcd2(0xdf)]),'name':_0x3bfcd2(0x117),'config':{'withArrow':!0x1}};}function Hn(_0xee851d,_0x162ff7,_0x38820f){const _0x18b628=_0xca73ca;switch(_0xee851d){case _0x18b628(0xcc):return _0x3fe1c5(_0x162ff7,_0x18b628(0x10c),_0x38820f);case _0x18b628(0xe8):return _0x3fe1c5(_0x162ff7,_0x18b628(0x116),_0x38820f);case _0x18b628(0xd7):return _0x3fe1c5(_0x162ff7,_0x18b628(0x119),_0x38820f);}}function Ln(_0x18571b,_0x5eaf8e,_0x37afb1){const _0x3b9879=_0xca73ca;switch(_0x18571b){case _0x3b9879(0xcc):return _0x3fe1c5(_0x5eaf8e,_0x3b9879(0x120),_0x37afb1);case _0x3b9879(0xe8):return _0x3fe1c5(_0x5eaf8e,_0x3b9879(0xdd),_0x37afb1);case _0x3b9879(0xd7):return _0x3fe1c5(_0x5eaf8e,_0x3b9879(0x123),_0x37afb1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x44d8(){var _0x6cb891=['areActionsDisabled','isVisible','48Aqlffv','availableActions','extendTemplate','updateLabels','toggleSuggestionDisplayMode','812319reUJrP','bind','markAsDone','952bmqEhL','set','rejectSuggestion','1720122cDWOwK','showDiff','addMany','1gvasfW','mouseOverSuggestion','actionsView','16107620aPSZWo','374490wAJQDg','20874436xmcGZa','838220XrTNgj','containerView','bodyView','7sMbWRy','isTrackChangesOn','children','hasPendingParts','hasNonEmptyParts','options','updateContent','showChangeInText','updateSources','isEnabled','like','insertSuggestion','getPartView','ck-ai-chat__feed__ai-suggestion','mouseLeaveSuggestion','fire','updatePartState','partsCount','7731FoeDBA','applySuggestion','dislike'];_0x44d8=function(){return _0x6cb891;};return _0x44d8();}function _0x4084(_0x257374,_0x3fe55c){var _0x44d872=_0x44d8();return _0x4084=function(_0x408420,_0x4c0ea5){_0x408420=_0x408420-0x7a;var _0x33f834=_0x44d872[_0x408420];return _0x33f834;},_0x4084(_0x257374,_0x3fe55c);}var _0x7b043=_0x4084;(function(_0x420346,_0x53d6e2){var _0x564474=_0x4084,_0x3e16c6=_0x420346();while(!![]){try{var _0x228819=-parseInt(_0x564474(0x8f))/0x1*(parseInt(_0x564474(0x95))/0x2)+parseInt(_0x564474(0x86))/0x3+parseInt(_0x564474(0x81))/0x4*(parseInt(_0x564474(0x93))/0x5)+-parseInt(_0x564474(0x8c))/0x6*(parseInt(_0x564474(0x98))/0x7)+-parseInt(_0x564474(0x89))/0x8*(-parseInt(_0x564474(0x7c))/0x9)+-parseInt(_0x564474(0x92))/0xa+parseInt(_0x564474(0x94))/0xb;if(_0x228819===_0x53d6e2)break;else _0x3e16c6['push'](_0x3e16c6['shift']());}catch(_0x3564cc){_0x3e16c6['push'](_0x3e16c6['shift']());}}}(_0x44d8,0xd0397));import{AIChatFeedItemView as _0x188a31}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x3d0b1d}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x5d1635}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x188a31{[_0x7b043(0x96)];[_0x7b043(0x91)];constructor(_0x5b059c,_0x13e07b){var _0x465bc3=_0x7b043;super(_0x13e07b),this[_0x465bc3(0x8a)](_0x465bc3(0x99),!0x1),this[_0x465bc3(0x96)]=new _0x3d0b1d(_0x5b059c,{'showDiff':_0x13e07b[_0x465bc3(0x8d)],'areActionsDisabled':_0x13e07b[_0x465bc3(0x7f)],'availableActions':_0x13e07b[_0x465bc3(0x82)]}),this[_0x465bc3(0x96)]['on'](_0x465bc3(0x85),(_0x758113,_0x1d205c)=>{var _0x4c45f2=_0x465bc3;this[_0x4c45f2(0xa7)](_0x4c45f2(0x85),{'replyId':this[_0x4c45f2(0x9d)]['id'],'showDiff':_0x1d205c[_0x4c45f2(0x8d)]});}),this[_0x465bc3(0x96)]['on'](_0x465bc3(0xa2),()=>{var _0x15d58f=_0x465bc3;this[_0x15d58f(0xa7)](_0x15d58f(0xa2),{'replyId':this[_0x15d58f(0x9d)]['id']});}),this[_0x465bc3(0x96)]['on'](_0x465bc3(0x7e),()=>{var _0x412c69=_0x465bc3;this[_0x412c69(0xa7)](_0x412c69(0x7e),{'replyId':this[_0x412c69(0x9d)]['id']});}),this[_0x465bc3(0x96)]['on'](_0x465bc3(0x9f),(_0xe75d3a,{index:_0x303de7})=>{var _0xa0b47a=_0x465bc3;this[_0xa0b47a(0xa7)](_0xa0b47a(0x9f),{'replyId':this[_0xa0b47a(0x9d)]['id'],'partIndex':_0x303de7});}),this[_0x465bc3(0x96)]['on'](_0x465bc3(0xa3),(_0x3f5afa,{index:_0x1215b2})=>{var _0x698c59=_0x465bc3;this[_0x698c59(0xa7)](_0x698c59(0xa3),{'replyId':this[_0x698c59(0x9d)]['id'],'partIndex':_0x1215b2});}),this[_0x465bc3(0x96)]['on'](_0x465bc3(0x8b),(_0x2fdf7a,{index:_0x2a6b07})=>{var _0x1230d0=_0x465bc3;this[_0x1230d0(0xa7)](_0x1230d0(0x8b),{'replyId':this[_0x1230d0(0x9d)]['id'],'partIndex':_0x2a6b07});}),this[_0x465bc3(0x96)]['on'](_0x465bc3(0x90),(_0x57d6fd,{index:_0x3463fc})=>{var _0x465693=_0x465bc3;this[_0x465693(0xa7)](_0x465693(0x90),{'replyId':this[_0x465693(0x9d)]['id'],'partIndex':_0x3463fc});}),this[_0x465bc3(0x96)]['on'](_0x465bc3(0xa6),(_0x50c920,{index:_0x204ae2})=>{var _0x5d951d=_0x465bc3;this[_0x5d951d(0xa7)](_0x5d951d(0xa6),{'replyId':this[_0x5d951d(0x9d)]['id'],'partIndex':_0x204ae2});}),this[_0x465bc3(0x91)]=new _0x5d1635(_0x5b059c,this[_0x465bc3(0x9d)][_0x465bc3(0x82)]),this[_0x465bc3(0x91)][_0x465bc3(0x87)](_0x465bc3(0x99))['to'](this,_0x465bc3(0x99)),this[_0x465bc3(0x91)]['on'](_0x465bc3(0x9f),()=>{var _0xaf737d=_0x465bc3;this[_0xaf737d(0xa7)](_0xaf737d(0x9f),{'replyId':this[_0xaf737d(0x9d)]['id']});}),this[_0x465bc3(0x91)]['on'](_0x465bc3(0xa3),()=>{var _0x5c4149=_0x465bc3;this[_0x5c4149(0xa7)](_0x5c4149(0xa3),{'replyId':this[_0x5c4149(0x9d)]['id']});}),this[_0x465bc3(0x91)]['on'](_0x465bc3(0x7d),()=>{var _0xe738c9=_0x465bc3;this[_0xe738c9(0xa7)](_0xe738c9(0x7d),{'replyId':this[_0xe738c9(0x9d)]['id']});}),_0x13e07b[_0x465bc3(0x7f)]?this[_0x465bc3(0x91)][_0x465bc3(0xa1)]=!0x1:this[_0x465bc3(0x91)][_0x465bc3(0x87)](_0x465bc3(0xa1))['to'](this[_0x465bc3(0x96)][_0x465bc3(0x97)],_0x465bc3(0x9b)),this[_0x465bc3(0x9a)][_0x465bc3(0x8e)]([this[_0x465bc3(0x96)],this[_0x465bc3(0x91)]]),this[_0x465bc3(0x83)]({'attributes':{'class':[_0x465bc3(0xa5)]}});}async[_0x7b043(0x9e)](_0x4ca01e){var _0x272550=_0x7b043;await this[_0x272550(0x96)][_0x272550(0x9e)](_0x4ca01e),this[_0x272550(0x91)][_0x272550(0x84)](this[_0x272550(0x96)][_0x272550(0x97)][_0x272550(0x7b)]);}[_0x7b043(0x7a)](_0x546568,_0x12a553){var _0x3ebb24=_0x7b043;this[_0x3ebb24(0x96)][_0x3ebb24(0x97)][_0x3ebb24(0x7a)](_0x546568,_0x12a553);}[_0x7b043(0xa0)](_0x23d843){var _0x199aa2=_0x7b043;this[_0x199aa2(0x96)][_0x199aa2(0xa0)](_0x23d843);}[_0x7b043(0xa4)](_0x44093a){var _0x360831=_0x7b043;return this[_0x360831(0x96)][_0x360831(0x97)][_0x360831(0xa4)](_0x44093a);}[_0x7b043(0x88)](){var _0x4178ee=_0x7b043;super[_0x4178ee(0x88)](),this[_0x4178ee(0x96)][_0x4178ee(0x88)](),this[_0x4178ee(0x91)][_0x4178ee(0x80)]=this[_0x4178ee(0x96)][_0x4178ee(0x97)][_0x4178ee(0x9c)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x47024c=_0xe00b;(function(_0x2c05d9,_0x34d8d0){var _0xed7559=_0xe00b,_0x4589cd=_0x2c05d9();while(!![]){try{var _0x127b93=parseInt(_0xed7559(0x1cf))/0x1*(-parseInt(_0xed7559(0x1c3))/0x2)+parseInt(_0xed7559(0x1d5))/0x3*(parseInt(_0xed7559(0x1db))/0x4)+parseInt(_0xed7559(0x1e3))/0x5*(-parseInt(_0xed7559(0x1da))/0x6)+-parseInt(_0xed7559(0x1c7))/0x7+-parseInt(_0xed7559(0x1c5))/0x8*(-parseInt(_0xed7559(0x1d2))/0x9)+parseInt(_0xed7559(0x1d1))/0xa+-parseInt(_0xed7559(0x1e0))/0xb*(parseInt(_0xed7559(0x1e2))/0xc);if(_0x127b93===_0x34d8d0)break;else _0x4589cd['push'](_0x4589cd['shift']());}catch(_0x34f2a7){_0x4589cd['push'](_0x4589cd['shift']());}}}(_0x38e8,0x6f211));function _0x38e8(){var _0xb1634d=['initialContent','render','add','402721KkoEEl','_contextChipsView','72bBtTLc','5IfWECN','hidden','length','_createMessageContentView','809194KuZKOc','filter','1960VfTcVz','ck-ai-chat__feed__user-message','85232dXkuGz','_createContextChipsView','markAsDone','ck-ai-chat__feed__context-chips','_bodyCollection','contextItems','_locale','div','2UfnrZh','extendTemplate','7514300tnPNCN','3006yHNrTx','children','options','2066652rKxZuP','element','innerHTML','ck-ai-chat__feed__message-content','_messageContentView','155538xAuCec','4fyPGRO','setTemplate'];_0x38e8=function(){return _0xb1634d;};return _0x38e8();}import{AIChatFeedItemView as _0x468160}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x11eb4d}from'./aichatfeedcontextchipsview.js';import{View as _0xfc53b6}from'ckeditor5/src/ui.js';function _0xe00b(_0x659de6,_0x48ab7b){var _0x38e824=_0x38e8();return _0xe00b=function(_0xe00bd0,_0x59d0e4){_0xe00bd0=_0xe00bd0-0x1c2;var _0xe6c8b7=_0x38e824[_0xe00bd0];return _0xe6c8b7;},_0xe00b(_0x659de6,_0x48ab7b);}export class AIChatFeedUserMessageItemView extends _0x468160{[_0x47024c(0x1e1)]=null;[_0x47024c(0x1cd)];[_0x47024c(0x1cb)];[_0x47024c(0x1d9)];constructor(_0x399ea7,_0xefdd47,_0x2ce771){var _0x731c74=_0x47024c;super(_0xefdd47),this[_0x731c74(0x1cd)]=_0x399ea7,this[_0x731c74(0x1cb)]=_0x2ce771,this[_0x731c74(0x1c8)](),this[_0x731c74(0x1c2)](),this[_0x731c74(0x1d0)]({'attributes':{'class':[_0x731c74(0x1c6)]}});}[_0x47024c(0x1c8)](){var _0x3db8fb=_0x47024c;this[_0x3db8fb(0x1d4)][_0x3db8fb(0x1cc)]&&this[_0x3db8fb(0x1d4)][_0x3db8fb(0x1cc)][_0x3db8fb(0x1e5)]>0x0&&(this[_0x3db8fb(0x1e1)]=new _0x11eb4d(this[_0x3db8fb(0x1cd)],this[_0x3db8fb(0x1d4)][_0x3db8fb(0x1cc)][_0x3db8fb(0x1c4)](_0x1723a6=>!_0x1723a6[_0x3db8fb(0x1e4)]),this[_0x3db8fb(0x1cb)]),this[_0x3db8fb(0x1e1)][_0x3db8fb(0x1d0)]({'attributes':{'class':_0x3db8fb(0x1ca)}}),this[_0x3db8fb(0x1d3)][_0x3db8fb(0x1df)](this[_0x3db8fb(0x1e1)]));}[_0x47024c(0x1c2)](){var _0x56dd9d=_0x47024c;this[_0x56dd9d(0x1d9)]=new _0xfc53b6(this[_0x56dd9d(0x1cd)]),this[_0x56dd9d(0x1d9)][_0x56dd9d(0x1dc)]({'tag':_0x56dd9d(0x1ce),'attributes':{'class':_0x56dd9d(0x1d8)}}),this[_0x56dd9d(0x1d3)][_0x56dd9d(0x1df)](this[_0x56dd9d(0x1d9)]);}[_0x47024c(0x1de)](){var _0x32c923=_0x47024c;super[_0x32c923(0x1de)](),this[_0x32c923(0x1d9)][_0x32c923(0x1d6)][_0x32c923(0x1d7)]=this[_0x32c923(0x1d4)][_0x32c923(0x1dd)],this[_0x32c923(0x1c9)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc3cfd5=_0x5939;(function(_0x5ec77f,_0x2e2f39){const _0x5e4507=_0x5939,_0x152825=_0x5ec77f();while(!![]){try{const _0x21a163=-parseInt(_0x5e4507(0x96))/0x1+parseInt(_0x5e4507(0xa6))/0x2*(parseInt(_0x5e4507(0x9f))/0x3)+parseInt(_0x5e4507(0xa0))/0x4*(-parseInt(_0x5e4507(0x93))/0x5)+-parseInt(_0x5e4507(0xa3))/0x6+-parseInt(_0x5e4507(0xa8))/0x7*(parseInt(_0x5e4507(0x9b))/0x8)+-parseInt(_0x5e4507(0xa9))/0x9+parseInt(_0x5e4507(0x9d))/0xa;if(_0x21a163===_0x2e2f39)break;else _0x152825['push'](_0x152825['shift']());}catch(_0x2e717e){_0x152825['push'](_0x152825['shift']());}}}(_0x3908,0x31446));function _0x3908(){const _0x2ae3c6=['40780ZCszpG','addDocumentToContext','resizeTabs','45188awLpvi','selectModel','toggleWebSearch','startConversation','sendUserMessage','8RKpeVI','addFileToContext','3957640QhCNBT','addResourceToContext','916863RXylLk','8VnnxpM','addUrlToContext','loadSourceResources','219894rrEHjy','removeContextItem','toggleReasoning','2BlTBeU','abortPromptStream','2104193tLWUjd','907551ikabJv'];_0x3908=function(){return _0x2ae3c6;};return _0x3908();}function _0x5939(_0x5afb11,_0x27a0a3){const _0x3908f9=_0x3908();return _0x5939=function(_0x5939d9,_0x3e57d9){_0x5939d9=_0x5939d9-0x93;let _0x3d8bc6=_0x3908f9[_0x5939d9];return _0x3d8bc6;},_0x5939(_0x5afb11,_0x27a0a3);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2852e4}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x2852e4,_0xc3cfd5(0x99),_0xc3cfd5(0x95),_0xc3cfd5(0x9a),_0xc3cfd5(0xa7),_0xc3cfd5(0x94),_0xc3cfd5(0x9c),_0xc3cfd5(0xa1),_0xc3cfd5(0x9e),_0xc3cfd5(0xa4),_0xc3cfd5(0xa2),_0xc3cfd5(0x98),_0xc3cfd5(0xa5),_0xc3cfd5(0x97)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x10a7(){const _0x4ca992=['11bJOrnu','push','resolve','423766KAPmdF','4jiatys','5308920rvRhAC','4278064WiMQjX','54irjUnF','1760175AFVPVF','448178jUtYsi','once','6oZYgYD','queueEmptyPromise','abort','enqueue','signal','_processQueue','reject','_queueEmpty','callback','queue','_abortController','createTask','isProcessing','fire','581768LgDwYm','shift','length','completePromise','166233sURnFO'];_0x10a7=function(){return _0x4ca992;};return _0x10a7();}const _0x275e8f=_0x2d69;(function(_0x3227c2,_0x1f6d16){const _0x1995fc=_0x2d69,_0x5292a0=_0x3227c2();while(!![]){try{const _0x3cf0e3=parseInt(_0x1995fc(0x18e))/0x1+parseInt(_0x1995fc(0x188))/0x2+parseInt(_0x1995fc(0x184))/0x3*(parseInt(_0x1995fc(0x189))/0x4)+parseInt(_0x1995fc(0x18d))/0x5*(parseInt(_0x1995fc(0x190))/0x6)+-parseInt(_0x1995fc(0x18b))/0x7+-parseInt(_0x1995fc(0x180))/0x8*(-parseInt(_0x1995fc(0x18c))/0x9)+parseInt(_0x1995fc(0x18a))/0xa*(-parseInt(_0x1995fc(0x185))/0xb);if(_0x3cf0e3===_0x1f6d16)break;else _0x5292a0['push'](_0x5292a0['shift']());}catch(_0x4ea527){_0x5292a0['push'](_0x5292a0['shift']());}}}(_0x10a7,0x5853d));import{EmitterMixin as _0x12c881}from'ckeditor5/src/utils.js';function _0x2d69(_0x1fbed4,_0x400d67){const _0x10a7ea=_0x10a7();return _0x2d69=function(_0x2d6999,_0x12fbb6){_0x2d6999=_0x2d6999-0x17a;let _0x52c9a7=_0x10a7ea[_0x2d6999];return _0x52c9a7;},_0x2d69(_0x1fbed4,_0x400d67);}export class PromiseQueue extends _0x12c881(){[_0x275e8f(0x17b)]=[];[_0x275e8f(0x17e)]=!0x1;[_0x275e8f(0x17c)];async[_0x275e8f(0x193)](_0x2ea75d){const _0x1621b1=_0x275e8f,_0x453b3c=this[_0x1621b1(0x17d)](_0x2ea75d);return this[_0x1621b1(0x17b)][_0x1621b1(0x186)](_0x453b3c),this[_0x1621b1(0x195)](),_0x453b3c[_0x1621b1(0x183)];}[_0x275e8f(0x192)](){const _0x1ea2ed=_0x275e8f;this[_0x1ea2ed(0x17e)]&&(this[_0x1ea2ed(0x17c)][_0x1ea2ed(0x192)](),this[_0x1ea2ed(0x17c)]=void 0x0,this[_0x1ea2ed(0x17b)]=[],this[_0x1ea2ed(0x17f)](_0x1ea2ed(0x197)),this[_0x1ea2ed(0x17e)]=!0x1);}get[_0x275e8f(0x191)](){const _0x2b321f=_0x275e8f;return this[_0x2b321f(0x17b)][_0x2b321f(0x182)]||this[_0x2b321f(0x17e)]?new Promise(_0x1d0e4a=>{const _0xacb10c=_0x2b321f;this[_0xacb10c(0x18f)](_0xacb10c(0x197),()=>{_0x1d0e4a();});}):Promise[_0x2b321f(0x187)]();}async[_0x275e8f(0x195)](){const _0x5e2655=_0x275e8f;if(!this[_0x5e2655(0x17e)]){this[_0x5e2655(0x17c)]=new AbortController(),this[_0x5e2655(0x17e)]=!0x0;try{for(;this[_0x5e2655(0x17b)][_0x5e2655(0x182)]&&this[_0x5e2655(0x17e)];){const _0x3e68e6=this[_0x5e2655(0x17b)][_0x5e2655(0x181)]();try{await _0x3e68e6[_0x5e2655(0x17a)](this[_0x5e2655(0x17c)][_0x5e2655(0x194)]),_0x3e68e6[_0x5e2655(0x187)]();}catch(_0x24a739){_0x3e68e6[_0x5e2655(0x196)](_0x24a739);}}}finally{this[_0x5e2655(0x17e)]=!0x1,this[_0x5e2655(0x17c)]=void 0x0;}this[_0x5e2655(0x17f)](_0x5e2655(0x197));}}[_0x275e8f(0x17d)](_0x1bdf40){let _0x567683,_0x2a3962;const _0x9cfeab=new Promise((_0x5572ba,_0x27061e)=>{_0x567683=_0x5572ba,_0x2a3962=_0x27061e;});return{'callback':_0x1bdf40,'resolve':_0x567683,'reject':_0x2a3962,'completePromise':_0x9cfeab};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x29c2(_0x370a8a,_0x125bcb){const _0x50e86c=_0x50e8();return _0x29c2=function(_0x29c224,_0x4aa64c){_0x29c224=_0x29c224-0x79;let _0x295fb0=_0x50e86c[_0x29c224];return _0x295fb0;},_0x29c2(_0x370a8a,_0x125bcb);}function _0x50e8(){const _0x8a0c72=['isRunning','522LHZpSO','207477gfDXIM','pointerdown','1914054MGvbfo','deltaY','_rafUpdate','_onUserEvent','1771552yXgxBH','scrollTo','scrollHeight','4032384fudXuW','key','44eWyvYE','_stop','End','37720uLmObe','isUserPaused','104247sqpPCf','Home','auto','destroy','3141296yQFqUl','2PGinMx','addEventListener','stop','5NLPiQQ','ArrowDown','PageDown','includes','signal','ArrowUp','wheel','type','touchstart','abortController','PageUp','abort','keydown','element','start','animationFrameId','7JDeQgt','_isAtBottom','bind'];_0x50e8=function(){return _0x8a0c72;};return _0x50e8();}const _0x5547d7=_0x29c2;(function(_0xe8e4ee,_0xb3976b){const _0x56aea8=_0x29c2,_0x219e1b=_0xe8e4ee();while(!![]){try{const _0xef8d0d=-parseInt(_0x56aea8(0x86))/0x1+-parseInt(_0x56aea8(0x9b))/0x2*(-parseInt(_0x56aea8(0x96))/0x3)+-parseInt(_0x56aea8(0x8c))/0x4+parseInt(_0x56aea8(0x9e))/0x5*(-parseInt(_0x56aea8(0x88))/0x6)+parseInt(_0x56aea8(0x81))/0x7*(-parseInt(_0x56aea8(0x9a))/0x8)+parseInt(_0x56aea8(0x85))/0x9*(parseInt(_0x56aea8(0x94))/0xa)+parseInt(_0x56aea8(0x91))/0xb*(parseInt(_0x56aea8(0x8f))/0xc);if(_0xef8d0d===_0xb3976b)break;else _0x219e1b['push'](_0x219e1b['shift']());}catch(_0x468721){_0x219e1b['push'](_0x219e1b['shift']());}}}(_0x50e8,0x39861));const ws=[_0x5547d7(0xa4),_0x5547d7(0x79),_0x5547d7(0x87),_0x5547d7(0x7d)],fs=[_0x5547d7(0xa3),_0x5547d7(0x9f),_0x5547d7(0x7b),_0x5547d7(0xa0),_0x5547d7(0x97),_0x5547d7(0x93),'\x20'];export class ScrollManager{[_0x5547d7(0x7e)];[_0x5547d7(0x80)];[_0x5547d7(0x84)];[_0x5547d7(0x7a)];[_0x5547d7(0x95)];constructor(_0x1e7c22){const _0x51b0ad=_0x5547d7;this[_0x51b0ad(0x7e)]=_0x1e7c22,this[_0x51b0ad(0x80)]=null,this[_0x51b0ad(0x84)]=!0x1,this[_0x51b0ad(0x7a)]=new AbortController(),this[_0x51b0ad(0x95)]=!0x1;for(const _0x409e73 of ws){const _0x5d15b6=_0x51b0ad(0x7d)!==_0x409e73;this[_0x51b0ad(0x7e)][_0x51b0ad(0x9c)](_0x409e73,this[_0x51b0ad(0x8b)][_0x51b0ad(0x83)](this),{'passive':_0x5d15b6,'signal':this[_0x51b0ad(0x7a)][_0x51b0ad(0xa2)]});}}[_0x5547d7(0x7f)](){const _0xb468bc=_0x5547d7;this[_0xb468bc(0x84)]||(this[_0xb468bc(0x84)]=!0x0,this[_0xb468bc(0x95)]=!0x1,this[_0xb468bc(0x80)]=requestAnimationFrame(this[_0xb468bc(0x8a)][_0xb468bc(0x83)](this)));}[_0x5547d7(0x9d)](){requestAnimationFrame(()=>{const _0x5b785c=_0x29c2;this[_0x5b785c(0x92)]();});}[_0x5547d7(0x99)](){const _0x450a29=_0x5547d7;this[_0x450a29(0x92)](),this[_0x450a29(0x7a)][_0x450a29(0x7c)]();}[_0x5547d7(0x92)](){const _0x4f6e89=_0x5547d7;null!==this[_0x4f6e89(0x80)]&&(cancelAnimationFrame(this[_0x4f6e89(0x80)]),this[_0x4f6e89(0x80)]=null),this[_0x4f6e89(0x84)]&&(this[_0x4f6e89(0x84)]=!0x1),this[_0x4f6e89(0x95)]=!0x1;}[_0x5547d7(0x8b)](_0x2ff3f1){const _0x1823c0=_0x5547d7;if(this[_0x1823c0(0x84)]){if(_0x1823c0(0x7d)===_0x2ff3f1[_0x1823c0(0xa5)]){const _0x576fde=_0x2ff3f1[_0x1823c0(0x90)];if(!fs[_0x1823c0(0xa1)](_0x576fde))return;}_0x2ff3f1 instanceof WheelEvent?_0x2ff3f1[_0x1823c0(0x89)]<0x0?this[_0x1823c0(0x95)]=!0x0:this[_0x1823c0(0x95)]=!this[_0x1823c0(0x82)]():this[_0x1823c0(0x95)]=!0x0;}}[_0x5547d7(0x82)](){const _0x5d16f0=_0x5547d7,{scrollTop:_0x41fd2d,scrollHeight:_0x38371d,clientHeight:_0x4e9159}=this[_0x5d16f0(0x7e)];return _0x38371d-_0x41fd2d-_0x4e9159<=0x5;}[_0x5547d7(0x8a)](){const _0x5c9391=_0x5547d7;this[_0x5c9391(0x84)]&&(this[_0x5c9391(0x95)]||this[_0x5c9391(0x7e)][_0x5c9391(0x8d)]({'top':this[_0x5c9391(0x7e)][_0x5c9391(0x8e)],'behavior':_0x5c9391(0x98)}),this[_0x5c9391(0x80)]=requestAnimationFrame(this[_0x5c9391(0x8a)][_0x5c9391(0x83)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x427b2c=_0x4020;(function(_0x493659,_0x201ef2){var _0x35a89a=_0x4020,_0x1afda0=_0x493659();while(!![]){try{var _0x3f79cc=parseInt(_0x35a89a(0x12c))/0x1+parseInt(_0x35a89a(0x125))/0x2*(-parseInt(_0x35a89a(0x127))/0x3)+parseInt(_0x35a89a(0x12e))/0x4*(-parseInt(_0x35a89a(0x128))/0x5)+parseInt(_0x35a89a(0x129))/0x6+-parseInt(_0x35a89a(0x123))/0x7+-parseInt(_0x35a89a(0x121))/0x8+parseInt(_0x35a89a(0x126))/0x9;if(_0x3f79cc===_0x201ef2)break;else _0x1afda0['push'](_0x1afda0['shift']());}catch(_0x493ffa){_0x1afda0['push'](_0x1afda0['shift']());}}}(_0x3efe,0x27a68));import{ContextPlugin as _0x4b803c}from'ckeditor5/src/core.js';function _0x4020(_0x540068,_0x21c81a){var _0x3efe00=_0x3efe();return _0x4020=function(_0x40204d,_0x1214ce){_0x40204d=_0x40204d-0x121;var _0x31658f=_0x3efe00[_0x40204d];return _0x31658f;},_0x4020(_0x540068,_0x21c81a);}import{AIChatHistoryController as _0x314dc8}from'./aichathistorycontroller.js';function _0x3efe(){var _0x185e06=['27KfXnvc','331380mbIVnu','1187736mShEfJ','pluginName','isPremiumPlugin','44157QpfWvt','requires','16wnEDfT','1631280LYCIbe','AIChatHistory','77217jKoTMB','isOfficialPlugin','30686ZaLxvr','4845843bgxdAB'];_0x3efe=function(){return _0x185e06;};return _0x3efe();}import{AIChatHistoryUI as _0x575a0b}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x4b803c{static get[_0x427b2c(0x12d)](){return[_0x314dc8,_0x575a0b];}static get[_0x427b2c(0x12a)](){var _0x152aa6=_0x427b2c;return _0x152aa6(0x122);}static get[_0x427b2c(0x124)](){return!0x0;}static get[_0x427b2c(0x12b)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x541559=_0x1226;(function(_0x2e1d4e,_0x175e47){const _0x55f078=_0x1226,_0x1017eb=_0x2e1d4e();while(!![]){try{const _0x36765f=-parseInt(_0x55f078(0x167))/0x1+-parseInt(_0x55f078(0x139))/0x2*(parseInt(_0x55f078(0x125))/0x3)+parseInt(_0x55f078(0x151))/0x4*(parseInt(_0x55f078(0x118))/0x5)+parseInt(_0x55f078(0x157))/0x6*(parseInt(_0x55f078(0x15b))/0x7)+-parseInt(_0x55f078(0x170))/0x8*(parseInt(_0x55f078(0x12f))/0x9)+parseInt(_0x55f078(0x14f))/0xa+parseInt(_0x55f078(0x137))/0xb*(parseInt(_0x55f078(0x11a))/0xc);if(_0x36765f===_0x175e47)break;else _0x1017eb['push'](_0x1017eb['shift']());}catch(_0x3cb596){_0x1017eb['push'](_0x1017eb['shift']());}}}(_0x46be,0x76716));import{ContextPlugin as _0x20bc63}from'ckeditor5/src/core.js';import{AIConnector as _0x416c88}from'../aicore/aiconnector.js';function _0x1226(_0xd9b9c8,_0x2db914){const _0x46be9d=_0x46be();return _0x1226=function(_0x12264c,_0x5c2e5f){_0x12264c=_0x12264c-0x117;let _0x199596=_0x46be9d[_0x12264c];return _0x199596;},_0x1226(_0xd9b9c8,_0x2db914);}import{AIChatController as _0x58a767}from'../aichat/aichatcontroller.js';import{AITabs as _0x5e697a}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x80e152}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x733791}from'./model/aichathistoryconversations.js';import{getTranslation as _0x3b43be}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x20bc63{[_0x541559(0x154)];[_0x541559(0x16c)];[_0x541559(0x178)];static get[_0x541559(0x17a)](){return[_0x416c88,_0x58a767,_0x80e152,_0x5e697a];}static get[_0x541559(0x175)](){const _0x305e2b=_0x541559;return _0x305e2b(0x14a);}static get[_0x541559(0x14b)](){return!0x0;}static get[_0x541559(0x143)](){return!0x0;}[_0x541559(0x136)](){const _0xdf637e=_0x541559;this[_0xdf637e(0x154)]=this[_0xdf637e(0x134)][_0xdf637e(0x120)][_0xdf637e(0x11b)](_0x416c88),this[_0xdf637e(0x16c)]=this[_0xdf637e(0x134)][_0xdf637e(0x120)][_0xdf637e(0x11b)](_0x80e152),this[_0xdf637e(0x178)]=this[_0xdf637e(0x134)][_0xdf637e(0x120)][_0xdf637e(0x11b)](_0x58a767);const _0x102d59=this[_0xdf637e(0x134)][_0xdf637e(0x120)][_0xdf637e(0x11b)](_0x5e697a),_0x3f5ffc=this[_0xdf637e(0x178)][_0xdf637e(0x13d)]();this[_0xdf637e(0x12d)]=new _0x733791({'connector':this[_0xdf637e(0x154)],'group':_0x3f5ffc}),this[_0xdf637e(0x124)](this[_0xdf637e(0x16c)],_0xdf637e(0x176),(_0x26d17d,_0x380e5b)=>{const _0xc983a9=_0xdf637e;this[_0xc983a9(0x12a)](_0x380e5b['id'],_0xc983a9(0x169)),this[_0xc983a9(0x17b)](_0x380e5b['id']);}),this[_0xdf637e(0x124)](this[_0xdf637e(0x16c)],_0xdf637e(0x133),(_0x48a4bc,_0x168456)=>{const _0x1dfc99=_0xdf637e;this[_0x1dfc99(0x12a)](_0x168456['id'],_0x1dfc99(0x166)),this[_0x1dfc99(0x17e)](_0x168456['id'],_0x168456[_0x1dfc99(0x117)]);}),this[_0xdf637e(0x124)](this[_0xdf637e(0x12d)],_0xdf637e(0x132),(_0x5ed9a4,_0x23c6c6)=>{const _0x51ed02=_0xdf637e;void 0x0!==_0x23c6c6[_0x51ed02(0x12c)][_0x51ed02(0x117)]&&this[_0x51ed02(0x16c)][_0x51ed02(0x11d)](_0x23c6c6[_0x51ed02(0x135)],_0x23c6c6[_0x51ed02(0x12c)][_0x51ed02(0x117)]),void 0x0!==_0x23c6c6[_0x51ed02(0x12c)][_0x51ed02(0x146)]&&this[_0x51ed02(0x16f)](),this[_0x51ed02(0x162)](_0x23c6c6[_0x51ed02(0x135)]);}),this[_0xdf637e(0x124)](this[_0xdf637e(0x12d)],_0xdf637e(0x155),(_0x59c9b0,_0x2acdf5)=>{const _0x4d87d2=_0xdf637e;this[_0x4d87d2(0x178)][_0x4d87d2(0x123)](_0x2acdf5[_0x4d87d2(0x135)]),this[_0x4d87d2(0x16c)][_0x4d87d2(0x17c)](_0x2acdf5[_0x4d87d2(0x135)]),this[_0x4d87d2(0x162)](_0x2acdf5[_0x4d87d2(0x135)]);}),this[_0xdf637e(0x124)](this[_0xdf637e(0x12d)],_0xdf637e(0x15e),()=>{const _0x3e2b92=_0xdf637e;this[_0x3e2b92(0x16f)]();}),this[_0xdf637e(0x124)](this[_0xdf637e(0x12d)],_0xdf637e(0x149),(_0x515ca6,_0x6bab50)=>{const _0xa34ada=_0xdf637e;this[_0xa34ada(0x142)](_0x6bab50[_0xa34ada(0x149)],_0x6bab50[_0xa34ada(0x127)],_0x6bab50[_0xa34ada(0x135)]);}),this[_0xdf637e(0x124)](this[_0xdf637e(0x16c)],_0xdf637e(0x16d),(_0x2ef146,_0x2582ef)=>{const _0x53931f=_0xdf637e;this[_0x53931f(0x159)](_0x2582ef['id']);}),this[_0xdf637e(0x124)](this[_0xdf637e(0x16c)],_0xdf637e(0x13e),(_0x66311b,_0x296034)=>{const _0x310200=_0xdf637e,_0x47423b=_0x296034[_0x310200(0x146)]?_0x310200(0x163):_0x310200(0x12b);this[_0x310200(0x12a)](_0x296034['id'],_0x47423b),this[_0x310200(0x158)](_0x296034['id'],_0x296034[_0x310200(0x146)]);}),this[_0xdf637e(0x124)](this[_0xdf637e(0x16c)],_0xdf637e(0x11e),()=>{const _0x32a61e=_0xdf637e;_0x102d59[_0x32a61e(0x16e)][_0x32a61e(0x15f)](_0x32a61e(0x177));}),this[_0xdf637e(0x124)](this[_0xdf637e(0x178)],_0xdf637e(0x11c),()=>{const _0x2a3f0a=_0xdf637e;this[_0x2a3f0a(0x16f)]();}),_0x102d59[_0xdf637e(0x16e)]['on'](_0xdf637e(0x15d),()=>{const _0x5c9a41=_0xdf637e;this[_0x5c9a41(0x138)]();}),this[_0xdf637e(0x124)](_0x102d59,_0xdf637e(0x121),(_0x5aa90d,_0x42b082)=>{const _0xdd54ee=_0xdf637e;this[_0xdd54ee(0x144)](_0x42b082);}),this[_0xdf637e(0x124)](this[_0xdf637e(0x16c)],_0xdf637e(0x160),()=>{const _0x54e35b=_0xdf637e;_0x102d59[_0x54e35b(0x11f)]();});}async[_0x541559(0x17e)](_0x4a27bc,_0x270fee){const _0x47cf52=_0x541559;await this[_0x47cf52(0x12d)][_0x47cf52(0x11d)](_0x4a27bc,_0x270fee);}async[_0x541559(0x158)](_0x144c84,_0x4fbaf7){const _0x5945cf=_0x541559;await this[_0x5945cf(0x12d)][_0x5945cf(0x122)](_0x144c84,_0x4fbaf7);}async[_0x541559(0x17b)](_0x2a8725){const _0x3cdfa2=_0x541559;await this[_0x3cdfa2(0x12d)][_0x3cdfa2(0x16a)](_0x2a8725);}async[_0x541559(0x159)](_0x57d8cb){const _0x5e6a79=_0x541559;await this[_0x5e6a79(0x178)][_0x5e6a79(0x119)](_0x57d8cb);}async[_0x541559(0x138)](){const _0x2e21ea=_0x541559;this[_0x2e21ea(0x16c)][_0x2e21ea(0x13b)](''),this[_0x2e21ea(0x16c)][_0x2e21ea(0x14c)](!0x0),await this[_0x2e21ea(0x12d)][_0x2e21ea(0x136)](),this[_0x2e21ea(0x16c)][_0x2e21ea(0x14c)](!0x1);}[_0x541559(0x16f)](){const _0xf15421=_0x541559,_0x350b57=this[_0xf15421(0x178)][_0xf15421(0x17d)]?.['id'],_0x273c4b=this[_0xf15421(0x173)]()[_0xf15421(0x165)](_0x2bceb1=>({'title':_0x2bceb1[_0xf15421(0x117)],'items':_0x2bceb1[_0xf15421(0x168)][_0xf15421(0x165)](_0x17066d=>({'id':_0x17066d['id'],'title':_0x17066d[_0xf15421(0x117)]||_0x3b43be(this[_0xf15421(0x134)][_0xf15421(0x150)],_0xf15421(0x156)),'createdAt':new Date(_0x17066d[_0xf15421(0x145)])[_0xf15421(0x14d)](),'active':_0x17066d['id']===_0x350b57,'pinned':_0x17066d[_0xf15421(0x146)]}))}));this[_0xf15421(0x16c)][_0xf15421(0x153)](_0x273c4b);}[_0x541559(0x12a)](_0x3432aa,_0x29ac3a){const _0x230830=_0x541559;this[_0x230830(0x16c)][_0x230830(0x130)](_0x3432aa,_0x29ac3a,!0x0);}[_0x541559(0x162)](_0x40fd3b){const _0x27c535=_0x541559;this[_0x27c535(0x16c)][_0x27c535(0x130)](_0x40fd3b,null,!0x1);}[_0x541559(0x142)](_0x32edcd,_0x59848c,_0x25909f){const _0x20abe0=_0x541559,_0x3fd494=this[_0x20abe0(0x148)](_0x59848c,_0x25909f);this[_0x20abe0(0x16c)][_0x20abe0(0x13b)](_0x3fd494),_0x25909f&&this[_0x20abe0(0x162)](_0x25909f),this[_0x20abe0(0x16c)][_0x20abe0(0x14c)](!0x1);}[_0x541559(0x148)](_0x38742b,_0x3c2f38){const _0x5f1362=_0x541559,_0x46c8c4=_0x3c2f38?this[_0x5f1362(0x12d)][_0x5f1362(0x128)](_0x3c2f38):null,_0xc2f2bd=_0x46c8c4?.[_0x5f1362(0x117)]||_0x3b43be(this[_0x5f1362(0x134)][_0x5f1362(0x150)],_0x5f1362(0x156));switch(_0x38742b){case _0x5f1362(0x11d):return _0x3b43be(this[_0x5f1362(0x134)][_0x5f1362(0x150)],_0x5f1362(0x13c),_0xc2f2bd);case _0x5f1362(0x122):{const _0x462d3a=_0x3b43be(this[_0x5f1362(0x134)][_0x5f1362(0x150)],_0x46c8c4?.[_0x5f1362(0x146)]?_0x5f1362(0x161):_0x5f1362(0x16b));return _0x3b43be(this[_0x5f1362(0x134)][_0x5f1362(0x150)],_0x5f1362(0x15c),[_0x462d3a,_0xc2f2bd]);}case _0x5f1362(0x16a):return _0x3b43be(this[_0x5f1362(0x134)][_0x5f1362(0x150)],_0x5f1362(0x12e),_0xc2f2bd);case _0x5f1362(0x136):case _0x5f1362(0x13f):return _0x3b43be(this[_0x5f1362(0x134)][_0x5f1362(0x150)],_0x5f1362(0x152));default:return _0x3b43be(this[_0x5f1362(0x134)][_0x5f1362(0x150)],_0x5f1362(0x174));}}[_0x541559(0x173)](){const _0x584a30=_0x541559,_0x15e73d=new Date(),_0x4a714a=new Date(_0x15e73d[_0x584a30(0x140)](),_0x15e73d[_0x584a30(0x141)](),_0x15e73d[_0x584a30(0x147)]()),_0x2a14c1=new Date(_0x4a714a);_0x2a14c1[_0x584a30(0x131)](_0x2a14c1[_0x584a30(0x147)]()-0x1);const _0xa2df9d=new Date(_0x4a714a);_0xa2df9d[_0x584a30(0x131)](_0xa2df9d[_0x584a30(0x147)]()-0xe);const _0x1944d8=this[_0x584a30(0x12d)][_0x584a30(0x179)]({'pinned':!0x0}),_0x2f7475=this[_0x584a30(0x12d)][_0x584a30(0x179)]({'from':_0x4a714a,'to':_0x4a714a}),_0x7023da=this[_0x584a30(0x12d)][_0x584a30(0x179)]({'from':_0x2a14c1,'to':_0x2a14c1}),_0x83759d=this[_0x584a30(0x12d)][_0x584a30(0x179)]({'from':_0xa2df9d,'to':_0x2a14c1}),_0x32fad2=this[_0x584a30(0x12d)][_0x584a30(0x179)]({'to':_0xa2df9d}),_0x33bd63=[];return _0x1944d8[_0x584a30(0x13a)]>0x0&&_0x33bd63[_0x584a30(0x15a)]({'title':_0x3b43be(this[_0x584a30(0x134)][_0x584a30(0x150)],_0x584a30(0x172)),'items':_0x1944d8}),_0x2f7475[_0x584a30(0x13a)]>0x0&&_0x33bd63[_0x584a30(0x15a)]({'title':_0x3b43be(this[_0x584a30(0x134)][_0x584a30(0x150)],_0x584a30(0x14e)),'items':_0x2f7475}),_0x7023da[_0x584a30(0x13a)]>0x0&&_0x33bd63[_0x584a30(0x15a)]({'title':_0x3b43be(this[_0x584a30(0x134)][_0x584a30(0x150)],_0x584a30(0x164)),'items':_0x7023da}),_0x83759d[_0x584a30(0x13a)]>0x0&&_0x33bd63[_0x584a30(0x15a)]({'title':_0x3b43be(this[_0x584a30(0x134)][_0x584a30(0x150)],_0x584a30(0x126)),'items':_0x83759d}),_0x32fad2[_0x584a30(0x13a)]>0x0&&_0x33bd63[_0x584a30(0x15a)]({'title':_0x3b43be(this[_0x584a30(0x134)][_0x584a30(0x150)],_0x584a30(0x129)),'items':_0x32fad2}),_0x33bd63;}[_0x541559(0x144)](_0x4d4b02){const _0x381f87=_0x541559;this[_0x381f87(0x16c)][_0x381f87(0x171)](_0x4d4b02);}}function _0x46be(){const _0x30024f=['AI_CHAT_HISTORY_ERROR_GENERIC','pluginName','removeConversation','chat','_aiChatController','getItems','requires','_handleRemove','removeHistoryItem','activeConversation','_handleEditTitle','title','420BMmcSp','loadConversation','229476WBugTW','get','change:activeConversation','updateItemTitle','openChat','resize','plugins','resizedTabs','updateItemPinned','handleRemovedConversation','listenTo','1532742ZDuUvl','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','operation','getItem','AI_CHAT_HISTORY_CATEGORY_LATER','_setItemLoading','unpin','updates','history','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','30969adPKZd','updateItemLoadingState','setDate','itemUpdated','editConversationTitle','context','itemId','init','682oDvwXK','_showConversationHistory','2fAkrOB','length','showError','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','getGroupId','setConversationPinned','loadItems','getFullYear','getMonth','_handleHistoryErrorUI','isPremiumPlugin','_setIsMaximized','createdAt','pinned','getDate','_generateErrorMessage','error','AIChatHistoryController','isOfficialPlugin','setLoadingSkeleton','toLocaleDateString','AI_CHAT_HISTORY_CATEGORY_TODAY','3518300RvEoIg','locale','5052mbGVTZ','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','updateItems','_aiConnector','itemRemoved','AI_CHAT_UNTITLED_CONVERSATION','6OcahNK','_handleTogglePin','_handleSelectConversation','push','5016298VOVTcf','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','activateTab:history','itemsLoaded','activateTab','resizeTabs','AI_CHAT_HISTORY_UNPIN_ACTION','_clearItemLoading','pin','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','map','rename','933981bKKgKw','items','remove','removeItem','AI_CHAT_HISTORY_PIN_ACTION','_aiChatHistoryUi','selectConversation','view','_updateHistoryItemsUI','1000CpzJgz','setIsMaximized','AI_CHAT_HISTORY_CATEGORY_PINNED','_getCategorizedItems'];_0x46be=function(){return _0x30024f;};return _0x46be();}
|
|
23
|
+
const _0x1c4157=_0x148c;(function(_0x471da4,_0x99678b){const _0x505342=_0x148c,_0x5cba71=_0x471da4();while(!![]){try{const _0x4b69f1=-parseInt(_0x505342(0x130))/0x1+-parseInt(_0x505342(0x157))/0x2+parseInt(_0x505342(0x15d))/0x3+parseInt(_0x505342(0x184))/0x4+-parseInt(_0x505342(0x15e))/0x5+-parseInt(_0x505342(0x12d))/0x6+parseInt(_0x505342(0x16a))/0x7;if(_0x4b69f1===_0x99678b)break;else _0x5cba71['push'](_0x5cba71['shift']());}catch(_0x7275ba){_0x5cba71['push'](_0x5cba71['shift']());}}}(_0x4a8f,0x94c1c));function _0x4a8f(){const _0x42f586=['getMonth','_aiChatHistoryUi','chat','updateItemTitle','getGroupId','removeItem','_handleEditTitle','setDate','loadItems','itemRemoved','_setItemLoading','getFullYear','AI_CHAT_HISTORY_CATEGORY_LATER','setConversationPinned','_generateErrorMessage','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','2957808SrKMBR','map','_clearItemLoading','init','openChat','_handleHistoryErrorUI','getItems','updateItemLoadingState','updates','pluginName','listenTo','locale','1773438iOnQCJ','activeConversation','pinned','822525fhputL','itemId','_aiConnector','_aiChatController','isOfficialPlugin','plugins','_getCategorizedItems','operation','AI_CHAT_HISTORY_ERROR_GENERIC','loadConversation','AIChatHistoryController','_handleTogglePin','requires','isPremiumPlugin','AI_CHAT_UNTITLED_CONVERSATION','activateTab','itemUpdated','AI_CHAT_HISTORY_PIN_ACTION','pin','showError','_setIsMaximized','change:activeConversation','unpin','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','push','activateTab:history','view','_handleRemove','getItem','rename','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','AI_CHAT_HISTORY_UNPIN_ACTION','getDate','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','setIsMaximized','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','setLoadingSkeleton','resize','toLocaleDateString','1128546XKFoAw','resizedTabs','selectConversation','createdAt','history','itemsLoaded','2739900uAEZSu','2260565HEJpgQ','editConversationTitle','remove','removeConversation','AI_CHAT_HISTORY_CATEGORY_TODAY','items','removeHistoryItem','_showConversationHistory','context','get','title','updateItemPinned','7637280LHXLei','updateItems','_updateHistoryItemsUI','length','error','handleRemovedConversation','_handleSelectConversation','resizeTabs','AI_CHAT_HISTORY_CATEGORY_PINNED'];_0x4a8f=function(){return _0x42f586;};return _0x4a8f();}import{ContextPlugin as _0x5976de}from'ckeditor5/src/core.js';import{AIConnector as _0x5c5cbb}from'../aicore/aiconnector.js';import{AIChatController as _0x341313}from'../aichat/aichatcontroller.js';import{AITabs as _0x5514c9}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x55d885}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x43ac67}from'./model/aichathistoryconversations.js';function _0x148c(_0x7e0b38,_0x195796){const _0x4a8f16=_0x4a8f();return _0x148c=function(_0x148cb9,_0x40d21d){_0x148cb9=_0x148cb9-0x128;let _0x3eb048=_0x4a8f16[_0x148cb9];return _0x3eb048;},_0x148c(_0x7e0b38,_0x195796);}import{getTranslation as _0x1d7466}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x5976de{[_0x1c4157(0x132)];[_0x1c4157(0x174)];[_0x1c4157(0x133)];static get[_0x1c4157(0x13c)](){return[_0x5c5cbb,_0x341313,_0x55d885,_0x5514c9];}static get[_0x1c4157(0x12a)](){const _0x327d12=_0x1c4157;return _0x327d12(0x13a);}static get[_0x1c4157(0x134)](){return!0x0;}static get[_0x1c4157(0x13d)](){return!0x0;}[_0x1c4157(0x187)](){const _0x2f56ac=_0x1c4157;this[_0x2f56ac(0x132)]=this[_0x2f56ac(0x166)][_0x2f56ac(0x135)][_0x2f56ac(0x167)](_0x5c5cbb),this[_0x2f56ac(0x174)]=this[_0x2f56ac(0x166)][_0x2f56ac(0x135)][_0x2f56ac(0x167)](_0x55d885),this[_0x2f56ac(0x133)]=this[_0x2f56ac(0x166)][_0x2f56ac(0x135)][_0x2f56ac(0x167)](_0x341313);const _0x30cf50=this[_0x2f56ac(0x166)][_0x2f56ac(0x135)][_0x2f56ac(0x167)](_0x5514c9),_0x89d2f2=this[_0x2f56ac(0x133)][_0x2f56ac(0x177)]();this[_0x2f56ac(0x15b)]=new _0x43ac67({'connector':this[_0x2f56ac(0x132)],'group':_0x89d2f2}),this[_0x2f56ac(0x12b)](this[_0x2f56ac(0x174)],_0x2f56ac(0x161),(_0x1630aa,_0x509cd3)=>{const _0x2f9962=_0x2f56ac;this[_0x2f9962(0x17d)](_0x509cd3['id'],_0x2f9962(0x160)),this[_0x2f9962(0x14b)](_0x509cd3['id']);}),this[_0x2f56ac(0x12b)](this[_0x2f56ac(0x174)],_0x2f56ac(0x15f),(_0x1cf586,_0x88647b)=>{const _0x210cf2=_0x2f56ac;this[_0x210cf2(0x17d)](_0x88647b['id'],_0x210cf2(0x14d)),this[_0x210cf2(0x179)](_0x88647b['id'],_0x88647b[_0x210cf2(0x168)]);}),this[_0x2f56ac(0x12b)](this[_0x2f56ac(0x15b)],_0x2f56ac(0x140),(_0x13acc0,_0x5cdce8)=>{const _0xcbc43e=_0x2f56ac;void 0x0!==_0x5cdce8[_0xcbc43e(0x129)][_0xcbc43e(0x168)]&&this[_0xcbc43e(0x174)][_0xcbc43e(0x176)](_0x5cdce8[_0xcbc43e(0x131)],_0x5cdce8[_0xcbc43e(0x129)][_0xcbc43e(0x168)]),void 0x0!==_0x5cdce8[_0xcbc43e(0x129)][_0xcbc43e(0x12f)]&&this[_0xcbc43e(0x16c)](),this[_0xcbc43e(0x186)](_0x5cdce8[_0xcbc43e(0x131)]);}),this[_0x2f56ac(0x12b)](this[_0x2f56ac(0x15b)],_0x2f56ac(0x17c),(_0xaee52a,_0x588331)=>{const _0x1f77eb=_0x2f56ac;this[_0x1f77eb(0x133)][_0x1f77eb(0x16f)](_0x588331[_0x1f77eb(0x131)]),this[_0x1f77eb(0x174)][_0x1f77eb(0x164)](_0x588331[_0x1f77eb(0x131)]),this[_0x1f77eb(0x186)](_0x588331[_0x1f77eb(0x131)]);}),this[_0x2f56ac(0x12b)](this[_0x2f56ac(0x15b)],_0x2f56ac(0x15c),()=>{const _0x520afd=_0x2f56ac;this[_0x520afd(0x16c)]();}),this[_0x2f56ac(0x12b)](this[_0x2f56ac(0x15b)],_0x2f56ac(0x16e),(_0x21dc7b,_0x4a0e54)=>{const _0x5ac98c=_0x2f56ac;this[_0x5ac98c(0x189)](_0x4a0e54[_0x5ac98c(0x16e)],_0x4a0e54[_0x5ac98c(0x137)],_0x4a0e54[_0x5ac98c(0x131)]);}),this[_0x2f56ac(0x12b)](this[_0x2f56ac(0x174)],_0x2f56ac(0x159),(_0x5eb3cc,_0x4cf9ff)=>{const _0x15389d=_0x2f56ac;this[_0x15389d(0x170)](_0x4cf9ff['id']);}),this[_0x2f56ac(0x12b)](this[_0x2f56ac(0x174)],_0x2f56ac(0x180),(_0x22b4c1,_0x11c5ce)=>{const _0x3bb453=_0x2f56ac,_0x2ba4a9=_0x11c5ce[_0x3bb453(0x12f)]?_0x3bb453(0x142):_0x3bb453(0x146);this[_0x3bb453(0x17d)](_0x11c5ce['id'],_0x2ba4a9),this[_0x3bb453(0x13b)](_0x11c5ce['id'],_0x11c5ce[_0x3bb453(0x12f)]);}),this[_0x2f56ac(0x12b)](this[_0x2f56ac(0x174)],_0x2f56ac(0x188),()=>{const _0x1f6bbf=_0x2f56ac;_0x30cf50[_0x1f6bbf(0x14a)][_0x1f6bbf(0x13f)](_0x1f6bbf(0x175));}),this[_0x2f56ac(0x12b)](this[_0x2f56ac(0x133)],_0x2f56ac(0x145),()=>{const _0xec48fe=_0x2f56ac;this[_0xec48fe(0x16c)]();}),_0x30cf50[_0x2f56ac(0x14a)]['on'](_0x2f56ac(0x149),()=>{const _0x32da4f=_0x2f56ac;this[_0x32da4f(0x165)]();}),this[_0x2f56ac(0x12b)](_0x30cf50,_0x2f56ac(0x158),(_0x12f24d,_0x5a8afc)=>{const _0x3f39e1=_0x2f56ac;this[_0x3f39e1(0x144)](_0x5a8afc);}),this[_0x2f56ac(0x12b)](this[_0x2f56ac(0x174)],_0x2f56ac(0x171),()=>{const _0x2146c1=_0x2f56ac;_0x30cf50[_0x2146c1(0x155)]();});}async[_0x1c4157(0x179)](_0x42590c,_0x112ef1){const _0xf26b28=_0x1c4157;await this[_0xf26b28(0x15b)][_0xf26b28(0x176)](_0x42590c,_0x112ef1);}async[_0x1c4157(0x13b)](_0x5889bd,_0x2b10cc){const _0x450fa9=_0x1c4157;await this[_0x450fa9(0x15b)][_0x450fa9(0x169)](_0x5889bd,_0x2b10cc);}async[_0x1c4157(0x14b)](_0x56db43){const _0x4d5678=_0x1c4157;await this[_0x4d5678(0x15b)][_0x4d5678(0x178)](_0x56db43);}async[_0x1c4157(0x170)](_0x2c3e63){const _0x3dbe5e=_0x1c4157;await this[_0x3dbe5e(0x133)][_0x3dbe5e(0x139)](_0x2c3e63);}async[_0x1c4157(0x165)](){const _0x557489=_0x1c4157;this[_0x557489(0x174)][_0x557489(0x143)](''),this[_0x557489(0x174)][_0x557489(0x154)](!0x0),await this[_0x557489(0x15b)][_0x557489(0x187)](),this[_0x557489(0x174)][_0x557489(0x154)](!0x1);}[_0x1c4157(0x16c)](){const _0x1ea031=_0x1c4157,_0x1e065e=this[_0x1ea031(0x133)][_0x1ea031(0x12e)]?.['id'],_0x57afad=this[_0x1ea031(0x136)]()[_0x1ea031(0x185)](_0x2063bf=>({'title':_0x2063bf[_0x1ea031(0x168)],'items':_0x2063bf[_0x1ea031(0x163)][_0x1ea031(0x185)](_0x41b9a1=>({'id':_0x41b9a1['id'],'title':_0x41b9a1[_0x1ea031(0x168)]||_0x1d7466(this[_0x1ea031(0x166)][_0x1ea031(0x12c)],_0x1ea031(0x13e)),'createdAt':new Date(_0x41b9a1[_0x1ea031(0x15a)])[_0x1ea031(0x156)](),'active':_0x41b9a1['id']===_0x1e065e,'pinned':_0x41b9a1[_0x1ea031(0x12f)]}))}));this[_0x1ea031(0x174)][_0x1ea031(0x16b)](_0x57afad);}[_0x1c4157(0x17d)](_0x424a3b,_0x4adf6b){const _0x20b4b9=_0x1c4157;this[_0x20b4b9(0x174)][_0x20b4b9(0x128)](_0x424a3b,_0x4adf6b,!0x0);}[_0x1c4157(0x186)](_0x292cec){const _0x250ed0=_0x1c4157;this[_0x250ed0(0x174)][_0x250ed0(0x128)](_0x292cec,null,!0x1);}[_0x1c4157(0x189)](_0x3f2704,_0x2693ad,_0x5d3a07){const _0x2d5705=_0x1c4157,_0x49c807=this[_0x2d5705(0x181)](_0x2693ad,_0x5d3a07);this[_0x2d5705(0x174)][_0x2d5705(0x143)](_0x49c807),_0x5d3a07&&this[_0x2d5705(0x186)](_0x5d3a07),this[_0x2d5705(0x174)][_0x2d5705(0x154)](!0x1);}[_0x1c4157(0x181)](_0x5ea4c,_0x46e23c){const _0x75a413=_0x1c4157,_0x1bf60e=_0x46e23c?this[_0x75a413(0x15b)][_0x75a413(0x14c)](_0x46e23c):null,_0x21aafa=_0x1bf60e?.[_0x75a413(0x168)]||_0x1d7466(this[_0x75a413(0x166)][_0x75a413(0x12c)],_0x75a413(0x13e));switch(_0x5ea4c){case _0x75a413(0x176):return _0x1d7466(this[_0x75a413(0x166)][_0x75a413(0x12c)],_0x75a413(0x182),_0x21aafa);case _0x75a413(0x169):{const _0x2f5d92=_0x1d7466(this[_0x75a413(0x166)][_0x75a413(0x12c)],_0x1bf60e?.[_0x75a413(0x12f)]?_0x75a413(0x14f):_0x75a413(0x141));return _0x1d7466(this[_0x75a413(0x166)][_0x75a413(0x12c)],_0x75a413(0x147),[_0x2f5d92,_0x21aafa]);}case _0x75a413(0x178):return _0x1d7466(this[_0x75a413(0x166)][_0x75a413(0x12c)],_0x75a413(0x14e),_0x21aafa);case _0x75a413(0x187):case _0x75a413(0x17b):return _0x1d7466(this[_0x75a413(0x166)][_0x75a413(0x12c)],_0x75a413(0x183));default:return _0x1d7466(this[_0x75a413(0x166)][_0x75a413(0x12c)],_0x75a413(0x138));}}[_0x1c4157(0x136)](){const _0x37bd64=_0x1c4157,_0x267406=new Date(),_0x452a2d=new Date(_0x267406[_0x37bd64(0x17e)](),_0x267406[_0x37bd64(0x173)](),_0x267406[_0x37bd64(0x150)]()),_0x17279a=new Date(_0x452a2d);_0x17279a[_0x37bd64(0x17a)](_0x17279a[_0x37bd64(0x150)]()-0x1);const _0x1685b3=new Date(_0x452a2d);_0x1685b3[_0x37bd64(0x17a)](_0x1685b3[_0x37bd64(0x150)]()-0xe);const _0x42f800=this[_0x37bd64(0x15b)][_0x37bd64(0x18a)]({'pinned':!0x0}),_0x4416de=this[_0x37bd64(0x15b)][_0x37bd64(0x18a)]({'from':_0x452a2d,'to':_0x452a2d}),_0x2c3a5e=this[_0x37bd64(0x15b)][_0x37bd64(0x18a)]({'from':_0x17279a,'to':_0x17279a}),_0x389409=this[_0x37bd64(0x15b)][_0x37bd64(0x18a)]({'from':_0x1685b3,'to':_0x17279a}),_0x12bc29=this[_0x37bd64(0x15b)][_0x37bd64(0x18a)]({'to':_0x1685b3}),_0x4aada5=[];return _0x42f800[_0x37bd64(0x16d)]>0x0&&_0x4aada5[_0x37bd64(0x148)]({'title':_0x1d7466(this[_0x37bd64(0x166)][_0x37bd64(0x12c)],_0x37bd64(0x172)),'items':_0x42f800}),_0x4416de[_0x37bd64(0x16d)]>0x0&&_0x4aada5[_0x37bd64(0x148)]({'title':_0x1d7466(this[_0x37bd64(0x166)][_0x37bd64(0x12c)],_0x37bd64(0x162)),'items':_0x4416de}),_0x2c3a5e[_0x37bd64(0x16d)]>0x0&&_0x4aada5[_0x37bd64(0x148)]({'title':_0x1d7466(this[_0x37bd64(0x166)][_0x37bd64(0x12c)],_0x37bd64(0x151)),'items':_0x2c3a5e}),_0x389409[_0x37bd64(0x16d)]>0x0&&_0x4aada5[_0x37bd64(0x148)]({'title':_0x1d7466(this[_0x37bd64(0x166)][_0x37bd64(0x12c)],_0x37bd64(0x153)),'items':_0x389409}),_0x12bc29[_0x37bd64(0x16d)]>0x0&&_0x4aada5[_0x37bd64(0x148)]({'title':_0x1d7466(this[_0x37bd64(0x166)][_0x37bd64(0x12c)],_0x37bd64(0x17f)),'items':_0x12bc29}),_0x4aada5;}[_0x1c4157(0x144)](_0x215b25){const _0x26da6d=_0x1c4157;this[_0x26da6d(0x174)][_0x26da6d(0x152)](_0x215b25);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17c45f=_0x2354;(function(_0x4973e9,_0x359c40){const _0x5279dc=_0x2354,_0x5f2b5d=_0x4973e9();while(!![]){try{const _0x322ada=parseInt(_0x5279dc(0x1d6))/0x1*(-parseInt(_0x5279dc(0x1ea))/0x2)+parseInt(_0x5279dc(0x1cb))/0x3+-parseInt(_0x5279dc(0x1eb))/0x4+-parseInt(_0x5279dc(0x1e5))/0x5*(parseInt(_0x5279dc(0x1cc))/0x6)+parseInt(_0x5279dc(0x1ef))/0x7+-parseInt(_0x5279dc(0x1d0))/0x8*(parseInt(_0x5279dc(0x1c7))/0x9)+parseInt(_0x5279dc(0x1df))/0xa;if(_0x322ada===_0x359c40)break;else _0x5f2b5d['push'](_0x5f2b5d['shift']());}catch(_0x220188){_0x5f2b5d['push'](_0x5f2b5d['shift']());}}}(_0x243d,0x647e6));import{ContextPlugin as _0x7f068b}from'ckeditor5/src/core.js';import{AITabs as _0x3006fe}from'../aitabs/aitabs.js';import{IconAIHistory as _0x3772ff}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x489fe4}from'./ui/aichathistoryview.js';import{getTranslation as _0x24c8dc}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';function _0x243d(){const _0x39f381=['updateItemLoadingState','showResizeButton','updateItemTitle','delegate','hideError','errorMessage','removeConversation','_historyView','11369920roZtFK','resizeTabs','setLoadingSkeleton','removeHistoryItem','isMaximized','isPremiumPlugin','30KVDOtJ','get','history','updateHistoryItemsWithCategories','selectConversation','1009846eoGMae','749376QhrscU','AITabs','pluginName','AI_CHAT_HISTORY_HEADING','989191zqPpYb','requires','updateItems','addTab','locale','AIChatHistoryUI','18pPSxKQ','isLoading','openChat','context','1049070YSCVDU','482286TKYpzw','plugins','isOfficialPlugin','editConversationTitle','167280SPXatY','setIsMaximized','view','setConversationPinned','showError','showConversationHistory','1mZaFmF'];_0x243d=function(){return _0x39f381;};return _0x243d();}function _0x2354(_0xadf7de,_0x4f9ed0){const _0x243d18=_0x243d();return _0x2354=function(_0x2354a8,_0x4b319f){_0x2354a8=_0x2354a8-0x1c6;let _0x32a66b=_0x243d18[_0x2354a8];return _0x32a66b;},_0x2354(_0xadf7de,_0x4f9ed0);}export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x17c45f(0x1d5),_0x17c45f(0x1dd),_0x17c45f(0x1cf),_0x17c45f(0x1d3),_0x17c45f(0x1e9),_0x17c45f(0x1c9),_0x17c45f(0x1e0)];export class AIChatHistoryUI extends _0x7f068b{static get[_0x17c45f(0x1f0)](){return[_0x3006fe];}[_0x17c45f(0x1de)];static get[_0x17c45f(0x1ed)](){const _0x189c42=_0x17c45f;return _0x189c42(0x1c6);}static get[_0x17c45f(0x1ce)](){return!0x0;}static get[_0x17c45f(0x1e4)](){return!0x0;}constructor(_0x5a58d){const _0x250692=_0x17c45f;super(_0x5a58d);const _0x25ed66=this[_0x250692(0x1ca)][_0x250692(0x1cd)][_0x250692(0x1e6)](_0x250692(0x1ec));this[_0x250692(0x1de)]=new _0x489fe4(this[_0x250692(0x1ca)][_0x250692(0x1f3)],_0x25ed66[_0x250692(0x1d8)]),this[_0x250692(0x1de)][_0x250692(0x1da)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x25ed66[_0x250692(0x1d2)][_0x250692(0x1f2)]({'id':_0x250692(0x1e7),'buttonLabel':_0x24c8dc(this[_0x250692(0x1ca)][_0x250692(0x1f3)],_0x250692(0x1ee)),'buttonIcon':_0x3772ff,'order':0x0,'content':this[_0x250692(0x1de)]});}[_0x17c45f(0x1e2)](_0x2bda5d){const _0xafdb08=_0x17c45f;this[_0xafdb08(0x1de)][_0xafdb08(0x1e2)](_0x2bda5d);}[_0x17c45f(0x1f1)](_0x1b694c){const _0x14e5da=_0x17c45f;this[_0x14e5da(0x1de)][_0x14e5da(0x1e8)](_0x1b694c);}[_0x17c45f(0x1d9)](_0x129e17,_0x1049c0){const _0x20a6e2=_0x17c45f;this[_0x20a6e2(0x1de)][_0x20a6e2(0x1d9)](_0x129e17,_0x1049c0);}[_0x17c45f(0x1d7)](_0x48a7d0,_0x3ec844,_0x381c89){const _0x30fafe=_0x17c45f;this[_0x30fafe(0x1de)][_0x30fafe(0x1d7)](_0x48a7d0,_0x3ec844,_0x381c89);}[_0x17c45f(0x1e1)](_0x3acbb8){const _0x349b13=_0x17c45f;this[_0x349b13(0x1de)][_0x349b13(0x1c8)]=_0x3acbb8;}[_0x17c45f(0x1d4)](_0x4f3d63){const _0x1abbd3=_0x17c45f;this[_0x1abbd3(0x1de)][_0x1abbd3(0x1dc)]=_0x4f3d63;}[_0x17c45f(0x1db)](){const _0x32f3a4=_0x17c45f;this[_0x32f3a4(0x1de)][_0x32f3a4(0x1dc)]='';}[_0x17c45f(0x1d1)](_0x4a9619){const _0x3ac13f=_0x17c45f;this[_0x3ac13f(0x1de)][_0x3ac13f(0x1e3)]=_0x4a9619;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4ece(_0x5ff4d,_0x5701de){const _0x18bd9d=_0x18bd();return _0x4ece=function(_0x4ece90,_0xa58355){_0x4ece90=_0x4ece90-0xf9;let _0x116592=_0x18bd9d[_0x4ece90];return _0x116592;},_0x4ece(_0x5ff4d,_0x5701de);}const _0x44d68c=_0x4ece;(function(_0xf93f3c,_0x33128e){const _0x4a6dca=_0x4ece,_0x180c5d=_0xf93f3c();while(!![]){try{const _0x44aa48=-parseInt(_0x4a6dca(0x126))/0x1*(-parseInt(_0x4a6dca(0x103))/0x2)+parseInt(_0x4a6dca(0x123))/0x3*(-parseInt(_0x4a6dca(0xfa))/0x4)+-parseInt(_0x4a6dca(0x125))/0x5+-parseInt(_0x4a6dca(0x11e))/0x6*(-parseInt(_0x4a6dca(0x124))/0x7)+parseInt(_0x4a6dca(0x108))/0x8*(parseInt(_0x4a6dca(0x127))/0x9)+parseInt(_0x4a6dca(0x111))/0xa+-parseInt(_0x4a6dca(0xfe))/0xb*(parseInt(_0x4a6dca(0x10f))/0xc);if(_0x44aa48===_0x33128e)break;else _0x180c5d['push'](_0x180c5d['shift']());}catch(_0xfa7e73){_0x180c5d['push'](_0x180c5d['shift']());}}}(_0x18bd,0x32241));import{EmitterMixin as _0x420a76}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x3bdcbf}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x420a76(){[_0x44d68c(0xff)]=[];[_0x44d68c(0x105)];[_0x44d68c(0x109)];constructor({connector:_0xc48e6c,group:_0x3bb75a}){const _0x3ab1d3=_0x44d68c;super(),this[_0x3ab1d3(0x105)]=_0xc48e6c,this[_0x3ab1d3(0x109)]=_0x3bb75a;}async[_0x44d68c(0xfb)](){const _0xfeae71=_0x44d68c;try{const _0xc1056f=this[_0xfeae71(0x105)][_0xfeae71(0x110)](this[_0xfeae71(0x109)]),_0x57422b=await _0xc1056f[_0xfeae71(0x128)]();this[_0xfeae71(0x121)](_0x57422b);}catch(_0xff0fb3){this[_0xfeae71(0x119)](_0xfeae71(0x116),{'error':_0xff0fb3,'operation':_0xfeae71(0xfb)});}}[_0x44d68c(0x117)](_0x4ed9f6){const _0x1de96f=_0x44d68c;this[_0x1de96f(0xff)][_0x1de96f(0x113)](_0x4ed9f6);}async[_0x44d68c(0xfc)](_0x3b8be0){const _0xb493e2=_0x44d68c,_0x9ab7a7=this[_0xb493e2(0xff)][_0xb493e2(0x120)](_0x675b83=>_0x675b83['id']===_0x3b8be0);if(-0x1===_0x9ab7a7)return!0x1;try{return await this[_0xb493e2(0x105)][_0xb493e2(0x101)](_0x3b8be0)[_0xb493e2(0x100)](),this[_0xb493e2(0xff)][_0xb493e2(0x11d)](_0x9ab7a7,0x1),this[_0xb493e2(0x119)](_0xb493e2(0x10d),{'itemId':_0x3b8be0}),!0x0;}catch(_0x16bf6e){return this[_0xb493e2(0x119)](_0xb493e2(0x116),{'error':_0x16bf6e,'operation':_0xb493e2(0xfc),'itemId':_0x3b8be0}),!0x1;}}[_0x44d68c(0x10c)](_0x3c85a7){const _0x357492=_0x44d68c;return this[_0x357492(0xff)][_0x357492(0x11f)](_0x196129=>_0x196129['id']===_0x3c85a7);}async[_0x44d68c(0x118)](_0x6038a2,_0x187d03){const _0x15701a=_0x44d68c,_0x4d4545=this[_0x15701a(0x10c)](_0x6038a2);if(!_0x4d4545)return!0x1;try{return await this[_0x15701a(0x105)][_0x15701a(0x10e)](_0x6038a2,{'title':_0x187d03})[_0x15701a(0x10b)](),_0x4d4545[_0x15701a(0x11c)](_0x187d03),this[_0x15701a(0x119)](_0x15701a(0x122),{'itemId':_0x6038a2,'updates':{'title':_0x187d03}}),!0x0;}catch(_0x2bebc5){return this[_0x15701a(0x119)](_0x15701a(0x116),{'error':_0x2bebc5,'operation':_0x15701a(0x118),'itemId':_0x6038a2}),!0x1;}}async[_0x44d68c(0x11a)](_0x29c6d9,_0x2333b4){const _0xb00a53=_0x44d68c,_0xc87df6=this[_0xb00a53(0x10c)](_0x29c6d9);if(!_0xc87df6)return!0x1;try{return await this[_0xb00a53(0x105)][_0xb00a53(0x10e)](_0x29c6d9,{'pinned':_0x2333b4})[_0xb00a53(0x10b)](),_0xc87df6[_0xb00a53(0x11b)](_0x2333b4),this[_0xb00a53(0x119)](_0xb00a53(0x122),{'itemId':_0x29c6d9,'updates':{'pinned':_0x2333b4}}),!0x0;}catch(_0x1b27f1){return this[_0xb00a53(0x119)](_0xb00a53(0x116),{'error':_0x1b27f1,'operation':_0xb00a53(0x11a),'itemId':_0x29c6d9}),!0x1;}}[_0x44d68c(0x121)](_0x284265){const _0x4b87ae=_0x44d68c;try{this[_0x4b87ae(0xff)]=[],_0x284265[_0x4b87ae(0x104)](_0x13ad9d=>{const _0x261697=_0x4b87ae;this[_0x261697(0x117)](new _0x3bdcbf(_0x13ad9d));}),this[_0x4b87ae(0x119)](_0x4b87ae(0xfd),{'items':[...this[_0x4b87ae(0xff)]]});}catch(_0x501a88){this[_0x4b87ae(0x119)](_0x4b87ae(0x116),{'error':_0x501a88,'operation':_0x4b87ae(0x121)});}}[_0x44d68c(0x102)](_0x447d73={}){const _0x24d493=_0x44d68c,_0x3da162=void 0x0!==_0x447d73[_0x24d493(0x115)]&&_0x447d73[_0x24d493(0x115)],_0xd8b672=_0x447d73[_0x24d493(0x114)]?new Date(_0x447d73[_0x24d493(0x114)][_0x24d493(0x129)](),_0x447d73[_0x24d493(0x114)][_0x24d493(0xf9)](),_0x447d73[_0x24d493(0x114)][_0x24d493(0x10a)]()):null,_0xd0411d=_0x447d73['to']?new Date(_0x447d73['to'][_0x24d493(0x129)](),_0x447d73['to'][_0x24d493(0xf9)](),_0x447d73['to'][_0x24d493(0x10a)]()):null;return this[_0x24d493(0xff)][_0x24d493(0x112)](_0x52af4e=>{const _0x3b19e5=_0x24d493;if(_0x52af4e[_0x3b19e5(0x115)]!==_0x3da162)return!0x1;if(_0xd0411d){const _0x5c62df=new Date(_0x52af4e[_0x3b19e5(0x107)][_0x3b19e5(0x129)](),_0x52af4e[_0x3b19e5(0x107)][_0x3b19e5(0xf9)](),_0x52af4e[_0x3b19e5(0x107)][_0x3b19e5(0x10a)]());return _0xd8b672?_0xd8b672[_0x3b19e5(0x106)]()===_0xd0411d[_0x3b19e5(0x106)]()?_0x5c62df[_0x3b19e5(0x106)]()===_0xd8b672[_0x3b19e5(0x106)]():_0x5c62df<_0xd0411d&&_0x5c62df>=_0xd8b672:_0x5c62df<_0xd0411d;}return!0x0;});}}function _0x18bd(){const _0xc3ac34=['getItem','itemRemoved','updateConversation','12ACrSBC','fetchConversations','2184090sNHKYa','filter','push','from','pinned','error','addItem','updateItemTitle','fire','updateItemPinned','updatePinned','updateTitle','splice','6dBClsi','find','findIndex','loadItems','itemUpdated','3pniNbz','1121771vPOYfX','1497025tljUIO','107OqkKbP','126783UXpjOQ','getConversations','getFullYear','getMonth','125456JNEuJt','init','removeItem','itemsLoaded','2688037tsFoYB','items','execute','deleteConversation','getItems','6458gdDabt','map','connector','getTime','createdAt','32evNPyd','group','getDate','getResult'];_0x18bd=function(){return _0xc3ac34;};return _0x18bd();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2053a8=_0x3ace;function _0x3ace(_0x19a21e,_0x3c9d42){var _0x54a55b=_0x54a5();return _0x3ace=function(_0x3ace5a,_0x450419){_0x3ace5a=_0x3ace5a-0xf2;var _0x3b7e0c=_0x54a55b[_0x3ace5a];return _0x3b7e0c;},_0x3ace(_0x19a21e,_0x3c9d42);}(function(_0x24c672,_0x668e9d){var _0x212149=_0x3ace,_0x14c2d2=_0x24c672();while(!![]){try{var _0x32a620=-parseInt(_0x212149(0xfc))/0x1*(-parseInt(_0x212149(0x102))/0x2)+-parseInt(_0x212149(0xff))/0x3*(-parseInt(_0x212149(0xf8))/0x4)+parseInt(_0x212149(0xfe))/0x5+-parseInt(_0x212149(0xf4))/0x6+-parseInt(_0x212149(0x101))/0x7*(parseInt(_0x212149(0xf6))/0x8)+parseInt(_0x212149(0xf9))/0x9+-parseInt(_0x212149(0xf7))/0xa;if(_0x32a620===_0x668e9d)break;else _0x14c2d2['push'](_0x14c2d2['shift']());}catch(_0x423092){_0x14c2d2['push'](_0x14c2d2['shift']());}}}(_0x54a5,0x3cd59));import{ObservableMixin as _0x4c5e14}from'ckeditor5/src/utils.js';function _0x54a5(){var _0x31bec2=['2BOGFXG','updatePinned','createdAt','2062302Xzhjlm','title','8424AxniVY','4879050toikqe','1864684pQqKfq','1874736yfnKUw','updateTitle','set','443249GJFhOq','updatedAt','978940LpyyfL','3JajPVX','pinned','1547oboZAD'];_0x54a5=function(){return _0x31bec2;};return _0x54a5();}import{escape as _0x1b5d2f}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x4c5e14(){['id'];[_0x2053a8(0xf3)];constructor({id:_0x569e7b,title:_0x3f0d54,createdAt:_0x1b520f,updatedAt:_0x366b0c,pinned:_0x5dd220}){var _0x19850d=_0x2053a8;super(),this['id']=_0x569e7b,this[_0x19850d(0xf3)]=new Date(_0x1b520f),this[_0x19850d(0xfb)](_0x19850d(0xf5),_0x3f0d54),this[_0x19850d(0xfb)](_0x19850d(0xfd),_0x366b0c?new Date(_0x366b0c):null),this[_0x19850d(0xfb)](_0x19850d(0x100),_0x5dd220||!0x1);}[_0x2053a8(0xfa)](_0x3365b9){var _0x358214=_0x2053a8;this[_0x358214(0xfb)](_0x358214(0xf5),_0x1b5d2f(_0x3365b9)),this[_0x358214(0xfd)]=new Date();}[_0x2053a8(0xf2)](_0x2a106d){var _0x58b37b=_0x2053a8;this[_0x58b37b(0xfb)](_0x58b37b(0x100),_0x2a106d),this[_0x58b37b(0xfd)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x158bb8=_0x4b38;(function(_0x2dd537,_0x4f1273){const _0x45ac06=_0x4b38,_0xf27410=_0x2dd537();while(!![]){try{const _0x207b95=-parseInt(_0x45ac06(0x16d))/0x1+parseInt(_0x45ac06(0x12d))/0x2+-parseInt(_0x45ac06(0x11f))/0x3*(-parseInt(_0x45ac06(0x11a))/0x4)+-parseInt(_0x45ac06(0x129))/0x5*(-parseInt(_0x45ac06(0x13b))/0x6)+parseInt(_0x45ac06(0x14d))/0x7+-parseInt(_0x45ac06(0x136))/0x8+-parseInt(_0x45ac06(0x114))/0x9;if(_0x207b95===_0x4f1273)break;else _0xf27410['push'](_0xf27410['shift']());}catch(_0x25fff2){_0xf27410['push'](_0xf27410['shift']());}}}(_0x227a,0x4ce4e));import{ListItemView as _0x1a1800,HighlightedTextView as _0x24405f,ButtonView as _0x208e23,ListView as _0x3e7a48,IconView as _0x501852,createDropdown as _0x1a0779,InputTextView as _0x1b9a4c}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0xa3ed46,IconPin as _0x5f4df5,IconCheck as _0x2e8f8e,IconCancel as _0x23393c}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x377c7c,ConfirmMixin as _0x557f3c}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x4b38(_0x569372,_0x52f20b){const _0x227ac9=_0x227a();return _0x4b38=function(_0x4b3899,_0x27c757){_0x4b3899=_0x4b3899-0x112;let _0x429d33=_0x227ac9[_0x4b3899];return _0x429d33;},_0x4b38(_0x569372,_0x52f20b);}function _0x227a(){const _0x597d63=['ck-confirm-view-cancel','set','listitem','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','extendTemplate','addMany','buttonView','ck-confirm-view-submit','234005GfhhiA','edit:cancel','actions','setConversationPinned','571810WExkTv','_createPinButtonView','clear','_titleView','locale','label','isEdit','value','AI_CHAT_HISTORY_EDIT_NAME','219320tZcMWr','updateTitle','pinned','mainContent','showConfirm','12PhEEBb','AI_CHAT_HISTORY_LOADING_UNPINNING','text','loadingState','_createAcceptEditButtonView','change:isEdit','ck-ai-chat-history__item','then','AI_CHAT_HISTORY_REMOVE_CONFIRM','click','AI_CHAT_HISTORY_ACCEPT','updateLoadingState','match','removeConversation','isMatching','panelPosition','AI_CHAT_HISTORY_PIN_BUTTON','bindTemplate','3319547DSORwN','panelView','fire','key','ck-ai-chat-history__item-check-container','_createCheckView','createCollection','span','ck-ai-chat-history__item-content','ck-ai-chat-history__item-check','tiny','execute','children','AI_CHAT_HISTORY_LOADING_PINNING','element','ck-ai-chat-history__item-main-content','ck-ai-loader__text','ck-ai-chat-history__item--edit','AI_CHAT_HISTORY_LOADING_RENAMING','selectConversation','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_CANCEL','_createCancelEditButtonView','add','items','focus','bind','AI_CHAT_HISTORY_REMOVE','ck-ai-chat-history__item--active','setTemplate','editConversationTitle','withText','186294oKhBQe','ck-ai-chat-history__item-title','highlightText','string','isOn','ck-ai-loader','ck-ai-chat-history__item-actions','isVisible','4725918AuwvEJ','_createSpinnerView','Enter','_createMenuDropdownView','ck-ai-chat-history__item-row','LOADING_LABELS','800164qluUAp','_commitEditInputValue','div','ck-hidden','_createEditInputView','3xsWjfm','ck-ai-chat-history__item-date'];_0x227a=function(){return _0x597d63;};return _0x227a();}import{escape as _0x52d70d}from'es-toolkit/compat';import{AISpinnerView as _0x48fc87}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x46776e}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x557f3c(_0x1a1800){['id'];static [_0x158bb8(0x119)]={'remove':_0x158bb8(0x161),'rename':_0x158bb8(0x15f),'pin':_0x158bb8(0x15a),'unpin':_0x158bb8(0x13c)};[_0x158bb8(0x12b)];[_0x158bb8(0x139)];[_0x158bb8(0x130)];constructor(_0x4c7157,_0x2e91eb){const _0x1e9676=_0x158bb8;super(_0x4c7157);const _0xaa3b05=this[_0x1e9676(0x14c)];this[_0x1e9676(0x122)](_0x1e9676(0x133),!0x1),this[_0x1e9676(0x122)](_0x1e9676(0x113),!0x0),this[_0x1e9676(0x122)](_0x1e9676(0x138),!!_0x2e91eb[_0x1e9676(0x138)]),this[_0x1e9676(0x122)](_0x1e9676(0x13e),null),this['id']=_0x2e91eb['id'];const {title:_0x4102a3,createdAt:_0x3fe370,active:_0x4118d3=!0x1}=_0x2e91eb;this[_0x1e9676(0x130)]=new _0x24405f(),this[_0x1e9676(0x130)][_0x1e9676(0x13d)]=_0x4102a3,this[_0x1e9676(0x130)][_0x1e9676(0x125)]({'attributes':{'class':[_0x1e9676(0x16e)]}});const _0x5913b5=this[_0x1e9676(0x152)](),_0x15deba=this[_0x1e9676(0x12e)](_0x4c7157),_0x2c0808=this[_0x1e9676(0x117)](),_0x732e69=this[_0x1e9676(0x11e)](_0x4c7157,_0x4102a3),_0x4e147f=this[_0x1e9676(0x13f)](_0x4c7157,_0x732e69),_0x59c437=this[_0x1e9676(0x163)](_0x4c7157,_0x732e69);this[_0x1e9676(0x12b)]=this[_0x1e9676(0x153)](),this[_0x1e9676(0x139)]=this[_0x1e9676(0x153)](),this[_0x1e9676(0x139)][_0x1e9676(0x164)](this[_0x1e9676(0x130)]),this[_0x1e9676(0x12b)][_0x1e9676(0x164)](_0x15deba),this[_0x1e9676(0x12b)][_0x1e9676(0x164)](_0x2c0808),this['on'](_0x1e9676(0x140),(_0x38c041,_0x19e81e,_0x3b1562)=>{const _0x26cc4c=_0x1e9676;this[_0x26cc4c(0x12b)][_0x26cc4c(0x12f)](),this[_0x26cc4c(0x139)][_0x26cc4c(0x12f)](),_0x3b1562?(this[_0x26cc4c(0x12b)][_0x26cc4c(0x164)](_0x4e147f),this[_0x26cc4c(0x12b)][_0x26cc4c(0x164)](_0x59c437),this[_0x26cc4c(0x139)][_0x26cc4c(0x164)](_0x732e69),_0x732e69[_0x26cc4c(0x15b)][_0x26cc4c(0x166)]()):(this[_0x26cc4c(0x12b)][_0x26cc4c(0x164)](_0x15deba),this[_0x26cc4c(0x12b)][_0x26cc4c(0x164)](_0x2c0808),this[_0x26cc4c(0x139)][_0x26cc4c(0x164)](this[_0x26cc4c(0x130)]));}),this[_0x1e9676(0x16a)]({'tag':'li','attributes':{'class':[_0x1e9676(0x141),_0x4118d3?_0x1e9676(0x169):'',_0xaa3b05['if'](_0x1e9676(0x113),_0x1e9676(0x11d),_0x21608f=>!_0x21608f),_0xaa3b05['if'](_0x1e9676(0x133),_0x1e9676(0x15e))],'role':_0x1e9676(0x123)},'children':[{'tag':_0x1e9676(0x154),'attributes':{'class':[_0x1e9676(0x151)]},'children':[{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x156),_0xaa3b05['if'](_0x1e9676(0x13e),_0x1e9676(0x11d),_0x1c9fbd=>!!_0x1c9fbd)]},'children':_0x4118d3?[_0x5913b5]:[]},{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x172),_0xaa3b05['if'](_0x1e9676(0x13e),_0x1e9676(0x11d),_0x16e689=>!_0x16e689)]},'children':[this[_0x1e9676(0x115)]()]}]},{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x118)]},'children':[{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x155)]},'on':{'click':this[_0x1e9676(0x14c)]['to'](_0x1e9676(0x144))},'children':[{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x15c)]},'children':[{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x16e),_0xaa3b05['if'](_0x1e9676(0x13e),_0x1e9676(0x11d),_0x108c6d=>!!_0x108c6d)]},'children':this[_0x1e9676(0x139)]},{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x15d),_0xaa3b05['if'](_0x1e9676(0x13e),_0x1e9676(0x11d),_0x3a24d9=>!_0x3a24d9)]},'children':[{'text':_0xaa3b05['to'](_0x1e9676(0x13e),_0x2229ce=>_0x2229ce?_0x46776e(this[_0x1e9676(0x131)],AIChatHistoryListItemView[_0x1e9676(0x119)][_0x2229ce]):'')}]}]},{'tag':_0x1e9676(0x154),'attributes':{'class':[_0x1e9676(0x120)]},'children':[_0x3fe370]}]},{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x112)]},'children':this[_0x1e9676(0x12b)]}]}]}),this['on'](_0x1e9676(0x144),()=>{const _0x504634=_0x1e9676;this[_0x504634(0x133)]||this[_0x504634(0x14f)](_0x504634(0x160),{'id':this['id']});});}[_0x158bb8(0x137)](_0x2691c0){const _0x5cc3a9=_0x158bb8;this[_0x5cc3a9(0x130)][_0x5cc3a9(0x13d)]=_0x52d70d(_0x2691c0);}[_0x158bb8(0x146)](_0x29c3b6,_0x2be0ff){const _0x56eaed=_0x158bb8;this[_0x56eaed(0x122)](_0x56eaed(0x13e),_0x2be0ff?_0x29c3b6:null);}[_0x158bb8(0x152)](){const _0x197b35=_0x158bb8,_0x51036c=new _0x501852();return _0x51036c[_0x197b35(0x122)]({'content':_0x2e8f8e}),_0x51036c;}[_0x158bb8(0x12e)](_0x1f41bb){const _0x4af001=_0x158bb8,_0x9b3f24=new _0x208e23(_0x1f41bb);return _0x9b3f24[_0x4af001(0x122)]({'label':_0x46776e(_0x1f41bb,_0x4af001(0x14b)),'icon':_0x5f4df5,'withText':!0x1,'tooltip':!0x0}),_0x9b3f24[_0x4af001(0x167)](_0x4af001(0x171))['to'](this,_0x4af001(0x138)),_0x9b3f24['on'](_0x4af001(0x158),()=>{const _0x5473f9=_0x4af001,_0x20b143=!this[_0x5473f9(0x138)];this[_0x5473f9(0x14f)](_0x5473f9(0x12c),{'id':this['id'],'pinned':_0x20b143});}),_0x9b3f24;}[_0x158bb8(0x117)](){const _0x4c0272=_0x158bb8,_0x112491=_0x1a0779(this[_0x4c0272(0x131)],_0x377c7c),_0x1b3ed4=_0x112491[_0x4c0272(0x14e)][_0x4c0272(0x159)];_0x112491[_0x4c0272(0x127)][_0x4c0272(0x122)]({'label':_0x46776e(this[_0x4c0272(0x131)],_0x4c0272(0x124)),'icon':_0xa3ed46}),_0x112491[_0x4c0272(0x14a)]='sw';const _0x4b3ded=new _0x208e23(this[_0x4c0272(0x131)]);_0x4b3ded[_0x4c0272(0x132)]=_0x46776e(this[_0x4c0272(0x131)],_0x4c0272(0x135)),_0x4b3ded[_0x4c0272(0x16c)]=!0x0,_0x4b3ded['on'](_0x4c0272(0x158),()=>{const _0x5e8bd7=_0x4c0272;this[_0x5e8bd7(0x133)]=!0x0;});const _0x8abc64=new _0x208e23(this[_0x4c0272(0x131)]);_0x8abc64[_0x4c0272(0x132)]=_0x46776e(this[_0x4c0272(0x131)],_0x4c0272(0x168)),_0x8abc64[_0x4c0272(0x16c)]=!0x0,_0x8abc64['on'](_0x4c0272(0x158),()=>{const _0x407462=_0x4c0272;this[_0x407462(0x13a)](_0x46776e(this[_0x407462(0x131)],_0x407462(0x143)),this[_0x407462(0x15b)])[_0x407462(0x142)](()=>{const _0x23688b=_0x407462;this[_0x23688b(0x14f)](_0x23688b(0x148),{'id':this['id']});});});const _0xf801b8=new _0x3e7a48(this[_0x4c0272(0x131)]),_0x4d3c6a=new _0x1a1800(this[_0x4c0272(0x131)]);_0x4d3c6a[_0x4c0272(0x159)][_0x4c0272(0x164)](_0x4b3ded);const _0x4cb516=new _0x1a1800(this[_0x4c0272(0x131)]);return _0x4cb516[_0x4c0272(0x159)][_0x4c0272(0x164)](_0x8abc64),_0xf801b8[_0x4c0272(0x165)][_0x4c0272(0x126)]([_0x4d3c6a,_0x4cb516]),_0x1b3ed4[_0x4c0272(0x164)](_0xf801b8),_0x112491;}[_0x158bb8(0x11e)](_0x2e4c83,_0x12821e){const _0x4ba200=_0x158bb8,_0x444344=new _0x1b9a4c(_0x2e4c83),_0x3014df=_0x444344[_0x4ba200(0x14c)];return _0x444344[_0x4ba200(0x134)]=_0x12821e,_0x444344[_0x4ba200(0x125)]({'on':{'keydown':_0x3014df['to'](_0x1ac703=>{const _0x3ab2a1=_0x4ba200;_0x3ab2a1(0x116)==_0x1ac703[_0x3ab2a1(0x150)]&&this[_0x3ab2a1(0x11b)](_0x444344);})}}),_0x444344;}[_0x158bb8(0x13f)](_0x165831,_0x1885df){const _0x2d903c=_0x158bb8,_0x68ce23=new _0x208e23(_0x165831);return _0x68ce23[_0x2d903c(0x122)]({'icon':_0x2e8f8e,'withText':!0x1,'tooltip':_0x46776e(_0x165831,_0x2d903c(0x145))}),_0x68ce23[_0x2d903c(0x125)]({'attributes':{'class':[_0x2d903c(0x128)]}}),_0x68ce23['on'](_0x2d903c(0x158),()=>{const _0x4d285e=_0x2d903c;this[_0x4d285e(0x11b)](_0x1885df);}),_0x68ce23;}[_0x158bb8(0x11b)](_0x168c08){const _0x459a48=_0x158bb8,_0x5c9e70=_0x168c08[_0x459a48(0x15b)][_0x459a48(0x134)]||'';this[_0x459a48(0x130)][_0x459a48(0x13d)]=_0x5c9e70,this[_0x459a48(0x133)]=!0x1,this[_0x459a48(0x14f)](_0x459a48(0x16b),{'id':this['id'],'title':_0x5c9e70});}[_0x158bb8(0x163)](_0x1f4aba,_0x3a2916){const _0x1e4ab3=_0x158bb8,_0x1c0f1d=new _0x208e23(_0x1f4aba);return _0x1c0f1d[_0x1e4ab3(0x122)]({'icon':_0x23393c,'withText':!0x1,'tooltip':_0x46776e(_0x1f4aba,_0x1e4ab3(0x162))}),_0x1c0f1d[_0x1e4ab3(0x125)]({'attributes':{'class':[_0x1e4ab3(0x121)]}}),_0x1c0f1d['on'](_0x1e4ab3(0x158),()=>{const _0xd3cd14=_0x1e4ab3;this[_0xd3cd14(0x133)]=!0x1,_0x3a2916[_0xd3cd14(0x134)]=this[_0xd3cd14(0x130)][_0xd3cd14(0x13d)]||'',this[_0xd3cd14(0x14f)](_0xd3cd14(0x12a));}),_0x1c0f1d;}[_0x158bb8(0x115)](){const _0x33e7e4=_0x158bb8,_0x57f074=new _0x48fc87(_0x33e7e4(0x157));return _0x57f074[_0x33e7e4(0x113)]=!0x0,_0x57f074;}[_0x158bb8(0x149)](_0x2dac56){const _0x2a010b=_0x158bb8;return this[_0x2a010b(0x130)]&&_0x2a010b(0x170)==typeof this[_0x2a010b(0x130)][_0x2a010b(0x13d)]&&this[_0x2a010b(0x130)][_0x2a010b(0x13d)][_0x2a010b(0x147)](_0x2dac56)?{'title':!0x0}:null;}[_0x158bb8(0x16f)](_0x56bbef){const _0x1e6a6e=_0x158bb8;this[_0x1e6a6e(0x130)][_0x1e6a6e(0x16f)](_0x56bbef);}}
|