@ckeditor/ckeditor5-ai 47.0.0-alpha.5 → 47.0.0-alpha.7
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/LICENSE.md +4 -0
- package/build/ai.js +1 -1
- package/ckeditor5-metadata.json +14 -0
- package/dist/index-editor.css +70 -19
- package/dist/index.css +80 -19
- 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 +6 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +0 -2
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
- 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.d.ts +3 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +4 -0
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +9 -2
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +6 -0
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +4 -0
- 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.d.ts +1 -0
- 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.d.ts +8 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
- 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 +17 -0
- package/src/aicore/aiconnector.d.ts +13 -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.d.ts +41 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.d.ts +2 -2
- 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.d.ts +16 -0
- 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.d.ts +35 -0
- package/src/aieditorintegration/aieditorintegration.js +23 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +38 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +23 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +16 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +23 -0
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/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.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.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -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/aireviewmodeformamanager.js +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 +6 -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/augmentation.d.ts +6 -0
- package/src/index.d.ts +4 -1
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +17 -4
- package/theme/aichat/aichat-controls.css +6 -0
- package/theme/aichat/aichat.css +2 -0
- package/theme/aichat/aichathistory.css +26 -9
- package/theme/aichat/aiminitoolbar.css +8 -0
- package/theme/aichat/aisuggestioncontainer.css +14 -2
- package/theme/aireviewmode/aireviewmode-check-run-result.css +6 -0
- package/theme/aitabs/aitabsview.css +6 -1
- package/theme/common/aibutton.css +0 -4
- package/theme/common/aiheader.css +1 -0
- package/src/aiquickactions/utils/common-translations.d.ts +0 -9
- package/src/aiquickactions/utils/common-translations.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x30f87b=_0x5789;(function(_0x5d2b07,_0x4eb62){const _0x3ce0f9=_0x5789,_0x995c5=_0x5d2b07();while(!![]){try{const _0x361a63=-parseInt(_0x3ce0f9(0x142))/0x1+parseInt(_0x3ce0f9(0x13d))/0x2*(parseInt(_0x3ce0f9(0x131))/0x3)+parseInt(_0x3ce0f9(0x13a))/0x4*(-parseInt(_0x3ce0f9(0xf0))/0x5)+-parseInt(_0x3ce0f9(0x12a))/0x6*(parseInt(_0x3ce0f9(0x111))/0x7)+parseInt(_0x3ce0f9(0x10a))/0x8+-parseInt(_0x3ce0f9(0x12f))/0x9+parseInt(_0x3ce0f9(0x122))/0xa;if(_0x361a63===_0x4eb62)break;else _0x995c5['push'](_0x995c5['shift']());}catch(_0x1bfb74){_0x995c5['push'](_0x995c5['shift']());}}}(_0x2bb7,0x9557c));import{ListItemView as _0x1809a9,HighlightedTextView as _0x4844ea,ButtonView as _0x255769,ListView as _0x4d29de,IconView as _0xd5fa86,createDropdown as _0x2df969,InputTextView as _0x247e66}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x597846,IconPin as _0x13b0e9,IconCheck as _0x40981d,IconCancel as _0x141836}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x12ed79,ConfirmMixin as _0x270a0e}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x2bb7(){const _0x2b0b93=['createCollection','span','AI_CHAT_HISTORY_LOADING_UNPINNING','items','_createPinButtonView','bind','key','AI_CHAT_HISTORY_LOADING_PINNING','updateTitle','AI_CHAT_HISTORY_LOADING_RENAMING','AI_CHAT_HISTORY_CANCEL','panelPosition','children','click','add','_createMenuDropdownView','withText','ck-ai-loader','ck-ai-chat-history__item--active','3665936qZdwbP','locale','isVisible','set','match','removeConversation','setConversationPinned','147oAGzPl','_createEditInputView','AI_CHAT_HISTORY_EDIT_NAME','ck-ai-chat-history__item-check-container','showConfirm','ck-ai-chat-history__item','clear','editConversationTitle','label','updateLoadingState','then','highlightText','div','ck-ai-chat-history__item--edit','_createAcceptEditButtonView','edit:cancel','buttonView','25864680XhpkIV','_titleView','listitem','ck-ai-chat-history__item-content','ck-ai-chat-history__item-main-content','_commitEditInputValue','execute','focus','53796AIoibD','Enter','ck-hidden','value','AI_CHAT_HISTORY_ACCEPT','6761889KAUoTL','ck-ai-chat-history__item-actions','6lVBSgP','change:isEdit','element','bindTemplate','extendTemplate','pinned','panelView','string','isOn','8uIzcof','fire','LOADING_LABELS','148756BPLbKo','AI_CHAT_HISTORY_REMOVE_CONFIRM','isMatching','_createSpinnerView','ck-confirm-view-cancel','727353pnDgFT','text','AI_CHAT_HISTORY_REMOVE','tiny','ck-ai-loader__text','_createCancelEditButtonView','_createCheckView','addMany','setTemplate','AI_CHAT_HISTORY_LOADING_REMOVING','isEdit','ck-confirm-view-submit','selectConversation','ck-ai-chat-history__item-check','ck-ai-chat-history__item-date','AI_CHAT_HISTORY_PIN_BUTTON','2286995HHmbPI','loadingState','actions','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','mainContent','ck-ai-chat-history__item-title','ck-ai-chat-history__item-row'];_0x2bb7=function(){return _0x2b0b93;};return _0x2bb7();}function _0x5789(_0x4c9552,_0x66d130){const _0x2bb7ba=_0x2bb7();return _0x5789=function(_0x5789f3,_0x3a1109){_0x5789f3=_0x5789f3-0xe7;let _0x425178=_0x2bb7ba[_0x5789f3];return _0x425178;},_0x5789(_0x4c9552,_0x66d130);}import{escape as _0x592aee}from'es-toolkit/compat';import{AISpinnerView as _0x377153}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x597c78}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0x270a0e(_0x1809a9){['id'];static [_0x30f87b(0x13c)]={'remove':_0x30f87b(0xe9),'rename':_0x30f87b(0x100),'pin':_0x30f87b(0xfe),'unpin':_0x30f87b(0xf9)};[_0x30f87b(0xf2)];[_0x30f87b(0xf4)];[_0x30f87b(0x123)];constructor(_0x4279fd,_0x2d02b0){const _0x18cc19=_0x30f87b;super(_0x4279fd);const _0x22ddc0=this[_0x18cc19(0x134)];this[_0x18cc19(0x10d)](_0x18cc19(0xea),!0x1),this[_0x18cc19(0x10d)](_0x18cc19(0x10c),!0x0),this[_0x18cc19(0x10d)](_0x18cc19(0x136),!!_0x2d02b0[_0x18cc19(0x136)]),this[_0x18cc19(0x10d)](_0x18cc19(0xf1),null),this['id']=_0x2d02b0['id'];const {title:_0x110b40,createdAt:_0x566ae9,active:_0x183c87=!0x1}=_0x2d02b0;this[_0x18cc19(0x123)]=new _0x4844ea(),this[_0x18cc19(0x123)][_0x18cc19(0x143)]=_0x110b40,this[_0x18cc19(0x123)][_0x18cc19(0x135)]({'attributes':{'class':[_0x18cc19(0xf5)]}});const _0x3330b8=this[_0x18cc19(0x148)](),_0x258b2b=this[_0x18cc19(0xfb)](_0x4279fd),_0x13447c=this[_0x18cc19(0x106)](),_0x9a9d32=this[_0x18cc19(0x112)](_0x4279fd,_0x110b40),_0x157da9=this[_0x18cc19(0x11f)](_0x4279fd,_0x9a9d32),_0x40fee0=this[_0x18cc19(0x147)](_0x4279fd,_0x9a9d32);this[_0x18cc19(0xf2)]=this[_0x18cc19(0xf7)](),this[_0x18cc19(0xf4)]=this[_0x18cc19(0xf7)](),this[_0x18cc19(0xf4)][_0x18cc19(0x105)](this[_0x18cc19(0x123)]),this[_0x18cc19(0xf2)][_0x18cc19(0x105)](_0x258b2b),this[_0x18cc19(0xf2)][_0x18cc19(0x105)](_0x13447c),this['on'](_0x18cc19(0x132),(_0x5eb6fe,_0x3fe8a4,_0x326ed3)=>{const _0x5302a5=_0x18cc19;this[_0x5302a5(0xf2)][_0x5302a5(0x117)](),this[_0x5302a5(0xf4)][_0x5302a5(0x117)](),_0x326ed3?(this[_0x5302a5(0xf2)][_0x5302a5(0x105)](_0x157da9),this[_0x5302a5(0xf2)][_0x5302a5(0x105)](_0x40fee0),this[_0x5302a5(0xf4)][_0x5302a5(0x105)](_0x9a9d32),_0x9a9d32[_0x5302a5(0x133)][_0x5302a5(0x129)]()):(this[_0x5302a5(0xf2)][_0x5302a5(0x105)](_0x258b2b),this[_0x5302a5(0xf2)][_0x5302a5(0x105)](_0x13447c),this[_0x5302a5(0xf4)][_0x5302a5(0x105)](this[_0x5302a5(0x123)]));}),this[_0x18cc19(0xe8)]({'tag':'li','attributes':{'class':[_0x18cc19(0x116),_0x183c87?_0x18cc19(0x109):'',_0x22ddc0['if'](_0x18cc19(0x10c),_0x18cc19(0x12c),_0x30a4f2=>!_0x30a4f2),_0x22ddc0['if'](_0x18cc19(0xea),_0x18cc19(0x11e))],'role':_0x18cc19(0x124)},'children':[{'tag':_0x18cc19(0xf8),'attributes':{'class':[_0x18cc19(0x114)]},'children':[{'tag':_0x18cc19(0x11d),'attributes':{'class':[_0x18cc19(0xed),_0x22ddc0['if'](_0x18cc19(0xf1),_0x18cc19(0x12c),_0x59a2f6=>!!_0x59a2f6)]},'children':_0x183c87?[_0x3330b8]:[]},{'tag':_0x18cc19(0x11d),'attributes':{'class':[_0x18cc19(0x108),_0x22ddc0['if'](_0x18cc19(0xf1),_0x18cc19(0x12c),_0x4c2d20=>!_0x4c2d20)]},'children':[this[_0x18cc19(0x140)]()]}]},{'tag':_0x18cc19(0x11d),'attributes':{'class':[_0x18cc19(0xf6)]},'children':[{'tag':_0x18cc19(0x11d),'attributes':{'class':[_0x18cc19(0x125)]},'on':{'click':this[_0x18cc19(0x134)]['to'](_0x18cc19(0x104))},'children':[{'tag':_0x18cc19(0x11d),'attributes':{'class':[_0x18cc19(0x126)]},'children':[{'tag':_0x18cc19(0x11d),'attributes':{'class':[_0x18cc19(0xf5),_0x22ddc0['if'](_0x18cc19(0xf1),_0x18cc19(0x12c),_0xce3b01=>!!_0xce3b01)]},'children':this[_0x18cc19(0xf4)]},{'tag':_0x18cc19(0x11d),'attributes':{'class':[_0x18cc19(0x146),_0x22ddc0['if'](_0x18cc19(0xf1),_0x18cc19(0x12c),_0x36e8fe=>!_0x36e8fe)]},'children':[{'text':_0x22ddc0['to'](_0x18cc19(0xf1),_0x2266e6=>_0x2266e6?_0x597c78(this[_0x18cc19(0x10b)],AIChatHistoryListItemView[_0x18cc19(0x13c)][_0x2266e6]):'')}]}]},{'tag':_0x18cc19(0xf8),'attributes':{'class':[_0x18cc19(0xee)]},'children':[_0x566ae9]}]},{'tag':_0x18cc19(0x11d),'attributes':{'class':[_0x18cc19(0x130)]},'children':this[_0x18cc19(0xf2)]}]}]}),this['on'](_0x18cc19(0x104),()=>{const _0x41fb35=_0x18cc19;this[_0x41fb35(0xea)]||this[_0x41fb35(0x13b)](_0x41fb35(0xec),{'id':this['id']});});}[_0x30f87b(0xff)](_0x3a5749){const _0x27d852=_0x30f87b;this[_0x27d852(0x123)][_0x27d852(0x143)]=_0x592aee(_0x3a5749);}[_0x30f87b(0x11a)](_0x2ff43d,_0xda2cdf){const _0x1d072d=_0x30f87b;this[_0x1d072d(0x10d)](_0x1d072d(0xf1),_0xda2cdf?_0x2ff43d:null);}[_0x30f87b(0x148)](){const _0x1a63b3=_0x30f87b,_0x5d2614=new _0xd5fa86();return _0x5d2614[_0x1a63b3(0x10d)]({'content':_0x40981d}),_0x5d2614;}[_0x30f87b(0xfb)](_0x3570e3){const _0x16d5ea=_0x30f87b,_0x2ffd81=new _0x255769(_0x3570e3);return _0x2ffd81[_0x16d5ea(0x10d)]({'label':_0x597c78(_0x3570e3,_0x16d5ea(0xef)),'icon':_0x13b0e9,'withText':!0x1,'tooltip':!0x0}),_0x2ffd81[_0x16d5ea(0xfc)](_0x16d5ea(0x139))['to'](this,_0x16d5ea(0x136)),_0x2ffd81['on'](_0x16d5ea(0x128),()=>{const _0x433cbd=_0x16d5ea,_0x4cd5be=!this[_0x433cbd(0x136)];this[_0x433cbd(0x13b)](_0x433cbd(0x110),{'id':this['id'],'pinned':_0x4cd5be});}),_0x2ffd81;}[_0x30f87b(0x106)](){const _0x2be817=_0x30f87b,_0x1f129f=_0x2df969(this[_0x2be817(0x10b)],_0x12ed79),_0x52ffb9=_0x1f129f[_0x2be817(0x137)][_0x2be817(0x103)];_0x1f129f[_0x2be817(0x121)][_0x2be817(0x10d)]({'label':_0x597c78(this[_0x2be817(0x10b)],_0x2be817(0xf3)),'icon':_0x597846}),_0x1f129f[_0x2be817(0x102)]='sw';const _0x59b969=new _0x255769(this[_0x2be817(0x10b)]);_0x59b969[_0x2be817(0x119)]=_0x597c78(this[_0x2be817(0x10b)],_0x2be817(0x113)),_0x59b969[_0x2be817(0x107)]=!0x0,_0x59b969['on'](_0x2be817(0x128),()=>{const _0x1d0d56=_0x2be817;this[_0x1d0d56(0xea)]=!0x0;});const _0x4a3f07=new _0x255769(this[_0x2be817(0x10b)]);_0x4a3f07[_0x2be817(0x119)]=_0x597c78(this[_0x2be817(0x10b)],_0x2be817(0x144)),_0x4a3f07[_0x2be817(0x107)]=!0x0,_0x4a3f07['on'](_0x2be817(0x128),()=>{const _0x4b1706=_0x2be817;this[_0x4b1706(0x115)](_0x597c78(this[_0x4b1706(0x10b)],_0x4b1706(0x13e)),this[_0x4b1706(0x133)])[_0x4b1706(0x11b)](()=>{const _0x13d273=_0x4b1706;this[_0x13d273(0x13b)](_0x13d273(0x10f),{'id':this['id']});});});const _0x107a5b=new _0x4d29de(this[_0x2be817(0x10b)]),_0x5de002=new _0x1809a9(this[_0x2be817(0x10b)]);_0x5de002[_0x2be817(0x103)][_0x2be817(0x105)](_0x59b969);const _0xf68739=new _0x1809a9(this[_0x2be817(0x10b)]);return _0xf68739[_0x2be817(0x103)][_0x2be817(0x105)](_0x4a3f07),_0x107a5b[_0x2be817(0xfa)][_0x2be817(0xe7)]([_0x5de002,_0xf68739]),_0x52ffb9[_0x2be817(0x105)](_0x107a5b),_0x1f129f;}[_0x30f87b(0x112)](_0x4bbab8,_0x3bbf9d){const _0x603310=_0x30f87b,_0x40c0b6=new _0x247e66(_0x4bbab8),_0x81dcb5=_0x40c0b6[_0x603310(0x134)];return _0x40c0b6[_0x603310(0x12d)]=_0x3bbf9d,_0x40c0b6[_0x603310(0x135)]({'on':{'keydown':_0x81dcb5['to'](_0x1f4a2f=>{const _0x315657=_0x603310;_0x315657(0x12b)==_0x1f4a2f[_0x315657(0xfd)]&&this[_0x315657(0x127)](_0x40c0b6);})}}),_0x40c0b6;}[_0x30f87b(0x11f)](_0xeeeb00,_0x5acef9){const _0x4e70c0=_0x30f87b,_0x23c920=new _0x255769(_0xeeeb00);return _0x23c920[_0x4e70c0(0x10d)]({'icon':_0x40981d,'withText':!0x1,'tooltip':_0x597c78(_0xeeeb00,_0x4e70c0(0x12e))}),_0x23c920[_0x4e70c0(0x135)]({'attributes':{'class':[_0x4e70c0(0xeb)]}}),_0x23c920['on'](_0x4e70c0(0x128),()=>{const _0x58b4a6=_0x4e70c0;this[_0x58b4a6(0x127)](_0x5acef9);}),_0x23c920;}[_0x30f87b(0x127)](_0x4812fb){const _0x206cf4=_0x30f87b,_0x5e9d35=_0x4812fb[_0x206cf4(0x133)][_0x206cf4(0x12d)]||'';this[_0x206cf4(0x123)][_0x206cf4(0x143)]=_0x5e9d35,this[_0x206cf4(0xea)]=!0x1,this[_0x206cf4(0x13b)](_0x206cf4(0x118),{'id':this['id'],'title':_0x5e9d35});}[_0x30f87b(0x147)](_0x56e365,_0x5e8ed5){const _0x333487=_0x30f87b,_0x588198=new _0x255769(_0x56e365);return _0x588198[_0x333487(0x10d)]({'icon':_0x141836,'withText':!0x1,'tooltip':_0x597c78(_0x56e365,_0x333487(0x101))}),_0x588198[_0x333487(0x135)]({'attributes':{'class':[_0x333487(0x141)]}}),_0x588198['on'](_0x333487(0x128),()=>{const _0x4c6b53=_0x333487;this[_0x4c6b53(0xea)]=!0x1,_0x5e8ed5[_0x4c6b53(0x12d)]=this[_0x4c6b53(0x123)][_0x4c6b53(0x143)]||'',this[_0x4c6b53(0x13b)](_0x4c6b53(0x120));}),_0x588198;}[_0x30f87b(0x140)](){const _0x290097=_0x30f87b,_0x44b4e8=new _0x377153(_0x290097(0x145));return _0x44b4e8[_0x290097(0x10c)]=!0x0,_0x44b4e8;}[_0x30f87b(0x13f)](_0x1e127a){const _0x25a7fe=_0x30f87b;return this[_0x25a7fe(0x123)]&&_0x25a7fe(0x138)==typeof this[_0x25a7fe(0x123)][_0x25a7fe(0x143)]&&this[_0x25a7fe(0x123)][_0x25a7fe(0x143)][_0x25a7fe(0x10e)](_0x1e127a)?{'title':!0x0}:null;}[_0x30f87b(0x11c)](_0x41dddc){const _0xcacd7e=_0x30f87b;this[_0xcacd7e(0x123)][_0xcacd7e(0x11c)](_0x41dddc);}}
|
|
23
|
+
const _0x5ee390=_0x37a8;function _0x37a8(_0x26366e,_0x44972a){const _0x10d4cf=_0x10d4();return _0x37a8=function(_0x37a898,_0x3dd44f){_0x37a898=_0x37a898-0xd4;let _0x3643ed=_0x10d4cf[_0x37a898];return _0x3643ed;},_0x37a8(_0x26366e,_0x44972a);}(function(_0x4cef72,_0x510e19){const _0x33a949=_0x37a8,_0x41befe=_0x4cef72();while(!![]){try{const _0x33d6ec=parseInt(_0x33a949(0xed))/0x1*(-parseInt(_0x33a949(0x107))/0x2)+-parseInt(_0x33a949(0xe4))/0x3*(-parseInt(_0x33a949(0x101))/0x4)+-parseInt(_0x33a949(0xde))/0x5+parseInt(_0x33a949(0x12e))/0x6*(parseInt(_0x33a949(0xd8))/0x7)+parseInt(_0x33a949(0xf2))/0x8+-parseInt(_0x33a949(0x105))/0x9*(parseInt(_0x33a949(0x110))/0xa)+parseInt(_0x33a949(0x130))/0xb*(parseInt(_0x33a949(0x134))/0xc);if(_0x33d6ec===_0x510e19)break;else _0x41befe['push'](_0x41befe['shift']());}catch(_0x334867){_0x41befe['push'](_0x41befe['shift']());}}}(_0x10d4,0x485d0));import{ListItemView as _0x1d3c8b,HighlightedTextView as _0x15e0ee,ButtonView as _0xcd9673,ListView as _0x24019e,IconView as _0xbf1716,createDropdown as _0x2da753,InputTextView as _0xf7dba4}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x758529,IconPin as _0x155656,IconCheck as _0x40e710,IconCancel as _0x58d142}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1c6f4c,ConfirmMixin as _0xaf8266}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x4888bc}from'es-toolkit/compat';import{AISpinnerView as _0x3336b2}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x54350a}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0xaf8266(_0x1d3c8b){['id'];static [_0x5ee390(0x123)]={'remove':_0x5ee390(0x11d),'rename':_0x5ee390(0x10d),'pin':_0x5ee390(0xfd),'unpin':_0x5ee390(0x112)};[_0x5ee390(0x117)];[_0x5ee390(0xd6)];[_0x5ee390(0xf9)];constructor(_0x256356,_0x9b13fe){const _0x4ee688=_0x5ee390;super(_0x256356);const _0x4f66e6=this[_0x4ee688(0x136)];this[_0x4ee688(0xd9)](_0x4ee688(0x108),!0x1),this[_0x4ee688(0xd9)](_0x4ee688(0xf7),!0x0),this[_0x4ee688(0xd9)](_0x4ee688(0xdd),!!_0x9b13fe[_0x4ee688(0xdd)]),this[_0x4ee688(0xd9)](_0x4ee688(0xf5),null),this['id']=_0x9b13fe['id'];const {title:_0x522d82,createdAt:_0x51aab9,active:_0x1fbc29=!0x1}=_0x9b13fe;this[_0x4ee688(0xf9)]=new _0x15e0ee(),this[_0x4ee688(0xf9)][_0x4ee688(0x102)]=_0x522d82,this[_0x4ee688(0xf9)][_0x4ee688(0x137)]({'attributes':{'class':[_0x4ee688(0x100)]}});const _0x51bb45=this[_0x4ee688(0xda)](),_0xc50165=this[_0x4ee688(0x124)](_0x256356),_0x57144e=this[_0x4ee688(0x135)](),_0x573d84=this[_0x4ee688(0x11b)](_0x256356,_0x522d82),_0x4f146d=this[_0x4ee688(0x131)](_0x256356,_0x573d84),_0x536d35=this[_0x4ee688(0xfa)](_0x256356,_0x573d84);this[_0x4ee688(0x117)]=this[_0x4ee688(0x122)](),this[_0x4ee688(0xd6)]=this[_0x4ee688(0x122)](),this[_0x4ee688(0xd6)][_0x4ee688(0xf3)](this[_0x4ee688(0xf9)]),this[_0x4ee688(0x117)][_0x4ee688(0xf3)](_0xc50165),this[_0x4ee688(0x117)][_0x4ee688(0xf3)](_0x57144e),this['on'](_0x4ee688(0x10b),(_0xb715e4,_0x3bb93b,_0x205041)=>{const _0x512348=_0x4ee688;this[_0x512348(0x117)][_0x512348(0xd4)](),this[_0x512348(0xd6)][_0x512348(0xd4)](),_0x205041?(this[_0x512348(0x117)][_0x512348(0xf3)](_0x4f146d),this[_0x512348(0x117)][_0x512348(0xf3)](_0x536d35),this[_0x512348(0xd6)][_0x512348(0xf3)](_0x573d84),_0x573d84[_0x512348(0x127)][_0x512348(0xe3)]()):(this[_0x512348(0x117)][_0x512348(0xf3)](_0xc50165),this[_0x512348(0x117)][_0x512348(0xf3)](_0x57144e),this[_0x512348(0xd6)][_0x512348(0xf3)](this[_0x512348(0xf9)]));}),this[_0x4ee688(0xdf)]({'tag':'li','attributes':{'class':[_0x4ee688(0xd5),_0x1fbc29?_0x4ee688(0xe0):'',_0x4f66e6['if'](_0x4ee688(0xf7),_0x4ee688(0x104),_0x3b9887=>!_0x3b9887),_0x4f66e6['if'](_0x4ee688(0x108),_0x4ee688(0x126))],'role':_0x4ee688(0xea)},'children':[{'tag':_0x4ee688(0xf1),'attributes':{'class':[_0x4ee688(0x10f)]},'children':[{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0xe6),_0x4f66e6['if'](_0x4ee688(0xf5),_0x4ee688(0x104),_0x1e1193=>!!_0x1e1193)]},'children':_0x1fbc29?[_0x51bb45]:[]},{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x111),_0x4f66e6['if'](_0x4ee688(0xf5),_0x4ee688(0x104),_0x1d18ea=>!_0x1d18ea)]},'children':[this[_0x4ee688(0xfb)]()]}]},{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x12a)]},'children':[{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x114)]},'on':{'click':this[_0x4ee688(0x136)]['to'](_0x4ee688(0x10e))},'children':[{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x132)]},'children':[{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x100),_0x4f66e6['if'](_0x4ee688(0xf5),_0x4ee688(0x104),_0x393a32=>!!_0x393a32)]},'children':this[_0x4ee688(0xd6)]},{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x120),_0x4f66e6['if'](_0x4ee688(0xf5),_0x4ee688(0x104),_0x2e7012=>!_0x2e7012)]},'children':[{'text':_0x4f66e6['to'](_0x4ee688(0xf5),_0x57d2b4=>_0x57d2b4?_0x54350a(this[_0x4ee688(0xff)],AIChatHistoryListItemView[_0x4ee688(0x123)][_0x57d2b4]):'')}]}]},{'tag':_0x4ee688(0xf1),'attributes':{'class':[_0x4ee688(0x103)]},'children':[_0x51aab9]}]},{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x12c)]},'children':this[_0x4ee688(0x117)]}]}]}),this['on'](_0x4ee688(0x10e),()=>{const _0x11311a=_0x4ee688;this[_0x11311a(0x108)]||this[_0x11311a(0xee)](_0x11311a(0x10c),{'id':this['id']});});}[_0x5ee390(0xf6)](_0x31b3a1){const _0xef3714=_0x5ee390;this[_0xef3714(0xf9)][_0xef3714(0x102)]=_0x4888bc(_0x31b3a1);}[_0x5ee390(0x11e)](_0x209aac,_0x22b9c8){const _0x52761a=_0x5ee390;this[_0x52761a(0xd9)](_0x52761a(0xf5),_0x22b9c8?_0x209aac:null);}[_0x5ee390(0xda)](){const _0x4a5394=_0x5ee390,_0x28a882=new _0xbf1716();return _0x28a882[_0x4a5394(0xd9)]({'content':_0x40e710}),_0x28a882;}[_0x5ee390(0x124)](_0xba59af){const _0x21efd2=_0x5ee390,_0x478c38=new _0xcd9673(_0xba59af);return _0x478c38[_0x21efd2(0xd9)]({'label':_0x54350a(_0xba59af,_0x21efd2(0xe2)),'icon':_0x155656,'withText':!0x1,'tooltip':!0x0}),_0x478c38[_0x21efd2(0x12b)](_0x21efd2(0x113))['to'](this,_0x21efd2(0xdd)),_0x478c38['on'](_0x21efd2(0x10a),()=>{const _0x2224d7=_0x21efd2,_0x153074=!this[_0x2224d7(0xdd)];this[_0x2224d7(0xee)](_0x2224d7(0xec),{'id':this['id'],'pinned':_0x153074});}),_0x478c38;}[_0x5ee390(0x135)](){const _0x4f3984=_0x5ee390,_0x690753=_0x2da753(this[_0x4f3984(0xff)],_0x1c6f4c),_0x569a70=_0x690753[_0x4f3984(0x115)][_0x4f3984(0xe9)];_0x690753[_0x4f3984(0xd7)][_0x4f3984(0xd9)]({'label':_0x54350a(this[_0x4f3984(0xff)],_0x4f3984(0xef)),'icon':_0x758529}),_0x690753[_0x4f3984(0xeb)]='sw';const _0x3baaaf=new _0xcd9673(this[_0x4f3984(0xff)]);_0x3baaaf[_0x4f3984(0x125)]=_0x54350a(this[_0x4f3984(0xff)],_0x4f3984(0xfe)),_0x3baaaf[_0x4f3984(0xe8)]=!0x0,_0x3baaaf['on'](_0x4f3984(0x10a),()=>{const _0x48a015=_0x4f3984;this[_0x48a015(0x108)]=!0x0;});const _0x54677e=new _0xcd9673(this[_0x4f3984(0xff)]);_0x54677e[_0x4f3984(0x125)]=_0x54350a(this[_0x4f3984(0xff)],_0x4f3984(0x11f)),_0x54677e[_0x4f3984(0xe8)]=!0x0,_0x54677e['on'](_0x4f3984(0x10a),()=>{const _0x24a927=_0x4f3984;this[_0x24a927(0x133)](_0x54350a(this[_0x24a927(0xff)],_0x24a927(0x128)),this[_0x24a927(0x127)])[_0x24a927(0x119)](()=>{const _0x17025e=_0x24a927;this[_0x17025e(0xee)](_0x17025e(0x11c),{'id':this['id']});});});const _0x13a385=new _0x24019e(this[_0x4f3984(0xff)]),_0xe45a14=new _0x1d3c8b(this[_0x4f3984(0xff)]);_0xe45a14[_0x4f3984(0xe9)][_0x4f3984(0xf3)](_0x3baaaf);const _0x2f7b7b=new _0x1d3c8b(this[_0x4f3984(0xff)]);return _0x2f7b7b[_0x4f3984(0xe9)][_0x4f3984(0xf3)](_0x54677e),_0x13a385[_0x4f3984(0x116)][_0x4f3984(0x121)]([_0xe45a14,_0x2f7b7b]),_0x569a70[_0x4f3984(0xf3)](_0x13a385),_0x690753;}[_0x5ee390(0x11b)](_0x2af60b,_0x311d44){const _0x5350e8=_0x5ee390,_0x3d4c01=new _0xf7dba4(_0x2af60b),_0x1cc100=_0x3d4c01[_0x5350e8(0x136)];return _0x3d4c01[_0x5350e8(0x109)]=_0x311d44,_0x3d4c01[_0x5350e8(0x137)]({'on':{'keydown':_0x1cc100['to'](_0x29cf97=>{const _0x1e7223=_0x5350e8;_0x1e7223(0x11a)==_0x29cf97[_0x1e7223(0x12d)]&&this[_0x1e7223(0x118)](_0x3d4c01);})}}),_0x3d4c01;}[_0x5ee390(0x131)](_0x52a5f3,_0x679dc2){const _0x510d5c=_0x5ee390,_0x141039=new _0xcd9673(_0x52a5f3);return _0x141039[_0x510d5c(0xd9)]({'icon':_0x40e710,'withText':!0x1,'tooltip':_0x54350a(_0x52a5f3,_0x510d5c(0xe1))}),_0x141039[_0x510d5c(0x137)]({'attributes':{'class':[_0x510d5c(0xe5)]}}),_0x141039['on'](_0x510d5c(0x10a),()=>{const _0x2441c5=_0x510d5c;this[_0x2441c5(0x118)](_0x679dc2);}),_0x141039;}[_0x5ee390(0x118)](_0x1418fb){const _0x2de481=_0x5ee390,_0x977885=_0x1418fb[_0x2de481(0x127)][_0x2de481(0x109)]||'';this[_0x2de481(0xf9)][_0x2de481(0x102)]=_0x977885,this[_0x2de481(0x108)]=!0x1,this[_0x2de481(0xee)](_0x2de481(0xf4),{'id':this['id'],'title':_0x977885});}[_0x5ee390(0xfa)](_0x12a451,_0x5a39e2){const _0x16f3ff=_0x5ee390,_0x3b7e9=new _0xcd9673(_0x12a451);return _0x3b7e9[_0x16f3ff(0xd9)]({'icon':_0x58d142,'withText':!0x1,'tooltip':_0x54350a(_0x12a451,_0x16f3ff(0xdb))}),_0x3b7e9[_0x16f3ff(0x137)]({'attributes':{'class':[_0x16f3ff(0xe7)]}}),_0x3b7e9['on'](_0x16f3ff(0x10a),()=>{const _0x3f92e8=_0x16f3ff;this[_0x3f92e8(0x108)]=!0x1,_0x5a39e2[_0x3f92e8(0x109)]=this[_0x3f92e8(0xf9)][_0x3f92e8(0x102)]||'',this[_0x3f92e8(0xee)](_0x3f92e8(0x106));}),_0x3b7e9;}[_0x5ee390(0xfb)](){const _0x5b62b3=_0x5ee390,_0xfaa2ce=new _0x3336b2(_0x5b62b3(0xf8));return _0xfaa2ce[_0x5b62b3(0xf7)]=!0x0,_0xfaa2ce;}[_0x5ee390(0xdc)](_0x55d439){const _0x5776e5=_0x5ee390;return this[_0x5776e5(0xf9)]&&_0x5776e5(0x129)==typeof this[_0x5776e5(0xf9)][_0x5776e5(0x102)]&&this[_0x5776e5(0xf9)][_0x5776e5(0x102)][_0x5776e5(0xf0)](_0x55d439)?{'title':!0x0}:null;}[_0x5ee390(0xfc)](_0x58536e){const _0x5953ad=_0x5ee390;this[_0x5953ad(0xf9)][_0x5953ad(0xfc)](_0x58536e);}}function _0x10d4(){const _0x45254d=['isMatching','pinned','1059975dPkchY','setTemplate','ck-ai-chat-history__item--active','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_PIN_BUTTON','focus','69CrXrtm','ck-confirm-view-submit','ck-ai-chat-history__item-check','ck-confirm-view-cancel','withText','children','listitem','panelPosition','setConversationPinned','246535LUkgUE','fire','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','match','span','4289472mhQOYz','add','editConversationTitle','loadingState','updateTitle','isVisible','tiny','_titleView','_createCancelEditButtonView','_createSpinnerView','highlightText','AI_CHAT_HISTORY_LOADING_PINNING','AI_CHAT_HISTORY_EDIT_NAME','locale','ck-ai-chat-history__item-title','65276EdbhfK','text','ck-ai-chat-history__item-date','ck-hidden','32229DipBsj','edit:cancel','4VSSWjD','isEdit','value','execute','change:isEdit','selectConversation','AI_CHAT_HISTORY_LOADING_RENAMING','click','ck-ai-chat-history__item-check-container','1640QicCIG','ck-ai-loader','AI_CHAT_HISTORY_LOADING_UNPINNING','isOn','ck-ai-chat-history__item-content','panelView','items','actions','_commitEditInputValue','then','Enter','_createEditInputView','removeConversation','AI_CHAT_HISTORY_LOADING_REMOVING','updateLoadingState','AI_CHAT_HISTORY_REMOVE','ck-ai-loader__text','addMany','createCollection','LOADING_LABELS','_createPinButtonView','label','ck-ai-chat-history__item--edit','element','AI_CHAT_HISTORY_REMOVE_CONFIRM','string','ck-ai-chat-history__item-row','bind','ck-ai-chat-history__item-actions','key','512922BsPcvu','div','22attktc','_createAcceptEditButtonView','ck-ai-chat-history__item-main-content','showConfirm','985836bwTMBA','_createMenuDropdownView','bindTemplate','extendTemplate','clear','ck-ai-chat-history__item','mainContent','buttonView','42DEigIJ','set','_createCheckView','AI_CHAT_HISTORY_CANCEL'];_0x10d4=function(){return _0x45254d;};return _0x10d4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x43e1f8=_0x3fb2;(function(_0x2445bb,_0x84f66){const _0x2d272f=_0x3fb2,_0xee0755=_0x2445bb();while(!![]){try{const _0x5a2595=-parseInt(_0x2d272f(0xdb))/0x1+-parseInt(_0x2d272f(0xe4))/0x2+-parseInt(_0x2d272f(0xca))/0x3+parseInt(_0x2d272f(0xcb))/0x4+parseInt(_0x2d272f(0xcf))/0x5+-parseInt(_0x2d272f(0xd7))/0x6*(parseInt(_0x2d272f(0xda))/0x7)+-parseInt(_0x2d272f(0xcc))/0x8*(-parseInt(_0x2d272f(0xdf))/0x9);if(_0x5a2595===_0x84f66)break;else _0xee0755['push'](_0xee0755['shift']());}catch(_0x1af279){_0xee0755['push'](_0xee0755['shift']());}}}(_0x4c98,0x8b05f));function _0x4c98(){const _0x388fdf=['title','length','splice','823150ToENBy','bindTemplate','find','highlightText','itemsViews','_itemsListView','2396166MGSscg','4201252nlmaqS','72bDbgwC','isVisible','removeItem','2443115SPfXFS','filter','div','getItem','addMany','ck-ai-chat-history__section-title','ck-hidden','remove','6093432zzxvnB','setTemplate','isMatching','7iuibHg','267589eijcDD','ck-ai-chat-history__section','indexOf','set','1523961NyQCqv','items'];_0x4c98=function(){return _0x388fdf;};return _0x4c98();}import{ListItemView as _0x1291bb,View as _0x3997d5,ListView as _0xe788f8}from'ckeditor5/src/ui.js';function _0x3fb2(_0x12cf8f,_0x2d478e){const _0x4c9861=_0x4c98();return _0x3fb2=function(_0x3fb2a7,_0x9ee425){_0x3fb2a7=_0x3fb2a7-0xc9;let _0x439068=_0x4c9861[_0x3fb2a7];return _0x439068;},_0x3fb2(_0x12cf8f,_0x2d478e);}export class AIChatHistoryListView extends _0x1291bb{[_0x43e1f8(0xe1)];[_0x43e1f8(0xe8)];[_0x43e1f8(0xc9)];constructor(_0x2c7c54,{title:_0x1055dc,items:_0x57a981}){const _0x52be58=_0x43e1f8;super(_0x2c7c54);const _0x46a49e=this[_0x52be58(0xe5)];this[_0x52be58(0xde)](_0x52be58(0xcd),!0x0),this[_0x52be58(0xe1)]=_0x1055dc,this[_0x52be58(0xe8)]=_0x57a981;const _0x442e92=new _0x3997d5(_0x2c7c54);_0x442e92[_0x52be58(0xd8)]({'tag':_0x52be58(0xd1),'attributes':{'class':[_0x52be58(0xd4)]},'children':[this[_0x52be58(0xe1)]]}),this[_0x52be58(0xc9)]=new _0xe788f8(_0x2c7c54),this[_0x52be58(0xc9)][_0x52be58(0xe0)][_0x52be58(0xd3)](this[_0x52be58(0xe8)]),this[_0x52be58(0xd8)]({'tag':'li','attributes':{'class':[_0x52be58(0xdc),_0x46a49e['if'](_0x52be58(0xcd),_0x52be58(0xd5),_0x10fb89=>!_0x10fb89)]},'children':[_0x442e92,this[_0x52be58(0xc9)]]});}[_0x43e1f8(0xd0)](_0x2b1eff){const _0xe1ab42=_0x43e1f8,_0x231285=this[_0xe1ab42(0xe8)][_0xe1ab42(0xe2)];let _0x2329b7=0x0;for(const _0xbaff34 of this[_0xe1ab42(0xe8)]){if(_0x2b1eff){const _0x3607b7=_0xbaff34[_0xe1ab42(0xd9)](_0x2b1eff);_0xbaff34[_0xe1ab42(0xcd)]=!!_0x3607b7,_0xbaff34[_0xe1ab42(0xe7)](_0x2b1eff);}else _0xbaff34[_0xe1ab42(0xcd)]=!0x0,_0xbaff34[_0xe1ab42(0xe7)](null);_0xbaff34[_0xe1ab42(0xcd)]&&_0x2329b7++;}return this[_0xe1ab42(0xcd)]=_0x2329b7>0x0,{'resultsCount':_0x2329b7,'totalItemsCount':_0x231285};}[_0x43e1f8(0xd2)](_0x23dd0d){const _0x27e2af=_0x43e1f8;return this[_0x27e2af(0xe8)][_0x27e2af(0xe6)](_0x222cf3=>_0x222cf3['id']===_0x23dd0d);}[_0x43e1f8(0xce)](_0x221fe9){const _0x3f5257=_0x43e1f8,_0x54eaea=this[_0x3f5257(0xe8)][_0x3f5257(0xdd)](_0x221fe9);-0x1!==_0x54eaea&&(this[_0x3f5257(0xe8)][_0x3f5257(0xe3)](_0x54eaea,0x1),this[_0x3f5257(0xc9)][_0x3f5257(0xe0)][_0x3f5257(0xd6)](_0x221fe9));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4b785e=_0x2d2c;(function(_0x17b981,_0x25f201){const _0x3da4f2=_0x2d2c,_0x401807=_0x17b981();while(!![]){try{const _0x1cb314=-parseInt(_0x3da4f2(0x1f7))/0x1*(parseInt(_0x3da4f2(0x1fd))/0x2)+-parseInt(_0x3da4f2(0x1f2))/0x3*(parseInt(_0x3da4f2(0x1f5))/0x4)+-parseInt(_0x3da4f2(0x201))/0x5*(-parseInt(_0x3da4f2(0x1fc))/0x6)+-parseInt(_0x3da4f2(0x1f3))/0x7*(-parseInt(_0x3da4f2(0x1fb))/0x8)+-parseInt(_0x3da4f2(0x1f9))/0x9+parseInt(_0x3da4f2(0x1ff))/0xa+parseInt(_0x3da4f2(0x1f8))/0xb;if(_0x1cb314===_0x25f201)break;else _0x401807['push'](_0x401807['shift']());}catch(_0x4fda53){_0x401807['push'](_0x401807['shift']());}}}(_0x4d25,0x46704));import{ListView as _0x5b3b0f}from'ckeditor5/src/ui.js';function _0x4d25(){const _0x43a205=['406125KJDneF','items','120424Egrvbn','30330FALCzl','124cuPrBI','addMany','1001600cNZctb','sections','45QMNDAi','filter','699315ZHZNIA','182TBIbfv','extendTemplate','8dUiHLs','ck-ai-chat-history__sections','96cLRsHM','2956470pBXAnB'];_0x4d25=function(){return _0x43a205;};return _0x4d25();}function _0x2d2c(_0x161c39,_0x2c77be){const _0x4d25d3=_0x4d25();return _0x2d2c=function(_0x2d2cd2,_0x426746){_0x2d2cd2=_0x2d2cd2-0x1f2;let _0x26b5a6=_0x4d25d3[_0x2d2cd2];return _0x26b5a6;},_0x2d2c(_0x161c39,_0x2c77be);}export class AIChatHistorySectionListView extends _0x5b3b0f{[_0x4b785e(0x200)];constructor(_0x5f529f,_0x40e020){const _0x46c6df=_0x4b785e;super(_0x5f529f),this[_0x46c6df(0x200)]=_0x40e020,this[_0x46c6df(0x1fa)][_0x46c6df(0x1fe)](this[_0x46c6df(0x200)]),this[_0x46c6df(0x1f4)]({'attributes':{'class':[_0x46c6df(0x1f6)]}});}[_0x4b785e(0x202)](_0x5265c8){const _0x5b9b41=_0x4b785e;let _0x3605cd=0x0,_0xb637b7=0x0;for(const _0x1cf3c5 of this[_0x5b9b41(0x200)]){const {resultsCount:_0xcc656f,totalItemsCount:_0x267b13}=_0x1cf3c5[_0x5b9b41(0x202)](_0x5265c8);_0x3605cd+=_0xcc656f,_0xb637b7+=_0x267b13;}return{'resultsCount':_0x3605cd,'totalItemsCount':_0xb637b7};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c3cb6=_0x4247;(function(_0x493d75,_0x1f6b24){const _0x4ddb8f=_0x4247,_0x577fc1=_0x493d75();while(!![]){try{const _0x35df46=parseInt(_0x4ddb8f(0xff))/0x1+-parseInt(_0x4ddb8f(0xe7))/0x2+-parseInt(_0x4ddb8f(0xe6))/0x3*(-parseInt(_0x4ddb8f(0xf1))/0x4)+parseInt(_0x4ddb8f(0x10f))/0x5+parseInt(_0x4ddb8f(0x124))/0x6*(-parseInt(_0x4ddb8f(0x100))/0x7)+-parseInt(_0x4ddb8f(0x107))/0x8+parseInt(_0x4ddb8f(0x11b))/0x9;if(_0x35df46===_0x1f6b24)break;else _0x577fc1['push'](_0x577fc1['shift']());}catch(_0x2c9fd0){_0x577fc1['push'](_0x577fc1['shift']());}}}(_0x2da6,0x5a501));function _0x4247(_0x3bf7d9,_0x455119){const _0x2da603=_0x2da6();return _0x4247=function(_0x424709,_0x35299c){_0x424709=_0x424709-0xe5;let _0x2c0eb6=_0x2da603[_0x424709];return _0x2c0eb6;},_0x4247(_0x3bf7d9,_0x455119);}import{View as _0x20742c,SearchTextView as _0x29e9db,FormHeaderView as _0x41e7c1,ButtonView as _0x28588b}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x1361af,IconCancel as _0x11c6d3,IconPlus as _0x393a37}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x222660}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x3bf649}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x5a9464}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x1fcac4}from'../aichathistoryui.js';import{AISkeletonView as _0x47f0d9,SKELETON_DEFINITIONS as _0x3d52f5}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x41953d}from'../../aicore/utils/createresizebutton.js';function _0x2da6(){const _0x48e31a=['openChat','bind','updateTitle','updateLoadingState','4192569cHhIYY','remove','getItem','AI_CHAT_HISTORY_SEARCH_LABEL','itemsViews','errorMessage','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','aiHistory','updateItemLoadingState','6DRKvUp','set','ck-ai-chat-history__empty','_createListItemViews','bindTemplate','execute','locale','element','isMaximized','search','indexOf','render','_createEmptyStateView','title','_createErrorView','push','AI_CHAT_HISTORY_EMPTY_MESSAGE','searchView','sections','isLoading','emptyView','delegate','length','skeletonView','resizeButton','isEmptyViewVisible','ck-ai-chat-history__empty-message','ck-ai-chat-history__content','136281bqbHRe','1042188PCHjap','hasItems','setTemplate','queryView','some','updateItemTitle','ck-ai-chat-error','fire','ltr','clear','20PuPvqi','_createSearchView','ck-hidden','splice','sectionsView','ck-ai-chat-error__dismiss-button','removeItem','isSearchViewVisible','items','value','ck-ai-chat__start-conversation','ck-rounded-corners','isVisible','AI_CHAT_HISTORY_HEADING','595952KBvBXR','3110443GdqzDc','ck-ai-chat-history','_updateViewVisibility','fieldView','extendTemplate','div','errorView','1441688NjysDG','change:errorMessage','updateHistoryItemsWithCategories','add','addMany','ck-reset_all','children','AI_CHAT_LABEL_NEW_CHAT','1133235VtFZrU','_createSkeletonView','change:hasItems','ck-ai-header\x20ck-ai-header_history','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','removeHistoryItem','_refreshSearch','change:isLoading'];_0x2da6=function(){return _0x48e31a;};return _0x2da6();}import{getTranslation as _0x243ea6}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x20742c{[_0x5c3cb6(0x135)];[_0x5c3cb6(0x106)];[_0x5c3cb6(0x13b)];[_0x5c3cb6(0x138)];[_0x5c3cb6(0xf5)];[_0x5c3cb6(0x13c)];constructor(_0x3fde89,_0x53e1e5){const _0x1f24b6=_0x5c3cb6;super(_0x3fde89),this[_0x1f24b6(0x125)](_0x1f24b6(0xe8),!0x1),this[_0x1f24b6(0x125)](_0x1f24b6(0x137),!0x0),this[_0x1f24b6(0x125)](_0x1f24b6(0x120),''),this[_0x1f24b6(0x125)](_0x1f24b6(0x12c),!0x1),this[_0x1f24b6(0x125)](_0x1f24b6(0xf8),!0x1),this[_0x1f24b6(0x125)](_0x1f24b6(0x13d),!0x1);const _0x1aa6aa=new _0x41e7c1(_0x3fde89,{'label':_0x243ea6(_0x3fde89,_0x1f24b6(0xfe)),'icon':_0x1361af,'class':_0x1f24b6(0x112)});_0x53e1e5&&(this[_0x1f24b6(0x13c)]=_0x41953d(_0x3fde89,this),_0x1aa6aa[_0x1f24b6(0x10d)][_0x1f24b6(0x10a)](this[_0x1f24b6(0x13c)])),this[_0x1f24b6(0xf5)]=new _0x222660(_0x3fde89,[]),this[_0x1f24b6(0xf5)][_0x1f24b6(0x139)](..._0x1fcac4)['to'](this),this[_0x1f24b6(0x106)]=this[_0x1f24b6(0x132)](),this[_0x1f24b6(0x13b)]=this[_0x1f24b6(0x110)](),this[_0x1f24b6(0x138)]=this[_0x1f24b6(0x130)](),this[_0x1f24b6(0x135)]=this[_0x1f24b6(0xf2)](),this['on'](_0x1f24b6(0x116),()=>this[_0x1f24b6(0x102)]()),this['on'](_0x1f24b6(0x111),()=>this[_0x1f24b6(0x102)]()),this['on'](_0x1f24b6(0x108),()=>this[_0x1f24b6(0x102)]()),this[_0x1f24b6(0xe9)]({'tag':_0x1f24b6(0x105),'attributes':{'class':['ck',_0x1f24b6(0x10c),_0x1f24b6(0x101),_0x1f24b6(0xfc)],'dir':_0x1f24b6(0xef)},'children':[_0x1aa6aa,{'tag':_0x1f24b6(0x105),'attributes':{'class':[_0x1f24b6(0xe5)]},'children':[this[_0x1f24b6(0x13b)],this[_0x1f24b6(0x106)],this[_0x1f24b6(0x138)],this[_0x1f24b6(0x135)]]}]});}[_0x5c3cb6(0x102)](){const _0x129bcb=_0x5c3cb6;this[_0x129bcb(0xf8)]=!this[_0x129bcb(0x137)]&&this[_0x129bcb(0xe8)]&&!this[_0x129bcb(0x120)],this[_0x129bcb(0x13d)]=!this[_0x129bcb(0x137)]&&!this[_0x129bcb(0xe8)]&&!this[_0x129bcb(0x120)];}[_0x5c3cb6(0xf2)](){const _0x1bfc95=_0x5c3cb6,_0x42dd37=new _0x29e9db(this[_0x1bfc95(0x12a)],{'filteredView':this[_0x1bfc95(0xf5)],'queryView':{'label':_0x243ea6(this[_0x1bfc95(0x12a)],_0x1bfc95(0x11e))},'infoView':{'text':{'notFound':{'primary':_0x18b680=>_0x243ea6(this[_0x1bfc95(0x12a)],_0x1bfc95(0x121),_0x18b680),'secondary':_0x243ea6(this[_0x1bfc95(0x12a)],_0x1bfc95(0x113))}}}});return _0x42dd37['on'](_0x1bfc95(0x12f),()=>{const _0x35bca7=_0x1bfc95;this[_0x35bca7(0x135)][_0x35bca7(0x10d)][_0x35bca7(0x10a)](this[_0x35bca7(0x106)],0x1);}),_0x42dd37[_0x1bfc95(0x104)]({'attributes':{'class':[this[_0x1bfc95(0x128)]['if'](_0x1bfc95(0xf8),_0x1bfc95(0xf3),_0x362e76=>!_0x362e76)]}}),_0x42dd37;}[_0x5c3cb6(0x110)](){const _0x194b85=_0x5c3cb6,_0x23011c=new _0x47f0d9(this[_0x194b85(0x12a)],_0x3d52f5[_0x194b85(0x122)]);return _0x23011c[_0x194b85(0x104)]({'attributes':{'class':[this[_0x194b85(0x128)]['if'](_0x194b85(0x137),_0x194b85(0xf3),_0x22109c=>!_0x22109c)]}}),_0x23011c;}[_0x5c3cb6(0x132)](){const _0x411519=_0x5c3cb6,_0x4c0d0a=new _0x20742c(this[_0x411519(0x12a)]),_0x4ab52c=new _0x28588b(this[_0x411519(0x12a)]);return _0x4ab52c[_0x411519(0x125)]({'withText':!0x1,'icon':_0x11c6d3,'class':_0x411519(0xf6)}),_0x4ab52c[_0x411519(0x118)](_0x411519(0xfd))['to'](this,_0x411519(0xe8),_0x3b75e1=>!!_0x3b75e1),_0x4ab52c['on'](_0x411519(0x129),()=>{const _0x45d8e8=_0x411519;this[_0x45d8e8(0x120)]='';}),_0x4c0d0a[_0x411519(0xe9)]({'tag':_0x411519(0x105),'attributes':{'class':['ck',_0x411519(0xed),this[_0x411519(0x128)]['if'](_0x411519(0x120),_0x411519(0xf3),_0x41308d=>!_0x41308d)]},'children':[{'tag':'p','children':[{'text':this[_0x411519(0x128)]['to'](_0x411519(0x120))}]},_0x4ab52c]}),_0x4c0d0a;}[_0x5c3cb6(0x130)](){const _0x1216fe=_0x5c3cb6,_0x2da27f=new _0x28588b(this[_0x1216fe(0x12a)]);_0x2da27f[_0x1216fe(0x125)]({'label':_0x243ea6(this[_0x1216fe(0x12a)],_0x1216fe(0x10e)),'withText':!0x0,'icon':_0x393a37,'class':_0x1216fe(0xfb)}),_0x2da27f['on'](_0x1216fe(0x129),()=>{const _0x356eac=_0x1216fe;this[_0x356eac(0xee)](_0x356eac(0x117));});const _0x1f35ce=new _0x20742c(this[_0x1216fe(0x12a)]);return _0x1f35ce[_0x1216fe(0xe9)]({'tag':_0x1216fe(0x105),'attributes':{'class':[_0x1216fe(0x126),this[_0x1216fe(0x128)]['if'](_0x1216fe(0x13d),_0x1216fe(0xf3),_0x369643=>!_0x369643)]},'children':[{'tag':'p','attributes':{'class':[_0x1216fe(0x13e)]},'children':[_0x243ea6(this[_0x1216fe(0x12a)],_0x1216fe(0x134))]},_0x2da27f]}),_0x1f35ce;}[_0x5c3cb6(0x127)](_0x39f8b0,_0xdb4405){const _0x24f363=_0x5c3cb6,_0x1b4ce1=[];for(const _0xf560b of _0x39f8b0){const _0x6df1e=new _0x5a9464(_0xdb4405,_0xf560b);_0x6df1e[_0x24f363(0x139)](..._0x1fcac4)['to'](this),_0x1b4ce1[_0x24f363(0x133)](_0x6df1e);}return _0x1b4ce1;}[_0x5c3cb6(0x109)](_0x18408e){const _0x4151a7=_0x5c3cb6,_0x14bd9f=this[_0x4151a7(0x12a)]||'en',_0x2185fd=[];for(const _0xa66f2d of _0x18408e){const _0x4ad93e=this[_0x4151a7(0x127)](_0xa66f2d[_0x4151a7(0xf9)],_0x14bd9f);_0x2185fd[_0x4151a7(0x133)](new _0x3bf649(_0x14bd9f,{'title':_0xa66f2d[_0x4151a7(0x131)],'items':_0x4ad93e}));}this[_0x4151a7(0xf5)][_0x4151a7(0x136)]=_0x2185fd,this[_0x4151a7(0xf5)][_0x4151a7(0xf9)][_0x4151a7(0xf0)](),this[_0x4151a7(0xf5)][_0x4151a7(0xf9)][_0x4151a7(0x10b)](_0x2185fd),this[_0x4151a7(0xe8)]=_0x18408e[_0x4151a7(0xeb)](_0x3d3d39=>_0x3d3d39[_0x4151a7(0xf9)][_0x4151a7(0x13a)]>0x0),this[_0x4151a7(0x115)]();}[_0x5c3cb6(0x114)](_0x327281){const _0x19da11=_0x5c3cb6;for(const _0x24c225 of this[_0x19da11(0xf5)][_0x19da11(0x136)]){const _0x1659ff=_0x24c225[_0x19da11(0x11d)](_0x327281);if(_0x1659ff){if(_0x24c225[_0x19da11(0xf7)](_0x1659ff),0x0===_0x24c225[_0x19da11(0x11f)][_0x19da11(0x13a)]){const _0x4b14f0=this[_0x19da11(0xf5)][_0x19da11(0x136)][_0x19da11(0x12e)](_0x24c225);-0x1!==_0x4b14f0&&(this[_0x19da11(0xf5)][_0x19da11(0x136)][_0x19da11(0xf4)](_0x4b14f0,0x1),this[_0x19da11(0xf5)][_0x19da11(0xf9)][_0x19da11(0x11c)](_0x24c225));}this[_0x19da11(0xe8)]=this[_0x19da11(0xf5)][_0x19da11(0x136)][_0x19da11(0x13a)]>0x0,this[_0x19da11(0x115)]();break;}}}[_0x5c3cb6(0xec)](_0x1165d6,_0x57ea28){const _0x5bb6a1=_0x5c3cb6;for(const _0x3cb8f5 of this[_0x5bb6a1(0xf5)][_0x5bb6a1(0x136)]){const _0x3db443=_0x3cb8f5[_0x5bb6a1(0x11d)](_0x1165d6);if(_0x3db443){_0x3db443[_0x5bb6a1(0x119)](_0x57ea28);break;}}}[_0x5c3cb6(0x123)](_0x4926c1,_0x427568,_0x4adf72){const _0x209f91=_0x5c3cb6;for(const _0x2797f3 of this[_0x209f91(0xf5)][_0x209f91(0x136)]){const _0x4c19a6=_0x2797f3[_0x209f91(0x11d)](_0x4926c1);if(_0x4c19a6){_0x4c19a6[_0x209f91(0x11a)](_0x427568,_0x4adf72);break;}}}[_0x5c3cb6(0x115)](){const _0x28a47e=_0x5c3cb6;if(this[_0x28a47e(0xe8)]){const _0x122527=this[_0x28a47e(0x135)][_0x28a47e(0xea)][_0x28a47e(0x103)]?.[_0x28a47e(0x12b)]?.[_0x28a47e(0xfa)]||'';this[_0x28a47e(0x135)][_0x28a47e(0x12d)](_0x122527);}}}
|
package/src/aiconfig.d.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { AIAssistantConfig } from './aiassistant/aiassistant.js';
|
|
10
10
|
import { type AIChatConfig } from './aichat/aichat.js';
|
|
11
|
+
import { type AISuggestionActionName } from './aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';
|
|
11
12
|
import { type AIQuickActionsConfig } from './aiquickactions/aiquickactions.js';
|
|
12
13
|
import { type AIReviewModeConfig } from './aireviewmode/aireviewmode.js';
|
|
13
14
|
/**
|
|
@@ -64,6 +65,22 @@ export interface AIConfig {
|
|
|
64
65
|
* The configuration of the {@link module:ai/aireviewmode/aireviewmode~AIReviewMode AI Review Mode feature}.
|
|
65
66
|
*/
|
|
66
67
|
reviewMode?: AIReviewModeConfig;
|
|
68
|
+
/**
|
|
69
|
+
* The configuration of the advanced reply dropdown in the AI chat feed. It also affects the buttons in quick actions balloon.
|
|
70
|
+
*
|
|
71
|
+
* It defines which actions and in which order will be displayed in the dropdown in the AI chat feed.
|
|
72
|
+
* The first action is used as the default action for the dropdown button.
|
|
73
|
+
* By default, it contains the following actions:
|
|
74
|
+
*
|
|
75
|
+
* Note, that the quick actions balloon does not display `'showChangeInText'` button.
|
|
76
|
+
*
|
|
77
|
+
* Note, that the `'applySuggestion'` button is hidden when track changes feature is turned on.
|
|
78
|
+
*
|
|
79
|
+
* ```ts
|
|
80
|
+
* [ 'applySuggestion', 'insertSuggestion', 'showChangeInText' ]
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
availableReplyActions?: Array<AISuggestionActionName>;
|
|
67
84
|
}
|
|
68
85
|
export type AIContainerType = 'sidebar' | 'overlay' | 'custom';
|
|
69
86
|
export type AIContainerSide = 'left' | 'right';
|
|
@@ -131,6 +131,11 @@ export declare class AIConnector extends ContextPlugin {
|
|
|
131
131
|
* Sends a request to the AI API '/reviews/custom/calls' endpoint and returns a response stream reader.
|
|
132
132
|
*/
|
|
133
133
|
callCustomReview({ content, prompt, model }: AIConnectorCustomReviewData): AIConnectorRequest;
|
|
134
|
+
upsertAIChatRating(conversationId: string, messageId: string, rating: AIRating): AIUpdateRating;
|
|
135
|
+
upsertAIActionRating(actionName: string, callId: string, rating: AIRating): AIUpdateRating;
|
|
136
|
+
upsertCustomAIActionRating(callId: string, rating: AIRating): AIUpdateRating;
|
|
137
|
+
upsertAIReviewRating(reviewName: string, callId: string, rating: AIRating): AIUpdateRating;
|
|
138
|
+
upsertCustomAIReviewRating(callId: string, rating: AIRating): AIUpdateRating;
|
|
134
139
|
}
|
|
135
140
|
export type AIGenericRequest = {
|
|
136
141
|
request: Promise<Response>;
|
|
@@ -300,3 +305,11 @@ export type AIConnectorCustomReviewData = {
|
|
|
300
305
|
prompt: string;
|
|
301
306
|
model: string;
|
|
302
307
|
};
|
|
308
|
+
export type AIUpdateRating = {
|
|
309
|
+
execute: () => Promise<void>;
|
|
310
|
+
abortController: AbortController;
|
|
311
|
+
};
|
|
312
|
+
export type AIRating = {
|
|
313
|
+
positiveCount: number;
|
|
314
|
+
totalCount: number;
|
|
315
|
+
};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1b07(){const _0x5c6804=['items','decode','reset','plugins','isOfficialPlugin','3lBuUXq','init','getReader','requires','startConversation','length','PATCH','keys','request','deleteWebResource','text','MAKE_TONE_CASUAL','deleteDocument','CloudServices','executeCustomAction','/actions/system/','make-tone-casual','https://ai.cke-cs.com/v1','Content-Type','fetchDocument','605oUSljN','/conversations/','file','abortController','limit','name','TRANSLATE','DELETE','MAKE_LONGER','updateConversation','7tQJXbh','append','/reviews/system/','parse','executeAction','/web-resources','ai-request-aborted','/calls','FIX_GRAMMAR','fix-grammar','read','json','uploadUrl','410416pArroI','753530niHGMN','make-longer','feed','get','/reviews/custom/calls','_getStreamReader','continue','deleteConversation','MAKE_SHORTER','push','callCustomReview','callSystemReview','/actions/custom/calls','GET','ai-missing-token','_handleError','body','AIConnector','CONTINUE','MAKE_TONE_FORMAL','signal','token','translate','releaseLock','/web-resources/','ai.serviceUrl','stringify','IMPROVE_WRITING','true','attributes','AbortError','excludeEmpty','/documents','queryAssistant','/conversations?','pluginName','map','search','isPremiumPlugin','then','value','100','getModels','_apiUrl','application/json','/files/','toString','deleteFile','770124nkMvoJ','group','uploadFile','_decoder','4191402cHuSGT','Bearer\x20','make-tone-formal','/documents/','POST','/messages','toUpperCase','fetchConversations','context','uploadDocument','_token','28916jQlrJw','config','ai-request-failed','fetchConversation','improve-writing','define','make-shorter','catch','AI_MODEL_DESCRIPTION_','512752VaZpeS','_sendApiRequest','data','/files','fetchConversationMessages','/models/1','2334249SaDvBY','locale','/conversations'];_0x1b07=function(){return _0x5c6804;};return _0x1b07();}function _0x5966(_0x2d6a6c,_0x1c8d21){const _0x1b076c=_0x1b07();return _0x5966=function(_0x5966a5,_0x34d15c){_0x5966a5=_0x5966a5-0x1d8;let _0x14a09e=_0x1b076c[_0x5966a5];return _0x14a09e;},_0x5966(_0x2d6a6c,_0x1c8d21);}const _0xbfed2c=_0x5966;(function(_0x2ac410,_0x169fab){const _0x3a325a=_0x5966,_0x48df64=_0x2ac410();while(!![]){try{const _0x8ce38d=parseInt(_0x3a325a(0x1db))/0x1*(parseInt(_0x3a325a(0x24f))/0x2)+-parseInt(_0x3a325a(0x237))/0x3+parseInt(_0x3a325a(0x246))/0x4*(-parseInt(_0x3a325a(0x1ef))/0x5)+parseInt(_0x3a325a(0x23b))/0x6+-parseInt(_0x3a325a(0x1f9))/0x7*(parseInt(_0x3a325a(0x206))/0x8)+parseInt(_0x3a325a(0x255))/0x9+-parseInt(_0x3a325a(0x207))/0xa;if(_0x8ce38d===_0x169fab)break;else _0x48df64['push'](_0x48df64['shift']());}catch(_0x1b0807){_0x48df64['push'](_0x48df64['shift']());}}}(_0x1b07,0x727f8));import{createParser as _0x2b4ae0}from'eventsource-parser';import{ContextPlugin as _0x34285c}from'ckeditor5/src/core.js';import{CKEditorError as _0x54396f}from'ckeditor5/src/utils.js';import{getTranslation as _0x14d667}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x1b0910){const _0x341f9c=_0x5966;_0x1b0910[_0x341f9c(0x219)]=_0x341f9c(0x20d),_0x1b0910[_0x341f9c(0x201)]=_0x341f9c(0x202),_0x1b0910[_0x341f9c(0x222)]=_0x341f9c(0x24a),_0x1b0910[_0x341f9c(0x1f7)]=_0x341f9c(0x208),_0x1b0910[_0x341f9c(0x20f)]=_0x341f9c(0x24c),_0x1b0910[_0x341f9c(0x1e6)]=_0x341f9c(0x1eb),_0x1b0910[_0x341f9c(0x21a)]=_0x341f9c(0x23d),_0x1b0910[_0x341f9c(0x1f5)]=_0x341f9c(0x21d);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x34285c{[_0xbfed2c(0x232)];[_0xbfed2c(0x245)];[_0xbfed2c(0x23a)];static get[_0xbfed2c(0x1de)](){const _0x41b529=_0xbfed2c;return[_0x41b529(0x1e8)];}static get[_0xbfed2c(0x22a)](){const _0x4b5733=_0xbfed2c;return _0x4b5733(0x218);}static get[_0xbfed2c(0x1da)](){return!0x0;}static get[_0xbfed2c(0x22d)](){return!0x0;}constructor(_0x3954f7){const _0x451728=_0xbfed2c;super(_0x3954f7),this[_0x451728(0x243)][_0x451728(0x247)][_0x451728(0x24b)](_0x451728(0x220),_0x451728(0x1ec)),this[_0x451728(0x232)]=this[_0x451728(0x243)][_0x451728(0x247)][_0x451728(0x20a)](_0x451728(0x220)),this[_0x451728(0x245)]=null,this[_0x451728(0x23a)]=new TextDecoder();}[_0xbfed2c(0x1dc)](){const _0x5ebf46=_0xbfed2c,_0x810ba3=this[_0x5ebf46(0x243)][_0x5ebf46(0x1d9)][_0x5ebf46(0x20a)](_0x5ebf46(0x1e8));if(!_0x810ba3[_0x5ebf46(0x21c)])throw new _0x54396f(_0x5ebf46(0x215),this);this[_0x5ebf46(0x245)]=_0x810ba3[_0x5ebf46(0x21c)];}[_0xbfed2c(0x1df)](_0x13ee20,_0x3689a2){const _0xc55f82=_0xbfed2c,_0xea5032=this[_0xc55f82(0x250)](_0xc55f82(0x257),_0xc55f82(0x23f),{'id':_0x13ee20,'group':_0x3689a2});return{'getConversation':async()=>(await _0xea5032[_0xc55f82(0x1e3)])[_0xc55f82(0x204)](),'abortController':_0xea5032[_0xc55f82(0x1f2)]};}[_0xbfed2c(0x228)]({message:_0x18d756,conversationId:_0x540422,parts:_0x19d0a2,capabilities:_0x32f5ff,model:_0x46ca61,quickActionData:_0x3a88c2}){const _0x284f64=_0xbfed2c,_0x5bbf05={..._0x3a88c2&&{'quickActionData':_0x3a88c2}},_0x2828a9={'prompt':_0x18d756,'content':_0x19d0a2,'model':_0x46ca61,..._0x32f5ff&&{'capabilities':_0x32f5ff},...Object[_0x284f64(0x1e2)](_0x5bbf05)[_0x284f64(0x1e0)]>0x0&&{'attributes':_0x5bbf05}},_0x4648e9=this[_0x284f64(0x250)](_0x284f64(0x1f0)+_0x540422+_0x284f64(0x240),_0x284f64(0x23f),_0x2828a9);return{'getStream':async()=>{const _0x457c6c=_0x284f64,_0x4d190c=(await _0x4648e9[_0x457c6c(0x1e3)])[_0x457c6c(0x217)];return this[_0x457c6c(0x20c)](_0x4d190c);},'abortController':_0x4648e9[_0x284f64(0x1f2)]};}[_0xbfed2c(0x1e9)]({content:_0x251c69,message:_0x4a983a,model:_0x3ea799,outputFormat:_0x5e6f94}){const _0x42796f=_0xbfed2c,_0x893382={'content':[{'type':_0x42796f(0x1e5),'content':_0x251c69}],'prompt':_0x4a983a,'model':_0x3ea799,'outputFormat':_0x5e6f94},_0x568338=this[_0x42796f(0x250)](_0x42796f(0x213),_0x42796f(0x23f),_0x893382);return{'getStream':async()=>{const _0x40d1d9=_0x42796f,_0x145354=(await _0x568338[_0x40d1d9(0x1e3)])[_0x40d1d9(0x217)];return this[_0x40d1d9(0x20c)](_0x145354);},'abortController':_0x568338[_0x42796f(0x1f2)]};}[_0xbfed2c(0x1fd)]({actionName:_0x3ce5ce,content:_0x37b99d,args:_0x4d41bc}){const _0x11c185=_0xbfed2c,_0x3bf3be={'content':[{'type':_0x11c185(0x1e5),'content':_0x37b99d}],'args':_0x4d41bc},_0x383bbb=this[_0x11c185(0x250)](_0x11c185(0x1ea)+_0x3ce5ce+_0x11c185(0x200),_0x11c185(0x23f),_0x3bf3be);return{'getStream':async()=>{const _0x17323f=_0x11c185,_0x50b043=(await _0x383bbb[_0x17323f(0x1e3)])[_0x17323f(0x217)];return this[_0x17323f(0x20c)](_0x50b043);},'abortController':_0x383bbb[_0x11c185(0x1f2)]};}[_0xbfed2c(0x239)](_0x297011,_0x9e5a3c,_0x2c4798){const _0xf4d4e=_0xbfed2c,_0x35c973=new FormData();_0x35c973[_0xf4d4e(0x1fa)](_0xf4d4e(0x1f1),_0x9e5a3c,_0x9e5a3c[_0xf4d4e(0x1f4)]),_0x2c4798&&_0x35c973[_0xf4d4e(0x1fa)](_0xf4d4e(0x224),JSON[_0xf4d4e(0x221)](_0x2c4798));const _0x32724f=this[_0xf4d4e(0x250)](_0xf4d4e(0x1f0)+_0x297011+_0xf4d4e(0x252),_0xf4d4e(0x23f),_0x35c973);return{'getId':async()=>(await _0x32724f[_0xf4d4e(0x1e3)])[_0xf4d4e(0x204)](),'abortController':_0x32724f[_0xf4d4e(0x1f2)]};}[_0xbfed2c(0x1ee)](_0x274b21,_0x282c9e){const _0x3e3e2e=_0xbfed2c,_0x4ab415=this[_0x3e3e2e(0x250)](_0x3e3e2e(0x1f0)+_0x274b21+_0x3e3e2e(0x23e)+_0x282c9e,_0x3e3e2e(0x214));return{'getDocument':async()=>(await _0x4ab415[_0x3e3e2e(0x1e3)])[_0x3e3e2e(0x204)](),'abortController':_0x4ab415[_0x3e3e2e(0x1f2)]};}[_0xbfed2c(0x244)](_0x3caeb0,_0x573936,_0x28ce1e){const _0x13127f=_0xbfed2c,_0x133a4b={'content':_0x573936};_0x28ce1e&&(_0x133a4b[_0x13127f(0x224)]=_0x28ce1e);const _0x1f12fe=this[_0x13127f(0x250)](_0x13127f(0x1f0)+_0x3caeb0+_0x13127f(0x227),_0x13127f(0x23f),_0x133a4b);return{'getId':async()=>(await _0x1f12fe[_0x13127f(0x1e3)])[_0x13127f(0x204)](),'abortController':_0x1f12fe[_0x13127f(0x1f2)]};}[_0xbfed2c(0x242)](_0x34fd57,_0x17ae2b){const _0x5be181=_0xbfed2c,_0x580ab5=new URLSearchParams();_0x580ab5[_0x5be181(0x1fa)](_0x5be181(0x226),_0x5be181(0x223)),_0x580ab5[_0x5be181(0x1fa)](_0x5be181(0x1f3),_0x5be181(0x230)),_0x580ab5[_0x5be181(0x1fa)](_0x5be181(0x238),_0x34fd57),_0x17ae2b&&_0x580ab5[_0x5be181(0x1fa)](_0x5be181(0x22c),_0x17ae2b);const _0x3b0208=this[_0x5be181(0x250)](_0x5be181(0x229)+_0x580ab5[_0x5be181(0x235)](),_0x5be181(0x214));return{'getConversations':async()=>{const _0x3da9bd=_0x5be181,_0xbfa2d3=await _0x3b0208[_0x3da9bd(0x1e3)];return(await _0xbfa2d3[_0x3da9bd(0x204)]())[_0x3da9bd(0x258)];},'abortController':_0x3b0208[_0x5be181(0x1f2)]};}[_0xbfed2c(0x20e)](_0x2dce0c){const _0x424075=_0xbfed2c,_0x2dac65=this[_0x424075(0x250)](_0x424075(0x1f0)+_0x2dce0c,_0x424075(0x1f6));return{'execute':async()=>{const _0x21ed6e=_0x424075;await _0x2dac65[_0x21ed6e(0x1e3)];},'abortController':_0x2dac65[_0x424075(0x1f2)]};}[_0xbfed2c(0x1f8)](_0x2ecd32,_0x1c39cf){const _0x4590cf=_0xbfed2c,_0x5c9d46=this[_0x4590cf(0x250)](_0x4590cf(0x1f0)+_0x2ecd32,_0x4590cf(0x1e1),_0x1c39cf);return{'getResult':async()=>(await _0x5c9d46[_0x4590cf(0x1e3)],_0x1c39cf),'abortController':_0x5c9d46[_0x4590cf(0x1f2)]};}[_0xbfed2c(0x249)](_0x1bb45f){const _0x49ad12=_0xbfed2c,_0x36184c=this[_0x49ad12(0x250)](_0x49ad12(0x1f0)+_0x1bb45f,_0x49ad12(0x214));return{'getConversation':async()=>(await _0x36184c[_0x49ad12(0x1e3)])[_0x49ad12(0x204)](),'abortController':_0x36184c[_0x49ad12(0x1f2)]};}[_0xbfed2c(0x253)](_0x590d30){const _0x27dc36=_0xbfed2c,_0x5364aa=this[_0x27dc36(0x250)](_0x27dc36(0x1f0)+_0x590d30+_0x27dc36(0x240),_0x27dc36(0x214));return{'getMessages':async()=>{const _0x275728=_0x27dc36,_0x4325f0=await _0x5364aa[_0x275728(0x1e3)];return(await _0x4325f0[_0x275728(0x204)]())[_0x275728(0x258)];},'abortController':_0x5364aa[_0x27dc36(0x1f2)]};}[_0xbfed2c(0x205)](_0x543b6b,_0x162fab,_0x654c73){const _0x4fa045=_0xbfed2c,_0x5b7ffd=this[_0x4fa045(0x250)](_0x4fa045(0x1f0)+_0x543b6b+_0x4fa045(0x1fe),_0x4fa045(0x23f),{'url':_0x162fab,'attributes':_0x654c73});return{'getId':async()=>(await _0x5b7ffd[_0x4fa045(0x1e3)])[_0x4fa045(0x204)](),'abortController':_0x5b7ffd[_0x4fa045(0x1f2)]};}[_0xbfed2c(0x231)](){const _0x13258f=_0xbfed2c,_0x4d4cce=this[_0x13258f(0x250)](_0x13258f(0x254),_0x13258f(0x214));return{'list':async()=>{const _0x1843c7=_0x13258f,_0x412dfc=await(await _0x4d4cce[_0x1843c7(0x1e3)])[_0x1843c7(0x204)](),_0xa7eff9=_0x412dfc[_0x1843c7(0x258)][_0x1843c7(0x22b)](_0x41c681=>({..._0x41c681,'description':_0x14d667(this[_0x1843c7(0x243)][_0x1843c7(0x256)],_0x1843c7(0x24e)+_0x41c681['id'][_0x1843c7(0x241)]())}));return{..._0x412dfc,'items':_0xa7eff9};},'abortController':_0x4d4cce[_0x13258f(0x1f2)]};}[_0xbfed2c(0x236)](_0x5d500f,_0x4ed8bc){const _0x4d193d=_0xbfed2c,_0x17e743=this[_0x4d193d(0x250)](_0x4d193d(0x1f0)+_0x5d500f+_0x4d193d(0x234)+_0x4ed8bc,_0x4d193d(0x1f6));return{'execute':async()=>{const _0x3545cc=_0x4d193d;await _0x17e743[_0x3545cc(0x1e3)];},'abortController':_0x17e743[_0x4d193d(0x1f2)]};}[_0xbfed2c(0x1e7)](_0x48464a,_0x4ca9b8){const _0x4586c0=_0xbfed2c,_0x28716d=this[_0x4586c0(0x250)](_0x4586c0(0x1f0)+_0x48464a+_0x4586c0(0x23e)+_0x4ca9b8,_0x4586c0(0x1f6));return{'execute':async()=>{const _0x55dc4f=_0x4586c0;await _0x28716d[_0x55dc4f(0x1e3)];},'abortController':_0x28716d[_0x4586c0(0x1f2)]};}[_0xbfed2c(0x1e4)](_0x420a85,_0x2b757e){const _0x225d87=_0xbfed2c,_0x3c8c1=this[_0x225d87(0x250)](_0x225d87(0x1f0)+_0x420a85+_0x225d87(0x21f)+_0x2b757e,_0x225d87(0x1f6));return{'execute':async()=>{const _0x532881=_0x225d87;await _0x3c8c1[_0x532881(0x1e3)];},'abortController':_0x3c8c1[_0x225d87(0x1f2)]};}[_0xbfed2c(0x212)]({reviewName:_0x25106b,content:_0x252a2f,args:_0x34f6e1}){const _0x395f69=_0xbfed2c,_0x5050e2=this[_0x395f69(0x250)](_0x395f69(0x1fb)+_0x25106b+_0x395f69(0x200),_0x395f69(0x23f),{'content':[{'type':_0x395f69(0x1e5),'content':_0x252a2f}],'args':_0x34f6e1});return{'getStream':async()=>{const _0x1ae0a6=_0x395f69,_0x2160b9=(await _0x5050e2[_0x1ae0a6(0x1e3)])[_0x1ae0a6(0x217)];return this[_0x1ae0a6(0x20c)](_0x2160b9);},'abortController':_0x5050e2[_0x395f69(0x1f2)]};}[_0xbfed2c(0x211)]({content:_0x3883c5,prompt:_0x74f5bc,model:_0x154a38}){const _0x46cdae=_0xbfed2c,_0x15c9a5=this[_0x46cdae(0x250)](_0x46cdae(0x20b),_0x46cdae(0x23f),{'content':[{'type':_0x46cdae(0x1e5),'content':_0x3883c5}],'prompt':_0x74f5bc,'model':_0x154a38});return{'getStream':async()=>{const _0x313dc1=_0x46cdae,_0x367a32=(await _0x15c9a5[_0x313dc1(0x1e3)])[_0x313dc1(0x217)];return this[_0x313dc1(0x20c)](_0x367a32);},'abortController':_0x15c9a5[_0x46cdae(0x1f2)]};}[_0xbfed2c(0x250)](_0x32d092,_0x15c6fd,_0x25065e){const _0x5558af=_0xbfed2c,_0x64198d=new AbortController(),_0x248748=_0x25065e instanceof FormData,_0x3fac87={'Authorization':_0x5558af(0x23c)+this[_0x5558af(0x245)]?.[_0x5558af(0x22f)]};_0x25065e&&!_0x248748&&(_0x3fac87[_0x5558af(0x1ed)]=_0x5558af(0x233));const _0x447b8d={'method':_0x15c6fd,'headers':_0x3fac87,'signal':_0x64198d[_0x5558af(0x21b)]};return _0x25065e&&(_0x447b8d[_0x5558af(0x217)]=_0x248748?_0x25065e:JSON[_0x5558af(0x221)](_0x25065e)),{'request':fetch(''+this[_0x5558af(0x232)]+_0x32d092,_0x447b8d)[_0x5558af(0x24d)](_0x450253=>{const _0x35af5a=_0x5558af;this[_0x35af5a(0x216)](_0x450253);})[_0x5558af(0x22e)](_0x1bc10b=>{const _0x5f01e1=_0x5558af;if(!_0x1bc10b['ok'])throw new _0x54396f(_0x5f01e1(0x248),this);return _0x1bc10b;}),'abortController':_0x64198d};}async*[_0xbfed2c(0x20c)](_0x464190){const _0x4269dc=_0xbfed2c,_0xabdea2=[],_0xbd7d89=_0x464190[_0x4269dc(0x1dd)](),_0x3ca67b=_0x2b4ae0({'onError':_0xe9ce7e=>{const _0x573fbe=_0x4269dc;this[_0x573fbe(0x216)](_0xe9ce7e);},'onEvent':_0x4f4c4a=>{const _0x491a8c=_0x4269dc;_0x4f4c4a[_0x491a8c(0x251)]=JSON[_0x491a8c(0x1fc)](_0x4f4c4a[_0x491a8c(0x251)]),_0xabdea2[_0x491a8c(0x210)](_0x4f4c4a);}});try{let _0x2871cd=!0x1;for(;!_0x2871cd;){const {done:_0x2fc62a,value:_0x51db11}=await _0xbd7d89[_0x4269dc(0x203)]();_0x2fc62a&&(_0x2871cd=!0x0),_0x3ca67b[_0x4269dc(0x209)](this[_0x4269dc(0x23a)][_0x4269dc(0x259)](_0x51db11,{'stream':!0x0})),yield*_0xabdea2,_0xabdea2[_0x4269dc(0x1e0)]=0x0;}}catch(_0x9be64f){this[_0x4269dc(0x216)](_0x9be64f);}finally{_0xbd7d89[_0x4269dc(0x21e)](),_0x3ca67b[_0x4269dc(0x1d8)]();}}[_0xbfed2c(0x216)](_0x43530f){const _0x3be6c0=_0xbfed2c;if(_0x43530f instanceof _0x54396f)throw _0x43530f;if(_0x43530f instanceof Error&&_0x3be6c0(0x225)===_0x43530f[_0x3be6c0(0x1f4)])throw new _0x54396f(_0x3be6c0(0x1ff),this,{'originalError':_0x43530f});throw new _0x54396f(_0x3be6c0(0x248),this,{'originalError':_0x43530f});}}
|
|
23
|
+
function _0x13ba(_0x446869,_0xc41fca){const _0x2a72fe=_0x2a72();return _0x13ba=function(_0x13bab2,_0x538faa){_0x13bab2=_0x13bab2-0x1e7;let _0x435d36=_0x2a72fe[_0x13bab2];return _0x435d36;},_0x13ba(_0x446869,_0xc41fca);}const _0x1ca519=_0x13ba;(function(_0x1bae5e,_0x574c15){const _0x36b157=_0x13ba,_0xea3e07=_0x1bae5e();while(!![]){try{const _0x180195=parseInt(_0x36b157(0x22d))/0x1+parseInt(_0x36b157(0x230))/0x2+-parseInt(_0x36b157(0x1ed))/0x3+-parseInt(_0x36b157(0x258))/0x4*(parseInt(_0x36b157(0x220))/0x5)+-parseInt(_0x36b157(0x215))/0x6+-parseInt(_0x36b157(0x228))/0x7+-parseInt(_0x36b157(0x264))/0x8*(-parseInt(_0x36b157(0x23c))/0x9);if(_0x180195===_0x574c15)break;else _0xea3e07['push'](_0xea3e07['shift']());}catch(_0x3edb48){_0xea3e07['push'](_0xea3e07['shift']());}}}(_0x2a72,0x57c87));import{createParser as _0x179dfe}from'eventsource-parser';function _0x2a72(){const _0x30949b=['/calls/','define','releaseLock','/documents','signal','PATCH','startConversation','get','make-tone-formal','/actions/custom/calls','decode','IMPROVE_WRITING','ai-request-aborted','CloudServices','ai-request-failed','name','_apiUrl','stringify','attributes','parse','callSystemReview','translate','/actions/custom/calls/','fetchConversation','context','token','FIX_GRAMMAR','positiveCount','uploadFile','GET','locale','isOfficialPlugin','MAKE_LONGER','body','1523694MJXFcH','_sendApiRequest','true','_token','data','map','upsertCustomAIReviewRating','continue','CONTINUE','make-tone-casual','/conversations?','2166870YBBtIa','uploadDocument','pluginName','executeCustomAction','_handleError','/web-resources','status','file','1484049TgyAIC','read','reset','json','getModels','121423lOHJYp','/files/','AbortError','299580yrsXAx','fetchConversationMessages','/messages','make-longer','group','deleteDocument','fetchConversations','/documents/','search','/files','/actions/system/','/reviews/custom/calls/','909eYYHrb','Bearer\x20','limit','length','catch','/conversations/','totalCount','feed','/ratings','request','_getStreamReader','ai.serviceUrl','keys','updateConversation','/conversations','init','/models/1','getReader','MAKE_TONE_FORMAL','/web-resources/','queryAssistant','DELETE','upsertAIChatRating','100','then','application/json','requires','excludeEmpty','4AMpRSD','_decoder','text','toUpperCase','/reviews/custom/calls','abortController','AIConnector','upsertAIReviewRating','fetchDocument','MAKE_TONE_CASUAL','fix-grammar','ai-missing-token','89608lZPETg','upsertCustomAIActionRating','deleteWebResource','toString','https://ai.cke-cs.com/v1','/reviews/system/','/messages/','plugins','isPremiumPlugin','AI_MODEL_DESCRIPTION_','/calls','POST','deleteConversation','uploadUrl','MAKE_SHORTER','deleteFile','config','improve-writing','Content-Type','append','callCustomReview','value','executeAction','upsertAIActionRating','PUT','430875WJxZrd','statusText','make-shorter','TRANSLATE','items','push'];_0x2a72=function(){return _0x30949b;};return _0x2a72();}import{ContextPlugin as _0x1f47e9}from'ckeditor5/src/core.js';import{CKEditorError as _0x2debc9}from'ckeditor5/src/utils.js';import{getTranslation as _0x1a55b9}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x194921){const _0x4e0c41=_0x13ba;_0x194921[_0x4e0c41(0x21d)]=_0x4e0c41(0x21c),_0x194921[_0x4e0c41(0x20d)]=_0x4e0c41(0x262),_0x194921[_0x4e0c41(0x1fe)]=_0x4e0c41(0x275),_0x194921[_0x4e0c41(0x213)]=_0x4e0c41(0x233),_0x194921[_0x4e0c41(0x272)]=_0x4e0c41(0x1ef),_0x194921[_0x4e0c41(0x261)]=_0x4e0c41(0x21e),_0x194921[_0x4e0c41(0x24e)]=_0x4e0c41(0x1fb),_0x194921[_0x4e0c41(0x1f0)]=_0x4e0c41(0x208);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x1f47e9{[_0x1ca519(0x203)];[_0x1ca519(0x218)];[_0x1ca519(0x259)];static get[_0x1ca519(0x256)](){const _0x16162f=_0x1ca519;return[_0x16162f(0x200)];}static get[_0x1ca519(0x222)](){const _0x3a0cda=_0x1ca519;return _0x3a0cda(0x25e);}static get[_0x1ca519(0x212)](){return!0x0;}static get[_0x1ca519(0x26c)](){return!0x0;}constructor(_0x3b2d55){const _0xf25b59=_0x1ca519;super(_0x3b2d55),this[_0xf25b59(0x20b)][_0xf25b59(0x274)][_0xf25b59(0x1f4)](_0xf25b59(0x247),_0xf25b59(0x268)),this[_0xf25b59(0x203)]=this[_0xf25b59(0x20b)][_0xf25b59(0x274)][_0xf25b59(0x1fa)](_0xf25b59(0x247)),this[_0xf25b59(0x218)]=null,this[_0xf25b59(0x259)]=new TextDecoder();}[_0x1ca519(0x24b)](){const _0x367c2a=_0x1ca519,_0xb222eb=this[_0x367c2a(0x20b)][_0x367c2a(0x26b)][_0x367c2a(0x1fa)](_0x367c2a(0x200));if(!_0xb222eb[_0x367c2a(0x20c)])throw new _0x2debc9(_0x367c2a(0x263),this);this[_0x367c2a(0x218)]=_0xb222eb[_0x367c2a(0x20c)];}[_0x1ca519(0x1f9)](_0x1de1b4,_0x386714){const _0x436479=_0x1ca519,_0x3f6f57=this[_0x436479(0x216)](_0x436479(0x24a),_0x436479(0x26f),{'id':_0x1de1b4,'group':_0x386714});return{'getConversation':async()=>(await _0x3f6f57[_0x436479(0x245)])[_0x436479(0x22b)](),'abortController':_0x3f6f57[_0x436479(0x25d)]};}[_0x1ca519(0x250)]({message:_0x328732,conversationId:_0x17906c,parts:_0x45f919,capabilities:_0x1e43f2,model:_0xd1de1e,quickActionData:_0x1b3904}){const _0x1ae337=_0x1ca519,_0x3372ac={..._0x1b3904&&{'quickActionData':_0x1b3904}},_0x29ac92={'prompt':_0x328732,'content':_0x45f919,'model':_0xd1de1e,..._0x1e43f2&&{'capabilities':_0x1e43f2},...Object[_0x1ae337(0x248)](_0x3372ac)[_0x1ae337(0x23f)]>0x0&&{'attributes':_0x3372ac}},_0x35c5f9=this[_0x1ae337(0x216)](_0x1ae337(0x241)+_0x17906c+_0x1ae337(0x232),_0x1ae337(0x26f),_0x29ac92);return{'getStream':async()=>{const _0x33ca8b=_0x1ae337,_0x4a0352=(await _0x35c5f9[_0x33ca8b(0x245)])[_0x33ca8b(0x214)];return this[_0x33ca8b(0x246)](_0x4a0352);},'abortController':_0x35c5f9[_0x1ae337(0x25d)]};}[_0x1ca519(0x223)]({content:_0x17a0c7,message:_0x2b3a4f,model:_0xec7ddc,outputFormat:_0x5b1ab2}){const _0x1bcddf=_0x1ca519,_0x11b1df={'content':[{'type':_0x1bcddf(0x25a),'content':_0x17a0c7}],'prompt':_0x2b3a4f,'model':_0xec7ddc,'outputFormat':_0x5b1ab2},_0xdf82c4=this[_0x1bcddf(0x216)](_0x1bcddf(0x1fc),_0x1bcddf(0x26f),_0x11b1df);return{'getStream':async()=>{const _0x56176b=_0x1bcddf,_0x1cdfab=(await _0xdf82c4[_0x56176b(0x245)])[_0x56176b(0x214)];return this[_0x56176b(0x246)](_0x1cdfab);},'abortController':_0xdf82c4[_0x1bcddf(0x25d)]};}[_0x1ca519(0x1ea)]({actionName:_0x256f3d,content:_0x523d6f,args:_0x21615a}){const _0x163371=_0x1ca519,_0x3c81f3={'content':[{'type':_0x163371(0x25a),'content':_0x523d6f}],'args':_0x21615a},_0x5b234b=this[_0x163371(0x216)](_0x163371(0x23a)+_0x256f3d+_0x163371(0x26e),_0x163371(0x26f),_0x3c81f3);return{'getStream':async()=>{const _0x211a04=_0x163371,_0x3c9918=(await _0x5b234b[_0x211a04(0x245)])[_0x211a04(0x214)];return this[_0x211a04(0x246)](_0x3c9918);},'abortController':_0x5b234b[_0x163371(0x25d)]};}[_0x1ca519(0x20f)](_0x48f119,_0x1bbaab,_0x344af9){const _0x34dcbc=_0x1ca519,_0x147016=new FormData();_0x147016[_0x34dcbc(0x1e7)](_0x34dcbc(0x227),_0x1bbaab,_0x1bbaab[_0x34dcbc(0x202)]),_0x344af9&&_0x147016[_0x34dcbc(0x1e7)](_0x34dcbc(0x205),JSON[_0x34dcbc(0x204)](_0x344af9));const _0x4844cc=this[_0x34dcbc(0x216)](_0x34dcbc(0x241)+_0x48f119+_0x34dcbc(0x239),_0x34dcbc(0x26f),_0x147016);return{'getId':async()=>(await _0x4844cc[_0x34dcbc(0x245)])[_0x34dcbc(0x22b)](),'abortController':_0x4844cc[_0x34dcbc(0x25d)]};}[_0x1ca519(0x260)](_0x167958,_0x4befcf){const _0x5441a3=_0x1ca519,_0x5e19da=this[_0x5441a3(0x216)](_0x5441a3(0x241)+_0x167958+_0x5441a3(0x237)+_0x4befcf,_0x5441a3(0x210));return{'getDocument':async()=>(await _0x5e19da[_0x5441a3(0x245)])[_0x5441a3(0x22b)](),'abortController':_0x5e19da[_0x5441a3(0x25d)]};}[_0x1ca519(0x221)](_0x22a4d6,_0x255ddd,_0x1ad5ea){const _0x54d193=_0x1ca519,_0x2b0f32={'content':_0x255ddd};_0x1ad5ea&&(_0x2b0f32[_0x54d193(0x205)]=_0x1ad5ea);const _0x31f933=this[_0x54d193(0x216)](_0x54d193(0x241)+_0x22a4d6+_0x54d193(0x1f6),_0x54d193(0x26f),_0x2b0f32);return{'getId':async()=>(await _0x31f933[_0x54d193(0x245)])[_0x54d193(0x22b)](),'abortController':_0x31f933[_0x54d193(0x25d)]};}[_0x1ca519(0x236)](_0x290eb0,_0x3539eb){const _0x41dac1=_0x1ca519,_0xa7ed2=new URLSearchParams();_0xa7ed2[_0x41dac1(0x1e7)](_0x41dac1(0x257),_0x41dac1(0x217)),_0xa7ed2[_0x41dac1(0x1e7)](_0x41dac1(0x23e),_0x41dac1(0x253)),_0xa7ed2[_0x41dac1(0x1e7)](_0x41dac1(0x234),_0x290eb0),_0x3539eb&&_0xa7ed2[_0x41dac1(0x1e7)](_0x41dac1(0x238),_0x3539eb);const _0x4f766b=this[_0x41dac1(0x216)](_0x41dac1(0x21f)+_0xa7ed2[_0x41dac1(0x267)](),_0x41dac1(0x210));return{'getConversations':async()=>{const _0x23d67b=_0x41dac1,_0x3a657b=await _0x4f766b[_0x23d67b(0x245)];return(await _0x3a657b[_0x23d67b(0x22b)]())[_0x23d67b(0x1f1)];},'abortController':_0x4f766b[_0x41dac1(0x25d)]};}[_0x1ca519(0x270)](_0x12bac7){const _0xdbe30d=_0x1ca519,_0x3b8db1=this[_0xdbe30d(0x216)](_0xdbe30d(0x241)+_0x12bac7,_0xdbe30d(0x251));return{'execute':async()=>{const _0x3aaca2=_0xdbe30d;await _0x3b8db1[_0x3aaca2(0x245)];},'abortController':_0x3b8db1[_0xdbe30d(0x25d)]};}[_0x1ca519(0x249)](_0x11656f,_0x4b7caa){const _0x250210=_0x1ca519,_0x3f2c59=this[_0x250210(0x216)](_0x250210(0x241)+_0x11656f,_0x250210(0x1f8),_0x4b7caa);return{'getResult':async()=>(await _0x3f2c59[_0x250210(0x245)],_0x4b7caa),'abortController':_0x3f2c59[_0x250210(0x25d)]};}[_0x1ca519(0x20a)](_0x3a9821){const _0x14864f=_0x1ca519,_0x58bb73=this[_0x14864f(0x216)](_0x14864f(0x241)+_0x3a9821,_0x14864f(0x210));return{'getConversation':async()=>(await _0x58bb73[_0x14864f(0x245)])[_0x14864f(0x22b)](),'abortController':_0x58bb73[_0x14864f(0x25d)]};}[_0x1ca519(0x231)](_0x1fab27){const _0x252a2e=_0x1ca519,_0x23c1f2=this[_0x252a2e(0x216)](_0x252a2e(0x241)+_0x1fab27+_0x252a2e(0x232),_0x252a2e(0x210));return{'getMessages':async()=>{const _0x3089dd=_0x252a2e,_0xcea7=await _0x23c1f2[_0x3089dd(0x245)];return(await _0xcea7[_0x3089dd(0x22b)]())[_0x3089dd(0x1f1)];},'abortController':_0x23c1f2[_0x252a2e(0x25d)]};}[_0x1ca519(0x271)](_0x34329d,_0x54b812,_0x4a7020){const _0x3ac951=_0x1ca519,_0x3dabfd=this[_0x3ac951(0x216)](_0x3ac951(0x241)+_0x34329d+_0x3ac951(0x225),_0x3ac951(0x26f),{'url':_0x54b812,'attributes':_0x4a7020});return{'getId':async()=>(await _0x3dabfd[_0x3ac951(0x245)])[_0x3ac951(0x22b)](),'abortController':_0x3dabfd[_0x3ac951(0x25d)]};}[_0x1ca519(0x22c)](){const _0x21e1f6=_0x1ca519,_0x267c43=this[_0x21e1f6(0x216)](_0x21e1f6(0x24c),_0x21e1f6(0x210));return{'list':async()=>{const _0x78c91b=_0x21e1f6,_0x5a98a7=await(await _0x267c43[_0x78c91b(0x245)])[_0x78c91b(0x22b)](),_0x1aaf05=_0x5a98a7[_0x78c91b(0x1f1)][_0x78c91b(0x21a)](_0x5e833b=>({..._0x5e833b,'description':_0x1a55b9(this[_0x78c91b(0x20b)][_0x78c91b(0x211)],_0x78c91b(0x26d)+_0x5e833b['id'][_0x78c91b(0x25b)]())}));return{..._0x5a98a7,'items':_0x1aaf05};},'abortController':_0x267c43[_0x21e1f6(0x25d)]};}[_0x1ca519(0x273)](_0x490d4f,_0x432469){const _0xd1b35a=_0x1ca519,_0x4679d6=this[_0xd1b35a(0x216)](_0xd1b35a(0x241)+_0x490d4f+_0xd1b35a(0x22e)+_0x432469,_0xd1b35a(0x251));return{'execute':async()=>{const _0x2a2ab3=_0xd1b35a;await _0x4679d6[_0x2a2ab3(0x245)];},'abortController':_0x4679d6[_0xd1b35a(0x25d)]};}[_0x1ca519(0x235)](_0x45b929,_0x21506e){const _0x251d58=_0x1ca519,_0x35c194=this[_0x251d58(0x216)](_0x251d58(0x241)+_0x45b929+_0x251d58(0x237)+_0x21506e,_0x251d58(0x251));return{'execute':async()=>{const _0x30d612=_0x251d58;await _0x35c194[_0x30d612(0x245)];},'abortController':_0x35c194[_0x251d58(0x25d)]};}[_0x1ca519(0x266)](_0x2392a0,_0x52ca25){const _0x2b0590=_0x1ca519,_0x151dfc=this[_0x2b0590(0x216)](_0x2b0590(0x241)+_0x2392a0+_0x2b0590(0x24f)+_0x52ca25,_0x2b0590(0x251));return{'execute':async()=>{const _0x38e9b6=_0x2b0590;await _0x151dfc[_0x38e9b6(0x245)];},'abortController':_0x151dfc[_0x2b0590(0x25d)]};}[_0x1ca519(0x207)]({reviewName:_0x39789b,content:_0x5cc5ac,args:_0x993600}){const _0x3d01d1=_0x1ca519,_0x296d70=this[_0x3d01d1(0x216)](_0x3d01d1(0x269)+_0x39789b+_0x3d01d1(0x26e),_0x3d01d1(0x26f),{'content':[{'type':_0x3d01d1(0x25a),'content':_0x5cc5ac}],'args':_0x993600});return{'getStream':async()=>{const _0x16e966=_0x3d01d1,_0xcf024d=(await _0x296d70[_0x16e966(0x245)])[_0x16e966(0x214)];return this[_0x16e966(0x246)](_0xcf024d);},'abortController':_0x296d70[_0x3d01d1(0x25d)]};}[_0x1ca519(0x1e8)]({content:_0x3aa76c,prompt:_0x339b3c,model:_0x222b1b}){const _0x1b5bac=_0x1ca519,_0x9e9c54=this[_0x1b5bac(0x216)](_0x1b5bac(0x25c),_0x1b5bac(0x26f),{'content':[{'type':_0x1b5bac(0x25a),'content':_0x3aa76c}],'prompt':_0x339b3c,'model':_0x222b1b});return{'getStream':async()=>{const _0x1d1baa=_0x1b5bac,_0x41f1cb=(await _0x9e9c54[_0x1d1baa(0x245)])[_0x1d1baa(0x214)];return this[_0x1d1baa(0x246)](_0x41f1cb);},'abortController':_0x9e9c54[_0x1b5bac(0x25d)]};}[_0x1ca519(0x252)](_0x580943,_0x168fa9,_0x3e992f){const _0x2cd18e=_0x1ca519,_0x1a873c=this[_0x2cd18e(0x216)](_0x2cd18e(0x241)+_0x580943+_0x2cd18e(0x26a)+_0x168fa9+_0x2cd18e(0x244),_0x2cd18e(0x1ec),{'positiveCount':_0x3e992f[_0x2cd18e(0x20e)],'totalCount':_0x3e992f[_0x2cd18e(0x242)]});return{'execute':async()=>{const _0x36931d=_0x2cd18e;await _0x1a873c[_0x36931d(0x245)];},'abortController':_0x1a873c[_0x2cd18e(0x25d)]};}[_0x1ca519(0x1eb)](_0x5b5c1e,_0x4d6a3b,_0x47d89c){const _0x4df6bc=_0x1ca519,_0x2cb3b4=this[_0x4df6bc(0x216)](_0x4df6bc(0x23a)+_0x5b5c1e+_0x4df6bc(0x1f3)+_0x4d6a3b+_0x4df6bc(0x244),_0x4df6bc(0x1ec),{'positiveCount':_0x47d89c[_0x4df6bc(0x20e)],'totalCount':_0x47d89c[_0x4df6bc(0x242)]});return{'execute':async()=>{const _0x27fd16=_0x4df6bc;await _0x2cb3b4[_0x27fd16(0x245)];},'abortController':_0x2cb3b4[_0x4df6bc(0x25d)]};}[_0x1ca519(0x265)](_0x3239db,_0xe4e83b){const _0x43c892=_0x1ca519,_0x5a074d=this[_0x43c892(0x216)](_0x43c892(0x209)+_0x3239db+_0x43c892(0x244),_0x43c892(0x1ec),{'positiveCount':_0xe4e83b[_0x43c892(0x20e)],'totalCount':_0xe4e83b[_0x43c892(0x242)]});return{'execute':async()=>{const _0x49da39=_0x43c892;await _0x5a074d[_0x49da39(0x245)];},'abortController':_0x5a074d[_0x43c892(0x25d)]};}[_0x1ca519(0x25f)](_0x2aabdc,_0x57a962,_0x54a870){const _0x4dc116=_0x1ca519,_0x5533df=this[_0x4dc116(0x216)](_0x4dc116(0x269)+_0x2aabdc+_0x4dc116(0x1f3)+_0x57a962+_0x4dc116(0x244),_0x4dc116(0x1ec),{'positiveCount':_0x54a870[_0x4dc116(0x20e)],'totalCount':_0x54a870[_0x4dc116(0x242)]});return{'execute':async()=>{const _0x4907b8=_0x4dc116;await _0x5533df[_0x4907b8(0x245)];},'abortController':_0x5533df[_0x4dc116(0x25d)]};}[_0x1ca519(0x21b)](_0x547070,_0x25ece7){const _0x12a87b=_0x1ca519,_0x5c7c3e=this[_0x12a87b(0x216)](_0x12a87b(0x23b)+_0x547070+_0x12a87b(0x244),_0x12a87b(0x1ec),{'positiveCount':_0x25ece7[_0x12a87b(0x20e)],'totalCount':_0x25ece7[_0x12a87b(0x242)]});return{'execute':async()=>{const _0x527f3e=_0x12a87b;await _0x5c7c3e[_0x527f3e(0x245)];},'abortController':_0x5c7c3e[_0x12a87b(0x25d)]};}[_0x1ca519(0x216)](_0x377c51,_0x2d054e,_0x3db215){const _0x2084ae=_0x1ca519,_0x3d88f5=new AbortController(),_0x46116e=_0x3db215 instanceof FormData,_0x35b109={'Authorization':_0x2084ae(0x23d)+this[_0x2084ae(0x218)]?.[_0x2084ae(0x1e9)]};_0x3db215&&!_0x46116e&&(_0x35b109[_0x2084ae(0x276)]=_0x2084ae(0x255));const _0x418f37={'method':_0x2d054e,'headers':_0x35b109,'signal':_0x3d88f5[_0x2084ae(0x1f7)]};return _0x3db215&&(_0x418f37[_0x2084ae(0x214)]=_0x46116e?_0x3db215:JSON[_0x2084ae(0x204)](_0x3db215)),{'request':fetch(''+this[_0x2084ae(0x203)]+_0x377c51,_0x418f37)[_0x2084ae(0x240)](_0x47222f=>{const _0x7de4f1=_0x2084ae;this[_0x7de4f1(0x224)](_0x47222f);})[_0x2084ae(0x254)](_0x441672=>{const _0x23f2b7=_0x2084ae;if(!_0x441672['ok'])throw new _0x2debc9(_0x23f2b7(0x201),this,{'url':this[_0x23f2b7(0x203)],'path':_0x377c51,'method':_0x2d054e,'body':_0x3db215,'status':(_0x441672||{})[_0x23f2b7(0x226)],'statusText':(_0x441672||{})[_0x23f2b7(0x1ee)]});return _0x441672;}),'abortController':_0x3d88f5};}async*[_0x1ca519(0x246)](_0xa9ab35){const _0x4b3a4a=_0x1ca519,_0x232e55=[],_0x4a7bfb=_0xa9ab35[_0x4b3a4a(0x24d)](),_0x3d4413=_0x179dfe({'onError':_0xa3538c=>{const _0x1f40cc=_0x4b3a4a;this[_0x1f40cc(0x224)](_0xa3538c);},'onEvent':_0x4867cc=>{const _0x249148=_0x4b3a4a;_0x4867cc[_0x249148(0x219)]=JSON[_0x249148(0x206)](_0x4867cc[_0x249148(0x219)]),_0x232e55[_0x249148(0x1f2)](_0x4867cc);}});try{let _0x5851b2=!0x1;for(;!_0x5851b2;){const {done:_0x148731,value:_0x2ff67b}=await _0x4a7bfb[_0x4b3a4a(0x229)]();_0x148731&&(_0x5851b2=!0x0),_0x3d4413[_0x4b3a4a(0x243)](this[_0x4b3a4a(0x259)][_0x4b3a4a(0x1fd)](_0x2ff67b,{'stream':!0x0})),yield*_0x232e55,_0x232e55[_0x4b3a4a(0x23f)]=0x0;}}catch(_0x2c06c3){this[_0x4b3a4a(0x224)](_0x2c06c3);}finally{_0x4a7bfb[_0x4b3a4a(0x1f5)](),_0x3d4413[_0x4b3a4a(0x22a)]();}}[_0x1ca519(0x224)](_0x5b2f27){const _0x5ef8a0=_0x1ca519;if(_0x5b2f27 instanceof _0x2debc9)throw _0x5b2f27;if(_0x5b2f27 instanceof Error&&_0x5ef8a0(0x22f)===_0x5b2f27[_0x5ef8a0(0x202)])throw new _0x2debc9(_0x5ef8a0(0x1ff),this,{'originalError':_0x5b2f27});throw new _0x2debc9(_0x5ef8a0(0x201),this,{'originalError':_0x5b2f27});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4183c7=_0x1246;function _0x3a57(){const _0x19b56b=['end',':start>','_setDataIdsOnChildren','view','plugins','push','data','start','_displayedFakeSelectionLocked','getChildren','ai-selection','editing','conversion','isBefore','element','ck-fake-ai-selection','context','random','ck-ai-assistant-ui_theme','hideFakeVisualSelection','ai-selection:','_nextDataId','name','95543VefoiN','getSelection','fromCharCode','_displayedFakeSelectionId','isContent','getLastMatchingPosition','data-id','RealTimeCollaborationClient','isPremiumPlugin','454148rkdpwH','getRoot','containerElement','ready','$textProxy','sessionId','createUIElement',':start></','modelToViewWithIds','document','9530KMmeai','368PyOTWD','1432416GidPhR','length','_getMarkersInDocumentOrder','isAtEnd','floor','495978uWNahc','dataDowncast','editingDowncast','removeMarker','join','isOpening','pluginName','selection','listenTo','getSelectionText','markerToElement','getStart','setAttribute','emptyElement','for','1249428hVxegU','markerName','getMarkersGroup','model','add','showFakeVisualSelection','addMarker','createRangeIn','AIEditing','toData','_integrateEditor','schema',':end></','isOfficialPlugin','_sessionId','getWalker','isAfter','removeAllRanges','indexOf','sort','getSelectedContent','processor','change',':end>','editors','get','convertAiChatSelectionMarker','toView','createRange','trim','from','version','763392IFHGWC','has','substring','afterInit','markerToHighlight','markers','getDocumentData'];_0x3a57=function(){return _0x19b56b;};return _0x3a57();}(function(_0x453add,_0x3bfeb4){const _0x5f376d=_0x1246,_0x55f4fd=_0x453add();while(!![]){try{const _0x3c2e75=-parseInt(_0x5f376d(0x11a))/0x1+-parseInt(_0x5f376d(0x123))/0x2+parseInt(_0x5f376d(0xfc))/0x3+-parseInt(_0x5f376d(0x12e))/0x4*(-parseInt(_0x5f376d(0x12d))/0x5)+-parseInt(_0x5f376d(0x143))/0x6+parseInt(_0x5f376d(0x134))/0x7+parseInt(_0x5f376d(0x12f))/0x8;if(_0x3c2e75===_0x3bfeb4)break;else _0x55f4fd['push'](_0x55f4fd['shift']());}catch(_0x152a18){_0x55f4fd['push'](_0x55f4fd['shift']());}}}(_0x3a57,0x24583));function _0x1246(_0x281c8c,_0x48cf3a){const _0x3a5715=_0x3a57();return _0x1246=function(_0x1246fa,_0x4aa217){_0x1246fa=_0x1246fa-0xe8;let _0x425ec1=_0x3a5715[_0x1246fa];return _0x425ec1;},_0x1246(_0x281c8c,_0x48cf3a);}import{ViewDowncastWriter as _0x16ae4f}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x1ae342,Editor as _0x486066}from'ckeditor5/src/core.js';import{uid as _0x1ffdf}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x535ba5}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x4183c7(0x10d);export class AIEditing extends _0x1ae342{[_0x4183c7(0x11d)]=null;[_0x4183c7(0x10b)]=!0x1;[_0x4183c7(0xea)];static get[_0x4183c7(0x13a)](){const _0x4dc730=_0x4183c7;return _0x4dc730(0x14b);}static get[_0x4183c7(0xe9)](){return!0x0;}static get[_0x4183c7(0x122)](){return!0x0;}get[_0x4183c7(0x128)](){const _0x272ff6=_0x4183c7;if(!this[_0x272ff6(0xea)]){const _0x387f89=_0x535ba5(this[_0x272ff6(0x113)]),_0x4a0988=_0x387f89[_0x272ff6(0x107)][_0x272ff6(0xfd)](_0x272ff6(0x121))&&_0x387f89[_0x272ff6(0x107)][_0x272ff6(0xf5)](_0x272ff6(0x121))[_0x272ff6(0x128)];this[_0x272ff6(0xea)]=_0x4a0988||_0x1ffdf();}return this[_0x272ff6(0xea)];}[_0x4183c7(0x102)](){const _0xf34335=_0x4183c7,_0x3981f9=_0x535ba5(this[_0xf34335(0x113)]),_0x390dae=_0x3981f9[_0xf34335(0x146)],_0x1f845d=_0x3981f9[_0xf34335(0x109)][_0xf34335(0xf7)](_0x390dae[_0xf34335(0x12c)][_0xf34335(0x124)](),{'convertAiChatSelectionMarker':!0x0}),_0x205aa0=new _0x16ae4f(_0x3981f9[_0xf34335(0x10e)][_0xf34335(0x106)][_0xf34335(0x12c)]);this[_0xf34335(0x105)](_0x1f845d,_0x205aa0);let _0x3ad2ea=_0x3981f9[_0xf34335(0x109)][_0xf34335(0xf1)][_0xf34335(0x14c)](_0x1f845d);const _0x1bb8ef=this[_0xf34335(0x131)](),_0x3cfedb=[];for(const _0x2c4c53 of _0x1bb8ef){const _0x22eb75='<'+_0x2c4c53[_0xf34335(0x119)]+_0xf34335(0x12a)+_0x2c4c53[_0xf34335(0x119)]+_0xf34335(0x104),_0x3eb3ba=_0x3ad2ea[_0xf34335(0xee)](_0x22eb75);_0x3ad2ea=_0x3ad2ea[_0xf34335(0xfe)](0x0,_0x3eb3ba)+_0x3ad2ea[_0xf34335(0xfe)](_0x3eb3ba+_0x22eb75[_0xf34335(0x130)]);const _0x21ce97='<'+_0x2c4c53[_0xf34335(0x119)]+_0xf34335(0xe8)+_0x2c4c53[_0xf34335(0x119)]+_0xf34335(0xf3),_0x36e2da=_0x3ad2ea[_0xf34335(0xee)](_0x21ce97);_0x3ad2ea=_0x3ad2ea[_0xf34335(0xfe)](0x0,_0x36e2da)+_0x3ad2ea[_0xf34335(0xfe)](_0x36e2da+_0x21ce97[_0xf34335(0x130)]),_0x3cfedb[_0xf34335(0x108)]({'markerName':_0x2c4c53[_0xf34335(0x119)],'start':_0x3eb3ba,'end':_0x36e2da,'htmlFragment':_0x3ad2ea[_0xf34335(0xfe)](_0x3eb3ba,_0x36e2da)});}return{'content':_0x3ad2ea,'version':_0x3981f9[_0xf34335(0x146)][_0xf34335(0x12c)][_0xf34335(0xfb)],'sessionId':this[_0xf34335(0x128)],'selections':_0x3cfedb};}async[_0x4183c7(0xff)](){const _0x8afd55=_0x4183c7;this[_0x8afd55(0x113)]instanceof _0x486066?this[_0x8afd55(0x14d)](this[_0x8afd55(0x113)]):this[_0x8afd55(0x13c)](this[_0x8afd55(0x113)][_0x8afd55(0xf4)],_0x8afd55(0x147),(_0x3bb71a,_0x3cfd6f)=>{const _0x21295f=_0x8afd55;_0x3cfd6f['on'](_0x21295f(0x126),()=>{const _0x1e867a=_0x21295f;this[_0x1e867a(0x14d)](_0x3cfd6f);});});}[_0x4183c7(0x14d)](_0x40d8dd){const _0x179afb=_0x4183c7;_0x40d8dd[_0x179afb(0x10f)][_0x179afb(0x142)](_0x179afb(0x136))[_0x179afb(0x100)]({'model':_0x179afb(0x10d),'view':{'classes':[_0x179afb(0x112),_0x179afb(0x115)],'priority':0xc}}),_0x40d8dd[_0x179afb(0x10f)][_0x179afb(0x142)](_0x179afb(0x135))[_0x179afb(0x13e)]({'model':_0x179afb(0x10d),'view':(_0x5ec91d,{writer:_0x40d030,options:_0x570f69})=>_0x570f69[_0x179afb(0xf6)]?_0x40d030[_0x179afb(0x129)](_0x5ec91d[_0x179afb(0x144)]+':'+(_0x5ec91d[_0x179afb(0x139)]?_0x179afb(0x10a):_0x179afb(0x103))):null});}[_0x4183c7(0x148)](_0x1d56b1,_0x33e541,_0x2e1344=!0x1,_0x39bcb4=!0x1){const _0xae7d48=_0x4183c7;if(this[_0xae7d48(0x10b)]&&!_0x39bcb4)return!0x1;this[_0xae7d48(0x11d)]&&this[_0xae7d48(0x116)](this[_0xae7d48(0x11d)]),this[_0xae7d48(0x11d)]=_0x33e541,this[_0xae7d48(0x10b)]=_0x2e1344;const _0x2fbad2=_0x535ba5(this[_0xae7d48(0x113)])[_0xae7d48(0x146)];return _0x2fbad2[_0xae7d48(0xf2)](_0x1444ed=>{const _0x2f6865=_0xae7d48;let _0x31fa1f=0x0;for(let _0xee2177 of _0x1d56b1){const _0x48fbcc=_0x2f6865(0x117)+_0x31fa1f;if(_0xee2177[_0x2f6865(0x10a)][_0x2f6865(0x132)]){const _0x4b38ce=_0xee2177[_0x2f6865(0x10a)][_0x2f6865(0x11f)](({item:_0x10023a})=>!_0x2fbad2[_0x2f6865(0x14e)][_0x2f6865(0x11e)](_0x10023a),{'boundaries':_0xee2177});_0xee2177=_0x1444ed[_0x2f6865(0xf8)](_0x4b38ce,_0xee2177[_0x2f6865(0x103)]);}_0x1444ed[_0x2f6865(0x149)](_0x48fbcc,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xee2177}),_0x31fa1f++;}}),window[_0xae7d48(0x11b)]()?.[_0xae7d48(0xed)](),!0x0;}[_0x4183c7(0x116)](_0x1fbc9c){const _0x539a9a=_0x4183c7;if(this[_0x539a9a(0x11d)]!=_0x1fbc9c)return!0x1;this[_0x539a9a(0x11d)]=null,this[_0x539a9a(0x10b)]=!0x1;const _0x34e7f5=_0x535ba5(this[_0x539a9a(0x113)]),_0x5c3984=_0x34e7f5[_0x539a9a(0x146)][_0x539a9a(0x101)][_0x539a9a(0x145)](_0x539a9a(0x10d));return _0x34e7f5[_0x539a9a(0x146)][_0x539a9a(0xf2)](_0x3642cf=>{const _0x2f7d47=_0x539a9a;for(const _0x59cdc7 of _0x5c3984)_0x3642cf[_0x2f7d47(0x137)](_0x59cdc7);}),!0x0;}[_0x4183c7(0x12b)](_0x53aa04){const _0xec27c1=_0x4183c7,_0x2764ff=_0x535ba5(this[_0xec27c1(0x113)]),_0x205878=_0x2764ff[_0xec27c1(0x109)][_0xec27c1(0xf7)](_0x53aa04),_0x3b93ff=new _0x16ae4f(_0x2764ff[_0xec27c1(0x10e)][_0xec27c1(0x106)][_0xec27c1(0x12c)]);return this[_0xec27c1(0x105)](_0x205878,_0x3b93ff),_0x205878;}[_0x4183c7(0x105)](_0x1b1bd0,_0xc306bc){const _0x724795=_0x4183c7;let _0x2f07ab=!0x1;const _0x28b018=new Set();for(const _0x3ec406 of _0x1b1bd0[_0x724795(0x10c)]()){const _0x548204=_0x3ec406['is'](_0x724795(0x141))||_0x3ec406['is'](_0x724795(0x125));if(!_0x3ec406['is'](_0x724795(0x111)))continue;(this[_0x724795(0x105)](_0x3ec406,_0xc306bc)||_0x548204)&&(_0xc306bc[_0x724795(0x140)](_0x724795(0x120),this[_0x724795(0x118)](_0x28b018),_0x3ec406),_0x2f07ab=!0x0);}return _0x2f07ab;}[_0x4183c7(0x118)](_0x41a691){const _0x29a1dc=_0x4183c7;let _0x5262ad;do{_0x5262ad='';for(let _0x20b454=0x0;_0x20b454<0x4;_0x20b454++)_0x5262ad+=String[_0x29a1dc(0x11c)](0x61+Math[_0x29a1dc(0x133)](0x1a*Math[_0x29a1dc(0x114)]()));}while(_0x41a691[_0x29a1dc(0xfd)](_0x5262ad));return _0x41a691[_0x29a1dc(0x147)](_0x5262ad),_0x5262ad;}[_0x4183c7(0x13d)](){const _0x197e6f=_0x4183c7,{model:_0x3a63bb}=_0x535ba5(this[_0x197e6f(0x113)]),_0xf6d04f=_0x3a63bb[_0x197e6f(0x12c)][_0x197e6f(0x13b)],_0x590c5a=_0x3a63bb[_0x197e6f(0xf0)](_0xf6d04f),_0x5392dc=[],_0x1ce648=_0x3a63bb[_0x197e6f(0x14a)](_0x590c5a)[_0x197e6f(0xeb)]();for(const {item:_0x4ff63e}of _0x1ce648)_0x4ff63e['is'](_0x197e6f(0x127))?_0x5392dc[_0x197e6f(0x108)](_0x4ff63e[_0x197e6f(0x109)]):_0x4ff63e['is'](_0x197e6f(0x111))&&_0x5392dc[_0x197e6f(0x130)]>0x0&&'\x20'!==_0x5392dc[_0x5392dc[_0x197e6f(0x130)]-0x1]&&_0x5392dc[_0x197e6f(0x108)]('\x20');return'\x22'+_0x5392dc[_0x197e6f(0x138)]('')[_0x197e6f(0xf9)]()+'\x22';}[_0x4183c7(0x131)](){const _0x3eb670=_0x4183c7,_0x31fad2=_0x535ba5(this[_0x3eb670(0x113)])[_0x3eb670(0x146)];return Array[_0x3eb670(0xfa)](_0x31fad2[_0x3eb670(0x101)][_0x3eb670(0x145)](_0x3eb670(0x10d)))[_0x3eb670(0xef)]((_0x45b58c,_0x23ccd8)=>_0x45b58c[_0x3eb670(0x13f)]()[_0x3eb670(0x110)](_0x23ccd8[_0x3eb670(0x13f)]())?-0x1:_0x45b58c[_0x3eb670(0x13f)]()[_0x3eb670(0xec)](_0x23ccd8[_0x3eb670(0x13f)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ab61f=_0x15f4;function _0x58a3(){const _0x5dce76=['_isReasoningEnabled','reset','reasoning','getCapabilitiesRequestData','webSearch','toggleWebSearch','fire','9JIVbNJ','isWebSearchEnabled','capabilitiesUpdated','setWebSearch','42AkAJCo','4378336oFpFUq','isReasoningEnabled','1016840xZaMfS','1147430FojDHO','toggleReasoning','setReasoning','2470482DTGMaq','12808UVEugs','getCapabilitiesConfig','_isWebSearchEnabled','79456zjlJAq','100565EBdMfF','init','132xxKorG'];_0x58a3=function(){return _0x5dce76;};return _0x58a3();}(function(_0x50baba,_0x42fbe1){const _0x835698=_0x15f4,_0x4cec03=_0x50baba();while(!![]){try{const _0x44b136=parseInt(_0x835698(0x127))/0x1+-parseInt(_0x835698(0x124))/0x2*(-parseInt(_0x835698(0x12a))/0x3)+-parseInt(_0x835698(0x11f))/0x4+-parseInt(_0x835698(0x128))/0x5*(parseInt(_0x835698(0x11c))/0x6)+-parseInt(_0x835698(0x123))/0x7+parseInt(_0x835698(0x11d))/0x8+-parseInt(_0x835698(0x118))/0x9*(-parseInt(_0x835698(0x120))/0xa);if(_0x44b136===_0x42fbe1)break;else _0x4cec03['push'](_0x4cec03['shift']());}catch(_0x112899){_0x4cec03['push'](_0x4cec03['shift']());}}}(_0x58a3,0x4338c));function _0x15f4(_0x32ac71,_0x59c8c2){const _0x58a388=_0x58a3();return _0x15f4=function(_0x15f46c,_0x2d53f4){_0x15f46c=_0x15f46c-0x114;let _0x4cc6b6=_0x58a388[_0x15f46c];return _0x4cc6b6;},_0x15f4(_0x32ac71,_0x59c8c2);}import{EmitterMixin as _0x59d89a}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x3ab61f(0x11a)];export class AICapabilities extends _0x59d89a(){[_0x3ab61f(0x126)];[_0x3ab61f(0x12b)];constructor(){const _0x58f939=_0x3ab61f;super(),this[_0x58f939(0x126)]=!0x1,this[_0x58f939(0x12b)]=!0x1;}[_0x3ab61f(0x129)](){const _0x5ba865=_0x3ab61f;this[_0x5ba865(0x12c)]();}[_0x3ab61f(0x12c)](){const _0x1fba3f=_0x3ab61f;this[_0x1fba3f(0x11b)](!0x1),this[_0x1fba3f(0x122)](!0x1);}[_0x3ab61f(0x125)](){const _0x3a8fe3=_0x3ab61f;return{'isWebSearchEnabled':this[_0x3a8fe3(0x126)],'isReasoningEnabled':this[_0x3a8fe3(0x12b)]};}static[_0x3ab61f(0x114)](_0x5bc23c){const _0x39a9a1=_0x3ab61f,_0x44e0d9={};return _0x5bc23c&&_0x5bc23c[_0x39a9a1(0x119)]&&(_0x44e0d9[_0x39a9a1(0x115)]={}),_0x5bc23c&&_0x5bc23c[_0x39a9a1(0x11e)]&&(_0x44e0d9[_0x39a9a1(0x12d)]={}),_0x44e0d9;}[_0x3ab61f(0x116)](){const _0x25aa36=_0x3ab61f;this[_0x25aa36(0x11b)](!this[_0x25aa36(0x126)]);}[_0x3ab61f(0x121)](){const _0xba29f3=_0x3ab61f;this[_0xba29f3(0x122)](!this[_0xba29f3(0x12b)]);}[_0x3ab61f(0x11b)](_0xe738a9){const _0x404d1c=_0x3ab61f;_0xe738a9!==this[_0x404d1c(0x126)]&&(this[_0x404d1c(0x126)]=_0xe738a9,this[_0x404d1c(0x117)](_0x404d1c(0x11a),this[_0x404d1c(0x125)]()));}[_0x3ab61f(0x122)](_0x23b0ce){const _0x43febd=_0x3ab61f;_0x23b0ce!==this[_0x43febd(0x12b)]&&(this[_0x43febd(0x12b)]=_0x23b0ce,this[_0x43febd(0x117)](_0x43febd(0x11a),this[_0x43febd(0x125)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5e5714,_0x973bb0){var _0x5e40b9=_0x3325,_0x4df101=_0x5e5714();while(!![]){try{var _0x1e3fe3=parseInt(_0x5e40b9(0x197))/0x1*(parseInt(_0x5e40b9(0x190))/0x2)+parseInt(_0x5e40b9(0x195))/0x3*(parseInt(_0x5e40b9(0x192))/0x4)+parseInt(_0x5e40b9(0x18e))/0x5+-parseInt(_0x5e40b9(0x18a))/0x6*(-parseInt(_0x5e40b9(0x199))/0x7)+parseInt(_0x5e40b9(0x188))/0x8+parseInt(_0x5e40b9(0x198))/0x9+-parseInt(_0x5e40b9(0x19a))/0xa;if(_0x1e3fe3===_0x973bb0)break;else _0x4df101['push'](_0x4df101['shift']());}catch(_0x558a36){_0x4df101['push'](_0x4df101['shift']());}}}(_0x29f7,0xcd920));function _0x3325(_0x532ca4,_0x2c3582){var _0x29f7da=_0x29f7();return _0x3325=function(_0x332558,_0x4ff248){_0x332558=_0x332558-0x186;var _0x343ce2=_0x29f7da[_0x332558];return _0x343ce2;},_0x3325(_0x532ca4,_0x2c3582);}function _0x29f7(){var _0xadcea3=['selection','FILE','TEXT','3491745JeNENf','URL','1040362jFriNY','html','4IEWmPC','document','SELECTION','3822495UBmECt','markdown','2ORkpYQ','2473092BcDwSn','21byhATP','42357670qmSGxv','HTML','file','MARKDOWN','text','DOCUMENT','2421104RFiieJ','web-resource','2974962zdMDjz'];_0x29f7=function(){return _0xadcea3;};return _0x29f7();}export var AIContextItemType;!function(_0x4ae26c){var _0x30b1a5=_0x3325;_0x4ae26c[_0x30b1a5(0x18c)]=_0x30b1a5(0x19c),_0x4ae26c[_0x30b1a5(0x187)]=_0x30b1a5(0x193),_0x4ae26c[_0x30b1a5(0x18f)]=_0x30b1a5(0x189),_0x4ae26c[_0x30b1a5(0x18d)]=_0x30b1a5(0x186),_0x4ae26c[_0x30b1a5(0x194)]=_0x30b1a5(0x18b);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x2091c0){var _0x2caa41=_0x3325;_0x2091c0[_0x2caa41(0x18d)]=_0x2caa41(0x186),_0x2091c0[_0x2caa41(0x19d)]=_0x2caa41(0x196),_0x2091c0[_0x2caa41(0x19b)]=_0x2caa41(0x191);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|
|
@@ -6,7 +6,7 @@ import { type AIConnectorRequest, type AIConnector } from '../aiconnector.js';
|
|
|
6
6
|
import { AIReply } from './aireply.js';
|
|
7
7
|
import { type Editor } from 'ckeditor5/src/core.js';
|
|
8
8
|
import { type AIContextItem } from './aicontext.js';
|
|
9
|
-
export declare const AI_MODEL_EVENT_NAMES: readonly ["interactionCreated", "interactionStarted", "interactionStopped", "interactionFinished", "interactionDestroyed", "replyCreated", "replyContentUpdated", "replyChangeGroupStateUpdated", "setConversationTitle", "error"];
|
|
9
|
+
export declare const AI_MODEL_EVENT_NAMES: readonly ["interactionCreated", "interactionStarted", "interactionStopped", "interactionFinished", "interactionDestroyed", "replyCreated", "replyContentUpdated", "replyChangeGroupStateUpdated", "setConversationTitle", "webSearchStarted", "webSearchFinished", "reasoningStarted", "reasoningFinished", "error"];
|
|
10
10
|
declare const AIInteraction_base: {
|
|
11
11
|
new (): import("ckeditor5/src/utils.js").Emitter;
|
|
12
12
|
prototype: import("ckeditor5/src/utils.js").Emitter;
|
|
@@ -29,6 +29,14 @@ export declare abstract class AIInteraction extends /* #__PURE__ */ AIInteractio
|
|
|
29
29
|
* The AI endpoint replies to the user message.
|
|
30
30
|
*/
|
|
31
31
|
replies: Array<AIReply>;
|
|
32
|
+
/**
|
|
33
|
+
* Message ID returned by the AI endpoint used for rating requests.
|
|
34
|
+
*/
|
|
35
|
+
messageId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Action call ID returned by the AI endpoint used for rating requests.
|
|
38
|
+
*/
|
|
39
|
+
actionCallId?: string;
|
|
32
40
|
constructor({ connector, editor }: AIInteractionOptions);
|
|
33
41
|
/**
|
|
34
42
|
* Sends the request to the AI endpoint.
|
|
@@ -132,4 +140,36 @@ export type AISetConversationTitleEvent = {
|
|
|
132
140
|
name: 'setConversationTitle';
|
|
133
141
|
args: [title: string, shouldAnimate?: boolean];
|
|
134
142
|
};
|
|
143
|
+
/**
|
|
144
|
+
* An event emitted by an {@link module:ai/aicore/model/aiinteraction~AIInteraction} when
|
|
145
|
+
* the web search was performed.
|
|
146
|
+
*/
|
|
147
|
+
export type AIWebSearchStartedEvent<TInteraction extends AIInteraction = AIInteraction> = {
|
|
148
|
+
name: 'webSearchStarted';
|
|
149
|
+
args: [interaction: TInteraction];
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* An event emitted by an {@link module:ai/aicore/model/aiinteraction~AIInteraction} when
|
|
153
|
+
* the web search was performed.
|
|
154
|
+
*/
|
|
155
|
+
export type AIWebSearchFinishedEvent<TInteraction extends AIInteraction = AIInteraction> = {
|
|
156
|
+
name: 'webSearchFinished';
|
|
157
|
+
args: [interaction: TInteraction];
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* An event emitted by an {@link module:ai/aicore/model/aiinteraction~AIInteraction} when
|
|
161
|
+
* the reasoning was performed.
|
|
162
|
+
*/
|
|
163
|
+
export type AIReasoningStartedEvent<TInteraction extends AIInteraction = AIInteraction> = {
|
|
164
|
+
name: 'reasoningStarted';
|
|
165
|
+
args: [interaction: TInteraction];
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* An event emitted by an {@link module:ai/aicore/model/aiinteraction~AIInteraction} when
|
|
169
|
+
* the reasoning was performed.
|
|
170
|
+
*/
|
|
171
|
+
export type AIReasoningFinishedEvent<TInteraction extends AIInteraction = AIInteraction> = {
|
|
172
|
+
name: 'reasoningFinished';
|
|
173
|
+
args: [interaction: TInteraction];
|
|
174
|
+
};
|
|
135
175
|
export {};
|