@ckeditor/ckeditor5-ai 47.6.0 → 47.6.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/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.d.ts +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x18c346=_0x1c09;(function(_0x34f6a9,_0x4e70c9){const _0x21410f=_0x1c09,_0x2f0554=_0x34f6a9();while(!![]){try{const _0x590f05=parseInt(_0x21410f(0x1c7))/0x1*(parseInt(_0x21410f(0x1e1))/0x2)+-parseInt(_0x21410f(0x1c0))/0x3+parseInt(_0x21410f(0x1e5))/0x4*(-parseInt(_0x21410f(0x1f3))/0x5)+-parseInt(_0x21410f(0x212))/0x6*(-parseInt(_0x21410f(0x1f4))/0x7)+-parseInt(_0x21410f(0x20b))/0x8*(-parseInt(_0x21410f(0x1c8))/0x9)+-parseInt(_0x21410f(0x208))/0xa+parseInt(_0x21410f(0x1cd))/0xb;if(_0x590f05===_0x4e70c9)break;else _0x2f0554['push'](_0x2f0554['shift']());}catch(_0x4c3747){_0x2f0554['push'](_0x2f0554['shift']());}}}(_0x5356,0xa0668));import{ContextPlugin as _0x235366}from'ckeditor5/src/core.js';function _0x5356(){const _0x23e55e=['updateItemLoadingState','history','change:activeConversation','push','get','_handleTogglePin','removeConversation','AI_CHAT_HISTORY_CATEGORY_LATER','2YmaFAl','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','createdAt','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','12gqaxSm','unpin','_clearItemLoading','remove','_getCategorizedItems','pluginName','toLocaleDateString','resizeTabs','_updateHistoryItemsUI','requires','getItem','setConversationPinned','rename','_handleEditTitle','1311020xFVxvq','600054alOFlM','loadItems','AI_CHAT_HISTORY_ERROR_GENERIC','locale','itemRemoved','itemId','getMonth','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','openChat','itemUpdated','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','updates','_aiChatHistoryUi','AI_CHAT_HISTORY_UNPIN_ACTION','isPremiumPlugin','chat','context','AIChatHistoryController','removeHistoryItem','_generateErrorMessage','3161260ltmrFg','init','items','144152HcNNlZ','_showConversationHistory','error','updateItemPinned','selectConversation','itemsLoaded','pinned','72VNPTeG','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','setIsMaximized','activeConversation','plugins','setDate','getGroupId','_setIsMaximized','operation','resize','handleRemovedConversation','_handleHistoryErrorUI','activateTab','map','editConversationTitle','AI_CHAT_UNTITLED_CONVERSATION','showError','AI_CHAT_HISTORY_CATEGORY_TODAY','length','setLoadingSkeleton','AI_CHAT_HISTORY_CATEGORY_PINNED','691056qDHHNV','_aiConnector','_handleSelectConversation','_aiChatController','removeItem','isOfficialPlugin','AI_CHAT_HISTORY_PIN_ACTION','372630XhOeco','153dzUDXD','_setItemLoading','view','title','getFullYear','3107203fDHJsn','getDate','updateItemTitle','pin','listenTo','getItems','activateTab:history','updateItems','resizedTabs','loadConversation','_handleRemove','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM'];_0x5356=function(){return _0x23e55e;};return _0x5356();}import{AIConnector as _0x1e7b1e}from'../aicore/aiconnector.js';import{AIChatController as _0x3656fc}from'../aichat/aichatcontroller.js';import{AITabs as _0xec624}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x4d5cd5}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x592a4f}from'./model/aichathistoryconversations.js';import{getTranslation as _0x32515e}from'../aicore/utils/common-translations.js';function _0x1c09(_0x10d5c5,_0x2fce83){const _0x5356de=_0x5356();return _0x1c09=function(_0x1c092a,_0x2d2654){_0x1c092a=_0x1c092a-0x1b7;let _0x57f8e0=_0x5356de[_0x1c092a];return _0x57f8e0;},_0x1c09(_0x10d5c5,_0x2fce83);}export class AIChatHistoryController extends _0x235366{[_0x18c346(0x1c1)];[_0x18c346(0x200)];[_0x18c346(0x1c3)];static get[_0x18c346(0x1ee)](){return[_0x1e7b1e,_0x3656fc,_0x4d5cd5,_0xec624];}static get[_0x18c346(0x1ea)](){const _0x2254cf=_0x18c346;return _0x2254cf(0x205);}static get[_0x18c346(0x1c5)](){return!0x0;}static get[_0x18c346(0x202)](){return!0x0;}[_0x18c346(0x209)](){const _0x43147c=_0x18c346;this[_0x43147c(0x1c1)]=this[_0x43147c(0x204)][_0x43147c(0x216)][_0x43147c(0x1dd)](_0x1e7b1e),this[_0x43147c(0x200)]=this[_0x43147c(0x204)][_0x43147c(0x216)][_0x43147c(0x1dd)](_0x4d5cd5),this[_0x43147c(0x1c3)]=this[_0x43147c(0x204)][_0x43147c(0x216)][_0x43147c(0x1dd)](_0x3656fc);const _0x33f4c4=this[_0x43147c(0x204)][_0x43147c(0x216)][_0x43147c(0x1dd)](_0xec624);try{const _0x213c6b=this[_0x43147c(0x1c3)][_0x43147c(0x218)]();this[_0x43147c(0x1da)]=new _0x592a4f({'connector':this[_0x43147c(0x1c1)],'group':_0x213c6b}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x1df),(_0x2a86d9,_0x20ef7d)=>{const _0x22116a=_0x43147c;this[_0x22116a(0x1c9)](_0x20ef7d['id'],_0x22116a(0x1e8)),this[_0x22116a(0x1d7)](_0x20ef7d['id']);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x1b9),(_0xfc4837,_0x504e5a)=>{const _0x24f759=_0x43147c;this[_0x24f759(0x1c9)](_0x504e5a['id'],_0x24f759(0x1f1)),this[_0x24f759(0x1f2)](_0x504e5a['id'],_0x504e5a[_0x24f759(0x1cb)]);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x1da)],_0x43147c(0x1fd),(_0xd096fa,_0x2a03d9)=>{const _0x55c9f2=_0x43147c;void 0x0!==_0x2a03d9[_0x55c9f2(0x1ff)][_0x55c9f2(0x1cb)]&&this[_0x55c9f2(0x200)][_0x55c9f2(0x1cf)](_0x2a03d9[_0x55c9f2(0x1f9)],_0x2a03d9[_0x55c9f2(0x1ff)][_0x55c9f2(0x1cb)]),void 0x0!==_0x2a03d9[_0x55c9f2(0x1ff)][_0x55c9f2(0x211)]&&this[_0x55c9f2(0x1ed)](),this[_0x55c9f2(0x1e7)](_0x2a03d9[_0x55c9f2(0x1f9)]);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x1da)],_0x43147c(0x1f8),(_0x28fc24,_0x5edcea)=>{const _0x2e26d9=_0x43147c;this[_0x2e26d9(0x1c3)][_0x2e26d9(0x21c)](_0x5edcea[_0x2e26d9(0x1f9)]),this[_0x2e26d9(0x200)][_0x2e26d9(0x206)](_0x5edcea[_0x2e26d9(0x1f9)]),this[_0x2e26d9(0x1e7)](_0x5edcea[_0x2e26d9(0x1f9)]);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x1da)],_0x43147c(0x210),()=>{const _0x25cc06=_0x43147c;this[_0x25cc06(0x1ed)]();}),this[_0x43147c(0x1d1)](this[_0x43147c(0x1da)],_0x43147c(0x20d),(_0x69bbf1,_0x19c0c3)=>{const _0x17b28c=_0x43147c;this[_0x17b28c(0x21d)](_0x19c0c3[_0x17b28c(0x20d)],_0x19c0c3[_0x17b28c(0x21a)],_0x19c0c3[_0x17b28c(0x1f9)]);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x20f),(_0x531b48,_0x539768)=>{const _0x4e6704=_0x43147c;this[_0x4e6704(0x1c2)](_0x539768['id']);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x1f0),(_0x3ffc65,_0x547107)=>{const _0x411a74=_0x43147c,_0x495ac0=_0x547107[_0x411a74(0x211)]?_0x411a74(0x1d0):_0x411a74(0x1e6);this[_0x411a74(0x1c9)](_0x547107['id'],_0x495ac0),this[_0x411a74(0x1de)](_0x547107['id'],_0x547107[_0x411a74(0x211)]);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x1fc),()=>{const _0x11c652=_0x43147c;_0x33f4c4[_0x11c652(0x1ca)][_0x11c652(0x1b7)](_0x11c652(0x203));}),this[_0x43147c(0x1d1)](this[_0x43147c(0x1c3)],_0x43147c(0x1db),()=>{const _0x4b1b61=_0x43147c;this[_0x4b1b61(0x1ed)]();}),_0x33f4c4[_0x43147c(0x1ca)]['on'](_0x43147c(0x1d3),()=>{const _0x10cb33=_0x43147c;this[_0x10cb33(0x20c)]();}),this[_0x43147c(0x1d1)](_0x33f4c4,_0x43147c(0x1d5),(_0x31370e,_0x1ae298)=>{const _0x5ecfd5=_0x43147c;this[_0x5ecfd5(0x219)](_0x1ae298);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x1ec),()=>{const _0x39d16f=_0x43147c;_0x33f4c4[_0x39d16f(0x21b)]();});}catch(_0x1ced35){this[_0x43147c(0x21d)](_0x1ced35,_0x43147c(0x209));}}async[_0x18c346(0x1f2)](_0x285e57,_0x281ff6){const _0x2ff382=_0x18c346;await this[_0x2ff382(0x1da)][_0x2ff382(0x1cf)](_0x285e57,_0x281ff6);}async[_0x18c346(0x1de)](_0x3680e0,_0x5a427b){const _0x1fe6ab=_0x18c346;await this[_0x1fe6ab(0x1da)][_0x1fe6ab(0x20e)](_0x3680e0,_0x5a427b);}async[_0x18c346(0x1d7)](_0x8de623){const _0x34240b=_0x18c346;await this[_0x34240b(0x1da)][_0x34240b(0x1c4)](_0x8de623);}async[_0x18c346(0x1c2)](_0x2fc4c9){const _0x1ff312=_0x18c346;await this[_0x1ff312(0x1c3)][_0x1ff312(0x1d6)](_0x2fc4c9);}async[_0x18c346(0x20c)](){const _0x44366f=_0x18c346;this[_0x44366f(0x200)][_0x44366f(0x1bb)](''),this[_0x44366f(0x200)][_0x44366f(0x1be)](!0x0),await this[_0x44366f(0x1da)][_0x44366f(0x209)](),this[_0x44366f(0x200)][_0x44366f(0x1be)](!0x1);}[_0x18c346(0x1ed)](){const _0x57f826=_0x18c346,_0x58ac64=this[_0x57f826(0x1c3)][_0x57f826(0x215)]?.['id'],_0xcb5254=this[_0x57f826(0x1e9)]()[_0x57f826(0x1b8)](_0x81999c=>({'title':_0x81999c[_0x57f826(0x1cb)],'items':_0x81999c[_0x57f826(0x20a)][_0x57f826(0x1b8)](_0x5b8534=>({'id':_0x5b8534['id'],'title':_0x5b8534[_0x57f826(0x1cb)]||_0x32515e(this[_0x57f826(0x204)][_0x57f826(0x1f7)],_0x57f826(0x1ba)),'createdAt':new Date(_0x5b8534[_0x57f826(0x1e3)])[_0x57f826(0x1eb)](),'active':_0x5b8534['id']===_0x58ac64,'pinned':_0x5b8534[_0x57f826(0x211)]}))}));this[_0x57f826(0x200)][_0x57f826(0x1d4)](_0xcb5254);}[_0x18c346(0x1c9)](_0x497dfd,_0x2c4bb9){const _0x404900=_0x18c346;this[_0x404900(0x200)][_0x404900(0x1d9)](_0x497dfd,_0x2c4bb9,!0x0);}[_0x18c346(0x1e7)](_0xa0f48f){const _0x99e02c=_0x18c346;this[_0x99e02c(0x200)][_0x99e02c(0x1d9)](_0xa0f48f,null,!0x1);}[_0x18c346(0x21d)](_0x32cf56,_0x5b0355,_0x52fde9){const _0x77e84f=_0x18c346,_0x5efecb=this[_0x77e84f(0x207)](_0x5b0355,_0x52fde9);this[_0x77e84f(0x200)][_0x77e84f(0x1bb)](_0x5efecb),_0x52fde9&&this[_0x77e84f(0x1e7)](_0x52fde9),this[_0x77e84f(0x200)][_0x77e84f(0x1be)](!0x1);}[_0x18c346(0x207)](_0x50ebdb,_0x8567f0){const _0x387cd4=_0x18c346,_0x39dd71=_0x8567f0?this[_0x387cd4(0x1da)][_0x387cd4(0x1ef)](_0x8567f0):null,_0x28e15a=_0x39dd71?.[_0x387cd4(0x1cb)]||_0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x1ba));switch(_0x50ebdb){case _0x387cd4(0x1cf):return _0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x1fb),_0x28e15a);case _0x387cd4(0x20e):{const _0x566b4d=_0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x39dd71?.[_0x387cd4(0x211)]?_0x387cd4(0x201):_0x387cd4(0x1c6));return _0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x1e4),[_0x566b4d,_0x28e15a]);}case _0x387cd4(0x1c4):return _0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x1d8),_0x28e15a);case _0x387cd4(0x209):case _0x387cd4(0x1f5):return _0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x213));default:return _0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x1f6));}}[_0x18c346(0x1e9)](){const _0xe26a5e=_0x18c346,_0x3daa26=new Date(),_0x58e5db=new Date(_0x3daa26[_0xe26a5e(0x1cc)](),_0x3daa26[_0xe26a5e(0x1fa)](),_0x3daa26[_0xe26a5e(0x1ce)]()),_0x9d0baa=new Date(_0x58e5db);_0x9d0baa[_0xe26a5e(0x217)](_0x9d0baa[_0xe26a5e(0x1ce)]()-0x1);const _0x4edbd9=new Date(_0x58e5db);_0x4edbd9[_0xe26a5e(0x217)](_0x4edbd9[_0xe26a5e(0x1ce)]()-0xe);const _0x4a2280=this[_0xe26a5e(0x1da)][_0xe26a5e(0x1d2)]({'pinned':!0x0}),_0x3b33fe=this[_0xe26a5e(0x1da)][_0xe26a5e(0x1d2)]({'from':_0x58e5db,'to':_0x58e5db}),_0x45226e=this[_0xe26a5e(0x1da)][_0xe26a5e(0x1d2)]({'from':_0x9d0baa,'to':_0x9d0baa}),_0x31b6ef=this[_0xe26a5e(0x1da)][_0xe26a5e(0x1d2)]({'from':_0x4edbd9,'to':_0x9d0baa}),_0x553c76=this[_0xe26a5e(0x1da)][_0xe26a5e(0x1d2)]({'to':_0x4edbd9}),_0x477dfa=[];return _0x4a2280[_0xe26a5e(0x1bd)]>0x0&&_0x477dfa[_0xe26a5e(0x1dc)]({'title':_0x32515e(this[_0xe26a5e(0x204)][_0xe26a5e(0x1f7)],_0xe26a5e(0x1bf)),'items':_0x4a2280}),_0x3b33fe[_0xe26a5e(0x1bd)]>0x0&&_0x477dfa[_0xe26a5e(0x1dc)]({'title':_0x32515e(this[_0xe26a5e(0x204)][_0xe26a5e(0x1f7)],_0xe26a5e(0x1bc)),'items':_0x3b33fe}),_0x45226e[_0xe26a5e(0x1bd)]>0x0&&_0x477dfa[_0xe26a5e(0x1dc)]({'title':_0x32515e(this[_0xe26a5e(0x204)][_0xe26a5e(0x1f7)],_0xe26a5e(0x1e2)),'items':_0x45226e}),_0x31b6ef[_0xe26a5e(0x1bd)]>0x0&&_0x477dfa[_0xe26a5e(0x1dc)]({'title':_0x32515e(this[_0xe26a5e(0x204)][_0xe26a5e(0x1f7)],_0xe26a5e(0x1fe)),'items':_0x31b6ef}),_0x553c76[_0xe26a5e(0x1bd)]>0x0&&_0x477dfa[_0xe26a5e(0x1dc)]({'title':_0x32515e(this[_0xe26a5e(0x204)][_0xe26a5e(0x1f7)],_0xe26a5e(0x1e0)),'items':_0x553c76}),_0x477dfa;}[_0x18c346(0x219)](_0x21992d){const _0x34be62=_0x18c346;this[_0x34be62(0x200)][_0x34be62(0x214)](_0x21992d);}}
|
|
23
|
+
const _0x59d484=_0x18dc;function _0x18dc(_0x2167b8,_0x575163){const _0x42a3c2=_0x42a3();return _0x18dc=function(_0x18dcee,_0x2adf63){_0x18dcee=_0x18dcee-0x1bc;let _0x4f1cba=_0x42a3c2[_0x18dcee];return _0x4f1cba;},_0x18dc(_0x2167b8,_0x575163);}(function(_0x5e00c1,_0x18890d){const _0xb6ad2f=_0x18dc,_0x566a38=_0x5e00c1();while(!![]){try{const _0xdb1fbe=-parseInt(_0xb6ad2f(0x1e1))/0x1+-parseInt(_0xb6ad2f(0x210))/0x2+parseInt(_0xb6ad2f(0x1f1))/0x3*(-parseInt(_0xb6ad2f(0x20b))/0x4)+parseInt(_0xb6ad2f(0x221))/0x5*(-parseInt(_0xb6ad2f(0x1f0))/0x6)+-parseInt(_0xb6ad2f(0x20f))/0x7+parseInt(_0xb6ad2f(0x1d1))/0x8*(-parseInt(_0xb6ad2f(0x1f7))/0x9)+parseInt(_0xb6ad2f(0x21d))/0xa;if(_0xdb1fbe===_0x18890d)break;else _0x566a38['push'](_0x566a38['shift']());}catch(_0x4eb7fa){_0x566a38['push'](_0x566a38['shift']());}}}(_0x42a3,0x8f67e));import{ContextPlugin as _0x1bc1e7}from'ckeditor5/src/core.js';import{AIConnector as _0x1048ac}from'../aicore/aiconnector.js';import{AIChatController as _0x166aec}from'../aichat/aichatcontroller.js';import{AITabs as _0xdb44f5}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x2293c9}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x594bad}from'./model/aichathistoryconversations.js';function _0x42a3(){const _0x5e531b=['getItems','view','getMonth','setConversationPinned','_showConversationHistory','map','context','AI_CHAT_HISTORY_ERROR_GENERIC','pluginName','82002lZXQCh','resizeTabs','itemsLoaded','_updateHistoryItemsUI','requires','title','toLocaleDateString','init','_clearItemLoading','createdAt','_aiChatHistoryUi','setDate','getGroupId','updates','isOfficialPlugin','163320CEBqCM','9147aQVUbl','_handleSelectConversation','error','updateItemPinned','pin','plugins','7872237IDLyxZ','handleRemovedConversation','rename','AI_CHAT_HISTORY_CATEGORY_TODAY','remove','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','items','updateItemLoadingState','resizedTabs','AI_CHAT_HISTORY_CATEGORY_LATER','itemId','_aiChatController','get','_handleTogglePin','setIsMaximized','chat','loadItems','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','removeItem','1372IoPpSp','itemUpdated','openChat','AI_CHAT_UNTITLED_CONVERSATION','4308892qcGZZy','121598SaNNMF','editConversationTitle','isPremiumPlugin','_getCategorizedItems','unpin','_setItemLoading','length','_aiConnector','updateItemTitle','_setIsMaximized','change:activeConversation','AI_CHAT_HISTORY_UNPIN_ACTION','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','34840070LjZbgb','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','removeHistoryItem','getItem','40ZwvWnH','resize','AIChatHistoryController','showError','updateItems','itemRemoved','_handleEditTitle','listenTo','activateTab:history','_generateErrorMessage','AI_CHAT_HISTORY_CATEGORY_PINNED','history','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','locale','push','getFullYear','loadConversation','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','_handleHistoryErrorUI','activeConversation','_handleRemove','setLoadingSkeleton','8MOLjlN','activateTab','operation','getDate','selectConversation','pinned','removeConversation'];_0x42a3=function(){return _0x5e531b;};return _0x42a3();}import{getTranslation as _0x57ca89}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x1bc1e7{[_0x59d484(0x217)];[_0x59d484(0x1eb)];[_0x59d484(0x202)];static get[_0x59d484(0x1e5)](){return[_0x1048ac,_0x166aec,_0x2293c9,_0xdb44f5];}static get[_0x59d484(0x1e0)](){const _0x571ed0=_0x59d484;return _0x571ed0(0x1bd);}static get[_0x59d484(0x1ef)](){return!0x0;}static get[_0x59d484(0x212)](){return!0x0;}[_0x59d484(0x1e8)](){const _0x1df575=_0x59d484;this[_0x1df575(0x217)]=this[_0x1df575(0x1de)][_0x1df575(0x1f6)][_0x1df575(0x203)](_0x1048ac),this[_0x1df575(0x1eb)]=this[_0x1df575(0x1de)][_0x1df575(0x1f6)][_0x1df575(0x203)](_0x2293c9),this[_0x1df575(0x202)]=this[_0x1df575(0x1de)][_0x1df575(0x1f6)][_0x1df575(0x203)](_0x166aec);const _0xd2f520=this[_0x1df575(0x1de)][_0x1df575(0x1f6)][_0x1df575(0x203)](_0xdb44f5);try{const _0x55e65e=this[_0x1df575(0x202)][_0x1df575(0x1ed)]();this[_0x1df575(0x1c6)]=new _0x594bad({'connector':this[_0x1df575(0x217)],'group':_0x55e65e}),this[_0x1df575(0x1c2)](this[_0x1df575(0x1eb)],_0x1df575(0x1d7),(_0x3e603,_0x4d5959)=>{const _0x3f4c56=_0x1df575;this[_0x3f4c56(0x215)](_0x4d5959['id'],_0x3f4c56(0x1fb)),this[_0x3f4c56(0x1cf)](_0x4d5959['id']);}),this[_0x1df575(0x1c2)](this[_0x1df575(0x1eb)],_0x1df575(0x211),(_0x31ad7a,_0x1dc9df)=>{const _0x182f7c=_0x1df575;this[_0x182f7c(0x215)](_0x1dc9df['id'],_0x182f7c(0x1f9)),this[_0x182f7c(0x1c1)](_0x1dc9df['id'],_0x1dc9df[_0x182f7c(0x1e6)]);}),this[_0x1df575(0x1c2)](this[_0x1df575(0x1c6)],_0x1df575(0x20c),(_0xcad387,_0x2ab22c)=>{const _0x52b7b6=_0x1df575;void 0x0!==_0x2ab22c[_0x52b7b6(0x1ee)][_0x52b7b6(0x1e6)]&&this[_0x52b7b6(0x1eb)][_0x52b7b6(0x218)](_0x2ab22c[_0x52b7b6(0x201)],_0x2ab22c[_0x52b7b6(0x1ee)][_0x52b7b6(0x1e6)]),void 0x0!==_0x2ab22c[_0x52b7b6(0x1ee)][_0x52b7b6(0x1d6)]&&this[_0x52b7b6(0x1e4)](),this[_0x52b7b6(0x1e9)](_0x2ab22c[_0x52b7b6(0x201)]);}),this[_0x1df575(0x1c2)](this[_0x1df575(0x1c6)],_0x1df575(0x1c0),(_0x147c8d,_0x3dee25)=>{const _0x59733c=_0x1df575;this[_0x59733c(0x202)][_0x59733c(0x1f8)](_0x3dee25[_0x59733c(0x201)]),this[_0x59733c(0x1eb)][_0x59733c(0x21f)](_0x3dee25[_0x59733c(0x201)]),this[_0x59733c(0x1e9)](_0x3dee25[_0x59733c(0x201)]);}),this[_0x1df575(0x1c2)](this[_0x1df575(0x1c6)],_0x1df575(0x1e3),()=>{const _0x5ee6db=_0x1df575;this[_0x5ee6db(0x1e4)]();}),this[_0x1df575(0x1c2)](this[_0x1df575(0x1c6)],_0x1df575(0x1f3),(_0x4bfe01,_0x5edbe7)=>{const _0x5de0dd=_0x1df575;this[_0x5de0dd(0x1cd)](_0x5edbe7[_0x5de0dd(0x1f3)],_0x5edbe7[_0x5de0dd(0x1d3)],_0x5edbe7[_0x5de0dd(0x201)]);}),this[_0x1df575(0x1c2)](this[_0x1df575(0x1eb)],_0x1df575(0x1d5),(_0xa16422,_0x5a402d)=>{const _0x59c0b8=_0x1df575;this[_0x59c0b8(0x1f2)](_0x5a402d['id']);}),this[_0x1df575(0x1c2)](this[_0x1df575(0x1eb)],_0x1df575(0x1db),(_0x3c6add,_0x3b25fb)=>{const _0x18fcd3=_0x1df575,_0x25578f=_0x3b25fb[_0x18fcd3(0x1d6)]?_0x18fcd3(0x1f5):_0x18fcd3(0x214);this[_0x18fcd3(0x215)](_0x3b25fb['id'],_0x25578f),this[_0x18fcd3(0x204)](_0x3b25fb['id'],_0x3b25fb[_0x18fcd3(0x1d6)]);}),this[_0x1df575(0x1c2)](this[_0x1df575(0x1eb)],_0x1df575(0x20d),()=>{const _0x2de23d=_0x1df575;_0xd2f520[_0x2de23d(0x1d9)][_0x2de23d(0x1d2)](_0x2de23d(0x206));}),this[_0x1df575(0x1c2)](this[_0x1df575(0x202)],_0x1df575(0x21a),()=>{const _0x4794b0=_0x1df575;this[_0x4794b0(0x1e4)]();}),_0xd2f520[_0x1df575(0x1d9)]['on'](_0x1df575(0x1c3),()=>{const _0x4a5081=_0x1df575;this[_0x4a5081(0x1dc)]();}),this[_0x1df575(0x1c2)](_0xd2f520,_0x1df575(0x1ff),(_0xa050ee,_0x18c476)=>{const _0x9719c7=_0x1df575;this[_0x9719c7(0x219)](_0x18c476);}),this[_0x1df575(0x1c2)](this[_0x1df575(0x1eb)],_0x1df575(0x1e2),()=>{const _0x2e3c31=_0x1df575;_0xd2f520[_0x2e3c31(0x1bc)]();});}catch(_0x568d96){this[_0x1df575(0x1cd)](_0x568d96,_0x1df575(0x1e8));}}async[_0x59d484(0x1c1)](_0x3de3a1,_0x934901){const _0x535277=_0x59d484;await this[_0x535277(0x1c6)][_0x535277(0x218)](_0x3de3a1,_0x934901);}async[_0x59d484(0x204)](_0x47d7de,_0x56ac20){const _0x1c1ff9=_0x59d484;await this[_0x1c1ff9(0x1c6)][_0x1c1ff9(0x1f4)](_0x47d7de,_0x56ac20);}async[_0x59d484(0x1cf)](_0x4611ad){const _0x6f719d=_0x59d484;await this[_0x6f719d(0x1c6)][_0x6f719d(0x20a)](_0x4611ad);}async[_0x59d484(0x1f2)](_0x32ff0b){const _0x4e6af7=_0x59d484;await this[_0x4e6af7(0x202)][_0x4e6af7(0x1cb)](_0x32ff0b);}async[_0x59d484(0x1dc)](){const _0x92140b=_0x59d484;this[_0x92140b(0x1eb)][_0x92140b(0x1be)](''),this[_0x92140b(0x1eb)][_0x92140b(0x1d0)](!0x0),await this[_0x92140b(0x1c6)][_0x92140b(0x1e8)](),this[_0x92140b(0x1eb)][_0x92140b(0x1d0)](!0x1);}[_0x59d484(0x1e4)](){const _0x3cb25d=_0x59d484,_0x5637ac=this[_0x3cb25d(0x202)][_0x3cb25d(0x1ce)]?.['id'],_0x53a097=this[_0x3cb25d(0x213)]()[_0x3cb25d(0x1dd)](_0x2244dd=>({'title':_0x2244dd[_0x3cb25d(0x1e6)],'items':_0x2244dd[_0x3cb25d(0x1fd)][_0x3cb25d(0x1dd)](_0x47de95=>({'id':_0x47de95['id'],'title':_0x47de95[_0x3cb25d(0x1e6)]||_0x57ca89(this[_0x3cb25d(0x1de)][_0x3cb25d(0x1c8)],_0x3cb25d(0x20e)),'createdAt':new Date(_0x47de95[_0x3cb25d(0x1ea)])[_0x3cb25d(0x1e7)](),'active':_0x47de95['id']===_0x5637ac,'pinned':_0x47de95[_0x3cb25d(0x1d6)]}))}));this[_0x3cb25d(0x1eb)][_0x3cb25d(0x1bf)](_0x53a097);}[_0x59d484(0x215)](_0x1c330b,_0x36fc59){const _0x59c76e=_0x59d484;this[_0x59c76e(0x1eb)][_0x59c76e(0x1fe)](_0x1c330b,_0x36fc59,!0x0);}[_0x59d484(0x1e9)](_0xa40868){const _0x25d293=_0x59d484;this[_0x25d293(0x1eb)][_0x25d293(0x1fe)](_0xa40868,null,!0x1);}[_0x59d484(0x1cd)](_0x9c36a7,_0x947845,_0x4710a9){const _0x26de85=_0x59d484,_0x161a27=this[_0x26de85(0x1c4)](_0x947845,_0x4710a9);this[_0x26de85(0x1eb)][_0x26de85(0x1be)](_0x161a27),_0x4710a9&&this[_0x26de85(0x1e9)](_0x4710a9),this[_0x26de85(0x1eb)][_0x26de85(0x1d0)](!0x1);}[_0x59d484(0x1c4)](_0x25b03d,_0x256e01){const _0x2dc90d=_0x59d484,_0x1bbfb4=_0x256e01?this[_0x2dc90d(0x1c6)][_0x2dc90d(0x220)](_0x256e01):null,_0x11de63=_0x1bbfb4?.[_0x2dc90d(0x1e6)]||_0x57ca89(this[_0x2dc90d(0x1de)][_0x2dc90d(0x1c8)],_0x2dc90d(0x20e));switch(_0x25b03d){case _0x2dc90d(0x218):return _0x57ca89(this[_0x2dc90d(0x1de)][_0x2dc90d(0x1c8)],_0x2dc90d(0x21c),_0x11de63);case _0x2dc90d(0x1f4):{const _0x4338b9=_0x57ca89(this[_0x2dc90d(0x1de)][_0x2dc90d(0x1c8)],_0x1bbfb4?.[_0x2dc90d(0x1d6)]?_0x2dc90d(0x21b):_0x2dc90d(0x208));return _0x57ca89(this[_0x2dc90d(0x1de)][_0x2dc90d(0x1c8)],_0x2dc90d(0x1c7),[_0x4338b9,_0x11de63]);}case _0x2dc90d(0x20a):return _0x57ca89(this[_0x2dc90d(0x1de)][_0x2dc90d(0x1c8)],_0x2dc90d(0x21e),_0x11de63);case _0x2dc90d(0x1e8):case _0x2dc90d(0x207):return _0x57ca89(this[_0x2dc90d(0x1de)][_0x2dc90d(0x1c8)],_0x2dc90d(0x209));default:return _0x57ca89(this[_0x2dc90d(0x1de)][_0x2dc90d(0x1c8)],_0x2dc90d(0x1df));}}[_0x59d484(0x213)](){const _0x196331=_0x59d484,_0x24cf38=new Date(),_0x5f42a=new Date(_0x24cf38[_0x196331(0x1ca)](),_0x24cf38[_0x196331(0x1da)](),_0x24cf38[_0x196331(0x1d4)]()),_0x3027c5=new Date(_0x5f42a);_0x3027c5[_0x196331(0x1ec)](_0x3027c5[_0x196331(0x1d4)]()-0x1);const _0x14801b=new Date(_0x5f42a);_0x14801b[_0x196331(0x1ec)](_0x14801b[_0x196331(0x1d4)]()-0xe);const _0x10400f=this[_0x196331(0x1c6)][_0x196331(0x1d8)]({'pinned':!0x0}),_0x3e504b=this[_0x196331(0x1c6)][_0x196331(0x1d8)]({'from':_0x5f42a,'to':_0x5f42a}),_0x58238e=this[_0x196331(0x1c6)][_0x196331(0x1d8)]({'from':_0x3027c5,'to':_0x3027c5}),_0x66efa1=this[_0x196331(0x1c6)][_0x196331(0x1d8)]({'from':_0x14801b,'to':_0x3027c5}),_0x4217d7=this[_0x196331(0x1c6)][_0x196331(0x1d8)]({'to':_0x14801b}),_0xedeb2b=[];return _0x10400f[_0x196331(0x216)]>0x0&&_0xedeb2b[_0x196331(0x1c9)]({'title':_0x57ca89(this[_0x196331(0x1de)][_0x196331(0x1c8)],_0x196331(0x1c5)),'items':_0x10400f}),_0x3e504b[_0x196331(0x216)]>0x0&&_0xedeb2b[_0x196331(0x1c9)]({'title':_0x57ca89(this[_0x196331(0x1de)][_0x196331(0x1c8)],_0x196331(0x1fa)),'items':_0x3e504b}),_0x58238e[_0x196331(0x216)]>0x0&&_0xedeb2b[_0x196331(0x1c9)]({'title':_0x57ca89(this[_0x196331(0x1de)][_0x196331(0x1c8)],_0x196331(0x1fc)),'items':_0x58238e}),_0x66efa1[_0x196331(0x216)]>0x0&&_0xedeb2b[_0x196331(0x1c9)]({'title':_0x57ca89(this[_0x196331(0x1de)][_0x196331(0x1c8)],_0x196331(0x1cc)),'items':_0x66efa1}),_0x4217d7[_0x196331(0x216)]>0x0&&_0xedeb2b[_0x196331(0x1c9)]({'title':_0x57ca89(this[_0x196331(0x1de)][_0x196331(0x1c8)],_0x196331(0x200)),'items':_0x4217d7}),_0xedeb2b;}[_0x59d484(0x219)](_0x237b7e){const _0x26da20=_0x59d484;this[_0x26da20(0x1eb)][_0x26da20(0x205)](_0x237b7e);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2efeb6=_0x4472;(function(_0x574da2,_0x427234){const _0x396b4a=_0x4472,_0x24a099=_0x574da2();while(!![]){try{const _0x5a85d0=-parseInt(_0x396b4a(0x196))/0x1+parseInt(_0x396b4a(0x18f))/0x2+-parseInt(_0x396b4a(0x18d))/0x3*(parseInt(_0x396b4a(0x18b))/0x4)+-parseInt(_0x396b4a(0x16f))/0x5+-parseInt(_0x396b4a(0x184))/0x6*(-parseInt(_0x396b4a(0x17e))/0x7)+parseInt(_0x396b4a(0x16e))/0x8*(parseInt(_0x396b4a(0x199))/0x9)+parseInt(_0x396b4a(0x188))/0xa;if(_0x5a85d0===_0x427234)break;else _0x24a099['push'](_0x24a099['shift']());}catch(_0x57d303){_0x24a099['push'](_0x24a099['shift']());}}}(_0x38e6,0x491dc));import{ContextPlugin as _0x5e3d2a}from'ckeditor5/src/core.js';import{AITabs as _0x171404}from'../aitabs/aitabs.js';import{IconAIHistory as _0xdaebb0}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x22647f}from'./ui/aichathistoryview.js';import{getTranslation as _0x2d84d2}from'../aicore/utils/common-translations.js';function _0x4472(_0x93ebc7,_0x2095eb){const _0x38e6c8=_0x38e6();return _0x4472=function(_0x44726b,_0x383941){_0x44726b=_0x44726b-0x16c;let _0x44e633=_0x38e6c8[_0x44726b];return _0x44e633;},_0x4472(_0x93ebc7,_0x2095eb);}import'../../theme/aichat/aichathistory.css';function _0x38e6(){const _0x446c19=['isPremiumPlugin','removeConversation','AI_CHAT_HISTORY_HEADING','57204pUwPwC','isOfficialPlugin','addTab','isLoading','9445180hoYfdz','history','showResizeButton','8900vGYarx','context','594AxNqRJ','isMaximized','278286GtVJFv','editConversationTitle','setConversationPinned','updateItemLoadingState','AIChatHistoryUI','updateHistoryItemsWithCategories','view','440947xpMGRt','showError','hideError','2838627OWNhFG','locale','delegate','8BIJUdc','1614785ZXSWjf','plugins','showConversationHistory','_historyView','pluginName','updateItems','AITabs','setLoadingSkeleton','selectConversation','updateItemTitle','openChat','setIsMaximized','get','requires','resizeTabs','77JsyZit','removeHistoryItem','errorMessage'];_0x38e6=function(){return _0x446c19;};return _0x38e6();}export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x2efeb6(0x171),_0x2efeb6(0x182),_0x2efeb6(0x190),_0x2efeb6(0x191),_0x2efeb6(0x177),_0x2efeb6(0x179),_0x2efeb6(0x17d)];export class AIChatHistoryUI extends _0x5e3d2a{static get[_0x2efeb6(0x17c)](){return[_0x171404];}[_0x2efeb6(0x172)];static get[_0x2efeb6(0x173)](){const _0x24d643=_0x2efeb6;return _0x24d643(0x193);}static get[_0x2efeb6(0x185)](){return!0x0;}static get[_0x2efeb6(0x181)](){return!0x0;}constructor(_0x25857f){const _0x510017=_0x2efeb6;super(_0x25857f);const _0x4d6861=this[_0x510017(0x18c)][_0x510017(0x170)][_0x510017(0x17b)](_0x510017(0x175));this[_0x510017(0x172)]=new _0x22647f(this[_0x510017(0x18c)][_0x510017(0x16c)],_0x4d6861[_0x510017(0x18a)]),this[_0x510017(0x172)][_0x510017(0x16d)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x4d6861[_0x510017(0x195)][_0x510017(0x186)]({'id':_0x510017(0x189),'buttonLabel':_0x2d84d2(this[_0x510017(0x18c)][_0x510017(0x16c)],_0x510017(0x183)),'buttonIcon':_0xdaebb0,'order':0x0,'content':this[_0x510017(0x172)]});}[_0x2efeb6(0x17f)](_0x4d5ea5){const _0x14ea88=_0x2efeb6;this[_0x14ea88(0x172)][_0x14ea88(0x17f)](_0x4d5ea5);}[_0x2efeb6(0x174)](_0x3d915b){const _0x2dad75=_0x2efeb6;this[_0x2dad75(0x172)][_0x2dad75(0x194)](_0x3d915b);}[_0x2efeb6(0x178)](_0x2ed524,_0x2129a9){const _0x46ebdc=_0x2efeb6;this[_0x46ebdc(0x172)][_0x46ebdc(0x178)](_0x2ed524,_0x2129a9);}[_0x2efeb6(0x192)](_0x30dd3d,_0x2943a6,_0x52f396){const _0x5bc90b=_0x2efeb6;this[_0x5bc90b(0x172)][_0x5bc90b(0x192)](_0x30dd3d,_0x2943a6,_0x52f396);}[_0x2efeb6(0x176)](_0x20846d){const _0x559fb0=_0x2efeb6;this[_0x559fb0(0x172)][_0x559fb0(0x187)]=_0x20846d;}[_0x2efeb6(0x197)](_0x4eabb4){const _0x40eca3=_0x2efeb6;this[_0x40eca3(0x172)][_0x40eca3(0x180)]=_0x4eabb4;}[_0x2efeb6(0x198)](){const _0x1d4de2=_0x2efeb6;this[_0x1d4de2(0x172)][_0x1d4de2(0x180)]='';}[_0x2efeb6(0x17a)](_0x433e7d){const _0x472cc2=_0x2efeb6;this[_0x472cc2(0x172)][_0x472cc2(0x18e)]=_0x433e7d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x34f977=_0x4820;(function(_0x18b50c,_0x53566e){const _0x4dbb95=_0x4820,_0x118bf2=_0x18b50c();while(!![]){try{const _0x3b8e2e=parseInt(_0x4dbb95(0xa7))/0x1*(-parseInt(_0x4dbb95(0x90))/0x2)+parseInt(_0x4dbb95(0xa9))/0x3+parseInt(_0x4dbb95(0xa1))/0x4+parseInt(_0x4dbb95(0xa6))/0x5+parseInt(_0x4dbb95(0xab))/0x6*(parseInt(_0x4dbb95(0xaf))/0x7)+parseInt(_0x4dbb95(0xa2))/0x8*(-parseInt(_0x4dbb95(0xb7))/0x9)+-parseInt(_0x4dbb95(0x98))/0xa;if(_0x3b8e2e===_0x53566e)break;else _0x118bf2['push'](_0x118bf2['shift']());}catch(_0x27e9d8){_0x118bf2['push'](_0x118bf2['shift']());}}}(_0x2013,0x51e9d));function _0x4820(_0x56be1f,_0x26ecba){const _0x201355=_0x2013();return _0x4820=function(_0x482036,_0x38cb9a){_0x482036=_0x482036-0x8e;let _0x283f2c=_0x201355[_0x482036];return _0x283f2c;},_0x4820(_0x56be1f,_0x26ecba);}import{EmitterMixin as _0x3bb325}from'ckeditor5/src/utils.js';function _0x2013(){const _0x40441a=['118hDQHNA','items','loadItems','updateItemTitle','getItem','group','filter','updateConversation','4040220luiLkP','find','itemRemoved','getItems','getDate','from','init','removeItem','execute','321624xzHSQI','5326376iuqKUt','itemsLoaded','updatePinned','fire','1562705ZElYlg','615jnFBGU','addItem','1351983nqwTTd','findIndex','12246CslIZF','getFullYear','pinned','getResult','2051vlRhSh','updateTitle','connector','splice','getTime','itemUpdated','fetchConversations','error','9wBgIev','getMonth','getConversations','map','push','createdAt','deleteConversation','updateItemPinned'];_0x2013=function(){return _0x40441a;};return _0x2013();}import{AIChatHistoryItem as _0x495ffc}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x3bb325(){[_0x34f977(0x91)]=[];[_0x34f977(0xb1)];[_0x34f977(0x95)];constructor({connector:_0x179a80,group:_0x4f0206}){const _0x362464=_0x34f977;super(),this[_0x362464(0xb1)]=_0x179a80,this[_0x362464(0x95)]=_0x4f0206;}async[_0x34f977(0x9e)](){const _0x424f8a=_0x34f977;try{const _0x62fcef=this[_0x424f8a(0xb1)][_0x424f8a(0xb5)](this[_0x424f8a(0x95)]),_0x51b1e4=await _0x62fcef[_0x424f8a(0xb9)]();this[_0x424f8a(0x92)](_0x51b1e4);}catch(_0x1d697d){this[_0x424f8a(0xa5)](_0x424f8a(0xb6),{'error':_0x1d697d,'operation':_0x424f8a(0x9e)});}}[_0x34f977(0xa8)](_0x4b9c66){const _0x5b7f68=_0x34f977;this[_0x5b7f68(0x91)][_0x5b7f68(0xbb)](_0x4b9c66);}async[_0x34f977(0x9f)](_0x1e1ec0){const _0x289ed4=_0x34f977,_0x3066d7=this[_0x289ed4(0x91)][_0x289ed4(0xaa)](_0x8e797a=>_0x8e797a['id']===_0x1e1ec0);if(-0x1===_0x3066d7)return!0x1;try{return await this[_0x289ed4(0xb1)][_0x289ed4(0x8e)](_0x1e1ec0)[_0x289ed4(0xa0)](),this[_0x289ed4(0x91)][_0x289ed4(0xb2)](_0x3066d7,0x1),this[_0x289ed4(0xa5)](_0x289ed4(0x9a),{'itemId':_0x1e1ec0}),!0x0;}catch(_0x5263f4){return this[_0x289ed4(0xa5)](_0x289ed4(0xb6),{'error':_0x5263f4,'operation':_0x289ed4(0x9f),'itemId':_0x1e1ec0}),!0x1;}}[_0x34f977(0x94)](_0x4feaac){const _0x40e9b3=_0x34f977;return this[_0x40e9b3(0x91)][_0x40e9b3(0x99)](_0x259fff=>_0x259fff['id']===_0x4feaac);}async[_0x34f977(0x93)](_0x39f155,_0xff4065){const _0x350b35=_0x34f977,_0x306278=this[_0x350b35(0x94)](_0x39f155);if(!_0x306278)return!0x1;try{return await this[_0x350b35(0xb1)][_0x350b35(0x97)](_0x39f155,{'title':_0xff4065})[_0x350b35(0xae)](),_0x306278[_0x350b35(0xb0)](_0xff4065),this[_0x350b35(0xa5)](_0x350b35(0xb4),{'itemId':_0x39f155,'updates':{'title':_0xff4065}}),!0x0;}catch(_0xd26910){return this[_0x350b35(0xa5)](_0x350b35(0xb6),{'error':_0xd26910,'operation':_0x350b35(0x93),'itemId':_0x39f155}),!0x1;}}async[_0x34f977(0x8f)](_0x59208e,_0x1dd025){const _0xd1c23d=_0x34f977,_0x223a14=this[_0xd1c23d(0x94)](_0x59208e);if(!_0x223a14)return!0x1;try{return await this[_0xd1c23d(0xb1)][_0xd1c23d(0x97)](_0x59208e,{'pinned':_0x1dd025})[_0xd1c23d(0xae)](),_0x223a14[_0xd1c23d(0xa4)](_0x1dd025),this[_0xd1c23d(0xa5)](_0xd1c23d(0xb4),{'itemId':_0x59208e,'updates':{'pinned':_0x1dd025}}),!0x0;}catch(_0x9ee51a){return this[_0xd1c23d(0xa5)](_0xd1c23d(0xb6),{'error':_0x9ee51a,'operation':_0xd1c23d(0x8f),'itemId':_0x59208e}),!0x1;}}[_0x34f977(0x92)](_0x118ce2){const _0x34c852=_0x34f977;try{this[_0x34c852(0x91)]=[],_0x118ce2[_0x34c852(0xba)](_0x213711=>{const _0x3b2d1a=_0x34c852;this[_0x3b2d1a(0xa8)](new _0x495ffc(_0x213711));}),this[_0x34c852(0xa5)](_0x34c852(0xa3),{'items':[...this[_0x34c852(0x91)]]});}catch(_0x19b953){this[_0x34c852(0xa5)](_0x34c852(0xb6),{'error':_0x19b953,'operation':_0x34c852(0x92)});}}[_0x34f977(0x9b)](_0x445d38={}){const _0x8b6bde=_0x34f977,_0x4f12f7=void 0x0!==_0x445d38[_0x8b6bde(0xad)]&&_0x445d38[_0x8b6bde(0xad)],_0xb1f5=_0x445d38[_0x8b6bde(0x9d)]?new Date(_0x445d38[_0x8b6bde(0x9d)][_0x8b6bde(0xac)](),_0x445d38[_0x8b6bde(0x9d)][_0x8b6bde(0xb8)](),_0x445d38[_0x8b6bde(0x9d)][_0x8b6bde(0x9c)]()):null,_0x1dc59b=_0x445d38['to']?new Date(_0x445d38['to'][_0x8b6bde(0xac)](),_0x445d38['to'][_0x8b6bde(0xb8)](),_0x445d38['to'][_0x8b6bde(0x9c)]()):null;return this[_0x8b6bde(0x91)][_0x8b6bde(0x96)](_0x4c25e5=>{const _0x17f8cf=_0x8b6bde;if(_0x4c25e5[_0x17f8cf(0xad)]!==_0x4f12f7)return!0x1;if(_0x1dc59b){const _0x108f58=new Date(_0x4c25e5[_0x17f8cf(0xbc)][_0x17f8cf(0xac)](),_0x4c25e5[_0x17f8cf(0xbc)][_0x17f8cf(0xb8)](),_0x4c25e5[_0x17f8cf(0xbc)][_0x17f8cf(0x9c)]());return _0xb1f5?_0xb1f5[_0x17f8cf(0xb3)]()===_0x1dc59b[_0x17f8cf(0xb3)]()?_0x108f58[_0x17f8cf(0xb3)]()===_0xb1f5[_0x17f8cf(0xb3)]():_0x108f58<_0x1dc59b&&_0x108f58>=_0xb1f5:_0x108f58<_0x1dc59b;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x52796e=_0x5687;(function(_0xd83c29,_0x1bb638){var _0x1c3787=_0x5687,_0x1d3efe=_0xd83c29();while(!![]){try{var _0x57d4d4=-parseInt(_0x1c3787(0x1ea))/0x1+parseInt(_0x1c3787(0x1e9))/0x2+-parseInt(_0x1c3787(0x1e5))/0x3*(parseInt(_0x1c3787(0x1e3))/0x4)+-parseInt(_0x1c3787(0x1ee))/0x5*(-parseInt(_0x1c3787(0x1e8))/0x6)+-parseInt(_0x1c3787(0x1eb))/0x7+-parseInt(_0x1c3787(0x1e2))/0x8+parseInt(_0x1c3787(0x1e0))/0x9;if(_0x57d4d4===_0x1bb638)break;else _0x1d3efe['push'](_0x1d3efe['shift']());}catch(_0x11f676){_0x1d3efe['push'](_0x1d3efe['shift']());}}}(_0x55fa,0x6218f));import{ObservableMixin as _0x5c2dfa}from'ckeditor5/src/utils.js';import{escape as _0x9dd7ac}from'es-toolkit/compat';function _0x5687(_0x56734c,_0x546e4a){var _0x55fa1e=_0x55fa();return _0x5687=function(_0x56871e,_0x551126){_0x56871e=_0x56871e-0x1e0;var _0x7493fb=_0x55fa1e[_0x56871e];return _0x7493fb;},_0x5687(_0x56734c,_0x546e4a);}function _0x55fa(){var _0xb03f22=['105232TntRnz','3043956QcrNMD','pinned','3huaYMY','set','updatedAt','829146QPcaLg','1320220qRSaAx','363146eUkfAF','4278407RZrGwA','createdAt','updateTitle','15dyjoff','updatePinned','9680526JYUGcP','title'];_0x55fa=function(){return _0xb03f22;};return _0x55fa();}export class AIChatHistoryItem extends _0x5c2dfa(){['id'];[_0x52796e(0x1ec)];constructor({id:_0x27a43c,title:_0x967e80,createdAt:_0x4be550,updatedAt:_0x27687c,pinned:_0x45792a}){var _0x4a5c9d=_0x52796e;super(),this['id']=_0x27a43c,this[_0x4a5c9d(0x1ec)]=new Date(_0x4be550),this[_0x4a5c9d(0x1e6)](_0x4a5c9d(0x1e1),_0x967e80),this[_0x4a5c9d(0x1e6)](_0x4a5c9d(0x1e7),_0x27687c?new Date(_0x27687c):null),this[_0x4a5c9d(0x1e6)](_0x4a5c9d(0x1e4),_0x45792a||!0x1);}[_0x52796e(0x1ed)](_0x29433f){var _0x371314=_0x52796e;this[_0x371314(0x1e6)](_0x371314(0x1e1),_0x9dd7ac(_0x29433f)),this[_0x371314(0x1e7)]=new Date();}[_0x52796e(0x1ef)](_0x55ab0f){var _0x1fa85c=_0x52796e;this[_0x1fa85c(0x1e6)](_0x1fa85c(0x1e4),_0x55ab0f),this[_0x1fa85c(0x1e7)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
function _0x5e33(_0x5f1b6c,_0x33423f){const _0x42705f=_0x4270();return _0x5e33=function(_0x5e33dd,_0x4035d0){_0x5e33dd=_0x5e33dd-0xf0;let _0x1dc4a4=_0x42705f[_0x5e33dd];return _0x1dc4a4;},_0x5e33(_0x5f1b6c,_0x33423f);}const _0x1cd5b2=_0x5e33;(function(_0x18c96d,_0x52e422){const _0x2f6283=_0x5e33,_0x2c4341=_0x18c96d();while(!![]){try{const _0x3981b9=parseInt(_0x2f6283(0x150))/0x1+-parseInt(_0x2f6283(0x102))/0x2+-parseInt(_0x2f6283(0x152))/0x3+-parseInt(_0x2f6283(0xfc))/0x4*(parseInt(_0x2f6283(0x14b))/0x5)+-parseInt(_0x2f6283(0x13f))/0x6*(-parseInt(_0x2f6283(0x119))/0x7)+parseInt(_0x2f6283(0x126))/0x8*(parseInt(_0x2f6283(0x114))/0x9)+-parseInt(_0x2f6283(0x12d))/0xa*(-parseInt(_0x2f6283(0x117))/0xb);if(_0x3981b9===_0x52e422)break;else _0x2c4341['push'](_0x2c4341['shift']());}catch(_0x571ac0){_0x2c4341['push'](_0x2c4341['shift']());}}}(_0x4270,0x736d1));function _0x4270(){const _0x2bfc52=['_commitEditInputValue','AI_CHAT_HISTORY_LOADING_REMOVING','click','panelView','text','children','_createEditInputView','16532mLncAG','ck-ai-chat-history__item--edit','AI_CHAT_HISTORY_PIN_BUTTON','set','element','AI_CHAT_HISTORY_LOADING_RENAMING','1281236YWzYmN','match','div','createCollection','ck-ai-loader__text','ck-ai-chat-history__item','ck-ai-chat-history__item-main-content','value','add','fire','ck-ai-loader','clear','_createPinButtonView','LOADING_LABELS','AI_CHAT_HISTORY_LOADING_UNPINNING','then','ck-ai-chat-history__item-actions','_createCancelEditButtonView','9SpEaWx','isEdit','ck-ai-chat-history__item-title','9834NcpuuX','mainContent','189ysoAAo','change:isEdit','_titleView','label','ck-ai-chat-history__item-date','showConfirm','extendTemplate','ck-ai-chat-history__item-content','ck-hidden','isMatching','tiny','ck-confirm-view-cancel','ck-ai-chat-history__item-row','271896lMsRLL','focus','editConversationTitle','_createCheckView','highlightText','_createAcceptEditButtonView','_createSpinnerView','9570IvURed','string','updateLoadingState','panelPosition','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','AI_CHAT_HISTORY_REMOVE_CONFIRM','removeConversation','setConversationPinned','AI_CHAT_HISTORY_EDIT_NAME','selectConversation','AI_CHAT_HISTORY_REMOVE','items','bindTemplate','withText','loadingState','ck-ai-chat-history__item-check','setTemplate','isOn','129942EZDuVe','span','locale','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_CANCEL','execute','ck-ai-chat-history__item--active','AI_CHAT_HISTORY_LOADING_PINNING','updateTitle','key','pinned','ck-confirm-view-submit','845cWkpxD','bind','addMany','_createMenuDropdownView','listitem','773778iYmebP','Enter','1308546SwxlWx','edit:cancel','actions','buttonView','ck-ai-chat-history__item-check-container','isVisible'];_0x4270=function(){return _0x2bfc52;};return _0x4270();}import{ListItemView as _0x58b7ee,HighlightedTextView as _0x207801,ButtonView as _0x432a1b,ListView as _0xf26d44,IconView as _0x3f6c91,createDropdown as _0x2676c4,InputTextView as _0x1c4337}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x1a76aa,IconPin as _0xcd6647,IconCheck as _0x11de49,IconCancel as _0x185813}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x3231b5,ConfirmMixin as _0x5bacda}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x1fad95}from'es-toolkit/compat';import{AISpinnerView as _0x2d2892}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x2ea53c}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5bacda(_0x58b7ee){['id'];static [_0x1cd5b2(0x10f)]={'remove':_0x1cd5b2(0xf6),'rename':_0x1cd5b2(0x101),'pin':_0x1cd5b2(0x146),'unpin':_0x1cd5b2(0x110)};[_0x1cd5b2(0xf1)];[_0x1cd5b2(0x118)];[_0x1cd5b2(0x11b)];constructor(_0x474bc7,_0x45565d){const _0x41bd24=_0x1cd5b2;super(_0x474bc7);const _0x471ce5=this[_0x41bd24(0x139)];this[_0x41bd24(0xff)](_0x41bd24(0x115),!0x1),this[_0x41bd24(0xff)](_0x41bd24(0xf4),!0x0),this[_0x41bd24(0xff)](_0x41bd24(0x149),!!_0x45565d[_0x41bd24(0x149)]),this[_0x41bd24(0xff)](_0x41bd24(0x13b),null),this['id']=_0x45565d['id'];const {title:_0x59299e,createdAt:_0xeb656d,active:_0x19957a=!0x1}=_0x45565d;this[_0x41bd24(0x11b)]=new _0x207801(),this[_0x41bd24(0x11b)][_0x41bd24(0xf9)]=_0x59299e,this[_0x41bd24(0x11b)][_0x41bd24(0x11f)]({'attributes':{'class':[_0x41bd24(0x116)]}});const _0x1b9bed=this[_0x41bd24(0x129)](),_0x4a9dfc=this[_0x41bd24(0x10e)](_0x474bc7),_0x1e7170=this[_0x41bd24(0x14e)](),_0x2a05e1=this[_0x41bd24(0xfb)](_0x474bc7,_0x59299e),_0x29f7fd=this[_0x41bd24(0x12b)](_0x474bc7,_0x2a05e1),_0x563bbb=this[_0x41bd24(0x113)](_0x474bc7,_0x2a05e1);this[_0x41bd24(0xf1)]=this[_0x41bd24(0x105)](),this[_0x41bd24(0x118)]=this[_0x41bd24(0x105)](),this[_0x41bd24(0x118)][_0x41bd24(0x10a)](this[_0x41bd24(0x11b)]),this[_0x41bd24(0xf1)][_0x41bd24(0x10a)](_0x4a9dfc),this[_0x41bd24(0xf1)][_0x41bd24(0x10a)](_0x1e7170),this['on'](_0x41bd24(0x11a),(_0x92ef4d,_0x17fccf,_0x202091)=>{const _0x1b6534=_0x41bd24;this[_0x1b6534(0xf1)][_0x1b6534(0x10d)](),this[_0x1b6534(0x118)][_0x1b6534(0x10d)](),_0x202091?(this[_0x1b6534(0xf1)][_0x1b6534(0x10a)](_0x29f7fd),this[_0x1b6534(0xf1)][_0x1b6534(0x10a)](_0x563bbb),this[_0x1b6534(0x118)][_0x1b6534(0x10a)](_0x2a05e1),_0x2a05e1[_0x1b6534(0x100)][_0x1b6534(0x127)]()):(this[_0x1b6534(0xf1)][_0x1b6534(0x10a)](_0x4a9dfc),this[_0x1b6534(0xf1)][_0x1b6534(0x10a)](_0x1e7170),this[_0x1b6534(0x118)][_0x1b6534(0x10a)](this[_0x1b6534(0x11b)]));}),this[_0x41bd24(0x13d)]({'tag':'li','attributes':{'class':[_0x41bd24(0x107),_0x19957a?_0x41bd24(0x145):'',_0x471ce5['if'](_0x41bd24(0xf4),_0x41bd24(0x121),_0x6e22f5=>!_0x6e22f5),_0x471ce5['if'](_0x41bd24(0x115),_0x41bd24(0xfd))],'role':_0x41bd24(0x14f)},'children':[{'tag':_0x41bd24(0x140),'attributes':{'class':[_0x41bd24(0xf3)]},'children':[{'tag':_0x41bd24(0x104),'attributes':{'class':[_0x41bd24(0x13c),_0x471ce5['if'](_0x41bd24(0x13b),_0x41bd24(0x121),_0x1d1887=>!!_0x1d1887)]},'children':_0x19957a?[_0x1b9bed]:[]},{'tag':_0x41bd24(0x104),'attributes':{'class':[_0x41bd24(0x10c),_0x471ce5['if'](_0x41bd24(0x13b),_0x41bd24(0x121),_0x308289=>!_0x308289)]},'children':[this[_0x41bd24(0x12c)]()]}]},{'tag':_0x41bd24(0x104),'attributes':{'class':[_0x41bd24(0x125)]},'children':[{'tag':_0x41bd24(0x104),'attributes':{'class':[_0x41bd24(0x120)]},'on':{'click':this[_0x41bd24(0x139)]['to'](_0x41bd24(0xf7))},'children':[{'tag':_0x41bd24(0x104),'attributes':{'class':[_0x41bd24(0x108)]},'children':[{'tag':_0x41bd24(0x104),'attributes':{'class':[_0x41bd24(0x116),_0x471ce5['if'](_0x41bd24(0x13b),_0x41bd24(0x121),_0x3cf938=>!!_0x3cf938)]},'children':this[_0x41bd24(0x118)]},{'tag':_0x41bd24(0x104),'attributes':{'class':[_0x41bd24(0x106),_0x471ce5['if'](_0x41bd24(0x13b),_0x41bd24(0x121),_0x5f352c=>!_0x5f352c)]},'children':[{'text':_0x471ce5['to'](_0x41bd24(0x13b),_0x1210da=>_0x1210da?_0x2ea53c(this[_0x41bd24(0x141)],AIChatHistoryListItemView[_0x41bd24(0x10f)][_0x1210da]):'')}]}]},{'tag':_0x41bd24(0x140),'attributes':{'class':[_0x41bd24(0x11d)]},'children':[_0xeb656d]}]},{'tag':_0x41bd24(0x104),'attributes':{'class':[_0x41bd24(0x112)]},'children':this[_0x41bd24(0xf1)]}]}]}),this['on'](_0x41bd24(0xf7),()=>{const _0x1320ba=_0x41bd24;this[_0x1320ba(0x115)]||this[_0x1320ba(0x10b)](_0x1320ba(0x136),{'id':this['id']});});}[_0x1cd5b2(0x147)](_0x2fb94f){const _0x7f5ec5=_0x1cd5b2;this[_0x7f5ec5(0x11b)][_0x7f5ec5(0xf9)]=_0x1fad95(_0x2fb94f);}[_0x1cd5b2(0x12f)](_0x4db728,_0x374787){const _0x18e806=_0x1cd5b2;this[_0x18e806(0xff)](_0x18e806(0x13b),_0x374787?_0x4db728:null);}[_0x1cd5b2(0x129)](){const _0x5d9760=_0x1cd5b2,_0x315119=new _0x3f6c91();return _0x315119[_0x5d9760(0xff)]({'content':_0x11de49}),_0x315119;}[_0x1cd5b2(0x10e)](_0x595368){const _0x5d530e=_0x1cd5b2,_0x37f0e4=new _0x432a1b(_0x595368);return _0x37f0e4[_0x5d530e(0xff)]({'label':_0x2ea53c(_0x595368,_0x5d530e(0xfe)),'icon':_0xcd6647,'withText':!0x1,'tooltip':!0x0}),_0x37f0e4[_0x5d530e(0x14c)](_0x5d530e(0x13e))['to'](this,_0x5d530e(0x149)),_0x37f0e4['on'](_0x5d530e(0x144),()=>{const _0x5d2a77=_0x5d530e,_0x5bba6e=!this[_0x5d2a77(0x149)];this[_0x5d2a77(0x10b)](_0x5d2a77(0x134),{'id':this['id'],'pinned':_0x5bba6e});}),_0x37f0e4;}[_0x1cd5b2(0x14e)](){const _0x3a8eb4=_0x1cd5b2,_0x12f3cb=_0x2676c4(this[_0x3a8eb4(0x141)],_0x3231b5),_0x477d89=_0x12f3cb[_0x3a8eb4(0xf8)][_0x3a8eb4(0xfa)];_0x12f3cb[_0x3a8eb4(0xf2)][_0x3a8eb4(0xff)]({'label':_0x2ea53c(this[_0x3a8eb4(0x141)],_0x3a8eb4(0x131)),'icon':_0x1a76aa}),_0x12f3cb[_0x3a8eb4(0x130)]='sw';const _0x167700=new _0x432a1b(this[_0x3a8eb4(0x141)]);_0x167700[_0x3a8eb4(0x11c)]=_0x2ea53c(this[_0x3a8eb4(0x141)],_0x3a8eb4(0x135)),_0x167700[_0x3a8eb4(0x13a)]=!0x0,_0x167700['on'](_0x3a8eb4(0x144),()=>{const _0x21c105=_0x3a8eb4;this[_0x21c105(0x115)]=!0x0;});const _0x579b99=new _0x432a1b(this[_0x3a8eb4(0x141)]);_0x579b99[_0x3a8eb4(0x11c)]=_0x2ea53c(this[_0x3a8eb4(0x141)],_0x3a8eb4(0x137)),_0x579b99[_0x3a8eb4(0x13a)]=!0x0,_0x579b99['on'](_0x3a8eb4(0x144),()=>{const _0x4f05e6=_0x3a8eb4;this[_0x4f05e6(0x11e)](_0x2ea53c(this[_0x4f05e6(0x141)],_0x4f05e6(0x132)),this[_0x4f05e6(0x100)])[_0x4f05e6(0x111)](()=>{const _0x4c51c2=_0x4f05e6;this[_0x4c51c2(0x10b)](_0x4c51c2(0x133),{'id':this['id']});});});const _0x110a92=new _0xf26d44(this[_0x3a8eb4(0x141)]),_0x1693a0=new _0x58b7ee(this[_0x3a8eb4(0x141)]);_0x1693a0[_0x3a8eb4(0xfa)][_0x3a8eb4(0x10a)](_0x167700);const _0x54185e=new _0x58b7ee(this[_0x3a8eb4(0x141)]);return _0x54185e[_0x3a8eb4(0xfa)][_0x3a8eb4(0x10a)](_0x579b99),_0x110a92[_0x3a8eb4(0x138)][_0x3a8eb4(0x14d)]([_0x1693a0,_0x54185e]),_0x477d89[_0x3a8eb4(0x10a)](_0x110a92),_0x12f3cb;}[_0x1cd5b2(0xfb)](_0xa59185,_0x325a2b){const _0x5bb5bd=_0x1cd5b2,_0x385055=new _0x1c4337(_0xa59185),_0x5ca84b=_0x385055[_0x5bb5bd(0x139)];return _0x385055[_0x5bb5bd(0x109)]=_0x325a2b,_0x385055[_0x5bb5bd(0x11f)]({'on':{'keydown':_0x5ca84b['to'](_0xefe0ce=>{const _0x174f60=_0x5bb5bd;_0x174f60(0x151)==_0xefe0ce[_0x174f60(0x148)]&&this[_0x174f60(0xf5)](_0x385055);})}}),_0x385055;}[_0x1cd5b2(0x12b)](_0x400c4a,_0x4102cb){const _0x391643=_0x1cd5b2,_0x14f48f=new _0x432a1b(_0x400c4a);return _0x14f48f[_0x391643(0xff)]({'icon':_0x11de49,'withText':!0x1,'tooltip':_0x2ea53c(_0x400c4a,_0x391643(0x142))}),_0x14f48f[_0x391643(0x11f)]({'attributes':{'class':[_0x391643(0x14a)]}}),_0x14f48f['on'](_0x391643(0x144),()=>{const _0xa03823=_0x391643;this[_0xa03823(0xf5)](_0x4102cb);}),_0x14f48f;}[_0x1cd5b2(0xf5)](_0x3e591f){const _0x36122f=_0x1cd5b2,_0x4ee480=_0x3e591f[_0x36122f(0x100)][_0x36122f(0x109)]||'';this[_0x36122f(0x11b)][_0x36122f(0xf9)]=_0x4ee480,this[_0x36122f(0x115)]=!0x1,this[_0x36122f(0x10b)](_0x36122f(0x128),{'id':this['id'],'title':_0x4ee480});}[_0x1cd5b2(0x113)](_0x5ca8c3,_0x26b006){const _0x3a1e05=_0x1cd5b2,_0x559c8a=new _0x432a1b(_0x5ca8c3);return _0x559c8a[_0x3a1e05(0xff)]({'icon':_0x185813,'withText':!0x1,'tooltip':_0x2ea53c(_0x5ca8c3,_0x3a1e05(0x143))}),_0x559c8a[_0x3a1e05(0x11f)]({'attributes':{'class':[_0x3a1e05(0x124)]}}),_0x559c8a['on'](_0x3a1e05(0x144),()=>{const _0x40d75b=_0x3a1e05;this[_0x40d75b(0x115)]=!0x1,_0x26b006[_0x40d75b(0x109)]=this[_0x40d75b(0x11b)][_0x40d75b(0xf9)]||'',this[_0x40d75b(0x10b)](_0x40d75b(0xf0));}),_0x559c8a;}[_0x1cd5b2(0x12c)](){const _0x6161cb=_0x1cd5b2,_0x430213=new _0x2d2892(_0x6161cb(0x123));return _0x430213[_0x6161cb(0xf4)]=!0x0,_0x430213;}[_0x1cd5b2(0x122)](_0x270be6){const _0x67113f=_0x1cd5b2;return this[_0x67113f(0x11b)]&&_0x67113f(0x12e)==typeof this[_0x67113f(0x11b)][_0x67113f(0xf9)]&&this[_0x67113f(0x11b)][_0x67113f(0xf9)][_0x67113f(0x103)](_0x270be6)?{'title':!0x0}:null;}[_0x1cd5b2(0x12a)](_0x1e72e4){const _0x3f42e2=_0x1cd5b2;this[_0x3f42e2(0x11b)][_0x3f42e2(0x12a)](_0x1e72e4);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2a3fc6=_0x2619;function _0x1fbc(){const _0x25be31=['bindTemplate','removeItem','splice','ck-hidden','indexOf','setTemplate','229817hcAbLg','title','set','ck-ai-chat-history__section-title','692EbxTQM','186fdRiKX','div','highlightText','693207HGmWiD','filter','22fcBadb','18jWvJfD','isVisible','isMatching','3898552fjYMPX','remove','getItem','items','520610LDvbNT','length','itemsViews','addMany','6684dXPnkd','295376GBKPxF','1474810zOgqsP','find','ck-ai-chat-history__section','_itemsListView'];_0x1fbc=function(){return _0x25be31;};return _0x1fbc();}function _0x2619(_0x556d96,_0x17f2a1){const _0x1fbc07=_0x1fbc();return _0x2619=function(_0x2619fd,_0x2bb8b1){_0x2619fd=_0x2619fd-0x1a5;let _0x4ef10e=_0x1fbc07[_0x2619fd];return _0x4ef10e;},_0x2619(_0x556d96,_0x17f2a1);}(function(_0x2b6fa5,_0x4e254c){const _0x1f3c38=_0x2619,_0x197261=_0x2b6fa5();while(!![]){try{const _0x518852=parseInt(_0x1f3c38(0x1b5))/0x1+-parseInt(_0x1f3c38(0x1c4))/0x2+-parseInt(_0x1f3c38(0x1c3))/0x3*(parseInt(_0x1f3c38(0x1b1))/0x4)+parseInt(_0x1f3c38(0x1bf))/0x5+-parseInt(_0x1f3c38(0x1b2))/0x6*(-parseInt(_0x1f3c38(0x1ad))/0x7)+-parseInt(_0x1f3c38(0x1bb))/0x8*(parseInt(_0x1f3c38(0x1b8))/0x9)+-parseInt(_0x1f3c38(0x1c5))/0xa*(-parseInt(_0x1f3c38(0x1b7))/0xb);if(_0x518852===_0x4e254c)break;else _0x197261['push'](_0x197261['shift']());}catch(_0x1cb54f){_0x197261['push'](_0x197261['shift']());}}}(_0x1fbc,0x930aa));import{ListItemView as _0x57129c,View as _0x5c1e7c,ListView as _0x2266b5}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x57129c{[_0x2a3fc6(0x1ae)];[_0x2a3fc6(0x1c1)];[_0x2a3fc6(0x1a6)];constructor(_0x57d59b,{title:_0x1d62bd,items:_0x593a00}){const _0x3d6988=_0x2a3fc6;super(_0x57d59b);const _0x5b9a6a=this[_0x3d6988(0x1a7)];this[_0x3d6988(0x1af)](_0x3d6988(0x1b9),!0x0),this[_0x3d6988(0x1ae)]=_0x1d62bd,this[_0x3d6988(0x1c1)]=_0x593a00;const _0x48e916=new _0x5c1e7c(_0x57d59b);_0x48e916[_0x3d6988(0x1ac)]({'tag':_0x3d6988(0x1b3),'attributes':{'class':[_0x3d6988(0x1b0)]},'children':[this[_0x3d6988(0x1ae)]]}),this[_0x3d6988(0x1a6)]=new _0x2266b5(_0x57d59b),this[_0x3d6988(0x1a6)][_0x3d6988(0x1be)][_0x3d6988(0x1c2)](this[_0x3d6988(0x1c1)]),this[_0x3d6988(0x1ac)]({'tag':'li','attributes':{'class':[_0x3d6988(0x1a5),_0x5b9a6a['if'](_0x3d6988(0x1b9),_0x3d6988(0x1aa),_0x58959b=>!_0x58959b)]},'children':[_0x48e916,this[_0x3d6988(0x1a6)]]});}[_0x2a3fc6(0x1b6)](_0x207595){const _0x391972=_0x2a3fc6,_0x2d9461=this[_0x391972(0x1c1)][_0x391972(0x1c0)];let _0x4b1c27=0x0;for(const _0x15bb26 of this[_0x391972(0x1c1)]){if(_0x207595){const _0x4d0bd5=_0x15bb26[_0x391972(0x1ba)](_0x207595);_0x15bb26[_0x391972(0x1b9)]=!!_0x4d0bd5,_0x15bb26[_0x391972(0x1b4)](_0x207595);}else _0x15bb26[_0x391972(0x1b9)]=!0x0,_0x15bb26[_0x391972(0x1b4)](null);_0x15bb26[_0x391972(0x1b9)]&&_0x4b1c27++;}return this[_0x391972(0x1b9)]=_0x4b1c27>0x0,{'resultsCount':_0x4b1c27,'totalItemsCount':_0x2d9461};}[_0x2a3fc6(0x1bd)](_0x45d08d){const _0x58997e=_0x2a3fc6;return this[_0x58997e(0x1c1)][_0x58997e(0x1c6)](_0x5e7571=>_0x5e7571['id']===_0x45d08d);}[_0x2a3fc6(0x1a8)](_0xd3539c){const _0x196b48=_0x2a3fc6,_0x4dec03=this[_0x196b48(0x1c1)][_0x196b48(0x1ab)](_0xd3539c);-0x1!==_0x4dec03&&(this[_0x196b48(0x1c1)][_0x196b48(0x1a9)](_0x4dec03,0x1),this[_0x196b48(0x1a6)][_0x196b48(0x1be)][_0x196b48(0x1bc)](_0xd3539c));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x342e(_0x54d148,_0x4ced97){const _0x57fcbc=_0x57fc();return _0x342e=function(_0x342e8b,_0x42f60c){_0x342e8b=_0x342e8b-0x113;let _0x46e593=_0x57fcbc[_0x342e8b];return _0x46e593;},_0x342e(_0x54d148,_0x4ced97);}const _0x5cbc5b=_0x342e;function _0x57fc(){const _0x2b3ff7=['400Gaidlx','1116392vfBnaJ','10LGGiao','2693133qdFXsf','extendTemplate','138672XEpQoH','2189FmICDU','2105HyQxVM','23878RsELkK','ck-ai-chat-history__sections','3283632iuMdZJ','sections','items','filter','375eljhMJ','10194HoOUAX','7091aDolZR','addMany'];_0x57fc=function(){return _0x2b3ff7;};return _0x57fc();}(function(_0x4d809e,_0x4350ad){const _0x172566=_0x342e,_0x2c22d6=_0x4d809e();while(!![]){try{const _0x8c307f=-parseInt(_0x172566(0x11e))/0x1+parseInt(_0x172566(0x113))/0x2*(parseInt(_0x172566(0x119))/0x3)+parseInt(_0x172566(0x11d))/0x4*(parseInt(_0x172566(0x124))/0x5)+-parseInt(_0x172566(0x11a))/0x6*(parseInt(_0x172566(0x11b))/0x7)+-parseInt(_0x172566(0x115))/0x8+-parseInt(_0x172566(0x120))/0x9*(-parseInt(_0x172566(0x11f))/0xa)+parseInt(_0x172566(0x123))/0xb*(parseInt(_0x172566(0x122))/0xc);if(_0x8c307f===_0x4350ad)break;else _0x2c22d6['push'](_0x2c22d6['shift']());}catch(_0x222748){_0x2c22d6['push'](_0x2c22d6['shift']());}}}(_0x57fc,0xd82af));import{ListView as _0x398539}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x398539{[_0x5cbc5b(0x116)];constructor(_0x108357,_0x548e65){const _0x3691b6=_0x5cbc5b;super(_0x108357),this[_0x3691b6(0x116)]=_0x548e65,this[_0x3691b6(0x117)][_0x3691b6(0x11c)](this[_0x3691b6(0x116)]),this[_0x3691b6(0x121)]({'attributes':{'class':[_0x3691b6(0x114)]}});}[_0x5cbc5b(0x118)](_0x393fa5){const _0x30471f=_0x5cbc5b;let _0x2f7228=0x0,_0x50dbd7=0x0;for(const _0x2d2c9c of this[_0x30471f(0x116)]){const {resultsCount:_0x4e7108,totalItemsCount:_0x445246}=_0x2d2c9c[_0x30471f(0x118)](_0x393fa5);_0x2f7228+=_0x4e7108,_0x50dbd7+=_0x445246;}return{'resultsCount':_0x2f7228,'totalItemsCount':_0x50dbd7};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x501f7a=_0x243a;(function(_0x1f56a0,_0x472a69){const _0x4c0a3b=_0x243a,_0x5247ca=_0x1f56a0();while(!![]){try{const _0x4b5526=-parseInt(_0x4c0a3b(0x172))/0x1*(-parseInt(_0x4c0a3b(0x13d))/0x2)+parseInt(_0x4c0a3b(0x130))/0x3*(parseInt(_0x4c0a3b(0x142))/0x4)+parseInt(_0x4c0a3b(0x16d))/0x5+-parseInt(_0x4c0a3b(0x188))/0x6+parseInt(_0x4c0a3b(0x134))/0x7+parseInt(_0x4c0a3b(0x15b))/0x8+-parseInt(_0x4c0a3b(0x13e))/0x9;if(_0x4b5526===_0x472a69)break;else _0x5247ca['push'](_0x5247ca['shift']());}catch(_0x5e5351){_0x5247ca['push'](_0x5247ca['shift']());}}}(_0x38fe,0x3f58a));import{View as _0x3f842d,SearchTextView as _0x45d243,FormHeaderView as _0x1c7a1a,ButtonView as _0x2cbf46}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x343f96,IconCancel as _0x189ba2,IconPlus as _0x5bdffb}from'ckeditor5/src/icons.js';function _0x243a(_0x3a28c4,_0xeacae4){const _0x38fe94=_0x38fe();return _0x243a=function(_0x243ad9,_0x42298a){_0x243ad9=_0x243ad9-0x12f;let _0x3ce2cd=_0x38fe94[_0x243ad9];return _0x3ce2cd;},_0x243a(_0x3a28c4,_0xeacae4);}function _0x38fe(){const _0x1da4ce=['5883dGESjC','queryView','itemsViews','isLoading','137998nNFsGA','updateItemTitle','add','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','bindTemplate','some','_createSearchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','push','2valZTM','6589593FUcLNt','ck-rounded-corners','AI_CHAT_HISTORY_SEARCH_LABEL','clear','360CWBNQC','ck-ai-header\x20ck-ai-header_history','change:errorMessage','sections','_refreshSearch','children','_createSkeletonView','updateHistoryItemsWithCategories','updateTitle','isVisible','fire','bind','change:hasItems','emptyView','removeHistoryItem','isMainErrorViewVisible','addMany','ck-ai-notification','_createErrorView','ck-ai-chat-history__content','skeletonView','remove','setTemplate','delegate','_createListItemViews','2721896bLDjAm','aiHistory','value','ck-ai-notification_error','fieldView','isMaximized','execute','ck-ai-chat-history__empty-message','isSearchViewVisible','splice','mainErrorView','openChat','items','div','title','updateLoadingState','hasItems','locale','1727335cSCmWl','ck-reset_all','searchView','errorMessage','_createEmptyStateView','304739hSAOcj','ck-ai-chat__start-conversation','extendTemplate','_updateViewVisibility','change:isLoading','updateItemLoadingState','getItem','ck-hidden','ck-ai-notification_error__dismiss-button','render','isEmptyViewVisible','removeItem','ck-ai-chat-history__empty','AI_CHAT_HISTORY_HEADING','element','sectionsView','set','resizeButton','AI_CHAT_LABEL_NEW_CHAT','length','ltr','indexOf','1170024qPJEvS','ck-ai-chat-history','search','AI_CHAT_HISTORY_EMPTY_MESSAGE'];_0x38fe=function(){return _0x1da4ce;};return _0x38fe();}import{AIChatHistorySectionListView as _0x107056}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x301ae1}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0xe9df12}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x42c5e5}from'../aichathistoryui.js';import{AISkeletonView as _0x48e39a,SKELETON_DEFINITIONS as _0x560d3f}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0xa4a1aa}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x52dcd6}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x3f842d{[_0x501f7a(0x16f)];[_0x501f7a(0x165)];[_0x501f7a(0x156)];[_0x501f7a(0x14f)];[_0x501f7a(0x181)];[_0x501f7a(0x183)];constructor(_0x3b0c48,_0x120293){const _0x277efd=_0x501f7a;super(_0x3b0c48),this[_0x277efd(0x182)](_0x277efd(0x16b),!0x1),this[_0x277efd(0x182)](_0x277efd(0x133),!0x0),this[_0x277efd(0x182)](_0x277efd(0x170),''),this[_0x277efd(0x182)](_0x277efd(0x160),!0x1),this[_0x277efd(0x182)](_0x277efd(0x163),!0x1),this[_0x277efd(0x182)](_0x277efd(0x17c),!0x1),this[_0x277efd(0x182)](_0x277efd(0x151),!0x1);const _0x518668=new _0x1c7a1a(_0x3b0c48,{'label':_0x52dcd6(_0x3b0c48,_0x277efd(0x17f)),'icon':_0x343f96,'class':_0x277efd(0x143)});_0x120293&&(this[_0x277efd(0x183)]=_0xa4a1aa(_0x3b0c48,this),_0x518668[_0x277efd(0x147)][_0x277efd(0x136)](this[_0x277efd(0x183)])),this[_0x277efd(0x181)]=new _0x107056(_0x3b0c48,[]),this[_0x277efd(0x181)][_0x277efd(0x159)](..._0x42c5e5)['to'](this),this[_0x277efd(0x165)]=this[_0x277efd(0x154)](),this[_0x277efd(0x156)]=this[_0x277efd(0x148)](),this[_0x277efd(0x14f)]=this[_0x277efd(0x171)](),this[_0x277efd(0x16f)]=this[_0x277efd(0x13a)](),this[_0x277efd(0x165)][_0x277efd(0x174)]({'attributes':{'class':[this[_0x277efd(0x138)]['if'](_0x277efd(0x151),_0x277efd(0x179),_0x730b64=>!_0x730b64)]}}),this['on'](_0x277efd(0x176),()=>this[_0x277efd(0x175)]()),this['on'](_0x277efd(0x14e),()=>this[_0x277efd(0x175)]()),this['on'](_0x277efd(0x144),()=>this[_0x277efd(0x175)]()),this[_0x277efd(0x158)]({'tag':_0x277efd(0x168),'attributes':{'class':['ck',_0x277efd(0x16e),_0x277efd(0x189),_0x277efd(0x13f)],'dir':_0x277efd(0x186)},'children':[_0x518668,{'tag':_0x277efd(0x168),'attributes':{'class':[_0x277efd(0x155)]},'children':[this[_0x277efd(0x156)],this[_0x277efd(0x165)],this[_0x277efd(0x14f)],this[_0x277efd(0x16f)]]}]});}[_0x501f7a(0x175)](){const _0x58e069=_0x501f7a;this[_0x58e069(0x163)]=!this[_0x58e069(0x133)]&&this[_0x58e069(0x16b)],this[_0x58e069(0x17c)]=!this[_0x58e069(0x133)]&&!this[_0x58e069(0x16b)]&&!this[_0x58e069(0x170)],this[_0x58e069(0x151)]=!this[_0x58e069(0x163)]&&!!this[_0x58e069(0x170)];}[_0x501f7a(0x13a)](){const _0x326cf1=_0x501f7a,_0x481c1b=new _0x45d243(this[_0x326cf1(0x16c)],{'filteredView':this[_0x326cf1(0x181)],'queryView':{'label':_0x52dcd6(this[_0x326cf1(0x16c)],_0x326cf1(0x140))},'infoView':{'text':{'notFound':{'primary':_0x5acb33=>_0x52dcd6(this[_0x326cf1(0x16c)],_0x326cf1(0x137),_0x5acb33),'secondary':_0x52dcd6(this[_0x326cf1(0x16c)],_0x326cf1(0x13b))}}}}),_0x29bf84=this[_0x326cf1(0x154)]();return _0x29bf84[_0x326cf1(0x174)]({'attributes':{'class':[this[_0x326cf1(0x138)]['if'](_0x326cf1(0x170),_0x326cf1(0x179),_0x4406fe=>!_0x4406fe)]}}),_0x481c1b['on'](_0x326cf1(0x17b),()=>{const _0x232a16=_0x326cf1;_0x481c1b[_0x232a16(0x147)][_0x232a16(0x136)](_0x29bf84,0x1);}),_0x481c1b[_0x326cf1(0x174)]({'attributes':{'class':[this[_0x326cf1(0x138)]['if'](_0x326cf1(0x163),_0x326cf1(0x179),_0x50104f=>!_0x50104f)]}}),_0x481c1b;}[_0x501f7a(0x148)](){const _0x46ac47=_0x501f7a,_0x272eae=new _0x48e39a(this[_0x46ac47(0x16c)],_0x560d3f[_0x46ac47(0x15c)]);return _0x272eae[_0x46ac47(0x174)]({'attributes':{'class':[this[_0x46ac47(0x138)]['if'](_0x46ac47(0x133),_0x46ac47(0x179),_0x247479=>!_0x247479)]}}),_0x272eae;}[_0x501f7a(0x154)](){const _0x421669=_0x501f7a,_0x5d40c8=new _0x3f842d(this[_0x421669(0x16c)]),_0x5209fb=new _0x2cbf46(this[_0x421669(0x16c)]);_0x5209fb[_0x421669(0x182)]({'withText':!0x1,'icon':_0x189ba2,'class':_0x421669(0x17a)}),_0x5209fb[_0x421669(0x14d)](_0x421669(0x14b))['to'](this,_0x421669(0x16b),_0x1ea45e=>!!_0x1ea45e),_0x5209fb['on'](_0x421669(0x161),()=>{const _0x165b33=_0x421669;this[_0x165b33(0x170)]='';});const _0x15c2f3=this[_0x421669(0x138)];return _0x5d40c8[_0x421669(0x158)]({'tag':_0x421669(0x168),'attributes':{'class':['ck',_0x421669(0x153),_0x421669(0x15e)]},'children':[{'tag':'p','children':[{'text':_0x15c2f3['to'](_0x421669(0x170))}]},_0x5209fb]}),_0x5d40c8;}[_0x501f7a(0x171)](){const _0x4688b0=_0x501f7a,_0x130253=new _0x2cbf46(this[_0x4688b0(0x16c)]);_0x130253[_0x4688b0(0x182)]({'label':_0x52dcd6(this[_0x4688b0(0x16c)],_0x4688b0(0x184)),'withText':!0x0,'icon':_0x5bdffb,'class':_0x4688b0(0x173)}),_0x130253['on'](_0x4688b0(0x161),()=>{const _0x4adf19=_0x4688b0;this[_0x4adf19(0x14c)](_0x4adf19(0x166));});const _0x5ad113=new _0x3f842d(this[_0x4688b0(0x16c)]);return _0x5ad113[_0x4688b0(0x158)]({'tag':_0x4688b0(0x168),'attributes':{'class':[_0x4688b0(0x17e),this[_0x4688b0(0x138)]['if'](_0x4688b0(0x17c),_0x4688b0(0x179),_0xc41d7d=>!_0xc41d7d)]},'children':[{'tag':'p','attributes':{'class':[_0x4688b0(0x162)]},'children':[_0x52dcd6(this[_0x4688b0(0x16c)],_0x4688b0(0x12f))]},_0x130253]}),_0x5ad113;}[_0x501f7a(0x15a)](_0x88199,_0x47f4aa){const _0x185336=_0x501f7a,_0x4e798=[];for(const _0x2f4d68 of _0x88199){const _0x31f0c2=new _0xe9df12(_0x47f4aa,_0x2f4d68);_0x31f0c2[_0x185336(0x159)](..._0x42c5e5)['to'](this),_0x4e798[_0x185336(0x13c)](_0x31f0c2);}return _0x4e798;}[_0x501f7a(0x149)](_0x3dc591){const _0x1f1972=_0x501f7a,_0x589eec=this[_0x1f1972(0x16c)]||'en',_0x342b82=[];for(const _0x85db6f of _0x3dc591){const _0x5ab1a6=this[_0x1f1972(0x15a)](_0x85db6f[_0x1f1972(0x167)],_0x589eec);_0x342b82[_0x1f1972(0x13c)](new _0x301ae1(_0x589eec,{'title':_0x85db6f[_0x1f1972(0x169)],'items':_0x5ab1a6}));}this[_0x1f1972(0x181)][_0x1f1972(0x145)]=_0x342b82,this[_0x1f1972(0x181)][_0x1f1972(0x167)][_0x1f1972(0x141)](),this[_0x1f1972(0x181)][_0x1f1972(0x167)][_0x1f1972(0x152)](_0x342b82),this[_0x1f1972(0x16b)]=_0x3dc591[_0x1f1972(0x139)](_0x4573fe=>_0x4573fe[_0x1f1972(0x167)][_0x1f1972(0x185)]>0x0),this[_0x1f1972(0x146)]();}[_0x501f7a(0x150)](_0xfa37e8){const _0x40aa7b=_0x501f7a;for(const _0x55c6c8 of this[_0x40aa7b(0x181)][_0x40aa7b(0x145)]){const _0x5d60a5=_0x55c6c8[_0x40aa7b(0x178)](_0xfa37e8);if(_0x5d60a5){if(_0x55c6c8[_0x40aa7b(0x17d)](_0x5d60a5),0x0===_0x55c6c8[_0x40aa7b(0x132)][_0x40aa7b(0x185)]){const _0x33be11=this[_0x40aa7b(0x181)][_0x40aa7b(0x145)][_0x40aa7b(0x187)](_0x55c6c8);-0x1!==_0x33be11&&(this[_0x40aa7b(0x181)][_0x40aa7b(0x145)][_0x40aa7b(0x164)](_0x33be11,0x1),this[_0x40aa7b(0x181)][_0x40aa7b(0x167)][_0x40aa7b(0x157)](_0x55c6c8));}this[_0x40aa7b(0x16b)]=this[_0x40aa7b(0x181)][_0x40aa7b(0x145)][_0x40aa7b(0x185)]>0x0,this[_0x40aa7b(0x146)]();break;}}}[_0x501f7a(0x135)](_0x3bf5ef,_0x2cf4aa){const _0x1f2a59=_0x501f7a;for(const _0x3d4a05 of this[_0x1f2a59(0x181)][_0x1f2a59(0x145)]){const _0x44fe60=_0x3d4a05[_0x1f2a59(0x178)](_0x3bf5ef);if(_0x44fe60){_0x44fe60[_0x1f2a59(0x14a)](_0x2cf4aa);break;}}}[_0x501f7a(0x177)](_0xf05529,_0x1488b0,_0x5cee45){const _0x138d15=_0x501f7a;for(const _0x2e867f of this[_0x138d15(0x181)][_0x138d15(0x145)]){const _0x3e950f=_0x2e867f[_0x138d15(0x178)](_0xf05529);if(_0x3e950f){_0x3e950f[_0x138d15(0x16a)](_0x1488b0,_0x5cee45);break;}}}[_0x501f7a(0x146)](){const _0x167dd1=_0x501f7a;if(this[_0x167dd1(0x16b)]){const _0x362e31=this[_0x167dd1(0x16f)][_0x167dd1(0x131)][_0x167dd1(0x15f)]?.[_0x167dd1(0x180)]?.[_0x167dd1(0x15d)]||'';this[_0x167dd1(0x16f)][_0x167dd1(0x18a)](_0x362e31);}}}
|
|
23
|
+
const _0x2ba65e=_0x280d;function _0x1fbf(){const _0x3ee437=['_createErrorView','57322gxoMgn','items','updateItemLoadingState','isLoading','ck-ai-header\x20ck-ai-header_history','element','hasItems','set','2408378nfTIbZ','errorMessage','add','1924764xraWZf','resizeButton','ltr','updateTitle','sections','isMainErrorViewVisible','20CLqzsN','ck-ai-chat-history__content','getItem','removeHistoryItem','length','change:errorMessage','change:isLoading','updateLoadingState','splice','isEmptyViewVisible','sectionsView','ck-ai-notification','_createListItemViews','locale','delegate','updateHistoryItemsWithCategories','_createSearchView','ck-ai-notification_error__dismiss-button','isMaximized','render','3076312dHvbxd','isVisible','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','isSearchViewVisible','itemsViews','bind','1805622XAPSju','9yYsWAB','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-reset_all','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-chat-history__empty-message','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:hasItems','remove','ck-ai-chat-history','AI_CHAT_HISTORY_HEADING','addMany','search','clear','queryView','ck-ai-chat-history__empty','4115350mtxcMX','emptyView','AI_CHAT_LABEL_NEW_CHAT','skeletonView','div','fieldView','ck-rounded-corners','bindTemplate','102MGuvBC','push','_updateViewVisibility','updateItemTitle','some','removeItem','execute','indexOf','children','mainErrorView','extendTemplate','ck-hidden','_createSkeletonView','_refreshSearch','setTemplate','title','6031664QCfKUP','fire','value','aiHistory','searchView','ck-ai-notification_error','_createEmptyStateView','openChat','ck-ai-chat__start-conversation'];_0x1fbf=function(){return _0x3ee437;};return _0x1fbf();}function _0x280d(_0x58b2c5,_0xa7293){const _0x1fbff4=_0x1fbf();return _0x280d=function(_0x280d1c,_0x49d4dd){_0x280d1c=_0x280d1c-0x16d;let _0x23790c=_0x1fbff4[_0x280d1c];return _0x23790c;},_0x280d(_0x58b2c5,_0xa7293);}(function(_0x171772,_0x47a185){const _0x5c3e71=_0x280d,_0x2a043a=_0x171772();while(!![]){try{const _0x142846=parseInt(_0x5c3e71(0x1c1))/0x1+-parseInt(_0x5c3e71(0x196))/0x2*(parseInt(_0x5c3e71(0x17c))/0x3)+-parseInt(_0x5c3e71(0x18c))/0x4+-parseInt(_0x5c3e71(0x1a7))/0x5*(-parseInt(_0x5c3e71(0x1a1))/0x6)+parseInt(_0x5c3e71(0x19e))/0x7+parseInt(_0x5c3e71(0x1bb))/0x8*(parseInt(_0x5c3e71(0x1c2))/0x9)+-parseInt(_0x5c3e71(0x174))/0xa;if(_0x142846===_0x47a185)break;else _0x2a043a['push'](_0x2a043a['shift']());}catch(_0x14a72a){_0x2a043a['push'](_0x2a043a['shift']());}}}(_0x1fbf,0xe174a));import{View as _0x321bd0,SearchTextView as _0x4dbbda,FormHeaderView as _0x47eded,ButtonView as _0x2fa2b4}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x189a87,IconCancel as _0x7656ac,IconPlus as _0x1a20bf}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2ad130}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x404ae4}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2bf9ba}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x44595a}from'../aichathistoryui.js';import{AISkeletonView as _0x19a6bb,SKELETON_DEFINITIONS as _0x508129}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x550012}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x11f6fb}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x321bd0{[_0x2ba65e(0x190)];[_0x2ba65e(0x185)];[_0x2ba65e(0x177)];[_0x2ba65e(0x175)];[_0x2ba65e(0x1b1)];[_0x2ba65e(0x1a2)];constructor(_0x27e255,_0x50ef94){const _0x2ee94f=_0x2ba65e;super(_0x27e255),this[_0x2ee94f(0x19d)](_0x2ee94f(0x19c),!0x1),this[_0x2ee94f(0x19d)](_0x2ee94f(0x199),!0x0),this[_0x2ee94f(0x19d)](_0x2ee94f(0x19f),''),this[_0x2ee94f(0x19d)](_0x2ee94f(0x1b9),!0x1),this[_0x2ee94f(0x19d)](_0x2ee94f(0x1be),!0x1),this[_0x2ee94f(0x19d)](_0x2ee94f(0x1b0),!0x1),this[_0x2ee94f(0x19d)](_0x2ee94f(0x1a6),!0x1);const _0x103616=new _0x47eded(_0x27e255,{'label':_0x11f6fb(_0x27e255,_0x2ee94f(0x16e)),'icon':_0x189a87,'class':_0x2ee94f(0x19a)});_0x50ef94&&(this[_0x2ee94f(0x1a2)]=_0x550012(_0x27e255,this),_0x103616[_0x2ee94f(0x184)][_0x2ee94f(0x1a0)](this[_0x2ee94f(0x1a2)])),this[_0x2ee94f(0x1b1)]=new _0x2ad130(_0x27e255,[]),this[_0x2ee94f(0x1b1)][_0x2ee94f(0x1b5)](..._0x44595a)['to'](this),this[_0x2ee94f(0x185)]=this[_0x2ee94f(0x195)](),this[_0x2ee94f(0x177)]=this[_0x2ee94f(0x188)](),this[_0x2ee94f(0x175)]=this[_0x2ee94f(0x192)](),this[_0x2ee94f(0x190)]=this[_0x2ee94f(0x1b7)](),this[_0x2ee94f(0x185)][_0x2ee94f(0x186)]({'attributes':{'class':[this[_0x2ee94f(0x17b)]['if'](_0x2ee94f(0x1a6),_0x2ee94f(0x187),_0x381957=>!_0x381957)]}}),this['on'](_0x2ee94f(0x1ad),()=>this[_0x2ee94f(0x17e)]()),this['on'](_0x2ee94f(0x1c8),()=>this[_0x2ee94f(0x17e)]()),this['on'](_0x2ee94f(0x1ac),()=>this[_0x2ee94f(0x17e)]()),this[_0x2ee94f(0x18a)]({'tag':_0x2ee94f(0x178),'attributes':{'class':['ck',_0x2ee94f(0x1c4),_0x2ee94f(0x16d),_0x2ee94f(0x17a)],'dir':_0x2ee94f(0x1a3)},'children':[_0x103616,{'tag':_0x2ee94f(0x178),'attributes':{'class':[_0x2ee94f(0x1a8)]},'children':[this[_0x2ee94f(0x177)],this[_0x2ee94f(0x185)],this[_0x2ee94f(0x175)],this[_0x2ee94f(0x190)]]}]});}[_0x2ba65e(0x17e)](){const _0x16ed4a=_0x2ba65e;this[_0x16ed4a(0x1be)]=!this[_0x16ed4a(0x199)]&&this[_0x16ed4a(0x19c)],this[_0x16ed4a(0x1b0)]=!this[_0x16ed4a(0x199)]&&!this[_0x16ed4a(0x19c)]&&!this[_0x16ed4a(0x19f)],this[_0x16ed4a(0x1a6)]=!this[_0x16ed4a(0x1be)]&&!!this[_0x16ed4a(0x19f)];}[_0x2ba65e(0x1b7)](){const _0x3a5c30=_0x2ba65e,_0x4c1970=new _0x4dbbda(this[_0x3a5c30(0x1b4)],{'filteredView':this[_0x3a5c30(0x1b1)],'queryView':{'label':_0x11f6fb(this[_0x3a5c30(0x1b4)],_0x3a5c30(0x1c5))},'infoView':{'text':{'notFound':{'primary':_0x3f9b8f=>_0x11f6fb(this[_0x3a5c30(0x1b4)],_0x3a5c30(0x1c7),_0x3f9b8f),'secondary':_0x11f6fb(this[_0x3a5c30(0x1b4)],_0x3a5c30(0x1bd))}}}}),_0x53c6c6=this[_0x3a5c30(0x195)]();return _0x53c6c6[_0x3a5c30(0x186)]({'attributes':{'class':[this[_0x3a5c30(0x17b)]['if'](_0x3a5c30(0x19f),_0x3a5c30(0x187),_0x51927d=>!_0x51927d)]}}),_0x4c1970['on'](_0x3a5c30(0x1ba),()=>{const _0x309896=_0x3a5c30;_0x4c1970[_0x309896(0x184)][_0x309896(0x1a0)](_0x53c6c6,0x1);}),_0x4c1970[_0x3a5c30(0x186)]({'attributes':{'class':[this[_0x3a5c30(0x17b)]['if'](_0x3a5c30(0x1be),_0x3a5c30(0x187),_0x1e93a1=>!_0x1e93a1)]}}),_0x4c1970;}[_0x2ba65e(0x188)](){const _0x347afc=_0x2ba65e,_0x24c3b1=new _0x19a6bb(this[_0x347afc(0x1b4)],_0x508129[_0x347afc(0x18f)]);return _0x24c3b1[_0x347afc(0x186)]({'attributes':{'class':[this[_0x347afc(0x17b)]['if'](_0x347afc(0x199),_0x347afc(0x187),_0xde0b48=>!_0xde0b48)]}}),_0x24c3b1;}[_0x2ba65e(0x195)](){const _0x1b67aa=_0x2ba65e,_0x131c15=new _0x321bd0(this[_0x1b67aa(0x1b4)]),_0x25033b=new _0x2fa2b4(this[_0x1b67aa(0x1b4)]);_0x25033b[_0x1b67aa(0x19d)]({'withText':!0x1,'icon':_0x7656ac,'class':_0x1b67aa(0x1b8)}),_0x25033b[_0x1b67aa(0x1c0)](_0x1b67aa(0x1bc))['to'](this,_0x1b67aa(0x19c),_0x49bcad=>!!_0x49bcad),_0x25033b['on'](_0x1b67aa(0x182),()=>{const _0x5a0d62=_0x1b67aa;this[_0x5a0d62(0x19f)]='';});const _0x34e9c9=this[_0x1b67aa(0x17b)];return _0x131c15[_0x1b67aa(0x18a)]({'tag':_0x1b67aa(0x178),'attributes':{'class':['ck',_0x1b67aa(0x1b2),_0x1b67aa(0x191)]},'children':[{'tag':'p','children':[{'text':_0x34e9c9['to'](_0x1b67aa(0x19f))}]},_0x25033b]}),_0x131c15;}[_0x2ba65e(0x192)](){const _0x353191=_0x2ba65e,_0x1af4a1=new _0x2fa2b4(this[_0x353191(0x1b4)]);_0x1af4a1[_0x353191(0x19d)]({'label':_0x11f6fb(this[_0x353191(0x1b4)],_0x353191(0x176)),'withText':!0x0,'icon':_0x1a20bf,'class':_0x353191(0x194)}),_0x1af4a1['on'](_0x353191(0x182),()=>{const _0x3622af=_0x353191;this[_0x3622af(0x18d)](_0x3622af(0x193));});const _0x4a4427=new _0x321bd0(this[_0x353191(0x1b4)]);return _0x4a4427[_0x353191(0x18a)]({'tag':_0x353191(0x178),'attributes':{'class':[_0x353191(0x173),this[_0x353191(0x17b)]['if'](_0x353191(0x1b0),_0x353191(0x187),_0x2eaa79=>!_0x2eaa79)]},'children':[{'tag':'p','attributes':{'class':[_0x353191(0x1c6)]},'children':[_0x11f6fb(this[_0x353191(0x1b4)],_0x353191(0x1c3))]},_0x1af4a1]}),_0x4a4427;}[_0x2ba65e(0x1b3)](_0x55d884,_0x8983e5){const _0x4332f1=_0x2ba65e,_0xa0e054=[];for(const _0x5f0f1c of _0x55d884){const _0xbb57a6=new _0x2bf9ba(_0x8983e5,_0x5f0f1c);_0xbb57a6[_0x4332f1(0x1b5)](..._0x44595a)['to'](this),_0xa0e054[_0x4332f1(0x17d)](_0xbb57a6);}return _0xa0e054;}[_0x2ba65e(0x1b6)](_0x521b9f){const _0x28f1f4=_0x2ba65e,_0x22a491=this[_0x28f1f4(0x1b4)]||'en',_0x17b7c2=[];for(const _0x1c9694 of _0x521b9f){const _0x23bd7c=this[_0x28f1f4(0x1b3)](_0x1c9694[_0x28f1f4(0x197)],_0x22a491);_0x17b7c2[_0x28f1f4(0x17d)](new _0x404ae4(_0x22a491,{'title':_0x1c9694[_0x28f1f4(0x18b)],'items':_0x23bd7c}));}this[_0x28f1f4(0x1b1)][_0x28f1f4(0x1a5)]=_0x17b7c2,this[_0x28f1f4(0x1b1)][_0x28f1f4(0x197)][_0x28f1f4(0x171)](),this[_0x28f1f4(0x1b1)][_0x28f1f4(0x197)][_0x28f1f4(0x16f)](_0x17b7c2),this[_0x28f1f4(0x19c)]=_0x521b9f[_0x28f1f4(0x180)](_0x55939b=>_0x55939b[_0x28f1f4(0x197)][_0x28f1f4(0x1ab)]>0x0),this[_0x28f1f4(0x189)]();}[_0x2ba65e(0x1aa)](_0x5a4dd2){const _0x48c3cd=_0x2ba65e;for(const _0x1c43a5 of this[_0x48c3cd(0x1b1)][_0x48c3cd(0x1a5)]){const _0x4db22f=_0x1c43a5[_0x48c3cd(0x1a9)](_0x5a4dd2);if(_0x4db22f){if(_0x1c43a5[_0x48c3cd(0x181)](_0x4db22f),0x0===_0x1c43a5[_0x48c3cd(0x1bf)][_0x48c3cd(0x1ab)]){const _0x213a35=this[_0x48c3cd(0x1b1)][_0x48c3cd(0x1a5)][_0x48c3cd(0x183)](_0x1c43a5);-0x1!==_0x213a35&&(this[_0x48c3cd(0x1b1)][_0x48c3cd(0x1a5)][_0x48c3cd(0x1af)](_0x213a35,0x1),this[_0x48c3cd(0x1b1)][_0x48c3cd(0x197)][_0x48c3cd(0x1c9)](_0x1c43a5));}this[_0x48c3cd(0x19c)]=this[_0x48c3cd(0x1b1)][_0x48c3cd(0x1a5)][_0x48c3cd(0x1ab)]>0x0,this[_0x48c3cd(0x189)]();break;}}}[_0x2ba65e(0x17f)](_0x3354cf,_0x54611e){const _0x49923e=_0x2ba65e;for(const _0x1da9b3 of this[_0x49923e(0x1b1)][_0x49923e(0x1a5)]){const _0x270f53=_0x1da9b3[_0x49923e(0x1a9)](_0x3354cf);if(_0x270f53){_0x270f53[_0x49923e(0x1a4)](_0x54611e);break;}}}[_0x2ba65e(0x198)](_0x840839,_0x5067e6,_0x593cfb){const _0x26db9b=_0x2ba65e;for(const _0x51dea4 of this[_0x26db9b(0x1b1)][_0x26db9b(0x1a5)]){const _0x5eb42d=_0x51dea4[_0x26db9b(0x1a9)](_0x840839);if(_0x5eb42d){_0x5eb42d[_0x26db9b(0x1ae)](_0x5067e6,_0x593cfb);break;}}}[_0x2ba65e(0x189)](){const _0x19c617=_0x2ba65e;if(this[_0x19c617(0x19c)]){const _0x58cb51=this[_0x19c617(0x190)][_0x19c617(0x172)][_0x19c617(0x179)]?.[_0x19c617(0x19b)]?.[_0x19c617(0x18e)]||'';this[_0x19c617(0x190)][_0x19c617(0x170)](_0x58cb51);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x359a9b=_0x2884;function _0x381c(){const _0x3305ee=['pluginName','9YftFxk','2277069PIwfVC','ai.chat.shortcuts','check','_aiChatUI','setWebSearch','locale','fire','activateTab','AIReviewModeUI','plugins','params','ai-chat-shortcuts-review-mode-not-found','isFromHistory','element','_validateShortcuts','addCurrentDocumentToChatContext','TRANSLATE','_shortcuts','config','chatModels','getModel','custom','hasFeedItem','language','args','665865KBpYpG','_switchTab','conversationCreated','AIChatShortcuts','includes','view','_runChatShortcut','setReasoning','interactionStarted','activeConversation','isPremiumPlugin','values','ai-chat-shortcuts-ai-tabs-not-found','chat-shortcuts','sendMessage','AIChat','_executeShortcut','execute','setModel','render','334257pcrjIe','listenTo','110CXVuTH','AIChatController','75604Yfxkeb','source','CHAT','ai-chat-shortcuts-invalid-config','string','has','781932pYWFZp','_runReviewShortcut','translate','init','type','context','5983880XIXumL','removeFeedItem','isOfficialPlugin','review','AITranslateUI','prompt','_shortcutsView','reviewMode','7YrVkum','_removeShortcuts','requires','getDefault','REVIEW','forEach','AITabs','runReviewCheck','_runTranslateShortcut','_injectShortcuts','length','destroy','ai-chat-shortcuts-translate-not-found','label','get','setPromptInputValue','find','chat','focusPromptInput','addFeedItemCustomElement','2802412LOYztV','10fQMyIs'];_0x381c=function(){return _0x3305ee;};return _0x381c();}(function(_0x1a7553,_0x51033a){const _0x486b0a=_0x2884,_0x99b578=_0x1a7553();while(!![]){try{const _0x41bc23=parseInt(_0x486b0a(0x19f))/0x1*(parseInt(_0x486b0a(0x176))/0x2)+-parseInt(_0x486b0a(0x1a2))/0x3+parseInt(_0x486b0a(0x19e))/0x4+-parseInt(_0x486b0a(0x15e))/0x5+parseInt(_0x486b0a(0x17c))/0x6*(-parseInt(_0x486b0a(0x18a))/0x7)+parseInt(_0x486b0a(0x182))/0x8*(parseInt(_0x486b0a(0x1a1))/0x9)+-parseInt(_0x486b0a(0x174))/0xa*(parseInt(_0x486b0a(0x172))/0xb);if(_0x41bc23===_0x51033a)break;else _0x99b578['push'](_0x99b578['shift']());}catch(_0x85089b){_0x99b578['push'](_0x99b578['shift']());}}}(_0x381c,0x72b49));import{AIChatUI as _0x5190c9}from'../aichat/aichatui.js';import{ContextPlugin as _0x47ca13}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x237ae5}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0xb4423f}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x359a9b(0x16b);export var AIChatShortcutType;!function(_0x9a1fc4){const _0x39cd42=_0x359a9b;_0x9a1fc4[_0x39cd42(0x178)]=_0x39cd42(0x19b),_0x9a1fc4[_0x39cd42(0x18e)]=_0x39cd42(0x185),_0x9a1fc4[_0x39cd42(0x155)]=_0x39cd42(0x17e);}(AIChatShortcutType||(AIChatShortcutType={}));function _0x2884(_0x50ecf9,_0x1c3d79){const _0x381ccf=_0x381c();return _0x2884=function(_0x288495,_0xdbd2c6){_0x288495=_0x288495-0x14b;let _0x4ae896=_0x381ccf[_0x288495];return _0x4ae896;},_0x2884(_0x50ecf9,_0x1c3d79);}export class AIChatShortcuts extends _0x47ca13{[_0x359a9b(0x156)];[_0x359a9b(0x188)];[_0x359a9b(0x1a5)];static get[_0x359a9b(0x18c)](){return[_0x5190c9];}static get[_0x359a9b(0x1a0)](){const _0x1fc4dc=_0x359a9b;return _0x1fc4dc(0x161);}static get[_0x359a9b(0x184)](){return!0x0;}static get[_0x359a9b(0x168)](){return!0x0;}[_0x359a9b(0x17f)](){const _0x5eb1bb=_0x359a9b;this[_0x5eb1bb(0x1a5)]=this[_0x5eb1bb(0x181)][_0x5eb1bb(0x14e)][_0x5eb1bb(0x198)](_0x5190c9),this[_0x5eb1bb(0x156)]=this[_0x5eb1bb(0x181)][_0x5eb1bb(0x157)][_0x5eb1bb(0x198)](_0x5eb1bb(0x1a3))??[];const _0x26e838=this[_0x5eb1bb(0x181)][_0x5eb1bb(0x14e)][_0x5eb1bb(0x198)](_0x5eb1bb(0x175));this[_0x5eb1bb(0x156)][_0x5eb1bb(0x194)]&&(this[_0x5eb1bb(0x153)](),this[_0x5eb1bb(0x1a5)]['on'](_0x5eb1bb(0x160),()=>{const _0x5cc2cf=_0x5eb1bb;_0x26e838[_0x5cc2cf(0x167)][_0x5cc2cf(0x151)]||this[_0x5cc2cf(0x193)]();}),this[_0x5eb1bb(0x173)](_0x26e838,_0x5eb1bb(0x166),()=>{const _0xa94dc8=_0x5eb1bb;this[_0xa94dc8(0x18b)]();}));}[_0x359a9b(0x153)](){const _0x2962ee=_0x359a9b,_0x16157c=Object[_0x2962ee(0x169)](AIChatShortcutType);this[_0x2962ee(0x156)][_0x2962ee(0x18f)](_0x330913=>{const _0x468d0c=_0x2962ee;let _0x2b05c0=!0x0;if(_0x330913['id']&&_0x330913[_0x468d0c(0x197)]&&_0x16157c[_0x468d0c(0x162)](_0x330913[_0x468d0c(0x180)])?_0x468d0c(0x19b)===_0x330913[_0x468d0c(0x180)]&&(_0x2b05c0=_0x468d0c(0x17a)==typeof _0x330913[_0x468d0c(0x187)]):_0x2b05c0=!0x1,!_0x2b05c0)throw new _0xb4423f(_0x468d0c(0x179),this[_0x468d0c(0x181)],{'shortcut':_0x330913});});}[_0x359a9b(0x193)](){const _0x430f51=_0x359a9b,_0x336af5=this[_0x430f51(0x181)][_0x430f51(0x14e)][_0x430f51(0x198)](_0x5190c9);this[_0x430f51(0x188)]=new _0x237ae5(this[_0x430f51(0x181)][_0x430f51(0x1a7)],this[_0x430f51(0x156)]),this[_0x430f51(0x188)][_0x430f51(0x171)](),_0x336af5[_0x430f51(0x19d)](this[_0x430f51(0x188)][_0x430f51(0x152)],Ut),this[_0x430f51(0x188)]['on'](_0x430f51(0x16f),_0x2593b4=>{const _0x2ce7cc=_0x430f51,_0x4f9412=_0x2593b4[_0x2ce7cc(0x177)]['id'];this[_0x2ce7cc(0x16e)](_0x4f9412);});}[_0x359a9b(0x18b)](){const _0x12e066=_0x359a9b,_0x5b250c=this[_0x12e066(0x181)][_0x12e066(0x14e)][_0x12e066(0x198)](_0x5190c9);_0x5b250c[_0x12e066(0x15b)](Ut)&&_0x5b250c[_0x12e066(0x183)](Ut),this[_0x12e066(0x188)]?.[_0x12e066(0x195)]();}[_0x359a9b(0x16e)](_0x76ab58){const _0x51a8f5=_0x359a9b,_0x4b0bb6=this[_0x51a8f5(0x156)][_0x51a8f5(0x19a)](_0x23dc7e=>_0x23dc7e['id']===_0x76ab58),_0x384a74=_0x4b0bb6[_0x51a8f5(0x180)];_0x51a8f5(0x19b)===_0x384a74?this[_0x51a8f5(0x164)](_0x4b0bb6):_0x51a8f5(0x185)===_0x384a74?_0x4b0bb6[_0x51a8f5(0x1a4)]?this[_0x51a8f5(0x17d)](_0x4b0bb6):this[_0x51a8f5(0x15f)](_0x51a8f5(0x189)):_0x51a8f5(0x17e)===_0x384a74&&(_0x4b0bb6[_0x51a8f5(0x15c)]?this[_0x51a8f5(0x192)](_0x4b0bb6):this[_0x51a8f5(0x15f)](_0x51a8f5(0x17e)));}[_0x359a9b(0x15f)](_0xe61a06){const _0x290550=_0x359a9b;if(!this[_0x290550(0x181)][_0x290550(0x14e)][_0x290550(0x17b)](_0x290550(0x190)))throw new _0xb4423f(_0x290550(0x16a),this[_0x290550(0x181)],{'tabName':_0xe61a06});this[_0x290550(0x181)][_0x290550(0x14e)][_0x290550(0x198)](_0x290550(0x190))[_0x290550(0x163)][_0x290550(0x14c)](_0xe61a06);}async[_0x359a9b(0x164)]({prompt:_0x5739d6,draftMode:_0x415b8c,useWebSearch:_0x47721f=!0x1,useReasoning:_0x1c83f6=!0x1,model:_0x320f79}){const _0x53ecb0=_0x359a9b,_0x448878=this[_0x53ecb0(0x181)][_0x53ecb0(0x14e)][_0x53ecb0(0x198)](_0x53ecb0(0x16d)),_0xc0cbf=this[_0x53ecb0(0x181)][_0x53ecb0(0x14e)][_0x53ecb0(0x198)](_0x53ecb0(0x175)),_0x52ddcb=_0xc0cbf[_0x53ecb0(0x167)];let _0x138fd4;_0x138fd4=_0x320f79?await _0x52ddcb[_0x53ecb0(0x158)][_0x53ecb0(0x159)](_0x320f79):await _0x52ddcb[_0x53ecb0(0x158)][_0x53ecb0(0x18d)](),_0x138fd4&&await _0x52ddcb[_0x53ecb0(0x170)](_0x138fd4),_0x52ddcb[_0x53ecb0(0x1a6)](_0x47721f),_0x52ddcb[_0x53ecb0(0x165)](_0x1c83f6),_0xc0cbf[_0x53ecb0(0x154)](),_0x415b8c?(this[_0x53ecb0(0x1a5)][_0x53ecb0(0x199)](_0x5739d6),this[_0x53ecb0(0x1a5)][_0x53ecb0(0x19c)](!0x0)):_0x448878[_0x53ecb0(0x16c)]({'message':_0x5739d6});}[_0x359a9b(0x17d)]({check:_0x2068da,model:_0xfe9724,prompt:_0x1ac91d,params:_0x42560c}){const _0x29c036=_0x359a9b;if(!this[_0x29c036(0x181)][_0x29c036(0x14e)][_0x29c036(0x17b)](_0x29c036(0x14d)))throw new _0xb4423f(_0x29c036(0x150),this[_0x29c036(0x181)]);this[_0x29c036(0x15f)](_0x29c036(0x189));const _0x1b54da={'id':_0x2068da,'isCustom':_0x29c036(0x15a)===_0x2068da};_0xfe9724&&_0x1ac91d&&(_0x1b54da[_0x29c036(0x15d)]={'model':_0xfe9724,'prompt':_0x1ac91d}),_0x42560c&&(_0x1b54da[_0x29c036(0x14f)]=_0x42560c),this[_0x29c036(0x181)][_0x29c036(0x14e)][_0x29c036(0x198)](_0x29c036(0x14d))[_0x29c036(0x14b)](_0x29c036(0x191),_0x1b54da);}[_0x359a9b(0x192)]({language:_0x12e5dc}){const _0x4da78e=_0x359a9b;if(!this[_0x4da78e(0x181)][_0x4da78e(0x14e)][_0x4da78e(0x17b)](_0x4da78e(0x186)))throw new _0xb4423f(_0x4da78e(0x196),this[_0x4da78e(0x181)]);this[_0x4da78e(0x15f)](_0x4da78e(0x17e)),this[_0x4da78e(0x181)][_0x4da78e(0x14e)][_0x4da78e(0x198)](_0x4da78e(0x186))[_0x4da78e(0x14b)](_0x4da78e(0x191),{'id':_0x12e5dc,'args':{'language':_0x12e5dc}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1f4f(_0x40ead0,_0x497994){const _0x1605ee=_0x1605();return _0x1f4f=function(_0x1f4ff5,_0x31074a){_0x1f4ff5=_0x1f4ff5-0xcb;let _0xee10f1=_0x1605ee[_0x1f4ff5];return _0xee10f1;},_0x1f4f(_0x40ead0,_0x497994);}const _0x305616=_0x1f4f;function _0x1605(){const _0x1fa544=['1481768QIdFjl','3626196RaTxRP','39ftWoFR','72616mRNKjg','execute','2618616loVHif','children','items','div','604496nYlzvE','508480RTeaDV','50GpLMZP','setTemplate','listView','addMany','map','add','locale','delegate','ck-ai-chat-shortcuts','369513eFRaae','1eTjWFV'];_0x1605=function(){return _0x1fa544;};return _0x1605();}(function(_0x175706,_0x3ea88e){const _0x314a89=_0x1f4f,_0x4918d3=_0x175706();while(!![]){try{const _0x1006af=-parseInt(_0x314a89(0xd4))/0x1*(-parseInt(_0x314a89(0xde))/0x2)+parseInt(_0x314a89(0xd7))/0x3*(parseInt(_0x314a89(0xd8))/0x4)+parseInt(_0x314a89(0xdf))/0x5+-parseInt(_0x314a89(0xd6))/0x6+parseInt(_0x314a89(0xda))/0x7+-parseInt(_0x314a89(0xd5))/0x8+parseInt(_0x314a89(0xd3))/0x9*(parseInt(_0x314a89(0xe0))/0xa);if(_0x1006af===_0x3ea88e)break;else _0x4918d3['push'](_0x4918d3['shift']());}catch(_0x1e98c4){_0x4918d3['push'](_0x4918d3['shift']());}}}(_0x1605,0x68ea4));import{ListItemView as _0x5156e5,ListView as _0x1d1179,View as _0x256863}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x108fa3}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x256863{[_0x305616(0xcc)];constructor(_0x4438a6,_0x1d7b07){const _0x202456=_0x305616;super(_0x4438a6);const _0x3478e7=_0x1d7b07[_0x202456(0xce)](_0x21d24a=>{const _0x236a5a=_0x202456,_0x2398ba=new _0x5156e5(this[_0x236a5a(0xd0)]),_0xdd79b4=new _0x108fa3(this[_0x236a5a(0xd0)],_0x21d24a);return _0x2398ba[_0x236a5a(0xdb)][_0x236a5a(0xcf)](_0xdd79b4),_0xdd79b4[_0x236a5a(0xd1)](_0x236a5a(0xd9))['to'](this),_0x2398ba;});this[_0x202456(0xcc)]=new _0x1d1179(this[_0x202456(0xd0)]),this[_0x202456(0xcc)][_0x202456(0xdc)][_0x202456(0xcd)](_0x3478e7),this[_0x202456(0xcb)]({'tag':_0x202456(0xdd),'attributes':{'class':['ck',_0x202456(0xd2)]},'children':[this[_0x202456(0xcc)]]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0xc88ff6,_0x4dc964){const _0x151cae=_0x351d,_0x3e32df=_0xc88ff6();while(!![]){try{const _0x29a19e=parseInt(_0x151cae(0x171))/0x1+parseInt(_0x151cae(0x173))/0x2+-parseInt(_0x151cae(0x175))/0x3+-parseInt(_0x151cae(0x17a))/0x4*(-parseInt(_0x151cae(0x16e))/0x5)+-parseInt(_0x151cae(0x172))/0x6*(parseInt(_0x151cae(0x170))/0x7)+-parseInt(_0x151cae(0x17c))/0x8*(parseInt(_0x151cae(0x16d))/0x9)+-parseInt(_0x151cae(0x176))/0xa*(-parseInt(_0x151cae(0x17e))/0xb);if(_0x29a19e===_0x4dc964)break;else _0x3e32df['push'](_0x3e32df['shift']());}catch(_0x21627f){_0x3e32df['push'](_0x3e32df['shift']());}}}(_0x5a75,0x35b91));function _0x351d(_0x2ce15a,_0x3e353d){const _0x5a757a=_0x5a75();return _0x351d=function(_0x351d9e,_0x47402d){_0x351d9e=_0x351d9e-0x16d;let _0x5b799d=_0x5a757a[_0x351d9e];return _0x5b799d;},_0x351d(_0x2ce15a,_0x3e353d);}function _0x5a75(){const _0x5a1eb6=['chat','61023XnqBkU','70PdtOfq','translate','ck-ai-chat-shortcut','icon','1268MYzrAQ','review','8IrwuaK','set','369996MvFFGY','label','3464271uXXUlY','2095YcSabz','extendTemplate','861pFppzY','73449vFabbp','768OolSfY','398658UhXOjJ'];_0x5a75=function(){return _0x5a1eb6;};return _0x5a75();}import{ButtonView as _0x157a19}from'ckeditor5/src/ui.js';import{IconAIChat as _0x45503f,IconAIReview as _0x9d5bc7,IconAITranslate as _0x427a6b}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x157a19{['id'];constructor(_0x5941ff,_0x258663){const _0x78c66d=_0x351d;super(_0x5941ff);const {id:_0x2ea989,type:_0x5e6934,icon:_0x3b1fbd}=_0x258663;this['id']=_0x2ea989,this[_0x78c66d(0x17d)]({'label':_0x258663[_0x78c66d(0x17f)],'withText':!0x0,'class':_0x78c66d(0x178)}),this[_0x78c66d(0x16f)]({'attributes':{'data-cke-ai-shortcut-id':_0x258663['id']}}),_0x3b1fbd?this[_0x78c66d(0x179)]=_0x3b1fbd:_0x78c66d(0x174)===_0x5e6934?this[_0x78c66d(0x179)]=_0x45503f:_0x78c66d(0x17b)===_0x5e6934?this[_0x78c66d(0x179)]=_0x9d5bc7:_0x78c66d(0x177)===_0x5e6934&&(this[_0x78c66d(0x179)]=_0x427a6b);}}
|