@ckeditor/ckeditor5-ai 47.6.1-alpha.0 → 47.6.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/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/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/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.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/ui/aichatballoonview.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/aichatfeedcustomelementview.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/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.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/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.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/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.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/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.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/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.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
|
|
23
|
+
const _0x2b0a30=_0xf7a3;function _0xf7a3(_0x34d8d9,_0xf31cd9){const _0x439440=_0x4394();return _0xf7a3=function(_0xf7a3c5,_0x15a128){_0xf7a3c5=_0xf7a3c5-0xdc;let _0x51616f=_0x439440[_0xf7a3c5];return _0x51616f;},_0xf7a3(_0x34d8d9,_0xf31cd9);}(function(_0x52d0b4,_0x22ab7d){const _0x321649=_0xf7a3,_0x590c92=_0x52d0b4();while(!![]){try{const _0x57d206=parseInt(_0x321649(0xf4))/0x1+parseInt(_0x321649(0xf3))/0x2*(parseInt(_0x321649(0xdd))/0x3)+-parseInt(_0x321649(0xf8))/0x4+-parseInt(_0x321649(0xf5))/0x5+-parseInt(_0x321649(0xf7))/0x6*(parseInt(_0x321649(0xe5))/0x7)+-parseInt(_0x321649(0xe4))/0x8+parseInt(_0x321649(0xe6))/0x9*(parseInt(_0x321649(0xeb))/0xa);if(_0x57d206===_0x22ab7d)break;else _0x590c92['push'](_0x590c92['shift']());}catch(_0x307965){_0x590c92['push'](_0x590c92['shift']());}}}(_0x4394,0x24f68));import{EmitterMixin as _0x2ac77c}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x2ac77c(){[_0x2b0a30(0xe7)]=[];[_0x2b0a30(0xe1)]=!0x1;[_0x2b0a30(0xec)];async[_0x2b0a30(0xea)](_0x19ec40){const _0x1179f3=_0x2b0a30,_0x56f44=this[_0x1179f3(0xf6)](_0x19ec40);return this[_0x1179f3(0xe7)][_0x1179f3(0xef)](_0x56f44),this[_0x1179f3(0xdf)](),_0x56f44[_0x1179f3(0xe9)];}[_0x2b0a30(0xe8)](){const _0x51a5bf=_0x2b0a30;this[_0x51a5bf(0xe1)]&&(this[_0x51a5bf(0xec)][_0x51a5bf(0xe8)](),this[_0x51a5bf(0xec)]=void 0x0,this[_0x51a5bf(0xe7)]=[],this[_0x51a5bf(0xde)](_0x51a5bf(0xed)),this[_0x51a5bf(0xe1)]=!0x1);}get[_0x2b0a30(0xf2)](){const _0x4dc8bd=_0x2b0a30;return this[_0x4dc8bd(0xe7)][_0x4dc8bd(0xee)]||this[_0x4dc8bd(0xe1)]?new Promise(_0x2f8acf=>{const _0x19c2b9=_0x4dc8bd;this[_0x19c2b9(0xe3)](_0x19c2b9(0xed),()=>{_0x2f8acf();});}):Promise[_0x4dc8bd(0xdc)]();}async[_0x2b0a30(0xdf)](){const _0x45bf7f=_0x2b0a30;if(!this[_0x45bf7f(0xe1)]){this[_0x45bf7f(0xec)]=new AbortController(),this[_0x45bf7f(0xe1)]=!0x0;try{for(;this[_0x45bf7f(0xe7)][_0x45bf7f(0xee)]&&this[_0x45bf7f(0xe1)];){const _0xc7ae81=this[_0x45bf7f(0xe7)][_0x45bf7f(0xf1)]();try{await _0xc7ae81[_0x45bf7f(0xe2)](this[_0x45bf7f(0xec)][_0x45bf7f(0xf0)]),_0xc7ae81[_0x45bf7f(0xdc)]();}catch(_0xd35c8a){_0xc7ae81[_0x45bf7f(0xe0)](_0xd35c8a);}}}finally{this[_0x45bf7f(0xe1)]=!0x1,this[_0x45bf7f(0xec)]=void 0x0;}this[_0x45bf7f(0xde)](_0x45bf7f(0xed));}}[_0x2b0a30(0xf6)](_0x5d28b4){let _0x591dd2,_0x425de8;const _0x159484=new Promise((_0x3876f8,_0x1a2748)=>{_0x591dd2=_0x3876f8,_0x425de8=_0x1a2748;});return{'callback':_0x5d28b4,'resolve':_0x591dd2,'reject':_0x425de8,'completePromise':_0x159484};}}function _0x4394(){const _0x12658b=['fire','_processQueue','reject','isProcessing','callback','once','2163936KjHbye','489223faEYBg','3556377qEeduz','queue','abort','completePromise','enqueue','10ZXCNyg','_abortController','_queueEmpty','length','push','signal','shift','queueEmptyPromise','8NkhuoN','122410pTYNHu','49120silDsu','createTask','6UTEaSq','505576iNEOKT','resolve','82827KRPCVM'];_0x4394=function(){return _0x12658b;};return _0x4394();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2d1f28=_0x1982;(function(_0x1c7b88,_0x1253dd){var _0x3cd543=_0x1982,_0x362417=_0x1c7b88();while(!![]){try{var _0x36a20a=-parseInt(_0x3cd543(0x1c5))/0x1+parseInt(_0x3cd543(0x1ba))/0x2+parseInt(_0x3cd543(0x1c0))/0x3*(-parseInt(_0x3cd543(0x1be))/0x4)+-parseInt(_0x3cd543(0x1c1))/0x5*(-parseInt(_0x3cd543(0x1bb))/0x6)+-parseInt(_0x3cd543(0x1b9))/0x7*(-parseInt(_0x3cd543(0x1bc))/0x8)+-parseInt(_0x3cd543(0x1b8))/0x9+parseInt(_0x3cd543(0x1c4))/0xa;if(_0x36a20a===_0x1253dd)break;else _0x362417['push'](_0x362417['shift']());}catch(_0x14fa50){_0x362417['push'](_0x362417['shift']());}}}(_0x4f42,0xc0737));import{ContextPlugin as _0x21b644}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x2ef3f9}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x498a83}from'./aichathistoryui.js';function _0x1982(_0x1b42ed,_0xb8b87c){var _0x4f4266=_0x4f42();return _0x1982=function(_0x1982b2,_0x5e9b15){_0x1982b2=_0x1982b2-0x1b7;var _0x37e53d=_0x4f4266[_0x1982b2];return _0x37e53d;},_0x1982(_0x1b42ed,_0xb8b87c);}export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x21b644{static get[_0x2d1f28(0x1c2)](){return[_0x2ef3f9,_0x498a83];}static get[_0x2d1f28(0x1bd)](){var _0x3f94ea=_0x2d1f28;return _0x3f94ea(0x1bf);}static get[_0x2d1f28(0x1c3)](){return!0x0;}static get[_0x2d1f28(0x1b7)](){return!0x0;}}function _0x4f42(){var _0x535572=['11308815VuRTRy','552909FHeTse','812862TpVRNs','3353340wqDaUA','88BZKEcV','pluginName','298388WTzCOS','AIChatHistory','15aQyCaI','10GGOhEj','requires','isOfficialPlugin','10812230jQUCst','1056492YZsMoG','isPremiumPlugin'];_0x4f42=function(){return _0x535572;};return _0x4f42();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0xd9b9(_0x6568e7,_0x2ebfaa){const _0x14bdf2=_0x14bd();return _0xd9b9=function(_0xd9b96d,_0x52af2b){_0xd9b96d=_0xd9b96d-0x1d0;let _0x53e0e2=_0x14bdf2[_0xd9b96d];return _0x53e0e2;},_0xd9b9(_0x6568e7,_0x2ebfaa);}const _0x4507f1=_0xd9b9;function _0x14bd(){const _0x210ee5=['requires','updateItemPinned','map','loadItems','title','_setItemLoading','get','getMonth','_setIsMaximized','activateTab:history','itemId','AI_CHAT_HISTORY_CATEGORY_TODAY','setLoadingSkeleton','AI_CHAT_UNTITLED_CONVERSATION','resize','locale','removeHistoryItem','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','2126155vdbtiH','12isMtoW','itemsLoaded','rename','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','_handleHistoryErrorUI','getItem','_handleEditTitle','pluginName','getGroupId','_aiConnector','removeItem','9HLXocf','updates','setConversationPinned','unpin','1084797AuyqQH','pinned','plugins','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','resizedTabs','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','setDate','updateItems','remove','setIsMaximized','itemUpdated','4471552AFrHyd','loadConversation','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','init','getFullYear','_aiChatController','_updateHistoryItemsUI','error','_aiChatHistoryUi','itemRemoved','push','AIChatHistoryController','_handleTogglePin','openChat','AI_CHAT_HISTORY_CATEGORY_PINNED','removeConversation','view','isOfficialPlugin','3243258HIWeMd','activeConversation','_showConversationHistory','_generateErrorMessage','updateItemLoadingState','items','617203KoxDRN','editConversationTitle','showError','operation','length','handleRemovedConversation','context','isPremiumPlugin','AI_CHAT_HISTORY_ERROR_GENERIC','chat','_getCategorizedItems','selectConversation','AI_CHAT_HISTORY_PIN_ACTION','877428vKLwCW','_clearItemLoading','AI_CHAT_HISTORY_CATEGORY_LATER','listenTo','change:activeConversation','history','updateItemTitle','activateTab','618044MUXNEm','resizeTabs','_handleSelectConversation','getDate','getItems','pin','toLocaleDateString','createdAt','_handleRemove','AI_CHAT_HISTORY_UNPIN_ACTION'];_0x14bd=function(){return _0x210ee5;};return _0x14bd();}(function(_0x221bf1,_0x2a4f29){const _0x2a43b6=_0xd9b9,_0x436a4c=_0x221bf1();while(!![]){try{const _0x30aa50=-parseInt(_0x2a43b6(0x1e9))/0x1+-parseInt(_0x2a43b6(0x1f6))/0x2+parseInt(_0x2a43b6(0x226))/0x3*(parseInt(_0x2a43b6(0x1fe))/0x4)+-parseInt(_0x2a43b6(0x21a))/0x5*(-parseInt(_0x2a43b6(0x21b))/0x6)+parseInt(_0x2a43b6(0x22a))/0x7+parseInt(_0x2a43b6(0x1d0))/0x8+-parseInt(_0x2a43b6(0x1e3))/0x9;if(_0x30aa50===_0x2a4f29)break;else _0x436a4c['push'](_0x436a4c['shift']());}catch(_0x25532d){_0x436a4c['push'](_0x436a4c['shift']());}}}(_0x14bd,0x9552f));import{ContextPlugin as _0x28fc8c}from'ckeditor5/src/core.js';import{AIConnector as _0x1d6e7d}from'../aicore/aiconnector.js';import{AIChatController as _0x5823b2}from'../aichat/aichatcontroller.js';import{AITabs as _0x4b919e}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x3a22ab}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x1bd50d}from'./model/aichathistoryconversations.js';import{getTranslation as _0x5607d1}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x28fc8c{[_0x4507f1(0x224)];[_0x4507f1(0x1d9)];[_0x4507f1(0x1d6)];static get[_0x4507f1(0x208)](){return[_0x1d6e7d,_0x5823b2,_0x3a22ab,_0x4b919e];}static get[_0x4507f1(0x222)](){const _0x1dc3e3=_0x4507f1;return _0x1dc3e3(0x1dc);}static get[_0x4507f1(0x1e2)](){return!0x0;}static get[_0x4507f1(0x1f0)](){return!0x0;}[_0x4507f1(0x1d4)](){const _0x5c88e0=_0x4507f1;this[_0x5c88e0(0x224)]=this[_0x5c88e0(0x1ef)][_0x5c88e0(0x22c)][_0x5c88e0(0x20e)](_0x1d6e7d),this[_0x5c88e0(0x1d9)]=this[_0x5c88e0(0x1ef)][_0x5c88e0(0x22c)][_0x5c88e0(0x20e)](_0x3a22ab),this[_0x5c88e0(0x1d6)]=this[_0x5c88e0(0x1ef)][_0x5c88e0(0x22c)][_0x5c88e0(0x20e)](_0x5823b2);const _0x23e130=this[_0x5c88e0(0x1ef)][_0x5c88e0(0x22c)][_0x5c88e0(0x20e)](_0x4b919e);try{const _0x5d1240=this[_0x5c88e0(0x1d6)][_0x5c88e0(0x223)]();this[_0x5c88e0(0x1fb)]=new _0x1bd50d({'connector':this[_0x5c88e0(0x224)],'group':_0x5d1240}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1d9)],_0x5c88e0(0x1e0),(_0x5e7e7f,_0xc0fc1a)=>{const _0x29f0f3=_0x5c88e0;this[_0x29f0f3(0x20d)](_0xc0fc1a['id'],_0x29f0f3(0x232)),this[_0x29f0f3(0x206)](_0xc0fc1a['id']);}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1d9)],_0x5c88e0(0x1ea),(_0x22cdf1,_0x3fc804)=>{const _0x54e4c0=_0x5c88e0;this[_0x54e4c0(0x20d)](_0x3fc804['id'],_0x54e4c0(0x21d)),this[_0x54e4c0(0x221)](_0x3fc804['id'],_0x3fc804[_0x54e4c0(0x20c)]);}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1fb)],_0x5c88e0(0x234),(_0x396d4c,_0x13d90c)=>{const _0x1900fb=_0x5c88e0;void 0x0!==_0x13d90c[_0x1900fb(0x227)][_0x1900fb(0x20c)]&&this[_0x1900fb(0x1d9)][_0x1900fb(0x1fc)](_0x13d90c[_0x1900fb(0x212)],_0x13d90c[_0x1900fb(0x227)][_0x1900fb(0x20c)]),void 0x0!==_0x13d90c[_0x1900fb(0x227)][_0x1900fb(0x22b)]&&this[_0x1900fb(0x1d7)](),this[_0x1900fb(0x1f7)](_0x13d90c[_0x1900fb(0x212)]);}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1fb)],_0x5c88e0(0x1da),(_0x257214,_0x15cd5d)=>{const _0x459820=_0x5c88e0;this[_0x459820(0x1d6)][_0x459820(0x1ee)](_0x15cd5d[_0x459820(0x212)]),this[_0x459820(0x1d9)][_0x459820(0x218)](_0x15cd5d[_0x459820(0x212)]),this[_0x459820(0x1f7)](_0x15cd5d[_0x459820(0x212)]);}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1fb)],_0x5c88e0(0x21c),()=>{const _0xbf0604=_0x5c88e0;this[_0xbf0604(0x1d7)]();}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1fb)],_0x5c88e0(0x1d8),(_0x465ff7,_0x579252)=>{const _0x548439=_0x5c88e0;this[_0x548439(0x21f)](_0x579252[_0x548439(0x1d8)],_0x579252[_0x548439(0x1ec)],_0x579252[_0x548439(0x212)]);}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1d9)],_0x5c88e0(0x1f4),(_0x4ad1d3,_0x5ebae6)=>{const _0x45c1a7=_0x5c88e0;this[_0x45c1a7(0x200)](_0x5ebae6['id']);}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1d9)],_0x5c88e0(0x228),(_0xae6756,_0x37be3c)=>{const _0x462f60=_0x5c88e0,_0x317a88=_0x37be3c[_0x462f60(0x22b)]?_0x462f60(0x203):_0x462f60(0x229);this[_0x462f60(0x20d)](_0x37be3c['id'],_0x317a88),this[_0x462f60(0x1dd)](_0x37be3c['id'],_0x37be3c[_0x462f60(0x22b)]);}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1d9)],_0x5c88e0(0x1de),()=>{const _0x57b938=_0x5c88e0;_0x23e130[_0x57b938(0x1e1)][_0x57b938(0x1fd)](_0x57b938(0x1f2));}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1d6)],_0x5c88e0(0x1fa),()=>{const _0x3a0fa5=_0x5c88e0;this[_0x3a0fa5(0x1d7)]();}),_0x23e130[_0x5c88e0(0x1e1)]['on'](_0x5c88e0(0x211),()=>{const _0x110bfd=_0x5c88e0;this[_0x110bfd(0x1e5)]();}),this[_0x5c88e0(0x1f9)](_0x23e130,_0x5c88e0(0x22e),(_0x1926ce,_0x54e78e)=>{const _0x3721fb=_0x5c88e0;this[_0x3721fb(0x210)](_0x54e78e);}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1d9)],_0x5c88e0(0x1ff),()=>{const _0x4b53e2=_0x5c88e0;_0x23e130[_0x4b53e2(0x216)]();});}catch(_0x31f94b){this[_0x5c88e0(0x21f)](_0x31f94b,_0x5c88e0(0x1d4));}}async[_0x4507f1(0x221)](_0x4d3061,_0x5c7342){const _0x4490cb=_0x4507f1;await this[_0x4490cb(0x1fb)][_0x4490cb(0x1fc)](_0x4d3061,_0x5c7342);}async[_0x4507f1(0x1dd)](_0x34aed6,_0x4b545a){const _0x4db21a=_0x4507f1;await this[_0x4db21a(0x1fb)][_0x4db21a(0x209)](_0x34aed6,_0x4b545a);}async[_0x4507f1(0x206)](_0x58f888){const _0x21a027=_0x4507f1;await this[_0x21a027(0x1fb)][_0x21a027(0x225)](_0x58f888);}async[_0x4507f1(0x200)](_0x25d797){const _0x1f3847=_0x4507f1;await this[_0x1f3847(0x1d6)][_0x1f3847(0x1d1)](_0x25d797);}async[_0x4507f1(0x1e5)](){const _0x37502c=_0x4507f1;this[_0x37502c(0x1d9)][_0x37502c(0x1eb)](''),this[_0x37502c(0x1d9)][_0x37502c(0x214)](!0x0),await this[_0x37502c(0x1fb)][_0x37502c(0x1d4)](),this[_0x37502c(0x1d9)][_0x37502c(0x214)](!0x1);}[_0x4507f1(0x1d7)](){const _0x42101b=_0x4507f1,_0x5f3c60=this[_0x42101b(0x1d6)][_0x42101b(0x1e4)]?.['id'],_0x5473d5=this[_0x42101b(0x1f3)]()[_0x42101b(0x20a)](_0x33960a=>({'title':_0x33960a[_0x42101b(0x20c)],'items':_0x33960a[_0x42101b(0x1e8)][_0x42101b(0x20a)](_0x5c1f30=>({'id':_0x5c1f30['id'],'title':_0x5c1f30[_0x42101b(0x20c)]||_0x5607d1(this[_0x42101b(0x1ef)][_0x42101b(0x217)],_0x42101b(0x215)),'createdAt':new Date(_0x5c1f30[_0x42101b(0x205)])[_0x42101b(0x204)](),'active':_0x5c1f30['id']===_0x5f3c60,'pinned':_0x5c1f30[_0x42101b(0x22b)]}))}));this[_0x42101b(0x1d9)][_0x42101b(0x231)](_0x5473d5);}[_0x4507f1(0x20d)](_0x4e1726,_0x4850b2){const _0x5d2a88=_0x4507f1;this[_0x5d2a88(0x1d9)][_0x5d2a88(0x1e7)](_0x4e1726,_0x4850b2,!0x0);}[_0x4507f1(0x1f7)](_0x3c14ed){const _0x442ba4=_0x4507f1;this[_0x442ba4(0x1d9)][_0x442ba4(0x1e7)](_0x3c14ed,null,!0x1);}[_0x4507f1(0x21f)](_0x46feb4,_0x6661e4,_0x538033){const _0x7e9cbf=_0x4507f1,_0x119df1=this[_0x7e9cbf(0x1e6)](_0x6661e4,_0x538033);this[_0x7e9cbf(0x1d9)][_0x7e9cbf(0x1eb)](_0x119df1),_0x538033&&this[_0x7e9cbf(0x1f7)](_0x538033),this[_0x7e9cbf(0x1d9)][_0x7e9cbf(0x214)](!0x1);}[_0x4507f1(0x1e6)](_0x2095ea,_0x49c38b){const _0x56d97e=_0x4507f1,_0x3cb0ab=_0x49c38b?this[_0x56d97e(0x1fb)][_0x56d97e(0x220)](_0x49c38b):null,_0x1bf12b=_0x3cb0ab?.[_0x56d97e(0x20c)]||_0x5607d1(this[_0x56d97e(0x1ef)][_0x56d97e(0x217)],_0x56d97e(0x215));switch(_0x2095ea){case _0x56d97e(0x1fc):return _0x5607d1(this[_0x56d97e(0x1ef)][_0x56d97e(0x217)],_0x56d97e(0x219),_0x1bf12b);case _0x56d97e(0x209):{const _0x81d8c2=_0x5607d1(this[_0x56d97e(0x1ef)][_0x56d97e(0x217)],_0x3cb0ab?.[_0x56d97e(0x22b)]?_0x56d97e(0x207):_0x56d97e(0x1f5));return _0x5607d1(this[_0x56d97e(0x1ef)][_0x56d97e(0x217)],_0x56d97e(0x1d3),[_0x81d8c2,_0x1bf12b]);}case _0x56d97e(0x225):return _0x5607d1(this[_0x56d97e(0x1ef)][_0x56d97e(0x217)],_0x56d97e(0x1d2),_0x1bf12b);case _0x56d97e(0x1d4):case _0x56d97e(0x20b):return _0x5607d1(this[_0x56d97e(0x1ef)][_0x56d97e(0x217)],_0x56d97e(0x21e));default:return _0x5607d1(this[_0x56d97e(0x1ef)][_0x56d97e(0x217)],_0x56d97e(0x1f1));}}[_0x4507f1(0x1f3)](){const _0x235c54=_0x4507f1,_0x317180=new Date(),_0x34b1a6=new Date(_0x317180[_0x235c54(0x1d5)](),_0x317180[_0x235c54(0x20f)](),_0x317180[_0x235c54(0x201)]()),_0xd243c2=new Date(_0x34b1a6);_0xd243c2[_0x235c54(0x230)](_0xd243c2[_0x235c54(0x201)]()-0x1);const _0x15e728=new Date(_0x34b1a6);_0x15e728[_0x235c54(0x230)](_0x15e728[_0x235c54(0x201)]()-0xe);const _0x49032f=this[_0x235c54(0x1fb)][_0x235c54(0x202)]({'pinned':!0x0}),_0x139029=this[_0x235c54(0x1fb)][_0x235c54(0x202)]({'from':_0x34b1a6,'to':_0x34b1a6}),_0x37789f=this[_0x235c54(0x1fb)][_0x235c54(0x202)]({'from':_0xd243c2,'to':_0xd243c2}),_0x3b6c9b=this[_0x235c54(0x1fb)][_0x235c54(0x202)]({'from':_0x15e728,'to':_0xd243c2}),_0x11faee=this[_0x235c54(0x1fb)][_0x235c54(0x202)]({'to':_0x15e728}),_0xee15c3=[];return _0x49032f[_0x235c54(0x1ed)]>0x0&&_0xee15c3[_0x235c54(0x1db)]({'title':_0x5607d1(this[_0x235c54(0x1ef)][_0x235c54(0x217)],_0x235c54(0x1df)),'items':_0x49032f}),_0x139029[_0x235c54(0x1ed)]>0x0&&_0xee15c3[_0x235c54(0x1db)]({'title':_0x5607d1(this[_0x235c54(0x1ef)][_0x235c54(0x217)],_0x235c54(0x213)),'items':_0x139029}),_0x37789f[_0x235c54(0x1ed)]>0x0&&_0xee15c3[_0x235c54(0x1db)]({'title':_0x5607d1(this[_0x235c54(0x1ef)][_0x235c54(0x217)],_0x235c54(0x22d)),'items':_0x37789f}),_0x3b6c9b[_0x235c54(0x1ed)]>0x0&&_0xee15c3[_0x235c54(0x1db)]({'title':_0x5607d1(this[_0x235c54(0x1ef)][_0x235c54(0x217)],_0x235c54(0x22f)),'items':_0x3b6c9b}),_0x11faee[_0x235c54(0x1ed)]>0x0&&_0xee15c3[_0x235c54(0x1db)]({'title':_0x5607d1(this[_0x235c54(0x1ef)][_0x235c54(0x217)],_0x235c54(0x1f8)),'items':_0x11faee}),_0xee15c3;}[_0x4507f1(0x210)](_0x2b8d3c){const _0x560a98=_0x4507f1;this[_0x560a98(0x1d9)][_0x560a98(0x233)](_0x2b8d3c);}}
|
|
23
|
+
const _0x24e617=_0x6931;function _0x272c(){const _0x5a18d9=['change:activeConversation','getMonth','_aiConnector','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','setIsMaximized','removeHistoryItem','remove','itemId','setLoadingSkeleton','itemsLoaded','handleRemovedConversation','AI_CHAT_HISTORY_PIN_ACTION','_getCategorizedItems','get','removeItem','title','8034000nSJLTa','118825MLDaZy','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','activeConversation','chat','_clearItemLoading','showError','openChat','updateItemLoadingState','map','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','55CNrDMy','activateTab:history','10KGBJXY','pinned','itemRemoved','_updateHistoryItemsUI','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','getGroupId','getDate','_handleTogglePin','pin','AI_CHAT_HISTORY_CATEGORY_PINNED','AI_CHAT_HISTORY_ERROR_GENERIC','createdAt','12CrGtsa','1127700yDSExY','requires','updates','updateItemPinned','selectConversation','765sFkkLg','removeConversation','getFullYear','editConversationTitle','operation','_aiChatController','view','loadConversation','36SMvTjU','_aiChatHistoryUi','unpin','resize','toLocaleDateString','_setItemLoading','AI_CHAT_HISTORY_CATEGORY_LATER','getItem','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','length','plugins','resizedTabs','isPremiumPlugin','itemUpdated','history','AIChatHistoryController','getItems','setDate','_showConversationHistory','_generateErrorMessage','AI_CHAT_HISTORY_UNPIN_ACTION','isOfficialPlugin','_handleEditTitle','1543390XYTaEX','518088LEyzit','setConversationPinned','_handleRemove','1463710ZputSA','activateTab','context','AI_CHAT_HISTORY_CATEGORY_TODAY','listenTo','items','rename','updateItemTitle','AI_CHAT_UNTITLED_CONVERSATION','_handleHistoryErrorUI','_handleSelectConversation','130336bpIVra','loadItems','resizeTabs','push','error','init','_setIsMaximized','updateItems','locale','pluginName'];_0x272c=function(){return _0x5a18d9;};return _0x272c();}(function(_0x50941f,_0x134a0f){const _0x53784b=_0x6931,_0x23bb8c=_0x50941f();while(!![]){try{const _0x434c9f=-parseInt(_0x53784b(0x1b6))/0x1+parseInt(_0x53784b(0x15b))/0x2*(parseInt(_0x53784b(0x18d))/0x3)+-parseInt(_0x53784b(0x167))/0x4*(-parseInt(_0x53784b(0x18c))/0x5)+-parseInt(_0x53784b(0x175))/0x6*(parseInt(_0x53784b(0x168))/0x7)+-parseInt(_0x53784b(0x19b))/0x8*(parseInt(_0x53784b(0x16d))/0x9)+parseInt(_0x53784b(0x190))/0xa*(parseInt(_0x53784b(0x159))/0xb)+parseInt(_0x53784b(0x1b5))/0xc;if(_0x434c9f===_0x134a0f)break;else _0x23bb8c['push'](_0x23bb8c['shift']());}catch(_0x25a058){_0x23bb8c['push'](_0x23bb8c['shift']());}}}(_0x272c,0xafef0));import{ContextPlugin as _0x4afcef}from'ckeditor5/src/core.js';import{AIConnector as _0x1660d5}from'../aicore/aiconnector.js';function _0x6931(_0x102511,_0x4f7865){const _0x272c13=_0x272c();return _0x6931=function(_0x6931ad,_0x3d5cff){_0x6931ad=_0x6931ad-0x150;let _0x48ec57=_0x272c13[_0x6931ad];return _0x48ec57;},_0x6931(_0x102511,_0x4f7865);}import{AIChatController as _0x31c70b}from'../aichat/aichatcontroller.js';import{AITabs as _0x177661}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x16e898}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x1819da}from'./model/aichathistoryconversations.js';import{getTranslation as _0x12377f}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x4afcef{[_0x24e617(0x1a7)];[_0x24e617(0x176)];[_0x24e617(0x172)];static get[_0x24e617(0x169)](){return[_0x1660d5,_0x31c70b,_0x16e898,_0x177661];}static get[_0x24e617(0x1a4)](){const _0x2ec214=_0x24e617;return _0x2ec214(0x184);}static get[_0x24e617(0x18a)](){return!0x0;}static get[_0x24e617(0x181)](){return!0x0;}[_0x24e617(0x1a0)](){const _0x327828=_0x24e617;this[_0x327828(0x1a7)]=this[_0x327828(0x192)][_0x327828(0x17f)][_0x327828(0x1b2)](_0x1660d5),this[_0x327828(0x176)]=this[_0x327828(0x192)][_0x327828(0x17f)][_0x327828(0x1b2)](_0x16e898),this[_0x327828(0x172)]=this[_0x327828(0x192)][_0x327828(0x17f)][_0x327828(0x1b2)](_0x31c70b);const _0x3e8c97=this[_0x327828(0x192)][_0x327828(0x17f)][_0x327828(0x1b2)](_0x177661);try{const _0x24c28d=this[_0x327828(0x172)][_0x327828(0x160)]();this[_0x327828(0x183)]=new _0x1819da({'connector':this[_0x327828(0x1a7)],'group':_0x24c28d}),this[_0x327828(0x194)](this[_0x327828(0x176)],_0x327828(0x16e),(_0x408886,_0x58c5d8)=>{const _0x3f5838=_0x327828;this[_0x3f5838(0x17a)](_0x58c5d8['id'],_0x3f5838(0x1ab)),this[_0x3f5838(0x18f)](_0x58c5d8['id']);}),this[_0x327828(0x194)](this[_0x327828(0x176)],_0x327828(0x170),(_0x4481a6,_0x15ab09)=>{const _0xa3e92c=_0x327828;this[_0xa3e92c(0x17a)](_0x15ab09['id'],_0xa3e92c(0x196)),this[_0xa3e92c(0x18b)](_0x15ab09['id'],_0x15ab09[_0xa3e92c(0x1b4)]);}),this[_0x327828(0x194)](this[_0x327828(0x183)],_0x327828(0x182),(_0x445a65,_0x102dec)=>{const _0x56f91f=_0x327828;void 0x0!==_0x102dec[_0x56f91f(0x16a)][_0x56f91f(0x1b4)]&&this[_0x56f91f(0x176)][_0x56f91f(0x197)](_0x102dec[_0x56f91f(0x1ac)],_0x102dec[_0x56f91f(0x16a)][_0x56f91f(0x1b4)]),void 0x0!==_0x102dec[_0x56f91f(0x16a)][_0x56f91f(0x15c)]&&this[_0x56f91f(0x15e)](),this[_0x56f91f(0x152)](_0x102dec[_0x56f91f(0x1ac)]);}),this[_0x327828(0x194)](this[_0x327828(0x183)],_0x327828(0x15d),(_0x5b3658,_0xfd6f64)=>{const _0x1e9905=_0x327828;this[_0x1e9905(0x172)][_0x1e9905(0x1af)](_0xfd6f64[_0x1e9905(0x1ac)]),this[_0x1e9905(0x176)][_0x1e9905(0x1aa)](_0xfd6f64[_0x1e9905(0x1ac)]),this[_0x1e9905(0x152)](_0xfd6f64[_0x1e9905(0x1ac)]);}),this[_0x327828(0x194)](this[_0x327828(0x183)],_0x327828(0x1ae),()=>{const _0x1ee257=_0x327828;this[_0x1ee257(0x15e)]();}),this[_0x327828(0x194)](this[_0x327828(0x183)],_0x327828(0x19f),(_0x284bae,_0x1218a3)=>{const _0x51195c=_0x327828;this[_0x51195c(0x199)](_0x1218a3[_0x51195c(0x19f)],_0x1218a3[_0x51195c(0x171)],_0x1218a3[_0x51195c(0x1ac)]);}),this[_0x327828(0x194)](this[_0x327828(0x176)],_0x327828(0x16c),(_0x5a6ce1,_0x4a32bb)=>{const _0x59dc2b=_0x327828;this[_0x59dc2b(0x19a)](_0x4a32bb['id']);}),this[_0x327828(0x194)](this[_0x327828(0x176)],_0x327828(0x18e),(_0x1d1921,_0x1c7202)=>{const _0x1111d6=_0x327828,_0x17f7ec=_0x1c7202[_0x1111d6(0x15c)]?_0x1111d6(0x163):_0x1111d6(0x177);this[_0x1111d6(0x17a)](_0x1c7202['id'],_0x17f7ec),this[_0x1111d6(0x162)](_0x1c7202['id'],_0x1c7202[_0x1111d6(0x15c)]);}),this[_0x327828(0x194)](this[_0x327828(0x176)],_0x327828(0x154),()=>{const _0x592441=_0x327828;_0x3e8c97[_0x592441(0x173)][_0x592441(0x191)](_0x592441(0x151));}),this[_0x327828(0x194)](this[_0x327828(0x172)],_0x327828(0x1a5),()=>{const _0x38d32c=_0x327828;this[_0x38d32c(0x15e)]();}),_0x3e8c97[_0x327828(0x173)]['on'](_0x327828(0x15a),()=>{const _0x2f3db5=_0x327828;this[_0x2f3db5(0x187)]();}),this[_0x327828(0x194)](_0x3e8c97,_0x327828(0x180),(_0x75e5e3,_0x15510c)=>{const _0x3b63fc=_0x327828;this[_0x3b63fc(0x1a1)](_0x15510c);}),this[_0x327828(0x194)](this[_0x327828(0x176)],_0x327828(0x19d),()=>{const _0x58b90a=_0x327828;_0x3e8c97[_0x58b90a(0x178)]();});}catch(_0x440ccd){this[_0x327828(0x199)](_0x440ccd,_0x327828(0x1a0));}}async[_0x24e617(0x18b)](_0x4e6b2e,_0x3b550e){const _0x1b37c0=_0x24e617;await this[_0x1b37c0(0x183)][_0x1b37c0(0x197)](_0x4e6b2e,_0x3b550e);}async[_0x24e617(0x162)](_0x2390ac,_0x32109f){const _0xc7a673=_0x24e617;await this[_0xc7a673(0x183)][_0xc7a673(0x16b)](_0x2390ac,_0x32109f);}async[_0x24e617(0x18f)](_0x3dc34d){const _0x41979f=_0x24e617;await this[_0x41979f(0x183)][_0x41979f(0x1b3)](_0x3dc34d);}async[_0x24e617(0x19a)](_0x12baf2){const _0x17bed9=_0x24e617;await this[_0x17bed9(0x172)][_0x17bed9(0x174)](_0x12baf2);}async[_0x24e617(0x187)](){const _0x54c7c5=_0x24e617;this[_0x54c7c5(0x176)][_0x54c7c5(0x153)](''),this[_0x54c7c5(0x176)][_0x54c7c5(0x1ad)](!0x0),await this[_0x54c7c5(0x183)][_0x54c7c5(0x1a0)](),this[_0x54c7c5(0x176)][_0x54c7c5(0x1ad)](!0x1);}[_0x24e617(0x15e)](){const _0x28fae7=_0x24e617,_0x29e77a=this[_0x28fae7(0x172)][_0x28fae7(0x150)]?.['id'],_0x39dfbf=this[_0x28fae7(0x1b1)]()[_0x28fae7(0x156)](_0x4d36ca=>({'title':_0x4d36ca[_0x28fae7(0x1b4)],'items':_0x4d36ca[_0x28fae7(0x195)][_0x28fae7(0x156)](_0x3ad6d0=>({'id':_0x3ad6d0['id'],'title':_0x3ad6d0[_0x28fae7(0x1b4)]||_0x12377f(this[_0x28fae7(0x192)][_0x28fae7(0x1a3)],_0x28fae7(0x198)),'createdAt':new Date(_0x3ad6d0[_0x28fae7(0x166)])[_0x28fae7(0x179)](),'active':_0x3ad6d0['id']===_0x29e77a,'pinned':_0x3ad6d0[_0x28fae7(0x15c)]}))}));this[_0x28fae7(0x176)][_0x28fae7(0x1a2)](_0x39dfbf);}[_0x24e617(0x17a)](_0x3b0524,_0x18aa84){const _0x4f972c=_0x24e617;this[_0x4f972c(0x176)][_0x4f972c(0x155)](_0x3b0524,_0x18aa84,!0x0);}[_0x24e617(0x152)](_0x50f3f4){const _0x49cd50=_0x24e617;this[_0x49cd50(0x176)][_0x49cd50(0x155)](_0x50f3f4,null,!0x1);}[_0x24e617(0x199)](_0x2abf73,_0x373ddd,_0x47a193){const _0x167d3f=_0x24e617,_0x470b4b=this[_0x167d3f(0x188)](_0x373ddd,_0x47a193);this[_0x167d3f(0x176)][_0x167d3f(0x153)](_0x470b4b),_0x47a193&&this[_0x167d3f(0x152)](_0x47a193),this[_0x167d3f(0x176)][_0x167d3f(0x1ad)](!0x1);}[_0x24e617(0x188)](_0x5bb384,_0x525356){const _0x465494=_0x24e617,_0x2de3a6=_0x525356?this[_0x465494(0x183)][_0x465494(0x17c)](_0x525356):null,_0x5adb50=_0x2de3a6?.[_0x465494(0x1b4)]||_0x12377f(this[_0x465494(0x192)][_0x465494(0x1a3)],_0x465494(0x198));switch(_0x5bb384){case _0x465494(0x197):return _0x12377f(this[_0x465494(0x192)][_0x465494(0x1a3)],_0x465494(0x17d),_0x5adb50);case _0x465494(0x16b):{const _0x4330f1=_0x12377f(this[_0x465494(0x192)][_0x465494(0x1a3)],_0x2de3a6?.[_0x465494(0x15c)]?_0x465494(0x189):_0x465494(0x1b0));return _0x12377f(this[_0x465494(0x192)][_0x465494(0x1a3)],_0x465494(0x1b7),[_0x4330f1,_0x5adb50]);}case _0x465494(0x1b3):return _0x12377f(this[_0x465494(0x192)][_0x465494(0x1a3)],_0x465494(0x158),_0x5adb50);case _0x465494(0x1a0):case _0x465494(0x19c):return _0x12377f(this[_0x465494(0x192)][_0x465494(0x1a3)],_0x465494(0x157));default:return _0x12377f(this[_0x465494(0x192)][_0x465494(0x1a3)],_0x465494(0x165));}}[_0x24e617(0x1b1)](){const _0x200fcf=_0x24e617,_0x1da5a5=new Date(),_0x12cb7b=new Date(_0x1da5a5[_0x200fcf(0x16f)](),_0x1da5a5[_0x200fcf(0x1a6)](),_0x1da5a5[_0x200fcf(0x161)]()),_0x4f1c4f=new Date(_0x12cb7b);_0x4f1c4f[_0x200fcf(0x186)](_0x4f1c4f[_0x200fcf(0x161)]()-0x1);const _0x192e79=new Date(_0x12cb7b);_0x192e79[_0x200fcf(0x186)](_0x192e79[_0x200fcf(0x161)]()-0xe);const _0x42841e=this[_0x200fcf(0x183)][_0x200fcf(0x185)]({'pinned':!0x0}),_0xd10ab9=this[_0x200fcf(0x183)][_0x200fcf(0x185)]({'from':_0x12cb7b,'to':_0x12cb7b}),_0x88d513=this[_0x200fcf(0x183)][_0x200fcf(0x185)]({'from':_0x4f1c4f,'to':_0x4f1c4f}),_0x3985dc=this[_0x200fcf(0x183)][_0x200fcf(0x185)]({'from':_0x192e79,'to':_0x4f1c4f}),_0x3965ea=this[_0x200fcf(0x183)][_0x200fcf(0x185)]({'to':_0x192e79}),_0x508465=[];return _0x42841e[_0x200fcf(0x17e)]>0x0&&_0x508465[_0x200fcf(0x19e)]({'title':_0x12377f(this[_0x200fcf(0x192)][_0x200fcf(0x1a3)],_0x200fcf(0x164)),'items':_0x42841e}),_0xd10ab9[_0x200fcf(0x17e)]>0x0&&_0x508465[_0x200fcf(0x19e)]({'title':_0x12377f(this[_0x200fcf(0x192)][_0x200fcf(0x1a3)],_0x200fcf(0x193)),'items':_0xd10ab9}),_0x88d513[_0x200fcf(0x17e)]>0x0&&_0x508465[_0x200fcf(0x19e)]({'title':_0x12377f(this[_0x200fcf(0x192)][_0x200fcf(0x1a3)],_0x200fcf(0x15f)),'items':_0x88d513}),_0x3985dc[_0x200fcf(0x17e)]>0x0&&_0x508465[_0x200fcf(0x19e)]({'title':_0x12377f(this[_0x200fcf(0x192)][_0x200fcf(0x1a3)],_0x200fcf(0x1a8)),'items':_0x3985dc}),_0x3965ea[_0x200fcf(0x17e)]>0x0&&_0x508465[_0x200fcf(0x19e)]({'title':_0x12377f(this[_0x200fcf(0x192)][_0x200fcf(0x1a3)],_0x200fcf(0x17b)),'items':_0x3965ea}),_0x508465;}[_0x24e617(0x1a1)](_0x5ea371){const _0x692eb=_0x24e617;this[_0x692eb(0x176)][_0x692eb(0x1a9)](_0x5ea371);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54260c=_0x2be1;(function(_0x214452,_0x493eb4){const _0x576c80=_0x2be1,_0x1a3fd8=_0x214452();while(!![]){try{const _0x2b9933=parseInt(_0x576c80(0x160))/0x1*(-parseInt(_0x576c80(0x171))/0x2)+parseInt(_0x576c80(0x167))/0x3*(parseInt(_0x576c80(0x18b))/0x4)+parseInt(_0x576c80(0x168))/0x5*(parseInt(_0x576c80(0x184))/0x6)+-parseInt(_0x576c80(0x18a))/0x7*(-parseInt(_0x576c80(0x179))/0x8)+parseInt(_0x576c80(0x175))/0x9*(-parseInt(_0x576c80(0x176))/0xa)+parseInt(_0x576c80(0x170))/0xb*(parseInt(_0x576c80(0x183))/0xc)+-parseInt(_0x576c80(0x162))/0xd;if(_0x2b9933===_0x493eb4)break;else _0x1a3fd8['push'](_0x1a3fd8['shift']());}catch(_0x486452){_0x1a3fd8['push'](_0x1a3fd8['shift']());}}}(_0x5108,0x89109));import{ContextPlugin as _0x15a019}from'ckeditor5/src/core.js';import{AITabs as _0x47a186}from'../aitabs/aitabs.js';import{IconAIHistory as _0x596d30}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x38c68d}from'./ui/aichathistoryview.js';import{getTranslation as _0x285889}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x54260c(0x17a),_0x54260c(0x189),_0x54260c(0x16e),_0x54260c(0x16d),_0x54260c(0x186),_0x54260c(0x173),_0x54260c(0x181)];function _0x2be1(_0x39e45d,_0x325edd){const _0x5108cb=_0x5108();return _0x2be1=function(_0x2be1dd,_0x1738f2){_0x2be1dd=_0x2be1dd-0x160;let _0x32867b=_0x5108cb[_0x2be1dd];return _0x32867b;},_0x2be1(_0x39e45d,_0x325edd);}export class AIChatHistoryUI extends _0x15a019{static get[_0x54260c(0x161)](){return[_0x47a186];}[_0x54260c(0x18e)];static get[_0x54260c(0x177)](){const _0x381e8a=_0x54260c;return _0x381e8a(0x187);}static get[_0x54260c(0x18c)](){return!0x0;}static get[_0x54260c(0x178)](){return!0x0;}constructor(_0x2812d2){const _0x491785=_0x54260c;super(_0x2812d2);const _0x40e1b8=this[_0x491785(0x174)][_0x491785(0x17b)][_0x491785(0x182)](_0x491785(0x17e));this[_0x491785(0x18e)]=new _0x38c68d(this[_0x491785(0x174)][_0x491785(0x185)],_0x40e1b8[_0x491785(0x163)]),this[_0x491785(0x18e)][_0x491785(0x172)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x40e1b8[_0x491785(0x16b)][_0x491785(0x165)]({'id':_0x491785(0x188),'buttonLabel':_0x285889(this[_0x491785(0x174)][_0x491785(0x185)],_0x491785(0x18f)),'buttonIcon':_0x596d30,'order':0x0,'content':this[_0x491785(0x18e)]});}[_0x54260c(0x17c)](_0x149015){const _0x4e2b71=_0x54260c;this[_0x4e2b71(0x18e)][_0x4e2b71(0x17c)](_0x149015);}[_0x54260c(0x190)](_0x422dee){const _0x231a05=_0x54260c;this[_0x231a05(0x18e)][_0x231a05(0x18d)](_0x422dee);}[_0x54260c(0x17f)](_0x237fd2,_0x1c9180){const _0x3b799f=_0x54260c;this[_0x3b799f(0x18e)][_0x3b799f(0x17f)](_0x237fd2,_0x1c9180);}[_0x54260c(0x180)](_0x485208,_0x1b6771,_0x2f9e3b){const _0x33784e=_0x54260c;this[_0x33784e(0x18e)][_0x33784e(0x180)](_0x485208,_0x1b6771,_0x2f9e3b);}[_0x54260c(0x17d)](_0x40ca6e){const _0x7120f6=_0x54260c;this[_0x7120f6(0x18e)][_0x7120f6(0x166)]=_0x40ca6e;}[_0x54260c(0x16c)](_0x1403fe){const _0x43fe86=_0x54260c;this[_0x43fe86(0x18e)][_0x43fe86(0x16f)]=_0x1403fe;}[_0x54260c(0x164)](){const _0x376732=_0x54260c;this[_0x376732(0x18e)][_0x376732(0x16f)]='';}[_0x54260c(0x16a)](_0x6b9fee){const _0x30bc68=_0x54260c;this[_0x30bc68(0x18e)][_0x30bc68(0x169)]=_0x6b9fee;}}function _0x5108(){const _0x10ac28=['7846512cOLDcR','showConversationHistory','plugins','removeHistoryItem','setLoadingSkeleton','AITabs','updateItemTitle','updateItemLoadingState','resizeTabs','get','4822404AGygTc','132uilULd','locale','selectConversation','AIChatHistoryUI','history','removeConversation','7oLZKYP','8kkzJSd','isOfficialPlugin','updateHistoryItemsWithCategories','_historyView','AI_CHAT_HISTORY_HEADING','updateItems','211dKsVip','requires','18123287EtvEZm','showResizeButton','hideError','addTab','isLoading','1528338JItoiq','9085wMwYea','isMaximized','setIsMaximized','view','showError','setConversationPinned','editConversationTitle','errorMessage','11jfFNLI','562kGrdld','delegate','openChat','context','20214boULJL','1900DkKDOF','pluginName','isPremiumPlugin'];_0x5108=function(){return _0x10ac28;};return _0x5108();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35e1e4=_0x397e;(function(_0x3907a5,_0x32278e){const _0x5a5073=_0x397e,_0x139705=_0x3907a5();while(!![]){try{const _0xce5a5d=-parseInt(_0x5a5073(0x91))/0x1*(parseInt(_0x5a5073(0x9a))/0x2)+-parseInt(_0x5a5073(0x99))/0x3+-parseInt(_0x5a5073(0xac))/0x4*(parseInt(_0x5a5073(0xb8))/0x5)+-parseInt(_0x5a5073(0x95))/0x6*(-parseInt(_0x5a5073(0xa3))/0x7)+-parseInt(_0x5a5073(0x98))/0x8+parseInt(_0x5a5073(0xa1))/0x9*(-parseInt(_0x5a5073(0x8f))/0xa)+parseInt(_0x5a5073(0x8c))/0xb;if(_0xce5a5d===_0x32278e)break;else _0x139705['push'](_0x139705['shift']());}catch(_0x5848d0){_0x139705['push'](_0x139705['shift']());}}}(_0x3f7b,0x2588f));import{EmitterMixin as _0x2675ef}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x493527}from'./aichathistoryitem.js';function _0x397e(_0x136f90,_0x2c1e0e){const _0x3f7b34=_0x3f7b();return _0x397e=function(_0x397ebd,_0x39e6d7){_0x397ebd=_0x397ebd-0x8a;let _0x1393b7=_0x3f7b34[_0x397ebd];return _0x1393b7;},_0x397e(_0x136f90,_0x2c1e0e);}function _0x3f7b(){const _0xd9a839=['push','getResult','updatePinned','addItem','removeItem','getItems','1125477hGJAcL','getConversations','7wCOPGk','getTime','splice','findIndex','error','group','from','fetchConversations','getMonth','266764DWPbJy','connector','getDate','updateItemTitle','deleteConversation','createdAt','itemUpdated','fire','pinned','itemRemoved','getItem','execute','5oSgdrI','updateItemPinned','filter','map','9005733PvOZnT','updateConversation','items','10QWAhPI','loadItems','185722MZKRNp','itemsLoaded','updateTitle','find','599532YGRfLa','getFullYear','init','1930800GRbJLn','438198gffFbf','2eKiJNP'];_0x3f7b=function(){return _0xd9a839;};return _0x3f7b();}export class AIChatHistoryConversations extends _0x2675ef(){[_0x35e1e4(0x8e)]=[];[_0x35e1e4(0xad)];[_0x35e1e4(0xa8)];constructor({connector:_0x414e34,group:_0x41b5f9}){const _0x38f30c=_0x35e1e4;super(),this[_0x38f30c(0xad)]=_0x414e34,this[_0x38f30c(0xa8)]=_0x41b5f9;}async[_0x35e1e4(0x97)](){const _0xcf2081=_0x35e1e4;try{const _0x2fba4c=this[_0xcf2081(0xad)][_0xcf2081(0xaa)](this[_0xcf2081(0xa8)]),_0x1799c3=await _0x2fba4c[_0xcf2081(0xa2)]();this[_0xcf2081(0x90)](_0x1799c3);}catch(_0xe089b3){this[_0xcf2081(0xb3)](_0xcf2081(0xa7),{'error':_0xe089b3,'operation':_0xcf2081(0x97)});}}[_0x35e1e4(0x9e)](_0x16d329){const _0x213e64=_0x35e1e4;this[_0x213e64(0x8e)][_0x213e64(0x9b)](_0x16d329);}async[_0x35e1e4(0x9f)](_0x18d42a){const _0xf2fb8d=_0x35e1e4,_0x51ec01=this[_0xf2fb8d(0x8e)][_0xf2fb8d(0xa6)](_0x464190=>_0x464190['id']===_0x18d42a);if(-0x1===_0x51ec01)return!0x1;try{return await this[_0xf2fb8d(0xad)][_0xf2fb8d(0xb0)](_0x18d42a)[_0xf2fb8d(0xb7)](),this[_0xf2fb8d(0x8e)][_0xf2fb8d(0xa5)](_0x51ec01,0x1),this[_0xf2fb8d(0xb3)](_0xf2fb8d(0xb5),{'itemId':_0x18d42a}),!0x0;}catch(_0x48029f){return this[_0xf2fb8d(0xb3)](_0xf2fb8d(0xa7),{'error':_0x48029f,'operation':_0xf2fb8d(0x9f),'itemId':_0x18d42a}),!0x1;}}[_0x35e1e4(0xb6)](_0x4367ba){const _0x35a8f4=_0x35e1e4;return this[_0x35a8f4(0x8e)][_0x35a8f4(0x94)](_0x19cc9e=>_0x19cc9e['id']===_0x4367ba);}async[_0x35e1e4(0xaf)](_0x24d6bf,_0x53014b){const _0x3b2dcf=_0x35e1e4,_0x430f68=this[_0x3b2dcf(0xb6)](_0x24d6bf);if(!_0x430f68)return!0x1;try{return await this[_0x3b2dcf(0xad)][_0x3b2dcf(0x8d)](_0x24d6bf,{'title':_0x53014b})[_0x3b2dcf(0x9c)](),_0x430f68[_0x3b2dcf(0x93)](_0x53014b),this[_0x3b2dcf(0xb3)](_0x3b2dcf(0xb2),{'itemId':_0x24d6bf,'updates':{'title':_0x53014b}}),!0x0;}catch(_0x3c475e){return this[_0x3b2dcf(0xb3)](_0x3b2dcf(0xa7),{'error':_0x3c475e,'operation':_0x3b2dcf(0xaf),'itemId':_0x24d6bf}),!0x1;}}async[_0x35e1e4(0xb9)](_0x339f84,_0xc052cb){const _0x16f207=_0x35e1e4,_0x1b9744=this[_0x16f207(0xb6)](_0x339f84);if(!_0x1b9744)return!0x1;try{return await this[_0x16f207(0xad)][_0x16f207(0x8d)](_0x339f84,{'pinned':_0xc052cb})[_0x16f207(0x9c)](),_0x1b9744[_0x16f207(0x9d)](_0xc052cb),this[_0x16f207(0xb3)](_0x16f207(0xb2),{'itemId':_0x339f84,'updates':{'pinned':_0xc052cb}}),!0x0;}catch(_0x9d185f){return this[_0x16f207(0xb3)](_0x16f207(0xa7),{'error':_0x9d185f,'operation':_0x16f207(0xb9),'itemId':_0x339f84}),!0x1;}}[_0x35e1e4(0x90)](_0x56bb94){const _0x1c8ff=_0x35e1e4;try{this[_0x1c8ff(0x8e)]=[],_0x56bb94[_0x1c8ff(0x8b)](_0x1afdb5=>{const _0x119afd=_0x1c8ff;this[_0x119afd(0x9e)](new _0x493527(_0x1afdb5));}),this[_0x1c8ff(0xb3)](_0x1c8ff(0x92),{'items':[...this[_0x1c8ff(0x8e)]]});}catch(_0x1cdeb4){this[_0x1c8ff(0xb3)](_0x1c8ff(0xa7),{'error':_0x1cdeb4,'operation':_0x1c8ff(0x90)});}}[_0x35e1e4(0xa0)](_0x5b586a={}){const _0x1bf04b=_0x35e1e4,_0x151d81=void 0x0!==_0x5b586a[_0x1bf04b(0xb4)]&&_0x5b586a[_0x1bf04b(0xb4)],_0x137f6c=_0x5b586a[_0x1bf04b(0xa9)]?new Date(_0x5b586a[_0x1bf04b(0xa9)][_0x1bf04b(0x96)](),_0x5b586a[_0x1bf04b(0xa9)][_0x1bf04b(0xab)](),_0x5b586a[_0x1bf04b(0xa9)][_0x1bf04b(0xae)]()):null,_0x8a7c5a=_0x5b586a['to']?new Date(_0x5b586a['to'][_0x1bf04b(0x96)](),_0x5b586a['to'][_0x1bf04b(0xab)](),_0x5b586a['to'][_0x1bf04b(0xae)]()):null;return this[_0x1bf04b(0x8e)][_0x1bf04b(0x8a)](_0x8b3dd1=>{const _0x5571cf=_0x1bf04b;if(_0x8b3dd1[_0x5571cf(0xb4)]!==_0x151d81)return!0x1;if(_0x8a7c5a){const _0x55215b=new Date(_0x8b3dd1[_0x5571cf(0xb1)][_0x5571cf(0x96)](),_0x8b3dd1[_0x5571cf(0xb1)][_0x5571cf(0xab)](),_0x8b3dd1[_0x5571cf(0xb1)][_0x5571cf(0xae)]());return _0x137f6c?_0x137f6c[_0x5571cf(0xa4)]()===_0x8a7c5a[_0x5571cf(0xa4)]()?_0x55215b[_0x5571cf(0xa4)]()===_0x137f6c[_0x5571cf(0xa4)]():_0x55215b<_0x8a7c5a&&_0x55215b>=_0x137f6c:_0x55215b<_0x8a7c5a;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x197f29=_0x3a78;function _0x8b20(){var _0x1fc804=['6fURkWH','20320lKJOdT','2yBzXHj','3533872ZgSKWG','title','987888eBJFYY','set','362870RXxTqY','updateTitle','7817800AzBtDa','pinned','710717ZbOZlg','340kKxFuG','updatePinned','30960lypjNh','createdAt','updatedAt'];_0x8b20=function(){return _0x1fc804;};return _0x8b20();}(function(_0x57191a,_0x4c3775){var _0x3e2005=_0x3a78,_0x192cb0=_0x57191a();while(!![]){try{var _0x2b7a62=parseInt(_0x3e2005(0x1a8))/0x1*(-parseInt(_0x3e2005(0x1ad))/0x2)+-parseInt(_0x3e2005(0x1ab))/0x3+parseInt(_0x3e2005(0x1b2))/0x4*(-parseInt(_0x3e2005(0x1a7))/0x5)+parseInt(_0x3e2005(0x1a6))/0x6*(parseInt(_0x3e2005(0x1b1))/0x7)+parseInt(_0x3e2005(0x1a9))/0x8+-parseInt(_0x3e2005(0x1b4))/0x9+parseInt(_0x3e2005(0x1af))/0xa;if(_0x2b7a62===_0x4c3775)break;else _0x192cb0['push'](_0x192cb0['shift']());}catch(_0x32da52){_0x192cb0['push'](_0x192cb0['shift']());}}}(_0x8b20,0x4555f));function _0x3a78(_0x4c178d,_0x453359){var _0x8b206=_0x8b20();return _0x3a78=function(_0x3a78f1,_0x5d7d4a){_0x3a78f1=_0x3a78f1-0x1a6;var _0xce016a=_0x8b206[_0x3a78f1];return _0xce016a;},_0x3a78(_0x4c178d,_0x453359);}import{ObservableMixin as _0x538260}from'ckeditor5/src/utils.js';import{escape as _0x48b2fb}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x538260(){['id'];[_0x197f29(0x1b5)];constructor({id:_0x58aa43,title:_0x5602f3,createdAt:_0x71440d,updatedAt:_0x4609c7,pinned:_0x14d9fd}){var _0x2a914d=_0x197f29;super(),this['id']=_0x58aa43,this[_0x2a914d(0x1b5)]=new Date(_0x71440d),this[_0x2a914d(0x1ac)](_0x2a914d(0x1aa),_0x5602f3),this[_0x2a914d(0x1ac)](_0x2a914d(0x1b6),_0x4609c7?new Date(_0x4609c7):null),this[_0x2a914d(0x1ac)](_0x2a914d(0x1b0),_0x14d9fd||!0x1);}[_0x197f29(0x1ae)](_0x19ba93){var _0x296e5b=_0x197f29;this[_0x296e5b(0x1ac)](_0x296e5b(0x1aa),_0x48b2fb(_0x19ba93)),this[_0x296e5b(0x1b6)]=new Date();}[_0x197f29(0x1b3)](_0x3fd3d8){var _0x341324=_0x197f29;this[_0x341324(0x1ac)](_0x341324(0x1b0),_0x3fd3d8),this[_0x341324(0x1b6)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
function _0x284b(){const _0x1078fd=['AI_CHAT_HISTORY_EDIT_NAME','AI_CHAT_HISTORY_ACCEPT','label','loadingState','isMatching','ck-ai-chat-history__item','showConfirm','actions','selectConversation','ck-ai-chat-history__item-row','417476BCpbdN','ck-ai-chat-history__item-check','bind','AI_CHAT_HISTORY_REMOVE','highlightText','bindTemplate','edit:cancel','clear','element','AI_CHAT_HISTORY_CANCEL','_createCheckView','createCollection','LOADING_LABELS','string','value','setConversationPinned','_createCancelEditButtonView','ck-ai-chat-history__item-content','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','51iEWYDw','text','9173130jTKKGI','3305889YmvmdX','ck-confirm-view-submit','panelPosition','then','_createMenuDropdownView','_createPinButtonView','pinned','span','ck-hidden','ck-ai-chat-history__item-date','children','ck-ai-chat-history__item--active','key','25352oXyDAC','panelView','ck-ai-chat-history__item-check-container','set','_createSpinnerView','removeConversation','items','ck-ai-loader__text','ck-confirm-view-cancel','updateLoadingState','ck-ai-chat-history__item-main-content','AI_CHAT_HISTORY_LOADING_REMOVING','addMany','_createAcceptEditButtonView','extendTemplate','div','isVisible','execute','isOn','fire','AI_CHAT_HISTORY_PIN_BUTTON','16buOfsY','_titleView','editConversationTitle','withText','2634443uDnbLN','change:isEdit','ck-ai-chat-history__item-title','listitem','AI_CHAT_HISTORY_LOADING_PINNING','updateTitle','mainContent','click','ck-ai-chat-history__item-actions','buttonView','add','835942ITtuMn','focus','ck-ai-chat-history__item--edit','AI_CHAT_HISTORY_LOADING_UNPINNING','match','isEdit','3087285mwGyts','tiny','_commitEditInputValue','12GhOeEy','setTemplate','ck-ai-loader','Enter','AI_CHAT_HISTORY_LOADING_RENAMING','_createEditInputView','AI_CHAT_HISTORY_REMOVE_CONFIRM','locale'];_0x284b=function(){return _0x1078fd;};return _0x284b();}const _0x5425b1=_0x371c;(function(_0x34d944,_0x46f6b4){const _0x2ed048=_0x371c,_0x12ca2f=_0x34d944();while(!![]){try{const _0x2acf87=parseInt(_0x2ed048(0xff))/0x1+-parseInt(_0x2ed048(0xe4))/0x2+-parseInt(_0x2ed048(0x112))/0x3*(-parseInt(_0x2ed048(0xc0))/0x4)+-parseInt(_0x2ed048(0xea))/0x5+parseInt(_0x2ed048(0xed))/0x6*(-parseInt(_0x2ed048(0xd9))/0x7)+parseInt(_0x2ed048(0xd5))/0x8*(parseInt(_0x2ed048(0x115))/0x9)+parseInt(_0x2ed048(0x114))/0xa;if(_0x2acf87===_0x46f6b4)break;else _0x12ca2f['push'](_0x12ca2f['shift']());}catch(_0x59ceac){_0x12ca2f['push'](_0x12ca2f['shift']());}}}(_0x284b,0x5efbb));import{ListItemView as _0x2c2758,HighlightedTextView as _0x408f22,ButtonView as _0xfcb7b,ListView as _0x1f413f,IconView as _0x6331fb,createDropdown as _0x12dbef,InputTextView as _0x467be2}from'ckeditor5/src/ui.js';function _0x371c(_0x54580a,_0x60b72d){const _0x284bce=_0x284b();return _0x371c=function(_0x371c18,_0x4c501d){_0x371c18=_0x371c18-0xbb;let _0x5d5fb8=_0x284bce[_0x371c18];return _0x5d5fb8;},_0x371c(_0x54580a,_0x60b72d);}import{IconThreeHorizontalDots as _0x584b84,IconPin as _0x2bbb51,IconCheck as _0x4538af,IconCancel as _0x1860ce}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x29bec1,ConfirmMixin as _0x5867be}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x439df0}from'es-toolkit/compat';import{AISpinnerView as _0x114b96}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x413c04}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5867be(_0x2c2758){['id'];static [_0x5425b1(0x10b)]={'remove':_0x5425b1(0xcb),'rename':_0x5425b1(0xf1),'pin':_0x5425b1(0xdd),'unpin':_0x5425b1(0xe7)};[_0x5425b1(0xfc)];[_0x5425b1(0xdf)];[_0x5425b1(0xd6)];constructor(_0x295b16,_0x5ce85a){const _0x49c6e8=_0x5425b1;super(_0x295b16);const _0x331e2c=this[_0x49c6e8(0x104)];this[_0x49c6e8(0xc3)](_0x49c6e8(0xe9),!0x1),this[_0x49c6e8(0xc3)](_0x49c6e8(0xd0),!0x0),this[_0x49c6e8(0xc3)](_0x49c6e8(0x11b),!!_0x5ce85a[_0x49c6e8(0x11b)]),this[_0x49c6e8(0xc3)](_0x49c6e8(0xf8),null),this['id']=_0x5ce85a['id'];const {title:_0x195aa8,createdAt:_0x45d412,active:_0x43930f=!0x1}=_0x5ce85a;this[_0x49c6e8(0xd6)]=new _0x408f22(),this[_0x49c6e8(0xd6)][_0x49c6e8(0x113)]=_0x195aa8,this[_0x49c6e8(0xd6)][_0x49c6e8(0xce)]({'attributes':{'class':[_0x49c6e8(0xdb)]}});const _0x29af25=this[_0x49c6e8(0x109)](),_0x3b7569=this[_0x49c6e8(0x11a)](_0x295b16),_0x42d320=this[_0x49c6e8(0x119)](),_0x29e977=this[_0x49c6e8(0xf2)](_0x295b16,_0x195aa8),_0x327c7f=this[_0x49c6e8(0xcd)](_0x295b16,_0x29e977),_0x348701=this[_0x49c6e8(0x10f)](_0x295b16,_0x29e977);this[_0x49c6e8(0xfc)]=this[_0x49c6e8(0x10a)](),this[_0x49c6e8(0xdf)]=this[_0x49c6e8(0x10a)](),this[_0x49c6e8(0xdf)][_0x49c6e8(0xe3)](this[_0x49c6e8(0xd6)]),this[_0x49c6e8(0xfc)][_0x49c6e8(0xe3)](_0x3b7569),this[_0x49c6e8(0xfc)][_0x49c6e8(0xe3)](_0x42d320),this['on'](_0x49c6e8(0xda),(_0x1bab85,_0x2765c1,_0x11b337)=>{const _0x211eed=_0x49c6e8;this[_0x211eed(0xfc)][_0x211eed(0x106)](),this[_0x211eed(0xdf)][_0x211eed(0x106)](),_0x11b337?(this[_0x211eed(0xfc)][_0x211eed(0xe3)](_0x327c7f),this[_0x211eed(0xfc)][_0x211eed(0xe3)](_0x348701),this[_0x211eed(0xdf)][_0x211eed(0xe3)](_0x29e977),_0x29e977[_0x211eed(0x107)][_0x211eed(0xe5)]()):(this[_0x211eed(0xfc)][_0x211eed(0xe3)](_0x3b7569),this[_0x211eed(0xfc)][_0x211eed(0xe3)](_0x42d320),this[_0x211eed(0xdf)][_0x211eed(0xe3)](this[_0x211eed(0xd6)]));}),this[_0x49c6e8(0xee)]({'tag':'li','attributes':{'class':[_0x49c6e8(0xfa),_0x43930f?_0x49c6e8(0xbe):'',_0x331e2c['if'](_0x49c6e8(0xd0),_0x49c6e8(0xbb),_0xf606f2=>!_0xf606f2),_0x331e2c['if'](_0x49c6e8(0xe9),_0x49c6e8(0xe6))],'role':_0x49c6e8(0xdc)},'children':[{'tag':_0x49c6e8(0x11c),'attributes':{'class':[_0x49c6e8(0xc2)]},'children':[{'tag':_0x49c6e8(0xcf),'attributes':{'class':[_0x49c6e8(0x100),_0x331e2c['if'](_0x49c6e8(0xf8),_0x49c6e8(0xbb),_0x2e936f=>!!_0x2e936f)]},'children':_0x43930f?[_0x29af25]:[]},{'tag':_0x49c6e8(0xcf),'attributes':{'class':[_0x49c6e8(0xef),_0x331e2c['if'](_0x49c6e8(0xf8),_0x49c6e8(0xbb),_0x5f6dd=>!_0x5f6dd)]},'children':[this[_0x49c6e8(0xc4)]()]}]},{'tag':_0x49c6e8(0xcf),'attributes':{'class':[_0x49c6e8(0xfe)]},'children':[{'tag':_0x49c6e8(0xcf),'attributes':{'class':[_0x49c6e8(0x110)]},'on':{'click':this[_0x49c6e8(0x104)]['to'](_0x49c6e8(0xe0))},'children':[{'tag':_0x49c6e8(0xcf),'attributes':{'class':[_0x49c6e8(0xca)]},'children':[{'tag':_0x49c6e8(0xcf),'attributes':{'class':[_0x49c6e8(0xdb),_0x331e2c['if'](_0x49c6e8(0xf8),_0x49c6e8(0xbb),_0x5eb5ac=>!!_0x5eb5ac)]},'children':this[_0x49c6e8(0xdf)]},{'tag':_0x49c6e8(0xcf),'attributes':{'class':[_0x49c6e8(0xc7),_0x331e2c['if'](_0x49c6e8(0xf8),_0x49c6e8(0xbb),_0x362082=>!_0x362082)]},'children':[{'text':_0x331e2c['to'](_0x49c6e8(0xf8),_0x493c36=>_0x493c36?_0x413c04(this[_0x49c6e8(0xf4)],AIChatHistoryListItemView[_0x49c6e8(0x10b)][_0x493c36]):'')}]}]},{'tag':_0x49c6e8(0x11c),'attributes':{'class':[_0x49c6e8(0xbc)]},'children':[_0x45d412]}]},{'tag':_0x49c6e8(0xcf),'attributes':{'class':[_0x49c6e8(0xe1)]},'children':this[_0x49c6e8(0xfc)]}]}]}),this['on'](_0x49c6e8(0xe0),()=>{const _0x34116e=_0x49c6e8;this[_0x34116e(0xe9)]||this[_0x34116e(0xd3)](_0x34116e(0xfd),{'id':this['id']});});}[_0x5425b1(0xde)](_0x1841fe){const _0x48b6cb=_0x5425b1;this[_0x48b6cb(0xd6)][_0x48b6cb(0x113)]=_0x439df0(_0x1841fe);}[_0x5425b1(0xc9)](_0x1956ba,_0xd6123d){const _0x5eed65=_0x5425b1;this[_0x5eed65(0xc3)](_0x5eed65(0xf8),_0xd6123d?_0x1956ba:null);}[_0x5425b1(0x109)](){const _0x2d7bd3=_0x5425b1,_0x4a1c80=new _0x6331fb();return _0x4a1c80[_0x2d7bd3(0xc3)]({'content':_0x4538af}),_0x4a1c80;}[_0x5425b1(0x11a)](_0x3d9dce){const _0x3daef9=_0x5425b1,_0x4664a2=new _0xfcb7b(_0x3d9dce);return _0x4664a2[_0x3daef9(0xc3)]({'label':_0x413c04(_0x3d9dce,_0x3daef9(0xd4)),'icon':_0x2bbb51,'withText':!0x1,'tooltip':!0x0}),_0x4664a2[_0x3daef9(0x101)](_0x3daef9(0xd2))['to'](this,_0x3daef9(0x11b)),_0x4664a2['on'](_0x3daef9(0xd1),()=>{const _0x1c4e91=_0x3daef9,_0x2d0413=!this[_0x1c4e91(0x11b)];this[_0x1c4e91(0xd3)](_0x1c4e91(0x10e),{'id':this['id'],'pinned':_0x2d0413});}),_0x4664a2;}[_0x5425b1(0x119)](){const _0x2e97fa=_0x5425b1,_0x1cfa25=_0x12dbef(this[_0x2e97fa(0xf4)],_0x29bec1),_0x2786da=_0x1cfa25[_0x2e97fa(0xc1)][_0x2e97fa(0xbd)];_0x1cfa25[_0x2e97fa(0xe2)][_0x2e97fa(0xc3)]({'label':_0x413c04(this[_0x2e97fa(0xf4)],_0x2e97fa(0x111)),'icon':_0x584b84}),_0x1cfa25[_0x2e97fa(0x117)]='sw';const _0x4f75bd=new _0xfcb7b(this[_0x2e97fa(0xf4)]);_0x4f75bd[_0x2e97fa(0xf7)]=_0x413c04(this[_0x2e97fa(0xf4)],_0x2e97fa(0xf5)),_0x4f75bd[_0x2e97fa(0xd8)]=!0x0,_0x4f75bd['on'](_0x2e97fa(0xd1),()=>{const _0xbabb11=_0x2e97fa;this[_0xbabb11(0xe9)]=!0x0;});const _0x687b43=new _0xfcb7b(this[_0x2e97fa(0xf4)]);_0x687b43[_0x2e97fa(0xf7)]=_0x413c04(this[_0x2e97fa(0xf4)],_0x2e97fa(0x102)),_0x687b43[_0x2e97fa(0xd8)]=!0x0,_0x687b43['on'](_0x2e97fa(0xd1),()=>{const _0x36d8f2=_0x2e97fa;this[_0x36d8f2(0xfb)](_0x413c04(this[_0x36d8f2(0xf4)],_0x36d8f2(0xf3)),this[_0x36d8f2(0x107)])[_0x36d8f2(0x118)](()=>{const _0x5c3524=_0x36d8f2;this[_0x5c3524(0xd3)](_0x5c3524(0xc5),{'id':this['id']});});});const _0x1c3700=new _0x1f413f(this[_0x2e97fa(0xf4)]),_0x1af529=new _0x2c2758(this[_0x2e97fa(0xf4)]);_0x1af529[_0x2e97fa(0xbd)][_0x2e97fa(0xe3)](_0x4f75bd);const _0x4fd876=new _0x2c2758(this[_0x2e97fa(0xf4)]);return _0x4fd876[_0x2e97fa(0xbd)][_0x2e97fa(0xe3)](_0x687b43),_0x1c3700[_0x2e97fa(0xc6)][_0x2e97fa(0xcc)]([_0x1af529,_0x4fd876]),_0x2786da[_0x2e97fa(0xe3)](_0x1c3700),_0x1cfa25;}[_0x5425b1(0xf2)](_0xefcd82,_0x4ba631){const _0x31bb73=_0x5425b1,_0x4cbc6e=new _0x467be2(_0xefcd82),_0x3f892c=_0x4cbc6e[_0x31bb73(0x104)];return _0x4cbc6e[_0x31bb73(0x10d)]=_0x4ba631,_0x4cbc6e[_0x31bb73(0xce)]({'on':{'keydown':_0x3f892c['to'](_0x4aec0d=>{const _0x55a136=_0x31bb73;_0x55a136(0xf0)==_0x4aec0d[_0x55a136(0xbf)]&&this[_0x55a136(0xec)](_0x4cbc6e);})}}),_0x4cbc6e;}[_0x5425b1(0xcd)](_0x2a8ab0,_0x331915){const _0x317df3=_0x5425b1,_0x3ef295=new _0xfcb7b(_0x2a8ab0);return _0x3ef295[_0x317df3(0xc3)]({'icon':_0x4538af,'withText':!0x1,'tooltip':_0x413c04(_0x2a8ab0,_0x317df3(0xf6))}),_0x3ef295[_0x317df3(0xce)]({'attributes':{'class':[_0x317df3(0x116)]}}),_0x3ef295['on'](_0x317df3(0xd1),()=>{const _0x893b1=_0x317df3;this[_0x893b1(0xec)](_0x331915);}),_0x3ef295;}[_0x5425b1(0xec)](_0x144cc3){const _0x411dd3=_0x5425b1,_0xb2c08c=_0x144cc3[_0x411dd3(0x107)][_0x411dd3(0x10d)]||'';this[_0x411dd3(0xd6)][_0x411dd3(0x113)]=_0xb2c08c,this[_0x411dd3(0xe9)]=!0x1,this[_0x411dd3(0xd3)](_0x411dd3(0xd7),{'id':this['id'],'title':_0xb2c08c});}[_0x5425b1(0x10f)](_0x32c6d4,_0x3afd13){const _0x512fb3=_0x5425b1,_0x55a7a7=new _0xfcb7b(_0x32c6d4);return _0x55a7a7[_0x512fb3(0xc3)]({'icon':_0x1860ce,'withText':!0x1,'tooltip':_0x413c04(_0x32c6d4,_0x512fb3(0x108))}),_0x55a7a7[_0x512fb3(0xce)]({'attributes':{'class':[_0x512fb3(0xc8)]}}),_0x55a7a7['on'](_0x512fb3(0xd1),()=>{const _0x17a253=_0x512fb3;this[_0x17a253(0xe9)]=!0x1,_0x3afd13[_0x17a253(0x10d)]=this[_0x17a253(0xd6)][_0x17a253(0x113)]||'',this[_0x17a253(0xd3)](_0x17a253(0x105));}),_0x55a7a7;}[_0x5425b1(0xc4)](){const _0x249e45=_0x5425b1,_0x413529=new _0x114b96(_0x249e45(0xeb));return _0x413529[_0x249e45(0xd0)]=!0x0,_0x413529;}[_0x5425b1(0xf9)](_0x3805b3){const _0x3a6c7e=_0x5425b1;return this[_0x3a6c7e(0xd6)]&&_0x3a6c7e(0x10c)==typeof this[_0x3a6c7e(0xd6)][_0x3a6c7e(0x113)]&&this[_0x3a6c7e(0xd6)][_0x3a6c7e(0x113)][_0x3a6c7e(0xe8)](_0x3805b3)?{'title':!0x0}:null;}[_0x5425b1(0x103)](_0x56a7ee){const _0x17796a=_0x5425b1;this[_0x17796a(0xd6)][_0x17796a(0x103)](_0x56a7ee);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x117d(){const _0x26d5f5=['6KuhhAD','bindTemplate','4419690RaQwyv','isVisible','104uDFgFM','splice','ck-hidden','filter','187887tFUrlB','setTemplate','getItem','341518roAckw','itemsViews','length','title','8QCZDuI','isMatching','find','div','removeItem','set','_itemsListView','indexOf','addMany','130vZhPNQ','232538jAWnAu','401994Smqlgq','items','ck-ai-chat-history__section-title','ck-ai-chat-history__section','2370755cOyodb','379887XYZBmJ','remove','highlightText'];_0x117d=function(){return _0x26d5f5;};return _0x117d();}const _0x17b359=_0x236e;(function(_0x244b6d,_0x2d3080){const _0x1f4396=_0x236e,_0x27f7d5=_0x244b6d();while(!![]){try{const _0x1b538c=parseInt(_0x1f4396(0x97))/0x1+parseInt(_0x1f4396(0xab))/0x2+parseInt(_0x1f4396(0x9d))/0x3*(-parseInt(_0x1f4396(0xaf))/0x4)+-parseInt(_0x1f4396(0x9c))/0x5*(parseInt(_0x1f4396(0xa0))/0x6)+-parseInt(_0x1f4396(0xa8))/0x7*(parseInt(_0x1f4396(0xa4))/0x8)+-parseInt(_0x1f4396(0x98))/0x9*(-parseInt(_0x1f4396(0xb8))/0xa)+parseInt(_0x1f4396(0xa2))/0xb;if(_0x1b538c===_0x2d3080)break;else _0x27f7d5['push'](_0x27f7d5['shift']());}catch(_0x1f42d8){_0x27f7d5['push'](_0x27f7d5['shift']());}}}(_0x117d,0x4b89b));function _0x236e(_0x562602,_0x31fa04){const _0x117df6=_0x117d();return _0x236e=function(_0x236eb4,_0x506d44){_0x236eb4=_0x236eb4-0x97;let _0xc58ca6=_0x117df6[_0x236eb4];return _0xc58ca6;},_0x236e(_0x562602,_0x31fa04);}import{ListItemView as _0x148a7e,View as _0x59e9bc,ListView as _0x5b0c2d}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x148a7e{[_0x17b359(0xae)];[_0x17b359(0xac)];[_0x17b359(0xb5)];constructor(_0x3ffa9f,{title:_0xd161d4,items:_0x1b12b2}){const _0x35311e=_0x17b359;super(_0x3ffa9f);const _0x2c21f5=this[_0x35311e(0xa1)];this[_0x35311e(0xb4)](_0x35311e(0xa3),!0x0),this[_0x35311e(0xae)]=_0xd161d4,this[_0x35311e(0xac)]=_0x1b12b2;const _0x19a278=new _0x59e9bc(_0x3ffa9f);_0x19a278[_0x35311e(0xa9)]({'tag':_0x35311e(0xb2),'attributes':{'class':[_0x35311e(0x9a)]},'children':[this[_0x35311e(0xae)]]}),this[_0x35311e(0xb5)]=new _0x5b0c2d(_0x3ffa9f),this[_0x35311e(0xb5)][_0x35311e(0x99)][_0x35311e(0xb7)](this[_0x35311e(0xac)]),this[_0x35311e(0xa9)]({'tag':'li','attributes':{'class':[_0x35311e(0x9b),_0x2c21f5['if'](_0x35311e(0xa3),_0x35311e(0xa6),_0x2d9480=>!_0x2d9480)]},'children':[_0x19a278,this[_0x35311e(0xb5)]]});}[_0x17b359(0xa7)](_0x4fddac){const _0x2669bf=_0x17b359,_0x2814cb=this[_0x2669bf(0xac)][_0x2669bf(0xad)];let _0x2dee7c=0x0;for(const _0x4fabf0 of this[_0x2669bf(0xac)]){if(_0x4fddac){const _0x18e94f=_0x4fabf0[_0x2669bf(0xb0)](_0x4fddac);_0x4fabf0[_0x2669bf(0xa3)]=!!_0x18e94f,_0x4fabf0[_0x2669bf(0x9f)](_0x4fddac);}else _0x4fabf0[_0x2669bf(0xa3)]=!0x0,_0x4fabf0[_0x2669bf(0x9f)](null);_0x4fabf0[_0x2669bf(0xa3)]&&_0x2dee7c++;}return this[_0x2669bf(0xa3)]=_0x2dee7c>0x0,{'resultsCount':_0x2dee7c,'totalItemsCount':_0x2814cb};}[_0x17b359(0xaa)](_0x54406c){const _0x11e747=_0x17b359;return this[_0x11e747(0xac)][_0x11e747(0xb1)](_0x300f49=>_0x300f49['id']===_0x54406c);}[_0x17b359(0xb3)](_0x4285d7){const _0x5b9cca=_0x17b359,_0x5e7d8e=this[_0x5b9cca(0xac)][_0x5b9cca(0xb6)](_0x4285d7);-0x1!==_0x5e7d8e&&(this[_0x5b9cca(0xac)][_0x5b9cca(0xa5)](_0x5e7d8e,0x1),this[_0x5b9cca(0xb5)][_0x5b9cca(0x99)][_0x5b9cca(0x9e)](_0x4285d7));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x57fe(_0x1b1f1e,_0x2078f5){const _0xb39586=_0xb395();return _0x57fe=function(_0x57fecd,_0x33023a){_0x57fecd=_0x57fecd-0xcd;let _0x1489e2=_0xb39586[_0x57fecd];return _0x1489e2;},_0x57fe(_0x1b1f1e,_0x2078f5);}const _0x43df12=_0x57fe;(function(_0x5c3fbd,_0x9654fc){const _0x1fe9d7=_0x57fe,_0x2bee86=_0x5c3fbd();while(!![]){try{const _0x4192cb=parseInt(_0x1fe9d7(0xd5))/0x1*(parseInt(_0x1fe9d7(0xd6))/0x2)+parseInt(_0x1fe9d7(0xd0))/0x3+-parseInt(_0x1fe9d7(0xd1))/0x4+-parseInt(_0x1fe9d7(0xcd))/0x5+-parseInt(_0x1fe9d7(0xcf))/0x6+-parseInt(_0x1fe9d7(0xce))/0x7*(parseInt(_0x1fe9d7(0xd8))/0x8)+parseInt(_0x1fe9d7(0xdb))/0x9;if(_0x4192cb===_0x9654fc)break;else _0x2bee86['push'](_0x2bee86['shift']());}catch(_0x3cbf2c){_0x2bee86['push'](_0x2bee86['shift']());}}}(_0xb395,0xd9c05));function _0xb395(){const _0xa8e7da=['items','806184hqOLSJ','filter','ck-ai-chat-history__sections','6383403FWqMjA','2672225vWkPII','28hAITmj','3952476xlGUaf','5067792BOLIhO','3364932YBJzJL','sections','addMany','extendTemplate','8238CXcedQ','226OdetNv'];_0xb395=function(){return _0xa8e7da;};return _0xb395();}import{ListView as _0x33f94f}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x33f94f{[_0x43df12(0xd2)];constructor(_0x475697,_0x232288){const _0x9e6398=_0x43df12;super(_0x475697),this[_0x9e6398(0xd2)]=_0x232288,this[_0x9e6398(0xd7)][_0x9e6398(0xd3)](this[_0x9e6398(0xd2)]),this[_0x9e6398(0xd4)]({'attributes':{'class':[_0x9e6398(0xda)]}});}[_0x43df12(0xd9)](_0x2e5a61){const _0x14e7a0=_0x43df12;let _0x598f7b=0x0,_0x19d6b5=0x0;for(const _0x52d62c of this[_0x14e7a0(0xd2)]){const {resultsCount:_0x2e1fce,totalItemsCount:_0x3958d4}=_0x52d62c[_0x14e7a0(0xd9)](_0x2e5a61);_0x598f7b+=_0x2e1fce,_0x19d6b5+=_0x3958d4;}return{'resultsCount':_0x598f7b,'totalItemsCount':_0x19d6b5};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x5645(){const _0x37d913=['isEmptyViewVisible','extendTemplate','ck-rounded-corners','972433MlRrUa','isMainErrorViewVisible','set','items','ck-ai-chat-history','14080460DryXYz','_createSkeletonView','updateLoadingState','render','_createListItemViews','bind','searchView','bindTemplate','ck-ai-chat-history__content','itemsViews','368UelMlV','sections','delegate','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_LABEL_NEW_CHAT','_createEmptyStateView','ck-ai-chat-history__empty','some','4ezyOPO','element','48aTAMGQ','div','AI_CHAT_HISTORY_HEADING','add','ck-hidden','7960477xvAcRO','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','ck-ai-chat-history__empty-message','title','updateItemLoadingState','fire','splice','search','openChat','ck-ai-notification','hasItems','remove','isMaximized','_refreshSearch','clear','updateItemTitle','_createErrorView','setTemplate','AI_CHAT_HISTORY_EMPTY_MESSAGE','change:hasItems','locale','ck-ai-chat__start-conversation','getItem','removeHistoryItem','indexOf','_createSearchView','sectionsView','children','ck-ai-notification_error__dismiss-button','value','1209723cyjdKA','errorMessage','updateHistoryItemsWithCategories','skeletonView','ck-reset_all','length','isLoading','fieldView','ltr','change:isLoading','2183522hzykIC','addMany','push','queryView','ck-ai-header\x20ck-ai-header_history','_updateViewVisibility','emptyView','isVisible','mainErrorView','47430zCzBpK','isSearchViewVisible','resizeButton','removeItem','execute','change:errorMessage','AI_CHAT_HISTORY_SEARCH_LABEL','updateTitle','aiHistory','ck-ai-notification_error','740265jaVTHo'];_0x5645=function(){return _0x37d913;};return _0x5645();}const _0x5e9093=_0x5264;(function(_0xabc051,_0x4f27b1){const _0x5075c6=_0x5264,_0x2a78e9=_0xabc051();while(!![]){try{const _0x11c29e=parseInt(_0x5075c6(0x146))/0x1+parseInt(_0x5075c6(0x18c))/0x2+parseInt(_0x5075c6(0x182))/0x3*(parseInt(_0x5075c6(0x15d))/0x4)+parseInt(_0x5075c6(0x19f))/0x5*(parseInt(_0x5075c6(0x15f))/0x6)+-parseInt(_0x5075c6(0x164))/0x7+parseInt(_0x5075c6(0x155))/0x8*(-parseInt(_0x5075c6(0x195))/0x9)+-parseInt(_0x5075c6(0x14b))/0xa;if(_0x11c29e===_0x4f27b1)break;else _0x2a78e9['push'](_0x2a78e9['shift']());}catch(_0x3274b1){_0x2a78e9['push'](_0x2a78e9['shift']());}}}(_0x5645,0xd2fb6));import{View as _0x3efea0,SearchTextView as _0x169bd3,FormHeaderView as _0x9e7abf,ButtonView as _0x56e5a7}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x8f7cb0,IconCancel as _0x4b6f7b,IconPlus as _0x6ce1ec}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2d6469}from'./aichathistorysectionlistview.js';function _0x5264(_0x44e0f7,_0xc100e){const _0x56451b=_0x5645();return _0x5264=function(_0x52647b,_0x458c57){_0x52647b=_0x52647b-0x146;let _0x2a512b=_0x56451b[_0x52647b];return _0x2a512b;},_0x5264(_0x44e0f7,_0xc100e);}import{AIChatHistoryListView as _0x45a517}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x56f91c}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x1be563}from'../aichathistoryui.js';import{AISkeletonView as _0x540ebb,SKELETON_DEFINITIONS as _0x297ad1}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4cbcb9}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2349f5}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x3efea0{[_0x5e9093(0x151)];[_0x5e9093(0x194)];[_0x5e9093(0x185)];[_0x5e9093(0x192)];[_0x5e9093(0x17e)];[_0x5e9093(0x197)];constructor(_0x298f6,_0x2ff22b){const _0x32455a=_0x5e9093;super(_0x298f6),this[_0x32455a(0x148)](_0x32455a(0x16e),!0x1),this[_0x32455a(0x148)](_0x32455a(0x188),!0x0),this[_0x32455a(0x148)](_0x32455a(0x183),''),this[_0x32455a(0x148)](_0x32455a(0x170),!0x1),this[_0x32455a(0x148)](_0x32455a(0x196),!0x1),this[_0x32455a(0x148)](_0x32455a(0x1a0),!0x1),this[_0x32455a(0x148)](_0x32455a(0x147),!0x1);const _0x205e9f=new _0x9e7abf(_0x298f6,{'label':_0x2349f5(_0x298f6,_0x32455a(0x161)),'icon':_0x8f7cb0,'class':_0x32455a(0x190)});_0x2ff22b&&(this[_0x32455a(0x197)]=_0x4cbcb9(_0x298f6,this),_0x205e9f[_0x32455a(0x17f)][_0x32455a(0x162)](this[_0x32455a(0x197)])),this[_0x32455a(0x17e)]=new _0x2d6469(_0x298f6,[]),this[_0x32455a(0x17e)][_0x32455a(0x157)](..._0x1be563)['to'](this),this[_0x32455a(0x194)]=this[_0x32455a(0x174)](),this[_0x32455a(0x185)]=this[_0x32455a(0x14c)](),this[_0x32455a(0x192)]=this[_0x32455a(0x15a)](),this[_0x32455a(0x151)]=this[_0x32455a(0x17d)](),this[_0x32455a(0x194)][_0x32455a(0x1a1)]({'attributes':{'class':[this[_0x32455a(0x152)]['if'](_0x32455a(0x147),_0x32455a(0x163),_0x21272d=>!_0x21272d)]}}),this['on'](_0x32455a(0x18b),()=>this[_0x32455a(0x191)]()),this['on'](_0x32455a(0x177),()=>this[_0x32455a(0x191)]()),this['on'](_0x32455a(0x19a),()=>this[_0x32455a(0x191)]()),this[_0x32455a(0x175)]({'tag':_0x32455a(0x160),'attributes':{'class':['ck',_0x32455a(0x186),_0x32455a(0x14a),_0x32455a(0x1a2)],'dir':_0x32455a(0x18a)},'children':[_0x205e9f,{'tag':_0x32455a(0x160),'attributes':{'class':[_0x32455a(0x153)]},'children':[this[_0x32455a(0x185)],this[_0x32455a(0x194)],this[_0x32455a(0x192)],this[_0x32455a(0x151)]]}]});}[_0x5e9093(0x191)](){const _0x3b7ec7=_0x5e9093;this[_0x3b7ec7(0x196)]=!this[_0x3b7ec7(0x188)]&&this[_0x3b7ec7(0x16e)],this[_0x3b7ec7(0x1a0)]=!this[_0x3b7ec7(0x188)]&&!this[_0x3b7ec7(0x16e)]&&!this[_0x3b7ec7(0x183)],this[_0x3b7ec7(0x147)]=!this[_0x3b7ec7(0x196)]&&!!this[_0x3b7ec7(0x183)];}[_0x5e9093(0x17d)](){const _0x256eaa=_0x5e9093,_0x46ab39=new _0x169bd3(this[_0x256eaa(0x178)],{'filteredView':this[_0x256eaa(0x17e)],'queryView':{'label':_0x2349f5(this[_0x256eaa(0x178)],_0x256eaa(0x19b))},'infoView':{'text':{'notFound':{'primary':_0x4f6656=>_0x2349f5(this[_0x256eaa(0x178)],_0x256eaa(0x165),_0x4f6656),'secondary':_0x2349f5(this[_0x256eaa(0x178)],_0x256eaa(0x158))}}}}),_0x17e4b4=this[_0x256eaa(0x174)]();return _0x17e4b4[_0x256eaa(0x1a1)]({'attributes':{'class':[this[_0x256eaa(0x152)]['if'](_0x256eaa(0x183),_0x256eaa(0x163),_0x16768f=>!_0x16768f)]}}),_0x46ab39['on'](_0x256eaa(0x14e),()=>{const _0x13b4da=_0x256eaa;_0x46ab39[_0x13b4da(0x17f)][_0x13b4da(0x162)](_0x17e4b4,0x1);}),_0x46ab39[_0x256eaa(0x1a1)]({'attributes':{'class':[this[_0x256eaa(0x152)]['if'](_0x256eaa(0x196),_0x256eaa(0x163),_0x77321c=>!_0x77321c)]}}),_0x46ab39;}[_0x5e9093(0x14c)](){const _0x26c7e1=_0x5e9093,_0x8ebe45=new _0x540ebb(this[_0x26c7e1(0x178)],_0x297ad1[_0x26c7e1(0x19d)]);return _0x8ebe45[_0x26c7e1(0x1a1)]({'attributes':{'class':[this[_0x26c7e1(0x152)]['if'](_0x26c7e1(0x188),_0x26c7e1(0x163),_0x3aaafe=>!_0x3aaafe)]}}),_0x8ebe45;}[_0x5e9093(0x174)](){const _0x3bc976=_0x5e9093,_0x16f0ca=new _0x3efea0(this[_0x3bc976(0x178)]),_0x3cfb18=new _0x56e5a7(this[_0x3bc976(0x178)]);_0x3cfb18[_0x3bc976(0x148)]({'withText':!0x1,'icon':_0x4b6f7b,'class':_0x3bc976(0x180)}),_0x3cfb18[_0x3bc976(0x150)](_0x3bc976(0x193))['to'](this,_0x3bc976(0x16e),_0x209851=>!!_0x209851),_0x3cfb18['on'](_0x3bc976(0x199),()=>{const _0x22a373=_0x3bc976;this[_0x22a373(0x183)]='';});const _0x568139=this[_0x3bc976(0x152)];return _0x16f0ca[_0x3bc976(0x175)]({'tag':_0x3bc976(0x160),'attributes':{'class':['ck',_0x3bc976(0x16d),_0x3bc976(0x19e)]},'children':[{'tag':'p','children':[{'text':_0x568139['to'](_0x3bc976(0x183))}]},_0x3cfb18]}),_0x16f0ca;}[_0x5e9093(0x15a)](){const _0x43fa36=_0x5e9093,_0x50599e=new _0x56e5a7(this[_0x43fa36(0x178)]);_0x50599e[_0x43fa36(0x148)]({'label':_0x2349f5(this[_0x43fa36(0x178)],_0x43fa36(0x159)),'withText':!0x0,'icon':_0x6ce1ec,'class':_0x43fa36(0x179)}),_0x50599e['on'](_0x43fa36(0x199),()=>{const _0x5ca967=_0x43fa36;this[_0x5ca967(0x169)](_0x5ca967(0x16c));});const _0x15a305=new _0x3efea0(this[_0x43fa36(0x178)]);return _0x15a305[_0x43fa36(0x175)]({'tag':_0x43fa36(0x160),'attributes':{'class':[_0x43fa36(0x15b),this[_0x43fa36(0x152)]['if'](_0x43fa36(0x1a0),_0x43fa36(0x163),_0x15b375=>!_0x15b375)]},'children':[{'tag':'p','attributes':{'class':[_0x43fa36(0x166)]},'children':[_0x2349f5(this[_0x43fa36(0x178)],_0x43fa36(0x176))]},_0x50599e]}),_0x15a305;}[_0x5e9093(0x14f)](_0x46fa77,_0x14fdd8){const _0x3d3b5e=_0x5e9093,_0x1f0132=[];for(const _0x475d17 of _0x46fa77){const _0x1a13ab=new _0x56f91c(_0x14fdd8,_0x475d17);_0x1a13ab[_0x3d3b5e(0x157)](..._0x1be563)['to'](this),_0x1f0132[_0x3d3b5e(0x18e)](_0x1a13ab);}return _0x1f0132;}[_0x5e9093(0x184)](_0x48fa95){const _0x52bff6=_0x5e9093,_0x444fb8=this[_0x52bff6(0x178)]||'en',_0x3c97d0=[];for(const _0x324fe7 of _0x48fa95){const _0x56f5a5=this[_0x52bff6(0x14f)](_0x324fe7[_0x52bff6(0x149)],_0x444fb8);_0x3c97d0[_0x52bff6(0x18e)](new _0x45a517(_0x444fb8,{'title':_0x324fe7[_0x52bff6(0x167)],'items':_0x56f5a5}));}this[_0x52bff6(0x17e)][_0x52bff6(0x156)]=_0x3c97d0,this[_0x52bff6(0x17e)][_0x52bff6(0x149)][_0x52bff6(0x172)](),this[_0x52bff6(0x17e)][_0x52bff6(0x149)][_0x52bff6(0x18d)](_0x3c97d0),this[_0x52bff6(0x16e)]=_0x48fa95[_0x52bff6(0x15c)](_0x2740c7=>_0x2740c7[_0x52bff6(0x149)][_0x52bff6(0x187)]>0x0),this[_0x52bff6(0x171)]();}[_0x5e9093(0x17b)](_0x5910f1){const _0x4c68df=_0x5e9093;for(const _0x983afa of this[_0x4c68df(0x17e)][_0x4c68df(0x156)]){const _0x29b2c9=_0x983afa[_0x4c68df(0x17a)](_0x5910f1);if(_0x29b2c9){if(_0x983afa[_0x4c68df(0x198)](_0x29b2c9),0x0===_0x983afa[_0x4c68df(0x154)][_0x4c68df(0x187)]){const _0x2b1477=this[_0x4c68df(0x17e)][_0x4c68df(0x156)][_0x4c68df(0x17c)](_0x983afa);-0x1!==_0x2b1477&&(this[_0x4c68df(0x17e)][_0x4c68df(0x156)][_0x4c68df(0x16a)](_0x2b1477,0x1),this[_0x4c68df(0x17e)][_0x4c68df(0x149)][_0x4c68df(0x16f)](_0x983afa));}this[_0x4c68df(0x16e)]=this[_0x4c68df(0x17e)][_0x4c68df(0x156)][_0x4c68df(0x187)]>0x0,this[_0x4c68df(0x171)]();break;}}}[_0x5e9093(0x173)](_0x1dcac2,_0x5a2fd4){const _0x45e7e2=_0x5e9093;for(const _0x3117fc of this[_0x45e7e2(0x17e)][_0x45e7e2(0x156)]){const _0x5b65d3=_0x3117fc[_0x45e7e2(0x17a)](_0x1dcac2);if(_0x5b65d3){_0x5b65d3[_0x45e7e2(0x19c)](_0x5a2fd4);break;}}}[_0x5e9093(0x168)](_0x38c045,_0x3f2203,_0x389d7e){const _0x4e7e24=_0x5e9093;for(const _0x3d44ce of this[_0x4e7e24(0x17e)][_0x4e7e24(0x156)]){const _0x3f93a4=_0x3d44ce[_0x4e7e24(0x17a)](_0x38c045);if(_0x3f93a4){_0x3f93a4[_0x4e7e24(0x14d)](_0x3f2203,_0x389d7e);break;}}}[_0x5e9093(0x171)](){const _0x1c38a5=_0x5e9093;if(this[_0x1c38a5(0x16e)]){const _0x89259f=this[_0x1c38a5(0x151)][_0x1c38a5(0x18f)][_0x1c38a5(0x189)]?.[_0x1c38a5(0x15e)]?.[_0x1c38a5(0x181)]||'';this[_0x1c38a5(0x151)][_0x1c38a5(0x16b)](_0x89259f);}}}
|
|
23
|
+
const _0x2eb682=_0x1a7f;(function(_0x16cde3,_0x423abb){const _0x39e3ed=_0x1a7f,_0x5ec267=_0x16cde3();while(!![]){try{const _0x1aa77e=-parseInt(_0x39e3ed(0x207))/0x1+parseInt(_0x39e3ed(0x1e0))/0x2+-parseInt(_0x39e3ed(0x1e6))/0x3+-parseInt(_0x39e3ed(0x1d7))/0x4*(parseInt(_0x39e3ed(0x1f5))/0x5)+-parseInt(_0x39e3ed(0x208))/0x6+-parseInt(_0x39e3ed(0x1dc))/0x7*(parseInt(_0x39e3ed(0x1de))/0x8)+-parseInt(_0x39e3ed(0x205))/0x9*(-parseInt(_0x39e3ed(0x1c1))/0xa);if(_0x1aa77e===_0x423abb)break;else _0x5ec267['push'](_0x5ec267['shift']());}catch(_0x4567e7){_0x5ec267['push'](_0x5ec267['shift']());}}}(_0x52c8,0x74e3f));import{View as _0x1ecfae,SearchTextView as _0x4020db,FormHeaderView as _0x2fe86f,ButtonView as _0x3a38a3}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x1c519c,IconCancel as _0x116f43,IconPlus as _0x4766be}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x334829}from'./aichathistorysectionlistview.js';function _0x52c8(){const _0x56caba=['itemsViews','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','indexOf','_createSkeletonView','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-chat__start-conversation','removeHistoryItem','hasItems','clear','10201662zaaIBG','updateItemTitle','679848KEWgll','3982992YzbEak','ltr','isVisible','_createListItemViews','errorMessage','isEmptyViewVisible','sectionsView','bindTemplate','ck-ai-notification','ck-ai-chat-history__empty-message','change:errorMessage','ck-rounded-corners','emptyView','queryView','_createErrorView','splice','isMaximized','openChat','ck-reset_all','value','fieldView','AI_CHAT_LABEL_NEW_CHAT','30ZkZVYd','removeItem','getItem','isMainErrorViewVisible','ck-ai-notification_error__dismiss-button','search','sections','fire','children','bind','_refreshSearch','extendTemplate','aiHistory','updateLoadingState','render','isLoading','searchView','AI_CHAT_HISTORY_HEADING','updateTitle','execute','ck-ai-chat-history','title','4nNUoRP','ck-ai-chat-history__empty','some','isSearchViewVisible','updateItemLoadingState','35MKBcow','remove','207032vMrgVA','setTemplate','447602EIDVbC','element','ck-ai-header\x20ck-ai-header_history','ck-ai-notification_error','delegate','updateHistoryItemsWithCategories','2821074MztQoG','ck-ai-chat-history__content','change:isLoading','_createSearchView','ck-hidden','resizeButton','skeletonView','items','change:hasItems','_createEmptyStateView','mainErrorView','div','set','push','_updateViewVisibility','3660695vMaVpY','length','locale','add','AI_CHAT_HISTORY_EMPTY_MESSAGE','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','addMany'];_0x52c8=function(){return _0x56caba;};return _0x52c8();}import{AIChatHistoryListView as _0x1e2f8a}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x7799a9}from'./aichathistorylistitemview.js';function _0x1a7f(_0x3fb0aa,_0x3a2ca3){const _0x52c8f9=_0x52c8();return _0x1a7f=function(_0x1a7f11,_0x752df8){_0x1a7f11=_0x1a7f11-0x1ae;let _0x4b089a=_0x52c8f9[_0x1a7f11];return _0x4b089a;},_0x1a7f(_0x3fb0aa,_0x3a2ca3);}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x1fe072}from'../aichathistoryui.js';import{AISkeletonView as _0x5ef194,SKELETON_DEFINITIONS as _0x2c900a}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x5b8487}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x15ef39}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x1ecfae{[_0x2eb682(0x1d1)];[_0x2eb682(0x1f0)];[_0x2eb682(0x1ec)];[_0x2eb682(0x1b7)];[_0x2eb682(0x1b1)];[_0x2eb682(0x1eb)];constructor(_0xfcf4dd,_0xcee684){const _0x507f05=_0x2eb682;super(_0xfcf4dd),this[_0x507f05(0x1f2)](_0x507f05(0x203),!0x1),this[_0x507f05(0x1f2)](_0x507f05(0x1d0),!0x0),this[_0x507f05(0x1f2)](_0x507f05(0x1af),''),this[_0x507f05(0x1f2)](_0x507f05(0x1bb),!0x1),this[_0x507f05(0x1f2)](_0x507f05(0x1da),!0x1),this[_0x507f05(0x1f2)](_0x507f05(0x1b0),!0x1),this[_0x507f05(0x1f2)](_0x507f05(0x1c4),!0x1);const _0x37459d=new _0x2fe86f(_0xfcf4dd,{'label':_0x15ef39(_0xfcf4dd,_0x507f05(0x1d2)),'icon':_0x1c519c,'class':_0x507f05(0x1e2)});_0xcee684&&(this[_0x507f05(0x1eb)]=_0x5b8487(_0xfcf4dd,this),_0x37459d[_0x507f05(0x1c9)][_0x507f05(0x1f8)](this[_0x507f05(0x1eb)])),this[_0x507f05(0x1b1)]=new _0x334829(_0xfcf4dd,[]),this[_0x507f05(0x1b1)][_0x507f05(0x1e4)](..._0x1fe072)['to'](this),this[_0x507f05(0x1f0)]=this[_0x507f05(0x1b9)](),this[_0x507f05(0x1ec)]=this[_0x507f05(0x1ff)](),this[_0x507f05(0x1b7)]=this[_0x507f05(0x1ef)](),this[_0x507f05(0x1d1)]=this[_0x507f05(0x1e9)](),this[_0x507f05(0x1f0)][_0x507f05(0x1cc)]({'attributes':{'class':[this[_0x507f05(0x1b2)]['if'](_0x507f05(0x1c4),_0x507f05(0x1ea),_0x1a619e=>!_0x1a619e)]}}),this['on'](_0x507f05(0x1e8),()=>this[_0x507f05(0x1f4)]()),this['on'](_0x507f05(0x1ee),()=>this[_0x507f05(0x1f4)]()),this['on'](_0x507f05(0x1b5),()=>this[_0x507f05(0x1f4)]()),this[_0x507f05(0x1df)]({'tag':_0x507f05(0x1f1),'attributes':{'class':['ck',_0x507f05(0x1bd),_0x507f05(0x1d5),_0x507f05(0x1b6)],'dir':_0x507f05(0x209)},'children':[_0x37459d,{'tag':_0x507f05(0x1f1),'attributes':{'class':[_0x507f05(0x1e7)]},'children':[this[_0x507f05(0x1ec)],this[_0x507f05(0x1f0)],this[_0x507f05(0x1b7)],this[_0x507f05(0x1d1)]]}]});}[_0x2eb682(0x1f4)](){const _0x4e648a=_0x2eb682;this[_0x4e648a(0x1da)]=!this[_0x4e648a(0x1d0)]&&this[_0x4e648a(0x203)],this[_0x4e648a(0x1b0)]=!this[_0x4e648a(0x1d0)]&&!this[_0x4e648a(0x203)]&&!this[_0x4e648a(0x1af)],this[_0x4e648a(0x1c4)]=!this[_0x4e648a(0x1da)]&&!!this[_0x4e648a(0x1af)];}[_0x2eb682(0x1e9)](){const _0x285e12=_0x2eb682,_0x1fcb0c=new _0x4020db(this[_0x285e12(0x1f7)],{'filteredView':this[_0x285e12(0x1b1)],'queryView':{'label':_0x15ef39(this[_0x285e12(0x1f7)],_0x285e12(0x200))},'infoView':{'text':{'notFound':{'primary':_0x396c22=>_0x15ef39(this[_0x285e12(0x1f7)],_0x285e12(0x1fa),_0x396c22),'secondary':_0x15ef39(this[_0x285e12(0x1f7)],_0x285e12(0x1fd))}}}}),_0x16b97f=this[_0x285e12(0x1b9)]();return _0x16b97f[_0x285e12(0x1cc)]({'attributes':{'class':[this[_0x285e12(0x1b2)]['if'](_0x285e12(0x1af),_0x285e12(0x1ea),_0x1b1934=>!_0x1b1934)]}}),_0x1fcb0c['on'](_0x285e12(0x1cf),()=>{const _0x4c814e=_0x285e12;_0x1fcb0c[_0x4c814e(0x1c9)][_0x4c814e(0x1f8)](_0x16b97f,0x1);}),_0x1fcb0c[_0x285e12(0x1cc)]({'attributes':{'class':[this[_0x285e12(0x1b2)]['if'](_0x285e12(0x1da),_0x285e12(0x1ea),_0x146880=>!_0x146880)]}}),_0x1fcb0c;}[_0x2eb682(0x1ff)](){const _0x6b1104=_0x2eb682,_0x34deff=new _0x5ef194(this[_0x6b1104(0x1f7)],_0x2c900a[_0x6b1104(0x1cd)]);return _0x34deff[_0x6b1104(0x1cc)]({'attributes':{'class':[this[_0x6b1104(0x1b2)]['if'](_0x6b1104(0x1d0),_0x6b1104(0x1ea),_0x7a6411=>!_0x7a6411)]}}),_0x34deff;}[_0x2eb682(0x1b9)](){const _0xad0b5f=_0x2eb682,_0x3db035=new _0x1ecfae(this[_0xad0b5f(0x1f7)]),_0x2546be=new _0x3a38a3(this[_0xad0b5f(0x1f7)]);_0x2546be[_0xad0b5f(0x1f2)]({'withText':!0x1,'icon':_0x116f43,'class':_0xad0b5f(0x1c5)}),_0x2546be[_0xad0b5f(0x1ca)](_0xad0b5f(0x20a))['to'](this,_0xad0b5f(0x203),_0x3cc55b=>!!_0x3cc55b),_0x2546be['on'](_0xad0b5f(0x1d4),()=>{const _0x210574=_0xad0b5f;this[_0x210574(0x1af)]='';});const _0x253e26=this[_0xad0b5f(0x1b2)];return _0x3db035[_0xad0b5f(0x1df)]({'tag':_0xad0b5f(0x1f1),'attributes':{'class':['ck',_0xad0b5f(0x1b3),_0xad0b5f(0x1e3)]},'children':[{'tag':'p','children':[{'text':_0x253e26['to'](_0xad0b5f(0x1af))}]},_0x2546be]}),_0x3db035;}[_0x2eb682(0x1ef)](){const _0x2446ce=_0x2eb682,_0x3441c2=new _0x3a38a3(this[_0x2446ce(0x1f7)]);_0x3441c2[_0x2446ce(0x1f2)]({'label':_0x15ef39(this[_0x2446ce(0x1f7)],_0x2446ce(0x1c0)),'withText':!0x0,'icon':_0x4766be,'class':_0x2446ce(0x201)}),_0x3441c2['on'](_0x2446ce(0x1d4),()=>{const _0x9558fd=_0x2446ce;this[_0x9558fd(0x1c8)](_0x9558fd(0x1bc));});const _0x423fd8=new _0x1ecfae(this[_0x2446ce(0x1f7)]);return _0x423fd8[_0x2446ce(0x1df)]({'tag':_0x2446ce(0x1f1),'attributes':{'class':[_0x2446ce(0x1d8),this[_0x2446ce(0x1b2)]['if'](_0x2446ce(0x1b0),_0x2446ce(0x1ea),_0x89bdb4=>!_0x89bdb4)]},'children':[{'tag':'p','attributes':{'class':[_0x2446ce(0x1b4)]},'children':[_0x15ef39(this[_0x2446ce(0x1f7)],_0x2446ce(0x1f9))]},_0x3441c2]}),_0x423fd8;}[_0x2eb682(0x1ae)](_0x38f921,_0xbc4fdd){const _0x3bbfe0=_0x2eb682,_0x454a7a=[];for(const _0x35e495 of _0x38f921){const _0x491a74=new _0x7799a9(_0xbc4fdd,_0x35e495);_0x491a74[_0x3bbfe0(0x1e4)](..._0x1fe072)['to'](this),_0x454a7a[_0x3bbfe0(0x1f3)](_0x491a74);}return _0x454a7a;}[_0x2eb682(0x1e5)](_0x4e0ffe){const _0x2fb43a=_0x2eb682,_0xbca781=this[_0x2fb43a(0x1f7)]||'en',_0x5c36d9=[];for(const _0x41c3ad of _0x4e0ffe){const _0x331099=this[_0x2fb43a(0x1ae)](_0x41c3ad[_0x2fb43a(0x1ed)],_0xbca781);_0x5c36d9[_0x2fb43a(0x1f3)](new _0x1e2f8a(_0xbca781,{'title':_0x41c3ad[_0x2fb43a(0x1d6)],'items':_0x331099}));}this[_0x2fb43a(0x1b1)][_0x2fb43a(0x1c7)]=_0x5c36d9,this[_0x2fb43a(0x1b1)][_0x2fb43a(0x1ed)][_0x2fb43a(0x204)](),this[_0x2fb43a(0x1b1)][_0x2fb43a(0x1ed)][_0x2fb43a(0x1fb)](_0x5c36d9),this[_0x2fb43a(0x203)]=_0x4e0ffe[_0x2fb43a(0x1d9)](_0x457cb8=>_0x457cb8[_0x2fb43a(0x1ed)][_0x2fb43a(0x1f6)]>0x0),this[_0x2fb43a(0x1cb)]();}[_0x2eb682(0x202)](_0x2835af){const _0x1970a9=_0x2eb682;for(const _0x3b6a5c of this[_0x1970a9(0x1b1)][_0x1970a9(0x1c7)]){const _0x5ee1b6=_0x3b6a5c[_0x1970a9(0x1c3)](_0x2835af);if(_0x5ee1b6){if(_0x3b6a5c[_0x1970a9(0x1c2)](_0x5ee1b6),0x0===_0x3b6a5c[_0x1970a9(0x1fc)][_0x1970a9(0x1f6)]){const _0x50e5ce=this[_0x1970a9(0x1b1)][_0x1970a9(0x1c7)][_0x1970a9(0x1fe)](_0x3b6a5c);-0x1!==_0x50e5ce&&(this[_0x1970a9(0x1b1)][_0x1970a9(0x1c7)][_0x1970a9(0x1ba)](_0x50e5ce,0x1),this[_0x1970a9(0x1b1)][_0x1970a9(0x1ed)][_0x1970a9(0x1dd)](_0x3b6a5c));}this[_0x1970a9(0x203)]=this[_0x1970a9(0x1b1)][_0x1970a9(0x1c7)][_0x1970a9(0x1f6)]>0x0,this[_0x1970a9(0x1cb)]();break;}}}[_0x2eb682(0x206)](_0x12ac7e,_0x1a10e3){const _0x42e8d1=_0x2eb682;for(const _0x3f53ab of this[_0x42e8d1(0x1b1)][_0x42e8d1(0x1c7)]){const _0xfa84b0=_0x3f53ab[_0x42e8d1(0x1c3)](_0x12ac7e);if(_0xfa84b0){_0xfa84b0[_0x42e8d1(0x1d3)](_0x1a10e3);break;}}}[_0x2eb682(0x1db)](_0x413b52,_0x2ab044,_0x12495d){const _0x42924a=_0x2eb682;for(const _0x4d3fca of this[_0x42924a(0x1b1)][_0x42924a(0x1c7)]){const _0x17f5f6=_0x4d3fca[_0x42924a(0x1c3)](_0x413b52);if(_0x17f5f6){_0x17f5f6[_0x42924a(0x1ce)](_0x2ab044,_0x12495d);break;}}}[_0x2eb682(0x1cb)](){const _0x1ae9f1=_0x2eb682;if(this[_0x1ae9f1(0x203)]){const _0x44dca0=this[_0x1ae9f1(0x1d1)][_0x1ae9f1(0x1b8)][_0x1ae9f1(0x1bf)]?.[_0x1ae9f1(0x1e1)]?.[_0x1ae9f1(0x1be)]||'';this[_0x1ae9f1(0x1d1)][_0x1ae9f1(0x1c6)](_0x44dca0);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x20f521=_0x3022;function _0x3022(_0x5ead4d,_0x2a5903){const _0x344015=_0x3440();return _0x3022=function(_0x302202,_0x4ab57e){_0x302202=_0x302202-0xd5;let _0x10a254=_0x344015[_0x302202];return _0x10a254;},_0x3022(_0x5ead4d,_0x2a5903);}(function(_0x142f3d,_0x459aaf){const _0x51f7ac=_0x3022,_0x250508=_0x142f3d();while(!![]){try{const _0x2989d1=parseInt(_0x51f7ac(0xe9))/0x1*(parseInt(_0x51f7ac(0xd6))/0x2)+-parseInt(_0x51f7ac(0xf7))/0x3+parseInt(_0x51f7ac(0x12d))/0x4*(-parseInt(_0x51f7ac(0x107))/0x5)+parseInt(_0x51f7ac(0xfc))/0x6+parseInt(_0x51f7ac(0xf6))/0x7*(parseInt(_0x51f7ac(0x109))/0x8)+-parseInt(_0x51f7ac(0xee))/0x9+parseInt(_0x51f7ac(0xed))/0xa;if(_0x2989d1===_0x459aaf)break;else _0x250508['push'](_0x250508['shift']());}catch(_0x398e33){_0x250508['push'](_0x250508['shift']());}}}(_0x3440,0xd12c4));import{AIChatUI as _0x340790}from'../aichat/aichatui.js';import{ContextPlugin as _0x37842b}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x2c8f63}from'./ui/aichatshortcutsview.js';function _0x3440(){const _0xfb1336=['setModel','params','1197hZdzUo','4494822suETPT','config','activeConversation','args','getModel','2995998qgjUql','REVIEW','addCurrentDocumentToChatContext','activateTab','isFromHistory','_shortcutsView','translate','listenTo','_injectShortcuts','ai.chat.shortcuts','ai-chat-shortcuts-translate-not-found','15rKpboc','runReviewCheck','5272hyVBLq','AIChatController','conversationCreated','reviewMode','AITabs','render','init','isOfficialPlugin','CHAT','has','review','setReasoning','setPromptInputValue','interactionStarted','_validateShortcuts','_executeShortcut','_runReviewShortcut','check','AIChatShortcuts','hasFeedItem','addFeedItemCustomElement','language','_runChatShortcut','element','locale','chat','getDefault','TRANSLATE','focusPromptInput','destroy','removeFeedItem','isPremiumPlugin','_shortcuts','fire','string','get','1955884nglLJr','AIChat','forEach','values','_aiChatUI','460HCBvdH','type','view','prompt','chat-shortcuts','pluginName','ai-chat-shortcuts-ai-tabs-not-found','chatModels','AITranslateUI','plugins','setWebSearch','ai-chat-shortcuts-review-mode-not-found','_removeShortcuts','ai-chat-shortcuts-invalid-config','source','includes','execute','_switchTab','custom','1093MWBkaW','requires','_runTranslateShortcut','label','42701630gVsjxe','11804544QcYudj','AIReviewModeUI','sendMessage','find','context','length'];_0x3440=function(){return _0xfb1336;};return _0x3440();}import{CKEditorError as _0x3ff377}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const dt=_0x20f521(0xda);export var AIChatShortcutType;!function(_0x5d8576){const _0x2a6cad=_0x20f521;_0x5d8576[_0x2a6cad(0x111)]=_0x2a6cad(0x122),_0x5d8576[_0x2a6cad(0xfd)]=_0x2a6cad(0x113),_0x5d8576[_0x2a6cad(0x124)]=_0x2a6cad(0x102);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x37842b{[_0x20f521(0x129)];[_0x20f521(0x101)];[_0x20f521(0xd5)];static get[_0x20f521(0xea)](){return[_0x340790];}static get[_0x20f521(0xdb)](){const _0x2984cf=_0x20f521;return _0x2984cf(0x11b);}static get[_0x20f521(0x110)](){return!0x0;}static get[_0x20f521(0x128)](){return!0x0;}[_0x20f521(0x10f)](){const _0x4d1d68=_0x20f521;this[_0x4d1d68(0xd5)]=this[_0x4d1d68(0xf2)][_0x4d1d68(0xdf)][_0x4d1d68(0x12c)](_0x340790),this[_0x4d1d68(0x129)]=this[_0x4d1d68(0xf2)][_0x4d1d68(0xf8)][_0x4d1d68(0x12c)](_0x4d1d68(0x105))??[];const _0x30f27b=this[_0x4d1d68(0xf2)][_0x4d1d68(0xdf)][_0x4d1d68(0x12c)](_0x4d1d68(0x10a));this[_0x4d1d68(0x129)][_0x4d1d68(0xf3)]&&(this[_0x4d1d68(0x117)](),this[_0x4d1d68(0xd5)]['on'](_0x4d1d68(0x10b),()=>{const _0x340b73=_0x4d1d68;_0x30f27b[_0x340b73(0xf9)][_0x340b73(0x100)]||this[_0x340b73(0x104)]();}),this[_0x4d1d68(0x103)](_0x30f27b,_0x4d1d68(0x116),()=>{const _0x285614=_0x4d1d68;this[_0x285614(0xe2)]();}));}[_0x20f521(0x117)](){const _0xcf01f7=_0x20f521,_0x2eead9=Object[_0xcf01f7(0x130)](AIChatShortcutType);this[_0xcf01f7(0x129)][_0xcf01f7(0x12f)](_0xd1cb31=>{const _0x3edccd=_0xcf01f7;let _0xad9226=!0x0;if(_0xd1cb31['id']&&_0xd1cb31[_0x3edccd(0xec)]&&_0x2eead9[_0x3edccd(0xe5)](_0xd1cb31[_0x3edccd(0xd7)])?_0x3edccd(0x122)===_0xd1cb31[_0x3edccd(0xd7)]&&(_0xad9226=_0x3edccd(0x12b)==typeof _0xd1cb31[_0x3edccd(0xd9)]):_0xad9226=!0x1,!_0xad9226)throw new _0x3ff377(_0x3edccd(0xe3),this[_0x3edccd(0xf2)],{'shortcut':_0xd1cb31});});}[_0x20f521(0x104)](){const _0x48dd07=_0x20f521,_0x329be1=this[_0x48dd07(0xf2)][_0x48dd07(0xdf)][_0x48dd07(0x12c)](_0x340790);this[_0x48dd07(0x101)]=new _0x2c8f63(this[_0x48dd07(0xf2)][_0x48dd07(0x121)],this[_0x48dd07(0x129)]),this[_0x48dd07(0x101)][_0x48dd07(0x10e)](),_0x329be1[_0x48dd07(0x11d)](this[_0x48dd07(0x101)][_0x48dd07(0x120)],dt),this[_0x48dd07(0x101)]['on'](_0x48dd07(0xe6),_0x299c4e=>{const _0x58cf37=_0x48dd07,_0x5eec9f=_0x299c4e[_0x58cf37(0xe4)]['id'];this[_0x58cf37(0x118)](_0x5eec9f);});}[_0x20f521(0xe2)](){const _0x35ae93=_0x20f521,_0x18016a=this[_0x35ae93(0xf2)][_0x35ae93(0xdf)][_0x35ae93(0x12c)](_0x340790);_0x18016a[_0x35ae93(0x11c)](dt)&&_0x18016a[_0x35ae93(0x127)](dt),this[_0x35ae93(0x101)]?.[_0x35ae93(0x126)]();}[_0x20f521(0x118)](_0x312477){const _0x35907a=_0x20f521,_0x19257e=this[_0x35907a(0x129)][_0x35907a(0xf1)](_0xe0a802=>_0xe0a802['id']===_0x312477),_0x475d6e=_0x19257e[_0x35907a(0xd7)];_0x35907a(0x122)===_0x475d6e?this[_0x35907a(0x11f)](_0x19257e):_0x35907a(0x113)===_0x475d6e?_0x19257e[_0x35907a(0x11a)]?this[_0x35907a(0x119)](_0x19257e):this[_0x35907a(0xe7)](_0x35907a(0x10c)):_0x35907a(0x102)===_0x475d6e&&(_0x19257e[_0x35907a(0x11e)]?this[_0x35907a(0xeb)](_0x19257e):this[_0x35907a(0xe7)](_0x35907a(0x102)));}[_0x20f521(0xe7)](_0x20a70c){const _0x5d6eae=_0x20f521;if(!this[_0x5d6eae(0xf2)][_0x5d6eae(0xdf)][_0x5d6eae(0x112)](_0x5d6eae(0x10d)))throw new _0x3ff377(_0x5d6eae(0xdc),this[_0x5d6eae(0xf2)],{'tabName':_0x20a70c});this[_0x5d6eae(0xf2)][_0x5d6eae(0xdf)][_0x5d6eae(0x12c)](_0x5d6eae(0x10d))[_0x5d6eae(0xd8)][_0x5d6eae(0xff)](_0x20a70c);}async[_0x20f521(0x11f)]({prompt:_0x5692b6,draftMode:_0x1ffea3,useWebSearch:_0x3c1e24=!0x1,useReasoning:_0x33d4de=!0x1,model:_0x4132b7}){const _0xf4f7e0=_0x20f521,_0x376b52=this[_0xf4f7e0(0xf2)][_0xf4f7e0(0xdf)][_0xf4f7e0(0x12c)](_0xf4f7e0(0x12e)),_0x36f6c0=this[_0xf4f7e0(0xf2)][_0xf4f7e0(0xdf)][_0xf4f7e0(0x12c)](_0xf4f7e0(0x10a)),_0x843349=_0x36f6c0[_0xf4f7e0(0xf9)];let _0x9aa410;_0x9aa410=_0x4132b7?await _0x843349[_0xf4f7e0(0xdd)][_0xf4f7e0(0xfb)](_0x4132b7):await _0x843349[_0xf4f7e0(0xdd)][_0xf4f7e0(0x123)](),_0x9aa410&&await _0x843349[_0xf4f7e0(0xf4)](_0x9aa410),_0x843349[_0xf4f7e0(0xe0)](_0x3c1e24),_0x843349[_0xf4f7e0(0x114)](_0x33d4de),_0x36f6c0[_0xf4f7e0(0xfe)](),_0x1ffea3?(this[_0xf4f7e0(0xd5)][_0xf4f7e0(0x115)](_0x5692b6),this[_0xf4f7e0(0xd5)][_0xf4f7e0(0x125)](!0x0)):_0x376b52[_0xf4f7e0(0xf0)]({'message':_0x5692b6});}[_0x20f521(0x119)]({check:_0x293434,model:_0x3be070,prompt:_0x81454f,params:_0x59b10b}){const _0x4474d6=_0x20f521;if(!this[_0x4474d6(0xf2)][_0x4474d6(0xdf)][_0x4474d6(0x112)](_0x4474d6(0xef)))throw new _0x3ff377(_0x4474d6(0xe1),this[_0x4474d6(0xf2)]);this[_0x4474d6(0xe7)](_0x4474d6(0x10c));const _0x65a168={'id':_0x293434,'isCustom':_0x4474d6(0xe8)===_0x293434};_0x3be070&&_0x81454f&&(_0x65a168[_0x4474d6(0xfa)]={'model':_0x3be070,'prompt':_0x81454f}),_0x59b10b&&(_0x65a168[_0x4474d6(0xf5)]=_0x59b10b),this[_0x4474d6(0xf2)][_0x4474d6(0xdf)][_0x4474d6(0x12c)](_0x4474d6(0xef))[_0x4474d6(0x12a)](_0x4474d6(0x108),_0x65a168);}[_0x20f521(0xeb)]({language:_0x2e436c}){const _0x130264=_0x20f521;if(!this[_0x130264(0xf2)][_0x130264(0xdf)][_0x130264(0x112)](_0x130264(0xde)))throw new _0x3ff377(_0x130264(0x106),this[_0x130264(0xf2)]);this[_0x130264(0xe7)](_0x130264(0x102)),this[_0x130264(0xf2)][_0x130264(0xdf)][_0x130264(0x12c)](_0x130264(0xde))[_0x130264(0x12a)](_0x130264(0x108),{'id':_0x2e436c,'args':{'language':_0x2e436c}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x445c00=_0xd9cb;function _0xd9cb(_0x10cd5f,_0xb1347){const _0x497179=_0x4971();return _0xd9cb=function(_0xd9cbce,_0x10b90a){_0xd9cbce=_0xd9cbce-0xfa;let _0x23ed17=_0x497179[_0xd9cbce];return _0x23ed17;},_0xd9cb(_0x10cd5f,_0xb1347);}(function(_0x1150d8,_0x3f629d){const _0x146deb=_0xd9cb,_0x1335ce=_0x1150d8();while(!![]){try{const _0x384241=parseInt(_0x146deb(0x10f))/0x1*(parseInt(_0x146deb(0x10a))/0x2)+-parseInt(_0x146deb(0xfc))/0x3*(-parseInt(_0x146deb(0x105))/0x4)+-parseInt(_0x146deb(0x10c))/0x5*(parseInt(_0x146deb(0x103))/0x6)+-parseInt(_0x146deb(0xfa))/0x7+parseInt(_0x146deb(0x106))/0x8+parseInt(_0x146deb(0x110))/0x9*(parseInt(_0x146deb(0xff))/0xa)+-parseInt(_0x146deb(0x104))/0xb;if(_0x384241===_0x3f629d)break;else _0x1335ce['push'](_0x1335ce['shift']());}catch(_0x30b839){_0x1335ce['push'](_0x1335ce['shift']());}}}(_0x4971,0x3dd12));import{ListItemView as _0x55e244,ListView as _0x2e1c07,View as _0x257ff3}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x424e52}from'./aichatshortcutview.js';function _0x4971(){const _0x1220a0=['execute','map','303406QfykUm','addMany','5LLmtyl','setTemplate','children','2LoyfWs','144ZvrdQh','1059240Abfzrm','locale','1578onwCyx','delegate','items','228770KIUZUK','ck-ai-chat-shortcuts','listView','div','1822374KCuApK','3020171NpJXaG','340rzwUxG','2149312hlQIWV','add'];_0x4971=function(){return _0x1220a0;};return _0x4971();}export class AIChatShortcutsView extends _0x257ff3{[_0x445c00(0x101)];constructor(_0x85407c,_0xd9233c){const _0x504d0d=_0x445c00;super(_0x85407c);const _0x17f6ae=_0xd9233c[_0x504d0d(0x109)](_0x21fcd3=>{const _0x2ccc87=_0x504d0d,_0x1ff9cf=new _0x55e244(this[_0x2ccc87(0xfb)]),_0x56a16c=new _0x424e52(this[_0x2ccc87(0xfb)],_0x21fcd3);return _0x1ff9cf[_0x2ccc87(0x10e)][_0x2ccc87(0x107)](_0x56a16c),_0x56a16c[_0x2ccc87(0xfd)](_0x2ccc87(0x108))['to'](this),_0x1ff9cf;});this[_0x504d0d(0x101)]=new _0x2e1c07(this[_0x504d0d(0xfb)]),this[_0x504d0d(0x101)][_0x504d0d(0xfe)][_0x504d0d(0x10b)](_0x17f6ae),this[_0x504d0d(0x10d)]({'tag':_0x504d0d(0x102),'attributes':{'class':['ck',_0x504d0d(0x100)]},'children':[this[_0x504d0d(0x101)]]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3745(){const _0x2a067a=['review','125910DWkeJE','4524331cPRIen','translate','extendTemplate','3254590rAMGoG','label','677398KdeprH','icon','ck-ai-chat-shortcut','678156GVAMac','set','chat','1241640XDBenp','1864599gxjSYT'];_0x3745=function(){return _0x2a067a;};return _0x3745();}(function(_0x27cfd1,_0xb8f96){const _0x4569f0=_0x3908,_0x281601=_0x27cfd1();while(!![]){try{const _0x5c0ccc=-parseInt(_0x4569f0(0xac))/0x1+parseInt(_0x4569f0(0xb2))/0x2+parseInt(_0x4569f0(0xb3))/0x3+-parseInt(_0x4569f0(0xaf))/0x4+-parseInt(_0x4569f0(0xb9))/0x5+parseInt(_0x4569f0(0xb5))/0x6+parseInt(_0x4569f0(0xb6))/0x7;if(_0x5c0ccc===_0xb8f96)break;else _0x281601['push'](_0x281601['shift']());}catch(_0x6a2bb0){_0x281601['push'](_0x281601['shift']());}}}(_0x3745,0x648a8));import{ButtonView as _0x110351}from'ckeditor5/src/ui.js';function _0x3908(_0x3ac9dc,_0x5f562f){const _0x374528=_0x3745();return _0x3908=function(_0x39086c,_0x17cd1d){_0x39086c=_0x39086c-0xab;let _0x5db53f=_0x374528[_0x39086c];return _0x5db53f;},_0x3908(_0x3ac9dc,_0x5f562f);}import{IconAIChat as _0x33f126,IconAIReview as _0x25922d,IconAITranslate as _0xa9a165}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x110351{['id'];constructor(_0x3bf393,_0x9cdf25){const _0x3507d8=_0x3908;super(_0x3bf393);const {id:_0x6702af,type:_0x2aaa1,icon:_0x950e2d}=_0x9cdf25;this['id']=_0x6702af,this[_0x3507d8(0xb0)]({'label':_0x9cdf25[_0x3507d8(0xab)],'withText':!0x0,'class':_0x3507d8(0xae)}),this[_0x3507d8(0xb8)]({'attributes':{'data-cke-ai-shortcut-id':_0x9cdf25['id']}}),_0x950e2d?this[_0x3507d8(0xad)]=_0x950e2d:_0x3507d8(0xb1)===_0x2aaa1?this[_0x3507d8(0xad)]=_0x33f126:_0x3507d8(0xb4)===_0x2aaa1?this[_0x3507d8(0xad)]=_0x25922d:_0x3507d8(0xb7)===_0x2aaa1&&(this[_0x3507d8(0xad)]=_0xa9a165);}}
|