@ckeditor/ckeditor5-ai 47.7.2-alpha.0 → 47.7.3-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
|
-
const
|
|
24
|
-
|
|
23
|
+
function _0x28fc(_0x131d7d,_0x546b9c){const _0x4d2f3b=_0x4d2f();return _0x28fc=function(_0x28fc18,_0x37613d){_0x28fc18=_0x28fc18-0xe8;let _0x188ee9=_0x4d2f3b[_0x28fc18];return _0x188ee9;},_0x28fc(_0x131d7d,_0x546b9c);}const _0xb6b0fd=_0x28fc;(function(_0x5cbb6e,_0x5ea979){const _0xc5325b=_0x28fc,_0x1ddfab=_0x5cbb6e();while(!![]){try{const _0x410977=-parseInt(_0xc5325b(0x123))/0x1+-parseInt(_0xc5325b(0xf7))/0x2*(parseInt(_0xc5325b(0x13a))/0x3)+-parseInt(_0xc5325b(0x106))/0x4+parseInt(_0xc5325b(0xff))/0x5*(parseInt(_0xc5325b(0xf5))/0x6)+parseInt(_0xc5325b(0x10a))/0x7*(-parseInt(_0xc5325b(0x12e))/0x8)+parseInt(_0xc5325b(0x12f))/0x9+parseInt(_0xc5325b(0x144))/0xa*(parseInt(_0xc5325b(0x111))/0xb);if(_0x410977===_0x5ea979)break;else _0x1ddfab['push'](_0x1ddfab['shift']());}catch(_0x175561){_0x1ddfab['push'](_0x1ddfab['shift']());}}}(_0x4d2f,0x9cbf9));import{ListItemView as _0x351b77,HighlightedTextView as _0xc3e05c,ButtonView as _0x170ac0,ListView as _0x493baa,IconView as _0x59788e,createDropdown as _0x140376,InputTextView as _0x82c1a8}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0xc5f37,IconPin as _0x18fd85,IconCheck as _0x16f28d,IconCancel as _0x145cb7}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1e9aa0,ConfirmMixin as _0x440d3c}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x24c4c6}from'es-toolkit/compat';import{AISpinnerView as _0x2ca88b}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x5d281b}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x440d3c(_0x351b77){['id'];static [_0xb6b0fd(0x14a)]={'remove':_0xb6b0fd(0x133),'rename':_0xb6b0fd(0x142),'pin':_0xb6b0fd(0x11a),'unpin':_0xb6b0fd(0x120)};[_0xb6b0fd(0xf0)];[_0xb6b0fd(0x11d)];[_0xb6b0fd(0xec)];constructor(_0x3e2922,_0x4f2cc3){const _0x81d8fc=_0xb6b0fd;super(_0x3e2922);const _0x438cd3=this[_0x81d8fc(0x121)];this[_0x81d8fc(0x147)](_0x81d8fc(0x13f),!0x1),this[_0x81d8fc(0x147)](_0x81d8fc(0x100),!0x0),this[_0x81d8fc(0x147)](_0x81d8fc(0xfa),!!_0x4f2cc3[_0x81d8fc(0xfa)]),this[_0x81d8fc(0x147)](_0x81d8fc(0x135),null),this['id']=_0x4f2cc3['id'];const {title:_0x13eb96,createdAt:_0x48ab1e,active:_0x579a64=!0x1}=_0x4f2cc3;this[_0x81d8fc(0xec)]=new _0xc3e05c(),this[_0x81d8fc(0xec)][_0x81d8fc(0xf8)]=_0x13eb96,this[_0x81d8fc(0xec)][_0x81d8fc(0x139)]({'attributes':{'class':[_0x81d8fc(0x115)]}});const _0x463054=this[_0x81d8fc(0x126)](),_0x42730f=this[_0x81d8fc(0x119)](_0x3e2922),_0x1c5d8f=this[_0x81d8fc(0x13e)](),_0x5129b2=this[_0x81d8fc(0x130)](_0x3e2922,_0x13eb96),_0x493b04=this[_0x81d8fc(0x110)](_0x3e2922,_0x5129b2),_0x5577a6=this[_0x81d8fc(0x12a)](_0x3e2922,_0x5129b2);this[_0x81d8fc(0xf0)]=this[_0x81d8fc(0x13c)](),this[_0x81d8fc(0x11d)]=this[_0x81d8fc(0x13c)](),this[_0x81d8fc(0x11d)][_0x81d8fc(0x104)](this[_0x81d8fc(0xec)]),this[_0x81d8fc(0xf0)][_0x81d8fc(0x104)](_0x42730f),this[_0x81d8fc(0xf0)][_0x81d8fc(0x104)](_0x1c5d8f),this['on'](_0x81d8fc(0x103),(_0x2490de,_0xa409d8,_0x3bdfd5)=>{const _0x38dc43=_0x81d8fc;this[_0x38dc43(0xf0)][_0x38dc43(0x137)](),this[_0x38dc43(0x11d)][_0x38dc43(0x137)](),_0x3bdfd5?(this[_0x38dc43(0xf0)][_0x38dc43(0x104)](_0x493b04),this[_0x38dc43(0xf0)][_0x38dc43(0x104)](_0x5577a6),this[_0x38dc43(0x11d)][_0x38dc43(0x104)](_0x5129b2),_0x5129b2[_0x38dc43(0x129)][_0x38dc43(0x11c)]()):(this[_0x38dc43(0xf0)][_0x38dc43(0x104)](_0x42730f),this[_0x38dc43(0xf0)][_0x38dc43(0x104)](_0x1c5d8f),this[_0x38dc43(0x11d)][_0x38dc43(0x104)](this[_0x38dc43(0xec)]));}),this[_0x81d8fc(0x116)]({'tag':'li','attributes':{'class':[_0x81d8fc(0xfe),_0x579a64?_0x81d8fc(0xfd):'',_0x438cd3['if'](_0x81d8fc(0x100),_0x81d8fc(0x112),_0x4003fc=>!_0x4003fc),_0x438cd3['if'](_0x81d8fc(0x13f),_0x81d8fc(0x12c))],'role':_0x81d8fc(0xe8)},'children':[{'tag':_0x81d8fc(0x11f),'attributes':{'class':[_0x81d8fc(0x140)]},'children':[{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x10c),_0x438cd3['if'](_0x81d8fc(0x135),_0x81d8fc(0x112),_0x337599=>!!_0x337599)]},'children':_0x579a64?[_0x463054]:[]},{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x13d),_0x438cd3['if'](_0x81d8fc(0x135),_0x81d8fc(0x112),_0x4c1d7d=>!_0x4c1d7d)]},'children':[this[_0x81d8fc(0xfc)]()]}]},{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x117)]},'children':[{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x10d)]},'on':{'click':this[_0x81d8fc(0x121)]['to'](_0x81d8fc(0x143))},'children':[{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0xef)]},'children':[{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x115),_0x438cd3['if'](_0x81d8fc(0x135),_0x81d8fc(0x112),_0x2b59e3=>!!_0x2b59e3)]},'children':this[_0x81d8fc(0x11d)]},{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0xed),_0x438cd3['if'](_0x81d8fc(0x135),_0x81d8fc(0x112),_0x1b758d=>!_0x1b758d)]},'children':[{'text':_0x438cd3['to'](_0x81d8fc(0x135),_0x591ff7=>_0x591ff7?_0x5d281b(this[_0x81d8fc(0x108)],AIChatHistoryListItemView[_0x81d8fc(0x14a)][_0x591ff7]):'')}]}]},{'tag':_0x81d8fc(0x11f),'attributes':{'class':[_0x81d8fc(0xf4)]},'children':[_0x48ab1e]}]},{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x12b)]},'children':this[_0x81d8fc(0xf0)]}]}]}),this['on'](_0x81d8fc(0x143),()=>{const _0x314c80=_0x81d8fc;this[_0x314c80(0x13f)]||this[_0x314c80(0x149)](_0x314c80(0x132),{'id':this['id']});});}[_0xb6b0fd(0x127)](_0x3a944e){const _0x4aa168=_0xb6b0fd;this[_0x4aa168(0xec)][_0x4aa168(0xf8)]=_0x24c4c6(_0x3a944e);}[_0xb6b0fd(0xfb)](_0x5cbb7c,_0x237566){const _0x3d2e91=_0xb6b0fd;this[_0x3d2e91(0x147)](_0x3d2e91(0x135),_0x237566?_0x5cbb7c:null);}[_0xb6b0fd(0x126)](){const _0x1a7946=_0xb6b0fd,_0x2de72b=new _0x59788e();return _0x2de72b[_0x1a7946(0x147)]({'content':_0x16f28d}),_0x2de72b;}[_0xb6b0fd(0x119)](_0x3bc650){const _0x30f319=_0xb6b0fd,_0x1b89a7=new _0x170ac0(_0x3bc650);return _0x1b89a7[_0x30f319(0x147)]({'label':_0x5d281b(_0x3bc650,_0x30f319(0xf6)),'icon':_0x18fd85,'withText':!0x1,'tooltip':!0x0}),_0x1b89a7[_0x30f319(0x122)](_0x30f319(0x138))['to'](this,_0x30f319(0xfa)),_0x1b89a7['on'](_0x30f319(0x107),()=>{const _0x17342f=_0x30f319,_0x3580cd=!this[_0x17342f(0xfa)];this[_0x17342f(0x149)](_0x17342f(0x105),{'id':this['id'],'pinned':_0x3580cd});}),_0x1b89a7;}[_0xb6b0fd(0x13e)](){const _0x54f8eb=_0xb6b0fd,_0x804d4f=_0x140376(this[_0x54f8eb(0x108)],_0x1e9aa0),_0x458e06=_0x804d4f[_0x54f8eb(0x136)][_0x54f8eb(0xf1)];_0x804d4f[_0x54f8eb(0x146)][_0x54f8eb(0x147)]({'label':_0x5d281b(this[_0x54f8eb(0x108)],_0x54f8eb(0x114)),'icon':_0xc5f37}),_0x804d4f[_0x54f8eb(0x145)]='sw';const _0x5141eb=new _0x170ac0(this[_0x54f8eb(0x108)]);_0x5141eb[_0x54f8eb(0x118)]=_0x5d281b(this[_0x54f8eb(0x108)],_0x54f8eb(0x134)),_0x5141eb[_0x54f8eb(0x10b)]=!0x0,_0x5141eb['on'](_0x54f8eb(0x107),()=>{const _0x38771f=_0x54f8eb;this[_0x38771f(0x13f)]=!0x0;});const _0x22e3db=new _0x170ac0(this[_0x54f8eb(0x108)]);_0x22e3db[_0x54f8eb(0x118)]=_0x5d281b(this[_0x54f8eb(0x108)],_0x54f8eb(0x10f)),_0x22e3db[_0x54f8eb(0x10b)]=!0x0,_0x22e3db['on'](_0x54f8eb(0x107),()=>{const _0xb7944b=_0x54f8eb;this[_0xb7944b(0x125)](_0x5d281b(this[_0xb7944b(0x108)],_0xb7944b(0xea)),this[_0xb7944b(0x129)])[_0xb7944b(0xf2)](()=>{const _0x298c41=_0xb7944b;this[_0x298c41(0x149)](_0x298c41(0x148),{'id':this['id']});});});const _0x243d68=new _0x493baa(this[_0x54f8eb(0x108)]),_0x29aed4=new _0x351b77(this[_0x54f8eb(0x108)]);_0x29aed4[_0x54f8eb(0xf1)][_0x54f8eb(0x104)](_0x5141eb);const _0xe98bc4=new _0x351b77(this[_0x54f8eb(0x108)]);return _0xe98bc4[_0x54f8eb(0xf1)][_0x54f8eb(0x104)](_0x22e3db),_0x243d68[_0x54f8eb(0x12d)][_0x54f8eb(0xf9)]([_0x29aed4,_0xe98bc4]),_0x458e06[_0x54f8eb(0x104)](_0x243d68),_0x804d4f;}[_0xb6b0fd(0x130)](_0x4dfd90,_0xaa287f){const _0x1f739d=_0xb6b0fd,_0x4ef9ea=new _0x82c1a8(_0x4dfd90),_0xf6d183=_0x4ef9ea[_0x1f739d(0x121)];return _0x4ef9ea[_0x1f739d(0xeb)]=_0xaa287f,_0x4ef9ea[_0x1f739d(0x139)]({'on':{'keydown':_0xf6d183['to'](_0x19f622=>{const _0x444033=_0x1f739d;_0x444033(0x131)==_0x19f622[_0x444033(0x102)]&&this[_0x444033(0x101)](_0x4ef9ea);})}}),_0x4ef9ea;}[_0xb6b0fd(0x110)](_0x525dbe,_0x3b502f){const _0x576079=_0xb6b0fd,_0xdbf161=new _0x170ac0(_0x525dbe);return _0xdbf161[_0x576079(0x147)]({'icon':_0x16f28d,'withText':!0x1,'tooltip':_0x5d281b(_0x525dbe,_0x576079(0xee))}),_0xdbf161[_0x576079(0x139)]({'attributes':{'class':[_0x576079(0xe9)]}}),_0xdbf161['on'](_0x576079(0x107),()=>{const _0x169e15=_0x576079;this[_0x169e15(0x101)](_0x3b502f);}),_0xdbf161;}[_0xb6b0fd(0x101)](_0x3adf13){const _0x259aa1=_0xb6b0fd,_0x2643ce=_0x3adf13[_0x259aa1(0x129)][_0x259aa1(0xeb)]||'';this[_0x259aa1(0xec)][_0x259aa1(0xf8)]=_0x2643ce,this[_0x259aa1(0x13f)]=!0x1,this[_0x259aa1(0x149)](_0x259aa1(0x10e),{'id':this['id'],'title':_0x2643ce});}[_0xb6b0fd(0x12a)](_0x49e317,_0x49156c){const _0x1cdfa9=_0xb6b0fd,_0x3215d7=new _0x170ac0(_0x49e317);return _0x3215d7[_0x1cdfa9(0x147)]({'icon':_0x145cb7,'withText':!0x1,'tooltip':_0x5d281b(_0x49e317,_0x1cdfa9(0x128))}),_0x3215d7[_0x1cdfa9(0x139)]({'attributes':{'class':[_0x1cdfa9(0xf3)]}}),_0x3215d7['on'](_0x1cdfa9(0x107),()=>{const _0x361032=_0x1cdfa9;this[_0x361032(0x13f)]=!0x1,_0x49156c[_0x361032(0xeb)]=this[_0x361032(0xec)][_0x361032(0xf8)]||'',this[_0x361032(0x149)](_0x361032(0x11e));}),_0x3215d7;}[_0xb6b0fd(0xfc)](){const _0x4ac84c=_0xb6b0fd,_0x1cc479=new _0x2ca88b(_0x4ac84c(0x109));return _0x1cc479[_0x4ac84c(0x100)]=!0x0,_0x1cc479;}[_0xb6b0fd(0x141)](_0x4149a0){const _0x4058b8=_0xb6b0fd;return this[_0x4058b8(0xec)]&&_0x4058b8(0x113)==typeof this[_0x4058b8(0xec)][_0x4058b8(0xf8)]&&this[_0x4058b8(0xec)][_0x4058b8(0xf8)][_0x4058b8(0x11b)](_0x4149a0)?{'title':!0x0}:null;}[_0xb6b0fd(0x124)](_0x58b03c){const _0x35bfb3=_0xb6b0fd;this[_0x35bfb3(0xec)][_0x35bfb3(0x124)](_0x58b03c);}}function _0x4d2f(){const _0x157497=['showConfirm','_createCheckView','updateTitle','AI_CHAT_HISTORY_CANCEL','element','_createCancelEditButtonView','ck-ai-chat-history__item-actions','ck-ai-chat-history__item--edit','items','1368DXkxgA','3570129mnZlHU','_createEditInputView','Enter','selectConversation','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_EDIT_NAME','loadingState','panelView','clear','isOn','extendTemplate','75dEqxuo','div','createCollection','ck-ai-loader','_createMenuDropdownView','isEdit','ck-ai-chat-history__item-check-container','isMatching','AI_CHAT_HISTORY_LOADING_RENAMING','click','1249750kSQGsT','panelPosition','buttonView','set','removeConversation','fire','LOADING_LABELS','listitem','ck-confirm-view-submit','AI_CHAT_HISTORY_REMOVE_CONFIRM','value','_titleView','ck-ai-loader__text','AI_CHAT_HISTORY_ACCEPT','ck-ai-chat-history__item-main-content','actions','children','then','ck-confirm-view-cancel','ck-ai-chat-history__item-date','328380mpKgrj','AI_CHAT_HISTORY_PIN_BUTTON','50774TnMkIK','text','addMany','pinned','updateLoadingState','_createSpinnerView','ck-ai-chat-history__item--active','ck-ai-chat-history__item','90xuhkqI','isVisible','_commitEditInputValue','key','change:isEdit','add','setConversationPinned','4849736WHOxDK','execute','locale','tiny','10549TuiYgG','withText','ck-ai-chat-history__item-check','ck-ai-chat-history__item-content','editConversationTitle','AI_CHAT_HISTORY_REMOVE','_createAcceptEditButtonView','187tGxeol','ck-hidden','string','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','ck-ai-chat-history__item-title','setTemplate','ck-ai-chat-history__item-row','label','_createPinButtonView','AI_CHAT_HISTORY_LOADING_PINNING','match','focus','mainContent','edit:cancel','span','AI_CHAT_HISTORY_LOADING_UNPINNING','bindTemplate','bind','759549JnbWrf','highlightText'];_0x4d2f=function(){return _0x157497;};return _0x4d2f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2a0056=_0x3643;(function(_0x2afac1,_0x568ff4){const _0x17b0a8=_0x3643,_0x459ec5=_0x2afac1();while(!![]){try{const _0x5392bb=-parseInt(_0x17b0a8(0x1e7))/0x1+parseInt(_0x17b0a8(0x1df))/0x2+parseInt(_0x17b0a8(0x1e1))/0x3*(parseInt(_0x17b0a8(0x1ef))/0x4)+-parseInt(_0x17b0a8(0x1d2))/0x5*(-parseInt(_0x17b0a8(0x1f3))/0x6)+parseInt(_0x17b0a8(0x1e9))/0x7+parseInt(_0x17b0a8(0x1f2))/0x8*(-parseInt(_0x17b0a8(0x1db))/0x9)+-parseInt(_0x17b0a8(0x1d7))/0xa*(parseInt(_0x17b0a8(0x1e4))/0xb);if(_0x5392bb===_0x568ff4)break;else _0x459ec5['push'](_0x459ec5['shift']());}catch(_0x3960c0){_0x459ec5['push'](_0x459ec5['shift']());}}}(_0x35b2,0xdb3b3));function _0x3643(_0x441583,_0x37f948){const _0x35b20e=_0x35b2();return _0x3643=function(_0x364312,_0x410226){_0x364312=_0x364312-0x1d2;let _0x4e461e=_0x35b20e[_0x364312];return _0x4e461e;},_0x3643(_0x441583,_0x37f948);}import{ListItemView as _0x19c839,View as _0x2302b9,ListView as _0xe76272}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x19c839{[_0x2a0056(0x1d4)];[_0x2a0056(0x1ee)];[_0x2a0056(0x1da)];constructor(_0x3d679d,{title:_0x1774f3,items:_0x66f4f3}){const _0x72e548=_0x2a0056;super(_0x3d679d);const _0x21ab35=this[_0x72e548(0x1f0)];this[_0x72e548(0x1d8)](_0x72e548(0x1dc),!0x0),this[_0x72e548(0x1d4)]=_0x1774f3,this[_0x72e548(0x1ee)]=_0x66f4f3;const _0x52a52b=new _0x2302b9(_0x3d679d);_0x52a52b[_0x72e548(0x1dd)]({'tag':_0x72e548(0x1de),'attributes':{'class':[_0x72e548(0x1d9)]},'children':[this[_0x72e548(0x1d4)]]}),this[_0x72e548(0x1da)]=new _0xe76272(_0x3d679d),this[_0x72e548(0x1da)][_0x72e548(0x1f1)][_0x72e548(0x1eb)](this[_0x72e548(0x1ee)]),this[_0x72e548(0x1dd)]({'tag':'li','attributes':{'class':[_0x72e548(0x1d6),_0x21ab35['if'](_0x72e548(0x1dc),_0x72e548(0x1e5),_0x3f4e48=>!_0x3f4e48)]},'children':[_0x52a52b,this[_0x72e548(0x1da)]]});}[_0x2a0056(0x1e8)](_0x3d337a){const _0x3ce4c4=_0x2a0056,_0x3994f7=this[_0x3ce4c4(0x1ee)][_0x3ce4c4(0x1ea)];let _0x33d1ec=0x0;for(const _0x47201c of this[_0x3ce4c4(0x1ee)]){if(_0x3d337a){const _0x460ab2=_0x47201c[_0x3ce4c4(0x1e0)](_0x3d337a);_0x47201c[_0x3ce4c4(0x1dc)]=!!_0x460ab2,_0x47201c[_0x3ce4c4(0x1e3)](_0x3d337a);}else _0x47201c[_0x3ce4c4(0x1dc)]=!0x0,_0x47201c[_0x3ce4c4(0x1e3)](null);_0x47201c[_0x3ce4c4(0x1dc)]&&_0x33d1ec++;}return this[_0x3ce4c4(0x1dc)]=_0x33d1ec>0x0,{'resultsCount':_0x33d1ec,'totalItemsCount':_0x3994f7};}[_0x2a0056(0x1e2)](_0x1c42c5){const _0x4ef2b8=_0x2a0056;return this[_0x4ef2b8(0x1ee)][_0x4ef2b8(0x1ed)](_0x3ea83f=>_0x3ea83f['id']===_0x1c42c5);}[_0x2a0056(0x1e6)](_0x401328){const _0x500a6d=_0x2a0056,_0xf4be4f=this[_0x500a6d(0x1ee)][_0x500a6d(0x1d3)](_0x401328);-0x1!==_0xf4be4f&&(this[_0x500a6d(0x1ee)][_0x500a6d(0x1d5)](_0xf4be4f,0x1),this[_0x500a6d(0x1da)][_0x500a6d(0x1f1)][_0x500a6d(0x1ec)](_0x401328));}}function _0x35b2(){const _0x4f8012=['set','ck-ai-chat-history__section-title','_itemsListView','1961271twUinm','isVisible','setTemplate','div','1948322heWCbl','isMatching','3BWOJcn','getItem','highlightText','31293284pLoOsZ','ck-hidden','removeItem','25468WbdqnW','filter','4176298YMqSCb','length','addMany','remove','find','itemsViews','6309176CIzsSl','bindTemplate','items','32pEdBAI','895134KvwvMz','50tcpjDF','indexOf','title','splice','ck-ai-chat-history__section','10VlHUyD'];_0x35b2=function(){return _0x4f8012;};return _0x35b2();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47c97c=_0x3b7c;function _0x3c93(){const _0x1e13d0=['7kguomT','5923005sdfKcs','items','3646893CRARFN','ck-ai-chat-history__sections','sections','3345450PeJdvq','filter','addMany','extendTemplate','2623096UpsvsM','1031144qAtztw','1955722vkwwEy','6847288poGVDr'];_0x3c93=function(){return _0x1e13d0;};return _0x3c93();}(function(_0x339318,_0x301e33){const _0xe60884=_0x3b7c,_0x4d4389=_0x339318();while(!![]){try{const _0x591718=parseInt(_0xe60884(0x91))/0x1+-parseInt(_0xe60884(0x92))/0x2+-parseInt(_0xe60884(0x89))/0x3+-parseInt(_0xe60884(0x90))/0x4+parseInt(_0xe60884(0x95))/0x5+parseInt(_0xe60884(0x8c))/0x6*(parseInt(_0xe60884(0x94))/0x7)+parseInt(_0xe60884(0x93))/0x8;if(_0x591718===_0x301e33)break;else _0x4d4389['push'](_0x4d4389['shift']());}catch(_0x503dc0){_0x4d4389['push'](_0x4d4389['shift']());}}}(_0x3c93,0xbe6bd));import{ListView as _0x4a0cdc}from'ckeditor5/src/ui.js';function _0x3b7c(_0x4da24,_0xaf6209){const _0x3c9370=_0x3c93();return _0x3b7c=function(_0x3b7cbc,_0x3ab9f7){_0x3b7cbc=_0x3b7cbc-0x88;let _0x2ca2c=_0x3c9370[_0x3b7cbc];return _0x2ca2c;},_0x3b7c(_0x4da24,_0xaf6209);}export class AIChatHistorySectionListView extends _0x4a0cdc{[_0x47c97c(0x8b)];constructor(_0x22061d,_0x72e418){const _0xe54d36=_0x47c97c;super(_0x22061d),this[_0xe54d36(0x8b)]=_0x72e418,this[_0xe54d36(0x88)][_0xe54d36(0x8e)](this[_0xe54d36(0x8b)]),this[_0xe54d36(0x8f)]({'attributes':{'class':[_0xe54d36(0x8a)]}});}[_0x47c97c(0x8d)](_0x52d787){const _0x116581=_0x47c97c;let _0x434e6b=0x0,_0x2a94d9=0x0;for(const _0x24d240 of this[_0x116581(0x8b)]){const {resultsCount:_0x486a40,totalItemsCount:_0x44bac1}=_0x24d240[_0x116581(0x8d)](_0x52d787);_0x434e6b+=_0x486a40,_0x2a94d9+=_0x44bac1;}return{'resultsCount':_0x434e6b,'totalItemsCount':_0x2a94d9};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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);}}}
|
|
23
|
+
function _0x1ecb(_0x42599d,_0x1e18c0){const _0xd31183=_0xd311();return _0x1ecb=function(_0x1ecb60,_0xf7feb3){_0x1ecb60=_0x1ecb60-0x66;let _0x1ca0f2=_0xd31183[_0x1ecb60];return _0x1ca0f2;},_0x1ecb(_0x42599d,_0x1e18c0);}const _0x2b422e=_0x1ecb;(function(_0x2efaf9,_0x5d2aeb){const _0x3b7810=_0x1ecb,_0x25bfde=_0x2efaf9();while(!![]){try{const _0x2d7d91=parseInt(_0x3b7810(0x6b))/0x1*(-parseInt(_0x3b7810(0xa7))/0x2)+-parseInt(_0x3b7810(0x87))/0x3+parseInt(_0x3b7810(0x7e))/0x4*(-parseInt(_0x3b7810(0x86))/0x5)+parseInt(_0x3b7810(0x8f))/0x6+parseInt(_0x3b7810(0x96))/0x7+-parseInt(_0x3b7810(0x89))/0x8+parseInt(_0x3b7810(0x9c))/0x9;if(_0x2d7d91===_0x5d2aeb)break;else _0x25bfde['push'](_0x25bfde['shift']());}catch(_0x4d9c4d){_0x25bfde['push'](_0x25bfde['shift']());}}}(_0xd311,0x3daf5));import{View as _0x4ebe7c,SearchTextView as _0x437336,FormHeaderView as _0xa9b73c,ButtonView as _0x361d00}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x2fd3e7,IconCancel as _0x57154a,IconPlus as _0x40fa7a}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2449f8}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x35b627}from'./aichathistorylistview.js';function _0xd311(){const _0xbb8428=['change:errorMessage','ck-ai-notification_error','children','_createListItemViews','getItem','searchView','bind','_updateViewVisibility','55117jLNmIy','errorMessage','ck-reset_all','removeItem','locale','some','push','AI_CHAT_HISTORY_HEADING','updateItemTitle','resizeButton','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','title','queryView','ck-ai-chat-history__content','div','_refreshSearch','change:isLoading','isMaximized','_createSearchView','8bjiYnK','search','isSearchViewVisible','isMainErrorViewVisible','isLoading','aiHistory','_createErrorView','element','419015GODIjc','276315YyLOSR','extendTemplate','966104FMYIFX','_createSkeletonView','clear','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-notification_error__dismiss-button','set','2214912nXKkRZ','fire','AI_CHAT_LABEL_NEW_CHAT','_createEmptyStateView','ck-ai-chat-history__empty-message','ck-ai-chat-history','indexOf','285313ZCKeRv','hasItems','skeletonView','splice','itemsViews','openChat','2505069AYLvzr','remove','add','updateTitle','change:hasItems','updateHistoryItemsWithCategories','ck-ai-chat-history__empty','updateLoadingState','sectionsView','isVisible','addMany','2YvHPjZ','render','AI_CHAT_HISTORY_SEARCH_LABEL','ltr','fieldView','ck-hidden','sections','setTemplate','delegate','length','ck-ai-chat__start-conversation','items','ck-ai-header\x20ck-ai-header_history','ck-ai-notification','isEmptyViewVisible','mainErrorView','value','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','updateItemLoadingState','ck-rounded-corners','removeHistoryItem','execute','emptyView','bindTemplate'];_0xd311=function(){return _0xbb8428;};return _0xd311();}import{AIChatHistoryListItemView as _0x179a44}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x175bfa}from'../aichathistoryui.js';import{AISkeletonView as _0x5ba013,SKELETON_DEFINITIONS as _0x4c1e86}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x378533}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x4a367c}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x4ebe7c{[_0x2b422e(0x68)];[_0x2b422e(0xb6)];[_0x2b422e(0x98)];[_0x2b422e(0xbd)];[_0x2b422e(0xa4)];[_0x2b422e(0x74)];constructor(_0x4cbd86,_0x63cb7e){const _0x2d4133=_0x2b422e;super(_0x4cbd86),this[_0x2d4133(0x8e)](_0x2d4133(0x97),!0x1),this[_0x2d4133(0x8e)](_0x2d4133(0x82),!0x0),this[_0x2d4133(0x8e)](_0x2d4133(0x6c),''),this[_0x2d4133(0x8e)](_0x2d4133(0x7c),!0x1),this[_0x2d4133(0x8e)](_0x2d4133(0x80),!0x1),this[_0x2d4133(0x8e)](_0x2d4133(0xb5),!0x1),this[_0x2d4133(0x8e)](_0x2d4133(0x81),!0x1);const _0x4ba36c=new _0xa9b73c(_0x4cbd86,{'label':_0x4a367c(_0x4cbd86,_0x2d4133(0x72)),'icon':_0x2fd3e7,'class':_0x2d4133(0xb3)});_0x63cb7e&&(this[_0x2d4133(0x74)]=_0x378533(_0x4cbd86,this),_0x4ba36c[_0x2d4133(0xc1)][_0x2d4133(0x9e)](this[_0x2d4133(0x74)])),this[_0x2d4133(0xa4)]=new _0x2449f8(_0x4cbd86,[]),this[_0x2d4133(0xa4)][_0x2d4133(0xaf)](..._0x175bfa)['to'](this),this[_0x2d4133(0xb6)]=this[_0x2d4133(0x84)](),this[_0x2d4133(0x98)]=this[_0x2d4133(0x8a)](),this[_0x2d4133(0xbd)]=this[_0x2d4133(0x92)](),this[_0x2d4133(0x68)]=this[_0x2d4133(0x7d)](),this[_0x2d4133(0xb6)][_0x2d4133(0x88)]({'attributes':{'class':[this[_0x2d4133(0xbe)]['if'](_0x2d4133(0x81),_0x2d4133(0xac),_0x414e10=>!_0x414e10)]}}),this['on'](_0x2d4133(0x7b),()=>this[_0x2d4133(0x6a)]()),this['on'](_0x2d4133(0xa0),()=>this[_0x2d4133(0x6a)]()),this['on'](_0x2d4133(0xbf),()=>this[_0x2d4133(0x6a)]()),this[_0x2d4133(0xae)]({'tag':_0x2d4133(0x79),'attributes':{'class':['ck',_0x2d4133(0x6d),_0x2d4133(0x94),_0x2d4133(0xba)],'dir':_0x2d4133(0xaa)},'children':[_0x4ba36c,{'tag':_0x2d4133(0x79),'attributes':{'class':[_0x2d4133(0x78)]},'children':[this[_0x2d4133(0x98)],this[_0x2d4133(0xb6)],this[_0x2d4133(0xbd)],this[_0x2d4133(0x68)]]}]});}[_0x2b422e(0x6a)](){const _0x14b3cb=_0x2b422e;this[_0x14b3cb(0x80)]=!this[_0x14b3cb(0x82)]&&this[_0x14b3cb(0x97)],this[_0x14b3cb(0xb5)]=!this[_0x14b3cb(0x82)]&&!this[_0x14b3cb(0x97)]&&!this[_0x14b3cb(0x6c)],this[_0x14b3cb(0x81)]=!this[_0x14b3cb(0x80)]&&!!this[_0x14b3cb(0x6c)];}[_0x2b422e(0x7d)](){const _0x7421d9=_0x2b422e,_0xa65d44=new _0x437336(this[_0x7421d9(0x6f)],{'filteredView':this[_0x7421d9(0xa4)],'queryView':{'label':_0x4a367c(this[_0x7421d9(0x6f)],_0x7421d9(0xa9))},'infoView':{'text':{'notFound':{'primary':_0x52062f=>_0x4a367c(this[_0x7421d9(0x6f)],_0x7421d9(0x75),_0x52062f),'secondary':_0x4a367c(this[_0x7421d9(0x6f)],_0x7421d9(0xb8))}}}}),_0x42837c=this[_0x7421d9(0x84)]();return _0x42837c[_0x7421d9(0x88)]({'attributes':{'class':[this[_0x7421d9(0xbe)]['if'](_0x7421d9(0x6c),_0x7421d9(0xac),_0x2e2b18=>!_0x2e2b18)]}}),_0xa65d44['on'](_0x7421d9(0xa8),()=>{const _0x421617=_0x7421d9;_0xa65d44[_0x421617(0xc1)][_0x421617(0x9e)](_0x42837c,0x1);}),_0xa65d44[_0x7421d9(0x88)]({'attributes':{'class':[this[_0x7421d9(0xbe)]['if'](_0x7421d9(0x80),_0x7421d9(0xac),_0x42b115=>!_0x42b115)]}}),_0xa65d44;}[_0x2b422e(0x8a)](){const _0x218243=_0x2b422e,_0x38ee3b=new _0x5ba013(this[_0x218243(0x6f)],_0x4c1e86[_0x218243(0x83)]);return _0x38ee3b[_0x218243(0x88)]({'attributes':{'class':[this[_0x218243(0xbe)]['if'](_0x218243(0x82),_0x218243(0xac),_0x1a9a96=>!_0x1a9a96)]}}),_0x38ee3b;}[_0x2b422e(0x84)](){const _0xd9e527=_0x2b422e,_0x5727dc=new _0x4ebe7c(this[_0xd9e527(0x6f)]),_0x21ab04=new _0x361d00(this[_0xd9e527(0x6f)]);_0x21ab04[_0xd9e527(0x8e)]({'withText':!0x1,'icon':_0x57154a,'class':_0xd9e527(0x8d)}),_0x21ab04[_0xd9e527(0x69)](_0xd9e527(0xa5))['to'](this,_0xd9e527(0x97),_0x31547c=>!!_0x31547c),_0x21ab04['on'](_0xd9e527(0xbc),()=>{const _0x1b19fb=_0xd9e527;this[_0x1b19fb(0x6c)]='';});const _0x81db37=this[_0xd9e527(0xbe)];return _0x5727dc[_0xd9e527(0xae)]({'tag':_0xd9e527(0x79),'attributes':{'class':['ck',_0xd9e527(0xb4),_0xd9e527(0xc0)]},'children':[{'tag':'p','children':[{'text':_0x81db37['to'](_0xd9e527(0x6c))}]},_0x21ab04]}),_0x5727dc;}[_0x2b422e(0x92)](){const _0x44cccd=_0x2b422e,_0x4d5b8f=new _0x361d00(this[_0x44cccd(0x6f)]);_0x4d5b8f[_0x44cccd(0x8e)]({'label':_0x4a367c(this[_0x44cccd(0x6f)],_0x44cccd(0x91)),'withText':!0x0,'icon':_0x40fa7a,'class':_0x44cccd(0xb1)}),_0x4d5b8f['on'](_0x44cccd(0xbc),()=>{const _0x5aa09b=_0x44cccd;this[_0x5aa09b(0x90)](_0x5aa09b(0x9b));});const _0xfb8a65=new _0x4ebe7c(this[_0x44cccd(0x6f)]);return _0xfb8a65[_0x44cccd(0xae)]({'tag':_0x44cccd(0x79),'attributes':{'class':[_0x44cccd(0xa2),this[_0x44cccd(0xbe)]['if'](_0x44cccd(0xb5),_0x44cccd(0xac),_0x40ac31=>!_0x40ac31)]},'children':[{'tag':'p','attributes':{'class':[_0x44cccd(0x93)]},'children':[_0x4a367c(this[_0x44cccd(0x6f)],_0x44cccd(0x8c))]},_0x4d5b8f]}),_0xfb8a65;}[_0x2b422e(0x66)](_0x29dc35,_0x24ed7c){const _0x259658=_0x2b422e,_0x34966e=[];for(const _0x7f26f5 of _0x29dc35){const _0x4dad7b=new _0x179a44(_0x24ed7c,_0x7f26f5);_0x4dad7b[_0x259658(0xaf)](..._0x175bfa)['to'](this),_0x34966e[_0x259658(0x71)](_0x4dad7b);}return _0x34966e;}[_0x2b422e(0xa1)](_0x491d1b){const _0x45e550=_0x2b422e,_0x425cea=this[_0x45e550(0x6f)]||'en',_0x79182a=[];for(const _0x1b8ef6 of _0x491d1b){const _0x33476d=this[_0x45e550(0x66)](_0x1b8ef6[_0x45e550(0xb2)],_0x425cea);_0x79182a[_0x45e550(0x71)](new _0x35b627(_0x425cea,{'title':_0x1b8ef6[_0x45e550(0x76)],'items':_0x33476d}));}this[_0x45e550(0xa4)][_0x45e550(0xad)]=_0x79182a,this[_0x45e550(0xa4)][_0x45e550(0xb2)][_0x45e550(0x8b)](),this[_0x45e550(0xa4)][_0x45e550(0xb2)][_0x45e550(0xa6)](_0x79182a),this[_0x45e550(0x97)]=_0x491d1b[_0x45e550(0x70)](_0x33f734=>_0x33f734[_0x45e550(0xb2)][_0x45e550(0xb0)]>0x0),this[_0x45e550(0x7a)]();}[_0x2b422e(0xbb)](_0x1a0402){const _0x2eea97=_0x2b422e;for(const _0x3b83b7 of this[_0x2eea97(0xa4)][_0x2eea97(0xad)]){const _0x1bb90f=_0x3b83b7[_0x2eea97(0x67)](_0x1a0402);if(_0x1bb90f){if(_0x3b83b7[_0x2eea97(0x6e)](_0x1bb90f),0x0===_0x3b83b7[_0x2eea97(0x9a)][_0x2eea97(0xb0)]){const _0x328142=this[_0x2eea97(0xa4)][_0x2eea97(0xad)][_0x2eea97(0x95)](_0x3b83b7);-0x1!==_0x328142&&(this[_0x2eea97(0xa4)][_0x2eea97(0xad)][_0x2eea97(0x99)](_0x328142,0x1),this[_0x2eea97(0xa4)][_0x2eea97(0xb2)][_0x2eea97(0x9d)](_0x3b83b7));}this[_0x2eea97(0x97)]=this[_0x2eea97(0xa4)][_0x2eea97(0xad)][_0x2eea97(0xb0)]>0x0,this[_0x2eea97(0x7a)]();break;}}}[_0x2b422e(0x73)](_0x1e5804,_0x2148fa){const _0x55ca6e=_0x2b422e;for(const _0x350308 of this[_0x55ca6e(0xa4)][_0x55ca6e(0xad)]){const _0x28d45b=_0x350308[_0x55ca6e(0x67)](_0x1e5804);if(_0x28d45b){_0x28d45b[_0x55ca6e(0x9f)](_0x2148fa);break;}}}[_0x2b422e(0xb9)](_0x4d6ebc,_0x43e080,_0xba2395){const _0x9330e3=_0x2b422e;for(const _0x5d7395 of this[_0x9330e3(0xa4)][_0x9330e3(0xad)]){const _0xa7bf0d=_0x5d7395[_0x9330e3(0x67)](_0x4d6ebc);if(_0xa7bf0d){_0xa7bf0d[_0x9330e3(0xa3)](_0x43e080,_0xba2395);break;}}}[_0x2b422e(0x7a)](){const _0x157b3f=_0x2b422e;if(this[_0x157b3f(0x97)]){const _0x5348b0=this[_0x157b3f(0x68)][_0x157b3f(0x77)][_0x157b3f(0xab)]?.[_0x157b3f(0x85)]?.[_0x157b3f(0xb7)]||'';this[_0x157b3f(0x68)][_0x157b3f(0x7f)](_0x5348b0);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3969db=_0x113e;(function(_0x26f434,_0x5db86a){const _0x584339=_0x113e,_0x13434a=_0x26f434();while(!![]){try{const _0x35a251=parseInt(_0x584339(0x206))/0x1+parseInt(_0x584339(0x20d))/0x2*(-parseInt(_0x584339(0x224))/0x3)+-parseInt(_0x584339(0x214))/0x4+-parseInt(_0x584339(0x1df))/0x5*(-parseInt(_0x584339(0x221))/0x6)+-parseInt(_0x584339(0x21f))/0x7+parseInt(_0x584339(0x1e7))/0x8+parseInt(_0x584339(0x21d))/0x9*(parseInt(_0x584339(0x207))/0xa);if(_0x35a251===_0x5db86a)break;else _0x13434a['push'](_0x13434a['shift']());}catch(_0x34f20f){_0x13434a['push'](_0x13434a['shift']());}}}(_0x192b,0xe0a39));import{AIChatUI as _0x27b83a}from'../aichat/aichatui.js';import{ContextPlugin as _0x42eed2}from'ckeditor5/src/core.js';function _0x192b(){const _0xc2e18c=['execute','setWebSearch','_shortcutsView','_aiChatUI','606344DLFnCB','source','config','destroy','has','chat','isPremiumPlugin','language','view','REVIEW','forEach','hasFeedItem','get','_injectShortcuts','setReasoning','ai-chat-shortcuts-review-mode-not-found','isFromHistory','label','setModel','chat-shortcuts','chatModels','isOfficialPlugin','_runChatShortcut','focusPromptInput','AITabs','check','activateTab','_validateShortcuts','plugins','_shortcuts','_runReviewShortcut','1719376WZEYgb','189170GszVcn','reviewMode','length','prompt','AIReviewModeUI','CHAT','972172OSgtqP','element','removeFeedItem','string','_switchTab','AITranslateUI','render','6578608wXesCS','setPromptInputValue','activeConversation','conversationCreated','ai.chat.shortcuts','custom','context','pluginName','type','1395YnTebI','AIChat','8192499CySbQg','ai-chat-shortcuts-ai-tabs-not-found','12828ggbZOU','_removeShortcuts','review','9lbJUzA','runReviewCheck','params','translate','values','includes','ai-chat-shortcuts-translate-not-found','interactionStarted','AIChatShortcuts','addCurrentDocumentToChatContext','_executeShortcut','ai-chat-shortcuts-invalid-config','args','find','sendMessage','init','fire','_runTranslateShortcut','addFeedItemCustomElement','requires','TRANSLATE','AIChatController','getDefault','1090GxdFEg','getModel','locale','listenTo'];_0x192b=function(){return _0xc2e18c;};return _0x192b();}import{AIChatShortcutsView as _0x4e2e0b}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x23529f}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';function _0x113e(_0x50d66a,_0x532c33){const _0x192ba0=_0x192b();return _0x113e=function(_0x113ec1,_0x1442b4){_0x113ec1=_0x113ec1-0x1dd;let _0x3e63d7=_0x192ba0[_0x113ec1];return _0x3e63d7;},_0x113e(_0x50d66a,_0x532c33);}const Ut=_0x3969db(0x1fa);export var AIChatShortcutType;!function(_0x1f7546){const _0x4b6cb8=_0x3969db;_0x1f7546[_0x4b6cb8(0x20c)]=_0x4b6cb8(0x1ec),_0x1f7546[_0x4b6cb8(0x1f0)]=_0x4b6cb8(0x223),_0x1f7546[_0x4b6cb8(0x238)]=_0x4b6cb8(0x227);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x42eed2{[_0x3969db(0x204)];[_0x3969db(0x1e5)];[_0x3969db(0x1e6)];static get[_0x3969db(0x237)](){return[_0x27b83a];}static get[_0x3969db(0x21b)](){const _0xa99c6e=_0x3969db;return _0xa99c6e(0x22c);}static get[_0x3969db(0x1fc)](){return!0x0;}static get[_0x3969db(0x1ed)](){return!0x0;}[_0x3969db(0x233)](){const _0x43f5cf=_0x3969db;this[_0x43f5cf(0x1e6)]=this[_0x43f5cf(0x21a)][_0x43f5cf(0x203)][_0x43f5cf(0x1f3)](_0x27b83a),this[_0x43f5cf(0x204)]=this[_0x43f5cf(0x21a)][_0x43f5cf(0x1e9)][_0x43f5cf(0x1f3)](_0x43f5cf(0x218))??[];const _0x1611b8=this[_0x43f5cf(0x21a)][_0x43f5cf(0x203)][_0x43f5cf(0x1f3)](_0x43f5cf(0x1dd));this[_0x43f5cf(0x204)][_0x43f5cf(0x209)]&&(this[_0x43f5cf(0x202)](),this[_0x43f5cf(0x1e6)]['on'](_0x43f5cf(0x217),()=>{const _0x3e3fd2=_0x43f5cf;_0x1611b8[_0x3e3fd2(0x216)][_0x3e3fd2(0x1f7)]||this[_0x3e3fd2(0x1f4)]();}),this[_0x43f5cf(0x1e2)](_0x1611b8,_0x43f5cf(0x22b),()=>{const _0x3de327=_0x43f5cf;this[_0x3de327(0x222)]();}));}[_0x3969db(0x202)](){const _0x1c0b6f=_0x3969db,_0x3b632a=Object[_0x1c0b6f(0x228)](AIChatShortcutType);this[_0x1c0b6f(0x204)][_0x1c0b6f(0x1f1)](_0x43dbb6=>{const _0x5a2c7e=_0x1c0b6f;let _0x27f8e8=!0x0;if(_0x43dbb6['id']&&_0x43dbb6[_0x5a2c7e(0x1f8)]&&_0x3b632a[_0x5a2c7e(0x229)](_0x43dbb6[_0x5a2c7e(0x21c)])?_0x5a2c7e(0x1ec)===_0x43dbb6[_0x5a2c7e(0x21c)]&&(_0x27f8e8=_0x5a2c7e(0x210)==typeof _0x43dbb6[_0x5a2c7e(0x20a)]):_0x27f8e8=!0x1,!_0x27f8e8)throw new _0x23529f(_0x5a2c7e(0x22f),this[_0x5a2c7e(0x21a)],{'shortcut':_0x43dbb6});});}[_0x3969db(0x1f4)](){const _0xa69b8e=_0x3969db,_0x387936=this[_0xa69b8e(0x21a)][_0xa69b8e(0x203)][_0xa69b8e(0x1f3)](_0x27b83a);this[_0xa69b8e(0x1e5)]=new _0x4e2e0b(this[_0xa69b8e(0x21a)][_0xa69b8e(0x1e1)],this[_0xa69b8e(0x204)]),this[_0xa69b8e(0x1e5)][_0xa69b8e(0x213)](),_0x387936[_0xa69b8e(0x236)](this[_0xa69b8e(0x1e5)][_0xa69b8e(0x20e)],Ut),this[_0xa69b8e(0x1e5)]['on'](_0xa69b8e(0x1e3),_0x394073=>{const _0x293313=_0xa69b8e,_0x43fc1b=_0x394073[_0x293313(0x1e8)]['id'];this[_0x293313(0x22e)](_0x43fc1b);});}[_0x3969db(0x222)](){const _0xb25d23=_0x3969db,_0x53e50f=this[_0xb25d23(0x21a)][_0xb25d23(0x203)][_0xb25d23(0x1f3)](_0x27b83a);_0x53e50f[_0xb25d23(0x1f2)](Ut)&&_0x53e50f[_0xb25d23(0x20f)](Ut),this[_0xb25d23(0x1e5)]?.[_0xb25d23(0x1ea)]();}[_0x3969db(0x22e)](_0x9f1c1){const _0x26d14b=_0x3969db,_0x4f0138=this[_0x26d14b(0x204)][_0x26d14b(0x231)](_0x1727de=>_0x1727de['id']===_0x9f1c1),_0x1d2009=_0x4f0138[_0x26d14b(0x21c)];_0x26d14b(0x1ec)===_0x1d2009?this[_0x26d14b(0x1fd)](_0x4f0138):_0x26d14b(0x223)===_0x1d2009?_0x4f0138[_0x26d14b(0x200)]?this[_0x26d14b(0x205)](_0x4f0138):this[_0x26d14b(0x211)](_0x26d14b(0x208)):_0x26d14b(0x227)===_0x1d2009&&(_0x4f0138[_0x26d14b(0x1ee)]?this[_0x26d14b(0x235)](_0x4f0138):this[_0x26d14b(0x211)](_0x26d14b(0x227)));}[_0x3969db(0x211)](_0x42893f){const _0xc54a61=_0x3969db;if(!this[_0xc54a61(0x21a)][_0xc54a61(0x203)][_0xc54a61(0x1eb)](_0xc54a61(0x1ff)))throw new _0x23529f(_0xc54a61(0x220),this[_0xc54a61(0x21a)],{'tabName':_0x42893f});this[_0xc54a61(0x21a)][_0xc54a61(0x203)][_0xc54a61(0x1f3)](_0xc54a61(0x1ff))[_0xc54a61(0x1ef)][_0xc54a61(0x201)](_0x42893f);}async[_0x3969db(0x1fd)]({prompt:_0x3afb4a,draftMode:_0xe4fd68,useWebSearch:_0x1bbe96=!0x1,useReasoning:_0x36cefa=!0x1,model:_0x164761}){const _0x3396ae=_0x3969db,_0x4528ab=this[_0x3396ae(0x21a)][_0x3396ae(0x203)][_0x3396ae(0x1f3)](_0x3396ae(0x21e)),_0x3afd41=this[_0x3396ae(0x21a)][_0x3396ae(0x203)][_0x3396ae(0x1f3)](_0x3396ae(0x1dd)),_0x544c59=_0x3afd41[_0x3396ae(0x216)];let _0x4a819c;_0x4a819c=_0x164761?await _0x544c59[_0x3396ae(0x1fb)][_0x3396ae(0x1e0)](_0x164761):await _0x544c59[_0x3396ae(0x1fb)][_0x3396ae(0x1de)](),_0x4a819c&&await _0x544c59[_0x3396ae(0x1f9)](_0x4a819c),_0x544c59[_0x3396ae(0x1e4)](_0x1bbe96),_0x544c59[_0x3396ae(0x1f5)](_0x36cefa),_0x3afd41[_0x3396ae(0x22d)](),_0xe4fd68?(this[_0x3396ae(0x1e6)][_0x3396ae(0x215)](_0x3afb4a),this[_0x3396ae(0x1e6)][_0x3396ae(0x1fe)](!0x0)):_0x4528ab[_0x3396ae(0x232)]({'message':_0x3afb4a});}[_0x3969db(0x205)]({check:_0x3c0688,model:_0xc89278,prompt:_0x156dfa,params:_0x418e87}){const _0x2257fe=_0x3969db;if(!this[_0x2257fe(0x21a)][_0x2257fe(0x203)][_0x2257fe(0x1eb)](_0x2257fe(0x20b)))throw new _0x23529f(_0x2257fe(0x1f6),this[_0x2257fe(0x21a)]);this[_0x2257fe(0x211)](_0x2257fe(0x208));const _0x417046={'id':_0x3c0688,'isCustom':_0x2257fe(0x219)===_0x3c0688};_0xc89278&&_0x156dfa&&(_0x417046[_0x2257fe(0x230)]={'model':_0xc89278,'prompt':_0x156dfa}),_0x418e87&&(_0x417046[_0x2257fe(0x226)]=_0x418e87),this[_0x2257fe(0x21a)][_0x2257fe(0x203)][_0x2257fe(0x1f3)](_0x2257fe(0x20b))[_0x2257fe(0x234)](_0x2257fe(0x225),_0x417046);}[_0x3969db(0x235)]({language:_0x1baf8f}){const _0x5bf8e8=_0x3969db;if(!this[_0x5bf8e8(0x21a)][_0x5bf8e8(0x203)][_0x5bf8e8(0x1eb)](_0x5bf8e8(0x212)))throw new _0x23529f(_0x5bf8e8(0x22a),this[_0x5bf8e8(0x21a)]);this[_0x5bf8e8(0x211)](_0x5bf8e8(0x227)),this[_0x5bf8e8(0x21a)][_0x5bf8e8(0x203)][_0x5bf8e8(0x1f3)](_0x5bf8e8(0x212))[_0x5bf8e8(0x234)](_0x5bf8e8(0x225),{'id':_0x1baf8f,'args':{'language':_0x1baf8f}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2c58(){const _0x2fbf07=['243369MiQStA','locale','329500kDjeDV','listView','execute','1730DqGsOR','1784043mUKscL','children','3008DZuXqT','add','ck-ai-chat-shortcuts','1SOebMa','8PPPLln','delegate','1027812rTIurd','map','setTemplate','580587pUfyFQ','addMany','div','103270nzSGPA','items'];_0x2c58=function(){return _0x2fbf07;};return _0x2c58();}const _0x1efb22=_0x5cd5;(function(_0x5e83ec,_0x3721be){const _0x2174d2=_0x5cd5,_0x382531=_0x5e83ec();while(!![]){try{const _0x35d35f=parseInt(_0x2174d2(0x13e))/0x1*(parseInt(_0x2174d2(0x131))/0x2)+parseInt(_0x2174d2(0x12e))/0x3+-parseInt(_0x2174d2(0x13b))/0x4*(-parseInt(_0x2174d2(0x138))/0x5)+-parseInt(_0x2174d2(0x141))/0x6+parseInt(_0x2174d2(0x133))/0x7*(-parseInt(_0x2174d2(0x13f))/0x8)+-parseInt(_0x2174d2(0x139))/0x9+parseInt(_0x2174d2(0x135))/0xa;if(_0x35d35f===_0x3721be)break;else _0x382531['push'](_0x382531['shift']());}catch(_0x323611){_0x382531['push'](_0x382531['shift']());}}}(_0x2c58,0x20b7a));import{ListItemView as _0x54990c,ListView as _0x1f6d49,View as _0x5b4fd8}from'ckeditor5/src/ui.js';function _0x5cd5(_0x31d0fa,_0x1d0256){const _0x2c582a=_0x2c58();return _0x5cd5=function(_0x5cd5e9,_0x56fadc){_0x5cd5e9=_0x5cd5e9-0x12c;let _0x4388c5=_0x2c582a[_0x5cd5e9];return _0x4388c5;},_0x5cd5(_0x31d0fa,_0x1d0256);}import{AIChatShortcutView as _0x56c187}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x5b4fd8{[_0x1efb22(0x136)];constructor(_0x132618,_0x2f5043){const _0x5b5d55=_0x1efb22;super(_0x132618);const _0x242ddf=_0x2f5043[_0x5b5d55(0x12c)](_0x21cb3c=>{const _0x53fe7=_0x5b5d55,_0x35050a=new _0x54990c(this[_0x53fe7(0x134)]),_0x307a6c=new _0x56c187(this[_0x53fe7(0x134)],_0x21cb3c);return _0x35050a[_0x53fe7(0x13a)][_0x53fe7(0x13c)](_0x307a6c),_0x307a6c[_0x53fe7(0x140)](_0x53fe7(0x137))['to'](this),_0x35050a;});this[_0x5b5d55(0x136)]=new _0x1f6d49(this[_0x5b5d55(0x134)]),this[_0x5b5d55(0x136)][_0x5b5d55(0x132)][_0x5b5d55(0x12f)](_0x242ddf),this[_0x5b5d55(0x12d)]({'tag':_0x5b5d55(0x130),'attributes':{'class':['ck',_0x5b5d55(0x13d)]},'children':[this[_0x5b5d55(0x136)]]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2edbe8,_0x4b54a1){const _0x4ec920=_0x1e2a,_0x3d22a8=_0x2edbe8();while(!![]){try{const _0x1534bc=-parseInt(_0x4ec920(0x1fe))/0x1*(parseInt(_0x4ec920(0x200))/0x2)+-parseInt(_0x4ec920(0x1ef))/0x3*(-parseInt(_0x4ec920(0x1f6))/0x4)+-parseInt(_0x4ec920(0x201))/0x5*(-parseInt(_0x4ec920(0x1f3))/0x6)+parseInt(_0x4ec920(0x1f5))/0x7*(-parseInt(_0x4ec920(0x1f9))/0x8)+-parseInt(_0x4ec920(0x1f4))/0x9*(parseInt(_0x4ec920(0x1f7))/0xa)+-parseInt(_0x4ec920(0x1fa))/0xb+parseInt(_0x4ec920(0x1fc))/0xc*(parseInt(_0x4ec920(0x1f0))/0xd);if(_0x1534bc===_0x4b54a1)break;else _0x3d22a8['push'](_0x3d22a8['shift']());}catch(_0x31dc35){_0x3d22a8['push'](_0x3d22a8['shift']());}}}(_0x3c58,0xe34ad));import{ButtonView as _0x584307}from'ckeditor5/src/ui.js';function _0x1e2a(_0x9ca1bc,_0x27d2a6){const _0x3c584a=_0x3c58();return _0x1e2a=function(_0x1e2ad6,_0xdd997f){_0x1e2ad6=_0x1e2ad6-0x1ee;let _0x4cebd2=_0x3c584a[_0x1e2ad6];return _0x4cebd2;},_0x1e2a(_0x9ca1bc,_0x27d2a6);}import{IconAIChat as _0x292aa3,IconAIReview as _0x5dbcd0,IconAITranslate as _0x392b7c}from'@ckeditor/ckeditor5-icons';function _0x3c58(){const _0x693062=['24dXGKny','review','3lQycYA','set','501046lZvvzQ','405045WNWtjH','icon','translate','843QOTSrM','4253717HwrbTV','label','chat','126ZOJtNq','215433wkHpaY','7ELNCrQ','22868MwYzqw','470smipXL','ck-ai-chat-shortcut','1738144DUBrpD','10309409HMCzpH','extendTemplate'];_0x3c58=function(){return _0x693062;};return _0x3c58();}export class AIChatShortcutView extends _0x584307{['id'];constructor(_0x37f79a,_0x2f5c92){const _0x5bd98b=_0x1e2a;super(_0x37f79a);const {id:_0xc58c11,type:_0x493948,icon:_0x2fc4da}=_0x2f5c92;this['id']=_0xc58c11,this[_0x5bd98b(0x1ff)]({'label':_0x2f5c92[_0x5bd98b(0x1f1)],'withText':!0x0,'class':_0x5bd98b(0x1f8)}),this[_0x5bd98b(0x1fb)]({'attributes':{'data-cke-ai-shortcut-id':_0x2f5c92['id']}}),_0x2fc4da?this[_0x5bd98b(0x202)]=_0x2fc4da:_0x5bd98b(0x1f2)===_0x493948?this[_0x5bd98b(0x202)]=_0x292aa3:_0x5bd98b(0x1fd)===_0x493948?this[_0x5bd98b(0x202)]=_0x5dbcd0:_0x5bd98b(0x1ee)===_0x493948&&(this[_0x5bd98b(0x202)]=_0x392b7c);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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});}}
|
|
23
|
+
const _0x51a979=_0x5934;(function(_0x367b70,_0x159439){const _0xb1da4c=_0x5934,_0x156643=_0x367b70();while(!![]){try{const _0x3e7a72=-parseInt(_0xb1da4c(0x1b1))/0x1+-parseInt(_0xb1da4c(0x1e8))/0x2+-parseInt(_0xb1da4c(0x1b4))/0x3*(-parseInt(_0xb1da4c(0x1cc))/0x4)+parseInt(_0xb1da4c(0x1ed))/0x5*(parseInt(_0xb1da4c(0x18e))/0x6)+parseInt(_0xb1da4c(0x1c1))/0x7*(-parseInt(_0xb1da4c(0x1a8))/0x8)+-parseInt(_0xb1da4c(0x1f6))/0x9*(-parseInt(_0xb1da4c(0x18a))/0xa)+parseInt(_0xb1da4c(0x19d))/0xb;if(_0x3e7a72===_0x159439)break;else _0x156643['push'](_0x156643['shift']());}catch(_0x3b9ae1){_0x156643['push'](_0x156643['shift']());}}}(_0x15ee,0xe18be));import{createParser as _0x1dad0c}from'eventsource-parser';import{ContextPlugin as _0x18a2c8}from'ckeditor5/src/core.js';function _0x5934(_0x2d1dff,_0x3b646a){const _0x15eef9=_0x15ee();return _0x5934=function(_0x59342c,_0x5d4e19){_0x59342c=_0x59342c-0x161;let _0x3e9dfa=_0x15eef9[_0x59342c];return _0x3e9dfa;},_0x5934(_0x2d1dff,_0x3b646a);}import{CKEditorError as _0x6236a7}from'ckeditor5/src/utils.js';export var AIActionsNames;function _0x15ee(){const _0x216b9e=['upsertCustomAIReviewRating','1023711wZYyAW','/ratings','stringify','1254xxroET','_getStreamReader','/messages','toString','requires','/messages/','context','executeAction','language','executeCustomAction','positiveCount','limit','length','4963PFDGTc','getReader','items','/reviews/custom/calls/','startConversation','deleteWebResource','order','/models/1?','define','status','_token','6992HGmhXl','abortController','PATCH','upsertAIChatRating','ai.serviceUrl','https://ai.cke-cs.com/v1','deleteConversation','_apiUrl','excludeEmpty','/documents/','isPremiumPlugin','_handleError','then','modificationId','data','Bearer\x20','createdAt','/conversations/','CloudServices','upsertCustomAIActionRating','PUT','releaseLock','DELETE','fix-grammar','deleteFile','/actions/custom/calls','MAKE_SHORTER','improve-writing','3332182vwTQbl','updateConversation','GET','upsertAIReviewRating','catch','2392585YuVTbf','sortBy','/documents','desc','push','decode','_decoder','signal','totalCount','23175MdjEDC','100','MAKE_TONE_FORMAL','request','/web-resources','/reviews/custom/calls','fetchConversations','/actions/system/','TRANSLATE','fetchConversationMessages','true','value','parse','pluginName','FIX_GRAMMAR','application/json','group','upsertAIActionRating','message','append','/calls','_sendApiRequest','reset','plugins','/calls/','CONTINUE','body','translate','text','ai-request-aborted','/conversations?','traceId','name','callSystemReview','ai-missing-token','/reviews/system/','make-tone-formal','statusText','fetchConversation','init','AIConnector','deleteDocument','3850ZfyYom','code','false','get','6vLLySB','AbortError','make-shorter','token','callCustomReview','/web-resources/','Content-Type','uploadUrl','make-tone-casual','continue','read','MAKE_LONGER','/files','fetchDocument','config','29823893qSuNOA','/files/','isOfficialPlugin','queryAssistant','feed','getModels','ai-request-failed','uploadDocument','uploadFile','make-longer','IMPROVE_WRITING','14648YVRjhW','/conversations','/actions/custom/calls/','attributes','json','MAKE_TONE_CASUAL','POST','file'];_0x15ee=function(){return _0x216b9e;};return _0x15ee();}!function(_0xe9e7c8){const _0x21e836=_0x5934;_0xe9e7c8[_0x21e836(0x179)]=_0x21e836(0x197),_0xe9e7c8[_0x21e836(0x16e)]=_0x21e836(0x1e3),_0xe9e7c8[_0x21e836(0x1a7)]=_0x21e836(0x1e7),_0xe9e7c8[_0x21e836(0x199)]=_0x21e836(0x1a6),_0xe9e7c8[_0x21e836(0x1e6)]=_0x21e836(0x190),_0xe9e7c8[_0x21e836(0x1ad)]=_0x21e836(0x196),_0xe9e7c8[_0x21e836(0x162)]=_0x21e836(0x184),_0xe9e7c8[_0x21e836(0x168)]=_0x21e836(0x17b);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x18a2c8{[_0x51a979(0x1d3)];[_0x51a979(0x1cb)];[_0x51a979(0x1f3)];static get[_0x51a979(0x1b8)](){const _0x169dcc=_0x51a979;return[_0x169dcc(0x1de)];}static get[_0x51a979(0x16d)](){const _0x14b70b=_0x51a979;return _0x14b70b(0x188);}static get[_0x51a979(0x19f)](){return!0x0;}static get[_0x51a979(0x1d6)](){return!0x0;}constructor(_0x1e15f3){const _0x5b12f0=_0x51a979;super(_0x1e15f3),this[_0x5b12f0(0x1ba)][_0x5b12f0(0x19c)][_0x5b12f0(0x1c9)](_0x5b12f0(0x1d0),_0x5b12f0(0x1d1)),this[_0x5b12f0(0x1d3)]=this[_0x5b12f0(0x1ba)][_0x5b12f0(0x19c)][_0x5b12f0(0x18d)](_0x5b12f0(0x1d0)),this[_0x5b12f0(0x1cb)]=null,this[_0x5b12f0(0x1f3)]=new TextDecoder();}[_0x51a979(0x187)](){const _0x17fd89=_0x51a979,_0x24aea6=this[_0x17fd89(0x1ba)][_0x17fd89(0x177)][_0x17fd89(0x18d)](_0x17fd89(0x1de));if(!_0x24aea6[_0x17fd89(0x191)])throw new _0x6236a7(_0x17fd89(0x182),this);this[_0x17fd89(0x1cb)]=_0x24aea6[_0x17fd89(0x191)];}[_0x51a979(0x1c5)](_0x3054c4,_0x4ca337){const _0x30768b=_0x51a979,_0x131f13=this[_0x30768b(0x175)](_0x30768b(0x1a9),_0x30768b(0x1ae),{'id':_0x3054c4,'group':_0x4ca337});return{'getConversation':async()=>(await _0x131f13[_0x30768b(0x163)])[_0x30768b(0x1ac)](),'abortController':_0x131f13[_0x30768b(0x1cd)]};}[_0x51a979(0x1a0)]({message:_0xb1f742,conversationId:_0x4d177c,parts:_0x5f0d41,capabilities:_0x416ab8,model:_0xebc027,attributes:_0x5d066f}){const _0x5d92b1=_0x51a979,_0x373407={'prompt':_0xb1f742,'content':_0x5f0d41,'model':_0xebc027,..._0x416ab8&&{'capabilities':_0x416ab8},..._0x5d066f&&{'attributes':_0x5d066f}},_0x1d97e3=this[_0x5d92b1(0x175)](_0x5d92b1(0x1dd)+_0x4d177c+_0x5d92b1(0x1b6),_0x5d92b1(0x1ae),_0x373407);return{'getStream':async()=>{const _0xee9b2a=_0x5d92b1,_0x2905cf=(await _0x1d97e3[_0xee9b2a(0x163)])[_0xee9b2a(0x17a)];return this[_0xee9b2a(0x1b5)](_0x2905cf);},'abortController':_0x1d97e3[_0x5d92b1(0x1cd)]};}[_0x51a979(0x1bd)]({content:_0x184cab,message:_0x15f148,model:_0x4304f8,outputFormat:_0x5daf9c}){const _0x1706d2=_0x51a979,_0x2363c9={'content':[{'type':_0x1706d2(0x17c),'content':_0x184cab}],'prompt':_0x15f148,'model':_0x4304f8,'outputFormat':_0x5daf9c},_0x23f82c=this[_0x1706d2(0x175)](_0x1706d2(0x1e5),_0x1706d2(0x1ae),_0x2363c9);return{'getStream':async()=>{const _0x1385ec=_0x1706d2,_0x517d07=(await _0x23f82c[_0x1385ec(0x163)])[_0x1385ec(0x17a)];return this[_0x1385ec(0x1b5)](_0x517d07);},'abortController':_0x23f82c[_0x1706d2(0x1cd)]};}[_0x51a979(0x1bb)]({actionName:_0x553bb3,content:_0x473237,args:_0x1e1243}){const _0x3bdd89=_0x51a979,_0x1200f6={'content':[{'type':_0x3bdd89(0x17c),'content':_0x473237}],'args':_0x1e1243},_0x1a64d9=this[_0x3bdd89(0x175)](_0x3bdd89(0x167)+_0x553bb3+_0x3bdd89(0x174),_0x3bdd89(0x1ae),_0x1200f6);return{'getStream':async()=>{const _0x4e70c8=_0x3bdd89,_0xf3c548=(await _0x1a64d9[_0x4e70c8(0x163)])[_0x4e70c8(0x17a)];return this[_0x4e70c8(0x1b5)](_0xf3c548);},'abortController':_0x1a64d9[_0x3bdd89(0x1cd)]};}[_0x51a979(0x1a5)](_0x10adb1,_0x24fe6d,_0x393f75){const _0x16483e=_0x51a979,_0x3c3c72=new FormData();_0x3c3c72[_0x16483e(0x173)](_0x16483e(0x1af),_0x24fe6d,_0x24fe6d[_0x16483e(0x180)]),_0x393f75&&_0x3c3c72[_0x16483e(0x173)](_0x16483e(0x1ab),JSON[_0x16483e(0x1b3)](_0x393f75));const _0x238460=this[_0x16483e(0x175)](_0x16483e(0x1dd)+_0x10adb1+_0x16483e(0x19a),_0x16483e(0x1ae),_0x3c3c72);return{'getId':async()=>(await _0x238460[_0x16483e(0x163)])[_0x16483e(0x1ac)](),'abortController':_0x238460[_0x16483e(0x1cd)]};}[_0x51a979(0x19b)](_0x2e04b8,_0x40d54d){const _0x3a3d8f=_0x51a979,_0xb7feb4=this[_0x3a3d8f(0x175)](_0x3a3d8f(0x1dd)+_0x2e04b8+_0x3a3d8f(0x1d5)+_0x40d54d,_0x3a3d8f(0x1ea));return{'getDocument':async()=>(await _0xb7feb4[_0x3a3d8f(0x163)])[_0x3a3d8f(0x1ac)](),'abortController':_0xb7feb4[_0x3a3d8f(0x1cd)]};}[_0x51a979(0x1a4)](_0x1c455e,_0x360c77,_0x11d58a){const _0x414791=_0x51a979,_0x57db76={'content':_0x360c77};_0x11d58a&&(_0x57db76[_0x414791(0x1ab)]=_0x11d58a);const _0x309bff=this[_0x414791(0x175)](_0x414791(0x1dd)+_0x1c455e+_0x414791(0x1ef),_0x414791(0x1ae),_0x57db76);return{'getId':async()=>(await _0x309bff[_0x414791(0x163)])[_0x414791(0x1ac)](),'abortController':_0x309bff[_0x414791(0x1cd)]};}[_0x51a979(0x166)](_0x322457,_0x36de7a={}){const _0xebd046=_0x51a979,_0x37eec6=new URLSearchParams();_0x37eec6[_0xebd046(0x173)](_0xebd046(0x170),_0x322457),_0x37eec6[_0xebd046(0x173)](_0xebd046(0x1d4),!0x1!==_0x36de7a[_0xebd046(0x1d4)]?_0xebd046(0x16a):_0xebd046(0x18c)),_0x37eec6[_0xebd046(0x173)](_0xebd046(0x1bf),_0x36de7a[_0xebd046(0x1bf)]?_0x36de7a[_0xebd046(0x1bf)][_0xebd046(0x1b7)]():_0xebd046(0x161)),_0x37eec6[_0xebd046(0x173)](_0xebd046(0x1ee),_0x36de7a[_0xebd046(0x1ee)]?_0x36de7a[_0xebd046(0x1ee)]:_0xebd046(0x1dc)),_0x37eec6[_0xebd046(0x173)](_0xebd046(0x1c7),_0x36de7a[_0xebd046(0x1c7)]?_0x36de7a[_0xebd046(0x1c7)]:_0xebd046(0x1f0));const _0x21c34d=this[_0xebd046(0x175)](_0xebd046(0x17e)+_0x37eec6[_0xebd046(0x1b7)](),_0xebd046(0x1ea));return{'getConversations':async()=>{const _0x25a7d5=_0xebd046,_0xcffb30=await _0x21c34d[_0x25a7d5(0x163)];return(await _0xcffb30[_0x25a7d5(0x1ac)]())[_0x25a7d5(0x1c3)];},'abortController':_0x21c34d[_0xebd046(0x1cd)]};}[_0x51a979(0x1d2)](_0x34ec75){const _0x230f80=_0x51a979,_0x38f15e=this[_0x230f80(0x175)](_0x230f80(0x1dd)+_0x34ec75,_0x230f80(0x1e2));return{'execute':async()=>{const _0x483b8c=_0x230f80;await _0x38f15e[_0x483b8c(0x163)];},'abortController':_0x38f15e[_0x230f80(0x1cd)]};}[_0x51a979(0x1e9)](_0x5171e4,_0x40e02a){const _0x12cc88=_0x51a979,_0x2f79e4=this[_0x12cc88(0x175)](_0x12cc88(0x1dd)+_0x5171e4,_0x12cc88(0x1ce),_0x40e02a);return{'getResult':async()=>(await _0x2f79e4[_0x12cc88(0x163)],_0x40e02a),'abortController':_0x2f79e4[_0x12cc88(0x1cd)]};}[_0x51a979(0x186)](_0x230bfa){const _0xbbcd55=_0x51a979,_0x571848=this[_0xbbcd55(0x175)](_0xbbcd55(0x1dd)+_0x230bfa,_0xbbcd55(0x1ea));return{'getConversation':async()=>(await _0x571848[_0xbbcd55(0x163)])[_0xbbcd55(0x1ac)](),'abortController':_0x571848[_0xbbcd55(0x1cd)]};}[_0x51a979(0x169)](_0x16385e){const _0x4b2230=_0x51a979,_0x19f277=this[_0x4b2230(0x175)](_0x4b2230(0x1dd)+_0x16385e+_0x4b2230(0x1b6),_0x4b2230(0x1ea));return{'getMessages':async()=>{const _0x37a0af=_0x4b2230,_0x2e1483=await _0x19f277[_0x37a0af(0x163)];return(await _0x2e1483[_0x37a0af(0x1ac)]())[_0x37a0af(0x1c3)];},'abortController':_0x19f277[_0x4b2230(0x1cd)]};}[_0x51a979(0x195)](_0x4bf794,_0x2a9206,_0x152465){const _0x56fe4f=_0x51a979,_0x8ad5df=this[_0x56fe4f(0x175)](_0x56fe4f(0x1dd)+_0x4bf794+_0x56fe4f(0x164),_0x56fe4f(0x1ae),{'url':_0x2a9206,'attributes':_0x152465});return{'getId':async()=>(await _0x8ad5df[_0x56fe4f(0x163)])[_0x56fe4f(0x1ac)](),'abortController':_0x8ad5df[_0x56fe4f(0x1cd)]};}[_0x51a979(0x1a2)](_0x2f8ec1='en'){const _0x5a184d=_0x51a979,_0x1008fb=new URLSearchParams();_0x1008fb[_0x5a184d(0x173)](_0x5a184d(0x1bc),_0x2f8ec1);const _0x414fc2=_0x5a184d(0x1c8)+_0x1008fb[_0x5a184d(0x1b7)](),_0x23bb57=this[_0x5a184d(0x175)](_0x414fc2,_0x5a184d(0x1ea));return{'list':async()=>await(await _0x23bb57[_0x5a184d(0x163)])[_0x5a184d(0x1ac)](),'abortController':_0x23bb57[_0x5a184d(0x1cd)]};}[_0x51a979(0x1e4)](_0x1518ca,_0x1f4cdc){const _0x1e0d78=_0x51a979,_0x3b6da3=this[_0x1e0d78(0x175)](_0x1e0d78(0x1dd)+_0x1518ca+_0x1e0d78(0x19e)+_0x1f4cdc,_0x1e0d78(0x1e2));return{'execute':async()=>{const _0x5bf3f5=_0x1e0d78;await _0x3b6da3[_0x5bf3f5(0x163)];},'abortController':_0x3b6da3[_0x1e0d78(0x1cd)]};}[_0x51a979(0x189)](_0x44f461,_0x3ca203){const _0x184450=_0x51a979,_0x1fedbd=this[_0x184450(0x175)](_0x184450(0x1dd)+_0x44f461+_0x184450(0x1d5)+_0x3ca203,_0x184450(0x1e2));return{'execute':async()=>{const _0x40f819=_0x184450;await _0x1fedbd[_0x40f819(0x163)];},'abortController':_0x1fedbd[_0x184450(0x1cd)]};}[_0x51a979(0x1c6)](_0x57fcf7,_0x286fc0){const _0x1a1dd5=_0x51a979,_0x3c9793=this[_0x1a1dd5(0x175)](_0x1a1dd5(0x1dd)+_0x57fcf7+_0x1a1dd5(0x193)+_0x286fc0,_0x1a1dd5(0x1e2));return{'execute':async()=>{const _0x48527d=_0x1a1dd5;await _0x3c9793[_0x48527d(0x163)];},'abortController':_0x3c9793[_0x1a1dd5(0x1cd)]};}[_0x51a979(0x181)]({reviewName:_0x2272bc,content:_0x2eb7eb,args:_0x4fa216}){const _0xa0a48a=_0x51a979,_0x374c8e=this[_0xa0a48a(0x175)](_0xa0a48a(0x183)+_0x2272bc+_0xa0a48a(0x174),_0xa0a48a(0x1ae),{'content':[{'type':_0xa0a48a(0x17c),'content':_0x2eb7eb}],'args':_0x4fa216});return{'getStream':async()=>{const _0x2ed169=_0xa0a48a,_0x592a6d=(await _0x374c8e[_0x2ed169(0x163)])[_0x2ed169(0x17a)];return this[_0x2ed169(0x1b5)](_0x592a6d);},'abortController':_0x374c8e[_0xa0a48a(0x1cd)]};}[_0x51a979(0x192)]({content:_0xadd4ad,prompt:_0x5b2aaf,model:_0x55f94a}){const _0x3b50c2=_0x51a979,_0x42e4fc=this[_0x3b50c2(0x175)](_0x3b50c2(0x165),_0x3b50c2(0x1ae),{'content':[{'type':_0x3b50c2(0x17c),'content':_0xadd4ad}],'prompt':_0x5b2aaf,'model':_0x55f94a});return{'getStream':async()=>{const _0x1f498a=_0x3b50c2,_0x506692=(await _0x42e4fc[_0x1f498a(0x163)])[_0x1f498a(0x17a)];return this[_0x1f498a(0x1b5)](_0x506692);},'abortController':_0x42e4fc[_0x3b50c2(0x1cd)]};}[_0x51a979(0x1cf)](_0x1f6428,_0xc9d82,_0x4dd759){const _0x4f6dbd=_0x51a979,_0x3b0746=this[_0x4f6dbd(0x175)](_0x4f6dbd(0x1dd)+_0x1f6428+_0x4f6dbd(0x1b9)+_0xc9d82+_0x4f6dbd(0x1b2),_0x4f6dbd(0x1e0),{'positiveCount':_0x4dd759[_0x4f6dbd(0x1be)],'totalCount':_0x4dd759[_0x4f6dbd(0x1f5)],'modificationId':_0x4dd759[_0x4f6dbd(0x1d9)]});return{'execute':async()=>{const _0x478fe2=_0x4f6dbd;await _0x3b0746[_0x478fe2(0x163)];},'abortController':_0x3b0746[_0x4f6dbd(0x1cd)]};}[_0x51a979(0x171)](_0x356e66,_0x35c621,_0x4a211b){const _0x7361a9=_0x51a979,_0x5eb86c=this[_0x7361a9(0x175)](_0x7361a9(0x167)+_0x356e66+_0x7361a9(0x178)+_0x35c621+_0x7361a9(0x1b2),_0x7361a9(0x1e0),{'positiveCount':_0x4a211b[_0x7361a9(0x1be)],'totalCount':_0x4a211b[_0x7361a9(0x1f5)]});return{'execute':async()=>{const _0x43986f=_0x7361a9;await _0x5eb86c[_0x43986f(0x163)];},'abortController':_0x5eb86c[_0x7361a9(0x1cd)]};}[_0x51a979(0x1df)](_0xa9ebbb,_0x2a59d2){const _0x55714a=_0x51a979,_0x1ea496=this[_0x55714a(0x175)](_0x55714a(0x1aa)+_0xa9ebbb+_0x55714a(0x1b2),_0x55714a(0x1e0),{'positiveCount':_0x2a59d2[_0x55714a(0x1be)],'totalCount':_0x2a59d2[_0x55714a(0x1f5)]});return{'execute':async()=>{const _0x21e929=_0x55714a;await _0x1ea496[_0x21e929(0x163)];},'abortController':_0x1ea496[_0x55714a(0x1cd)]};}[_0x51a979(0x1eb)](_0x5570b,_0x4a9213,_0x1ea9c5,_0x4ec3a2){const _0x57eaa5=_0x51a979,_0x13e086=this[_0x57eaa5(0x175)](_0x57eaa5(0x183)+_0x5570b+_0x57eaa5(0x178)+_0x4a9213+_0x57eaa5(0x1b2),_0x57eaa5(0x1e0),{'positiveCount':_0x1ea9c5[_0x57eaa5(0x1be)],'totalCount':_0x1ea9c5[_0x57eaa5(0x1f5)],'dataId':_0x4ec3a2});return{'execute':async()=>{const _0x3682c4=_0x57eaa5;await _0x13e086[_0x3682c4(0x163)];},'abortController':_0x13e086[_0x57eaa5(0x1cd)]};}[_0x51a979(0x1b0)](_0x4462d1,_0x3621b3,_0x11158b){const _0x3a15c=_0x51a979,_0x57d7ae=this[_0x3a15c(0x175)](_0x3a15c(0x1c4)+_0x4462d1+_0x3a15c(0x1b2),_0x3a15c(0x1e0),{'positiveCount':_0x3621b3[_0x3a15c(0x1be)],'totalCount':_0x3621b3[_0x3a15c(0x1f5)],'dataId':_0x11158b});return{'execute':async()=>{const _0x1e8a9f=_0x3a15c;await _0x57d7ae[_0x1e8a9f(0x163)];},'abortController':_0x57d7ae[_0x3a15c(0x1cd)]};}[_0x51a979(0x175)](_0x10a02e,_0x59a290,_0xc61fc6){const _0x1ed729=_0x51a979,_0x133428=new AbortController(),_0x13d4e5=_0xc61fc6 instanceof FormData,_0x172061={'Authorization':_0x1ed729(0x1db)+this[_0x1ed729(0x1cb)]?.[_0x1ed729(0x16b)]};_0xc61fc6&&!_0x13d4e5&&(_0x172061[_0x1ed729(0x194)]=_0x1ed729(0x16f));const _0x75aabc={'method':_0x59a290,'headers':_0x172061,'signal':_0x133428[_0x1ed729(0x1f4)]};return _0xc61fc6&&(_0x75aabc[_0x1ed729(0x17a)]=_0x13d4e5?_0xc61fc6:JSON[_0x1ed729(0x1b3)](_0xc61fc6)),{'request':fetch(''+this[_0x1ed729(0x1d3)]+_0x10a02e,_0x75aabc)[_0x1ed729(0x1ec)](_0x4954ed=>{const _0x3cff37=_0x1ed729;this[_0x3cff37(0x1d7)](_0x4954ed);})[_0x1ed729(0x1d8)](_0x298334=>_0x298334['ok']?_0x298334:_0x298334[_0x1ed729(0x1ac)]()[_0x1ed729(0x1d8)](_0x3b5a5b=>{const _0x5a5dcd=_0x1ed729;throw{'url':this[_0x5a5dcd(0x1d3)],'path':_0x10a02e,'method':_0x59a290,'body':_0xc61fc6,'status':(_0x298334||{})[_0x5a5dcd(0x1ca)],'statusText':(_0x298334||{})[_0x5a5dcd(0x185)],'code':_0x3b5a5b[_0x5a5dcd(0x18b)],'message':_0x3b5a5b[_0x5a5dcd(0x172)],'traceId':_0x3b5a5b[_0x5a5dcd(0x17f)]};})),'abortController':_0x133428};}async*[_0x51a979(0x1b5)](_0x5da348){const _0x2c6c41=_0x51a979,_0x3af080=[],_0x1ed799=_0x5da348[_0x2c6c41(0x1c2)](),_0x23fe86=_0x1dad0c({'onError':_0x24c3a5=>{const _0x50feea=_0x2c6c41;this[_0x50feea(0x1d7)](_0x24c3a5);},'onEvent':_0x5eebcb=>{const _0x3c3ed6=_0x2c6c41;_0x5eebcb[_0x3c3ed6(0x1da)]=JSON[_0x3c3ed6(0x16c)](_0x5eebcb[_0x3c3ed6(0x1da)]),_0x3af080[_0x3c3ed6(0x1f1)](_0x5eebcb);}});try{let _0x2658bc=!0x1;for(;!_0x2658bc;){const {done:_0x23912a,value:_0xfc45f7}=await _0x1ed799[_0x2c6c41(0x198)]();_0x23912a&&(_0x2658bc=!0x0),_0x23fe86[_0x2c6c41(0x1a1)](this[_0x2c6c41(0x1f3)][_0x2c6c41(0x1f2)](_0xfc45f7,{'stream':!0x0})),yield*_0x3af080,_0x3af080[_0x2c6c41(0x1c0)]=0x0;}}catch(_0x1ec7f7){this[_0x2c6c41(0x1d7)](_0x1ec7f7);}finally{_0x1ed799[_0x2c6c41(0x1e1)](),_0x23fe86[_0x2c6c41(0x176)]();}}[_0x51a979(0x1d7)](_0x49c020){const _0x2ceaef=_0x51a979;if(_0x49c020 instanceof _0x6236a7)throw _0x49c020;if(_0x49c020 instanceof Error&&_0x2ceaef(0x18f)===_0x49c020[_0x2ceaef(0x180)])throw new _0x6236a7(_0x2ceaef(0x17d),this,{'originalError':_0x49c020});throw new _0x6236a7(_0x2ceaef(0x1a3),this,{'originalError':_0x49c020});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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);}}
|
|
23
|
+
const _0x2140a2=_0x4606;(function(_0x1636a5,_0x1acc24){const _0x2452fa=_0x4606,_0x3355bb=_0x1636a5();while(!![]){try{const _0x1b5e21=parseInt(_0x2452fa(0x128))/0x1*(-parseInt(_0x2452fa(0x103))/0x2)+-parseInt(_0x2452fa(0x146))/0x3*(parseInt(_0x2452fa(0xf8))/0x4)+parseInt(_0x2452fa(0xea))/0x5*(parseInt(_0x2452fa(0xe6))/0x6)+parseInt(_0x2452fa(0x105))/0x7*(-parseInt(_0x2452fa(0x114))/0x8)+-parseInt(_0x2452fa(0x107))/0x9*(-parseInt(_0x2452fa(0x140))/0xa)+parseInt(_0x2452fa(0x14d))/0xb*(parseInt(_0x2452fa(0x136))/0xc)+parseInt(_0x2452fa(0xe2))/0xd;if(_0x1b5e21===_0x1acc24)break;else _0x3355bb['push'](_0x3355bb['shift']());}catch(_0x250632){_0x3355bb['push'](_0x3355bb['shift']());}}}(_0x527d,0x71114));function _0x527d(){const _0xab0d19=['_outputDataProcessor','locale','removeAllRanges','getRanges','viewToDom','trim','processor','isBefore',':end></','ck-fake-ai-selection','data','70840CzwXCO','from','join','markerToHighlight','has','name','toView','domConverter',':start></','listenTo','createRange','42pzudur','modelToDataWithIds','763imyoDb','element','27AJRCwQ','change','afterInit','isOfficialPlugin','start','random','hideFakeVisualSelection','add','_sessionId','showFakeVisualSelection','conversion','getDocumentData','getRoot','10328hMzDwR','fromCharCode',':end>','getLastMatchingPosition','$textProxy','_setOutputDataProcessor','schema','_getMarkersInDocumentOrder','pluginName','for','RealTimeCollaborationClient','createUIElement','ready','isAfter','get','substring','setAttribute','dataDowncast','plugins','getItems','21117gweycm','floor','ai-selection:','push','selection','markers',':start>','isAtEnd','_integrateEditor','getSelectionText','getSelection','_nextDataId','ai-selection','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','20652FriyJM','sessionId','document','view','editingDowncast','_getDocumentDataStringFromView','sort','getMarkersGroup','editors','getStart','146810NHUlhd','_setDataIdsOnChildren','removeMarker','version','addMarker','isContent','57ZrLmPl','htmlWriter','getChildren','model','editing','markerToElement','AIEditing','693tTBROP','define','ck-ai-assistant-ui_theme','_displayedFakeSelectionId','_displayedFakeSelectionLocked','length','ai.models.showModelSelector','config','isPremiumPlugin','markerName','isOpening','convertAiChatSelectionMarker','10390068iAzuPH','end','indexOf','data-id','12owglXA','containerElement','getHtml','toData','1080220IhrDgC','emptyElement','context'];_0x527d=function(){return _0xab0d19;};return _0x527d();}import{ViewDowncastWriter as _0x191f16}from'ckeditor5/src/engine.js';import{ContextPlugin as _0xd18856,Editor as _0x12f6c0}from'ckeditor5/src/core.js';import{uid as _0x181d39}from'ckeditor5/src/utils.js';import{getTranslation as _0x9edf5a}from'./utils/common-translations.js';function _0x4606(_0x5c73b6,_0x272e88){const _0x527d34=_0x527d();return _0x4606=function(_0x460662,_0x4d3a14){_0x460662=_0x460662-0xdc;let _0x1c997a=_0x527d34[_0x460662];return _0x1c997a;},_0x4606(_0x5c73b6,_0x272e88);}import{getEditorFromContext as _0xc5624a}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x2140a2(0x134);export class AIEditing extends _0xd18856{constructor(_0x1f21fc){const _0x599002=_0x2140a2;super(_0x1f21fc),this[_0x599002(0xec)][_0x599002(0xdd)][_0x599002(0x14e)](_0x599002(0xdc),!0x0);}[_0x2140a2(0xed)];[_0x2140a2(0x150)]=null;[_0x2140a2(0x151)]=!0x1;[_0x2140a2(0x10f)];static get[_0x2140a2(0x11c)](){const _0x449c37=_0x2140a2;return _0x449c37(0x14c);}static get[_0x2140a2(0x10a)](){return!0x0;}static get[_0x2140a2(0xde)](){return!0x0;}get[_0x2140a2(0x137)](){const _0x2e413d=_0x2140a2;if(!this[_0x2e413d(0x10f)]){const _0x117f9a=_0xc5624a(this[_0x2e413d(0xec)]),_0x31416a=_0x117f9a[_0x2e413d(0x126)][_0x2e413d(0xfc)](_0x2e413d(0x11e))&&_0x117f9a[_0x2e413d(0x126)][_0x2e413d(0x122)](_0x2e413d(0x11e))[_0x2e413d(0x137)];this[_0x2e413d(0x10f)]=_0x31416a||_0x181d39();}return this[_0x2e413d(0x10f)];}async[_0x2140a2(0x112)](){const _0x4df8eb=_0x2140a2,_0x3ad20d=_0xc5624a(this[_0x4df8eb(0xec)]),_0x3acd7b=_0x3ad20d[_0x4df8eb(0x149)],_0x33bc9e=_0x3ad20d[_0x4df8eb(0xf7)][_0x4df8eb(0xfe)](_0x3acd7b[_0x4df8eb(0x138)][_0x4df8eb(0x113)](),{'convertAiChatSelectionMarker':!0x0}),_0x2fe2c6=new _0x191f16(_0x3ad20d[_0x4df8eb(0x14a)][_0x4df8eb(0x139)][_0x4df8eb(0x138)]);this[_0x4df8eb(0x141)](_0x33bc9e,_0x2fe2c6);let _0x497045=await this[_0x4df8eb(0x13b)](_0x33bc9e);const _0x7e7d2d=this[_0x4df8eb(0x11b)](),_0xb81eef=[];for(const _0x34298a of _0x7e7d2d){const _0x5e2e6c='<'+_0x34298a[_0x4df8eb(0xfd)]+_0x4df8eb(0x100)+_0x34298a[_0x4df8eb(0xfd)]+_0x4df8eb(0x12e),_0x2125a3=_0x497045[_0x4df8eb(0xe4)](_0x5e2e6c);_0x497045=_0x497045[_0x4df8eb(0x123)](0x0,_0x2125a3)+_0x497045[_0x4df8eb(0x123)](_0x2125a3+_0x5e2e6c[_0x4df8eb(0x152)]);const _0x2faf2a='<'+_0x34298a[_0x4df8eb(0xfd)]+_0x4df8eb(0xf5)+_0x34298a[_0x4df8eb(0xfd)]+_0x4df8eb(0x116),_0x4a37ea=_0x497045[_0x4df8eb(0xe4)](_0x2faf2a);_0x497045=_0x497045[_0x4df8eb(0x123)](0x0,_0x4a37ea)+_0x497045[_0x4df8eb(0x123)](_0x4a37ea+_0x2faf2a[_0x4df8eb(0x152)]),_0xb81eef[_0x4df8eb(0x12b)]({'markerName':_0x34298a[_0x4df8eb(0xfd)],'start':_0x2125a3,'end':_0x4a37ea,'htmlFragment':_0x497045[_0x4df8eb(0x123)](_0x2125a3,_0x4a37ea)});}return{'content':_0x497045,'version':_0x3ad20d[_0x4df8eb(0x149)][_0x4df8eb(0x138)][_0x4df8eb(0x143)],'sessionId':this[_0x4df8eb(0x137)],'selections':_0xb81eef};}async[_0x2140a2(0x109)](){const _0x1a5f4e=_0x2140a2;this[_0x1a5f4e(0xec)]instanceof _0x12f6c0?this[_0x1a5f4e(0x130)](this[_0x1a5f4e(0xec)]):this[_0x1a5f4e(0x101)](this[_0x1a5f4e(0xec)][_0x1a5f4e(0x13e)],_0x1a5f4e(0x10e),(_0x435287,_0x3cca8b)=>{const _0x901174=_0x1a5f4e;_0x3cca8b['on'](_0x901174(0x120),()=>{const _0x14dad5=_0x901174;this[_0x14dad5(0x130)](_0x3cca8b);});});}[_0x2140a2(0x119)](_0x3641a8){const _0x21b207=_0x2140a2;this[_0x21b207(0xed)]=_0x3641a8;}async[_0x2140a2(0x13b)](_0x18547c){const _0x5b97e6=_0x2140a2;let _0x2e269;const _0x134040=_0xc5624a(this[_0x5b97e6(0xec)]);if(this[_0x5b97e6(0xed)]){const _0x1930f1=_0x134040[_0x5b97e6(0xf7)][_0x5b97e6(0xf3)][_0x5b97e6(0xff)][_0x5b97e6(0xf1)](_0x18547c),_0x411ac2=await this[_0x5b97e6(0xed)](_0x1930f1);_0x2e269=_0x134040[_0x5b97e6(0xf7)][_0x5b97e6(0xf3)][_0x5b97e6(0x147)][_0x5b97e6(0xe8)](_0x411ac2);}else _0x2e269=_0x134040[_0x5b97e6(0xf7)][_0x5b97e6(0xf3)][_0x5b97e6(0xe9)](_0x18547c);return _0x2e269;}[_0x2140a2(0x130)](_0x5e013a){const _0xc810cd=_0x2140a2;_0x5e013a[_0xc810cd(0x111)][_0xc810cd(0x11d)](_0xc810cd(0x13a))[_0xc810cd(0xfb)]({'model':_0xc810cd(0x134),'view':{'classes':[_0xc810cd(0xf6),_0xc810cd(0x14f)],'priority':0xc}}),_0x5e013a[_0xc810cd(0x111)][_0xc810cd(0x11d)](_0xc810cd(0x125))[_0xc810cd(0x14b)]({'model':_0xc810cd(0x134),'view':(_0x26576d,{writer:_0x4bc31c,options:_0x4b4abd})=>_0x4b4abd[_0xc810cd(0xe1)]?_0x4bc31c[_0xc810cd(0x11f)](_0x26576d[_0xc810cd(0xdf)]+':'+(_0x26576d[_0xc810cd(0xe0)]?_0xc810cd(0x10b):_0xc810cd(0xe3))):null});}[_0x2140a2(0x110)](_0x35234f,_0x34d66b,_0x319b2f=!0x1,_0x357a13=!0x1){const _0x1c949a=_0x2140a2;if(this[_0x1c949a(0x151)]&&!_0x357a13)return!0x1;const _0x40eeb7=_0xc5624a(this[_0x1c949a(0xec)])[_0x1c949a(0x149)];return _0x40eeb7[_0x1c949a(0x108)](_0x334a03=>{const _0x1638d7=_0x1c949a;this[_0x1638d7(0x150)]&&this[_0x1638d7(0x10d)](this[_0x1638d7(0x150)]),this[_0x1638d7(0x150)]=_0x34d66b,this[_0x1638d7(0x151)]=_0x319b2f;let _0x924c91=0x0;for(let _0x4e3546 of _0x35234f){const _0x39e0b3=_0x1638d7(0x12a)+_0x924c91;if(_0x4e3546[_0x1638d7(0x10b)][_0x1638d7(0x12f)]){const _0x866d3=_0x4e3546[_0x1638d7(0x10b)][_0x1638d7(0x117)](({item:_0x3286f3})=>!_0x40eeb7[_0x1638d7(0x11a)][_0x1638d7(0x145)](_0x3286f3),{'boundaries':_0x4e3546});_0x4e3546=_0x334a03[_0x1638d7(0x102)](_0x866d3,_0x4e3546[_0x1638d7(0xe3)]);}_0x334a03[_0x1638d7(0x144)](_0x39e0b3,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4e3546}),_0x924c91++;}}),window[_0x1c949a(0x132)]()?.[_0x1c949a(0xef)](),!0x0;}[_0x2140a2(0x10d)](_0x5cd7af){const _0x21f909=_0x2140a2;if(this[_0x21f909(0x150)]!=_0x5cd7af)return!0x1;this[_0x21f909(0x150)]=null,this[_0x21f909(0x151)]=!0x1;const _0x237026=_0xc5624a(this[_0x21f909(0xec)]),_0x1afa91=_0x237026[_0x21f909(0x149)][_0x21f909(0x12d)][_0x21f909(0x13d)](_0x21f909(0x134));return _0x237026[_0x21f909(0x149)][_0x21f909(0x108)](_0x16fb68=>{const _0x683690=_0x21f909;for(const _0x33bbc3 of _0x1afa91)_0x16fb68[_0x683690(0x142)](_0x33bbc3);}),!0x0;}async[_0x2140a2(0x104)](_0x233113){const _0x51435f=_0x2140a2,_0x13896d=_0xc5624a(this[_0x51435f(0xec)]),_0x29c6aa=_0x13896d[_0x51435f(0xf7)][_0x51435f(0xfe)](_0x233113),_0x554a94=new _0x191f16(_0x13896d[_0x51435f(0x14a)][_0x51435f(0x139)][_0x51435f(0x138)]);return this[_0x51435f(0x141)](_0x29c6aa,_0x554a94),this[_0x51435f(0x13b)](_0x29c6aa);}[_0x2140a2(0x141)](_0x13fb5b,_0x1100af){const _0x268bf6=_0x2140a2;let _0x4ec1cf=!0x1;const _0x304ecf=new Set();for(const _0x4295db of _0x13fb5b[_0x268bf6(0x148)]()){const _0x4f59af=_0x4295db['is'](_0x268bf6(0xeb))||_0x4295db['is'](_0x268bf6(0xe7));if(!_0x4295db['is'](_0x268bf6(0x106)))continue;(this[_0x268bf6(0x141)](_0x4295db,_0x1100af)||_0x4f59af)&&(_0x1100af[_0x268bf6(0x124)](_0x268bf6(0xe5),this[_0x268bf6(0x133)](_0x304ecf),_0x4295db),_0x4ec1cf=!0x0);}return _0x4ec1cf;}[_0x2140a2(0x133)](_0x32669a){const _0xb12ae1=_0x2140a2;let _0x4feb8d;do{_0x4feb8d='';for(let _0x587297=0x0;_0x587297<0x4;_0x587297++)_0x4feb8d+=String[_0xb12ae1(0x115)](0x61+Math[_0xb12ae1(0x129)](0x1a*Math[_0xb12ae1(0x10c)]()));}while(_0x32669a[_0xb12ae1(0xfc)](_0x4feb8d));return _0x32669a[_0xb12ae1(0x10e)](_0x4feb8d),_0x4feb8d;}[_0x2140a2(0x131)](){const _0x2f7754=_0x2140a2,{model:_0x597007}=_0xc5624a(this[_0x2f7754(0xec)]),_0x126cbf=_0x597007[_0x2f7754(0x138)][_0x2f7754(0x12c)],_0x167473=[];for(const _0x591c96 of _0x126cbf[_0x2f7754(0xf0)]())for(const _0x52e764 of _0x591c96[_0x2f7754(0x127)]())_0x52e764['is'](_0x2f7754(0x118))?_0x167473[_0x2f7754(0x12b)](_0x52e764[_0x2f7754(0xf7)]):_0x52e764['is'](_0x2f7754(0x106))&&_0x167473[_0x2f7754(0x152)]>0x0&&'\x20'!==_0x167473[_0x167473[_0x2f7754(0x152)]-0x1]&&_0x167473[_0x2f7754(0x12b)]('\x20');return _0x167473[_0x2f7754(0x152)]?'\x22'+_0x167473[_0x2f7754(0xfa)]('')[_0x2f7754(0xf2)]()+'\x22':_0x9edf5a(this[_0x2f7754(0xec)][_0x2f7754(0xee)],_0x2f7754(0x135));}[_0x2140a2(0x11b)](){const _0x385eec=_0x2140a2,_0x32506b=_0xc5624a(this[_0x385eec(0xec)])[_0x385eec(0x149)];return Array[_0x385eec(0xf9)](_0x32506b[_0x385eec(0x12d)][_0x385eec(0x13d)](_0x385eec(0x134)))[_0x385eec(0x13c)]((_0x8eb46a,_0x33e0ef)=>_0x8eb46a[_0x385eec(0x13f)]()[_0x385eec(0xf4)](_0x33e0ef[_0x385eec(0x13f)]())?-0x1:_0x8eb46a[_0x385eec(0x13f)]()[_0x385eec(0x121)](_0x33e0ef[_0x385eec(0x13f)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2131(){const _0x2c92dc=['webSearch','23252cxOybE','setWebSearch','63bFlCrY','reasoning','738822ZHAnUT','capabilitiesUpdated','getCapabilitiesConfig','setReasoning','isReasoningEnabled','toggleReasoning','_isReasoningEnabled','4566654XBHycz','3924uGCrjr','fire','576590ExESyg','init','toggleWebSearch','4914049iWpMdd','1389486KgJUDf','getCapabilitiesRequestData','reset','4532AooCRS','8DWWjoQ','5wllrlA','isWebSearchEnabled','_isWebSearchEnabled','27yBKzvA'];_0x2131=function(){return _0x2c92dc;};return _0x2131();}const _0x324fab=_0x3ef3;(function(_0x114b8b,_0x4d23c3){const _0x37aaa2=_0x3ef3,_0x2081ef=_0x114b8b();while(!![]){try{const _0x2a7e58=-parseInt(_0x37aaa2(0xf4))/0x1+parseInt(_0x37aaa2(0xe6))/0x2+parseInt(_0x37aaa2(0xee))/0x3*(-parseInt(_0x37aaa2(0xf0))/0x4)+-parseInt(_0x37aaa2(0xeb))/0x5*(parseInt(_0x37aaa2(0xfb))/0x6)+parseInt(_0x37aaa2(0xe5))/0x7*(parseInt(_0x37aaa2(0xea))/0x8)+-parseInt(_0x37aaa2(0xf2))/0x9*(-parseInt(_0x37aaa2(0xe2))/0xa)+-parseInt(_0x37aaa2(0xe9))/0xb*(-parseInt(_0x37aaa2(0xfc))/0xc);if(_0x2a7e58===_0x4d23c3)break;else _0x2081ef['push'](_0x2081ef['shift']());}catch(_0x18a106){_0x2081ef['push'](_0x2081ef['shift']());}}}(_0x2131,0x5d777));function _0x3ef3(_0x52fb84,_0xb7358d){const _0x2131f5=_0x2131();return _0x3ef3=function(_0x3ef324,_0x7f2728){_0x3ef324=_0x3ef324-0xe1;let _0x520b1b=_0x2131f5[_0x3ef324];return _0x520b1b;},_0x3ef3(_0x52fb84,_0xb7358d);}import{EmitterMixin as _0xe08f0b}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x324fab(0xf5)];export class AICapabilities extends _0xe08f0b(){[_0x324fab(0xed)];[_0x324fab(0xfa)];constructor(){const _0x2fe609=_0x324fab;super(),this[_0x2fe609(0xed)]=!0x1,this[_0x2fe609(0xfa)]=!0x1;}[_0x324fab(0xe3)](){const _0x4415c0=_0x324fab;this[_0x4415c0(0xe8)]();}[_0x324fab(0xe8)](){const _0x2c8324=_0x324fab;this[_0x2c8324(0xf1)](!0x1),this[_0x2c8324(0xf7)](!0x1);}[_0x324fab(0xf6)](){const _0x2fcf38=_0x324fab;return{'isWebSearchEnabled':this[_0x2fcf38(0xed)],'isReasoningEnabled':this[_0x2fcf38(0xfa)]};}static[_0x324fab(0xe7)](_0x1ea9f9){const _0xe5d559=_0x324fab,_0x42faf2={};return _0x1ea9f9&&_0x1ea9f9[_0xe5d559(0xec)]&&(_0x42faf2[_0xe5d559(0xef)]={}),_0x1ea9f9&&_0x1ea9f9[_0xe5d559(0xf8)]&&(_0x42faf2[_0xe5d559(0xf3)]={}),_0x42faf2;}[_0x324fab(0xe4)](){const _0x185df8=_0x324fab;this[_0x185df8(0xf1)](!this[_0x185df8(0xed)]);}[_0x324fab(0xf9)](){const _0x409995=_0x324fab;this[_0x409995(0xf7)](!this[_0x409995(0xfa)]);}[_0x324fab(0xf1)](_0x339ac9){const _0x71602f=_0x324fab;_0x339ac9!==this[_0x71602f(0xed)]&&(this[_0x71602f(0xed)]=_0x339ac9,this[_0x71602f(0xe1)](_0x71602f(0xf5),this[_0x71602f(0xf6)]()));}[_0x324fab(0xf7)](_0x16ce18){const _0x5446d5=_0x324fab;_0x16ce18!==this[_0x5446d5(0xfa)]&&(this[_0x5446d5(0xfa)]=_0x16ce18,this[_0x5446d5(0xe1)](_0x5446d5(0xf5),this[_0x5446d5(0xf6)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x55d246,_0x2cf435){var _0x4b2b53=_0x5542,_0x793766=_0x55d246();while(!![]){try{var _0x515481=-parseInt(_0x4b2b53(0x10d))/0x1*(-parseInt(_0x4b2b53(0x114))/0x2)+-parseInt(_0x4b2b53(0x100))/0x3*(parseInt(_0x4b2b53(0x118))/0x4)+-parseInt(_0x4b2b53(0x11a))/0x5+-parseInt(_0x4b2b53(0x112))/0x6*(-parseInt(_0x4b2b53(0x117))/0x7)+-parseInt(_0x4b2b53(0x105))/0x8*(parseInt(_0x4b2b53(0x113))/0x9)+parseInt(_0x4b2b53(0x116))/0xa*(parseInt(_0x4b2b53(0x119))/0xb)+parseInt(_0x4b2b53(0xfe))/0xc*(parseInt(_0x4b2b53(0x110))/0xd);if(_0x515481===_0x2cf435)break;else _0x793766['push'](_0x793766['shift']());}catch(_0x36f25b){_0x793766['push'](_0x793766['shift']());}}}(_0x54e4,0x3f169));export var AIContextItemType;!function(_0x87e3b9){var _0x5c88b6=_0x5542;_0x87e3b9[_0x5c88b6(0x115)]=_0x5c88b6(0x106),_0x87e3b9[_0x5c88b6(0x10f)]=_0x5c88b6(0x102),_0x87e3b9[_0x5c88b6(0x10c)]=_0x5c88b6(0x104),_0x87e3b9[_0x5c88b6(0x10e)]=_0x5c88b6(0x10b),_0x87e3b9[_0x5c88b6(0x10a)]=_0x5c88b6(0x107),_0x87e3b9[_0x5c88b6(0x101)]=_0x5c88b6(0x108);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x5542(_0x15574d,_0x2022dc){var _0x54e48c=_0x54e4();return _0x5542=function(_0x554265,_0x24f95d){_0x554265=_0x554265-0xfe;var _0x23d03f=_0x54e48c[_0x554265];return _0x23d03f;},_0x5542(_0x15574d,_0x2022dc);}function _0x54e4(){var _0x29d35c=['51317uwwmUk','11624ViPtRz','385gTaZpn','2547070IfCRCr','9571332tlqxzd','HTML','501LnMBzu','SELECTION','file','MARKDOWN','document','82864gSLsmw','mcp-tool-context','text','selection','markdown','TEXT','web-resource','DOCUMENT','5712eWtQyN','URL','FILE','13ShfspA','html','186oDFVaW','207VJvvkK','122LdPZgg','TOOL','33730xVGOCb'];_0x54e4=function(){return _0x29d35c;};return _0x54e4();}!function(_0x22e5c5){var _0x46cba=_0x5542;_0x22e5c5[_0x46cba(0x10a)]=_0x46cba(0x107),_0x22e5c5[_0x46cba(0x103)]=_0x46cba(0x109),_0x22e5c5[_0x46cba(0xff)]=_0x46cba(0x111);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|