@ckeditor/ckeditor5-ai 47.6.2 → 47.7.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x7db12c=_0x58c3;(function(_0x2d17aa,_0x4b3d5f){const _0x2ccfda=_0x58c3,_0x361be0=_0x2d17aa();while(!![]){try{const _0x86aaf5=-parseInt(_0x2ccfda(0x122))/0x1+-parseInt(_0x2ccfda(0xeb))/0x2+parseInt(_0x2ccfda(0x13a))/0x3+parseInt(_0x2ccfda(0x128))/0x4*(-parseInt(_0x2ccfda(0x113))/0x5)+parseInt(_0x2ccfda(0x10d))/0x6+-parseInt(_0x2ccfda(0x120))/0x7*(-parseInt(_0x2ccfda(0xed))/0x8)+parseInt(_0x2ccfda(0x10b))/0x9;if(_0x86aaf5===_0x4b3d5f)break;else _0x361be0['push'](_0x361be0['shift']());}catch(_0x38bc1d){_0x361be0['push'](_0x361be0['shift']());}}}(_0x422c,0x9f65f));import{ListItemView as _0x56c583,HighlightedTextView as _0x7ee74d,ButtonView as _0x3c2362,ListView as _0x4f17af,IconView as _0x247890,createDropdown as _0x55825b,InputTextView as _0x4f89c5}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x3dee14,IconPin as _0x537a21,IconCheck as _0x41b692,IconCancel as _0x12f5da}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x40aaa4,ConfirmMixin as _0x1da082}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x390a48}from'es-toolkit/compat';function _0x58c3(_0x477376,_0x248a97){const _0x422c83=_0x422c();return _0x58c3=function(_0x58c3a0,_0x2f1e58){_0x58c3a0=_0x58c3a0-0xe3;let _0xfed667=_0x422c83[_0x58c3a0];return _0xfed667;},_0x58c3(_0x477376,_0x248a97);}function _0x422c(){const _0x4531b9=['_createPinButtonView','552654NOXjBx','ck-ai-chat-history__item-content','editConversationTitle','Enter','span','removeConversation','4PNUGGo','withText','ck-ai-chat-history__item--active','AI_CHAT_HISTORY_EDIT_NAME','edit:cancel','_createCancelEditButtonView','addMany','_createSpinnerView','AI_CHAT_HISTORY_ACCEPT','ck-ai-chat-history__item-title','ck-ai-chat-history__item-check-container','_createCheckView','mainContent','updateLoadingState','clear','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item--edit','add','1246572PbRyvm','items','div','ck-confirm-view-submit','isOn','ck-ai-chat-history__item','ck-ai-chat-history__item-actions','pinned','execute','click','ck-hidden','match','loadingState','selectConversation','extendTemplate','listitem','updateTitle','value','357292hIVKcD','_createMenuDropdownView','1897080vWcbVe','createCollection','bind','highlightText','setConversationPinned','_titleView','isVisible','children','ck-ai-loader','panelPosition','_commitEditInputValue','showConfirm','_createAcceptEditButtonView','element','text','_createEditInputView','focus','AI_CHAT_HISTORY_CANCEL','setTemplate','AI_CHAT_HISTORY_LOADING_REMOVING','isMatching','change:isEdit','LOADING_LABELS','key','ck-confirm-view-cancel','actions','ck-ai-chat-history__item-row','fire','buttonView','string','5686434vNKAWT','set','3011160RaFRBq','bindTemplate','ck-ai-chat-history__item-check','ck-ai-chat-history__item-main-content','tiny','ck-ai-chat-history__item-date','5567775gGeecU','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_REMOVE_CONFIRM','locale','ck-ai-loader__text','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_LOADING_RENAMING','label','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','AI_CHAT_HISTORY_LOADING_PINNING','then','panelView','isEdit','28qPXThN'];_0x422c=function(){return _0x4531b9;};return _0x422c();}import{AISpinnerView as _0x3f7d03}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x3ae019}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1da082(_0x56c583){['id'];static [_0x7db12c(0x103)]={'remove':_0x7db12c(0x100),'rename':_0x7db12c(0x119),'pin':_0x7db12c(0x11c),'unpin':_0x7db12c(0x118)};[_0x7db12c(0x106)];[_0x7db12c(0x134)];[_0x7db12c(0xf2)];constructor(_0x4f36da,_0x453bbc){const _0x404901=_0x7db12c;super(_0x4f36da);const _0x407545=this[_0x404901(0x10e)];this[_0x404901(0x10c)](_0x404901(0x11f),!0x1),this[_0x404901(0x10c)](_0x404901(0xf3),!0x0),this[_0x404901(0x10c)](_0x404901(0x141),!!_0x453bbc[_0x404901(0x141)]),this[_0x404901(0x10c)](_0x404901(0xe5),null),this['id']=_0x453bbc['id'];const {title:_0x2cb048,createdAt:_0x459541,active:_0x2ed501=!0x1}=_0x453bbc;this[_0x404901(0xf2)]=new _0x7ee74d(),this[_0x404901(0xf2)][_0x404901(0xfb)]=_0x2cb048,this[_0x404901(0xf2)][_0x404901(0xe7)]({'attributes':{'class':[_0x404901(0x131)]}});const _0x4fb361=this[_0x404901(0x133)](),_0x423bb3=this[_0x404901(0x121)](_0x4f36da),_0x26b857=this[_0x404901(0xec)](),_0x4021ed=this[_0x404901(0xfc)](_0x4f36da,_0x2cb048),_0xaa977e=this[_0x404901(0xf9)](_0x4f36da,_0x4021ed),_0x22efb3=this[_0x404901(0x12d)](_0x4f36da,_0x4021ed);this[_0x404901(0x106)]=this[_0x404901(0xee)](),this[_0x404901(0x134)]=this[_0x404901(0xee)](),this[_0x404901(0x134)][_0x404901(0x139)](this[_0x404901(0xf2)]),this[_0x404901(0x106)][_0x404901(0x139)](_0x423bb3),this[_0x404901(0x106)][_0x404901(0x139)](_0x26b857),this['on'](_0x404901(0x102),(_0x303881,_0x195335,_0x402f98)=>{const _0x1549b1=_0x404901;this[_0x1549b1(0x106)][_0x1549b1(0x136)](),this[_0x1549b1(0x134)][_0x1549b1(0x136)](),_0x402f98?(this[_0x1549b1(0x106)][_0x1549b1(0x139)](_0xaa977e),this[_0x1549b1(0x106)][_0x1549b1(0x139)](_0x22efb3),this[_0x1549b1(0x134)][_0x1549b1(0x139)](_0x4021ed),_0x4021ed[_0x1549b1(0xfa)][_0x1549b1(0xfd)]()):(this[_0x1549b1(0x106)][_0x1549b1(0x139)](_0x423bb3),this[_0x1549b1(0x106)][_0x1549b1(0x139)](_0x26b857),this[_0x1549b1(0x134)][_0x1549b1(0x139)](this[_0x1549b1(0xf2)]));}),this[_0x404901(0xff)]({'tag':'li','attributes':{'class':[_0x404901(0x13f),_0x2ed501?_0x404901(0x12a):'',_0x407545['if'](_0x404901(0xf3),_0x404901(0xe3),_0xb42ded=>!_0xb42ded),_0x407545['if'](_0x404901(0x11f),_0x404901(0x138))],'role':_0x404901(0xe8)},'children':[{'tag':_0x404901(0x126),'attributes':{'class':[_0x404901(0x132)]},'children':[{'tag':_0x404901(0x13c),'attributes':{'class':[_0x404901(0x10f),_0x407545['if'](_0x404901(0xe5),_0x404901(0xe3),_0x2e7fc6=>!!_0x2e7fc6)]},'children':_0x2ed501?[_0x4fb361]:[]},{'tag':_0x404901(0x13c),'attributes':{'class':[_0x404901(0xf5),_0x407545['if'](_0x404901(0xe5),_0x404901(0xe3),_0x4b8892=>!_0x4b8892)]},'children':[this[_0x404901(0x12f)]()]}]},{'tag':_0x404901(0x13c),'attributes':{'class':[_0x404901(0x107)]},'children':[{'tag':_0x404901(0x13c),'attributes':{'class':[_0x404901(0x123)]},'on':{'click':this[_0x404901(0x10e)]['to'](_0x404901(0x143))},'children':[{'tag':_0x404901(0x13c),'attributes':{'class':[_0x404901(0x110)]},'children':[{'tag':_0x404901(0x13c),'attributes':{'class':[_0x404901(0x131),_0x407545['if'](_0x404901(0xe5),_0x404901(0xe3),_0x36ef55=>!!_0x36ef55)]},'children':this[_0x404901(0x134)]},{'tag':_0x404901(0x13c),'attributes':{'class':[_0x404901(0x117),_0x407545['if'](_0x404901(0xe5),_0x404901(0xe3),_0x2d8ef4=>!_0x2d8ef4)]},'children':[{'text':_0x407545['to'](_0x404901(0xe5),_0x4cd3b8=>_0x4cd3b8?_0x3ae019(this[_0x404901(0x116)],AIChatHistoryListItemView[_0x404901(0x103)][_0x4cd3b8]):'')}]}]},{'tag':_0x404901(0x126),'attributes':{'class':[_0x404901(0x112)]},'children':[_0x459541]}]},{'tag':_0x404901(0x13c),'attributes':{'class':[_0x404901(0x140)]},'children':this[_0x404901(0x106)]}]}]}),this['on'](_0x404901(0x143),()=>{const _0x471d3b=_0x404901;this[_0x471d3b(0x11f)]||this[_0x471d3b(0x108)](_0x471d3b(0xe6),{'id':this['id']});});}[_0x7db12c(0xe9)](_0x5e8b92){const _0x358223=_0x7db12c;this[_0x358223(0xf2)][_0x358223(0xfb)]=_0x390a48(_0x5e8b92);}[_0x7db12c(0x135)](_0x11a8d5,_0x5030ab){const _0x385a2f=_0x7db12c;this[_0x385a2f(0x10c)](_0x385a2f(0xe5),_0x5030ab?_0x11a8d5:null);}[_0x7db12c(0x133)](){const _0x1b120b=_0x7db12c,_0x165660=new _0x247890();return _0x165660[_0x1b120b(0x10c)]({'content':_0x41b692}),_0x165660;}[_0x7db12c(0x121)](_0x4d6c28){const _0x49f17c=_0x7db12c,_0x14f4a3=new _0x3c2362(_0x4d6c28);return _0x14f4a3[_0x49f17c(0x10c)]({'label':_0x3ae019(_0x4d6c28,_0x49f17c(0x137)),'icon':_0x537a21,'withText':!0x1,'tooltip':!0x0}),_0x14f4a3[_0x49f17c(0xef)](_0x49f17c(0x13e))['to'](this,_0x49f17c(0x141)),_0x14f4a3['on'](_0x49f17c(0x142),()=>{const _0x205836=_0x49f17c,_0x3fd68e=!this[_0x205836(0x141)];this[_0x205836(0x108)](_0x205836(0xf1),{'id':this['id'],'pinned':_0x3fd68e});}),_0x14f4a3;}[_0x7db12c(0xec)](){const _0xf7871a=_0x7db12c,_0x497eda=_0x55825b(this[_0xf7871a(0x116)],_0x40aaa4),_0x8056f4=_0x497eda[_0xf7871a(0x11e)][_0xf7871a(0xf4)];_0x497eda[_0xf7871a(0x109)][_0xf7871a(0x10c)]({'label':_0x3ae019(this[_0xf7871a(0x116)],_0xf7871a(0x11b)),'icon':_0x3dee14}),_0x497eda[_0xf7871a(0xf6)]='sw';const _0x1142d8=new _0x3c2362(this[_0xf7871a(0x116)]);_0x1142d8[_0xf7871a(0x11a)]=_0x3ae019(this[_0xf7871a(0x116)],_0xf7871a(0x12b)),_0x1142d8[_0xf7871a(0x129)]=!0x0,_0x1142d8['on'](_0xf7871a(0x142),()=>{const _0x208f2d=_0xf7871a;this[_0x208f2d(0x11f)]=!0x0;});const _0x76c90b=new _0x3c2362(this[_0xf7871a(0x116)]);_0x76c90b[_0xf7871a(0x11a)]=_0x3ae019(this[_0xf7871a(0x116)],_0xf7871a(0x114)),_0x76c90b[_0xf7871a(0x129)]=!0x0,_0x76c90b['on'](_0xf7871a(0x142),()=>{const _0x599a44=_0xf7871a;this[_0x599a44(0xf8)](_0x3ae019(this[_0x599a44(0x116)],_0x599a44(0x115)),this[_0x599a44(0xfa)])[_0x599a44(0x11d)](()=>{const _0x215b08=_0x599a44;this[_0x215b08(0x108)](_0x215b08(0x127),{'id':this['id']});});});const _0x489218=new _0x4f17af(this[_0xf7871a(0x116)]),_0x42d8ea=new _0x56c583(this[_0xf7871a(0x116)]);_0x42d8ea[_0xf7871a(0xf4)][_0xf7871a(0x139)](_0x1142d8);const _0x10c74c=new _0x56c583(this[_0xf7871a(0x116)]);return _0x10c74c[_0xf7871a(0xf4)][_0xf7871a(0x139)](_0x76c90b),_0x489218[_0xf7871a(0x13b)][_0xf7871a(0x12e)]([_0x42d8ea,_0x10c74c]),_0x8056f4[_0xf7871a(0x139)](_0x489218),_0x497eda;}[_0x7db12c(0xfc)](_0x1ef139,_0x563f75){const _0xdebf3f=_0x7db12c,_0x541d85=new _0x4f89c5(_0x1ef139),_0x3458df=_0x541d85[_0xdebf3f(0x10e)];return _0x541d85[_0xdebf3f(0xea)]=_0x563f75,_0x541d85[_0xdebf3f(0xe7)]({'on':{'keydown':_0x3458df['to'](_0x1b8f72=>{const _0x11fcfd=_0xdebf3f;_0x11fcfd(0x125)==_0x1b8f72[_0x11fcfd(0x104)]&&this[_0x11fcfd(0xf7)](_0x541d85);})}}),_0x541d85;}[_0x7db12c(0xf9)](_0x838e0f,_0x28473a){const _0x852e3=_0x7db12c,_0x571c26=new _0x3c2362(_0x838e0f);return _0x571c26[_0x852e3(0x10c)]({'icon':_0x41b692,'withText':!0x1,'tooltip':_0x3ae019(_0x838e0f,_0x852e3(0x130))}),_0x571c26[_0x852e3(0xe7)]({'attributes':{'class':[_0x852e3(0x13d)]}}),_0x571c26['on'](_0x852e3(0x142),()=>{const _0x4d2b60=_0x852e3;this[_0x4d2b60(0xf7)](_0x28473a);}),_0x571c26;}[_0x7db12c(0xf7)](_0x3d1304){const _0x26b65e=_0x7db12c,_0x2653b6=_0x3d1304[_0x26b65e(0xfa)][_0x26b65e(0xea)]||'';this[_0x26b65e(0xf2)][_0x26b65e(0xfb)]=_0x2653b6,this[_0x26b65e(0x11f)]=!0x1,this[_0x26b65e(0x108)](_0x26b65e(0x124),{'id':this['id'],'title':_0x2653b6});}[_0x7db12c(0x12d)](_0x517d22,_0x433076){const _0x818fa7=_0x7db12c,_0x2ebf5a=new _0x3c2362(_0x517d22);return _0x2ebf5a[_0x818fa7(0x10c)]({'icon':_0x12f5da,'withText':!0x1,'tooltip':_0x3ae019(_0x517d22,_0x818fa7(0xfe))}),_0x2ebf5a[_0x818fa7(0xe7)]({'attributes':{'class':[_0x818fa7(0x105)]}}),_0x2ebf5a['on'](_0x818fa7(0x142),()=>{const _0x21b96c=_0x818fa7;this[_0x21b96c(0x11f)]=!0x1,_0x433076[_0x21b96c(0xea)]=this[_0x21b96c(0xf2)][_0x21b96c(0xfb)]||'',this[_0x21b96c(0x108)](_0x21b96c(0x12c));}),_0x2ebf5a;}[_0x7db12c(0x12f)](){const _0x2a1bce=_0x7db12c,_0x5da2c6=new _0x3f7d03(_0x2a1bce(0x111));return _0x5da2c6[_0x2a1bce(0xf3)]=!0x0,_0x5da2c6;}[_0x7db12c(0x101)](_0x21b610){const _0x4ea2ca=_0x7db12c;return this[_0x4ea2ca(0xf2)]&&_0x4ea2ca(0x10a)==typeof this[_0x4ea2ca(0xf2)][_0x4ea2ca(0xfb)]&&this[_0x4ea2ca(0xf2)][_0x4ea2ca(0xfb)][_0x4ea2ca(0xe4)](_0x21b610)?{'title':!0x0}:null;}[_0x7db12c(0xf0)](_0x2bb4ff){const _0x5b5037=_0x7db12c;this[_0x5b5037(0xf2)][_0x5b5037(0xf0)](_0x2bb4ff);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x52a7(){const _0x3dd509=['3276505LIwilk','102605fZtTLo','highlightText','1582344gxtRvS','removeItem','1506EMHris','set','getItem','indexOf','div','1485zYupQe','splice','2054228AotRVC','itemsViews','2Rahxyn','bindTemplate','ck-hidden','27160UPyKsq','setTemplate','ck-ai-chat-history__section-title','5663pDGIqn','addMany','filter','find','_itemsListView','items','length','remove','title','ck-ai-chat-history__section','isMatching','isVisible','6077100NNDdUK'];_0x52a7=function(){return _0x3dd509;};return _0x52a7();}const _0x5666c0=_0x3131;(function(_0x56e21e,_0x2d93f9){const _0x58e329=_0x3131,_0x471c98=_0x56e21e();while(!![]){try{const _0x2b7a39=parseInt(_0x58e329(0x180))/0x1*(-parseInt(_0x58e329(0x16c))/0x2)+-parseInt(_0x58e329(0x182))/0x3+parseInt(_0x58e329(0x16a))/0x4+parseInt(_0x58e329(0x17f))/0x5+parseInt(_0x58e329(0x184))/0x6*(-parseInt(_0x58e329(0x172))/0x7)+-parseInt(_0x58e329(0x16f))/0x8*(parseInt(_0x58e329(0x168))/0x9)+parseInt(_0x58e329(0x17e))/0xa;if(_0x2b7a39===_0x2d93f9)break;else _0x471c98['push'](_0x471c98['shift']());}catch(_0x1e2f40){_0x471c98['push'](_0x471c98['shift']());}}}(_0x52a7,0x5d931));import{ListItemView as _0x1569b1,View as _0x95e4cc,ListView as _0x29e460}from'ckeditor5/src/ui.js';function _0x3131(_0x584844,_0x43b712){const _0x52a77f=_0x52a7();return _0x3131=function(_0x313166,_0x4b9cbe){_0x313166=_0x313166-0x165;let _0x3c7469=_0x52a77f[_0x313166];return _0x3c7469;},_0x3131(_0x584844,_0x43b712);}export class AIChatHistoryListView extends _0x1569b1{[_0x5666c0(0x17a)];[_0x5666c0(0x16b)];[_0x5666c0(0x176)];constructor(_0x2fdc60,{title:_0x33f2bf,items:_0x542722}){const _0x8f35c8=_0x5666c0;super(_0x2fdc60);const _0x4c1074=this[_0x8f35c8(0x16d)];this[_0x8f35c8(0x185)](_0x8f35c8(0x17d),!0x0),this[_0x8f35c8(0x17a)]=_0x33f2bf,this[_0x8f35c8(0x16b)]=_0x542722;const _0x445b36=new _0x95e4cc(_0x2fdc60);_0x445b36[_0x8f35c8(0x170)]({'tag':_0x8f35c8(0x167),'attributes':{'class':[_0x8f35c8(0x171)]},'children':[this[_0x8f35c8(0x17a)]]}),this[_0x8f35c8(0x176)]=new _0x29e460(_0x2fdc60),this[_0x8f35c8(0x176)][_0x8f35c8(0x177)][_0x8f35c8(0x173)](this[_0x8f35c8(0x16b)]),this[_0x8f35c8(0x170)]({'tag':'li','attributes':{'class':[_0x8f35c8(0x17b),_0x4c1074['if'](_0x8f35c8(0x17d),_0x8f35c8(0x16e),_0x58cc99=>!_0x58cc99)]},'children':[_0x445b36,this[_0x8f35c8(0x176)]]});}[_0x5666c0(0x174)](_0x11c1c6){const _0x8145e2=_0x5666c0,_0x1864a4=this[_0x8145e2(0x16b)][_0x8145e2(0x178)];let _0x34751c=0x0;for(const _0x5eb36b of this[_0x8145e2(0x16b)]){if(_0x11c1c6){const _0x375709=_0x5eb36b[_0x8145e2(0x17c)](_0x11c1c6);_0x5eb36b[_0x8145e2(0x17d)]=!!_0x375709,_0x5eb36b[_0x8145e2(0x181)](_0x11c1c6);}else _0x5eb36b[_0x8145e2(0x17d)]=!0x0,_0x5eb36b[_0x8145e2(0x181)](null);_0x5eb36b[_0x8145e2(0x17d)]&&_0x34751c++;}return this[_0x8145e2(0x17d)]=_0x34751c>0x0,{'resultsCount':_0x34751c,'totalItemsCount':_0x1864a4};}[_0x5666c0(0x165)](_0x4f02a5){const _0x4a70c0=_0x5666c0;return this[_0x4a70c0(0x16b)][_0x4a70c0(0x175)](_0x1d9e43=>_0x1d9e43['id']===_0x4f02a5);}[_0x5666c0(0x183)](_0x5986a4){const _0x43dd63=_0x5666c0,_0x33bc14=this[_0x43dd63(0x16b)][_0x43dd63(0x166)](_0x5986a4);-0x1!==_0x33bc14&&(this[_0x43dd63(0x16b)][_0x43dd63(0x169)](_0x33bc14,0x1),this[_0x43dd63(0x176)][_0x43dd63(0x177)][_0x43dd63(0x179)](_0x5986a4));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e267b=_0xe9d8;function _0x5e24(){const _0x2a2488=['5THDSGH','filter','1125688ARNgIK','36lGksZd','1244667RBuxYh','7251730obQgRB','9UFNwSn','addMany','4RJvXPa','4oCfGzV','sections','687138dJfACc','items','ck-ai-chat-history__sections','1741051PlIfPf','11vCOodh','3802498tGjzsV','88546nRmmLl','extendTemplate'];_0x5e24=function(){return _0x2a2488;};return _0x5e24();}(function(_0xf3f6dc,_0x478a22){const _0x31ed6e=_0xe9d8,_0x5d4e0f=_0xf3f6dc();while(!![]){try{const _0x3636f2=-parseInt(_0x31ed6e(0x14b))/0x1*(-parseInt(_0x31ed6e(0x141))/0x2)+parseInt(_0x31ed6e(0x147))/0x3*(-parseInt(_0x31ed6e(0x14c))/0x4)+-parseInt(_0x31ed6e(0x143))/0x5*(parseInt(_0x31ed6e(0x13b))/0x6)+parseInt(_0x31ed6e(0x140))/0x7+parseInt(_0x31ed6e(0x145))/0x8*(-parseInt(_0x31ed6e(0x149))/0x9)+parseInt(_0x31ed6e(0x148))/0xa*(parseInt(_0x31ed6e(0x13f))/0xb)+-parseInt(_0x31ed6e(0x146))/0xc*(parseInt(_0x31ed6e(0x13e))/0xd);if(_0x3636f2===_0x478a22)break;else _0x5d4e0f['push'](_0x5d4e0f['shift']());}catch(_0x28ae48){_0x5d4e0f['push'](_0x5d4e0f['shift']());}}}(_0x5e24,0x5b347));import{ListView as _0x1815bf}from'ckeditor5/src/ui.js';function _0xe9d8(_0x538dbc,_0xb05994){const _0x5e246b=_0x5e24();return _0xe9d8=function(_0xe9d8ab,_0x455636){_0xe9d8ab=_0xe9d8ab-0x13a;let _0x3daca8=_0x5e246b[_0xe9d8ab];return _0x3daca8;},_0xe9d8(_0x538dbc,_0xb05994);}export class AIChatHistorySectionListView extends _0x1815bf{[_0x1e267b(0x13a)];constructor(_0x30ed52,_0xe726be){const _0x2e8060=_0x1e267b;super(_0x30ed52),this[_0x2e8060(0x13a)]=_0xe726be,this[_0x2e8060(0x13c)][_0x2e8060(0x14a)](this[_0x2e8060(0x13a)]),this[_0x2e8060(0x142)]({'attributes':{'class':[_0x2e8060(0x13d)]}});}[_0x1e267b(0x144)](_0x28c941){const _0x496ef8=_0x1e267b;let _0x2ebe6b=0x0,_0xbe69b6=0x0;for(const _0xcc0af9 of this[_0x496ef8(0x13a)]){const {resultsCount:_0x295a09,totalItemsCount:_0x184b9d}=_0xcc0af9[_0x496ef8(0x144)](_0x28c941);_0x2ebe6b+=_0x295a09,_0xbe69b6+=_0x184b9d;}return{'resultsCount':_0x2ebe6b,'totalItemsCount':_0xbe69b6};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4795a9=_0x15c2;(function(_0x3da1db,_0x5d99e2){const _0x288991=_0x15c2,_0x530152=_0x3da1db();while(!![]){try{const _0x1321bc=-parseInt(_0x288991(0x152))/0x1*(parseInt(_0x288991(0x14c))/0x2)+-parseInt(_0x288991(0x171))/0x3+-parseInt(_0x288991(0x145))/0x4*(-parseInt(_0x288991(0x17d))/0x5)+parseInt(_0x288991(0x129))/0x6+parseInt(_0x288991(0x12f))/0x7+parseInt(_0x288991(0x146))/0x8*(-parseInt(_0x288991(0x135))/0x9)+parseInt(_0x288991(0x141))/0xa*(parseInt(_0x288991(0x165))/0xb);if(_0x1321bc===_0x5d99e2)break;else _0x530152['push'](_0x530152['shift']());}catch(_0x1caad8){_0x530152['push'](_0x530152['shift']());}}}(_0x1df6,0x22535));import{View as _0x91eb76,SearchTextView as _0x1cdb8e,FormHeaderView as _0x34884c,ButtonView as _0x491842}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x144316,IconCancel as _0xc9519f,IconPlus as _0x454889}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x4590b8}from'./aichathistorysectionlistview.js';function _0x15c2(_0x4f290a,_0x687454){const _0x1df697=_0x1df6();return _0x15c2=function(_0x15c23f,_0x3b8590){_0x15c23f=_0x15c23f-0x129;let _0x39cd2a=_0x1df697[_0x15c23f];return _0x39cd2a;},_0x15c2(_0x4f290a,_0x687454);}import{AIChatHistoryListView as _0xfa366a}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x45f64a}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x108ab6}from'../aichathistoryui.js';import{AISkeletonView as _0x481ede,SKELETON_DEFINITIONS as _0x11858c}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x22d96d}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x589497}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x91eb76{[_0x4795a9(0x175)];[_0x4795a9(0x160)];[_0x4795a9(0x13d)];[_0x4795a9(0x138)];[_0x4795a9(0x185)];[_0x4795a9(0x16b)];constructor(_0x4b1dfd,_0x15d3dc){const _0x44996c=_0x4795a9;super(_0x4b1dfd),this[_0x44996c(0x154)](_0x44996c(0x13c),!0x1),this[_0x44996c(0x154)](_0x44996c(0x177),!0x0),this[_0x44996c(0x154)](_0x44996c(0x14a),''),this[_0x44996c(0x154)](_0x44996c(0x14e),!0x1),this[_0x44996c(0x154)](_0x44996c(0x140),!0x1),this[_0x44996c(0x154)](_0x44996c(0x16d),!0x1),this[_0x44996c(0x154)](_0x44996c(0x166),!0x1);const _0x5b87c4=new _0x34884c(_0x4b1dfd,{'label':_0x589497(_0x4b1dfd,_0x44996c(0x15a)),'icon':_0x144316,'class':_0x44996c(0x16f)});_0x15d3dc&&(this[_0x44996c(0x16b)]=_0x22d96d(_0x4b1dfd,this),_0x5b87c4[_0x44996c(0x130)][_0x44996c(0x163)](this[_0x44996c(0x16b)])),this[_0x44996c(0x185)]=new _0x4590b8(_0x4b1dfd,[]),this[_0x44996c(0x185)][_0x44996c(0x158)](..._0x108ab6)['to'](this),this[_0x44996c(0x160)]=this[_0x44996c(0x13b)](),this[_0x44996c(0x13d)]=this[_0x44996c(0x17a)](),this[_0x44996c(0x138)]=this[_0x44996c(0x186)](),this[_0x44996c(0x175)]=this[_0x44996c(0x139)](),this[_0x44996c(0x160)][_0x44996c(0x136)]({'attributes':{'class':[this[_0x44996c(0x133)]['if'](_0x44996c(0x166),_0x44996c(0x12b),_0x1a99ba=>!_0x1a99ba)]}}),this['on'](_0x44996c(0x131),()=>this[_0x44996c(0x143)]()),this['on'](_0x44996c(0x150),()=>this[_0x44996c(0x143)]()),this['on'](_0x44996c(0x17e),()=>this[_0x44996c(0x143)]()),this[_0x44996c(0x169)]({'tag':_0x44996c(0x147),'attributes':{'class':['ck',_0x44996c(0x149),_0x44996c(0x16e),_0x44996c(0x12d)],'dir':_0x44996c(0x15c)},'children':[_0x5b87c4,{'tag':_0x44996c(0x147),'attributes':{'class':[_0x44996c(0x162)]},'children':[this[_0x44996c(0x13d)],this[_0x44996c(0x160)],this[_0x44996c(0x138)],this[_0x44996c(0x175)]]}]});}[_0x4795a9(0x143)](){const _0xe9d955=_0x4795a9;this[_0xe9d955(0x140)]=!this[_0xe9d955(0x177)]&&this[_0xe9d955(0x13c)],this[_0xe9d955(0x16d)]=!this[_0xe9d955(0x177)]&&!this[_0xe9d955(0x13c)]&&!this[_0xe9d955(0x14a)],this[_0xe9d955(0x166)]=!this[_0xe9d955(0x140)]&&!!this[_0xe9d955(0x14a)];}[_0x4795a9(0x139)](){const _0x8df2b9=_0x4795a9,_0xc32efa=new _0x1cdb8e(this[_0x8df2b9(0x144)],{'filteredView':this[_0x8df2b9(0x185)],'queryView':{'label':_0x589497(this[_0x8df2b9(0x144)],_0x8df2b9(0x174))},'infoView':{'text':{'notFound':{'primary':_0x14e035=>_0x589497(this[_0x8df2b9(0x144)],_0x8df2b9(0x13a),_0x14e035),'secondary':_0x589497(this[_0x8df2b9(0x144)],_0x8df2b9(0x137))}}}}),_0x4d1230=this[_0x8df2b9(0x13b)]();return _0x4d1230[_0x8df2b9(0x136)]({'attributes':{'class':[this[_0x8df2b9(0x133)]['if'](_0x8df2b9(0x14a),_0x8df2b9(0x12b),_0x631d67=>!_0x631d67)]}}),_0xc32efa['on'](_0x8df2b9(0x181),()=>{const _0x24b1dd=_0x8df2b9;_0xc32efa[_0x24b1dd(0x130)][_0x24b1dd(0x163)](_0x4d1230,0x1);}),_0xc32efa[_0x8df2b9(0x136)]({'attributes':{'class':[this[_0x8df2b9(0x133)]['if'](_0x8df2b9(0x140),_0x8df2b9(0x12b),_0x470032=>!_0x470032)]}}),_0xc32efa;}[_0x4795a9(0x17a)](){const _0x5afa2f=_0x4795a9,_0x1fc85f=new _0x481ede(this[_0x5afa2f(0x144)],_0x11858c[_0x5afa2f(0x134)]);return _0x1fc85f[_0x5afa2f(0x136)]({'attributes':{'class':[this[_0x5afa2f(0x133)]['if'](_0x5afa2f(0x177),_0x5afa2f(0x12b),_0x2aca35=>!_0x2aca35)]}}),_0x1fc85f;}[_0x4795a9(0x13b)](){const _0x2371ef=_0x4795a9,_0x144a8b=new _0x91eb76(this[_0x2371ef(0x144)]),_0x14c70c=new _0x491842(this[_0x2371ef(0x144)]);_0x14c70c[_0x2371ef(0x154)]({'withText':!0x1,'icon':_0xc9519f,'class':_0x2371ef(0x14f)}),_0x14c70c[_0x2371ef(0x17b)](_0x2371ef(0x183))['to'](this,_0x2371ef(0x13c),_0x24eb43=>!!_0x24eb43),_0x14c70c['on'](_0x2371ef(0x159),()=>{const _0x325b07=_0x2371ef;this[_0x325b07(0x14a)]='';});const _0xf18db4=this[_0x2371ef(0x133)];return _0x144a8b[_0x2371ef(0x169)]({'tag':_0x2371ef(0x147),'attributes':{'class':['ck',_0x2371ef(0x15f),_0x2371ef(0x12e)]},'children':[{'tag':'p','children':[{'text':_0xf18db4['to'](_0x2371ef(0x14a))}]},_0x14c70c]}),_0x144a8b;}[_0x4795a9(0x186)](){const _0x261305=_0x4795a9,_0x21cbeb=new _0x491842(this[_0x261305(0x144)]);_0x21cbeb[_0x261305(0x154)]({'label':_0x589497(this[_0x261305(0x144)],_0x261305(0x15d)),'withText':!0x0,'icon':_0x454889,'class':_0x261305(0x157)}),_0x21cbeb['on'](_0x261305(0x159),()=>{const _0x5885b2=_0x261305;this[_0x5885b2(0x176)](_0x5885b2(0x168));});const _0x95fcf8=new _0x91eb76(this[_0x261305(0x144)]);return _0x95fcf8[_0x261305(0x169)]({'tag':_0x261305(0x147),'attributes':{'class':[_0x261305(0x161),this[_0x261305(0x133)]['if'](_0x261305(0x16d),_0x261305(0x12b),_0x350e37=>!_0x350e37)]},'children':[{'tag':'p','attributes':{'class':[_0x261305(0x14b)]},'children':[_0x589497(this[_0x261305(0x144)],_0x261305(0x15e))]},_0x21cbeb]}),_0x95fcf8;}[_0x4795a9(0x142)](_0x2836ad,_0x2b610f){const _0x35c4e0=_0x4795a9,_0x42a1f4=[];for(const _0x1cf6b4 of _0x2836ad){const _0x3a7a1c=new _0x45f64a(_0x2b610f,_0x1cf6b4);_0x3a7a1c[_0x35c4e0(0x158)](..._0x108ab6)['to'](this),_0x42a1f4[_0x35c4e0(0x173)](_0x3a7a1c);}return _0x42a1f4;}[_0x4795a9(0x13e)](_0x479192){const _0x5ecb2c=_0x4795a9,_0x991485=this[_0x5ecb2c(0x144)]||'en',_0x2a73f0=[];for(const _0x17f896 of _0x479192){const _0x31a3ae=this[_0x5ecb2c(0x142)](_0x17f896[_0x5ecb2c(0x16c)],_0x991485);_0x2a73f0[_0x5ecb2c(0x173)](new _0xfa366a(_0x991485,{'title':_0x17f896[_0x5ecb2c(0x17f)],'items':_0x31a3ae}));}this[_0x5ecb2c(0x185)][_0x5ecb2c(0x184)]=_0x2a73f0,this[_0x5ecb2c(0x185)][_0x5ecb2c(0x16c)][_0x5ecb2c(0x178)](),this[_0x5ecb2c(0x185)][_0x5ecb2c(0x16c)][_0x5ecb2c(0x172)](_0x2a73f0),this[_0x5ecb2c(0x13c)]=_0x479192[_0x5ecb2c(0x13f)](_0xab2d2b=>_0xab2d2b[_0x5ecb2c(0x16c)][_0x5ecb2c(0x156)]>0x0),this[_0x5ecb2c(0x182)]();}[_0x4795a9(0x155)](_0x2f5b78){const _0x57ab64=_0x4795a9;for(const _0x3e2b83 of this[_0x57ab64(0x185)][_0x57ab64(0x184)]){const _0x9dc558=_0x3e2b83[_0x57ab64(0x17c)](_0x2f5b78);if(_0x9dc558){if(_0x3e2b83[_0x57ab64(0x12a)](_0x9dc558),0x0===_0x3e2b83[_0x57ab64(0x12c)][_0x57ab64(0x156)]){const _0x3458f4=this[_0x57ab64(0x185)][_0x57ab64(0x184)][_0x57ab64(0x132)](_0x3e2b83);-0x1!==_0x3458f4&&(this[_0x57ab64(0x185)][_0x57ab64(0x184)][_0x57ab64(0x15b)](_0x3458f4,0x1),this[_0x57ab64(0x185)][_0x57ab64(0x16c)][_0x57ab64(0x151)](_0x3e2b83));}this[_0x57ab64(0x13c)]=this[_0x57ab64(0x185)][_0x57ab64(0x184)][_0x57ab64(0x156)]>0x0,this[_0x57ab64(0x182)]();break;}}}[_0x4795a9(0x180)](_0x13302d,_0x3c7bad){const _0x5bca38=_0x4795a9;for(const _0x12560b of this[_0x5bca38(0x185)][_0x5bca38(0x184)]){const _0x225473=_0x12560b[_0x5bca38(0x17c)](_0x13302d);if(_0x225473){_0x225473[_0x5bca38(0x153)](_0x3c7bad);break;}}}[_0x4795a9(0x148)](_0x280d39,_0x4aabca,_0x428319){const _0x5bb4ac=_0x4795a9;for(const _0x25f15b of this[_0x5bb4ac(0x185)][_0x5bb4ac(0x184)]){const _0x70e831=_0x25f15b[_0x5bb4ac(0x17c)](_0x280d39);if(_0x70e831){_0x70e831[_0x5bb4ac(0x167)](_0x4aabca,_0x428319);break;}}}[_0x4795a9(0x182)](){const _0x5de738=_0x4795a9;if(this[_0x5de738(0x13c)]){const _0x452475=this[_0x5de738(0x175)][_0x5de738(0x179)][_0x5de738(0x14d)]?.[_0x5de738(0x164)]?.[_0x5de738(0x170)]||'';this[_0x5de738(0x175)][_0x5de738(0x16a)](_0x452475);}}}function _0x1df6(){const _0x4411cb=['setTemplate','search','resizeButton','items','isEmptyViewVisible','ck-ai-chat-history','ck-ai-header\x20ck-ai-header_history','value','156945tCngyy','addMany','push','AI_CHAT_HISTORY_SEARCH_LABEL','searchView','fire','isLoading','clear','queryView','_createSkeletonView','bind','getItem','288145rLQgIN','change:errorMessage','title','updateItemTitle','render','_refreshSearch','isVisible','sections','sectionsView','_createEmptyStateView','1327728jXSHNy','removeItem','ck-hidden','itemsViews','ck-rounded-corners','ck-ai-notification_error','344330hApOFS','children','change:isLoading','indexOf','bindTemplate','aiHistory','163071OItcqh','extendTemplate','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','emptyView','_createSearchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_createErrorView','hasItems','skeletonView','updateHistoryItemsWithCategories','some','isSearchViewVisible','10vGHKUH','_createListItemViews','_updateViewVisibility','locale','4BRVeVL','56zhWMNz','div','updateItemLoadingState','ck-reset_all','errorMessage','ck-ai-chat-history__empty-message','46nvEeLd','fieldView','isMaximized','ck-ai-notification_error__dismiss-button','change:hasItems','remove','3247fEyQOp','updateTitle','set','removeHistoryItem','length','ck-ai-chat__start-conversation','delegate','execute','AI_CHAT_HISTORY_HEADING','splice','ltr','AI_CHAT_LABEL_NEW_CHAT','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-notification','mainErrorView','ck-ai-chat-history__empty','ck-ai-chat-history__content','add','element','729509kcMtAq','isMainErrorViewVisible','updateLoadingState','openChat'];_0x1df6=function(){return _0x4411cb;};return _0x1df6();}
|
|
23
|
+
const _0x1f4b01=_0x11a4;(function(_0x4b126f,_0x43c39c){const _0x319f61=_0x11a4,_0x107ba0=_0x4b126f();while(!![]){try{const _0x383811=-parseInt(_0x319f61(0x215))/0x1*(parseInt(_0x319f61(0x1f6))/0x2)+-parseInt(_0x319f61(0x228))/0x3+-parseInt(_0x319f61(0x1f0))/0x4*(parseInt(_0x319f61(0x1f2))/0x5)+-parseInt(_0x319f61(0x201))/0x6*(-parseInt(_0x319f61(0x212))/0x7)+-parseInt(_0x319f61(0x231))/0x8*(-parseInt(_0x319f61(0x218))/0x9)+parseInt(_0x319f61(0x1ec))/0xa*(parseInt(_0x319f61(0x200))/0xb)+parseInt(_0x319f61(0x225))/0xc;if(_0x383811===_0x43c39c)break;else _0x107ba0['push'](_0x107ba0['shift']());}catch(_0x34323c){_0x107ba0['push'](_0x107ba0['shift']());}}}(_0x144b,0xeeecc));import{View as _0xf55871,SearchTextView as _0x45611d,FormHeaderView as _0x1db3f4,ButtonView as _0x217a45}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x249cb3,IconCancel as _0x5131ac,IconPlus as _0x2b7bd8}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0xe963a4}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x3bb2ab}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2d3e2b}from'./aichathistorylistitemview.js';function _0x11a4(_0x5b3f16,_0x1a69c3){const _0x144b1=_0x144b();return _0x11a4=function(_0x11a48a,_0xab7f52){_0x11a48a=_0x11a48a-0x1e7;let _0x3b03dc=_0x144b1[_0x11a48a];return _0x3b03dc;},_0x11a4(_0x5b3f16,_0x1a69c3);}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x154452}from'../aichathistoryui.js';import{AISkeletonView as _0x292ed4,SKELETON_DEFINITIONS as _0x5ed03d}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x57fd1e}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x44a2fe}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0xf55871{[_0x1f4b01(0x23a)];[_0x1f4b01(0x230)];[_0x1f4b01(0x223)];[_0x1f4b01(0x21a)];[_0x1f4b01(0x1ef)];[_0x1f4b01(0x1f3)];constructor(_0xb376c,_0x5759ad){const _0x2a1c09=_0x1f4b01;super(_0xb376c),this[_0x2a1c09(0x21e)](_0x2a1c09(0x227),!0x1),this[_0x2a1c09(0x21e)](_0x2a1c09(0x219),!0x0),this[_0x2a1c09(0x21e)](_0x2a1c09(0x204),''),this[_0x2a1c09(0x21e)](_0x2a1c09(0x216),!0x1),this[_0x2a1c09(0x21e)](_0x2a1c09(0x244),!0x1),this[_0x2a1c09(0x21e)](_0x2a1c09(0x236),!0x1),this[_0x2a1c09(0x21e)](_0x2a1c09(0x237),!0x1);const _0x5095d8=new _0x1db3f4(_0xb376c,{'label':_0x44a2fe(_0xb376c,_0x2a1c09(0x213)),'icon':_0x249cb3,'class':_0x2a1c09(0x23b)});_0x5759ad&&(this[_0x2a1c09(0x1f3)]=_0x57fd1e(_0xb376c,this),_0x5095d8[_0x2a1c09(0x1ee)][_0x2a1c09(0x241)](this[_0x2a1c09(0x1f3)])),this[_0x2a1c09(0x1ef)]=new _0xe963a4(_0xb376c,[]),this[_0x2a1c09(0x1ef)][_0x2a1c09(0x22d)](..._0x154452)['to'](this),this[_0x2a1c09(0x230)]=this[_0x2a1c09(0x205)](),this[_0x2a1c09(0x223)]=this[_0x2a1c09(0x1fa)](),this[_0x2a1c09(0x21a)]=this[_0x2a1c09(0x214)](),this[_0x2a1c09(0x23a)]=this[_0x2a1c09(0x20d)](),this[_0x2a1c09(0x230)][_0x2a1c09(0x234)]({'attributes':{'class':[this[_0x2a1c09(0x22f)]['if'](_0x2a1c09(0x237),_0x2a1c09(0x21d),_0x3accbe=>!_0x3accbe)]}}),this['on'](_0x2a1c09(0x1fd),()=>this[_0x2a1c09(0x1f7)]()),this['on'](_0x2a1c09(0x242),()=>this[_0x2a1c09(0x1f7)]()),this['on'](_0x2a1c09(0x20a),()=>this[_0x2a1c09(0x1f7)]()),this[_0x2a1c09(0x245)]({'tag':_0x2a1c09(0x23c),'attributes':{'class':['ck',_0x2a1c09(0x1f1),_0x2a1c09(0x239),_0x2a1c09(0x224)],'dir':_0x2a1c09(0x240)},'children':[_0x5095d8,{'tag':_0x2a1c09(0x23c),'attributes':{'class':[_0x2a1c09(0x21c)]},'children':[this[_0x2a1c09(0x223)],this[_0x2a1c09(0x230)],this[_0x2a1c09(0x21a)],this[_0x2a1c09(0x23a)]]}]});}[_0x1f4b01(0x1f7)](){const _0x21213c=_0x1f4b01;this[_0x21213c(0x244)]=!this[_0x21213c(0x219)]&&this[_0x21213c(0x227)],this[_0x21213c(0x236)]=!this[_0x21213c(0x219)]&&!this[_0x21213c(0x227)]&&!this[_0x21213c(0x204)],this[_0x21213c(0x237)]=!this[_0x21213c(0x244)]&&!!this[_0x21213c(0x204)];}[_0x1f4b01(0x20d)](){const _0x599c2c=_0x1f4b01,_0x1db132=new _0x45611d(this[_0x599c2c(0x233)],{'filteredView':this[_0x599c2c(0x1ef)],'queryView':{'label':_0x44a2fe(this[_0x599c2c(0x233)],_0x599c2c(0x23f))},'infoView':{'text':{'notFound':{'primary':_0x151479=>_0x44a2fe(this[_0x599c2c(0x233)],_0x599c2c(0x221),_0x151479),'secondary':_0x44a2fe(this[_0x599c2c(0x233)],_0x599c2c(0x1e7))}}}}),_0x1ba4aa=this[_0x599c2c(0x205)]();return _0x1ba4aa[_0x599c2c(0x234)]({'attributes':{'class':[this[_0x599c2c(0x22f)]['if'](_0x599c2c(0x204),_0x599c2c(0x21d),_0x39c923=>!_0x39c923)]}}),_0x1db132['on'](_0x599c2c(0x207),()=>{const _0x4f3e5f=_0x599c2c;_0x1db132[_0x4f3e5f(0x1ee)][_0x4f3e5f(0x241)](_0x1ba4aa,0x1);}),_0x1db132[_0x599c2c(0x234)]({'attributes':{'class':[this[_0x599c2c(0x22f)]['if'](_0x599c2c(0x244),_0x599c2c(0x21d),_0x58891c=>!_0x58891c)]}}),_0x1db132;}[_0x1f4b01(0x1fa)](){const _0x2bf137=_0x1f4b01,_0x48822d=new _0x292ed4(this[_0x2bf137(0x233)],_0x5ed03d[_0x2bf137(0x238)]);return _0x48822d[_0x2bf137(0x234)]({'attributes':{'class':[this[_0x2bf137(0x22f)]['if'](_0x2bf137(0x219),_0x2bf137(0x21d),_0x2ca49b=>!_0x2ca49b)]}}),_0x48822d;}[_0x1f4b01(0x205)](){const _0x4f0fcf=_0x1f4b01,_0x3532fb=new _0xf55871(this[_0x4f0fcf(0x233)]),_0xf5a818=new _0x217a45(this[_0x4f0fcf(0x233)]);_0xf5a818[_0x4f0fcf(0x21e)]({'withText':!0x1,'icon':_0x5131ac,'class':_0x4f0fcf(0x23d)}),_0xf5a818[_0x4f0fcf(0x1fc)](_0x4f0fcf(0x235))['to'](this,_0x4f0fcf(0x227),_0x3121d6=>!!_0x3121d6),_0xf5a818['on'](_0x4f0fcf(0x210),()=>{const _0x48a3ca=_0x4f0fcf;this[_0x48a3ca(0x204)]='';});const _0x4fe303=this[_0x4f0fcf(0x22f)];return _0x3532fb[_0x4f0fcf(0x245)]({'tag':_0x4f0fcf(0x23c),'attributes':{'class':['ck',_0x4f0fcf(0x202),_0x4f0fcf(0x209)]},'children':[{'tag':'p','children':[{'text':_0x4fe303['to'](_0x4f0fcf(0x204))}]},_0xf5a818]}),_0x3532fb;}[_0x1f4b01(0x214)](){const _0x143973=_0x1f4b01,_0x33b1ef=new _0x217a45(this[_0x143973(0x233)]);_0x33b1ef[_0x143973(0x21e)]({'label':_0x44a2fe(this[_0x143973(0x233)],_0x143973(0x1fb)),'withText':!0x0,'icon':_0x2b7bd8,'class':_0x143973(0x20e)}),_0x33b1ef['on'](_0x143973(0x210),()=>{const _0x2fb8f5=_0x143973;this[_0x2fb8f5(0x1eb)](_0x2fb8f5(0x23e));});const _0x268a10=new _0xf55871(this[_0x143973(0x233)]);return _0x268a10[_0x143973(0x245)]({'tag':_0x143973(0x23c),'attributes':{'class':[_0x143973(0x22e),this[_0x143973(0x22f)]['if'](_0x143973(0x236),_0x143973(0x21d),_0x4298d6=>!_0x4298d6)]},'children':[{'tag':'p','attributes':{'class':[_0x143973(0x229)]},'children':[_0x44a2fe(this[_0x143973(0x233)],_0x143973(0x1ea))]},_0x33b1ef]}),_0x268a10;}[_0x1f4b01(0x20b)](_0x1de642,_0x142c55){const _0x3dce7c=_0x1f4b01,_0x4b3f6e=[];for(const _0x589da4 of _0x1de642){const _0xecac39=new _0x2d3e2b(_0x142c55,_0x589da4);_0xecac39[_0x3dce7c(0x22d)](..._0x154452)['to'](this),_0x4b3f6e[_0x3dce7c(0x22c)](_0xecac39);}return _0x4b3f6e;}[_0x1f4b01(0x20f)](_0x59a3d7){const _0xa9adcb=_0x1f4b01,_0x5874c8=this[_0xa9adcb(0x233)]||'en',_0x4b0d56=[];for(const _0x10e584 of _0x59a3d7){const _0x1362ee=this[_0xa9adcb(0x20b)](_0x10e584[_0xa9adcb(0x226)],_0x5874c8);_0x4b0d56[_0xa9adcb(0x22c)](new _0x3bb2ab(_0x5874c8,{'title':_0x10e584[_0xa9adcb(0x1f9)],'items':_0x1362ee}));}this[_0xa9adcb(0x1ef)][_0xa9adcb(0x217)]=_0x4b0d56,this[_0xa9adcb(0x1ef)][_0xa9adcb(0x226)][_0xa9adcb(0x208)](),this[_0xa9adcb(0x1ef)][_0xa9adcb(0x226)][_0xa9adcb(0x1e8)](_0x4b0d56),this[_0xa9adcb(0x227)]=_0x59a3d7[_0xa9adcb(0x1f8)](_0x42b7d7=>_0x42b7d7[_0xa9adcb(0x226)][_0xa9adcb(0x203)]>0x0),this[_0xa9adcb(0x1f4)]();}[_0x1f4b01(0x21b)](_0x3910e8){const _0x2a673c=_0x1f4b01;for(const _0x3c8dc7 of this[_0x2a673c(0x1ef)][_0x2a673c(0x217)]){const _0x2516b9=_0x3c8dc7[_0x2a673c(0x243)](_0x3910e8);if(_0x2516b9){if(_0x3c8dc7[_0x2a673c(0x211)](_0x2516b9),0x0===_0x3c8dc7[_0x2a673c(0x22a)][_0x2a673c(0x203)]){const _0x5a7afc=this[_0x2a673c(0x1ef)][_0x2a673c(0x217)][_0x2a673c(0x1ff)](_0x3c8dc7);-0x1!==_0x5a7afc&&(this[_0x2a673c(0x1ef)][_0x2a673c(0x217)][_0x2a673c(0x232)](_0x5a7afc,0x1),this[_0x2a673c(0x1ef)][_0x2a673c(0x226)][_0x2a673c(0x1fe)](_0x3c8dc7));}this[_0x2a673c(0x227)]=this[_0x2a673c(0x1ef)][_0x2a673c(0x217)][_0x2a673c(0x203)]>0x0,this[_0x2a673c(0x1f4)]();break;}}}[_0x1f4b01(0x22b)](_0x103d67,_0x87c30a){const _0x211fbc=_0x1f4b01;for(const _0x542705 of this[_0x211fbc(0x1ef)][_0x211fbc(0x217)]){const _0x404588=_0x542705[_0x211fbc(0x243)](_0x103d67);if(_0x404588){_0x404588[_0x211fbc(0x220)](_0x87c30a);break;}}}[_0x1f4b01(0x1f5)](_0x20c371,_0x16f122,_0x57a0c4){const _0x309955=_0x1f4b01;for(const _0x4377b1 of this[_0x309955(0x1ef)][_0x309955(0x217)]){const _0x2d4b67=_0x4377b1[_0x309955(0x243)](_0x20c371);if(_0x2d4b67){_0x2d4b67[_0x309955(0x20c)](_0x16f122,_0x57a0c4);break;}}}[_0x1f4b01(0x1f4)](){const _0x668e7a=_0x1f4b01;if(this[_0x668e7a(0x227)]){const _0x32044f=this[_0x668e7a(0x23a)][_0x668e7a(0x1ed)][_0x668e7a(0x1e9)]?.[_0x668e7a(0x222)]?.[_0x668e7a(0x21f)]||'';this[_0x668e7a(0x23a)][_0x668e7a(0x206)](_0x32044f);}}}function _0x144b(){const _0x50ded2=['length','errorMessage','_createErrorView','search','render','clear','ck-ai-notification_error','change:errorMessage','_createListItemViews','updateLoadingState','_createSearchView','ck-ai-chat__start-conversation','updateHistoryItemsWithCategories','execute','removeItem','7pvAQgw','AI_CHAT_HISTORY_HEADING','_createEmptyStateView','1fHUzdg','isMaximized','sections','3313053AhuiFL','isLoading','emptyView','removeHistoryItem','ck-ai-chat-history__content','ck-hidden','set','value','updateTitle','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','element','skeletonView','ck-rounded-corners','6970500XnVGIy','items','hasItems','4054386mIipks','ck-ai-chat-history__empty-message','itemsViews','updateItemTitle','push','delegate','ck-ai-chat-history__empty','bindTemplate','mainErrorView','24vLYOFR','splice','locale','extendTemplate','isVisible','isEmptyViewVisible','isMainErrorViewVisible','aiHistory','ck-ai-chat-history','searchView','ck-ai-header\x20ck-ai-header_history','div','ck-ai-notification_error__dismiss-button','openChat','AI_CHAT_HISTORY_SEARCH_LABEL','ltr','add','change:hasItems','getItem','isSearchViewVisible','setTemplate','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','addMany','fieldView','AI_CHAT_HISTORY_EMPTY_MESSAGE','fire','1970dQyJHz','queryView','children','sectionsView','176jgIuzz','ck-reset_all','147865JRClqE','resizeButton','_refreshSearch','updateItemLoadingState','643442XedPIJ','_updateViewVisibility','some','title','_createSkeletonView','AI_CHAT_LABEL_NEW_CHAT','bind','change:isLoading','remove','indexOf','48818rOBNQE','8361114AVjmgd','ck-ai-notification'];_0x144b=function(){return _0x50ded2;};return _0x144b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d1733=_0x5945;(function(_0x26e750,_0x5c46de){const _0x2c435f=_0x5945,_0x11de9a=_0x26e750();while(!![]){try{const _0x35a4f2=-parseInt(_0x2c435f(0x1b9))/0x1*(-parseInt(_0x2c435f(0x1b2))/0x2)+-parseInt(_0x2c435f(0x1d0))/0x3*(-parseInt(_0x2c435f(0x1c8))/0x4)+parseInt(_0x2c435f(0x1c0))/0x5*(parseInt(_0x2c435f(0x1f4))/0x6)+-parseInt(_0x2c435f(0x1a7))/0x7+-parseInt(_0x2c435f(0x1d7))/0x8+-parseInt(_0x2c435f(0x1ad))/0x9+parseInt(_0x2c435f(0x1f7))/0xa;if(_0x35a4f2===_0x5c46de)break;else _0x11de9a['push'](_0x11de9a['shift']());}catch(_0xdf04f8){_0x11de9a['push'](_0x11de9a['shift']());}}}(_0x3b3b,0x5cc70));function _0x3b3b(){const _0x1bd556=['reviewMode','setModel','_executeShortcut','_aiChatUI','context','check','40RLzsSx','getDefault','AIChat','string','label','destroy','execute','forEach','117099ckFsXd','_runChatShortcut','CHAT','addFeedItemCustomElement','chatModels','fire','init','5705048xJRIVH','find','_removeShortcuts','ai.chat.shortcuts','isPremiumPlugin','getModel','source','activateTab','custom','AITranslateUI','AIChatController','chat-shortcuts','render','type','AITabs','includes','_injectShortcuts','values','runReviewCheck','ai-chat-shortcuts-ai-tabs-not-found','args','isFromHistory','config','review','conversationCreated','_runTranslateShortcut','setWebSearch','element','interactionStarted','36ifuhsa','ai-chat-shortcuts-invalid-config','_switchTab','2926930XVxCKO','AIChatShortcuts','_validateShortcuts','AIReviewModeUI','_runReviewShortcut','params','REVIEW','language','TRANSLATE','_shortcutsView','focusPromptInput','ai-chat-shortcuts-review-mode-not-found','373100cTHiAX','requires','listenTo','view','pluginName','prompt','1594917DLGbhe','hasFeedItem','has','addCurrentDocumentToChatContext','isOfficialPlugin','717238pLDRzV','length','sendMessage','ai-chat-shortcuts-translate-not-found','activeConversation','chat','locale','1XFcOsY','removeFeedItem','setReasoning','get','plugins','translate','setPromptInputValue','235015mnOytZ','_shortcuts'];_0x3b3b=function(){return _0x1bd556;};return _0x3b3b();}import{AIChatUI as _0x21f2d2}from'../aichat/aichatui.js';import{ContextPlugin as _0x5ea8b5}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x2559ac}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x4c7618}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const at=_0x4d1733(0x1e2);function _0x5945(_0x350115,_0x51afef){const _0x3b3bff=_0x3b3b();return _0x5945=function(_0x594554,_0x5d13a5){_0x594554=_0x594554-0x1a6;let _0x3f7efe=_0x3b3bff[_0x594554];return _0x3f7efe;},_0x5945(_0x350115,_0x51afef);}export var AIChatShortcutType;!function(_0x44c097){const _0x265720=_0x4d1733;_0x44c097[_0x265720(0x1d2)]=_0x265720(0x1b7),_0x44c097[_0x265720(0x1fd)]=_0x265720(0x1ee),_0x44c097[_0x265720(0x1ff)]=_0x265720(0x1be);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x5ea8b5{[_0x4d1733(0x1c1)];[_0x4d1733(0x200)];[_0x4d1733(0x1c5)];static get[_0x4d1733(0x1a8)](){return[_0x21f2d2];}static get[_0x4d1733(0x1ab)](){const _0x755d53=_0x4d1733;return _0x755d53(0x1f8);}static get[_0x4d1733(0x1b1)](){return!0x0;}static get[_0x4d1733(0x1db)](){return!0x0;}[_0x4d1733(0x1d6)](){const _0x3352da=_0x4d1733;this[_0x3352da(0x1c5)]=this[_0x3352da(0x1c6)][_0x3352da(0x1bd)][_0x3352da(0x1bc)](_0x21f2d2),this[_0x3352da(0x1c1)]=this[_0x3352da(0x1c6)][_0x3352da(0x1ed)][_0x3352da(0x1bc)](_0x3352da(0x1da))??[];const _0x10dbab=this[_0x3352da(0x1c6)][_0x3352da(0x1bd)][_0x3352da(0x1bc)](_0x3352da(0x1e1));this[_0x3352da(0x1c1)][_0x3352da(0x1b3)]&&(this[_0x3352da(0x1f9)](),this[_0x3352da(0x1c5)]['on'](_0x3352da(0x1ef),()=>{const _0x502fe2=_0x3352da;_0x10dbab[_0x502fe2(0x1b6)][_0x502fe2(0x1ec)]||this[_0x502fe2(0x1e7)]();}),this[_0x3352da(0x1a9)](_0x10dbab,_0x3352da(0x1f3),()=>{const _0x3da5b2=_0x3352da;this[_0x3da5b2(0x1d9)]();}));}[_0x4d1733(0x1f9)](){const _0x25bf58=_0x4d1733,_0xec6d02=Object[_0x25bf58(0x1e8)](AIChatShortcutType);this[_0x25bf58(0x1c1)][_0x25bf58(0x1cf)](_0x1c6923=>{const _0x48a8f6=_0x25bf58;let _0x1fffc1=!0x0;if(_0x1c6923['id']&&_0x1c6923[_0x48a8f6(0x1cc)]&&_0xec6d02[_0x48a8f6(0x1e6)](_0x1c6923[_0x48a8f6(0x1e4)])?_0x48a8f6(0x1b7)===_0x1c6923[_0x48a8f6(0x1e4)]&&(_0x1fffc1=_0x48a8f6(0x1cb)==typeof _0x1c6923[_0x48a8f6(0x1ac)]):_0x1fffc1=!0x1,!_0x1fffc1)throw new _0x4c7618(_0x48a8f6(0x1f5),this[_0x48a8f6(0x1c6)],{'shortcut':_0x1c6923});});}[_0x4d1733(0x1e7)](){const _0x5324ff=_0x4d1733,_0x41126f=this[_0x5324ff(0x1c6)][_0x5324ff(0x1bd)][_0x5324ff(0x1bc)](_0x21f2d2);this[_0x5324ff(0x200)]=new _0x2559ac(this[_0x5324ff(0x1c6)][_0x5324ff(0x1b8)],this[_0x5324ff(0x1c1)]),this[_0x5324ff(0x200)][_0x5324ff(0x1e3)](),_0x41126f[_0x5324ff(0x1d3)](this[_0x5324ff(0x200)][_0x5324ff(0x1f2)],at),this[_0x5324ff(0x200)]['on'](_0x5324ff(0x1ce),_0x3f6d15=>{const _0x2df1b6=_0x5324ff,_0x53f71d=_0x3f6d15[_0x2df1b6(0x1dd)]['id'];this[_0x2df1b6(0x1c4)](_0x53f71d);});}[_0x4d1733(0x1d9)](){const _0x2e6dba=_0x4d1733,_0x45cd7c=this[_0x2e6dba(0x1c6)][_0x2e6dba(0x1bd)][_0x2e6dba(0x1bc)](_0x21f2d2);_0x45cd7c[_0x2e6dba(0x1ae)](at)&&_0x45cd7c[_0x2e6dba(0x1ba)](at),this[_0x2e6dba(0x200)]?.[_0x2e6dba(0x1cd)]();}[_0x4d1733(0x1c4)](_0x1f074f){const _0x6c256f=_0x4d1733,_0x379475=this[_0x6c256f(0x1c1)][_0x6c256f(0x1d8)](_0x1daeb3=>_0x1daeb3['id']===_0x1f074f),_0x460ef4=_0x379475[_0x6c256f(0x1e4)];_0x6c256f(0x1b7)===_0x460ef4?this[_0x6c256f(0x1d1)](_0x379475):_0x6c256f(0x1ee)===_0x460ef4?_0x379475[_0x6c256f(0x1c7)]?this[_0x6c256f(0x1fb)](_0x379475):this[_0x6c256f(0x1f6)](_0x6c256f(0x1c2)):_0x6c256f(0x1be)===_0x460ef4&&(_0x379475[_0x6c256f(0x1fe)]?this[_0x6c256f(0x1f0)](_0x379475):this[_0x6c256f(0x1f6)](_0x6c256f(0x1be)));}[_0x4d1733(0x1f6)](_0x28aec2){const _0x3341a7=_0x4d1733;if(!this[_0x3341a7(0x1c6)][_0x3341a7(0x1bd)][_0x3341a7(0x1af)](_0x3341a7(0x1e5)))throw new _0x4c7618(_0x3341a7(0x1ea),this[_0x3341a7(0x1c6)],{'tabName':_0x28aec2});this[_0x3341a7(0x1c6)][_0x3341a7(0x1bd)][_0x3341a7(0x1bc)](_0x3341a7(0x1e5))[_0x3341a7(0x1aa)][_0x3341a7(0x1de)](_0x28aec2);}async[_0x4d1733(0x1d1)]({prompt:_0x2f3ceb,draftMode:_0x3717d4,useWebSearch:_0x2b3002=!0x1,useReasoning:_0x40a314=!0x1,model:_0x1a1a05}){const _0xd29c5c=_0x4d1733,_0x4bd527=this[_0xd29c5c(0x1c6)][_0xd29c5c(0x1bd)][_0xd29c5c(0x1bc)](_0xd29c5c(0x1ca)),_0x2737c2=this[_0xd29c5c(0x1c6)][_0xd29c5c(0x1bd)][_0xd29c5c(0x1bc)](_0xd29c5c(0x1e1)),_0x1b39e5=_0x2737c2[_0xd29c5c(0x1b6)];let _0x270d2c;_0x270d2c=_0x1a1a05?await _0x1b39e5[_0xd29c5c(0x1d4)][_0xd29c5c(0x1dc)](_0x1a1a05):await _0x1b39e5[_0xd29c5c(0x1d4)][_0xd29c5c(0x1c9)](),_0x270d2c&&await _0x1b39e5[_0xd29c5c(0x1c3)](_0x270d2c),_0x1b39e5[_0xd29c5c(0x1f1)](_0x2b3002),_0x1b39e5[_0xd29c5c(0x1bb)](_0x40a314),_0x2737c2[_0xd29c5c(0x1b0)](),_0x3717d4?(this[_0xd29c5c(0x1c5)][_0xd29c5c(0x1bf)](_0x2f3ceb),this[_0xd29c5c(0x1c5)][_0xd29c5c(0x201)](!0x0)):_0x4bd527[_0xd29c5c(0x1b4)]({'message':_0x2f3ceb});}[_0x4d1733(0x1fb)]({check:_0x1d7c5a,model:_0x2c96bf,prompt:_0x34e507,params:_0x98cf35}){const _0x3d1ffc=_0x4d1733;if(!this[_0x3d1ffc(0x1c6)][_0x3d1ffc(0x1bd)][_0x3d1ffc(0x1af)](_0x3d1ffc(0x1fa)))throw new _0x4c7618(_0x3d1ffc(0x1a6),this[_0x3d1ffc(0x1c6)]);this[_0x3d1ffc(0x1f6)](_0x3d1ffc(0x1c2));const _0x540624={'id':_0x1d7c5a,'isCustom':_0x3d1ffc(0x1df)===_0x1d7c5a};_0x2c96bf&&_0x34e507&&(_0x540624[_0x3d1ffc(0x1eb)]={'model':_0x2c96bf,'prompt':_0x34e507}),_0x98cf35&&(_0x540624[_0x3d1ffc(0x1fc)]=_0x98cf35),this[_0x3d1ffc(0x1c6)][_0x3d1ffc(0x1bd)][_0x3d1ffc(0x1bc)](_0x3d1ffc(0x1fa))[_0x3d1ffc(0x1d5)](_0x3d1ffc(0x1e9),_0x540624);}[_0x4d1733(0x1f0)]({language:_0x46d6b4}){const _0x547e8f=_0x4d1733;if(!this[_0x547e8f(0x1c6)][_0x547e8f(0x1bd)][_0x547e8f(0x1af)](_0x547e8f(0x1e0)))throw new _0x4c7618(_0x547e8f(0x1b5),this[_0x547e8f(0x1c6)]);this[_0x547e8f(0x1f6)](_0x547e8f(0x1be)),this[_0x547e8f(0x1c6)][_0x547e8f(0x1bd)][_0x547e8f(0x1bc)](_0x547e8f(0x1e0))[_0x547e8f(0x1d5)](_0x547e8f(0x1e9),{'id':_0x46d6b4,'args':{'language':_0x46d6b4}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4e78(_0x2256a1,_0x27fe68){const _0x1a0d48=_0x1a0d();return _0x4e78=function(_0x4e7804,_0x4b7b2a){_0x4e7804=_0x4e7804-0x1ef;let _0x432313=_0x1a0d48[_0x4e7804];return _0x432313;},_0x4e78(_0x2256a1,_0x27fe68);}const _0x531c1d=_0x4e78;(function(_0x31759c,_0x1cd3d7){const _0xf8500b=_0x4e78,_0x1d0de8=_0x31759c();while(!![]){try{const _0x1d54bd=-parseInt(_0xf8500b(0x1f6))/0x1*(-parseInt(_0xf8500b(0x1f8))/0x2)+parseInt(_0xf8500b(0x201))/0x3+parseInt(_0xf8500b(0x1f0))/0x4+parseInt(_0xf8500b(0x1fc))/0x5*(parseInt(_0xf8500b(0x200))/0x6)+parseInt(_0xf8500b(0x1fd))/0x7*(-parseInt(_0xf8500b(0x1ef))/0x8)+parseInt(_0xf8500b(0x1f5))/0x9*(parseInt(_0xf8500b(0x1fa))/0xa)+-parseInt(_0xf8500b(0x1f4))/0xb*(parseInt(_0xf8500b(0x1ff))/0xc);if(_0x1d54bd===_0x1cd3d7)break;else _0x1d0de8['push'](_0x1d0de8['shift']());}catch(_0x4300e0){_0x1d0de8['push'](_0x1d0de8['shift']());}}}(_0x1a0d,0x4074b));import{ListItemView as _0xcd6b4b,ListView as _0x9b31de,View as _0x31597a}from'ckeditor5/src/ui.js';function _0x1a0d(){const _0xf1f068=['10fMnRqt','707mViXsd','delegate','3915708tlhpaA','947184OGNrMr','642765BALZsJ','locale','listView','items','addMany','execute','3392iMvbjI','1376420jeqPTZ','map','children','ck-ai-chat-shortcuts','33EvkNBv','7722yyazOx','11929CxzIez','setTemplate','4glVnkp','add','4520AmokAx','div'];_0x1a0d=function(){return _0xf1f068;};return _0x1a0d();}import{AIChatShortcutView as _0x125ccb}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x31597a{[_0x531c1d(0x203)];constructor(_0x2c2d9f,_0x55ec48){const _0x42d5f1=_0x531c1d;super(_0x2c2d9f);const _0x382983=_0x55ec48[_0x42d5f1(0x1f1)](_0x443590=>{const _0x1addf7=_0x42d5f1,_0x26afbd=new _0xcd6b4b(this[_0x1addf7(0x202)]),_0x1a99b9=new _0x125ccb(this[_0x1addf7(0x202)],_0x443590);return _0x26afbd[_0x1addf7(0x1f2)][_0x1addf7(0x1f9)](_0x1a99b9),_0x1a99b9[_0x1addf7(0x1fe)](_0x1addf7(0x206))['to'](this),_0x26afbd;});this[_0x42d5f1(0x203)]=new _0x9b31de(this[_0x42d5f1(0x202)]),this[_0x42d5f1(0x203)][_0x42d5f1(0x204)][_0x42d5f1(0x205)](_0x382983),this[_0x42d5f1(0x1f7)]({'tag':_0x42d5f1(0x1fb),'attributes':{'class':['ck',_0x42d5f1(0x1f3)]},'children':[this[_0x42d5f1(0x203)]]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3957b1,_0x36afaf){const _0x3643a3=_0xb701,_0x322f5a=_0x3957b1();while(!![]){try{const _0x306496=-parseInt(_0x3643a3(0x16d))/0x1+parseInt(_0x3643a3(0x166))/0x2*(parseInt(_0x3643a3(0x15d))/0x3)+parseInt(_0x3643a3(0x15b))/0x4+parseInt(_0x3643a3(0x165))/0x5*(-parseInt(_0x3643a3(0x168))/0x6)+parseInt(_0x3643a3(0x161))/0x7*(-parseInt(_0x3643a3(0x160))/0x8)+-parseInt(_0x3643a3(0x16c))/0x9*(-parseInt(_0x3643a3(0x164))/0xa)+parseInt(_0x3643a3(0x15c))/0xb;if(_0x306496===_0x36afaf)break;else _0x322f5a['push'](_0x322f5a['shift']());}catch(_0x3a15b4){_0x322f5a['push'](_0x322f5a['shift']());}}}(_0x706d,0x1c0c3));import{ButtonView as _0x2c88bd}from'ckeditor5/src/ui.js';function _0xb701(_0x3ca8a4,_0x1ed098){const _0x706dbc=_0x706d();return _0xb701=function(_0xb701ec,_0x3779da){_0xb701ec=_0xb701ec-0x15b;let _0x4d9fb5=_0x706dbc[_0xb701ec];return _0x4d9fb5;},_0xb701(_0x3ca8a4,_0x1ed098);}import{IconAIChat as _0x1c66b9,IconAIReview as _0x280931,IconAITranslate as _0x5e473f}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x2c88bd{['id'];constructor(_0x26dc52,_0x218ba3){const _0xbfe1b7=_0xb701;super(_0x26dc52);const {id:_0x18f5dc,type:_0x4abd1e,icon:_0x4e2a54}=_0x218ba3;this['id']=_0x18f5dc,this[_0xbfe1b7(0x15e)]({'label':_0x218ba3[_0xbfe1b7(0x163)],'withText':!0x0,'class':_0xbfe1b7(0x15f)}),this[_0xbfe1b7(0x162)]({'attributes':{'data-cke-ai-shortcut-id':_0x218ba3['id']}}),_0x4e2a54?this[_0xbfe1b7(0x167)]=_0x4e2a54:_0xbfe1b7(0x16a)===_0x4abd1e?this[_0xbfe1b7(0x167)]=_0x1c66b9:_0xbfe1b7(0x169)===_0x4abd1e?this[_0xbfe1b7(0x167)]=_0x280931:_0xbfe1b7(0x16b)===_0x4abd1e&&(this[_0xbfe1b7(0x167)]=_0x5e473f);}}function _0x706d(){const _0x5a4ecc=['ck-ai-chat-shortcut','8OkamKm','396571XwMvgh','extendTemplate','label','57430IqFaqc','35alDGWe','2yOFeUl','icon','171144ybmWro','review','chat','translate','18cbYvQo','106311AaUaVQ','577476EIiqOa','1063744tppiyF','674868kJvJJP','set'];_0x706d=function(){return _0x5a4ecc;};return _0x706d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x292b(){const _0x440485=['TRANSLATE','598YLsxoj','100','3510mOIKeA','deleteFile','translate','make-shorter','920028evYnsK','read','context','/models/1?','order','deleteDocument','isOfficialPlugin','uploadDocument','make-tone-formal','upsertCustomAIReviewRating','/reviews/custom/calls/','75449FMeKoD','define','deleteWebResource','30ZwJmXa','ai.serviceUrl','fetchConversationMessages','CloudServices','AIConnector','get','MAKE_LONGER','executeCustomAction','stringify','improve-writing','language','group','init','signal','MAKE_TONE_CASUAL','/actions/system/','20LYHNoN','_sendApiRequest','status','/calls','_decoder','Content-Type','getReader','callSystemReview','fix-grammar','/web-resources/','deleteConversation','1079qILJTu','statusText','make-tone-casual','fetchConversations','sortBy','plugins','application/json','feed','abortController','POST','AbortError','/conversations','body','/actions/custom/calls/','true','Bearer\x20','/messages/','_getStreamReader','isPremiumPlugin','FIX_GRAMMAR','reset','/documents/','decode','/web-resources','continue','token','getModels','upsertAIActionRating','pluginName','/ratings','limit','startConversation','DELETE','traceId','_handleError','config','text','requires','1040oKEJeN','releaseLock','_apiUrl','145012slcCuO','executeAction','/conversations?','/reviews/system/','PATCH','items','/calls/','positiveCount','false','GET','message','/documents','upsertAIChatRating','name','excludeEmpty','value','MAKE_TONE_FORMAL','IMPROVE_WRITING','ai-request-aborted','fetchDocument','catch','937116smXKOl','ai-request-failed','_token','updateConversation','then','callCustomReview','6161197IsYNkh','996JmEVLe','createdAt','data','fetchConversation','code','append','/files/','upsertAIReviewRating','8tpsLbz','json','queryAssistant','/messages','upsertCustomAIActionRating','push','9BLUJaH','modificationId','length','totalCount','parse','attributes','CONTINUE','ai-missing-token','/actions/custom/calls','file','https://ai.cke-cs.com/v1','request','/reviews/custom/calls','/files','uploadUrl','toString','make-longer','PUT','MAKE_SHORTER','uploadFile','/conversations/','desc'];_0x292b=function(){return _0x440485;};return _0x292b();}const _0xd681c3=_0x4c55;(function(_0x14b57c,_0x24b406){const _0x3560fd=_0x4c55,_0x1dc981=_0x14b57c();while(!![]){try{const _0x5b16fe=parseInt(_0x3560fd(0x18a))/0x1*(-parseInt(_0x3560fd(0x1df))/0x2)+parseInt(_0x3560fd(0x20c))/0x3*(parseInt(_0x3560fd(0x190))/0x4)+-parseInt(_0x3560fd(0x1ae))/0x5*(-parseInt(_0x3560fd(0x1f7))/0x6)+parseInt(_0x3560fd(0x1fd))/0x7*(parseInt(_0x3560fd(0x206))/0x8)+parseInt(_0x3560fd(0x18c))/0x9*(parseInt(_0x3560fd(0x19e))/0xa)+-parseInt(_0x3560fd(0x19b))/0xb*(parseInt(_0x3560fd(0x1fe))/0xc)+-parseInt(_0x3560fd(0x1b9))/0xd*(parseInt(_0x3560fd(0x1e2))/0xe);if(_0x5b16fe===_0x24b406)break;else _0x1dc981['push'](_0x1dc981['shift']());}catch(_0x4c78d7){_0x1dc981['push'](_0x1dc981['shift']());}}}(_0x292b,0x6f5c7));import{createParser as _0x4de6fe}from'eventsource-parser';function _0x4c55(_0x3cc971,_0x58128b){const _0x292b4c=_0x292b();return _0x4c55=function(_0x4c5536,_0x161c61){_0x4c5536=_0x4c5536-0x177;let _0x54e223=_0x292b4c[_0x4c5536];return _0x54e223;},_0x4c55(_0x3cc971,_0x58128b);}import{ContextPlugin as _0x5632a7}from'ckeditor5/src/core.js';import{CKEditorError as _0x3cbcb0}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x4689cc){const _0x223452=_0x4c55;_0x4689cc[_0x223452(0x179)]=_0x223452(0x1d1),_0x4689cc[_0x223452(0x1cc)]=_0x223452(0x1b6),_0x4689cc[_0x223452(0x1f3)]=_0x223452(0x1a7),_0x4689cc[_0x223452(0x1a4)]=_0x223452(0x183),_0x4689cc[_0x223452(0x185)]=_0x223452(0x18f),_0x4689cc[_0x223452(0x1ac)]=_0x223452(0x1bb),_0x4689cc[_0x223452(0x1f2)]=_0x223452(0x198),_0x4689cc[_0x223452(0x189)]=_0x223452(0x18e);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x5632a7{[_0xd681c3(0x1e1)];[_0xd681c3(0x1f9)];[_0xd681c3(0x1b2)];static get[_0xd681c3(0x1de)](){const _0x8d21ad=_0xd681c3;return[_0x8d21ad(0x1a1)];}static get[_0xd681c3(0x1d5)](){const _0x52a864=_0xd681c3;return _0x52a864(0x1a2);}static get[_0xd681c3(0x196)](){return!0x0;}static get[_0xd681c3(0x1cb)](){return!0x0;}constructor(_0x5b53c2){const _0x3e7cb6=_0xd681c3;super(_0x5b53c2),this[_0x3e7cb6(0x192)][_0x3e7cb6(0x1dc)][_0x3e7cb6(0x19c)](_0x3e7cb6(0x19f),_0x3e7cb6(0x17d)),this[_0x3e7cb6(0x1e1)]=this[_0x3e7cb6(0x192)][_0x3e7cb6(0x1dc)][_0x3e7cb6(0x1a3)](_0x3e7cb6(0x19f)),this[_0x3e7cb6(0x1f9)]=null,this[_0x3e7cb6(0x1b2)]=new TextDecoder();}[_0xd681c3(0x1aa)](){const _0x46a7c7=_0xd681c3,_0x4abca8=this[_0x46a7c7(0x192)][_0x46a7c7(0x1be)][_0x46a7c7(0x1a3)](_0x46a7c7(0x1a1));if(!_0x4abca8[_0x46a7c7(0x1d2)])throw new _0x3cbcb0(_0x46a7c7(0x17a),this);this[_0x46a7c7(0x1f9)]=_0x4abca8[_0x46a7c7(0x1d2)];}[_0xd681c3(0x1d8)](_0x280281,_0x5a2ba0){const _0xec6770=_0xd681c3,_0x138f22=this[_0xec6770(0x1af)](_0xec6770(0x1c4),_0xec6770(0x1c2),{'id':_0x280281,'group':_0x5a2ba0});return{'getConversation':async()=>(await _0x138f22[_0xec6770(0x17e)])[_0xec6770(0x207)](),'abortController':_0x138f22[_0xec6770(0x1c1)]};}[_0xd681c3(0x208)]({message:_0x50d37e,conversationId:_0x333d16,parts:_0x2be468,capabilities:_0x362a50,model:_0x595335,attributes:_0x5ca000}){const _0x45a477=_0xd681c3,_0x321931={'prompt':_0x50d37e,'content':_0x2be468,'model':_0x595335,..._0x362a50&&{'capabilities':_0x362a50},..._0x5ca000&&{'attributes':_0x5ca000}},_0x2940cb=this[_0x45a477(0x1af)](_0x45a477(0x187)+_0x333d16+_0x45a477(0x209),_0x45a477(0x1c2),_0x321931);return{'getStream':async()=>{const _0x36b625=_0x45a477,_0x3b6325=(await _0x2940cb[_0x36b625(0x17e)])[_0x36b625(0x1c5)];return this[_0x36b625(0x1ca)](_0x3b6325);},'abortController':_0x2940cb[_0x45a477(0x1c1)]};}[_0xd681c3(0x1a5)]({content:_0x4553e7,message:_0x5cfda7,model:_0x4702ce,outputFormat:_0xc44bfc}){const _0x3d48b4=_0xd681c3,_0x28caa6={'content':[{'type':_0x3d48b4(0x1dd),'content':_0x4553e7}],'prompt':_0x5cfda7,'model':_0x4702ce,'outputFormat':_0xc44bfc},_0x4de253=this[_0x3d48b4(0x1af)](_0x3d48b4(0x17b),_0x3d48b4(0x1c2),_0x28caa6);return{'getStream':async()=>{const _0x797455=_0x3d48b4,_0x265b8a=(await _0x4de253[_0x797455(0x17e)])[_0x797455(0x1c5)];return this[_0x797455(0x1ca)](_0x265b8a);},'abortController':_0x4de253[_0x3d48b4(0x1c1)]};}[_0xd681c3(0x1e3)]({actionName:_0x3a060b,content:_0x52decf,args:_0x9cc9b}){const _0x1ede75=_0xd681c3,_0x2de082={'content':[{'type':_0x1ede75(0x1dd),'content':_0x52decf}],'args':_0x9cc9b},_0x5151db=this[_0x1ede75(0x1af)](_0x1ede75(0x1ad)+_0x3a060b+_0x1ede75(0x1b1),_0x1ede75(0x1c2),_0x2de082);return{'getStream':async()=>{const _0x1f4268=_0x1ede75,_0x174085=(await _0x5151db[_0x1f4268(0x17e)])[_0x1f4268(0x1c5)];return this[_0x1f4268(0x1ca)](_0x174085);},'abortController':_0x5151db[_0x1ede75(0x1c1)]};}[_0xd681c3(0x186)](_0x168b7c,_0x138b24,_0x4bbaa9){const _0x469975=_0xd681c3,_0x49179b=new FormData();_0x49179b[_0x469975(0x203)](_0x469975(0x17c),_0x138b24,_0x138b24[_0x469975(0x1ef)]),_0x4bbaa9&&_0x49179b[_0x469975(0x203)](_0x469975(0x178),JSON[_0x469975(0x1a6)](_0x4bbaa9));const _0x5bbda3=this[_0x469975(0x1af)](_0x469975(0x187)+_0x168b7c+_0x469975(0x180),_0x469975(0x1c2),_0x49179b);return{'getId':async()=>(await _0x5bbda3[_0x469975(0x17e)])[_0x469975(0x207)](),'abortController':_0x5bbda3[_0x469975(0x1c1)]};}[_0xd681c3(0x1f5)](_0x3752d9,_0x331322){const _0x268dd9=_0xd681c3,_0x4e5b24=this[_0x268dd9(0x1af)](_0x268dd9(0x187)+_0x3752d9+_0x268dd9(0x1ce)+_0x331322,_0x268dd9(0x1eb));return{'getDocument':async()=>(await _0x4e5b24[_0x268dd9(0x17e)])[_0x268dd9(0x207)](),'abortController':_0x4e5b24[_0x268dd9(0x1c1)]};}[_0xd681c3(0x197)](_0x27f98a,_0x11e377,_0x2d17b0){const _0x202220=_0xd681c3,_0x53175f={'content':_0x11e377};_0x2d17b0&&(_0x53175f[_0x202220(0x178)]=_0x2d17b0);const _0x53db12=this[_0x202220(0x1af)](_0x202220(0x187)+_0x27f98a+_0x202220(0x1ed),_0x202220(0x1c2),_0x53175f);return{'getId':async()=>(await _0x53db12[_0x202220(0x17e)])[_0x202220(0x207)](),'abortController':_0x53db12[_0x202220(0x1c1)]};}[_0xd681c3(0x1bc)](_0x24a854,_0x13f8aa={}){const _0x220a6b=_0xd681c3,_0x997d70=new URLSearchParams();_0x997d70[_0x220a6b(0x203)](_0x220a6b(0x1a9),_0x24a854),_0x997d70[_0x220a6b(0x203)](_0x220a6b(0x1f0),!0x1!==_0x13f8aa[_0x220a6b(0x1f0)]?_0x220a6b(0x1c7):_0x220a6b(0x1ea)),_0x997d70[_0x220a6b(0x203)](_0x220a6b(0x1d7),_0x13f8aa[_0x220a6b(0x1d7)]?_0x13f8aa[_0x220a6b(0x1d7)][_0x220a6b(0x182)]():_0x220a6b(0x18b)),_0x997d70[_0x220a6b(0x203)](_0x220a6b(0x1bd),_0x13f8aa[_0x220a6b(0x1bd)]?_0x13f8aa[_0x220a6b(0x1bd)]:_0x220a6b(0x1ff)),_0x997d70[_0x220a6b(0x203)](_0x220a6b(0x194),_0x13f8aa[_0x220a6b(0x194)]?_0x13f8aa[_0x220a6b(0x194)]:_0x220a6b(0x188));const _0x276f01=this[_0x220a6b(0x1af)](_0x220a6b(0x1e4)+_0x997d70[_0x220a6b(0x182)](),_0x220a6b(0x1eb));return{'getConversations':async()=>{const _0x21844e=_0x220a6b,_0x4cabbd=await _0x276f01[_0x21844e(0x17e)];return(await _0x4cabbd[_0x21844e(0x207)]())[_0x21844e(0x1e7)];},'abortController':_0x276f01[_0x220a6b(0x1c1)]};}[_0xd681c3(0x1b8)](_0x39255b){const _0x1e6502=_0xd681c3,_0x17e3aa=this[_0x1e6502(0x1af)](_0x1e6502(0x187)+_0x39255b,_0x1e6502(0x1d9));return{'execute':async()=>{const _0x27ab29=_0x1e6502;await _0x17e3aa[_0x27ab29(0x17e)];},'abortController':_0x17e3aa[_0x1e6502(0x1c1)]};}[_0xd681c3(0x1fa)](_0x4b0112,_0x50f6c9){const _0x45522f=_0xd681c3,_0x455502=this[_0x45522f(0x1af)](_0x45522f(0x187)+_0x4b0112,_0x45522f(0x1e6),_0x50f6c9);return{'getResult':async()=>(await _0x455502[_0x45522f(0x17e)],_0x50f6c9),'abortController':_0x455502[_0x45522f(0x1c1)]};}[_0xd681c3(0x201)](_0x344d1a){const _0xa38735=_0xd681c3,_0x10d438=this[_0xa38735(0x1af)](_0xa38735(0x187)+_0x344d1a,_0xa38735(0x1eb));return{'getConversation':async()=>(await _0x10d438[_0xa38735(0x17e)])[_0xa38735(0x207)](),'abortController':_0x10d438[_0xa38735(0x1c1)]};}[_0xd681c3(0x1a0)](_0x1e6ddc){const _0x4d8cd2=_0xd681c3,_0x42d180=this[_0x4d8cd2(0x1af)](_0x4d8cd2(0x187)+_0x1e6ddc+_0x4d8cd2(0x209),_0x4d8cd2(0x1eb));return{'getMessages':async()=>{const _0x251e91=_0x4d8cd2,_0x3599ed=await _0x42d180[_0x251e91(0x17e)];return(await _0x3599ed[_0x251e91(0x207)]())[_0x251e91(0x1e7)];},'abortController':_0x42d180[_0x4d8cd2(0x1c1)]};}[_0xd681c3(0x181)](_0x1701aa,_0x1222ee,_0x24371d){const _0x52e29c=_0xd681c3,_0x27984b=this[_0x52e29c(0x1af)](_0x52e29c(0x187)+_0x1701aa+_0x52e29c(0x1d0),_0x52e29c(0x1c2),{'url':_0x1222ee,'attributes':_0x24371d});return{'getId':async()=>(await _0x27984b[_0x52e29c(0x17e)])[_0x52e29c(0x207)](),'abortController':_0x27984b[_0x52e29c(0x1c1)]};}[_0xd681c3(0x1d3)](_0x543b6a='en'){const _0xca4124=_0xd681c3,_0x1916bd=new URLSearchParams();_0x1916bd[_0xca4124(0x203)](_0xca4124(0x1a8),_0x543b6a);const _0x47ab7a=_0xca4124(0x193)+_0x1916bd[_0xca4124(0x182)](),_0x146e44=this[_0xca4124(0x1af)](_0x47ab7a,_0xca4124(0x1eb));return{'list':async()=>await(await _0x146e44[_0xca4124(0x17e)])[_0xca4124(0x207)](),'abortController':_0x146e44[_0xca4124(0x1c1)]};}[_0xd681c3(0x18d)](_0x3528a9,_0x395c32){const _0x1a4d8c=_0xd681c3,_0x330249=this[_0x1a4d8c(0x1af)](_0x1a4d8c(0x187)+_0x3528a9+_0x1a4d8c(0x204)+_0x395c32,_0x1a4d8c(0x1d9));return{'execute':async()=>{const _0xc6c52f=_0x1a4d8c;await _0x330249[_0xc6c52f(0x17e)];},'abortController':_0x330249[_0x1a4d8c(0x1c1)]};}[_0xd681c3(0x195)](_0x54dfe3,_0x5a8ca0){const _0xf1c837=_0xd681c3,_0x9448f3=this[_0xf1c837(0x1af)](_0xf1c837(0x187)+_0x54dfe3+_0xf1c837(0x1ce)+_0x5a8ca0,_0xf1c837(0x1d9));return{'execute':async()=>{const _0x437f59=_0xf1c837;await _0x9448f3[_0x437f59(0x17e)];},'abortController':_0x9448f3[_0xf1c837(0x1c1)]};}[_0xd681c3(0x19d)](_0x2df782,_0x572be4){const _0x1adebb=_0xd681c3,_0x2b6f26=this[_0x1adebb(0x1af)](_0x1adebb(0x187)+_0x2df782+_0x1adebb(0x1b7)+_0x572be4,_0x1adebb(0x1d9));return{'execute':async()=>{const _0xdce191=_0x1adebb;await _0x2b6f26[_0xdce191(0x17e)];},'abortController':_0x2b6f26[_0x1adebb(0x1c1)]};}[_0xd681c3(0x1b5)]({reviewName:_0x3f7a90,content:_0x24300b,args:_0x1cd835}){const _0x385b42=_0xd681c3,_0x3dfae1=this[_0x385b42(0x1af)](_0x385b42(0x1e5)+_0x3f7a90+_0x385b42(0x1b1),_0x385b42(0x1c2),{'content':[{'type':_0x385b42(0x1dd),'content':_0x24300b}],'args':_0x1cd835});return{'getStream':async()=>{const _0x3c43b3=_0x385b42,_0x2a9f88=(await _0x3dfae1[_0x3c43b3(0x17e)])[_0x3c43b3(0x1c5)];return this[_0x3c43b3(0x1ca)](_0x2a9f88);},'abortController':_0x3dfae1[_0x385b42(0x1c1)]};}[_0xd681c3(0x1fc)]({content:_0x3cd056,prompt:_0x55ccb1,model:_0x2124e3}){const _0x1afb56=_0xd681c3,_0x50e423=this[_0x1afb56(0x1af)](_0x1afb56(0x17f),_0x1afb56(0x1c2),{'content':[{'type':_0x1afb56(0x1dd),'content':_0x3cd056}],'prompt':_0x55ccb1,'model':_0x2124e3});return{'getStream':async()=>{const _0x56fa21=_0x1afb56,_0x35e9e9=(await _0x50e423[_0x56fa21(0x17e)])[_0x56fa21(0x1c5)];return this[_0x56fa21(0x1ca)](_0x35e9e9);},'abortController':_0x50e423[_0x1afb56(0x1c1)]};}[_0xd681c3(0x1ee)](_0x395c05,_0x280102,_0x118266){const _0x2bc7fe=_0xd681c3,_0x3370db=this[_0x2bc7fe(0x1af)](_0x2bc7fe(0x187)+_0x395c05+_0x2bc7fe(0x1c9)+_0x280102+_0x2bc7fe(0x1d6),_0x2bc7fe(0x184),{'positiveCount':_0x118266[_0x2bc7fe(0x1e9)],'totalCount':_0x118266[_0x2bc7fe(0x20f)],'modificationId':_0x118266[_0x2bc7fe(0x20d)]});return{'execute':async()=>{const _0x285d3f=_0x2bc7fe;await _0x3370db[_0x285d3f(0x17e)];},'abortController':_0x3370db[_0x2bc7fe(0x1c1)]};}[_0xd681c3(0x1d4)](_0x49a63c,_0x3403f9,_0x43273e){const _0x37440b=_0xd681c3,_0x3561de=this[_0x37440b(0x1af)](_0x37440b(0x1ad)+_0x49a63c+_0x37440b(0x1e8)+_0x3403f9+_0x37440b(0x1d6),_0x37440b(0x184),{'positiveCount':_0x43273e[_0x37440b(0x1e9)],'totalCount':_0x43273e[_0x37440b(0x20f)]});return{'execute':async()=>{const _0x3b9d22=_0x37440b;await _0x3561de[_0x3b9d22(0x17e)];},'abortController':_0x3561de[_0x37440b(0x1c1)]};}[_0xd681c3(0x20a)](_0x589956,_0x4d1a11){const _0x56987a=_0xd681c3,_0x599f33=this[_0x56987a(0x1af)](_0x56987a(0x1c6)+_0x589956+_0x56987a(0x1d6),_0x56987a(0x184),{'positiveCount':_0x4d1a11[_0x56987a(0x1e9)],'totalCount':_0x4d1a11[_0x56987a(0x20f)]});return{'execute':async()=>{const _0x160278=_0x56987a;await _0x599f33[_0x160278(0x17e)];},'abortController':_0x599f33[_0x56987a(0x1c1)]};}[_0xd681c3(0x205)](_0x3e0d46,_0x1e6dfd,_0x24f9a1,_0x11ab6f){const _0xff3d5=_0xd681c3,_0x3ec49d=this[_0xff3d5(0x1af)](_0xff3d5(0x1e5)+_0x3e0d46+_0xff3d5(0x1e8)+_0x1e6dfd+_0xff3d5(0x1d6),_0xff3d5(0x184),{'positiveCount':_0x24f9a1[_0xff3d5(0x1e9)],'totalCount':_0x24f9a1[_0xff3d5(0x20f)],'dataId':_0x11ab6f});return{'execute':async()=>{const _0x275afb=_0xff3d5;await _0x3ec49d[_0x275afb(0x17e)];},'abortController':_0x3ec49d[_0xff3d5(0x1c1)]};}[_0xd681c3(0x199)](_0x3dab0c,_0x112ffb,_0x1f04bc){const _0x451114=_0xd681c3,_0x112c06=this[_0x451114(0x1af)](_0x451114(0x19a)+_0x3dab0c+_0x451114(0x1d6),_0x451114(0x184),{'positiveCount':_0x112ffb[_0x451114(0x1e9)],'totalCount':_0x112ffb[_0x451114(0x20f)],'dataId':_0x1f04bc});return{'execute':async()=>{const _0xa6a409=_0x451114;await _0x112c06[_0xa6a409(0x17e)];},'abortController':_0x112c06[_0x451114(0x1c1)]};}[_0xd681c3(0x1af)](_0x43fa3b,_0x1e882b,_0x5438fb){const _0x4cc704=_0xd681c3,_0x55edd5=new AbortController(),_0x19fb1f=_0x5438fb instanceof FormData,_0x14141c={'Authorization':_0x4cc704(0x1c8)+this[_0x4cc704(0x1f9)]?.[_0x4cc704(0x1f1)]};_0x5438fb&&!_0x19fb1f&&(_0x14141c[_0x4cc704(0x1b3)]=_0x4cc704(0x1bf));const _0x17eac2={'method':_0x1e882b,'headers':_0x14141c,'signal':_0x55edd5[_0x4cc704(0x1ab)]};return _0x5438fb&&(_0x17eac2[_0x4cc704(0x1c5)]=_0x19fb1f?_0x5438fb:JSON[_0x4cc704(0x1a6)](_0x5438fb)),{'request':fetch(''+this[_0x4cc704(0x1e1)]+_0x43fa3b,_0x17eac2)[_0x4cc704(0x1f6)](_0x2adbbe=>{const _0x22d920=_0x4cc704;this[_0x22d920(0x1db)](_0x2adbbe);})[_0x4cc704(0x1fb)](_0x2e0806=>_0x2e0806['ok']?_0x2e0806:_0x2e0806[_0x4cc704(0x207)]()[_0x4cc704(0x1fb)](_0x1bd44a=>{const _0x54336f=_0x4cc704;throw{'url':this[_0x54336f(0x1e1)],'path':_0x43fa3b,'method':_0x1e882b,'body':_0x5438fb,'status':(_0x2e0806||{})[_0x54336f(0x1b0)],'statusText':(_0x2e0806||{})[_0x54336f(0x1ba)],'code':_0x1bd44a[_0x54336f(0x202)],'message':_0x1bd44a[_0x54336f(0x1ec)],'traceId':_0x1bd44a[_0x54336f(0x1da)]};})),'abortController':_0x55edd5};}async*[_0xd681c3(0x1ca)](_0x18cd70){const _0x116997=_0xd681c3,_0x4eced1=[],_0x47fc5b=_0x18cd70[_0x116997(0x1b4)](),_0x19dab4=_0x4de6fe({'onError':_0x1d4a29=>{const _0x19816e=_0x116997;this[_0x19816e(0x1db)](_0x1d4a29);},'onEvent':_0x32113e=>{const _0x326d80=_0x116997;_0x32113e[_0x326d80(0x200)]=JSON[_0x326d80(0x177)](_0x32113e[_0x326d80(0x200)]),_0x4eced1[_0x326d80(0x20b)](_0x32113e);}});try{let _0x301408=!0x1;for(;!_0x301408;){const {done:_0x462233,value:_0x2de7e8}=await _0x47fc5b[_0x116997(0x191)]();_0x462233&&(_0x301408=!0x0),_0x19dab4[_0x116997(0x1c0)](this[_0x116997(0x1b2)][_0x116997(0x1cf)](_0x2de7e8,{'stream':!0x0})),yield*_0x4eced1,_0x4eced1[_0x116997(0x20e)]=0x0;}}catch(_0x50e3e4){this[_0x116997(0x1db)](_0x50e3e4);}finally{_0x47fc5b[_0x116997(0x1e0)](),_0x19dab4[_0x116997(0x1cd)]();}}[_0xd681c3(0x1db)](_0x321fc4){const _0x4af087=_0xd681c3;if(_0x321fc4 instanceof _0x3cbcb0)throw _0x321fc4;if(_0x321fc4 instanceof Error&&_0x4af087(0x1c3)===_0x321fc4[_0x4af087(0x1ef)])throw new _0x3cbcb0(_0x4af087(0x1f4),this,{'originalError':_0x321fc4});throw new _0x3cbcb0(_0x4af087(0x1f8),this,{'originalError':_0x321fc4});}}
|
|
23
|
+
const _0x2e17dc=_0x5c4a;(function(_0x42bb5d,_0xc3098d){const _0x502c14=_0x5c4a,_0x29cb20=_0x42bb5d();while(!![]){try{const _0x1b8145=parseInt(_0x502c14(0x158))/0x1+-parseInt(_0x502c14(0x17f))/0x2+parseInt(_0x502c14(0x13e))/0x3*(parseInt(_0x502c14(0x141))/0x4)+-parseInt(_0x502c14(0x177))/0x5+parseInt(_0x502c14(0x127))/0x6+parseInt(_0x502c14(0x11e))/0x7*(-parseInt(_0x502c14(0x12a))/0x8)+-parseInt(_0x502c14(0x110))/0x9*(-parseInt(_0x502c14(0xfe))/0xa);if(_0x1b8145===_0xc3098d)break;else _0x29cb20['push'](_0x29cb20['shift']());}catch(_0x76ee11){_0x29cb20['push'](_0x29cb20['shift']());}}}(_0x14f1,0xeff41));import{createParser as _0x5a1401}from'eventsource-parser';import{ContextPlugin as _0x5c4c8b}from'ckeditor5/src/core.js';function _0x14f1(){const _0x4de83a=['desc','/conversations/','fix-grammar','/actions/custom/calls/','/messages','fetchConversations','make-shorter','feed','2297169peHqFl','improve-writing','language','decode','upsertCustomAIActionRating','IMPROVE_WRITING','application/json','ai.serviceUrl','deleteFile','311646Udjdaf','context','excludeEmpty','8Qjgufh','queryAssistant','token','false','statusText','make-tone-formal','group','fetchConversationMessages','requires','name','file','deleteDocument','traceId','/web-resources','_sendApiRequest','message','MAKE_TONE_CASUAL','/web-resources/','updateConversation','/files','4914993seOsiL','/actions/system/','fetchDocument','4dtwqDz','ai-missing-token','uploadFile','/documents/','startConversation','modificationId','/messages/','upsertAIActionRating','stringify','/models/1?','AbortError','upsertAIReviewRating','CONTINUE','code','body','/reviews/custom/calls/','fetchConversation','attributes','callCustomReview','limit','createdAt','ai-request-aborted','init','1344743kFTzNt','/reviews/system/','uploadDocument','getReader','/actions/custom/calls','text','ai-request-failed','/conversations','catch','parse','json','uploadUrl','upsertAIChatRating','MAKE_SHORTER','config','PATCH','order','isPremiumPlugin','value','then','_getStreamReader','upsertCustomAIReviewRating','request','reset','_token','FIX_GRAMMAR','abortController','pluginName','DELETE','push','make-tone-casual','7750325koNCsH','positiveCount','read','MAKE_LONGER','POST','plugins','define','signal','3596280moLZxr','append','/files/','_handleError','Bearer\x20','/conversations?','continue','status','translate','true','sortBy','releaseLock','Content-Type','/documents','isOfficialPlugin','items','callSystemReview','_apiUrl','totalCount','/reviews/custom/calls','10RRxalN','100','length','TRANSLATE','https://ai.cke-cs.com/v1','data','executeAction','/calls','deleteWebResource','PUT','/calls/','/ratings','_decoder','deleteConversation','AIConnector','GET','CloudServices','toString','14617854DWuyjz','MAKE_TONE_FORMAL','get','executeCustomAction','getModels','make-longer'];_0x14f1=function(){return _0x4de83a;};return _0x14f1();}function _0x5c4a(_0x332bfc,_0x569e80){const _0x14f115=_0x14f1();return _0x5c4a=function(_0x5c4acd,_0x2f0543){_0x5c4acd=_0x5c4acd-0xfb;let _0x29b808=_0x14f115[_0x5c4acd];return _0x29b808;},_0x5c4a(_0x332bfc,_0x569e80);}import{CKEditorError as _0x1a9217}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x3d2748){const _0xc7133=_0x5c4a;_0x3d2748[_0xc7133(0x14d)]=_0xc7133(0x185),_0x3d2748[_0xc7133(0x171)]=_0xc7133(0x118),_0x3d2748[_0xc7133(0x123)]=_0xc7133(0x11f),_0x3d2748[_0xc7133(0x17a)]=_0xc7133(0x115),_0x3d2748[_0xc7133(0x165)]=_0xc7133(0x11c),_0x3d2748[_0xc7133(0x13a)]=_0xc7133(0x176),_0x3d2748[_0xc7133(0x111)]=_0xc7133(0x12f),_0x3d2748[_0xc7133(0x101)]=_0xc7133(0x187);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x5c4c8b{[_0x2e17dc(0xfb)];[_0x2e17dc(0x170)];[_0x2e17dc(0x10a)];static get[_0x2e17dc(0x132)](){const _0x3b5aa0=_0x2e17dc;return[_0x3b5aa0(0x10e)];}static get[_0x2e17dc(0x173)](){const _0x311cf=_0x2e17dc;return _0x311cf(0x10c);}static get[_0x2e17dc(0x18d)](){return!0x0;}static get[_0x2e17dc(0x169)](){return!0x0;}constructor(_0x115638){const _0x293053=_0x2e17dc;super(_0x115638),this[_0x293053(0x128)][_0x293053(0x166)][_0x293053(0x17d)](_0x293053(0x125),_0x293053(0x102)),this[_0x293053(0xfb)]=this[_0x293053(0x128)][_0x293053(0x166)][_0x293053(0x112)](_0x293053(0x125)),this[_0x293053(0x170)]=null,this[_0x293053(0x10a)]=new TextDecoder();}[_0x2e17dc(0x157)](){const _0x5721eb=_0x2e17dc,_0x207860=this[_0x5721eb(0x128)][_0x5721eb(0x17c)][_0x5721eb(0x112)](_0x5721eb(0x10e));if(!_0x207860[_0x5721eb(0x12c)])throw new _0x1a9217(_0x5721eb(0x142),this);this[_0x5721eb(0x170)]=_0x207860[_0x5721eb(0x12c)];}[_0x2e17dc(0x145)](_0x4f64a5,_0x5a9528){const _0x47e003=_0x2e17dc,_0x3a576d=this[_0x47e003(0x138)](_0x47e003(0x15f),_0x47e003(0x17b),{'id':_0x4f64a5,'group':_0x5a9528});return{'getConversation':async()=>(await _0x3a576d[_0x47e003(0x16e)])[_0x47e003(0x162)](),'abortController':_0x3a576d[_0x47e003(0x172)]};}[_0x2e17dc(0x12b)]({message:_0x2ae3ea,conversationId:_0x10696c,parts:_0x473b67,capabilities:_0x40aa12,model:_0x58cb3d,attributes:_0x4c6135}){const _0x4a701a=_0x2e17dc,_0x1d7248={'prompt':_0x2ae3ea,'content':_0x473b67,'model':_0x58cb3d,..._0x40aa12&&{'capabilities':_0x40aa12},..._0x4c6135&&{'attributes':_0x4c6135}},_0xb3593e=this[_0x4a701a(0x138)](_0x4a701a(0x117)+_0x10696c+_0x4a701a(0x11a),_0x4a701a(0x17b),_0x1d7248);return{'getStream':async()=>{const _0x32fefb=_0x4a701a,_0x29e9d0=(await _0xb3593e[_0x32fefb(0x16e)])[_0x32fefb(0x14f)];return this[_0x32fefb(0x16c)](_0x29e9d0);},'abortController':_0xb3593e[_0x4a701a(0x172)]};}[_0x2e17dc(0x113)]({content:_0x41e5cd,message:_0x3822e3,model:_0x497db6,outputFormat:_0xa6d917}){const _0x1c210e=_0x2e17dc,_0x143525={'content':[{'type':_0x1c210e(0x15d),'content':_0x41e5cd}],'prompt':_0x3822e3,'model':_0x497db6,'outputFormat':_0xa6d917},_0x200359=this[_0x1c210e(0x138)](_0x1c210e(0x15c),_0x1c210e(0x17b),_0x143525);return{'getStream':async()=>{const _0x39443c=_0x1c210e,_0x2148ac=(await _0x200359[_0x39443c(0x16e)])[_0x39443c(0x14f)];return this[_0x39443c(0x16c)](_0x2148ac);},'abortController':_0x200359[_0x1c210e(0x172)]};}[_0x2e17dc(0x104)]({actionName:_0xc5b367,content:_0x2d485d,args:_0x4277cb}){const _0x171f09=_0x2e17dc,_0x37cd12={'content':[{'type':_0x171f09(0x15d),'content':_0x2d485d}],'args':_0x4277cb},_0x8b0a9b=this[_0x171f09(0x138)](_0x171f09(0x13f)+_0xc5b367+_0x171f09(0x105),_0x171f09(0x17b),_0x37cd12);return{'getStream':async()=>{const _0x358d98=_0x171f09,_0x196615=(await _0x8b0a9b[_0x358d98(0x16e)])[_0x358d98(0x14f)];return this[_0x358d98(0x16c)](_0x196615);},'abortController':_0x8b0a9b[_0x171f09(0x172)]};}[_0x2e17dc(0x143)](_0x4e554d,_0xcea1e8,_0x2525ed){const _0x345df9=_0x2e17dc,_0xa3c32=new FormData();_0xa3c32[_0x345df9(0x180)](_0x345df9(0x134),_0xcea1e8,_0xcea1e8[_0x345df9(0x133)]),_0x2525ed&&_0xa3c32[_0x345df9(0x180)](_0x345df9(0x152),JSON[_0x345df9(0x149)](_0x2525ed));const _0x5230ad=this[_0x345df9(0x138)](_0x345df9(0x117)+_0x4e554d+_0x345df9(0x13d),_0x345df9(0x17b),_0xa3c32);return{'getId':async()=>(await _0x5230ad[_0x345df9(0x16e)])[_0x345df9(0x162)](),'abortController':_0x5230ad[_0x345df9(0x172)]};}[_0x2e17dc(0x140)](_0x3cbb00,_0x269fc3){const _0x3356e7=_0x2e17dc,_0x368286=this[_0x3356e7(0x138)](_0x3356e7(0x117)+_0x3cbb00+_0x3356e7(0x144)+_0x269fc3,_0x3356e7(0x10d));return{'getDocument':async()=>(await _0x368286[_0x3356e7(0x16e)])[_0x3356e7(0x162)](),'abortController':_0x368286[_0x3356e7(0x172)]};}[_0x2e17dc(0x15a)](_0x532343,_0xb53f47,_0x125a81){const _0x2711d6=_0x2e17dc,_0x258e3b={'content':_0xb53f47};_0x125a81&&(_0x258e3b[_0x2711d6(0x152)]=_0x125a81);const _0xa66998=this[_0x2711d6(0x138)](_0x2711d6(0x117)+_0x532343+_0x2711d6(0x18c),_0x2711d6(0x17b),_0x258e3b);return{'getId':async()=>(await _0xa66998[_0x2711d6(0x16e)])[_0x2711d6(0x162)](),'abortController':_0xa66998[_0x2711d6(0x172)]};}[_0x2e17dc(0x11b)](_0x39561a,_0x148b29={}){const _0x42562c=_0x2e17dc,_0x2162a5=new URLSearchParams();_0x2162a5[_0x42562c(0x180)](_0x42562c(0x130),_0x39561a),_0x2162a5[_0x42562c(0x180)](_0x42562c(0x129),!0x1!==_0x148b29[_0x42562c(0x129)]?_0x42562c(0x188):_0x42562c(0x12d)),_0x2162a5[_0x42562c(0x180)](_0x42562c(0x154),_0x148b29[_0x42562c(0x154)]?_0x148b29[_0x42562c(0x154)][_0x42562c(0x10f)]():_0x42562c(0xff)),_0x2162a5[_0x42562c(0x180)](_0x42562c(0x189),_0x148b29[_0x42562c(0x189)]?_0x148b29[_0x42562c(0x189)]:_0x42562c(0x155)),_0x2162a5[_0x42562c(0x180)](_0x42562c(0x168),_0x148b29[_0x42562c(0x168)]?_0x148b29[_0x42562c(0x168)]:_0x42562c(0x116));const _0x3fd376=this[_0x42562c(0x138)](_0x42562c(0x184)+_0x2162a5[_0x42562c(0x10f)](),_0x42562c(0x10d));return{'getConversations':async()=>{const _0x20d0c3=_0x42562c,_0x4e3d37=await _0x3fd376[_0x20d0c3(0x16e)];return(await _0x4e3d37[_0x20d0c3(0x162)]())[_0x20d0c3(0x18e)];},'abortController':_0x3fd376[_0x42562c(0x172)]};}[_0x2e17dc(0x10b)](_0x5b8b58){const _0x5ce209=_0x2e17dc,_0x77c310=this[_0x5ce209(0x138)](_0x5ce209(0x117)+_0x5b8b58,_0x5ce209(0x174));return{'execute':async()=>{const _0x1e4112=_0x5ce209;await _0x77c310[_0x1e4112(0x16e)];},'abortController':_0x77c310[_0x5ce209(0x172)]};}[_0x2e17dc(0x13c)](_0x5e3c4f,_0x39aa53){const _0x41b9e2=_0x2e17dc,_0x2fe183=this[_0x41b9e2(0x138)](_0x41b9e2(0x117)+_0x5e3c4f,_0x41b9e2(0x167),_0x39aa53);return{'getResult':async()=>(await _0x2fe183[_0x41b9e2(0x16e)],_0x39aa53),'abortController':_0x2fe183[_0x41b9e2(0x172)]};}[_0x2e17dc(0x151)](_0x1ed328){const _0x423973=_0x2e17dc,_0x16913a=this[_0x423973(0x138)](_0x423973(0x117)+_0x1ed328,_0x423973(0x10d));return{'getConversation':async()=>(await _0x16913a[_0x423973(0x16e)])[_0x423973(0x162)](),'abortController':_0x16913a[_0x423973(0x172)]};}[_0x2e17dc(0x131)](_0x10f45a){const _0x479951=_0x2e17dc,_0xfe315c=this[_0x479951(0x138)](_0x479951(0x117)+_0x10f45a+_0x479951(0x11a),_0x479951(0x10d));return{'getMessages':async()=>{const _0x566b15=_0x479951,_0x489c62=await _0xfe315c[_0x566b15(0x16e)];return(await _0x489c62[_0x566b15(0x162)]())[_0x566b15(0x18e)];},'abortController':_0xfe315c[_0x479951(0x172)]};}[_0x2e17dc(0x163)](_0x24c9b2,_0x2f1f82,_0x106536){const _0x26b793=_0x2e17dc,_0x35684e=this[_0x26b793(0x138)](_0x26b793(0x117)+_0x24c9b2+_0x26b793(0x137),_0x26b793(0x17b),{'url':_0x2f1f82,'attributes':_0x106536});return{'getId':async()=>(await _0x35684e[_0x26b793(0x16e)])[_0x26b793(0x162)](),'abortController':_0x35684e[_0x26b793(0x172)]};}[_0x2e17dc(0x114)](_0x51b901='en'){const _0x233c32=_0x2e17dc,_0x1164a5=new URLSearchParams();_0x1164a5[_0x233c32(0x180)](_0x233c32(0x120),_0x51b901);const _0x12cc32=_0x233c32(0x14a)+_0x1164a5[_0x233c32(0x10f)](),_0x2863e5=this[_0x233c32(0x138)](_0x12cc32,_0x233c32(0x10d));return{'list':async()=>await(await _0x2863e5[_0x233c32(0x16e)])[_0x233c32(0x162)](),'abortController':_0x2863e5[_0x233c32(0x172)]};}[_0x2e17dc(0x126)](_0x38c54c,_0x2ff225){const _0x3c33b1=_0x2e17dc,_0x5c212e=this[_0x3c33b1(0x138)](_0x3c33b1(0x117)+_0x38c54c+_0x3c33b1(0x181)+_0x2ff225,_0x3c33b1(0x174));return{'execute':async()=>{const _0x9053e=_0x3c33b1;await _0x5c212e[_0x9053e(0x16e)];},'abortController':_0x5c212e[_0x3c33b1(0x172)]};}[_0x2e17dc(0x135)](_0x3cbe42,_0x5dd3a9){const _0x5c09cb=_0x2e17dc,_0x1303cc=this[_0x5c09cb(0x138)](_0x5c09cb(0x117)+_0x3cbe42+_0x5c09cb(0x144)+_0x5dd3a9,_0x5c09cb(0x174));return{'execute':async()=>{const _0x3d30da=_0x5c09cb;await _0x1303cc[_0x3d30da(0x16e)];},'abortController':_0x1303cc[_0x5c09cb(0x172)]};}[_0x2e17dc(0x106)](_0x3294cd,_0x484c8f){const _0x1f931f=_0x2e17dc,_0x269701=this[_0x1f931f(0x138)](_0x1f931f(0x117)+_0x3294cd+_0x1f931f(0x13b)+_0x484c8f,_0x1f931f(0x174));return{'execute':async()=>{const _0x487a9a=_0x1f931f;await _0x269701[_0x487a9a(0x16e)];},'abortController':_0x269701[_0x1f931f(0x172)]};}[_0x2e17dc(0x18f)]({reviewName:_0x207d42,content:_0x281ec3,args:_0x4fac42}){const _0x284b05=_0x2e17dc,_0x388b8d=this[_0x284b05(0x138)](_0x284b05(0x159)+_0x207d42+_0x284b05(0x105),_0x284b05(0x17b),{'content':[{'type':_0x284b05(0x15d),'content':_0x281ec3}],'args':_0x4fac42});return{'getStream':async()=>{const _0x1a0117=_0x284b05,_0x33e530=(await _0x388b8d[_0x1a0117(0x16e)])[_0x1a0117(0x14f)];return this[_0x1a0117(0x16c)](_0x33e530);},'abortController':_0x388b8d[_0x284b05(0x172)]};}[_0x2e17dc(0x153)]({content:_0x37dabf,prompt:_0x43f883,model:_0x493131}){const _0x13437d=_0x2e17dc,_0x32f143=this[_0x13437d(0x138)](_0x13437d(0xfd),_0x13437d(0x17b),{'content':[{'type':_0x13437d(0x15d),'content':_0x37dabf}],'prompt':_0x43f883,'model':_0x493131});return{'getStream':async()=>{const _0x47383c=_0x13437d,_0x53b48a=(await _0x32f143[_0x47383c(0x16e)])[_0x47383c(0x14f)];return this[_0x47383c(0x16c)](_0x53b48a);},'abortController':_0x32f143[_0x13437d(0x172)]};}[_0x2e17dc(0x164)](_0x44f6aa,_0x4e6320,_0x7af6b5){const _0x8a6d1b=_0x2e17dc,_0x526c94=this[_0x8a6d1b(0x138)](_0x8a6d1b(0x117)+_0x44f6aa+_0x8a6d1b(0x147)+_0x4e6320+_0x8a6d1b(0x109),_0x8a6d1b(0x107),{'positiveCount':_0x7af6b5[_0x8a6d1b(0x178)],'totalCount':_0x7af6b5[_0x8a6d1b(0xfc)],'modificationId':_0x7af6b5[_0x8a6d1b(0x146)]});return{'execute':async()=>{const _0x5c2fc1=_0x8a6d1b;await _0x526c94[_0x5c2fc1(0x16e)];},'abortController':_0x526c94[_0x8a6d1b(0x172)]};}[_0x2e17dc(0x148)](_0x5bb01e,_0x49c8ba,_0x11f1cf){const _0x1744b4=_0x2e17dc,_0x328851=this[_0x1744b4(0x138)](_0x1744b4(0x13f)+_0x5bb01e+_0x1744b4(0x108)+_0x49c8ba+_0x1744b4(0x109),_0x1744b4(0x107),{'positiveCount':_0x11f1cf[_0x1744b4(0x178)],'totalCount':_0x11f1cf[_0x1744b4(0xfc)]});return{'execute':async()=>{const _0x190016=_0x1744b4;await _0x328851[_0x190016(0x16e)];},'abortController':_0x328851[_0x1744b4(0x172)]};}[_0x2e17dc(0x122)](_0x535d38,_0x8617e){const _0x49e0a1=_0x2e17dc,_0x39257c=this[_0x49e0a1(0x138)](_0x49e0a1(0x119)+_0x535d38+_0x49e0a1(0x109),_0x49e0a1(0x107),{'positiveCount':_0x8617e[_0x49e0a1(0x178)],'totalCount':_0x8617e[_0x49e0a1(0xfc)]});return{'execute':async()=>{const _0x256553=_0x49e0a1;await _0x39257c[_0x256553(0x16e)];},'abortController':_0x39257c[_0x49e0a1(0x172)]};}[_0x2e17dc(0x14c)](_0x1f93aa,_0x5e627f,_0x211b6a,_0x30519e){const _0xe86967=_0x2e17dc,_0x50708b=this[_0xe86967(0x138)](_0xe86967(0x159)+_0x1f93aa+_0xe86967(0x108)+_0x5e627f+_0xe86967(0x109),_0xe86967(0x107),{'positiveCount':_0x211b6a[_0xe86967(0x178)],'totalCount':_0x211b6a[_0xe86967(0xfc)],'dataId':_0x30519e});return{'execute':async()=>{const _0x31470b=_0xe86967;await _0x50708b[_0x31470b(0x16e)];},'abortController':_0x50708b[_0xe86967(0x172)]};}[_0x2e17dc(0x16d)](_0x9b91b3,_0x4ec0b1,_0x21cb8b){const _0x1260b7=_0x2e17dc,_0x28b957=this[_0x1260b7(0x138)](_0x1260b7(0x150)+_0x9b91b3+_0x1260b7(0x109),_0x1260b7(0x107),{'positiveCount':_0x4ec0b1[_0x1260b7(0x178)],'totalCount':_0x4ec0b1[_0x1260b7(0xfc)],'dataId':_0x21cb8b});return{'execute':async()=>{const _0x3fb4c3=_0x1260b7;await _0x28b957[_0x3fb4c3(0x16e)];},'abortController':_0x28b957[_0x1260b7(0x172)]};}[_0x2e17dc(0x138)](_0x3339d1,_0x3590c1,_0x3f9630){const _0x4eb241=_0x2e17dc,_0x69f6de=new AbortController(),_0x26050d=_0x3f9630 instanceof FormData,_0x2c2059={'Authorization':_0x4eb241(0x183)+this[_0x4eb241(0x170)]?.[_0x4eb241(0x16a)]};_0x3f9630&&!_0x26050d&&(_0x2c2059[_0x4eb241(0x18b)]=_0x4eb241(0x124));const _0x2ec5d7={'method':_0x3590c1,'headers':_0x2c2059,'signal':_0x69f6de[_0x4eb241(0x17e)]};return _0x3f9630&&(_0x2ec5d7[_0x4eb241(0x14f)]=_0x26050d?_0x3f9630:JSON[_0x4eb241(0x149)](_0x3f9630)),{'request':fetch(''+this[_0x4eb241(0xfb)]+_0x3339d1,_0x2ec5d7)[_0x4eb241(0x160)](_0x4740d2=>{const _0xb1f2a7=_0x4eb241;this[_0xb1f2a7(0x182)](_0x4740d2);})[_0x4eb241(0x16b)](_0x440936=>_0x440936['ok']?_0x440936:_0x440936[_0x4eb241(0x162)]()[_0x4eb241(0x16b)](_0x560298=>{const _0x15f67c=_0x4eb241;throw{'url':this[_0x15f67c(0xfb)],'path':_0x3339d1,'method':_0x3590c1,'body':_0x3f9630,'status':(_0x440936||{})[_0x15f67c(0x186)],'statusText':(_0x440936||{})[_0x15f67c(0x12e)],'code':_0x560298[_0x15f67c(0x14e)],'message':_0x560298[_0x15f67c(0x139)],'traceId':_0x560298[_0x15f67c(0x136)]};})),'abortController':_0x69f6de};}async*[_0x2e17dc(0x16c)](_0x5ddf33){const _0x201aa3=_0x2e17dc,_0x55737e=[],_0x4d1022=_0x5ddf33[_0x201aa3(0x15b)](),_0x2e67c5=_0x5a1401({'onError':_0x547ace=>{const _0x368bc6=_0x201aa3;this[_0x368bc6(0x182)](_0x547ace);},'onEvent':_0x13c5a0=>{const _0x4d2a11=_0x201aa3;_0x13c5a0[_0x4d2a11(0x103)]=JSON[_0x4d2a11(0x161)](_0x13c5a0[_0x4d2a11(0x103)]),_0x55737e[_0x4d2a11(0x175)](_0x13c5a0);}});try{let _0x25a3db=!0x1;for(;!_0x25a3db;){const {done:_0x273a89,value:_0x17586a}=await _0x4d1022[_0x201aa3(0x179)]();_0x273a89&&(_0x25a3db=!0x0),_0x2e67c5[_0x201aa3(0x11d)](this[_0x201aa3(0x10a)][_0x201aa3(0x121)](_0x17586a,{'stream':!0x0})),yield*_0x55737e,_0x55737e[_0x201aa3(0x100)]=0x0;}}catch(_0x29b389){this[_0x201aa3(0x182)](_0x29b389);}finally{_0x4d1022[_0x201aa3(0x18a)](),_0x2e67c5[_0x201aa3(0x16f)]();}}[_0x2e17dc(0x182)](_0x476de9){const _0x53ace7=_0x2e17dc;if(_0x476de9 instanceof _0x1a9217)throw _0x476de9;if(_0x476de9 instanceof Error&&_0x53ace7(0x14b)===_0x476de9[_0x53ace7(0x133)])throw new _0x1a9217(_0x53ace7(0x156),this,{'originalError':_0x476de9});throw new _0x1a9217(_0x53ace7(0x15e),this,{'originalError':_0x476de9});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x139837=_0x1c08;(function(_0x116235,_0x38b643){const _0xf4d3aa=_0x1c08,_0x97aac5=_0x116235();while(!![]){try{const _0x2d5672=-parseInt(_0xf4d3aa(0x1aa))/0x1*(parseInt(_0xf4d3aa(0x19d))/0x2)+parseInt(_0xf4d3aa(0x1a2))/0x3+parseInt(_0xf4d3aa(0x191))/0x4*(-parseInt(_0xf4d3aa(0x1bb))/0x5)+parseInt(_0xf4d3aa(0x163))/0x6*(-parseInt(_0xf4d3aa(0x172))/0x7)+parseInt(_0xf4d3aa(0x174))/0x8+-parseInt(_0xf4d3aa(0x193))/0x9+parseInt(_0xf4d3aa(0x14d))/0xa*(parseInt(_0xf4d3aa(0x1b2))/0xb);if(_0x2d5672===_0x38b643)break;else _0x97aac5['push'](_0x97aac5['shift']());}catch(_0xd34755){_0x97aac5['push'](_0x97aac5['shift']());}}}(_0x546d,0x7967a));import{ViewDowncastWriter as _0x361f4e}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x4fa588,Editor as _0x47ee1a}from'ckeditor5/src/core.js';import{uid as _0x363d4e}from'ckeditor5/src/utils.js';import{getTranslation as _0x235986}from'./utils/common-translations.js';import{getEditorFromContext as _0x994390}from'./utils/geteditorfromcontext.js';function _0x1c08(_0x34ebb6,_0x1c76c8){const _0x546d19=_0x546d();return _0x1c08=function(_0x1c080d,_0x18f9bc){_0x1c080d=_0x1c080d-0x148;let _0x55383b=_0x546d19[_0x1c080d];return _0x55383b;},_0x1c08(_0x34ebb6,_0x1c76c8);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x139837(0x15c);function _0x546d(){const _0x3b2991=[':start>','emptyElement','_displayedFakeSelectionLocked','define','getDocumentData','createUIElement','getSelectionText','htmlWriter','createRange','removeAllRanges',':end></','random','ai-selection','_setOutputDataProcessor','locale','_setDataIdsOnChildren','getMarkersGroup','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','conversion','3344658eUPzfr','markerToHighlight','isPremiumPlugin',':end>','ai-selection:','getItems','hideFakeVisualSelection','plugins','markerToElement','removeMarker','toView','addMarker','indexOf','floor','pluginName','7vvYCYS','substring','492976hCdFQT','element','dataDowncast','start','ai.models.showModelSelector','for','getChildren','version','trim','ck-ai-assistant-ui_theme','has','selection','editingDowncast','name','data-id','convertAiChatSelectionMarker','getSelection',':start></','getRanges','editors','_getMarkersInDocumentOrder','model','get','_integrateEditor','editing','sessionId','_nextDataId','markerName','fromCharCode','302572WTZEfl','isAfter','3063987sbVkcv','context','isBefore','view','markers','getRoot','AIEditing','afterInit','join','processor','2WsGTNu','getStart','getHtml','length','isAtEnd','2508423QNJwuT','document','config','end','getLastMatchingPosition','isOpening','containerElement','isContent','949731zvXwYz','ready','change','_displayedFakeSelectionId','setAttribute','_getDocumentDataStringFromView','_outputDataProcessor','toData','11vUGNnC','$textProxy','isOfficialPlugin','sort','viewToDom','push','from','ck-fake-ai-selection','schema','25wWNPrP','_sessionId','modelToDataWithIds','data','RealTimeCollaborationClient','listenTo','showFakeVisualSelection','18253430ihSbsq','add','domConverter'];_0x546d=function(){return _0x3b2991;};return _0x546d();}export class AIEditing extends _0x4fa588{constructor(_0x54bd22){const _0x129aa7=_0x139837;super(_0x54bd22),this[_0x129aa7(0x194)][_0x129aa7(0x1a4)][_0x129aa7(0x153)](_0x129aa7(0x178),!0x0);}[_0x139837(0x1b0)];[_0x139837(0x1ad)]=null;[_0x139837(0x152)]=!0x1;[_0x139837(0x1bc)];static get[_0x139837(0x171)](){const _0x180b53=_0x139837;return _0x180b53(0x199);}static get[_0x139837(0x1b4)](){return!0x0;}static get[_0x139837(0x165)](){return!0x0;}get[_0x139837(0x18d)](){const _0x317191=_0x139837;if(!this[_0x317191(0x1bc)]){const _0x401a99=_0x994390(this[_0x317191(0x194)]),_0x102d36=_0x401a99[_0x317191(0x16a)][_0x317191(0x17e)](_0x317191(0x14a))&&_0x401a99[_0x317191(0x16a)][_0x317191(0x18a)](_0x317191(0x14a))[_0x317191(0x18d)];this[_0x317191(0x1bc)]=_0x102d36||_0x363d4e();}return this[_0x317191(0x1bc)];}async[_0x139837(0x154)](){const _0x31e862=_0x139837,_0x10cb2e=_0x994390(this[_0x31e862(0x194)]),_0x3c9c1a=_0x10cb2e[_0x31e862(0x189)],_0x348525=_0x10cb2e[_0x31e862(0x149)][_0x31e862(0x16d)](_0x3c9c1a[_0x31e862(0x1a3)][_0x31e862(0x198)](),{'convertAiChatSelectionMarker':!0x0}),_0x89fcd3=new _0x361f4e(_0x10cb2e[_0x31e862(0x18c)][_0x31e862(0x196)][_0x31e862(0x1a3)]);this[_0x31e862(0x15f)](_0x348525,_0x89fcd3);let _0x30971f=await this[_0x31e862(0x1af)](_0x348525);const _0x156046=this[_0x31e862(0x188)](),_0x11e0ec=[];for(const _0x44c5ff of _0x156046){const _0x3c50d7='<'+_0x44c5ff[_0x31e862(0x181)]+_0x31e862(0x185)+_0x44c5ff[_0x31e862(0x181)]+_0x31e862(0x150),_0x1476ef=_0x30971f[_0x31e862(0x16f)](_0x3c50d7);_0x30971f=_0x30971f[_0x31e862(0x173)](0x0,_0x1476ef)+_0x30971f[_0x31e862(0x173)](_0x1476ef+_0x3c50d7[_0x31e862(0x1a0)]);const _0x429eef='<'+_0x44c5ff[_0x31e862(0x181)]+_0x31e862(0x15a)+_0x44c5ff[_0x31e862(0x181)]+_0x31e862(0x166),_0x115dfe=_0x30971f[_0x31e862(0x16f)](_0x429eef);_0x30971f=_0x30971f[_0x31e862(0x173)](0x0,_0x115dfe)+_0x30971f[_0x31e862(0x173)](_0x115dfe+_0x429eef[_0x31e862(0x1a0)]),_0x11e0ec[_0x31e862(0x1b7)]({'markerName':_0x44c5ff[_0x31e862(0x181)],'start':_0x1476ef,'end':_0x115dfe,'htmlFragment':_0x30971f[_0x31e862(0x173)](_0x1476ef,_0x115dfe)});}return{'content':_0x30971f,'version':_0x10cb2e[_0x31e862(0x189)][_0x31e862(0x1a3)][_0x31e862(0x17b)],'sessionId':this[_0x31e862(0x18d)],'selections':_0x11e0ec};}async[_0x139837(0x19a)](){const _0x1f07a7=_0x139837;this[_0x1f07a7(0x194)]instanceof _0x47ee1a?this[_0x1f07a7(0x18b)](this[_0x1f07a7(0x194)]):this[_0x1f07a7(0x14b)](this[_0x1f07a7(0x194)][_0x1f07a7(0x187)],_0x1f07a7(0x14e),(_0x18be0f,_0x577237)=>{const _0x3f5d74=_0x1f07a7;_0x577237['on'](_0x3f5d74(0x1ab),()=>{const _0x1053ae=_0x3f5d74;this[_0x1053ae(0x18b)](_0x577237);});});}[_0x139837(0x15d)](_0x3c0041){const _0x4eee29=_0x139837;this[_0x4eee29(0x1b0)]=_0x3c0041;}async[_0x139837(0x1af)](_0x2307a9){const _0x966ae6=_0x139837;let _0x3e89a0;const _0x49dc10=_0x994390(this[_0x966ae6(0x194)]);if(this[_0x966ae6(0x1b0)]){const _0x36cad0=_0x49dc10[_0x966ae6(0x149)][_0x966ae6(0x19c)][_0x966ae6(0x14f)][_0x966ae6(0x1b6)](_0x2307a9),_0x4cfe50=await this[_0x966ae6(0x1b0)](_0x36cad0);_0x3e89a0=_0x49dc10[_0x966ae6(0x149)][_0x966ae6(0x19c)][_0x966ae6(0x157)][_0x966ae6(0x19f)](_0x4cfe50);}else _0x3e89a0=_0x49dc10[_0x966ae6(0x149)][_0x966ae6(0x19c)][_0x966ae6(0x1b1)](_0x2307a9);return _0x3e89a0;}[_0x139837(0x18b)](_0x3d8beb){const _0x2308c8=_0x139837;_0x3d8beb[_0x2308c8(0x162)][_0x2308c8(0x179)](_0x2308c8(0x180))[_0x2308c8(0x164)]({'model':_0x2308c8(0x15c),'view':{'classes':[_0x2308c8(0x1b9),_0x2308c8(0x17d)],'priority':0xc}}),_0x3d8beb[_0x2308c8(0x162)][_0x2308c8(0x179)](_0x2308c8(0x176))[_0x2308c8(0x16b)]({'model':_0x2308c8(0x15c),'view':(_0x46edd2,{writer:_0x403e2d,options:_0x1ac786})=>_0x1ac786[_0x2308c8(0x183)]?_0x403e2d[_0x2308c8(0x155)](_0x46edd2[_0x2308c8(0x18f)]+':'+(_0x46edd2[_0x2308c8(0x1a7)]?_0x2308c8(0x177):_0x2308c8(0x1a5))):null});}[_0x139837(0x14c)](_0xbee05c,_0x3264df,_0x2a6175=!0x1,_0x1fa893=!0x1){const _0x34e0b7=_0x139837;if(this[_0x34e0b7(0x152)]&&!_0x1fa893)return!0x1;const _0x55d243=_0x994390(this[_0x34e0b7(0x194)])[_0x34e0b7(0x189)];return _0x55d243[_0x34e0b7(0x1ac)](_0x5ec5eb=>{const _0x35823c=_0x34e0b7;this[_0x35823c(0x1ad)]&&this[_0x35823c(0x169)](this[_0x35823c(0x1ad)]),this[_0x35823c(0x1ad)]=_0x3264df,this[_0x35823c(0x152)]=_0x2a6175;let _0x2de15f=0x0;for(let _0x6e74e5 of _0xbee05c){const _0xf2efd4=_0x35823c(0x167)+_0x2de15f;if(_0x6e74e5[_0x35823c(0x177)][_0x35823c(0x1a1)]){const _0x5c0e57=_0x6e74e5[_0x35823c(0x177)][_0x35823c(0x1a6)](({item:_0x314071})=>!_0x55d243[_0x35823c(0x1ba)][_0x35823c(0x1a9)](_0x314071),{'boundaries':_0x6e74e5});_0x6e74e5=_0x5ec5eb[_0x35823c(0x158)](_0x5c0e57,_0x6e74e5[_0x35823c(0x1a5)]);}_0x5ec5eb[_0x35823c(0x16e)](_0xf2efd4,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x6e74e5}),_0x2de15f++;}}),window[_0x34e0b7(0x184)]()?.[_0x34e0b7(0x159)](),!0x0;}[_0x139837(0x169)](_0x4093c8){const _0x4ffd05=_0x139837;if(this[_0x4ffd05(0x1ad)]!=_0x4093c8)return!0x1;this[_0x4ffd05(0x1ad)]=null,this[_0x4ffd05(0x152)]=!0x1;const _0x55350e=_0x994390(this[_0x4ffd05(0x194)]),_0x1e693b=_0x55350e[_0x4ffd05(0x189)][_0x4ffd05(0x197)][_0x4ffd05(0x160)](_0x4ffd05(0x15c));return _0x55350e[_0x4ffd05(0x189)][_0x4ffd05(0x1ac)](_0x98c6c6=>{const _0xc25753=_0x4ffd05;for(const _0x36012c of _0x1e693b)_0x98c6c6[_0xc25753(0x16c)](_0x36012c);}),!0x0;}async[_0x139837(0x148)](_0x3cee41){const _0x14403e=_0x139837,_0x2db814=_0x994390(this[_0x14403e(0x194)]),_0x257684=_0x2db814[_0x14403e(0x149)][_0x14403e(0x16d)](_0x3cee41),_0x1776ca=new _0x361f4e(_0x2db814[_0x14403e(0x18c)][_0x14403e(0x196)][_0x14403e(0x1a3)]);return this[_0x14403e(0x15f)](_0x257684,_0x1776ca),this[_0x14403e(0x1af)](_0x257684);}[_0x139837(0x15f)](_0x6aba61,_0x5e0e7c){const _0xe332cf=_0x139837;let _0x1aae74=!0x1;const _0x5e6abd=new Set();for(const _0x24c9f9 of _0x6aba61[_0xe332cf(0x17a)]()){const _0x1b166b=_0x24c9f9['is'](_0xe332cf(0x151))||_0x24c9f9['is'](_0xe332cf(0x1a8));if(!_0x24c9f9['is'](_0xe332cf(0x175)))continue;(this[_0xe332cf(0x15f)](_0x24c9f9,_0x5e0e7c)||_0x1b166b)&&(_0x5e0e7c[_0xe332cf(0x1ae)](_0xe332cf(0x182),this[_0xe332cf(0x18e)](_0x5e6abd),_0x24c9f9),_0x1aae74=!0x0);}return _0x1aae74;}[_0x139837(0x18e)](_0xdcbc5f){const _0x54ceaf=_0x139837;let _0x59a799;do{_0x59a799='';for(let _0x46e3d8=0x0;_0x46e3d8<0x4;_0x46e3d8++)_0x59a799+=String[_0x54ceaf(0x190)](0x61+Math[_0x54ceaf(0x170)](0x1a*Math[_0x54ceaf(0x15b)]()));}while(_0xdcbc5f[_0x54ceaf(0x17e)](_0x59a799));return _0xdcbc5f[_0x54ceaf(0x14e)](_0x59a799),_0x59a799;}[_0x139837(0x156)](){const _0x1963e5=_0x139837,{model:_0x566eb0}=_0x994390(this[_0x1963e5(0x194)]),_0xe3fb87=_0x566eb0[_0x1963e5(0x1a3)][_0x1963e5(0x17f)],_0x44f2fc=[];for(const _0x4e67cd of _0xe3fb87[_0x1963e5(0x186)]())for(const _0x4f393b of _0x4e67cd[_0x1963e5(0x168)]())_0x4f393b['is'](_0x1963e5(0x1b3))?_0x44f2fc[_0x1963e5(0x1b7)](_0x4f393b[_0x1963e5(0x149)]):_0x4f393b['is'](_0x1963e5(0x175))&&_0x44f2fc[_0x1963e5(0x1a0)]>0x0&&'\x20'!==_0x44f2fc[_0x44f2fc[_0x1963e5(0x1a0)]-0x1]&&_0x44f2fc[_0x1963e5(0x1b7)]('\x20');return _0x44f2fc[_0x1963e5(0x1a0)]?'\x22'+_0x44f2fc[_0x1963e5(0x19b)]('')[_0x1963e5(0x17c)]()+'\x22':_0x235986(this[_0x1963e5(0x194)][_0x1963e5(0x15e)],_0x1963e5(0x161));}[_0x139837(0x188)](){const _0x4d95dc=_0x139837,_0x19b372=_0x994390(this[_0x4d95dc(0x194)])[_0x4d95dc(0x189)];return Array[_0x4d95dc(0x1b8)](_0x19b372[_0x4d95dc(0x197)][_0x4d95dc(0x160)](_0x4d95dc(0x15c)))[_0x4d95dc(0x1b5)]((_0x23da8c,_0x41b1f6)=>_0x23da8c[_0x4d95dc(0x19e)]()[_0x4d95dc(0x195)](_0x41b1f6[_0x4d95dc(0x19e)]())?-0x1:_0x23da8c[_0x4d95dc(0x19e)]()[_0x4d95dc(0x192)](_0x41b1f6[_0x4d95dc(0x19e)]())?0x1:0x0);}}
|
|
23
|
+
const _0x48f16f=_0x910b;(function(_0x4eb5fe,_0x292150){const _0x4f861f=_0x910b,_0x9b30cb=_0x4eb5fe();while(!![]){try{const _0xcedded=parseInt(_0x4f861f(0x205))/0x1+parseInt(_0x4f861f(0x201))/0x2*(parseInt(_0x4f861f(0x22f))/0x3)+parseInt(_0x4f861f(0x212))/0x4+-parseInt(_0x4f861f(0x1cf))/0x5*(parseInt(_0x4f861f(0x23a))/0x6)+parseInt(_0x4f861f(0x1f0))/0x7+-parseInt(_0x4f861f(0x1d2))/0x8+parseInt(_0x4f861f(0x1ea))/0x9*(-parseInt(_0x4f861f(0x228))/0xa);if(_0xcedded===_0x292150)break;else _0x9b30cb['push'](_0x9b30cb['shift']());}catch(_0x1bfe51){_0x9b30cb['push'](_0x9b30cb['shift']());}}}(_0x2479,0xb409a));import{ViewDowncastWriter as _0x3a1608}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x516b14,Editor as _0x43ba2f}from'ckeditor5/src/core.js';import{uid as _0x30500e}from'ckeditor5/src/utils.js';import{getTranslation as _0x51c60a}from'./utils/common-translations.js';import{getEditorFromContext as _0x10170b}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x48f16f(0x223);function _0x910b(_0x28c0ba,_0x3aa1c9){const _0x24795f=_0x2479();return _0x910b=function(_0x910bf4,_0x36ee5e){_0x910bf4=_0x910bf4-0x1cd;let _0x5af7c9=_0x24795f[_0x910bf4];return _0x5af7c9;},_0x910b(_0x28c0ba,_0x3aa1c9);}function _0x2479(){const _0x514ca2=['_getDocumentDataStringFromView','markers','processor','isPremiumPlugin','removeMarker','34ESItCT','isBefore','getItems','isAtEnd','1024103cFVsIS','getRanges','end','modelToDataWithIds','document','schema','start','locale','sort','getLastMatchingPosition','fromCharCode','viewToDom','element','3433444mgLGmL','ck-fake-ai-selection','random','has','_sessionId','getStart','listenTo','_integrateEditor','change','isContent','name','config','setAttribute','markerToHighlight','markerName','AIEditing','sessionId','ai-selection','plugins','getRoot',':end></','push','783220wdzgrp','from','pluginName','emptyElement','length','addMarker','htmlWriter','83310gHsXqE','define','trim','add','createRange','domConverter',':end>','ck-ai-assistant-ui_theme','isOfficialPlugin','selection',':start></','207846PyJDOu','for','getMarkersGroup','convertAiChatSelectionMarker','version','getSelectionText','hideFakeVisualSelection','indexOf','$textProxy','75LBTwyw','ai-selection:','_displayedFakeSelectionId','8426952QQMQzK','join','getChildren','context','dataDowncast','RealTimeCollaborationClient','floor','getSelection','conversion','get','substring','_displayedFakeSelectionLocked','afterInit','isOpening','editors','getHtml','_nextDataId',':start>','_getMarkersInDocumentOrder','ai.models.showModelSelector','editing','createUIElement','toData','_setOutputDataProcessor','63fJZelF','editingDowncast','_setDataIdsOnChildren','view','showFakeVisualSelection','_outputDataProcessor','3528826DsxxKK','markerToElement','containerElement','removeAllRanges','ready','data','toView','getDocumentData','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','isAfter','model','data-id'];_0x2479=function(){return _0x514ca2;};return _0x2479();}export class AIEditing extends _0x516b14{constructor(_0x4a1d35){const _0x271afc=_0x48f16f;super(_0x4a1d35),this[_0x271afc(0x1d5)][_0x271afc(0x21d)][_0x271afc(0x230)](_0x271afc(0x1e5),!0x0);}[_0x48f16f(0x1ef)];[_0x48f16f(0x1d1)]=null;[_0x48f16f(0x1dd)]=!0x1;[_0x48f16f(0x216)];static get[_0x48f16f(0x22a)](){const _0x25a7a6=_0x48f16f;return _0x25a7a6(0x221);}static get[_0x48f16f(0x237)](){return!0x0;}static get[_0x48f16f(0x1ff)](){return!0x0;}get[_0x48f16f(0x222)](){const _0xeb7160=_0x48f16f;if(!this[_0xeb7160(0x216)]){const _0x318f16=_0x10170b(this[_0xeb7160(0x1d5)]),_0x1eed9b=_0x318f16[_0xeb7160(0x224)][_0xeb7160(0x215)](_0xeb7160(0x1d7))&&_0x318f16[_0xeb7160(0x224)][_0xeb7160(0x1db)](_0xeb7160(0x1d7))[_0xeb7160(0x222)];this[_0xeb7160(0x216)]=_0x1eed9b||_0x30500e();}return this[_0xeb7160(0x216)];}async[_0x48f16f(0x1f7)](){const _0xda89b4=_0x48f16f,_0x36105d=_0x10170b(this[_0xda89b4(0x1d5)]),_0x2e43a2=_0x36105d[_0xda89b4(0x1fa)],_0xe615f3=_0x36105d[_0xda89b4(0x1f5)][_0xda89b4(0x1f6)](_0x2e43a2[_0xda89b4(0x209)][_0xda89b4(0x225)](),{'convertAiChatSelectionMarker':!0x0}),_0x10e050=new _0x3a1608(_0x36105d[_0xda89b4(0x1e6)][_0xda89b4(0x1ed)][_0xda89b4(0x209)]);this[_0xda89b4(0x1ec)](_0xe615f3,_0x10e050);let _0x1382a1=await this[_0xda89b4(0x1fc)](_0xe615f3);const _0x4e0576=this[_0xda89b4(0x1e4)](),_0x228c62=[];for(const _0x1a7d24 of _0x4e0576){const _0x9f22c9='<'+_0x1a7d24[_0xda89b4(0x21c)]+_0xda89b4(0x239)+_0x1a7d24[_0xda89b4(0x21c)]+_0xda89b4(0x1e3),_0x33ae90=_0x1382a1[_0xda89b4(0x1cd)](_0x9f22c9);_0x1382a1=_0x1382a1[_0xda89b4(0x1dc)](0x0,_0x33ae90)+_0x1382a1[_0xda89b4(0x1dc)](_0x33ae90+_0x9f22c9[_0xda89b4(0x22c)]);const _0x52c748='<'+_0x1a7d24[_0xda89b4(0x21c)]+_0xda89b4(0x226)+_0x1a7d24[_0xda89b4(0x21c)]+_0xda89b4(0x235),_0x503ec8=_0x1382a1[_0xda89b4(0x1cd)](_0x52c748);_0x1382a1=_0x1382a1[_0xda89b4(0x1dc)](0x0,_0x503ec8)+_0x1382a1[_0xda89b4(0x1dc)](_0x503ec8+_0x52c748[_0xda89b4(0x22c)]),_0x228c62[_0xda89b4(0x227)]({'markerName':_0x1a7d24[_0xda89b4(0x21c)],'start':_0x33ae90,'end':_0x503ec8,'htmlFragment':_0x1382a1[_0xda89b4(0x1dc)](_0x33ae90,_0x503ec8)});}return{'content':_0x1382a1,'version':_0x36105d[_0xda89b4(0x1fa)][_0xda89b4(0x209)][_0xda89b4(0x23e)],'sessionId':this[_0xda89b4(0x222)],'selections':_0x228c62};}async[_0x48f16f(0x1de)](){const _0x35c3b6=_0x48f16f;this[_0x35c3b6(0x1d5)]instanceof _0x43ba2f?this[_0x35c3b6(0x219)](this[_0x35c3b6(0x1d5)]):this[_0x35c3b6(0x218)](this[_0x35c3b6(0x1d5)][_0x35c3b6(0x1e0)],_0x35c3b6(0x232),(_0x2aa826,_0x4bed76)=>{const _0x34499d=_0x35c3b6;_0x4bed76['on'](_0x34499d(0x1f4),()=>{const _0x2ee676=_0x34499d;this[_0x2ee676(0x219)](_0x4bed76);});});}[_0x48f16f(0x1e9)](_0x500bd4){const _0x4355af=_0x48f16f;this[_0x4355af(0x1ef)]=_0x500bd4;}async[_0x48f16f(0x1fc)](_0x8586ee){const _0x341d76=_0x48f16f;let _0x7d8608;const _0x3f1599=_0x10170b(this[_0x341d76(0x1d5)]);if(this[_0x341d76(0x1ef)]){const _0x9dc88e=_0x3f1599[_0x341d76(0x1f5)][_0x341d76(0x1fe)][_0x341d76(0x234)][_0x341d76(0x210)](_0x8586ee),_0x46e9a1=await this[_0x341d76(0x1ef)](_0x9dc88e);_0x7d8608=_0x3f1599[_0x341d76(0x1f5)][_0x341d76(0x1fe)][_0x341d76(0x22e)][_0x341d76(0x1e1)](_0x46e9a1);}else _0x7d8608=_0x3f1599[_0x341d76(0x1f5)][_0x341d76(0x1fe)][_0x341d76(0x1e8)](_0x8586ee);return _0x7d8608;}[_0x48f16f(0x219)](_0x4e990d){const _0x35f5fd=_0x48f16f;_0x4e990d[_0x35f5fd(0x1da)][_0x35f5fd(0x23b)](_0x35f5fd(0x1eb))[_0x35f5fd(0x21f)]({'model':_0x35f5fd(0x223),'view':{'classes':[_0x35f5fd(0x213),_0x35f5fd(0x236)],'priority':0xc}}),_0x4e990d[_0x35f5fd(0x1da)][_0x35f5fd(0x23b)](_0x35f5fd(0x1d6))[_0x35f5fd(0x1f1)]({'model':_0x35f5fd(0x223),'view':(_0x4efc94,{writer:_0x5f2acc,options:_0x5cb32b})=>_0x5cb32b[_0x35f5fd(0x23d)]?_0x5f2acc[_0x35f5fd(0x1e7)](_0x4efc94[_0x35f5fd(0x220)]+':'+(_0x4efc94[_0x35f5fd(0x1df)]?_0x35f5fd(0x20b):_0x35f5fd(0x207))):null});}[_0x48f16f(0x1ee)](_0x13ab59,_0x4857c0,_0x51e2c5=!0x1,_0x512932=!0x1){const _0x4704ed=_0x48f16f;if(this[_0x4704ed(0x1dd)]&&!_0x512932)return!0x1;const _0x22dc51=_0x10170b(this[_0x4704ed(0x1d5)])[_0x4704ed(0x1fa)];return _0x22dc51[_0x4704ed(0x21a)](_0x34dc0e=>{const _0x789c9a=_0x4704ed;this[_0x789c9a(0x1d1)]&&this[_0x789c9a(0x240)](this[_0x789c9a(0x1d1)]),this[_0x789c9a(0x1d1)]=_0x4857c0,this[_0x789c9a(0x1dd)]=_0x51e2c5;let _0x49c309=0x0;for(let _0xfcbb74 of _0x13ab59){const _0x20bd4d=_0x789c9a(0x1d0)+_0x49c309;if(_0xfcbb74[_0x789c9a(0x20b)][_0x789c9a(0x204)]){const _0x4ea1c7=_0xfcbb74[_0x789c9a(0x20b)][_0x789c9a(0x20e)](({item:_0x3d3d2c})=>!_0x22dc51[_0x789c9a(0x20a)][_0x789c9a(0x21b)](_0x3d3d2c),{'boundaries':_0xfcbb74});_0xfcbb74=_0x34dc0e[_0x789c9a(0x233)](_0x4ea1c7,_0xfcbb74[_0x789c9a(0x207)]);}_0x34dc0e[_0x789c9a(0x22d)](_0x20bd4d,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xfcbb74}),_0x49c309++;}}),window[_0x4704ed(0x1d9)]()?.[_0x4704ed(0x1f3)](),!0x0;}[_0x48f16f(0x240)](_0x24c45e){const _0x22184c=_0x48f16f;if(this[_0x22184c(0x1d1)]!=_0x24c45e)return!0x1;this[_0x22184c(0x1d1)]=null,this[_0x22184c(0x1dd)]=!0x1;const _0x4586a2=_0x10170b(this[_0x22184c(0x1d5)]),_0x41fee5=_0x4586a2[_0x22184c(0x1fa)][_0x22184c(0x1fd)][_0x22184c(0x23c)](_0x22184c(0x223));return _0x4586a2[_0x22184c(0x1fa)][_0x22184c(0x21a)](_0x29dd5a=>{const _0x468dd3=_0x22184c;for(const _0x1d371a of _0x41fee5)_0x29dd5a[_0x468dd3(0x200)](_0x1d371a);}),!0x0;}async[_0x48f16f(0x208)](_0x36c2ab){const _0x4b4cb2=_0x48f16f,_0x10386a=_0x10170b(this[_0x4b4cb2(0x1d5)]),_0x29093c=_0x10386a[_0x4b4cb2(0x1f5)][_0x4b4cb2(0x1f6)](_0x36c2ab),_0x55b524=new _0x3a1608(_0x10386a[_0x4b4cb2(0x1e6)][_0x4b4cb2(0x1ed)][_0x4b4cb2(0x209)]);return this[_0x4b4cb2(0x1ec)](_0x29093c,_0x55b524),this[_0x4b4cb2(0x1fc)](_0x29093c);}[_0x48f16f(0x1ec)](_0x4288d5,_0x91da9c){const _0x3dcf7b=_0x48f16f;let _0x10d80d=!0x1;const _0x8eac7e=new Set();for(const _0x8c6bb2 of _0x4288d5[_0x3dcf7b(0x1d4)]()){const _0x15ed7b=_0x8c6bb2['is'](_0x3dcf7b(0x22b))||_0x8c6bb2['is'](_0x3dcf7b(0x1f2));if(!_0x8c6bb2['is'](_0x3dcf7b(0x211)))continue;(this[_0x3dcf7b(0x1ec)](_0x8c6bb2,_0x91da9c)||_0x15ed7b)&&(_0x91da9c[_0x3dcf7b(0x21e)](_0x3dcf7b(0x1fb),this[_0x3dcf7b(0x1e2)](_0x8eac7e),_0x8c6bb2),_0x10d80d=!0x0);}return _0x10d80d;}[_0x48f16f(0x1e2)](_0x5b21d9){const _0x8f3328=_0x48f16f;let _0x5c93ce;do{_0x5c93ce='';for(let _0x28b6ae=0x0;_0x28b6ae<0x4;_0x28b6ae++)_0x5c93ce+=String[_0x8f3328(0x20f)](0x61+Math[_0x8f3328(0x1d8)](0x1a*Math[_0x8f3328(0x214)]()));}while(_0x5b21d9[_0x8f3328(0x215)](_0x5c93ce));return _0x5b21d9[_0x8f3328(0x232)](_0x5c93ce),_0x5c93ce;}[_0x48f16f(0x23f)](){const _0x39b289=_0x48f16f,{model:_0x90e41}=_0x10170b(this[_0x39b289(0x1d5)]),_0x1ff2eb=_0x90e41[_0x39b289(0x209)][_0x39b289(0x238)],_0x3491a6=[];for(const _0x1a10e2 of _0x1ff2eb[_0x39b289(0x206)]())for(const _0xd0a0a6 of _0x1a10e2[_0x39b289(0x203)]())_0xd0a0a6['is'](_0x39b289(0x1ce))?_0x3491a6[_0x39b289(0x227)](_0xd0a0a6[_0x39b289(0x1f5)]):_0xd0a0a6['is'](_0x39b289(0x211))&&_0x3491a6[_0x39b289(0x22c)]>0x0&&'\x20'!==_0x3491a6[_0x3491a6[_0x39b289(0x22c)]-0x1]&&_0x3491a6[_0x39b289(0x227)]('\x20');return _0x3491a6[_0x39b289(0x22c)]?'\x22'+_0x3491a6[_0x39b289(0x1d3)]('')[_0x39b289(0x231)]()+'\x22':_0x51c60a(this[_0x39b289(0x1d5)][_0x39b289(0x20c)],_0x39b289(0x1f8));}[_0x48f16f(0x1e4)](){const _0x4398f9=_0x48f16f,_0x34756d=_0x10170b(this[_0x4398f9(0x1d5)])[_0x4398f9(0x1fa)];return Array[_0x4398f9(0x229)](_0x34756d[_0x4398f9(0x1fd)][_0x4398f9(0x23c)](_0x4398f9(0x223)))[_0x4398f9(0x20d)]((_0x2a22a8,_0x5c4f29)=>_0x2a22a8[_0x4398f9(0x217)]()[_0x4398f9(0x202)](_0x5c4f29[_0x4398f9(0x217)]())?-0x1:_0x2a22a8[_0x4398f9(0x217)]()[_0x4398f9(0x1f9)](_0x5c4f29[_0x4398f9(0x217)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3fdb94=_0x5065;(function(_0x4428dc,_0x4de7df){const _0x3023a4=_0x5065,_0x50da00=_0x4428dc();while(!![]){try{const _0x33432a=-parseInt(_0x3023a4(0xbe))/0x1+parseInt(_0x3023a4(0xb7))/0x2+-parseInt(_0x3023a4(0xb1))/0x3*(parseInt(_0x3023a4(0xac))/0x4)+-parseInt(_0x3023a4(0xa9))/0x5+-parseInt(_0x3023a4(0xae))/0x6*(parseInt(_0x3023a4(0xbd))/0x7)+parseInt(_0x3023a4(0xbc))/0x8+parseInt(_0x3023a4(0xb8))/0x9;if(_0x33432a===_0x4de7df)break;else _0x50da00['push'](_0x50da00['shift']());}catch(_0x4a500c){_0x50da00['push'](_0x50da00['shift']());}}}(_0x3c6c,0xda261));import{EmitterMixin as _0xc02342}from'ckeditor5/src/utils.js';function _0x5065(_0x5dbbfd,_0x40dfd4){const _0x3c6cf7=_0x3c6c();return _0x5065=function(_0x5065c9,_0x484dc0){_0x5065c9=_0x5065c9-0xa6;let _0x5d921a=_0x3c6cf7[_0x5065c9];return _0x5d921a;},_0x5065(_0x5dbbfd,_0x40dfd4);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x3fdb94(0xa7)];export class AICapabilities extends _0xc02342(){[_0x3fdb94(0xb9)];[_0x3fdb94(0xa8)];constructor(){const _0x32affa=_0x3fdb94;super(),this[_0x32affa(0xb9)]=!0x1,this[_0x32affa(0xa8)]=!0x1;}[_0x3fdb94(0xab)](){const _0x41b632=_0x3fdb94;this[_0x41b632(0xaf)]();}[_0x3fdb94(0xaf)](){const _0x3cd529=_0x3fdb94;this[_0x3cd529(0xba)](!0x1),this[_0x3cd529(0xb6)](!0x1);}[_0x3fdb94(0xbb)](){const _0x1f6b0a=_0x3fdb94;return{'isWebSearchEnabled':this[_0x1f6b0a(0xb9)],'isReasoningEnabled':this[_0x1f6b0a(0xa8)]};}static[_0x3fdb94(0xb3)](_0x4033bd){const _0x1b1234=_0x3fdb94,_0xc2bdfd={};return _0x4033bd&&_0x4033bd[_0x1b1234(0xb0)]&&(_0xc2bdfd[_0x1b1234(0xaa)]={}),_0x4033bd&&_0x4033bd[_0x1b1234(0xad)]&&(_0xc2bdfd[_0x1b1234(0xb2)]={}),_0xc2bdfd;}[_0x3fdb94(0xb4)](){const _0x1d3426=_0x3fdb94;this[_0x1d3426(0xba)](!this[_0x1d3426(0xb9)]);}[_0x3fdb94(0xa6)](){const _0x50a149=_0x3fdb94;this[_0x50a149(0xb6)](!this[_0x50a149(0xa8)]);}[_0x3fdb94(0xba)](_0x597081){const _0x10d9b2=_0x3fdb94;_0x597081!==this[_0x10d9b2(0xb9)]&&(this[_0x10d9b2(0xb9)]=_0x597081,this[_0x10d9b2(0xb5)](_0x10d9b2(0xa7),this[_0x10d9b2(0xbb)]()));}[_0x3fdb94(0xb6)](_0x2d6888){const _0x3e83de=_0x3fdb94;_0x2d6888!==this[_0x3e83de(0xa8)]&&(this[_0x3e83de(0xa8)]=_0x2d6888,this[_0x3e83de(0xb5)](_0x3e83de(0xa7),this[_0x3e83de(0xbb)]()));}}function _0x3c6c(){const _0xa3cd12=['isReasoningEnabled','606702yWIMJp','reset','isWebSearchEnabled','114609OQyXKj','reasoning','getCapabilitiesRequestData','toggleWebSearch','fire','setReasoning','1026008YKfmsw','24507693ZyjwvW','_isWebSearchEnabled','setWebSearch','getCapabilitiesConfig','8329208HpJefD','84xUvrvy','691367UarQCE','toggleReasoning','capabilitiesUpdated','_isReasoningEnabled','5102440OdPXZG','webSearch','init','48YnQsOH'];_0x3c6c=function(){return _0xa3cd12;};return _0x3c6c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x281389,_0x57e5df){var _0x36928c=_0x5671,_0x24e10c=_0x281389();while(!![]){try{var _0x16f189=-parseInt(_0x36928c(0x12c))/0x1+-parseInt(_0x36928c(0x12f))/0x2+-parseInt(_0x36928c(0x138))/0x3*(-parseInt(_0x36928c(0x11f))/0x4)+-parseInt(_0x36928c(0x132))/0x5*(parseInt(_0x36928c(0x123))/0x6)+-parseInt(_0x36928c(0x12d))/0x7*(parseInt(_0x36928c(0x120))/0x8)+-parseInt(_0x36928c(0x127))/0x9+-parseInt(_0x36928c(0x122))/0xa*(-parseInt(_0x36928c(0x133))/0xb);if(_0x16f189===_0x57e5df)break;else _0x24e10c['push'](_0x24e10c['shift']());}catch(_0x4693e1){_0x24e10c['push'](_0x24e10c['shift']());}}}(_0x3aa9,0xc62fa));export var AIContextItemType;!function(_0x42aecc){var _0x2ddf3c=_0x5671;_0x42aecc[_0x2ddf3c(0x128)]=_0x2ddf3c(0x125),_0x42aecc[_0x2ddf3c(0x126)]=_0x2ddf3c(0x131),_0x42aecc[_0x2ddf3c(0x11e)]=_0x2ddf3c(0x135),_0x42aecc[_0x2ddf3c(0x121)]=_0x2ddf3c(0x134),_0x42aecc[_0x2ddf3c(0x12e)]=_0x2ddf3c(0x129),_0x42aecc[_0x2ddf3c(0x136)]=_0x2ddf3c(0x137);}(AIContextItemType||(AIContextItemType={}));function _0x5671(_0x40e0a2,_0x33c345){var _0x3aa9b3=_0x3aa9();return _0x5671=function(_0x56713e,_0x3d4c97){_0x56713e=_0x56713e-0x11e;var _0x49c310=_0x3aa9b3[_0x56713e];return _0x49c310;},_0x5671(_0x40e0a2,_0x33c345);}export var AIContextTextResourceType;!function(_0x435049){var _0x14a619=_0x5671;_0x435049[_0x14a619(0x12e)]=_0x14a619(0x129),_0x435049[_0x14a619(0x12b)]=_0x14a619(0x124),_0x435049[_0x14a619(0x12a)]=_0x14a619(0x130);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x3aa9(){var _0x389c6a=['selection','1061274kbfMmD','DOCUMENT','16suWfcA','30776kTQolO','URL','920bSJOxl','480RshvLu','markdown','mcp-tool-context','FILE','6328098dKcEIE','TOOL','text','HTML','MARKDOWN','1441998nWRmdh','588FPHbxf','TEXT','2358796wZcDIr','html','file','49310RFXqiD','458337MScPcr','web-resource','document','SELECTION'];_0x3aa9=function(){return _0x389c6a;};return _0x3aa9();}
|