@ckeditor/ckeditor5-ai 47.2.0-alpha.0 → 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 _0x3cc200=_0x4838;(function(_0x512625,_0x1112a0){const _0x3680ad=_0x4838,_0x98367a=_0x512625();while(!![]){try{const _0x1bffa4=-parseInt(_0x3680ad(0x14f))/0x1+-parseInt(_0x3680ad(0x157))/0x2*(-parseInt(_0x3680ad(0x153))/0x3)+parseInt(_0x3680ad(0x133))/0x4*(parseInt(_0x3680ad(0x12c))/0x5)+-parseInt(_0x3680ad(0x15d))/0x6+parseInt(_0x3680ad(0x142))/0x7*(-parseInt(_0x3680ad(0x138))/0x8)+parseInt(_0x3680ad(0x165))/0x9*(-parseInt(_0x3680ad(0x172))/0xa)+-parseInt(_0x3680ad(0x167))/0xb*(-parseInt(_0x3680ad(0x16e))/0xc);if(_0x1bffa4===_0x1112a0)break;else _0x98367a['push'](_0x98367a['shift']());}catch(_0x4dfcf6){_0x98367a['push'](_0x98367a['shift']());}}}(_0x1762,0xcb7ac));import{KeystrokeHandler as _0x240517}from'ckeditor5/src/utils.js';function _0x4838(_0x519f72,_0x1318b9){const _0x176263=_0x1762();return _0x4838=function(_0x483854,_0x28f684){_0x483854=_0x483854-0x128;let _0xa14216=_0x176263[_0x483854];return _0xa14216;},_0x4838(_0x519f72,_0x1318b9);}import{BalloonPanelView as _0x5eabc4,BodyCollection as _0x4d0cc6,ButtonView as _0x50b4c9,clickOutsideHandler as _0x27952a,ListItemButtonView as _0x2fef2d,ListItemView as _0x5119e9,ListView as _0xabd391,SplitButtonView as _0x5b4d06,UIModel as _0x5a0cbd,View as _0x395bda}from'ckeditor5/src/ui.js';import{IconCheck as _0x43b88c,IconAddComment as _0x93b855,IconDocumentWithLoupe as _0x469ae3}from'ckeditor5/src/icons.js';import{getTranslation as _0x59bcd0}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x3cc200(0x144),_0x3cc200(0x137),_0x3cc200(0x169)];function _0x1762(){const _0x5b0f0f=['_partsCount','4JrzWFD','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','items','ltr','insertSuggestion','48hjIuwb','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','children','keystrokeHandler','has','button','actionName','updateLabels','actionsButton','bindTemplate','1007762dWWGia','balloonPanelClass','applySuggestion','createCollection','execute','ck-ai-chat__feed__ai-suggestion__actions--no-animation','change:isTrackChangesOn','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','ck-hidden','delegate','isEnabled','detachFromDom','listView','1125436jIdMqt','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','uiLanguageDirection','pin','63285QHGHiO','_firstRender','_setUpList','ck-ai-chat__feed__ai-suggestion__actions','52NuzQOt','listenTo','arrowless','source','showChangeInTextModel','listItemModels','2801928vmhTcS','_dropdownOriginalConfig','esc','class','filter','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','fire','unbind','3177VuWTdi','ck-ai-chat__feed__ai-suggestion__actions__balloon','11JWCCSe','bodyCollection','showChangeInText','arrowView','setTemplate','_createActionsButton','bottom','49488240MXJJaA','isTrackChangesOn','locale','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','44320YfuUsl','bind','label','applySuggestionModel','_updateDropdownActions','set','div','isVisible','focus','_dropdownCurrentConfig','hide','destroy','width','ck-ai-chat__feed__ai-suggestion__actions\x20','map','_createActionsDropdown','_createActionsDropdownOrButton','attachToDom','ck-ai-button-primary','element','balloonPanelView','insertSuggestionModel','content','open','keys','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','slice','remove','908390lmRyAq','_setUpKeystrokes','add','length','left','tooltip'];_0x1762=function(){return _0x5b0f0f;};return _0x1762();}export class AIChatFeedSuggestionItemActionsView extends _0x395bda{[_0x3cc200(0x140)];[_0x3cc200(0x13a)];[_0x3cc200(0x175)];[_0x3cc200(0x15b)];[_0x3cc200(0x187)];[_0x3cc200(0x132)]=0x1;[_0x3cc200(0x15e)];[_0x3cc200(0x17b)];[_0x3cc200(0x154)]=!0x0;constructor(_0x286a9f,_0x39fb5a){const _0x40dd51=_0x3cc200;super(_0x286a9f),this[_0x40dd51(0x15e)]=_0x39fb5a||[...AI_REPLY_ACTIONS],this[_0x40dd51(0x17b)]=[...this[_0x40dd51(0x15e)]];const _0x4f273e=this[_0x40dd51(0x141)];this[_0x40dd51(0x177)](_0x40dd51(0x14c),!0x0),this[_0x40dd51(0x177)](_0x40dd51(0x179),!0x0),this[_0x40dd51(0x177)](_0x40dd51(0x16f),!0x1),this[_0x40dd51(0x175)]=new _0x5a0cbd({'label':Hn(_0x40dd51(0x144),_0x286a9f,this[_0x40dd51(0x132)]),'icon':_0x43b88c,'withText':!0x0,'type':_0x40dd51(0x13d),'actionName':_0x40dd51(0x144)}),this[_0x40dd51(0x15b)]=new _0x5a0cbd({'label':Hn(_0x40dd51(0x169),_0x286a9f,this[_0x40dd51(0x132)]),'icon':_0x469ae3,'withText':!0x0,'type':_0x40dd51(0x13d),'actionName':_0x40dd51(0x169)}),this[_0x40dd51(0x187)]=new _0x5a0cbd({'label':Hn(_0x40dd51(0x137),_0x286a9f,this[_0x40dd51(0x132)]),'icon':_0x93b855,'withText':!0x0,'type':_0x40dd51(0x13d),'actionName':_0x40dd51(0x137)}),this[_0x40dd51(0x140)]=this[_0x40dd51(0x182)](_0x286a9f),this[_0x40dd51(0x13a)]=this[_0x40dd51(0x145)](),this[_0x40dd51(0x140)]&&this[_0x40dd51(0x13a)][_0x40dd51(0x12e)](this[_0x40dd51(0x140)]),this[_0x40dd51(0x16b)]({'tag':_0x40dd51(0x178),'attributes':{'class':['ck',_0x40dd51(0x156),_0x4f273e['if'](_0x40dd51(0x179),_0x40dd51(0x14a),_0x266dc9=>!_0x266dc9)]},'children':this[_0x40dd51(0x13a)]}),this['on'](_0x40dd51(0x148),()=>{const _0x19e855=_0x40dd51;this[_0x19e855(0x17b)]=this[_0x19e855(0x16f)]?this[_0x19e855(0x15e)][_0x19e855(0x161)](_0x14193d=>_0x19e855(0x144)!==_0x14193d):[...this[_0x19e855(0x15e)]],this[_0x19e855(0x176)](_0x286a9f);});}[_0x3cc200(0x176)](_0x3ce69d){const _0xfbd52b=_0x3cc200;this[_0xfbd52b(0x140)]&&this[_0xfbd52b(0x13a)][_0xfbd52b(0x13c)](this[_0xfbd52b(0x140)])&&(this[_0xfbd52b(0x13a)][_0xfbd52b(0x12b)](this[_0xfbd52b(0x140)]),this[_0xfbd52b(0x140)][_0xfbd52b(0x17d)]()),this[_0xfbd52b(0x140)]=this[_0xfbd52b(0x182)](_0x3ce69d),this[_0xfbd52b(0x140)]&&this[_0xfbd52b(0x13a)][_0xfbd52b(0x12e)](this[_0xfbd52b(0x140)]);}[_0x3cc200(0x182)](_0x3d6486){const _0x3eded8=_0x3cc200;if(0x0==this[_0x3eded8(0x17b)][_0x3eded8(0x12f)])return null;const _0x19d801=0x1===this[_0x3eded8(0x17b)][_0x3eded8(0x12f)]?this[_0x3eded8(0x16c)](_0x3d6486):this[_0x3eded8(0x181)](_0x3d6486),_0xbfa474=this[_0x3eded8(0x154)]?'':_0x3eded8(0x147);_0x19d801[_0x3eded8(0x177)]({'label':Hn(this[_0x3eded8(0x17b)][0x0],_0x3d6486,this[_0x3eded8(0x132)]),'tooltip':Ln(this[_0x3eded8(0x17b)][0x0],_0x3d6486,this[_0x3eded8(0x132)]),'withText':!0x0,'class':_0x3eded8(0x17f)+_0xbfa474});for(const _0x4c0e5f of this[_0x3eded8(0x17b)])_0x19d801['on'](_0x4c0e5f,()=>{const _0x414484=_0x3eded8;this[_0x414484(0x163)](_0x4c0e5f);});return this[_0x3eded8(0x154)]=!0x1,_0x19d801;}[_0x3cc200(0x16c)](_0x4f94ef){const _0xe2e08=_0x3cc200,_0x259bae=new _0x50b4c9(_0x4f94ef);return _0x259bae[_0xe2e08(0x177)]({'class':_0xe2e08(0x184),'withText':!0x0}),_0x259bae['on'](_0xe2e08(0x146),()=>{const _0x3f7dfb=_0xe2e08;_0x259bae[_0x3f7dfb(0x163)](this[_0x3f7dfb(0x17b)][0x0]);}),_0x259bae;}[_0x3cc200(0x181)](_0x12a62a){const _0x33cada=_0x3cc200,_0x3162d6=new Gn(_0x12a62a,{'listItemModels':this[_0x33cada(0x17b)][_0x33cada(0x180)](_0x57ce8a=>{const _0x54dc35=_0x33cada;switch(_0x57ce8a){case _0x54dc35(0x144):return this[_0x54dc35(0x175)];case _0x54dc35(0x169):return this[_0x54dc35(0x15b)];case _0x54dc35(0x137):return this[_0x54dc35(0x187)];}})});return _0x3162d6[_0x33cada(0x177)]({'label':Hn(this[_0x33cada(0x17b)][0x0],_0x12a62a,this[_0x33cada(0x132)]),'tooltip':Ln(this[_0x33cada(0x17b)][0x0],_0x12a62a,this[_0x33cada(0x132)]),'withText':!0x0,'class':_0x33cada(0x156),'balloonPanelClass':_0x33cada(0x166)}),_0x3162d6[_0x33cada(0x173)](_0x33cada(0x14c))['to'](this),_0x3162d6;}[_0x3cc200(0x13f)](_0x401763){const _0x1fdbef=_0x3cc200,_0x27028a=this[_0x1fdbef(0x170)];this[_0x1fdbef(0x132)]=_0x401763||this[_0x1fdbef(0x132)],this[_0x1fdbef(0x140)][_0x1fdbef(0x177)]({'label':Hn(this[_0x1fdbef(0x17b)][0x0],_0x27028a,this[_0x1fdbef(0x132)]),'tooltip':Ln(this[_0x1fdbef(0x17b)][0x0],_0x27028a,this[_0x1fdbef(0x132)])}),this[_0x1fdbef(0x175)][_0x1fdbef(0x174)]=Hn(_0x1fdbef(0x144),_0x27028a,this[_0x1fdbef(0x132)]),this[_0x1fdbef(0x15b)][_0x1fdbef(0x174)]=Hn(_0x1fdbef(0x169),_0x27028a,this[_0x1fdbef(0x132)]),this[_0x1fdbef(0x187)][_0x1fdbef(0x174)]=Hn(_0x1fdbef(0x137),_0x27028a,this[_0x1fdbef(0x132)]);}}class Gn extends _0x5b4d06{[_0x3cc200(0x168)];[_0x3cc200(0x186)];[_0x3cc200(0x14e)];[_0x3cc200(0x13b)];constructor(_0x46a46c,_0x551c81){const _0x271712=_0x3cc200;super(_0x46a46c),this[_0x271712(0x186)]=new _0x5eabc4(this[_0x271712(0x170)]),this[_0x271712(0x168)]=new _0x4d0cc6(this[_0x271712(0x170)]),this[_0x271712(0x168)][_0x271712(0x183)](),this[_0x271712(0x177)](_0x271712(0x143),''),this[_0x271712(0x186)][_0x271712(0x173)](_0x271712(0x160))['to'](this,_0x271712(0x143)),this[_0x271712(0x14e)]=this[_0x271712(0x155)](_0x551c81[_0x271712(0x15c)][_0x271712(0x12a)](0x1)),this[_0x271712(0x168)][_0x271712(0x12e)](this[_0x271712(0x186)]),this[_0x271712(0x186)][_0x271712(0x188)][_0x271712(0x12e)](this[_0x271712(0x14e)]),this[_0x271712(0x16a)][_0x271712(0x164)](_0x271712(0x131)),this[_0x271712(0x16a)][_0x271712(0x177)](_0x271712(0x131),_0x59bcd0(this[_0x271712(0x170)],_0x271712(0x139))),this[_0x271712(0x12d)](),this['on'](_0x271712(0x146),()=>{const _0x5e2d0c=_0x271712,_0xdd6b1d=_0x551c81[_0x5e2d0c(0x15c)][0x0][_0x5e2d0c(0x13e)];this[_0x5e2d0c(0x163)](_0xdd6b1d),this[_0x5e2d0c(0x186)][_0x5e2d0c(0x17c)](),this[_0x5e2d0c(0x16a)][_0x5e2d0c(0x17a)]();}),this['on'](_0x271712(0x189),()=>{const _0x1d0beb=_0x271712;this[_0x1d0beb(0x186)][_0x1d0beb(0x179)]?(this[_0x1d0beb(0x186)][_0x1d0beb(0x17c)](),this[_0x1d0beb(0x16a)][_0x1d0beb(0x17a)]()):(this[_0x1d0beb(0x186)][_0x1d0beb(0x152)]({'target':this[_0x1d0beb(0x185)],'positions':[_0x1d0beb(0x136)===this[_0x1d0beb(0x170)][_0x1d0beb(0x151)]?yn:Pn]}),this[_0x1d0beb(0x14e)][_0x1d0beb(0x17a)]());}),_0x27952a({'emitter':this[_0x271712(0x186)],'callback':()=>{const _0x342f99=_0x271712;this[_0x342f99(0x186)][_0x342f99(0x17c)]();},'activator':()=>this[_0x271712(0x186)][_0x271712(0x179)],'contextElements':()=>[this[_0x271712(0x185)],this[_0x271712(0x186)][_0x271712(0x185)]]});}[_0x3cc200(0x155)](_0x152061){const _0x2f1a51=_0x3cc200,_0x22724=this[_0x2f1a51(0x170)],_0x18a09a=new _0xabd391(_0x22724);for(const _0x585d31 of _0x152061){const _0x1f0227=new _0x5119e9(_0x22724),_0x1a725d=new _0x2fef2d(_0x22724);_0x1a725d[_0x2f1a51(0x173)](...Object[_0x2f1a51(0x128)](_0x585d31))['to'](_0x585d31),_0x1a725d[_0x2f1a51(0x14b)](_0x2f1a51(0x146))['to'](_0x18a09a),_0x1f0227[_0x2f1a51(0x13a)][_0x2f1a51(0x12e)](_0x1a725d),_0x18a09a[_0x2f1a51(0x135)][_0x2f1a51(0x12e)](_0x1f0227);}return _0x18a09a[_0x2f1a51(0x135)][_0x2f1a51(0x14b)](_0x2f1a51(0x146))['to'](this),_0x18a09a['on'](_0x2f1a51(0x146),_0x17ebf1=>{const _0x933911=_0x2f1a51,_0x34a436=_0x17ebf1[_0x933911(0x15a)];this[_0x933911(0x163)](_0x34a436[_0x933911(0x13e)]),this[_0x933911(0x186)][_0x933911(0x17c)](),this[_0x933911(0x16a)][_0x933911(0x17a)]();}),_0x18a09a;}[_0x3cc200(0x12d)](){const _0x503329=_0x3cc200;this[_0x503329(0x13b)]=new _0x240517(),this[_0x503329(0x13b)][_0x503329(0x158)](this[_0x503329(0x186)][_0x503329(0x185)]),this[_0x503329(0x13b)][_0x503329(0x177)](_0x503329(0x15f),(_0x2dd424,_0x473da5)=>{const _0x54f560=_0x503329;this[_0x54f560(0x186)][_0x54f560(0x17c)](),this[_0x54f560(0x16a)][_0x54f560(0x17a)](),_0x473da5();});}[_0x3cc200(0x17d)](){const _0x44758f=_0x3cc200;super[_0x44758f(0x17d)](),this[_0x44758f(0x13b)][_0x44758f(0x17d)](),this[_0x44758f(0x186)][_0x44758f(0x17d)](),this[_0x44758f(0x168)][_0x44758f(0x14d)]();}}function yn(_0x21dee5){const _0x3026d0=_0x3cc200;return{'top':_0x21dee5[_0x3026d0(0x16d)],'left':_0x21dee5[_0x3026d0(0x130)],'name':_0x3026d0(0x159),'config':{'withArrow':!0x1}};}function Pn(_0x407a34,_0x1b9b51){const _0x13a330=_0x3cc200;return{'top':_0x407a34[_0x13a330(0x16d)],'left':_0x407a34[_0x13a330(0x130)]-(_0x1b9b51[_0x13a330(0x17e)]-_0x407a34[_0x13a330(0x17e)]),'name':_0x13a330(0x159),'config':{'withArrow':!0x1}};}function Hn(_0x1c55f2,_0x722336,_0x41ae5f){const _0x477f22=_0x3cc200;switch(_0x1c55f2){case _0x477f22(0x144):return _0x59bcd0(_0x722336,_0x477f22(0x171),_0x41ae5f);case _0x477f22(0x169):return _0x59bcd0(_0x722336,_0x477f22(0x129),_0x41ae5f);case _0x477f22(0x137):return _0x59bcd0(_0x722336,_0x477f22(0x149),_0x41ae5f);}}function Ln(_0x304f4f,_0x38167d,_0x31fda0){const _0x427987=_0x3cc200;switch(_0x304f4f){case _0x427987(0x144):return _0x59bcd0(_0x38167d,_0x427987(0x134),_0x31fda0);case _0x427987(0x169):return _0x59bcd0(_0x38167d,_0x427987(0x150),_0x31fda0);case _0x427987(0x137):return _0x59bcd0(_0x38167d,_0x427987(0x162),_0x31fda0);}}
|
|
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
|
-
|
|
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
|
-
var
|
|
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 _0x5b34ec=_0x5844;(function(_0xe63a16,_0x6de140){const _0x40fed9=_0x5844,_0x55b72c=_0xe63a16();while(!![]){try{const _0x16accd=parseInt(_0x40fed9(0x207))/0x1*(parseInt(_0x40fed9(0x20d))/0x2)+-parseInt(_0x40fed9(0x21c))/0x3*(parseInt(_0x40fed9(0x215))/0x4)+-parseInt(_0x40fed9(0x21a))/0x5*(-parseInt(_0x40fed9(0x21d))/0x6)+parseInt(_0x40fed9(0x1e7))/0x7*(parseInt(_0x40fed9(0x206))/0x8)+parseInt(_0x40fed9(0x1dd))/0x9+parseInt(_0x40fed9(0x208))/0xa+-parseInt(_0x40fed9(0x1e1))/0xb;if(_0x16accd===_0x6de140)break;else _0x55b72c['push'](_0x55b72c['shift']());}catch(_0x3a4156){_0x55b72c['push'](_0x55b72c['shift']());}}}(_0x2707,0x54411));import{ContextPlugin as _0xa1891e}from'ckeditor5/src/core.js';function _0x2707(){const _0x33e818=['getMonth','itemId','_handleHistoryErrorUI','resizedTabs','pin','requires','showError','_handleEditTitle','_handleSelectConversation','getItems','handleRemovedConversation','push','editConversationTitle','isOfficialPlugin','isPremiumPlugin','pinned','updateItemTitle','removeHistoryItem','_handleTogglePin','getGroupId','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','getItem','updateItemLoadingState','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','setDate','activateTab','612774XLliCp','length','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','rename','8755087msqTFK','itemUpdated','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','resizeTabs','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','setLoadingSkeleton','7uRDrGI','_clearItemLoading','_getCategorizedItems','operation','_setItemLoading','items','AIChatHistoryController','activateTab:history','_aiChatController','_setIsMaximized','_aiConnector','init','chat','AI_CHAT_HISTORY_UNPIN_ACTION','AI_CHAT_HISTORY_PIN_ACTION','loadItems','AI_CHAT_UNTITLED_CONVERSATION','_generateErrorMessage','plugins','pluginName','removeConversation','get','getFullYear','listenTo','history','openChat','title','updateItems','change:activeConversation','AI_CHAT_HISTORY_CATEGORY_TODAY','error','1944632NCSBBJ','17383TzlUXD','426000amEdZd','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','updates','setConversationPinned','itemsLoaded','34XNhkVA','selectConversation','setIsMaximized','unpin','_aiChatHistoryUi','updateItemPinned','AI_CHAT_HISTORY_CATEGORY_LATER','_updateHistoryItemsUI','144076AIUavo','createdAt','locale','getDate','_handleRemove','35gckTLN','itemRemoved','3TPLeVb','452370KoIKxP','AI_CHAT_HISTORY_ERROR_GENERIC','loadConversation','activeConversation','view','map','remove','_showConversationHistory','AI_CHAT_HISTORY_CATEGORY_PINNED','context','removeItem','toLocaleDateString','resize'];_0x2707=function(){return _0x33e818;};return _0x2707();}function _0x5844(_0x1da1f8,_0x4c2deb){const _0x2707e5=_0x2707();return _0x5844=function(_0x58444d,_0x3ad95d){_0x58444d=_0x58444d-0x1c5;let _0x1c4e1a=_0x2707e5[_0x58444d];return _0x1c4e1a;},_0x5844(_0x1da1f8,_0x4c2deb);}import{AIConnector as _0x514e7b}from'../aicore/aiconnector.js';import{AIChatController as _0x3bfa5d}from'../aichat/aichatcontroller.js';import{AITabs as _0x4cc83f}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x254082}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x5b1c68}from'./model/aichathistoryconversations.js';import{getTranslation as _0x24aef3}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0xa1891e{[_0x5b34ec(0x1f1)];[_0x5b34ec(0x211)];[_0x5b34ec(0x1ef)];static get[_0x5b34ec(0x1c8)](){return[_0x514e7b,_0x3bfa5d,_0x254082,_0x4cc83f];}static get[_0x5b34ec(0x1fa)](){const _0x426dfd=_0x5b34ec;return _0x426dfd(0x1ed);}static get[_0x5b34ec(0x1d0)](){return!0x0;}static get[_0x5b34ec(0x1d1)](){return!0x0;}[_0x5b34ec(0x1f2)](){const _0x19d348=_0x5b34ec;this[_0x19d348(0x1f1)]=this[_0x19d348(0x226)][_0x19d348(0x1f9)][_0x19d348(0x1fc)](_0x514e7b),this[_0x19d348(0x211)]=this[_0x19d348(0x226)][_0x19d348(0x1f9)][_0x19d348(0x1fc)](_0x254082),this[_0x19d348(0x1ef)]=this[_0x19d348(0x226)][_0x19d348(0x1f9)][_0x19d348(0x1fc)](_0x3bfa5d);const _0x498a79=this[_0x19d348(0x226)][_0x19d348(0x1f9)][_0x19d348(0x1fc)](_0x4cc83f),_0x48e3f5=this[_0x19d348(0x1ef)][_0x19d348(0x1d6)]();this[_0x19d348(0x1ff)]=new _0x5b1c68({'connector':this[_0x19d348(0x1f1)],'group':_0x48e3f5}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x1fb),(_0x3b1996,_0x1bbca8)=>{const _0x38227c=_0x19d348;this[_0x38227c(0x1eb)](_0x1bbca8['id'],_0x38227c(0x223)),this[_0x38227c(0x219)](_0x1bbca8['id']);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x1cf),(_0x1178d2,_0x4bcb18)=>{const _0x504fe7=_0x19d348;this[_0x504fe7(0x1eb)](_0x4bcb18['id'],_0x504fe7(0x1e0)),this[_0x504fe7(0x1ca)](_0x4bcb18['id'],_0x4bcb18[_0x504fe7(0x201)]);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x1ff)],_0x19d348(0x1e2),(_0x30e506,_0x538775)=>{const _0x224ab4=_0x19d348;void 0x0!==_0x538775[_0x224ab4(0x20a)][_0x224ab4(0x201)]&&this[_0x224ab4(0x211)][_0x224ab4(0x1d3)](_0x538775[_0x224ab4(0x22b)],_0x538775[_0x224ab4(0x20a)][_0x224ab4(0x201)]),void 0x0!==_0x538775[_0x224ab4(0x20a)][_0x224ab4(0x1d2)]&&this[_0x224ab4(0x214)](),this[_0x224ab4(0x1e8)](_0x538775[_0x224ab4(0x22b)]);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x1ff)],_0x19d348(0x21b),(_0x2fe4d7,_0x55f53f)=>{const _0x1ac1e4=_0x19d348;this[_0x1ac1e4(0x1ef)][_0x1ac1e4(0x1cd)](_0x55f53f[_0x1ac1e4(0x22b)]),this[_0x1ac1e4(0x211)][_0x1ac1e4(0x1d4)](_0x55f53f[_0x1ac1e4(0x22b)]),this[_0x1ac1e4(0x1e8)](_0x55f53f[_0x1ac1e4(0x22b)]);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x1ff)],_0x19d348(0x20c),()=>{const _0x7b95c3=_0x19d348;this[_0x7b95c3(0x214)]();}),this[_0x19d348(0x1fe)](this[_0x19d348(0x1ff)],_0x19d348(0x205),(_0x3d1b27,_0x3c8823)=>{const _0x4fcfc8=_0x19d348;this[_0x4fcfc8(0x1c5)](_0x3c8823[_0x4fcfc8(0x205)],_0x3c8823[_0x4fcfc8(0x1ea)],_0x3c8823[_0x4fcfc8(0x22b)]);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x20e),(_0x98d031,_0x4b5048)=>{const _0x29e9db=_0x19d348;this[_0x29e9db(0x1cb)](_0x4b5048['id']);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x20b),(_0x22b420,_0x3c7775)=>{const _0xc786eb=_0x19d348,_0x5214b4=_0x3c7775[_0xc786eb(0x1d2)]?_0xc786eb(0x1c7):_0xc786eb(0x210);this[_0xc786eb(0x1eb)](_0x3c7775['id'],_0x5214b4),this[_0xc786eb(0x1d5)](_0x3c7775['id'],_0x3c7775[_0xc786eb(0x1d2)]);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x200),()=>{const _0x58e9d2=_0x19d348;_0x498a79[_0x58e9d2(0x221)][_0x58e9d2(0x1dc)](_0x58e9d2(0x1f3));}),this[_0x19d348(0x1fe)](this[_0x19d348(0x1ef)],_0x19d348(0x203),()=>{const _0x1b5a36=_0x19d348;this[_0x1b5a36(0x214)]();}),_0x498a79[_0x19d348(0x221)]['on'](_0x19d348(0x1ee),()=>{const _0x4688e3=_0x19d348;this[_0x4688e3(0x224)]();}),this[_0x19d348(0x1fe)](_0x498a79,_0x19d348(0x1c6),(_0x45fd8f,_0x1f106c)=>{const _0x41df91=_0x19d348;this[_0x41df91(0x1f0)](_0x1f106c);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x1e4),()=>{const _0x8bb7b2=_0x19d348;_0x498a79[_0x8bb7b2(0x229)]();});}async[_0x5b34ec(0x1ca)](_0x2f4c03,_0x29921f){const _0x31669d=_0x5b34ec;await this[_0x31669d(0x1ff)][_0x31669d(0x1d3)](_0x2f4c03,_0x29921f);}async[_0x5b34ec(0x1d5)](_0x121b2f,_0x13523d){const _0x2feae5=_0x5b34ec;await this[_0x2feae5(0x1ff)][_0x2feae5(0x212)](_0x121b2f,_0x13523d);}async[_0x5b34ec(0x219)](_0x25a4e4){const _0x28298f=_0x5b34ec;await this[_0x28298f(0x1ff)][_0x28298f(0x227)](_0x25a4e4);}async[_0x5b34ec(0x1cb)](_0xf9a209){const _0x2b7362=_0x5b34ec;await this[_0x2b7362(0x1ef)][_0x2b7362(0x21f)](_0xf9a209);}async[_0x5b34ec(0x224)](){const _0x217fea=_0x5b34ec;this[_0x217fea(0x211)][_0x217fea(0x1c9)](''),this[_0x217fea(0x211)][_0x217fea(0x1e6)](!0x0),await this[_0x217fea(0x1ff)][_0x217fea(0x1f2)](),this[_0x217fea(0x211)][_0x217fea(0x1e6)](!0x1);}[_0x5b34ec(0x214)](){const _0x1709c5=_0x5b34ec,_0x53a319=this[_0x1709c5(0x1ef)][_0x1709c5(0x220)]?.['id'],_0x2b7303=this[_0x1709c5(0x1e9)]()[_0x1709c5(0x222)](_0x4d1afb=>({'title':_0x4d1afb[_0x1709c5(0x201)],'items':_0x4d1afb[_0x1709c5(0x1ec)][_0x1709c5(0x222)](_0x1171aa=>({'id':_0x1171aa['id'],'title':_0x1171aa[_0x1709c5(0x201)]||_0x24aef3(this[_0x1709c5(0x226)][_0x1709c5(0x217)],_0x1709c5(0x1f7)),'createdAt':new Date(_0x1171aa[_0x1709c5(0x216)])[_0x1709c5(0x228)](),'active':_0x1171aa['id']===_0x53a319,'pinned':_0x1171aa[_0x1709c5(0x1d2)]}))}));this[_0x1709c5(0x211)][_0x1709c5(0x202)](_0x2b7303);}[_0x5b34ec(0x1eb)](_0x15aa2e,_0x128640){const _0x1797a3=_0x5b34ec;this[_0x1797a3(0x211)][_0x1797a3(0x1d9)](_0x15aa2e,_0x128640,!0x0);}[_0x5b34ec(0x1e8)](_0xd6f1d2){const _0x484857=_0x5b34ec;this[_0x484857(0x211)][_0x484857(0x1d9)](_0xd6f1d2,null,!0x1);}[_0x5b34ec(0x1c5)](_0x144dc5,_0x289693,_0xf4c661){const _0x446cc1=_0x5b34ec,_0x4e048a=this[_0x446cc1(0x1f8)](_0x289693,_0xf4c661);this[_0x446cc1(0x211)][_0x446cc1(0x1c9)](_0x4e048a),_0xf4c661&&this[_0x446cc1(0x1e8)](_0xf4c661),this[_0x446cc1(0x211)][_0x446cc1(0x1e6)](!0x1);}[_0x5b34ec(0x1f8)](_0x363cc0,_0x171654){const _0x107146=_0x5b34ec,_0x354a4f=_0x171654?this[_0x107146(0x1ff)][_0x107146(0x1d8)](_0x171654):null,_0x19fd8c=_0x354a4f?.[_0x107146(0x201)]||_0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x1f7));switch(_0x363cc0){case _0x107146(0x1d3):return _0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x1e3),_0x19fd8c);case _0x107146(0x212):{const _0x47d850=_0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x354a4f?.[_0x107146(0x1d2)]?_0x107146(0x1f4):_0x107146(0x1f5));return _0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x1df),[_0x47d850,_0x19fd8c]);}case _0x107146(0x227):return _0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x1e5),_0x19fd8c);case _0x107146(0x1f2):case _0x107146(0x1f6):return _0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x209));default:return _0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x21e));}}[_0x5b34ec(0x1e9)](){const _0x1f0b6b=_0x5b34ec,_0x3f6309=new Date(),_0x1580bd=new Date(_0x3f6309[_0x1f0b6b(0x1fd)](),_0x3f6309[_0x1f0b6b(0x22a)](),_0x3f6309[_0x1f0b6b(0x218)]()),_0x537336=new Date(_0x1580bd);_0x537336[_0x1f0b6b(0x1db)](_0x537336[_0x1f0b6b(0x218)]()-0x1);const _0x46bea9=new Date(_0x1580bd);_0x46bea9[_0x1f0b6b(0x1db)](_0x46bea9[_0x1f0b6b(0x218)]()-0xe);const _0x57fea7=this[_0x1f0b6b(0x1ff)][_0x1f0b6b(0x1cc)]({'pinned':!0x0}),_0x4b5d35=this[_0x1f0b6b(0x1ff)][_0x1f0b6b(0x1cc)]({'from':_0x1580bd,'to':_0x1580bd}),_0x5829f8=this[_0x1f0b6b(0x1ff)][_0x1f0b6b(0x1cc)]({'from':_0x537336,'to':_0x537336}),_0x455335=this[_0x1f0b6b(0x1ff)][_0x1f0b6b(0x1cc)]({'from':_0x46bea9,'to':_0x537336}),_0x1177fc=this[_0x1f0b6b(0x1ff)][_0x1f0b6b(0x1cc)]({'to':_0x46bea9}),_0x445141=[];return _0x57fea7[_0x1f0b6b(0x1de)]>0x0&&_0x445141[_0x1f0b6b(0x1ce)]({'title':_0x24aef3(this[_0x1f0b6b(0x226)][_0x1f0b6b(0x217)],_0x1f0b6b(0x225)),'items':_0x57fea7}),_0x4b5d35[_0x1f0b6b(0x1de)]>0x0&&_0x445141[_0x1f0b6b(0x1ce)]({'title':_0x24aef3(this[_0x1f0b6b(0x226)][_0x1f0b6b(0x217)],_0x1f0b6b(0x204)),'items':_0x4b5d35}),_0x5829f8[_0x1f0b6b(0x1de)]>0x0&&_0x445141[_0x1f0b6b(0x1ce)]({'title':_0x24aef3(this[_0x1f0b6b(0x226)][_0x1f0b6b(0x217)],_0x1f0b6b(0x1da)),'items':_0x5829f8}),_0x455335[_0x1f0b6b(0x1de)]>0x0&&_0x445141[_0x1f0b6b(0x1ce)]({'title':_0x24aef3(this[_0x1f0b6b(0x226)][_0x1f0b6b(0x217)],_0x1f0b6b(0x1d7)),'items':_0x455335}),_0x1177fc[_0x1f0b6b(0x1de)]>0x0&&_0x445141[_0x1f0b6b(0x1ce)]({'title':_0x24aef3(this[_0x1f0b6b(0x226)][_0x1f0b6b(0x217)],_0x1f0b6b(0x213)),'items':_0x1177fc}),_0x445141;}[_0x5b34ec(0x1f0)](_0x565082){const _0xb047bd=_0x5b34ec;this[_0xb047bd(0x211)][_0xb047bd(0x20f)](_0x565082);}}
|
|
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
|
-
function
|
|
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
|
-
function
|
|
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);}}
|