@ckeditor/ckeditor5-ai 47.2.0-alpha.1 → 47.2.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/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
|
+
const _0x16f9e1=_0x4d01;(function(_0x3ae760,_0x504db7){const _0x307c8a=_0x4d01,_0x3edd08=_0x3ae760();while(!![]){try{const _0x46142b=parseInt(_0x307c8a(0xca))/0x1*(parseInt(_0x307c8a(0xa5))/0x2)+parseInt(_0x307c8a(0x7f))/0x3+-parseInt(_0x307c8a(0x94))/0x4*(parseInt(_0x307c8a(0xcb))/0x5)+parseInt(_0x307c8a(0x7b))/0x6+parseInt(_0x307c8a(0xa9))/0x7*(-parseInt(_0x307c8a(0xaa))/0x8)+parseInt(_0x307c8a(0x7a))/0x9+parseInt(_0x307c8a(0xd2))/0xa*(-parseInt(_0x307c8a(0xb4))/0xb);if(_0x46142b===_0x504db7)break;else _0x3edd08['push'](_0x3edd08['shift']());}catch(_0x4bd1dd){_0x3edd08['push'](_0x3edd08['shift']());}}}(_0x3c51,0x84a35));import{KeystrokeHandler as _0x3c7de8}from'ckeditor5/src/utils.js';function _0x4d01(_0x1612a4,_0x2f8cd8){const _0x3c5121=_0x3c51();return _0x4d01=function(_0x4d013f,_0xd7ec3f){_0x4d013f=_0x4d013f-0x72;let _0x3611c7=_0x3c5121[_0x4d013f];return _0x3611c7;},_0x4d01(_0x1612a4,_0x2f8cd8);}import{BalloonPanelView as _0x1efe50,BodyCollection as _0x5420d5,ButtonView as _0x31958d,clickOutsideHandler as _0xf25303,ListItemButtonView as _0x49dba3,ListItemView as _0x5ba640,ListView as _0x5927df,SplitButtonView as _0x5e5ecc,UIModel as _0x48991c,View as _0xa24b91}from'ckeditor5/src/ui.js';import{IconCheck as _0xfc9a63,IconAddComment as _0x3811a9,IconDocumentWithLoupe as _0x1f8968}from'ckeditor5/src/icons.js';import{getTranslation as _0x53e010}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x16f9e1(0xbc),_0x16f9e1(0xc8),_0x16f9e1(0x8a)];export class AIChatFeedSuggestionItemActionsView extends _0xa24b91{[_0x16f9e1(0xc5)];[_0x16f9e1(0x80)];[_0x16f9e1(0xa8)];[_0x16f9e1(0xb0)];[_0x16f9e1(0x79)];[_0x16f9e1(0x76)]=0x1;[_0x16f9e1(0x88)];[_0x16f9e1(0x9e)];[_0x16f9e1(0xd1)]=!0x0;constructor(_0x554497,_0x30811d){const _0x3fe7c2=_0x16f9e1;super(_0x554497),this[_0x3fe7c2(0x88)]=_0x30811d||[...AI_REPLY_ACTIONS],this[_0x3fe7c2(0x9e)]=[...this[_0x3fe7c2(0x88)]];const _0x5d1705=this[_0x3fe7c2(0x98)];this[_0x3fe7c2(0x86)](_0x3fe7c2(0x83),!0x0),this[_0x3fe7c2(0x86)](_0x3fe7c2(0x8b),!0x0),this[_0x3fe7c2(0x86)](_0x3fe7c2(0x92),!0x1),this[_0x3fe7c2(0xa8)]=new _0x48991c({'label':Hn(_0x3fe7c2(0xbc),_0x554497,this[_0x3fe7c2(0x76)]),'icon':_0xfc9a63,'withText':!0x0,'type':_0x3fe7c2(0x78),'actionName':_0x3fe7c2(0xbc)}),this[_0x3fe7c2(0xb0)]=new _0x48991c({'label':Hn(_0x3fe7c2(0x8a),_0x554497,this[_0x3fe7c2(0x76)]),'icon':_0x1f8968,'withText':!0x0,'type':_0x3fe7c2(0x78),'actionName':_0x3fe7c2(0x8a)}),this[_0x3fe7c2(0x79)]=new _0x48991c({'label':Hn(_0x3fe7c2(0xc8),_0x554497,this[_0x3fe7c2(0x76)]),'icon':_0x3811a9,'withText':!0x0,'type':_0x3fe7c2(0x78),'actionName':_0x3fe7c2(0xc8)}),this[_0x3fe7c2(0xc5)]=this[_0x3fe7c2(0x9a)](_0x554497),this[_0x3fe7c2(0x80)]=this[_0x3fe7c2(0x7c)](),this[_0x3fe7c2(0xc5)]&&this[_0x3fe7c2(0x80)][_0x3fe7c2(0xa3)](this[_0x3fe7c2(0xc5)]),this[_0x3fe7c2(0x9b)]({'tag':_0x3fe7c2(0xb1),'attributes':{'class':['ck',_0x3fe7c2(0x93),_0x5d1705['if'](_0x3fe7c2(0x8b),_0x3fe7c2(0x75),_0xed1f1c=>!_0xed1f1c)]},'children':this[_0x3fe7c2(0x80)]}),this['on'](_0x3fe7c2(0xba),()=>{const _0x19ff70=_0x3fe7c2;this[_0x19ff70(0x9e)]=this[_0x19ff70(0x92)]?this[_0x19ff70(0x88)][_0x19ff70(0x85)](_0x364f2b=>_0x19ff70(0xbc)!==_0x364f2b):[...this[_0x19ff70(0x88)]],this[_0x19ff70(0x7e)](_0x554497);});}[_0x16f9e1(0x7e)](_0x4932a7){const _0x380cb4=_0x16f9e1;this[_0x380cb4(0xc5)]&&this[_0x380cb4(0x80)][_0x380cb4(0x81)](this[_0x380cb4(0xc5)])&&(this[_0x380cb4(0x80)][_0x380cb4(0xc7)](this[_0x380cb4(0xc5)]),this[_0x380cb4(0xc5)][_0x380cb4(0x8d)]()),this[_0x380cb4(0xc5)]=this[_0x380cb4(0x9a)](_0x4932a7),this[_0x380cb4(0xc5)]&&this[_0x380cb4(0x80)][_0x380cb4(0xa3)](this[_0x380cb4(0xc5)]);}[_0x16f9e1(0x9a)](_0x1d4837){const _0x480cd6=_0x16f9e1;if(0x0==this[_0x480cd6(0x9e)][_0x480cd6(0x74)])return null;const _0x21cd9f=0x1===this[_0x480cd6(0x9e)][_0x480cd6(0x74)]?this[_0x480cd6(0x77)](_0x1d4837):this[_0x480cd6(0x97)](_0x1d4837),_0x3f14f7=this[_0x480cd6(0xd1)]?'':_0x480cd6(0xb6);_0x21cd9f[_0x480cd6(0x86)]({'label':Hn(this[_0x480cd6(0x9e)][0x0],_0x1d4837,this[_0x480cd6(0x76)]),'tooltip':Ln(this[_0x480cd6(0x9e)][0x0],_0x1d4837,this[_0x480cd6(0x76)]),'withText':!0x0,'class':_0x480cd6(0xd0)+_0x3f14f7});for(const _0x958ca3 of this[_0x480cd6(0x9e)])_0x21cd9f['on'](_0x958ca3,()=>{const _0x38c00f=_0x480cd6;this[_0x38c00f(0xc6)](_0x958ca3);});return this[_0x480cd6(0xd1)]=!0x1,_0x21cd9f;}[_0x16f9e1(0x77)](_0x423233){const _0x5f109d=_0x16f9e1,_0x22c549=new _0x31958d(_0x423233);return _0x22c549[_0x5f109d(0x86)]({'class':_0x5f109d(0xcf),'withText':!0x0}),_0x22c549['on'](_0x5f109d(0xac),()=>{const _0x492267=_0x5f109d;_0x22c549[_0x492267(0xc6)](this[_0x492267(0x9e)][0x0]);}),_0x22c549;}[_0x16f9e1(0x97)](_0x169a5b){const _0x568fae=_0x16f9e1,_0x406d25=new Gn(_0x169a5b,{'listItemModels':this[_0x568fae(0x9e)][_0x568fae(0xa1)](_0x530f3f=>{const _0x414050=_0x568fae;switch(_0x530f3f){case _0x414050(0xbc):return this[_0x414050(0xa8)];case _0x414050(0x8a):return this[_0x414050(0xb0)];case _0x414050(0xc8):return this[_0x414050(0x79)];}})});return _0x406d25[_0x568fae(0x86)]({'label':Hn(this[_0x568fae(0x9e)][0x0],_0x169a5b,this[_0x568fae(0x76)]),'tooltip':Ln(this[_0x568fae(0x9e)][0x0],_0x169a5b,this[_0x568fae(0x76)]),'withText':!0x0,'class':_0x568fae(0x93),'balloonPanelClass':_0x568fae(0x73)}),_0x406d25[_0x568fae(0xad)](_0x568fae(0x83))['to'](this),_0x406d25;}[_0x16f9e1(0xc0)](_0x576f17){const _0x3ed728=_0x16f9e1,_0x5baca3=this[_0x3ed728(0x9c)];this[_0x3ed728(0x76)]=_0x576f17||this[_0x3ed728(0x76)],this[_0x3ed728(0xc5)][_0x3ed728(0x86)]({'label':Hn(this[_0x3ed728(0x9e)][0x0],_0x5baca3,this[_0x3ed728(0x76)]),'tooltip':Ln(this[_0x3ed728(0x9e)][0x0],_0x5baca3,this[_0x3ed728(0x76)])}),this[_0x3ed728(0xa8)][_0x3ed728(0x9f)]=Hn(_0x3ed728(0xbc),_0x5baca3,this[_0x3ed728(0x76)]),this[_0x3ed728(0xb0)][_0x3ed728(0x9f)]=Hn(_0x3ed728(0x8a),_0x5baca3,this[_0x3ed728(0x76)]),this[_0x3ed728(0x79)][_0x3ed728(0x9f)]=Hn(_0x3ed728(0xc8),_0x5baca3,this[_0x3ed728(0x76)]);}}class Gn extends _0x5e5ecc{[_0x16f9e1(0xa7)];[_0x16f9e1(0x84)];[_0x16f9e1(0x96)];[_0x16f9e1(0xb8)];constructor(_0x24b93d,_0x57ce8f){const _0x290dea=_0x16f9e1;super(_0x24b93d),this[_0x290dea(0x84)]=new _0x1efe50(this[_0x290dea(0x9c)]),this[_0x290dea(0xa7)]=new _0x5420d5(this[_0x290dea(0x9c)]),this[_0x290dea(0xa7)][_0x290dea(0x8c)](),this[_0x290dea(0x86)](_0x290dea(0xa0),''),this[_0x290dea(0x84)][_0x290dea(0xad)](_0x290dea(0xb9))['to'](this,_0x290dea(0xa0)),this[_0x290dea(0x96)]=this[_0x290dea(0xce)](_0x57ce8f[_0x290dea(0xa4)][_0x290dea(0xa2)](0x1)),this[_0x290dea(0xa7)][_0x290dea(0xa3)](this[_0x290dea(0x84)]),this[_0x290dea(0x84)][_0x290dea(0x7d)][_0x290dea(0xa3)](this[_0x290dea(0x96)]),this[_0x290dea(0x72)][_0x290dea(0x82)](_0x290dea(0xaf)),this[_0x290dea(0x72)][_0x290dea(0x86)](_0x290dea(0xaf),_0x53e010(this[_0x290dea(0x9c)],_0x290dea(0x8f))),this[_0x290dea(0xc4)](),this['on'](_0x290dea(0xac),()=>{const _0x590059=_0x290dea,_0x596c05=_0x57ce8f[_0x590059(0xa4)][0x0][_0x590059(0x8e)];this[_0x590059(0xc6)](_0x596c05),this[_0x590059(0x84)][_0x590059(0x91)](),this[_0x590059(0x72)][_0x590059(0xb2)]();}),this['on'](_0x290dea(0x90),()=>{const _0x1cadc3=_0x290dea;this[_0x1cadc3(0x84)][_0x1cadc3(0x8b)]?(this[_0x1cadc3(0x84)][_0x1cadc3(0x91)](),this[_0x1cadc3(0x72)][_0x1cadc3(0xb2)]()):(this[_0x1cadc3(0x84)][_0x1cadc3(0xcd)]({'target':this[_0x1cadc3(0xbf)],'positions':[_0x1cadc3(0xc3)===this[_0x1cadc3(0x9c)][_0x1cadc3(0xbe)]?yn:Pn]}),this[_0x1cadc3(0x96)][_0x1cadc3(0xb2)]());}),_0xf25303({'emitter':this[_0x290dea(0x84)],'callback':()=>{const _0x1ef9ff=_0x290dea;this[_0x1ef9ff(0x84)][_0x1ef9ff(0x91)]();},'activator':()=>this[_0x290dea(0x84)][_0x290dea(0x8b)],'contextElements':()=>[this[_0x290dea(0xbf)],this[_0x290dea(0x84)][_0x290dea(0xbf)]]});}[_0x16f9e1(0xce)](_0x3a9645){const _0x5a9797=_0x16f9e1,_0x507562=this[_0x5a9797(0x9c)],_0x28243a=new _0x5927df(_0x507562);for(const _0x1a2688 of _0x3a9645){const _0x5b662f=new _0x5ba640(_0x507562),_0x1a6f95=new _0x49dba3(_0x507562);_0x1a6f95[_0x5a9797(0xad)](...Object[_0x5a9797(0xa6)](_0x1a2688))['to'](_0x1a2688),_0x1a6f95[_0x5a9797(0x99)](_0x5a9797(0xac))['to'](_0x28243a),_0x5b662f[_0x5a9797(0x80)][_0x5a9797(0xa3)](_0x1a6f95),_0x28243a[_0x5a9797(0xc9)][_0x5a9797(0xa3)](_0x5b662f);}return _0x28243a[_0x5a9797(0xc9)][_0x5a9797(0x99)](_0x5a9797(0xac))['to'](this),_0x28243a['on'](_0x5a9797(0xac),_0x26513e=>{const _0x17b57b=_0x5a9797,_0x2a505b=_0x26513e[_0x17b57b(0xae)];this[_0x17b57b(0xc6)](_0x2a505b[_0x17b57b(0x8e)]),this[_0x17b57b(0x84)][_0x17b57b(0x91)](),this[_0x17b57b(0x72)][_0x17b57b(0xb2)]();}),_0x28243a;}[_0x16f9e1(0xc4)](){const _0x413009=_0x16f9e1;this[_0x413009(0xb8)]=new _0x3c7de8(),this[_0x413009(0xb8)][_0x413009(0xc2)](this[_0x413009(0x84)][_0x413009(0xbf)]),this[_0x413009(0xb8)][_0x413009(0x86)](_0x413009(0x87),(_0x493413,_0x4c16f9)=>{const _0x29d0b9=_0x413009;this[_0x29d0b9(0x84)][_0x29d0b9(0x91)](),this[_0x29d0b9(0x72)][_0x29d0b9(0xb2)](),_0x4c16f9();});}[_0x16f9e1(0x8d)](){const _0x395b47=_0x16f9e1;super[_0x395b47(0x8d)](),this[_0x395b47(0xb8)][_0x395b47(0x8d)](),this[_0x395b47(0x84)][_0x395b47(0x8d)](),this[_0x395b47(0xa7)][_0x395b47(0xbd)]();}}function _0x3c51(){const _0x5a8b0b=['button','insertSuggestionModel','9741708VsAntK','3782154etLAAm','createCollection','content','_updateDropdownActions','2026662pvCqEv','children','has','unbind','isEnabled','balloonPanelView','filter','set','esc','_dropdownOriginalConfig','bottom','showChangeInText','isVisible','attachToDom','destroy','actionName','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','open','hide','isTrackChangesOn','ck-ai-chat__feed__ai-suggestion__actions','20hDHpvI','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','listView','_createActionsDropdown','bindTemplate','delegate','_createActionsDropdownOrButton','setTemplate','locale','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','_dropdownCurrentConfig','label','balloonPanelClass','map','slice','add','listItemModels','494iqiSXi','keys','bodyCollection','applySuggestionModel','1442EpLyCH','11384HehHQq','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','execute','bind','source','tooltip','showChangeInTextModel','div','focus','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','55vNRrDy','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','ck-ai-chat__feed__ai-suggestion__actions--no-animation','width','keystrokeHandler','class','change:isTrackChangesOn','arrowless','applySuggestion','detachFromDom','uiLanguageDirection','element','updateLabels','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','listenTo','ltr','_setUpKeystrokes','actionsButton','fire','remove','insertSuggestion','items','4009izseji','382595XqwqNA','left','pin','_setUpList','ck-ai-button-primary','ck-ai-chat__feed__ai-suggestion__actions\x20','_firstRender','4319060NNufxC','arrowView','ck-ai-chat__feed__ai-suggestion__actions__balloon','length','ck-hidden','_partsCount','_createActionsButton'];_0x3c51=function(){return _0x5a8b0b;};return _0x3c51();}function yn(_0x59c481){const _0xaf6ffa=_0x16f9e1;return{'top':_0x59c481[_0xaf6ffa(0x89)],'left':_0x59c481[_0xaf6ffa(0xcc)],'name':_0xaf6ffa(0xbb),'config':{'withArrow':!0x1}};}function Pn(_0x3e29b2,_0x346288){const _0x33c341=_0x16f9e1;return{'top':_0x3e29b2[_0x33c341(0x89)],'left':_0x3e29b2[_0x33c341(0xcc)]-(_0x346288[_0x33c341(0xb7)]-_0x3e29b2[_0x33c341(0xb7)]),'name':_0x33c341(0xbb),'config':{'withArrow':!0x1}};}function Hn(_0x496022,_0x36ae1f,_0x478acf){const _0x446c59=_0x16f9e1;switch(_0x496022){case _0x446c59(0xbc):return _0x53e010(_0x36ae1f,_0x446c59(0xb5),_0x478acf);case _0x446c59(0x8a):return _0x53e010(_0x36ae1f,_0x446c59(0xab),_0x478acf);case _0x446c59(0xc8):return _0x53e010(_0x36ae1f,_0x446c59(0xc1),_0x478acf);}}function Ln(_0x219d08,_0x18b222,_0x36a434){const _0x146b94=_0x16f9e1;switch(_0x219d08){case _0x146b94(0xbc):return _0x53e010(_0x18b222,_0x146b94(0xb3),_0x36a434);case _0x146b94(0x8a):return _0x53e010(_0x18b222,_0x146b94(0x95),_0x36a434);case _0x146b94(0xc8):return _0x53e010(_0x18b222,_0x146b94(0x9d),_0x36a434);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x16a6de=_0xb85a;(function(_0x18d326,_0x48c28a){var _0x4fd12e=_0xb85a,_0x5315f2=_0x18d326();while(!![]){try{var _0x577998=-parseInt(_0x4fd12e(0x189))/0x1+-parseInt(_0x4fd12e(0x17e))/0x2*(-parseInt(_0x4fd12e(0x198))/0x3)+parseInt(_0x4fd12e(0x18f))/0x4+-parseInt(_0x4fd12e(0x185))/0x5*(parseInt(_0x4fd12e(0x196))/0x6)+-parseInt(_0x4fd12e(0x192))/0x7*(parseInt(_0x4fd12e(0x18e))/0x8)+-parseInt(_0x4fd12e(0x177))/0x9+-parseInt(_0x4fd12e(0x175))/0xa*(-parseInt(_0x4fd12e(0x182))/0xb);if(_0x577998===_0x48c28a)break;else _0x5315f2['push'](_0x5315f2['shift']());}catch(_0x1c4a2a){_0x5315f2['push'](_0x5315f2['shift']());}}}(_0x2ef2,0x9d478));import{AIChatFeedItemView as _0x369a6b}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x2bb7b3}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0xb85a(_0x15f8f0,_0x50172b){var _0x2ef27f=_0x2ef2();return _0xb85a=function(_0xb85a02,_0x476095){_0xb85a02=_0xb85a02-0x171;var _0xc385b1=_0x2ef27f[_0xb85a02];return _0xc385b1;},_0xb85a(_0x15f8f0,_0x50172b);}import{AIChatFeedSuggestionItemActionsView as _0x1e9476}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x369a6b{[_0x16a6de(0x19b)];[_0x16a6de(0x18d)];constructor(_0x13cf72,_0x5a3709){var _0x4382ca=_0x16a6de;super(_0x5a3709),this[_0x4382ca(0x174)](_0x4382ca(0x17d),!0x1),this[_0x4382ca(0x19b)]=new _0x2bb7b3(_0x13cf72,{'showDiff':_0x5a3709[_0x4382ca(0x194)],'areActionsDisabled':_0x5a3709[_0x4382ca(0x18b)],'availableActions':_0x5a3709[_0x4382ca(0x181)]}),this[_0x4382ca(0x19b)]['on'](_0x4382ca(0x178),(_0x3f1287,_0x2d7d5c)=>{var _0x13f63f=_0x4382ca;this[_0x13f63f(0x183)](_0x13f63f(0x178),{'replyId':this[_0x13f63f(0x19e)]['id'],'showDiff':_0x2d7d5c[_0x13f63f(0x194)]});}),this[_0x4382ca(0x19b)]['on'](_0x4382ca(0x171),()=>{var _0x1e6e1f=_0x4382ca;this[_0x1e6e1f(0x183)](_0x1e6e1f(0x171),{'replyId':this[_0x1e6e1f(0x19e)]['id']});}),this[_0x4382ca(0x19b)]['on'](_0x4382ca(0x173),()=>{var _0x141f33=_0x4382ca;this[_0x141f33(0x183)](_0x141f33(0x173),{'replyId':this[_0x141f33(0x19e)]['id']});}),this[_0x4382ca(0x19b)]['on'](_0x4382ca(0x17f),(_0x1eb60b,{index:_0x46447c})=>{var _0x53ac85=_0x4382ca;this[_0x53ac85(0x183)](_0x53ac85(0x17f),{'replyId':this[_0x53ac85(0x19e)]['id'],'partIndex':_0x46447c});}),this[_0x4382ca(0x19b)]['on'](_0x4382ca(0x179),(_0x2c9155,{index:_0x5b837c})=>{var _0x58826f=_0x4382ca;this[_0x58826f(0x183)](_0x58826f(0x179),{'replyId':this[_0x58826f(0x19e)]['id'],'partIndex':_0x5b837c});}),this[_0x4382ca(0x19b)]['on'](_0x4382ca(0x199),(_0x1cee6c,{index:_0x5114a0})=>{var _0xa0472f=_0x4382ca;this[_0xa0472f(0x183)](_0xa0472f(0x199),{'replyId':this[_0xa0472f(0x19e)]['id'],'partIndex':_0x5114a0});}),this[_0x4382ca(0x19b)]['on'](_0x4382ca(0x186),(_0x518d51,{index:_0x48bffa})=>{var _0x4446b6=_0x4382ca;this[_0x4446b6(0x183)](_0x4446b6(0x186),{'replyId':this[_0x4446b6(0x19e)]['id'],'partIndex':_0x48bffa});}),this[_0x4382ca(0x19b)]['on'](_0x4382ca(0x18c),(_0x5eed72,{index:_0x1b6697})=>{var _0x2abd33=_0x4382ca;this[_0x2abd33(0x183)](_0x2abd33(0x18c),{'replyId':this[_0x2abd33(0x19e)]['id'],'partIndex':_0x1b6697});}),this[_0x4382ca(0x18d)]=new _0x1e9476(_0x13cf72,this[_0x4382ca(0x19e)][_0x4382ca(0x181)]),this[_0x4382ca(0x18d)][_0x4382ca(0x19c)](_0x4382ca(0x17d))['to'](this,_0x4382ca(0x17d)),this[_0x4382ca(0x18d)]['on'](_0x4382ca(0x17f),()=>{var _0x5cd84c=_0x4382ca;this[_0x5cd84c(0x183)](_0x5cd84c(0x17f),{'replyId':this[_0x5cd84c(0x19e)]['id']});}),this[_0x4382ca(0x18d)]['on'](_0x4382ca(0x179),()=>{var _0x420438=_0x4382ca;this[_0x420438(0x183)](_0x420438(0x179),{'replyId':this[_0x420438(0x19e)]['id']});}),this[_0x4382ca(0x18d)]['on'](_0x4382ca(0x17a),()=>{var _0x40b73b=_0x4382ca;this[_0x40b73b(0x183)](_0x40b73b(0x17a),{'replyId':this[_0x40b73b(0x19e)]['id']});}),_0x5a3709[_0x4382ca(0x18b)]?this[_0x4382ca(0x18d)][_0x4382ca(0x187)]=!0x1:this[_0x4382ca(0x18d)][_0x4382ca(0x19c)](_0x4382ca(0x187))['to'](this[_0x4382ca(0x19b)][_0x4382ca(0x193)],_0x4382ca(0x188)),this[_0x4382ca(0x195)][_0x4382ca(0x17b)]([this[_0x4382ca(0x19b)],this[_0x4382ca(0x18d)]]),this[_0x4382ca(0x19a)]({'attributes':{'class':[_0x4382ca(0x19d)]}});}async[_0x16a6de(0x191)](_0x3d72df){var _0x17ae3b=_0x16a6de;await this[_0x17ae3b(0x19b)][_0x17ae3b(0x191)](_0x3d72df),this[_0x17ae3b(0x18d)][_0x17ae3b(0x197)](this[_0x17ae3b(0x19b)][_0x17ae3b(0x193)][_0x17ae3b(0x180)]);}[_0x16a6de(0x184)](_0x5af0e9,_0x16f8fa){var _0x4d1946=_0x16a6de;this[_0x4d1946(0x19b)][_0x4d1946(0x193)][_0x4d1946(0x184)](_0x5af0e9,_0x16f8fa);}[_0x16a6de(0x176)](_0x3c1fd9){var _0x3f651e=_0x16a6de;this[_0x3f651e(0x19b)][_0x3f651e(0x176)](_0x3c1fd9);}[_0x16a6de(0x17c)](_0x505ce9){var _0x27a0f9=_0x16a6de;return this[_0x27a0f9(0x19b)][_0x27a0f9(0x193)][_0x27a0f9(0x17c)](_0x505ce9);}[_0x16a6de(0x18a)](){var _0x3c09c7=_0x16a6de;super[_0x3c09c7(0x18a)](),this[_0x3c09c7(0x19b)][_0x3c09c7(0x18a)](),this[_0x3c09c7(0x18d)][_0x3c09c7(0x190)]=this[_0x3c09c7(0x19b)][_0x3c09c7(0x193)][_0x3c09c7(0x172)];}}function _0x2ef2(){var _0x3e5656=['children','3138FWJLWc','updateLabels','918QpkjYH','rejectSuggestion','extendTemplate','containerView','bind','ck-ai-chat__feed__ai-suggestion','options','like','hasNonEmptyParts','dislike','set','15314470DNsITk','updateSources','3665124oIRCaU','toggleSuggestionDisplayMode','insertSuggestion','applySuggestion','addMany','getPartView','isTrackChangesOn','6926oTwkiP','showChangeInText','partsCount','availableActions','11xhRZhq','fire','updatePartState','2520zsmnmp','mouseOverSuggestion','isEnabled','hasPendingParts','506749mHcVeB','markAsDone','areActionsDisabled','mouseLeaveSuggestion','actionsView','2568jWYTUU','1754364NnISkp','isVisible','updateContent','26341vuXPQC','bodyView','showDiff'];_0x2ef2=function(){return _0x3e5656;};return _0x2ef2();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x607ac=_0x13cb;(function(_0x34793b,_0x4de4ce){var _0x308f5a=_0x13cb,_0xba451b=_0x34793b();while(!![]){try{var _0x1a9fa4=parseInt(_0x308f5a(0xe6))/0x1+-parseInt(_0x308f5a(0xea))/0x2+-parseInt(_0x308f5a(0xe8))/0x3+-parseInt(_0x308f5a(0xf1))/0x4*(-parseInt(_0x308f5a(0xdc))/0x5)+-parseInt(_0x308f5a(0xdd))/0x6*(parseInt(_0x308f5a(0xe4))/0x7)+-parseInt(_0x308f5a(0xe5))/0x8*(parseInt(_0x308f5a(0xf6))/0x9)+parseInt(_0x308f5a(0xed))/0xa;if(_0x1a9fa4===_0x4de4ce)break;else _0xba451b['push'](_0xba451b['shift']());}catch(_0x3d7589){_0xba451b['push'](_0xba451b['shift']());}}}(_0x29c2,0x7e8cf));function _0x13cb(_0x1d8a03,_0xa14978){var _0x29c252=_0x29c2();return _0x13cb=function(_0x13cb7e,_0x29d4d7){_0x13cb7e=_0x13cb7e-0xd7;var _0x306179=_0x29c252[_0x13cb7e];return _0x306179;},_0x13cb(_0x1d8a03,_0xa14978);}import{AIChatFeedItemView as _0x4591d8}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x7e6b67}from'./aichatfeedcontextchipsview.js';import{View as _0x3a6987}from'ckeditor5/src/ui.js';function _0x29c2(){var _0x1e19fa=['_contextChipsView','innerHTML','element','65AQknDO','171498IRZYpv','initialContent','ck-ai-chat__feed__message-content','add','extendTemplate','render','markAsDone','70CaucXi','2840zdjfwu','290093AczQBp','length','2888499FNlSUN','ck-ai-chat__feed__user-message','1705652CwRARv','contextItems','_messageContentView','22994880rLiCCa','_createContextChipsView','filter','_createMessageContentView','50272PHdZKI','ck-ai-chat__feed__context-chips','children','div','_locale','3375XYtjjI','hidden','options','_bodyCollection','setTemplate'];_0x29c2=function(){return _0x1e19fa;};return _0x29c2();}export class AIChatFeedUserMessageItemView extends _0x4591d8{[_0x607ac(0xd9)]=null;[_0x607ac(0xf5)];[_0x607ac(0xd7)];[_0x607ac(0xec)];constructor(_0x567099,_0x5bfccf,_0x492328){var _0x5d85a2=_0x607ac;super(_0x5bfccf),this[_0x5d85a2(0xf5)]=_0x567099,this[_0x5d85a2(0xd7)]=_0x492328,this[_0x5d85a2(0xee)](),this[_0x5d85a2(0xf0)](),this[_0x5d85a2(0xe1)]({'attributes':{'class':[_0x5d85a2(0xe9)]}});}[_0x607ac(0xee)](){var _0xf480eb=_0x607ac;this[_0xf480eb(0xf8)][_0xf480eb(0xeb)]&&this[_0xf480eb(0xf8)][_0xf480eb(0xeb)][_0xf480eb(0xe7)]>0x0&&(this[_0xf480eb(0xd9)]=new _0x7e6b67(this[_0xf480eb(0xf5)],this[_0xf480eb(0xf8)][_0xf480eb(0xeb)][_0xf480eb(0xef)](_0x1487f8=>!_0x1487f8[_0xf480eb(0xf7)]),this[_0xf480eb(0xd7)]),this[_0xf480eb(0xd9)][_0xf480eb(0xe1)]({'attributes':{'class':_0xf480eb(0xf2)}}),this[_0xf480eb(0xf3)][_0xf480eb(0xe0)](this[_0xf480eb(0xd9)]));}[_0x607ac(0xf0)](){var _0xc5624f=_0x607ac;this[_0xc5624f(0xec)]=new _0x3a6987(this[_0xc5624f(0xf5)]),this[_0xc5624f(0xec)][_0xc5624f(0xd8)]({'tag':_0xc5624f(0xf4),'attributes':{'class':_0xc5624f(0xdf)}}),this[_0xc5624f(0xf3)][_0xc5624f(0xe0)](this[_0xc5624f(0xec)]);}[_0x607ac(0xe2)](){var _0x452b9c=_0x607ac;super[_0x452b9c(0xe2)](),this[_0x452b9c(0xec)][_0x452b9c(0xdb)][_0x452b9c(0xda)]=this[_0x452b9c(0xf8)][_0x452b9c(0xde)],this[_0x452b9c(0xe3)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40ce76=_0x17bf;(function(_0x537f71,_0x37b3be){const _0x198c54=_0x17bf,_0x462628=_0x537f71();while(!![]){try{const _0x2a64e3=parseInt(_0x198c54(0x149))/0x1+-parseInt(_0x198c54(0x147))/0x2+parseInt(_0x198c54(0x13e))/0x3*(parseInt(_0x198c54(0x146))/0x4)+-parseInt(_0x198c54(0x14b))/0x5+parseInt(_0x198c54(0x143))/0x6+-parseInt(_0x198c54(0x139))/0x7*(-parseInt(_0x198c54(0x13c))/0x8)+-parseInt(_0x198c54(0x13a))/0x9;if(_0x2a64e3===_0x37b3be)break;else _0x462628['push'](_0x462628['shift']());}catch(_0x4d398e){_0x462628['push'](_0x462628['shift']());}}}(_0x57c2,0x9b9cb));function _0x17bf(_0x58da81,_0xa6e244){const _0x57c27a=_0x57c2();return _0x17bf=function(_0x17bf63,_0x288ea6){_0x17bf63=_0x17bf63-0x139;let _0x307546=_0x57c27a[_0x17bf63];return _0x307546;},_0x17bf(_0x58da81,_0xa6e244);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4ae8ef}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x4ae8ef,_0x40ce76(0x14c),_0x40ce76(0x13b),_0x40ce76(0x142),_0x40ce76(0x14d),_0x40ce76(0x148),_0x40ce76(0x144),_0x40ce76(0x13d),_0x40ce76(0x141),_0x40ce76(0x14e),_0x40ce76(0x14a),_0x40ce76(0x140),_0x40ce76(0x145),_0x40ce76(0x13f)];function _0x57c2(){const _0x327e08=['11653983dqpVPc','resizeTabs','24nnHGXp','addUrlToContext','3epFbKY','selectModel','toggleWebSearch','addResourceToContext','sendUserMessage','3996150hsAvxY','addFileToContext','toggleReasoning','4467952grCfPu','1026604dPtIrf','addDocumentToContext','933351PHnZpn','loadSourceResources','5290255yEcBHf','startConversation','abortPromptStream','removeContextItem','1836947YOsEzW'];_0x57c2=function(){return _0x327e08;};return _0x57c2();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14be34=_0x2a1c;function _0x59ab(){const _0x214c61=['8315YtOyLL','push','once','queue','resolve','fire','enqueue','_queueEmpty','signal','3332gwbUWm','138900MnDSLs','callback','2672tvxJGq','reject','createTask','138390FauuOY','queueEmptyPromise','isProcessing','137076eAnzUM','284MTvXZS','abort','length','114849gFDmXm','_processQueue','shift','_abortController','1993401eblsbN','completePromise'];_0x59ab=function(){return _0x214c61;};return _0x59ab();}function _0x2a1c(_0x2e6706,_0x390771){const _0x59abba=_0x59ab();return _0x2a1c=function(_0x2a1c6a,_0x35276c){_0x2a1c6a=_0x2a1c6a-0x192;let _0x1250d5=_0x59abba[_0x2a1c6a];return _0x1250d5;},_0x2a1c(_0x2e6706,_0x390771);}(function(_0x2b0bbc,_0x1da40e){const _0x2621cf=_0x2a1c,_0x5c3f8b=_0x2b0bbc();while(!![]){try{const _0x2704c4=parseInt(_0x2621cf(0x1a0))/0x1+-parseInt(_0x2621cf(0x1a3))/0x2+-parseInt(_0x2621cf(0x1a7))/0x3+-parseInt(_0x2621cf(0x1a4))/0x4*(-parseInt(_0x2621cf(0x1ad))/0x5)+parseInt(_0x2621cf(0x19b))/0x6+parseInt(_0x2621cf(0x19a))/0x7*(parseInt(_0x2621cf(0x19d))/0x8)+-parseInt(_0x2621cf(0x1ab))/0x9;if(_0x2704c4===_0x1da40e)break;else _0x5c3f8b['push'](_0x5c3f8b['shift']());}catch(_0x3a0739){_0x5c3f8b['push'](_0x5c3f8b['shift']());}}}(_0x59ab,0x1aecf));import{EmitterMixin as _0x271b2a}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x271b2a(){[_0x14be34(0x194)]=[];[_0x14be34(0x1a2)]=!0x1;[_0x14be34(0x1aa)];async[_0x14be34(0x197)](_0x20534e){const _0x573157=_0x14be34,_0x1df9bf=this[_0x573157(0x19f)](_0x20534e);return this[_0x573157(0x194)][_0x573157(0x192)](_0x1df9bf),this[_0x573157(0x1a8)](),_0x1df9bf[_0x573157(0x1ac)];}[_0x14be34(0x1a5)](){const _0x53c1c4=_0x14be34;this[_0x53c1c4(0x1a2)]&&(this[_0x53c1c4(0x1aa)][_0x53c1c4(0x1a5)](),this[_0x53c1c4(0x1aa)]=void 0x0,this[_0x53c1c4(0x194)]=[],this[_0x53c1c4(0x196)](_0x53c1c4(0x198)),this[_0x53c1c4(0x1a2)]=!0x1);}get[_0x14be34(0x1a1)](){const _0x1559cd=_0x14be34;return this[_0x1559cd(0x194)][_0x1559cd(0x1a6)]||this[_0x1559cd(0x1a2)]?new Promise(_0x1f8a4a=>{const _0x3e1bf4=_0x1559cd;this[_0x3e1bf4(0x193)](_0x3e1bf4(0x198),()=>{_0x1f8a4a();});}):Promise[_0x1559cd(0x195)]();}async[_0x14be34(0x1a8)](){const _0x4d1534=_0x14be34;if(!this[_0x4d1534(0x1a2)]){this[_0x4d1534(0x1aa)]=new AbortController(),this[_0x4d1534(0x1a2)]=!0x0;try{for(;this[_0x4d1534(0x194)][_0x4d1534(0x1a6)]&&this[_0x4d1534(0x1a2)];){const _0x28a177=this[_0x4d1534(0x194)][_0x4d1534(0x1a9)]();try{await _0x28a177[_0x4d1534(0x19c)](this[_0x4d1534(0x1aa)][_0x4d1534(0x199)]),_0x28a177[_0x4d1534(0x195)]();}catch(_0x2e63d6){_0x28a177[_0x4d1534(0x19e)](_0x2e63d6);}}}finally{this[_0x4d1534(0x1a2)]=!0x1,this[_0x4d1534(0x1aa)]=void 0x0;}this[_0x4d1534(0x196)](_0x4d1534(0x198));}}[_0x14be34(0x19f)](_0x5799de){let _0x40e00e,_0x1a89ad;const _0x367736=new Promise((_0xbb11a4,_0x2e9981)=>{_0x40e00e=_0xbb11a4,_0x1a89ad=_0x2e9981;});return{'callback':_0x5799de,'resolve':_0x40e00e,'reject':_0x1a89ad,'completePromise':_0x367736};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x302b2c=_0x42b9;(function(_0x1bb4bd,_0x205e1d){const _0x3aace3=_0x42b9,_0x4c74fd=_0x1bb4bd();while(!![]){try{const _0x5ee5c2=parseInt(_0x3aace3(0x177))/0x1*(-parseInt(_0x3aace3(0x15d))/0x2)+-parseInt(_0x3aace3(0x15c))/0x3*(parseInt(_0x3aace3(0x17a))/0x4)+-parseInt(_0x3aace3(0x16b))/0x5*(-parseInt(_0x3aace3(0x15f))/0x6)+parseInt(_0x3aace3(0x16a))/0x7+parseInt(_0x3aace3(0x181))/0x8*(-parseInt(_0x3aace3(0x179))/0x9)+-parseInt(_0x3aace3(0x166))/0xa*(parseInt(_0x3aace3(0x160))/0xb)+parseInt(_0x3aace3(0x16d))/0xc;if(_0x5ee5c2===_0x205e1d)break;else _0x4c74fd['push'](_0x4c74fd['shift']());}catch(_0x562c49){_0x4c74fd['push'](_0x4c74fd['shift']());}}}(_0x4318,0x26c97));function _0x4318(){const _0x2cc650=['376BCyuSD','touchstart','pointerdown','deltaY','PageUp','End','includes','abort','114Khcrqy','110104pJdRoX','Home','1194jrhffg','80289bTfdcU','isRunning','element','_stop','scrollHeight','_onUserEvent','340JiuxnD','PageDown','auto','addEventListener','206829BcrNqm','6415elpMCd','_isAtBottom','4109856TveGwJ','destroy','wheel','stop','abortController','type','animationFrameId','key','ArrowUp','signal','1XCkmVr','_rafUpdate','21699yDOwqo','5468iwgJnR','isUserPaused','bind','scrollTo','start','keydown','ArrowDown'];_0x4318=function(){return _0x2cc650;};return _0x4318();}const ls=[_0x302b2c(0x16f),_0x302b2c(0x182),_0x302b2c(0x183),_0x302b2c(0x17f)],us=[_0x302b2c(0x175),_0x302b2c(0x180),_0x302b2c(0x158),_0x302b2c(0x167),_0x302b2c(0x15e),_0x302b2c(0x159),'\x20'];function _0x42b9(_0x15b546,_0x58419b){const _0x4318b4=_0x4318();return _0x42b9=function(_0x42b9b6,_0x12e948){_0x42b9b6=_0x42b9b6-0x158;let _0x5d0f64=_0x4318b4[_0x42b9b6];return _0x5d0f64;},_0x42b9(_0x15b546,_0x58419b);}export class ScrollManager{[_0x302b2c(0x162)];[_0x302b2c(0x173)];[_0x302b2c(0x161)];[_0x302b2c(0x171)];[_0x302b2c(0x17b)];constructor(_0xa259aa){const _0x577a38=_0x302b2c;this[_0x577a38(0x162)]=_0xa259aa,this[_0x577a38(0x173)]=null,this[_0x577a38(0x161)]=!0x1,this[_0x577a38(0x171)]=new AbortController(),this[_0x577a38(0x17b)]=!0x1;for(const _0x51d8e0 of ls){const _0x44c3b6=_0x577a38(0x17f)!==_0x51d8e0;this[_0x577a38(0x162)][_0x577a38(0x169)](_0x51d8e0,this[_0x577a38(0x165)][_0x577a38(0x17c)](this),{'passive':_0x44c3b6,'signal':this[_0x577a38(0x171)][_0x577a38(0x176)]});}}[_0x302b2c(0x17e)](){const _0x112cd0=_0x302b2c;this[_0x112cd0(0x161)]||(this[_0x112cd0(0x161)]=!0x0,this[_0x112cd0(0x17b)]=!0x1,this[_0x112cd0(0x173)]=requestAnimationFrame(this[_0x112cd0(0x178)][_0x112cd0(0x17c)](this)));}[_0x302b2c(0x170)](){requestAnimationFrame(()=>{const _0x4b59d1=_0x42b9;this[_0x4b59d1(0x163)]();});}[_0x302b2c(0x16e)](){const _0x468d26=_0x302b2c;this[_0x468d26(0x163)](),this[_0x468d26(0x171)][_0x468d26(0x15b)]();}[_0x302b2c(0x163)](){const _0x36630c=_0x302b2c;null!==this[_0x36630c(0x173)]&&(cancelAnimationFrame(this[_0x36630c(0x173)]),this[_0x36630c(0x173)]=null),this[_0x36630c(0x161)]&&(this[_0x36630c(0x161)]=!0x1),this[_0x36630c(0x17b)]=!0x1;}[_0x302b2c(0x165)](_0x4ebd76){const _0x1724c7=_0x302b2c;if(this[_0x1724c7(0x161)]){if(_0x1724c7(0x17f)===_0x4ebd76[_0x1724c7(0x172)]){const _0x10f377=_0x4ebd76[_0x1724c7(0x174)];if(!us[_0x1724c7(0x15a)](_0x10f377))return;}_0x4ebd76 instanceof WheelEvent?_0x4ebd76[_0x1724c7(0x184)]<0x0?this[_0x1724c7(0x17b)]=!0x0:this[_0x1724c7(0x17b)]=!this[_0x1724c7(0x16c)]():this[_0x1724c7(0x17b)]=!0x0;}}[_0x302b2c(0x16c)](){const _0x5b57ed=_0x302b2c,{scrollTop:_0x30a50b,scrollHeight:_0x31f6a1,clientHeight:_0x3cd465}=this[_0x5b57ed(0x162)];return _0x31f6a1-_0x30a50b-_0x3cd465<=0x5;}[_0x302b2c(0x178)](){const _0x271d00=_0x302b2c;this[_0x271d00(0x161)]&&(this[_0x271d00(0x17b)]||this[_0x271d00(0x162)][_0x271d00(0x17d)]({'top':this[_0x271d00(0x162)][_0x271d00(0x164)],'behavior':_0x271d00(0x168)}),this[_0x271d00(0x173)]=requestAnimationFrame(this[_0x271d00(0x178)][_0x271d00(0x17c)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x294107=_0x174d;(function(_0x1ca969,_0x38ea0e){var _0x187a1a=_0x174d,_0x4bb6dd=_0x1ca969();while(!![]){try{var _0x11efac=parseInt(_0x187a1a(0x1cf))/0x1*(-parseInt(_0x187a1a(0x1d2))/0x2)+parseInt(_0x187a1a(0x1cb))/0x3+parseInt(_0x187a1a(0x1c4))/0x4+-parseInt(_0x187a1a(0x1ca))/0x5+parseInt(_0x187a1a(0x1c7))/0x6*(parseInt(_0x187a1a(0x1c6))/0x7)+-parseInt(_0x187a1a(0x1c5))/0x8+-parseInt(_0x187a1a(0x1c9))/0x9*(parseInt(_0x187a1a(0x1c8))/0xa);if(_0x11efac===_0x38ea0e)break;else _0x4bb6dd['push'](_0x4bb6dd['shift']());}catch(_0x2f7453){_0x4bb6dd['push'](_0x4bb6dd['shift']());}}}(_0x209c,0x3d362));function _0x174d(_0x3d7942,_0x1dda79){var _0x209cd5=_0x209c();return _0x174d=function(_0x174d94,_0x65bec6){_0x174d94=_0x174d94-0x1c4;var _0x3e6b17=_0x209cd5[_0x174d94];return _0x3e6b17;},_0x174d(_0x3d7942,_0x1dda79);}function _0x209c(){var _0x515712=['1278xNfwrm','1214855CMCSBp','1466253Qokqob','AIChatHistory','isOfficialPlugin','isPremiumPlugin','4uNOFTx','requires','pluginName','231708xmckNH','1978084eRWbaF','871984QLEPUr','1271669aHFkax','6MOyECM','6960TewpiX'];_0x209c=function(){return _0x515712;};return _0x209c();}import{ContextPlugin as _0x408896}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x2af664}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x24c82c}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x408896{static get[_0x294107(0x1d0)](){return[_0x2af664,_0x24c82c];}static get[_0x294107(0x1d1)](){var _0x53e345=_0x294107;return _0x53e345(0x1cc);}static get[_0x294107(0x1cd)](){return!0x0;}static get[_0x294107(0x1ce)](){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 _0x902c0c=_0x3e72;(function(_0x542da9,_0x5d355c){const _0x1f59f6=_0x3e72,_0x2e76ef=_0x542da9();while(!![]){try{const _0x156223=parseInt(_0x1f59f6(0x12f))/0x1+parseInt(_0x1f59f6(0x152))/0x2+-parseInt(_0x1f59f6(0x118))/0x3*(-parseInt(_0x1f59f6(0x11c))/0x4)+-parseInt(_0x1f59f6(0x11f))/0x5*(parseInt(_0x1f59f6(0x117))/0x6)+parseInt(_0x1f59f6(0x11e))/0x7+-parseInt(_0x1f59f6(0x175))/0x8+parseInt(_0x1f59f6(0x146))/0x9*(-parseInt(_0x1f59f6(0x151))/0xa);if(_0x156223===_0x5d355c)break;else _0x2e76ef['push'](_0x2e76ef['shift']());}catch(_0x36a16b){_0x2e76ef['push'](_0x2e76ef['shift']());}}}(_0x2f8d,0xe63bc));import{ContextPlugin as _0xc2016}from'ckeditor5/src/core.js';function _0x3e72(_0x4b191c,_0x3e6991){const _0x2f8d9b=_0x2f8d();return _0x3e72=function(_0x3e728d,_0x44a9d8){_0x3e728d=_0x3e728d-0x113;let _0x5cab7c=_0x2f8d9b[_0x3e728d];return _0x5cab7c;},_0x3e72(_0x4b191c,_0x3e6991);}import{AIConnector as _0x1f2c81}from'../aicore/aiconnector.js';import{AIChatController as _0x50c978}from'../aichat/aichatcontroller.js';function _0x2f8d(){const _0x453139=['AI_CHAT_HISTORY_CATEGORY_YESTERDAY','loadItems','pinned','12489408SSArzL','activeConversation','view','itemsLoaded','resize','unpin','AIChatHistoryController','AI_CHAT_UNTITLED_CONVERSATION','4559946LtzryC','562737rCSAZA','_handleRemove','_getCategorizedItems','createdAt','24KSVUkQ','AI_CHAT_HISTORY_UNPIN_ACTION','8602132KSsXgY','5kQadVU','toLocaleDateString','getItems','_updateHistoryItemsUI','length','title','getGroupId','requires','plugins','chat','map','context','_aiConnector','_handleEditTitle','AI_CHAT_HISTORY_CATEGORY_TODAY','editConversationTitle','1835748iEBqpZ','isPremiumPlugin','getItem','itemRemoved','removeHistoryItem','_aiChatHistoryUi','AI_CHAT_HISTORY_CATEGORY_PINNED','change:activeConversation','_generateErrorMessage','itemUpdated','rename','removeItem','AI_CHAT_HISTORY_ERROR_GENERIC','setLoadingSkeleton','activateTab','selectConversation','get','items','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','error','operation','_aiChatController','setIsMaximized','902628dUufQC','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','AI_CHAT_HISTORY_CATEGORY_LATER','AI_CHAT_HISTORY_PIN_ACTION','_handleHistoryErrorUI','openChat','removeConversation','_clearItemLoading','_setIsMaximized','updateItemPinned','260yWJsoK','3363394ZBOyXa','_showConversationHistory','itemId','isOfficialPlugin','showError','remove','updateItems','pin','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','_setItemLoading','getMonth','setConversationPinned','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','updateItemTitle','activateTab:history','init','_handleSelectConversation','updates','locale','setDate','resizeTabs','listenTo','loadConversation','handleRemovedConversation','getFullYear','_handleTogglePin','push','resizedTabs','getDate','updateItemLoadingState','pluginName','history'];_0x2f8d=function(){return _0x453139;};return _0x2f8d();}import{AITabs as _0x15d441}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x323a72}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x143195}from'./model/aichathistoryconversations.js';import{getTranslation as _0x14d842}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0xc2016{[_0x902c0c(0x12b)];[_0x902c0c(0x134)];[_0x902c0c(0x144)];static get[_0x902c0c(0x126)](){return[_0x1f2c81,_0x50c978,_0x323a72,_0x15d441];}static get[_0x902c0c(0x170)](){const _0x20d188=_0x902c0c;return _0x20d188(0x115);}static get[_0x902c0c(0x155)](){return!0x0;}static get[_0x902c0c(0x130)](){return!0x0;}[_0x902c0c(0x161)](){const _0x3b5d6c=_0x902c0c;this[_0x3b5d6c(0x12b)]=this[_0x3b5d6c(0x12a)][_0x3b5d6c(0x127)][_0x3b5d6c(0x13f)](_0x1f2c81),this[_0x3b5d6c(0x134)]=this[_0x3b5d6c(0x12a)][_0x3b5d6c(0x127)][_0x3b5d6c(0x13f)](_0x323a72),this[_0x3b5d6c(0x144)]=this[_0x3b5d6c(0x12a)][_0x3b5d6c(0x127)][_0x3b5d6c(0x13f)](_0x50c978);const _0x3da6c1=this[_0x3b5d6c(0x12a)][_0x3b5d6c(0x127)][_0x3b5d6c(0x13f)](_0x15d441),_0x50da64=this[_0x3b5d6c(0x144)][_0x3b5d6c(0x125)]();this[_0x3b5d6c(0x171)]=new _0x143195({'connector':this[_0x3b5d6c(0x12b)],'group':_0x50da64}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x134)],_0x3b5d6c(0x14d),(_0x562182,_0x5f53d4)=>{const _0x2b5f28=_0x3b5d6c;this[_0x2b5f28(0x15b)](_0x5f53d4['id'],_0x2b5f28(0x157)),this[_0x2b5f28(0x119)](_0x5f53d4['id']);}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x134)],_0x3b5d6c(0x12e),(_0x354fbf,_0x5374f3)=>{const _0x43947e=_0x3b5d6c;this[_0x43947e(0x15b)](_0x5374f3['id'],_0x43947e(0x139)),this[_0x43947e(0x12c)](_0x5374f3['id'],_0x5374f3[_0x43947e(0x124)]);}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x171)],_0x3b5d6c(0x138),(_0x261c8d,_0x4c8acd)=>{const _0x45a003=_0x3b5d6c;void 0x0!==_0x4c8acd[_0x45a003(0x163)][_0x45a003(0x124)]&&this[_0x45a003(0x134)][_0x45a003(0x15f)](_0x4c8acd[_0x45a003(0x154)],_0x4c8acd[_0x45a003(0x163)][_0x45a003(0x124)]),void 0x0!==_0x4c8acd[_0x45a003(0x163)][_0x45a003(0x174)]&&this[_0x45a003(0x122)](),this[_0x45a003(0x14e)](_0x4c8acd[_0x45a003(0x154)]);}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x171)],_0x3b5d6c(0x132),(_0x11e16d,_0x668bf3)=>{const _0x4b56c2=_0x3b5d6c;this[_0x4b56c2(0x144)][_0x4b56c2(0x169)](_0x668bf3[_0x4b56c2(0x154)]),this[_0x4b56c2(0x134)][_0x4b56c2(0x133)](_0x668bf3[_0x4b56c2(0x154)]),this[_0x4b56c2(0x14e)](_0x668bf3[_0x4b56c2(0x154)]);}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x171)],_0x3b5d6c(0x178),()=>{const _0x13cc44=_0x3b5d6c;this[_0x13cc44(0x122)]();}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x171)],_0x3b5d6c(0x142),(_0x3604a6,_0x2cce38)=>{const _0x351192=_0x3b5d6c;this[_0x351192(0x14b)](_0x2cce38[_0x351192(0x142)],_0x2cce38[_0x351192(0x143)],_0x2cce38[_0x351192(0x154)]);}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x134)],_0x3b5d6c(0x13e),(_0x5b25c1,_0x46df4e)=>{const _0x2237b4=_0x3b5d6c;this[_0x2237b4(0x162)](_0x46df4e['id']);}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x134)],_0x3b5d6c(0x15d),(_0x36db63,_0x58bd1c)=>{const _0x1bfcd9=_0x3b5d6c,_0x3899ad=_0x58bd1c[_0x1bfcd9(0x174)]?_0x1bfcd9(0x159):_0x1bfcd9(0x114);this[_0x1bfcd9(0x15b)](_0x58bd1c['id'],_0x3899ad),this[_0x1bfcd9(0x16b)](_0x58bd1c['id'],_0x58bd1c[_0x1bfcd9(0x174)]);}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x134)],_0x3b5d6c(0x14c),()=>{const _0x384366=_0x3b5d6c;_0x3da6c1[_0x384366(0x177)][_0x384366(0x13d)](_0x384366(0x128));}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x144)],_0x3b5d6c(0x136),()=>{const _0x55f37f=_0x3b5d6c;this[_0x55f37f(0x122)]();}),_0x3da6c1[_0x3b5d6c(0x177)]['on'](_0x3b5d6c(0x160),()=>{const _0x4afc4f=_0x3b5d6c;this[_0x4afc4f(0x153)]();}),this[_0x3b5d6c(0x167)](_0x3da6c1,_0x3b5d6c(0x16d),(_0x32abfe,_0x58630b)=>{const _0x4b28b1=_0x3b5d6c;this[_0x4b28b1(0x14f)](_0x58630b);}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x134)],_0x3b5d6c(0x166),()=>{const _0x40e903=_0x3b5d6c;_0x3da6c1[_0x40e903(0x113)]();});}async[_0x902c0c(0x12c)](_0x425d0b,_0x49d644){const _0x5cff29=_0x902c0c;await this[_0x5cff29(0x171)][_0x5cff29(0x15f)](_0x425d0b,_0x49d644);}async[_0x902c0c(0x16b)](_0x34a374,_0x4d1af8){const _0xa9467a=_0x902c0c;await this[_0xa9467a(0x171)][_0xa9467a(0x150)](_0x34a374,_0x4d1af8);}async[_0x902c0c(0x119)](_0x2748f4){const _0x56fa74=_0x902c0c;await this[_0x56fa74(0x171)][_0x56fa74(0x13a)](_0x2748f4);}async[_0x902c0c(0x162)](_0x45472e){const _0x467c0c=_0x902c0c;await this[_0x467c0c(0x144)][_0x467c0c(0x168)](_0x45472e);}async[_0x902c0c(0x153)](){const _0x3d13d5=_0x902c0c;this[_0x3d13d5(0x134)][_0x3d13d5(0x156)](''),this[_0x3d13d5(0x134)][_0x3d13d5(0x13c)](!0x0),await this[_0x3d13d5(0x171)][_0x3d13d5(0x161)](),this[_0x3d13d5(0x134)][_0x3d13d5(0x13c)](!0x1);}[_0x902c0c(0x122)](){const _0x122039=_0x902c0c,_0x2c422c=this[_0x122039(0x144)][_0x122039(0x176)]?.['id'],_0x20d6be=this[_0x122039(0x11a)]()[_0x122039(0x129)](_0x1f89db=>({'title':_0x1f89db[_0x122039(0x124)],'items':_0x1f89db[_0x122039(0x140)][_0x122039(0x129)](_0x82036c=>({'id':_0x82036c['id'],'title':_0x82036c[_0x122039(0x124)]||_0x14d842(this[_0x122039(0x12a)][_0x122039(0x164)],_0x122039(0x116)),'createdAt':new Date(_0x82036c[_0x122039(0x11b)])[_0x122039(0x120)](),'active':_0x82036c['id']===_0x2c422c,'pinned':_0x82036c[_0x122039(0x174)]}))}));this[_0x122039(0x134)][_0x122039(0x158)](_0x20d6be);}[_0x902c0c(0x15b)](_0x451cfa,_0x100210){const _0x3a83e3=_0x902c0c;this[_0x3a83e3(0x134)][_0x3a83e3(0x16f)](_0x451cfa,_0x100210,!0x0);}[_0x902c0c(0x14e)](_0x546790){const _0x4dc5c0=_0x902c0c;this[_0x4dc5c0(0x134)][_0x4dc5c0(0x16f)](_0x546790,null,!0x1);}[_0x902c0c(0x14b)](_0x535f63,_0x171cdd,_0x28dc2b){const _0x6e9ee=_0x902c0c,_0x41ef15=this[_0x6e9ee(0x137)](_0x171cdd,_0x28dc2b);this[_0x6e9ee(0x134)][_0x6e9ee(0x156)](_0x41ef15),_0x28dc2b&&this[_0x6e9ee(0x14e)](_0x28dc2b),this[_0x6e9ee(0x134)][_0x6e9ee(0x13c)](!0x1);}[_0x902c0c(0x137)](_0x2ba517,_0x4df217){const _0x3c1462=_0x902c0c,_0x52acfd=_0x4df217?this[_0x3c1462(0x171)][_0x3c1462(0x131)](_0x4df217):null,_0x18b75e=_0x52acfd?.[_0x3c1462(0x124)]||_0x14d842(this[_0x3c1462(0x12a)][_0x3c1462(0x164)],_0x3c1462(0x116));switch(_0x2ba517){case _0x3c1462(0x15f):return _0x14d842(this[_0x3c1462(0x12a)][_0x3c1462(0x164)],_0x3c1462(0x15e),_0x18b75e);case _0x3c1462(0x150):{const _0x2e4c14=_0x14d842(this[_0x3c1462(0x12a)][_0x3c1462(0x164)],_0x52acfd?.[_0x3c1462(0x174)]?_0x3c1462(0x11d):_0x3c1462(0x14a));return _0x14d842(this[_0x3c1462(0x12a)][_0x3c1462(0x164)],_0x3c1462(0x15a),[_0x2e4c14,_0x18b75e]);}case _0x3c1462(0x13a):return _0x14d842(this[_0x3c1462(0x12a)][_0x3c1462(0x164)],_0x3c1462(0x147),_0x18b75e);case _0x3c1462(0x161):case _0x3c1462(0x173):return _0x14d842(this[_0x3c1462(0x12a)][_0x3c1462(0x164)],_0x3c1462(0x148));default:return _0x14d842(this[_0x3c1462(0x12a)][_0x3c1462(0x164)],_0x3c1462(0x13b));}}[_0x902c0c(0x11a)](){const _0x44a2fe=_0x902c0c,_0x12f076=new Date(),_0x4ab2e8=new Date(_0x12f076[_0x44a2fe(0x16a)](),_0x12f076[_0x44a2fe(0x15c)](),_0x12f076[_0x44a2fe(0x16e)]()),_0x13ebca=new Date(_0x4ab2e8);_0x13ebca[_0x44a2fe(0x165)](_0x13ebca[_0x44a2fe(0x16e)]()-0x1);const _0x1af2a6=new Date(_0x4ab2e8);_0x1af2a6[_0x44a2fe(0x165)](_0x1af2a6[_0x44a2fe(0x16e)]()-0xe);const _0x46e93c=this[_0x44a2fe(0x171)][_0x44a2fe(0x121)]({'pinned':!0x0}),_0x55b71e=this[_0x44a2fe(0x171)][_0x44a2fe(0x121)]({'from':_0x4ab2e8,'to':_0x4ab2e8}),_0x1fa14e=this[_0x44a2fe(0x171)][_0x44a2fe(0x121)]({'from':_0x13ebca,'to':_0x13ebca}),_0x4a4a32=this[_0x44a2fe(0x171)][_0x44a2fe(0x121)]({'from':_0x1af2a6,'to':_0x13ebca}),_0x5f8a16=this[_0x44a2fe(0x171)][_0x44a2fe(0x121)]({'to':_0x1af2a6}),_0x5425c7=[];return _0x46e93c[_0x44a2fe(0x123)]>0x0&&_0x5425c7[_0x44a2fe(0x16c)]({'title':_0x14d842(this[_0x44a2fe(0x12a)][_0x44a2fe(0x164)],_0x44a2fe(0x135)),'items':_0x46e93c}),_0x55b71e[_0x44a2fe(0x123)]>0x0&&_0x5425c7[_0x44a2fe(0x16c)]({'title':_0x14d842(this[_0x44a2fe(0x12a)][_0x44a2fe(0x164)],_0x44a2fe(0x12d)),'items':_0x55b71e}),_0x1fa14e[_0x44a2fe(0x123)]>0x0&&_0x5425c7[_0x44a2fe(0x16c)]({'title':_0x14d842(this[_0x44a2fe(0x12a)][_0x44a2fe(0x164)],_0x44a2fe(0x172)),'items':_0x1fa14e}),_0x4a4a32[_0x44a2fe(0x123)]>0x0&&_0x5425c7[_0x44a2fe(0x16c)]({'title':_0x14d842(this[_0x44a2fe(0x12a)][_0x44a2fe(0x164)],_0x44a2fe(0x141)),'items':_0x4a4a32}),_0x5f8a16[_0x44a2fe(0x123)]>0x0&&_0x5425c7[_0x44a2fe(0x16c)]({'title':_0x14d842(this[_0x44a2fe(0x12a)][_0x44a2fe(0x164)],_0x44a2fe(0x149)),'items':_0x5f8a16}),_0x5425c7;}[_0x902c0c(0x14f)](_0x2b82e4){const _0xa5abc5=_0x902c0c;this[_0xa5abc5(0x134)][_0xa5abc5(0x145)](_0x2b82e4);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c948c=_0x3b6d;(function(_0x12abdc,_0xa28818){const _0x4c7b01=_0x3b6d,_0x1f2edf=_0x12abdc();while(!![]){try{const _0x4e76be=-parseInt(_0x4c7b01(0x1e8))/0x1*(-parseInt(_0x4c7b01(0x1fa))/0x2)+parseInt(_0x4c7b01(0x20d))/0x3+-parseInt(_0x4c7b01(0x1f0))/0x4*(-parseInt(_0x4c7b01(0x20f))/0x5)+-parseInt(_0x4c7b01(0x1fc))/0x6+-parseInt(_0x4c7b01(0x1f1))/0x7*(-parseInt(_0x4c7b01(0x1f2))/0x8)+parseInt(_0x4c7b01(0x1f9))/0x9*(-parseInt(_0x4c7b01(0x1ef))/0xa)+-parseInt(_0x4c7b01(0x1fd))/0xb;if(_0x4e76be===_0xa28818)break;else _0x1f2edf['push'](_0x1f2edf['shift']());}catch(_0x18db84){_0x1f2edf['push'](_0x1f2edf['shift']());}}}(_0x1546,0x62a3d));import{ContextPlugin as _0x580643}from'ckeditor5/src/core.js';function _0x1546(){const _0x10ee40=['450515aLLsMT','updateItemLoadingState','delegate','openChat','_historyView','isLoading','view','showConversationHistory','4FjcXTt','removeConversation','get','resizeTabs','history','isMaximized','updateHistoryItemsWithCategories','2628290gUoyHw','12nNTPGK','3968027seorMk','8MWkVNu','selectConversation','setIsMaximized','addTab','plugins','setConversationPinned','editConversationTitle','9KPTJeV','113414ClLttA','showError','283992kNspDW','11034826DAquFm','requires','errorMessage','AIChatHistoryUI','locale','hideError','AI_CHAT_HISTORY_HEADING','context','showResizeButton','setLoadingSkeleton','updateItemTitle','AITabs','updateItems','removeHistoryItem','pluginName','isOfficialPlugin','1960074yqwSjc','isPremiumPlugin'];_0x1546=function(){return _0x10ee40;};return _0x1546();}import{AITabs as _0x1630d4}from'../aitabs/aitabs.js';function _0x3b6d(_0x3b4ff0,_0x2addaf){const _0x154695=_0x1546();return _0x3b6d=function(_0x3b6d40,_0x58c2af){_0x3b6d40=_0x3b6d40-0x1e7;let _0x582e3c=_0x154695[_0x3b6d40];return _0x582e3c;},_0x3b6d(_0x3b4ff0,_0x2addaf);}import{IconAIHistory as _0x3ed23a}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x212b72}from'./ui/aichathistoryview.js';import{getTranslation as _0x35ac13}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x5c948c(0x1e7),_0x5c948c(0x1e9),_0x5c948c(0x1f8),_0x5c948c(0x1f7),_0x5c948c(0x1f3),_0x5c948c(0x212),_0x5c948c(0x1eb)];export class AIChatHistoryUI extends _0x580643{static get[_0x5c948c(0x1fe)](){return[_0x1630d4];}[_0x5c948c(0x213)];static get[_0x5c948c(0x20b)](){const _0x9b4838=_0x5c948c;return _0x9b4838(0x200);}static get[_0x5c948c(0x20c)](){return!0x0;}static get[_0x5c948c(0x20e)](){return!0x0;}constructor(_0x2cb1ea){const _0x3e3515=_0x5c948c;super(_0x2cb1ea);const _0x358b62=this[_0x3e3515(0x204)][_0x3e3515(0x1f6)][_0x3e3515(0x1ea)](_0x3e3515(0x208));this[_0x3e3515(0x213)]=new _0x212b72(this[_0x3e3515(0x204)][_0x3e3515(0x201)],_0x358b62[_0x3e3515(0x205)]),this[_0x3e3515(0x213)][_0x3e3515(0x211)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x358b62[_0x3e3515(0x215)][_0x3e3515(0x1f5)]({'id':_0x3e3515(0x1ec),'buttonLabel':_0x35ac13(this[_0x3e3515(0x204)][_0x3e3515(0x201)],_0x3e3515(0x203)),'buttonIcon':_0x3ed23a,'order':0x0,'content':this[_0x3e3515(0x213)]});}[_0x5c948c(0x20a)](_0x5413d3){const _0x4e71f8=_0x5c948c;this[_0x4e71f8(0x213)][_0x4e71f8(0x20a)](_0x5413d3);}[_0x5c948c(0x209)](_0x373df4){const _0x5b9b79=_0x5c948c;this[_0x5b9b79(0x213)][_0x5b9b79(0x1ee)](_0x373df4);}[_0x5c948c(0x207)](_0x221583,_0x1bdd7d){const _0x2a24d9=_0x5c948c;this[_0x2a24d9(0x213)][_0x2a24d9(0x207)](_0x221583,_0x1bdd7d);}[_0x5c948c(0x210)](_0x15d0b4,_0x3a143d,_0x3e383f){const _0x36b5ce=_0x5c948c;this[_0x36b5ce(0x213)][_0x36b5ce(0x210)](_0x15d0b4,_0x3a143d,_0x3e383f);}[_0x5c948c(0x206)](_0xa3beef){const _0x54d301=_0x5c948c;this[_0x54d301(0x213)][_0x54d301(0x214)]=_0xa3beef;}[_0x5c948c(0x1fb)](_0x391d99){const _0x1711aa=_0x5c948c;this[_0x1711aa(0x213)][_0x1711aa(0x1ff)]=_0x391d99;}[_0x5c948c(0x202)](){const _0x315d33=_0x5c948c;this[_0x315d33(0x213)][_0x315d33(0x1ff)]='';}[_0x5c948c(0x1f4)](_0x1945f6){const _0x233612=_0x5c948c;this[_0x233612(0x213)][_0x233612(0x1ed)]=_0x1945f6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x980075=_0x166d;function _0x166d(_0x1e9529,_0x82c83b){const _0x1ad555=_0x1ad5();return _0x166d=function(_0x166d65,_0x50a9d2){_0x166d65=_0x166d65-0x1ce;let _0x44fc3b=_0x1ad555[_0x166d65];return _0x44fc3b;},_0x166d(_0x1e9529,_0x82c83b);}(function(_0x120141,_0x225023){const _0xf1009c=_0x166d,_0x5207f1=_0x120141();while(!![]){try{const _0x3a559b=-parseInt(_0xf1009c(0x1f7))/0x1+-parseInt(_0xf1009c(0x1d1))/0x2*(-parseInt(_0xf1009c(0x1ef))/0x3)+parseInt(_0xf1009c(0x1e8))/0x4*(parseInt(_0xf1009c(0x1e4))/0x5)+parseInt(_0xf1009c(0x1fe))/0x6*(parseInt(_0xf1009c(0x1d4))/0x7)+parseInt(_0xf1009c(0x1f0))/0x8*(parseInt(_0xf1009c(0x1dc))/0x9)+-parseInt(_0xf1009c(0x1e6))/0xa*(-parseInt(_0xf1009c(0x1f1))/0xb)+-parseInt(_0xf1009c(0x1f4))/0xc*(parseInt(_0xf1009c(0x1da))/0xd);if(_0x3a559b===_0x225023)break;else _0x5207f1['push'](_0x5207f1['shift']());}catch(_0x39525f){_0x5207f1['push'](_0x5207f1['shift']());}}}(_0x1ad5,0xc8877));import{EmitterMixin as _0x4bc932}from'ckeditor5/src/utils.js';function _0x1ad5(){const _0x1f232f=['getFullYear','3527865mVkzhL','updateItemTitle','items','getResult','loadItems','getItems','itemRemoved','getItem','1775hdXuDb','updatePinned','91030sgYZrm','execute','2788glrcZg','updateTitle','removeItem','fire','group','error','fetchConversations','23556mYyvXg','24CNZLZd','1661fkfGNd','updateItemPinned','deleteConversation','12vCxaUk','init','filter','336286qiAkLj','splice','getTime','getMonth','findIndex','pinned','itemsLoaded','402FfpKMj','addItem','map','find','createdAt','258AIsUOj','push','getConversations','53641BMrkvo','connector','from','itemUpdated','getDate','updateConversation','41166047xCzjfc'];_0x1ad5=function(){return _0x1f232f;};return _0x1ad5();}import{AIChatHistoryItem as _0x1c4424}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x4bc932(){[_0x980075(0x1de)]=[];[_0x980075(0x1d5)];[_0x980075(0x1ec)];constructor({connector:_0x44e401,group:_0x2e07ff}){const _0x5becf9=_0x980075;super(),this[_0x5becf9(0x1d5)]=_0x44e401,this[_0x5becf9(0x1ec)]=_0x2e07ff;}async[_0x980075(0x1f5)](){const _0x39d958=_0x980075;try{const _0x36ee15=this[_0x39d958(0x1d5)][_0x39d958(0x1ee)](this[_0x39d958(0x1ec)]),_0x10ebe1=await _0x36ee15[_0x39d958(0x1d3)]();this[_0x39d958(0x1e0)](_0x10ebe1);}catch(_0x3588f6){this[_0x39d958(0x1eb)](_0x39d958(0x1ed),{'error':_0x3588f6,'operation':_0x39d958(0x1f5)});}}[_0x980075(0x1ff)](_0x41e48c){const _0x1bd82b=_0x980075;this[_0x1bd82b(0x1de)][_0x1bd82b(0x1d2)](_0x41e48c);}async[_0x980075(0x1ea)](_0xa3694a){const _0x4117bf=_0x980075,_0x452c30=this[_0x4117bf(0x1de)][_0x4117bf(0x1fb)](_0x320de8=>_0x320de8['id']===_0xa3694a);if(-0x1===_0x452c30)return!0x1;try{return await this[_0x4117bf(0x1d5)][_0x4117bf(0x1f3)](_0xa3694a)[_0x4117bf(0x1e7)](),this[_0x4117bf(0x1de)][_0x4117bf(0x1f8)](_0x452c30,0x1),this[_0x4117bf(0x1eb)](_0x4117bf(0x1e2),{'itemId':_0xa3694a}),!0x0;}catch(_0x1a0e01){return this[_0x4117bf(0x1eb)](_0x4117bf(0x1ed),{'error':_0x1a0e01,'operation':_0x4117bf(0x1ea),'itemId':_0xa3694a}),!0x1;}}[_0x980075(0x1e3)](_0x5ba6a0){const _0x45de20=_0x980075;return this[_0x45de20(0x1de)][_0x45de20(0x1cf)](_0x4f8b82=>_0x4f8b82['id']===_0x5ba6a0);}async[_0x980075(0x1dd)](_0x414a39,_0x1a8657){const _0x3b7ce1=_0x980075,_0x51fbda=this[_0x3b7ce1(0x1e3)](_0x414a39);if(!_0x51fbda)return!0x1;try{return await this[_0x3b7ce1(0x1d5)][_0x3b7ce1(0x1d9)](_0x414a39,{'title':_0x1a8657})[_0x3b7ce1(0x1df)](),_0x51fbda[_0x3b7ce1(0x1e9)](_0x1a8657),this[_0x3b7ce1(0x1eb)](_0x3b7ce1(0x1d7),{'itemId':_0x414a39,'updates':{'title':_0x1a8657}}),!0x0;}catch(_0x1e3842){return this[_0x3b7ce1(0x1eb)](_0x3b7ce1(0x1ed),{'error':_0x1e3842,'operation':_0x3b7ce1(0x1dd),'itemId':_0x414a39}),!0x1;}}async[_0x980075(0x1f2)](_0x53eaac,_0x3cd426){const _0x1b5322=_0x980075,_0x5b5dab=this[_0x1b5322(0x1e3)](_0x53eaac);if(!_0x5b5dab)return!0x1;try{return await this[_0x1b5322(0x1d5)][_0x1b5322(0x1d9)](_0x53eaac,{'pinned':_0x3cd426})[_0x1b5322(0x1df)](),_0x5b5dab[_0x1b5322(0x1e5)](_0x3cd426),this[_0x1b5322(0x1eb)](_0x1b5322(0x1d7),{'itemId':_0x53eaac,'updates':{'pinned':_0x3cd426}}),!0x0;}catch(_0x41e387){return this[_0x1b5322(0x1eb)](_0x1b5322(0x1ed),{'error':_0x41e387,'operation':_0x1b5322(0x1f2),'itemId':_0x53eaac}),!0x1;}}[_0x980075(0x1e0)](_0x32a550){const _0x307b32=_0x980075;try{this[_0x307b32(0x1de)]=[],_0x32a550[_0x307b32(0x1ce)](_0x4d5fb2=>{const _0x39c61b=_0x307b32;this[_0x39c61b(0x1ff)](new _0x1c4424(_0x4d5fb2));}),this[_0x307b32(0x1eb)](_0x307b32(0x1fd),{'items':[...this[_0x307b32(0x1de)]]});}catch(_0x4fc4f4){this[_0x307b32(0x1eb)](_0x307b32(0x1ed),{'error':_0x4fc4f4,'operation':_0x307b32(0x1e0)});}}[_0x980075(0x1e1)](_0x48e114={}){const _0x298270=_0x980075,_0x50ebbc=void 0x0!==_0x48e114[_0x298270(0x1fc)]&&_0x48e114[_0x298270(0x1fc)],_0x3c9db0=_0x48e114[_0x298270(0x1d6)]?new Date(_0x48e114[_0x298270(0x1d6)][_0x298270(0x1db)](),_0x48e114[_0x298270(0x1d6)][_0x298270(0x1fa)](),_0x48e114[_0x298270(0x1d6)][_0x298270(0x1d8)]()):null,_0x1ce580=_0x48e114['to']?new Date(_0x48e114['to'][_0x298270(0x1db)](),_0x48e114['to'][_0x298270(0x1fa)](),_0x48e114['to'][_0x298270(0x1d8)]()):null;return this[_0x298270(0x1de)][_0x298270(0x1f6)](_0x40ea23=>{const _0x260718=_0x298270;if(_0x40ea23[_0x260718(0x1fc)]!==_0x50ebbc)return!0x1;if(_0x1ce580){const _0x4f0903=new Date(_0x40ea23[_0x260718(0x1d0)][_0x260718(0x1db)](),_0x40ea23[_0x260718(0x1d0)][_0x260718(0x1fa)](),_0x40ea23[_0x260718(0x1d0)][_0x260718(0x1d8)]());return _0x3c9db0?_0x3c9db0[_0x260718(0x1f9)]()===_0x1ce580[_0x260718(0x1f9)]()?_0x4f0903[_0x260718(0x1f9)]()===_0x3c9db0[_0x260718(0x1f9)]():_0x4f0903<_0x1ce580&&_0x4f0903>=_0x3c9db0:_0x4f0903<_0x1ce580;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x56e1(_0x16e54a,_0x445798){var _0x245ebe=_0x245e();return _0x56e1=function(_0x56e1ef,_0x21aece){_0x56e1ef=_0x56e1ef-0x1a9;var _0x26bced=_0x245ebe[_0x56e1ef];return _0x26bced;},_0x56e1(_0x16e54a,_0x445798);}var _0x42ab6b=_0x56e1;(function(_0x198fd1,_0x3a718d){var _0x2ee93e=_0x56e1,_0x2e7c90=_0x198fd1();while(!![]){try{var _0x1545dd=parseInt(_0x2ee93e(0x1ad))/0x1+-parseInt(_0x2ee93e(0x1aa))/0x2+-parseInt(_0x2ee93e(0x1af))/0x3*(parseInt(_0x2ee93e(0x1ab))/0x4)+parseInt(_0x2ee93e(0x1b1))/0x5+parseInt(_0x2ee93e(0x1b3))/0x6+parseInt(_0x2ee93e(0x1b4))/0x7*(-parseInt(_0x2ee93e(0x1b2))/0x8)+-parseInt(_0x2ee93e(0x1b6))/0x9;if(_0x1545dd===_0x3a718d)break;else _0x2e7c90['push'](_0x2e7c90['shift']());}catch(_0x2adf00){_0x2e7c90['push'](_0x2e7c90['shift']());}}}(_0x245e,0x2c156));function _0x245e(){var _0x15f44c=['3184335MkGTDD','set','createdAt','updatePinned','169702UoCSue','3472NDJaCB','updateTitle','254006uWFWiz','updatedAt','381vUSOOC','title','1215385uKJaOa','7432iyeLTt','1516938iwMkVo','154cbQkcO','pinned'];_0x245e=function(){return _0x15f44c;};return _0x245e();}import{ObservableMixin as _0x340112}from'ckeditor5/src/utils.js';import{escape as _0x45857e}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x340112(){['id'];[_0x42ab6b(0x1b8)];constructor({id:_0xab8567,title:_0x54d040,createdAt:_0x1feafa,updatedAt:_0x47b9cd,pinned:_0x2eb0f5}){var _0x25c2cb=_0x42ab6b;super(),this['id']=_0xab8567,this[_0x25c2cb(0x1b8)]=new Date(_0x1feafa),this[_0x25c2cb(0x1b7)](_0x25c2cb(0x1b0),_0x54d040),this[_0x25c2cb(0x1b7)](_0x25c2cb(0x1ae),_0x47b9cd?new Date(_0x47b9cd):null),this[_0x25c2cb(0x1b7)](_0x25c2cb(0x1b5),_0x2eb0f5||!0x1);}[_0x42ab6b(0x1ac)](_0x41e29e){var _0x2d0cd7=_0x42ab6b;this[_0x2d0cd7(0x1b7)](_0x2d0cd7(0x1b0),_0x45857e(_0x41e29e)),this[_0x2d0cd7(0x1ae)]=new Date();}[_0x42ab6b(0x1a9)](_0x394e4c){var _0x4c7b28=_0x42ab6b;this[_0x4c7b28(0x1b7)](_0x4c7b28(0x1b5),_0x394e4c),this[_0x4c7b28(0x1ae)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
function _0x3b12(){const _0x442fc5=['execute','children','5714170WKiBow','AI_CHAT_HISTORY_LOADING_REMOVING','then','fire','ck-ai-chat-history__item-actions','click','LOADING_LABELS','set','bind','updateTitle','5391YwFmcA','_createEditInputView','locale','buttonView','selectConversation','ck-ai-chat-history__item-check-container','key','_createCheckView','value','AI_CHAT_HISTORY_EDIT_NAME','match','ck-ai-chat-history__item--active','ck-ai-loader__text','ck-confirm-view-cancel','tiny','Enter','isVisible','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item-content','300020iRAKfN','_createSpinnerView','AI_CHAT_HISTORY_CANCEL','4FJzSox','ck-hidden','_createPinButtonView','AI_CHAT_HISTORY_LOADING_PINNING','editConversationTitle','443148moAwua','removeConversation','highlightText','createCollection','8UOcISF','add','addMany','AI_CHAT_HISTORY_REMOVE','isEdit','ck-ai-chat-history__item-main-content','AI_CHAT_HISTORY_LOADING_UNPINNING','panelView','edit:cancel','63WlfGMg','actions','text','mainContent','div','withText','_commitEditInputValue','_createMenuDropdownView','setConversationPinned','ck-ai-chat-history__item-check','isOn','AI_CHAT_HISTORY_LOADING_RENAMING','_titleView','updateLoadingState','51798IgrHmn','ck-confirm-view-submit','2200075LQIVdh','ck-ai-chat-history__item','extendTemplate','ck-ai-loader','element','items','ck-ai-chat-history__item-row','clear','string','AI_CHAT_HISTORY_ACCEPT','ck-ai-chat-history__item-title','238803HLrSwr','bindTemplate','showConfirm','isMatching','pinned','ck-ai-chat-history__item-date','panelPosition','focus','_createAcceptEditButtonView','loadingState','setTemplate','span','ck-ai-chat-history__item--edit','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','change:isEdit','listitem','_createCancelEditButtonView','AI_CHAT_HISTORY_REMOVE_CONFIRM','label'];_0x3b12=function(){return _0x442fc5;};return _0x3b12();}const _0xf98b64=_0x1060;(function(_0x54d561,_0x32cc7c){const _0x461779=_0x1060,_0x8a5fef=_0x54d561();while(!![]){try{const _0x6324cc=parseInt(_0x461779(0x180))/0x1+parseInt(_0x461779(0x188))/0x2+-parseInt(_0x461779(0x1b0))/0x3+-parseInt(_0x461779(0x183))/0x4*(-parseInt(_0x461779(0x1a5))/0x5)+-parseInt(_0x461779(0x1a3))/0x6*(parseInt(_0x461779(0x195))/0x7)+-parseInt(_0x461779(0x18c))/0x8*(-parseInt(_0x461779(0x1cf))/0x9)+-parseInt(_0x461779(0x1c5))/0xa;if(_0x6324cc===_0x32cc7c)break;else _0x8a5fef['push'](_0x8a5fef['shift']());}catch(_0x1fd7a9){_0x8a5fef['push'](_0x8a5fef['shift']());}}}(_0x3b12,0x39015));import{ListItemView as _0x1a6f75,HighlightedTextView as _0x41f5c0,ButtonView as _0x39c900,ListView as _0x199cb3,IconView as _0x591a5c,createDropdown as _0x248066,InputTextView as _0x18be3d}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x5e899e,IconPin as _0x5c8947,IconCheck as _0x334e63,IconCancel as _0x5f5275}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x508adb,ConfirmMixin as _0x2a0975}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0xce7a26}from'es-toolkit/compat';import{AISpinnerView as _0x36d757}from'../../aicore/ui/aispinner.js';function _0x1060(_0x2a3608,_0x3e476b){const _0x3b1226=_0x3b12();return _0x1060=function(_0x10602f,_0x98f7ae){_0x10602f=_0x10602f-0x17e;let _0x496b4f=_0x3b1226[_0x10602f];return _0x496b4f;},_0x1060(_0x2a3608,_0x3e476b);}import{getTranslation as _0x16a506}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2a0975(_0x1a6f75){['id'];static [_0xf98b64(0x1cb)]={'remove':_0xf98b64(0x1c6),'rename':_0xf98b64(0x1a0),'pin':_0xf98b64(0x186),'unpin':_0xf98b64(0x192)};[_0xf98b64(0x196)];[_0xf98b64(0x198)];[_0xf98b64(0x1a1)];constructor(_0x163551,_0x6450f5){const _0x3ec23f=_0xf98b64;super(_0x163551);const _0x1c2251=this[_0x3ec23f(0x1b1)];this[_0x3ec23f(0x1cc)](_0x3ec23f(0x190),!0x1),this[_0x3ec23f(0x1cc)](_0x3ec23f(0x1df),!0x0),this[_0x3ec23f(0x1cc)](_0x3ec23f(0x1b4),!!_0x6450f5[_0x3ec23f(0x1b4)]),this[_0x3ec23f(0x1cc)](_0x3ec23f(0x1b9),null),this['id']=_0x6450f5['id'];const {title:_0x33de2e,createdAt:_0x18af2e,active:_0x102ec4=!0x1}=_0x6450f5;this[_0x3ec23f(0x1a1)]=new _0x41f5c0(),this[_0x3ec23f(0x1a1)][_0x3ec23f(0x197)]=_0x33de2e,this[_0x3ec23f(0x1a1)][_0x3ec23f(0x1a7)]({'attributes':{'class':[_0x3ec23f(0x1af)]}});const _0x214484=this[_0x3ec23f(0x1d6)](),_0x139892=this[_0x3ec23f(0x185)](_0x163551),_0x554acd=this[_0x3ec23f(0x19c)](),_0x5ce52e=this[_0x3ec23f(0x1d0)](_0x163551,_0x33de2e),_0x3768ec=this[_0x3ec23f(0x1b8)](_0x163551,_0x5ce52e),_0x3efd7d=this[_0x3ec23f(0x1c0)](_0x163551,_0x5ce52e);this[_0x3ec23f(0x196)]=this[_0x3ec23f(0x18b)](),this[_0x3ec23f(0x198)]=this[_0x3ec23f(0x18b)](),this[_0x3ec23f(0x198)][_0x3ec23f(0x18d)](this[_0x3ec23f(0x1a1)]),this[_0x3ec23f(0x196)][_0x3ec23f(0x18d)](_0x139892),this[_0x3ec23f(0x196)][_0x3ec23f(0x18d)](_0x554acd),this['on'](_0x3ec23f(0x1be),(_0x549e81,_0x4d63cf,_0x20e5f9)=>{const _0x296bb4=_0x3ec23f;this[_0x296bb4(0x196)][_0x296bb4(0x1ac)](),this[_0x296bb4(0x198)][_0x296bb4(0x1ac)](),_0x20e5f9?(this[_0x296bb4(0x196)][_0x296bb4(0x18d)](_0x3768ec),this[_0x296bb4(0x196)][_0x296bb4(0x18d)](_0x3efd7d),this[_0x296bb4(0x198)][_0x296bb4(0x18d)](_0x5ce52e),_0x5ce52e[_0x296bb4(0x1a9)][_0x296bb4(0x1b7)]()):(this[_0x296bb4(0x196)][_0x296bb4(0x18d)](_0x139892),this[_0x296bb4(0x196)][_0x296bb4(0x18d)](_0x554acd),this[_0x296bb4(0x198)][_0x296bb4(0x18d)](this[_0x296bb4(0x1a1)]));}),this[_0x3ec23f(0x1ba)]({'tag':'li','attributes':{'class':[_0x3ec23f(0x1a6),_0x102ec4?_0x3ec23f(0x1da):'',_0x1c2251['if'](_0x3ec23f(0x1df),_0x3ec23f(0x184),_0x2aa4a0=>!_0x2aa4a0),_0x1c2251['if'](_0x3ec23f(0x190),_0x3ec23f(0x1bc))],'role':_0x3ec23f(0x1bf)},'children':[{'tag':_0x3ec23f(0x1bb),'attributes':{'class':[_0x3ec23f(0x1d4)]},'children':[{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x19e),_0x1c2251['if'](_0x3ec23f(0x1b9),_0x3ec23f(0x184),_0x82e316=>!!_0x82e316)]},'children':_0x102ec4?[_0x214484]:[]},{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x1a8),_0x1c2251['if'](_0x3ec23f(0x1b9),_0x3ec23f(0x184),_0x54e0a8=>!_0x54e0a8)]},'children':[this[_0x3ec23f(0x181)]()]}]},{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x1ab)]},'children':[{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x17f)]},'on':{'click':this[_0x3ec23f(0x1b1)]['to'](_0x3ec23f(0x1ca))},'children':[{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x191)]},'children':[{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x1af),_0x1c2251['if'](_0x3ec23f(0x1b9),_0x3ec23f(0x184),_0x2e6a00=>!!_0x2e6a00)]},'children':this[_0x3ec23f(0x198)]},{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x1db),_0x1c2251['if'](_0x3ec23f(0x1b9),_0x3ec23f(0x184),_0x482d62=>!_0x482d62)]},'children':[{'text':_0x1c2251['to'](_0x3ec23f(0x1b9),_0x2f0fc4=>_0x2f0fc4?_0x16a506(this[_0x3ec23f(0x1d1)],AIChatHistoryListItemView[_0x3ec23f(0x1cb)][_0x2f0fc4]):'')}]}]},{'tag':_0x3ec23f(0x1bb),'attributes':{'class':[_0x3ec23f(0x1b5)]},'children':[_0x18af2e]}]},{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x1c9)]},'children':this[_0x3ec23f(0x196)]}]}]}),this['on'](_0x3ec23f(0x1ca),()=>{const _0x2b7a6c=_0x3ec23f;this[_0x2b7a6c(0x190)]||this[_0x2b7a6c(0x1c8)](_0x2b7a6c(0x1d3),{'id':this['id']});});}[_0xf98b64(0x1ce)](_0x5da3bf){const _0x51da51=_0xf98b64;this[_0x51da51(0x1a1)][_0x51da51(0x197)]=_0xce7a26(_0x5da3bf);}[_0xf98b64(0x1a2)](_0x3f9c16,_0x542d06){const _0x2c7d35=_0xf98b64;this[_0x2c7d35(0x1cc)](_0x2c7d35(0x1b9),_0x542d06?_0x3f9c16:null);}[_0xf98b64(0x1d6)](){const _0xeddd4f=_0xf98b64,_0x567e06=new _0x591a5c();return _0x567e06[_0xeddd4f(0x1cc)]({'content':_0x334e63}),_0x567e06;}[_0xf98b64(0x185)](_0x5aa8ef){const _0x5da79d=_0xf98b64,_0x3ecc4a=new _0x39c900(_0x5aa8ef);return _0x3ecc4a[_0x5da79d(0x1cc)]({'label':_0x16a506(_0x5aa8ef,_0x5da79d(0x17e)),'icon':_0x5c8947,'withText':!0x1,'tooltip':!0x0}),_0x3ecc4a[_0x5da79d(0x1cd)](_0x5da79d(0x19f))['to'](this,_0x5da79d(0x1b4)),_0x3ecc4a['on'](_0x5da79d(0x1c3),()=>{const _0x54831b=_0x5da79d,_0x384016=!this[_0x54831b(0x1b4)];this[_0x54831b(0x1c8)](_0x54831b(0x19d),{'id':this['id'],'pinned':_0x384016});}),_0x3ecc4a;}[_0xf98b64(0x19c)](){const _0x3aa535=_0xf98b64,_0x496646=_0x248066(this[_0x3aa535(0x1d1)],_0x508adb),_0xa6d94=_0x496646[_0x3aa535(0x193)][_0x3aa535(0x1c4)];_0x496646[_0x3aa535(0x1d2)][_0x3aa535(0x1cc)]({'label':_0x16a506(this[_0x3aa535(0x1d1)],_0x3aa535(0x1bd)),'icon':_0x5e899e}),_0x496646[_0x3aa535(0x1b6)]='sw';const _0x5b7a14=new _0x39c900(this[_0x3aa535(0x1d1)]);_0x5b7a14[_0x3aa535(0x1c2)]=_0x16a506(this[_0x3aa535(0x1d1)],_0x3aa535(0x1d8)),_0x5b7a14[_0x3aa535(0x19a)]=!0x0,_0x5b7a14['on'](_0x3aa535(0x1c3),()=>{const _0x332c32=_0x3aa535;this[_0x332c32(0x190)]=!0x0;});const _0xeb66c0=new _0x39c900(this[_0x3aa535(0x1d1)]);_0xeb66c0[_0x3aa535(0x1c2)]=_0x16a506(this[_0x3aa535(0x1d1)],_0x3aa535(0x18f)),_0xeb66c0[_0x3aa535(0x19a)]=!0x0,_0xeb66c0['on'](_0x3aa535(0x1c3),()=>{const _0x3dc4bf=_0x3aa535;this[_0x3dc4bf(0x1b2)](_0x16a506(this[_0x3dc4bf(0x1d1)],_0x3dc4bf(0x1c1)),this[_0x3dc4bf(0x1a9)])[_0x3dc4bf(0x1c7)](()=>{const _0x4a99ee=_0x3dc4bf;this[_0x4a99ee(0x1c8)](_0x4a99ee(0x189),{'id':this['id']});});});const _0x4edb30=new _0x199cb3(this[_0x3aa535(0x1d1)]),_0x3b4565=new _0x1a6f75(this[_0x3aa535(0x1d1)]);_0x3b4565[_0x3aa535(0x1c4)][_0x3aa535(0x18d)](_0x5b7a14);const _0x326240=new _0x1a6f75(this[_0x3aa535(0x1d1)]);return _0x326240[_0x3aa535(0x1c4)][_0x3aa535(0x18d)](_0xeb66c0),_0x4edb30[_0x3aa535(0x1aa)][_0x3aa535(0x18e)]([_0x3b4565,_0x326240]),_0xa6d94[_0x3aa535(0x18d)](_0x4edb30),_0x496646;}[_0xf98b64(0x1d0)](_0x1ccaa6,_0x154558){const _0x2f1809=_0xf98b64,_0x130df7=new _0x18be3d(_0x1ccaa6),_0x1521a4=_0x130df7[_0x2f1809(0x1b1)];return _0x130df7[_0x2f1809(0x1d7)]=_0x154558,_0x130df7[_0x2f1809(0x1a7)]({'on':{'keydown':_0x1521a4['to'](_0x3e984e=>{const _0x4c98ab=_0x2f1809;_0x4c98ab(0x1de)==_0x3e984e[_0x4c98ab(0x1d5)]&&this[_0x4c98ab(0x19b)](_0x130df7);})}}),_0x130df7;}[_0xf98b64(0x1b8)](_0x2e28da,_0x3ae6c8){const _0x27007f=_0xf98b64,_0x35cdf5=new _0x39c900(_0x2e28da);return _0x35cdf5[_0x27007f(0x1cc)]({'icon':_0x334e63,'withText':!0x1,'tooltip':_0x16a506(_0x2e28da,_0x27007f(0x1ae))}),_0x35cdf5[_0x27007f(0x1a7)]({'attributes':{'class':[_0x27007f(0x1a4)]}}),_0x35cdf5['on'](_0x27007f(0x1c3),()=>{const _0x44a5fb=_0x27007f;this[_0x44a5fb(0x19b)](_0x3ae6c8);}),_0x35cdf5;}[_0xf98b64(0x19b)](_0x2114da){const _0x201ea8=_0xf98b64,_0x3a0ee0=_0x2114da[_0x201ea8(0x1a9)][_0x201ea8(0x1d7)]||'';this[_0x201ea8(0x1a1)][_0x201ea8(0x197)]=_0x3a0ee0,this[_0x201ea8(0x190)]=!0x1,this[_0x201ea8(0x1c8)](_0x201ea8(0x187),{'id':this['id'],'title':_0x3a0ee0});}[_0xf98b64(0x1c0)](_0xb65f12,_0x22f5e7){const _0x31016c=_0xf98b64,_0x238343=new _0x39c900(_0xb65f12);return _0x238343[_0x31016c(0x1cc)]({'icon':_0x5f5275,'withText':!0x1,'tooltip':_0x16a506(_0xb65f12,_0x31016c(0x182))}),_0x238343[_0x31016c(0x1a7)]({'attributes':{'class':[_0x31016c(0x1dc)]}}),_0x238343['on'](_0x31016c(0x1c3),()=>{const _0x2e0f62=_0x31016c;this[_0x2e0f62(0x190)]=!0x1,_0x22f5e7[_0x2e0f62(0x1d7)]=this[_0x2e0f62(0x1a1)][_0x2e0f62(0x197)]||'',this[_0x2e0f62(0x1c8)](_0x2e0f62(0x194));}),_0x238343;}[_0xf98b64(0x181)](){const _0x4ba509=_0xf98b64,_0x3d77f6=new _0x36d757(_0x4ba509(0x1dd));return _0x3d77f6[_0x4ba509(0x1df)]=!0x0,_0x3d77f6;}[_0xf98b64(0x1b3)](_0x3ec726){const _0x40883f=_0xf98b64;return this[_0x40883f(0x1a1)]&&_0x40883f(0x1ad)==typeof this[_0x40883f(0x1a1)][_0x40883f(0x197)]&&this[_0x40883f(0x1a1)][_0x40883f(0x197)][_0x40883f(0x1d9)](_0x3ec726)?{'title':!0x0}:null;}[_0xf98b64(0x18a)](_0x321048){const _0x216836=_0xf98b64;this[_0x216836(0x1a1)][_0x216836(0x18a)](_0x321048);}}
|