@ckeditor/ckeditor5-ai 47.3.0-alpha.0 → 47.3.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-editor.css +0 -4
- package/dist/index.css +0 -4
- 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 +9 -9
- package/lang/translations/bg.po +9 -9
- package/lang/translations/bn.po +9 -9
- package/lang/translations/ca.po +9 -9
- package/lang/translations/cs.po +9 -9
- package/lang/translations/da.po +9 -9
- package/lang/translations/de.po +9 -9
- package/lang/translations/el.po +9 -9
- package/lang/translations/es.po +9 -9
- package/lang/translations/et.po +9 -9
- package/lang/translations/fi.po +9 -9
- package/lang/translations/fr.po +9 -9
- package/lang/translations/he.po +9 -9
- package/lang/translations/hi.po +9 -9
- package/lang/translations/hu.po +9 -9
- package/lang/translations/id.po +9 -9
- package/lang/translations/it.po +9 -9
- package/lang/translations/ja.po +9 -9
- package/lang/translations/ko.po +9 -9
- package/lang/translations/lt.po +9 -9
- package/lang/translations/lv.po +9 -9
- package/lang/translations/ms.po +9 -9
- package/lang/translations/nl.po +9 -9
- package/lang/translations/no.po +9 -9
- package/lang/translations/pl.po +9 -9
- package/lang/translations/pt-br.po +9 -9
- package/lang/translations/pt.po +9 -9
- package/lang/translations/ro.po +9 -9
- package/lang/translations/ru.po +9 -9
- package/lang/translations/sk.po +9 -9
- package/lang/translations/sr.po +9 -9
- package/lang/translations/sv.po +9 -9
- package/lang/translations/th.po +9 -9
- package/lang/translations/tr.po +9 -9
- package/lang/translations/uk.po +9 -9
- package/lang/translations/vi.po +9 -9
- package/lang/translations/zh-cn.po +9 -9
- package/lang/translations/zh.po +9 -9
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
- package/theme/aiquickactions/aiquickactions.css +0 -4
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x151664=_0x247b;(function(_0x511614,_0x3773c9){const _0xf7ef28=_0x247b,_0x2c10d2=_0x511614();while(!![]){try{const _0x5b8afb=parseInt(_0xf7ef28(0xf5))/0x1+parseInt(_0xf7ef28(0x10a))/0x2+-parseInt(_0xf7ef28(0x109))/0x3+-parseInt(_0xf7ef28(0xf7))/0x4+parseInt(_0xf7ef28(0xf4))/0x5*(parseInt(_0xf7ef28(0x11b))/0x6)+parseInt(_0xf7ef28(0x103))/0x7+-parseInt(_0xf7ef28(0x13f))/0x8;if(_0x5b8afb===_0x3773c9)break;else _0x2c10d2['push'](_0x2c10d2['shift']());}catch(_0xc65703){_0x2c10d2['push'](_0x2c10d2['shift']());}}}(_0x2ce0,0x562af));import{KeystrokeHandler as _0x4b08b8}from'ckeditor5/src/utils.js';function _0x247b(_0xe4b335,_0x411e67){const _0x2ce072=_0x2ce0();return _0x247b=function(_0x247bad,_0x3d2cd1){_0x247bad=_0x247bad-0xe3;let _0x189e1c=_0x2ce072[_0x247bad];return _0x189e1c;},_0x247b(_0xe4b335,_0x411e67);}import{BalloonPanelView as _0x2cd030,BodyCollection as _0x59d2b0,ButtonView as _0x14a082,clickOutsideHandler as _0xcf0b9d,ListItemButtonView as _0x7d0ede,ListItemView as _0x3e4975,ListView as _0x1bb991,SplitButtonView as _0x5c45bd,UIModel as _0x1403df,View as _0x1ac9ff}from'ckeditor5/src/ui.js';import{IconCheck as _0x5a5be2,IconAddComment as _0x5dbff6,IconDocumentWithLoupe as _0x4ea1a0}from'ckeditor5/src/icons.js';import{getTranslation as _0x4c453e}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x151664(0x131),_0x151664(0x122),_0x151664(0x133)];export class AIChatFeedSuggestionItemActionsView extends _0x1ac9ff{[_0x151664(0xee)];[_0x151664(0x11c)];[_0x151664(0x123)];[_0x151664(0xfc)];[_0x151664(0x100)];[_0x151664(0x13b)]=0x1;[_0x151664(0x12f)];[_0x151664(0x102)];[_0x151664(0xe6)]=!0x0;constructor(_0x2d9cb5,_0x8aca80){const _0x5b191a=_0x151664;super(_0x2d9cb5),this[_0x5b191a(0x12f)]=_0x8aca80||[...AI_REPLY_ACTIONS],this[_0x5b191a(0x102)]=[...this[_0x5b191a(0x12f)]];const _0x3f3a85=this[_0x5b191a(0x136)];this[_0x5b191a(0xea)](_0x5b191a(0xe9),!0x0),this[_0x5b191a(0xea)](_0x5b191a(0x104),!0x0),this[_0x5b191a(0xea)](_0x5b191a(0xf0),!0x1),this[_0x5b191a(0x123)]=new _0x1403df({'label':Pn(_0x5b191a(0x131),_0x2d9cb5,this[_0x5b191a(0x13b)]),'icon':_0x5a5be2,'withText':!0x0,'type':_0x5b191a(0x112),'actionName':_0x5b191a(0x131)}),this[_0x5b191a(0xfc)]=new _0x1403df({'label':Pn(_0x5b191a(0x133),_0x2d9cb5,this[_0x5b191a(0x13b)]),'icon':_0x4ea1a0,'withText':!0x0,'type':_0x5b191a(0x112),'actionName':_0x5b191a(0x133)}),this[_0x5b191a(0x100)]=new _0x1403df({'label':Pn(_0x5b191a(0x122),_0x2d9cb5,this[_0x5b191a(0x13b)]),'icon':_0x5dbff6,'withText':!0x0,'type':_0x5b191a(0x112),'actionName':_0x5b191a(0x122)}),this[_0x5b191a(0xee)]=this[_0x5b191a(0x12b)](_0x2d9cb5),this[_0x5b191a(0x11c)]=this[_0x5b191a(0x126)](),this[_0x5b191a(0xee)]&&this[_0x5b191a(0x11c)][_0x5b191a(0x13c)](this[_0x5b191a(0xee)]),this[_0x5b191a(0x11f)]({'tag':_0x5b191a(0x11d),'attributes':{'class':['ck',_0x5b191a(0xf2),_0x3f3a85['if'](_0x5b191a(0x104),_0x5b191a(0x11a),_0x1e3abe=>!_0x1e3abe)]},'children':this[_0x5b191a(0x11c)]}),this['on'](_0x5b191a(0x119),()=>{const _0x1b8c33=_0x5b191a;this[_0x1b8c33(0x102)]=this[_0x1b8c33(0xf0)]?this[_0x1b8c33(0x12f)][_0x1b8c33(0x108)](_0x2e7aea=>_0x1b8c33(0x131)!==_0x2e7aea):[...this[_0x1b8c33(0x12f)]],this[_0x1b8c33(0xff)](_0x2d9cb5);});}[_0x151664(0xff)](_0x5ab651){const _0x5eb481=_0x151664;this[_0x5eb481(0xee)]&&this[_0x5eb481(0x11c)][_0x5eb481(0xe5)](this[_0x5eb481(0xee)])&&(this[_0x5eb481(0x11c)][_0x5eb481(0x116)](this[_0x5eb481(0xee)]),this[_0x5eb481(0xee)][_0x5eb481(0xfe)]()),this[_0x5eb481(0xee)]=this[_0x5eb481(0x12b)](_0x5ab651),this[_0x5eb481(0xee)]&&this[_0x5eb481(0x11c)][_0x5eb481(0x13c)](this[_0x5eb481(0xee)]);}[_0x151664(0x12b)](_0x3c4227){const _0x4fa7bf=_0x151664;if(0x0==this[_0x4fa7bf(0x102)][_0x4fa7bf(0xf1)])return null;const _0x384c82=0x1===this[_0x4fa7bf(0x102)][_0x4fa7bf(0xf1)]?this[_0x4fa7bf(0x10b)](_0x3c4227):this[_0x4fa7bf(0x106)](_0x3c4227),_0x50d6f7=this[_0x4fa7bf(0xe6)]?'':_0x4fa7bf(0x13d);_0x384c82[_0x4fa7bf(0xea)]({'label':Pn(this[_0x4fa7bf(0x102)][0x0],_0x3c4227,this[_0x4fa7bf(0x13b)]),'tooltip':Hn(this[_0x4fa7bf(0x102)][0x0],_0x3c4227,this[_0x4fa7bf(0x13b)]),'withText':!0x0,'class':_0x4fa7bf(0x134)+_0x50d6f7});for(const _0x2c0918 of this[_0x4fa7bf(0x102)])_0x384c82['on'](_0x2c0918,()=>{const _0x125eb7=_0x4fa7bf;this[_0x125eb7(0x11e)](_0x2c0918);});return this[_0x4fa7bf(0xe6)]=!0x1,_0x384c82;}[_0x151664(0x10b)](_0x27a243){const _0x13804a=_0x151664,_0xddaf37=new _0x14a082(_0x27a243);return _0xddaf37[_0x13804a(0xea)]({'class':_0x13804a(0x12d),'withText':!0x0}),_0xddaf37['on'](_0x13804a(0x130),()=>{const _0x100c00=_0x13804a;_0xddaf37[_0x100c00(0x11e)](this[_0x100c00(0x102)][0x0]);}),_0xddaf37;}[_0x151664(0x106)](_0x50c6bc){const _0xad950=_0x151664,_0xf603dd=new Nn(_0x50c6bc,{'listItemModels':this[_0xad950(0x102)][_0xad950(0x13e)](_0x38c513=>{const _0x25cb18=_0xad950;switch(_0x38c513){case _0x25cb18(0x131):return this[_0x25cb18(0x123)];case _0x25cb18(0x133):return this[_0x25cb18(0xfc)];case _0x25cb18(0x122):return this[_0x25cb18(0x100)];}})});return _0xf603dd[_0xad950(0xea)]({'label':Pn(this[_0xad950(0x102)][0x0],_0x50c6bc,this[_0xad950(0x13b)]),'tooltip':Hn(this[_0xad950(0x102)][0x0],_0x50c6bc,this[_0xad950(0x13b)]),'withText':!0x0,'class':_0xad950(0xf2),'balloonPanelClass':_0xad950(0x125)}),_0xf603dd[_0xad950(0xe8)](_0xad950(0xe9))['to'](this),_0xf603dd;}[_0x151664(0x127)](_0x3c6b49){const _0x32cfac=_0x151664,_0x27a60b=this[_0x32cfac(0x10f)];this[_0x32cfac(0x13b)]=_0x3c6b49||this[_0x32cfac(0x13b)],this[_0x32cfac(0xee)][_0x32cfac(0xea)]({'label':Pn(this[_0x32cfac(0x102)][0x0],_0x27a60b,this[_0x32cfac(0x13b)]),'tooltip':Hn(this[_0x32cfac(0x102)][0x0],_0x27a60b,this[_0x32cfac(0x13b)])}),this[_0x32cfac(0x123)][_0x32cfac(0x117)]=Pn(_0x32cfac(0x131),_0x27a60b,this[_0x32cfac(0x13b)]),this[_0x32cfac(0xfc)][_0x32cfac(0x117)]=Pn(_0x32cfac(0x133),_0x27a60b,this[_0x32cfac(0x13b)]),this[_0x32cfac(0x100)][_0x32cfac(0x117)]=Pn(_0x32cfac(0x122),_0x27a60b,this[_0x32cfac(0x13b)]);}}function _0x2ce0(){const _0x2ef891=['remove','label','source','change:isTrackChangesOn','ck-hidden','1866906wenHlE','children','div','fire','setTemplate','esc','pin','insertSuggestion','applySuggestionModel','arrowView','ck-ai-chat__feed__ai-suggestion__actions__balloon','createCollection','updateLabels','items','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','_createActionsDropdownOrButton','listenTo','ck-ai-button-primary','keystrokeHandler','_dropdownOriginalConfig','execute','applySuggestion','focus','showChangeInText','ck-ai-chat__feed__ai-suggestion__actions\x20','balloonPanelView','bindTemplate','ltr','bodyCollection','attachToDom','arrowless','_partsCount','add','ck-ai-chat__feed__ai-suggestion__actions--no-animation','map','10553056GwqAmV','detachFromDom','listItemModels','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','has','_firstRender','element','bind','isEnabled','set','slice','content','uiLanguageDirection','actionsButton','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','isTrackChangesOn','length','ck-ai-chat__feed__ai-suggestion__actions','width','10TnHlrA','427217wIuRyH','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','1479456OTLYCM','_setUpKeystrokes','actionName','unbind','delegate','showChangeInTextModel','listView','destroy','_updateDropdownActions','insertSuggestionModel','keys','_dropdownCurrentConfig','4734422BAyPyq','isVisible','balloonPanelClass','_createActionsDropdown','left','filter','1009626Oiwjxa','1305232dIGONb','_createActionsButton','class','hide','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','locale','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','open','button','_setUpList','bottom','tooltip'];_0x2ce0=function(){return _0x2ef891;};return _0x2ce0();}class Nn extends _0x5c45bd{[_0x151664(0x138)];[_0x151664(0x135)];[_0x151664(0xfd)];[_0x151664(0x12e)];constructor(_0x50ebe1,_0x191ed3){const _0x1d901f=_0x151664;super(_0x50ebe1),this[_0x1d901f(0x135)]=new _0x2cd030(this[_0x1d901f(0x10f)]),this[_0x1d901f(0x138)]=new _0x59d2b0(this[_0x1d901f(0x10f)]),this[_0x1d901f(0x138)][_0x1d901f(0x139)](),this[_0x1d901f(0xea)](_0x1d901f(0x105),''),this[_0x1d901f(0x135)][_0x1d901f(0xe8)](_0x1d901f(0x10c))['to'](this,_0x1d901f(0x105)),this[_0x1d901f(0xfd)]=this[_0x1d901f(0x113)](_0x191ed3[_0x1d901f(0xe3)][_0x1d901f(0xeb)](0x1)),this[_0x1d901f(0x138)][_0x1d901f(0x13c)](this[_0x1d901f(0x135)]),this[_0x1d901f(0x135)][_0x1d901f(0xec)][_0x1d901f(0x13c)](this[_0x1d901f(0xfd)]),this[_0x1d901f(0x124)][_0x1d901f(0xfa)](_0x1d901f(0x115)),this[_0x1d901f(0x124)][_0x1d901f(0xea)](_0x1d901f(0x115),_0x4c453e(this[_0x1d901f(0x10f)],_0x1d901f(0xef))),this[_0x1d901f(0xf8)](),this['on'](_0x1d901f(0x130),()=>{const _0x2dddae=_0x1d901f,_0x79355e=_0x191ed3[_0x2dddae(0xe3)][0x0][_0x2dddae(0xf9)];this[_0x2dddae(0x11e)](_0x79355e),this[_0x2dddae(0x135)][_0x2dddae(0x10d)](),this[_0x2dddae(0x124)][_0x2dddae(0x132)]();}),this['on'](_0x1d901f(0x111),()=>{const _0x36f1b2=_0x1d901f;this[_0x36f1b2(0x135)][_0x36f1b2(0x104)]?(this[_0x36f1b2(0x135)][_0x36f1b2(0x10d)](),this[_0x36f1b2(0x124)][_0x36f1b2(0x132)]()):(this[_0x36f1b2(0x135)][_0x36f1b2(0x121)]({'target':this[_0x36f1b2(0xe7)],'positions':[_0x36f1b2(0x137)===this[_0x36f1b2(0x10f)][_0x36f1b2(0xed)]?Gn:yn]}),this[_0x36f1b2(0xfd)][_0x36f1b2(0x132)]());}),_0xcf0b9d({'emitter':this[_0x1d901f(0x135)],'callback':()=>{const _0x31d3d4=_0x1d901f;this[_0x31d3d4(0x135)][_0x31d3d4(0x10d)]();},'activator':()=>this[_0x1d901f(0x135)][_0x1d901f(0x104)],'contextElements':()=>[this[_0x1d901f(0xe7)],this[_0x1d901f(0x135)][_0x1d901f(0xe7)]]});}[_0x151664(0x113)](_0x3b0179){const _0x5b6c76=_0x151664,_0x162a98=this[_0x5b6c76(0x10f)],_0x3722a7=new _0x1bb991(_0x162a98);for(const _0x52a2ee of _0x3b0179){const _0x158eec=new _0x3e4975(_0x162a98),_0x2ee81e=new _0x7d0ede(_0x162a98);_0x2ee81e[_0x5b6c76(0xe8)](...Object[_0x5b6c76(0x101)](_0x52a2ee))['to'](_0x52a2ee),_0x2ee81e[_0x5b6c76(0xfb)](_0x5b6c76(0x130))['to'](_0x3722a7),_0x158eec[_0x5b6c76(0x11c)][_0x5b6c76(0x13c)](_0x2ee81e),_0x3722a7[_0x5b6c76(0x128)][_0x5b6c76(0x13c)](_0x158eec);}return _0x3722a7[_0x5b6c76(0x128)][_0x5b6c76(0xfb)](_0x5b6c76(0x130))['to'](this),_0x3722a7['on'](_0x5b6c76(0x130),_0x1940df=>{const _0xe65462=_0x5b6c76,_0x1c179d=_0x1940df[_0xe65462(0x118)];this[_0xe65462(0x11e)](_0x1c179d[_0xe65462(0xf9)]),this[_0xe65462(0x135)][_0xe65462(0x10d)](),this[_0xe65462(0x124)][_0xe65462(0x132)]();}),_0x3722a7;}[_0x151664(0xf8)](){const _0x51a792=_0x151664;this[_0x51a792(0x12e)]=new _0x4b08b8(),this[_0x51a792(0x12e)][_0x51a792(0x12c)](this[_0x51a792(0x135)][_0x51a792(0xe7)]),this[_0x51a792(0x12e)][_0x51a792(0xea)](_0x51a792(0x120),(_0x4ecfa3,_0x5e1159)=>{const _0x41140b=_0x51a792;this[_0x41140b(0x135)][_0x41140b(0x10d)](),this[_0x41140b(0x124)][_0x41140b(0x132)](),_0x5e1159();});}[_0x151664(0xfe)](){const _0x4c51c8=_0x151664;super[_0x4c51c8(0xfe)](),this[_0x4c51c8(0x12e)][_0x4c51c8(0xfe)](),this[_0x4c51c8(0x135)][_0x4c51c8(0xfe)](),this[_0x4c51c8(0x138)][_0x4c51c8(0x140)]();}}function Gn(_0x5a02fa){const _0x1b1c87=_0x151664;return{'top':_0x5a02fa[_0x1b1c87(0x114)],'left':_0x5a02fa[_0x1b1c87(0x107)],'name':_0x1b1c87(0x13a),'config':{'withArrow':!0x1}};}function yn(_0x55360b,_0x11f974){const _0x257fdd=_0x151664;return{'top':_0x55360b[_0x257fdd(0x114)],'left':_0x55360b[_0x257fdd(0x107)]-(_0x11f974[_0x257fdd(0xf3)]-_0x55360b[_0x257fdd(0xf3)]),'name':_0x257fdd(0x13a),'config':{'withArrow':!0x1}};}function Pn(_0x42f691,_0x6b9081,_0xda7f99){const _0x53dba7=_0x151664;switch(_0x42f691){case _0x53dba7(0x131):return _0x4c453e(_0x6b9081,_0x53dba7(0x110),_0xda7f99);case _0x53dba7(0x133):return _0x4c453e(_0x6b9081,_0x53dba7(0x12a),_0xda7f99);case _0x53dba7(0x122):return _0x4c453e(_0x6b9081,_0x53dba7(0x129),_0xda7f99);}}function Hn(_0xd6b71f,_0x54812f,_0x2ded5f){const _0x36445b=_0x151664;switch(_0xd6b71f){case _0x36445b(0x131):return _0x4c453e(_0x54812f,_0x36445b(0x10e),_0x2ded5f);case _0x36445b(0x133):return _0x4c453e(_0x54812f,_0x36445b(0xe4),_0x2ded5f);case _0x36445b(0x122):return _0x4c453e(_0x54812f,_0x36445b(0xf6),_0x2ded5f);}}
|
|
23
|
+
const _0x199c49=_0x3c45;(function(_0x1d72e9,_0x50667f){const _0x255e8f=_0x3c45,_0x15785a=_0x1d72e9();while(!![]){try{const _0x181bab=parseInt(_0x255e8f(0xed))/0x1+parseInt(_0x255e8f(0x148))/0x2+parseInt(_0x255e8f(0x103))/0x3*(parseInt(_0x255e8f(0xf0))/0x4)+-parseInt(_0x255e8f(0xfb))/0x5*(parseInt(_0x255e8f(0x10a))/0x6)+parseInt(_0x255e8f(0xee))/0x7*(parseInt(_0x255e8f(0x144))/0x8)+-parseInt(_0x255e8f(0x143))/0x9*(-parseInt(_0x255e8f(0x135))/0xa)+-parseInt(_0x255e8f(0x130))/0xb;if(_0x181bab===_0x50667f)break;else _0x15785a['push'](_0x15785a['shift']());}catch(_0x4a372c){_0x15785a['push'](_0x15785a['shift']());}}}(_0x4d57,0xe15b9));import{KeystrokeHandler as _0x210eca}from'ckeditor5/src/utils.js';function _0x4d57(){const _0x26ee5e=['locale','382563fXDLyt','4092232HYNmMx','execute','_setUpKeystrokes','keys','1194442WNmojH','width','_createActionsDropdownOrButton','map','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','left','759491enMjkB','14WRbUKM','setTemplate','152LrtrVt','createCollection','actionsButton','slice','focus','destroy','keystrokeHandler','balloonPanelClass','_createActionsDropdown','unbind','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','100QYEArG','ck-ai-chat__feed__ai-suggestion__actions\x20','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','has','ck-ai-chat__feed__ai-suggestion__actions--no-animation','add','_dropdownCurrentConfig','button','86547eFMpYC','isTrackChangesOn','isVisible','tooltip','showChangeInTextModel','div','ck-ai-button-primary','345012qWhBPJ','class','actionName','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','_updateDropdownActions','applySuggestion','_setUpList','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','fire','esc','filter','hide','bodyCollection','arrowless','listenTo','_createActionsButton','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','updateLabels','ck-ai-chat__feed__ai-suggestion__actions__balloon','applySuggestionModel','_dropdownOriginalConfig','listView','pin','_firstRender','element','bind','length','isEnabled','ck-ai-chat__feed__ai-suggestion__actions','label','ck-hidden','remove','insertSuggestion','_partsCount','change:isTrackChangesOn','bindTemplate','listItemModels','open','31329815hCeUNa','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','delegate','arrowView','bottom','340gzhlrm','balloonPanelView','children','insertSuggestionModel','uiLanguageDirection','source','showChangeInText','detachFromDom','attachToDom','items','ltr','set','content'];_0x4d57=function(){return _0x26ee5e;};return _0x4d57();}import{BalloonPanelView as _0x5a287b,BodyCollection as _0x3da82d,ButtonView as _0x454ca3,clickOutsideHandler as _0x22b885,ListItemButtonView as _0x1019db,ListItemView as _0x4f612d,ListView as _0x1a7d7a,SplitButtonView as _0x4edb86,UIModel as _0x34e993,View as _0x5df997}from'ckeditor5/src/ui.js';import{IconCheck as _0x4e0e94,IconAddComment as _0x44c786,IconDocumentWithLoupe as _0x28ec80}from'ckeditor5/src/icons.js';import{getTranslation as _0x42a1bf}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x199c49(0x10f),_0x199c49(0x12a),_0x199c49(0x13b)];export class AIChatFeedSuggestionItemActionsView extends _0x5df997{[_0x199c49(0xf2)];[_0x199c49(0x137)];[_0x199c49(0x11d)];[_0x199c49(0x107)];[_0x199c49(0x138)];[_0x199c49(0x12b)]=0x1;[_0x199c49(0x11e)];[_0x199c49(0x101)];[_0x199c49(0x121)]=!0x0;constructor(_0x23947b,_0x13e24f){const _0x3673bb=_0x199c49;super(_0x23947b),this[_0x3673bb(0x11e)]=_0x13e24f||[...AI_REPLY_ACTIONS],this[_0x3673bb(0x101)]=[...this[_0x3673bb(0x11e)]];const _0x8958=this[_0x3673bb(0x12d)];this[_0x3673bb(0x140)](_0x3673bb(0x125),!0x0),this[_0x3673bb(0x140)](_0x3673bb(0x105),!0x0),this[_0x3673bb(0x140)](_0x3673bb(0x104),!0x1),this[_0x3673bb(0x11d)]=new _0x34e993({'label':Pn(_0x3673bb(0x10f),_0x23947b,this[_0x3673bb(0x12b)]),'icon':_0x4e0e94,'withText':!0x0,'type':_0x3673bb(0x102),'actionName':_0x3673bb(0x10f)}),this[_0x3673bb(0x107)]=new _0x34e993({'label':Pn(_0x3673bb(0x13b),_0x23947b,this[_0x3673bb(0x12b)]),'icon':_0x28ec80,'withText':!0x0,'type':_0x3673bb(0x102),'actionName':_0x3673bb(0x13b)}),this[_0x3673bb(0x138)]=new _0x34e993({'label':Pn(_0x3673bb(0x12a),_0x23947b,this[_0x3673bb(0x12b)]),'icon':_0x44c786,'withText':!0x0,'type':_0x3673bb(0x102),'actionName':_0x3673bb(0x12a)}),this[_0x3673bb(0xf2)]=this[_0x3673bb(0xe9)](_0x23947b),this[_0x3673bb(0x137)]=this[_0x3673bb(0xf1)](),this[_0x3673bb(0xf2)]&&this[_0x3673bb(0x137)][_0x3673bb(0x100)](this[_0x3673bb(0xf2)]),this[_0x3673bb(0xef)]({'tag':_0x3673bb(0x108),'attributes':{'class':['ck',_0x3673bb(0x126),_0x8958['if'](_0x3673bb(0x105),_0x3673bb(0x128),_0x9a58bd=>!_0x9a58bd)]},'children':this[_0x3673bb(0x137)]}),this['on'](_0x3673bb(0x12c),()=>{const _0x5472bf=_0x3673bb;this[_0x5472bf(0x101)]=this[_0x5472bf(0x104)]?this[_0x5472bf(0x11e)][_0x5472bf(0x114)](_0x4c718e=>_0x5472bf(0x10f)!==_0x4c718e):[...this[_0x5472bf(0x11e)]],this[_0x5472bf(0x10e)](_0x23947b);});}[_0x199c49(0x10e)](_0x46eeaf){const _0x19853f=_0x199c49;this[_0x19853f(0xf2)]&&this[_0x19853f(0x137)][_0x19853f(0xfe)](this[_0x19853f(0xf2)])&&(this[_0x19853f(0x137)][_0x19853f(0x129)](this[_0x19853f(0xf2)]),this[_0x19853f(0xf2)][_0x19853f(0xf5)]()),this[_0x19853f(0xf2)]=this[_0x19853f(0xe9)](_0x46eeaf),this[_0x19853f(0xf2)]&&this[_0x19853f(0x137)][_0x19853f(0x100)](this[_0x19853f(0xf2)]);}[_0x199c49(0xe9)](_0x4ac8f9){const _0x5687c7=_0x199c49;if(0x0==this[_0x5687c7(0x101)][_0x5687c7(0x124)])return null;const _0x5deed6=0x1===this[_0x5687c7(0x101)][_0x5687c7(0x124)]?this[_0x5687c7(0x119)](_0x4ac8f9):this[_0x5687c7(0xf8)](_0x4ac8f9),_0x266558=this[_0x5687c7(0x121)]?'':_0x5687c7(0xff);_0x5deed6[_0x5687c7(0x140)]({'label':Pn(this[_0x5687c7(0x101)][0x0],_0x4ac8f9,this[_0x5687c7(0x12b)]),'tooltip':Hn(this[_0x5687c7(0x101)][0x0],_0x4ac8f9,this[_0x5687c7(0x12b)]),'withText':!0x0,'class':_0x5687c7(0xfc)+_0x266558});for(const _0x45baad of this[_0x5687c7(0x101)])_0x5deed6['on'](_0x45baad,()=>{const _0x300600=_0x5687c7;this[_0x300600(0x112)](_0x45baad);});return this[_0x5687c7(0x121)]=!0x1,_0x5deed6;}[_0x199c49(0x119)](_0x180c26){const _0x115429=_0x199c49,_0x5ede3c=new _0x454ca3(_0x180c26);return _0x5ede3c[_0x115429(0x140)]({'class':_0x115429(0x109),'withText':!0x0}),_0x5ede3c['on'](_0x115429(0x145),()=>{const _0x167cd2=_0x115429;_0x5ede3c[_0x167cd2(0x112)](this[_0x167cd2(0x101)][0x0]);}),_0x5ede3c;}[_0x199c49(0xf8)](_0x217ddb){const _0x528772=_0x199c49,_0x2daa44=new Nn(_0x217ddb,{'listItemModels':this[_0x528772(0x101)][_0x528772(0xea)](_0x2e8c33=>{const _0xcd6ee5=_0x528772;switch(_0x2e8c33){case _0xcd6ee5(0x10f):return this[_0xcd6ee5(0x11d)];case _0xcd6ee5(0x13b):return this[_0xcd6ee5(0x107)];case _0xcd6ee5(0x12a):return this[_0xcd6ee5(0x138)];}})});return _0x2daa44[_0x528772(0x140)]({'label':Pn(this[_0x528772(0x101)][0x0],_0x217ddb,this[_0x528772(0x12b)]),'tooltip':Hn(this[_0x528772(0x101)][0x0],_0x217ddb,this[_0x528772(0x12b)]),'withText':!0x0,'class':_0x528772(0x126),'balloonPanelClass':_0x528772(0x11c)}),_0x2daa44[_0x528772(0x123)](_0x528772(0x125))['to'](this),_0x2daa44;}[_0x199c49(0x11b)](_0x3d7a9b){const _0x5c0d0f=_0x199c49,_0x301106=this[_0x5c0d0f(0x142)];this[_0x5c0d0f(0x12b)]=_0x3d7a9b||this[_0x5c0d0f(0x12b)],this[_0x5c0d0f(0xf2)][_0x5c0d0f(0x140)]({'label':Pn(this[_0x5c0d0f(0x101)][0x0],_0x301106,this[_0x5c0d0f(0x12b)]),'tooltip':Hn(this[_0x5c0d0f(0x101)][0x0],_0x301106,this[_0x5c0d0f(0x12b)])}),this[_0x5c0d0f(0x11d)][_0x5c0d0f(0x127)]=Pn(_0x5c0d0f(0x10f),_0x301106,this[_0x5c0d0f(0x12b)]),this[_0x5c0d0f(0x107)][_0x5c0d0f(0x127)]=Pn(_0x5c0d0f(0x13b),_0x301106,this[_0x5c0d0f(0x12b)]),this[_0x5c0d0f(0x138)][_0x5c0d0f(0x127)]=Pn(_0x5c0d0f(0x12a),_0x301106,this[_0x5c0d0f(0x12b)]);}}class Nn extends _0x4edb86{[_0x199c49(0x116)];[_0x199c49(0x136)];[_0x199c49(0x11f)];[_0x199c49(0xf6)];constructor(_0x2aefba,_0x5d36d0){const _0x87077=_0x199c49;super(_0x2aefba),this[_0x87077(0x136)]=new _0x5a287b(this[_0x87077(0x142)]),this[_0x87077(0x116)]=new _0x3da82d(this[_0x87077(0x142)]),this[_0x87077(0x116)][_0x87077(0x13d)](),this[_0x87077(0x140)](_0x87077(0xf7),''),this[_0x87077(0x136)][_0x87077(0x123)](_0x87077(0x10b))['to'](this,_0x87077(0xf7)),this[_0x87077(0x11f)]=this[_0x87077(0x110)](_0x5d36d0[_0x87077(0x12e)][_0x87077(0xf3)](0x1)),this[_0x87077(0x116)][_0x87077(0x100)](this[_0x87077(0x136)]),this[_0x87077(0x136)][_0x87077(0x141)][_0x87077(0x100)](this[_0x87077(0x11f)]),this[_0x87077(0x133)][_0x87077(0xf9)](_0x87077(0x106)),this[_0x87077(0x133)][_0x87077(0x140)](_0x87077(0x106),_0x42a1bf(this[_0x87077(0x142)],_0x87077(0x11a))),this[_0x87077(0x146)](),this['on'](_0x87077(0x145),()=>{const _0x2d19b1=_0x87077,_0x3ef1b6=_0x5d36d0[_0x2d19b1(0x12e)][0x0][_0x2d19b1(0x10c)];this[_0x2d19b1(0x112)](_0x3ef1b6),this[_0x2d19b1(0x136)][_0x2d19b1(0x115)](),this[_0x2d19b1(0x133)][_0x2d19b1(0xf4)]();}),this['on'](_0x87077(0x12f),()=>{const _0x23d668=_0x87077;this[_0x23d668(0x136)][_0x23d668(0x105)]?(this[_0x23d668(0x136)][_0x23d668(0x115)](),this[_0x23d668(0x133)][_0x23d668(0xf4)]()):(this[_0x23d668(0x136)][_0x23d668(0x120)]({'target':this[_0x23d668(0x122)],'positions':[_0x23d668(0x13f)===this[_0x23d668(0x142)][_0x23d668(0x139)]?Gn:yn]}),this[_0x23d668(0x11f)][_0x23d668(0xf4)]());}),_0x22b885({'emitter':this[_0x87077(0x136)],'callback':()=>{const _0x4a9655=_0x87077;this[_0x4a9655(0x136)][_0x4a9655(0x115)]();},'activator':()=>this[_0x87077(0x136)][_0x87077(0x105)],'contextElements':()=>[this[_0x87077(0x122)],this[_0x87077(0x136)][_0x87077(0x122)]]});}[_0x199c49(0x110)](_0x1937ec){const _0x135e12=_0x199c49,_0x13b2c6=this[_0x135e12(0x142)],_0x37781f=new _0x1a7d7a(_0x13b2c6);for(const _0xf1a842 of _0x1937ec){const _0x13a520=new _0x4f612d(_0x13b2c6),_0x250ed6=new _0x1019db(_0x13b2c6);_0x250ed6[_0x135e12(0x123)](...Object[_0x135e12(0x147)](_0xf1a842))['to'](_0xf1a842),_0x250ed6[_0x135e12(0x132)](_0x135e12(0x145))['to'](_0x37781f),_0x13a520[_0x135e12(0x137)][_0x135e12(0x100)](_0x250ed6),_0x37781f[_0x135e12(0x13e)][_0x135e12(0x100)](_0x13a520);}return _0x37781f[_0x135e12(0x13e)][_0x135e12(0x132)](_0x135e12(0x145))['to'](this),_0x37781f['on'](_0x135e12(0x145),_0x47bd37=>{const _0x1ec74a=_0x135e12,_0x15b5d6=_0x47bd37[_0x1ec74a(0x13a)];this[_0x1ec74a(0x112)](_0x15b5d6[_0x1ec74a(0x10c)]),this[_0x1ec74a(0x136)][_0x1ec74a(0x115)](),this[_0x1ec74a(0x133)][_0x1ec74a(0xf4)]();}),_0x37781f;}[_0x199c49(0x146)](){const _0x50f707=_0x199c49;this[_0x50f707(0xf6)]=new _0x210eca(),this[_0x50f707(0xf6)][_0x50f707(0x118)](this[_0x50f707(0x136)][_0x50f707(0x122)]),this[_0x50f707(0xf6)][_0x50f707(0x140)](_0x50f707(0x113),(_0x14ee35,_0x387e4a)=>{const _0x2f9a47=_0x50f707;this[_0x2f9a47(0x136)][_0x2f9a47(0x115)](),this[_0x2f9a47(0x133)][_0x2f9a47(0xf4)](),_0x387e4a();});}[_0x199c49(0xf5)](){const _0x170482=_0x199c49;super[_0x170482(0xf5)](),this[_0x170482(0xf6)][_0x170482(0xf5)](),this[_0x170482(0x136)][_0x170482(0xf5)](),this[_0x170482(0x116)][_0x170482(0x13c)]();}}function Gn(_0x2a1068){const _0xe060d4=_0x199c49;return{'top':_0x2a1068[_0xe060d4(0x134)],'left':_0x2a1068[_0xe060d4(0xec)],'name':_0xe060d4(0x117),'config':{'withArrow':!0x1}};}function _0x3c45(_0x171f7d,_0x10b4ec){const _0x4d5757=_0x4d57();return _0x3c45=function(_0x3c455e,_0x41d655){_0x3c455e=_0x3c455e-0xe8;let _0x19d46d=_0x4d5757[_0x3c455e];return _0x19d46d;},_0x3c45(_0x171f7d,_0x10b4ec);}function yn(_0x249c9c,_0x27196a){const _0x46e8bf=_0x199c49;return{'top':_0x249c9c[_0x46e8bf(0x134)],'left':_0x249c9c[_0x46e8bf(0xec)]-(_0x27196a[_0x46e8bf(0xe8)]-_0x249c9c[_0x46e8bf(0xe8)]),'name':_0x46e8bf(0x117),'config':{'withArrow':!0x1}};}function Pn(_0x386f52,_0x4b4482,_0xfed9bc){const _0x44df1a=_0x199c49;switch(_0x386f52){case _0x44df1a(0x10f):return _0x42a1bf(_0x4b4482,_0x44df1a(0x111),_0xfed9bc);case _0x44df1a(0x13b):return _0x42a1bf(_0x4b4482,_0x44df1a(0x131),_0xfed9bc);case _0x44df1a(0x12a):return _0x42a1bf(_0x4b4482,_0x44df1a(0xfa),_0xfed9bc);}}function Hn(_0x2f84ab,_0x4ce9ae,_0x160e86){const _0x354b01=_0x199c49;switch(_0x2f84ab){case _0x354b01(0x10f):return _0x42a1bf(_0x4ce9ae,_0x354b01(0x10d),_0x160e86);case _0x354b01(0x13b):return _0x42a1bf(_0x4ce9ae,_0x354b01(0xfd),_0x160e86);case _0x354b01(0x12a):return _0x42a1bf(_0x4ce9ae,_0x354b01(0xeb),_0x160e86);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x556c(_0x56e33b,_0x522b56){var _0x378e40=_0x378e();return _0x556c=function(_0x556cc4,_0x888c22){_0x556cc4=_0x556cc4-0xde;var _0x9d5868=_0x378e40[_0x556cc4];return _0x9d5868;},_0x556c(_0x56e33b,_0x522b56);}var _0x468531=_0x556c;(function(_0x110694,_0x4c08b7){var _0x18b8aa=_0x556c,_0x4bac34=_0x110694();while(!![]){try{var _0x21864f=parseInt(_0x18b8aa(0xe7))/0x1*(parseInt(_0x18b8aa(0xeb))/0x2)+parseInt(_0x18b8aa(0x103))/0x3+parseInt(_0x18b8aa(0xe9))/0x4*(parseInt(_0x18b8aa(0xf6))/0x5)+parseInt(_0x18b8aa(0x109))/0x6*(-parseInt(_0x18b8aa(0xe3))/0x7)+parseInt(_0x18b8aa(0xef))/0x8*(-parseInt(_0x18b8aa(0xe8))/0x9)+parseInt(_0x18b8aa(0x101))/0xa*(parseInt(_0x18b8aa(0x102))/0xb)+-parseInt(_0x18b8aa(0xfd))/0xc*(parseInt(_0x18b8aa(0x108))/0xd);if(_0x21864f===_0x4c08b7)break;else _0x4bac34['push'](_0x4bac34['shift']());}catch(_0x60d1c6){_0x4bac34['push'](_0x4bac34['shift']());}}}(_0x378e,0x55802));import{AIChatFeedItemView as _0x40f5c9}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x3c523c}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x11d760}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x40f5c9{[_0x468531(0xf8)];[_0x468531(0xf9)];constructor(_0x1e0fa0,_0x29ca22){var _0x24ae98=_0x468531;super(_0x29ca22),this[_0x24ae98(0x107)](_0x24ae98(0xfb),!0x1),this[_0x24ae98(0xf8)]=new _0x3c523c(_0x1e0fa0,{'showDiff':_0x29ca22[_0x24ae98(0x105)],'areActionsDisabled':_0x29ca22[_0x24ae98(0xf5)],'availableActions':_0x29ca22[_0x24ae98(0xfc)]}),this[_0x24ae98(0xf8)]['on'](_0x24ae98(0xf2),(_0x546c77,_0x56a184)=>{var _0x561fc1=_0x24ae98;this[_0x561fc1(0xf0)](_0x561fc1(0xf2),{'replyId':this[_0x561fc1(0xe6)]['id'],'showDiff':_0x56a184[_0x561fc1(0x105)]});}),this[_0x24ae98(0xf8)]['on'](_0x24ae98(0xe1),()=>{var _0x33dc96=_0x24ae98;this[_0x33dc96(0xf0)](_0x33dc96(0xe1),{'replyId':this[_0x33dc96(0xe6)]['id']});}),this[_0x24ae98(0xf8)]['on'](_0x24ae98(0xe2),()=>{var _0x5917f8=_0x24ae98;this[_0x5917f8(0xf0)](_0x5917f8(0xe2),{'replyId':this[_0x5917f8(0xe6)]['id']});}),this[_0x24ae98(0xf8)]['on'](_0x24ae98(0xec),(_0x91f08c,{index:_0x3b7f35})=>{var _0x50d513=_0x24ae98;this[_0x50d513(0xf0)](_0x50d513(0xec),{'replyId':this[_0x50d513(0xe6)]['id'],'partIndex':_0x3b7f35});}),this[_0x24ae98(0xf8)]['on'](_0x24ae98(0xe4),(_0x4ec3b8,{index:_0x56f4bb})=>{var _0x573fda=_0x24ae98;this[_0x573fda(0xf0)](_0x573fda(0xe4),{'replyId':this[_0x573fda(0xe6)]['id'],'partIndex':_0x56f4bb});}),this[_0x24ae98(0xf8)]['on'](_0x24ae98(0xfa),(_0x295d71,{index:_0x5d8a93})=>{var _0x2be35b=_0x24ae98;this[_0x2be35b(0xf0)](_0x2be35b(0xfa),{'replyId':this[_0x2be35b(0xe6)]['id'],'partIndex':_0x5d8a93});}),this[_0x24ae98(0xf8)]['on'](_0x24ae98(0xf3),(_0x28b13d,{index:_0x4b6a00})=>{var _0x4cb199=_0x24ae98;this[_0x4cb199(0xf0)](_0x4cb199(0xf3),{'replyId':this[_0x4cb199(0xe6)]['id'],'partIndex':_0x4b6a00});}),this[_0x24ae98(0xf8)]['on'](_0x24ae98(0x104),(_0x505f82,{index:_0x358f7c})=>{var _0x2f6037=_0x24ae98;this[_0x2f6037(0xf0)](_0x2f6037(0x104),{'replyId':this[_0x2f6037(0xe6)]['id'],'partIndex':_0x358f7c});}),this[_0x24ae98(0xf9)]=new _0x11d760(_0x1e0fa0,this[_0x24ae98(0xe6)][_0x24ae98(0xfc)]),this[_0x24ae98(0xf9)][_0x24ae98(0x10b)](_0x24ae98(0xfb))['to'](this,_0x24ae98(0xfb)),this[_0x24ae98(0xf9)]['on'](_0x24ae98(0xec),()=>{var _0x5f9ff2=_0x24ae98;this[_0x5f9ff2(0xf0)](_0x5f9ff2(0xec),{'replyId':this[_0x5f9ff2(0xe6)]['id']});}),this[_0x24ae98(0xf9)]['on'](_0x24ae98(0xe4),()=>{var _0x1b7aa1=_0x24ae98;this[_0x1b7aa1(0xf0)](_0x1b7aa1(0xe4),{'replyId':this[_0x1b7aa1(0xe6)]['id']});}),this[_0x24ae98(0xf9)]['on'](_0x24ae98(0xea),()=>{var _0x148bce=_0x24ae98;this[_0x148bce(0xf0)](_0x148bce(0xea),{'replyId':this[_0x148bce(0xe6)]['id']});}),_0x29ca22[_0x24ae98(0xf5)]?this[_0x24ae98(0xf9)][_0x24ae98(0xe0)]=!0x1:this[_0x24ae98(0xf9)][_0x24ae98(0x10b)](_0x24ae98(0xe0))['to'](this[_0x24ae98(0xf8)][_0x24ae98(0xf4)],_0x24ae98(0xe5)),this[_0x24ae98(0x106)][_0x24ae98(0xee)]([this[_0x24ae98(0xf8)],this[_0x24ae98(0xf9)]]),this[_0x24ae98(0xf7)]({'attributes':{'class':[_0x24ae98(0xff)]}});}async[_0x468531(0xed)](_0x4eb6af){var _0x4b0296=_0x468531;await this[_0x4b0296(0xf8)][_0x4b0296(0xed)](_0x4eb6af),this[_0x4b0296(0xf9)][_0x4b0296(0x10a)](this[_0x4b0296(0xf8)][_0x4b0296(0xf4)][_0x4b0296(0xf1)]);}[_0x468531(0xdf)](_0x2b63df,_0x60bd4d){var _0x37829a=_0x468531;this[_0x37829a(0xf8)][_0x37829a(0xf4)][_0x37829a(0xdf)](_0x2b63df,_0x60bd4d);}[_0x468531(0x10d)](_0x10c3b4){var _0x1e7d53=_0x468531;this[_0x1e7d53(0xf8)][_0x1e7d53(0x10d)](_0x10c3b4);}[_0x468531(0x100)](_0x1e4696){var _0x50ca47=_0x468531;return this[_0x50ca47(0xf8)][_0x50ca47(0xf4)][_0x50ca47(0x100)](_0x1e4696);}[_0x468531(0xde)](){var _0x260ce8=_0x468531;super[_0x260ce8(0xde)](),this[_0x260ce8(0xf8)][_0x260ce8(0xde)](),this[_0x260ce8(0xf9)][_0x260ce8(0xfe)]=this[_0x260ce8(0xf8)][_0x260ce8(0xf4)][_0x260ce8(0x10c)];}}function _0x378e(){var _0x45dd29=['actionsView','rejectSuggestion','isTrackChangesOn','availableActions','12WmoQav','isVisible','ck-ai-chat__feed__ai-suggestion','getPartView','3260uwVhrL','3949OtftqJ','1686726LzPNHP','mouseLeaveSuggestion','showDiff','children','set','1671319teVuRJ','2106024mIxFqS','updateLabels','bind','hasNonEmptyParts','updateSources','markAsDone','updatePartState','isEnabled','like','dislike','7hNmGGF','insertSuggestion','hasPendingParts','options','494387JKFHFM','225OYncZr','3684RlKgqq','applySuggestion','2RafPcs','showChangeInText','updateContent','addMany','127432qCIjDB','fire','partsCount','toggleSuggestionDisplayMode','mouseOverSuggestion','bodyView','areActionsDisabled','295ikPkRQ','extendTemplate','containerView'];_0x378e=function(){return _0x45dd29;};return _0x378e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x325c6e=_0x4fda;(function(_0x18c3eb,_0x6a36a2){var _0x3858ab=_0x4fda,_0x200f4d=_0x18c3eb();while(!![]){try{var _0x556a81=parseInt(_0x3858ab(0x205))/0x1*(-parseInt(_0x3858ab(0x1ee))/0x2)+-parseInt(_0x3858ab(0x1f5))/0x3+parseInt(_0x3858ab(0x1f7))/0x4+parseInt(_0x3858ab(0x1fe))/0x5+parseInt(_0x3858ab(0x1f0))/0x6+-parseInt(_0x3858ab(0x1f9))/0x7+parseInt(_0x3858ab(0x1ff))/0x8*(-parseInt(_0x3858ab(0x201))/0x9);if(_0x556a81===_0x6a36a2)break;else _0x200f4d['push'](_0x200f4d['shift']());}catch(_0x29a4f7){_0x200f4d['push'](_0x200f4d['shift']());}}}(_0x5d91,0xe40c5));function _0x5d91(){var _0x32ee46=['options','setTemplate','add','filter','6104295ZYjWAv','632184VpSldF','ck-ai-chat__feed__context-chips','108mrczPW','_bodyCollection','_createMessageContentView','innerHTML','1lMiqoV','children','element','render','div','_locale','_messageContentView','ck-ai-chat__feed__message-content','ck-ai-chat__feed__user-message','extendTemplate','2760660fVTYuC','markAsDone','3414732KCqPem','_contextChipsView','_createContextChipsView','hidden','length','404145qjYvAs','initialContent','6572688TWQTEf','contextItems','250229rtIpHs'];_0x5d91=function(){return _0x32ee46;};return _0x5d91();}function _0x4fda(_0x394af5,_0x12b934){var _0x5d9190=_0x5d91();return _0x4fda=function(_0x4fdaa6,_0x27f4dd){_0x4fdaa6=_0x4fdaa6-0x1e5;var _0x2d8f20=_0x5d9190[_0x4fdaa6];return _0x2d8f20;},_0x4fda(_0x394af5,_0x12b934);}import{AIChatFeedItemView as _0x906007}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x122fb4}from'./aichatfeedcontextchipsview.js';import{View as _0x3d2ed8}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x906007{[_0x325c6e(0x1f1)]=null;[_0x325c6e(0x1e9)];[_0x325c6e(0x202)];[_0x325c6e(0x1ea)];constructor(_0x5cde68,_0x3939b6,_0x209444){var _0x26e767=_0x325c6e;super(_0x3939b6),this[_0x26e767(0x1e9)]=_0x5cde68,this[_0x26e767(0x202)]=_0x209444,this[_0x26e767(0x1f2)](),this[_0x26e767(0x203)](),this[_0x26e767(0x1ed)]({'attributes':{'class':[_0x26e767(0x1ec)]}});}[_0x325c6e(0x1f2)](){var _0x143eb3=_0x325c6e;this[_0x143eb3(0x1fa)][_0x143eb3(0x1f8)]&&this[_0x143eb3(0x1fa)][_0x143eb3(0x1f8)][_0x143eb3(0x1f4)]>0x0&&(this[_0x143eb3(0x1f1)]=new _0x122fb4(this[_0x143eb3(0x1e9)],this[_0x143eb3(0x1fa)][_0x143eb3(0x1f8)][_0x143eb3(0x1fd)](_0xed9092=>!_0xed9092[_0x143eb3(0x1f3)]),this[_0x143eb3(0x202)]),this[_0x143eb3(0x1f1)][_0x143eb3(0x1ed)]({'attributes':{'class':_0x143eb3(0x200)}}),this[_0x143eb3(0x1e5)][_0x143eb3(0x1fc)](this[_0x143eb3(0x1f1)]));}[_0x325c6e(0x203)](){var _0x46fddd=_0x325c6e;this[_0x46fddd(0x1ea)]=new _0x3d2ed8(this[_0x46fddd(0x1e9)]),this[_0x46fddd(0x1ea)][_0x46fddd(0x1fb)]({'tag':_0x46fddd(0x1e8),'attributes':{'class':_0x46fddd(0x1eb)}}),this[_0x46fddd(0x1e5)][_0x46fddd(0x1fc)](this[_0x46fddd(0x1ea)]);}[_0x325c6e(0x1e7)](){var _0x2f3c3d=_0x325c6e;super[_0x2f3c3d(0x1e7)](),this[_0x2f3c3d(0x1ea)][_0x2f3c3d(0x1e6)][_0x2f3c3d(0x204)]=this[_0x2f3c3d(0x1fa)][_0x2f3c3d(0x1f6)],this[_0x2f3c3d(0x1ef)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x2c6350=_0x3cf4;function _0x3cf4(_0x185f79,_0x4ba2f0){const _0x2788b9=_0x2788();return _0x3cf4=function(_0x3cf474,_0x870e21){_0x3cf474=_0x3cf474-0x18c;let _0x2a41f7=_0x2788b9[_0x3cf474];return _0x2a41f7;},_0x3cf4(_0x185f79,_0x4ba2f0);}(function(_0x3095d5,_0x5ce755){const _0x5b3adb=_0x3cf4,_0x1ad457=_0x3095d5();while(!![]){try{const _0x7c9be6=parseInt(_0x5b3adb(0x190))/0x1+-parseInt(_0x5b3adb(0x18d))/0x2+-parseInt(_0x5b3adb(0x196))/0x3+-parseInt(_0x5b3adb(0x19a))/0x4+parseInt(_0x5b3adb(0x19d))/0x5+-parseInt(_0x5b3adb(0x18e))/0x6*(-parseInt(_0x5b3adb(0x195))/0x7)+parseInt(_0x5b3adb(0x1a0))/0x8;if(_0x7c9be6===_0x5ce755)break;else _0x1ad457['push'](_0x1ad457['shift']());}catch(_0x15d160){_0x1ad457['push'](_0x1ad457['shift']());}}}(_0x2788,0x93b59));import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2cd994}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x2cd994,_0x2c6350(0x19b),_0x2c6350(0x194),_0x2c6350(0x199),_0x2c6350(0x191),_0x2c6350(0x19c),_0x2c6350(0x19e),_0x2c6350(0x193),_0x2c6350(0x192),_0x2c6350(0x18c),_0x2c6350(0x198),_0x2c6350(0x18f),_0x2c6350(0x19f),_0x2c6350(0x197)];function _0x2788(){const _0x14069b=['775406YymakA','6708PnHzRS','toggleWebSearch','2816auwNVv','abortPromptStream','addResourceToContext','addUrlToContext','resizeTabs','3031lOPeyS','2461950ymSjoZ','selectModel','loadSourceResources','sendUserMessage','543172KgMpHR','startConversation','addDocumentToContext','3899515tZNQNA','addFileToContext','toggleReasoning','5458800yJQWIH','removeContextItem'];_0x2788=function(){return _0x14069b;};return _0x2788();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5b7e(){const _0x41a123=['18390yoiFJi','321460dOQtoI','resolve','_processQueue','length','reject','589345ZUkquK','queue','24VrsIvd','339608CPVSpL','queueEmptyPromise','completePromise','isProcessing','1364QTKWEQ','_abortController','2791197isGdWq','14hhQjkI','push','signal','346760OLLjkj','createTask','enqueue','1177328doBaqB','abort','3KwAQQj','once','_queueEmpty','fire','shift','callback'];_0x5b7e=function(){return _0x41a123;};return _0x5b7e();}const _0x46b0b8=_0xc853;(function(_0x531d67,_0x1e78ae){const _0x493ac4=_0xc853,_0x3a508b=_0x531d67();while(!![]){try{const _0x5b3a1e=-parseInt(_0x493ac4(0x19d))/0x1+-parseInt(_0x493ac4(0x191))/0x2+parseInt(_0x493ac4(0x196))/0x3*(parseInt(_0x493ac4(0x194))/0x4)+parseInt(_0x493ac4(0x1a2))/0x5*(parseInt(_0x493ac4(0x1a4))/0x6)+-parseInt(_0x493ac4(0x1ac))/0x7*(-parseInt(_0x493ac4(0x1a5))/0x8)+-parseInt(_0x493ac4(0x1ab))/0x9+-parseInt(_0x493ac4(0x19c))/0xa*(-parseInt(_0x493ac4(0x1a9))/0xb);if(_0x5b3a1e===_0x1e78ae)break;else _0x3a508b['push'](_0x3a508b['shift']());}catch(_0x4def67){_0x3a508b['push'](_0x3a508b['shift']());}}}(_0x5b7e,0x42d6d));import{EmitterMixin as _0x20e0da}from'ckeditor5/src/utils.js';function _0xc853(_0x48b3ff,_0x161e40){const _0x5b7e66=_0x5b7e();return _0xc853=function(_0xc8537e,_0x3233d4){_0xc8537e=_0xc8537e-0x190;let _0x97a11f=_0x5b7e66[_0xc8537e];return _0x97a11f;},_0xc853(_0x48b3ff,_0x161e40);}export class PromiseQueue extends _0x20e0da(){[_0x46b0b8(0x1a3)]=[];[_0x46b0b8(0x1a8)]=!0x1;[_0x46b0b8(0x1aa)];async[_0x46b0b8(0x193)](_0x19f8d8){const _0x3bd746=_0x46b0b8,_0x5c3e32=this[_0x3bd746(0x192)](_0x19f8d8);return this[_0x3bd746(0x1a3)][_0x3bd746(0x1ad)](_0x5c3e32),this[_0x3bd746(0x19f)](),_0x5c3e32[_0x3bd746(0x1a7)];}[_0x46b0b8(0x195)](){const _0x12ef51=_0x46b0b8;this[_0x12ef51(0x1a8)]&&(this[_0x12ef51(0x1aa)][_0x12ef51(0x195)](),this[_0x12ef51(0x1aa)]=void 0x0,this[_0x12ef51(0x1a3)]=[],this[_0x12ef51(0x199)](_0x12ef51(0x198)),this[_0x12ef51(0x1a8)]=!0x1);}get[_0x46b0b8(0x1a6)](){const _0x54740a=_0x46b0b8;return this[_0x54740a(0x1a3)][_0x54740a(0x1a0)]||this[_0x54740a(0x1a8)]?new Promise(_0x3dce50=>{const _0x3032b9=_0x54740a;this[_0x3032b9(0x197)](_0x3032b9(0x198),()=>{_0x3dce50();});}):Promise[_0x54740a(0x19e)]();}async[_0x46b0b8(0x19f)](){const _0x5342f2=_0x46b0b8;if(!this[_0x5342f2(0x1a8)]){this[_0x5342f2(0x1aa)]=new AbortController(),this[_0x5342f2(0x1a8)]=!0x0;try{for(;this[_0x5342f2(0x1a3)][_0x5342f2(0x1a0)]&&this[_0x5342f2(0x1a8)];){const _0x43a777=this[_0x5342f2(0x1a3)][_0x5342f2(0x19a)]();try{await _0x43a777[_0x5342f2(0x19b)](this[_0x5342f2(0x1aa)][_0x5342f2(0x190)]),_0x43a777[_0x5342f2(0x19e)]();}catch(_0x3ae152){_0x43a777[_0x5342f2(0x1a1)](_0x3ae152);}}}finally{this[_0x5342f2(0x1a8)]=!0x1,this[_0x5342f2(0x1aa)]=void 0x0;}this[_0x5342f2(0x199)](_0x5342f2(0x198));}}[_0x46b0b8(0x192)](_0x16489e){let _0x30cc16,_0x2abc61;const _0x36770e=new Promise((_0x1766c8,_0x4d8d13)=>{_0x30cc16=_0x1766c8,_0x2abc61=_0x4d8d13;});return{'callback':_0x16489e,'resolve':_0x30cc16,'reject':_0x2abc61,'completePromise':_0x36770e};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3b5b(_0x440228,_0xb0786d){var _0x4b525f=_0x4b52();return _0x3b5b=function(_0x3b5b51,_0x578aee){_0x3b5b51=_0x3b5b51-0x120;var _0x42bfe9=_0x4b525f[_0x3b5b51];return _0x42bfe9;},_0x3b5b(_0x440228,_0xb0786d);}var _0x522f30=_0x3b5b;function _0x4b52(){var _0x1cfe1b=['pluginName','285970Txilhf','12930741SZTaif','AIChatHistory','1FNEcwL','18428kNjvTD','155McKqxS','4468275ChiLdc','3353139jJXSpm','8062584mnKSuB','isPremiumPlugin','isOfficialPlugin','1829298KXEzSn','requires'];_0x4b52=function(){return _0x1cfe1b;};return _0x4b52();}(function(_0x519c5b,_0x4aff1d){var _0x2c0da4=_0x3b5b,_0x1cc4c6=_0x519c5b();while(!![]){try{var _0xe8f2a8=parseInt(_0x2c0da4(0x121))/0x1*(-parseInt(_0x2c0da4(0x12c))/0x2)+parseInt(_0x2c0da4(0x125))/0x3+parseInt(_0x2c0da4(0x122))/0x4*(-parseInt(_0x2c0da4(0x123))/0x5)+parseInt(_0x2c0da4(0x129))/0x6+-parseInt(_0x2c0da4(0x124))/0x7+-parseInt(_0x2c0da4(0x126))/0x8+parseInt(_0x2c0da4(0x12d))/0x9;if(_0xe8f2a8===_0x4aff1d)break;else _0x1cc4c6['push'](_0x1cc4c6['shift']());}catch(_0x332663){_0x1cc4c6['push'](_0x1cc4c6['shift']());}}}(_0x4b52,0xe26a3));import{ContextPlugin as _0x553e79}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x5e2357}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x43fa39}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x553e79{static get[_0x522f30(0x12a)](){return[_0x5e2357,_0x43fa39];}static get[_0x522f30(0x12b)](){var _0x1ffa9e=_0x522f30;return _0x1ffa9e(0x120);}static get[_0x522f30(0x128)](){return!0x0;}static get[_0x522f30(0x127)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x17356d=_0x2be7;(function(_0x2a6990,_0x540326){const _0x2b53a=_0x2be7,_0x3bb11a=_0x2a6990();while(!![]){try{const _0x3199cd=-parseInt(_0x2b53a(0xf8))/0x1+-parseInt(_0x2b53a(0x12b))/0x2*(parseInt(_0x2b53a(0xd0))/0x3)+parseInt(_0x2b53a(0xd9))/0x4*(parseInt(_0x2b53a(0xd7))/0x5)+-parseInt(_0x2b53a(0x12d))/0x6*(parseInt(_0x2b53a(0x118))/0x7)+parseInt(_0x2b53a(0x10d))/0x8+-parseInt(_0x2b53a(0x10c))/0x9*(parseInt(_0x2b53a(0xe1))/0xa)+parseInt(_0x2b53a(0x106))/0xb;if(_0x3199cd===_0x540326)break;else _0x3bb11a['push'](_0x3bb11a['shift']());}catch(_0x5c95f1){_0x3bb11a['push'](_0x3bb11a['shift']());}}}(_0x3da6,0x68965));function _0x2be7(_0x1364ae,_0x179034){const _0x3da6cd=_0x3da6();return _0x2be7=function(_0x2be720,_0x10add1){_0x2be720=_0x2be720-0xc8;let _0x424d72=_0x3da6cd[_0x2be720];return _0x424d72;},_0x2be7(_0x1364ae,_0x179034);}import{ContextPlugin as _0x5b20b8}from'ckeditor5/src/core.js';import{AIConnector as _0x2c275c}from'../aicore/aiconnector.js';import{AIChatController as _0x454241}from'../aichat/aichatcontroller.js';function _0x3da6(){const _0x5eb7d7=['AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','updates','getMonth','itemRemoved','title','length','_setIsMaximized','unpin','_updateHistoryItemsUI','history','setDate','openChat','handleRemovedConversation','view','itemUpdated','getItems','_handleSelectConversation','252426VYuzxg','pin','175974GusqeV','updateItems','resizeTabs','_getCategorizedItems','_handleRemove','map','items','requires','activeConversation','_handleHistoryErrorUI','3ruXZbY','operation','resizedTabs','remove','_setItemLoading','isOfficialPlugin','getFullYear','795110qQjrOE','AIChatHistoryController','16CAHTBj','plugins','removeItem','_aiConnector','itemId','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','getDate','get','1520MKozQj','chat','error','isPremiumPlugin','getGroupId','AI_CHAT_UNTITLED_CONVERSATION','_showConversationHistory','toLocaleDateString','createdAt','_generateErrorMessage','activateTab','_aiChatController','rename','listenTo','getItem','removeConversation','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','editConversationTitle','pluginName','setIsMaximized','_handleTogglePin','init','showError','373718vSGnMa','itemsLoaded','setLoadingSkeleton','_clearItemLoading','updateItemTitle','updateItemPinned','change:activeConversation','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','activateTab:history','resize','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_HISTORY_UNPIN_ACTION','selectConversation','AI_CHAT_HISTORY_CATEGORY_PINNED','2568104okPPez','_aiChatHistoryUi','locale','context','push','loadItems','27333gLbHsN','4397768PMBvmq','AI_CHAT_HISTORY_CATEGORY_TODAY','pinned','AI_CHAT_HISTORY_ERROR_GENERIC','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','setConversationPinned','AI_CHAT_HISTORY_CATEGORY_LATER','removeHistoryItem','updateItemLoadingState','_handleEditTitle','7JSJbTw','loadConversation'];_0x3da6=function(){return _0x5eb7d7;};return _0x3da6();}import{AITabs as _0x3b78bd}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x1a27b2}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x8560f8}from'./model/aichathistoryconversations.js';import{getTranslation as _0x3179f4}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x5b20b8{[_0x17356d(0xdc)];[_0x17356d(0x107)];[_0x17356d(0xec)];static get[_0x17356d(0xcd)](){return[_0x2c275c,_0x454241,_0x1a27b2,_0x3b78bd];}static get[_0x17356d(0xf3)](){const _0x40cdd6=_0x17356d;return _0x40cdd6(0xd8);}static get[_0x17356d(0xd5)](){return!0x0;}static get[_0x17356d(0xe4)](){return!0x0;}[_0x17356d(0xf6)](){const _0x2b3cf1=_0x17356d;this[_0x2b3cf1(0xdc)]=this[_0x2b3cf1(0x109)][_0x2b3cf1(0xda)][_0x2b3cf1(0xe0)](_0x2c275c),this[_0x2b3cf1(0x107)]=this[_0x2b3cf1(0x109)][_0x2b3cf1(0xda)][_0x2b3cf1(0xe0)](_0x1a27b2),this[_0x2b3cf1(0xec)]=this[_0x2b3cf1(0x109)][_0x2b3cf1(0xda)][_0x2b3cf1(0xe0)](_0x454241);const _0x3ef8b5=this[_0x2b3cf1(0x109)][_0x2b3cf1(0xda)][_0x2b3cf1(0xe0)](_0x3b78bd),_0x169a09=this[_0x2b3cf1(0xec)][_0x2b3cf1(0xe5)]();this[_0x2b3cf1(0x123)]=new _0x8560f8({'connector':this[_0x2b3cf1(0xdc)],'group':_0x169a09}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x107)],_0x2b3cf1(0xf0),(_0x45194b,_0x34489c)=>{const _0x4e1cdd=_0x2b3cf1;this[_0x4e1cdd(0xd4)](_0x34489c['id'],_0x4e1cdd(0xd3)),this[_0x4e1cdd(0xca)](_0x34489c['id']);}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x107)],_0x2b3cf1(0xf2),(_0x3c856b,_0x4eb491)=>{const _0x4d99ab=_0x2b3cf1;this[_0x4d99ab(0xd4)](_0x4eb491['id'],_0x4d99ab(0xed)),this[_0x4d99ab(0x117)](_0x4eb491['id'],_0x4eb491[_0x4d99ab(0x11e)]);}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x123)],_0x2b3cf1(0x128),(_0x2c8187,_0x413a4e)=>{const _0x98b7c7=_0x2b3cf1;void 0x0!==_0x413a4e[_0x98b7c7(0x11b)][_0x98b7c7(0x11e)]&&this[_0x98b7c7(0x107)][_0x98b7c7(0xfc)](_0x413a4e[_0x98b7c7(0xdd)],_0x413a4e[_0x98b7c7(0x11b)][_0x98b7c7(0x11e)]),void 0x0!==_0x413a4e[_0x98b7c7(0x11b)][_0x98b7c7(0x10f)]&&this[_0x98b7c7(0x122)](),this[_0x98b7c7(0xfb)](_0x413a4e[_0x98b7c7(0xdd)]);}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x123)],_0x2b3cf1(0x11d),(_0x3b92fe,_0x3ea051)=>{const _0x21503d=_0x2b3cf1;this[_0x21503d(0xec)][_0x21503d(0x126)](_0x3ea051[_0x21503d(0xdd)]),this[_0x21503d(0x107)][_0x21503d(0x115)](_0x3ea051[_0x21503d(0xdd)]),this[_0x21503d(0xfb)](_0x3ea051[_0x21503d(0xdd)]);}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x123)],_0x2b3cf1(0xf9),()=>{const _0x4e2b82=_0x2b3cf1;this[_0x4e2b82(0x122)]();}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x123)],_0x2b3cf1(0xe3),(_0x35d087,_0x179d9a)=>{const _0x121299=_0x2b3cf1;this[_0x121299(0xcf)](_0x179d9a[_0x121299(0xe3)],_0x179d9a[_0x121299(0xd1)],_0x179d9a[_0x121299(0xdd)]);}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x107)],_0x2b3cf1(0x104),(_0x363769,_0x1c1a86)=>{const _0x224472=_0x2b3cf1;this[_0x224472(0x12a)](_0x1c1a86['id']);}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x107)],_0x2b3cf1(0x113),(_0x10571b,_0x17cfa0)=>{const _0x12fbdc=_0x2b3cf1,_0x358a09=_0x17cfa0[_0x12fbdc(0x10f)]?_0x12fbdc(0x12c):_0x12fbdc(0x121);this[_0x12fbdc(0xd4)](_0x17cfa0['id'],_0x358a09),this[_0x12fbdc(0xf5)](_0x17cfa0['id'],_0x17cfa0[_0x12fbdc(0x10f)]);}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x107)],_0x2b3cf1(0x125),()=>{const _0x5889da=_0x2b3cf1;_0x3ef8b5[_0x5889da(0x127)][_0x5889da(0xeb)](_0x5889da(0xe2));}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0xec)],_0x2b3cf1(0xfe),()=>{const _0x3f4301=_0x2b3cf1;this[_0x3f4301(0x122)]();}),_0x3ef8b5[_0x2b3cf1(0x127)]['on'](_0x2b3cf1(0x100),()=>{const _0x457fb7=_0x2b3cf1;this[_0x457fb7(0xe7)]();}),this[_0x2b3cf1(0xee)](_0x3ef8b5,_0x2b3cf1(0xd2),(_0x25e590,_0x47bdb6)=>{const _0x1d36a0=_0x2b3cf1;this[_0x1d36a0(0x120)](_0x47bdb6);}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x107)],_0x2b3cf1(0xc8),()=>{const _0x56bc2f=_0x2b3cf1;_0x3ef8b5[_0x56bc2f(0x101)]();});}async[_0x17356d(0x117)](_0x396608,_0x15d40b){const _0x44f7f2=_0x17356d;await this[_0x44f7f2(0x123)][_0x44f7f2(0xfc)](_0x396608,_0x15d40b);}async[_0x17356d(0xf5)](_0x2b3a75,_0x591f4e){const _0x2cbd7f=_0x17356d;await this[_0x2cbd7f(0x123)][_0x2cbd7f(0xfd)](_0x2b3a75,_0x591f4e);}async[_0x17356d(0xca)](_0x501f67){const _0x5db8d5=_0x17356d;await this[_0x5db8d5(0x123)][_0x5db8d5(0xdb)](_0x501f67);}async[_0x17356d(0x12a)](_0x5d6338){const _0x23fc06=_0x17356d;await this[_0x23fc06(0xec)][_0x23fc06(0x119)](_0x5d6338);}async[_0x17356d(0xe7)](){const _0x389f8c=_0x17356d;this[_0x389f8c(0x107)][_0x389f8c(0xf7)](''),this[_0x389f8c(0x107)][_0x389f8c(0xfa)](!0x0),await this[_0x389f8c(0x123)][_0x389f8c(0xf6)](),this[_0x389f8c(0x107)][_0x389f8c(0xfa)](!0x1);}[_0x17356d(0x122)](){const _0x14748d=_0x17356d,_0x331453=this[_0x14748d(0xec)][_0x14748d(0xce)]?.['id'],_0x2c3813=this[_0x14748d(0xc9)]()[_0x14748d(0xcb)](_0x5c0de0=>({'title':_0x5c0de0[_0x14748d(0x11e)],'items':_0x5c0de0[_0x14748d(0xcc)][_0x14748d(0xcb)](_0x5ae0ab=>({'id':_0x5ae0ab['id'],'title':_0x5ae0ab[_0x14748d(0x11e)]||_0x3179f4(this[_0x14748d(0x109)][_0x14748d(0x108)],_0x14748d(0xe6)),'createdAt':new Date(_0x5ae0ab[_0x14748d(0xe9)])[_0x14748d(0xe8)](),'active':_0x5ae0ab['id']===_0x331453,'pinned':_0x5ae0ab[_0x14748d(0x10f)]}))}));this[_0x14748d(0x107)][_0x14748d(0x12e)](_0x2c3813);}[_0x17356d(0xd4)](_0x2579cf,_0x4d08ab){const _0x2c4b39=_0x17356d;this[_0x2c4b39(0x107)][_0x2c4b39(0x116)](_0x2579cf,_0x4d08ab,!0x0);}[_0x17356d(0xfb)](_0x534abf){const _0x17b055=_0x17356d;this[_0x17b055(0x107)][_0x17b055(0x116)](_0x534abf,null,!0x1);}[_0x17356d(0xcf)](_0x28b8d6,_0x5bfd7d,_0x5968cf){const _0x1f527c=_0x17356d,_0x11088b=this[_0x1f527c(0xea)](_0x5bfd7d,_0x5968cf);this[_0x1f527c(0x107)][_0x1f527c(0xf7)](_0x11088b),_0x5968cf&&this[_0x1f527c(0xfb)](_0x5968cf),this[_0x1f527c(0x107)][_0x1f527c(0xfa)](!0x1);}[_0x17356d(0xea)](_0x970120,_0x5a57c4){const _0x3d5080=_0x17356d,_0x3f455b=_0x5a57c4?this[_0x3d5080(0x123)][_0x3d5080(0xef)](_0x5a57c4):null,_0x4e6db0=_0x3f455b?.[_0x3d5080(0x11e)]||_0x3179f4(this[_0x3d5080(0x109)][_0x3d5080(0x108)],_0x3d5080(0xe6));switch(_0x970120){case _0x3d5080(0xfc):return _0x3179f4(this[_0x3d5080(0x109)][_0x3d5080(0x108)],_0x3d5080(0x111),_0x4e6db0);case _0x3d5080(0xfd):{const _0x5f3989=_0x3179f4(this[_0x3d5080(0x109)][_0x3d5080(0x108)],_0x3f455b?.[_0x3d5080(0x10f)]?_0x3d5080(0x103):_0x3d5080(0x102));return _0x3179f4(this[_0x3d5080(0x109)][_0x3d5080(0x108)],_0x3d5080(0xf1),[_0x5f3989,_0x4e6db0]);}case _0x3d5080(0xdb):return _0x3179f4(this[_0x3d5080(0x109)][_0x3d5080(0x108)],_0x3d5080(0xff),_0x4e6db0);case _0x3d5080(0xf6):case _0x3d5080(0x10b):return _0x3179f4(this[_0x3d5080(0x109)][_0x3d5080(0x108)],_0x3d5080(0x112));default:return _0x3179f4(this[_0x3d5080(0x109)][_0x3d5080(0x108)],_0x3d5080(0x110));}}[_0x17356d(0xc9)](){const _0x53397f=_0x17356d,_0x2172c7=new Date(),_0x12fb68=new Date(_0x2172c7[_0x53397f(0xd6)](),_0x2172c7[_0x53397f(0x11c)](),_0x2172c7[_0x53397f(0xdf)]()),_0x10bd0d=new Date(_0x12fb68);_0x10bd0d[_0x53397f(0x124)](_0x10bd0d[_0x53397f(0xdf)]()-0x1);const _0x1581ff=new Date(_0x12fb68);_0x1581ff[_0x53397f(0x124)](_0x1581ff[_0x53397f(0xdf)]()-0xe);const _0x3e5506=this[_0x53397f(0x123)][_0x53397f(0x129)]({'pinned':!0x0}),_0x1ed39b=this[_0x53397f(0x123)][_0x53397f(0x129)]({'from':_0x12fb68,'to':_0x12fb68}),_0x4d7288=this[_0x53397f(0x123)][_0x53397f(0x129)]({'from':_0x10bd0d,'to':_0x10bd0d}),_0x426183=this[_0x53397f(0x123)][_0x53397f(0x129)]({'from':_0x1581ff,'to':_0x10bd0d}),_0x213c0a=this[_0x53397f(0x123)][_0x53397f(0x129)]({'to':_0x1581ff}),_0x382d60=[];return _0x3e5506[_0x53397f(0x11f)]>0x0&&_0x382d60[_0x53397f(0x10a)]({'title':_0x3179f4(this[_0x53397f(0x109)][_0x53397f(0x108)],_0x53397f(0x105)),'items':_0x3e5506}),_0x1ed39b[_0x53397f(0x11f)]>0x0&&_0x382d60[_0x53397f(0x10a)]({'title':_0x3179f4(this[_0x53397f(0x109)][_0x53397f(0x108)],_0x53397f(0x10e)),'items':_0x1ed39b}),_0x4d7288[_0x53397f(0x11f)]>0x0&&_0x382d60[_0x53397f(0x10a)]({'title':_0x3179f4(this[_0x53397f(0x109)][_0x53397f(0x108)],_0x53397f(0xde)),'items':_0x4d7288}),_0x426183[_0x53397f(0x11f)]>0x0&&_0x382d60[_0x53397f(0x10a)]({'title':_0x3179f4(this[_0x53397f(0x109)][_0x53397f(0x108)],_0x53397f(0x11a)),'items':_0x426183}),_0x213c0a[_0x53397f(0x11f)]>0x0&&_0x382d60[_0x53397f(0x10a)]({'title':_0x3179f4(this[_0x53397f(0x109)][_0x53397f(0x108)],_0x53397f(0x114)),'items':_0x213c0a}),_0x382d60;}[_0x17356d(0x120)](_0x51853c){const _0x4d3224=_0x17356d;this[_0x4d3224(0x107)][_0x4d3224(0xf4)](_0x51853c);}}
|
|
23
|
+
const _0x42a89b=_0x183f;(function(_0x1fc87b,_0x45a7d0){const _0x45d5f7=_0x183f,_0x3e0e97=_0x1fc87b();while(!![]){try{const _0x111c6b=parseInt(_0x45d5f7(0x116))/0x1+-parseInt(_0x45d5f7(0xf4))/0x2*(parseInt(_0x45d5f7(0x108))/0x3)+-parseInt(_0x45d5f7(0x156))/0x4*(parseInt(_0x45d5f7(0x13b))/0x5)+parseInt(_0x45d5f7(0x149))/0x6+parseInt(_0x45d5f7(0x111))/0x7*(-parseInt(_0x45d5f7(0xf9))/0x8)+-parseInt(_0x45d5f7(0x11d))/0x9*(parseInt(_0x45d5f7(0x14c))/0xa)+-parseInt(_0x45d5f7(0x12e))/0xb*(-parseInt(_0x45d5f7(0x10a))/0xc);if(_0x111c6b===_0x45a7d0)break;else _0x3e0e97['push'](_0x3e0e97['shift']());}catch(_0x5e3fae){_0x3e0e97['push'](_0x3e0e97['shift']());}}}(_0x5e5b,0xc4afe));import{ContextPlugin as _0x258791}from'ckeditor5/src/core.js';import{AIConnector as _0xee4ddd}from'../aicore/aiconnector.js';function _0x5e5b(){const _0x29e29c=['32MfcIQU','removeHistoryItem','_clearItemLoading','getMonth','chat','22224SQflmg','getFullYear','AI_CHAT_HISTORY_UNPIN_ACTION','toLocaleDateString','_setIsMaximized','resize','view','editConversationTitle','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','_handleHistoryErrorUI','get','AI_CHAT_HISTORY_CATEGORY_PINNED','setDate','AI_CHAT_HISTORY_CATEGORY_LATER','pin','25593fztLhA','_generateErrorMessage','281076riYMCK','_aiConnector','loadItems','activateTab','handleRemovedConversation','rename','isPremiumPlugin','2324lBVflh','push','updateItems','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','selectConversation','491895eudXrO','locale','updateItemPinned','error','_handleEditTitle','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','createdAt','9XYizbh','AI_CHAT_UNTITLED_CONVERSATION','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','_handleSelectConversation','setConversationPinned','_handleTogglePin','operation','requires','itemId','pinned','updateItemLoadingState','loadConversation','remove','itemsLoaded','listenTo','pluginName','length','825ATpDLA','plugins','getGroupId','map','resizedTabs','removeItem','showError','openChat','removeConversation','AI_CHAT_HISTORY_PIN_ACTION','items','_getCategorizedItems','activeConversation','3305CgAhyv','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','setIsMaximized','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','_showConversationHistory','_setItemLoading','AI_CHAT_HISTORY_ERROR_GENERIC','activateTab:history','_updateHistoryItemsUI','AIChatHistoryController','unpin','getItem','resizeTabs','updateItemTitle','376074JVySoX','AI_CHAT_HISTORY_CATEGORY_TODAY','change:activeConversation','4343180cRxNXh','getItems','_handleRemove','history','updates','getDate','itemRemoved','init','setLoadingSkeleton','_aiChatController','76xeFfVw','isOfficialPlugin','_aiChatHistoryUi','title','context','itemUpdated'];_0x5e5b=function(){return _0x29e29c;};return _0x5e5b();}function _0x183f(_0x12c53c,_0x5c3fa7){const _0x5e5b6d=_0x5e5b();return _0x183f=function(_0x183fb0,_0x35a1bd){_0x183fb0=_0x183fb0-0xf4;let _0x22cf45=_0x5e5b6d[_0x183fb0];return _0x22cf45;},_0x183f(_0x12c53c,_0x5c3fa7);}import{AIChatController as _0x27f0f6}from'../aichat/aichatcontroller.js';import{AITabs as _0x4544ea}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x1f8d2c}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x4dd2f3}from'./model/aichathistoryconversations.js';import{getTranslation as _0x25e800}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x258791{[_0x42a89b(0x10b)];[_0x42a89b(0x158)];[_0x42a89b(0x155)];static get[_0x42a89b(0x124)](){return[_0xee4ddd,_0x27f0f6,_0x1f8d2c,_0x4544ea];}static get[_0x42a89b(0x12c)](){const _0x21d354=_0x42a89b;return _0x21d354(0x144);}static get[_0x42a89b(0x157)](){return!0x0;}static get[_0x42a89b(0x110)](){return!0x0;}[_0x42a89b(0x153)](){const _0x5854dc=_0x42a89b;this[_0x5854dc(0x10b)]=this[_0x5854dc(0x15a)][_0x5854dc(0x12f)][_0x5854dc(0x103)](_0xee4ddd),this[_0x5854dc(0x158)]=this[_0x5854dc(0x15a)][_0x5854dc(0x12f)][_0x5854dc(0x103)](_0x1f8d2c),this[_0x5854dc(0x155)]=this[_0x5854dc(0x15a)][_0x5854dc(0x12f)][_0x5854dc(0x103)](_0x27f0f6);const _0x26c9fc=this[_0x5854dc(0x15a)][_0x5854dc(0x12f)][_0x5854dc(0x103)](_0x4544ea),_0x2a1703=this[_0x5854dc(0x155)][_0x5854dc(0x130)]();this[_0x5854dc(0x14f)]=new _0x4dd2f3({'connector':this[_0x5854dc(0x10b)],'group':_0x2a1703}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x158)],_0x5854dc(0x136),(_0x275a37,_0x12fa32)=>{const _0x573ac8=_0x5854dc;this[_0x573ac8(0x140)](_0x12fa32['id'],_0x573ac8(0x129)),this[_0x573ac8(0x14e)](_0x12fa32['id']);}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x158)],_0x5854dc(0x100),(_0xe4860a,_0x4f3932)=>{const _0x548d95=_0x5854dc;this[_0x548d95(0x140)](_0x4f3932['id'],_0x548d95(0x10f)),this[_0x548d95(0x11a)](_0x4f3932['id'],_0x4f3932[_0x548d95(0x159)]);}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x14f)],_0x5854dc(0x15b),(_0x29dad4,_0xde22de)=>{const _0x1f625d=_0x5854dc;void 0x0!==_0xde22de[_0x1f625d(0x150)][_0x1f625d(0x159)]&&this[_0x1f625d(0x158)][_0x1f625d(0x148)](_0xde22de[_0x1f625d(0x125)],_0xde22de[_0x1f625d(0x150)][_0x1f625d(0x159)]),void 0x0!==_0xde22de[_0x1f625d(0x150)][_0x1f625d(0x126)]&&this[_0x1f625d(0x143)](),this[_0x1f625d(0xf6)](_0xde22de[_0x1f625d(0x125)]);}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x14f)],_0x5854dc(0x152),(_0x308430,_0x46066c)=>{const _0x54fa8a=_0x5854dc;this[_0x54fa8a(0x155)][_0x54fa8a(0x10e)](_0x46066c[_0x54fa8a(0x125)]),this[_0x54fa8a(0x158)][_0x54fa8a(0xf5)](_0x46066c[_0x54fa8a(0x125)]),this[_0x54fa8a(0xf6)](_0x46066c[_0x54fa8a(0x125)]);}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x14f)],_0x5854dc(0x12a),()=>{const _0xf966ce=_0x5854dc;this[_0xf966ce(0x143)]();}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x14f)],_0x5854dc(0x119),(_0x95432a,_0x474dee)=>{const _0x6e84fb=_0x5854dc;this[_0x6e84fb(0x102)](_0x474dee[_0x6e84fb(0x119)],_0x474dee[_0x6e84fb(0x123)],_0x474dee[_0x6e84fb(0x125)]);}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x158)],_0x5854dc(0x115),(_0x2f8125,_0x24c014)=>{const _0x2130b2=_0x5854dc;this[_0x2130b2(0x120)](_0x24c014['id']);}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x158)],_0x5854dc(0x121),(_0x59b61d,_0x3c9795)=>{const _0x2bdebe=_0x5854dc,_0x23edf8=_0x3c9795[_0x2bdebe(0x126)]?_0x2bdebe(0x107):_0x2bdebe(0x145);this[_0x2bdebe(0x140)](_0x3c9795['id'],_0x23edf8),this[_0x2bdebe(0x122)](_0x3c9795['id'],_0x3c9795[_0x2bdebe(0x126)]);}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x158)],_0x5854dc(0x135),()=>{const _0xd244fb=_0x5854dc;_0x26c9fc[_0xd244fb(0xff)][_0xd244fb(0x10d)](_0xd244fb(0xf8));}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x155)],_0x5854dc(0x14b),()=>{const _0x2d8354=_0x5854dc;this[_0x2d8354(0x143)]();}),_0x26c9fc[_0x5854dc(0xff)]['on'](_0x5854dc(0x142),()=>{const _0x54584a=_0x5854dc;this[_0x54584a(0x13f)]();}),this[_0x5854dc(0x12b)](_0x26c9fc,_0x5854dc(0x132),(_0x4c0276,_0x2d90ba)=>{const _0x22bdf2=_0x5854dc;this[_0x22bdf2(0xfd)](_0x2d90ba);}),this[_0x5854dc(0x12b)](this[_0x5854dc(0x158)],_0x5854dc(0x147),()=>{const _0x35c39d=_0x5854dc;_0x26c9fc[_0x35c39d(0xfe)]();});}async[_0x42a89b(0x11a)](_0x33d1ca,_0xde810){const _0x46ad98=_0x42a89b;await this[_0x46ad98(0x14f)][_0x46ad98(0x148)](_0x33d1ca,_0xde810);}async[_0x42a89b(0x122)](_0x218ce0,_0x5537e1){const _0x203172=_0x42a89b;await this[_0x203172(0x14f)][_0x203172(0x118)](_0x218ce0,_0x5537e1);}async[_0x42a89b(0x14e)](_0x4e4ccf){const _0x1fa857=_0x42a89b;await this[_0x1fa857(0x14f)][_0x1fa857(0x133)](_0x4e4ccf);}async[_0x42a89b(0x120)](_0x451602){const _0x1442ed=_0x42a89b;await this[_0x1442ed(0x155)][_0x1442ed(0x128)](_0x451602);}async[_0x42a89b(0x13f)](){const _0x2eec14=_0x42a89b;this[_0x2eec14(0x158)][_0x2eec14(0x134)](''),this[_0x2eec14(0x158)][_0x2eec14(0x154)](!0x0),await this[_0x2eec14(0x14f)][_0x2eec14(0x153)](),this[_0x2eec14(0x158)][_0x2eec14(0x154)](!0x1);}[_0x42a89b(0x143)](){const _0x4e4af3=_0x42a89b,_0x4db14c=this[_0x4e4af3(0x155)][_0x4e4af3(0x13a)]?.['id'],_0x18d77f=this[_0x4e4af3(0x139)]()[_0x4e4af3(0x131)](_0x5bf1b6=>({'title':_0x5bf1b6[_0x4e4af3(0x159)],'items':_0x5bf1b6[_0x4e4af3(0x138)][_0x4e4af3(0x131)](_0x2c9ee0=>({'id':_0x2c9ee0['id'],'title':_0x2c9ee0[_0x4e4af3(0x159)]||_0x25e800(this[_0x4e4af3(0x15a)][_0x4e4af3(0x117)],_0x4e4af3(0x11e)),'createdAt':new Date(_0x2c9ee0[_0x4e4af3(0x11c)])[_0x4e4af3(0xfc)](),'active':_0x2c9ee0['id']===_0x4db14c,'pinned':_0x2c9ee0[_0x4e4af3(0x126)]}))}));this[_0x4e4af3(0x158)][_0x4e4af3(0x113)](_0x18d77f);}[_0x42a89b(0x140)](_0x37ea34,_0x4ad43f){const _0x493cf3=_0x42a89b;this[_0x493cf3(0x158)][_0x493cf3(0x127)](_0x37ea34,_0x4ad43f,!0x0);}[_0x42a89b(0xf6)](_0x3e2bfb){const _0x351e18=_0x42a89b;this[_0x351e18(0x158)][_0x351e18(0x127)](_0x3e2bfb,null,!0x1);}[_0x42a89b(0x102)](_0x53b3cd,_0x563fe1,_0x50d48f){const _0x35b7dc=_0x42a89b,_0x5d1c53=this[_0x35b7dc(0x109)](_0x563fe1,_0x50d48f);this[_0x35b7dc(0x158)][_0x35b7dc(0x134)](_0x5d1c53),_0x50d48f&&this[_0x35b7dc(0xf6)](_0x50d48f),this[_0x35b7dc(0x158)][_0x35b7dc(0x154)](!0x1);}[_0x42a89b(0x109)](_0x5163fd,_0x27279c){const _0x5ad0f4=_0x42a89b,_0x319018=_0x27279c?this[_0x5ad0f4(0x14f)][_0x5ad0f4(0x146)](_0x27279c):null,_0x14c25d=_0x319018?.[_0x5ad0f4(0x159)]||_0x25e800(this[_0x5ad0f4(0x15a)][_0x5ad0f4(0x117)],_0x5ad0f4(0x11e));switch(_0x5163fd){case _0x5ad0f4(0x148):return _0x25e800(this[_0x5ad0f4(0x15a)][_0x5ad0f4(0x117)],_0x5ad0f4(0x114),_0x14c25d);case _0x5ad0f4(0x118):{const _0x19d735=_0x25e800(this[_0x5ad0f4(0x15a)][_0x5ad0f4(0x117)],_0x319018?.[_0x5ad0f4(0x126)]?_0x5ad0f4(0xfb):_0x5ad0f4(0x137));return _0x25e800(this[_0x5ad0f4(0x15a)][_0x5ad0f4(0x117)],_0x5ad0f4(0x13e),[_0x19d735,_0x14c25d]);}case _0x5ad0f4(0x133):return _0x25e800(this[_0x5ad0f4(0x15a)][_0x5ad0f4(0x117)],_0x5ad0f4(0x11f),_0x14c25d);case _0x5ad0f4(0x153):case _0x5ad0f4(0x10c):return _0x25e800(this[_0x5ad0f4(0x15a)][_0x5ad0f4(0x117)],_0x5ad0f4(0x11b));default:return _0x25e800(this[_0x5ad0f4(0x15a)][_0x5ad0f4(0x117)],_0x5ad0f4(0x141));}}[_0x42a89b(0x139)](){const _0x341b28=_0x42a89b,_0x446195=new Date(),_0x145c3b=new Date(_0x446195[_0x341b28(0xfa)](),_0x446195[_0x341b28(0xf7)](),_0x446195[_0x341b28(0x151)]()),_0x14b630=new Date(_0x145c3b);_0x14b630[_0x341b28(0x105)](_0x14b630[_0x341b28(0x151)]()-0x1);const _0x51ac94=new Date(_0x145c3b);_0x51ac94[_0x341b28(0x105)](_0x51ac94[_0x341b28(0x151)]()-0xe);const _0xeab952=this[_0x341b28(0x14f)][_0x341b28(0x14d)]({'pinned':!0x0}),_0x390b0b=this[_0x341b28(0x14f)][_0x341b28(0x14d)]({'from':_0x145c3b,'to':_0x145c3b}),_0x2cc6a7=this[_0x341b28(0x14f)][_0x341b28(0x14d)]({'from':_0x14b630,'to':_0x14b630}),_0x46f3cc=this[_0x341b28(0x14f)][_0x341b28(0x14d)]({'from':_0x51ac94,'to':_0x14b630}),_0x384b91=this[_0x341b28(0x14f)][_0x341b28(0x14d)]({'to':_0x51ac94}),_0x6c283d=[];return _0xeab952[_0x341b28(0x12d)]>0x0&&_0x6c283d[_0x341b28(0x112)]({'title':_0x25e800(this[_0x341b28(0x15a)][_0x341b28(0x117)],_0x341b28(0x104)),'items':_0xeab952}),_0x390b0b[_0x341b28(0x12d)]>0x0&&_0x6c283d[_0x341b28(0x112)]({'title':_0x25e800(this[_0x341b28(0x15a)][_0x341b28(0x117)],_0x341b28(0x14a)),'items':_0x390b0b}),_0x2cc6a7[_0x341b28(0x12d)]>0x0&&_0x6c283d[_0x341b28(0x112)]({'title':_0x25e800(this[_0x341b28(0x15a)][_0x341b28(0x117)],_0x341b28(0x101)),'items':_0x2cc6a7}),_0x46f3cc[_0x341b28(0x12d)]>0x0&&_0x6c283d[_0x341b28(0x112)]({'title':_0x25e800(this[_0x341b28(0x15a)][_0x341b28(0x117)],_0x341b28(0x13c)),'items':_0x46f3cc}),_0x384b91[_0x341b28(0x12d)]>0x0&&_0x6c283d[_0x341b28(0x112)]({'title':_0x25e800(this[_0x341b28(0x15a)][_0x341b28(0x117)],_0x341b28(0x106)),'items':_0x384b91}),_0x6c283d;}[_0x42a89b(0xfd)](_0x537101){const _0x219330=_0x42a89b;this[_0x219330(0x158)][_0x219330(0x13d)](_0x537101);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4391e4=_0x408c;(function(_0x3e71d3,_0x26d3ed){const _0x1f631f=_0x408c,_0x1ea437=_0x3e71d3();while(!![]){try{const _0x127dca=parseInt(_0x1f631f(0x11c))/0x1*(parseInt(_0x1f631f(0x13b))/0x2)+-parseInt(_0x1f631f(0x141))/0x3+-parseInt(_0x1f631f(0x11b))/0x4+parseInt(_0x1f631f(0x121))/0x5+parseInt(_0x1f631f(0x13d))/0x6+-parseInt(_0x1f631f(0x128))/0x7+parseInt(_0x1f631f(0x13f))/0x8*(parseInt(_0x1f631f(0x12e))/0x9);if(_0x127dca===_0x26d3ed)break;else _0x1ea437['push'](_0x1ea437['shift']());}catch(_0x3b8ec9){_0x1ea437['push'](_0x1ea437['shift']());}}}(_0x1d2a,0x5dfc3));import{ContextPlugin as _0x25de59}from'ckeditor5/src/core.js';function _0x408c(_0x5c229d,_0x56cf07){const _0x1d2a3a=_0x1d2a();return _0x408c=function(_0x408c39,_0x3a2a99){_0x408c39=_0x408c39-0x115;let _0x100b1b=_0x1d2a3a[_0x408c39];return _0x100b1b;},_0x408c(_0x5c229d,_0x56cf07);}function _0x1d2a(){const _0x8000a1=['updateItemTitle','removeHistoryItem','showError','4TbZlrr','setConversationPinned','3965358abvZiF','removeConversation','97688ytqTnZ','showResizeButton','451917GpWefJ','context','resizeTabs','history','selectConversation','AITabs','editConversationTitle','2679820iBDrhe','40627pwpukf','AI_CHAT_HISTORY_HEADING','AIChatHistoryUI','get','isLoading','720055cBqPcX','delegate','view','plugins','locale','errorMessage','pluginName','243040inSHRM','requires','isPremiumPlugin','isOfficialPlugin','updateItemLoadingState','setIsMaximized','261eujiYt','openChat','setLoadingSkeleton','updateHistoryItemsWithCategories','_historyView','hideError','addTab','isMaximized','showConversationHistory','updateItems'];_0x1d2a=function(){return _0x8000a1;};return _0x1d2a();}import{AITabs as _0x41b9c5}from'../aitabs/aitabs.js';import{IconAIHistory as _0x36b4be}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x492e0f}from'./ui/aichathistoryview.js';import{getTranslation as _0x370273}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x4391e4(0x136),_0x4391e4(0x13e),_0x4391e4(0x11a),_0x4391e4(0x13c),_0x4391e4(0x118),_0x4391e4(0x12f),_0x4391e4(0x116)];export class AIChatHistoryUI extends _0x25de59{static get[_0x4391e4(0x129)](){return[_0x41b9c5];}[_0x4391e4(0x132)];static get[_0x4391e4(0x127)](){const _0x2b2ab8=_0x4391e4;return _0x2b2ab8(0x11e);}static get[_0x4391e4(0x12b)](){return!0x0;}static get[_0x4391e4(0x12a)](){return!0x0;}constructor(_0x1f38a0){const _0x1255a0=_0x4391e4;super(_0x1f38a0);const _0x4a9f21=this[_0x1255a0(0x115)][_0x1255a0(0x124)][_0x1255a0(0x11f)](_0x1255a0(0x119));this[_0x1255a0(0x132)]=new _0x492e0f(this[_0x1255a0(0x115)][_0x1255a0(0x125)],_0x4a9f21[_0x1255a0(0x140)]),this[_0x1255a0(0x132)][_0x1255a0(0x122)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x4a9f21[_0x1255a0(0x123)][_0x1255a0(0x134)]({'id':_0x1255a0(0x117),'buttonLabel':_0x370273(this[_0x1255a0(0x115)][_0x1255a0(0x125)],_0x1255a0(0x11d)),'buttonIcon':_0x36b4be,'order':0x0,'content':this[_0x1255a0(0x132)]});}[_0x4391e4(0x139)](_0x3e3df2){const _0x1cf705=_0x4391e4;this[_0x1cf705(0x132)][_0x1cf705(0x139)](_0x3e3df2);}[_0x4391e4(0x137)](_0x51b258){const _0x40129d=_0x4391e4;this[_0x40129d(0x132)][_0x40129d(0x131)](_0x51b258);}[_0x4391e4(0x138)](_0x33f229,_0x237a15){const _0x36a87d=_0x4391e4;this[_0x36a87d(0x132)][_0x36a87d(0x138)](_0x33f229,_0x237a15);}[_0x4391e4(0x12c)](_0x3c979a,_0x142eb3,_0x55b3ec){const _0x28ed05=_0x4391e4;this[_0x28ed05(0x132)][_0x28ed05(0x12c)](_0x3c979a,_0x142eb3,_0x55b3ec);}[_0x4391e4(0x130)](_0x367d29){const _0xb8530c=_0x4391e4;this[_0xb8530c(0x132)][_0xb8530c(0x120)]=_0x367d29;}[_0x4391e4(0x13a)](_0x4cb189){const _0x226659=_0x4391e4;this[_0x226659(0x132)][_0x226659(0x126)]=_0x4cb189;}[_0x4391e4(0x133)](){const _0xcff39a=_0x4391e4;this[_0xcff39a(0x132)][_0xcff39a(0x126)]='';}[_0x4391e4(0x12d)](_0x7afbd1){const _0x2c1367=_0x4391e4;this[_0x2c1367(0x132)][_0x2c1367(0x135)]=_0x7afbd1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9bb3ba=_0x5b24;(function(_0xa27d91,_0x161557){const _0x1c0670=_0x5b24,_0x478945=_0xa27d91();while(!![]){try{const _0x8cd678=parseInt(_0x1c0670(0xb4))/0x1*(parseInt(_0x1c0670(0xb1))/0x2)+-parseInt(_0x1c0670(0xb2))/0x3+parseInt(_0x1c0670(0xad))/0x4+parseInt(_0x1c0670(0x98))/0x5*(parseInt(_0x1c0670(0xab))/0x6)+-parseInt(_0x1c0670(0xc0))/0x7*(parseInt(_0x1c0670(0xb6))/0x8)+parseInt(_0x1c0670(0xa4))/0x9+parseInt(_0x1c0670(0xbd))/0xa;if(_0x8cd678===_0x161557)break;else _0x478945['push'](_0x478945['shift']());}catch(_0x51ebb7){_0x478945['push'](_0x478945['shift']());}}}(_0x199c,0x6e33d));import{EmitterMixin as _0x165c06}from'ckeditor5/src/utils.js';function _0x199c(){const _0x3c09fb=['connector','find','getResult','itemsLoaded','removeItem','312nzEeFT','getTime','206868VoFbuY','updateItemTitle','itemUpdated','deleteConversation','2GsJFtD','1943298lRLlzf','fetchConversations','566394mVSCXk','push','23488RsUnMZ','updateTitle','getConversations','getDate','createdAt','getItems','getFullYear','182050URAYQc','fire','map','28vanIMr','pinned','findIndex','from','error','updateConversation','getMonth','22615pFtIJp','itemRemoved','filter','execute','init','updatePinned','loadItems','group','getItem','items','addItem','updateItemPinned','2154483oUiXmh','splice'];_0x199c=function(){return _0x3c09fb;};return _0x199c();}import{AIChatHistoryItem as _0x23fff0}from'./aichathistoryitem.js';function _0x5b24(_0x2625a4,_0x52a7de){const _0x199c06=_0x199c();return _0x5b24=function(_0x5b2446,_0x285b77){_0x5b2446=_0x5b2446-0x97;let _0x4e68cf=_0x199c06[_0x5b2446];return _0x4e68cf;},_0x5b24(_0x2625a4,_0x52a7de);}export class AIChatHistoryConversations extends _0x165c06(){[_0x9bb3ba(0xa1)]=[];[_0x9bb3ba(0xa6)];[_0x9bb3ba(0x9f)];constructor({connector:_0x4e0d7c,group:_0x4e7f40}){const _0x5c265f=_0x9bb3ba;super(),this[_0x5c265f(0xa6)]=_0x4e0d7c,this[_0x5c265f(0x9f)]=_0x4e7f40;}async[_0x9bb3ba(0x9c)](){const _0x5b5381=_0x9bb3ba;try{const _0x3c2155=this[_0x5b5381(0xa6)][_0x5b5381(0xb3)](this[_0x5b5381(0x9f)]),_0x23aacd=await _0x3c2155[_0x5b5381(0xb8)]();this[_0x5b5381(0x9e)](_0x23aacd);}catch(_0x32bec6){this[_0x5b5381(0xbe)](_0x5b5381(0xc4),{'error':_0x32bec6,'operation':_0x5b5381(0x9c)});}}[_0x9bb3ba(0xa2)](_0x5dfae8){const _0x3d110e=_0x9bb3ba;this[_0x3d110e(0xa1)][_0x3d110e(0xb5)](_0x5dfae8);}async[_0x9bb3ba(0xaa)](_0x1aa5ea){const _0x54e495=_0x9bb3ba,_0x47c921=this[_0x54e495(0xa1)][_0x54e495(0xc2)](_0x5a9d16=>_0x5a9d16['id']===_0x1aa5ea);if(-0x1===_0x47c921)return!0x1;try{return await this[_0x54e495(0xa6)][_0x54e495(0xb0)](_0x1aa5ea)[_0x54e495(0x9b)](),this[_0x54e495(0xa1)][_0x54e495(0xa5)](_0x47c921,0x1),this[_0x54e495(0xbe)](_0x54e495(0x99),{'itemId':_0x1aa5ea}),!0x0;}catch(_0x294e2b){return this[_0x54e495(0xbe)](_0x54e495(0xc4),{'error':_0x294e2b,'operation':_0x54e495(0xaa),'itemId':_0x1aa5ea}),!0x1;}}[_0x9bb3ba(0xa0)](_0x100a04){const _0x35498b=_0x9bb3ba;return this[_0x35498b(0xa1)][_0x35498b(0xa7)](_0x1e42ee=>_0x1e42ee['id']===_0x100a04);}async[_0x9bb3ba(0xae)](_0x4a2624,_0x11782f){const _0x21b1a0=_0x9bb3ba,_0x3af9b2=this[_0x21b1a0(0xa0)](_0x4a2624);if(!_0x3af9b2)return!0x1;try{return await this[_0x21b1a0(0xa6)][_0x21b1a0(0xc5)](_0x4a2624,{'title':_0x11782f})[_0x21b1a0(0xa8)](),_0x3af9b2[_0x21b1a0(0xb7)](_0x11782f),this[_0x21b1a0(0xbe)](_0x21b1a0(0xaf),{'itemId':_0x4a2624,'updates':{'title':_0x11782f}}),!0x0;}catch(_0x46663d){return this[_0x21b1a0(0xbe)](_0x21b1a0(0xc4),{'error':_0x46663d,'operation':_0x21b1a0(0xae),'itemId':_0x4a2624}),!0x1;}}async[_0x9bb3ba(0xa3)](_0x1ab89d,_0x1e199c){const _0x37a490=_0x9bb3ba,_0x21683c=this[_0x37a490(0xa0)](_0x1ab89d);if(!_0x21683c)return!0x1;try{return await this[_0x37a490(0xa6)][_0x37a490(0xc5)](_0x1ab89d,{'pinned':_0x1e199c})[_0x37a490(0xa8)](),_0x21683c[_0x37a490(0x9d)](_0x1e199c),this[_0x37a490(0xbe)](_0x37a490(0xaf),{'itemId':_0x1ab89d,'updates':{'pinned':_0x1e199c}}),!0x0;}catch(_0x3cd1fd){return this[_0x37a490(0xbe)](_0x37a490(0xc4),{'error':_0x3cd1fd,'operation':_0x37a490(0xa3),'itemId':_0x1ab89d}),!0x1;}}[_0x9bb3ba(0x9e)](_0xbea51){const _0x11649d=_0x9bb3ba;try{this[_0x11649d(0xa1)]=[],_0xbea51[_0x11649d(0xbf)](_0x3c8017=>{const _0x1c835c=_0x11649d;this[_0x1c835c(0xa2)](new _0x23fff0(_0x3c8017));}),this[_0x11649d(0xbe)](_0x11649d(0xa9),{'items':[...this[_0x11649d(0xa1)]]});}catch(_0x598279){this[_0x11649d(0xbe)](_0x11649d(0xc4),{'error':_0x598279,'operation':_0x11649d(0x9e)});}}[_0x9bb3ba(0xbb)](_0xf96dc9={}){const _0x424115=_0x9bb3ba,_0x31563d=void 0x0!==_0xf96dc9[_0x424115(0xc1)]&&_0xf96dc9[_0x424115(0xc1)],_0x91af71=_0xf96dc9[_0x424115(0xc3)]?new Date(_0xf96dc9[_0x424115(0xc3)][_0x424115(0xbc)](),_0xf96dc9[_0x424115(0xc3)][_0x424115(0x97)](),_0xf96dc9[_0x424115(0xc3)][_0x424115(0xb9)]()):null,_0x5dad81=_0xf96dc9['to']?new Date(_0xf96dc9['to'][_0x424115(0xbc)](),_0xf96dc9['to'][_0x424115(0x97)](),_0xf96dc9['to'][_0x424115(0xb9)]()):null;return this[_0x424115(0xa1)][_0x424115(0x9a)](_0x44c55d=>{const _0xc45d4c=_0x424115;if(_0x44c55d[_0xc45d4c(0xc1)]!==_0x31563d)return!0x1;if(_0x5dad81){const _0x5b2ae3=new Date(_0x44c55d[_0xc45d4c(0xba)][_0xc45d4c(0xbc)](),_0x44c55d[_0xc45d4c(0xba)][_0xc45d4c(0x97)](),_0x44c55d[_0xc45d4c(0xba)][_0xc45d4c(0xb9)]());return _0x91af71?_0x91af71[_0xc45d4c(0xac)]()===_0x5dad81[_0xc45d4c(0xac)]()?_0x5b2ae3[_0xc45d4c(0xac)]()===_0x91af71[_0xc45d4c(0xac)]():_0x5b2ae3<_0x5dad81&&_0x5b2ae3>=_0x91af71:_0x5b2ae3<_0x5dad81;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x3efa(_0x34c9fc,_0x1dedc3){var _0x44b17b=_0x44b1();return _0x3efa=function(_0x3efa77,_0x326ace){_0x3efa77=_0x3efa77-0x17c;var _0x59b9eb=_0x44b17b[_0x3efa77];return _0x59b9eb;},_0x3efa(_0x34c9fc,_0x1dedc3);}function _0x44b1(){var _0x483c0f=['4183950gzSPpY','set','pinned','21WFgbLX','221552ClUzZh','updateTitle','updatePinned','title','1647765CUZWuI','3011705VMJQBO','updatedAt','6NhTfQI','40660ETXBWM','createdAt','397720vzTGss','5739164AtZZEh','4743UATcUs'];_0x44b1=function(){return _0x483c0f;};return _0x44b1();}var _0x4b06c0=_0x3efa;(function(_0x568b7b,_0x294b9e){var _0x23ed1f=_0x3efa,_0x493d59=_0x568b7b();while(!![]){try{var _0x4a0fe2=-parseInt(_0x23ed1f(0x17f))/0x1+-parseInt(_0x23ed1f(0x185))/0x2+parseInt(_0x23ed1f(0x188))/0x3+-parseInt(_0x23ed1f(0x186))/0x4+-parseInt(_0x23ed1f(0x180))/0x5*(-parseInt(_0x23ed1f(0x182))/0x6)+-parseInt(_0x23ed1f(0x18b))/0x7*(-parseInt(_0x23ed1f(0x18c))/0x8)+-parseInt(_0x23ed1f(0x187))/0x9*(-parseInt(_0x23ed1f(0x183))/0xa);if(_0x4a0fe2===_0x294b9e)break;else _0x493d59['push'](_0x493d59['shift']());}catch(_0x4aa59d){_0x493d59['push'](_0x493d59['shift']());}}}(_0x44b1,0xe5d7f));import{ObservableMixin as _0xc6701a}from'ckeditor5/src/utils.js';import{escape as _0x448bca}from'es-toolkit/compat';export class AIChatHistoryItem extends _0xc6701a(){['id'];[_0x4b06c0(0x184)];constructor({id:_0xf4ff78,title:_0x59f14b,createdAt:_0xe2f8fa,updatedAt:_0xdaaa12,pinned:_0x365a54}){var _0x34f110=_0x4b06c0;super(),this['id']=_0xf4ff78,this[_0x34f110(0x184)]=new Date(_0xe2f8fa),this[_0x34f110(0x189)](_0x34f110(0x17e),_0x59f14b),this[_0x34f110(0x189)](_0x34f110(0x181),_0xdaaa12?new Date(_0xdaaa12):null),this[_0x34f110(0x189)](_0x34f110(0x18a),_0x365a54||!0x1);}[_0x4b06c0(0x17c)](_0x20dedf){var _0x53d17e=_0x4b06c0;this[_0x53d17e(0x189)](_0x53d17e(0x17e),_0x448bca(_0x20dedf)),this[_0x53d17e(0x181)]=new Date();}[_0x4b06c0(0x17d)](_0x7d411c){var _0x5a5b54=_0x4b06c0;this[_0x5a5b54(0x189)](_0x5a5b54(0x18a),_0x7d411c),this[_0x5a5b54(0x181)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
function _0x565b(){const _0x303cb1=['ck-confirm-view-submit','ck-ai-chat-history__item-content','_createPinButtonView','_createMenuDropdownView','ck-ai-loader__text','bindTemplate','ck-ai-chat-history__item-actions','ck-ai-chat-history__item-check','ck-ai-chat-history__item-row','value','buttonView','setTemplate','bind','panelPosition','LOADING_LABELS','items','ck-ai-loader','showConfirm','change:isEdit','withText','236547dVmSqv','_createSpinnerView','set','AI_CHAT_HISTORY_REMOVE_CONFIRM','updateLoadingState','_createCancelEditButtonView','isMatching','AI_CHAT_HISTORY_CANCEL','setConversationPinned','updateTitle','46856JUWEzB','isEdit','tiny','label','span','AI_CHAT_HISTORY_PIN_BUTTON','Enter','AI_CHAT_HISTORY_EDIT_NAME','match','text','783723uiptIf','ck-ai-chat-history__item-check-container','ck-ai-chat-history__item--edit','children','ck-ai-chat-history__item','locale','focus','removeConversation','createCollection','loadingState','ck-ai-chat-history__item--active','isVisible','panelView','AI_CHAT_HISTORY_LOADING_PINNING','string','_createEditInputView','ck-ai-chat-history__item-main-content','isOn','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','editConversationTitle','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_ACCEPT','key','mainContent','add','fire','_createCheckView','AI_CHAT_HISTORY_LOADING_UNPINNING','div','41508KAalRS','552588JiOGTX','75YbwKwi','1562922MuaUyd','AI_CHAT_HISTORY_LOADING_RENAMING','844200JECjzP','execute','_commitEditInputValue','click','listitem','pinned','_titleView','then','72HzkBYl','ck-confirm-view-cancel','ck-hidden','ck-ai-chat-history__item-title','clear','actions','ck-ai-chat-history__item-date','edit:cancel','highlightText','_createAcceptEditButtonView','extendTemplate','selectConversation','addMany','element'];_0x565b=function(){return _0x303cb1;};return _0x565b();}const _0x2f06ce=_0x2ee3;function _0x2ee3(_0x3f28b8,_0x4a249f){const _0x565b35=_0x565b();return _0x2ee3=function(_0x2ee328,_0x5888c6){_0x2ee328=_0x2ee328-0x101;let _0x47f3d4=_0x565b35[_0x2ee328];return _0x47f3d4;},_0x2ee3(_0x3f28b8,_0x4a249f);}(function(_0x42be72,_0x1e2850){const _0x1be801=_0x2ee3,_0x48af28=_0x42be72();while(!![]){try{const _0x2ed65b=parseInt(_0x1be801(0x146))/0x1+parseInt(_0x1be801(0x118))/0x2+-parseInt(_0x1be801(0x15a))/0x3+-parseInt(_0x1be801(0x117))/0x4*(parseInt(_0x1be801(0x119))/0x5)+parseInt(_0x1be801(0x11a))/0x6+-parseInt(_0x1be801(0x11c))/0x7+parseInt(_0x1be801(0x150))/0x8*(-parseInt(_0x1be801(0x124))/0x9);if(_0x2ed65b===_0x1e2850)break;else _0x48af28['push'](_0x48af28['shift']());}catch(_0x21be86){_0x48af28['push'](_0x48af28['shift']());}}}(_0x565b,0x2e230));import{ListItemView as _0x14a5fa,HighlightedTextView as _0x420401,ButtonView as _0x44554d,ListView as _0x4193c0,IconView as _0x51ae0c,createDropdown as _0x503a31,InputTextView as _0x221078}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0xca4dd3,IconPin as _0x5352ea,IconCheck as _0x2da781,IconCancel as _0x2dfeb0}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x45063b,ConfirmMixin as _0x10ec16}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x2888b5}from'es-toolkit/compat';import{AISpinnerView as _0x501c68}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x387cdb}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x10ec16(_0x14a5fa){['id'];static [_0x2f06ce(0x140)]={'remove':_0x2f06ce(0x10b),'rename':_0x2f06ce(0x11b),'pin':_0x2f06ce(0x106),'unpin':_0x2f06ce(0x115)};[_0x2f06ce(0x129)];[_0x2f06ce(0x111)];[_0x2f06ce(0x122)];constructor(_0x49f149,_0x32c2b5){const _0x3ee403=_0x2f06ce;super(_0x49f149);const _0x2d0b22=this[_0x3ee403(0x137)];this[_0x3ee403(0x148)](_0x3ee403(0x151),!0x1),this[_0x3ee403(0x148)](_0x3ee403(0x104),!0x0),this[_0x3ee403(0x148)](_0x3ee403(0x121),!!_0x32c2b5[_0x3ee403(0x121)]),this[_0x3ee403(0x148)](_0x3ee403(0x102),null),this['id']=_0x32c2b5['id'];const {title:_0x23214b,createdAt:_0x57b79b,active:_0x5d71e4=!0x1}=_0x32c2b5;this[_0x3ee403(0x122)]=new _0x420401(),this[_0x3ee403(0x122)][_0x3ee403(0x159)]=_0x23214b,this[_0x3ee403(0x122)][_0x3ee403(0x12e)]({'attributes':{'class':[_0x3ee403(0x127)]}});const _0x2c1ca5=this[_0x3ee403(0x114)](),_0x39ea4c=this[_0x3ee403(0x134)](_0x49f149),_0x16f103=this[_0x3ee403(0x135)](),_0x547fe1=this[_0x3ee403(0x108)](_0x49f149,_0x23214b),_0x5bf01b=this[_0x3ee403(0x12d)](_0x49f149,_0x547fe1),_0x7a347d=this[_0x3ee403(0x14b)](_0x49f149,_0x547fe1);this[_0x3ee403(0x129)]=this[_0x3ee403(0x101)](),this[_0x3ee403(0x111)]=this[_0x3ee403(0x101)](),this[_0x3ee403(0x111)][_0x3ee403(0x112)](this[_0x3ee403(0x122)]),this[_0x3ee403(0x129)][_0x3ee403(0x112)](_0x39ea4c),this[_0x3ee403(0x129)][_0x3ee403(0x112)](_0x16f103),this['on'](_0x3ee403(0x144),(_0x583937,_0x1aa3bd,_0x22a98c)=>{const _0x260ebb=_0x3ee403;this[_0x260ebb(0x129)][_0x260ebb(0x128)](),this[_0x260ebb(0x111)][_0x260ebb(0x128)](),_0x22a98c?(this[_0x260ebb(0x129)][_0x260ebb(0x112)](_0x5bf01b),this[_0x260ebb(0x129)][_0x260ebb(0x112)](_0x7a347d),this[_0x260ebb(0x111)][_0x260ebb(0x112)](_0x547fe1),_0x547fe1[_0x260ebb(0x131)][_0x260ebb(0x160)]()):(this[_0x260ebb(0x129)][_0x260ebb(0x112)](_0x39ea4c),this[_0x260ebb(0x129)][_0x260ebb(0x112)](_0x16f103),this[_0x260ebb(0x111)][_0x260ebb(0x112)](this[_0x260ebb(0x122)]));}),this[_0x3ee403(0x13d)]({'tag':'li','attributes':{'class':[_0x3ee403(0x15e),_0x5d71e4?_0x3ee403(0x103):'',_0x2d0b22['if'](_0x3ee403(0x104),_0x3ee403(0x126),_0xbe8e98=>!_0xbe8e98),_0x2d0b22['if'](_0x3ee403(0x151),_0x3ee403(0x15c))],'role':_0x3ee403(0x120)},'children':[{'tag':_0x3ee403(0x154),'attributes':{'class':[_0x3ee403(0x15b)]},'children':[{'tag':_0x3ee403(0x116),'attributes':{'class':[_0x3ee403(0x139),_0x2d0b22['if'](_0x3ee403(0x102),_0x3ee403(0x126),_0xb2d26d=>!!_0xb2d26d)]},'children':_0x5d71e4?[_0x2c1ca5]:[]},{'tag':_0x3ee403(0x116),'attributes':{'class':[_0x3ee403(0x142),_0x2d0b22['if'](_0x3ee403(0x102),_0x3ee403(0x126),_0x3c2ea6=>!_0x3c2ea6)]},'children':[this[_0x3ee403(0x147)]()]}]},{'tag':_0x3ee403(0x116),'attributes':{'class':[_0x3ee403(0x13a)]},'children':[{'tag':_0x3ee403(0x116),'attributes':{'class':[_0x3ee403(0x133)]},'on':{'click':this[_0x3ee403(0x137)]['to'](_0x3ee403(0x11f))},'children':[{'tag':_0x3ee403(0x116),'attributes':{'class':[_0x3ee403(0x109)]},'children':[{'tag':_0x3ee403(0x116),'attributes':{'class':[_0x3ee403(0x127),_0x2d0b22['if'](_0x3ee403(0x102),_0x3ee403(0x126),_0x25c3ac=>!!_0x25c3ac)]},'children':this[_0x3ee403(0x111)]},{'tag':_0x3ee403(0x116),'attributes':{'class':[_0x3ee403(0x136),_0x2d0b22['if'](_0x3ee403(0x102),_0x3ee403(0x126),_0x3f96cf=>!_0x3f96cf)]},'children':[{'text':_0x2d0b22['to'](_0x3ee403(0x102),_0x287b84=>_0x287b84?_0x387cdb(this[_0x3ee403(0x15f)],AIChatHistoryListItemView[_0x3ee403(0x140)][_0x287b84]):'')}]}]},{'tag':_0x3ee403(0x154),'attributes':{'class':[_0x3ee403(0x12a)]},'children':[_0x57b79b]}]},{'tag':_0x3ee403(0x116),'attributes':{'class':[_0x3ee403(0x138)]},'children':this[_0x3ee403(0x129)]}]}]}),this['on'](_0x3ee403(0x11f),()=>{const _0x1b8985=_0x3ee403;this[_0x1b8985(0x151)]||this[_0x1b8985(0x113)](_0x1b8985(0x12f),{'id':this['id']});});}[_0x2f06ce(0x14f)](_0x4881f1){const _0x2cb580=_0x2f06ce;this[_0x2cb580(0x122)][_0x2cb580(0x159)]=_0x2888b5(_0x4881f1);}[_0x2f06ce(0x14a)](_0x3d3c35,_0x538189){const _0x490889=_0x2f06ce;this[_0x490889(0x148)](_0x490889(0x102),_0x538189?_0x3d3c35:null);}[_0x2f06ce(0x114)](){const _0x142668=_0x2f06ce,_0x1f3d75=new _0x51ae0c();return _0x1f3d75[_0x142668(0x148)]({'content':_0x2da781}),_0x1f3d75;}[_0x2f06ce(0x134)](_0x465c15){const _0x3ca63f=_0x2f06ce,_0x4c1843=new _0x44554d(_0x465c15);return _0x4c1843[_0x3ca63f(0x148)]({'label':_0x387cdb(_0x465c15,_0x3ca63f(0x155)),'icon':_0x5352ea,'withText':!0x1,'tooltip':!0x0}),_0x4c1843[_0x3ca63f(0x13e)](_0x3ca63f(0x10a))['to'](this,_0x3ca63f(0x121)),_0x4c1843['on'](_0x3ca63f(0x11d),()=>{const _0x22030d=_0x3ca63f,_0x28c7aa=!this[_0x22030d(0x121)];this[_0x22030d(0x113)](_0x22030d(0x14e),{'id':this['id'],'pinned':_0x28c7aa});}),_0x4c1843;}[_0x2f06ce(0x135)](){const _0x2ed4c5=_0x2f06ce,_0x2c33ff=_0x503a31(this[_0x2ed4c5(0x15f)],_0x45063b),_0x71f6d0=_0x2c33ff[_0x2ed4c5(0x105)][_0x2ed4c5(0x15d)];_0x2c33ff[_0x2ed4c5(0x13c)][_0x2ed4c5(0x148)]({'label':_0x387cdb(this[_0x2ed4c5(0x15f)],_0x2ed4c5(0x10c)),'icon':_0xca4dd3}),_0x2c33ff[_0x2ed4c5(0x13f)]='sw';const _0x11aab2=new _0x44554d(this[_0x2ed4c5(0x15f)]);_0x11aab2[_0x2ed4c5(0x153)]=_0x387cdb(this[_0x2ed4c5(0x15f)],_0x2ed4c5(0x157)),_0x11aab2[_0x2ed4c5(0x145)]=!0x0,_0x11aab2['on'](_0x2ed4c5(0x11d),()=>{const _0x31d761=_0x2ed4c5;this[_0x31d761(0x151)]=!0x0;});const _0x17e741=new _0x44554d(this[_0x2ed4c5(0x15f)]);_0x17e741[_0x2ed4c5(0x153)]=_0x387cdb(this[_0x2ed4c5(0x15f)],_0x2ed4c5(0x10e)),_0x17e741[_0x2ed4c5(0x145)]=!0x0,_0x17e741['on'](_0x2ed4c5(0x11d),()=>{const _0x48cbf5=_0x2ed4c5;this[_0x48cbf5(0x143)](_0x387cdb(this[_0x48cbf5(0x15f)],_0x48cbf5(0x149)),this[_0x48cbf5(0x131)])[_0x48cbf5(0x123)](()=>{const _0x81d9fb=_0x48cbf5;this[_0x81d9fb(0x113)](_0x81d9fb(0x161),{'id':this['id']});});});const _0x2bfec7=new _0x4193c0(this[_0x2ed4c5(0x15f)]),_0x4b3d3d=new _0x14a5fa(this[_0x2ed4c5(0x15f)]);_0x4b3d3d[_0x2ed4c5(0x15d)][_0x2ed4c5(0x112)](_0x11aab2);const _0x2d4f35=new _0x14a5fa(this[_0x2ed4c5(0x15f)]);return _0x2d4f35[_0x2ed4c5(0x15d)][_0x2ed4c5(0x112)](_0x17e741),_0x2bfec7[_0x2ed4c5(0x141)][_0x2ed4c5(0x130)]([_0x4b3d3d,_0x2d4f35]),_0x71f6d0[_0x2ed4c5(0x112)](_0x2bfec7),_0x2c33ff;}[_0x2f06ce(0x108)](_0x1bba4e,_0x1b8d92){const _0x280240=_0x2f06ce,_0x5f5da6=new _0x221078(_0x1bba4e),_0x4a27df=_0x5f5da6[_0x280240(0x137)];return _0x5f5da6[_0x280240(0x13b)]=_0x1b8d92,_0x5f5da6[_0x280240(0x12e)]({'on':{'keydown':_0x4a27df['to'](_0x385beb=>{const _0x12d656=_0x280240;_0x12d656(0x156)==_0x385beb[_0x12d656(0x110)]&&this[_0x12d656(0x11e)](_0x5f5da6);})}}),_0x5f5da6;}[_0x2f06ce(0x12d)](_0xcb8d27,_0x1dcede){const _0x5c6bca=_0x2f06ce,_0x2dcfea=new _0x44554d(_0xcb8d27);return _0x2dcfea[_0x5c6bca(0x148)]({'icon':_0x2da781,'withText':!0x1,'tooltip':_0x387cdb(_0xcb8d27,_0x5c6bca(0x10f))}),_0x2dcfea[_0x5c6bca(0x12e)]({'attributes':{'class':[_0x5c6bca(0x132)]}}),_0x2dcfea['on'](_0x5c6bca(0x11d),()=>{const _0x2363f6=_0x5c6bca;this[_0x2363f6(0x11e)](_0x1dcede);}),_0x2dcfea;}[_0x2f06ce(0x11e)](_0xb2c95b){const _0xed9641=_0x2f06ce,_0x23c6a4=_0xb2c95b[_0xed9641(0x131)][_0xed9641(0x13b)]||'';this[_0xed9641(0x122)][_0xed9641(0x159)]=_0x23c6a4,this[_0xed9641(0x151)]=!0x1,this[_0xed9641(0x113)](_0xed9641(0x10d),{'id':this['id'],'title':_0x23c6a4});}[_0x2f06ce(0x14b)](_0x207b63,_0x2edea3){const _0x4474f=_0x2f06ce,_0x459688=new _0x44554d(_0x207b63);return _0x459688[_0x4474f(0x148)]({'icon':_0x2dfeb0,'withText':!0x1,'tooltip':_0x387cdb(_0x207b63,_0x4474f(0x14d))}),_0x459688[_0x4474f(0x12e)]({'attributes':{'class':[_0x4474f(0x125)]}}),_0x459688['on'](_0x4474f(0x11d),()=>{const _0x17e2b3=_0x4474f;this[_0x17e2b3(0x151)]=!0x1,_0x2edea3[_0x17e2b3(0x13b)]=this[_0x17e2b3(0x122)][_0x17e2b3(0x159)]||'',this[_0x17e2b3(0x113)](_0x17e2b3(0x12b));}),_0x459688;}[_0x2f06ce(0x147)](){const _0x4f9feb=_0x2f06ce,_0x81cb78=new _0x501c68(_0x4f9feb(0x152));return _0x81cb78[_0x4f9feb(0x104)]=!0x0,_0x81cb78;}[_0x2f06ce(0x14c)](_0x1b2a7d){const _0x2e0c57=_0x2f06ce;return this[_0x2e0c57(0x122)]&&_0x2e0c57(0x107)==typeof this[_0x2e0c57(0x122)][_0x2e0c57(0x159)]&&this[_0x2e0c57(0x122)][_0x2e0c57(0x159)][_0x2e0c57(0x158)](_0x1b2a7d)?{'title':!0x0}:null;}[_0x2f06ce(0x12c)](_0x37bf17){const _0x465aa9=_0x2f06ce;this[_0x465aa9(0x122)][_0x465aa9(0x12c)](_0x37bf17);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x33ba(_0x421363,_0x140809){const _0x343e8b=_0x343e();return _0x33ba=function(_0x33ba52,_0x5bb5be){_0x33ba52=_0x33ba52-0x110;let _0x456776=_0x343e8b[_0x33ba52];return _0x456776;},_0x33ba(_0x421363,_0x140809);}function _0x343e(){const _0xb49733=['665364nTpGNO','_itemsListView','5450394jeGuYk','ck-hidden','addMany','1803564rZVSwc','63DsXQRO','3971940ZjQVUi','setTemplate','ck-ai-chat-history__section','itemsViews','items','indexOf','31700bekbeL','div','88DfZHbM','2662544RpRVuc','isVisible','title','remove','1936125YHoUnb','isMatching','filter','getItem','splice','removeItem','find','ck-ai-chat-history__section-title','highlightText','set','bindTemplate','length'];_0x343e=function(){return _0xb49733;};return _0x343e();}const _0x3c4afd=_0x33ba;(function(_0x5e35e3,_0x1ba9bf){const _0x4fd5fe=_0x33ba,_0x2b2b87=_0x5e35e3();while(!![]){try{const _0x498c2c=-parseInt(_0x4fd5fe(0x121))/0x1*(parseInt(_0x4fd5fe(0x11f))/0x2)+-parseInt(_0x4fd5fe(0x126))/0x3+parseInt(_0x4fd5fe(0x117))/0x4+parseInt(_0x4fd5fe(0x119))/0x5+-parseInt(_0x4fd5fe(0x114))/0x6+parseInt(_0x4fd5fe(0x112))/0x7+parseInt(_0x4fd5fe(0x122))/0x8*(parseInt(_0x4fd5fe(0x118))/0x9);if(_0x498c2c===_0x1ba9bf)break;else _0x2b2b87['push'](_0x2b2b87['shift']());}catch(_0x11ffe3){_0x2b2b87['push'](_0x2b2b87['shift']());}}}(_0x343e,0xb024b));import{ListItemView as _0x3d190b,View as _0x4784b6,ListView as _0x2f2c38}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x3d190b{[_0x3c4afd(0x124)];[_0x3c4afd(0x11c)];[_0x3c4afd(0x113)];constructor(_0x17fc31,{title:_0x5df169,items:_0x11a765}){const _0x568a59=_0x3c4afd;super(_0x17fc31);const _0x57ab6e=this[_0x568a59(0x110)];this[_0x568a59(0x12f)](_0x568a59(0x123),!0x0),this[_0x568a59(0x124)]=_0x5df169,this[_0x568a59(0x11c)]=_0x11a765;const _0x3a23e7=new _0x4784b6(_0x17fc31);_0x3a23e7[_0x568a59(0x11a)]({'tag':_0x568a59(0x120),'attributes':{'class':[_0x568a59(0x12d)]},'children':[this[_0x568a59(0x124)]]}),this[_0x568a59(0x113)]=new _0x2f2c38(_0x17fc31),this[_0x568a59(0x113)][_0x568a59(0x11d)][_0x568a59(0x116)](this[_0x568a59(0x11c)]),this[_0x568a59(0x11a)]({'tag':'li','attributes':{'class':[_0x568a59(0x11b),_0x57ab6e['if'](_0x568a59(0x123),_0x568a59(0x115),_0x239446=>!_0x239446)]},'children':[_0x3a23e7,this[_0x568a59(0x113)]]});}[_0x3c4afd(0x128)](_0x235ae3){const _0x2d03d2=_0x3c4afd,_0x51b9d2=this[_0x2d03d2(0x11c)][_0x2d03d2(0x111)];let _0x381b1e=0x0;for(const _0x329502 of this[_0x2d03d2(0x11c)]){if(_0x235ae3){const _0x5b7fe6=_0x329502[_0x2d03d2(0x127)](_0x235ae3);_0x329502[_0x2d03d2(0x123)]=!!_0x5b7fe6,_0x329502[_0x2d03d2(0x12e)](_0x235ae3);}else _0x329502[_0x2d03d2(0x123)]=!0x0,_0x329502[_0x2d03d2(0x12e)](null);_0x329502[_0x2d03d2(0x123)]&&_0x381b1e++;}return this[_0x2d03d2(0x123)]=_0x381b1e>0x0,{'resultsCount':_0x381b1e,'totalItemsCount':_0x51b9d2};}[_0x3c4afd(0x129)](_0x1e2818){const _0x2b3a7e=_0x3c4afd;return this[_0x2b3a7e(0x11c)][_0x2b3a7e(0x12c)](_0x2ce0fb=>_0x2ce0fb['id']===_0x1e2818);}[_0x3c4afd(0x12b)](_0x27ba0e){const _0x42b32d=_0x3c4afd,_0x54e0af=this[_0x42b32d(0x11c)][_0x42b32d(0x11e)](_0x27ba0e);-0x1!==_0x54e0af&&(this[_0x42b32d(0x11c)][_0x42b32d(0x12a)](_0x54e0af,0x1),this[_0x42b32d(0x113)][_0x42b32d(0x11d)][_0x42b32d(0x125)](_0x27ba0e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x34f2(){const _0x18efb9=['addMany','filter','2531607fZaabX','1055302gRJPGp','482661BwKXgR','extendTemplate','items','1729770EnWqHT','9hWipeG','6401208qHsAoZ','2868600ZDVskG','1969205PjfacA','sections','12ezqxQL','ck-ai-chat-history__sections'];_0x34f2=function(){return _0x18efb9;};return _0x34f2();}const _0x24a919=_0x59ad;(function(_0x9a5b6d,_0x3003df){const _0x3ff998=_0x59ad,_0x46e55c=_0x9a5b6d();while(!![]){try{const _0xea4d50=parseInt(_0x3ff998(0x17a))/0x1+-parseInt(_0x3ff998(0x188))/0x2+parseInt(_0x3ff998(0x187))/0x3+-parseInt(_0x3ff998(0x180))/0x4+-parseInt(_0x3ff998(0x17d))/0x5*(parseInt(_0x3ff998(0x183))/0x6)+parseInt(_0x3ff998(0x181))/0x7+-parseInt(_0x3ff998(0x17f))/0x8*(-parseInt(_0x3ff998(0x17e))/0x9);if(_0xea4d50===_0x3003df)break;else _0x46e55c['push'](_0x46e55c['shift']());}catch(_0x2b6f87){_0x46e55c['push'](_0x46e55c['shift']());}}}(_0x34f2,0x730f7));import{ListView as _0x3a8c5c}from'ckeditor5/src/ui.js';function _0x59ad(_0x2404c6,_0x47ab0e){const _0x34f24a=_0x34f2();return _0x59ad=function(_0x59ad62,_0x35ec23){_0x59ad62=_0x59ad62-0x17a;let _0x45a17b=_0x34f24a[_0x59ad62];return _0x45a17b;},_0x59ad(_0x2404c6,_0x47ab0e);}export class AIChatHistorySectionListView extends _0x3a8c5c{[_0x24a919(0x182)];constructor(_0x25a7e1,_0x3c2594){const _0x2ae109=_0x24a919;super(_0x25a7e1),this[_0x2ae109(0x182)]=_0x3c2594,this[_0x2ae109(0x17c)][_0x2ae109(0x185)](this[_0x2ae109(0x182)]),this[_0x2ae109(0x17b)]({'attributes':{'class':[_0x2ae109(0x184)]}});}[_0x24a919(0x186)](_0x2620db){const _0x28349f=_0x24a919;let _0x279417=0x0,_0x22c568=0x0;for(const _0x45236c of this[_0x28349f(0x182)]){const {resultsCount:_0x45f6ef,totalItemsCount:_0x483e7f}=_0x45236c[_0x28349f(0x186)](_0x2620db);_0x279417+=_0x45f6ef,_0x22c568+=_0x483e7f;}return{'resultsCount':_0x279417,'totalItemsCount':_0x22c568};}}
|