@ckeditor/ckeditor5-ai 47.4.0-alpha.4 → 47.4.0-alpha.6
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.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.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/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/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.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/aireviewmodegeneralerrorview.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/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf27d02=_0x594b;(function(_0x1c013d,_0x3825c2){const _0x1b8b17=_0x594b,_0x3cc4f7=_0x1c013d();while(!![]){try{const _0x30147f=-parseInt(_0x1b8b17(0xdd))/0x1+-parseInt(_0x1b8b17(0xef))/0x2*(parseInt(_0x1b8b17(0xc9))/0x3)+-parseInt(_0x1b8b17(0xe3))/0x4+parseInt(_0x1b8b17(0xe6))/0x5+parseInt(_0x1b8b17(0xcb))/0x6+-parseInt(_0x1b8b17(0xd3))/0x7*(parseInt(_0x1b8b17(0xd7))/0x8)+-parseInt(_0x1b8b17(0xda))/0x9*(-parseInt(_0x1b8b17(0xd8))/0xa);if(_0x30147f===_0x3825c2)break;else _0x3cc4f7['push'](_0x3cc4f7['shift']());}catch(_0x3bc100){_0x3cc4f7['push'](_0x3cc4f7['shift']());}}}(_0x682c,0xb0caf));import{EmitterMixin as _0x5f01f7}from'ckeditor5/src/utils.js';function _0x594b(_0x529097,_0x5889ad){const _0x682cea=_0x682c();return _0x594b=function(_0x594b48,_0x38cbf3){_0x594b48=_0x594b48-0xc3;let _0x1497af=_0x682cea[_0x594b48];return _0x1497af;},_0x594b(_0x529097,_0x5889ad);}function _0x682c(){const _0x38b3a6=['9ZYxzEr','group','7546560ehMOzJ','updateConversation','pinned','getFullYear','execute','removeItem','itemUpdated','getTime','7jmVVpd','map','error','updatePinned','6247072kUfzFU','30GTDZmk','loadItems','2805732tzOmds','createdAt','getConversations','816760PvFahr','findIndex','connector','getItem','deleteConversation','getResult','228928ofWOtw','updateItemTitle','itemRemoved','2348460cxZcvh','items','updateItemPinned','fire','updateTitle','itemsLoaded','filter','find','push','189118CADnkO','fetchConversations','getMonth','from','init','getDate','splice','addItem','getItems'];_0x682c=function(){return _0x38b3a6;};return _0x682c();}import{AIChatHistoryItem as _0x1dc3d0}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x5f01f7(){[_0xf27d02(0xe7)]=[];[_0xf27d02(0xdf)];[_0xf27d02(0xca)];constructor({connector:_0x4f2d55,group:_0x1a2798}){const _0x5082bd=_0xf27d02;super(),this[_0x5082bd(0xdf)]=_0x4f2d55,this[_0x5082bd(0xca)]=_0x1a2798;}async[_0xf27d02(0xc4)](){const _0x3343b5=_0xf27d02;try{const _0x387a87=this[_0x3343b5(0xdf)][_0x3343b5(0xf0)](this[_0x3343b5(0xca)]),_0x2558e8=await _0x387a87[_0x3343b5(0xdc)]();this[_0x3343b5(0xd9)](_0x2558e8);}catch(_0xd7b00d){this[_0x3343b5(0xe9)](_0x3343b5(0xd5),{'error':_0xd7b00d,'operation':_0x3343b5(0xc4)});}}[_0xf27d02(0xc7)](_0x293481){const _0x318325=_0xf27d02;this[_0x318325(0xe7)][_0x318325(0xee)](_0x293481);}async[_0xf27d02(0xd0)](_0x5cc629){const _0x41c48f=_0xf27d02,_0xd07d87=this[_0x41c48f(0xe7)][_0x41c48f(0xde)](_0x5a4fb3=>_0x5a4fb3['id']===_0x5cc629);if(-0x1===_0xd07d87)return!0x1;try{return await this[_0x41c48f(0xdf)][_0x41c48f(0xe1)](_0x5cc629)[_0x41c48f(0xcf)](),this[_0x41c48f(0xe7)][_0x41c48f(0xc6)](_0xd07d87,0x1),this[_0x41c48f(0xe9)](_0x41c48f(0xe5),{'itemId':_0x5cc629}),!0x0;}catch(_0x351efc){return this[_0x41c48f(0xe9)](_0x41c48f(0xd5),{'error':_0x351efc,'operation':_0x41c48f(0xd0),'itemId':_0x5cc629}),!0x1;}}[_0xf27d02(0xe0)](_0x3c0e26){const _0x30f25d=_0xf27d02;return this[_0x30f25d(0xe7)][_0x30f25d(0xed)](_0xbb3a2d=>_0xbb3a2d['id']===_0x3c0e26);}async[_0xf27d02(0xe4)](_0x1e7465,_0x34b4c6){const _0x4af4fc=_0xf27d02,_0x43a827=this[_0x4af4fc(0xe0)](_0x1e7465);if(!_0x43a827)return!0x1;try{return await this[_0x4af4fc(0xdf)][_0x4af4fc(0xcc)](_0x1e7465,{'title':_0x34b4c6})[_0x4af4fc(0xe2)](),_0x43a827[_0x4af4fc(0xea)](_0x34b4c6),this[_0x4af4fc(0xe9)](_0x4af4fc(0xd1),{'itemId':_0x1e7465,'updates':{'title':_0x34b4c6}}),!0x0;}catch(_0x163604){return this[_0x4af4fc(0xe9)](_0x4af4fc(0xd5),{'error':_0x163604,'operation':_0x4af4fc(0xe4),'itemId':_0x1e7465}),!0x1;}}async[_0xf27d02(0xe8)](_0x5a65be,_0x11c40d){const _0x36d7ad=_0xf27d02,_0x1879dd=this[_0x36d7ad(0xe0)](_0x5a65be);if(!_0x1879dd)return!0x1;try{return await this[_0x36d7ad(0xdf)][_0x36d7ad(0xcc)](_0x5a65be,{'pinned':_0x11c40d})[_0x36d7ad(0xe2)](),_0x1879dd[_0x36d7ad(0xd6)](_0x11c40d),this[_0x36d7ad(0xe9)](_0x36d7ad(0xd1),{'itemId':_0x5a65be,'updates':{'pinned':_0x11c40d}}),!0x0;}catch(_0x364882){return this[_0x36d7ad(0xe9)](_0x36d7ad(0xd5),{'error':_0x364882,'operation':_0x36d7ad(0xe8),'itemId':_0x5a65be}),!0x1;}}[_0xf27d02(0xd9)](_0x5f061d){const _0x507825=_0xf27d02;try{this[_0x507825(0xe7)]=[],_0x5f061d[_0x507825(0xd4)](_0x53d742=>{const _0x46d637=_0x507825;this[_0x46d637(0xc7)](new _0x1dc3d0(_0x53d742));}),this[_0x507825(0xe9)](_0x507825(0xeb),{'items':[...this[_0x507825(0xe7)]]});}catch(_0x475f5d){this[_0x507825(0xe9)](_0x507825(0xd5),{'error':_0x475f5d,'operation':_0x507825(0xd9)});}}[_0xf27d02(0xc8)](_0x5ad98b={}){const _0x475c6b=_0xf27d02,_0xb82c00=void 0x0!==_0x5ad98b[_0x475c6b(0xcd)]&&_0x5ad98b[_0x475c6b(0xcd)],_0xfb0d92=_0x5ad98b[_0x475c6b(0xc3)]?new Date(_0x5ad98b[_0x475c6b(0xc3)][_0x475c6b(0xce)](),_0x5ad98b[_0x475c6b(0xc3)][_0x475c6b(0xf1)](),_0x5ad98b[_0x475c6b(0xc3)][_0x475c6b(0xc5)]()):null,_0x54ad66=_0x5ad98b['to']?new Date(_0x5ad98b['to'][_0x475c6b(0xce)](),_0x5ad98b['to'][_0x475c6b(0xf1)](),_0x5ad98b['to'][_0x475c6b(0xc5)]()):null;return this[_0x475c6b(0xe7)][_0x475c6b(0xec)](_0x1b28be=>{const _0x49f574=_0x475c6b;if(_0x1b28be[_0x49f574(0xcd)]!==_0xb82c00)return!0x1;if(_0x54ad66){const _0xbb9cbf=new Date(_0x1b28be[_0x49f574(0xdb)][_0x49f574(0xce)](),_0x1b28be[_0x49f574(0xdb)][_0x49f574(0xf1)](),_0x1b28be[_0x49f574(0xdb)][_0x49f574(0xc5)]());return _0xfb0d92?_0xfb0d92[_0x49f574(0xd2)]()===_0x54ad66[_0x49f574(0xd2)]()?_0xbb9cbf[_0x49f574(0xd2)]()===_0xfb0d92[_0x49f574(0xd2)]():_0xbb9cbf<_0x54ad66&&_0xbb9cbf>=_0xfb0d92:_0xbb9cbf<_0x54ad66;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4cbade=_0x54da;(function(_0x33f454,_0xd09653){var _0x4eb414=_0x54da,_0x1aa73b=_0x33f454();while(!![]){try{var _0x3c0049=parseInt(_0x4eb414(0x1a0))/0x1+-parseInt(_0x4eb414(0x1a9))/0x2+-parseInt(_0x4eb414(0x19f))/0x3*(parseInt(_0x4eb414(0x19c))/0x4)+parseInt(_0x4eb414(0x1a6))/0x5+parseInt(_0x4eb414(0x1a1))/0x6*(parseInt(_0x4eb414(0x1a7))/0x7)+parseInt(_0x4eb414(0x19e))/0x8*(parseInt(_0x4eb414(0x19b))/0x9)+-parseInt(_0x4eb414(0x1a2))/0xa;if(_0x3c0049===_0xd09653)break;else _0x1aa73b['push'](_0x1aa73b['shift']());}catch(_0x296a9b){_0x1aa73b['push'](_0x1aa73b['shift']());}}}(_0x2f38,0x84a5d));function _0x54da(_0x48403f,_0x25ae09){var _0x2f381a=_0x2f38();return _0x54da=function(_0x54dafd,_0x49f995){_0x54dafd=_0x54dafd-0x19b;var _0x1dd403=_0x2f381a[_0x54dafd];return _0x1dd403;},_0x54da(_0x48403f,_0x25ae09);}import{ObservableMixin as _0x517187}from'ckeditor5/src/utils.js';import{escape as _0x1b3034}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x517187(){['id'];[_0x4cbade(0x1a3)];constructor({id:_0x1d63ad,title:_0x3d2b83,createdAt:_0xe5c846,updatedAt:_0x167e1d,pinned:_0xa4b4cd}){var _0x356679=_0x4cbade;super(),this['id']=_0x1d63ad,this[_0x356679(0x1a3)]=new Date(_0xe5c846),this[_0x356679(0x1a5)](_0x356679(0x1a8),_0x3d2b83),this[_0x356679(0x1a5)](_0x356679(0x1ab),_0x167e1d?new Date(_0x167e1d):null),this[_0x356679(0x1a5)](_0x356679(0x1a4),_0xa4b4cd||!0x1);}[_0x4cbade(0x1aa)](_0x1b3ce1){var _0x1d2c05=_0x4cbade;this[_0x1d2c05(0x1a5)](_0x1d2c05(0x1a8),_0x1b3034(_0x1b3ce1)),this[_0x1d2c05(0x1ab)]=new Date();}[_0x4cbade(0x19d)](_0x409c99){var _0x2cc016=_0x4cbade;this[_0x2cc016(0x1a5)](_0x2cc016(0x1a4),_0x409c99),this[_0x2cc016(0x1ab)]=new Date();}}function _0x2f38(){var _0xcf1e12=['21RomgGb','title','704818SkGdhh','updateTitle','updatedAt','1521990qiXiLl','60404nvzbEj','updatePinned','8QWDAXh','57DNSIcz','411264wYoAkf','1028028PjpoaG','1643710uKmkpY','createdAt','pinned','set','1263180Dvtobg'];_0x2f38=function(){return _0xcf1e12;};return _0x2f38();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
function _0x58da(){const _0x5a5865=['change:isEdit','AI_CHAT_HISTORY_EDIT_NAME','span','buttonView','createCollection','_createAcceptEditButtonView','setTemplate','items','1382976QxXPXW','ck-ai-chat-history__item-date','ck-ai-chat-history__item-check-container','bindTemplate','_createCheckView','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','pinned','tiny','_titleView','128196qwycjI','_createPinButtonView','listitem','match','panelPosition','div','setConversationPinned','_createMenuDropdownView','edit:cancel','Enter','children','click','isOn','ck-hidden','AI_CHAT_HISTORY_LOADING_RENAMING','2072056IRSyYP','ck-confirm-view-submit','6SIEFeT','clear','ck-ai-chat-history__item-check','mainContent','_createEditInputView','removeConversation','showConfirm','extendTemplate','AI_CHAT_HISTORY_PIN_BUTTON','AI_CHAT_HISTORY_CANCEL','value','set','327736yBDtAa','updateTitle','text','isMatching','44073HzNHTL','string','bind','44746GOTkbJ','ck-ai-chat-history__item--active','ck-confirm-view-cancel','execute','focus','label','ck-ai-chat-history__item-title','add','fire','_createSpinnerView','ck-ai-chat-history__item-content','panelView','AI_CHAT_HISTORY_REMOVE_CONFIRM','AI_CHAT_HISTORY_LOADING_PINNING','loadingState','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_LOADING_UNPINNING','updateLoadingState','addMany','ck-ai-chat-history__item','ck-ai-loader__text','LOADING_LABELS','7NHgovd','AI_CHAT_HISTORY_REMOVE','_createCancelEditButtonView','key','ck-ai-chat-history__item--edit','highlightText','160RwYlrm','isEdit','AI_CHAT_HISTORY_ACCEPT','actions','ck-ai-chat-history__item-actions','ck-ai-chat-history__item-main-content','withText','ck-ai-loader','element','ck-ai-chat-history__item-row','_commitEditInputValue','editConversationTitle','locale','173120rqvUUu','isVisible','selectConversation','then'];_0x58da=function(){return _0x5a5865;};return _0x58da();}const _0x73d3fe=_0x4df9;function _0x4df9(_0x59a8d6,_0x3277a5){const _0x58daa6=_0x58da();return _0x4df9=function(_0x4df969,_0x49528c){_0x4df969=_0x4df969-0x181;let _0x5a5d07=_0x58daa6[_0x4df969];return _0x5a5d07;},_0x4df9(_0x59a8d6,_0x3277a5);}(function(_0x411eeb,_0x45987b){const _0x93078=_0x4df9,_0x2080f3=_0x411eeb();while(!![]){try{const _0x571791=parseInt(_0x93078(0x196))/0x1*(parseInt(_0x93078(0x183))/0x2)+parseInt(_0x93078(0x1d4))/0x3+parseInt(_0x93078(0x18f))/0x4+parseInt(_0x93078(0x1bf))/0x5+parseInt(_0x93078(0x1cb))/0x6+parseInt(_0x93078(0x1ac))/0x7*(-parseInt(_0x93078(0x181))/0x8)+parseInt(_0x93078(0x193))/0x9*(-parseInt(_0x93078(0x1b2))/0xa);if(_0x571791===_0x45987b)break;else _0x2080f3['push'](_0x2080f3['shift']());}catch(_0x3de810){_0x2080f3['push'](_0x2080f3['shift']());}}}(_0x58da,0x2d929));import{ListItemView as _0x34376a,HighlightedTextView as _0xd4cd07,ButtonView as _0x5198b5,ListView as _0x55f76a,IconView as _0x2e0271,createDropdown as _0x29f4b9,InputTextView as _0x37e2d3}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x98f663,IconPin as _0x1787fd,IconCheck as _0x200f7a,IconCancel as _0x10f9d9}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x5db3f4,ConfirmMixin as _0x254a39}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x5ce1aa}from'es-toolkit/compat';import{AISpinnerView as _0x2b01a4}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x52c6c2}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x254a39(_0x34376a){['id'];static [_0x73d3fe(0x1ab)]={'remove':_0x73d3fe(0x1a5),'rename':_0x73d3fe(0x1e2),'pin':_0x73d3fe(0x1a3),'unpin':_0x73d3fe(0x1a6)};[_0x73d3fe(0x1b5)];[_0x73d3fe(0x186)];[_0x73d3fe(0x1d3)];constructor(_0x1ec2cc,_0x5390fc){const _0x567fcc=_0x73d3fe;super(_0x1ec2cc);const _0x5b6477=this[_0x567fcc(0x1ce)];this[_0x567fcc(0x18e)](_0x567fcc(0x1b3),!0x1),this[_0x567fcc(0x18e)](_0x567fcc(0x1c0),!0x0),this[_0x567fcc(0x18e)](_0x567fcc(0x1d1),!!_0x5390fc[_0x567fcc(0x1d1)]),this[_0x567fcc(0x18e)](_0x567fcc(0x1a4),null),this['id']=_0x5390fc['id'];const {title:_0x449639,createdAt:_0x37ea2c,active:_0x554a38=!0x1}=_0x5390fc;this[_0x567fcc(0x1d3)]=new _0xd4cd07(),this[_0x567fcc(0x1d3)][_0x567fcc(0x191)]=_0x449639,this[_0x567fcc(0x1d3)][_0x567fcc(0x18a)]({'attributes':{'class':[_0x567fcc(0x19c)]}});const _0x355150=this[_0x567fcc(0x1cf)](),_0x3397ec=this[_0x567fcc(0x1d5)](_0x1ec2cc),_0x1fddaf=this[_0x567fcc(0x1db)](),_0x1a1c4e=this[_0x567fcc(0x187)](_0x1ec2cc,_0x449639),_0x29cba2=this[_0x567fcc(0x1c8)](_0x1ec2cc,_0x1a1c4e),_0x403978=this[_0x567fcc(0x1ae)](_0x1ec2cc,_0x1a1c4e);this[_0x567fcc(0x1b5)]=this[_0x567fcc(0x1c7)](),this[_0x567fcc(0x186)]=this[_0x567fcc(0x1c7)](),this[_0x567fcc(0x186)][_0x567fcc(0x19d)](this[_0x567fcc(0x1d3)]),this[_0x567fcc(0x1b5)][_0x567fcc(0x19d)](_0x3397ec),this[_0x567fcc(0x1b5)][_0x567fcc(0x19d)](_0x1fddaf),this['on'](_0x567fcc(0x1c3),(_0x44efb0,_0x249b8d,_0x2229a8)=>{const _0x4e2c15=_0x567fcc;this[_0x4e2c15(0x1b5)][_0x4e2c15(0x184)](),this[_0x4e2c15(0x186)][_0x4e2c15(0x184)](),_0x2229a8?(this[_0x4e2c15(0x1b5)][_0x4e2c15(0x19d)](_0x29cba2),this[_0x4e2c15(0x1b5)][_0x4e2c15(0x19d)](_0x403978),this[_0x4e2c15(0x186)][_0x4e2c15(0x19d)](_0x1a1c4e),_0x1a1c4e[_0x4e2c15(0x1ba)][_0x4e2c15(0x19a)]()):(this[_0x4e2c15(0x1b5)][_0x4e2c15(0x19d)](_0x3397ec),this[_0x4e2c15(0x1b5)][_0x4e2c15(0x19d)](_0x1fddaf),this[_0x4e2c15(0x186)][_0x4e2c15(0x19d)](this[_0x4e2c15(0x1d3)]));}),this[_0x567fcc(0x1c9)]({'tag':'li','attributes':{'class':[_0x567fcc(0x1a9),_0x554a38?_0x567fcc(0x197):'',_0x5b6477['if'](_0x567fcc(0x1c0),_0x567fcc(0x1e1),_0x18040c=>!_0x18040c),_0x5b6477['if'](_0x567fcc(0x1b3),_0x567fcc(0x1b0))],'role':_0x567fcc(0x1d6)},'children':[{'tag':_0x567fcc(0x1c5),'attributes':{'class':[_0x567fcc(0x1cd)]},'children':[{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x185),_0x5b6477['if'](_0x567fcc(0x1a4),_0x567fcc(0x1e1),_0x177971=>!!_0x177971)]},'children':_0x554a38?[_0x355150]:[]},{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1b9),_0x5b6477['if'](_0x567fcc(0x1a4),_0x567fcc(0x1e1),_0x481231=>!_0x481231)]},'children':[this[_0x567fcc(0x19f)]()]}]},{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1bb)]},'children':[{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1a0)]},'on':{'click':this[_0x567fcc(0x1ce)]['to'](_0x567fcc(0x1df))},'children':[{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1b7)]},'children':[{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x19c),_0x5b6477['if'](_0x567fcc(0x1a4),_0x567fcc(0x1e1),_0x478107=>!!_0x478107)]},'children':this[_0x567fcc(0x186)]},{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1aa),_0x5b6477['if'](_0x567fcc(0x1a4),_0x567fcc(0x1e1),_0x5dae05=>!_0x5dae05)]},'children':[{'text':_0x5b6477['to'](_0x567fcc(0x1a4),_0x448374=>_0x448374?_0x52c6c2(this[_0x567fcc(0x1be)],AIChatHistoryListItemView[_0x567fcc(0x1ab)][_0x448374]):'')}]}]},{'tag':_0x567fcc(0x1c5),'attributes':{'class':[_0x567fcc(0x1cc)]},'children':[_0x37ea2c]}]},{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1b6)]},'children':this[_0x567fcc(0x1b5)]}]}]}),this['on'](_0x567fcc(0x1df),()=>{const _0x2bc6e7=_0x567fcc;this[_0x2bc6e7(0x1b3)]||this[_0x2bc6e7(0x19e)](_0x2bc6e7(0x1c1),{'id':this['id']});});}[_0x73d3fe(0x190)](_0x230c56){const _0xe14b2b=_0x73d3fe;this[_0xe14b2b(0x1d3)][_0xe14b2b(0x191)]=_0x5ce1aa(_0x230c56);}[_0x73d3fe(0x1a7)](_0x58a5f2,_0x42d996){const _0x27785c=_0x73d3fe;this[_0x27785c(0x18e)](_0x27785c(0x1a4),_0x42d996?_0x58a5f2:null);}[_0x73d3fe(0x1cf)](){const _0x4ee9ee=_0x73d3fe,_0x2582c3=new _0x2e0271();return _0x2582c3[_0x4ee9ee(0x18e)]({'content':_0x200f7a}),_0x2582c3;}[_0x73d3fe(0x1d5)](_0x437e04){const _0x3ee091=_0x73d3fe,_0x599c13=new _0x5198b5(_0x437e04);return _0x599c13[_0x3ee091(0x18e)]({'label':_0x52c6c2(_0x437e04,_0x3ee091(0x18b)),'icon':_0x1787fd,'withText':!0x1,'tooltip':!0x0}),_0x599c13[_0x3ee091(0x195)](_0x3ee091(0x1e0))['to'](this,_0x3ee091(0x1d1)),_0x599c13['on'](_0x3ee091(0x199),()=>{const _0x924141=_0x3ee091,_0x41d558=!this[_0x924141(0x1d1)];this[_0x924141(0x19e)](_0x924141(0x1da),{'id':this['id'],'pinned':_0x41d558});}),_0x599c13;}[_0x73d3fe(0x1db)](){const _0x1cb37c=_0x73d3fe,_0x308ec5=_0x29f4b9(this[_0x1cb37c(0x1be)],_0x5db3f4),_0x3b3afb=_0x308ec5[_0x1cb37c(0x1a1)][_0x1cb37c(0x1de)];_0x308ec5[_0x1cb37c(0x1c6)][_0x1cb37c(0x18e)]({'label':_0x52c6c2(this[_0x1cb37c(0x1be)],_0x1cb37c(0x1d0)),'icon':_0x98f663}),_0x308ec5[_0x1cb37c(0x1d8)]='sw';const _0x51f1a9=new _0x5198b5(this[_0x1cb37c(0x1be)]);_0x51f1a9[_0x1cb37c(0x19b)]=_0x52c6c2(this[_0x1cb37c(0x1be)],_0x1cb37c(0x1c4)),_0x51f1a9[_0x1cb37c(0x1b8)]=!0x0,_0x51f1a9['on'](_0x1cb37c(0x199),()=>{const _0x5ebd49=_0x1cb37c;this[_0x5ebd49(0x1b3)]=!0x0;});const _0x462fdc=new _0x5198b5(this[_0x1cb37c(0x1be)]);_0x462fdc[_0x1cb37c(0x19b)]=_0x52c6c2(this[_0x1cb37c(0x1be)],_0x1cb37c(0x1ad)),_0x462fdc[_0x1cb37c(0x1b8)]=!0x0,_0x462fdc['on'](_0x1cb37c(0x199),()=>{const _0x543d3e=_0x1cb37c;this[_0x543d3e(0x189)](_0x52c6c2(this[_0x543d3e(0x1be)],_0x543d3e(0x1a2)),this[_0x543d3e(0x1ba)])[_0x543d3e(0x1c2)](()=>{const _0x2a160a=_0x543d3e;this[_0x2a160a(0x19e)](_0x2a160a(0x188),{'id':this['id']});});});const _0x43d4b3=new _0x55f76a(this[_0x1cb37c(0x1be)]),_0x124af7=new _0x34376a(this[_0x1cb37c(0x1be)]);_0x124af7[_0x1cb37c(0x1de)][_0x1cb37c(0x19d)](_0x51f1a9);const _0x1e0ed3=new _0x34376a(this[_0x1cb37c(0x1be)]);return _0x1e0ed3[_0x1cb37c(0x1de)][_0x1cb37c(0x19d)](_0x462fdc),_0x43d4b3[_0x1cb37c(0x1ca)][_0x1cb37c(0x1a8)]([_0x124af7,_0x1e0ed3]),_0x3b3afb[_0x1cb37c(0x19d)](_0x43d4b3),_0x308ec5;}[_0x73d3fe(0x187)](_0x6575ef,_0xc5186c){const _0x44362e=_0x73d3fe,_0x33d443=new _0x37e2d3(_0x6575ef),_0x21e576=_0x33d443[_0x44362e(0x1ce)];return _0x33d443[_0x44362e(0x18d)]=_0xc5186c,_0x33d443[_0x44362e(0x18a)]({'on':{'keydown':_0x21e576['to'](_0x4a752b=>{const _0x420c37=_0x44362e;_0x420c37(0x1dd)==_0x4a752b[_0x420c37(0x1af)]&&this[_0x420c37(0x1bc)](_0x33d443);})}}),_0x33d443;}[_0x73d3fe(0x1c8)](_0x3c49c5,_0x3b1de5){const _0x1b22dc=_0x73d3fe,_0x4520e2=new _0x5198b5(_0x3c49c5);return _0x4520e2[_0x1b22dc(0x18e)]({'icon':_0x200f7a,'withText':!0x1,'tooltip':_0x52c6c2(_0x3c49c5,_0x1b22dc(0x1b4))}),_0x4520e2[_0x1b22dc(0x18a)]({'attributes':{'class':[_0x1b22dc(0x182)]}}),_0x4520e2['on'](_0x1b22dc(0x199),()=>{const _0x1c77d1=_0x1b22dc;this[_0x1c77d1(0x1bc)](_0x3b1de5);}),_0x4520e2;}[_0x73d3fe(0x1bc)](_0x22513f){const _0x2bb7c=_0x73d3fe,_0x385e8b=_0x22513f[_0x2bb7c(0x1ba)][_0x2bb7c(0x18d)]||'';this[_0x2bb7c(0x1d3)][_0x2bb7c(0x191)]=_0x385e8b,this[_0x2bb7c(0x1b3)]=!0x1,this[_0x2bb7c(0x19e)](_0x2bb7c(0x1bd),{'id':this['id'],'title':_0x385e8b});}[_0x73d3fe(0x1ae)](_0x508e23,_0x195183){const _0x5581ca=_0x73d3fe,_0x421c64=new _0x5198b5(_0x508e23);return _0x421c64[_0x5581ca(0x18e)]({'icon':_0x10f9d9,'withText':!0x1,'tooltip':_0x52c6c2(_0x508e23,_0x5581ca(0x18c))}),_0x421c64[_0x5581ca(0x18a)]({'attributes':{'class':[_0x5581ca(0x198)]}}),_0x421c64['on'](_0x5581ca(0x199),()=>{const _0x2f17ff=_0x5581ca;this[_0x2f17ff(0x1b3)]=!0x1,_0x195183[_0x2f17ff(0x18d)]=this[_0x2f17ff(0x1d3)][_0x2f17ff(0x191)]||'',this[_0x2f17ff(0x19e)](_0x2f17ff(0x1dc));}),_0x421c64;}[_0x73d3fe(0x19f)](){const _0xd27e53=_0x73d3fe,_0x265770=new _0x2b01a4(_0xd27e53(0x1d2));return _0x265770[_0xd27e53(0x1c0)]=!0x0,_0x265770;}[_0x73d3fe(0x192)](_0x1aaa53){const _0x5c1a99=_0x73d3fe;return this[_0x5c1a99(0x1d3)]&&_0x5c1a99(0x194)==typeof this[_0x5c1a99(0x1d3)][_0x5c1a99(0x191)]&&this[_0x5c1a99(0x1d3)][_0x5c1a99(0x191)][_0x5c1a99(0x1d7)](_0x1aaa53)?{'title':!0x0}:null;}[_0x73d3fe(0x1b1)](_0x5813d2){const _0x4c683f=_0x73d3fe;this[_0x4c683f(0x1d3)][_0x4c683f(0x1b1)](_0x5813d2);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49649d=_0x49ae;(function(_0x4cfcb4,_0x3cedc6){const _0x402eb4=_0x49ae,_0x34e7ca=_0x4cfcb4();while(!![]){try{const _0x1f0cdb=parseInt(_0x402eb4(0x163))/0x1+-parseInt(_0x402eb4(0x16b))/0x2+-parseInt(_0x402eb4(0x15e))/0x3+parseInt(_0x402eb4(0x15a))/0x4*(parseInt(_0x402eb4(0x155))/0x5)+-parseInt(_0x402eb4(0x153))/0x6+-parseInt(_0x402eb4(0x159))/0x7*(parseInt(_0x402eb4(0x156))/0x8)+parseInt(_0x402eb4(0x15b))/0x9*(parseInt(_0x402eb4(0x169))/0xa);if(_0x1f0cdb===_0x3cedc6)break;else _0x34e7ca['push'](_0x34e7ca['shift']());}catch(_0x1417ff){_0x34e7ca['push'](_0x34e7ca['shift']());}}}(_0x2778,0xdc2ca));function _0x49ae(_0x4b0848,_0x38006d){const _0x2778b9=_0x2778();return _0x49ae=function(_0x49aedc,_0x41ae94){_0x49aedc=_0x49aedc-0x150;let _0x8927e=_0x2778b9[_0x49aedc];return _0x8927e;},_0x49ae(_0x4b0848,_0x38006d);}import{ListItemView as _0x14fb21,View as _0x764985,ListView as _0x305f16}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x14fb21{[_0x49649d(0x151)];[_0x49649d(0x164)];[_0x49649d(0x16e)];constructor(_0x52e4c3,{title:_0xb9644f,items:_0x1acac0}){const _0x444d4f=_0x49649d;super(_0x52e4c3);const _0x2a60f7=this[_0x444d4f(0x16c)];this[_0x444d4f(0x162)](_0x444d4f(0x16f),!0x0),this[_0x444d4f(0x151)]=_0xb9644f,this[_0x444d4f(0x164)]=_0x1acac0;const _0x1efa96=new _0x764985(_0x52e4c3);_0x1efa96[_0x444d4f(0x154)]({'tag':_0x444d4f(0x167),'attributes':{'class':[_0x444d4f(0x165)]},'children':[this[_0x444d4f(0x151)]]}),this[_0x444d4f(0x16e)]=new _0x305f16(_0x52e4c3),this[_0x444d4f(0x16e)][_0x444d4f(0x16d)][_0x444d4f(0x16a)](this[_0x444d4f(0x164)]),this[_0x444d4f(0x154)]({'tag':'li','attributes':{'class':[_0x444d4f(0x15c),_0x2a60f7['if'](_0x444d4f(0x16f),_0x444d4f(0x15f),_0x334d98=>!_0x334d98)]},'children':[_0x1efa96,this[_0x444d4f(0x16e)]]});}[_0x49649d(0x168)](_0xe5a68e){const _0x5a422b=_0x49649d,_0x5160d0=this[_0x5a422b(0x164)][_0x5a422b(0x157)];let _0x5e9a7d=0x0;for(const _0x318552 of this[_0x5a422b(0x164)]){if(_0xe5a68e){const _0xd478b7=_0x318552[_0x5a422b(0x152)](_0xe5a68e);_0x318552[_0x5a422b(0x16f)]=!!_0xd478b7,_0x318552[_0x5a422b(0x160)](_0xe5a68e);}else _0x318552[_0x5a422b(0x16f)]=!0x0,_0x318552[_0x5a422b(0x160)](null);_0x318552[_0x5a422b(0x16f)]&&_0x5e9a7d++;}return this[_0x5a422b(0x16f)]=_0x5e9a7d>0x0,{'resultsCount':_0x5e9a7d,'totalItemsCount':_0x5160d0};}[_0x49649d(0x150)](_0x960cb8){const _0x27acfe=_0x49649d;return this[_0x27acfe(0x164)][_0x27acfe(0x161)](_0x5c3295=>_0x5c3295['id']===_0x960cb8);}[_0x49649d(0x15d)](_0x172092){const _0x2efd88=_0x49649d,_0x409608=this[_0x2efd88(0x164)][_0x2efd88(0x166)](_0x172092);-0x1!==_0x409608&&(this[_0x2efd88(0x164)][_0x2efd88(0x170)](_0x409608,0x1),this[_0x2efd88(0x16e)][_0x2efd88(0x16d)][_0x2efd88(0x158)](_0x172092));}}function _0x2778(){const _0xc2668c=['707YyJWsm','44KgrPbI','9770589fRQjUw','ck-ai-chat-history__section','removeItem','3639744LMnQnp','ck-hidden','highlightText','find','set','261567fOEymd','itemsViews','ck-ai-chat-history__section-title','indexOf','div','filter','10LgZVQj','addMany','515716UlioZn','bindTemplate','items','_itemsListView','isVisible','splice','getItem','title','isMatching','1355364TDAgen','setTemplate','617915VSnLCr','8536yNiOtR','length','remove'];_0x2778=function(){return _0xc2668c;};return _0x2778();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c01ce=_0x2343;(function(_0x4b1c22,_0x23b28d){const _0x2480e8=_0x2343,_0x1e8064=_0x4b1c22();while(!![]){try{const _0x283f85=parseInt(_0x2480e8(0xec))/0x1*(-parseInt(_0x2480e8(0xf8))/0x2)+parseInt(_0x2480e8(0xf7))/0x3+parseInt(_0x2480e8(0xf9))/0x4*(-parseInt(_0x2480e8(0xfa))/0x5)+-parseInt(_0x2480e8(0xee))/0x6+-parseInt(_0x2480e8(0xf5))/0x7*(-parseInt(_0x2480e8(0xf4))/0x8)+parseInt(_0x2480e8(0xf6))/0x9+-parseInt(_0x2480e8(0xf0))/0xa;if(_0x283f85===_0x23b28d)break;else _0x1e8064['push'](_0x1e8064['shift']());}catch(_0x20cb04){_0x1e8064['push'](_0x1e8064['shift']());}}}(_0x328e,0x97774));function _0x2343(_0x5302f3,_0x47316f){const _0x328eda=_0x328e();return _0x2343=function(_0x234395,_0x9076e1){_0x234395=_0x234395-0xec;let _0x2d5b92=_0x328eda[_0x234395];return _0x2d5b92;},_0x2343(_0x5302f3,_0x47316f);}import{ListView as _0x3d64d2}from'ckeditor5/src/ui.js';function _0x328e(){const _0x22181d=['12bHpwyo','147010HMASJM','sections','481883KopLee','addMany','3047916bXMqLg','ck-ai-chat-history__sections','9250940vzKDIb','extendTemplate','items','filter','1770280JqbslK','28fhtSBj','10182186UVYBOz','3266886rYDRcn','4PKEjFh'];_0x328e=function(){return _0x22181d;};return _0x328e();}export class AIChatHistorySectionListView extends _0x3d64d2{[_0x5c01ce(0xfb)];constructor(_0x125bef,_0x5d553f){const _0x3271c0=_0x5c01ce;super(_0x125bef),this[_0x3271c0(0xfb)]=_0x5d553f,this[_0x3271c0(0xf2)][_0x3271c0(0xed)](this[_0x3271c0(0xfb)]),this[_0x3271c0(0xf1)]({'attributes':{'class':[_0x3271c0(0xef)]}});}[_0x5c01ce(0xf3)](_0x1aaa00){const _0x4303f4=_0x5c01ce;let _0x344e35=0x0,_0x26536d=0x0;for(const _0x42b334 of this[_0x4303f4(0xfb)]){const {resultsCount:_0x177cbf,totalItemsCount:_0x181579}=_0x42b334[_0x4303f4(0xf3)](_0x1aaa00);_0x344e35+=_0x177cbf,_0x26536d+=_0x181579;}return{'resultsCount':_0x344e35,'totalItemsCount':_0x26536d};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x26d3e2=_0x132e;(function(_0x2b1275,_0x1d2ecf){const _0x282ef6=_0x132e,_0x5bb9c7=_0x2b1275();while(!![]){try{const _0x4242ec=parseInt(_0x282ef6(0x1e0))/0x1*(-parseInt(_0x282ef6(0x1c6))/0x2)+parseInt(_0x282ef6(0x1be))/0x3+-parseInt(_0x282ef6(0x1e5))/0x4+parseInt(_0x282ef6(0x1df))/0x5*(-parseInt(_0x282ef6(0x1ac))/0x6)+-parseInt(_0x282ef6(0x1fb))/0x7*(parseInt(_0x282ef6(0x1e1))/0x8)+parseInt(_0x282ef6(0x1c4))/0x9*(parseInt(_0x282ef6(0x1f1))/0xa)+parseInt(_0x282ef6(0x1d1))/0xb;if(_0x4242ec===_0x1d2ecf)break;else _0x5bb9c7['push'](_0x5bb9c7['shift']());}catch(_0x46bbfa){_0x5bb9c7['push'](_0x5bb9c7['shift']());}}}(_0x4591,0x3f678));import{View as _0x439b79,SearchTextView as _0x2cd949,FormHeaderView as _0x35bc8e,ButtonView as _0x4310ec}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3a209c,IconCancel as _0x4bc8f4,IconPlus as _0x263df9}from'ckeditor5/src/icons.js';function _0x4591(){const _0x120b5e=['isMainErrorViewVisible','ck-ai-chat-history__content','search','aiHistory','extendTemplate','removeItem','_createEmptyStateView','1596BQkgCP','isSearchViewVisible','set','isMaximized','ck-reset_all','fire','itemsViews','mainErrorView','_updateViewVisibility','ck-ai-chat-history__empty','execute','value','indexOf','addMany','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','2070LXRnuR','updateTitle','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','errorMessage','bind','ck-ai-header\x20ck-ai-header_history','isLoading','div','setTemplate','searchView','skeletonView','ck-ai-notification','openChat','_refreshSearch','_createSkeletonView','ck-ai-notification_error__dismiss-button','emptyView','children','1538076VbwzeH','change:hasItems','updateHistoryItemsWithCategories','splice','_createSearchView','remove','144rvorHs','queryView','2134Hdxkpr','ck-ai-chat__start-conversation','some','AI_CHAT_HISTORY_SEARCH_LABEL','getItem','sections','bindTemplate','_createErrorView','delegate','removeHistoryItem','clear','2956415ajrqrv','ck-ai-chat-history__empty-message','hasItems','ck-ai-notification_error','_createListItemViews','ck-rounded-corners','AI_CHAT_LABEL_NEW_CHAT','updateItemTitle','change:isLoading','AI_CHAT_HISTORY_EMPTY_MESSAGE','updateItemLoadingState','AI_CHAT_HISTORY_HEADING','push','render','3865RLhylY','9qqZlyw','1192okAyyk','element','ck-ai-chat-history','resizeButton','1171156NLVGHo','sectionsView','change:errorMessage','length','ltr','fieldView','add','updateLoadingState','isVisible','items','title','locale','50810UdaurK','isEmptyViewVisible','ck-hidden'];_0x4591=function(){return _0x120b5e;};return _0x4591();}import{AIChatHistorySectionListView as _0x4989f3}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xaa7f3d}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x17239a}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x393051}from'../aichathistoryui.js';import{AISkeletonView as _0x4f6855,SKELETON_DEFINITIONS as _0x2c0a35}from'../../aicore/ui/aiskeleton.js';function _0x132e(_0x62eb71,_0x3807f9){const _0x4591db=_0x4591();return _0x132e=function(_0x132ecd,_0x50f945){_0x132ecd=_0x132ecd-0x19e;let _0x10ca11=_0x4591db[_0x132ecd];return _0x10ca11;},_0x132e(_0x62eb71,_0x3807f9);}import{createResizeButton as _0xe026d2}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x26b0cf}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x439b79{[_0x26d3e2(0x1b5)];[_0x26d3e2(0x1a4)];[_0x26d3e2(0x1b6)];[_0x26d3e2(0x1bc)];[_0x26d3e2(0x1e6)];[_0x26d3e2(0x1e4)];constructor(_0x2633c1,_0x11d7d7){const _0x34776a=_0x26d3e2;super(_0x2633c1),this[_0x34776a(0x19f)](_0x34776a(0x1d3),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x1b2),!0x0),this[_0x34776a(0x19f)](_0x34776a(0x1af),''),this[_0x34776a(0x19f)](_0x34776a(0x1a0),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x19e),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x1f2),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x1f4),!0x1);const _0x40b37e=new _0x35bc8e(_0x2633c1,{'label':_0x26b0cf(_0x2633c1,_0x34776a(0x1dc)),'icon':_0x3a209c,'class':_0x34776a(0x1b1)});_0x11d7d7&&(this[_0x34776a(0x1e4)]=_0xe026d2(_0x2633c1,this),_0x40b37e[_0x34776a(0x1bd)][_0x34776a(0x1eb)](this[_0x34776a(0x1e4)])),this[_0x34776a(0x1e6)]=new _0x4989f3(_0x2633c1,[]),this[_0x34776a(0x1e6)][_0x34776a(0x1ce)](..._0x393051)['to'](this),this[_0x34776a(0x1a4)]=this[_0x34776a(0x1cd)](),this[_0x34776a(0x1b6)]=this[_0x34776a(0x1ba)](),this[_0x34776a(0x1bc)]=this[_0x34776a(0x1fa)](),this[_0x34776a(0x1b5)]=this[_0x34776a(0x1c2)](),this[_0x34776a(0x1a4)][_0x34776a(0x1f8)]({'attributes':{'class':[this[_0x34776a(0x1cc)]['if'](_0x34776a(0x1f4),_0x34776a(0x1f3),_0x5828b8=>!_0x5828b8)]}}),this['on'](_0x34776a(0x1d9),()=>this[_0x34776a(0x1a5)]()),this['on'](_0x34776a(0x1bf),()=>this[_0x34776a(0x1a5)]()),this['on'](_0x34776a(0x1e7),()=>this[_0x34776a(0x1a5)]()),this[_0x34776a(0x1b4)]({'tag':_0x34776a(0x1b3),'attributes':{'class':['ck',_0x34776a(0x1a1),_0x34776a(0x1e3),_0x34776a(0x1d6)],'dir':_0x34776a(0x1e9)},'children':[_0x40b37e,{'tag':_0x34776a(0x1b3),'attributes':{'class':[_0x34776a(0x1f5)]},'children':[this[_0x34776a(0x1b6)],this[_0x34776a(0x1a4)],this[_0x34776a(0x1bc)],this[_0x34776a(0x1b5)]]}]});}[_0x26d3e2(0x1a5)](){const _0x1d54a7=_0x26d3e2;this[_0x1d54a7(0x19e)]=!this[_0x1d54a7(0x1b2)]&&this[_0x1d54a7(0x1d3)],this[_0x1d54a7(0x1f2)]=!this[_0x1d54a7(0x1b2)]&&!this[_0x1d54a7(0x1d3)]&&!this[_0x1d54a7(0x1af)],this[_0x1d54a7(0x1f4)]=!this[_0x1d54a7(0x19e)]&&!!this[_0x1d54a7(0x1af)];}[_0x26d3e2(0x1c2)](){const _0x3278b4=_0x26d3e2,_0x5ba7d5=new _0x2cd949(this[_0x3278b4(0x1f0)],{'filteredView':this[_0x3278b4(0x1e6)],'queryView':{'label':_0x26b0cf(this[_0x3278b4(0x1f0)],_0x3278b4(0x1c9))},'infoView':{'text':{'notFound':{'primary':_0x45110a=>_0x26b0cf(this[_0x3278b4(0x1f0)],_0x3278b4(0x1ae),_0x45110a),'secondary':_0x26b0cf(this[_0x3278b4(0x1f0)],_0x3278b4(0x1ab))}}}}),_0x416a30=this[_0x3278b4(0x1cd)]();return _0x416a30[_0x3278b4(0x1f8)]({'attributes':{'class':[this[_0x3278b4(0x1cc)]['if'](_0x3278b4(0x1af),_0x3278b4(0x1f3),_0x47bfde=>!_0x47bfde)]}}),_0x5ba7d5['on'](_0x3278b4(0x1de),()=>{const _0x4a8535=_0x3278b4;_0x5ba7d5[_0x4a8535(0x1bd)][_0x4a8535(0x1eb)](_0x416a30,0x1);}),_0x5ba7d5[_0x3278b4(0x1f8)]({'attributes':{'class':[this[_0x3278b4(0x1cc)]['if'](_0x3278b4(0x19e),_0x3278b4(0x1f3),_0x1e12d4=>!_0x1e12d4)]}}),_0x5ba7d5;}[_0x26d3e2(0x1ba)](){const _0x461056=_0x26d3e2,_0x11599b=new _0x4f6855(this[_0x461056(0x1f0)],_0x2c0a35[_0x461056(0x1f7)]);return _0x11599b[_0x461056(0x1f8)]({'attributes':{'class':[this[_0x461056(0x1cc)]['if'](_0x461056(0x1b2),_0x461056(0x1f3),_0x3d8fb0=>!_0x3d8fb0)]}}),_0x11599b;}[_0x26d3e2(0x1cd)](){const _0x1c9611=_0x26d3e2,_0xd64557=new _0x439b79(this[_0x1c9611(0x1f0)]),_0xbe79dd=new _0x4310ec(this[_0x1c9611(0x1f0)]);_0xbe79dd[_0x1c9611(0x19f)]({'withText':!0x1,'icon':_0x4bc8f4,'class':_0x1c9611(0x1bb)}),_0xbe79dd[_0x1c9611(0x1b0)](_0x1c9611(0x1ed))['to'](this,_0x1c9611(0x1d3),_0x5362ed=>!!_0x5362ed),_0xbe79dd['on'](_0x1c9611(0x1a7),()=>{const _0x2633ca=_0x1c9611;this[_0x2633ca(0x1af)]='';});const _0x45e432=this[_0x1c9611(0x1cc)];return _0xd64557[_0x1c9611(0x1b4)]({'tag':_0x1c9611(0x1b3),'attributes':{'class':['ck',_0x1c9611(0x1b7),_0x1c9611(0x1d4)]},'children':[{'tag':'p','children':[{'text':_0x45e432['to'](_0x1c9611(0x1af))}]},_0xbe79dd]}),_0xd64557;}[_0x26d3e2(0x1fa)](){const _0x20ead2=_0x26d3e2,_0x3bc61a=new _0x4310ec(this[_0x20ead2(0x1f0)]);_0x3bc61a[_0x20ead2(0x19f)]({'label':_0x26b0cf(this[_0x20ead2(0x1f0)],_0x20ead2(0x1d7)),'withText':!0x0,'icon':_0x263df9,'class':_0x20ead2(0x1c7)}),_0x3bc61a['on'](_0x20ead2(0x1a7),()=>{const _0x57ab82=_0x20ead2;this[_0x57ab82(0x1a2)](_0x57ab82(0x1b8));});const _0x3d9e96=new _0x439b79(this[_0x20ead2(0x1f0)]);return _0x3d9e96[_0x20ead2(0x1b4)]({'tag':_0x20ead2(0x1b3),'attributes':{'class':[_0x20ead2(0x1a6),this[_0x20ead2(0x1cc)]['if'](_0x20ead2(0x1f2),_0x20ead2(0x1f3),_0xd84573=>!_0xd84573)]},'children':[{'tag':'p','attributes':{'class':[_0x20ead2(0x1d2)]},'children':[_0x26b0cf(this[_0x20ead2(0x1f0)],_0x20ead2(0x1da))]},_0x3bc61a]}),_0x3d9e96;}[_0x26d3e2(0x1d5)](_0x452d85,_0x165bea){const _0x113265=_0x26d3e2,_0x3e85e9=[];for(const _0x504b10 of _0x452d85){const _0x265f7f=new _0x17239a(_0x165bea,_0x504b10);_0x265f7f[_0x113265(0x1ce)](..._0x393051)['to'](this),_0x3e85e9[_0x113265(0x1dd)](_0x265f7f);}return _0x3e85e9;}[_0x26d3e2(0x1c0)](_0x4abc3e){const _0x29883f=_0x26d3e2,_0x720b5b=this[_0x29883f(0x1f0)]||'en',_0x266bc1=[];for(const _0x1618a8 of _0x4abc3e){const _0xee1678=this[_0x29883f(0x1d5)](_0x1618a8[_0x29883f(0x1ee)],_0x720b5b);_0x266bc1[_0x29883f(0x1dd)](new _0xaa7f3d(_0x720b5b,{'title':_0x1618a8[_0x29883f(0x1ef)],'items':_0xee1678}));}this[_0x29883f(0x1e6)][_0x29883f(0x1cb)]=_0x266bc1,this[_0x29883f(0x1e6)][_0x29883f(0x1ee)][_0x29883f(0x1d0)](),this[_0x29883f(0x1e6)][_0x29883f(0x1ee)][_0x29883f(0x1aa)](_0x266bc1),this[_0x29883f(0x1d3)]=_0x4abc3e[_0x29883f(0x1c8)](_0x46d44f=>_0x46d44f[_0x29883f(0x1ee)][_0x29883f(0x1e8)]>0x0),this[_0x29883f(0x1b9)]();}[_0x26d3e2(0x1cf)](_0x49bf6d){const _0x418e71=_0x26d3e2;for(const _0x16e093 of this[_0x418e71(0x1e6)][_0x418e71(0x1cb)]){const _0x5c3fc4=_0x16e093[_0x418e71(0x1ca)](_0x49bf6d);if(_0x5c3fc4){if(_0x16e093[_0x418e71(0x1f9)](_0x5c3fc4),0x0===_0x16e093[_0x418e71(0x1a3)][_0x418e71(0x1e8)]){const _0x3f4f7b=this[_0x418e71(0x1e6)][_0x418e71(0x1cb)][_0x418e71(0x1a9)](_0x16e093);-0x1!==_0x3f4f7b&&(this[_0x418e71(0x1e6)][_0x418e71(0x1cb)][_0x418e71(0x1c1)](_0x3f4f7b,0x1),this[_0x418e71(0x1e6)][_0x418e71(0x1ee)][_0x418e71(0x1c3)](_0x16e093));}this[_0x418e71(0x1d3)]=this[_0x418e71(0x1e6)][_0x418e71(0x1cb)][_0x418e71(0x1e8)]>0x0,this[_0x418e71(0x1b9)]();break;}}}[_0x26d3e2(0x1d8)](_0x4fce7b,_0x5a6f7e){const _0x530a69=_0x26d3e2;for(const _0x119426 of this[_0x530a69(0x1e6)][_0x530a69(0x1cb)]){const _0x292dbb=_0x119426[_0x530a69(0x1ca)](_0x4fce7b);if(_0x292dbb){_0x292dbb[_0x530a69(0x1ad)](_0x5a6f7e);break;}}}[_0x26d3e2(0x1db)](_0x320d6d,_0x2fb753,_0x2ba43a){const _0x4b5950=_0x26d3e2;for(const _0x4234a5 of this[_0x4b5950(0x1e6)][_0x4b5950(0x1cb)]){const _0x102128=_0x4234a5[_0x4b5950(0x1ca)](_0x320d6d);if(_0x102128){_0x102128[_0x4b5950(0x1ec)](_0x2fb753,_0x2ba43a);break;}}}[_0x26d3e2(0x1b9)](){const _0x2b0626=_0x26d3e2;if(this[_0x2b0626(0x1d3)]){const _0x5db5b1=this[_0x2b0626(0x1b5)][_0x2b0626(0x1c5)][_0x2b0626(0x1ea)]?.[_0x2b0626(0x1e2)]?.[_0x2b0626(0x1a8)]||'';this[_0x2b0626(0x1b5)][_0x2b0626(0x1f6)](_0x5db5b1);}}}
|
|
23
|
+
const _0x2aa48e=_0x36b6;(function(_0x2257e1,_0x97172){const _0x41bad9=_0x36b6,_0x556153=_0x2257e1();while(!![]){try{const _0x316025=parseInt(_0x41bad9(0x168))/0x1+parseInt(_0x41bad9(0x19c))/0x2+-parseInt(_0x41bad9(0x1b8))/0x3*(-parseInt(_0x41bad9(0x1b1))/0x4)+-parseInt(_0x41bad9(0x1ab))/0x5*(-parseInt(_0x41bad9(0x19a))/0x6)+parseInt(_0x41bad9(0x1a6))/0x7*(-parseInt(_0x41bad9(0x1b9))/0x8)+-parseInt(_0x41bad9(0x16c))/0x9+-parseInt(_0x41bad9(0x1a4))/0xa;if(_0x316025===_0x97172)break;else _0x556153['push'](_0x556153['shift']());}catch(_0x4b54e4){_0x556153['push'](_0x556153['shift']());}}}(_0x4f1c,0x305f9));import{View as _0x2328e0,SearchTextView as _0x52750a,FormHeaderView as _0x4032e4,ButtonView as _0x26896c}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x216847,IconCancel as _0x149d52,IconPlus as _0x58cde4}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2193ad}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xd6de98}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x4981c8}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3664d4}from'../aichathistoryui.js';import{AISkeletonView as _0x1ccd9a,SKELETON_DEFINITIONS as _0x2be148}from'../../aicore/ui/aiskeleton.js';function _0x4f1c(){const _0x17d217=['clear','execute','mainErrorView','resizeButton','isMaximized','getItem','change:isLoading','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_updateViewVisibility','_createSkeletonView','ck-ai-chat-history__content','12EoDHRy','ck-ai-notification_error__dismiss-button','141698jKYRXH','ck-ai-chat-history','isSearchViewVisible','updateLoadingState','ck-ai-chat-history__empty-message','itemsViews','sectionsView','emptyView','1926440WSdQXS','removeHistoryItem','695471CdmxsT','AI_CHAT_HISTORY_SEARCH_LABEL','aiHistory','openChat','ck-ai-chat__start-conversation','133520wZAJvH','updateItemLoadingState','ck-rounded-corners','fire','AI_CHAT_LABEL_NEW_CHAT','searchView','8Ybwxdk','ltr','render','remove','updateItemTitle','isMainErrorViewVisible','bindTemplate','152295bQKWDt','8geuPcp','value','extendTemplate','div','isVisible','change:hasItems','ck-ai-notification','ck-ai-chat-history__empty','delegate','isEmptyViewVisible','add','splice','309604ZkmUJt','children','errorMessage','push','407313XTQAMg','locale','skeletonView','_createListItemViews','sections','element','some','ck-hidden','title','length','_refreshSearch','AI_CHAT_HISTORY_HEADING','search','change:errorMessage','ck-reset_all','_createSearchView','updateTitle','bind','AI_CHAT_HISTORY_EMPTY_MESSAGE','_createErrorView','indexOf','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','addMany','set','items','setTemplate','updateHistoryItemsWithCategories','isLoading','hasItems','_createEmptyStateView','queryView','ck-ai-header\x20ck-ai-header_history','removeItem','ck-ai-notification_error','fieldView'];_0x4f1c=function(){return _0x17d217;};return _0x4f1c();}import{createResizeButton as _0x14ea6c}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x5b786a}from'../../aicore/utils/common-translations.js';function _0x36b6(_0x34ae98,_0x5b9039){const _0x4f1cbe=_0x4f1c();return _0x36b6=function(_0x36b600,_0x130d48){_0x36b600=_0x36b600-0x15d;let _0x7137fc=_0x4f1cbe[_0x36b600];return _0x7137fc;},_0x36b6(_0x34ae98,_0x5b9039);}export class AIChatHistoryView extends _0x2328e0{[_0x2aa48e(0x1b0)];[_0x2aa48e(0x191)];[_0x2aa48e(0x16e)];[_0x2aa48e(0x1a3)];[_0x2aa48e(0x1a2)];[_0x2aa48e(0x192)];constructor(_0x27d6d8,_0x868e13){const _0xaf9851=_0x2aa48e;super(_0x27d6d8),this[_0xaf9851(0x183)](_0xaf9851(0x188),!0x1),this[_0xaf9851(0x183)](_0xaf9851(0x187),!0x0),this[_0xaf9851(0x183)](_0xaf9851(0x16a),''),this[_0xaf9851(0x183)](_0xaf9851(0x193),!0x1),this[_0xaf9851(0x183)](_0xaf9851(0x19e),!0x1),this[_0xaf9851(0x183)](_0xaf9851(0x165),!0x1),this[_0xaf9851(0x183)](_0xaf9851(0x1b6),!0x1);const _0x1c84b2=new _0x4032e4(_0x27d6d8,{'label':_0x5b786a(_0x27d6d8,_0xaf9851(0x177)),'icon':_0x216847,'class':_0xaf9851(0x18b)});_0x868e13&&(this[_0xaf9851(0x192)]=_0x14ea6c(_0x27d6d8,this),_0x1c84b2[_0xaf9851(0x169)][_0xaf9851(0x166)](this[_0xaf9851(0x192)])),this[_0xaf9851(0x1a2)]=new _0x2193ad(_0x27d6d8,[]),this[_0xaf9851(0x1a2)][_0xaf9851(0x164)](..._0x3664d4)['to'](this),this[_0xaf9851(0x191)]=this[_0xaf9851(0x17f)](),this[_0xaf9851(0x16e)]=this[_0xaf9851(0x198)](),this[_0xaf9851(0x1a3)]=this[_0xaf9851(0x189)](),this[_0xaf9851(0x1b0)]=this[_0xaf9851(0x17b)](),this[_0xaf9851(0x191)][_0xaf9851(0x15e)]({'attributes':{'class':[this[_0xaf9851(0x1b7)]['if'](_0xaf9851(0x1b6),_0xaf9851(0x173),_0x25225d=>!_0x25225d)]}}),this['on'](_0xaf9851(0x195),()=>this[_0xaf9851(0x197)]()),this['on'](_0xaf9851(0x161),()=>this[_0xaf9851(0x197)]()),this['on'](_0xaf9851(0x179),()=>this[_0xaf9851(0x197)]()),this[_0xaf9851(0x185)]({'tag':_0xaf9851(0x15f),'attributes':{'class':['ck',_0xaf9851(0x17a),_0xaf9851(0x19d),_0xaf9851(0x1ad)],'dir':_0xaf9851(0x1b2)},'children':[_0x1c84b2,{'tag':_0xaf9851(0x15f),'attributes':{'class':[_0xaf9851(0x199)]},'children':[this[_0xaf9851(0x16e)],this[_0xaf9851(0x191)],this[_0xaf9851(0x1a3)],this[_0xaf9851(0x1b0)]]}]});}[_0x2aa48e(0x197)](){const _0x34468c=_0x2aa48e;this[_0x34468c(0x19e)]=!this[_0x34468c(0x187)]&&this[_0x34468c(0x188)],this[_0x34468c(0x165)]=!this[_0x34468c(0x187)]&&!this[_0x34468c(0x188)]&&!this[_0x34468c(0x16a)],this[_0x34468c(0x1b6)]=!this[_0x34468c(0x19e)]&&!!this[_0x34468c(0x16a)];}[_0x2aa48e(0x17b)](){const _0x5e29fb=_0x2aa48e,_0x1f9997=new _0x52750a(this[_0x5e29fb(0x16d)],{'filteredView':this[_0x5e29fb(0x1a2)],'queryView':{'label':_0x5b786a(this[_0x5e29fb(0x16d)],_0x5e29fb(0x1a7))},'infoView':{'text':{'notFound':{'primary':_0x44fc5d=>_0x5b786a(this[_0x5e29fb(0x16d)],_0x5e29fb(0x196),_0x44fc5d),'secondary':_0x5b786a(this[_0x5e29fb(0x16d)],_0x5e29fb(0x181))}}}}),_0x30d964=this[_0x5e29fb(0x17f)]();return _0x30d964[_0x5e29fb(0x15e)]({'attributes':{'class':[this[_0x5e29fb(0x1b7)]['if'](_0x5e29fb(0x16a),_0x5e29fb(0x173),_0x48be7e=>!_0x48be7e)]}}),_0x1f9997['on'](_0x5e29fb(0x1b3),()=>{const _0x46bdd5=_0x5e29fb;_0x1f9997[_0x46bdd5(0x169)][_0x46bdd5(0x166)](_0x30d964,0x1);}),_0x1f9997[_0x5e29fb(0x15e)]({'attributes':{'class':[this[_0x5e29fb(0x1b7)]['if'](_0x5e29fb(0x19e),_0x5e29fb(0x173),_0x1eea6e=>!_0x1eea6e)]}}),_0x1f9997;}[_0x2aa48e(0x198)](){const _0x4b40a5=_0x2aa48e,_0x53d12e=new _0x1ccd9a(this[_0x4b40a5(0x16d)],_0x2be148[_0x4b40a5(0x1a8)]);return _0x53d12e[_0x4b40a5(0x15e)]({'attributes':{'class':[this[_0x4b40a5(0x1b7)]['if'](_0x4b40a5(0x187),_0x4b40a5(0x173),_0x45b185=>!_0x45b185)]}}),_0x53d12e;}[_0x2aa48e(0x17f)](){const _0xf951c1=_0x2aa48e,_0xded35c=new _0x2328e0(this[_0xf951c1(0x16d)]),_0x5ea2a4=new _0x26896c(this[_0xf951c1(0x16d)]);_0x5ea2a4[_0xf951c1(0x183)]({'withText':!0x1,'icon':_0x149d52,'class':_0xf951c1(0x19b)}),_0x5ea2a4[_0xf951c1(0x17d)](_0xf951c1(0x160))['to'](this,_0xf951c1(0x188),_0x4f4c6e=>!!_0x4f4c6e),_0x5ea2a4['on'](_0xf951c1(0x190),()=>{const _0x5640f7=_0xf951c1;this[_0x5640f7(0x16a)]='';});const _0x29bf21=this[_0xf951c1(0x1b7)];return _0xded35c[_0xf951c1(0x185)]({'tag':_0xf951c1(0x15f),'attributes':{'class':['ck',_0xf951c1(0x162),_0xf951c1(0x18d)]},'children':[{'tag':'p','children':[{'text':_0x29bf21['to'](_0xf951c1(0x16a))}]},_0x5ea2a4]}),_0xded35c;}[_0x2aa48e(0x189)](){const _0x1031ab=_0x2aa48e,_0x2fe34e=new _0x26896c(this[_0x1031ab(0x16d)]);_0x2fe34e[_0x1031ab(0x183)]({'label':_0x5b786a(this[_0x1031ab(0x16d)],_0x1031ab(0x1af)),'withText':!0x0,'icon':_0x58cde4,'class':_0x1031ab(0x1aa)}),_0x2fe34e['on'](_0x1031ab(0x190),()=>{const _0x5351ae=_0x1031ab;this[_0x5351ae(0x1ae)](_0x5351ae(0x1a9));});const _0x3c6858=new _0x2328e0(this[_0x1031ab(0x16d)]);return _0x3c6858[_0x1031ab(0x185)]({'tag':_0x1031ab(0x15f),'attributes':{'class':[_0x1031ab(0x163),this[_0x1031ab(0x1b7)]['if'](_0x1031ab(0x165),_0x1031ab(0x173),_0x3d6aef=>!_0x3d6aef)]},'children':[{'tag':'p','attributes':{'class':[_0x1031ab(0x1a0)]},'children':[_0x5b786a(this[_0x1031ab(0x16d)],_0x1031ab(0x17e))]},_0x2fe34e]}),_0x3c6858;}[_0x2aa48e(0x16f)](_0x1248d4,_0x2252ca){const _0x318597=_0x2aa48e,_0x43a66a=[];for(const _0x72543f of _0x1248d4){const _0x4f774d=new _0x4981c8(_0x2252ca,_0x72543f);_0x4f774d[_0x318597(0x164)](..._0x3664d4)['to'](this),_0x43a66a[_0x318597(0x16b)](_0x4f774d);}return _0x43a66a;}[_0x2aa48e(0x186)](_0x534d24){const _0x19f532=_0x2aa48e,_0x30a027=this[_0x19f532(0x16d)]||'en',_0x390e20=[];for(const _0xab88e7 of _0x534d24){const _0x4c938d=this[_0x19f532(0x16f)](_0xab88e7[_0x19f532(0x184)],_0x30a027);_0x390e20[_0x19f532(0x16b)](new _0xd6de98(_0x30a027,{'title':_0xab88e7[_0x19f532(0x174)],'items':_0x4c938d}));}this[_0x19f532(0x1a2)][_0x19f532(0x170)]=_0x390e20,this[_0x19f532(0x1a2)][_0x19f532(0x184)][_0x19f532(0x18f)](),this[_0x19f532(0x1a2)][_0x19f532(0x184)][_0x19f532(0x182)](_0x390e20),this[_0x19f532(0x188)]=_0x534d24[_0x19f532(0x172)](_0x29c67c=>_0x29c67c[_0x19f532(0x184)][_0x19f532(0x175)]>0x0),this[_0x19f532(0x176)]();}[_0x2aa48e(0x1a5)](_0x31023e){const _0x47c44f=_0x2aa48e;for(const _0x3ed31c of this[_0x47c44f(0x1a2)][_0x47c44f(0x170)]){const _0xf32b87=_0x3ed31c[_0x47c44f(0x194)](_0x31023e);if(_0xf32b87){if(_0x3ed31c[_0x47c44f(0x18c)](_0xf32b87),0x0===_0x3ed31c[_0x47c44f(0x1a1)][_0x47c44f(0x175)]){const _0x8b167a=this[_0x47c44f(0x1a2)][_0x47c44f(0x170)][_0x47c44f(0x180)](_0x3ed31c);-0x1!==_0x8b167a&&(this[_0x47c44f(0x1a2)][_0x47c44f(0x170)][_0x47c44f(0x167)](_0x8b167a,0x1),this[_0x47c44f(0x1a2)][_0x47c44f(0x184)][_0x47c44f(0x1b4)](_0x3ed31c));}this[_0x47c44f(0x188)]=this[_0x47c44f(0x1a2)][_0x47c44f(0x170)][_0x47c44f(0x175)]>0x0,this[_0x47c44f(0x176)]();break;}}}[_0x2aa48e(0x1b5)](_0x20c679,_0x2336c7){const _0x38fdb8=_0x2aa48e;for(const _0x252f20 of this[_0x38fdb8(0x1a2)][_0x38fdb8(0x170)]){const _0x4972c6=_0x252f20[_0x38fdb8(0x194)](_0x20c679);if(_0x4972c6){_0x4972c6[_0x38fdb8(0x17c)](_0x2336c7);break;}}}[_0x2aa48e(0x1ac)](_0x2ad416,_0x39ba07,_0x143384){const _0x1633ec=_0x2aa48e;for(const _0x245011 of this[_0x1633ec(0x1a2)][_0x1633ec(0x170)]){const _0x4c6d8f=_0x245011[_0x1633ec(0x194)](_0x2ad416);if(_0x4c6d8f){_0x4c6d8f[_0x1633ec(0x19f)](_0x39ba07,_0x143384);break;}}}[_0x2aa48e(0x176)](){const _0x11e933=_0x2aa48e;if(this[_0x11e933(0x188)]){const _0x5c1e34=this[_0x11e933(0x1b0)][_0x11e933(0x18a)][_0x11e933(0x18e)]?.[_0x11e933(0x171)]?.[_0x11e933(0x15d)]||'';this[_0x11e933(0x1b0)][_0x11e933(0x178)](_0x5c1e34);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x999e19=_0x45ba;function _0x45ba(_0x3e97b6,_0x507613){const _0x52cde1=_0x52cd();return _0x45ba=function(_0x45ba8b,_0xc44e02){_0x45ba8b=_0x45ba8b-0x15c;let _0x90f30a=_0x52cde1[_0x45ba8b];return _0x90f30a;},_0x45ba(_0x3e97b6,_0x507613);}(function(_0x257783,_0x16dc3a){const _0x2d269e=_0x45ba,_0x49e34d=_0x257783();while(!![]){try{const _0x550d3d=parseInt(_0x2d269e(0x19d))/0x1*(-parseInt(_0x2d269e(0x1d6))/0x2)+-parseInt(_0x2d269e(0x1b7))/0x3*(parseInt(_0x2d269e(0x1b8))/0x4)+-parseInt(_0x2d269e(0x15e))/0x5*(parseInt(_0x2d269e(0x164))/0x6)+-parseInt(_0x2d269e(0x1a5))/0x7*(-parseInt(_0x2d269e(0x19c))/0x8)+parseInt(_0x2d269e(0x1ef))/0x9*(parseInt(_0x2d269e(0x1b4))/0xa)+parseInt(_0x2d269e(0x199))/0xb*(-parseInt(_0x2d269e(0x178))/0xc)+parseInt(_0x2d269e(0x1bb))/0xd;if(_0x550d3d===_0x16dc3a)break;else _0x49e34d['push'](_0x49e34d['shift']());}catch(_0x3cc14c){_0x49e34d['push'](_0x49e34d['shift']());}}}(_0x52cd,0x79d02));import{createParser as _0x42e2dc}from'eventsource-parser';import{ContextPlugin as _0x267803}from'ckeditor5/src/core.js';import{CKEditorError as _0x13c841}from'ckeditor5/src/utils.js';function _0x52cd(){const _0x195e44=['data','9PQWAAg','value','getReader','fetchConversation','155gzhfyD','make-longer','upsertCustomAIReviewRating','releaseLock','fetchConversationMessages','uploadDocument','107334GRhFdM','DELETE','attributes','context','make-tone-formal','init','CloudServices','status','Bearer\x20','read','append','MAKE_TONE_CASUAL','feed','make-shorter','https://ai.cke-cs.com/v1','_decoder','limit','MAKE_TONE_FORMAL','fetchDocument','ai-request-aborted','85920FVVkeZ','text','group','isOfficialPlugin','plugins','/files','uploadUrl','deleteWebResource','AbortError','json','PUT','/reviews/system/','then','/actions/system/','config','MAKE_SHORTER','get','catch','ai-request-failed','parse','fetchConversations','FIX_GRAMMAR','/web-resources','CONTINUE','toString','stringify','decode','deleteConversation','queryAssistant','define','executeAction','/calls','Content-Type','638xXVYCo','pluginName','100','2457944cnEvhf','44FiovOH','positiveCount','token','GET','/web-resources/','message','/models/1?','/ratings','7EPniCm','upsertAIReviewRating','requires','/conversations?','deleteFile','/conversations','upsertAIActionRating','true','/messages/','excludeEmpty','PATCH','POST','fix-grammar','updateConversation','keys','5308690TQUham','body','MAKE_LONGER','3iJPAdD','3898292chTmHT','language','abortController','24446630rTCdTz','file','/reviews/custom/calls/','_handleError','request','upsertAIChatRating','startConversation','/conversations/','/documents/','code','continue','traceId','items','deleteDocument','AIConnector','callSystemReview','_getStreamReader','name','upsertCustomAIActionRating','executeCustomAction','TRANSLATE','signal','push','/files/','reset','_sendApiRequest','statusText','12512tMORQU','_apiUrl','ai.serviceUrl','modificationId','getModels','_token','/reviews/custom/calls','IMPROVE_WRITING','make-tone-casual','/documents','totalCount','uploadFile','/actions/custom/calls/','ai-missing-token','application/json','isPremiumPlugin','callCustomReview','/actions/custom/calls','search','translate','/messages','/calls/','length','improve-writing'];_0x52cd=function(){return _0x195e44;};return _0x52cd();}export var AIActionsNames;!function(_0x1507c1){const _0x4344eb=_0x45ba;_0x1507c1[_0x4344eb(0x18f)]=_0x4344eb(0x1c5),_0x1507c1[_0x4344eb(0x18d)]=_0x4344eb(0x1b1),_0x1507c1[_0x4344eb(0x1dd)]=_0x4344eb(0x1ed),_0x1507c1[_0x4344eb(0x1b6)]=_0x4344eb(0x15f),_0x1507c1[_0x4344eb(0x187)]=_0x4344eb(0x171),_0x1507c1[_0x4344eb(0x16f)]=_0x4344eb(0x1de),_0x1507c1[_0x4344eb(0x175)]=_0x4344eb(0x168),_0x1507c1[_0x4344eb(0x1cf)]=_0x4344eb(0x1e9);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x267803{[_0x999e19(0x1d7)];[_0x999e19(0x1db)];[_0x999e19(0x173)];static get[_0x999e19(0x1a7)](){const _0x40a448=_0x999e19;return[_0x40a448(0x16a)];}static get[_0x999e19(0x19a)](){const _0x3cb61d=_0x999e19;return _0x3cb61d(0x1c9);}static get[_0x999e19(0x17b)](){return!0x0;}static get[_0x999e19(0x1e5)](){return!0x0;}constructor(_0x526c1c){const _0x404b2f=_0x999e19;super(_0x526c1c),this[_0x404b2f(0x167)][_0x404b2f(0x186)][_0x404b2f(0x195)](_0x404b2f(0x1d8),_0x404b2f(0x172)),this[_0x404b2f(0x1d7)]=this[_0x404b2f(0x167)][_0x404b2f(0x186)][_0x404b2f(0x188)](_0x404b2f(0x1d8)),this[_0x404b2f(0x1db)]=null,this[_0x404b2f(0x173)]=new TextDecoder();}[_0x999e19(0x169)](){const _0x358109=_0x999e19,_0x4d58c5=this[_0x358109(0x167)][_0x358109(0x17c)][_0x358109(0x188)](_0x358109(0x16a));if(!_0x4d58c5[_0x358109(0x19f)])throw new _0x13c841(_0x358109(0x1e3),this);this[_0x358109(0x1db)]=_0x4d58c5[_0x358109(0x19f)];}[_0x999e19(0x1c1)](_0x4a8935,_0x39e632){const _0x2f33b3=_0x999e19,_0x1d624f=this[_0x2f33b3(0x1d4)](_0x2f33b3(0x1aa),_0x2f33b3(0x1b0),{'id':_0x4a8935,'group':_0x39e632});return{'getConversation':async()=>(await _0x1d624f[_0x2f33b3(0x1bf)])[_0x2f33b3(0x181)](),'abortController':_0x1d624f[_0x2f33b3(0x1ba)]};}[_0x999e19(0x194)]({message:_0xaae7a9,conversationId:_0x133b9e,parts:_0x1d69a9,capabilities:_0x34073c,model:_0x374672,quickActionData:_0x5904f9}){const _0x482af1=_0x999e19,_0x484560={..._0x5904f9&&{'quickActionData':_0x5904f9}},_0x394cb1={'prompt':_0xaae7a9,'content':_0x1d69a9,'model':_0x374672,..._0x34073c&&{'capabilities':_0x34073c},...Object[_0x482af1(0x1b3)](_0x484560)[_0x482af1(0x1ec)]>0x0&&{'attributes':_0x484560}},_0x4338e9=this[_0x482af1(0x1d4)](_0x482af1(0x1c2)+_0x133b9e+_0x482af1(0x1ea),_0x482af1(0x1b0),_0x394cb1);return{'getStream':async()=>{const _0x342ec1=_0x482af1,_0x270e3e=(await _0x4338e9[_0x342ec1(0x1bf)])[_0x342ec1(0x1b5)];return this[_0x342ec1(0x1cb)](_0x270e3e);},'abortController':_0x4338e9[_0x482af1(0x1ba)]};}[_0x999e19(0x1ce)]({content:_0x27d8b4,message:_0x3787e5,model:_0xd25eb1,outputFormat:_0x412f79}){const _0x2539c7=_0x999e19,_0x491d4d={'content':[{'type':_0x2539c7(0x179),'content':_0x27d8b4}],'prompt':_0x3787e5,'model':_0xd25eb1,'outputFormat':_0x412f79},_0x5a1f32=this[_0x2539c7(0x1d4)](_0x2539c7(0x1e7),_0x2539c7(0x1b0),_0x491d4d);return{'getStream':async()=>{const _0x4984f8=_0x2539c7,_0x907cb6=(await _0x5a1f32[_0x4984f8(0x1bf)])[_0x4984f8(0x1b5)];return this[_0x4984f8(0x1cb)](_0x907cb6);},'abortController':_0x5a1f32[_0x2539c7(0x1ba)]};}[_0x999e19(0x196)]({actionName:_0x5cce86,content:_0xce160f,args:_0x5e1aa2}){const _0x1d87d8=_0x999e19,_0x58828a={'content':[{'type':_0x1d87d8(0x179),'content':_0xce160f}],'args':_0x5e1aa2},_0x55d986=this[_0x1d87d8(0x1d4)](_0x1d87d8(0x185)+_0x5cce86+_0x1d87d8(0x197),_0x1d87d8(0x1b0),_0x58828a);return{'getStream':async()=>{const _0x97627c=_0x1d87d8,_0x5d628e=(await _0x55d986[_0x97627c(0x1bf)])[_0x97627c(0x1b5)];return this[_0x97627c(0x1cb)](_0x5d628e);},'abortController':_0x55d986[_0x1d87d8(0x1ba)]};}[_0x999e19(0x1e1)](_0x1345f1,_0x1089fe,_0xac7901){const _0x709ed1=_0x999e19,_0x8efb47=new FormData();_0x8efb47[_0x709ed1(0x16e)](_0x709ed1(0x1bc),_0x1089fe,_0x1089fe[_0x709ed1(0x1cc)]),_0xac7901&&_0x8efb47[_0x709ed1(0x16e)](_0x709ed1(0x166),JSON[_0x709ed1(0x191)](_0xac7901));const _0x387fac=this[_0x709ed1(0x1d4)](_0x709ed1(0x1c2)+_0x1345f1+_0x709ed1(0x17d),_0x709ed1(0x1b0),_0x8efb47);return{'getId':async()=>(await _0x387fac[_0x709ed1(0x1bf)])[_0x709ed1(0x181)](),'abortController':_0x387fac[_0x709ed1(0x1ba)]};}[_0x999e19(0x176)](_0x3e4eee,_0x2ec3c6){const _0x5ebcca=_0x999e19,_0x1de204=this[_0x5ebcca(0x1d4)](_0x5ebcca(0x1c2)+_0x3e4eee+_0x5ebcca(0x1c3)+_0x2ec3c6,_0x5ebcca(0x1a0));return{'getDocument':async()=>(await _0x1de204[_0x5ebcca(0x1bf)])[_0x5ebcca(0x181)](),'abortController':_0x1de204[_0x5ebcca(0x1ba)]};}[_0x999e19(0x163)](_0xa20387,_0x5c3e59,_0x3e51ba){const _0x578de7=_0x999e19,_0x1f15dc={'content':_0x5c3e59};_0x3e51ba&&(_0x1f15dc[_0x578de7(0x166)]=_0x3e51ba);const _0x9ea131=this[_0x578de7(0x1d4)](_0x578de7(0x1c2)+_0xa20387+_0x578de7(0x1df),_0x578de7(0x1b0),_0x1f15dc);return{'getId':async()=>(await _0x9ea131[_0x578de7(0x1bf)])[_0x578de7(0x181)](),'abortController':_0x9ea131[_0x578de7(0x1ba)]};}[_0x999e19(0x18c)](_0x3c48b4,_0x1da85c){const _0x404355=_0x999e19,_0x1a2942=new URLSearchParams();_0x1a2942[_0x404355(0x16e)](_0x404355(0x1ae),_0x404355(0x1ac)),_0x1a2942[_0x404355(0x16e)](_0x404355(0x174),_0x404355(0x19b)),_0x1a2942[_0x404355(0x16e)](_0x404355(0x17a),_0x3c48b4),_0x1da85c&&_0x1a2942[_0x404355(0x16e)](_0x404355(0x1e8),_0x1da85c);const _0x42495c=this[_0x404355(0x1d4)](_0x404355(0x1a8)+_0x1a2942[_0x404355(0x190)](),_0x404355(0x1a0));return{'getConversations':async()=>{const _0x28096c=_0x404355,_0x39b727=await _0x42495c[_0x28096c(0x1bf)];return(await _0x39b727[_0x28096c(0x181)]())[_0x28096c(0x1c7)];},'abortController':_0x42495c[_0x404355(0x1ba)]};}[_0x999e19(0x193)](_0xdca692){const _0x45d2c3=_0x999e19,_0x18f2ee=this[_0x45d2c3(0x1d4)](_0x45d2c3(0x1c2)+_0xdca692,_0x45d2c3(0x165));return{'execute':async()=>{const _0x29b535=_0x45d2c3;await _0x18f2ee[_0x29b535(0x1bf)];},'abortController':_0x18f2ee[_0x45d2c3(0x1ba)]};}[_0x999e19(0x1b2)](_0xec11a3,_0x4ff0c2){const _0x4aebd4=_0x999e19,_0x19908c=this[_0x4aebd4(0x1d4)](_0x4aebd4(0x1c2)+_0xec11a3,_0x4aebd4(0x1af),_0x4ff0c2);return{'getResult':async()=>(await _0x19908c[_0x4aebd4(0x1bf)],_0x4ff0c2),'abortController':_0x19908c[_0x4aebd4(0x1ba)]};}[_0x999e19(0x15d)](_0x43763b){const _0x587b98=_0x999e19,_0x16b3c4=this[_0x587b98(0x1d4)](_0x587b98(0x1c2)+_0x43763b,_0x587b98(0x1a0));return{'getConversation':async()=>(await _0x16b3c4[_0x587b98(0x1bf)])[_0x587b98(0x181)](),'abortController':_0x16b3c4[_0x587b98(0x1ba)]};}[_0x999e19(0x162)](_0x5538ef){const _0x5bfcb4=_0x999e19,_0x35b416=this[_0x5bfcb4(0x1d4)](_0x5bfcb4(0x1c2)+_0x5538ef+_0x5bfcb4(0x1ea),_0x5bfcb4(0x1a0));return{'getMessages':async()=>{const _0x43a775=_0x5bfcb4,_0x1969f1=await _0x35b416[_0x43a775(0x1bf)];return(await _0x1969f1[_0x43a775(0x181)]())[_0x43a775(0x1c7)];},'abortController':_0x35b416[_0x5bfcb4(0x1ba)]};}[_0x999e19(0x17e)](_0x2932fb,_0x2e35f8,_0x18638a){const _0x397e6a=_0x999e19,_0x5cfef5=this[_0x397e6a(0x1d4)](_0x397e6a(0x1c2)+_0x2932fb+_0x397e6a(0x18e),_0x397e6a(0x1b0),{'url':_0x2e35f8,'attributes':_0x18638a});return{'getId':async()=>(await _0x5cfef5[_0x397e6a(0x1bf)])[_0x397e6a(0x181)](),'abortController':_0x5cfef5[_0x397e6a(0x1ba)]};}[_0x999e19(0x1da)](_0x37a4a2='en'){const _0x4f764f=_0x999e19,_0x1cae19=new URLSearchParams();_0x1cae19[_0x4f764f(0x16e)](_0x4f764f(0x1b9),_0x37a4a2);const _0x461940=_0x4f764f(0x1a3)+_0x1cae19[_0x4f764f(0x190)](),_0x4d3e41=this[_0x4f764f(0x1d4)](_0x461940,_0x4f764f(0x1a0));return{'list':async()=>await(await _0x4d3e41[_0x4f764f(0x1bf)])[_0x4f764f(0x181)](),'abortController':_0x4d3e41[_0x4f764f(0x1ba)]};}[_0x999e19(0x1a9)](_0x19024d,_0x4cb4e2){const _0x23d999=_0x999e19,_0x2cf8ee=this[_0x23d999(0x1d4)](_0x23d999(0x1c2)+_0x19024d+_0x23d999(0x1d2)+_0x4cb4e2,_0x23d999(0x165));return{'execute':async()=>{const _0x578572=_0x23d999;await _0x2cf8ee[_0x578572(0x1bf)];},'abortController':_0x2cf8ee[_0x23d999(0x1ba)]};}[_0x999e19(0x1c8)](_0x5100c6,_0x9afb6d){const _0x5e0607=_0x999e19,_0x25219e=this[_0x5e0607(0x1d4)](_0x5e0607(0x1c2)+_0x5100c6+_0x5e0607(0x1c3)+_0x9afb6d,_0x5e0607(0x165));return{'execute':async()=>{const _0x1be8c2=_0x5e0607;await _0x25219e[_0x1be8c2(0x1bf)];},'abortController':_0x25219e[_0x5e0607(0x1ba)]};}[_0x999e19(0x17f)](_0x16858,_0x4b82e0){const _0x44fea=_0x999e19,_0x1c2875=this[_0x44fea(0x1d4)](_0x44fea(0x1c2)+_0x16858+_0x44fea(0x1a1)+_0x4b82e0,_0x44fea(0x165));return{'execute':async()=>{const _0x52472f=_0x44fea;await _0x1c2875[_0x52472f(0x1bf)];},'abortController':_0x1c2875[_0x44fea(0x1ba)]};}[_0x999e19(0x1ca)]({reviewName:_0x4da533,content:_0x5e26a5,args:_0x39dfcb}){const _0x1612c7=_0x999e19,_0x3c3674=this[_0x1612c7(0x1d4)](_0x1612c7(0x183)+_0x4da533+_0x1612c7(0x197),_0x1612c7(0x1b0),{'content':[{'type':_0x1612c7(0x179),'content':_0x5e26a5}],'args':_0x39dfcb});return{'getStream':async()=>{const _0x216410=_0x1612c7,_0x22fa5f=(await _0x3c3674[_0x216410(0x1bf)])[_0x216410(0x1b5)];return this[_0x216410(0x1cb)](_0x22fa5f);},'abortController':_0x3c3674[_0x1612c7(0x1ba)]};}[_0x999e19(0x1e6)]({content:_0x21bc01,prompt:_0x116dab,model:_0x1f4954}){const _0x4e5676=_0x999e19,_0x4b15e2=this[_0x4e5676(0x1d4)](_0x4e5676(0x1dc),_0x4e5676(0x1b0),{'content':[{'type':_0x4e5676(0x179),'content':_0x21bc01}],'prompt':_0x116dab,'model':_0x1f4954});return{'getStream':async()=>{const _0x1b5f1a=_0x4e5676,_0x4d97b8=(await _0x4b15e2[_0x1b5f1a(0x1bf)])[_0x1b5f1a(0x1b5)];return this[_0x1b5f1a(0x1cb)](_0x4d97b8);},'abortController':_0x4b15e2[_0x4e5676(0x1ba)]};}[_0x999e19(0x1c0)](_0xa48a06,_0x362375,_0x2b99f0){const _0x273f37=_0x999e19,_0x4ece05=this[_0x273f37(0x1d4)](_0x273f37(0x1c2)+_0xa48a06+_0x273f37(0x1ad)+_0x362375+_0x273f37(0x1a4),_0x273f37(0x182),{'positiveCount':_0x2b99f0[_0x273f37(0x19e)],'totalCount':_0x2b99f0[_0x273f37(0x1e0)],'modificationId':_0x2b99f0[_0x273f37(0x1d9)]});return{'execute':async()=>{const _0x5ef030=_0x273f37;await _0x4ece05[_0x5ef030(0x1bf)];},'abortController':_0x4ece05[_0x273f37(0x1ba)]};}[_0x999e19(0x1ab)](_0x3cd72e,_0x18f03f,_0x1f59d6){const _0x4a1b6f=_0x999e19,_0x50e197=this[_0x4a1b6f(0x1d4)](_0x4a1b6f(0x185)+_0x3cd72e+_0x4a1b6f(0x1eb)+_0x18f03f+_0x4a1b6f(0x1a4),_0x4a1b6f(0x182),{'positiveCount':_0x1f59d6[_0x4a1b6f(0x19e)],'totalCount':_0x1f59d6[_0x4a1b6f(0x1e0)]});return{'execute':async()=>{const _0x5f42c5=_0x4a1b6f;await _0x50e197[_0x5f42c5(0x1bf)];},'abortController':_0x50e197[_0x4a1b6f(0x1ba)]};}[_0x999e19(0x1cd)](_0x6dce0f,_0x5a60ec){const _0x498e2f=_0x999e19,_0x3406ae=this[_0x498e2f(0x1d4)](_0x498e2f(0x1e2)+_0x6dce0f+_0x498e2f(0x1a4),_0x498e2f(0x182),{'positiveCount':_0x5a60ec[_0x498e2f(0x19e)],'totalCount':_0x5a60ec[_0x498e2f(0x1e0)]});return{'execute':async()=>{const _0x3ff520=_0x498e2f;await _0x3406ae[_0x3ff520(0x1bf)];},'abortController':_0x3406ae[_0x498e2f(0x1ba)]};}[_0x999e19(0x1a6)](_0x2ce812,_0x1efe72,_0x369639,_0x5da46f){const _0x212197=_0x999e19,_0x319d30=this[_0x212197(0x1d4)](_0x212197(0x183)+_0x2ce812+_0x212197(0x1eb)+_0x1efe72+_0x212197(0x1a4),_0x212197(0x182),{'positiveCount':_0x369639[_0x212197(0x19e)],'totalCount':_0x369639[_0x212197(0x1e0)],'dataId':_0x5da46f});return{'execute':async()=>{const _0x51d011=_0x212197;await _0x319d30[_0x51d011(0x1bf)];},'abortController':_0x319d30[_0x212197(0x1ba)]};}[_0x999e19(0x160)](_0xeacabd,_0x35ea33,_0x3dd2f8){const _0x2bf5c1=_0x999e19,_0x54f489=this[_0x2bf5c1(0x1d4)](_0x2bf5c1(0x1bd)+_0xeacabd+_0x2bf5c1(0x1a4),_0x2bf5c1(0x182),{'positiveCount':_0x35ea33[_0x2bf5c1(0x19e)],'totalCount':_0x35ea33[_0x2bf5c1(0x1e0)],'dataId':_0x3dd2f8});return{'execute':async()=>{const _0x6be3b3=_0x2bf5c1;await _0x54f489[_0x6be3b3(0x1bf)];},'abortController':_0x54f489[_0x2bf5c1(0x1ba)]};}[_0x999e19(0x1d4)](_0x394025,_0x43ccd7,_0x5bc19d){const _0x20bb28=_0x999e19,_0xe8cc5=new AbortController(),_0x599cb3=_0x5bc19d instanceof FormData,_0x586e89={'Authorization':_0x20bb28(0x16c)+this[_0x20bb28(0x1db)]?.[_0x20bb28(0x1f0)]};_0x5bc19d&&!_0x599cb3&&(_0x586e89[_0x20bb28(0x198)]=_0x20bb28(0x1e4));const _0x32b2c3={'method':_0x43ccd7,'headers':_0x586e89,'signal':_0xe8cc5[_0x20bb28(0x1d0)]};return _0x5bc19d&&(_0x32b2c3[_0x20bb28(0x1b5)]=_0x599cb3?_0x5bc19d:JSON[_0x20bb28(0x191)](_0x5bc19d)),{'request':fetch(''+this[_0x20bb28(0x1d7)]+_0x394025,_0x32b2c3)[_0x20bb28(0x189)](_0xfdbd3a=>{const _0x3a60b7=_0x20bb28;this[_0x3a60b7(0x1be)](_0xfdbd3a);})[_0x20bb28(0x184)](_0xec1756=>_0xec1756['ok']?_0xec1756:_0xec1756[_0x20bb28(0x181)]()[_0x20bb28(0x184)](_0x44f358=>{const _0x527ab8=_0x20bb28;throw{'url':this[_0x527ab8(0x1d7)],'path':_0x394025,'method':_0x43ccd7,'body':_0x5bc19d,'status':(_0xec1756||{})[_0x527ab8(0x16b)],'statusText':(_0xec1756||{})[_0x527ab8(0x1d5)],'code':_0x44f358[_0x527ab8(0x1c4)],'message':_0x44f358[_0x527ab8(0x1a2)],'traceId':_0x44f358[_0x527ab8(0x1c6)]};})),'abortController':_0xe8cc5};}async*[_0x999e19(0x1cb)](_0x1ecf42){const _0x3761d0=_0x999e19,_0x14379a=[],_0x1b8e9f=_0x1ecf42[_0x3761d0(0x15c)](),_0x3ce99b=_0x42e2dc({'onError':_0x2ab245=>{const _0x103d05=_0x3761d0;this[_0x103d05(0x1be)](_0x2ab245);},'onEvent':_0x240ceb=>{const _0xca1376=_0x3761d0;_0x240ceb[_0xca1376(0x1ee)]=JSON[_0xca1376(0x18b)](_0x240ceb[_0xca1376(0x1ee)]),_0x14379a[_0xca1376(0x1d1)](_0x240ceb);}});try{let _0x100a88=!0x1;for(;!_0x100a88;){const {done:_0x102e4c,value:_0xdfc6a3}=await _0x1b8e9f[_0x3761d0(0x16d)]();_0x102e4c&&(_0x100a88=!0x0),_0x3ce99b[_0x3761d0(0x170)](this[_0x3761d0(0x173)][_0x3761d0(0x192)](_0xdfc6a3,{'stream':!0x0})),yield*_0x14379a,_0x14379a[_0x3761d0(0x1ec)]=0x0;}}catch(_0x43f139){this[_0x3761d0(0x1be)](_0x43f139);}finally{_0x1b8e9f[_0x3761d0(0x161)](),_0x3ce99b[_0x3761d0(0x1d3)]();}}[_0x999e19(0x1be)](_0x10068b){const _0x1ecfcf=_0x999e19;if(_0x10068b instanceof _0x13c841)throw _0x10068b;if(_0x10068b instanceof Error&&_0x1ecfcf(0x180)===_0x10068b[_0x1ecfcf(0x1cc)])throw new _0x13c841(_0x1ecfcf(0x177),this,{'originalError':_0x10068b});throw new _0x13c841(_0x1ecfcf(0x18a),this,{'originalError':_0x10068b});}}
|
|
23
|
+
const _0x47fb91=_0x2650;(function(_0x438aaa,_0x598610){const _0x16535c=_0x2650,_0x5406df=_0x438aaa();while(!![]){try{const _0x5a2795=-parseInt(_0x16535c(0x1d5))/0x1*(-parseInt(_0x16535c(0x1e3))/0x2)+parseInt(_0x16535c(0x239))/0x3+parseInt(_0x16535c(0x253))/0x4*(-parseInt(_0x16535c(0x251))/0x5)+parseInt(_0x16535c(0x200))/0x6*(-parseInt(_0x16535c(0x259))/0x7)+parseInt(_0x16535c(0x22a))/0x8+parseInt(_0x16535c(0x20b))/0x9+-parseInt(_0x16535c(0x1de))/0xa;if(_0x5a2795===_0x598610)break;else _0x5406df['push'](_0x5406df['shift']());}catch(_0x3cad55){_0x5406df['push'](_0x5406df['shift']());}}}(_0x25d4,0x8074f));import{createParser as _0x4434a8}from'eventsource-parser';import{ContextPlugin as _0x506264}from'ckeditor5/src/core.js';function _0x25d4(){const _0x2d376a=['/messages/','json','stringify','MAKE_TONE_CASUAL','/web-resources','_sendApiRequest','deleteDocument','1009495ExpncI','upsertAIActionRating','8ibUGIs','ai.serviceUrl','application/json','make-tone-formal','ai-request-aborted','/messages','4823ilBZbm','statusText','limit','AbortError','continue','then','fetchConversationMessages','POST','PUT','token','100','getReader','updateConversation','releaseLock','27226PkeZWu','/actions/system/','feed','length','/documents/','excludeEmpty','group','executeAction','positiveCount','22604280yqCldV','items','fix-grammar','/conversations?','push','74lMufIe','/conversations','attributes','context','/files/','Bearer\x20','_handleError','read','uploadFile','keys','isPremiumPlugin','/ratings','/calls/','modificationId','/models/1?','totalCount','search','catch','deleteConversation','/reviews/system/','make-tone-casual','data','CloudServices','fetchConversation','uploadUrl','/files','_getStreamReader','pluginName','deleteWebResource','1770ttmRaX','/web-resources/','callSystemReview','CONTINUE','init','/documents','/calls','/actions/custom/calls','get','config','FIX_GRAMMAR','7293042FLaaiE','name','fetchConversations','message','body','callCustomReview','isOfficialPlugin','ai-missing-token','/reviews/custom/calls/','decode','/actions/custom/calls/','text','MAKE_LONGER','MAKE_SHORTER','fetchDocument','reset','toString','traceId','getModels','file','/conversations/','IMPROVE_WRITING','signal','GET','/reviews/custom/calls','AIConnector','make-longer','uploadDocument','_apiUrl','plugins','_token','7648872cZgXNF','upsertCustomAIReviewRating','_decoder','make-shorter','append','PATCH','executeCustomAction','parse','queryAssistant','ai-request-failed','upsertAIChatRating','request','abortController','code','TRANSLATE','1859493SzjpOS','define','true','Content-Type','DELETE','MAKE_TONE_FORMAL','status','https://ai.cke-cs.com/v1','translate','deleteFile','upsertCustomAIActionRating','requires','startConversation','value','language','upsertAIReviewRating','improve-writing'];_0x25d4=function(){return _0x2d376a;};return _0x25d4();}import{CKEditorError as _0x31869f}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x4dc2ab){const _0x2d7435=_0x2650;_0x4dc2ab[_0x2d7435(0x203)]=_0x2d7435(0x25d),_0x4dc2ab[_0x2d7435(0x20a)]=_0x2d7435(0x1e0),_0x4dc2ab[_0x2d7435(0x220)]=_0x2d7435(0x249),_0x4dc2ab[_0x2d7435(0x217)]=_0x2d7435(0x225),_0x4dc2ab[_0x2d7435(0x218)]=_0x2d7435(0x22d),_0x4dc2ab[_0x2d7435(0x24d)]=_0x2d7435(0x1f7),_0x4dc2ab[_0x2d7435(0x23e)]=_0x2d7435(0x256),_0x4dc2ab[_0x2d7435(0x238)]=_0x2d7435(0x241);}(AIActionsNames||(AIActionsNames={}));function _0x2650(_0x1c9edd,_0x11a73e){const _0x25d42a=_0x25d4();return _0x2650=function(_0x265007,_0x4a96c8){_0x265007=_0x265007-0x1d4;let _0x1329d7=_0x25d42a[_0x265007];return _0x1329d7;},_0x2650(_0x1c9edd,_0x11a73e);}export class AIConnector extends _0x506264{[_0x47fb91(0x227)];[_0x47fb91(0x229)];[_0x47fb91(0x22c)];static get[_0x47fb91(0x244)](){const _0x3f5631=_0x47fb91;return[_0x3f5631(0x1f9)];}static get[_0x47fb91(0x1fe)](){const _0x1b7feb=_0x47fb91;return _0x1b7feb(0x224);}static get[_0x47fb91(0x211)](){return!0x0;}static get[_0x47fb91(0x1ed)](){return!0x0;}constructor(_0x6df2e7){const _0x53410d=_0x47fb91;super(_0x6df2e7),this[_0x53410d(0x1e6)][_0x53410d(0x209)][_0x53410d(0x23a)](_0x53410d(0x254),_0x53410d(0x240)),this[_0x53410d(0x227)]=this[_0x53410d(0x1e6)][_0x53410d(0x209)][_0x53410d(0x208)](_0x53410d(0x254)),this[_0x53410d(0x229)]=null,this[_0x53410d(0x22c)]=new TextDecoder();}[_0x47fb91(0x204)](){const _0x97589a=_0x47fb91,_0x592c41=this[_0x97589a(0x1e6)][_0x97589a(0x228)][_0x97589a(0x208)](_0x97589a(0x1f9));if(!_0x592c41[_0x97589a(0x262)])throw new _0x31869f(_0x97589a(0x212),this);this[_0x97589a(0x229)]=_0x592c41[_0x97589a(0x262)];}[_0x47fb91(0x245)](_0x365241,_0x13aff1){const _0x379ba9=_0x47fb91,_0x4ee629=this[_0x379ba9(0x24f)](_0x379ba9(0x1e4),_0x379ba9(0x260),{'id':_0x365241,'group':_0x13aff1});return{'getConversation':async()=>(await _0x4ee629[_0x379ba9(0x235)])[_0x379ba9(0x24b)](),'abortController':_0x4ee629[_0x379ba9(0x236)]};}[_0x47fb91(0x232)]({message:_0x587f47,conversationId:_0x477a4c,parts:_0x4a25e5,capabilities:_0x47bf56,model:_0x4266c4,quickActionData:_0x367ec1}){const _0x455235=_0x47fb91,_0x2a3da5={..._0x367ec1&&{'quickActionData':_0x367ec1}},_0x440150={'prompt':_0x587f47,'content':_0x4a25e5,'model':_0x4266c4,..._0x47bf56&&{'capabilities':_0x47bf56},...Object[_0x455235(0x1ec)](_0x2a3da5)[_0x455235(0x1d8)]>0x0&&{'attributes':_0x2a3da5}},_0x22ffcf=this[_0x455235(0x24f)](_0x455235(0x21f)+_0x477a4c+_0x455235(0x258),_0x455235(0x260),_0x440150);return{'getStream':async()=>{const _0x553385=_0x455235,_0x425cd7=(await _0x22ffcf[_0x553385(0x235)])[_0x553385(0x20f)];return this[_0x553385(0x1fd)](_0x425cd7);},'abortController':_0x22ffcf[_0x455235(0x236)]};}[_0x47fb91(0x230)]({content:_0x3c1050,message:_0x574495,model:_0x36673e,outputFormat:_0x5aaa71}){const _0x1abdc0=_0x47fb91,_0x39cc2f={'content':[{'type':_0x1abdc0(0x216),'content':_0x3c1050}],'prompt':_0x574495,'model':_0x36673e,'outputFormat':_0x5aaa71},_0x4ebb1d=this[_0x1abdc0(0x24f)](_0x1abdc0(0x207),_0x1abdc0(0x260),_0x39cc2f);return{'getStream':async()=>{const _0x41e953=_0x1abdc0,_0x470f6a=(await _0x4ebb1d[_0x41e953(0x235)])[_0x41e953(0x20f)];return this[_0x41e953(0x1fd)](_0x470f6a);},'abortController':_0x4ebb1d[_0x1abdc0(0x236)]};}[_0x47fb91(0x1dc)]({actionName:_0x524078,content:_0x1949df,args:_0x18fe22}){const _0x583899=_0x47fb91,_0x66ce49={'content':[{'type':_0x583899(0x216),'content':_0x1949df}],'args':_0x18fe22},_0x376c57=this[_0x583899(0x24f)](_0x583899(0x1d6)+_0x524078+_0x583899(0x206),_0x583899(0x260),_0x66ce49);return{'getStream':async()=>{const _0x573dab=_0x583899,_0x4b0445=(await _0x376c57[_0x573dab(0x235)])[_0x573dab(0x20f)];return this[_0x573dab(0x1fd)](_0x4b0445);},'abortController':_0x376c57[_0x583899(0x236)]};}[_0x47fb91(0x1eb)](_0x193e04,_0x2cd3ff,_0x248789){const _0x30b950=_0x47fb91,_0x324df2=new FormData();_0x324df2[_0x30b950(0x22e)](_0x30b950(0x21e),_0x2cd3ff,_0x2cd3ff[_0x30b950(0x20c)]),_0x248789&&_0x324df2[_0x30b950(0x22e)](_0x30b950(0x1e5),JSON[_0x30b950(0x24c)](_0x248789));const _0x32ce09=this[_0x30b950(0x24f)](_0x30b950(0x21f)+_0x193e04+_0x30b950(0x1fc),_0x30b950(0x260),_0x324df2);return{'getId':async()=>(await _0x32ce09[_0x30b950(0x235)])[_0x30b950(0x24b)](),'abortController':_0x32ce09[_0x30b950(0x236)]};}[_0x47fb91(0x219)](_0x1556ca,_0x57008f){const _0x275dfc=_0x47fb91,_0x3d567e=this[_0x275dfc(0x24f)](_0x275dfc(0x21f)+_0x1556ca+_0x275dfc(0x1d9)+_0x57008f,_0x275dfc(0x222));return{'getDocument':async()=>(await _0x3d567e[_0x275dfc(0x235)])[_0x275dfc(0x24b)](),'abortController':_0x3d567e[_0x275dfc(0x236)]};}[_0x47fb91(0x226)](_0x16001b,_0x2139ae,_0xf90be9){const _0x49c5e2=_0x47fb91,_0x1ce7c6={'content':_0x2139ae};_0xf90be9&&(_0x1ce7c6[_0x49c5e2(0x1e5)]=_0xf90be9);const _0x4d705d=this[_0x49c5e2(0x24f)](_0x49c5e2(0x21f)+_0x16001b+_0x49c5e2(0x205),_0x49c5e2(0x260),_0x1ce7c6);return{'getId':async()=>(await _0x4d705d[_0x49c5e2(0x235)])[_0x49c5e2(0x24b)](),'abortController':_0x4d705d[_0x49c5e2(0x236)]};}[_0x47fb91(0x20d)](_0x31ffcf,_0x5548b9){const _0x211421=_0x47fb91,_0x1b2834=new URLSearchParams();_0x1b2834[_0x211421(0x22e)](_0x211421(0x1da),_0x211421(0x23b)),_0x1b2834[_0x211421(0x22e)](_0x211421(0x25b),_0x211421(0x263)),_0x1b2834[_0x211421(0x22e)](_0x211421(0x1db),_0x31ffcf),_0x5548b9&&_0x1b2834[_0x211421(0x22e)](_0x211421(0x1f3),_0x5548b9);const _0x3199c3=this[_0x211421(0x24f)](_0x211421(0x1e1)+_0x1b2834[_0x211421(0x21b)](),_0x211421(0x222));return{'getConversations':async()=>{const _0x4976c4=_0x211421,_0x55efdc=await _0x3199c3[_0x4976c4(0x235)];return(await _0x55efdc[_0x4976c4(0x24b)]())[_0x4976c4(0x1df)];},'abortController':_0x3199c3[_0x211421(0x236)]};}[_0x47fb91(0x1f5)](_0x1468c1){const _0xda8c3c=_0x47fb91,_0x4b7191=this[_0xda8c3c(0x24f)](_0xda8c3c(0x21f)+_0x1468c1,_0xda8c3c(0x23d));return{'execute':async()=>{const _0x1cd4ba=_0xda8c3c;await _0x4b7191[_0x1cd4ba(0x235)];},'abortController':_0x4b7191[_0xda8c3c(0x236)]};}[_0x47fb91(0x265)](_0x2a7f2f,_0x562809){const _0x1841db=_0x47fb91,_0x103f0f=this[_0x1841db(0x24f)](_0x1841db(0x21f)+_0x2a7f2f,_0x1841db(0x22f),_0x562809);return{'getResult':async()=>(await _0x103f0f[_0x1841db(0x235)],_0x562809),'abortController':_0x103f0f[_0x1841db(0x236)]};}[_0x47fb91(0x1fa)](_0x32b8d1){const _0x2c7976=_0x47fb91,_0x359632=this[_0x2c7976(0x24f)](_0x2c7976(0x21f)+_0x32b8d1,_0x2c7976(0x222));return{'getConversation':async()=>(await _0x359632[_0x2c7976(0x235)])[_0x2c7976(0x24b)](),'abortController':_0x359632[_0x2c7976(0x236)]};}[_0x47fb91(0x25f)](_0x237e13){const _0x13c22b=_0x47fb91,_0x2bb493=this[_0x13c22b(0x24f)](_0x13c22b(0x21f)+_0x237e13+_0x13c22b(0x258),_0x13c22b(0x222));return{'getMessages':async()=>{const _0x4206f8=_0x13c22b,_0x31f1f5=await _0x2bb493[_0x4206f8(0x235)];return(await _0x31f1f5[_0x4206f8(0x24b)]())[_0x4206f8(0x1df)];},'abortController':_0x2bb493[_0x13c22b(0x236)]};}[_0x47fb91(0x1fb)](_0x41bf1c,_0x44d16a,_0x3b0081){const _0x4bcad3=_0x47fb91,_0xd5e7d8=this[_0x4bcad3(0x24f)](_0x4bcad3(0x21f)+_0x41bf1c+_0x4bcad3(0x24e),_0x4bcad3(0x260),{'url':_0x44d16a,'attributes':_0x3b0081});return{'getId':async()=>(await _0xd5e7d8[_0x4bcad3(0x235)])[_0x4bcad3(0x24b)](),'abortController':_0xd5e7d8[_0x4bcad3(0x236)]};}[_0x47fb91(0x21d)](_0x3aa6c2='en'){const _0x244b4f=_0x47fb91,_0x572245=new URLSearchParams();_0x572245[_0x244b4f(0x22e)](_0x244b4f(0x247),_0x3aa6c2);const _0x374531=_0x244b4f(0x1f1)+_0x572245[_0x244b4f(0x21b)](),_0x78703a=this[_0x244b4f(0x24f)](_0x374531,_0x244b4f(0x222));return{'list':async()=>await(await _0x78703a[_0x244b4f(0x235)])[_0x244b4f(0x24b)](),'abortController':_0x78703a[_0x244b4f(0x236)]};}[_0x47fb91(0x242)](_0x4bebe5,_0x1225ce){const _0x1c56c8=_0x47fb91,_0x176c74=this[_0x1c56c8(0x24f)](_0x1c56c8(0x21f)+_0x4bebe5+_0x1c56c8(0x1e7)+_0x1225ce,_0x1c56c8(0x23d));return{'execute':async()=>{const _0x42062c=_0x1c56c8;await _0x176c74[_0x42062c(0x235)];},'abortController':_0x176c74[_0x1c56c8(0x236)]};}[_0x47fb91(0x250)](_0x1ec6bb,_0x1ad675){const _0x131619=_0x47fb91,_0x5cd82f=this[_0x131619(0x24f)](_0x131619(0x21f)+_0x1ec6bb+_0x131619(0x1d9)+_0x1ad675,_0x131619(0x23d));return{'execute':async()=>{const _0x48555e=_0x131619;await _0x5cd82f[_0x48555e(0x235)];},'abortController':_0x5cd82f[_0x131619(0x236)]};}[_0x47fb91(0x1ff)](_0x507c06,_0x794d3c){const _0x5273f8=_0x47fb91,_0x1b5d9e=this[_0x5273f8(0x24f)](_0x5273f8(0x21f)+_0x507c06+_0x5273f8(0x201)+_0x794d3c,_0x5273f8(0x23d));return{'execute':async()=>{const _0x2d6630=_0x5273f8;await _0x1b5d9e[_0x2d6630(0x235)];},'abortController':_0x1b5d9e[_0x5273f8(0x236)]};}[_0x47fb91(0x202)]({reviewName:_0xe047cf,content:_0x5615d2,args:_0xa4dac4}){const _0x351f98=_0x47fb91,_0x23b880=this[_0x351f98(0x24f)](_0x351f98(0x1f6)+_0xe047cf+_0x351f98(0x206),_0x351f98(0x260),{'content':[{'type':_0x351f98(0x216),'content':_0x5615d2}],'args':_0xa4dac4});return{'getStream':async()=>{const _0x1e8b16=_0x351f98,_0x376b5f=(await _0x23b880[_0x1e8b16(0x235)])[_0x1e8b16(0x20f)];return this[_0x1e8b16(0x1fd)](_0x376b5f);},'abortController':_0x23b880[_0x351f98(0x236)]};}[_0x47fb91(0x210)]({content:_0x1fc615,prompt:_0x2f806f,model:_0xfdbcab}){const _0x3bf28d=_0x47fb91,_0x1d35a2=this[_0x3bf28d(0x24f)](_0x3bf28d(0x223),_0x3bf28d(0x260),{'content':[{'type':_0x3bf28d(0x216),'content':_0x1fc615}],'prompt':_0x2f806f,'model':_0xfdbcab});return{'getStream':async()=>{const _0x3f2e22=_0x3bf28d,_0x3e3ec3=(await _0x1d35a2[_0x3f2e22(0x235)])[_0x3f2e22(0x20f)];return this[_0x3f2e22(0x1fd)](_0x3e3ec3);},'abortController':_0x1d35a2[_0x3bf28d(0x236)]};}[_0x47fb91(0x234)](_0x2ba8af,_0x1a4a61,_0x1be450){const _0x3a83ae=_0x47fb91,_0x45084c=this[_0x3a83ae(0x24f)](_0x3a83ae(0x21f)+_0x2ba8af+_0x3a83ae(0x24a)+_0x1a4a61+_0x3a83ae(0x1ee),_0x3a83ae(0x261),{'positiveCount':_0x1be450[_0x3a83ae(0x1dd)],'totalCount':_0x1be450[_0x3a83ae(0x1f2)],'modificationId':_0x1be450[_0x3a83ae(0x1f0)]});return{'execute':async()=>{const _0x1dc78c=_0x3a83ae;await _0x45084c[_0x1dc78c(0x235)];},'abortController':_0x45084c[_0x3a83ae(0x236)]};}[_0x47fb91(0x252)](_0x4c51b6,_0x3e5cda,_0x33331d){const _0x5ceeb4=_0x47fb91,_0x436665=this[_0x5ceeb4(0x24f)](_0x5ceeb4(0x1d6)+_0x4c51b6+_0x5ceeb4(0x1ef)+_0x3e5cda+_0x5ceeb4(0x1ee),_0x5ceeb4(0x261),{'positiveCount':_0x33331d[_0x5ceeb4(0x1dd)],'totalCount':_0x33331d[_0x5ceeb4(0x1f2)]});return{'execute':async()=>{const _0x3945d4=_0x5ceeb4;await _0x436665[_0x3945d4(0x235)];},'abortController':_0x436665[_0x5ceeb4(0x236)]};}[_0x47fb91(0x243)](_0x552a88,_0x5a352e){const _0x4fef1f=_0x47fb91,_0x3e7504=this[_0x4fef1f(0x24f)](_0x4fef1f(0x215)+_0x552a88+_0x4fef1f(0x1ee),_0x4fef1f(0x261),{'positiveCount':_0x5a352e[_0x4fef1f(0x1dd)],'totalCount':_0x5a352e[_0x4fef1f(0x1f2)]});return{'execute':async()=>{const _0x825aba=_0x4fef1f;await _0x3e7504[_0x825aba(0x235)];},'abortController':_0x3e7504[_0x4fef1f(0x236)]};}[_0x47fb91(0x248)](_0x332dbe,_0xb9070,_0x864b14,_0x3540d9){const _0x1a10fd=_0x47fb91,_0x166f8c=this[_0x1a10fd(0x24f)](_0x1a10fd(0x1f6)+_0x332dbe+_0x1a10fd(0x1ef)+_0xb9070+_0x1a10fd(0x1ee),_0x1a10fd(0x261),{'positiveCount':_0x864b14[_0x1a10fd(0x1dd)],'totalCount':_0x864b14[_0x1a10fd(0x1f2)],'dataId':_0x3540d9});return{'execute':async()=>{const _0x2b4c5f=_0x1a10fd;await _0x166f8c[_0x2b4c5f(0x235)];},'abortController':_0x166f8c[_0x1a10fd(0x236)]};}[_0x47fb91(0x22b)](_0x2ccf8e,_0x38e811,_0x370c0a){const _0x2996e8=_0x47fb91,_0x4b02c2=this[_0x2996e8(0x24f)](_0x2996e8(0x213)+_0x2ccf8e+_0x2996e8(0x1ee),_0x2996e8(0x261),{'positiveCount':_0x38e811[_0x2996e8(0x1dd)],'totalCount':_0x38e811[_0x2996e8(0x1f2)],'dataId':_0x370c0a});return{'execute':async()=>{const _0xa90fe8=_0x2996e8;await _0x4b02c2[_0xa90fe8(0x235)];},'abortController':_0x4b02c2[_0x2996e8(0x236)]};}[_0x47fb91(0x24f)](_0x2d00bd,_0x1eb38c,_0x1697d3){const _0x13f1a2=_0x47fb91,_0x221849=new AbortController(),_0x120aff=_0x1697d3 instanceof FormData,_0x31d02a={'Authorization':_0x13f1a2(0x1e8)+this[_0x13f1a2(0x229)]?.[_0x13f1a2(0x246)]};_0x1697d3&&!_0x120aff&&(_0x31d02a[_0x13f1a2(0x23c)]=_0x13f1a2(0x255));const _0x4a9e5d={'method':_0x1eb38c,'headers':_0x31d02a,'signal':_0x221849[_0x13f1a2(0x221)]};return _0x1697d3&&(_0x4a9e5d[_0x13f1a2(0x20f)]=_0x120aff?_0x1697d3:JSON[_0x13f1a2(0x24c)](_0x1697d3)),{'request':fetch(''+this[_0x13f1a2(0x227)]+_0x2d00bd,_0x4a9e5d)[_0x13f1a2(0x1f4)](_0x51d6c4=>{const _0x317084=_0x13f1a2;this[_0x317084(0x1e9)](_0x51d6c4);})[_0x13f1a2(0x25e)](_0x302757=>_0x302757['ok']?_0x302757:_0x302757[_0x13f1a2(0x24b)]()[_0x13f1a2(0x25e)](_0x50456e=>{const _0x499749=_0x13f1a2;throw{'url':this[_0x499749(0x227)],'path':_0x2d00bd,'method':_0x1eb38c,'body':_0x1697d3,'status':(_0x302757||{})[_0x499749(0x23f)],'statusText':(_0x302757||{})[_0x499749(0x25a)],'code':_0x50456e[_0x499749(0x237)],'message':_0x50456e[_0x499749(0x20e)],'traceId':_0x50456e[_0x499749(0x21c)]};})),'abortController':_0x221849};}async*[_0x47fb91(0x1fd)](_0x332929){const _0x163daa=_0x47fb91,_0x5d59d0=[],_0x5b34a2=_0x332929[_0x163daa(0x264)](),_0x46d2f9=_0x4434a8({'onError':_0x345b38=>{const _0x295e12=_0x163daa;this[_0x295e12(0x1e9)](_0x345b38);},'onEvent':_0x29319b=>{const _0x123505=_0x163daa;_0x29319b[_0x123505(0x1f8)]=JSON[_0x123505(0x231)](_0x29319b[_0x123505(0x1f8)]),_0x5d59d0[_0x123505(0x1e2)](_0x29319b);}});try{let _0xfafdfc=!0x1;for(;!_0xfafdfc;){const {done:_0x397dfb,value:_0xc2ba96}=await _0x5b34a2[_0x163daa(0x1ea)]();_0x397dfb&&(_0xfafdfc=!0x0),_0x46d2f9[_0x163daa(0x1d7)](this[_0x163daa(0x22c)][_0x163daa(0x214)](_0xc2ba96,{'stream':!0x0})),yield*_0x5d59d0,_0x5d59d0[_0x163daa(0x1d8)]=0x0;}}catch(_0x11f77a){this[_0x163daa(0x1e9)](_0x11f77a);}finally{_0x5b34a2[_0x163daa(0x1d4)](),_0x46d2f9[_0x163daa(0x21a)]();}}[_0x47fb91(0x1e9)](_0x3d530d){const _0x18b235=_0x47fb91;if(_0x3d530d instanceof _0x31869f)throw _0x3d530d;if(_0x3d530d instanceof Error&&_0x18b235(0x25c)===_0x3d530d[_0x18b235(0x20c)])throw new _0x31869f(_0x18b235(0x257),this,{'originalError':_0x3d530d});throw new _0x31869f(_0x18b235(0x233),this,{'originalError':_0x3d530d});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e2a82=_0x31a7;(function(_0x154dd1,_0x2d2a6f){const _0x52447b=_0x31a7,_0x5514dc=_0x154dd1();while(!![]){try{const _0x1e6237=parseInt(_0x52447b(0x21d))/0x1*(-parseInt(_0x52447b(0x1ef))/0x2)+parseInt(_0x52447b(0x1f5))/0x3*(-parseInt(_0x52447b(0x22e))/0x4)+parseInt(_0x52447b(0x231))/0x5*(-parseInt(_0x52447b(0x1e5))/0x6)+-parseInt(_0x52447b(0x20c))/0x7*(parseInt(_0x52447b(0x1fb))/0x8)+-parseInt(_0x52447b(0x212))/0x9*(parseInt(_0x52447b(0x1df))/0xa)+parseInt(_0x52447b(0x1f9))/0xb*(-parseInt(_0x52447b(0x1ed))/0xc)+parseInt(_0x52447b(0x1e6))/0xd;if(_0x1e6237===_0x2d2a6f)break;else _0x5514dc['push'](_0x5514dc['shift']());}catch(_0x43ac74){_0x5514dc['push'](_0x5514dc['shift']());}}}(_0x2a72,0x188ad));import{ViewDowncastWriter as _0x5a8c2e}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x3d5c01,Editor as _0x5230d9}from'ckeditor5/src/core.js';function _0x2a72(){const _0x14688d=['emptyElement','model','get','isPremiumPlugin','start','7698isxBfk','markers','isAtEnd','data','1338689IyjxOQ','push','9768xvRmLv','setAttribute','toView','add','_integrateEditor','has',':end></','isOpening','_displayedFakeSelectionId','from','_nextDataId','indexOf','editors','ai-selection:','createUIElement',':end>','getWalker','518mQQgKy','plugins','context','listenTo','markerToHighlight','_displayedFakeSelectionLocked','31113FKBiHZ','AIEditing','showFakeVisualSelection','getMarkersGroup','isOfficialPlugin',':start></','getRoot','getLastMatchingPosition','selection','removeMarker','length','23esrUrU','getChildren','addMarker','data-id','isContent','hideFakeVisualSelection','random','getSelectedContent','end','$textProxy',':start>','view','getStart','editingDowncast','change','toData','afterInit','4SlAsnl','isAfter','fromCharCode','4645eStHEs','conversion','pluginName','ready','getDocumentData','getSelection','join','markerToElement','ck-ai-assistant-ui_theme','modelToViewWithIds','name','floor','substring','isBefore','element','sort','trim','dataDowncast','for','_getMarkersInDocumentOrder','getSelectionText','removeAllRanges','ai-selection','sessionId','editing','ck-fake-ai-selection','220BYycnk','createRange','_setDataIdsOnChildren','markerName','createRangeIn','version','348gSlivl','6944067dztziZ','processor','_sessionId','schema','containerElement','document','RealTimeCollaborationClient','12kxFatf','convertAiChatSelectionMarker','7746efHYGI'];_0x2a72=function(){return _0x14688d;};return _0x2a72();}function _0x31a7(_0x3dba41,_0x240d09){const _0x2a72d3=_0x2a72();return _0x31a7=function(_0x31a7e1,_0x1214e9){_0x31a7e1=_0x31a7e1-0x1d9;let _0x220aea=_0x2a72d3[_0x31a7e1];return _0x220aea;},_0x31a7(_0x3dba41,_0x240d09);}import{uid as _0x2521c4}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x234b99}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x2e2a82(0x1db);export class AIEditing extends _0x3d5c01{[_0x2e2a82(0x203)]=null;[_0x2e2a82(0x211)]=!0x1;[_0x2e2a82(0x1e8)];static get[_0x2e2a82(0x233)](){const _0x446382=_0x2e2a82;return _0x446382(0x213);}static get[_0x2e2a82(0x216)](){return!0x0;}static get[_0x2e2a82(0x1f3)](){return!0x0;}get[_0x2e2a82(0x1dc)](){const _0x2dd237=_0x2e2a82;if(!this[_0x2dd237(0x1e8)]){const _0x435df3=_0x234b99(this[_0x2dd237(0x20e)]),_0x5af881=_0x435df3[_0x2dd237(0x20d)][_0x2dd237(0x200)](_0x2dd237(0x1ec))&&_0x435df3[_0x2dd237(0x20d)][_0x2dd237(0x1f2)](_0x2dd237(0x1ec))[_0x2dd237(0x1dc)];this[_0x2dd237(0x1e8)]=_0x5af881||_0x2521c4();}return this[_0x2dd237(0x1e8)];}[_0x2e2a82(0x235)](){const _0x342ac0=_0x2e2a82,_0xf0ba50=_0x234b99(this[_0x342ac0(0x20e)]),_0x462dd5=_0xf0ba50[_0x342ac0(0x1f1)],_0x50fb39=_0xf0ba50[_0x342ac0(0x1f8)][_0x342ac0(0x1fd)](_0x462dd5[_0x342ac0(0x1eb)][_0x342ac0(0x218)](),{'convertAiChatSelectionMarker':!0x0}),_0x3d3dbc=new _0x5a8c2e(_0xf0ba50[_0x342ac0(0x1dd)][_0x342ac0(0x228)][_0x342ac0(0x1eb)]);this[_0x342ac0(0x1e1)](_0x50fb39,_0x3d3dbc);let _0x4fa8ca=_0xf0ba50[_0x342ac0(0x1f8)][_0x342ac0(0x1e7)][_0x342ac0(0x22c)](_0x50fb39);const _0x549545=this[_0x342ac0(0x244)](),_0x2f0e5a=[];for(const _0x3b3964 of _0x549545){const _0x184fc1='<'+_0x3b3964[_0x342ac0(0x23b)]+_0x342ac0(0x217)+_0x3b3964[_0x342ac0(0x23b)]+_0x342ac0(0x227),_0x269b43=_0x4fa8ca[_0x342ac0(0x206)](_0x184fc1);_0x4fa8ca=_0x4fa8ca[_0x342ac0(0x23d)](0x0,_0x269b43)+_0x4fa8ca[_0x342ac0(0x23d)](_0x269b43+_0x184fc1[_0x342ac0(0x21c)]);const _0x28ceed='<'+_0x3b3964[_0x342ac0(0x23b)]+_0x342ac0(0x201)+_0x3b3964[_0x342ac0(0x23b)]+_0x342ac0(0x20a),_0x31be8e=_0x4fa8ca[_0x342ac0(0x206)](_0x28ceed);_0x4fa8ca=_0x4fa8ca[_0x342ac0(0x23d)](0x0,_0x31be8e)+_0x4fa8ca[_0x342ac0(0x23d)](_0x31be8e+_0x28ceed[_0x342ac0(0x21c)]),_0x2f0e5a[_0x342ac0(0x1fa)]({'markerName':_0x3b3964[_0x342ac0(0x23b)],'start':_0x269b43,'end':_0x31be8e,'htmlFragment':_0x4fa8ca[_0x342ac0(0x23d)](_0x269b43,_0x31be8e)});}return{'content':_0x4fa8ca,'version':_0xf0ba50[_0x342ac0(0x1f1)][_0x342ac0(0x1eb)][_0x342ac0(0x1e4)],'sessionId':this[_0x342ac0(0x1dc)],'selections':_0x2f0e5a};}async[_0x2e2a82(0x22d)](){const _0x3bc5f6=_0x2e2a82;this[_0x3bc5f6(0x20e)]instanceof _0x5230d9?this[_0x3bc5f6(0x1ff)](this[_0x3bc5f6(0x20e)]):this[_0x3bc5f6(0x20f)](this[_0x3bc5f6(0x20e)][_0x3bc5f6(0x207)],_0x3bc5f6(0x1fe),(_0x5e77ac,_0x106539)=>{const _0x53953f=_0x3bc5f6;_0x106539['on'](_0x53953f(0x234),()=>{const _0x9f74d1=_0x53953f;this[_0x9f74d1(0x1ff)](_0x106539);});});}[_0x2e2a82(0x1ff)](_0x26acb6){const _0xe15d99=_0x2e2a82;_0x26acb6[_0xe15d99(0x232)][_0xe15d99(0x243)](_0xe15d99(0x22a))[_0xe15d99(0x210)]({'model':_0xe15d99(0x1db),'view':{'classes':[_0xe15d99(0x1de),_0xe15d99(0x239)],'priority':0xc}}),_0x26acb6[_0xe15d99(0x232)][_0xe15d99(0x243)](_0xe15d99(0x242))[_0xe15d99(0x238)]({'model':_0xe15d99(0x1db),'view':(_0x42eaad,{writer:_0x3e48ab,options:_0x323ea0})=>_0x323ea0[_0xe15d99(0x1ee)]?_0x3e48ab[_0xe15d99(0x209)](_0x42eaad[_0xe15d99(0x1e2)]+':'+(_0x42eaad[_0xe15d99(0x202)]?_0xe15d99(0x1f4):_0xe15d99(0x225))):null});}[_0x2e2a82(0x214)](_0x2c0135,_0x39c573,_0x193f8a=!0x1,_0x3fb6be=!0x1){const _0x3f1b99=_0x2e2a82;if(this[_0x3f1b99(0x211)]&&!_0x3fb6be)return!0x1;const _0x1ac140=_0x234b99(this[_0x3f1b99(0x20e)])[_0x3f1b99(0x1f1)];return _0x1ac140[_0x3f1b99(0x22b)](_0x25b8ff=>{const _0x23c411=_0x3f1b99;this[_0x23c411(0x203)]&&this[_0x23c411(0x222)](this[_0x23c411(0x203)]),this[_0x23c411(0x203)]=_0x39c573,this[_0x23c411(0x211)]=_0x193f8a;let _0x2d3c02=0x0;for(let _0x23c76b of _0x2c0135){const _0x1bbcdf=_0x23c411(0x208)+_0x2d3c02;if(_0x23c76b[_0x23c411(0x1f4)][_0x23c411(0x1f7)]){const _0x26da0e=_0x23c76b[_0x23c411(0x1f4)][_0x23c411(0x219)](({item:_0x543dc5})=>!_0x1ac140[_0x23c411(0x1e9)][_0x23c411(0x221)](_0x543dc5),{'boundaries':_0x23c76b});_0x23c76b=_0x25b8ff[_0x23c411(0x1e0)](_0x26da0e,_0x23c76b[_0x23c411(0x225)]);}_0x25b8ff[_0x23c411(0x21f)](_0x1bbcdf,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x23c76b}),_0x2d3c02++;}}),window[_0x3f1b99(0x236)]()?.[_0x3f1b99(0x1da)](),!0x0;}[_0x2e2a82(0x222)](_0x53aaa8){const _0x2e9881=_0x2e2a82;if(this[_0x2e9881(0x203)]!=_0x53aaa8)return!0x1;this[_0x2e9881(0x203)]=null,this[_0x2e9881(0x211)]=!0x1;const _0xbc825b=_0x234b99(this[_0x2e9881(0x20e)]),_0x4331a4=_0xbc825b[_0x2e9881(0x1f1)][_0x2e9881(0x1f6)][_0x2e9881(0x215)](_0x2e9881(0x1db));return _0xbc825b[_0x2e9881(0x1f1)][_0x2e9881(0x22b)](_0x1deadd=>{const _0x47d0c6=_0x2e9881;for(const _0x5e3965 of _0x4331a4)_0x1deadd[_0x47d0c6(0x21b)](_0x5e3965);}),!0x0;}[_0x2e2a82(0x23a)](_0x51fa82){const _0x401031=_0x2e2a82,_0x12c0a3=_0x234b99(this[_0x401031(0x20e)]),_0x4d7d15=_0x12c0a3[_0x401031(0x1f8)][_0x401031(0x1fd)](_0x51fa82),_0x239f23=new _0x5a8c2e(_0x12c0a3[_0x401031(0x1dd)][_0x401031(0x228)][_0x401031(0x1eb)]);return this[_0x401031(0x1e1)](_0x4d7d15,_0x239f23),_0x4d7d15;}[_0x2e2a82(0x1e1)](_0x5c3452,_0x1b2e7e){const _0x24cb7a=_0x2e2a82;let _0x26386a=!0x1;const _0x3168fa=new Set();for(const _0x39bd1e of _0x5c3452[_0x24cb7a(0x21e)]()){const _0x20bd27=_0x39bd1e['is'](_0x24cb7a(0x1f0))||_0x39bd1e['is'](_0x24cb7a(0x1ea));if(!_0x39bd1e['is'](_0x24cb7a(0x23f)))continue;(this[_0x24cb7a(0x1e1)](_0x39bd1e,_0x1b2e7e)||_0x20bd27)&&(_0x1b2e7e[_0x24cb7a(0x1fc)](_0x24cb7a(0x220),this[_0x24cb7a(0x205)](_0x3168fa),_0x39bd1e),_0x26386a=!0x0);}return _0x26386a;}[_0x2e2a82(0x205)](_0x9539bb){const _0x5859ef=_0x2e2a82;let _0x97a647;do{_0x97a647='';for(let _0x5f04a8=0x0;_0x5f04a8<0x4;_0x5f04a8++)_0x97a647+=String[_0x5859ef(0x230)](0x61+Math[_0x5859ef(0x23c)](0x1a*Math[_0x5859ef(0x223)]()));}while(_0x9539bb[_0x5859ef(0x200)](_0x97a647));return _0x9539bb[_0x5859ef(0x1fe)](_0x97a647),_0x97a647;}[_0x2e2a82(0x1d9)](){const _0x16eebb=_0x2e2a82,{model:_0x41ab16}=_0x234b99(this[_0x16eebb(0x20e)]),_0x19a68f=_0x41ab16[_0x16eebb(0x1eb)][_0x16eebb(0x21a)],_0x5f0f37=_0x41ab16[_0x16eebb(0x224)](_0x19a68f),_0x435415=[],_0x2e0ee6=_0x41ab16[_0x16eebb(0x1e3)](_0x5f0f37)[_0x16eebb(0x20b)]();for(const {item:_0x215a12}of _0x2e0ee6)_0x215a12['is'](_0x16eebb(0x226))?_0x435415[_0x16eebb(0x1fa)](_0x215a12[_0x16eebb(0x1f8)]):_0x215a12['is'](_0x16eebb(0x23f))&&_0x435415[_0x16eebb(0x21c)]>0x0&&'\x20'!==_0x435415[_0x435415[_0x16eebb(0x21c)]-0x1]&&_0x435415[_0x16eebb(0x1fa)]('\x20');return'\x22'+_0x435415[_0x16eebb(0x237)]('')[_0x16eebb(0x241)]()+'\x22';}[_0x2e2a82(0x244)](){const _0x4e9c48=_0x2e2a82,_0x469601=_0x234b99(this[_0x4e9c48(0x20e)])[_0x4e9c48(0x1f1)];return Array[_0x4e9c48(0x204)](_0x469601[_0x4e9c48(0x1f6)][_0x4e9c48(0x215)](_0x4e9c48(0x1db)))[_0x4e9c48(0x240)]((_0x372bc5,_0x53a713)=>_0x372bc5[_0x4e9c48(0x229)]()[_0x4e9c48(0x23e)](_0x53a713[_0x4e9c48(0x229)]())?-0x1:_0x372bc5[_0x4e9c48(0x229)]()[_0x4e9c48(0x22f)](_0x53a713[_0x4e9c48(0x229)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xb61df7=_0xd472;(function(_0x4956c6,_0x223b4b){const _0x351dd4=_0xd472,_0x376c6e=_0x4956c6();while(!![]){try{const _0x1cbc5c=parseInt(_0x351dd4(0x19e))/0x1+parseInt(_0x351dd4(0x1b0))/0x2+parseInt(_0x351dd4(0x19f))/0x3+-parseInt(_0x351dd4(0x1a8))/0x4+-parseInt(_0x351dd4(0x1a6))/0x5+-parseInt(_0x351dd4(0x1ac))/0x6*(-parseInt(_0x351dd4(0x1a9))/0x7)+-parseInt(_0x351dd4(0x19a))/0x8*(parseInt(_0x351dd4(0x198))/0x9);if(_0x1cbc5c===_0x223b4b)break;else _0x376c6e['push'](_0x376c6e['shift']());}catch(_0x46c57f){_0x376c6e['push'](_0x376c6e['shift']());}}}(_0x135f,0xca787));import{EmitterMixin as _0x256aad}from'ckeditor5/src/utils.js';function _0xd472(_0x2fe25d,_0x2aba40){const _0x135fde=_0x135f();return _0xd472=function(_0xd47263,_0x1b0ce7){_0xd47263=_0xd47263-0x198;let _0x412503=_0x135fde[_0xd47263];return _0x412503;},_0xd472(_0x2fe25d,_0x2aba40);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0xb61df7(0x1a3)];function _0x135f(){const _0x4b6fe3=['getCapabilitiesConfig','_isWebSearchEnabled','setReasoning','3172438DkAkhR','72MkpPyr','getCapabilitiesRequestData','873496DLAmbY','reset','isWebSearchEnabled','isReasoningEnabled','1165237ZvNeCH','1773027tXNwmt','toggleReasoning','reasoning','init','capabilitiesUpdated','toggleWebSearch','setWebSearch','5988835cExgvL','fire','2833700IHCGoN','1865794FWBvjm','webSearch','_isReasoningEnabled','6LheEAk'];_0x135f=function(){return _0x4b6fe3;};return _0x135f();}export class AICapabilities extends _0x256aad(){[_0xb61df7(0x1ae)];[_0xb61df7(0x1ab)];constructor(){const _0x513e95=_0xb61df7;super(),this[_0x513e95(0x1ae)]=!0x1,this[_0x513e95(0x1ab)]=!0x1;}[_0xb61df7(0x1a2)](){const _0x4119e0=_0xb61df7;this[_0x4119e0(0x19b)]();}[_0xb61df7(0x19b)](){const _0x13856a=_0xb61df7;this[_0x13856a(0x1a5)](!0x1),this[_0x13856a(0x1af)](!0x1);}[_0xb61df7(0x1ad)](){const _0x3ed830=_0xb61df7;return{'isWebSearchEnabled':this[_0x3ed830(0x1ae)],'isReasoningEnabled':this[_0x3ed830(0x1ab)]};}static[_0xb61df7(0x199)](_0x4c326c){const _0x281251=_0xb61df7,_0x4eb350={};return _0x4c326c&&_0x4c326c[_0x281251(0x19c)]&&(_0x4eb350[_0x281251(0x1aa)]={}),_0x4c326c&&_0x4c326c[_0x281251(0x19d)]&&(_0x4eb350[_0x281251(0x1a1)]={}),_0x4eb350;}[_0xb61df7(0x1a4)](){const _0x33c2fa=_0xb61df7;this[_0x33c2fa(0x1a5)](!this[_0x33c2fa(0x1ae)]);}[_0xb61df7(0x1a0)](){const _0xcf75f4=_0xb61df7;this[_0xcf75f4(0x1af)](!this[_0xcf75f4(0x1ab)]);}[_0xb61df7(0x1a5)](_0x5a30e3){const _0x2f971e=_0xb61df7;_0x5a30e3!==this[_0x2f971e(0x1ae)]&&(this[_0x2f971e(0x1ae)]=_0x5a30e3,this[_0x2f971e(0x1a7)](_0x2f971e(0x1a3),this[_0x2f971e(0x1ad)]()));}[_0xb61df7(0x1af)](_0x3ed276){const _0x4d15a3=_0xb61df7;_0x3ed276!==this[_0x4d15a3(0x1ab)]&&(this[_0x4d15a3(0x1ab)]=_0x3ed276,this[_0x4d15a3(0x1a7)](_0x4d15a3(0x1a3),this[_0x4d15a3(0x1ad)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x26072d,_0x35da7a){var _0x2643d6=_0x7061,_0x43f516=_0x26072d();while(!![]){try{var _0x42ce18=-parseInt(_0x2643d6(0x1db))/0x1*(parseInt(_0x2643d6(0x1e7))/0x2)+-parseInt(_0x2643d6(0x1e6))/0x3+-parseInt(_0x2643d6(0x1e2))/0x4+-parseInt(_0x2643d6(0x1dd))/0x5*(-parseInt(_0x2643d6(0x1d5))/0x6)+-parseInt(_0x2643d6(0x1e8))/0x7+-parseInt(_0x2643d6(0x1d8))/0x8*(parseInt(_0x2643d6(0x1e5))/0x9)+-parseInt(_0x2643d6(0x1d7))/0xa*(-parseInt(_0x2643d6(0x1e3))/0xb);if(_0x42ce18===_0x35da7a)break;else _0x43f516['push'](_0x43f516['shift']());}catch(_0x45cd33){_0x43f516['push'](_0x43f516['shift']());}}}(_0xfc13,0x77c2d));export var AIContextItemType;!function(_0xac5c28){var _0x3c19c0=_0x7061;_0xac5c28[_0x3c19c0(0x1e9)]=_0x3c19c0(0x1d6),_0xac5c28[_0x3c19c0(0x1da)]=_0x3c19c0(0x1de),_0xac5c28[_0x3c19c0(0x1d3)]=_0x3c19c0(0x1e0),_0xac5c28[_0x3c19c0(0x1d4)]=_0x3c19c0(0x1e1),_0xac5c28[_0x3c19c0(0x1d2)]=_0x3c19c0(0x1dc);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x7061(_0x14ec51,_0x30fff1){var _0xfc1305=_0xfc13();return _0x7061=function(_0x7061f4,_0x2aa257){_0x7061f4=_0x7061f4-0x1d2;var _0x10a768=_0xfc1305[_0x7061f4];return _0x10a768;},_0x7061(_0x14ec51,_0x30fff1);}function _0xfc13(){var _0x4592ec=['web-resource','text','1496540SNbRTS','5104eXcXrN','MARKDOWN','81MZJpvI','1382346eSdRGZ','2hwumng','3559276inrmuE','FILE','HTML','SELECTION','URL','TEXT','102KpBBsd','file','55750tpBkre','515384qGeiCd','markdown','DOCUMENT','478931yImoVy','selection','89960DziUTN','document','html'];_0xfc13=function(){return _0x4592ec;};return _0xfc13();}!function(_0xd6fc07){var _0x4febff=_0x7061;_0xd6fc07[_0x4febff(0x1d4)]=_0x4febff(0x1e1),_0xd6fc07[_0x4febff(0x1e4)]=_0x4febff(0x1d9),_0xd6fc07[_0x4febff(0x1ea)]=_0x4febff(0x1df);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|