@ckeditor/ckeditor5-ai 47.7.3 → 47.7.5-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 _0x53d90e=_0x503c;(function(_0x71f2ca,_0x1a716a){const _0x5bab4e=_0x503c,_0x141fc1=_0x71f2ca();while(!![]){try{const _0x3d8fa5=parseInt(_0x5bab4e(0x237))/0x1*(parseInt(_0x5bab4e(0x1f3))/0x2)+parseInt(_0x5bab4e(0x230))/0x3+parseInt(_0x5bab4e(0x218))/0x4+parseInt(_0x5bab4e(0x20f))/0x5*(parseInt(_0x5bab4e(0x1d6))/0x6)+-parseInt(_0x5bab4e(0x231))/0x7+parseInt(_0x5bab4e(0x1dd))/0x8*(-parseInt(_0x5bab4e(0x1ef))/0x9)+parseInt(_0x5bab4e(0x1d4))/0xa*(parseInt(_0x5bab4e(0x22e))/0xb);if(_0x3d8fa5===_0x1a716a)break;else _0x141fc1['push'](_0x141fc1['shift']());}catch(_0x5ee638){_0x141fc1['push'](_0x141fc1['shift']());}}}(_0x3c3b,0xe386d));import{ContextPlugin as _0x14ebd8}from'ckeditor5/src/core.js';import{AIConnector as _0x1cf498}from'../aicore/aiconnector.js';import{AIChatController as _0x2ab7fd}from'../aichat/aichatcontroller.js';import{AITabs as _0x317f0e}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0xe8ad23}from'./aichathistoryui.js';function _0x503c(_0x2fccd8,_0x36f562){const _0x3c3b53=_0x3c3b();return _0x503c=function(_0x503c47,_0x565676){_0x503c47=_0x503c47-0x1d1;let _0xf1bab2=_0x3c3b53[_0x503c47];return _0xf1bab2;},_0x503c(_0x2fccd8,_0x36f562);}import{AIChatHistoryConversations as _0x3e5d24}from'./model/aichathistoryconversations.js';function _0x3c3b(){const _0x44176=['init','error','operation','getItems','removeHistoryItem','125WIKVrQ','getMonth','AI_CHAT_HISTORY_CATEGORY_TODAY','listenTo','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','length','openChat','_handleTogglePin','updateItemTitle','1108736jlCNJy','pin','_setIsMaximized','updateItemPinned','AI_CHAT_HISTORY_UNPIN_ACTION','_aiChatController','remove','_handleHistoryErrorUI','getGroupId','AI_CHAT_UNTITLED_CONVERSATION','plugins','selectConversation','getItem','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','updateItemLoadingState','getDate','loadConversation','itemRemoved','context','pluginName','AI_CHAT_HISTORY_CATEGORY_PINNED','_handleRemove','22qGSBIq','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','366912YQerkr','9756922KlAXHI','history','_showConversationHistory','setIsMaximized','items','activeConversation','464799KbiEMg','_handleEditTitle','_setItemLoading','activateTab','3866330XZmNOB','resize','68550lhswYZ','change:activeConversation','handleRemovedConversation','setDate','push','setLoadingSkeleton','pinned','16HQSnrb','_handleSelectConversation','_aiConnector','view','isOfficialPlugin','AIChatHistoryController','activateTab:history','editConversationTitle','createdAt','resizeTabs','isPremiumPlugin','itemId','AI_CHAT_HISTORY_CATEGORY_LATER','itemUpdated','loadItems','updateItems','unpin','AI_CHAT_HISTORY_ERROR_GENERIC','279819FcIqks','itemsLoaded','rename','setConversationPinned','4LkWZAz','chat','title','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','removeConversation','updates','toLocaleDateString','AI_CHAT_HISTORY_PIN_ACTION','_getCategorizedItems','_aiChatHistoryUi','showError','resizedTabs','getFullYear','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','locale','requires','_updateHistoryItemsUI','_generateErrorMessage','get','map','removeItem','_clearItemLoading','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS'];_0x3c3b=function(){return _0x44176;};return _0x3c3b();}import{getTranslation as _0x122791}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x14ebd8{[_0x53d90e(0x1df)];[_0x53d90e(0x1fc)];[_0x53d90e(0x21d)];static get[_0x53d90e(0x202)](){return[_0x1cf498,_0x2ab7fd,_0xe8ad23,_0x317f0e];}static get[_0x53d90e(0x22b)](){const _0x5188e9=_0x53d90e;return _0x5188e9(0x1e2);}static get[_0x53d90e(0x1e1)](){return!0x0;}static get[_0x53d90e(0x1e7)](){return!0x0;}[_0x53d90e(0x20a)](){const _0x2f724b=_0x53d90e;this[_0x2f724b(0x1df)]=this[_0x2f724b(0x22a)][_0x2f724b(0x222)][_0x2f724b(0x205)](_0x1cf498),this[_0x2f724b(0x1fc)]=this[_0x2f724b(0x22a)][_0x2f724b(0x222)][_0x2f724b(0x205)](_0xe8ad23),this[_0x2f724b(0x21d)]=this[_0x2f724b(0x22a)][_0x2f724b(0x222)][_0x2f724b(0x205)](_0x2ab7fd);const _0x4b1e69=this[_0x2f724b(0x22a)][_0x2f724b(0x222)][_0x2f724b(0x205)](_0x317f0e);try{const _0x3a0535=this[_0x2f724b(0x21d)][_0x2f724b(0x220)]();this[_0x2f724b(0x232)]=new _0x3e5d24({'connector':this[_0x2f724b(0x1df)],'group':_0x3a0535}),this[_0x2f724b(0x212)](this[_0x2f724b(0x1fc)],_0x2f724b(0x1f7),(_0xf955ea,_0x10d957)=>{const _0x4c401d=_0x2f724b;this[_0x4c401d(0x1d2)](_0x10d957['id'],_0x4c401d(0x21e)),this[_0x4c401d(0x22d)](_0x10d957['id']);}),this[_0x2f724b(0x212)](this[_0x2f724b(0x1fc)],_0x2f724b(0x1e4),(_0x153bea,_0x84e2ba)=>{const _0x1a1f74=_0x2f724b;this[_0x1a1f74(0x1d2)](_0x84e2ba['id'],_0x1a1f74(0x1f1)),this[_0x1a1f74(0x1d1)](_0x84e2ba['id'],_0x84e2ba[_0x1a1f74(0x1f5)]);}),this[_0x2f724b(0x212)](this[_0x2f724b(0x232)],_0x2f724b(0x1ea),(_0x475f3a,_0x537d3f)=>{const _0x185928=_0x2f724b;void 0x0!==_0x537d3f[_0x185928(0x1f8)][_0x185928(0x1f5)]&&this[_0x185928(0x1fc)][_0x185928(0x217)](_0x537d3f[_0x185928(0x1e8)],_0x537d3f[_0x185928(0x1f8)][_0x185928(0x1f5)]),void 0x0!==_0x537d3f[_0x185928(0x1f8)][_0x185928(0x1dc)]&&this[_0x185928(0x203)](),this[_0x185928(0x208)](_0x537d3f[_0x185928(0x1e8)]);}),this[_0x2f724b(0x212)](this[_0x2f724b(0x232)],_0x2f724b(0x229),(_0x37c98e,_0x1093dd)=>{const _0x13bf97=_0x2f724b;this[_0x13bf97(0x21d)][_0x13bf97(0x1d8)](_0x1093dd[_0x13bf97(0x1e8)]),this[_0x13bf97(0x1fc)][_0x13bf97(0x20e)](_0x1093dd[_0x13bf97(0x1e8)]),this[_0x13bf97(0x208)](_0x1093dd[_0x13bf97(0x1e8)]);}),this[_0x2f724b(0x212)](this[_0x2f724b(0x232)],_0x2f724b(0x1f0),()=>{const _0x119c14=_0x2f724b;this[_0x119c14(0x203)]();}),this[_0x2f724b(0x212)](this[_0x2f724b(0x232)],_0x2f724b(0x20b),(_0x14fd3e,_0x2741bb)=>{const _0x2cfddb=_0x2f724b;this[_0x2cfddb(0x21f)](_0x2741bb[_0x2cfddb(0x20b)],_0x2741bb[_0x2cfddb(0x20c)],_0x2741bb[_0x2cfddb(0x1e8)]);}),this[_0x2f724b(0x212)](this[_0x2f724b(0x1fc)],_0x2f724b(0x223),(_0x2df5e1,_0x41105e)=>{const _0x3e88e2=_0x2f724b;this[_0x3e88e2(0x1de)](_0x41105e['id']);}),this[_0x2f724b(0x212)](this[_0x2f724b(0x1fc)],_0x2f724b(0x1f2),(_0x431b9e,_0x4bac02)=>{const _0x38371d=_0x2f724b,_0x2d64ee=_0x4bac02[_0x38371d(0x1dc)]?_0x38371d(0x219):_0x38371d(0x1ed);this[_0x38371d(0x1d2)](_0x4bac02['id'],_0x2d64ee),this[_0x38371d(0x216)](_0x4bac02['id'],_0x4bac02[_0x38371d(0x1dc)]);}),this[_0x2f724b(0x212)](this[_0x2f724b(0x1fc)],_0x2f724b(0x215),()=>{const _0x3502f3=_0x2f724b;_0x4b1e69[_0x3502f3(0x1e0)][_0x3502f3(0x1d3)](_0x3502f3(0x1f4));}),this[_0x2f724b(0x212)](this[_0x2f724b(0x21d)],_0x2f724b(0x1d7),()=>{const _0x300674=_0x2f724b;this[_0x300674(0x203)]();}),_0x4b1e69[_0x2f724b(0x1e0)]['on'](_0x2f724b(0x1e3),()=>{const _0x4e8f05=_0x2f724b;this[_0x4e8f05(0x233)]();}),this[_0x2f724b(0x212)](_0x4b1e69,_0x2f724b(0x1fe),(_0x5cf1d2,_0x18ff98)=>{const _0x28abcf=_0x2f724b;this[_0x28abcf(0x21a)](_0x18ff98);}),this[_0x2f724b(0x212)](this[_0x2f724b(0x1fc)],_0x2f724b(0x1e6),()=>{const _0x10cf1a=_0x2f724b;_0x4b1e69[_0x10cf1a(0x1d5)]();});}catch(_0x51309c){this[_0x2f724b(0x21f)](_0x51309c,_0x2f724b(0x20a));}}async[_0x53d90e(0x1d1)](_0x3d84dd,_0x96f5a3){const _0x419a28=_0x53d90e;await this[_0x419a28(0x232)][_0x419a28(0x217)](_0x3d84dd,_0x96f5a3);}async[_0x53d90e(0x216)](_0x2b22f5,_0x588c7a){const _0x22fe0e=_0x53d90e;await this[_0x22fe0e(0x232)][_0x22fe0e(0x21b)](_0x2b22f5,_0x588c7a);}async[_0x53d90e(0x22d)](_0x18a652){const _0x25ae69=_0x53d90e;await this[_0x25ae69(0x232)][_0x25ae69(0x207)](_0x18a652);}async[_0x53d90e(0x1de)](_0x4964d0){const _0x5eebc7=_0x53d90e;await this[_0x5eebc7(0x21d)][_0x5eebc7(0x228)](_0x4964d0);}async[_0x53d90e(0x233)](){const _0x38cf32=_0x53d90e;this[_0x38cf32(0x1fc)][_0x38cf32(0x1fd)](''),this[_0x38cf32(0x1fc)][_0x38cf32(0x1db)](!0x0),await this[_0x38cf32(0x232)][_0x38cf32(0x20a)](),this[_0x38cf32(0x1fc)][_0x38cf32(0x1db)](!0x1);}[_0x53d90e(0x203)](){const _0x51c0c2=_0x53d90e,_0x2f6310=this[_0x51c0c2(0x21d)][_0x51c0c2(0x236)]?.['id'],_0x119ea4=this[_0x51c0c2(0x1fb)]()[_0x51c0c2(0x206)](_0x44dd6d=>({'title':_0x44dd6d[_0x51c0c2(0x1f5)],'items':_0x44dd6d[_0x51c0c2(0x235)][_0x51c0c2(0x206)](_0x469d34=>({'id':_0x469d34['id'],'title':_0x469d34[_0x51c0c2(0x1f5)]||_0x122791(this[_0x51c0c2(0x22a)][_0x51c0c2(0x201)],_0x51c0c2(0x221)),'createdAt':new Date(_0x469d34[_0x51c0c2(0x1e5)])[_0x51c0c2(0x1f9)](),'active':_0x469d34['id']===_0x2f6310,'pinned':_0x469d34[_0x51c0c2(0x1dc)]}))}));this[_0x51c0c2(0x1fc)][_0x51c0c2(0x1ec)](_0x119ea4);}[_0x53d90e(0x1d2)](_0x2a48e1,_0x122122){const _0x586546=_0x53d90e;this[_0x586546(0x1fc)][_0x586546(0x226)](_0x2a48e1,_0x122122,!0x0);}[_0x53d90e(0x208)](_0x16d36e){const _0x161ed0=_0x53d90e;this[_0x161ed0(0x1fc)][_0x161ed0(0x226)](_0x16d36e,null,!0x1);}[_0x53d90e(0x21f)](_0xd7be83,_0x3dcba1,_0x350de7){const _0x157742=_0x53d90e,_0x3ae405=this[_0x157742(0x204)](_0x3dcba1,_0x350de7);this[_0x157742(0x1fc)][_0x157742(0x1fd)](_0x3ae405),_0x350de7&&this[_0x157742(0x208)](_0x350de7),this[_0x157742(0x1fc)][_0x157742(0x1db)](!0x1);}[_0x53d90e(0x204)](_0x383234,_0x2b8d3c){const _0x4b5c23=_0x53d90e,_0xb23179=_0x2b8d3c?this[_0x4b5c23(0x232)][_0x4b5c23(0x224)](_0x2b8d3c):null,_0x4f66ca=_0xb23179?.[_0x4b5c23(0x1f5)]||_0x122791(this[_0x4b5c23(0x22a)][_0x4b5c23(0x201)],_0x4b5c23(0x221));switch(_0x383234){case _0x4b5c23(0x217):return _0x122791(this[_0x4b5c23(0x22a)][_0x4b5c23(0x201)],_0x4b5c23(0x213),_0x4f66ca);case _0x4b5c23(0x21b):{const _0x2b7d0f=_0x122791(this[_0x4b5c23(0x22a)][_0x4b5c23(0x201)],_0xb23179?.[_0x4b5c23(0x1dc)]?_0x4b5c23(0x21c):_0x4b5c23(0x1fa));return _0x122791(this[_0x4b5c23(0x22a)][_0x4b5c23(0x201)],_0x4b5c23(0x225),[_0x2b7d0f,_0x4f66ca]);}case _0x4b5c23(0x207):return _0x122791(this[_0x4b5c23(0x22a)][_0x4b5c23(0x201)],_0x4b5c23(0x22f),_0x4f66ca);case _0x4b5c23(0x20a):case _0x4b5c23(0x1eb):return _0x122791(this[_0x4b5c23(0x22a)][_0x4b5c23(0x201)],_0x4b5c23(0x209));default:return _0x122791(this[_0x4b5c23(0x22a)][_0x4b5c23(0x201)],_0x4b5c23(0x1ee));}}[_0x53d90e(0x1fb)](){const _0x4e55a6=_0x53d90e,_0x1731e3=new Date(),_0x38eb1c=new Date(_0x1731e3[_0x4e55a6(0x1ff)](),_0x1731e3[_0x4e55a6(0x210)](),_0x1731e3[_0x4e55a6(0x227)]()),_0x5931a9=new Date(_0x38eb1c);_0x5931a9[_0x4e55a6(0x1d9)](_0x5931a9[_0x4e55a6(0x227)]()-0x1);const _0x190d99=new Date(_0x38eb1c);_0x190d99[_0x4e55a6(0x1d9)](_0x190d99[_0x4e55a6(0x227)]()-0xe);const _0x5f549f=this[_0x4e55a6(0x232)][_0x4e55a6(0x20d)]({'pinned':!0x0}),_0x300c6f=this[_0x4e55a6(0x232)][_0x4e55a6(0x20d)]({'from':_0x38eb1c,'to':_0x38eb1c}),_0x1cbbb6=this[_0x4e55a6(0x232)][_0x4e55a6(0x20d)]({'from':_0x5931a9,'to':_0x5931a9}),_0x2b0208=this[_0x4e55a6(0x232)][_0x4e55a6(0x20d)]({'from':_0x190d99,'to':_0x5931a9}),_0x1b597b=this[_0x4e55a6(0x232)][_0x4e55a6(0x20d)]({'to':_0x190d99}),_0x3f81fb=[];return _0x5f549f[_0x4e55a6(0x214)]>0x0&&_0x3f81fb[_0x4e55a6(0x1da)]({'title':_0x122791(this[_0x4e55a6(0x22a)][_0x4e55a6(0x201)],_0x4e55a6(0x22c)),'items':_0x5f549f}),_0x300c6f[_0x4e55a6(0x214)]>0x0&&_0x3f81fb[_0x4e55a6(0x1da)]({'title':_0x122791(this[_0x4e55a6(0x22a)][_0x4e55a6(0x201)],_0x4e55a6(0x211)),'items':_0x300c6f}),_0x1cbbb6[_0x4e55a6(0x214)]>0x0&&_0x3f81fb[_0x4e55a6(0x1da)]({'title':_0x122791(this[_0x4e55a6(0x22a)][_0x4e55a6(0x201)],_0x4e55a6(0x1f6)),'items':_0x1cbbb6}),_0x2b0208[_0x4e55a6(0x214)]>0x0&&_0x3f81fb[_0x4e55a6(0x1da)]({'title':_0x122791(this[_0x4e55a6(0x22a)][_0x4e55a6(0x201)],_0x4e55a6(0x200)),'items':_0x2b0208}),_0x1b597b[_0x4e55a6(0x214)]>0x0&&_0x3f81fb[_0x4e55a6(0x1da)]({'title':_0x122791(this[_0x4e55a6(0x22a)][_0x4e55a6(0x201)],_0x4e55a6(0x1e9)),'items':_0x1b597b}),_0x3f81fb;}[_0x53d90e(0x21a)](_0x590884){const _0x200d3f=_0x53d90e;this[_0x200d3f(0x1fc)][_0x200d3f(0x234)](_0x590884);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b2063=_0x480b;function _0x480b(_0x1411b1,_0x181712){const _0x505ec0=_0x505e();return _0x480b=function(_0x480b72,_0x39e5c7){_0x480b72=_0x480b72-0xc0;let _0x333299=_0x505ec0[_0x480b72];return _0x333299;},_0x480b(_0x1411b1,_0x181712);}(function(_0x4dbb53,_0x1e635a){const _0xabeb8c=_0x480b,_0x190348=_0x4dbb53();while(!![]){try{const _0x52963b=-parseInt(_0xabeb8c(0xd9))/0x1*(-parseInt(_0xabeb8c(0xd7))/0x2)+parseInt(_0xabeb8c(0xe7))/0x3*(-parseInt(_0xabeb8c(0xf1))/0x4)+-parseInt(_0xabeb8c(0xec))/0x5*(parseInt(_0xabeb8c(0xeb))/0x6)+-parseInt(_0xabeb8c(0xcc))/0x7*(parseInt(_0xabeb8c(0xcd))/0x8)+parseInt(_0xabeb8c(0xef))/0x9*(parseInt(_0xabeb8c(0xdd))/0xa)+-parseInt(_0xabeb8c(0xd0))/0xb*(parseInt(_0xabeb8c(0xd4))/0xc)+-parseInt(_0xabeb8c(0xe8))/0xd*(-parseInt(_0xabeb8c(0xc5))/0xe);if(_0x52963b===_0x1e635a)break;else _0x190348['push'](_0x190348['shift']());}catch(_0x47affa){_0x190348['push'](_0x190348['shift']());}}}(_0x505e,0x6f442));import{ContextPlugin as _0x1e83e8}from'ckeditor5/src/core.js';import{AITabs as _0x1bf4b5}from'../aitabs/aitabs.js';function _0x505e(){const _0x1ca22a=['showError','plugins','5214VLiYib','2425GdLIEG','locale','isOfficialPlugin','3026709VpYckR','setLoadingSkeleton','4DtCCnz','history','isMaximized','delegate','removeHistoryItem','pluginName','118902ilCFfv','isLoading','errorMessage','updateItems','showResizeButton','updateHistoryItemsWithCategories','showConversationHistory','7bAqQHH','661816DEYOYm','context','get','66EeUWbD','updateItemTitle','selectConversation','hideError','343800MaozqP','updateItemLoadingState','requires','2FKxmgO','addTab','29066QHGLWd','resizeTabs','removeConversation','setIsMaximized','10IcRItu','isPremiumPlugin','AITabs','AI_CHAT_HISTORY_HEADING','setConversationPinned','view','_historyView','editConversationTitle','AIChatHistoryUI','openChat','2312286RNfxkX','2353cyftnx'];_0x505e=function(){return _0x1ca22a;};return _0x505e();}import{IconAIHistory as _0xbc0f2d}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0xa0a94c}from'./ui/aichathistoryview.js';import{getTranslation as _0x810461}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x3b2063(0xcb),_0x3b2063(0xdb),_0x3b2063(0xe4),_0x3b2063(0xe1),_0x3b2063(0xd2),_0x3b2063(0xe6),_0x3b2063(0xda)];export class AIChatHistoryUI extends _0x1e83e8{static get[_0x3b2063(0xd6)](){return[_0x1bf4b5];}[_0x3b2063(0xe3)];static get[_0x3b2063(0xc4)](){const _0x277cbc=_0x3b2063;return _0x277cbc(0xe5);}static get[_0x3b2063(0xee)](){return!0x0;}static get[_0x3b2063(0xde)](){return!0x0;}constructor(_0x261048){const _0x278536=_0x3b2063;super(_0x261048);const _0x270d34=this[_0x278536(0xce)][_0x278536(0xea)][_0x278536(0xcf)](_0x278536(0xdf));this[_0x278536(0xe3)]=new _0xa0a94c(this[_0x278536(0xce)][_0x278536(0xed)],_0x270d34[_0x278536(0xc9)]),this[_0x278536(0xe3)][_0x278536(0xc2)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x270d34[_0x278536(0xe2)][_0x278536(0xd8)]({'id':_0x278536(0xc0),'buttonLabel':_0x810461(this[_0x278536(0xce)][_0x278536(0xed)],_0x278536(0xe0)),'buttonIcon':_0xbc0f2d,'order':0x0,'content':this[_0x278536(0xe3)]});}[_0x3b2063(0xc3)](_0x1928a1){const _0x1d08e7=_0x3b2063;this[_0x1d08e7(0xe3)][_0x1d08e7(0xc3)](_0x1928a1);}[_0x3b2063(0xc8)](_0x3f043e){const _0x29d82b=_0x3b2063;this[_0x29d82b(0xe3)][_0x29d82b(0xca)](_0x3f043e);}[_0x3b2063(0xd1)](_0xd1a393,_0x3d06a6){const _0x5100b4=_0x3b2063;this[_0x5100b4(0xe3)][_0x5100b4(0xd1)](_0xd1a393,_0x3d06a6);}[_0x3b2063(0xd5)](_0x3b9e18,_0xae2279,_0x565a54){const _0x3724bc=_0x3b2063;this[_0x3724bc(0xe3)][_0x3724bc(0xd5)](_0x3b9e18,_0xae2279,_0x565a54);}[_0x3b2063(0xf0)](_0x2539d0){const _0x142599=_0x3b2063;this[_0x142599(0xe3)][_0x142599(0xc6)]=_0x2539d0;}[_0x3b2063(0xe9)](_0x57a232){const _0x1bb139=_0x3b2063;this[_0x1bb139(0xe3)][_0x1bb139(0xc7)]=_0x57a232;}[_0x3b2063(0xd3)](){const _0x4280c9=_0x3b2063;this[_0x4280c9(0xe3)][_0x4280c9(0xc7)]='';}[_0x3b2063(0xdc)](_0x1d9791){const _0x10f934=_0x3b2063;this[_0x10f934(0xe3)][_0x10f934(0xc1)]=_0x1d9791;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ee8ce=_0x32ad;(function(_0x1e1d4c,_0xe4a6d0){const _0x11e3e4=_0x32ad,_0x37c123=_0x1e1d4c();while(!![]){try{const _0x26ce1=parseInt(_0x11e3e4(0xfc))/0x1+parseInt(_0x11e3e4(0xea))/0x2*(-parseInt(_0x11e3e4(0xf8))/0x3)+parseInt(_0x11e3e4(0xeb))/0x4*(-parseInt(_0x11e3e4(0x103))/0x5)+-parseInt(_0x11e3e4(0xf0))/0x6+parseInt(_0x11e3e4(0xf3))/0x7+parseInt(_0x11e3e4(0xf5))/0x8+parseInt(_0x11e3e4(0x105))/0x9;if(_0x26ce1===_0xe4a6d0)break;else _0x37c123['push'](_0x37c123['shift']());}catch(_0x3d9fb8){_0x37c123['push'](_0x37c123['shift']());}}}(_0xdb50,0x1bc01));function _0x32ad(_0x2f5336,_0x39cf93){const _0xdb50e5=_0xdb50();return _0x32ad=function(_0x32ade5,_0x2067e6){_0x32ade5=_0x32ade5-0xd9;let _0x509b30=_0xdb50e5[_0x32ade5];return _0x509b30;},_0x32ad(_0x2f5336,_0x39cf93);}import{EmitterMixin as _0x2ce45d}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x51eeff}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x2ce45d(){[_0x1ee8ce(0xda)]=[];[_0x1ee8ce(0xd9)];[_0x1ee8ce(0xf7)];constructor({connector:_0x2cfb6b,group:_0x1ac8de}){const _0x1893e8=_0x1ee8ce;super(),this[_0x1893e8(0xd9)]=_0x2cfb6b,this[_0x1893e8(0xf7)]=_0x1ac8de;}async[_0x1ee8ce(0xfd)](){const _0x5d3f1c=_0x1ee8ce;try{const _0x3628ca=this[_0x5d3f1c(0xd9)][_0x5d3f1c(0xee)](this[_0x5d3f1c(0xf7)]),_0x4063bd=await _0x3628ca[_0x5d3f1c(0xf1)]();this[_0x5d3f1c(0xe4)](_0x4063bd);}catch(_0x3bdffa){this[_0x5d3f1c(0xe0)](_0x5d3f1c(0xe2),{'error':_0x3bdffa,'operation':_0x5d3f1c(0xfd)});}}[_0x1ee8ce(0xf2)](_0x5b4788){const _0x47861c=_0x1ee8ce;this[_0x47861c(0xda)][_0x47861c(0xe1)](_0x5b4788);}async[_0x1ee8ce(0xfb)](_0x378f3e){const _0xe8d314=_0x1ee8ce,_0x3b8e1e=this[_0xe8d314(0xda)][_0xe8d314(0x101)](_0x450634=>_0x450634['id']===_0x378f3e);if(-0x1===_0x3b8e1e)return!0x1;try{return await this[_0xe8d314(0xd9)][_0xe8d314(0x104)](_0x378f3e)[_0xe8d314(0xed)](),this[_0xe8d314(0xda)][_0xe8d314(0xe9)](_0x3b8e1e,0x1),this[_0xe8d314(0xe0)](_0xe8d314(0xdf),{'itemId':_0x378f3e}),!0x0;}catch(_0x1b5172){return this[_0xe8d314(0xe0)](_0xe8d314(0xe2),{'error':_0x1b5172,'operation':_0xe8d314(0xfb),'itemId':_0x378f3e}),!0x1;}}[_0x1ee8ce(0xe3)](_0x1dace5){const _0x499730=_0x1ee8ce;return this[_0x499730(0xda)][_0x499730(0x100)](_0x2d9694=>_0x2d9694['id']===_0x1dace5);}async[_0x1ee8ce(0x102)](_0x5a171b,_0x5deee9){const _0x60c510=_0x1ee8ce,_0x37199c=this[_0x60c510(0xe3)](_0x5a171b);if(!_0x37199c)return!0x1;try{return await this[_0x60c510(0xd9)][_0x60c510(0xe5)](_0x5a171b,{'title':_0x5deee9})[_0x60c510(0x106)](),_0x37199c[_0x60c510(0xf9)](_0x5deee9),this[_0x60c510(0xe0)](_0x60c510(0xfa),{'itemId':_0x5a171b,'updates':{'title':_0x5deee9}}),!0x0;}catch(_0x42638b){return this[_0x60c510(0xe0)](_0x60c510(0xe2),{'error':_0x42638b,'operation':_0x60c510(0x102),'itemId':_0x5a171b}),!0x1;}}async[_0x1ee8ce(0xdb)](_0x5a0241,_0x51f35c){const _0x4aa14f=_0x1ee8ce,_0x2da99f=this[_0x4aa14f(0xe3)](_0x5a0241);if(!_0x2da99f)return!0x1;try{return await this[_0x4aa14f(0xd9)][_0x4aa14f(0xe5)](_0x5a0241,{'pinned':_0x51f35c})[_0x4aa14f(0x106)](),_0x2da99f[_0x4aa14f(0xe6)](_0x51f35c),this[_0x4aa14f(0xe0)](_0x4aa14f(0xfa),{'itemId':_0x5a0241,'updates':{'pinned':_0x51f35c}}),!0x0;}catch(_0x193100){return this[_0x4aa14f(0xe0)](_0x4aa14f(0xe2),{'error':_0x193100,'operation':_0x4aa14f(0xdb),'itemId':_0x5a0241}),!0x1;}}[_0x1ee8ce(0xe4)](_0x37383f){const _0x214658=_0x1ee8ce;try{this[_0x214658(0xda)]=[],_0x37383f[_0x214658(0xf6)](_0xd79d96=>{const _0x2b9a04=_0x214658;this[_0x2b9a04(0xf2)](new _0x51eeff(_0xd79d96));}),this[_0x214658(0xe0)](_0x214658(0xdc),{'items':[...this[_0x214658(0xda)]]});}catch(_0x4ef0c5){this[_0x214658(0xe0)](_0x214658(0xe2),{'error':_0x4ef0c5,'operation':_0x214658(0xe4)});}}[_0x1ee8ce(0xf4)](_0x231f6e={}){const _0x192c69=_0x1ee8ce,_0x8cb80=void 0x0!==_0x231f6e[_0x192c69(0xef)]&&_0x231f6e[_0x192c69(0xef)],_0x260c85=_0x231f6e[_0x192c69(0xdd)]?new Date(_0x231f6e[_0x192c69(0xdd)][_0x192c69(0xe8)](),_0x231f6e[_0x192c69(0xdd)][_0x192c69(0xe7)](),_0x231f6e[_0x192c69(0xdd)][_0x192c69(0xff)]()):null,_0x37b70=_0x231f6e['to']?new Date(_0x231f6e['to'][_0x192c69(0xe8)](),_0x231f6e['to'][_0x192c69(0xe7)](),_0x231f6e['to'][_0x192c69(0xff)]()):null;return this[_0x192c69(0xda)][_0x192c69(0xec)](_0x109b57=>{const _0x37994e=_0x192c69;if(_0x109b57[_0x37994e(0xef)]!==_0x8cb80)return!0x1;if(_0x37b70){const _0x5bc03d=new Date(_0x109b57[_0x37994e(0xfe)][_0x37994e(0xe8)](),_0x109b57[_0x37994e(0xfe)][_0x37994e(0xe7)](),_0x109b57[_0x37994e(0xfe)][_0x37994e(0xff)]());return _0x260c85?_0x260c85[_0x37994e(0xde)]()===_0x37b70[_0x37994e(0xde)]()?_0x5bc03d[_0x37994e(0xde)]()===_0x260c85[_0x37994e(0xde)]():_0x5bc03d<_0x37b70&&_0x5bc03d>=_0x260c85:_0x5bc03d<_0x37b70;}return!0x0;});}}function _0xdb50(){const _0x1e5454=['map','group','24oVuoEb','updateTitle','itemUpdated','removeItem','25435foscvW','init','createdAt','getDate','find','findIndex','updateItemTitle','270pqdStX','deleteConversation','625104oToKFM','getResult','connector','items','updateItemPinned','itemsLoaded','from','getTime','itemRemoved','fire','push','error','getItem','loadItems','updateConversation','updatePinned','getMonth','getFullYear','splice','42290JAqNzm','912FdgbAG','filter','execute','fetchConversations','pinned','1047138hZvhas','getConversations','addItem','1542912ywZYGb','getItems','1234824jWnkuh'];_0xdb50=function(){return _0x1e5454;};return _0xdb50();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x5d24(_0x15d712,_0x15cc37){var _0x4c7ef7=_0x4c7e();return _0x5d24=function(_0x5d2424,_0x5b7575){_0x5d2424=_0x5d2424-0x9f;var _0x494fe5=_0x4c7ef7[_0x5d2424];return _0x494fe5;},_0x5d24(_0x15d712,_0x15cc37);}var _0x43e02=_0x5d24;(function(_0x145a99,_0x34c2ae){var _0x3c4016=_0x5d24,_0x1bf6fc=_0x145a99();while(!![]){try{var _0x1be22f=parseInt(_0x3c4016(0xa4))/0x1*(-parseInt(_0x3c4016(0xa1))/0x2)+-parseInt(_0x3c4016(0xa7))/0x3*(-parseInt(_0x3c4016(0xad))/0x4)+-parseInt(_0x3c4016(0xae))/0x5+-parseInt(_0x3c4016(0xab))/0x6*(-parseInt(_0x3c4016(0xa9))/0x7)+parseInt(_0x3c4016(0xb1))/0x8+parseInt(_0x3c4016(0x9f))/0x9*(parseInt(_0x3c4016(0xaa))/0xa)+-parseInt(_0x3c4016(0xb0))/0xb*(-parseInt(_0x3c4016(0xa0))/0xc);if(_0x1be22f===_0x34c2ae)break;else _0x1bf6fc['push'](_0x1bf6fc['shift']());}catch(_0x5d4c5b){_0x1bf6fc['push'](_0x1bf6fc['shift']());}}}(_0x4c7e,0xb4688));import{ObservableMixin as _0x4e5df0}from'ckeditor5/src/utils.js';function _0x4c7e(){var _0x2b9509=['42MzPWOn','pinned','8CfmawG','6960765McXSWG','updatePinned','210771lQmTWH','6102736WuoasQ','663885LAmAYA','708uOectO','6sDcyVH','title','updateTitle','423681rIQIpC','createdAt','set','379227mSRSLb','updatedAt','739634hLRGur','70WvhjLN'];_0x4c7e=function(){return _0x2b9509;};return _0x4c7e();}import{escape as _0x455540}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x4e5df0(){['id'];[_0x43e02(0xa5)];constructor({id:_0x2e5f13,title:_0x2e884c,createdAt:_0x2b591e,updatedAt:_0x225c61,pinned:_0x26976b}){var _0x4a0ed2=_0x43e02;super(),this['id']=_0x2e5f13,this[_0x4a0ed2(0xa5)]=new Date(_0x2b591e),this[_0x4a0ed2(0xa6)](_0x4a0ed2(0xa2),_0x2e884c),this[_0x4a0ed2(0xa6)](_0x4a0ed2(0xa8),_0x225c61?new Date(_0x225c61):null),this[_0x4a0ed2(0xa6)](_0x4a0ed2(0xac),_0x26976b||!0x1);}[_0x43e02(0xa3)](_0x439de9){var _0x8c252f=_0x43e02;this[_0x8c252f(0xa6)](_0x8c252f(0xa2),_0x455540(_0x439de9)),this[_0x8c252f(0xa8)]=new Date();}[_0x43e02(0xaf)](_0xfe0029){var _0x532472=_0x43e02;this[_0x532472(0xa6)](_0x532472(0xac),_0xfe0029),this[_0x532472(0xa8)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x4d4571=_0x582a;(function(_0x80183f,_0x1f1e40){const _0x4ee981=_0x582a,_0x13119f=_0x80183f();while(!![]){try{const _0x3611b3=parseInt(_0x4ee981(0x1f8))/0x1+parseInt(_0x4ee981(0x1ee))/0x2+-parseInt(_0x4ee981(0x22d))/0x3+-parseInt(_0x4ee981(0x20f))/0x4*(parseInt(_0x4ee981(0x20a))/0x5)+-parseInt(_0x4ee981(0x207))/0x6+-parseInt(_0x4ee981(0x22e))/0x7+parseInt(_0x4ee981(0x1f5))/0x8;if(_0x3611b3===_0x1f1e40)break;else _0x13119f['push'](_0x13119f['shift']());}catch(_0x308d51){_0x13119f['push'](_0x13119f['shift']());}}}(_0x13e0,0x431f4));import{ListItemView as _0x37f6b0,HighlightedTextView as _0x40d592,ButtonView as _0x474f70,ListView as _0x363e36,IconView as _0x30575a,createDropdown as _0x2b5439,InputTextView as _0x5c6e63}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x14342d,IconPin as _0x270198,IconCheck as _0x4be2b4,IconCancel as _0x2ee807}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x2a3d99,ConfirmMixin as _0x552c0f}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x13e0(){const _0xc4bb74=['element','bind','highlightText','Enter','ck-ai-chat-history__item-main-content','AI_CHAT_HISTORY_LOADING_RENAMING','clear','AI_CHAT_HISTORY_REMOVE','label','panelPosition','span','loadingState','listitem','value','click','mainContent','812050TCPeHk','buttonView','_createEditInputView','text','AI_CHAT_HISTORY_REMOVE_CONFIRM','updateLoadingState','ck-ai-chat-history__item-title','3512928QTCZle','ck-ai-chat-history__item--active','createCollection','464732sDocic','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-loader','ck-ai-chat-history__item','addMany','ck-ai-chat-history__item-content','isVisible','_createPinButtonView','_createSpinnerView','AI_CHAT_HISTORY_LOADING_REMOVING','isOn','_createAcceptEditButtonView','withText','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','set','14286uuGGFf','change:isEdit','key','5pvJiwn','div','setConversationPinned','edit:cancel','ck-ai-chat-history__item-check-container','787448dqSPFv','ck-ai-chat-history__item-actions','focus','selectConversation','add','ck-ai-loader__text','_titleView','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_LOADING_PINNING','ck-hidden','_createCancelEditButtonView','LOADING_LABELS','pinned','execute','actions','updateTitle','removeConversation','items','then','ck-ai-chat-history__item--edit','ck-confirm-view-cancel','ck-ai-chat-history__item-check','ck-ai-chat-history__item-date','panelView','editConversationTitle','isEdit','setTemplate','children','fire','_createCheckView','1262448zYXvEu','2904174oxEzKJ','tiny','extendTemplate','_commitEditInputValue','bindTemplate','showConfirm','ck-confirm-view-submit','match','_createMenuDropdownView','AI_CHAT_HISTORY_EDIT_NAME','AI_CHAT_HISTORY_CANCEL','isMatching','locale','ck-ai-chat-history__item-row','AI_CHAT_HISTORY_ACCEPT','string'];_0x13e0=function(){return _0xc4bb74;};return _0x13e0();}import{escape as _0x1e1a85}from'es-toolkit/compat';function _0x582a(_0x3f8aef,_0x20feb3){const _0x13e0bf=_0x13e0();return _0x582a=function(_0x582a1e,_0x517cd3){_0x582a1e=_0x582a1e-0x1e4;let _0x24994f=_0x13e0bf[_0x582a1e];return _0x24994f;},_0x582a(_0x3f8aef,_0x20feb3);}import{AISpinnerView as _0x193780}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x63e2e0}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x552c0f(_0x37f6b0){['id'];static [_0x4d4571(0x21a)]={'remove':_0x4d4571(0x201),'rename':_0x4d4571(0x243),'pin':_0x4d4571(0x217),'unpin':_0x4d4571(0x216)};[_0x4d4571(0x21d)];[_0x4d4571(0x1ed)];[_0x4d4571(0x215)];constructor(_0x14c606,_0xf123d7){const _0x51957f=_0x4d4571;super(_0x14c606);const _0x1bb20e=this[_0x51957f(0x232)];this[_0x51957f(0x206)](_0x51957f(0x228),!0x1),this[_0x51957f(0x206)](_0x51957f(0x1fe),!0x0),this[_0x51957f(0x206)](_0x51957f(0x21b),!!_0xf123d7[_0x51957f(0x21b)]),this[_0x51957f(0x206)](_0x51957f(0x1e9),null),this['id']=_0xf123d7['id'];const {title:_0x577036,createdAt:_0x5a2ccb,active:_0x498295=!0x1}=_0xf123d7;this[_0x51957f(0x215)]=new _0x40d592(),this[_0x51957f(0x215)][_0x51957f(0x1f1)]=_0x577036,this[_0x51957f(0x215)][_0x51957f(0x230)]({'attributes':{'class':[_0x51957f(0x1f4)]}});const _0x452ba3=this[_0x51957f(0x22c)](),_0x285f33=this[_0x51957f(0x1ff)](_0x14c606),_0x56bea0=this[_0x51957f(0x236)](),_0x45fcce=this[_0x51957f(0x1f0)](_0x14c606,_0x577036),_0x43070c=this[_0x51957f(0x203)](_0x14c606,_0x45fcce),_0x597f50=this[_0x51957f(0x219)](_0x14c606,_0x45fcce);this[_0x51957f(0x21d)]=this[_0x51957f(0x1f7)](),this[_0x51957f(0x1ed)]=this[_0x51957f(0x1f7)](),this[_0x51957f(0x1ed)][_0x51957f(0x213)](this[_0x51957f(0x215)]),this[_0x51957f(0x21d)][_0x51957f(0x213)](_0x285f33),this[_0x51957f(0x21d)][_0x51957f(0x213)](_0x56bea0),this['on'](_0x51957f(0x208),(_0x2f1d05,_0x4bd034,_0x3e5ab9)=>{const _0xfcb96f=_0x51957f;this[_0xfcb96f(0x21d)][_0xfcb96f(0x1e4)](),this[_0xfcb96f(0x1ed)][_0xfcb96f(0x1e4)](),_0x3e5ab9?(this[_0xfcb96f(0x21d)][_0xfcb96f(0x213)](_0x43070c),this[_0xfcb96f(0x21d)][_0xfcb96f(0x213)](_0x597f50),this[_0xfcb96f(0x1ed)][_0xfcb96f(0x213)](_0x45fcce),_0x45fcce[_0xfcb96f(0x23e)][_0xfcb96f(0x211)]()):(this[_0xfcb96f(0x21d)][_0xfcb96f(0x213)](_0x285f33),this[_0xfcb96f(0x21d)][_0xfcb96f(0x213)](_0x56bea0),this[_0xfcb96f(0x1ed)][_0xfcb96f(0x213)](this[_0xfcb96f(0x215)]));}),this[_0x51957f(0x229)]({'tag':'li','attributes':{'class':[_0x51957f(0x1fb),_0x498295?_0x51957f(0x1f6):'',_0x1bb20e['if'](_0x51957f(0x1fe),_0x51957f(0x218),_0x455c79=>!_0x455c79),_0x1bb20e['if'](_0x51957f(0x228),_0x51957f(0x222))],'role':_0x51957f(0x1ea)},'children':[{'tag':_0x51957f(0x1e8),'attributes':{'class':[_0x51957f(0x20e)]},'children':[{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x224),_0x1bb20e['if'](_0x51957f(0x1e9),_0x51957f(0x218),_0x591791=>!!_0x591791)]},'children':_0x498295?[_0x452ba3]:[]},{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x1fa),_0x1bb20e['if'](_0x51957f(0x1e9),_0x51957f(0x218),_0x4c508c=>!_0x4c508c)]},'children':[this[_0x51957f(0x200)]()]}]},{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x23b)]},'children':[{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x1fd)]},'on':{'click':this[_0x51957f(0x232)]['to'](_0x51957f(0x1ec))},'children':[{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x242)]},'children':[{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x1f4),_0x1bb20e['if'](_0x51957f(0x1e9),_0x51957f(0x218),_0x57a9eb=>!!_0x57a9eb)]},'children':this[_0x51957f(0x1ed)]},{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x214),_0x1bb20e['if'](_0x51957f(0x1e9),_0x51957f(0x218),_0x4fd47b=>!_0x4fd47b)]},'children':[{'text':_0x1bb20e['to'](_0x51957f(0x1e9),_0xe8b1a7=>_0xe8b1a7?_0x63e2e0(this[_0x51957f(0x23a)],AIChatHistoryListItemView[_0x51957f(0x21a)][_0xe8b1a7]):'')}]}]},{'tag':_0x51957f(0x1e8),'attributes':{'class':[_0x51957f(0x225)]},'children':[_0x5a2ccb]}]},{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x210)]},'children':this[_0x51957f(0x21d)]}]}]}),this['on'](_0x51957f(0x1ec),()=>{const _0x17b8cb=_0x51957f;this[_0x17b8cb(0x228)]||this[_0x17b8cb(0x22b)](_0x17b8cb(0x212),{'id':this['id']});});}[_0x4d4571(0x21e)](_0x4b7e1b){const _0x120bc3=_0x4d4571;this[_0x120bc3(0x215)][_0x120bc3(0x1f1)]=_0x1e1a85(_0x4b7e1b);}[_0x4d4571(0x1f3)](_0x4e3a12,_0x3cb12f){const _0x173033=_0x4d4571;this[_0x173033(0x206)](_0x173033(0x1e9),_0x3cb12f?_0x4e3a12:null);}[_0x4d4571(0x22c)](){const _0x3835df=_0x4d4571,_0x1d7b80=new _0x30575a();return _0x1d7b80[_0x3835df(0x206)]({'content':_0x4be2b4}),_0x1d7b80;}[_0x4d4571(0x1ff)](_0x49f083){const _0x1fcab8=_0x4d4571,_0x9d5610=new _0x474f70(_0x49f083);return _0x9d5610[_0x1fcab8(0x206)]({'label':_0x63e2e0(_0x49f083,_0x1fcab8(0x1f9)),'icon':_0x270198,'withText':!0x1,'tooltip':!0x0}),_0x9d5610[_0x1fcab8(0x23f)](_0x1fcab8(0x202))['to'](this,_0x1fcab8(0x21b)),_0x9d5610['on'](_0x1fcab8(0x21c),()=>{const _0x269216=_0x1fcab8,_0x2ff6e7=!this[_0x269216(0x21b)];this[_0x269216(0x22b)](_0x269216(0x20c),{'id':this['id'],'pinned':_0x2ff6e7});}),_0x9d5610;}[_0x4d4571(0x236)](){const _0x5e6945=_0x4d4571,_0x2d3078=_0x2b5439(this[_0x5e6945(0x23a)],_0x2a3d99),_0x53c1be=_0x2d3078[_0x5e6945(0x226)][_0x5e6945(0x22a)];_0x2d3078[_0x5e6945(0x1ef)][_0x5e6945(0x206)]({'label':_0x63e2e0(this[_0x5e6945(0x23a)],_0x5e6945(0x205)),'icon':_0x14342d}),_0x2d3078[_0x5e6945(0x1e7)]='sw';const _0x45cadc=new _0x474f70(this[_0x5e6945(0x23a)]);_0x45cadc[_0x5e6945(0x1e6)]=_0x63e2e0(this[_0x5e6945(0x23a)],_0x5e6945(0x237)),_0x45cadc[_0x5e6945(0x204)]=!0x0,_0x45cadc['on'](_0x5e6945(0x21c),()=>{const _0x5981c1=_0x5e6945;this[_0x5981c1(0x228)]=!0x0;});const _0x4b8be0=new _0x474f70(this[_0x5e6945(0x23a)]);_0x4b8be0[_0x5e6945(0x1e6)]=_0x63e2e0(this[_0x5e6945(0x23a)],_0x5e6945(0x1e5)),_0x4b8be0[_0x5e6945(0x204)]=!0x0,_0x4b8be0['on'](_0x5e6945(0x21c),()=>{const _0x291d76=_0x5e6945;this[_0x291d76(0x233)](_0x63e2e0(this[_0x291d76(0x23a)],_0x291d76(0x1f2)),this[_0x291d76(0x23e)])[_0x291d76(0x221)](()=>{const _0x340986=_0x291d76;this[_0x340986(0x22b)](_0x340986(0x21f),{'id':this['id']});});});const _0x561527=new _0x363e36(this[_0x5e6945(0x23a)]),_0x3f2505=new _0x37f6b0(this[_0x5e6945(0x23a)]);_0x3f2505[_0x5e6945(0x22a)][_0x5e6945(0x213)](_0x45cadc);const _0x31eff6=new _0x37f6b0(this[_0x5e6945(0x23a)]);return _0x31eff6[_0x5e6945(0x22a)][_0x5e6945(0x213)](_0x4b8be0),_0x561527[_0x5e6945(0x220)][_0x5e6945(0x1fc)]([_0x3f2505,_0x31eff6]),_0x53c1be[_0x5e6945(0x213)](_0x561527),_0x2d3078;}[_0x4d4571(0x1f0)](_0x519a1a,_0x49cfc7){const _0x279a87=_0x4d4571,_0x6e4c46=new _0x5c6e63(_0x519a1a),_0x344c2f=_0x6e4c46[_0x279a87(0x232)];return _0x6e4c46[_0x279a87(0x1eb)]=_0x49cfc7,_0x6e4c46[_0x279a87(0x230)]({'on':{'keydown':_0x344c2f['to'](_0x1c7829=>{const _0x29c9db=_0x279a87;_0x29c9db(0x241)==_0x1c7829[_0x29c9db(0x209)]&&this[_0x29c9db(0x231)](_0x6e4c46);})}}),_0x6e4c46;}[_0x4d4571(0x203)](_0x225821,_0x2b7ea6){const _0x5753bf=_0x4d4571,_0x319b5c=new _0x474f70(_0x225821);return _0x319b5c[_0x5753bf(0x206)]({'icon':_0x4be2b4,'withText':!0x1,'tooltip':_0x63e2e0(_0x225821,_0x5753bf(0x23c))}),_0x319b5c[_0x5753bf(0x230)]({'attributes':{'class':[_0x5753bf(0x234)]}}),_0x319b5c['on'](_0x5753bf(0x21c),()=>{const _0x2e1da4=_0x5753bf;this[_0x2e1da4(0x231)](_0x2b7ea6);}),_0x319b5c;}[_0x4d4571(0x231)](_0x34f14f){const _0x267466=_0x4d4571,_0x441e71=_0x34f14f[_0x267466(0x23e)][_0x267466(0x1eb)]||'';this[_0x267466(0x215)][_0x267466(0x1f1)]=_0x441e71,this[_0x267466(0x228)]=!0x1,this[_0x267466(0x22b)](_0x267466(0x227),{'id':this['id'],'title':_0x441e71});}[_0x4d4571(0x219)](_0x3e695a,_0x4ada9f){const _0x31c96b=_0x4d4571,_0x49ba43=new _0x474f70(_0x3e695a);return _0x49ba43[_0x31c96b(0x206)]({'icon':_0x2ee807,'withText':!0x1,'tooltip':_0x63e2e0(_0x3e695a,_0x31c96b(0x238))}),_0x49ba43[_0x31c96b(0x230)]({'attributes':{'class':[_0x31c96b(0x223)]}}),_0x49ba43['on'](_0x31c96b(0x21c),()=>{const _0x178a15=_0x31c96b;this[_0x178a15(0x228)]=!0x1,_0x4ada9f[_0x178a15(0x1eb)]=this[_0x178a15(0x215)][_0x178a15(0x1f1)]||'',this[_0x178a15(0x22b)](_0x178a15(0x20d));}),_0x49ba43;}[_0x4d4571(0x200)](){const _0x3132c0=_0x4d4571,_0x385491=new _0x193780(_0x3132c0(0x22f));return _0x385491[_0x3132c0(0x1fe)]=!0x0,_0x385491;}[_0x4d4571(0x239)](_0x21aef0){const _0x464561=_0x4d4571;return this[_0x464561(0x215)]&&_0x464561(0x23d)==typeof this[_0x464561(0x215)][_0x464561(0x1f1)]&&this[_0x464561(0x215)][_0x464561(0x1f1)][_0x464561(0x235)](_0x21aef0)?{'title':!0x0}:null;}[_0x4d4571(0x240)](_0x5ece06){const _0xbb7e54=_0x4d4571;this[_0xbb7e54(0x215)][_0xbb7e54(0x240)](_0x5ece06);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x588e(){const _0x4f6153=['21416196eCyoXX','ck-ai-chat-history__section','addMany','2949222NnPvfF','isVisible','filter','set','removeItem','indexOf','bindTemplate','ck-ai-chat-history__section-title','length','2101lPGBLb','75470ECJtVn','502guBhxs','2641770MnsTvc','highlightText','setTemplate','926958XsWnca','itemsViews','_itemsListView','getItem','2024TSBbcx','remove','isMatching','div','title','splice','items','1481YTUAVM','37870OTedmX','5GifZFh','4XgZHmQ','find','ck-hidden'];_0x588e=function(){return _0x4f6153;};return _0x588e();}const _0x469c9b=_0x3831;function _0x3831(_0x5a90f8,_0x425496){const _0x588ece=_0x588e();return _0x3831=function(_0x383191,_0x187c0b){_0x383191=_0x383191-0x181;let _0x1645f1=_0x588ece[_0x383191];return _0x1645f1;},_0x3831(_0x5a90f8,_0x425496);}(function(_0x474cc5,_0x3b7d35){const _0x485d66=_0x3831,_0x2df645=_0x474cc5();while(!![]){try{const _0x348e28=parseInt(_0x485d66(0x1a2))/0x1*(parseInt(_0x485d66(0x193))/0x2)+parseInt(_0x485d66(0x197))/0x3*(-parseInt(_0x485d66(0x182))/0x4)+-parseInt(_0x485d66(0x181))/0x5*(parseInt(_0x485d66(0x188))/0x6)+parseInt(_0x485d66(0x1a3))/0x7*(parseInt(_0x485d66(0x19b))/0x8)+-parseInt(_0x485d66(0x194))/0x9+-parseInt(_0x485d66(0x192))/0xa*(parseInt(_0x485d66(0x191))/0xb)+parseInt(_0x485d66(0x185))/0xc;if(_0x348e28===_0x3b7d35)break;else _0x2df645['push'](_0x2df645['shift']());}catch(_0x3c522c){_0x2df645['push'](_0x2df645['shift']());}}}(_0x588e,0xf19ae));import{ListItemView as _0x145036,View as _0x31969c,ListView as _0x18120a}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x145036{[_0x469c9b(0x19f)];[_0x469c9b(0x198)];[_0x469c9b(0x199)];constructor(_0x346db5,{title:_0x353684,items:_0x18c6ec}){const _0x458229=_0x469c9b;super(_0x346db5);const _0x37b9ff=this[_0x458229(0x18e)];this[_0x458229(0x18b)](_0x458229(0x189),!0x0),this[_0x458229(0x19f)]=_0x353684,this[_0x458229(0x198)]=_0x18c6ec;const _0x401ce7=new _0x31969c(_0x346db5);_0x401ce7[_0x458229(0x196)]({'tag':_0x458229(0x19e),'attributes':{'class':[_0x458229(0x18f)]},'children':[this[_0x458229(0x19f)]]}),this[_0x458229(0x199)]=new _0x18120a(_0x346db5),this[_0x458229(0x199)][_0x458229(0x1a1)][_0x458229(0x187)](this[_0x458229(0x198)]),this[_0x458229(0x196)]({'tag':'li','attributes':{'class':[_0x458229(0x186),_0x37b9ff['if'](_0x458229(0x189),_0x458229(0x184),_0x1bda68=>!_0x1bda68)]},'children':[_0x401ce7,this[_0x458229(0x199)]]});}[_0x469c9b(0x18a)](_0x4a6c81){const _0x4bcbd2=_0x469c9b,_0x53b6ae=this[_0x4bcbd2(0x198)][_0x4bcbd2(0x190)];let _0x9ddecc=0x0;for(const _0x2c4057 of this[_0x4bcbd2(0x198)]){if(_0x4a6c81){const _0x3e441b=_0x2c4057[_0x4bcbd2(0x19d)](_0x4a6c81);_0x2c4057[_0x4bcbd2(0x189)]=!!_0x3e441b,_0x2c4057[_0x4bcbd2(0x195)](_0x4a6c81);}else _0x2c4057[_0x4bcbd2(0x189)]=!0x0,_0x2c4057[_0x4bcbd2(0x195)](null);_0x2c4057[_0x4bcbd2(0x189)]&&_0x9ddecc++;}return this[_0x4bcbd2(0x189)]=_0x9ddecc>0x0,{'resultsCount':_0x9ddecc,'totalItemsCount':_0x53b6ae};}[_0x469c9b(0x19a)](_0x25ed40){const _0x529d49=_0x469c9b;return this[_0x529d49(0x198)][_0x529d49(0x183)](_0x45cefa=>_0x45cefa['id']===_0x25ed40);}[_0x469c9b(0x18c)](_0x4bae2f){const _0x33ede3=_0x469c9b,_0x5752b1=this[_0x33ede3(0x198)][_0x33ede3(0x18d)](_0x4bae2f);-0x1!==_0x5752b1&&(this[_0x33ede3(0x198)][_0x33ede3(0x1a0)](_0x5752b1,0x1),this[_0x33ede3(0x199)][_0x33ede3(0x1a1)][_0x33ede3(0x19c)](_0x4bae2f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x208c18=_0x4f31;(function(_0x4da453,_0x2eb70a){const _0x21f72f=_0x4f31,_0x1b94bb=_0x4da453();while(!![]){try{const _0x471a8a=-parseInt(_0x21f72f(0x1e5))/0x1+-parseInt(_0x21f72f(0x1d9))/0x2+-parseInt(_0x21f72f(0x1e1))/0x3*(parseInt(_0x21f72f(0x1e0))/0x4)+-parseInt(_0x21f72f(0x1e6))/0x5*(-parseInt(_0x21f72f(0x1dc))/0x6)+parseInt(_0x21f72f(0x1e2))/0x7*(parseInt(_0x21f72f(0x1df))/0x8)+-parseInt(_0x21f72f(0x1db))/0x9*(-parseInt(_0x21f72f(0x1dd))/0xa)+-parseInt(_0x21f72f(0x1e4))/0xb*(parseInt(_0x21f72f(0x1ea))/0xc);if(_0x471a8a===_0x2eb70a)break;else _0x1b94bb['push'](_0x1b94bb['shift']());}catch(_0x37c0fd){_0x1b94bb['push'](_0x1b94bb['shift']());}}}(_0x4e09,0xdcd7f));import{ListView as _0x1db815}from'ckeditor5/src/ui.js';function _0x4f31(_0x120cf4,_0x3e87a0){const _0x4e09c5=_0x4e09();return _0x4f31=function(_0x4f31a6,_0x10ac20){_0x4f31a6=_0x4f31a6-0x1d9;let _0x5b9d29=_0x4e09c5[_0x4f31a6];return _0x5b9d29;},_0x4f31(_0x120cf4,_0x3e87a0);}function _0x4e09(){const _0x296b6c=['3575GWCYnp','1610413mInfNV','2898655kSplsm','ck-ai-chat-history__sections','items','filter','564AoLWoi','703146jbSjGH','extendTemplate','133029NfAzkE','12MYBDMu','930SyASex','addMany','3208aFFCdj','1967812dQDSbY','3owKwrJ','14658LYwXFv','sections'];_0x4e09=function(){return _0x296b6c;};return _0x4e09();}export class AIChatHistorySectionListView extends _0x1db815{[_0x208c18(0x1e3)];constructor(_0x4ee320,_0x26cb34){const _0x184103=_0x208c18;super(_0x4ee320),this[_0x184103(0x1e3)]=_0x26cb34,this[_0x184103(0x1e8)][_0x184103(0x1de)](this[_0x184103(0x1e3)]),this[_0x184103(0x1da)]({'attributes':{'class':[_0x184103(0x1e7)]}});}[_0x208c18(0x1e9)](_0x433d7e){const _0x430e20=_0x208c18;let _0x22ec31=0x0,_0x5056a3=0x0;for(const _0x34c433 of this[_0x430e20(0x1e3)]){const {resultsCount:_0x48cf21,totalItemsCount:_0xac9e0b}=_0x34c433[_0x430e20(0x1e9)](_0x433d7e);_0x22ec31+=_0x48cf21,_0x5056a3+=_0xac9e0b;}return{'resultsCount':_0x22ec31,'totalItemsCount':_0x5056a3};}}
|
|
@@ -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 _0x37f596=_0x2893;(function(_0xec30fb,_0x41b29d){const _0x2d8f05=_0x2893,_0x464382=_0xec30fb();while(!![]){try{const _0x29f07c=parseInt(_0x2d8f05(0x12c))/0x1+-parseInt(_0x2d8f05(0x135))/0x2+parseInt(_0x2d8f05(0x13e))/0x3+-parseInt(_0x2d8f05(0x147))/0x4+parseInt(_0x2d8f05(0x13f))/0x5*(-parseInt(_0x2d8f05(0x155))/0x6)+parseInt(_0x2d8f05(0x156))/0x7*(parseInt(_0x2d8f05(0x15e))/0x8)+-parseInt(_0x2d8f05(0x169))/0x9*(-parseInt(_0x2d8f05(0x121))/0xa);if(_0x29f07c===_0x41b29d)break;else _0x464382['push'](_0x464382['shift']());}catch(_0x18f504){_0x464382['push'](_0x464382['shift']());}}}(_0x428c,0x3bd86));import{View as _0x45f2bc,SearchTextView as _0x4e76bd,FormHeaderView as _0x3afe3b,ButtonView as _0x47136c}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x5a65f0,IconCancel as _0x135f2d,IconPlus as _0x47656f}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0xfd5b67}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xbf3f86}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x5b0950}from'./aichathistorylistitemview.js';function _0x2893(_0x2c73d9,_0x2883af){const _0x428cab=_0x428c();return _0x2893=function(_0x289310,_0x1d47c1){_0x289310=_0x289310-0x119;let _0x3ff60a=_0x428cab[_0x289310];return _0x3ff60a;},_0x2893(_0x2c73d9,_0x2883af);}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3e06ba}from'../aichathistoryui.js';function _0x428c(){const _0x1eddd5=['253842KrkRcV','236180WcQEkE','isMaximized','set','removeItem','items','queryView','emptyView','setTemplate','1656288IdeKmA','skeletonView','ck-ai-chat-history__empty','isEmptyViewVisible','addMany','ck-ai-notification_error__dismiss-button','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','fire','openChat','AI_CHAT_HISTORY_HEADING','some','delegate','errorMessage','ck-ai-chat-history__content','48DGZFug','301xjoaDC','change:isLoading','_createEmptyStateView','removeHistoryItem','remove','title','ck-ai-notification','change:errorMessage','61064VYbiMi','_createErrorView','updateItemLoadingState','length','ck-reset_all','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','sectionsView','mainErrorView','sections','ck-ai-chat-history__empty-message','itemsViews','1679121JCDaxp','clear','getItem','extendTemplate','isLoading','fieldView','resizeButton','searchView','children','bindTemplate','updateLoadingState','change:hasItems','locale','render','_createSearchView','AI_CHAT_HISTORY_EMPTY_MESSAGE','add','hasItems','isVisible','execute','ck-ai-notification_error','20XChajo','isSearchViewVisible','_refreshSearch','value','push','search','indexOf','AI_CHAT_LABEL_NEW_CHAT','aiHistory','updateHistoryItemsWithCategories','element','297601gNLJnS','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-chat__start-conversation','bind','_updateViewVisibility','updateItemTitle','_createSkeletonView','isMainErrorViewVisible','ltr','92972nDLBCw','updateTitle','div','_createListItemViews','ck-ai-header\x20ck-ai-header_history','splice','ck-ai-chat-history','ck-hidden','ck-rounded-corners'];_0x428c=function(){return _0x1eddd5;};return _0x428c();}import{AISkeletonView as _0xa1e543,SKELETON_DEFINITIONS as _0xed0d08}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4e4a83}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x572a36}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x45f2bc{[_0x37f596(0x170)];[_0x37f596(0x165)];[_0x37f596(0x148)];[_0x37f596(0x145)];[_0x37f596(0x164)];[_0x37f596(0x16f)];constructor(_0x580660,_0x2d26da){const _0x4a0337=_0x37f596;super(_0x580660),this[_0x4a0337(0x141)](_0x4a0337(0x11d),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x16d),!0x0),this[_0x4a0337(0x141)](_0x4a0337(0x153),''),this[_0x4a0337(0x141)](_0x4a0337(0x140),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x122),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x14a),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x133),!0x1);const _0x22515a=new _0x3afe3b(_0x580660,{'label':_0x572a36(_0x580660,_0x4a0337(0x150)),'icon':_0x5a65f0,'class':_0x4a0337(0x139)});_0x2d26da&&(this[_0x4a0337(0x16f)]=_0x4e4a83(_0x580660,this),_0x22515a[_0x4a0337(0x171)][_0x4a0337(0x11c)](this[_0x4a0337(0x16f)])),this[_0x4a0337(0x164)]=new _0xfd5b67(_0x580660,[]),this[_0x4a0337(0x164)][_0x4a0337(0x152)](..._0x3e06ba)['to'](this),this[_0x4a0337(0x165)]=this[_0x4a0337(0x15f)](),this[_0x4a0337(0x148)]=this[_0x4a0337(0x132)](),this[_0x4a0337(0x145)]=this[_0x4a0337(0x158)](),this[_0x4a0337(0x170)]=this[_0x4a0337(0x11a)](),this[_0x4a0337(0x165)][_0x4a0337(0x16c)]({'attributes':{'class':[this[_0x4a0337(0x172)]['if'](_0x4a0337(0x133),_0x4a0337(0x13c),_0x2268d4=>!_0x2268d4)]}}),this['on'](_0x4a0337(0x157),()=>this[_0x4a0337(0x130)]()),this['on'](_0x4a0337(0x174),()=>this[_0x4a0337(0x130)]()),this['on'](_0x4a0337(0x15d),()=>this[_0x4a0337(0x130)]()),this[_0x4a0337(0x146)]({'tag':_0x4a0337(0x137),'attributes':{'class':['ck',_0x4a0337(0x162),_0x4a0337(0x13b),_0x4a0337(0x13d)],'dir':_0x4a0337(0x134)},'children':[_0x22515a,{'tag':_0x4a0337(0x137),'attributes':{'class':[_0x4a0337(0x154)]},'children':[this[_0x4a0337(0x148)],this[_0x4a0337(0x165)],this[_0x4a0337(0x145)],this[_0x4a0337(0x170)]]}]});}[_0x37f596(0x130)](){const _0x491023=_0x37f596;this[_0x491023(0x122)]=!this[_0x491023(0x16d)]&&this[_0x491023(0x11d)],this[_0x491023(0x14a)]=!this[_0x491023(0x16d)]&&!this[_0x491023(0x11d)]&&!this[_0x491023(0x153)],this[_0x491023(0x133)]=!this[_0x491023(0x122)]&&!!this[_0x491023(0x153)];}[_0x37f596(0x11a)](){const _0x17487b=_0x37f596,_0x12b872=new _0x4e76bd(this[_0x17487b(0x175)],{'filteredView':this[_0x17487b(0x164)],'queryView':{'label':_0x572a36(this[_0x17487b(0x175)],_0x17487b(0x12d))},'infoView':{'text':{'notFound':{'primary':_0x308faf=>_0x572a36(this[_0x17487b(0x175)],_0x17487b(0x14d),_0x308faf),'secondary':_0x572a36(this[_0x17487b(0x175)],_0x17487b(0x163))}}}}),_0x29f073=this[_0x17487b(0x15f)]();return _0x29f073[_0x17487b(0x16c)]({'attributes':{'class':[this[_0x17487b(0x172)]['if'](_0x17487b(0x153),_0x17487b(0x13c),_0x208dfc=>!_0x208dfc)]}}),_0x12b872['on'](_0x17487b(0x119),()=>{const _0x4857ca=_0x17487b;_0x12b872[_0x4857ca(0x171)][_0x4857ca(0x11c)](_0x29f073,0x1);}),_0x12b872[_0x17487b(0x16c)]({'attributes':{'class':[this[_0x17487b(0x172)]['if'](_0x17487b(0x122),_0x17487b(0x13c),_0x1828c8=>!_0x1828c8)]}}),_0x12b872;}[_0x37f596(0x132)](){const _0xe391da=_0x37f596,_0x29b140=new _0xa1e543(this[_0xe391da(0x175)],_0xed0d08[_0xe391da(0x129)]);return _0x29b140[_0xe391da(0x16c)]({'attributes':{'class':[this[_0xe391da(0x172)]['if'](_0xe391da(0x16d),_0xe391da(0x13c),_0x19c9b4=>!_0x19c9b4)]}}),_0x29b140;}[_0x37f596(0x15f)](){const _0x1a3bcc=_0x37f596,_0x5972cd=new _0x45f2bc(this[_0x1a3bcc(0x175)]),_0x16b1fb=new _0x47136c(this[_0x1a3bcc(0x175)]);_0x16b1fb[_0x1a3bcc(0x141)]({'withText':!0x1,'icon':_0x135f2d,'class':_0x1a3bcc(0x14c)}),_0x16b1fb[_0x1a3bcc(0x12f)](_0x1a3bcc(0x11e))['to'](this,_0x1a3bcc(0x11d),_0x51b2d7=>!!_0x51b2d7),_0x16b1fb['on'](_0x1a3bcc(0x11f),()=>{const _0x932e14=_0x1a3bcc;this[_0x932e14(0x153)]='';});const _0x2f92e2=this[_0x1a3bcc(0x172)];return _0x5972cd[_0x1a3bcc(0x146)]({'tag':_0x1a3bcc(0x137),'attributes':{'class':['ck',_0x1a3bcc(0x15c),_0x1a3bcc(0x120)]},'children':[{'tag':'p','children':[{'text':_0x2f92e2['to'](_0x1a3bcc(0x153))}]},_0x16b1fb]}),_0x5972cd;}[_0x37f596(0x158)](){const _0x46a3bc=_0x37f596,_0xd54ed3=new _0x47136c(this[_0x46a3bc(0x175)]);_0xd54ed3[_0x46a3bc(0x141)]({'label':_0x572a36(this[_0x46a3bc(0x175)],_0x46a3bc(0x128)),'withText':!0x0,'icon':_0x47656f,'class':_0x46a3bc(0x12e)}),_0xd54ed3['on'](_0x46a3bc(0x11f),()=>{const _0x47db70=_0x46a3bc;this[_0x47db70(0x14e)](_0x47db70(0x14f));});const _0x14ab30=new _0x45f2bc(this[_0x46a3bc(0x175)]);return _0x14ab30[_0x46a3bc(0x146)]({'tag':_0x46a3bc(0x137),'attributes':{'class':[_0x46a3bc(0x149),this[_0x46a3bc(0x172)]['if'](_0x46a3bc(0x14a),_0x46a3bc(0x13c),_0x404c3b=>!_0x404c3b)]},'children':[{'tag':'p','attributes':{'class':[_0x46a3bc(0x167)]},'children':[_0x572a36(this[_0x46a3bc(0x175)],_0x46a3bc(0x11b))]},_0xd54ed3]}),_0x14ab30;}[_0x37f596(0x138)](_0x29eef3,_0x1181fc){const _0x332e26=_0x37f596,_0x50206e=[];for(const _0xd51cca of _0x29eef3){const _0x1baae1=new _0x5b0950(_0x1181fc,_0xd51cca);_0x1baae1[_0x332e26(0x152)](..._0x3e06ba)['to'](this),_0x50206e[_0x332e26(0x125)](_0x1baae1);}return _0x50206e;}[_0x37f596(0x12a)](_0xdb6975){const _0x3622fd=_0x37f596,_0x362405=this[_0x3622fd(0x175)]||'en',_0x5cba96=[];for(const _0x55a928 of _0xdb6975){const _0x351664=this[_0x3622fd(0x138)](_0x55a928[_0x3622fd(0x143)],_0x362405);_0x5cba96[_0x3622fd(0x125)](new _0xbf3f86(_0x362405,{'title':_0x55a928[_0x3622fd(0x15b)],'items':_0x351664}));}this[_0x3622fd(0x164)][_0x3622fd(0x166)]=_0x5cba96,this[_0x3622fd(0x164)][_0x3622fd(0x143)][_0x3622fd(0x16a)](),this[_0x3622fd(0x164)][_0x3622fd(0x143)][_0x3622fd(0x14b)](_0x5cba96),this[_0x3622fd(0x11d)]=_0xdb6975[_0x3622fd(0x151)](_0x12c467=>_0x12c467[_0x3622fd(0x143)][_0x3622fd(0x161)]>0x0),this[_0x3622fd(0x123)]();}[_0x37f596(0x159)](_0x166d92){const _0x5dce56=_0x37f596;for(const _0x4da890 of this[_0x5dce56(0x164)][_0x5dce56(0x166)]){const _0x4ef4a1=_0x4da890[_0x5dce56(0x16b)](_0x166d92);if(_0x4ef4a1){if(_0x4da890[_0x5dce56(0x142)](_0x4ef4a1),0x0===_0x4da890[_0x5dce56(0x168)][_0x5dce56(0x161)]){const _0x1cbfd2=this[_0x5dce56(0x164)][_0x5dce56(0x166)][_0x5dce56(0x127)](_0x4da890);-0x1!==_0x1cbfd2&&(this[_0x5dce56(0x164)][_0x5dce56(0x166)][_0x5dce56(0x13a)](_0x1cbfd2,0x1),this[_0x5dce56(0x164)][_0x5dce56(0x143)][_0x5dce56(0x15a)](_0x4da890));}this[_0x5dce56(0x11d)]=this[_0x5dce56(0x164)][_0x5dce56(0x166)][_0x5dce56(0x161)]>0x0,this[_0x5dce56(0x123)]();break;}}}[_0x37f596(0x131)](_0x4fc99a,_0x2329a9){const _0x56353f=_0x37f596;for(const _0x4cf86b of this[_0x56353f(0x164)][_0x56353f(0x166)]){const _0x804169=_0x4cf86b[_0x56353f(0x16b)](_0x4fc99a);if(_0x804169){_0x804169[_0x56353f(0x136)](_0x2329a9);break;}}}[_0x37f596(0x160)](_0x4baf5e,_0x4eb411,_0x41aa4c){const _0x175d5c=_0x37f596;for(const _0x1a1e78 of this[_0x175d5c(0x164)][_0x175d5c(0x166)]){const _0x4a4084=_0x1a1e78[_0x175d5c(0x16b)](_0x4baf5e);if(_0x4a4084){_0x4a4084[_0x175d5c(0x173)](_0x4eb411,_0x41aa4c);break;}}}[_0x37f596(0x123)](){const _0x1274dd=_0x37f596;if(this[_0x1274dd(0x11d)]){const _0x54191f=this[_0x1274dd(0x170)][_0x1274dd(0x144)][_0x1274dd(0x16e)]?.[_0x1274dd(0x12b)]?.[_0x1274dd(0x124)]||'';this[_0x1274dd(0x170)][_0x1274dd(0x126)](_0x54191f);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3a29(){const _0x499d86=['_runTranslateShortcut','ai.chat.shortcuts','custom','length','runReviewCheck','_aiChatUI','find','get','9sOzmZJ','_validateShortcuts','type','label','reviewMode','CHAT','REVIEW','view','plugins','AIChat','_switchTab','has','element','ai-chat-shortcuts-ai-tabs-not-found','activeConversation','render','activateTab','TRANSLATE','prompt','addCurrentDocumentToChatContext','removeFeedItem','isOfficialPlugin','locale','fire','config','_injectShortcuts','11180KlSmXb','includes','language','_runChatShortcut','isFromHistory','interactionStarted','source','setModel','addFeedItemCustomElement','string','16944100UjXlIX','AIReviewModeUI','forEach','AIChatController','values','focusPromptInput','init','AITranslateUI','_shortcutsView','ai-chat-shortcuts-review-mode-not-found','listenTo','_runReviewShortcut','ai-chat-shortcuts-invalid-config','1205wJPXse','chat-shortcuts','24EclmEK','params','_removeShortcuts','sendMessage','409360VyhJzM','requires','execute','pluginName','destroy','AIChatShortcuts','AITabs','setWebSearch','2345336YKNiqn','chat','ai-chat-shortcuts-translate-not-found','95298PjQzMW','11aBNhuJ','review','getModel','getDefault','hasFeedItem','_shortcuts','conversationCreated','isPremiumPlugin','args','context','36700836hZYFlI','translate','_executeShortcut','2179513hHslEX','setReasoning','chatModels','check','setPromptInputValue','2XYertV'];_0x3a29=function(){return _0x499d86;};return _0x3a29();}function _0x1568(_0x5abfe3,_0x5f39a1){const _0x3a29a0=_0x3a29();return _0x1568=function(_0x156892,_0x3f682b){_0x156892=_0x156892-0x104;let _0x5b5cd6=_0x3a29a0[_0x156892];return _0x5b5cd6;},_0x1568(_0x5abfe3,_0x5f39a1);}const _0x3f6819=_0x1568;(function(_0x37d213,_0x559b4f){const _0x530a11=_0x1568,_0x4cf06d=_0x37d213();while(!![]){try{const _0x1b81dd=parseInt(_0x530a11(0x154))/0x1+parseInt(_0x530a11(0x114))/0x2*(parseInt(_0x530a11(0x15f))/0x3)+parseInt(_0x530a11(0x137))/0x4*(parseInt(_0x530a11(0x14e))/0x5)+-parseInt(_0x530a11(0x150))/0x6*(parseInt(_0x530a11(0x10f))/0x7)+-parseInt(_0x530a11(0x15c))/0x8*(parseInt(_0x530a11(0x11d))/0x9)+-parseInt(_0x530a11(0x141))/0xa+-parseInt(_0x530a11(0x160))/0xb*(-parseInt(_0x530a11(0x10c))/0xc);if(_0x1b81dd===_0x559b4f)break;else _0x4cf06d['push'](_0x4cf06d['shift']());}catch(_0x49107e){_0x4cf06d['push'](_0x4cf06d['shift']());}}}(_0x3a29,0xe584f));import{AIChatUI as _0x16c1df}from'../aichat/aichatui.js';import{ContextPlugin as _0x48fc28}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0xa43ac}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x4c3dd4}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const at=_0x3f6819(0x14f);export var AIChatShortcutType;!function(_0x3d49be){const _0x4f3d83=_0x3f6819;_0x3d49be[_0x4f3d83(0x122)]=_0x4f3d83(0x15d),_0x3d49be[_0x4f3d83(0x123)]=_0x4f3d83(0x161),_0x3d49be[_0x4f3d83(0x12e)]=_0x4f3d83(0x10d);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x48fc28{[_0x3f6819(0x107)];[_0x3f6819(0x149)];[_0x3f6819(0x11a)];static get[_0x3f6819(0x155)](){return[_0x16c1df];}static get[_0x3f6819(0x157)](){const _0x52c252=_0x3f6819;return _0x52c252(0x159);}static get[_0x3f6819(0x132)](){return!0x0;}static get[_0x3f6819(0x109)](){return!0x0;}[_0x3f6819(0x147)](){const _0x2b55fc=_0x3f6819;this[_0x2b55fc(0x11a)]=this[_0x2b55fc(0x10b)][_0x2b55fc(0x125)][_0x2b55fc(0x11c)](_0x16c1df),this[_0x2b55fc(0x107)]=this[_0x2b55fc(0x10b)][_0x2b55fc(0x135)][_0x2b55fc(0x11c)](_0x2b55fc(0x116))??[];const _0x421078=this[_0x2b55fc(0x10b)][_0x2b55fc(0x125)][_0x2b55fc(0x11c)](_0x2b55fc(0x144));this[_0x2b55fc(0x107)][_0x2b55fc(0x118)]&&(this[_0x2b55fc(0x11e)](),this[_0x2b55fc(0x11a)]['on'](_0x2b55fc(0x108),()=>{const _0x2fd2ba=_0x2b55fc;_0x421078[_0x2fd2ba(0x12b)][_0x2fd2ba(0x13b)]||this[_0x2fd2ba(0x136)]();}),this[_0x2b55fc(0x14b)](_0x421078,_0x2b55fc(0x13c),()=>{const _0x4f79d0=_0x2b55fc;this[_0x4f79d0(0x152)]();}));}[_0x3f6819(0x11e)](){const _0x2ff074=_0x3f6819,_0x56fe77=Object[_0x2ff074(0x145)](AIChatShortcutType);this[_0x2ff074(0x107)][_0x2ff074(0x143)](_0x479ef0=>{const _0x3520cb=_0x2ff074;let _0x10fd7c=!0x0;if(_0x479ef0['id']&&_0x479ef0[_0x3520cb(0x120)]&&_0x56fe77[_0x3520cb(0x138)](_0x479ef0[_0x3520cb(0x11f)])?_0x3520cb(0x15d)===_0x479ef0[_0x3520cb(0x11f)]&&(_0x10fd7c=_0x3520cb(0x140)==typeof _0x479ef0[_0x3520cb(0x12f)]):_0x10fd7c=!0x1,!_0x10fd7c)throw new _0x4c3dd4(_0x3520cb(0x14d),this[_0x3520cb(0x10b)],{'shortcut':_0x479ef0});});}[_0x3f6819(0x136)](){const _0x79d6a2=_0x3f6819,_0x3e0bf2=this[_0x79d6a2(0x10b)][_0x79d6a2(0x125)][_0x79d6a2(0x11c)](_0x16c1df);this[_0x79d6a2(0x149)]=new _0xa43ac(this[_0x79d6a2(0x10b)][_0x79d6a2(0x133)],this[_0x79d6a2(0x107)]),this[_0x79d6a2(0x149)][_0x79d6a2(0x12c)](),_0x3e0bf2[_0x79d6a2(0x13f)](this[_0x79d6a2(0x149)][_0x79d6a2(0x129)],at),this[_0x79d6a2(0x149)]['on'](_0x79d6a2(0x156),_0x1af4ca=>{const _0x5bd3ef=_0x79d6a2,_0x513165=_0x1af4ca[_0x5bd3ef(0x13d)]['id'];this[_0x5bd3ef(0x10e)](_0x513165);});}[_0x3f6819(0x152)](){const _0x38ab5c=_0x3f6819,_0x52db45=this[_0x38ab5c(0x10b)][_0x38ab5c(0x125)][_0x38ab5c(0x11c)](_0x16c1df);_0x52db45[_0x38ab5c(0x106)](at)&&_0x52db45[_0x38ab5c(0x131)](at),this[_0x38ab5c(0x149)]?.[_0x38ab5c(0x158)]();}[_0x3f6819(0x10e)](_0x2ca14e){const _0x5b60f0=_0x3f6819,_0x45c7b8=this[_0x5b60f0(0x107)][_0x5b60f0(0x11b)](_0x25f8c5=>_0x25f8c5['id']===_0x2ca14e),_0xf40e5a=_0x45c7b8[_0x5b60f0(0x11f)];_0x5b60f0(0x15d)===_0xf40e5a?this[_0x5b60f0(0x13a)](_0x45c7b8):_0x5b60f0(0x161)===_0xf40e5a?_0x45c7b8[_0x5b60f0(0x112)]?this[_0x5b60f0(0x14c)](_0x45c7b8):this[_0x5b60f0(0x127)](_0x5b60f0(0x121)):_0x5b60f0(0x10d)===_0xf40e5a&&(_0x45c7b8[_0x5b60f0(0x139)]?this[_0x5b60f0(0x115)](_0x45c7b8):this[_0x5b60f0(0x127)](_0x5b60f0(0x10d)));}[_0x3f6819(0x127)](_0x5316b8){const _0x35689f=_0x3f6819;if(!this[_0x35689f(0x10b)][_0x35689f(0x125)][_0x35689f(0x128)](_0x35689f(0x15a)))throw new _0x4c3dd4(_0x35689f(0x12a),this[_0x35689f(0x10b)],{'tabName':_0x5316b8});this[_0x35689f(0x10b)][_0x35689f(0x125)][_0x35689f(0x11c)](_0x35689f(0x15a))[_0x35689f(0x124)][_0x35689f(0x12d)](_0x5316b8);}async[_0x3f6819(0x13a)]({prompt:_0x139f65,draftMode:_0x127dac,useWebSearch:_0x5125fa=!0x1,useReasoning:_0x182e77=!0x1,model:_0x1e99c3}){const _0x50880b=_0x3f6819,_0x2389b1=this[_0x50880b(0x10b)][_0x50880b(0x125)][_0x50880b(0x11c)](_0x50880b(0x126)),_0x278eac=this[_0x50880b(0x10b)][_0x50880b(0x125)][_0x50880b(0x11c)](_0x50880b(0x144)),_0x4e9185=_0x278eac[_0x50880b(0x12b)];let _0x4c24a6;_0x4c24a6=_0x1e99c3?await _0x4e9185[_0x50880b(0x111)][_0x50880b(0x104)](_0x1e99c3):await _0x4e9185[_0x50880b(0x111)][_0x50880b(0x105)](),_0x4c24a6&&await _0x4e9185[_0x50880b(0x13e)](_0x4c24a6),_0x4e9185[_0x50880b(0x15b)](_0x5125fa),_0x4e9185[_0x50880b(0x110)](_0x182e77),_0x278eac[_0x50880b(0x130)](),_0x127dac?(this[_0x50880b(0x11a)][_0x50880b(0x113)](_0x139f65),this[_0x50880b(0x11a)][_0x50880b(0x146)](!0x0)):_0x2389b1[_0x50880b(0x153)]({'message':_0x139f65});}[_0x3f6819(0x14c)]({check:_0x5e64b1,model:_0x306876,prompt:_0x2c7758,params:_0x12eaee}){const _0x202d3c=_0x3f6819;if(!this[_0x202d3c(0x10b)][_0x202d3c(0x125)][_0x202d3c(0x128)](_0x202d3c(0x142)))throw new _0x4c3dd4(_0x202d3c(0x14a),this[_0x202d3c(0x10b)]);this[_0x202d3c(0x127)](_0x202d3c(0x121));const _0x5d388d={'id':_0x5e64b1,'isCustom':_0x202d3c(0x117)===_0x5e64b1};_0x306876&&_0x2c7758&&(_0x5d388d[_0x202d3c(0x10a)]={'model':_0x306876,'prompt':_0x2c7758}),_0x12eaee&&(_0x5d388d[_0x202d3c(0x151)]=_0x12eaee),this[_0x202d3c(0x10b)][_0x202d3c(0x125)][_0x202d3c(0x11c)](_0x202d3c(0x142))[_0x202d3c(0x134)](_0x202d3c(0x119),_0x5d388d);}[_0x3f6819(0x115)]({language:_0x3c4175}){const _0x5b0d46=_0x3f6819;if(!this[_0x5b0d46(0x10b)][_0x5b0d46(0x125)][_0x5b0d46(0x128)](_0x5b0d46(0x148)))throw new _0x4c3dd4(_0x5b0d46(0x15e),this[_0x5b0d46(0x10b)]);this[_0x5b0d46(0x127)](_0x5b0d46(0x10d)),this[_0x5b0d46(0x10b)][_0x5b0d46(0x125)][_0x5b0d46(0x11c)](_0x5b0d46(0x148))[_0x5b0d46(0x134)](_0x5b0d46(0x119),{'id':_0x3c4175,'args':{'language':_0x3c4175}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1316(_0x5a756b,_0x123368){const _0x526a0a=_0x526a();return _0x1316=function(_0x13162d,_0x396be9){_0x13162d=_0x13162d-0x7d;let _0x3fc7bb=_0x526a0a[_0x13162d];return _0x3fc7bb;},_0x1316(_0x5a756b,_0x123368);}function _0x526a(){const _0x494908=['add','setTemplate','840570hRtbMk','36902WFwGrg','118162EDdEib','1386680eoXhzO','2671190uFpbva','2181YiihHi','9IzetRe','7HuxsGp','items','children','ck-ai-chat-shortcuts','addMany','locale','div','listView','41110pxsXWG','execute','map','delegate','1916yoEMoO'];_0x526a=function(){return _0x494908;};return _0x526a();}const _0x91eae4=_0x1316;(function(_0x556b92,_0x5d4498){const _0x562bcf=_0x1316,_0x41be85=_0x556b92();while(!![]){try{const _0x2ceeb2=parseInt(_0x562bcf(0x85))/0x1+parseInt(_0x562bcf(0x86))/0x2+-parseInt(_0x562bcf(0x89))/0x3*(-parseInt(_0x562bcf(0x81))/0x4)+-parseInt(_0x562bcf(0x7d))/0x5+parseInt(_0x562bcf(0x84))/0x6*(-parseInt(_0x562bcf(0x8b))/0x7)+-parseInt(_0x562bcf(0x87))/0x8*(-parseInt(_0x562bcf(0x8a))/0x9)+-parseInt(_0x562bcf(0x88))/0xa;if(_0x2ceeb2===_0x5d4498)break;else _0x41be85['push'](_0x41be85['shift']());}catch(_0x4b820a){_0x41be85['push'](_0x41be85['shift']());}}}(_0x526a,0x31583));import{ListItemView as _0x994c94,ListView as _0x2060f5,View as _0x57a205}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x1ef5df}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x57a205{[_0x91eae4(0x92)];constructor(_0x56032b,_0xda0799){const _0x498392=_0x91eae4;super(_0x56032b);const _0xdd72d4=_0xda0799[_0x498392(0x7f)](_0x599733=>{const _0x34fe59=_0x498392,_0x4012d0=new _0x994c94(this[_0x34fe59(0x90)]),_0x480a07=new _0x1ef5df(this[_0x34fe59(0x90)],_0x599733);return _0x4012d0[_0x34fe59(0x8d)][_0x34fe59(0x82)](_0x480a07),_0x480a07[_0x34fe59(0x80)](_0x34fe59(0x7e))['to'](this),_0x4012d0;});this[_0x498392(0x92)]=new _0x2060f5(this[_0x498392(0x90)]),this[_0x498392(0x92)][_0x498392(0x8c)][_0x498392(0x8f)](_0xdd72d4),this[_0x498392(0x83)]({'tag':_0x498392(0x91),'attributes':{'class':['ck',_0x498392(0x8e)]},'children':[this[_0x498392(0x92)]]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2b64(_0x2da87b,_0x144393){const _0x461e7a=_0x461e();return _0x2b64=function(_0x2b6417,_0x12b046){_0x2b6417=_0x2b6417-0x83;let _0x350303=_0x461e7a[_0x2b6417];return _0x350303;},_0x2b64(_0x2da87b,_0x144393);}function _0x461e(){const _0x1cafb9=['1734UQcAHB','icon','set','4549372CrZkSo','translate','extendTemplate','17486470yZwbAl','chat','9QyEyJe','1538550NOAawo','2429TDlgHj','label','review','11522488wLshau','44374DBugYl','ck-ai-chat-shortcut','2206785RkxyBz','56yXjJnq'];_0x461e=function(){return _0x1cafb9;};return _0x461e();}(function(_0x1b0558,_0x7f6093){const _0x84c21=_0x2b64,_0x36b484=_0x1b0558();while(!![]){try{const _0xae4ec4=parseInt(_0x84c21(0x93))/0x1*(-parseInt(_0x84c21(0x90))/0x2)+-parseInt(_0x84c21(0x8b))/0x3+-parseInt(_0x84c21(0x85))/0x4+parseInt(_0x84c21(0x92))/0x5+parseInt(_0x84c21(0x94))/0x6*(parseInt(_0x84c21(0x8c))/0x7)+parseInt(_0x84c21(0x8f))/0x8+parseInt(_0x84c21(0x8a))/0x9*(parseInt(_0x84c21(0x88))/0xa);if(_0xae4ec4===_0x7f6093)break;else _0x36b484['push'](_0x36b484['shift']());}catch(_0x35a829){_0x36b484['push'](_0x36b484['shift']());}}}(_0x461e,0xcc92d));import{ButtonView as _0x1a6ff9}from'ckeditor5/src/ui.js';import{IconAIChat as _0x25353c,IconAIReview as _0x44ee06,IconAITranslate as _0x3ec600}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x1a6ff9{['id'];constructor(_0x4b301d,_0x372b3e){const _0x1f9e27=_0x2b64;super(_0x4b301d);const {id:_0x61dc68,type:_0x252b3e,icon:_0xb7ef81}=_0x372b3e;this['id']=_0x61dc68,this[_0x1f9e27(0x84)]({'label':_0x372b3e[_0x1f9e27(0x8d)],'withText':!0x0,'class':_0x1f9e27(0x91)}),this[_0x1f9e27(0x87)]({'attributes':{'data-cke-ai-shortcut-id':_0x372b3e['id']}}),_0xb7ef81?this[_0x1f9e27(0x83)]=_0xb7ef81:_0x1f9e27(0x89)===_0x252b3e?this[_0x1f9e27(0x83)]=_0x25353c:_0x1f9e27(0x8e)===_0x252b3e?this[_0x1f9e27(0x83)]=_0x44ee06:_0x1f9e27(0x86)===_0x252b3e&&(this[_0x1f9e27(0x83)]=_0x3ec600);}}
|