@ckeditor/ckeditor5-ai 47.7.5-alpha.0 → 47.7.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/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
function _0x22ed(_0x2bf52f,_0x914588){const _0x3cd3e0=_0x3cd3();return _0x22ed=function(_0x22edc7,_0x148078){_0x22edc7=_0x22edc7-0x1a8;let _0x508b8d=_0x3cd3e0[_0x22edc7];return _0x508b8d;},_0x22ed(_0x2bf52f,_0x914588);}const _0x169992=_0x22ed;(function(_0x53e4d5,_0x42a156){const _0xc8efc8=_0x22ed,_0x2622db=_0x53e4d5();while(!![]){try{const _0xce1d0a=-parseInt(_0xc8efc8(0x1d2))/0x1+-parseInt(_0xc8efc8(0x1bb))/0x2+-parseInt(_0xc8efc8(0x1f1))/0x3*(-parseInt(_0xc8efc8(0x1c3))/0x4)+parseInt(_0xc8efc8(0x208))/0x5+-parseInt(_0xc8efc8(0x1f7))/0x6*(parseInt(_0xc8efc8(0x202))/0x7)+parseInt(_0xc8efc8(0x1f8))/0x8+-parseInt(_0xc8efc8(0x1cd))/0x9*(-parseInt(_0xc8efc8(0x1c6))/0xa);if(_0xce1d0a===_0x42a156)break;else _0x2622db['push'](_0x2622db['shift']());}catch(_0x37edbf){_0x2622db['push'](_0x2622db['shift']());}}}(_0x3cd3,0x407a0));import{ListItemView as _0x5a4ef8,HighlightedTextView as _0x3efc95,ButtonView as _0x22c7ee,ListView as _0x1ae618,IconView as _0x1ed0ce,createDropdown as _0x9a3f68,InputTextView as _0x2ea43f}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x13429b,IconPin as _0x86323b,IconCheck as _0x2effc5,IconCancel as _0x275d38}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0xb27f5b,ConfirmMixin as _0x325e7d}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x3cd3(){const _0x150225=['panelPosition','key','749820gFgCiq','ck-confirm-view-submit','ck-ai-chat-history__item-check-container','ck-ai-loader','AI_CHAT_HISTORY_LOADING_UNPINNING','createCollection','ck-hidden','AI_CHAT_HISTORY_PIN_BUTTON','focus','_createEditInputView','highlightText','ck-confirm-view-cancel','setConversationPinned','removeConversation','AI_CHAT_HISTORY_ACCEPT','withText','ck-ai-chat-history__item-title','items','isMatching','_createPinButtonView','label','650064zBRFut','add','div','ck-ai-chat-history__item-row','extendTemplate','click','_titleView','_createSpinnerView','4iEHnuw','panelView','actions','4560RowUPm','AI_CHAT_HISTORY_LOADING_PINNING','fire','_createMenuDropdownView','AI_CHAT_HISTORY_EDIT_NAME','updateLoadingState','updateTitle','10845xBsCnH','_createCheckView','setTemplate','clear','text','429585QkgcOU','bind','value','Enter','set','pinned','isEdit','selectConversation','ck-ai-chat-history__item--active','ck-ai-chat-history__item-check','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item-actions','ck-ai-chat-history__item-date','children','showConfirm','AI_CHAT_HISTORY_REMOVE','ck-ai-chat-history__item-main-content','ck-ai-chat-history__item-content','AI_CHAT_HISTORY_CANCEL','_createCancelEditButtonView','bindTemplate','loadingState','_createAcceptEditButtonView','match','ck-ai-loader__text','addMany','then','isVisible','tiny','AI_CHAT_HISTORY_LOADING_REMOVING','listitem','690291HDODpD','span','buttonView','_commitEditInputValue','element','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','6066hfOxbh','2104512gXZqJN','mainContent','editConversationTitle','execute','locale','isOn','ck-ai-chat-history__item--edit','edit:cancel','LOADING_LABELS','string','1204QMcLhV','ck-ai-chat-history__item','AI_CHAT_HISTORY_LOADING_RENAMING','change:isEdit'];_0x3cd3=function(){return _0x150225;};return _0x3cd3();}import{escape as _0x13aec6}from'es-toolkit/compat';import{AISpinnerView as _0x2e5eb4}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x381919}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x325e7d(_0x5a4ef8){['id'];static [_0x169992(0x200)]={'remove':_0x169992(0x1ef),'rename':_0x169992(0x204),'pin':_0x169992(0x1c7),'unpin':_0x169992(0x1aa)};[_0x169992(0x1c5)];[_0x169992(0x1f9)];[_0x169992(0x1c1)];constructor(_0x53fa17,_0x23acc0){const _0x2d5753=_0x169992;super(_0x53fa17);const _0x5b93e2=this[_0x2d5753(0x1e6)];this[_0x2d5753(0x1d6)](_0x2d5753(0x1d8),!0x1),this[_0x2d5753(0x1d6)](_0x2d5753(0x1ed),!0x0),this[_0x2d5753(0x1d6)](_0x2d5753(0x1d7),!!_0x23acc0[_0x2d5753(0x1d7)]),this[_0x2d5753(0x1d6)](_0x2d5753(0x1e7),null),this['id']=_0x23acc0['id'];const {title:_0x573568,createdAt:_0x232ad4,active:_0x8684ca=!0x1}=_0x23acc0;this[_0x2d5753(0x1c1)]=new _0x3efc95(),this[_0x2d5753(0x1c1)][_0x2d5753(0x1d1)]=_0x573568,this[_0x2d5753(0x1c1)][_0x2d5753(0x1bf)]({'attributes':{'class':[_0x2d5753(0x1b6)]}});const _0x38cd5b=this[_0x2d5753(0x1ce)](),_0x4114d6=this[_0x2d5753(0x1b9)](_0x53fa17),_0x4aea16=this[_0x2d5753(0x1c9)](),_0x391ad8=this[_0x2d5753(0x1af)](_0x53fa17,_0x573568),_0x3796d=this[_0x2d5753(0x1e8)](_0x53fa17,_0x391ad8),_0x434b81=this[_0x2d5753(0x1e5)](_0x53fa17,_0x391ad8);this[_0x2d5753(0x1c5)]=this[_0x2d5753(0x1ab)](),this[_0x2d5753(0x1f9)]=this[_0x2d5753(0x1ab)](),this[_0x2d5753(0x1f9)][_0x2d5753(0x1bc)](this[_0x2d5753(0x1c1)]),this[_0x2d5753(0x1c5)][_0x2d5753(0x1bc)](_0x4114d6),this[_0x2d5753(0x1c5)][_0x2d5753(0x1bc)](_0x4aea16),this['on'](_0x2d5753(0x205),(_0x19f8d7,_0x37fe6b,_0xbc829e)=>{const _0x4d284=_0x2d5753;this[_0x4d284(0x1c5)][_0x4d284(0x1d0)](),this[_0x4d284(0x1f9)][_0x4d284(0x1d0)](),_0xbc829e?(this[_0x4d284(0x1c5)][_0x4d284(0x1bc)](_0x3796d),this[_0x4d284(0x1c5)][_0x4d284(0x1bc)](_0x434b81),this[_0x4d284(0x1f9)][_0x4d284(0x1bc)](_0x391ad8),_0x391ad8[_0x4d284(0x1f5)][_0x4d284(0x1ae)]()):(this[_0x4d284(0x1c5)][_0x4d284(0x1bc)](_0x4114d6),this[_0x4d284(0x1c5)][_0x4d284(0x1bc)](_0x4aea16),this[_0x4d284(0x1f9)][_0x4d284(0x1bc)](this[_0x4d284(0x1c1)]));}),this[_0x2d5753(0x1cf)]({'tag':'li','attributes':{'class':[_0x2d5753(0x203),_0x8684ca?_0x2d5753(0x1da):'',_0x5b93e2['if'](_0x2d5753(0x1ed),_0x2d5753(0x1ac),_0x3e9368=>!_0x3e9368),_0x5b93e2['if'](_0x2d5753(0x1d8),_0x2d5753(0x1fe))],'role':_0x2d5753(0x1f0)},'children':[{'tag':_0x2d5753(0x1f2),'attributes':{'class':[_0x2d5753(0x1a8)]},'children':[{'tag':_0x2d5753(0x1bd),'attributes':{'class':[_0x2d5753(0x1db),_0x5b93e2['if'](_0x2d5753(0x1e7),_0x2d5753(0x1ac),_0x3ef6ad=>!!_0x3ef6ad)]},'children':_0x8684ca?[_0x38cd5b]:[]},{'tag':_0x2d5753(0x1bd),'attributes':{'class':[_0x2d5753(0x1a9),_0x5b93e2['if'](_0x2d5753(0x1e7),_0x2d5753(0x1ac),_0x20e325=>!_0x20e325)]},'children':[this[_0x2d5753(0x1c2)]()]}]},{'tag':_0x2d5753(0x1bd),'attributes':{'class':[_0x2d5753(0x1be)]},'children':[{'tag':_0x2d5753(0x1bd),'attributes':{'class':[_0x2d5753(0x1e3)]},'on':{'click':this[_0x2d5753(0x1e6)]['to'](_0x2d5753(0x1c0))},'children':[{'tag':_0x2d5753(0x1bd),'attributes':{'class':[_0x2d5753(0x1e2)]},'children':[{'tag':_0x2d5753(0x1bd),'attributes':{'class':[_0x2d5753(0x1b6),_0x5b93e2['if'](_0x2d5753(0x1e7),_0x2d5753(0x1ac),_0xfdcaee=>!!_0xfdcaee)]},'children':this[_0x2d5753(0x1f9)]},{'tag':_0x2d5753(0x1bd),'attributes':{'class':[_0x2d5753(0x1ea),_0x5b93e2['if'](_0x2d5753(0x1e7),_0x2d5753(0x1ac),_0x1fa178=>!_0x1fa178)]},'children':[{'text':_0x5b93e2['to'](_0x2d5753(0x1e7),_0x17f14a=>_0x17f14a?_0x381919(this[_0x2d5753(0x1fc)],AIChatHistoryListItemView[_0x2d5753(0x200)][_0x17f14a]):'')}]}]},{'tag':_0x2d5753(0x1f2),'attributes':{'class':[_0x2d5753(0x1de)]},'children':[_0x232ad4]}]},{'tag':_0x2d5753(0x1bd),'attributes':{'class':[_0x2d5753(0x1dd)]},'children':this[_0x2d5753(0x1c5)]}]}]}),this['on'](_0x2d5753(0x1c0),()=>{const _0x5d962e=_0x2d5753;this[_0x5d962e(0x1d8)]||this[_0x5d962e(0x1c8)](_0x5d962e(0x1d9),{'id':this['id']});});}[_0x169992(0x1cc)](_0xc2232f){const _0xc5a8bc=_0x169992;this[_0xc5a8bc(0x1c1)][_0xc5a8bc(0x1d1)]=_0x13aec6(_0xc2232f);}[_0x169992(0x1cb)](_0x3ac826,_0x1f1c2d){const _0x1c35a2=_0x169992;this[_0x1c35a2(0x1d6)](_0x1c35a2(0x1e7),_0x1f1c2d?_0x3ac826:null);}[_0x169992(0x1ce)](){const _0x5a3c43=_0x169992,_0x9da499=new _0x1ed0ce();return _0x9da499[_0x5a3c43(0x1d6)]({'content':_0x2effc5}),_0x9da499;}[_0x169992(0x1b9)](_0x1a15bc){const _0x204793=_0x169992,_0x3bd554=new _0x22c7ee(_0x1a15bc);return _0x3bd554[_0x204793(0x1d6)]({'label':_0x381919(_0x1a15bc,_0x204793(0x1ad)),'icon':_0x86323b,'withText':!0x1,'tooltip':!0x0}),_0x3bd554[_0x204793(0x1d3)](_0x204793(0x1fd))['to'](this,_0x204793(0x1d7)),_0x3bd554['on'](_0x204793(0x1fb),()=>{const _0x1e88bf=_0x204793,_0x165336=!this[_0x1e88bf(0x1d7)];this[_0x1e88bf(0x1c8)](_0x1e88bf(0x1b2),{'id':this['id'],'pinned':_0x165336});}),_0x3bd554;}[_0x169992(0x1c9)](){const _0x54a34b=_0x169992,_0x2dbba4=_0x9a3f68(this[_0x54a34b(0x1fc)],_0xb27f5b),_0x124002=_0x2dbba4[_0x54a34b(0x1c4)][_0x54a34b(0x1df)];_0x2dbba4[_0x54a34b(0x1f3)][_0x54a34b(0x1d6)]({'label':_0x381919(this[_0x54a34b(0x1fc)],_0x54a34b(0x1f6)),'icon':_0x13429b}),_0x2dbba4[_0x54a34b(0x206)]='sw';const _0x48f7e6=new _0x22c7ee(this[_0x54a34b(0x1fc)]);_0x48f7e6[_0x54a34b(0x1ba)]=_0x381919(this[_0x54a34b(0x1fc)],_0x54a34b(0x1ca)),_0x48f7e6[_0x54a34b(0x1b5)]=!0x0,_0x48f7e6['on'](_0x54a34b(0x1fb),()=>{const _0x5c9f1d=_0x54a34b;this[_0x5c9f1d(0x1d8)]=!0x0;});const _0x1b6690=new _0x22c7ee(this[_0x54a34b(0x1fc)]);_0x1b6690[_0x54a34b(0x1ba)]=_0x381919(this[_0x54a34b(0x1fc)],_0x54a34b(0x1e1)),_0x1b6690[_0x54a34b(0x1b5)]=!0x0,_0x1b6690['on'](_0x54a34b(0x1fb),()=>{const _0x3342ef=_0x54a34b;this[_0x3342ef(0x1e0)](_0x381919(this[_0x3342ef(0x1fc)],_0x3342ef(0x1dc)),this[_0x3342ef(0x1f5)])[_0x3342ef(0x1ec)](()=>{const _0x485517=_0x3342ef;this[_0x485517(0x1c8)](_0x485517(0x1b3),{'id':this['id']});});});const _0x422339=new _0x1ae618(this[_0x54a34b(0x1fc)]),_0x1312a6=new _0x5a4ef8(this[_0x54a34b(0x1fc)]);_0x1312a6[_0x54a34b(0x1df)][_0x54a34b(0x1bc)](_0x48f7e6);const _0xaa98e5=new _0x5a4ef8(this[_0x54a34b(0x1fc)]);return _0xaa98e5[_0x54a34b(0x1df)][_0x54a34b(0x1bc)](_0x1b6690),_0x422339[_0x54a34b(0x1b7)][_0x54a34b(0x1eb)]([_0x1312a6,_0xaa98e5]),_0x124002[_0x54a34b(0x1bc)](_0x422339),_0x2dbba4;}[_0x169992(0x1af)](_0x2f449e,_0x769d52){const _0xc2d618=_0x169992,_0x430b67=new _0x2ea43f(_0x2f449e),_0x17c99f=_0x430b67[_0xc2d618(0x1e6)];return _0x430b67[_0xc2d618(0x1d4)]=_0x769d52,_0x430b67[_0xc2d618(0x1bf)]({'on':{'keydown':_0x17c99f['to'](_0xe67cc2=>{const _0x4aecfe=_0xc2d618;_0x4aecfe(0x1d5)==_0xe67cc2[_0x4aecfe(0x207)]&&this[_0x4aecfe(0x1f4)](_0x430b67);})}}),_0x430b67;}[_0x169992(0x1e8)](_0x320723,_0x550204){const _0x27643e=_0x169992,_0x1dc6b5=new _0x22c7ee(_0x320723);return _0x1dc6b5[_0x27643e(0x1d6)]({'icon':_0x2effc5,'withText':!0x1,'tooltip':_0x381919(_0x320723,_0x27643e(0x1b4))}),_0x1dc6b5[_0x27643e(0x1bf)]({'attributes':{'class':[_0x27643e(0x209)]}}),_0x1dc6b5['on'](_0x27643e(0x1fb),()=>{const _0x1e44d4=_0x27643e;this[_0x1e44d4(0x1f4)](_0x550204);}),_0x1dc6b5;}[_0x169992(0x1f4)](_0x2e7720){const _0x1b0918=_0x169992,_0x2a172a=_0x2e7720[_0x1b0918(0x1f5)][_0x1b0918(0x1d4)]||'';this[_0x1b0918(0x1c1)][_0x1b0918(0x1d1)]=_0x2a172a,this[_0x1b0918(0x1d8)]=!0x1,this[_0x1b0918(0x1c8)](_0x1b0918(0x1fa),{'id':this['id'],'title':_0x2a172a});}[_0x169992(0x1e5)](_0x2dd96c,_0x578e99){const _0x20e14e=_0x169992,_0x5ca815=new _0x22c7ee(_0x2dd96c);return _0x5ca815[_0x20e14e(0x1d6)]({'icon':_0x275d38,'withText':!0x1,'tooltip':_0x381919(_0x2dd96c,_0x20e14e(0x1e4))}),_0x5ca815[_0x20e14e(0x1bf)]({'attributes':{'class':[_0x20e14e(0x1b1)]}}),_0x5ca815['on'](_0x20e14e(0x1fb),()=>{const _0x65c3c9=_0x20e14e;this[_0x65c3c9(0x1d8)]=!0x1,_0x578e99[_0x65c3c9(0x1d4)]=this[_0x65c3c9(0x1c1)][_0x65c3c9(0x1d1)]||'',this[_0x65c3c9(0x1c8)](_0x65c3c9(0x1ff));}),_0x5ca815;}[_0x169992(0x1c2)](){const _0x335fed=_0x169992,_0x5d29ec=new _0x2e5eb4(_0x335fed(0x1ee));return _0x5d29ec[_0x335fed(0x1ed)]=!0x0,_0x5d29ec;}[_0x169992(0x1b8)](_0x315a06){const _0x159111=_0x169992;return this[_0x159111(0x1c1)]&&_0x159111(0x201)==typeof this[_0x159111(0x1c1)][_0x159111(0x1d1)]&&this[_0x159111(0x1c1)][_0x159111(0x1d1)][_0x159111(0x1e9)](_0x315a06)?{'title':!0x0}:null;}[_0x169992(0x1b0)](_0x180468){const _0x130220=_0x169992;this[_0x130220(0x1c1)][_0x130220(0x1b0)](_0x180468);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x474c82=_0x2b27;(function(_0x2178d2,_0x89d275){const _0x563158=_0x2b27,_0x2ba4d7=_0x2178d2();while(!![]){try{const _0x46de09=parseInt(_0x563158(0x1a3))/0x1*(parseInt(_0x563158(0x19f))/0x2)+parseInt(_0x563158(0x1a7))/0x3*(-parseInt(_0x563158(0x1ab))/0x4)+parseInt(_0x563158(0x1b2))/0x5+-parseInt(_0x563158(0x1a9))/0x6*(parseInt(_0x563158(0x1b1))/0x7)+-parseInt(_0x563158(0x1b5))/0x8*(parseInt(_0x563158(0x1aa))/0x9)+-parseInt(_0x563158(0x1bc))/0xa+parseInt(_0x563158(0x19b))/0xb;if(_0x46de09===_0x89d275)break;else _0x2ba4d7['push'](_0x2ba4d7['shift']());}catch(_0x2f8647){_0x2ba4d7['push'](_0x2ba4d7['shift']());}}}(_0x4deb,0xaafa8));function _0x4deb(){const _0xc5be2f=['ck-hidden','remove','2433lPDrTp','setTemplate','54234tHEbuE','3393WGfMKk','6452YYIIDP','filter','highlightText','div','splice','isVisible','203bcGBFJ','548705WlkKUB','ck-ai-chat-history__section-title','set','9544zszFwm','length','find','isMatching','title','indexOf','removeItem','670040dEJHiW','18815775fjsQvZ','items','ck-ai-chat-history__section','bindTemplate','644734szfKBv','getItem','addMany','itemsViews','3olcGug','_itemsListView'];_0x4deb=function(){return _0xc5be2f;};return _0x4deb();}import{ListItemView as _0x199cb0,View as _0x31b650,ListView as _0x1b2b89}from'ckeditor5/src/ui.js';function _0x2b27(_0x3722a2,_0x2193e0){const _0x4deb2f=_0x4deb();return _0x2b27=function(_0x2b27a6,_0x47dc2b){_0x2b27a6=_0x2b27a6-0x19b;let _0x5f1f9a=_0x4deb2f[_0x2b27a6];return _0x5f1f9a;},_0x2b27(_0x3722a2,_0x2193e0);}export class AIChatHistoryListView extends _0x199cb0{[_0x474c82(0x1b9)];[_0x474c82(0x1a2)];[_0x474c82(0x1a4)];constructor(_0x252a47,{title:_0x583fe2,items:_0x47539d}){const _0x273d34=_0x474c82;super(_0x252a47);const _0x48875d=this[_0x273d34(0x19e)];this[_0x273d34(0x1b4)](_0x273d34(0x1b0),!0x0),this[_0x273d34(0x1b9)]=_0x583fe2,this[_0x273d34(0x1a2)]=_0x47539d;const _0x1b29fd=new _0x31b650(_0x252a47);_0x1b29fd[_0x273d34(0x1a8)]({'tag':_0x273d34(0x1ae),'attributes':{'class':[_0x273d34(0x1b3)]},'children':[this[_0x273d34(0x1b9)]]}),this[_0x273d34(0x1a4)]=new _0x1b2b89(_0x252a47),this[_0x273d34(0x1a4)][_0x273d34(0x19c)][_0x273d34(0x1a1)](this[_0x273d34(0x1a2)]),this[_0x273d34(0x1a8)]({'tag':'li','attributes':{'class':[_0x273d34(0x19d),_0x48875d['if'](_0x273d34(0x1b0),_0x273d34(0x1a5),_0xa30400=>!_0xa30400)]},'children':[_0x1b29fd,this[_0x273d34(0x1a4)]]});}[_0x474c82(0x1ac)](_0xf1adb9){const _0x447b06=_0x474c82,_0x369dd0=this[_0x447b06(0x1a2)][_0x447b06(0x1b6)];let _0x497522=0x0;for(const _0x518fdf of this[_0x447b06(0x1a2)]){if(_0xf1adb9){const _0x380505=_0x518fdf[_0x447b06(0x1b8)](_0xf1adb9);_0x518fdf[_0x447b06(0x1b0)]=!!_0x380505,_0x518fdf[_0x447b06(0x1ad)](_0xf1adb9);}else _0x518fdf[_0x447b06(0x1b0)]=!0x0,_0x518fdf[_0x447b06(0x1ad)](null);_0x518fdf[_0x447b06(0x1b0)]&&_0x497522++;}return this[_0x447b06(0x1b0)]=_0x497522>0x0,{'resultsCount':_0x497522,'totalItemsCount':_0x369dd0};}[_0x474c82(0x1a0)](_0x350b8d){const _0x152d69=_0x474c82;return this[_0x152d69(0x1a2)][_0x152d69(0x1b7)](_0x17b81c=>_0x17b81c['id']===_0x350b8d);}[_0x474c82(0x1bb)](_0xb032da){const _0x1c5d57=_0x474c82,_0x4ec7f9=this[_0x1c5d57(0x1a2)][_0x1c5d57(0x1ba)](_0xb032da);-0x1!==_0x4ec7f9&&(this[_0x1c5d57(0x1a2)][_0x1c5d57(0x1af)](_0x4ec7f9,0x1),this[_0x1c5d57(0x1a4)][_0x1c5d57(0x19c)][_0x1c5d57(0x1a6)](_0xb032da));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xaec7c0=_0x3ae5;(function(_0x1c67af,_0x214ee4){const _0x597a85=_0x3ae5,_0x4ec745=_0x1c67af();while(!![]){try{const _0x2f29ad=-parseInt(_0x597a85(0x1d0))/0x1+-parseInt(_0x597a85(0x1d4))/0x2+-parseInt(_0x597a85(0x1d2))/0x3+-parseInt(_0x597a85(0x1d6))/0x4*(-parseInt(_0x597a85(0x1cc))/0x5)+-parseInt(_0x597a85(0x1cd))/0x6+parseInt(_0x597a85(0x1cf))/0x7*(-parseInt(_0x597a85(0x1d3))/0x8)+parseInt(_0x597a85(0x1d7))/0x9;if(_0x2f29ad===_0x214ee4)break;else _0x4ec745['push'](_0x4ec745['shift']());}catch(_0x224368){_0x4ec745['push'](_0x4ec745['shift']());}}}(_0x33dc,0x2a8bb));function _0x33dc(){const _0x3ac707=['extendTemplate','10dNDSgE','132018CpKEMh','addMany','641039Whpude','268446PYmbGY','ck-ai-chat-history__sections','269637VFLphO','16bTlXtx','377138sElBFK','sections','108064CtedEI','7850574ScwJew','items','filter'];_0x33dc=function(){return _0x3ac707;};return _0x33dc();}function _0x3ae5(_0x29085f,_0x2dc955){const _0x33dcc0=_0x33dc();return _0x3ae5=function(_0x3ae5fe,_0x2598ad){_0x3ae5fe=_0x3ae5fe-0x1cb;let _0x1ff137=_0x33dcc0[_0x3ae5fe];return _0x1ff137;},_0x3ae5(_0x29085f,_0x2dc955);}import{ListView as _0x9e46d3}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x9e46d3{[_0xaec7c0(0x1d5)];constructor(_0x399760,_0x3d6de0){const _0x5cb50f=_0xaec7c0;super(_0x399760),this[_0x5cb50f(0x1d5)]=_0x3d6de0,this[_0x5cb50f(0x1d8)][_0x5cb50f(0x1ce)](this[_0x5cb50f(0x1d5)]),this[_0x5cb50f(0x1cb)]({'attributes':{'class':[_0x5cb50f(0x1d1)]}});}[_0xaec7c0(0x1d9)](_0x849aba){const _0x34e534=_0xaec7c0;let _0x2e0628=0x0,_0x491d62=0x0;for(const _0x23a5ce of this[_0x34e534(0x1d5)]){const {resultsCount:_0x553b05,totalItemsCount:_0x18a65c}=_0x23a5ce[_0x34e534(0x1d9)](_0x849aba);_0x2e0628+=_0x553b05,_0x491d62+=_0x18a65c;}return{'resultsCount':_0x2e0628,'totalItemsCount':_0x491d62};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x37f596=_0x2893;(function(_0xec30fb,_0x41b29d){const _0x2d8f05=_0x2893,_0x464382=_0xec30fb();while(!![]){try{const _0x29f07c=parseInt(_0x2d8f05(0x12c))/0x1+-parseInt(_0x2d8f05(0x135))/0x2+parseInt(_0x2d8f05(0x13e))/0x3+-parseInt(_0x2d8f05(0x147))/0x4+parseInt(_0x2d8f05(0x13f))/0x5*(-parseInt(_0x2d8f05(0x155))/0x6)+parseInt(_0x2d8f05(0x156))/0x7*(parseInt(_0x2d8f05(0x15e))/0x8)+-parseInt(_0x2d8f05(0x169))/0x9*(-parseInt(_0x2d8f05(0x121))/0xa);if(_0x29f07c===_0x41b29d)break;else _0x464382['push'](_0x464382['shift']());}catch(_0x18f504){_0x464382['push'](_0x464382['shift']());}}}(_0x428c,0x3bd86));import{View as _0x45f2bc,SearchTextView as _0x4e76bd,FormHeaderView as _0x3afe3b,ButtonView as _0x47136c}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x5a65f0,IconCancel as _0x135f2d,IconPlus as _0x47656f}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0xfd5b67}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xbf3f86}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x5b0950}from'./aichathistorylistitemview.js';function _0x2893(_0x2c73d9,_0x2883af){const _0x428cab=_0x428c();return _0x2893=function(_0x289310,_0x1d47c1){_0x289310=_0x289310-0x119;let _0x3ff60a=_0x428cab[_0x289310];return _0x3ff60a;},_0x2893(_0x2c73d9,_0x2883af);}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3e06ba}from'../aichathistoryui.js';function _0x428c(){const _0x1eddd5=['253842KrkRcV','236180WcQEkE','isMaximized','set','removeItem','items','queryView','emptyView','setTemplate','1656288IdeKmA','skeletonView','ck-ai-chat-history__empty','isEmptyViewVisible','addMany','ck-ai-notification_error__dismiss-button','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','fire','openChat','AI_CHAT_HISTORY_HEADING','some','delegate','errorMessage','ck-ai-chat-history__content','48DGZFug','301xjoaDC','change:isLoading','_createEmptyStateView','removeHistoryItem','remove','title','ck-ai-notification','change:errorMessage','61064VYbiMi','_createErrorView','updateItemLoadingState','length','ck-reset_all','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','sectionsView','mainErrorView','sections','ck-ai-chat-history__empty-message','itemsViews','1679121JCDaxp','clear','getItem','extendTemplate','isLoading','fieldView','resizeButton','searchView','children','bindTemplate','updateLoadingState','change:hasItems','locale','render','_createSearchView','AI_CHAT_HISTORY_EMPTY_MESSAGE','add','hasItems','isVisible','execute','ck-ai-notification_error','20XChajo','isSearchViewVisible','_refreshSearch','value','push','search','indexOf','AI_CHAT_LABEL_NEW_CHAT','aiHistory','updateHistoryItemsWithCategories','element','297601gNLJnS','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-chat__start-conversation','bind','_updateViewVisibility','updateItemTitle','_createSkeletonView','isMainErrorViewVisible','ltr','92972nDLBCw','updateTitle','div','_createListItemViews','ck-ai-header\x20ck-ai-header_history','splice','ck-ai-chat-history','ck-hidden','ck-rounded-corners'];_0x428c=function(){return _0x1eddd5;};return _0x428c();}import{AISkeletonView as _0xa1e543,SKELETON_DEFINITIONS as _0xed0d08}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4e4a83}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x572a36}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x45f2bc{[_0x37f596(0x170)];[_0x37f596(0x165)];[_0x37f596(0x148)];[_0x37f596(0x145)];[_0x37f596(0x164)];[_0x37f596(0x16f)];constructor(_0x580660,_0x2d26da){const _0x4a0337=_0x37f596;super(_0x580660),this[_0x4a0337(0x141)](_0x4a0337(0x11d),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x16d),!0x0),this[_0x4a0337(0x141)](_0x4a0337(0x153),''),this[_0x4a0337(0x141)](_0x4a0337(0x140),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x122),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x14a),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x133),!0x1);const _0x22515a=new _0x3afe3b(_0x580660,{'label':_0x572a36(_0x580660,_0x4a0337(0x150)),'icon':_0x5a65f0,'class':_0x4a0337(0x139)});_0x2d26da&&(this[_0x4a0337(0x16f)]=_0x4e4a83(_0x580660,this),_0x22515a[_0x4a0337(0x171)][_0x4a0337(0x11c)](this[_0x4a0337(0x16f)])),this[_0x4a0337(0x164)]=new _0xfd5b67(_0x580660,[]),this[_0x4a0337(0x164)][_0x4a0337(0x152)](..._0x3e06ba)['to'](this),this[_0x4a0337(0x165)]=this[_0x4a0337(0x15f)](),this[_0x4a0337(0x148)]=this[_0x4a0337(0x132)](),this[_0x4a0337(0x145)]=this[_0x4a0337(0x158)](),this[_0x4a0337(0x170)]=this[_0x4a0337(0x11a)](),this[_0x4a0337(0x165)][_0x4a0337(0x16c)]({'attributes':{'class':[this[_0x4a0337(0x172)]['if'](_0x4a0337(0x133),_0x4a0337(0x13c),_0x2268d4=>!_0x2268d4)]}}),this['on'](_0x4a0337(0x157),()=>this[_0x4a0337(0x130)]()),this['on'](_0x4a0337(0x174),()=>this[_0x4a0337(0x130)]()),this['on'](_0x4a0337(0x15d),()=>this[_0x4a0337(0x130)]()),this[_0x4a0337(0x146)]({'tag':_0x4a0337(0x137),'attributes':{'class':['ck',_0x4a0337(0x162),_0x4a0337(0x13b),_0x4a0337(0x13d)],'dir':_0x4a0337(0x134)},'children':[_0x22515a,{'tag':_0x4a0337(0x137),'attributes':{'class':[_0x4a0337(0x154)]},'children':[this[_0x4a0337(0x148)],this[_0x4a0337(0x165)],this[_0x4a0337(0x145)],this[_0x4a0337(0x170)]]}]});}[_0x37f596(0x130)](){const _0x491023=_0x37f596;this[_0x491023(0x122)]=!this[_0x491023(0x16d)]&&this[_0x491023(0x11d)],this[_0x491023(0x14a)]=!this[_0x491023(0x16d)]&&!this[_0x491023(0x11d)]&&!this[_0x491023(0x153)],this[_0x491023(0x133)]=!this[_0x491023(0x122)]&&!!this[_0x491023(0x153)];}[_0x37f596(0x11a)](){const _0x17487b=_0x37f596,_0x12b872=new _0x4e76bd(this[_0x17487b(0x175)],{'filteredView':this[_0x17487b(0x164)],'queryView':{'label':_0x572a36(this[_0x17487b(0x175)],_0x17487b(0x12d))},'infoView':{'text':{'notFound':{'primary':_0x308faf=>_0x572a36(this[_0x17487b(0x175)],_0x17487b(0x14d),_0x308faf),'secondary':_0x572a36(this[_0x17487b(0x175)],_0x17487b(0x163))}}}}),_0x29f073=this[_0x17487b(0x15f)]();return _0x29f073[_0x17487b(0x16c)]({'attributes':{'class':[this[_0x17487b(0x172)]['if'](_0x17487b(0x153),_0x17487b(0x13c),_0x208dfc=>!_0x208dfc)]}}),_0x12b872['on'](_0x17487b(0x119),()=>{const _0x4857ca=_0x17487b;_0x12b872[_0x4857ca(0x171)][_0x4857ca(0x11c)](_0x29f073,0x1);}),_0x12b872[_0x17487b(0x16c)]({'attributes':{'class':[this[_0x17487b(0x172)]['if'](_0x17487b(0x122),_0x17487b(0x13c),_0x1828c8=>!_0x1828c8)]}}),_0x12b872;}[_0x37f596(0x132)](){const _0xe391da=_0x37f596,_0x29b140=new _0xa1e543(this[_0xe391da(0x175)],_0xed0d08[_0xe391da(0x129)]);return _0x29b140[_0xe391da(0x16c)]({'attributes':{'class':[this[_0xe391da(0x172)]['if'](_0xe391da(0x16d),_0xe391da(0x13c),_0x19c9b4=>!_0x19c9b4)]}}),_0x29b140;}[_0x37f596(0x15f)](){const _0x1a3bcc=_0x37f596,_0x5972cd=new _0x45f2bc(this[_0x1a3bcc(0x175)]),_0x16b1fb=new _0x47136c(this[_0x1a3bcc(0x175)]);_0x16b1fb[_0x1a3bcc(0x141)]({'withText':!0x1,'icon':_0x135f2d,'class':_0x1a3bcc(0x14c)}),_0x16b1fb[_0x1a3bcc(0x12f)](_0x1a3bcc(0x11e))['to'](this,_0x1a3bcc(0x11d),_0x51b2d7=>!!_0x51b2d7),_0x16b1fb['on'](_0x1a3bcc(0x11f),()=>{const _0x932e14=_0x1a3bcc;this[_0x932e14(0x153)]='';});const _0x2f92e2=this[_0x1a3bcc(0x172)];return _0x5972cd[_0x1a3bcc(0x146)]({'tag':_0x1a3bcc(0x137),'attributes':{'class':['ck',_0x1a3bcc(0x15c),_0x1a3bcc(0x120)]},'children':[{'tag':'p','children':[{'text':_0x2f92e2['to'](_0x1a3bcc(0x153))}]},_0x16b1fb]}),_0x5972cd;}[_0x37f596(0x158)](){const _0x46a3bc=_0x37f596,_0xd54ed3=new _0x47136c(this[_0x46a3bc(0x175)]);_0xd54ed3[_0x46a3bc(0x141)]({'label':_0x572a36(this[_0x46a3bc(0x175)],_0x46a3bc(0x128)),'withText':!0x0,'icon':_0x47656f,'class':_0x46a3bc(0x12e)}),_0xd54ed3['on'](_0x46a3bc(0x11f),()=>{const _0x47db70=_0x46a3bc;this[_0x47db70(0x14e)](_0x47db70(0x14f));});const _0x14ab30=new _0x45f2bc(this[_0x46a3bc(0x175)]);return _0x14ab30[_0x46a3bc(0x146)]({'tag':_0x46a3bc(0x137),'attributes':{'class':[_0x46a3bc(0x149),this[_0x46a3bc(0x172)]['if'](_0x46a3bc(0x14a),_0x46a3bc(0x13c),_0x404c3b=>!_0x404c3b)]},'children':[{'tag':'p','attributes':{'class':[_0x46a3bc(0x167)]},'children':[_0x572a36(this[_0x46a3bc(0x175)],_0x46a3bc(0x11b))]},_0xd54ed3]}),_0x14ab30;}[_0x37f596(0x138)](_0x29eef3,_0x1181fc){const _0x332e26=_0x37f596,_0x50206e=[];for(const _0xd51cca of _0x29eef3){const _0x1baae1=new _0x5b0950(_0x1181fc,_0xd51cca);_0x1baae1[_0x332e26(0x152)](..._0x3e06ba)['to'](this),_0x50206e[_0x332e26(0x125)](_0x1baae1);}return _0x50206e;}[_0x37f596(0x12a)](_0xdb6975){const _0x3622fd=_0x37f596,_0x362405=this[_0x3622fd(0x175)]||'en',_0x5cba96=[];for(const _0x55a928 of _0xdb6975){const _0x351664=this[_0x3622fd(0x138)](_0x55a928[_0x3622fd(0x143)],_0x362405);_0x5cba96[_0x3622fd(0x125)](new _0xbf3f86(_0x362405,{'title':_0x55a928[_0x3622fd(0x15b)],'items':_0x351664}));}this[_0x3622fd(0x164)][_0x3622fd(0x166)]=_0x5cba96,this[_0x3622fd(0x164)][_0x3622fd(0x143)][_0x3622fd(0x16a)](),this[_0x3622fd(0x164)][_0x3622fd(0x143)][_0x3622fd(0x14b)](_0x5cba96),this[_0x3622fd(0x11d)]=_0xdb6975[_0x3622fd(0x151)](_0x12c467=>_0x12c467[_0x3622fd(0x143)][_0x3622fd(0x161)]>0x0),this[_0x3622fd(0x123)]();}[_0x37f596(0x159)](_0x166d92){const _0x5dce56=_0x37f596;for(const _0x4da890 of this[_0x5dce56(0x164)][_0x5dce56(0x166)]){const _0x4ef4a1=_0x4da890[_0x5dce56(0x16b)](_0x166d92);if(_0x4ef4a1){if(_0x4da890[_0x5dce56(0x142)](_0x4ef4a1),0x0===_0x4da890[_0x5dce56(0x168)][_0x5dce56(0x161)]){const _0x1cbfd2=this[_0x5dce56(0x164)][_0x5dce56(0x166)][_0x5dce56(0x127)](_0x4da890);-0x1!==_0x1cbfd2&&(this[_0x5dce56(0x164)][_0x5dce56(0x166)][_0x5dce56(0x13a)](_0x1cbfd2,0x1),this[_0x5dce56(0x164)][_0x5dce56(0x143)][_0x5dce56(0x15a)](_0x4da890));}this[_0x5dce56(0x11d)]=this[_0x5dce56(0x164)][_0x5dce56(0x166)][_0x5dce56(0x161)]>0x0,this[_0x5dce56(0x123)]();break;}}}[_0x37f596(0x131)](_0x4fc99a,_0x2329a9){const _0x56353f=_0x37f596;for(const _0x4cf86b of this[_0x56353f(0x164)][_0x56353f(0x166)]){const _0x804169=_0x4cf86b[_0x56353f(0x16b)](_0x4fc99a);if(_0x804169){_0x804169[_0x56353f(0x136)](_0x2329a9);break;}}}[_0x37f596(0x160)](_0x4baf5e,_0x4eb411,_0x41aa4c){const _0x175d5c=_0x37f596;for(const _0x1a1e78 of this[_0x175d5c(0x164)][_0x175d5c(0x166)]){const _0x4a4084=_0x1a1e78[_0x175d5c(0x16b)](_0x4baf5e);if(_0x4a4084){_0x4a4084[_0x175d5c(0x173)](_0x4eb411,_0x41aa4c);break;}}}[_0x37f596(0x123)](){const _0x1274dd=_0x37f596;if(this[_0x1274dd(0x11d)]){const _0x54191f=this[_0x1274dd(0x170)][_0x1274dd(0x144)][_0x1274dd(0x16e)]?.[_0x1274dd(0x12b)]?.[_0x1274dd(0x124)]||'';this[_0x1274dd(0x170)][_0x1274dd(0x126)](_0x54191f);}}}
|
|
23
|
+
const _0x5d2a19=_0x247c;(function(_0x5a3719,_0x2a67c4){const _0x44b4d5=_0x247c,_0x4b7d21=_0x5a3719();while(!![]){try{const _0x3a0f96=-parseInt(_0x44b4d5(0xa1))/0x1+parseInt(_0x44b4d5(0xee))/0x2*(-parseInt(_0x44b4d5(0xc1))/0x3)+parseInt(_0x44b4d5(0xb5))/0x4*(-parseInt(_0x44b4d5(0xf2))/0x5)+-parseInt(_0x44b4d5(0xd4))/0x6+parseInt(_0x44b4d5(0xc9))/0x7*(-parseInt(_0x44b4d5(0xc0))/0x8)+parseInt(_0x44b4d5(0xcd))/0x9*(-parseInt(_0x44b4d5(0xd3))/0xa)+parseInt(_0x44b4d5(0xb2))/0xb*(parseInt(_0x44b4d5(0xa9))/0xc);if(_0x3a0f96===_0x2a67c4)break;else _0x4b7d21['push'](_0x4b7d21['shift']());}catch(_0xc90d99){_0x4b7d21['push'](_0x4b7d21['shift']());}}}(_0x3bc1,0xf1e47));import{View as _0x59f1ec,SearchTextView as _0x242683,FormHeaderView as _0x1dcd4a,ButtonView as _0x1bc80f}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x2bb5a4,IconCancel as _0xbde46f,IconPlus as _0x3bd191}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x34332f}from'./aichathistorysectionlistview.js';function _0x247c(_0x188bee,_0x5e86a3){const _0x3bc154=_0x3bc1();return _0x247c=function(_0x247cb5,_0xc3d6a9){_0x247cb5=_0x247cb5-0x9f;let _0x4e2a5e=_0x3bc154[_0x247cb5];return _0x4e2a5e;},_0x247c(_0x188bee,_0x5e86a3);}import{AIChatHistoryListView as _0x2bc5ae}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x3cb79f}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x18d30c}from'../aichathistoryui.js';import{AISkeletonView as _0x173de7,SKELETON_DEFINITIONS as _0xedefe7}from'../../aicore/ui/aiskeleton.js';function _0x3bc1(){const _0x243229=['change:hasItems','updateTitle','items','set','_createListItemViews','AI_CHAT_HISTORY_SEARCH_LABEL','8006XRaCqA','fieldView','render','AI_CHAT_HISTORY_HEADING','7405cePXAe','change:errorMessage','execute','removeHistoryItem','searchView','isVisible','setTemplate','length','emptyView','AI_CHAT_LABEL_NEW_CHAT','_createErrorView','element','indexOf','add','1312324FSsUgh','addMany','change:isLoading','ck-ai-chat-history__empty','ck-ai-chat-history__content','isLoading','errorMessage','ck-ai-header\x20ck-ai-header_history','195444sbTDrL','ck-ai-chat-history__empty-message','remove','ck-ai-notification','title','openChat','bind','sections','ck-rounded-corners','3729RtOsmc','fire','ck-reset_all','2648NylQNs','_refreshSearch','updateLoadingState','mainErrorView','_createSearchView','removeItem','_createEmptyStateView','updateItemLoadingState','isMaximized','push','isSearchViewVisible','264288WoYwYv','333UrpQAm','search','delegate','clear','some','splice','isMainErrorViewVisible','sectionsView','217RPvilS','_updateViewVisibility','ck-ai-chat__start-conversation','itemsViews','630UJmJDp','AI_CHAT_HISTORY_EMPTY_MESSAGE','queryView','hasItems','div','getItem','23740ElOuxY','3618762rGhhfZ','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','resizeButton','ck-ai-notification_error__dismiss-button','skeletonView','updateItemTitle','updateHistoryItemsWithCategories','locale','bindTemplate','ltr','isEmptyViewVisible','value','extendTemplate','ck-ai-chat-history','_createSkeletonView','children','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','ck-ai-notification_error','aiHistory','ck-hidden'];_0x3bc1=function(){return _0x243229;};return _0x3bc1();}import{createResizeButton as _0x1260c2}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x57aef4}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x59f1ec{[_0x5d2a19(0xf6)];[_0x5d2a19(0xb8)];[_0x5d2a19(0xd8)];[_0x5d2a19(0xfa)];[_0x5d2a19(0xc8)];[_0x5d2a19(0xd6)];constructor(_0x4a63a7,_0x550328){const _0x35e3f9=_0x5d2a19;super(_0x4a63a7),this[_0x35e3f9(0xeb)](_0x35e3f9(0xd0),!0x1),this[_0x35e3f9(0xeb)](_0x35e3f9(0xa6),!0x0),this[_0x35e3f9(0xeb)](_0x35e3f9(0xa7),''),this[_0x35e3f9(0xeb)](_0x35e3f9(0xbd),!0x1),this[_0x35e3f9(0xeb)](_0x35e3f9(0xbf),!0x1),this[_0x35e3f9(0xeb)](_0x35e3f9(0xde),!0x1),this[_0x35e3f9(0xeb)](_0x35e3f9(0xc7),!0x1);const _0x2e9a3e=new _0x1dcd4a(_0x4a63a7,{'label':_0x57aef4(_0x4a63a7,_0x35e3f9(0xf1)),'icon':_0x2bb5a4,'class':_0x35e3f9(0xa8)});_0x550328&&(this[_0x35e3f9(0xd6)]=_0x1260c2(_0x4a63a7,this),_0x2e9a3e[_0x35e3f9(0xe3)][_0x35e3f9(0xa0)](this[_0x35e3f9(0xd6)])),this[_0x35e3f9(0xc8)]=new _0x34332f(_0x4a63a7,[]),this[_0x35e3f9(0xc8)][_0x35e3f9(0xc3)](..._0x18d30c)['to'](this),this[_0x35e3f9(0xb8)]=this[_0x35e3f9(0xfc)](),this[_0x35e3f9(0xd8)]=this[_0x35e3f9(0xe2)](),this[_0x35e3f9(0xfa)]=this[_0x35e3f9(0xbb)](),this[_0x35e3f9(0xf6)]=this[_0x35e3f9(0xb9)](),this[_0x35e3f9(0xb8)][_0x35e3f9(0xe0)]({'attributes':{'class':[this[_0x35e3f9(0xdc)]['if'](_0x35e3f9(0xc7),_0x35e3f9(0xe7),_0x509082=>!_0x509082)]}}),this['on'](_0x35e3f9(0xa3),()=>this[_0x35e3f9(0xca)]()),this['on'](_0x35e3f9(0xe8),()=>this[_0x35e3f9(0xca)]()),this['on'](_0x35e3f9(0xf3),()=>this[_0x35e3f9(0xca)]()),this[_0x35e3f9(0xf8)]({'tag':_0x35e3f9(0xd1),'attributes':{'class':['ck',_0x35e3f9(0xb4),_0x35e3f9(0xe1),_0x35e3f9(0xb1)],'dir':_0x35e3f9(0xdd)},'children':[_0x2e9a3e,{'tag':_0x35e3f9(0xd1),'attributes':{'class':[_0x35e3f9(0xa5)]},'children':[this[_0x35e3f9(0xd8)],this[_0x35e3f9(0xb8)],this[_0x35e3f9(0xfa)],this[_0x35e3f9(0xf6)]]}]});}[_0x5d2a19(0xca)](){const _0x3f3a6e=_0x5d2a19;this[_0x3f3a6e(0xbf)]=!this[_0x3f3a6e(0xa6)]&&this[_0x3f3a6e(0xd0)],this[_0x3f3a6e(0xde)]=!this[_0x3f3a6e(0xa6)]&&!this[_0x3f3a6e(0xd0)]&&!this[_0x3f3a6e(0xa7)],this[_0x3f3a6e(0xc7)]=!this[_0x3f3a6e(0xbf)]&&!!this[_0x3f3a6e(0xa7)];}[_0x5d2a19(0xb9)](){const _0x2338ca=_0x5d2a19,_0x2ab336=new _0x242683(this[_0x2338ca(0xdb)],{'filteredView':this[_0x2338ca(0xc8)],'queryView':{'label':_0x57aef4(this[_0x2338ca(0xdb)],_0x2338ca(0xed))},'infoView':{'text':{'notFound':{'primary':_0x11269a=>_0x57aef4(this[_0x2338ca(0xdb)],_0x2338ca(0xe4),_0x11269a),'secondary':_0x57aef4(this[_0x2338ca(0xdb)],_0x2338ca(0xd5))}}}}),_0x38e075=this[_0x2338ca(0xfc)]();return _0x38e075[_0x2338ca(0xe0)]({'attributes':{'class':[this[_0x2338ca(0xdc)]['if'](_0x2338ca(0xa7),_0x2338ca(0xe7),_0x56312b=>!_0x56312b)]}}),_0x2ab336['on'](_0x2338ca(0xf0),()=>{const _0x9993af=_0x2338ca;_0x2ab336[_0x9993af(0xe3)][_0x9993af(0xa0)](_0x38e075,0x1);}),_0x2ab336[_0x2338ca(0xe0)]({'attributes':{'class':[this[_0x2338ca(0xdc)]['if'](_0x2338ca(0xbf),_0x2338ca(0xe7),_0x1ab794=>!_0x1ab794)]}}),_0x2ab336;}[_0x5d2a19(0xe2)](){const _0x57b177=_0x5d2a19,_0x57793d=new _0x173de7(this[_0x57b177(0xdb)],_0xedefe7[_0x57b177(0xe6)]);return _0x57793d[_0x57b177(0xe0)]({'attributes':{'class':[this[_0x57b177(0xdc)]['if'](_0x57b177(0xa6),_0x57b177(0xe7),_0x5264d3=>!_0x5264d3)]}}),_0x57793d;}[_0x5d2a19(0xfc)](){const _0x4bbc7b=_0x5d2a19,_0x14b59e=new _0x59f1ec(this[_0x4bbc7b(0xdb)]),_0x2fa995=new _0x1bc80f(this[_0x4bbc7b(0xdb)]);_0x2fa995[_0x4bbc7b(0xeb)]({'withText':!0x1,'icon':_0xbde46f,'class':_0x4bbc7b(0xd7)}),_0x2fa995[_0x4bbc7b(0xaf)](_0x4bbc7b(0xf7))['to'](this,_0x4bbc7b(0xd0),_0x245e04=>!!_0x245e04),_0x2fa995['on'](_0x4bbc7b(0xf4),()=>{const _0x2634c3=_0x4bbc7b;this[_0x2634c3(0xa7)]='';});const _0x1869df=this[_0x4bbc7b(0xdc)];return _0x14b59e[_0x4bbc7b(0xf8)]({'tag':_0x4bbc7b(0xd1),'attributes':{'class':['ck',_0x4bbc7b(0xac),_0x4bbc7b(0xe5)]},'children':[{'tag':'p','children':[{'text':_0x1869df['to'](_0x4bbc7b(0xa7))}]},_0x2fa995]}),_0x14b59e;}[_0x5d2a19(0xbb)](){const _0x5de220=_0x5d2a19,_0x23886e=new _0x1bc80f(this[_0x5de220(0xdb)]);_0x23886e[_0x5de220(0xeb)]({'label':_0x57aef4(this[_0x5de220(0xdb)],_0x5de220(0xfb)),'withText':!0x0,'icon':_0x3bd191,'class':_0x5de220(0xcb)}),_0x23886e['on'](_0x5de220(0xf4),()=>{const _0x29b509=_0x5de220;this[_0x29b509(0xb3)](_0x29b509(0xae));});const _0x42fe5d=new _0x59f1ec(this[_0x5de220(0xdb)]);return _0x42fe5d[_0x5de220(0xf8)]({'tag':_0x5de220(0xd1),'attributes':{'class':[_0x5de220(0xa4),this[_0x5de220(0xdc)]['if'](_0x5de220(0xde),_0x5de220(0xe7),_0x5bb71e=>!_0x5bb71e)]},'children':[{'tag':'p','attributes':{'class':[_0x5de220(0xaa)]},'children':[_0x57aef4(this[_0x5de220(0xdb)],_0x5de220(0xce))]},_0x23886e]}),_0x42fe5d;}[_0x5d2a19(0xec)](_0x102c98,_0x2816cc){const _0x3964c3=_0x5d2a19,_0x5dc14a=[];for(const _0x37c1b8 of _0x102c98){const _0x2223e2=new _0x3cb79f(_0x2816cc,_0x37c1b8);_0x2223e2[_0x3964c3(0xc3)](..._0x18d30c)['to'](this),_0x5dc14a[_0x3964c3(0xbe)](_0x2223e2);}return _0x5dc14a;}[_0x5d2a19(0xda)](_0x20f53f){const _0x5a1804=_0x5d2a19,_0x2b4e32=this[_0x5a1804(0xdb)]||'en',_0x3747c1=[];for(const _0x2b6a56 of _0x20f53f){const _0x11baf9=this[_0x5a1804(0xec)](_0x2b6a56[_0x5a1804(0xea)],_0x2b4e32);_0x3747c1[_0x5a1804(0xbe)](new _0x2bc5ae(_0x2b4e32,{'title':_0x2b6a56[_0x5a1804(0xad)],'items':_0x11baf9}));}this[_0x5a1804(0xc8)][_0x5a1804(0xb0)]=_0x3747c1,this[_0x5a1804(0xc8)][_0x5a1804(0xea)][_0x5a1804(0xc4)](),this[_0x5a1804(0xc8)][_0x5a1804(0xea)][_0x5a1804(0xa2)](_0x3747c1),this[_0x5a1804(0xd0)]=_0x20f53f[_0x5a1804(0xc5)](_0x218af5=>_0x218af5[_0x5a1804(0xea)][_0x5a1804(0xf9)]>0x0),this[_0x5a1804(0xb6)]();}[_0x5d2a19(0xf5)](_0x3b970e){const _0x57f728=_0x5d2a19;for(const _0x342cab of this[_0x57f728(0xc8)][_0x57f728(0xb0)]){const _0x5b67f2=_0x342cab[_0x57f728(0xd2)](_0x3b970e);if(_0x5b67f2){if(_0x342cab[_0x57f728(0xba)](_0x5b67f2),0x0===_0x342cab[_0x57f728(0xcc)][_0x57f728(0xf9)]){const _0x3e197a=this[_0x57f728(0xc8)][_0x57f728(0xb0)][_0x57f728(0x9f)](_0x342cab);-0x1!==_0x3e197a&&(this[_0x57f728(0xc8)][_0x57f728(0xb0)][_0x57f728(0xc6)](_0x3e197a,0x1),this[_0x57f728(0xc8)][_0x57f728(0xea)][_0x57f728(0xab)](_0x342cab));}this[_0x57f728(0xd0)]=this[_0x57f728(0xc8)][_0x57f728(0xb0)][_0x57f728(0xf9)]>0x0,this[_0x57f728(0xb6)]();break;}}}[_0x5d2a19(0xd9)](_0x20c203,_0x3f85ea){const _0x587f61=_0x5d2a19;for(const _0x3fd66a of this[_0x587f61(0xc8)][_0x587f61(0xb0)]){const _0x238795=_0x3fd66a[_0x587f61(0xd2)](_0x20c203);if(_0x238795){_0x238795[_0x587f61(0xe9)](_0x3f85ea);break;}}}[_0x5d2a19(0xbc)](_0x6fd2a5,_0x5d625f,_0x2e7c0d){const _0x465b0d=_0x5d2a19;for(const _0x5e9fce of this[_0x465b0d(0xc8)][_0x465b0d(0xb0)]){const _0x43d581=_0x5e9fce[_0x465b0d(0xd2)](_0x6fd2a5);if(_0x43d581){_0x43d581[_0x465b0d(0xb7)](_0x5d625f,_0x2e7c0d);break;}}}[_0x5d2a19(0xb6)](){const _0x38b7d5=_0x5d2a19;if(this[_0x38b7d5(0xd0)]){const _0x386f61=this[_0x38b7d5(0xf6)][_0x38b7d5(0xcf)][_0x38b7d5(0xef)]?.[_0x38b7d5(0xfd)]?.[_0x38b7d5(0xdf)]||'';this[_0x38b7d5(0xf6)][_0x38b7d5(0xc2)](_0x386f61);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3f74(_0x52e242,_0x5b993a){const _0x4f6707=_0x4f67();return _0x3f74=function(_0x3f7402,_0x56081a){_0x3f7402=_0x3f7402-0xc4;let _0x1ba5db=_0x4f6707[_0x3f7402];return _0x1ba5db;},_0x3f74(_0x52e242,_0x5b993a);}const _0x40cf87=_0x3f74;(function(_0x287972,_0x19ea14){const _0x2c862b=_0x3f74,_0x354444=_0x287972();while(!![]){try{const _0x2068f7=-parseInt(_0x2c862b(0xd5))/0x1+-parseInt(_0x2c862b(0xf4))/0x2+-parseInt(_0x2c862b(0xca))/0x3*(-parseInt(_0x2c862b(0x11c))/0x4)+parseInt(_0x2c862b(0x105))/0x5*(parseInt(_0x2c862b(0xee))/0x6)+-parseInt(_0x2c862b(0xe6))/0x7+-parseInt(_0x2c862b(0xf0))/0x8+-parseInt(_0x2c862b(0x104))/0x9*(-parseInt(_0x2c862b(0xd6))/0xa);if(_0x2068f7===_0x19ea14)break;else _0x354444['push'](_0x354444['shift']());}catch(_0x48df18){_0x354444['push'](_0x354444['shift']());}}}(_0x4f67,0x3c8c1));import{AIChatUI as _0x580a6c}from'../aichat/aichatui.js';import{ContextPlugin as _0x55c645}from'ckeditor5/src/core.js';function _0x4f67(){const _0xb5b659=['ai-chat-shortcuts-review-mode-not-found','config','find','477053QjZGUl','6386330pEWfxy','reviewMode','check','listenTo','ai-chat-shortcuts-ai-tabs-not-found','string','context','_shortcutsView','translate','AIReviewModeUI','custom','ai-chat-shortcuts-translate-not-found','ai.chat.shortcuts','setPromptInputValue','sendMessage','_switchTab','3089758WhAeGj','get','TRANSLATE','CHAT','label','addFeedItemCustomElement','getModel','AIChatShortcuts','25800cfSSYT','locale','1111520ClAVLj','isFromHistory','isPremiumPlugin','_runChatShortcut','476782xqDPOK','chat','language','hasFeedItem','has','AITabs','conversationCreated','focusPromptInput','activeConversation','activateTab','view','render','pluginName','setWebSearch','requires','interactionStarted','18LrMmtI','215SeknrJ','AIChat','addCurrentDocumentToChatContext','init','getDefault','args','_removeShortcuts','forEach','_injectShortcuts','fire','runReviewCheck','source','isOfficialPlugin','setReasoning','_shortcuts','type','_aiChatUI','params','plugins','_runReviewShortcut','ai-chat-shortcuts-invalid-config','element','chat-shortcuts','326452DIwswY','length','values','destroy','_validateShortcuts','_runTranslateShortcut','includes','AITranslateUI','prompt','chatModels','3NTZgcb','review','AIChatController','setModel','REVIEW','_executeShortcut','execute','removeFeedItem'];_0x4f67=function(){return _0xb5b659;};return _0x4f67();}import{AIChatShortcutsView as _0x5d8cb1}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x5e0bef}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x40cf87(0x11b);export var AIChatShortcutType;!function(_0x22b1b3){const _0x1651c5=_0x40cf87;_0x22b1b3[_0x1651c5(0xe9)]=_0x1651c5(0xf5),_0x22b1b3[_0x1651c5(0xce)]=_0x1651c5(0xcb),_0x22b1b3[_0x1651c5(0xe8)]=_0x1651c5(0xde);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x55c645{[_0x40cf87(0x113)];[_0x40cf87(0xdd)];[_0x40cf87(0x115)];static get[_0x40cf87(0x102)](){return[_0x580a6c];}static get[_0x40cf87(0x100)](){const _0x55365d=_0x40cf87;return _0x55365d(0xed);}static get[_0x40cf87(0x111)](){return!0x0;}static get[_0x40cf87(0xf2)](){return!0x0;}[_0x40cf87(0x108)](){const _0x443de0=_0x40cf87;this[_0x443de0(0x115)]=this[_0x443de0(0xdc)][_0x443de0(0x117)][_0x443de0(0xe7)](_0x580a6c),this[_0x443de0(0x113)]=this[_0x443de0(0xdc)][_0x443de0(0xd3)][_0x443de0(0xe7)](_0x443de0(0xe2))??[];const _0x255466=this[_0x443de0(0xdc)][_0x443de0(0x117)][_0x443de0(0xe7)](_0x443de0(0xcc));this[_0x443de0(0x113)][_0x443de0(0x11d)]&&(this[_0x443de0(0xc4)](),this[_0x443de0(0x115)]['on'](_0x443de0(0xfa),()=>{const _0x312bb8=_0x443de0;_0x255466[_0x312bb8(0xfc)][_0x312bb8(0xf1)]||this[_0x312bb8(0x10d)]();}),this[_0x443de0(0xd9)](_0x255466,_0x443de0(0x103),()=>{const _0x28b44b=_0x443de0;this[_0x28b44b(0x10b)]();}));}[_0x40cf87(0xc4)](){const _0x1bf623=_0x40cf87,_0x106683=Object[_0x1bf623(0x11e)](AIChatShortcutType);this[_0x1bf623(0x113)][_0x1bf623(0x10c)](_0x7e2203=>{const _0x41082f=_0x1bf623;let _0x584ab6=!0x0;if(_0x7e2203['id']&&_0x7e2203[_0x41082f(0xea)]&&_0x106683[_0x41082f(0xc6)](_0x7e2203[_0x41082f(0x114)])?_0x41082f(0xf5)===_0x7e2203[_0x41082f(0x114)]&&(_0x584ab6=_0x41082f(0xdb)==typeof _0x7e2203[_0x41082f(0xc8)]):_0x584ab6=!0x1,!_0x584ab6)throw new _0x5e0bef(_0x41082f(0x119),this[_0x41082f(0xdc)],{'shortcut':_0x7e2203});});}[_0x40cf87(0x10d)](){const _0x5e9422=_0x40cf87,_0x5d012c=this[_0x5e9422(0xdc)][_0x5e9422(0x117)][_0x5e9422(0xe7)](_0x580a6c);this[_0x5e9422(0xdd)]=new _0x5d8cb1(this[_0x5e9422(0xdc)][_0x5e9422(0xef)],this[_0x5e9422(0x113)]),this[_0x5e9422(0xdd)][_0x5e9422(0xff)](),_0x5d012c[_0x5e9422(0xeb)](this[_0x5e9422(0xdd)][_0x5e9422(0x11a)],Ut),this[_0x5e9422(0xdd)]['on'](_0x5e9422(0xd0),_0x3b2738=>{const _0x4853d3=_0x5e9422,_0x20dcb3=_0x3b2738[_0x4853d3(0x110)]['id'];this[_0x4853d3(0xcf)](_0x20dcb3);});}[_0x40cf87(0x10b)](){const _0x324d3d=_0x40cf87,_0x441cc0=this[_0x324d3d(0xdc)][_0x324d3d(0x117)][_0x324d3d(0xe7)](_0x580a6c);_0x441cc0[_0x324d3d(0xf7)](Ut)&&_0x441cc0[_0x324d3d(0xd1)](Ut),this[_0x324d3d(0xdd)]?.[_0x324d3d(0x11f)]();}[_0x40cf87(0xcf)](_0x37f67e){const _0x228f9c=_0x40cf87,_0x283a10=this[_0x228f9c(0x113)][_0x228f9c(0xd4)](_0x7452a3=>_0x7452a3['id']===_0x37f67e),_0x3485ec=_0x283a10[_0x228f9c(0x114)];_0x228f9c(0xf5)===_0x3485ec?this[_0x228f9c(0xf3)](_0x283a10):_0x228f9c(0xcb)===_0x3485ec?_0x283a10[_0x228f9c(0xd8)]?this[_0x228f9c(0x118)](_0x283a10):this[_0x228f9c(0xe5)](_0x228f9c(0xd7)):_0x228f9c(0xde)===_0x3485ec&&(_0x283a10[_0x228f9c(0xf6)]?this[_0x228f9c(0xc5)](_0x283a10):this[_0x228f9c(0xe5)](_0x228f9c(0xde)));}[_0x40cf87(0xe5)](_0x51dab0){const _0x98fd97=_0x40cf87;if(!this[_0x98fd97(0xdc)][_0x98fd97(0x117)][_0x98fd97(0xf8)](_0x98fd97(0xf9)))throw new _0x5e0bef(_0x98fd97(0xda),this[_0x98fd97(0xdc)],{'tabName':_0x51dab0});this[_0x98fd97(0xdc)][_0x98fd97(0x117)][_0x98fd97(0xe7)](_0x98fd97(0xf9))[_0x98fd97(0xfe)][_0x98fd97(0xfd)](_0x51dab0);}async[_0x40cf87(0xf3)]({prompt:_0x267792,draftMode:_0x1444d6,useWebSearch:_0x49bd17=!0x1,useReasoning:_0x105f35=!0x1,model:_0x1497dd}){const _0x1e09f5=_0x40cf87,_0x31414b=this[_0x1e09f5(0xdc)][_0x1e09f5(0x117)][_0x1e09f5(0xe7)](_0x1e09f5(0x106)),_0x15015c=this[_0x1e09f5(0xdc)][_0x1e09f5(0x117)][_0x1e09f5(0xe7)](_0x1e09f5(0xcc)),_0x18610b=_0x15015c[_0x1e09f5(0xfc)];let _0x34d3ce;_0x34d3ce=_0x1497dd?await _0x18610b[_0x1e09f5(0xc9)][_0x1e09f5(0xec)](_0x1497dd):await _0x18610b[_0x1e09f5(0xc9)][_0x1e09f5(0x109)](),_0x34d3ce&&await _0x18610b[_0x1e09f5(0xcd)](_0x34d3ce),_0x18610b[_0x1e09f5(0x101)](_0x49bd17),_0x18610b[_0x1e09f5(0x112)](_0x105f35),_0x15015c[_0x1e09f5(0x107)](),_0x1444d6?(this[_0x1e09f5(0x115)][_0x1e09f5(0xe3)](_0x267792),this[_0x1e09f5(0x115)][_0x1e09f5(0xfb)](!0x0)):_0x31414b[_0x1e09f5(0xe4)]({'message':_0x267792});}[_0x40cf87(0x118)]({check:_0x2984e3,model:_0x256cd8,prompt:_0x31ca51,params:_0x211bc7}){const _0x2da978=_0x40cf87;if(!this[_0x2da978(0xdc)][_0x2da978(0x117)][_0x2da978(0xf8)](_0x2da978(0xdf)))throw new _0x5e0bef(_0x2da978(0xd2),this[_0x2da978(0xdc)]);this[_0x2da978(0xe5)](_0x2da978(0xd7));const _0x2c163c={'id':_0x2984e3,'isCustom':_0x2da978(0xe0)===_0x2984e3};_0x256cd8&&_0x31ca51&&(_0x2c163c[_0x2da978(0x10a)]={'model':_0x256cd8,'prompt':_0x31ca51}),_0x211bc7&&(_0x2c163c[_0x2da978(0x116)]=_0x211bc7),this[_0x2da978(0xdc)][_0x2da978(0x117)][_0x2da978(0xe7)](_0x2da978(0xdf))[_0x2da978(0x10e)](_0x2da978(0x10f),_0x2c163c);}[_0x40cf87(0xc5)]({language:_0x4cb6a6}){const _0x52b264=_0x40cf87;if(!this[_0x52b264(0xdc)][_0x52b264(0x117)][_0x52b264(0xf8)](_0x52b264(0xc7)))throw new _0x5e0bef(_0x52b264(0xe1),this[_0x52b264(0xdc)]);this[_0x52b264(0xe5)](_0x52b264(0xde)),this[_0x52b264(0xdc)][_0x52b264(0x117)][_0x52b264(0xe7)](_0x52b264(0xc7))[_0x52b264(0x10e)](_0x52b264(0x10f),{'id':_0x4cb6a6,'args':{'language':_0x4cb6a6}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2625(_0x5d12ff,_0x4bbed6){const _0x166fb0=_0x166f();return _0x2625=function(_0x262591,_0x1f43b5){_0x262591=_0x262591-0x1b9;let _0x494885=_0x166fb0[_0x262591];return _0x494885;},_0x2625(_0x5d12ff,_0x4bbed6);}const _0x52aede=_0x2625;function _0x166f(){const _0x141fad=['28530SkOJnM','setTemplate','24OKpbfP','delegate','183399XLnela','add','99294uzgCZS','12507nvbpqY','ck-ai-chat-shortcuts','289406ZGdDGP','items','12nZSwSY','div','7926PDlktV','378izCiRQ','locale','590670ylsuir','addMany','map','children','execute','860PbIHSS','listView'];_0x166f=function(){return _0x141fad;};return _0x166f();}(function(_0x422315,_0x34df4d){const _0x5752d5=_0x2625,_0x1555ea=_0x422315();while(!![]){try{const _0x502694=parseInt(_0x5752d5(0x1ba))/0x1+-parseInt(_0x5752d5(0x1ce))/0x2+-parseInt(_0x5752d5(0x1cc))/0x3+parseInt(_0x5752d5(0x1bc))/0x4*(parseInt(_0x5752d5(0x1c8))/0x5)+parseInt(_0x5752d5(0x1be))/0x6*(parseInt(_0x5752d5(0x1bf))/0x7)+parseInt(_0x5752d5(0x1ca))/0x8*(-parseInt(_0x5752d5(0x1c1))/0x9)+-parseInt(_0x5752d5(0x1c6))/0xa*(-parseInt(_0x5752d5(0x1cf))/0xb);if(_0x502694===_0x34df4d)break;else _0x1555ea['push'](_0x1555ea['shift']());}catch(_0x2cb670){_0x1555ea['push'](_0x1555ea['shift']());}}}(_0x166f,0x29022));import{ListItemView as _0x36a739,ListView as _0x57ff54,View as _0x40226c}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x25bced}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x40226c{[_0x52aede(0x1c7)];constructor(_0x12abea,_0x4ca56e){const _0x1ee74b=_0x52aede;super(_0x12abea);const _0x279986=_0x4ca56e[_0x1ee74b(0x1c3)](_0x3edc9b=>{const _0x12de87=_0x1ee74b,_0x3679e8=new _0x36a739(this[_0x12de87(0x1c0)]),_0x3823dc=new _0x25bced(this[_0x12de87(0x1c0)],_0x3edc9b);return _0x3679e8[_0x12de87(0x1c4)][_0x12de87(0x1cd)](_0x3823dc),_0x3823dc[_0x12de87(0x1cb)](_0x12de87(0x1c5))['to'](this),_0x3679e8;});this[_0x1ee74b(0x1c7)]=new _0x57ff54(this[_0x1ee74b(0x1c0)]),this[_0x1ee74b(0x1c7)][_0x1ee74b(0x1bb)][_0x1ee74b(0x1c2)](_0x279986),this[_0x1ee74b(0x1c9)]({'tag':_0x1ee74b(0x1bd),'attributes':{'class':['ck',_0x1ee74b(0x1b9)]},'children':[this[_0x1ee74b(0x1c7)]]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x228771,_0x1ad8e5){const _0x3a251c=_0x1013,_0x1ec82d=_0x228771();while(!![]){try{const _0x2dcb13=-parseInt(_0x3a251c(0x7f))/0x1+parseInt(_0x3a251c(0x8a))/0x2*(parseInt(_0x3a251c(0x88))/0x3)+-parseInt(_0x3a251c(0x87))/0x4+parseInt(_0x3a251c(0x82))/0x5+-parseInt(_0x3a251c(0x84))/0x6+parseInt(_0x3a251c(0x7d))/0x7*(-parseInt(_0x3a251c(0x81))/0x8)+parseInt(_0x3a251c(0x7b))/0x9*(parseInt(_0x3a251c(0x83))/0xa);if(_0x2dcb13===_0x1ad8e5)break;else _0x1ec82d['push'](_0x1ec82d['shift']());}catch(_0x5655a7){_0x1ec82d['push'](_0x1ec82d['shift']());}}}(_0x1864,0xec935));function _0x1864(){const _0x372b4c=['3AUFBCe','review','2824962hhBTWO','translate','icon','341577UXNjax','ck-ai-chat-shortcut','58009MAGyeM','chat','731181ohxtrk','label','304AlKZOH','7021030ZTpWdS','680ijTLaH','8908230YCUTaw','set','extendTemplate','7590744JIBMwx'];_0x1864=function(){return _0x372b4c;};return _0x1864();}import{ButtonView as _0x49b35a}from'ckeditor5/src/ui.js';function _0x1013(_0x514502,_0x2b492b){const _0x186495=_0x1864();return _0x1013=function(_0x1013de,_0x3123eb){_0x1013de=_0x1013de-0x79;let _0x347cfb=_0x186495[_0x1013de];return _0x347cfb;},_0x1013(_0x514502,_0x2b492b);}import{IconAIChat as _0x37e02a,IconAIReview as _0x12f4d7,IconAITranslate as _0x56912e}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x49b35a{['id'];constructor(_0xd88b30,_0x308078){const _0x2d2c94=_0x1013;super(_0xd88b30);const {id:_0x51a132,type:_0x56c6a6,icon:_0x3b9d3a}=_0x308078;this['id']=_0x51a132,this[_0x2d2c94(0x85)]({'label':_0x308078[_0x2d2c94(0x80)],'withText':!0x0,'class':_0x2d2c94(0x7c)}),this[_0x2d2c94(0x86)]({'attributes':{'data-cke-ai-shortcut-id':_0x308078['id']}}),_0x3b9d3a?this[_0x2d2c94(0x7a)]=_0x3b9d3a:_0x2d2c94(0x7e)===_0x56c6a6?this[_0x2d2c94(0x7a)]=_0x37e02a:_0x2d2c94(0x89)===_0x56c6a6?this[_0x2d2c94(0x7a)]=_0x12f4d7:_0x2d2c94(0x79)===_0x56c6a6&&(this[_0x2d2c94(0x7a)]=_0x56912e);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x524bb7=_0x1d06;(function(_0x237e0c,_0x1d58da){const _0x26d29c=_0x1d06,_0x201921=_0x237e0c();while(!![]){try{const _0x2fe776=parseInt(_0x26d29c(0xc0))/0x1+parseInt(_0x26d29c(0xee))/0x2+parseInt(_0x26d29c(0x128))/0x3*(parseInt(_0x26d29c(0xe0))/0x4)+-parseInt(_0x26d29c(0x118))/0x5*(parseInt(_0x26d29c(0x12a))/0x6)+-parseInt(_0x26d29c(0xfb))/0x7+parseInt(_0x26d29c(0x107))/0x8+-parseInt(_0x26d29c(0xb6))/0x9*(parseInt(_0x26d29c(0xd7))/0xa);if(_0x2fe776===_0x1d58da)break;else _0x201921['push'](_0x201921['shift']());}catch(_0x52d1e5){_0x201921['push'](_0x201921['shift']());}}}(_0x46dd,0xcfc79));import{createParser as _0x8a3a82}from'eventsource-parser';function _0x1d06(_0x40d5ee,_0x538380){const _0x46dd9c=_0x46dd();return _0x1d06=function(_0x1d0644,_0x241f84){_0x1d0644=_0x1d0644-0x9d;let _0x31511d=_0x46dd9c[_0x1d0644];return _0x31511d;},_0x1d06(_0x40d5ee,_0x538380);}import{ContextPlugin as _0x178cb9}from'ckeditor5/src/core.js';import{CKEditorError as _0x4d61db}from'ckeditor5/src/utils.js';export var AIActionsNames;function _0x46dd(){const _0x1dfd7f=['init','abortController','upsertAIChatRating','/conversations','2923230GkAmPP','queryAssistant','GET','executeCustomAction','improve-writing','context','deleteFile','/conversations/','/web-resources/','CloudServices','fetchConversations','language','request','3155537xZPEzm','define','POST','attributes','getReader','true','then','callSystemReview','AbortError','ai.serviceUrl','/messages/','https://ai.cke-cs.com/v1','1213192hLVDnT','plugins','_apiUrl','uploadUrl','fetchConversationMessages','push','/models/1?','FIX_GRAMMAR','fetchDocument','desc','PATCH','_handleError','group','Content-Type','get','/documents/','value','19010QgyzQj','/calls','fetchConversation','MAKE_TONE_FORMAL','isOfficialPlugin','/files','translate','status','read','feed','/messages','limit','token','uploadDocument','_sendApiRequest','pluginName','126hPnfQG','upsertCustomAIReviewRating','2046qTahDu','PUT','message','continue','positiveCount','totalCount','ai-request-aborted','excludeEmpty','sortBy','AIConnector','upsertAIReviewRating','/actions/custom/calls','statusText','name','MAKE_TONE_CASUAL','decode','text','toString','false','executeAction','signal','/web-resources','deleteWebResource','uploadFile','CONTINUE','order','make-longer','json','/reviews/system/','catch','releaseLock','updateConversation','_decoder','9vZrEGr','/actions/custom/calls/','/actions/system/','items','stringify','requires','code','upsertCustomAIActionRating','DELETE','/reviews/custom/calls/','862297YNAPQV','startConversation','/calls/','upsertAIActionRating','_token','getModels','/files/','/conversations?','IMPROVE_WRITING','callCustomReview','/ratings','/documents','deleteConversation','100','TRANSLATE','application/json','fix-grammar','length','traceId','ai-missing-token','_getStreamReader','modificationId','createdAt','6922330rTLqUE','deleteDocument','Bearer\x20','make-tone-formal','data','append','MAKE_LONGER','make-shorter','parse','77620sJqlom','file','ai-request-failed','config','make-tone-casual','body','reset','isPremiumPlugin','MAKE_SHORTER','/reviews/custom/calls'];_0x46dd=function(){return _0x1dfd7f;};return _0x46dd();}!function(_0x264bbd){const _0x20e62d=_0x1d06;_0x264bbd[_0x20e62d(0xad)]=_0x20e62d(0x12d),_0x264bbd[_0x20e62d(0x10e)]=_0x20e62d(0xd0),_0x264bbd[_0x20e62d(0xc8)]=_0x20e62d(0xf2),_0x264bbd[_0x20e62d(0xdd)]=_0x20e62d(0xaf),_0x264bbd[_0x20e62d(0xe8)]=_0x20e62d(0xde),_0x264bbd[_0x20e62d(0xa3)]=_0x20e62d(0xe4),_0x264bbd[_0x20e62d(0x11b)]=_0x20e62d(0xda),_0x264bbd[_0x20e62d(0xce)]=_0x20e62d(0x11e);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x178cb9{[_0x524bb7(0x109)];[_0x524bb7(0xc4)];[_0x524bb7(0xb5)];static get[_0x524bb7(0xbb)](){const _0x19e40a=_0x524bb7;return[_0x19e40a(0xf7)];}static get[_0x524bb7(0x127)](){const _0x309085=_0x524bb7;return _0x309085(0x9e);}static get[_0x524bb7(0x11c)](){return!0x0;}static get[_0x524bb7(0xe7)](){return!0x0;}constructor(_0x389694){const _0x2c00a7=_0x524bb7;super(_0x389694),this[_0x2c00a7(0xf3)][_0x2c00a7(0xe3)][_0x2c00a7(0xfc)](_0x2c00a7(0x104),_0x2c00a7(0x106)),this[_0x2c00a7(0x109)]=this[_0x2c00a7(0xf3)][_0x2c00a7(0xe3)][_0x2c00a7(0x115)](_0x2c00a7(0x104)),this[_0x2c00a7(0xc4)]=null,this[_0x2c00a7(0xb5)]=new TextDecoder();}[_0x524bb7(0xea)](){const _0x2656d9=_0x524bb7,_0x9ad423=this[_0x2656d9(0xf3)][_0x2656d9(0x108)][_0x2656d9(0x115)](_0x2656d9(0xf7));if(!_0x9ad423[_0x2656d9(0x124)])throw new _0x4d61db(_0x2656d9(0xd3),this);this[_0x2656d9(0xc4)]=_0x9ad423[_0x2656d9(0x124)];}[_0x524bb7(0xc1)](_0x28e0f5,_0x148bd7){const _0x10f95=_0x524bb7,_0x2258b7=this[_0x10f95(0x126)](_0x10f95(0xed),_0x10f95(0xfd),{'id':_0x28e0f5,'group':_0x148bd7});return{'getConversation':async()=>(await _0x2258b7[_0x10f95(0xfa)])[_0x10f95(0xb0)](),'abortController':_0x2258b7[_0x10f95(0xeb)]};}[_0x524bb7(0xef)]({message:_0x125e0f,conversationId:_0xc331e6,parts:_0x512979,capabilities:_0x56a63f,model:_0x29bcb2,attributes:_0x241960}){const _0x205345=_0x524bb7,_0x390eab={'prompt':_0x125e0f,'content':_0x512979,'model':_0x29bcb2,..._0x56a63f&&{'capabilities':_0x56a63f},..._0x241960&&{'attributes':_0x241960}},_0x5eba6e=this[_0x205345(0x126)](_0x205345(0xf5)+_0xc331e6+_0x205345(0x122),_0x205345(0xfd),_0x390eab);return{'getStream':async()=>{const _0x5db2f5=_0x205345,_0x11c501=(await _0x5eba6e[_0x5db2f5(0xfa)])[_0x5db2f5(0xe5)];return this[_0x5db2f5(0xd4)](_0x11c501);},'abortController':_0x5eba6e[_0x205345(0xeb)]};}[_0x524bb7(0xf1)]({content:_0x2e8f91,message:_0x463296,model:_0x2faabc,outputFormat:_0x582055}){const _0x1f8259=_0x524bb7,_0x9f7d29={'content':[{'type':_0x1f8259(0xa5),'content':_0x2e8f91}],'prompt':_0x463296,'model':_0x2faabc,'outputFormat':_0x582055},_0x469f48=this[_0x1f8259(0x126)](_0x1f8259(0xa0),_0x1f8259(0xfd),_0x9f7d29);return{'getStream':async()=>{const _0x3385ee=_0x1f8259,_0x2b6c2a=(await _0x469f48[_0x3385ee(0xfa)])[_0x3385ee(0xe5)];return this[_0x3385ee(0xd4)](_0x2b6c2a);},'abortController':_0x469f48[_0x1f8259(0xeb)]};}[_0x524bb7(0xa8)]({actionName:_0x43fa3b,content:_0x544307,args:_0x43f422}){const _0x22fcda=_0x524bb7,_0x814373={'content':[{'type':_0x22fcda(0xa5),'content':_0x544307}],'args':_0x43f422},_0x222caf=this[_0x22fcda(0x126)](_0x22fcda(0xb8)+_0x43fa3b+_0x22fcda(0x119),_0x22fcda(0xfd),_0x814373);return{'getStream':async()=>{const _0x5aa3c3=_0x22fcda,_0x3719c6=(await _0x222caf[_0x5aa3c3(0xfa)])[_0x5aa3c3(0xe5)];return this[_0x5aa3c3(0xd4)](_0x3719c6);},'abortController':_0x222caf[_0x22fcda(0xeb)]};}[_0x524bb7(0xac)](_0x5af6d3,_0x10a393,_0x41ac46){const _0x2f55fa=_0x524bb7,_0x390cf3=new FormData();_0x390cf3[_0x2f55fa(0xdc)](_0x2f55fa(0xe1),_0x10a393,_0x10a393[_0x2f55fa(0xa2)]),_0x41ac46&&_0x390cf3[_0x2f55fa(0xdc)](_0x2f55fa(0xfe),JSON[_0x2f55fa(0xba)](_0x41ac46));const _0x3520c4=this[_0x2f55fa(0x126)](_0x2f55fa(0xf5)+_0x5af6d3+_0x2f55fa(0x11d),_0x2f55fa(0xfd),_0x390cf3);return{'getId':async()=>(await _0x3520c4[_0x2f55fa(0xfa)])[_0x2f55fa(0xb0)](),'abortController':_0x3520c4[_0x2f55fa(0xeb)]};}[_0x524bb7(0x10f)](_0x5ca7f6,_0x316837){const _0x20d546=_0x524bb7,_0x417e85=this[_0x20d546(0x126)](_0x20d546(0xf5)+_0x5ca7f6+_0x20d546(0x116)+_0x316837,_0x20d546(0xf0));return{'getDocument':async()=>(await _0x417e85[_0x20d546(0xfa)])[_0x20d546(0xb0)](),'abortController':_0x417e85[_0x20d546(0xeb)]};}[_0x524bb7(0x125)](_0x459886,_0x43c56a,_0xca341d){const _0x35088e=_0x524bb7,_0x31a1eb={'content':_0x43c56a};_0xca341d&&(_0x31a1eb[_0x35088e(0xfe)]=_0xca341d);const _0x15c1c4=this[_0x35088e(0x126)](_0x35088e(0xf5)+_0x459886+_0x35088e(0xcb),_0x35088e(0xfd),_0x31a1eb);return{'getId':async()=>(await _0x15c1c4[_0x35088e(0xfa)])[_0x35088e(0xb0)](),'abortController':_0x15c1c4[_0x35088e(0xeb)]};}[_0x524bb7(0xf8)](_0x56dd1f,_0xb0ada9={}){const _0x55f706=_0x524bb7,_0x4ae46f=new URLSearchParams();_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0x113),_0x56dd1f),_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0x131),!0x1!==_0xb0ada9[_0x55f706(0x131)]?_0x55f706(0x100):_0x55f706(0xa7)),_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0x123),_0xb0ada9[_0x55f706(0x123)]?_0xb0ada9[_0x55f706(0x123)][_0x55f706(0xa6)]():_0x55f706(0xcd)),_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0x9d),_0xb0ada9[_0x55f706(0x9d)]?_0xb0ada9[_0x55f706(0x9d)]:_0x55f706(0xd6)),_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0xae),_0xb0ada9[_0x55f706(0xae)]?_0xb0ada9[_0x55f706(0xae)]:_0x55f706(0x110));const _0x13f730=this[_0x55f706(0x126)](_0x55f706(0xc7)+_0x4ae46f[_0x55f706(0xa6)](),_0x55f706(0xf0));return{'getConversations':async()=>{const _0x1a89cb=_0x55f706,_0x113def=await _0x13f730[_0x1a89cb(0xfa)];return(await _0x113def[_0x1a89cb(0xb0)]())[_0x1a89cb(0xb9)];},'abortController':_0x13f730[_0x55f706(0xeb)]};}[_0x524bb7(0xcc)](_0x5b5b16){const _0x55e4ed=_0x524bb7,_0x57a7a3=this[_0x55e4ed(0x126)](_0x55e4ed(0xf5)+_0x5b5b16,_0x55e4ed(0xbe));return{'execute':async()=>{const _0x5d9930=_0x55e4ed;await _0x57a7a3[_0x5d9930(0xfa)];},'abortController':_0x57a7a3[_0x55e4ed(0xeb)]};}[_0x524bb7(0xb4)](_0x2dddc9,_0x4ceb1a){const _0x2efd98=_0x524bb7,_0x33eb9e=this[_0x2efd98(0x126)](_0x2efd98(0xf5)+_0x2dddc9,_0x2efd98(0x111),_0x4ceb1a);return{'getResult':async()=>(await _0x33eb9e[_0x2efd98(0xfa)],_0x4ceb1a),'abortController':_0x33eb9e[_0x2efd98(0xeb)]};}[_0x524bb7(0x11a)](_0xf4dc10){const _0x2aa76d=_0x524bb7,_0x46e027=this[_0x2aa76d(0x126)](_0x2aa76d(0xf5)+_0xf4dc10,_0x2aa76d(0xf0));return{'getConversation':async()=>(await _0x46e027[_0x2aa76d(0xfa)])[_0x2aa76d(0xb0)](),'abortController':_0x46e027[_0x2aa76d(0xeb)]};}[_0x524bb7(0x10b)](_0xec569c){const _0x2307de=_0x524bb7,_0x592028=this[_0x2307de(0x126)](_0x2307de(0xf5)+_0xec569c+_0x2307de(0x122),_0x2307de(0xf0));return{'getMessages':async()=>{const _0x3fad54=_0x2307de,_0x4f0260=await _0x592028[_0x3fad54(0xfa)];return(await _0x4f0260[_0x3fad54(0xb0)]())[_0x3fad54(0xb9)];},'abortController':_0x592028[_0x2307de(0xeb)]};}[_0x524bb7(0x10a)](_0x4723ba,_0x458026,_0x3a5645){const _0x56b2f4=_0x524bb7,_0x16da18=this[_0x56b2f4(0x126)](_0x56b2f4(0xf5)+_0x4723ba+_0x56b2f4(0xaa),_0x56b2f4(0xfd),{'url':_0x458026,'attributes':_0x3a5645});return{'getId':async()=>(await _0x16da18[_0x56b2f4(0xfa)])[_0x56b2f4(0xb0)](),'abortController':_0x16da18[_0x56b2f4(0xeb)]};}[_0x524bb7(0xc5)](_0x1f023f='en'){const _0x1e99d2=_0x524bb7,_0x5d7d31=new URLSearchParams();_0x5d7d31[_0x1e99d2(0xdc)](_0x1e99d2(0xf9),_0x1f023f);const _0x378037=_0x1e99d2(0x10d)+_0x5d7d31[_0x1e99d2(0xa6)](),_0x236dad=this[_0x1e99d2(0x126)](_0x378037,_0x1e99d2(0xf0));return{'list':async()=>await(await _0x236dad[_0x1e99d2(0xfa)])[_0x1e99d2(0xb0)](),'abortController':_0x236dad[_0x1e99d2(0xeb)]};}[_0x524bb7(0xf4)](_0x52fbc9,_0x3fa419){const _0x12f75a=_0x524bb7,_0x227a25=this[_0x12f75a(0x126)](_0x12f75a(0xf5)+_0x52fbc9+_0x12f75a(0xc6)+_0x3fa419,_0x12f75a(0xbe));return{'execute':async()=>{const _0x1edfec=_0x12f75a;await _0x227a25[_0x1edfec(0xfa)];},'abortController':_0x227a25[_0x12f75a(0xeb)]};}[_0x524bb7(0xd8)](_0x4f71f6,_0x29d043){const _0x128624=_0x524bb7,_0x252398=this[_0x128624(0x126)](_0x128624(0xf5)+_0x4f71f6+_0x128624(0x116)+_0x29d043,_0x128624(0xbe));return{'execute':async()=>{const _0x3eaac1=_0x128624;await _0x252398[_0x3eaac1(0xfa)];},'abortController':_0x252398[_0x128624(0xeb)]};}[_0x524bb7(0xab)](_0x24f903,_0x1c9e4e){const _0xedda0e=_0x524bb7,_0x241c6b=this[_0xedda0e(0x126)](_0xedda0e(0xf5)+_0x24f903+_0xedda0e(0xf6)+_0x1c9e4e,_0xedda0e(0xbe));return{'execute':async()=>{const _0xca4ee1=_0xedda0e;await _0x241c6b[_0xca4ee1(0xfa)];},'abortController':_0x241c6b[_0xedda0e(0xeb)]};}[_0x524bb7(0x102)]({reviewName:_0x25be81,content:_0xd11ec1,args:_0x31163d}){const _0x112265=_0x524bb7,_0xa2b61d=this[_0x112265(0x126)](_0x112265(0xb1)+_0x25be81+_0x112265(0x119),_0x112265(0xfd),{'content':[{'type':_0x112265(0xa5),'content':_0xd11ec1}],'args':_0x31163d});return{'getStream':async()=>{const _0x3058fa=_0x112265,_0x25ab4f=(await _0xa2b61d[_0x3058fa(0xfa)])[_0x3058fa(0xe5)];return this[_0x3058fa(0xd4)](_0x25ab4f);},'abortController':_0xa2b61d[_0x112265(0xeb)]};}[_0x524bb7(0xc9)]({content:_0xd9d4c6,prompt:_0x5f0d7b,model:_0x2182db}){const _0x44b3a7=_0x524bb7,_0x4fa05d=this[_0x44b3a7(0x126)](_0x44b3a7(0xe9),_0x44b3a7(0xfd),{'content':[{'type':_0x44b3a7(0xa5),'content':_0xd9d4c6}],'prompt':_0x5f0d7b,'model':_0x2182db});return{'getStream':async()=>{const _0x498d4f=_0x44b3a7,_0xe09b9b=(await _0x4fa05d[_0x498d4f(0xfa)])[_0x498d4f(0xe5)];return this[_0x498d4f(0xd4)](_0xe09b9b);},'abortController':_0x4fa05d[_0x44b3a7(0xeb)]};}[_0x524bb7(0xec)](_0x8fc410,_0x352839,_0x1cad08){const _0x15995f=_0x524bb7,_0x5650ec=this[_0x15995f(0x126)](_0x15995f(0xf5)+_0x8fc410+_0x15995f(0x105)+_0x352839+_0x15995f(0xca),_0x15995f(0x12b),{'positiveCount':_0x1cad08[_0x15995f(0x12e)],'totalCount':_0x1cad08[_0x15995f(0x12f)],'modificationId':_0x1cad08[_0x15995f(0xd5)]});return{'execute':async()=>{const _0x34c1b5=_0x15995f;await _0x5650ec[_0x34c1b5(0xfa)];},'abortController':_0x5650ec[_0x15995f(0xeb)]};}[_0x524bb7(0xc3)](_0x2ef57f,_0x215f18,_0x4b9c0a){const _0x44b9af=_0x524bb7,_0x5ce89a=this[_0x44b9af(0x126)](_0x44b9af(0xb8)+_0x2ef57f+_0x44b9af(0xc2)+_0x215f18+_0x44b9af(0xca),_0x44b9af(0x12b),{'positiveCount':_0x4b9c0a[_0x44b9af(0x12e)],'totalCount':_0x4b9c0a[_0x44b9af(0x12f)]});return{'execute':async()=>{const _0x38db0c=_0x44b9af;await _0x5ce89a[_0x38db0c(0xfa)];},'abortController':_0x5ce89a[_0x44b9af(0xeb)]};}[_0x524bb7(0xbd)](_0x50a39b,_0x197f4b){const _0x58e427=_0x524bb7,_0x934185=this[_0x58e427(0x126)](_0x58e427(0xb7)+_0x50a39b+_0x58e427(0xca),_0x58e427(0x12b),{'positiveCount':_0x197f4b[_0x58e427(0x12e)],'totalCount':_0x197f4b[_0x58e427(0x12f)]});return{'execute':async()=>{const _0xb58783=_0x58e427;await _0x934185[_0xb58783(0xfa)];},'abortController':_0x934185[_0x58e427(0xeb)]};}[_0x524bb7(0x9f)](_0x365899,_0xfae3b2,_0xe8baff,_0x29a4a3){const _0x2eab12=_0x524bb7,_0x43705b=this[_0x2eab12(0x126)](_0x2eab12(0xb1)+_0x365899+_0x2eab12(0xc2)+_0xfae3b2+_0x2eab12(0xca),_0x2eab12(0x12b),{'positiveCount':_0xe8baff[_0x2eab12(0x12e)],'totalCount':_0xe8baff[_0x2eab12(0x12f)],'dataId':_0x29a4a3});return{'execute':async()=>{const _0x164101=_0x2eab12;await _0x43705b[_0x164101(0xfa)];},'abortController':_0x43705b[_0x2eab12(0xeb)]};}[_0x524bb7(0x129)](_0x69dcd6,_0x501b2f,_0x20d04e){const _0x1499db=_0x524bb7,_0x1190b8=this[_0x1499db(0x126)](_0x1499db(0xbf)+_0x69dcd6+_0x1499db(0xca),_0x1499db(0x12b),{'positiveCount':_0x501b2f[_0x1499db(0x12e)],'totalCount':_0x501b2f[_0x1499db(0x12f)],'dataId':_0x20d04e});return{'execute':async()=>{const _0x11a2e2=_0x1499db;await _0x1190b8[_0x11a2e2(0xfa)];},'abortController':_0x1190b8[_0x1499db(0xeb)]};}[_0x524bb7(0x126)](_0x2b82a4,_0x419b45,_0x3f4626){const _0x4dc6e2=_0x524bb7,_0x4f48b3=new AbortController(),_0x472402=_0x3f4626 instanceof FormData,_0x5b0b11={'Authorization':_0x4dc6e2(0xd9)+this[_0x4dc6e2(0xc4)]?.[_0x4dc6e2(0x117)]};_0x3f4626&&!_0x472402&&(_0x5b0b11[_0x4dc6e2(0x114)]=_0x4dc6e2(0xcf));const _0x1e812d={'method':_0x419b45,'headers':_0x5b0b11,'signal':_0x4f48b3[_0x4dc6e2(0xa9)]};return _0x3f4626&&(_0x1e812d[_0x4dc6e2(0xe5)]=_0x472402?_0x3f4626:JSON[_0x4dc6e2(0xba)](_0x3f4626)),{'request':fetch(''+this[_0x4dc6e2(0x109)]+_0x2b82a4,_0x1e812d)[_0x4dc6e2(0xb2)](_0x3d2c2d=>{const _0x38a42b=_0x4dc6e2;this[_0x38a42b(0x112)](_0x3d2c2d);})[_0x4dc6e2(0x101)](_0x5887e6=>_0x5887e6['ok']?_0x5887e6:_0x5887e6[_0x4dc6e2(0xb0)]()[_0x4dc6e2(0x101)](_0x246fca=>{const _0x441836=_0x4dc6e2;throw{'url':this[_0x441836(0x109)],'path':_0x2b82a4,'method':_0x419b45,'body':_0x3f4626,'status':(_0x5887e6||{})[_0x441836(0x11f)],'statusText':(_0x5887e6||{})[_0x441836(0xa1)],'code':_0x246fca[_0x441836(0xbc)],'message':_0x246fca[_0x441836(0x12c)],'traceId':_0x246fca[_0x441836(0xd2)]};})),'abortController':_0x4f48b3};}async*[_0x524bb7(0xd4)](_0x2fc6e7){const _0x18592d=_0x524bb7,_0x2ba2e3=[],_0x42dcdf=_0x2fc6e7[_0x18592d(0xff)](),_0x119dfb=_0x8a3a82({'onError':_0xd7ed2d=>{const _0x3b0f6a=_0x18592d;this[_0x3b0f6a(0x112)](_0xd7ed2d);},'onEvent':_0x5968bc=>{const _0x1a059a=_0x18592d;_0x5968bc[_0x1a059a(0xdb)]=JSON[_0x1a059a(0xdf)](_0x5968bc[_0x1a059a(0xdb)]),_0x2ba2e3[_0x1a059a(0x10c)](_0x5968bc);}});try{let _0x217283=!0x1;for(;!_0x217283;){const {done:_0x221211,value:_0x7810e8}=await _0x42dcdf[_0x18592d(0x120)]();_0x221211&&(_0x217283=!0x0),_0x119dfb[_0x18592d(0x121)](this[_0x18592d(0xb5)][_0x18592d(0xa4)](_0x7810e8,{'stream':!0x0})),yield*_0x2ba2e3,_0x2ba2e3[_0x18592d(0xd1)]=0x0;}}catch(_0x3f593e){this[_0x18592d(0x112)](_0x3f593e);}finally{_0x42dcdf[_0x18592d(0xb3)](),_0x119dfb[_0x18592d(0xe6)]();}}[_0x524bb7(0x112)](_0x3744ea){const _0x10fb0c=_0x524bb7;if(_0x3744ea instanceof _0x4d61db)throw _0x3744ea;if(_0x3744ea instanceof Error&&_0x10fb0c(0x103)===_0x3744ea[_0x10fb0c(0xa2)])throw new _0x4d61db(_0x10fb0c(0x130),this,{'originalError':_0x3744ea});throw new _0x4d61db(_0x10fb0c(0xe2),this,{'originalError':_0x3744ea});}}
|
|
23
|
+
const _0x5ba1fc=_0x3f77;function _0x1c75(){const _0x31c798=['29940osYPXV','decode','278180fZgIQJ','make-longer','_handleError','application/json','ai.serviceUrl','_token','https://ai.cke-cs.com/v1','MAKE_SHORTER','/ratings','get','then','plugins','make-tone-casual','pluginName','sortBy','/documents/','isPremiumPlugin','MAKE_TONE_CASUAL','/conversations','language','9HCQbBZ','/reviews/custom/calls/','GET','/calls','MAKE_LONGER','_getStreamReader','isOfficialPlugin','deleteConversation','attributes','ai-request-failed','requires','31350VBemRZ','limit','totalCount','fetchConversationMessages','PATCH','8gpAeOV','startConversation','false','code','upsertCustomAIReviewRating','1232916hCOhJx','getModels','init','feed','/calls/','fetchDocument','callCustomReview','fetchConversation','items','status','173684dinyHO','upsertCustomAIActionRating','text','reset','/conversations/','make-tone-formal','request','length','value','/conversations?','22ogkzpl','/models/1?','PUT','/web-resources/','order','statusText','catch','desc','translate','executeCustomAction','traceId','signal','push','name','deleteDocument','improve-writing','CONTINUE','abortController','/messages/','100','group','TRANSLATE','Bearer\x20','/files','file','modificationId','45qjNenu','_decoder','releaseLock','append','toString','MAKE_TONE_FORMAL','_apiUrl','true','createdAt','/actions/system/','upsertAIChatRating','ai-request-aborted','parse','/reviews/system/','data','/documents','9cuDKJq','CloudServices','IMPROVE_WRITING','define','/web-resources','uploadUrl','queryAssistant','message','_sendApiRequest','make-shorter','/files/','token','FIX_GRAMMAR','context','225589KeaKBc','fix-grammar','/messages','upsertAIActionRating','AbortError','/actions/custom/calls','getReader','body','fetchConversations','Content-Type','DELETE','json','read','upsertAIReviewRating','uploadDocument','callSystemReview','deleteWebResource','updateConversation','deleteFile','config','/actions/custom/calls/','continue','/reviews/custom/calls','AIConnector','ai-missing-token','941550gawMVm','excludeEmpty','POST','positiveCount','uploadFile','stringify','executeAction'];_0x1c75=function(){return _0x31c798;};return _0x1c75();}(function(_0x446acf,_0x307f75){const _0xf8718d=_0x3f77,_0x6181ef=_0x446acf();while(!![]){try{const _0x47c632=-parseInt(_0xf8718d(0x1a8))/0x1+parseInt(_0xf8718d(0x22b))/0x2*(-parseInt(_0xf8718d(0x1dc))/0x3)+parseInt(_0xf8718d(0x20a))/0x4*(-parseInt(_0xf8718d(0x1cc))/0x5)+parseInt(_0xf8718d(0x203))/0x6+parseInt(_0xf8718d(0x1ea))/0x7*(parseInt(_0xf8718d(0x230))/0x8)+-parseInt(_0xf8718d(0x220))/0x9*(-parseInt(_0xf8718d(0x20c))/0xa)+-parseInt(_0xf8718d(0x1b2))/0xb*(-parseInt(_0xf8718d(0x19e))/0xc);if(_0x47c632===_0x307f75)break;else _0x6181ef['push'](_0x6181ef['shift']());}catch(_0x20022c){_0x6181ef['push'](_0x6181ef['shift']());}}}(_0x1c75,0x20cee));import{createParser as _0x73a7d7}from'eventsource-parser';function _0x3f77(_0x5cc38a,_0x5de1f5){const _0x1c755c=_0x1c75();return _0x3f77=function(_0x3f7789,_0x20a1e9){_0x3f7789=_0x3f7789-0x19b;let _0x2ef3ca=_0x1c755c[_0x3f7789];return _0x2ef3ca;},_0x3f77(_0x5cc38a,_0x5de1f5);}import{ContextPlugin as _0x3867b3}from'ckeditor5/src/core.js';import{CKEditorError as _0x44d265}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x43944b){const _0x69696=_0x3f77;_0x43944b[_0x69696(0x1c2)]=_0x69696(0x1ff),_0x43944b[_0x69696(0x1e8)]=_0x69696(0x1eb),_0x43944b[_0x69696(0x1de)]=_0x69696(0x1c1),_0x43944b[_0x69696(0x224)]=_0x69696(0x20d),_0x43944b[_0x69696(0x213)]=_0x69696(0x1e5),_0x43944b[_0x69696(0x21d)]=_0x69696(0x218),_0x43944b[_0x69696(0x1d1)]=_0x69696(0x1ad),_0x43944b[_0x69696(0x1c7)]=_0x69696(0x1ba);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x3867b3{[_0x5ba1fc(0x1d2)];[_0x5ba1fc(0x211)];[_0x5ba1fc(0x1cd)];static get[_0x5ba1fc(0x22a)](){const _0x54f7fa=_0x5ba1fc;return[_0x54f7fa(0x1dd)];}static get[_0x5ba1fc(0x219)](){const _0x504ce9=_0x5ba1fc;return _0x504ce9(0x201);}static get[_0x5ba1fc(0x226)](){return!0x0;}static get[_0x5ba1fc(0x21c)](){return!0x0;}constructor(_0x50915f){const _0x42a1d4=_0x5ba1fc;super(_0x50915f),this[_0x42a1d4(0x1e9)][_0x42a1d4(0x1fd)][_0x42a1d4(0x1df)](_0x42a1d4(0x210),_0x42a1d4(0x212)),this[_0x42a1d4(0x1d2)]=this[_0x42a1d4(0x1e9)][_0x42a1d4(0x1fd)][_0x42a1d4(0x215)](_0x42a1d4(0x210)),this[_0x42a1d4(0x211)]=null,this[_0x42a1d4(0x1cd)]=new TextDecoder();}[_0x5ba1fc(0x1a0)](){const _0x165e48=_0x5ba1fc,_0xb1f018=this[_0x165e48(0x1e9)][_0x165e48(0x217)][_0x165e48(0x215)](_0x165e48(0x1dd));if(!_0xb1f018[_0x165e48(0x1e7)])throw new _0x44d265(_0x165e48(0x202),this);this[_0x165e48(0x211)]=_0xb1f018[_0x165e48(0x1e7)];}[_0x5ba1fc(0x231)](_0x3cc8cf,_0x3287ed){const _0xb96c3a=_0x5ba1fc,_0x4d9e4e=this[_0xb96c3a(0x1e4)](_0xb96c3a(0x21e),_0xb96c3a(0x205),{'id':_0x3cc8cf,'group':_0x3287ed});return{'getConversation':async()=>(await _0x4d9e4e[_0xb96c3a(0x1ae)])[_0xb96c3a(0x1f5)](),'abortController':_0x4d9e4e[_0xb96c3a(0x1c3)]};}[_0x5ba1fc(0x1e2)]({message:_0x53fe9f,conversationId:_0x320499,parts:_0x32d965,capabilities:_0x518b7d,model:_0x1e112e,attributes:_0x5523b3}){const _0x21ad81=_0x5ba1fc,_0x49f72a={'prompt':_0x53fe9f,'content':_0x32d965,'model':_0x1e112e,..._0x518b7d&&{'capabilities':_0x518b7d},..._0x5523b3&&{'attributes':_0x5523b3}},_0x293f62=this[_0x21ad81(0x1e4)](_0x21ad81(0x1ac)+_0x320499+_0x21ad81(0x1ec),_0x21ad81(0x205),_0x49f72a);return{'getStream':async()=>{const _0x73b67c=_0x21ad81,_0x5e97f8=(await _0x293f62[_0x73b67c(0x1ae)])[_0x73b67c(0x1f1)];return this[_0x73b67c(0x225)](_0x5e97f8);},'abortController':_0x293f62[_0x21ad81(0x1c3)]};}[_0x5ba1fc(0x1bb)]({content:_0x50cbf3,message:_0x54b5ac,model:_0xe949c5,outputFormat:_0x13037c}){const _0x2943c9=_0x5ba1fc,_0x1279b7={'content':[{'type':_0x2943c9(0x1aa),'content':_0x50cbf3}],'prompt':_0x54b5ac,'model':_0xe949c5,'outputFormat':_0x13037c},_0x194d8f=this[_0x2943c9(0x1e4)](_0x2943c9(0x1ef),_0x2943c9(0x205),_0x1279b7);return{'getStream':async()=>{const _0xace953=_0x2943c9,_0x4bd27a=(await _0x194d8f[_0xace953(0x1ae)])[_0xace953(0x1f1)];return this[_0xace953(0x225)](_0x4bd27a);},'abortController':_0x194d8f[_0x2943c9(0x1c3)]};}[_0x5ba1fc(0x209)]({actionName:_0x4e6211,content:_0x15724a,args:_0x3ee0b1}){const _0x3e3aa4=_0x5ba1fc,_0x457199={'content':[{'type':_0x3e3aa4(0x1aa),'content':_0x15724a}],'args':_0x3ee0b1},_0xb38a36=this[_0x3e3aa4(0x1e4)](_0x3e3aa4(0x1d5)+_0x4e6211+_0x3e3aa4(0x223),_0x3e3aa4(0x205),_0x457199);return{'getStream':async()=>{const _0x43c15b=_0x3e3aa4,_0x505424=(await _0xb38a36[_0x43c15b(0x1ae)])[_0x43c15b(0x1f1)];return this[_0x43c15b(0x225)](_0x505424);},'abortController':_0xb38a36[_0x3e3aa4(0x1c3)]};}[_0x5ba1fc(0x207)](_0x41a88d,_0x2bb69a,_0x2f4862){const _0x548168=_0x5ba1fc,_0x29da9a=new FormData();_0x29da9a[_0x548168(0x1cf)](_0x548168(0x1ca),_0x2bb69a,_0x2bb69a[_0x548168(0x1bf)]),_0x2f4862&&_0x29da9a[_0x548168(0x1cf)](_0x548168(0x228),JSON[_0x548168(0x208)](_0x2f4862));const _0x21896e=this[_0x548168(0x1e4)](_0x548168(0x1ac)+_0x41a88d+_0x548168(0x1c9),_0x548168(0x205),_0x29da9a);return{'getId':async()=>(await _0x21896e[_0x548168(0x1ae)])[_0x548168(0x1f5)](),'abortController':_0x21896e[_0x548168(0x1c3)]};}[_0x5ba1fc(0x1a3)](_0x23e921,_0x3b15ee){const _0x539a1e=_0x5ba1fc,_0x4afaf6=this[_0x539a1e(0x1e4)](_0x539a1e(0x1ac)+_0x23e921+_0x539a1e(0x21b)+_0x3b15ee,_0x539a1e(0x222));return{'getDocument':async()=>(await _0x4afaf6[_0x539a1e(0x1ae)])[_0x539a1e(0x1f5)](),'abortController':_0x4afaf6[_0x539a1e(0x1c3)]};}[_0x5ba1fc(0x1f8)](_0x1286a4,_0x99a1fe,_0x9ec163){const _0x3b1159=_0x5ba1fc,_0xd31fbd={'content':_0x99a1fe};_0x9ec163&&(_0xd31fbd[_0x3b1159(0x228)]=_0x9ec163);const _0x58829e=this[_0x3b1159(0x1e4)](_0x3b1159(0x1ac)+_0x1286a4+_0x3b1159(0x1db),_0x3b1159(0x205),_0xd31fbd);return{'getId':async()=>(await _0x58829e[_0x3b1159(0x1ae)])[_0x3b1159(0x1f5)](),'abortController':_0x58829e[_0x3b1159(0x1c3)]};}[_0x5ba1fc(0x1f2)](_0x4a52f1,_0x5dce26={}){const _0x2af8ab=_0x5ba1fc,_0x1d2675=new URLSearchParams();_0x1d2675[_0x2af8ab(0x1cf)](_0x2af8ab(0x1c6),_0x4a52f1),_0x1d2675[_0x2af8ab(0x1cf)](_0x2af8ab(0x204),!0x1!==_0x5dce26[_0x2af8ab(0x204)]?_0x2af8ab(0x1d3):_0x2af8ab(0x19b)),_0x1d2675[_0x2af8ab(0x1cf)](_0x2af8ab(0x22c),_0x5dce26[_0x2af8ab(0x22c)]?_0x5dce26[_0x2af8ab(0x22c)][_0x2af8ab(0x1d0)]():_0x2af8ab(0x1c5)),_0x1d2675[_0x2af8ab(0x1cf)](_0x2af8ab(0x21a),_0x5dce26[_0x2af8ab(0x21a)]?_0x5dce26[_0x2af8ab(0x21a)]:_0x2af8ab(0x1d4)),_0x1d2675[_0x2af8ab(0x1cf)](_0x2af8ab(0x1b6),_0x5dce26[_0x2af8ab(0x1b6)]?_0x5dce26[_0x2af8ab(0x1b6)]:_0x2af8ab(0x1b9));const _0x2a9a8d=this[_0x2af8ab(0x1e4)](_0x2af8ab(0x1b1)+_0x1d2675[_0x2af8ab(0x1d0)](),_0x2af8ab(0x222));return{'getConversations':async()=>{const _0xc6668a=_0x2af8ab,_0x483786=await _0x2a9a8d[_0xc6668a(0x1ae)];return(await _0x483786[_0xc6668a(0x1f5)]())[_0xc6668a(0x1a6)];},'abortController':_0x2a9a8d[_0x2af8ab(0x1c3)]};}[_0x5ba1fc(0x227)](_0x328e00){const _0x10b5b3=_0x5ba1fc,_0x9bbad=this[_0x10b5b3(0x1e4)](_0x10b5b3(0x1ac)+_0x328e00,_0x10b5b3(0x1f4));return{'execute':async()=>{const _0x1f1ed9=_0x10b5b3;await _0x9bbad[_0x1f1ed9(0x1ae)];},'abortController':_0x9bbad[_0x10b5b3(0x1c3)]};}[_0x5ba1fc(0x1fb)](_0x279966,_0x32c58c){const _0x54abce=_0x5ba1fc,_0x30a3ee=this[_0x54abce(0x1e4)](_0x54abce(0x1ac)+_0x279966,_0x54abce(0x22f),_0x32c58c);return{'getResult':async()=>(await _0x30a3ee[_0x54abce(0x1ae)],_0x32c58c),'abortController':_0x30a3ee[_0x54abce(0x1c3)]};}[_0x5ba1fc(0x1a5)](_0x5dfec1){const _0x2d4523=_0x5ba1fc,_0x2df13e=this[_0x2d4523(0x1e4)](_0x2d4523(0x1ac)+_0x5dfec1,_0x2d4523(0x222));return{'getConversation':async()=>(await _0x2df13e[_0x2d4523(0x1ae)])[_0x2d4523(0x1f5)](),'abortController':_0x2df13e[_0x2d4523(0x1c3)]};}[_0x5ba1fc(0x22e)](_0x109a24){const _0x501223=_0x5ba1fc,_0x537021=this[_0x501223(0x1e4)](_0x501223(0x1ac)+_0x109a24+_0x501223(0x1ec),_0x501223(0x222));return{'getMessages':async()=>{const _0x345491=_0x501223,_0x5289a3=await _0x537021[_0x345491(0x1ae)];return(await _0x5289a3[_0x345491(0x1f5)]())[_0x345491(0x1a6)];},'abortController':_0x537021[_0x501223(0x1c3)]};}[_0x5ba1fc(0x1e1)](_0x380a50,_0x2c06e8,_0x9ca1a){const _0x4f5309=_0x5ba1fc,_0x5f30fd=this[_0x4f5309(0x1e4)](_0x4f5309(0x1ac)+_0x380a50+_0x4f5309(0x1e0),_0x4f5309(0x205),{'url':_0x2c06e8,'attributes':_0x9ca1a});return{'getId':async()=>(await _0x5f30fd[_0x4f5309(0x1ae)])[_0x4f5309(0x1f5)](),'abortController':_0x5f30fd[_0x4f5309(0x1c3)]};}[_0x5ba1fc(0x19f)](_0x6ed9ab='en'){const _0x1c7db2=_0x5ba1fc,_0x10c5d2=new URLSearchParams();_0x10c5d2[_0x1c7db2(0x1cf)](_0x1c7db2(0x21f),_0x6ed9ab);const _0x10bb55=_0x1c7db2(0x1b3)+_0x10c5d2[_0x1c7db2(0x1d0)](),_0x1458f1=this[_0x1c7db2(0x1e4)](_0x10bb55,_0x1c7db2(0x222));return{'list':async()=>await(await _0x1458f1[_0x1c7db2(0x1ae)])[_0x1c7db2(0x1f5)](),'abortController':_0x1458f1[_0x1c7db2(0x1c3)]};}[_0x5ba1fc(0x1fc)](_0x228d3d,_0x23d392){const _0x710276=_0x5ba1fc,_0x236315=this[_0x710276(0x1e4)](_0x710276(0x1ac)+_0x228d3d+_0x710276(0x1e6)+_0x23d392,_0x710276(0x1f4));return{'execute':async()=>{const _0x39133d=_0x710276;await _0x236315[_0x39133d(0x1ae)];},'abortController':_0x236315[_0x710276(0x1c3)]};}[_0x5ba1fc(0x1c0)](_0x3e32f3,_0x2a26dd){const _0x3930bc=_0x5ba1fc,_0x533f04=this[_0x3930bc(0x1e4)](_0x3930bc(0x1ac)+_0x3e32f3+_0x3930bc(0x21b)+_0x2a26dd,_0x3930bc(0x1f4));return{'execute':async()=>{const _0x59ac2e=_0x3930bc;await _0x533f04[_0x59ac2e(0x1ae)];},'abortController':_0x533f04[_0x3930bc(0x1c3)]};}[_0x5ba1fc(0x1fa)](_0x47e6b7,_0x1ac119){const _0x5692da=_0x5ba1fc,_0x576efd=this[_0x5692da(0x1e4)](_0x5692da(0x1ac)+_0x47e6b7+_0x5692da(0x1b5)+_0x1ac119,_0x5692da(0x1f4));return{'execute':async()=>{const _0x42af72=_0x5692da;await _0x576efd[_0x42af72(0x1ae)];},'abortController':_0x576efd[_0x5692da(0x1c3)]};}[_0x5ba1fc(0x1f9)]({reviewName:_0x58ba79,content:_0x593434,args:_0x16cc20}){const _0x52da1a=_0x5ba1fc,_0xc6ffd0=this[_0x52da1a(0x1e4)](_0x52da1a(0x1d9)+_0x58ba79+_0x52da1a(0x223),_0x52da1a(0x205),{'content':[{'type':_0x52da1a(0x1aa),'content':_0x593434}],'args':_0x16cc20});return{'getStream':async()=>{const _0x2ef094=_0x52da1a,_0x3200cd=(await _0xc6ffd0[_0x2ef094(0x1ae)])[_0x2ef094(0x1f1)];return this[_0x2ef094(0x225)](_0x3200cd);},'abortController':_0xc6ffd0[_0x52da1a(0x1c3)]};}[_0x5ba1fc(0x1a4)]({content:_0xa03872,prompt:_0x410f68,model:_0xe93360}){const _0x27487d=_0x5ba1fc,_0x1a2435=this[_0x27487d(0x1e4)](_0x27487d(0x200),_0x27487d(0x205),{'content':[{'type':_0x27487d(0x1aa),'content':_0xa03872}],'prompt':_0x410f68,'model':_0xe93360});return{'getStream':async()=>{const _0x855147=_0x27487d,_0x4cbe46=(await _0x1a2435[_0x855147(0x1ae)])[_0x855147(0x1f1)];return this[_0x855147(0x225)](_0x4cbe46);},'abortController':_0x1a2435[_0x27487d(0x1c3)]};}[_0x5ba1fc(0x1d6)](_0x1a6d8d,_0x5998d8,_0x490676){const _0x58e7f8=_0x5ba1fc,_0x177427=this[_0x58e7f8(0x1e4)](_0x58e7f8(0x1ac)+_0x1a6d8d+_0x58e7f8(0x1c4)+_0x5998d8+_0x58e7f8(0x214),_0x58e7f8(0x1b4),{'positiveCount':_0x490676[_0x58e7f8(0x206)],'totalCount':_0x490676[_0x58e7f8(0x22d)],'modificationId':_0x490676[_0x58e7f8(0x1cb)]});return{'execute':async()=>{const _0x292a4c=_0x58e7f8;await _0x177427[_0x292a4c(0x1ae)];},'abortController':_0x177427[_0x58e7f8(0x1c3)]};}[_0x5ba1fc(0x1ed)](_0x56dd56,_0x11cbdf,_0x4d530f){const _0x52fc00=_0x5ba1fc,_0x2a1b58=this[_0x52fc00(0x1e4)](_0x52fc00(0x1d5)+_0x56dd56+_0x52fc00(0x1a2)+_0x11cbdf+_0x52fc00(0x214),_0x52fc00(0x1b4),{'positiveCount':_0x4d530f[_0x52fc00(0x206)],'totalCount':_0x4d530f[_0x52fc00(0x22d)]});return{'execute':async()=>{const _0x50f617=_0x52fc00;await _0x2a1b58[_0x50f617(0x1ae)];},'abortController':_0x2a1b58[_0x52fc00(0x1c3)]};}[_0x5ba1fc(0x1a9)](_0x8f3dab,_0x36e7d3){const _0x5373f7=_0x5ba1fc,_0x22e348=this[_0x5373f7(0x1e4)](_0x5373f7(0x1fe)+_0x8f3dab+_0x5373f7(0x214),_0x5373f7(0x1b4),{'positiveCount':_0x36e7d3[_0x5373f7(0x206)],'totalCount':_0x36e7d3[_0x5373f7(0x22d)]});return{'execute':async()=>{const _0x1dd1ab=_0x5373f7;await _0x22e348[_0x1dd1ab(0x1ae)];},'abortController':_0x22e348[_0x5373f7(0x1c3)]};}[_0x5ba1fc(0x1f7)](_0x497599,_0x2aaacb,_0x361648,_0x376da4){const _0x2f9e37=_0x5ba1fc,_0x596c02=this[_0x2f9e37(0x1e4)](_0x2f9e37(0x1d9)+_0x497599+_0x2f9e37(0x1a2)+_0x2aaacb+_0x2f9e37(0x214),_0x2f9e37(0x1b4),{'positiveCount':_0x361648[_0x2f9e37(0x206)],'totalCount':_0x361648[_0x2f9e37(0x22d)],'dataId':_0x376da4});return{'execute':async()=>{const _0x1164e3=_0x2f9e37;await _0x596c02[_0x1164e3(0x1ae)];},'abortController':_0x596c02[_0x2f9e37(0x1c3)]};}[_0x5ba1fc(0x19d)](_0x326eff,_0x23f64e,_0x3b314b){const _0x2b90d3=_0x5ba1fc,_0x24c20d=this[_0x2b90d3(0x1e4)](_0x2b90d3(0x221)+_0x326eff+_0x2b90d3(0x214),_0x2b90d3(0x1b4),{'positiveCount':_0x23f64e[_0x2b90d3(0x206)],'totalCount':_0x23f64e[_0x2b90d3(0x22d)],'dataId':_0x3b314b});return{'execute':async()=>{const _0x25ea0=_0x2b90d3;await _0x24c20d[_0x25ea0(0x1ae)];},'abortController':_0x24c20d[_0x2b90d3(0x1c3)]};}[_0x5ba1fc(0x1e4)](_0x93cbb,_0x26eaf0,_0x4b6e21){const _0x4b48d7=_0x5ba1fc,_0x4abd4c=new AbortController(),_0x4e1a8c=_0x4b6e21 instanceof FormData,_0x3f2e50={'Authorization':_0x4b48d7(0x1c8)+this[_0x4b48d7(0x211)]?.[_0x4b48d7(0x1b0)]};_0x4b6e21&&!_0x4e1a8c&&(_0x3f2e50[_0x4b48d7(0x1f3)]=_0x4b48d7(0x20f));const _0x2c1eaa={'method':_0x26eaf0,'headers':_0x3f2e50,'signal':_0x4abd4c[_0x4b48d7(0x1bd)]};return _0x4b6e21&&(_0x2c1eaa[_0x4b48d7(0x1f1)]=_0x4e1a8c?_0x4b6e21:JSON[_0x4b48d7(0x208)](_0x4b6e21)),{'request':fetch(''+this[_0x4b48d7(0x1d2)]+_0x93cbb,_0x2c1eaa)[_0x4b48d7(0x1b8)](_0x58d9ea=>{const _0x39cb39=_0x4b48d7;this[_0x39cb39(0x20e)](_0x58d9ea);})[_0x4b48d7(0x216)](_0x3eeb9b=>_0x3eeb9b['ok']?_0x3eeb9b:_0x3eeb9b[_0x4b48d7(0x1f5)]()[_0x4b48d7(0x216)](_0xfc9686=>{const _0x3cd1d1=_0x4b48d7;throw{'url':this[_0x3cd1d1(0x1d2)],'path':_0x93cbb,'method':_0x26eaf0,'body':_0x4b6e21,'status':(_0x3eeb9b||{})[_0x3cd1d1(0x1a7)],'statusText':(_0x3eeb9b||{})[_0x3cd1d1(0x1b7)],'code':_0xfc9686[_0x3cd1d1(0x19c)],'message':_0xfc9686[_0x3cd1d1(0x1e3)],'traceId':_0xfc9686[_0x3cd1d1(0x1bc)]};})),'abortController':_0x4abd4c};}async*[_0x5ba1fc(0x225)](_0xaaaaba){const _0x54da05=_0x5ba1fc,_0x4740ed=[],_0xda3297=_0xaaaaba[_0x54da05(0x1f0)](),_0x2edb7d=_0x73a7d7({'onError':_0x5500fa=>{const _0x478403=_0x54da05;this[_0x478403(0x20e)](_0x5500fa);},'onEvent':_0x4da163=>{const _0x5301a7=_0x54da05;_0x4da163[_0x5301a7(0x1da)]=JSON[_0x5301a7(0x1d8)](_0x4da163[_0x5301a7(0x1da)]),_0x4740ed[_0x5301a7(0x1be)](_0x4da163);}});try{let _0x394e96=!0x1;for(;!_0x394e96;){const {done:_0x32d94f,value:_0x35939d}=await _0xda3297[_0x54da05(0x1f6)]();_0x32d94f&&(_0x394e96=!0x0),_0x2edb7d[_0x54da05(0x1a1)](this[_0x54da05(0x1cd)][_0x54da05(0x20b)](_0x35939d,{'stream':!0x0})),yield*_0x4740ed,_0x4740ed[_0x54da05(0x1af)]=0x0;}}catch(_0x22c454){this[_0x54da05(0x20e)](_0x22c454);}finally{_0xda3297[_0x54da05(0x1ce)](),_0x2edb7d[_0x54da05(0x1ab)]();}}[_0x5ba1fc(0x20e)](_0x27aee5){const _0x5253a2=_0x5ba1fc;if(_0x27aee5 instanceof _0x44d265)throw _0x27aee5;if(_0x27aee5 instanceof Error&&_0x5253a2(0x1ee)===_0x27aee5[_0x5253a2(0x1bf)])throw new _0x44d265(_0x5253a2(0x1d7),this,{'originalError':_0x27aee5});throw new _0x44d265(_0x5253a2(0x229),this,{'originalError':_0x27aee5});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1ffd0a=_0x9e8c;function _0x9e8c(_0x52a5f9,_0x1ba6eb){const _0x3b6efc=_0x3b6e();return _0x9e8c=function(_0x9e8cff,_0x56a2ad){_0x9e8cff=_0x9e8cff-0xe6;let _0x1a04cb=_0x3b6efc[_0x9e8cff];return _0x1a04cb;},_0x9e8c(_0x52a5f9,_0x1ba6eb);}(function(_0x1bf4c3,_0x5bf10c){const _0x3c54b3=_0x9e8c,_0x15dc41=_0x1bf4c3();while(!![]){try{const _0x4cc10d=parseInt(_0x3c54b3(0x104))/0x1+parseInt(_0x3c54b3(0xf9))/0x2+-parseInt(_0x3c54b3(0xf7))/0x3*(-parseInt(_0x3c54b3(0x13a))/0x4)+-parseInt(_0x3c54b3(0xed))/0x5+-parseInt(_0x3c54b3(0x10c))/0x6+parseInt(_0x3c54b3(0x120))/0x7*(parseInt(_0x3c54b3(0x115))/0x8)+-parseInt(_0x3c54b3(0x10b))/0x9;if(_0x4cc10d===_0x5bf10c)break;else _0x15dc41['push'](_0x15dc41['shift']());}catch(_0x24f81c){_0x15dc41['push'](_0x15dc41['shift']());}}}(_0x3b6e,0xc9a83));function _0x3b6e(){const _0x227c5c=['selection','getDocumentData','markerName','trim','22548429xlGlXe','2209128PPluxr','RealTimeCollaborationClient','getMarkersGroup','length','start','conversion','document','floor','removeAllRanges','8BsgIUk','domConverter','getLastMatchingPosition','from','plugins','isAfter','element','editors','version','_setDataIdsOnChildren','end','6444753pYKFAJ','_getDocumentDataStringFromView','containerElement','get','ready','toData','_getMarkersInDocumentOrder','htmlWriter','getSelection','substring','has','define','editing','_sessionId','sessionId','getStart','getRanges','view','markers','emptyElement','name','removeMarker','isOfficialPlugin','hideFakeVisualSelection','indexOf','fromCharCode','264TASSrc','isBefore','random','join','data','toView',':end>','change','_integrateEditor','ai.models.showModelSelector','add','locale','showFakeVisualSelection','ck-fake-ai-selection','for',':end></','_displayedFakeSelectionId','_setOutputDataProcessor','isOpening','editingDowncast','createUIElement','schema','_displayedFakeSelectionLocked','data-id','createRange','markerToHighlight','modelToDataWithIds','pluginName','addMarker','$textProxy',':start></','getHtml','push','config','dataDowncast','model','processor','setAttribute','906030mIuXCC','isAtEnd','markerToElement','listenTo','isPremiumPlugin','_outputDataProcessor',':start>','isContent','ai-selection','AIEditing','46245eEKksL','getRoot','2953518DOZBxu','getItems','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','ai-selection:','viewToDom','ck-ai-assistant-ui_theme','convertAiChatSelectionMarker','afterInit','_nextDataId','sort','getSelectionText','465934vsSldu','context','getChildren'];_0x3b6e=function(){return _0x227c5c;};return _0x3b6e();}import{ViewDowncastWriter as _0x5df79e}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2f98a3,Editor as _0x4087ef}from'ckeditor5/src/core.js';import{uid as _0x1f453e}from'ckeditor5/src/utils.js';import{getTranslation as _0x1c8e30}from'./utils/common-translations.js';import{getEditorFromContext as _0x410050}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x1ffd0a(0xf5);export class AIEditing extends _0x2f98a3{constructor(_0x2a44a6){const _0x16c576=_0x1ffd0a;super(_0x2a44a6),this[_0x16c576(0x105)][_0x16c576(0xe8)][_0x16c576(0x12b)](_0x16c576(0x143),!0x0);}[_0x1ffd0a(0xf2)];[_0x1ffd0a(0x14a)]=null;[_0x1ffd0a(0x150)]=!0x1;[_0x1ffd0a(0x12d)];static get[_0x1ffd0a(0x155)](){const _0x3eb368=_0x1ffd0a;return _0x3eb368(0xf6);}static get[_0x1ffd0a(0x136)](){return!0x0;}static get[_0x1ffd0a(0xf1)](){return!0x0;}get[_0x1ffd0a(0x12e)](){const _0x250d1d=_0x1ffd0a;if(!this[_0x250d1d(0x12d)]){const _0x6ee90f=_0x410050(this[_0x250d1d(0x105)]),_0x508bfd=_0x6ee90f[_0x250d1d(0x119)][_0x250d1d(0x12a)](_0x250d1d(0x10d))&&_0x6ee90f[_0x250d1d(0x119)][_0x250d1d(0x123)](_0x250d1d(0x10d))[_0x250d1d(0x12e)];this[_0x250d1d(0x12d)]=_0x508bfd||_0x1f453e();}return this[_0x250d1d(0x12d)];}async[_0x1ffd0a(0x108)](){const _0x2122c5=_0x1ffd0a,_0x55a065=_0x410050(this[_0x2122c5(0x105)]),_0x1260c4=_0x55a065[_0x2122c5(0xea)],_0x35c8cb=_0x55a065[_0x2122c5(0x13e)][_0x2122c5(0x13f)](_0x1260c4[_0x2122c5(0x112)][_0x2122c5(0xf8)](),{'convertAiChatSelectionMarker':!0x0}),_0x2a2a16=new _0x5df79e(_0x55a065[_0x2122c5(0x12c)][_0x2122c5(0x131)][_0x2122c5(0x112)]);this[_0x2122c5(0x11e)](_0x35c8cb,_0x2a2a16);let _0x4517c5=await this[_0x2122c5(0x121)](_0x35c8cb);const _0x572be8=this[_0x2122c5(0x126)](),_0x1ce52e=[];for(const _0x13cf6e of _0x572be8){const _0x84d9af='<'+_0x13cf6e[_0x2122c5(0x134)]+_0x2122c5(0x158)+_0x13cf6e[_0x2122c5(0x134)]+_0x2122c5(0xf3),_0x36b7fb=_0x4517c5[_0x2122c5(0x138)](_0x84d9af);_0x4517c5=_0x4517c5[_0x2122c5(0x129)](0x0,_0x36b7fb)+_0x4517c5[_0x2122c5(0x129)](_0x36b7fb+_0x84d9af[_0x2122c5(0x10f)]);const _0xb1ae31='<'+_0x13cf6e[_0x2122c5(0x134)]+_0x2122c5(0x149)+_0x13cf6e[_0x2122c5(0x134)]+_0x2122c5(0x140),_0x7e4f59=_0x4517c5[_0x2122c5(0x138)](_0xb1ae31);_0x4517c5=_0x4517c5[_0x2122c5(0x129)](0x0,_0x7e4f59)+_0x4517c5[_0x2122c5(0x129)](_0x7e4f59+_0xb1ae31[_0x2122c5(0x10f)]),_0x1ce52e[_0x2122c5(0xe7)]({'markerName':_0x13cf6e[_0x2122c5(0x134)],'start':_0x36b7fb,'end':_0x7e4f59,'htmlFragment':_0x4517c5[_0x2122c5(0x129)](_0x36b7fb,_0x7e4f59)});}return{'content':_0x4517c5,'version':_0x55a065[_0x2122c5(0xea)][_0x2122c5(0x112)][_0x2122c5(0x11d)],'sessionId':this[_0x2122c5(0x12e)],'selections':_0x1ce52e};}async[_0x1ffd0a(0x100)](){const _0xbb554c=_0x1ffd0a;this[_0xbb554c(0x105)]instanceof _0x4087ef?this[_0xbb554c(0x142)](this[_0xbb554c(0x105)]):this[_0xbb554c(0xf0)](this[_0xbb554c(0x105)][_0xbb554c(0x11c)],_0xbb554c(0x144),(_0x1df93c,_0x19dfdd)=>{const _0x1bc2a6=_0xbb554c;_0x19dfdd['on'](_0x1bc2a6(0x124),()=>{const _0x4d8bed=_0x1bc2a6;this[_0x4d8bed(0x142)](_0x19dfdd);});});}[_0x1ffd0a(0x14b)](_0x8cc3b5){const _0x10b0c0=_0x1ffd0a;this[_0x10b0c0(0xf2)]=_0x8cc3b5;}async[_0x1ffd0a(0x121)](_0x499824){const _0x3727e7=_0x1ffd0a;let _0x6898c1;const _0x36d522=_0x410050(this[_0x3727e7(0x105)]);if(this[_0x3727e7(0xf2)]){const _0x5b4893=_0x36d522[_0x3727e7(0x13e)][_0x3727e7(0xeb)][_0x3727e7(0x116)][_0x3727e7(0xfd)](_0x499824),_0x304542=await this[_0x3727e7(0xf2)](_0x5b4893);_0x6898c1=_0x36d522[_0x3727e7(0x13e)][_0x3727e7(0xeb)][_0x3727e7(0x127)][_0x3727e7(0xe6)](_0x304542);}else _0x6898c1=_0x36d522[_0x3727e7(0x13e)][_0x3727e7(0xeb)][_0x3727e7(0x125)](_0x499824);return _0x6898c1;}[_0x1ffd0a(0x142)](_0x2f1b08){const _0x46c3d1=_0x1ffd0a;_0x2f1b08[_0x46c3d1(0x111)][_0x46c3d1(0x148)](_0x46c3d1(0x14d))[_0x46c3d1(0x153)]({'model':_0x46c3d1(0xf5),'view':{'classes':[_0x46c3d1(0x147),_0x46c3d1(0xfe)],'priority':0xc}}),_0x2f1b08[_0x46c3d1(0x111)][_0x46c3d1(0x148)](_0x46c3d1(0xe9))[_0x46c3d1(0xef)]({'model':_0x46c3d1(0xf5),'view':(_0x68cd30,{writer:_0x5cd266,options:_0x25f685})=>_0x25f685[_0x46c3d1(0xff)]?_0x5cd266[_0x46c3d1(0x14e)](_0x68cd30[_0x46c3d1(0x109)]+':'+(_0x68cd30[_0x46c3d1(0x14c)]?_0x46c3d1(0x110):_0x46c3d1(0x11f))):null});}[_0x1ffd0a(0x146)](_0x34fd4b,_0x6ea798,_0x4b9076=!0x1,_0xe11b5c=!0x1){const _0x400505=_0x1ffd0a;if(this[_0x400505(0x150)]&&!_0xe11b5c)return!0x1;const _0x196ded=_0x410050(this[_0x400505(0x105)])[_0x400505(0xea)];return _0x196ded[_0x400505(0x141)](_0x338162=>{const _0x234a13=_0x400505;this[_0x234a13(0x14a)]&&this[_0x234a13(0x137)](this[_0x234a13(0x14a)]),this[_0x234a13(0x14a)]=_0x6ea798,this[_0x234a13(0x150)]=_0x4b9076;let _0x1621ec=0x0;for(let _0x3f0ecb of _0x34fd4b){const _0x15dd2e=_0x234a13(0xfc)+_0x1621ec;if(_0x3f0ecb[_0x234a13(0x110)][_0x234a13(0xee)]){const _0x1ea3a8=_0x3f0ecb[_0x234a13(0x110)][_0x234a13(0x117)](({item:_0x43aa05})=>!_0x196ded[_0x234a13(0x14f)][_0x234a13(0xf4)](_0x43aa05),{'boundaries':_0x3f0ecb});_0x3f0ecb=_0x338162[_0x234a13(0x152)](_0x1ea3a8,_0x3f0ecb[_0x234a13(0x11f)]);}_0x338162[_0x234a13(0x156)](_0x15dd2e,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3f0ecb}),_0x1621ec++;}}),window[_0x400505(0x128)]()?.[_0x400505(0x114)](),!0x0;}[_0x1ffd0a(0x137)](_0x56fdeb){const _0x4e8a87=_0x1ffd0a;if(this[_0x4e8a87(0x14a)]!=_0x56fdeb)return!0x1;this[_0x4e8a87(0x14a)]=null,this[_0x4e8a87(0x150)]=!0x1;const _0x4bd5ba=_0x410050(this[_0x4e8a87(0x105)]),_0x2cb1e7=_0x4bd5ba[_0x4e8a87(0xea)][_0x4e8a87(0x132)][_0x4e8a87(0x10e)](_0x4e8a87(0xf5));return _0x4bd5ba[_0x4e8a87(0xea)][_0x4e8a87(0x141)](_0x39d32c=>{const _0x543a69=_0x4e8a87;for(const _0x4a9b88 of _0x2cb1e7)_0x39d32c[_0x543a69(0x135)](_0x4a9b88);}),!0x0;}async[_0x1ffd0a(0x154)](_0x1a7a1b){const _0x1d5f73=_0x1ffd0a,_0x5f1cad=_0x410050(this[_0x1d5f73(0x105)]),_0x5ba8e4=_0x5f1cad[_0x1d5f73(0x13e)][_0x1d5f73(0x13f)](_0x1a7a1b),_0x24fae3=new _0x5df79e(_0x5f1cad[_0x1d5f73(0x12c)][_0x1d5f73(0x131)][_0x1d5f73(0x112)]);return this[_0x1d5f73(0x11e)](_0x5ba8e4,_0x24fae3),this[_0x1d5f73(0x121)](_0x5ba8e4);}[_0x1ffd0a(0x11e)](_0x5ccba9,_0x1c2c10){const _0x56d811=_0x1ffd0a;let _0x10c8db=!0x1;const _0x35627e=new Set();for(const _0x25ee1d of _0x5ccba9[_0x56d811(0x106)]()){const _0x11e7d4=_0x25ee1d['is'](_0x56d811(0x133))||_0x25ee1d['is'](_0x56d811(0x122));if(!_0x25ee1d['is'](_0x56d811(0x11b)))continue;(this[_0x56d811(0x11e)](_0x25ee1d,_0x1c2c10)||_0x11e7d4)&&(_0x1c2c10[_0x56d811(0xec)](_0x56d811(0x151),this[_0x56d811(0x101)](_0x35627e),_0x25ee1d),_0x10c8db=!0x0);}return _0x10c8db;}[_0x1ffd0a(0x101)](_0x1ee75a){const _0x2b33be=_0x1ffd0a;let _0x356f49;do{_0x356f49='';for(let _0x48d54a=0x0;_0x48d54a<0x4;_0x48d54a++)_0x356f49+=String[_0x2b33be(0x139)](0x61+Math[_0x2b33be(0x113)](0x1a*Math[_0x2b33be(0x13c)]()));}while(_0x1ee75a[_0x2b33be(0x12a)](_0x356f49));return _0x1ee75a[_0x2b33be(0x144)](_0x356f49),_0x356f49;}[_0x1ffd0a(0x103)](){const _0x496227=_0x1ffd0a,{model:_0x2ee9ef}=_0x410050(this[_0x496227(0x105)]),_0x55bcc0=_0x2ee9ef[_0x496227(0x112)][_0x496227(0x107)],_0x45f31f=[];for(const _0x3a1278 of _0x55bcc0[_0x496227(0x130)]())for(const _0x8dd2b6 of _0x3a1278[_0x496227(0xfa)]())_0x8dd2b6['is'](_0x496227(0x157))?_0x45f31f[_0x496227(0xe7)](_0x8dd2b6[_0x496227(0x13e)]):_0x8dd2b6['is'](_0x496227(0x11b))&&_0x45f31f[_0x496227(0x10f)]>0x0&&'\x20'!==_0x45f31f[_0x45f31f[_0x496227(0x10f)]-0x1]&&_0x45f31f[_0x496227(0xe7)]('\x20');return _0x45f31f[_0x496227(0x10f)]?'\x22'+_0x45f31f[_0x496227(0x13d)]('')[_0x496227(0x10a)]()+'\x22':_0x1c8e30(this[_0x496227(0x105)][_0x496227(0x145)],_0x496227(0xfb));}[_0x1ffd0a(0x126)](){const _0x5ada23=_0x1ffd0a,_0x904dd2=_0x410050(this[_0x5ada23(0x105)])[_0x5ada23(0xea)];return Array[_0x5ada23(0x118)](_0x904dd2[_0x5ada23(0x132)][_0x5ada23(0x10e)](_0x5ada23(0xf5)))[_0x5ada23(0x102)]((_0x1f2a39,_0x37d203)=>_0x1f2a39[_0x5ada23(0x12f)]()[_0x5ada23(0x13b)](_0x37d203[_0x5ada23(0x12f)]())?-0x1:_0x1f2a39[_0x5ada23(0x12f)]()[_0x5ada23(0x11a)](_0x37d203[_0x5ada23(0x12f)]())?0x1:0x0);}}
|
|
23
|
+
const _0x3b0ce5=_0x1edf;(function(_0x468f46,_0x5c0dc1){const _0x3fed54=_0x1edf,_0x263f2e=_0x468f46();while(!![]){try{const _0x30422e=parseInt(_0x3fed54(0x91))/0x1*(parseInt(_0x3fed54(0xcc))/0x2)+-parseInt(_0x3fed54(0xd5))/0x3*(parseInt(_0x3fed54(0xaa))/0x4)+parseInt(_0x3fed54(0x7f))/0x5*(-parseInt(_0x3fed54(0x9c))/0x6)+parseInt(_0x3fed54(0xcf))/0x7+parseInt(_0x3fed54(0xd8))/0x8*(-parseInt(_0x3fed54(0xa4))/0x9)+-parseInt(_0x3fed54(0xae))/0xa*(parseInt(_0x3fed54(0xa5))/0xb)+parseInt(_0x3fed54(0xeb))/0xc;if(_0x30422e===_0x5c0dc1)break;else _0x263f2e['push'](_0x263f2e['shift']());}catch(_0x596c06){_0x263f2e['push'](_0x263f2e['shift']());}}}(_0x343c,0x9f2cb));import{ViewDowncastWriter as _0x513b21}from'ckeditor5/src/engine.js';function _0x1edf(_0x152e84,_0xe37f11){const _0x343c52=_0x343c();return _0x1edf=function(_0x1edf19,_0x1d6a48){_0x1edf19=_0x1edf19-0x7b;let _0x18e582=_0x343c52[_0x1edf19];return _0x18e582;},_0x1edf(_0x152e84,_0xe37f11);}import{ContextPlugin as _0x3e74dd,Editor as _0x3e8b72}from'ckeditor5/src/core.js';import{uid as _0x25b929}from'ckeditor5/src/utils.js';import{getTranslation as _0x1451d3}from'./utils/common-translations.js';import{getEditorFromContext as _0x3ea459}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x3b0ce5(0x8e);export class AIEditing extends _0x3e74dd{constructor(_0x2a8167){const _0x1c1f89=_0x3b0ce5;super(_0x2a8167),this[_0x1c1f89(0xe8)][_0x1c1f89(0xe0)][_0x1c1f89(0xa8)](_0x1c1f89(0xe4),!0x0);}[_0x3b0ce5(0xba)];[_0x3b0ce5(0xdc)]=null;[_0x3b0ce5(0x90)]=!0x1;[_0x3b0ce5(0xdd)];static get[_0x3b0ce5(0xc2)](){const _0x574668=_0x3b0ce5;return _0x574668(0xc4);}static get[_0x3b0ce5(0xb1)](){return!0x0;}static get[_0x3b0ce5(0x84)](){return!0x0;}get[_0x3b0ce5(0xd1)](){const _0x478bbc=_0x3b0ce5;if(!this[_0x478bbc(0xdd)]){const _0x352b78=_0x3ea459(this[_0x478bbc(0xe8)]),_0x118c3e=_0x352b78[_0x478bbc(0x9f)][_0x478bbc(0xa7)](_0x478bbc(0xe1))&&_0x352b78[_0x478bbc(0x9f)][_0x478bbc(0xa0)](_0x478bbc(0xe1))[_0x478bbc(0xd1)];this[_0x478bbc(0xdd)]=_0x118c3e||_0x25b929();}return this[_0x478bbc(0xdd)];}async[_0x3b0ce5(0xa9)](){const _0x1ba161=_0x3b0ce5,_0x5245a6=_0x3ea459(this[_0x1ba161(0xe8)]),_0x2a6cdc=_0x5245a6[_0x1ba161(0xe5)],_0x21fbf8=_0x5245a6[_0x1ba161(0xb7)][_0x1ba161(0xb2)](_0x2a6cdc[_0x1ba161(0xa1)][_0x1ba161(0xb3)](),{'convertAiChatSelectionMarker':!0x0}),_0x1100e6=new _0x513b21(_0x5245a6[_0x1ba161(0x7d)][_0x1ba161(0x94)][_0x1ba161(0xa1)]);this[_0x1ba161(0xbe)](_0x21fbf8,_0x1100e6);let _0x206adf=await this[_0x1ba161(0xea)](_0x21fbf8);const _0x2ccdc6=this[_0x1ba161(0x89)](),_0x15c85b=[];for(const _0x4ffc3b of _0x2ccdc6){const _0x4c7a67='<'+_0x4ffc3b[_0x1ba161(0xc8)]+_0x1ba161(0xe6)+_0x4ffc3b[_0x1ba161(0xc8)]+_0x1ba161(0x92),_0x58f737=_0x206adf[_0x1ba161(0xaf)](_0x4c7a67);_0x206adf=_0x206adf[_0x1ba161(0xcb)](0x0,_0x58f737)+_0x206adf[_0x1ba161(0xcb)](_0x58f737+_0x4c7a67[_0x1ba161(0xd0)]);const _0x199a34='<'+_0x4ffc3b[_0x1ba161(0xc8)]+_0x1ba161(0x9d)+_0x4ffc3b[_0x1ba161(0xc8)]+_0x1ba161(0x99),_0x5b8251=_0x206adf[_0x1ba161(0xaf)](_0x199a34);_0x206adf=_0x206adf[_0x1ba161(0xcb)](0x0,_0x5b8251)+_0x206adf[_0x1ba161(0xcb)](_0x5b8251+_0x199a34[_0x1ba161(0xd0)]),_0x15c85b[_0x1ba161(0x86)]({'markerName':_0x4ffc3b[_0x1ba161(0xc8)],'start':_0x58f737,'end':_0x5b8251,'htmlFragment':_0x206adf[_0x1ba161(0xcb)](_0x58f737,_0x5b8251)});}return{'content':_0x206adf,'version':_0x5245a6[_0x1ba161(0xe5)][_0x1ba161(0xa1)][_0x1ba161(0xe2)],'sessionId':this[_0x1ba161(0xd1)],'selections':_0x15c85b};}async[_0x3b0ce5(0xc0)](){const _0x2dd101=_0x3b0ce5;this[_0x2dd101(0xe8)]instanceof _0x3e8b72?this[_0x2dd101(0x97)](this[_0x2dd101(0xe8)]):this[_0x2dd101(0xec)](this[_0x2dd101(0xe8)][_0x2dd101(0x82)],_0x2dd101(0x80),(_0x208ca4,_0x5103ac)=>{const _0x92637c=_0x2dd101;_0x5103ac['on'](_0x92637c(0xd3),()=>{const _0x4196b3=_0x92637c;this[_0x4196b3(0x97)](_0x5103ac);});});}[_0x3b0ce5(0x7e)](_0x50169b){const _0x2b52f3=_0x3b0ce5;this[_0x2b52f3(0xba)]=_0x50169b;}async[_0x3b0ce5(0xea)](_0xef3ce2){const _0x20ef8b=_0x3b0ce5;let _0x2718b1;const _0x25e709=_0x3ea459(this[_0x20ef8b(0xe8)]);if(this[_0x20ef8b(0xba)]){const _0x51af7b=_0x25e709[_0x20ef8b(0xb7)][_0x20ef8b(0x7b)][_0x20ef8b(0xc5)][_0x20ef8b(0xbc)](_0xef3ce2),_0x4fe204=await this[_0x20ef8b(0xba)](_0x51af7b);_0x2718b1=_0x25e709[_0x20ef8b(0xb7)][_0x20ef8b(0x7b)][_0x20ef8b(0xd4)][_0x20ef8b(0xb6)](_0x4fe204);}else _0x2718b1=_0x25e709[_0x20ef8b(0xb7)][_0x20ef8b(0x7b)][_0x20ef8b(0x96)](_0xef3ce2);return _0x2718b1;}[_0x3b0ce5(0x97)](_0x3c4305){const _0x513d85=_0x3b0ce5;_0x3c4305[_0x513d85(0xe3)][_0x513d85(0xee)](_0x513d85(0xbb))[_0x513d85(0xd9)]({'model':_0x513d85(0x8e),'view':{'classes':[_0x513d85(0x83),_0x513d85(0xe9)],'priority':0xc}}),_0x3c4305[_0x513d85(0xe3)][_0x513d85(0xee)](_0x513d85(0x87))[_0x513d85(0xc1)]({'model':_0x513d85(0x8e),'view':(_0x4394ea,{writer:_0x516315,options:_0xf532df})=>_0xf532df[_0x513d85(0xb4)]?_0x516315[_0x513d85(0xd7)](_0x4394ea[_0x513d85(0x93)]+':'+(_0x4394ea[_0x513d85(0x8d)]?_0x513d85(0xab):_0x513d85(0xb5))):null});}[_0x3b0ce5(0x7c)](_0x5541cc,_0x532f8f,_0x2e43ed=!0x1,_0x83e491=!0x1){const _0x130f55=_0x3b0ce5;if(this[_0x130f55(0x90)]&&!_0x83e491)return!0x1;const _0x1add06=_0x3ea459(this[_0x130f55(0xe8)])[_0x130f55(0xe5)];return _0x1add06[_0x130f55(0xac)](_0x671478=>{const _0x3acdbf=_0x130f55;this[_0x3acdbf(0xdc)]&&this[_0x3acdbf(0xe7)](this[_0x3acdbf(0xdc)]),this[_0x3acdbf(0xdc)]=_0x532f8f,this[_0x3acdbf(0x90)]=_0x2e43ed;let _0x1c7a0c=0x0;for(let _0x893f28 of _0x5541cc){const _0x3707f1=_0x3acdbf(0x98)+_0x1c7a0c;if(_0x893f28[_0x3acdbf(0xab)][_0x3acdbf(0xc9)]){const _0x2c43e8=_0x893f28[_0x3acdbf(0xab)][_0x3acdbf(0xb9)](({item:_0x1da3aa})=>!_0x1add06[_0x3acdbf(0xbf)][_0x3acdbf(0xb8)](_0x1da3aa),{'boundaries':_0x893f28});_0x893f28=_0x671478[_0x3acdbf(0xa2)](_0x2c43e8,_0x893f28[_0x3acdbf(0xb5)]);}_0x671478[_0x3acdbf(0xf0)](_0x3707f1,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x893f28}),_0x1c7a0c++;}}),window[_0x130f55(0xef)]()?.[_0x130f55(0x8a)](),!0x0;}[_0x3b0ce5(0xe7)](_0x4aba4d){const _0x21da71=_0x3b0ce5;if(this[_0x21da71(0xdc)]!=_0x4aba4d)return!0x1;this[_0x21da71(0xdc)]=null,this[_0x21da71(0x90)]=!0x1;const _0x3b8960=_0x3ea459(this[_0x21da71(0xe8)]),_0x3c9761=_0x3b8960[_0x21da71(0xe5)][_0x21da71(0xca)][_0x21da71(0xb0)](_0x21da71(0x8e));return _0x3b8960[_0x21da71(0xe5)][_0x21da71(0xac)](_0x39fc24=>{const _0x5b4eee=_0x21da71;for(const _0x3c2216 of _0x3c9761)_0x39fc24[_0x5b4eee(0xdf)](_0x3c2216);}),!0x0;}async[_0x3b0ce5(0xc7)](_0x3090ff){const _0x1398f3=_0x3b0ce5,_0x10ad2c=_0x3ea459(this[_0x1398f3(0xe8)]),_0x40a54c=_0x10ad2c[_0x1398f3(0xb7)][_0x1398f3(0xb2)](_0x3090ff),_0x3122c0=new _0x513b21(_0x10ad2c[_0x1398f3(0x7d)][_0x1398f3(0x94)][_0x1398f3(0xa1)]);return this[_0x1398f3(0xbe)](_0x40a54c,_0x3122c0),this[_0x1398f3(0xea)](_0x40a54c);}[_0x3b0ce5(0xbe)](_0x3c3e86,_0x11deee){const _0x38b3f2=_0x3b0ce5;let _0x19ede8=!0x1;const _0x455799=new Set();for(const _0x24f270 of _0x3c3e86[_0x38b3f2(0x88)]()){const _0x544ae3=_0x24f270['is'](_0x38b3f2(0x9e))||_0x24f270['is'](_0x38b3f2(0xd6));if(!_0x24f270['is'](_0x38b3f2(0xad)))continue;(this[_0x38b3f2(0xbe)](_0x24f270,_0x11deee)||_0x544ae3)&&(_0x11deee[_0x38b3f2(0xce)](_0x38b3f2(0xcd),this[_0x38b3f2(0xed)](_0x455799),_0x24f270),_0x19ede8=!0x0);}return _0x19ede8;}[_0x3b0ce5(0xed)](_0x2135a9){const _0x5ec9c2=_0x3b0ce5;let _0x161891;do{_0x161891='';for(let _0x54f38c=0x0;_0x54f38c<0x4;_0x54f38c++)_0x161891+=String[_0x5ec9c2(0x85)](0x61+Math[_0x5ec9c2(0x81)](0x1a*Math[_0x5ec9c2(0xc3)]()));}while(_0x2135a9[_0x5ec9c2(0xa7)](_0x161891));return _0x2135a9[_0x5ec9c2(0x80)](_0x161891),_0x161891;}[_0x3b0ce5(0xde)](){const _0x4b6b83=_0x3b0ce5,{model:_0x1d1fe8}=_0x3ea459(this[_0x4b6b83(0xe8)]),_0x59f1eb=_0x1d1fe8[_0x4b6b83(0xa1)][_0x4b6b83(0xd2)],_0x28d7b1=[];for(const _0x48b6f3 of _0x59f1eb[_0x4b6b83(0x9b)]())for(const _0x27a919 of _0x48b6f3[_0x4b6b83(0xa3)]())_0x27a919['is'](_0x4b6b83(0x8c))?_0x28d7b1[_0x4b6b83(0x86)](_0x27a919[_0x4b6b83(0xb7)]):_0x27a919['is'](_0x4b6b83(0xad))&&_0x28d7b1[_0x4b6b83(0xd0)]>0x0&&'\x20'!==_0x28d7b1[_0x28d7b1[_0x4b6b83(0xd0)]-0x1]&&_0x28d7b1[_0x4b6b83(0x86)]('\x20');return _0x28d7b1[_0x4b6b83(0xd0)]?'\x22'+_0x28d7b1[_0x4b6b83(0x9a)]('')[_0x4b6b83(0x8b)]()+'\x22':_0x1451d3(this[_0x4b6b83(0xe8)][_0x4b6b83(0xdb)],_0x4b6b83(0x8f));}[_0x3b0ce5(0x89)](){const _0x4a96f4=_0x3b0ce5,_0x18b35d=_0x3ea459(this[_0x4a96f4(0xe8)])[_0x4a96f4(0xe5)];return Array[_0x4a96f4(0xc6)](_0x18b35d[_0x4a96f4(0xca)][_0x4a96f4(0xb0)](_0x4a96f4(0x8e)))[_0x4a96f4(0xda)]((_0x297f69,_0x5a39b6)=>_0x297f69[_0x4a96f4(0x95)]()[_0x4a96f4(0xa6)](_0x5a39b6[_0x4a96f4(0x95)]())?-0x1:_0x297f69[_0x4a96f4(0x95)]()[_0x4a96f4(0xbd)](_0x5a39b6[_0x4a96f4(0x95)]())?0x1:0x0);}}function _0x343c(){const _0x2576d5=[':end></','emptyElement','plugins','get','document','createRange','getItems','1369125DnRjDz','2002418gwbWQO','isBefore','has','define','getDocumentData','4KRHoXv','start','change','element','10gHGboQ','indexOf','getMarkersGroup','isOfficialPlugin','toView','getRoot','convertAiChatSelectionMarker','end','getHtml','data','isContent','getLastMatchingPosition','_outputDataProcessor','editingDowncast','viewToDom','isAfter','_setDataIdsOnChildren','schema','afterInit','markerToElement','pluginName','random','AIEditing','domConverter','from','modelToDataWithIds','name','isAtEnd','markers','substring','104xAVMyu','data-id','setAttribute','7134652PzANMM','length','sessionId','selection','ready','htmlWriter','376422cevVbU','containerElement','createUIElement','56OhPeAS','markerToHighlight','sort','locale','_displayedFakeSelectionId','_sessionId','getSelectionText','removeMarker','config','RealTimeCollaborationClient','version','conversion','ai.models.showModelSelector','model',':start></','hideFakeVisualSelection','context','ck-ai-assistant-ui_theme','_getDocumentDataStringFromView','16248744DQPzic','listenTo','_nextDataId','for','getSelection','addMarker','processor','showFakeVisualSelection','editing','_setOutputDataProcessor','1165985GLekHN','add','floor','editors','ck-fake-ai-selection','isPremiumPlugin','fromCharCode','push','dataDowncast','getChildren','_getMarkersInDocumentOrder','removeAllRanges','trim','$textProxy','isOpening','ai-selection','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','_displayedFakeSelectionLocked','11228mvyQmR',':start>','markerName','view','getStart','toData','_integrateEditor','ai-selection:',':end>','join','getRanges','24xvplTM'];_0x343c=function(){return _0x2576d5;};return _0x343c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x384b0f=_0x49b7;function _0x49b7(_0x70fbed,_0x3a7ab2){const _0x1315bd=_0x1315();return _0x49b7=function(_0x49b72f,_0x3d6c06){_0x49b72f=_0x49b72f-0x135;let _0x28bd61=_0x1315bd[_0x49b72f];return _0x28bd61;},_0x49b7(_0x70fbed,_0x3a7ab2);}(function(_0xd9963c,_0x460223){const _0x15e2d2=_0x49b7,_0x407f28=_0xd9963c();while(!![]){try{const _0x54ce29=-parseInt(_0x15e2d2(0x14d))/0x1+parseInt(_0x15e2d2(0x137))/0x2*(-parseInt(_0x15e2d2(0x139))/0x3)+parseInt(_0x15e2d2(0x148))/0x4*(parseInt(_0x15e2d2(0x14e))/0x5)+-parseInt(_0x15e2d2(0x13e))/0x6+parseInt(_0x15e2d2(0x145))/0x7+parseInt(_0x15e2d2(0x13d))/0x8*(-parseInt(_0x15e2d2(0x147))/0x9)+-parseInt(_0x15e2d2(0x14a))/0xa*(-parseInt(_0x15e2d2(0x13f))/0xb);if(_0x54ce29===_0x460223)break;else _0x407f28['push'](_0x407f28['shift']());}catch(_0x493c4f){_0x407f28['push'](_0x407f28['shift']());}}}(_0x1315,0xe4a8f));function _0x1315(){const _0x223e11=['4016982LVPxjF','2400937qszCxG','_isWebSearchEnabled','reasoning','capabilitiesUpdated','isWebSearchEnabled','getCapabilitiesConfig','9459877pKsFpG','getCapabilitiesRequestData','1350621XmuCnS','3173536uJUmCO','init','50LLLGoo','reset','setReasoning','483679jzFVnk','5mXgWJy','_isReasoningEnabled','setWebSearch','toggleReasoning','964XUQUaZ','webSearch','6201XYBRgH','isReasoningEnabled','toggleWebSearch','fire','8EfbKDz'];_0x1315=function(){return _0x223e11;};return _0x1315();}import{EmitterMixin as _0xc6ccd9}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x384b0f(0x142)];export class AICapabilities extends _0xc6ccd9(){[_0x384b0f(0x140)];[_0x384b0f(0x14f)];constructor(){const _0x3344fb=_0x384b0f;super(),this[_0x3344fb(0x140)]=!0x1,this[_0x3344fb(0x14f)]=!0x1;}[_0x384b0f(0x149)](){const _0x41dd92=_0x384b0f;this[_0x41dd92(0x14b)]();}[_0x384b0f(0x14b)](){const _0x23d617=_0x384b0f;this[_0x23d617(0x135)](!0x1),this[_0x23d617(0x14c)](!0x1);}[_0x384b0f(0x144)](){const _0x28322a=_0x384b0f;return{'isWebSearchEnabled':this[_0x28322a(0x140)],'isReasoningEnabled':this[_0x28322a(0x14f)]};}static[_0x384b0f(0x146)](_0x23fdc7){const _0x876c62=_0x384b0f,_0x3e270a={};return _0x23fdc7&&_0x23fdc7[_0x876c62(0x143)]&&(_0x3e270a[_0x876c62(0x138)]={}),_0x23fdc7&&_0x23fdc7[_0x876c62(0x13a)]&&(_0x3e270a[_0x876c62(0x141)]={}),_0x3e270a;}[_0x384b0f(0x13b)](){const _0x136dcf=_0x384b0f;this[_0x136dcf(0x135)](!this[_0x136dcf(0x140)]);}[_0x384b0f(0x136)](){const _0x13798e=_0x384b0f;this[_0x13798e(0x14c)](!this[_0x13798e(0x14f)]);}[_0x384b0f(0x135)](_0x5a45bc){const _0x3b37e3=_0x384b0f;_0x5a45bc!==this[_0x3b37e3(0x140)]&&(this[_0x3b37e3(0x140)]=_0x5a45bc,this[_0x3b37e3(0x13c)](_0x3b37e3(0x142),this[_0x3b37e3(0x144)]()));}[_0x384b0f(0x14c)](_0x20c742){const _0x8b05d7=_0x384b0f;_0x20c742!==this[_0x8b05d7(0x14f)]&&(this[_0x8b05d7(0x14f)]=_0x20c742,this[_0x8b05d7(0x13c)](_0x8b05d7(0x142),this[_0x8b05d7(0x144)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x477b(){var _0x237876=['16ptZndY','HTML','DOCUMENT','6KxfVTq','28Hizxbu','880825pFXppx','web-resource','323279YLrlIa','SELECTION','119112gMrDsg','TOOL','FILE','3710RFxJWj','mcp-tool-context','71150gWRVXH','MARKDOWN','TEXT','file','72mTEcGi','markdown','193224xGWJzN','URL','html','document','318267LxoHMm','selection','2259knAqQP','text'];_0x477b=function(){return _0x237876;};return _0x477b();}(function(_0x459c1d,_0x14fcce){var _0x1d094e=_0x120b,_0x3b4e80=_0x459c1d();while(!![]){try{var _0x42c1b7=-parseInt(_0x1d094e(0x89))/0x1+-parseInt(_0x1d094e(0x85))/0x2*(-parseInt(_0x1d094e(0x9a))/0x3)+parseInt(_0x1d094e(0x9e))/0x4*(-parseInt(_0x1d094e(0x90))/0x5)+parseInt(_0x1d094e(0x8b))/0x6+-parseInt(_0x1d094e(0x86))/0x7*(-parseInt(_0x1d094e(0x96))/0x8)+parseInt(_0x1d094e(0x9c))/0x9*(-parseInt(_0x1d094e(0x8e))/0xa)+parseInt(_0x1d094e(0x87))/0xb*(parseInt(_0x1d094e(0x94))/0xc);if(_0x42c1b7===_0x14fcce)break;else _0x3b4e80['push'](_0x3b4e80['shift']());}catch(_0x478a79){_0x3b4e80['push'](_0x3b4e80['shift']());}}}(_0x477b,0x6be05));function _0x120b(_0x48dec2,_0x56a0fc){var _0x477b98=_0x477b();return _0x120b=function(_0x120b79,_0x19d4ee){_0x120b79=_0x120b79-0x84;var _0xe0268a=_0x477b98[_0x120b79];return _0xe0268a;},_0x120b(_0x48dec2,_0x56a0fc);}export var AIContextItemType;!function(_0x48d5f3){var _0x1e9370=_0x120b;_0x48d5f3[_0x1e9370(0x8c)]=_0x1e9370(0x8f),_0x48d5f3[_0x1e9370(0x8d)]=_0x1e9370(0x93),_0x48d5f3[_0x1e9370(0x84)]=_0x1e9370(0x99),_0x48d5f3[_0x1e9370(0x97)]=_0x1e9370(0x88),_0x48d5f3[_0x1e9370(0x92)]=_0x1e9370(0x9d),_0x48d5f3[_0x1e9370(0x8a)]=_0x1e9370(0x9b);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x553da3){var _0x53e5d7=_0x120b;_0x553da3[_0x53e5d7(0x92)]=_0x53e5d7(0x9d),_0x553da3[_0x53e5d7(0x91)]=_0x53e5d7(0x95),_0x553da3[_0x53e5d7(0x9f)]=_0x53e5d7(0x98);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|