@ckeditor/ckeditor5-ai 47.2.0-alpha.6 → 47.2.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 +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +10 -2
- 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/model/aichatmodels.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/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/aichat/utils/scrollmanager.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/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/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.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/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/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.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/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48c4bc=_0x563b;(function(_0x19996b,_0xcbfa18){const _0x1c13ef=_0x563b,_0x205f3b=_0x19996b();while(!![]){try{const _0x896760=-parseInt(_0x1c13ef(0x1fe))/0x1+parseInt(_0x1c13ef(0x1e8))/0x2*(-parseInt(_0x1c13ef(0x1f9))/0x3)+-parseInt(_0x1c13ef(0x202))/0x4+parseInt(_0x1c13ef(0x1f2))/0x5+-parseInt(_0x1c13ef(0x201))/0x6*(parseInt(_0x1c13ef(0x1e0))/0x7)+-parseInt(_0x1c13ef(0x1fd))/0x8+parseInt(_0x1c13ef(0x207))/0x9;if(_0x896760===_0xcbfa18)break;else _0x205f3b['push'](_0x205f3b['shift']());}catch(_0x53c72d){_0x205f3b['push'](_0x205f3b['shift']());}}}(_0x1efe,0xc5d46));import{ContextPlugin as _0x36b437}from'ckeditor5/src/core.js';function _0x563b(_0x3e60f3,_0x44526b){const _0x1efe4b=_0x1efe();return _0x563b=function(_0x563bbc,_0x46999a){_0x563bbc=_0x563bbc-0x1de;let _0x2ed926=_0x1efe4b[_0x563bbc];return _0x2ed926;},_0x563b(_0x3e60f3,_0x44526b);}function _0x1efe(){const _0x2b36d2=['selectConversation','removeHistoryItem','delegate','get','openChat','138facQwI','AITabs','locale','view','3767768aQDNYk','359378gfKRrE','_historyView','showResizeButton','138zTNhQt','2921684dlUUVV','updateItems','isOfficialPlugin','setConversationPinned','removeConversation','25318197ZRvOVi','isLoading','showConversationHistory','errorMessage','addTab','showError','56413HbMlam','history','resizeTabs','context','setIsMaximized','setLoadingSkeleton','AIChatHistoryUI','pluginName','24046kPvjpS','updateItemTitle','updateItemLoadingState','AI_CHAT_HISTORY_HEADING','updateHistoryItemsWithCategories','editConversationTitle','requires','hideError','isPremiumPlugin','plugins','1481810FExWQG','isMaximized'];_0x1efe=function(){return _0x2b36d2;};return _0x1efe();}import{AITabs as _0xc8a94}from'../aitabs/aitabs.js';import{IconAIHistory as _0x101c3d}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x39e8f4}from'./ui/aichathistoryview.js';import{getTranslation as _0x1d0a49}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x48c4bc(0x209),_0x48c4bc(0x206),_0x48c4bc(0x1ed),_0x48c4bc(0x205),_0x48c4bc(0x1f4),_0x48c4bc(0x1f8),_0x48c4bc(0x1e2)];export class AIChatHistoryUI extends _0x36b437{static get[_0x48c4bc(0x1ee)](){return[_0xc8a94];}[_0x48c4bc(0x1ff)];static get[_0x48c4bc(0x1e7)](){const _0xd70af2=_0x48c4bc;return _0xd70af2(0x1e6);}static get[_0x48c4bc(0x204)](){return!0x0;}static get[_0x48c4bc(0x1f0)](){return!0x0;}constructor(_0x43f19b){const _0x3bc5cd=_0x48c4bc;super(_0x43f19b);const _0x4e3ea2=this[_0x3bc5cd(0x1e3)][_0x3bc5cd(0x1f1)][_0x3bc5cd(0x1f7)](_0x3bc5cd(0x1fa));this[_0x3bc5cd(0x1ff)]=new _0x39e8f4(this[_0x3bc5cd(0x1e3)][_0x3bc5cd(0x1fb)],_0x4e3ea2[_0x3bc5cd(0x200)]),this[_0x3bc5cd(0x1ff)][_0x3bc5cd(0x1f6)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x4e3ea2[_0x3bc5cd(0x1fc)][_0x3bc5cd(0x1de)]({'id':_0x3bc5cd(0x1e1),'buttonLabel':_0x1d0a49(this[_0x3bc5cd(0x1e3)][_0x3bc5cd(0x1fb)],_0x3bc5cd(0x1eb)),'buttonIcon':_0x101c3d,'order':0x0,'content':this[_0x3bc5cd(0x1ff)]});}[_0x48c4bc(0x1f5)](_0x40067){const _0x1056cb=_0x48c4bc;this[_0x1056cb(0x1ff)][_0x1056cb(0x1f5)](_0x40067);}[_0x48c4bc(0x203)](_0x139311){const _0x2d0bad=_0x48c4bc;this[_0x2d0bad(0x1ff)][_0x2d0bad(0x1ec)](_0x139311);}[_0x48c4bc(0x1e9)](_0x16f144,_0x39cd09){const _0x4e37de=_0x48c4bc;this[_0x4e37de(0x1ff)][_0x4e37de(0x1e9)](_0x16f144,_0x39cd09);}[_0x48c4bc(0x1ea)](_0x923499,_0x33d7de,_0x4447d4){const _0x8f7542=_0x48c4bc;this[_0x8f7542(0x1ff)][_0x8f7542(0x1ea)](_0x923499,_0x33d7de,_0x4447d4);}[_0x48c4bc(0x1e5)](_0x1371a3){const _0x2722f9=_0x48c4bc;this[_0x2722f9(0x1ff)][_0x2722f9(0x208)]=_0x1371a3;}[_0x48c4bc(0x1df)](_0x4831bd){const _0x5b2f9b=_0x48c4bc;this[_0x5b2f9b(0x1ff)][_0x5b2f9b(0x20a)]=_0x4831bd;}[_0x48c4bc(0x1ef)](){const _0x56d3d4=_0x48c4bc;this[_0x56d3d4(0x1ff)][_0x56d3d4(0x20a)]='';}[_0x48c4bc(0x1e4)](_0x274928){const _0x2cf807=_0x48c4bc;this[_0x2cf807(0x1ff)][_0x2cf807(0x1f3)]=_0x274928;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58a155=_0x4c19;(function(_0x281c0d,_0x268b84){const _0x2cb288=_0x4c19,_0x5efaea=_0x281c0d();while(!![]){try{const _0x3e5ce5=-parseInt(_0x2cb288(0xb5))/0x1+parseInt(_0x2cb288(0xb4))/0x2*(parseInt(_0x2cb288(0xb0))/0x3)+parseInt(_0x2cb288(0xad))/0x4*(-parseInt(_0x2cb288(0xc5))/0x5)+-parseInt(_0x2cb288(0xd3))/0x6+parseInt(_0x2cb288(0xce))/0x7*(parseInt(_0x2cb288(0xc6))/0x8)+-parseInt(_0x2cb288(0xb9))/0x9+parseInt(_0x2cb288(0xc8))/0xa*(parseInt(_0x2cb288(0xc2))/0xb);if(_0x3e5ce5===_0x268b84)break;else _0x5efaea['push'](_0x5efaea['shift']());}catch(_0x4a53a8){_0x5efaea['push'](_0x5efaea['shift']());}}}(_0x2aa7,0x8874f));function _0x4c19(_0x157f20,_0x8f1f19){const _0x2aa7c4=_0x2aa7();return _0x4c19=function(_0x4c1915,_0x31d874){_0x4c1915=_0x4c1915-0xa6;let _0x3cb3fb=_0x2aa7c4[_0x4c1915];return _0x3cb3fb;},_0x4c19(_0x157f20,_0x8f1f19);}function _0x2aa7(){const _0x4256b1=['360066NnTPUJ','getFullYear','createdAt','error','getMonth','2681934ickJDG','updateTitle','fire','execute','push','updateConversation','fetchConversations','itemRemoved','map','splice','5648DAKOdk','pinned','updateItemPinned','27QZyFZo','updateItemTitle','getResult','findIndex','64502oPlmkQ','769882fwtrRf','group','init','items','6671826vovPot','find','getDate','itemUpdated','filter','getItem','addItem','getTime','getConversations','30368679lwWrxY','from','deleteConversation','2255ZSkLLD','16noGkeT','updatePinned','10rLuQxX','connector','removeItem','itemsLoaded','loadItems','getItems'];_0x2aa7=function(){return _0x4256b1;};return _0x2aa7();}import{EmitterMixin as _0x5cd387}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x3f57b2}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x5cd387(){[_0x58a155(0xb8)]=[];[_0x58a155(0xc9)];[_0x58a155(0xb6)];constructor({connector:_0x539fdd,group:_0x5323ec}){const _0x2efa19=_0x58a155;super(),this[_0x2efa19(0xc9)]=_0x539fdd,this[_0x2efa19(0xb6)]=_0x5323ec;}async[_0x58a155(0xb7)](){const _0x1329d4=_0x58a155;try{const _0x44eb32=this[_0x1329d4(0xc9)][_0x1329d4(0xa9)](this[_0x1329d4(0xb6)]),_0xe13cf8=await _0x44eb32[_0x1329d4(0xc1)]();this[_0x1329d4(0xcc)](_0xe13cf8);}catch(_0x368875){this[_0x1329d4(0xd5)](_0x1329d4(0xd1),{'error':_0x368875,'operation':_0x1329d4(0xb7)});}}[_0x58a155(0xbf)](_0x689f0b){const _0x39e428=_0x58a155;this[_0x39e428(0xb8)][_0x39e428(0xa7)](_0x689f0b);}async[_0x58a155(0xca)](_0xcad33d){const _0x4d53a7=_0x58a155,_0x490232=this[_0x4d53a7(0xb8)][_0x4d53a7(0xb3)](_0x499770=>_0x499770['id']===_0xcad33d);if(-0x1===_0x490232)return!0x1;try{return await this[_0x4d53a7(0xc9)][_0x4d53a7(0xc4)](_0xcad33d)[_0x4d53a7(0xa6)](),this[_0x4d53a7(0xb8)][_0x4d53a7(0xac)](_0x490232,0x1),this[_0x4d53a7(0xd5)](_0x4d53a7(0xaa),{'itemId':_0xcad33d}),!0x0;}catch(_0x5bc2e3){return this[_0x4d53a7(0xd5)](_0x4d53a7(0xd1),{'error':_0x5bc2e3,'operation':_0x4d53a7(0xca),'itemId':_0xcad33d}),!0x1;}}[_0x58a155(0xbe)](_0x4da2c5){const _0x11644d=_0x58a155;return this[_0x11644d(0xb8)][_0x11644d(0xba)](_0x4fb606=>_0x4fb606['id']===_0x4da2c5);}async[_0x58a155(0xb1)](_0x57c94b,_0x45a90f){const _0x3af17=_0x58a155,_0x12c583=this[_0x3af17(0xbe)](_0x57c94b);if(!_0x12c583)return!0x1;try{return await this[_0x3af17(0xc9)][_0x3af17(0xa8)](_0x57c94b,{'title':_0x45a90f})[_0x3af17(0xb2)](),_0x12c583[_0x3af17(0xd4)](_0x45a90f),this[_0x3af17(0xd5)](_0x3af17(0xbc),{'itemId':_0x57c94b,'updates':{'title':_0x45a90f}}),!0x0;}catch(_0x41ac13){return this[_0x3af17(0xd5)](_0x3af17(0xd1),{'error':_0x41ac13,'operation':_0x3af17(0xb1),'itemId':_0x57c94b}),!0x1;}}async[_0x58a155(0xaf)](_0x47a94b,_0x519161){const _0x57b431=_0x58a155,_0x353bca=this[_0x57b431(0xbe)](_0x47a94b);if(!_0x353bca)return!0x1;try{return await this[_0x57b431(0xc9)][_0x57b431(0xa8)](_0x47a94b,{'pinned':_0x519161})[_0x57b431(0xb2)](),_0x353bca[_0x57b431(0xc7)](_0x519161),this[_0x57b431(0xd5)](_0x57b431(0xbc),{'itemId':_0x47a94b,'updates':{'pinned':_0x519161}}),!0x0;}catch(_0x199650){return this[_0x57b431(0xd5)](_0x57b431(0xd1),{'error':_0x199650,'operation':_0x57b431(0xaf),'itemId':_0x47a94b}),!0x1;}}[_0x58a155(0xcc)](_0x5544b8){const _0x602017=_0x58a155;try{this[_0x602017(0xb8)]=[],_0x5544b8[_0x602017(0xab)](_0x197e0d=>{const _0x5e1b36=_0x602017;this[_0x5e1b36(0xbf)](new _0x3f57b2(_0x197e0d));}),this[_0x602017(0xd5)](_0x602017(0xcb),{'items':[...this[_0x602017(0xb8)]]});}catch(_0x5c9e80){this[_0x602017(0xd5)](_0x602017(0xd1),{'error':_0x5c9e80,'operation':_0x602017(0xcc)});}}[_0x58a155(0xcd)](_0x44468f={}){const _0x58d1a9=_0x58a155,_0x2d31a7=void 0x0!==_0x44468f[_0x58d1a9(0xae)]&&_0x44468f[_0x58d1a9(0xae)],_0x59d8bb=_0x44468f[_0x58d1a9(0xc3)]?new Date(_0x44468f[_0x58d1a9(0xc3)][_0x58d1a9(0xcf)](),_0x44468f[_0x58d1a9(0xc3)][_0x58d1a9(0xd2)](),_0x44468f[_0x58d1a9(0xc3)][_0x58d1a9(0xbb)]()):null,_0x35916e=_0x44468f['to']?new Date(_0x44468f['to'][_0x58d1a9(0xcf)](),_0x44468f['to'][_0x58d1a9(0xd2)](),_0x44468f['to'][_0x58d1a9(0xbb)]()):null;return this[_0x58d1a9(0xb8)][_0x58d1a9(0xbd)](_0x22478d=>{const _0x39c2b7=_0x58d1a9;if(_0x22478d[_0x39c2b7(0xae)]!==_0x2d31a7)return!0x1;if(_0x35916e){const _0x465d50=new Date(_0x22478d[_0x39c2b7(0xd0)][_0x39c2b7(0xcf)](),_0x22478d[_0x39c2b7(0xd0)][_0x39c2b7(0xd2)](),_0x22478d[_0x39c2b7(0xd0)][_0x39c2b7(0xbb)]());return _0x59d8bb?_0x59d8bb[_0x39c2b7(0xc0)]()===_0x35916e[_0x39c2b7(0xc0)]()?_0x465d50[_0x39c2b7(0xc0)]()===_0x59d8bb[_0x39c2b7(0xc0)]():_0x465d50<_0x35916e&&_0x465d50>=_0x59d8bb:_0x465d50<_0x35916e;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x4893(_0x1094db,_0x5670ce){var _0x4e221e=_0x4e22();return _0x4893=function(_0x4893b0,_0x162cc4){_0x4893b0=_0x4893b0-0x112;var _0x1bf6f7=_0x4e221e[_0x4893b0];return _0x1bf6f7;},_0x4893(_0x1094db,_0x5670ce);}var _0x14399e=_0x4893;(function(_0x7017cb,_0x57e78b){var _0x1f849b=_0x4893,_0x191fcb=_0x7017cb();while(!![]){try{var _0x270833=parseInt(_0x1f849b(0x118))/0x1*(-parseInt(_0x1f849b(0x115))/0x2)+-parseInt(_0x1f849b(0x119))/0x3+parseInt(_0x1f849b(0x121))/0x4*(-parseInt(_0x1f849b(0x11b))/0x5)+parseInt(_0x1f849b(0x11a))/0x6+-parseInt(_0x1f849b(0x117))/0x7*(-parseInt(_0x1f849b(0x122))/0x8)+-parseInt(_0x1f849b(0x11c))/0x9+parseInt(_0x1f849b(0x116))/0xa;if(_0x270833===_0x57e78b)break;else _0x191fcb['push'](_0x191fcb['shift']());}catch(_0x4de7fd){_0x191fcb['push'](_0x191fcb['shift']());}}}(_0x4e22,0x4e4cc));import{ObservableMixin as _0x58ca23}from'ckeditor5/src/utils.js';import{escape as _0x3a609d}from'es-toolkit/compat';function _0x4e22(){var _0x475c28=['8IYkVVi','8hrzQHv','title','createdAt','set','2MUTJav','14802590kItjwm','949249YCltKO','199371qoBCbi','878793QTkjdV','1888266yVCttO','1576235cIsiqs','4383585CRJymH','updateTitle','updatedAt','updatePinned','pinned'];_0x4e22=function(){return _0x475c28;};return _0x4e22();}export class AIChatHistoryItem extends _0x58ca23(){['id'];[_0x14399e(0x113)];constructor({id:_0x27cd68,title:_0x225880,createdAt:_0x4388b1,updatedAt:_0x304149,pinned:_0x17be61}){var _0x42b2ed=_0x14399e;super(),this['id']=_0x27cd68,this[_0x42b2ed(0x113)]=new Date(_0x4388b1),this[_0x42b2ed(0x114)](_0x42b2ed(0x112),_0x225880),this[_0x42b2ed(0x114)](_0x42b2ed(0x11e),_0x304149?new Date(_0x304149):null),this[_0x42b2ed(0x114)](_0x42b2ed(0x120),_0x17be61||!0x1);}[_0x14399e(0x11d)](_0x3abe48){var _0x123d2e=_0x14399e;this[_0x123d2e(0x114)](_0x123d2e(0x112),_0x3a609d(_0x3abe48)),this[_0x123d2e(0x11e)]=new Date();}[_0x14399e(0x11f)](_0x3e4727){var _0x3c840a=_0x14399e;this[_0x3c840a(0x114)](_0x3c840a(0x120),_0x3e4727),this[_0x3c840a(0x11e)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0xc05e66=_0x1b6e;(function(_0x16d5ad,_0x201965){const _0x12839f=_0x1b6e,_0x54635b=_0x16d5ad();while(!![]){try{const _0x3663c1=-parseInt(_0x12839f(0x1f5))/0x1+-parseInt(_0x12839f(0x204))/0x2+-parseInt(_0x12839f(0x1bb))/0x3*(parseInt(_0x12839f(0x1c0))/0x4)+parseInt(_0x12839f(0x1d7))/0x5*(parseInt(_0x12839f(0x1ec))/0x6)+parseInt(_0x12839f(0x1f3))/0x7*(parseInt(_0x12839f(0x1db))/0x8)+parseInt(_0x12839f(0x20d))/0x9*(parseInt(_0x12839f(0x1d6))/0xa)+-parseInt(_0x12839f(0x20f))/0xb*(parseInt(_0x12839f(0x1cb))/0xc);if(_0x3663c1===_0x201965)break;else _0x54635b['push'](_0x54635b['shift']());}catch(_0x1ac8d0){_0x54635b['push'](_0x54635b['shift']());}}}(_0x5775,0xc1572));import{ListItemView as _0x40bd82,HighlightedTextView as _0x127155,ButtonView as _0x5968cd,ListView as _0x492f88,IconView as _0x8a3585,createDropdown as _0x28e7ed,InputTextView as _0xf03d20}from'ckeditor5/src/ui.js';function _0x5775(){const _0x4b405c=['element','click','isVisible','ck-ai-loader','12lYONXw','buttonView','ck-ai-chat-history__item-row','bindTemplate','ck-ai-chat-history__item-check-container','selectConversation','panelView','ck-ai-chat-history__item','isMatching','_createSpinnerView','change:isEdit','559670ciRNxX','2356115osdwhE','ck-ai-chat-history__item-date','removeConversation','_createCheckView','157448BCXBcH','AI_CHAT_HISTORY_LOADING_REMOVING','ck-ai-chat-history__item-content','ck-ai-chat-history__item-actions','focus','ck-confirm-view-submit','_titleView','_createMenuDropdownView','ck-hidden','updateLoadingState','setTemplate','LOADING_LABELS','AI_CHAT_HISTORY_REMOVE','extendTemplate','AI_CHAT_HISTORY_ACCEPT','_createCancelEditButtonView','showConfirm','18ZcFICp','editConversationTitle','AI_CHAT_HISTORY_LOADING_UNPINNING','highlightText','bind','loadingState','ck-ai-chat-history__item-check','7MOBLRY','AI_CHAT_HISTORY_PIN_BUTTON','337771dHQHUj','pinned','isOn','panelPosition','then','ck-ai-chat-history__item-title','actions','items','addMany','mainContent','Enter','edit:cancel','AI_CHAT_HISTORY_LOADING_PINNING','_createAcceptEditButtonView','children','36168ETBPIX','text','value','string','fire','_createEditInputView','AI_CHAT_HISTORY_EDIT_NAME','label','createCollection','207dpfsMb','AI_CHAT_HISTORY_REMOVE_CONFIRM','13430373BFwmwV','ck-ai-loader__text','match','tiny','locale','AI_CHAT_HISTORY_CANCEL','set','withText','ck-ai-chat-history__item-main-content','ck-ai-chat-history__item--edit','_createPinButtonView','add','ck-ai-chat-history__item--active','clear','updateTitle','execute','3VpzDCM','setConversationPinned','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','isEdit','listitem','1407484KiBovc','_commitEditInputValue','div','span','AI_CHAT_HISTORY_LOADING_RENAMING','key','ck-confirm-view-cancel'];_0x5775=function(){return _0x4b405c;};return _0x5775();}function _0x1b6e(_0x516007,_0x1b7904){const _0x5775bf=_0x5775();return _0x1b6e=function(_0x1b6eb1,_0x2fcde1){_0x1b6eb1=_0x1b6eb1-0x1b8;let _0x52c14c=_0x5775bf[_0x1b6eb1];return _0x52c14c;},_0x1b6e(_0x516007,_0x1b7904);}import{IconThreeHorizontalDots as _0x2537ac,IconPin as _0x4823ef,IconCheck as _0xbd6b22,IconCancel as _0x3b57bb}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x3c9add,ConfirmMixin as _0x5d745a}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x3d558b}from'es-toolkit/compat';import{AISpinnerView as _0x38456c}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x514aec}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d745a(_0x40bd82){['id'];static [_0xc05e66(0x1e6)]={'remove':_0xc05e66(0x1dc),'rename':_0xc05e66(0x1c4),'pin':_0xc05e66(0x201),'unpin':_0xc05e66(0x1ee)};[_0xc05e66(0x1fb)];[_0xc05e66(0x1fe)];[_0xc05e66(0x1e1)];constructor(_0x364e4c,_0x51faa2){const _0x1d37a7=_0xc05e66;super(_0x364e4c);const _0x1ae0a8=this[_0x1d37a7(0x1ce)];this[_0x1d37a7(0x215)](_0x1d37a7(0x1be),!0x1),this[_0x1d37a7(0x215)](_0x1d37a7(0x1c9),!0x0),this[_0x1d37a7(0x215)](_0x1d37a7(0x1f6),!!_0x51faa2[_0x1d37a7(0x1f6)]),this[_0x1d37a7(0x215)](_0x1d37a7(0x1f1),null),this['id']=_0x51faa2['id'];const {title:_0x810e61,createdAt:_0x440f0c,active:_0x3122d0=!0x1}=_0x51faa2;this[_0x1d37a7(0x1e1)]=new _0x127155(),this[_0x1d37a7(0x1e1)][_0x1d37a7(0x205)]=_0x810e61,this[_0x1d37a7(0x1e1)][_0x1d37a7(0x1e8)]({'attributes':{'class':[_0x1d37a7(0x1fa)]}});const _0x5c53fe=this[_0x1d37a7(0x1da)](),_0x682524=this[_0x1d37a7(0x219)](_0x364e4c),_0x2487c6=this[_0x1d37a7(0x1e2)](),_0x320e64=this[_0x1d37a7(0x209)](_0x364e4c,_0x810e61),_0x1dad93=this[_0x1d37a7(0x202)](_0x364e4c,_0x320e64),_0x251e88=this[_0x1d37a7(0x1ea)](_0x364e4c,_0x320e64);this[_0x1d37a7(0x1fb)]=this[_0x1d37a7(0x20c)](),this[_0x1d37a7(0x1fe)]=this[_0x1d37a7(0x20c)](),this[_0x1d37a7(0x1fe)][_0x1d37a7(0x21a)](this[_0x1d37a7(0x1e1)]),this[_0x1d37a7(0x1fb)][_0x1d37a7(0x21a)](_0x682524),this[_0x1d37a7(0x1fb)][_0x1d37a7(0x21a)](_0x2487c6),this['on'](_0x1d37a7(0x1d5),(_0x4c10c0,_0x23e09d,_0x1bab9c)=>{const _0x1c457d=_0x1d37a7;this[_0x1c457d(0x1fb)][_0x1c457d(0x1b8)](),this[_0x1c457d(0x1fe)][_0x1c457d(0x1b8)](),_0x1bab9c?(this[_0x1c457d(0x1fb)][_0x1c457d(0x21a)](_0x1dad93),this[_0x1c457d(0x1fb)][_0x1c457d(0x21a)](_0x251e88),this[_0x1c457d(0x1fe)][_0x1c457d(0x21a)](_0x320e64),_0x320e64[_0x1c457d(0x1c7)][_0x1c457d(0x1df)]()):(this[_0x1c457d(0x1fb)][_0x1c457d(0x21a)](_0x682524),this[_0x1c457d(0x1fb)][_0x1c457d(0x21a)](_0x2487c6),this[_0x1c457d(0x1fe)][_0x1c457d(0x21a)](this[_0x1c457d(0x1e1)]));}),this[_0x1d37a7(0x1e5)]({'tag':'li','attributes':{'class':[_0x1d37a7(0x1d2),_0x3122d0?_0x1d37a7(0x21b):'',_0x1ae0a8['if'](_0x1d37a7(0x1c9),_0x1d37a7(0x1e3),_0x914d64=>!_0x914d64),_0x1ae0a8['if'](_0x1d37a7(0x1be),_0x1d37a7(0x218))],'role':_0x1d37a7(0x1bf)},'children':[{'tag':_0x1d37a7(0x1c3),'attributes':{'class':[_0x1d37a7(0x1cf)]},'children':[{'tag':_0x1d37a7(0x1c2),'attributes':{'class':[_0x1d37a7(0x1f2),_0x1ae0a8['if'](_0x1d37a7(0x1f1),_0x1d37a7(0x1e3),_0x55dc5d=>!!_0x55dc5d)]},'children':_0x3122d0?[_0x5c53fe]:[]},{'tag':_0x1d37a7(0x1c2),'attributes':{'class':[_0x1d37a7(0x1ca),_0x1ae0a8['if'](_0x1d37a7(0x1f1),_0x1d37a7(0x1e3),_0x9cf57f=>!_0x9cf57f)]},'children':[this[_0x1d37a7(0x1d4)]()]}]},{'tag':_0x1d37a7(0x1c2),'attributes':{'class':[_0x1d37a7(0x1cd)]},'children':[{'tag':_0x1d37a7(0x1c2),'attributes':{'class':[_0x1d37a7(0x1dd)]},'on':{'click':this[_0x1d37a7(0x1ce)]['to'](_0x1d37a7(0x1c8))},'children':[{'tag':_0x1d37a7(0x1c2),'attributes':{'class':[_0x1d37a7(0x217)]},'children':[{'tag':_0x1d37a7(0x1c2),'attributes':{'class':[_0x1d37a7(0x1fa),_0x1ae0a8['if'](_0x1d37a7(0x1f1),_0x1d37a7(0x1e3),_0xd72c96=>!!_0xd72c96)]},'children':this[_0x1d37a7(0x1fe)]},{'tag':_0x1d37a7(0x1c2),'attributes':{'class':[_0x1d37a7(0x210),_0x1ae0a8['if'](_0x1d37a7(0x1f1),_0x1d37a7(0x1e3),_0x3cfbf9=>!_0x3cfbf9)]},'children':[{'text':_0x1ae0a8['to'](_0x1d37a7(0x1f1),_0x3fb8fc=>_0x3fb8fc?_0x514aec(this[_0x1d37a7(0x213)],AIChatHistoryListItemView[_0x1d37a7(0x1e6)][_0x3fb8fc]):'')}]}]},{'tag':_0x1d37a7(0x1c3),'attributes':{'class':[_0x1d37a7(0x1d8)]},'children':[_0x440f0c]}]},{'tag':_0x1d37a7(0x1c2),'attributes':{'class':[_0x1d37a7(0x1de)]},'children':this[_0x1d37a7(0x1fb)]}]}]}),this['on'](_0x1d37a7(0x1c8),()=>{const _0x448425=_0x1d37a7;this[_0x448425(0x1be)]||this[_0x448425(0x208)](_0x448425(0x1d0),{'id':this['id']});});}[_0xc05e66(0x1b9)](_0x433ad2){const _0x3ec268=_0xc05e66;this[_0x3ec268(0x1e1)][_0x3ec268(0x205)]=_0x3d558b(_0x433ad2);}[_0xc05e66(0x1e4)](_0x231e17,_0x5d40d1){const _0x226f65=_0xc05e66;this[_0x226f65(0x215)](_0x226f65(0x1f1),_0x5d40d1?_0x231e17:null);}[_0xc05e66(0x1da)](){const _0x38be3e=_0xc05e66,_0x2ba569=new _0x8a3585();return _0x2ba569[_0x38be3e(0x215)]({'content':_0xbd6b22}),_0x2ba569;}[_0xc05e66(0x219)](_0x407a12){const _0x302382=_0xc05e66,_0xbd0c7c=new _0x5968cd(_0x407a12);return _0xbd0c7c[_0x302382(0x215)]({'label':_0x514aec(_0x407a12,_0x302382(0x1f4)),'icon':_0x4823ef,'withText':!0x1,'tooltip':!0x0}),_0xbd0c7c[_0x302382(0x1f0)](_0x302382(0x1f7))['to'](this,_0x302382(0x1f6)),_0xbd0c7c['on'](_0x302382(0x1ba),()=>{const _0x3efd27=_0x302382,_0x4cc44c=!this[_0x3efd27(0x1f6)];this[_0x3efd27(0x208)](_0x3efd27(0x1bc),{'id':this['id'],'pinned':_0x4cc44c});}),_0xbd0c7c;}[_0xc05e66(0x1e2)](){const _0x103f2f=_0xc05e66,_0x32984f=_0x28e7ed(this[_0x103f2f(0x213)],_0x3c9add),_0x193720=_0x32984f[_0x103f2f(0x1d1)][_0x103f2f(0x203)];_0x32984f[_0x103f2f(0x1cc)][_0x103f2f(0x215)]({'label':_0x514aec(this[_0x103f2f(0x213)],_0x103f2f(0x1bd)),'icon':_0x2537ac}),_0x32984f[_0x103f2f(0x1f8)]='sw';const _0x51563c=new _0x5968cd(this[_0x103f2f(0x213)]);_0x51563c[_0x103f2f(0x20b)]=_0x514aec(this[_0x103f2f(0x213)],_0x103f2f(0x20a)),_0x51563c[_0x103f2f(0x216)]=!0x0,_0x51563c['on'](_0x103f2f(0x1ba),()=>{const _0x558ab8=_0x103f2f;this[_0x558ab8(0x1be)]=!0x0;});const _0x223da7=new _0x5968cd(this[_0x103f2f(0x213)]);_0x223da7[_0x103f2f(0x20b)]=_0x514aec(this[_0x103f2f(0x213)],_0x103f2f(0x1e7)),_0x223da7[_0x103f2f(0x216)]=!0x0,_0x223da7['on'](_0x103f2f(0x1ba),()=>{const _0x2a3d60=_0x103f2f;this[_0x2a3d60(0x1eb)](_0x514aec(this[_0x2a3d60(0x213)],_0x2a3d60(0x20e)),this[_0x2a3d60(0x1c7)])[_0x2a3d60(0x1f9)](()=>{const _0x34edc=_0x2a3d60;this[_0x34edc(0x208)](_0x34edc(0x1d9),{'id':this['id']});});});const _0x2e228c=new _0x492f88(this[_0x103f2f(0x213)]),_0xb6907b=new _0x40bd82(this[_0x103f2f(0x213)]);_0xb6907b[_0x103f2f(0x203)][_0x103f2f(0x21a)](_0x51563c);const _0x3872f5=new _0x40bd82(this[_0x103f2f(0x213)]);return _0x3872f5[_0x103f2f(0x203)][_0x103f2f(0x21a)](_0x223da7),_0x2e228c[_0x103f2f(0x1fc)][_0x103f2f(0x1fd)]([_0xb6907b,_0x3872f5]),_0x193720[_0x103f2f(0x21a)](_0x2e228c),_0x32984f;}[_0xc05e66(0x209)](_0x8545c2,_0x24ceac){const _0xc028c4=_0xc05e66,_0x1a845f=new _0xf03d20(_0x8545c2),_0xbb03e7=_0x1a845f[_0xc028c4(0x1ce)];return _0x1a845f[_0xc028c4(0x206)]=_0x24ceac,_0x1a845f[_0xc028c4(0x1e8)]({'on':{'keydown':_0xbb03e7['to'](_0x3648cc=>{const _0x3a5535=_0xc028c4;_0x3a5535(0x1ff)==_0x3648cc[_0x3a5535(0x1c5)]&&this[_0x3a5535(0x1c1)](_0x1a845f);})}}),_0x1a845f;}[_0xc05e66(0x202)](_0x5a4f97,_0x8d8b9d){const _0x259a63=_0xc05e66,_0x23e840=new _0x5968cd(_0x5a4f97);return _0x23e840[_0x259a63(0x215)]({'icon':_0xbd6b22,'withText':!0x1,'tooltip':_0x514aec(_0x5a4f97,_0x259a63(0x1e9))}),_0x23e840[_0x259a63(0x1e8)]({'attributes':{'class':[_0x259a63(0x1e0)]}}),_0x23e840['on'](_0x259a63(0x1ba),()=>{const _0x38cad4=_0x259a63;this[_0x38cad4(0x1c1)](_0x8d8b9d);}),_0x23e840;}[_0xc05e66(0x1c1)](_0x1824ec){const _0x38dc26=_0xc05e66,_0x2f46b5=_0x1824ec[_0x38dc26(0x1c7)][_0x38dc26(0x206)]||'';this[_0x38dc26(0x1e1)][_0x38dc26(0x205)]=_0x2f46b5,this[_0x38dc26(0x1be)]=!0x1,this[_0x38dc26(0x208)](_0x38dc26(0x1ed),{'id':this['id'],'title':_0x2f46b5});}[_0xc05e66(0x1ea)](_0x277779,_0x1881eb){const _0x450fae=_0xc05e66,_0xef65d1=new _0x5968cd(_0x277779);return _0xef65d1[_0x450fae(0x215)]({'icon':_0x3b57bb,'withText':!0x1,'tooltip':_0x514aec(_0x277779,_0x450fae(0x214))}),_0xef65d1[_0x450fae(0x1e8)]({'attributes':{'class':[_0x450fae(0x1c6)]}}),_0xef65d1['on'](_0x450fae(0x1ba),()=>{const _0x2a512b=_0x450fae;this[_0x2a512b(0x1be)]=!0x1,_0x1881eb[_0x2a512b(0x206)]=this[_0x2a512b(0x1e1)][_0x2a512b(0x205)]||'',this[_0x2a512b(0x208)](_0x2a512b(0x200));}),_0xef65d1;}[_0xc05e66(0x1d4)](){const _0x584979=_0xc05e66,_0x1c6baa=new _0x38456c(_0x584979(0x212));return _0x1c6baa[_0x584979(0x1c9)]=!0x0,_0x1c6baa;}[_0xc05e66(0x1d3)](_0x1be705){const _0x3b08d6=_0xc05e66;return this[_0x3b08d6(0x1e1)]&&_0x3b08d6(0x207)==typeof this[_0x3b08d6(0x1e1)][_0x3b08d6(0x205)]&&this[_0x3b08d6(0x1e1)][_0x3b08d6(0x205)][_0x3b08d6(0x211)](_0x1be705)?{'title':!0x0}:null;}[_0xc05e66(0x1ef)](_0x3098bb){const _0x1710c8=_0xc05e66;this[_0x1710c8(0x1e1)][_0x1710c8(0x1ef)](_0x3098bb);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x279eea=_0x72d3;function _0x72d3(_0x255407,_0x19e447){const _0x1899f3=_0x1899();return _0x72d3=function(_0x72d390,_0x10ee86){_0x72d390=_0x72d390-0x1c5;let _0x43f8d7=_0x1899f3[_0x72d390];return _0x43f8d7;},_0x72d3(_0x255407,_0x19e447);}(function(_0x2ecf4c,_0x539078){const _0x1e92f8=_0x72d3,_0xd73b4f=_0x2ecf4c();while(!![]){try{const _0x2f8b4c=parseInt(_0x1e92f8(0x1d2))/0x1*(parseInt(_0x1e92f8(0x1ce))/0x2)+parseInt(_0x1e92f8(0x1d7))/0x3+parseInt(_0x1e92f8(0x1db))/0x4*(-parseInt(_0x1e92f8(0x1de))/0x5)+-parseInt(_0x1e92f8(0x1d5))/0x6*(-parseInt(_0x1e92f8(0x1c9))/0x7)+parseInt(_0x1e92f8(0x1d6))/0x8*(parseInt(_0x1e92f8(0x1d0))/0x9)+-parseInt(_0x1e92f8(0x1c8))/0xa+-parseInt(_0x1e92f8(0x1ca))/0xb*(-parseInt(_0x1e92f8(0x1cb))/0xc);if(_0x2f8b4c===_0x539078)break;else _0xd73b4f['push'](_0xd73b4f['shift']());}catch(_0x35869e){_0xd73b4f['push'](_0xd73b4f['shift']());}}}(_0x1899,0x253aa));import{ListItemView as _0x500f46,View as _0xaeaca5,ListView as _0x351444}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x500f46{[_0x279eea(0x1c5)];[_0x279eea(0x1d9)];[_0x279eea(0x1cc)];constructor(_0x394223,{title:_0x469b21,items:_0x5138f5}){const _0x49876f=_0x279eea;super(_0x394223);const _0x543254=this[_0x49876f(0x1e0)];this[_0x49876f(0x1da)](_0x49876f(0x1e1),!0x0),this[_0x49876f(0x1c5)]=_0x469b21,this[_0x49876f(0x1d9)]=_0x5138f5;const _0x551f19=new _0xaeaca5(_0x394223);_0x551f19[_0x49876f(0x1d1)]({'tag':_0x49876f(0x1d3),'attributes':{'class':[_0x49876f(0x1cf)]},'children':[this[_0x49876f(0x1c5)]]}),this[_0x49876f(0x1cc)]=new _0x351444(_0x394223),this[_0x49876f(0x1cc)][_0x49876f(0x1df)][_0x49876f(0x1e4)](this[_0x49876f(0x1d9)]),this[_0x49876f(0x1d1)]({'tag':'li','attributes':{'class':[_0x49876f(0x1d4),_0x543254['if'](_0x49876f(0x1e1),_0x49876f(0x1cd),_0x29b971=>!_0x29b971)]},'children':[_0x551f19,this[_0x49876f(0x1cc)]]});}[_0x279eea(0x1d8)](_0x251ae3){const _0x5b746e=_0x279eea,_0x2f805d=this[_0x5b746e(0x1d9)][_0x5b746e(0x1e2)];let _0x5f770e=0x0;for(const _0x4c7071 of this[_0x5b746e(0x1d9)]){if(_0x251ae3){const _0xd55d2b=_0x4c7071[_0x5b746e(0x1c6)](_0x251ae3);_0x4c7071[_0x5b746e(0x1e1)]=!!_0xd55d2b,_0x4c7071[_0x5b746e(0x1e6)](_0x251ae3);}else _0x4c7071[_0x5b746e(0x1e1)]=!0x0,_0x4c7071[_0x5b746e(0x1e6)](null);_0x4c7071[_0x5b746e(0x1e1)]&&_0x5f770e++;}return this[_0x5b746e(0x1e1)]=_0x5f770e>0x0,{'resultsCount':_0x5f770e,'totalItemsCount':_0x2f805d};}[_0x279eea(0x1c7)](_0x4cd410){const _0x3404c9=_0x279eea;return this[_0x3404c9(0x1d9)][_0x3404c9(0x1e3)](_0x5874d3=>_0x5874d3['id']===_0x4cd410);}[_0x279eea(0x1e5)](_0x1fb197){const _0x68ab77=_0x279eea,_0x19fbe8=this[_0x68ab77(0x1d9)][_0x68ab77(0x1dc)](_0x1fb197);-0x1!==_0x19fbe8&&(this[_0x68ab77(0x1d9)][_0x68ab77(0x1e7)](_0x19fbe8,0x1),this[_0x68ab77(0x1cc)][_0x68ab77(0x1df)][_0x68ab77(0x1dd)](_0x1fb197));}}function _0x1899(){const _0x50272f=['remove','35eDPwmH','items','bindTemplate','isVisible','length','find','addMany','removeItem','highlightText','splice','title','isMatching','getItem','2423850CtNWGz','7HWFZLT','40018BRhoXl','24RBWdHD','_itemsListView','ck-hidden','46vIkUEJ','ck-ai-chat-history__section-title','173682DHKkBu','setTemplate','4463PpWsvo','div','ck-ai-chat-history__section','1553820Jbyprx','16PtLFGn','106275LiuSzV','filter','itemsViews','set','27452xZZbLV','indexOf'];_0x1899=function(){return _0x50272f;};return _0x1899();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3dda91=_0x15cc;(function(_0x1c981d,_0x312a25){const _0x590f36=_0x15cc,_0x12243c=_0x1c981d();while(!![]){try{const _0x3da3f6=-parseInt(_0x590f36(0x1b7))/0x1*(parseInt(_0x590f36(0x1be))/0x2)+parseInt(_0x590f36(0x1bc))/0x3+parseInt(_0x590f36(0x1c0))/0x4*(-parseInt(_0x590f36(0x1b8))/0x5)+parseInt(_0x590f36(0x1b4))/0x6+parseInt(_0x590f36(0x1c3))/0x7*(parseInt(_0x590f36(0x1bf))/0x8)+-parseInt(_0x590f36(0x1bd))/0x9*(-parseInt(_0x590f36(0x1c1))/0xa)+-parseInt(_0x590f36(0x1ba))/0xb;if(_0x3da3f6===_0x312a25)break;else _0x12243c['push'](_0x12243c['shift']());}catch(_0x4ac9fc){_0x12243c['push'](_0x12243c['shift']());}}}(_0x5114,0x4e6bd));function _0x5114(){const _0x19cd8b=['308tkjkFt','filter','3802068woytsM','sections','items','5TTQPQT','14645mKuDNu','ck-ai-chat-history__sections','10015038kdUDWt','extendTemplate','1368771kZluyi','302553UTFxfG','134646PIFkro','116408ubcmIi','772sQaVSq','120fgWYmw','addMany'];_0x5114=function(){return _0x19cd8b;};return _0x5114();}import{ListView as _0x21f8b1}from'ckeditor5/src/ui.js';function _0x15cc(_0x3c1f74,_0x3d937e){const _0x511490=_0x5114();return _0x15cc=function(_0x15cc28,_0x3f29b9){_0x15cc28=_0x15cc28-0x1b4;let _0x537dbb=_0x511490[_0x15cc28];return _0x537dbb;},_0x15cc(_0x3c1f74,_0x3d937e);}export class AIChatHistorySectionListView extends _0x21f8b1{[_0x3dda91(0x1b5)];constructor(_0x5e9ef5,_0x8b16c0){const _0x328d64=_0x3dda91;super(_0x5e9ef5),this[_0x328d64(0x1b5)]=_0x8b16c0,this[_0x328d64(0x1b6)][_0x328d64(0x1c2)](this[_0x328d64(0x1b5)]),this[_0x328d64(0x1bb)]({'attributes':{'class':[_0x328d64(0x1b9)]}});}[_0x3dda91(0x1c4)](_0x209708){const _0x50679d=_0x3dda91;let _0x113cf1=0x0,_0x3a317c=0x0;for(const _0x1d09c9 of this[_0x50679d(0x1b5)]){const {resultsCount:_0x4abb5e,totalItemsCount:_0x42f031}=_0x1d09c9[_0x50679d(0x1c4)](_0x209708);_0x113cf1+=_0x4abb5e,_0x3a317c+=_0x42f031;}return{'resultsCount':_0x113cf1,'totalItemsCount':_0x3a317c};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x130f5f=_0x3c5c;(function(_0x3e7499,_0x25b82a){const _0x3d521a=_0x3c5c,_0x23ad8d=_0x3e7499();while(!![]){try{const _0x532169=parseInt(_0x3d521a(0x15b))/0x1+-parseInt(_0x3d521a(0x178))/0x2+parseInt(_0x3d521a(0x174))/0x3*(-parseInt(_0x3d521a(0x156))/0x4)+-parseInt(_0x3d521a(0x159))/0x5+-parseInt(_0x3d521a(0x17f))/0x6*(parseInt(_0x3d521a(0x152))/0x7)+parseInt(_0x3d521a(0x151))/0x8+parseInt(_0x3d521a(0x171))/0x9*(parseInt(_0x3d521a(0x154))/0xa);if(_0x532169===_0x25b82a)break;else _0x23ad8d['push'](_0x23ad8d['shift']());}catch(_0x15122c){_0x23ad8d['push'](_0x23ad8d['shift']());}}}(_0x832f,0xae3dd));import{View as _0x292eba,SearchTextView as _0x34a98f,FormHeaderView as _0x116150,ButtonView as _0x4a24ce}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x5cd265,IconCancel as _0x3ae46c,IconPlus as _0x1e76ff}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x427576}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x226648}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0xa79066}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3823a1}from'../aichathistoryui.js';import{AISkeletonView as _0x20045d,SKELETON_DEFINITIONS as _0x103fd3}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x5747d7}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x369c53}from'../../aicore/utils/common-translations.js';function _0x832f(){const _0x23c919=['addMany','981AicYxg','clear','aiHistory','39927JgxFeP','skeletonView','locale','fire','1688870EWYYZN','remove','title','_createListItemViews','bind','element','bindTemplate','258CXuyaH','ck-ai-chat-history','isVisible','AI_CHAT_LABEL_NEW_CHAT','ck-hidden','ltr','ck-ai-chat-error__dismiss-button','change:isLoading','delegate','resizeButton','some','isSearchViewVisible','emptyView','AI_CHAT_HISTORY_SEARCH_LABEL','sections','updateTitle','ck-ai-chat-history__empty','queryView','openChat','set','search','_refreshSearch','_createSkeletonView','push','itemsViews','ck-reset_all','updateItemTitle','fieldView','ck-ai-chat-history__content','execute','_createEmptyStateView','change:hasItems','updateItemLoadingState','ck-ai-chat-error','_createSearchView','setTemplate','_updateViewVisibility','_createErrorView','isLoading','indexOf','div','value','ck-ai-chat__start-conversation','items','hasItems','6761136asUYBP','230104PZvpwA','splice','207050gosHxp','ck-ai-header\x20ck-ai-header_history','88kFNvie','change:errorMessage','updateHistoryItemsWithCategories','5757085slWZhI','length','1313852kpempg','isEmptyViewVisible','errorView','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-chat-history__empty-message','updateLoadingState','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','render','children','getItem','removeItem','errorMessage','isMaximized','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_HEADING','add','searchView','sectionsView','removeHistoryItem','ck-rounded-corners','extendTemplate'];_0x832f=function(){return _0x23c919;};return _0x832f();}function _0x3c5c(_0x37e898,_0x2d589f){const _0x832fff=_0x832f();return _0x3c5c=function(_0x3c5c0a,_0x3118f5){_0x3c5c0a=_0x3c5c0a-0x13b;let _0x5d6322=_0x832fff[_0x3c5c0a];return _0x5d6322;},_0x3c5c(_0x37e898,_0x2d589f);}export class AIChatHistoryView extends _0x292eba{[_0x130f5f(0x16b)];[_0x130f5f(0x15d)];[_0x130f5f(0x175)];[_0x130f5f(0x18b)];[_0x130f5f(0x16c)];[_0x130f5f(0x188)];constructor(_0x58b235,_0xfa269a){const _0x58a158=_0x130f5f;super(_0x58b235),this[_0x58a158(0x192)](_0x58a158(0x150),!0x1),this[_0x58a158(0x192)](_0x58a158(0x14a),!0x0),this[_0x58a158(0x192)](_0x58a158(0x166),''),this[_0x58a158(0x192)](_0x58a158(0x167),!0x1),this[_0x58a158(0x192)](_0x58a158(0x18a),!0x1),this[_0x58a158(0x192)](_0x58a158(0x15c),!0x1);const _0x3e0bbf=new _0x116150(_0x58b235,{'label':_0x369c53(_0x58b235,_0x58a158(0x169)),'icon':_0x5cd265,'class':_0x58a158(0x155)});_0xfa269a&&(this[_0x58a158(0x188)]=_0x5747d7(_0x58b235,this),_0x3e0bbf[_0x58a158(0x163)][_0x58a158(0x16a)](this[_0x58a158(0x188)])),this[_0x58a158(0x16c)]=new _0x427576(_0x58b235,[]),this[_0x58a158(0x16c)][_0x58a158(0x187)](..._0x3823a1)['to'](this),this[_0x58a158(0x15d)]=this[_0x58a158(0x149)](),this[_0x58a158(0x175)]=this[_0x58a158(0x195)](),this[_0x58a158(0x18b)]=this[_0x58a158(0x142)](),this[_0x58a158(0x16b)]=this[_0x58a158(0x146)](),this['on'](_0x58a158(0x186),()=>this[_0x58a158(0x148)]()),this['on'](_0x58a158(0x143),()=>this[_0x58a158(0x148)]()),this['on'](_0x58a158(0x157),()=>this[_0x58a158(0x148)]()),this[_0x58a158(0x147)]({'tag':_0x58a158(0x14c),'attributes':{'class':['ck',_0x58a158(0x13d),_0x58a158(0x180),_0x58a158(0x16e)],'dir':_0x58a158(0x184)},'children':[_0x3e0bbf,{'tag':_0x58a158(0x14c),'attributes':{'class':[_0x58a158(0x140)]},'children':[this[_0x58a158(0x175)],this[_0x58a158(0x15d)],this[_0x58a158(0x18b)],this[_0x58a158(0x16b)]]}]});}[_0x130f5f(0x148)](){const _0x1930e3=_0x130f5f;this[_0x1930e3(0x18a)]=!this[_0x1930e3(0x14a)]&&this[_0x1930e3(0x150)]&&!this[_0x1930e3(0x166)],this[_0x1930e3(0x15c)]=!this[_0x1930e3(0x14a)]&&!this[_0x1930e3(0x150)]&&!this[_0x1930e3(0x166)];}[_0x130f5f(0x146)](){const _0x26c6e0=_0x130f5f,_0x4db855=new _0x34a98f(this[_0x26c6e0(0x176)],{'filteredView':this[_0x26c6e0(0x16c)],'queryView':{'label':_0x369c53(this[_0x26c6e0(0x176)],_0x26c6e0(0x18c))},'infoView':{'text':{'notFound':{'primary':_0x3ee061=>_0x369c53(this[_0x26c6e0(0x176)],_0x26c6e0(0x161),_0x3ee061),'secondary':_0x369c53(this[_0x26c6e0(0x176)],_0x26c6e0(0x168))}}}});return _0x4db855['on'](_0x26c6e0(0x162),()=>{const _0x2e295b=_0x26c6e0;this[_0x2e295b(0x16b)][_0x2e295b(0x163)][_0x2e295b(0x16a)](this[_0x2e295b(0x15d)],0x1);}),_0x4db855[_0x26c6e0(0x16f)]({'attributes':{'class':[this[_0x26c6e0(0x17e)]['if'](_0x26c6e0(0x18a),_0x26c6e0(0x183),_0x551b87=>!_0x551b87)]}}),_0x4db855;}[_0x130f5f(0x195)](){const _0x3c82da=_0x130f5f,_0xfb9bad=new _0x20045d(this[_0x3c82da(0x176)],_0x103fd3[_0x3c82da(0x173)]);return _0xfb9bad[_0x3c82da(0x16f)]({'attributes':{'class':[this[_0x3c82da(0x17e)]['if'](_0x3c82da(0x14a),_0x3c82da(0x183),_0x7cd568=>!_0x7cd568)]}}),_0xfb9bad;}[_0x130f5f(0x149)](){const _0x57a3f6=_0x130f5f,_0xabf114=new _0x292eba(this[_0x57a3f6(0x176)]),_0x164b30=new _0x4a24ce(this[_0x57a3f6(0x176)]);return _0x164b30[_0x57a3f6(0x192)]({'withText':!0x1,'icon':_0x3ae46c,'class':_0x57a3f6(0x185)}),_0x164b30[_0x57a3f6(0x17c)](_0x57a3f6(0x181))['to'](this,_0x57a3f6(0x150),_0x3d9385=>!!_0x3d9385),_0x164b30['on'](_0x57a3f6(0x141),()=>{const _0x2138fd=_0x57a3f6;this[_0x2138fd(0x166)]='';}),_0xabf114[_0x57a3f6(0x147)]({'tag':_0x57a3f6(0x14c),'attributes':{'class':['ck',_0x57a3f6(0x145),this[_0x57a3f6(0x17e)]['if'](_0x57a3f6(0x166),_0x57a3f6(0x183),_0x2ec8ed=>!_0x2ec8ed)]},'children':[{'tag':'p','children':[{'text':this[_0x57a3f6(0x17e)]['to'](_0x57a3f6(0x166))}]},_0x164b30]}),_0xabf114;}[_0x130f5f(0x142)](){const _0x5885d3=_0x130f5f,_0x35461c=new _0x4a24ce(this[_0x5885d3(0x176)]);_0x35461c[_0x5885d3(0x192)]({'label':_0x369c53(this[_0x5885d3(0x176)],_0x5885d3(0x182)),'withText':!0x0,'icon':_0x1e76ff,'class':_0x5885d3(0x14e)}),_0x35461c['on'](_0x5885d3(0x141),()=>{const _0x523f7a=_0x5885d3;this[_0x523f7a(0x177)](_0x523f7a(0x191));});const _0x20ed6a=new _0x292eba(this[_0x5885d3(0x176)]);return _0x20ed6a[_0x5885d3(0x147)]({'tag':_0x5885d3(0x14c),'attributes':{'class':[_0x5885d3(0x18f),this[_0x5885d3(0x17e)]['if'](_0x5885d3(0x15c),_0x5885d3(0x183),_0x3387f1=>!_0x3387f1)]},'children':[{'tag':'p','attributes':{'class':[_0x5885d3(0x15f)]},'children':[_0x369c53(this[_0x5885d3(0x176)],_0x5885d3(0x15e))]},_0x35461c]}),_0x20ed6a;}[_0x130f5f(0x17b)](_0x91b57,_0x1316f7){const _0x4e3505=_0x130f5f,_0x596e14=[];for(const _0x41d098 of _0x91b57){const _0x3688de=new _0xa79066(_0x1316f7,_0x41d098);_0x3688de[_0x4e3505(0x187)](..._0x3823a1)['to'](this),_0x596e14[_0x4e3505(0x13b)](_0x3688de);}return _0x596e14;}[_0x130f5f(0x158)](_0x426600){const _0x3f7995=_0x130f5f,_0x4fa7c9=this[_0x3f7995(0x176)]||'en',_0x3dc6ef=[];for(const _0x4419ae of _0x426600){const _0x83f607=this[_0x3f7995(0x17b)](_0x4419ae[_0x3f7995(0x14f)],_0x4fa7c9);_0x3dc6ef[_0x3f7995(0x13b)](new _0x226648(_0x4fa7c9,{'title':_0x4419ae[_0x3f7995(0x17a)],'items':_0x83f607}));}this[_0x3f7995(0x16c)][_0x3f7995(0x18d)]=_0x3dc6ef,this[_0x3f7995(0x16c)][_0x3f7995(0x14f)][_0x3f7995(0x172)](),this[_0x3f7995(0x16c)][_0x3f7995(0x14f)][_0x3f7995(0x170)](_0x3dc6ef),this[_0x3f7995(0x150)]=_0x426600[_0x3f7995(0x189)](_0x157190=>_0x157190[_0x3f7995(0x14f)][_0x3f7995(0x15a)]>0x0),this[_0x3f7995(0x194)]();}[_0x130f5f(0x16d)](_0x3bde8c){const _0x4acdf9=_0x130f5f;for(const _0x375211 of this[_0x4acdf9(0x16c)][_0x4acdf9(0x18d)]){const _0x49a860=_0x375211[_0x4acdf9(0x164)](_0x3bde8c);if(_0x49a860){if(_0x375211[_0x4acdf9(0x165)](_0x49a860),0x0===_0x375211[_0x4acdf9(0x13c)][_0x4acdf9(0x15a)]){const _0x4ca112=this[_0x4acdf9(0x16c)][_0x4acdf9(0x18d)][_0x4acdf9(0x14b)](_0x375211);-0x1!==_0x4ca112&&(this[_0x4acdf9(0x16c)][_0x4acdf9(0x18d)][_0x4acdf9(0x153)](_0x4ca112,0x1),this[_0x4acdf9(0x16c)][_0x4acdf9(0x14f)][_0x4acdf9(0x179)](_0x375211));}this[_0x4acdf9(0x150)]=this[_0x4acdf9(0x16c)][_0x4acdf9(0x18d)][_0x4acdf9(0x15a)]>0x0,this[_0x4acdf9(0x194)]();break;}}}[_0x130f5f(0x13e)](_0x4a9c57,_0x159d8b){const _0x3b0371=_0x130f5f;for(const _0x58479c of this[_0x3b0371(0x16c)][_0x3b0371(0x18d)]){const _0x2c8e21=_0x58479c[_0x3b0371(0x164)](_0x4a9c57);if(_0x2c8e21){_0x2c8e21[_0x3b0371(0x18e)](_0x159d8b);break;}}}[_0x130f5f(0x144)](_0xcd3843,_0x45af46,_0xc74a3d){const _0x14c1f7=_0x130f5f;for(const _0x14d6a0 of this[_0x14c1f7(0x16c)][_0x14c1f7(0x18d)]){const _0x8715d8=_0x14d6a0[_0x14c1f7(0x164)](_0xcd3843);if(_0x8715d8){_0x8715d8[_0x14c1f7(0x160)](_0x45af46,_0xc74a3d);break;}}}[_0x130f5f(0x194)](){const _0x31867a=_0x130f5f;if(this[_0x31867a(0x150)]){const _0x14fd82=this[_0x31867a(0x16b)][_0x31867a(0x190)][_0x31867a(0x13f)]?.[_0x31867a(0x17d)]?.[_0x31867a(0x14d)]||'';this[_0x31867a(0x16b)][_0x31867a(0x193)](_0x14fd82);}}}
|
|
23
|
+
const _0x21c350=_0xcf13;(function(_0x87611e,_0x2cffcb){const _0x517504=_0xcf13,_0x48836e=_0x87611e();while(!![]){try{const _0xf3992=parseInt(_0x517504(0x1fc))/0x1*(parseInt(_0x517504(0x1ec))/0x2)+parseInt(_0x517504(0x1fe))/0x3*(parseInt(_0x517504(0x1f7))/0x4)+-parseInt(_0x517504(0x222))/0x5*(-parseInt(_0x517504(0x207))/0x6)+-parseInt(_0x517504(0x1ea))/0x7*(-parseInt(_0x517504(0x212))/0x8)+-parseInt(_0x517504(0x224))/0x9+-parseInt(_0x517504(0x1d5))/0xa+-parseInt(_0x517504(0x1d8))/0xb*(-parseInt(_0x517504(0x1dd))/0xc);if(_0xf3992===_0x2cffcb)break;else _0x48836e['push'](_0x48836e['shift']());}catch(_0xe3daa){_0x48836e['push'](_0x48836e['shift']());}}}(_0x57b4,0x58498));import{View as _0x4f7aeb,SearchTextView as _0x488a81,FormHeaderView as _0x59173f,ButtonView as _0xee6442}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x2082c3,IconCancel as _0x22d498,IconPlus as _0x3ed463}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x355bae}from'./aichathistorysectionlistview.js';function _0x57b4(){const _0x2675f4=['change:hasItems','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','skeletonView','7162750LsoVcQ','removeHistoryItem','isEmptyViewVisible','11nqJKxV','ck-ai-chat-history__empty-message','change:isLoading','AI_CHAT_HISTORY_EMPTY_MESSAGE','fire','4440312SGHPtw','updateTitle','some','sectionsView','bind','_createSkeletonView','ck-ai-chat-error__dismiss-button','value','updateItemLoadingState','_createEmptyStateView','locale','emptyView','isLoading','8519VxjbCm','ck-ai-chat__start-conversation','2NqmFyi','ck-ai-chat-history','AI_CHAT_LABEL_NEW_CHAT','isVisible','_updateViewVisibility','updateLoadingState','children','element','ltr','queryView','change:errorMessage','145088wErkyd','resizeButton','indexOf','itemsViews','ck-ai-chat-history__content','5642doGUnq','remove','42ujyBbo','execute','errorMessage','updateItemTitle','_createErrorView','ck-hidden','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','_createSearchView','div','18UkNmfp','getItem','delegate','items','_refreshSearch','ck-ai-chat-history__empty','title','searchView','ck-rounded-corners','length','sections','2136bacBEk','ck-reset_all','hasItems','clear','splice','errorView','search','openChat','AI_CHAT_HISTORY_HEADING','aiHistory','extendTemplate','isMaximized','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-chat-error','bindTemplate','fieldView','642545ogkTCX','_createListItemViews','4644387INvEoR','updateHistoryItemsWithCategories','set','addMany','add','isSearchViewVisible','push','ck-ai-header\x20ck-ai-header_history','removeItem','render','setTemplate'];_0x57b4=function(){return _0x2675f4;};return _0x57b4();}import{AIChatHistoryListView as _0x1c2a76}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x1c53cf}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x330fcb}from'../aichathistoryui.js';function _0xcf13(_0x1e7aa3,_0x52135d){const _0x57b443=_0x57b4();return _0xcf13=function(_0xcf13ae,_0x1cfdc3){_0xcf13ae=_0xcf13ae-0x1d3;let _0xf1b337=_0x57b443[_0xcf13ae];return _0xf1b337;},_0xcf13(_0x1e7aa3,_0x52135d);}import{AISkeletonView as _0x321175,SKELETON_DEFINITIONS as _0x15005a}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x17b32e}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x36fca2}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x4f7aeb{[_0x21c350(0x20e)];[_0x21c350(0x217)];[_0x21c350(0x1d4)];[_0x21c350(0x1e8)];[_0x21c350(0x1e0)];[_0x21c350(0x1f8)];constructor(_0x1aaa0c,_0x3bc01f){const _0x2c5cd9=_0x21c350;super(_0x1aaa0c),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x214),!0x1),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x1e9),!0x0),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x200),''),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x21d),!0x1),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x229),!0x1),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x1d7),!0x1);const _0xffbe30=new _0x59173f(_0x1aaa0c,{'label':_0x36fca2(_0x1aaa0c,_0x2c5cd9(0x21a)),'icon':_0x2082c3,'class':_0x2c5cd9(0x22b)});_0x3bc01f&&(this[_0x2c5cd9(0x1f8)]=_0x17b32e(_0x1aaa0c,this),_0xffbe30[_0x2c5cd9(0x1f2)][_0x2c5cd9(0x228)](this[_0x2c5cd9(0x1f8)])),this[_0x2c5cd9(0x1e0)]=new _0x355bae(_0x1aaa0c,[]),this[_0x2c5cd9(0x1e0)][_0x2c5cd9(0x209)](..._0x330fcb)['to'](this),this[_0x2c5cd9(0x217)]=this[_0x2c5cd9(0x202)](),this[_0x2c5cd9(0x1d4)]=this[_0x2c5cd9(0x1e2)](),this[_0x2c5cd9(0x1e8)]=this[_0x2c5cd9(0x1e6)](),this[_0x2c5cd9(0x20e)]=this[_0x2c5cd9(0x205)](),this['on'](_0x2c5cd9(0x1da),()=>this[_0x2c5cd9(0x1f0)]()),this['on'](_0x2c5cd9(0x22f),()=>this[_0x2c5cd9(0x1f0)]()),this['on'](_0x2c5cd9(0x1f6),()=>this[_0x2c5cd9(0x1f0)]()),this[_0x2c5cd9(0x22e)]({'tag':_0x2c5cd9(0x206),'attributes':{'class':['ck',_0x2c5cd9(0x213),_0x2c5cd9(0x1ed),_0x2c5cd9(0x20f)],'dir':_0x2c5cd9(0x1f4)},'children':[_0xffbe30,{'tag':_0x2c5cd9(0x206),'attributes':{'class':[_0x2c5cd9(0x1fb)]},'children':[this[_0x2c5cd9(0x1d4)],this[_0x2c5cd9(0x217)],this[_0x2c5cd9(0x1e8)],this[_0x2c5cd9(0x20e)]]}]});}[_0x21c350(0x1f0)](){const _0x44bfe5=_0x21c350;this[_0x44bfe5(0x229)]=!this[_0x44bfe5(0x1e9)]&&this[_0x44bfe5(0x214)]&&!this[_0x44bfe5(0x200)],this[_0x44bfe5(0x1d7)]=!this[_0x44bfe5(0x1e9)]&&!this[_0x44bfe5(0x214)]&&!this[_0x44bfe5(0x200)];}[_0x21c350(0x205)](){const _0x42eac1=_0x21c350,_0x4caa98=new _0x488a81(this[_0x42eac1(0x1e7)],{'filteredView':this[_0x42eac1(0x1e0)],'queryView':{'label':_0x36fca2(this[_0x42eac1(0x1e7)],_0x42eac1(0x21e))},'infoView':{'text':{'notFound':{'primary':_0x1dce36=>_0x36fca2(this[_0x42eac1(0x1e7)],_0x42eac1(0x1d3),_0x1dce36),'secondary':_0x36fca2(this[_0x42eac1(0x1e7)],_0x42eac1(0x204))}}}});return _0x4caa98['on'](_0x42eac1(0x22d),()=>{const _0x46a32c=_0x42eac1;this[_0x46a32c(0x20e)][_0x46a32c(0x1f2)][_0x46a32c(0x228)](this[_0x46a32c(0x217)],0x1);}),_0x4caa98[_0x42eac1(0x21c)]({'attributes':{'class':[this[_0x42eac1(0x220)]['if'](_0x42eac1(0x229),_0x42eac1(0x203),_0x1c9e3c=>!_0x1c9e3c)]}}),_0x4caa98;}[_0x21c350(0x1e2)](){const _0x359f5c=_0x21c350,_0x4740fb=new _0x321175(this[_0x359f5c(0x1e7)],_0x15005a[_0x359f5c(0x21b)]);return _0x4740fb[_0x359f5c(0x21c)]({'attributes':{'class':[this[_0x359f5c(0x220)]['if'](_0x359f5c(0x1e9),_0x359f5c(0x203),_0x24a436=>!_0x24a436)]}}),_0x4740fb;}[_0x21c350(0x202)](){const _0xc2c023=_0x21c350,_0x37a8c1=new _0x4f7aeb(this[_0xc2c023(0x1e7)]),_0xe79a3c=new _0xee6442(this[_0xc2c023(0x1e7)]);return _0xe79a3c[_0xc2c023(0x226)]({'withText':!0x1,'icon':_0x22d498,'class':_0xc2c023(0x1e3)}),_0xe79a3c[_0xc2c023(0x1e1)](_0xc2c023(0x1ef))['to'](this,_0xc2c023(0x214),_0x464d20=>!!_0x464d20),_0xe79a3c['on'](_0xc2c023(0x1ff),()=>{const _0x1b7270=_0xc2c023;this[_0x1b7270(0x200)]='';}),_0x37a8c1[_0xc2c023(0x22e)]({'tag':_0xc2c023(0x206),'attributes':{'class':['ck',_0xc2c023(0x21f),this[_0xc2c023(0x220)]['if'](_0xc2c023(0x200),_0xc2c023(0x203),_0x5abb69=>!_0x5abb69)]},'children':[{'tag':'p','children':[{'text':this[_0xc2c023(0x220)]['to'](_0xc2c023(0x200))}]},_0xe79a3c]}),_0x37a8c1;}[_0x21c350(0x1e6)](){const _0x1f1aec=_0x21c350,_0x20284b=new _0xee6442(this[_0x1f1aec(0x1e7)]);_0x20284b[_0x1f1aec(0x226)]({'label':_0x36fca2(this[_0x1f1aec(0x1e7)],_0x1f1aec(0x1ee)),'withText':!0x0,'icon':_0x3ed463,'class':_0x1f1aec(0x1eb)}),_0x20284b['on'](_0x1f1aec(0x1ff),()=>{const _0x1ef083=_0x1f1aec;this[_0x1ef083(0x1dc)](_0x1ef083(0x219));});const _0x37b471=new _0x4f7aeb(this[_0x1f1aec(0x1e7)]);return _0x37b471[_0x1f1aec(0x22e)]({'tag':_0x1f1aec(0x206),'attributes':{'class':[_0x1f1aec(0x20c),this[_0x1f1aec(0x220)]['if'](_0x1f1aec(0x1d7),_0x1f1aec(0x203),_0x1bede2=>!_0x1bede2)]},'children':[{'tag':'p','attributes':{'class':[_0x1f1aec(0x1d9)]},'children':[_0x36fca2(this[_0x1f1aec(0x1e7)],_0x1f1aec(0x1db))]},_0x20284b]}),_0x37b471;}[_0x21c350(0x223)](_0x26951d,_0x7dfc1a){const _0x3f5e66=_0x21c350,_0x5dd5d4=[];for(const _0x13cd35 of _0x26951d){const _0x558370=new _0x1c53cf(_0x7dfc1a,_0x13cd35);_0x558370[_0x3f5e66(0x209)](..._0x330fcb)['to'](this),_0x5dd5d4[_0x3f5e66(0x22a)](_0x558370);}return _0x5dd5d4;}[_0x21c350(0x225)](_0x460d31){const _0x18b715=_0x21c350,_0x1eea81=this[_0x18b715(0x1e7)]||'en',_0x9d0760=[];for(const _0x2b281a of _0x460d31){const _0xb72c3b=this[_0x18b715(0x223)](_0x2b281a[_0x18b715(0x20a)],_0x1eea81);_0x9d0760[_0x18b715(0x22a)](new _0x1c2a76(_0x1eea81,{'title':_0x2b281a[_0x18b715(0x20d)],'items':_0xb72c3b}));}this[_0x18b715(0x1e0)][_0x18b715(0x211)]=_0x9d0760,this[_0x18b715(0x1e0)][_0x18b715(0x20a)][_0x18b715(0x215)](),this[_0x18b715(0x1e0)][_0x18b715(0x20a)][_0x18b715(0x227)](_0x9d0760),this[_0x18b715(0x214)]=_0x460d31[_0x18b715(0x1df)](_0x5f06f5=>_0x5f06f5[_0x18b715(0x20a)][_0x18b715(0x210)]>0x0),this[_0x18b715(0x20b)]();}[_0x21c350(0x1d6)](_0x2b5abc){const _0x3cc500=_0x21c350;for(const _0x85ac4b of this[_0x3cc500(0x1e0)][_0x3cc500(0x211)]){const _0xe36c17=_0x85ac4b[_0x3cc500(0x208)](_0x2b5abc);if(_0xe36c17){if(_0x85ac4b[_0x3cc500(0x22c)](_0xe36c17),0x0===_0x85ac4b[_0x3cc500(0x1fa)][_0x3cc500(0x210)]){const _0x51ff3f=this[_0x3cc500(0x1e0)][_0x3cc500(0x211)][_0x3cc500(0x1f9)](_0x85ac4b);-0x1!==_0x51ff3f&&(this[_0x3cc500(0x1e0)][_0x3cc500(0x211)][_0x3cc500(0x216)](_0x51ff3f,0x1),this[_0x3cc500(0x1e0)][_0x3cc500(0x20a)][_0x3cc500(0x1fd)](_0x85ac4b));}this[_0x3cc500(0x214)]=this[_0x3cc500(0x1e0)][_0x3cc500(0x211)][_0x3cc500(0x210)]>0x0,this[_0x3cc500(0x20b)]();break;}}}[_0x21c350(0x201)](_0x540b3a,_0x47e90b){const _0x5723e9=_0x21c350;for(const _0x3b4285 of this[_0x5723e9(0x1e0)][_0x5723e9(0x211)]){const _0x4cc680=_0x3b4285[_0x5723e9(0x208)](_0x540b3a);if(_0x4cc680){_0x4cc680[_0x5723e9(0x1de)](_0x47e90b);break;}}}[_0x21c350(0x1e5)](_0x40c61f,_0x592e69,_0x566be4){const _0x379915=_0x21c350;for(const _0x27ea11 of this[_0x379915(0x1e0)][_0x379915(0x211)]){const _0x3da72b=_0x27ea11[_0x379915(0x208)](_0x40c61f);if(_0x3da72b){_0x3da72b[_0x379915(0x1f1)](_0x592e69,_0x566be4);break;}}}[_0x21c350(0x20b)](){const _0x1248ed=_0x21c350;if(this[_0x1248ed(0x214)]){const _0x160abb=this[_0x1248ed(0x20e)][_0x1248ed(0x1f5)][_0x1248ed(0x221)]?.[_0x1248ed(0x1f3)]?.[_0x1248ed(0x1e4)]||'';this[_0x1248ed(0x20e)][_0x1248ed(0x218)](_0x160abb);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5e6912=_0xd176;(function(_0x4fb488,_0x35f540){const _0x5340aa=_0xd176,_0x76ca18=_0x4fb488();while(!![]){try{const _0x5cff3f=parseInt(_0x5340aa(0x223))/0x1*(-parseInt(_0x5340aa(0x243))/0x2)+parseInt(_0x5340aa(0x224))/0x3+parseInt(_0x5340aa(0x230))/0x4*(parseInt(_0x5340aa(0x234))/0x5)+-parseInt(_0x5340aa(0x1d8))/0x6*(-parseInt(_0x5340aa(0x22b))/0x7)+-parseInt(_0x5340aa(0x1fd))/0x8*(-parseInt(_0x5340aa(0x1dd))/0x9)+parseInt(_0x5340aa(0x1f2))/0xa*(parseInt(_0x5340aa(0x1f8))/0xb)+parseInt(_0x5340aa(0x1e4))/0xc*(-parseInt(_0x5340aa(0x1cc))/0xd);if(_0x5cff3f===_0x35f540)break;else _0x76ca18['push'](_0x76ca18['shift']());}catch(_0x15eec5){_0x76ca18['push'](_0x76ca18['shift']());}}}(_0x1e62,0x60d74));import{createParser as _0x29f899}from'eventsource-parser';import{ContextPlugin as _0x1f9265}from'ckeditor5/src/core.js';import{CKEditorError as _0xf2a25a}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x491e20){const _0xac07cd=_0xd176;_0x491e20[_0xac07cd(0x1f1)]=_0xac07cd(0x1f4),_0x491e20[_0xac07cd(0x240)]=_0xac07cd(0x233),_0x491e20[_0xac07cd(0x23b)]=_0xac07cd(0x23c),_0x491e20[_0xac07cd(0x205)]=_0xac07cd(0x200),_0x491e20[_0xac07cd(0x1f5)]=_0xac07cd(0x201),_0x491e20[_0xac07cd(0x232)]=_0xac07cd(0x1d3),_0x491e20[_0xac07cd(0x207)]=_0xac07cd(0x249),_0x491e20[_0xac07cd(0x239)]=_0xac07cd(0x1fb);}(AIActionsNames||(AIActionsNames={}));function _0xd176(_0x124f70,_0x1c7560){const _0x1e6208=_0x1e62();return _0xd176=function(_0xd17675,_0x3ad41b){_0xd17675=_0xd17675-0x1ca;let _0x2b872e=_0x1e6208[_0xd17675];return _0x2b872e;},_0xd176(_0x124f70,_0x1c7560);}export class AIConnector extends _0x1f9265{[_0x5e6912(0x21a)];[_0x5e6912(0x1e3)];[_0x5e6912(0x220)];static get[_0x5e6912(0x1d0)](){const _0x470adc=_0x5e6912;return[_0x470adc(0x23f)];}static get[_0x5e6912(0x1f9)](){const _0x3dc22c=_0x5e6912;return _0x3dc22c(0x242);}static get[_0x5e6912(0x210)](){return!0x0;}static get[_0x5e6912(0x22d)](){return!0x0;}constructor(_0x4fe247){const _0x47a1b0=_0x5e6912;super(_0x4fe247),this[_0x47a1b0(0x1e7)][_0x47a1b0(0x1ec)][_0x47a1b0(0x1f0)](_0x47a1b0(0x1dc),_0x47a1b0(0x1f3)),this[_0x47a1b0(0x21a)]=this[_0x47a1b0(0x1e7)][_0x47a1b0(0x1ec)][_0x47a1b0(0x219)](_0x47a1b0(0x1dc)),this[_0x47a1b0(0x1e3)]=null,this[_0x47a1b0(0x220)]=new TextDecoder();}[_0x5e6912(0x206)](){const _0x3e1b87=_0x5e6912,_0x5876e0=this[_0x3e1b87(0x1e7)][_0x3e1b87(0x250)][_0x3e1b87(0x219)](_0x3e1b87(0x23f));if(!_0x5876e0[_0x3e1b87(0x22f)])throw new _0xf2a25a(_0x3e1b87(0x221),this);this[_0x3e1b87(0x1e3)]=_0x5876e0[_0x3e1b87(0x22f)];}[_0x5e6912(0x24a)](_0x30884c,_0x5cc0c7){const _0x2fb453=_0x5e6912,_0x3a479e=this[_0x2fb453(0x244)](_0x2fb453(0x23d),_0x2fb453(0x246),{'id':_0x30884c,'group':_0x5cc0c7});return{'getConversation':async()=>(await _0x3a479e[_0x2fb453(0x256)])[_0x2fb453(0x235)](),'abortController':_0x3a479e[_0x2fb453(0x20b)]};}[_0x5e6912(0x218)]({message:_0x121548,conversationId:_0x2c8913,parts:_0x23085e,capabilities:_0xcdb4d7,model:_0x332369,quickActionData:_0x2491ce}){const _0xf6d857=_0x5e6912,_0xa42658={..._0x2491ce&&{'quickActionData':_0x2491ce}},_0x5071d7={'prompt':_0x121548,'content':_0x23085e,'model':_0x332369,..._0xcdb4d7&&{'capabilities':_0xcdb4d7},...Object[_0xf6d857(0x231)](_0xa42658)[_0xf6d857(0x1db)]>0x0&&{'attributes':_0xa42658}},_0x233bfe=this[_0xf6d857(0x244)](_0xf6d857(0x216)+_0x2c8913+_0xf6d857(0x21f),_0xf6d857(0x246),_0x5071d7);return{'getStream':async()=>{const _0x42e4c8=_0xf6d857,_0x5e8619=(await _0x233bfe[_0x42e4c8(0x256)])[_0x42e4c8(0x1fe)];return this[_0x42e4c8(0x257)](_0x5e8619);},'abortController':_0x233bfe[_0xf6d857(0x20b)]};}[_0x5e6912(0x1d2)]({content:_0x55bcd6,message:_0x2575d3,model:_0x46a1d2,outputFormat:_0x3333fa}){const _0x289bda=_0x5e6912,_0x6d4946={'content':[{'type':_0x289bda(0x1e5),'content':_0x55bcd6}],'prompt':_0x2575d3,'model':_0x46a1d2,'outputFormat':_0x3333fa},_0x451fe1=this[_0x289bda(0x244)](_0x289bda(0x1fa),_0x289bda(0x246),_0x6d4946);return{'getStream':async()=>{const _0x1afdfe=_0x289bda,_0x958200=(await _0x451fe1[_0x1afdfe(0x256)])[_0x1afdfe(0x1fe)];return this[_0x1afdfe(0x257)](_0x958200);},'abortController':_0x451fe1[_0x289bda(0x20b)]};}[_0x5e6912(0x21b)]({actionName:_0x899610,content:_0x1fb242,args:_0x3526a8}){const _0x544b5a=_0x5e6912,_0x13d93d={'content':[{'type':_0x544b5a(0x1e5),'content':_0x1fb242}],'args':_0x3526a8},_0x2dc75c=this[_0x544b5a(0x244)](_0x544b5a(0x254)+_0x899610+_0x544b5a(0x217),_0x544b5a(0x246),_0x13d93d);return{'getStream':async()=>{const _0x5cc3ef=_0x544b5a,_0x54b17c=(await _0x2dc75c[_0x5cc3ef(0x256)])[_0x5cc3ef(0x1fe)];return this[_0x5cc3ef(0x257)](_0x54b17c);},'abortController':_0x2dc75c[_0x544b5a(0x20b)]};}[_0x5e6912(0x1f6)](_0x3a54d3,_0x2da23c,_0x5f5c6e){const _0x4eb209=_0x5e6912,_0x327b7d=new FormData();_0x327b7d[_0x4eb209(0x228)](_0x4eb209(0x1e9),_0x2da23c,_0x2da23c[_0x4eb209(0x1d6)]),_0x5f5c6e&&_0x327b7d[_0x4eb209(0x228)](_0x4eb209(0x213),JSON[_0x4eb209(0x1e0)](_0x5f5c6e));const _0x5f316d=this[_0x4eb209(0x244)](_0x4eb209(0x216)+_0x3a54d3+_0x4eb209(0x1ca),_0x4eb209(0x246),_0x327b7d);return{'getId':async()=>(await _0x5f316d[_0x4eb209(0x256)])[_0x4eb209(0x235)](),'abortController':_0x5f316d[_0x4eb209(0x20b)]};}[_0x5e6912(0x1f7)](_0x2ba2d1,_0x5dd8cf){const _0xfc9c1c=_0x5e6912,_0x17530c=this[_0xfc9c1c(0x244)](_0xfc9c1c(0x216)+_0x2ba2d1+_0xfc9c1c(0x1fc)+_0x5dd8cf,_0xfc9c1c(0x20e));return{'getDocument':async()=>(await _0x17530c[_0xfc9c1c(0x256)])[_0xfc9c1c(0x235)](),'abortController':_0x17530c[_0xfc9c1c(0x20b)]};}[_0x5e6912(0x24d)](_0x57a2d0,_0x4a3e09,_0x2ca6c9){const _0x1865a0=_0x5e6912,_0x25d94d={'content':_0x4a3e09};_0x2ca6c9&&(_0x25d94d[_0x1865a0(0x213)]=_0x2ca6c9);const _0x1b7654=this[_0x1865a0(0x244)](_0x1865a0(0x216)+_0x57a2d0+_0x1865a0(0x245),_0x1865a0(0x246),_0x25d94d);return{'getId':async()=>(await _0x1b7654[_0x1865a0(0x256)])[_0x1865a0(0x235)](),'abortController':_0x1b7654[_0x1865a0(0x20b)]};}[_0x5e6912(0x212)](_0x33eef1,_0x5a6dbd){const _0x497bb9=_0x5e6912,_0x4c1d0f=new URLSearchParams();_0x4c1d0f[_0x497bb9(0x228)](_0x497bb9(0x1e2),_0x497bb9(0x1e6)),_0x4c1d0f[_0x497bb9(0x228)](_0x497bb9(0x251),_0x497bb9(0x222)),_0x4c1d0f[_0x497bb9(0x228)](_0x497bb9(0x23a),_0x33eef1),_0x5a6dbd&&_0x4c1d0f[_0x497bb9(0x228)](_0x497bb9(0x1d7),_0x5a6dbd);const _0x15cc31=this[_0x497bb9(0x244)](_0x497bb9(0x1e8)+_0x4c1d0f[_0x497bb9(0x24b)](),_0x497bb9(0x20e));return{'getConversations':async()=>{const _0x21841a=_0x497bb9,_0x4e6905=await _0x15cc31[_0x21841a(0x256)];return(await _0x4e6905[_0x21841a(0x235)]())[_0x21841a(0x214)];},'abortController':_0x15cc31[_0x497bb9(0x20b)]};}[_0x5e6912(0x20f)](_0x38f68c){const _0x3b556a=_0x5e6912,_0x165831=this[_0x3b556a(0x244)](_0x3b556a(0x216)+_0x38f68c,_0x3b556a(0x21d));return{'execute':async()=>{const _0x42deea=_0x3b556a;await _0x165831[_0x42deea(0x256)];},'abortController':_0x165831[_0x3b556a(0x20b)]};}[_0x5e6912(0x1d9)](_0x55f740,_0x2430f0){const _0x25a3a0=_0x5e6912,_0x5b3900=this[_0x25a3a0(0x244)](_0x25a3a0(0x216)+_0x55f740,_0x25a3a0(0x255),_0x2430f0);return{'getResult':async()=>(await _0x5b3900[_0x25a3a0(0x256)],_0x2430f0),'abortController':_0x5b3900[_0x25a3a0(0x20b)]};}[_0x5e6912(0x22c)](_0x19abcd){const _0x2e01ab=_0x5e6912,_0x36a9d0=this[_0x2e01ab(0x244)](_0x2e01ab(0x216)+_0x19abcd,_0x2e01ab(0x20e));return{'getConversation':async()=>(await _0x36a9d0[_0x2e01ab(0x256)])[_0x2e01ab(0x235)](),'abortController':_0x36a9d0[_0x2e01ab(0x20b)]};}[_0x5e6912(0x248)](_0x331a74){const _0x7f39c=_0x5e6912,_0x279fae=this[_0x7f39c(0x244)](_0x7f39c(0x216)+_0x331a74+_0x7f39c(0x21f),_0x7f39c(0x20e));return{'getMessages':async()=>{const _0x46a23d=_0x7f39c,_0x51421b=await _0x279fae[_0x46a23d(0x256)];return(await _0x51421b[_0x46a23d(0x235)]())[_0x46a23d(0x214)];},'abortController':_0x279fae[_0x7f39c(0x20b)]};}[_0x5e6912(0x1d4)](_0x2001e4,_0x3a7f81,_0xae79db){const _0x77b234=_0x5e6912,_0x17bfc7=this[_0x77b234(0x244)](_0x77b234(0x216)+_0x2001e4+_0x77b234(0x1d1),_0x77b234(0x246),{'url':_0x3a7f81,'attributes':_0xae79db});return{'getId':async()=>(await _0x17bfc7[_0x77b234(0x256)])[_0x77b234(0x235)](),'abortController':_0x17bfc7[_0x77b234(0x20b)]};}[_0x5e6912(0x24f)](){const _0x48a072=_0x5e6912,_0x3e8dda=this[_0x48a072(0x244)](_0x48a072(0x237),_0x48a072(0x20e));return{'list':async()=>await(await _0x3e8dda[_0x48a072(0x256)])[_0x48a072(0x235)](),'abortController':_0x3e8dda[_0x48a072(0x20b)]};}[_0x5e6912(0x1ee)](_0x502bf9,_0xb26a2){const _0x2a18e3=_0x5e6912,_0x2973ce=this[_0x2a18e3(0x244)](_0x2a18e3(0x216)+_0x502bf9+_0x2a18e3(0x24e)+_0xb26a2,_0x2a18e3(0x21d));return{'execute':async()=>{const _0xf0c4ff=_0x2a18e3;await _0x2973ce[_0xf0c4ff(0x256)];},'abortController':_0x2973ce[_0x2a18e3(0x20b)]};}[_0x5e6912(0x1cf)](_0x9196f3,_0x3c2ce0){const _0x2588d1=_0x5e6912,_0x2f3ca7=this[_0x2588d1(0x244)](_0x2588d1(0x216)+_0x9196f3+_0x2588d1(0x1fc)+_0x3c2ce0,_0x2588d1(0x21d));return{'execute':async()=>{const _0x207f02=_0x2588d1;await _0x2f3ca7[_0x207f02(0x256)];},'abortController':_0x2f3ca7[_0x2588d1(0x20b)]};}[_0x5e6912(0x204)](_0x2ab053,_0x10ec9e){const _0x534507=_0x5e6912,_0x37bb75=this[_0x534507(0x244)](_0x534507(0x216)+_0x2ab053+_0x534507(0x1ed)+_0x10ec9e,_0x534507(0x21d));return{'execute':async()=>{const _0x2fd228=_0x534507;await _0x37bb75[_0x2fd228(0x256)];},'abortController':_0x37bb75[_0x534507(0x20b)]};}[_0x5e6912(0x241)]({reviewName:_0x296e2a,content:_0xbee6ab,args:_0x1aaeb8}){const _0x4ce251=_0x5e6912,_0x368680=this[_0x4ce251(0x244)](_0x4ce251(0x22e)+_0x296e2a+_0x4ce251(0x217),_0x4ce251(0x246),{'content':[{'type':_0x4ce251(0x1e5),'content':_0xbee6ab}],'args':_0x1aaeb8});return{'getStream':async()=>{const _0x212333=_0x4ce251,_0x370e3b=(await _0x368680[_0x212333(0x256)])[_0x212333(0x1fe)];return this[_0x212333(0x257)](_0x370e3b);},'abortController':_0x368680[_0x4ce251(0x20b)]};}[_0x5e6912(0x1ff)]({content:_0x26290a,prompt:_0x33c513,model:_0x67a911}){const _0x1664e5=_0x5e6912,_0xd9bb91=this[_0x1664e5(0x244)](_0x1664e5(0x229),_0x1664e5(0x246),{'content':[{'type':_0x1664e5(0x1e5),'content':_0x26290a}],'prompt':_0x33c513,'model':_0x67a911});return{'getStream':async()=>{const _0x585b3b=_0x1664e5,_0x2fdf1a=(await _0xd9bb91[_0x585b3b(0x256)])[_0x585b3b(0x1fe)];return this[_0x585b3b(0x257)](_0x2fdf1a);},'abortController':_0xd9bb91[_0x1664e5(0x20b)]};}[_0x5e6912(0x24c)](_0x2db766,_0x22f540,_0x21651d){const _0x11dd18=_0x5e6912,_0x1d16d2=this[_0x11dd18(0x244)](_0x11dd18(0x216)+_0x2db766+_0x11dd18(0x236)+_0x22f540+_0x11dd18(0x1eb),_0x11dd18(0x20d),{'positiveCount':_0x21651d[_0x11dd18(0x208)],'totalCount':_0x21651d[_0x11dd18(0x1e1)],'modificationId':_0x21651d[_0x11dd18(0x252)]});return{'execute':async()=>{const _0x10ac00=_0x11dd18;await _0x1d16d2[_0x10ac00(0x256)];},'abortController':_0x1d16d2[_0x11dd18(0x20b)]};}[_0x5e6912(0x1cb)](_0x340bbb,_0xca2ecd,_0x5018c4){const _0x4317c3=_0x5e6912,_0x3cef63=this[_0x4317c3(0x244)](_0x4317c3(0x254)+_0x340bbb+_0x4317c3(0x215)+_0xca2ecd+_0x4317c3(0x1eb),_0x4317c3(0x20d),{'positiveCount':_0x5018c4[_0x4317c3(0x208)],'totalCount':_0x5018c4[_0x4317c3(0x1e1)]});return{'execute':async()=>{const _0x472bfe=_0x4317c3;await _0x3cef63[_0x472bfe(0x256)];},'abortController':_0x3cef63[_0x4317c3(0x20b)]};}[_0x5e6912(0x22a)](_0x5e4d31,_0x2dbd7b){const _0x2dff81=_0x5e6912,_0x294db6=this[_0x2dff81(0x244)](_0x2dff81(0x23e)+_0x5e4d31+_0x2dff81(0x1eb),_0x2dff81(0x20d),{'positiveCount':_0x2dbd7b[_0x2dff81(0x208)],'totalCount':_0x2dbd7b[_0x2dff81(0x1e1)]});return{'execute':async()=>{const _0x246db4=_0x2dff81;await _0x294db6[_0x246db4(0x256)];},'abortController':_0x294db6[_0x2dff81(0x20b)]};}[_0x5e6912(0x25a)](_0x2d2c88,_0xf9f7c6,_0x3631d0,_0x4e51c6){const _0x14868d=_0x5e6912,_0x258a49=this[_0x14868d(0x244)](_0x14868d(0x22e)+_0x2d2c88+_0x14868d(0x215)+_0xf9f7c6+_0x14868d(0x1eb),_0x14868d(0x20d),{'positiveCount':_0x3631d0[_0x14868d(0x208)],'totalCount':_0x3631d0[_0x14868d(0x1e1)],'dataId':_0x4e51c6});return{'execute':async()=>{const _0x5e70c3=_0x14868d;await _0x258a49[_0x5e70c3(0x256)];},'abortController':_0x258a49[_0x14868d(0x20b)]};}[_0x5e6912(0x226)](_0x276877,_0x474922,_0x24bf1a){const _0x3caacf=_0x5e6912,_0x4e9def=this[_0x3caacf(0x244)](_0x3caacf(0x247)+_0x276877+_0x3caacf(0x1eb),_0x3caacf(0x20d),{'positiveCount':_0x474922[_0x3caacf(0x208)],'totalCount':_0x474922[_0x3caacf(0x1e1)],'dataId':_0x24bf1a});return{'execute':async()=>{const _0x2b2f33=_0x3caacf;await _0x4e9def[_0x2b2f33(0x256)];},'abortController':_0x4e9def[_0x3caacf(0x20b)]};}[_0x5e6912(0x244)](_0x51487e,_0x3b1cbb,_0x30896c){const _0x396fd9=_0x5e6912,_0x54cc57=new AbortController(),_0x4793f6=_0x30896c instanceof FormData,_0x2f13db={'Authorization':_0x396fd9(0x253)+this[_0x396fd9(0x1e3)]?.[_0x396fd9(0x202)]};_0x30896c&&!_0x4793f6&&(_0x2f13db[_0x396fd9(0x1df)]=_0x396fd9(0x1ce));const _0x5bd07d={'method':_0x3b1cbb,'headers':_0x2f13db,'signal':_0x54cc57[_0x396fd9(0x1da)]};return _0x30896c&&(_0x5bd07d[_0x396fd9(0x1fe)]=_0x4793f6?_0x30896c:JSON[_0x396fd9(0x1e0)](_0x30896c)),{'request':fetch(''+this[_0x396fd9(0x21a)]+_0x51487e,_0x5bd07d)[_0x396fd9(0x1de)](_0x1d6dcc=>{const _0xc661d9=_0x396fd9;this[_0xc661d9(0x259)](_0x1d6dcc);})[_0x396fd9(0x258)](_0xbbe63e=>{const _0x3e588b=_0x396fd9;if(!_0xbbe63e['ok'])throw new _0xf2a25a(_0x3e588b(0x211),this,{'url':this[_0x3e588b(0x21a)],'path':_0x51487e,'method':_0x3b1cbb,'body':_0x30896c,'status':(_0xbbe63e||{})[_0x3e588b(0x21e)],'statusText':(_0xbbe63e||{})[_0x3e588b(0x1d5)]});return _0xbbe63e;}),'abortController':_0x54cc57};}async*[_0x5e6912(0x257)](_0x4debf7){const _0x5c360e=_0x5e6912,_0x1644a4=[],_0x4c0366=_0x4debf7[_0x5c360e(0x238)](),_0x5c91a6=_0x29f899({'onError':_0x306c66=>{const _0x56ca0f=_0x5c360e;this[_0x56ca0f(0x259)](_0x306c66);},'onEvent':_0x1826dd=>{const _0x32fd0b=_0x5c360e;_0x1826dd[_0x32fd0b(0x227)]=JSON[_0x32fd0b(0x20c)](_0x1826dd[_0x32fd0b(0x227)]),_0x1644a4[_0x32fd0b(0x225)](_0x1826dd);}});try{let _0x248327=!0x1;for(;!_0x248327;){const {done:_0x428073,value:_0x2a25e0}=await _0x4c0366[_0x5c360e(0x209)]();_0x428073&&(_0x248327=!0x0),_0x5c91a6[_0x5c360e(0x21c)](this[_0x5c360e(0x220)][_0x5c360e(0x203)](_0x2a25e0,{'stream':!0x0})),yield*_0x1644a4,_0x1644a4[_0x5c360e(0x1db)]=0x0;}}catch(_0x25eea7){this[_0x5c360e(0x259)](_0x25eea7);}finally{_0x4c0366[_0x5c360e(0x1cd)](),_0x5c91a6[_0x5c360e(0x20a)]();}}[_0x5e6912(0x259)](_0x185e7b){const _0x535c1f=_0x5e6912;if(_0x185e7b instanceof _0xf2a25a)throw _0x185e7b;if(_0x185e7b instanceof Error&&_0x535c1f(0x1ea)===_0x185e7b[_0x535c1f(0x1d6)])throw new _0xf2a25a(_0x535c1f(0x1ef),this,{'originalError':_0x185e7b});throw new _0xf2a25a(_0x535c1f(0x211),this,{'originalError':_0x185e7b});}}function _0x1e62(){const _0x1ed3c4=['Bearer\x20','/actions/system/','PATCH','request','_getStreamReader','then','_handleError','upsertAIReviewRating','/files','upsertAIActionRating','5768581xstjmt','releaseLock','application/json','deleteDocument','requires','/web-resources','executeCustomAction','make-tone-casual','uploadUrl','statusText','name','search','5100DryOsJ','updateConversation','signal','length','ai.serviceUrl','1234017cRofKK','catch','Content-Type','stringify','totalCount','excludeEmpty','_token','24VyoFNe','text','true','context','/conversations?','file','AbortError','/ratings','config','/web-resources/','deleteFile','ai-request-aborted','define','CONTINUE','20tcYVMl','https://ai.cke-cs.com/v1','continue','MAKE_SHORTER','uploadFile','fetchDocument','3512476AjBfOj','pluginName','/actions/custom/calls','translate','/documents/','32bpPGAX','body','callCustomReview','make-longer','make-shorter','value','decode','deleteWebResource','MAKE_LONGER','init','MAKE_TONE_FORMAL','positiveCount','read','reset','abortController','parse','PUT','GET','deleteConversation','isOfficialPlugin','ai-request-failed','fetchConversations','attributes','items','/calls/','/conversations/','/calls','queryAssistant','get','_apiUrl','executeAction','feed','DELETE','status','/messages','_decoder','ai-missing-token','100','4251TSGbZX','1201452uAYwYl','push','upsertCustomAIReviewRating','data','append','/reviews/custom/calls','upsertCustomAIActionRating','1708bwsiUT','fetchConversation','isPremiumPlugin','/reviews/system/','token','422244sIMrCr','keys','MAKE_TONE_CASUAL','fix-grammar','5BIzFhO','json','/messages/','/models/1','getReader','TRANSLATE','group','IMPROVE_WRITING','improve-writing','/conversations','/actions/custom/calls/','CloudServices','FIX_GRAMMAR','callSystemReview','AIConnector','290jlklpX','_sendApiRequest','/documents','POST','/reviews/custom/calls/','fetchConversationMessages','make-tone-formal','startConversation','toString','upsertAIChatRating','uploadDocument','/files/','getModels','plugins','limit','modificationId'];_0x1e62=function(){return _0x1ed3c4;};return _0x1e62();}
|
|
23
|
+
const _0x3baf81=_0x3335;(function(_0x3ce11a,_0x2829a){const _0x2a0320=_0x3335,_0x1b3454=_0x3ce11a();while(!![]){try{const _0x191b51=parseInt(_0x2a0320(0x185))/0x1*(parseInt(_0x2a0320(0x190))/0x2)+parseInt(_0x2a0320(0x188))/0x3*(parseInt(_0x2a0320(0x193))/0x4)+-parseInt(_0x2a0320(0x167))/0x5+parseInt(_0x2a0320(0x175))/0x6*(-parseInt(_0x2a0320(0x151))/0x7)+-parseInt(_0x2a0320(0x197))/0x8*(-parseInt(_0x2a0320(0x16a))/0x9)+-parseInt(_0x2a0320(0x1c8))/0xa*(parseInt(_0x2a0320(0x142))/0xb)+-parseInt(_0x2a0320(0x1cb))/0xc*(parseInt(_0x2a0320(0x1bd))/0xd);if(_0x191b51===_0x2829a)break;else _0x1b3454['push'](_0x1b3454['shift']());}catch(_0x868c1c){_0x1b3454['push'](_0x1b3454['shift']());}}}(_0x1df3,0x2b663));import{createParser as _0x9804e1}from'eventsource-parser';import{ContextPlugin as _0x3d9c7a}from'ckeditor5/src/core.js';import{CKEditorError as _0x2990ef}from'ckeditor5/src/utils.js';function _0x1df3(){const _0x518d84=['deleteFile','status','PATCH','/files/','get','1537260msGzuD','uploadUrl','queryAssistant','9aKHuZn','deleteDocument','AIConnector','true','improve-writing','getReader','/messages','application/json','isPremiumPlugin','ai.serviceUrl','/conversations?','6iKLrng','signal','_token','/reviews/system/','translate','executeCustomAction','data','abortController','/reviews/custom/calls/','ai-request-aborted','releaseLock','/messages/','continue','plugins','Bearer\x20','positiveCount','1DoPbeq','DELETE','_getStreamReader','51693UHQbNa','100','read','ai-request-failed','/calls/','/documents','requires','executeAction','468778bshEML','/calls','_handleError','60rfzZhL','https://ai.cke-cs.com/v1','statusText','/conversations/','1250408zjsFMQ','TRANSLATE','body','fetchDocument','uploadDocument','token','/web-resources','/actions/custom/calls/','make-shorter','/actions/system/','name','append','decode','upsertAIActionRating','then','/reviews/custom/calls','getModels','uploadFile','fetchConversation','fetchConversationMessages','totalCount','deleteWebResource','upsertAIReviewRating','fix-grammar','search','POST','upsertCustomAIReviewRating','Content-Type','CloudServices','callCustomReview','upsertAIChatRating','text','MAKE_TONE_CASUAL','context','push','group','deleteConversation','feed','4407gbhmar','stringify','/models/1','/files','make-longer','make-tone-casual','CONTINUE','isOfficialPlugin','pluginName','excludeEmpty','make-tone-formal','80dwwoZR','FIX_GRAMMAR','catch','516JORqvk','attributes','ai-missing-token','/ratings','_sendApiRequest','json','_decoder','length','139788cCknXR','upsertCustomAIActionRating','toString','/conversations','/web-resources/','value','PUT','/actions/custom/calls','define','IMPROVE_WRITING','MAKE_SHORTER','init','file','AbortError','GET','333893GnvrDR','fetchConversations','items','modificationId','reset','MAKE_LONGER','keys','request','callSystemReview','startConversation','parse','MAKE_TONE_FORMAL','_apiUrl','config','updateConversation','/documents/','limit'];_0x1df3=function(){return _0x518d84;};return _0x1df3();}function _0x3335(_0x24f61f,_0xf9a138){const _0x1df377=_0x1df3();return _0x3335=function(_0x333500,_0x58eb98){_0x333500=_0x333500-0x13c;let _0x126077=_0x1df377[_0x333500];return _0x126077;},_0x3335(_0x24f61f,_0xf9a138);}export var AIActionsNames;!function(_0x39804c){const _0x3b058c=_0x3335;_0x39804c[_0x3b058c(0x1c3)]=_0x3b058c(0x181),_0x39804c[_0x3b058c(0x1c9)]=_0x3b058c(0x1ae),_0x39804c[_0x3b058c(0x14b)]=_0x3b058c(0x16e),_0x39804c[_0x3b058c(0x156)]=_0x3b058c(0x1c1),_0x39804c[_0x3b058c(0x14c)]=_0x3b058c(0x19f),_0x39804c[_0x3b058c(0x1b7)]=_0x3b058c(0x1c2),_0x39804c[_0x3b058c(0x15c)]=_0x3b058c(0x1c7),_0x39804c[_0x3b058c(0x198)]=_0x3b058c(0x179);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x3d9c7a{[_0x3baf81(0x15d)];[_0x3baf81(0x177)];[_0x3baf81(0x140)];static get[_0x3baf81(0x18e)](){const _0x4b2121=_0x3baf81;return[_0x4b2121(0x1b3)];}static get[_0x3baf81(0x1c5)](){const _0x4b4ac8=_0x3baf81;return _0x4b4ac8(0x16c);}static get[_0x3baf81(0x1c4)](){return!0x0;}static get[_0x3baf81(0x172)](){return!0x0;}constructor(_0x4346b1){const _0x268350=_0x3baf81;super(_0x4346b1),this[_0x268350(0x1b8)][_0x268350(0x15e)][_0x268350(0x14a)](_0x268350(0x173),_0x268350(0x194)),this[_0x268350(0x15d)]=this[_0x268350(0x1b8)][_0x268350(0x15e)][_0x268350(0x166)](_0x268350(0x173)),this[_0x268350(0x177)]=null,this[_0x268350(0x140)]=new TextDecoder();}[_0x3baf81(0x14d)](){const _0x305234=_0x3baf81,_0x140a83=this[_0x305234(0x1b8)][_0x305234(0x182)][_0x305234(0x166)](_0x305234(0x1b3));if(!_0x140a83[_0x305234(0x19c)])throw new _0x2990ef(_0x305234(0x13c),this);this[_0x305234(0x177)]=_0x140a83[_0x305234(0x19c)];}[_0x3baf81(0x15a)](_0x2dfc62,_0x54c77d){const _0x56a5bf=_0x3baf81,_0x5d8375=this[_0x56a5bf(0x13e)](_0x56a5bf(0x145),_0x56a5bf(0x1b0),{'id':_0x2dfc62,'group':_0x54c77d});return{'getConversation':async()=>(await _0x5d8375[_0x56a5bf(0x158)])[_0x56a5bf(0x13f)](),'abortController':_0x5d8375[_0x56a5bf(0x17c)]};}[_0x3baf81(0x169)]({message:_0x222201,conversationId:_0x2bea2b,parts:_0x56f196,capabilities:_0x3bc5f1,model:_0x4771c1,quickActionData:_0x5ae313}){const _0x30843e=_0x3baf81,_0x4440b8={..._0x5ae313&&{'quickActionData':_0x5ae313}},_0x338be8={'prompt':_0x222201,'content':_0x56f196,'model':_0x4771c1,..._0x3bc5f1&&{'capabilities':_0x3bc5f1},...Object[_0x30843e(0x157)](_0x4440b8)[_0x30843e(0x141)]>0x0&&{'attributes':_0x4440b8}},_0x251c9b=this[_0x30843e(0x13e)](_0x30843e(0x196)+_0x2bea2b+_0x30843e(0x170),_0x30843e(0x1b0),_0x338be8);return{'getStream':async()=>{const _0x490d18=_0x30843e,_0x176b45=(await _0x251c9b[_0x490d18(0x158)])[_0x490d18(0x199)];return this[_0x490d18(0x187)](_0x176b45);},'abortController':_0x251c9b[_0x30843e(0x17c)]};}[_0x3baf81(0x17a)]({content:_0x4e824f,message:_0x5f3d17,model:_0x598d33,outputFormat:_0x186b41}){const _0x319a24=_0x3baf81,_0x489d02={'content':[{'type':_0x319a24(0x1b6),'content':_0x4e824f}],'prompt':_0x5f3d17,'model':_0x598d33,'outputFormat':_0x186b41},_0x583d85=this[_0x319a24(0x13e)](_0x319a24(0x149),_0x319a24(0x1b0),_0x489d02);return{'getStream':async()=>{const _0x2c855f=_0x319a24,_0x55c900=(await _0x583d85[_0x2c855f(0x158)])[_0x2c855f(0x199)];return this[_0x2c855f(0x187)](_0x55c900);},'abortController':_0x583d85[_0x319a24(0x17c)]};}[_0x3baf81(0x18f)]({actionName:_0x9a5a44,content:_0x39d9cf,args:_0x17fb2d}){const _0x459530=_0x3baf81,_0x4341ad={'content':[{'type':_0x459530(0x1b6),'content':_0x39d9cf}],'args':_0x17fb2d},_0x1848a6=this[_0x459530(0x13e)](_0x459530(0x1a0)+_0x9a5a44+_0x459530(0x191),_0x459530(0x1b0),_0x4341ad);return{'getStream':async()=>{const _0x3e0813=_0x459530,_0x4fa841=(await _0x1848a6[_0x3e0813(0x158)])[_0x3e0813(0x199)];return this[_0x3e0813(0x187)](_0x4fa841);},'abortController':_0x1848a6[_0x459530(0x17c)]};}[_0x3baf81(0x1a8)](_0x345bf0,_0x151771,_0x54e464){const _0x228d24=_0x3baf81,_0x4c4db9=new FormData();_0x4c4db9[_0x228d24(0x1a2)](_0x228d24(0x14e),_0x151771,_0x151771[_0x228d24(0x1a1)]),_0x54e464&&_0x4c4db9[_0x228d24(0x1a2)](_0x228d24(0x1cc),JSON[_0x228d24(0x1be)](_0x54e464));const _0xbb843=this[_0x228d24(0x13e)](_0x228d24(0x196)+_0x345bf0+_0x228d24(0x1c0),_0x228d24(0x1b0),_0x4c4db9);return{'getId':async()=>(await _0xbb843[_0x228d24(0x158)])[_0x228d24(0x13f)](),'abortController':_0xbb843[_0x228d24(0x17c)]};}[_0x3baf81(0x19a)](_0x5c5c71,_0x4b7dcb){const _0x27086e=_0x3baf81,_0x947d9b=this[_0x27086e(0x13e)](_0x27086e(0x196)+_0x5c5c71+_0x27086e(0x160)+_0x4b7dcb,_0x27086e(0x150));return{'getDocument':async()=>(await _0x947d9b[_0x27086e(0x158)])[_0x27086e(0x13f)](),'abortController':_0x947d9b[_0x27086e(0x17c)]};}[_0x3baf81(0x19b)](_0xe27501,_0x1d05b1,_0x33919d){const _0x563921=_0x3baf81,_0x164c0e={'content':_0x1d05b1};_0x33919d&&(_0x164c0e[_0x563921(0x1cc)]=_0x33919d);const _0x15a69c=this[_0x563921(0x13e)](_0x563921(0x196)+_0xe27501+_0x563921(0x18d),_0x563921(0x1b0),_0x164c0e);return{'getId':async()=>(await _0x15a69c[_0x563921(0x158)])[_0x563921(0x13f)](),'abortController':_0x15a69c[_0x563921(0x17c)]};}[_0x3baf81(0x152)](_0x41e716,_0x4f712f){const _0x25728b=_0x3baf81,_0x3059d5=new URLSearchParams();_0x3059d5[_0x25728b(0x1a2)](_0x25728b(0x1c6),_0x25728b(0x16d)),_0x3059d5[_0x25728b(0x1a2)](_0x25728b(0x161),_0x25728b(0x189)),_0x3059d5[_0x25728b(0x1a2)](_0x25728b(0x1ba),_0x41e716),_0x4f712f&&_0x3059d5[_0x25728b(0x1a2)](_0x25728b(0x1af),_0x4f712f);const _0x55c2bb=this[_0x25728b(0x13e)](_0x25728b(0x174)+_0x3059d5[_0x25728b(0x144)](),_0x25728b(0x150));return{'getConversations':async()=>{const _0x4346a5=_0x25728b,_0x283ffb=await _0x55c2bb[_0x4346a5(0x158)];return(await _0x283ffb[_0x4346a5(0x13f)]())[_0x4346a5(0x153)];},'abortController':_0x55c2bb[_0x25728b(0x17c)]};}[_0x3baf81(0x1bb)](_0x235bd8){const _0x44c75d=_0x3baf81,_0x3f7c7a=this[_0x44c75d(0x13e)](_0x44c75d(0x196)+_0x235bd8,_0x44c75d(0x186));return{'execute':async()=>{const _0xd9ef64=_0x44c75d;await _0x3f7c7a[_0xd9ef64(0x158)];},'abortController':_0x3f7c7a[_0x44c75d(0x17c)]};}[_0x3baf81(0x15f)](_0x53463b,_0x53a733){const _0x4265d6=_0x3baf81,_0x23ec34=this[_0x4265d6(0x13e)](_0x4265d6(0x196)+_0x53463b,_0x4265d6(0x164),_0x53a733);return{'getResult':async()=>(await _0x23ec34[_0x4265d6(0x158)],_0x53a733),'abortController':_0x23ec34[_0x4265d6(0x17c)]};}[_0x3baf81(0x1a9)](_0x50238e){const _0x354429=_0x3baf81,_0x516385=this[_0x354429(0x13e)](_0x354429(0x196)+_0x50238e,_0x354429(0x150));return{'getConversation':async()=>(await _0x516385[_0x354429(0x158)])[_0x354429(0x13f)](),'abortController':_0x516385[_0x354429(0x17c)]};}[_0x3baf81(0x1aa)](_0x519df0){const _0x232986=_0x3baf81,_0x1ae764=this[_0x232986(0x13e)](_0x232986(0x196)+_0x519df0+_0x232986(0x170),_0x232986(0x150));return{'getMessages':async()=>{const _0x33f784=_0x232986,_0x7d4c8f=await _0x1ae764[_0x33f784(0x158)];return(await _0x7d4c8f[_0x33f784(0x13f)]())[_0x33f784(0x153)];},'abortController':_0x1ae764[_0x232986(0x17c)]};}[_0x3baf81(0x168)](_0x14afab,_0x4892d5,_0x538b05){const _0x437e64=_0x3baf81,_0x1ef6e0=this[_0x437e64(0x13e)](_0x437e64(0x196)+_0x14afab+_0x437e64(0x19d),_0x437e64(0x1b0),{'url':_0x4892d5,'attributes':_0x538b05});return{'getId':async()=>(await _0x1ef6e0[_0x437e64(0x158)])[_0x437e64(0x13f)](),'abortController':_0x1ef6e0[_0x437e64(0x17c)]};}[_0x3baf81(0x1a7)](){const _0x10f280=_0x3baf81,_0x522890=this[_0x10f280(0x13e)](_0x10f280(0x1bf),_0x10f280(0x150));return{'list':async()=>await(await _0x522890[_0x10f280(0x158)])[_0x10f280(0x13f)](),'abortController':_0x522890[_0x10f280(0x17c)]};}[_0x3baf81(0x162)](_0x5d0ec2,_0x182e30){const _0x349e35=_0x3baf81,_0x3c8379=this[_0x349e35(0x13e)](_0x349e35(0x196)+_0x5d0ec2+_0x349e35(0x165)+_0x182e30,_0x349e35(0x186));return{'execute':async()=>{const _0x1169b6=_0x349e35;await _0x3c8379[_0x1169b6(0x158)];},'abortController':_0x3c8379[_0x349e35(0x17c)]};}[_0x3baf81(0x16b)](_0x574288,_0x196142){const _0x574281=_0x3baf81,_0xc82e36=this[_0x574281(0x13e)](_0x574281(0x196)+_0x574288+_0x574281(0x160)+_0x196142,_0x574281(0x186));return{'execute':async()=>{const _0x413968=_0x574281;await _0xc82e36[_0x413968(0x158)];},'abortController':_0xc82e36[_0x574281(0x17c)]};}[_0x3baf81(0x1ac)](_0x3cc8e7,_0x203d16){const _0xb21656=_0x3baf81,_0x70b7ee=this[_0xb21656(0x13e)](_0xb21656(0x196)+_0x3cc8e7+_0xb21656(0x146)+_0x203d16,_0xb21656(0x186));return{'execute':async()=>{const _0x332817=_0xb21656;await _0x70b7ee[_0x332817(0x158)];},'abortController':_0x70b7ee[_0xb21656(0x17c)]};}[_0x3baf81(0x159)]({reviewName:_0x4ec757,content:_0xd2437f,args:_0x5df69d}){const _0x41909a=_0x3baf81,_0x29504c=this[_0x41909a(0x13e)](_0x41909a(0x178)+_0x4ec757+_0x41909a(0x191),_0x41909a(0x1b0),{'content':[{'type':_0x41909a(0x1b6),'content':_0xd2437f}],'args':_0x5df69d});return{'getStream':async()=>{const _0x201553=_0x41909a,_0xe34cb5=(await _0x29504c[_0x201553(0x158)])[_0x201553(0x199)];return this[_0x201553(0x187)](_0xe34cb5);},'abortController':_0x29504c[_0x41909a(0x17c)]};}[_0x3baf81(0x1b4)]({content:_0x3a3982,prompt:_0x2968eb,model:_0x52e9d7}){const _0x534685=_0x3baf81,_0x10548b=this[_0x534685(0x13e)](_0x534685(0x1a6),_0x534685(0x1b0),{'content':[{'type':_0x534685(0x1b6),'content':_0x3a3982}],'prompt':_0x2968eb,'model':_0x52e9d7});return{'getStream':async()=>{const _0x1612d9=_0x534685,_0x39ee5f=(await _0x10548b[_0x1612d9(0x158)])[_0x1612d9(0x199)];return this[_0x1612d9(0x187)](_0x39ee5f);},'abortController':_0x10548b[_0x534685(0x17c)]};}[_0x3baf81(0x1b5)](_0x2de143,_0x14f74b,_0x309f9b){const _0x1dc7cf=_0x3baf81,_0x5c8f20=this[_0x1dc7cf(0x13e)](_0x1dc7cf(0x196)+_0x2de143+_0x1dc7cf(0x180)+_0x14f74b+_0x1dc7cf(0x13d),_0x1dc7cf(0x148),{'positiveCount':_0x309f9b[_0x1dc7cf(0x184)],'totalCount':_0x309f9b[_0x1dc7cf(0x1ab)],'modificationId':_0x309f9b[_0x1dc7cf(0x154)]});return{'execute':async()=>{const _0x13d2ed=_0x1dc7cf;await _0x5c8f20[_0x13d2ed(0x158)];},'abortController':_0x5c8f20[_0x1dc7cf(0x17c)]};}[_0x3baf81(0x1a4)](_0x24c025,_0x439a59,_0x5d0433){const _0xd3eaa8=_0x3baf81,_0x5c643f=this[_0xd3eaa8(0x13e)](_0xd3eaa8(0x1a0)+_0x24c025+_0xd3eaa8(0x18c)+_0x439a59+_0xd3eaa8(0x13d),_0xd3eaa8(0x148),{'positiveCount':_0x5d0433[_0xd3eaa8(0x184)],'totalCount':_0x5d0433[_0xd3eaa8(0x1ab)]});return{'execute':async()=>{const _0x3ce531=_0xd3eaa8;await _0x5c643f[_0x3ce531(0x158)];},'abortController':_0x5c643f[_0xd3eaa8(0x17c)]};}[_0x3baf81(0x143)](_0x1e6628,_0x11edfd){const _0x467126=_0x3baf81,_0x49febe=this[_0x467126(0x13e)](_0x467126(0x19e)+_0x1e6628+_0x467126(0x13d),_0x467126(0x148),{'positiveCount':_0x11edfd[_0x467126(0x184)],'totalCount':_0x11edfd[_0x467126(0x1ab)]});return{'execute':async()=>{const _0x5ca9fa=_0x467126;await _0x49febe[_0x5ca9fa(0x158)];},'abortController':_0x49febe[_0x467126(0x17c)]};}[_0x3baf81(0x1ad)](_0x4299ee,_0x34183b,_0x5dfbfc,_0x408b0d){const _0x15148c=_0x3baf81,_0x130acf=this[_0x15148c(0x13e)](_0x15148c(0x178)+_0x4299ee+_0x15148c(0x18c)+_0x34183b+_0x15148c(0x13d),_0x15148c(0x148),{'positiveCount':_0x5dfbfc[_0x15148c(0x184)],'totalCount':_0x5dfbfc[_0x15148c(0x1ab)],'dataId':_0x408b0d});return{'execute':async()=>{const _0x4c6f91=_0x15148c;await _0x130acf[_0x4c6f91(0x158)];},'abortController':_0x130acf[_0x15148c(0x17c)]};}[_0x3baf81(0x1b1)](_0x2b1e76,_0x34b7f1,_0x98b568){const _0x319d32=_0x3baf81,_0x575312=this[_0x319d32(0x13e)](_0x319d32(0x17d)+_0x2b1e76+_0x319d32(0x13d),_0x319d32(0x148),{'positiveCount':_0x34b7f1[_0x319d32(0x184)],'totalCount':_0x34b7f1[_0x319d32(0x1ab)],'dataId':_0x98b568});return{'execute':async()=>{const _0x37f42d=_0x319d32;await _0x575312[_0x37f42d(0x158)];},'abortController':_0x575312[_0x319d32(0x17c)]};}[_0x3baf81(0x13e)](_0x5b9a91,_0x3bba1e,_0x339164){const _0x3e963a=_0x3baf81,_0x218fac=new AbortController(),_0x4304cd=_0x339164 instanceof FormData,_0x2e8903={'Authorization':_0x3e963a(0x183)+this[_0x3e963a(0x177)]?.[_0x3e963a(0x147)]};_0x339164&&!_0x4304cd&&(_0x2e8903[_0x3e963a(0x1b2)]=_0x3e963a(0x171));const _0xc6cf0d={'method':_0x3bba1e,'headers':_0x2e8903,'signal':_0x218fac[_0x3e963a(0x176)]};return _0x339164&&(_0xc6cf0d[_0x3e963a(0x199)]=_0x4304cd?_0x339164:JSON[_0x3e963a(0x1be)](_0x339164)),{'request':fetch(''+this[_0x3e963a(0x15d)]+_0x5b9a91,_0xc6cf0d)[_0x3e963a(0x1ca)](_0x514590=>{const _0x3bb346=_0x3e963a;this[_0x3bb346(0x192)](_0x514590);})[_0x3e963a(0x1a5)](_0x32e98=>{const _0x325644=_0x3e963a;if(!_0x32e98['ok'])throw new _0x2990ef(_0x325644(0x18b),this,{'url':this[_0x325644(0x15d)],'path':_0x5b9a91,'method':_0x3bba1e,'body':_0x339164,'status':(_0x32e98||{})[_0x325644(0x163)],'statusText':(_0x32e98||{})[_0x325644(0x195)]});return _0x32e98;}),'abortController':_0x218fac};}async*[_0x3baf81(0x187)](_0x415d00){const _0x376ca8=_0x3baf81,_0x54f5f4=[],_0x31a73a=_0x415d00[_0x376ca8(0x16f)](),_0x5c85e0=_0x9804e1({'onError':_0x1b70c0=>{const _0x23e25f=_0x376ca8;this[_0x23e25f(0x192)](_0x1b70c0);},'onEvent':_0x291e52=>{const _0x9b66b7=_0x376ca8;_0x291e52[_0x9b66b7(0x17b)]=JSON[_0x9b66b7(0x15b)](_0x291e52[_0x9b66b7(0x17b)]),_0x54f5f4[_0x9b66b7(0x1b9)](_0x291e52);}});try{let _0x44ece7=!0x1;for(;!_0x44ece7;){const {done:_0x2f64ae,value:_0x548581}=await _0x31a73a[_0x376ca8(0x18a)]();_0x2f64ae&&(_0x44ece7=!0x0),_0x5c85e0[_0x376ca8(0x1bc)](this[_0x376ca8(0x140)][_0x376ca8(0x1a3)](_0x548581,{'stream':!0x0})),yield*_0x54f5f4,_0x54f5f4[_0x376ca8(0x141)]=0x0;}}catch(_0x352bda){this[_0x376ca8(0x192)](_0x352bda);}finally{_0x31a73a[_0x376ca8(0x17f)](),_0x5c85e0[_0x376ca8(0x155)]();}}[_0x3baf81(0x192)](_0x2b8ce5){const _0x20832e=_0x3baf81;if(_0x2b8ce5 instanceof _0x2990ef)throw _0x2b8ce5;if(_0x2b8ce5 instanceof Error&&_0x20832e(0x14f)===_0x2b8ce5[_0x20832e(0x1a1)])throw new _0x2990ef(_0x20832e(0x17e),this,{'originalError':_0x2b8ce5});throw new _0x2990ef(_0x20832e(0x18b),this,{'originalError':_0x2b8ce5});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3c56e6=_0x3ee3;(function(_0x40a7de,_0x11fc92){const _0x48540d=_0x3ee3,_0x4bbcf2=_0x40a7de();while(!![]){try{const _0x267847=-parseInt(_0x48540d(0x12e))/0x1*(-parseInt(_0x48540d(0x114))/0x2)+parseInt(_0x48540d(0x161))/0x3*(parseInt(_0x48540d(0x143))/0x4)+parseInt(_0x48540d(0x14e))/0x5+parseInt(_0x48540d(0x117))/0x6*(-parseInt(_0x48540d(0x107))/0x7)+parseInt(_0x48540d(0x11e))/0x8+-parseInt(_0x48540d(0x141))/0x9+-parseInt(_0x48540d(0x162))/0xa;if(_0x267847===_0x11fc92)break;else _0x4bbcf2['push'](_0x4bbcf2['shift']());}catch(_0x367431){_0x4bbcf2['push'](_0x4bbcf2['shift']());}}}(_0xf1b5,0x565c3));function _0x3ee3(_0x1c9d18,_0x1050c2){const _0xf1b502=_0xf1b5();return _0x3ee3=function(_0x3ee34c,_0x4aac3b){_0x3ee34c=_0x3ee34c-0xfc;let _0x4ea143=_0xf1b502[_0x3ee34c];return _0x4ea143;},_0x3ee3(_0x1c9d18,_0x1050c2);}import{ViewDowncastWriter as _0x2183ef}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x57a1f3,Editor as _0x44665d}from'ckeditor5/src/core.js';import{uid as _0x55f836}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x45c9b5}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x3c56e6(0x116);function _0xf1b5(){const _0x38c00c=['for','version','3452136mDFDwq','start','isOfficialPlugin','convertAiChatSelectionMarker','createUIElement','ck-ai-assistant-ui_theme','_displayedFakeSelectionLocked','getRoot','data','removeMarker','processor','getSelectionText','conversion','ai-selection:','_getMarkersInDocumentOrder','isOpening','16fHrXun','join','addMarker','context','markerToHighlight',':start></','trim','random','getWalker','ready','getSelection','isBefore','emptyElement','model','schema','showFakeVisualSelection','isAtEnd','editingDowncast','add','2705040wGQLhq','sessionId','4wgmskf','editors','_integrateEditor','from','$textProxy','_nextDataId','substring','setAttribute','getMarkersGroup','sort','containerElement','1935435DDPHvn','getChildren','data-id','createRange','markerToElement','push',':end></','RealTimeCollaborationClient','fromCharCode','ck-fake-ai-selection','view','length',':end>','toData','_sessionId','removeAllRanges','selection','_setDataIdsOnChildren','getLastMatchingPosition','1516917MMsWJT','4434980ScFzPz','getDocumentData','editing','end','isAfter','get','change','element','_displayedFakeSelectionId','afterInit','pluginName','name',':start>','getStart','651tWbDKc','getSelectedContent','markerName','createRangeIn','modelToViewWithIds','dataDowncast','plugins','hideFakeVisualSelection','has','indexOf','document','markers','AIEditing','25796QjbyqJ','isContent','ai-selection','27924LPFmWI','isPremiumPlugin','floor','listenTo','toView'];_0xf1b5=function(){return _0x38c00c;};return _0xf1b5();}export class AIEditing extends _0x57a1f3{[_0x3c56e6(0x101)]=null;[_0x3c56e6(0x124)]=!0x1;[_0x3c56e6(0x15c)];static get[_0x3c56e6(0x103)](){const _0x946acd=_0x3c56e6;return _0x946acd(0x113);}static get[_0x3c56e6(0x120)](){return!0x0;}static get[_0x3c56e6(0x118)](){return!0x0;}get[_0x3c56e6(0x142)](){const _0x4fb89a=_0x3c56e6;if(!this[_0x4fb89a(0x15c)]){const _0x4cb2a7=_0x45c9b5(this[_0x4fb89a(0x131)]),_0x416cfd=_0x4cb2a7[_0x4fb89a(0x10d)][_0x4fb89a(0x10f)](_0x4fb89a(0x155))&&_0x4cb2a7[_0x4fb89a(0x10d)][_0x4fb89a(0xfe)](_0x4fb89a(0x155))[_0x4fb89a(0x142)];this[_0x4fb89a(0x15c)]=_0x416cfd||_0x55f836();}return this[_0x4fb89a(0x15c)];}[_0x3c56e6(0x163)](){const _0x1d8ebb=_0x3c56e6,_0x3044cb=_0x45c9b5(this[_0x1d8ebb(0x131)]),_0x4a5bbe=_0x3044cb[_0x1d8ebb(0x13b)],_0x3d1bdf=_0x3044cb[_0x1d8ebb(0x126)][_0x1d8ebb(0x11b)](_0x4a5bbe[_0x1d8ebb(0x111)][_0x1d8ebb(0x125)](),{'convertAiChatSelectionMarker':!0x0}),_0x5a22db=new _0x2183ef(_0x3044cb[_0x1d8ebb(0x164)][_0x1d8ebb(0x158)][_0x1d8ebb(0x111)]);this[_0x1d8ebb(0x15f)](_0x3d1bdf,_0x5a22db);let _0x53cacc=_0x3044cb[_0x1d8ebb(0x126)][_0x1d8ebb(0x128)][_0x1d8ebb(0x15b)](_0x3d1bdf);const _0x624c07=this[_0x1d8ebb(0x12c)](),_0x5b05dd=[];for(const _0x5e3788 of _0x624c07){const _0x15ad2d='<'+_0x5e3788[_0x1d8ebb(0x104)]+_0x1d8ebb(0x133)+_0x5e3788[_0x1d8ebb(0x104)]+_0x1d8ebb(0x105),_0x1b21ab=_0x53cacc[_0x1d8ebb(0x110)](_0x15ad2d);_0x53cacc=_0x53cacc[_0x1d8ebb(0x149)](0x0,_0x1b21ab)+_0x53cacc[_0x1d8ebb(0x149)](_0x1b21ab+_0x15ad2d[_0x1d8ebb(0x159)]);const _0x2057ba='<'+_0x5e3788[_0x1d8ebb(0x104)]+_0x1d8ebb(0x154)+_0x5e3788[_0x1d8ebb(0x104)]+_0x1d8ebb(0x15a),_0x59c592=_0x53cacc[_0x1d8ebb(0x110)](_0x2057ba);_0x53cacc=_0x53cacc[_0x1d8ebb(0x149)](0x0,_0x59c592)+_0x53cacc[_0x1d8ebb(0x149)](_0x59c592+_0x2057ba[_0x1d8ebb(0x159)]),_0x5b05dd[_0x1d8ebb(0x153)]({'markerName':_0x5e3788[_0x1d8ebb(0x104)],'start':_0x1b21ab,'end':_0x59c592,'htmlFragment':_0x53cacc[_0x1d8ebb(0x149)](_0x1b21ab,_0x59c592)});}return{'content':_0x53cacc,'version':_0x3044cb[_0x1d8ebb(0x13b)][_0x1d8ebb(0x111)][_0x1d8ebb(0x11d)],'sessionId':this[_0x1d8ebb(0x142)],'selections':_0x5b05dd};}async[_0x3c56e6(0x102)](){const _0x2de3bf=_0x3c56e6;this[_0x2de3bf(0x131)]instanceof _0x44665d?this[_0x2de3bf(0x145)](this[_0x2de3bf(0x131)]):this[_0x2de3bf(0x11a)](this[_0x2de3bf(0x131)][_0x2de3bf(0x144)],_0x2de3bf(0x140),(_0x10e342,_0x7cb14c)=>{const _0x35cfa5=_0x2de3bf;_0x7cb14c['on'](_0x35cfa5(0x137),()=>{const _0x35a017=_0x35cfa5;this[_0x35a017(0x145)](_0x7cb14c);});});}[_0x3c56e6(0x145)](_0x2f3e37){const _0xb6abbb=_0x3c56e6;_0x2f3e37[_0xb6abbb(0x12a)][_0xb6abbb(0x11c)](_0xb6abbb(0x13f))[_0xb6abbb(0x132)]({'model':_0xb6abbb(0x116),'view':{'classes':[_0xb6abbb(0x157),_0xb6abbb(0x123)],'priority':0xc}}),_0x2f3e37[_0xb6abbb(0x12a)][_0xb6abbb(0x11c)](_0xb6abbb(0x10c))[_0xb6abbb(0x152)]({'model':_0xb6abbb(0x116),'view':(_0x20b463,{writer:_0x4aacd4,options:_0x177b61})=>_0x177b61[_0xb6abbb(0x121)]?_0x4aacd4[_0xb6abbb(0x122)](_0x20b463[_0xb6abbb(0x109)]+':'+(_0x20b463[_0xb6abbb(0x12d)]?_0xb6abbb(0x11f):_0xb6abbb(0xfc))):null});}[_0x3c56e6(0x13d)](_0x1ee0ab,_0x41975b,_0x49c3bd=!0x1,_0x171df9=!0x1){const _0x4e6afa=_0x3c56e6;if(this[_0x4e6afa(0x124)]&&!_0x171df9)return!0x1;const _0x1a951c=_0x45c9b5(this[_0x4e6afa(0x131)])[_0x4e6afa(0x13b)];return _0x1a951c[_0x4e6afa(0xff)](_0x1f3763=>{const _0x17df64=_0x4e6afa;this[_0x17df64(0x101)]&&this[_0x17df64(0x10e)](this[_0x17df64(0x101)]),this[_0x17df64(0x101)]=_0x41975b,this[_0x17df64(0x124)]=_0x49c3bd;let _0x249cf8=0x0;for(let _0x5147b8 of _0x1ee0ab){const _0x1700f2=_0x17df64(0x12b)+_0x249cf8;if(_0x5147b8[_0x17df64(0x11f)][_0x17df64(0x13e)]){const _0x99756e=_0x5147b8[_0x17df64(0x11f)][_0x17df64(0x160)](({item:_0x148be1})=>!_0x1a951c[_0x17df64(0x13c)][_0x17df64(0x115)](_0x148be1),{'boundaries':_0x5147b8});_0x5147b8=_0x1f3763[_0x17df64(0x151)](_0x99756e,_0x5147b8[_0x17df64(0xfc)]);}_0x1f3763[_0x17df64(0x130)](_0x1700f2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5147b8}),_0x249cf8++;}}),window[_0x4e6afa(0x138)]()?.[_0x4e6afa(0x15d)](),!0x0;}[_0x3c56e6(0x10e)](_0x2c491b){const _0x43cd27=_0x3c56e6;if(this[_0x43cd27(0x101)]!=_0x2c491b)return!0x1;this[_0x43cd27(0x101)]=null,this[_0x43cd27(0x124)]=!0x1;const _0x229ab7=_0x45c9b5(this[_0x43cd27(0x131)]),_0x41b253=_0x229ab7[_0x43cd27(0x13b)][_0x43cd27(0x112)][_0x43cd27(0x14b)](_0x43cd27(0x116));return _0x229ab7[_0x43cd27(0x13b)][_0x43cd27(0xff)](_0xf35abb=>{const _0xe84129=_0x43cd27;for(const _0x32292b of _0x41b253)_0xf35abb[_0xe84129(0x127)](_0x32292b);}),!0x0;}[_0x3c56e6(0x10b)](_0xd3782f){const _0xdfa69=_0x3c56e6,_0x39d20e=_0x45c9b5(this[_0xdfa69(0x131)]),_0x22ef7e=_0x39d20e[_0xdfa69(0x126)][_0xdfa69(0x11b)](_0xd3782f),_0xc8e5bf=new _0x2183ef(_0x39d20e[_0xdfa69(0x164)][_0xdfa69(0x158)][_0xdfa69(0x111)]);return this[_0xdfa69(0x15f)](_0x22ef7e,_0xc8e5bf),_0x22ef7e;}[_0x3c56e6(0x15f)](_0x390578,_0x5d2f3a){const _0x2ebdf8=_0x3c56e6;let _0xc70d5b=!0x1;const _0x51bd0e=new Set();for(const _0xf3c28b of _0x390578[_0x2ebdf8(0x14f)]()){const _0x33a1cd=_0xf3c28b['is'](_0x2ebdf8(0x13a))||_0xf3c28b['is'](_0x2ebdf8(0x14d));if(!_0xf3c28b['is'](_0x2ebdf8(0x100)))continue;(this[_0x2ebdf8(0x15f)](_0xf3c28b,_0x5d2f3a)||_0x33a1cd)&&(_0x5d2f3a[_0x2ebdf8(0x14a)](_0x2ebdf8(0x150),this[_0x2ebdf8(0x148)](_0x51bd0e),_0xf3c28b),_0xc70d5b=!0x0);}return _0xc70d5b;}[_0x3c56e6(0x148)](_0x305864){const _0x59f181=_0x3c56e6;let _0x519d9c;do{_0x519d9c='';for(let _0x2e4529=0x0;_0x2e4529<0x4;_0x2e4529++)_0x519d9c+=String[_0x59f181(0x156)](0x61+Math[_0x59f181(0x119)](0x1a*Math[_0x59f181(0x135)]()));}while(_0x305864[_0x59f181(0x10f)](_0x519d9c));return _0x305864[_0x59f181(0x140)](_0x519d9c),_0x519d9c;}[_0x3c56e6(0x129)](){const _0xfd91d7=_0x3c56e6,{model:_0x3a7d7f}=_0x45c9b5(this[_0xfd91d7(0x131)]),_0x140066=_0x3a7d7f[_0xfd91d7(0x111)][_0xfd91d7(0x15e)],_0x59d0ae=_0x3a7d7f[_0xfd91d7(0x108)](_0x140066),_0xa0f6a9=[],_0x224307=_0x3a7d7f[_0xfd91d7(0x10a)](_0x59d0ae)[_0xfd91d7(0x136)]();for(const {item:_0x59ee61}of _0x224307)_0x59ee61['is'](_0xfd91d7(0x147))?_0xa0f6a9[_0xfd91d7(0x153)](_0x59ee61[_0xfd91d7(0x126)]):_0x59ee61['is'](_0xfd91d7(0x100))&&_0xa0f6a9[_0xfd91d7(0x159)]>0x0&&'\x20'!==_0xa0f6a9[_0xa0f6a9[_0xfd91d7(0x159)]-0x1]&&_0xa0f6a9[_0xfd91d7(0x153)]('\x20');return'\x22'+_0xa0f6a9[_0xfd91d7(0x12f)]('')[_0xfd91d7(0x134)]()+'\x22';}[_0x3c56e6(0x12c)](){const _0x35282f=_0x3c56e6,_0x5f378b=_0x45c9b5(this[_0x35282f(0x131)])[_0x35282f(0x13b)];return Array[_0x35282f(0x146)](_0x5f378b[_0x35282f(0x112)][_0x35282f(0x14b)](_0x35282f(0x116)))[_0x35282f(0x14c)]((_0x2d5e7c,_0x2cadce)=>_0x2d5e7c[_0x35282f(0x106)]()[_0x35282f(0x139)](_0x2cadce[_0x35282f(0x106)]())?-0x1:_0x2d5e7c[_0x35282f(0x106)]()[_0x35282f(0xfd)](_0x2cadce[_0x35282f(0x106)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x32db(_0x13750e,_0x28dd6c){const _0x3061a3=_0x3061();return _0x32db=function(_0x32dbb8,_0x21c318){_0x32dbb8=_0x32dbb8-0x92;let _0x4b7558=_0x3061a3[_0x32dbb8];return _0x4b7558;},_0x32db(_0x13750e,_0x28dd6c);}function _0x3061(){const _0x1ffcd0=['3790878BwSujg','getCapabilitiesConfig','capabilitiesUpdated','613505eLnSTa','isWebSearchEnabled','48726LuCxJs','reasoning','setReasoning','727058mkiUAk','4jajDYy','16728riUGcp','isReasoningEnabled','132012aaPNNs','setWebSearch','_isReasoningEnabled','reset','4LfSFhB','toggleWebSearch','4494270YFXHcd','webSearch','_isWebSearchEnabled','44gpOSHh','2779LEhdPe','toggleReasoning','init','getCapabilitiesRequestData','fire'];_0x3061=function(){return _0x1ffcd0;};return _0x3061();}const _0x5f2bb9=_0x32db;(function(_0x3db437,_0x2c40ea){const _0x743856=_0x32db,_0x12495a=_0x3db437();while(!![]){try{const _0xc2539d=-parseInt(_0x743856(0xa3))/0x1*(parseInt(_0x743856(0xab))/0x2)+-parseInt(_0x743856(0x9b))/0x3*(-parseInt(_0x743856(0xa4))/0x4)+parseInt(_0x743856(0x9e))/0x5+parseInt(_0x743856(0xa0))/0x6+parseInt(_0x743856(0x96))/0x7*(-parseInt(_0x743856(0xa5))/0x8)+parseInt(_0x743856(0xa7))/0x9+parseInt(_0x743856(0x92))/0xa*(parseInt(_0x743856(0x95))/0xb);if(_0xc2539d===_0x2c40ea)break;else _0x12495a['push'](_0x12495a['shift']());}catch(_0x1dd50c){_0x12495a['push'](_0x12495a['shift']());}}}(_0x3061,0xe13d5));import{EmitterMixin as _0x37c98e}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x5f2bb9(0x9d)];export class AICapabilities extends _0x37c98e(){[_0x5f2bb9(0x94)];[_0x5f2bb9(0xa9)];constructor(){const _0x42a72e=_0x5f2bb9;super(),this[_0x42a72e(0x94)]=!0x1,this[_0x42a72e(0xa9)]=!0x1;}[_0x5f2bb9(0x98)](){const _0x46fe48=_0x5f2bb9;this[_0x46fe48(0xaa)]();}[_0x5f2bb9(0xaa)](){const _0x1b7158=_0x5f2bb9;this[_0x1b7158(0xa8)](!0x1),this[_0x1b7158(0xa2)](!0x1);}[_0x5f2bb9(0x9c)](){const _0x56c2df=_0x5f2bb9;return{'isWebSearchEnabled':this[_0x56c2df(0x94)],'isReasoningEnabled':this[_0x56c2df(0xa9)]};}static[_0x5f2bb9(0x99)](_0x32e425){const _0x32aa20=_0x5f2bb9,_0x1a0472={};return _0x32e425&&_0x32e425[_0x32aa20(0x9f)]&&(_0x1a0472[_0x32aa20(0x93)]={}),_0x32e425&&_0x32e425[_0x32aa20(0xa6)]&&(_0x1a0472[_0x32aa20(0xa1)]={}),_0x1a0472;}[_0x5f2bb9(0xac)](){const _0xe9febb=_0x5f2bb9;this[_0xe9febb(0xa8)](!this[_0xe9febb(0x94)]);}[_0x5f2bb9(0x97)](){const _0x5c7d66=_0x5f2bb9;this[_0x5c7d66(0xa2)](!this[_0x5c7d66(0xa9)]);}[_0x5f2bb9(0xa8)](_0xf96487){const _0x33f059=_0x5f2bb9;_0xf96487!==this[_0x33f059(0x94)]&&(this[_0x33f059(0x94)]=_0xf96487,this[_0x33f059(0x9a)](_0x33f059(0x9d),this[_0x33f059(0x9c)]()));}[_0x5f2bb9(0xa2)](_0x42d657){const _0x3281e4=_0x5f2bb9;_0x42d657!==this[_0x3281e4(0xa9)]&&(this[_0x3281e4(0xa9)]=_0x42d657,this[_0x3281e4(0x9a)](_0x3281e4(0x9d),this[_0x3281e4(0x9c)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x317a(_0x427c28,_0x50bbb6){var _0x537998=_0x5379();return _0x317a=function(_0x317a35,_0x389f45){_0x317a35=_0x317a35-0x170;var _0x4018c5=_0x537998[_0x317a35];return _0x4018c5;},_0x317a(_0x427c28,_0x50bbb6);}(function(_0x8e2fd8,_0xab515b){var _0x51d1c2=_0x317a,_0x253188=_0x8e2fd8();while(!![]){try{var _0x3427f5=-parseInt(_0x51d1c2(0x184))/0x1+parseInt(_0x51d1c2(0x17d))/0x2*(-parseInt(_0x51d1c2(0x186))/0x3)+parseInt(_0x51d1c2(0x179))/0x4*(parseInt(_0x51d1c2(0x178))/0x5)+parseInt(_0x51d1c2(0x172))/0x6+parseInt(_0x51d1c2(0x180))/0x7*(-parseInt(_0x51d1c2(0x177))/0x8)+-parseInt(_0x51d1c2(0x173))/0x9*(parseInt(_0x51d1c2(0x183))/0xa)+parseInt(_0x51d1c2(0x17a))/0xb;if(_0x3427f5===_0xab515b)break;else _0x253188['push'](_0x253188['shift']());}catch(_0x190c4e){_0x253188['push'](_0x253188['shift']());}}}(_0x5379,0x67654));export var AIContextItemType;function _0x5379(){var _0x4400d1=['3614896ihuzdV','5kaqnlt','2557524FPqxCT','8565238imtpcS','web-resource','SELECTION','2wpAzaQ','TEXT','document','7LCGNbd','MARKDOWN','text','10ZUebzs','383547MmDHTS','html','2366862hbAHUK','FILE','HTML','DOCUMENT','selection','4314966iaBfCz','803961vOrbGp','markdown','file','URL'];_0x5379=function(){return _0x4400d1;};return _0x5379();}!function(_0x39e790){var _0x4cd266=_0x317a;_0x39e790[_0x4cd266(0x187)]=_0x4cd266(0x175),_0x39e790[_0x4cd266(0x170)]=_0x4cd266(0x17f),_0x39e790[_0x4cd266(0x176)]=_0x4cd266(0x17b),_0x39e790[_0x4cd266(0x17e)]=_0x4cd266(0x182),_0x39e790[_0x4cd266(0x17c)]=_0x4cd266(0x171);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x521773){var _0x23a60d=_0x317a;_0x521773[_0x23a60d(0x17e)]=_0x23a60d(0x182),_0x521773[_0x23a60d(0x181)]=_0x23a60d(0x174),_0x521773[_0x23a60d(0x188)]=_0x23a60d(0x185);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|