@ckeditor/ckeditor5-ai 47.7.2 → 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
|
-
function
|
|
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
|
-
const
|
|
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
|
-
|
|
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 _0x3811f6=_0x4448;(function(_0x2f78de,_0x1135ec){const _0x3bafd3=_0x4448,_0x4478fd=_0x2f78de();while(!![]){try{const _0x2acc98=-parseInt(_0x3bafd3(0x1e9))/0x1+parseInt(_0x3bafd3(0x1c9))/0x2*(-parseInt(_0x3bafd3(0x1d9))/0x3)+-parseInt(_0x3bafd3(0x1bc))/0x4+-parseInt(_0x3bafd3(0x200))/0x5+parseInt(_0x3bafd3(0x1f7))/0x6*(parseInt(_0x3bafd3(0x1d0))/0x7)+parseInt(_0x3bafd3(0x1bd))/0x8*(-parseInt(_0x3bafd3(0x1e6))/0x9)+parseInt(_0x3bafd3(0x1e4))/0xa;if(_0x2acc98===_0x1135ec)break;else _0x4478fd['push'](_0x4478fd['shift']());}catch(_0x26fa6d){_0x4478fd['push'](_0x4478fd['shift']());}}}(_0x2e66,0x34e67));import{View as _0x35ee7e,SearchTextView as _0xd8b7ae,FormHeaderView as _0x18df13,ButtonView as _0x308e8c}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3963c0,IconCancel as _0x29f2d6,IconPlus as _0x581c2a}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x546df9}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x177fde}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x449a88}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2ec27f}from'../aichathistoryui.js';import{AISkeletonView as _0xf76c91,SKELETON_DEFINITIONS as _0x3bf8de}from'../../aicore/ui/aiskeleton.js';function _0x4448(_0x36435a,_0x1c77ad){const _0x2e6631=_0x2e66();return _0x4448=function(_0x444801,_0x1a6ce9){_0x444801=_0x444801-0x1a9;let _0x45b45e=_0x2e6631[_0x444801];return _0x45b45e;},_0x4448(_0x36435a,_0x1c77ad);}import{createResizeButton as _0x5cabbd}from'../../aicore/utils/createresizebutton.js';function _0x2e66(){const _0x5604fe=['set','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-chat-history__empty-message','ck-ai-chat-history__content','errorMessage','removeItem','change:isLoading','438Izfrjk','updateHistoryItemsWithCategories','add','bindTemplate','ck-ai-chat-history','change:errorMessage','updateLoadingState','735721rpWNhH','searchView','emptyView','ck-reset_all','_updateViewVisibility','ck-ai-notification','updateItemLoadingState','splice','length','4815GSIBfs','addMany','ck-ai-chat-history__empty','value','resizeButton','delegate','getItem','sectionsView','isVisible','isMainErrorViewVisible','ltr','14610790xqvZeZ','itemsViews','52335wPKLFO','AI_CHAT_HISTORY_HEADING','element','69295hlclhj','isEmptyViewVisible','removeHistoryItem','AI_CHAT_LABEL_NEW_CHAT','ck-ai-notification_error','title','div','setTemplate','queryView','updateItemTitle','_createEmptyStateView','remove','fire','search','18VnQqZp','updateTitle','isMaximized','extendTemplate','aiHistory','sections','some','children','bind','2066095TSbmOM','render','_refreshSearch','fieldView','ck-ai-notification_error__dismiss-button','clear','locale','isLoading','push','indexOf','ck-rounded-corners','_createErrorView','ck-hidden','execute','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','AI_CHAT_HISTORY_SEARCH_LABEL','change:hasItems','skeletonView','items','ck-ai-chat__start-conversation','isSearchViewVisible','_createSearchView','hasItems','_createSkeletonView','1251340FRzSTC','568kFcHLn','openChat','_createListItemViews','ck-ai-header\x20ck-ai-header_history','mainErrorView'];_0x2e66=function(){return _0x5604fe;};return _0x2e66();}import{getTranslation as _0x10c7f0}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x35ee7e{[_0x3811f6(0x1d1)];[_0x3811f6(0x1c1)];[_0x3811f6(0x1b5)];[_0x3811f6(0x1d2)];[_0x3811f6(0x1e0)];[_0x3811f6(0x1dd)];constructor(_0xc1f7a0,_0x37fd66){const _0xc10e05=_0x3811f6;super(_0xc1f7a0),this[_0xc10e05(0x1c2)](_0xc10e05(0x1ba),!0x1),this[_0xc10e05(0x1c2)](_0xc10e05(0x1aa),!0x0),this[_0xc10e05(0x1c2)](_0xc10e05(0x1c6),''),this[_0xc10e05(0x1c2)](_0xc10e05(0x1f9),!0x1),this[_0xc10e05(0x1c2)](_0xc10e05(0x1b8),!0x1),this[_0xc10e05(0x1c2)](_0xc10e05(0x1ea),!0x1),this[_0xc10e05(0x1c2)](_0xc10e05(0x1e2),!0x1);const _0x58f52b=new _0x18df13(_0xc1f7a0,{'label':_0x10c7f0(_0xc1f7a0,_0xc10e05(0x1e7)),'icon':_0x3963c0,'class':_0xc10e05(0x1c0)});_0x37fd66&&(this[_0xc10e05(0x1dd)]=_0x5cabbd(_0xc1f7a0,this),_0x58f52b[_0xc10e05(0x1fe)][_0xc10e05(0x1cb)](this[_0xc10e05(0x1dd)])),this[_0xc10e05(0x1e0)]=new _0x546df9(_0xc1f7a0,[]),this[_0xc10e05(0x1e0)][_0xc10e05(0x1de)](..._0x2ec27f)['to'](this),this[_0xc10e05(0x1c1)]=this[_0xc10e05(0x1ae)](),this[_0xc10e05(0x1b5)]=this[_0xc10e05(0x1bb)](),this[_0xc10e05(0x1d2)]=this[_0xc10e05(0x1f3)](),this[_0xc10e05(0x1d1)]=this[_0xc10e05(0x1b9)](),this[_0xc10e05(0x1c1)][_0xc10e05(0x1fa)]({'attributes':{'class':[this[_0xc10e05(0x1cc)]['if'](_0xc10e05(0x1e2),_0xc10e05(0x1af),_0x2c1ca=>!_0x2c1ca)]}}),this['on'](_0xc10e05(0x1c8),()=>this[_0xc10e05(0x1d4)]()),this['on'](_0xc10e05(0x1b4),()=>this[_0xc10e05(0x1d4)]()),this['on'](_0xc10e05(0x1ce),()=>this[_0xc10e05(0x1d4)]()),this[_0xc10e05(0x1f0)]({'tag':_0xc10e05(0x1ef),'attributes':{'class':['ck',_0xc10e05(0x1d3),_0xc10e05(0x1cd),_0xc10e05(0x1ad)],'dir':_0xc10e05(0x1e3)},'children':[_0x58f52b,{'tag':_0xc10e05(0x1ef),'attributes':{'class':[_0xc10e05(0x1c5)]},'children':[this[_0xc10e05(0x1b5)],this[_0xc10e05(0x1c1)],this[_0xc10e05(0x1d2)],this[_0xc10e05(0x1d1)]]}]});}[_0x3811f6(0x1d4)](){const _0x998855=_0x3811f6;this[_0x998855(0x1b8)]=!this[_0x998855(0x1aa)]&&this[_0x998855(0x1ba)],this[_0x998855(0x1ea)]=!this[_0x998855(0x1aa)]&&!this[_0x998855(0x1ba)]&&!this[_0x998855(0x1c6)],this[_0x998855(0x1e2)]=!this[_0x998855(0x1b8)]&&!!this[_0x998855(0x1c6)];}[_0x3811f6(0x1b9)](){const _0x3dccde=_0x3811f6,_0x1916ca=new _0xd8b7ae(this[_0x3dccde(0x1a9)],{'filteredView':this[_0x3dccde(0x1e0)],'queryView':{'label':_0x10c7f0(this[_0x3dccde(0x1a9)],_0x3dccde(0x1b3))},'infoView':{'text':{'notFound':{'primary':_0xb54302=>_0x10c7f0(this[_0x3dccde(0x1a9)],_0x3dccde(0x1b2),_0xb54302),'secondary':_0x10c7f0(this[_0x3dccde(0x1a9)],_0x3dccde(0x1b1))}}}}),_0x4458ee=this[_0x3dccde(0x1ae)]();return _0x4458ee[_0x3dccde(0x1fa)]({'attributes':{'class':[this[_0x3dccde(0x1cc)]['if'](_0x3dccde(0x1c6),_0x3dccde(0x1af),_0x5c3cfa=>!_0x5c3cfa)]}}),_0x1916ca['on'](_0x3dccde(0x201),()=>{const _0xee03bf=_0x3dccde;_0x1916ca[_0xee03bf(0x1fe)][_0xee03bf(0x1cb)](_0x4458ee,0x1);}),_0x1916ca[_0x3dccde(0x1fa)]({'attributes':{'class':[this[_0x3dccde(0x1cc)]['if'](_0x3dccde(0x1b8),_0x3dccde(0x1af),_0x25c548=>!_0x25c548)]}}),_0x1916ca;}[_0x3811f6(0x1bb)](){const _0x5db565=_0x3811f6,_0x20f298=new _0xf76c91(this[_0x5db565(0x1a9)],_0x3bf8de[_0x5db565(0x1fb)]);return _0x20f298[_0x5db565(0x1fa)]({'attributes':{'class':[this[_0x5db565(0x1cc)]['if'](_0x5db565(0x1aa),_0x5db565(0x1af),_0x276c38=>!_0x276c38)]}}),_0x20f298;}[_0x3811f6(0x1ae)](){const _0x275779=_0x3811f6,_0x1fb622=new _0x35ee7e(this[_0x275779(0x1a9)]),_0xa27255=new _0x308e8c(this[_0x275779(0x1a9)]);_0xa27255[_0x275779(0x1c2)]({'withText':!0x1,'icon':_0x29f2d6,'class':_0x275779(0x204)}),_0xa27255[_0x275779(0x1ff)](_0x275779(0x1e1))['to'](this,_0x275779(0x1ba),_0x58aeb0=>!!_0x58aeb0),_0xa27255['on'](_0x275779(0x1b0),()=>{const _0x2067ae=_0x275779;this[_0x2067ae(0x1c6)]='';});const _0x33aec9=this[_0x275779(0x1cc)];return _0x1fb622[_0x275779(0x1f0)]({'tag':_0x275779(0x1ef),'attributes':{'class':['ck',_0x275779(0x1d5),_0x275779(0x1ed)]},'children':[{'tag':'p','children':[{'text':_0x33aec9['to'](_0x275779(0x1c6))}]},_0xa27255]}),_0x1fb622;}[_0x3811f6(0x1f3)](){const _0x5d93b2=_0x3811f6,_0x32939b=new _0x308e8c(this[_0x5d93b2(0x1a9)]);_0x32939b[_0x5d93b2(0x1c2)]({'label':_0x10c7f0(this[_0x5d93b2(0x1a9)],_0x5d93b2(0x1ec)),'withText':!0x0,'icon':_0x581c2a,'class':_0x5d93b2(0x1b7)}),_0x32939b['on'](_0x5d93b2(0x1b0),()=>{const _0x1c2db2=_0x5d93b2;this[_0x1c2db2(0x1f5)](_0x1c2db2(0x1be));});const _0x3c4383=new _0x35ee7e(this[_0x5d93b2(0x1a9)]);return _0x3c4383[_0x5d93b2(0x1f0)]({'tag':_0x5d93b2(0x1ef),'attributes':{'class':[_0x5d93b2(0x1db),this[_0x5d93b2(0x1cc)]['if'](_0x5d93b2(0x1ea),_0x5d93b2(0x1af),_0x240498=>!_0x240498)]},'children':[{'tag':'p','attributes':{'class':[_0x5d93b2(0x1c4)]},'children':[_0x10c7f0(this[_0x5d93b2(0x1a9)],_0x5d93b2(0x1c3))]},_0x32939b]}),_0x3c4383;}[_0x3811f6(0x1bf)](_0x573fdc,_0x58e383){const _0x40d5b4=_0x3811f6,_0x42ca38=[];for(const _0x2a56cb of _0x573fdc){const _0x33219f=new _0x449a88(_0x58e383,_0x2a56cb);_0x33219f[_0x40d5b4(0x1de)](..._0x2ec27f)['to'](this),_0x42ca38[_0x40d5b4(0x1ab)](_0x33219f);}return _0x42ca38;}[_0x3811f6(0x1ca)](_0x15c5e4){const _0x19a08a=_0x3811f6,_0x299ed7=this[_0x19a08a(0x1a9)]||'en',_0x31095b=[];for(const _0x10cf19 of _0x15c5e4){const _0x57cebc=this[_0x19a08a(0x1bf)](_0x10cf19[_0x19a08a(0x1b6)],_0x299ed7);_0x31095b[_0x19a08a(0x1ab)](new _0x177fde(_0x299ed7,{'title':_0x10cf19[_0x19a08a(0x1ee)],'items':_0x57cebc}));}this[_0x19a08a(0x1e0)][_0x19a08a(0x1fc)]=_0x31095b,this[_0x19a08a(0x1e0)][_0x19a08a(0x1b6)][_0x19a08a(0x205)](),this[_0x19a08a(0x1e0)][_0x19a08a(0x1b6)][_0x19a08a(0x1da)](_0x31095b),this[_0x19a08a(0x1ba)]=_0x15c5e4[_0x19a08a(0x1fd)](_0x452aec=>_0x452aec[_0x19a08a(0x1b6)][_0x19a08a(0x1d8)]>0x0),this[_0x19a08a(0x202)]();}[_0x3811f6(0x1eb)](_0x3ba585){const _0xa02a5f=_0x3811f6;for(const _0x45e314 of this[_0xa02a5f(0x1e0)][_0xa02a5f(0x1fc)]){const _0x4932cc=_0x45e314[_0xa02a5f(0x1df)](_0x3ba585);if(_0x4932cc){if(_0x45e314[_0xa02a5f(0x1c7)](_0x4932cc),0x0===_0x45e314[_0xa02a5f(0x1e5)][_0xa02a5f(0x1d8)]){const _0x352f43=this[_0xa02a5f(0x1e0)][_0xa02a5f(0x1fc)][_0xa02a5f(0x1ac)](_0x45e314);-0x1!==_0x352f43&&(this[_0xa02a5f(0x1e0)][_0xa02a5f(0x1fc)][_0xa02a5f(0x1d7)](_0x352f43,0x1),this[_0xa02a5f(0x1e0)][_0xa02a5f(0x1b6)][_0xa02a5f(0x1f4)](_0x45e314));}this[_0xa02a5f(0x1ba)]=this[_0xa02a5f(0x1e0)][_0xa02a5f(0x1fc)][_0xa02a5f(0x1d8)]>0x0,this[_0xa02a5f(0x202)]();break;}}}[_0x3811f6(0x1f2)](_0x5b5c95,_0x12d7e4){const _0x4afb30=_0x3811f6;for(const _0x166232 of this[_0x4afb30(0x1e0)][_0x4afb30(0x1fc)]){const _0x22fbba=_0x166232[_0x4afb30(0x1df)](_0x5b5c95);if(_0x22fbba){_0x22fbba[_0x4afb30(0x1f8)](_0x12d7e4);break;}}}[_0x3811f6(0x1d6)](_0x271a48,_0x4d4839,_0x3c24b1){const _0x2529cd=_0x3811f6;for(const _0x2df0db of this[_0x2529cd(0x1e0)][_0x2529cd(0x1fc)]){const _0x3809e2=_0x2df0db[_0x2529cd(0x1df)](_0x271a48);if(_0x3809e2){_0x3809e2[_0x2529cd(0x1cf)](_0x4d4839,_0x3c24b1);break;}}}[_0x3811f6(0x202)](){const _0x3a3646=_0x3811f6;if(this[_0x3a3646(0x1ba)]){const _0x2bcdaf=this[_0x3a3646(0x1d1)][_0x3a3646(0x1f1)][_0x3a3646(0x203)]?.[_0x3a3646(0x1e8)]?.[_0x3a3646(0x1dc)]||'';this[_0x3a3646(0x1d1)][_0x3a3646(0x1f6)](_0x2bcdaf);}}}
|
|
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
|
-
const
|
|
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
|
-
|
|
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 _0x5cee35=_0x2fbc;(function(_0x14ffd8,_0x7d826c){const _0x3a0cab=_0x2fbc,_0x7088d2=_0x14ffd8();while(!![]){try{const _0x41d716=parseInt(_0x3a0cab(0x1e5))/0x1+-parseInt(_0x3a0cab(0x19c))/0x2*(-parseInt(_0x3a0cab(0x1dc))/0x3)+-parseInt(_0x3a0cab(0x1f0))/0x4+parseInt(_0x3a0cab(0x1d5))/0x5*(parseInt(_0x3a0cab(0x1f8))/0x6)+parseInt(_0x3a0cab(0x185))/0x7*(parseInt(_0x3a0cab(0x1a5))/0x8)+-parseInt(_0x3a0cab(0x1b7))/0x9*(parseInt(_0x3a0cab(0x200))/0xa)+-parseInt(_0x3a0cab(0x1f7))/0xb;if(_0x41d716===_0x7d826c)break;else _0x7088d2['push'](_0x7088d2['shift']());}catch(_0x1a41a4){_0x7088d2['push'](_0x7088d2['shift']());}}}(_0x1fcd,0x5e4f0));function _0x2fbc(_0x3b5999,_0x41063b){const _0x1fcd45=_0x1fcd();return _0x2fbc=function(_0x2fbc48,_0x94327a){_0x2fbc48=_0x2fbc48-0x170;let _0x5a2a06=_0x1fcd45[_0x2fbc48];return _0x5a2a06;},_0x2fbc(_0x3b5999,_0x41063b);}import{createParser as _0x38f7e1}from'eventsource-parser';import{ContextPlugin as _0x4af224}from'ckeditor5/src/core.js';import{CKEditorError as _0x5efe38}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0xe81368){const _0x82241a=_0x2fbc;_0xe81368[_0x82241a(0x18a)]=_0x82241a(0x188),_0xe81368[_0x82241a(0x1c3)]=_0x82241a(0x198),_0xe81368[_0x82241a(0x1d2)]=_0x82241a(0x1e0),_0xe81368[_0x82241a(0x1c9)]=_0x82241a(0x1d9),_0xe81368[_0x82241a(0x1de)]=_0x82241a(0x173),_0xe81368[_0x82241a(0x19b)]=_0x82241a(0x201),_0xe81368[_0x82241a(0x1a2)]=_0x82241a(0x1bb),_0xe81368[_0x82241a(0x1b3)]=_0x82241a(0x18e);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x4af224{[_0x5cee35(0x1ea)];[_0x5cee35(0x1f4)];[_0x5cee35(0x1db)];static get[_0x5cee35(0x1a1)](){const _0x33b178=_0x5cee35;return[_0x33b178(0x1e3)];}static get[_0x5cee35(0x1b5)](){const _0x54876c=_0x5cee35;return _0x54876c(0x1ff);}static get[_0x5cee35(0x18c)](){return!0x0;}static get[_0x5cee35(0x181)](){return!0x0;}constructor(_0x231e74){const _0x3a0295=_0x5cee35;super(_0x231e74),this[_0x3a0295(0x1a8)][_0x3a0295(0x1e6)][_0x3a0295(0x1fa)](_0x3a0295(0x1b8),_0x3a0295(0x192)),this[_0x3a0295(0x1ea)]=this[_0x3a0295(0x1a8)][_0x3a0295(0x1e6)][_0x3a0295(0x189)](_0x3a0295(0x1b8)),this[_0x3a0295(0x1f4)]=null,this[_0x3a0295(0x1db)]=new TextDecoder();}[_0x5cee35(0x190)](){const _0x41219d=_0x5cee35,_0x460a89=this[_0x41219d(0x1a8)][_0x41219d(0x1d8)][_0x41219d(0x189)](_0x41219d(0x1e3));if(!_0x460a89[_0x41219d(0x1dd)])throw new _0x5efe38(_0x41219d(0x1ee),this);this[_0x41219d(0x1f4)]=_0x460a89[_0x41219d(0x1dd)];}[_0x5cee35(0x1cc)](_0x1eff7f,_0x3b74b6){const _0x5ec760=_0x5cee35,_0x2f382c=this[_0x5ec760(0x179)](_0x5ec760(0x19f),_0x5ec760(0x1e7),{'id':_0x1eff7f,'group':_0x3b74b6});return{'getConversation':async()=>(await _0x2f382c[_0x5ec760(0x1e2)])[_0x5ec760(0x1ac)](),'abortController':_0x2f382c[_0x5ec760(0x1e1)]};}[_0x5cee35(0x1c0)]({message:_0x23cb21,conversationId:_0x449d8f,parts:_0x2a449e,capabilities:_0xa73acd,model:_0x43c183,attributes:_0x39165c}){const _0xa91b97=_0x5cee35,_0x5da961={'prompt':_0x23cb21,'content':_0x2a449e,'model':_0x43c183,..._0xa73acd&&{'capabilities':_0xa73acd},..._0x39165c&&{'attributes':_0x39165c}},_0x22dcf7=this[_0xa91b97(0x179)](_0xa91b97(0x1ab)+_0x449d8f+_0xa91b97(0x1fc),_0xa91b97(0x1e7),_0x5da961);return{'getStream':async()=>{const _0x256344=_0xa91b97,_0x2cf3df=(await _0x22dcf7[_0x256344(0x1e2)])[_0x256344(0x1b0)];return this[_0x256344(0x1c6)](_0x2cf3df);},'abortController':_0x22dcf7[_0xa91b97(0x1e1)]};}[_0x5cee35(0x1bd)]({content:_0x481544,message:_0x409988,model:_0x382ca6,outputFormat:_0x46584d}){const _0x3bee34=_0x5cee35,_0x2b298a={'content':[{'type':_0x3bee34(0x205),'content':_0x481544}],'prompt':_0x409988,'model':_0x382ca6,'outputFormat':_0x46584d},_0x1ad2f3=this[_0x3bee34(0x179)](_0x3bee34(0x1f6),_0x3bee34(0x1e7),_0x2b298a);return{'getStream':async()=>{const _0x429bcd=_0x3bee34,_0x3ede95=(await _0x1ad2f3[_0x429bcd(0x1e2)])[_0x429bcd(0x1b0)];return this[_0x429bcd(0x1c6)](_0x3ede95);},'abortController':_0x1ad2f3[_0x3bee34(0x1e1)]};}[_0x5cee35(0x1c4)]({actionName:_0x17afbc,content:_0x162e3e,args:_0x1f78e0}){const _0x407a8d=_0x5cee35,_0x49a1fa={'content':[{'type':_0x407a8d(0x205),'content':_0x162e3e}],'args':_0x1f78e0},_0x4e18a5=this[_0x407a8d(0x179)](_0x407a8d(0x19d)+_0x17afbc+_0x407a8d(0x1b4),_0x407a8d(0x1e7),_0x49a1fa);return{'getStream':async()=>{const _0x2dab3e=_0x407a8d,_0x18eeab=(await _0x4e18a5[_0x2dab3e(0x1e2)])[_0x2dab3e(0x1b0)];return this[_0x2dab3e(0x1c6)](_0x18eeab);},'abortController':_0x4e18a5[_0x407a8d(0x1e1)]};}[_0x5cee35(0x19a)](_0x1bcf98,_0x1a248b,_0x33c348){const _0x36090d=_0x5cee35,_0x1b739b=new FormData();_0x1b739b[_0x36090d(0x1a0)](_0x36090d(0x180),_0x1a248b,_0x1a248b[_0x36090d(0x1ad)]),_0x33c348&&_0x1b739b[_0x36090d(0x1a0)](_0x36090d(0x1ec),JSON[_0x36090d(0x1cd)](_0x33c348));const _0x26a034=this[_0x36090d(0x179)](_0x36090d(0x1ab)+_0x1bcf98+_0x36090d(0x193),_0x36090d(0x1e7),_0x1b739b);return{'getId':async()=>(await _0x26a034[_0x36090d(0x1e2)])[_0x36090d(0x1ac)](),'abortController':_0x26a034[_0x36090d(0x1e1)]};}[_0x5cee35(0x1a7)](_0x1f9423,_0x54f510){const _0x1b30da=_0x5cee35,_0x2e2a1a=this[_0x1b30da(0x179)](_0x1b30da(0x1ab)+_0x1f9423+_0x1b30da(0x1fb)+_0x54f510,_0x1b30da(0x1d4));return{'getDocument':async()=>(await _0x2e2a1a[_0x1b30da(0x1e2)])[_0x1b30da(0x1ac)](),'abortController':_0x2e2a1a[_0x1b30da(0x1e1)]};}[_0x5cee35(0x1eb)](_0x3fb054,_0xd58b02,_0x50eeec){const _0x4824ce=_0x5cee35,_0x575f06={'content':_0xd58b02};_0x50eeec&&(_0x575f06[_0x4824ce(0x1ec)]=_0x50eeec);const _0x324e6c=this[_0x4824ce(0x179)](_0x4824ce(0x1ab)+_0x3fb054+_0x4824ce(0x1e9),_0x4824ce(0x1e7),_0x575f06);return{'getId':async()=>(await _0x324e6c[_0x4824ce(0x1e2)])[_0x4824ce(0x1ac)](),'abortController':_0x324e6c[_0x4824ce(0x1e1)]};}[_0x5cee35(0x1cf)](_0x18b436,_0x134491={}){const _0x481610=_0x5cee35,_0x34d1cf=new URLSearchParams();_0x34d1cf[_0x481610(0x1a0)](_0x481610(0x1c5),_0x18b436),_0x34d1cf[_0x481610(0x1a0)](_0x481610(0x1ef),!0x1!==_0x134491[_0x481610(0x1ef)]?_0x481610(0x182):_0x481610(0x171)),_0x34d1cf[_0x481610(0x1a0)](_0x481610(0x191),_0x134491[_0x481610(0x191)]?_0x134491[_0x481610(0x191)][_0x481610(0x1b2)]():_0x481610(0x1c7)),_0x34d1cf[_0x481610(0x1a0)](_0x481610(0x202),_0x134491[_0x481610(0x202)]?_0x134491[_0x481610(0x202)]:_0x481610(0x1d1)),_0x34d1cf[_0x481610(0x1a0)](_0x481610(0x197),_0x134491[_0x481610(0x197)]?_0x134491[_0x481610(0x197)]:_0x481610(0x17f));const _0x10bd2c=this[_0x481610(0x179)](_0x481610(0x178)+_0x34d1cf[_0x481610(0x1b2)](),_0x481610(0x1d4));return{'getConversations':async()=>{const _0x322f11=_0x481610,_0xb3960b=await _0x10bd2c[_0x322f11(0x1e2)];return(await _0xb3960b[_0x322f11(0x1ac)]())[_0x322f11(0x1a6)];},'abortController':_0x10bd2c[_0x481610(0x1e1)]};}[_0x5cee35(0x204)](_0x44ceae){const _0x1cc8f7=_0x5cee35,_0x23c318=this[_0x1cc8f7(0x179)](_0x1cc8f7(0x1ab)+_0x44ceae,_0x1cc8f7(0x194));return{'execute':async()=>{const _0x2d68f5=_0x1cc8f7;await _0x23c318[_0x2d68f5(0x1e2)];},'abortController':_0x23c318[_0x1cc8f7(0x1e1)]};}[_0x5cee35(0x1d3)](_0x36b2a2,_0x45ba8f){const _0x3c4628=_0x5cee35,_0x1e3fce=this[_0x3c4628(0x179)](_0x3c4628(0x1ab)+_0x36b2a2,_0x3c4628(0x1ba),_0x45ba8f);return{'getResult':async()=>(await _0x1e3fce[_0x3c4628(0x1e2)],_0x45ba8f),'abortController':_0x1e3fce[_0x3c4628(0x1e1)]};}[_0x5cee35(0x18d)](_0x3c5660){const _0x241123=_0x5cee35,_0x13087d=this[_0x241123(0x179)](_0x241123(0x1ab)+_0x3c5660,_0x241123(0x1d4));return{'getConversation':async()=>(await _0x13087d[_0x241123(0x1e2)])[_0x241123(0x1ac)](),'abortController':_0x13087d[_0x241123(0x1e1)]};}[_0x5cee35(0x1bf)](_0x11b20c){const _0x33b361=_0x5cee35,_0x4173aa=this[_0x33b361(0x179)](_0x33b361(0x1ab)+_0x11b20c+_0x33b361(0x1fc),_0x33b361(0x1d4));return{'getMessages':async()=>{const _0xef3611=_0x33b361,_0x18d1d1=await _0x4173aa[_0xef3611(0x1e2)];return(await _0x18d1d1[_0xef3611(0x1ac)]())[_0xef3611(0x1a6)];},'abortController':_0x4173aa[_0x33b361(0x1e1)]};}[_0x5cee35(0x1df)](_0x2b7a72,_0xc14cd7,_0x33e449){const _0x3b5d39=_0x5cee35,_0x3169e0=this[_0x3b5d39(0x179)](_0x3b5d39(0x1ab)+_0x2b7a72+_0x3b5d39(0x1f5),_0x3b5d39(0x1e7),{'url':_0xc14cd7,'attributes':_0x33e449});return{'getId':async()=>(await _0x3169e0[_0x3b5d39(0x1e2)])[_0x3b5d39(0x1ac)](),'abortController':_0x3169e0[_0x3b5d39(0x1e1)]};}[_0x5cee35(0x1e4)](_0x37cefd='en'){const _0x475707=_0x5cee35,_0x24b485=new URLSearchParams();_0x24b485[_0x475707(0x1a0)](_0x475707(0x17b),_0x37cefd);const _0x2ad749=_0x475707(0x1bc)+_0x24b485[_0x475707(0x1b2)](),_0x831e36=this[_0x475707(0x179)](_0x2ad749,_0x475707(0x1d4));return{'list':async()=>await(await _0x831e36[_0x475707(0x1e2)])[_0x475707(0x1ac)](),'abortController':_0x831e36[_0x475707(0x1e1)]};}[_0x5cee35(0x196)](_0x2feae7,_0x3fd93e){const _0x1af1be=_0x5cee35,_0x5991a5=this[_0x1af1be(0x179)](_0x1af1be(0x1ab)+_0x2feae7+_0x1af1be(0x1a9)+_0x3fd93e,_0x1af1be(0x194));return{'execute':async()=>{const _0x291a62=_0x1af1be;await _0x5991a5[_0x291a62(0x1e2)];},'abortController':_0x5991a5[_0x1af1be(0x1e1)]};}[_0x5cee35(0x1a3)](_0x66edd4,_0x47cd9b){const _0x2b2038=_0x5cee35,_0x1ae270=this[_0x2b2038(0x179)](_0x2b2038(0x1ab)+_0x66edd4+_0x2b2038(0x1fb)+_0x47cd9b,_0x2b2038(0x194));return{'execute':async()=>{const _0x3db95a=_0x2b2038;await _0x1ae270[_0x3db95a(0x1e2)];},'abortController':_0x1ae270[_0x2b2038(0x1e1)]};}[_0x5cee35(0x1ce)](_0x48fe82,_0x121a2c){const _0x2cccfc=_0x5cee35,_0x128ecc=this[_0x2cccfc(0x179)](_0x2cccfc(0x1ab)+_0x48fe82+_0x2cccfc(0x195)+_0x121a2c,_0x2cccfc(0x194));return{'execute':async()=>{const _0x351476=_0x2cccfc;await _0x128ecc[_0x351476(0x1e2)];},'abortController':_0x128ecc[_0x2cccfc(0x1e1)]};}[_0x5cee35(0x1fe)]({reviewName:_0x28c011,content:_0x4f5c87,args:_0xc6396c}){const _0x286d21=_0x5cee35,_0x10341e=this[_0x286d21(0x179)](_0x286d21(0x1aa)+_0x28c011+_0x286d21(0x1b4),_0x286d21(0x1e7),{'content':[{'type':_0x286d21(0x205),'content':_0x4f5c87}],'args':_0xc6396c});return{'getStream':async()=>{const _0x295058=_0x286d21,_0x1a5e05=(await _0x10341e[_0x295058(0x1e2)])[_0x295058(0x1b0)];return this[_0x295058(0x1c6)](_0x1a5e05);},'abortController':_0x10341e[_0x286d21(0x1e1)]};}[_0x5cee35(0x176)]({content:_0x562650,prompt:_0x749c26,model:_0xe9faa2}){const _0xf5d4a8=_0x5cee35,_0x5ea461=this[_0xf5d4a8(0x179)](_0xf5d4a8(0x1b1),_0xf5d4a8(0x1e7),{'content':[{'type':_0xf5d4a8(0x205),'content':_0x562650}],'prompt':_0x749c26,'model':_0xe9faa2});return{'getStream':async()=>{const _0x44073a=_0xf5d4a8,_0x2b9d92=(await _0x5ea461[_0x44073a(0x1e2)])[_0x44073a(0x1b0)];return this[_0x44073a(0x1c6)](_0x2b9d92);},'abortController':_0x5ea461[_0xf5d4a8(0x1e1)]};}[_0x5cee35(0x184)](_0x57e61c,_0x4ca5bf,_0x2e0d55){const _0x33af72=_0x5cee35,_0xb69788=this[_0x33af72(0x179)](_0x33af72(0x1ab)+_0x57e61c+_0x33af72(0x183)+_0x4ca5bf+_0x33af72(0x1da),_0x33af72(0x1ae),{'positiveCount':_0x2e0d55[_0x33af72(0x1c2)],'totalCount':_0x2e0d55[_0x33af72(0x17d)],'modificationId':_0x2e0d55[_0x33af72(0x1d0)]});return{'execute':async()=>{const _0x2b6f19=_0x33af72;await _0xb69788[_0x2b6f19(0x1e2)];},'abortController':_0xb69788[_0x33af72(0x1e1)]};}[_0x5cee35(0x199)](_0xbb8c84,_0x567425,_0x14705f){const _0x912f14=_0x5cee35,_0xea66de=this[_0x912f14(0x179)](_0x912f14(0x19d)+_0xbb8c84+_0x912f14(0x1f2)+_0x567425+_0x912f14(0x1da),_0x912f14(0x1ae),{'positiveCount':_0x14705f[_0x912f14(0x1c2)],'totalCount':_0x14705f[_0x912f14(0x17d)]});return{'execute':async()=>{const _0x4cea19=_0x912f14;await _0xea66de[_0x4cea19(0x1e2)];},'abortController':_0xea66de[_0x912f14(0x1e1)]};}[_0x5cee35(0x1b9)](_0x197189,_0x3e46d){const _0x544af8=_0x5cee35,_0x18869e=this[_0x544af8(0x179)](_0x544af8(0x1ed)+_0x197189+_0x544af8(0x1da),_0x544af8(0x1ae),{'positiveCount':_0x3e46d[_0x544af8(0x1c2)],'totalCount':_0x3e46d[_0x544af8(0x17d)]});return{'execute':async()=>{const _0x1d64ad=_0x544af8;await _0x18869e[_0x1d64ad(0x1e2)];},'abortController':_0x18869e[_0x544af8(0x1e1)]};}[_0x5cee35(0x17c)](_0x18bbc2,_0x5addd0,_0x22ce6c,_0x3ab16d){const _0x57221b=_0x5cee35,_0x5425e4=this[_0x57221b(0x179)](_0x57221b(0x1aa)+_0x18bbc2+_0x57221b(0x1f2)+_0x5addd0+_0x57221b(0x1da),_0x57221b(0x1ae),{'positiveCount':_0x22ce6c[_0x57221b(0x1c2)],'totalCount':_0x22ce6c[_0x57221b(0x17d)],'dataId':_0x3ab16d});return{'execute':async()=>{const _0x603994=_0x57221b;await _0x5425e4[_0x603994(0x1e2)];},'abortController':_0x5425e4[_0x57221b(0x1e1)]};}[_0x5cee35(0x1fd)](_0x4646a3,_0x4d3f2a,_0x1f6480){const _0x3232f4=_0x5cee35,_0x2a0932=this[_0x3232f4(0x179)](_0x3232f4(0x174)+_0x4646a3+_0x3232f4(0x1da),_0x3232f4(0x1ae),{'positiveCount':_0x4d3f2a[_0x3232f4(0x1c2)],'totalCount':_0x4d3f2a[_0x3232f4(0x17d)],'dataId':_0x1f6480});return{'execute':async()=>{const _0x4d071=_0x3232f4;await _0x2a0932[_0x4d071(0x1e2)];},'abortController':_0x2a0932[_0x3232f4(0x1e1)]};}[_0x5cee35(0x179)](_0x1bf5c3,_0x103f00,_0x1d98f){const _0x34819a=_0x5cee35,_0x27f26c=new AbortController(),_0x1b892f=_0x1d98f instanceof FormData,_0x204104={'Authorization':_0x34819a(0x1d7)+this[_0x34819a(0x1f4)]?.[_0x34819a(0x17a)]};_0x1d98f&&!_0x1b892f&&(_0x204104[_0x34819a(0x187)]=_0x34819a(0x1b6));const _0x362f8b={'method':_0x103f00,'headers':_0x204104,'signal':_0x27f26c[_0x34819a(0x175)]};return _0x1d98f&&(_0x362f8b[_0x34819a(0x1b0)]=_0x1b892f?_0x1d98f:JSON[_0x34819a(0x1cd)](_0x1d98f)),{'request':fetch(''+this[_0x34819a(0x1ea)]+_0x1bf5c3,_0x362f8b)[_0x34819a(0x1d6)](_0x776114=>{const _0xa76f=_0x34819a;this[_0xa76f(0x19e)](_0x776114);})[_0x34819a(0x1f3)](_0x574900=>_0x574900['ok']?_0x574900:_0x574900[_0x34819a(0x1ac)]()[_0x34819a(0x1f3)](_0x2d226e=>{const _0x5bb224=_0x34819a;throw{'url':this[_0x5bb224(0x1ea)],'path':_0x1bf5c3,'method':_0x103f00,'body':_0x1d98f,'status':(_0x574900||{})[_0x5bb224(0x1f9)],'statusText':(_0x574900||{})[_0x5bb224(0x18b)],'code':_0x2d226e[_0x5bb224(0x203)],'message':_0x2d226e[_0x5bb224(0x170)],'traceId':_0x2d226e[_0x5bb224(0x1ca)]};})),'abortController':_0x27f26c};}async*[_0x5cee35(0x1c6)](_0x5d6da3){const _0x3df459=_0x5cee35,_0x19c31a=[],_0x523aeb=_0x5d6da3[_0x3df459(0x1be)](),_0x4ed3ac=_0x38f7e1({'onError':_0x1c64c4=>{const _0x2b4157=_0x3df459;this[_0x2b4157(0x19e)](_0x1c64c4);},'onEvent':_0xfa4fc=>{const _0x13d0a8=_0x3df459;_0xfa4fc[_0x13d0a8(0x177)]=JSON[_0x13d0a8(0x18f)](_0xfa4fc[_0x13d0a8(0x177)]),_0x19c31a[_0x13d0a8(0x1a4)](_0xfa4fc);}});try{let _0x5f512c=!0x1;for(;!_0x5f512c;){const {done:_0x4938bd,value:_0x589d33}=await _0x523aeb[_0x3df459(0x1e8)]();_0x4938bd&&(_0x5f512c=!0x0),_0x4ed3ac[_0x3df459(0x186)](this[_0x3df459(0x1db)][_0x3df459(0x1af)](_0x589d33,{'stream':!0x0})),yield*_0x19c31a,_0x19c31a[_0x3df459(0x1cb)]=0x0;}}catch(_0x841134){this[_0x3df459(0x19e)](_0x841134);}finally{_0x523aeb[_0x3df459(0x1c8)](),_0x4ed3ac[_0x3df459(0x17e)]();}}[_0x5cee35(0x19e)](_0x579459){const _0x4f0a7b=_0x5cee35;if(_0x579459 instanceof _0x5efe38)throw _0x579459;if(_0x579459 instanceof Error&&_0x4f0a7b(0x172)===_0x579459[_0x4f0a7b(0x1ad)])throw new _0x5efe38(_0x4f0a7b(0x1c1),this,{'originalError':_0x579459});throw new _0x5efe38(_0x4f0a7b(0x1f1),this,{'originalError':_0x579459});}}function _0x1fcd(){const _0x5322d1=['/conversations','append','requires','MAKE_TONE_FORMAL','deleteDocument','push','40XFiGFG','items','fetchDocument','context','/files/','/reviews/system/','/conversations/','json','name','PUT','decode','body','/reviews/custom/calls','toString','TRANSLATE','/calls','pluginName','application/json','153QIdVlh','ai.serviceUrl','upsertCustomAIActionRating','PATCH','make-tone-formal','/models/1?','executeCustomAction','getReader','fetchConversationMessages','queryAssistant','ai-request-aborted','positiveCount','FIX_GRAMMAR','executeAction','group','_getStreamReader','100','releaseLock','MAKE_LONGER','traceId','length','startConversation','stringify','deleteWebResource','fetchConversations','modificationId','createdAt','IMPROVE_WRITING','updateConversation','GET','257685LnKvTi','catch','Bearer\x20','plugins','make-longer','/ratings','_decoder','6tqwXwO','token','MAKE_SHORTER','uploadUrl','improve-writing','abortController','request','CloudServices','getModels','651655QCHRMq','config','POST','read','/documents','_apiUrl','uploadDocument','attributes','/actions/custom/calls/','ai-missing-token','excludeEmpty','1397912DmNPia','ai-request-failed','/calls/','then','_token','/web-resources','/actions/custom/calls','5932641VuTnWS','60KoltLg','status','define','/documents/','/messages','upsertCustomAIReviewRating','callSystemReview','AIConnector','345570vTcUuw','make-tone-casual','sortBy','code','deleteConversation','text','message','false','AbortError','make-shorter','/reviews/custom/calls/','signal','callCustomReview','data','/conversations?','_sendApiRequest','value','language','upsertAIReviewRating','totalCount','reset','desc','file','isPremiumPlugin','true','/messages/','upsertAIChatRating','239491DKpepG','feed','Content-Type','continue','get','CONTINUE','statusText','isOfficialPlugin','fetchConversation','translate','parse','init','limit','https://ai.cke-cs.com/v1','/files','DELETE','/web-resources/','deleteFile','order','fix-grammar','upsertAIActionRating','uploadFile','MAKE_TONE_CASUAL','524476NRzuTV','/actions/system/','_handleError'];_0x1fcd=function(){return _0x5322d1;};return _0x1fcd();}
|
|
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
|
-
const _0x40aa86=_0xf8ba;(function(_0x4b141e,_0x48f199){const _0xb08747=_0xf8ba,_0x136663=_0x4b141e();while(!![]){try{const _0x25ca78=-parseInt(_0xb08747(0x167))/0x1+-parseInt(_0xb08747(0x192))/0x2*(-parseInt(_0xb08747(0x1a5))/0x3)+-parseInt(_0xb08747(0x1b4))/0x4+parseInt(_0xb08747(0x177))/0x5+-parseInt(_0xb08747(0x187))/0x6*(parseInt(_0xb08747(0x1ba))/0x7)+parseInt(_0xb08747(0x1ac))/0x8*(-parseInt(_0xb08747(0x183))/0x9)+parseInt(_0xb08747(0x1a4))/0xa;if(_0x25ca78===_0x48f199)break;else _0x136663['push'](_0x136663['shift']());}catch(_0x5240d5){_0x136663['push'](_0x136663['shift']());}}}(_0x3360,0x78298));import{ViewDowncastWriter as _0x3e972b}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2d584b,Editor as _0x390b06}from'ckeditor5/src/core.js';import{uid as _0x1a710e}from'ckeditor5/src/utils.js';import{getTranslation as _0x49aaff}from'./utils/common-translations.js';import{getEditorFromContext as _0x13d0c8}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x40aa86(0x1a6);export class AIEditing extends _0x2d584b{constructor(_0x135579){const _0xfc1f33=_0x40aa86;super(_0x135579),this[_0xfc1f33(0x1c5)][_0xfc1f33(0x16f)][_0xfc1f33(0x189)](_0xfc1f33(0x19c),!0x0);}[_0x40aa86(0x166)];[_0x40aa86(0x191)]=null;[_0x40aa86(0x1b9)]=!0x1;[_0x40aa86(0x1b1)];static get[_0x40aa86(0x16b)](){const _0x455ed0=_0x40aa86;return _0x455ed0(0x18f);}static get[_0x40aa86(0x164)](){return!0x0;}static get[_0x40aa86(0x1b8)](){return!0x0;}get[_0x40aa86(0x190)](){const _0x18a21b=_0x40aa86;if(!this[_0x18a21b(0x1b1)]){const _0x4c2b9a=_0x13d0c8(this[_0x18a21b(0x1c5)]),_0x19b469=_0x4c2b9a[_0x18a21b(0x18c)][_0x18a21b(0x18a)](_0x18a21b(0x158))&&_0x4c2b9a[_0x18a21b(0x18c)][_0x18a21b(0x16d)](_0x18a21b(0x158))[_0x18a21b(0x190)];this[_0x18a21b(0x1b1)]=_0x19b469||_0x1a710e();}return this[_0x18a21b(0x1b1)];}async[_0x40aa86(0x171)](){const _0x377ce6=_0x40aa86,_0x5f2a81=_0x13d0c8(this[_0x377ce6(0x1c5)]),_0x29fbcf=_0x5f2a81[_0x377ce6(0x1b2)],_0x4a1120=_0x5f2a81[_0x377ce6(0x161)][_0x377ce6(0x17a)](_0x29fbcf[_0x377ce6(0x15e)][_0x377ce6(0x17d)](),{'convertAiChatSelectionMarker':!0x0}),_0x1f5bc0=new _0x3e972b(_0x5f2a81[_0x377ce6(0x1cb)][_0x377ce6(0x19f)][_0x377ce6(0x15e)]);this[_0x377ce6(0x184)](_0x4a1120,_0x1f5bc0);let _0x1d1ff7=await this[_0x377ce6(0x170)](_0x4a1120);const _0x3e0d00=this[_0x377ce6(0x1b7)](),_0x4e2fd7=[];for(const _0x19c65f of _0x3e0d00){const _0x396424='<'+_0x19c65f[_0x377ce6(0x1b3)]+_0x377ce6(0x194)+_0x19c65f[_0x377ce6(0x1b3)]+_0x377ce6(0x16e),_0x486771=_0x1d1ff7[_0x377ce6(0x19d)](_0x396424);_0x1d1ff7=_0x1d1ff7[_0x377ce6(0x1a7)](0x0,_0x486771)+_0x1d1ff7[_0x377ce6(0x1a7)](_0x486771+_0x396424[_0x377ce6(0x198)]);const _0x2ae89e='<'+_0x19c65f[_0x377ce6(0x1b3)]+_0x377ce6(0x15d)+_0x19c65f[_0x377ce6(0x1b3)]+_0x377ce6(0x18e),_0x16256f=_0x1d1ff7[_0x377ce6(0x19d)](_0x2ae89e);_0x1d1ff7=_0x1d1ff7[_0x377ce6(0x1a7)](0x0,_0x16256f)+_0x1d1ff7[_0x377ce6(0x1a7)](_0x16256f+_0x2ae89e[_0x377ce6(0x198)]),_0x4e2fd7[_0x377ce6(0x1ca)]({'markerName':_0x19c65f[_0x377ce6(0x1b3)],'start':_0x486771,'end':_0x16256f,'htmlFragment':_0x1d1ff7[_0x377ce6(0x1a7)](_0x486771,_0x16256f)});}return{'content':_0x1d1ff7,'version':_0x5f2a81[_0x377ce6(0x1b2)][_0x377ce6(0x15e)][_0x377ce6(0x16a)],'sessionId':this[_0x377ce6(0x190)],'selections':_0x4e2fd7};}async[_0x40aa86(0x16c)](){const _0x50a707=_0x40aa86;this[_0x50a707(0x1c5)]instanceof _0x390b06?this[_0x50a707(0x1bf)](this[_0x50a707(0x1c5)]):this[_0x50a707(0x1bd)](this[_0x50a707(0x1c5)][_0x50a707(0x1be)],_0x50a707(0x15b),(_0x4fdac8,_0x1f7fa2)=>{const _0x3ac4ee=_0x50a707;_0x1f7fa2['on'](_0x3ac4ee(0x1a8),()=>{const _0x4fbd2b=_0x3ac4ee;this[_0x4fbd2b(0x1bf)](_0x1f7fa2);});});}[_0x40aa86(0x15c)](_0x3f0d54){const _0x25ddfe=_0x40aa86;this[_0x25ddfe(0x166)]=_0x3f0d54;}async[_0x40aa86(0x170)](_0x140a13){const _0x557cae=_0x40aa86;let _0x50441d;const _0xfaf71e=_0x13d0c8(this[_0x557cae(0x1c5)]);if(this[_0x557cae(0x166)]){const _0x58f67f=_0xfaf71e[_0x557cae(0x161)][_0x557cae(0x186)][_0x557cae(0x160)][_0x557cae(0x159)](_0x140a13),_0x160bed=await this[_0x557cae(0x166)](_0x58f67f);_0x50441d=_0xfaf71e[_0x557cae(0x161)][_0x557cae(0x186)][_0x557cae(0x1c0)][_0x557cae(0x165)](_0x160bed);}else _0x50441d=_0xfaf71e[_0x557cae(0x161)][_0x557cae(0x186)][_0x557cae(0x180)](_0x140a13);return _0x50441d;}[_0x40aa86(0x1bf)](_0x394236){const _0x5ea4cc=_0x40aa86;_0x394236[_0x5ea4cc(0x1bb)][_0x5ea4cc(0x1a1)](_0x5ea4cc(0x1b6))[_0x5ea4cc(0x18b)]({'model':_0x5ea4cc(0x1a6),'view':{'classes':[_0x5ea4cc(0x163),_0x5ea4cc(0x18d)],'priority':0xc}}),_0x394236[_0x5ea4cc(0x1bb)][_0x5ea4cc(0x1a1)](_0x5ea4cc(0x1a9))[_0x5ea4cc(0x168)]({'model':_0x5ea4cc(0x1a6),'view':(_0x375f49,{writer:_0x8204a8,options:_0x54fc5c})=>_0x54fc5c[_0x5ea4cc(0x17e)]?_0x8204a8[_0x5ea4cc(0x1c4)](_0x375f49[_0x5ea4cc(0x1a3)]+':'+(_0x375f49[_0x5ea4cc(0x193)]?_0x5ea4cc(0x179):_0x5ea4cc(0x197))):null});}[_0x40aa86(0x1c3)](_0x46b2b6,_0x12ee57,_0x4197a0=!0x1,_0x276013=!0x1){const _0x16c332=_0x40aa86;if(this[_0x16c332(0x1b9)]&&!_0x276013)return!0x1;const _0x111e5f=_0x13d0c8(this[_0x16c332(0x1c5)])[_0x16c332(0x1b2)];return _0x111e5f[_0x16c332(0x1c7)](_0x4051d2=>{const _0x3a52a8=_0x16c332;this[_0x3a52a8(0x191)]&&this[_0x3a52a8(0x1af)](this[_0x3a52a8(0x191)]),this[_0x3a52a8(0x191)]=_0x12ee57,this[_0x3a52a8(0x1b9)]=_0x4197a0;let _0x4f008c=0x0;for(let _0x47cf3a of _0x46b2b6){const _0x596997=_0x3a52a8(0x1b0)+_0x4f008c;if(_0x47cf3a[_0x3a52a8(0x179)][_0x3a52a8(0x169)]){const _0x1a7b49=_0x47cf3a[_0x3a52a8(0x179)][_0x3a52a8(0x19e)](({item:_0x2ad4c7})=>!_0x111e5f[_0x3a52a8(0x1ae)][_0x3a52a8(0x17b)](_0x2ad4c7),{'boundaries':_0x47cf3a});_0x47cf3a=_0x4051d2[_0x3a52a8(0x17c)](_0x1a7b49,_0x47cf3a[_0x3a52a8(0x197)]);}_0x4051d2[_0x3a52a8(0x1a0)](_0x596997,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x47cf3a}),_0x4f008c++;}}),window[_0x16c332(0x1c9)]()?.[_0x16c332(0x1ad)](),!0x0;}[_0x40aa86(0x1af)](_0x225b23){const _0x5f58ab=_0x40aa86;if(this[_0x5f58ab(0x191)]!=_0x225b23)return!0x1;this[_0x5f58ab(0x191)]=null,this[_0x5f58ab(0x1b9)]=!0x1;const _0x30cc11=_0x13d0c8(this[_0x5f58ab(0x1c5)]),_0x5d353a=_0x30cc11[_0x5f58ab(0x1b2)][_0x5f58ab(0x175)][_0x5f58ab(0x15f)](_0x5f58ab(0x1a6));return _0x30cc11[_0x5f58ab(0x1b2)][_0x5f58ab(0x1c7)](_0x531700=>{const _0x2c581a=_0x5f58ab;for(const _0x1502a4 of _0x5d353a)_0x531700[_0x2c581a(0x176)](_0x1502a4);}),!0x0;}async[_0x40aa86(0x199)](_0x1ec2ce){const _0x3a1578=_0x40aa86,_0x329bf5=_0x13d0c8(this[_0x3a1578(0x1c5)]),_0x4adfb8=_0x329bf5[_0x3a1578(0x161)][_0x3a1578(0x17a)](_0x1ec2ce),_0x35eb6c=new _0x3e972b(_0x329bf5[_0x3a1578(0x1cb)][_0x3a1578(0x19f)][_0x3a1578(0x15e)]);return this[_0x3a1578(0x184)](_0x4adfb8,_0x35eb6c),this[_0x3a1578(0x170)](_0x4adfb8);}[_0x40aa86(0x184)](_0x32693f,_0x491ba2){const _0x28778c=_0x40aa86;let _0x5d6dfc=!0x1;const _0x43cecc=new Set();for(const _0x38b960 of _0x32693f[_0x28778c(0x162)]()){const _0x2576d4=_0x38b960['is'](_0x28778c(0x185))||_0x38b960['is'](_0x28778c(0x1ab));if(!_0x38b960['is'](_0x28778c(0x1b5)))continue;(this[_0x28778c(0x184)](_0x38b960,_0x491ba2)||_0x2576d4)&&(_0x491ba2[_0x28778c(0x172)](_0x28778c(0x174),this[_0x28778c(0x1aa)](_0x43cecc),_0x38b960),_0x5d6dfc=!0x0);}return _0x5d6dfc;}[_0x40aa86(0x1aa)](_0x57b5cc){const _0x32bf4a=_0x40aa86;let _0x3a891c;do{_0x3a891c='';for(let _0x14229c=0x0;_0x14229c<0x4;_0x14229c++)_0x3a891c+=String[_0x32bf4a(0x173)](0x61+Math[_0x32bf4a(0x15a)](0x1a*Math[_0x32bf4a(0x1c2)]()));}while(_0x57b5cc[_0x32bf4a(0x18a)](_0x3a891c));return _0x57b5cc[_0x32bf4a(0x15b)](_0x3a891c),_0x3a891c;}[_0x40aa86(0x1c1)](){const _0xe77c77=_0x40aa86,{model:_0x365196}=_0x13d0c8(this[_0xe77c77(0x1c5)]),_0xc9c997=_0x365196[_0xe77c77(0x15e)][_0xe77c77(0x17f)],_0x23135c=[];for(const _0x1a6100 of _0xc9c997[_0xe77c77(0x188)]())for(const _0x36fad9 of _0x1a6100[_0xe77c77(0x19b)]())_0x36fad9['is'](_0xe77c77(0x1bc))?_0x23135c[_0xe77c77(0x1ca)](_0x36fad9[_0xe77c77(0x161)]):_0x36fad9['is'](_0xe77c77(0x1b5))&&_0x23135c[_0xe77c77(0x198)]>0x0&&'\x20'!==_0x23135c[_0x23135c[_0xe77c77(0x198)]-0x1]&&_0x23135c[_0xe77c77(0x1ca)]('\x20');return _0x23135c[_0xe77c77(0x198)]?'\x22'+_0x23135c[_0xe77c77(0x181)]('')[_0xe77c77(0x178)]()+'\x22':_0x49aaff(this[_0xe77c77(0x1c5)][_0xe77c77(0x1c8)],_0xe77c77(0x1a2));}[_0x40aa86(0x1b7)](){const _0x3d4c4c=_0x40aa86,_0x52b4d6=_0x13d0c8(this[_0x3d4c4c(0x1c5)])[_0x3d4c4c(0x1b2)];return Array[_0x3d4c4c(0x1c6)](_0x52b4d6[_0x3d4c4c(0x175)][_0x3d4c4c(0x15f)](_0x3d4c4c(0x1a6)))[_0x3d4c4c(0x182)]((_0x599652,_0x5acd85)=>_0x599652[_0x3d4c4c(0x196)]()[_0x3d4c4c(0x195)](_0x5acd85[_0x3d4c4c(0x196)]())?-0x1:_0x599652[_0x3d4c4c(0x196)]()[_0x3d4c4c(0x19a)](_0x5acd85[_0x3d4c4c(0x196)]())?0x1:0x0);}}function _0xf8ba(_0x33ac0e,_0x2df690){const _0x336059=_0x3360();return _0xf8ba=function(_0xf8ba49,_0x42eba1){_0xf8ba49=_0xf8ba49-0x158;let _0x197602=_0x336059[_0xf8ba49];return _0x197602;},_0xf8ba(_0x33ac0e,_0x2df690);}function _0x3360(){const _0x51f51e=['pluginName','afterInit','get',':start>','config','_getDocumentDataStringFromView','getDocumentData','setAttribute','fromCharCode','data-id','markers','removeMarker','1741345naOLuU','trim','start','toView','isContent','createRange','getRoot','convertAiChatSelectionMarker','selection','toData','join','sort','15633bxcarq','_setDataIdsOnChildren','emptyElement','processor','6UMdbBO','getRanges','define','has','markerToHighlight','plugins','ck-ai-assistant-ui_theme',':end>','AIEditing','sessionId','_displayedFakeSelectionId','134alYJeo','isOpening',':start></','isBefore','getStart','end','length','modelToDataWithIds','isAfter','getItems','ai.models.showModelSelector','indexOf','getLastMatchingPosition','view','addMarker','for','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','markerName','13026170PITDlU','30702fOjZhJ','ai-selection','substring','ready','dataDowncast','_nextDataId','containerElement','4040USQUxr','removeAllRanges','schema','hideFakeVisualSelection','ai-selection:','_sessionId','model','name','990356ibSOKk','element','editingDowncast','_getMarkersInDocumentOrder','isPremiumPlugin','_displayedFakeSelectionLocked','4947467YoWemt','conversion','$textProxy','listenTo','editors','_integrateEditor','htmlWriter','getSelectionText','random','showFakeVisualSelection','createUIElement','context','from','change','locale','getSelection','push','editing','RealTimeCollaborationClient','viewToDom','floor','add','_setOutputDataProcessor',':end></','document','getMarkersGroup','domConverter','data','getChildren','ck-fake-ai-selection','isOfficialPlugin','getHtml','_outputDataProcessor','12825PYqlfK','markerToElement','isAtEnd','version'];_0x3360=function(){return _0x51f51e;};return _0x3360();}
|
|
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={}));
|