@ckeditor/ckeditor5-ai 47.3.0-alpha.0 → 47.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/translations/ar.po +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
|
@@ -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 _0x48300d=_0xec87;(function(_0x47def2,_0x46fc49){const _0x4bb6c2=_0xec87,_0x17f529=_0x47def2();while(!![]){try{const _0xe2a26e=-parseInt(_0x4bb6c2(0x1bf))/0x1+parseInt(_0x4bb6c2(0x205))/0x2+-parseInt(_0x4bb6c2(0x20d))/0x3*(parseInt(_0x4bb6c2(0x1d9))/0x4)+parseInt(_0x4bb6c2(0x1ea))/0x5+-parseInt(_0x4bb6c2(0x209))/0x6*(parseInt(_0x4bb6c2(0x1f3))/0x7)+parseInt(_0x4bb6c2(0x1ff))/0x8*(-parseInt(_0x4bb6c2(0x1b3))/0x9)+parseInt(_0x4bb6c2(0x1b0))/0xa;if(_0xe2a26e===_0x46fc49)break;else _0x17f529['push'](_0x17f529['shift']());}catch(_0x261364){_0x17f529['push'](_0x17f529['shift']());}}}(_0x2273,0xcbcf9));import{KeystrokeHandler as _0x340251}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x1969c0,BodyCollection as _0x271ab8,ButtonView as _0x51059f,clickOutsideHandler as _0x5eb937,ListItemButtonView as _0x4305c3,ListItemView as _0xb6d551,ListView as _0x5ebe94,SplitButtonView as _0x222148,UIModel as _0x161fcb,View as _0x3b09c5}from'ckeditor5/src/ui.js';function _0x2273(){const _0x34786f=['AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','actionName','bindTemplate','1518684cDjqpC','bind','hide','width','5268666diiror','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','_dropdownOriginalConfig','showChangeInTextModel','378AOhttv','ck-ai-chat__feed__ai-suggestion__actions__balloon','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','30367350YQZqIB','actionsButton','arrowView','4644mkWPSP','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','listView','filter','set','attachToDom','remove','has','unbind','execute','div','balloonPanelView','495761QJiNfv','isEnabled','_createActionsDropdown','insertSuggestion','change:isTrackChangesOn','listenTo','_setUpList','ck-ai-chat__feed__ai-suggestion__actions--no-animation','open','locale','button','setTemplate','tooltip','source','_firstRender','ltr','ck-ai-chat__feed__ai-suggestion__actions\x20','pin','listItemModels','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','_setUpKeystrokes','applySuggestion','ck-ai-chat__feed__ai-suggestion__actions','ck-hidden','add','delegate','32348BsjpfE','keys','bottom','children','_createActionsButton','createCollection','map','esc','content','updateLabels','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','showChangeInText','applySuggestionModel','balloonPanelClass','focus','class','label','3932910lptEVO','detachFromDom','insertSuggestionModel','_createActionsDropdownOrButton','uiLanguageDirection','ck-ai-button-primary','_dropdownCurrentConfig','arrowless','element','7JCicYK','keystrokeHandler','bodyCollection','left','_partsCount','fire','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','destroy','isVisible','_updateDropdownActions','length','slice','21008WbcpjL','items','isTrackChangesOn'];_0x2273=function(){return _0x34786f;};return _0x2273();}import{IconCheck as _0x4adfcd,IconAddComment as _0x9fc540,IconDocumentWithLoupe as _0x592000}from'ckeditor5/src/icons.js';import{getTranslation as _0x407edc}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x48300d(0x1d4),_0x48300d(0x1c2),_0x48300d(0x1e4)];export class AIChatFeedSuggestionItemActionsView extends _0x3b09c5{[_0x48300d(0x1b1)];[_0x48300d(0x1dc)];[_0x48300d(0x1e5)];[_0x48300d(0x20c)];[_0x48300d(0x1ec)];[_0x48300d(0x1f7)]=0x1;[_0x48300d(0x20b)];[_0x48300d(0x1f0)];[_0x48300d(0x1cd)]=!0x0;constructor(_0x415e07,_0x5d7fff){const _0x5ba672=_0x48300d;super(_0x415e07),this[_0x5ba672(0x20b)]=_0x5d7fff||[...AI_REPLY_ACTIONS],this[_0x5ba672(0x1f0)]=[...this[_0x5ba672(0x20b)]];const _0x277cc6=this[_0x5ba672(0x204)];this[_0x5ba672(0x1b7)](_0x5ba672(0x1c0),!0x0),this[_0x5ba672(0x1b7)](_0x5ba672(0x1fb),!0x0),this[_0x5ba672(0x1b7)](_0x5ba672(0x201),!0x1),this[_0x5ba672(0x1e5)]=new _0x161fcb({'label':Pn(_0x5ba672(0x1d4),_0x415e07,this[_0x5ba672(0x1f7)]),'icon':_0x4adfcd,'withText':!0x0,'type':_0x5ba672(0x1c9),'actionName':_0x5ba672(0x1d4)}),this[_0x5ba672(0x20c)]=new _0x161fcb({'label':Pn(_0x5ba672(0x1e4),_0x415e07,this[_0x5ba672(0x1f7)]),'icon':_0x592000,'withText':!0x0,'type':_0x5ba672(0x1c9),'actionName':_0x5ba672(0x1e4)}),this[_0x5ba672(0x1ec)]=new _0x161fcb({'label':Pn(_0x5ba672(0x1c2),_0x415e07,this[_0x5ba672(0x1f7)]),'icon':_0x9fc540,'withText':!0x0,'type':_0x5ba672(0x1c9),'actionName':_0x5ba672(0x1c2)}),this[_0x5ba672(0x1b1)]=this[_0x5ba672(0x1ed)](_0x415e07),this[_0x5ba672(0x1dc)]=this[_0x5ba672(0x1de)](),this[_0x5ba672(0x1b1)]&&this[_0x5ba672(0x1dc)][_0x5ba672(0x1d7)](this[_0x5ba672(0x1b1)]),this[_0x5ba672(0x1ca)]({'tag':_0x5ba672(0x1bd),'attributes':{'class':['ck',_0x5ba672(0x1d5),_0x277cc6['if'](_0x5ba672(0x1fb),_0x5ba672(0x1d6),_0x3c45d6=>!_0x3c45d6)]},'children':this[_0x5ba672(0x1dc)]}),this['on'](_0x5ba672(0x1c3),()=>{const _0x5c4d7c=_0x5ba672;this[_0x5c4d7c(0x1f0)]=this[_0x5c4d7c(0x201)]?this[_0x5c4d7c(0x20b)][_0x5c4d7c(0x1b6)](_0x588448=>_0x5c4d7c(0x1d4)!==_0x588448):[...this[_0x5c4d7c(0x20b)]],this[_0x5c4d7c(0x1fc)](_0x415e07);});}[_0x48300d(0x1fc)](_0x29ebe2){const _0x4b7371=_0x48300d;this[_0x4b7371(0x1b1)]&&this[_0x4b7371(0x1dc)][_0x4b7371(0x1ba)](this[_0x4b7371(0x1b1)])&&(this[_0x4b7371(0x1dc)][_0x4b7371(0x1b9)](this[_0x4b7371(0x1b1)]),this[_0x4b7371(0x1b1)][_0x4b7371(0x1fa)]()),this[_0x4b7371(0x1b1)]=this[_0x4b7371(0x1ed)](_0x29ebe2),this[_0x4b7371(0x1b1)]&&this[_0x4b7371(0x1dc)][_0x4b7371(0x1d7)](this[_0x4b7371(0x1b1)]);}[_0x48300d(0x1ed)](_0x19d85a){const _0x38691a=_0x48300d;if(0x0==this[_0x38691a(0x1f0)][_0x38691a(0x1fd)])return null;const _0x225f41=0x1===this[_0x38691a(0x1f0)][_0x38691a(0x1fd)]?this[_0x38691a(0x1dd)](_0x19d85a):this[_0x38691a(0x1c1)](_0x19d85a),_0x51f7fc=this[_0x38691a(0x1cd)]?'':_0x38691a(0x1c6);_0x225f41[_0x38691a(0x1b7)]({'label':Pn(this[_0x38691a(0x1f0)][0x0],_0x19d85a,this[_0x38691a(0x1f7)]),'tooltip':Hn(this[_0x38691a(0x1f0)][0x0],_0x19d85a,this[_0x38691a(0x1f7)]),'withText':!0x0,'class':_0x38691a(0x1cf)+_0x51f7fc});for(const _0x3809f5 of this[_0x38691a(0x1f0)])_0x225f41['on'](_0x3809f5,()=>{const _0x3ca771=_0x38691a;this[_0x3ca771(0x1f8)](_0x3809f5);});return this[_0x38691a(0x1cd)]=!0x1,_0x225f41;}[_0x48300d(0x1dd)](_0x909a92){const _0x4a73e=_0x48300d,_0x464c01=new _0x51059f(_0x909a92);return _0x464c01[_0x4a73e(0x1b7)]({'class':_0x4a73e(0x1ef),'withText':!0x0}),_0x464c01['on'](_0x4a73e(0x1bc),()=>{const _0x116b5c=_0x4a73e;_0x464c01[_0x116b5c(0x1f8)](this[_0x116b5c(0x1f0)][0x0]);}),_0x464c01;}[_0x48300d(0x1c1)](_0x141598){const _0x3b4fb9=_0x48300d,_0x35934f=new Nn(_0x141598,{'listItemModels':this[_0x3b4fb9(0x1f0)][_0x3b4fb9(0x1df)](_0x2b9095=>{const _0x2fb926=_0x3b4fb9;switch(_0x2b9095){case _0x2fb926(0x1d4):return this[_0x2fb926(0x1e5)];case _0x2fb926(0x1e4):return this[_0x2fb926(0x20c)];case _0x2fb926(0x1c2):return this[_0x2fb926(0x1ec)];}})});return _0x35934f[_0x3b4fb9(0x1b7)]({'label':Pn(this[_0x3b4fb9(0x1f0)][0x0],_0x141598,this[_0x3b4fb9(0x1f7)]),'tooltip':Hn(this[_0x3b4fb9(0x1f0)][0x0],_0x141598,this[_0x3b4fb9(0x1f7)]),'withText':!0x0,'class':_0x3b4fb9(0x1d5),'balloonPanelClass':_0x3b4fb9(0x20e)}),_0x35934f[_0x3b4fb9(0x206)](_0x3b4fb9(0x1c0))['to'](this),_0x35934f;}[_0x48300d(0x1e2)](_0xe30e92){const _0x35492b=_0x48300d,_0x45b06f=this[_0x35492b(0x1c8)];this[_0x35492b(0x1f7)]=_0xe30e92||this[_0x35492b(0x1f7)],this[_0x35492b(0x1b1)][_0x35492b(0x1b7)]({'label':Pn(this[_0x35492b(0x1f0)][0x0],_0x45b06f,this[_0x35492b(0x1f7)]),'tooltip':Hn(this[_0x35492b(0x1f0)][0x0],_0x45b06f,this[_0x35492b(0x1f7)])}),this[_0x35492b(0x1e5)][_0x35492b(0x1e9)]=Pn(_0x35492b(0x1d4),_0x45b06f,this[_0x35492b(0x1f7)]),this[_0x35492b(0x20c)][_0x35492b(0x1e9)]=Pn(_0x35492b(0x1e4),_0x45b06f,this[_0x35492b(0x1f7)]),this[_0x35492b(0x1ec)][_0x35492b(0x1e9)]=Pn(_0x35492b(0x1c2),_0x45b06f,this[_0x35492b(0x1f7)]);}}class Nn extends _0x222148{[_0x48300d(0x1f5)];[_0x48300d(0x1be)];[_0x48300d(0x1b5)];[_0x48300d(0x1f4)];constructor(_0x40e136,_0x138d00){const _0x10e01a=_0x48300d;super(_0x40e136),this[_0x10e01a(0x1be)]=new _0x1969c0(this[_0x10e01a(0x1c8)]),this[_0x10e01a(0x1f5)]=new _0x271ab8(this[_0x10e01a(0x1c8)]),this[_0x10e01a(0x1f5)][_0x10e01a(0x1b8)](),this[_0x10e01a(0x1b7)](_0x10e01a(0x1e6),''),this[_0x10e01a(0x1be)][_0x10e01a(0x206)](_0x10e01a(0x1e8))['to'](this,_0x10e01a(0x1e6)),this[_0x10e01a(0x1b5)]=this[_0x10e01a(0x1c5)](_0x138d00[_0x10e01a(0x1d1)][_0x10e01a(0x1fe)](0x1)),this[_0x10e01a(0x1f5)][_0x10e01a(0x1d7)](this[_0x10e01a(0x1be)]),this[_0x10e01a(0x1be)][_0x10e01a(0x1e1)][_0x10e01a(0x1d7)](this[_0x10e01a(0x1b5)]),this[_0x10e01a(0x1b2)][_0x10e01a(0x1bb)](_0x10e01a(0x1cb)),this[_0x10e01a(0x1b2)][_0x10e01a(0x1b7)](_0x10e01a(0x1cb),_0x407edc(this[_0x10e01a(0x1c8)],_0x10e01a(0x1e3))),this[_0x10e01a(0x1d3)](),this['on'](_0x10e01a(0x1bc),()=>{const _0x3a9f4d=_0x10e01a,_0x2e65b9=_0x138d00[_0x3a9f4d(0x1d1)][0x0][_0x3a9f4d(0x203)];this[_0x3a9f4d(0x1f8)](_0x2e65b9),this[_0x3a9f4d(0x1be)][_0x3a9f4d(0x207)](),this[_0x3a9f4d(0x1b2)][_0x3a9f4d(0x1e7)]();}),this['on'](_0x10e01a(0x1c7),()=>{const _0x5d3f04=_0x10e01a;this[_0x5d3f04(0x1be)][_0x5d3f04(0x1fb)]?(this[_0x5d3f04(0x1be)][_0x5d3f04(0x207)](),this[_0x5d3f04(0x1b2)][_0x5d3f04(0x1e7)]()):(this[_0x5d3f04(0x1be)][_0x5d3f04(0x1d0)]({'target':this[_0x5d3f04(0x1f2)],'positions':[_0x5d3f04(0x1ce)===this[_0x5d3f04(0x1c8)][_0x5d3f04(0x1ee)]?Gn:yn]}),this[_0x5d3f04(0x1b5)][_0x5d3f04(0x1e7)]());}),_0x5eb937({'emitter':this[_0x10e01a(0x1be)],'callback':()=>{const _0x27becf=_0x10e01a;this[_0x27becf(0x1be)][_0x27becf(0x207)]();},'activator':()=>this[_0x10e01a(0x1be)][_0x10e01a(0x1fb)],'contextElements':()=>[this[_0x10e01a(0x1f2)],this[_0x10e01a(0x1be)][_0x10e01a(0x1f2)]]});}[_0x48300d(0x1c5)](_0x4af93a){const _0x5203c6=_0x48300d,_0x191e1e=this[_0x5203c6(0x1c8)],_0x1d4f87=new _0x5ebe94(_0x191e1e);for(const _0x4d0455 of _0x4af93a){const _0x15919d=new _0xb6d551(_0x191e1e),_0x45b559=new _0x4305c3(_0x191e1e);_0x45b559[_0x5203c6(0x206)](...Object[_0x5203c6(0x1da)](_0x4d0455))['to'](_0x4d0455),_0x45b559[_0x5203c6(0x1d8)](_0x5203c6(0x1bc))['to'](_0x1d4f87),_0x15919d[_0x5203c6(0x1dc)][_0x5203c6(0x1d7)](_0x45b559),_0x1d4f87[_0x5203c6(0x200)][_0x5203c6(0x1d7)](_0x15919d);}return _0x1d4f87[_0x5203c6(0x200)][_0x5203c6(0x1d8)](_0x5203c6(0x1bc))['to'](this),_0x1d4f87['on'](_0x5203c6(0x1bc),_0x4f314c=>{const _0x262586=_0x5203c6,_0x5a0f10=_0x4f314c[_0x262586(0x1cc)];this[_0x262586(0x1f8)](_0x5a0f10[_0x262586(0x203)]),this[_0x262586(0x1be)][_0x262586(0x207)](),this[_0x262586(0x1b2)][_0x262586(0x1e7)]();}),_0x1d4f87;}[_0x48300d(0x1d3)](){const _0x192b6b=_0x48300d;this[_0x192b6b(0x1f4)]=new _0x340251(),this[_0x192b6b(0x1f4)][_0x192b6b(0x1c4)](this[_0x192b6b(0x1be)][_0x192b6b(0x1f2)]),this[_0x192b6b(0x1f4)][_0x192b6b(0x1b7)](_0x192b6b(0x1e0),(_0x5c726e,_0xbdcc19)=>{const _0x44fe33=_0x192b6b;this[_0x44fe33(0x1be)][_0x44fe33(0x207)](),this[_0x44fe33(0x1b2)][_0x44fe33(0x1e7)](),_0xbdcc19();});}[_0x48300d(0x1fa)](){const _0x35d2d5=_0x48300d;super[_0x35d2d5(0x1fa)](),this[_0x35d2d5(0x1f4)][_0x35d2d5(0x1fa)](),this[_0x35d2d5(0x1be)][_0x35d2d5(0x1fa)](),this[_0x35d2d5(0x1f5)][_0x35d2d5(0x1eb)]();}}function Gn(_0x5cbe64){const _0x307be3=_0x48300d;return{'top':_0x5cbe64[_0x307be3(0x1db)],'left':_0x5cbe64[_0x307be3(0x1f6)],'name':_0x307be3(0x1f1),'config':{'withArrow':!0x1}};}function _0xec87(_0x1e3510,_0x483746){const _0x227317=_0x2273();return _0xec87=function(_0xec87a2,_0x4a8a76){_0xec87a2=_0xec87a2-0x1af;let _0x258940=_0x227317[_0xec87a2];return _0x258940;},_0xec87(_0x1e3510,_0x483746);}function yn(_0x24560a,_0x113334){const _0x38279c=_0x48300d;return{'top':_0x24560a[_0x38279c(0x1db)],'left':_0x24560a[_0x38279c(0x1f6)]-(_0x113334[_0x38279c(0x208)]-_0x24560a[_0x38279c(0x208)]),'name':_0x38279c(0x1f1),'config':{'withArrow':!0x1}};}function Pn(_0x517d4a,_0x128689,_0x4b3e85){const _0x3e34d4=_0x48300d;switch(_0x517d4a){case _0x3e34d4(0x1d4):return _0x407edc(_0x128689,_0x3e34d4(0x1b4),_0x4b3e85);case _0x3e34d4(0x1e4):return _0x407edc(_0x128689,_0x3e34d4(0x1f9),_0x4b3e85);case _0x3e34d4(0x1c2):return _0x407edc(_0x128689,_0x3e34d4(0x202),_0x4b3e85);}}function Hn(_0x29857d,_0x52c1b8,_0x3c9de5){const _0x169abd=_0x48300d;switch(_0x29857d){case _0x169abd(0x1d4):return _0x407edc(_0x52c1b8,_0x169abd(0x1d2),_0x3c9de5);case _0x169abd(0x1e4):return _0x407edc(_0x52c1b8,_0x169abd(0x1af),_0x3c9de5);case _0x169abd(0x1c2):return _0x407edc(_0x52c1b8,_0x169abd(0x20a),_0x3c9de5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x13668c=_0x27b5;function _0x1af5(){var _0x543b60=['addMany','like','hasPendingParts','actionsView','getPartView','showDiff','updateContent','updatePartState','insertSuggestion','1895005MpMoBy','partsCount','16797MzUrMH','bodyView','170SOhini','bind','2201015zxNESn','availableActions','extendTemplate','12370LmLqMI','containerView','9311beIzfJ','mouseOverSuggestion','hasNonEmptyParts','mouseLeaveSuggestion','fire','591032DDNoPX','children','isVisible','18xMDRKm','rejectSuggestion','updateLabels','dislike','areActionsDisabled','options','toggleSuggestionDisplayMode','updateSources','12owfPqG','isEnabled','markAsDone','isTrackChangesOn','set','403896CaWFSO','applySuggestion','ck-ai-chat__feed__ai-suggestion','1972596fduzHf','showChangeInText'];_0x1af5=function(){return _0x543b60;};return _0x1af5();}(function(_0x24beca,_0x17ad7d){var _0x52ad61=_0x27b5,_0x4d6961=_0x24beca();while(!![]){try{var _0x57677f=parseInt(_0x52ad61(0xbc))/0x1*(parseInt(_0x52ad61(0xb5))/0x2)+parseInt(_0x52ad61(0xa6))/0x3+-parseInt(_0x52ad61(0xd1))/0x4+parseInt(_0x52ad61(0xb7))/0x5+parseInt(_0x52ad61(0xcc))/0x6*(parseInt(_0x52ad61(0xb1))/0x7)+-parseInt(_0x52ad61(0xc1))/0x8*(-parseInt(_0x52ad61(0xc4))/0x9)+-parseInt(_0x52ad61(0xba))/0xa*(parseInt(_0x52ad61(0xb3))/0xb);if(_0x57677f===_0x17ad7d)break;else _0x4d6961['push'](_0x4d6961['shift']());}catch(_0xb10bb2){_0x4d6961['push'](_0x4d6961['shift']());}}}(_0x1af5,0x8fac5));import{AIChatFeedItemView as _0x5db712}from'./aichatfeeditemview.js';function _0x27b5(_0x177092,_0x24769c){var _0x1af543=_0x1af5();return _0x27b5=function(_0x27b51c,_0x14aaae){_0x27b51c=_0x27b51c-0xa4;var _0xe5c30e=_0x1af543[_0x27b51c];return _0xe5c30e;},_0x27b5(_0x177092,_0x24769c);}import{AISuggestionContainerView as _0x36d3c7}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x27108c}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x5db712{[_0x13668c(0xbb)];[_0x13668c(0xab)];constructor(_0x3c9219,_0x6b8866){var _0x3ebfff=_0x13668c;super(_0x6b8866),this[_0x3ebfff(0xd0)](_0x3ebfff(0xcf),!0x1),this[_0x3ebfff(0xbb)]=new _0x36d3c7(_0x3c9219,{'showDiff':_0x6b8866[_0x3ebfff(0xad)],'areActionsDisabled':_0x6b8866[_0x3ebfff(0xc8)],'availableActions':_0x6b8866[_0x3ebfff(0xb8)]}),this[_0x3ebfff(0xbb)]['on'](_0x3ebfff(0xca),(_0x430501,_0x42b3cc)=>{var _0x478fea=_0x3ebfff;this[_0x478fea(0xc0)](_0x478fea(0xca),{'replyId':this[_0x478fea(0xc9)]['id'],'showDiff':_0x42b3cc[_0x478fea(0xad)]});}),this[_0x3ebfff(0xbb)]['on'](_0x3ebfff(0xa9),()=>{var _0x2ae9f5=_0x3ebfff;this[_0x2ae9f5(0xc0)](_0x2ae9f5(0xa9),{'replyId':this[_0x2ae9f5(0xc9)]['id']});}),this[_0x3ebfff(0xbb)]['on'](_0x3ebfff(0xc7),()=>{var _0x33dab1=_0x3ebfff;this[_0x33dab1(0xc0)](_0x33dab1(0xc7),{'replyId':this[_0x33dab1(0xc9)]['id']});}),this[_0x3ebfff(0xbb)]['on'](_0x3ebfff(0xa7),(_0x4d9994,{index:_0x32413f})=>{var _0x249095=_0x3ebfff;this[_0x249095(0xc0)](_0x249095(0xa7),{'replyId':this[_0x249095(0xc9)]['id'],'partIndex':_0x32413f});}),this[_0x3ebfff(0xbb)]['on'](_0x3ebfff(0xb0),(_0x1cbfb2,{index:_0x236187})=>{var _0x4b8348=_0x3ebfff;this[_0x4b8348(0xc0)](_0x4b8348(0xb0),{'replyId':this[_0x4b8348(0xc9)]['id'],'partIndex':_0x236187});}),this[_0x3ebfff(0xbb)]['on'](_0x3ebfff(0xc5),(_0x2b643f,{index:_0x4020b3})=>{var _0x564024=_0x3ebfff;this[_0x564024(0xc0)](_0x564024(0xc5),{'replyId':this[_0x564024(0xc9)]['id'],'partIndex':_0x4020b3});}),this[_0x3ebfff(0xbb)]['on'](_0x3ebfff(0xbd),(_0x2e5356,{index:_0x45a52d})=>{var _0x5de7be=_0x3ebfff;this[_0x5de7be(0xc0)](_0x5de7be(0xbd),{'replyId':this[_0x5de7be(0xc9)]['id'],'partIndex':_0x45a52d});}),this[_0x3ebfff(0xbb)]['on'](_0x3ebfff(0xbf),(_0x39779f,{index:_0x59e2d6})=>{var _0x2fcdd9=_0x3ebfff;this[_0x2fcdd9(0xc0)](_0x2fcdd9(0xbf),{'replyId':this[_0x2fcdd9(0xc9)]['id'],'partIndex':_0x59e2d6});}),this[_0x3ebfff(0xab)]=new _0x27108c(_0x3c9219,this[_0x3ebfff(0xc9)][_0x3ebfff(0xb8)]),this[_0x3ebfff(0xab)][_0x3ebfff(0xb6)](_0x3ebfff(0xcf))['to'](this,_0x3ebfff(0xcf)),this[_0x3ebfff(0xab)]['on'](_0x3ebfff(0xa7),()=>{var _0x13f304=_0x3ebfff;this[_0x13f304(0xc0)](_0x13f304(0xa7),{'replyId':this[_0x13f304(0xc9)]['id']});}),this[_0x3ebfff(0xab)]['on'](_0x3ebfff(0xb0),()=>{var _0x2f08ac=_0x3ebfff;this[_0x2f08ac(0xc0)](_0x2f08ac(0xb0),{'replyId':this[_0x2f08ac(0xc9)]['id']});}),this[_0x3ebfff(0xab)]['on'](_0x3ebfff(0xa4),()=>{var _0x4902ba=_0x3ebfff;this[_0x4902ba(0xc0)](_0x4902ba(0xa4),{'replyId':this[_0x4902ba(0xc9)]['id']});}),_0x6b8866[_0x3ebfff(0xc8)]?this[_0x3ebfff(0xab)][_0x3ebfff(0xcd)]=!0x1:this[_0x3ebfff(0xab)][_0x3ebfff(0xb6)](_0x3ebfff(0xcd))['to'](this[_0x3ebfff(0xbb)][_0x3ebfff(0xb4)],_0x3ebfff(0xaa)),this[_0x3ebfff(0xc2)][_0x3ebfff(0xa8)]([this[_0x3ebfff(0xbb)],this[_0x3ebfff(0xab)]]),this[_0x3ebfff(0xb9)]({'attributes':{'class':[_0x3ebfff(0xa5)]}});}async[_0x13668c(0xae)](_0x82592){var _0x2db4e5=_0x13668c;await this[_0x2db4e5(0xbb)][_0x2db4e5(0xae)](_0x82592),this[_0x2db4e5(0xab)][_0x2db4e5(0xc6)](this[_0x2db4e5(0xbb)][_0x2db4e5(0xb4)][_0x2db4e5(0xb2)]);}[_0x13668c(0xaf)](_0xa6435a,_0x16f4d0){var _0x33d816=_0x13668c;this[_0x33d816(0xbb)][_0x33d816(0xb4)][_0x33d816(0xaf)](_0xa6435a,_0x16f4d0);}[_0x13668c(0xcb)](_0x3b9181){var _0x3078=_0x13668c;this[_0x3078(0xbb)][_0x3078(0xcb)](_0x3b9181);}[_0x13668c(0xac)](_0xeb6919){var _0x1ca9b9=_0x13668c;return this[_0x1ca9b9(0xbb)][_0x1ca9b9(0xb4)][_0x1ca9b9(0xac)](_0xeb6919);}[_0x13668c(0xce)](){var _0x3ab8d1=_0x13668c;super[_0x3ab8d1(0xce)](),this[_0x3ab8d1(0xbb)][_0x3ab8d1(0xce)](),this[_0x3ab8d1(0xab)][_0x3ab8d1(0xc3)]=this[_0x3ab8d1(0xbb)][_0x3ab8d1(0xb4)][_0x3ab8d1(0xbe)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1a0862=_0x5379;(function(_0x5a3402,_0x1227bd){var _0x1a669b=_0x5379,_0x434606=_0x5a3402();while(!![]){try{var _0x54dde8=parseInt(_0x1a669b(0xef))/0x1*(-parseInt(_0x1a669b(0xfa))/0x2)+parseInt(_0x1a669b(0xeb))/0x3*(parseInt(_0x1a669b(0xfe))/0x4)+parseInt(_0x1a669b(0xe7))/0x5*(parseInt(_0x1a669b(0xf9))/0x6)+parseInt(_0x1a669b(0xdd))/0x7*(-parseInt(_0x1a669b(0xdc))/0x8)+parseInt(_0x1a669b(0xe9))/0x9+-parseInt(_0x1a669b(0xe6))/0xa+-parseInt(_0x1a669b(0xe5))/0xb*(-parseInt(_0x1a669b(0xf0))/0xc);if(_0x54dde8===_0x1227bd)break;else _0x434606['push'](_0x434606['shift']());}catch(_0x11b138){_0x434606['push'](_0x434606['shift']());}}}(_0x4ac5,0x9c95d));function _0x5379(_0x4dcad7,_0x5a6818){var _0x4ac55b=_0x4ac5();return _0x5379=function(_0x537972,_0x236f67){_0x537972=_0x537972-0xdb;var _0x2af701=_0x4ac55b[_0x537972];return _0x2af701;},_0x5379(_0x4dcad7,_0x5a6818);}import{AIChatFeedItemView as _0x410357}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x40fee7}from'./aichatfeedcontextchipsview.js';import{View as _0x3ec607}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x410357{[_0x1a0862(0xdf)]=null;[_0x1a0862(0xe2)];[_0x1a0862(0xfc)];[_0x1a0862(0xf5)];constructor(_0x5cd0b6,_0x5aa59e,_0x6d357c){var _0xd8b083=_0x1a0862;super(_0x5aa59e),this[_0xd8b083(0xe2)]=_0x5cd0b6,this[_0xd8b083(0xfc)]=_0x6d357c,this[_0xd8b083(0xe4)](),this[_0xd8b083(0xe0)](),this[_0xd8b083(0xea)]({'attributes':{'class':[_0xd8b083(0xf2)]}});}[_0x1a0862(0xe4)](){var _0x41cb3a=_0x1a0862;this[_0x41cb3a(0xf6)][_0x41cb3a(0xf1)]&&this[_0x41cb3a(0xf6)][_0x41cb3a(0xf1)][_0x41cb3a(0xe8)]>0x0&&(this[_0x41cb3a(0xdf)]=new _0x40fee7(this[_0x41cb3a(0xe2)],this[_0x41cb3a(0xf6)][_0x41cb3a(0xf1)][_0x41cb3a(0xed)](_0x41b0d=>!_0x41b0d[_0x41cb3a(0xde)]),this[_0x41cb3a(0xfc)]),this[_0x41cb3a(0xdf)][_0x41cb3a(0xea)]({'attributes':{'class':_0x41cb3a(0xec)}}),this[_0x41cb3a(0xe3)][_0x41cb3a(0xf8)](this[_0x41cb3a(0xdf)]));}[_0x1a0862(0xe0)](){var _0x26f5b3=_0x1a0862;this[_0x26f5b3(0xf5)]=new _0x3ec607(this[_0x26f5b3(0xe2)]),this[_0x26f5b3(0xf5)][_0x26f5b3(0xfd)]({'tag':_0x26f5b3(0xe1),'attributes':{'class':_0x26f5b3(0xfb)}}),this[_0x26f5b3(0xe3)][_0x26f5b3(0xf8)](this[_0x26f5b3(0xf5)]);}[_0x1a0862(0xdb)](){var _0x107d9f=_0x1a0862;super[_0x107d9f(0xdb)](),this[_0x107d9f(0xf5)][_0x107d9f(0xf7)][_0x107d9f(0xf4)]=this[_0x107d9f(0xf6)][_0x107d9f(0xee)],this[_0x107d9f(0xf3)]();}}function _0x4ac5(){var _0x58cec6=['markAsDone','innerHTML','_messageContentView','options','element','add','6QqXWzm','4CjFbSC','ck-ai-chat__feed__message-content','_bodyCollection','setTemplate','4rXxBcW','render','1080936onzUZW','21woGAyr','hidden','_contextChipsView','_createMessageContentView','div','_locale','children','_createContextChipsView','11LJiOHC','1653000HrCaCI','1938330hGXWyS','length','7787880cSIqzc','extendTemplate','1548159LdxtMu','ck-ai-chat__feed__context-chips','filter','initialContent','344186DklHhD','1576284ynnPLS','contextItems','ck-ai-chat__feed__user-message'];_0x4ac5=function(){return _0x58cec6;};return _0x4ac5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4a68(_0x2931a2,_0x575fa3){const _0x1b65f1=_0x1b65();return _0x4a68=function(_0x4a68a0,_0x5ca220){_0x4a68a0=_0x4a68a0-0x1c8;let _0x24fa4c=_0x1b65f1[_0x4a68a0];return _0x24fa4c;},_0x4a68(_0x2931a2,_0x575fa3);}const _0x4da563=_0x4a68;(function(_0x43a204,_0x5d3506){const _0x85be46=_0x4a68,_0x545a0d=_0x43a204();while(!![]){try{const _0x4b098f=parseInt(_0x85be46(0x1da))/0x1+-parseInt(_0x85be46(0x1d3))/0x2*(-parseInt(_0x85be46(0x1cb))/0x3)+parseInt(_0x85be46(0x1dc))/0x4+-parseInt(_0x85be46(0x1d1))/0x5+parseInt(_0x85be46(0x1cc))/0x6+-parseInt(_0x85be46(0x1c9))/0x7*(parseInt(_0x85be46(0x1d7))/0x8)+parseInt(_0x85be46(0x1d0))/0x9;if(_0x4b098f===_0x5d3506)break;else _0x545a0d['push'](_0x545a0d['shift']());}catch(_0x22c3e6){_0x545a0d['push'](_0x545a0d['shift']());}}}(_0x1b65,0xe7445));import{AI_SUGGESTION_UI_EVENT_NAMES as _0x319976}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x319976,_0x4da563(0x1cd),_0x4da563(0x1d6),_0x4da563(0x1ce),_0x4da563(0x1c8),_0x4da563(0x1d4),_0x4da563(0x1d8),_0x4da563(0x1db),_0x4da563(0x1d9),_0x4da563(0x1d2),_0x4da563(0x1cf),_0x4da563(0x1ca),_0x4da563(0x1d5),_0x4da563(0x1dd)];function _0x1b65(){const _0x1258c4=['abortPromptStream','15127nEoHGb','toggleWebSearch','212523NJvegy','5844636lIKYiq','startConversation','sendUserMessage','loadSourceResources','4653810MbpaQG','6881650BsEcWY','removeContextItem','2NiFmoz','addDocumentToContext','toggleReasoning','resizeTabs','536LykmAN','addFileToContext','addResourceToContext','430717kakVnk','addUrlToContext','1902528LcwPri','selectModel'];_0x1b65=function(){return _0x1258c4;};return _0x1b65();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1eadb9=_0x5cc8;(function(_0x4453af,_0x4f8819){const _0x23b25e=_0x5cc8,_0x903a8d=_0x4453af();while(!![]){try{const _0x565964=-parseInt(_0x23b25e(0xa4))/0x1*(-parseInt(_0x23b25e(0xaa))/0x2)+-parseInt(_0x23b25e(0xa9))/0x3+-parseInt(_0x23b25e(0xb1))/0x4*(-parseInt(_0x23b25e(0xb8))/0x5)+parseInt(_0x23b25e(0xb2))/0x6*(parseInt(_0x23b25e(0xbb))/0x7)+parseInt(_0x23b25e(0xac))/0x8+-parseInt(_0x23b25e(0xa8))/0x9+parseInt(_0x23b25e(0xb6))/0xa*(-parseInt(_0x23b25e(0xb3))/0xb);if(_0x565964===_0x4f8819)break;else _0x903a8d['push'](_0x903a8d['shift']());}catch(_0x210b6d){_0x903a8d['push'](_0x903a8d['shift']());}}}(_0x2b7b,0xdd848));function _0x5cc8(_0x4e9e67,_0x8721f8){const _0x2b7bfc=_0x2b7b();return _0x5cc8=function(_0x5cc826,_0x5c5bce){_0x5cc826=_0x5cc826-0xa2;let _0x335f64=_0x2b7bfc[_0x5cc826];return _0x335f64;},_0x5cc8(_0x4e9e67,_0x8721f8);}import{EmitterMixin as _0x2ca53f}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x2ca53f(){[_0x1eadb9(0xbf)]=[];[_0x1eadb9(0xba)]=!0x1;[_0x1eadb9(0xa7)];async[_0x1eadb9(0xb5)](_0x54acc1){const _0x26d76e=_0x1eadb9,_0x402acd=this[_0x26d76e(0xbc)](_0x54acc1);return this[_0x26d76e(0xbf)][_0x26d76e(0xa2)](_0x402acd),this[_0x26d76e(0xa6)](),_0x402acd[_0x26d76e(0xb4)];}[_0x1eadb9(0xaf)](){const _0x37610a=_0x1eadb9;this[_0x37610a(0xba)]&&(this[_0x37610a(0xa7)][_0x37610a(0xaf)](),this[_0x37610a(0xa7)]=void 0x0,this[_0x37610a(0xbf)]=[],this[_0x37610a(0xa3)](_0x37610a(0xab)),this[_0x37610a(0xba)]=!0x1);}get[_0x1eadb9(0xa5)](){const _0x402b82=_0x1eadb9;return this[_0x402b82(0xbf)][_0x402b82(0xbe)]||this[_0x402b82(0xba)]?new Promise(_0xae880=>{const _0x3730f2=_0x402b82;this[_0x3730f2(0xb7)](_0x3730f2(0xab),()=>{_0xae880();});}):Promise[_0x402b82(0xb0)]();}async[_0x1eadb9(0xa6)](){const _0x2d25e0=_0x1eadb9;if(!this[_0x2d25e0(0xba)]){this[_0x2d25e0(0xa7)]=new AbortController(),this[_0x2d25e0(0xba)]=!0x0;try{for(;this[_0x2d25e0(0xbf)][_0x2d25e0(0xbe)]&&this[_0x2d25e0(0xba)];){const _0x3b3f8f=this[_0x2d25e0(0xbf)][_0x2d25e0(0xad)]();try{await _0x3b3f8f[_0x2d25e0(0xb9)](this[_0x2d25e0(0xa7)][_0x2d25e0(0xae)]),_0x3b3f8f[_0x2d25e0(0xb0)]();}catch(_0x293753){_0x3b3f8f[_0x2d25e0(0xbd)](_0x293753);}}}finally{this[_0x2d25e0(0xba)]=!0x1,this[_0x2d25e0(0xa7)]=void 0x0;}this[_0x2d25e0(0xa3)](_0x2d25e0(0xab));}}[_0x1eadb9(0xbc)](_0xf83d7c){let _0x126ec9,_0x88fe8d;const _0x3046dc=new Promise((_0x17113f,_0x4632e7)=>{_0x126ec9=_0x17113f,_0x88fe8d=_0x4632e7;});return{'callback':_0xf83d7c,'resolve':_0x126ec9,'reject':_0x88fe8d,'completePromise':_0x3046dc};}}function _0x2b7b(){const _0x52c7cd=['483320eBIMZF','shift','signal','abort','resolve','2116lLZcij','6TookYv','30811YKzanF','completePromise','enqueue','150nhsWbp','once','15425LGBxFv','callback','isProcessing','6065899xMFPjP','createTask','reject','length','queue','push','fire','1XfiBBn','queueEmptyPromise','_processQueue','_abortController','16218972VhOWlO','2049288Xhsefh','1751236wuCPch','_queueEmpty'];_0x2b7b=function(){return _0x52c7cd;};return _0x2b7b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x2895cd=_0x51f7;(function(_0xb1cb9f,_0x10bdd8){var _0xbdf693=_0x51f7,_0x78ae6c=_0xb1cb9f();while(!![]){try{var _0x544845=-parseInt(_0xbdf693(0x1de))/0x1+-parseInt(_0xbdf693(0x1d1))/0x2+parseInt(_0xbdf693(0x1dc))/0x3*(parseInt(_0xbdf693(0x1d6))/0x4)+parseInt(_0xbdf693(0x1d5))/0x5+-parseInt(_0xbdf693(0x1da))/0x6+parseInt(_0xbdf693(0x1dd))/0x7*(parseInt(_0xbdf693(0x1d7))/0x8)+-parseInt(_0xbdf693(0x1db))/0x9*(-parseInt(_0xbdf693(0x1d9))/0xa);if(_0x544845===_0x10bdd8)break;else _0x78ae6c['push'](_0x78ae6c['shift']());}catch(_0x1b4f2f){_0x78ae6c['push'](_0x78ae6c['shift']());}}}(_0x3e01,0x90057));function _0x3e01(){var _0x529d7f=['isPremiumPlugin','AIChatHistory','requires','2833565wpaduc','4aIsmOe','7456CXlblO','pluginName','10230xaSyCw','521904mLUFgZ','10809uVPWAy','156273vPpCKk','567ukDhPW','996402lEIIKa','isOfficialPlugin','499244QGQogv'];_0x3e01=function(){return _0x529d7f;};return _0x3e01();}import{ContextPlugin as _0x40fa35}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x259eb1}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x2c4200}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';function _0x51f7(_0xf19bb7,_0x51ab96){var _0x3e0120=_0x3e01();return _0x51f7=function(_0x51f795,_0x425afa){_0x51f795=_0x51f795-0x1d1;var _0x29a470=_0x3e0120[_0x51f795];return _0x29a470;},_0x51f7(_0xf19bb7,_0x51ab96);}export class AIChatHistory extends _0x40fa35{static get[_0x2895cd(0x1d4)](){return[_0x259eb1,_0x2c4200];}static get[_0x2895cd(0x1d8)](){var _0x4686bd=_0x2895cd;return _0x4686bd(0x1d3);}static get[_0x2895cd(0x1df)](){return!0x0;}static get[_0x2895cd(0x1d2)](){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 _0x214b81=_0x2fb1;function _0x2fb1(_0x5a977b,_0xa12bc5){const _0x4d31f6=_0x4d31();return _0x2fb1=function(_0x2fb10d,_0x3e1935){_0x2fb10d=_0x2fb10d-0x10a;let _0x9d134d=_0x4d31f6[_0x2fb10d];return _0x9d134d;},_0x2fb1(_0x5a977b,_0xa12bc5);}(function(_0x2f7a7e,_0x462a7b){const _0x7b72a2=_0x2fb1,_0x4cdb6a=_0x2f7a7e();while(!![]){try{const _0x15c62b=-parseInt(_0x7b72a2(0x156))/0x1*(parseInt(_0x7b72a2(0x16f))/0x2)+parseInt(_0x7b72a2(0x162))/0x3+parseInt(_0x7b72a2(0x12f))/0x4*(-parseInt(_0x7b72a2(0x142))/0x5)+parseInt(_0x7b72a2(0x12b))/0x6+-parseInt(_0x7b72a2(0x131))/0x7+-parseInt(_0x7b72a2(0x151))/0x8+parseInt(_0x7b72a2(0x13e))/0x9*(parseInt(_0x7b72a2(0x133))/0xa);if(_0x15c62b===_0x462a7b)break;else _0x4cdb6a['push'](_0x4cdb6a['shift']());}catch(_0x3b01a1){_0x4cdb6a['push'](_0x4cdb6a['shift']());}}}(_0x4d31,0x88f1e));import{ContextPlugin as _0x42609a}from'ckeditor5/src/core.js';import{AIConnector as _0x3b06de}from'../aicore/aiconnector.js';import{AIChatController as _0x5df332}from'../aichat/aichatcontroller.js';import{AITabs as _0x42dde1}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0xa89e6b}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x20c48b}from'./model/aichathistoryconversations.js';import{getTranslation as _0x5365e2}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x42609a{[_0x214b81(0x111)];[_0x214b81(0x117)];[_0x214b81(0x14f)];static get[_0x214b81(0x16a)](){return[_0x3b06de,_0x5df332,_0xa89e6b,_0x42dde1];}static get[_0x214b81(0x12d)](){const _0x57a347=_0x214b81;return _0x57a347(0x115);}static get[_0x214b81(0x11f)](){return!0x0;}static get[_0x214b81(0x136)](){return!0x0;}[_0x214b81(0x11e)](){const _0x243657=_0x214b81;this[_0x243657(0x111)]=this[_0x243657(0x15f)][_0x243657(0x16c)][_0x243657(0x144)](_0x3b06de),this[_0x243657(0x117)]=this[_0x243657(0x15f)][_0x243657(0x16c)][_0x243657(0x144)](_0xa89e6b),this[_0x243657(0x14f)]=this[_0x243657(0x15f)][_0x243657(0x16c)][_0x243657(0x144)](_0x5df332);const _0x14d066=this[_0x243657(0x15f)][_0x243657(0x16c)][_0x243657(0x144)](_0x42dde1),_0x35c9a0=this[_0x243657(0x14f)][_0x243657(0x124)]();this[_0x243657(0x161)]=new _0x20c48b({'connector':this[_0x243657(0x111)],'group':_0x35c9a0}),this[_0x243657(0x10e)](this[_0x243657(0x117)],_0x243657(0x13d),(_0x3aecd2,_0x26b05b)=>{const _0xa3688e=_0x243657;this[_0xa3688e(0x165)](_0x26b05b['id'],_0xa3688e(0x13c)),this[_0xa3688e(0x13f)](_0x26b05b['id']);}),this[_0x243657(0x10e)](this[_0x243657(0x117)],_0x243657(0x169),(_0x435f5c,_0xe21b7d)=>{const _0x379900=_0x243657;this[_0x379900(0x165)](_0xe21b7d['id'],_0x379900(0x10f)),this[_0x379900(0x123)](_0xe21b7d['id'],_0xe21b7d[_0x379900(0x118)]);}),this[_0x243657(0x10e)](this[_0x243657(0x161)],_0x243657(0x15a),(_0x53bb51,_0x4020db)=>{const _0x3551d7=_0x243657;void 0x0!==_0x4020db[_0x3551d7(0x113)][_0x3551d7(0x118)]&&this[_0x3551d7(0x117)][_0x3551d7(0x13b)](_0x4020db[_0x3551d7(0x12e)],_0x4020db[_0x3551d7(0x113)][_0x3551d7(0x118)]),void 0x0!==_0x4020db[_0x3551d7(0x113)][_0x3551d7(0x130)]&&this[_0x3551d7(0x14c)](),this[_0x3551d7(0x153)](_0x4020db[_0x3551d7(0x12e)]);}),this[_0x243657(0x10e)](this[_0x243657(0x161)],_0x243657(0x154),(_0x57b1ef,_0x1d1c40)=>{const _0x5dbe06=_0x243657;this[_0x5dbe06(0x14f)][_0x5dbe06(0x120)](_0x1d1c40[_0x5dbe06(0x12e)]),this[_0x5dbe06(0x117)][_0x5dbe06(0x11b)](_0x1d1c40[_0x5dbe06(0x12e)]),this[_0x5dbe06(0x153)](_0x1d1c40[_0x5dbe06(0x12e)]);}),this[_0x243657(0x10e)](this[_0x243657(0x161)],_0x243657(0x10d),()=>{const _0x2e44ea=_0x243657;this[_0x2e44ea(0x14c)]();}),this[_0x243657(0x10e)](this[_0x243657(0x161)],_0x243657(0x140),(_0x1dd4af,_0x2acb4b)=>{const _0x3f6322=_0x243657;this[_0x3f6322(0x12a)](_0x2acb4b[_0x3f6322(0x140)],_0x2acb4b[_0x3f6322(0x147)],_0x2acb4b[_0x3f6322(0x12e)]);}),this[_0x243657(0x10e)](this[_0x243657(0x117)],_0x243657(0x16b),(_0x4c7258,_0x2b5266)=>{const _0x4b52d1=_0x243657;this[_0x4b52d1(0x11a)](_0x2b5266['id']);}),this[_0x243657(0x10e)](this[_0x243657(0x117)],_0x243657(0x146),(_0x516e76,_0x1376ac)=>{const _0xf335b4=_0x243657,_0x4d92e1=_0x1376ac[_0xf335b4(0x130)]?_0xf335b4(0x138):_0xf335b4(0x134);this[_0xf335b4(0x165)](_0x1376ac['id'],_0x4d92e1),this[_0xf335b4(0x150)](_0x1376ac['id'],_0x1376ac[_0xf335b4(0x130)]);}),this[_0x243657(0x10e)](this[_0x243657(0x117)],_0x243657(0x15e),()=>{const _0x4d64f0=_0x243657;_0x14d066[_0x4d64f0(0x145)][_0x4d64f0(0x143)](_0x4d64f0(0x148));}),this[_0x243657(0x10e)](this[_0x243657(0x14f)],_0x243657(0x15c),()=>{const _0x55f272=_0x243657;this[_0x55f272(0x14c)]();}),_0x14d066[_0x243657(0x145)]['on'](_0x243657(0x166),()=>{const _0x59500c=_0x243657;this[_0x59500c(0x129)]();}),this[_0x243657(0x10e)](_0x14d066,_0x243657(0x157),(_0x2374d0,_0x68290)=>{const _0x290a5f=_0x243657;this[_0x290a5f(0x112)](_0x68290);}),this[_0x243657(0x10e)](this[_0x243657(0x117)],_0x243657(0x128),()=>{const _0x326580=_0x243657;_0x14d066[_0x326580(0x141)]();});}async[_0x214b81(0x123)](_0x47e06f,_0x3df344){const _0x54eb3a=_0x214b81;await this[_0x54eb3a(0x161)][_0x54eb3a(0x13b)](_0x47e06f,_0x3df344);}async[_0x214b81(0x150)](_0x5cfa98,_0x1ab23){const _0xce0492=_0x214b81;await this[_0xce0492(0x161)][_0xce0492(0x137)](_0x5cfa98,_0x1ab23);}async[_0x214b81(0x13f)](_0x13b9a8){const _0x17be2f=_0x214b81;await this[_0x17be2f(0x161)][_0x17be2f(0x160)](_0x13b9a8);}async[_0x214b81(0x11a)](_0xb01d6d){const _0x38b9f4=_0x214b81;await this[_0x38b9f4(0x14f)][_0x38b9f4(0x119)](_0xb01d6d);}async[_0x214b81(0x129)](){const _0x982e63=_0x214b81;this[_0x982e63(0x117)][_0x982e63(0x149)](''),this[_0x982e63(0x117)][_0x982e63(0x122)](!0x0),await this[_0x982e63(0x161)][_0x982e63(0x11e)](),this[_0x982e63(0x117)][_0x982e63(0x122)](!0x1);}[_0x214b81(0x14c)](){const _0x4291f0=_0x214b81,_0x1a4abc=this[_0x4291f0(0x14f)][_0x4291f0(0x13a)]?.['id'],_0x1688ae=this[_0x4291f0(0x132)]()[_0x4291f0(0x14e)](_0x1177bc=>({'title':_0x1177bc[_0x4291f0(0x118)],'items':_0x1177bc[_0x4291f0(0x125)][_0x4291f0(0x14e)](_0x4c412d=>({'id':_0x4c412d['id'],'title':_0x4c412d[_0x4291f0(0x118)]||_0x5365e2(this[_0x4291f0(0x15f)][_0x4291f0(0x116)],_0x4291f0(0x163)),'createdAt':new Date(_0x4c412d[_0x4291f0(0x12c)])[_0x4291f0(0x10a)](),'active':_0x4c412d['id']===_0x1a4abc,'pinned':_0x4c412d[_0x4291f0(0x130)]}))}));this[_0x4291f0(0x117)][_0x4291f0(0x152)](_0x1688ae);}[_0x214b81(0x165)](_0x1c7221,_0x2592e1){const _0x4fb2c3=_0x214b81;this[_0x4fb2c3(0x117)][_0x4fb2c3(0x155)](_0x1c7221,_0x2592e1,!0x0);}[_0x214b81(0x153)](_0x2cc288){const _0x1ce309=_0x214b81;this[_0x1ce309(0x117)][_0x1ce309(0x155)](_0x2cc288,null,!0x1);}[_0x214b81(0x12a)](_0x4970b4,_0x17b59d,_0x740de){const _0x17c1f7=_0x214b81,_0x35bfa7=this[_0x17c1f7(0x139)](_0x17b59d,_0x740de);this[_0x17c1f7(0x117)][_0x17c1f7(0x149)](_0x35bfa7),_0x740de&&this[_0x17c1f7(0x153)](_0x740de),this[_0x17c1f7(0x117)][_0x17c1f7(0x122)](!0x1);}[_0x214b81(0x139)](_0x52fd8d,_0x5049b3){const _0x5f5d51=_0x214b81,_0x48a53d=_0x5049b3?this[_0x5f5d51(0x161)][_0x5f5d51(0x135)](_0x5049b3):null,_0x138a9f=_0x48a53d?.[_0x5f5d51(0x118)]||_0x5365e2(this[_0x5f5d51(0x15f)][_0x5f5d51(0x116)],_0x5f5d51(0x163));switch(_0x52fd8d){case _0x5f5d51(0x13b):return _0x5365e2(this[_0x5f5d51(0x15f)][_0x5f5d51(0x116)],_0x5f5d51(0x159),_0x138a9f);case _0x5f5d51(0x137):{const _0x15a4b6=_0x5365e2(this[_0x5f5d51(0x15f)][_0x5f5d51(0x116)],_0x48a53d?.[_0x5f5d51(0x130)]?_0x5f5d51(0x167):_0x5f5d51(0x114));return _0x5365e2(this[_0x5f5d51(0x15f)][_0x5f5d51(0x116)],_0x5f5d51(0x127),[_0x15a4b6,_0x138a9f]);}case _0x5f5d51(0x160):return _0x5365e2(this[_0x5f5d51(0x15f)][_0x5f5d51(0x116)],_0x5f5d51(0x168),_0x138a9f);case _0x5f5d51(0x11e):case _0x5f5d51(0x11d):return _0x5365e2(this[_0x5f5d51(0x15f)][_0x5f5d51(0x116)],_0x5f5d51(0x10b));default:return _0x5365e2(this[_0x5f5d51(0x15f)][_0x5f5d51(0x116)],_0x5f5d51(0x121));}}[_0x214b81(0x132)](){const _0x38b34a=_0x214b81,_0x2bbae8=new Date(),_0xb945f8=new Date(_0x2bbae8[_0x38b34a(0x15b)](),_0x2bbae8[_0x38b34a(0x110)](),_0x2bbae8[_0x38b34a(0x126)]()),_0x3553ea=new Date(_0xb945f8);_0x3553ea[_0x38b34a(0x14a)](_0x3553ea[_0x38b34a(0x126)]()-0x1);const _0x57ac8c=new Date(_0xb945f8);_0x57ac8c[_0x38b34a(0x14a)](_0x57ac8c[_0x38b34a(0x126)]()-0xe);const _0x145b98=this[_0x38b34a(0x161)][_0x38b34a(0x16d)]({'pinned':!0x0}),_0x4278c6=this[_0x38b34a(0x161)][_0x38b34a(0x16d)]({'from':_0xb945f8,'to':_0xb945f8}),_0x2a5bd4=this[_0x38b34a(0x161)][_0x38b34a(0x16d)]({'from':_0x3553ea,'to':_0x3553ea}),_0x90ca6b=this[_0x38b34a(0x161)][_0x38b34a(0x16d)]({'from':_0x57ac8c,'to':_0x3553ea}),_0x4d6d6b=this[_0x38b34a(0x161)][_0x38b34a(0x16d)]({'to':_0x57ac8c}),_0x344c8c=[];return _0x145b98[_0x38b34a(0x164)]>0x0&&_0x344c8c[_0x38b34a(0x10c)]({'title':_0x5365e2(this[_0x38b34a(0x15f)][_0x38b34a(0x116)],_0x38b34a(0x158)),'items':_0x145b98}),_0x4278c6[_0x38b34a(0x164)]>0x0&&_0x344c8c[_0x38b34a(0x10c)]({'title':_0x5365e2(this[_0x38b34a(0x15f)][_0x38b34a(0x116)],_0x38b34a(0x14b)),'items':_0x4278c6}),_0x2a5bd4[_0x38b34a(0x164)]>0x0&&_0x344c8c[_0x38b34a(0x10c)]({'title':_0x5365e2(this[_0x38b34a(0x15f)][_0x38b34a(0x116)],_0x38b34a(0x14d)),'items':_0x2a5bd4}),_0x90ca6b[_0x38b34a(0x164)]>0x0&&_0x344c8c[_0x38b34a(0x10c)]({'title':_0x5365e2(this[_0x38b34a(0x15f)][_0x38b34a(0x116)],_0x38b34a(0x11c)),'items':_0x90ca6b}),_0x4d6d6b[_0x38b34a(0x164)]>0x0&&_0x344c8c[_0x38b34a(0x10c)]({'title':_0x5365e2(this[_0x38b34a(0x15f)][_0x38b34a(0x116)],_0x38b34a(0x15d)),'items':_0x4d6d6b}),_0x344c8c;}[_0x214b81(0x112)](_0x38e276){const _0x31464b=_0x214b81;this[_0x31464b(0x117)][_0x31464b(0x16e)](_0x38e276);}}function _0x4d31(){const _0x4da2f8=['plugins','getItems','setIsMaximized','2DCWjyd','toLocaleDateString','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','push','itemsLoaded','listenTo','rename','getMonth','_aiConnector','_setIsMaximized','updates','AI_CHAT_HISTORY_PIN_ACTION','AIChatHistoryController','locale','_aiChatHistoryUi','title','loadConversation','_handleSelectConversation','removeHistoryItem','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','loadItems','init','isOfficialPlugin','handleRemovedConversation','AI_CHAT_HISTORY_ERROR_GENERIC','setLoadingSkeleton','_handleEditTitle','getGroupId','items','getDate','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','resizeTabs','_showConversationHistory','_handleHistoryErrorUI','4242222JLYKwk','createdAt','pluginName','itemId','88rTWLRY','pinned','1475789IYNPsj','_getCategorizedItems','309640SGWWPp','unpin','getItem','isPremiumPlugin','updateItemPinned','pin','_generateErrorMessage','activeConversation','updateItemTitle','remove','removeConversation','243lQlPjE','_handleRemove','error','resize','242020LuAMil','activateTab','get','view','setConversationPinned','operation','chat','showError','setDate','AI_CHAT_HISTORY_CATEGORY_TODAY','_updateHistoryItemsUI','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','map','_aiChatController','_handleTogglePin','3339144FSqobm','updateItems','_clearItemLoading','itemRemoved','updateItemLoadingState','352367Iarrwq','resizedTabs','AI_CHAT_HISTORY_CATEGORY_PINNED','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','itemUpdated','getFullYear','change:activeConversation','AI_CHAT_HISTORY_CATEGORY_LATER','openChat','context','removeItem','history','3190008WHefTx','AI_CHAT_UNTITLED_CONVERSATION','length','_setItemLoading','activateTab:history','AI_CHAT_HISTORY_UNPIN_ACTION','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','editConversationTitle','requires','selectConversation'];_0x4d31=function(){return _0x4da2f8;};return _0x4d31();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x490711=_0x5b0a;function _0x3c8f(){const _0x354bcf=['showError','_historyView','errorMessage','updateItemTitle','locale','AI_CHAT_HISTORY_HEADING','96iJTjDD','713083nwXeUt','view','isOfficialPlugin','setLoadingSkeleton','hideError','AIChatHistoryUI','selectConversation','isPremiumPlugin','removeConversation','removeHistoryItem','addTab','history','get','598178EhfmBs','plugins','832503DDlpzz','6102320fXmxDA','delegate','updateHistoryItemsWithCategories','10OxBNha','4699189ZBbyBd','editConversationTitle','AITabs','showResizeButton','resizeTabs','context','requires','1VPSzDa','120NmouXq','setConversationPinned','460315ZxGiNS','updateItems','updateItemLoadingState','setIsMaximized','9753714pJAPSB','isMaximized','showConversationHistory','isLoading','pluginName','openChat'];_0x3c8f=function(){return _0x354bcf;};return _0x3c8f();}(function(_0x48a89a,_0x31acb6){const _0x3571aa=_0x5b0a,_0x56190c=_0x48a89a();while(!![]){try{const _0x2cebd8=parseInt(_0x3571aa(0x217))/0x1*(-parseInt(_0x3571aa(0x209))/0x2)+parseInt(_0x3571aa(0x20b))/0x3+parseInt(_0x3571aa(0x20c))/0x4+parseInt(_0x3571aa(0x21a))/0x5*(parseInt(_0x3571aa(0x1fb))/0x6)+parseInt(_0x3571aa(0x1fc))/0x7*(-parseInt(_0x3571aa(0x218))/0x8)+-parseInt(_0x3571aa(0x21e))/0x9+-parseInt(_0x3571aa(0x20f))/0xa*(-parseInt(_0x3571aa(0x210))/0xb);if(_0x2cebd8===_0x31acb6)break;else _0x56190c['push'](_0x56190c['shift']());}catch(_0x193dd6){_0x56190c['push'](_0x56190c['shift']());}}}(_0x3c8f,0xc1762));import{ContextPlugin as _0x4d34ba}from'ckeditor5/src/core.js';import{AITabs as _0x5849bb}from'../aitabs/aitabs.js';import{IconAIHistory as _0x58ee22}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x5e6d11}from'./ui/aichathistoryview.js';import{getTranslation as _0x49e044}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';function _0x5b0a(_0x23be27,_0x20821c){const _0x3c8f67=_0x3c8f();return _0x5b0a=function(_0x5b0a1d,_0x496642){_0x5b0a1d=_0x5b0a1d-0x1f4;let _0x529607=_0x3c8f67[_0x5b0a1d];return _0x529607;},_0x5b0a(_0x23be27,_0x20821c);}export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x490711(0x220),_0x490711(0x204),_0x490711(0x211),_0x490711(0x219),_0x490711(0x202),_0x490711(0x1f4),_0x490711(0x214)];export class AIChatHistoryUI extends _0x4d34ba{static get[_0x490711(0x216)](){return[_0x5849bb];}[_0x490711(0x1f6)];static get[_0x490711(0x222)](){const _0x31fe91=_0x490711;return _0x31fe91(0x201);}static get[_0x490711(0x1fe)](){return!0x0;}static get[_0x490711(0x203)](){return!0x0;}constructor(_0x261739){const _0x8a35af=_0x490711;super(_0x261739);const _0x49d6e6=this[_0x8a35af(0x215)][_0x8a35af(0x20a)][_0x8a35af(0x208)](_0x8a35af(0x212));this[_0x8a35af(0x1f6)]=new _0x5e6d11(this[_0x8a35af(0x215)][_0x8a35af(0x1f9)],_0x49d6e6[_0x8a35af(0x213)]),this[_0x8a35af(0x1f6)][_0x8a35af(0x20d)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x49d6e6[_0x8a35af(0x1fd)][_0x8a35af(0x206)]({'id':_0x8a35af(0x207),'buttonLabel':_0x49e044(this[_0x8a35af(0x215)][_0x8a35af(0x1f9)],_0x8a35af(0x1fa)),'buttonIcon':_0x58ee22,'order':0x0,'content':this[_0x8a35af(0x1f6)]});}[_0x490711(0x205)](_0xbcabec){const _0x5cbdac=_0x490711;this[_0x5cbdac(0x1f6)][_0x5cbdac(0x205)](_0xbcabec);}[_0x490711(0x21b)](_0x4f3d2d){const _0x2a6793=_0x490711;this[_0x2a6793(0x1f6)][_0x2a6793(0x20e)](_0x4f3d2d);}[_0x490711(0x1f8)](_0x5cfab0,_0x1e6074){const _0x4a1b41=_0x490711;this[_0x4a1b41(0x1f6)][_0x4a1b41(0x1f8)](_0x5cfab0,_0x1e6074);}[_0x490711(0x21c)](_0xe5152c,_0x5c6b5d,_0x459a40){const _0x14b2c1=_0x490711;this[_0x14b2c1(0x1f6)][_0x14b2c1(0x21c)](_0xe5152c,_0x5c6b5d,_0x459a40);}[_0x490711(0x1ff)](_0x4b56f7){const _0x5b8e20=_0x490711;this[_0x5b8e20(0x1f6)][_0x5b8e20(0x221)]=_0x4b56f7;}[_0x490711(0x1f5)](_0x476250){const _0x1f809c=_0x490711;this[_0x1f809c(0x1f6)][_0x1f809c(0x1f7)]=_0x476250;}[_0x490711(0x200)](){const _0x4ac139=_0x490711;this[_0x4ac139(0x1f6)][_0x4ac139(0x1f7)]='';}[_0x490711(0x21d)](_0x3ac7bd){const _0x5354d3=_0x490711;this[_0x5354d3(0x1f6)][_0x5354d3(0x21f)]=_0x3ac7bd;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x252fba=_0x3d3b;(function(_0x33e005,_0x4fa811){const _0x1d5dd5=_0x3d3b,_0x457dff=_0x33e005();while(!![]){try{const _0x3fc266=-parseInt(_0x1d5dd5(0xe6))/0x1*(parseInt(_0x1d5dd5(0xf0))/0x2)+parseInt(_0x1d5dd5(0x105))/0x3+parseInt(_0x1d5dd5(0xf4))/0x4+parseInt(_0x1d5dd5(0xf2))/0x5+parseInt(_0x1d5dd5(0x100))/0x6*(parseInt(_0x1d5dd5(0xe1))/0x7)+-parseInt(_0x1d5dd5(0xf8))/0x8*(parseInt(_0x1d5dd5(0xf7))/0x9)+-parseInt(_0x1d5dd5(0x10b))/0xa*(parseInt(_0x1d5dd5(0xe5))/0xb);if(_0x3fc266===_0x4fa811)break;else _0x457dff['push'](_0x457dff['shift']());}catch(_0x43ba79){_0x457dff['push'](_0x457dff['shift']());}}}(_0x4295,0xc3144));import{EmitterMixin as _0x4218e9}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x17cdef}from'./aichathistoryitem.js';function _0x3d3b(_0x495beb,_0x1ca71d){const _0x4295db=_0x4295();return _0x3d3b=function(_0x3d3bf7,_0x1eed97){_0x3d3bf7=_0x3d3bf7-0xe0;let _0x3139b3=_0x4295db[_0x3d3bf7];return _0x3139b3;},_0x3d3b(_0x495beb,_0x1ca71d);}export class AIChatHistoryConversations extends _0x4218e9(){[_0x252fba(0xfc)]=[];[_0x252fba(0x103)];[_0x252fba(0xf3)];constructor({connector:_0x424620,group:_0x135003}){const _0x5496c7=_0x252fba;super(),this[_0x5496c7(0x103)]=_0x424620,this[_0x5496c7(0xf3)]=_0x135003;}async[_0x252fba(0xf6)](){const _0x4dd21b=_0x252fba;try{const _0x5e792f=this[_0x4dd21b(0x103)][_0x4dd21b(0xe8)](this[_0x4dd21b(0xf3)]),_0x47ef28=await _0x5e792f[_0x4dd21b(0xed)]();this[_0x4dd21b(0xfa)](_0x47ef28);}catch(_0x3c8e88){this[_0x4dd21b(0xea)](_0x4dd21b(0xfe),{'error':_0x3c8e88,'operation':_0x4dd21b(0xf6)});}}[_0x252fba(0xfb)](_0x14dc46){const _0xf7157a=_0x252fba;this[_0xf7157a(0xfc)][_0xf7157a(0x109)](_0x14dc46);}async[_0x252fba(0xef)](_0x28fffd){const _0x19a9fb=_0x252fba,_0x5b6ef3=this[_0x19a9fb(0xfc)][_0x19a9fb(0xff)](_0x49b830=>_0x49b830['id']===_0x28fffd);if(-0x1===_0x5b6ef3)return!0x1;try{return await this[_0x19a9fb(0x103)][_0x19a9fb(0xeb)](_0x28fffd)[_0x19a9fb(0xf1)](),this[_0x19a9fb(0xfc)][_0x19a9fb(0x10c)](_0x5b6ef3,0x1),this[_0x19a9fb(0xea)](_0x19a9fb(0xee),{'itemId':_0x28fffd}),!0x0;}catch(_0x171f0a){return this[_0x19a9fb(0xea)](_0x19a9fb(0xfe),{'error':_0x171f0a,'operation':_0x19a9fb(0xef),'itemId':_0x28fffd}),!0x1;}}[_0x252fba(0xe4)](_0x5f5070){const _0x1b5bec=_0x252fba;return this[_0x1b5bec(0xfc)][_0x1b5bec(0x101)](_0x2f214a=>_0x2f214a['id']===_0x5f5070);}async[_0x252fba(0x10d)](_0x479523,_0xec7155){const _0xcb8b27=_0x252fba,_0x332b4a=this[_0xcb8b27(0xe4)](_0x479523);if(!_0x332b4a)return!0x1;try{return await this[_0xcb8b27(0x103)][_0xcb8b27(0xe3)](_0x479523,{'title':_0xec7155})[_0xcb8b27(0xf5)](),_0x332b4a[_0xcb8b27(0x108)](_0xec7155),this[_0xcb8b27(0xea)](_0xcb8b27(0x104),{'itemId':_0x479523,'updates':{'title':_0xec7155}}),!0x0;}catch(_0x8b11f4){return this[_0xcb8b27(0xea)](_0xcb8b27(0xfe),{'error':_0x8b11f4,'operation':_0xcb8b27(0x10d),'itemId':_0x479523}),!0x1;}}async[_0x252fba(0x10e)](_0xb70d82,_0x20c0bf){const _0x1931d4=_0x252fba,_0x5d05f9=this[_0x1931d4(0xe4)](_0xb70d82);if(!_0x5d05f9)return!0x1;try{return await this[_0x1931d4(0x103)][_0x1931d4(0xe3)](_0xb70d82,{'pinned':_0x20c0bf})[_0x1931d4(0xf5)](),_0x5d05f9[_0x1931d4(0xe7)](_0x20c0bf),this[_0x1931d4(0xea)](_0x1931d4(0x104),{'itemId':_0xb70d82,'updates':{'pinned':_0x20c0bf}}),!0x0;}catch(_0x6e4b2){return this[_0x1931d4(0xea)](_0x1931d4(0xfe),{'error':_0x6e4b2,'operation':_0x1931d4(0x10e),'itemId':_0xb70d82}),!0x1;}}[_0x252fba(0xfa)](_0x3baf29){const _0x323f91=_0x252fba;try{this[_0x323f91(0xfc)]=[],_0x3baf29[_0x323f91(0xe0)](_0x3c3662=>{const _0x1e0ebe=_0x323f91;this[_0x1e0ebe(0xfb)](new _0x17cdef(_0x3c3662));}),this[_0x323f91(0xea)](_0x323f91(0x10a),{'items':[...this[_0x323f91(0xfc)]]});}catch(_0x448081){this[_0x323f91(0xea)](_0x323f91(0xfe),{'error':_0x448081,'operation':_0x323f91(0xfa)});}}[_0x252fba(0x102)](_0x1431bc={}){const _0x55af92=_0x252fba,_0x1b9f9c=void 0x0!==_0x1431bc[_0x55af92(0xf9)]&&_0x1431bc[_0x55af92(0xf9)],_0x47290f=_0x1431bc[_0x55af92(0xfd)]?new Date(_0x1431bc[_0x55af92(0xfd)][_0x55af92(0xec)](),_0x1431bc[_0x55af92(0xfd)][_0x55af92(0xe2)](),_0x1431bc[_0x55af92(0xfd)][_0x55af92(0x10f)]()):null,_0x11b904=_0x1431bc['to']?new Date(_0x1431bc['to'][_0x55af92(0xec)](),_0x1431bc['to'][_0x55af92(0xe2)](),_0x1431bc['to'][_0x55af92(0x10f)]()):null;return this[_0x55af92(0xfc)][_0x55af92(0xe9)](_0x4250fa=>{const _0x19194b=_0x55af92;if(_0x4250fa[_0x19194b(0xf9)]!==_0x1b9f9c)return!0x1;if(_0x11b904){const _0x32cbf0=new Date(_0x4250fa[_0x19194b(0x107)][_0x19194b(0xec)](),_0x4250fa[_0x19194b(0x107)][_0x19194b(0xe2)](),_0x4250fa[_0x19194b(0x107)][_0x19194b(0x10f)]());return _0x47290f?_0x47290f[_0x19194b(0x106)]()===_0x11b904[_0x19194b(0x106)]()?_0x32cbf0[_0x19194b(0x106)]()===_0x47290f[_0x19194b(0x106)]():_0x32cbf0<_0x11b904&&_0x32cbf0>=_0x47290f:_0x32cbf0<_0x11b904;}return!0x0;});}}function _0x4295(){const _0x278807=['getTime','createdAt','updateTitle','push','itemsLoaded','40QtzArB','splice','updateItemTitle','updateItemPinned','getDate','map','10664521ZzPdwR','getMonth','updateConversation','getItem','1925033rXzoDU','131173mLnpnX','updatePinned','fetchConversations','filter','fire','deleteConversation','getFullYear','getConversations','itemRemoved','removeItem','14PBKQPe','execute','1426640jHjZqm','group','2727056doquII','getResult','init','590697hkxLwh','88zJYFwT','pinned','loadItems','addItem','items','from','error','findIndex','6AWIYyB','find','getItems','connector','itemUpdated','1945905bYrPAg'];_0x4295=function(){return _0x278807;};return _0x4295();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x588555=_0x3694;(function(_0x5ba566,_0x4a35be){var _0x148296=_0x3694,_0x4bc39d=_0x5ba566();while(!![]){try{var _0x103b47=-parseInt(_0x148296(0x186))/0x1+parseInt(_0x148296(0x18a))/0x2*(parseInt(_0x148296(0x18e))/0x3)+-parseInt(_0x148296(0x188))/0x4*(-parseInt(_0x148296(0x183))/0x5)+parseInt(_0x148296(0x18b))/0x6+-parseInt(_0x148296(0x187))/0x7+parseInt(_0x148296(0x182))/0x8*(-parseInt(_0x148296(0x190))/0x9)+parseInt(_0x148296(0x18f))/0xa;if(_0x103b47===_0x4a35be)break;else _0x4bc39d['push'](_0x4bc39d['shift']());}catch(_0x146fd0){_0x4bc39d['push'](_0x4bc39d['shift']());}}}(_0x5747,0x3d113));function _0x3694(_0x4e20a0,_0x4f95d5){var _0x5747e7=_0x5747();return _0x3694=function(_0x3694f5,_0x5d80b9){_0x3694f5=_0x3694f5-0x182;var _0x56bfef=_0x5747e7[_0x3694f5];return _0x56bfef;},_0x3694(_0x4e20a0,_0x4f95d5);}import{ObservableMixin as _0x198e49}from'ckeditor5/src/utils.js';import{escape as _0x556f4e}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x198e49(){['id'];[_0x588555(0x192)];constructor({id:_0x2a3dff,title:_0x2001c1,createdAt:_0x2738e4,updatedAt:_0x16b263,pinned:_0x36f956}){var _0x4a3cdc=_0x588555;super(),this['id']=_0x2a3dff,this[_0x4a3cdc(0x192)]=new Date(_0x2738e4),this[_0x4a3cdc(0x18d)](_0x4a3cdc(0x184),_0x2001c1),this[_0x4a3cdc(0x18d)](_0x4a3cdc(0x189),_0x16b263?new Date(_0x16b263):null),this[_0x4a3cdc(0x18d)](_0x4a3cdc(0x18c),_0x36f956||!0x1);}[_0x588555(0x191)](_0x283618){var _0x175c6f=_0x588555;this[_0x175c6f(0x18d)](_0x175c6f(0x184),_0x556f4e(_0x283618)),this[_0x175c6f(0x189)]=new Date();}[_0x588555(0x185)](_0x514038){var _0xb642ef=_0x588555;this[_0xb642ef(0x18d)](_0xb642ef(0x18c),_0x514038),this[_0xb642ef(0x189)]=new Date();}}function _0x5747(){var _0xead614=['34908epehuk','8651880OIeBAm','1494864Ybehto','updateTitle','createdAt','24KqVucL','564275wbraBq','title','updatePinned','161226OsZJFL','3337754uBmIky','4FieRgk','updatedAt','12piqrIx','2031648xKwVOo','pinned','set'];_0x5747=function(){return _0xead614;};return _0x5747();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
function _0x4ba1(){const _0x4fa64c=['addMany','listitem','bindTemplate','actions','987465BiVqOV','_createSpinnerView','ck-confirm-view-cancel','selectConversation','isOn','panelPosition','AI_CHAT_HISTORY_LOADING_UNPINNING','ck-ai-chat-history__item-row','AI_CHAT_HISTORY_EDIT_NAME','highlightText','change:isEdit','ck-ai-chat-history__item-title','withText','label','_createEditInputView','ck-ai-chat-history__item--active','click','ck-confirm-view-submit','clear','match','ck-ai-chat-history__item-content','showConfirm','ck-ai-chat-history__item-date','AI_CHAT_HISTORY_CANCEL','createCollection','value','_createAcceptEditButtonView','loadingState','_createCheckView','removeConversation','div','_titleView','tiny','LOADING_LABELS','AI_CHAT_HISTORY_LOADING_REMOVING','isMatching','buttonView','AI_CHAT_HISTORY_LOADING_PINNING','14353510PkkqaP','isEdit','setTemplate','1403855WldpBw','ck-ai-chat-history__item-check','key','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','_commitEditInputValue','execute','AI_CHAT_HISTORY_REMOVE','ck-ai-chat-history__item-actions','390970XvOiWu','2057384SEnhfj','AI_CHAT_HISTORY_ACCEPT','then','_createPinButtonView','ck-ai-loader__text','3xxIMMR','panelView','edit:cancel','editConversationTitle','children','35pCtqyb','ck-ai-chat-history__item--edit','focus','_createMenuDropdownView','set','updateTitle','mainContent','items','pinned','ck-ai-loader','string','extendTemplate','fire','text','AI_CHAT_HISTORY_PIN_BUTTON','locale','bind','element','AI_CHAT_HISTORY_LOADING_RENAMING','ck-hidden','_createCancelEditButtonView','isVisible','4840326aIXuIW','ck-ai-chat-history__item','ck-ai-chat-history__item-check-container','span','add','updateLoadingState','18IqgBlk','AI_CHAT_HISTORY_REMOVE_CONFIRM','setConversationPinned','781624CrsaPI','Enter','ck-ai-chat-history__item-main-content'];_0x4ba1=function(){return _0x4fa64c;};return _0x4ba1();}const _0x1050f8=_0x37fe;(function(_0x307db2,_0x1f51af){const _0x23be0d=_0x37fe,_0x2625d9=_0x307db2();while(!![]){try{const _0x4dc11e=parseInt(_0x23be0d(0xdf))/0x1+-parseInt(_0x23be0d(0xe7))/0x2*(parseInt(_0x23be0d(0xed))/0x3)+-parseInt(_0x23be0d(0xe8))/0x4+parseInt(_0x23be0d(0xb6))/0x5*(parseInt(_0x23be0d(0xac))/0x6)+-parseInt(_0x23be0d(0xf2))/0x7*(-parseInt(_0x23be0d(0xaf))/0x8)+parseInt(_0x23be0d(0xa6))/0x9+-parseInt(_0x23be0d(0xdc))/0xa;if(_0x4dc11e===_0x1f51af)break;else _0x2625d9['push'](_0x2625d9['shift']());}catch(_0x1258c2){_0x2625d9['push'](_0x2625d9['shift']());}}}(_0x4ba1,0xd63a9));import{ListItemView as _0x4f670a,HighlightedTextView as _0x37c513,ButtonView as _0x2517ca,ListView as _0x11135e,IconView as _0x26effb,createDropdown as _0x5c59e4,InputTextView as _0x185e37}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x55b221,IconPin as _0x3a884a,IconCheck as _0x28653f,IconCancel as _0x2cab3a}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x3c00ce,ConfirmMixin as _0x2d8e91}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x3259a1}from'es-toolkit/compat';function _0x37fe(_0x253246,_0x342bf9){const _0x4ba18e=_0x4ba1();return _0x37fe=function(_0x37fe26,_0x28ad4e){_0x37fe26=_0x37fe26-0x9e;let _0x4b6e59=_0x4ba18e[_0x37fe26];return _0x4b6e59;},_0x37fe(_0x253246,_0x342bf9);}import{AISpinnerView as _0x276105}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x181405}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2d8e91(_0x4f670a){['id'];static [_0x1050f8(0xd7)]={'remove':_0x1050f8(0xd8),'rename':_0x1050f8(0xa2),'pin':_0x1050f8(0xdb),'unpin':_0x1050f8(0xbc)};[_0x1050f8(0xb5)];[_0x1050f8(0xf8)];[_0x1050f8(0xd5)];constructor(_0x237795,_0x53e84d){const _0x5f3763=_0x1050f8;super(_0x237795);const _0x6fee85=this[_0x5f3763(0xb4)];this[_0x5f3763(0xf6)](_0x5f3763(0xdd),!0x1),this[_0x5f3763(0xf6)](_0x5f3763(0xa5),!0x0),this[_0x5f3763(0xf6)](_0x5f3763(0xfa),!!_0x53e84d[_0x5f3763(0xfa)]),this[_0x5f3763(0xf6)](_0x5f3763(0xd1),null),this['id']=_0x53e84d['id'];const {title:_0x3e2565,createdAt:_0x281706,active:_0x14e4f8=!0x1}=_0x53e84d;this[_0x5f3763(0xd5)]=new _0x37c513(),this[_0x5f3763(0xd5)][_0x5f3763(0xff)]=_0x3e2565,this[_0x5f3763(0xd5)][_0x5f3763(0xfd)]({'attributes':{'class':[_0x5f3763(0xc1)]}});const _0x262cc0=this[_0x5f3763(0xd2)](),_0x820975=this[_0x5f3763(0xeb)](_0x237795),_0x288e20=this[_0x5f3763(0xf5)](),_0x4b8f2b=this[_0x5f3763(0xc4)](_0x237795,_0x3e2565),_0x329ab6=this[_0x5f3763(0xd0)](_0x237795,_0x4b8f2b),_0x1f04fa=this[_0x5f3763(0xa4)](_0x237795,_0x4b8f2b);this[_0x5f3763(0xb5)]=this[_0x5f3763(0xce)](),this[_0x5f3763(0xf8)]=this[_0x5f3763(0xce)](),this[_0x5f3763(0xf8)][_0x5f3763(0xaa)](this[_0x5f3763(0xd5)]),this[_0x5f3763(0xb5)][_0x5f3763(0xaa)](_0x820975),this[_0x5f3763(0xb5)][_0x5f3763(0xaa)](_0x288e20),this['on'](_0x5f3763(0xc0),(_0x13ea12,_0x20442a,_0x1d7bbc)=>{const _0xbbcdeb=_0x5f3763;this[_0xbbcdeb(0xb5)][_0xbbcdeb(0xc8)](),this[_0xbbcdeb(0xf8)][_0xbbcdeb(0xc8)](),_0x1d7bbc?(this[_0xbbcdeb(0xb5)][_0xbbcdeb(0xaa)](_0x329ab6),this[_0xbbcdeb(0xb5)][_0xbbcdeb(0xaa)](_0x1f04fa),this[_0xbbcdeb(0xf8)][_0xbbcdeb(0xaa)](_0x4b8f2b),_0x4b8f2b[_0xbbcdeb(0xa1)][_0xbbcdeb(0xf4)]()):(this[_0xbbcdeb(0xb5)][_0xbbcdeb(0xaa)](_0x820975),this[_0xbbcdeb(0xb5)][_0xbbcdeb(0xaa)](_0x288e20),this[_0xbbcdeb(0xf8)][_0xbbcdeb(0xaa)](this[_0xbbcdeb(0xd5)]));}),this[_0x5f3763(0xde)]({'tag':'li','attributes':{'class':[_0x5f3763(0xa7),_0x14e4f8?_0x5f3763(0xc5):'',_0x6fee85['if'](_0x5f3763(0xa5),_0x5f3763(0xa3),_0x55d9f1=>!_0x55d9f1),_0x6fee85['if'](_0x5f3763(0xdd),_0x5f3763(0xf3))],'role':_0x5f3763(0xb3)},'children':[{'tag':_0x5f3763(0xa9),'attributes':{'class':[_0x5f3763(0xa8)]},'children':[{'tag':_0x5f3763(0xd4),'attributes':{'class':[_0x5f3763(0xe0),_0x6fee85['if'](_0x5f3763(0xd1),_0x5f3763(0xa3),_0x2af3d6=>!!_0x2af3d6)]},'children':_0x14e4f8?[_0x262cc0]:[]},{'tag':_0x5f3763(0xd4),'attributes':{'class':[_0x5f3763(0xfb),_0x6fee85['if'](_0x5f3763(0xd1),_0x5f3763(0xa3),_0x4f674a=>!_0x4f674a)]},'children':[this[_0x5f3763(0xb7)]()]}]},{'tag':_0x5f3763(0xd4),'attributes':{'class':[_0x5f3763(0xbd)]},'children':[{'tag':_0x5f3763(0xd4),'attributes':{'class':[_0x5f3763(0xca)]},'on':{'click':this[_0x5f3763(0xb4)]['to'](_0x5f3763(0xc6))},'children':[{'tag':_0x5f3763(0xd4),'attributes':{'class':[_0x5f3763(0xb1)]},'children':[{'tag':_0x5f3763(0xd4),'attributes':{'class':[_0x5f3763(0xc1),_0x6fee85['if'](_0x5f3763(0xd1),_0x5f3763(0xa3),_0x6b4389=>!!_0x6b4389)]},'children':this[_0x5f3763(0xf8)]},{'tag':_0x5f3763(0xd4),'attributes':{'class':[_0x5f3763(0xec),_0x6fee85['if'](_0x5f3763(0xd1),_0x5f3763(0xa3),_0xd70cf4=>!_0xd70cf4)]},'children':[{'text':_0x6fee85['to'](_0x5f3763(0xd1),_0x5cc238=>_0x5cc238?_0x181405(this[_0x5f3763(0x9f)],AIChatHistoryListItemView[_0x5f3763(0xd7)][_0x5cc238]):'')}]}]},{'tag':_0x5f3763(0xa9),'attributes':{'class':[_0x5f3763(0xcc)]},'children':[_0x281706]}]},{'tag':_0x5f3763(0xd4),'attributes':{'class':[_0x5f3763(0xe6)]},'children':this[_0x5f3763(0xb5)]}]}]}),this['on'](_0x5f3763(0xc6),()=>{const _0x5234fc=_0x5f3763;this[_0x5234fc(0xdd)]||this[_0x5234fc(0xfe)](_0x5234fc(0xb9),{'id':this['id']});});}[_0x1050f8(0xf7)](_0xcc847b){const _0x1b181a=_0x1050f8;this[_0x1b181a(0xd5)][_0x1b181a(0xff)]=_0x3259a1(_0xcc847b);}[_0x1050f8(0xab)](_0x4714d7,_0x4a484c){const _0x43386d=_0x1050f8;this[_0x43386d(0xf6)](_0x43386d(0xd1),_0x4a484c?_0x4714d7:null);}[_0x1050f8(0xd2)](){const _0x3259cd=_0x1050f8,_0x987032=new _0x26effb();return _0x987032[_0x3259cd(0xf6)]({'content':_0x28653f}),_0x987032;}[_0x1050f8(0xeb)](_0x21b904){const _0x5eb83e=_0x1050f8,_0x52cf5b=new _0x2517ca(_0x21b904);return _0x52cf5b[_0x5eb83e(0xf6)]({'label':_0x181405(_0x21b904,_0x5eb83e(0x9e)),'icon':_0x3a884a,'withText':!0x1,'tooltip':!0x0}),_0x52cf5b[_0x5eb83e(0xa0)](_0x5eb83e(0xba))['to'](this,_0x5eb83e(0xfa)),_0x52cf5b['on'](_0x5eb83e(0xe4),()=>{const _0x3d57a5=_0x5eb83e,_0x5954bf=!this[_0x3d57a5(0xfa)];this[_0x3d57a5(0xfe)](_0x3d57a5(0xae),{'id':this['id'],'pinned':_0x5954bf});}),_0x52cf5b;}[_0x1050f8(0xf5)](){const _0x4f4713=_0x1050f8,_0x21af0a=_0x5c59e4(this[_0x4f4713(0x9f)],_0x3c00ce),_0x30e1bd=_0x21af0a[_0x4f4713(0xee)][_0x4f4713(0xf1)];_0x21af0a[_0x4f4713(0xda)][_0x4f4713(0xf6)]({'label':_0x181405(this[_0x4f4713(0x9f)],_0x4f4713(0xe2)),'icon':_0x55b221}),_0x21af0a[_0x4f4713(0xbb)]='sw';const _0x3fa7f4=new _0x2517ca(this[_0x4f4713(0x9f)]);_0x3fa7f4[_0x4f4713(0xc3)]=_0x181405(this[_0x4f4713(0x9f)],_0x4f4713(0xbe)),_0x3fa7f4[_0x4f4713(0xc2)]=!0x0,_0x3fa7f4['on'](_0x4f4713(0xe4),()=>{const _0x5e0cc8=_0x4f4713;this[_0x5e0cc8(0xdd)]=!0x0;});const _0x29a934=new _0x2517ca(this[_0x4f4713(0x9f)]);_0x29a934[_0x4f4713(0xc3)]=_0x181405(this[_0x4f4713(0x9f)],_0x4f4713(0xe5)),_0x29a934[_0x4f4713(0xc2)]=!0x0,_0x29a934['on'](_0x4f4713(0xe4),()=>{const _0x52d912=_0x4f4713;this[_0x52d912(0xcb)](_0x181405(this[_0x52d912(0x9f)],_0x52d912(0xad)),this[_0x52d912(0xa1)])[_0x52d912(0xea)](()=>{const _0x49a6e3=_0x52d912;this[_0x49a6e3(0xfe)](_0x49a6e3(0xd3),{'id':this['id']});});});const _0x5669f8=new _0x11135e(this[_0x4f4713(0x9f)]),_0x1e62c9=new _0x4f670a(this[_0x4f4713(0x9f)]);_0x1e62c9[_0x4f4713(0xf1)][_0x4f4713(0xaa)](_0x3fa7f4);const _0x448b12=new _0x4f670a(this[_0x4f4713(0x9f)]);return _0x448b12[_0x4f4713(0xf1)][_0x4f4713(0xaa)](_0x29a934),_0x5669f8[_0x4f4713(0xf9)][_0x4f4713(0xb2)]([_0x1e62c9,_0x448b12]),_0x30e1bd[_0x4f4713(0xaa)](_0x5669f8),_0x21af0a;}[_0x1050f8(0xc4)](_0x2bad98,_0x37de73){const _0x1dd377=_0x1050f8,_0x2e4ba5=new _0x185e37(_0x2bad98),_0x266aa8=_0x2e4ba5[_0x1dd377(0xb4)];return _0x2e4ba5[_0x1dd377(0xcf)]=_0x37de73,_0x2e4ba5[_0x1dd377(0xfd)]({'on':{'keydown':_0x266aa8['to'](_0x4184eb=>{const _0x827ef3=_0x1dd377;_0x827ef3(0xb0)==_0x4184eb[_0x827ef3(0xe1)]&&this[_0x827ef3(0xe3)](_0x2e4ba5);})}}),_0x2e4ba5;}[_0x1050f8(0xd0)](_0x12a0aa,_0x3fb377){const _0x3b7217=_0x1050f8,_0x3d8828=new _0x2517ca(_0x12a0aa);return _0x3d8828[_0x3b7217(0xf6)]({'icon':_0x28653f,'withText':!0x1,'tooltip':_0x181405(_0x12a0aa,_0x3b7217(0xe9))}),_0x3d8828[_0x3b7217(0xfd)]({'attributes':{'class':[_0x3b7217(0xc7)]}}),_0x3d8828['on'](_0x3b7217(0xe4),()=>{const _0x115a84=_0x3b7217;this[_0x115a84(0xe3)](_0x3fb377);}),_0x3d8828;}[_0x1050f8(0xe3)](_0x5d48c4){const _0x1a28a3=_0x1050f8,_0x37a689=_0x5d48c4[_0x1a28a3(0xa1)][_0x1a28a3(0xcf)]||'';this[_0x1a28a3(0xd5)][_0x1a28a3(0xff)]=_0x37a689,this[_0x1a28a3(0xdd)]=!0x1,this[_0x1a28a3(0xfe)](_0x1a28a3(0xf0),{'id':this['id'],'title':_0x37a689});}[_0x1050f8(0xa4)](_0x4963eb,_0x360539){const _0x5ac68e=_0x1050f8,_0x4e7458=new _0x2517ca(_0x4963eb);return _0x4e7458[_0x5ac68e(0xf6)]({'icon':_0x2cab3a,'withText':!0x1,'tooltip':_0x181405(_0x4963eb,_0x5ac68e(0xcd))}),_0x4e7458[_0x5ac68e(0xfd)]({'attributes':{'class':[_0x5ac68e(0xb8)]}}),_0x4e7458['on'](_0x5ac68e(0xe4),()=>{const _0x17c2dc=_0x5ac68e;this[_0x17c2dc(0xdd)]=!0x1,_0x360539[_0x17c2dc(0xcf)]=this[_0x17c2dc(0xd5)][_0x17c2dc(0xff)]||'',this[_0x17c2dc(0xfe)](_0x17c2dc(0xef));}),_0x4e7458;}[_0x1050f8(0xb7)](){const _0x55d6ed=_0x1050f8,_0x27a9b4=new _0x276105(_0x55d6ed(0xd6));return _0x27a9b4[_0x55d6ed(0xa5)]=!0x0,_0x27a9b4;}[_0x1050f8(0xd9)](_0x521e8e){const _0x1bd8b9=_0x1050f8;return this[_0x1bd8b9(0xd5)]&&_0x1bd8b9(0xfc)==typeof this[_0x1bd8b9(0xd5)][_0x1bd8b9(0xff)]&&this[_0x1bd8b9(0xd5)][_0x1bd8b9(0xff)][_0x1bd8b9(0xc9)](_0x521e8e)?{'title':!0x0}:null;}[_0x1050f8(0xbf)](_0x3f2b12){const _0x3e9207=_0x1050f8;this[_0x3e9207(0xd5)][_0x3e9207(0xbf)](_0x3f2b12);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11fa59=_0x3e8a;function _0x47bb(){const _0x2fc822=['18FxSmsW','3930632dcaFel','highlightText','54856LqCYuy','indexOf','filter','getItem','isMatching','1781mFHNCx','9529170foQCeE','itemsViews','addMany','div','bindTemplate','ck-hidden','set','3059034pEMDYq','removeItem','items','ck-ai-chat-history__section','ck-ai-chat-history__section-title','_itemsListView','setTemplate','length','isVisible','splice','remove','find','title','2752884gYmGyS','15rCLoGb','438vOmLjc','292aunTuo','38941lTNhCf'];_0x47bb=function(){return _0x2fc822;};return _0x47bb();}function _0x3e8a(_0x239ae1,_0x3efbdf){const _0x47bb94=_0x47bb();return _0x3e8a=function(_0x3e8a85,_0x33b819){_0x3e8a85=_0x3e8a85-0x73;let _0xed23a3=_0x47bb94[_0x3e8a85];return _0xed23a3;},_0x3e8a(_0x239ae1,_0x3efbdf);}(function(_0x2a29f8,_0x1731ef){const _0x3924bf=_0x3e8a,_0x3b5a51=_0x2a29f8();while(!![]){try{const _0x56fce1=parseInt(_0x3924bf(0x92))/0x1*(-parseInt(_0x3924bf(0x88))/0x2)+parseInt(_0x3924bf(0x85))/0x3+parseInt(_0x3924bf(0x8d))/0x4*(-parseInt(_0x3924bf(0x86))/0x5)+-parseInt(_0x3924bf(0x87))/0x6*(-parseInt(_0x3924bf(0x89))/0x7)+parseInt(_0x3924bf(0x8b))/0x8*(parseInt(_0x3924bf(0x8a))/0x9)+-parseInt(_0x3924bf(0x93))/0xa+-parseInt(_0x3924bf(0x78))/0xb;if(_0x56fce1===_0x1731ef)break;else _0x3b5a51['push'](_0x3b5a51['shift']());}catch(_0x375e90){_0x3b5a51['push'](_0x3b5a51['shift']());}}}(_0x47bb,0xbd03e));import{ListItemView as _0x188d59,View as _0x556776,ListView as _0x402199}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x188d59{[_0x11fa59(0x84)];[_0x11fa59(0x94)];[_0x11fa59(0x7d)];constructor(_0x304fb4,{title:_0x242eec,items:_0x270a17}){const _0x4221e9=_0x11fa59;super(_0x304fb4);const _0x352fc8=this[_0x4221e9(0x75)];this[_0x4221e9(0x77)](_0x4221e9(0x80),!0x0),this[_0x4221e9(0x84)]=_0x242eec,this[_0x4221e9(0x94)]=_0x270a17;const _0x4b337a=new _0x556776(_0x304fb4);_0x4b337a[_0x4221e9(0x7e)]({'tag':_0x4221e9(0x74),'attributes':{'class':[_0x4221e9(0x7c)]},'children':[this[_0x4221e9(0x84)]]}),this[_0x4221e9(0x7d)]=new _0x402199(_0x304fb4),this[_0x4221e9(0x7d)][_0x4221e9(0x7a)][_0x4221e9(0x73)](this[_0x4221e9(0x94)]),this[_0x4221e9(0x7e)]({'tag':'li','attributes':{'class':[_0x4221e9(0x7b),_0x352fc8['if'](_0x4221e9(0x80),_0x4221e9(0x76),_0x18bc75=>!_0x18bc75)]},'children':[_0x4b337a,this[_0x4221e9(0x7d)]]});}[_0x11fa59(0x8f)](_0x185e66){const _0x438fe6=_0x11fa59,_0x2597a1=this[_0x438fe6(0x94)][_0x438fe6(0x7f)];let _0x3f4901=0x0;for(const _0x4aac90 of this[_0x438fe6(0x94)]){if(_0x185e66){const _0x2be4ac=_0x4aac90[_0x438fe6(0x91)](_0x185e66);_0x4aac90[_0x438fe6(0x80)]=!!_0x2be4ac,_0x4aac90[_0x438fe6(0x8c)](_0x185e66);}else _0x4aac90[_0x438fe6(0x80)]=!0x0,_0x4aac90[_0x438fe6(0x8c)](null);_0x4aac90[_0x438fe6(0x80)]&&_0x3f4901++;}return this[_0x438fe6(0x80)]=_0x3f4901>0x0,{'resultsCount':_0x3f4901,'totalItemsCount':_0x2597a1};}[_0x11fa59(0x90)](_0x557d7a){const _0x1a67c4=_0x11fa59;return this[_0x1a67c4(0x94)][_0x1a67c4(0x83)](_0x431d1e=>_0x431d1e['id']===_0x557d7a);}[_0x11fa59(0x79)](_0x5c4406){const _0x34ab69=_0x11fa59,_0x45f46a=this[_0x34ab69(0x94)][_0x34ab69(0x8e)](_0x5c4406);-0x1!==_0x45f46a&&(this[_0x34ab69(0x94)][_0x34ab69(0x81)](_0x45f46a,0x1),this[_0x34ab69(0x7d)][_0x34ab69(0x7a)][_0x34ab69(0x82)](_0x5c4406));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x493ca2=_0x5d0d;function _0x1784(){const _0x54d122=['items','1140376PFfbfz','sections','1699692dKPImi','12927803zKPRCZ','extendTemplate','filter','ck-ai-chat-history__sections','addMany','630985hjknEr','22494wTqWby','1798140UimhQv','594760GBFkBb'];_0x1784=function(){return _0x54d122;};return _0x1784();}function _0x5d0d(_0x7966a4,_0x2d1bd5){const _0x1784b5=_0x1784();return _0x5d0d=function(_0x5d0d5f,_0x2a5143){_0x5d0d5f=_0x5d0d5f-0x173;let _0x564fe1=_0x1784b5[_0x5d0d5f];return _0x564fe1;},_0x5d0d(_0x7966a4,_0x2d1bd5);}(function(_0x3af8c0,_0x5728e4){const _0x595461=_0x5d0d,_0xd02e69=_0x3af8c0();while(!![]){try{const _0x1a02e3=parseInt(_0x595461(0x17e))/0x1+-parseInt(_0x595461(0x173))/0x2+-parseInt(_0x595461(0x177))/0x3+-parseInt(_0x595461(0x175))/0x4+-parseInt(_0x595461(0x17d))/0x5+-parseInt(_0x595461(0x17f))/0x6+parseInt(_0x595461(0x178))/0x7;if(_0x1a02e3===_0x5728e4)break;else _0xd02e69['push'](_0xd02e69['shift']());}catch(_0x5a3d41){_0xd02e69['push'](_0xd02e69['shift']());}}}(_0x1784,0x47dfe));import{ListView as _0x152f9a}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x152f9a{[_0x493ca2(0x176)];constructor(_0x1e3145,_0x5c03df){const _0x44cc34=_0x493ca2;super(_0x1e3145),this[_0x44cc34(0x176)]=_0x5c03df,this[_0x44cc34(0x174)][_0x44cc34(0x17c)](this[_0x44cc34(0x176)]),this[_0x44cc34(0x179)]({'attributes':{'class':[_0x44cc34(0x17b)]}});}[_0x493ca2(0x17a)](_0x5d1ccd){const _0x2f7067=_0x493ca2;let _0x49beac=0x0,_0xb02d82=0x0;for(const _0x2d7536 of this[_0x2f7067(0x176)]){const {resultsCount:_0x3cf65f,totalItemsCount:_0x2362cc}=_0x2d7536[_0x2f7067(0x17a)](_0x5d1ccd);_0x49beac+=_0x3cf65f,_0xb02d82+=_0x2362cc;}return{'resultsCount':_0x49beac,'totalItemsCount':_0xb02d82};}}
|