@ckeditor/ckeditor5-ai 47.7.1 → 47.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
function _0x4753(_0x388aed,_0x1d9bf6){const _0x312312=_0x3123();return _0x4753=function(_0x47538d,_0x4e5858){_0x47538d=_0x47538d-0x125;let _0x31d06c=_0x312312[_0x47538d];return _0x31d06c;},_0x4753(_0x388aed,_0x1d9bf6);}const _0x45e21a=_0x4753;(function(_0x9ffe9f,_0x4bd5ca){const _0x8c9060=_0x4753,_0x343612=_0x9ffe9f();while(!![]){try{const _0x58de8c=-parseInt(_0x8c9060(0x155))/0x1+parseInt(_0x8c9060(0x14b))/0x2+parseInt(_0x8c9060(0x12f))/0x3+-parseInt(_0x8c9060(0x132))/0x4+-parseInt(_0x8c9060(0x138))/0x5+-parseInt(_0x8c9060(0x158))/0x6*(parseInt(_0x8c9060(0x128))/0x7)+parseInt(_0x8c9060(0x14c))/0x8;if(_0x58de8c===_0x4bd5ca)break;else _0x343612['push'](_0x343612['shift']());}catch(_0x4c1f83){_0x343612['push'](_0x343612['shift']());}}}(_0x3123,0x80c6d));import{ListItemView as _0x5081b4,HighlightedTextView as _0x26bf05,ButtonView as _0x1b6385,ListView as _0x5076fc,IconView as _0x4c8f44,createDropdown as _0x4336f5,InputTextView as _0x2cef48}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x18be09,IconPin as _0x412a91,IconCheck as _0x427fd5,IconCancel as _0x14796f}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x27d014,ConfirmMixin as _0x2c9f6e}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0xdd1516}from'es-toolkit/compat';import{AISpinnerView as _0x60838}from'../../aicore/ui/aispinner.js';function _0x3123(){const _0x13ff56=['ck-ai-chat-history__item-title','key','removeConversation','text','ck-ai-chat-history__item-actions','items','setConversationPinned','AI_CHAT_HISTORY_REMOVE','loadingState','mainContent','panelView','ck-ai-chat-history__item-content','locale','element','string','change:isEdit','extendTemplate','showConfirm','AI_CHAT_HISTORY_CANCEL','isOn','AI_CHAT_HISTORY_PIN_BUTTON','isEdit','ck-hidden','selectConversation','execute','_createEditInputView','tiny','AI_CHAT_HISTORY_LOADING_RENAMING','AI_CHAT_HISTORY_LOADING_PINNING','_commitEditInputValue','_createCheckView','1729OwZTAH','panelPosition','ck-confirm-view-cancel','highlightText','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','ck-ai-chat-history__item--active','updateLoadingState','1799046FzCLqj','match','_createMenuDropdownView','3842412xOHETv','bind','_createSpinnerView','_createAcceptEditButtonView','ck-ai-chat-history__item-main-content','updateTitle','449085tfcwls','_createPinButtonView','div','AI_CHAT_HISTORY_LOADING_UNPINNING','ck-ai-loader','withText','AI_CHAT_HISTORY_EDIT_NAME','_titleView','ck-ai-chat-history__item-row','children','bindTemplate','Enter','ck-ai-chat-history__item-check','focus','ck-ai-chat-history__item--edit','then','label','ck-confirm-view-submit','ck-ai-chat-history__item-date','1273568PhjJIh','8441392EfBtZF','setTemplate','buttonView','LOADING_LABELS','value','add','clear','_createCancelEditButtonView','AI_CHAT_HISTORY_REMOVE_CONFIRM','495650eHPiSm','ck-ai-loader__text','set','5298BEZJgP','isVisible','fire','edit:cancel','pinned','ck-ai-chat-history__item','AI_CHAT_HISTORY_LOADING_REMOVING','span','editConversationTitle','ck-ai-chat-history__item-check-container','addMany','AI_CHAT_HISTORY_ACCEPT','isMatching','click','actions','createCollection','listitem'];_0x3123=function(){return _0x13ff56;};return _0x3123();}import{getTranslation as _0x1c67a9}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2c9f6e(_0x5081b4){['id'];static [_0x45e21a(0x14f)]={'remove':_0x45e21a(0x15e),'rename':_0x45e21a(0x184),'pin':_0x45e21a(0x125),'unpin':_0x45e21a(0x13b)};[_0x45e21a(0x166)];[_0x45e21a(0x172)];[_0x45e21a(0x13f)];constructor(_0x162f13,_0x56c9c8){const _0x3bf216=_0x45e21a;super(_0x162f13);const _0x5a44e4=this[_0x3bf216(0x142)];this[_0x3bf216(0x157)](_0x3bf216(0x17e),!0x1),this[_0x3bf216(0x157)](_0x3bf216(0x159),!0x0),this[_0x3bf216(0x157)](_0x3bf216(0x15c),!!_0x56c9c8[_0x3bf216(0x15c)]),this[_0x3bf216(0x157)](_0x3bf216(0x171),null),this['id']=_0x56c9c8['id'];const {title:_0x18f3e1,createdAt:_0xbfe8f6,active:_0x7572d3=!0x1}=_0x56c9c8;this[_0x3bf216(0x13f)]=new _0x26bf05(),this[_0x3bf216(0x13f)][_0x3bf216(0x16c)]=_0x18f3e1,this[_0x3bf216(0x13f)][_0x3bf216(0x179)]({'attributes':{'class':[_0x3bf216(0x169)]}});const _0x26e10f=this[_0x3bf216(0x127)](),_0xd7445d=this[_0x3bf216(0x139)](_0x162f13),_0x40cb5c=this[_0x3bf216(0x131)](),_0x357fc8=this[_0x3bf216(0x182)](_0x162f13,_0x18f3e1),_0x2f48ec=this[_0x3bf216(0x135)](_0x162f13,_0x357fc8),_0x4a82da=this[_0x3bf216(0x153)](_0x162f13,_0x357fc8);this[_0x3bf216(0x166)]=this[_0x3bf216(0x167)](),this[_0x3bf216(0x172)]=this[_0x3bf216(0x167)](),this[_0x3bf216(0x172)][_0x3bf216(0x151)](this[_0x3bf216(0x13f)]),this[_0x3bf216(0x166)][_0x3bf216(0x151)](_0xd7445d),this[_0x3bf216(0x166)][_0x3bf216(0x151)](_0x40cb5c),this['on'](_0x3bf216(0x178),(_0xdc7830,_0x5986e8,_0x4a2ae5)=>{const _0xfeeb35=_0x3bf216;this[_0xfeeb35(0x166)][_0xfeeb35(0x152)](),this[_0xfeeb35(0x172)][_0xfeeb35(0x152)](),_0x4a2ae5?(this[_0xfeeb35(0x166)][_0xfeeb35(0x151)](_0x2f48ec),this[_0xfeeb35(0x166)][_0xfeeb35(0x151)](_0x4a82da),this[_0xfeeb35(0x172)][_0xfeeb35(0x151)](_0x357fc8),_0x357fc8[_0xfeeb35(0x176)][_0xfeeb35(0x145)]()):(this[_0xfeeb35(0x166)][_0xfeeb35(0x151)](_0xd7445d),this[_0xfeeb35(0x166)][_0xfeeb35(0x151)](_0x40cb5c),this[_0xfeeb35(0x172)][_0xfeeb35(0x151)](this[_0xfeeb35(0x13f)]));}),this[_0x3bf216(0x14d)]({'tag':'li','attributes':{'class':[_0x3bf216(0x15d),_0x7572d3?_0x3bf216(0x12d):'',_0x5a44e4['if'](_0x3bf216(0x159),_0x3bf216(0x17f),_0xb39e6f=>!_0xb39e6f),_0x5a44e4['if'](_0x3bf216(0x17e),_0x3bf216(0x146))],'role':_0x3bf216(0x168)},'children':[{'tag':_0x3bf216(0x15f),'attributes':{'class':[_0x3bf216(0x161)]},'children':[{'tag':_0x3bf216(0x13a),'attributes':{'class':[_0x3bf216(0x144),_0x5a44e4['if'](_0x3bf216(0x171),_0x3bf216(0x17f),_0x5a446d=>!!_0x5a446d)]},'children':_0x7572d3?[_0x26e10f]:[]},{'tag':_0x3bf216(0x13a),'attributes':{'class':[_0x3bf216(0x13c),_0x5a44e4['if'](_0x3bf216(0x171),_0x3bf216(0x17f),_0x531aab=>!_0x531aab)]},'children':[this[_0x3bf216(0x134)]()]}]},{'tag':_0x3bf216(0x13a),'attributes':{'class':[_0x3bf216(0x140)]},'children':[{'tag':_0x3bf216(0x13a),'attributes':{'class':[_0x3bf216(0x174)]},'on':{'click':this[_0x3bf216(0x142)]['to'](_0x3bf216(0x165))},'children':[{'tag':_0x3bf216(0x13a),'attributes':{'class':[_0x3bf216(0x136)]},'children':[{'tag':_0x3bf216(0x13a),'attributes':{'class':[_0x3bf216(0x169),_0x5a44e4['if'](_0x3bf216(0x171),_0x3bf216(0x17f),_0x18cff5=>!!_0x18cff5)]},'children':this[_0x3bf216(0x172)]},{'tag':_0x3bf216(0x13a),'attributes':{'class':[_0x3bf216(0x156),_0x5a44e4['if'](_0x3bf216(0x171),_0x3bf216(0x17f),_0x532a51=>!_0x532a51)]},'children':[{'text':_0x5a44e4['to'](_0x3bf216(0x171),_0x169b37=>_0x169b37?_0x1c67a9(this[_0x3bf216(0x175)],AIChatHistoryListItemView[_0x3bf216(0x14f)][_0x169b37]):'')}]}]},{'tag':_0x3bf216(0x15f),'attributes':{'class':[_0x3bf216(0x14a)]},'children':[_0xbfe8f6]}]},{'tag':_0x3bf216(0x13a),'attributes':{'class':[_0x3bf216(0x16d)]},'children':this[_0x3bf216(0x166)]}]}]}),this['on'](_0x3bf216(0x165),()=>{const _0x2914ec=_0x3bf216;this[_0x2914ec(0x17e)]||this[_0x2914ec(0x15a)](_0x2914ec(0x180),{'id':this['id']});});}[_0x45e21a(0x137)](_0x558601){const _0x4e4ed9=_0x45e21a;this[_0x4e4ed9(0x13f)][_0x4e4ed9(0x16c)]=_0xdd1516(_0x558601);}[_0x45e21a(0x12e)](_0x570a1d,_0x184204){const _0x5174ca=_0x45e21a;this[_0x5174ca(0x157)](_0x5174ca(0x171),_0x184204?_0x570a1d:null);}[_0x45e21a(0x127)](){const _0x5dc215=_0x45e21a,_0xb0a23c=new _0x4c8f44();return _0xb0a23c[_0x5dc215(0x157)]({'content':_0x427fd5}),_0xb0a23c;}[_0x45e21a(0x139)](_0x3bb1b2){const _0x4b333a=_0x45e21a,_0x3f5369=new _0x1b6385(_0x3bb1b2);return _0x3f5369[_0x4b333a(0x157)]({'label':_0x1c67a9(_0x3bb1b2,_0x4b333a(0x17d)),'icon':_0x412a91,'withText':!0x1,'tooltip':!0x0}),_0x3f5369[_0x4b333a(0x133)](_0x4b333a(0x17c))['to'](this,_0x4b333a(0x15c)),_0x3f5369['on'](_0x4b333a(0x181),()=>{const _0x105712=_0x4b333a,_0x372ff3=!this[_0x105712(0x15c)];this[_0x105712(0x15a)](_0x105712(0x16f),{'id':this['id'],'pinned':_0x372ff3});}),_0x3f5369;}[_0x45e21a(0x131)](){const _0x116417=_0x45e21a,_0xc6d749=_0x4336f5(this[_0x116417(0x175)],_0x27d014),_0x23bcdf=_0xc6d749[_0x116417(0x173)][_0x116417(0x141)];_0xc6d749[_0x116417(0x14e)][_0x116417(0x157)]({'label':_0x1c67a9(this[_0x116417(0x175)],_0x116417(0x12c)),'icon':_0x18be09}),_0xc6d749[_0x116417(0x129)]='sw';const _0x397700=new _0x1b6385(this[_0x116417(0x175)]);_0x397700[_0x116417(0x148)]=_0x1c67a9(this[_0x116417(0x175)],_0x116417(0x13e)),_0x397700[_0x116417(0x13d)]=!0x0,_0x397700['on'](_0x116417(0x181),()=>{const _0x44e10c=_0x116417;this[_0x44e10c(0x17e)]=!0x0;});const _0x343bd3=new _0x1b6385(this[_0x116417(0x175)]);_0x343bd3[_0x116417(0x148)]=_0x1c67a9(this[_0x116417(0x175)],_0x116417(0x170)),_0x343bd3[_0x116417(0x13d)]=!0x0,_0x343bd3['on'](_0x116417(0x181),()=>{const _0x423e9f=_0x116417;this[_0x423e9f(0x17a)](_0x1c67a9(this[_0x423e9f(0x175)],_0x423e9f(0x154)),this[_0x423e9f(0x176)])[_0x423e9f(0x147)](()=>{const _0x42de4c=_0x423e9f;this[_0x42de4c(0x15a)](_0x42de4c(0x16b),{'id':this['id']});});});const _0x27d717=new _0x5076fc(this[_0x116417(0x175)]),_0x596055=new _0x5081b4(this[_0x116417(0x175)]);_0x596055[_0x116417(0x141)][_0x116417(0x151)](_0x397700);const _0x81585e=new _0x5081b4(this[_0x116417(0x175)]);return _0x81585e[_0x116417(0x141)][_0x116417(0x151)](_0x343bd3),_0x27d717[_0x116417(0x16e)][_0x116417(0x162)]([_0x596055,_0x81585e]),_0x23bcdf[_0x116417(0x151)](_0x27d717),_0xc6d749;}[_0x45e21a(0x182)](_0x42938,_0x1ae60f){const _0x25d434=_0x45e21a,_0x3bcc56=new _0x2cef48(_0x42938),_0x437e3d=_0x3bcc56[_0x25d434(0x142)];return _0x3bcc56[_0x25d434(0x150)]=_0x1ae60f,_0x3bcc56[_0x25d434(0x179)]({'on':{'keydown':_0x437e3d['to'](_0x53b34a=>{const _0x10c454=_0x25d434;_0x10c454(0x143)==_0x53b34a[_0x10c454(0x16a)]&&this[_0x10c454(0x126)](_0x3bcc56);})}}),_0x3bcc56;}[_0x45e21a(0x135)](_0xb01ff8,_0x3437cd){const _0x191cb9=_0x45e21a,_0x5a5c30=new _0x1b6385(_0xb01ff8);return _0x5a5c30[_0x191cb9(0x157)]({'icon':_0x427fd5,'withText':!0x1,'tooltip':_0x1c67a9(_0xb01ff8,_0x191cb9(0x163))}),_0x5a5c30[_0x191cb9(0x179)]({'attributes':{'class':[_0x191cb9(0x149)]}}),_0x5a5c30['on'](_0x191cb9(0x181),()=>{const _0x326df3=_0x191cb9;this[_0x326df3(0x126)](_0x3437cd);}),_0x5a5c30;}[_0x45e21a(0x126)](_0x1d664b){const _0xafd767=_0x45e21a,_0x50bc9c=_0x1d664b[_0xafd767(0x176)][_0xafd767(0x150)]||'';this[_0xafd767(0x13f)][_0xafd767(0x16c)]=_0x50bc9c,this[_0xafd767(0x17e)]=!0x1,this[_0xafd767(0x15a)](_0xafd767(0x160),{'id':this['id'],'title':_0x50bc9c});}[_0x45e21a(0x153)](_0x5c45a0,_0x42fd7b){const _0x4eb34c=_0x45e21a,_0x86569c=new _0x1b6385(_0x5c45a0);return _0x86569c[_0x4eb34c(0x157)]({'icon':_0x14796f,'withText':!0x1,'tooltip':_0x1c67a9(_0x5c45a0,_0x4eb34c(0x17b))}),_0x86569c[_0x4eb34c(0x179)]({'attributes':{'class':[_0x4eb34c(0x12a)]}}),_0x86569c['on'](_0x4eb34c(0x181),()=>{const _0x1afda7=_0x4eb34c;this[_0x1afda7(0x17e)]=!0x1,_0x42fd7b[_0x1afda7(0x150)]=this[_0x1afda7(0x13f)][_0x1afda7(0x16c)]||'',this[_0x1afda7(0x15a)](_0x1afda7(0x15b));}),_0x86569c;}[_0x45e21a(0x134)](){const _0x4655b1=_0x45e21a,_0x39980a=new _0x60838(_0x4655b1(0x183));return _0x39980a[_0x4655b1(0x159)]=!0x0,_0x39980a;}[_0x45e21a(0x164)](_0x407e59){const _0x330576=_0x45e21a;return this[_0x330576(0x13f)]&&_0x330576(0x177)==typeof this[_0x330576(0x13f)][_0x330576(0x16c)]&&this[_0x330576(0x13f)][_0x330576(0x16c)][_0x330576(0x130)](_0x407e59)?{'title':!0x0}:null;}[_0x45e21a(0x12b)](_0x3af515){const _0x44b154=_0x45e21a;this[_0x44b154(0x13f)][_0x44b154(0x12b)](_0x3af515);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x384f97=_0x1b8a;(function(_0x244d18,_0x5e3fc3){const _0x509389=_0x1b8a,_0x2d781f=_0x244d18();while(!![]){try{const _0x5b1876=-parseInt(_0x509389(0xdd))/0x1*(-parseInt(_0x509389(0xbe))/0x2)+-parseInt(_0x509389(0xde))/0x3*(parseInt(_0x509389(0xdb))/0x4)+-parseInt(_0x509389(0xdc))/0x5*(-parseInt(_0x509389(0xd6))/0x6)+-parseInt(_0x509389(0xc9))/0x7*(parseInt(_0x509389(0xcd))/0x8)+-parseInt(_0x509389(0xe0))/0x9*(parseInt(_0x509389(0xc7))/0xa)+-parseInt(_0x509389(0xd1))/0xb+parseInt(_0x509389(0xd5))/0xc*(parseInt(_0x509389(0xc6))/0xd);if(_0x5b1876===_0x5e3fc3)break;else _0x2d781f['push'](_0x2d781f['shift']());}catch(_0x472a64){_0x2d781f['push'](_0x2d781f['shift']());}}}(_0x161a,0x2831c));function _0x1b8a(_0x39cb08,_0x3419fe){const _0x161a8d=_0x161a();return _0x1b8a=function(_0x1b8a4c,_0x5b2e67){_0x1b8a4c=_0x1b8a4c-0xbe;let _0x418c1f=_0x161a8d[_0x1b8a4c];return _0x418c1f;},_0x1b8a(_0x39cb08,_0x3419fe);}import{ListItemView as _0x1545a9,View as _0x548d8d,ListView as _0xcce3ed}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x1545a9{[_0x384f97(0xe1)];[_0x384f97(0xd0)];[_0x384f97(0xd3)];constructor(_0x5a7c77,{title:_0x143cd7,items:_0x574d14}){const _0xb746c=_0x384f97;super(_0x5a7c77);const _0x2202c0=this[_0xb746c(0xc2)];this[_0xb746c(0xca)](_0xb746c(0xc4),!0x0),this[_0xb746c(0xe1)]=_0x143cd7,this[_0xb746c(0xd0)]=_0x574d14;const _0x49f276=new _0x548d8d(_0x5a7c77);_0x49f276[_0xb746c(0xc3)]({'tag':_0xb746c(0xd8),'attributes':{'class':[_0xb746c(0xce)]},'children':[this[_0xb746c(0xe1)]]}),this[_0xb746c(0xd3)]=new _0xcce3ed(_0x5a7c77),this[_0xb746c(0xd3)][_0xb746c(0xc5)][_0xb746c(0xcb)](this[_0xb746c(0xd0)]),this[_0xb746c(0xc3)]({'tag':'li','attributes':{'class':[_0xb746c(0xcf),_0x2202c0['if'](_0xb746c(0xc4),_0xb746c(0xcc),_0x417690=>!_0x417690)]},'children':[_0x49f276,this[_0xb746c(0xd3)]]});}[_0x384f97(0xd7)](_0x3539b0){const _0x2c9889=_0x384f97,_0x8337ee=this[_0x2c9889(0xd0)][_0x2c9889(0xd4)];let _0x46466e=0x0;for(const _0x5ba0f3 of this[_0x2c9889(0xd0)]){if(_0x3539b0){const _0x56a2df=_0x5ba0f3[_0x2c9889(0xc1)](_0x3539b0);_0x5ba0f3[_0x2c9889(0xc4)]=!!_0x56a2df,_0x5ba0f3[_0x2c9889(0xc8)](_0x3539b0);}else _0x5ba0f3[_0x2c9889(0xc4)]=!0x0,_0x5ba0f3[_0x2c9889(0xc8)](null);_0x5ba0f3[_0x2c9889(0xc4)]&&_0x46466e++;}return this[_0x2c9889(0xc4)]=_0x46466e>0x0,{'resultsCount':_0x46466e,'totalItemsCount':_0x8337ee};}[_0x384f97(0xda)](_0xac62d4){const _0x812c9a=_0x384f97;return this[_0x812c9a(0xd0)][_0x812c9a(0xdf)](_0x2bba95=>_0x2bba95['id']===_0xac62d4);}[_0x384f97(0xd9)](_0x208dcf){const _0x40b574=_0x384f97,_0x427ff7=this[_0x40b574(0xd0)][_0x40b574(0xd2)](_0x208dcf);-0x1!==_0x427ff7&&(this[_0x40b574(0xd0)][_0x40b574(0xbf)](_0x427ff7,0x1),this[_0x40b574(0xd3)][_0x40b574(0xc5)][_0x40b574(0xc0)](_0x208dcf));}}function _0x161a(){const _0x3f8713=['filter','div','removeItem','getItem','4qIRrXg','320140ywPVNJ','213043mYFBWX','279771cpxPKL','find','459yMpvcf','title','2PGoBNn','splice','remove','isMatching','bindTemplate','setTemplate','isVisible','items','474071arPSOV','1720nAJEwn','highlightText','27153xMrPXi','set','addMany','ck-hidden','608MIZgYb','ck-ai-chat-history__section-title','ck-ai-chat-history__section','itemsViews','1792505pmSmDU','indexOf','_itemsListView','length','84JpLSnk','24QjvVVn'];_0x161a=function(){return _0x3f8713;};return _0x161a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x38d1(_0x1b2d51,_0x4d57b1){const _0x3506c7=_0x3506();return _0x38d1=function(_0x38d140,_0x39bec2){_0x38d140=_0x38d140-0x1a4;let _0x598aa7=_0x3506c7[_0x38d140];return _0x598aa7;},_0x38d1(_0x1b2d51,_0x4d57b1);}function _0x3506(){const _0x1a196e=['filter','4111302IsnTVg','772758VQmcha','sections','5029780IAWLCg','1466424lGUgsT','extendTemplate','6179949NnTUMv','4hCQuYO','items','addMany','2146047zTtihC','ck-ai-chat-history__sections','2601035HIJYYq','24PaQvDe'];_0x3506=function(){return _0x1a196e;};return _0x3506();}const _0x5ae623=_0x38d1;(function(_0xc9988f,_0x491aac){const _0x35f619=_0x38d1,_0x1fdd98=_0xc9988f();while(!![]){try{const _0x3befe3=parseInt(_0x35f619(0x1a9))/0x1+parseInt(_0x35f619(0x1ac))/0x2+-parseInt(_0x35f619(0x1b2))/0x3*(-parseInt(_0x35f619(0x1af))/0x4)+parseInt(_0x35f619(0x1a5))/0x5+parseInt(_0x35f619(0x1a8))/0x6+-parseInt(_0x35f619(0x1ab))/0x7+parseInt(_0x35f619(0x1a6))/0x8*(-parseInt(_0x35f619(0x1ae))/0x9);if(_0x3befe3===_0x491aac)break;else _0x1fdd98['push'](_0x1fdd98['shift']());}catch(_0x64c9e4){_0x1fdd98['push'](_0x1fdd98['shift']());}}}(_0x3506,0x9e41c));import{ListView as _0xeb5215}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0xeb5215{[_0x5ae623(0x1aa)];constructor(_0xa70d00,_0x9da05d){const _0x124751=_0x5ae623;super(_0xa70d00),this[_0x124751(0x1aa)]=_0x9da05d,this[_0x124751(0x1b0)][_0x124751(0x1b1)](this[_0x124751(0x1aa)]),this[_0x124751(0x1ad)]({'attributes':{'class':[_0x124751(0x1a4)]}});}[_0x5ae623(0x1a7)](_0x3362f8){const _0x12f860=_0x5ae623;let _0x1f0a66=0x0,_0x3107ec=0x0;for(const _0x319fa4 of this[_0x12f860(0x1aa)]){const {resultsCount:_0x2d5db5,totalItemsCount:_0x491445}=_0x319fa4[_0x12f860(0x1a7)](_0x3362f8);_0x1f0a66+=_0x2d5db5,_0x3107ec+=_0x491445;}return{'resultsCount':_0x1f0a66,'totalItemsCount':_0x3107ec};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4a8e86=_0x5521;(function(_0x2dc57f,_0x3bf9cd){const _0x592c62=_0x5521,_0x1abf91=_0x2dc57f();while(!![]){try{const _0x57fbef=parseInt(_0x592c62(0xa3))/0x1*(-parseInt(_0x592c62(0xb1))/0x2)+parseInt(_0x592c62(0x8c))/0x3*(parseInt(_0x592c62(0x91))/0x4)+-parseInt(_0x592c62(0xc0))/0x5*(parseInt(_0x592c62(0xa4))/0x6)+parseInt(_0x592c62(0xba))/0x7*(-parseInt(_0x592c62(0x7b))/0x8)+-parseInt(_0x592c62(0xa8))/0x9+parseInt(_0x592c62(0x93))/0xa*(-parseInt(_0x592c62(0x99))/0xb)+parseInt(_0x592c62(0x7a))/0xc;if(_0x57fbef===_0x3bf9cd)break;else _0x1abf91['push'](_0x1abf91['shift']());}catch(_0x1f4adf){_0x1abf91['push'](_0x1abf91['shift']());}}}(_0x5290,0x35e1d));import{View as _0x26a1d7,SearchTextView as _0x12e32d,FormHeaderView as _0x286335,ButtonView as _0x3c901a}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3d7fb4,IconCancel as _0x5533,IconPlus as _0x230159}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x110518}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x1362e7}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x4fe80c}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3efdf1}from'../aichathistoryui.js';function _0x5290(){const _0x495380=['fieldView','ck-ai-notification_error__dismiss-button','_refreshSearch','8913072uHSrnB','8SLRhjx','render','ck-ai-chat-history__empty','change:isLoading','_createListItemViews','ck-rounded-corners','bindTemplate','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-notification','isSearchViewVisible','skeletonView','length','_createErrorView','AI_CHAT_LABEL_NEW_CHAT','items','sectionsView','updateHistoryItemsWithCategories','114oYzPeC','updateTitle','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','resizeButton','ltr','13036bBuMdw','AI_CHAT_HISTORY_EMPTY_MESSAGE','337580mHhzWK','_createSearchView','execute','search','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','ck-ai-header\x20ck-ai-header_history','44zJqvEp','openChat','ck-ai-chat__start-conversation','clear','isMaximized','element','mainErrorView','_updateViewVisibility','value','_createSkeletonView','1IDGFat','426aevihY','ck-hidden','set','delegate','147537nrAVDn','isMainErrorViewVisible','setTemplate','aiHistory','searchView','getItem','itemsViews','isLoading','hasItems','743490aHbwBq','updateLoadingState','addMany','isEmptyViewVisible','ck-ai-notification_error','removeHistoryItem','ck-ai-chat-history__content','children','updateItemLoadingState','435148SxSzEb','remove','div','change:errorMessage','errorMessage','some','4265ncYItT','add','title','updateItemTitle','_createEmptyStateView','isVisible','queryView','ck-ai-chat-history','extendTemplate','push','ck-reset_all','locale','AI_CHAT_HISTORY_HEADING','removeItem','ck-ai-chat-history__empty-message','emptyView','bind','sections','splice','change:hasItems','indexOf','fire'];_0x5290=function(){return _0x495380;};return _0x5290();}import{AISkeletonView as _0x2f6b72,SKELETON_DEFINITIONS as _0x9f336}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x12dfda}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x4a373c}from'../../aicore/utils/common-translations.js';function _0x5521(_0xec111b,_0x53eb3b){const _0x5290df=_0x5290();return _0x5521=function(_0x552132,_0x3c7955){_0x552132=_0x552132-0x65;let _0xedddea=_0x5290df[_0x552132];return _0xedddea;},_0x5521(_0xec111b,_0x53eb3b);}export class AIChatHistoryView extends _0x26a1d7{[_0x4a8e86(0xac)];[_0x4a8e86(0x9f)];[_0x4a8e86(0x85)];[_0x4a8e86(0x70)];[_0x4a8e86(0x8a)];[_0x4a8e86(0x8f)];constructor(_0x1ec52e,_0x222e8e){const _0x1f7bcd=_0x4a8e86;super(_0x1ec52e),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0xb0),!0x1),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0xaf),!0x0),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0xbe),''),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0x9d),!0x1),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0x84),!0x1),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0xb4),!0x1),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0xa9),!0x1);const _0x5c0a20=new _0x286335(_0x1ec52e,{'label':_0x4a373c(_0x1ec52e,_0x1f7bcd(0x6d)),'icon':_0x3d7fb4,'class':_0x1f7bcd(0x98)});_0x222e8e&&(this[_0x1f7bcd(0x8f)]=_0x12dfda(_0x1ec52e,this),_0x5c0a20[_0x1f7bcd(0xb8)][_0x1f7bcd(0xc1)](this[_0x1f7bcd(0x8f)])),this[_0x1f7bcd(0x8a)]=new _0x110518(_0x1ec52e,[]),this[_0x1f7bcd(0x8a)][_0x1f7bcd(0xa7)](..._0x3efdf1)['to'](this),this[_0x1f7bcd(0x9f)]=this[_0x1f7bcd(0x87)](),this[_0x1f7bcd(0x85)]=this[_0x1f7bcd(0xa2)](),this[_0x1f7bcd(0x70)]=this[_0x1f7bcd(0x65)](),this[_0x1f7bcd(0xac)]=this[_0x1f7bcd(0x94)](),this[_0x1f7bcd(0x9f)][_0x1f7bcd(0x69)]({'attributes':{'class':[this[_0x1f7bcd(0x81)]['if'](_0x1f7bcd(0xa9),_0x1f7bcd(0xa5),_0x14e196=>!_0x14e196)]}}),this['on'](_0x1f7bcd(0x7e),()=>this[_0x1f7bcd(0xa0)]()),this['on'](_0x1f7bcd(0x74),()=>this[_0x1f7bcd(0xa0)]()),this['on'](_0x1f7bcd(0xbd),()=>this[_0x1f7bcd(0xa0)]()),this[_0x1f7bcd(0xaa)]({'tag':_0x1f7bcd(0xbc),'attributes':{'class':['ck',_0x1f7bcd(0x6b),_0x1f7bcd(0x68),_0x1f7bcd(0x80)],'dir':_0x1f7bcd(0x90)},'children':[_0x5c0a20,{'tag':_0x1f7bcd(0xbc),'attributes':{'class':[_0x1f7bcd(0xb7)]},'children':[this[_0x1f7bcd(0x85)],this[_0x1f7bcd(0x9f)],this[_0x1f7bcd(0x70)],this[_0x1f7bcd(0xac)]]}]});}[_0x4a8e86(0xa0)](){const _0x52fb22=_0x4a8e86;this[_0x52fb22(0x84)]=!this[_0x52fb22(0xaf)]&&this[_0x52fb22(0xb0)],this[_0x52fb22(0xb4)]=!this[_0x52fb22(0xaf)]&&!this[_0x52fb22(0xb0)]&&!this[_0x52fb22(0xbe)],this[_0x52fb22(0xa9)]=!this[_0x52fb22(0x84)]&&!!this[_0x52fb22(0xbe)];}[_0x4a8e86(0x94)](){const _0x2a7c94=_0x4a8e86,_0x478d51=new _0x12e32d(this[_0x2a7c94(0x6c)],{'filteredView':this[_0x2a7c94(0x8a)],'queryView':{'label':_0x4a373c(this[_0x2a7c94(0x6c)],_0x2a7c94(0x82))},'infoView':{'text':{'notFound':{'primary':_0x427e34=>_0x4a373c(this[_0x2a7c94(0x6c)],_0x2a7c94(0x97),_0x427e34),'secondary':_0x4a373c(this[_0x2a7c94(0x6c)],_0x2a7c94(0x8e))}}}}),_0x4d10a3=this[_0x2a7c94(0x87)]();return _0x4d10a3[_0x2a7c94(0x69)]({'attributes':{'class':[this[_0x2a7c94(0x81)]['if'](_0x2a7c94(0xbe),_0x2a7c94(0xa5),_0xd77ae9=>!_0xd77ae9)]}}),_0x478d51['on'](_0x2a7c94(0x7c),()=>{const _0x5afd37=_0x2a7c94;_0x478d51[_0x5afd37(0xb8)][_0x5afd37(0xc1)](_0x4d10a3,0x1);}),_0x478d51[_0x2a7c94(0x69)]({'attributes':{'class':[this[_0x2a7c94(0x81)]['if'](_0x2a7c94(0x84),_0x2a7c94(0xa5),_0x2a3259=>!_0x2a3259)]}}),_0x478d51;}[_0x4a8e86(0xa2)](){const _0x3491ae=_0x4a8e86,_0x214580=new _0x2f6b72(this[_0x3491ae(0x6c)],_0x9f336[_0x3491ae(0xab)]);return _0x214580[_0x3491ae(0x69)]({'attributes':{'class':[this[_0x3491ae(0x81)]['if'](_0x3491ae(0xaf),_0x3491ae(0xa5),_0x4a7a3a=>!_0x4a7a3a)]}}),_0x214580;}[_0x4a8e86(0x87)](){const _0x2b1370=_0x4a8e86,_0xc3b13f=new _0x26a1d7(this[_0x2b1370(0x6c)]),_0x4ff729=new _0x3c901a(this[_0x2b1370(0x6c)]);_0x4ff729[_0x2b1370(0xa6)]({'withText':!0x1,'icon':_0x5533,'class':_0x2b1370(0x78)}),_0x4ff729[_0x2b1370(0x71)](_0x2b1370(0x66))['to'](this,_0x2b1370(0xb0),_0x41a706=>!!_0x41a706),_0x4ff729['on'](_0x2b1370(0x95),()=>{const _0x5e4896=_0x2b1370;this[_0x5e4896(0xbe)]='';});const _0x1f8e8d=this[_0x2b1370(0x81)];return _0xc3b13f[_0x2b1370(0xaa)]({'tag':_0x2b1370(0xbc),'attributes':{'class':['ck',_0x2b1370(0x83),_0x2b1370(0xb5)]},'children':[{'tag':'p','children':[{'text':_0x1f8e8d['to'](_0x2b1370(0xbe))}]},_0x4ff729]}),_0xc3b13f;}[_0x4a8e86(0x65)](){const _0x163e10=_0x4a8e86,_0x9ebdff=new _0x3c901a(this[_0x163e10(0x6c)]);_0x9ebdff[_0x163e10(0xa6)]({'label':_0x4a373c(this[_0x163e10(0x6c)],_0x163e10(0x88)),'withText':!0x0,'icon':_0x230159,'class':_0x163e10(0x9b)}),_0x9ebdff['on'](_0x163e10(0x95),()=>{const _0x14055f=_0x163e10;this[_0x14055f(0x76)](_0x14055f(0x9a));});const _0x2fd61c=new _0x26a1d7(this[_0x163e10(0x6c)]);return _0x2fd61c[_0x163e10(0xaa)]({'tag':_0x163e10(0xbc),'attributes':{'class':[_0x163e10(0x7d),this[_0x163e10(0x81)]['if'](_0x163e10(0xb4),_0x163e10(0xa5),_0x287e4f=>!_0x287e4f)]},'children':[{'tag':'p','attributes':{'class':[_0x163e10(0x6f)]},'children':[_0x4a373c(this[_0x163e10(0x6c)],_0x163e10(0x92))]},_0x9ebdff]}),_0x2fd61c;}[_0x4a8e86(0x7f)](_0x55674d,_0x5b3559){const _0x1ba17d=_0x4a8e86,_0x14b4a9=[];for(const _0x5604bd of _0x55674d){const _0x4dbc72=new _0x4fe80c(_0x5b3559,_0x5604bd);_0x4dbc72[_0x1ba17d(0xa7)](..._0x3efdf1)['to'](this),_0x14b4a9[_0x1ba17d(0x6a)](_0x4dbc72);}return _0x14b4a9;}[_0x4a8e86(0x8b)](_0xc8de70){const _0x33c420=_0x4a8e86,_0x415f72=this[_0x33c420(0x6c)]||'en',_0x1c2c6b=[];for(const _0x19ad1a of _0xc8de70){const _0x2d8119=this[_0x33c420(0x7f)](_0x19ad1a[_0x33c420(0x89)],_0x415f72);_0x1c2c6b[_0x33c420(0x6a)](new _0x1362e7(_0x415f72,{'title':_0x19ad1a[_0x33c420(0xc2)],'items':_0x2d8119}));}this[_0x33c420(0x8a)][_0x33c420(0x72)]=_0x1c2c6b,this[_0x33c420(0x8a)][_0x33c420(0x89)][_0x33c420(0x9c)](),this[_0x33c420(0x8a)][_0x33c420(0x89)][_0x33c420(0xb3)](_0x1c2c6b),this[_0x33c420(0xb0)]=_0xc8de70[_0x33c420(0xbf)](_0x5b0dc2=>_0x5b0dc2[_0x33c420(0x89)][_0x33c420(0x86)]>0x0),this[_0x33c420(0x79)]();}[_0x4a8e86(0xb6)](_0x277748){const _0x23a434=_0x4a8e86;for(const _0x5e0bff of this[_0x23a434(0x8a)][_0x23a434(0x72)]){const _0xf51b13=_0x5e0bff[_0x23a434(0xad)](_0x277748);if(_0xf51b13){if(_0x5e0bff[_0x23a434(0x6e)](_0xf51b13),0x0===_0x5e0bff[_0x23a434(0xae)][_0x23a434(0x86)]){const _0xc87dba=this[_0x23a434(0x8a)][_0x23a434(0x72)][_0x23a434(0x75)](_0x5e0bff);-0x1!==_0xc87dba&&(this[_0x23a434(0x8a)][_0x23a434(0x72)][_0x23a434(0x73)](_0xc87dba,0x1),this[_0x23a434(0x8a)][_0x23a434(0x89)][_0x23a434(0xbb)](_0x5e0bff));}this[_0x23a434(0xb0)]=this[_0x23a434(0x8a)][_0x23a434(0x72)][_0x23a434(0x86)]>0x0,this[_0x23a434(0x79)]();break;}}}[_0x4a8e86(0xc3)](_0x3d3083,_0x300457){const _0x2ddd26=_0x4a8e86;for(const _0x2a7551 of this[_0x2ddd26(0x8a)][_0x2ddd26(0x72)]){const _0x44d3e9=_0x2a7551[_0x2ddd26(0xad)](_0x3d3083);if(_0x44d3e9){_0x44d3e9[_0x2ddd26(0x8d)](_0x300457);break;}}}[_0x4a8e86(0xb9)](_0x1d14ab,_0x35f2d0,_0x51ca28){const _0x496495=_0x4a8e86;for(const _0x5e8c19 of this[_0x496495(0x8a)][_0x496495(0x72)]){const _0x2370ba=_0x5e8c19[_0x496495(0xad)](_0x1d14ab);if(_0x2370ba){_0x2370ba[_0x496495(0xb2)](_0x35f2d0,_0x51ca28);break;}}}[_0x4a8e86(0x79)](){const _0x386ab7=_0x4a8e86;if(this[_0x386ab7(0xb0)]){const _0x23321f=this[_0x386ab7(0xac)][_0x386ab7(0x67)][_0x386ab7(0x77)]?.[_0x386ab7(0x9e)]?.[_0x386ab7(0xa1)]||'';this[_0x386ab7(0xac)][_0x386ab7(0x96)](_0x23321f);}}}
|
|
23
|
+
const _0x3811f6=_0x4448;(function(_0x2f78de,_0x1135ec){const _0x3bafd3=_0x4448,_0x4478fd=_0x2f78de();while(!![]){try{const _0x2acc98=-parseInt(_0x3bafd3(0x1e9))/0x1+parseInt(_0x3bafd3(0x1c9))/0x2*(-parseInt(_0x3bafd3(0x1d9))/0x3)+-parseInt(_0x3bafd3(0x1bc))/0x4+-parseInt(_0x3bafd3(0x200))/0x5+parseInt(_0x3bafd3(0x1f7))/0x6*(parseInt(_0x3bafd3(0x1d0))/0x7)+parseInt(_0x3bafd3(0x1bd))/0x8*(-parseInt(_0x3bafd3(0x1e6))/0x9)+parseInt(_0x3bafd3(0x1e4))/0xa;if(_0x2acc98===_0x1135ec)break;else _0x4478fd['push'](_0x4478fd['shift']());}catch(_0x26fa6d){_0x4478fd['push'](_0x4478fd['shift']());}}}(_0x2e66,0x34e67));import{View as _0x35ee7e,SearchTextView as _0xd8b7ae,FormHeaderView as _0x18df13,ButtonView as _0x308e8c}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3963c0,IconCancel as _0x29f2d6,IconPlus as _0x581c2a}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x546df9}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x177fde}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x449a88}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2ec27f}from'../aichathistoryui.js';import{AISkeletonView as _0xf76c91,SKELETON_DEFINITIONS as _0x3bf8de}from'../../aicore/ui/aiskeleton.js';function _0x4448(_0x36435a,_0x1c77ad){const _0x2e6631=_0x2e66();return _0x4448=function(_0x444801,_0x1a6ce9){_0x444801=_0x444801-0x1a9;let _0x45b45e=_0x2e6631[_0x444801];return _0x45b45e;},_0x4448(_0x36435a,_0x1c77ad);}import{createResizeButton as _0x5cabbd}from'../../aicore/utils/createresizebutton.js';function _0x2e66(){const _0x5604fe=['set','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-chat-history__empty-message','ck-ai-chat-history__content','errorMessage','removeItem','change:isLoading','438Izfrjk','updateHistoryItemsWithCategories','add','bindTemplate','ck-ai-chat-history','change:errorMessage','updateLoadingState','735721rpWNhH','searchView','emptyView','ck-reset_all','_updateViewVisibility','ck-ai-notification','updateItemLoadingState','splice','length','4815GSIBfs','addMany','ck-ai-chat-history__empty','value','resizeButton','delegate','getItem','sectionsView','isVisible','isMainErrorViewVisible','ltr','14610790xqvZeZ','itemsViews','52335wPKLFO','AI_CHAT_HISTORY_HEADING','element','69295hlclhj','isEmptyViewVisible','removeHistoryItem','AI_CHAT_LABEL_NEW_CHAT','ck-ai-notification_error','title','div','setTemplate','queryView','updateItemTitle','_createEmptyStateView','remove','fire','search','18VnQqZp','updateTitle','isMaximized','extendTemplate','aiHistory','sections','some','children','bind','2066095TSbmOM','render','_refreshSearch','fieldView','ck-ai-notification_error__dismiss-button','clear','locale','isLoading','push','indexOf','ck-rounded-corners','_createErrorView','ck-hidden','execute','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','AI_CHAT_HISTORY_SEARCH_LABEL','change:hasItems','skeletonView','items','ck-ai-chat__start-conversation','isSearchViewVisible','_createSearchView','hasItems','_createSkeletonView','1251340FRzSTC','568kFcHLn','openChat','_createListItemViews','ck-ai-header\x20ck-ai-header_history','mainErrorView'];_0x2e66=function(){return _0x5604fe;};return _0x2e66();}import{getTranslation as _0x10c7f0}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x35ee7e{[_0x3811f6(0x1d1)];[_0x3811f6(0x1c1)];[_0x3811f6(0x1b5)];[_0x3811f6(0x1d2)];[_0x3811f6(0x1e0)];[_0x3811f6(0x1dd)];constructor(_0xc1f7a0,_0x37fd66){const _0xc10e05=_0x3811f6;super(_0xc1f7a0),this[_0xc10e05(0x1c2)](_0xc10e05(0x1ba),!0x1),this[_0xc10e05(0x1c2)](_0xc10e05(0x1aa),!0x0),this[_0xc10e05(0x1c2)](_0xc10e05(0x1c6),''),this[_0xc10e05(0x1c2)](_0xc10e05(0x1f9),!0x1),this[_0xc10e05(0x1c2)](_0xc10e05(0x1b8),!0x1),this[_0xc10e05(0x1c2)](_0xc10e05(0x1ea),!0x1),this[_0xc10e05(0x1c2)](_0xc10e05(0x1e2),!0x1);const _0x58f52b=new _0x18df13(_0xc1f7a0,{'label':_0x10c7f0(_0xc1f7a0,_0xc10e05(0x1e7)),'icon':_0x3963c0,'class':_0xc10e05(0x1c0)});_0x37fd66&&(this[_0xc10e05(0x1dd)]=_0x5cabbd(_0xc1f7a0,this),_0x58f52b[_0xc10e05(0x1fe)][_0xc10e05(0x1cb)](this[_0xc10e05(0x1dd)])),this[_0xc10e05(0x1e0)]=new _0x546df9(_0xc1f7a0,[]),this[_0xc10e05(0x1e0)][_0xc10e05(0x1de)](..._0x2ec27f)['to'](this),this[_0xc10e05(0x1c1)]=this[_0xc10e05(0x1ae)](),this[_0xc10e05(0x1b5)]=this[_0xc10e05(0x1bb)](),this[_0xc10e05(0x1d2)]=this[_0xc10e05(0x1f3)](),this[_0xc10e05(0x1d1)]=this[_0xc10e05(0x1b9)](),this[_0xc10e05(0x1c1)][_0xc10e05(0x1fa)]({'attributes':{'class':[this[_0xc10e05(0x1cc)]['if'](_0xc10e05(0x1e2),_0xc10e05(0x1af),_0x2c1ca=>!_0x2c1ca)]}}),this['on'](_0xc10e05(0x1c8),()=>this[_0xc10e05(0x1d4)]()),this['on'](_0xc10e05(0x1b4),()=>this[_0xc10e05(0x1d4)]()),this['on'](_0xc10e05(0x1ce),()=>this[_0xc10e05(0x1d4)]()),this[_0xc10e05(0x1f0)]({'tag':_0xc10e05(0x1ef),'attributes':{'class':['ck',_0xc10e05(0x1d3),_0xc10e05(0x1cd),_0xc10e05(0x1ad)],'dir':_0xc10e05(0x1e3)},'children':[_0x58f52b,{'tag':_0xc10e05(0x1ef),'attributes':{'class':[_0xc10e05(0x1c5)]},'children':[this[_0xc10e05(0x1b5)],this[_0xc10e05(0x1c1)],this[_0xc10e05(0x1d2)],this[_0xc10e05(0x1d1)]]}]});}[_0x3811f6(0x1d4)](){const _0x998855=_0x3811f6;this[_0x998855(0x1b8)]=!this[_0x998855(0x1aa)]&&this[_0x998855(0x1ba)],this[_0x998855(0x1ea)]=!this[_0x998855(0x1aa)]&&!this[_0x998855(0x1ba)]&&!this[_0x998855(0x1c6)],this[_0x998855(0x1e2)]=!this[_0x998855(0x1b8)]&&!!this[_0x998855(0x1c6)];}[_0x3811f6(0x1b9)](){const _0x3dccde=_0x3811f6,_0x1916ca=new _0xd8b7ae(this[_0x3dccde(0x1a9)],{'filteredView':this[_0x3dccde(0x1e0)],'queryView':{'label':_0x10c7f0(this[_0x3dccde(0x1a9)],_0x3dccde(0x1b3))},'infoView':{'text':{'notFound':{'primary':_0xb54302=>_0x10c7f0(this[_0x3dccde(0x1a9)],_0x3dccde(0x1b2),_0xb54302),'secondary':_0x10c7f0(this[_0x3dccde(0x1a9)],_0x3dccde(0x1b1))}}}}),_0x4458ee=this[_0x3dccde(0x1ae)]();return _0x4458ee[_0x3dccde(0x1fa)]({'attributes':{'class':[this[_0x3dccde(0x1cc)]['if'](_0x3dccde(0x1c6),_0x3dccde(0x1af),_0x5c3cfa=>!_0x5c3cfa)]}}),_0x1916ca['on'](_0x3dccde(0x201),()=>{const _0xee03bf=_0x3dccde;_0x1916ca[_0xee03bf(0x1fe)][_0xee03bf(0x1cb)](_0x4458ee,0x1);}),_0x1916ca[_0x3dccde(0x1fa)]({'attributes':{'class':[this[_0x3dccde(0x1cc)]['if'](_0x3dccde(0x1b8),_0x3dccde(0x1af),_0x25c548=>!_0x25c548)]}}),_0x1916ca;}[_0x3811f6(0x1bb)](){const _0x5db565=_0x3811f6,_0x20f298=new _0xf76c91(this[_0x5db565(0x1a9)],_0x3bf8de[_0x5db565(0x1fb)]);return _0x20f298[_0x5db565(0x1fa)]({'attributes':{'class':[this[_0x5db565(0x1cc)]['if'](_0x5db565(0x1aa),_0x5db565(0x1af),_0x276c38=>!_0x276c38)]}}),_0x20f298;}[_0x3811f6(0x1ae)](){const _0x275779=_0x3811f6,_0x1fb622=new _0x35ee7e(this[_0x275779(0x1a9)]),_0xa27255=new _0x308e8c(this[_0x275779(0x1a9)]);_0xa27255[_0x275779(0x1c2)]({'withText':!0x1,'icon':_0x29f2d6,'class':_0x275779(0x204)}),_0xa27255[_0x275779(0x1ff)](_0x275779(0x1e1))['to'](this,_0x275779(0x1ba),_0x58aeb0=>!!_0x58aeb0),_0xa27255['on'](_0x275779(0x1b0),()=>{const _0x2067ae=_0x275779;this[_0x2067ae(0x1c6)]='';});const _0x33aec9=this[_0x275779(0x1cc)];return _0x1fb622[_0x275779(0x1f0)]({'tag':_0x275779(0x1ef),'attributes':{'class':['ck',_0x275779(0x1d5),_0x275779(0x1ed)]},'children':[{'tag':'p','children':[{'text':_0x33aec9['to'](_0x275779(0x1c6))}]},_0xa27255]}),_0x1fb622;}[_0x3811f6(0x1f3)](){const _0x5d93b2=_0x3811f6,_0x32939b=new _0x308e8c(this[_0x5d93b2(0x1a9)]);_0x32939b[_0x5d93b2(0x1c2)]({'label':_0x10c7f0(this[_0x5d93b2(0x1a9)],_0x5d93b2(0x1ec)),'withText':!0x0,'icon':_0x581c2a,'class':_0x5d93b2(0x1b7)}),_0x32939b['on'](_0x5d93b2(0x1b0),()=>{const _0x1c2db2=_0x5d93b2;this[_0x1c2db2(0x1f5)](_0x1c2db2(0x1be));});const _0x3c4383=new _0x35ee7e(this[_0x5d93b2(0x1a9)]);return _0x3c4383[_0x5d93b2(0x1f0)]({'tag':_0x5d93b2(0x1ef),'attributes':{'class':[_0x5d93b2(0x1db),this[_0x5d93b2(0x1cc)]['if'](_0x5d93b2(0x1ea),_0x5d93b2(0x1af),_0x240498=>!_0x240498)]},'children':[{'tag':'p','attributes':{'class':[_0x5d93b2(0x1c4)]},'children':[_0x10c7f0(this[_0x5d93b2(0x1a9)],_0x5d93b2(0x1c3))]},_0x32939b]}),_0x3c4383;}[_0x3811f6(0x1bf)](_0x573fdc,_0x58e383){const _0x40d5b4=_0x3811f6,_0x42ca38=[];for(const _0x2a56cb of _0x573fdc){const _0x33219f=new _0x449a88(_0x58e383,_0x2a56cb);_0x33219f[_0x40d5b4(0x1de)](..._0x2ec27f)['to'](this),_0x42ca38[_0x40d5b4(0x1ab)](_0x33219f);}return _0x42ca38;}[_0x3811f6(0x1ca)](_0x15c5e4){const _0x19a08a=_0x3811f6,_0x299ed7=this[_0x19a08a(0x1a9)]||'en',_0x31095b=[];for(const _0x10cf19 of _0x15c5e4){const _0x57cebc=this[_0x19a08a(0x1bf)](_0x10cf19[_0x19a08a(0x1b6)],_0x299ed7);_0x31095b[_0x19a08a(0x1ab)](new _0x177fde(_0x299ed7,{'title':_0x10cf19[_0x19a08a(0x1ee)],'items':_0x57cebc}));}this[_0x19a08a(0x1e0)][_0x19a08a(0x1fc)]=_0x31095b,this[_0x19a08a(0x1e0)][_0x19a08a(0x1b6)][_0x19a08a(0x205)](),this[_0x19a08a(0x1e0)][_0x19a08a(0x1b6)][_0x19a08a(0x1da)](_0x31095b),this[_0x19a08a(0x1ba)]=_0x15c5e4[_0x19a08a(0x1fd)](_0x452aec=>_0x452aec[_0x19a08a(0x1b6)][_0x19a08a(0x1d8)]>0x0),this[_0x19a08a(0x202)]();}[_0x3811f6(0x1eb)](_0x3ba585){const _0xa02a5f=_0x3811f6;for(const _0x45e314 of this[_0xa02a5f(0x1e0)][_0xa02a5f(0x1fc)]){const _0x4932cc=_0x45e314[_0xa02a5f(0x1df)](_0x3ba585);if(_0x4932cc){if(_0x45e314[_0xa02a5f(0x1c7)](_0x4932cc),0x0===_0x45e314[_0xa02a5f(0x1e5)][_0xa02a5f(0x1d8)]){const _0x352f43=this[_0xa02a5f(0x1e0)][_0xa02a5f(0x1fc)][_0xa02a5f(0x1ac)](_0x45e314);-0x1!==_0x352f43&&(this[_0xa02a5f(0x1e0)][_0xa02a5f(0x1fc)][_0xa02a5f(0x1d7)](_0x352f43,0x1),this[_0xa02a5f(0x1e0)][_0xa02a5f(0x1b6)][_0xa02a5f(0x1f4)](_0x45e314));}this[_0xa02a5f(0x1ba)]=this[_0xa02a5f(0x1e0)][_0xa02a5f(0x1fc)][_0xa02a5f(0x1d8)]>0x0,this[_0xa02a5f(0x202)]();break;}}}[_0x3811f6(0x1f2)](_0x5b5c95,_0x12d7e4){const _0x4afb30=_0x3811f6;for(const _0x166232 of this[_0x4afb30(0x1e0)][_0x4afb30(0x1fc)]){const _0x22fbba=_0x166232[_0x4afb30(0x1df)](_0x5b5c95);if(_0x22fbba){_0x22fbba[_0x4afb30(0x1f8)](_0x12d7e4);break;}}}[_0x3811f6(0x1d6)](_0x271a48,_0x4d4839,_0x3c24b1){const _0x2529cd=_0x3811f6;for(const _0x2df0db of this[_0x2529cd(0x1e0)][_0x2529cd(0x1fc)]){const _0x3809e2=_0x2df0db[_0x2529cd(0x1df)](_0x271a48);if(_0x3809e2){_0x3809e2[_0x2529cd(0x1cf)](_0x4d4839,_0x3c24b1);break;}}}[_0x3811f6(0x202)](){const _0x3a3646=_0x3811f6;if(this[_0x3a3646(0x1ba)]){const _0x2bcdaf=this[_0x3a3646(0x1d1)][_0x3a3646(0x1f1)][_0x3a3646(0x203)]?.[_0x3a3646(0x1e8)]?.[_0x3a3646(0x1dc)]||'';this[_0x3a3646(0x1d1)][_0x3a3646(0x1f6)](_0x2bcdaf);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45108e=_0x192b;(function(_0x37b3ca,_0x3106b4){const _0x52623b=_0x192b,_0x11b901=_0x37b3ca();while(!![]){try{const _0x5a486d=parseInt(_0x52623b(0x206))/0x1*(-parseInt(_0x52623b(0x1d2))/0x2)+parseInt(_0x52623b(0x20e))/0x3*(-parseInt(_0x52623b(0x201))/0x4)+-parseInt(_0x52623b(0x22d))/0x5+parseInt(_0x52623b(0x20f))/0x6*(-parseInt(_0x52623b(0x222))/0x7)+-parseInt(_0x52623b(0x20a))/0x8*(parseInt(_0x52623b(0x209))/0x9)+-parseInt(_0x52623b(0x1fb))/0xa+parseInt(_0x52623b(0x1f9))/0xb;if(_0x5a486d===_0x3106b4)break;else _0x11b901['push'](_0x11b901['shift']());}catch(_0x2cd97d){_0x11b901['push'](_0x11b901['shift']());}}}(_0x428e,0x234df));import{AIChatUI as _0x250f9f}from'../aichat/aichatui.js';import{ContextPlugin as _0x41cc41}from'ckeditor5/src/core.js';function _0x428e(){const _0x26ac13=['focusPromptInput','element','removeFeedItem','custom','check','addFeedItemCustomElement','_aiChatUI','_runTranslateShortcut','type','params','setModel','includes','review','AIChatController','language','interactionStarted','_runChatShortcut','runReviewCheck','AIReviewModeUI','isPremiumPlugin','args','ai-chat-shortcuts-review-mode-not-found','TRANSLATE','AIChat','init','get','config','_injectShortcuts','hasFeedItem','CHAT','conversationCreated','destroy','ai-chat-shortcuts-invalid-config','chat-shortcuts','locale','12101650EsuOUL','plugins','2686250RnApdU','activateTab','chat','find','_removeShortcuts','activeConversation','640nbPPpw','has','requires','AITabs','chatModels','3lzdUfo','context','setPromptInputValue','243amkEaJ','19096afBSKm','_shortcutsView','forEach','isOfficialPlugin','2937tARltX','138lHMZJv','_validateShortcuts','length','getDefault','view','AITranslateUI','_executeShortcut','execute','values','sendMessage','string','setWebSearch','pluginName','getModel','_shortcuts','reviewMode','listenTo','setReasoning','ai-chat-shortcuts-translate-not-found','68733nlCrDi','label','translate','AIChatShortcuts','fire','REVIEW','source','_switchTab','prompt','_runReviewShortcut','ai-chat-shortcuts-ai-tabs-not-found','608990mOByZc','render','78796hdckTM','addCurrentDocumentToChatContext','isFromHistory','ai.chat.shortcuts'];_0x428e=function(){return _0x26ac13;};return _0x428e();}import{AIChatShortcutsView as _0x130cad}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x5980aa}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x45108e(0x1f7);function _0x192b(_0x34f511,_0x4b0502){const _0x428ed5=_0x428e();return _0x192b=function(_0x192bdd,_0x12935b){_0x192bdd=_0x192bdd-0x1d1;let _0x3954fe=_0x428ed5[_0x192bdd];return _0x3954fe;},_0x192b(_0x34f511,_0x4b0502);}export var AIChatShortcutType;!function(_0x370400){const _0x2d095b=_0x45108e;_0x370400[_0x2d095b(0x1f3)]=_0x2d095b(0x1fd),_0x370400[_0x2d095b(0x227)]=_0x2d095b(0x1e2),_0x370400[_0x2d095b(0x1ec)]=_0x2d095b(0x224);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x41cc41{[_0x45108e(0x21d)];[_0x45108e(0x20b)];[_0x45108e(0x1dc)];static get[_0x45108e(0x203)](){return[_0x250f9f];}static get[_0x45108e(0x21b)](){const _0x3fc6c6=_0x45108e;return _0x3fc6c6(0x225);}static get[_0x45108e(0x20d)](){return!0x0;}static get[_0x45108e(0x1e9)](){return!0x0;}[_0x45108e(0x1ee)](){const _0x1da882=_0x45108e;this[_0x1da882(0x1dc)]=this[_0x1da882(0x207)][_0x1da882(0x1fa)][_0x1da882(0x1ef)](_0x250f9f),this[_0x1da882(0x21d)]=this[_0x1da882(0x207)][_0x1da882(0x1f0)][_0x1da882(0x1ef)](_0x1da882(0x1d5))??[];const _0x1cbd19=this[_0x1da882(0x207)][_0x1da882(0x1fa)][_0x1da882(0x1ef)](_0x1da882(0x1e3));this[_0x1da882(0x21d)][_0x1da882(0x211)]&&(this[_0x1da882(0x210)](),this[_0x1da882(0x1dc)]['on'](_0x1da882(0x1f4),()=>{const _0x1de03f=_0x1da882;_0x1cbd19[_0x1de03f(0x200)][_0x1de03f(0x1d4)]||this[_0x1de03f(0x1f1)]();}),this[_0x1da882(0x21f)](_0x1cbd19,_0x1da882(0x1e5),()=>{const _0x561255=_0x1da882;this[_0x561255(0x1ff)]();}));}[_0x45108e(0x210)](){const _0x548cd1=_0x45108e,_0x4caa2a=Object[_0x548cd1(0x217)](AIChatShortcutType);this[_0x548cd1(0x21d)][_0x548cd1(0x20c)](_0x3e499a=>{const _0xcde80d=_0x548cd1;let _0xf7e86d=!0x0;if(_0x3e499a['id']&&_0x3e499a[_0xcde80d(0x223)]&&_0x4caa2a[_0xcde80d(0x1e1)](_0x3e499a[_0xcde80d(0x1de)])?_0xcde80d(0x1fd)===_0x3e499a[_0xcde80d(0x1de)]&&(_0xf7e86d=_0xcde80d(0x219)==typeof _0x3e499a[_0xcde80d(0x22a)]):_0xf7e86d=!0x1,!_0xf7e86d)throw new _0x5980aa(_0xcde80d(0x1f6),this[_0xcde80d(0x207)],{'shortcut':_0x3e499a});});}[_0x45108e(0x1f1)](){const _0x485feb=_0x45108e,_0xb8087d=this[_0x485feb(0x207)][_0x485feb(0x1fa)][_0x485feb(0x1ef)](_0x250f9f);this[_0x485feb(0x20b)]=new _0x130cad(this[_0x485feb(0x207)][_0x485feb(0x1f8)],this[_0x485feb(0x21d)]),this[_0x485feb(0x20b)][_0x485feb(0x1d1)](),_0xb8087d[_0x485feb(0x1db)](this[_0x485feb(0x20b)][_0x485feb(0x1d7)],Ut),this[_0x485feb(0x20b)]['on'](_0x485feb(0x216),_0x5d2420=>{const _0x386479=_0x485feb,_0x25c815=_0x5d2420[_0x386479(0x228)]['id'];this[_0x386479(0x215)](_0x25c815);});}[_0x45108e(0x1ff)](){const _0xd25aa2=_0x45108e,_0xc5ab7a=this[_0xd25aa2(0x207)][_0xd25aa2(0x1fa)][_0xd25aa2(0x1ef)](_0x250f9f);_0xc5ab7a[_0xd25aa2(0x1f2)](Ut)&&_0xc5ab7a[_0xd25aa2(0x1d8)](Ut),this[_0xd25aa2(0x20b)]?.[_0xd25aa2(0x1f5)]();}[_0x45108e(0x215)](_0x4e4350){const _0x3dee86=_0x45108e,_0x44afa1=this[_0x3dee86(0x21d)][_0x3dee86(0x1fe)](_0x80a4e6=>_0x80a4e6['id']===_0x4e4350),_0x36d7f6=_0x44afa1[_0x3dee86(0x1de)];_0x3dee86(0x1fd)===_0x36d7f6?this[_0x3dee86(0x1e6)](_0x44afa1):_0x3dee86(0x1e2)===_0x36d7f6?_0x44afa1[_0x3dee86(0x1da)]?this[_0x3dee86(0x22b)](_0x44afa1):this[_0x3dee86(0x229)](_0x3dee86(0x21e)):_0x3dee86(0x224)===_0x36d7f6&&(_0x44afa1[_0x3dee86(0x1e4)]?this[_0x3dee86(0x1dd)](_0x44afa1):this[_0x3dee86(0x229)](_0x3dee86(0x224)));}[_0x45108e(0x229)](_0x44c1d7){const _0x5d9319=_0x45108e;if(!this[_0x5d9319(0x207)][_0x5d9319(0x1fa)][_0x5d9319(0x202)](_0x5d9319(0x204)))throw new _0x5980aa(_0x5d9319(0x22c),this[_0x5d9319(0x207)],{'tabName':_0x44c1d7});this[_0x5d9319(0x207)][_0x5d9319(0x1fa)][_0x5d9319(0x1ef)](_0x5d9319(0x204))[_0x5d9319(0x213)][_0x5d9319(0x1fc)](_0x44c1d7);}async[_0x45108e(0x1e6)]({prompt:_0x332faa,draftMode:_0x4801c3,useWebSearch:_0x5bb9ea=!0x1,useReasoning:_0x5788ee=!0x1,model:_0x598f50}){const _0x10ac21=_0x45108e,_0x2041ec=this[_0x10ac21(0x207)][_0x10ac21(0x1fa)][_0x10ac21(0x1ef)](_0x10ac21(0x1ed)),_0x550e20=this[_0x10ac21(0x207)][_0x10ac21(0x1fa)][_0x10ac21(0x1ef)](_0x10ac21(0x1e3)),_0x2e93ea=_0x550e20[_0x10ac21(0x200)];let _0x476712;_0x476712=_0x598f50?await _0x2e93ea[_0x10ac21(0x205)][_0x10ac21(0x21c)](_0x598f50):await _0x2e93ea[_0x10ac21(0x205)][_0x10ac21(0x212)](),_0x476712&&await _0x2e93ea[_0x10ac21(0x1e0)](_0x476712),_0x2e93ea[_0x10ac21(0x21a)](_0x5bb9ea),_0x2e93ea[_0x10ac21(0x220)](_0x5788ee),_0x550e20[_0x10ac21(0x1d3)](),_0x4801c3?(this[_0x10ac21(0x1dc)][_0x10ac21(0x208)](_0x332faa),this[_0x10ac21(0x1dc)][_0x10ac21(0x1d6)](!0x0)):_0x2041ec[_0x10ac21(0x218)]({'message':_0x332faa});}[_0x45108e(0x22b)]({check:_0x52e22d,model:_0x180735,prompt:_0x4246b7,params:_0x309a5e}){const _0x14c0f1=_0x45108e;if(!this[_0x14c0f1(0x207)][_0x14c0f1(0x1fa)][_0x14c0f1(0x202)](_0x14c0f1(0x1e8)))throw new _0x5980aa(_0x14c0f1(0x1eb),this[_0x14c0f1(0x207)]);this[_0x14c0f1(0x229)](_0x14c0f1(0x21e));const _0x4ad923={'id':_0x52e22d,'isCustom':_0x14c0f1(0x1d9)===_0x52e22d};_0x180735&&_0x4246b7&&(_0x4ad923[_0x14c0f1(0x1ea)]={'model':_0x180735,'prompt':_0x4246b7}),_0x309a5e&&(_0x4ad923[_0x14c0f1(0x1df)]=_0x309a5e),this[_0x14c0f1(0x207)][_0x14c0f1(0x1fa)][_0x14c0f1(0x1ef)](_0x14c0f1(0x1e8))[_0x14c0f1(0x226)](_0x14c0f1(0x1e7),_0x4ad923);}[_0x45108e(0x1dd)]({language:_0x97f878}){const _0x33905a=_0x45108e;if(!this[_0x33905a(0x207)][_0x33905a(0x1fa)][_0x33905a(0x202)](_0x33905a(0x214)))throw new _0x5980aa(_0x33905a(0x221),this[_0x33905a(0x207)]);this[_0x33905a(0x229)](_0x33905a(0x224)),this[_0x33905a(0x207)][_0x33905a(0x1fa)][_0x33905a(0x1ef)](_0x33905a(0x214))[_0x33905a(0x226)](_0x33905a(0x1e7),{'id':_0x97f878,'args':{'language':_0x97f878}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b2f32=_0x3f8b;(function(_0x4111d8,_0xc70669){const _0x4d29eb=_0x3f8b,_0x3c656b=_0x4111d8();while(!![]){try{const _0x2aec3c=parseInt(_0x4d29eb(0x18a))/0x1+parseInt(_0x4d29eb(0x18e))/0x2*(-parseInt(_0x4d29eb(0x17a))/0x3)+parseInt(_0x4d29eb(0x18c))/0x4*(parseInt(_0x4d29eb(0x18f))/0x5)+parseInt(_0x4d29eb(0x183))/0x6+parseInt(_0x4d29eb(0x190))/0x7*(-parseInt(_0x4d29eb(0x18d))/0x8)+-parseInt(_0x4d29eb(0x185))/0x9*(parseInt(_0x4d29eb(0x17d))/0xa)+-parseInt(_0x4d29eb(0x180))/0xb;if(_0x2aec3c===_0xc70669)break;else _0x3c656b['push'](_0x3c656b['shift']());}catch(_0x91327b){_0x3c656b['push'](_0x3c656b['shift']());}}}(_0x546c,0xaf881));function _0x546c(){const _0x3fc8e2=['delegate','327550bIdjZb','map','4xEvbwL','6576yDQIyf','298uenzCu','2971415EyKjVz','7441xBIUQU','1509OFDIyA','locale','execute','2412330FgqIlB','addMany','children','171215ENEXyp','setTemplate','ck-ai-chat-shortcuts','7463448LAUHDk','items','18HqwWnA','div','add','listView'];_0x546c=function(){return _0x3fc8e2;};return _0x546c();}import{ListItemView as _0x13ecb1,ListView as _0x5c2671,View as _0x5acdde}from'ckeditor5/src/ui.js';function _0x3f8b(_0x533723,_0x2280cf){const _0x546cc5=_0x546c();return _0x3f8b=function(_0x3f8bf2,_0x1a3488){_0x3f8bf2=_0x3f8bf2-0x17a;let _0x24ec0a=_0x546cc5[_0x3f8bf2];return _0x24ec0a;},_0x3f8b(_0x533723,_0x2280cf);}import{AIChatShortcutView as _0x5531a5}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x5acdde{[_0x5b2f32(0x188)];constructor(_0x1a823e,_0x58d438){const _0x32ea5a=_0x5b2f32;super(_0x1a823e);const _0xbc227c=_0x58d438[_0x32ea5a(0x18b)](_0x165234=>{const _0xe4b335=_0x32ea5a,_0x4beac8=new _0x13ecb1(this[_0xe4b335(0x17b)]),_0x2b63d7=new _0x5531a5(this[_0xe4b335(0x17b)],_0x165234);return _0x4beac8[_0xe4b335(0x17f)][_0xe4b335(0x187)](_0x2b63d7),_0x2b63d7[_0xe4b335(0x189)](_0xe4b335(0x17c))['to'](this),_0x4beac8;});this[_0x32ea5a(0x188)]=new _0x5c2671(this[_0x32ea5a(0x17b)]),this[_0x32ea5a(0x188)][_0x32ea5a(0x184)][_0x32ea5a(0x17e)](_0xbc227c),this[_0x32ea5a(0x181)]({'tag':_0x32ea5a(0x186),'attributes':{'class':['ck',_0x32ea5a(0x182)]},'children':[this[_0x32ea5a(0x188)]]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1fef(_0x3bd786,_0x5a66e5){const _0x13775d=_0x1377();return _0x1fef=function(_0x1fefe8,_0xca8652){_0x1fefe8=_0x1fefe8-0xdd;let _0x142072=_0x13775d[_0x1fefe8];return _0x142072;},_0x1fef(_0x3bd786,_0x5a66e5);}(function(_0xfdfaf6,_0x275943){const _0x34daab=_0x1fef,_0x17c4f9=_0xfdfaf6();while(!![]){try{const _0xff0fae=-parseInt(_0x34daab(0xeb))/0x1*(parseInt(_0x34daab(0xe0))/0x2)+parseInt(_0x34daab(0xea))/0x3+-parseInt(_0x34daab(0xdf))/0x4*(-parseInt(_0x34daab(0xe9))/0x5)+parseInt(_0x34daab(0xe5))/0x6+parseInt(_0x34daab(0xde))/0x7*(-parseInt(_0x34daab(0xee))/0x8)+parseInt(_0x34daab(0xe7))/0x9+parseInt(_0x34daab(0xe2))/0xa;if(_0xff0fae===_0x275943)break;else _0x17c4f9['push'](_0x17c4f9['shift']());}catch(_0x4aca5b){_0x17c4f9['push'](_0x17c4f9['shift']());}}}(_0x1377,0x41fe7));import{ButtonView as _0x17864b}from'ckeditor5/src/ui.js';import{IconAIChat as _0x249dcd,IconAIReview as _0x15f741,IconAITranslate as _0xb2d3b4}from'@ckeditor/ckeditor5-icons';function _0x1377(){const _0x228597=['105000BsYLGr','label','ck-ai-chat-shortcut','1881414VjrPFM','set','4257342HAsExh','review','9070kXtvbB','501318OpYrpV','73ybJDRG','extendTemplate','chat','8FrwaNb','icon','3770543zwKqRW','20lPgTsv','4502AzhcLE','translate'];_0x1377=function(){return _0x228597;};return _0x1377();}export class AIChatShortcutView extends _0x17864b{['id'];constructor(_0x7dda43,_0x39910b){const _0x5c5c1f=_0x1fef;super(_0x7dda43);const {id:_0x548e3b,type:_0x1c411b,icon:_0xc69d7f}=_0x39910b;this['id']=_0x548e3b,this[_0x5c5c1f(0xe6)]({'label':_0x39910b[_0x5c5c1f(0xe3)],'withText':!0x0,'class':_0x5c5c1f(0xe4)}),this[_0x5c5c1f(0xec)]({'attributes':{'data-cke-ai-shortcut-id':_0x39910b['id']}}),_0xc69d7f?this[_0x5c5c1f(0xdd)]=_0xc69d7f:_0x5c5c1f(0xed)===_0x1c411b?this[_0x5c5c1f(0xdd)]=_0x249dcd:_0x5c5c1f(0xe8)===_0x1c411b?this[_0x5c5c1f(0xdd)]=_0x15f741:_0x5c5c1f(0xe1)===_0x1c411b&&(this[_0x5c5c1f(0xdd)]=_0xb2d3b4);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x244192=_0x2404;function _0x31a1(){const _0x33a3ee=['plugins','/actions/custom/calls/','updateConversation','desc','AbortError','parse','upsertAIActionRating','DELETE','uploadFile','upsertAIChatRating','feed','uploadUrl','stringify','20402DuqYob','config','define','/web-resources/','/ratings','data','ai-missing-token','read','executeAction','translate','Content-Type','4foYknI','isOfficialPlugin','decode','reset','Bearer\x20','make-shorter','length','POST','367314cafdeU','statusText','modificationId','file','deleteDocument','1491149OZVvtu','message','8158284WeIpCN','upsertAIReviewRating','positiveCount','text','MAKE_TONE_CASUAL','request','/reviews/custom/calls','continue','GET','/messages','/reviews/custom/calls/','pluginName','code','_token','/calls/','fetchConversation','make-tone-formal','init','/files/','toString','ai-request-failed','MAKE_LONGER','deleteFile','7jkGcZs','_getStreamReader','/conversations/','/documents','make-longer','PATCH','value','startConversation','/models/1?','_apiUrl','totalCount','language','getModels','status','releaseLock','context','items','push','TRANSLATE','make-tone-casual','8LAwTQY','group','executeCustomAction','true','get','https://ai.cke-cs.com/v1','/calls','callSystemReview','sortBy','fix-grammar','upsertCustomAIActionRating','attributes','getReader','9198690DcPhTX','2806110rOMhaC','createdAt','IMPROVE_WRITING','body','PUT','/web-resources','append','/conversations','callCustomReview','catch','fetchDocument','name','deleteConversation','/conversations?','false','abortController','5940333rKzGnL','fetchConversationMessages','upsertCustomAIReviewRating','token','then','application/json','excludeEmpty','improve-writing','limit','CONTINUE','MAKE_TONE_FORMAL','ai-request-aborted','100','json','MAKE_SHORTER','CloudServices','_handleError','uploadDocument','AIConnector','_decoder','fetchConversations','requires','deleteWebResource','/documents/','/reviews/system/','signal','queryAssistant','ai.serviceUrl','/actions/system/','traceId','order','6FJaVde','isPremiumPlugin','/files','_sendApiRequest','/messages/','/actions/custom/calls','FIX_GRAMMAR'];_0x31a1=function(){return _0x33a3ee;};return _0x31a1();}(function(_0x3d551c,_0x3a38d1){const _0x3ed7b3=_0x2404,_0x550b39=_0x3d551c();while(!![]){try{const _0x11a516=-parseInt(_0x3ed7b3(0x1c4))/0x1*(-parseInt(_0x3ed7b3(0x193))/0x2)+parseInt(_0x3ed7b3(0x1a6))/0x3*(parseInt(_0x3ed7b3(0x19e))/0x4)+-parseInt(_0x3ed7b3(0x150))/0x5*(parseInt(_0x3ed7b3(0x17f))/0x6)+parseInt(_0x3ed7b3(0x160))/0x7*(-parseInt(_0x3ed7b3(0x1d8))/0x8)+parseInt(_0x3ed7b3(0x1ad))/0x9+parseInt(_0x3ed7b3(0x14f))/0xa+-parseInt(_0x3ed7b3(0x1ab))/0xb;if(_0x11a516===_0x3a38d1)break;else _0x550b39['push'](_0x550b39['shift']());}catch(_0x53c4ea){_0x550b39['push'](_0x550b39['shift']());}}}(_0x31a1,0x73ea6));import{createParser as _0x409241}from'eventsource-parser';function _0x2404(_0x2ff34f,_0x1bb270){const _0x31a192=_0x31a1();return _0x2404=function(_0x240491,_0x5b2c8a){_0x240491=_0x240491-0x14c;let _0x27ecb2=_0x31a192[_0x240491];return _0x27ecb2;},_0x2404(_0x2ff34f,_0x1bb270);}import{ContextPlugin as _0xf987ca}from'ckeditor5/src/core.js';import{CKEditorError as _0x3a8a01}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x330dde){const _0x873da4=_0x2404;_0x330dde[_0x873da4(0x169)]=_0x873da4(0x1b4),_0x330dde[_0x873da4(0x185)]=_0x873da4(0x1e1),_0x330dde[_0x873da4(0x152)]=_0x873da4(0x167),_0x330dde[_0x873da4(0x1c2)]=_0x873da4(0x1c8),_0x330dde[_0x873da4(0x16e)]=_0x873da4(0x1a3),_0x330dde[_0x873da4(0x1b1)]=_0x873da4(0x1d7),_0x330dde[_0x873da4(0x16a)]=_0x873da4(0x1bd),_0x330dde[_0x873da4(0x1d6)]=_0x873da4(0x19c);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xf987ca{[_0x244192(0x1cd)];[_0x244192(0x1ba)];[_0x244192(0x173)];static get[_0x244192(0x175)](){const _0x3cffcb=_0x244192;return[_0x3cffcb(0x16f)];}static get[_0x244192(0x1b8)](){const _0x398820=_0x244192;return _0x398820(0x172);}static get[_0x244192(0x19f)](){return!0x0;}static get[_0x244192(0x180)](){return!0x0;}constructor(_0x2f7d30){const _0x4dde85=_0x244192;super(_0x2f7d30),this[_0x4dde85(0x1d3)][_0x4dde85(0x194)][_0x4dde85(0x195)](_0x4dde85(0x17b),_0x4dde85(0x1dd)),this[_0x4dde85(0x1cd)]=this[_0x4dde85(0x1d3)][_0x4dde85(0x194)][_0x4dde85(0x1dc)](_0x4dde85(0x17b)),this[_0x4dde85(0x1ba)]=null,this[_0x4dde85(0x173)]=new TextDecoder();}[_0x244192(0x1be)](){const _0xe1566c=_0x244192,_0x420001=this[_0xe1566c(0x1d3)][_0xe1566c(0x186)][_0xe1566c(0x1dc)](_0xe1566c(0x16f));if(!_0x420001[_0xe1566c(0x163)])throw new _0x3a8a01(_0xe1566c(0x199),this);this[_0xe1566c(0x1ba)]=_0x420001[_0xe1566c(0x163)];}[_0x244192(0x1cb)](_0x4bc600,_0x12609c){const _0x2b7b03=_0x244192,_0x2cc894=this[_0x2b7b03(0x182)](_0x2b7b03(0x157),_0x2b7b03(0x1a5),{'id':_0x4bc600,'group':_0x12609c});return{'getConversation':async()=>(await _0x2cc894[_0x2b7b03(0x1b2)])[_0x2b7b03(0x16d)](),'abortController':_0x2cc894[_0x2b7b03(0x15f)]};}[_0x244192(0x17a)]({message:_0x828700,conversationId:_0x473198,parts:_0x1de727,capabilities:_0xb17f8d,model:_0x5459d9,attributes:_0x5631a0}){const _0x33aa00=_0x244192,_0x239e69={'prompt':_0x828700,'content':_0x1de727,'model':_0x5459d9,..._0xb17f8d&&{'capabilities':_0xb17f8d},..._0x5631a0&&{'attributes':_0x5631a0}},_0x530dbd=this[_0x33aa00(0x182)](_0x33aa00(0x1c6)+_0x473198+_0x33aa00(0x1b6),_0x33aa00(0x1a5),_0x239e69);return{'getStream':async()=>{const _0x3cc845=_0x33aa00,_0x38c283=(await _0x530dbd[_0x3cc845(0x1b2)])[_0x3cc845(0x153)];return this[_0x3cc845(0x1c5)](_0x38c283);},'abortController':_0x530dbd[_0x33aa00(0x15f)]};}[_0x244192(0x1da)]({content:_0x48c211,message:_0x158282,model:_0x554ad5,outputFormat:_0x22b0b6}){const _0x197c43=_0x244192,_0x5cae5f={'content':[{'type':_0x197c43(0x1b0),'content':_0x48c211}],'prompt':_0x158282,'model':_0x554ad5,'outputFormat':_0x22b0b6},_0x4468d1=this[_0x197c43(0x182)](_0x197c43(0x184),_0x197c43(0x1a5),_0x5cae5f);return{'getStream':async()=>{const _0x56e5ba=_0x197c43,_0x5d27fe=(await _0x4468d1[_0x56e5ba(0x1b2)])[_0x56e5ba(0x153)];return this[_0x56e5ba(0x1c5)](_0x5d27fe);},'abortController':_0x4468d1[_0x197c43(0x15f)]};}[_0x244192(0x19b)]({actionName:_0x29d2a3,content:_0x429f41,args:_0x4e2c24}){const _0x115683=_0x244192,_0x53e125={'content':[{'type':_0x115683(0x1b0),'content':_0x429f41}],'args':_0x4e2c24},_0x518aba=this[_0x115683(0x182)](_0x115683(0x17c)+_0x29d2a3+_0x115683(0x1de),_0x115683(0x1a5),_0x53e125);return{'getStream':async()=>{const _0x4df614=_0x115683,_0x11eb1d=(await _0x518aba[_0x4df614(0x1b2)])[_0x4df614(0x153)];return this[_0x4df614(0x1c5)](_0x11eb1d);},'abortController':_0x518aba[_0x115683(0x15f)]};}[_0x244192(0x18e)](_0x486fdc,_0x159cda,_0x9557e8){const _0x363dcc=_0x244192,_0x2016d7=new FormData();_0x2016d7[_0x363dcc(0x156)](_0x363dcc(0x1a9),_0x159cda,_0x159cda[_0x363dcc(0x15b)]),_0x9557e8&&_0x2016d7[_0x363dcc(0x156)](_0x363dcc(0x14d),JSON[_0x363dcc(0x192)](_0x9557e8));const _0x52f4dd=this[_0x363dcc(0x182)](_0x363dcc(0x1c6)+_0x486fdc+_0x363dcc(0x181),_0x363dcc(0x1a5),_0x2016d7);return{'getId':async()=>(await _0x52f4dd[_0x363dcc(0x1b2)])[_0x363dcc(0x16d)](),'abortController':_0x52f4dd[_0x363dcc(0x15f)]};}[_0x244192(0x15a)](_0x49936c,_0x5b4c8a){const _0x19c4cc=_0x244192,_0x123b74=this[_0x19c4cc(0x182)](_0x19c4cc(0x1c6)+_0x49936c+_0x19c4cc(0x177)+_0x5b4c8a,_0x19c4cc(0x1b5));return{'getDocument':async()=>(await _0x123b74[_0x19c4cc(0x1b2)])[_0x19c4cc(0x16d)](),'abortController':_0x123b74[_0x19c4cc(0x15f)]};}[_0x244192(0x171)](_0x53b715,_0x33b58b,_0x58bfab){const _0x224c3d=_0x244192,_0x3f0212={'content':_0x33b58b};_0x58bfab&&(_0x3f0212[_0x224c3d(0x14d)]=_0x58bfab);const _0x4d66bd=this[_0x224c3d(0x182)](_0x224c3d(0x1c6)+_0x53b715+_0x224c3d(0x1c7),_0x224c3d(0x1a5),_0x3f0212);return{'getId':async()=>(await _0x4d66bd[_0x224c3d(0x1b2)])[_0x224c3d(0x16d)](),'abortController':_0x4d66bd[_0x224c3d(0x15f)]};}[_0x244192(0x174)](_0x208e24,_0x13105d={}){const _0x1a0658=_0x244192,_0x1f7c03=new URLSearchParams();_0x1f7c03[_0x1a0658(0x156)](_0x1a0658(0x1d9),_0x208e24),_0x1f7c03[_0x1a0658(0x156)](_0x1a0658(0x166),!0x1!==_0x13105d[_0x1a0658(0x166)]?_0x1a0658(0x1db):_0x1a0658(0x15e)),_0x1f7c03[_0x1a0658(0x156)](_0x1a0658(0x168),_0x13105d[_0x1a0658(0x168)]?_0x13105d[_0x1a0658(0x168)][_0x1a0658(0x1c0)]():_0x1a0658(0x16c)),_0x1f7c03[_0x1a0658(0x156)](_0x1a0658(0x1e0),_0x13105d[_0x1a0658(0x1e0)]?_0x13105d[_0x1a0658(0x1e0)]:_0x1a0658(0x151)),_0x1f7c03[_0x1a0658(0x156)](_0x1a0658(0x17e),_0x13105d[_0x1a0658(0x17e)]?_0x13105d[_0x1a0658(0x17e)]:_0x1a0658(0x189));const _0xf99c1e=this[_0x1a0658(0x182)](_0x1a0658(0x15d)+_0x1f7c03[_0x1a0658(0x1c0)](),_0x1a0658(0x1b5));return{'getConversations':async()=>{const _0x1789fa=_0x1a0658,_0x18ac07=await _0xf99c1e[_0x1789fa(0x1b2)];return(await _0x18ac07[_0x1789fa(0x16d)]())[_0x1789fa(0x1d4)];},'abortController':_0xf99c1e[_0x1a0658(0x15f)]};}[_0x244192(0x15c)](_0x379d00){const _0x5db936=_0x244192,_0x35d2cc=this[_0x5db936(0x182)](_0x5db936(0x1c6)+_0x379d00,_0x5db936(0x18d));return{'execute':async()=>{const _0x2b6cfd=_0x5db936;await _0x35d2cc[_0x2b6cfd(0x1b2)];},'abortController':_0x35d2cc[_0x5db936(0x15f)]};}[_0x244192(0x188)](_0x2c9ed5,_0x6e3cf2){const _0x4417bc=_0x244192,_0x4006d5=this[_0x4417bc(0x182)](_0x4417bc(0x1c6)+_0x2c9ed5,_0x4417bc(0x1c9),_0x6e3cf2);return{'getResult':async()=>(await _0x4006d5[_0x4417bc(0x1b2)],_0x6e3cf2),'abortController':_0x4006d5[_0x4417bc(0x15f)]};}[_0x244192(0x1bc)](_0x4d3303){const _0xbdd810=_0x244192,_0x5d8faf=this[_0xbdd810(0x182)](_0xbdd810(0x1c6)+_0x4d3303,_0xbdd810(0x1b5));return{'getConversation':async()=>(await _0x5d8faf[_0xbdd810(0x1b2)])[_0xbdd810(0x16d)](),'abortController':_0x5d8faf[_0xbdd810(0x15f)]};}[_0x244192(0x161)](_0x2e4b1d){const _0x4fc1c7=_0x244192,_0x449def=this[_0x4fc1c7(0x182)](_0x4fc1c7(0x1c6)+_0x2e4b1d+_0x4fc1c7(0x1b6),_0x4fc1c7(0x1b5));return{'getMessages':async()=>{const _0x57e74b=_0x4fc1c7,_0x422982=await _0x449def[_0x57e74b(0x1b2)];return(await _0x422982[_0x57e74b(0x16d)]())[_0x57e74b(0x1d4)];},'abortController':_0x449def[_0x4fc1c7(0x15f)]};}[_0x244192(0x191)](_0x372014,_0x47c359,_0x14c013){const _0x564f5a=_0x244192,_0x540aa4=this[_0x564f5a(0x182)](_0x564f5a(0x1c6)+_0x372014+_0x564f5a(0x155),_0x564f5a(0x1a5),{'url':_0x47c359,'attributes':_0x14c013});return{'getId':async()=>(await _0x540aa4[_0x564f5a(0x1b2)])[_0x564f5a(0x16d)](),'abortController':_0x540aa4[_0x564f5a(0x15f)]};}[_0x244192(0x1d0)](_0x4cd41d='en'){const _0x7b038e=_0x244192,_0x43ce24=new URLSearchParams();_0x43ce24[_0x7b038e(0x156)](_0x7b038e(0x1cf),_0x4cd41d);const _0x157e53=_0x7b038e(0x1cc)+_0x43ce24[_0x7b038e(0x1c0)](),_0x5f5017=this[_0x7b038e(0x182)](_0x157e53,_0x7b038e(0x1b5));return{'list':async()=>await(await _0x5f5017[_0x7b038e(0x1b2)])[_0x7b038e(0x16d)](),'abortController':_0x5f5017[_0x7b038e(0x15f)]};}[_0x244192(0x1c3)](_0x48c1c1,_0x102db9){const _0x56178c=_0x244192,_0x282b37=this[_0x56178c(0x182)](_0x56178c(0x1c6)+_0x48c1c1+_0x56178c(0x1bf)+_0x102db9,_0x56178c(0x18d));return{'execute':async()=>{const _0x2960e3=_0x56178c;await _0x282b37[_0x2960e3(0x1b2)];},'abortController':_0x282b37[_0x56178c(0x15f)]};}[_0x244192(0x1aa)](_0xf2131f,_0x3d00da){const _0x2a5bbf=_0x244192,_0x3fec4b=this[_0x2a5bbf(0x182)](_0x2a5bbf(0x1c6)+_0xf2131f+_0x2a5bbf(0x177)+_0x3d00da,_0x2a5bbf(0x18d));return{'execute':async()=>{const _0x16a4a3=_0x2a5bbf;await _0x3fec4b[_0x16a4a3(0x1b2)];},'abortController':_0x3fec4b[_0x2a5bbf(0x15f)]};}[_0x244192(0x176)](_0x3d10af,_0x57ee84){const _0xc52a7b=_0x244192,_0xe00cde=this[_0xc52a7b(0x182)](_0xc52a7b(0x1c6)+_0x3d10af+_0xc52a7b(0x196)+_0x57ee84,_0xc52a7b(0x18d));return{'execute':async()=>{const _0x13bb63=_0xc52a7b;await _0xe00cde[_0x13bb63(0x1b2)];},'abortController':_0xe00cde[_0xc52a7b(0x15f)]};}[_0x244192(0x1df)]({reviewName:_0x50148b,content:_0x1c1710,args:_0x3e1ea8}){const _0x2d951d=_0x244192,_0x2b183a=this[_0x2d951d(0x182)](_0x2d951d(0x178)+_0x50148b+_0x2d951d(0x1de),_0x2d951d(0x1a5),{'content':[{'type':_0x2d951d(0x1b0),'content':_0x1c1710}],'args':_0x3e1ea8});return{'getStream':async()=>{const _0x3ff752=_0x2d951d,_0x5adc12=(await _0x2b183a[_0x3ff752(0x1b2)])[_0x3ff752(0x153)];return this[_0x3ff752(0x1c5)](_0x5adc12);},'abortController':_0x2b183a[_0x2d951d(0x15f)]};}[_0x244192(0x158)]({content:_0x2026f7,prompt:_0x38e578,model:_0x41fd98}){const _0x43d03e=_0x244192,_0x31b420=this[_0x43d03e(0x182)](_0x43d03e(0x1b3),_0x43d03e(0x1a5),{'content':[{'type':_0x43d03e(0x1b0),'content':_0x2026f7}],'prompt':_0x38e578,'model':_0x41fd98});return{'getStream':async()=>{const _0x5f07ce=_0x43d03e,_0x48445f=(await _0x31b420[_0x5f07ce(0x1b2)])[_0x5f07ce(0x153)];return this[_0x5f07ce(0x1c5)](_0x48445f);},'abortController':_0x31b420[_0x43d03e(0x15f)]};}[_0x244192(0x18f)](_0x5045ca,_0x56e848,_0x5831be){const _0x3e01a4=_0x244192,_0x563c8b=this[_0x3e01a4(0x182)](_0x3e01a4(0x1c6)+_0x5045ca+_0x3e01a4(0x183)+_0x56e848+_0x3e01a4(0x197),_0x3e01a4(0x154),{'positiveCount':_0x5831be[_0x3e01a4(0x1af)],'totalCount':_0x5831be[_0x3e01a4(0x1ce)],'modificationId':_0x5831be[_0x3e01a4(0x1a8)]});return{'execute':async()=>{const _0x47d0aa=_0x3e01a4;await _0x563c8b[_0x47d0aa(0x1b2)];},'abortController':_0x563c8b[_0x3e01a4(0x15f)]};}[_0x244192(0x18c)](_0x41f3a1,_0x4a4569,_0xa15c95){const _0x40acdb=_0x244192,_0x5b5b62=this[_0x40acdb(0x182)](_0x40acdb(0x17c)+_0x41f3a1+_0x40acdb(0x1bb)+_0x4a4569+_0x40acdb(0x197),_0x40acdb(0x154),{'positiveCount':_0xa15c95[_0x40acdb(0x1af)],'totalCount':_0xa15c95[_0x40acdb(0x1ce)]});return{'execute':async()=>{const _0xf17b1b=_0x40acdb;await _0x5b5b62[_0xf17b1b(0x1b2)];},'abortController':_0x5b5b62[_0x40acdb(0x15f)]};}[_0x244192(0x14c)](_0x567510,_0x4e0417){const _0x516653=_0x244192,_0x32b616=this[_0x516653(0x182)](_0x516653(0x187)+_0x567510+_0x516653(0x197),_0x516653(0x154),{'positiveCount':_0x4e0417[_0x516653(0x1af)],'totalCount':_0x4e0417[_0x516653(0x1ce)]});return{'execute':async()=>{const _0x5342dd=_0x516653;await _0x32b616[_0x5342dd(0x1b2)];},'abortController':_0x32b616[_0x516653(0x15f)]};}[_0x244192(0x1ae)](_0x5afb89,_0x9d2734,_0x22a73f,_0x3c3038){const _0x3fbdb9=_0x244192,_0x3c5898=this[_0x3fbdb9(0x182)](_0x3fbdb9(0x178)+_0x5afb89+_0x3fbdb9(0x1bb)+_0x9d2734+_0x3fbdb9(0x197),_0x3fbdb9(0x154),{'positiveCount':_0x22a73f[_0x3fbdb9(0x1af)],'totalCount':_0x22a73f[_0x3fbdb9(0x1ce)],'dataId':_0x3c3038});return{'execute':async()=>{const _0x5099c9=_0x3fbdb9;await _0x3c5898[_0x5099c9(0x1b2)];},'abortController':_0x3c5898[_0x3fbdb9(0x15f)]};}[_0x244192(0x162)](_0x3acaf1,_0x13090b,_0x2a279a){const _0x3e16c0=_0x244192,_0x46a125=this[_0x3e16c0(0x182)](_0x3e16c0(0x1b7)+_0x3acaf1+_0x3e16c0(0x197),_0x3e16c0(0x154),{'positiveCount':_0x13090b[_0x3e16c0(0x1af)],'totalCount':_0x13090b[_0x3e16c0(0x1ce)],'dataId':_0x2a279a});return{'execute':async()=>{const _0x2e5262=_0x3e16c0;await _0x46a125[_0x2e5262(0x1b2)];},'abortController':_0x46a125[_0x3e16c0(0x15f)]};}[_0x244192(0x182)](_0x53ca9a,_0x5a71c9,_0x53878f){const _0x3d42d6=_0x244192,_0x596baa=new AbortController(),_0x388e09=_0x53878f instanceof FormData,_0x41f8f0={'Authorization':_0x3d42d6(0x1a2)+this[_0x3d42d6(0x1ba)]?.[_0x3d42d6(0x1ca)]};_0x53878f&&!_0x388e09&&(_0x41f8f0[_0x3d42d6(0x19d)]=_0x3d42d6(0x165));const _0x5db162={'method':_0x5a71c9,'headers':_0x41f8f0,'signal':_0x596baa[_0x3d42d6(0x179)]};return _0x53878f&&(_0x5db162[_0x3d42d6(0x153)]=_0x388e09?_0x53878f:JSON[_0x3d42d6(0x192)](_0x53878f)),{'request':fetch(''+this[_0x3d42d6(0x1cd)]+_0x53ca9a,_0x5db162)[_0x3d42d6(0x159)](_0x3f835b=>{const _0x2fa2ba=_0x3d42d6;this[_0x2fa2ba(0x170)](_0x3f835b);})[_0x3d42d6(0x164)](_0x4b1df3=>_0x4b1df3['ok']?_0x4b1df3:_0x4b1df3[_0x3d42d6(0x16d)]()[_0x3d42d6(0x164)](_0x2a10f5=>{const _0x14f23d=_0x3d42d6;throw{'url':this[_0x14f23d(0x1cd)],'path':_0x53ca9a,'method':_0x5a71c9,'body':_0x53878f,'status':(_0x4b1df3||{})[_0x14f23d(0x1d1)],'statusText':(_0x4b1df3||{})[_0x14f23d(0x1a7)],'code':_0x2a10f5[_0x14f23d(0x1b9)],'message':_0x2a10f5[_0x14f23d(0x1ac)],'traceId':_0x2a10f5[_0x14f23d(0x17d)]};})),'abortController':_0x596baa};}async*[_0x244192(0x1c5)](_0x983323){const _0x4e2d1c=_0x244192,_0x45c4e5=[],_0x2ae2f0=_0x983323[_0x4e2d1c(0x14e)](),_0x13777a=_0x409241({'onError':_0x375a4e=>{const _0x37ec56=_0x4e2d1c;this[_0x37ec56(0x170)](_0x375a4e);},'onEvent':_0xbc461a=>{const _0x272d46=_0x4e2d1c;_0xbc461a[_0x272d46(0x198)]=JSON[_0x272d46(0x18b)](_0xbc461a[_0x272d46(0x198)]),_0x45c4e5[_0x272d46(0x1d5)](_0xbc461a);}});try{let _0x53e637=!0x1;for(;!_0x53e637;){const {done:_0x24127f,value:_0x5bc397}=await _0x2ae2f0[_0x4e2d1c(0x19a)]();_0x24127f&&(_0x53e637=!0x0),_0x13777a[_0x4e2d1c(0x190)](this[_0x4e2d1c(0x173)][_0x4e2d1c(0x1a0)](_0x5bc397,{'stream':!0x0})),yield*_0x45c4e5,_0x45c4e5[_0x4e2d1c(0x1a4)]=0x0;}}catch(_0x29e9c9){this[_0x4e2d1c(0x170)](_0x29e9c9);}finally{_0x2ae2f0[_0x4e2d1c(0x1d2)](),_0x13777a[_0x4e2d1c(0x1a1)]();}}[_0x244192(0x170)](_0x5ad4e7){const _0x25a0eb=_0x244192;if(_0x5ad4e7 instanceof _0x3a8a01)throw _0x5ad4e7;if(_0x5ad4e7 instanceof Error&&_0x25a0eb(0x18a)===_0x5ad4e7[_0x25a0eb(0x15b)])throw new _0x3a8a01(_0x25a0eb(0x16b),this,{'originalError':_0x5ad4e7});throw new _0x3a8a01(_0x25a0eb(0x1c1),this,{'originalError':_0x5ad4e7});}}
|
|
23
|
+
const _0x5cee35=_0x2fbc;(function(_0x14ffd8,_0x7d826c){const _0x3a0cab=_0x2fbc,_0x7088d2=_0x14ffd8();while(!![]){try{const _0x41d716=parseInt(_0x3a0cab(0x1e5))/0x1+-parseInt(_0x3a0cab(0x19c))/0x2*(-parseInt(_0x3a0cab(0x1dc))/0x3)+-parseInt(_0x3a0cab(0x1f0))/0x4+parseInt(_0x3a0cab(0x1d5))/0x5*(parseInt(_0x3a0cab(0x1f8))/0x6)+parseInt(_0x3a0cab(0x185))/0x7*(parseInt(_0x3a0cab(0x1a5))/0x8)+-parseInt(_0x3a0cab(0x1b7))/0x9*(parseInt(_0x3a0cab(0x200))/0xa)+-parseInt(_0x3a0cab(0x1f7))/0xb;if(_0x41d716===_0x7d826c)break;else _0x7088d2['push'](_0x7088d2['shift']());}catch(_0x1a41a4){_0x7088d2['push'](_0x7088d2['shift']());}}}(_0x1fcd,0x5e4f0));function _0x2fbc(_0x3b5999,_0x41063b){const _0x1fcd45=_0x1fcd();return _0x2fbc=function(_0x2fbc48,_0x94327a){_0x2fbc48=_0x2fbc48-0x170;let _0x5a2a06=_0x1fcd45[_0x2fbc48];return _0x5a2a06;},_0x2fbc(_0x3b5999,_0x41063b);}import{createParser as _0x38f7e1}from'eventsource-parser';import{ContextPlugin as _0x4af224}from'ckeditor5/src/core.js';import{CKEditorError as _0x5efe38}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0xe81368){const _0x82241a=_0x2fbc;_0xe81368[_0x82241a(0x18a)]=_0x82241a(0x188),_0xe81368[_0x82241a(0x1c3)]=_0x82241a(0x198),_0xe81368[_0x82241a(0x1d2)]=_0x82241a(0x1e0),_0xe81368[_0x82241a(0x1c9)]=_0x82241a(0x1d9),_0xe81368[_0x82241a(0x1de)]=_0x82241a(0x173),_0xe81368[_0x82241a(0x19b)]=_0x82241a(0x201),_0xe81368[_0x82241a(0x1a2)]=_0x82241a(0x1bb),_0xe81368[_0x82241a(0x1b3)]=_0x82241a(0x18e);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x4af224{[_0x5cee35(0x1ea)];[_0x5cee35(0x1f4)];[_0x5cee35(0x1db)];static get[_0x5cee35(0x1a1)](){const _0x33b178=_0x5cee35;return[_0x33b178(0x1e3)];}static get[_0x5cee35(0x1b5)](){const _0x54876c=_0x5cee35;return _0x54876c(0x1ff);}static get[_0x5cee35(0x18c)](){return!0x0;}static get[_0x5cee35(0x181)](){return!0x0;}constructor(_0x231e74){const _0x3a0295=_0x5cee35;super(_0x231e74),this[_0x3a0295(0x1a8)][_0x3a0295(0x1e6)][_0x3a0295(0x1fa)](_0x3a0295(0x1b8),_0x3a0295(0x192)),this[_0x3a0295(0x1ea)]=this[_0x3a0295(0x1a8)][_0x3a0295(0x1e6)][_0x3a0295(0x189)](_0x3a0295(0x1b8)),this[_0x3a0295(0x1f4)]=null,this[_0x3a0295(0x1db)]=new TextDecoder();}[_0x5cee35(0x190)](){const _0x41219d=_0x5cee35,_0x460a89=this[_0x41219d(0x1a8)][_0x41219d(0x1d8)][_0x41219d(0x189)](_0x41219d(0x1e3));if(!_0x460a89[_0x41219d(0x1dd)])throw new _0x5efe38(_0x41219d(0x1ee),this);this[_0x41219d(0x1f4)]=_0x460a89[_0x41219d(0x1dd)];}[_0x5cee35(0x1cc)](_0x1eff7f,_0x3b74b6){const _0x5ec760=_0x5cee35,_0x2f382c=this[_0x5ec760(0x179)](_0x5ec760(0x19f),_0x5ec760(0x1e7),{'id':_0x1eff7f,'group':_0x3b74b6});return{'getConversation':async()=>(await _0x2f382c[_0x5ec760(0x1e2)])[_0x5ec760(0x1ac)](),'abortController':_0x2f382c[_0x5ec760(0x1e1)]};}[_0x5cee35(0x1c0)]({message:_0x23cb21,conversationId:_0x449d8f,parts:_0x2a449e,capabilities:_0xa73acd,model:_0x43c183,attributes:_0x39165c}){const _0xa91b97=_0x5cee35,_0x5da961={'prompt':_0x23cb21,'content':_0x2a449e,'model':_0x43c183,..._0xa73acd&&{'capabilities':_0xa73acd},..._0x39165c&&{'attributes':_0x39165c}},_0x22dcf7=this[_0xa91b97(0x179)](_0xa91b97(0x1ab)+_0x449d8f+_0xa91b97(0x1fc),_0xa91b97(0x1e7),_0x5da961);return{'getStream':async()=>{const _0x256344=_0xa91b97,_0x2cf3df=(await _0x22dcf7[_0x256344(0x1e2)])[_0x256344(0x1b0)];return this[_0x256344(0x1c6)](_0x2cf3df);},'abortController':_0x22dcf7[_0xa91b97(0x1e1)]};}[_0x5cee35(0x1bd)]({content:_0x481544,message:_0x409988,model:_0x382ca6,outputFormat:_0x46584d}){const _0x3bee34=_0x5cee35,_0x2b298a={'content':[{'type':_0x3bee34(0x205),'content':_0x481544}],'prompt':_0x409988,'model':_0x382ca6,'outputFormat':_0x46584d},_0x1ad2f3=this[_0x3bee34(0x179)](_0x3bee34(0x1f6),_0x3bee34(0x1e7),_0x2b298a);return{'getStream':async()=>{const _0x429bcd=_0x3bee34,_0x3ede95=(await _0x1ad2f3[_0x429bcd(0x1e2)])[_0x429bcd(0x1b0)];return this[_0x429bcd(0x1c6)](_0x3ede95);},'abortController':_0x1ad2f3[_0x3bee34(0x1e1)]};}[_0x5cee35(0x1c4)]({actionName:_0x17afbc,content:_0x162e3e,args:_0x1f78e0}){const _0x407a8d=_0x5cee35,_0x49a1fa={'content':[{'type':_0x407a8d(0x205),'content':_0x162e3e}],'args':_0x1f78e0},_0x4e18a5=this[_0x407a8d(0x179)](_0x407a8d(0x19d)+_0x17afbc+_0x407a8d(0x1b4),_0x407a8d(0x1e7),_0x49a1fa);return{'getStream':async()=>{const _0x2dab3e=_0x407a8d,_0x18eeab=(await _0x4e18a5[_0x2dab3e(0x1e2)])[_0x2dab3e(0x1b0)];return this[_0x2dab3e(0x1c6)](_0x18eeab);},'abortController':_0x4e18a5[_0x407a8d(0x1e1)]};}[_0x5cee35(0x19a)](_0x1bcf98,_0x1a248b,_0x33c348){const _0x36090d=_0x5cee35,_0x1b739b=new FormData();_0x1b739b[_0x36090d(0x1a0)](_0x36090d(0x180),_0x1a248b,_0x1a248b[_0x36090d(0x1ad)]),_0x33c348&&_0x1b739b[_0x36090d(0x1a0)](_0x36090d(0x1ec),JSON[_0x36090d(0x1cd)](_0x33c348));const _0x26a034=this[_0x36090d(0x179)](_0x36090d(0x1ab)+_0x1bcf98+_0x36090d(0x193),_0x36090d(0x1e7),_0x1b739b);return{'getId':async()=>(await _0x26a034[_0x36090d(0x1e2)])[_0x36090d(0x1ac)](),'abortController':_0x26a034[_0x36090d(0x1e1)]};}[_0x5cee35(0x1a7)](_0x1f9423,_0x54f510){const _0x1b30da=_0x5cee35,_0x2e2a1a=this[_0x1b30da(0x179)](_0x1b30da(0x1ab)+_0x1f9423+_0x1b30da(0x1fb)+_0x54f510,_0x1b30da(0x1d4));return{'getDocument':async()=>(await _0x2e2a1a[_0x1b30da(0x1e2)])[_0x1b30da(0x1ac)](),'abortController':_0x2e2a1a[_0x1b30da(0x1e1)]};}[_0x5cee35(0x1eb)](_0x3fb054,_0xd58b02,_0x50eeec){const _0x4824ce=_0x5cee35,_0x575f06={'content':_0xd58b02};_0x50eeec&&(_0x575f06[_0x4824ce(0x1ec)]=_0x50eeec);const _0x324e6c=this[_0x4824ce(0x179)](_0x4824ce(0x1ab)+_0x3fb054+_0x4824ce(0x1e9),_0x4824ce(0x1e7),_0x575f06);return{'getId':async()=>(await _0x324e6c[_0x4824ce(0x1e2)])[_0x4824ce(0x1ac)](),'abortController':_0x324e6c[_0x4824ce(0x1e1)]};}[_0x5cee35(0x1cf)](_0x18b436,_0x134491={}){const _0x481610=_0x5cee35,_0x34d1cf=new URLSearchParams();_0x34d1cf[_0x481610(0x1a0)](_0x481610(0x1c5),_0x18b436),_0x34d1cf[_0x481610(0x1a0)](_0x481610(0x1ef),!0x1!==_0x134491[_0x481610(0x1ef)]?_0x481610(0x182):_0x481610(0x171)),_0x34d1cf[_0x481610(0x1a0)](_0x481610(0x191),_0x134491[_0x481610(0x191)]?_0x134491[_0x481610(0x191)][_0x481610(0x1b2)]():_0x481610(0x1c7)),_0x34d1cf[_0x481610(0x1a0)](_0x481610(0x202),_0x134491[_0x481610(0x202)]?_0x134491[_0x481610(0x202)]:_0x481610(0x1d1)),_0x34d1cf[_0x481610(0x1a0)](_0x481610(0x197),_0x134491[_0x481610(0x197)]?_0x134491[_0x481610(0x197)]:_0x481610(0x17f));const _0x10bd2c=this[_0x481610(0x179)](_0x481610(0x178)+_0x34d1cf[_0x481610(0x1b2)](),_0x481610(0x1d4));return{'getConversations':async()=>{const _0x322f11=_0x481610,_0xb3960b=await _0x10bd2c[_0x322f11(0x1e2)];return(await _0xb3960b[_0x322f11(0x1ac)]())[_0x322f11(0x1a6)];},'abortController':_0x10bd2c[_0x481610(0x1e1)]};}[_0x5cee35(0x204)](_0x44ceae){const _0x1cc8f7=_0x5cee35,_0x23c318=this[_0x1cc8f7(0x179)](_0x1cc8f7(0x1ab)+_0x44ceae,_0x1cc8f7(0x194));return{'execute':async()=>{const _0x2d68f5=_0x1cc8f7;await _0x23c318[_0x2d68f5(0x1e2)];},'abortController':_0x23c318[_0x1cc8f7(0x1e1)]};}[_0x5cee35(0x1d3)](_0x36b2a2,_0x45ba8f){const _0x3c4628=_0x5cee35,_0x1e3fce=this[_0x3c4628(0x179)](_0x3c4628(0x1ab)+_0x36b2a2,_0x3c4628(0x1ba),_0x45ba8f);return{'getResult':async()=>(await _0x1e3fce[_0x3c4628(0x1e2)],_0x45ba8f),'abortController':_0x1e3fce[_0x3c4628(0x1e1)]};}[_0x5cee35(0x18d)](_0x3c5660){const _0x241123=_0x5cee35,_0x13087d=this[_0x241123(0x179)](_0x241123(0x1ab)+_0x3c5660,_0x241123(0x1d4));return{'getConversation':async()=>(await _0x13087d[_0x241123(0x1e2)])[_0x241123(0x1ac)](),'abortController':_0x13087d[_0x241123(0x1e1)]};}[_0x5cee35(0x1bf)](_0x11b20c){const _0x33b361=_0x5cee35,_0x4173aa=this[_0x33b361(0x179)](_0x33b361(0x1ab)+_0x11b20c+_0x33b361(0x1fc),_0x33b361(0x1d4));return{'getMessages':async()=>{const _0xef3611=_0x33b361,_0x18d1d1=await _0x4173aa[_0xef3611(0x1e2)];return(await _0x18d1d1[_0xef3611(0x1ac)]())[_0xef3611(0x1a6)];},'abortController':_0x4173aa[_0x33b361(0x1e1)]};}[_0x5cee35(0x1df)](_0x2b7a72,_0xc14cd7,_0x33e449){const _0x3b5d39=_0x5cee35,_0x3169e0=this[_0x3b5d39(0x179)](_0x3b5d39(0x1ab)+_0x2b7a72+_0x3b5d39(0x1f5),_0x3b5d39(0x1e7),{'url':_0xc14cd7,'attributes':_0x33e449});return{'getId':async()=>(await _0x3169e0[_0x3b5d39(0x1e2)])[_0x3b5d39(0x1ac)](),'abortController':_0x3169e0[_0x3b5d39(0x1e1)]};}[_0x5cee35(0x1e4)](_0x37cefd='en'){const _0x475707=_0x5cee35,_0x24b485=new URLSearchParams();_0x24b485[_0x475707(0x1a0)](_0x475707(0x17b),_0x37cefd);const _0x2ad749=_0x475707(0x1bc)+_0x24b485[_0x475707(0x1b2)](),_0x831e36=this[_0x475707(0x179)](_0x2ad749,_0x475707(0x1d4));return{'list':async()=>await(await _0x831e36[_0x475707(0x1e2)])[_0x475707(0x1ac)](),'abortController':_0x831e36[_0x475707(0x1e1)]};}[_0x5cee35(0x196)](_0x2feae7,_0x3fd93e){const _0x1af1be=_0x5cee35,_0x5991a5=this[_0x1af1be(0x179)](_0x1af1be(0x1ab)+_0x2feae7+_0x1af1be(0x1a9)+_0x3fd93e,_0x1af1be(0x194));return{'execute':async()=>{const _0x291a62=_0x1af1be;await _0x5991a5[_0x291a62(0x1e2)];},'abortController':_0x5991a5[_0x1af1be(0x1e1)]};}[_0x5cee35(0x1a3)](_0x66edd4,_0x47cd9b){const _0x2b2038=_0x5cee35,_0x1ae270=this[_0x2b2038(0x179)](_0x2b2038(0x1ab)+_0x66edd4+_0x2b2038(0x1fb)+_0x47cd9b,_0x2b2038(0x194));return{'execute':async()=>{const _0x3db95a=_0x2b2038;await _0x1ae270[_0x3db95a(0x1e2)];},'abortController':_0x1ae270[_0x2b2038(0x1e1)]};}[_0x5cee35(0x1ce)](_0x48fe82,_0x121a2c){const _0x2cccfc=_0x5cee35,_0x128ecc=this[_0x2cccfc(0x179)](_0x2cccfc(0x1ab)+_0x48fe82+_0x2cccfc(0x195)+_0x121a2c,_0x2cccfc(0x194));return{'execute':async()=>{const _0x351476=_0x2cccfc;await _0x128ecc[_0x351476(0x1e2)];},'abortController':_0x128ecc[_0x2cccfc(0x1e1)]};}[_0x5cee35(0x1fe)]({reviewName:_0x28c011,content:_0x4f5c87,args:_0xc6396c}){const _0x286d21=_0x5cee35,_0x10341e=this[_0x286d21(0x179)](_0x286d21(0x1aa)+_0x28c011+_0x286d21(0x1b4),_0x286d21(0x1e7),{'content':[{'type':_0x286d21(0x205),'content':_0x4f5c87}],'args':_0xc6396c});return{'getStream':async()=>{const _0x295058=_0x286d21,_0x1a5e05=(await _0x10341e[_0x295058(0x1e2)])[_0x295058(0x1b0)];return this[_0x295058(0x1c6)](_0x1a5e05);},'abortController':_0x10341e[_0x286d21(0x1e1)]};}[_0x5cee35(0x176)]({content:_0x562650,prompt:_0x749c26,model:_0xe9faa2}){const _0xf5d4a8=_0x5cee35,_0x5ea461=this[_0xf5d4a8(0x179)](_0xf5d4a8(0x1b1),_0xf5d4a8(0x1e7),{'content':[{'type':_0xf5d4a8(0x205),'content':_0x562650}],'prompt':_0x749c26,'model':_0xe9faa2});return{'getStream':async()=>{const _0x44073a=_0xf5d4a8,_0x2b9d92=(await _0x5ea461[_0x44073a(0x1e2)])[_0x44073a(0x1b0)];return this[_0x44073a(0x1c6)](_0x2b9d92);},'abortController':_0x5ea461[_0xf5d4a8(0x1e1)]};}[_0x5cee35(0x184)](_0x57e61c,_0x4ca5bf,_0x2e0d55){const _0x33af72=_0x5cee35,_0xb69788=this[_0x33af72(0x179)](_0x33af72(0x1ab)+_0x57e61c+_0x33af72(0x183)+_0x4ca5bf+_0x33af72(0x1da),_0x33af72(0x1ae),{'positiveCount':_0x2e0d55[_0x33af72(0x1c2)],'totalCount':_0x2e0d55[_0x33af72(0x17d)],'modificationId':_0x2e0d55[_0x33af72(0x1d0)]});return{'execute':async()=>{const _0x2b6f19=_0x33af72;await _0xb69788[_0x2b6f19(0x1e2)];},'abortController':_0xb69788[_0x33af72(0x1e1)]};}[_0x5cee35(0x199)](_0xbb8c84,_0x567425,_0x14705f){const _0x912f14=_0x5cee35,_0xea66de=this[_0x912f14(0x179)](_0x912f14(0x19d)+_0xbb8c84+_0x912f14(0x1f2)+_0x567425+_0x912f14(0x1da),_0x912f14(0x1ae),{'positiveCount':_0x14705f[_0x912f14(0x1c2)],'totalCount':_0x14705f[_0x912f14(0x17d)]});return{'execute':async()=>{const _0x4cea19=_0x912f14;await _0xea66de[_0x4cea19(0x1e2)];},'abortController':_0xea66de[_0x912f14(0x1e1)]};}[_0x5cee35(0x1b9)](_0x197189,_0x3e46d){const _0x544af8=_0x5cee35,_0x18869e=this[_0x544af8(0x179)](_0x544af8(0x1ed)+_0x197189+_0x544af8(0x1da),_0x544af8(0x1ae),{'positiveCount':_0x3e46d[_0x544af8(0x1c2)],'totalCount':_0x3e46d[_0x544af8(0x17d)]});return{'execute':async()=>{const _0x1d64ad=_0x544af8;await _0x18869e[_0x1d64ad(0x1e2)];},'abortController':_0x18869e[_0x544af8(0x1e1)]};}[_0x5cee35(0x17c)](_0x18bbc2,_0x5addd0,_0x22ce6c,_0x3ab16d){const _0x57221b=_0x5cee35,_0x5425e4=this[_0x57221b(0x179)](_0x57221b(0x1aa)+_0x18bbc2+_0x57221b(0x1f2)+_0x5addd0+_0x57221b(0x1da),_0x57221b(0x1ae),{'positiveCount':_0x22ce6c[_0x57221b(0x1c2)],'totalCount':_0x22ce6c[_0x57221b(0x17d)],'dataId':_0x3ab16d});return{'execute':async()=>{const _0x603994=_0x57221b;await _0x5425e4[_0x603994(0x1e2)];},'abortController':_0x5425e4[_0x57221b(0x1e1)]};}[_0x5cee35(0x1fd)](_0x4646a3,_0x4d3f2a,_0x1f6480){const _0x3232f4=_0x5cee35,_0x2a0932=this[_0x3232f4(0x179)](_0x3232f4(0x174)+_0x4646a3+_0x3232f4(0x1da),_0x3232f4(0x1ae),{'positiveCount':_0x4d3f2a[_0x3232f4(0x1c2)],'totalCount':_0x4d3f2a[_0x3232f4(0x17d)],'dataId':_0x1f6480});return{'execute':async()=>{const _0x4d071=_0x3232f4;await _0x2a0932[_0x4d071(0x1e2)];},'abortController':_0x2a0932[_0x3232f4(0x1e1)]};}[_0x5cee35(0x179)](_0x1bf5c3,_0x103f00,_0x1d98f){const _0x34819a=_0x5cee35,_0x27f26c=new AbortController(),_0x1b892f=_0x1d98f instanceof FormData,_0x204104={'Authorization':_0x34819a(0x1d7)+this[_0x34819a(0x1f4)]?.[_0x34819a(0x17a)]};_0x1d98f&&!_0x1b892f&&(_0x204104[_0x34819a(0x187)]=_0x34819a(0x1b6));const _0x362f8b={'method':_0x103f00,'headers':_0x204104,'signal':_0x27f26c[_0x34819a(0x175)]};return _0x1d98f&&(_0x362f8b[_0x34819a(0x1b0)]=_0x1b892f?_0x1d98f:JSON[_0x34819a(0x1cd)](_0x1d98f)),{'request':fetch(''+this[_0x34819a(0x1ea)]+_0x1bf5c3,_0x362f8b)[_0x34819a(0x1d6)](_0x776114=>{const _0xa76f=_0x34819a;this[_0xa76f(0x19e)](_0x776114);})[_0x34819a(0x1f3)](_0x574900=>_0x574900['ok']?_0x574900:_0x574900[_0x34819a(0x1ac)]()[_0x34819a(0x1f3)](_0x2d226e=>{const _0x5bb224=_0x34819a;throw{'url':this[_0x5bb224(0x1ea)],'path':_0x1bf5c3,'method':_0x103f00,'body':_0x1d98f,'status':(_0x574900||{})[_0x5bb224(0x1f9)],'statusText':(_0x574900||{})[_0x5bb224(0x18b)],'code':_0x2d226e[_0x5bb224(0x203)],'message':_0x2d226e[_0x5bb224(0x170)],'traceId':_0x2d226e[_0x5bb224(0x1ca)]};})),'abortController':_0x27f26c};}async*[_0x5cee35(0x1c6)](_0x5d6da3){const _0x3df459=_0x5cee35,_0x19c31a=[],_0x523aeb=_0x5d6da3[_0x3df459(0x1be)](),_0x4ed3ac=_0x38f7e1({'onError':_0x1c64c4=>{const _0x2b4157=_0x3df459;this[_0x2b4157(0x19e)](_0x1c64c4);},'onEvent':_0xfa4fc=>{const _0x13d0a8=_0x3df459;_0xfa4fc[_0x13d0a8(0x177)]=JSON[_0x13d0a8(0x18f)](_0xfa4fc[_0x13d0a8(0x177)]),_0x19c31a[_0x13d0a8(0x1a4)](_0xfa4fc);}});try{let _0x5f512c=!0x1;for(;!_0x5f512c;){const {done:_0x4938bd,value:_0x589d33}=await _0x523aeb[_0x3df459(0x1e8)]();_0x4938bd&&(_0x5f512c=!0x0),_0x4ed3ac[_0x3df459(0x186)](this[_0x3df459(0x1db)][_0x3df459(0x1af)](_0x589d33,{'stream':!0x0})),yield*_0x19c31a,_0x19c31a[_0x3df459(0x1cb)]=0x0;}}catch(_0x841134){this[_0x3df459(0x19e)](_0x841134);}finally{_0x523aeb[_0x3df459(0x1c8)](),_0x4ed3ac[_0x3df459(0x17e)]();}}[_0x5cee35(0x19e)](_0x579459){const _0x4f0a7b=_0x5cee35;if(_0x579459 instanceof _0x5efe38)throw _0x579459;if(_0x579459 instanceof Error&&_0x4f0a7b(0x172)===_0x579459[_0x4f0a7b(0x1ad)])throw new _0x5efe38(_0x4f0a7b(0x1c1),this,{'originalError':_0x579459});throw new _0x5efe38(_0x4f0a7b(0x1f1),this,{'originalError':_0x579459});}}function _0x1fcd(){const _0x5322d1=['/conversations','append','requires','MAKE_TONE_FORMAL','deleteDocument','push','40XFiGFG','items','fetchDocument','context','/files/','/reviews/system/','/conversations/','json','name','PUT','decode','body','/reviews/custom/calls','toString','TRANSLATE','/calls','pluginName','application/json','153QIdVlh','ai.serviceUrl','upsertCustomAIActionRating','PATCH','make-tone-formal','/models/1?','executeCustomAction','getReader','fetchConversationMessages','queryAssistant','ai-request-aborted','positiveCount','FIX_GRAMMAR','executeAction','group','_getStreamReader','100','releaseLock','MAKE_LONGER','traceId','length','startConversation','stringify','deleteWebResource','fetchConversations','modificationId','createdAt','IMPROVE_WRITING','updateConversation','GET','257685LnKvTi','catch','Bearer\x20','plugins','make-longer','/ratings','_decoder','6tqwXwO','token','MAKE_SHORTER','uploadUrl','improve-writing','abortController','request','CloudServices','getModels','651655QCHRMq','config','POST','read','/documents','_apiUrl','uploadDocument','attributes','/actions/custom/calls/','ai-missing-token','excludeEmpty','1397912DmNPia','ai-request-failed','/calls/','then','_token','/web-resources','/actions/custom/calls','5932641VuTnWS','60KoltLg','status','define','/documents/','/messages','upsertCustomAIReviewRating','callSystemReview','AIConnector','345570vTcUuw','make-tone-casual','sortBy','code','deleteConversation','text','message','false','AbortError','make-shorter','/reviews/custom/calls/','signal','callCustomReview','data','/conversations?','_sendApiRequest','value','language','upsertAIReviewRating','totalCount','reset','desc','file','isPremiumPlugin','true','/messages/','upsertAIChatRating','239491DKpepG','feed','Content-Type','continue','get','CONTINUE','statusText','isOfficialPlugin','fetchConversation','translate','parse','init','limit','https://ai.cke-cs.com/v1','/files','DELETE','/web-resources/','deleteFile','order','fix-grammar','upsertAIActionRating','uploadFile','MAKE_TONE_CASUAL','524476NRzuTV','/actions/system/','_handleError'];_0x1fcd=function(){return _0x5322d1;};return _0x1fcd();}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x45b54a=_0x2ad1;(function(_0x12b162,_0x171310){const _0x5090a8=_0x2ad1,_0x18e0f5=_0x12b162();while(!![]){try{const _0x18482b=parseInt(_0x5090a8(0x1af))/0x1*(parseInt(_0x5090a8(0x1ff))/0x2)+parseInt(_0x5090a8(0x1c1))/0x3+-parseInt(_0x5090a8(0x1fd))/0x4+-parseInt(_0x5090a8(0x1c6))/0x5*(-parseInt(_0x5090a8(0x20c))/0x6)+-parseInt(_0x5090a8(0x1fb))/0x7+-parseInt(_0x5090a8(0x1e1))/0x8+parseInt(_0x5090a8(0x20f))/0x9;if(_0x18482b===_0x171310)break;else _0x18e0f5['push'](_0x18e0f5['shift']());}catch(_0x4f2f50){_0x18e0f5['push'](_0x18e0f5['shift']());}}}(_0x4af1,0x754f8));import{ViewDowncastWriter as _0x47f8c7}from'ckeditor5/src/engine.js';import{ContextPlugin as _0xcf428c,Editor as _0x1d63dc}from'ckeditor5/src/core.js';import{uid as _0x2de327}from'ckeditor5/src/utils.js';function _0x4af1(){const _0x12990a=['AIEditing','plugins','4449396hzbzgX','htmlWriter','2253892lRACHH','selection','61210GzKemM','data','markers','config','removeMarker','ai-selection','markerToElement','fromCharCode','getStart','_setOutputDataProcessor','ai-selection:','_displayedFakeSelectionId','RealTimeCollaborationClient','11538klZmtP','version','end','8200125sZxtuO','element','getHtml','length','has','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','_nextDataId','define','name','model','isPremiumPlugin','dataDowncast','isOfficialPlugin','_integrateEditor','locale',':end></','showFakeVisualSelection','view','_getMarkersInDocumentOrder','1hbAKFx','_getDocumentDataStringFromView','editingDowncast','listenTo','editors','ready','isBefore','_sessionId',':start>','createUIElement','document','isAfter','from','getDocumentData','pluginName','floor','removeAllRanges','isOpening','550257OhzRiN','modelToDataWithIds','push','trim','getRanges','2135mnCrOi','indexOf','getSelection','getChildren','_outputDataProcessor','convertAiChatSelectionMarker','isContent','sessionId','ai.models.showModelSelector','substring','schema','change','$textProxy',':start></','for','_displayedFakeSelectionLocked','emptyElement','setAttribute','ck-fake-ai-selection','data-id','start','_setDataIdsOnChildren','hideFakeVisualSelection','addMarker','ck-ai-assistant-ui_theme','random','viewToDom','2133320KwlDNc','toView','afterInit','getItems','context','sort',':end>','containerElement','conversion','join','add','markerToHighlight','getLastMatchingPosition','getSelectionText','editing','getMarkersGroup','markerName','isAtEnd','toData','domConverter','get','getRoot','createRange','processor'];_0x4af1=function(){return _0x12990a;};return _0x4af1();}import{getTranslation as _0x5a4d67}from'./utils/common-translations.js';import{getEditorFromContext as _0x587cf1}from'./utils/geteditorfromcontext.js';function _0x2ad1(_0x3e854b,_0x4081d1){const _0x4af1d3=_0x4af1();return _0x2ad1=function(_0x2ad1b5,_0x1c5b3c){_0x2ad1b5=_0x2ad1b5-0x1a6;let _0x412fa9=_0x4af1d3[_0x2ad1b5];return _0x412fa9;},_0x2ad1(_0x3e854b,_0x4081d1);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x45b54a(0x204);export class AIEditing extends _0xcf428c{constructor(_0x36b08b){const _0x3c82c0=_0x45b54a;super(_0x36b08b),this[_0x3c82c0(0x1e5)][_0x3c82c0(0x202)][_0x3c82c0(0x216)](_0x3c82c0(0x1ce),!0x0);}[_0x45b54a(0x1ca)];[_0x45b54a(0x20a)]=null;[_0x45b54a(0x1d5)]=!0x1;[_0x45b54a(0x1b6)];static get[_0x45b54a(0x1bd)](){const _0x21148a=_0x45b54a;return _0x21148a(0x1f9);}static get[_0x45b54a(0x1a8)](){return!0x0;}static get[_0x45b54a(0x1a6)](){return!0x0;}get[_0x45b54a(0x1cd)](){const _0x21c979=_0x45b54a;if(!this[_0x21c979(0x1b6)]){const _0x3306a0=_0x587cf1(this[_0x21c979(0x1e5)]),_0x39db92=_0x3306a0[_0x21c979(0x1fa)][_0x21c979(0x213)](_0x21c979(0x20b))&&_0x3306a0[_0x21c979(0x1fa)][_0x21c979(0x1f5)](_0x21c979(0x20b))[_0x21c979(0x1cd)];this[_0x21c979(0x1b6)]=_0x39db92||_0x2de327();}return this[_0x21c979(0x1b6)];}async[_0x45b54a(0x1bc)](){const _0x4061d9=_0x45b54a,_0x4e4a95=_0x587cf1(this[_0x4061d9(0x1e5)]),_0x62506=_0x4e4a95[_0x4061d9(0x218)],_0x282edb=_0x4e4a95[_0x4061d9(0x200)][_0x4061d9(0x1e2)](_0x62506[_0x4061d9(0x1b9)][_0x4061d9(0x1f6)](),{'convertAiChatSelectionMarker':!0x0}),_0x2a75dc=new _0x47f8c7(_0x4e4a95[_0x4061d9(0x1ef)][_0x4061d9(0x1ad)][_0x4061d9(0x1b9)]);this[_0x4061d9(0x1db)](_0x282edb,_0x2a75dc);let _0x2658e9=await this[_0x4061d9(0x1b0)](_0x282edb);const _0x1d170e=this[_0x4061d9(0x1ae)](),_0x3fa627=[];for(const _0x810ca8 of _0x1d170e){const _0x4cf7aa='<'+_0x810ca8[_0x4061d9(0x217)]+_0x4061d9(0x1d3)+_0x810ca8[_0x4061d9(0x217)]+_0x4061d9(0x1b7),_0x2f959b=_0x2658e9[_0x4061d9(0x1c7)](_0x4cf7aa);_0x2658e9=_0x2658e9[_0x4061d9(0x1cf)](0x0,_0x2f959b)+_0x2658e9[_0x4061d9(0x1cf)](_0x2f959b+_0x4cf7aa[_0x4061d9(0x212)]);const _0x15e98c='<'+_0x810ca8[_0x4061d9(0x217)]+_0x4061d9(0x1ab)+_0x810ca8[_0x4061d9(0x217)]+_0x4061d9(0x1e7),_0x504b05=_0x2658e9[_0x4061d9(0x1c7)](_0x15e98c);_0x2658e9=_0x2658e9[_0x4061d9(0x1cf)](0x0,_0x504b05)+_0x2658e9[_0x4061d9(0x1cf)](_0x504b05+_0x15e98c[_0x4061d9(0x212)]),_0x3fa627[_0x4061d9(0x1c3)]({'markerName':_0x810ca8[_0x4061d9(0x217)],'start':_0x2f959b,'end':_0x504b05,'htmlFragment':_0x2658e9[_0x4061d9(0x1cf)](_0x2f959b,_0x504b05)});}return{'content':_0x2658e9,'version':_0x4e4a95[_0x4061d9(0x218)][_0x4061d9(0x1b9)][_0x4061d9(0x20d)],'sessionId':this[_0x4061d9(0x1cd)],'selections':_0x3fa627};}async[_0x45b54a(0x1e3)](){const _0x16ec81=_0x45b54a;this[_0x16ec81(0x1e5)]instanceof _0x1d63dc?this[_0x16ec81(0x1a9)](this[_0x16ec81(0x1e5)]):this[_0x16ec81(0x1b2)](this[_0x16ec81(0x1e5)][_0x16ec81(0x1b3)],_0x16ec81(0x1eb),(_0x121906,_0x2e0be3)=>{const _0x212739=_0x16ec81;_0x2e0be3['on'](_0x212739(0x1b4),()=>{const _0x2b00a8=_0x212739;this[_0x2b00a8(0x1a9)](_0x2e0be3);});});}[_0x45b54a(0x208)](_0xfb90a4){const _0xf04a3a=_0x45b54a;this[_0xf04a3a(0x1ca)]=_0xfb90a4;}async[_0x45b54a(0x1b0)](_0x4e0e19){const _0x4c1c8b=_0x45b54a;let _0x558218;const _0x578130=_0x587cf1(this[_0x4c1c8b(0x1e5)]);if(this[_0x4c1c8b(0x1ca)]){const _0x3f3805=_0x578130[_0x4c1c8b(0x200)][_0x4c1c8b(0x1f8)][_0x4c1c8b(0x1f4)][_0x4c1c8b(0x1e0)](_0x4e0e19),_0x97c7b0=await this[_0x4c1c8b(0x1ca)](_0x3f3805);_0x558218=_0x578130[_0x4c1c8b(0x200)][_0x4c1c8b(0x1f8)][_0x4c1c8b(0x1fc)][_0x4c1c8b(0x211)](_0x97c7b0);}else _0x558218=_0x578130[_0x4c1c8b(0x200)][_0x4c1c8b(0x1f8)][_0x4c1c8b(0x1f3)](_0x4e0e19);return _0x558218;}[_0x45b54a(0x1a9)](_0x3f9213){const _0x2068da=_0x45b54a;_0x3f9213[_0x2068da(0x1e9)][_0x2068da(0x1d4)](_0x2068da(0x1b1))[_0x2068da(0x1ec)]({'model':_0x2068da(0x204),'view':{'classes':[_0x2068da(0x1d8),_0x2068da(0x1de)],'priority':0xc}}),_0x3f9213[_0x2068da(0x1e9)][_0x2068da(0x1d4)](_0x2068da(0x1a7))[_0x2068da(0x205)]({'model':_0x2068da(0x204),'view':(_0x5f90f5,{writer:_0x3932e5,options:_0x579927})=>_0x579927[_0x2068da(0x1cb)]?_0x3932e5[_0x2068da(0x1b8)](_0x5f90f5[_0x2068da(0x1f1)]+':'+(_0x5f90f5[_0x2068da(0x1c0)]?_0x2068da(0x1da):_0x2068da(0x20e))):null});}[_0x45b54a(0x1ac)](_0x1782cf,_0x315f5c,_0xc9fb03=!0x1,_0x45c57b=!0x1){const _0x48e707=_0x45b54a;if(this[_0x48e707(0x1d5)]&&!_0x45c57b)return!0x1;const _0x587308=_0x587cf1(this[_0x48e707(0x1e5)])[_0x48e707(0x218)];return _0x587308[_0x48e707(0x1d1)](_0x5099c6=>{const _0x20b18a=_0x48e707;this[_0x20b18a(0x20a)]&&this[_0x20b18a(0x1dc)](this[_0x20b18a(0x20a)]),this[_0x20b18a(0x20a)]=_0x315f5c,this[_0x20b18a(0x1d5)]=_0xc9fb03;let _0x6fe705=0x0;for(let _0x146ef9 of _0x1782cf){const _0x2be253=_0x20b18a(0x209)+_0x6fe705;if(_0x146ef9[_0x20b18a(0x1da)][_0x20b18a(0x1f2)]){const _0x174f2c=_0x146ef9[_0x20b18a(0x1da)][_0x20b18a(0x1ed)](({item:_0x19c2a4})=>!_0x587308[_0x20b18a(0x1d0)][_0x20b18a(0x1cc)](_0x19c2a4),{'boundaries':_0x146ef9});_0x146ef9=_0x5099c6[_0x20b18a(0x1f7)](_0x174f2c,_0x146ef9[_0x20b18a(0x20e)]);}_0x5099c6[_0x20b18a(0x1dd)](_0x2be253,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x146ef9}),_0x6fe705++;}}),window[_0x48e707(0x1c8)]()?.[_0x48e707(0x1bf)](),!0x0;}[_0x45b54a(0x1dc)](_0x1c528e){const _0x4d4b2c=_0x45b54a;if(this[_0x4d4b2c(0x20a)]!=_0x1c528e)return!0x1;this[_0x4d4b2c(0x20a)]=null,this[_0x4d4b2c(0x1d5)]=!0x1;const _0x548df3=_0x587cf1(this[_0x4d4b2c(0x1e5)]),_0x54b9f9=_0x548df3[_0x4d4b2c(0x218)][_0x4d4b2c(0x201)][_0x4d4b2c(0x1f0)](_0x4d4b2c(0x204));return _0x548df3[_0x4d4b2c(0x218)][_0x4d4b2c(0x1d1)](_0x6bb53b=>{const _0x5eca91=_0x4d4b2c;for(const _0x59d8fc of _0x54b9f9)_0x6bb53b[_0x5eca91(0x203)](_0x59d8fc);}),!0x0;}async[_0x45b54a(0x1c2)](_0x2a9de0){const _0xa98356=_0x45b54a,_0x2b455=_0x587cf1(this[_0xa98356(0x1e5)]),_0x541ecf=_0x2b455[_0xa98356(0x200)][_0xa98356(0x1e2)](_0x2a9de0),_0x634e57=new _0x47f8c7(_0x2b455[_0xa98356(0x1ef)][_0xa98356(0x1ad)][_0xa98356(0x1b9)]);return this[_0xa98356(0x1db)](_0x541ecf,_0x634e57),this[_0xa98356(0x1b0)](_0x541ecf);}[_0x45b54a(0x1db)](_0x227d61,_0x28df07){const _0x506342=_0x45b54a;let _0x1fe80d=!0x1;const _0x59f8ea=new Set();for(const _0x5287c1 of _0x227d61[_0x506342(0x1c9)]()){const _0x593afd=_0x5287c1['is'](_0x506342(0x1d6))||_0x5287c1['is'](_0x506342(0x1e8));if(!_0x5287c1['is'](_0x506342(0x210)))continue;(this[_0x506342(0x1db)](_0x5287c1,_0x28df07)||_0x593afd)&&(_0x28df07[_0x506342(0x1d7)](_0x506342(0x1d9),this[_0x506342(0x215)](_0x59f8ea),_0x5287c1),_0x1fe80d=!0x0);}return _0x1fe80d;}[_0x45b54a(0x215)](_0x11b143){const _0x31ec56=_0x45b54a;let _0x444722;do{_0x444722='';for(let _0x26fb03=0x0;_0x26fb03<0x4;_0x26fb03++)_0x444722+=String[_0x31ec56(0x206)](0x61+Math[_0x31ec56(0x1be)](0x1a*Math[_0x31ec56(0x1df)]()));}while(_0x11b143[_0x31ec56(0x213)](_0x444722));return _0x11b143[_0x31ec56(0x1eb)](_0x444722),_0x444722;}[_0x45b54a(0x1ee)](){const _0x1be5d9=_0x45b54a,{model:_0x43000a}=_0x587cf1(this[_0x1be5d9(0x1e5)]),_0x32b059=_0x43000a[_0x1be5d9(0x1b9)][_0x1be5d9(0x1fe)],_0x53d8c1=[];for(const _0x1f9c34 of _0x32b059[_0x1be5d9(0x1c5)]())for(const _0x3cfe47 of _0x1f9c34[_0x1be5d9(0x1e4)]())_0x3cfe47['is'](_0x1be5d9(0x1d2))?_0x53d8c1[_0x1be5d9(0x1c3)](_0x3cfe47[_0x1be5d9(0x200)]):_0x3cfe47['is'](_0x1be5d9(0x210))&&_0x53d8c1[_0x1be5d9(0x212)]>0x0&&'\x20'!==_0x53d8c1[_0x53d8c1[_0x1be5d9(0x212)]-0x1]&&_0x53d8c1[_0x1be5d9(0x1c3)]('\x20');return _0x53d8c1[_0x1be5d9(0x212)]?'\x22'+_0x53d8c1[_0x1be5d9(0x1ea)]('')[_0x1be5d9(0x1c4)]()+'\x22':_0x5a4d67(this[_0x1be5d9(0x1e5)][_0x1be5d9(0x1aa)],_0x1be5d9(0x214));}[_0x45b54a(0x1ae)](){const _0x229236=_0x45b54a,_0x2f1f50=_0x587cf1(this[_0x229236(0x1e5)])[_0x229236(0x218)];return Array[_0x229236(0x1bb)](_0x2f1f50[_0x229236(0x201)][_0x229236(0x1f0)](_0x229236(0x204)))[_0x229236(0x1e6)]((_0x39925e,_0x8b6361)=>_0x39925e[_0x229236(0x207)]()[_0x229236(0x1b5)](_0x8b6361[_0x229236(0x207)]())?-0x1:_0x39925e[_0x229236(0x207)]()[_0x229236(0x1ba)](_0x8b6361[_0x229236(0x207)]())?0x1:0x0);}}
|
|
23
|
+
const _0x40aa86=_0xf8ba;(function(_0x4b141e,_0x48f199){const _0xb08747=_0xf8ba,_0x136663=_0x4b141e();while(!![]){try{const _0x25ca78=-parseInt(_0xb08747(0x167))/0x1+-parseInt(_0xb08747(0x192))/0x2*(-parseInt(_0xb08747(0x1a5))/0x3)+-parseInt(_0xb08747(0x1b4))/0x4+parseInt(_0xb08747(0x177))/0x5+-parseInt(_0xb08747(0x187))/0x6*(parseInt(_0xb08747(0x1ba))/0x7)+parseInt(_0xb08747(0x1ac))/0x8*(-parseInt(_0xb08747(0x183))/0x9)+parseInt(_0xb08747(0x1a4))/0xa;if(_0x25ca78===_0x48f199)break;else _0x136663['push'](_0x136663['shift']());}catch(_0x5240d5){_0x136663['push'](_0x136663['shift']());}}}(_0x3360,0x78298));import{ViewDowncastWriter as _0x3e972b}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2d584b,Editor as _0x390b06}from'ckeditor5/src/core.js';import{uid as _0x1a710e}from'ckeditor5/src/utils.js';import{getTranslation as _0x49aaff}from'./utils/common-translations.js';import{getEditorFromContext as _0x13d0c8}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x40aa86(0x1a6);export class AIEditing extends _0x2d584b{constructor(_0x135579){const _0xfc1f33=_0x40aa86;super(_0x135579),this[_0xfc1f33(0x1c5)][_0xfc1f33(0x16f)][_0xfc1f33(0x189)](_0xfc1f33(0x19c),!0x0);}[_0x40aa86(0x166)];[_0x40aa86(0x191)]=null;[_0x40aa86(0x1b9)]=!0x1;[_0x40aa86(0x1b1)];static get[_0x40aa86(0x16b)](){const _0x455ed0=_0x40aa86;return _0x455ed0(0x18f);}static get[_0x40aa86(0x164)](){return!0x0;}static get[_0x40aa86(0x1b8)](){return!0x0;}get[_0x40aa86(0x190)](){const _0x18a21b=_0x40aa86;if(!this[_0x18a21b(0x1b1)]){const _0x4c2b9a=_0x13d0c8(this[_0x18a21b(0x1c5)]),_0x19b469=_0x4c2b9a[_0x18a21b(0x18c)][_0x18a21b(0x18a)](_0x18a21b(0x158))&&_0x4c2b9a[_0x18a21b(0x18c)][_0x18a21b(0x16d)](_0x18a21b(0x158))[_0x18a21b(0x190)];this[_0x18a21b(0x1b1)]=_0x19b469||_0x1a710e();}return this[_0x18a21b(0x1b1)];}async[_0x40aa86(0x171)](){const _0x377ce6=_0x40aa86,_0x5f2a81=_0x13d0c8(this[_0x377ce6(0x1c5)]),_0x29fbcf=_0x5f2a81[_0x377ce6(0x1b2)],_0x4a1120=_0x5f2a81[_0x377ce6(0x161)][_0x377ce6(0x17a)](_0x29fbcf[_0x377ce6(0x15e)][_0x377ce6(0x17d)](),{'convertAiChatSelectionMarker':!0x0}),_0x1f5bc0=new _0x3e972b(_0x5f2a81[_0x377ce6(0x1cb)][_0x377ce6(0x19f)][_0x377ce6(0x15e)]);this[_0x377ce6(0x184)](_0x4a1120,_0x1f5bc0);let _0x1d1ff7=await this[_0x377ce6(0x170)](_0x4a1120);const _0x3e0d00=this[_0x377ce6(0x1b7)](),_0x4e2fd7=[];for(const _0x19c65f of _0x3e0d00){const _0x396424='<'+_0x19c65f[_0x377ce6(0x1b3)]+_0x377ce6(0x194)+_0x19c65f[_0x377ce6(0x1b3)]+_0x377ce6(0x16e),_0x486771=_0x1d1ff7[_0x377ce6(0x19d)](_0x396424);_0x1d1ff7=_0x1d1ff7[_0x377ce6(0x1a7)](0x0,_0x486771)+_0x1d1ff7[_0x377ce6(0x1a7)](_0x486771+_0x396424[_0x377ce6(0x198)]);const _0x2ae89e='<'+_0x19c65f[_0x377ce6(0x1b3)]+_0x377ce6(0x15d)+_0x19c65f[_0x377ce6(0x1b3)]+_0x377ce6(0x18e),_0x16256f=_0x1d1ff7[_0x377ce6(0x19d)](_0x2ae89e);_0x1d1ff7=_0x1d1ff7[_0x377ce6(0x1a7)](0x0,_0x16256f)+_0x1d1ff7[_0x377ce6(0x1a7)](_0x16256f+_0x2ae89e[_0x377ce6(0x198)]),_0x4e2fd7[_0x377ce6(0x1ca)]({'markerName':_0x19c65f[_0x377ce6(0x1b3)],'start':_0x486771,'end':_0x16256f,'htmlFragment':_0x1d1ff7[_0x377ce6(0x1a7)](_0x486771,_0x16256f)});}return{'content':_0x1d1ff7,'version':_0x5f2a81[_0x377ce6(0x1b2)][_0x377ce6(0x15e)][_0x377ce6(0x16a)],'sessionId':this[_0x377ce6(0x190)],'selections':_0x4e2fd7};}async[_0x40aa86(0x16c)](){const _0x50a707=_0x40aa86;this[_0x50a707(0x1c5)]instanceof _0x390b06?this[_0x50a707(0x1bf)](this[_0x50a707(0x1c5)]):this[_0x50a707(0x1bd)](this[_0x50a707(0x1c5)][_0x50a707(0x1be)],_0x50a707(0x15b),(_0x4fdac8,_0x1f7fa2)=>{const _0x3ac4ee=_0x50a707;_0x1f7fa2['on'](_0x3ac4ee(0x1a8),()=>{const _0x4fbd2b=_0x3ac4ee;this[_0x4fbd2b(0x1bf)](_0x1f7fa2);});});}[_0x40aa86(0x15c)](_0x3f0d54){const _0x25ddfe=_0x40aa86;this[_0x25ddfe(0x166)]=_0x3f0d54;}async[_0x40aa86(0x170)](_0x140a13){const _0x557cae=_0x40aa86;let _0x50441d;const _0xfaf71e=_0x13d0c8(this[_0x557cae(0x1c5)]);if(this[_0x557cae(0x166)]){const _0x58f67f=_0xfaf71e[_0x557cae(0x161)][_0x557cae(0x186)][_0x557cae(0x160)][_0x557cae(0x159)](_0x140a13),_0x160bed=await this[_0x557cae(0x166)](_0x58f67f);_0x50441d=_0xfaf71e[_0x557cae(0x161)][_0x557cae(0x186)][_0x557cae(0x1c0)][_0x557cae(0x165)](_0x160bed);}else _0x50441d=_0xfaf71e[_0x557cae(0x161)][_0x557cae(0x186)][_0x557cae(0x180)](_0x140a13);return _0x50441d;}[_0x40aa86(0x1bf)](_0x394236){const _0x5ea4cc=_0x40aa86;_0x394236[_0x5ea4cc(0x1bb)][_0x5ea4cc(0x1a1)](_0x5ea4cc(0x1b6))[_0x5ea4cc(0x18b)]({'model':_0x5ea4cc(0x1a6),'view':{'classes':[_0x5ea4cc(0x163),_0x5ea4cc(0x18d)],'priority':0xc}}),_0x394236[_0x5ea4cc(0x1bb)][_0x5ea4cc(0x1a1)](_0x5ea4cc(0x1a9))[_0x5ea4cc(0x168)]({'model':_0x5ea4cc(0x1a6),'view':(_0x375f49,{writer:_0x8204a8,options:_0x54fc5c})=>_0x54fc5c[_0x5ea4cc(0x17e)]?_0x8204a8[_0x5ea4cc(0x1c4)](_0x375f49[_0x5ea4cc(0x1a3)]+':'+(_0x375f49[_0x5ea4cc(0x193)]?_0x5ea4cc(0x179):_0x5ea4cc(0x197))):null});}[_0x40aa86(0x1c3)](_0x46b2b6,_0x12ee57,_0x4197a0=!0x1,_0x276013=!0x1){const _0x16c332=_0x40aa86;if(this[_0x16c332(0x1b9)]&&!_0x276013)return!0x1;const _0x111e5f=_0x13d0c8(this[_0x16c332(0x1c5)])[_0x16c332(0x1b2)];return _0x111e5f[_0x16c332(0x1c7)](_0x4051d2=>{const _0x3a52a8=_0x16c332;this[_0x3a52a8(0x191)]&&this[_0x3a52a8(0x1af)](this[_0x3a52a8(0x191)]),this[_0x3a52a8(0x191)]=_0x12ee57,this[_0x3a52a8(0x1b9)]=_0x4197a0;let _0x4f008c=0x0;for(let _0x47cf3a of _0x46b2b6){const _0x596997=_0x3a52a8(0x1b0)+_0x4f008c;if(_0x47cf3a[_0x3a52a8(0x179)][_0x3a52a8(0x169)]){const _0x1a7b49=_0x47cf3a[_0x3a52a8(0x179)][_0x3a52a8(0x19e)](({item:_0x2ad4c7})=>!_0x111e5f[_0x3a52a8(0x1ae)][_0x3a52a8(0x17b)](_0x2ad4c7),{'boundaries':_0x47cf3a});_0x47cf3a=_0x4051d2[_0x3a52a8(0x17c)](_0x1a7b49,_0x47cf3a[_0x3a52a8(0x197)]);}_0x4051d2[_0x3a52a8(0x1a0)](_0x596997,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x47cf3a}),_0x4f008c++;}}),window[_0x16c332(0x1c9)]()?.[_0x16c332(0x1ad)](),!0x0;}[_0x40aa86(0x1af)](_0x225b23){const _0x5f58ab=_0x40aa86;if(this[_0x5f58ab(0x191)]!=_0x225b23)return!0x1;this[_0x5f58ab(0x191)]=null,this[_0x5f58ab(0x1b9)]=!0x1;const _0x30cc11=_0x13d0c8(this[_0x5f58ab(0x1c5)]),_0x5d353a=_0x30cc11[_0x5f58ab(0x1b2)][_0x5f58ab(0x175)][_0x5f58ab(0x15f)](_0x5f58ab(0x1a6));return _0x30cc11[_0x5f58ab(0x1b2)][_0x5f58ab(0x1c7)](_0x531700=>{const _0x2c581a=_0x5f58ab;for(const _0x1502a4 of _0x5d353a)_0x531700[_0x2c581a(0x176)](_0x1502a4);}),!0x0;}async[_0x40aa86(0x199)](_0x1ec2ce){const _0x3a1578=_0x40aa86,_0x329bf5=_0x13d0c8(this[_0x3a1578(0x1c5)]),_0x4adfb8=_0x329bf5[_0x3a1578(0x161)][_0x3a1578(0x17a)](_0x1ec2ce),_0x35eb6c=new _0x3e972b(_0x329bf5[_0x3a1578(0x1cb)][_0x3a1578(0x19f)][_0x3a1578(0x15e)]);return this[_0x3a1578(0x184)](_0x4adfb8,_0x35eb6c),this[_0x3a1578(0x170)](_0x4adfb8);}[_0x40aa86(0x184)](_0x32693f,_0x491ba2){const _0x28778c=_0x40aa86;let _0x5d6dfc=!0x1;const _0x43cecc=new Set();for(const _0x38b960 of _0x32693f[_0x28778c(0x162)]()){const _0x2576d4=_0x38b960['is'](_0x28778c(0x185))||_0x38b960['is'](_0x28778c(0x1ab));if(!_0x38b960['is'](_0x28778c(0x1b5)))continue;(this[_0x28778c(0x184)](_0x38b960,_0x491ba2)||_0x2576d4)&&(_0x491ba2[_0x28778c(0x172)](_0x28778c(0x174),this[_0x28778c(0x1aa)](_0x43cecc),_0x38b960),_0x5d6dfc=!0x0);}return _0x5d6dfc;}[_0x40aa86(0x1aa)](_0x57b5cc){const _0x32bf4a=_0x40aa86;let _0x3a891c;do{_0x3a891c='';for(let _0x14229c=0x0;_0x14229c<0x4;_0x14229c++)_0x3a891c+=String[_0x32bf4a(0x173)](0x61+Math[_0x32bf4a(0x15a)](0x1a*Math[_0x32bf4a(0x1c2)]()));}while(_0x57b5cc[_0x32bf4a(0x18a)](_0x3a891c));return _0x57b5cc[_0x32bf4a(0x15b)](_0x3a891c),_0x3a891c;}[_0x40aa86(0x1c1)](){const _0xe77c77=_0x40aa86,{model:_0x365196}=_0x13d0c8(this[_0xe77c77(0x1c5)]),_0xc9c997=_0x365196[_0xe77c77(0x15e)][_0xe77c77(0x17f)],_0x23135c=[];for(const _0x1a6100 of _0xc9c997[_0xe77c77(0x188)]())for(const _0x36fad9 of _0x1a6100[_0xe77c77(0x19b)]())_0x36fad9['is'](_0xe77c77(0x1bc))?_0x23135c[_0xe77c77(0x1ca)](_0x36fad9[_0xe77c77(0x161)]):_0x36fad9['is'](_0xe77c77(0x1b5))&&_0x23135c[_0xe77c77(0x198)]>0x0&&'\x20'!==_0x23135c[_0x23135c[_0xe77c77(0x198)]-0x1]&&_0x23135c[_0xe77c77(0x1ca)]('\x20');return _0x23135c[_0xe77c77(0x198)]?'\x22'+_0x23135c[_0xe77c77(0x181)]('')[_0xe77c77(0x178)]()+'\x22':_0x49aaff(this[_0xe77c77(0x1c5)][_0xe77c77(0x1c8)],_0xe77c77(0x1a2));}[_0x40aa86(0x1b7)](){const _0x3d4c4c=_0x40aa86,_0x52b4d6=_0x13d0c8(this[_0x3d4c4c(0x1c5)])[_0x3d4c4c(0x1b2)];return Array[_0x3d4c4c(0x1c6)](_0x52b4d6[_0x3d4c4c(0x175)][_0x3d4c4c(0x15f)](_0x3d4c4c(0x1a6)))[_0x3d4c4c(0x182)]((_0x599652,_0x5acd85)=>_0x599652[_0x3d4c4c(0x196)]()[_0x3d4c4c(0x195)](_0x5acd85[_0x3d4c4c(0x196)]())?-0x1:_0x599652[_0x3d4c4c(0x196)]()[_0x3d4c4c(0x19a)](_0x5acd85[_0x3d4c4c(0x196)]())?0x1:0x0);}}function _0xf8ba(_0x33ac0e,_0x2df690){const _0x336059=_0x3360();return _0xf8ba=function(_0xf8ba49,_0x42eba1){_0xf8ba49=_0xf8ba49-0x158;let _0x197602=_0x336059[_0xf8ba49];return _0x197602;},_0xf8ba(_0x33ac0e,_0x2df690);}function _0x3360(){const _0x51f51e=['pluginName','afterInit','get',':start>','config','_getDocumentDataStringFromView','getDocumentData','setAttribute','fromCharCode','data-id','markers','removeMarker','1741345naOLuU','trim','start','toView','isContent','createRange','getRoot','convertAiChatSelectionMarker','selection','toData','join','sort','15633bxcarq','_setDataIdsOnChildren','emptyElement','processor','6UMdbBO','getRanges','define','has','markerToHighlight','plugins','ck-ai-assistant-ui_theme',':end>','AIEditing','sessionId','_displayedFakeSelectionId','134alYJeo','isOpening',':start></','isBefore','getStart','end','length','modelToDataWithIds','isAfter','getItems','ai.models.showModelSelector','indexOf','getLastMatchingPosition','view','addMarker','for','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','markerName','13026170PITDlU','30702fOjZhJ','ai-selection','substring','ready','dataDowncast','_nextDataId','containerElement','4040USQUxr','removeAllRanges','schema','hideFakeVisualSelection','ai-selection:','_sessionId','model','name','990356ibSOKk','element','editingDowncast','_getMarkersInDocumentOrder','isPremiumPlugin','_displayedFakeSelectionLocked','4947467YoWemt','conversion','$textProxy','listenTo','editors','_integrateEditor','htmlWriter','getSelectionText','random','showFakeVisualSelection','createUIElement','context','from','change','locale','getSelection','push','editing','RealTimeCollaborationClient','viewToDom','floor','add','_setOutputDataProcessor',':end></','document','getMarkersGroup','domConverter','data','getChildren','ck-fake-ai-selection','isOfficialPlugin','getHtml','_outputDataProcessor','12825PYqlfK','markerToElement','isAtEnd','version'];_0x3360=function(){return _0x51f51e;};return _0x3360();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x41fd(_0x1c6a5e,_0xc29e5a){const _0x1e4645=_0x1e46();return _0x41fd=function(_0x41fd79,_0x4fa38f){_0x41fd79=_0x41fd79-0x1e0;let _0x178c39=_0x1e4645[_0x41fd79];return _0x178c39;},_0x41fd(_0x1c6a5e,_0xc29e5a);}const _0x14f560=_0x41fd;(function(_0x297eb4,_0x308ea2){const _0x109a1e=_0x41fd,_0x49a59a=_0x297eb4();while(!![]){try{const _0x28a735=-parseInt(_0x109a1e(0x1fb))/0x1*(parseInt(_0x109a1e(0x1f8))/0x2)+parseInt(_0x109a1e(0x1e4))/0x3*(-parseInt(_0x109a1e(0x1ee))/0x4)+parseInt(_0x109a1e(0x1e2))/0x5*(-parseInt(_0x109a1e(0x1e3))/0x6)+parseInt(_0x109a1e(0x1f2))/0x7+-parseInt(_0x109a1e(0x1f3))/0x8*(-parseInt(_0x109a1e(0x1f6))/0x9)+parseInt(_0x109a1e(0x1f4))/0xa*(-parseInt(_0x109a1e(0x1f5))/0xb)+parseInt(_0x109a1e(0x1f7))/0xc;if(_0x28a735===_0x308ea2)break;else _0x49a59a['push'](_0x49a59a['shift']());}catch(_0x247e4c){_0x49a59a['push'](_0x49a59a['shift']());}}}(_0x1e46,0xa977e));import{EmitterMixin as _0x1a5493}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x14f560(0x1f1)];export class AICapabilities extends _0x1a5493(){[_0x14f560(0x1ea)];[_0x14f560(0x1ef)];constructor(){const _0x113603=_0x14f560;super(),this[_0x113603(0x1ea)]=!0x1,this[_0x113603(0x1ef)]=!0x1;}[_0x14f560(0x1ec)](){const _0x2f95ce=_0x14f560;this[_0x2f95ce(0x1e8)]();}[_0x14f560(0x1e8)](){const _0xacacb9=_0x14f560;this[_0xacacb9(0x1e7)](!0x1),this[_0xacacb9(0x1e0)](!0x1);}[_0x14f560(0x1e5)](){const _0x3b9005=_0x14f560;return{'isWebSearchEnabled':this[_0x3b9005(0x1ea)],'isReasoningEnabled':this[_0x3b9005(0x1ef)]};}static[_0x14f560(0x1e1)](_0x39b1ae){const _0x4e6222=_0x14f560,_0x4706ee={};return _0x39b1ae&&_0x39b1ae[_0x4e6222(0x1eb)]&&(_0x4706ee[_0x4e6222(0x1e6)]={}),_0x39b1ae&&_0x39b1ae[_0x4e6222(0x1ed)]&&(_0x4706ee[_0x4e6222(0x1e9)]={}),_0x4706ee;}[_0x14f560(0x1fa)](){const _0x412df1=_0x14f560;this[_0x412df1(0x1e7)](!this[_0x412df1(0x1ea)]);}[_0x14f560(0x1f9)](){const _0x3c9a2a=_0x14f560;this[_0x3c9a2a(0x1e0)](!this[_0x3c9a2a(0x1ef)]);}[_0x14f560(0x1e7)](_0x586c05){const _0xfeaa6f=_0x14f560;_0x586c05!==this[_0xfeaa6f(0x1ea)]&&(this[_0xfeaa6f(0x1ea)]=_0x586c05,this[_0xfeaa6f(0x1f0)](_0xfeaa6f(0x1f1),this[_0xfeaa6f(0x1e5)]()));}[_0x14f560(0x1e0)](_0x519b9b){const _0x196662=_0x14f560;_0x519b9b!==this[_0x196662(0x1ef)]&&(this[_0x196662(0x1ef)]=_0x519b9b,this[_0x196662(0x1f0)](_0x196662(0x1f1),this[_0x196662(0x1e5)]()));}}function _0x1e46(){const _0x19056d=['getCapabilitiesRequestData','465535uuHUrZ','18CQNYLd','3164025KRdGRB','getCapabilitiesConfig','webSearch','setWebSearch','reset','reasoning','_isWebSearchEnabled','isWebSearchEnabled','init','isReasoningEnabled','4PNjYCZ','_isReasoningEnabled','fire','capabilitiesUpdated','8579438xAKSQX','88zmenIA','190VCfxtD','740465pzxRrB','9738kvCRNG','25578612GLzZEt','4426Eqremg','toggleReasoning','toggleWebSearch','28wQtUYK','setReasoning'];_0x1e46=function(){return _0x19056d;};return _0x1e46();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x29929f,_0x265b45){var _0x49aee5=_0x2535,_0xf9c0ca=_0x29929f();while(!![]){try{var _0xbba965=-parseInt(_0x49aee5(0xc1))/0x1+-parseInt(_0x49aee5(0xc2))/0x2*(parseInt(_0x49aee5(0xd1))/0x3)+parseInt(_0x49aee5(0xc6))/0x4+parseInt(_0x49aee5(0xd9))/0x5+-parseInt(_0x49aee5(0xd0))/0x6*(-parseInt(_0x49aee5(0xcf))/0x7)+-parseInt(_0x49aee5(0xc5))/0x8+-parseInt(_0x49aee5(0xd6))/0x9*(parseInt(_0x49aee5(0xc8))/0xa);if(_0xbba965===_0x265b45)break;else _0xf9c0ca['push'](_0xf9c0ca['shift']());}catch(_0x37d35a){_0xf9c0ca['push'](_0xf9c0ca['shift']());}}}(_0x1a48,0x20245));export var AIContextItemType;!function(_0x9776a7){var _0x49e58d=_0x2535;_0x9776a7[_0x49e58d(0xcb)]=_0x49e58d(0xd2),_0x9776a7[_0x49e58d(0xc9)]=_0x49e58d(0xd5),_0x9776a7[_0x49e58d(0xd7)]=_0x49e58d(0xc0),_0x9776a7[_0x49e58d(0xcd)]=_0x49e58d(0xc7),_0x9776a7[_0x49e58d(0xd8)]=_0x49e58d(0xc4),_0x9776a7[_0x49e58d(0xcc)]=_0x49e58d(0xca);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x2535(_0x5b654d,_0x2c7406){var _0x1a480f=_0x1a48();return _0x2535=function(_0x253523,_0x4bfd08){_0x253523=_0x253523-0xc0;var _0x5d02f2=_0x1a480f[_0x253523];return _0x5d02f2;},_0x2535(_0x5b654d,_0x2c7406);}!function(_0x4f457e){var _0x4991b6=_0x2535;_0x4f457e[_0x4991b6(0xd8)]=_0x4991b6(0xc4),_0x4f457e[_0x4991b6(0xd3)]=_0x4991b6(0xd4),_0x4f457e[_0x4991b6(0xce)]=_0x4991b6(0xc3);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x1a48(){var _0x97e718=['19626PmmbCq','1653eDKfFB','mcp-tool-context','MARKDOWN','markdown','file','9ewksNj','DOCUMENT','TEXT','779305YZnGbm','document','76367oGLvBf','878KRIjdr','html','text','466136nPMQsR','740712EgvvwP','web-resource','454780OlXKUP','FILE','selection','TOOL','SELECTION','URL','HTML','455DugBom'];_0x1a48=function(){return _0x97e718;};return _0x1a48();}
|