@ckeditor/ckeditor5-ai 47.7.1 → 47.7.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +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
|
-
|
|
24
|
-
|
|
23
|
+
const _0x3c64b2=_0x40d2;(function(_0x545d60,_0x1640d3){const _0x4275bf=_0x40d2,_0x5d7cd7=_0x545d60();while(!![]){try{const _0x1c18cd=-parseInt(_0x4275bf(0x19a))/0x1+parseInt(_0x4275bf(0x195))/0x2*(-parseInt(_0x4275bf(0x1e9))/0x3)+parseInt(_0x4275bf(0x1b7))/0x4+parseInt(_0x4275bf(0x1ce))/0x5*(-parseInt(_0x4275bf(0x1a7))/0x6)+-parseInt(_0x4275bf(0x1a8))/0x7*(-parseInt(_0x4275bf(0x1c3))/0x8)+-parseInt(_0x4275bf(0x1b0))/0x9*(parseInt(_0x4275bf(0x19b))/0xa)+parseInt(_0x4275bf(0x1b4))/0xb;if(_0x1c18cd===_0x1640d3)break;else _0x5d7cd7['push'](_0x5d7cd7['shift']());}catch(_0x193b6c){_0x5d7cd7['push'](_0x5d7cd7['shift']());}}}(_0x3f62,0xe2809));import{ListItemView as _0x3fdc54,HighlightedTextView as _0x3363c8,ButtonView as _0x4f1c9b,ListView as _0x5b5d7a,IconView as _0x40fe9a,createDropdown as _0x170406,InputTextView as _0x14639a}from'ckeditor5/src/ui.js';function _0x40d2(_0x2d3a76,_0x211f3b){const _0x3f622a=_0x3f62();return _0x40d2=function(_0x40d2fa,_0x2ef3fc){_0x40d2fa=_0x40d2fa-0x18d;let _0x484150=_0x3f622a[_0x40d2fa];return _0x484150;},_0x40d2(_0x2d3a76,_0x211f3b);}import{IconThreeHorizontalDots as _0x3754a9,IconPin as _0x510fc9,IconCheck as _0x53cc16,IconCancel as _0x5b1b45}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1c3157,ConfirmMixin as _0x59cc9a}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x2eb1a9}from'es-toolkit/compat';import{AISpinnerView as _0x15f9c8}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x22d8b2}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x59cc9a(_0x3fdc54){['id'];static [_0x3c64b2(0x1de)]={'remove':_0x3c64b2(0x1b8),'rename':_0x3c64b2(0x1a3),'pin':_0x3c64b2(0x1e7),'unpin':_0x3c64b2(0x1c4)};[_0x3c64b2(0x1c0)];[_0x3c64b2(0x1d1)];[_0x3c64b2(0x193)];constructor(_0x17c8a7,_0x455295){const _0x542314=_0x3c64b2;super(_0x17c8a7);const _0x26c0d7=this[_0x542314(0x19e)];this[_0x542314(0x199)](_0x542314(0x1ee),!0x1),this[_0x542314(0x199)](_0x542314(0x1ae),!0x0),this[_0x542314(0x199)](_0x542314(0x19f),!!_0x455295[_0x542314(0x19f)]),this[_0x542314(0x199)](_0x542314(0x1bb),null),this['id']=_0x455295['id'];const {title:_0x12f6b8,createdAt:_0x489c39,active:_0x316ac8=!0x1}=_0x455295;this[_0x542314(0x193)]=new _0x3363c8(),this[_0x542314(0x193)][_0x542314(0x198)]=_0x12f6b8,this[_0x542314(0x193)][_0x542314(0x1ea)]({'attributes':{'class':[_0x542314(0x1eb)]}});const _0x28383b=this[_0x542314(0x1ac)](),_0x1fb4fb=this[_0x542314(0x1d4)](_0x17c8a7),_0x108508=this[_0x542314(0x1a6)](),_0x25d391=this[_0x542314(0x1df)](_0x17c8a7,_0x12f6b8),_0x1d31a7=this[_0x542314(0x1d5)](_0x17c8a7,_0x25d391),_0x30d9c8=this[_0x542314(0x1b5)](_0x17c8a7,_0x25d391);this[_0x542314(0x1c0)]=this[_0x542314(0x1ef)](),this[_0x542314(0x1d1)]=this[_0x542314(0x1ef)](),this[_0x542314(0x1d1)][_0x542314(0x1cf)](this[_0x542314(0x193)]),this[_0x542314(0x1c0)][_0x542314(0x1cf)](_0x1fb4fb),this[_0x542314(0x1c0)][_0x542314(0x1cf)](_0x108508),this['on'](_0x542314(0x1ad),(_0x2affd4,_0x54f9f7,_0x521cca)=>{const _0x515e78=_0x542314;this[_0x515e78(0x1c0)][_0x515e78(0x1b1)](),this[_0x515e78(0x1d1)][_0x515e78(0x1b1)](),_0x521cca?(this[_0x515e78(0x1c0)][_0x515e78(0x1cf)](_0x1d31a7),this[_0x515e78(0x1c0)][_0x515e78(0x1cf)](_0x30d9c8),this[_0x515e78(0x1d1)][_0x515e78(0x1cf)](_0x25d391),_0x25d391[_0x515e78(0x1d6)][_0x515e78(0x1a5)]()):(this[_0x515e78(0x1c0)][_0x515e78(0x1cf)](_0x1fb4fb),this[_0x515e78(0x1c0)][_0x515e78(0x1cf)](_0x108508),this[_0x515e78(0x1d1)][_0x515e78(0x1cf)](this[_0x515e78(0x193)]));}),this[_0x542314(0x19d)]({'tag':'li','attributes':{'class':[_0x542314(0x191),_0x316ac8?_0x542314(0x1e2):'',_0x26c0d7['if'](_0x542314(0x1ae),_0x542314(0x1a1),_0x48f672=>!_0x48f672),_0x26c0d7['if'](_0x542314(0x1ee),_0x542314(0x1e0))],'role':_0x542314(0x1ba)},'children':[{'tag':_0x542314(0x1da),'attributes':{'class':[_0x542314(0x1ec)]},'children':[{'tag':_0x542314(0x1e3),'attributes':{'class':[_0x542314(0x1e8),_0x26c0d7['if'](_0x542314(0x1bb),_0x542314(0x1a1),_0x7731d4=>!!_0x7731d4)]},'children':_0x316ac8?[_0x28383b]:[]},{'tag':_0x542314(0x1e3),'attributes':{'class':[_0x542314(0x1c1),_0x26c0d7['if'](_0x542314(0x1bb),_0x542314(0x1a1),_0x3c85ee=>!_0x3c85ee)]},'children':[this[_0x542314(0x1a0)]()]}]},{'tag':_0x542314(0x1e3),'attributes':{'class':[_0x542314(0x1cc)]},'children':[{'tag':_0x542314(0x1e3),'attributes':{'class':[_0x542314(0x197)]},'on':{'click':this[_0x542314(0x19e)]['to'](_0x542314(0x1e1))},'children':[{'tag':_0x542314(0x1e3),'attributes':{'class':[_0x542314(0x1dc)]},'children':[{'tag':_0x542314(0x1e3),'attributes':{'class':[_0x542314(0x1eb),_0x26c0d7['if'](_0x542314(0x1bb),_0x542314(0x1a1),_0x21dd39=>!!_0x21dd39)]},'children':this[_0x542314(0x1d1)]},{'tag':_0x542314(0x1e3),'attributes':{'class':[_0x542314(0x1c5),_0x26c0d7['if'](_0x542314(0x1bb),_0x542314(0x1a1),_0x257971=>!_0x257971)]},'children':[{'text':_0x26c0d7['to'](_0x542314(0x1bb),_0x3d21fa=>_0x3d21fa?_0x22d8b2(this[_0x542314(0x190)],AIChatHistoryListItemView[_0x542314(0x1de)][_0x3d21fa]):'')}]}]},{'tag':_0x542314(0x1da),'attributes':{'class':[_0x542314(0x1ab)]},'children':[_0x489c39]}]},{'tag':_0x542314(0x1e3),'attributes':{'class':[_0x542314(0x1cb)]},'children':this[_0x542314(0x1c0)]}]}]}),this['on'](_0x542314(0x1e1),()=>{const _0x510435=_0x542314;this[_0x510435(0x1ee)]||this[_0x510435(0x1c7)](_0x510435(0x192),{'id':this['id']});});}[_0x3c64b2(0x1d2)](_0x404ba8){const _0x16c337=_0x3c64b2;this[_0x16c337(0x193)][_0x16c337(0x198)]=_0x2eb1a9(_0x404ba8);}[_0x3c64b2(0x1af)](_0x5d0bf2,_0xdf71df){const _0x374874=_0x3c64b2;this[_0x374874(0x199)](_0x374874(0x1bb),_0xdf71df?_0x5d0bf2:null);}[_0x3c64b2(0x1ac)](){const _0x4b5924=_0x3c64b2,_0x583f7d=new _0x40fe9a();return _0x583f7d[_0x4b5924(0x199)]({'content':_0x53cc16}),_0x583f7d;}[_0x3c64b2(0x1d4)](_0x12448f){const _0x175d0e=_0x3c64b2,_0x5258ac=new _0x4f1c9b(_0x12448f);return _0x5258ac[_0x175d0e(0x199)]({'label':_0x22d8b2(_0x12448f,_0x175d0e(0x18f)),'icon':_0x510fc9,'withText':!0x1,'tooltip':!0x0}),_0x5258ac[_0x175d0e(0x1bc)](_0x175d0e(0x1c6))['to'](this,_0x175d0e(0x19f)),_0x5258ac['on'](_0x175d0e(0x1bf),()=>{const _0xbd6e82=_0x175d0e,_0x357ae2=!this[_0xbd6e82(0x19f)];this[_0xbd6e82(0x1c7)](_0xbd6e82(0x1aa),{'id':this['id'],'pinned':_0x357ae2});}),_0x5258ac;}[_0x3c64b2(0x1a6)](){const _0xcd295c=_0x3c64b2,_0x3b2d8c=_0x170406(this[_0xcd295c(0x190)],_0x1c3157),_0xdfa7c0=_0x3b2d8c[_0xcd295c(0x1e6)][_0xcd295c(0x1a2)];_0x3b2d8c[_0xcd295c(0x1e4)][_0xcd295c(0x199)]({'label':_0x22d8b2(this[_0xcd295c(0x190)],_0xcd295c(0x18e)),'icon':_0x3754a9}),_0x3b2d8c[_0xcd295c(0x1c9)]='sw';const _0x423272=new _0x4f1c9b(this[_0xcd295c(0x190)]);_0x423272[_0xcd295c(0x1b2)]=_0x22d8b2(this[_0xcd295c(0x190)],_0xcd295c(0x1d9)),_0x423272[_0xcd295c(0x1a4)]=!0x0,_0x423272['on'](_0xcd295c(0x1bf),()=>{const _0x35696e=_0xcd295c;this[_0x35696e(0x1ee)]=!0x0;});const _0x1cfd72=new _0x4f1c9b(this[_0xcd295c(0x190)]);_0x1cfd72[_0xcd295c(0x1b2)]=_0x22d8b2(this[_0xcd295c(0x190)],_0xcd295c(0x1a9)),_0x1cfd72[_0xcd295c(0x1a4)]=!0x0,_0x1cfd72['on'](_0xcd295c(0x1bf),()=>{const _0x266a1f=_0xcd295c;this[_0x266a1f(0x1db)](_0x22d8b2(this[_0x266a1f(0x190)],_0x266a1f(0x1d8)),this[_0x266a1f(0x1d6)])[_0x266a1f(0x1cd)](()=>{const _0x5ae0c3=_0x266a1f;this[_0x5ae0c3(0x1c7)](_0x5ae0c3(0x196),{'id':this['id']});});});const _0x2d32c4=new _0x5b5d7a(this[_0xcd295c(0x190)]),_0x5010ae=new _0x3fdc54(this[_0xcd295c(0x190)]);_0x5010ae[_0xcd295c(0x1a2)][_0xcd295c(0x1cf)](_0x423272);const _0x202315=new _0x3fdc54(this[_0xcd295c(0x190)]);return _0x202315[_0xcd295c(0x1a2)][_0xcd295c(0x1cf)](_0x1cfd72),_0x2d32c4[_0xcd295c(0x1be)][_0xcd295c(0x1b3)]([_0x5010ae,_0x202315]),_0xdfa7c0[_0xcd295c(0x1cf)](_0x2d32c4),_0x3b2d8c;}[_0x3c64b2(0x1df)](_0x286a15,_0x54d85c){const _0x460d57=_0x3c64b2,_0x120ed4=new _0x14639a(_0x286a15),_0xbf98da=_0x120ed4[_0x460d57(0x19e)];return _0x120ed4[_0x460d57(0x1c2)]=_0x54d85c,_0x120ed4[_0x460d57(0x1ea)]({'on':{'keydown':_0xbf98da['to'](_0x282776=>{const _0x6ed49e=_0x460d57;_0x6ed49e(0x1dd)==_0x282776[_0x6ed49e(0x18d)]&&this[_0x6ed49e(0x1c8)](_0x120ed4);})}}),_0x120ed4;}[_0x3c64b2(0x1d5)](_0x465f0b,_0x5e7673){const _0x5bf111=_0x3c64b2,_0x4fb3de=new _0x4f1c9b(_0x465f0b);return _0x4fb3de[_0x5bf111(0x199)]({'icon':_0x53cc16,'withText':!0x1,'tooltip':_0x22d8b2(_0x465f0b,_0x5bf111(0x194))}),_0x4fb3de[_0x5bf111(0x1ea)]({'attributes':{'class':[_0x5bf111(0x1ed)]}}),_0x4fb3de['on'](_0x5bf111(0x1bf),()=>{const _0x252e8d=_0x5bf111;this[_0x252e8d(0x1c8)](_0x5e7673);}),_0x4fb3de;}[_0x3c64b2(0x1c8)](_0x421772){const _0x196799=_0x3c64b2,_0x498959=_0x421772[_0x196799(0x1d6)][_0x196799(0x1c2)]||'';this[_0x196799(0x193)][_0x196799(0x198)]=_0x498959,this[_0x196799(0x1ee)]=!0x1,this[_0x196799(0x1c7)](_0x196799(0x19c),{'id':this['id'],'title':_0x498959});}[_0x3c64b2(0x1b5)](_0x10340a,_0x365ae6){const _0x1689e8=_0x3c64b2,_0x49c08d=new _0x4f1c9b(_0x10340a);return _0x49c08d[_0x1689e8(0x199)]({'icon':_0x5b1b45,'withText':!0x1,'tooltip':_0x22d8b2(_0x10340a,_0x1689e8(0x1b9))}),_0x49c08d[_0x1689e8(0x1ea)]({'attributes':{'class':[_0x1689e8(0x1bd)]}}),_0x49c08d['on'](_0x1689e8(0x1bf),()=>{const _0x298cc1=_0x1689e8;this[_0x298cc1(0x1ee)]=!0x1,_0x365ae6[_0x298cc1(0x1c2)]=this[_0x298cc1(0x193)][_0x298cc1(0x198)]||'',this[_0x298cc1(0x1c7)](_0x298cc1(0x1d0));}),_0x49c08d;}[_0x3c64b2(0x1a0)](){const _0x241dc5=_0x3c64b2,_0x186248=new _0x15f9c8(_0x241dc5(0x1e5));return _0x186248[_0x241dc5(0x1ae)]=!0x0,_0x186248;}[_0x3c64b2(0x1b6)](_0x18370d){const _0x28d1d2=_0x3c64b2;return this[_0x28d1d2(0x193)]&&_0x28d1d2(0x1ca)==typeof this[_0x28d1d2(0x193)][_0x28d1d2(0x198)]&&this[_0x28d1d2(0x193)][_0x28d1d2(0x198)][_0x28d1d2(0x1d3)](_0x18370d)?{'title':!0x0}:null;}[_0x3c64b2(0x1d7)](_0x102980){const _0x1782dd=_0x3c64b2;this[_0x1782dd(0x193)][_0x1782dd(0x1d7)](_0x102980);}}function _0x3f62(){const _0x28eeed=['span','showConfirm','ck-ai-chat-history__item-main-content','Enter','LOADING_LABELS','_createEditInputView','ck-ai-chat-history__item--edit','click','ck-ai-chat-history__item--active','div','buttonView','tiny','panelView','AI_CHAT_HISTORY_LOADING_PINNING','ck-ai-chat-history__item-check','75123cWTjyO','extendTemplate','ck-ai-chat-history__item-title','ck-ai-chat-history__item-check-container','ck-confirm-view-submit','isEdit','createCollection','key','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','AI_CHAT_HISTORY_PIN_BUTTON','locale','ck-ai-chat-history__item','selectConversation','_titleView','AI_CHAT_HISTORY_ACCEPT','18jkoNrQ','removeConversation','ck-ai-chat-history__item-content','text','set','1469520IrgutM','15889690RkVKrL','editConversationTitle','setTemplate','bindTemplate','pinned','_createSpinnerView','ck-hidden','children','AI_CHAT_HISTORY_LOADING_RENAMING','withText','focus','_createMenuDropdownView','84828yoiRmT','176148psoxAQ','AI_CHAT_HISTORY_REMOVE','setConversationPinned','ck-ai-chat-history__item-date','_createCheckView','change:isEdit','isVisible','updateLoadingState','9gsocph','clear','label','addMany','47359950xNbDXI','_createCancelEditButtonView','isMatching','5009532YuVcWj','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_CANCEL','listitem','loadingState','bind','ck-confirm-view-cancel','items','execute','actions','ck-ai-loader','value','8hFXVhg','AI_CHAT_HISTORY_LOADING_UNPINNING','ck-ai-loader__text','isOn','fire','_commitEditInputValue','panelPosition','string','ck-ai-chat-history__item-actions','ck-ai-chat-history__item-row','then','485SgMcuG','add','edit:cancel','mainContent','updateTitle','match','_createPinButtonView','_createAcceptEditButtonView','element','highlightText','AI_CHAT_HISTORY_REMOVE_CONFIRM','AI_CHAT_HISTORY_EDIT_NAME'];_0x3f62=function(){return _0x28eeed;};return _0x3f62();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2ce2(_0x5ba53a,_0x14176d){const _0x10b739=_0x10b7();return _0x2ce2=function(_0x2ce291,_0x1d14ca){_0x2ce291=_0x2ce291-0x115;let _0x2382d3=_0x10b739[_0x2ce291];return _0x2382d3;},_0x2ce2(_0x5ba53a,_0x14176d);}const _0x45c845=_0x2ce2;(function(_0x559f20,_0x3bb12f){const _0xc6c2d2=_0x2ce2,_0x5f0faf=_0x559f20();while(!![]){try{const _0x3dd514=-parseInt(_0xc6c2d2(0x133))/0x1+parseInt(_0xc6c2d2(0x128))/0x2+-parseInt(_0xc6c2d2(0x121))/0x3+-parseInt(_0xc6c2d2(0x11f))/0x4+-parseInt(_0xc6c2d2(0x115))/0x5*(-parseInt(_0xc6c2d2(0x12f))/0x6)+-parseInt(_0xc6c2d2(0x126))/0x7+parseInt(_0xc6c2d2(0x11a))/0x8*(parseInt(_0xc6c2d2(0x11b))/0x9);if(_0x3dd514===_0x3bb12f)break;else _0x5f0faf['push'](_0x5f0faf['shift']());}catch(_0x2151c4){_0x5f0faf['push'](_0x5f0faf['shift']());}}}(_0x10b7,0xd9387));import{ListItemView as _0x326ab9,View as _0x3e59a4,ListView as _0x3646e3}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x326ab9{[_0x45c845(0x118)];[_0x45c845(0x123)];[_0x45c845(0x134)];constructor(_0x3d613f,{title:_0x1d6727,items:_0x4fe270}){const _0x129deb=_0x45c845;super(_0x3d613f);const _0x1784be=this[_0x129deb(0x127)];this[_0x129deb(0x11e)](_0x129deb(0x116),!0x0),this[_0x129deb(0x118)]=_0x1d6727,this[_0x129deb(0x123)]=_0x4fe270;const _0x113db1=new _0x3e59a4(_0x3d613f);_0x113db1[_0x129deb(0x119)]({'tag':_0x129deb(0x125),'attributes':{'class':[_0x129deb(0x11d)]},'children':[this[_0x129deb(0x118)]]}),this[_0x129deb(0x134)]=new _0x3646e3(_0x3d613f),this[_0x129deb(0x134)][_0x129deb(0x124)][_0x129deb(0x130)](this[_0x129deb(0x123)]),this[_0x129deb(0x119)]({'tag':'li','attributes':{'class':[_0x129deb(0x131),_0x1784be['if'](_0x129deb(0x116),_0x129deb(0x117),_0x132af6=>!_0x132af6)]},'children':[_0x113db1,this[_0x129deb(0x134)]]});}[_0x45c845(0x122)](_0x2f400a){const _0x42a5b2=_0x45c845,_0x5a8bfc=this[_0x42a5b2(0x123)][_0x42a5b2(0x12d)];let _0x508504=0x0;for(const _0x207e55 of this[_0x42a5b2(0x123)]){if(_0x2f400a){const _0x2263a5=_0x207e55[_0x42a5b2(0x12c)](_0x2f400a);_0x207e55[_0x42a5b2(0x116)]=!!_0x2263a5,_0x207e55[_0x42a5b2(0x12b)](_0x2f400a);}else _0x207e55[_0x42a5b2(0x116)]=!0x0,_0x207e55[_0x42a5b2(0x12b)](null);_0x207e55[_0x42a5b2(0x116)]&&_0x508504++;}return this[_0x42a5b2(0x116)]=_0x508504>0x0,{'resultsCount':_0x508504,'totalItemsCount':_0x5a8bfc};}[_0x45c845(0x120)](_0x183b89){const _0x2bac20=_0x45c845;return this[_0x2bac20(0x123)][_0x2bac20(0x132)](_0x1af0b1=>_0x1af0b1['id']===_0x183b89);}[_0x45c845(0x129)](_0x1fff21){const _0x11c40d=_0x45c845,_0x30af04=this[_0x11c40d(0x123)][_0x11c40d(0x11c)](_0x1fff21);-0x1!==_0x30af04&&(this[_0x11c40d(0x123)][_0x11c40d(0x12a)](_0x30af04,0x1),this[_0x11c40d(0x134)][_0x11c40d(0x124)][_0x11c40d(0x12e)](_0x1fff21));}}function _0x10b7(){const _0x7760e9=['splice','highlightText','isMatching','length','remove','312ZkQiBF','addMany','ck-ai-chat-history__section','find','637464PZrxpd','_itemsListView','7335RQbqPU','isVisible','ck-hidden','title','setTemplate','4312iEfXdl','32355NJbaFN','indexOf','ck-ai-chat-history__section-title','set','1560964aXUSbz','getItem','2737179QFhbXt','filter','itemsViews','items','div','1398950avyMcZ','bindTemplate','2031388MRFedN','removeItem'];_0x10b7=function(){return _0x7760e9;};return _0x10b7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x239acc=_0x2e24;(function(_0x1b4256,_0x1e4fdb){const _0x523527=_0x2e24,_0x162763=_0x1b4256();while(!![]){try{const _0x4134e9=parseInt(_0x523527(0x1dd))/0x1+-parseInt(_0x523527(0x1e4))/0x2*(parseInt(_0x523527(0x1e2))/0x3)+-parseInt(_0x523527(0x1e9))/0x4*(parseInt(_0x523527(0x1ec))/0x5)+parseInt(_0x523527(0x1e3))/0x6*(-parseInt(_0x523527(0x1df))/0x7)+parseInt(_0x523527(0x1ee))/0x8*(parseInt(_0x523527(0x1e0))/0x9)+-parseInt(_0x523527(0x1e5))/0xa*(parseInt(_0x523527(0x1e6))/0xb)+parseInt(_0x523527(0x1de))/0xc;if(_0x4134e9===_0x1e4fdb)break;else _0x162763['push'](_0x162763['shift']());}catch(_0x4fd6c5){_0x162763['push'](_0x162763['shift']());}}}(_0x1ff3,0xe289a));function _0x2e24(_0xb18e4c,_0x51233d){const _0x1ff356=_0x1ff3();return _0x2e24=function(_0x2e24ba,_0x22c8b6){_0x2e24ba=_0x2e24ba-0x1dd;let _0x1aaa3f=_0x1ff356[_0x2e24ba];return _0x1aaa3f;},_0x2e24(_0xb18e4c,_0x51233d);}import{ListView as _0x5aa95d}from'ckeditor5/src/ui.js';function _0x1ff3(){const _0x4f5e75=['sections','98526xgHPxu','42TukUAj','10jTUbvU','30MHKBAo','6224163IKkxgE','filter','extendTemplate','24gmmxTH','addMany','ck-ai-chat-history__sections','972955haOowW','items','8OhZgih','1307124FYbpUr','32127264dOKOvt','587342DCjDWq','5040891zaQPYB'];_0x1ff3=function(){return _0x4f5e75;};return _0x1ff3();}export class AIChatHistorySectionListView extends _0x5aa95d{[_0x239acc(0x1e1)];constructor(_0x1641e4,_0x169409){const _0x36ecce=_0x239acc;super(_0x1641e4),this[_0x36ecce(0x1e1)]=_0x169409,this[_0x36ecce(0x1ed)][_0x36ecce(0x1ea)](this[_0x36ecce(0x1e1)]),this[_0x36ecce(0x1e8)]({'attributes':{'class':[_0x36ecce(0x1eb)]}});}[_0x239acc(0x1e7)](_0x4d7dd6){const _0x246c14=_0x239acc;let _0xbb5e7e=0x0,_0x19ee87=0x0;for(const _0x141689 of this[_0x246c14(0x1e1)]){const {resultsCount:_0x34f908,totalItemsCount:_0xe0d17d}=_0x141689[_0x246c14(0x1e7)](_0x4d7dd6);_0xbb5e7e+=_0x34f908,_0x19ee87+=_0xe0d17d;}return{'resultsCount':_0xbb5e7e,'totalItemsCount':_0x19ee87};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4a8e86=_0x5521;(function(_0x2dc57f,_0x3bf9cd){const _0x592c62=_0x5521,_0x1abf91=_0x2dc57f();while(!![]){try{const _0x57fbef=parseInt(_0x592c62(0xa3))/0x1*(-parseInt(_0x592c62(0xb1))/0x2)+parseInt(_0x592c62(0x8c))/0x3*(parseInt(_0x592c62(0x91))/0x4)+-parseInt(_0x592c62(0xc0))/0x5*(parseInt(_0x592c62(0xa4))/0x6)+parseInt(_0x592c62(0xba))/0x7*(-parseInt(_0x592c62(0x7b))/0x8)+-parseInt(_0x592c62(0xa8))/0x9+parseInt(_0x592c62(0x93))/0xa*(-parseInt(_0x592c62(0x99))/0xb)+parseInt(_0x592c62(0x7a))/0xc;if(_0x57fbef===_0x3bf9cd)break;else _0x1abf91['push'](_0x1abf91['shift']());}catch(_0x1f4adf){_0x1abf91['push'](_0x1abf91['shift']());}}}(_0x5290,0x35e1d));import{View as _0x26a1d7,SearchTextView as _0x12e32d,FormHeaderView as _0x286335,ButtonView as _0x3c901a}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3d7fb4,IconCancel as _0x5533,IconPlus as _0x230159}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x110518}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x1362e7}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x4fe80c}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3efdf1}from'../aichathistoryui.js';function _0x5290(){const _0x495380=['fieldView','ck-ai-notification_error__dismiss-button','_refreshSearch','8913072uHSrnB','8SLRhjx','render','ck-ai-chat-history__empty','change:isLoading','_createListItemViews','ck-rounded-corners','bindTemplate','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-notification','isSearchViewVisible','skeletonView','length','_createErrorView','AI_CHAT_LABEL_NEW_CHAT','items','sectionsView','updateHistoryItemsWithCategories','114oYzPeC','updateTitle','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','resizeButton','ltr','13036bBuMdw','AI_CHAT_HISTORY_EMPTY_MESSAGE','337580mHhzWK','_createSearchView','execute','search','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','ck-ai-header\x20ck-ai-header_history','44zJqvEp','openChat','ck-ai-chat__start-conversation','clear','isMaximized','element','mainErrorView','_updateViewVisibility','value','_createSkeletonView','1IDGFat','426aevihY','ck-hidden','set','delegate','147537nrAVDn','isMainErrorViewVisible','setTemplate','aiHistory','searchView','getItem','itemsViews','isLoading','hasItems','743490aHbwBq','updateLoadingState','addMany','isEmptyViewVisible','ck-ai-notification_error','removeHistoryItem','ck-ai-chat-history__content','children','updateItemLoadingState','435148SxSzEb','remove','div','change:errorMessage','errorMessage','some','4265ncYItT','add','title','updateItemTitle','_createEmptyStateView','isVisible','queryView','ck-ai-chat-history','extendTemplate','push','ck-reset_all','locale','AI_CHAT_HISTORY_HEADING','removeItem','ck-ai-chat-history__empty-message','emptyView','bind','sections','splice','change:hasItems','indexOf','fire'];_0x5290=function(){return _0x495380;};return _0x5290();}import{AISkeletonView as _0x2f6b72,SKELETON_DEFINITIONS as _0x9f336}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x12dfda}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x4a373c}from'../../aicore/utils/common-translations.js';function _0x5521(_0xec111b,_0x53eb3b){const _0x5290df=_0x5290();return _0x5521=function(_0x552132,_0x3c7955){_0x552132=_0x552132-0x65;let _0xedddea=_0x5290df[_0x552132];return _0xedddea;},_0x5521(_0xec111b,_0x53eb3b);}export class AIChatHistoryView extends _0x26a1d7{[_0x4a8e86(0xac)];[_0x4a8e86(0x9f)];[_0x4a8e86(0x85)];[_0x4a8e86(0x70)];[_0x4a8e86(0x8a)];[_0x4a8e86(0x8f)];constructor(_0x1ec52e,_0x222e8e){const _0x1f7bcd=_0x4a8e86;super(_0x1ec52e),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0xb0),!0x1),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0xaf),!0x0),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0xbe),''),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0x9d),!0x1),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0x84),!0x1),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0xb4),!0x1),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0xa9),!0x1);const _0x5c0a20=new _0x286335(_0x1ec52e,{'label':_0x4a373c(_0x1ec52e,_0x1f7bcd(0x6d)),'icon':_0x3d7fb4,'class':_0x1f7bcd(0x98)});_0x222e8e&&(this[_0x1f7bcd(0x8f)]=_0x12dfda(_0x1ec52e,this),_0x5c0a20[_0x1f7bcd(0xb8)][_0x1f7bcd(0xc1)](this[_0x1f7bcd(0x8f)])),this[_0x1f7bcd(0x8a)]=new _0x110518(_0x1ec52e,[]),this[_0x1f7bcd(0x8a)][_0x1f7bcd(0xa7)](..._0x3efdf1)['to'](this),this[_0x1f7bcd(0x9f)]=this[_0x1f7bcd(0x87)](),this[_0x1f7bcd(0x85)]=this[_0x1f7bcd(0xa2)](),this[_0x1f7bcd(0x70)]=this[_0x1f7bcd(0x65)](),this[_0x1f7bcd(0xac)]=this[_0x1f7bcd(0x94)](),this[_0x1f7bcd(0x9f)][_0x1f7bcd(0x69)]({'attributes':{'class':[this[_0x1f7bcd(0x81)]['if'](_0x1f7bcd(0xa9),_0x1f7bcd(0xa5),_0x14e196=>!_0x14e196)]}}),this['on'](_0x1f7bcd(0x7e),()=>this[_0x1f7bcd(0xa0)]()),this['on'](_0x1f7bcd(0x74),()=>this[_0x1f7bcd(0xa0)]()),this['on'](_0x1f7bcd(0xbd),()=>this[_0x1f7bcd(0xa0)]()),this[_0x1f7bcd(0xaa)]({'tag':_0x1f7bcd(0xbc),'attributes':{'class':['ck',_0x1f7bcd(0x6b),_0x1f7bcd(0x68),_0x1f7bcd(0x80)],'dir':_0x1f7bcd(0x90)},'children':[_0x5c0a20,{'tag':_0x1f7bcd(0xbc),'attributes':{'class':[_0x1f7bcd(0xb7)]},'children':[this[_0x1f7bcd(0x85)],this[_0x1f7bcd(0x9f)],this[_0x1f7bcd(0x70)],this[_0x1f7bcd(0xac)]]}]});}[_0x4a8e86(0xa0)](){const _0x52fb22=_0x4a8e86;this[_0x52fb22(0x84)]=!this[_0x52fb22(0xaf)]&&this[_0x52fb22(0xb0)],this[_0x52fb22(0xb4)]=!this[_0x52fb22(0xaf)]&&!this[_0x52fb22(0xb0)]&&!this[_0x52fb22(0xbe)],this[_0x52fb22(0xa9)]=!this[_0x52fb22(0x84)]&&!!this[_0x52fb22(0xbe)];}[_0x4a8e86(0x94)](){const _0x2a7c94=_0x4a8e86,_0x478d51=new _0x12e32d(this[_0x2a7c94(0x6c)],{'filteredView':this[_0x2a7c94(0x8a)],'queryView':{'label':_0x4a373c(this[_0x2a7c94(0x6c)],_0x2a7c94(0x82))},'infoView':{'text':{'notFound':{'primary':_0x427e34=>_0x4a373c(this[_0x2a7c94(0x6c)],_0x2a7c94(0x97),_0x427e34),'secondary':_0x4a373c(this[_0x2a7c94(0x6c)],_0x2a7c94(0x8e))}}}}),_0x4d10a3=this[_0x2a7c94(0x87)]();return _0x4d10a3[_0x2a7c94(0x69)]({'attributes':{'class':[this[_0x2a7c94(0x81)]['if'](_0x2a7c94(0xbe),_0x2a7c94(0xa5),_0xd77ae9=>!_0xd77ae9)]}}),_0x478d51['on'](_0x2a7c94(0x7c),()=>{const _0x5afd37=_0x2a7c94;_0x478d51[_0x5afd37(0xb8)][_0x5afd37(0xc1)](_0x4d10a3,0x1);}),_0x478d51[_0x2a7c94(0x69)]({'attributes':{'class':[this[_0x2a7c94(0x81)]['if'](_0x2a7c94(0x84),_0x2a7c94(0xa5),_0x2a3259=>!_0x2a3259)]}}),_0x478d51;}[_0x4a8e86(0xa2)](){const _0x3491ae=_0x4a8e86,_0x214580=new _0x2f6b72(this[_0x3491ae(0x6c)],_0x9f336[_0x3491ae(0xab)]);return _0x214580[_0x3491ae(0x69)]({'attributes':{'class':[this[_0x3491ae(0x81)]['if'](_0x3491ae(0xaf),_0x3491ae(0xa5),_0x4a7a3a=>!_0x4a7a3a)]}}),_0x214580;}[_0x4a8e86(0x87)](){const _0x2b1370=_0x4a8e86,_0xc3b13f=new _0x26a1d7(this[_0x2b1370(0x6c)]),_0x4ff729=new _0x3c901a(this[_0x2b1370(0x6c)]);_0x4ff729[_0x2b1370(0xa6)]({'withText':!0x1,'icon':_0x5533,'class':_0x2b1370(0x78)}),_0x4ff729[_0x2b1370(0x71)](_0x2b1370(0x66))['to'](this,_0x2b1370(0xb0),_0x41a706=>!!_0x41a706),_0x4ff729['on'](_0x2b1370(0x95),()=>{const _0x5e4896=_0x2b1370;this[_0x5e4896(0xbe)]='';});const _0x1f8e8d=this[_0x2b1370(0x81)];return _0xc3b13f[_0x2b1370(0xaa)]({'tag':_0x2b1370(0xbc),'attributes':{'class':['ck',_0x2b1370(0x83),_0x2b1370(0xb5)]},'children':[{'tag':'p','children':[{'text':_0x1f8e8d['to'](_0x2b1370(0xbe))}]},_0x4ff729]}),_0xc3b13f;}[_0x4a8e86(0x65)](){const _0x163e10=_0x4a8e86,_0x9ebdff=new _0x3c901a(this[_0x163e10(0x6c)]);_0x9ebdff[_0x163e10(0xa6)]({'label':_0x4a373c(this[_0x163e10(0x6c)],_0x163e10(0x88)),'withText':!0x0,'icon':_0x230159,'class':_0x163e10(0x9b)}),_0x9ebdff['on'](_0x163e10(0x95),()=>{const _0x14055f=_0x163e10;this[_0x14055f(0x76)](_0x14055f(0x9a));});const _0x2fd61c=new _0x26a1d7(this[_0x163e10(0x6c)]);return _0x2fd61c[_0x163e10(0xaa)]({'tag':_0x163e10(0xbc),'attributes':{'class':[_0x163e10(0x7d),this[_0x163e10(0x81)]['if'](_0x163e10(0xb4),_0x163e10(0xa5),_0x287e4f=>!_0x287e4f)]},'children':[{'tag':'p','attributes':{'class':[_0x163e10(0x6f)]},'children':[_0x4a373c(this[_0x163e10(0x6c)],_0x163e10(0x92))]},_0x9ebdff]}),_0x2fd61c;}[_0x4a8e86(0x7f)](_0x55674d,_0x5b3559){const _0x1ba17d=_0x4a8e86,_0x14b4a9=[];for(const _0x5604bd of _0x55674d){const _0x4dbc72=new _0x4fe80c(_0x5b3559,_0x5604bd);_0x4dbc72[_0x1ba17d(0xa7)](..._0x3efdf1)['to'](this),_0x14b4a9[_0x1ba17d(0x6a)](_0x4dbc72);}return _0x14b4a9;}[_0x4a8e86(0x8b)](_0xc8de70){const _0x33c420=_0x4a8e86,_0x415f72=this[_0x33c420(0x6c)]||'en',_0x1c2c6b=[];for(const _0x19ad1a of _0xc8de70){const _0x2d8119=this[_0x33c420(0x7f)](_0x19ad1a[_0x33c420(0x89)],_0x415f72);_0x1c2c6b[_0x33c420(0x6a)](new _0x1362e7(_0x415f72,{'title':_0x19ad1a[_0x33c420(0xc2)],'items':_0x2d8119}));}this[_0x33c420(0x8a)][_0x33c420(0x72)]=_0x1c2c6b,this[_0x33c420(0x8a)][_0x33c420(0x89)][_0x33c420(0x9c)](),this[_0x33c420(0x8a)][_0x33c420(0x89)][_0x33c420(0xb3)](_0x1c2c6b),this[_0x33c420(0xb0)]=_0xc8de70[_0x33c420(0xbf)](_0x5b0dc2=>_0x5b0dc2[_0x33c420(0x89)][_0x33c420(0x86)]>0x0),this[_0x33c420(0x79)]();}[_0x4a8e86(0xb6)](_0x277748){const _0x23a434=_0x4a8e86;for(const _0x5e0bff of this[_0x23a434(0x8a)][_0x23a434(0x72)]){const _0xf51b13=_0x5e0bff[_0x23a434(0xad)](_0x277748);if(_0xf51b13){if(_0x5e0bff[_0x23a434(0x6e)](_0xf51b13),0x0===_0x5e0bff[_0x23a434(0xae)][_0x23a434(0x86)]){const _0xc87dba=this[_0x23a434(0x8a)][_0x23a434(0x72)][_0x23a434(0x75)](_0x5e0bff);-0x1!==_0xc87dba&&(this[_0x23a434(0x8a)][_0x23a434(0x72)][_0x23a434(0x73)](_0xc87dba,0x1),this[_0x23a434(0x8a)][_0x23a434(0x89)][_0x23a434(0xbb)](_0x5e0bff));}this[_0x23a434(0xb0)]=this[_0x23a434(0x8a)][_0x23a434(0x72)][_0x23a434(0x86)]>0x0,this[_0x23a434(0x79)]();break;}}}[_0x4a8e86(0xc3)](_0x3d3083,_0x300457){const _0x2ddd26=_0x4a8e86;for(const _0x2a7551 of this[_0x2ddd26(0x8a)][_0x2ddd26(0x72)]){const _0x44d3e9=_0x2a7551[_0x2ddd26(0xad)](_0x3d3083);if(_0x44d3e9){_0x44d3e9[_0x2ddd26(0x8d)](_0x300457);break;}}}[_0x4a8e86(0xb9)](_0x1d14ab,_0x35f2d0,_0x51ca28){const _0x496495=_0x4a8e86;for(const _0x5e8c19 of this[_0x496495(0x8a)][_0x496495(0x72)]){const _0x2370ba=_0x5e8c19[_0x496495(0xad)](_0x1d14ab);if(_0x2370ba){_0x2370ba[_0x496495(0xb2)](_0x35f2d0,_0x51ca28);break;}}}[_0x4a8e86(0x79)](){const _0x386ab7=_0x4a8e86;if(this[_0x386ab7(0xb0)]){const _0x23321f=this[_0x386ab7(0xac)][_0x386ab7(0x67)][_0x386ab7(0x77)]?.[_0x386ab7(0x9e)]?.[_0x386ab7(0xa1)]||'';this[_0x386ab7(0xac)][_0x386ab7(0x96)](_0x23321f);}}}
|
|
23
|
+
const _0x1afeb2=_0xf453;(function(_0x30b3ae,_0x5415b1){const _0x1a1e81=_0xf453,_0x306015=_0x30b3ae();while(!![]){try{const _0x212c78=-parseInt(_0x1a1e81(0x189))/0x1*(parseInt(_0x1a1e81(0x179))/0x2)+parseInt(_0x1a1e81(0x159))/0x3*(-parseInt(_0x1a1e81(0x15e))/0x4)+parseInt(_0x1a1e81(0x154))/0x5*(parseInt(_0x1a1e81(0x170))/0x6)+parseInt(_0x1a1e81(0x19d))/0x7*(-parseInt(_0x1a1e81(0x197))/0x8)+parseInt(_0x1a1e81(0x16b))/0x9*(parseInt(_0x1a1e81(0x177))/0xa)+-parseInt(_0x1a1e81(0x181))/0xb+parseInt(_0x1a1e81(0x151))/0xc*(parseInt(_0x1a1e81(0x1a4))/0xd);if(_0x212c78===_0x5415b1)break;else _0x306015['push'](_0x306015['shift']());}catch(_0x5d21cf){_0x306015['push'](_0x306015['shift']());}}}(_0xc547,0x1fe34));import{View as _0xe98905,SearchTextView as _0x4a9aa2,FormHeaderView as _0xc73299,ButtonView as _0x45ce3a}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x38623b,IconCancel as _0x5eec41,IconPlus as _0x364955}from'ckeditor5/src/icons.js';function _0xf453(_0x315e86,_0x3dd474){const _0xc547a9=_0xc547();return _0xf453=function(_0xf4530,_0x1093f0){_0xf4530=_0xf4530-0x14f;let _0x22c71b=_0xc547a9[_0xf4530];return _0x22c71b;},_0xf453(_0x315e86,_0x3dd474);}import{AIChatHistorySectionListView as _0x5a0fac}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x2e2054}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x514225}from'./aichathistorylistitemview.js';function _0xc547(){const _0x35a80b=['sections','38653TBmNsi','updateTitle','items','search','isVisible','change:isLoading','updateLoadingState','extendTemplate','openChat','_createListItemViews','isEmptyViewVisible','resizeButton','_createEmptyStateView','title','3632AzQrim','addMany','AI_CHAT_HISTORY_SEARCH_LABEL','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-chat-history__empty','render','875ZFgjQZ','some','removeItem','isSearchViewVisible','div','fire','length','52143oTyaJq','locale','ck-ai-chat-history__empty-message','add','fieldView','set','value','ck-ai-chat__start-conversation','change:hasItems','clear','isLoading','push','AI_CHAT_HISTORY_HEADING','1668pcEffs','_createSkeletonView','ck-ai-chat-history','5LtFFke','itemsViews','aiHistory','isMaximized','removeHistoryItem','414lwAOop','_createErrorView','children','_updateViewVisibility','queryView','5832Zrmklh','ck-ai-chat-history__content','ck-ai-header\x20ck-ai-header_history','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:errorMessage','_refreshSearch','indexOf','delegate','errorMessage','sectionsView','ck-ai-notification','emptyView','ltr','126ppwslW','execute','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','bind','updateItemLoadingState','315294NRqsEN','splice','ck-reset_all','mainErrorView','_createSearchView','isMainErrorViewVisible','hasItems','54490ugPfuq','getItem','4ncOvBQ','ck-hidden','ck-rounded-corners','bindTemplate','remove','element','updateItemTitle','AI_CHAT_LABEL_NEW_CHAT','2425412GXVFnJ','setTemplate','skeletonView','updateHistoryItemsWithCategories','ck-ai-notification_error','searchView','ck-ai-notification_error__dismiss-button'];_0xc547=function(){return _0x35a80b;};return _0xc547();}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2df4e1}from'../aichathistoryui.js';import{AISkeletonView as _0x2e814b,SKELETON_DEFINITIONS as _0x51fd80}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x2cd12d}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x261629}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0xe98905{[_0x1afeb2(0x186)];[_0x1afeb2(0x173)];[_0x1afeb2(0x183)];[_0x1afeb2(0x169)];[_0x1afeb2(0x167)];[_0x1afeb2(0x194)];constructor(_0x4960c8,_0x32d5eb){const _0x1ad949=_0x1afeb2;super(_0x4960c8),this[_0x1ad949(0x1a9)](_0x1ad949(0x176),!0x1),this[_0x1ad949(0x1a9)](_0x1ad949(0x1ae),!0x0),this[_0x1ad949(0x1a9)](_0x1ad949(0x166),''),this[_0x1ad949(0x1a9)](_0x1ad949(0x157),!0x1),this[_0x1ad949(0x1a9)](_0x1ad949(0x1a0),!0x1),this[_0x1ad949(0x1a9)](_0x1ad949(0x193),!0x1),this[_0x1ad949(0x1a9)](_0x1ad949(0x175),!0x1);const _0x1b6f68=new _0xc73299(_0x4960c8,{'label':_0x261629(_0x4960c8,_0x1ad949(0x150)),'icon':_0x38623b,'class':_0x1ad949(0x160)});_0x32d5eb&&(this[_0x1ad949(0x194)]=_0x2cd12d(_0x4960c8,this),_0x1b6f68[_0x1ad949(0x15b)][_0x1ad949(0x1a7)](this[_0x1ad949(0x194)])),this[_0x1ad949(0x167)]=new _0x5a0fac(_0x4960c8,[]),this[_0x1ad949(0x167)][_0x1ad949(0x165)](..._0x2df4e1)['to'](this),this[_0x1ad949(0x173)]=this[_0x1ad949(0x15a)](),this[_0x1ad949(0x183)]=this[_0x1ad949(0x152)](),this[_0x1ad949(0x169)]=this[_0x1ad949(0x195)](),this[_0x1ad949(0x186)]=this[_0x1ad949(0x174)](),this[_0x1ad949(0x173)][_0x1ad949(0x190)]({'attributes':{'class':[this[_0x1ad949(0x17c)]['if'](_0x1ad949(0x175),_0x1ad949(0x17a),_0x3a4fab=>!_0x3a4fab)]}}),this['on'](_0x1ad949(0x18e),()=>this[_0x1ad949(0x15c)]()),this['on'](_0x1ad949(0x1ac),()=>this[_0x1ad949(0x15c)]()),this['on'](_0x1ad949(0x162),()=>this[_0x1ad949(0x15c)]()),this[_0x1ad949(0x182)]({'tag':_0x1ad949(0x1a1),'attributes':{'class':['ck',_0x1ad949(0x172),_0x1ad949(0x153),_0x1ad949(0x17b)],'dir':_0x1ad949(0x16a)},'children':[_0x1b6f68,{'tag':_0x1ad949(0x1a1),'attributes':{'class':[_0x1ad949(0x15f)]},'children':[this[_0x1ad949(0x183)],this[_0x1ad949(0x173)],this[_0x1ad949(0x169)],this[_0x1ad949(0x186)]]}]});}[_0x1afeb2(0x15c)](){const _0x53795c=_0x1afeb2;this[_0x53795c(0x1a0)]=!this[_0x53795c(0x1ae)]&&this[_0x53795c(0x176)],this[_0x53795c(0x193)]=!this[_0x53795c(0x1ae)]&&!this[_0x53795c(0x176)]&&!this[_0x53795c(0x166)],this[_0x53795c(0x175)]=!this[_0x53795c(0x1a0)]&&!!this[_0x53795c(0x166)];}[_0x1afeb2(0x174)](){const _0x91ba39=_0x1afeb2,_0x37a897=new _0x4a9aa2(this[_0x91ba39(0x1a5)],{'filteredView':this[_0x91ba39(0x167)],'queryView':{'label':_0x261629(this[_0x91ba39(0x1a5)],_0x91ba39(0x199))},'infoView':{'text':{'notFound':{'primary':_0x5c647a=>_0x261629(this[_0x91ba39(0x1a5)],_0x91ba39(0x161),_0x5c647a),'secondary':_0x261629(this[_0x91ba39(0x1a5)],_0x91ba39(0x16d))}}}}),_0x380a0f=this[_0x91ba39(0x15a)]();return _0x380a0f[_0x91ba39(0x190)]({'attributes':{'class':[this[_0x91ba39(0x17c)]['if'](_0x91ba39(0x166),_0x91ba39(0x17a),_0x2864e6=>!_0x2864e6)]}}),_0x37a897['on'](_0x91ba39(0x19c),()=>{const _0x5a20f4=_0x91ba39;_0x37a897[_0x5a20f4(0x15b)][_0x5a20f4(0x1a7)](_0x380a0f,0x1);}),_0x37a897[_0x91ba39(0x190)]({'attributes':{'class':[this[_0x91ba39(0x17c)]['if'](_0x91ba39(0x1a0),_0x91ba39(0x17a),_0x5b4815=>!_0x5b4815)]}}),_0x37a897;}[_0x1afeb2(0x152)](){const _0x1db218=_0x1afeb2,_0x113211=new _0x2e814b(this[_0x1db218(0x1a5)],_0x51fd80[_0x1db218(0x156)]);return _0x113211[_0x1db218(0x190)]({'attributes':{'class':[this[_0x1db218(0x17c)]['if'](_0x1db218(0x1ae),_0x1db218(0x17a),_0x4b9e8d=>!_0x4b9e8d)]}}),_0x113211;}[_0x1afeb2(0x15a)](){const _0x3fec94=_0x1afeb2,_0x52be2d=new _0xe98905(this[_0x3fec94(0x1a5)]),_0x35dcc4=new _0x45ce3a(this[_0x3fec94(0x1a5)]);_0x35dcc4[_0x3fec94(0x1a9)]({'withText':!0x1,'icon':_0x5eec41,'class':_0x3fec94(0x187)}),_0x35dcc4[_0x3fec94(0x16e)](_0x3fec94(0x18d))['to'](this,_0x3fec94(0x176),_0x458f65=>!!_0x458f65),_0x35dcc4['on'](_0x3fec94(0x16c),()=>{const _0x5980f5=_0x3fec94;this[_0x5980f5(0x166)]='';});const _0x73bf50=this[_0x3fec94(0x17c)];return _0x52be2d[_0x3fec94(0x182)]({'tag':_0x3fec94(0x1a1),'attributes':{'class':['ck',_0x3fec94(0x168),_0x3fec94(0x185)]},'children':[{'tag':'p','children':[{'text':_0x73bf50['to'](_0x3fec94(0x166))}]},_0x35dcc4]}),_0x52be2d;}[_0x1afeb2(0x195)](){const _0x2aff06=_0x1afeb2,_0x12792f=new _0x45ce3a(this[_0x2aff06(0x1a5)]);_0x12792f[_0x2aff06(0x1a9)]({'label':_0x261629(this[_0x2aff06(0x1a5)],_0x2aff06(0x180)),'withText':!0x0,'icon':_0x364955,'class':_0x2aff06(0x1ab)}),_0x12792f['on'](_0x2aff06(0x16c),()=>{const _0x5a90e1=_0x2aff06;this[_0x5a90e1(0x1a2)](_0x5a90e1(0x191));});const _0x24ff49=new _0xe98905(this[_0x2aff06(0x1a5)]);return _0x24ff49[_0x2aff06(0x182)]({'tag':_0x2aff06(0x1a1),'attributes':{'class':[_0x2aff06(0x19b),this[_0x2aff06(0x17c)]['if'](_0x2aff06(0x193),_0x2aff06(0x17a),_0x2c612c=>!_0x2c612c)]},'children':[{'tag':'p','attributes':{'class':[_0x2aff06(0x1a6)]},'children':[_0x261629(this[_0x2aff06(0x1a5)],_0x2aff06(0x19a))]},_0x12792f]}),_0x24ff49;}[_0x1afeb2(0x192)](_0x850757,_0x470691){const _0x3eaf3c=_0x1afeb2,_0xb422b3=[];for(const _0xa02c49 of _0x850757){const _0x42ceeb=new _0x514225(_0x470691,_0xa02c49);_0x42ceeb[_0x3eaf3c(0x165)](..._0x2df4e1)['to'](this),_0xb422b3[_0x3eaf3c(0x14f)](_0x42ceeb);}return _0xb422b3;}[_0x1afeb2(0x184)](_0x2e1e4c){const _0x125c0e=_0x1afeb2,_0xc4eb96=this[_0x125c0e(0x1a5)]||'en',_0x17a760=[];for(const _0x4da691 of _0x2e1e4c){const _0x149e7a=this[_0x125c0e(0x192)](_0x4da691[_0x125c0e(0x18b)],_0xc4eb96);_0x17a760[_0x125c0e(0x14f)](new _0x2e2054(_0xc4eb96,{'title':_0x4da691[_0x125c0e(0x196)],'items':_0x149e7a}));}this[_0x125c0e(0x167)][_0x125c0e(0x188)]=_0x17a760,this[_0x125c0e(0x167)][_0x125c0e(0x18b)][_0x125c0e(0x1ad)](),this[_0x125c0e(0x167)][_0x125c0e(0x18b)][_0x125c0e(0x198)](_0x17a760),this[_0x125c0e(0x176)]=_0x2e1e4c[_0x125c0e(0x19e)](_0x433aea=>_0x433aea[_0x125c0e(0x18b)][_0x125c0e(0x1a3)]>0x0),this[_0x125c0e(0x163)]();}[_0x1afeb2(0x158)](_0x7a07ef){const _0x1addc8=_0x1afeb2;for(const _0x51a558 of this[_0x1addc8(0x167)][_0x1addc8(0x188)]){const _0x469358=_0x51a558[_0x1addc8(0x178)](_0x7a07ef);if(_0x469358){if(_0x51a558[_0x1addc8(0x19f)](_0x469358),0x0===_0x51a558[_0x1addc8(0x155)][_0x1addc8(0x1a3)]){const _0x5a0e99=this[_0x1addc8(0x167)][_0x1addc8(0x188)][_0x1addc8(0x164)](_0x51a558);-0x1!==_0x5a0e99&&(this[_0x1addc8(0x167)][_0x1addc8(0x188)][_0x1addc8(0x171)](_0x5a0e99,0x1),this[_0x1addc8(0x167)][_0x1addc8(0x18b)][_0x1addc8(0x17d)](_0x51a558));}this[_0x1addc8(0x176)]=this[_0x1addc8(0x167)][_0x1addc8(0x188)][_0x1addc8(0x1a3)]>0x0,this[_0x1addc8(0x163)]();break;}}}[_0x1afeb2(0x17f)](_0x16a1eb,_0x55befa){const _0x1d1f2c=_0x1afeb2;for(const _0x4a4679 of this[_0x1d1f2c(0x167)][_0x1d1f2c(0x188)]){const _0x4153b4=_0x4a4679[_0x1d1f2c(0x178)](_0x16a1eb);if(_0x4153b4){_0x4153b4[_0x1d1f2c(0x18a)](_0x55befa);break;}}}[_0x1afeb2(0x16f)](_0xabf7ad,_0x53f5d5,_0x88038d){const _0x43e430=_0x1afeb2;for(const _0x37ce70 of this[_0x43e430(0x167)][_0x43e430(0x188)]){const _0xc3b1fc=_0x37ce70[_0x43e430(0x178)](_0xabf7ad);if(_0xc3b1fc){_0xc3b1fc[_0x43e430(0x18f)](_0x53f5d5,_0x88038d);break;}}}[_0x1afeb2(0x163)](){const _0x1d3b73=_0x1afeb2;if(this[_0x1d3b73(0x176)]){const _0x5aaa12=this[_0x1d3b73(0x186)][_0x1d3b73(0x15d)][_0x1d3b73(0x1a8)]?.[_0x1d3b73(0x17e)]?.[_0x1d3b73(0x1aa)]||'';this[_0x1d3b73(0x186)][_0x1d3b73(0x18c)](_0x5aaa12);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58a4a1=_0x26dd;(function(_0x4ed4c4,_0x3cc172){const _0x48338f=_0x26dd,_0x3f68fe=_0x4ed4c4();while(!![]){try{const _0x1754ef=parseInt(_0x48338f(0xfd))/0x1+-parseInt(_0x48338f(0xd5))/0x2+parseInt(_0x48338f(0xe5))/0x3+parseInt(_0x48338f(0xf1))/0x4+parseInt(_0x48338f(0x101))/0x5+parseInt(_0x48338f(0xec))/0x6+-parseInt(_0x48338f(0xef))/0x7*(parseInt(_0x48338f(0xdc))/0x8);if(_0x1754ef===_0x3cc172)break;else _0x3f68fe['push'](_0x3f68fe['shift']());}catch(_0x505174){_0x3f68fe['push'](_0x3f68fe['shift']());}}}(_0x51fe,0xb7f46));import{AIChatUI as _0x175e19}from'../aichat/aichatui.js';import{ContextPlugin as _0x39187c}from'ckeditor5/src/core.js';function _0x51fe(){const _0x14bda0=['check','source','_shortcuts','locale','find','destroy','658337cFQfhI','getDefault','fire','ai.chat.shortcuts','4732820ZuUAPB','element','_switchTab','_removeShortcuts','_runChatShortcut','interactionStarted','_runReviewShortcut','get','_validateShortcuts','getModel','AITabs','_aiChatUI','conversationCreated','values','params','config','AIChatController','hasFeedItem','ai-chat-shortcuts-translate-not-found','review','focusPromptInput','pluginName','_injectShortcuts','isFromHistory','chat','args','AIReviewModeUI','activeConversation','REVIEW','runReviewCheck','isPremiumPlugin','forEach','TRANSLATE','requires','type','AIChatShortcuts','_shortcutsView','ai-chat-shortcuts-ai-tabs-not-found','CHAT','activateTab','reviewMode','string','has','chat-shortcuts','chatModels','listenTo','1959070OxeSAX','plugins','_executeShortcut','setPromptInputValue','isOfficialPlugin','execute','ai-chat-shortcuts-invalid-config','64ljjNCT','view','translate','setReasoning','_runTranslateShortcut','removeFeedItem','addFeedItemCustomElement','addCurrentDocumentToChatContext','init','370986RrFLHx','label','AITranslateUI','length','context','setWebSearch','render','1615320lOcJZC','ai-chat-shortcuts-review-mode-not-found','language','456729bVgJhB','setModel','1028824GSKJfv','sendMessage','prompt','includes','custom','AIChat'];_0x51fe=function(){return _0x14bda0;};return _0x51fe();}import{AIChatShortcutsView as _0x47c79a}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x35a8ad}from'ckeditor5/src/utils.js';function _0x26dd(_0x29751d,_0x1900d9){const _0x51fed1=_0x51fe();return _0x26dd=function(_0x26dd8f,_0x259897){_0x26dd8f=_0x26dd8f-0xb6;let _0x455b91=_0x51fed1[_0x26dd8f];return _0x455b91;},_0x26dd(_0x29751d,_0x1900d9);}import'../../theme/aichatshortcuts/aichatshortcuts.css';const wt=_0x58a4a1(0xd2);export var AIChatShortcutType;!function(_0x286b01){const _0x3cc585=_0x58a4a1;_0x286b01[_0x3cc585(0xcd)]=_0x3cc585(0xbf),_0x286b01[_0x3cc585(0xc3)]=_0x3cc585(0xba),_0x286b01[_0x3cc585(0xc7)]=_0x3cc585(0xde);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x39187c{[_0x58a4a1(0xf9)];[_0x58a4a1(0xcb)];[_0x58a4a1(0x10c)];static get[_0x58a4a1(0xc8)](){return[_0x175e19];}static get[_0x58a4a1(0xbc)](){const _0x2ed13b=_0x58a4a1;return _0x2ed13b(0xca);}static get[_0x58a4a1(0xd9)](){return!0x0;}static get[_0x58a4a1(0xc5)](){return!0x0;}[_0x58a4a1(0xe4)](){const _0x1952a5=_0x58a4a1;this[_0x1952a5(0x10c)]=this[_0x1952a5(0xe9)][_0x1952a5(0xd6)][_0x1952a5(0x108)](_0x175e19),this[_0x1952a5(0xf9)]=this[_0x1952a5(0xe9)][_0x1952a5(0xb6)][_0x1952a5(0x108)](_0x1952a5(0x100))??[];const _0x1604a5=this[_0x1952a5(0xe9)][_0x1952a5(0xd6)][_0x1952a5(0x108)](_0x1952a5(0xb7));this[_0x1952a5(0xf9)][_0x1952a5(0xe8)]&&(this[_0x1952a5(0x109)](),this[_0x1952a5(0x10c)]['on'](_0x1952a5(0x10d),()=>{const _0x3b6664=_0x1952a5;_0x1604a5[_0x3b6664(0xc2)][_0x3b6664(0xbe)]||this[_0x3b6664(0xbd)]();}),this[_0x1952a5(0xd4)](_0x1604a5,_0x1952a5(0x106),()=>{const _0x132389=_0x1952a5;this[_0x132389(0x104)]();}));}[_0x58a4a1(0x109)](){const _0x595699=_0x58a4a1,_0x47e61a=Object[_0x595699(0x10e)](AIChatShortcutType);this[_0x595699(0xf9)][_0x595699(0xc6)](_0x54b040=>{const _0x4abc36=_0x595699;let _0xceb216=!0x0;if(_0x54b040['id']&&_0x54b040[_0x4abc36(0xe6)]&&_0x47e61a[_0x4abc36(0xf4)](_0x54b040[_0x4abc36(0xc9)])?_0x4abc36(0xbf)===_0x54b040[_0x4abc36(0xc9)]&&(_0xceb216=_0x4abc36(0xd0)==typeof _0x54b040[_0x4abc36(0xf3)]):_0xceb216=!0x1,!_0xceb216)throw new _0x35a8ad(_0x4abc36(0xdb),this[_0x4abc36(0xe9)],{'shortcut':_0x54b040});});}[_0x58a4a1(0xbd)](){const _0x2072a6=_0x58a4a1,_0x4873ff=this[_0x2072a6(0xe9)][_0x2072a6(0xd6)][_0x2072a6(0x108)](_0x175e19);this[_0x2072a6(0xcb)]=new _0x47c79a(this[_0x2072a6(0xe9)][_0x2072a6(0xfa)],this[_0x2072a6(0xf9)]),this[_0x2072a6(0xcb)][_0x2072a6(0xeb)](),_0x4873ff[_0x2072a6(0xe2)](this[_0x2072a6(0xcb)][_0x2072a6(0x102)],wt),this[_0x2072a6(0xcb)]['on'](_0x2072a6(0xda),_0x4781db=>{const _0x5014c9=_0x2072a6,_0x327f44=_0x4781db[_0x5014c9(0xf8)]['id'];this[_0x5014c9(0xd7)](_0x327f44);});}[_0x58a4a1(0x104)](){const _0x42b7c1=_0x58a4a1,_0x1799af=this[_0x42b7c1(0xe9)][_0x42b7c1(0xd6)][_0x42b7c1(0x108)](_0x175e19);_0x1799af[_0x42b7c1(0xb8)](wt)&&_0x1799af[_0x42b7c1(0xe1)](wt),this[_0x42b7c1(0xcb)]?.[_0x42b7c1(0xfc)]();}[_0x58a4a1(0xd7)](_0x4a3172){const _0x3706e7=_0x58a4a1,_0x21caaa=this[_0x3706e7(0xf9)][_0x3706e7(0xfb)](_0x54ae1c=>_0x54ae1c['id']===_0x4a3172),_0x3d5761=_0x21caaa[_0x3706e7(0xc9)];_0x3706e7(0xbf)===_0x3d5761?this[_0x3706e7(0x105)](_0x21caaa):_0x3706e7(0xba)===_0x3d5761?_0x21caaa[_0x3706e7(0xf7)]?this[_0x3706e7(0x107)](_0x21caaa):this[_0x3706e7(0x103)](_0x3706e7(0xcf)):_0x3706e7(0xde)===_0x3d5761&&(_0x21caaa[_0x3706e7(0xee)]?this[_0x3706e7(0xe0)](_0x21caaa):this[_0x3706e7(0x103)](_0x3706e7(0xde)));}[_0x58a4a1(0x103)](_0x28bae1){const _0x398515=_0x58a4a1;if(!this[_0x398515(0xe9)][_0x398515(0xd6)][_0x398515(0xd1)](_0x398515(0x10b)))throw new _0x35a8ad(_0x398515(0xcc),this[_0x398515(0xe9)],{'tabName':_0x28bae1});this[_0x398515(0xe9)][_0x398515(0xd6)][_0x398515(0x108)](_0x398515(0x10b))[_0x398515(0xdd)][_0x398515(0xce)](_0x28bae1);}async[_0x58a4a1(0x105)]({prompt:_0x2bba33,draftMode:_0x51bb55,useWebSearch:_0x336df5=!0x1,useReasoning:_0x120b54=!0x1,model:_0x16b6f9}){const _0x2735f0=_0x58a4a1,_0x3b596d=this[_0x2735f0(0xe9)][_0x2735f0(0xd6)][_0x2735f0(0x108)](_0x2735f0(0xf6)),_0x23b634=this[_0x2735f0(0xe9)][_0x2735f0(0xd6)][_0x2735f0(0x108)](_0x2735f0(0xb7)),_0x9addf9=_0x23b634[_0x2735f0(0xc2)];let _0xe722ba;_0xe722ba=_0x16b6f9?await _0x9addf9[_0x2735f0(0xd3)][_0x2735f0(0x10a)](_0x16b6f9):await _0x9addf9[_0x2735f0(0xd3)][_0x2735f0(0xfe)](),_0xe722ba&&await _0x9addf9[_0x2735f0(0xf0)](_0xe722ba),_0x9addf9[_0x2735f0(0xea)](_0x336df5),_0x9addf9[_0x2735f0(0xdf)](_0x120b54),_0x23b634[_0x2735f0(0xe3)](),_0x51bb55?(this[_0x2735f0(0x10c)][_0x2735f0(0xd8)](_0x2bba33),this[_0x2735f0(0x10c)][_0x2735f0(0xbb)](!0x0)):_0x3b596d[_0x2735f0(0xf2)]({'message':_0x2bba33});}[_0x58a4a1(0x107)]({check:_0x460f66,model:_0x4f28fb,prompt:_0x1f97ba,params:_0x32270c}){const _0xcc9e48=_0x58a4a1;if(!this[_0xcc9e48(0xe9)][_0xcc9e48(0xd6)][_0xcc9e48(0xd1)](_0xcc9e48(0xc1)))throw new _0x35a8ad(_0xcc9e48(0xed),this[_0xcc9e48(0xe9)]);this[_0xcc9e48(0x103)](_0xcc9e48(0xcf));const _0x26a644={'id':_0x460f66,'isCustom':_0xcc9e48(0xf5)===_0x460f66};_0x4f28fb&&_0x1f97ba&&(_0x26a644[_0xcc9e48(0xc0)]={'model':_0x4f28fb,'prompt':_0x1f97ba}),_0x32270c&&(_0x26a644[_0xcc9e48(0x10f)]=_0x32270c),this[_0xcc9e48(0xe9)][_0xcc9e48(0xd6)][_0xcc9e48(0x108)](_0xcc9e48(0xc1))[_0xcc9e48(0xff)](_0xcc9e48(0xc4),_0x26a644);}[_0x58a4a1(0xe0)]({language:_0x4406d8}){const _0x5256d8=_0x58a4a1;if(!this[_0x5256d8(0xe9)][_0x5256d8(0xd6)][_0x5256d8(0xd1)](_0x5256d8(0xe7)))throw new _0x35a8ad(_0x5256d8(0xb9),this[_0x5256d8(0xe9)]);this[_0x5256d8(0x103)](_0x5256d8(0xde)),this[_0x5256d8(0xe9)][_0x5256d8(0xd6)][_0x5256d8(0x108)](_0x5256d8(0xe7))[_0x5256d8(0xff)](_0x5256d8(0xc4),{'id':_0x4406d8,'args':{'language':_0x4406d8}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9ca811=_0x136a;function _0x136a(_0x2d82f0,_0x75610a){const _0x5ab9df=_0x5ab9();return _0x136a=function(_0x136a30,_0x34162a){_0x136a30=_0x136a30-0xa8;let _0x2eec1d=_0x5ab9df[_0x136a30];return _0x2eec1d;},_0x136a(_0x2d82f0,_0x75610a);}(function(_0x5f3d39,_0x580d5b){const _0x2c6d95=_0x136a,_0x4100a7=_0x5f3d39();while(!![]){try{const _0x45e101=-parseInt(_0x2c6d95(0xb8))/0x1+parseInt(_0x2c6d95(0xb5))/0x2*(-parseInt(_0x2c6d95(0xba))/0x3)+-parseInt(_0x2c6d95(0xb6))/0x4*(parseInt(_0x2c6d95(0xaa))/0x5)+parseInt(_0x2c6d95(0xbb))/0x6*(-parseInt(_0x2c6d95(0xb4))/0x7)+-parseInt(_0x2c6d95(0xac))/0x8*(parseInt(_0x2c6d95(0xbd))/0x9)+parseInt(_0x2c6d95(0xb9))/0xa+-parseInt(_0x2c6d95(0xab))/0xb*(-parseInt(_0x2c6d95(0xbf))/0xc);if(_0x45e101===_0x580d5b)break;else _0x4100a7['push'](_0x4100a7['shift']());}catch(_0x541f0d){_0x4100a7['push'](_0x4100a7['shift']());}}}(_0x5ab9,0xa7398));function _0x5ab9(){const _0x56bc92=['addMany','map','14fHJDEs','15530nTubwC','16DnRSEg','items','278431lTmDvS','8816860YgASjW','123adsLQo','1410930lkrkSG','ck-ai-chat-shortcuts','265203WPPgqH','children','747732eWctiI','div','listView','1462415leAlBU','407kxIMIR','72eZnlpo','delegate','locale','setTemplate','execute','add'];_0x5ab9=function(){return _0x56bc92;};return _0x5ab9();}import{ListItemView as _0x195fcf,ListView as _0x39e264,View as _0x33a9d9}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x4f5c53}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x33a9d9{[_0x9ca811(0xa9)];constructor(_0x29055a,_0x31ee55){const _0xc99125=_0x9ca811;super(_0x29055a);const _0x1db8f0=_0x31ee55[_0xc99125(0xb3)](_0x50f576=>{const _0x1009c3=_0xc99125,_0x2f7b5d=new _0x195fcf(this[_0x1009c3(0xae)]),_0x4954c3=new _0x4f5c53(this[_0x1009c3(0xae)],_0x50f576);return _0x2f7b5d[_0x1009c3(0xbe)][_0x1009c3(0xb1)](_0x4954c3),_0x4954c3[_0x1009c3(0xad)](_0x1009c3(0xb0))['to'](this),_0x2f7b5d;});this[_0xc99125(0xa9)]=new _0x39e264(this[_0xc99125(0xae)]),this[_0xc99125(0xa9)][_0xc99125(0xb7)][_0xc99125(0xb2)](_0x1db8f0),this[_0xc99125(0xaf)]({'tag':_0xc99125(0xa8),'attributes':{'class':['ck',_0xc99125(0xbc)]},'children':[this[_0xc99125(0xa9)]]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x5991d1,_0x563093){const _0xa5980e=_0x4bf4,_0x2630b9=_0x5991d1();while(!![]){try{const _0x3d2928=-parseInt(_0xa5980e(0x191))/0x1*(parseInt(_0xa5980e(0x190))/0x2)+parseInt(_0xa5980e(0x18d))/0x3*(-parseInt(_0xa5980e(0x18e))/0x4)+parseInt(_0xa5980e(0x19a))/0x5+-parseInt(_0xa5980e(0x189))/0x6+-parseInt(_0xa5980e(0x196))/0x7*(-parseInt(_0xa5980e(0x194))/0x8)+parseInt(_0xa5980e(0x193))/0x9+-parseInt(_0xa5980e(0x18c))/0xa*(parseInt(_0xa5980e(0x18b))/0xb);if(_0x3d2928===_0x563093)break;else _0x2630b9['push'](_0x2630b9['shift']());}catch(_0x17fe55){_0x2630b9['push'](_0x2630b9['shift']());}}}(_0x1273,0xc9c35));import{ButtonView as _0x4d0744}from'ckeditor5/src/ui.js';function _0x4bf4(_0x581cf4,_0x14c515){const _0x12730f=_0x1273();return _0x4bf4=function(_0x4bf43c,_0x133d82){_0x4bf43c=_0x4bf43c-0x189;let _0x22d024=_0x12730f[_0x4bf43c];return _0x22d024;},_0x4bf4(_0x581cf4,_0x14c515);}import{IconAIChat as _0x23ed56,IconAIReview as _0x4df5c8,IconAITranslate as _0x2eff23}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x4d0744{['id'];constructor(_0x38cb6c,_0x11c6f7){const _0x228862=_0x4bf4;super(_0x38cb6c);const {id:_0x502b5,type:_0x384a61,icon:_0x4306cc}=_0x11c6f7;this['id']=_0x502b5,this[_0x228862(0x197)]({'label':_0x11c6f7[_0x228862(0x195)],'withText':!0x0,'class':_0x228862(0x19b)}),this[_0x228862(0x192)]({'attributes':{'data-cke-ai-shortcut-id':_0x11c6f7['id']}}),_0x4306cc?this[_0x228862(0x18a)]=_0x4306cc:_0x228862(0x199)===_0x384a61?this[_0x228862(0x18a)]=_0x23ed56:_0x228862(0x18f)===_0x384a61?this[_0x228862(0x18a)]=_0x4df5c8:_0x228862(0x198)===_0x384a61&&(this[_0x228862(0x18a)]=_0x2eff23);}}function _0x1273(){const _0x5237c9=['6247BBUEJU','extendTemplate','13308498eoAZqV','127072HsQxZl','label','567FhTcPt','set','translate','chat','1005675QIelvE','ck-ai-chat-shortcut','1948668NhopmA','icon','3617174YryBvu','10PBXSrC','1104645pgZJgL','4adizdG','review','358WFPCaq'];_0x1273=function(){return _0x5237c9;};return _0x1273();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x244192=_0x2404;function _0x31a1(){const _0x33a3ee=['plugins','/actions/custom/calls/','updateConversation','desc','AbortError','parse','upsertAIActionRating','DELETE','uploadFile','upsertAIChatRating','feed','uploadUrl','stringify','20402DuqYob','config','define','/web-resources/','/ratings','data','ai-missing-token','read','executeAction','translate','Content-Type','4foYknI','isOfficialPlugin','decode','reset','Bearer\x20','make-shorter','length','POST','367314cafdeU','statusText','modificationId','file','deleteDocument','1491149OZVvtu','message','8158284WeIpCN','upsertAIReviewRating','positiveCount','text','MAKE_TONE_CASUAL','request','/reviews/custom/calls','continue','GET','/messages','/reviews/custom/calls/','pluginName','code','_token','/calls/','fetchConversation','make-tone-formal','init','/files/','toString','ai-request-failed','MAKE_LONGER','deleteFile','7jkGcZs','_getStreamReader','/conversations/','/documents','make-longer','PATCH','value','startConversation','/models/1?','_apiUrl','totalCount','language','getModels','status','releaseLock','context','items','push','TRANSLATE','make-tone-casual','8LAwTQY','group','executeCustomAction','true','get','https://ai.cke-cs.com/v1','/calls','callSystemReview','sortBy','fix-grammar','upsertCustomAIActionRating','attributes','getReader','9198690DcPhTX','2806110rOMhaC','createdAt','IMPROVE_WRITING','body','PUT','/web-resources','append','/conversations','callCustomReview','catch','fetchDocument','name','deleteConversation','/conversations?','false','abortController','5940333rKzGnL','fetchConversationMessages','upsertCustomAIReviewRating','token','then','application/json','excludeEmpty','improve-writing','limit','CONTINUE','MAKE_TONE_FORMAL','ai-request-aborted','100','json','MAKE_SHORTER','CloudServices','_handleError','uploadDocument','AIConnector','_decoder','fetchConversations','requires','deleteWebResource','/documents/','/reviews/system/','signal','queryAssistant','ai.serviceUrl','/actions/system/','traceId','order','6FJaVde','isPremiumPlugin','/files','_sendApiRequest','/messages/','/actions/custom/calls','FIX_GRAMMAR'];_0x31a1=function(){return _0x33a3ee;};return _0x31a1();}(function(_0x3d551c,_0x3a38d1){const _0x3ed7b3=_0x2404,_0x550b39=_0x3d551c();while(!![]){try{const _0x11a516=-parseInt(_0x3ed7b3(0x1c4))/0x1*(-parseInt(_0x3ed7b3(0x193))/0x2)+parseInt(_0x3ed7b3(0x1a6))/0x3*(parseInt(_0x3ed7b3(0x19e))/0x4)+-parseInt(_0x3ed7b3(0x150))/0x5*(parseInt(_0x3ed7b3(0x17f))/0x6)+parseInt(_0x3ed7b3(0x160))/0x7*(-parseInt(_0x3ed7b3(0x1d8))/0x8)+parseInt(_0x3ed7b3(0x1ad))/0x9+parseInt(_0x3ed7b3(0x14f))/0xa+-parseInt(_0x3ed7b3(0x1ab))/0xb;if(_0x11a516===_0x3a38d1)break;else _0x550b39['push'](_0x550b39['shift']());}catch(_0x53c4ea){_0x550b39['push'](_0x550b39['shift']());}}}(_0x31a1,0x73ea6));import{createParser as _0x409241}from'eventsource-parser';function _0x2404(_0x2ff34f,_0x1bb270){const _0x31a192=_0x31a1();return _0x2404=function(_0x240491,_0x5b2c8a){_0x240491=_0x240491-0x14c;let _0x27ecb2=_0x31a192[_0x240491];return _0x27ecb2;},_0x2404(_0x2ff34f,_0x1bb270);}import{ContextPlugin as _0xf987ca}from'ckeditor5/src/core.js';import{CKEditorError as _0x3a8a01}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x330dde){const _0x873da4=_0x2404;_0x330dde[_0x873da4(0x169)]=_0x873da4(0x1b4),_0x330dde[_0x873da4(0x185)]=_0x873da4(0x1e1),_0x330dde[_0x873da4(0x152)]=_0x873da4(0x167),_0x330dde[_0x873da4(0x1c2)]=_0x873da4(0x1c8),_0x330dde[_0x873da4(0x16e)]=_0x873da4(0x1a3),_0x330dde[_0x873da4(0x1b1)]=_0x873da4(0x1d7),_0x330dde[_0x873da4(0x16a)]=_0x873da4(0x1bd),_0x330dde[_0x873da4(0x1d6)]=_0x873da4(0x19c);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xf987ca{[_0x244192(0x1cd)];[_0x244192(0x1ba)];[_0x244192(0x173)];static get[_0x244192(0x175)](){const _0x3cffcb=_0x244192;return[_0x3cffcb(0x16f)];}static get[_0x244192(0x1b8)](){const _0x398820=_0x244192;return _0x398820(0x172);}static get[_0x244192(0x19f)](){return!0x0;}static get[_0x244192(0x180)](){return!0x0;}constructor(_0x2f7d30){const _0x4dde85=_0x244192;super(_0x2f7d30),this[_0x4dde85(0x1d3)][_0x4dde85(0x194)][_0x4dde85(0x195)](_0x4dde85(0x17b),_0x4dde85(0x1dd)),this[_0x4dde85(0x1cd)]=this[_0x4dde85(0x1d3)][_0x4dde85(0x194)][_0x4dde85(0x1dc)](_0x4dde85(0x17b)),this[_0x4dde85(0x1ba)]=null,this[_0x4dde85(0x173)]=new TextDecoder();}[_0x244192(0x1be)](){const _0xe1566c=_0x244192,_0x420001=this[_0xe1566c(0x1d3)][_0xe1566c(0x186)][_0xe1566c(0x1dc)](_0xe1566c(0x16f));if(!_0x420001[_0xe1566c(0x163)])throw new _0x3a8a01(_0xe1566c(0x199),this);this[_0xe1566c(0x1ba)]=_0x420001[_0xe1566c(0x163)];}[_0x244192(0x1cb)](_0x4bc600,_0x12609c){const _0x2b7b03=_0x244192,_0x2cc894=this[_0x2b7b03(0x182)](_0x2b7b03(0x157),_0x2b7b03(0x1a5),{'id':_0x4bc600,'group':_0x12609c});return{'getConversation':async()=>(await _0x2cc894[_0x2b7b03(0x1b2)])[_0x2b7b03(0x16d)](),'abortController':_0x2cc894[_0x2b7b03(0x15f)]};}[_0x244192(0x17a)]({message:_0x828700,conversationId:_0x473198,parts:_0x1de727,capabilities:_0xb17f8d,model:_0x5459d9,attributes:_0x5631a0}){const _0x33aa00=_0x244192,_0x239e69={'prompt':_0x828700,'content':_0x1de727,'model':_0x5459d9,..._0xb17f8d&&{'capabilities':_0xb17f8d},..._0x5631a0&&{'attributes':_0x5631a0}},_0x530dbd=this[_0x33aa00(0x182)](_0x33aa00(0x1c6)+_0x473198+_0x33aa00(0x1b6),_0x33aa00(0x1a5),_0x239e69);return{'getStream':async()=>{const _0x3cc845=_0x33aa00,_0x38c283=(await _0x530dbd[_0x3cc845(0x1b2)])[_0x3cc845(0x153)];return this[_0x3cc845(0x1c5)](_0x38c283);},'abortController':_0x530dbd[_0x33aa00(0x15f)]};}[_0x244192(0x1da)]({content:_0x48c211,message:_0x158282,model:_0x554ad5,outputFormat:_0x22b0b6}){const _0x197c43=_0x244192,_0x5cae5f={'content':[{'type':_0x197c43(0x1b0),'content':_0x48c211}],'prompt':_0x158282,'model':_0x554ad5,'outputFormat':_0x22b0b6},_0x4468d1=this[_0x197c43(0x182)](_0x197c43(0x184),_0x197c43(0x1a5),_0x5cae5f);return{'getStream':async()=>{const _0x56e5ba=_0x197c43,_0x5d27fe=(await _0x4468d1[_0x56e5ba(0x1b2)])[_0x56e5ba(0x153)];return this[_0x56e5ba(0x1c5)](_0x5d27fe);},'abortController':_0x4468d1[_0x197c43(0x15f)]};}[_0x244192(0x19b)]({actionName:_0x29d2a3,content:_0x429f41,args:_0x4e2c24}){const _0x115683=_0x244192,_0x53e125={'content':[{'type':_0x115683(0x1b0),'content':_0x429f41}],'args':_0x4e2c24},_0x518aba=this[_0x115683(0x182)](_0x115683(0x17c)+_0x29d2a3+_0x115683(0x1de),_0x115683(0x1a5),_0x53e125);return{'getStream':async()=>{const _0x4df614=_0x115683,_0x11eb1d=(await _0x518aba[_0x4df614(0x1b2)])[_0x4df614(0x153)];return this[_0x4df614(0x1c5)](_0x11eb1d);},'abortController':_0x518aba[_0x115683(0x15f)]};}[_0x244192(0x18e)](_0x486fdc,_0x159cda,_0x9557e8){const _0x363dcc=_0x244192,_0x2016d7=new FormData();_0x2016d7[_0x363dcc(0x156)](_0x363dcc(0x1a9),_0x159cda,_0x159cda[_0x363dcc(0x15b)]),_0x9557e8&&_0x2016d7[_0x363dcc(0x156)](_0x363dcc(0x14d),JSON[_0x363dcc(0x192)](_0x9557e8));const _0x52f4dd=this[_0x363dcc(0x182)](_0x363dcc(0x1c6)+_0x486fdc+_0x363dcc(0x181),_0x363dcc(0x1a5),_0x2016d7);return{'getId':async()=>(await _0x52f4dd[_0x363dcc(0x1b2)])[_0x363dcc(0x16d)](),'abortController':_0x52f4dd[_0x363dcc(0x15f)]};}[_0x244192(0x15a)](_0x49936c,_0x5b4c8a){const _0x19c4cc=_0x244192,_0x123b74=this[_0x19c4cc(0x182)](_0x19c4cc(0x1c6)+_0x49936c+_0x19c4cc(0x177)+_0x5b4c8a,_0x19c4cc(0x1b5));return{'getDocument':async()=>(await _0x123b74[_0x19c4cc(0x1b2)])[_0x19c4cc(0x16d)](),'abortController':_0x123b74[_0x19c4cc(0x15f)]};}[_0x244192(0x171)](_0x53b715,_0x33b58b,_0x58bfab){const _0x224c3d=_0x244192,_0x3f0212={'content':_0x33b58b};_0x58bfab&&(_0x3f0212[_0x224c3d(0x14d)]=_0x58bfab);const _0x4d66bd=this[_0x224c3d(0x182)](_0x224c3d(0x1c6)+_0x53b715+_0x224c3d(0x1c7),_0x224c3d(0x1a5),_0x3f0212);return{'getId':async()=>(await _0x4d66bd[_0x224c3d(0x1b2)])[_0x224c3d(0x16d)](),'abortController':_0x4d66bd[_0x224c3d(0x15f)]};}[_0x244192(0x174)](_0x208e24,_0x13105d={}){const _0x1a0658=_0x244192,_0x1f7c03=new URLSearchParams();_0x1f7c03[_0x1a0658(0x156)](_0x1a0658(0x1d9),_0x208e24),_0x1f7c03[_0x1a0658(0x156)](_0x1a0658(0x166),!0x1!==_0x13105d[_0x1a0658(0x166)]?_0x1a0658(0x1db):_0x1a0658(0x15e)),_0x1f7c03[_0x1a0658(0x156)](_0x1a0658(0x168),_0x13105d[_0x1a0658(0x168)]?_0x13105d[_0x1a0658(0x168)][_0x1a0658(0x1c0)]():_0x1a0658(0x16c)),_0x1f7c03[_0x1a0658(0x156)](_0x1a0658(0x1e0),_0x13105d[_0x1a0658(0x1e0)]?_0x13105d[_0x1a0658(0x1e0)]:_0x1a0658(0x151)),_0x1f7c03[_0x1a0658(0x156)](_0x1a0658(0x17e),_0x13105d[_0x1a0658(0x17e)]?_0x13105d[_0x1a0658(0x17e)]:_0x1a0658(0x189));const _0xf99c1e=this[_0x1a0658(0x182)](_0x1a0658(0x15d)+_0x1f7c03[_0x1a0658(0x1c0)](),_0x1a0658(0x1b5));return{'getConversations':async()=>{const _0x1789fa=_0x1a0658,_0x18ac07=await _0xf99c1e[_0x1789fa(0x1b2)];return(await _0x18ac07[_0x1789fa(0x16d)]())[_0x1789fa(0x1d4)];},'abortController':_0xf99c1e[_0x1a0658(0x15f)]};}[_0x244192(0x15c)](_0x379d00){const _0x5db936=_0x244192,_0x35d2cc=this[_0x5db936(0x182)](_0x5db936(0x1c6)+_0x379d00,_0x5db936(0x18d));return{'execute':async()=>{const _0x2b6cfd=_0x5db936;await _0x35d2cc[_0x2b6cfd(0x1b2)];},'abortController':_0x35d2cc[_0x5db936(0x15f)]};}[_0x244192(0x188)](_0x2c9ed5,_0x6e3cf2){const _0x4417bc=_0x244192,_0x4006d5=this[_0x4417bc(0x182)](_0x4417bc(0x1c6)+_0x2c9ed5,_0x4417bc(0x1c9),_0x6e3cf2);return{'getResult':async()=>(await _0x4006d5[_0x4417bc(0x1b2)],_0x6e3cf2),'abortController':_0x4006d5[_0x4417bc(0x15f)]};}[_0x244192(0x1bc)](_0x4d3303){const _0xbdd810=_0x244192,_0x5d8faf=this[_0xbdd810(0x182)](_0xbdd810(0x1c6)+_0x4d3303,_0xbdd810(0x1b5));return{'getConversation':async()=>(await _0x5d8faf[_0xbdd810(0x1b2)])[_0xbdd810(0x16d)](),'abortController':_0x5d8faf[_0xbdd810(0x15f)]};}[_0x244192(0x161)](_0x2e4b1d){const _0x4fc1c7=_0x244192,_0x449def=this[_0x4fc1c7(0x182)](_0x4fc1c7(0x1c6)+_0x2e4b1d+_0x4fc1c7(0x1b6),_0x4fc1c7(0x1b5));return{'getMessages':async()=>{const _0x57e74b=_0x4fc1c7,_0x422982=await _0x449def[_0x57e74b(0x1b2)];return(await _0x422982[_0x57e74b(0x16d)]())[_0x57e74b(0x1d4)];},'abortController':_0x449def[_0x4fc1c7(0x15f)]};}[_0x244192(0x191)](_0x372014,_0x47c359,_0x14c013){const _0x564f5a=_0x244192,_0x540aa4=this[_0x564f5a(0x182)](_0x564f5a(0x1c6)+_0x372014+_0x564f5a(0x155),_0x564f5a(0x1a5),{'url':_0x47c359,'attributes':_0x14c013});return{'getId':async()=>(await _0x540aa4[_0x564f5a(0x1b2)])[_0x564f5a(0x16d)](),'abortController':_0x540aa4[_0x564f5a(0x15f)]};}[_0x244192(0x1d0)](_0x4cd41d='en'){const _0x7b038e=_0x244192,_0x43ce24=new URLSearchParams();_0x43ce24[_0x7b038e(0x156)](_0x7b038e(0x1cf),_0x4cd41d);const _0x157e53=_0x7b038e(0x1cc)+_0x43ce24[_0x7b038e(0x1c0)](),_0x5f5017=this[_0x7b038e(0x182)](_0x157e53,_0x7b038e(0x1b5));return{'list':async()=>await(await _0x5f5017[_0x7b038e(0x1b2)])[_0x7b038e(0x16d)](),'abortController':_0x5f5017[_0x7b038e(0x15f)]};}[_0x244192(0x1c3)](_0x48c1c1,_0x102db9){const _0x56178c=_0x244192,_0x282b37=this[_0x56178c(0x182)](_0x56178c(0x1c6)+_0x48c1c1+_0x56178c(0x1bf)+_0x102db9,_0x56178c(0x18d));return{'execute':async()=>{const _0x2960e3=_0x56178c;await _0x282b37[_0x2960e3(0x1b2)];},'abortController':_0x282b37[_0x56178c(0x15f)]};}[_0x244192(0x1aa)](_0xf2131f,_0x3d00da){const _0x2a5bbf=_0x244192,_0x3fec4b=this[_0x2a5bbf(0x182)](_0x2a5bbf(0x1c6)+_0xf2131f+_0x2a5bbf(0x177)+_0x3d00da,_0x2a5bbf(0x18d));return{'execute':async()=>{const _0x16a4a3=_0x2a5bbf;await _0x3fec4b[_0x16a4a3(0x1b2)];},'abortController':_0x3fec4b[_0x2a5bbf(0x15f)]};}[_0x244192(0x176)](_0x3d10af,_0x57ee84){const _0xc52a7b=_0x244192,_0xe00cde=this[_0xc52a7b(0x182)](_0xc52a7b(0x1c6)+_0x3d10af+_0xc52a7b(0x196)+_0x57ee84,_0xc52a7b(0x18d));return{'execute':async()=>{const _0x13bb63=_0xc52a7b;await _0xe00cde[_0x13bb63(0x1b2)];},'abortController':_0xe00cde[_0xc52a7b(0x15f)]};}[_0x244192(0x1df)]({reviewName:_0x50148b,content:_0x1c1710,args:_0x3e1ea8}){const _0x2d951d=_0x244192,_0x2b183a=this[_0x2d951d(0x182)](_0x2d951d(0x178)+_0x50148b+_0x2d951d(0x1de),_0x2d951d(0x1a5),{'content':[{'type':_0x2d951d(0x1b0),'content':_0x1c1710}],'args':_0x3e1ea8});return{'getStream':async()=>{const _0x3ff752=_0x2d951d,_0x5adc12=(await _0x2b183a[_0x3ff752(0x1b2)])[_0x3ff752(0x153)];return this[_0x3ff752(0x1c5)](_0x5adc12);},'abortController':_0x2b183a[_0x2d951d(0x15f)]};}[_0x244192(0x158)]({content:_0x2026f7,prompt:_0x38e578,model:_0x41fd98}){const _0x43d03e=_0x244192,_0x31b420=this[_0x43d03e(0x182)](_0x43d03e(0x1b3),_0x43d03e(0x1a5),{'content':[{'type':_0x43d03e(0x1b0),'content':_0x2026f7}],'prompt':_0x38e578,'model':_0x41fd98});return{'getStream':async()=>{const _0x5f07ce=_0x43d03e,_0x48445f=(await _0x31b420[_0x5f07ce(0x1b2)])[_0x5f07ce(0x153)];return this[_0x5f07ce(0x1c5)](_0x48445f);},'abortController':_0x31b420[_0x43d03e(0x15f)]};}[_0x244192(0x18f)](_0x5045ca,_0x56e848,_0x5831be){const _0x3e01a4=_0x244192,_0x563c8b=this[_0x3e01a4(0x182)](_0x3e01a4(0x1c6)+_0x5045ca+_0x3e01a4(0x183)+_0x56e848+_0x3e01a4(0x197),_0x3e01a4(0x154),{'positiveCount':_0x5831be[_0x3e01a4(0x1af)],'totalCount':_0x5831be[_0x3e01a4(0x1ce)],'modificationId':_0x5831be[_0x3e01a4(0x1a8)]});return{'execute':async()=>{const _0x47d0aa=_0x3e01a4;await _0x563c8b[_0x47d0aa(0x1b2)];},'abortController':_0x563c8b[_0x3e01a4(0x15f)]};}[_0x244192(0x18c)](_0x41f3a1,_0x4a4569,_0xa15c95){const _0x40acdb=_0x244192,_0x5b5b62=this[_0x40acdb(0x182)](_0x40acdb(0x17c)+_0x41f3a1+_0x40acdb(0x1bb)+_0x4a4569+_0x40acdb(0x197),_0x40acdb(0x154),{'positiveCount':_0xa15c95[_0x40acdb(0x1af)],'totalCount':_0xa15c95[_0x40acdb(0x1ce)]});return{'execute':async()=>{const _0xf17b1b=_0x40acdb;await _0x5b5b62[_0xf17b1b(0x1b2)];},'abortController':_0x5b5b62[_0x40acdb(0x15f)]};}[_0x244192(0x14c)](_0x567510,_0x4e0417){const _0x516653=_0x244192,_0x32b616=this[_0x516653(0x182)](_0x516653(0x187)+_0x567510+_0x516653(0x197),_0x516653(0x154),{'positiveCount':_0x4e0417[_0x516653(0x1af)],'totalCount':_0x4e0417[_0x516653(0x1ce)]});return{'execute':async()=>{const _0x5342dd=_0x516653;await _0x32b616[_0x5342dd(0x1b2)];},'abortController':_0x32b616[_0x516653(0x15f)]};}[_0x244192(0x1ae)](_0x5afb89,_0x9d2734,_0x22a73f,_0x3c3038){const _0x3fbdb9=_0x244192,_0x3c5898=this[_0x3fbdb9(0x182)](_0x3fbdb9(0x178)+_0x5afb89+_0x3fbdb9(0x1bb)+_0x9d2734+_0x3fbdb9(0x197),_0x3fbdb9(0x154),{'positiveCount':_0x22a73f[_0x3fbdb9(0x1af)],'totalCount':_0x22a73f[_0x3fbdb9(0x1ce)],'dataId':_0x3c3038});return{'execute':async()=>{const _0x5099c9=_0x3fbdb9;await _0x3c5898[_0x5099c9(0x1b2)];},'abortController':_0x3c5898[_0x3fbdb9(0x15f)]};}[_0x244192(0x162)](_0x3acaf1,_0x13090b,_0x2a279a){const _0x3e16c0=_0x244192,_0x46a125=this[_0x3e16c0(0x182)](_0x3e16c0(0x1b7)+_0x3acaf1+_0x3e16c0(0x197),_0x3e16c0(0x154),{'positiveCount':_0x13090b[_0x3e16c0(0x1af)],'totalCount':_0x13090b[_0x3e16c0(0x1ce)],'dataId':_0x2a279a});return{'execute':async()=>{const _0x2e5262=_0x3e16c0;await _0x46a125[_0x2e5262(0x1b2)];},'abortController':_0x46a125[_0x3e16c0(0x15f)]};}[_0x244192(0x182)](_0x53ca9a,_0x5a71c9,_0x53878f){const _0x3d42d6=_0x244192,_0x596baa=new AbortController(),_0x388e09=_0x53878f instanceof FormData,_0x41f8f0={'Authorization':_0x3d42d6(0x1a2)+this[_0x3d42d6(0x1ba)]?.[_0x3d42d6(0x1ca)]};_0x53878f&&!_0x388e09&&(_0x41f8f0[_0x3d42d6(0x19d)]=_0x3d42d6(0x165));const _0x5db162={'method':_0x5a71c9,'headers':_0x41f8f0,'signal':_0x596baa[_0x3d42d6(0x179)]};return _0x53878f&&(_0x5db162[_0x3d42d6(0x153)]=_0x388e09?_0x53878f:JSON[_0x3d42d6(0x192)](_0x53878f)),{'request':fetch(''+this[_0x3d42d6(0x1cd)]+_0x53ca9a,_0x5db162)[_0x3d42d6(0x159)](_0x3f835b=>{const _0x2fa2ba=_0x3d42d6;this[_0x2fa2ba(0x170)](_0x3f835b);})[_0x3d42d6(0x164)](_0x4b1df3=>_0x4b1df3['ok']?_0x4b1df3:_0x4b1df3[_0x3d42d6(0x16d)]()[_0x3d42d6(0x164)](_0x2a10f5=>{const _0x14f23d=_0x3d42d6;throw{'url':this[_0x14f23d(0x1cd)],'path':_0x53ca9a,'method':_0x5a71c9,'body':_0x53878f,'status':(_0x4b1df3||{})[_0x14f23d(0x1d1)],'statusText':(_0x4b1df3||{})[_0x14f23d(0x1a7)],'code':_0x2a10f5[_0x14f23d(0x1b9)],'message':_0x2a10f5[_0x14f23d(0x1ac)],'traceId':_0x2a10f5[_0x14f23d(0x17d)]};})),'abortController':_0x596baa};}async*[_0x244192(0x1c5)](_0x983323){const _0x4e2d1c=_0x244192,_0x45c4e5=[],_0x2ae2f0=_0x983323[_0x4e2d1c(0x14e)](),_0x13777a=_0x409241({'onError':_0x375a4e=>{const _0x37ec56=_0x4e2d1c;this[_0x37ec56(0x170)](_0x375a4e);},'onEvent':_0xbc461a=>{const _0x272d46=_0x4e2d1c;_0xbc461a[_0x272d46(0x198)]=JSON[_0x272d46(0x18b)](_0xbc461a[_0x272d46(0x198)]),_0x45c4e5[_0x272d46(0x1d5)](_0xbc461a);}});try{let _0x53e637=!0x1;for(;!_0x53e637;){const {done:_0x24127f,value:_0x5bc397}=await _0x2ae2f0[_0x4e2d1c(0x19a)]();_0x24127f&&(_0x53e637=!0x0),_0x13777a[_0x4e2d1c(0x190)](this[_0x4e2d1c(0x173)][_0x4e2d1c(0x1a0)](_0x5bc397,{'stream':!0x0})),yield*_0x45c4e5,_0x45c4e5[_0x4e2d1c(0x1a4)]=0x0;}}catch(_0x29e9c9){this[_0x4e2d1c(0x170)](_0x29e9c9);}finally{_0x2ae2f0[_0x4e2d1c(0x1d2)](),_0x13777a[_0x4e2d1c(0x1a1)]();}}[_0x244192(0x170)](_0x5ad4e7){const _0x25a0eb=_0x244192;if(_0x5ad4e7 instanceof _0x3a8a01)throw _0x5ad4e7;if(_0x5ad4e7 instanceof Error&&_0x25a0eb(0x18a)===_0x5ad4e7[_0x25a0eb(0x15b)])throw new _0x3a8a01(_0x25a0eb(0x16b),this,{'originalError':_0x5ad4e7});throw new _0x3a8a01(_0x25a0eb(0x1c1),this,{'originalError':_0x5ad4e7});}}
|
|
23
|
+
const _0x5675e2=_0x4700;function _0x1d27(){const _0x3bad56=['/documents/','positiveCount','Content-Type','upsertCustomAIReviewRating','/reviews/custom/calls','POST','949930fHXSAP','/calls/','code','init','message','sortBy','context','false','MAKE_LONGER','PUT','348392qBmPRj','deleteConversation','isPremiumPlugin','/messages','/files','isOfficialPlugin','upsertAIChatRating','/conversations','5fBWMoa','callSystemReview','_sendApiRequest','MAKE_SHORTER','_apiUrl','PATCH','1104724zRkhXw','fetchConversationMessages','_token','ai.serviceUrl','group','GET','status','body','fix-grammar','abortController','MAKE_TONE_FORMAL','executeCustomAction','2806311vobYKq','read','file','traceId','append','uploadDocument','/conversations?','/ratings','/calls','make-shorter','/reviews/system/','requires','application/json','config','/files/','/web-resources/','json','attributes','createdAt','order','DELETE','deleteDocument','uploadFile','upsertCustomAIActionRating','value','language','/messages/','https://ai.cke-cs.com/v1','_decoder','fetchDocument','make-tone-formal','feed','make-tone-casual','IMPROVE_WRITING','fetchConversation','ai-request-aborted','/actions/system/','100','statusText','length','deleteFile','name','signal','queryAssistant','Bearer\x20','upsertAIReviewRating','deleteWebResource','/conversations/','text','AIConnector','FIX_GRAMMAR','executeAction','ai-missing-token','pluginName','then','push','totalCount','translate','get','limit','/models/1?','stringify','startConversation','continue','toString','define','2896UwyfFV','uploadUrl','desc','data','callCustomReview','excludeEmpty','CONTINUE','modificationId','ai-request-failed','token','catch','MAKE_TONE_CASUAL','10260999AHuxLw','items','true','/reviews/custom/calls/','/documents','updateConversation','fetchConversations','make-longer','TRANSLATE','getReader','_handleError','plugins','20195loSGYT','_getStreamReader','/actions/custom/calls','request','1103226KPqjwY','reset','decode','improve-writing','/actions/custom/calls/','parse','upsertAIActionRating','releaseLock','CloudServices','AbortError','/web-resources','getModels'];_0x1d27=function(){return _0x3bad56;};return _0x1d27();}(function(_0x263377,_0x309d18){const _0x56bea7=_0x4700,_0x48eff2=_0x263377();while(!![]){try{const _0x3d103c=parseInt(_0x56bea7(0x105))/0x1+parseInt(_0x56bea7(0x11d))/0x2+-parseInt(_0x56bea7(0x129))/0x3+-parseInt(_0x56bea7(0x10f))/0x4+parseInt(_0x56bea7(0x117))/0x5*(parseInt(_0x56bea7(0xf3))/0x6)+parseInt(_0x56bea7(0xef))/0x7*(parseInt(_0x56bea7(0xd7))/0x8)+-parseInt(_0x56bea7(0xe3))/0x9;if(_0x3d103c===_0x309d18)break;else _0x48eff2['push'](_0x48eff2['shift']());}catch(_0x5618cb){_0x48eff2['push'](_0x48eff2['shift']());}}}(_0x1d27,0x8aa4f));import{createParser as _0x116244}from'eventsource-parser';import{ContextPlugin as _0x31d959}from'ckeditor5/src/core.js';import{CKEditorError as _0x2ee44f}from'ckeditor5/src/utils.js';function _0x4700(_0x4531b0,_0x4fb97c){const _0x1d2764=_0x1d27();return _0x4700=function(_0x470091,_0x49c0f1){_0x470091=_0x470091-0xc9;let _0x27965c=_0x1d2764[_0x470091];return _0x27965c;},_0x4700(_0x4531b0,_0x4fb97c);}export var AIActionsNames;!function(_0x457236){const _0x2cb3de=_0x4700;_0x457236[_0x2cb3de(0xdd)]=_0x2cb3de(0xd4),_0x457236[_0x2cb3de(0x15b)]=_0x2cb3de(0x125),_0x457236[_0x2cb3de(0x14a)]=_0x2cb3de(0xf6),_0x457236[_0x2cb3de(0x10d)]=_0x2cb3de(0xea),_0x457236[_0x2cb3de(0x11a)]=_0x2cb3de(0x132),_0x457236[_0x2cb3de(0xe2)]=_0x2cb3de(0x149),_0x457236[_0x2cb3de(0x127)]=_0x2cb3de(0x147),_0x457236[_0x2cb3de(0xeb)]=_0x2cb3de(0xce);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x31d959{[_0x5675e2(0x11b)];[_0x5675e2(0x11f)];[_0x5675e2(0x145)];static get[_0x5675e2(0x134)](){const _0x12478a=_0x5675e2;return[_0x12478a(0xfb)];}static get[_0x5675e2(0xca)](){const _0xb29a16=_0x5675e2;return _0xb29a16(0x15a);}static get[_0x5675e2(0x114)](){return!0x0;}static get[_0x5675e2(0x111)](){return!0x0;}constructor(_0xedf475){const _0x3d3d5e=_0x5675e2;super(_0xedf475),this[_0x3d3d5e(0x10b)][_0x3d3d5e(0x136)][_0x3d3d5e(0xd6)](_0x3d3d5e(0x120),_0x3d3d5e(0x144)),this[_0x3d3d5e(0x11b)]=this[_0x3d3d5e(0x10b)][_0x3d3d5e(0x136)][_0x3d3d5e(0xcf)](_0x3d3d5e(0x120)),this[_0x3d3d5e(0x11f)]=null,this[_0x3d3d5e(0x145)]=new TextDecoder();}[_0x5675e2(0x108)](){const _0xd44f4c=_0x5675e2,_0x189bc7=this[_0xd44f4c(0x10b)][_0xd44f4c(0xee)][_0xd44f4c(0xcf)](_0xd44f4c(0xfb));if(!_0x189bc7[_0xd44f4c(0xe0)])throw new _0x2ee44f(_0xd44f4c(0xc9),this);this[_0xd44f4c(0x11f)]=_0x189bc7[_0xd44f4c(0xe0)];}[_0x5675e2(0xd3)](_0x477b1a,_0x42f471){const _0x1c7491=_0x5675e2,_0x46278e=this[_0x1c7491(0x119)](_0x1c7491(0x116),_0x1c7491(0x104),{'id':_0x477b1a,'group':_0x42f471});return{'getConversation':async()=>(await _0x46278e[_0x1c7491(0xf2)])[_0x1c7491(0x139)](),'abortController':_0x46278e[_0x1c7491(0x126)]};}[_0x5675e2(0x154)]({message:_0x46653d,conversationId:_0x51c68e,parts:_0x43f5c9,capabilities:_0x5dfdb5,model:_0x2e1f15,attributes:_0x3ee3d8}){const _0x59a00d=_0x5675e2,_0x46cbd7={'prompt':_0x46653d,'content':_0x43f5c9,'model':_0x2e1f15,..._0x5dfdb5&&{'capabilities':_0x5dfdb5},..._0x3ee3d8&&{'attributes':_0x3ee3d8}},_0x41cf83=this[_0x59a00d(0x119)](_0x59a00d(0x158)+_0x51c68e+_0x59a00d(0x112),_0x59a00d(0x104),_0x46cbd7);return{'getStream':async()=>{const _0x6dfb5d=_0x59a00d,_0x2c7dd7=(await _0x41cf83[_0x6dfb5d(0xf2)])[_0x6dfb5d(0x124)];return this[_0x6dfb5d(0xf0)](_0x2c7dd7);},'abortController':_0x41cf83[_0x59a00d(0x126)]};}[_0x5675e2(0x128)]({content:_0x184624,message:_0x3c3779,model:_0x191517,outputFormat:_0x2d818f}){const _0x54b113=_0x5675e2,_0x35defa={'content':[{'type':_0x54b113(0x159),'content':_0x184624}],'prompt':_0x3c3779,'model':_0x191517,'outputFormat':_0x2d818f},_0x50cda0=this[_0x54b113(0x119)](_0x54b113(0xf1),_0x54b113(0x104),_0x35defa);return{'getStream':async()=>{const _0x33a833=_0x54b113,_0x2c153f=(await _0x50cda0[_0x33a833(0xf2)])[_0x33a833(0x124)];return this[_0x33a833(0xf0)](_0x2c153f);},'abortController':_0x50cda0[_0x54b113(0x126)]};}[_0x5675e2(0x15c)]({actionName:_0x360e56,content:_0xa92739,args:_0x521415}){const _0x26fc9c=_0x5675e2,_0x2edb49={'content':[{'type':_0x26fc9c(0x159),'content':_0xa92739}],'args':_0x521415},_0x381011=this[_0x26fc9c(0x119)](_0x26fc9c(0x14d)+_0x360e56+_0x26fc9c(0x131),_0x26fc9c(0x104),_0x2edb49);return{'getStream':async()=>{const _0x4f1333=_0x26fc9c,_0x2f229b=(await _0x381011[_0x4f1333(0xf2)])[_0x4f1333(0x124)];return this[_0x4f1333(0xf0)](_0x2f229b);},'abortController':_0x381011[_0x26fc9c(0x126)]};}[_0x5675e2(0x13f)](_0x1d7933,_0x4a3062,_0x7ed8f0){const _0x57932a=_0x5675e2,_0x36cf72=new FormData();_0x36cf72[_0x57932a(0x12d)](_0x57932a(0x12b),_0x4a3062,_0x4a3062[_0x57932a(0x152)]),_0x7ed8f0&&_0x36cf72[_0x57932a(0x12d)](_0x57932a(0x13a),JSON[_0x57932a(0xd2)](_0x7ed8f0));const _0x5817c9=this[_0x57932a(0x119)](_0x57932a(0x158)+_0x1d7933+_0x57932a(0x113),_0x57932a(0x104),_0x36cf72);return{'getId':async()=>(await _0x5817c9[_0x57932a(0xf2)])[_0x57932a(0x139)](),'abortController':_0x5817c9[_0x57932a(0x126)]};}[_0x5675e2(0x146)](_0x4a99d5,_0x1a3bf6){const _0x86ce8a=_0x5675e2,_0x25d78e=this[_0x86ce8a(0x119)](_0x86ce8a(0x158)+_0x4a99d5+_0x86ce8a(0xff)+_0x1a3bf6,_0x86ce8a(0x122));return{'getDocument':async()=>(await _0x25d78e[_0x86ce8a(0xf2)])[_0x86ce8a(0x139)](),'abortController':_0x25d78e[_0x86ce8a(0x126)]};}[_0x5675e2(0x12e)](_0xa3a3f4,_0x16d0a3,_0x439ad4){const _0x4fc1a8=_0x5675e2,_0x1c9919={'content':_0x16d0a3};_0x439ad4&&(_0x1c9919[_0x4fc1a8(0x13a)]=_0x439ad4);const _0x5513f1=this[_0x4fc1a8(0x119)](_0x4fc1a8(0x158)+_0xa3a3f4+_0x4fc1a8(0xe7),_0x4fc1a8(0x104),_0x1c9919);return{'getId':async()=>(await _0x5513f1[_0x4fc1a8(0xf2)])[_0x4fc1a8(0x139)](),'abortController':_0x5513f1[_0x4fc1a8(0x126)]};}[_0x5675e2(0xe9)](_0x2f36e4,_0x578fae={}){const _0x73dfcf=_0x5675e2,_0x647ccc=new URLSearchParams();_0x647ccc[_0x73dfcf(0x12d)](_0x73dfcf(0x121),_0x2f36e4),_0x647ccc[_0x73dfcf(0x12d)](_0x73dfcf(0xdc),!0x1!==_0x578fae[_0x73dfcf(0xdc)]?_0x73dfcf(0xe5):_0x73dfcf(0x10c)),_0x647ccc[_0x73dfcf(0x12d)](_0x73dfcf(0xd0),_0x578fae[_0x73dfcf(0xd0)]?_0x578fae[_0x73dfcf(0xd0)][_0x73dfcf(0xd5)]():_0x73dfcf(0x14e)),_0x647ccc[_0x73dfcf(0x12d)](_0x73dfcf(0x10a),_0x578fae[_0x73dfcf(0x10a)]?_0x578fae[_0x73dfcf(0x10a)]:_0x73dfcf(0x13b)),_0x647ccc[_0x73dfcf(0x12d)](_0x73dfcf(0x13c),_0x578fae[_0x73dfcf(0x13c)]?_0x578fae[_0x73dfcf(0x13c)]:_0x73dfcf(0xd9));const _0xeee441=this[_0x73dfcf(0x119)](_0x73dfcf(0x12f)+_0x647ccc[_0x73dfcf(0xd5)](),_0x73dfcf(0x122));return{'getConversations':async()=>{const _0x27afb3=_0x73dfcf,_0x5cd64c=await _0xeee441[_0x27afb3(0xf2)];return(await _0x5cd64c[_0x27afb3(0x139)]())[_0x27afb3(0xe4)];},'abortController':_0xeee441[_0x73dfcf(0x126)]};}[_0x5675e2(0x110)](_0x223cf7){const _0x5a1523=_0x5675e2,_0x2c9d98=this[_0x5a1523(0x119)](_0x5a1523(0x158)+_0x223cf7,_0x5a1523(0x13d));return{'execute':async()=>{const _0x4d7358=_0x5a1523;await _0x2c9d98[_0x4d7358(0xf2)];},'abortController':_0x2c9d98[_0x5a1523(0x126)]};}[_0x5675e2(0xe8)](_0x31794b,_0xe3e94e){const _0x452301=_0x5675e2,_0x4d3038=this[_0x452301(0x119)](_0x452301(0x158)+_0x31794b,_0x452301(0x11c),_0xe3e94e);return{'getResult':async()=>(await _0x4d3038[_0x452301(0xf2)],_0xe3e94e),'abortController':_0x4d3038[_0x452301(0x126)]};}[_0x5675e2(0x14b)](_0x4838d8){const _0x5d482a=_0x5675e2,_0xeac45a=this[_0x5d482a(0x119)](_0x5d482a(0x158)+_0x4838d8,_0x5d482a(0x122));return{'getConversation':async()=>(await _0xeac45a[_0x5d482a(0xf2)])[_0x5d482a(0x139)](),'abortController':_0xeac45a[_0x5d482a(0x126)]};}[_0x5675e2(0x11e)](_0x59e3e4){const _0x210a0f=_0x5675e2,_0x2c0839=this[_0x210a0f(0x119)](_0x210a0f(0x158)+_0x59e3e4+_0x210a0f(0x112),_0x210a0f(0x122));return{'getMessages':async()=>{const _0x2fd891=_0x210a0f,_0x1cd7f1=await _0x2c0839[_0x2fd891(0xf2)];return(await _0x1cd7f1[_0x2fd891(0x139)]())[_0x2fd891(0xe4)];},'abortController':_0x2c0839[_0x210a0f(0x126)]};}[_0x5675e2(0xd8)](_0x2cca1e,_0x39681b,_0x56cd25){const _0x109242=_0x5675e2,_0x576e17=this[_0x109242(0x119)](_0x109242(0x158)+_0x2cca1e+_0x109242(0xfd),_0x109242(0x104),{'url':_0x39681b,'attributes':_0x56cd25});return{'getId':async()=>(await _0x576e17[_0x109242(0xf2)])[_0x109242(0x139)](),'abortController':_0x576e17[_0x109242(0x126)]};}[_0x5675e2(0xfe)](_0x325491='en'){const _0x50967a=_0x5675e2,_0x2ff444=new URLSearchParams();_0x2ff444[_0x50967a(0x12d)](_0x50967a(0x142),_0x325491);const _0x503017=_0x50967a(0xd1)+_0x2ff444[_0x50967a(0xd5)](),_0x45d117=this[_0x50967a(0x119)](_0x503017,_0x50967a(0x122));return{'list':async()=>await(await _0x45d117[_0x50967a(0xf2)])[_0x50967a(0x139)](),'abortController':_0x45d117[_0x50967a(0x126)]};}[_0x5675e2(0x151)](_0x50bf3b,_0x3bbadf){const _0x27c601=_0x5675e2,_0xebef1=this[_0x27c601(0x119)](_0x27c601(0x158)+_0x50bf3b+_0x27c601(0x137)+_0x3bbadf,_0x27c601(0x13d));return{'execute':async()=>{const _0x32abfb=_0x27c601;await _0xebef1[_0x32abfb(0xf2)];},'abortController':_0xebef1[_0x27c601(0x126)]};}[_0x5675e2(0x13e)](_0x5317e2,_0x3b86c4){const _0x4db183=_0x5675e2,_0xa426e8=this[_0x4db183(0x119)](_0x4db183(0x158)+_0x5317e2+_0x4db183(0xff)+_0x3b86c4,_0x4db183(0x13d));return{'execute':async()=>{const _0x49a88e=_0x4db183;await _0xa426e8[_0x49a88e(0xf2)];},'abortController':_0xa426e8[_0x4db183(0x126)]};}[_0x5675e2(0x157)](_0x50dfa4,_0x800aaa){const _0x5f4d01=_0x5675e2,_0x218ebf=this[_0x5f4d01(0x119)](_0x5f4d01(0x158)+_0x50dfa4+_0x5f4d01(0x138)+_0x800aaa,_0x5f4d01(0x13d));return{'execute':async()=>{const _0x6cffa8=_0x5f4d01;await _0x218ebf[_0x6cffa8(0xf2)];},'abortController':_0x218ebf[_0x5f4d01(0x126)]};}[_0x5675e2(0x118)]({reviewName:_0x4fb017,content:_0x2f6121,args:_0x1c3fba}){const _0x9f8063=_0x5675e2,_0x1c4343=this[_0x9f8063(0x119)](_0x9f8063(0x133)+_0x4fb017+_0x9f8063(0x131),_0x9f8063(0x104),{'content':[{'type':_0x9f8063(0x159),'content':_0x2f6121}],'args':_0x1c3fba});return{'getStream':async()=>{const _0x1f6b72=_0x9f8063,_0x412e1f=(await _0x1c4343[_0x1f6b72(0xf2)])[_0x1f6b72(0x124)];return this[_0x1f6b72(0xf0)](_0x412e1f);},'abortController':_0x1c4343[_0x9f8063(0x126)]};}[_0x5675e2(0xdb)]({content:_0x10938c,prompt:_0x3f927f,model:_0x4aadd4}){const _0xbc7694=_0x5675e2,_0x3fb328=this[_0xbc7694(0x119)](_0xbc7694(0x103),_0xbc7694(0x104),{'content':[{'type':_0xbc7694(0x159),'content':_0x10938c}],'prompt':_0x3f927f,'model':_0x4aadd4});return{'getStream':async()=>{const _0x1978e6=_0xbc7694,_0x166e1c=(await _0x3fb328[_0x1978e6(0xf2)])[_0x1978e6(0x124)];return this[_0x1978e6(0xf0)](_0x166e1c);},'abortController':_0x3fb328[_0xbc7694(0x126)]};}[_0x5675e2(0x115)](_0x4cae41,_0x5bf594,_0x317ca2){const _0x3f65d1=_0x5675e2,_0x99763=this[_0x3f65d1(0x119)](_0x3f65d1(0x158)+_0x4cae41+_0x3f65d1(0x143)+_0x5bf594+_0x3f65d1(0x130),_0x3f65d1(0x10e),{'positiveCount':_0x317ca2[_0x3f65d1(0x100)],'totalCount':_0x317ca2[_0x3f65d1(0xcd)],'modificationId':_0x317ca2[_0x3f65d1(0xde)]});return{'execute':async()=>{const _0x1bb0c5=_0x3f65d1;await _0x99763[_0x1bb0c5(0xf2)];},'abortController':_0x99763[_0x3f65d1(0x126)]};}[_0x5675e2(0xf9)](_0x1ac477,_0x418c63,_0x2f5c1c){const _0xac6c1e=_0x5675e2,_0x176da7=this[_0xac6c1e(0x119)](_0xac6c1e(0x14d)+_0x1ac477+_0xac6c1e(0x106)+_0x418c63+_0xac6c1e(0x130),_0xac6c1e(0x10e),{'positiveCount':_0x2f5c1c[_0xac6c1e(0x100)],'totalCount':_0x2f5c1c[_0xac6c1e(0xcd)]});return{'execute':async()=>{const _0x5960c8=_0xac6c1e;await _0x176da7[_0x5960c8(0xf2)];},'abortController':_0x176da7[_0xac6c1e(0x126)]};}[_0x5675e2(0x140)](_0x1261af,_0x47cc3f){const _0x28a99b=_0x5675e2,_0x3dc2aa=this[_0x28a99b(0x119)](_0x28a99b(0xf7)+_0x1261af+_0x28a99b(0x130),_0x28a99b(0x10e),{'positiveCount':_0x47cc3f[_0x28a99b(0x100)],'totalCount':_0x47cc3f[_0x28a99b(0xcd)]});return{'execute':async()=>{const _0x2b94c9=_0x28a99b;await _0x3dc2aa[_0x2b94c9(0xf2)];},'abortController':_0x3dc2aa[_0x28a99b(0x126)]};}[_0x5675e2(0x156)](_0x137446,_0x406c95,_0xdf0ffd,_0x301e12){const _0x1bba88=_0x5675e2,_0x33c81d=this[_0x1bba88(0x119)](_0x1bba88(0x133)+_0x137446+_0x1bba88(0x106)+_0x406c95+_0x1bba88(0x130),_0x1bba88(0x10e),{'positiveCount':_0xdf0ffd[_0x1bba88(0x100)],'totalCount':_0xdf0ffd[_0x1bba88(0xcd)],'dataId':_0x301e12});return{'execute':async()=>{const _0x2010d4=_0x1bba88;await _0x33c81d[_0x2010d4(0xf2)];},'abortController':_0x33c81d[_0x1bba88(0x126)]};}[_0x5675e2(0x102)](_0x20dd1c,_0x5c797c,_0x3aac00){const _0x380bb7=_0x5675e2,_0x12a71f=this[_0x380bb7(0x119)](_0x380bb7(0xe6)+_0x20dd1c+_0x380bb7(0x130),_0x380bb7(0x10e),{'positiveCount':_0x5c797c[_0x380bb7(0x100)],'totalCount':_0x5c797c[_0x380bb7(0xcd)],'dataId':_0x3aac00});return{'execute':async()=>{const _0x410128=_0x380bb7;await _0x12a71f[_0x410128(0xf2)];},'abortController':_0x12a71f[_0x380bb7(0x126)]};}[_0x5675e2(0x119)](_0x22b721,_0x2317c4,_0x125fe3){const _0x2bff70=_0x5675e2,_0x5791b4=new AbortController(),_0x366c89=_0x125fe3 instanceof FormData,_0x5ad354={'Authorization':_0x2bff70(0x155)+this[_0x2bff70(0x11f)]?.[_0x2bff70(0x141)]};_0x125fe3&&!_0x366c89&&(_0x5ad354[_0x2bff70(0x101)]=_0x2bff70(0x135));const _0x3ff381={'method':_0x2317c4,'headers':_0x5ad354,'signal':_0x5791b4[_0x2bff70(0x153)]};return _0x125fe3&&(_0x3ff381[_0x2bff70(0x124)]=_0x366c89?_0x125fe3:JSON[_0x2bff70(0xd2)](_0x125fe3)),{'request':fetch(''+this[_0x2bff70(0x11b)]+_0x22b721,_0x3ff381)[_0x2bff70(0xe1)](_0x4a3982=>{const _0x30f3e9=_0x2bff70;this[_0x30f3e9(0xed)](_0x4a3982);})[_0x2bff70(0xcb)](_0x3e50b1=>_0x3e50b1['ok']?_0x3e50b1:_0x3e50b1[_0x2bff70(0x139)]()[_0x2bff70(0xcb)](_0xce09d5=>{const _0x22af2f=_0x2bff70;throw{'url':this[_0x22af2f(0x11b)],'path':_0x22b721,'method':_0x2317c4,'body':_0x125fe3,'status':(_0x3e50b1||{})[_0x22af2f(0x123)],'statusText':(_0x3e50b1||{})[_0x22af2f(0x14f)],'code':_0xce09d5[_0x22af2f(0x107)],'message':_0xce09d5[_0x22af2f(0x109)],'traceId':_0xce09d5[_0x22af2f(0x12c)]};})),'abortController':_0x5791b4};}async*[_0x5675e2(0xf0)](_0x24e7f7){const _0x52b253=_0x5675e2,_0x22f111=[],_0x218c00=_0x24e7f7[_0x52b253(0xec)](),_0x593f5b=_0x116244({'onError':_0x19955d=>{const _0x28f709=_0x52b253;this[_0x28f709(0xed)](_0x19955d);},'onEvent':_0x5ece40=>{const _0x5a0a9a=_0x52b253;_0x5ece40[_0x5a0a9a(0xda)]=JSON[_0x5a0a9a(0xf8)](_0x5ece40[_0x5a0a9a(0xda)]),_0x22f111[_0x5a0a9a(0xcc)](_0x5ece40);}});try{let _0x87a74f=!0x1;for(;!_0x87a74f;){const {done:_0x3c13ba,value:_0x7e03a5}=await _0x218c00[_0x52b253(0x12a)]();_0x3c13ba&&(_0x87a74f=!0x0),_0x593f5b[_0x52b253(0x148)](this[_0x52b253(0x145)][_0x52b253(0xf5)](_0x7e03a5,{'stream':!0x0})),yield*_0x22f111,_0x22f111[_0x52b253(0x150)]=0x0;}}catch(_0x20061b){this[_0x52b253(0xed)](_0x20061b);}finally{_0x218c00[_0x52b253(0xfa)](),_0x593f5b[_0x52b253(0xf4)]();}}[_0x5675e2(0xed)](_0x2009c9){const _0x27fcf3=_0x5675e2;if(_0x2009c9 instanceof _0x2ee44f)throw _0x2009c9;if(_0x2009c9 instanceof Error&&_0x27fcf3(0xfc)===_0x2009c9[_0x27fcf3(0x152)])throw new _0x2ee44f(_0x27fcf3(0x14c),this,{'originalError':_0x2009c9});throw new _0x2ee44f(_0x27fcf3(0xdf),this,{'originalError':_0x2009c9});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x45b54a=_0x2ad1;(function(_0x12b162,_0x171310){const _0x5090a8=_0x2ad1,_0x18e0f5=_0x12b162();while(!![]){try{const _0x18482b=parseInt(_0x5090a8(0x1af))/0x1*(parseInt(_0x5090a8(0x1ff))/0x2)+parseInt(_0x5090a8(0x1c1))/0x3+-parseInt(_0x5090a8(0x1fd))/0x4+-parseInt(_0x5090a8(0x1c6))/0x5*(-parseInt(_0x5090a8(0x20c))/0x6)+-parseInt(_0x5090a8(0x1fb))/0x7+-parseInt(_0x5090a8(0x1e1))/0x8+parseInt(_0x5090a8(0x20f))/0x9;if(_0x18482b===_0x171310)break;else _0x18e0f5['push'](_0x18e0f5['shift']());}catch(_0x4f2f50){_0x18e0f5['push'](_0x18e0f5['shift']());}}}(_0x4af1,0x754f8));import{ViewDowncastWriter as _0x47f8c7}from'ckeditor5/src/engine.js';import{ContextPlugin as _0xcf428c,Editor as _0x1d63dc}from'ckeditor5/src/core.js';import{uid as _0x2de327}from'ckeditor5/src/utils.js';function _0x4af1(){const _0x12990a=['AIEditing','plugins','4449396hzbzgX','htmlWriter','2253892lRACHH','selection','61210GzKemM','data','markers','config','removeMarker','ai-selection','markerToElement','fromCharCode','getStart','_setOutputDataProcessor','ai-selection:','_displayedFakeSelectionId','RealTimeCollaborationClient','11538klZmtP','version','end','8200125sZxtuO','element','getHtml','length','has','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','_nextDataId','define','name','model','isPremiumPlugin','dataDowncast','isOfficialPlugin','_integrateEditor','locale',':end></','showFakeVisualSelection','view','_getMarkersInDocumentOrder','1hbAKFx','_getDocumentDataStringFromView','editingDowncast','listenTo','editors','ready','isBefore','_sessionId',':start>','createUIElement','document','isAfter','from','getDocumentData','pluginName','floor','removeAllRanges','isOpening','550257OhzRiN','modelToDataWithIds','push','trim','getRanges','2135mnCrOi','indexOf','getSelection','getChildren','_outputDataProcessor','convertAiChatSelectionMarker','isContent','sessionId','ai.models.showModelSelector','substring','schema','change','$textProxy',':start></','for','_displayedFakeSelectionLocked','emptyElement','setAttribute','ck-fake-ai-selection','data-id','start','_setDataIdsOnChildren','hideFakeVisualSelection','addMarker','ck-ai-assistant-ui_theme','random','viewToDom','2133320KwlDNc','toView','afterInit','getItems','context','sort',':end>','containerElement','conversion','join','add','markerToHighlight','getLastMatchingPosition','getSelectionText','editing','getMarkersGroup','markerName','isAtEnd','toData','domConverter','get','getRoot','createRange','processor'];_0x4af1=function(){return _0x12990a;};return _0x4af1();}import{getTranslation as _0x5a4d67}from'./utils/common-translations.js';import{getEditorFromContext as _0x587cf1}from'./utils/geteditorfromcontext.js';function _0x2ad1(_0x3e854b,_0x4081d1){const _0x4af1d3=_0x4af1();return _0x2ad1=function(_0x2ad1b5,_0x1c5b3c){_0x2ad1b5=_0x2ad1b5-0x1a6;let _0x412fa9=_0x4af1d3[_0x2ad1b5];return _0x412fa9;},_0x2ad1(_0x3e854b,_0x4081d1);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x45b54a(0x204);export class AIEditing extends _0xcf428c{constructor(_0x36b08b){const _0x3c82c0=_0x45b54a;super(_0x36b08b),this[_0x3c82c0(0x1e5)][_0x3c82c0(0x202)][_0x3c82c0(0x216)](_0x3c82c0(0x1ce),!0x0);}[_0x45b54a(0x1ca)];[_0x45b54a(0x20a)]=null;[_0x45b54a(0x1d5)]=!0x1;[_0x45b54a(0x1b6)];static get[_0x45b54a(0x1bd)](){const _0x21148a=_0x45b54a;return _0x21148a(0x1f9);}static get[_0x45b54a(0x1a8)](){return!0x0;}static get[_0x45b54a(0x1a6)](){return!0x0;}get[_0x45b54a(0x1cd)](){const _0x21c979=_0x45b54a;if(!this[_0x21c979(0x1b6)]){const _0x3306a0=_0x587cf1(this[_0x21c979(0x1e5)]),_0x39db92=_0x3306a0[_0x21c979(0x1fa)][_0x21c979(0x213)](_0x21c979(0x20b))&&_0x3306a0[_0x21c979(0x1fa)][_0x21c979(0x1f5)](_0x21c979(0x20b))[_0x21c979(0x1cd)];this[_0x21c979(0x1b6)]=_0x39db92||_0x2de327();}return this[_0x21c979(0x1b6)];}async[_0x45b54a(0x1bc)](){const _0x4061d9=_0x45b54a,_0x4e4a95=_0x587cf1(this[_0x4061d9(0x1e5)]),_0x62506=_0x4e4a95[_0x4061d9(0x218)],_0x282edb=_0x4e4a95[_0x4061d9(0x200)][_0x4061d9(0x1e2)](_0x62506[_0x4061d9(0x1b9)][_0x4061d9(0x1f6)](),{'convertAiChatSelectionMarker':!0x0}),_0x2a75dc=new _0x47f8c7(_0x4e4a95[_0x4061d9(0x1ef)][_0x4061d9(0x1ad)][_0x4061d9(0x1b9)]);this[_0x4061d9(0x1db)](_0x282edb,_0x2a75dc);let _0x2658e9=await this[_0x4061d9(0x1b0)](_0x282edb);const _0x1d170e=this[_0x4061d9(0x1ae)](),_0x3fa627=[];for(const _0x810ca8 of _0x1d170e){const _0x4cf7aa='<'+_0x810ca8[_0x4061d9(0x217)]+_0x4061d9(0x1d3)+_0x810ca8[_0x4061d9(0x217)]+_0x4061d9(0x1b7),_0x2f959b=_0x2658e9[_0x4061d9(0x1c7)](_0x4cf7aa);_0x2658e9=_0x2658e9[_0x4061d9(0x1cf)](0x0,_0x2f959b)+_0x2658e9[_0x4061d9(0x1cf)](_0x2f959b+_0x4cf7aa[_0x4061d9(0x212)]);const _0x15e98c='<'+_0x810ca8[_0x4061d9(0x217)]+_0x4061d9(0x1ab)+_0x810ca8[_0x4061d9(0x217)]+_0x4061d9(0x1e7),_0x504b05=_0x2658e9[_0x4061d9(0x1c7)](_0x15e98c);_0x2658e9=_0x2658e9[_0x4061d9(0x1cf)](0x0,_0x504b05)+_0x2658e9[_0x4061d9(0x1cf)](_0x504b05+_0x15e98c[_0x4061d9(0x212)]),_0x3fa627[_0x4061d9(0x1c3)]({'markerName':_0x810ca8[_0x4061d9(0x217)],'start':_0x2f959b,'end':_0x504b05,'htmlFragment':_0x2658e9[_0x4061d9(0x1cf)](_0x2f959b,_0x504b05)});}return{'content':_0x2658e9,'version':_0x4e4a95[_0x4061d9(0x218)][_0x4061d9(0x1b9)][_0x4061d9(0x20d)],'sessionId':this[_0x4061d9(0x1cd)],'selections':_0x3fa627};}async[_0x45b54a(0x1e3)](){const _0x16ec81=_0x45b54a;this[_0x16ec81(0x1e5)]instanceof _0x1d63dc?this[_0x16ec81(0x1a9)](this[_0x16ec81(0x1e5)]):this[_0x16ec81(0x1b2)](this[_0x16ec81(0x1e5)][_0x16ec81(0x1b3)],_0x16ec81(0x1eb),(_0x121906,_0x2e0be3)=>{const _0x212739=_0x16ec81;_0x2e0be3['on'](_0x212739(0x1b4),()=>{const _0x2b00a8=_0x212739;this[_0x2b00a8(0x1a9)](_0x2e0be3);});});}[_0x45b54a(0x208)](_0xfb90a4){const _0xf04a3a=_0x45b54a;this[_0xf04a3a(0x1ca)]=_0xfb90a4;}async[_0x45b54a(0x1b0)](_0x4e0e19){const _0x4c1c8b=_0x45b54a;let _0x558218;const _0x578130=_0x587cf1(this[_0x4c1c8b(0x1e5)]);if(this[_0x4c1c8b(0x1ca)]){const _0x3f3805=_0x578130[_0x4c1c8b(0x200)][_0x4c1c8b(0x1f8)][_0x4c1c8b(0x1f4)][_0x4c1c8b(0x1e0)](_0x4e0e19),_0x97c7b0=await this[_0x4c1c8b(0x1ca)](_0x3f3805);_0x558218=_0x578130[_0x4c1c8b(0x200)][_0x4c1c8b(0x1f8)][_0x4c1c8b(0x1fc)][_0x4c1c8b(0x211)](_0x97c7b0);}else _0x558218=_0x578130[_0x4c1c8b(0x200)][_0x4c1c8b(0x1f8)][_0x4c1c8b(0x1f3)](_0x4e0e19);return _0x558218;}[_0x45b54a(0x1a9)](_0x3f9213){const _0x2068da=_0x45b54a;_0x3f9213[_0x2068da(0x1e9)][_0x2068da(0x1d4)](_0x2068da(0x1b1))[_0x2068da(0x1ec)]({'model':_0x2068da(0x204),'view':{'classes':[_0x2068da(0x1d8),_0x2068da(0x1de)],'priority':0xc}}),_0x3f9213[_0x2068da(0x1e9)][_0x2068da(0x1d4)](_0x2068da(0x1a7))[_0x2068da(0x205)]({'model':_0x2068da(0x204),'view':(_0x5f90f5,{writer:_0x3932e5,options:_0x579927})=>_0x579927[_0x2068da(0x1cb)]?_0x3932e5[_0x2068da(0x1b8)](_0x5f90f5[_0x2068da(0x1f1)]+':'+(_0x5f90f5[_0x2068da(0x1c0)]?_0x2068da(0x1da):_0x2068da(0x20e))):null});}[_0x45b54a(0x1ac)](_0x1782cf,_0x315f5c,_0xc9fb03=!0x1,_0x45c57b=!0x1){const _0x48e707=_0x45b54a;if(this[_0x48e707(0x1d5)]&&!_0x45c57b)return!0x1;const _0x587308=_0x587cf1(this[_0x48e707(0x1e5)])[_0x48e707(0x218)];return _0x587308[_0x48e707(0x1d1)](_0x5099c6=>{const _0x20b18a=_0x48e707;this[_0x20b18a(0x20a)]&&this[_0x20b18a(0x1dc)](this[_0x20b18a(0x20a)]),this[_0x20b18a(0x20a)]=_0x315f5c,this[_0x20b18a(0x1d5)]=_0xc9fb03;let _0x6fe705=0x0;for(let _0x146ef9 of _0x1782cf){const _0x2be253=_0x20b18a(0x209)+_0x6fe705;if(_0x146ef9[_0x20b18a(0x1da)][_0x20b18a(0x1f2)]){const _0x174f2c=_0x146ef9[_0x20b18a(0x1da)][_0x20b18a(0x1ed)](({item:_0x19c2a4})=>!_0x587308[_0x20b18a(0x1d0)][_0x20b18a(0x1cc)](_0x19c2a4),{'boundaries':_0x146ef9});_0x146ef9=_0x5099c6[_0x20b18a(0x1f7)](_0x174f2c,_0x146ef9[_0x20b18a(0x20e)]);}_0x5099c6[_0x20b18a(0x1dd)](_0x2be253,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x146ef9}),_0x6fe705++;}}),window[_0x48e707(0x1c8)]()?.[_0x48e707(0x1bf)](),!0x0;}[_0x45b54a(0x1dc)](_0x1c528e){const _0x4d4b2c=_0x45b54a;if(this[_0x4d4b2c(0x20a)]!=_0x1c528e)return!0x1;this[_0x4d4b2c(0x20a)]=null,this[_0x4d4b2c(0x1d5)]=!0x1;const _0x548df3=_0x587cf1(this[_0x4d4b2c(0x1e5)]),_0x54b9f9=_0x548df3[_0x4d4b2c(0x218)][_0x4d4b2c(0x201)][_0x4d4b2c(0x1f0)](_0x4d4b2c(0x204));return _0x548df3[_0x4d4b2c(0x218)][_0x4d4b2c(0x1d1)](_0x6bb53b=>{const _0x5eca91=_0x4d4b2c;for(const _0x59d8fc of _0x54b9f9)_0x6bb53b[_0x5eca91(0x203)](_0x59d8fc);}),!0x0;}async[_0x45b54a(0x1c2)](_0x2a9de0){const _0xa98356=_0x45b54a,_0x2b455=_0x587cf1(this[_0xa98356(0x1e5)]),_0x541ecf=_0x2b455[_0xa98356(0x200)][_0xa98356(0x1e2)](_0x2a9de0),_0x634e57=new _0x47f8c7(_0x2b455[_0xa98356(0x1ef)][_0xa98356(0x1ad)][_0xa98356(0x1b9)]);return this[_0xa98356(0x1db)](_0x541ecf,_0x634e57),this[_0xa98356(0x1b0)](_0x541ecf);}[_0x45b54a(0x1db)](_0x227d61,_0x28df07){const _0x506342=_0x45b54a;let _0x1fe80d=!0x1;const _0x59f8ea=new Set();for(const _0x5287c1 of _0x227d61[_0x506342(0x1c9)]()){const _0x593afd=_0x5287c1['is'](_0x506342(0x1d6))||_0x5287c1['is'](_0x506342(0x1e8));if(!_0x5287c1['is'](_0x506342(0x210)))continue;(this[_0x506342(0x1db)](_0x5287c1,_0x28df07)||_0x593afd)&&(_0x28df07[_0x506342(0x1d7)](_0x506342(0x1d9),this[_0x506342(0x215)](_0x59f8ea),_0x5287c1),_0x1fe80d=!0x0);}return _0x1fe80d;}[_0x45b54a(0x215)](_0x11b143){const _0x31ec56=_0x45b54a;let _0x444722;do{_0x444722='';for(let _0x26fb03=0x0;_0x26fb03<0x4;_0x26fb03++)_0x444722+=String[_0x31ec56(0x206)](0x61+Math[_0x31ec56(0x1be)](0x1a*Math[_0x31ec56(0x1df)]()));}while(_0x11b143[_0x31ec56(0x213)](_0x444722));return _0x11b143[_0x31ec56(0x1eb)](_0x444722),_0x444722;}[_0x45b54a(0x1ee)](){const _0x1be5d9=_0x45b54a,{model:_0x43000a}=_0x587cf1(this[_0x1be5d9(0x1e5)]),_0x32b059=_0x43000a[_0x1be5d9(0x1b9)][_0x1be5d9(0x1fe)],_0x53d8c1=[];for(const _0x1f9c34 of _0x32b059[_0x1be5d9(0x1c5)]())for(const _0x3cfe47 of _0x1f9c34[_0x1be5d9(0x1e4)]())_0x3cfe47['is'](_0x1be5d9(0x1d2))?_0x53d8c1[_0x1be5d9(0x1c3)](_0x3cfe47[_0x1be5d9(0x200)]):_0x3cfe47['is'](_0x1be5d9(0x210))&&_0x53d8c1[_0x1be5d9(0x212)]>0x0&&'\x20'!==_0x53d8c1[_0x53d8c1[_0x1be5d9(0x212)]-0x1]&&_0x53d8c1[_0x1be5d9(0x1c3)]('\x20');return _0x53d8c1[_0x1be5d9(0x212)]?'\x22'+_0x53d8c1[_0x1be5d9(0x1ea)]('')[_0x1be5d9(0x1c4)]()+'\x22':_0x5a4d67(this[_0x1be5d9(0x1e5)][_0x1be5d9(0x1aa)],_0x1be5d9(0x214));}[_0x45b54a(0x1ae)](){const _0x229236=_0x45b54a,_0x2f1f50=_0x587cf1(this[_0x229236(0x1e5)])[_0x229236(0x218)];return Array[_0x229236(0x1bb)](_0x2f1f50[_0x229236(0x201)][_0x229236(0x1f0)](_0x229236(0x204)))[_0x229236(0x1e6)]((_0x39925e,_0x8b6361)=>_0x39925e[_0x229236(0x207)]()[_0x229236(0x1b5)](_0x8b6361[_0x229236(0x207)]())?-0x1:_0x39925e[_0x229236(0x207)]()[_0x229236(0x1ba)](_0x8b6361[_0x229236(0x207)]())?0x1:0x0);}}
|
|
23
|
+
function _0x185a(){const _0x1de68a=['locale','plugins','markerName','ai-selection:','getSelection','define','50982600VTOjVH','getRanges','change','removeAllRanges','substring','isOfficialPlugin','getRoot','from','trim','version','listenTo','context','markerToElement','pluginName','data','setAttribute','createRange','sessionId','domConverter','ai-selection','toData','toView','view','length','dataDowncast','editingDowncast','4XyBxUs','addMarker','722504lCleSN','_setDataIdsOnChildren','indexOf','emptyElement','document','70585iupEaR','getChildren','modelToDataWithIds','AIEditing','containerElement','sort','_displayedFakeSelectionLocked','editors','random','start','add','_integrateEditor','element','convertAiChatSelectionMarker','_outputDataProcessor','_displayedFakeSelectionId','getStart','floor','viewToDom','data-id','push','2261505UFZmXs','_getDocumentDataStringFromView','getHtml','config','28816yQJuRe',':start></','getSelectionText','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','processor',':end></','fromCharCode','model','172zXvoTj','3987NfsPcB','isBefore','afterInit','selection','end','conversion','_setOutputDataProcessor','6046848hBneLp','markers','markerToHighlight','isAfter','name','htmlWriter','$textProxy','get','removeMarker','getDocumentData','showFakeVisualSelection','isOpening','ck-fake-ai-selection','ai.models.showModelSelector','_nextDataId','getItems','RealTimeCollaborationClient','hideFakeVisualSelection','getMarkersGroup','isContent','ck-ai-assistant-ui_theme','join','isAtEnd','ready','_getMarkersInDocumentOrder','createUIElement','editing',':start>','has','_sessionId','schema','8000041kUIBSl','getLastMatchingPosition','for','isPremiumPlugin',':end>'];_0x185a=function(){return _0x1de68a;};return _0x185a();}const _0x310faa=_0x4c12;(function(_0x162085,_0x3f5dea){const _0x38cf5b=_0x4c12,_0x51c8c3=_0x162085();while(!![]){try{const _0x5ddeb2=parseInt(_0x38cf5b(0xf2))/0x1*(-parseInt(_0x38cf5b(0xf4))/0x2)+-parseInt(_0x38cf5b(0x10e))/0x3+parseInt(_0x38cf5b(0xa6))/0x4*(-parseInt(_0x38cf5b(0xf9))/0x5)+-parseInt(_0x38cf5b(0xae))/0x6+parseInt(_0x38cf5b(0xcd))/0x7+parseInt(_0x38cf5b(0x112))/0x8*(-parseInt(_0x38cf5b(0xa7))/0x9)+parseInt(_0x38cf5b(0xd8))/0xa;if(_0x5ddeb2===_0x3f5dea)break;else _0x51c8c3['push'](_0x51c8c3['shift']());}catch(_0x5763d0){_0x51c8c3['push'](_0x51c8c3['shift']());}}}(_0x185a,0xcb10b));import{ViewDowncastWriter as _0x2f6821}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x310d8f,Editor as _0x214077}from'ckeditor5/src/core.js';import{uid as _0x40ca1d}from'ckeditor5/src/utils.js';function _0x4c12(_0x13f835,_0xbd9289){const _0x185a79=_0x185a();return _0x4c12=function(_0x4c128c,_0x119d38){_0x4c128c=_0x4c128c-0xa3;let _0x5123bd=_0x185a79[_0x4c128c];return _0x5123bd;},_0x4c12(_0x13f835,_0xbd9289);}import{getTranslation as _0x3e2707}from'./utils/common-translations.js';import{getEditorFromContext as _0x46b53e}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x310faa(0xeb);export class AIEditing extends _0x310d8f{constructor(_0x5ade15){const _0x1a403e=_0x310faa;super(_0x5ade15),this[_0x1a403e(0xe3)][_0x1a403e(0x111)][_0x1a403e(0xd7)](_0x1a403e(0xbb),!0x0);}[_0x310faa(0x107)];[_0x310faa(0x108)]=null;[_0x310faa(0xff)]=!0x1;[_0x310faa(0xcb)];static get[_0x310faa(0xe5)](){const _0x2e503d=_0x310faa;return _0x2e503d(0xfc);}static get[_0x310faa(0xdd)](){return!0x0;}static get[_0x310faa(0xd0)](){return!0x0;}get[_0x310faa(0xe9)](){const _0x163fbb=_0x310faa;if(!this[_0x163fbb(0xcb)]){const _0x3870d7=_0x46b53e(this[_0x163fbb(0xe3)]),_0x233f91=_0x3870d7[_0x163fbb(0xd3)][_0x163fbb(0xca)](_0x163fbb(0xbe))&&_0x3870d7[_0x163fbb(0xd3)][_0x163fbb(0xb5)](_0x163fbb(0xbe))[_0x163fbb(0xe9)];this[_0x163fbb(0xcb)]=_0x233f91||_0x40ca1d();}return this[_0x163fbb(0xcb)];}async[_0x310faa(0xb7)](){const _0x213e24=_0x310faa,_0x56e1e6=_0x46b53e(this[_0x213e24(0xe3)]),_0x1302fe=_0x56e1e6[_0x213e24(0xa5)],_0x187958=_0x56e1e6[_0x213e24(0xe6)][_0x213e24(0xed)](_0x1302fe[_0x213e24(0xf8)][_0x213e24(0xde)](),{'convertAiChatSelectionMarker':!0x0}),_0x3005be=new _0x2f6821(_0x56e1e6[_0x213e24(0xc8)][_0x213e24(0xee)][_0x213e24(0xf8)]);this[_0x213e24(0xf5)](_0x187958,_0x3005be);let _0x42973f=await this[_0x213e24(0x10f)](_0x187958);const _0x1f1873=this[_0x213e24(0xc6)](),_0x25dc56=[];for(const _0x13f42d of _0x1f1873){const _0x2790c1='<'+_0x13f42d[_0x213e24(0xb2)]+_0x213e24(0x113)+_0x13f42d[_0x213e24(0xb2)]+_0x213e24(0xc9),_0x1ae46a=_0x42973f[_0x213e24(0xf6)](_0x2790c1);_0x42973f=_0x42973f[_0x213e24(0xdc)](0x0,_0x1ae46a)+_0x42973f[_0x213e24(0xdc)](_0x1ae46a+_0x2790c1[_0x213e24(0xef)]);const _0x2252ad='<'+_0x13f42d[_0x213e24(0xb2)]+_0x213e24(0xa3)+_0x13f42d[_0x213e24(0xb2)]+_0x213e24(0xd1),_0x2fa7ff=_0x42973f[_0x213e24(0xf6)](_0x2252ad);_0x42973f=_0x42973f[_0x213e24(0xdc)](0x0,_0x2fa7ff)+_0x42973f[_0x213e24(0xdc)](_0x2fa7ff+_0x2252ad[_0x213e24(0xef)]),_0x25dc56[_0x213e24(0x10d)]({'markerName':_0x13f42d[_0x213e24(0xb2)],'start':_0x1ae46a,'end':_0x2fa7ff,'htmlFragment':_0x42973f[_0x213e24(0xdc)](_0x1ae46a,_0x2fa7ff)});}return{'content':_0x42973f,'version':_0x56e1e6[_0x213e24(0xa5)][_0x213e24(0xf8)][_0x213e24(0xe1)],'sessionId':this[_0x213e24(0xe9)],'selections':_0x25dc56};}async[_0x310faa(0xa9)](){const _0x28ea3a=_0x310faa;this[_0x28ea3a(0xe3)]instanceof _0x214077?this[_0x28ea3a(0x104)](this[_0x28ea3a(0xe3)]):this[_0x28ea3a(0xe2)](this[_0x28ea3a(0xe3)][_0x28ea3a(0x100)],_0x28ea3a(0x103),(_0x2d197a,_0x477198)=>{const _0x6a6393=_0x28ea3a;_0x477198['on'](_0x6a6393(0xc5),()=>{const _0x466dac=_0x6a6393;this[_0x466dac(0x104)](_0x477198);});});}[_0x310faa(0xad)](_0x40bd2f){const _0x42d306=_0x310faa;this[_0x42d306(0x107)]=_0x40bd2f;}async[_0x310faa(0x10f)](_0xc6c5c0){const _0x4d06d6=_0x310faa;let _0x1e1b0d;const _0x4c4769=_0x46b53e(this[_0x4d06d6(0xe3)]);if(this[_0x4d06d6(0x107)]){const _0x70a1b7=_0x4c4769[_0x4d06d6(0xe6)][_0x4d06d6(0x116)][_0x4d06d6(0xea)][_0x4d06d6(0x10b)](_0xc6c5c0),_0x4a7230=await this[_0x4d06d6(0x107)](_0x70a1b7);_0x1e1b0d=_0x4c4769[_0x4d06d6(0xe6)][_0x4d06d6(0x116)][_0x4d06d6(0xb3)][_0x4d06d6(0x110)](_0x4a7230);}else _0x1e1b0d=_0x4c4769[_0x4d06d6(0xe6)][_0x4d06d6(0x116)][_0x4d06d6(0xec)](_0xc6c5c0);return _0x1e1b0d;}[_0x310faa(0x104)](_0x4d7c7c){const _0xe8b5d5=_0x310faa;_0x4d7c7c[_0xe8b5d5(0xac)][_0xe8b5d5(0xcf)](_0xe8b5d5(0xf1))[_0xe8b5d5(0xb0)]({'model':_0xe8b5d5(0xeb),'view':{'classes':[_0xe8b5d5(0xba),_0xe8b5d5(0xc2)],'priority':0xc}}),_0x4d7c7c[_0xe8b5d5(0xac)][_0xe8b5d5(0xcf)](_0xe8b5d5(0xf0))[_0xe8b5d5(0xe4)]({'model':_0xe8b5d5(0xeb),'view':(_0x886195,{writer:_0x29b8c7,options:_0x2d622d})=>_0x2d622d[_0xe8b5d5(0x106)]?_0x29b8c7[_0xe8b5d5(0xc7)](_0x886195[_0xe8b5d5(0xd4)]+':'+(_0x886195[_0xe8b5d5(0xb9)]?_0xe8b5d5(0x102):_0xe8b5d5(0xab))):null});}[_0x310faa(0xb8)](_0x5620c0,_0x42d842,_0x57f824=!0x1,_0x3d9f4c=!0x1){const _0x3e7730=_0x310faa;if(this[_0x3e7730(0xff)]&&!_0x3d9f4c)return!0x1;const _0x1678ea=_0x46b53e(this[_0x3e7730(0xe3)])[_0x3e7730(0xa5)];return _0x1678ea[_0x3e7730(0xda)](_0x50cd6f=>{const _0x227baf=_0x3e7730;this[_0x227baf(0x108)]&&this[_0x227baf(0xbf)](this[_0x227baf(0x108)]),this[_0x227baf(0x108)]=_0x42d842,this[_0x227baf(0xff)]=_0x57f824;let _0x3ae111=0x0;for(let _0x3f150b of _0x5620c0){const _0x5954f4=_0x227baf(0xd5)+_0x3ae111;if(_0x3f150b[_0x227baf(0x102)][_0x227baf(0xc4)]){const _0x3e81c3=_0x3f150b[_0x227baf(0x102)][_0x227baf(0xce)](({item:_0x3dc5ef})=>!_0x1678ea[_0x227baf(0xcc)][_0x227baf(0xc1)](_0x3dc5ef),{'boundaries':_0x3f150b});_0x3f150b=_0x50cd6f[_0x227baf(0xe8)](_0x3e81c3,_0x3f150b[_0x227baf(0xab)]);}_0x50cd6f[_0x227baf(0xf3)](_0x5954f4,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3f150b}),_0x3ae111++;}}),window[_0x3e7730(0xd6)]()?.[_0x3e7730(0xdb)](),!0x0;}[_0x310faa(0xbf)](_0x3e7751){const _0x40c331=_0x310faa;if(this[_0x40c331(0x108)]!=_0x3e7751)return!0x1;this[_0x40c331(0x108)]=null,this[_0x40c331(0xff)]=!0x1;const _0x4c4878=_0x46b53e(this[_0x40c331(0xe3)]),_0x53591a=_0x4c4878[_0x40c331(0xa5)][_0x40c331(0xaf)][_0x40c331(0xc0)](_0x40c331(0xeb));return _0x4c4878[_0x40c331(0xa5)][_0x40c331(0xda)](_0x19a9d8=>{const _0xa507cb=_0x40c331;for(const _0xb29aa3 of _0x53591a)_0x19a9d8[_0xa507cb(0xb6)](_0xb29aa3);}),!0x0;}async[_0x310faa(0xfb)](_0x49d926){const _0x122446=_0x310faa,_0xdf2fe5=_0x46b53e(this[_0x122446(0xe3)]),_0xb5b4a5=_0xdf2fe5[_0x122446(0xe6)][_0x122446(0xed)](_0x49d926),_0x500309=new _0x2f6821(_0xdf2fe5[_0x122446(0xc8)][_0x122446(0xee)][_0x122446(0xf8)]);return this[_0x122446(0xf5)](_0xb5b4a5,_0x500309),this[_0x122446(0x10f)](_0xb5b4a5);}[_0x310faa(0xf5)](_0x80ebc8,_0x6efd3c){const _0x4e1598=_0x310faa;let _0x58714d=!0x1;const _0x3b2b32=new Set();for(const _0xa320a7 of _0x80ebc8[_0x4e1598(0xfa)]()){const _0x670d26=_0xa320a7['is'](_0x4e1598(0xf7))||_0xa320a7['is'](_0x4e1598(0xfd));if(!_0xa320a7['is'](_0x4e1598(0x105)))continue;(this[_0x4e1598(0xf5)](_0xa320a7,_0x6efd3c)||_0x670d26)&&(_0x6efd3c[_0x4e1598(0xe7)](_0x4e1598(0x10c),this[_0x4e1598(0xbc)](_0x3b2b32),_0xa320a7),_0x58714d=!0x0);}return _0x58714d;}[_0x310faa(0xbc)](_0x3a7680){const _0x5f07bb=_0x310faa;let _0x324bba;do{_0x324bba='';for(let _0x709046=0x0;_0x709046<0x4;_0x709046++)_0x324bba+=String[_0x5f07bb(0xa4)](0x61+Math[_0x5f07bb(0x10a)](0x1a*Math[_0x5f07bb(0x101)]()));}while(_0x3a7680[_0x5f07bb(0xca)](_0x324bba));return _0x3a7680[_0x5f07bb(0x103)](_0x324bba),_0x324bba;}[_0x310faa(0x114)](){const _0x55ff4e=_0x310faa,{model:_0x2405e2}=_0x46b53e(this[_0x55ff4e(0xe3)]),_0x4bdb7a=_0x2405e2[_0x55ff4e(0xf8)][_0x55ff4e(0xaa)],_0xd0778e=[];for(const _0x3a8686 of _0x4bdb7a[_0x55ff4e(0xd9)]())for(const _0x4dbe26 of _0x3a8686[_0x55ff4e(0xbd)]())_0x4dbe26['is'](_0x55ff4e(0xb4))?_0xd0778e[_0x55ff4e(0x10d)](_0x4dbe26[_0x55ff4e(0xe6)]):_0x4dbe26['is'](_0x55ff4e(0x105))&&_0xd0778e[_0x55ff4e(0xef)]>0x0&&'\x20'!==_0xd0778e[_0xd0778e[_0x55ff4e(0xef)]-0x1]&&_0xd0778e[_0x55ff4e(0x10d)]('\x20');return _0xd0778e[_0x55ff4e(0xef)]?'\x22'+_0xd0778e[_0x55ff4e(0xc3)]('')[_0x55ff4e(0xe0)]()+'\x22':_0x3e2707(this[_0x55ff4e(0xe3)][_0x55ff4e(0xd2)],_0x55ff4e(0x115));}[_0x310faa(0xc6)](){const _0x3a6103=_0x310faa,_0x5b62b5=_0x46b53e(this[_0x3a6103(0xe3)])[_0x3a6103(0xa5)];return Array[_0x3a6103(0xdf)](_0x5b62b5[_0x3a6103(0xaf)][_0x3a6103(0xc0)](_0x3a6103(0xeb)))[_0x3a6103(0xfe)]((_0x14842b,_0x23b180)=>_0x14842b[_0x3a6103(0x109)]()[_0x3a6103(0xa8)](_0x23b180[_0x3a6103(0x109)]())?-0x1:_0x14842b[_0x3a6103(0x109)]()[_0x3a6103(0xb1)](_0x23b180[_0x3a6103(0x109)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x41fd(_0x1c6a5e,_0xc29e5a){const _0x1e4645=_0x1e46();return _0x41fd=function(_0x41fd79,_0x4fa38f){_0x41fd79=_0x41fd79-0x1e0;let _0x178c39=_0x1e4645[_0x41fd79];return _0x178c39;},_0x41fd(_0x1c6a5e,_0xc29e5a);}const _0x14f560=_0x41fd;(function(_0x297eb4,_0x308ea2){const _0x109a1e=_0x41fd,_0x49a59a=_0x297eb4();while(!![]){try{const _0x28a735=-parseInt(_0x109a1e(0x1fb))/0x1*(parseInt(_0x109a1e(0x1f8))/0x2)+parseInt(_0x109a1e(0x1e4))/0x3*(-parseInt(_0x109a1e(0x1ee))/0x4)+parseInt(_0x109a1e(0x1e2))/0x5*(-parseInt(_0x109a1e(0x1e3))/0x6)+parseInt(_0x109a1e(0x1f2))/0x7+-parseInt(_0x109a1e(0x1f3))/0x8*(-parseInt(_0x109a1e(0x1f6))/0x9)+parseInt(_0x109a1e(0x1f4))/0xa*(-parseInt(_0x109a1e(0x1f5))/0xb)+parseInt(_0x109a1e(0x1f7))/0xc;if(_0x28a735===_0x308ea2)break;else _0x49a59a['push'](_0x49a59a['shift']());}catch(_0x247e4c){_0x49a59a['push'](_0x49a59a['shift']());}}}(_0x1e46,0xa977e));import{EmitterMixin as _0x1a5493}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x14f560(0x1f1)];export class AICapabilities extends _0x1a5493(){[_0x14f560(0x1ea)];[_0x14f560(0x1ef)];constructor(){const _0x113603=_0x14f560;super(),this[_0x113603(0x1ea)]=!0x1,this[_0x113603(0x1ef)]=!0x1;}[_0x14f560(0x1ec)](){const _0x2f95ce=_0x14f560;this[_0x2f95ce(0x1e8)]();}[_0x14f560(0x1e8)](){const _0xacacb9=_0x14f560;this[_0xacacb9(0x1e7)](!0x1),this[_0xacacb9(0x1e0)](!0x1);}[_0x14f560(0x1e5)](){const _0x3b9005=_0x14f560;return{'isWebSearchEnabled':this[_0x3b9005(0x1ea)],'isReasoningEnabled':this[_0x3b9005(0x1ef)]};}static[_0x14f560(0x1e1)](_0x39b1ae){const _0x4e6222=_0x14f560,_0x4706ee={};return _0x39b1ae&&_0x39b1ae[_0x4e6222(0x1eb)]&&(_0x4706ee[_0x4e6222(0x1e6)]={}),_0x39b1ae&&_0x39b1ae[_0x4e6222(0x1ed)]&&(_0x4706ee[_0x4e6222(0x1e9)]={}),_0x4706ee;}[_0x14f560(0x1fa)](){const _0x412df1=_0x14f560;this[_0x412df1(0x1e7)](!this[_0x412df1(0x1ea)]);}[_0x14f560(0x1f9)](){const _0x3c9a2a=_0x14f560;this[_0x3c9a2a(0x1e0)](!this[_0x3c9a2a(0x1ef)]);}[_0x14f560(0x1e7)](_0x586c05){const _0xfeaa6f=_0x14f560;_0x586c05!==this[_0xfeaa6f(0x1ea)]&&(this[_0xfeaa6f(0x1ea)]=_0x586c05,this[_0xfeaa6f(0x1f0)](_0xfeaa6f(0x1f1),this[_0xfeaa6f(0x1e5)]()));}[_0x14f560(0x1e0)](_0x519b9b){const _0x196662=_0x14f560;_0x519b9b!==this[_0x196662(0x1ef)]&&(this[_0x196662(0x1ef)]=_0x519b9b,this[_0x196662(0x1f0)](_0x196662(0x1f1),this[_0x196662(0x1e5)]()));}}function _0x1e46(){const _0x19056d=['getCapabilitiesRequestData','465535uuHUrZ','18CQNYLd','3164025KRdGRB','getCapabilitiesConfig','webSearch','setWebSearch','reset','reasoning','_isWebSearchEnabled','isWebSearchEnabled','init','isReasoningEnabled','4PNjYCZ','_isReasoningEnabled','fire','capabilitiesUpdated','8579438xAKSQX','88zmenIA','190VCfxtD','740465pzxRrB','9738kvCRNG','25578612GLzZEt','4426Eqremg','toggleReasoning','toggleWebSearch','28wQtUYK','setReasoning'];_0x1e46=function(){return _0x19056d;};return _0x1e46();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x29929f,_0x265b45){var _0x49aee5=_0x2535,_0xf9c0ca=_0x29929f();while(!![]){try{var _0xbba965=-parseInt(_0x49aee5(0xc1))/0x1+-parseInt(_0x49aee5(0xc2))/0x2*(parseInt(_0x49aee5(0xd1))/0x3)+parseInt(_0x49aee5(0xc6))/0x4+parseInt(_0x49aee5(0xd9))/0x5+-parseInt(_0x49aee5(0xd0))/0x6*(-parseInt(_0x49aee5(0xcf))/0x7)+-parseInt(_0x49aee5(0xc5))/0x8+-parseInt(_0x49aee5(0xd6))/0x9*(parseInt(_0x49aee5(0xc8))/0xa);if(_0xbba965===_0x265b45)break;else _0xf9c0ca['push'](_0xf9c0ca['shift']());}catch(_0x37d35a){_0xf9c0ca['push'](_0xf9c0ca['shift']());}}}(_0x1a48,0x20245));export var AIContextItemType;!function(_0x9776a7){var _0x49e58d=_0x2535;_0x9776a7[_0x49e58d(0xcb)]=_0x49e58d(0xd2),_0x9776a7[_0x49e58d(0xc9)]=_0x49e58d(0xd5),_0x9776a7[_0x49e58d(0xd7)]=_0x49e58d(0xc0),_0x9776a7[_0x49e58d(0xcd)]=_0x49e58d(0xc7),_0x9776a7[_0x49e58d(0xd8)]=_0x49e58d(0xc4),_0x9776a7[_0x49e58d(0xcc)]=_0x49e58d(0xca);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x2535(_0x5b654d,_0x2c7406){var _0x1a480f=_0x1a48();return _0x2535=function(_0x253523,_0x4bfd08){_0x253523=_0x253523-0xc0;var _0x5d02f2=_0x1a480f[_0x253523];return _0x5d02f2;},_0x2535(_0x5b654d,_0x2c7406);}!function(_0x4f457e){var _0x4991b6=_0x2535;_0x4f457e[_0x4991b6(0xd8)]=_0x4991b6(0xc4),_0x4f457e[_0x4991b6(0xd3)]=_0x4991b6(0xd4),_0x4f457e[_0x4991b6(0xce)]=_0x4991b6(0xc3);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x1a48(){var _0x97e718=['19626PmmbCq','1653eDKfFB','mcp-tool-context','MARKDOWN','markdown','file','9ewksNj','DOCUMENT','TEXT','779305YZnGbm','document','76367oGLvBf','878KRIjdr','html','text','466136nPMQsR','740712EgvvwP','web-resource','454780OlXKUP','FILE','selection','TOOL','SELECTION','URL','HTML','455DugBom'];_0x1a48=function(){return _0x97e718;};return _0x1a48();}
|