@ckeditor/ckeditor5-ai 47.0.0 → 47.1.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/ckeditor5-metadata.json +9 -2
- package/dist/index-editor.css +119 -34
- package/dist/index.css +144 -35
- package/dist/index.js +4 -4
- 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/lang/contexts.json +5 -0
- 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/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.d.ts +3 -3
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +6 -0
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.d.ts +2 -4
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +11 -4
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +9 -0
- 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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.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/aichat/utils/scrollmanager.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 +1 -1
- 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/aiconfig.d.ts +4 -0
- 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/aireply.d.ts +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/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.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/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.d.ts +2 -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.d.ts +2 -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/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +3 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +31 -3
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +5 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +7 -5
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +3 -0
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +4 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +27 -3
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +13 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.d.ts +4 -0
- 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/errors.d.ts +5 -0
- package/src/errors.js +23 -0
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +4 -0
- package/theme/aichat/aichat-controls/model-unavailable-message.css +39 -0
- package/theme/aichat/aichat-controls.css +1 -0
- package/theme/aichat/aichat.css +0 -1
- package/theme/aichat/aichatfeed.css +9 -0
- package/theme/aichat/aisuggestioncontainer.css +7 -1
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +4 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +4 -0
- package/theme/aireviewmode/aireviewmode-check-run-result.css +25 -19
- package/theme/aireviewmode/aireviewmode-check-run.css +35 -7
- package/theme/aitabs/aitabsview.css +2 -2
- package/theme/aitabs/tabs/tabsview.css +13 -3
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +0 -16
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4802e8=_0x1f36;(function(_0x2f3509,_0x25b48a){const _0x1f24cd=_0x1f36,_0x4b28b2=_0x2f3509();while(!![]){try{const _0x415584=-parseInt(_0x1f24cd(0x111))/0x1+parseInt(_0x1f24cd(0x11a))/0x2*(-parseInt(_0x1f24cd(0x11e))/0x3)+-parseInt(_0x1f24cd(0x11c))/0x4+-parseInt(_0x1f24cd(0x118))/0x5*(-parseInt(_0x1f24cd(0x10a))/0x6)+-parseInt(_0x1f24cd(0x121))/0x7+-parseInt(_0x1f24cd(0x122))/0x8+parseInt(_0x1f24cd(0x110))/0x9;if(_0x415584===_0x25b48a)break;else _0x4b28b2['push'](_0x4b28b2['shift']());}catch(_0x50957e){_0x4b28b2['push'](_0x4b28b2['shift']());}}}(_0x1904,0xa0591));import{ListItemView as _0x183e89,View as _0x1f800f,ListView as _0x194087}from'ckeditor5/src/ui.js';function _0x1f36(_0xad6664,_0x598ca7){const _0x19042a=_0x1904();return _0x1f36=function(_0x1f36ed,_0xd71ce4){_0x1f36ed=_0x1f36ed-0x106;let _0x12648c=_0x19042a[_0x1f36ed];return _0x12648c;},_0x1f36(_0xad6664,_0x598ca7);}function _0x1904(){const _0x5907d3=['items','div','indexOf','filter','bindTemplate','31308CKEAzl','set','ck-ai-chat-history__section','ck-hidden','_itemsListView','removeItem','40813002vCRhTW','553373vJJBLE','isMatching','ck-ai-chat-history__section-title','addMany','title','highlightText','setTemplate','85KOdCAg','remove','2567590fUKaZp','getItem','1069032KffadA','length','3hwbOwC','splice','isVisible','5428052QbyHJC','8694696OnPTNQ','itemsViews','find'];_0x1904=function(){return _0x5907d3;};return _0x1904();}export class AIChatHistoryListView extends _0x183e89{[_0x4802e8(0x115)];[_0x4802e8(0x123)];[_0x4802e8(0x10e)];constructor(_0x1b9971,{title:_0x485e90,items:_0x3ee4e6}){const _0x1bf71a=_0x4802e8;super(_0x1b9971);const _0x216b54=this[_0x1bf71a(0x109)];this[_0x1bf71a(0x10b)](_0x1bf71a(0x120),!0x0),this[_0x1bf71a(0x115)]=_0x485e90,this[_0x1bf71a(0x123)]=_0x3ee4e6;const _0x1e64bf=new _0x1f800f(_0x1b9971);_0x1e64bf[_0x1bf71a(0x117)]({'tag':_0x1bf71a(0x106),'attributes':{'class':[_0x1bf71a(0x113)]},'children':[this[_0x1bf71a(0x115)]]}),this[_0x1bf71a(0x10e)]=new _0x194087(_0x1b9971),this[_0x1bf71a(0x10e)][_0x1bf71a(0x125)][_0x1bf71a(0x114)](this[_0x1bf71a(0x123)]),this[_0x1bf71a(0x117)]({'tag':'li','attributes':{'class':[_0x1bf71a(0x10c),_0x216b54['if'](_0x1bf71a(0x120),_0x1bf71a(0x10d),_0x40c83a=>!_0x40c83a)]},'children':[_0x1e64bf,this[_0x1bf71a(0x10e)]]});}[_0x4802e8(0x108)](_0x22cb8b){const _0x15659c=_0x4802e8,_0x89bcf=this[_0x15659c(0x123)][_0x15659c(0x11d)];let _0x5967a4=0x0;for(const _0x552ebe of this[_0x15659c(0x123)]){if(_0x22cb8b){const _0x442fe9=_0x552ebe[_0x15659c(0x112)](_0x22cb8b);_0x552ebe[_0x15659c(0x120)]=!!_0x442fe9,_0x552ebe[_0x15659c(0x116)](_0x22cb8b);}else _0x552ebe[_0x15659c(0x120)]=!0x0,_0x552ebe[_0x15659c(0x116)](null);_0x552ebe[_0x15659c(0x120)]&&_0x5967a4++;}return this[_0x15659c(0x120)]=_0x5967a4>0x0,{'resultsCount':_0x5967a4,'totalItemsCount':_0x89bcf};}[_0x4802e8(0x11b)](_0x27f402){const _0x52fb66=_0x4802e8;return this[_0x52fb66(0x123)][_0x52fb66(0x124)](_0xa937ab=>_0xa937ab['id']===_0x27f402);}[_0x4802e8(0x10f)](_0x3e7b5e){const _0x5278da=_0x4802e8,_0x509150=this[_0x5278da(0x123)][_0x5278da(0x107)](_0x3e7b5e);-0x1!==_0x509150&&(this[_0x5278da(0x123)][_0x5278da(0x11f)](_0x509150,0x1),this[_0x5278da(0x10e)][_0x5278da(0x125)][_0x5278da(0x119)](_0x3e7b5e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x23a6(_0x5d1a2d,_0x24b9d9){const _0x3c2f8d=_0x3c2f();return _0x23a6=function(_0x23a672,_0x39d589){_0x23a672=_0x23a672-0x17a;let _0x303383=_0x3c2f8d[_0x23a672];return _0x303383;},_0x23a6(_0x5d1a2d,_0x24b9d9);}function _0x3c2f(){const _0x331905=['4911152vwoFvU','sections','20607521PRTvEU','filter','372CaQgWv','2238886xlaCkI','6UazFos','20420hKaSlc','7pZiHSm','extendTemplate','6183WaTLFO','41688XSAlVh','1142225SAlUnp','ck-ai-chat-history__sections','items','1228765RRcHqU','addMany'];_0x3c2f=function(){return _0x331905;};return _0x3c2f();}const _0x501549=_0x23a6;(function(_0x33db73,_0x4834ac){const _0x5713ad=_0x23a6,_0x5f47e2=_0x33db73();while(!![]){try{const _0x17f0b9=-parseInt(_0x5713ad(0x17c))/0x1+parseInt(_0x5713ad(0x186))/0x2+-parseInt(_0x5713ad(0x185))/0x3*(-parseInt(_0x5713ad(0x17b))/0x4)+parseInt(_0x5713ad(0x17f))/0x5*(-parseInt(_0x5713ad(0x187))/0x6)+-parseInt(_0x5713ad(0x189))/0x7*(parseInt(_0x5713ad(0x181))/0x8)+parseInt(_0x5713ad(0x17a))/0x9*(-parseInt(_0x5713ad(0x188))/0xa)+parseInt(_0x5713ad(0x183))/0xb;if(_0x17f0b9===_0x4834ac)break;else _0x5f47e2['push'](_0x5f47e2['shift']());}catch(_0x4ea52c){_0x5f47e2['push'](_0x5f47e2['shift']());}}}(_0x3c2f,0xd6f48));import{ListView as _0x578a57}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x578a57{[_0x501549(0x182)];constructor(_0xa97afe,_0x2486a5){const _0x324943=_0x501549;super(_0xa97afe),this[_0x324943(0x182)]=_0x2486a5,this[_0x324943(0x17e)][_0x324943(0x180)](this[_0x324943(0x182)]),this[_0x324943(0x18a)]({'attributes':{'class':[_0x324943(0x17d)]}});}[_0x501549(0x184)](_0x5dcc3f){const _0x111999=_0x501549;let _0x405a18=0x0,_0x11f572=0x0;for(const _0x32f27a of this[_0x111999(0x182)]){const {resultsCount:_0xc8925b,totalItemsCount:_0x4c24c3}=_0x32f27a[_0x111999(0x184)](_0x5dcc3f);_0x405a18+=_0xc8925b,_0x11f572+=_0x4c24c3;}return{'resultsCount':_0x405a18,'totalItemsCount':_0x11f572};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x449955=_0x3790;(function(_0x3cc9fc,_0x5d6bdd){const _0x1b30ee=_0x3790,_0x26143d=_0x3cc9fc();while(!![]){try{const _0x2994cd=parseInt(_0x1b30ee(0x1b2))/0x1*(parseInt(_0x1b30ee(0x19e))/0x2)+-parseInt(_0x1b30ee(0x19c))/0x3*(-parseInt(_0x1b30ee(0x1c6))/0x4)+parseInt(_0x1b30ee(0x1b9))/0x5+parseInt(_0x1b30ee(0x1bb))/0x6*(parseInt(_0x1b30ee(0x178))/0x7)+-parseInt(_0x1b30ee(0x17f))/0x8*(parseInt(_0x1b30ee(0x184))/0x9)+-parseInt(_0x1b30ee(0x1bf))/0xa+parseInt(_0x1b30ee(0x19b))/0xb*(parseInt(_0x1b30ee(0x1a9))/0xc);if(_0x2994cd===_0x5d6bdd)break;else _0x26143d['push'](_0x26143d['shift']());}catch(_0x15b1ac){_0x26143d['push'](_0x26143d['shift']());}}}(_0x47ee,0xa50a5));function _0x3790(_0x464cf1,_0x5c5ad5){const _0x47ee88=_0x47ee();return _0x3790=function(_0x379000,_0x1856b6){_0x379000=_0x379000-0x178;let _0x1d7a19=_0x47ee88[_0x379000];return _0x1d7a19;},_0x3790(_0x464cf1,_0x5c5ad5);}import{View as _0x2b3381,SearchTextView as _0xd73dad,FormHeaderView as _0x1eaaf5,ButtonView as _0x486c4a}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x4a6f62,IconCancel as _0x3590b1,IconPlus as _0x3eba57}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2609a4}from'./aichathistorysectionlistview.js';function _0x47ee(){const _0x54d2e9=['isMaximized','fieldView','change:errorMessage','div','AI_CHAT_HISTORY_SEARCH_LABEL','4bMXEJL','ck-rounded-corners','_createSearchView','errorView','hasItems','remove','openChat','bind','ltr','updateLoadingState','search','addMany','AI_CHAT_HISTORY_EMPTY_MESSAGE','change:hasItems','isVisible','8761781JSYXiM','bindTemplate','locale','removeHistoryItem','ck-ai-chat-history__empty','add','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','288pYZekI','_createErrorView','errorMessage','itemsViews','aiHistory','278811JZCKDT','delegate','updateItemLoadingState','ck-ai-header\x20ck-ai-header_history','ck-hidden','ck-ai-chat__start-conversation','children','ck-ai-chat-error','isEmptyViewVisible','render','AI_CHAT_LABEL_NEW_CHAT','execute','value','ck-ai-chat-history','updateItemTitle','items','clear','ck-ai-chat-error__dismiss-button','fire','ck-reset_all','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','updateTitle','length','2442737IxjDtH','684837ZAEzjt','queryView','14gSvYBf','isSearchViewVisible','indexOf','set','ck-ai-chat-history__empty-message','_createListItemViews','_refreshSearch','element','updateHistoryItemsWithCategories','change:isLoading','skeletonView','24DIowEQ','_createSkeletonView','removeItem','splice','some','extendTemplate','_updateViewVisibility','ck-ai-chat-history__content','sections','122427qwbdYI','resizeButton','searchView','getItem','emptyView','_createEmptyStateView','isLoading','119550WrLRKo','setTemplate','6QMvlHF','AI_CHAT_HISTORY_HEADING','title','push','10137460YoIDSZ','sectionsView'];_0x47ee=function(){return _0x54d2e9;};return _0x47ee();}import{AIChatHistoryListView as _0x16cbcb}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x348538}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x458124}from'../aichathistoryui.js';import{AISkeletonView as _0x41e7b5,SKELETON_DEFINITIONS as _0x2ca309}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x44ff7f}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x269980}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x2b3381{[_0x449955(0x1b4)];[_0x449955(0x1c9)];[_0x449955(0x1a8)];[_0x449955(0x1b6)];[_0x449955(0x1c0)];[_0x449955(0x1b3)];constructor(_0x173123,_0x29d179){const _0x12a377=_0x449955;super(_0x173123),this[_0x12a377(0x1a1)](_0x12a377(0x1ca),!0x1),this[_0x12a377(0x1a1)](_0x12a377(0x1b8),!0x0),this[_0x12a377(0x1a1)](_0x12a377(0x181),''),this[_0x12a377(0x1a1)](_0x12a377(0x1c1),!0x1),this[_0x12a377(0x1a1)](_0x12a377(0x19f),!0x1),this[_0x12a377(0x1a1)](_0x12a377(0x18c),!0x1);const _0x5d7888=new _0x1eaaf5(_0x173123,{'label':_0x269980(_0x173123,_0x12a377(0x1bc)),'icon':_0x4a6f62,'class':_0x12a377(0x187)});_0x29d179&&(this[_0x12a377(0x1b3)]=_0x44ff7f(_0x173123,this),_0x5d7888[_0x12a377(0x18a)][_0x12a377(0x17d)](this[_0x12a377(0x1b3)])),this[_0x12a377(0x1c0)]=new _0x2609a4(_0x173123,[]),this[_0x12a377(0x1c0)][_0x12a377(0x185)](..._0x458124)['to'](this),this[_0x12a377(0x1c9)]=this[_0x12a377(0x180)](),this[_0x12a377(0x1a8)]=this[_0x12a377(0x1aa)](),this[_0x12a377(0x1b6)]=this[_0x12a377(0x1b7)](),this[_0x12a377(0x1b4)]=this[_0x12a377(0x1c8)](),this['on'](_0x12a377(0x1a7),()=>this[_0x12a377(0x1af)]()),this['on'](_0x12a377(0x1d3),()=>this[_0x12a377(0x1af)]()),this['on'](_0x12a377(0x1c3),()=>this[_0x12a377(0x1af)]()),this[_0x12a377(0x1ba)]({'tag':_0x12a377(0x1c4),'attributes':{'class':['ck',_0x12a377(0x197),_0x12a377(0x191),_0x12a377(0x1c7)],'dir':_0x12a377(0x1ce)},'children':[_0x5d7888,{'tag':_0x12a377(0x1c4),'attributes':{'class':[_0x12a377(0x1b0)]},'children':[this[_0x12a377(0x1a8)],this[_0x12a377(0x1c9)],this[_0x12a377(0x1b6)],this[_0x12a377(0x1b4)]]}]});}[_0x449955(0x1af)](){const _0x25decc=_0x449955;this[_0x25decc(0x19f)]=!this[_0x25decc(0x1b8)]&&this[_0x25decc(0x1ca)]&&!this[_0x25decc(0x181)],this[_0x25decc(0x18c)]=!this[_0x25decc(0x1b8)]&&!this[_0x25decc(0x1ca)]&&!this[_0x25decc(0x181)];}[_0x449955(0x1c8)](){const _0x478069=_0x449955,_0x2538c3=new _0xd73dad(this[_0x478069(0x17a)],{'filteredView':this[_0x478069(0x1c0)],'queryView':{'label':_0x269980(this[_0x478069(0x17a)],_0x478069(0x1c5))},'infoView':{'text':{'notFound':{'primary':_0x35075f=>_0x269980(this[_0x478069(0x17a)],_0x478069(0x17e),_0x35075f),'secondary':_0x269980(this[_0x478069(0x17a)],_0x478069(0x198))}}}});return _0x2538c3['on'](_0x478069(0x18d),()=>{const _0x53c016=_0x478069;this[_0x53c016(0x1b4)][_0x53c016(0x18a)][_0x53c016(0x17d)](this[_0x53c016(0x1c9)],0x1);}),_0x2538c3[_0x478069(0x1ae)]({'attributes':{'class':[this[_0x478069(0x179)]['if'](_0x478069(0x19f),_0x478069(0x188),_0x84a322=>!_0x84a322)]}}),_0x2538c3;}[_0x449955(0x1aa)](){const _0x18da1d=_0x449955,_0x189526=new _0x41e7b5(this[_0x18da1d(0x17a)],_0x2ca309[_0x18da1d(0x183)]);return _0x189526[_0x18da1d(0x1ae)]({'attributes':{'class':[this[_0x18da1d(0x179)]['if'](_0x18da1d(0x1b8),_0x18da1d(0x188),_0x337480=>!_0x337480)]}}),_0x189526;}[_0x449955(0x180)](){const _0x1fc9f5=_0x449955,_0x1891b4=new _0x2b3381(this[_0x1fc9f5(0x17a)]),_0x24e396=new _0x486c4a(this[_0x1fc9f5(0x17a)]);return _0x24e396[_0x1fc9f5(0x1a1)]({'withText':!0x1,'icon':_0x3590b1,'class':_0x1fc9f5(0x195)}),_0x24e396[_0x1fc9f5(0x1cd)](_0x1fc9f5(0x1d4))['to'](this,_0x1fc9f5(0x1ca),_0x6c361e=>!!_0x6c361e),_0x24e396['on'](_0x1fc9f5(0x18f),()=>{const _0x4c9f55=_0x1fc9f5;this[_0x4c9f55(0x181)]='';}),_0x1891b4[_0x1fc9f5(0x1ba)]({'tag':_0x1fc9f5(0x1c4),'attributes':{'class':['ck',_0x1fc9f5(0x18b),this[_0x1fc9f5(0x179)]['if'](_0x1fc9f5(0x181),_0x1fc9f5(0x188),_0x1d9cf5=>!_0x1d9cf5)]},'children':[{'tag':'p','children':[{'text':this[_0x1fc9f5(0x179)]['to'](_0x1fc9f5(0x181))}]},_0x24e396]}),_0x1891b4;}[_0x449955(0x1b7)](){const _0x56d7b6=_0x449955,_0x152594=new _0x486c4a(this[_0x56d7b6(0x17a)]);_0x152594[_0x56d7b6(0x1a1)]({'label':_0x269980(this[_0x56d7b6(0x17a)],_0x56d7b6(0x18e)),'withText':!0x0,'icon':_0x3eba57,'class':_0x56d7b6(0x189)}),_0x152594['on'](_0x56d7b6(0x18f),()=>{const _0x4c6ac2=_0x56d7b6;this[_0x4c6ac2(0x196)](_0x4c6ac2(0x1cc));});const _0x579ef7=new _0x2b3381(this[_0x56d7b6(0x17a)]);return _0x579ef7[_0x56d7b6(0x1ba)]({'tag':_0x56d7b6(0x1c4),'attributes':{'class':[_0x56d7b6(0x17c),this[_0x56d7b6(0x179)]['if'](_0x56d7b6(0x18c),_0x56d7b6(0x188),_0x8ffa0c=>!_0x8ffa0c)]},'children':[{'tag':'p','attributes':{'class':[_0x56d7b6(0x1a2)]},'children':[_0x269980(this[_0x56d7b6(0x17a)],_0x56d7b6(0x1d2))]},_0x152594]}),_0x579ef7;}[_0x449955(0x1a3)](_0x565010,_0x1f7012){const _0x96a1f1=_0x449955,_0x346bbd=[];for(const _0xb7df26 of _0x565010){const _0x5ca329=new _0x348538(_0x1f7012,_0xb7df26);_0x5ca329[_0x96a1f1(0x185)](..._0x458124)['to'](this),_0x346bbd[_0x96a1f1(0x1be)](_0x5ca329);}return _0x346bbd;}[_0x449955(0x1a6)](_0xf62f3c){const _0x4f65a7=_0x449955,_0x107ef4=this[_0x4f65a7(0x17a)]||'en',_0x497027=[];for(const _0x13a738 of _0xf62f3c){const _0x4b1fd1=this[_0x4f65a7(0x1a3)](_0x13a738[_0x4f65a7(0x193)],_0x107ef4);_0x497027[_0x4f65a7(0x1be)](new _0x16cbcb(_0x107ef4,{'title':_0x13a738[_0x4f65a7(0x1bd)],'items':_0x4b1fd1}));}this[_0x4f65a7(0x1c0)][_0x4f65a7(0x1b1)]=_0x497027,this[_0x4f65a7(0x1c0)][_0x4f65a7(0x193)][_0x4f65a7(0x194)](),this[_0x4f65a7(0x1c0)][_0x4f65a7(0x193)][_0x4f65a7(0x1d1)](_0x497027),this[_0x4f65a7(0x1ca)]=_0xf62f3c[_0x4f65a7(0x1ad)](_0x1a2390=>_0x1a2390[_0x4f65a7(0x193)][_0x4f65a7(0x19a)]>0x0),this[_0x4f65a7(0x1a4)]();}[_0x449955(0x17b)](_0x29e9d2){const _0x4747fb=_0x449955;for(const _0x375993 of this[_0x4747fb(0x1c0)][_0x4747fb(0x1b1)]){const _0x5b2576=_0x375993[_0x4747fb(0x1b5)](_0x29e9d2);if(_0x5b2576){if(_0x375993[_0x4747fb(0x1ab)](_0x5b2576),0x0===_0x375993[_0x4747fb(0x182)][_0x4747fb(0x19a)]){const _0x53ab7c=this[_0x4747fb(0x1c0)][_0x4747fb(0x1b1)][_0x4747fb(0x1a0)](_0x375993);-0x1!==_0x53ab7c&&(this[_0x4747fb(0x1c0)][_0x4747fb(0x1b1)][_0x4747fb(0x1ac)](_0x53ab7c,0x1),this[_0x4747fb(0x1c0)][_0x4747fb(0x193)][_0x4747fb(0x1cb)](_0x375993));}this[_0x4747fb(0x1ca)]=this[_0x4747fb(0x1c0)][_0x4747fb(0x1b1)][_0x4747fb(0x19a)]>0x0,this[_0x4747fb(0x1a4)]();break;}}}[_0x449955(0x192)](_0x33ad6d,_0x10c454){const _0x48e591=_0x449955;for(const _0x3a306b of this[_0x48e591(0x1c0)][_0x48e591(0x1b1)]){const _0x3fd4b1=_0x3a306b[_0x48e591(0x1b5)](_0x33ad6d);if(_0x3fd4b1){_0x3fd4b1[_0x48e591(0x199)](_0x10c454);break;}}}[_0x449955(0x186)](_0x9b8ade,_0x2bb20f,_0x35473e){const _0x21481e=_0x449955;for(const _0x11d278 of this[_0x21481e(0x1c0)][_0x21481e(0x1b1)]){const _0x545f8d=_0x11d278[_0x21481e(0x1b5)](_0x9b8ade);if(_0x545f8d){_0x545f8d[_0x21481e(0x1cf)](_0x2bb20f,_0x35473e);break;}}}[_0x449955(0x1a4)](){const _0x5f4c7c=_0x449955;if(this[_0x5f4c7c(0x1ca)]){const _0x2a60e4=this[_0x5f4c7c(0x1b4)][_0x5f4c7c(0x19d)][_0x5f4c7c(0x1c2)]?.[_0x5f4c7c(0x1a5)]?.[_0x5f4c7c(0x190)]||'';this[_0x5f4c7c(0x1b4)][_0x5f4c7c(0x1d0)](_0x2a60e4);}}}
|
|
23
|
+
const _0x167ff5=_0x51a2;(function(_0x1fbbed,_0x51a5d5){const _0x17c7c8=_0x51a2,_0x40542f=_0x1fbbed();while(!![]){try{const _0x301531=parseInt(_0x17c7c8(0xb1))/0x1+parseInt(_0x17c7c8(0xdc))/0x2*(-parseInt(_0x17c7c8(0xdd))/0x3)+-parseInt(_0x17c7c8(0xdf))/0x4+-parseInt(_0x17c7c8(0xb7))/0x5+-parseInt(_0x17c7c8(0xf7))/0x6*(parseInt(_0x17c7c8(0xd2))/0x7)+-parseInt(_0x17c7c8(0xfb))/0x8*(parseInt(_0x17c7c8(0x103))/0x9)+parseInt(_0x17c7c8(0xe1))/0xa;if(_0x301531===_0x51a5d5)break;else _0x40542f['push'](_0x40542f['shift']());}catch(_0x530f7b){_0x40542f['push'](_0x40542f['shift']());}}}(_0x2318,0xa419d));import{View as _0x1099bb,SearchTextView as _0x23c41f,FormHeaderView as _0x1f3c1f,ButtonView as _0x3ac8ef}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3dd3cf,IconCancel as _0x1d96e0,IconPlus as _0x2dc29c}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x56bb0f}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xf79993}from'./aichathistorylistview.js';function _0x51a2(_0x21b49d,_0x4b50d5){const _0x2318a7=_0x2318();return _0x51a2=function(_0x51a2aa,_0x36a32f){_0x51a2aa=_0x51a2aa-0xab;let _0x24c25a=_0x2318a7[_0x51a2aa];return _0x24c25a;},_0x51a2(_0x21b49d,_0x4b50d5);}import{AIChatHistoryListItemView as _0x2ca93f}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x1d84d8}from'../aichathistoryui.js';import{AISkeletonView as _0x3e5bb1,SKELETON_DEFINITIONS as _0xb95883}from'../../aicore/ui/aiskeleton.js';function _0x2318(){const _0x383ab8=['addMany','removeItem','updateItemLoadingState','2360505TwVlAh','extendTemplate','ck-ai-chat-history__content','updateLoadingState','ck-hidden','title','set','setTemplate','updateItemTitle','isLoading','384068qLAjNP','15weyuLj','_refreshSearch','4675740dMqjLl','_createSkeletonView','43758850BwEKHq','sections','isVisible','ck-ai-chat-history__empty-message','ck-ai-chat__start-conversation','isSearchViewVisible','removeHistoryItem','execute','render','_createEmptyStateView','ck-ai-chat-history__empty','change:isLoading','some','ck-ai-chat-error','aiHistory','AI_CHAT_HISTORY_HEADING','updateTitle','resizeButton','openChat','ck-reset_all','splice','AI_CHAT_HISTORY_EMPTY_MESSAGE','18XTqLwl','_createErrorView','ck-rounded-corners','sectionsView','8uCkmjZ','searchView','bindTemplate','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','element','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','value','isMaximized','4780557dugKea','children','getItem','change:hasItems','delegate','ck-ai-chat-history','errorView','ltr','clear','1150558BDpPOE','ck-ai-chat-error__dismiss-button','AI_CHAT_HISTORY_SEARCH_LABEL','itemsViews','div','add','5911815LyViIl','errorMessage','change:errorMessage','items','_createSearchView','push','queryView','locale','fire','AI_CHAT_LABEL_NEW_CHAT','emptyView','updateHistoryItemsWithCategories','ck-ai-header\x20ck-ai-header_history','bind','_createListItemViews','search','hasItems','isEmptyViewVisible','_updateViewVisibility','skeletonView','fieldView','remove','length','indexOf'];_0x2318=function(){return _0x383ab8;};return _0x2318();}import{createResizeButton as _0x1a1299}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x58e0e9}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x1099bb{[_0x167ff5(0xfc)];[_0x167ff5(0xae)];[_0x167ff5(0xca)];[_0x167ff5(0xc1)];[_0x167ff5(0xfa)];[_0x167ff5(0xf2)];constructor(_0x4267d6,_0x18153b){const _0xc5301b=_0x167ff5;super(_0x4267d6),this[_0xc5301b(0xd8)](_0xc5301b(0xc7),!0x1),this[_0xc5301b(0xd8)](_0xc5301b(0xdb),!0x0),this[_0xc5301b(0xd8)](_0xc5301b(0xb8),''),this[_0xc5301b(0xd8)](_0xc5301b(0x102),!0x1),this[_0xc5301b(0xd8)](_0xc5301b(0xe6),!0x1),this[_0xc5301b(0xd8)](_0xc5301b(0xc8),!0x1);const _0x43756d=new _0x1f3c1f(_0x4267d6,{'label':_0x58e0e9(_0x4267d6,_0xc5301b(0xf0)),'icon':_0x3dd3cf,'class':_0xc5301b(0xc3)});_0x18153b&&(this[_0xc5301b(0xf2)]=_0x1a1299(_0x4267d6,this),_0x43756d[_0xc5301b(0x104)][_0xc5301b(0xb6)](this[_0xc5301b(0xf2)])),this[_0xc5301b(0xfa)]=new _0x56bb0f(_0x4267d6,[]),this[_0xc5301b(0xfa)][_0xc5301b(0xac)](..._0x1d84d8)['to'](this),this[_0xc5301b(0xae)]=this[_0xc5301b(0xf8)](),this[_0xc5301b(0xca)]=this[_0xc5301b(0xe0)](),this[_0xc5301b(0xc1)]=this[_0xc5301b(0xea)](),this[_0xc5301b(0xfc)]=this[_0xc5301b(0xbb)](),this['on'](_0xc5301b(0xec),()=>this[_0xc5301b(0xc9)]()),this['on'](_0xc5301b(0xab),()=>this[_0xc5301b(0xc9)]()),this['on'](_0xc5301b(0xb9),()=>this[_0xc5301b(0xc9)]()),this[_0xc5301b(0xd9)]({'tag':_0xc5301b(0xb5),'attributes':{'class':['ck',_0xc5301b(0xf4),_0xc5301b(0xad),_0xc5301b(0xf9)],'dir':_0xc5301b(0xaf)},'children':[_0x43756d,{'tag':_0xc5301b(0xb5),'attributes':{'class':[_0xc5301b(0xd4)]},'children':[this[_0xc5301b(0xca)],this[_0xc5301b(0xae)],this[_0xc5301b(0xc1)],this[_0xc5301b(0xfc)]]}]});}[_0x167ff5(0xc9)](){const _0x2f2678=_0x167ff5;this[_0x2f2678(0xe6)]=!this[_0x2f2678(0xdb)]&&this[_0x2f2678(0xc7)]&&!this[_0x2f2678(0xb8)],this[_0x2f2678(0xc8)]=!this[_0x2f2678(0xdb)]&&!this[_0x2f2678(0xc7)]&&!this[_0x2f2678(0xb8)];}[_0x167ff5(0xbb)](){const _0x4d42c4=_0x167ff5,_0x549d9b=new _0x23c41f(this[_0x4d42c4(0xbe)],{'filteredView':this[_0x4d42c4(0xfa)],'queryView':{'label':_0x58e0e9(this[_0x4d42c4(0xbe)],_0x4d42c4(0xb3))},'infoView':{'text':{'notFound':{'primary':_0x503065=>_0x58e0e9(this[_0x4d42c4(0xbe)],_0x4d42c4(0x100),_0x503065),'secondary':_0x58e0e9(this[_0x4d42c4(0xbe)],_0x4d42c4(0xfe))}}}});return _0x549d9b['on'](_0x4d42c4(0xe9),()=>{const _0x5da6cc=_0x4d42c4;this[_0x5da6cc(0xfc)][_0x5da6cc(0x104)][_0x5da6cc(0xb6)](this[_0x5da6cc(0xae)],0x1);}),_0x549d9b[_0x4d42c4(0xd3)]({'attributes':{'class':[this[_0x4d42c4(0xfd)]['if'](_0x4d42c4(0xe6),_0x4d42c4(0xd6),_0x3ef845=>!_0x3ef845)]}}),_0x549d9b;}[_0x167ff5(0xe0)](){const _0x1a94cb=_0x167ff5,_0x3c3a46=new _0x3e5bb1(this[_0x1a94cb(0xbe)],_0xb95883[_0x1a94cb(0xef)]);return _0x3c3a46[_0x1a94cb(0xd3)]({'attributes':{'class':[this[_0x1a94cb(0xfd)]['if'](_0x1a94cb(0xdb),_0x1a94cb(0xd6),_0x34a3b3=>!_0x34a3b3)]}}),_0x3c3a46;}[_0x167ff5(0xf8)](){const _0x239dd2=_0x167ff5,_0x551078=new _0x1099bb(this[_0x239dd2(0xbe)]),_0x109e6b=new _0x3ac8ef(this[_0x239dd2(0xbe)]);return _0x109e6b[_0x239dd2(0xd8)]({'withText':!0x1,'icon':_0x1d96e0,'class':_0x239dd2(0xb2)}),_0x109e6b[_0x239dd2(0xc4)](_0x239dd2(0xe3))['to'](this,_0x239dd2(0xc7),_0x282355=>!!_0x282355),_0x109e6b['on'](_0x239dd2(0xe8),()=>{const _0x8efcc3=_0x239dd2;this[_0x8efcc3(0xb8)]='';}),_0x551078[_0x239dd2(0xd9)]({'tag':_0x239dd2(0xb5),'attributes':{'class':['ck',_0x239dd2(0xee),this[_0x239dd2(0xfd)]['if'](_0x239dd2(0xb8),_0x239dd2(0xd6),_0x56e45b=>!_0x56e45b)]},'children':[{'tag':'p','children':[{'text':this[_0x239dd2(0xfd)]['to'](_0x239dd2(0xb8))}]},_0x109e6b]}),_0x551078;}[_0x167ff5(0xea)](){const _0x6827be=_0x167ff5,_0x58dfee=new _0x3ac8ef(this[_0x6827be(0xbe)]);_0x58dfee[_0x6827be(0xd8)]({'label':_0x58e0e9(this[_0x6827be(0xbe)],_0x6827be(0xc0)),'withText':!0x0,'icon':_0x2dc29c,'class':_0x6827be(0xe5)}),_0x58dfee['on'](_0x6827be(0xe8),()=>{const _0x2d715e=_0x6827be;this[_0x2d715e(0xbf)](_0x2d715e(0xf3));});const _0x4e2351=new _0x1099bb(this[_0x6827be(0xbe)]);return _0x4e2351[_0x6827be(0xd9)]({'tag':_0x6827be(0xb5),'attributes':{'class':[_0x6827be(0xeb),this[_0x6827be(0xfd)]['if'](_0x6827be(0xc8),_0x6827be(0xd6),_0x3d0ecb=>!_0x3d0ecb)]},'children':[{'tag':'p','attributes':{'class':[_0x6827be(0xe4)]},'children':[_0x58e0e9(this[_0x6827be(0xbe)],_0x6827be(0xf6))]},_0x58dfee]}),_0x4e2351;}[_0x167ff5(0xc5)](_0x550c95,_0x14d8f3){const _0x6df5a4=_0x167ff5,_0x256c7f=[];for(const _0x11319e of _0x550c95){const _0x371026=new _0x2ca93f(_0x14d8f3,_0x11319e);_0x371026[_0x6df5a4(0xac)](..._0x1d84d8)['to'](this),_0x256c7f[_0x6df5a4(0xbc)](_0x371026);}return _0x256c7f;}[_0x167ff5(0xc2)](_0x17a7cd){const _0x2831b8=_0x167ff5,_0x310251=this[_0x2831b8(0xbe)]||'en',_0xf4524=[];for(const _0x34502d of _0x17a7cd){const _0xa2d9a2=this[_0x2831b8(0xc5)](_0x34502d[_0x2831b8(0xba)],_0x310251);_0xf4524[_0x2831b8(0xbc)](new _0xf79993(_0x310251,{'title':_0x34502d[_0x2831b8(0xd7)],'items':_0xa2d9a2}));}this[_0x2831b8(0xfa)][_0x2831b8(0xe2)]=_0xf4524,this[_0x2831b8(0xfa)][_0x2831b8(0xba)][_0x2831b8(0xb0)](),this[_0x2831b8(0xfa)][_0x2831b8(0xba)][_0x2831b8(0xcf)](_0xf4524),this[_0x2831b8(0xc7)]=_0x17a7cd[_0x2831b8(0xed)](_0x30d3f9=>_0x30d3f9[_0x2831b8(0xba)][_0x2831b8(0xcd)]>0x0),this[_0x2831b8(0xde)]();}[_0x167ff5(0xe7)](_0x367305){const _0x3b0b14=_0x167ff5;for(const _0x427203 of this[_0x3b0b14(0xfa)][_0x3b0b14(0xe2)]){const _0x189ca9=_0x427203[_0x3b0b14(0x105)](_0x367305);if(_0x189ca9){if(_0x427203[_0x3b0b14(0xd0)](_0x189ca9),0x0===_0x427203[_0x3b0b14(0xb4)][_0x3b0b14(0xcd)]){const _0x49489e=this[_0x3b0b14(0xfa)][_0x3b0b14(0xe2)][_0x3b0b14(0xce)](_0x427203);-0x1!==_0x49489e&&(this[_0x3b0b14(0xfa)][_0x3b0b14(0xe2)][_0x3b0b14(0xf5)](_0x49489e,0x1),this[_0x3b0b14(0xfa)][_0x3b0b14(0xba)][_0x3b0b14(0xcc)](_0x427203));}this[_0x3b0b14(0xc7)]=this[_0x3b0b14(0xfa)][_0x3b0b14(0xe2)][_0x3b0b14(0xcd)]>0x0,this[_0x3b0b14(0xde)]();break;}}}[_0x167ff5(0xda)](_0x337300,_0x4b9110){const _0x27a157=_0x167ff5;for(const _0x2f0d3f of this[_0x27a157(0xfa)][_0x27a157(0xe2)]){const _0x47b82a=_0x2f0d3f[_0x27a157(0x105)](_0x337300);if(_0x47b82a){_0x47b82a[_0x27a157(0xf1)](_0x4b9110);break;}}}[_0x167ff5(0xd1)](_0x15f9e3,_0x5dc607,_0xc76bc3){const _0x123b19=_0x167ff5;for(const _0x58e8f4 of this[_0x123b19(0xfa)][_0x123b19(0xe2)]){const _0x322802=_0x58e8f4[_0x123b19(0x105)](_0x15f9e3);if(_0x322802){_0x322802[_0x123b19(0xd5)](_0x5dc607,_0xc76bc3);break;}}}[_0x167ff5(0xde)](){const _0x181e8e=_0x167ff5;if(this[_0x181e8e(0xc7)]){const _0x3fea9e=this[_0x181e8e(0xfc)][_0x181e8e(0xbd)][_0x181e8e(0xcb)]?.[_0x181e8e(0xff)]?.[_0x181e8e(0x101)]||'';this[_0x181e8e(0xfc)][_0x181e8e(0xc6)](_0x3fea9e);}}}
|
package/src/aiconfig.d.ts
CHANGED
|
@@ -94,6 +94,10 @@ export interface AIContainerBase {
|
|
|
94
94
|
* Defaults to `true`.
|
|
95
95
|
*/
|
|
96
96
|
showResizeButton?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Whether the AI interface should be visible when the editor is created.
|
|
99
|
+
*/
|
|
100
|
+
visibleByDefault?: boolean;
|
|
97
101
|
}
|
|
98
102
|
/**
|
|
99
103
|
* The configuration of the AI user interface container in the sidebar mode. Provide an existing DOM
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xba94ff=_0x4457;(function(_0xfef303,_0x4772e9){const _0x8a3b62=_0x4457,_0x5b7a54=_0xfef303();while(!![]){try{const _0x1bcfc1=-parseInt(_0x8a3b62(0x1df))/0x1+parseInt(_0x8a3b62(0x1a2))/0x2*(parseInt(_0x8a3b62(0x1b8))/0x3)+parseInt(_0x8a3b62(0x1c6))/0x4+parseInt(_0x8a3b62(0x18f))/0x5+-parseInt(_0x8a3b62(0x195))/0x6*(parseInt(_0x8a3b62(0x1c9))/0x7)+-parseInt(_0x8a3b62(0x1cc))/0x8+-parseInt(_0x8a3b62(0x1fc))/0x9*(-parseInt(_0x8a3b62(0x207))/0xa);if(_0x1bcfc1===_0x4772e9)break;else _0x5b7a54['push'](_0x5b7a54['shift']());}catch(_0x899e74){_0x5b7a54['push'](_0x5b7a54['shift']());}}}(_0x265c,0x91015));import{createParser as _0x38d6dd}from'eventsource-parser';import{ContextPlugin as _0x24dfbe}from'ckeditor5/src/core.js';function _0x265c(){const _0xab621d=['MAKE_LONGER','DELETE','4345000HymUTV','decode','locale','signal','upsertAIActionRating','FIX_GRAMMAR','queryAssistant','executeCustomAction','ai-request-aborted','/reviews/custom/calls/','startConversation','plugins','AIConnector','make-longer','deleteDocument','/messages','catch','upsertAIReviewRating','token','105958SEqlUd','make-tone-formal','length','AbortError','/models/1','get','init','body','feed','Bearer\x20','_token','MAKE_TONE_CASUAL','callCustomReview','parse','uploadDocument','fix-grammar','updateConversation','Content-Type','status','excludeEmpty','fetchDocument','deleteWebResource','upsertAIChatRating','uploadFile','ai-request-failed','/ratings','totalCount','CloudServices','/reviews/system/','15426XQjjEm','IMPROVE_WRITING','_sendApiRequest','/actions/custom/calls','name','upsertCustomAIReviewRating','/conversations?','ai-missing-token','ai.serviceUrl','100','continue','470RMJPBC','keys','/calls/','map','reset','read','attributes','/files/','isPremiumPlugin','isOfficialPlugin','positiveCount','json','CONTINUE','append','getReader','items','abortController','true','application/json','value','search','MAKE_SHORTER','uploadUrl','config','/conversations/','315000UtpQQX','pluginName','make-shorter','GET','toString','fetchConversations','294FNpajc','/documents','executeAction','statusText','_apiUrl','https://ai.cke-cs.com/v1','toUpperCase','/calls','text','/reviews/custom/calls','request','_getStreamReader','make-tone-casual','80QcqAzk','/web-resources/','deleteConversation','requires','fetchConversation','translate','_decoder','/actions/custom/calls/','file','callSystemReview','data','then','/conversations','PATCH','fetchConversationMessages','context','group','releaseLock','/web-resources','PUT','MAKE_TONE_FORMAL','improve-writing','69492bWjYCa','/files','upsertCustomAIActionRating','_handleError','/messages/','getModels','stringify','/documents/','define','TRANSLATE','/actions/system/','POST','deleteFile','limit','2913088rcfgMP','AI_MODEL_DESCRIPTION_','push','79338nOCgfD'];_0x265c=function(){return _0xab621d;};return _0x265c();}import{CKEditorError as _0x5cadba}from'ckeditor5/src/utils.js';import{getTranslation as _0x1055dc}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x46a89b){const _0xe673d8=_0x4457;_0x46a89b[_0xe673d8(0x213)]=_0xe673d8(0x206),_0x46a89b[_0xe673d8(0x1d1)]=_0xe673d8(0x1ee),_0x46a89b[_0xe673d8(0x1fd)]=_0xe673d8(0x1b7),_0x46a89b[_0xe673d8(0x1ca)]=_0xe673d8(0x1d9),_0x46a89b[_0xe673d8(0x18b)]=_0xe673d8(0x191),_0x46a89b[_0xe673d8(0x1ea)]=_0xe673d8(0x1a1),_0x46a89b[_0xe673d8(0x1b6)]=_0xe673d8(0x1e0),_0x46a89b[_0xe673d8(0x1c1)]=_0xe673d8(0x1a7);}(AIActionsNames||(AIActionsNames={}));function _0x4457(_0x872983,_0x2aff31){const _0x265c68=_0x265c();return _0x4457=function(_0x44572b,_0x4eb909){_0x44572b=_0x44572b-0x183;let _0x15d15b=_0x265c68[_0x44572b];return _0x15d15b;},_0x4457(_0x872983,_0x2aff31);}export class AIConnector extends _0x24dfbe{[_0xba94ff(0x199)];[_0xba94ff(0x1e9)];[_0xba94ff(0x1a8)];static get[_0xba94ff(0x1a5)](){const _0x3fb8e5=_0xba94ff;return[_0x3fb8e5(0x1fa)];}static get[_0xba94ff(0x190)](){const _0x45e63b=_0xba94ff;return _0x45e63b(0x1d8);}static get[_0xba94ff(0x210)](){return!0x0;}static get[_0xba94ff(0x20f)](){return!0x0;}constructor(_0x34b4ea){const _0x51c0b3=_0xba94ff;super(_0x34b4ea),this[_0x51c0b3(0x1b1)][_0x51c0b3(0x18d)][_0x51c0b3(0x1c0)](_0x51c0b3(0x204),_0x51c0b3(0x19a)),this[_0x51c0b3(0x199)]=this[_0x51c0b3(0x1b1)][_0x51c0b3(0x18d)][_0x51c0b3(0x1e4)](_0x51c0b3(0x204)),this[_0x51c0b3(0x1e9)]=null,this[_0x51c0b3(0x1a8)]=new TextDecoder();}[_0xba94ff(0x1e5)](){const _0x2b89a9=_0xba94ff,_0x47d221=this[_0x2b89a9(0x1b1)][_0x2b89a9(0x1d7)][_0x2b89a9(0x1e4)](_0x2b89a9(0x1fa));if(!_0x47d221[_0x2b89a9(0x1de)])throw new _0x5cadba(_0x2b89a9(0x203),this);this[_0x2b89a9(0x1e9)]=_0x47d221[_0x2b89a9(0x1de)];}[_0xba94ff(0x1d6)](_0x48190d,_0x1b6f43){const _0x288917=_0xba94ff,_0xca954f=this[_0x288917(0x1fe)](_0x288917(0x1ae),_0x288917(0x1c3),{'id':_0x48190d,'group':_0x1b6f43});return{'getConversation':async()=>(await _0xca954f[_0x288917(0x19f)])[_0x288917(0x212)](),'abortController':_0xca954f[_0x288917(0x186)]};}[_0xba94ff(0x1d2)]({message:_0x58e6d0,conversationId:_0x3bca46,parts:_0x76cb9c,capabilities:_0xe0051c,model:_0x343614,quickActionData:_0x4de05d}){const _0x18039a=_0xba94ff,_0xb0766f={..._0x4de05d&&{'quickActionData':_0x4de05d}},_0xb8c563={'prompt':_0x58e6d0,'content':_0x76cb9c,'model':_0x343614,..._0xe0051c&&{'capabilities':_0xe0051c},...Object[_0x18039a(0x208)](_0xb0766f)[_0x18039a(0x1e1)]>0x0&&{'attributes':_0xb0766f}},_0x37a622=this[_0x18039a(0x1fe)](_0x18039a(0x18e)+_0x3bca46+_0x18039a(0x1db),_0x18039a(0x1c3),_0xb8c563);return{'getStream':async()=>{const _0x4b70b7=_0x18039a,_0x210763=(await _0x37a622[_0x4b70b7(0x19f)])[_0x4b70b7(0x1e6)];return this[_0x4b70b7(0x1a0)](_0x210763);},'abortController':_0x37a622[_0x18039a(0x186)]};}[_0xba94ff(0x1d3)]({content:_0x307776,message:_0x608bda,model:_0x5a8cdb,outputFormat:_0x1b2ba4}){const _0x33090a=_0xba94ff,_0x507279={'content':[{'type':_0x33090a(0x19d),'content':_0x307776}],'prompt':_0x608bda,'model':_0x5a8cdb,'outputFormat':_0x1b2ba4},_0xd523e2=this[_0x33090a(0x1fe)](_0x33090a(0x1ff),_0x33090a(0x1c3),_0x507279);return{'getStream':async()=>{const _0x326c26=_0x33090a,_0x3734a6=(await _0xd523e2[_0x326c26(0x19f)])[_0x326c26(0x1e6)];return this[_0x326c26(0x1a0)](_0x3734a6);},'abortController':_0xd523e2[_0x33090a(0x186)]};}[_0xba94ff(0x197)]({actionName:_0x522706,content:_0x5bc2ea,args:_0x237ec9}){const _0x49a2a6=_0xba94ff,_0x1302cd={'content':[{'type':_0x49a2a6(0x19d),'content':_0x5bc2ea}],'args':_0x237ec9},_0x5da372=this[_0x49a2a6(0x1fe)](_0x49a2a6(0x1c2)+_0x522706+_0x49a2a6(0x19c),_0x49a2a6(0x1c3),_0x1302cd);return{'getStream':async()=>{const _0x40218=_0x49a2a6,_0x10a65a=(await _0x5da372[_0x40218(0x19f)])[_0x40218(0x1e6)];return this[_0x40218(0x1a0)](_0x10a65a);},'abortController':_0x5da372[_0x49a2a6(0x186)]};}[_0xba94ff(0x1f6)](_0x130340,_0x4e793b,_0x103f93){const _0x4c3fc9=_0xba94ff,_0x4b859c=new FormData();_0x4b859c[_0x4c3fc9(0x183)](_0x4c3fc9(0x1aa),_0x4e793b,_0x4e793b[_0x4c3fc9(0x200)]),_0x103f93&&_0x4b859c[_0x4c3fc9(0x183)](_0x4c3fc9(0x20d),JSON[_0x4c3fc9(0x1be)](_0x103f93));const _0x38da46=this[_0x4c3fc9(0x1fe)](_0x4c3fc9(0x18e)+_0x130340+_0x4c3fc9(0x1b9),_0x4c3fc9(0x1c3),_0x4b859c);return{'getId':async()=>(await _0x38da46[_0x4c3fc9(0x19f)])[_0x4c3fc9(0x212)](),'abortController':_0x38da46[_0x4c3fc9(0x186)]};}[_0xba94ff(0x1f3)](_0xb5944c,_0x367085){const _0x2aeca5=_0xba94ff,_0x2189da=this[_0x2aeca5(0x1fe)](_0x2aeca5(0x18e)+_0xb5944c+_0x2aeca5(0x1bf)+_0x367085,_0x2aeca5(0x192));return{'getDocument':async()=>(await _0x2189da[_0x2aeca5(0x19f)])[_0x2aeca5(0x212)](),'abortController':_0x2189da[_0x2aeca5(0x186)]};}[_0xba94ff(0x1ed)](_0x541277,_0x42d65a,_0x472a02){const _0x126e40=_0xba94ff,_0x501706={'content':_0x42d65a};_0x472a02&&(_0x501706[_0x126e40(0x20d)]=_0x472a02);const _0x465b6c=this[_0x126e40(0x1fe)](_0x126e40(0x18e)+_0x541277+_0x126e40(0x196),_0x126e40(0x1c3),_0x501706);return{'getId':async()=>(await _0x465b6c[_0x126e40(0x19f)])[_0x126e40(0x212)](),'abortController':_0x465b6c[_0x126e40(0x186)]};}[_0xba94ff(0x194)](_0x297889,_0x4e6d87){const _0x2202d3=_0xba94ff,_0x13662b=new URLSearchParams();_0x13662b[_0x2202d3(0x183)](_0x2202d3(0x1f2),_0x2202d3(0x187)),_0x13662b[_0x2202d3(0x183)](_0x2202d3(0x1c5),_0x2202d3(0x205)),_0x13662b[_0x2202d3(0x183)](_0x2202d3(0x1b2),_0x297889),_0x4e6d87&&_0x13662b[_0x2202d3(0x183)](_0x2202d3(0x18a),_0x4e6d87);const _0x452d6c=this[_0x2202d3(0x1fe)](_0x2202d3(0x202)+_0x13662b[_0x2202d3(0x193)](),_0x2202d3(0x192));return{'getConversations':async()=>{const _0x241d4d=_0x2202d3,_0x532f38=await _0x452d6c[_0x241d4d(0x19f)];return(await _0x532f38[_0x241d4d(0x212)]())[_0x241d4d(0x185)];},'abortController':_0x452d6c[_0x2202d3(0x186)]};}[_0xba94ff(0x1a4)](_0x5155d2){const _0x587ad6=_0xba94ff,_0x320bed=this[_0x587ad6(0x1fe)](_0x587ad6(0x18e)+_0x5155d2,_0x587ad6(0x1cb));return{'execute':async()=>{const _0x5b1d22=_0x587ad6;await _0x320bed[_0x5b1d22(0x19f)];},'abortController':_0x320bed[_0x587ad6(0x186)]};}[_0xba94ff(0x1ef)](_0x320326,_0x31b932){const _0x511aac=_0xba94ff,_0x27d6a4=this[_0x511aac(0x1fe)](_0x511aac(0x18e)+_0x320326,_0x511aac(0x1af),_0x31b932);return{'getResult':async()=>(await _0x27d6a4[_0x511aac(0x19f)],_0x31b932),'abortController':_0x27d6a4[_0x511aac(0x186)]};}[_0xba94ff(0x1a6)](_0xbb612c){const _0x449f96=_0xba94ff,_0x325c46=this[_0x449f96(0x1fe)](_0x449f96(0x18e)+_0xbb612c,_0x449f96(0x192));return{'getConversation':async()=>(await _0x325c46[_0x449f96(0x19f)])[_0x449f96(0x212)](),'abortController':_0x325c46[_0x449f96(0x186)]};}[_0xba94ff(0x1b0)](_0x5e6ad9){const _0x565036=_0xba94ff,_0xec3e38=this[_0x565036(0x1fe)](_0x565036(0x18e)+_0x5e6ad9+_0x565036(0x1db),_0x565036(0x192));return{'getMessages':async()=>{const _0x16c802=_0x565036,_0x11ae6a=await _0xec3e38[_0x16c802(0x19f)];return(await _0x11ae6a[_0x16c802(0x212)]())[_0x16c802(0x185)];},'abortController':_0xec3e38[_0x565036(0x186)]};}[_0xba94ff(0x18c)](_0x496a3b,_0x2f2e86,_0x1029a9){const _0x13731b=_0xba94ff,_0x315b88=this[_0x13731b(0x1fe)](_0x13731b(0x18e)+_0x496a3b+_0x13731b(0x1b4),_0x13731b(0x1c3),{'url':_0x2f2e86,'attributes':_0x1029a9});return{'getId':async()=>(await _0x315b88[_0x13731b(0x19f)])[_0x13731b(0x212)](),'abortController':_0x315b88[_0x13731b(0x186)]};}[_0xba94ff(0x1bd)](){const _0x21c514=_0xba94ff,_0x428992=this[_0x21c514(0x1fe)](_0x21c514(0x1e3),_0x21c514(0x192));return{'list':async()=>{const _0x500886=_0x21c514,_0x4a7308=await(await _0x428992[_0x500886(0x19f)])[_0x500886(0x212)](),_0x587d23=_0x4a7308[_0x500886(0x185)][_0x500886(0x20a)](_0x2502de=>({..._0x2502de,'description':_0x1055dc(this[_0x500886(0x1b1)][_0x500886(0x1ce)],_0x500886(0x1c7)+_0x2502de['id'][_0x500886(0x19b)]())}));return{..._0x4a7308,'items':_0x587d23};},'abortController':_0x428992[_0x21c514(0x186)]};}[_0xba94ff(0x1c4)](_0x337c64,_0x321ee3){const _0x15b42d=_0xba94ff,_0x4be2b0=this[_0x15b42d(0x1fe)](_0x15b42d(0x18e)+_0x337c64+_0x15b42d(0x20e)+_0x321ee3,_0x15b42d(0x1cb));return{'execute':async()=>{const _0x28965c=_0x15b42d;await _0x4be2b0[_0x28965c(0x19f)];},'abortController':_0x4be2b0[_0x15b42d(0x186)]};}[_0xba94ff(0x1da)](_0x524d45,_0x274877){const _0x172e67=_0xba94ff,_0x2231ce=this[_0x172e67(0x1fe)](_0x172e67(0x18e)+_0x524d45+_0x172e67(0x1bf)+_0x274877,_0x172e67(0x1cb));return{'execute':async()=>{const _0x4944a8=_0x172e67;await _0x2231ce[_0x4944a8(0x19f)];},'abortController':_0x2231ce[_0x172e67(0x186)]};}[_0xba94ff(0x1f4)](_0x196b1b,_0xcb8cc8){const _0x58aa12=_0xba94ff,_0x29cb19=this[_0x58aa12(0x1fe)](_0x58aa12(0x18e)+_0x196b1b+_0x58aa12(0x1a3)+_0xcb8cc8,_0x58aa12(0x1cb));return{'execute':async()=>{const _0x2f7770=_0x58aa12;await _0x29cb19[_0x2f7770(0x19f)];},'abortController':_0x29cb19[_0x58aa12(0x186)]};}[_0xba94ff(0x1ab)]({reviewName:_0x36070c,content:_0x2a3029,args:_0x27350f}){const _0x3d6de8=_0xba94ff,_0x421d81=this[_0x3d6de8(0x1fe)](_0x3d6de8(0x1fb)+_0x36070c+_0x3d6de8(0x19c),_0x3d6de8(0x1c3),{'content':[{'type':_0x3d6de8(0x19d),'content':_0x2a3029}],'args':_0x27350f});return{'getStream':async()=>{const _0x52e401=_0x3d6de8,_0x474fdc=(await _0x421d81[_0x52e401(0x19f)])[_0x52e401(0x1e6)];return this[_0x52e401(0x1a0)](_0x474fdc);},'abortController':_0x421d81[_0x3d6de8(0x186)]};}[_0xba94ff(0x1eb)]({content:_0x172fab,prompt:_0x4d793e,model:_0x5bda77}){const _0x20538c=_0xba94ff,_0x34f5a1=this[_0x20538c(0x1fe)](_0x20538c(0x19e),_0x20538c(0x1c3),{'content':[{'type':_0x20538c(0x19d),'content':_0x172fab}],'prompt':_0x4d793e,'model':_0x5bda77});return{'getStream':async()=>{const _0x2f1177=_0x20538c,_0x22fab4=(await _0x34f5a1[_0x2f1177(0x19f)])[_0x2f1177(0x1e6)];return this[_0x2f1177(0x1a0)](_0x22fab4);},'abortController':_0x34f5a1[_0x20538c(0x186)]};}[_0xba94ff(0x1f5)](_0x42de2a,_0x56d0c0,_0x30e0f5){const _0x45e111=_0xba94ff,_0x2888aa=this[_0x45e111(0x1fe)](_0x45e111(0x18e)+_0x42de2a+_0x45e111(0x1bc)+_0x56d0c0+_0x45e111(0x1f8),_0x45e111(0x1b5),{'positiveCount':_0x30e0f5[_0x45e111(0x211)],'totalCount':_0x30e0f5[_0x45e111(0x1f9)]});return{'execute':async()=>{const _0x3ceb64=_0x45e111;await _0x2888aa[_0x3ceb64(0x19f)];},'abortController':_0x2888aa[_0x45e111(0x186)]};}[_0xba94ff(0x1d0)](_0x107c1e,_0x81d9c3,_0x3d31e2){const _0x31d229=_0xba94ff,_0x558a58=this[_0x31d229(0x1fe)](_0x31d229(0x1c2)+_0x107c1e+_0x31d229(0x209)+_0x81d9c3+_0x31d229(0x1f8),_0x31d229(0x1b5),{'positiveCount':_0x3d31e2[_0x31d229(0x211)],'totalCount':_0x3d31e2[_0x31d229(0x1f9)]});return{'execute':async()=>{const _0x3bbbab=_0x31d229;await _0x558a58[_0x3bbbab(0x19f)];},'abortController':_0x558a58[_0x31d229(0x186)]};}[_0xba94ff(0x1ba)](_0x212f98,_0x265d08){const _0x2f73b5=_0xba94ff,_0x3693a7=this[_0x2f73b5(0x1fe)](_0x2f73b5(0x1a9)+_0x212f98+_0x2f73b5(0x1f8),_0x2f73b5(0x1b5),{'positiveCount':_0x265d08[_0x2f73b5(0x211)],'totalCount':_0x265d08[_0x2f73b5(0x1f9)]});return{'execute':async()=>{const _0x4c122e=_0x2f73b5;await _0x3693a7[_0x4c122e(0x19f)];},'abortController':_0x3693a7[_0x2f73b5(0x186)]};}[_0xba94ff(0x1dd)](_0x15e807,_0x4537f7,_0x4f17c5,_0x52527a){const _0x374033=_0xba94ff,_0x35738d=this[_0x374033(0x1fe)](_0x374033(0x1fb)+_0x15e807+_0x374033(0x209)+_0x4537f7+_0x374033(0x1f8),_0x374033(0x1b5),{'positiveCount':_0x4f17c5[_0x374033(0x211)],'totalCount':_0x4f17c5[_0x374033(0x1f9)],'dataId':_0x52527a});return{'execute':async()=>{const _0x274001=_0x374033;await _0x35738d[_0x274001(0x19f)];},'abortController':_0x35738d[_0x374033(0x186)]};}[_0xba94ff(0x201)](_0x4ec8fb,_0xc693ab,_0x23d035){const _0x19937a=_0xba94ff,_0x1d9519=this[_0x19937a(0x1fe)](_0x19937a(0x1d5)+_0x4ec8fb+_0x19937a(0x1f8),_0x19937a(0x1b5),{'positiveCount':_0xc693ab[_0x19937a(0x211)],'totalCount':_0xc693ab[_0x19937a(0x1f9)],'dataId':_0x23d035});return{'execute':async()=>{const _0x4f0c89=_0x19937a;await _0x1d9519[_0x4f0c89(0x19f)];},'abortController':_0x1d9519[_0x19937a(0x186)]};}[_0xba94ff(0x1fe)](_0x31d772,_0x561a20,_0x5ec521){const _0x5e7c81=_0xba94ff,_0x1873e8=new AbortController(),_0x26c4b6=_0x5ec521 instanceof FormData,_0x4b864c={'Authorization':_0x5e7c81(0x1e8)+this[_0x5e7c81(0x1e9)]?.[_0x5e7c81(0x189)]};_0x5ec521&&!_0x26c4b6&&(_0x4b864c[_0x5e7c81(0x1f0)]=_0x5e7c81(0x188));const _0x9f25dc={'method':_0x561a20,'headers':_0x4b864c,'signal':_0x1873e8[_0x5e7c81(0x1cf)]};return _0x5ec521&&(_0x9f25dc[_0x5e7c81(0x1e6)]=_0x26c4b6?_0x5ec521:JSON[_0x5e7c81(0x1be)](_0x5ec521)),{'request':fetch(''+this[_0x5e7c81(0x199)]+_0x31d772,_0x9f25dc)[_0x5e7c81(0x1dc)](_0x40037c=>{const _0x5ef18b=_0x5e7c81;this[_0x5ef18b(0x1bb)](_0x40037c);})[_0x5e7c81(0x1ad)](_0x345485=>{const _0x2034d1=_0x5e7c81;if(!_0x345485['ok'])throw new _0x5cadba(_0x2034d1(0x1f7),this,{'url':this[_0x2034d1(0x199)],'path':_0x31d772,'method':_0x561a20,'body':_0x5ec521,'status':(_0x345485||{})[_0x2034d1(0x1f1)],'statusText':(_0x345485||{})[_0x2034d1(0x198)]});return _0x345485;}),'abortController':_0x1873e8};}async*[_0xba94ff(0x1a0)](_0x19423c){const _0x2ef4ab=_0xba94ff,_0x1b7f84=[],_0x1cb6fd=_0x19423c[_0x2ef4ab(0x184)](),_0x53e522=_0x38d6dd({'onError':_0x27e231=>{const _0x5e2629=_0x2ef4ab;this[_0x5e2629(0x1bb)](_0x27e231);},'onEvent':_0x2febfb=>{const _0x544859=_0x2ef4ab;_0x2febfb[_0x544859(0x1ac)]=JSON[_0x544859(0x1ec)](_0x2febfb[_0x544859(0x1ac)]),_0x1b7f84[_0x544859(0x1c8)](_0x2febfb);}});try{let _0x471f8e=!0x1;for(;!_0x471f8e;){const {done:_0x2b75a1,value:_0x1984ff}=await _0x1cb6fd[_0x2ef4ab(0x20c)]();_0x2b75a1&&(_0x471f8e=!0x0),_0x53e522[_0x2ef4ab(0x1e7)](this[_0x2ef4ab(0x1a8)][_0x2ef4ab(0x1cd)](_0x1984ff,{'stream':!0x0})),yield*_0x1b7f84,_0x1b7f84[_0x2ef4ab(0x1e1)]=0x0;}}catch(_0x24a77f){this[_0x2ef4ab(0x1bb)](_0x24a77f);}finally{_0x1cb6fd[_0x2ef4ab(0x1b3)](),_0x53e522[_0x2ef4ab(0x20b)]();}}[_0xba94ff(0x1bb)](_0x55dbbb){const _0x3e6c0b=_0xba94ff;if(_0x55dbbb instanceof _0x5cadba)throw _0x55dbbb;if(_0x55dbbb instanceof Error&&_0x3e6c0b(0x1e2)===_0x55dbbb[_0x3e6c0b(0x200)])throw new _0x5cadba(_0x3e6c0b(0x1d4),this,{'originalError':_0x55dbbb});throw new _0x5cadba(_0x3e6c0b(0x1f7),this,{'originalError':_0x55dbbb});}}
|
|
23
|
+
function _0x38f9(){const _0x335aef=['AIConnector','updateConversation','fetchConversations','callSystemReview','append','fix-grammar','CloudServices','FIX_GRAMMAR','/files/','totalCount','upsertAIActionRating','uploadUrl','/files','/reviews/system/','/documents','https://ai.cke-cs.com/v1','uploadFile','deleteWebResource','requires','DELETE','PATCH','/documents/','/conversations?','upsertCustomAIActionRating','catch','plugins','positiveCount','true','fetchConversation','attributes','map','/ratings','status','MAKE_SHORTER','AbortError','statusText','define','make-tone-formal','upsertAIChatRating','continue','/reviews/custom/calls','1823530GYBEIU','uploadDocument','init','/calls','stringify','items','getModels','name','1034223UQZCXb','_getStreamReader','feed','91LpEyRn','read','queryAssistant','deleteConversation','then','1028890OEzWBU','upsertCustomAIReviewRating','get','make-shorter','TRANSLATE','1740180CxBuyE','CONTINUE','ai-request-aborted','/calls/','length','Bearer\x20','abortController','IMPROVE_WRITING','pluginName','limit','group','/reviews/custom/calls/','executeAction','4Zmrmjk','file','token','_sendApiRequest','MAKE_TONE_FORMAL','context','/models/1','callCustomReview','100','getReader','PUT','_apiUrl','/messages/','fetchConversationMessages','MAKE_TONE_CASUAL','Content-Type','_decoder','/conversations/','deleteDocument','executeCustomAction','_handleError','push','456928PyNHfA','182387KVVtVW','json','/actions/custom/calls/','/actions/system/','config','reset','make-tone-casual','improve-writing','translate','toString','keys','startConversation','138056uZVppL','signal','toUpperCase','GET','request','data','search','ai-request-failed','ai-missing-token','text','parse','18JRGuLa','isPremiumPlugin','upsertAIReviewRating','POST','application/json','value','AI_MODEL_DESCRIPTION_','excludeEmpty','decode','/messages','ai.serviceUrl','/web-resources/','releaseLock','make-longer','MAKE_LONGER','deleteFile','/conversations','locale','body','/web-resources','/actions/custom/calls','isOfficialPlugin','fetchDocument','_token'];_0x38f9=function(){return _0x335aef;};return _0x38f9();}const _0xf6fb7a=_0x5247;(function(_0x17bfbc,_0x422adb){const _0x13e9f3=_0x5247,_0x25fc9f=_0x17bfbc();while(!![]){try{const _0x5e80a6=-parseInt(_0x13e9f3(0xe4))/0x1+parseInt(_0x13e9f3(0xe3))/0x2+-parseInt(_0x13e9f3(0xb3))/0x3+parseInt(_0x13e9f3(0xcd))/0x4*(parseInt(_0x13e9f3(0xab))/0x5)+-parseInt(_0x13e9f3(0xc0))/0x6+-parseInt(_0x13e9f3(0xb6))/0x7*(-parseInt(_0x13e9f3(0xf0))/0x8)+-parseInt(_0x13e9f3(0xfb))/0x9*(-parseInt(_0x13e9f3(0xbb))/0xa);if(_0x5e80a6===_0x422adb)break;else _0x25fc9f['push'](_0x25fc9f['shift']());}catch(_0x3bfa62){_0x25fc9f['push'](_0x25fc9f['shift']());}}}(_0x38f9,0x32533));function _0x5247(_0xc98194,_0x6ff410){const _0x38f948=_0x38f9();return _0x5247=function(_0x5247cf,_0x39f7ab){_0x5247cf=_0x5247cf-0x78;let _0x258aa4=_0x38f948[_0x5247cf];return _0x258aa4;},_0x5247(_0xc98194,_0x6ff410);}import{createParser as _0x50347c}from'eventsource-parser';import{ContextPlugin as _0x46adb6}from'ckeditor5/src/core.js';import{CKEditorError as _0x415b3}from'ckeditor5/src/utils.js';import{getTranslation as _0x27c36e}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x3eab6e){const _0x3c0586=_0x5247;_0x3eab6e[_0x3c0586(0xc1)]=_0x3c0586(0xa9),_0x3eab6e[_0x3c0586(0x89)]=_0x3c0586(0x87),_0x3eab6e[_0x3c0586(0xc7)]=_0x3c0586(0xeb),_0x3eab6e[_0x3c0586(0x78)]=_0x3c0586(0x108),_0x3eab6e[_0x3c0586(0xa3)]=_0x3c0586(0xbe),_0x3eab6e[_0x3c0586(0xdb)]=_0x3c0586(0xea),_0x3eab6e[_0x3c0586(0xd1)]=_0x3c0586(0xa7),_0x3eab6e[_0x3c0586(0xbf)]=_0x3c0586(0xec);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x46adb6{[_0xf6fb7a(0xd8)];[_0xf6fb7a(0x81)];[_0xf6fb7a(0xdd)];static get[_0xf6fb7a(0x94)](){const _0x41beb1=_0xf6fb7a;return[_0x41beb1(0x88)];}static get[_0xf6fb7a(0xc8)](){const _0x2f1105=_0xf6fb7a;return _0x2f1105(0x82);}static get[_0xf6fb7a(0x7f)](){return!0x0;}static get[_0xf6fb7a(0xfc)](){return!0x0;}constructor(_0x264458){const _0x369808=_0xf6fb7a;super(_0x264458),this[_0x369808(0xd2)][_0x369808(0xe8)][_0x369808(0xa6)](_0x369808(0x105),_0x369808(0x91)),this[_0x369808(0xd8)]=this[_0x369808(0xd2)][_0x369808(0xe8)][_0x369808(0xbd)](_0x369808(0x105)),this[_0x369808(0x81)]=null,this[_0x369808(0xdd)]=new TextDecoder();}[_0xf6fb7a(0xad)](){const _0x4c67b9=_0xf6fb7a,_0x1ba4fa=this[_0x4c67b9(0xd2)][_0x4c67b9(0x9b)][_0x4c67b9(0xbd)](_0x4c67b9(0x88));if(!_0x1ba4fa[_0x4c67b9(0xcf)])throw new _0x415b3(_0x4c67b9(0xf8),this);this[_0x4c67b9(0x81)]=_0x1ba4fa[_0x4c67b9(0xcf)];}[_0xf6fb7a(0xef)](_0x23b98b,_0x5ca2c1){const _0x542853=_0xf6fb7a,_0x2a6802=this[_0x542853(0xd0)](_0x542853(0x7a),_0x542853(0xfe),{'id':_0x23b98b,'group':_0x5ca2c1});return{'getConversation':async()=>(await _0x2a6802[_0x542853(0xf4)])[_0x542853(0xe5)](),'abortController':_0x2a6802[_0x542853(0xc6)]};}[_0xf6fb7a(0xb8)]({message:_0x2c050c,conversationId:_0x122b6b,parts:_0x1b6bf3,capabilities:_0x20d1d1,model:_0x140115,quickActionData:_0x4bf15b}){const _0x2c451b=_0xf6fb7a,_0x251247={..._0x4bf15b&&{'quickActionData':_0x4bf15b}},_0x64f5b3={'prompt':_0x2c050c,'content':_0x1b6bf3,'model':_0x140115,..._0x20d1d1&&{'capabilities':_0x20d1d1},...Object[_0x2c451b(0xee)](_0x251247)[_0x2c451b(0xc4)]>0x0&&{'attributes':_0x251247}},_0x3a2c75=this[_0x2c451b(0xd0)](_0x2c451b(0xde)+_0x122b6b+_0x2c451b(0x104),_0x2c451b(0xfe),_0x64f5b3);return{'getStream':async()=>{const _0x5f4f4e=_0x2c451b,_0x3f0667=(await _0x3a2c75[_0x5f4f4e(0xf4)])[_0x5f4f4e(0x7c)];return this[_0x5f4f4e(0xb4)](_0x3f0667);},'abortController':_0x3a2c75[_0x2c451b(0xc6)]};}[_0xf6fb7a(0xe0)]({content:_0x2221e3,message:_0x3960a3,model:_0x205900,outputFormat:_0x362c4f}){const _0x51164f=_0xf6fb7a,_0x5c3b2f={'content':[{'type':_0x51164f(0xf9),'content':_0x2221e3}],'prompt':_0x3960a3,'model':_0x205900,'outputFormat':_0x362c4f},_0x2761b9=this[_0x51164f(0xd0)](_0x51164f(0x7e),_0x51164f(0xfe),_0x5c3b2f);return{'getStream':async()=>{const _0x4e4226=_0x51164f,_0x441c8b=(await _0x2761b9[_0x4e4226(0xf4)])[_0x4e4226(0x7c)];return this[_0x4e4226(0xb4)](_0x441c8b);},'abortController':_0x2761b9[_0x51164f(0xc6)]};}[_0xf6fb7a(0xcc)]({actionName:_0x4cc0d4,content:_0x1434bf,args:_0x43a0b4}){const _0x484d83=_0xf6fb7a,_0x4221f0={'content':[{'type':_0x484d83(0xf9),'content':_0x1434bf}],'args':_0x43a0b4},_0x3fac86=this[_0x484d83(0xd0)](_0x484d83(0xe7)+_0x4cc0d4+_0x484d83(0xae),_0x484d83(0xfe),_0x4221f0);return{'getStream':async()=>{const _0x20854f=_0x484d83,_0x2cf319=(await _0x3fac86[_0x20854f(0xf4)])[_0x20854f(0x7c)];return this[_0x20854f(0xb4)](_0x2cf319);},'abortController':_0x3fac86[_0x484d83(0xc6)]};}[_0xf6fb7a(0x92)](_0xa65dbf,_0x455ca8,_0x498212){const _0x3ad3ad=_0xf6fb7a,_0x57c60e=new FormData();_0x57c60e[_0x3ad3ad(0x86)](_0x3ad3ad(0xce),_0x455ca8,_0x455ca8[_0x3ad3ad(0xb2)]),_0x498212&&_0x57c60e[_0x3ad3ad(0x86)](_0x3ad3ad(0x9f),JSON[_0x3ad3ad(0xaf)](_0x498212));const _0x4459ca=this[_0x3ad3ad(0xd0)](_0x3ad3ad(0xde)+_0xa65dbf+_0x3ad3ad(0x8e),_0x3ad3ad(0xfe),_0x57c60e);return{'getId':async()=>(await _0x4459ca[_0x3ad3ad(0xf4)])[_0x3ad3ad(0xe5)](),'abortController':_0x4459ca[_0x3ad3ad(0xc6)]};}[_0xf6fb7a(0x80)](_0x11aad3,_0x21153b){const _0x1a7f7c=_0xf6fb7a,_0x4e8c28=this[_0x1a7f7c(0xd0)](_0x1a7f7c(0xde)+_0x11aad3+_0x1a7f7c(0x97)+_0x21153b,_0x1a7f7c(0xf3));return{'getDocument':async()=>(await _0x4e8c28[_0x1a7f7c(0xf4)])[_0x1a7f7c(0xe5)](),'abortController':_0x4e8c28[_0x1a7f7c(0xc6)]};}[_0xf6fb7a(0xac)](_0x4c20a7,_0x3522fe,_0x1cd7aa){const _0x2ebf8a=_0xf6fb7a,_0x33a269={'content':_0x3522fe};_0x1cd7aa&&(_0x33a269[_0x2ebf8a(0x9f)]=_0x1cd7aa);const _0x408923=this[_0x2ebf8a(0xd0)](_0x2ebf8a(0xde)+_0x4c20a7+_0x2ebf8a(0x90),_0x2ebf8a(0xfe),_0x33a269);return{'getId':async()=>(await _0x408923[_0x2ebf8a(0xf4)])[_0x2ebf8a(0xe5)](),'abortController':_0x408923[_0x2ebf8a(0xc6)]};}[_0xf6fb7a(0x84)](_0x19c41b,_0x540c4b){const _0x3558df=_0xf6fb7a,_0x35c39d=new URLSearchParams();_0x35c39d[_0x3558df(0x86)](_0x3558df(0x102),_0x3558df(0x9d)),_0x35c39d[_0x3558df(0x86)](_0x3558df(0xc9),_0x3558df(0xd5)),_0x35c39d[_0x3558df(0x86)](_0x3558df(0xca),_0x19c41b),_0x540c4b&&_0x35c39d[_0x3558df(0x86)](_0x3558df(0xf6),_0x540c4b);const _0x3d187f=this[_0x3558df(0xd0)](_0x3558df(0x98)+_0x35c39d[_0x3558df(0xed)](),_0x3558df(0xf3));return{'getConversations':async()=>{const _0x47858c=_0x3558df,_0x2121f2=await _0x3d187f[_0x47858c(0xf4)];return(await _0x2121f2[_0x47858c(0xe5)]())[_0x47858c(0xb0)];},'abortController':_0x3d187f[_0x3558df(0xc6)]};}[_0xf6fb7a(0xb9)](_0x18a058){const _0xe6358d=_0xf6fb7a,_0x182641=this[_0xe6358d(0xd0)](_0xe6358d(0xde)+_0x18a058,_0xe6358d(0x95));return{'execute':async()=>{const _0x1fd6a6=_0xe6358d;await _0x182641[_0x1fd6a6(0xf4)];},'abortController':_0x182641[_0xe6358d(0xc6)]};}[_0xf6fb7a(0x83)](_0x1c48bb,_0x38aaf0){const _0x11cdeb=_0xf6fb7a,_0x567139=this[_0x11cdeb(0xd0)](_0x11cdeb(0xde)+_0x1c48bb,_0x11cdeb(0x96),_0x38aaf0);return{'getResult':async()=>(await _0x567139[_0x11cdeb(0xf4)],_0x38aaf0),'abortController':_0x567139[_0x11cdeb(0xc6)]};}[_0xf6fb7a(0x9e)](_0x3dd5ab){const _0x49df94=_0xf6fb7a,_0x5381d9=this[_0x49df94(0xd0)](_0x49df94(0xde)+_0x3dd5ab,_0x49df94(0xf3));return{'getConversation':async()=>(await _0x5381d9[_0x49df94(0xf4)])[_0x49df94(0xe5)](),'abortController':_0x5381d9[_0x49df94(0xc6)]};}[_0xf6fb7a(0xda)](_0x35f183){const _0x386637=_0xf6fb7a,_0x738928=this[_0x386637(0xd0)](_0x386637(0xde)+_0x35f183+_0x386637(0x104),_0x386637(0xf3));return{'getMessages':async()=>{const _0x455b43=_0x386637,_0x42bda7=await _0x738928[_0x455b43(0xf4)];return(await _0x42bda7[_0x455b43(0xe5)]())[_0x455b43(0xb0)];},'abortController':_0x738928[_0x386637(0xc6)]};}[_0xf6fb7a(0x8d)](_0x6bf3e3,_0xca3d8a,_0xd0874){const _0x308fbc=_0xf6fb7a,_0x225e72=this[_0x308fbc(0xd0)](_0x308fbc(0xde)+_0x6bf3e3+_0x308fbc(0x7d),_0x308fbc(0xfe),{'url':_0xca3d8a,'attributes':_0xd0874});return{'getId':async()=>(await _0x225e72[_0x308fbc(0xf4)])[_0x308fbc(0xe5)](),'abortController':_0x225e72[_0x308fbc(0xc6)]};}[_0xf6fb7a(0xb1)](){const _0x276210=_0xf6fb7a,_0x5b37c6=this[_0x276210(0xd0)](_0x276210(0xd3),_0x276210(0xf3));return{'list':async()=>{const _0x513051=_0x276210,_0x456383=await(await _0x5b37c6[_0x513051(0xf4)])[_0x513051(0xe5)](),_0xd52cf2=_0x456383[_0x513051(0xb0)][_0x513051(0xa0)](_0x2f3c73=>({..._0x2f3c73,'description':_0x27c36e(this[_0x513051(0xd2)][_0x513051(0x7b)],_0x513051(0x101)+_0x2f3c73['id'][_0x513051(0xf2)]())}));return{..._0x456383,'items':_0xd52cf2};},'abortController':_0x5b37c6[_0x276210(0xc6)]};}[_0xf6fb7a(0x79)](_0xc30dbe,_0x180c5e){const _0x3582b4=_0xf6fb7a,_0x1af9cd=this[_0x3582b4(0xd0)](_0x3582b4(0xde)+_0xc30dbe+_0x3582b4(0x8a)+_0x180c5e,_0x3582b4(0x95));return{'execute':async()=>{const _0x131030=_0x3582b4;await _0x1af9cd[_0x131030(0xf4)];},'abortController':_0x1af9cd[_0x3582b4(0xc6)]};}[_0xf6fb7a(0xdf)](_0x5badd4,_0x4c98ec){const _0xd6f7aa=_0xf6fb7a,_0x1a874a=this[_0xd6f7aa(0xd0)](_0xd6f7aa(0xde)+_0x5badd4+_0xd6f7aa(0x97)+_0x4c98ec,_0xd6f7aa(0x95));return{'execute':async()=>{const _0x117395=_0xd6f7aa;await _0x1a874a[_0x117395(0xf4)];},'abortController':_0x1a874a[_0xd6f7aa(0xc6)]};}[_0xf6fb7a(0x93)](_0x336a8e,_0x29208e){const _0x577ddd=_0xf6fb7a,_0x29fea7=this[_0x577ddd(0xd0)](_0x577ddd(0xde)+_0x336a8e+_0x577ddd(0x106)+_0x29208e,_0x577ddd(0x95));return{'execute':async()=>{const _0x7548a=_0x577ddd;await _0x29fea7[_0x7548a(0xf4)];},'abortController':_0x29fea7[_0x577ddd(0xc6)]};}[_0xf6fb7a(0x85)]({reviewName:_0x4d0023,content:_0x575f02,args:_0x1de26b}){const _0x491cb8=_0xf6fb7a,_0x558833=this[_0x491cb8(0xd0)](_0x491cb8(0x8f)+_0x4d0023+_0x491cb8(0xae),_0x491cb8(0xfe),{'content':[{'type':_0x491cb8(0xf9),'content':_0x575f02}],'args':_0x1de26b});return{'getStream':async()=>{const _0x250b99=_0x491cb8,_0x198f37=(await _0x558833[_0x250b99(0xf4)])[_0x250b99(0x7c)];return this[_0x250b99(0xb4)](_0x198f37);},'abortController':_0x558833[_0x491cb8(0xc6)]};}[_0xf6fb7a(0xd4)]({content:_0xc936b5,prompt:_0xbbaa49,model:_0x4c87af}){const _0x1b82a5=_0xf6fb7a,_0x53fac1=this[_0x1b82a5(0xd0)](_0x1b82a5(0xaa),_0x1b82a5(0xfe),{'content':[{'type':_0x1b82a5(0xf9),'content':_0xc936b5}],'prompt':_0xbbaa49,'model':_0x4c87af});return{'getStream':async()=>{const _0x2df1df=_0x1b82a5,_0x402c07=(await _0x53fac1[_0x2df1df(0xf4)])[_0x2df1df(0x7c)];return this[_0x2df1df(0xb4)](_0x402c07);},'abortController':_0x53fac1[_0x1b82a5(0xc6)]};}[_0xf6fb7a(0xa8)](_0x2c4cd2,_0x5a8b67,_0x47eee4){const _0x33c089=_0xf6fb7a,_0x36a43b=this[_0x33c089(0xd0)](_0x33c089(0xde)+_0x2c4cd2+_0x33c089(0xd9)+_0x5a8b67+_0x33c089(0xa1),_0x33c089(0xd7),{'positiveCount':_0x47eee4[_0x33c089(0x9c)],'totalCount':_0x47eee4[_0x33c089(0x8b)]});return{'execute':async()=>{const _0x25008b=_0x33c089;await _0x36a43b[_0x25008b(0xf4)];},'abortController':_0x36a43b[_0x33c089(0xc6)]};}[_0xf6fb7a(0x8c)](_0x4f01a4,_0x20621b,_0x45205a){const _0x273e73=_0xf6fb7a,_0x2927a4=this[_0x273e73(0xd0)](_0x273e73(0xe7)+_0x4f01a4+_0x273e73(0xc3)+_0x20621b+_0x273e73(0xa1),_0x273e73(0xd7),{'positiveCount':_0x45205a[_0x273e73(0x9c)],'totalCount':_0x45205a[_0x273e73(0x8b)]});return{'execute':async()=>{const _0x16f105=_0x273e73;await _0x2927a4[_0x16f105(0xf4)];},'abortController':_0x2927a4[_0x273e73(0xc6)]};}[_0xf6fb7a(0x99)](_0x587d76,_0x359584){const _0x41682d=_0xf6fb7a,_0x41e9de=this[_0x41682d(0xd0)](_0x41682d(0xe6)+_0x587d76+_0x41682d(0xa1),_0x41682d(0xd7),{'positiveCount':_0x359584[_0x41682d(0x9c)],'totalCount':_0x359584[_0x41682d(0x8b)]});return{'execute':async()=>{const _0x457c11=_0x41682d;await _0x41e9de[_0x457c11(0xf4)];},'abortController':_0x41e9de[_0x41682d(0xc6)]};}[_0xf6fb7a(0xfd)](_0x572ea3,_0x44400d,_0x43f56a,_0x27ebfd){const _0x30b514=_0xf6fb7a,_0x284fd6=this[_0x30b514(0xd0)](_0x30b514(0x8f)+_0x572ea3+_0x30b514(0xc3)+_0x44400d+_0x30b514(0xa1),_0x30b514(0xd7),{'positiveCount':_0x43f56a[_0x30b514(0x9c)],'totalCount':_0x43f56a[_0x30b514(0x8b)],'dataId':_0x27ebfd});return{'execute':async()=>{const _0x5beaee=_0x30b514;await _0x284fd6[_0x5beaee(0xf4)];},'abortController':_0x284fd6[_0x30b514(0xc6)]};}[_0xf6fb7a(0xbc)](_0x181ad2,_0x2715fd,_0x258514){const _0x2aeb7a=_0xf6fb7a,_0xa40b5a=this[_0x2aeb7a(0xd0)](_0x2aeb7a(0xcb)+_0x181ad2+_0x2aeb7a(0xa1),_0x2aeb7a(0xd7),{'positiveCount':_0x2715fd[_0x2aeb7a(0x9c)],'totalCount':_0x2715fd[_0x2aeb7a(0x8b)],'dataId':_0x258514});return{'execute':async()=>{const _0x5f134c=_0x2aeb7a;await _0xa40b5a[_0x5f134c(0xf4)];},'abortController':_0xa40b5a[_0x2aeb7a(0xc6)]};}[_0xf6fb7a(0xd0)](_0x11fbc8,_0x1c90f9,_0xb0f6b0){const _0x4d2c54=_0xf6fb7a,_0x920c38=new AbortController(),_0x438007=_0xb0f6b0 instanceof FormData,_0x48881a={'Authorization':_0x4d2c54(0xc5)+this[_0x4d2c54(0x81)]?.[_0x4d2c54(0x100)]};_0xb0f6b0&&!_0x438007&&(_0x48881a[_0x4d2c54(0xdc)]=_0x4d2c54(0xff));const _0x4eda07={'method':_0x1c90f9,'headers':_0x48881a,'signal':_0x920c38[_0x4d2c54(0xf1)]};return _0xb0f6b0&&(_0x4eda07[_0x4d2c54(0x7c)]=_0x438007?_0xb0f6b0:JSON[_0x4d2c54(0xaf)](_0xb0f6b0)),{'request':fetch(''+this[_0x4d2c54(0xd8)]+_0x11fbc8,_0x4eda07)[_0x4d2c54(0x9a)](_0x432d49=>{const _0xce52a5=_0x4d2c54;this[_0xce52a5(0xe1)](_0x432d49);})[_0x4d2c54(0xba)](_0x2e2ef5=>{const _0x2dc88c=_0x4d2c54;if(!_0x2e2ef5['ok'])throw new _0x415b3(_0x2dc88c(0xf7),this,{'url':this[_0x2dc88c(0xd8)],'path':_0x11fbc8,'method':_0x1c90f9,'body':_0xb0f6b0,'status':(_0x2e2ef5||{})[_0x2dc88c(0xa2)],'statusText':(_0x2e2ef5||{})[_0x2dc88c(0xa5)]});return _0x2e2ef5;}),'abortController':_0x920c38};}async*[_0xf6fb7a(0xb4)](_0x215e26){const _0x28bad9=_0xf6fb7a,_0x1813b2=[],_0x429eb9=_0x215e26[_0x28bad9(0xd6)](),_0x576849=_0x50347c({'onError':_0x4a3460=>{const _0x3bd0a7=_0x28bad9;this[_0x3bd0a7(0xe1)](_0x4a3460);},'onEvent':_0x5b3ac7=>{const _0x5a758f=_0x28bad9;_0x5b3ac7[_0x5a758f(0xf5)]=JSON[_0x5a758f(0xfa)](_0x5b3ac7[_0x5a758f(0xf5)]),_0x1813b2[_0x5a758f(0xe2)](_0x5b3ac7);}});try{let _0x1b4702=!0x1;for(;!_0x1b4702;){const {done:_0x2765b9,value:_0x2c090c}=await _0x429eb9[_0x28bad9(0xb7)]();_0x2765b9&&(_0x1b4702=!0x0),_0x576849[_0x28bad9(0xb5)](this[_0x28bad9(0xdd)][_0x28bad9(0x103)](_0x2c090c,{'stream':!0x0})),yield*_0x1813b2,_0x1813b2[_0x28bad9(0xc4)]=0x0;}}catch(_0x508b51){this[_0x28bad9(0xe1)](_0x508b51);}finally{_0x429eb9[_0x28bad9(0x107)](),_0x576849[_0x28bad9(0xe9)]();}}[_0xf6fb7a(0xe1)](_0x1af9a1){const _0x1fe0ad=_0xf6fb7a;if(_0x1af9a1 instanceof _0x415b3)throw _0x1af9a1;if(_0x1af9a1 instanceof Error&&_0x1fe0ad(0xa4)===_0x1af9a1[_0x1fe0ad(0xb2)])throw new _0x415b3(_0x1fe0ad(0xc2),this,{'originalError':_0x1af9a1});throw new _0x415b3(_0x1fe0ad(0xf7),this,{'originalError':_0x1af9a1});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x491756=_0x32bc;(function(_0x246a5e,_0x397d81){const _0x2516fe=_0x32bc,_0x1dcd3e=_0x246a5e();while(!![]){try{const _0x2b40d9=parseInt(_0x2516fe(0x14f))/0x1+parseInt(_0x2516fe(0x145))/0x2*(parseInt(_0x2516fe(0x130))/0x3)+-parseInt(_0x2516fe(0x143))/0x4*(parseInt(_0x2516fe(0x117))/0x5)+-parseInt(_0x2516fe(0x141))/0x6+-parseInt(_0x2516fe(0x11d))/0x7+parseInt(_0x2516fe(0x12c))/0x8+parseInt(_0x2516fe(0x12f))/0x9*(parseInt(_0x2516fe(0x14c))/0xa);if(_0x2b40d9===_0x397d81)break;else _0x1dcd3e['push'](_0x1dcd3e['shift']());}catch(_0x59aee1){_0x1dcd3e['push'](_0x1dcd3e['shift']());}}}(_0x5ddc,0x77cf4));import{ViewDowncastWriter as _0x4466ff}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x59838e,Editor as _0x166899}from'ckeditor5/src/core.js';function _0x5ddc(){const _0x5063a6=[':end></','plugins','isOpening','getSelectedContent','ready','showFakeVisualSelection','isAtEnd','modelToViewWithIds','join','name','getDocumentData','_setDataIdsOnChildren','ai-selection','length','isAfter','markerToHighlight','isOfficialPlugin','floor','fromCharCode','_sessionId','context','emptyElement','createUIElement','conversion','from','toView','getLastMatchingPosition','getRoot','trim','setAttribute','schema',':start></','getMarkersGroup','editingDowncast','editing',':end>','pluginName',':start>','hideFakeVisualSelection','_getMarkersInDocumentOrder','afterInit','element','convertAiChatSelectionMarker','selection','5FqSVrl','document','_nextDataId','isBefore','removeAllRanges','getWalker','1265383oQSFcw','toData','substring','createRange','removeMarker','version','for','has','ck-fake-ai-selection','view','ck-ai-assistant-ui_theme','sort','createRangeIn','markerName','listenTo','146992wiKVAs','getSelection','sessionId','63KaBJQG','6PRtOZl','RealTimeCollaborationClient','_displayedFakeSelectionLocked','data-id','start','end','data','push','isContent','markers','editors','ai-selection:','_displayedFakeSelectionId','containerElement','_integrateEditor','change','get','2609400FqNkRh','processor','1134348nEimCM','model','917948ZabqFK','markerToElement','AIEditing','indexOf','getSelectionText','isPremiumPlugin','random','207490bCyDgr','addMarker','dataDowncast','308431vczLHB','$textProxy','getChildren','getStart','add'];_0x5ddc=function(){return _0x5063a6;};return _0x5ddc();}import{uid as _0x45caa5}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x4cbcb9}from'./utils/geteditorfromcontext.js';function _0x32bc(_0x3652e5,_0x2745ce){const _0x5ddcb1=_0x5ddc();return _0x32bc=function(_0x32bca4,_0x399f7f){_0x32bca4=_0x32bca4-0xeb;let _0x253800=_0x5ddcb1[_0x32bca4];return _0x253800;},_0x32bc(_0x3652e5,_0x2745ce);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x491756(0xf7);export class AIEditing extends _0x59838e{[_0x491756(0x13c)]=null;[_0x491756(0x132)]=!0x1;[_0x491756(0xfe)];static get[_0x491756(0x10f)](){const _0x56eb86=_0x491756;return _0x56eb86(0x147);}static get[_0x491756(0xfb)](){return!0x0;}static get[_0x491756(0x14a)](){return!0x0;}get[_0x491756(0x12e)](){const _0x59c2e7=_0x491756;if(!this[_0x59c2e7(0xfe)]){const _0x3a1bfa=_0x4cbcb9(this[_0x59c2e7(0xff)]),_0x121556=_0x3a1bfa[_0x59c2e7(0xec)][_0x59c2e7(0x124)](_0x59c2e7(0x131))&&_0x3a1bfa[_0x59c2e7(0xec)][_0x59c2e7(0x140)](_0x59c2e7(0x131))[_0x59c2e7(0x12e)];this[_0x59c2e7(0xfe)]=_0x121556||_0x45caa5();}return this[_0x59c2e7(0xfe)];}[_0x491756(0xf5)](){const _0x5d6ac9=_0x491756,_0x4f8d5b=_0x4cbcb9(this[_0x5d6ac9(0xff)]),_0xa6a5d9=_0x4f8d5b[_0x5d6ac9(0x144)],_0x2f9ff1=_0x4f8d5b[_0x5d6ac9(0x136)][_0x5d6ac9(0x104)](_0xa6a5d9[_0x5d6ac9(0x118)][_0x5d6ac9(0x106)](),{'convertAiChatSelectionMarker':!0x0}),_0x51d5a9=new _0x4466ff(_0x4f8d5b[_0x5d6ac9(0x10d)][_0x5d6ac9(0x126)][_0x5d6ac9(0x118)]);this[_0x5d6ac9(0xf6)](_0x2f9ff1,_0x51d5a9);let _0x41ca67=_0x4f8d5b[_0x5d6ac9(0x136)][_0x5d6ac9(0x142)][_0x5d6ac9(0x11e)](_0x2f9ff1);const _0x491ba0=this[_0x5d6ac9(0x112)](),_0x9cfcfb=[];for(const _0xafaf62 of _0x491ba0){const _0x19b408='<'+_0xafaf62[_0x5d6ac9(0xf4)]+_0x5d6ac9(0x10a)+_0xafaf62[_0x5d6ac9(0xf4)]+_0x5d6ac9(0x110),_0x342277=_0x41ca67[_0x5d6ac9(0x148)](_0x19b408);_0x41ca67=_0x41ca67[_0x5d6ac9(0x11f)](0x0,_0x342277)+_0x41ca67[_0x5d6ac9(0x11f)](_0x342277+_0x19b408[_0x5d6ac9(0xf8)]);const _0x426e22='<'+_0xafaf62[_0x5d6ac9(0xf4)]+_0x5d6ac9(0xeb)+_0xafaf62[_0x5d6ac9(0xf4)]+_0x5d6ac9(0x10e),_0x3ee30c=_0x41ca67[_0x5d6ac9(0x148)](_0x426e22);_0x41ca67=_0x41ca67[_0x5d6ac9(0x11f)](0x0,_0x3ee30c)+_0x41ca67[_0x5d6ac9(0x11f)](_0x3ee30c+_0x426e22[_0x5d6ac9(0xf8)]),_0x9cfcfb[_0x5d6ac9(0x137)]({'markerName':_0xafaf62[_0x5d6ac9(0xf4)],'start':_0x342277,'end':_0x3ee30c,'htmlFragment':_0x41ca67[_0x5d6ac9(0x11f)](_0x342277,_0x3ee30c)});}return{'content':_0x41ca67,'version':_0x4f8d5b[_0x5d6ac9(0x144)][_0x5d6ac9(0x118)][_0x5d6ac9(0x122)],'sessionId':this[_0x5d6ac9(0x12e)],'selections':_0x9cfcfb};}async[_0x491756(0x113)](){const _0x289ecb=_0x491756;this[_0x289ecb(0xff)]instanceof _0x166899?this[_0x289ecb(0x13e)](this[_0x289ecb(0xff)]):this[_0x289ecb(0x12b)](this[_0x289ecb(0xff)][_0x289ecb(0x13a)],_0x289ecb(0x153),(_0x5d02ea,_0x4d6708)=>{const _0x21fc10=_0x289ecb;_0x4d6708['on'](_0x21fc10(0xef),()=>{const _0x532d2d=_0x21fc10;this[_0x532d2d(0x13e)](_0x4d6708);});});}[_0x491756(0x13e)](_0x2498e0){const _0x588a2c=_0x491756;_0x2498e0[_0x588a2c(0x102)][_0x588a2c(0x123)](_0x588a2c(0x10c))[_0x588a2c(0xfa)]({'model':_0x588a2c(0xf7),'view':{'classes':[_0x588a2c(0x125),_0x588a2c(0x127)],'priority':0xc}}),_0x2498e0[_0x588a2c(0x102)][_0x588a2c(0x123)](_0x588a2c(0x14e))[_0x588a2c(0x146)]({'model':_0x588a2c(0xf7),'view':(_0x507387,{writer:_0x125e7a,options:_0x17f4c4})=>_0x17f4c4[_0x588a2c(0x115)]?_0x125e7a[_0x588a2c(0x101)](_0x507387[_0x588a2c(0x12a)]+':'+(_0x507387[_0x588a2c(0xed)]?_0x588a2c(0x134):_0x588a2c(0x135))):null});}[_0x491756(0xf0)](_0x2c9aa9,_0x3d2c17,_0x2f34c9=!0x1,_0x1efd48=!0x1){const _0x22a177=_0x491756;if(this[_0x22a177(0x132)]&&!_0x1efd48)return!0x1;this[_0x22a177(0x13c)]&&this[_0x22a177(0x111)](this[_0x22a177(0x13c)]),this[_0x22a177(0x13c)]=_0x3d2c17,this[_0x22a177(0x132)]=_0x2f34c9;const _0x1cbe1c=_0x4cbcb9(this[_0x22a177(0xff)])[_0x22a177(0x144)];return _0x1cbe1c[_0x22a177(0x13f)](_0x32b85a=>{const _0x133b54=_0x22a177;let _0x4a57d6=0x0;for(let _0x4b7c3c of _0x2c9aa9){const _0x4c32cf=_0x133b54(0x13b)+_0x4a57d6;if(_0x4b7c3c[_0x133b54(0x134)][_0x133b54(0xf1)]){const _0x20f80a=_0x4b7c3c[_0x133b54(0x134)][_0x133b54(0x105)](({item:_0x46574f})=>!_0x1cbe1c[_0x133b54(0x109)][_0x133b54(0x138)](_0x46574f),{'boundaries':_0x4b7c3c});_0x4b7c3c=_0x32b85a[_0x133b54(0x120)](_0x20f80a,_0x4b7c3c[_0x133b54(0x135)]);}_0x32b85a[_0x133b54(0x14d)](_0x4c32cf,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4b7c3c}),_0x4a57d6++;}}),window[_0x22a177(0x12d)]()?.[_0x22a177(0x11b)](),!0x0;}[_0x491756(0x111)](_0x59bdee){const _0x3bd4ba=_0x491756;if(this[_0x3bd4ba(0x13c)]!=_0x59bdee)return!0x1;this[_0x3bd4ba(0x13c)]=null,this[_0x3bd4ba(0x132)]=!0x1;const _0x23ba59=_0x4cbcb9(this[_0x3bd4ba(0xff)]),_0x5a13f1=_0x23ba59[_0x3bd4ba(0x144)][_0x3bd4ba(0x139)][_0x3bd4ba(0x10b)](_0x3bd4ba(0xf7));return _0x23ba59[_0x3bd4ba(0x144)][_0x3bd4ba(0x13f)](_0x55d9ca=>{const _0x4ee45d=_0x3bd4ba;for(const _0x373581 of _0x5a13f1)_0x55d9ca[_0x4ee45d(0x121)](_0x373581);}),!0x0;}[_0x491756(0xf2)](_0x41f500){const _0x2b17ab=_0x491756,_0x17e8e9=_0x4cbcb9(this[_0x2b17ab(0xff)]),_0x48d1f9=_0x17e8e9[_0x2b17ab(0x136)][_0x2b17ab(0x104)](_0x41f500),_0x104af4=new _0x4466ff(_0x17e8e9[_0x2b17ab(0x10d)][_0x2b17ab(0x126)][_0x2b17ab(0x118)]);return this[_0x2b17ab(0xf6)](_0x48d1f9,_0x104af4),_0x48d1f9;}[_0x491756(0xf6)](_0xd421b8,_0x29a366){const _0xd7efa6=_0x491756;let _0x46be35=!0x1;const _0x236320=new Set();for(const _0x1f958d of _0xd421b8[_0xd7efa6(0x151)]()){const _0x43985c=_0x1f958d['is'](_0xd7efa6(0x100))||_0x1f958d['is'](_0xd7efa6(0x13d));if(!_0x1f958d['is'](_0xd7efa6(0x114)))continue;(this[_0xd7efa6(0xf6)](_0x1f958d,_0x29a366)||_0x43985c)&&(_0x29a366[_0xd7efa6(0x108)](_0xd7efa6(0x133),this[_0xd7efa6(0x119)](_0x236320),_0x1f958d),_0x46be35=!0x0);}return _0x46be35;}[_0x491756(0x119)](_0x2729fc){const _0x3586aa=_0x491756;let _0x227ad8;do{_0x227ad8='';for(let _0x122c82=0x0;_0x122c82<0x4;_0x122c82++)_0x227ad8+=String[_0x3586aa(0xfd)](0x61+Math[_0x3586aa(0xfc)](0x1a*Math[_0x3586aa(0x14b)]()));}while(_0x2729fc[_0x3586aa(0x124)](_0x227ad8));return _0x2729fc[_0x3586aa(0x153)](_0x227ad8),_0x227ad8;}[_0x491756(0x149)](){const _0xbe5601=_0x491756,{model:_0x387df8}=_0x4cbcb9(this[_0xbe5601(0xff)]),_0x5c2063=_0x387df8[_0xbe5601(0x118)][_0xbe5601(0x116)],_0x4cc6a8=_0x387df8[_0xbe5601(0xee)](_0x5c2063),_0xcefffc=[],_0x3851d5=_0x387df8[_0xbe5601(0x129)](_0x4cc6a8)[_0xbe5601(0x11c)]();for(const {item:_0x4563f9}of _0x3851d5)_0x4563f9['is'](_0xbe5601(0x150))?_0xcefffc[_0xbe5601(0x137)](_0x4563f9[_0xbe5601(0x136)]):_0x4563f9['is'](_0xbe5601(0x114))&&_0xcefffc[_0xbe5601(0xf8)]>0x0&&'\x20'!==_0xcefffc[_0xcefffc[_0xbe5601(0xf8)]-0x1]&&_0xcefffc[_0xbe5601(0x137)]('\x20');return'\x22'+_0xcefffc[_0xbe5601(0xf3)]('')[_0xbe5601(0x107)]()+'\x22';}[_0x491756(0x112)](){const _0x5ca1b1=_0x491756,_0x512de5=_0x4cbcb9(this[_0x5ca1b1(0xff)])[_0x5ca1b1(0x144)];return Array[_0x5ca1b1(0x103)](_0x512de5[_0x5ca1b1(0x139)][_0x5ca1b1(0x10b)](_0x5ca1b1(0xf7)))[_0x5ca1b1(0x128)]((_0x1d5789,_0x4408d1)=>_0x1d5789[_0x5ca1b1(0x152)]()[_0x5ca1b1(0x11a)](_0x4408d1[_0x5ca1b1(0x152)]())?-0x1:_0x1d5789[_0x5ca1b1(0x152)]()[_0x5ca1b1(0xf9)](_0x4408d1[_0x5ca1b1(0x152)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x35e7(_0x350324,_0x4df084){const _0x1176cb=_0x1176();return _0x35e7=function(_0x35e750,_0x436217){_0x35e750=_0x35e750-0x1d1;let _0x29cfc4=_0x1176cb[_0x35e750];return _0x29cfc4;},_0x35e7(_0x350324,_0x4df084);}const _0x42da4d=_0x35e7;(function(_0x3f7ba9,_0x359584){const _0x139d34=_0x35e7,_0x1e917d=_0x3f7ba9();while(!![]){try{const _0xd98c54=-parseInt(_0x139d34(0x1dd))/0x1*(-parseInt(_0x139d34(0x1e1))/0x2)+parseInt(_0x139d34(0x1e9))/0x3*(parseInt(_0x139d34(0x1ed))/0x4)+-parseInt(_0x139d34(0x1d6))/0x5*(-parseInt(_0x139d34(0x1e2))/0x6)+-parseInt(_0x139d34(0x1d4))/0x7*(-parseInt(_0x139d34(0x1db))/0x8)+-parseInt(_0x139d34(0x1e8))/0x9+parseInt(_0x139d34(0x1da))/0xa*(-parseInt(_0x139d34(0x1e3))/0xb)+-parseInt(_0x139d34(0x1d3))/0xc*(parseInt(_0x139d34(0x1d1))/0xd);if(_0xd98c54===_0x359584)break;else _0x1e917d['push'](_0x1e917d['shift']());}catch(_0x3a33dc){_0x1e917d['push'](_0x1e917d['shift']());}}}(_0x1176,0x6939c));function _0x1176(){const _0x108be5=['_isWebSearchEnabled','capabilitiesUpdated','38qGfUVD','916662uyKNTh','11JtEbWS','isWebSearchEnabled','reset','isReasoningEnabled','webSearch','2576961QCAitY','205449WJwSCb','_isReasoningEnabled','getCapabilitiesRequestData','toggleWebSearch','12fdxkhu','403IHoayq','reasoning','127164svHQTM','7GQkJXh','init','5fsBigW','setReasoning','fire','toggleReasoning','1839370ZPqqBh','5809304MKtqIY','setWebSearch','7652btMKHP','getCapabilitiesConfig'];_0x1176=function(){return _0x108be5;};return _0x1176();}import{EmitterMixin as _0x6f3d96}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x42da4d(0x1e0)];export class AICapabilities extends _0x6f3d96(){[_0x42da4d(0x1df)];[_0x42da4d(0x1ea)];constructor(){const _0x2af172=_0x42da4d;super(),this[_0x2af172(0x1df)]=!0x1,this[_0x2af172(0x1ea)]=!0x1;}[_0x42da4d(0x1d5)](){const _0x57979c=_0x42da4d;this[_0x57979c(0x1e5)]();}[_0x42da4d(0x1e5)](){const _0x4bb568=_0x42da4d;this[_0x4bb568(0x1dc)](!0x1),this[_0x4bb568(0x1d7)](!0x1);}[_0x42da4d(0x1de)](){const _0x5cdc27=_0x42da4d;return{'isWebSearchEnabled':this[_0x5cdc27(0x1df)],'isReasoningEnabled':this[_0x5cdc27(0x1ea)]};}static[_0x42da4d(0x1eb)](_0x39254e){const _0x14a589=_0x42da4d,_0x1a1fd4={};return _0x39254e&&_0x39254e[_0x14a589(0x1e4)]&&(_0x1a1fd4[_0x14a589(0x1e7)]={}),_0x39254e&&_0x39254e[_0x14a589(0x1e6)]&&(_0x1a1fd4[_0x14a589(0x1d2)]={}),_0x1a1fd4;}[_0x42da4d(0x1ec)](){const _0x58478c=_0x42da4d;this[_0x58478c(0x1dc)](!this[_0x58478c(0x1df)]);}[_0x42da4d(0x1d9)](){const _0x5983bc=_0x42da4d;this[_0x5983bc(0x1d7)](!this[_0x5983bc(0x1ea)]);}[_0x42da4d(0x1dc)](_0x423409){const _0x217149=_0x42da4d;_0x423409!==this[_0x217149(0x1df)]&&(this[_0x217149(0x1df)]=_0x423409,this[_0x217149(0x1d8)](_0x217149(0x1e0),this[_0x217149(0x1de)]()));}[_0x42da4d(0x1d7)](_0x421b49){const _0xec3663=_0x42da4d;_0x421b49!==this[_0xec3663(0x1ea)]&&(this[_0xec3663(0x1ea)]=_0x421b49,this[_0xec3663(0x1d8)](_0xec3663(0x1e0),this[_0xec3663(0x1de)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4bec3d,_0x4bec94){var _0x4e3f4f=_0x5e73,_0x3eeeb1=_0x4bec3d();while(!![]){try{var _0x3f8913=parseInt(_0x4e3f4f(0xb5))/0x1*(-parseInt(_0x4e3f4f(0xa9))/0x2)+-parseInt(_0x4e3f4f(0xa7))/0x3*(-parseInt(_0x4e3f4f(0xb6))/0x4)+parseInt(_0x4e3f4f(0xa8))/0x5+parseInt(_0x4e3f4f(0xaf))/0x6+parseInt(_0x4e3f4f(0xa4))/0x7*(parseInt(_0x4e3f4f(0xb0))/0x8)+parseInt(_0x4e3f4f(0xb3))/0x9+-parseInt(_0x4e3f4f(0xa3))/0xa;if(_0x3f8913===_0x4bec94)break;else _0x3eeeb1['push'](_0x3eeeb1['shift']());}catch(_0x567dc4){_0x3eeeb1['push'](_0x3eeeb1['shift']());}}}(_0x21d2,0xaaf0b));export var AIContextItemType;function _0x5e73(_0xb6912c,_0x37db94){var _0x21d2b1=_0x21d2();return _0x5e73=function(_0x5e73ff,_0x5767cd){_0x5e73ff=_0x5e73ff-0xa0;var _0xbe3c25=_0x21d2b1[_0x5e73ff];return _0xbe3c25;},_0x5e73(_0xb6912c,_0x37db94);}function _0x21d2(){var _0x45c2ca=['FILE','selection','TEXT','2396388GOILIl','176WZphUy','SELECTION','document','2067660ukpmrw','file','807026SgqEBm','34084yxsbps','URL','html','text','DOCUMENT','3568210fchNht','97279cktGNW','markdown','web-resource','60WliEiR','3793630IZEARY','2QgDTpr','HTML','MARKDOWN'];_0x21d2=function(){return _0x45c2ca;};return _0x21d2();}!function(_0x378f58){var _0x4c4bb9=_0x5e73;_0x378f58[_0x4c4bb9(0xac)]=_0x4c4bb9(0xb4),_0x378f58[_0x4c4bb9(0xa2)]=_0x4c4bb9(0xb2),_0x378f58[_0x4c4bb9(0xb7)]=_0x4c4bb9(0xa6),_0x378f58[_0x4c4bb9(0xae)]=_0x4c4bb9(0xa1),_0x378f58[_0x4c4bb9(0xb1)]=_0x4c4bb9(0xad);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x3d455b){var _0x523b70=_0x5e73;_0x3d455b[_0x523b70(0xae)]=_0x523b70(0xa1),_0x3d455b[_0x523b70(0xab)]=_0x523b70(0xa5),_0x3d455b[_0x523b70(0xaa)]=_0x523b70(0xa0);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a61cc=_0x4cac;(function(_0x2345d2,_0x4265de){const _0x4562c9=_0x4cac,_0xe9e6b2=_0x2345d2();while(!![]){try{const _0x216b00=-parseInt(_0x4562c9(0xee))/0x1*(-parseInt(_0x4562c9(0xdf))/0x2)+parseInt(_0x4562c9(0x11d))/0x3*(-parseInt(_0x4562c9(0x119))/0x4)+parseInt(_0x4562c9(0xe1))/0x5+-parseInt(_0x4562c9(0xec))/0x6*(parseInt(_0x4562c9(0x101))/0x7)+parseInt(_0x4562c9(0x11e))/0x8*(-parseInt(_0x4562c9(0x105))/0x9)+-parseInt(_0x4562c9(0xe6))/0xa+parseInt(_0x4562c9(0x125))/0xb;if(_0x216b00===_0x4265de)break;else _0xe9e6b2['push'](_0xe9e6b2['shift']());}catch(_0x3db669){_0xe9e6b2['push'](_0xe9e6b2['shift']());}}}(_0x1e36,0x8800d));function _0x4cac(_0x104f8f,_0xd91506){const _0x1e36ee=_0x1e36();return _0x4cac=function(_0x4cacfb,_0x4cd765){_0x4cacfb=_0x4cacfb-0xdf;let _0x823fcf=_0x1e36ee[_0x4cacfb];return _0x823fcf;},_0x4cac(_0x104f8f,_0xd91506);}import{CKEditorError as _0x28ac0c,EmitterMixin as _0x307d1b,logWarning as _0xb9849,uid as _0x5ef6de}from'ckeditor5/src/utils.js';import{AIReply as _0x2171e9,isIgnoredReplyType as _0x1c2d73,isValidReplyType as _0x1a70e2,isReplyTitleType as _0x35e2ab,isSourceType as _0x380c18}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x1a61cc(0x122),_0x1a61cc(0x121),_0x1a61cc(0xfd),_0x1a61cc(0x11f),_0x1a61cc(0xf4),_0x1a61cc(0x114),_0x1a61cc(0x126),_0x1a61cc(0x10a),_0x1a61cc(0xe7),_0x1a61cc(0x102),_0x1a61cc(0x106),_0x1a61cc(0x124),_0x1a61cc(0xea),_0x1a61cc(0xfc)];function _0x1e36(){const _0x5d7d67=['conversationTitle','reasoningStarted','30381978UTtBWZ','replyContentUpdated','459942CzrXVt','editor','41180APlNyv','actionCallId','sources','abort','appendContent','10285100siwGcg','setConversationTitle','currentReply','abortController','reasoningFinished','push','114tJBgrB','_isWebSearching','2xPLqpF','sendRequest','data','getStream','messageId','delegate','interactionDestroyed','textDelta','web-search','stopListening','modification-delta','reasoning','_isReasoning','replies','error','interactionStopped','destroy','done','content','57953BAnNtD','webSearchStarted','getDocumentContext','_finalizeInteraction','41913mFarie','webSearchFinished','isDestroyed','ai-chat-interaction-error','connector','replyChangeGroupStateUpdated','find','fire','createReply','forEach','source','start','length','ai-interaction-invalid-event-type','action-metadata','replyCreated','callId','stop','currentRequest','splice','4123640BElJVN','isStopped','message-metadata','event','3RRHvoJ','784uWNJqR','interactionFinished','getReply','interactionStarted','interactionCreated'];_0x1e36=function(){return _0x5d7d67;};return _0x1e36();}export class AIInteraction extends _0x307d1b(){['id'];[_0x1a61cc(0xfb)]=[];[_0x1a61cc(0xe8)];[_0x1a61cc(0xf2)];[_0x1a61cc(0xe2)];[_0x1a61cc(0x117)];[_0x1a61cc(0x109)];[_0x1a61cc(0x11a)]=!0x1;[_0x1a61cc(0x107)]=!0x1;[_0x1a61cc(0xe0)];[_0x1a61cc(0xfa)]=!0x1;[_0x1a61cc(0xed)]=!0x1;constructor({connector:_0xb7327a,editor:_0x160bf5}){const _0x51cac1=_0x1a61cc;super(),this['id']=_0x5ef6de(),this[_0x51cac1(0x109)]=_0xb7327a,this[_0x51cac1(0x11a)]=!0x0,this[_0x51cac1(0xe0)]=_0x160bf5;}async[_0x1a61cc(0x110)](){const _0x112edf=_0x1a61cc;let _0x32ef56;const _0xe4e09b=[];this[_0x112edf(0x11a)]=!0x1;try{this[_0x112edf(0x117)]=await this[_0x112edf(0xef)](),this[_0x112edf(0x10c)](_0x112edf(0x121),this);const _0x14b88f=await this[_0x112edf(0x117)][_0x112edf(0xf1)]();for await(const _0x10b001 of _0x14b88f){if(this[_0x112edf(0x11a)])return;if(_0x112edf(0xfc)===_0x10b001[_0x112edf(0x11c)])return void this[_0x112edf(0x10c)](_0x112edf(0xfc),{'error':new _0x28ac0c(_0x112edf(0x108),this)});if(_0x112edf(0x11b)!==_0x10b001[_0x112edf(0x11c)]){if(_0x112edf(0x113)!==_0x10b001[_0x112edf(0x11c)]){if(_0x35e2ab(_0x10b001[_0x112edf(0x11c)])&&this[_0x112edf(0xe7)](_0x10b001[_0x112edf(0xf0)][_0x112edf(0x123)],!0x0),_0x380c18(_0x10b001[_0x112edf(0x11c)]))_0xe4e09b[_0x112edf(0xeb)](_0x10b001[_0x112edf(0xf0)][_0x112edf(0x10f)]);else{if(_0x1a70e2(_0x10b001[_0x112edf(0x11c)])){if(_0x10b001[_0x112edf(0x11c)]!==_0x32ef56){if(_0x32ef56=_0x10b001[_0x112edf(0x11c)],_0x112edf(0xf6)===_0x10b001[_0x112edf(0x11c)]){this[_0x112edf(0xed)]||(this[_0x112edf(0xed)]=!0x0,this[_0x112edf(0x10c)](_0x112edf(0x102),this));continue;}if(_0x112edf(0xf9)===_0x10b001[_0x112edf(0x11c)]){this[_0x112edf(0xfa)]||(this[_0x112edf(0xfa)]=!0x0,this[_0x112edf(0x10c)](_0x112edf(0x124),this));continue;}this[_0x112edf(0xfa)]&&(this[_0x112edf(0xfa)]=!0x1,this[_0x112edf(0x10c)](_0x112edf(0xea),this)),this[_0x112edf(0xed)]&&(this[_0x112edf(0xed)]=!0x1,this[_0x112edf(0x10c)](_0x112edf(0x106),this)),this[_0x112edf(0xe8)]&&this[_0x112edf(0xe8)][_0x112edf(0xff)](),this[_0x112edf(0xe8)]=this[_0x112edf(0x10d)]({'type':_0x10b001[_0x112edf(0x11c)],'interactionId':this['id']}),_0xe4e09b[_0x112edf(0x111)]>0x0&&_0x112edf(0xf8)===_0x10b001[_0x112edf(0x11c)]&&(this[_0x112edf(0xe8)][_0x112edf(0xe3)]=_0xe4e09b[_0x112edf(0x118)](0x0));}_0x10b001[_0x112edf(0xf0)][_0x112edf(0xf5)]&&this[_0x112edf(0xe8)][_0x112edf(0xe5)](_0x10b001[_0x112edf(0xf0)][_0x112edf(0xf5)]);}else _0x1c2d73(_0x10b001[_0x112edf(0x11c)])||_0xb9849(_0x112edf(0x112),{'chunk':_0x10b001});}}else this[_0x112edf(0xe2)]=_0x10b001[_0x112edf(0xf0)][_0x112edf(0x115)];}else this[_0x112edf(0xf2)]=_0x10b001[_0x112edf(0xf0)]['id'];}}finally{this[_0x112edf(0x11a)]||(_0xe4e09b[_0x112edf(0x111)]>0x0&&(this[_0x112edf(0xe8)][_0x112edf(0xe3)]=_0xe4e09b[_0x112edf(0x118)](0x0)),this[_0x112edf(0x104)](),this[_0x112edf(0x10c)](_0x112edf(0x11f),this));}}[_0x1a61cc(0x116)](){const _0x1d8110=_0x1a61cc;this[_0x1d8110(0x11a)]||(this[_0x1d8110(0x104)](),this[_0x1d8110(0x10c)](_0x1d8110(0xfd),this));}[_0x1a61cc(0x120)](_0x315890){const _0x504142=_0x1a61cc;return this[_0x504142(0xfb)][_0x504142(0x10b)](_0x54fc68=>_0x54fc68['id']===_0x315890);}[_0x1a61cc(0xfe)](){const _0x1fbd9f=_0x1a61cc;this[_0x1fbd9f(0x107)]||(this[_0x1fbd9f(0x116)](),this[_0x1fbd9f(0xfb)][_0x1fbd9f(0x10e)](_0x4cd012=>_0x4cd012[_0x1fbd9f(0xfe)]()),this[_0x1fbd9f(0xfb)]=[],this[_0x1fbd9f(0x107)]=!0x0,this[_0x1fbd9f(0x10c)](_0x1fbd9f(0xf4),this),this[_0x1fbd9f(0xf7)]());}[_0x1a61cc(0x10d)](_0x4574c3){const _0x361ff4=_0x1a61cc,_0x2c59e9=new _0x2171e9({'editor':this[_0x361ff4(0xe0)],'documentContextContent':this[_0x361ff4(0x103)]()?.[_0x361ff4(0x100)],..._0x4574c3});return this[_0x361ff4(0xfb)][_0x361ff4(0xeb)](_0x2c59e9),_0x2c59e9[_0x361ff4(0xf3)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x361ff4(0x10c)](_0x361ff4(0x114),_0x2c59e9),_0x2c59e9;}[_0x1a61cc(0xe7)](_0x201525,_0x500e00=!0x1){const _0x3a3832=_0x1a61cc;this[_0x3a3832(0x10c)](_0x3a3832(0xe7),_0x201525,_0x500e00);}[_0x1a61cc(0x104)](){const _0x10b497=_0x1a61cc;this[_0x10b497(0x11a)]=!0x0,this[_0x10b497(0x117)]&&this[_0x10b497(0x117)][_0x10b497(0xe9)][_0x10b497(0xe4)](),this[_0x10b497(0xe8)]&&this[_0x10b497(0xe8)][_0x10b497(0xff)](),this[_0x10b497(0x117)]=this[_0x10b497(0xe8)]=void 0x0;}}
|
|
@@ -167,7 +167,7 @@ export type AIReplyChangeGroup = {
|
|
|
167
167
|
readonly index: number;
|
|
168
168
|
state: AIReplyChangeGroupState;
|
|
169
169
|
};
|
|
170
|
-
export type AIReplyChangeGroupState = 'pending' | 'accepted' | 'rejected';
|
|
170
|
+
export type AIReplyChangeGroupState = 'pending' | 'accepted' | 'rejected' | 'outdated';
|
|
171
171
|
export type AIReplySource = {
|
|
172
172
|
type: string;
|
|
173
173
|
id: string;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc9f92c=_0x2ee2;(function(_0x6cdd5d,_0x165e7c){const _0x209b2c=_0x2ee2,_0xad3ffe=_0x6cdd5d();while(!![]){try{const _0x48d527=-parseInt(_0x209b2c(0xcb))/0x1*(parseInt(_0x209b2c(0xc0))/0x2)+-parseInt(_0x209b2c(0x9c))/0x3+-parseInt(_0x209b2c(0x86))/0x4*(-parseInt(_0x209b2c(0xc2))/0x5)+parseInt(_0x209b2c(0xbf))/0x6*(-parseInt(_0x209b2c(0x9b))/0x7)+parseInt(_0x209b2c(0xbe))/0x8*(-parseInt(_0x209b2c(0xc3))/0x9)+parseInt(_0x209b2c(0xa4))/0xa*(parseInt(_0x209b2c(0x93))/0xb)+-parseInt(_0x209b2c(0x89))/0xc*(-parseInt(_0x209b2c(0xa7))/0xd);if(_0x48d527===_0x165e7c)break;else _0xad3ffe['push'](_0xad3ffe['shift']());}catch(_0x3ca6e2){_0xad3ffe['push'](_0xad3ffe['shift']());}}}(_0xac1b,0xb577d));function _0x2ee2(_0x104864,_0x3ca53e){const _0xac1b68=_0xac1b();return _0x2ee2=function(_0x2ee2a9,_0x53f83c){_0x2ee2a9=_0x2ee2a9-0x83;let _0x4d2be8=_0xac1b68[_0x2ee2a9];return _0x4d2be8;},_0x2ee2(_0x104864,_0x3ca53e);}import{ObservableMixin as _0x5c0b84,uid as _0x413373}from'ckeditor5/src/utils.js';import{Element as _0x5db849,findAll as _0x13ee7a,getAttribute as _0x1d18ec,getParents as _0x531ca8,Document as _0x106310,parse as _0x3a86de,Text as _0x1e9456}from'../utils/htmlparser.js';import{AIResponseParser as _0x565bd7}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x1e20ae}from'../pipeline/airesponseapplier.js';import{getTranslation as _0x2dadae}from'../utils/common-translations.js';export const AI_REPLY_TYPES=[_0xc9f92c(0xc9),_0xc9f92c(0xcc),_0xc9f92c(0xa0),_0xc9f92c(0x8a)];function _0xac1b(){const _0x3b1af3=['aiResponseApplier','modifiedNodeIds','setChangeGroupState','newNodeIds','595JLPNIF','1858572qZicVM','removed','cloneNode','unshift','web-search','fire','map','locale','20ElfYfU','areActionsDisabled','content','20727772AXzpdr','data-unstable','done','replyContentUpdated','includes','change:content','destroy','parsedMergedContent','editor','forEach','documentContextContent','conversation-title','merge','node','push','changes','color:\x20#808080;\x20font-style:\x20italic','replyChangeGroupStateUpdated','convertMarkdownToHTML','stopListening','aiResponseParser','onContentChange','context','2958808BfeFpI','76638FlzMsB','2LkmBAT','set','685PnRaeH','27JEUnfH','_getDifferentChangeGroups','state','nextSibling','parseAndNormalizeHTML','appendContent','modification-delta','interactionId','849463ltkbiJ','text-delta','previousSibling','parsedContent','sources','every','AI_SUGGESTION_CONTENT_PART_REMOVED','filter','source','42056RtrIyD','index','updateChangeGroups','12vfgpuo','reasoning','length','modified','values','data-id','removedNodeIds','isDone','new','changeGroups','7549718cDSVUR','span','type','pending'];_0xac1b=function(){return _0x3b1af3;};return _0xac1b();}export const AI_REPLY_TYPES_IGNORED=[_0xc9f92c(0xb2)];export const AI_REPLY_TITLE_TYPE=_0xc9f92c(0xb2);export class AIReply extends _0x5c0b84(){['id'];[_0xc9f92c(0xca)];[_0xc9f92c(0x95)];[_0xc9f92c(0xcf)]=[];[_0xc9f92c(0xce)]=new _0x106310([]);[_0xc9f92c(0xae)]=new _0x106310([]);[_0xc9f92c(0x92)]=[];[_0xc9f92c(0xa5)]=!0x1;[_0xc9f92c(0xb1)];[_0xc9f92c(0xbb)];[_0xc9f92c(0x97)];[_0xc9f92c(0xaf)];constructor({type:_0x788797,content:_0x2073f7='',isDone:_0x471748=!0x1,interactionId:_0x4f72d8,areActionsDisabled:_0x5a00af,documentContextContent:_0x29c714,editor:_0x26dbaa}){const _0x51e08b=_0xc9f92c;super(),this['id']=_0x413373(),this[_0x51e08b(0xca)]=_0x4f72d8,this[_0x51e08b(0x95)]=_0x788797,this[_0x51e08b(0xa5)]=!!_0x5a00af,this[_0x51e08b(0xaf)]=_0x26dbaa,this[_0x51e08b(0xbb)]=new _0x565bd7(),this[_0x51e08b(0x97)]=new _0x1e20ae(),this[_0x51e08b(0xb1)]=_0x3a86de(_0x29c714||''),this[_0x51e08b(0xc1)](_0x51e08b(0x90),_0x471748),this['on'](_0x51e08b(0xac),()=>{const _0x25e991=_0x51e08b;this[_0x25e991(0xbc)]();}),this[_0x51e08b(0xc1)](_0x51e08b(0xa6),_0x2073f7);}[_0xc9f92c(0xc8)](_0x1b64a5){const _0x1e2a20=_0xc9f92c;this[_0x1e2a20(0xc1)](_0x1e2a20(0xa6),this[_0x1e2a20(0xa6)]+_0x1b64a5);}[_0xc9f92c(0xa9)](){const _0x324b17=_0xc9f92c;this[_0x324b17(0x90)]||(this[_0x324b17(0xc1)](_0x324b17(0x90),!0x0),this[_0x324b17(0xbc)]());}[_0xc9f92c(0xad)](){const _0x176e07=_0xc9f92c;this[_0x176e07(0xba)]();}[_0xc9f92c(0x99)](_0x4ba3cb,_0x48fb46){const _0xc1db74=_0xc9f92c;this[_0xc1db74(0x92)][_0x4ba3cb][_0xc1db74(0xc5)]=_0x48fb46,this[_0xc1db74(0xa1)](_0xc1db74(0xb8),{'reply':this,'index':_0x4ba3cb,'state':_0x48fb46});}[_0xc9f92c(0xbc)](){const _0xa0f5b5=_0xc9f92c;if(_0xa0f5b5(0xc9)===this[_0xa0f5b5(0x95)]){this[_0xa0f5b5(0xce)]=this[_0xa0f5b5(0xbb)][_0xa0f5b5(0xc7)](this[_0xa0f5b5(0xa6)]);const _0x338bb4=this[_0xa0f5b5(0x92)];this[_0xa0f5b5(0x88)]();const _0x37aefa=this[_0xa0f5b5(0xc4)](_0x338bb4,this[_0xa0f5b5(0x92)]);(_0x37aefa[_0xa0f5b5(0x8b)]||this[_0xa0f5b5(0x90)])&&this[_0xa0f5b5(0xa1)](_0xa0f5b5(0xaa),this,_0x37aefa);}else this[_0xa0f5b5(0xce)]=this[_0xa0f5b5(0xbb)][_0xa0f5b5(0xb9)](this[_0xa0f5b5(0xa6)]),this[_0xa0f5b5(0xa1)](_0xa0f5b5(0xaa),this);}[_0xc9f92c(0xc4)](_0x51f02e,_0x23fe94){const _0x1bbb84=_0xc9f92c,_0xb89622=[];for(const _0x33cfa3 of _0x23fe94){const _0x3e3b25=_0x51f02e[_0x33cfa3[_0x1bbb84(0x87)]];_0x3e3b25?_0x3e3b25[_0x1bbb84(0xb6)][_0x1bbb84(0x8b)]!==_0x33cfa3[_0x1bbb84(0xb6)][_0x1bbb84(0x8b)]?_0xb89622[_0x1bbb84(0xb5)](_0x33cfa3):_0x3e3b25[_0x1bbb84(0xb6)][_0x1bbb84(0xb0)]((_0x426c07,_0x4f0d4e)=>{const _0x107bc9=_0x1bbb84,_0x4e3a80=_0x33cfa3[_0x107bc9(0xb6)][_0x4f0d4e];_0x426c07['id']!==_0x4e3a80['id']&&_0xb89622[_0x107bc9(0xb5)](_0x33cfa3);}):_0xb89622[_0x1bbb84(0xb5)](_0x33cfa3);}return _0xb89622;}[_0xc9f92c(0x88)](){const _0x5f16b7=_0xc9f92c,_0x2e67b6=new _0x5db849('p',{},[new _0x5db849(_0x5f16b7(0x94),{'style':_0x5f16b7(0xb7)},[new _0x1e9456(_0x2dadae(this[_0x5f16b7(0xaf)][_0x5f16b7(0xa3)],_0x5f16b7(0x83)))])]),_0x2d2cac=this[_0x5f16b7(0x97)][_0x5f16b7(0xb3)](this[_0x5f16b7(0xce)],this[_0x5f16b7(0xb1)][_0x5f16b7(0x9e)](!0x0),{'markUnstableElements':!this[_0x5f16b7(0x90)],'replaceRemovedWith':_0x2e67b6,'cutAfterLastChange':!this[_0x5f16b7(0x90)]});if(!_0x2d2cac[_0x5f16b7(0x98)][_0x5f16b7(0x8b)]&&!this[_0x5f16b7(0x90)])return;this[_0x5f16b7(0xae)]=_0x2d2cac[_0x5f16b7(0xce)];let _0x33ef93=[];if(_0x13ee7a(_0x35284d=>{const _0x24de35=_0x5f16b7,_0x220883=_0x1d18ec(_0x35284d,_0x24de35(0x8e));if(!_0x220883||!_0x4b3288(_0x220883))return!0x1;const _0x58dba3=[_0x35284d,..._0x531ca8(_0x35284d)]['at'](-0x2);if(_0x35284d!=_0x58dba3){const _0x1f3233=_0x1d18ec(_0x58dba3,_0x24de35(0x8e));_0x4b3288(_0x1f3233)||(_0x33ef93[_0x24de35(0xb5)]({'node':_0x58dba3,'id':_0x1f3233,'type':_0x24de35(0x8c)}),_0x2d2cac[_0x24de35(0x98)][_0x24de35(0xb5)](_0x1f3233));}else _0x2d2cac[_0x24de35(0x98)][_0x24de35(0xab)](_0x220883)?_0x33ef93[_0x24de35(0xb5)]({'node':_0x35284d,'type':_0x24de35(0x8c),'id':_0x220883}):_0x2d2cac[_0x24de35(0x9a)][_0x24de35(0xab)](_0x220883)?_0x33ef93[_0x24de35(0xb5)]({'node':_0x35284d,'type':_0x24de35(0x91),'id':_0x220883,'anchorId':_0x1d18ec(_0x35284d[_0x24de35(0xcd)],_0x24de35(0x8e))}):_0x33ef93[_0x24de35(0xb5)]({'node':_0x35284d,'type':_0x24de35(0x9d),'id':_0x220883});return!0x0;},this[_0x5f16b7(0xae)]),_0x33ef93=_0x33ef93[_0x5f16b7(0x84)](({node:_0x4e8c7d})=>[..._0x531ca8(_0x4e8c7d),_0x4e8c7d][_0x5f16b7(0xd0)](_0x26d69f=>!_0x1d18ec(_0x26d69f,_0x5f16b7(0xa8)))),0x0==_0x33ef93[_0x5f16b7(0x8b)])return;const _0x39e473=[[_0x33ef93[0x0]]];for(let _0x213f68=0x1;_0x213f68<_0x33ef93[_0x5f16b7(0x8b)];_0x213f68++){const _0x238f27=_0x39e473[_0x39e473[_0x5f16b7(0x8b)]-0x1],_0x52ea13=_0x238f27[_0x238f27[_0x5f16b7(0x8b)]-0x1];_0x33ef93[_0x213f68][_0x5f16b7(0xb4)][_0x5f16b7(0xcd)]==_0x52ea13[_0x5f16b7(0xb4)]&&_0x5f16b7(0x8c)!=_0x33ef93[_0x213f68][_0x5f16b7(0x95)]&&_0x5f16b7(0x8c)!=_0x52ea13[_0x5f16b7(0x95)]?_0x238f27[_0x5f16b7(0xb5)](_0x33ef93[_0x213f68]):_0x39e473[_0x5f16b7(0xb5)]([_0x33ef93[_0x213f68]]);}for(const _0x1c9223 of _0x39e473){const _0x4599a6=_0x1c9223[0x0],_0x8e3ad1=_0x1c9223[_0x1c9223[_0x5f16b7(0x8b)]-0x1],_0xe69de0=_0x1fcd9b(_0x4599a6[_0x5f16b7(0xb4)][_0x5f16b7(0xcd)]);_0xe69de0&&_0x1c9223[_0x5f16b7(0x9f)](_0xe69de0);const _0x10bc48=_0x1fcd9b(_0x8e3ad1[_0x5f16b7(0xb4)][_0x5f16b7(0xc6)]);_0x10bc48&&_0x1c9223[_0x5f16b7(0xb5)](_0x10bc48);}function _0x4b3288(_0x35ed27){const _0x4c1ca9=_0x5f16b7;return _0x2d2cac[_0x4c1ca9(0x98)][_0x4c1ca9(0xab)](_0x35ed27)||_0x2d2cac[_0x4c1ca9(0x9a)][_0x4c1ca9(0xab)](_0x35ed27)||_0x2d2cac[_0x4c1ca9(0x8f)][_0x4c1ca9(0xab)](_0x35ed27);}function _0x1fcd9b(_0x57c33f){const _0x2f6d8b=_0x5f16b7;if(_0x57c33f&&_0x1d18ec(_0x57c33f,_0x2f6d8b(0x8e))&&!_0x1d18ec(_0x57c33f,_0x2f6d8b(0xa8))){const _0x42fa7b=_0x1d18ec(_0x57c33f,_0x2f6d8b(0x8e));if(!_0x4b3288(_0x42fa7b))return{'node':_0x57c33f,'type':_0x2f6d8b(0xbd),'id':_0x42fa7b};}return null;}this[_0x5f16b7(0x92)]=_0x39e473[_0x5f16b7(0xa2)]((_0x11dcfb,_0xe4ebe9)=>({'changes':_0x11dcfb,'state':_0x5f16b7(0x96),'index':_0xe4ebe9}));}}export function isValidReplyType(_0x16bb1c){const _0xf7877=_0xc9f92c;return Object[_0xf7877(0x8d)](AI_REPLY_TYPES)[_0xf7877(0xab)](_0x16bb1c);}export function isIgnoredReplyType(_0x133d36){const _0x39cc44=_0xc9f92c;return AI_REPLY_TYPES_IGNORED[_0x39cc44(0xab)](_0x133d36);}export function isReplyTitleType(_0x12be95){return _0x12be95===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x57ffc2){const _0x586199=_0xc9f92c;return _0x586199(0x85)===_0x57ffc2;}
|