@ckeditor/ckeditor5-ai 47.7.3 → 47.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +16 -16
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.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.d.ts +21 -14
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4c7ff8=_0x38fa;function _0x11bf(){const _0x8ec6d8=['_handleEditTitle','_aiChatHistoryUi','1032140urMHxv','getItem','_showConversationHistory','plugins','change:activeConversation','itemUpdated','AI_CHAT_UNTITLED_CONVERSATION','activateTab','activeConversation','_setIsMaximized','setConversationPinned','remove','resizedTabs','init','AI_CHAT_HISTORY_ERROR_GENERIC','map','AI_CHAT_HISTORY_CATEGORY_PINNED','updateItems','resizeTabs','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','context','_handleRemove','_handleSelectConversation','rename','handleRemovedConversation','updateItemLoadingState','_generateErrorMessage','_updateHistoryItemsUI','isOfficialPlugin','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','getFullYear','items','operation','1666896ZyERDP','createdAt','_handleHistoryErrorUI','511308CTsorc','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','_setItemLoading','setDate','listenTo','12639WLwvDW','locale','title','isPremiumPlugin','setLoadingSkeleton','updateItemTitle','_aiChatController','removeItem','loadConversation','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','867644lDfdZE','chat','40ipaidk','pinned','error','getDate','218986EaBBMs','itemRemoved','push','resize','openChat','5zdVsnB','pin','_getCategorizedItems','AI_CHAT_HISTORY_CATEGORY_TODAY','unpin','getGroupId','requires','2279942sYsawU','removeHistoryItem','updateItemPinned','showError','history','length','itemId','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AIChatHistoryController','_aiConnector','getMonth','toLocaleDateString','updates','22slowEH','getItems','pluginName','AI_CHAT_HISTORY_CATEGORY_LATER','loadItems','view','editConversationTitle','_clearItemLoading','itemsLoaded','selectConversation','activateTab:history','get','_handleTogglePin','setIsMaximized','removeConversation','AI_CHAT_HISTORY_UNPIN_ACTION'];_0x11bf=function(){return _0x8ec6d8;};return _0x11bf();}(function(_0x21b399,_0x322cfd){const _0x43811d=_0x38fa,_0x23f3fe=_0x21b399();while(!![]){try{const _0x54c435=-parseInt(_0x43811d(0x1f7))/0x1+-parseInt(_0x43811d(0x1aa))/0x2*(parseInt(_0x43811d(0x1e7))/0x3)+parseInt(_0x43811d(0x1f1))/0x4*(parseInt(_0x43811d(0x1fc))/0x5)+-parseInt(_0x43811d(0x1df))/0x6+parseInt(_0x43811d(0x19d))/0x7+parseInt(_0x43811d(0x1f3))/0x8*(parseInt(_0x43811d(0x1e2))/0x9)+-parseInt(_0x43811d(0x1bc))/0xa;if(_0x54c435===_0x322cfd)break;else _0x23f3fe['push'](_0x23f3fe['shift']());}catch(_0x11e01f){_0x23f3fe['push'](_0x23f3fe['shift']());}}}(_0x11bf,0x2c05e));import{ContextPlugin as _0x16067f}from'ckeditor5/src/core.js';import{AIConnector as _0x42f7b1}from'../aicore/aiconnector.js';import{AIChatController as _0x24f538}from'../aichat/aichatcontroller.js';import{AITabs as _0x1cf6f5}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0xa0d749}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x3a1b60}from'./model/aichathistoryconversations.js';import{getTranslation as _0x78c028}from'../aicore/utils/common-translations.js';function _0x38fa(_0x54c180,_0x3af350){const _0x11bfdf=_0x11bf();return _0x38fa=function(_0x38facf,_0x1d5a25){_0x38facf=_0x38facf-0x198;let _0x11e0c7=_0x11bfdf[_0x38facf];return _0x11e0c7;},_0x38fa(_0x54c180,_0x3af350);}export class AIChatHistoryController extends _0x16067f{[_0x4c7ff8(0x1a6)];[_0x4c7ff8(0x1bb)];[_0x4c7ff8(0x1ed)];static get[_0x4c7ff8(0x19c)](){return[_0x42f7b1,_0x24f538,_0xa0d749,_0x1cf6f5];}static get[_0x4c7ff8(0x1ac)](){const _0x5a2fcb=_0x4c7ff8;return _0x5a2fcb(0x1a5);}static get[_0x4c7ff8(0x1d8)](){return!0x0;}static get[_0x4c7ff8(0x1ea)](){return!0x0;}[_0x4c7ff8(0x1c9)](){const _0x37114d=_0x4c7ff8;this[_0x37114d(0x1a6)]=this[_0x37114d(0x1d0)][_0x37114d(0x1bf)][_0x37114d(0x1b5)](_0x42f7b1),this[_0x37114d(0x1bb)]=this[_0x37114d(0x1d0)][_0x37114d(0x1bf)][_0x37114d(0x1b5)](_0xa0d749),this[_0x37114d(0x1ed)]=this[_0x37114d(0x1d0)][_0x37114d(0x1bf)][_0x37114d(0x1b5)](_0x24f538);const _0x175464=this[_0x37114d(0x1d0)][_0x37114d(0x1bf)][_0x37114d(0x1b5)](_0x1cf6f5);try{const _0x2621aa=this[_0x37114d(0x1ed)][_0x37114d(0x19b)]();this[_0x37114d(0x1a1)]=new _0x3a1b60({'connector':this[_0x37114d(0x1a6)],'group':_0x2621aa}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1b8),(_0x5a06fd,_0x542cbc)=>{const _0x5da827=_0x37114d;this[_0x5da827(0x1e4)](_0x542cbc['id'],_0x5da827(0x1c7)),this[_0x5da827(0x1d1)](_0x542cbc['id']);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1b0),(_0x3ee70b,_0x1555b2)=>{const _0x2b5775=_0x37114d;this[_0x2b5775(0x1e4)](_0x1555b2['id'],_0x2b5775(0x1d3)),this[_0x2b5775(0x1ba)](_0x1555b2['id'],_0x1555b2[_0x2b5775(0x1e9)]);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1a1)],_0x37114d(0x1c1),(_0x4638f0,_0x1568b5)=>{const _0x3aea9f=_0x37114d;void 0x0!==_0x1568b5[_0x3aea9f(0x1a9)][_0x3aea9f(0x1e9)]&&this[_0x3aea9f(0x1bb)][_0x3aea9f(0x1ec)](_0x1568b5[_0x3aea9f(0x1a3)],_0x1568b5[_0x3aea9f(0x1a9)][_0x3aea9f(0x1e9)]),void 0x0!==_0x1568b5[_0x3aea9f(0x1a9)][_0x3aea9f(0x1f4)]&&this[_0x3aea9f(0x1d7)](),this[_0x3aea9f(0x1b1)](_0x1568b5[_0x3aea9f(0x1a3)]);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1a1)],_0x37114d(0x1f8),(_0x4a7d3a,_0xa96515)=>{const _0x1893de=_0x37114d;this[_0x1893de(0x1ed)][_0x1893de(0x1d4)](_0xa96515[_0x1893de(0x1a3)]),this[_0x1893de(0x1bb)][_0x1893de(0x19e)](_0xa96515[_0x1893de(0x1a3)]),this[_0x1893de(0x1b1)](_0xa96515[_0x1893de(0x1a3)]);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1a1)],_0x37114d(0x1b2),()=>{const _0x34e2c8=_0x37114d;this[_0x34e2c8(0x1d7)]();}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1a1)],_0x37114d(0x1f5),(_0x31a64c,_0x12a853)=>{const _0x18cf6b=_0x37114d;this[_0x18cf6b(0x1e1)](_0x12a853[_0x18cf6b(0x1f5)],_0x12a853[_0x18cf6b(0x1de)],_0x12a853[_0x18cf6b(0x1a3)]);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1b3),(_0x3666a6,_0x2e02b2)=>{const _0x3f71d1=_0x37114d;this[_0x3f71d1(0x1d2)](_0x2e02b2['id']);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1c6),(_0x277fb2,_0x116e26)=>{const _0x269c55=_0x37114d,_0x34aa85=_0x116e26[_0x269c55(0x1f4)]?_0x269c55(0x1fd):_0x269c55(0x19a);this[_0x269c55(0x1e4)](_0x116e26['id'],_0x34aa85),this[_0x269c55(0x1b6)](_0x116e26['id'],_0x116e26[_0x269c55(0x1f4)]);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1fb),()=>{const _0x317a93=_0x37114d;_0x175464[_0x317a93(0x1af)][_0x317a93(0x1c3)](_0x317a93(0x1f2));}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1ed)],_0x37114d(0x1c0),()=>{const _0x566953=_0x37114d;this[_0x566953(0x1d7)]();}),_0x175464[_0x37114d(0x1af)]['on'](_0x37114d(0x1b4),()=>{const _0x5ef2dc=_0x37114d;this[_0x5ef2dc(0x1be)]();}),this[_0x37114d(0x1e6)](_0x175464,_0x37114d(0x1c8),(_0x1cf0d,_0x4d6b37)=>{const _0x4fec6c=_0x37114d;this[_0x4fec6c(0x1c5)](_0x4d6b37);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1ce),()=>{const _0x20a442=_0x37114d;_0x175464[_0x20a442(0x1fa)]();});}catch(_0x31436b){this[_0x37114d(0x1e1)](_0x31436b,_0x37114d(0x1c9));}}async[_0x4c7ff8(0x1ba)](_0x11e30c,_0x1aca74){const _0x3c93bb=_0x4c7ff8;await this[_0x3c93bb(0x1a1)][_0x3c93bb(0x1ec)](_0x11e30c,_0x1aca74);}async[_0x4c7ff8(0x1b6)](_0x192083,_0x4d4f5f){const _0x48d07d=_0x4c7ff8;await this[_0x48d07d(0x1a1)][_0x48d07d(0x19f)](_0x192083,_0x4d4f5f);}async[_0x4c7ff8(0x1d1)](_0x19799c){const _0x3400fc=_0x4c7ff8;await this[_0x3400fc(0x1a1)][_0x3400fc(0x1ee)](_0x19799c);}async[_0x4c7ff8(0x1d2)](_0x32e247){const _0x4fd4a5=_0x4c7ff8;await this[_0x4fd4a5(0x1ed)][_0x4fd4a5(0x1ef)](_0x32e247);}async[_0x4c7ff8(0x1be)](){const _0x1058c5=_0x4c7ff8;this[_0x1058c5(0x1bb)][_0x1058c5(0x1a0)](''),this[_0x1058c5(0x1bb)][_0x1058c5(0x1eb)](!0x0),await this[_0x1058c5(0x1a1)][_0x1058c5(0x1c9)](),this[_0x1058c5(0x1bb)][_0x1058c5(0x1eb)](!0x1);}[_0x4c7ff8(0x1d7)](){const _0x5cc8dc=_0x4c7ff8,_0x904062=this[_0x5cc8dc(0x1ed)][_0x5cc8dc(0x1c4)]?.['id'],_0x35d85d=this[_0x5cc8dc(0x198)]()[_0x5cc8dc(0x1cb)](_0x29b083=>({'title':_0x29b083[_0x5cc8dc(0x1e9)],'items':_0x29b083[_0x5cc8dc(0x1dd)][_0x5cc8dc(0x1cb)](_0x4595e3=>({'id':_0x4595e3['id'],'title':_0x4595e3[_0x5cc8dc(0x1e9)]||_0x78c028(this[_0x5cc8dc(0x1d0)][_0x5cc8dc(0x1e8)],_0x5cc8dc(0x1c2)),'createdAt':new Date(_0x4595e3[_0x5cc8dc(0x1e0)])[_0x5cc8dc(0x1a8)](),'active':_0x4595e3['id']===_0x904062,'pinned':_0x4595e3[_0x5cc8dc(0x1f4)]}))}));this[_0x5cc8dc(0x1bb)][_0x5cc8dc(0x1cd)](_0x35d85d);}[_0x4c7ff8(0x1e4)](_0x244d0f,_0x3f3be0){const _0x180a5e=_0x4c7ff8;this[_0x180a5e(0x1bb)][_0x180a5e(0x1d5)](_0x244d0f,_0x3f3be0,!0x0);}[_0x4c7ff8(0x1b1)](_0xfdda60){const _0x16051a=_0x4c7ff8;this[_0x16051a(0x1bb)][_0x16051a(0x1d5)](_0xfdda60,null,!0x1);}[_0x4c7ff8(0x1e1)](_0x15a645,_0x5c4e3f,_0x216968){const _0x4c8d90=_0x4c7ff8,_0x2d7599=this[_0x4c8d90(0x1d6)](_0x5c4e3f,_0x216968);this[_0x4c8d90(0x1bb)][_0x4c8d90(0x1a0)](_0x2d7599),_0x216968&&this[_0x4c8d90(0x1b1)](_0x216968),this[_0x4c8d90(0x1bb)][_0x4c8d90(0x1eb)](!0x1);}[_0x4c7ff8(0x1d6)](_0x6bcd0e,_0x32de4f){const _0x4e7101=_0x4c7ff8,_0x138291=_0x32de4f?this[_0x4e7101(0x1a1)][_0x4e7101(0x1bd)](_0x32de4f):null,_0x18af12=_0x138291?.[_0x4e7101(0x1e9)]||_0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1c2));switch(_0x6bcd0e){case _0x4e7101(0x1ec):return _0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1d9),_0x18af12);case _0x4e7101(0x19f):{const _0xfef68b=_0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x138291?.[_0x4e7101(0x1f4)]?_0x4e7101(0x1b9):_0x4e7101(0x1da));return _0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1a4),[_0xfef68b,_0x18af12]);}case _0x4e7101(0x1ee):return _0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1db),_0x18af12);case _0x4e7101(0x1c9):case _0x4e7101(0x1ae):return _0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1cf));default:return _0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1ca));}}[_0x4c7ff8(0x198)](){const _0x8814c3=_0x4c7ff8,_0x280b2f=new Date(),_0x535028=new Date(_0x280b2f[_0x8814c3(0x1dc)](),_0x280b2f[_0x8814c3(0x1a7)](),_0x280b2f[_0x8814c3(0x1f6)]()),_0x57ec02=new Date(_0x535028);_0x57ec02[_0x8814c3(0x1e5)](_0x57ec02[_0x8814c3(0x1f6)]()-0x1);const _0x3f82ba=new Date(_0x535028);_0x3f82ba[_0x8814c3(0x1e5)](_0x3f82ba[_0x8814c3(0x1f6)]()-0xe);const _0x11ee5b=this[_0x8814c3(0x1a1)][_0x8814c3(0x1ab)]({'pinned':!0x0}),_0x85d9d3=this[_0x8814c3(0x1a1)][_0x8814c3(0x1ab)]({'from':_0x535028,'to':_0x535028}),_0x46bebd=this[_0x8814c3(0x1a1)][_0x8814c3(0x1ab)]({'from':_0x57ec02,'to':_0x57ec02}),_0x192005=this[_0x8814c3(0x1a1)][_0x8814c3(0x1ab)]({'from':_0x3f82ba,'to':_0x57ec02}),_0x491b4f=this[_0x8814c3(0x1a1)][_0x8814c3(0x1ab)]({'to':_0x3f82ba}),_0x1390fc=[];return _0x11ee5b[_0x8814c3(0x1a2)]>0x0&&_0x1390fc[_0x8814c3(0x1f9)]({'title':_0x78c028(this[_0x8814c3(0x1d0)][_0x8814c3(0x1e8)],_0x8814c3(0x1cc)),'items':_0x11ee5b}),_0x85d9d3[_0x8814c3(0x1a2)]>0x0&&_0x1390fc[_0x8814c3(0x1f9)]({'title':_0x78c028(this[_0x8814c3(0x1d0)][_0x8814c3(0x1e8)],_0x8814c3(0x199)),'items':_0x85d9d3}),_0x46bebd[_0x8814c3(0x1a2)]>0x0&&_0x1390fc[_0x8814c3(0x1f9)]({'title':_0x78c028(this[_0x8814c3(0x1d0)][_0x8814c3(0x1e8)],_0x8814c3(0x1f0)),'items':_0x46bebd}),_0x192005[_0x8814c3(0x1a2)]>0x0&&_0x1390fc[_0x8814c3(0x1f9)]({'title':_0x78c028(this[_0x8814c3(0x1d0)][_0x8814c3(0x1e8)],_0x8814c3(0x1e3)),'items':_0x192005}),_0x491b4f[_0x8814c3(0x1a2)]>0x0&&_0x1390fc[_0x8814c3(0x1f9)]({'title':_0x78c028(this[_0x8814c3(0x1d0)][_0x8814c3(0x1e8)],_0x8814c3(0x1ad)),'items':_0x491b4f}),_0x1390fc;}[_0x4c7ff8(0x1c5)](_0x580706){const _0x3f78cb=_0x4c7ff8;this[_0x3f78cb(0x1bb)][_0x3f78cb(0x1b7)](_0x580706);}}
|
|
23
|
+
const _0x471343=_0x2661;(function(_0x45d416,_0x53068a){const _0x18052a=_0x2661,_0x2f2823=_0x45d416();while(!![]){try{const _0x306430=parseInt(_0x18052a(0x1bd))/0x1+parseInt(_0x18052a(0x1f3))/0x2+parseInt(_0x18052a(0x19d))/0x3*(parseInt(_0x18052a(0x1b6))/0x4)+parseInt(_0x18052a(0x1e5))/0x5+parseInt(_0x18052a(0x1dc))/0x6*(-parseInt(_0x18052a(0x1e8))/0x7)+parseInt(_0x18052a(0x1b7))/0x8+-parseInt(_0x18052a(0x1ad))/0x9;if(_0x306430===_0x53068a)break;else _0x2f2823['push'](_0x2f2823['shift']());}catch(_0x533aa1){_0x2f2823['push'](_0x2f2823['shift']());}}}(_0x4328,0xd3cd3));function _0x4328(){const _0x35296e=['AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_UNTITLED_CONVERSATION','7UQrLrq','_aiChatController','pin','_showConversationHistory','_aiChatHistoryUi','createdAt','_aiConnector','updates','loadConversation','error','title','1265508sFGSjf','plugins','change:activeConversation','history','operation','_updateHistoryItemsUI','listenTo','push','pluginName','map','itemsLoaded','pinned','_handleEditTitle','locale','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','1644mTRThk','isPremiumPlugin','AIChatHistoryController','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','resize','items','setDate','resizedTabs','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','activateTab','chat','_handleHistoryErrorUI','isOfficialPlugin','AI_CHAT_HISTORY_ERROR_GENERIC','updateItemTitle','removeHistoryItem','9674307QZIhTd','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','openChat','AI_CHAT_HISTORY_CATEGORY_TODAY','unpin','loadItems','getItem','selectConversation','itemId','436kwiYTs','848416lcENYc','requires','AI_CHAT_HISTORY_CATEGORY_PINNED','showError','removeConversation','updateItems','557109ahoOib','_handleTogglePin','length','itemRemoved','get','getMonth','context','_setIsMaximized','activeConversation','_handleSelectConversation','setConversationPinned','getGroupId','editConversationTitle','_handleRemove','removeItem','_getCategorizedItems','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','rename','_clearItemLoading','toLocaleDateString','remove','getFullYear','itemUpdated','_setItemLoading','init','AI_CHAT_HISTORY_CATEGORY_LATER','getItems','getDate','AI_CHAT_HISTORY_UNPIN_ACTION','resizeTabs','activateTab:history','642156ChRFdc','_generateErrorMessage','view','setLoadingSkeleton','updateItemLoadingState','AI_CHAT_HISTORY_PIN_ACTION','updateItemPinned','setIsMaximized','handleRemovedConversation','3469205AagKBK'];_0x4328=function(){return _0x35296e;};return _0x4328();}import{ContextPlugin as _0x30cee3}from'ckeditor5/src/core.js';import{AIConnector as _0x3c8542}from'../aicore/aiconnector.js';import{AIChatController as _0x15349c}from'../aichat/aichatcontroller.js';import{AITabs as _0x59bb0c}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x3ca142}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x2a393d}from'./model/aichathistoryconversations.js';import{getTranslation as _0x424e70}from'../aicore/utils/common-translations.js';function _0x2661(_0x2c2213,_0x48bdc1){const _0x4328bc=_0x4328();return _0x2661=function(_0x266184,_0x2782c2){_0x266184=_0x266184-0x194;let _0x35e0ba=_0x4328bc[_0x266184];return _0x35e0ba;},_0x2661(_0x2c2213,_0x48bdc1);}export class AIChatHistoryController extends _0x30cee3{[_0x471343(0x1ee)];[_0x471343(0x1ec)];[_0x471343(0x1e9)];static get[_0x471343(0x1b8)](){return[_0x3c8542,_0x15349c,_0x3ca142,_0x59bb0c];}static get[_0x471343(0x196)](){const _0x3e40fe=_0x471343;return _0x3e40fe(0x19f);}static get[_0x471343(0x1a9)](){return!0x0;}static get[_0x471343(0x19e)](){return!0x0;}[_0x471343(0x1d5)](){const _0x4273eb=_0x471343;this[_0x4273eb(0x1ee)]=this[_0x4273eb(0x1c3)][_0x4273eb(0x1f4)][_0x4273eb(0x1c1)](_0x3c8542),this[_0x4273eb(0x1ec)]=this[_0x4273eb(0x1c3)][_0x4273eb(0x1f4)][_0x4273eb(0x1c1)](_0x3ca142),this[_0x4273eb(0x1e9)]=this[_0x4273eb(0x1c3)][_0x4273eb(0x1f4)][_0x4273eb(0x1c1)](_0x15349c);const _0x824e8e=this[_0x4273eb(0x1c3)][_0x4273eb(0x1f4)][_0x4273eb(0x1c1)](_0x59bb0c);try{const _0x2ca708=this[_0x4273eb(0x1e9)][_0x4273eb(0x1c8)]();this[_0x4273eb(0x1f6)]=new _0x2a393d({'connector':this[_0x4273eb(0x1ee)],'group':_0x2ca708}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1bb),(_0x305f9a,_0x22b950)=>{const _0x182ea0=_0x4273eb;this[_0x182ea0(0x1d4)](_0x22b950['id'],_0x182ea0(0x1d1)),this[_0x182ea0(0x1ca)](_0x22b950['id']);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1c9),(_0x30856d,_0x44691f)=>{const _0x3e6281=_0x4273eb;this[_0x3e6281(0x1d4)](_0x44691f['id'],_0x3e6281(0x1ce)),this[_0x3e6281(0x19a)](_0x44691f['id'],_0x44691f[_0x3e6281(0x1f2)]);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1f6)],_0x4273eb(0x1d3),(_0x465c35,_0x25447d)=>{const _0x2e93ee=_0x4273eb;void 0x0!==_0x25447d[_0x2e93ee(0x1ef)][_0x2e93ee(0x1f2)]&&this[_0x2e93ee(0x1ec)][_0x2e93ee(0x1ab)](_0x25447d[_0x2e93ee(0x1b5)],_0x25447d[_0x2e93ee(0x1ef)][_0x2e93ee(0x1f2)]),void 0x0!==_0x25447d[_0x2e93ee(0x1ef)][_0x2e93ee(0x199)]&&this[_0x2e93ee(0x1f8)](),this[_0x2e93ee(0x1cf)](_0x25447d[_0x2e93ee(0x1b5)]);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1f6)],_0x4273eb(0x1c0),(_0x465a34,_0x9d15e2)=>{const _0x3e05bf=_0x4273eb;this[_0x3e05bf(0x1e9)][_0x3e05bf(0x1e4)](_0x9d15e2[_0x3e05bf(0x1b5)]),this[_0x3e05bf(0x1ec)][_0x3e05bf(0x1ac)](_0x9d15e2[_0x3e05bf(0x1b5)]),this[_0x3e05bf(0x1cf)](_0x9d15e2[_0x3e05bf(0x1b5)]);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1f6)],_0x4273eb(0x198),()=>{const _0x424bf6=_0x4273eb;this[_0x424bf6(0x1f8)]();}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1f6)],_0x4273eb(0x1f1),(_0x1b8091,_0x59f649)=>{const _0x13e876=_0x4273eb;this[_0x13e876(0x1a8)](_0x59f649[_0x13e876(0x1f1)],_0x59f649[_0x13e876(0x1f7)],_0x59f649[_0x13e876(0x1b5)]);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1b4),(_0x449022,_0x41a585)=>{const _0x5f564b=_0x4273eb;this[_0x5f564b(0x1c6)](_0x41a585['id']);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1c7),(_0x5719be,_0x36e6e2)=>{const _0x5a32bb=_0x4273eb,_0xed4796=_0x36e6e2[_0x5a32bb(0x199)]?_0x5a32bb(0x1ea):_0x5a32bb(0x1b1);this[_0x5a32bb(0x1d4)](_0x36e6e2['id'],_0xed4796),this[_0x5a32bb(0x1be)](_0x36e6e2['id'],_0x36e6e2[_0x5a32bb(0x199)]);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1af),()=>{const _0x1f421=_0x4273eb;_0x824e8e[_0x1f421(0x1de)][_0x1f421(0x1a6)](_0x1f421(0x1a7));}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1e9)],_0x4273eb(0x1f5),()=>{const _0x406c5a=_0x4273eb;this[_0x406c5a(0x1f8)]();}),_0x824e8e[_0x4273eb(0x1de)]['on'](_0x4273eb(0x1db),()=>{const _0x289c42=_0x4273eb;this[_0x289c42(0x1eb)]();}),this[_0x4273eb(0x194)](_0x824e8e,_0x4273eb(0x1a4),(_0x5be95c,_0x350871)=>{const _0x2deb12=_0x4273eb;this[_0x2deb12(0x1c4)](_0x350871);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1da),()=>{const _0x4496f4=_0x4273eb;_0x824e8e[_0x4496f4(0x1a1)]();});}catch(_0x58b846){this[_0x4273eb(0x1a8)](_0x58b846,_0x4273eb(0x1d5));}}async[_0x471343(0x19a)](_0x2346bf,_0x168458){const _0x12122f=_0x471343;await this[_0x12122f(0x1f6)][_0x12122f(0x1ab)](_0x2346bf,_0x168458);}async[_0x471343(0x1be)](_0x2371b5,_0x321b06){const _0x327d3d=_0x471343;await this[_0x327d3d(0x1f6)][_0x327d3d(0x1e2)](_0x2371b5,_0x321b06);}async[_0x471343(0x1ca)](_0x5859c4){const _0x1bc381=_0x471343;await this[_0x1bc381(0x1f6)][_0x1bc381(0x1cb)](_0x5859c4);}async[_0x471343(0x1c6)](_0x510106){const _0x123ccf=_0x471343;await this[_0x123ccf(0x1e9)][_0x123ccf(0x1f0)](_0x510106);}async[_0x471343(0x1eb)](){const _0x56a25f=_0x471343;this[_0x56a25f(0x1ec)][_0x56a25f(0x1ba)](''),this[_0x56a25f(0x1ec)][_0x56a25f(0x1df)](!0x0),await this[_0x56a25f(0x1f6)][_0x56a25f(0x1d5)](),this[_0x56a25f(0x1ec)][_0x56a25f(0x1df)](!0x1);}[_0x471343(0x1f8)](){const _0x2b15f9=_0x471343,_0x251d91=this[_0x2b15f9(0x1e9)][_0x2b15f9(0x1c5)]?.['id'],_0x4d98a9=this[_0x2b15f9(0x1cc)]()[_0x2b15f9(0x197)](_0x2bb443=>({'title':_0x2bb443[_0x2b15f9(0x1f2)],'items':_0x2bb443[_0x2b15f9(0x1a2)][_0x2b15f9(0x197)](_0x24c2bc=>({'id':_0x24c2bc['id'],'title':_0x24c2bc[_0x2b15f9(0x1f2)]||_0x424e70(this[_0x2b15f9(0x1c3)][_0x2b15f9(0x19b)],_0x2b15f9(0x1e7)),'createdAt':new Date(_0x24c2bc[_0x2b15f9(0x1ed)])[_0x2b15f9(0x1d0)](),'active':_0x24c2bc['id']===_0x251d91,'pinned':_0x24c2bc[_0x2b15f9(0x199)]}))}));this[_0x2b15f9(0x1ec)][_0x2b15f9(0x1bc)](_0x4d98a9);}[_0x471343(0x1d4)](_0x3d0088,_0x958601){const _0x18ead1=_0x471343;this[_0x18ead1(0x1ec)][_0x18ead1(0x1e0)](_0x3d0088,_0x958601,!0x0);}[_0x471343(0x1cf)](_0x3c996e){const _0x4e16a6=_0x471343;this[_0x4e16a6(0x1ec)][_0x4e16a6(0x1e0)](_0x3c996e,null,!0x1);}[_0x471343(0x1a8)](_0x329f12,_0x892f7,_0xe87685){const _0x48e5d8=_0x471343,_0x532bed=this[_0x48e5d8(0x1dd)](_0x892f7,_0xe87685);this[_0x48e5d8(0x1ec)][_0x48e5d8(0x1ba)](_0x532bed),_0xe87685&&this[_0x48e5d8(0x1cf)](_0xe87685),this[_0x48e5d8(0x1ec)][_0x48e5d8(0x1df)](!0x1);}[_0x471343(0x1dd)](_0x5a169e,_0xe1641c){const _0x115a9a=_0x471343,_0x5ba3b1=_0xe1641c?this[_0x115a9a(0x1f6)][_0x115a9a(0x1b3)](_0xe1641c):null,_0x57028b=_0x5ba3b1?.[_0x115a9a(0x1f2)]||_0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x1e7));switch(_0x5a169e){case _0x115a9a(0x1ab):return _0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x1ae),_0x57028b);case _0x115a9a(0x1e2):{const _0x5604f0=_0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x5ba3b1?.[_0x115a9a(0x199)]?_0x115a9a(0x1d9):_0x115a9a(0x1e1));return _0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x1e6),[_0x5604f0,_0x57028b]);}case _0x115a9a(0x1cb):return _0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x1a0),_0x57028b);case _0x115a9a(0x1d5):case _0x115a9a(0x1b2):return _0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x19c));default:return _0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x1aa));}}[_0x471343(0x1cc)](){const _0x75b809=_0x471343,_0x51c43a=new Date(),_0x31f616=new Date(_0x51c43a[_0x75b809(0x1d2)](),_0x51c43a[_0x75b809(0x1c2)](),_0x51c43a[_0x75b809(0x1d8)]()),_0x5a9fc2=new Date(_0x31f616);_0x5a9fc2[_0x75b809(0x1a3)](_0x5a9fc2[_0x75b809(0x1d8)]()-0x1);const _0x675573=new Date(_0x31f616);_0x675573[_0x75b809(0x1a3)](_0x675573[_0x75b809(0x1d8)]()-0xe);const _0x9898d4=this[_0x75b809(0x1f6)][_0x75b809(0x1d7)]({'pinned':!0x0}),_0x43f047=this[_0x75b809(0x1f6)][_0x75b809(0x1d7)]({'from':_0x31f616,'to':_0x31f616}),_0x46eae8=this[_0x75b809(0x1f6)][_0x75b809(0x1d7)]({'from':_0x5a9fc2,'to':_0x5a9fc2}),_0x314e9d=this[_0x75b809(0x1f6)][_0x75b809(0x1d7)]({'from':_0x675573,'to':_0x5a9fc2}),_0x2c15d0=this[_0x75b809(0x1f6)][_0x75b809(0x1d7)]({'to':_0x675573}),_0xc4d27b=[];return _0x9898d4[_0x75b809(0x1bf)]>0x0&&_0xc4d27b[_0x75b809(0x195)]({'title':_0x424e70(this[_0x75b809(0x1c3)][_0x75b809(0x19b)],_0x75b809(0x1b9)),'items':_0x9898d4}),_0x43f047[_0x75b809(0x1bf)]>0x0&&_0xc4d27b[_0x75b809(0x195)]({'title':_0x424e70(this[_0x75b809(0x1c3)][_0x75b809(0x19b)],_0x75b809(0x1b0)),'items':_0x43f047}),_0x46eae8[_0x75b809(0x1bf)]>0x0&&_0xc4d27b[_0x75b809(0x195)]({'title':_0x424e70(this[_0x75b809(0x1c3)][_0x75b809(0x19b)],_0x75b809(0x1a5)),'items':_0x46eae8}),_0x314e9d[_0x75b809(0x1bf)]>0x0&&_0xc4d27b[_0x75b809(0x195)]({'title':_0x424e70(this[_0x75b809(0x1c3)][_0x75b809(0x19b)],_0x75b809(0x1cd)),'items':_0x314e9d}),_0x2c15d0[_0x75b809(0x1bf)]>0x0&&_0xc4d27b[_0x75b809(0x195)]({'title':_0x424e70(this[_0x75b809(0x1c3)][_0x75b809(0x19b)],_0x75b809(0x1d6)),'items':_0x2c15d0}),_0xc4d27b;}[_0x471343(0x1c4)](_0xf7a2a5){const _0x419cd7=_0x471343;this[_0x419cd7(0x1ec)][_0x419cd7(0x1e3)](_0xf7a2a5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1d84(_0x3b8627,_0x515944){const _0x438c9e=_0x438c();return _0x1d84=function(_0x1d8440,_0xd2ca65){_0x1d8440=_0x1d8440-0x1c7;let _0x4bccad=_0x438c9e[_0x1d8440];return _0x4bccad;},_0x1d84(_0x3b8627,_0x515944);}const _0x59b127=_0x1d84;(function(_0x151f70,_0x18a4e2){const _0x418f11=_0x1d84,_0x6fbc20=_0x151f70();while(!![]){try{const _0x20d50b=-parseInt(_0x418f11(0x1e4))/0x1+-parseInt(_0x418f11(0x1f3))/0x2+parseInt(_0x418f11(0x1c9))/0x3+-parseInt(_0x418f11(0x1df))/0x4*(-parseInt(_0x418f11(0x1e9))/0x5)+-parseInt(_0x418f11(0x1e6))/0x6*(parseInt(_0x418f11(0x1ee))/0x7)+-parseInt(_0x418f11(0x1e3))/0x8+parseInt(_0x418f11(0x1dc))/0x9*(parseInt(_0x418f11(0x1cd))/0xa);if(_0x20d50b===_0x18a4e2)break;else _0x6fbc20['push'](_0x6fbc20['shift']());}catch(_0x2efe19){_0x6fbc20['push'](_0x6fbc20['shift']());}}}(_0x438c,0xa058e));import{ContextPlugin as _0x3b2df5}from'ckeditor5/src/core.js';import{AITabs as _0x453d15}from'../aitabs/aitabs.js';import{IconAIHistory as _0x146ab8}from'ckeditor5/src/icons.js';function _0x438c(){const _0x35797a=['7975672hyoBTI','81663beeeZB','context','2004GgtYQG','history','addTab','180qTXpck','plugins','view','updateItems','pluginName','7784mGxEag','AITabs','setConversationPinned','requires','updateHistoryItemsWithCategories','1466306MvsLoQ','updateItemTitle','_historyView','removeHistoryItem','3229875cITcAk','showResizeButton','selectConversation','isLoading','579480cDVTlb','isPremiumPlugin','locale','isOfficialPlugin','openChat','editConversationTitle','resizeTabs','showError','AIChatHistoryUI','delegate','updateItemLoadingState','errorMessage','removeConversation','isMaximized','get','171zQzeoX','setIsMaximized','AI_CHAT_HISTORY_HEADING','73592TSzNOq','hideError','showConversationHistory','setLoadingSkeleton'];_0x438c=function(){return _0x35797a;};return _0x438c();}import{AIChatHistoryView as _0x36d302}from'./ui/aichathistoryview.js';import{getTranslation as _0x2229e9}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x59b127(0x1e1),_0x59b127(0x1d9),_0x59b127(0x1d2),_0x59b127(0x1f0),_0x59b127(0x1cb),_0x59b127(0x1d1),_0x59b127(0x1d3)];export class AIChatHistoryUI extends _0x3b2df5{static get[_0x59b127(0x1f1)](){return[_0x453d15];}[_0x59b127(0x1c7)];static get[_0x59b127(0x1ed)](){const _0x12749e=_0x59b127;return _0x12749e(0x1d5);}static get[_0x59b127(0x1d0)](){return!0x0;}static get[_0x59b127(0x1ce)](){return!0x0;}constructor(_0x4ffb8a){const _0x2832f3=_0x59b127;super(_0x4ffb8a);const _0x2acddb=this[_0x2832f3(0x1e5)][_0x2832f3(0x1ea)][_0x2832f3(0x1db)](_0x2832f3(0x1ef));this[_0x2832f3(0x1c7)]=new _0x36d302(this[_0x2832f3(0x1e5)][_0x2832f3(0x1cf)],_0x2acddb[_0x2832f3(0x1ca)]),this[_0x2832f3(0x1c7)][_0x2832f3(0x1d6)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x2acddb[_0x2832f3(0x1eb)][_0x2832f3(0x1e8)]({'id':_0x2832f3(0x1e7),'buttonLabel':_0x2229e9(this[_0x2832f3(0x1e5)][_0x2832f3(0x1cf)],_0x2832f3(0x1de)),'buttonIcon':_0x146ab8,'order':0x0,'content':this[_0x2832f3(0x1c7)]});}[_0x59b127(0x1c8)](_0x49215f){const _0x48b0a9=_0x59b127;this[_0x48b0a9(0x1c7)][_0x48b0a9(0x1c8)](_0x49215f);}[_0x59b127(0x1ec)](_0x23321f){const _0x4d2311=_0x59b127;this[_0x4d2311(0x1c7)][_0x4d2311(0x1f2)](_0x23321f);}[_0x59b127(0x1f4)](_0x59c328,_0xc5f367){const _0x59866e=_0x59b127;this[_0x59866e(0x1c7)][_0x59866e(0x1f4)](_0x59c328,_0xc5f367);}[_0x59b127(0x1d7)](_0x20b4f3,_0x256d43,_0x22db11){const _0x2484a1=_0x59b127;this[_0x2484a1(0x1c7)][_0x2484a1(0x1d7)](_0x20b4f3,_0x256d43,_0x22db11);}[_0x59b127(0x1e2)](_0x41cb92){const _0xa034ed=_0x59b127;this[_0xa034ed(0x1c7)][_0xa034ed(0x1cc)]=_0x41cb92;}[_0x59b127(0x1d4)](_0xb882a9){const _0x3f9ccf=_0x59b127;this[_0x3f9ccf(0x1c7)][_0x3f9ccf(0x1d8)]=_0xb882a9;}[_0x59b127(0x1e0)](){const _0x1faca2=_0x59b127;this[_0x1faca2(0x1c7)][_0x1faca2(0x1d8)]='';}[_0x59b127(0x1dd)](_0x30648c){const _0x245ed6=_0x59b127;this[_0x245ed6(0x1c7)][_0x245ed6(0x1da)]=_0x30648c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1fa5(_0x40be89,_0x2f0ed6){const _0x5113ef=_0x5113();return _0x1fa5=function(_0x1fa51a,_0x58f610){_0x1fa51a=_0x1fa51a-0x129;let _0x3062a0=_0x5113ef[_0x1fa51a];return _0x3062a0;},_0x1fa5(_0x40be89,_0x2f0ed6);}const _0x4719f3=_0x1fa5;function _0x5113(){const _0x448728=['1337649AArgGv','from','getResult','init','getMonth','updateItemPinned','itemsLoaded','push','1387640CCNIUD','6WxJTzm','find','execute','307070QHKWQP','getFullYear','getItem','filter','itemRemoved','pinned','connector','removeItem','error','updateTitle','updateItemTitle','splice','map','findIndex','getConversations','getDate','addItem','getTime','deleteConversation','fire','961289WyuFCO','getItems','loadItems','items','group','createdAt','updatePinned','99wutpzc','5TvFrdv','279902ZxYORx','fetchConversations','1824108LBVtSF','618984BxxEOn','itemUpdated','updateConversation'];_0x5113=function(){return _0x448728;};return _0x5113();}(function(_0x366760,_0x10843b){const _0x150402=_0x1fa5,_0x3cab79=_0x366760();while(!![]){try{const _0x158b94=-parseInt(_0x150402(0x144))/0x1+parseInt(_0x150402(0x156))/0x2+-parseInt(_0x150402(0x14a))/0x3+parseInt(_0x150402(0x146))/0x4*(parseInt(_0x150402(0x143))/0x5)+parseInt(_0x150402(0x153))/0x6*(-parseInt(_0x150402(0x13b))/0x7)+parseInt(_0x150402(0x147))/0x8*(parseInt(_0x150402(0x142))/0x9)+-parseInt(_0x150402(0x152))/0xa;if(_0x158b94===_0x10843b)break;else _0x3cab79['push'](_0x3cab79['shift']());}catch(_0x5dbd74){_0x3cab79['push'](_0x3cab79['shift']());}}}(_0x5113,0x70025));import{EmitterMixin as _0x40bef9}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x3e8b0c}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x40bef9(){[_0x4719f3(0x13e)]=[];[_0x4719f3(0x12d)];[_0x4719f3(0x13f)];constructor({connector:_0x13cca3,group:_0x2f5b89}){const _0x91e4bd=_0x4719f3;super(),this[_0x91e4bd(0x12d)]=_0x13cca3,this[_0x91e4bd(0x13f)]=_0x2f5b89;}async[_0x4719f3(0x14d)](){const _0x1ff2b0=_0x4719f3;try{const _0x5a5d5e=this[_0x1ff2b0(0x12d)][_0x1ff2b0(0x145)](this[_0x1ff2b0(0x13f)]),_0x577970=await _0x5a5d5e[_0x1ff2b0(0x135)]();this[_0x1ff2b0(0x13d)](_0x577970);}catch(_0x49baa8){this[_0x1ff2b0(0x13a)](_0x1ff2b0(0x12f),{'error':_0x49baa8,'operation':_0x1ff2b0(0x14d)});}}[_0x4719f3(0x137)](_0x24130d){const _0x3b4897=_0x4719f3;this[_0x3b4897(0x13e)][_0x3b4897(0x151)](_0x24130d);}async[_0x4719f3(0x12e)](_0x957fe2){const _0x4e8700=_0x4719f3,_0x4f4177=this[_0x4e8700(0x13e)][_0x4e8700(0x134)](_0x23695f=>_0x23695f['id']===_0x957fe2);if(-0x1===_0x4f4177)return!0x1;try{return await this[_0x4e8700(0x12d)][_0x4e8700(0x139)](_0x957fe2)[_0x4e8700(0x155)](),this[_0x4e8700(0x13e)][_0x4e8700(0x132)](_0x4f4177,0x1),this[_0x4e8700(0x13a)](_0x4e8700(0x12b),{'itemId':_0x957fe2}),!0x0;}catch(_0x3f208a){return this[_0x4e8700(0x13a)](_0x4e8700(0x12f),{'error':_0x3f208a,'operation':_0x4e8700(0x12e),'itemId':_0x957fe2}),!0x1;}}[_0x4719f3(0x129)](_0x565c55){const _0x88710=_0x4719f3;return this[_0x88710(0x13e)][_0x88710(0x154)](_0x2ce19b=>_0x2ce19b['id']===_0x565c55);}async[_0x4719f3(0x131)](_0x560bd0,_0x9f0542){const _0x436861=_0x4719f3,_0x532750=this[_0x436861(0x129)](_0x560bd0);if(!_0x532750)return!0x1;try{return await this[_0x436861(0x12d)][_0x436861(0x149)](_0x560bd0,{'title':_0x9f0542})[_0x436861(0x14c)](),_0x532750[_0x436861(0x130)](_0x9f0542),this[_0x436861(0x13a)](_0x436861(0x148),{'itemId':_0x560bd0,'updates':{'title':_0x9f0542}}),!0x0;}catch(_0x473b26){return this[_0x436861(0x13a)](_0x436861(0x12f),{'error':_0x473b26,'operation':_0x436861(0x131),'itemId':_0x560bd0}),!0x1;}}async[_0x4719f3(0x14f)](_0x377420,_0x41d805){const _0x542e11=_0x4719f3,_0x174a68=this[_0x542e11(0x129)](_0x377420);if(!_0x174a68)return!0x1;try{return await this[_0x542e11(0x12d)][_0x542e11(0x149)](_0x377420,{'pinned':_0x41d805})[_0x542e11(0x14c)](),_0x174a68[_0x542e11(0x141)](_0x41d805),this[_0x542e11(0x13a)](_0x542e11(0x148),{'itemId':_0x377420,'updates':{'pinned':_0x41d805}}),!0x0;}catch(_0x519024){return this[_0x542e11(0x13a)](_0x542e11(0x12f),{'error':_0x519024,'operation':_0x542e11(0x14f),'itemId':_0x377420}),!0x1;}}[_0x4719f3(0x13d)](_0x1227e6){const _0x5d3fd0=_0x4719f3;try{this[_0x5d3fd0(0x13e)]=[],_0x1227e6[_0x5d3fd0(0x133)](_0x3e5847=>{const _0x3e6f1a=_0x5d3fd0;this[_0x3e6f1a(0x137)](new _0x3e8b0c(_0x3e5847));}),this[_0x5d3fd0(0x13a)](_0x5d3fd0(0x150),{'items':[...this[_0x5d3fd0(0x13e)]]});}catch(_0x53d044){this[_0x5d3fd0(0x13a)](_0x5d3fd0(0x12f),{'error':_0x53d044,'operation':_0x5d3fd0(0x13d)});}}[_0x4719f3(0x13c)](_0x4201b2={}){const _0x363e99=_0x4719f3,_0x14dbe4=void 0x0!==_0x4201b2[_0x363e99(0x12c)]&&_0x4201b2[_0x363e99(0x12c)],_0x562e54=_0x4201b2[_0x363e99(0x14b)]?new Date(_0x4201b2[_0x363e99(0x14b)][_0x363e99(0x157)](),_0x4201b2[_0x363e99(0x14b)][_0x363e99(0x14e)](),_0x4201b2[_0x363e99(0x14b)][_0x363e99(0x136)]()):null,_0x374291=_0x4201b2['to']?new Date(_0x4201b2['to'][_0x363e99(0x157)](),_0x4201b2['to'][_0x363e99(0x14e)](),_0x4201b2['to'][_0x363e99(0x136)]()):null;return this[_0x363e99(0x13e)][_0x363e99(0x12a)](_0x5aceee=>{const _0x42eae2=_0x363e99;if(_0x5aceee[_0x42eae2(0x12c)]!==_0x14dbe4)return!0x1;if(_0x374291){const _0x3db8c0=new Date(_0x5aceee[_0x42eae2(0x140)][_0x42eae2(0x157)](),_0x5aceee[_0x42eae2(0x140)][_0x42eae2(0x14e)](),_0x5aceee[_0x42eae2(0x140)][_0x42eae2(0x136)]());return _0x562e54?_0x562e54[_0x42eae2(0x138)]()===_0x374291[_0x42eae2(0x138)]()?_0x3db8c0[_0x42eae2(0x138)]()===_0x562e54[_0x42eae2(0x138)]():_0x3db8c0<_0x374291&&_0x3db8c0>=_0x562e54:_0x3db8c0<_0x374291;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x9375d=_0x87a9;(function(_0x4688d9,_0x620c0b){var _0x19c49c=_0x87a9,_0x5384fb=_0x4688d9();while(!![]){try{var _0x24b706=parseInt(_0x19c49c(0x191))/0x1*(-parseInt(_0x19c49c(0x18a))/0x2)+-parseInt(_0x19c49c(0x186))/0x3*(-parseInt(_0x19c49c(0x18b))/0x4)+parseInt(_0x19c49c(0x189))/0x5+-parseInt(_0x19c49c(0x195))/0x6+parseInt(_0x19c49c(0x18d))/0x7+-parseInt(_0x19c49c(0x187))/0x8*(-parseInt(_0x19c49c(0x194))/0x9)+parseInt(_0x19c49c(0x188))/0xa*(parseInt(_0x19c49c(0x18e))/0xb);if(_0x24b706===_0x620c0b)break;else _0x5384fb['push'](_0x5384fb['shift']());}catch(_0x28d5b9){_0x5384fb['push'](_0x5384fb['shift']());}}}(_0x34af,0xb0661));import{ObservableMixin as _0x1d95c3}from'ckeditor5/src/utils.js';import{escape as _0x456a31}from'es-toolkit/compat';function _0x87a9(_0x440428,_0x3af6d4){var _0x34af7f=_0x34af();return _0x87a9=function(_0x87a9de,_0x29a035){_0x87a9de=_0x87a9de-0x184;var _0x15a25b=_0x34af7f[_0x87a9de];return _0x15a25b;},_0x87a9(_0x440428,_0x3af6d4);}export class AIChatHistoryItem extends _0x1d95c3(){['id'];[_0x9375d(0x193)];constructor({id:_0x3ab949,title:_0x56f3e5,createdAt:_0x3418ae,updatedAt:_0x2a9bce,pinned:_0x2d80eb}){var _0xb86de1=_0x9375d;super(),this['id']=_0x3ab949,this[_0xb86de1(0x193)]=new Date(_0x3418ae),this[_0xb86de1(0x184)](_0xb86de1(0x18f),_0x56f3e5),this[_0xb86de1(0x184)](_0xb86de1(0x190),_0x2a9bce?new Date(_0x2a9bce):null),this[_0xb86de1(0x184)](_0xb86de1(0x192),_0x2d80eb||!0x1);}[_0x9375d(0x18c)](_0x4ff536){var _0x5e72f6=_0x9375d;this[_0x5e72f6(0x184)](_0x5e72f6(0x18f),_0x456a31(_0x4ff536)),this[_0x5e72f6(0x190)]=new Date();}[_0x9375d(0x185)](_0x52812e){var _0x4c049f=_0x9375d;this[_0x4c049f(0x184)](_0x4c049f(0x192),_0x52812e),this[_0x4c049f(0x190)]=new Date();}}function _0x34af(){var _0x43600f=['updatedAt','5wVcUTl','pinned','createdAt','9yIvPTP','6861342PGWEqb','set','updatePinned','369udhMGX','7938760OqPyYc','1322870VezrkQ','5732165PHPXFt','521302OxQqdC','12924yGxGSj','updateTitle','1654023EBcymg','33aQELGa','title'];_0x34af=function(){return _0x43600f;};return _0x34af();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
function _0x47ad(_0x5f0850,_0x3b9ffa){const _0x4e8f27=_0x4e8f();return _0x47ad=function(_0x47adf7,_0x515f2d){_0x47adf7=_0x47adf7-0x13c;let _0xd2c181=_0x4e8f27[_0x47adf7];return _0xd2c181;},_0x47ad(_0x5f0850,_0x3b9ffa);}const _0x533d87=_0x47ad;(function(_0xbccaef,_0x2ecd6e){const _0x23024f=_0x47ad,_0x349ca8=_0xbccaef();while(!![]){try{const _0x20701c=parseInt(_0x23024f(0x18c))/0x1*(parseInt(_0x23024f(0x168))/0x2)+parseInt(_0x23024f(0x19c))/0x3*(parseInt(_0x23024f(0x155))/0x4)+parseInt(_0x23024f(0x153))/0x5+-parseInt(_0x23024f(0x190))/0x6+-parseInt(_0x23024f(0x145))/0x7+parseInt(_0x23024f(0x143))/0x8+-parseInt(_0x23024f(0x149))/0x9*(parseInt(_0x23024f(0x196))/0xa);if(_0x20701c===_0x2ecd6e)break;else _0x349ca8['push'](_0x349ca8['shift']());}catch(_0x5d153){_0x349ca8['push'](_0x349ca8['shift']());}}}(_0x4e8f,0x8a523));function _0x4e8f(){const _0x3cf16f=['_createCancelEditButtonView','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','1528170vFLIEL','focus','ck-confirm-view-cancel','AI_CHAT_HISTORY_CANCEL','execute','ck-ai-chat-history__item-title','8430800ctyzVR','ck-confirm-view-submit','element','text','AI_CHAT_HISTORY_REMOVE_CONFIRM','_createEditInputView','12uwSUZF','change:isEdit','ck-hidden','div','set','isMatching','mainContent','_createAcceptEditButtonView','key','113112urQtpk','withText','2235541sFtmSe','span','label','listitem','18nntSJo','pinned','_createMenuDropdownView','fire','locale','buttonView','isVisible','bindTemplate','click','_createCheckView','4525425ZSNNDg','ck-ai-chat-history__item--edit','1080952iLBzBh','ck-ai-chat-history__item-content','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_REMOVE','actions','children','AI_CHAT_HISTORY_EDIT_NAME','selectConversation','ck-ai-chat-history__item-actions','AI_CHAT_HISTORY_LOADING_REMOVING','items','value','showConfirm','edit:cancel','ck-ai-loader','updateLoadingState','ck-ai-loader__text','clear','ck-ai-chat-history__item','3510aOdwyl','loadingState','updateTitle','string','createCollection','isEdit','_createPinButtonView','ck-ai-chat-history__item-check','isOn','removeConversation','match','ck-ai-chat-history__item-row','extendTemplate','_createSpinnerView','editConversationTitle','then','bind','add','setConversationPinned','ck-ai-chat-history__item-date','addMany','setTemplate','highlightText','AI_CHAT_HISTORY_LOADING_PINNING','_commitEditInputValue','AI_CHAT_HISTORY_PIN_BUTTON','Enter','AI_CHAT_HISTORY_LOADING_RENAMING','_titleView','ck-ai-chat-history__item--active','LOADING_LABELS','tiny','ck-ai-chat-history__item-main-content','panelPosition','AI_CHAT_HISTORY_LOADING_UNPINNING','panelView','471imczjq','AI_CHAT_HISTORY_ACCEPT'];_0x4e8f=function(){return _0x3cf16f;};return _0x4e8f();}import{ListItemView as _0x2130de,HighlightedTextView as _0x16eec8,ButtonView as _0x72a98a,ListView as _0x27eee7,IconView as _0x2ec1d2,createDropdown as _0xc312bd,InputTextView as _0x1c05d8}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x2b17ee,IconPin as _0x358ce2,IconCheck as _0x1efb0,IconCancel as _0x3d0aeb}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x375fe7,ConfirmMixin as _0x1b07c8}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x138437}from'es-toolkit/compat';import{AISpinnerView as _0x1cb218}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x1e1fd3}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1b07c8(_0x2130de){['id'];static [_0x533d87(0x186)]={'remove':_0x533d87(0x15e),'rename':_0x533d87(0x183),'pin':_0x533d87(0x17f),'unpin':_0x533d87(0x18a)};[_0x533d87(0x159)];[_0x533d87(0x140)];[_0x533d87(0x184)];constructor(_0x1526ab,_0x5abd4a){const _0x2c99cb=_0x533d87;super(_0x1526ab);const _0x3fe5b9=this[_0x2c99cb(0x150)];this[_0x2c99cb(0x13e)](_0x2c99cb(0x16d),!0x1),this[_0x2c99cb(0x13e)](_0x2c99cb(0x14f),!0x0),this[_0x2c99cb(0x13e)](_0x2c99cb(0x14a),!!_0x5abd4a[_0x2c99cb(0x14a)]),this[_0x2c99cb(0x13e)](_0x2c99cb(0x169),null),this['id']=_0x5abd4a['id'];const {title:_0x16edc6,createdAt:_0x368214,active:_0x11be7a=!0x1}=_0x5abd4a;this[_0x2c99cb(0x184)]=new _0x16eec8(),this[_0x2c99cb(0x184)][_0x2c99cb(0x199)]=_0x16edc6,this[_0x2c99cb(0x184)][_0x2c99cb(0x174)]({'attributes':{'class':[_0x2c99cb(0x195)]}});const _0x40d17c=this[_0x2c99cb(0x152)](),_0x57b352=this[_0x2c99cb(0x16e)](_0x1526ab),_0x21f5ed=this[_0x2c99cb(0x14b)](),_0x347b9c=this[_0x2c99cb(0x19b)](_0x1526ab,_0x16edc6),_0x5ed783=this[_0x2c99cb(0x141)](_0x1526ab,_0x347b9c),_0x56d80c=this[_0x2c99cb(0x18e)](_0x1526ab,_0x347b9c);this[_0x2c99cb(0x159)]=this[_0x2c99cb(0x16c)](),this[_0x2c99cb(0x140)]=this[_0x2c99cb(0x16c)](),this[_0x2c99cb(0x140)][_0x2c99cb(0x179)](this[_0x2c99cb(0x184)]),this[_0x2c99cb(0x159)][_0x2c99cb(0x179)](_0x57b352),this[_0x2c99cb(0x159)][_0x2c99cb(0x179)](_0x21f5ed),this['on'](_0x2c99cb(0x19d),(_0x30f724,_0x2fd7d5,_0x1d69d1)=>{const _0x9b2300=_0x2c99cb;this[_0x9b2300(0x159)][_0x9b2300(0x166)](),this[_0x9b2300(0x140)][_0x9b2300(0x166)](),_0x1d69d1?(this[_0x9b2300(0x159)][_0x9b2300(0x179)](_0x5ed783),this[_0x9b2300(0x159)][_0x9b2300(0x179)](_0x56d80c),this[_0x9b2300(0x140)][_0x9b2300(0x179)](_0x347b9c),_0x347b9c[_0x9b2300(0x198)][_0x9b2300(0x191)]()):(this[_0x9b2300(0x159)][_0x9b2300(0x179)](_0x57b352),this[_0x9b2300(0x159)][_0x9b2300(0x179)](_0x21f5ed),this[_0x9b2300(0x140)][_0x9b2300(0x179)](this[_0x9b2300(0x184)]));}),this[_0x2c99cb(0x17d)]({'tag':'li','attributes':{'class':[_0x2c99cb(0x167),_0x11be7a?_0x2c99cb(0x185):'',_0x3fe5b9['if'](_0x2c99cb(0x14f),_0x2c99cb(0x13c),_0x55c4f9=>!_0x55c4f9),_0x3fe5b9['if'](_0x2c99cb(0x16d),_0x2c99cb(0x154))],'role':_0x2c99cb(0x148)},'children':[{'tag':_0x2c99cb(0x146),'attributes':{'class':[_0x2c99cb(0x157)]},'children':[{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x16f),_0x3fe5b9['if'](_0x2c99cb(0x169),_0x2c99cb(0x13c),_0x19798a=>!!_0x19798a)]},'children':_0x11be7a?[_0x40d17c]:[]},{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x163),_0x3fe5b9['if'](_0x2c99cb(0x169),_0x2c99cb(0x13c),_0x1dd05c=>!_0x1dd05c)]},'children':[this[_0x2c99cb(0x175)]()]}]},{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x173)]},'children':[{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x156)]},'on':{'click':this[_0x2c99cb(0x150)]['to'](_0x2c99cb(0x151))},'children':[{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x188)]},'children':[{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x195),_0x3fe5b9['if'](_0x2c99cb(0x169),_0x2c99cb(0x13c),_0x2084b6=>!!_0x2084b6)]},'children':this[_0x2c99cb(0x140)]},{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x165),_0x3fe5b9['if'](_0x2c99cb(0x169),_0x2c99cb(0x13c),_0x598084=>!_0x598084)]},'children':[{'text':_0x3fe5b9['to'](_0x2c99cb(0x169),_0x4b9f38=>_0x4b9f38?_0x1e1fd3(this[_0x2c99cb(0x14d)],AIChatHistoryListItemView[_0x2c99cb(0x186)][_0x4b9f38]):'')}]}]},{'tag':_0x2c99cb(0x146),'attributes':{'class':[_0x2c99cb(0x17b)]},'children':[_0x368214]}]},{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x15d)]},'children':this[_0x2c99cb(0x159)]}]}]}),this['on'](_0x2c99cb(0x151),()=>{const _0x260f80=_0x2c99cb;this[_0x260f80(0x16d)]||this[_0x260f80(0x14c)](_0x260f80(0x15c),{'id':this['id']});});}[_0x533d87(0x16a)](_0x295551){const _0x559514=_0x533d87;this[_0x559514(0x184)][_0x559514(0x199)]=_0x138437(_0x295551);}[_0x533d87(0x164)](_0x390320,_0x7eafba){const _0x1445a6=_0x533d87;this[_0x1445a6(0x13e)](_0x1445a6(0x169),_0x7eafba?_0x390320:null);}[_0x533d87(0x152)](){const _0x249bdd=_0x533d87,_0x441f0e=new _0x2ec1d2();return _0x441f0e[_0x249bdd(0x13e)]({'content':_0x1efb0}),_0x441f0e;}[_0x533d87(0x16e)](_0x53c784){const _0x25c09f=_0x533d87,_0xf41867=new _0x72a98a(_0x53c784);return _0xf41867[_0x25c09f(0x13e)]({'label':_0x1e1fd3(_0x53c784,_0x25c09f(0x181)),'icon':_0x358ce2,'withText':!0x1,'tooltip':!0x0}),_0xf41867[_0x25c09f(0x178)](_0x25c09f(0x170))['to'](this,_0x25c09f(0x14a)),_0xf41867['on'](_0x25c09f(0x194),()=>{const _0x4cd60f=_0x25c09f,_0xe4df92=!this[_0x4cd60f(0x14a)];this[_0x4cd60f(0x14c)](_0x4cd60f(0x17a),{'id':this['id'],'pinned':_0xe4df92});}),_0xf41867;}[_0x533d87(0x14b)](){const _0x26e754=_0x533d87,_0x98aad=_0xc312bd(this[_0x26e754(0x14d)],_0x375fe7),_0x2e8e2a=_0x98aad[_0x26e754(0x18b)][_0x26e754(0x15a)];_0x98aad[_0x26e754(0x14e)][_0x26e754(0x13e)]({'label':_0x1e1fd3(this[_0x26e754(0x14d)],_0x26e754(0x18f)),'icon':_0x2b17ee}),_0x98aad[_0x26e754(0x189)]='sw';const _0x41d6fe=new _0x72a98a(this[_0x26e754(0x14d)]);_0x41d6fe[_0x26e754(0x147)]=_0x1e1fd3(this[_0x26e754(0x14d)],_0x26e754(0x15b)),_0x41d6fe[_0x26e754(0x144)]=!0x0,_0x41d6fe['on'](_0x26e754(0x194),()=>{const _0x5bea58=_0x26e754;this[_0x5bea58(0x16d)]=!0x0;});const _0x3214be=new _0x72a98a(this[_0x26e754(0x14d)]);_0x3214be[_0x26e754(0x147)]=_0x1e1fd3(this[_0x26e754(0x14d)],_0x26e754(0x158)),_0x3214be[_0x26e754(0x144)]=!0x0,_0x3214be['on'](_0x26e754(0x194),()=>{const _0x233c83=_0x26e754;this[_0x233c83(0x161)](_0x1e1fd3(this[_0x233c83(0x14d)],_0x233c83(0x19a)),this[_0x233c83(0x198)])[_0x233c83(0x177)](()=>{const _0x4feabb=_0x233c83;this[_0x4feabb(0x14c)](_0x4feabb(0x171),{'id':this['id']});});});const _0x313870=new _0x27eee7(this[_0x26e754(0x14d)]),_0x543846=new _0x2130de(this[_0x26e754(0x14d)]);_0x543846[_0x26e754(0x15a)][_0x26e754(0x179)](_0x41d6fe);const _0x599ec7=new _0x2130de(this[_0x26e754(0x14d)]);return _0x599ec7[_0x26e754(0x15a)][_0x26e754(0x179)](_0x3214be),_0x313870[_0x26e754(0x15f)][_0x26e754(0x17c)]([_0x543846,_0x599ec7]),_0x2e8e2a[_0x26e754(0x179)](_0x313870),_0x98aad;}[_0x533d87(0x19b)](_0x373064,_0x58b84f){const _0xc053d9=_0x533d87,_0x1f87d8=new _0x1c05d8(_0x373064),_0xb5269a=_0x1f87d8[_0xc053d9(0x150)];return _0x1f87d8[_0xc053d9(0x160)]=_0x58b84f,_0x1f87d8[_0xc053d9(0x174)]({'on':{'keydown':_0xb5269a['to'](_0x16fe62=>{const _0x47ab0b=_0xc053d9;_0x47ab0b(0x182)==_0x16fe62[_0x47ab0b(0x142)]&&this[_0x47ab0b(0x180)](_0x1f87d8);})}}),_0x1f87d8;}[_0x533d87(0x141)](_0x1e52c0,_0x41b907){const _0x2984c2=_0x533d87,_0x73fb00=new _0x72a98a(_0x1e52c0);return _0x73fb00[_0x2984c2(0x13e)]({'icon':_0x1efb0,'withText':!0x1,'tooltip':_0x1e1fd3(_0x1e52c0,_0x2984c2(0x18d))}),_0x73fb00[_0x2984c2(0x174)]({'attributes':{'class':[_0x2984c2(0x197)]}}),_0x73fb00['on'](_0x2984c2(0x194),()=>{const _0x4c44b2=_0x2984c2;this[_0x4c44b2(0x180)](_0x41b907);}),_0x73fb00;}[_0x533d87(0x180)](_0x50f503){const _0x116fc0=_0x533d87,_0x39c75f=_0x50f503[_0x116fc0(0x198)][_0x116fc0(0x160)]||'';this[_0x116fc0(0x184)][_0x116fc0(0x199)]=_0x39c75f,this[_0x116fc0(0x16d)]=!0x1,this[_0x116fc0(0x14c)](_0x116fc0(0x176),{'id':this['id'],'title':_0x39c75f});}[_0x533d87(0x18e)](_0x5304ee,_0x4ff3d5){const _0xfe7217=_0x533d87,_0x5229ce=new _0x72a98a(_0x5304ee);return _0x5229ce[_0xfe7217(0x13e)]({'icon':_0x3d0aeb,'withText':!0x1,'tooltip':_0x1e1fd3(_0x5304ee,_0xfe7217(0x193))}),_0x5229ce[_0xfe7217(0x174)]({'attributes':{'class':[_0xfe7217(0x192)]}}),_0x5229ce['on'](_0xfe7217(0x194),()=>{const _0x4533c5=_0xfe7217;this[_0x4533c5(0x16d)]=!0x1,_0x4ff3d5[_0x4533c5(0x160)]=this[_0x4533c5(0x184)][_0x4533c5(0x199)]||'',this[_0x4533c5(0x14c)](_0x4533c5(0x162));}),_0x5229ce;}[_0x533d87(0x175)](){const _0x325fc1=_0x533d87,_0x1cae16=new _0x1cb218(_0x325fc1(0x187));return _0x1cae16[_0x325fc1(0x14f)]=!0x0,_0x1cae16;}[_0x533d87(0x13f)](_0x35ab72){const _0x4c344f=_0x533d87;return this[_0x4c344f(0x184)]&&_0x4c344f(0x16b)==typeof this[_0x4c344f(0x184)][_0x4c344f(0x199)]&&this[_0x4c344f(0x184)][_0x4c344f(0x199)][_0x4c344f(0x172)](_0x35ab72)?{'title':!0x0}:null;}[_0x533d87(0x17e)](_0x305d16){const _0x185023=_0x533d87;this[_0x185023(0x184)][_0x185023(0x17e)](_0x305d16);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40a904=_0x26e5;function _0x26e5(_0x23338d,_0x2dd7cd){const _0x3a799a=_0x3a79();return _0x26e5=function(_0x26e5f2,_0x233fe0){_0x26e5f2=_0x26e5f2-0x149;let _0x373ba3=_0x3a799a[_0x26e5f2];return _0x373ba3;},_0x26e5(_0x23338d,_0x2dd7cd);}(function(_0x3b63d6,_0x5b2712){const _0x13d39b=_0x26e5,_0x31cb0f=_0x3b63d6();while(!![]){try{const _0x36fe78=parseInt(_0x13d39b(0x156))/0x1+-parseInt(_0x13d39b(0x157))/0x2+parseInt(_0x13d39b(0x166))/0x3+-parseInt(_0x13d39b(0x150))/0x4+-parseInt(_0x13d39b(0x14a))/0x5*(-parseInt(_0x13d39b(0x153))/0x6)+-parseInt(_0x13d39b(0x159))/0x7+parseInt(_0x13d39b(0x162))/0x8;if(_0x36fe78===_0x5b2712)break;else _0x31cb0f['push'](_0x31cb0f['shift']());}catch(_0x30bd88){_0x31cb0f['push'](_0x31cb0f['shift']());}}}(_0x3a79,0x5500b));import{ListItemView as _0xfbe866,View as _0x36137a,ListView as _0x2c9d15}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0xfbe866{[_0x40a904(0x167)];[_0x40a904(0x15d)];[_0x40a904(0x14d)];constructor(_0x38b59d,{title:_0x5de841,items:_0x2540bd}){const _0x5b2cca=_0x40a904;super(_0x38b59d);const _0x3b480f=this[_0x5b2cca(0x15c)];this[_0x5b2cca(0x14f)](_0x5b2cca(0x14b),!0x0),this[_0x5b2cca(0x167)]=_0x5de841,this[_0x5b2cca(0x15d)]=_0x2540bd;const _0x3388a8=new _0x36137a(_0x38b59d);_0x3388a8[_0x5b2cca(0x164)]({'tag':_0x5b2cca(0x149),'attributes':{'class':[_0x5b2cca(0x14c)]},'children':[this[_0x5b2cca(0x167)]]}),this[_0x5b2cca(0x14d)]=new _0x2c9d15(_0x38b59d),this[_0x5b2cca(0x14d)][_0x5b2cca(0x165)][_0x5b2cca(0x15b)](this[_0x5b2cca(0x15d)]),this[_0x5b2cca(0x164)]({'tag':'li','attributes':{'class':[_0x5b2cca(0x161),_0x3b480f['if'](_0x5b2cca(0x14b),_0x5b2cca(0x15a),_0x1902b9=>!_0x1902b9)]},'children':[_0x3388a8,this[_0x5b2cca(0x14d)]]});}[_0x40a904(0x163)](_0x518c6c){const _0x5c7f8b=_0x40a904,_0x1f7401=this[_0x5c7f8b(0x15d)][_0x5c7f8b(0x15f)];let _0x5a60b7=0x0;for(const _0x5e4b79 of this[_0x5c7f8b(0x15d)]){if(_0x518c6c){const _0x198b9a=_0x5e4b79[_0x5c7f8b(0x158)](_0x518c6c);_0x5e4b79[_0x5c7f8b(0x14b)]=!!_0x198b9a,_0x5e4b79[_0x5c7f8b(0x155)](_0x518c6c);}else _0x5e4b79[_0x5c7f8b(0x14b)]=!0x0,_0x5e4b79[_0x5c7f8b(0x155)](null);_0x5e4b79[_0x5c7f8b(0x14b)]&&_0x5a60b7++;}return this[_0x5c7f8b(0x14b)]=_0x5a60b7>0x0,{'resultsCount':_0x5a60b7,'totalItemsCount':_0x1f7401};}[_0x40a904(0x15e)](_0x2e607e){const _0x39d545=_0x40a904;return this[_0x39d545(0x15d)][_0x39d545(0x154)](_0x5b559e=>_0x5b559e['id']===_0x2e607e);}[_0x40a904(0x14e)](_0x5a53f9){const _0x15e83b=_0x40a904,_0x5d8130=this[_0x15e83b(0x15d)][_0x15e83b(0x152)](_0x5a53f9);-0x1!==_0x5d8130&&(this[_0x15e83b(0x15d)][_0x15e83b(0x151)](_0x5d8130,0x1),this[_0x15e83b(0x14d)][_0x15e83b(0x165)][_0x15e83b(0x160)](_0x5a53f9));}}function _0x3a79(){const _0x23f3a2=['102426BJkHsm','find','highlightText','362826tTenii','125438HUnGOx','isMatching','2677150JTPUQP','ck-hidden','addMany','bindTemplate','itemsViews','getItem','length','remove','ck-ai-chat-history__section','1015920OiheKY','filter','setTemplate','items','623112jJfiCY','title','div','165dqzuHh','isVisible','ck-ai-chat-history__section-title','_itemsListView','removeItem','set','1870092PNrqVz','splice','indexOf'];_0x3a79=function(){return _0x23f3a2;};return _0x3a79();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1935(){const _0x1e42ba=['1614172SMLhPJ','items','4854884VBbDiE','98699IrjNFK','34BntyLr','ck-ai-chat-history__sections','108kygqpu','extendTemplate','947530jRvnzq','42JSVaHL','addMany','5fLHxje','58836zzhYsb','7293LgNhNO','filter','1786596wPuZaF','7649784btOycN','sections'];_0x1935=function(){return _0x1e42ba;};return _0x1935();}function _0x879a(_0x3d77dd,_0x4ce421){const _0x1935f7=_0x1935();return _0x879a=function(_0x879a8e,_0x20fad0){_0x879a8e=_0x879a8e-0x66;let _0x2a8c32=_0x1935f7[_0x879a8e];return _0x2a8c32;},_0x879a(_0x3d77dd,_0x4ce421);}const _0x39a667=_0x879a;(function(_0x27613c,_0xc05575){const _0x9b69d1=_0x879a,_0x239195=_0x27613c();while(!![]){try{const _0x5b99df=parseInt(_0x9b69d1(0x75))/0x1*(parseInt(_0x9b69d1(0x76))/0x2)+-parseInt(_0x9b69d1(0x6f))/0x3+parseInt(_0x9b69d1(0x74))/0x4*(parseInt(_0x9b69d1(0x6b))/0x5)+parseInt(_0x9b69d1(0x69))/0x6*(parseInt(_0x9b69d1(0x72))/0x7)+-parseInt(_0x9b69d1(0x70))/0x8+parseInt(_0x9b69d1(0x66))/0x9*(parseInt(_0x9b69d1(0x68))/0xa)+parseInt(_0x9b69d1(0x6d))/0xb*(-parseInt(_0x9b69d1(0x6c))/0xc);if(_0x5b99df===_0xc05575)break;else _0x239195['push'](_0x239195['shift']());}catch(_0x3e4910){_0x239195['push'](_0x239195['shift']());}}}(_0x1935,0xcd2b0));import{ListView as _0x3c4ea0}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x3c4ea0{[_0x39a667(0x71)];constructor(_0x289449,_0x3c8aa9){const _0x3c0165=_0x39a667;super(_0x289449),this[_0x3c0165(0x71)]=_0x3c8aa9,this[_0x3c0165(0x73)][_0x3c0165(0x6a)](this[_0x3c0165(0x71)]),this[_0x3c0165(0x67)]({'attributes':{'class':[_0x3c0165(0x77)]}});}[_0x39a667(0x6e)](_0x3e2688){const _0x557b60=_0x39a667;let _0x17c831=0x0,_0x2da9ee=0x0;for(const _0x47881c of this[_0x557b60(0x71)]){const {resultsCount:_0x1134b8,totalItemsCount:_0x329082}=_0x47881c[_0x557b60(0x6e)](_0x3e2688);_0x17c831+=_0x1134b8,_0x2da9ee+=_0x329082;}return{'resultsCount':_0x17c831,'totalItemsCount':_0x2da9ee};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3bc240=_0x3566;(function(_0x202c55,_0x101fec){const _0x5b669d=_0x3566,_0x2d8a00=_0x202c55();while(!![]){try{const _0x34d3df=parseInt(_0x5b669d(0x199))/0x1*(-parseInt(_0x5b669d(0x160))/0x2)+parseInt(_0x5b669d(0x150))/0x3*(-parseInt(_0x5b669d(0x178))/0x4)+-parseInt(_0x5b669d(0x197))/0x5*(parseInt(_0x5b669d(0x16e))/0x6)+-parseInt(_0x5b669d(0x164))/0x7*(parseInt(_0x5b669d(0x1a4))/0x8)+parseInt(_0x5b669d(0x154))/0x9*(-parseInt(_0x5b669d(0x19e))/0xa)+parseInt(_0x5b669d(0x14f))/0xb+parseInt(_0x5b669d(0x187))/0xc;if(_0x34d3df===_0x101fec)break;else _0x2d8a00['push'](_0x2d8a00['shift']());}catch(_0x38e711){_0x2d8a00['push'](_0x2d8a00['shift']());}}}(_0x4323,0x2bcac));import{View as _0x5ea6eb,SearchTextView as _0x5188f9,FormHeaderView as _0x1b7c19,ButtonView as _0x3aea82}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x38c996,IconCancel as _0x23b683,IconPlus as _0x57eb52}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x578364}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x54e369}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2fbd68}from'./aichathistorylistitemview.js';function _0x3566(_0x2cbc48,_0x392f46){const _0x432382=_0x4323();return _0x3566=function(_0x35663a,_0x279bf9){_0x35663a=_0x35663a-0x14a;let _0x416e8e=_0x432382[_0x35663a];return _0x416e8e;},_0x3566(_0x2cbc48,_0x392f46);}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x348e81}from'../aichathistoryui.js';import{AISkeletonView as _0x3cdc42,SKELETON_DEFINITIONS as _0x24c0a6}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x109d61}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x5d3034}from'../../aicore/utils/common-translations.js';function _0x4323(){const _0x4af6f6=['_refreshSearch','ck-ai-notification_error','627768wyUAHp','errorMessage','change:hasItems','execute','remove','getItem','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:errorMessage','ck-ai-chat-history__empty-message','_createSkeletonView','6721eaarin','18KoOHKe','children','sectionsView','ck-reset_all','3204VMjBqx','indexOf','isVisible','ck-hidden','updateHistoryItemsWithCategories','updateLoadingState','isEmptyViewVisible','isMaximized','ck-ai-chat-history__empty','setTemplate','clear','AI_CHAT_HISTORY_EMPTY_MESSAGE','4yrSOsF','sections','ck-ai-chat-history__content','_createSearchView','7wPaDGe','element','hasItems','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_SEARCH_LABEL','length','removeItem','bindTemplate','fieldView','div','394206BdgZtg','splice','updateItemLoadingState','locale','search','AI_CHAT_HISTORY_HEADING','title','add','bind','resizeButton','125012kABcXx','ck-ai-chat__start-conversation','_createEmptyStateView','ck-ai-notification','ck-rounded-corners','extendTemplate','fire','emptyView','ltr','ck-ai-chat-history','some','aiHistory','_createErrorView','AI_CHAT_LABEL_NEW_CHAT','render','11841324QFRySb','_updateViewVisibility','change:isLoading','value','queryView','push','set','items','updateTitle','removeHistoryItem','itemsViews','delegate','ck-ai-notification_error__dismiss-button','skeletonView','searchView','openChat','25PUiAVV','addMany','77213CzUbPa','updateItemTitle','mainErrorView','isLoading','_createListItemViews','1660aJFbfi','isMainErrorViewVisible','ck-ai-header\x20ck-ai-header_history','isSearchViewVisible'];_0x4323=function(){return _0x4af6f6;};return _0x4323();}export class AIChatHistoryView extends _0x5ea6eb{[_0x3bc240(0x195)];[_0x3bc240(0x19b)];[_0x3bc240(0x194)];[_0x3bc240(0x17f)];[_0x3bc240(0x152)];[_0x3bc240(0x177)];constructor(_0x24c7d4,_0x1eb15b){const _0xcd6b61=_0x3bc240;super(_0x24c7d4),this[_0xcd6b61(0x18d)](_0xcd6b61(0x166),!0x1),this[_0xcd6b61(0x18d)](_0xcd6b61(0x19c),!0x0),this[_0xcd6b61(0x18d)](_0xcd6b61(0x1a5),''),this[_0xcd6b61(0x18d)](_0xcd6b61(0x15b),!0x1),this[_0xcd6b61(0x18d)](_0xcd6b61(0x1a1),!0x1),this[_0xcd6b61(0x18d)](_0xcd6b61(0x15a),!0x1),this[_0xcd6b61(0x18d)](_0xcd6b61(0x19f),!0x1);const _0x1d6baa=new _0x1b7c19(_0x24c7d4,{'label':_0x5d3034(_0x24c7d4,_0xcd6b61(0x173)),'icon':_0x38c996,'class':_0xcd6b61(0x1a0)});_0x1eb15b&&(this[_0xcd6b61(0x177)]=_0x109d61(_0x24c7d4,this),_0x1d6baa[_0xcd6b61(0x151)][_0xcd6b61(0x175)](this[_0xcd6b61(0x177)])),this[_0xcd6b61(0x152)]=new _0x578364(_0x24c7d4,[]),this[_0xcd6b61(0x152)][_0xcd6b61(0x192)](..._0x348e81)['to'](this),this[_0xcd6b61(0x19b)]=this[_0xcd6b61(0x184)](),this[_0xcd6b61(0x194)]=this[_0xcd6b61(0x14e)](),this[_0xcd6b61(0x17f)]=this[_0xcd6b61(0x17a)](),this[_0xcd6b61(0x195)]=this[_0xcd6b61(0x163)](),this[_0xcd6b61(0x19b)][_0xcd6b61(0x17d)]({'attributes':{'class':[this[_0xcd6b61(0x16b)]['if'](_0xcd6b61(0x19f),_0xcd6b61(0x157),_0x7e5569=>!_0x7e5569)]}}),this['on'](_0xcd6b61(0x189),()=>this[_0xcd6b61(0x188)]()),this['on'](_0xcd6b61(0x1a6),()=>this[_0xcd6b61(0x188)]()),this['on'](_0xcd6b61(0x14c),()=>this[_0xcd6b61(0x188)]()),this[_0xcd6b61(0x15d)]({'tag':_0xcd6b61(0x16d),'attributes':{'class':['ck',_0xcd6b61(0x153),_0xcd6b61(0x181),_0xcd6b61(0x17c)],'dir':_0xcd6b61(0x180)},'children':[_0x1d6baa,{'tag':_0xcd6b61(0x16d),'attributes':{'class':[_0xcd6b61(0x162)]},'children':[this[_0xcd6b61(0x194)],this[_0xcd6b61(0x19b)],this[_0xcd6b61(0x17f)],this[_0xcd6b61(0x195)]]}]});}[_0x3bc240(0x188)](){const _0x27a692=_0x3bc240;this[_0x27a692(0x1a1)]=!this[_0x27a692(0x19c)]&&this[_0x27a692(0x166)],this[_0x27a692(0x15a)]=!this[_0x27a692(0x19c)]&&!this[_0x27a692(0x166)]&&!this[_0x27a692(0x1a5)],this[_0x27a692(0x19f)]=!this[_0x27a692(0x1a1)]&&!!this[_0x27a692(0x1a5)];}[_0x3bc240(0x163)](){const _0x155f77=_0x3bc240,_0x4264b4=new _0x5188f9(this[_0x155f77(0x171)],{'filteredView':this[_0x155f77(0x152)],'queryView':{'label':_0x5d3034(this[_0x155f77(0x171)],_0x155f77(0x168))},'infoView':{'text':{'notFound':{'primary':_0x3b4144=>_0x5d3034(this[_0x155f77(0x171)],_0x155f77(0x14b),_0x3b4144),'secondary':_0x5d3034(this[_0x155f77(0x171)],_0x155f77(0x167))}}}}),_0x55b3e9=this[_0x155f77(0x184)]();return _0x55b3e9[_0x155f77(0x17d)]({'attributes':{'class':[this[_0x155f77(0x16b)]['if'](_0x155f77(0x1a5),_0x155f77(0x157),_0x24679a=>!_0x24679a)]}}),_0x4264b4['on'](_0x155f77(0x186),()=>{const _0x132f34=_0x155f77;_0x4264b4[_0x132f34(0x151)][_0x132f34(0x175)](_0x55b3e9,0x1);}),_0x4264b4[_0x155f77(0x17d)]({'attributes':{'class':[this[_0x155f77(0x16b)]['if'](_0x155f77(0x1a1),_0x155f77(0x157),_0x36fc89=>!_0x36fc89)]}}),_0x4264b4;}[_0x3bc240(0x14e)](){const _0x40530c=_0x3bc240,_0x5ce99a=new _0x3cdc42(this[_0x40530c(0x171)],_0x24c0a6[_0x40530c(0x183)]);return _0x5ce99a[_0x40530c(0x17d)]({'attributes':{'class':[this[_0x40530c(0x16b)]['if'](_0x40530c(0x19c),_0x40530c(0x157),_0x52c8e1=>!_0x52c8e1)]}}),_0x5ce99a;}[_0x3bc240(0x184)](){const _0x52810c=_0x3bc240,_0x37f4cf=new _0x5ea6eb(this[_0x52810c(0x171)]),_0x2024cb=new _0x3aea82(this[_0x52810c(0x171)]);_0x2024cb[_0x52810c(0x18d)]({'withText':!0x1,'icon':_0x23b683,'class':_0x52810c(0x193)}),_0x2024cb[_0x52810c(0x176)](_0x52810c(0x156))['to'](this,_0x52810c(0x166),_0x15a151=>!!_0x15a151),_0x2024cb['on'](_0x52810c(0x1a7),()=>{const _0x17f001=_0x52810c;this[_0x17f001(0x1a5)]='';});const _0x1a4d7b=this[_0x52810c(0x16b)];return _0x37f4cf[_0x52810c(0x15d)]({'tag':_0x52810c(0x16d),'attributes':{'class':['ck',_0x52810c(0x17b),_0x52810c(0x1a3)]},'children':[{'tag':'p','children':[{'text':_0x1a4d7b['to'](_0x52810c(0x1a5))}]},_0x2024cb]}),_0x37f4cf;}[_0x3bc240(0x17a)](){const _0x25a15a=_0x3bc240,_0x5100e8=new _0x3aea82(this[_0x25a15a(0x171)]);_0x5100e8[_0x25a15a(0x18d)]({'label':_0x5d3034(this[_0x25a15a(0x171)],_0x25a15a(0x185)),'withText':!0x0,'icon':_0x57eb52,'class':_0x25a15a(0x179)}),_0x5100e8['on'](_0x25a15a(0x1a7),()=>{const _0x2de3de=_0x25a15a;this[_0x2de3de(0x17e)](_0x2de3de(0x196));});const _0x3086d4=new _0x5ea6eb(this[_0x25a15a(0x171)]);return _0x3086d4[_0x25a15a(0x15d)]({'tag':_0x25a15a(0x16d),'attributes':{'class':[_0x25a15a(0x15c),this[_0x25a15a(0x16b)]['if'](_0x25a15a(0x15a),_0x25a15a(0x157),_0x5b80fd=>!_0x5b80fd)]},'children':[{'tag':'p','attributes':{'class':[_0x25a15a(0x14d)]},'children':[_0x5d3034(this[_0x25a15a(0x171)],_0x25a15a(0x15f))]},_0x5100e8]}),_0x3086d4;}[_0x3bc240(0x19d)](_0x3837ae,_0x11bfad){const _0x2670a3=_0x3bc240,_0x31b72d=[];for(const _0x31179a of _0x3837ae){const _0x21f21a=new _0x2fbd68(_0x11bfad,_0x31179a);_0x21f21a[_0x2670a3(0x192)](..._0x348e81)['to'](this),_0x31b72d[_0x2670a3(0x18c)](_0x21f21a);}return _0x31b72d;}[_0x3bc240(0x158)](_0x32f7a1){const _0x3906c0=_0x3bc240,_0x4314eb=this[_0x3906c0(0x171)]||'en',_0x31d620=[];for(const _0x5a3527 of _0x32f7a1){const _0x599ad8=this[_0x3906c0(0x19d)](_0x5a3527[_0x3906c0(0x18e)],_0x4314eb);_0x31d620[_0x3906c0(0x18c)](new _0x54e369(_0x4314eb,{'title':_0x5a3527[_0x3906c0(0x174)],'items':_0x599ad8}));}this[_0x3906c0(0x152)][_0x3906c0(0x161)]=_0x31d620,this[_0x3906c0(0x152)][_0x3906c0(0x18e)][_0x3906c0(0x15e)](),this[_0x3906c0(0x152)][_0x3906c0(0x18e)][_0x3906c0(0x198)](_0x31d620),this[_0x3906c0(0x166)]=_0x32f7a1[_0x3906c0(0x182)](_0x217abb=>_0x217abb[_0x3906c0(0x18e)][_0x3906c0(0x169)]>0x0),this[_0x3906c0(0x1a2)]();}[_0x3bc240(0x190)](_0x572ffe){const _0x4b9ac7=_0x3bc240;for(const _0xcae5e1 of this[_0x4b9ac7(0x152)][_0x4b9ac7(0x161)]){const _0x435f07=_0xcae5e1[_0x4b9ac7(0x14a)](_0x572ffe);if(_0x435f07){if(_0xcae5e1[_0x4b9ac7(0x16a)](_0x435f07),0x0===_0xcae5e1[_0x4b9ac7(0x191)][_0x4b9ac7(0x169)]){const _0x4ef223=this[_0x4b9ac7(0x152)][_0x4b9ac7(0x161)][_0x4b9ac7(0x155)](_0xcae5e1);-0x1!==_0x4ef223&&(this[_0x4b9ac7(0x152)][_0x4b9ac7(0x161)][_0x4b9ac7(0x16f)](_0x4ef223,0x1),this[_0x4b9ac7(0x152)][_0x4b9ac7(0x18e)][_0x4b9ac7(0x1a8)](_0xcae5e1));}this[_0x4b9ac7(0x166)]=this[_0x4b9ac7(0x152)][_0x4b9ac7(0x161)][_0x4b9ac7(0x169)]>0x0,this[_0x4b9ac7(0x1a2)]();break;}}}[_0x3bc240(0x19a)](_0x3ffb19,_0x1d951c){const _0x44c19d=_0x3bc240;for(const _0x3f5325 of this[_0x44c19d(0x152)][_0x44c19d(0x161)]){const _0x330c98=_0x3f5325[_0x44c19d(0x14a)](_0x3ffb19);if(_0x330c98){_0x330c98[_0x44c19d(0x18f)](_0x1d951c);break;}}}[_0x3bc240(0x170)](_0x27c82d,_0xc86a84,_0x98a7dc){const _0x5f521f=_0x3bc240;for(const _0x1a6095 of this[_0x5f521f(0x152)][_0x5f521f(0x161)]){const _0x1654ed=_0x1a6095[_0x5f521f(0x14a)](_0x27c82d);if(_0x1654ed){_0x1654ed[_0x5f521f(0x159)](_0xc86a84,_0x98a7dc);break;}}}[_0x3bc240(0x1a2)](){const _0x36d468=_0x3bc240;if(this[_0x36d468(0x166)]){const _0x1f2f33=this[_0x36d468(0x195)][_0x36d468(0x18b)][_0x36d468(0x16c)]?.[_0x36d468(0x165)]?.[_0x36d468(0x18a)]||'';this[_0x36d468(0x195)][_0x36d468(0x172)](_0x1f2f33);}}}
|
|
23
|
+
const _0x2be234=_0xb64a;function _0xb64a(_0x51208f,_0x8728cc){const _0x4c8113=_0x4c81();return _0xb64a=function(_0xb64a4b,_0x1a8a65){_0xb64a4b=_0xb64a4b-0xb9;let _0x1097e5=_0x4c8113[_0xb64a4b];return _0x1097e5;},_0xb64a(_0x51208f,_0x8728cc);}(function(_0x560477,_0x370951){const _0x437c25=_0xb64a,_0x2f050f=_0x560477();while(!![]){try{const _0xddbd72=parseInt(_0x437c25(0x10e))/0x1+-parseInt(_0x437c25(0xf6))/0x2+-parseInt(_0x437c25(0x10a))/0x3+parseInt(_0x437c25(0x103))/0x4+parseInt(_0x437c25(0xc4))/0x5+-parseInt(_0x437c25(0xed))/0x6+parseInt(_0x437c25(0xff))/0x7*(parseInt(_0x437c25(0xd3))/0x8);if(_0xddbd72===_0x370951)break;else _0x2f050f['push'](_0x2f050f['shift']());}catch(_0x42b135){_0x2f050f['push'](_0x2f050f['shift']());}}}(_0x4c81,0xbc74a));import{View as _0x514e12,SearchTextView as _0x142b79,FormHeaderView as _0x3a8b08,ButtonView as _0xea74cc}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x812e8,IconCancel as _0x1179e3,IconPlus as _0x365b93}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x7ebdbc}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x1e5138}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x18c4af}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x254ffc}from'../aichathistoryui.js';function _0x4c81(){const _0x33eb07=['fieldView','hasItems','element','remove','isLoading','ck-ai-header\x20ck-ai-header_history','8209272PwWpxR','emptyView','ck-ai-notification','errorMessage','value','_createSearchView','search','length','fire','562922NEZXUt','change:hasItems','setTemplate','splice','ltr','bind','locale','updateLoadingState','AI_CHAT_HISTORY_SEARCH_LABEL','74970oIUCBF','queryView','ck-ai-chat-history__empty','ck-reset_all','3528720qDhEmo','ck-ai-notification_error','ck-ai-chat-history__empty-message','sections','removeItem','_createEmptyStateView','aiHistory','593841nelMgs','ck-ai-chat-history','title','ck-rounded-corners','627566Juerey','mainErrorView','_refreshSearch','ck-ai-notification_error__dismiss-button','ck-ai-chat-history__content','_createListItemViews','_updateViewVisibility','updateItemLoadingState','ck-hidden','isSearchViewVisible','push','isVisible','resizeButton','getItem','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','openChat','isMainErrorViewVisible','3139190rnxNkB','searchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','change:errorMessage','addMany','some','ck-ai-chat__start-conversation','set','sectionsView','items','indexOf','updateTitle','children','_createSkeletonView','execute','360dfLieJ','updateHistoryItemsWithCategories','AI_CHAT_LABEL_NEW_CHAT','removeHistoryItem','AI_CHAT_HISTORY_EMPTY_MESSAGE','clear','isEmptyViewVisible','skeletonView','bindTemplate','AI_CHAT_HISTORY_HEADING','isMaximized','_createErrorView','extendTemplate','itemsViews','div','change:isLoading','updateItemTitle','render','add','delegate'];_0x4c81=function(){return _0x33eb07;};return _0x4c81();}import{AISkeletonView as _0x4e0d75,SKELETON_DEFINITIONS as _0x428719}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x5bb977}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2aeadf}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x514e12{[_0x2be234(0xc5)];[_0x2be234(0x10f)];[_0x2be234(0xda)];[_0x2be234(0xee)];[_0x2be234(0xcc)];[_0x2be234(0xbf)];constructor(_0x76ed83,_0x3dad1d){const _0x324560=_0x2be234;super(_0x76ed83),this[_0x324560(0xcb)](_0x324560(0xe8),!0x1),this[_0x324560(0xcb)](_0x324560(0xeb),!0x0),this[_0x324560(0xcb)](_0x324560(0xf0),''),this[_0x324560(0xcb)](_0x324560(0xdd),!0x1),this[_0x324560(0xcb)](_0x324560(0xbc),!0x1),this[_0x324560(0xcb)](_0x324560(0xd9),!0x1),this[_0x324560(0xcb)](_0x324560(0xc3),!0x1);const _0x2a2447=new _0x3a8b08(_0x76ed83,{'label':_0x2aeadf(_0x76ed83,_0x324560(0xdc)),'icon':_0x812e8,'class':_0x324560(0xec)});_0x3dad1d&&(this[_0x324560(0xbf)]=_0x5bb977(_0x76ed83,this),_0x2a2447[_0x324560(0xd0)][_0x324560(0xe5)](this[_0x324560(0xbf)])),this[_0x324560(0xcc)]=new _0x7ebdbc(_0x76ed83,[]),this[_0x324560(0xcc)][_0x324560(0xe6)](..._0x254ffc)['to'](this),this[_0x324560(0x10f)]=this[_0x324560(0xde)](),this[_0x324560(0xda)]=this[_0x324560(0xd1)](),this[_0x324560(0xee)]=this[_0x324560(0x108)](),this[_0x324560(0xc5)]=this[_0x324560(0xf2)](),this[_0x324560(0x10f)][_0x324560(0xdf)]({'attributes':{'class':[this[_0x324560(0xdb)]['if'](_0x324560(0xc3),_0x324560(0xbb),_0x565948=>!_0x565948)]}}),this['on'](_0x324560(0xe2),()=>this[_0x324560(0xb9)]()),this['on'](_0x324560(0xf7),()=>this[_0x324560(0xb9)]()),this['on'](_0x324560(0xc7),()=>this[_0x324560(0xb9)]()),this[_0x324560(0xf8)]({'tag':_0x324560(0xe1),'attributes':{'class':['ck',_0x324560(0x102),_0x324560(0x10b),_0x324560(0x10d)],'dir':_0x324560(0xfa)},'children':[_0x2a2447,{'tag':_0x324560(0xe1),'attributes':{'class':[_0x324560(0x112)]},'children':[this[_0x324560(0xda)],this[_0x324560(0x10f)],this[_0x324560(0xee)],this[_0x324560(0xc5)]]}]});}[_0x2be234(0xb9)](){const _0x21fa18=_0x2be234;this[_0x21fa18(0xbc)]=!this[_0x21fa18(0xeb)]&&this[_0x21fa18(0xe8)],this[_0x21fa18(0xd9)]=!this[_0x21fa18(0xeb)]&&!this[_0x21fa18(0xe8)]&&!this[_0x21fa18(0xf0)],this[_0x21fa18(0xc3)]=!this[_0x21fa18(0xbc)]&&!!this[_0x21fa18(0xf0)];}[_0x2be234(0xf2)](){const _0x4e5df8=_0x2be234,_0x2e25b2=new _0x142b79(this[_0x4e5df8(0xfc)],{'filteredView':this[_0x4e5df8(0xcc)],'queryView':{'label':_0x2aeadf(this[_0x4e5df8(0xfc)],_0x4e5df8(0xfe))},'infoView':{'text':{'notFound':{'primary':_0x372c60=>_0x2aeadf(this[_0x4e5df8(0xfc)],_0x4e5df8(0xc1),_0x372c60),'secondary':_0x2aeadf(this[_0x4e5df8(0xfc)],_0x4e5df8(0xc6))}}}}),_0x4509d2=this[_0x4e5df8(0xde)]();return _0x4509d2[_0x4e5df8(0xdf)]({'attributes':{'class':[this[_0x4e5df8(0xdb)]['if'](_0x4e5df8(0xf0),_0x4e5df8(0xbb),_0x184441=>!_0x184441)]}}),_0x2e25b2['on'](_0x4e5df8(0xe4),()=>{const _0x58e721=_0x4e5df8;_0x2e25b2[_0x58e721(0xd0)][_0x58e721(0xe5)](_0x4509d2,0x1);}),_0x2e25b2[_0x4e5df8(0xdf)]({'attributes':{'class':[this[_0x4e5df8(0xdb)]['if'](_0x4e5df8(0xbc),_0x4e5df8(0xbb),_0x4e7483=>!_0x4e7483)]}}),_0x2e25b2;}[_0x2be234(0xd1)](){const _0x19d9da=_0x2be234,_0x50341f=new _0x4e0d75(this[_0x19d9da(0xfc)],_0x428719[_0x19d9da(0x109)]);return _0x50341f[_0x19d9da(0xdf)]({'attributes':{'class':[this[_0x19d9da(0xdb)]['if'](_0x19d9da(0xeb),_0x19d9da(0xbb),_0x41d0ad=>!_0x41d0ad)]}}),_0x50341f;}[_0x2be234(0xde)](){const _0x4287ee=_0x2be234,_0x47b6e7=new _0x514e12(this[_0x4287ee(0xfc)]),_0x3d74d2=new _0xea74cc(this[_0x4287ee(0xfc)]);_0x3d74d2[_0x4287ee(0xcb)]({'withText':!0x1,'icon':_0x1179e3,'class':_0x4287ee(0x111)}),_0x3d74d2[_0x4287ee(0xfb)](_0x4287ee(0xbe))['to'](this,_0x4287ee(0xe8),_0x303dac=>!!_0x303dac),_0x3d74d2['on'](_0x4287ee(0xd2),()=>{const _0x1697f0=_0x4287ee;this[_0x1697f0(0xf0)]='';});const _0x57b668=this[_0x4287ee(0xdb)];return _0x47b6e7[_0x4287ee(0xf8)]({'tag':_0x4287ee(0xe1),'attributes':{'class':['ck',_0x4287ee(0xef),_0x4287ee(0x104)]},'children':[{'tag':'p','children':[{'text':_0x57b668['to'](_0x4287ee(0xf0))}]},_0x3d74d2]}),_0x47b6e7;}[_0x2be234(0x108)](){const _0x405395=_0x2be234,_0x4b2124=new _0xea74cc(this[_0x405395(0xfc)]);_0x4b2124[_0x405395(0xcb)]({'label':_0x2aeadf(this[_0x405395(0xfc)],_0x405395(0xd5)),'withText':!0x0,'icon':_0x365b93,'class':_0x405395(0xca)}),_0x4b2124['on'](_0x405395(0xd2),()=>{const _0x5b37b9=_0x405395;this[_0x5b37b9(0xf5)](_0x5b37b9(0xc2));});const _0x248703=new _0x514e12(this[_0x405395(0xfc)]);return _0x248703[_0x405395(0xf8)]({'tag':_0x405395(0xe1),'attributes':{'class':[_0x405395(0x101),this[_0x405395(0xdb)]['if'](_0x405395(0xd9),_0x405395(0xbb),_0x23c826=>!_0x23c826)]},'children':[{'tag':'p','attributes':{'class':[_0x405395(0x105)]},'children':[_0x2aeadf(this[_0x405395(0xfc)],_0x405395(0xd7))]},_0x4b2124]}),_0x248703;}[_0x2be234(0x113)](_0xd10ebb,_0x2e20e0){const _0x292cca=_0x2be234,_0x224b03=[];for(const _0x56a619 of _0xd10ebb){const _0x1cafb3=new _0x18c4af(_0x2e20e0,_0x56a619);_0x1cafb3[_0x292cca(0xe6)](..._0x254ffc)['to'](this),_0x224b03[_0x292cca(0xbd)](_0x1cafb3);}return _0x224b03;}[_0x2be234(0xd4)](_0x31fecd){const _0x19f1b3=_0x2be234,_0x2b16c7=this[_0x19f1b3(0xfc)]||'en',_0x213cd9=[];for(const _0x4b6c01 of _0x31fecd){const _0x2a6fbf=this[_0x19f1b3(0x113)](_0x4b6c01[_0x19f1b3(0xcd)],_0x2b16c7);_0x213cd9[_0x19f1b3(0xbd)](new _0x1e5138(_0x2b16c7,{'title':_0x4b6c01[_0x19f1b3(0x10c)],'items':_0x2a6fbf}));}this[_0x19f1b3(0xcc)][_0x19f1b3(0x106)]=_0x213cd9,this[_0x19f1b3(0xcc)][_0x19f1b3(0xcd)][_0x19f1b3(0xd8)](),this[_0x19f1b3(0xcc)][_0x19f1b3(0xcd)][_0x19f1b3(0xc8)](_0x213cd9),this[_0x19f1b3(0xe8)]=_0x31fecd[_0x19f1b3(0xc9)](_0x30ae52=>_0x30ae52[_0x19f1b3(0xcd)][_0x19f1b3(0xf4)]>0x0),this[_0x19f1b3(0x110)]();}[_0x2be234(0xd6)](_0x4ca3fa){const _0xb65619=_0x2be234;for(const _0x3e9bb7 of this[_0xb65619(0xcc)][_0xb65619(0x106)]){const _0x404d3d=_0x3e9bb7[_0xb65619(0xc0)](_0x4ca3fa);if(_0x404d3d){if(_0x3e9bb7[_0xb65619(0x107)](_0x404d3d),0x0===_0x3e9bb7[_0xb65619(0xe0)][_0xb65619(0xf4)]){const _0x104cce=this[_0xb65619(0xcc)][_0xb65619(0x106)][_0xb65619(0xce)](_0x3e9bb7);-0x1!==_0x104cce&&(this[_0xb65619(0xcc)][_0xb65619(0x106)][_0xb65619(0xf9)](_0x104cce,0x1),this[_0xb65619(0xcc)][_0xb65619(0xcd)][_0xb65619(0xea)](_0x3e9bb7));}this[_0xb65619(0xe8)]=this[_0xb65619(0xcc)][_0xb65619(0x106)][_0xb65619(0xf4)]>0x0,this[_0xb65619(0x110)]();break;}}}[_0x2be234(0xe3)](_0x302047,_0x14a8a2){const _0x448d6a=_0x2be234;for(const _0x25d2ec of this[_0x448d6a(0xcc)][_0x448d6a(0x106)]){const _0x1e2f3e=_0x25d2ec[_0x448d6a(0xc0)](_0x302047);if(_0x1e2f3e){_0x1e2f3e[_0x448d6a(0xcf)](_0x14a8a2);break;}}}[_0x2be234(0xba)](_0x14768c,_0x2e95fb,_0x35d930){const _0x4536b0=_0x2be234;for(const _0x47ee69 of this[_0x4536b0(0xcc)][_0x4536b0(0x106)]){const _0x305f01=_0x47ee69[_0x4536b0(0xc0)](_0x14768c);if(_0x305f01){_0x305f01[_0x4536b0(0xfd)](_0x2e95fb,_0x35d930);break;}}}[_0x2be234(0x110)](){const _0x2cb241=_0x2be234;if(this[_0x2cb241(0xe8)]){const _0x41b62e=this[_0x2cb241(0xc5)][_0x2cb241(0x100)][_0x2cb241(0xe7)]?.[_0x2cb241(0xe9)]?.[_0x2cb241(0xf1)]||'';this[_0x2cb241(0xc5)][_0x2cb241(0xf3)](_0x41b62e);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fe130=_0x2b5c;(function(_0x36f53f,_0x1b6ec4){const _0x596f3d=_0x2b5c,_0x16efb8=_0x36f53f();while(!![]){try{const _0x2570f4=parseInt(_0x596f3d(0x116))/0x1*(-parseInt(_0x596f3d(0xec))/0x2)+-parseInt(_0x596f3d(0x10a))/0x3*(parseInt(_0x596f3d(0xf5))/0x4)+-parseInt(_0x596f3d(0x111))/0x5*(parseInt(_0x596f3d(0xf4))/0x6)+-parseInt(_0x596f3d(0xe3))/0x7+parseInt(_0x596f3d(0xf2))/0x8+parseInt(_0x596f3d(0xee))/0x9+parseInt(_0x596f3d(0xf6))/0xa*(parseInt(_0x596f3d(0xe0))/0xb);if(_0x2570f4===_0x1b6ec4)break;else _0x16efb8['push'](_0x16efb8['shift']());}catch(_0x38a220){_0x16efb8['push'](_0x16efb8['shift']());}}}(_0x2bf5,0xc79a5));import{AIChatUI as _0xb6667a}from'../aichat/aichatui.js';import{ContextPlugin as _0x1eff52}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x989325}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0xf8dd1c}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x2fe130(0x11c);export var AIChatShortcutType;!function(_0x1d8876){const _0x224d4c=_0x2fe130;_0x1d8876[_0x224d4c(0x130)]=_0x224d4c(0x115),_0x1d8876[_0x224d4c(0xe1)]=_0x224d4c(0x112),_0x1d8876[_0x224d4c(0x13b)]=_0x224d4c(0x101);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x1eff52{[_0x2fe130(0x12c)];[_0x2fe130(0x10e)];[_0x2fe130(0x129)];static get[_0x2fe130(0x133)](){return[_0xb6667a];}static get[_0x2fe130(0xff)](){const _0x899629=_0x2fe130;return _0x899629(0x12a);}static get[_0x2fe130(0x120)](){return!0x0;}static get[_0x2fe130(0x134)](){return!0x0;}[_0x2fe130(0xf8)](){const _0x2c5cc1=_0x2fe130;this[_0x2c5cc1(0x129)]=this[_0x2c5cc1(0x118)][_0x2c5cc1(0x138)][_0x2c5cc1(0x105)](_0xb6667a),this[_0x2c5cc1(0x12c)]=this[_0x2c5cc1(0x118)][_0x2c5cc1(0x106)][_0x2c5cc1(0x105)](_0x2c5cc1(0x126))??[];const _0x6d7737=this[_0x2c5cc1(0x118)][_0x2c5cc1(0x138)][_0x2c5cc1(0x105)](_0x2c5cc1(0xfa));this[_0x2c5cc1(0x12c)][_0x2c5cc1(0x12e)]&&(this[_0x2c5cc1(0x11f)](),this[_0x2c5cc1(0x129)]['on'](_0x2c5cc1(0x10b),()=>{const _0x4cf5b9=_0x2c5cc1;_0x6d7737[_0x4cf5b9(0x114)][_0x4cf5b9(0xf7)]||this[_0x4cf5b9(0x135)]();}),this[_0x2c5cc1(0x137)](_0x6d7737,_0x2c5cc1(0xdf),()=>{const _0x1cf5fc=_0x2c5cc1;this[_0x1cf5fc(0xf9)]();}));}[_0x2fe130(0x11f)](){const _0x4be2c6=_0x2fe130,_0x72ae37=Object[_0x4be2c6(0x13a)](AIChatShortcutType);this[_0x4be2c6(0x12c)][_0x4be2c6(0x10f)](_0x1d60b0=>{const _0x49bfd2=_0x4be2c6;let _0x4e4b4f=!0x0;if(_0x1d60b0['id']&&_0x1d60b0[_0x49bfd2(0x11d)]&&_0x72ae37[_0x49bfd2(0xef)](_0x1d60b0[_0x49bfd2(0xe8)])?_0x49bfd2(0x115)===_0x1d60b0[_0x49bfd2(0xe8)]&&(_0x4e4b4f=_0x49bfd2(0x107)==typeof _0x1d60b0[_0x49bfd2(0xe9)]):_0x4e4b4f=!0x1,!_0x4e4b4f)throw new _0xf8dd1c(_0x49bfd2(0x127),this[_0x49bfd2(0x118)],{'shortcut':_0x1d60b0});});}[_0x2fe130(0x135)](){const _0x52233c=_0x2fe130,_0x3445bd=this[_0x52233c(0x118)][_0x52233c(0x138)][_0x52233c(0x105)](_0xb6667a);this[_0x52233c(0x10e)]=new _0x989325(this[_0x52233c(0x118)][_0x52233c(0x104)],this[_0x52233c(0x12c)]),this[_0x52233c(0x10e)][_0x52233c(0x103)](),_0x3445bd[_0x52233c(0x125)](this[_0x52233c(0x10e)][_0x52233c(0xf3)],Ut),this[_0x52233c(0x10e)]['on'](_0x52233c(0x10c),_0x3d99ed=>{const _0x1efd3a=_0x52233c,_0x59ce16=_0x3d99ed[_0x1efd3a(0x121)]['id'];this[_0x1efd3a(0x11a)](_0x59ce16);});}[_0x2fe130(0xf9)](){const _0x2e3c74=_0x2fe130,_0x1c9a6d=this[_0x2e3c74(0x118)][_0x2e3c74(0x138)][_0x2e3c74(0x105)](_0xb6667a);_0x1c9a6d[_0x2e3c74(0xeb)](Ut)&&_0x1c9a6d[_0x2e3c74(0xe5)](Ut),this[_0x2e3c74(0x10e)]?.[_0x2e3c74(0xf1)]();}[_0x2fe130(0x11a)](_0x4284fe){const _0x2a009e=_0x2fe130,_0x1ab921=this[_0x2a009e(0x12c)][_0x2a009e(0x131)](_0x24f27f=>_0x24f27f['id']===_0x4284fe),_0x14fb9d=_0x1ab921[_0x2a009e(0xe8)];_0x2a009e(0x115)===_0x14fb9d?this[_0x2a009e(0x11e)](_0x1ab921):_0x2a009e(0x112)===_0x14fb9d?_0x1ab921[_0x2a009e(0x119)]?this[_0x2a009e(0x124)](_0x1ab921):this[_0x2a009e(0xfd)](_0x2a009e(0x113)):_0x2a009e(0x101)===_0x14fb9d&&(_0x1ab921[_0x2a009e(0x109)]?this[_0x2a009e(0x100)](_0x1ab921):this[_0x2a009e(0xfd)](_0x2a009e(0x101)));}[_0x2fe130(0xfd)](_0x284cb1){const _0xbbac8a=_0x2fe130;if(!this[_0xbbac8a(0x118)][_0xbbac8a(0x138)][_0xbbac8a(0x110)](_0xbbac8a(0x123)))throw new _0xf8dd1c(_0xbbac8a(0x12d),this[_0xbbac8a(0x118)],{'tabName':_0x284cb1});this[_0xbbac8a(0x118)][_0xbbac8a(0x138)][_0xbbac8a(0x105)](_0xbbac8a(0x123))[_0xbbac8a(0x11b)][_0xbbac8a(0x128)](_0x284cb1);}async[_0x2fe130(0x11e)]({prompt:_0x429588,draftMode:_0x5efee4,useWebSearch:_0x397fbd=!0x1,useReasoning:_0x317cb1=!0x1,model:_0x12e7d0}){const _0x1ec382=_0x2fe130,_0x26f7c8=this[_0x1ec382(0x118)][_0x1ec382(0x138)][_0x1ec382(0x105)](_0x1ec382(0xfb)),_0x26f639=this[_0x1ec382(0x118)][_0x1ec382(0x138)][_0x1ec382(0x105)](_0x1ec382(0xfa)),_0x2d8a38=_0x26f639[_0x1ec382(0x114)];let _0x3c2c20;_0x3c2c20=_0x12e7d0?await _0x2d8a38[_0x1ec382(0xfe)][_0x1ec382(0xea)](_0x12e7d0):await _0x2d8a38[_0x1ec382(0xfe)][_0x1ec382(0x117)](),_0x3c2c20&&await _0x2d8a38[_0x1ec382(0xe2)](_0x3c2c20),_0x2d8a38[_0x1ec382(0xfc)](_0x397fbd),_0x2d8a38[_0x1ec382(0xe4)](_0x317cb1),_0x26f639[_0x1ec382(0xe7)](),_0x5efee4?(this[_0x1ec382(0x129)][_0x1ec382(0x10d)](_0x429588),this[_0x1ec382(0x129)][_0x1ec382(0x102)](!0x0)):_0x26f7c8[_0x1ec382(0xed)]({'message':_0x429588});}[_0x2fe130(0x124)]({check:_0x5e63e4,model:_0xa89d7e,prompt:_0x16b942,params:_0x2af6d1}){const _0x440f07=_0x2fe130;if(!this[_0x440f07(0x118)][_0x440f07(0x138)][_0x440f07(0x110)](_0x440f07(0x122)))throw new _0xf8dd1c(_0x440f07(0xe6),this[_0x440f07(0x118)]);this[_0x440f07(0xfd)](_0x440f07(0x113));const _0x732f83={'id':_0x5e63e4,'isCustom':_0x440f07(0x136)===_0x5e63e4};_0xa89d7e&&_0x16b942&&(_0x732f83[_0x440f07(0x132)]={'model':_0xa89d7e,'prompt':_0x16b942}),_0x2af6d1&&(_0x732f83[_0x440f07(0x12b)]=_0x2af6d1),this[_0x440f07(0x118)][_0x440f07(0x138)][_0x440f07(0x105)](_0x440f07(0x122))[_0x440f07(0xf0)](_0x440f07(0x108),_0x732f83);}[_0x2fe130(0x100)]({language:_0x26042f}){const _0x5b29f4=_0x2fe130;if(!this[_0x5b29f4(0x118)][_0x5b29f4(0x138)][_0x5b29f4(0x110)](_0x5b29f4(0x12f)))throw new _0xf8dd1c(_0x5b29f4(0x139),this[_0x5b29f4(0x118)]);this[_0x5b29f4(0xfd)](_0x5b29f4(0x101)),this[_0x5b29f4(0x118)][_0x5b29f4(0x138)][_0x5b29f4(0x105)](_0x5b29f4(0x12f))[_0x5b29f4(0xf0)](_0x5b29f4(0x108),{'id':_0x26042f,'args':{'language':_0x26042f}});}}function _0x2b5c(_0x3176c8,_0x522a91){const _0x2bf580=_0x2bf5();return _0x2b5c=function(_0x2b5c95,_0x348a1b){_0x2b5c95=_0x2b5c95-0xdf;let _0x2adb10=_0x2bf580[_0x2b5c95];return _0x2adb10;},_0x2b5c(_0x3176c8,_0x522a91);}function _0x2bf5(){const _0x4abdfa=['has','330JQZTtV','review','reviewMode','activeConversation','chat','1174981iigDMX','getDefault','context','check','_executeShortcut','view','chat-shortcuts','label','_runChatShortcut','_validateShortcuts','isOfficialPlugin','source','AIReviewModeUI','AITabs','_runReviewShortcut','addFeedItemCustomElement','ai.chat.shortcuts','ai-chat-shortcuts-invalid-config','activateTab','_aiChatUI','AIChatShortcuts','params','_shortcuts','ai-chat-shortcuts-ai-tabs-not-found','length','AITranslateUI','CHAT','find','args','requires','isPremiumPlugin','_injectShortcuts','custom','listenTo','plugins','ai-chat-shortcuts-translate-not-found','values','TRANSLATE','interactionStarted','8657uoodgI','REVIEW','setModel','827673IBZuYR','setReasoning','removeFeedItem','ai-chat-shortcuts-review-mode-not-found','addCurrentDocumentToChatContext','type','prompt','getModel','hasFeedItem','2EqQmzl','sendMessage','3301308MydToO','includes','fire','destroy','11282768FZIMKn','element','89346IQgVGZ','544688DtDiUt','34030Uclqia','isFromHistory','init','_removeShortcuts','AIChatController','AIChat','setWebSearch','_switchTab','chatModels','pluginName','_runTranslateShortcut','translate','focusPromptInput','render','locale','get','config','string','runReviewCheck','language','30ApVbAJ','conversationCreated','execute','setPromptInputValue','_shortcutsView','forEach'];_0x2bf5=function(){return _0x4abdfa;};return _0x2bf5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x213ec4=_0x16da;function _0x38ae(){const _0x17c4f8=['addMany','3533424RwPdjV','ck-ai-chat-shortcuts','delegate','2476320VTqDsw','2126460SIEmSI','items','div','1520RPGxNC','execute','children','30645CweIBR','574523nUAgmg','listView','locale','setTemplate','add','1122459HeoBkZ','2QwflMV','25396JgjtHt','map','5260lvLCFP'];_0x38ae=function(){return _0x17c4f8;};return _0x38ae();}function _0x16da(_0x387f02,_0x3197bf){const _0x38ae1f=_0x38ae();return _0x16da=function(_0x16dab9,_0x38e4e9){_0x16dab9=_0x16dab9-0x1e6;let _0x313abf=_0x38ae1f[_0x16dab9];return _0x313abf;},_0x16da(_0x387f02,_0x3197bf);}(function(_0x369289,_0x4196a3){const _0x225bb7=_0x16da,_0x5d7d5b=_0x369289();while(!![]){try{const _0x4a4b58=parseInt(_0x225bb7(0x1f5))/0x1*(parseInt(_0x225bb7(0x1fb))/0x2)+parseInt(_0x225bb7(0x1fa))/0x3+parseInt(_0x225bb7(0x1ea))/0x4+-parseInt(_0x225bb7(0x1ed))/0x5+parseInt(_0x225bb7(0x1ee))/0x6+-parseInt(_0x225bb7(0x1e6))/0x7*(-parseInt(_0x225bb7(0x1f1))/0x8)+-parseInt(_0x225bb7(0x1f4))/0x9*(parseInt(_0x225bb7(0x1e8))/0xa);if(_0x4a4b58===_0x4196a3)break;else _0x5d7d5b['push'](_0x5d7d5b['shift']());}catch(_0x4aadd2){_0x5d7d5b['push'](_0x5d7d5b['shift']());}}}(_0x38ae,0x8fe9c));import{ListItemView as _0x53b14f,ListView as _0x5eac6e,View as _0x33d8c2}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x38e810}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x33d8c2{[_0x213ec4(0x1f6)];constructor(_0x25ceac,_0x5c177d){const _0x4de01a=_0x213ec4;super(_0x25ceac);const _0x38ce1e=_0x5c177d[_0x4de01a(0x1e7)](_0x4139c4=>{const _0x129ad1=_0x4de01a,_0x27bd6d=new _0x53b14f(this[_0x129ad1(0x1f7)]),_0x2f4cad=new _0x38e810(this[_0x129ad1(0x1f7)],_0x4139c4);return _0x27bd6d[_0x129ad1(0x1f3)][_0x129ad1(0x1f9)](_0x2f4cad),_0x2f4cad[_0x129ad1(0x1ec)](_0x129ad1(0x1f2))['to'](this),_0x27bd6d;});this[_0x4de01a(0x1f6)]=new _0x5eac6e(this[_0x4de01a(0x1f7)]),this[_0x4de01a(0x1f6)][_0x4de01a(0x1ef)][_0x4de01a(0x1e9)](_0x38ce1e),this[_0x4de01a(0x1f8)]({'tag':_0x4de01a(0x1f0),'attributes':{'class':['ck',_0x4de01a(0x1eb)]},'children':[this[_0x4de01a(0x1f6)]]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x9da29c,_0x1e95bb){const _0x44690d=_0x5530,_0x465436=_0x9da29c();while(!![]){try{const _0x28577b=parseInt(_0x44690d(0x1c2))/0x1+-parseInt(_0x44690d(0x1bd))/0x2+parseInt(_0x44690d(0x1b9))/0x3*(-parseInt(_0x44690d(0x1be))/0x4)+parseInt(_0x44690d(0x1b7))/0x5+-parseInt(_0x44690d(0x1c0))/0x6+-parseInt(_0x44690d(0x1c3))/0x7+parseInt(_0x44690d(0x1b6))/0x8;if(_0x28577b===_0x1e95bb)break;else _0x465436['push'](_0x465436['shift']());}catch(_0x4dccc6){_0x465436['push'](_0x465436['shift']());}}}(_0x1889,0x7ffa7));function _0x5530(_0x3d7a58,_0x317569){const _0x18894c=_0x1889();return _0x5530=function(_0x553014,_0x2090ea){_0x553014=_0x553014-0x1b6;let _0x11f75f=_0x18894c[_0x553014];return _0x11f75f;},_0x5530(_0x3d7a58,_0x317569);}import{ButtonView as _0x5b31e1}from'ckeditor5/src/ui.js';import{IconAIChat as _0x1a2053,IconAIReview as _0x37faf0,IconAITranslate as _0x1f810d}from'@ckeditor/ckeditor5-icons';function _0x1889(){const _0x55cbee=['13426544tbnTub','5209230pqwwPs','icon','2573973QYgubn','label','translate','chat','1975686LVzixg','4WErFMV','set','1101690nrJWyc','review','12344yrIiGf','1252020QfYJVM','extendTemplate','ck-ai-chat-shortcut'];_0x1889=function(){return _0x55cbee;};return _0x1889();}export class AIChatShortcutView extends _0x5b31e1{['id'];constructor(_0xc7cc78,_0x42aff4){const _0x255a11=_0x5530;super(_0xc7cc78);const {id:_0x1f96bb,type:_0x358ed7,icon:_0xb8bc35}=_0x42aff4;this['id']=_0x1f96bb,this[_0x255a11(0x1bf)]({'label':_0x42aff4[_0x255a11(0x1ba)],'withText':!0x0,'class':_0x255a11(0x1c5)}),this[_0x255a11(0x1c4)]({'attributes':{'data-cke-ai-shortcut-id':_0x42aff4['id']}}),_0xb8bc35?this[_0x255a11(0x1b8)]=_0xb8bc35:_0x255a11(0x1bc)===_0x358ed7?this[_0x255a11(0x1b8)]=_0x1a2053:_0x255a11(0x1c1)===_0x358ed7?this[_0x255a11(0x1b8)]=_0x37faf0:_0x255a11(0x1bb)===_0x358ed7&&(this[_0x255a11(0x1b8)]=_0x1f810d);}}
|