@ckeditor/ckeditor5-ai 47.6.0-alpha.2 → 47.6.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.d.ts +8 -4
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xfadeda=_0x32a4;(function(_0x22be74,_0x332f73){const _0x56a9ee=_0x32a4,_0x230ca3=_0x22be74();while(!![]){try{const _0xbe588f=-parseInt(_0x56a9ee(0x17f))/0x1+-parseInt(_0x56a9ee(0x15f))/0x2*(-parseInt(_0x56a9ee(0x160))/0x3)+-parseInt(_0x56a9ee(0x140))/0x4*(parseInt(_0x56a9ee(0x144))/0x5)+parseInt(_0x56a9ee(0x196))/0x6*(parseInt(_0x56a9ee(0x192))/0x7)+-parseInt(_0x56a9ee(0x143))/0x8*(parseInt(_0x56a9ee(0x15a))/0x9)+parseInt(_0x56a9ee(0x173))/0xa*(-parseInt(_0x56a9ee(0x181))/0xb)+parseInt(_0x56a9ee(0x146))/0xc;if(_0xbe588f===_0x332f73)break;else _0x230ca3['push'](_0x230ca3['shift']());}catch(_0x1e6f16){_0x230ca3['push'](_0x230ca3['shift']());}}}(_0x3f94,0x3d822));import{ContextPlugin as _0x1fe1d4}from'ckeditor5/src/core.js';import{AIConnector as _0x170bc9}from'../aicore/aiconnector.js';import{AIChatController as _0x3ea7b4}from'../aichat/aichatcontroller.js';function _0x3f94(){const _0x143add=['title','48054vuzlup','AI_CHAT_HISTORY_ERROR_GENERIC','toLocaleDateString','listenTo','itemRemoved','createdAt','itemUpdated','_aiConnector','length','resize','chat','setConversationPinned','updateItemTitle','getGroupId','setLoadingSkeleton','getMonth','getItem','_handleTogglePin','1088928HUGdam','pinned','history','3249608wEIQlg','5zkgQOv','pin','11453208jgzHZC','updates','setIsMaximized','_handleSelectConversation','init','plugins','loadConversation','_aiChatHistoryUi','_getCategorizedItems','error','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','getItems','_handleRemove','_setIsMaximized','_setItemLoading','showError','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','rename','view','AIChatHistoryController','9JrreRO','isOfficialPlugin','map','activateTab:history','locale','187364bJfPAc','6uwwtEV','_showConversationHistory','remove','get','loadItems','removeItem','_clearItemLoading','selectConversation','AI_CHAT_HISTORY_CATEGORY_PINNED','_handleHistoryErrorUI','isPremiumPlugin','operation','itemsLoaded','requires','push','updateItemPinned','resizedTabs','_updateHistoryItemsUI','context','330xIxxWK','AI_CHAT_HISTORY_CATEGORY_LATER','AI_CHAT_HISTORY_UNPIN_ACTION','itemId','setDate','change:activeConversation','activateTab','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','handleRemovedConversation','openChat','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_UNTITLED_CONVERSATION','254197sbexBP','resizeTabs','20449jUHCVp','items','getFullYear','getDate','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','activeConversation','_aiChatController','_generateErrorMessage','removeConversation','AI_CHAT_HISTORY_CATEGORY_TODAY','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','pluginName','editConversationTitle','unpin','removeHistoryItem','_handleEditTitle','updateItems','91rQioHb','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','updateItemLoadingState'];_0x3f94=function(){return _0x143add;};return _0x3f94();}import{AITabs as _0xd46ce1}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x2ed1c8}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x1e99a7}from'./model/aichathistoryconversations.js';function _0x32a4(_0x5dc69a,_0x3e8fa3){const _0x3f94ce=_0x3f94();return _0x32a4=function(_0x32a4e5,_0x433321){_0x32a4e5=_0x32a4e5-0x133;let _0xdbf29c=_0x3f94ce[_0x32a4e5];return _0xdbf29c;},_0x32a4(_0x5dc69a,_0x3e8fa3);}import{getTranslation as _0x5be4b2}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x1fe1d4{[_0xfadeda(0x135)];[_0xfadeda(0x14d)];[_0xfadeda(0x187)];static get[_0xfadeda(0x16d)](){return[_0x170bc9,_0x3ea7b4,_0x2ed1c8,_0xd46ce1];}static get[_0xfadeda(0x18c)](){const _0x2ecc0f=_0xfadeda;return _0x2ecc0f(0x159);}static get[_0xfadeda(0x15b)](){return!0x0;}static get[_0xfadeda(0x16a)](){return!0x0;}[_0xfadeda(0x14a)](){const _0x3bfacf=_0xfadeda;this[_0x3bfacf(0x135)]=this[_0x3bfacf(0x172)][_0x3bfacf(0x14b)][_0x3bfacf(0x163)](_0x170bc9),this[_0x3bfacf(0x14d)]=this[_0x3bfacf(0x172)][_0x3bfacf(0x14b)][_0x3bfacf(0x163)](_0x2ed1c8),this[_0x3bfacf(0x187)]=this[_0x3bfacf(0x172)][_0x3bfacf(0x14b)][_0x3bfacf(0x163)](_0x3ea7b4);const _0x4e1b9b=this[_0x3bfacf(0x172)][_0x3bfacf(0x14b)][_0x3bfacf(0x163)](_0xd46ce1);try{const _0x901bb4=this[_0x3bfacf(0x187)][_0x3bfacf(0x13b)]();this[_0x3bfacf(0x142)]=new _0x1e99a7({'connector':this[_0x3bfacf(0x135)],'group':_0x901bb4}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x14d)],_0x3bfacf(0x189),(_0x2f5aa6,_0x564162)=>{const _0x57e6e5=_0x3bfacf;this[_0x57e6e5(0x154)](_0x564162['id'],_0x57e6e5(0x162)),this[_0x57e6e5(0x152)](_0x564162['id']);}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x14d)],_0x3bfacf(0x18d),(_0x12f5a5,_0x5c69ed)=>{const _0x5bf263=_0x3bfacf;this[_0x5bf263(0x154)](_0x5c69ed['id'],_0x5bf263(0x157)),this[_0x5bf263(0x190)](_0x5c69ed['id'],_0x5c69ed[_0x5bf263(0x195)]);}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x142)],_0x3bfacf(0x134),(_0x644341,_0x19b1f2)=>{const _0x544d87=_0x3bfacf;void 0x0!==_0x19b1f2[_0x544d87(0x147)][_0x544d87(0x195)]&&this[_0x544d87(0x14d)][_0x544d87(0x13a)](_0x19b1f2[_0x544d87(0x176)],_0x19b1f2[_0x544d87(0x147)][_0x544d87(0x195)]),void 0x0!==_0x19b1f2[_0x544d87(0x147)][_0x544d87(0x141)]&&this[_0x544d87(0x171)](),this[_0x544d87(0x166)](_0x19b1f2[_0x544d87(0x176)]);}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x142)],_0x3bfacf(0x19a),(_0x26b1fe,_0x22679d)=>{const _0x1f75f1=_0x3bfacf;this[_0x1f75f1(0x187)][_0x1f75f1(0x17b)](_0x22679d[_0x1f75f1(0x176)]),this[_0x1f75f1(0x14d)][_0x1f75f1(0x18f)](_0x22679d[_0x1f75f1(0x176)]),this[_0x1f75f1(0x166)](_0x22679d[_0x1f75f1(0x176)]);}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x142)],_0x3bfacf(0x16c),()=>{const _0x1f73b6=_0x3bfacf;this[_0x1f73b6(0x171)]();}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x142)],_0x3bfacf(0x14f),(_0x30a609,_0x3d8227)=>{const _0x50ea4e=_0x3bfacf;this[_0x50ea4e(0x169)](_0x3d8227[_0x50ea4e(0x14f)],_0x3d8227[_0x50ea4e(0x16b)],_0x3d8227[_0x50ea4e(0x176)]);}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x14d)],_0x3bfacf(0x167),(_0x34db5b,_0x717316)=>{const _0x1588ca=_0x3bfacf;this[_0x1588ca(0x149)](_0x717316['id']);}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x14d)],_0x3bfacf(0x139),(_0x169451,_0xc4cc5f)=>{const _0x567943=_0x3bfacf,_0x525162=_0xc4cc5f[_0x567943(0x141)]?_0x567943(0x145):_0x567943(0x18e);this[_0x567943(0x154)](_0xc4cc5f['id'],_0x525162),this[_0x567943(0x13f)](_0xc4cc5f['id'],_0xc4cc5f[_0x567943(0x141)]);}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x14d)],_0x3bfacf(0x17c),()=>{const _0x393315=_0x3bfacf;_0x4e1b9b[_0x393315(0x158)][_0x393315(0x179)](_0x393315(0x138));}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x187)],_0x3bfacf(0x178),()=>{const _0x15fb93=_0x3bfacf;this[_0x15fb93(0x171)]();}),_0x4e1b9b[_0x3bfacf(0x158)]['on'](_0x3bfacf(0x15d),()=>{const _0x4a9f38=_0x3bfacf;this[_0x4a9f38(0x161)]();}),this[_0x3bfacf(0x199)](_0x4e1b9b,_0x3bfacf(0x170),(_0x286b5b,_0x20a9cc)=>{const _0x4b75b3=_0x3bfacf;this[_0x4b75b3(0x153)](_0x20a9cc);}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x14d)],_0x3bfacf(0x180),()=>{const _0x416a98=_0x3bfacf;_0x4e1b9b[_0x416a98(0x137)]();});}catch(_0x2135de){this[_0x3bfacf(0x169)](_0x2135de,_0x3bfacf(0x14a));}}async[_0xfadeda(0x190)](_0x301eba,_0x920213){const _0x3ce653=_0xfadeda;await this[_0x3ce653(0x142)][_0x3ce653(0x13a)](_0x301eba,_0x920213);}async[_0xfadeda(0x13f)](_0x2f7517,_0x1cf1bc){const _0x526925=_0xfadeda;await this[_0x526925(0x142)][_0x526925(0x16f)](_0x2f7517,_0x1cf1bc);}async[_0xfadeda(0x152)](_0x2bd9ab){const _0x2a538e=_0xfadeda;await this[_0x2a538e(0x142)][_0x2a538e(0x165)](_0x2bd9ab);}async[_0xfadeda(0x149)](_0x3d2e07){const _0x4cc0aa=_0xfadeda;await this[_0x4cc0aa(0x187)][_0x4cc0aa(0x14c)](_0x3d2e07);}async[_0xfadeda(0x161)](){const _0x21b09d=_0xfadeda;this[_0x21b09d(0x14d)][_0x21b09d(0x155)](''),this[_0x21b09d(0x14d)][_0x21b09d(0x13c)](!0x0),await this[_0x21b09d(0x142)][_0x21b09d(0x14a)](),this[_0x21b09d(0x14d)][_0x21b09d(0x13c)](!0x1);}[_0xfadeda(0x171)](){const _0x5d19ef=_0xfadeda,_0x52798f=this[_0x5d19ef(0x187)][_0x5d19ef(0x186)]?.['id'],_0x1af8ff=this[_0x5d19ef(0x14e)]()[_0x5d19ef(0x15c)](_0x2448cf=>({'title':_0x2448cf[_0x5d19ef(0x195)],'items':_0x2448cf[_0x5d19ef(0x182)][_0x5d19ef(0x15c)](_0x3c5e1d=>({'id':_0x3c5e1d['id'],'title':_0x3c5e1d[_0x5d19ef(0x195)]||_0x5be4b2(this[_0x5d19ef(0x172)][_0x5d19ef(0x15e)],_0x5d19ef(0x17e)),'createdAt':new Date(_0x3c5e1d[_0x5d19ef(0x133)])[_0x5d19ef(0x198)](),'active':_0x3c5e1d['id']===_0x52798f,'pinned':_0x3c5e1d[_0x5d19ef(0x141)]}))}));this[_0x5d19ef(0x14d)][_0x5d19ef(0x191)](_0x1af8ff);}[_0xfadeda(0x154)](_0xa09df7,_0x22fa6f){const _0x303e69=_0xfadeda;this[_0x303e69(0x14d)][_0x303e69(0x194)](_0xa09df7,_0x22fa6f,!0x0);}[_0xfadeda(0x166)](_0x5693ec){const _0x5a82c8=_0xfadeda;this[_0x5a82c8(0x14d)][_0x5a82c8(0x194)](_0x5693ec,null,!0x1);}[_0xfadeda(0x169)](_0x1c32ef,_0x1bade9,_0x4ed85e){const _0x265504=_0xfadeda,_0x478ddd=this[_0x265504(0x188)](_0x1bade9,_0x4ed85e);this[_0x265504(0x14d)][_0x265504(0x155)](_0x478ddd),_0x4ed85e&&this[_0x265504(0x166)](_0x4ed85e),this[_0x265504(0x14d)][_0x265504(0x13c)](!0x1);}[_0xfadeda(0x188)](_0x582a7e,_0x31de79){const _0x1ae420=_0xfadeda,_0x5364a3=_0x31de79?this[_0x1ae420(0x142)][_0x1ae420(0x13e)](_0x31de79):null,_0x20cd7a=_0x5364a3?.[_0x1ae420(0x195)]||_0x5be4b2(this[_0x1ae420(0x172)][_0x1ae420(0x15e)],_0x1ae420(0x17e));switch(_0x582a7e){case _0x1ae420(0x13a):return _0x5be4b2(this[_0x1ae420(0x172)][_0x1ae420(0x15e)],_0x1ae420(0x18b),_0x20cd7a);case _0x1ae420(0x16f):{const _0x3f4b73=_0x5be4b2(this[_0x1ae420(0x172)][_0x1ae420(0x15e)],_0x5364a3?.[_0x1ae420(0x141)]?_0x1ae420(0x175):_0x1ae420(0x17d));return _0x5be4b2(this[_0x1ae420(0x172)][_0x1ae420(0x15e)],_0x1ae420(0x193),[_0x3f4b73,_0x20cd7a]);}case _0x1ae420(0x165):return _0x5be4b2(this[_0x1ae420(0x172)][_0x1ae420(0x15e)],_0x1ae420(0x156),_0x20cd7a);case _0x1ae420(0x14a):case _0x1ae420(0x164):return _0x5be4b2(this[_0x1ae420(0x172)][_0x1ae420(0x15e)],_0x1ae420(0x150));default:return _0x5be4b2(this[_0x1ae420(0x172)][_0x1ae420(0x15e)],_0x1ae420(0x197));}}[_0xfadeda(0x14e)](){const _0x3045a6=_0xfadeda,_0x10d251=new Date(),_0x49e50d=new Date(_0x10d251[_0x3045a6(0x183)](),_0x10d251[_0x3045a6(0x13d)](),_0x10d251[_0x3045a6(0x184)]()),_0x22bff0=new Date(_0x49e50d);_0x22bff0[_0x3045a6(0x177)](_0x22bff0[_0x3045a6(0x184)]()-0x1);const _0x1d731f=new Date(_0x49e50d);_0x1d731f[_0x3045a6(0x177)](_0x1d731f[_0x3045a6(0x184)]()-0xe);const _0xb5775=this[_0x3045a6(0x142)][_0x3045a6(0x151)]({'pinned':!0x0}),_0x42c8dc=this[_0x3045a6(0x142)][_0x3045a6(0x151)]({'from':_0x49e50d,'to':_0x49e50d}),_0x47c6c5=this[_0x3045a6(0x142)][_0x3045a6(0x151)]({'from':_0x22bff0,'to':_0x22bff0}),_0x3862aa=this[_0x3045a6(0x142)][_0x3045a6(0x151)]({'from':_0x1d731f,'to':_0x22bff0}),_0x318c7c=this[_0x3045a6(0x142)][_0x3045a6(0x151)]({'to':_0x1d731f}),_0x44bd7f=[];return _0xb5775[_0x3045a6(0x136)]>0x0&&_0x44bd7f[_0x3045a6(0x16e)]({'title':_0x5be4b2(this[_0x3045a6(0x172)][_0x3045a6(0x15e)],_0x3045a6(0x168)),'items':_0xb5775}),_0x42c8dc[_0x3045a6(0x136)]>0x0&&_0x44bd7f[_0x3045a6(0x16e)]({'title':_0x5be4b2(this[_0x3045a6(0x172)][_0x3045a6(0x15e)],_0x3045a6(0x18a)),'items':_0x42c8dc}),_0x47c6c5[_0x3045a6(0x136)]>0x0&&_0x44bd7f[_0x3045a6(0x16e)]({'title':_0x5be4b2(this[_0x3045a6(0x172)][_0x3045a6(0x15e)],_0x3045a6(0x17a)),'items':_0x47c6c5}),_0x3862aa[_0x3045a6(0x136)]>0x0&&_0x44bd7f[_0x3045a6(0x16e)]({'title':_0x5be4b2(this[_0x3045a6(0x172)][_0x3045a6(0x15e)],_0x3045a6(0x185)),'items':_0x3862aa}),_0x318c7c[_0x3045a6(0x136)]>0x0&&_0x44bd7f[_0x3045a6(0x16e)]({'title':_0x5be4b2(this[_0x3045a6(0x172)][_0x3045a6(0x15e)],_0x3045a6(0x174)),'items':_0x318c7c}),_0x44bd7f;}[_0xfadeda(0x153)](_0x64f09){const _0x562784=_0xfadeda;this[_0x562784(0x14d)][_0x562784(0x148)](_0x64f09);}}
|
|
23
|
+
function _0x1b68(_0x294199,_0xe0461){const _0x8a750c=_0x8a75();return _0x1b68=function(_0x1b684a,_0x307eef){_0x1b684a=_0x1b684a-0x166;let _0x24ce24=_0x8a750c[_0x1b684a];return _0x24ce24;},_0x1b68(_0x294199,_0xe0461);}const _0x31be98=_0x1b68;(function(_0x32582c,_0x4051f2){const _0x1d3d7c=_0x1b68,_0x2584fb=_0x32582c();while(!![]){try{const _0x2e465f=-parseInt(_0x1d3d7c(0x1bb))/0x1*(parseInt(_0x1d3d7c(0x18d))/0x2)+parseInt(_0x1d3d7c(0x1a5))/0x3*(parseInt(_0x1d3d7c(0x1a1))/0x4)+-parseInt(_0x1d3d7c(0x16c))/0x5+-parseInt(_0x1d3d7c(0x182))/0x6+-parseInt(_0x1d3d7c(0x1c9))/0x7+-parseInt(_0x1d3d7c(0x1cb))/0x8+parseInt(_0x1d3d7c(0x1a2))/0x9*(parseInt(_0x1d3d7c(0x1a6))/0xa);if(_0x2e465f===_0x4051f2)break;else _0x2584fb['push'](_0x2584fb['shift']());}catch(_0x2cbbfc){_0x2584fb['push'](_0x2584fb['shift']());}}}(_0x8a75,0x81391));import{ContextPlugin as _0x3179fb}from'ckeditor5/src/core.js';import{AIConnector as _0x3f731b}from'../aicore/aiconnector.js';import{AIChatController as _0x48b8f5}from'../aichat/aichatcontroller.js';import{AITabs as _0x4f01ec}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x417f68}from'./aichathistoryui.js';function _0x8a75(){const _0x1dee3b=['get','updateItems','AI_CHAT_HISTORY_PIN_ACTION','plugins','updateItemLoadingState','updates','setLoadingSkeleton','60996pxmzsH','activateTab','isPremiumPlugin','getDate','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','getGroupId','setConversationPinned','AI_CHAT_HISTORY_CATEGORY_LATER','activateTab:history','AIChatHistoryController','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','removeHistoryItem','map','removeConversation','getMonth','resize','showError','AI_CHAT_HISTORY_CATEGORY_PINNED','push','handleRemovedConversation','1608MwCxVY','18NqxRLU','resizedTabs','itemUpdated','4332kyDFyh','11869540betuLy','pin','operation','remove','pluginName','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','unpin','_aiConnector','_handleTogglePin','_handleSelectConversation','loadConversation','items','editConversationTitle','view','_getCategorizedItems','getFullYear','requires','activeConversation','_handleEditTitle','listenTo','_showConversationHistory','21NqBaiv','itemsLoaded','pinned','_handleHistoryErrorUI','change:activeConversation','setIsMaximized','history','locale','removeItem','updateItemPinned','createdAt','setDate','updateItemTitle','AI_CHAT_UNTITLED_CONVERSATION','5975564OpzFHp','itemRemoved','856480MpfwVm','AI_CHAT_HISTORY_CATEGORY_TODAY','_setItemLoading','_clearItemLoading','loadItems','itemId','AI_CHAT_HISTORY_ERROR_GENERIC','409170YqEfZo','AI_CHAT_HISTORY_UNPIN_ACTION','error','getItem','chat','getItems','_aiChatHistoryUi','_generateErrorMessage','openChat','selectConversation','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','rename','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','title','_setIsMaximized','context','_handleRemove','isOfficialPlugin','init','length','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','resizeTabs','4452570iIrRsa','_updateHistoryItemsUI','toLocaleDateString','_aiChatController'];_0x8a75=function(){return _0x1dee3b;};return _0x8a75();}import{AIChatHistoryConversations as _0x19bf74}from'./model/aichathistoryconversations.js';import{getTranslation as _0x5a4a14}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x3179fb{[_0x31be98(0x1ad)];[_0x31be98(0x172)];[_0x31be98(0x185)];static get[_0x31be98(0x1b6)](){return[_0x3f731b,_0x48b8f5,_0x417f68,_0x4f01ec];}static get[_0x31be98(0x1aa)](){const _0x5a31af=_0x31be98;return _0x5a31af(0x196);}static get[_0x31be98(0x17d)](){return!0x0;}static get[_0x31be98(0x18f)](){return!0x0;}[_0x31be98(0x17e)](){const _0x3bee1a=_0x31be98;this[_0x3bee1a(0x1ad)]=this[_0x3bee1a(0x17b)][_0x3bee1a(0x189)][_0x3bee1a(0x186)](_0x3f731b),this[_0x3bee1a(0x172)]=this[_0x3bee1a(0x17b)][_0x3bee1a(0x189)][_0x3bee1a(0x186)](_0x417f68),this[_0x3bee1a(0x185)]=this[_0x3bee1a(0x17b)][_0x3bee1a(0x189)][_0x3bee1a(0x186)](_0x48b8f5);const _0xd503c7=this[_0x3bee1a(0x17b)][_0x3bee1a(0x189)][_0x3bee1a(0x186)](_0x4f01ec);try{const _0x11daa5=this[_0x3bee1a(0x185)][_0x3bee1a(0x192)]();this[_0x3bee1a(0x1c1)]=new _0x19bf74({'connector':this[_0x3bee1a(0x1ad)],'group':_0x11daa5}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x172)],_0x3bee1a(0x19a),(_0x5fef25,_0x2f48ee)=>{const _0x6c3966=_0x3bee1a;this[_0x6c3966(0x167)](_0x2f48ee['id'],_0x6c3966(0x1a9)),this[_0x6c3966(0x17c)](_0x2f48ee['id']);}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x172)],_0x3bee1a(0x1b2),(_0x21590a,_0x206ef8)=>{const _0x47fdce=_0x3bee1a;this[_0x47fdce(0x167)](_0x206ef8['id'],_0x47fdce(0x177)),this[_0x47fdce(0x1b8)](_0x206ef8['id'],_0x206ef8[_0x47fdce(0x179)]);}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x1c1)],_0x3bee1a(0x1a4),(_0x1bc0f0,_0x1a8312)=>{const _0x368869=_0x3bee1a;void 0x0!==_0x1a8312[_0x368869(0x18b)][_0x368869(0x179)]&&this[_0x368869(0x172)][_0x368869(0x1c7)](_0x1a8312[_0x368869(0x16a)],_0x1a8312[_0x368869(0x18b)][_0x368869(0x179)]),void 0x0!==_0x1a8312[_0x368869(0x18b)][_0x368869(0x1bd)]&&this[_0x368869(0x183)](),this[_0x368869(0x168)](_0x1a8312[_0x368869(0x16a)]);}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x1c1)],_0x3bee1a(0x1ca),(_0x24ea5b,_0x3506a7)=>{const _0x15484b=_0x3bee1a;this[_0x15484b(0x185)][_0x15484b(0x1a0)](_0x3506a7[_0x15484b(0x16a)]),this[_0x15484b(0x172)][_0x15484b(0x198)](_0x3506a7[_0x15484b(0x16a)]),this[_0x15484b(0x168)](_0x3506a7[_0x15484b(0x16a)]);}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x1c1)],_0x3bee1a(0x1bc),()=>{const _0x495851=_0x3bee1a;this[_0x495851(0x183)]();}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x1c1)],_0x3bee1a(0x16e),(_0x41b838,_0x1f3e7c)=>{const _0xffb383=_0x3bee1a;this[_0xffb383(0x1be)](_0x1f3e7c[_0xffb383(0x16e)],_0x1f3e7c[_0xffb383(0x1a8)],_0x1f3e7c[_0xffb383(0x16a)]);}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x172)],_0x3bee1a(0x175),(_0x4c068e,_0x2e0e22)=>{const _0x478812=_0x3bee1a;this[_0x478812(0x1af)](_0x2e0e22['id']);}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x172)],_0x3bee1a(0x193),(_0x4955cc,_0x3b58dc)=>{const _0x180922=_0x3bee1a,_0x4ed9bd=_0x3b58dc[_0x180922(0x1bd)]?_0x180922(0x1a7):_0x180922(0x1ac);this[_0x180922(0x167)](_0x3b58dc['id'],_0x4ed9bd),this[_0x180922(0x1ae)](_0x3b58dc['id'],_0x3b58dc[_0x180922(0x1bd)]);}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x172)],_0x3bee1a(0x174),()=>{const _0x1f3d25=_0x3bee1a;_0xd503c7[_0x1f3d25(0x1b3)][_0x1f3d25(0x18e)](_0x1f3d25(0x170));}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x185)],_0x3bee1a(0x1bf),()=>{const _0x556891=_0x3bee1a;this[_0x556891(0x183)]();}),_0xd503c7[_0x3bee1a(0x1b3)]['on'](_0x3bee1a(0x195),()=>{const _0x1f3b59=_0x3bee1a;this[_0x1f3b59(0x1ba)]();}),this[_0x3bee1a(0x1b9)](_0xd503c7,_0x3bee1a(0x1a3),(_0x10089b,_0x1335c8)=>{const _0x3cab86=_0x3bee1a;this[_0x3cab86(0x17a)](_0x1335c8);}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x172)],_0x3bee1a(0x181),()=>{const _0x1c28e5=_0x3bee1a;_0xd503c7[_0x1c28e5(0x19c)]();});}catch(_0x13d77d){this[_0x3bee1a(0x1be)](_0x13d77d,_0x3bee1a(0x17e));}}async[_0x31be98(0x1b8)](_0x5ab3fa,_0x4857d9){const _0x57aa3a=_0x31be98;await this[_0x57aa3a(0x1c1)][_0x57aa3a(0x1c7)](_0x5ab3fa,_0x4857d9);}async[_0x31be98(0x1ae)](_0x18ab47,_0x4d35eb){const _0x4f6509=_0x31be98;await this[_0x4f6509(0x1c1)][_0x4f6509(0x1c4)](_0x18ab47,_0x4d35eb);}async[_0x31be98(0x17c)](_0x4f931b){const _0x28695f=_0x31be98;await this[_0x28695f(0x1c1)][_0x28695f(0x1c3)](_0x4f931b);}async[_0x31be98(0x1af)](_0x4464e8){const _0x3dc358=_0x31be98;await this[_0x3dc358(0x185)][_0x3dc358(0x1b0)](_0x4464e8);}async[_0x31be98(0x1ba)](){const _0xbeaa6d=_0x31be98;this[_0xbeaa6d(0x172)][_0xbeaa6d(0x19d)](''),this[_0xbeaa6d(0x172)][_0xbeaa6d(0x18c)](!0x0),await this[_0xbeaa6d(0x1c1)][_0xbeaa6d(0x17e)](),this[_0xbeaa6d(0x172)][_0xbeaa6d(0x18c)](!0x1);}[_0x31be98(0x183)](){const _0x1aed44=_0x31be98,_0x4262b8=this[_0x1aed44(0x185)][_0x1aed44(0x1b7)]?.['id'],_0x9348f4=this[_0x1aed44(0x1b4)]()[_0x1aed44(0x199)](_0x1908fd=>({'title':_0x1908fd[_0x1aed44(0x179)],'items':_0x1908fd[_0x1aed44(0x1b1)][_0x1aed44(0x199)](_0x3335db=>({'id':_0x3335db['id'],'title':_0x3335db[_0x1aed44(0x179)]||_0x5a4a14(this[_0x1aed44(0x17b)][_0x1aed44(0x1c2)],_0x1aed44(0x1c8)),'createdAt':new Date(_0x3335db[_0x1aed44(0x1c5)])[_0x1aed44(0x184)](),'active':_0x3335db['id']===_0x4262b8,'pinned':_0x3335db[_0x1aed44(0x1bd)]}))}));this[_0x1aed44(0x172)][_0x1aed44(0x187)](_0x9348f4);}[_0x31be98(0x167)](_0x362343,_0x2ae69d){const _0x24bc39=_0x31be98;this[_0x24bc39(0x172)][_0x24bc39(0x18a)](_0x362343,_0x2ae69d,!0x0);}[_0x31be98(0x168)](_0x57e351){const _0x54b0a5=_0x31be98;this[_0x54b0a5(0x172)][_0x54b0a5(0x18a)](_0x57e351,null,!0x1);}[_0x31be98(0x1be)](_0x249b52,_0x592977,_0x443f5d){const _0x4648c3=_0x31be98,_0x378511=this[_0x4648c3(0x173)](_0x592977,_0x443f5d);this[_0x4648c3(0x172)][_0x4648c3(0x19d)](_0x378511),_0x443f5d&&this[_0x4648c3(0x168)](_0x443f5d),this[_0x4648c3(0x172)][_0x4648c3(0x18c)](!0x1);}[_0x31be98(0x173)](_0x460646,_0x56ac95){const _0x4a9f0e=_0x31be98,_0x118f55=_0x56ac95?this[_0x4a9f0e(0x1c1)][_0x4a9f0e(0x16f)](_0x56ac95):null,_0xa2b249=_0x118f55?.[_0x4a9f0e(0x179)]||_0x5a4a14(this[_0x4a9f0e(0x17b)][_0x4a9f0e(0x1c2)],_0x4a9f0e(0x1c8));switch(_0x460646){case _0x4a9f0e(0x1c7):return _0x5a4a14(this[_0x4a9f0e(0x17b)][_0x4a9f0e(0x1c2)],_0x4a9f0e(0x180),_0xa2b249);case _0x4a9f0e(0x1c4):{const _0x5ea441=_0x5a4a14(this[_0x4a9f0e(0x17b)][_0x4a9f0e(0x1c2)],_0x118f55?.[_0x4a9f0e(0x1bd)]?_0x4a9f0e(0x16d):_0x4a9f0e(0x188));return _0x5a4a14(this[_0x4a9f0e(0x17b)][_0x4a9f0e(0x1c2)],_0x4a9f0e(0x1ab),[_0x5ea441,_0xa2b249]);}case _0x4a9f0e(0x1c3):return _0x5a4a14(this[_0x4a9f0e(0x17b)][_0x4a9f0e(0x1c2)],_0x4a9f0e(0x191),_0xa2b249);case _0x4a9f0e(0x17e):case _0x4a9f0e(0x169):return _0x5a4a14(this[_0x4a9f0e(0x17b)][_0x4a9f0e(0x1c2)],_0x4a9f0e(0x176));default:return _0x5a4a14(this[_0x4a9f0e(0x17b)][_0x4a9f0e(0x1c2)],_0x4a9f0e(0x16b));}}[_0x31be98(0x1b4)](){const _0x2f4583=_0x31be98,_0x39b1bd=new Date(),_0x5c78e8=new Date(_0x39b1bd[_0x2f4583(0x1b5)](),_0x39b1bd[_0x2f4583(0x19b)](),_0x39b1bd[_0x2f4583(0x190)]()),_0x20d8b3=new Date(_0x5c78e8);_0x20d8b3[_0x2f4583(0x1c6)](_0x20d8b3[_0x2f4583(0x190)]()-0x1);const _0x4f41fa=new Date(_0x5c78e8);_0x4f41fa[_0x2f4583(0x1c6)](_0x4f41fa[_0x2f4583(0x190)]()-0xe);const _0x50528c=this[_0x2f4583(0x1c1)][_0x2f4583(0x171)]({'pinned':!0x0}),_0x324228=this[_0x2f4583(0x1c1)][_0x2f4583(0x171)]({'from':_0x5c78e8,'to':_0x5c78e8}),_0x3655cd=this[_0x2f4583(0x1c1)][_0x2f4583(0x171)]({'from':_0x20d8b3,'to':_0x20d8b3}),_0x24f7ca=this[_0x2f4583(0x1c1)][_0x2f4583(0x171)]({'from':_0x4f41fa,'to':_0x20d8b3}),_0x3e2059=this[_0x2f4583(0x1c1)][_0x2f4583(0x171)]({'to':_0x4f41fa}),_0x498a12=[];return _0x50528c[_0x2f4583(0x17f)]>0x0&&_0x498a12[_0x2f4583(0x19f)]({'title':_0x5a4a14(this[_0x2f4583(0x17b)][_0x2f4583(0x1c2)],_0x2f4583(0x19e)),'items':_0x50528c}),_0x324228[_0x2f4583(0x17f)]>0x0&&_0x498a12[_0x2f4583(0x19f)]({'title':_0x5a4a14(this[_0x2f4583(0x17b)][_0x2f4583(0x1c2)],_0x2f4583(0x166)),'items':_0x324228}),_0x3655cd[_0x2f4583(0x17f)]>0x0&&_0x498a12[_0x2f4583(0x19f)]({'title':_0x5a4a14(this[_0x2f4583(0x17b)][_0x2f4583(0x1c2)],_0x2f4583(0x197)),'items':_0x3655cd}),_0x24f7ca[_0x2f4583(0x17f)]>0x0&&_0x498a12[_0x2f4583(0x19f)]({'title':_0x5a4a14(this[_0x2f4583(0x17b)][_0x2f4583(0x1c2)],_0x2f4583(0x178)),'items':_0x24f7ca}),_0x3e2059[_0x2f4583(0x17f)]>0x0&&_0x498a12[_0x2f4583(0x19f)]({'title':_0x5a4a14(this[_0x2f4583(0x17b)][_0x2f4583(0x1c2)],_0x2f4583(0x194)),'items':_0x3e2059}),_0x498a12;}[_0x31be98(0x17a)](_0x217acf){const _0x3d438c=_0x31be98;this[_0x3d438c(0x172)][_0x3d438c(0x1c0)](_0x217acf);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c85e0=_0x424c;(function(_0x11754e,_0x5f52ff){const _0xe14779=_0x424c,_0x33030a=_0x11754e();while(!![]){try{const _0x3f9bbb=-parseInt(_0xe14779(0x20d))/0x1*(-parseInt(_0xe14779(0x21a))/0x2)+-parseInt(_0xe14779(0x21e))/0x3+-parseInt(_0xe14779(0x218))/0x4*(parseInt(_0xe14779(0x20b))/0x5)+-parseInt(_0xe14779(0x220))/0x6*(parseInt(_0xe14779(0x20e))/0x7)+parseInt(_0xe14779(0x209))/0x8+parseInt(_0xe14779(0x1f2))/0x9+-parseInt(_0xe14779(0x1f7))/0xa*(parseInt(_0xe14779(0x205))/0xb);if(_0x3f9bbb===_0x5f52ff)break;else _0x33030a['push'](_0x33030a['shift']());}catch(_0x3c3b18){_0x33030a['push'](_0x33030a['shift']());}}}(_0x3d77,0x9b5e8));import{ContextPlugin as _0x2ae290}from'ckeditor5/src/core.js';import{AITabs as _0x2b377c}from'../aitabs/aitabs.js';import{IconAIHistory as _0x5a7897}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x326122}from'./ui/aichathistoryview.js';import{getTranslation as _0xfbcbff}from'../aicore/utils/common-translations.js';function _0x3d77(){const _0x41a364=['updateHistoryItemsWithCategories','context','1800425qtvOHR','showError','isOfficialPlugin','addTab','10156360WEEHTj','plugins','2489020gtlUxU','setConversationPinned','89115ShRHiU','3982762Zevobj','errorMessage','hideError','isLoading','setIsMaximized','updateItemLoadingState','resizeTabs','openChat','AITabs','locale','8aphZuA','showConversationHistory','14GYkapl','showResizeButton','pluginName','requires','2185713jWnjDw','isPremiumPlugin','6LJAhQx','10798758HrikXG','updateItems','isMaximized','setLoadingSkeleton','history','10KlKzkE','_historyView','AI_CHAT_HISTORY_HEADING','view','updateItemTitle','removeConversation','removeHistoryItem','delegate','selectConversation','AIChatHistoryUI','get','editConversationTitle'];_0x3d77=function(){return _0x41a364;};return _0x3d77();}function _0x424c(_0xc1a894,_0x4b9699){const _0x3d77af=_0x3d77();return _0x424c=function(_0x424cb4,_0x262765){_0x424cb4=_0x424cb4-0x1f2;let _0x5eb7b2=_0x3d77af[_0x424cb4];return _0x5eb7b2;},_0x424c(_0xc1a894,_0x4b9699);}import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x4c85e0(0x219),_0x4c85e0(0x1fc),_0x4c85e0(0x202),_0x4c85e0(0x20c),_0x4c85e0(0x1ff),_0x4c85e0(0x215),_0x4c85e0(0x214)];export class AIChatHistoryUI extends _0x2ae290{static get[_0x4c85e0(0x21d)](){return[_0x2b377c];}[_0x4c85e0(0x1f8)];static get[_0x4c85e0(0x21c)](){const _0x1f2166=_0x4c85e0;return _0x1f2166(0x200);}static get[_0x4c85e0(0x207)](){return!0x0;}static get[_0x4c85e0(0x21f)](){return!0x0;}constructor(_0x4755c5){const _0x43203f=_0x4c85e0;super(_0x4755c5);const _0x17f095=this[_0x43203f(0x204)][_0x43203f(0x20a)][_0x43203f(0x201)](_0x43203f(0x216));this[_0x43203f(0x1f8)]=new _0x326122(this[_0x43203f(0x204)][_0x43203f(0x217)],_0x17f095[_0x43203f(0x21b)]),this[_0x43203f(0x1f8)][_0x43203f(0x1fe)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x17f095[_0x43203f(0x1fa)][_0x43203f(0x208)]({'id':_0x43203f(0x1f6),'buttonLabel':_0xfbcbff(this[_0x43203f(0x204)][_0x43203f(0x217)],_0x43203f(0x1f9)),'buttonIcon':_0x5a7897,'order':0x0,'content':this[_0x43203f(0x1f8)]});}[_0x4c85e0(0x1fd)](_0x318ae5){const _0x1a1d20=_0x4c85e0;this[_0x1a1d20(0x1f8)][_0x1a1d20(0x1fd)](_0x318ae5);}[_0x4c85e0(0x1f3)](_0x157c02){const _0xbd03ae=_0x4c85e0;this[_0xbd03ae(0x1f8)][_0xbd03ae(0x203)](_0x157c02);}[_0x4c85e0(0x1fb)](_0x1c20dc,_0x31b96b){const _0x53efe7=_0x4c85e0;this[_0x53efe7(0x1f8)][_0x53efe7(0x1fb)](_0x1c20dc,_0x31b96b);}[_0x4c85e0(0x213)](_0xc3adc,_0x163981,_0x4c83ea){const _0x3f6d6c=_0x4c85e0;this[_0x3f6d6c(0x1f8)][_0x3f6d6c(0x213)](_0xc3adc,_0x163981,_0x4c83ea);}[_0x4c85e0(0x1f5)](_0x560c1b){const _0x11c084=_0x4c85e0;this[_0x11c084(0x1f8)][_0x11c084(0x211)]=_0x560c1b;}[_0x4c85e0(0x206)](_0x32dde3){const _0x2849eb=_0x4c85e0;this[_0x2849eb(0x1f8)][_0x2849eb(0x20f)]=_0x32dde3;}[_0x4c85e0(0x210)](){const _0x5e01fd=_0x4c85e0;this[_0x5e01fd(0x1f8)][_0x5e01fd(0x20f)]='';}[_0x4c85e0(0x212)](_0x189081){const _0x56fc8f=_0x4c85e0;this[_0x56fc8f(0x1f8)][_0x56fc8f(0x1f4)]=_0x189081;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3f42(_0x3131f1,_0x4084c8){const _0x912a63=_0x912a();return _0x3f42=function(_0x3f428f,_0x28f8b7){_0x3f428f=_0x3f428f-0xa7;let _0x532516=_0x912a63[_0x3f428f];return _0x532516;},_0x3f42(_0x3131f1,_0x4084c8);}function _0x912a(){const _0x357a56=['1114281kSuHbu','getTime','updateTitle','items','1985480bbhFew','itemRemoved','8585184IVnBDj','init','loadItems','updatePinned','updateConversation','pinned','getDate','removeItem','781290eTbVbN','getMonth','findIndex','find','222141xBzMMB','updateItemPinned','1990KijCWU','fetchConversations','createdAt','getFullYear','285933QIKnen','map','execute','connector','itemUpdated','from','addItem','updateItemTitle','group','getItem','56ZgbulA','85032VjSPyG','push','splice','fire','6AdAnmc','itemsLoaded','filter','getItems','getConversations','error','deleteConversation','getResult'];_0x912a=function(){return _0x357a56;};return _0x912a();}const _0x236023=_0x3f42;(function(_0x151e28,_0x1e663f){const _0xa07682=_0x3f42,_0x805f34=_0x151e28();while(!![]){try{const _0x376abd=-parseInt(_0xa07682(0xb9))/0x1+-parseInt(_0xa07682(0xd4))/0x2+-parseInt(_0xa07682(0xb3))/0x3*(parseInt(_0xa07682(0xc3))/0x4)+parseInt(_0xa07682(0xaf))/0x5+-parseInt(_0xa07682(0xc8))/0x6*(parseInt(_0xa07682(0xd0))/0x7)+parseInt(_0xa07682(0xa7))/0x8+-parseInt(_0xa07682(0xc4))/0x9*(-parseInt(_0xa07682(0xb5))/0xa);if(_0x376abd===_0x1e663f)break;else _0x805f34['push'](_0x805f34['shift']());}catch(_0x195bc8){_0x805f34['push'](_0x805f34['shift']());}}}(_0x912a,0x9b0a4));import{EmitterMixin as _0x488d3d}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0xd6cb38}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x488d3d(){[_0x236023(0xd3)]=[];[_0x236023(0xbc)];[_0x236023(0xc1)];constructor({connector:_0x50d299,group:_0x208ac1}){const _0x3b88a5=_0x236023;super(),this[_0x3b88a5(0xbc)]=_0x50d299,this[_0x3b88a5(0xc1)]=_0x208ac1;}async[_0x236023(0xa8)](){const _0x57194c=_0x236023;try{const _0x494168=this[_0x57194c(0xbc)][_0x57194c(0xb6)](this[_0x57194c(0xc1)]),_0x3fa533=await _0x494168[_0x57194c(0xcc)]();this[_0x57194c(0xa9)](_0x3fa533);}catch(_0x3939c0){this[_0x57194c(0xc7)](_0x57194c(0xcd),{'error':_0x3939c0,'operation':_0x57194c(0xa8)});}}[_0x236023(0xbf)](_0x15ac13){const _0x590a3c=_0x236023;this[_0x590a3c(0xd3)][_0x590a3c(0xc5)](_0x15ac13);}async[_0x236023(0xae)](_0x310733){const _0x1ca2c8=_0x236023,_0x2da222=this[_0x1ca2c8(0xd3)][_0x1ca2c8(0xb1)](_0x16dac6=>_0x16dac6['id']===_0x310733);if(-0x1===_0x2da222)return!0x1;try{return await this[_0x1ca2c8(0xbc)][_0x1ca2c8(0xce)](_0x310733)[_0x1ca2c8(0xbb)](),this[_0x1ca2c8(0xd3)][_0x1ca2c8(0xc6)](_0x2da222,0x1),this[_0x1ca2c8(0xc7)](_0x1ca2c8(0xd5),{'itemId':_0x310733}),!0x0;}catch(_0x31279f){return this[_0x1ca2c8(0xc7)](_0x1ca2c8(0xcd),{'error':_0x31279f,'operation':_0x1ca2c8(0xae),'itemId':_0x310733}),!0x1;}}[_0x236023(0xc2)](_0x20fb3e){const _0x1e8c84=_0x236023;return this[_0x1e8c84(0xd3)][_0x1e8c84(0xb2)](_0x57f7ec=>_0x57f7ec['id']===_0x20fb3e);}async[_0x236023(0xc0)](_0x188679,_0x3489b3){const _0x7efe74=_0x236023,_0x1ca332=this[_0x7efe74(0xc2)](_0x188679);if(!_0x1ca332)return!0x1;try{return await this[_0x7efe74(0xbc)][_0x7efe74(0xab)](_0x188679,{'title':_0x3489b3})[_0x7efe74(0xcf)](),_0x1ca332[_0x7efe74(0xd2)](_0x3489b3),this[_0x7efe74(0xc7)](_0x7efe74(0xbd),{'itemId':_0x188679,'updates':{'title':_0x3489b3}}),!0x0;}catch(_0x3461f0){return this[_0x7efe74(0xc7)](_0x7efe74(0xcd),{'error':_0x3461f0,'operation':_0x7efe74(0xc0),'itemId':_0x188679}),!0x1;}}async[_0x236023(0xb4)](_0x17110b,_0x36cf7a){const _0x363dfc=_0x236023,_0x15f9ab=this[_0x363dfc(0xc2)](_0x17110b);if(!_0x15f9ab)return!0x1;try{return await this[_0x363dfc(0xbc)][_0x363dfc(0xab)](_0x17110b,{'pinned':_0x36cf7a})[_0x363dfc(0xcf)](),_0x15f9ab[_0x363dfc(0xaa)](_0x36cf7a),this[_0x363dfc(0xc7)](_0x363dfc(0xbd),{'itemId':_0x17110b,'updates':{'pinned':_0x36cf7a}}),!0x0;}catch(_0x1fd03a){return this[_0x363dfc(0xc7)](_0x363dfc(0xcd),{'error':_0x1fd03a,'operation':_0x363dfc(0xb4),'itemId':_0x17110b}),!0x1;}}[_0x236023(0xa9)](_0x523a6b){const _0x17c7df=_0x236023;try{this[_0x17c7df(0xd3)]=[],_0x523a6b[_0x17c7df(0xba)](_0x380f26=>{const _0x327f3f=_0x17c7df;this[_0x327f3f(0xbf)](new _0xd6cb38(_0x380f26));}),this[_0x17c7df(0xc7)](_0x17c7df(0xc9),{'items':[...this[_0x17c7df(0xd3)]]});}catch(_0x189731){this[_0x17c7df(0xc7)](_0x17c7df(0xcd),{'error':_0x189731,'operation':_0x17c7df(0xa9)});}}[_0x236023(0xcb)](_0x487122={}){const _0x3b80b2=_0x236023,_0x1581fd=void 0x0!==_0x487122[_0x3b80b2(0xac)]&&_0x487122[_0x3b80b2(0xac)],_0x47f175=_0x487122[_0x3b80b2(0xbe)]?new Date(_0x487122[_0x3b80b2(0xbe)][_0x3b80b2(0xb8)](),_0x487122[_0x3b80b2(0xbe)][_0x3b80b2(0xb0)](),_0x487122[_0x3b80b2(0xbe)][_0x3b80b2(0xad)]()):null,_0xbc4cec=_0x487122['to']?new Date(_0x487122['to'][_0x3b80b2(0xb8)](),_0x487122['to'][_0x3b80b2(0xb0)](),_0x487122['to'][_0x3b80b2(0xad)]()):null;return this[_0x3b80b2(0xd3)][_0x3b80b2(0xca)](_0x158505=>{const _0x932e55=_0x3b80b2;if(_0x158505[_0x932e55(0xac)]!==_0x1581fd)return!0x1;if(_0xbc4cec){const _0x270040=new Date(_0x158505[_0x932e55(0xb7)][_0x932e55(0xb8)](),_0x158505[_0x932e55(0xb7)][_0x932e55(0xb0)](),_0x158505[_0x932e55(0xb7)][_0x932e55(0xad)]());return _0x47f175?_0x47f175[_0x932e55(0xd1)]()===_0xbc4cec[_0x932e55(0xd1)]()?_0x270040[_0x932e55(0xd1)]()===_0x47f175[_0x932e55(0xd1)]():_0x270040<_0xbc4cec&&_0x270040>=_0x47f175:_0x270040<_0xbc4cec;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x29d1b5=_0x415c;function _0x415c(_0xdac3fc,_0xa39204){var _0x3aba75=_0x3aba();return _0x415c=function(_0x415cf7,_0x4bb09a){_0x415cf7=_0x415cf7-0x1b5;var _0xd3794d=_0x3aba75[_0x415cf7];return _0xd3794d;},_0x415c(_0xdac3fc,_0xa39204);}function _0x3aba(){var _0x5a41d8=['pinned','575402gGGsck','5807096aVuNAS','updatedAt','8392520tNmcmB','3YKapdX','set','326778jsjQCu','2MKHvQv','title','createdAt','3240555hLNftF','9Ptdzqx','35wmtSsU','updateTitle','2774972LnRblg','13504513vdYiFO','updatePinned'];_0x3aba=function(){return _0x5a41d8;};return _0x3aba();}(function(_0x4bd273,_0x8bc02c){var _0xf1c045=_0x415c,_0x385916=_0x4bd273();while(!![]){try{var _0x28dee3=-parseInt(_0xf1c045(0x1c2))/0x1*(parseInt(_0xf1c045(0x1b7))/0x2)+-parseInt(_0xf1c045(0x1c6))/0x3*(parseInt(_0xf1c045(0x1be))/0x4)+parseInt(_0xf1c045(0x1ba))/0x5+parseInt(_0xf1c045(0x1b6))/0x6*(-parseInt(_0xf1c045(0x1bc))/0x7)+parseInt(_0xf1c045(0x1c3))/0x8*(-parseInt(_0xf1c045(0x1bb))/0x9)+parseInt(_0xf1c045(0x1c5))/0xa+parseInt(_0xf1c045(0x1bf))/0xb;if(_0x28dee3===_0x8bc02c)break;else _0x385916['push'](_0x385916['shift']());}catch(_0x4ce176){_0x385916['push'](_0x385916['shift']());}}}(_0x3aba,0x6d4d3));import{ObservableMixin as _0x33a8af}from'ckeditor5/src/utils.js';import{escape as _0x1fe120}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x33a8af(){['id'];[_0x29d1b5(0x1b9)];constructor({id:_0x24d9b0,title:_0x66824a,createdAt:_0x3ba0a5,updatedAt:_0x2f38b1,pinned:_0x741dad}){var _0x2e4f39=_0x29d1b5;super(),this['id']=_0x24d9b0,this[_0x2e4f39(0x1b9)]=new Date(_0x3ba0a5),this[_0x2e4f39(0x1b5)](_0x2e4f39(0x1b8),_0x66824a),this[_0x2e4f39(0x1b5)](_0x2e4f39(0x1c4),_0x2f38b1?new Date(_0x2f38b1):null),this[_0x2e4f39(0x1b5)](_0x2e4f39(0x1c1),_0x741dad||!0x1);}[_0x29d1b5(0x1bd)](_0x3c7e69){var _0x571d0f=_0x29d1b5;this[_0x571d0f(0x1b5)](_0x571d0f(0x1b8),_0x1fe120(_0x3c7e69)),this[_0x571d0f(0x1c4)]=new Date();}[_0x29d1b5(0x1c0)](_0x5b07a1){var _0x255af8=_0x29d1b5;this[_0x255af8(0x1b5)](_0x255af8(0x1c1),_0x5b07a1),this[_0x255af8(0x1c4)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x50e1bb=_0x4561;(function(_0x16d3db,_0x2d69bd){const _0xd629c2=_0x4561,_0x2954e9=_0x16d3db();while(!![]){try{const _0x76fcd1=-parseInt(_0xd629c2(0x161))/0x1+parseInt(_0xd629c2(0x160))/0x2*(-parseInt(_0xd629c2(0x117))/0x3)+-parseInt(_0xd629c2(0x10e))/0x4*(parseInt(_0xd629c2(0x14f))/0x5)+-parseInt(_0xd629c2(0x126))/0x6+-parseInt(_0xd629c2(0x152))/0x7*(parseInt(_0xd629c2(0x139))/0x8)+parseInt(_0xd629c2(0x147))/0x9*(parseInt(_0xd629c2(0x130))/0xa)+-parseInt(_0xd629c2(0x13b))/0xb*(-parseInt(_0xd629c2(0x12d))/0xc);if(_0x76fcd1===_0x2d69bd)break;else _0x2954e9['push'](_0x2954e9['shift']());}catch(_0x4f4f95){_0x2954e9['push'](_0x2954e9['shift']());}}}(_0x4348,0x61b07));function _0x4561(_0x1689b6,_0x271db2){const _0x43480f=_0x4348();return _0x4561=function(_0x4561d2,_0x5b2c68){_0x4561d2=_0x4561d2-0x101;let _0x37d29b=_0x43480f[_0x4561d2];return _0x37d29b;},_0x4561(_0x1689b6,_0x271db2);}import{ListItemView as _0x445473,HighlightedTextView as _0x57b560,ButtonView as _0x347922,ListView as _0x4909ae,IconView as _0x45f3a8,createDropdown as _0x569ae7,InputTextView as _0x236b70}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0xbdde44,IconPin as _0x52065,IconCheck as _0x5424d4,IconCancel as _0x469656}from'ckeditor5/src/icons.js';function _0x4348(){const _0x42333b=['_commitEditInputValue','span','buttonView','click','loadingState','text','selectConversation','removeConversation','_titleView','ck-ai-chat-history__item-main-content','set','LOADING_LABELS','ck-ai-chat-history__item-check-container','4OowhkY','_createAcceptEditButtonView','panelPosition','_createPinButtonView','isOn','ck-hidden','ck-ai-chat-history__item-content','ck-ai-chat-history__item-check','bind','205512ZloWok','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','updateTitle','_createEditInputView','bindTemplate','tiny','showConfirm','isMatching','fire','AI_CHAT_HISTORY_LOADING_RENAMING','AI_CHAT_HISTORY_REMOVE_CONFIRM','listitem','value','pinned','419640xyEIBf','_createMenuDropdownView','match','AI_CHAT_HISTORY_CANCEL','ck-ai-chat-history__item-date','ck-ai-chat-history__item--active','AI_CHAT_HISTORY_EDIT_NAME','7152Eopejd','panelView','ck-ai-chat-history__item--edit','10YkELBq','_createCheckView','locale','editConversationTitle','isEdit','ck-ai-chat-history__item-row','Enter','ck-confirm-view-submit','key','16ucNNYH','AI_CHAT_HISTORY_LOADING_REMOVING','37807yiabCz','setConversationPinned','extendTemplate','createCollection','ck-ai-chat-history__item','then','ck-ai-loader','clear','ck-ai-chat-history__item-actions','highlightText','ck-ai-chat-history__item-title','isVisible','4307373nVYcfA','AI_CHAT_HISTORY_ACCEPT','items','change:isEdit','children','label','div','_createCancelEditButtonView','3733315zarZKa','setTemplate','ck-confirm-view-cancel','1389101cxaEat','AI_CHAT_HISTORY_REMOVE','mainContent','AI_CHAT_HISTORY_PIN_BUTTON','addMany','edit:cancel','actions','ck-ai-loader__text','updateLoadingState','add','_createSpinnerView','string','AI_CHAT_HISTORY_LOADING_PINNING','execute','14nnObSA','433897JicQCQ','focus','withText','element'];_0x4348=function(){return _0x42333b;};return _0x4348();}import{LateFocusDropdownButtonView as _0x39c5b5,ConfirmMixin as _0x546a9d}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x204ae3}from'es-toolkit/compat';import{AISpinnerView as _0xee1151}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x449f8a}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x546a9d(_0x445473){['id'];static [_0x50e1bb(0x10c)]={'remove':_0x50e1bb(0x13a),'rename':_0x50e1bb(0x121),'pin':_0x50e1bb(0x15e),'unpin':_0x50e1bb(0x118)};[_0x50e1bb(0x158)];[_0x50e1bb(0x154)];[_0x50e1bb(0x109)];constructor(_0x2d2bd7,_0xa22919){const _0x2ae2c0=_0x50e1bb;super(_0x2d2bd7);const _0x15fad9=this[_0x2ae2c0(0x11c)];this[_0x2ae2c0(0x10b)](_0x2ae2c0(0x134),!0x1),this[_0x2ae2c0(0x10b)](_0x2ae2c0(0x146),!0x0),this[_0x2ae2c0(0x10b)](_0x2ae2c0(0x125),!!_0xa22919[_0x2ae2c0(0x125)]),this[_0x2ae2c0(0x10b)](_0x2ae2c0(0x105),null),this['id']=_0xa22919['id'];const {title:_0x10b369,createdAt:_0x5ce133,active:_0x1ed6a4=!0x1}=_0xa22919;this[_0x2ae2c0(0x109)]=new _0x57b560(),this[_0x2ae2c0(0x109)][_0x2ae2c0(0x106)]=_0x10b369,this[_0x2ae2c0(0x109)][_0x2ae2c0(0x13d)]({'attributes':{'class':[_0x2ae2c0(0x145)]}});const _0x4853a2=this[_0x2ae2c0(0x131)](),_0x14bd91=this[_0x2ae2c0(0x111)](_0x2d2bd7),_0x3ffcee=this[_0x2ae2c0(0x127)](),_0x25d8a8=this[_0x2ae2c0(0x11b)](_0x2d2bd7,_0x10b369),_0xcb543f=this[_0x2ae2c0(0x10f)](_0x2d2bd7,_0x25d8a8),_0x14c66f=this[_0x2ae2c0(0x14e)](_0x2d2bd7,_0x25d8a8);this[_0x2ae2c0(0x158)]=this[_0x2ae2c0(0x13e)](),this[_0x2ae2c0(0x154)]=this[_0x2ae2c0(0x13e)](),this[_0x2ae2c0(0x154)][_0x2ae2c0(0x15b)](this[_0x2ae2c0(0x109)]),this[_0x2ae2c0(0x158)][_0x2ae2c0(0x15b)](_0x14bd91),this[_0x2ae2c0(0x158)][_0x2ae2c0(0x15b)](_0x3ffcee),this['on'](_0x2ae2c0(0x14a),(_0x54dcab,_0x38487d,_0x180f88)=>{const _0x25a010=_0x2ae2c0;this[_0x25a010(0x158)][_0x25a010(0x142)](),this[_0x25a010(0x154)][_0x25a010(0x142)](),_0x180f88?(this[_0x25a010(0x158)][_0x25a010(0x15b)](_0xcb543f),this[_0x25a010(0x158)][_0x25a010(0x15b)](_0x14c66f),this[_0x25a010(0x154)][_0x25a010(0x15b)](_0x25d8a8),_0x25d8a8[_0x25a010(0x164)][_0x25a010(0x162)]()):(this[_0x25a010(0x158)][_0x25a010(0x15b)](_0x14bd91),this[_0x25a010(0x158)][_0x25a010(0x15b)](_0x3ffcee),this[_0x25a010(0x154)][_0x25a010(0x15b)](this[_0x25a010(0x109)]));}),this[_0x2ae2c0(0x150)]({'tag':'li','attributes':{'class':[_0x2ae2c0(0x13f),_0x1ed6a4?_0x2ae2c0(0x12b):'',_0x15fad9['if'](_0x2ae2c0(0x146),_0x2ae2c0(0x113),_0x683dcf=>!_0x683dcf),_0x15fad9['if'](_0x2ae2c0(0x134),_0x2ae2c0(0x12f))],'role':_0x2ae2c0(0x123)},'children':[{'tag':_0x2ae2c0(0x102),'attributes':{'class':[_0x2ae2c0(0x10d)]},'children':[{'tag':_0x2ae2c0(0x14d),'attributes':{'class':[_0x2ae2c0(0x115),_0x15fad9['if'](_0x2ae2c0(0x105),_0x2ae2c0(0x113),_0x4e1529=>!!_0x4e1529)]},'children':_0x1ed6a4?[_0x4853a2]:[]},{'tag':_0x2ae2c0(0x14d),'attributes':{'class':[_0x2ae2c0(0x141),_0x15fad9['if'](_0x2ae2c0(0x105),_0x2ae2c0(0x113),_0x168ddd=>!_0x168ddd)]},'children':[this[_0x2ae2c0(0x15c)]()]}]},{'tag':_0x2ae2c0(0x14d),'attributes':{'class':[_0x2ae2c0(0x135)]},'children':[{'tag':_0x2ae2c0(0x14d),'attributes':{'class':[_0x2ae2c0(0x114)]},'on':{'click':this[_0x2ae2c0(0x11c)]['to'](_0x2ae2c0(0x104))},'children':[{'tag':_0x2ae2c0(0x14d),'attributes':{'class':[_0x2ae2c0(0x10a)]},'children':[{'tag':_0x2ae2c0(0x14d),'attributes':{'class':[_0x2ae2c0(0x145),_0x15fad9['if'](_0x2ae2c0(0x105),_0x2ae2c0(0x113),_0x144a65=>!!_0x144a65)]},'children':this[_0x2ae2c0(0x154)]},{'tag':_0x2ae2c0(0x14d),'attributes':{'class':[_0x2ae2c0(0x159),_0x15fad9['if'](_0x2ae2c0(0x105),_0x2ae2c0(0x113),_0x2422cf=>!_0x2422cf)]},'children':[{'text':_0x15fad9['to'](_0x2ae2c0(0x105),_0x21453=>_0x21453?_0x449f8a(this[_0x2ae2c0(0x132)],AIChatHistoryListItemView[_0x2ae2c0(0x10c)][_0x21453]):'')}]}]},{'tag':_0x2ae2c0(0x102),'attributes':{'class':[_0x2ae2c0(0x12a)]},'children':[_0x5ce133]}]},{'tag':_0x2ae2c0(0x14d),'attributes':{'class':[_0x2ae2c0(0x143)]},'children':this[_0x2ae2c0(0x158)]}]}]}),this['on'](_0x2ae2c0(0x104),()=>{const _0x2b06aa=_0x2ae2c0;this[_0x2b06aa(0x134)]||this[_0x2b06aa(0x120)](_0x2b06aa(0x107),{'id':this['id']});});}[_0x50e1bb(0x11a)](_0x214c08){const _0x4418cd=_0x50e1bb;this[_0x4418cd(0x109)][_0x4418cd(0x106)]=_0x204ae3(_0x214c08);}[_0x50e1bb(0x15a)](_0x36b05b,_0x5dfa52){const _0x218ddb=_0x50e1bb;this[_0x218ddb(0x10b)](_0x218ddb(0x105),_0x5dfa52?_0x36b05b:null);}[_0x50e1bb(0x131)](){const _0x2a3dd8=_0x50e1bb,_0x5069b=new _0x45f3a8();return _0x5069b[_0x2a3dd8(0x10b)]({'content':_0x5424d4}),_0x5069b;}[_0x50e1bb(0x111)](_0x20532a){const _0x37e7f4=_0x50e1bb,_0x14d846=new _0x347922(_0x20532a);return _0x14d846[_0x37e7f4(0x10b)]({'label':_0x449f8a(_0x20532a,_0x37e7f4(0x155)),'icon':_0x52065,'withText':!0x1,'tooltip':!0x0}),_0x14d846[_0x37e7f4(0x116)](_0x37e7f4(0x112))['to'](this,_0x37e7f4(0x125)),_0x14d846['on'](_0x37e7f4(0x15f),()=>{const _0x5cb9ab=_0x37e7f4,_0x431d1f=!this[_0x5cb9ab(0x125)];this[_0x5cb9ab(0x120)](_0x5cb9ab(0x13c),{'id':this['id'],'pinned':_0x431d1f});}),_0x14d846;}[_0x50e1bb(0x127)](){const _0x87a9fa=_0x50e1bb,_0x212476=_0x569ae7(this[_0x87a9fa(0x132)],_0x39c5b5),_0xc04cc0=_0x212476[_0x87a9fa(0x12e)][_0x87a9fa(0x14b)];_0x212476[_0x87a9fa(0x103)][_0x87a9fa(0x10b)]({'label':_0x449f8a(this[_0x87a9fa(0x132)],_0x87a9fa(0x119)),'icon':_0xbdde44}),_0x212476[_0x87a9fa(0x110)]='sw';const _0x5a1453=new _0x347922(this[_0x87a9fa(0x132)]);_0x5a1453[_0x87a9fa(0x14c)]=_0x449f8a(this[_0x87a9fa(0x132)],_0x87a9fa(0x12c)),_0x5a1453[_0x87a9fa(0x163)]=!0x0,_0x5a1453['on'](_0x87a9fa(0x15f),()=>{const _0x2a0f94=_0x87a9fa;this[_0x2a0f94(0x134)]=!0x0;});const _0x1ea45a=new _0x347922(this[_0x87a9fa(0x132)]);_0x1ea45a[_0x87a9fa(0x14c)]=_0x449f8a(this[_0x87a9fa(0x132)],_0x87a9fa(0x153)),_0x1ea45a[_0x87a9fa(0x163)]=!0x0,_0x1ea45a['on'](_0x87a9fa(0x15f),()=>{const _0x3b68ed=_0x87a9fa;this[_0x3b68ed(0x11e)](_0x449f8a(this[_0x3b68ed(0x132)],_0x3b68ed(0x122)),this[_0x3b68ed(0x164)])[_0x3b68ed(0x140)](()=>{const _0x42d3cb=_0x3b68ed;this[_0x42d3cb(0x120)](_0x42d3cb(0x108),{'id':this['id']});});});const _0x62f8f4=new _0x4909ae(this[_0x87a9fa(0x132)]),_0x46ecfb=new _0x445473(this[_0x87a9fa(0x132)]);_0x46ecfb[_0x87a9fa(0x14b)][_0x87a9fa(0x15b)](_0x5a1453);const _0x2c6434=new _0x445473(this[_0x87a9fa(0x132)]);return _0x2c6434[_0x87a9fa(0x14b)][_0x87a9fa(0x15b)](_0x1ea45a),_0x62f8f4[_0x87a9fa(0x149)][_0x87a9fa(0x156)]([_0x46ecfb,_0x2c6434]),_0xc04cc0[_0x87a9fa(0x15b)](_0x62f8f4),_0x212476;}[_0x50e1bb(0x11b)](_0x32655c,_0x3b6d89){const _0x56583f=_0x50e1bb,_0x54dee8=new _0x236b70(_0x32655c),_0x5cfafd=_0x54dee8[_0x56583f(0x11c)];return _0x54dee8[_0x56583f(0x124)]=_0x3b6d89,_0x54dee8[_0x56583f(0x13d)]({'on':{'keydown':_0x5cfafd['to'](_0xf09ca1=>{const _0x39f865=_0x56583f;_0x39f865(0x136)==_0xf09ca1[_0x39f865(0x138)]&&this[_0x39f865(0x101)](_0x54dee8);})}}),_0x54dee8;}[_0x50e1bb(0x10f)](_0x558fd5,_0x53fb95){const _0x52a859=_0x50e1bb,_0x59b1b9=new _0x347922(_0x558fd5);return _0x59b1b9[_0x52a859(0x10b)]({'icon':_0x5424d4,'withText':!0x1,'tooltip':_0x449f8a(_0x558fd5,_0x52a859(0x148))}),_0x59b1b9[_0x52a859(0x13d)]({'attributes':{'class':[_0x52a859(0x137)]}}),_0x59b1b9['on'](_0x52a859(0x15f),()=>{const _0x3d06df=_0x52a859;this[_0x3d06df(0x101)](_0x53fb95);}),_0x59b1b9;}[_0x50e1bb(0x101)](_0x5d6f5c){const _0x516262=_0x50e1bb,_0x4146e7=_0x5d6f5c[_0x516262(0x164)][_0x516262(0x124)]||'';this[_0x516262(0x109)][_0x516262(0x106)]=_0x4146e7,this[_0x516262(0x134)]=!0x1,this[_0x516262(0x120)](_0x516262(0x133),{'id':this['id'],'title':_0x4146e7});}[_0x50e1bb(0x14e)](_0x37bc8f,_0xcdb54d){const _0x306578=_0x50e1bb,_0x45944c=new _0x347922(_0x37bc8f);return _0x45944c[_0x306578(0x10b)]({'icon':_0x469656,'withText':!0x1,'tooltip':_0x449f8a(_0x37bc8f,_0x306578(0x129))}),_0x45944c[_0x306578(0x13d)]({'attributes':{'class':[_0x306578(0x151)]}}),_0x45944c['on'](_0x306578(0x15f),()=>{const _0x487279=_0x306578;this[_0x487279(0x134)]=!0x1,_0xcdb54d[_0x487279(0x124)]=this[_0x487279(0x109)][_0x487279(0x106)]||'',this[_0x487279(0x120)](_0x487279(0x157));}),_0x45944c;}[_0x50e1bb(0x15c)](){const _0x3ace45=_0x50e1bb,_0x5d0cd6=new _0xee1151(_0x3ace45(0x11d));return _0x5d0cd6[_0x3ace45(0x146)]=!0x0,_0x5d0cd6;}[_0x50e1bb(0x11f)](_0x124094){const _0x4859ae=_0x50e1bb;return this[_0x4859ae(0x109)]&&_0x4859ae(0x15d)==typeof this[_0x4859ae(0x109)][_0x4859ae(0x106)]&&this[_0x4859ae(0x109)][_0x4859ae(0x106)][_0x4859ae(0x128)](_0x124094)?{'title':!0x0}:null;}[_0x50e1bb(0x144)](_0x2bce12){const _0x2d4cc7=_0x50e1bb;this[_0x2d4cc7(0x109)][_0x2d4cc7(0x144)](_0x2bce12);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4a67(_0x1ffe59,_0x239cfe){const _0x211324=_0x2113();return _0x4a67=function(_0x4a6756,_0x4cc042){_0x4a6756=_0x4a6756-0x11b;let _0x3c246a=_0x211324[_0x4a6756];return _0x3c246a;},_0x4a67(_0x1ffe59,_0x239cfe);}const _0x178c59=_0x4a67;(function(_0x343e85,_0x2466de){const _0x347808=_0x4a67,_0x2f5147=_0x343e85();while(!![]){try{const _0x39f03b=parseInt(_0x347808(0x133))/0x1+-parseInt(_0x347808(0x131))/0x2+parseInt(_0x347808(0x139))/0x3*(-parseInt(_0x347808(0x12d))/0x4)+-parseInt(_0x347808(0x134))/0x5+-parseInt(_0x347808(0x122))/0x6+-parseInt(_0x347808(0x121))/0x7+parseInt(_0x347808(0x11f))/0x8*(parseInt(_0x347808(0x11d))/0x9);if(_0x39f03b===_0x2466de)break;else _0x2f5147['push'](_0x2f5147['shift']());}catch(_0x4524ad){_0x2f5147['push'](_0x2f5147['shift']());}}}(_0x2113,0xe7f4d));import{ListItemView as _0x14cb14,View as _0xce67a7,ListView as _0x571f6c}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x14cb14{[_0x178c59(0x132)];[_0x178c59(0x128)];[_0x178c59(0x11b)];constructor(_0x32da10,{title:_0x2f7d34,items:_0x9d862f}){const _0x4b334a=_0x178c59;super(_0x32da10);const _0x36654e=this[_0x4b334a(0x120)];this[_0x4b334a(0x124)](_0x4b334a(0x136),!0x0),this[_0x4b334a(0x132)]=_0x2f7d34,this[_0x4b334a(0x128)]=_0x9d862f;const _0x3b515c=new _0xce67a7(_0x32da10);_0x3b515c[_0x4b334a(0x130)]({'tag':_0x4b334a(0x13a),'attributes':{'class':[_0x4b334a(0x127)]},'children':[this[_0x4b334a(0x132)]]}),this[_0x4b334a(0x11b)]=new _0x571f6c(_0x32da10),this[_0x4b334a(0x11b)][_0x4b334a(0x12e)][_0x4b334a(0x12a)](this[_0x4b334a(0x128)]),this[_0x4b334a(0x130)]({'tag':'li','attributes':{'class':[_0x4b334a(0x12b),_0x36654e['if'](_0x4b334a(0x136),_0x4b334a(0x135),_0x485d6a=>!_0x485d6a)]},'children':[_0x3b515c,this[_0x4b334a(0x11b)]]});}[_0x178c59(0x11e)](_0x1203a4){const _0x4e0835=_0x178c59,_0x981b12=this[_0x4e0835(0x128)][_0x4e0835(0x125)];let _0xd6eecd=0x0;for(const _0x4db0ea of this[_0x4e0835(0x128)]){if(_0x1203a4){const _0x19109a=_0x4db0ea[_0x4e0835(0x138)](_0x1203a4);_0x4db0ea[_0x4e0835(0x136)]=!!_0x19109a,_0x4db0ea[_0x4e0835(0x123)](_0x1203a4);}else _0x4db0ea[_0x4e0835(0x136)]=!0x0,_0x4db0ea[_0x4e0835(0x123)](null);_0x4db0ea[_0x4e0835(0x136)]&&_0xd6eecd++;}return this[_0x4e0835(0x136)]=_0xd6eecd>0x0,{'resultsCount':_0xd6eecd,'totalItemsCount':_0x981b12};}[_0x178c59(0x12f)](_0x4823d4){const _0x34f905=_0x178c59;return this[_0x34f905(0x128)][_0x34f905(0x126)](_0x244da7=>_0x244da7['id']===_0x4823d4);}[_0x178c59(0x11c)](_0x122dae){const _0x9e5b5b=_0x178c59,_0x561eed=this[_0x9e5b5b(0x128)][_0x9e5b5b(0x137)](_0x122dae);-0x1!==_0x561eed&&(this[_0x9e5b5b(0x128)][_0x9e5b5b(0x129)](_0x561eed,0x1),this[_0x9e5b5b(0x11b)][_0x9e5b5b(0x12e)][_0x9e5b5b(0x12c)](_0x122dae));}}function _0x2113(){const _0x1d99b9=['length','find','ck-ai-chat-history__section-title','itemsViews','splice','addMany','ck-ai-chat-history__section','remove','365644TECNqn','items','getItem','setTemplate','1985078xlvwMU','title','929113LevzPh','4241115yLUkqi','ck-hidden','isVisible','indexOf','isMatching','21ZUhMKy','div','_itemsListView','removeItem','225WxkxWf','filter','1548392pRLPBZ','bindTemplate','3879778lVtUCZ','10697112LSBUbG','highlightText','set'];_0x2113=function(){return _0x1d99b9;};return _0x2113();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c1fa6=_0x215a;function _0x57ef(){const _0x47cb1f=['8wKsmWz','2817695vZQhKf','22gbJxop','ck-ai-chat-history__sections','sections','3Csmhre','40qfxwNh','addMany','13109ePFWeV','377127aggihF','extendTemplate','1573734COFRtU','1878230JEDQFL','items','124145llRHSR','filter','950568eWLxRW'];_0x57ef=function(){return _0x47cb1f;};return _0x57ef();}(function(_0x5f14db,_0x3f474a){const _0x4d1fd8=_0x215a,_0x5a90e7=_0x5f14db();while(!![]){try{const _0x4b1b19=-parseInt(_0x4d1fd8(0x194))/0x1*(-parseInt(_0x4d1fd8(0x18c))/0x2)+-parseInt(_0x4d1fd8(0x191))/0x3*(-parseInt(_0x4d1fd8(0x18b))/0x4)+parseInt(_0x4d1fd8(0x18d))/0x5+parseInt(_0x4d1fd8(0x186))/0x6+parseInt(_0x4d1fd8(0x189))/0x7+-parseInt(_0x4d1fd8(0x192))/0x8*(parseInt(_0x4d1fd8(0x195))/0x9)+-parseInt(_0x4d1fd8(0x187))/0xa*(parseInt(_0x4d1fd8(0x18e))/0xb);if(_0x4b1b19===_0x3f474a)break;else _0x5a90e7['push'](_0x5a90e7['shift']());}catch(_0x5845a6){_0x5a90e7['push'](_0x5a90e7['shift']());}}}(_0x57ef,0x85e80));import{ListView as _0x270fa1}from'ckeditor5/src/ui.js';function _0x215a(_0xa9f62c,_0x310fc4){const _0x57efca=_0x57ef();return _0x215a=function(_0x215a7d,_0x1b3221){_0x215a7d=_0x215a7d-0x185;let _0x32e66a=_0x57efca[_0x215a7d];return _0x32e66a;},_0x215a(_0xa9f62c,_0x310fc4);}export class AIChatHistorySectionListView extends _0x270fa1{[_0x1c1fa6(0x190)];constructor(_0x5643df,_0x22f7bc){const _0x118640=_0x1c1fa6;super(_0x5643df),this[_0x118640(0x190)]=_0x22f7bc,this[_0x118640(0x188)][_0x118640(0x193)](this[_0x118640(0x190)]),this[_0x118640(0x185)]({'attributes':{'class':[_0x118640(0x18f)]}});}[_0x1c1fa6(0x18a)](_0x3c8714){const _0x41961a=_0x1c1fa6;let _0x195bf4=0x0,_0x2769fb=0x0;for(const _0x2cb572 of this[_0x41961a(0x190)]){const {resultsCount:_0x562703,totalItemsCount:_0x3a63b8}=_0x2cb572[_0x41961a(0x18a)](_0x3c8714);_0x195bf4+=_0x562703,_0x2769fb+=_0x3a63b8;}return{'resultsCount':_0x195bf4,'totalItemsCount':_0x2769fb};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xc2bb9c=_0x2953;(function(_0x3ed61f,_0x69a88e){const _0x5c10a2=_0x2953,_0x42a268=_0x3ed61f();while(!![]){try{const _0x798e0a=parseInt(_0x5c10a2(0x112))/0x1*(-parseInt(_0x5c10a2(0x115))/0x2)+parseInt(_0x5c10a2(0xce))/0x3+parseInt(_0x5c10a2(0xf3))/0x4*(-parseInt(_0x5c10a2(0xc3))/0x5)+parseInt(_0x5c10a2(0x110))/0x6*(-parseInt(_0x5c10a2(0x111))/0x7)+-parseInt(_0x5c10a2(0xeb))/0x8*(-parseInt(_0x5c10a2(0xcd))/0x9)+parseInt(_0x5c10a2(0xc9))/0xa*(parseInt(_0x5c10a2(0xe1))/0xb)+parseInt(_0x5c10a2(0xdf))/0xc*(parseInt(_0x5c10a2(0xd8))/0xd);if(_0x798e0a===_0x69a88e)break;else _0x42a268['push'](_0x42a268['shift']());}catch(_0x1462bd){_0x42a268['push'](_0x42a268['shift']());}}}(_0x2735,0xbee2c));import{View as _0x1a2dc9,SearchTextView as _0x3e694d,FormHeaderView as _0x2ade21,ButtonView as _0x4d777c}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x2ed3f1,IconCancel as _0x317864,IconPlus as _0x2cb9b8}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x36d52f}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x5ddd87}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x3f7f70}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5160f1}from'../aichathistoryui.js';function _0x2735(){const _0x47872e=['ck-ai-notification_error__dismiss-button','_createSkeletonView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','isVisible','render','24EDJczC','2714488LsrihW','882KFZVFY','skeletonView','sections','538sDrETa','isLoading','indexOf','addMany','ck-reset_all','clear','title','set','fieldView','extendTemplate','emptyView','openChat','_createSearchView','removeItem','1464215PLjjDa','isMainErrorViewVisible','isSearchViewVisible','isMaximized','ltr','search','20pGDqXZ','sectionsView','bindTemplate','delegate','9IXzVVD','568554qwiIJG','element','_updateViewVisibility','some','splice','itemsViews','bind','length','ck-ai-chat-history__content','updateLoadingState','13sHkzwg','ck-ai-notification','mainErrorView','AI_CHAT_LABEL_NEW_CHAT','errorMessage','remove','resizeButton','31641756LPMGqT','updateTitle','3029477BAgMiC','change:isLoading','push','updateItemLoadingState','isEmptyViewVisible','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','removeHistoryItem','ck-ai-chat-history__empty-message','queryView','hasItems','573168hZKWHW','fire','change:hasItems','updateHistoryItemsWithCategories','change:errorMessage','children','ck-ai-chat__start-conversation','ck-ai-chat-history','12xtmPnB','searchView','getItem','_createErrorView','div','aiHistory','AI_CHAT_HISTORY_SEARCH_LABEL','locale','updateItemTitle','_refreshSearch','_createEmptyStateView','execute','ck-ai-chat-history__empty','ck-hidden','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-rounded-corners','value','ck-ai-header\x20ck-ai-header_history','_createListItemViews','ck-ai-notification_error','AI_CHAT_HISTORY_HEADING','add','items','setTemplate'];_0x2735=function(){return _0x47872e;};return _0x2735();}import{AISkeletonView as _0x34203f,SKELETON_DEFINITIONS as _0x46ca81}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x70c1a4}from'../../aicore/utils/createresizebutton.js';function _0x2953(_0x4a5934,_0x293398){const _0x2735b1=_0x2735();return _0x2953=function(_0x295311,_0x34dc2f){_0x295311=_0x295311-0xb8;let _0x239003=_0x2735b1[_0x295311];return _0x239003;},_0x2953(_0x4a5934,_0x293398);}import{getTranslation as _0x5b950a}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x1a2dc9{[_0xc2bb9c(0xf4)];[_0xc2bb9c(0xda)];[_0xc2bb9c(0x113)];[_0xc2bb9c(0xbf)];[_0xc2bb9c(0xca)];[_0xc2bb9c(0xde)];constructor(_0x58d76b,_0x4e4bed){const _0x284dba=_0xc2bb9c;super(_0x58d76b),this[_0x284dba(0xbc)](_0x284dba(0xea),!0x1),this[_0x284dba(0xbc)](_0x284dba(0x116),!0x0),this[_0x284dba(0xbc)](_0x284dba(0xdc),''),this[_0x284dba(0xbc)](_0x284dba(0xc6),!0x1),this[_0x284dba(0xbc)](_0x284dba(0xc5),!0x1),this[_0x284dba(0xbc)](_0x284dba(0xe5),!0x1),this[_0x284dba(0xbc)](_0x284dba(0xc4),!0x1);const _0x169c08=new _0x2ade21(_0x58d76b,{'label':_0x5b950a(_0x58d76b,_0x284dba(0x107)),'icon':_0x2ed3f1,'class':_0x284dba(0x104)});_0x4e4bed&&(this[_0x284dba(0xde)]=_0x70c1a4(_0x58d76b,this),_0x169c08[_0x284dba(0xf0)][_0x284dba(0x108)](this[_0x284dba(0xde)])),this[_0x284dba(0xca)]=new _0x36d52f(_0x58d76b,[]),this[_0x284dba(0xca)][_0x284dba(0xcc)](..._0x5160f1)['to'](this),this[_0x284dba(0xda)]=this[_0x284dba(0xf6)](),this[_0x284dba(0x113)]=this[_0x284dba(0x10c)](),this[_0x284dba(0xbf)]=this[_0x284dba(0xfd)](),this[_0x284dba(0xf4)]=this[_0x284dba(0xc1)](),this[_0x284dba(0xda)][_0x284dba(0xbe)]({'attributes':{'class':[this[_0x284dba(0xcb)]['if'](_0x284dba(0xc4),_0x284dba(0x100),_0x4f6c4c=>!_0x4f6c4c)]}}),this['on'](_0x284dba(0xe2),()=>this[_0x284dba(0xd0)]()),this['on'](_0x284dba(0xed),()=>this[_0x284dba(0xd0)]()),this['on'](_0x284dba(0xef),()=>this[_0x284dba(0xd0)]()),this[_0x284dba(0x10a)]({'tag':_0x284dba(0xf7),'attributes':{'class':['ck',_0x284dba(0xb9),_0x284dba(0xf2),_0x284dba(0x102)],'dir':_0x284dba(0xc7)},'children':[_0x169c08,{'tag':_0x284dba(0xf7),'attributes':{'class':[_0x284dba(0xd6)]},'children':[this[_0x284dba(0x113)],this[_0x284dba(0xda)],this[_0x284dba(0xbf)],this[_0x284dba(0xf4)]]}]});}[_0xc2bb9c(0xd0)](){const _0x22f591=_0xc2bb9c;this[_0x22f591(0xc5)]=!this[_0x22f591(0x116)]&&this[_0x22f591(0xea)],this[_0x22f591(0xe5)]=!this[_0x22f591(0x116)]&&!this[_0x22f591(0xea)]&&!this[_0x22f591(0xdc)],this[_0x22f591(0xc4)]=!this[_0x22f591(0xc5)]&&!!this[_0x22f591(0xdc)];}[_0xc2bb9c(0xc1)](){const _0x195c95=_0xc2bb9c,_0x2120e7=new _0x3e694d(this[_0x195c95(0xfa)],{'filteredView':this[_0x195c95(0xca)],'queryView':{'label':_0x5b950a(this[_0x195c95(0xfa)],_0x195c95(0xf9))},'infoView':{'text':{'notFound':{'primary':_0x440093=>_0x5b950a(this[_0x195c95(0xfa)],_0x195c95(0x10d),_0x440093),'secondary':_0x5b950a(this[_0x195c95(0xfa)],_0x195c95(0xe6))}}}}),_0x2969bb=this[_0x195c95(0xf6)]();return _0x2969bb[_0x195c95(0xbe)]({'attributes':{'class':[this[_0x195c95(0xcb)]['if'](_0x195c95(0xdc),_0x195c95(0x100),_0x15b69e=>!_0x15b69e)]}}),_0x2120e7['on'](_0x195c95(0x10f),()=>{const _0x5c6143=_0x195c95;_0x2120e7[_0x5c6143(0xf0)][_0x5c6143(0x108)](_0x2969bb,0x1);}),_0x2120e7[_0x195c95(0xbe)]({'attributes':{'class':[this[_0x195c95(0xcb)]['if'](_0x195c95(0xc5),_0x195c95(0x100),_0xf2ea43=>!_0xf2ea43)]}}),_0x2120e7;}[_0xc2bb9c(0x10c)](){const _0x1cf592=_0xc2bb9c,_0x1c133e=new _0x34203f(this[_0x1cf592(0xfa)],_0x46ca81[_0x1cf592(0xf8)]);return _0x1c133e[_0x1cf592(0xbe)]({'attributes':{'class':[this[_0x1cf592(0xcb)]['if'](_0x1cf592(0x116),_0x1cf592(0x100),_0x511c1c=>!_0x511c1c)]}}),_0x1c133e;}[_0xc2bb9c(0xf6)](){const _0x384481=_0xc2bb9c,_0x1be49f=new _0x1a2dc9(this[_0x384481(0xfa)]),_0x53950d=new _0x4d777c(this[_0x384481(0xfa)]);_0x53950d[_0x384481(0xbc)]({'withText':!0x1,'icon':_0x317864,'class':_0x384481(0x10b)}),_0x53950d[_0x384481(0xd4)](_0x384481(0x10e))['to'](this,_0x384481(0xea),_0x782bdd=>!!_0x782bdd),_0x53950d['on'](_0x384481(0xfe),()=>{const _0x17b0d7=_0x384481;this[_0x17b0d7(0xdc)]='';});const _0x487556=this[_0x384481(0xcb)];return _0x1be49f[_0x384481(0x10a)]({'tag':_0x384481(0xf7),'attributes':{'class':['ck',_0x384481(0xd9),_0x384481(0x106)]},'children':[{'tag':'p','children':[{'text':_0x487556['to'](_0x384481(0xdc))}]},_0x53950d]}),_0x1be49f;}[_0xc2bb9c(0xfd)](){const _0x1c4266=_0xc2bb9c,_0xbf4743=new _0x4d777c(this[_0x1c4266(0xfa)]);_0xbf4743[_0x1c4266(0xbc)]({'label':_0x5b950a(this[_0x1c4266(0xfa)],_0x1c4266(0xdb)),'withText':!0x0,'icon':_0x2cb9b8,'class':_0x1c4266(0xf1)}),_0xbf4743['on'](_0x1c4266(0xfe),()=>{const _0x5995ba=_0x1c4266;this[_0x5995ba(0xec)](_0x5995ba(0xc0));});const _0x1a3965=new _0x1a2dc9(this[_0x1c4266(0xfa)]);return _0x1a3965[_0x1c4266(0x10a)]({'tag':_0x1c4266(0xf7),'attributes':{'class':[_0x1c4266(0xff),this[_0x1c4266(0xcb)]['if'](_0x1c4266(0xe5),_0x1c4266(0x100),_0xab7f7=>!_0xab7f7)]},'children':[{'tag':'p','attributes':{'class':[_0x1c4266(0xe8)]},'children':[_0x5b950a(this[_0x1c4266(0xfa)],_0x1c4266(0x101))]},_0xbf4743]}),_0x1a3965;}[_0xc2bb9c(0x105)](_0x5f1325,_0x8a9373){const _0x23d187=_0xc2bb9c,_0x5e6393=[];for(const _0x200cb7 of _0x5f1325){const _0xd66c81=new _0x3f7f70(_0x8a9373,_0x200cb7);_0xd66c81[_0x23d187(0xcc)](..._0x5160f1)['to'](this),_0x5e6393[_0x23d187(0xe3)](_0xd66c81);}return _0x5e6393;}[_0xc2bb9c(0xee)](_0x371ccb){const _0x5056d9=_0xc2bb9c,_0x27d3d0=this[_0x5056d9(0xfa)]||'en',_0x3bfccc=[];for(const _0x4e6063 of _0x371ccb){const _0x1b7407=this[_0x5056d9(0x105)](_0x4e6063[_0x5056d9(0x109)],_0x27d3d0);_0x3bfccc[_0x5056d9(0xe3)](new _0x5ddd87(_0x27d3d0,{'title':_0x4e6063[_0x5056d9(0xbb)],'items':_0x1b7407}));}this[_0x5056d9(0xca)][_0x5056d9(0x114)]=_0x3bfccc,this[_0x5056d9(0xca)][_0x5056d9(0x109)][_0x5056d9(0xba)](),this[_0x5056d9(0xca)][_0x5056d9(0x109)][_0x5056d9(0xb8)](_0x3bfccc),this[_0x5056d9(0xea)]=_0x371ccb[_0x5056d9(0xd1)](_0x16fb2c=>_0x16fb2c[_0x5056d9(0x109)][_0x5056d9(0xd5)]>0x0),this[_0x5056d9(0xfc)]();}[_0xc2bb9c(0xe7)](_0x2c7d72){const _0x5ddf62=_0xc2bb9c;for(const _0x1d3a11 of this[_0x5ddf62(0xca)][_0x5ddf62(0x114)]){const _0x536aa8=_0x1d3a11[_0x5ddf62(0xf5)](_0x2c7d72);if(_0x536aa8){if(_0x1d3a11[_0x5ddf62(0xc2)](_0x536aa8),0x0===_0x1d3a11[_0x5ddf62(0xd3)][_0x5ddf62(0xd5)]){const _0x26e8d1=this[_0x5ddf62(0xca)][_0x5ddf62(0x114)][_0x5ddf62(0x117)](_0x1d3a11);-0x1!==_0x26e8d1&&(this[_0x5ddf62(0xca)][_0x5ddf62(0x114)][_0x5ddf62(0xd2)](_0x26e8d1,0x1),this[_0x5ddf62(0xca)][_0x5ddf62(0x109)][_0x5ddf62(0xdd)](_0x1d3a11));}this[_0x5ddf62(0xea)]=this[_0x5ddf62(0xca)][_0x5ddf62(0x114)][_0x5ddf62(0xd5)]>0x0,this[_0x5ddf62(0xfc)]();break;}}}[_0xc2bb9c(0xfb)](_0x3c8576,_0x3176db){const _0x4376c9=_0xc2bb9c;for(const _0x3b7750 of this[_0x4376c9(0xca)][_0x4376c9(0x114)]){const _0x43f1a6=_0x3b7750[_0x4376c9(0xf5)](_0x3c8576);if(_0x43f1a6){_0x43f1a6[_0x4376c9(0xe0)](_0x3176db);break;}}}[_0xc2bb9c(0xe4)](_0x1a85d2,_0x3dcc7e,_0x250727){const _0x19d565=_0xc2bb9c;for(const _0x5a77f0 of this[_0x19d565(0xca)][_0x19d565(0x114)]){const _0x177a27=_0x5a77f0[_0x19d565(0xf5)](_0x1a85d2);if(_0x177a27){_0x177a27[_0x19d565(0xd7)](_0x3dcc7e,_0x250727);break;}}}[_0xc2bb9c(0xfc)](){const _0x40d549=_0xc2bb9c;if(this[_0x40d549(0xea)]){const _0x35cb1f=this[_0x40d549(0xf4)][_0x40d549(0xe9)][_0x40d549(0xbd)]?.[_0x40d549(0xcf)]?.[_0x40d549(0x103)]||'';this[_0x40d549(0xf4)][_0x40d549(0xc8)](_0x35cb1f);}}}
|
|
23
|
+
const _0x3dcfba=_0x26c4;(function(_0x327317,_0x214ed8){const _0x28b654=_0x26c4,_0x442caa=_0x327317();while(!![]){try{const _0x18d6c3=parseInt(_0x28b654(0xe3))/0x1+parseInt(_0x28b654(0xe4))/0x2*(parseInt(_0x28b654(0xb3))/0x3)+parseInt(_0x28b654(0x98))/0x4+-parseInt(_0x28b654(0xe8))/0x5*(parseInt(_0x28b654(0xdb))/0x6)+parseInt(_0x28b654(0x96))/0x7+-parseInt(_0x28b654(0x94))/0x8+parseInt(_0x28b654(0x9f))/0x9*(-parseInt(_0x28b654(0xe2))/0xa);if(_0x18d6c3===_0x214ed8)break;else _0x442caa['push'](_0x442caa['shift']());}catch(_0x308e2a){_0x442caa['push'](_0x442caa['shift']());}}}(_0x5816,0xb1adc));function _0x26c4(_0x115fc3,_0x1bdc99){const _0x581608=_0x5816();return _0x26c4=function(_0x26c495,_0x8ffbc7){_0x26c495=_0x26c495-0x91;let _0x35bbc7=_0x581608[_0x26c495];return _0x35bbc7;},_0x26c4(_0x115fc3,_0x1bdc99);}import{View as _0x40e8ae,SearchTextView as _0x2e5d20,FormHeaderView as _0x292ba3,ButtonView as _0x1fd7d8}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x27dee9,IconCancel as _0x5df330,IconPlus as _0x40fdcb}from'ckeditor5/src/icons.js';function _0x5816(){const _0x1ba87d=['isMainErrorViewVisible','updateLoadingState','delegate','errorMessage','bindTemplate','mainErrorView','_createSkeletonView','9957PzwXnt','skeletonView','change:errorMessage','queryView','ck-ai-header\x20ck-ai-header_history','extendTemplate','div','ck-ai-chat-history','indexOf','isVisible','itemsViews','AI_CHAT_HISTORY_HEADING','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_updateViewVisibility','change:hasItems','aiHistory','isLoading','fieldView','_refreshSearch','some','updateHistoryItemsWithCategories','addMany','_createErrorView','ck-rounded-corners','removeItem','isMaximized','_createListItemViews','hasItems','removeHistoryItem','length','emptyView','updateItemTitle','isEmptyViewVisible','updateItemLoadingState','add','isSearchViewVisible','AI_CHAT_HISTORY_EMPTY_MESSAGE','sectionsView','fire','ck-reset_all','114XvolAu','openChat','AI_CHAT_LABEL_NEW_CHAT','clear','sections','change:isLoading','value','10lfmgDx','1394070nuukCA','494hHjEVj','resizeButton','searchView','children','312575LNHuOX','remove','updateTitle','setTemplate','bind','set','ltr','_createEmptyStateView','element','4587576OfbcZl','ck-ai-chat-history__content','1586634viEEVT','ck-ai-chat-history__empty-message','2997088tBzCUH','ck-ai-chat__start-conversation','execute','ck-ai-chat-history__empty','ck-hidden','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','push','6307137PKGkNU','locale','splice','ck-ai-notification_error__dismiss-button','render','search','getItem','items','AI_CHAT_HISTORY_SEARCH_LABEL','_createSearchView','ck-ai-notification','ck-ai-notification_error','title'];_0x5816=function(){return _0x1ba87d;};return _0x5816();}import{AIChatHistorySectionListView as _0x52a793}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x131e63}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x3a812a}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x11eda5}from'../aichathistoryui.js';import{AISkeletonView as _0x59fc2e,SKELETON_DEFINITIONS as _0x270f9d}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x5d3d4c}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x42367b}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x40e8ae{[_0x3dcfba(0xe6)];[_0x3dcfba(0xb1)];[_0x3dcfba(0xb4)];[_0x3dcfba(0xd1)];[_0x3dcfba(0xd8)];[_0x3dcfba(0xe5)];constructor(_0x177fd6,_0x51c22d){const _0x533dc4=_0x3dcfba;super(_0x177fd6),this[_0x533dc4(0xed)](_0x533dc4(0xce),!0x1),this[_0x533dc4(0xed)](_0x533dc4(0xc3),!0x0),this[_0x533dc4(0xed)](_0x533dc4(0xaf),''),this[_0x533dc4(0xed)](_0x533dc4(0xcc),!0x1),this[_0x533dc4(0xed)](_0x533dc4(0xd6),!0x1),this[_0x533dc4(0xed)](_0x533dc4(0xd3),!0x1),this[_0x533dc4(0xed)](_0x533dc4(0xac),!0x1);const _0x108eaa=new _0x292ba3(_0x177fd6,{'label':_0x42367b(_0x177fd6,_0x533dc4(0xbe)),'icon':_0x27dee9,'class':_0x533dc4(0xb7)});_0x51c22d&&(this[_0x533dc4(0xe5)]=_0x5d3d4c(_0x177fd6,this),_0x108eaa[_0x533dc4(0xe7)][_0x533dc4(0xd5)](this[_0x533dc4(0xe5)])),this[_0x533dc4(0xd8)]=new _0x52a793(_0x177fd6,[]),this[_0x533dc4(0xd8)][_0x533dc4(0xae)](..._0x11eda5)['to'](this),this[_0x533dc4(0xb1)]=this[_0x533dc4(0xc9)](),this[_0x533dc4(0xb4)]=this[_0x533dc4(0xb2)](),this[_0x533dc4(0xd1)]=this[_0x533dc4(0x92)](),this[_0x533dc4(0xe6)]=this[_0x533dc4(0xa8)](),this[_0x533dc4(0xb1)][_0x533dc4(0xb8)]({'attributes':{'class':[this[_0x533dc4(0xb0)]['if'](_0x533dc4(0xac),_0x533dc4(0x9c),_0x4b04e2=>!_0x4b04e2)]}}),this['on'](_0x533dc4(0xe0),()=>this[_0x533dc4(0xc0)]()),this['on'](_0x533dc4(0xc1),()=>this[_0x533dc4(0xc0)]()),this['on'](_0x533dc4(0xb5),()=>this[_0x533dc4(0xc0)]()),this[_0x533dc4(0xeb)]({'tag':_0x533dc4(0xb9),'attributes':{'class':['ck',_0x533dc4(0xda),_0x533dc4(0xba),_0x533dc4(0xca)],'dir':_0x533dc4(0x91)},'children':[_0x108eaa,{'tag':_0x533dc4(0xb9),'attributes':{'class':[_0x533dc4(0x95)]},'children':[this[_0x533dc4(0xb4)],this[_0x533dc4(0xb1)],this[_0x533dc4(0xd1)],this[_0x533dc4(0xe6)]]}]});}[_0x3dcfba(0xc0)](){const _0x51b72c=_0x3dcfba;this[_0x51b72c(0xd6)]=!this[_0x51b72c(0xc3)]&&this[_0x51b72c(0xce)],this[_0x51b72c(0xd3)]=!this[_0x51b72c(0xc3)]&&!this[_0x51b72c(0xce)]&&!this[_0x51b72c(0xaf)],this[_0x51b72c(0xac)]=!this[_0x51b72c(0xd6)]&&!!this[_0x51b72c(0xaf)];}[_0x3dcfba(0xa8)](){const _0x3b5b5f=_0x3dcfba,_0x4d20d2=new _0x2e5d20(this[_0x3b5b5f(0xa0)],{'filteredView':this[_0x3b5b5f(0xd8)],'queryView':{'label':_0x42367b(this[_0x3b5b5f(0xa0)],_0x3b5b5f(0xa7))},'infoView':{'text':{'notFound':{'primary':_0x3c11be=>_0x42367b(this[_0x3b5b5f(0xa0)],_0x3b5b5f(0xbf),_0x3c11be),'secondary':_0x42367b(this[_0x3b5b5f(0xa0)],_0x3b5b5f(0x9d))}}}}),_0x43b18d=this[_0x3b5b5f(0xc9)]();return _0x43b18d[_0x3b5b5f(0xb8)]({'attributes':{'class':[this[_0x3b5b5f(0xb0)]['if'](_0x3b5b5f(0xaf),_0x3b5b5f(0x9c),_0x20c52b=>!_0x20c52b)]}}),_0x4d20d2['on'](_0x3b5b5f(0xa3),()=>{const _0x4a1f15=_0x3b5b5f;_0x4d20d2[_0x4a1f15(0xe7)][_0x4a1f15(0xd5)](_0x43b18d,0x1);}),_0x4d20d2[_0x3b5b5f(0xb8)]({'attributes':{'class':[this[_0x3b5b5f(0xb0)]['if'](_0x3b5b5f(0xd6),_0x3b5b5f(0x9c),_0x2b48d4=>!_0x2b48d4)]}}),_0x4d20d2;}[_0x3dcfba(0xb2)](){const _0x4cb788=_0x3dcfba,_0x242223=new _0x59fc2e(this[_0x4cb788(0xa0)],_0x270f9d[_0x4cb788(0xc2)]);return _0x242223[_0x4cb788(0xb8)]({'attributes':{'class':[this[_0x4cb788(0xb0)]['if'](_0x4cb788(0xc3),_0x4cb788(0x9c),_0x167e56=>!_0x167e56)]}}),_0x242223;}[_0x3dcfba(0xc9)](){const _0xd5d675=_0x3dcfba,_0x10d383=new _0x40e8ae(this[_0xd5d675(0xa0)]),_0x3e7ff6=new _0x1fd7d8(this[_0xd5d675(0xa0)]);_0x3e7ff6[_0xd5d675(0xed)]({'withText':!0x1,'icon':_0x5df330,'class':_0xd5d675(0xa2)}),_0x3e7ff6[_0xd5d675(0xec)](_0xd5d675(0xbc))['to'](this,_0xd5d675(0xce),_0x5ea2e9=>!!_0x5ea2e9),_0x3e7ff6['on'](_0xd5d675(0x9a),()=>{const _0x3a5987=_0xd5d675;this[_0x3a5987(0xaf)]='';});const _0x214974=this[_0xd5d675(0xb0)];return _0x10d383[_0xd5d675(0xeb)]({'tag':_0xd5d675(0xb9),'attributes':{'class':['ck',_0xd5d675(0xa9),_0xd5d675(0xaa)]},'children':[{'tag':'p','children':[{'text':_0x214974['to'](_0xd5d675(0xaf))}]},_0x3e7ff6]}),_0x10d383;}[_0x3dcfba(0x92)](){const _0x185be7=_0x3dcfba,_0x42119d=new _0x1fd7d8(this[_0x185be7(0xa0)]);_0x42119d[_0x185be7(0xed)]({'label':_0x42367b(this[_0x185be7(0xa0)],_0x185be7(0xdd)),'withText':!0x0,'icon':_0x40fdcb,'class':_0x185be7(0x99)}),_0x42119d['on'](_0x185be7(0x9a),()=>{const _0x3f0178=_0x185be7;this[_0x3f0178(0xd9)](_0x3f0178(0xdc));});const _0x12b78a=new _0x40e8ae(this[_0x185be7(0xa0)]);return _0x12b78a[_0x185be7(0xeb)]({'tag':_0x185be7(0xb9),'attributes':{'class':[_0x185be7(0x9b),this[_0x185be7(0xb0)]['if'](_0x185be7(0xd3),_0x185be7(0x9c),_0x3f26f7=>!_0x3f26f7)]},'children':[{'tag':'p','attributes':{'class':[_0x185be7(0x97)]},'children':[_0x42367b(this[_0x185be7(0xa0)],_0x185be7(0xd7))]},_0x42119d]}),_0x12b78a;}[_0x3dcfba(0xcd)](_0x3446c8,_0x1f5026){const _0x9f00c5=_0x3dcfba,_0x53354f=[];for(const _0x38a280 of _0x3446c8){const _0x5c490f=new _0x3a812a(_0x1f5026,_0x38a280);_0x5c490f[_0x9f00c5(0xae)](..._0x11eda5)['to'](this),_0x53354f[_0x9f00c5(0x9e)](_0x5c490f);}return _0x53354f;}[_0x3dcfba(0xc7)](_0x147b8d){const _0x15ba26=_0x3dcfba,_0x3a6bb1=this[_0x15ba26(0xa0)]||'en',_0x949b0=[];for(const _0x7a8ec9 of _0x147b8d){const _0x1b84a6=this[_0x15ba26(0xcd)](_0x7a8ec9[_0x15ba26(0xa6)],_0x3a6bb1);_0x949b0[_0x15ba26(0x9e)](new _0x131e63(_0x3a6bb1,{'title':_0x7a8ec9[_0x15ba26(0xab)],'items':_0x1b84a6}));}this[_0x15ba26(0xd8)][_0x15ba26(0xdf)]=_0x949b0,this[_0x15ba26(0xd8)][_0x15ba26(0xa6)][_0x15ba26(0xde)](),this[_0x15ba26(0xd8)][_0x15ba26(0xa6)][_0x15ba26(0xc8)](_0x949b0),this[_0x15ba26(0xce)]=_0x147b8d[_0x15ba26(0xc6)](_0x42178c=>_0x42178c[_0x15ba26(0xa6)][_0x15ba26(0xd0)]>0x0),this[_0x15ba26(0xc5)]();}[_0x3dcfba(0xcf)](_0x7bb57d){const _0xa95e1a=_0x3dcfba;for(const _0x59fee2 of this[_0xa95e1a(0xd8)][_0xa95e1a(0xdf)]){const _0x12ad17=_0x59fee2[_0xa95e1a(0xa5)](_0x7bb57d);if(_0x12ad17){if(_0x59fee2[_0xa95e1a(0xcb)](_0x12ad17),0x0===_0x59fee2[_0xa95e1a(0xbd)][_0xa95e1a(0xd0)]){const _0x661218=this[_0xa95e1a(0xd8)][_0xa95e1a(0xdf)][_0xa95e1a(0xbb)](_0x59fee2);-0x1!==_0x661218&&(this[_0xa95e1a(0xd8)][_0xa95e1a(0xdf)][_0xa95e1a(0xa1)](_0x661218,0x1),this[_0xa95e1a(0xd8)][_0xa95e1a(0xa6)][_0xa95e1a(0xe9)](_0x59fee2));}this[_0xa95e1a(0xce)]=this[_0xa95e1a(0xd8)][_0xa95e1a(0xdf)][_0xa95e1a(0xd0)]>0x0,this[_0xa95e1a(0xc5)]();break;}}}[_0x3dcfba(0xd2)](_0x103562,_0x6e3b00){const _0x35008c=_0x3dcfba;for(const _0x1db018 of this[_0x35008c(0xd8)][_0x35008c(0xdf)]){const _0x119948=_0x1db018[_0x35008c(0xa5)](_0x103562);if(_0x119948){_0x119948[_0x35008c(0xea)](_0x6e3b00);break;}}}[_0x3dcfba(0xd4)](_0x52bf76,_0x469c41,_0x3bb071){const _0x3402ed=_0x3dcfba;for(const _0x15094d of this[_0x3402ed(0xd8)][_0x3402ed(0xdf)]){const _0x964585=_0x15094d[_0x3402ed(0xa5)](_0x52bf76);if(_0x964585){_0x964585[_0x3402ed(0xad)](_0x469c41,_0x3bb071);break;}}}[_0x3dcfba(0xc5)](){const _0x4e7a94=_0x3dcfba;if(this[_0x4e7a94(0xce)]){const _0x419742=this[_0x4e7a94(0xe6)][_0x4e7a94(0xb6)][_0x4e7a94(0xc4)]?.[_0x4e7a94(0x93)]?.[_0x4e7a94(0xe1)]||'';this[_0x4e7a94(0xe6)][_0x4e7a94(0xa4)](_0x419742);}}}
|
|
@@ -85,6 +85,10 @@ declare module '../aichat/aichat.js' {
|
|
|
85
85
|
* * {@link module:ai/aichatshortcuts/aichatshortcuts~AIChatShortcutTranslateDefinition Translate shortcuts}.
|
|
86
86
|
*/
|
|
87
87
|
export type AIChatShortcutDefinition = AIChatShortcutChatDefinition | AIChatShortcutReviewDefinition | AIChatShortcutTranslateDefinition;
|
|
88
|
+
/**
|
|
89
|
+
* Values for all available shortcut types.
|
|
90
|
+
*/
|
|
91
|
+
export type AIChatShortcutTypeValue = `${AIChatShortcutType}`;
|
|
88
92
|
/**
|
|
89
93
|
* The base definition for all shortcut types.
|
|
90
94
|
*/
|
|
@@ -100,7 +104,7 @@ export interface AIChatShortcutBaseDefinition {
|
|
|
100
104
|
/**
|
|
101
105
|
* The type of the shortcut.
|
|
102
106
|
*/
|
|
103
|
-
readonly type:
|
|
107
|
+
readonly type: AIChatShortcutTypeValue;
|
|
104
108
|
/**
|
|
105
109
|
* The icon of the shortcut in SVG string format.
|
|
106
110
|
*
|
|
@@ -154,7 +158,7 @@ export interface AIChatShortcutBaseDefinition {
|
|
|
154
158
|
* ```
|
|
155
159
|
*/
|
|
156
160
|
export interface AIChatShortcutChatDefinition extends AIChatShortcutBaseDefinition {
|
|
157
|
-
type:
|
|
161
|
+
type: 'chat';
|
|
158
162
|
/**
|
|
159
163
|
* The prompt to be sent to the AI Chat.
|
|
160
164
|
*/
|
|
@@ -253,7 +257,7 @@ export interface AIChatShortcutChatDefinition extends AIChatShortcutBaseDefiniti
|
|
|
253
257
|
* ```
|
|
254
258
|
*/
|
|
255
259
|
export interface AIChatShortcutReviewDefinition extends AIChatShortcutBaseDefinition {
|
|
256
|
-
type:
|
|
260
|
+
type: 'review';
|
|
257
261
|
/**
|
|
258
262
|
* The ID of the review check to be run.
|
|
259
263
|
*
|
|
@@ -312,7 +316,7 @@ export interface AIChatShortcutReviewDefinition extends AIChatShortcutBaseDefini
|
|
|
312
316
|
* ```
|
|
313
317
|
*/
|
|
314
318
|
export interface AIChatShortcutTranslateDefinition extends AIChatShortcutBaseDefinition {
|
|
315
|
-
type:
|
|
319
|
+
type: 'translate';
|
|
316
320
|
/**
|
|
317
321
|
* The language to be used for the translation.
|
|
318
322
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a513e=_0x4951;(function(_0xf5deb1,_0x54a54c){const _0x4bcf38=_0x4951,_0xe5ef1e=_0xf5deb1();while(!![]){try{const _0x30b81c=parseInt(_0x4bcf38(0x107))/0x1*(-parseInt(_0x4bcf38(0xc0))/0x2)+parseInt(_0x4bcf38(0x103))/0x3+-parseInt(_0x4bcf38(0xda))/0x4*(parseInt(_0x4bcf38(0xf2))/0x5)+-parseInt(_0x4bcf38(0xca))/0x6+-parseInt(_0x4bcf38(0xf3))/0x7+-parseInt(_0x4bcf38(0xb9))/0x8*(-parseInt(_0x4bcf38(0xc6))/0x9)+-parseInt(_0x4bcf38(0x109))/0xa*(-parseInt(_0x4bcf38(0xea))/0xb);if(_0x30b81c===_0x54a54c)break;else _0xe5ef1e['push'](_0xe5ef1e['shift']());}catch(_0x1dfd34){_0xe5ef1e['push'](_0xe5ef1e['shift']());}}}(_0x4c67,0x3a93f));import{AIChatUI as _0xe7f2e1}from'../aichat/aichatui.js';import{ContextPlugin as _0x4671d7}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x3bd31f}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x8d2ab8}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x2a513e(0xfd);export var AIChatShortcutType;!function(_0x3e5d03){const _0x330113=_0x2a513e;_0x3e5d03[_0x330113(0xc9)]=_0x330113(0xe0),_0x3e5d03[_0x330113(0xb4)]=_0x330113(0xf1),_0x3e5d03[_0x330113(0xc8)]=_0x330113(0xe5);}(AIChatShortcutType||(AIChatShortcutType={}));function _0x4951(_0x1e4ad9,_0x4c79af){const _0x4c67e3=_0x4c67();return _0x4951=function(_0x495142,_0x7d9261){_0x495142=_0x495142-0xaf;let _0x4c8a06=_0x4c67e3[_0x495142];return _0x4c8a06;},_0x4951(_0x1e4ad9,_0x4c79af);}export class AIChatShortcuts extends _0x4671d7{[_0x2a513e(0x10a)];[_0x2a513e(0xb7)];[_0x2a513e(0xb5)];static get[_0x2a513e(0xff)](){return[_0xe7f2e1];}static get[_0x2a513e(0x102)](){const _0x3eda54=_0x2a513e;return _0x3eda54(0xbb);}static get[_0x2a513e(0xd3)](){return!0x0;}static get[_0x2a513e(0xbd)](){return!0x0;}[_0x2a513e(0xe7)](){const _0x251a2d=_0x2a513e;this[_0x251a2d(0xb5)]=this[_0x251a2d(0xec)][_0x251a2d(0xbf)][_0x251a2d(0xfe)](_0xe7f2e1),this[_0x251a2d(0x10a)]=this[_0x251a2d(0xec)][_0x251a2d(0xc2)][_0x251a2d(0xfe)](_0x251a2d(0xee))??[];const _0xc8cd3f=this[_0x251a2d(0xec)][_0x251a2d(0xbf)][_0x251a2d(0xfe)](_0x251a2d(0xd1));this[_0x251a2d(0x10a)][_0x251a2d(0xc1)]&&(this[_0x251a2d(0xf5)](),this[_0x251a2d(0xb5)]['on'](_0x251a2d(0xf9),()=>{const _0x45cc53=_0x251a2d;_0xc8cd3f[_0x45cc53(0x108)][_0x45cc53(0xef)]||this[_0x45cc53(0xdd)]();}),this[_0x251a2d(0xb0)](_0xc8cd3f,_0x251a2d(0xcf),()=>{const _0x2cb856=_0x251a2d;this[_0x2cb856(0xe4)]();}));}[_0x2a513e(0xf5)](){const _0x1e439c=_0x2a513e,_0x3e0eb3=Object[_0x1e439c(0x101)](AIChatShortcutType);this[_0x1e439c(0x10a)][_0x1e439c(0xf0)](_0x4aa84d=>{const _0x1f9f90=_0x1e439c;let _0x39c1b3=!0x0;if(_0x4aa84d['id']&&_0x4aa84d[_0x1f9f90(0xba)]&&_0x3e0eb3[_0x1f9f90(0xaf)](_0x4aa84d[_0x1f9f90(0xc3)])?_0x1f9f90(0xe0)===_0x4aa84d[_0x1f9f90(0xc3)]&&(_0x39c1b3=_0x1f9f90(0x100)==typeof _0x4aa84d[_0x1f9f90(0xdb)]):_0x39c1b3=!0x1,!_0x39c1b3)throw new _0x8d2ab8(_0x1f9f90(0xf6),this[_0x1f9f90(0xec)],{'shortcut':_0x4aa84d});});}[_0x2a513e(0xdd)](){const _0x3696c2=_0x2a513e,_0x58fee5=this[_0x3696c2(0xec)][_0x3696c2(0xbf)][_0x3696c2(0xfe)](_0xe7f2e1);this[_0x3696c2(0xb7)]=new _0x3bd31f(this[_0x3696c2(0xec)][_0x3696c2(0xcc)],this[_0x3696c2(0x10a)]),this[_0x3696c2(0xb7)][_0x3696c2(0xb3)](),_0x58fee5[_0x3696c2(0x106)](this[_0x3696c2(0xb7)][_0x3696c2(0xf4)],Ut),this[_0x3696c2(0xb7)]['on'](_0x3696c2(0xbe),_0x5d40ce=>{const _0x39917b=_0x3696c2,_0x3045fa=_0x5d40ce[_0x39917b(0xe3)]['id'];this[_0x39917b(0xe8)](_0x3045fa);});}[_0x2a513e(0xe4)](){const _0x8ad437=_0x2a513e,_0xe6bdb6=this[_0x8ad437(0xec)][_0x8ad437(0xbf)][_0x8ad437(0xfe)](_0xe7f2e1);_0xe6bdb6[_0x8ad437(0xcd)](Ut)&&_0xe6bdb6[_0x8ad437(0xe6)](Ut),this[_0x8ad437(0xb7)]?.[_0x8ad437(0xc7)]();}[_0x2a513e(0xe8)](_0xe56b9){const _0x3aac28=_0x2a513e,_0x649b71=this[_0x3aac28(0x10a)][_0x3aac28(0xb1)](_0x5ad206=>_0x5ad206['id']===_0xe56b9),_0x352006=_0x649b71[_0x3aac28(0xc3)];_0x3aac28(0xe0)===_0x352006?this[_0x3aac28(0xde)](_0x649b71):_0x3aac28(0xf1)===_0x352006?_0x649b71[_0x3aac28(0xd6)]?this[_0x3aac28(0xb6)](_0x649b71):this[_0x3aac28(0xfb)](_0x3aac28(0xfc)):_0x3aac28(0xe5)===_0x352006&&(_0x649b71[_0x3aac28(0x10b)]?this[_0x3aac28(0xd4)](_0x649b71):this[_0x3aac28(0xfb)](_0x3aac28(0xe5)));}[_0x2a513e(0xfb)](_0x222b02){const _0x2bed36=_0x2a513e;if(!this[_0x2bed36(0xec)][_0x2bed36(0xbf)][_0x2bed36(0xed)](_0x2bed36(0xce)))throw new _0x8d2ab8(_0x2bed36(0xd9),this[_0x2bed36(0xec)],{'tabName':_0x222b02});this[_0x2bed36(0xec)][_0x2bed36(0xbf)][_0x2bed36(0xfe)](_0x2bed36(0xce))[_0x2bed36(0xdc)][_0x2bed36(0xe9)](_0x222b02);}async[_0x2a513e(0xde)]({prompt:_0x5d7423,draftMode:_0x2b5e71,useWebSearch:_0x1cdc24=!0x1,useReasoning:_0x1ccc84=!0x1,model:_0x5e51af}){const _0x43761e=_0x2a513e,_0x39806d=this[_0x43761e(0xec)][_0x43761e(0xbf)][_0x43761e(0xfe)](_0x43761e(0xc5)),_0x14cf2b=this[_0x43761e(0xec)][_0x43761e(0xbf)][_0x43761e(0xfe)](_0x43761e(0xd1)),_0x1afe03=_0x14cf2b[_0x43761e(0x108)];let _0x5a9baa;_0x5a9baa=_0x5e51af?await _0x1afe03[_0x43761e(0xe1)][_0x43761e(0xd2)](_0x5e51af):await _0x1afe03[_0x43761e(0xe1)][_0x43761e(0xfa)](),_0x5a9baa&&await _0x1afe03[_0x43761e(0xdf)](_0x5a9baa),_0x1afe03[_0x43761e(0xbc)](_0x1cdc24),_0x1afe03[_0x43761e(0xd7)](_0x1ccc84),_0x14cf2b[_0x43761e(0xd5)](),_0x2b5e71?(this[_0x43761e(0xb5)][_0x43761e(0x104)](_0x5d7423),this[_0x43761e(0xb5)][_0x43761e(0xc4)](!0x0)):_0x39806d[_0x43761e(0xd0)]({'message':_0x5d7423});}[_0x2a513e(0xb6)]({check:_0x3312d0,model:_0x8887b,prompt:_0x2f1861,params:_0xad05c}){const _0x44c601=_0x2a513e;if(!this[_0x44c601(0xec)][_0x44c601(0xbf)][_0x44c601(0xed)](_0x44c601(0xcb)))throw new _0x8d2ab8(_0x44c601(0xf7),this[_0x44c601(0xec)]);this[_0x44c601(0xfb)](_0x44c601(0xfc));const _0x55ba09={'id':_0x3312d0,'isCustom':_0x44c601(0xe2)===_0x3312d0};_0x8887b&&_0x2f1861&&(_0x55ba09[_0x44c601(0xb8)]={'model':_0x8887b,'prompt':_0x2f1861}),_0xad05c&&(_0x55ba09[_0x44c601(0x105)]=_0xad05c),this[_0x44c601(0xec)][_0x44c601(0xbf)][_0x44c601(0xfe)](_0x44c601(0xcb))[_0x44c601(0xf8)](_0x44c601(0xb2),_0x55ba09);}[_0x2a513e(0xd4)]({language:_0x361925}){const _0x152bc1=_0x2a513e;if(!this[_0x152bc1(0xec)][_0x152bc1(0xbf)][_0x152bc1(0xed)](_0x152bc1(0xeb)))throw new _0x8d2ab8(_0x152bc1(0xd8),this[_0x152bc1(0xec)]);this[_0x152bc1(0xfb)](_0x152bc1(0xe5)),this[_0x152bc1(0xec)][_0x152bc1(0xbf)][_0x152bc1(0xfe)](_0x152bc1(0xeb))[_0x152bc1(0xf8)](_0x152bc1(0xb2),{'id':_0x361925,'args':{'language':_0x361925}});}}function _0x4c67(){const _0x5c84f8=['addFeedItemCustomElement','1WyyJfV','activeConversation','510LCukwR','_shortcuts','language','includes','listenTo','find','runReviewCheck','render','REVIEW','_aiChatUI','_runReviewShortcut','_shortcutsView','args','320176FIIspP','label','AIChatShortcuts','setWebSearch','isPremiumPlugin','execute','plugins','156958xsLFnJ','length','config','type','focusPromptInput','AIChat','9WalfoR','destroy','TRANSLATE','CHAT','1305372OGAfNH','AIReviewModeUI','locale','hasFeedItem','AITabs','interactionStarted','sendMessage','AIChatController','getModel','isOfficialPlugin','_runTranslateShortcut','addCurrentDocumentToChatContext','check','setReasoning','ai-chat-shortcuts-translate-not-found','ai-chat-shortcuts-ai-tabs-not-found','4btAJZD','prompt','view','_injectShortcuts','_runChatShortcut','setModel','chat','chatModels','custom','source','_removeShortcuts','translate','removeFeedItem','init','_executeShortcut','activateTab','108427onMpRb','AITranslateUI','context','has','ai.chat.shortcuts','isFromHistory','forEach','review','539445vVWRfh','750253BbvNnE','element','_validateShortcuts','ai-chat-shortcuts-invalid-config','ai-chat-shortcuts-review-mode-not-found','fire','conversationCreated','getDefault','_switchTab','reviewMode','chat-shortcuts','get','requires','string','values','pluginName','624945QunVnJ','setPromptInputValue','params'];_0x4c67=function(){return _0x5c84f8;};return _0x4c67();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f3302=_0x4e09;function _0x4e09(_0x4818a1,_0x3cd845){const _0x49f947=_0x49f9();return _0x4e09=function(_0x4e09b3,_0x2fd0c8){_0x4e09b3=_0x4e09b3-0x1d6;let _0x39952f=_0x49f947[_0x4e09b3];return _0x39952f;},_0x4e09(_0x4818a1,_0x3cd845);}(function(_0x2d8821,_0x13c5fc){const _0x2ceca3=_0x4e09,_0x59f944=_0x2d8821();while(!![]){try{const _0x5152ac=-parseInt(_0x2ceca3(0x1db))/0x1+-parseInt(_0x2ceca3(0x1e9))/0x2+parseInt(_0x2ceca3(0x1e1))/0x3*(parseInt(_0x2ceca3(0x1e8))/0x4)+parseInt(_0x2ceca3(0x1e0))/0x5+-parseInt(_0x2ceca3(0x1d9))/0x6+parseInt(_0x2ceca3(0x1e2))/0x7*(parseInt(_0x2ceca3(0x1eb))/0x8)+parseInt(_0x2ceca3(0x1e5))/0x9*(-parseInt(_0x2ceca3(0x1e6))/0xa);if(_0x5152ac===_0x13c5fc)break;else _0x59f944['push'](_0x59f944['shift']());}catch(_0xfc138a){_0x59f944['push'](_0x59f944['shift']());}}}(_0x49f9,0x37184));import{ListItemView as _0x5b0dcc,ListView as _0x42d536,View as _0x5d1657}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x528900}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x5d1657{[_0x1f3302(0x1d6)];constructor(_0x25b8e2,_0x34d671){const _0x1168fc=_0x1f3302;super(_0x25b8e2);const _0x3e13d0=_0x34d671[_0x1168fc(0x1d8)](_0x41e269=>{const _0x5b2e83=_0x1168fc,_0x265164=new _0x5b0dcc(this[_0x5b2e83(0x1e4)]),_0x5efc2e=new _0x528900(this[_0x5b2e83(0x1e4)],_0x41e269);return _0x265164[_0x5b2e83(0x1df)][_0x5b2e83(0x1de)](_0x5efc2e),_0x5efc2e[_0x5b2e83(0x1ea)](_0x5b2e83(0x1da))['to'](this),_0x265164;});this[_0x1168fc(0x1d6)]=new _0x42d536(this[_0x1168fc(0x1e4)]),this[_0x1168fc(0x1d6)][_0x1168fc(0x1e3)][_0x1168fc(0x1e7)](_0x3e13d0),this[_0x1168fc(0x1dc)]({'tag':_0x1168fc(0x1dd),'attributes':{'class':['ck',_0x1168fc(0x1d7)]},'children':[this[_0x1168fc(0x1d6)]]});}}function _0x49f9(){const _0x46f09b=['delegate','10776mDUsOn','listView','ck-ai-chat-shortcuts','map','2121744SllxMz','execute','155483pEUuTA','setTemplate','div','add','children','2194090vOyHkt','3DkMRZq','2177OLIjTG','items','locale','9RtXjZw','919390xJNOPr','addMany','1010024wGCSOa','567054UTwsNd'];_0x49f9=function(){return _0x46f09b;};return _0x49f9();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x1fb97a,_0x46f66b){const _0xf9d534=_0x19f4,_0xc0fd27=_0x1fb97a();while(!![]){try{const _0xade0f3=parseInt(_0xf9d534(0x1f8))/0x1*(-parseInt(_0xf9d534(0x1f7))/0x2)+-parseInt(_0xf9d534(0x1ed))/0x3*(parseInt(_0xf9d534(0x1fe))/0x4)+-parseInt(_0xf9d534(0x1fd))/0x5+-parseInt(_0xf9d534(0x1fc))/0x6+-parseInt(_0xf9d534(0x1fa))/0x7*(-parseInt(_0xf9d534(0x1f2))/0x8)+-parseInt(_0xf9d534(0x1f4))/0x9+-parseInt(_0xf9d534(0x1f5))/0xa*(-parseInt(_0xf9d534(0x1f9))/0xb);if(_0xade0f3===_0x46f66b)break;else _0xc0fd27['push'](_0xc0fd27['shift']());}catch(_0x1d6d75){_0xc0fd27['push'](_0xc0fd27['shift']());}}}(_0x168e,0xd48d4));function _0x168e(){const _0x592def=['19195830BbfavS','review','6urhNKO','169899QnAquk','22BviTQW','2625cluhoq','extendTemplate','2872062EmLDcr','5694990oRSyeo','2466932rPXJSN','label','3Htcdtf','icon','translate','set','chat','6920naoKOD','ck-ai-chat-shortcut','4939416SLXNOX'];_0x168e=function(){return _0x592def;};return _0x168e();}function _0x19f4(_0x5b6f90,_0x2a26eb){const _0x168ee6=_0x168e();return _0x19f4=function(_0x19f49b,_0x3f7715){_0x19f49b=_0x19f49b-0x1ec;let _0x55168b=_0x168ee6[_0x19f49b];return _0x55168b;},_0x19f4(_0x5b6f90,_0x2a26eb);}import{ButtonView as _0x2e5123}from'ckeditor5/src/ui.js';import{IconAIChat as _0x2a3903,IconAIReview as _0x62adb4,IconAITranslate as _0x6d8665}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x2e5123{['id'];constructor(_0x3287a7,_0xe37b28){const _0x522b00=_0x19f4;super(_0x3287a7);const {id:_0x162082,type:_0x13e984,icon:_0xc0ba58}=_0xe37b28;this['id']=_0x162082,this[_0x522b00(0x1f0)]({'label':_0xe37b28[_0x522b00(0x1ec)],'withText':!0x0,'class':_0x522b00(0x1f3)}),this[_0x522b00(0x1fb)]({'attributes':{'data-cke-ai-shortcut-id':_0xe37b28['id']}}),_0xc0ba58?this[_0x522b00(0x1ee)]=_0xc0ba58:_0x522b00(0x1f1)===_0x13e984?this[_0x522b00(0x1ee)]=_0x2a3903:_0x522b00(0x1f6)===_0x13e984?this[_0x522b00(0x1ee)]=_0x62adb4:_0x522b00(0x1ef)===_0x13e984&&(this[_0x522b00(0x1ee)]=_0x6d8665);}}
|