@ckeditor/ckeditor5-ai 47.6.1 → 47.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
-
|
|
23
|
+
function _0x128c(_0x1d5c88,_0x511c43){const _0x1a2eaf=_0x1a2e();return _0x128c=function(_0x128cd4,_0x2288ba){_0x128cd4=_0x128cd4-0x173;let _0x13bcea=_0x1a2eaf[_0x128cd4];return _0x13bcea;},_0x128c(_0x1d5c88,_0x511c43);}const _0xc350a0=_0x128c;(function(_0x5b78fc,_0xbee43a){const _0x165032=_0x128c,_0x1577e6=_0x5b78fc();while(!![]){try{const _0x212074=-parseInt(_0x165032(0x18e))/0x1+-parseInt(_0x165032(0x183))/0x2*(parseInt(_0x165032(0x181))/0x3)+-parseInt(_0x165032(0x177))/0x4*(parseInt(_0x165032(0x188))/0x5)+parseInt(_0x165032(0x189))/0x6*(parseInt(_0x165032(0x184))/0x7)+-parseInt(_0x165032(0x17d))/0x8+-parseInt(_0x165032(0x178))/0x9+parseInt(_0x165032(0x17e))/0xa;if(_0x212074===_0xbee43a)break;else _0x1577e6['push'](_0x1577e6['shift']());}catch(_0x5abc2e){_0x1577e6['push'](_0x1577e6['shift']());}}}(_0x1a2e,0x8e1ef));function _0x1a2e(){const _0x2a44c2=['574mESgxu','queue','length','queueEmptyPromise','5JQqOPo','60132GJlkjh','isProcessing','abort','completePromise','resolve','971396jmdaHr','createTask','shift','once','push','_queueEmpty','1913732GcSECc','2195919thPJRW','enqueue','callback','fire','signal','6608624YPvdnf','30029620tFIXBy','_abortController','reject','3zFkaTQ','_processQueue','1445482syZGMB'];_0x1a2e=function(){return _0x2a44c2;};return _0x1a2e();}import{EmitterMixin as _0xd00567}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0xd00567(){[_0xc350a0(0x185)]=[];[_0xc350a0(0x18a)]=!0x1;[_0xc350a0(0x17f)];async[_0xc350a0(0x179)](_0x1e1849){const _0x552fe5=_0xc350a0,_0x391c64=this[_0x552fe5(0x18f)](_0x1e1849);return this[_0x552fe5(0x185)][_0x552fe5(0x175)](_0x391c64),this[_0x552fe5(0x182)](),_0x391c64[_0x552fe5(0x18c)];}[_0xc350a0(0x18b)](){const _0x4bef07=_0xc350a0;this[_0x4bef07(0x18a)]&&(this[_0x4bef07(0x17f)][_0x4bef07(0x18b)](),this[_0x4bef07(0x17f)]=void 0x0,this[_0x4bef07(0x185)]=[],this[_0x4bef07(0x17b)](_0x4bef07(0x176)),this[_0x4bef07(0x18a)]=!0x1);}get[_0xc350a0(0x187)](){const _0x197ca6=_0xc350a0;return this[_0x197ca6(0x185)][_0x197ca6(0x186)]||this[_0x197ca6(0x18a)]?new Promise(_0x53112f=>{const _0x3bd966=_0x197ca6;this[_0x3bd966(0x174)](_0x3bd966(0x176),()=>{_0x53112f();});}):Promise[_0x197ca6(0x18d)]();}async[_0xc350a0(0x182)](){const _0x349aa5=_0xc350a0;if(!this[_0x349aa5(0x18a)]){this[_0x349aa5(0x17f)]=new AbortController(),this[_0x349aa5(0x18a)]=!0x0;try{for(;this[_0x349aa5(0x185)][_0x349aa5(0x186)]&&this[_0x349aa5(0x18a)];){const _0x3343f3=this[_0x349aa5(0x185)][_0x349aa5(0x173)]();try{await _0x3343f3[_0x349aa5(0x17a)](this[_0x349aa5(0x17f)][_0x349aa5(0x17c)]),_0x3343f3[_0x349aa5(0x18d)]();}catch(_0x56cc73){_0x3343f3[_0x349aa5(0x180)](_0x56cc73);}}}finally{this[_0x349aa5(0x18a)]=!0x1,this[_0x349aa5(0x17f)]=void 0x0;}this[_0x349aa5(0x17b)](_0x349aa5(0x176));}}[_0xc350a0(0x18f)](_0x5c021b){let _0x3a458b,_0x4cabf2;const _0x19a3b8=new Promise((_0xc8b6d7,_0x5a22f7)=>{_0x3a458b=_0xc8b6d7,_0x4cabf2=_0x5a22f7;});return{'callback':_0x5c021b,'resolve':_0x3a458b,'reject':_0x4cabf2,'completePromise':_0x19a3b8};}}
|
|
@@ -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 _0x508799=_0x1bf7;function _0x1bf7(_0x4fc00b,_0x5957e7){const _0xc98745=_0xc987();return _0x1bf7=function(_0x1bf7d6,_0x1aa168){_0x1bf7d6=_0x1bf7d6-0xfa;let _0x1afb7c=_0xc98745[_0x1bf7d6];return _0x1afb7c;},_0x1bf7(_0x4fc00b,_0x5957e7);}(function(_0x4fe4d2,_0x27d34b){const _0x225d58=_0x1bf7,_0x5330bc=_0x4fe4d2();while(!![]){try{const _0xe31143=parseInt(_0x225d58(0xfc))/0x1+-parseInt(_0x225d58(0x110))/0x2*(parseInt(_0x225d58(0x11c))/0x3)+-parseInt(_0x225d58(0x10a))/0x4+-parseInt(_0x225d58(0x11d))/0x5+parseInt(_0x225d58(0x115))/0x6*(parseInt(_0x225d58(0x117))/0x7)+parseInt(_0x225d58(0x126))/0x8*(parseInt(_0x225d58(0x114))/0x9)+-parseInt(_0x225d58(0xfd))/0xa;if(_0xe31143===_0x27d34b)break;else _0x5330bc['push'](_0x5330bc['shift']());}catch(_0x1aded7){_0x5330bc['push'](_0x5330bc['shift']());}}}(_0xc987,0x37b4b));function _0xc987(){const _0x3aba3f=['pinned','16OKDWPT','fire','map','execute','getMonth','312455fOVVYt','1205860uGtsYU','itemRemoved','find','group','deleteConversation','getFullYear','items','addItem','connector','updateConversation','itemUpdated','filter','updateItemPinned','368548xxwKvm','removeItem','createdAt','getDate','loadItems','updatePinned','27788atxKDn','getItems','getTime','getResult','1840212nfrnHx','12vtWcGT','updateTitle','897694FSKZtI','init','from','getItem','fetchConversations','54vAyYci','1434445skqBIV','getConversations','itemsLoaded','updateItemTitle','error','findIndex','push','splice'];_0xc987=function(){return _0x3aba3f;};return _0xc987();}import{EmitterMixin as _0x595bef}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x2a42d4}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x595bef(){[_0x508799(0x103)]=[];[_0x508799(0x105)];[_0x508799(0x100)];constructor({connector:_0x5883ab,group:_0x40afdb}){const _0x9c7dc3=_0x508799;super(),this[_0x9c7dc3(0x105)]=_0x5883ab,this[_0x9c7dc3(0x100)]=_0x40afdb;}async[_0x508799(0x118)](){const _0x21d351=_0x508799;try{const _0x10433f=this[_0x21d351(0x105)][_0x21d351(0x11b)](this[_0x21d351(0x100)]),_0xdf2e94=await _0x10433f[_0x21d351(0x11e)]();this[_0x21d351(0x10e)](_0xdf2e94);}catch(_0x42ab2a){this[_0x21d351(0x127)](_0x21d351(0x121),{'error':_0x42ab2a,'operation':_0x21d351(0x118)});}}[_0x508799(0x104)](_0x5b9c64){const _0x3faca7=_0x508799;this[_0x3faca7(0x103)][_0x3faca7(0x123)](_0x5b9c64);}async[_0x508799(0x10b)](_0x1de2e8){const _0x5432=_0x508799,_0x26533c=this[_0x5432(0x103)][_0x5432(0x122)](_0x25920c=>_0x25920c['id']===_0x1de2e8);if(-0x1===_0x26533c)return!0x1;try{return await this[_0x5432(0x105)][_0x5432(0x101)](_0x1de2e8)[_0x5432(0xfa)](),this[_0x5432(0x103)][_0x5432(0x124)](_0x26533c,0x1),this[_0x5432(0x127)](_0x5432(0xfe),{'itemId':_0x1de2e8}),!0x0;}catch(_0x102734){return this[_0x5432(0x127)](_0x5432(0x121),{'error':_0x102734,'operation':_0x5432(0x10b),'itemId':_0x1de2e8}),!0x1;}}[_0x508799(0x11a)](_0x5ad9b7){const _0x2afa96=_0x508799;return this[_0x2afa96(0x103)][_0x2afa96(0xff)](_0x2f7dfe=>_0x2f7dfe['id']===_0x5ad9b7);}async[_0x508799(0x120)](_0x3364cb,_0x4e3701){const _0x1c77ee=_0x508799,_0x109869=this[_0x1c77ee(0x11a)](_0x3364cb);if(!_0x109869)return!0x1;try{return await this[_0x1c77ee(0x105)][_0x1c77ee(0x106)](_0x3364cb,{'title':_0x4e3701})[_0x1c77ee(0x113)](),_0x109869[_0x1c77ee(0x116)](_0x4e3701),this[_0x1c77ee(0x127)](_0x1c77ee(0x107),{'itemId':_0x3364cb,'updates':{'title':_0x4e3701}}),!0x0;}catch(_0x5276d9){return this[_0x1c77ee(0x127)](_0x1c77ee(0x121),{'error':_0x5276d9,'operation':_0x1c77ee(0x120),'itemId':_0x3364cb}),!0x1;}}async[_0x508799(0x109)](_0x1447d5,_0x1ea2d5){const _0x2fab90=_0x508799,_0x3de293=this[_0x2fab90(0x11a)](_0x1447d5);if(!_0x3de293)return!0x1;try{return await this[_0x2fab90(0x105)][_0x2fab90(0x106)](_0x1447d5,{'pinned':_0x1ea2d5})[_0x2fab90(0x113)](),_0x3de293[_0x2fab90(0x10f)](_0x1ea2d5),this[_0x2fab90(0x127)](_0x2fab90(0x107),{'itemId':_0x1447d5,'updates':{'pinned':_0x1ea2d5}}),!0x0;}catch(_0x2919d6){return this[_0x2fab90(0x127)](_0x2fab90(0x121),{'error':_0x2919d6,'operation':_0x2fab90(0x109),'itemId':_0x1447d5}),!0x1;}}[_0x508799(0x10e)](_0x2d4f34){const _0x1fb69f=_0x508799;try{this[_0x1fb69f(0x103)]=[],_0x2d4f34[_0x1fb69f(0x128)](_0xaf24bf=>{const _0x10a600=_0x1fb69f;this[_0x10a600(0x104)](new _0x2a42d4(_0xaf24bf));}),this[_0x1fb69f(0x127)](_0x1fb69f(0x11f),{'items':[...this[_0x1fb69f(0x103)]]});}catch(_0x566f79){this[_0x1fb69f(0x127)](_0x1fb69f(0x121),{'error':_0x566f79,'operation':_0x1fb69f(0x10e)});}}[_0x508799(0x111)](_0x5020ea={}){const _0x40f2d2=_0x508799,_0x155dbc=void 0x0!==_0x5020ea[_0x40f2d2(0x125)]&&_0x5020ea[_0x40f2d2(0x125)],_0x4f7ab9=_0x5020ea[_0x40f2d2(0x119)]?new Date(_0x5020ea[_0x40f2d2(0x119)][_0x40f2d2(0x102)](),_0x5020ea[_0x40f2d2(0x119)][_0x40f2d2(0xfb)](),_0x5020ea[_0x40f2d2(0x119)][_0x40f2d2(0x10d)]()):null,_0x185e6d=_0x5020ea['to']?new Date(_0x5020ea['to'][_0x40f2d2(0x102)](),_0x5020ea['to'][_0x40f2d2(0xfb)](),_0x5020ea['to'][_0x40f2d2(0x10d)]()):null;return this[_0x40f2d2(0x103)][_0x40f2d2(0x108)](_0x58350c=>{const _0x2e0052=_0x40f2d2;if(_0x58350c[_0x2e0052(0x125)]!==_0x155dbc)return!0x1;if(_0x185e6d){const _0x2e381b=new Date(_0x58350c[_0x2e0052(0x10c)][_0x2e0052(0x102)](),_0x58350c[_0x2e0052(0x10c)][_0x2e0052(0xfb)](),_0x58350c[_0x2e0052(0x10c)][_0x2e0052(0x10d)]());return _0x4f7ab9?_0x4f7ab9[_0x2e0052(0x112)]()===_0x185e6d[_0x2e0052(0x112)]()?_0x2e381b[_0x2e0052(0x112)]()===_0x4f7ab9[_0x2e0052(0x112)]():_0x2e381b<_0x185e6d&&_0x2e381b>=_0x4f7ab9:_0x2e381b<_0x185e6d;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x27e61d=_0x1358;function _0x1358(_0x2c45ad,_0x2bbcf8){var _0x55cee4=_0x55ce();return _0x1358=function(_0x1358de,_0xf74376){_0x1358de=_0x1358de-0x10c;var _0x40b5c7=_0x55cee4[_0x1358de];return _0x40b5c7;},_0x1358(_0x2c45ad,_0x2bbcf8);}function _0x55ce(){var _0xe5f96d=['6831356EckZFq','125234FVZgRT','11WsDgkJ','477353AwqXzZ','pinned','updatePinned','updatedAt','createdAt','1583544nSBDXm','set','45JHWOeZ','title','6437406chzyKX','12mOthSM','25699610pXviSw','687906KBnWxr','5QoVVdW','updateTitle'];_0x55ce=function(){return _0xe5f96d;};return _0x55ce();}(function(_0x41037e,_0x412f03){var _0x5a1344=_0x1358,_0x5b9193=_0x41037e();while(!![]){try{var _0x3bc7c8=-parseInt(_0x5a1344(0x115))/0x1+-parseInt(_0x5a1344(0x113))/0x2+parseInt(_0x5a1344(0x10f))/0x3*(parseInt(_0x5a1344(0x10d))/0x4)+parseInt(_0x5a1344(0x110))/0x5*(parseInt(_0x5a1344(0x10c))/0x6)+parseInt(_0x5a1344(0x112))/0x7+-parseInt(_0x5a1344(0x11a))/0x8*(-parseInt(_0x5a1344(0x11c))/0x9)+parseInt(_0x5a1344(0x10e))/0xa*(-parseInt(_0x5a1344(0x114))/0xb);if(_0x3bc7c8===_0x412f03)break;else _0x5b9193['push'](_0x5b9193['shift']());}catch(_0x2cc75d){_0x5b9193['push'](_0x5b9193['shift']());}}}(_0x55ce,0x96833));import{ObservableMixin as _0x371529}from'ckeditor5/src/utils.js';import{escape as _0x15e0b3}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x371529(){['id'];[_0x27e61d(0x119)];constructor({id:_0x4b174b,title:_0x4d0338,createdAt:_0x5b834f,updatedAt:_0x3fed92,pinned:_0x46d01e}){var _0x129a37=_0x27e61d;super(),this['id']=_0x4b174b,this[_0x129a37(0x119)]=new Date(_0x5b834f),this[_0x129a37(0x11b)](_0x129a37(0x11d),_0x4d0338),this[_0x129a37(0x11b)](_0x129a37(0x118),_0x3fed92?new Date(_0x3fed92):null),this[_0x129a37(0x11b)](_0x129a37(0x116),_0x46d01e||!0x1);}[_0x27e61d(0x111)](_0x5394b3){var _0xf6c3aa=_0x27e61d;this[_0xf6c3aa(0x11b)](_0xf6c3aa(0x11d),_0x15e0b3(_0x5394b3)),this[_0xf6c3aa(0x118)]=new Date();}[_0x27e61d(0x117)](_0x78b0f8){var _0x499b2e=_0x27e61d;this[_0x499b2e(0x11b)](_0x499b2e(0x116),_0x78b0f8),this[_0x499b2e(0x118)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const _0x3dc397=_0x425c;(function(_0x1f6217,_0x4e765b){const _0x44cd2c=_0x425c,_0x37c2e7=_0x1f6217();while(!![]){try{const _0x3e6579=-parseInt(_0x44cd2c(0x11e))/0x1*(parseInt(_0x44cd2c(0xf9))/0x2)+-parseInt(_0x44cd2c(0xc1))/0x3+-parseInt(_0x44cd2c(0xe3))/0x4+-parseInt(_0x44cd2c(0xc8))/0x5+parseInt(_0x44cd2c(0x110))/0x6+-parseInt(_0x44cd2c(0x11f))/0x7+-parseInt(_0x44cd2c(0xd7))/0x8*(-parseInt(_0x44cd2c(0x10d))/0x9);if(_0x3e6579===_0x4e765b)break;else _0x37c2e7['push'](_0x37c2e7['shift']());}catch(_0x179f5c){_0x37c2e7['push'](_0x37c2e7['shift']());}}}(_0x442d,0x586c6));function _0x442d(){const _0x4bc5db=['AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','showConfirm','addMany','ck-ai-chat-history__item-date','_commitEditInputValue','edit:cancel','ck-ai-chat-history__item--active','label','loadingState','bind','_createSpinnerView','key','mainContent','426310SAkahs','_createCheckView','panelPosition','locale','string','div','set','isEdit','listitem','ck-ai-chat-history__item-actions','then','updateTitle','_createEditInputView','selectConversation','Enter','AI_CHAT_HISTORY_LOADING_PINNING','highlightText','AI_CHAT_HISTORY_ACCEPT','_createMenuDropdownView','value','62091IFnZGV','AI_CHAT_HISTORY_CANCEL','editConversationTitle','1562028ABPalD','match','ck-confirm-view-cancel','LOADING_LABELS','ck-confirm-view-submit','_titleView','AI_CHAT_HISTORY_PIN_BUTTON','AI_CHAT_HISTORY_LOADING_REMOVING','_createPinButtonView','buttonView','AI_CHAT_HISTORY_REMOVE_CONFIRM','tiny','createCollection','isMatching','1FjKfRN','4110449DVNmLS','actions','_createAcceptEditButtonView','563844WEtASs','updateLoadingState','execute','element','AI_CHAT_HISTORY_EDIT_NAME','ck-ai-chat-history__item-content','AI_CHAT_HISTORY_LOADING_RENAMING','2746750yEnVyP','isVisible','ck-ai-chat-history__item-check-container','isOn','removeConversation','ck-ai-loader','span','focus','add','text','_createCancelEditButtonView','clear','ck-ai-chat-history__item-main-content','ck-ai-chat-history__item-check','ck-ai-chat-history__item--edit','2664tUjfWy','extendTemplate','items','panelView','ck-ai-chat-history__item-row','ck-ai-chat-history__item-title','ck-hidden','bindTemplate','withText','change:isEdit','ck-ai-chat-history__item','AI_CHAT_HISTORY_LOADING_UNPINNING','2631452FxNzPx','setConversationPinned','pinned','click','setTemplate','ck-ai-loader__text','children','fire'];_0x442d=function(){return _0x4bc5db;};return _0x442d();}import{ListItemView as _0x18ad15,HighlightedTextView as _0x210619,ButtonView as _0x1a6c43,ListView as _0x25afd9,IconView as _0x80f0f2,createDropdown as _0xab4a5e,InputTextView as _0x2362d9}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x3d52d5,IconPin as _0x551c34,IconCheck as _0x8ec725,IconCancel as _0x14840d}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x438101,ConfirmMixin as _0x5c6c7a}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x425c(_0xcb6ac5,_0x2c7e2e){const _0x442d52=_0x442d();return _0x425c=function(_0x425c72,_0x1e7084){_0x425c72=_0x425c72-0xc1;let _0x343906=_0x442d52[_0x425c72];return _0x343906;},_0x425c(_0xcb6ac5,_0x2c7e2e);}import{escape as _0x3dc839}from'es-toolkit/compat';import{AISpinnerView as _0x534074}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x1a93ad}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5c6c7a(_0x18ad15){['id'];static [_0x3dc397(0x113)]={'remove':_0x3dc397(0x117),'rename':_0x3dc397(0xc7),'pin':_0x3dc397(0x108),'unpin':_0x3dc397(0xe2)};[_0x3dc397(0x120)];[_0x3dc397(0xf8)];[_0x3dc397(0x115)];constructor(_0x470d75,_0x49f5d4){const _0x31339c=_0x3dc397;super(_0x470d75);const _0x24ca6b=this[_0x31339c(0xde)];this[_0x31339c(0xff)](_0x31339c(0x100),!0x1),this[_0x31339c(0xff)](_0x31339c(0xc9),!0x0),this[_0x31339c(0xff)](_0x31339c(0xe5),!!_0x49f5d4[_0x31339c(0xe5)]),this[_0x31339c(0xff)](_0x31339c(0xf4),null),this['id']=_0x49f5d4['id'];const {title:_0x92262a,createdAt:_0x1ed50a,active:_0x3c2aea=!0x1}=_0x49f5d4;this[_0x31339c(0x115)]=new _0x210619(),this[_0x31339c(0x115)][_0x31339c(0xd1)]=_0x92262a,this[_0x31339c(0x115)][_0x31339c(0xd8)]({'attributes':{'class':[_0x31339c(0xdc)]}});const _0x32c884=this[_0x31339c(0xfa)](),_0x4155ee=this[_0x31339c(0x118)](_0x470d75),_0xcb3011=this[_0x31339c(0x10b)](),_0x4b9f36=this[_0x31339c(0x105)](_0x470d75,_0x92262a),_0x54a9d7=this[_0x31339c(0x121)](_0x470d75,_0x4b9f36),_0x3b9239=this[_0x31339c(0xd2)](_0x470d75,_0x4b9f36);this[_0x31339c(0x120)]=this[_0x31339c(0x11c)](),this[_0x31339c(0xf8)]=this[_0x31339c(0x11c)](),this[_0x31339c(0xf8)][_0x31339c(0xd0)](this[_0x31339c(0x115)]),this[_0x31339c(0x120)][_0x31339c(0xd0)](_0x4155ee),this[_0x31339c(0x120)][_0x31339c(0xd0)](_0xcb3011),this['on'](_0x31339c(0xe0),(_0x53f24d,_0xc1b2b9,_0x4ea254)=>{const _0x46650f=_0x31339c;this[_0x46650f(0x120)][_0x46650f(0xd3)](),this[_0x46650f(0xf8)][_0x46650f(0xd3)](),_0x4ea254?(this[_0x46650f(0x120)][_0x46650f(0xd0)](_0x54a9d7),this[_0x46650f(0x120)][_0x46650f(0xd0)](_0x3b9239),this[_0x46650f(0xf8)][_0x46650f(0xd0)](_0x4b9f36),_0x4b9f36[_0x46650f(0xc4)][_0x46650f(0xcf)]()):(this[_0x46650f(0x120)][_0x46650f(0xd0)](_0x4155ee),this[_0x46650f(0x120)][_0x46650f(0xd0)](_0xcb3011),this[_0x46650f(0xf8)][_0x46650f(0xd0)](this[_0x46650f(0x115)]));}),this[_0x31339c(0xe7)]({'tag':'li','attributes':{'class':[_0x31339c(0xe1),_0x3c2aea?_0x31339c(0xf2):'',_0x24ca6b['if'](_0x31339c(0xc9),_0x31339c(0xdd),_0xb5c0c9=>!_0xb5c0c9),_0x24ca6b['if'](_0x31339c(0x100),_0x31339c(0xd6))],'role':_0x31339c(0x101)},'children':[{'tag':_0x31339c(0xce),'attributes':{'class':[_0x31339c(0xca)]},'children':[{'tag':_0x31339c(0xfe),'attributes':{'class':[_0x31339c(0xd5),_0x24ca6b['if'](_0x31339c(0xf4),_0x31339c(0xdd),_0x163e2e=>!!_0x163e2e)]},'children':_0x3c2aea?[_0x32c884]:[]},{'tag':_0x31339c(0xfe),'attributes':{'class':[_0x31339c(0xcd),_0x24ca6b['if'](_0x31339c(0xf4),_0x31339c(0xdd),_0x6e6f57=>!_0x6e6f57)]},'children':[this[_0x31339c(0xf6)]()]}]},{'tag':_0x31339c(0xfe),'attributes':{'class':[_0x31339c(0xdb)]},'children':[{'tag':_0x31339c(0xfe),'attributes':{'class':[_0x31339c(0xc6)]},'on':{'click':this[_0x31339c(0xde)]['to'](_0x31339c(0xe6))},'children':[{'tag':_0x31339c(0xfe),'attributes':{'class':[_0x31339c(0xd4)]},'children':[{'tag':_0x31339c(0xfe),'attributes':{'class':[_0x31339c(0xdc),_0x24ca6b['if'](_0x31339c(0xf4),_0x31339c(0xdd),_0x40629f=>!!_0x40629f)]},'children':this[_0x31339c(0xf8)]},{'tag':_0x31339c(0xfe),'attributes':{'class':[_0x31339c(0xe8),_0x24ca6b['if'](_0x31339c(0xf4),_0x31339c(0xdd),_0x7b086b=>!_0x7b086b)]},'children':[{'text':_0x24ca6b['to'](_0x31339c(0xf4),_0xc91490=>_0xc91490?_0x1a93ad(this[_0x31339c(0xfc)],AIChatHistoryListItemView[_0x31339c(0x113)][_0xc91490]):'')}]}]},{'tag':_0x31339c(0xce),'attributes':{'class':[_0x31339c(0xef)]},'children':[_0x1ed50a]}]},{'tag':_0x31339c(0xfe),'attributes':{'class':[_0x31339c(0x102)]},'children':this[_0x31339c(0x120)]}]}]}),this['on'](_0x31339c(0xe6),()=>{const _0x1cabe3=_0x31339c;this[_0x1cabe3(0x100)]||this[_0x1cabe3(0xea)](_0x1cabe3(0x106),{'id':this['id']});});}[_0x3dc397(0x104)](_0x389577){const _0x127dea=_0x3dc397;this[_0x127dea(0x115)][_0x127dea(0xd1)]=_0x3dc839(_0x389577);}[_0x3dc397(0xc2)](_0x292c6f,_0x20b6c5){const _0x15cc1f=_0x3dc397;this[_0x15cc1f(0xff)](_0x15cc1f(0xf4),_0x20b6c5?_0x292c6f:null);}[_0x3dc397(0xfa)](){const _0x58b084=_0x3dc397,_0x8074a6=new _0x80f0f2();return _0x8074a6[_0x58b084(0xff)]({'content':_0x8ec725}),_0x8074a6;}[_0x3dc397(0x118)](_0x158f60){const _0x2a2206=_0x3dc397,_0x2cc2e6=new _0x1a6c43(_0x158f60);return _0x2cc2e6[_0x2a2206(0xff)]({'label':_0x1a93ad(_0x158f60,_0x2a2206(0x116)),'icon':_0x551c34,'withText':!0x1,'tooltip':!0x0}),_0x2cc2e6[_0x2a2206(0xf5)](_0x2a2206(0xcb))['to'](this,_0x2a2206(0xe5)),_0x2cc2e6['on'](_0x2a2206(0xc3),()=>{const _0x17e639=_0x2a2206,_0x4fb796=!this[_0x17e639(0xe5)];this[_0x17e639(0xea)](_0x17e639(0xe4),{'id':this['id'],'pinned':_0x4fb796});}),_0x2cc2e6;}[_0x3dc397(0x10b)](){const _0x46797f=_0x3dc397,_0x34456c=_0xab4a5e(this[_0x46797f(0xfc)],_0x438101),_0xbe8580=_0x34456c[_0x46797f(0xda)][_0x46797f(0xe9)];_0x34456c[_0x46797f(0x119)][_0x46797f(0xff)]({'label':_0x1a93ad(this[_0x46797f(0xfc)],_0x46797f(0xec)),'icon':_0x3d52d5}),_0x34456c[_0x46797f(0xfb)]='sw';const _0x2a57b5=new _0x1a6c43(this[_0x46797f(0xfc)]);_0x2a57b5[_0x46797f(0xf3)]=_0x1a93ad(this[_0x46797f(0xfc)],_0x46797f(0xc5)),_0x2a57b5[_0x46797f(0xdf)]=!0x0,_0x2a57b5['on'](_0x46797f(0xc3),()=>{const _0x10336d=_0x46797f;this[_0x10336d(0x100)]=!0x0;});const _0x4601ea=new _0x1a6c43(this[_0x46797f(0xfc)]);_0x4601ea[_0x46797f(0xf3)]=_0x1a93ad(this[_0x46797f(0xfc)],_0x46797f(0xeb)),_0x4601ea[_0x46797f(0xdf)]=!0x0,_0x4601ea['on'](_0x46797f(0xc3),()=>{const _0x12d2c9=_0x46797f;this[_0x12d2c9(0xed)](_0x1a93ad(this[_0x12d2c9(0xfc)],_0x12d2c9(0x11a)),this[_0x12d2c9(0xc4)])[_0x12d2c9(0x103)](()=>{const _0x301250=_0x12d2c9;this[_0x301250(0xea)](_0x301250(0xcc),{'id':this['id']});});});const _0x2ae6c9=new _0x25afd9(this[_0x46797f(0xfc)]),_0x34000e=new _0x18ad15(this[_0x46797f(0xfc)]);_0x34000e[_0x46797f(0xe9)][_0x46797f(0xd0)](_0x2a57b5);const _0x4b399a=new _0x18ad15(this[_0x46797f(0xfc)]);return _0x4b399a[_0x46797f(0xe9)][_0x46797f(0xd0)](_0x4601ea),_0x2ae6c9[_0x46797f(0xd9)][_0x46797f(0xee)]([_0x34000e,_0x4b399a]),_0xbe8580[_0x46797f(0xd0)](_0x2ae6c9),_0x34456c;}[_0x3dc397(0x105)](_0x570124,_0x2b11d1){const _0x3fda8e=_0x3dc397,_0x24d3ef=new _0x2362d9(_0x570124),_0x57fdf1=_0x24d3ef[_0x3fda8e(0xde)];return _0x24d3ef[_0x3fda8e(0x10c)]=_0x2b11d1,_0x24d3ef[_0x3fda8e(0xd8)]({'on':{'keydown':_0x57fdf1['to'](_0x3fb3a3=>{const _0x508070=_0x3fda8e;_0x508070(0x107)==_0x3fb3a3[_0x508070(0xf7)]&&this[_0x508070(0xf0)](_0x24d3ef);})}}),_0x24d3ef;}[_0x3dc397(0x121)](_0x5d06b6,_0x39c98e){const _0x2507e5=_0x3dc397,_0x4bc253=new _0x1a6c43(_0x5d06b6);return _0x4bc253[_0x2507e5(0xff)]({'icon':_0x8ec725,'withText':!0x1,'tooltip':_0x1a93ad(_0x5d06b6,_0x2507e5(0x10a))}),_0x4bc253[_0x2507e5(0xd8)]({'attributes':{'class':[_0x2507e5(0x114)]}}),_0x4bc253['on'](_0x2507e5(0xc3),()=>{const _0x19d1fd=_0x2507e5;this[_0x19d1fd(0xf0)](_0x39c98e);}),_0x4bc253;}[_0x3dc397(0xf0)](_0x27b641){const _0x9148fc=_0x3dc397,_0x4b6c4b=_0x27b641[_0x9148fc(0xc4)][_0x9148fc(0x10c)]||'';this[_0x9148fc(0x115)][_0x9148fc(0xd1)]=_0x4b6c4b,this[_0x9148fc(0x100)]=!0x1,this[_0x9148fc(0xea)](_0x9148fc(0x10f),{'id':this['id'],'title':_0x4b6c4b});}[_0x3dc397(0xd2)](_0x36e7a6,_0x3c5e16){const _0x367bf2=_0x3dc397,_0x2fd14a=new _0x1a6c43(_0x36e7a6);return _0x2fd14a[_0x367bf2(0xff)]({'icon':_0x14840d,'withText':!0x1,'tooltip':_0x1a93ad(_0x36e7a6,_0x367bf2(0x10e))}),_0x2fd14a[_0x367bf2(0xd8)]({'attributes':{'class':[_0x367bf2(0x112)]}}),_0x2fd14a['on'](_0x367bf2(0xc3),()=>{const _0xe20406=_0x367bf2;this[_0xe20406(0x100)]=!0x1,_0x3c5e16[_0xe20406(0x10c)]=this[_0xe20406(0x115)][_0xe20406(0xd1)]||'',this[_0xe20406(0xea)](_0xe20406(0xf1));}),_0x2fd14a;}[_0x3dc397(0xf6)](){const _0x1c1f66=_0x3dc397,_0x8137e1=new _0x534074(_0x1c1f66(0x11b));return _0x8137e1[_0x1c1f66(0xc9)]=!0x0,_0x8137e1;}[_0x3dc397(0x11d)](_0x3781b5){const _0x1c3406=_0x3dc397;return this[_0x1c3406(0x115)]&&_0x1c3406(0xfd)==typeof this[_0x1c3406(0x115)][_0x1c3406(0xd1)]&&this[_0x1c3406(0x115)][_0x1c3406(0xd1)][_0x1c3406(0x111)](_0x3781b5)?{'title':!0x0}:null;}[_0x3dc397(0x109)](_0xa90c5d){const _0x8a43fd=_0x3dc397;this[_0x8a43fd(0x115)][_0x8a43fd(0x109)](_0xa90c5d);}}
|
|
@@ -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 _0x4795a9=_0x15c2;(function(_0x3da1db,_0x5d99e2){const _0x288991=_0x15c2,_0x530152=_0x3da1db();while(!![]){try{const _0x1321bc=-parseInt(_0x288991(0x152))/0x1*(parseInt(_0x288991(0x14c))/0x2)+-parseInt(_0x288991(0x171))/0x3+-parseInt(_0x288991(0x145))/0x4*(-parseInt(_0x288991(0x17d))/0x5)+parseInt(_0x288991(0x129))/0x6+parseInt(_0x288991(0x12f))/0x7+parseInt(_0x288991(0x146))/0x8*(-parseInt(_0x288991(0x135))/0x9)+parseInt(_0x288991(0x141))/0xa*(parseInt(_0x288991(0x165))/0xb);if(_0x1321bc===_0x5d99e2)break;else _0x530152['push'](_0x530152['shift']());}catch(_0x1caad8){_0x530152['push'](_0x530152['shift']());}}}(_0x1df6,0x22535));import{View as _0x91eb76,SearchTextView as _0x1cdb8e,FormHeaderView as _0x34884c,ButtonView as _0x491842}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x144316,IconCancel as _0xc9519f,IconPlus as _0x454889}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x4590b8}from'./aichathistorysectionlistview.js';function _0x15c2(_0x4f290a,_0x687454){const _0x1df697=_0x1df6();return _0x15c2=function(_0x15c23f,_0x3b8590){_0x15c23f=_0x15c23f-0x129;let _0x39cd2a=_0x1df697[_0x15c23f];return _0x39cd2a;},_0x15c2(_0x4f290a,_0x687454);}import{AIChatHistoryListView as _0xfa366a}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x45f64a}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x108ab6}from'../aichathistoryui.js';import{AISkeletonView as _0x481ede,SKELETON_DEFINITIONS as _0x11858c}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x22d96d}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x589497}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x91eb76{[_0x4795a9(0x175)];[_0x4795a9(0x160)];[_0x4795a9(0x13d)];[_0x4795a9(0x138)];[_0x4795a9(0x185)];[_0x4795a9(0x16b)];constructor(_0x4b1dfd,_0x15d3dc){const _0x44996c=_0x4795a9;super(_0x4b1dfd),this[_0x44996c(0x154)](_0x44996c(0x13c),!0x1),this[_0x44996c(0x154)](_0x44996c(0x177),!0x0),this[_0x44996c(0x154)](_0x44996c(0x14a),''),this[_0x44996c(0x154)](_0x44996c(0x14e),!0x1),this[_0x44996c(0x154)](_0x44996c(0x140),!0x1),this[_0x44996c(0x154)](_0x44996c(0x16d),!0x1),this[_0x44996c(0x154)](_0x44996c(0x166),!0x1);const _0x5b87c4=new _0x34884c(_0x4b1dfd,{'label':_0x589497(_0x4b1dfd,_0x44996c(0x15a)),'icon':_0x144316,'class':_0x44996c(0x16f)});_0x15d3dc&&(this[_0x44996c(0x16b)]=_0x22d96d(_0x4b1dfd,this),_0x5b87c4[_0x44996c(0x130)][_0x44996c(0x163)](this[_0x44996c(0x16b)])),this[_0x44996c(0x185)]=new _0x4590b8(_0x4b1dfd,[]),this[_0x44996c(0x185)][_0x44996c(0x158)](..._0x108ab6)['to'](this),this[_0x44996c(0x160)]=this[_0x44996c(0x13b)](),this[_0x44996c(0x13d)]=this[_0x44996c(0x17a)](),this[_0x44996c(0x138)]=this[_0x44996c(0x186)](),this[_0x44996c(0x175)]=this[_0x44996c(0x139)](),this[_0x44996c(0x160)][_0x44996c(0x136)]({'attributes':{'class':[this[_0x44996c(0x133)]['if'](_0x44996c(0x166),_0x44996c(0x12b),_0x1a99ba=>!_0x1a99ba)]}}),this['on'](_0x44996c(0x131),()=>this[_0x44996c(0x143)]()),this['on'](_0x44996c(0x150),()=>this[_0x44996c(0x143)]()),this['on'](_0x44996c(0x17e),()=>this[_0x44996c(0x143)]()),this[_0x44996c(0x169)]({'tag':_0x44996c(0x147),'attributes':{'class':['ck',_0x44996c(0x149),_0x44996c(0x16e),_0x44996c(0x12d)],'dir':_0x44996c(0x15c)},'children':[_0x5b87c4,{'tag':_0x44996c(0x147),'attributes':{'class':[_0x44996c(0x162)]},'children':[this[_0x44996c(0x13d)],this[_0x44996c(0x160)],this[_0x44996c(0x138)],this[_0x44996c(0x175)]]}]});}[_0x4795a9(0x143)](){const _0xe9d955=_0x4795a9;this[_0xe9d955(0x140)]=!this[_0xe9d955(0x177)]&&this[_0xe9d955(0x13c)],this[_0xe9d955(0x16d)]=!this[_0xe9d955(0x177)]&&!this[_0xe9d955(0x13c)]&&!this[_0xe9d955(0x14a)],this[_0xe9d955(0x166)]=!this[_0xe9d955(0x140)]&&!!this[_0xe9d955(0x14a)];}[_0x4795a9(0x139)](){const _0x8df2b9=_0x4795a9,_0xc32efa=new _0x1cdb8e(this[_0x8df2b9(0x144)],{'filteredView':this[_0x8df2b9(0x185)],'queryView':{'label':_0x589497(this[_0x8df2b9(0x144)],_0x8df2b9(0x174))},'infoView':{'text':{'notFound':{'primary':_0x14e035=>_0x589497(this[_0x8df2b9(0x144)],_0x8df2b9(0x13a),_0x14e035),'secondary':_0x589497(this[_0x8df2b9(0x144)],_0x8df2b9(0x137))}}}}),_0x4d1230=this[_0x8df2b9(0x13b)]();return _0x4d1230[_0x8df2b9(0x136)]({'attributes':{'class':[this[_0x8df2b9(0x133)]['if'](_0x8df2b9(0x14a),_0x8df2b9(0x12b),_0x631d67=>!_0x631d67)]}}),_0xc32efa['on'](_0x8df2b9(0x181),()=>{const _0x24b1dd=_0x8df2b9;_0xc32efa[_0x24b1dd(0x130)][_0x24b1dd(0x163)](_0x4d1230,0x1);}),_0xc32efa[_0x8df2b9(0x136)]({'attributes':{'class':[this[_0x8df2b9(0x133)]['if'](_0x8df2b9(0x140),_0x8df2b9(0x12b),_0x470032=>!_0x470032)]}}),_0xc32efa;}[_0x4795a9(0x17a)](){const _0x5afa2f=_0x4795a9,_0x1fc85f=new _0x481ede(this[_0x5afa2f(0x144)],_0x11858c[_0x5afa2f(0x134)]);return _0x1fc85f[_0x5afa2f(0x136)]({'attributes':{'class':[this[_0x5afa2f(0x133)]['if'](_0x5afa2f(0x177),_0x5afa2f(0x12b),_0x2aca35=>!_0x2aca35)]}}),_0x1fc85f;}[_0x4795a9(0x13b)](){const _0x2371ef=_0x4795a9,_0x144a8b=new _0x91eb76(this[_0x2371ef(0x144)]),_0x14c70c=new _0x491842(this[_0x2371ef(0x144)]);_0x14c70c[_0x2371ef(0x154)]({'withText':!0x1,'icon':_0xc9519f,'class':_0x2371ef(0x14f)}),_0x14c70c[_0x2371ef(0x17b)](_0x2371ef(0x183))['to'](this,_0x2371ef(0x13c),_0x24eb43=>!!_0x24eb43),_0x14c70c['on'](_0x2371ef(0x159),()=>{const _0x325b07=_0x2371ef;this[_0x325b07(0x14a)]='';});const _0xf18db4=this[_0x2371ef(0x133)];return _0x144a8b[_0x2371ef(0x169)]({'tag':_0x2371ef(0x147),'attributes':{'class':['ck',_0x2371ef(0x15f),_0x2371ef(0x12e)]},'children':[{'tag':'p','children':[{'text':_0xf18db4['to'](_0x2371ef(0x14a))}]},_0x14c70c]}),_0x144a8b;}[_0x4795a9(0x186)](){const _0x261305=_0x4795a9,_0x21cbeb=new _0x491842(this[_0x261305(0x144)]);_0x21cbeb[_0x261305(0x154)]({'label':_0x589497(this[_0x261305(0x144)],_0x261305(0x15d)),'withText':!0x0,'icon':_0x454889,'class':_0x261305(0x157)}),_0x21cbeb['on'](_0x261305(0x159),()=>{const _0x5885b2=_0x261305;this[_0x5885b2(0x176)](_0x5885b2(0x168));});const _0x95fcf8=new _0x91eb76(this[_0x261305(0x144)]);return _0x95fcf8[_0x261305(0x169)]({'tag':_0x261305(0x147),'attributes':{'class':[_0x261305(0x161),this[_0x261305(0x133)]['if'](_0x261305(0x16d),_0x261305(0x12b),_0x350e37=>!_0x350e37)]},'children':[{'tag':'p','attributes':{'class':[_0x261305(0x14b)]},'children':[_0x589497(this[_0x261305(0x144)],_0x261305(0x15e))]},_0x21cbeb]}),_0x95fcf8;}[_0x4795a9(0x142)](_0x2836ad,_0x2b610f){const _0x35c4e0=_0x4795a9,_0x42a1f4=[];for(const _0x1cf6b4 of _0x2836ad){const _0x3a7a1c=new _0x45f64a(_0x2b610f,_0x1cf6b4);_0x3a7a1c[_0x35c4e0(0x158)](..._0x108ab6)['to'](this),_0x42a1f4[_0x35c4e0(0x173)](_0x3a7a1c);}return _0x42a1f4;}[_0x4795a9(0x13e)](_0x479192){const _0x5ecb2c=_0x4795a9,_0x991485=this[_0x5ecb2c(0x144)]||'en',_0x2a73f0=[];for(const _0x17f896 of _0x479192){const _0x31a3ae=this[_0x5ecb2c(0x142)](_0x17f896[_0x5ecb2c(0x16c)],_0x991485);_0x2a73f0[_0x5ecb2c(0x173)](new _0xfa366a(_0x991485,{'title':_0x17f896[_0x5ecb2c(0x17f)],'items':_0x31a3ae}));}this[_0x5ecb2c(0x185)][_0x5ecb2c(0x184)]=_0x2a73f0,this[_0x5ecb2c(0x185)][_0x5ecb2c(0x16c)][_0x5ecb2c(0x178)](),this[_0x5ecb2c(0x185)][_0x5ecb2c(0x16c)][_0x5ecb2c(0x172)](_0x2a73f0),this[_0x5ecb2c(0x13c)]=_0x479192[_0x5ecb2c(0x13f)](_0xab2d2b=>_0xab2d2b[_0x5ecb2c(0x16c)][_0x5ecb2c(0x156)]>0x0),this[_0x5ecb2c(0x182)]();}[_0x4795a9(0x155)](_0x2f5b78){const _0x57ab64=_0x4795a9;for(const _0x3e2b83 of this[_0x57ab64(0x185)][_0x57ab64(0x184)]){const _0x9dc558=_0x3e2b83[_0x57ab64(0x17c)](_0x2f5b78);if(_0x9dc558){if(_0x3e2b83[_0x57ab64(0x12a)](_0x9dc558),0x0===_0x3e2b83[_0x57ab64(0x12c)][_0x57ab64(0x156)]){const _0x3458f4=this[_0x57ab64(0x185)][_0x57ab64(0x184)][_0x57ab64(0x132)](_0x3e2b83);-0x1!==_0x3458f4&&(this[_0x57ab64(0x185)][_0x57ab64(0x184)][_0x57ab64(0x15b)](_0x3458f4,0x1),this[_0x57ab64(0x185)][_0x57ab64(0x16c)][_0x57ab64(0x151)](_0x3e2b83));}this[_0x57ab64(0x13c)]=this[_0x57ab64(0x185)][_0x57ab64(0x184)][_0x57ab64(0x156)]>0x0,this[_0x57ab64(0x182)]();break;}}}[_0x4795a9(0x180)](_0x13302d,_0x3c7bad){const _0x5bca38=_0x4795a9;for(const _0x12560b of this[_0x5bca38(0x185)][_0x5bca38(0x184)]){const _0x225473=_0x12560b[_0x5bca38(0x17c)](_0x13302d);if(_0x225473){_0x225473[_0x5bca38(0x153)](_0x3c7bad);break;}}}[_0x4795a9(0x148)](_0x280d39,_0x4aabca,_0x428319){const _0x5bb4ac=_0x4795a9;for(const _0x25f15b of this[_0x5bb4ac(0x185)][_0x5bb4ac(0x184)]){const _0x70e831=_0x25f15b[_0x5bb4ac(0x17c)](_0x280d39);if(_0x70e831){_0x70e831[_0x5bb4ac(0x167)](_0x4aabca,_0x428319);break;}}}[_0x4795a9(0x182)](){const _0x5de738=_0x4795a9;if(this[_0x5de738(0x13c)]){const _0x452475=this[_0x5de738(0x175)][_0x5de738(0x179)][_0x5de738(0x14d)]?.[_0x5de738(0x164)]?.[_0x5de738(0x170)]||'';this[_0x5de738(0x175)][_0x5de738(0x16a)](_0x452475);}}}function _0x1df6(){const _0x4411cb=['setTemplate','search','resizeButton','items','isEmptyViewVisible','ck-ai-chat-history','ck-ai-header\x20ck-ai-header_history','value','156945tCngyy','addMany','push','AI_CHAT_HISTORY_SEARCH_LABEL','searchView','fire','isLoading','clear','queryView','_createSkeletonView','bind','getItem','288145rLQgIN','change:errorMessage','title','updateItemTitle','render','_refreshSearch','isVisible','sections','sectionsView','_createEmptyStateView','1327728jXSHNy','removeItem','ck-hidden','itemsViews','ck-rounded-corners','ck-ai-notification_error','344330hApOFS','children','change:isLoading','indexOf','bindTemplate','aiHistory','163071OItcqh','extendTemplate','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','emptyView','_createSearchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_createErrorView','hasItems','skeletonView','updateHistoryItemsWithCategories','some','isSearchViewVisible','10vGHKUH','_createListItemViews','_updateViewVisibility','locale','4BRVeVL','56zhWMNz','div','updateItemLoadingState','ck-reset_all','errorMessage','ck-ai-chat-history__empty-message','46nvEeLd','fieldView','isMaximized','ck-ai-notification_error__dismiss-button','change:hasItems','remove','3247fEyQOp','updateTitle','set','removeHistoryItem','length','ck-ai-chat__start-conversation','delegate','execute','AI_CHAT_HISTORY_HEADING','splice','ltr','AI_CHAT_LABEL_NEW_CHAT','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-notification','mainErrorView','ck-ai-chat-history__empty','ck-ai-chat-history__content','add','element','729509kcMtAq','isMainErrorViewVisible','updateLoadingState','openChat'];_0x1df6=function(){return _0x4411cb;};return _0x1df6();}
|
|
@@ -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(_0x473ad8,_0x5bdec0){const _0x5cd8f6=_0x1052,_0x1233d8=_0x473ad8();while(!![]){try{const _0x473e94=-parseInt(_0x5cd8f6(0x1ab))/0x1*(parseInt(_0x5cd8f6(0x1ae))/0x2)+-parseInt(_0x5cd8f6(0x1a6))/0x3*(parseInt(_0x5cd8f6(0x1aa))/0x4)+-parseInt(_0x5cd8f6(0x1a0))/0x5*(-parseInt(_0x5cd8f6(0x1a9))/0x6)+-parseInt(_0x5cd8f6(0x19d))/0x7+-parseInt(_0x5cd8f6(0x1a3))/0x8+parseInt(_0x5cd8f6(0x1ad))/0x9*(parseInt(_0x5cd8f6(0x19c))/0xa)+parseInt(_0x5cd8f6(0x19f))/0xb*(parseInt(_0x5cd8f6(0x1a8))/0xc);if(_0x473e94===_0x5bdec0)break;else _0x1233d8['push'](_0x1233d8['shift']());}catch(_0x715ceb){_0x1233d8['push'](_0x1233d8['shift']());}}}(_0x53b8,0x5e73c));import{ButtonView as _0x3ee9ac}from'ckeditor5/src/ui.js';function _0x1052(_0x38cfaa,_0x12c61f){const _0x53b8ff=_0x53b8();return _0x1052=function(_0x1052e3,_0x58a716){_0x1052e3=_0x1052e3-0x19b;let _0x3c8e88=_0x53b8ff[_0x1052e3];return _0x3c8e88;},_0x1052(_0x38cfaa,_0x12c61f);}import{IconAIChat as _0x3f7ed1,IconAIReview as _0x28e515,IconAITranslate as _0xf300a1}from'@ckeditor/ckeditor5-icons';function _0x53b8(){const _0x14b963=['56hVRRXJ','16KuHnuX','label','9IrePIw','70508VnpRKG','review','4511770kMluTO','1654352oRlvdu','ck-ai-chat-shortcut','10637mRvNfZ','10lMQKDp','set','translate','331320FjtubH','chat','extendTemplate','135243mDpVHu','icon','10992AucZxh','1568628cRPAYA'];_0x53b8=function(){return _0x14b963;};return _0x53b8();}export class AIChatShortcutView extends _0x3ee9ac{['id'];constructor(_0x5293f6,_0x53f297){const _0x59caf0=_0x1052;super(_0x5293f6);const {id:_0x1eef4b,type:_0xc6946e,icon:_0xbc2cd0}=_0x53f297;this['id']=_0x1eef4b,this[_0x59caf0(0x1a1)]({'label':_0x53f297[_0x59caf0(0x1ac)],'withText':!0x0,'class':_0x59caf0(0x19e)}),this[_0x59caf0(0x1a5)]({'attributes':{'data-cke-ai-shortcut-id':_0x53f297['id']}}),_0xbc2cd0?this[_0x59caf0(0x1a7)]=_0xbc2cd0:_0x59caf0(0x1a4)===_0xc6946e?this[_0x59caf0(0x1a7)]=_0x3f7ed1:_0x59caf0(0x19b)===_0xc6946e?this[_0x59caf0(0x1a7)]=_0x28e515:_0x59caf0(0x1a2)===_0xc6946e&&(this[_0x59caf0(0x1a7)]=_0xf300a1);}}
|