@ckeditor/ckeditor5-ai 47.6.1 → 47.6.2-alpha.0
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/LICENSE.md +0 -4
- package/build/ai.js +2 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +1 -0
- package/package.json +15 -16
- 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.d.ts +15 -156
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.d.ts +2 -0
- 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
- package/build/966.ai.js +0 -5
- package/build/translations/en.js +0 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e9d6a=_0x3081;(function(_0xe28feb,_0x6ed90){const _0xd8eee=_0x3081,_0x2a9b36=_0xe28feb();while(!![]){try{const _0x15520c=-parseInt(_0xd8eee(0x151))/0x1+parseInt(_0xd8eee(0x142))/0x2+parseInt(_0xd8eee(0x149))/0x3*(parseInt(_0xd8eee(0x14d))/0x4)+-parseInt(_0xd8eee(0x147))/0x5*(-parseInt(_0xd8eee(0x140))/0x6)+parseInt(_0xd8eee(0x155))/0x7+parseInt(_0xd8eee(0x152))/0x8*(-parseInt(_0xd8eee(0x145))/0x9)+parseInt(_0xd8eee(0x148))/0xa*(-parseInt(_0xd8eee(0x13c))/0xb);if(_0x15520c===_0x6ed90)break;else _0x2a9b36['push'](_0x2a9b36['shift']());}catch(_0x16fa7e){_0x2a9b36['push'](_0x2a9b36['shift']());}}}(_0xf979,0x90aa3));function _0xf979(){const _0x524a48=['370796zAHhyq','completePromise','createTask','8176509hhLZpl','signal','10345rclPBO','3710210yNZwHW','3050727zLaEmf','_abortController','push','reject','4fKFFzh','fire','length','queue','143137dJJkIa','8korjSM','resolve','once','5632361HBPdBR','abort','_queueEmpty','_processQueue','queueEmptyPromise','11kSXXWJ','enqueue','callback','shift','24MOFiJr','isProcessing'];_0xf979=function(){return _0x524a48;};return _0xf979();}function _0x3081(_0x3692d0,_0x56ad3d){const _0xf9790f=_0xf979();return _0x3081=function(_0x308159,_0x1b55fe){_0x308159=_0x308159-0x13b;let _0x14c5bb=_0xf9790f[_0x308159];return _0x14c5bb;},_0x3081(_0x3692d0,_0x56ad3d);}import{EmitterMixin as _0x38ea55}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x38ea55(){[_0x1e9d6a(0x150)]=[];[_0x1e9d6a(0x141)]=!0x1;[_0x1e9d6a(0x14a)];async[_0x1e9d6a(0x13d)](_0xc3f761){const _0x2f34da=_0x1e9d6a,_0x5c8d6e=this[_0x2f34da(0x144)](_0xc3f761);return this[_0x2f34da(0x150)][_0x2f34da(0x14b)](_0x5c8d6e),this[_0x2f34da(0x158)](),_0x5c8d6e[_0x2f34da(0x143)];}[_0x1e9d6a(0x156)](){const _0x4c066d=_0x1e9d6a;this[_0x4c066d(0x141)]&&(this[_0x4c066d(0x14a)][_0x4c066d(0x156)](),this[_0x4c066d(0x14a)]=void 0x0,this[_0x4c066d(0x150)]=[],this[_0x4c066d(0x14e)](_0x4c066d(0x157)),this[_0x4c066d(0x141)]=!0x1);}get[_0x1e9d6a(0x13b)](){const _0x3e67=_0x1e9d6a;return this[_0x3e67(0x150)][_0x3e67(0x14f)]||this[_0x3e67(0x141)]?new Promise(_0x1263f0=>{const _0x269732=_0x3e67;this[_0x269732(0x154)](_0x269732(0x157),()=>{_0x1263f0();});}):Promise[_0x3e67(0x153)]();}async[_0x1e9d6a(0x158)](){const _0x2cf453=_0x1e9d6a;if(!this[_0x2cf453(0x141)]){this[_0x2cf453(0x14a)]=new AbortController(),this[_0x2cf453(0x141)]=!0x0;try{for(;this[_0x2cf453(0x150)][_0x2cf453(0x14f)]&&this[_0x2cf453(0x141)];){const _0x249395=this[_0x2cf453(0x150)][_0x2cf453(0x13f)]();try{await _0x249395[_0x2cf453(0x13e)](this[_0x2cf453(0x14a)][_0x2cf453(0x146)]),_0x249395[_0x2cf453(0x153)]();}catch(_0x4807ac){_0x249395[_0x2cf453(0x14c)](_0x4807ac);}}}finally{this[_0x2cf453(0x141)]=!0x1,this[_0x2cf453(0x14a)]=void 0x0;}this[_0x2cf453(0x14e)](_0x2cf453(0x157));}}[_0x1e9d6a(0x144)](_0x5ae437){let _0x144e1c,_0x2b1dcd;const _0x59c78b=new Promise((_0x1ed912,_0x1d0763)=>{_0x144e1c=_0x1ed912,_0x2b1dcd=_0x1d0763;});return{'callback':_0x5ae437,'resolve':_0x144e1c,'reject':_0x2b1dcd,'completePromise':_0x59c78b};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1cb98b=_0x1f3a;(function(_0x5094d6,_0x1c10d7){var _0x596a5d=_0x1f3a,_0x513707=_0x5094d6();while(!![]){try{var _0x551d93=parseInt(_0x596a5d(0x7f))/0x1*(parseInt(_0x596a5d(0x7e))/0x2)+-parseInt(_0x596a5d(0x7b))/0x3+-parseInt(_0x596a5d(0x86))/0x4+parseInt(_0x596a5d(0x80))/0x5*(parseInt(_0x596a5d(0x87))/0x6)+-parseInt(_0x596a5d(0x83))/0x7*(-parseInt(_0x596a5d(0x78))/0x8)+-parseInt(_0x596a5d(0x84))/0x9*(-parseInt(_0x596a5d(0x7d))/0xa)+parseInt(_0x596a5d(0x85))/0xb*(-parseInt(_0x596a5d(0x7a))/0xc);if(_0x551d93===_0x1c10d7)break;else _0x513707['push'](_0x513707['shift']());}catch(_0x45883e){_0x513707['push'](_0x513707['shift']());}}}(_0x5f49,0x9ba63));import{ContextPlugin as _0x35b3bc}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x32ae47}from'./aichathistorycontroller.js';function _0x5f49(){var _0x314e7a=['isPremiumPlugin','56xmMuFF','153GbTuRB','22fQHgGF','136152ApFxEd','1607586HUvdRF','requires','939992TEEkVb','isOfficialPlugin','14787948FFdRkx','1602477VlEvoC','pluginName','612140DTMcCu','80KrXyZy','15451XUoXBc','20ZJYdBh','AIChatHistory'];_0x5f49=function(){return _0x314e7a;};return _0x5f49();}import{AIChatHistoryUI as _0x2aaebd}from'./aichathistoryui.js';function _0x1f3a(_0x15dd50,_0x3ce213){var _0x5f491d=_0x5f49();return _0x1f3a=function(_0x1f3ab9,_0xeb24ca){_0x1f3ab9=_0x1f3ab9-0x78;var _0x2fc94f=_0x5f491d[_0x1f3ab9];return _0x2fc94f;},_0x1f3a(_0x15dd50,_0x3ce213);}export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x35b3bc{static get[_0x1cb98b(0x88)](){return[_0x32ae47,_0x2aaebd];}static get[_0x1cb98b(0x7c)](){var _0x38dbf4=_0x1cb98b;return _0x38dbf4(0x81);}static get[_0x1cb98b(0x79)](){return!0x0;}static get[_0x1cb98b(0x82)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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);}}
|
|
23
|
+
function _0x7643(){const _0x25d9ea=['36mHOJYF','getMonth','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','6immUtb','_handleSelectConversation','_handleRemove','AI_CHAT_HISTORY_PIN_ACTION','22376pstvDA','setConversationPinned','removeConversation','pin','AI_CHAT_HISTORY_UNPIN_ACTION','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','operation','change:activeConversation','updates','pinned','toLocaleDateString','map','loadItems','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','setLoadingSkeleton','getFullYear','2093395chlHWY','handleRemovedConversation','unpin','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','1870275FrdqDs','getItem','3055130fOUraZ','remove','chat','removeHistoryItem','_showConversationHistory','items','9aeEjjD','openChat','_handleTogglePin','AI_CHAT_HISTORY_CATEGORY_TODAY','resizedTabs','setDate','getItems','history','get','91DfUoan','showError','setIsMaximized','_setItemLoading','_setIsMaximized','updateItemPinned','17744juxfEv','_aiConnector','updateItems','title','_handleEditTitle','AI_CHAT_HISTORY_ERROR_GENERIC','rename','itemUpdated','_getCategorizedItems','updateItemLoadingState','locale','getGroupId','getDate','context','updateItemTitle','_aiChatController','view','push','plugins','177nqxcIa','length','createdAt','itemsLoaded','AI_CHAT_HISTORY_CATEGORY_LATER','isPremiumPlugin','_generateErrorMessage','_clearItemLoading','itemId','init','isOfficialPlugin','listenTo','resize','activeConversation','loadConversation','error','requires','AI_CHAT_UNTITLED_CONVERSATION','editConversationTitle','selectConversation','517630ssdqoJ','AIChatHistoryController','AI_CHAT_HISTORY_CATEGORY_PINNED','activateTab','40ZzCpWG','itemRemoved','resizeTabs','_aiChatHistoryUi','activateTab:history','_handleHistoryErrorUI','_updateHistoryItemsUI','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','25232MpZLeo','removeItem','pluginName'];_0x7643=function(){return _0x25d9ea;};return _0x7643();}const _0x529954=_0x5b8d;(function(_0x353c08,_0xb0bb56){const _0x273207=_0x5b8d,_0x4749d3=_0x353c08();while(!![]){try{const _0x2f2bfa=-parseInt(_0x273207(0x218))/0x1*(-parseInt(_0x273207(0x206))/0x2)+-parseInt(_0x273207(0x1ee))/0x3*(-parseInt(_0x273207(0x1db))/0x4)+-parseInt(_0x273207(0x1c0))/0x5*(-parseInt(_0x273207(0x214))/0x6)+-parseInt(_0x273207(0x1d5))/0x7*(-parseInt(_0x273207(0x20e))/0x8)+-parseInt(_0x273207(0x1cc))/0x9*(parseInt(_0x273207(0x202))/0xa)+parseInt(_0x273207(0x1c4))/0xb*(-parseInt(_0x273207(0x211))/0xc)+-parseInt(_0x273207(0x1c6))/0xd;if(_0x2f2bfa===_0xb0bb56)break;else _0x4749d3['push'](_0x4749d3['shift']());}catch(_0x315141){_0x4749d3['push'](_0x4749d3['shift']());}}}(_0x7643,0x5ad6d));function _0x5b8d(_0x405895,_0x4c1a86){const _0x7643e=_0x7643();return _0x5b8d=function(_0x5b8d81,_0x289511){_0x5b8d81=_0x5b8d81-0x1b3;let _0x371187=_0x7643e[_0x5b8d81];return _0x371187;},_0x5b8d(_0x405895,_0x4c1a86);}import{ContextPlugin as _0x4c7e8b}from'ckeditor5/src/core.js';import{AIConnector as _0x18c4b5}from'../aicore/aiconnector.js';import{AIChatController as _0x1e35e1}from'../aichat/aichatcontroller.js';import{AITabs as _0x5d7cd5}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x180a47}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x320176}from'./model/aichathistoryconversations.js';import{getTranslation as _0x1cde6b}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x4c7e8b{[_0x529954(0x1dc)];[_0x529954(0x209)];[_0x529954(0x1ea)];static get[_0x529954(0x1fe)](){return[_0x18c4b5,_0x1e35e1,_0x180a47,_0x5d7cd5];}static get[_0x529954(0x210)](){const _0x5ceb52=_0x529954;return _0x5ceb52(0x203);}static get[_0x529954(0x1f8)](){return!0x0;}static get[_0x529954(0x1f3)](){return!0x0;}[_0x529954(0x1f7)](){const _0xaed214=_0x529954;this[_0xaed214(0x1dc)]=this[_0xaed214(0x1e8)][_0xaed214(0x1ed)][_0xaed214(0x1d4)](_0x18c4b5),this[_0xaed214(0x209)]=this[_0xaed214(0x1e8)][_0xaed214(0x1ed)][_0xaed214(0x1d4)](_0x180a47),this[_0xaed214(0x1ea)]=this[_0xaed214(0x1e8)][_0xaed214(0x1ed)][_0xaed214(0x1d4)](_0x1e35e1);const _0x20de6d=this[_0xaed214(0x1e8)][_0xaed214(0x1ed)][_0xaed214(0x1d4)](_0x5d7cd5);try{const _0x58402b=this[_0xaed214(0x1ea)][_0xaed214(0x1e6)]();this[_0xaed214(0x1d3)]=new _0x320176({'connector':this[_0xaed214(0x1dc)],'group':_0x58402b}),this[_0xaed214(0x1f9)](this[_0xaed214(0x209)],_0xaed214(0x21a),(_0x4f1f77,_0x3fd9bd)=>{const _0x587622=_0xaed214;this[_0x587622(0x1d8)](_0x3fd9bd['id'],_0x587622(0x1c7)),this[_0x587622(0x216)](_0x3fd9bd['id']);}),this[_0xaed214(0x1f9)](this[_0xaed214(0x209)],_0xaed214(0x200),(_0x48f225,_0x2224e4)=>{const _0x14e72f=_0xaed214;this[_0x14e72f(0x1d8)](_0x2224e4['id'],_0x14e72f(0x1e1)),this[_0x14e72f(0x1df)](_0x2224e4['id'],_0x2224e4[_0x14e72f(0x1de)]);}),this[_0xaed214(0x1f9)](this[_0xaed214(0x1d3)],_0xaed214(0x1e2),(_0x4f1435,_0x20eb0b)=>{const _0x33486c=_0xaed214;void 0x0!==_0x20eb0b[_0x33486c(0x1b8)][_0x33486c(0x1de)]&&this[_0x33486c(0x209)][_0x33486c(0x1e9)](_0x20eb0b[_0x33486c(0x1f6)],_0x20eb0b[_0x33486c(0x1b8)][_0x33486c(0x1de)]),void 0x0!==_0x20eb0b[_0x33486c(0x1b8)][_0x33486c(0x1b9)]&&this[_0x33486c(0x20c)](),this[_0x33486c(0x1f5)](_0x20eb0b[_0x33486c(0x1f6)]);}),this[_0xaed214(0x1f9)](this[_0xaed214(0x1d3)],_0xaed214(0x207),(_0x1c4e7d,_0x13ff5a)=>{const _0x496e48=_0xaed214;this[_0x496e48(0x1ea)][_0x496e48(0x1c1)](_0x13ff5a[_0x496e48(0x1f6)]),this[_0x496e48(0x209)][_0x496e48(0x1c9)](_0x13ff5a[_0x496e48(0x1f6)]),this[_0x496e48(0x1f5)](_0x13ff5a[_0x496e48(0x1f6)]);}),this[_0xaed214(0x1f9)](this[_0xaed214(0x1d3)],_0xaed214(0x1f1),()=>{const _0x3b5cf8=_0xaed214;this[_0x3b5cf8(0x20c)]();}),this[_0xaed214(0x1f9)](this[_0xaed214(0x1d3)],_0xaed214(0x1fd),(_0x50466f,_0x576699)=>{const _0x473f5d=_0xaed214;this[_0x473f5d(0x20b)](_0x576699[_0x473f5d(0x1fd)],_0x576699[_0x473f5d(0x1b6)],_0x576699[_0x473f5d(0x1f6)]);}),this[_0xaed214(0x1f9)](this[_0xaed214(0x209)],_0xaed214(0x201),(_0x4043f2,_0x3f0711)=>{const _0x123dfe=_0xaed214;this[_0x123dfe(0x215)](_0x3f0711['id']);}),this[_0xaed214(0x1f9)](this[_0xaed214(0x209)],_0xaed214(0x219),(_0x39c256,_0x3320f9)=>{const _0xd6d63=_0xaed214,_0x269621=_0x3320f9[_0xd6d63(0x1b9)]?_0xd6d63(0x21b):_0xd6d63(0x1c2);this[_0xd6d63(0x1d8)](_0x3320f9['id'],_0x269621),this[_0xd6d63(0x1ce)](_0x3320f9['id'],_0x3320f9[_0xd6d63(0x1b9)]);}),this[_0xaed214(0x1f9)](this[_0xaed214(0x209)],_0xaed214(0x1cd),()=>{const _0x3abb63=_0xaed214;_0x20de6d[_0x3abb63(0x1eb)][_0x3abb63(0x205)](_0x3abb63(0x1c8));}),this[_0xaed214(0x1f9)](this[_0xaed214(0x1ea)],_0xaed214(0x1b7),()=>{const _0x1eb750=_0xaed214;this[_0x1eb750(0x20c)]();}),_0x20de6d[_0xaed214(0x1eb)]['on'](_0xaed214(0x20a),()=>{const _0x2338fe=_0xaed214;this[_0x2338fe(0x1ca)]();}),this[_0xaed214(0x1f9)](_0x20de6d,_0xaed214(0x1d0),(_0x1fef6c,_0x2d30bf)=>{const _0x18e795=_0xaed214;this[_0x18e795(0x1d9)](_0x2d30bf);}),this[_0xaed214(0x1f9)](this[_0xaed214(0x209)],_0xaed214(0x208),()=>{const _0x2fa969=_0xaed214;_0x20de6d[_0x2fa969(0x1fa)]();});}catch(_0x2011bd){this[_0xaed214(0x20b)](_0x2011bd,_0xaed214(0x1f7));}}async[_0x529954(0x1df)](_0x4ef4dc,_0x52358b){const _0x2ea452=_0x529954;await this[_0x2ea452(0x1d3)][_0x2ea452(0x1e9)](_0x4ef4dc,_0x52358b);}async[_0x529954(0x1ce)](_0x17d9ad,_0x4aae27){const _0x3f8b6c=_0x529954;await this[_0x3f8b6c(0x1d3)][_0x3f8b6c(0x1da)](_0x17d9ad,_0x4aae27);}async[_0x529954(0x216)](_0x26d699){const _0x548c18=_0x529954;await this[_0x548c18(0x1d3)][_0x548c18(0x20f)](_0x26d699);}async[_0x529954(0x215)](_0x43709f){const _0x4fe934=_0x529954;await this[_0x4fe934(0x1ea)][_0x4fe934(0x1fc)](_0x43709f);}async[_0x529954(0x1ca)](){const _0x1a8803=_0x529954;this[_0x1a8803(0x209)][_0x1a8803(0x1d6)](''),this[_0x1a8803(0x209)][_0x1a8803(0x1be)](!0x0),await this[_0x1a8803(0x1d3)][_0x1a8803(0x1f7)](),this[_0x1a8803(0x209)][_0x1a8803(0x1be)](!0x1);}[_0x529954(0x20c)](){const _0xe5a89e=_0x529954,_0x2fe4a7=this[_0xe5a89e(0x1ea)][_0xe5a89e(0x1fb)]?.['id'],_0x5c010a=this[_0xe5a89e(0x1e3)]()[_0xe5a89e(0x1bb)](_0x24e9e8=>({'title':_0x24e9e8[_0xe5a89e(0x1de)],'items':_0x24e9e8[_0xe5a89e(0x1cb)][_0xe5a89e(0x1bb)](_0x5a7812=>({'id':_0x5a7812['id'],'title':_0x5a7812[_0xe5a89e(0x1de)]||_0x1cde6b(this[_0xe5a89e(0x1e8)][_0xe5a89e(0x1e5)],_0xe5a89e(0x1ff)),'createdAt':new Date(_0x5a7812[_0xe5a89e(0x1f0)])[_0xe5a89e(0x1ba)](),'active':_0x5a7812['id']===_0x2fe4a7,'pinned':_0x5a7812[_0xe5a89e(0x1b9)]}))}));this[_0xe5a89e(0x209)][_0xe5a89e(0x1dd)](_0x5c010a);}[_0x529954(0x1d8)](_0x44f47a,_0x1cd002){const _0x51091c=_0x529954;this[_0x51091c(0x209)][_0x51091c(0x1e4)](_0x44f47a,_0x1cd002,!0x0);}[_0x529954(0x1f5)](_0x5dc7df){const _0x17bc4b=_0x529954;this[_0x17bc4b(0x209)][_0x17bc4b(0x1e4)](_0x5dc7df,null,!0x1);}[_0x529954(0x20b)](_0x4a0ed0,_0x4effd,_0x53fd43){const _0x40b758=_0x529954,_0x509e51=this[_0x40b758(0x1f4)](_0x4effd,_0x53fd43);this[_0x40b758(0x209)][_0x40b758(0x1d6)](_0x509e51),_0x53fd43&&this[_0x40b758(0x1f5)](_0x53fd43),this[_0x40b758(0x209)][_0x40b758(0x1be)](!0x1);}[_0x529954(0x1f4)](_0x2042b3,_0x1c1eef){const _0x4c0c25=_0x529954,_0xbe9ad7=_0x1c1eef?this[_0x4c0c25(0x1d3)][_0x4c0c25(0x1c5)](_0x1c1eef):null,_0x5732db=_0xbe9ad7?.[_0x4c0c25(0x1de)]||_0x1cde6b(this[_0x4c0c25(0x1e8)][_0x4c0c25(0x1e5)],_0x4c0c25(0x1ff));switch(_0x2042b3){case _0x4c0c25(0x1e9):return _0x1cde6b(this[_0x4c0c25(0x1e8)][_0x4c0c25(0x1e5)],_0x4c0c25(0x1b5),_0x5732db);case _0x4c0c25(0x1da):{const _0x2f5008=_0x1cde6b(this[_0x4c0c25(0x1e8)][_0x4c0c25(0x1e5)],_0xbe9ad7?.[_0x4c0c25(0x1b9)]?_0x4c0c25(0x1b3):_0x4c0c25(0x217));return _0x1cde6b(this[_0x4c0c25(0x1e8)][_0x4c0c25(0x1e5)],_0x4c0c25(0x213),[_0x2f5008,_0x5732db]);}case _0x4c0c25(0x20f):return _0x1cde6b(this[_0x4c0c25(0x1e8)][_0x4c0c25(0x1e5)],_0x4c0c25(0x1b4),_0x5732db);case _0x4c0c25(0x1f7):case _0x4c0c25(0x1bc):return _0x1cde6b(this[_0x4c0c25(0x1e8)][_0x4c0c25(0x1e5)],_0x4c0c25(0x1bd));default:return _0x1cde6b(this[_0x4c0c25(0x1e8)][_0x4c0c25(0x1e5)],_0x4c0c25(0x1e0));}}[_0x529954(0x1e3)](){const _0x317eef=_0x529954,_0x59a6ae=new Date(),_0xff6caa=new Date(_0x59a6ae[_0x317eef(0x1bf)](),_0x59a6ae[_0x317eef(0x212)](),_0x59a6ae[_0x317eef(0x1e7)]()),_0x1400e4=new Date(_0xff6caa);_0x1400e4[_0x317eef(0x1d1)](_0x1400e4[_0x317eef(0x1e7)]()-0x1);const _0x45dfc5=new Date(_0xff6caa);_0x45dfc5[_0x317eef(0x1d1)](_0x45dfc5[_0x317eef(0x1e7)]()-0xe);const _0x17def1=this[_0x317eef(0x1d3)][_0x317eef(0x1d2)]({'pinned':!0x0}),_0xafd56e=this[_0x317eef(0x1d3)][_0x317eef(0x1d2)]({'from':_0xff6caa,'to':_0xff6caa}),_0x3909f3=this[_0x317eef(0x1d3)][_0x317eef(0x1d2)]({'from':_0x1400e4,'to':_0x1400e4}),_0x5efc4c=this[_0x317eef(0x1d3)][_0x317eef(0x1d2)]({'from':_0x45dfc5,'to':_0x1400e4}),_0x48b348=this[_0x317eef(0x1d3)][_0x317eef(0x1d2)]({'to':_0x45dfc5}),_0x2f62de=[];return _0x17def1[_0x317eef(0x1ef)]>0x0&&_0x2f62de[_0x317eef(0x1ec)]({'title':_0x1cde6b(this[_0x317eef(0x1e8)][_0x317eef(0x1e5)],_0x317eef(0x204)),'items':_0x17def1}),_0xafd56e[_0x317eef(0x1ef)]>0x0&&_0x2f62de[_0x317eef(0x1ec)]({'title':_0x1cde6b(this[_0x317eef(0x1e8)][_0x317eef(0x1e5)],_0x317eef(0x1cf)),'items':_0xafd56e}),_0x3909f3[_0x317eef(0x1ef)]>0x0&&_0x2f62de[_0x317eef(0x1ec)]({'title':_0x1cde6b(this[_0x317eef(0x1e8)][_0x317eef(0x1e5)],_0x317eef(0x20d)),'items':_0x3909f3}),_0x5efc4c[_0x317eef(0x1ef)]>0x0&&_0x2f62de[_0x317eef(0x1ec)]({'title':_0x1cde6b(this[_0x317eef(0x1e8)][_0x317eef(0x1e5)],_0x317eef(0x1c3)),'items':_0x5efc4c}),_0x48b348[_0x317eef(0x1ef)]>0x0&&_0x2f62de[_0x317eef(0x1ec)]({'title':_0x1cde6b(this[_0x317eef(0x1e8)][_0x317eef(0x1e5)],_0x317eef(0x1f2)),'items':_0x48b348}),_0x2f62de;}[_0x529954(0x1d9)](_0x1ba499){const _0x3f0fd6=_0x529954;this[_0x3f0fd6(0x209)][_0x3f0fd6(0x1d7)](_0x1ba499);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b7885=_0x42d0;(function(_0x71f360,_0x21a611){const _0x242e2b=_0x42d0,_0x29eec3=_0x71f360();while(!![]){try{const _0x19a54d=parseInt(_0x242e2b(0x66))/0x1+-parseInt(_0x242e2b(0x6a))/0x2*(parseInt(_0x242e2b(0x7b))/0x3)+parseInt(_0x242e2b(0x8c))/0x4+parseInt(_0x242e2b(0x80))/0x5+parseInt(_0x242e2b(0x8a))/0x6+-parseInt(_0x242e2b(0x91))/0x7+-parseInt(_0x242e2b(0x82))/0x8;if(_0x19a54d===_0x21a611)break;else _0x29eec3['push'](_0x29eec3['shift']());}catch(_0x3b46b4){_0x29eec3['push'](_0x29eec3['shift']());}}}(_0x442e,0x36215));import{ContextPlugin as _0x368086}from'ckeditor5/src/core.js';function _0x42d0(_0x2a356d,_0x3bf1fe){const _0x442ee6=_0x442e();return _0x42d0=function(_0x42d066,_0x433ba5){_0x42d066=_0x42d066-0x66;let _0x1d09e7=_0x442ee6[_0x42d066];return _0x1d09e7;},_0x42d0(_0x2a356d,_0x3bf1fe);}import{AITabs as _0x1fa4a9}from'../aitabs/aitabs.js';import{IconAIHistory as _0x5add63}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x9feff5}from'./ui/aichathistoryview.js';import{getTranslation as _0x261d8a}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x4b7885(0x7a),_0x4b7885(0x79),_0x4b7885(0x73),_0x4b7885(0x7e),_0x4b7885(0x6c),_0x4b7885(0x78),_0x4b7885(0x8e)];export class AIChatHistoryUI extends _0x368086{static get[_0x4b7885(0x7f)](){return[_0x1fa4a9];}[_0x4b7885(0x76)];static get[_0x4b7885(0x75)](){const _0x25ad36=_0x4b7885;return _0x25ad36(0x86);}static get[_0x4b7885(0x8f)](){return!0x0;}static get[_0x4b7885(0x70)](){return!0x0;}constructor(_0x2b5430){const _0x98fd58=_0x4b7885;super(_0x2b5430);const _0x20a3bf=this[_0x98fd58(0x7c)][_0x98fd58(0x81)][_0x98fd58(0x85)](_0x98fd58(0x67));this[_0x98fd58(0x76)]=new _0x9feff5(this[_0x98fd58(0x7c)][_0x98fd58(0x77)],_0x20a3bf[_0x98fd58(0x90)]),this[_0x98fd58(0x76)][_0x98fd58(0x6e)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x20a3bf[_0x98fd58(0x72)][_0x98fd58(0x8b)]({'id':_0x98fd58(0x8d),'buttonLabel':_0x261d8a(this[_0x98fd58(0x7c)][_0x98fd58(0x77)],_0x98fd58(0x83)),'buttonIcon':_0x5add63,'order':0x0,'content':this[_0x98fd58(0x76)]});}[_0x4b7885(0x71)](_0x55c0df){const _0x4d0f95=_0x4b7885;this[_0x4d0f95(0x76)][_0x4d0f95(0x71)](_0x55c0df);}[_0x4b7885(0x6f)](_0x56033f){const _0x23aae9=_0x4b7885;this[_0x23aae9(0x76)][_0x23aae9(0x74)](_0x56033f);}[_0x4b7885(0x87)](_0x59f800,_0x52ea76){const _0x202c05=_0x4b7885;this[_0x202c05(0x76)][_0x202c05(0x87)](_0x59f800,_0x52ea76);}[_0x4b7885(0x88)](_0x4c8038,_0x336b7c,_0x46fa9c){const _0x4a99af=_0x4b7885;this[_0x4a99af(0x76)][_0x4a99af(0x88)](_0x4c8038,_0x336b7c,_0x46fa9c);}[_0x4b7885(0x7d)](_0x208a3a){const _0x11bb53=_0x4b7885;this[_0x11bb53(0x76)][_0x11bb53(0x69)]=_0x208a3a;}[_0x4b7885(0x6b)](_0x2f3f98){const _0x2ff62c=_0x4b7885;this[_0x2ff62c(0x76)][_0x2ff62c(0x6d)]=_0x2f3f98;}[_0x4b7885(0x89)](){const _0x4ee8b6=_0x4b7885;this[_0x4ee8b6(0x76)][_0x4ee8b6(0x6d)]='';}[_0x4b7885(0x84)](_0x341f2a){const _0x3dc15e=_0x4b7885;this[_0x3dc15e(0x76)][_0x3dc15e(0x68)]=_0x341f2a;}}function _0x442e(){const _0x31ca6a=['2745984sPdJQv','AI_CHAT_HISTORY_HEADING','setIsMaximized','get','AIChatHistoryUI','updateItemTitle','updateItemLoadingState','hideError','677928TSJYNY','addTab','1247480zbqWkN','history','resizeTabs','isOfficialPlugin','showResizeButton','664293buoHgv','223521xXokmd','AITabs','isMaximized','isLoading','4bKhKcG','showError','selectConversation','errorMessage','delegate','updateItems','isPremiumPlugin','removeHistoryItem','view','editConversationTitle','updateHistoryItemsWithCategories','pluginName','_historyView','locale','openChat','removeConversation','showConversationHistory','96873ccXPUT','context','setLoadingSkeleton','setConversationPinned','requires','380335rDrseD','plugins'];_0x442e=function(){return _0x31ca6a;};return _0x442e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x523370=_0x2195;function _0x2195(_0x521da0,_0x2a1d3a){const _0x3cbc3c=_0x3cbc();return _0x2195=function(_0x219507,_0x4d803d){_0x219507=_0x219507-0xc7;let _0x4230af=_0x3cbc3c[_0x219507];return _0x4230af;},_0x2195(_0x521da0,_0x2a1d3a);}(function(_0x3d9873,_0x4f1d93){const _0x2e40e4=_0x2195,_0x10153d=_0x3d9873();while(!![]){try{const _0x16af4b=-parseInt(_0x2e40e4(0xdd))/0x1+parseInt(_0x2e40e4(0xcc))/0x2+-parseInt(_0x2e40e4(0xd5))/0x3+-parseInt(_0x2e40e4(0xe9))/0x4*(parseInt(_0x2e40e4(0xdb))/0x5)+parseInt(_0x2e40e4(0xd8))/0x6+-parseInt(_0x2e40e4(0xeb))/0x7+-parseInt(_0x2e40e4(0xc8))/0x8*(-parseInt(_0x2e40e4(0xde))/0x9);if(_0x16af4b===_0x4f1d93)break;else _0x10153d['push'](_0x10153d['shift']());}catch(_0x17e2bf){_0x10153d['push'](_0x10153d['shift']());}}}(_0x3cbc,0x4a006));function _0x3cbc(){const _0x418968=['deleteConversation','updateItemPinned','updatePinned','714576GiiogE','init','getItem','filter','execute','fire','connector','group','find','1017105lliRKl','addItem','itemUpdated','1091100ziZnKG','itemRemoved','from','915WxJVnQ','getTime','175260rNCJZr','9kATFGf','createdAt','getFullYear','getDate','fetchConversations','pinned','getMonth','removeItem','updateConversation','splice','error','12732lrUOyn','getItems','3099621FdISvl','getConversations','updateTitle','findIndex','items','push','updateItemTitle','itemsLoaded','getResult','loadItems','map','10428472znOrDM'];_0x3cbc=function(){return _0x418968;};return _0x3cbc();}import{EmitterMixin as _0x2653ff}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x44efbb}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x2653ff(){[_0x523370(0xef)]=[];[_0x523370(0xd2)];[_0x523370(0xd3)];constructor({connector:_0x176fd2,group:_0x36e59a}){const _0x54a17e=_0x523370;super(),this[_0x54a17e(0xd2)]=_0x176fd2,this[_0x54a17e(0xd3)]=_0x36e59a;}async[_0x523370(0xcd)](){const _0x51709a=_0x523370;try{const _0x434598=this[_0x51709a(0xd2)][_0x51709a(0xe2)](this[_0x51709a(0xd3)]),_0x43652f=await _0x434598[_0x51709a(0xec)]();this[_0x51709a(0xf4)](_0x43652f);}catch(_0x2b25aa){this[_0x51709a(0xd1)](_0x51709a(0xe8),{'error':_0x2b25aa,'operation':_0x51709a(0xcd)});}}[_0x523370(0xd6)](_0x44e946){const _0x273958=_0x523370;this[_0x273958(0xef)][_0x273958(0xf0)](_0x44e946);}async[_0x523370(0xe5)](_0x464608){const _0x45325c=_0x523370,_0x205352=this[_0x45325c(0xef)][_0x45325c(0xee)](_0x1bb7ad=>_0x1bb7ad['id']===_0x464608);if(-0x1===_0x205352)return!0x1;try{return await this[_0x45325c(0xd2)][_0x45325c(0xc9)](_0x464608)[_0x45325c(0xd0)](),this[_0x45325c(0xef)][_0x45325c(0xe7)](_0x205352,0x1),this[_0x45325c(0xd1)](_0x45325c(0xd9),{'itemId':_0x464608}),!0x0;}catch(_0x31b2ad){return this[_0x45325c(0xd1)](_0x45325c(0xe8),{'error':_0x31b2ad,'operation':_0x45325c(0xe5),'itemId':_0x464608}),!0x1;}}[_0x523370(0xce)](_0x3fa7e0){const _0x12fb8b=_0x523370;return this[_0x12fb8b(0xef)][_0x12fb8b(0xd4)](_0x609003=>_0x609003['id']===_0x3fa7e0);}async[_0x523370(0xf1)](_0x29e4c9,_0x57ea90){const _0x19f2ee=_0x523370,_0x373f97=this[_0x19f2ee(0xce)](_0x29e4c9);if(!_0x373f97)return!0x1;try{return await this[_0x19f2ee(0xd2)][_0x19f2ee(0xe6)](_0x29e4c9,{'title':_0x57ea90})[_0x19f2ee(0xf3)](),_0x373f97[_0x19f2ee(0xed)](_0x57ea90),this[_0x19f2ee(0xd1)](_0x19f2ee(0xd7),{'itemId':_0x29e4c9,'updates':{'title':_0x57ea90}}),!0x0;}catch(_0x109755){return this[_0x19f2ee(0xd1)](_0x19f2ee(0xe8),{'error':_0x109755,'operation':_0x19f2ee(0xf1),'itemId':_0x29e4c9}),!0x1;}}async[_0x523370(0xca)](_0x5beb4d,_0xbe9e75){const _0x2b826c=_0x523370,_0x5338d3=this[_0x2b826c(0xce)](_0x5beb4d);if(!_0x5338d3)return!0x1;try{return await this[_0x2b826c(0xd2)][_0x2b826c(0xe6)](_0x5beb4d,{'pinned':_0xbe9e75})[_0x2b826c(0xf3)](),_0x5338d3[_0x2b826c(0xcb)](_0xbe9e75),this[_0x2b826c(0xd1)](_0x2b826c(0xd7),{'itemId':_0x5beb4d,'updates':{'pinned':_0xbe9e75}}),!0x0;}catch(_0x5cbf68){return this[_0x2b826c(0xd1)](_0x2b826c(0xe8),{'error':_0x5cbf68,'operation':_0x2b826c(0xca),'itemId':_0x5beb4d}),!0x1;}}[_0x523370(0xf4)](_0x2859c7){const _0x513a5c=_0x523370;try{this[_0x513a5c(0xef)]=[],_0x2859c7[_0x513a5c(0xc7)](_0x2d7a81=>{const _0x26b612=_0x513a5c;this[_0x26b612(0xd6)](new _0x44efbb(_0x2d7a81));}),this[_0x513a5c(0xd1)](_0x513a5c(0xf2),{'items':[...this[_0x513a5c(0xef)]]});}catch(_0x4d002a){this[_0x513a5c(0xd1)](_0x513a5c(0xe8),{'error':_0x4d002a,'operation':_0x513a5c(0xf4)});}}[_0x523370(0xea)](_0x479942={}){const _0x25febc=_0x523370,_0x4e42e8=void 0x0!==_0x479942[_0x25febc(0xe3)]&&_0x479942[_0x25febc(0xe3)],_0x351014=_0x479942[_0x25febc(0xda)]?new Date(_0x479942[_0x25febc(0xda)][_0x25febc(0xe0)](),_0x479942[_0x25febc(0xda)][_0x25febc(0xe4)](),_0x479942[_0x25febc(0xda)][_0x25febc(0xe1)]()):null,_0x364351=_0x479942['to']?new Date(_0x479942['to'][_0x25febc(0xe0)](),_0x479942['to'][_0x25febc(0xe4)](),_0x479942['to'][_0x25febc(0xe1)]()):null;return this[_0x25febc(0xef)][_0x25febc(0xcf)](_0x31cd91=>{const _0x491ae0=_0x25febc;if(_0x31cd91[_0x491ae0(0xe3)]!==_0x4e42e8)return!0x1;if(_0x364351){const _0x53a062=new Date(_0x31cd91[_0x491ae0(0xdf)][_0x491ae0(0xe0)](),_0x31cd91[_0x491ae0(0xdf)][_0x491ae0(0xe4)](),_0x31cd91[_0x491ae0(0xdf)][_0x491ae0(0xe1)]());return _0x351014?_0x351014[_0x491ae0(0xdc)]()===_0x364351[_0x491ae0(0xdc)]()?_0x53a062[_0x491ae0(0xdc)]()===_0x351014[_0x491ae0(0xdc)]():_0x53a062<_0x364351&&_0x53a062>=_0x351014:_0x53a062<_0x364351;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1334ab=_0x1efe;(function(_0x28625b,_0x303f3a){var _0xe111d9=_0x1efe,_0x4d27bb=_0x28625b();while(!![]){try{var _0x57aa83=-parseInt(_0xe111d9(0x142))/0x1*(-parseInt(_0xe111d9(0x147))/0x2)+-parseInt(_0xe111d9(0x13c))/0x3*(-parseInt(_0xe111d9(0x14a))/0x4)+-parseInt(_0xe111d9(0x13b))/0x5*(parseInt(_0xe111d9(0x13e))/0x6)+-parseInt(_0xe111d9(0x13a))/0x7+parseInt(_0xe111d9(0x149))/0x8+parseInt(_0xe111d9(0x143))/0x9+-parseInt(_0xe111d9(0x140))/0xa*(parseInt(_0xe111d9(0x13d))/0xb);if(_0x57aa83===_0x303f3a)break;else _0x4d27bb['push'](_0x4d27bb['shift']());}catch(_0x56548f){_0x4d27bb['push'](_0x4d27bb['shift']());}}}(_0x1a70,0xa31ba));function _0x1efe(_0x5f4a65,_0x1c1aca){var _0x1a706b=_0x1a70();return _0x1efe=function(_0x1efe11,_0x2c4635){_0x1efe11=_0x1efe11-0x13a;var _0x4dbb9c=_0x1a706b[_0x1efe11];return _0x4dbb9c;},_0x1efe(_0x5f4a65,_0x1c1aca);}import{ObservableMixin as _0x1ea525}from'ckeditor5/src/utils.js';import{escape as _0xafc5f0}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x1ea525(){['id'];[_0x1334ab(0x145)];constructor({id:_0x26a8fa,title:_0x23e17f,createdAt:_0x3e1462,updatedAt:_0x37e161,pinned:_0x30ec9d}){var _0x3d390b=_0x1334ab;super(),this['id']=_0x26a8fa,this[_0x3d390b(0x145)]=new Date(_0x3e1462),this[_0x3d390b(0x144)](_0x3d390b(0x146),_0x23e17f),this[_0x3d390b(0x144)](_0x3d390b(0x148),_0x37e161?new Date(_0x37e161):null),this[_0x3d390b(0x144)](_0x3d390b(0x14b),_0x30ec9d||!0x1);}[_0x1334ab(0x141)](_0x3a8cf2){var _0xffc57d=_0x1334ab;this[_0xffc57d(0x144)](_0xffc57d(0x146),_0xafc5f0(_0x3a8cf2)),this[_0xffc57d(0x148)]=new Date();}[_0x1334ab(0x13f)](_0x15c237){var _0x490fae=_0x1334ab;this[_0x490fae(0x144)](_0x490fae(0x14b),_0x15c237),this[_0x490fae(0x148)]=new Date();}}function _0x1a70(){var _0x451903=['updatePinned','890pPUUZB','updateTitle','4IcCyUS','11949759sQNVje','set','createdAt','title','151378TegzEi','updatedAt','7659896qpnDCX','4cssTHr','pinned','6000869MNDHHQ','15hJvFdi','3774555ifltMN','134629YoZXTo','2463102rAcyJb'];_0x1a70=function(){return _0x451903;};return _0x1a70();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
const _0x2d4817=_0x4f64;(function(_0x1ed28b,_0x1a8460){const _0x47e482=_0x4f64,_0x584d6d=_0x1ed28b();while(!![]){try{const _0x3c3e71=parseInt(_0x47e482(0x1bb))/0x1*(-parseInt(_0x47e482(0x1cf))/0x2)+parseInt(_0x47e482(0x1d3))/0x3*(-parseInt(_0x47e482(0x1bd))/0x4)+-parseInt(_0x47e482(0x18e))/0x5+-parseInt(_0x47e482(0x1a7))/0x6*(-parseInt(_0x47e482(0x188))/0x7)+parseInt(_0x47e482(0x1c4))/0x8+-parseInt(_0x47e482(0x19a))/0x9+parseInt(_0x47e482(0x1c7))/0xa;if(_0x3c3e71===_0x1a8460)break;else _0x584d6d['push'](_0x584d6d['shift']());}catch(_0x5122e3){_0x584d6d['push'](_0x584d6d['shift']());}}}(_0x64c7,0xdf117));import{ListItemView as _0x5e8104,HighlightedTextView as _0x4f0a47,ButtonView as _0x33727a,ListView as _0xbad849,IconView as _0x2e8cc4,createDropdown as _0x12c316,InputTextView as _0x254dd1}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x1eca21,IconPin as _0x253887,IconCheck as _0x375990,IconCancel as _0x52a386}from'ckeditor5/src/icons.js';function _0x64c7(){const _0x4e1098=['highlightText','removeConversation','AI_CHAT_HISTORY_LOADING_RENAMING','11847472GJJhPd','ck-ai-chat-history__item-date','AI_CHAT_HISTORY_LOADING_UNPINNING','12688450DnGXkX','ck-ai-chat-history__item','ck-ai-chat-history__item-check-container','ck-ai-chat-history__item--edit','mainContent','value','string','element','715054zyjboH','match','ck-confirm-view-submit','AI_CHAT_HISTORY_LOADING_REMOVING','1035WJgEpq','extendTemplate','text','actions','ck-ai-chat-history__item-row','_createCheckView','div','withText','execute','panelView','isOn','bind','AI_CHAT_HISTORY_PIN_BUTTON','setConversationPinned','panelPosition','ck-confirm-view-cancel','ck-ai-chat-history__item--active','showConfirm','ck-ai-chat-history__item-content','updateTitle','editConversationTitle','LOADING_LABELS','ck-ai-chat-history__item-title','7xNfGGI','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','bindTemplate','listitem','_createEditInputView','_createMenuDropdownView','6108860SKfZPr','ck-ai-chat-history__item-main-content','loadingState','focus','isMatching','createCollection','clear','click','selectConversation','AI_CHAT_HISTORY_REMOVE','add','_createSpinnerView','2794842JheQFk','set','children','ck-hidden','isEdit','ck-ai-chat-history__item-actions','ck-ai-loader','AI_CHAT_HISTORY_EDIT_NAME','label','setTemplate','change:isEdit','span','AI_CHAT_HISTORY_LOADING_PINNING','3591642QFvfzc','pinned','_createPinButtonView','_createAcceptEditButtonView','buttonView','_commitEditInputValue','edit:cancel','updateLoadingState','Enter','locale','ck-ai-loader__text','items','key','AI_CHAT_HISTORY_ACCEPT','ck-ai-chat-history__item-check','_createCancelEditButtonView','fire','AI_CHAT_HISTORY_CANCEL','then','_titleView','2tKYbQE','isVisible','2172qzuDXM','tiny','AI_CHAT_HISTORY_REMOVE_CONFIRM','addMany'];_0x64c7=function(){return _0x4e1098;};return _0x64c7();}import{LateFocusDropdownButtonView as _0x18c4a4,ConfirmMixin as _0x54ef61}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x388a04}from'es-toolkit/compat';function _0x4f64(_0x9ff440,_0x1b6af3){const _0x64c7e9=_0x64c7();return _0x4f64=function(_0x4f648a,_0x574d93){_0x4f648a=_0x4f648a-0x185;let _0x3b19ba=_0x64c7e9[_0x4f648a];return _0x3b19ba;},_0x4f64(_0x9ff440,_0x1b6af3);}import{AISpinnerView as _0x50f835}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x2d359d}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x54ef61(_0x5e8104){['id'];static [_0x2d4817(0x186)]={'remove':_0x2d4817(0x1d2),'rename':_0x2d4817(0x1c3),'pin':_0x2d4817(0x1a6),'unpin':_0x2d4817(0x1c6)};[_0x2d4817(0x1d6)];[_0x2d4817(0x1cb)];[_0x2d4817(0x1ba)];constructor(_0x1b7f6c,_0x5ce839){const _0x39dece=_0x2d4817;super(_0x1b7f6c);const _0x4eb05d=this[_0x39dece(0x18a)];this[_0x39dece(0x19b)](_0x39dece(0x19e),!0x1),this[_0x39dece(0x19b)](_0x39dece(0x1bc),!0x0),this[_0x39dece(0x19b)](_0x39dece(0x1a8),!!_0x5ce839[_0x39dece(0x1a8)]),this[_0x39dece(0x19b)](_0x39dece(0x190),null),this['id']=_0x5ce839['id'];const {title:_0xba3130,createdAt:_0x3f47d7,active:_0x189d72=!0x1}=_0x5ce839;this[_0x39dece(0x1ba)]=new _0x4f0a47(),this[_0x39dece(0x1ba)][_0x39dece(0x1d5)]=_0xba3130,this[_0x39dece(0x1ba)][_0x39dece(0x1d4)]({'attributes':{'class':[_0x39dece(0x187)]}});const _0x6abfe1=this[_0x39dece(0x1d8)](),_0x439d8d=this[_0x39dece(0x1a9)](_0x1b7f6c),_0x96ee2b=this[_0x39dece(0x18d)](),_0x34e725=this[_0x39dece(0x18c)](_0x1b7f6c,_0xba3130),_0x148229=this[_0x39dece(0x1aa)](_0x1b7f6c,_0x34e725),_0x507b4d=this[_0x39dece(0x1b6)](_0x1b7f6c,_0x34e725);this[_0x39dece(0x1d6)]=this[_0x39dece(0x193)](),this[_0x39dece(0x1cb)]=this[_0x39dece(0x193)](),this[_0x39dece(0x1cb)][_0x39dece(0x198)](this[_0x39dece(0x1ba)]),this[_0x39dece(0x1d6)][_0x39dece(0x198)](_0x439d8d),this[_0x39dece(0x1d6)][_0x39dece(0x198)](_0x96ee2b),this['on'](_0x39dece(0x1a4),(_0x1b7c4d,_0xe03e2e,_0x4770fa)=>{const _0x1ac0ef=_0x39dece;this[_0x1ac0ef(0x1d6)][_0x1ac0ef(0x194)](),this[_0x1ac0ef(0x1cb)][_0x1ac0ef(0x194)](),_0x4770fa?(this[_0x1ac0ef(0x1d6)][_0x1ac0ef(0x198)](_0x148229),this[_0x1ac0ef(0x1d6)][_0x1ac0ef(0x198)](_0x507b4d),this[_0x1ac0ef(0x1cb)][_0x1ac0ef(0x198)](_0x34e725),_0x34e725[_0x1ac0ef(0x1ce)][_0x1ac0ef(0x191)]()):(this[_0x1ac0ef(0x1d6)][_0x1ac0ef(0x198)](_0x439d8d),this[_0x1ac0ef(0x1d6)][_0x1ac0ef(0x198)](_0x96ee2b),this[_0x1ac0ef(0x1cb)][_0x1ac0ef(0x198)](this[_0x1ac0ef(0x1ba)]));}),this[_0x39dece(0x1a3)]({'tag':'li','attributes':{'class':[_0x39dece(0x1c8),_0x189d72?_0x39dece(0x1e3):'',_0x4eb05d['if'](_0x39dece(0x1bc),_0x39dece(0x19d),_0xab766f=>!_0xab766f),_0x4eb05d['if'](_0x39dece(0x19e),_0x39dece(0x1ca))],'role':_0x39dece(0x18b)},'children':[{'tag':_0x39dece(0x1a5),'attributes':{'class':[_0x39dece(0x1c9)]},'children':[{'tag':_0x39dece(0x1d9),'attributes':{'class':[_0x39dece(0x1b5),_0x4eb05d['if'](_0x39dece(0x190),_0x39dece(0x19d),_0x1e4262=>!!_0x1e4262)]},'children':_0x189d72?[_0x6abfe1]:[]},{'tag':_0x39dece(0x1d9),'attributes':{'class':[_0x39dece(0x1a0),_0x4eb05d['if'](_0x39dece(0x190),_0x39dece(0x19d),_0x4e8f67=>!_0x4e8f67)]},'children':[this[_0x39dece(0x199)]()]}]},{'tag':_0x39dece(0x1d9),'attributes':{'class':[_0x39dece(0x1d7)]},'children':[{'tag':_0x39dece(0x1d9),'attributes':{'class':[_0x39dece(0x1e5)]},'on':{'click':this[_0x39dece(0x18a)]['to'](_0x39dece(0x195))},'children':[{'tag':_0x39dece(0x1d9),'attributes':{'class':[_0x39dece(0x18f)]},'children':[{'tag':_0x39dece(0x1d9),'attributes':{'class':[_0x39dece(0x187),_0x4eb05d['if'](_0x39dece(0x190),_0x39dece(0x19d),_0x4b3ca6=>!!_0x4b3ca6)]},'children':this[_0x39dece(0x1cb)]},{'tag':_0x39dece(0x1d9),'attributes':{'class':[_0x39dece(0x1b1),_0x4eb05d['if'](_0x39dece(0x190),_0x39dece(0x19d),_0x16b680=>!_0x16b680)]},'children':[{'text':_0x4eb05d['to'](_0x39dece(0x190),_0x35b701=>_0x35b701?_0x2d359d(this[_0x39dece(0x1b0)],AIChatHistoryListItemView[_0x39dece(0x186)][_0x35b701]):'')}]}]},{'tag':_0x39dece(0x1a5),'attributes':{'class':[_0x39dece(0x1c5)]},'children':[_0x3f47d7]}]},{'tag':_0x39dece(0x1d9),'attributes':{'class':[_0x39dece(0x19f)]},'children':this[_0x39dece(0x1d6)]}]}]}),this['on'](_0x39dece(0x195),()=>{const _0x26686c=_0x39dece;this[_0x26686c(0x19e)]||this[_0x26686c(0x1b7)](_0x26686c(0x196),{'id':this['id']});});}[_0x2d4817(0x1e6)](_0x534bdf){const _0x3263d7=_0x2d4817;this[_0x3263d7(0x1ba)][_0x3263d7(0x1d5)]=_0x388a04(_0x534bdf);}[_0x2d4817(0x1ae)](_0x584756,_0x2f5b2f){const _0x5df32a=_0x2d4817;this[_0x5df32a(0x19b)](_0x5df32a(0x190),_0x2f5b2f?_0x584756:null);}[_0x2d4817(0x1d8)](){const _0x5b4a30=_0x2d4817,_0xdc8d75=new _0x2e8cc4();return _0xdc8d75[_0x5b4a30(0x19b)]({'content':_0x375990}),_0xdc8d75;}[_0x2d4817(0x1a9)](_0x512755){const _0x1cf795=_0x2d4817,_0x3dc21b=new _0x33727a(_0x512755);return _0x3dc21b[_0x1cf795(0x19b)]({'label':_0x2d359d(_0x512755,_0x1cf795(0x1df)),'icon':_0x253887,'withText':!0x1,'tooltip':!0x0}),_0x3dc21b[_0x1cf795(0x1de)](_0x1cf795(0x1dd))['to'](this,_0x1cf795(0x1a8)),_0x3dc21b['on'](_0x1cf795(0x1db),()=>{const _0x2e869d=_0x1cf795,_0x5cf61c=!this[_0x2e869d(0x1a8)];this[_0x2e869d(0x1b7)](_0x2e869d(0x1e0),{'id':this['id'],'pinned':_0x5cf61c});}),_0x3dc21b;}[_0x2d4817(0x18d)](){const _0x4300e8=_0x2d4817,_0x56ea53=_0x12c316(this[_0x4300e8(0x1b0)],_0x18c4a4),_0x2705ab=_0x56ea53[_0x4300e8(0x1dc)][_0x4300e8(0x19c)];_0x56ea53[_0x4300e8(0x1ab)][_0x4300e8(0x19b)]({'label':_0x2d359d(this[_0x4300e8(0x1b0)],_0x4300e8(0x189)),'icon':_0x1eca21}),_0x56ea53[_0x4300e8(0x1e1)]='sw';const _0x3cc87d=new _0x33727a(this[_0x4300e8(0x1b0)]);_0x3cc87d[_0x4300e8(0x1a2)]=_0x2d359d(this[_0x4300e8(0x1b0)],_0x4300e8(0x1a1)),_0x3cc87d[_0x4300e8(0x1da)]=!0x0,_0x3cc87d['on'](_0x4300e8(0x1db),()=>{const _0x4250d8=_0x4300e8;this[_0x4250d8(0x19e)]=!0x0;});const _0xa47034=new _0x33727a(this[_0x4300e8(0x1b0)]);_0xa47034[_0x4300e8(0x1a2)]=_0x2d359d(this[_0x4300e8(0x1b0)],_0x4300e8(0x197)),_0xa47034[_0x4300e8(0x1da)]=!0x0,_0xa47034['on'](_0x4300e8(0x1db),()=>{const _0xc9bcae=_0x4300e8;this[_0xc9bcae(0x1e4)](_0x2d359d(this[_0xc9bcae(0x1b0)],_0xc9bcae(0x1bf)),this[_0xc9bcae(0x1ce)])[_0xc9bcae(0x1b9)](()=>{const _0x56c29f=_0xc9bcae;this[_0x56c29f(0x1b7)](_0x56c29f(0x1c2),{'id':this['id']});});});const _0x3add11=new _0xbad849(this[_0x4300e8(0x1b0)]),_0x4cc6db=new _0x5e8104(this[_0x4300e8(0x1b0)]);_0x4cc6db[_0x4300e8(0x19c)][_0x4300e8(0x198)](_0x3cc87d);const _0x29d1ae=new _0x5e8104(this[_0x4300e8(0x1b0)]);return _0x29d1ae[_0x4300e8(0x19c)][_0x4300e8(0x198)](_0xa47034),_0x3add11[_0x4300e8(0x1b2)][_0x4300e8(0x1c0)]([_0x4cc6db,_0x29d1ae]),_0x2705ab[_0x4300e8(0x198)](_0x3add11),_0x56ea53;}[_0x2d4817(0x18c)](_0x43c468,_0x439f3f){const _0x1009f0=_0x2d4817,_0x4fc6bd=new _0x254dd1(_0x43c468),_0x1991cc=_0x4fc6bd[_0x1009f0(0x18a)];return _0x4fc6bd[_0x1009f0(0x1cc)]=_0x439f3f,_0x4fc6bd[_0x1009f0(0x1d4)]({'on':{'keydown':_0x1991cc['to'](_0x436fff=>{const _0x5e1315=_0x1009f0;_0x5e1315(0x1af)==_0x436fff[_0x5e1315(0x1b3)]&&this[_0x5e1315(0x1ac)](_0x4fc6bd);})}}),_0x4fc6bd;}[_0x2d4817(0x1aa)](_0x50d5cd,_0xd2c343){const _0x46b613=_0x2d4817,_0x894f36=new _0x33727a(_0x50d5cd);return _0x894f36[_0x46b613(0x19b)]({'icon':_0x375990,'withText':!0x1,'tooltip':_0x2d359d(_0x50d5cd,_0x46b613(0x1b4))}),_0x894f36[_0x46b613(0x1d4)]({'attributes':{'class':[_0x46b613(0x1d1)]}}),_0x894f36['on'](_0x46b613(0x1db),()=>{const _0x2fed5e=_0x46b613;this[_0x2fed5e(0x1ac)](_0xd2c343);}),_0x894f36;}[_0x2d4817(0x1ac)](_0x33acc3){const _0x26eade=_0x2d4817,_0xcc8e4f=_0x33acc3[_0x26eade(0x1ce)][_0x26eade(0x1cc)]||'';this[_0x26eade(0x1ba)][_0x26eade(0x1d5)]=_0xcc8e4f,this[_0x26eade(0x19e)]=!0x1,this[_0x26eade(0x1b7)](_0x26eade(0x185),{'id':this['id'],'title':_0xcc8e4f});}[_0x2d4817(0x1b6)](_0x255834,_0xee0137){const _0x17e2b9=_0x2d4817,_0x370694=new _0x33727a(_0x255834);return _0x370694[_0x17e2b9(0x19b)]({'icon':_0x52a386,'withText':!0x1,'tooltip':_0x2d359d(_0x255834,_0x17e2b9(0x1b8))}),_0x370694[_0x17e2b9(0x1d4)]({'attributes':{'class':[_0x17e2b9(0x1e2)]}}),_0x370694['on'](_0x17e2b9(0x1db),()=>{const _0x1656b2=_0x17e2b9;this[_0x1656b2(0x19e)]=!0x1,_0xee0137[_0x1656b2(0x1cc)]=this[_0x1656b2(0x1ba)][_0x1656b2(0x1d5)]||'',this[_0x1656b2(0x1b7)](_0x1656b2(0x1ad));}),_0x370694;}[_0x2d4817(0x199)](){const _0x307526=_0x2d4817,_0x41fd77=new _0x50f835(_0x307526(0x1be));return _0x41fd77[_0x307526(0x1bc)]=!0x0,_0x41fd77;}[_0x2d4817(0x192)](_0x1a2bc7){const _0x261201=_0x2d4817;return this[_0x261201(0x1ba)]&&_0x261201(0x1cd)==typeof this[_0x261201(0x1ba)][_0x261201(0x1d5)]&&this[_0x261201(0x1ba)][_0x261201(0x1d5)][_0x261201(0x1d0)](_0x1a2bc7)?{'title':!0x0}:null;}[_0x2d4817(0x1c1)](_0x33992a){const _0x1e6495=_0x2d4817;this[_0x1e6495(0x1ba)][_0x1e6495(0x1c1)](_0x33992a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3def(_0x39a540,_0xd31acb){const _0x58f79e=_0x58f7();return _0x3def=function(_0x3defb7,_0x4ec714){_0x3defb7=_0x3defb7-0x164;let _0x411ddc=_0x58f79e[_0x3defb7];return _0x411ddc;},_0x3def(_0x39a540,_0xd31acb);}function _0x58f7(){const _0xd4e7e2=['2694678fvDlCC','bindTemplate','removeItem','getItem','4322868WCPnWw','822695dOAJgD','highlightText','splice','setTemplate','indexOf','12994345Thfppi','find','remove','216676jqsgnH','title','ck-ai-chat-history__section','11oFmxSV','items','_itemsListView','length','ck-ai-chat-history__section-title','filter','itemsViews','isMatching','ck-hidden','div','isVisible','addMany','set','962520lWbdta','30907128gFpCjr'];_0x58f7=function(){return _0xd4e7e2;};return _0x58f7();}const _0x2315f9=_0x3def;(function(_0x1deb2d,_0x1f9c9e){const _0xebd972=_0x3def,_0x4aa1ea=_0x1deb2d();while(!![]){try{const _0x47ac45=-parseInt(_0xebd972(0x165))/0x1*(parseInt(_0xebd972(0x181))/0x2)+-parseInt(_0xebd972(0x174))/0x3+parseInt(_0xebd972(0x178))/0x4+-parseInt(_0xebd972(0x179))/0x5+parseInt(_0xebd972(0x172))/0x6+-parseInt(_0xebd972(0x17e))/0x7+parseInt(_0xebd972(0x173))/0x8;if(_0x47ac45===_0x1f9c9e)break;else _0x4aa1ea['push'](_0x4aa1ea['shift']());}catch(_0x5d9c77){_0x4aa1ea['push'](_0x4aa1ea['shift']());}}}(_0x58f7,0xf29ae));import{ListItemView as _0x4ecb03,View as _0x4654ef,ListView as _0x5113d1}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x4ecb03{[_0x2315f9(0x182)];[_0x2315f9(0x16b)];[_0x2315f9(0x167)];constructor(_0x23a9f3,{title:_0x53e366,items:_0x1dce54}){const _0x170b2d=_0x2315f9;super(_0x23a9f3);const _0x4a3cb8=this[_0x170b2d(0x175)];this[_0x170b2d(0x171)](_0x170b2d(0x16f),!0x0),this[_0x170b2d(0x182)]=_0x53e366,this[_0x170b2d(0x16b)]=_0x1dce54;const _0x28e126=new _0x4654ef(_0x23a9f3);_0x28e126[_0x170b2d(0x17c)]({'tag':_0x170b2d(0x16e),'attributes':{'class':[_0x170b2d(0x169)]},'children':[this[_0x170b2d(0x182)]]}),this[_0x170b2d(0x167)]=new _0x5113d1(_0x23a9f3),this[_0x170b2d(0x167)][_0x170b2d(0x166)][_0x170b2d(0x170)](this[_0x170b2d(0x16b)]),this[_0x170b2d(0x17c)]({'tag':'li','attributes':{'class':[_0x170b2d(0x164),_0x4a3cb8['if'](_0x170b2d(0x16f),_0x170b2d(0x16d),_0xa6ce1=>!_0xa6ce1)]},'children':[_0x28e126,this[_0x170b2d(0x167)]]});}[_0x2315f9(0x16a)](_0x511e7c){const _0x44f600=_0x2315f9,_0x5437fd=this[_0x44f600(0x16b)][_0x44f600(0x168)];let _0x3629f4=0x0;for(const _0x44b142 of this[_0x44f600(0x16b)]){if(_0x511e7c){const _0x129fdf=_0x44b142[_0x44f600(0x16c)](_0x511e7c);_0x44b142[_0x44f600(0x16f)]=!!_0x129fdf,_0x44b142[_0x44f600(0x17a)](_0x511e7c);}else _0x44b142[_0x44f600(0x16f)]=!0x0,_0x44b142[_0x44f600(0x17a)](null);_0x44b142[_0x44f600(0x16f)]&&_0x3629f4++;}return this[_0x44f600(0x16f)]=_0x3629f4>0x0,{'resultsCount':_0x3629f4,'totalItemsCount':_0x5437fd};}[_0x2315f9(0x177)](_0x13cbd3){const _0x62863a=_0x2315f9;return this[_0x62863a(0x16b)][_0x62863a(0x17f)](_0x32feac=>_0x32feac['id']===_0x13cbd3);}[_0x2315f9(0x176)](_0x143f8b){const _0x4ac2f7=_0x2315f9,_0x222286=this[_0x4ac2f7(0x16b)][_0x4ac2f7(0x17d)](_0x143f8b);-0x1!==_0x222286&&(this[_0x4ac2f7(0x16b)][_0x4ac2f7(0x17b)](_0x222286,0x1),this[_0x4ac2f7(0x167)][_0x4ac2f7(0x166)][_0x4ac2f7(0x180)](_0x143f8b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x398f26=_0x2105;function _0x2105(_0x2b8096,_0x55df10){const _0x121c3e=_0x121c();return _0x2105=function(_0x210567,_0x5a0a0a){_0x210567=_0x210567-0x1aa;let _0x399306=_0x121c3e[_0x210567];return _0x399306;},_0x2105(_0x2b8096,_0x55df10);}(function(_0x5b4242,_0x1c43d1){const _0xe06359=_0x2105,_0x142bc4=_0x5b4242();while(!![]){try{const _0x215ccf=parseInt(_0xe06359(0x1b4))/0x1+parseInt(_0xe06359(0x1ab))/0x2+-parseInt(_0xe06359(0x1b6))/0x3*(parseInt(_0xe06359(0x1ad))/0x4)+parseInt(_0xe06359(0x1ac))/0x5*(parseInt(_0xe06359(0x1b8))/0x6)+-parseInt(_0xe06359(0x1b7))/0x7+-parseInt(_0xe06359(0x1b5))/0x8+parseInt(_0xe06359(0x1aa))/0x9*(parseInt(_0xe06359(0x1b2))/0xa);if(_0x215ccf===_0x1c43d1)break;else _0x142bc4['push'](_0x142bc4['shift']());}catch(_0x33c2cb){_0x142bc4['push'](_0x142bc4['shift']());}}}(_0x121c,0x4a58f));import{ListView as _0x4de564}from'ckeditor5/src/ui.js';function _0x121c(){const _0x4addb3=['sections','173136dcevMw','1923344kBTAHe','471KeHwcR','2809072RJZODs','42ZAloWH','filter','3269448OfTCkv','1052728qynYWY','71745KOIkZK','5528LnJDTi','addMany','ck-ai-chat-history__sections','items','extendTemplate','10GQLyzd'];_0x121c=function(){return _0x4addb3;};return _0x121c();}export class AIChatHistorySectionListView extends _0x4de564{[_0x398f26(0x1b3)];constructor(_0x270cef,_0x1a5689){const _0x5243bd=_0x398f26;super(_0x270cef),this[_0x5243bd(0x1b3)]=_0x1a5689,this[_0x5243bd(0x1b0)][_0x5243bd(0x1ae)](this[_0x5243bd(0x1b3)]),this[_0x5243bd(0x1b1)]({'attributes':{'class':[_0x5243bd(0x1af)]}});}[_0x398f26(0x1b9)](_0x16a973){const _0x1cf406=_0x398f26;let _0x5825b2=0x0,_0x482117=0x0;for(const _0x110abe of this[_0x1cf406(0x1b3)]){const {resultsCount:_0x21a1b7,totalItemsCount:_0x21f109}=_0x110abe[_0x1cf406(0x1b9)](_0x16a973);_0x5825b2+=_0x21a1b7,_0x482117+=_0x21f109;}return{'resultsCount':_0x5825b2,'totalItemsCount':_0x482117};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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);}}}
|
|
23
|
+
const _0x27590d=_0x3f57;(function(_0x1a6d8e,_0x3373c5){const _0x1746ae=_0x3f57,_0x2564e6=_0x1a6d8e();while(!![]){try{const _0x9a2126=parseInt(_0x1746ae(0xc5))/0x1*(-parseInt(_0x1746ae(0xfe))/0x2)+-parseInt(_0x1746ae(0xb7))/0x3*(-parseInt(_0x1746ae(0xdb))/0x4)+-parseInt(_0x1746ae(0xba))/0x5+parseInt(_0x1746ae(0xc6))/0x6+parseInt(_0x1746ae(0xf3))/0x7*(-parseInt(_0x1746ae(0xb3))/0x8)+parseInt(_0x1746ae(0xe9))/0x9*(parseInt(_0x1746ae(0xdd))/0xa)+-parseInt(_0x1746ae(0xad))/0xb;if(_0x9a2126===_0x3373c5)break;else _0x2564e6['push'](_0x2564e6['shift']());}catch(_0x46f9d5){_0x2564e6['push'](_0x2564e6['shift']());}}}(_0x1e76,0x6aad1));import{View as _0x42bcfc,SearchTextView as _0x5af3f3,FormHeaderView as _0xc11fe1,ButtonView as _0x2b9e18}from'ckeditor5/src/ui.js';function _0x1e76(){const _0x315d7a=['locale','change:hasItems','aiHistory','_createErrorView','ck-ai-notification','4zdmGMo','openChat','length','itemsViews','push','ck-ai-chat-history__empty','bind','_refreshSearch','resizeButton','div','updateLoadingState','some','hasItems','4080604vYoiOQ','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-header\x20ck-ai-header_history','items','bindTemplate','render','775736vlpkuR','add','ck-ai-chat-history__content','AI_CHAT_LABEL_NEW_CHAT','3gaOxzR','ck-ai-chat-history','ck-ai-chat__start-conversation','1953030nnTMYr','AI_CHAT_HISTORY_EMPTY_MESSAGE','errorMessage','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','set','_createSkeletonView','search','ck-reset_all','_createListItemViews','updateTitle','mainErrorView','103403dtaBIF','3540312vOefQk','children','change:isLoading','addMany','updateHistoryItemsWithCategories','sections','ck-rounded-corners','setTemplate','fire','change:errorMessage','updateItemTitle','getItem','ck-ai-notification_error__dismiss-button','title','extendTemplate','searchView','isMaximized','ck-ai-notification_error','isEmptyViewVisible','ltr','isMainErrorViewVisible','2085368dzOzXG','removeHistoryItem','7787620paSMQz','queryView','emptyView','sectionsView','element','delegate','clear','ck-hidden','remove','removeItem','_createEmptyStateView','skeletonView','9LlmTTw','updateItemLoadingState','ck-ai-chat-history__empty-message','indexOf','_createSearchView','isVisible','splice','isSearchViewVisible','execute','value','35oxqhNS','_updateViewVisibility','fieldView','isLoading','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_HEADING'];_0x1e76=function(){return _0x315d7a;};return _0x1e76();}import{IconAIHistory as _0x2f1dd2,IconCancel as _0x4a93c5,IconPlus as _0x2959d0}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x522215}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x5d8df}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2f88ff}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5610e9}from'../aichathistoryui.js';import{AISkeletonView as _0xa2bfd9,SKELETON_DEFINITIONS as _0x1e48f8}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3eb38f}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x49651a}from'../../aicore/utils/common-translations.js';function _0x3f57(_0x37dab5,_0x44b0aa){const _0x1e7670=_0x1e76();return _0x3f57=function(_0x3f570b,_0x30acac){_0x3f570b=_0x3f570b-0xa9;let _0x50d037=_0x1e7670[_0x3f570b];return _0x50d037;},_0x3f57(_0x37dab5,_0x44b0aa);}export class AIChatHistoryView extends _0x42bcfc{[_0x27590d(0xd5)];[_0x27590d(0xc4)];[_0x27590d(0xe8)];[_0x27590d(0xdf)];[_0x27590d(0xe0)];[_0x27590d(0x106)];constructor(_0x241f51,_0x46f2d6){const _0x185723=_0x27590d;super(_0x241f51),this[_0x185723(0xbe)](_0x185723(0xac),!0x1),this[_0x185723(0xbe)](_0x185723(0xf6),!0x0),this[_0x185723(0xbe)](_0x185723(0xbc),''),this[_0x185723(0xbe)](_0x185723(0xd6),!0x1),this[_0x185723(0xbe)](_0x185723(0xf0),!0x1),this[_0x185723(0xbe)](_0x185723(0xd8),!0x1),this[_0x185723(0xbe)](_0x185723(0xda),!0x1);const _0x260000=new _0xc11fe1(_0x241f51,{'label':_0x49651a(_0x241f51,_0x185723(0xf8)),'icon':_0x2f1dd2,'class':_0x185723(0xaf)});_0x46f2d6&&(this[_0x185723(0x106)]=_0x3eb38f(_0x241f51,this),_0x260000[_0x185723(0xc7)][_0x185723(0xb4)](this[_0x185723(0x106)])),this[_0x185723(0xe0)]=new _0x522215(_0x241f51,[]),this[_0x185723(0xe0)][_0x185723(0xe2)](..._0x5610e9)['to'](this),this[_0x185723(0xc4)]=this[_0x185723(0xfc)](),this[_0x185723(0xe8)]=this[_0x185723(0xbf)](),this[_0x185723(0xdf)]=this[_0x185723(0xe7)](),this[_0x185723(0xd5)]=this[_0x185723(0xed)](),this[_0x185723(0xc4)][_0x185723(0xd4)]({'attributes':{'class':[this[_0x185723(0xb1)]['if'](_0x185723(0xda),_0x185723(0xe4),_0x124b0f=>!_0x124b0f)]}}),this['on'](_0x185723(0xc8),()=>this[_0x185723(0xf4)]()),this['on'](_0x185723(0xfa),()=>this[_0x185723(0xf4)]()),this['on'](_0x185723(0xcf),()=>this[_0x185723(0xf4)]()),this[_0x185723(0xcd)]({'tag':_0x185723(0xa9),'attributes':{'class':['ck',_0x185723(0xc1),_0x185723(0xb8),_0x185723(0xcc)],'dir':_0x185723(0xd9)},'children':[_0x260000,{'tag':_0x185723(0xa9),'attributes':{'class':[_0x185723(0xb5)]},'children':[this[_0x185723(0xe8)],this[_0x185723(0xc4)],this[_0x185723(0xdf)],this[_0x185723(0xd5)]]}]});}[_0x27590d(0xf4)](){const _0x30a101=_0x27590d;this[_0x30a101(0xf0)]=!this[_0x30a101(0xf6)]&&this[_0x30a101(0xac)],this[_0x30a101(0xd8)]=!this[_0x30a101(0xf6)]&&!this[_0x30a101(0xac)]&&!this[_0x30a101(0xbc)],this[_0x30a101(0xda)]=!this[_0x30a101(0xf0)]&&!!this[_0x30a101(0xbc)];}[_0x27590d(0xed)](){const _0x1f7575=_0x27590d,_0x48430d=new _0x5af3f3(this[_0x1f7575(0xf9)],{'filteredView':this[_0x1f7575(0xe0)],'queryView':{'label':_0x49651a(this[_0x1f7575(0xf9)],_0x1f7575(0xae))},'infoView':{'text':{'notFound':{'primary':_0x56175a=>_0x49651a(this[_0x1f7575(0xf9)],_0x1f7575(0xbd),_0x56175a),'secondary':_0x49651a(this[_0x1f7575(0xf9)],_0x1f7575(0xf7))}}}}),_0x3fb0ca=this[_0x1f7575(0xfc)]();return _0x3fb0ca[_0x1f7575(0xd4)]({'attributes':{'class':[this[_0x1f7575(0xb1)]['if'](_0x1f7575(0xbc),_0x1f7575(0xe4),_0x1b69b0=>!_0x1b69b0)]}}),_0x48430d['on'](_0x1f7575(0xb2),()=>{const _0x53d047=_0x1f7575;_0x48430d[_0x53d047(0xc7)][_0x53d047(0xb4)](_0x3fb0ca,0x1);}),_0x48430d[_0x1f7575(0xd4)]({'attributes':{'class':[this[_0x1f7575(0xb1)]['if'](_0x1f7575(0xf0),_0x1f7575(0xe4),_0xcd69ec=>!_0xcd69ec)]}}),_0x48430d;}[_0x27590d(0xbf)](){const _0x1740fe=_0x27590d,_0x5c3518=new _0xa2bfd9(this[_0x1740fe(0xf9)],_0x1e48f8[_0x1740fe(0xfb)]);return _0x5c3518[_0x1740fe(0xd4)]({'attributes':{'class':[this[_0x1740fe(0xb1)]['if'](_0x1740fe(0xf6),_0x1740fe(0xe4),_0xcc5374=>!_0xcc5374)]}}),_0x5c3518;}[_0x27590d(0xfc)](){const _0x2f31cc=_0x27590d,_0x317305=new _0x42bcfc(this[_0x2f31cc(0xf9)]),_0x4792c8=new _0x2b9e18(this[_0x2f31cc(0xf9)]);_0x4792c8[_0x2f31cc(0xbe)]({'withText':!0x1,'icon':_0x4a93c5,'class':_0x2f31cc(0xd2)}),_0x4792c8[_0x2f31cc(0x104)](_0x2f31cc(0xee))['to'](this,_0x2f31cc(0xac),_0x33d015=>!!_0x33d015),_0x4792c8['on'](_0x2f31cc(0xf1),()=>{const _0x3d089c=_0x2f31cc;this[_0x3d089c(0xbc)]='';});const _0x10b100=this[_0x2f31cc(0xb1)];return _0x317305[_0x2f31cc(0xcd)]({'tag':_0x2f31cc(0xa9),'attributes':{'class':['ck',_0x2f31cc(0xfd),_0x2f31cc(0xd7)]},'children':[{'tag':'p','children':[{'text':_0x10b100['to'](_0x2f31cc(0xbc))}]},_0x4792c8]}),_0x317305;}[_0x27590d(0xe7)](){const _0x6fd4e8=_0x27590d,_0x5ac449=new _0x2b9e18(this[_0x6fd4e8(0xf9)]);_0x5ac449[_0x6fd4e8(0xbe)]({'label':_0x49651a(this[_0x6fd4e8(0xf9)],_0x6fd4e8(0xb6)),'withText':!0x0,'icon':_0x2959d0,'class':_0x6fd4e8(0xb9)}),_0x5ac449['on'](_0x6fd4e8(0xf1),()=>{const _0x4f184e=_0x6fd4e8;this[_0x4f184e(0xce)](_0x4f184e(0xff));});const _0x6fab8d=new _0x42bcfc(this[_0x6fd4e8(0xf9)]);return _0x6fab8d[_0x6fd4e8(0xcd)]({'tag':_0x6fd4e8(0xa9),'attributes':{'class':[_0x6fd4e8(0x103),this[_0x6fd4e8(0xb1)]['if'](_0x6fd4e8(0xd8),_0x6fd4e8(0xe4),_0x4b088b=>!_0x4b088b)]},'children':[{'tag':'p','attributes':{'class':[_0x6fd4e8(0xeb)]},'children':[_0x49651a(this[_0x6fd4e8(0xf9)],_0x6fd4e8(0xbb))]},_0x5ac449]}),_0x6fab8d;}[_0x27590d(0xc2)](_0x594094,_0x1239be){const _0x4c7a4a=_0x27590d,_0x4204d2=[];for(const _0x369cac of _0x594094){const _0x46c81c=new _0x2f88ff(_0x1239be,_0x369cac);_0x46c81c[_0x4c7a4a(0xe2)](..._0x5610e9)['to'](this),_0x4204d2[_0x4c7a4a(0x102)](_0x46c81c);}return _0x4204d2;}[_0x27590d(0xca)](_0x5299e6){const _0xed8d6f=_0x27590d,_0x5a1dbc=this[_0xed8d6f(0xf9)]||'en',_0x569874=[];for(const _0x1bddfb of _0x5299e6){const _0x52e608=this[_0xed8d6f(0xc2)](_0x1bddfb[_0xed8d6f(0xb0)],_0x5a1dbc);_0x569874[_0xed8d6f(0x102)](new _0x5d8df(_0x5a1dbc,{'title':_0x1bddfb[_0xed8d6f(0xd3)],'items':_0x52e608}));}this[_0xed8d6f(0xe0)][_0xed8d6f(0xcb)]=_0x569874,this[_0xed8d6f(0xe0)][_0xed8d6f(0xb0)][_0xed8d6f(0xe3)](),this[_0xed8d6f(0xe0)][_0xed8d6f(0xb0)][_0xed8d6f(0xc9)](_0x569874),this[_0xed8d6f(0xac)]=_0x5299e6[_0xed8d6f(0xab)](_0x4d8d35=>_0x4d8d35[_0xed8d6f(0xb0)][_0xed8d6f(0x100)]>0x0),this[_0xed8d6f(0x105)]();}[_0x27590d(0xdc)](_0x5010d9){const _0x544cf2=_0x27590d;for(const _0x2e7fb4 of this[_0x544cf2(0xe0)][_0x544cf2(0xcb)]){const _0x43e802=_0x2e7fb4[_0x544cf2(0xd1)](_0x5010d9);if(_0x43e802){if(_0x2e7fb4[_0x544cf2(0xe6)](_0x43e802),0x0===_0x2e7fb4[_0x544cf2(0x101)][_0x544cf2(0x100)]){const _0x48f4b2=this[_0x544cf2(0xe0)][_0x544cf2(0xcb)][_0x544cf2(0xec)](_0x2e7fb4);-0x1!==_0x48f4b2&&(this[_0x544cf2(0xe0)][_0x544cf2(0xcb)][_0x544cf2(0xef)](_0x48f4b2,0x1),this[_0x544cf2(0xe0)][_0x544cf2(0xb0)][_0x544cf2(0xe5)](_0x2e7fb4));}this[_0x544cf2(0xac)]=this[_0x544cf2(0xe0)][_0x544cf2(0xcb)][_0x544cf2(0x100)]>0x0,this[_0x544cf2(0x105)]();break;}}}[_0x27590d(0xd0)](_0x25f15d,_0x19bb95){const _0xc13644=_0x27590d;for(const _0x15ebf7 of this[_0xc13644(0xe0)][_0xc13644(0xcb)]){const _0x3307ef=_0x15ebf7[_0xc13644(0xd1)](_0x25f15d);if(_0x3307ef){_0x3307ef[_0xc13644(0xc3)](_0x19bb95);break;}}}[_0x27590d(0xea)](_0x2c1c87,_0x4b00ee,_0x144c55){const _0x5e6bdd=_0x27590d;for(const _0x40fea5 of this[_0x5e6bdd(0xe0)][_0x5e6bdd(0xcb)]){const _0x1f5d19=_0x40fea5[_0x5e6bdd(0xd1)](_0x2c1c87);if(_0x1f5d19){_0x1f5d19[_0x5e6bdd(0xaa)](_0x4b00ee,_0x144c55);break;}}}[_0x27590d(0x105)](){const _0x28c03a=_0x27590d;if(this[_0x28c03a(0xac)]){const _0x41d7d2=this[_0x28c03a(0xd5)][_0x28c03a(0xde)][_0x28c03a(0xf5)]?.[_0x28c03a(0xe1)]?.[_0x28c03a(0xf2)]||'';this[_0x28c03a(0xd5)][_0x28c03a(0xc0)](_0x41d7d2);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5bfce5=_0x4792;(function(_0x48ff62,_0x79f9bd){const _0x2e2369=_0x4792,_0x3b4f8f=_0x48ff62();while(!![]){try{const _0x53962e=-parseInt(_0x2e2369(0x1dc))/0x1*(parseInt(_0x2e2369(0x1cc))/0x2)+parseInt(_0x2e2369(0x1d1))/0x3+parseInt(_0x2e2369(0x1ce))/0x4+-parseInt(_0x2e2369(0x215))/0x5+-parseInt(_0x2e2369(0x1ee))/0x6*(-parseInt(_0x2e2369(0x1fb))/0x7)+parseInt(_0x2e2369(0x207))/0x8*(parseInt(_0x2e2369(0x20e))/0x9)+parseInt(_0x2e2369(0x1e1))/0xa*(-parseInt(_0x2e2369(0x218))/0xb);if(_0x53962e===_0x79f9bd)break;else _0x3b4f8f['push'](_0x3b4f8f['shift']());}catch(_0x3ef01e){_0x3b4f8f['push'](_0x3b4f8f['shift']());}}}(_0x5c63,0xe091e));import{AIChatUI as _0x449732}from'../aichat/aichatui.js';import{ContextPlugin as _0x3e0314}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0xfa265d}from'./ui/aichatshortcutsview.js';function _0x5c63(){const _0x2e7838=['activeConversation','custom','ai-chat-shortcuts-invalid-config','chat','review','params','view','72rDRAdd','isFromHistory','runReviewCheck','execute','translate','setPromptInputValue','type','requires','length','label','language','locale','ai-chat-shortcuts-translate-not-found','506366BAwPPZ','includes','removeFeedItem','has','chatModels','getModel','focusPromptInput','config','hasFeedItem','args','_executeShortcut','AITranslateUI','12566104zkRyBH','addCurrentDocumentToChatContext','reviewMode','AIReviewModeUI','_removeShortcuts','_shortcutsView','AIChat','9xjkOYe','CHAT','setReasoning','getDefault','check','conversationCreated','get','6829305crHgVi','_aiChatUI','interactionStarted','354343ZAzRWi','render','addFeedItemCustomElement','ai-chat-shortcuts-review-mode-not-found','source','TRANSLATE','_runChatShortcut','_shortcuts','pluginName','_runReviewShortcut','activateTab','listenTo','setModel','AIChatShortcuts','forEach','_injectShortcuts','fire','922avcqCQ','isPremiumPlugin','3052828rakAUo','ai-chat-shortcuts-ai-tabs-not-found','REVIEW','3316359XtMzzK','_runTranslateShortcut','string','AITabs','AIChatController','ai.chat.shortcuts','_validateShortcuts','prompt','context','setWebSearch','find','3617ECUslB','init','chat-shortcuts','values','_switchTab','110tivpht','destroy','isOfficialPlugin','sendMessage','plugins','element'];_0x5c63=function(){return _0x2e7838;};return _0x5c63();}import{CKEditorError as _0x1953b2}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x5bfce5(0x1de);function _0x4792(_0x7ba6a5,_0x51c7d1){const _0x5c6361=_0x5c63();return _0x4792=function(_0x479296,_0x35090f){_0x479296=_0x479296-0x1bd;let _0x1dde89=_0x5c6361[_0x479296];return _0x1dde89;},_0x4792(_0x7ba6a5,_0x51c7d1);}export var AIChatShortcutType;!function(_0x2b4c5b){const _0x4c4d36=_0x5bfce5;_0x2b4c5b[_0x4c4d36(0x20f)]=_0x4c4d36(0x1ea),_0x2b4c5b[_0x4c4d36(0x1d0)]=_0x4c4d36(0x1eb),_0x2b4c5b[_0x4c4d36(0x1c0)]=_0x4c4d36(0x1f2);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x3e0314{[_0x5bfce5(0x1c2)];[_0x5bfce5(0x20c)];[_0x5bfce5(0x216)];static get[_0x5bfce5(0x1f5)](){return[_0x449732];}static get[_0x5bfce5(0x1c3)](){const _0x34e3c7=_0x5bfce5;return _0x34e3c7(0x1c8);}static get[_0x5bfce5(0x1e3)](){return!0x0;}static get[_0x5bfce5(0x1cd)](){return!0x0;}[_0x5bfce5(0x1dd)](){const _0x471b4b=_0x5bfce5;this[_0x471b4b(0x216)]=this[_0x471b4b(0x1d9)][_0x471b4b(0x1e5)][_0x471b4b(0x214)](_0x449732),this[_0x471b4b(0x1c2)]=this[_0x471b4b(0x1d9)][_0x471b4b(0x202)][_0x471b4b(0x214)](_0x471b4b(0x1d6))??[];const _0x1267f0=this[_0x471b4b(0x1d9)][_0x471b4b(0x1e5)][_0x471b4b(0x214)](_0x471b4b(0x1d5));this[_0x471b4b(0x1c2)][_0x471b4b(0x1f6)]&&(this[_0x471b4b(0x1d7)](),this[_0x471b4b(0x216)]['on'](_0x471b4b(0x213),()=>{const _0x1280b7=_0x471b4b;_0x1267f0[_0x1280b7(0x1e7)][_0x1280b7(0x1ef)]||this[_0x1280b7(0x1ca)]();}),this[_0x471b4b(0x1c6)](_0x1267f0,_0x471b4b(0x217),()=>{const _0x986d0e=_0x471b4b;this[_0x986d0e(0x20b)]();}));}[_0x5bfce5(0x1d7)](){const _0x3715cb=_0x5bfce5,_0x1ff3aa=Object[_0x3715cb(0x1df)](AIChatShortcutType);this[_0x3715cb(0x1c2)][_0x3715cb(0x1c9)](_0x4916e4=>{const _0x338e63=_0x3715cb;let _0x253e66=!0x0;if(_0x4916e4['id']&&_0x4916e4[_0x338e63(0x1f7)]&&_0x1ff3aa[_0x338e63(0x1fc)](_0x4916e4[_0x338e63(0x1f4)])?_0x338e63(0x1ea)===_0x4916e4[_0x338e63(0x1f4)]&&(_0x253e66=_0x338e63(0x1d3)==typeof _0x4916e4[_0x338e63(0x1d8)]):_0x253e66=!0x1,!_0x253e66)throw new _0x1953b2(_0x338e63(0x1e9),this[_0x338e63(0x1d9)],{'shortcut':_0x4916e4});});}[_0x5bfce5(0x1ca)](){const _0x57e2b0=_0x5bfce5,_0x2b9ef3=this[_0x57e2b0(0x1d9)][_0x57e2b0(0x1e5)][_0x57e2b0(0x214)](_0x449732);this[_0x57e2b0(0x20c)]=new _0xfa265d(this[_0x57e2b0(0x1d9)][_0x57e2b0(0x1f9)],this[_0x57e2b0(0x1c2)]),this[_0x57e2b0(0x20c)][_0x57e2b0(0x219)](),_0x2b9ef3[_0x57e2b0(0x1bd)](this[_0x57e2b0(0x20c)][_0x57e2b0(0x1e6)],Ut),this[_0x57e2b0(0x20c)]['on'](_0x57e2b0(0x1f1),_0x1477d7=>{const _0x125895=_0x57e2b0,_0x5a958d=_0x1477d7[_0x125895(0x1bf)]['id'];this[_0x125895(0x205)](_0x5a958d);});}[_0x5bfce5(0x20b)](){const _0x286512=_0x5bfce5,_0x2b5ae0=this[_0x286512(0x1d9)][_0x286512(0x1e5)][_0x286512(0x214)](_0x449732);_0x2b5ae0[_0x286512(0x203)](Ut)&&_0x2b5ae0[_0x286512(0x1fd)](Ut),this[_0x286512(0x20c)]?.[_0x286512(0x1e2)]();}[_0x5bfce5(0x205)](_0x54410d){const _0x526905=_0x5bfce5,_0x4dd442=this[_0x526905(0x1c2)][_0x526905(0x1db)](_0x549c92=>_0x549c92['id']===_0x54410d),_0xfc4b0a=_0x4dd442[_0x526905(0x1f4)];_0x526905(0x1ea)===_0xfc4b0a?this[_0x526905(0x1c1)](_0x4dd442):_0x526905(0x1eb)===_0xfc4b0a?_0x4dd442[_0x526905(0x212)]?this[_0x526905(0x1c4)](_0x4dd442):this[_0x526905(0x1e0)](_0x526905(0x209)):_0x526905(0x1f2)===_0xfc4b0a&&(_0x4dd442[_0x526905(0x1f8)]?this[_0x526905(0x1d2)](_0x4dd442):this[_0x526905(0x1e0)](_0x526905(0x1f2)));}[_0x5bfce5(0x1e0)](_0x58145c){const _0x1b2d93=_0x5bfce5;if(!this[_0x1b2d93(0x1d9)][_0x1b2d93(0x1e5)][_0x1b2d93(0x1fe)](_0x1b2d93(0x1d4)))throw new _0x1953b2(_0x1b2d93(0x1cf),this[_0x1b2d93(0x1d9)],{'tabName':_0x58145c});this[_0x1b2d93(0x1d9)][_0x1b2d93(0x1e5)][_0x1b2d93(0x214)](_0x1b2d93(0x1d4))[_0x1b2d93(0x1ed)][_0x1b2d93(0x1c5)](_0x58145c);}async[_0x5bfce5(0x1c1)]({prompt:_0x5c8ec3,draftMode:_0x802a68,useWebSearch:_0x1e4316=!0x1,useReasoning:_0x1d8c8a=!0x1,model:_0x591131}){const _0x2197f1=_0x5bfce5,_0x453997=this[_0x2197f1(0x1d9)][_0x2197f1(0x1e5)][_0x2197f1(0x214)](_0x2197f1(0x20d)),_0x1751a2=this[_0x2197f1(0x1d9)][_0x2197f1(0x1e5)][_0x2197f1(0x214)](_0x2197f1(0x1d5)),_0x36f94f=_0x1751a2[_0x2197f1(0x1e7)];let _0x12b3d7;_0x12b3d7=_0x591131?await _0x36f94f[_0x2197f1(0x1ff)][_0x2197f1(0x200)](_0x591131):await _0x36f94f[_0x2197f1(0x1ff)][_0x2197f1(0x211)](),_0x12b3d7&&await _0x36f94f[_0x2197f1(0x1c7)](_0x12b3d7),_0x36f94f[_0x2197f1(0x1da)](_0x1e4316),_0x36f94f[_0x2197f1(0x210)](_0x1d8c8a),_0x1751a2[_0x2197f1(0x208)](),_0x802a68?(this[_0x2197f1(0x216)][_0x2197f1(0x1f3)](_0x5c8ec3),this[_0x2197f1(0x216)][_0x2197f1(0x201)](!0x0)):_0x453997[_0x2197f1(0x1e4)]({'message':_0x5c8ec3});}[_0x5bfce5(0x1c4)]({check:_0x1af01f,model:_0x39fc61,prompt:_0x19b82c,params:_0x322911}){const _0x59f9ce=_0x5bfce5;if(!this[_0x59f9ce(0x1d9)][_0x59f9ce(0x1e5)][_0x59f9ce(0x1fe)](_0x59f9ce(0x20a)))throw new _0x1953b2(_0x59f9ce(0x1be),this[_0x59f9ce(0x1d9)]);this[_0x59f9ce(0x1e0)](_0x59f9ce(0x209));const _0x60fbea={'id':_0x1af01f,'isCustom':_0x59f9ce(0x1e8)===_0x1af01f};_0x39fc61&&_0x19b82c&&(_0x60fbea[_0x59f9ce(0x204)]={'model':_0x39fc61,'prompt':_0x19b82c}),_0x322911&&(_0x60fbea[_0x59f9ce(0x1ec)]=_0x322911),this[_0x59f9ce(0x1d9)][_0x59f9ce(0x1e5)][_0x59f9ce(0x214)](_0x59f9ce(0x20a))[_0x59f9ce(0x1cb)](_0x59f9ce(0x1f0),_0x60fbea);}[_0x5bfce5(0x1d2)]({language:_0x3da61c}){const _0x22e41e=_0x5bfce5;if(!this[_0x22e41e(0x1d9)][_0x22e41e(0x1e5)][_0x22e41e(0x1fe)](_0x22e41e(0x206)))throw new _0x1953b2(_0x22e41e(0x1fa),this[_0x22e41e(0x1d9)]);this[_0x22e41e(0x1e0)](_0x22e41e(0x1f2)),this[_0x22e41e(0x1d9)][_0x22e41e(0x1e5)][_0x22e41e(0x214)](_0x22e41e(0x206))[_0x22e41e(0x1cb)](_0x22e41e(0x1f0),{'id':_0x3da61c,'args':{'language':_0x3da61c}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52f04d=_0x2d69;(function(_0x2b7ba4,_0x8704ea){const _0x1233b4=_0x2d69,_0x37d361=_0x2b7ba4();while(!![]){try{const _0x37ceca=parseInt(_0x1233b4(0x138))/0x1+-parseInt(_0x1233b4(0x143))/0x2+-parseInt(_0x1233b4(0x148))/0x3*(parseInt(_0x1233b4(0x14b))/0x4)+-parseInt(_0x1233b4(0x139))/0x5+parseInt(_0x1233b4(0x13b))/0x6+parseInt(_0x1233b4(0x146))/0x7+parseInt(_0x1233b4(0x14a))/0x8;if(_0x37ceca===_0x8704ea)break;else _0x37d361['push'](_0x37d361['shift']());}catch(_0x13fd59){_0x37d361['push'](_0x37d361['shift']());}}}(_0x2c2f,0x42fa5));import{ListItemView as _0x365972,ListView as _0x224000,View as _0xbc70e1}from'ckeditor5/src/ui.js';function _0x2d69(_0x50b948,_0x1502a3){const _0x2c2fa0=_0x2c2f();return _0x2d69=function(_0x2d695d,_0x406e14){_0x2d695d=_0x2d695d-0x138;let _0x531ad3=_0x2c2fa0[_0x2d695d];return _0x531ad3;},_0x2d69(_0x50b948,_0x1502a3);}import{AIChatShortcutView as _0x280ae4}from'./aichatshortcutview.js';function _0x2c2f(){const _0xe229df=['div','items','ck-ai-chat-shortcuts','listView','setTemplate','addMany','801062clLzrV','children','map','1892058IDnxlE','locale','9BYnDWZ','execute','2300480LGrIyN','245524PzPAhg','56368iRdhAR','828850NPWqTv','delegate','2463378hKpEux','add'];_0x2c2f=function(){return _0xe229df;};return _0x2c2f();}export class AIChatShortcutsView extends _0xbc70e1{[_0x52f04d(0x140)];constructor(_0x3841d6,_0x241057){const _0x17798d=_0x52f04d;super(_0x3841d6);const _0x2d7a39=_0x241057[_0x17798d(0x145)](_0x28eef9=>{const _0x4b7a22=_0x17798d,_0x32d50f=new _0x365972(this[_0x4b7a22(0x147)]),_0x4c1a1f=new _0x280ae4(this[_0x4b7a22(0x147)],_0x28eef9);return _0x32d50f[_0x4b7a22(0x144)][_0x4b7a22(0x13c)](_0x4c1a1f),_0x4c1a1f[_0x4b7a22(0x13a)](_0x4b7a22(0x149))['to'](this),_0x32d50f;});this[_0x17798d(0x140)]=new _0x224000(this[_0x17798d(0x147)]),this[_0x17798d(0x140)][_0x17798d(0x13e)][_0x17798d(0x142)](_0x2d7a39),this[_0x17798d(0x141)]({'tag':_0x17798d(0x13d),'attributes':{'class':['ck',_0x17798d(0x13f)]},'children':[this[_0x17798d(0x140)]]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x14a51c,_0x1d5926){const _0x3bddcd=_0x27db,_0x279e83=_0x14a51c();while(!![]){try{const _0x1b6193=parseInt(_0x3bddcd(0xe2))/0x1+-parseInt(_0x3bddcd(0xe3))/0x2*(parseInt(_0x3bddcd(0xdd))/0x3)+parseInt(_0x3bddcd(0xe1))/0x4*(-parseInt(_0x3bddcd(0xe7))/0x5)+-parseInt(_0x3bddcd(0xd8))/0x6*(parseInt(_0x3bddcd(0xde))/0x7)+-parseInt(_0x3bddcd(0xe0))/0x8+parseInt(_0x3bddcd(0xdc))/0x9*(parseInt(_0x3bddcd(0xdf))/0xa)+parseInt(_0x3bddcd(0xd7))/0xb*(parseInt(_0x3bddcd(0xe8))/0xc);if(_0x1b6193===_0x1d5926)break;else _0x279e83['push'](_0x279e83['shift']());}catch(_0x24fd07){_0x279e83['push'](_0x279e83['shift']());}}}(_0xc641,0x58914));import{ButtonView as _0x244719}from'ckeditor5/src/ui.js';function _0x27db(_0x3f0646,_0x3a1d9d){const _0xc641f1=_0xc641();return _0x27db=function(_0x27dba5,_0xe80481){_0x27dba5=_0x27dba5-0xd5;let _0xc2ee66=_0xc641f1[_0x27dba5];return _0xc2ee66;},_0x27db(_0x3f0646,_0x3a1d9d);}import{IconAIChat as _0x48fb2c,IconAIReview as _0x1b9253,IconAITranslate as _0x2f350c}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x244719{['id'];constructor(_0x1289ce,_0x68ada0){const _0x5121a7=_0x27db;super(_0x1289ce);const {id:_0x8fc6ac,type:_0x52ec4a,icon:_0x32fa1d}=_0x68ada0;this['id']=_0x8fc6ac,this[_0x5121a7(0xd5)]({'label':_0x68ada0[_0x5121a7(0xdb)],'withText':!0x0,'class':_0x5121a7(0xd9)}),this[_0x5121a7(0xda)]({'attributes':{'data-cke-ai-shortcut-id':_0x68ada0['id']}}),_0x32fa1d?this[_0x5121a7(0xe4)]=_0x32fa1d:_0x5121a7(0xd6)===_0x52ec4a?this[_0x5121a7(0xe4)]=_0x48fb2c:_0x5121a7(0xe5)===_0x52ec4a?this[_0x5121a7(0xe4)]=_0x1b9253:_0x5121a7(0xe6)===_0x52ec4a&&(this[_0x5121a7(0xe4)]=_0x2f350c);}}function _0xc641(){const _0x4e47c7=['translate','5bjMlqa','7190916xEFXXs','set','chat','11EHkHko','2388irOmrm','ck-ai-chat-shortcut','extendTemplate','label','9HkTtaI','3khZmmp','8302KmIucK','6366070fmUbKm','3926512bHJGru','633948LkdiRy','385676SOqurv','274850iIukby','icon','review'];_0xc641=function(){return _0x4e47c7;};return _0xc641();}
|