@ckeditor/ckeditor5-ai 47.6.2 → 47.7.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x598d9d=_0x17bf;(function(_0x2a71b1,_0x1fd65d){const _0x442a2f=_0x17bf,_0x1d8107=_0x2a71b1();while(!![]){try{const _0x5884be=-parseInt(_0x442a2f(0x1f9))/0x1*(parseInt(_0x442a2f(0x1ba))/0x2)+parseInt(_0x442a2f(0x205))/0x3+-parseInt(_0x442a2f(0x1bc))/0x4*(parseInt(_0x442a2f(0x1e9))/0x5)+-parseInt(_0x442a2f(0x1a8))/0x6*(-parseInt(_0x442a2f(0x204))/0x7)+parseInt(_0x442a2f(0x1af))/0x8*(parseInt(_0x442a2f(0x1fd))/0x9)+-parseInt(_0x442a2f(0x1d1))/0xa*(parseInt(_0x442a2f(0x1b1))/0xb)+-parseInt(_0x442a2f(0x1c0))/0xc*(-parseInt(_0x442a2f(0x1f8))/0xd);if(_0x5884be===_0x1fd65d)break;else _0x1d8107['push'](_0x1d8107['shift']());}catch(_0x2ab010){_0x1d8107['push'](_0x1d8107['shift']());}}}(_0x532e,0xcc8c4));import{ListItemView as _0x11b1b0,HighlightedTextView as _0x4236f0,ButtonView as _0x2aaecc,ListView as _0x1a2e28,IconView as _0xb5b114,createDropdown as _0x317b71,InputTextView as _0x570f2d}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x3af983,IconPin as _0x344637,IconCheck as _0x4c1ddb,IconCancel as _0x2035c4}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x8407c5,ConfirmMixin as _0x33645f}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x17bf(_0x32f898,_0x5b7cad){const _0x532e8d=_0x532e();return _0x17bf=function(_0x17bfb1,_0x3a2b35){_0x17bfb1=_0x17bfb1-0x1a8;let _0xc9b7a1=_0x532e8d[_0x17bfb1];return _0xc9b7a1;},_0x17bf(_0x32f898,_0x5b7cad);}function _0x532e(){const _0xc073cf=['279055ZDeoiX','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','ck-ai-chat-history__item-check','AI_CHAT_HISTORY_ACCEPT','8397gmxiev','isOn','change:isEdit','setTemplate','label','div','highlightText','70EzlaSD','432117qSNpwp','AI_CHAT_HISTORY_LOADING_REMOVING','selectConversation','editConversationTitle','set','updateTitle','text','withText','43548fikuaB','pinned','removeConversation','value','ck-ai-loader__text','locale','ck-ai-chat-history__item--active','8104KbZQDQ','ck-ai-chat-history__item-main-content','250503bINUuf','isEdit','_createEditInputView','span','children','ck-confirm-view-submit','tiny','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item-actions','10ExeKGj','buttonView','281440UJDCqn','AI_CHAT_HISTORY_PIN_BUTTON','AI_CHAT_HISTORY_CANCEL','ck-confirm-view-cancel','12tKNNEX','bind','AI_CHAT_HISTORY_REMOVE','element','actions','_createCancelEditButtonView','isMatching','LOADING_LABELS','ck-ai-loader','panelPosition','clear','_createPinButtonView','execute','string','Enter','click','focus','170ccdGYs','createCollection','addMany','mainContent','ck-ai-chat-history__item--edit','fire','then','items','edit:cancel','bindTemplate','_commitEditInputValue','_createCheckView','updateLoadingState','_createMenuDropdownView','loadingState','AI_CHAT_HISTORY_LOADING_PINNING','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_EDIT_NAME','ck-ai-chat-history__item-title','ck-ai-chat-history__item-date','ck-ai-chat-history__item-row','_createAcceptEditButtonView','_titleView','10orKhNl','listitem','extendTemplate','ck-ai-chat-history__item-content','panelView','setConversationPinned','AI_CHAT_HISTORY_LOADING_RENAMING','isVisible','key','add','ck-hidden','ck-ai-chat-history__item','_createSpinnerView','match','showConfirm','20789808KmUrYo'];_0x532e=function(){return _0xc073cf;};return _0x532e();}import{escape as _0x22653c}from'es-toolkit/compat';import{AISpinnerView as _0x51ca64}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x108114}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x33645f(_0x11b1b0){['id'];static [_0x598d9d(0x1c7)]={'remove':_0x598d9d(0x206),'rename':_0x598d9d(0x1ef),'pin':_0x598d9d(0x1e0),'unpin':_0x598d9d(0x1e2)};[_0x598d9d(0x1c4)];[_0x598d9d(0x1d4)];[_0x598d9d(0x1e8)];constructor(_0x5262f1,_0x3665e7){const _0x188bb4=_0x598d9d;super(_0x5262f1);const _0x53ec1f=this[_0x188bb4(0x1da)];this[_0x188bb4(0x209)](_0x188bb4(0x1b2),!0x1),this[_0x188bb4(0x209)](_0x188bb4(0x1f0),!0x0),this[_0x188bb4(0x209)](_0x188bb4(0x1a9),!!_0x3665e7[_0x188bb4(0x1a9)]),this[_0x188bb4(0x209)](_0x188bb4(0x1df),null),this['id']=_0x3665e7['id'];const {title:_0x193c15,createdAt:_0x5b9134,active:_0x7286d4=!0x1}=_0x3665e7;this[_0x188bb4(0x1e8)]=new _0x4236f0(),this[_0x188bb4(0x1e8)][_0x188bb4(0x20b)]=_0x193c15,this[_0x188bb4(0x1e8)][_0x188bb4(0x1eb)]({'attributes':{'class':[_0x188bb4(0x1e4)]}});const _0x5339c2=this[_0x188bb4(0x1dc)](),_0x2e1798=this[_0x188bb4(0x1cb)](_0x5262f1),_0x4240f8=this[_0x188bb4(0x1de)](),_0x1582c6=this[_0x188bb4(0x1b3)](_0x5262f1,_0x193c15),_0x3832be=this[_0x188bb4(0x1e7)](_0x5262f1,_0x1582c6),_0xc870bc=this[_0x188bb4(0x1c5)](_0x5262f1,_0x1582c6);this[_0x188bb4(0x1c4)]=this[_0x188bb4(0x1d2)](),this[_0x188bb4(0x1d4)]=this[_0x188bb4(0x1d2)](),this[_0x188bb4(0x1d4)][_0x188bb4(0x1f2)](this[_0x188bb4(0x1e8)]),this[_0x188bb4(0x1c4)][_0x188bb4(0x1f2)](_0x2e1798),this[_0x188bb4(0x1c4)][_0x188bb4(0x1f2)](_0x4240f8),this['on'](_0x188bb4(0x1ff),(_0xb28f0b,_0x300d35,_0x3c29de)=>{const _0x2559e1=_0x188bb4;this[_0x2559e1(0x1c4)][_0x2559e1(0x1ca)](),this[_0x2559e1(0x1d4)][_0x2559e1(0x1ca)](),_0x3c29de?(this[_0x2559e1(0x1c4)][_0x2559e1(0x1f2)](_0x3832be),this[_0x2559e1(0x1c4)][_0x2559e1(0x1f2)](_0xc870bc),this[_0x2559e1(0x1d4)][_0x2559e1(0x1f2)](_0x1582c6),_0x1582c6[_0x2559e1(0x1c3)][_0x2559e1(0x1d0)]()):(this[_0x2559e1(0x1c4)][_0x2559e1(0x1f2)](_0x2e1798),this[_0x2559e1(0x1c4)][_0x2559e1(0x1f2)](_0x4240f8),this[_0x2559e1(0x1d4)][_0x2559e1(0x1f2)](this[_0x2559e1(0x1e8)]));}),this[_0x188bb4(0x200)]({'tag':'li','attributes':{'class':[_0x188bb4(0x1f4),_0x7286d4?_0x188bb4(0x1ae):'',_0x53ec1f['if'](_0x188bb4(0x1f0),_0x188bb4(0x1f3),_0x4f0e31=>!_0x4f0e31),_0x53ec1f['if'](_0x188bb4(0x1b2),_0x188bb4(0x1d5))],'role':_0x188bb4(0x1ea)},'children':[{'tag':_0x188bb4(0x1b4),'attributes':{'class':[_0x188bb4(0x1e1)]},'children':[{'tag':_0x188bb4(0x202),'attributes':{'class':[_0x188bb4(0x1fb),_0x53ec1f['if'](_0x188bb4(0x1df),_0x188bb4(0x1f3),_0x46d415=>!!_0x46d415)]},'children':_0x7286d4?[_0x5339c2]:[]},{'tag':_0x188bb4(0x202),'attributes':{'class':[_0x188bb4(0x1c8),_0x53ec1f['if'](_0x188bb4(0x1df),_0x188bb4(0x1f3),_0x1eb8f2=>!_0x1eb8f2)]},'children':[this[_0x188bb4(0x1f5)]()]}]},{'tag':_0x188bb4(0x202),'attributes':{'class':[_0x188bb4(0x1e6)]},'children':[{'tag':_0x188bb4(0x202),'attributes':{'class':[_0x188bb4(0x1ec)]},'on':{'click':this[_0x188bb4(0x1da)]['to'](_0x188bb4(0x1cf))},'children':[{'tag':_0x188bb4(0x202),'attributes':{'class':[_0x188bb4(0x1b0)]},'children':[{'tag':_0x188bb4(0x202),'attributes':{'class':[_0x188bb4(0x1e4),_0x53ec1f['if'](_0x188bb4(0x1df),_0x188bb4(0x1f3),_0x51159c=>!!_0x51159c)]},'children':this[_0x188bb4(0x1d4)]},{'tag':_0x188bb4(0x202),'attributes':{'class':[_0x188bb4(0x1ac),_0x53ec1f['if'](_0x188bb4(0x1df),_0x188bb4(0x1f3),_0x43a48b=>!_0x43a48b)]},'children':[{'text':_0x53ec1f['to'](_0x188bb4(0x1df),_0x5ef850=>_0x5ef850?_0x108114(this[_0x188bb4(0x1ad)],AIChatHistoryListItemView[_0x188bb4(0x1c7)][_0x5ef850]):'')}]}]},{'tag':_0x188bb4(0x1b4),'attributes':{'class':[_0x188bb4(0x1e5)]},'children':[_0x5b9134]}]},{'tag':_0x188bb4(0x202),'attributes':{'class':[_0x188bb4(0x1b9)]},'children':this[_0x188bb4(0x1c4)]}]}]}),this['on'](_0x188bb4(0x1cf),()=>{const _0x11866=_0x188bb4;this[_0x11866(0x1b2)]||this[_0x11866(0x1d6)](_0x11866(0x207),{'id':this['id']});});}[_0x598d9d(0x20a)](_0x51db29){const _0x560b3d=_0x598d9d;this[_0x560b3d(0x1e8)][_0x560b3d(0x20b)]=_0x22653c(_0x51db29);}[_0x598d9d(0x1dd)](_0x27b43b,_0x459088){const _0x497ee6=_0x598d9d;this[_0x497ee6(0x209)](_0x497ee6(0x1df),_0x459088?_0x27b43b:null);}[_0x598d9d(0x1dc)](){const _0x142a5a=_0x598d9d,_0x17851a=new _0xb5b114();return _0x17851a[_0x142a5a(0x209)]({'content':_0x4c1ddb}),_0x17851a;}[_0x598d9d(0x1cb)](_0x201790){const _0x538710=_0x598d9d,_0x2efa36=new _0x2aaecc(_0x201790);return _0x2efa36[_0x538710(0x209)]({'label':_0x108114(_0x201790,_0x538710(0x1bd)),'icon':_0x344637,'withText':!0x1,'tooltip':!0x0}),_0x2efa36[_0x538710(0x1c1)](_0x538710(0x1fe))['to'](this,_0x538710(0x1a9)),_0x2efa36['on'](_0x538710(0x1cc),()=>{const _0x46ff83=_0x538710,_0x3e854b=!this[_0x46ff83(0x1a9)];this[_0x46ff83(0x1d6)](_0x46ff83(0x1ee),{'id':this['id'],'pinned':_0x3e854b});}),_0x2efa36;}[_0x598d9d(0x1de)](){const _0x58332d=_0x598d9d,_0x4a4076=_0x317b71(this[_0x58332d(0x1ad)],_0x8407c5),_0x101e76=_0x4a4076[_0x58332d(0x1ed)][_0x58332d(0x1b5)];_0x4a4076[_0x58332d(0x1bb)][_0x58332d(0x209)]({'label':_0x108114(this[_0x58332d(0x1ad)],_0x58332d(0x1fa)),'icon':_0x3af983}),_0x4a4076[_0x58332d(0x1c9)]='sw';const _0x135b89=new _0x2aaecc(this[_0x58332d(0x1ad)]);_0x135b89[_0x58332d(0x201)]=_0x108114(this[_0x58332d(0x1ad)],_0x58332d(0x1e3)),_0x135b89[_0x58332d(0x20c)]=!0x0,_0x135b89['on'](_0x58332d(0x1cc),()=>{const _0x205d9e=_0x58332d;this[_0x205d9e(0x1b2)]=!0x0;});const _0x216dbc=new _0x2aaecc(this[_0x58332d(0x1ad)]);_0x216dbc[_0x58332d(0x201)]=_0x108114(this[_0x58332d(0x1ad)],_0x58332d(0x1c2)),_0x216dbc[_0x58332d(0x20c)]=!0x0,_0x216dbc['on'](_0x58332d(0x1cc),()=>{const _0x31f858=_0x58332d;this[_0x31f858(0x1f7)](_0x108114(this[_0x31f858(0x1ad)],_0x31f858(0x1b8)),this[_0x31f858(0x1c3)])[_0x31f858(0x1d7)](()=>{const _0x3bb4e8=_0x31f858;this[_0x3bb4e8(0x1d6)](_0x3bb4e8(0x1aa),{'id':this['id']});});});const _0x3b1b90=new _0x1a2e28(this[_0x58332d(0x1ad)]),_0x55660b=new _0x11b1b0(this[_0x58332d(0x1ad)]);_0x55660b[_0x58332d(0x1b5)][_0x58332d(0x1f2)](_0x135b89);const _0x2c85c1=new _0x11b1b0(this[_0x58332d(0x1ad)]);return _0x2c85c1[_0x58332d(0x1b5)][_0x58332d(0x1f2)](_0x216dbc),_0x3b1b90[_0x58332d(0x1d8)][_0x58332d(0x1d3)]([_0x55660b,_0x2c85c1]),_0x101e76[_0x58332d(0x1f2)](_0x3b1b90),_0x4a4076;}[_0x598d9d(0x1b3)](_0x361ff5,_0x320c05){const _0x431c10=_0x598d9d,_0x599f74=new _0x570f2d(_0x361ff5),_0x350946=_0x599f74[_0x431c10(0x1da)];return _0x599f74[_0x431c10(0x1ab)]=_0x320c05,_0x599f74[_0x431c10(0x1eb)]({'on':{'keydown':_0x350946['to'](_0x5cbdb7=>{const _0x4e2f34=_0x431c10;_0x4e2f34(0x1ce)==_0x5cbdb7[_0x4e2f34(0x1f1)]&&this[_0x4e2f34(0x1db)](_0x599f74);})}}),_0x599f74;}[_0x598d9d(0x1e7)](_0xc2ba2d,_0x650cec){const _0x166f5f=_0x598d9d,_0x5361fd=new _0x2aaecc(_0xc2ba2d);return _0x5361fd[_0x166f5f(0x209)]({'icon':_0x4c1ddb,'withText':!0x1,'tooltip':_0x108114(_0xc2ba2d,_0x166f5f(0x1fc))}),_0x5361fd[_0x166f5f(0x1eb)]({'attributes':{'class':[_0x166f5f(0x1b6)]}}),_0x5361fd['on'](_0x166f5f(0x1cc),()=>{const _0xfca1f6=_0x166f5f;this[_0xfca1f6(0x1db)](_0x650cec);}),_0x5361fd;}[_0x598d9d(0x1db)](_0x57cdb7){const _0x26d291=_0x598d9d,_0x5375ea=_0x57cdb7[_0x26d291(0x1c3)][_0x26d291(0x1ab)]||'';this[_0x26d291(0x1e8)][_0x26d291(0x20b)]=_0x5375ea,this[_0x26d291(0x1b2)]=!0x1,this[_0x26d291(0x1d6)](_0x26d291(0x208),{'id':this['id'],'title':_0x5375ea});}[_0x598d9d(0x1c5)](_0x3654e1,_0x2fcfa7){const _0x1ab39e=_0x598d9d,_0x247aa2=new _0x2aaecc(_0x3654e1);return _0x247aa2[_0x1ab39e(0x209)]({'icon':_0x2035c4,'withText':!0x1,'tooltip':_0x108114(_0x3654e1,_0x1ab39e(0x1be))}),_0x247aa2[_0x1ab39e(0x1eb)]({'attributes':{'class':[_0x1ab39e(0x1bf)]}}),_0x247aa2['on'](_0x1ab39e(0x1cc),()=>{const _0x234da3=_0x1ab39e;this[_0x234da3(0x1b2)]=!0x1,_0x2fcfa7[_0x234da3(0x1ab)]=this[_0x234da3(0x1e8)][_0x234da3(0x20b)]||'',this[_0x234da3(0x1d6)](_0x234da3(0x1d9));}),_0x247aa2;}[_0x598d9d(0x1f5)](){const _0x1ef628=_0x598d9d,_0x56a33d=new _0x51ca64(_0x1ef628(0x1b7));return _0x56a33d[_0x1ef628(0x1f0)]=!0x0,_0x56a33d;}[_0x598d9d(0x1c6)](_0x31c6e1){const _0x14b390=_0x598d9d;return this[_0x14b390(0x1e8)]&&_0x14b390(0x1cd)==typeof this[_0x14b390(0x1e8)][_0x14b390(0x20b)]&&this[_0x14b390(0x1e8)][_0x14b390(0x20b)][_0x14b390(0x1f6)](_0x31c6e1)?{'title':!0x0}:null;}[_0x598d9d(0x203)](_0x32777e){const _0x391b86=_0x598d9d;this[_0x391b86(0x1e8)][_0x391b86(0x203)](_0x32777e);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x13a2(){const _0xe39366=['1148631ORYLZj','remove','div','786IVyxXE','isMatching','_itemsListView','ck-hidden','splice','1075100XlsZGI','ck-ai-chat-history__section-title','items','highlightText','1726554GHpUJZ','set','length','2stHFWw','5975MbCjwa','4CemtWd','itemsViews','setTemplate','2914864QRKCAO','1385839SjVgit','isVisible','indexOf','bindTemplate','filter','getItem','find','title','addMany','18FhlKwZ','removeItem','ck-ai-chat-history__section','631189HfCUNK'];_0x13a2=function(){return _0xe39366;};return _0x13a2();}const _0x18e8ad=_0xec44;(function(_0x4fd792,_0x28b9b4){const _0x5950e3=_0xec44,_0x559044=_0x4fd792();while(!![]){try{const _0x187dab=-parseInt(_0x5950e3(0xfb))/0x1*(parseInt(_0x5950e3(0xe9))/0x2)+parseInt(_0x5950e3(0xe6))/0x3*(parseInt(_0x5950e3(0xeb))/0x4)+-parseInt(_0x5950e3(0xea))/0x5*(-parseInt(_0x5950e3(0xff))/0x6)+parseInt(_0x5950e3(0xef))/0x7+parseInt(_0x5950e3(0xee))/0x8+-parseInt(_0x5950e3(0xf8))/0x9*(parseInt(_0x5950e3(0xe2))/0xa)+-parseInt(_0x5950e3(0xfc))/0xb;if(_0x187dab===_0x28b9b4)break;else _0x559044['push'](_0x559044['shift']());}catch(_0x2611be){_0x559044['push'](_0x559044['shift']());}}}(_0x13a2,0x53ed8));import{ListItemView as _0x2ddefa,View as _0x16f58f,ListView as _0x191f9a}from'ckeditor5/src/ui.js';function _0xec44(_0x5b5784,_0x193710){const _0x13a2a3=_0x13a2();return _0xec44=function(_0xec441c,_0x49811e){_0xec441c=_0xec441c-0xe0;let _0x543c6a=_0x13a2a3[_0xec441c];return _0x543c6a;},_0xec44(_0x5b5784,_0x193710);}export class AIChatHistoryListView extends _0x2ddefa{[_0x18e8ad(0xf6)];[_0x18e8ad(0xec)];[_0x18e8ad(0x101)];constructor(_0x422f73,{title:_0x510104,items:_0x30cf58}){const _0x45300a=_0x18e8ad;super(_0x422f73);const _0xfd8f31=this[_0x45300a(0xf2)];this[_0x45300a(0xe7)](_0x45300a(0xf0),!0x0),this[_0x45300a(0xf6)]=_0x510104,this[_0x45300a(0xec)]=_0x30cf58;const _0x35e920=new _0x16f58f(_0x422f73);_0x35e920[_0x45300a(0xed)]({'tag':_0x45300a(0xfe),'attributes':{'class':[_0x45300a(0xe3)]},'children':[this[_0x45300a(0xf6)]]}),this[_0x45300a(0x101)]=new _0x191f9a(_0x422f73),this[_0x45300a(0x101)][_0x45300a(0xe4)][_0x45300a(0xf7)](this[_0x45300a(0xec)]),this[_0x45300a(0xed)]({'tag':'li','attributes':{'class':[_0x45300a(0xfa),_0xfd8f31['if'](_0x45300a(0xf0),_0x45300a(0xe0),_0x2b0e77=>!_0x2b0e77)]},'children':[_0x35e920,this[_0x45300a(0x101)]]});}[_0x18e8ad(0xf3)](_0x401d36){const _0x3e0ce2=_0x18e8ad,_0x3f92f8=this[_0x3e0ce2(0xec)][_0x3e0ce2(0xe8)];let _0x279404=0x0;for(const _0x138996 of this[_0x3e0ce2(0xec)]){if(_0x401d36){const _0xf48373=_0x138996[_0x3e0ce2(0x100)](_0x401d36);_0x138996[_0x3e0ce2(0xf0)]=!!_0xf48373,_0x138996[_0x3e0ce2(0xe5)](_0x401d36);}else _0x138996[_0x3e0ce2(0xf0)]=!0x0,_0x138996[_0x3e0ce2(0xe5)](null);_0x138996[_0x3e0ce2(0xf0)]&&_0x279404++;}return this[_0x3e0ce2(0xf0)]=_0x279404>0x0,{'resultsCount':_0x279404,'totalItemsCount':_0x3f92f8};}[_0x18e8ad(0xf4)](_0x530c8a){const _0x22f35d=_0x18e8ad;return this[_0x22f35d(0xec)][_0x22f35d(0xf5)](_0xe76c44=>_0xe76c44['id']===_0x530c8a);}[_0x18e8ad(0xf9)](_0x2b8186){const _0x1a43f9=_0x18e8ad,_0x441b8d=this[_0x1a43f9(0xec)][_0x1a43f9(0xf1)](_0x2b8186);-0x1!==_0x441b8d&&(this[_0x1a43f9(0xec)][_0x1a43f9(0xe1)](_0x441b8d,0x1),this[_0x1a43f9(0x101)][_0x1a43f9(0xe4)][_0x1a43f9(0xfd)](_0x2b8186));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd44c73=_0x54cc;(function(_0x2e07f6,_0x89773a){const _0x4636f8=_0x54cc,_0x59d861=_0x2e07f6();while(!![]){try{const _0x4fbe0f=-parseInt(_0x4636f8(0x190))/0x1+-parseInt(_0x4636f8(0x18e))/0x2+parseInt(_0x4636f8(0x18f))/0x3+parseInt(_0x4636f8(0x18d))/0x4+-parseInt(_0x4636f8(0x191))/0x5*(parseInt(_0x4636f8(0x189))/0x6)+-parseInt(_0x4636f8(0x18a))/0x7+parseInt(_0x4636f8(0x188))/0x8;if(_0x4fbe0f===_0x89773a)break;else _0x59d861['push'](_0x59d861['shift']());}catch(_0x11147b){_0x59d861['push'](_0x59d861['shift']());}}}(_0xa11e,0xc7f41));import{ListView as _0x48e197}from'ckeditor5/src/ui.js';function _0xa11e(){const _0x216b55=['2430596YHnvme','921752jqzzak','434388FTDFGD','981696AfZjpz','5regCrL','filter','addMany','sections','items','29778368LTXaoG','9707670MmmQNY','4166505XXMRDp','ck-ai-chat-history__sections','extendTemplate'];_0xa11e=function(){return _0x216b55;};return _0xa11e();}function _0x54cc(_0x33b52b,_0x3c96cd){const _0xa11e3b=_0xa11e();return _0x54cc=function(_0x54cc32,_0x1ba558){_0x54cc32=_0x54cc32-0x186;let _0x131f1b=_0xa11e3b[_0x54cc32];return _0x131f1b;},_0x54cc(_0x33b52b,_0x3c96cd);}export class AIChatHistorySectionListView extends _0x48e197{[_0xd44c73(0x186)];constructor(_0x4776a7,_0x254164){const _0x23f0a0=_0xd44c73;super(_0x4776a7),this[_0x23f0a0(0x186)]=_0x254164,this[_0x23f0a0(0x187)][_0x23f0a0(0x193)](this[_0x23f0a0(0x186)]),this[_0x23f0a0(0x18c)]({'attributes':{'class':[_0x23f0a0(0x18b)]}});}[_0xd44c73(0x192)](_0x275470){const _0x57204a=_0xd44c73;let _0x283e38=0x0,_0x1da4df=0x0;for(const _0x4e7369 of this[_0x57204a(0x186)]){const {resultsCount:_0x434d09,totalItemsCount:_0x15d40b}=_0x4e7369[_0x57204a(0x192)](_0x275470);_0x283e38+=_0x434d09,_0x1da4df+=_0x15d40b;}return{'resultsCount':_0x283e38,'totalItemsCount':_0x1da4df};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4795a9=_0x15c2;(function(_0x3da1db,_0x5d99e2){const _0x288991=_0x15c2,_0x530152=_0x3da1db();while(!![]){try{const _0x1321bc=-parseInt(_0x288991(0x152))/0x1*(parseInt(_0x288991(0x14c))/0x2)+-parseInt(_0x288991(0x171))/0x3+-parseInt(_0x288991(0x145))/0x4*(-parseInt(_0x288991(0x17d))/0x5)+parseInt(_0x288991(0x129))/0x6+parseInt(_0x288991(0x12f))/0x7+parseInt(_0x288991(0x146))/0x8*(-parseInt(_0x288991(0x135))/0x9)+parseInt(_0x288991(0x141))/0xa*(parseInt(_0x288991(0x165))/0xb);if(_0x1321bc===_0x5d99e2)break;else _0x530152['push'](_0x530152['shift']());}catch(_0x1caad8){_0x530152['push'](_0x530152['shift']());}}}(_0x1df6,0x22535));import{View as _0x91eb76,SearchTextView as _0x1cdb8e,FormHeaderView as _0x34884c,ButtonView as _0x491842}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x144316,IconCancel as _0xc9519f,IconPlus as _0x454889}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x4590b8}from'./aichathistorysectionlistview.js';function _0x15c2(_0x4f290a,_0x687454){const _0x1df697=_0x1df6();return _0x15c2=function(_0x15c23f,_0x3b8590){_0x15c23f=_0x15c23f-0x129;let _0x39cd2a=_0x1df697[_0x15c23f];return _0x39cd2a;},_0x15c2(_0x4f290a,_0x687454);}import{AIChatHistoryListView as _0xfa366a}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x45f64a}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x108ab6}from'../aichathistoryui.js';import{AISkeletonView as _0x481ede,SKELETON_DEFINITIONS as _0x11858c}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x22d96d}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x589497}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x91eb76{[_0x4795a9(0x175)];[_0x4795a9(0x160)];[_0x4795a9(0x13d)];[_0x4795a9(0x138)];[_0x4795a9(0x185)];[_0x4795a9(0x16b)];constructor(_0x4b1dfd,_0x15d3dc){const _0x44996c=_0x4795a9;super(_0x4b1dfd),this[_0x44996c(0x154)](_0x44996c(0x13c),!0x1),this[_0x44996c(0x154)](_0x44996c(0x177),!0x0),this[_0x44996c(0x154)](_0x44996c(0x14a),''),this[_0x44996c(0x154)](_0x44996c(0x14e),!0x1),this[_0x44996c(0x154)](_0x44996c(0x140),!0x1),this[_0x44996c(0x154)](_0x44996c(0x16d),!0x1),this[_0x44996c(0x154)](_0x44996c(0x166),!0x1);const _0x5b87c4=new _0x34884c(_0x4b1dfd,{'label':_0x589497(_0x4b1dfd,_0x44996c(0x15a)),'icon':_0x144316,'class':_0x44996c(0x16f)});_0x15d3dc&&(this[_0x44996c(0x16b)]=_0x22d96d(_0x4b1dfd,this),_0x5b87c4[_0x44996c(0x130)][_0x44996c(0x163)](this[_0x44996c(0x16b)])),this[_0x44996c(0x185)]=new _0x4590b8(_0x4b1dfd,[]),this[_0x44996c(0x185)][_0x44996c(0x158)](..._0x108ab6)['to'](this),this[_0x44996c(0x160)]=this[_0x44996c(0x13b)](),this[_0x44996c(0x13d)]=this[_0x44996c(0x17a)](),this[_0x44996c(0x138)]=this[_0x44996c(0x186)](),this[_0x44996c(0x175)]=this[_0x44996c(0x139)](),this[_0x44996c(0x160)][_0x44996c(0x136)]({'attributes':{'class':[this[_0x44996c(0x133)]['if'](_0x44996c(0x166),_0x44996c(0x12b),_0x1a99ba=>!_0x1a99ba)]}}),this['on'](_0x44996c(0x131),()=>this[_0x44996c(0x143)]()),this['on'](_0x44996c(0x150),()=>this[_0x44996c(0x143)]()),this['on'](_0x44996c(0x17e),()=>this[_0x44996c(0x143)]()),this[_0x44996c(0x169)]({'tag':_0x44996c(0x147),'attributes':{'class':['ck',_0x44996c(0x149),_0x44996c(0x16e),_0x44996c(0x12d)],'dir':_0x44996c(0x15c)},'children':[_0x5b87c4,{'tag':_0x44996c(0x147),'attributes':{'class':[_0x44996c(0x162)]},'children':[this[_0x44996c(0x13d)],this[_0x44996c(0x160)],this[_0x44996c(0x138)],this[_0x44996c(0x175)]]}]});}[_0x4795a9(0x143)](){const _0xe9d955=_0x4795a9;this[_0xe9d955(0x140)]=!this[_0xe9d955(0x177)]&&this[_0xe9d955(0x13c)],this[_0xe9d955(0x16d)]=!this[_0xe9d955(0x177)]&&!this[_0xe9d955(0x13c)]&&!this[_0xe9d955(0x14a)],this[_0xe9d955(0x166)]=!this[_0xe9d955(0x140)]&&!!this[_0xe9d955(0x14a)];}[_0x4795a9(0x139)](){const _0x8df2b9=_0x4795a9,_0xc32efa=new _0x1cdb8e(this[_0x8df2b9(0x144)],{'filteredView':this[_0x8df2b9(0x185)],'queryView':{'label':_0x589497(this[_0x8df2b9(0x144)],_0x8df2b9(0x174))},'infoView':{'text':{'notFound':{'primary':_0x14e035=>_0x589497(this[_0x8df2b9(0x144)],_0x8df2b9(0x13a),_0x14e035),'secondary':_0x589497(this[_0x8df2b9(0x144)],_0x8df2b9(0x137))}}}}),_0x4d1230=this[_0x8df2b9(0x13b)]();return _0x4d1230[_0x8df2b9(0x136)]({'attributes':{'class':[this[_0x8df2b9(0x133)]['if'](_0x8df2b9(0x14a),_0x8df2b9(0x12b),_0x631d67=>!_0x631d67)]}}),_0xc32efa['on'](_0x8df2b9(0x181),()=>{const _0x24b1dd=_0x8df2b9;_0xc32efa[_0x24b1dd(0x130)][_0x24b1dd(0x163)](_0x4d1230,0x1);}),_0xc32efa[_0x8df2b9(0x136)]({'attributes':{'class':[this[_0x8df2b9(0x133)]['if'](_0x8df2b9(0x140),_0x8df2b9(0x12b),_0x470032=>!_0x470032)]}}),_0xc32efa;}[_0x4795a9(0x17a)](){const _0x5afa2f=_0x4795a9,_0x1fc85f=new _0x481ede(this[_0x5afa2f(0x144)],_0x11858c[_0x5afa2f(0x134)]);return _0x1fc85f[_0x5afa2f(0x136)]({'attributes':{'class':[this[_0x5afa2f(0x133)]['if'](_0x5afa2f(0x177),_0x5afa2f(0x12b),_0x2aca35=>!_0x2aca35)]}}),_0x1fc85f;}[_0x4795a9(0x13b)](){const _0x2371ef=_0x4795a9,_0x144a8b=new _0x91eb76(this[_0x2371ef(0x144)]),_0x14c70c=new _0x491842(this[_0x2371ef(0x144)]);_0x14c70c[_0x2371ef(0x154)]({'withText':!0x1,'icon':_0xc9519f,'class':_0x2371ef(0x14f)}),_0x14c70c[_0x2371ef(0x17b)](_0x2371ef(0x183))['to'](this,_0x2371ef(0x13c),_0x24eb43=>!!_0x24eb43),_0x14c70c['on'](_0x2371ef(0x159),()=>{const _0x325b07=_0x2371ef;this[_0x325b07(0x14a)]='';});const _0xf18db4=this[_0x2371ef(0x133)];return _0x144a8b[_0x2371ef(0x169)]({'tag':_0x2371ef(0x147),'attributes':{'class':['ck',_0x2371ef(0x15f),_0x2371ef(0x12e)]},'children':[{'tag':'p','children':[{'text':_0xf18db4['to'](_0x2371ef(0x14a))}]},_0x14c70c]}),_0x144a8b;}[_0x4795a9(0x186)](){const _0x261305=_0x4795a9,_0x21cbeb=new _0x491842(this[_0x261305(0x144)]);_0x21cbeb[_0x261305(0x154)]({'label':_0x589497(this[_0x261305(0x144)],_0x261305(0x15d)),'withText':!0x0,'icon':_0x454889,'class':_0x261305(0x157)}),_0x21cbeb['on'](_0x261305(0x159),()=>{const _0x5885b2=_0x261305;this[_0x5885b2(0x176)](_0x5885b2(0x168));});const _0x95fcf8=new _0x91eb76(this[_0x261305(0x144)]);return _0x95fcf8[_0x261305(0x169)]({'tag':_0x261305(0x147),'attributes':{'class':[_0x261305(0x161),this[_0x261305(0x133)]['if'](_0x261305(0x16d),_0x261305(0x12b),_0x350e37=>!_0x350e37)]},'children':[{'tag':'p','attributes':{'class':[_0x261305(0x14b)]},'children':[_0x589497(this[_0x261305(0x144)],_0x261305(0x15e))]},_0x21cbeb]}),_0x95fcf8;}[_0x4795a9(0x142)](_0x2836ad,_0x2b610f){const _0x35c4e0=_0x4795a9,_0x42a1f4=[];for(const _0x1cf6b4 of _0x2836ad){const _0x3a7a1c=new _0x45f64a(_0x2b610f,_0x1cf6b4);_0x3a7a1c[_0x35c4e0(0x158)](..._0x108ab6)['to'](this),_0x42a1f4[_0x35c4e0(0x173)](_0x3a7a1c);}return _0x42a1f4;}[_0x4795a9(0x13e)](_0x479192){const _0x5ecb2c=_0x4795a9,_0x991485=this[_0x5ecb2c(0x144)]||'en',_0x2a73f0=[];for(const _0x17f896 of _0x479192){const _0x31a3ae=this[_0x5ecb2c(0x142)](_0x17f896[_0x5ecb2c(0x16c)],_0x991485);_0x2a73f0[_0x5ecb2c(0x173)](new _0xfa366a(_0x991485,{'title':_0x17f896[_0x5ecb2c(0x17f)],'items':_0x31a3ae}));}this[_0x5ecb2c(0x185)][_0x5ecb2c(0x184)]=_0x2a73f0,this[_0x5ecb2c(0x185)][_0x5ecb2c(0x16c)][_0x5ecb2c(0x178)](),this[_0x5ecb2c(0x185)][_0x5ecb2c(0x16c)][_0x5ecb2c(0x172)](_0x2a73f0),this[_0x5ecb2c(0x13c)]=_0x479192[_0x5ecb2c(0x13f)](_0xab2d2b=>_0xab2d2b[_0x5ecb2c(0x16c)][_0x5ecb2c(0x156)]>0x0),this[_0x5ecb2c(0x182)]();}[_0x4795a9(0x155)](_0x2f5b78){const _0x57ab64=_0x4795a9;for(const _0x3e2b83 of this[_0x57ab64(0x185)][_0x57ab64(0x184)]){const _0x9dc558=_0x3e2b83[_0x57ab64(0x17c)](_0x2f5b78);if(_0x9dc558){if(_0x3e2b83[_0x57ab64(0x12a)](_0x9dc558),0x0===_0x3e2b83[_0x57ab64(0x12c)][_0x57ab64(0x156)]){const _0x3458f4=this[_0x57ab64(0x185)][_0x57ab64(0x184)][_0x57ab64(0x132)](_0x3e2b83);-0x1!==_0x3458f4&&(this[_0x57ab64(0x185)][_0x57ab64(0x184)][_0x57ab64(0x15b)](_0x3458f4,0x1),this[_0x57ab64(0x185)][_0x57ab64(0x16c)][_0x57ab64(0x151)](_0x3e2b83));}this[_0x57ab64(0x13c)]=this[_0x57ab64(0x185)][_0x57ab64(0x184)][_0x57ab64(0x156)]>0x0,this[_0x57ab64(0x182)]();break;}}}[_0x4795a9(0x180)](_0x13302d,_0x3c7bad){const _0x5bca38=_0x4795a9;for(const _0x12560b of this[_0x5bca38(0x185)][_0x5bca38(0x184)]){const _0x225473=_0x12560b[_0x5bca38(0x17c)](_0x13302d);if(_0x225473){_0x225473[_0x5bca38(0x153)](_0x3c7bad);break;}}}[_0x4795a9(0x148)](_0x280d39,_0x4aabca,_0x428319){const _0x5bb4ac=_0x4795a9;for(const _0x25f15b of this[_0x5bb4ac(0x185)][_0x5bb4ac(0x184)]){const _0x70e831=_0x25f15b[_0x5bb4ac(0x17c)](_0x280d39);if(_0x70e831){_0x70e831[_0x5bb4ac(0x167)](_0x4aabca,_0x428319);break;}}}[_0x4795a9(0x182)](){const _0x5de738=_0x4795a9;if(this[_0x5de738(0x13c)]){const _0x452475=this[_0x5de738(0x175)][_0x5de738(0x179)][_0x5de738(0x14d)]?.[_0x5de738(0x164)]?.[_0x5de738(0x170)]||'';this[_0x5de738(0x175)][_0x5de738(0x16a)](_0x452475);}}}function _0x1df6(){const _0x4411cb=['setTemplate','search','resizeButton','items','isEmptyViewVisible','ck-ai-chat-history','ck-ai-header\x20ck-ai-header_history','value','156945tCngyy','addMany','push','AI_CHAT_HISTORY_SEARCH_LABEL','searchView','fire','isLoading','clear','queryView','_createSkeletonView','bind','getItem','288145rLQgIN','change:errorMessage','title','updateItemTitle','render','_refreshSearch','isVisible','sections','sectionsView','_createEmptyStateView','1327728jXSHNy','removeItem','ck-hidden','itemsViews','ck-rounded-corners','ck-ai-notification_error','344330hApOFS','children','change:isLoading','indexOf','bindTemplate','aiHistory','163071OItcqh','extendTemplate','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','emptyView','_createSearchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_createErrorView','hasItems','skeletonView','updateHistoryItemsWithCategories','some','isSearchViewVisible','10vGHKUH','_createListItemViews','_updateViewVisibility','locale','4BRVeVL','56zhWMNz','div','updateItemLoadingState','ck-reset_all','errorMessage','ck-ai-chat-history__empty-message','46nvEeLd','fieldView','isMaximized','ck-ai-notification_error__dismiss-button','change:hasItems','remove','3247fEyQOp','updateTitle','set','removeHistoryItem','length','ck-ai-chat__start-conversation','delegate','execute','AI_CHAT_HISTORY_HEADING','splice','ltr','AI_CHAT_LABEL_NEW_CHAT','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-notification','mainErrorView','ck-ai-chat-history__empty','ck-ai-chat-history__content','add','element','729509kcMtAq','isMainErrorViewVisible','updateLoadingState','openChat'];_0x1df6=function(){return _0x4411cb;};return _0x1df6();}
|
|
23
|
+
const _0x25b68f=_0x2e40;(function(_0x41b0b7,_0x55bac3){const _0x33277f=_0x2e40,_0x3b72ea=_0x41b0b7();while(!![]){try{const _0x169ff6=-parseInt(_0x33277f(0x144))/0x1+-parseInt(_0x33277f(0x14d))/0x2+-parseInt(_0x33277f(0x15e))/0x3*(-parseInt(_0x33277f(0x11b))/0x4)+parseInt(_0x33277f(0x161))/0x5*(parseInt(_0x33277f(0x129))/0x6)+-parseInt(_0x33277f(0x116))/0x7*(-parseInt(_0x33277f(0x135))/0x8)+-parseInt(_0x33277f(0x16e))/0x9*(-parseInt(_0x33277f(0x156))/0xa)+-parseInt(_0x33277f(0x137))/0xb;if(_0x169ff6===_0x55bac3)break;else _0x3b72ea['push'](_0x3b72ea['shift']());}catch(_0x59ad49){_0x3b72ea['push'](_0x3b72ea['shift']());}}}(_0x8431,0x4f76b));import{View as _0x1a3ba3,SearchTextView as _0xde9f26,FormHeaderView as _0x200d1f,ButtonView as _0x386d13}from'ckeditor5/src/ui.js';function _0x2e40(_0x421984,_0x293a17){const _0x84319d=_0x8431();return _0x2e40=function(_0x2e40cb,_0x59c027){_0x2e40cb=_0x2e40cb-0x112;let _0x122adf=_0x84319d[_0x2e40cb];return _0x122adf;},_0x2e40(_0x421984,_0x293a17);}import{IconAIHistory as _0x1fb553,IconCancel as _0x257c22,IconPlus as _0x3b9dd0}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2ea3a6}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x43b420}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x214ec3}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x240756}from'../aichathistoryui.js';import{AISkeletonView as _0x459dda,SKELETON_DEFINITIONS as _0x4a5ddc}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x50e53f}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x430347}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x1a3ba3{[_0x25b68f(0x12d)];[_0x25b68f(0x160)];[_0x25b68f(0x141)];[_0x25b68f(0x128)];[_0x25b68f(0x126)];[_0x25b68f(0x136)];constructor(_0x60f5d4,_0x2e1128){const _0x3bd0ca=_0x25b68f;super(_0x60f5d4),this[_0x3bd0ca(0x15d)](_0x3bd0ca(0x16f),!0x1),this[_0x3bd0ca(0x15d)](_0x3bd0ca(0x15f),!0x0),this[_0x3bd0ca(0x15d)](_0x3bd0ca(0x158),''),this[_0x3bd0ca(0x15d)](_0x3bd0ca(0x115),!0x1),this[_0x3bd0ca(0x15d)](_0x3bd0ca(0x15b),!0x1),this[_0x3bd0ca(0x15d)](_0x3bd0ca(0x152),!0x1),this[_0x3bd0ca(0x15d)](_0x3bd0ca(0x127),!0x1);const _0x327b91=new _0x200d1f(_0x60f5d4,{'label':_0x430347(_0x60f5d4,_0x3bd0ca(0x14a)),'icon':_0x1fb553,'class':_0x3bd0ca(0x11f)});_0x2e1128&&(this[_0x3bd0ca(0x136)]=_0x50e53f(_0x60f5d4,this),_0x327b91[_0x3bd0ca(0x11c)][_0x3bd0ca(0x148)](this[_0x3bd0ca(0x136)])),this[_0x3bd0ca(0x126)]=new _0x2ea3a6(_0x60f5d4,[]),this[_0x3bd0ca(0x126)][_0x3bd0ca(0x13b)](..._0x240756)['to'](this),this[_0x3bd0ca(0x160)]=this[_0x3bd0ca(0x150)](),this[_0x3bd0ca(0x141)]=this[_0x3bd0ca(0x118)](),this[_0x3bd0ca(0x128)]=this[_0x3bd0ca(0x157)](),this[_0x3bd0ca(0x12d)]=this[_0x3bd0ca(0x169)](),this[_0x3bd0ca(0x160)][_0x3bd0ca(0x12e)]({'attributes':{'class':[this[_0x3bd0ca(0x15c)]['if'](_0x3bd0ca(0x127),_0x3bd0ca(0x165),_0x21f37f=>!_0x21f37f)]}}),this['on'](_0x3bd0ca(0x125),()=>this[_0x3bd0ca(0x16b)]()),this['on'](_0x3bd0ca(0x134),()=>this[_0x3bd0ca(0x16b)]()),this['on'](_0x3bd0ca(0x13d),()=>this[_0x3bd0ca(0x16b)]()),this[_0x3bd0ca(0x123)]({'tag':_0x3bd0ca(0x113),'attributes':{'class':['ck',_0x3bd0ca(0x167),_0x3bd0ca(0x12c),_0x3bd0ca(0x147)],'dir':_0x3bd0ca(0x143)},'children':[_0x327b91,{'tag':_0x3bd0ca(0x113),'attributes':{'class':[_0x3bd0ca(0x14e)]},'children':[this[_0x3bd0ca(0x141)],this[_0x3bd0ca(0x160)],this[_0x3bd0ca(0x128)],this[_0x3bd0ca(0x12d)]]}]});}[_0x25b68f(0x16b)](){const _0x1d981a=_0x25b68f;this[_0x1d981a(0x15b)]=!this[_0x1d981a(0x15f)]&&this[_0x1d981a(0x16f)],this[_0x1d981a(0x152)]=!this[_0x1d981a(0x15f)]&&!this[_0x1d981a(0x16f)]&&!this[_0x1d981a(0x158)],this[_0x1d981a(0x127)]=!this[_0x1d981a(0x15b)]&&!!this[_0x1d981a(0x158)];}[_0x25b68f(0x169)](){const _0x19782c=_0x25b68f,_0x1a26dd=new _0xde9f26(this[_0x19782c(0x124)],{'filteredView':this[_0x19782c(0x126)],'queryView':{'label':_0x430347(this[_0x19782c(0x124)],_0x19782c(0x112))},'infoView':{'text':{'notFound':{'primary':_0x5902a7=>_0x430347(this[_0x19782c(0x124)],_0x19782c(0x117),_0x5902a7),'secondary':_0x430347(this[_0x19782c(0x124)],_0x19782c(0x151))}}}}),_0x300376=this[_0x19782c(0x150)]();return _0x300376[_0x19782c(0x12e)]({'attributes':{'class':[this[_0x19782c(0x15c)]['if'](_0x19782c(0x158),_0x19782c(0x165),_0x42cb7e=>!_0x42cb7e)]}}),_0x1a26dd['on'](_0x19782c(0x142),()=>{const _0x2dcdac=_0x19782c;_0x1a26dd[_0x2dcdac(0x11c)][_0x2dcdac(0x148)](_0x300376,0x1);}),_0x1a26dd[_0x19782c(0x12e)]({'attributes':{'class':[this[_0x19782c(0x15c)]['if'](_0x19782c(0x15b),_0x19782c(0x165),_0x57f0f5=>!_0x57f0f5)]}}),_0x1a26dd;}[_0x25b68f(0x118)](){const _0x23fb51=_0x25b68f,_0x164549=new _0x459dda(this[_0x23fb51(0x124)],_0x4a5ddc[_0x23fb51(0x164)]);return _0x164549[_0x23fb51(0x12e)]({'attributes':{'class':[this[_0x23fb51(0x15c)]['if'](_0x23fb51(0x15f),_0x23fb51(0x165),_0x263380=>!_0x263380)]}}),_0x164549;}[_0x25b68f(0x150)](){const _0x2310d1=_0x25b68f,_0x2629b8=new _0x1a3ba3(this[_0x2310d1(0x124)]),_0x1357f7=new _0x386d13(this[_0x2310d1(0x124)]);_0x1357f7[_0x2310d1(0x15d)]({'withText':!0x1,'icon':_0x257c22,'class':_0x2310d1(0x12a)}),_0x1357f7[_0x2310d1(0x16d)](_0x2310d1(0x131))['to'](this,_0x2310d1(0x16f),_0x30f21c=>!!_0x30f21c),_0x1357f7['on'](_0x2310d1(0x13e),()=>{const _0x4f156f=_0x2310d1;this[_0x4f156f(0x158)]='';});const _0x579c60=this[_0x2310d1(0x15c)];return _0x2629b8[_0x2310d1(0x123)]({'tag':_0x2310d1(0x113),'attributes':{'class':['ck',_0x2310d1(0x14c),_0x2310d1(0x130)]},'children':[{'tag':'p','children':[{'text':_0x579c60['to'](_0x2310d1(0x158))}]},_0x1357f7]}),_0x2629b8;}[_0x25b68f(0x157)](){const _0x49db1b=_0x25b68f,_0x19b9a2=new _0x386d13(this[_0x49db1b(0x124)]);_0x19b9a2[_0x49db1b(0x15d)]({'label':_0x430347(this[_0x49db1b(0x124)],_0x49db1b(0x13c)),'withText':!0x0,'icon':_0x3b9dd0,'class':_0x49db1b(0x133)}),_0x19b9a2['on'](_0x49db1b(0x13e),()=>{const _0x51c3fd=_0x49db1b;this[_0x51c3fd(0x146)](_0x51c3fd(0x14f));});const _0x1b0e55=new _0x1a3ba3(this[_0x49db1b(0x124)]);return _0x1b0e55[_0x49db1b(0x123)]({'tag':_0x49db1b(0x113),'attributes':{'class':[_0x49db1b(0x145),this[_0x49db1b(0x15c)]['if'](_0x49db1b(0x152),_0x49db1b(0x165),_0x2f423b=>!_0x2f423b)]},'children':[{'tag':'p','attributes':{'class':[_0x49db1b(0x149)]},'children':[_0x430347(this[_0x49db1b(0x124)],_0x49db1b(0x114))]},_0x19b9a2]}),_0x1b0e55;}[_0x25b68f(0x139)](_0x31a56a,_0x24d723){const _0x3b97b9=_0x25b68f,_0x3badf4=[];for(const _0x4d817a of _0x31a56a){const _0x314b9e=new _0x214ec3(_0x24d723,_0x4d817a);_0x314b9e[_0x3b97b9(0x13b)](..._0x240756)['to'](this),_0x3badf4[_0x3b97b9(0x159)](_0x314b9e);}return _0x3badf4;}[_0x25b68f(0x15a)](_0x458de1){const _0x2a0464=_0x25b68f,_0x1408f1=this[_0x2a0464(0x124)]||'en',_0x559e3d=[];for(const _0x4cb427 of _0x458de1){const _0x3e1965=this[_0x2a0464(0x139)](_0x4cb427[_0x2a0464(0x153)],_0x1408f1);_0x559e3d[_0x2a0464(0x159)](new _0x43b420(_0x1408f1,{'title':_0x4cb427[_0x2a0464(0x120)],'items':_0x3e1965}));}this[_0x2a0464(0x126)][_0x2a0464(0x16a)]=_0x559e3d,this[_0x2a0464(0x126)][_0x2a0464(0x153)][_0x2a0464(0x122)](),this[_0x2a0464(0x126)][_0x2a0464(0x153)][_0x2a0464(0x14b)](_0x559e3d),this[_0x2a0464(0x16f)]=_0x458de1[_0x2a0464(0x11a)](_0x5d39f0=>_0x5d39f0[_0x2a0464(0x153)][_0x2a0464(0x138)]>0x0),this[_0x2a0464(0x12f)]();}[_0x25b68f(0x11e)](_0x5796c9){const _0x3dfb22=_0x25b68f;for(const _0x97529a of this[_0x3dfb22(0x126)][_0x3dfb22(0x16a)]){const _0x2db0c7=_0x97529a[_0x3dfb22(0x154)](_0x5796c9);if(_0x2db0c7){if(_0x97529a[_0x3dfb22(0x11d)](_0x2db0c7),0x0===_0x97529a[_0x3dfb22(0x16c)][_0x3dfb22(0x138)]){const _0x5438d6=this[_0x3dfb22(0x126)][_0x3dfb22(0x16a)][_0x3dfb22(0x163)](_0x97529a);-0x1!==_0x5438d6&&(this[_0x3dfb22(0x126)][_0x3dfb22(0x16a)][_0x3dfb22(0x162)](_0x5438d6,0x1),this[_0x3dfb22(0x126)][_0x3dfb22(0x153)][_0x3dfb22(0x140)](_0x97529a));}this[_0x3dfb22(0x16f)]=this[_0x3dfb22(0x126)][_0x3dfb22(0x16a)][_0x3dfb22(0x138)]>0x0,this[_0x3dfb22(0x12f)]();break;}}}[_0x25b68f(0x13a)](_0xfb3e09,_0x56b4a5){const _0x5ad109=_0x25b68f;for(const _0x41c50b of this[_0x5ad109(0x126)][_0x5ad109(0x16a)]){const _0x278319=_0x41c50b[_0x5ad109(0x154)](_0xfb3e09);if(_0x278319){_0x278319[_0x5ad109(0x132)](_0x56b4a5);break;}}}[_0x25b68f(0x119)](_0x9c1b34,_0x40511d,_0x307160){const _0x437900=_0x25b68f;for(const _0x482b79 of this[_0x437900(0x126)][_0x437900(0x16a)]){const _0x4c0f0f=_0x482b79[_0x437900(0x154)](_0x9c1b34);if(_0x4c0f0f){_0x4c0f0f[_0x437900(0x12b)](_0x40511d,_0x307160);break;}}}[_0x25b68f(0x12f)](){const _0x56995f=_0x25b68f;if(this[_0x56995f(0x16f)]){const _0x533851=this[_0x56995f(0x12d)][_0x56995f(0x166)][_0x56995f(0x168)]?.[_0x56995f(0x13f)]?.[_0x56995f(0x121)]||'';this[_0x56995f(0x12d)][_0x56995f(0x155)](_0x533851);}}}function _0x8431(){const _0x10758a=['isSearchViewVisible','bindTemplate','set','48189nTPKgC','isLoading','mainErrorView','429705dbQIol','splice','indexOf','aiHistory','ck-hidden','queryView','ck-reset_all','fieldView','_createSearchView','sections','_updateViewVisibility','itemsViews','bind','63bERrjJ','hasItems','AI_CHAT_HISTORY_SEARCH_LABEL','div','AI_CHAT_HISTORY_EMPTY_MESSAGE','isMaximized','2177wTmPuI','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_createSkeletonView','updateItemLoadingState','some','44qHervG','children','removeItem','removeHistoryItem','ck-ai-header\x20ck-ai-header_history','title','value','clear','setTemplate','locale','change:isLoading','sectionsView','isMainErrorViewVisible','emptyView','42UBPlOh','ck-ai-notification_error__dismiss-button','updateLoadingState','ck-ai-chat-history','searchView','extendTemplate','_refreshSearch','ck-ai-notification_error','isVisible','updateTitle','ck-ai-chat__start-conversation','change:hasItems','14600gecrrc','resizeButton','2580875WuamXx','length','_createListItemViews','updateItemTitle','delegate','AI_CHAT_LABEL_NEW_CHAT','change:errorMessage','execute','element','remove','skeletonView','render','ltr','381167TPrltR','ck-ai-chat-history__empty','fire','ck-rounded-corners','add','ck-ai-chat-history__empty-message','AI_CHAT_HISTORY_HEADING','addMany','ck-ai-notification','1070078uIgeVR','ck-ai-chat-history__content','openChat','_createErrorView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','isEmptyViewVisible','items','getItem','search','186370QflSWk','_createEmptyStateView','errorMessage','push','updateHistoryItemsWithCategories'];_0x8431=function(){return _0x10758a;};return _0x8431();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b8864=_0x4840;(function(_0x5b9fd6,_0x303e37){const _0xb35839=_0x4840,_0x8e2bf4=_0x5b9fd6();while(!![]){try{const _0x2d04d5=-parseInt(_0xb35839(0x11f))/0x1+-parseInt(_0xb35839(0x16e))/0x2*(parseInt(_0xb35839(0x172))/0x3)+parseInt(_0xb35839(0x12c))/0x4*(-parseInt(_0xb35839(0x13b))/0x5)+-parseInt(_0xb35839(0x150))/0x6*(parseInt(_0xb35839(0x173))/0x7)+-parseInt(_0xb35839(0x16f))/0x8+parseInt(_0xb35839(0x155))/0x9*(parseInt(_0xb35839(0x179))/0xa)+-parseInt(_0xb35839(0x175))/0xb*(-parseInt(_0xb35839(0x13e))/0xc);if(_0x2d04d5===_0x303e37)break;else _0x8e2bf4['push'](_0x8e2bf4['shift']());}catch(_0x5bcfa2){_0x8e2bf4['push'](_0x8e2bf4['shift']());}}}(_0x4f4a,0x26b70));import{AIChatUI as _0x13e8d3}from'../aichat/aichatui.js';function _0x4f4a(){const _0xd17dfd=['CHAT','_aiChatUI','interactionStarted','ai-chat-shortcuts-ai-tabs-not-found','AIChat','_validateShortcuts','addCurrentDocumentToChatContext','reviewMode','_injectShortcuts','plugins','destroy','removeFeedItem','type','AITabs','AITranslateUI','has','get','sendMessage','394MVCCok','2144648AJGMRf','TRANSLATE','config','3093rArhqd','63UdaoKO','setReasoning','22XiCSlx','setWebSearch','forEach','setPromptInputValue','120JdloAt','chatModels','string','_runChatShortcut','37818axjxoB','label','addFeedItemCustomElement','_runTranslateShortcut','isFromHistory','view','getDefault','custom','_switchTab','check','find','review','fire','4kVSYjc','_shortcuts','AIReviewModeUI','setModel','pluginName','prompt','render','element','isPremiumPlugin','ai-chat-shortcuts-review-mode-not-found','context','ai.chat.shortcuts','values','requires','ai-chat-shortcuts-translate-not-found','4955iQCYeq','_runReviewShortcut','ai-chat-shortcuts-invalid-config','4608804tStVQK','hasFeedItem','includes','_removeShortcuts','getModel','_executeShortcut','translate','REVIEW','source','chat','AIChatController','isOfficialPlugin','init','listenTo','length','_shortcutsView','activeConversation','chat-shortcuts','103902WFXtlM','execute','params','conversationCreated','activateTab','42219CwnVfo','language','args','AIChatShortcuts','locale','focusPromptInput','runReviewCheck'];_0x4f4a=function(){return _0xd17dfd;};return _0x4f4a();}import{ContextPlugin as _0x525e5b}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x1ccbe1}from'./ui/aichatshortcutsview.js';function _0x4840(_0x43991f,_0x408452){const _0x4f4a0f=_0x4f4a();return _0x4840=function(_0x48403a,_0x9eae78){_0x48403a=_0x48403a-0x11e;let _0x280555=_0x4f4a0f[_0x48403a];return _0x280555;},_0x4840(_0x43991f,_0x408452);}import{CKEditorError as _0x11b9d0}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const wt=_0x4b8864(0x14f);export var AIChatShortcutType;!function(_0x31810d){const _0x3fedac=_0x4b8864;_0x31810d[_0x3fedac(0x15c)]=_0x3fedac(0x147),_0x31810d[_0x3fedac(0x145)]=_0x3fedac(0x12a),_0x31810d[_0x3fedac(0x170)]=_0x3fedac(0x144);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x525e5b{[_0x4b8864(0x12d)];[_0x4b8864(0x14d)];[_0x4b8864(0x15d)];static get[_0x4b8864(0x139)](){return[_0x13e8d3];}static get[_0x4b8864(0x130)](){const _0x1b4103=_0x4b8864;return _0x1b4103(0x158);}static get[_0x4b8864(0x149)](){return!0x0;}static get[_0x4b8864(0x134)](){return!0x0;}[_0x4b8864(0x14a)](){const _0x4250f8=_0x4b8864;this[_0x4250f8(0x15d)]=this[_0x4250f8(0x136)][_0x4250f8(0x165)][_0x4250f8(0x16c)](_0x13e8d3),this[_0x4250f8(0x12d)]=this[_0x4250f8(0x136)][_0x4250f8(0x171)][_0x4250f8(0x16c)](_0x4250f8(0x137))??[];const _0x27f511=this[_0x4250f8(0x136)][_0x4250f8(0x165)][_0x4250f8(0x16c)](_0x4250f8(0x148));this[_0x4250f8(0x12d)][_0x4250f8(0x14c)]&&(this[_0x4250f8(0x161)](),this[_0x4250f8(0x15d)]['on'](_0x4250f8(0x153),()=>{const _0x190326=_0x4250f8;_0x27f511[_0x190326(0x14e)][_0x190326(0x123)]||this[_0x190326(0x164)]();}),this[_0x4250f8(0x14b)](_0x27f511,_0x4250f8(0x15e),()=>{const _0x4003f2=_0x4250f8;this[_0x4003f2(0x141)]();}));}[_0x4b8864(0x161)](){const _0x517ccf=_0x4b8864,_0x2f84c9=Object[_0x517ccf(0x138)](AIChatShortcutType);this[_0x517ccf(0x12d)][_0x517ccf(0x177)](_0x25b718=>{const _0x9350fe=_0x517ccf;let _0x47defe=!0x0;if(_0x25b718['id']&&_0x25b718[_0x9350fe(0x120)]&&_0x2f84c9[_0x9350fe(0x140)](_0x25b718[_0x9350fe(0x168)])?_0x9350fe(0x147)===_0x25b718[_0x9350fe(0x168)]&&(_0x47defe=_0x9350fe(0x17b)==typeof _0x25b718[_0x9350fe(0x131)]):_0x47defe=!0x1,!_0x47defe)throw new _0x11b9d0(_0x9350fe(0x13d),this[_0x9350fe(0x136)],{'shortcut':_0x25b718});});}[_0x4b8864(0x164)](){const _0x2fd740=_0x4b8864,_0x3bd1db=this[_0x2fd740(0x136)][_0x2fd740(0x165)][_0x2fd740(0x16c)](_0x13e8d3);this[_0x2fd740(0x14d)]=new _0x1ccbe1(this[_0x2fd740(0x136)][_0x2fd740(0x159)],this[_0x2fd740(0x12d)]),this[_0x2fd740(0x14d)][_0x2fd740(0x132)](),_0x3bd1db[_0x2fd740(0x121)](this[_0x2fd740(0x14d)][_0x2fd740(0x133)],wt),this[_0x2fd740(0x14d)]['on'](_0x2fd740(0x151),_0x3c5b7c=>{const _0x27842b=_0x2fd740,_0x3124be=_0x3c5b7c[_0x27842b(0x146)]['id'];this[_0x27842b(0x143)](_0x3124be);});}[_0x4b8864(0x141)](){const _0x349b5e=_0x4b8864,_0x1e7e0b=this[_0x349b5e(0x136)][_0x349b5e(0x165)][_0x349b5e(0x16c)](_0x13e8d3);_0x1e7e0b[_0x349b5e(0x13f)](wt)&&_0x1e7e0b[_0x349b5e(0x167)](wt),this[_0x349b5e(0x14d)]?.[_0x349b5e(0x166)]();}[_0x4b8864(0x143)](_0x550ee2){const _0x22948f=_0x4b8864,_0x7d39da=this[_0x22948f(0x12d)][_0x22948f(0x129)](_0x1bc202=>_0x1bc202['id']===_0x550ee2),_0x1d5c09=_0x7d39da[_0x22948f(0x168)];_0x22948f(0x147)===_0x1d5c09?this[_0x22948f(0x11e)](_0x7d39da):_0x22948f(0x12a)===_0x1d5c09?_0x7d39da[_0x22948f(0x128)]?this[_0x22948f(0x13c)](_0x7d39da):this[_0x22948f(0x127)](_0x22948f(0x163)):_0x22948f(0x144)===_0x1d5c09&&(_0x7d39da[_0x22948f(0x156)]?this[_0x22948f(0x122)](_0x7d39da):this[_0x22948f(0x127)](_0x22948f(0x144)));}[_0x4b8864(0x127)](_0x521354){const _0x1c7072=_0x4b8864;if(!this[_0x1c7072(0x136)][_0x1c7072(0x165)][_0x1c7072(0x16b)](_0x1c7072(0x169)))throw new _0x11b9d0(_0x1c7072(0x15f),this[_0x1c7072(0x136)],{'tabName':_0x521354});this[_0x1c7072(0x136)][_0x1c7072(0x165)][_0x1c7072(0x16c)](_0x1c7072(0x169))[_0x1c7072(0x124)][_0x1c7072(0x154)](_0x521354);}async[_0x4b8864(0x11e)]({prompt:_0x2e86df,draftMode:_0x33d63d,useWebSearch:_0x4568fd=!0x1,useReasoning:_0x887144=!0x1,model:_0x29d264}){const _0x3e644b=_0x4b8864,_0x2becfb=this[_0x3e644b(0x136)][_0x3e644b(0x165)][_0x3e644b(0x16c)](_0x3e644b(0x160)),_0x41a057=this[_0x3e644b(0x136)][_0x3e644b(0x165)][_0x3e644b(0x16c)](_0x3e644b(0x148)),_0x2aafa9=_0x41a057[_0x3e644b(0x14e)];let _0x388d3e;_0x388d3e=_0x29d264?await _0x2aafa9[_0x3e644b(0x17a)][_0x3e644b(0x142)](_0x29d264):await _0x2aafa9[_0x3e644b(0x17a)][_0x3e644b(0x125)](),_0x388d3e&&await _0x2aafa9[_0x3e644b(0x12f)](_0x388d3e),_0x2aafa9[_0x3e644b(0x176)](_0x4568fd),_0x2aafa9[_0x3e644b(0x174)](_0x887144),_0x41a057[_0x3e644b(0x162)](),_0x33d63d?(this[_0x3e644b(0x15d)][_0x3e644b(0x178)](_0x2e86df),this[_0x3e644b(0x15d)][_0x3e644b(0x15a)](!0x0)):_0x2becfb[_0x3e644b(0x16d)]({'message':_0x2e86df});}[_0x4b8864(0x13c)]({check:_0x5580b8,model:_0x3ecfd7,prompt:_0x82304f,params:_0x23bfbd}){const _0x4e7c1c=_0x4b8864;if(!this[_0x4e7c1c(0x136)][_0x4e7c1c(0x165)][_0x4e7c1c(0x16b)](_0x4e7c1c(0x12e)))throw new _0x11b9d0(_0x4e7c1c(0x135),this[_0x4e7c1c(0x136)]);this[_0x4e7c1c(0x127)](_0x4e7c1c(0x163));const _0x5103d1={'id':_0x5580b8,'isCustom':_0x4e7c1c(0x126)===_0x5580b8};_0x3ecfd7&&_0x82304f&&(_0x5103d1[_0x4e7c1c(0x157)]={'model':_0x3ecfd7,'prompt':_0x82304f}),_0x23bfbd&&(_0x5103d1[_0x4e7c1c(0x152)]=_0x23bfbd),this[_0x4e7c1c(0x136)][_0x4e7c1c(0x165)][_0x4e7c1c(0x16c)](_0x4e7c1c(0x12e))[_0x4e7c1c(0x12b)](_0x4e7c1c(0x15b),_0x5103d1);}[_0x4b8864(0x122)]({language:_0x14cff4}){const _0x35ca0a=_0x4b8864;if(!this[_0x35ca0a(0x136)][_0x35ca0a(0x165)][_0x35ca0a(0x16b)](_0x35ca0a(0x16a)))throw new _0x11b9d0(_0x35ca0a(0x13a),this[_0x35ca0a(0x136)]);this[_0x35ca0a(0x127)](_0x35ca0a(0x144)),this[_0x35ca0a(0x136)][_0x35ca0a(0x165)][_0x35ca0a(0x16c)](_0x35ca0a(0x16a))[_0x35ca0a(0x12b)](_0x35ca0a(0x15b),{'id':_0x14cff4,'args':{'language':_0x14cff4}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x540075=_0x2e45;(function(_0x5defb7,_0x1a2f5c){const _0x1bb30b=_0x2e45,_0x59e1ea=_0x5defb7();while(!![]){try{const _0x486008=parseInt(_0x1bb30b(0x19a))/0x1*(parseInt(_0x1bb30b(0x193))/0x2)+parseInt(_0x1bb30b(0x1aa))/0x3+parseInt(_0x1bb30b(0x1a2))/0x4*(-parseInt(_0x1bb30b(0x1a7))/0x5)+-parseInt(_0x1bb30b(0x19e))/0x6*(-parseInt(_0x1bb30b(0x19b))/0x7)+-parseInt(_0x1bb30b(0x1a4))/0x8*(parseInt(_0x1bb30b(0x1a9))/0x9)+-parseInt(_0x1bb30b(0x198))/0xa*(-parseInt(_0x1bb30b(0x19f))/0xb)+parseInt(_0x1bb30b(0x192))/0xc*(-parseInt(_0x1bb30b(0x194))/0xd);if(_0x486008===_0x1a2f5c)break;else _0x59e1ea['push'](_0x59e1ea['shift']());}catch(_0x43c34e){_0x59e1ea['push'](_0x59e1ea['shift']());}}}(_0x8fa6,0xaf341));function _0x2e45(_0x32d25f,_0x5734f5){const _0x8fa67e=_0x8fa6();return _0x2e45=function(_0x2e4541,_0x131b0b){_0x2e4541=_0x2e4541-0x192;let _0x335f7c=_0x8fa67e[_0x2e4541];return _0x335f7c;},_0x2e45(_0x32d25f,_0x5734f5);}import{ListItemView as _0x7d5c79,ListView as _0x2be173,View as _0x1d4bc5}from'ckeditor5/src/ui.js';function _0x8fa6(){const _0x4ac59f=['12935197mjwulI','map','listView','9980ZKFVKg','addMany','40QTitYL','div','locale','2525MvHJnl','ck-ai-chat-shortcuts','909153uoHQlE','3402180KFfPFe','28578720vaLtZc','2IHGGQh','13bnSnSX','items','children','add','10QPeyfL','setTemplate','1415458WBIlEU','28MOXLgq','execute','delegate','1708212dHOdGO'];_0x8fa6=function(){return _0x4ac59f;};return _0x8fa6();}import{AIChatShortcutView as _0x290086}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x1d4bc5{[_0x540075(0x1a1)];constructor(_0x23cd67,_0x418349){const _0x1d1f38=_0x540075;super(_0x23cd67);const _0x4964ff=_0x418349[_0x1d1f38(0x1a0)](_0x2d0e96=>{const _0x2cbbdb=_0x1d1f38,_0x383ad8=new _0x7d5c79(this[_0x2cbbdb(0x1a6)]),_0x596ba6=new _0x290086(this[_0x2cbbdb(0x1a6)],_0x2d0e96);return _0x383ad8[_0x2cbbdb(0x196)][_0x2cbbdb(0x197)](_0x596ba6),_0x596ba6[_0x2cbbdb(0x19d)](_0x2cbbdb(0x19c))['to'](this),_0x383ad8;});this[_0x1d1f38(0x1a1)]=new _0x2be173(this[_0x1d1f38(0x1a6)]),this[_0x1d1f38(0x1a1)][_0x1d1f38(0x195)][_0x1d1f38(0x1a3)](_0x4964ff),this[_0x1d1f38(0x199)]({'tag':_0x1d1f38(0x1a5),'attributes':{'class':['ck',_0x1d1f38(0x1a8)]},'children':[this[_0x1d1f38(0x1a1)]]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xc4fe00,_0x2f3347){const _0x2b17fc=_0x22c2,_0x9d139c=_0xc4fe00();while(!![]){try{const _0x5cc8ef=-parseInt(_0x2b17fc(0xe1))/0x1+-parseInt(_0x2b17fc(0xdc))/0x2+parseInt(_0x2b17fc(0xdd))/0x3*(-parseInt(_0x2b17fc(0xde))/0x4)+parseInt(_0x2b17fc(0xd2))/0x5+-parseInt(_0x2b17fc(0xe0))/0x6+parseInt(_0x2b17fc(0xdb))/0x7*(parseInt(_0x2b17fc(0xd1))/0x8)+parseInt(_0x2b17fc(0xd0))/0x9*(parseInt(_0x2b17fc(0xd9))/0xa);if(_0x5cc8ef===_0x2f3347)break;else _0x9d139c['push'](_0x9d139c['shift']());}catch(_0x2b20a9){_0x9d139c['push'](_0x9d139c['shift']());}}}(_0x3cb1,0xece3d));function _0x22c2(_0x2ae415,_0x4fdec5){const _0x3cb179=_0x3cb1();return _0x22c2=function(_0x22c22c,_0x37acbc){_0x22c22c=_0x22c22c-0xd0;let _0x3fe320=_0x3cb179[_0x22c22c];return _0x3fe320;},_0x22c2(_0x2ae415,_0x4fdec5);}import{ButtonView as _0x1d4caa}from'ckeditor5/src/ui.js';import{IconAIChat as _0x32973a,IconAIReview as _0x581c5c,IconAITranslate as _0x1bf792}from'@ckeditor/ckeditor5-icons';function _0x3cb1(){const _0x36fee0=['set','icon','review','extendTemplate','36700YrATXE','chat','2602460cttcQE','254838MTRxKD','208281QNgtfw','52ZLhIpK','translate','273216UoYKVK','1098522oNviDa','5697VrzVFF','16cQsTCb','388295zHuxnp','label','ck-ai-chat-shortcut'];_0x3cb1=function(){return _0x36fee0;};return _0x3cb1();}export class AIChatShortcutView extends _0x1d4caa{['id'];constructor(_0x5816a6,_0x48197b){const _0x1f6faf=_0x22c2;super(_0x5816a6);const {id:_0x5407e0,type:_0x505d7e,icon:_0x4def18}=_0x48197b;this['id']=_0x5407e0,this[_0x1f6faf(0xd5)]({'label':_0x48197b[_0x1f6faf(0xd3)],'withText':!0x0,'class':_0x1f6faf(0xd4)}),this[_0x1f6faf(0xd8)]({'attributes':{'data-cke-ai-shortcut-id':_0x48197b['id']}}),_0x4def18?this[_0x1f6faf(0xd6)]=_0x4def18:_0x1f6faf(0xda)===_0x505d7e?this[_0x1f6faf(0xd6)]=_0x32973a:_0x1f6faf(0xd7)===_0x505d7e?this[_0x1f6faf(0xd6)]=_0x581c5c:_0x1f6faf(0xdf)===_0x505d7e&&(this[_0x1f6faf(0xd6)]=_0x1bf792);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x292b(){const _0x440485=['TRANSLATE','598YLsxoj','100','3510mOIKeA','deleteFile','translate','make-shorter','920028evYnsK','read','context','/models/1?','order','deleteDocument','isOfficialPlugin','uploadDocument','make-tone-formal','upsertCustomAIReviewRating','/reviews/custom/calls/','75449FMeKoD','define','deleteWebResource','30ZwJmXa','ai.serviceUrl','fetchConversationMessages','CloudServices','AIConnector','get','MAKE_LONGER','executeCustomAction','stringify','improve-writing','language','group','init','signal','MAKE_TONE_CASUAL','/actions/system/','20LYHNoN','_sendApiRequest','status','/calls','_decoder','Content-Type','getReader','callSystemReview','fix-grammar','/web-resources/','deleteConversation','1079qILJTu','statusText','make-tone-casual','fetchConversations','sortBy','plugins','application/json','feed','abortController','POST','AbortError','/conversations','body','/actions/custom/calls/','true','Bearer\x20','/messages/','_getStreamReader','isPremiumPlugin','FIX_GRAMMAR','reset','/documents/','decode','/web-resources','continue','token','getModels','upsertAIActionRating','pluginName','/ratings','limit','startConversation','DELETE','traceId','_handleError','config','text','requires','1040oKEJeN','releaseLock','_apiUrl','145012slcCuO','executeAction','/conversations?','/reviews/system/','PATCH','items','/calls/','positiveCount','false','GET','message','/documents','upsertAIChatRating','name','excludeEmpty','value','MAKE_TONE_FORMAL','IMPROVE_WRITING','ai-request-aborted','fetchDocument','catch','937116smXKOl','ai-request-failed','_token','updateConversation','then','callCustomReview','6161197IsYNkh','996JmEVLe','createdAt','data','fetchConversation','code','append','/files/','upsertAIReviewRating','8tpsLbz','json','queryAssistant','/messages','upsertCustomAIActionRating','push','9BLUJaH','modificationId','length','totalCount','parse','attributes','CONTINUE','ai-missing-token','/actions/custom/calls','file','https://ai.cke-cs.com/v1','request','/reviews/custom/calls','/files','uploadUrl','toString','make-longer','PUT','MAKE_SHORTER','uploadFile','/conversations/','desc'];_0x292b=function(){return _0x440485;};return _0x292b();}const _0xd681c3=_0x4c55;(function(_0x14b57c,_0x24b406){const _0x3560fd=_0x4c55,_0x1dc981=_0x14b57c();while(!![]){try{const _0x5b16fe=parseInt(_0x3560fd(0x18a))/0x1*(-parseInt(_0x3560fd(0x1df))/0x2)+parseInt(_0x3560fd(0x20c))/0x3*(parseInt(_0x3560fd(0x190))/0x4)+-parseInt(_0x3560fd(0x1ae))/0x5*(-parseInt(_0x3560fd(0x1f7))/0x6)+parseInt(_0x3560fd(0x1fd))/0x7*(parseInt(_0x3560fd(0x206))/0x8)+parseInt(_0x3560fd(0x18c))/0x9*(parseInt(_0x3560fd(0x19e))/0xa)+-parseInt(_0x3560fd(0x19b))/0xb*(parseInt(_0x3560fd(0x1fe))/0xc)+-parseInt(_0x3560fd(0x1b9))/0xd*(parseInt(_0x3560fd(0x1e2))/0xe);if(_0x5b16fe===_0x24b406)break;else _0x1dc981['push'](_0x1dc981['shift']());}catch(_0x4c78d7){_0x1dc981['push'](_0x1dc981['shift']());}}}(_0x292b,0x6f5c7));import{createParser as _0x4de6fe}from'eventsource-parser';function _0x4c55(_0x3cc971,_0x58128b){const _0x292b4c=_0x292b();return _0x4c55=function(_0x4c5536,_0x161c61){_0x4c5536=_0x4c5536-0x177;let _0x54e223=_0x292b4c[_0x4c5536];return _0x54e223;},_0x4c55(_0x3cc971,_0x58128b);}import{ContextPlugin as _0x5632a7}from'ckeditor5/src/core.js';import{CKEditorError as _0x3cbcb0}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x4689cc){const _0x223452=_0x4c55;_0x4689cc[_0x223452(0x179)]=_0x223452(0x1d1),_0x4689cc[_0x223452(0x1cc)]=_0x223452(0x1b6),_0x4689cc[_0x223452(0x1f3)]=_0x223452(0x1a7),_0x4689cc[_0x223452(0x1a4)]=_0x223452(0x183),_0x4689cc[_0x223452(0x185)]=_0x223452(0x18f),_0x4689cc[_0x223452(0x1ac)]=_0x223452(0x1bb),_0x4689cc[_0x223452(0x1f2)]=_0x223452(0x198),_0x4689cc[_0x223452(0x189)]=_0x223452(0x18e);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x5632a7{[_0xd681c3(0x1e1)];[_0xd681c3(0x1f9)];[_0xd681c3(0x1b2)];static get[_0xd681c3(0x1de)](){const _0x8d21ad=_0xd681c3;return[_0x8d21ad(0x1a1)];}static get[_0xd681c3(0x1d5)](){const _0x52a864=_0xd681c3;return _0x52a864(0x1a2);}static get[_0xd681c3(0x196)](){return!0x0;}static get[_0xd681c3(0x1cb)](){return!0x0;}constructor(_0x5b53c2){const _0x3e7cb6=_0xd681c3;super(_0x5b53c2),this[_0x3e7cb6(0x192)][_0x3e7cb6(0x1dc)][_0x3e7cb6(0x19c)](_0x3e7cb6(0x19f),_0x3e7cb6(0x17d)),this[_0x3e7cb6(0x1e1)]=this[_0x3e7cb6(0x192)][_0x3e7cb6(0x1dc)][_0x3e7cb6(0x1a3)](_0x3e7cb6(0x19f)),this[_0x3e7cb6(0x1f9)]=null,this[_0x3e7cb6(0x1b2)]=new TextDecoder();}[_0xd681c3(0x1aa)](){const _0x46a7c7=_0xd681c3,_0x4abca8=this[_0x46a7c7(0x192)][_0x46a7c7(0x1be)][_0x46a7c7(0x1a3)](_0x46a7c7(0x1a1));if(!_0x4abca8[_0x46a7c7(0x1d2)])throw new _0x3cbcb0(_0x46a7c7(0x17a),this);this[_0x46a7c7(0x1f9)]=_0x4abca8[_0x46a7c7(0x1d2)];}[_0xd681c3(0x1d8)](_0x280281,_0x5a2ba0){const _0xec6770=_0xd681c3,_0x138f22=this[_0xec6770(0x1af)](_0xec6770(0x1c4),_0xec6770(0x1c2),{'id':_0x280281,'group':_0x5a2ba0});return{'getConversation':async()=>(await _0x138f22[_0xec6770(0x17e)])[_0xec6770(0x207)](),'abortController':_0x138f22[_0xec6770(0x1c1)]};}[_0xd681c3(0x208)]({message:_0x50d37e,conversationId:_0x333d16,parts:_0x2be468,capabilities:_0x362a50,model:_0x595335,attributes:_0x5ca000}){const _0x45a477=_0xd681c3,_0x321931={'prompt':_0x50d37e,'content':_0x2be468,'model':_0x595335,..._0x362a50&&{'capabilities':_0x362a50},..._0x5ca000&&{'attributes':_0x5ca000}},_0x2940cb=this[_0x45a477(0x1af)](_0x45a477(0x187)+_0x333d16+_0x45a477(0x209),_0x45a477(0x1c2),_0x321931);return{'getStream':async()=>{const _0x36b625=_0x45a477,_0x3b6325=(await _0x2940cb[_0x36b625(0x17e)])[_0x36b625(0x1c5)];return this[_0x36b625(0x1ca)](_0x3b6325);},'abortController':_0x2940cb[_0x45a477(0x1c1)]};}[_0xd681c3(0x1a5)]({content:_0x4553e7,message:_0x5cfda7,model:_0x4702ce,outputFormat:_0xc44bfc}){const _0x3d48b4=_0xd681c3,_0x28caa6={'content':[{'type':_0x3d48b4(0x1dd),'content':_0x4553e7}],'prompt':_0x5cfda7,'model':_0x4702ce,'outputFormat':_0xc44bfc},_0x4de253=this[_0x3d48b4(0x1af)](_0x3d48b4(0x17b),_0x3d48b4(0x1c2),_0x28caa6);return{'getStream':async()=>{const _0x797455=_0x3d48b4,_0x265b8a=(await _0x4de253[_0x797455(0x17e)])[_0x797455(0x1c5)];return this[_0x797455(0x1ca)](_0x265b8a);},'abortController':_0x4de253[_0x3d48b4(0x1c1)]};}[_0xd681c3(0x1e3)]({actionName:_0x3a060b,content:_0x52decf,args:_0x9cc9b}){const _0x1ede75=_0xd681c3,_0x2de082={'content':[{'type':_0x1ede75(0x1dd),'content':_0x52decf}],'args':_0x9cc9b},_0x5151db=this[_0x1ede75(0x1af)](_0x1ede75(0x1ad)+_0x3a060b+_0x1ede75(0x1b1),_0x1ede75(0x1c2),_0x2de082);return{'getStream':async()=>{const _0x1f4268=_0x1ede75,_0x174085=(await _0x5151db[_0x1f4268(0x17e)])[_0x1f4268(0x1c5)];return this[_0x1f4268(0x1ca)](_0x174085);},'abortController':_0x5151db[_0x1ede75(0x1c1)]};}[_0xd681c3(0x186)](_0x168b7c,_0x138b24,_0x4bbaa9){const _0x469975=_0xd681c3,_0x49179b=new FormData();_0x49179b[_0x469975(0x203)](_0x469975(0x17c),_0x138b24,_0x138b24[_0x469975(0x1ef)]),_0x4bbaa9&&_0x49179b[_0x469975(0x203)](_0x469975(0x178),JSON[_0x469975(0x1a6)](_0x4bbaa9));const _0x5bbda3=this[_0x469975(0x1af)](_0x469975(0x187)+_0x168b7c+_0x469975(0x180),_0x469975(0x1c2),_0x49179b);return{'getId':async()=>(await _0x5bbda3[_0x469975(0x17e)])[_0x469975(0x207)](),'abortController':_0x5bbda3[_0x469975(0x1c1)]};}[_0xd681c3(0x1f5)](_0x3752d9,_0x331322){const _0x268dd9=_0xd681c3,_0x4e5b24=this[_0x268dd9(0x1af)](_0x268dd9(0x187)+_0x3752d9+_0x268dd9(0x1ce)+_0x331322,_0x268dd9(0x1eb));return{'getDocument':async()=>(await _0x4e5b24[_0x268dd9(0x17e)])[_0x268dd9(0x207)](),'abortController':_0x4e5b24[_0x268dd9(0x1c1)]};}[_0xd681c3(0x197)](_0x27f98a,_0x11e377,_0x2d17b0){const _0x202220=_0xd681c3,_0x53175f={'content':_0x11e377};_0x2d17b0&&(_0x53175f[_0x202220(0x178)]=_0x2d17b0);const _0x53db12=this[_0x202220(0x1af)](_0x202220(0x187)+_0x27f98a+_0x202220(0x1ed),_0x202220(0x1c2),_0x53175f);return{'getId':async()=>(await _0x53db12[_0x202220(0x17e)])[_0x202220(0x207)](),'abortController':_0x53db12[_0x202220(0x1c1)]};}[_0xd681c3(0x1bc)](_0x24a854,_0x13f8aa={}){const _0x220a6b=_0xd681c3,_0x997d70=new URLSearchParams();_0x997d70[_0x220a6b(0x203)](_0x220a6b(0x1a9),_0x24a854),_0x997d70[_0x220a6b(0x203)](_0x220a6b(0x1f0),!0x1!==_0x13f8aa[_0x220a6b(0x1f0)]?_0x220a6b(0x1c7):_0x220a6b(0x1ea)),_0x997d70[_0x220a6b(0x203)](_0x220a6b(0x1d7),_0x13f8aa[_0x220a6b(0x1d7)]?_0x13f8aa[_0x220a6b(0x1d7)][_0x220a6b(0x182)]():_0x220a6b(0x18b)),_0x997d70[_0x220a6b(0x203)](_0x220a6b(0x1bd),_0x13f8aa[_0x220a6b(0x1bd)]?_0x13f8aa[_0x220a6b(0x1bd)]:_0x220a6b(0x1ff)),_0x997d70[_0x220a6b(0x203)](_0x220a6b(0x194),_0x13f8aa[_0x220a6b(0x194)]?_0x13f8aa[_0x220a6b(0x194)]:_0x220a6b(0x188));const _0x276f01=this[_0x220a6b(0x1af)](_0x220a6b(0x1e4)+_0x997d70[_0x220a6b(0x182)](),_0x220a6b(0x1eb));return{'getConversations':async()=>{const _0x21844e=_0x220a6b,_0x4cabbd=await _0x276f01[_0x21844e(0x17e)];return(await _0x4cabbd[_0x21844e(0x207)]())[_0x21844e(0x1e7)];},'abortController':_0x276f01[_0x220a6b(0x1c1)]};}[_0xd681c3(0x1b8)](_0x39255b){const _0x1e6502=_0xd681c3,_0x17e3aa=this[_0x1e6502(0x1af)](_0x1e6502(0x187)+_0x39255b,_0x1e6502(0x1d9));return{'execute':async()=>{const _0x27ab29=_0x1e6502;await _0x17e3aa[_0x27ab29(0x17e)];},'abortController':_0x17e3aa[_0x1e6502(0x1c1)]};}[_0xd681c3(0x1fa)](_0x4b0112,_0x50f6c9){const _0x45522f=_0xd681c3,_0x455502=this[_0x45522f(0x1af)](_0x45522f(0x187)+_0x4b0112,_0x45522f(0x1e6),_0x50f6c9);return{'getResult':async()=>(await _0x455502[_0x45522f(0x17e)],_0x50f6c9),'abortController':_0x455502[_0x45522f(0x1c1)]};}[_0xd681c3(0x201)](_0x344d1a){const _0xa38735=_0xd681c3,_0x10d438=this[_0xa38735(0x1af)](_0xa38735(0x187)+_0x344d1a,_0xa38735(0x1eb));return{'getConversation':async()=>(await _0x10d438[_0xa38735(0x17e)])[_0xa38735(0x207)](),'abortController':_0x10d438[_0xa38735(0x1c1)]};}[_0xd681c3(0x1a0)](_0x1e6ddc){const _0x4d8cd2=_0xd681c3,_0x42d180=this[_0x4d8cd2(0x1af)](_0x4d8cd2(0x187)+_0x1e6ddc+_0x4d8cd2(0x209),_0x4d8cd2(0x1eb));return{'getMessages':async()=>{const _0x251e91=_0x4d8cd2,_0x3599ed=await _0x42d180[_0x251e91(0x17e)];return(await _0x3599ed[_0x251e91(0x207)]())[_0x251e91(0x1e7)];},'abortController':_0x42d180[_0x4d8cd2(0x1c1)]};}[_0xd681c3(0x181)](_0x1701aa,_0x1222ee,_0x24371d){const _0x52e29c=_0xd681c3,_0x27984b=this[_0x52e29c(0x1af)](_0x52e29c(0x187)+_0x1701aa+_0x52e29c(0x1d0),_0x52e29c(0x1c2),{'url':_0x1222ee,'attributes':_0x24371d});return{'getId':async()=>(await _0x27984b[_0x52e29c(0x17e)])[_0x52e29c(0x207)](),'abortController':_0x27984b[_0x52e29c(0x1c1)]};}[_0xd681c3(0x1d3)](_0x543b6a='en'){const _0xca4124=_0xd681c3,_0x1916bd=new URLSearchParams();_0x1916bd[_0xca4124(0x203)](_0xca4124(0x1a8),_0x543b6a);const _0x47ab7a=_0xca4124(0x193)+_0x1916bd[_0xca4124(0x182)](),_0x146e44=this[_0xca4124(0x1af)](_0x47ab7a,_0xca4124(0x1eb));return{'list':async()=>await(await _0x146e44[_0xca4124(0x17e)])[_0xca4124(0x207)](),'abortController':_0x146e44[_0xca4124(0x1c1)]};}[_0xd681c3(0x18d)](_0x3528a9,_0x395c32){const _0x1a4d8c=_0xd681c3,_0x330249=this[_0x1a4d8c(0x1af)](_0x1a4d8c(0x187)+_0x3528a9+_0x1a4d8c(0x204)+_0x395c32,_0x1a4d8c(0x1d9));return{'execute':async()=>{const _0xc6c52f=_0x1a4d8c;await _0x330249[_0xc6c52f(0x17e)];},'abortController':_0x330249[_0x1a4d8c(0x1c1)]};}[_0xd681c3(0x195)](_0x54dfe3,_0x5a8ca0){const _0xf1c837=_0xd681c3,_0x9448f3=this[_0xf1c837(0x1af)](_0xf1c837(0x187)+_0x54dfe3+_0xf1c837(0x1ce)+_0x5a8ca0,_0xf1c837(0x1d9));return{'execute':async()=>{const _0x437f59=_0xf1c837;await _0x9448f3[_0x437f59(0x17e)];},'abortController':_0x9448f3[_0xf1c837(0x1c1)]};}[_0xd681c3(0x19d)](_0x2df782,_0x572be4){const _0x1adebb=_0xd681c3,_0x2b6f26=this[_0x1adebb(0x1af)](_0x1adebb(0x187)+_0x2df782+_0x1adebb(0x1b7)+_0x572be4,_0x1adebb(0x1d9));return{'execute':async()=>{const _0xdce191=_0x1adebb;await _0x2b6f26[_0xdce191(0x17e)];},'abortController':_0x2b6f26[_0x1adebb(0x1c1)]};}[_0xd681c3(0x1b5)]({reviewName:_0x3f7a90,content:_0x24300b,args:_0x1cd835}){const _0x385b42=_0xd681c3,_0x3dfae1=this[_0x385b42(0x1af)](_0x385b42(0x1e5)+_0x3f7a90+_0x385b42(0x1b1),_0x385b42(0x1c2),{'content':[{'type':_0x385b42(0x1dd),'content':_0x24300b}],'args':_0x1cd835});return{'getStream':async()=>{const _0x3c43b3=_0x385b42,_0x2a9f88=(await _0x3dfae1[_0x3c43b3(0x17e)])[_0x3c43b3(0x1c5)];return this[_0x3c43b3(0x1ca)](_0x2a9f88);},'abortController':_0x3dfae1[_0x385b42(0x1c1)]};}[_0xd681c3(0x1fc)]({content:_0x3cd056,prompt:_0x55ccb1,model:_0x2124e3}){const _0x1afb56=_0xd681c3,_0x50e423=this[_0x1afb56(0x1af)](_0x1afb56(0x17f),_0x1afb56(0x1c2),{'content':[{'type':_0x1afb56(0x1dd),'content':_0x3cd056}],'prompt':_0x55ccb1,'model':_0x2124e3});return{'getStream':async()=>{const _0x56fa21=_0x1afb56,_0x35e9e9=(await _0x50e423[_0x56fa21(0x17e)])[_0x56fa21(0x1c5)];return this[_0x56fa21(0x1ca)](_0x35e9e9);},'abortController':_0x50e423[_0x1afb56(0x1c1)]};}[_0xd681c3(0x1ee)](_0x395c05,_0x280102,_0x118266){const _0x2bc7fe=_0xd681c3,_0x3370db=this[_0x2bc7fe(0x1af)](_0x2bc7fe(0x187)+_0x395c05+_0x2bc7fe(0x1c9)+_0x280102+_0x2bc7fe(0x1d6),_0x2bc7fe(0x184),{'positiveCount':_0x118266[_0x2bc7fe(0x1e9)],'totalCount':_0x118266[_0x2bc7fe(0x20f)],'modificationId':_0x118266[_0x2bc7fe(0x20d)]});return{'execute':async()=>{const _0x285d3f=_0x2bc7fe;await _0x3370db[_0x285d3f(0x17e)];},'abortController':_0x3370db[_0x2bc7fe(0x1c1)]};}[_0xd681c3(0x1d4)](_0x49a63c,_0x3403f9,_0x43273e){const _0x37440b=_0xd681c3,_0x3561de=this[_0x37440b(0x1af)](_0x37440b(0x1ad)+_0x49a63c+_0x37440b(0x1e8)+_0x3403f9+_0x37440b(0x1d6),_0x37440b(0x184),{'positiveCount':_0x43273e[_0x37440b(0x1e9)],'totalCount':_0x43273e[_0x37440b(0x20f)]});return{'execute':async()=>{const _0x3b9d22=_0x37440b;await _0x3561de[_0x3b9d22(0x17e)];},'abortController':_0x3561de[_0x37440b(0x1c1)]};}[_0xd681c3(0x20a)](_0x589956,_0x4d1a11){const _0x56987a=_0xd681c3,_0x599f33=this[_0x56987a(0x1af)](_0x56987a(0x1c6)+_0x589956+_0x56987a(0x1d6),_0x56987a(0x184),{'positiveCount':_0x4d1a11[_0x56987a(0x1e9)],'totalCount':_0x4d1a11[_0x56987a(0x20f)]});return{'execute':async()=>{const _0x160278=_0x56987a;await _0x599f33[_0x160278(0x17e)];},'abortController':_0x599f33[_0x56987a(0x1c1)]};}[_0xd681c3(0x205)](_0x3e0d46,_0x1e6dfd,_0x24f9a1,_0x11ab6f){const _0xff3d5=_0xd681c3,_0x3ec49d=this[_0xff3d5(0x1af)](_0xff3d5(0x1e5)+_0x3e0d46+_0xff3d5(0x1e8)+_0x1e6dfd+_0xff3d5(0x1d6),_0xff3d5(0x184),{'positiveCount':_0x24f9a1[_0xff3d5(0x1e9)],'totalCount':_0x24f9a1[_0xff3d5(0x20f)],'dataId':_0x11ab6f});return{'execute':async()=>{const _0x275afb=_0xff3d5;await _0x3ec49d[_0x275afb(0x17e)];},'abortController':_0x3ec49d[_0xff3d5(0x1c1)]};}[_0xd681c3(0x199)](_0x3dab0c,_0x112ffb,_0x1f04bc){const _0x451114=_0xd681c3,_0x112c06=this[_0x451114(0x1af)](_0x451114(0x19a)+_0x3dab0c+_0x451114(0x1d6),_0x451114(0x184),{'positiveCount':_0x112ffb[_0x451114(0x1e9)],'totalCount':_0x112ffb[_0x451114(0x20f)],'dataId':_0x1f04bc});return{'execute':async()=>{const _0xa6a409=_0x451114;await _0x112c06[_0xa6a409(0x17e)];},'abortController':_0x112c06[_0x451114(0x1c1)]};}[_0xd681c3(0x1af)](_0x43fa3b,_0x1e882b,_0x5438fb){const _0x4cc704=_0xd681c3,_0x55edd5=new AbortController(),_0x19fb1f=_0x5438fb instanceof FormData,_0x14141c={'Authorization':_0x4cc704(0x1c8)+this[_0x4cc704(0x1f9)]?.[_0x4cc704(0x1f1)]};_0x5438fb&&!_0x19fb1f&&(_0x14141c[_0x4cc704(0x1b3)]=_0x4cc704(0x1bf));const _0x17eac2={'method':_0x1e882b,'headers':_0x14141c,'signal':_0x55edd5[_0x4cc704(0x1ab)]};return _0x5438fb&&(_0x17eac2[_0x4cc704(0x1c5)]=_0x19fb1f?_0x5438fb:JSON[_0x4cc704(0x1a6)](_0x5438fb)),{'request':fetch(''+this[_0x4cc704(0x1e1)]+_0x43fa3b,_0x17eac2)[_0x4cc704(0x1f6)](_0x2adbbe=>{const _0x22d920=_0x4cc704;this[_0x22d920(0x1db)](_0x2adbbe);})[_0x4cc704(0x1fb)](_0x2e0806=>_0x2e0806['ok']?_0x2e0806:_0x2e0806[_0x4cc704(0x207)]()[_0x4cc704(0x1fb)](_0x1bd44a=>{const _0x54336f=_0x4cc704;throw{'url':this[_0x54336f(0x1e1)],'path':_0x43fa3b,'method':_0x1e882b,'body':_0x5438fb,'status':(_0x2e0806||{})[_0x54336f(0x1b0)],'statusText':(_0x2e0806||{})[_0x54336f(0x1ba)],'code':_0x1bd44a[_0x54336f(0x202)],'message':_0x1bd44a[_0x54336f(0x1ec)],'traceId':_0x1bd44a[_0x54336f(0x1da)]};})),'abortController':_0x55edd5};}async*[_0xd681c3(0x1ca)](_0x18cd70){const _0x116997=_0xd681c3,_0x4eced1=[],_0x47fc5b=_0x18cd70[_0x116997(0x1b4)](),_0x19dab4=_0x4de6fe({'onError':_0x1d4a29=>{const _0x19816e=_0x116997;this[_0x19816e(0x1db)](_0x1d4a29);},'onEvent':_0x32113e=>{const _0x326d80=_0x116997;_0x32113e[_0x326d80(0x200)]=JSON[_0x326d80(0x177)](_0x32113e[_0x326d80(0x200)]),_0x4eced1[_0x326d80(0x20b)](_0x32113e);}});try{let _0x301408=!0x1;for(;!_0x301408;){const {done:_0x462233,value:_0x2de7e8}=await _0x47fc5b[_0x116997(0x191)]();_0x462233&&(_0x301408=!0x0),_0x19dab4[_0x116997(0x1c0)](this[_0x116997(0x1b2)][_0x116997(0x1cf)](_0x2de7e8,{'stream':!0x0})),yield*_0x4eced1,_0x4eced1[_0x116997(0x20e)]=0x0;}}catch(_0x50e3e4){this[_0x116997(0x1db)](_0x50e3e4);}finally{_0x47fc5b[_0x116997(0x1e0)](),_0x19dab4[_0x116997(0x1cd)]();}}[_0xd681c3(0x1db)](_0x321fc4){const _0x4af087=_0xd681c3;if(_0x321fc4 instanceof _0x3cbcb0)throw _0x321fc4;if(_0x321fc4 instanceof Error&&_0x4af087(0x1c3)===_0x321fc4[_0x4af087(0x1ef)])throw new _0x3cbcb0(_0x4af087(0x1f4),this,{'originalError':_0x321fc4});throw new _0x3cbcb0(_0x4af087(0x1f8),this,{'originalError':_0x321fc4});}}
|
|
23
|
+
const _0x3690ca=_0x2ef6;(function(_0x171afb,_0x425167){const _0x4dfc97=_0x2ef6,_0x5e9823=_0x171afb();while(!![]){try{const _0x516143=-parseInt(_0x4dfc97(0x224))/0x1+-parseInt(_0x4dfc97(0x1be))/0x2*(parseInt(_0x4dfc97(0x1b3))/0x3)+parseInt(_0x4dfc97(0x1b2))/0x4+-parseInt(_0x4dfc97(0x210))/0x5+parseInt(_0x4dfc97(0x20a))/0x6*(parseInt(_0x4dfc97(0x1c4))/0x7)+parseInt(_0x4dfc97(0x1ef))/0x8+-parseInt(_0x4dfc97(0x1e0))/0x9;if(_0x516143===_0x425167)break;else _0x5e9823['push'](_0x5e9823['shift']());}catch(_0x308b4){_0x5e9823['push'](_0x5e9823['shift']());}}}(_0x37f0,0xc36d5));import{createParser as _0x3afcd4}from'eventsource-parser';import{ContextPlugin as _0x277e5b}from'ckeditor5/src/core.js';import{CKEditorError as _0x398b5e}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x1f6d77){const _0x102c07=_0x2ef6;_0x1f6d77[_0x102c07(0x1b1)]=_0x102c07(0x1f1),_0x1f6d77[_0x102c07(0x216)]=_0x102c07(0x237),_0x1f6d77[_0x102c07(0x208)]=_0x102c07(0x220),_0x1f6d77[_0x102c07(0x211)]=_0x102c07(0x1d7),_0x1f6d77[_0x102c07(0x228)]=_0x102c07(0x1b8),_0x1f6d77[_0x102c07(0x207)]=_0x102c07(0x1d8),_0x1f6d77[_0x102c07(0x1b5)]=_0x102c07(0x1ec),_0x1f6d77[_0x102c07(0x1db)]=_0x102c07(0x1c8);}(AIActionsNames||(AIActionsNames={}));function _0x37f0(){const _0x4a4168=['upsertCustomAIReviewRating','feed','/documents','language','application/json','ai-request-aborted','value','uploadUrl','reset','totalCount','/reviews/system/','make-tone-formal','deleteFile','/files/','2396376jkVLWy','deleteConversation','continue','init','executeCustomAction','parse','executeAction','length','pluginName','/actions/custom/calls/','isPremiumPlugin','_apiUrl','_getStreamReader','deleteWebResource','isOfficialPlugin','upsertAIReviewRating','/reviews/custom/calls/','requires','_decoder','/reviews/custom/calls','uploadFile','append','AIConnector','Content-Type','MAKE_TONE_CASUAL','IMPROVE_WRITING','excludeEmpty','174hLLkXb','/files','fetchConversations','false','catch','getModels','1843045DdmMhR','MAKE_LONGER','true','upsertCustomAIActionRating','read','status','FIX_GRAMMAR','message','/documents/','/actions/system/','plugins','/web-resources/','uploadDocument','createdAt','define','_sendApiRequest','improve-writing','sortBy','/conversations/','GET','122266EBQqte','ai-missing-token','body','group','MAKE_SHORTER','statusText','_handleError','data','/models/1?','file','token','100','Bearer\x20','fetchDocument','request','positiveCount','AbortError','text','PUT','fix-grammar','code','queryAssistant','traceId','push','config','deleteDocument','/messages/','/calls/','releaseLock','PATCH','abortController','POST','name','CONTINUE','4761816EVErqb','89643BjPWCY','modificationId','MAKE_TONE_FORMAL','/messages','/actions/custom/calls','make-shorter','limit','DELETE','/calls','callCustomReview','ai.serviceUrl','50siytLW','attributes','startConversation','/conversations','signal','desc','251083GrtfBD','_token','CloudServices','getReader','translate','upsertAIChatRating','toString','json','order','https://ai.cke-cs.com/v1','stringify','decode','items','/web-resources','ai-request-failed','updateConversation','then','fetchConversation','context','make-longer','make-tone-casual','get','callSystemReview','TRANSLATE','upsertAIActionRating','/ratings','/conversations?','fetchConversationMessages','4426497DghtUy'];_0x37f0=function(){return _0x4a4168;};return _0x37f0();}function _0x2ef6(_0x3dd371,_0x34dda7){const _0x37f05f=_0x37f0();return _0x2ef6=function(_0x2ef6a6,_0x5e3684){_0x2ef6a6=_0x2ef6a6-0x1a5;let _0x5407b8=_0x37f05f[_0x2ef6a6];return _0x5407b8;},_0x2ef6(_0x3dd371,_0x34dda7);}export class AIConnector extends _0x277e5b{[_0x3690ca(0x1fa)];[_0x3690ca(0x1c5)];[_0x3690ca(0x201)];static get[_0x3690ca(0x200)](){const _0x41302d=_0x3690ca;return[_0x41302d(0x1c6)];}static get[_0x3690ca(0x1f7)](){const _0x2febc2=_0x3690ca;return _0x2febc2(0x205);}static get[_0x3690ca(0x1fd)](){return!0x0;}static get[_0x3690ca(0x1f9)](){return!0x0;}constructor(_0x5e6c4d){const _0x3ed263=_0x3690ca;super(_0x5e6c4d),this[_0x3ed263(0x1d6)][_0x3ed263(0x1a8)][_0x3ed263(0x21e)](_0x3ed263(0x1bd),_0x3ed263(0x1cd)),this[_0x3ed263(0x1fa)]=this[_0x3ed263(0x1d6)][_0x3ed263(0x1a8)][_0x3ed263(0x1d9)](_0x3ed263(0x1bd)),this[_0x3ed263(0x1c5)]=null,this[_0x3ed263(0x201)]=new TextDecoder();}[_0x3690ca(0x1f2)](){const _0xd44e63=_0x3690ca,_0x226d79=this[_0xd44e63(0x1d6)][_0xd44e63(0x21a)][_0xd44e63(0x1d9)](_0xd44e63(0x1c6));if(!_0x226d79[_0xd44e63(0x22e)])throw new _0x398b5e(_0xd44e63(0x225),this);this[_0xd44e63(0x1c5)]=_0x226d79[_0xd44e63(0x22e)];}[_0x3690ca(0x1c0)](_0x45e792,_0xd8b03d){const _0x13dbbf=_0x3690ca,_0x52a254=this[_0x13dbbf(0x21f)](_0x13dbbf(0x1c1),_0x13dbbf(0x1af),{'id':_0x45e792,'group':_0xd8b03d});return{'getConversation':async()=>(await _0x52a254[_0x13dbbf(0x232)])[_0x13dbbf(0x1cb)](),'abortController':_0x52a254[_0x13dbbf(0x1ae)]};}[_0x3690ca(0x1a5)]({message:_0x1664cf,conversationId:_0xd29f38,parts:_0x307c62,capabilities:_0x2ee36b,model:_0x39bfa3,attributes:_0x10f628}){const _0x307dd0=_0x3690ca,_0x2246dc={'prompt':_0x1664cf,'content':_0x307c62,'model':_0x39bfa3,..._0x2ee36b&&{'capabilities':_0x2ee36b},..._0x10f628&&{'attributes':_0x10f628}},_0x3b573a=this[_0x307dd0(0x21f)](_0x307dd0(0x222)+_0xd29f38+_0x307dd0(0x1b6),_0x307dd0(0x1af),_0x2246dc);return{'getStream':async()=>{const _0x13e18f=_0x307dd0,_0x4f5bd1=(await _0x3b573a[_0x13e18f(0x232)])[_0x13e18f(0x226)];return this[_0x13e18f(0x1fb)](_0x4f5bd1);},'abortController':_0x3b573a[_0x307dd0(0x1ae)]};}[_0x3690ca(0x1f3)]({content:_0x182cc9,message:_0x424384,model:_0x1d6613,outputFormat:_0x2ce5f9}){const _0x537bdf=_0x3690ca,_0x3c5bd1={'content':[{'type':_0x537bdf(0x235),'content':_0x182cc9}],'prompt':_0x424384,'model':_0x1d6613,'outputFormat':_0x2ce5f9},_0x4e87a2=this[_0x537bdf(0x21f)](_0x537bdf(0x1b7),_0x537bdf(0x1af),_0x3c5bd1);return{'getStream':async()=>{const _0x11c787=_0x537bdf,_0x440392=(await _0x4e87a2[_0x11c787(0x232)])[_0x11c787(0x226)];return this[_0x11c787(0x1fb)](_0x440392);},'abortController':_0x4e87a2[_0x537bdf(0x1ae)]};}[_0x3690ca(0x1f5)]({actionName:_0x4a099b,content:_0x62bbda,args:_0x260e98}){const _0xc02c0a=_0x3690ca,_0x2c36f3={'content':[{'type':_0xc02c0a(0x235),'content':_0x62bbda}],'args':_0x260e98},_0x405e53=this[_0xc02c0a(0x21f)](_0xc02c0a(0x219)+_0x4a099b+_0xc02c0a(0x1bb),_0xc02c0a(0x1af),_0x2c36f3);return{'getStream':async()=>{const _0x230ecd=_0xc02c0a,_0x15e3af=(await _0x405e53[_0x230ecd(0x232)])[_0x230ecd(0x226)];return this[_0x230ecd(0x1fb)](_0x15e3af);},'abortController':_0x405e53[_0xc02c0a(0x1ae)]};}[_0x3690ca(0x203)](_0x3e20c9,_0x460795,_0x2dd80f){const _0x6d1f6b=_0x3690ca,_0x24230f=new FormData();_0x24230f[_0x6d1f6b(0x204)](_0x6d1f6b(0x22d),_0x460795,_0x460795[_0x6d1f6b(0x1b0)]),_0x2dd80f&&_0x24230f[_0x6d1f6b(0x204)](_0x6d1f6b(0x1bf),JSON[_0x6d1f6b(0x1ce)](_0x2dd80f));const _0x430c26=this[_0x6d1f6b(0x21f)](_0x6d1f6b(0x222)+_0x3e20c9+_0x6d1f6b(0x20b),_0x6d1f6b(0x1af),_0x24230f);return{'getId':async()=>(await _0x430c26[_0x6d1f6b(0x232)])[_0x6d1f6b(0x1cb)](),'abortController':_0x430c26[_0x6d1f6b(0x1ae)]};}[_0x3690ca(0x231)](_0x28e23f,_0x6f2110){const _0x2ab36d=_0x3690ca,_0xd05ca1=this[_0x2ab36d(0x21f)](_0x2ab36d(0x222)+_0x28e23f+_0x2ab36d(0x218)+_0x6f2110,_0x2ab36d(0x223));return{'getDocument':async()=>(await _0xd05ca1[_0x2ab36d(0x232)])[_0x2ab36d(0x1cb)](),'abortController':_0xd05ca1[_0x2ab36d(0x1ae)]};}[_0x3690ca(0x21c)](_0x116316,_0x19573e,_0x1a7b96){const _0x513333=_0x3690ca,_0x3d5b56={'content':_0x19573e};_0x1a7b96&&(_0x3d5b56[_0x513333(0x1bf)]=_0x1a7b96);const _0x21b47c=this[_0x513333(0x21f)](_0x513333(0x222)+_0x116316+_0x513333(0x1e3),_0x513333(0x1af),_0x3d5b56);return{'getId':async()=>(await _0x21b47c[_0x513333(0x232)])[_0x513333(0x1cb)](),'abortController':_0x21b47c[_0x513333(0x1ae)]};}[_0x3690ca(0x20c)](_0x249e7d,_0x30d2ba={}){const _0x4290d4=_0x3690ca,_0x5551a9=new URLSearchParams();_0x5551a9[_0x4290d4(0x204)](_0x4290d4(0x227),_0x249e7d),_0x5551a9[_0x4290d4(0x204)](_0x4290d4(0x209),!0x1!==_0x30d2ba[_0x4290d4(0x209)]?_0x4290d4(0x212):_0x4290d4(0x20d)),_0x5551a9[_0x4290d4(0x204)](_0x4290d4(0x1b9),_0x30d2ba[_0x4290d4(0x1b9)]?_0x30d2ba[_0x4290d4(0x1b9)][_0x4290d4(0x1ca)]():_0x4290d4(0x22f)),_0x5551a9[_0x4290d4(0x204)](_0x4290d4(0x221),_0x30d2ba[_0x4290d4(0x221)]?_0x30d2ba[_0x4290d4(0x221)]:_0x4290d4(0x21d)),_0x5551a9[_0x4290d4(0x204)](_0x4290d4(0x1cc),_0x30d2ba[_0x4290d4(0x1cc)]?_0x30d2ba[_0x4290d4(0x1cc)]:_0x4290d4(0x1c3));const _0x154321=this[_0x4290d4(0x21f)](_0x4290d4(0x1de)+_0x5551a9[_0x4290d4(0x1ca)](),_0x4290d4(0x223));return{'getConversations':async()=>{const _0x21ae26=_0x4290d4,_0x4c3819=await _0x154321[_0x21ae26(0x232)];return(await _0x4c3819[_0x21ae26(0x1cb)]())[_0x21ae26(0x1d0)];},'abortController':_0x154321[_0x4290d4(0x1ae)]};}[_0x3690ca(0x1f0)](_0xc89d22){const _0x128a3d=_0x3690ca,_0x580067=this[_0x128a3d(0x21f)](_0x128a3d(0x222)+_0xc89d22,_0x128a3d(0x1ba));return{'execute':async()=>{const _0x694d73=_0x128a3d;await _0x580067[_0x694d73(0x232)];},'abortController':_0x580067[_0x128a3d(0x1ae)]};}[_0x3690ca(0x1d3)](_0x15e72f,_0x1bfd44){const _0xb7270e=_0x3690ca,_0x5242d=this[_0xb7270e(0x21f)](_0xb7270e(0x222)+_0x15e72f,_0xb7270e(0x1ad),_0x1bfd44);return{'getResult':async()=>(await _0x5242d[_0xb7270e(0x232)],_0x1bfd44),'abortController':_0x5242d[_0xb7270e(0x1ae)]};}[_0x3690ca(0x1d5)](_0x5ae9f5){const _0x549ce0=_0x3690ca,_0x5b21c1=this[_0x549ce0(0x21f)](_0x549ce0(0x222)+_0x5ae9f5,_0x549ce0(0x223));return{'getConversation':async()=>(await _0x5b21c1[_0x549ce0(0x232)])[_0x549ce0(0x1cb)](),'abortController':_0x5b21c1[_0x549ce0(0x1ae)]};}[_0x3690ca(0x1df)](_0x200d94){const _0x3e3447=_0x3690ca,_0x520a59=this[_0x3e3447(0x21f)](_0x3e3447(0x222)+_0x200d94+_0x3e3447(0x1b6),_0x3e3447(0x223));return{'getMessages':async()=>{const _0x2f6d2d=_0x3e3447,_0x4e6f0b=await _0x520a59[_0x2f6d2d(0x232)];return(await _0x4e6f0b[_0x2f6d2d(0x1cb)]())[_0x2f6d2d(0x1d0)];},'abortController':_0x520a59[_0x3e3447(0x1ae)]};}[_0x3690ca(0x1e8)](_0x349bff,_0x60ec66,_0x464335){const _0x4d51ea=_0x3690ca,_0x13f61d=this[_0x4d51ea(0x21f)](_0x4d51ea(0x222)+_0x349bff+_0x4d51ea(0x1d1),_0x4d51ea(0x1af),{'url':_0x60ec66,'attributes':_0x464335});return{'getId':async()=>(await _0x13f61d[_0x4d51ea(0x232)])[_0x4d51ea(0x1cb)](),'abortController':_0x13f61d[_0x4d51ea(0x1ae)]};}[_0x3690ca(0x20f)](_0x2dd2df='en'){const _0x2f7b96=_0x3690ca,_0x1695e5=new URLSearchParams();_0x1695e5[_0x2f7b96(0x204)](_0x2f7b96(0x1e4),_0x2dd2df);const _0x2aa0e9=_0x2f7b96(0x22c)+_0x1695e5[_0x2f7b96(0x1ca)](),_0xee66eb=this[_0x2f7b96(0x21f)](_0x2aa0e9,_0x2f7b96(0x223));return{'list':async()=>await(await _0xee66eb[_0x2f7b96(0x232)])[_0x2f7b96(0x1cb)](),'abortController':_0xee66eb[_0x2f7b96(0x1ae)]};}[_0x3690ca(0x1ed)](_0x53cf3b,_0x49b450){const _0x50ecf6=_0x3690ca,_0x5d2e02=this[_0x50ecf6(0x21f)](_0x50ecf6(0x222)+_0x53cf3b+_0x50ecf6(0x1ee)+_0x49b450,_0x50ecf6(0x1ba));return{'execute':async()=>{const _0xdc4ad4=_0x50ecf6;await _0x5d2e02[_0xdc4ad4(0x232)];},'abortController':_0x5d2e02[_0x50ecf6(0x1ae)]};}[_0x3690ca(0x1a9)](_0x48baae,_0x54876f){const _0x4ddc7b=_0x3690ca,_0x539746=this[_0x4ddc7b(0x21f)](_0x4ddc7b(0x222)+_0x48baae+_0x4ddc7b(0x218)+_0x54876f,_0x4ddc7b(0x1ba));return{'execute':async()=>{const _0x17e6b5=_0x4ddc7b;await _0x539746[_0x17e6b5(0x232)];},'abortController':_0x539746[_0x4ddc7b(0x1ae)]};}[_0x3690ca(0x1fc)](_0x15b720,_0xa4b4bb){const _0x515e2c=_0x3690ca,_0x30d73b=this[_0x515e2c(0x21f)](_0x515e2c(0x222)+_0x15b720+_0x515e2c(0x21b)+_0xa4b4bb,_0x515e2c(0x1ba));return{'execute':async()=>{const _0x438c04=_0x515e2c;await _0x30d73b[_0x438c04(0x232)];},'abortController':_0x30d73b[_0x515e2c(0x1ae)]};}[_0x3690ca(0x1da)]({reviewName:_0x9bf083,content:_0xd98334,args:_0x392ef0}){const _0x5090e5=_0x3690ca,_0x357032=this[_0x5090e5(0x21f)](_0x5090e5(0x1eb)+_0x9bf083+_0x5090e5(0x1bb),_0x5090e5(0x1af),{'content':[{'type':_0x5090e5(0x235),'content':_0xd98334}],'args':_0x392ef0});return{'getStream':async()=>{const _0x2bba33=_0x5090e5,_0x301ade=(await _0x357032[_0x2bba33(0x232)])[_0x2bba33(0x226)];return this[_0x2bba33(0x1fb)](_0x301ade);},'abortController':_0x357032[_0x5090e5(0x1ae)]};}[_0x3690ca(0x1bc)]({content:_0x10cbc6,prompt:_0x575d75,model:_0x2f181b}){const _0x1f82eb=_0x3690ca,_0x275508=this[_0x1f82eb(0x21f)](_0x1f82eb(0x202),_0x1f82eb(0x1af),{'content':[{'type':_0x1f82eb(0x235),'content':_0x10cbc6}],'prompt':_0x575d75,'model':_0x2f181b});return{'getStream':async()=>{const _0x164e95=_0x1f82eb,_0x48054d=(await _0x275508[_0x164e95(0x232)])[_0x164e95(0x226)];return this[_0x164e95(0x1fb)](_0x48054d);},'abortController':_0x275508[_0x1f82eb(0x1ae)]};}[_0x3690ca(0x1c9)](_0x4cf132,_0x362dc0,_0x41e4ab){const _0x3c5174=_0x3690ca,_0x4ed4b9=this[_0x3c5174(0x21f)](_0x3c5174(0x222)+_0x4cf132+_0x3c5174(0x1aa)+_0x362dc0+_0x3c5174(0x1dd),_0x3c5174(0x236),{'positiveCount':_0x41e4ab[_0x3c5174(0x233)],'totalCount':_0x41e4ab[_0x3c5174(0x1ea)],'modificationId':_0x41e4ab[_0x3c5174(0x1b4)]});return{'execute':async()=>{const _0x1f70e8=_0x3c5174;await _0x4ed4b9[_0x1f70e8(0x232)];},'abortController':_0x4ed4b9[_0x3c5174(0x1ae)]};}[_0x3690ca(0x1dc)](_0x4bad53,_0x6be623,_0x4b0e7b){const _0x5dbefd=_0x3690ca,_0x165421=this[_0x5dbefd(0x21f)](_0x5dbefd(0x219)+_0x4bad53+_0x5dbefd(0x1ab)+_0x6be623+_0x5dbefd(0x1dd),_0x5dbefd(0x236),{'positiveCount':_0x4b0e7b[_0x5dbefd(0x233)],'totalCount':_0x4b0e7b[_0x5dbefd(0x1ea)]});return{'execute':async()=>{const _0xb02cbc=_0x5dbefd;await _0x165421[_0xb02cbc(0x232)];},'abortController':_0x165421[_0x5dbefd(0x1ae)]};}[_0x3690ca(0x213)](_0x2cab31,_0x4e0a33){const _0x580faa=_0x3690ca,_0x23aa0b=this[_0x580faa(0x21f)](_0x580faa(0x1f8)+_0x2cab31+_0x580faa(0x1dd),_0x580faa(0x236),{'positiveCount':_0x4e0a33[_0x580faa(0x233)],'totalCount':_0x4e0a33[_0x580faa(0x1ea)]});return{'execute':async()=>{const _0xba6ab5=_0x580faa;await _0x23aa0b[_0xba6ab5(0x232)];},'abortController':_0x23aa0b[_0x580faa(0x1ae)]};}[_0x3690ca(0x1fe)](_0x1164dc,_0x1eb38b,_0x31e076,_0xd01dab){const _0x1dd3cd=_0x3690ca,_0x12f8b8=this[_0x1dd3cd(0x21f)](_0x1dd3cd(0x1eb)+_0x1164dc+_0x1dd3cd(0x1ab)+_0x1eb38b+_0x1dd3cd(0x1dd),_0x1dd3cd(0x236),{'positiveCount':_0x31e076[_0x1dd3cd(0x233)],'totalCount':_0x31e076[_0x1dd3cd(0x1ea)],'dataId':_0xd01dab});return{'execute':async()=>{const _0x552553=_0x1dd3cd;await _0x12f8b8[_0x552553(0x232)];},'abortController':_0x12f8b8[_0x1dd3cd(0x1ae)]};}[_0x3690ca(0x1e1)](_0x4107de,_0x534a9b,_0x3e13a9){const _0x272a8a=_0x3690ca,_0x4ba34c=this[_0x272a8a(0x21f)](_0x272a8a(0x1ff)+_0x4107de+_0x272a8a(0x1dd),_0x272a8a(0x236),{'positiveCount':_0x534a9b[_0x272a8a(0x233)],'totalCount':_0x534a9b[_0x272a8a(0x1ea)],'dataId':_0x3e13a9});return{'execute':async()=>{const _0x57fc33=_0x272a8a;await _0x4ba34c[_0x57fc33(0x232)];},'abortController':_0x4ba34c[_0x272a8a(0x1ae)]};}[_0x3690ca(0x21f)](_0x82159e,_0x5862a4,_0xc08195){const _0x3c615d=_0x3690ca,_0x38b4a8=new AbortController(),_0x20891a=_0xc08195 instanceof FormData,_0x3c294a={'Authorization':_0x3c615d(0x230)+this[_0x3c615d(0x1c5)]?.[_0x3c615d(0x1e7)]};_0xc08195&&!_0x20891a&&(_0x3c294a[_0x3c615d(0x206)]=_0x3c615d(0x1e5));const _0x3e3b55={'method':_0x5862a4,'headers':_0x3c294a,'signal':_0x38b4a8[_0x3c615d(0x1c2)]};return _0xc08195&&(_0x3e3b55[_0x3c615d(0x226)]=_0x20891a?_0xc08195:JSON[_0x3c615d(0x1ce)](_0xc08195)),{'request':fetch(''+this[_0x3c615d(0x1fa)]+_0x82159e,_0x3e3b55)[_0x3c615d(0x20e)](_0x14d212=>{const _0x22ba9f=_0x3c615d;this[_0x22ba9f(0x22a)](_0x14d212);})[_0x3c615d(0x1d4)](_0x2a5e48=>_0x2a5e48['ok']?_0x2a5e48:_0x2a5e48[_0x3c615d(0x1cb)]()[_0x3c615d(0x1d4)](_0x42d384=>{const _0x1a45cc=_0x3c615d;throw{'url':this[_0x1a45cc(0x1fa)],'path':_0x82159e,'method':_0x5862a4,'body':_0xc08195,'status':(_0x2a5e48||{})[_0x1a45cc(0x215)],'statusText':(_0x2a5e48||{})[_0x1a45cc(0x229)],'code':_0x42d384[_0x1a45cc(0x238)],'message':_0x42d384[_0x1a45cc(0x217)],'traceId':_0x42d384[_0x1a45cc(0x1a6)]};})),'abortController':_0x38b4a8};}async*[_0x3690ca(0x1fb)](_0x1790c8){const _0x328885=_0x3690ca,_0x176055=[],_0x413389=_0x1790c8[_0x328885(0x1c7)](),_0x46f9c8=_0x3afcd4({'onError':_0x5d2a8c=>{const _0x23e081=_0x328885;this[_0x23e081(0x22a)](_0x5d2a8c);},'onEvent':_0x5306f5=>{const _0xa9c2fb=_0x328885;_0x5306f5[_0xa9c2fb(0x22b)]=JSON[_0xa9c2fb(0x1f4)](_0x5306f5[_0xa9c2fb(0x22b)]),_0x176055[_0xa9c2fb(0x1a7)](_0x5306f5);}});try{let _0x1d385d=!0x1;for(;!_0x1d385d;){const {done:_0x1485d0,value:_0x1fe7e2}=await _0x413389[_0x328885(0x214)]();_0x1485d0&&(_0x1d385d=!0x0),_0x46f9c8[_0x328885(0x1e2)](this[_0x328885(0x201)][_0x328885(0x1cf)](_0x1fe7e2,{'stream':!0x0})),yield*_0x176055,_0x176055[_0x328885(0x1f6)]=0x0;}}catch(_0xff05bc){this[_0x328885(0x22a)](_0xff05bc);}finally{_0x413389[_0x328885(0x1ac)](),_0x46f9c8[_0x328885(0x1e9)]();}}[_0x3690ca(0x22a)](_0x39c8c9){const _0x5a6013=_0x3690ca;if(_0x39c8c9 instanceof _0x398b5e)throw _0x39c8c9;if(_0x39c8c9 instanceof Error&&_0x5a6013(0x234)===_0x39c8c9[_0x5a6013(0x1b0)])throw new _0x398b5e(_0x5a6013(0x1e6),this,{'originalError':_0x39c8c9});throw new _0x398b5e(_0x5a6013(0x1d2),this,{'originalError':_0x39c8c9});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x139837=_0x1c08;(function(_0x116235,_0x38b643){const _0xf4d3aa=_0x1c08,_0x97aac5=_0x116235();while(!![]){try{const _0x2d5672=-parseInt(_0xf4d3aa(0x1aa))/0x1*(parseInt(_0xf4d3aa(0x19d))/0x2)+parseInt(_0xf4d3aa(0x1a2))/0x3+parseInt(_0xf4d3aa(0x191))/0x4*(-parseInt(_0xf4d3aa(0x1bb))/0x5)+parseInt(_0xf4d3aa(0x163))/0x6*(-parseInt(_0xf4d3aa(0x172))/0x7)+parseInt(_0xf4d3aa(0x174))/0x8+-parseInt(_0xf4d3aa(0x193))/0x9+parseInt(_0xf4d3aa(0x14d))/0xa*(parseInt(_0xf4d3aa(0x1b2))/0xb);if(_0x2d5672===_0x38b643)break;else _0x97aac5['push'](_0x97aac5['shift']());}catch(_0xd34755){_0x97aac5['push'](_0x97aac5['shift']());}}}(_0x546d,0x7967a));import{ViewDowncastWriter as _0x361f4e}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x4fa588,Editor as _0x47ee1a}from'ckeditor5/src/core.js';import{uid as _0x363d4e}from'ckeditor5/src/utils.js';import{getTranslation as _0x235986}from'./utils/common-translations.js';import{getEditorFromContext as _0x994390}from'./utils/geteditorfromcontext.js';function _0x1c08(_0x34ebb6,_0x1c76c8){const _0x546d19=_0x546d();return _0x1c08=function(_0x1c080d,_0x18f9bc){_0x1c080d=_0x1c080d-0x148;let _0x55383b=_0x546d19[_0x1c080d];return _0x55383b;},_0x1c08(_0x34ebb6,_0x1c76c8);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x139837(0x15c);function _0x546d(){const _0x3b2991=[':start>','emptyElement','_displayedFakeSelectionLocked','define','getDocumentData','createUIElement','getSelectionText','htmlWriter','createRange','removeAllRanges',':end></','random','ai-selection','_setOutputDataProcessor','locale','_setDataIdsOnChildren','getMarkersGroup','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','conversion','3344658eUPzfr','markerToHighlight','isPremiumPlugin',':end>','ai-selection:','getItems','hideFakeVisualSelection','plugins','markerToElement','removeMarker','toView','addMarker','indexOf','floor','pluginName','7vvYCYS','substring','492976hCdFQT','element','dataDowncast','start','ai.models.showModelSelector','for','getChildren','version','trim','ck-ai-assistant-ui_theme','has','selection','editingDowncast','name','data-id','convertAiChatSelectionMarker','getSelection',':start></','getRanges','editors','_getMarkersInDocumentOrder','model','get','_integrateEditor','editing','sessionId','_nextDataId','markerName','fromCharCode','302572WTZEfl','isAfter','3063987sbVkcv','context','isBefore','view','markers','getRoot','AIEditing','afterInit','join','processor','2WsGTNu','getStart','getHtml','length','isAtEnd','2508423QNJwuT','document','config','end','getLastMatchingPosition','isOpening','containerElement','isContent','949731zvXwYz','ready','change','_displayedFakeSelectionId','setAttribute','_getDocumentDataStringFromView','_outputDataProcessor','toData','11vUGNnC','$textProxy','isOfficialPlugin','sort','viewToDom','push','from','ck-fake-ai-selection','schema','25wWNPrP','_sessionId','modelToDataWithIds','data','RealTimeCollaborationClient','listenTo','showFakeVisualSelection','18253430ihSbsq','add','domConverter'];_0x546d=function(){return _0x3b2991;};return _0x546d();}export class AIEditing extends _0x4fa588{constructor(_0x54bd22){const _0x129aa7=_0x139837;super(_0x54bd22),this[_0x129aa7(0x194)][_0x129aa7(0x1a4)][_0x129aa7(0x153)](_0x129aa7(0x178),!0x0);}[_0x139837(0x1b0)];[_0x139837(0x1ad)]=null;[_0x139837(0x152)]=!0x1;[_0x139837(0x1bc)];static get[_0x139837(0x171)](){const _0x180b53=_0x139837;return _0x180b53(0x199);}static get[_0x139837(0x1b4)](){return!0x0;}static get[_0x139837(0x165)](){return!0x0;}get[_0x139837(0x18d)](){const _0x317191=_0x139837;if(!this[_0x317191(0x1bc)]){const _0x401a99=_0x994390(this[_0x317191(0x194)]),_0x102d36=_0x401a99[_0x317191(0x16a)][_0x317191(0x17e)](_0x317191(0x14a))&&_0x401a99[_0x317191(0x16a)][_0x317191(0x18a)](_0x317191(0x14a))[_0x317191(0x18d)];this[_0x317191(0x1bc)]=_0x102d36||_0x363d4e();}return this[_0x317191(0x1bc)];}async[_0x139837(0x154)](){const _0x31e862=_0x139837,_0x10cb2e=_0x994390(this[_0x31e862(0x194)]),_0x3c9c1a=_0x10cb2e[_0x31e862(0x189)],_0x348525=_0x10cb2e[_0x31e862(0x149)][_0x31e862(0x16d)](_0x3c9c1a[_0x31e862(0x1a3)][_0x31e862(0x198)](),{'convertAiChatSelectionMarker':!0x0}),_0x89fcd3=new _0x361f4e(_0x10cb2e[_0x31e862(0x18c)][_0x31e862(0x196)][_0x31e862(0x1a3)]);this[_0x31e862(0x15f)](_0x348525,_0x89fcd3);let _0x30971f=await this[_0x31e862(0x1af)](_0x348525);const _0x156046=this[_0x31e862(0x188)](),_0x11e0ec=[];for(const _0x44c5ff of _0x156046){const _0x3c50d7='<'+_0x44c5ff[_0x31e862(0x181)]+_0x31e862(0x185)+_0x44c5ff[_0x31e862(0x181)]+_0x31e862(0x150),_0x1476ef=_0x30971f[_0x31e862(0x16f)](_0x3c50d7);_0x30971f=_0x30971f[_0x31e862(0x173)](0x0,_0x1476ef)+_0x30971f[_0x31e862(0x173)](_0x1476ef+_0x3c50d7[_0x31e862(0x1a0)]);const _0x429eef='<'+_0x44c5ff[_0x31e862(0x181)]+_0x31e862(0x15a)+_0x44c5ff[_0x31e862(0x181)]+_0x31e862(0x166),_0x115dfe=_0x30971f[_0x31e862(0x16f)](_0x429eef);_0x30971f=_0x30971f[_0x31e862(0x173)](0x0,_0x115dfe)+_0x30971f[_0x31e862(0x173)](_0x115dfe+_0x429eef[_0x31e862(0x1a0)]),_0x11e0ec[_0x31e862(0x1b7)]({'markerName':_0x44c5ff[_0x31e862(0x181)],'start':_0x1476ef,'end':_0x115dfe,'htmlFragment':_0x30971f[_0x31e862(0x173)](_0x1476ef,_0x115dfe)});}return{'content':_0x30971f,'version':_0x10cb2e[_0x31e862(0x189)][_0x31e862(0x1a3)][_0x31e862(0x17b)],'sessionId':this[_0x31e862(0x18d)],'selections':_0x11e0ec};}async[_0x139837(0x19a)](){const _0x1f07a7=_0x139837;this[_0x1f07a7(0x194)]instanceof _0x47ee1a?this[_0x1f07a7(0x18b)](this[_0x1f07a7(0x194)]):this[_0x1f07a7(0x14b)](this[_0x1f07a7(0x194)][_0x1f07a7(0x187)],_0x1f07a7(0x14e),(_0x18be0f,_0x577237)=>{const _0x3f5d74=_0x1f07a7;_0x577237['on'](_0x3f5d74(0x1ab),()=>{const _0x1053ae=_0x3f5d74;this[_0x1053ae(0x18b)](_0x577237);});});}[_0x139837(0x15d)](_0x3c0041){const _0x4eee29=_0x139837;this[_0x4eee29(0x1b0)]=_0x3c0041;}async[_0x139837(0x1af)](_0x2307a9){const _0x966ae6=_0x139837;let _0x3e89a0;const _0x49dc10=_0x994390(this[_0x966ae6(0x194)]);if(this[_0x966ae6(0x1b0)]){const _0x36cad0=_0x49dc10[_0x966ae6(0x149)][_0x966ae6(0x19c)][_0x966ae6(0x14f)][_0x966ae6(0x1b6)](_0x2307a9),_0x4cfe50=await this[_0x966ae6(0x1b0)](_0x36cad0);_0x3e89a0=_0x49dc10[_0x966ae6(0x149)][_0x966ae6(0x19c)][_0x966ae6(0x157)][_0x966ae6(0x19f)](_0x4cfe50);}else _0x3e89a0=_0x49dc10[_0x966ae6(0x149)][_0x966ae6(0x19c)][_0x966ae6(0x1b1)](_0x2307a9);return _0x3e89a0;}[_0x139837(0x18b)](_0x3d8beb){const _0x2308c8=_0x139837;_0x3d8beb[_0x2308c8(0x162)][_0x2308c8(0x179)](_0x2308c8(0x180))[_0x2308c8(0x164)]({'model':_0x2308c8(0x15c),'view':{'classes':[_0x2308c8(0x1b9),_0x2308c8(0x17d)],'priority':0xc}}),_0x3d8beb[_0x2308c8(0x162)][_0x2308c8(0x179)](_0x2308c8(0x176))[_0x2308c8(0x16b)]({'model':_0x2308c8(0x15c),'view':(_0x46edd2,{writer:_0x403e2d,options:_0x1ac786})=>_0x1ac786[_0x2308c8(0x183)]?_0x403e2d[_0x2308c8(0x155)](_0x46edd2[_0x2308c8(0x18f)]+':'+(_0x46edd2[_0x2308c8(0x1a7)]?_0x2308c8(0x177):_0x2308c8(0x1a5))):null});}[_0x139837(0x14c)](_0xbee05c,_0x3264df,_0x2a6175=!0x1,_0x1fa893=!0x1){const _0x34e0b7=_0x139837;if(this[_0x34e0b7(0x152)]&&!_0x1fa893)return!0x1;const _0x55d243=_0x994390(this[_0x34e0b7(0x194)])[_0x34e0b7(0x189)];return _0x55d243[_0x34e0b7(0x1ac)](_0x5ec5eb=>{const _0x35823c=_0x34e0b7;this[_0x35823c(0x1ad)]&&this[_0x35823c(0x169)](this[_0x35823c(0x1ad)]),this[_0x35823c(0x1ad)]=_0x3264df,this[_0x35823c(0x152)]=_0x2a6175;let _0x2de15f=0x0;for(let _0x6e74e5 of _0xbee05c){const _0xf2efd4=_0x35823c(0x167)+_0x2de15f;if(_0x6e74e5[_0x35823c(0x177)][_0x35823c(0x1a1)]){const _0x5c0e57=_0x6e74e5[_0x35823c(0x177)][_0x35823c(0x1a6)](({item:_0x314071})=>!_0x55d243[_0x35823c(0x1ba)][_0x35823c(0x1a9)](_0x314071),{'boundaries':_0x6e74e5});_0x6e74e5=_0x5ec5eb[_0x35823c(0x158)](_0x5c0e57,_0x6e74e5[_0x35823c(0x1a5)]);}_0x5ec5eb[_0x35823c(0x16e)](_0xf2efd4,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x6e74e5}),_0x2de15f++;}}),window[_0x34e0b7(0x184)]()?.[_0x34e0b7(0x159)](),!0x0;}[_0x139837(0x169)](_0x4093c8){const _0x4ffd05=_0x139837;if(this[_0x4ffd05(0x1ad)]!=_0x4093c8)return!0x1;this[_0x4ffd05(0x1ad)]=null,this[_0x4ffd05(0x152)]=!0x1;const _0x55350e=_0x994390(this[_0x4ffd05(0x194)]),_0x1e693b=_0x55350e[_0x4ffd05(0x189)][_0x4ffd05(0x197)][_0x4ffd05(0x160)](_0x4ffd05(0x15c));return _0x55350e[_0x4ffd05(0x189)][_0x4ffd05(0x1ac)](_0x98c6c6=>{const _0xc25753=_0x4ffd05;for(const _0x36012c of _0x1e693b)_0x98c6c6[_0xc25753(0x16c)](_0x36012c);}),!0x0;}async[_0x139837(0x148)](_0x3cee41){const _0x14403e=_0x139837,_0x2db814=_0x994390(this[_0x14403e(0x194)]),_0x257684=_0x2db814[_0x14403e(0x149)][_0x14403e(0x16d)](_0x3cee41),_0x1776ca=new _0x361f4e(_0x2db814[_0x14403e(0x18c)][_0x14403e(0x196)][_0x14403e(0x1a3)]);return this[_0x14403e(0x15f)](_0x257684,_0x1776ca),this[_0x14403e(0x1af)](_0x257684);}[_0x139837(0x15f)](_0x6aba61,_0x5e0e7c){const _0xe332cf=_0x139837;let _0x1aae74=!0x1;const _0x5e6abd=new Set();for(const _0x24c9f9 of _0x6aba61[_0xe332cf(0x17a)]()){const _0x1b166b=_0x24c9f9['is'](_0xe332cf(0x151))||_0x24c9f9['is'](_0xe332cf(0x1a8));if(!_0x24c9f9['is'](_0xe332cf(0x175)))continue;(this[_0xe332cf(0x15f)](_0x24c9f9,_0x5e0e7c)||_0x1b166b)&&(_0x5e0e7c[_0xe332cf(0x1ae)](_0xe332cf(0x182),this[_0xe332cf(0x18e)](_0x5e6abd),_0x24c9f9),_0x1aae74=!0x0);}return _0x1aae74;}[_0x139837(0x18e)](_0xdcbc5f){const _0x54ceaf=_0x139837;let _0x59a799;do{_0x59a799='';for(let _0x46e3d8=0x0;_0x46e3d8<0x4;_0x46e3d8++)_0x59a799+=String[_0x54ceaf(0x190)](0x61+Math[_0x54ceaf(0x170)](0x1a*Math[_0x54ceaf(0x15b)]()));}while(_0xdcbc5f[_0x54ceaf(0x17e)](_0x59a799));return _0xdcbc5f[_0x54ceaf(0x14e)](_0x59a799),_0x59a799;}[_0x139837(0x156)](){const _0x1963e5=_0x139837,{model:_0x566eb0}=_0x994390(this[_0x1963e5(0x194)]),_0xe3fb87=_0x566eb0[_0x1963e5(0x1a3)][_0x1963e5(0x17f)],_0x44f2fc=[];for(const _0x4e67cd of _0xe3fb87[_0x1963e5(0x186)]())for(const _0x4f393b of _0x4e67cd[_0x1963e5(0x168)]())_0x4f393b['is'](_0x1963e5(0x1b3))?_0x44f2fc[_0x1963e5(0x1b7)](_0x4f393b[_0x1963e5(0x149)]):_0x4f393b['is'](_0x1963e5(0x175))&&_0x44f2fc[_0x1963e5(0x1a0)]>0x0&&'\x20'!==_0x44f2fc[_0x44f2fc[_0x1963e5(0x1a0)]-0x1]&&_0x44f2fc[_0x1963e5(0x1b7)]('\x20');return _0x44f2fc[_0x1963e5(0x1a0)]?'\x22'+_0x44f2fc[_0x1963e5(0x19b)]('')[_0x1963e5(0x17c)]()+'\x22':_0x235986(this[_0x1963e5(0x194)][_0x1963e5(0x15e)],_0x1963e5(0x161));}[_0x139837(0x188)](){const _0x4d95dc=_0x139837,_0x19b372=_0x994390(this[_0x4d95dc(0x194)])[_0x4d95dc(0x189)];return Array[_0x4d95dc(0x1b8)](_0x19b372[_0x4d95dc(0x197)][_0x4d95dc(0x160)](_0x4d95dc(0x15c)))[_0x4d95dc(0x1b5)]((_0x23da8c,_0x41b1f6)=>_0x23da8c[_0x4d95dc(0x19e)]()[_0x4d95dc(0x195)](_0x41b1f6[_0x4d95dc(0x19e)]())?-0x1:_0x23da8c[_0x4d95dc(0x19e)]()[_0x4d95dc(0x192)](_0x41b1f6[_0x4d95dc(0x19e)]())?0x1:0x0);}}
|
|
23
|
+
const _0x1bca29=_0x2c1b;(function(_0xdff854,_0xe72964){const _0x2dc5dd=_0x2c1b,_0x2e5d4e=_0xdff854();while(!![]){try{const _0x58e98c=parseInt(_0x2dc5dd(0x1c9))/0x1+parseInt(_0x2dc5dd(0x171))/0x2*(-parseInt(_0x2dc5dd(0x1cb))/0x3)+parseInt(_0x2dc5dd(0x1b0))/0x4*(parseInt(_0x2dc5dd(0x162))/0x5)+parseInt(_0x2dc5dd(0x170))/0x6+-parseInt(_0x2dc5dd(0x1a5))/0x7*(parseInt(_0x2dc5dd(0x194))/0x8)+-parseInt(_0x2dc5dd(0x182))/0x9*(-parseInt(_0x2dc5dd(0x1b5))/0xa)+parseInt(_0x2dc5dd(0x17b))/0xb;if(_0x58e98c===_0xe72964)break;else _0x2e5d4e['push'](_0x2e5d4e['shift']());}catch(_0x1d956a){_0x2e5d4e['push'](_0x2e5d4e['shift']());}}}(_0x141d,0x1eebd));import{ViewDowncastWriter as _0xd731ec}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x24bd91,Editor as _0x10ee2c}from'ckeditor5/src/core.js';import{uid as _0xa67ed7}from'ckeditor5/src/utils.js';function _0x2c1b(_0x55a3f9,_0xb962d9){const _0x141d94=_0x141d();return _0x2c1b=function(_0x2c1b66,_0x3fe739){_0x2c1b66=_0x2c1b66-0x15f;let _0x1da973=_0x141d94[_0x2c1b66];return _0x1da973;},_0x2c1b(_0x55a3f9,_0xb962d9);}import{getTranslation as _0x41c742}from'./utils/common-translations.js';import{getEditorFromContext as _0x22a092}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x1bca29(0x172);export class AIEditing extends _0x24bd91{constructor(_0x110bb5){const _0x3e8eee=_0x1bca29;super(_0x110bb5),this[_0x3e8eee(0x165)][_0x3e8eee(0x164)][_0x3e8eee(0x198)](_0x3e8eee(0x1c0),!0x0);}[_0x1bca29(0x167)];[_0x1bca29(0x17e)]=null;[_0x1bca29(0x1be)]=!0x1;[_0x1bca29(0x199)];static get[_0x1bca29(0x1d2)](){const _0x4ea0ba=_0x1bca29;return _0x4ea0ba(0x1a0);}static get[_0x1bca29(0x17a)](){return!0x0;}static get[_0x1bca29(0x186)](){return!0x0;}get[_0x1bca29(0x1bc)](){const _0x43305d=_0x1bca29;if(!this[_0x43305d(0x199)]){const _0x240aac=_0x22a092(this[_0x43305d(0x165)]),_0x41bbf7=_0x240aac[_0x43305d(0x1a9)][_0x43305d(0x1a3)](_0x43305d(0x168))&&_0x240aac[_0x43305d(0x1a9)][_0x43305d(0x1c4)](_0x43305d(0x168))[_0x43305d(0x1bc)];this[_0x43305d(0x199)]=_0x41bbf7||_0xa67ed7();}return this[_0x43305d(0x199)];}async[_0x1bca29(0x1aa)](){const _0x54c742=_0x1bca29,_0x477472=_0x22a092(this[_0x54c742(0x165)]),_0xbfd6f9=_0x477472[_0x54c742(0x166)],_0x1f6e6c=_0x477472[_0x54c742(0x1a7)][_0x54c742(0x185)](_0xbfd6f9[_0x54c742(0x1c3)][_0x54c742(0x178)](),{'convertAiChatSelectionMarker':!0x0}),_0x2ded47=new _0xd731ec(_0x477472[_0x54c742(0x16c)][_0x54c742(0x1cc)][_0x54c742(0x1c3)]);this[_0x54c742(0x17c)](_0x1f6e6c,_0x2ded47);let _0x40fa0b=await this[_0x54c742(0x1a2)](_0x1f6e6c);const _0x25ae8d=this[_0x54c742(0x176)](),_0x557540=[];for(const _0x5f39e2 of _0x25ae8d){const _0x5a5135='<'+_0x5f39e2[_0x54c742(0x192)]+_0x54c742(0x1a1)+_0x5f39e2[_0x54c742(0x192)]+_0x54c742(0x1bd),_0x2ee872=_0x40fa0b[_0x54c742(0x19a)](_0x5a5135);_0x40fa0b=_0x40fa0b[_0x54c742(0x189)](0x0,_0x2ee872)+_0x40fa0b[_0x54c742(0x189)](_0x2ee872+_0x5a5135[_0x54c742(0x1b1)]);const _0x32c2fe='<'+_0x5f39e2[_0x54c742(0x192)]+_0x54c742(0x160)+_0x5f39e2[_0x54c742(0x192)]+_0x54c742(0x19f),_0x318654=_0x40fa0b[_0x54c742(0x19a)](_0x32c2fe);_0x40fa0b=_0x40fa0b[_0x54c742(0x189)](0x0,_0x318654)+_0x40fa0b[_0x54c742(0x189)](_0x318654+_0x32c2fe[_0x54c742(0x1b1)]),_0x557540[_0x54c742(0x16a)]({'markerName':_0x5f39e2[_0x54c742(0x192)],'start':_0x2ee872,'end':_0x318654,'htmlFragment':_0x40fa0b[_0x54c742(0x189)](_0x2ee872,_0x318654)});}return{'content':_0x40fa0b,'version':_0x477472[_0x54c742(0x166)][_0x54c742(0x1c3)][_0x54c742(0x1af)],'sessionId':this[_0x54c742(0x1bc)],'selections':_0x557540};}async[_0x1bca29(0x19d)](){const _0x34c5a2=_0x1bca29;this[_0x34c5a2(0x165)]instanceof _0x10ee2c?this[_0x34c5a2(0x18d)](this[_0x34c5a2(0x165)]):this[_0x34c5a2(0x18a)](this[_0x34c5a2(0x165)][_0x34c5a2(0x1ab)],_0x34c5a2(0x1bf),(_0x4a46e7,_0x2ee382)=>{const _0x16e0e1=_0x34c5a2;_0x2ee382['on'](_0x16e0e1(0x19e),()=>{const _0x505da5=_0x16e0e1;this[_0x505da5(0x18d)](_0x2ee382);});});}[_0x1bca29(0x173)](_0x5a7832){const _0x3637cb=_0x1bca29;this[_0x3637cb(0x167)]=_0x5a7832;}async[_0x1bca29(0x1a2)](_0x34b06a){const _0x1d298d=_0x1bca29;let _0x210c76;const _0x4c98f5=_0x22a092(this[_0x1d298d(0x165)]);if(this[_0x1d298d(0x167)]){const _0xfb8be1=_0x4c98f5[_0x1d298d(0x1a7)][_0x1d298d(0x1ae)][_0x1d298d(0x1b6)][_0x1d298d(0x1d3)](_0x34b06a),_0xad7ec9=await this[_0x1d298d(0x167)](_0xfb8be1);_0x210c76=_0x4c98f5[_0x1d298d(0x1a7)][_0x1d298d(0x1ae)][_0x1d298d(0x18c)][_0x1d298d(0x18b)](_0xad7ec9);}else _0x210c76=_0x4c98f5[_0x1d298d(0x1a7)][_0x1d298d(0x1ae)][_0x1d298d(0x1ca)](_0x34b06a);return _0x210c76;}[_0x1bca29(0x18d)](_0x1ae491){const _0x1113d8=_0x1bca29;_0x1ae491[_0x1113d8(0x1a4)][_0x1113d8(0x19b)](_0x1113d8(0x184))[_0x1113d8(0x190)]({'model':_0x1113d8(0x172),'view':{'classes':[_0x1113d8(0x187),_0x1113d8(0x177)],'priority':0xc}}),_0x1ae491[_0x1113d8(0x1a4)][_0x1113d8(0x19b)](_0x1113d8(0x197))[_0x1113d8(0x16e)]({'model':_0x1113d8(0x172),'view':(_0x586b86,{writer:_0x2aff31,options:_0x3cc0e2})=>_0x3cc0e2[_0x1113d8(0x19c)]?_0x2aff31[_0x1113d8(0x1c7)](_0x586b86[_0x1113d8(0x18e)]+':'+(_0x586b86[_0x1113d8(0x15f)]?_0x1113d8(0x188):_0x1113d8(0x1ce))):null});}[_0x1bca29(0x1b9)](_0x421c67,_0x42e542,_0x10e0c8=!0x1,_0x185e5c=!0x1){const _0x41ded7=_0x1bca29;if(this[_0x41ded7(0x1be)]&&!_0x185e5c)return!0x1;const _0x243713=_0x22a092(this[_0x41ded7(0x165)])[_0x41ded7(0x166)];return _0x243713[_0x41ded7(0x163)](_0x2188ae=>{const _0x1e2937=_0x41ded7;this[_0x1e2937(0x17e)]&&this[_0x1e2937(0x183)](this[_0x1e2937(0x17e)]),this[_0x1e2937(0x17e)]=_0x42e542,this[_0x1e2937(0x1be)]=_0x10e0c8;let _0x9c8489=0x0;for(let _0xebd5d4 of _0x421c67){const _0xd4b3c4=_0x1e2937(0x161)+_0x9c8489;if(_0xebd5d4[_0x1e2937(0x188)][_0x1e2937(0x1b7)]){const _0x3f105f=_0xebd5d4[_0x1e2937(0x188)][_0x1e2937(0x191)](({item:_0x43e3ac})=>!_0x243713[_0x1e2937(0x1a6)][_0x1e2937(0x195)](_0x43e3ac),{'boundaries':_0xebd5d4});_0xebd5d4=_0x2188ae[_0x1e2937(0x1c2)](_0x3f105f,_0xebd5d4[_0x1e2937(0x1ce)]);}_0x2188ae[_0x1e2937(0x1c8)](_0xd4b3c4,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xebd5d4}),_0x9c8489++;}}),window[_0x41ded7(0x1b4)]()?.[_0x41ded7(0x1c5)](),!0x0;}[_0x1bca29(0x183)](_0x437f93){const _0xabbdc8=_0x1bca29;if(this[_0xabbdc8(0x17e)]!=_0x437f93)return!0x1;this[_0xabbdc8(0x17e)]=null,this[_0xabbdc8(0x1be)]=!0x1;const _0x125351=_0x22a092(this[_0xabbdc8(0x165)]),_0x2095cd=_0x125351[_0xabbdc8(0x166)][_0xabbdc8(0x1b2)][_0xabbdc8(0x196)](_0xabbdc8(0x172));return _0x125351[_0xabbdc8(0x166)][_0xabbdc8(0x163)](_0x57adb8=>{const _0x150a13=_0xabbdc8;for(const _0x5e9fd8 of _0x2095cd)_0x57adb8[_0x150a13(0x169)](_0x5e9fd8);}),!0x0;}async[_0x1bca29(0x1b8)](_0x56d05a){const _0x2345ed=_0x1bca29,_0x4d7b34=_0x22a092(this[_0x2345ed(0x165)]),_0x1b11c8=_0x4d7b34[_0x2345ed(0x1a7)][_0x2345ed(0x185)](_0x56d05a),_0x313f52=new _0xd731ec(_0x4d7b34[_0x2345ed(0x16c)][_0x2345ed(0x1cc)][_0x2345ed(0x1c3)]);return this[_0x2345ed(0x17c)](_0x1b11c8,_0x313f52),this[_0x2345ed(0x1a2)](_0x1b11c8);}[_0x1bca29(0x17c)](_0xcb0ca2,_0x5ba3c5){const _0xb94ac6=_0x1bca29;let _0x190f14=!0x1;const _0x116394=new Set();for(const _0x4b4bd3 of _0xcb0ca2[_0xb94ac6(0x1d0)]()){const _0x2640c5=_0x4b4bd3['is'](_0xb94ac6(0x180))||_0x4b4bd3['is'](_0xb94ac6(0x1d1));if(!_0x4b4bd3['is'](_0xb94ac6(0x16b)))continue;(this[_0xb94ac6(0x17c)](_0x4b4bd3,_0x5ba3c5)||_0x2640c5)&&(_0x5ba3c5[_0xb94ac6(0x179)](_0xb94ac6(0x1ad),this[_0xb94ac6(0x181)](_0x116394),_0x4b4bd3),_0x190f14=!0x0);}return _0x190f14;}[_0x1bca29(0x181)](_0x653c91){const _0x12faed=_0x1bca29;let _0x2dec1f;do{_0x2dec1f='';for(let _0x16b6f5=0x0;_0x16b6f5<0x4;_0x16b6f5++)_0x2dec1f+=String[_0x12faed(0x1b3)](0x61+Math[_0x12faed(0x1a8)](0x1a*Math[_0x12faed(0x1bb)]()));}while(_0x653c91[_0x12faed(0x1a3)](_0x2dec1f));return _0x653c91[_0x12faed(0x1bf)](_0x2dec1f),_0x2dec1f;}[_0x1bca29(0x1cf)](){const _0x3777d1=_0x1bca29,{model:_0x328e69}=_0x22a092(this[_0x3777d1(0x165)]),_0x210493=_0x328e69[_0x3777d1(0x1c3)][_0x3777d1(0x16d)],_0x29724d=[];for(const _0x3cc276 of _0x210493[_0x3777d1(0x18f)]())for(const _0x12ea47 of _0x3cc276[_0x3777d1(0x16f)]())_0x12ea47['is'](_0x3777d1(0x1c1))?_0x29724d[_0x3777d1(0x16a)](_0x12ea47[_0x3777d1(0x1a7)]):_0x12ea47['is'](_0x3777d1(0x16b))&&_0x29724d[_0x3777d1(0x1b1)]>0x0&&'\x20'!==_0x29724d[_0x29724d[_0x3777d1(0x1b1)]-0x1]&&_0x29724d[_0x3777d1(0x16a)]('\x20');return _0x29724d[_0x3777d1(0x1b1)]?'\x22'+_0x29724d[_0x3777d1(0x175)]('')[_0x3777d1(0x1c6)]()+'\x22':_0x41c742(this[_0x3777d1(0x165)][_0x3777d1(0x193)],_0x3777d1(0x17f));}[_0x1bca29(0x176)](){const _0x3ea1f5=_0x1bca29,_0x5322f1=_0x22a092(this[_0x3ea1f5(0x165)])[_0x3ea1f5(0x166)];return Array[_0x3ea1f5(0x17d)](_0x5322f1[_0x3ea1f5(0x1b2)][_0x3ea1f5(0x196)](_0x3ea1f5(0x172)))[_0x3ea1f5(0x1ba)]((_0x52893b,_0x2b3689)=>_0x52893b[_0x3ea1f5(0x1cd)]()[_0x3ea1f5(0x174)](_0x2b3689[_0x3ea1f5(0x1cd)]())?-0x1:_0x52893b[_0x3ea1f5(0x1cd)]()[_0x3ea1f5(0x1ac)](_0x2b3689[_0x3ea1f5(0x1cd)]())?0x1:0x0);}}function _0x141d(){const _0x4e2fbb=['isAfter','data-id','processor','version','159284nwbaDA','length','markers','fromCharCode','getSelection','5160GcWRcT','domConverter','isAtEnd','modelToDataWithIds','showFakeVisualSelection','sort','random','sessionId',':start>','_displayedFakeSelectionLocked','add','ai.models.showModelSelector','$textProxy','createRange','document','get','removeAllRanges','trim','createUIElement','addMarker','65568YyVziS','toData','21pbdyyu','view','getStart','end','getSelectionText','getChildren','containerElement','pluginName','viewToDom','isOpening',':end></','ai-selection:','10lvVOWH','change','config','context','model','_outputDataProcessor','RealTimeCollaborationClient','removeMarker','push','element','editing','selection','markerToElement','getItems','95292AvYjKe','42618KGloEI','ai-selection','_setOutputDataProcessor','isBefore','join','_getMarkersInDocumentOrder','ck-ai-assistant-ui_theme','getRoot','setAttribute','isOfficialPlugin','3782108oyZrhr','_setDataIdsOnChildren','from','_displayedFakeSelectionId','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','emptyElement','_nextDataId','369WSBXYE','hideFakeVisualSelection','editingDowncast','toView','isPremiumPlugin','ck-fake-ai-selection','start','substring','listenTo','getHtml','htmlWriter','_integrateEditor','markerName','getRanges','markerToHighlight','getLastMatchingPosition','name','locale','1032dZXDEp','isContent','getMarkersGroup','dataDowncast','define','_sessionId','indexOf','for','convertAiChatSelectionMarker','afterInit','ready',':end>','AIEditing',':start></','_getDocumentDataStringFromView','has','conversion','13580RTlsia','schema','data','floor','plugins','getDocumentData','editors'];_0x141d=function(){return _0x4e2fbb;};return _0x141d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5064c0=_0x5adb;(function(_0x2e7d00,_0x4b31e2){const _0x2f0ac2=_0x5adb,_0x1c49af=_0x2e7d00();while(!![]){try{const _0x45361d=parseInt(_0x2f0ac2(0xd7))/0x1*(parseInt(_0x2f0ac2(0xde))/0x2)+-parseInt(_0x2f0ac2(0xc8))/0x3*(parseInt(_0x2f0ac2(0xcb))/0x4)+parseInt(_0x2f0ac2(0xce))/0x5+parseInt(_0x2f0ac2(0xc7))/0x6*(-parseInt(_0x2f0ac2(0xd6))/0x7)+-parseInt(_0x2f0ac2(0xcd))/0x8*(parseInt(_0x2f0ac2(0xd1))/0x9)+parseInt(_0x2f0ac2(0xca))/0xa+-parseInt(_0x2f0ac2(0xcf))/0xb;if(_0x45361d===_0x4b31e2)break;else _0x1c49af['push'](_0x1c49af['shift']());}catch(_0x10e31d){_0x1c49af['push'](_0x1c49af['shift']());}}}(_0x75ce,0x81da8));import{EmitterMixin as _0x26b546}from'ckeditor5/src/utils.js';function _0x5adb(_0x28d970,_0xe7c49a){const _0x75cef5=_0x75ce();return _0x5adb=function(_0x5adb0d,_0x1e61e4){_0x5adb0d=_0x5adb0d-0xc7;let _0x4b1b37=_0x75cef5[_0x5adb0d];return _0x4b1b37;},_0x5adb(_0x28d970,_0xe7c49a);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x5064c0(0xd5)];function _0x75ce(){const _0x1b2aa5=['setWebSearch','526160QSULzC','isReasoningEnabled','init','getCapabilitiesRequestData','34134mncJYV','291VoVtBE','_isWebSearchEnabled','2344450ffuSkC','4548MNxjcD','_isReasoningEnabled','72HeZOEv','1176000AFkWeq','257884QnDYqy','webSearch','75573SzSiwe','toggleReasoning','toggleWebSearch','reset','capabilitiesUpdated','637iQarKJ','3BYkThy','setReasoning','getCapabilitiesConfig','fire','isWebSearchEnabled','reasoning'];_0x75ce=function(){return _0x1b2aa5;};return _0x75ce();}export class AICapabilities extends _0x26b546(){[_0x5064c0(0xc9)];[_0x5064c0(0xcc)];constructor(){const _0x319b6d=_0x5064c0;super(),this[_0x319b6d(0xc9)]=!0x1,this[_0x319b6d(0xcc)]=!0x1;}[_0x5064c0(0xe0)](){const _0x36b0aa=_0x5064c0;this[_0x36b0aa(0xd4)]();}[_0x5064c0(0xd4)](){const _0x599013=_0x5064c0;this[_0x599013(0xdd)](!0x1),this[_0x599013(0xd8)](!0x1);}[_0x5064c0(0xd9)](){const _0x108a44=_0x5064c0;return{'isWebSearchEnabled':this[_0x108a44(0xc9)],'isReasoningEnabled':this[_0x108a44(0xcc)]};}static[_0x5064c0(0xe1)](_0x51cb4f){const _0x362a39=_0x5064c0,_0x20c16b={};return _0x51cb4f&&_0x51cb4f[_0x362a39(0xdb)]&&(_0x20c16b[_0x362a39(0xd0)]={}),_0x51cb4f&&_0x51cb4f[_0x362a39(0xdf)]&&(_0x20c16b[_0x362a39(0xdc)]={}),_0x20c16b;}[_0x5064c0(0xd3)](){const _0x3ab054=_0x5064c0;this[_0x3ab054(0xdd)](!this[_0x3ab054(0xc9)]);}[_0x5064c0(0xd2)](){const _0x527138=_0x5064c0;this[_0x527138(0xd8)](!this[_0x527138(0xcc)]);}[_0x5064c0(0xdd)](_0x4b9601){const _0x580e74=_0x5064c0;_0x4b9601!==this[_0x580e74(0xc9)]&&(this[_0x580e74(0xc9)]=_0x4b9601,this[_0x580e74(0xda)](_0x580e74(0xd5),this[_0x580e74(0xd9)]()));}[_0x5064c0(0xd8)](_0x513958){const _0x1feba5=_0x5064c0;_0x513958!==this[_0x1feba5(0xcc)]&&(this[_0x1feba5(0xcc)]=_0x513958,this[_0x1feba5(0xda)](_0x1feba5(0xd5),this[_0x1feba5(0xd9)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x281389,_0x57e5df){var _0x36928c=_0x5671,_0x24e10c=_0x281389();while(!![]){try{var _0x16f189=-parseInt(_0x36928c(0x12c))/0x1+-parseInt(_0x36928c(0x12f))/0x2+-parseInt(_0x36928c(0x138))/0x3*(-parseInt(_0x36928c(0x11f))/0x4)+-parseInt(_0x36928c(0x132))/0x5*(parseInt(_0x36928c(0x123))/0x6)+-parseInt(_0x36928c(0x12d))/0x7*(parseInt(_0x36928c(0x120))/0x8)+-parseInt(_0x36928c(0x127))/0x9+-parseInt(_0x36928c(0x122))/0xa*(-parseInt(_0x36928c(0x133))/0xb);if(_0x16f189===_0x57e5df)break;else _0x24e10c['push'](_0x24e10c['shift']());}catch(_0x4693e1){_0x24e10c['push'](_0x24e10c['shift']());}}}(_0x3aa9,0xc62fa));export var AIContextItemType;!function(_0x42aecc){var _0x2ddf3c=_0x5671;_0x42aecc[_0x2ddf3c(0x128)]=_0x2ddf3c(0x125),_0x42aecc[_0x2ddf3c(0x126)]=_0x2ddf3c(0x131),_0x42aecc[_0x2ddf3c(0x11e)]=_0x2ddf3c(0x135),_0x42aecc[_0x2ddf3c(0x121)]=_0x2ddf3c(0x134),_0x42aecc[_0x2ddf3c(0x12e)]=_0x2ddf3c(0x129),_0x42aecc[_0x2ddf3c(0x136)]=_0x2ddf3c(0x137);}(AIContextItemType||(AIContextItemType={}));function _0x5671(_0x40e0a2,_0x33c345){var _0x3aa9b3=_0x3aa9();return _0x5671=function(_0x56713e,_0x3d4c97){_0x56713e=_0x56713e-0x11e;var _0x49c310=_0x3aa9b3[_0x56713e];return _0x49c310;},_0x5671(_0x40e0a2,_0x33c345);}export var AIContextTextResourceType;!function(_0x435049){var _0x14a619=_0x5671;_0x435049[_0x14a619(0x12e)]=_0x14a619(0x129),_0x435049[_0x14a619(0x12b)]=_0x14a619(0x124),_0x435049[_0x14a619(0x12a)]=_0x14a619(0x130);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x3aa9(){var _0x389c6a=['selection','1061274kbfMmD','DOCUMENT','16suWfcA','30776kTQolO','URL','920bSJOxl','480RshvLu','markdown','mcp-tool-context','FILE','6328098dKcEIE','TOOL','text','HTML','MARKDOWN','1441998nWRmdh','588FPHbxf','TEXT','2358796wZcDIr','html','file','49310RFXqiD','458337MScPcr','web-resource','document','SELECTION'];_0x3aa9=function(){return _0x389c6a;};return _0x3aa9();}
|