@ckeditor/ckeditor5-ai 47.3.0-alpha.2 → 47.3.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index-editor.css +18 -11
- package/dist/index.css +19 -11
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.d.ts +1 -0
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/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/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.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.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.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/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.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/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +2 -1
- package/theme/aiquickactions/aiquickactions.css +17 -10
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x351f3a=_0x18d6;(function(_0x2d7f42,_0x29754b){const _0x20d0f3=_0x18d6,_0x457929=_0x2d7f42();while(!![]){try{const _0x12e3b7=parseInt(_0x20d0f3(0xec))/0x1+parseInt(_0x20d0f3(0x11a))/0x2+-parseInt(_0x20d0f3(0x112))/0x3*(-parseInt(_0x20d0f3(0x10d))/0x4)+-parseInt(_0x20d0f3(0x126))/0x5*(parseInt(_0x20d0f3(0xf2))/0x6)+parseInt(_0x20d0f3(0xe5))/0x7+parseInt(_0x20d0f3(0xee))/0x8*(parseInt(_0x20d0f3(0x10e))/0x9)+-parseInt(_0x20d0f3(0xf8))/0xa;if(_0x12e3b7===_0x29754b)break;else _0x457929['push'](_0x457929['shift']());}catch(_0x289b1a){_0x457929['push'](_0x457929['shift']());}}}(_0x1bd0,0xa0baa));import{FocusTracker as _0x2c172a,KeystrokeHandler as _0x5b9631}from'ckeditor5/src/utils.js';function _0x18d6(_0x98d1ac,_0xd5deae){const _0x1bd011=_0x1bd0();return _0x18d6=function(_0x18d651,_0x46f669){_0x18d651=_0x18d651-0xd6;let _0x3aa7f9=_0x1bd011[_0x18d651];return _0x3aa7f9;},_0x18d6(_0x98d1ac,_0xd5deae);}import{View as _0x66268f,FocusCycler as _0x229cd5,createLabeledTextarea as _0x37e1fa}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x15d77e,AIFormToolbarViewMainActionLabel as _0x5d81d0}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x49f25e}from'./aiformcontentarea.js';import{AIFormErrorView as _0x7998da}from'./aiformerrorview.js';import{AIFormPromptView as _0x359fab}from'./aiformpromptview.js';function _0x1bd0(){const _0x1d2e77=['8GnmiIo','tryAgainButton','submitPrompt','isProcessing','2143968GhgeEW','text','focusCycler','delegate','label','bindTo','28139860rGedTo','add','execute','value','copyButtonView','toolbar','tab','reset','bindTemplate','isVisible','prompt','_createPromptView','replaceButton','focusFirst','insertButton','finishProcessing','insertContentBelow','focus','stopProcessing','_createHistoryView','submit','1184UsGJxS','10282068ZzWHWZ','isEnabled','clearHistory','shift\x20+\x20tab','366FHxcbf','trim','REPLACE','contentArea','div','fieldView','handleError','startProcessing','1842790BuwEIq','Ask\x20AI\x20to\x20edit\x20or\x20generate','mainAction','bind','createCollection','listenTo','AI_ERROR_FAILED','tryAgainEvent','set','keystrokes','stopButton','historyGroupView','5KrHrMl','setTemplate','search','ck-ai-form-content','high','chain','replaceContent','render','isError','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','items','element','fire','ck-ai-form','promptView','_promptHistory','Ask\x20AI\x20to\x20improve\x20generated\x20text','_createToolbar','locale','errorView','9160746jDKMyO','_focusables','queryView','Empty\x20history','focusTracker','clear','ck-hidden','421023DTChXT','focusLast'];_0x1bd0=function(){return _0x1d2e77;};return _0x1bd0();}import{AIHistoryListView as _0x46d7d3}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x18314e}from'./aihistorylistitemview.js';import{PromptHistory as _0xd1bf54}from'./prompthistory.js';import{getTranslation as _0x31362b}from'../../utils/common-translations.js';import{escape as _0x460fc7}from'es-toolkit/compat';export class AIFormView extends _0x66268f{[_0x351f3a(0xe9)];[_0x351f3a(0x123)];[_0x351f3a(0x115)];[_0x351f3a(0xfd)];[_0x351f3a(0xdf)];[_0x351f3a(0xe4)];[_0x351f3a(0xe6)];[_0x351f3a(0xf4)];[_0x351f3a(0xe0)];constructor(_0x3d7c09,_0x12afb8,_0x467cf1=''){const _0xffc9a2=_0x351f3a;super(_0x3d7c09),this[_0xffc9a2(0x122)](_0xffc9a2(0x10f),!0x0),this[_0xffc9a2(0x122)](_0xffc9a2(0xf1),!0x1),this[_0xffc9a2(0x122)](_0xffc9a2(0x102),''),this[_0xffc9a2(0x122)](_0xffc9a2(0xfb),''),this[_0xffc9a2(0x122)](_0xffc9a2(0xd9),!0x1),this[_0xffc9a2(0x122)](_0xffc9a2(0x11c),_0x5d81d0[_0xffc9a2(0x114)]),this[_0xffc9a2(0xe0)]=new _0xd1bf54(),this[_0xffc9a2(0xe4)]=new _0x7998da(_0x3d7c09),this[_0xffc9a2(0x115)]=new _0x49f25e(_0x3d7c09,_0x467cf1),this[_0xffc9a2(0x115)][_0xffc9a2(0x11d)](_0xffc9a2(0xf1))['to'](this),this[_0xffc9a2(0x115)][_0xffc9a2(0x11d)](_0xffc9a2(0xfb))['to'](this),this[_0xffc9a2(0xfd)]=this[_0xffc9a2(0xe2)](),this[_0xffc9a2(0xfd)][_0xffc9a2(0x11d)](_0xffc9a2(0x11c))['to'](this),this[_0xffc9a2(0xdf)]=this[_0xffc9a2(0x103)](),this[_0xffc9a2(0xe9)]=new _0x2c172a(),this[_0xffc9a2(0x123)]=new _0x5b9631(),this[_0xffc9a2(0xe6)]=this[_0xffc9a2(0x11e)]([this[_0xffc9a2(0x115)],this[_0xffc9a2(0x115)][_0xffc9a2(0xfc)],this[_0xffc9a2(0xfd)],this[_0xffc9a2(0xdf)]]),this[_0xffc9a2(0xf4)]=new _0x229cd5({'focusables':this[_0xffc9a2(0xe6)],'focusTracker':this[_0xffc9a2(0xe9)],'keystrokeHandler':this[_0xffc9a2(0x123)],'actions':{'focusPrevious':_0xffc9a2(0x111),'focusNext':_0xffc9a2(0xfe)}}),this[_0xffc9a2(0xf4)][_0xffc9a2(0xd6)](this[_0xffc9a2(0xdf)][_0xffc9a2(0xf4)]),this[_0xffc9a2(0xdf)][_0xffc9a2(0xe7)][_0xffc9a2(0x117)][_0xffc9a2(0x11d)](_0xffc9a2(0xfb))['to'](this,_0xffc9a2(0x102));const _0x40641e=this[_0xffc9a2(0x100)];this[_0xffc9a2(0x127)]({'tag':_0xffc9a2(0x116),'attributes':{'class':['ck',_0xffc9a2(0xde),_0x12afb8],'tabindex':'-1'},'children':[{'tag':_0xffc9a2(0x116),'attributes':{'class':['ck',_0xffc9a2(0x129)]},'children':[{'tag':_0xffc9a2(0x116),'attributes':{'class':[_0x40641e['if'](_0xffc9a2(0xd9),_0xffc9a2(0xeb),_0x4c99ef=>!_0x4c99ef)]},'children':[this[_0xffc9a2(0xe4)]]},this[_0xffc9a2(0x115)],this[_0xffc9a2(0xfd)],this[_0xffc9a2(0xdf)]]}]});}[_0x351f3a(0xd8)](){const _0x1070e9=_0x351f3a;super[_0x1070e9(0xd8)](),this[_0x1070e9(0xe9)][_0x1070e9(0xf9)](this[_0x1070e9(0x115)][_0x1070e9(0xdc)]),this[_0x1070e9(0xe9)][_0x1070e9(0xf9)](this[_0x1070e9(0x115)][_0x1070e9(0xfc)][_0x1070e9(0xdc)]),this[_0x1070e9(0xe9)][_0x1070e9(0xf9)](this[_0x1070e9(0xfd)][_0x1070e9(0xdc)]),this[_0x1070e9(0xe9)][_0x1070e9(0xf9)](this[_0x1070e9(0xdf)][_0x1070e9(0xdc)]),this[_0x1070e9(0x123)][_0x1070e9(0x11f)](this[_0x1070e9(0xdc)]);}[_0x351f3a(0x109)](_0x4f596f=0x1){const _0x18fbc0=_0x351f3a;-0x1===_0x4f596f?this[_0x18fbc0(0xf4)][_0x18fbc0(0xed)]():this[_0x18fbc0(0xf4)][_0x18fbc0(0x105)]();}[_0x351f3a(0xff)](){const _0x4fab2e=_0x351f3a;this[_0x4fab2e(0x102)]='',this[_0x4fab2e(0xfb)]='',this[_0x4fab2e(0xd9)]=!0x1,this[_0x4fab2e(0xdf)][_0x4fab2e(0xff)](),this[_0x4fab2e(0x115)][_0x4fab2e(0x101)]=!0x1,this[_0x4fab2e(0xfd)][_0x4fab2e(0x101)]=!0x1;}[_0x351f3a(0x103)](){const _0x202239=_0x351f3a,_0x1bac36=this[_0x202239(0xe3)],_0x156cf4=new _0x359fab(_0x1bac36,{'queryView':{'label':_0x31362b(_0x1bac36,_0x202239(0x11b)),'creator':_0x37e1fa,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x31362b(_0x1bac36,_0x202239(0xe8)),'secondary':_0x31362b(_0x1bac36,_0x202239(0xda))}}},'filteredView':this[_0x202239(0x10b)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x156cf4[_0x202239(0x11d)](_0x202239(0x10f))['to'](this,_0x202239(0x10f),this,_0x202239(0xf1),(_0x5ed449,_0x4b2295)=>_0x5ed449&&!_0x4b2295),this[_0x202239(0x11f)](_0x156cf4,_0x202239(0x10c),(_0x531e74,_0x3d79f8)=>{const _0x378d01=_0x202239;this[_0x378d01(0x102)]=_0x3d79f8;const _0x908bd0=_0x460fc7(_0x3d79f8);this[_0x378d01(0xdd)](_0x378d01(0xf0),_0x908bd0),_0x3d79f8[_0x378d01(0x113)]()&&this[_0x378d01(0xe0)][_0x378d01(0xf9)]({'prompt':_0x908bd0},0x0);},{'priority':_0x202239(0x12a)}),_0x156cf4;}[_0x351f3a(0x10b)](){const _0x571bdd=_0x351f3a,_0x1e6fbe=new _0x46d7d3(this[_0x571bdd(0xe3)]);return _0x1e6fbe[_0x571bdd(0x125)][_0x571bdd(0xdb)][_0x571bdd(0xf7)](this[_0x571bdd(0xe0)])['as'](_0x18314e),_0x1e6fbe['on'](_0x571bdd(0x110),()=>{const _0x4a1cf5=_0x571bdd;this[_0x4a1cf5(0xe0)][_0x4a1cf5(0xea)](),this[_0x4a1cf5(0xdf)][_0x4a1cf5(0x128)](''),this[_0x4a1cf5(0xdf)][_0x4a1cf5(0x109)]();}),_0x1e6fbe;}[_0x351f3a(0xe2)](){const _0x225bf6=_0x351f3a,_0xc79a16=new _0x15d77e(this[_0x225bf6(0xe3)]);return _0xc79a16[_0x225bf6(0x104)][_0x225bf6(0x11d)](_0x225bf6(0x10f))['to'](this,_0x225bf6(0x10f),this,_0x225bf6(0xf1),this,_0x225bf6(0xfb),(_0x2fc2fc,_0xfca00f,_0x4351a0)=>_0x2fc2fc&&!_0xfca00f&&!!_0x4351a0),_0xc79a16[_0x225bf6(0x104)][_0x225bf6(0xf5)](_0x225bf6(0xfa))['to'](this,_0x225bf6(0xd7)),_0xc79a16[_0x225bf6(0x106)][_0x225bf6(0x11d)](_0x225bf6(0x10f))['to'](this,_0x225bf6(0x10f),this,_0x225bf6(0xf1),this,_0x225bf6(0xfb),(_0xf63bd1,_0xa86e3f,_0x180d1c)=>_0xf63bd1&&!_0xa86e3f&&!!_0x180d1c),_0xc79a16[_0x225bf6(0x106)][_0x225bf6(0xf5)](_0x225bf6(0xfa))['to'](this,_0x225bf6(0x108)),_0xc79a16[_0x225bf6(0xef)][_0x225bf6(0x11d)](_0x225bf6(0x10f))['to'](this,_0x225bf6(0x10f),this,_0x225bf6(0xf1),(_0x4a2a1d,_0x6224ce)=>_0x4a2a1d&&!_0x6224ce),_0xc79a16[_0x225bf6(0xef)][_0x225bf6(0xf5)](_0x225bf6(0xfa))['to'](this,_0x225bf6(0x121)),_0xc79a16[_0x225bf6(0x124)][_0x225bf6(0x11d)](_0x225bf6(0x10f))['to'](this,_0x225bf6(0xf1)),_0xc79a16[_0x225bf6(0x124)][_0x225bf6(0xf5)](_0x225bf6(0xfa))['to'](this,_0x225bf6(0x10a)),_0xc79a16;}[_0x351f3a(0x119)](){const _0x2994c1=_0x351f3a;this[_0x2994c1(0xfb)]='',this[_0x2994c1(0xd9)]=!0x1,this[_0x2994c1(0xf1)]=!0x0,this[_0x2994c1(0x115)][_0x2994c1(0x101)]=!0x0,this[_0x2994c1(0xfd)][_0x2994c1(0x101)]=!0x0,this[_0x2994c1(0x115)][_0x2994c1(0x109)]();}[_0x351f3a(0x107)](){const _0xa996f0=_0x351f3a,_0x415022=this[_0xa996f0(0xe3)];this[_0xa996f0(0xf1)]=!0x1,this[_0xa996f0(0x102)]='',this[_0xa996f0(0xdf)][_0xa996f0(0xff)](),this[_0xa996f0(0xfb)]&&(this[_0xa996f0(0xdf)][_0xa996f0(0xe7)][_0xa996f0(0xf6)]=_0x31362b(_0x415022,_0xa996f0(0xe1)));}[_0x351f3a(0x118)](_0x419d80){const _0x5a5d35=_0x351f3a,_0x20a159=this[_0x5a5d35(0xe3)];this[_0x5a5d35(0x107)](),this[_0x5a5d35(0xd9)]=!0x0,this[_0x5a5d35(0xe4)][_0x5a5d35(0xf3)]=_0x419d80||_0x31362b(_0x20a159,_0x5a5d35(0x120)),this[_0x5a5d35(0xfb)]||(this[_0x5a5d35(0x115)][_0x5a5d35(0x101)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x743e(_0x3c1470,_0xb834c2){const _0x4d21d1=_0x4d21();return _0x743e=function(_0x743e85,_0x5ed0de){_0x743e85=_0x743e85-0x1eb;let _0x40431a=_0x4d21d1[_0x743e85];return _0x40431a;},_0x743e(_0x3c1470,_0xb834c2);}(function(_0x15efb4,_0x4ea142){const _0x42b416=_0x743e,_0x2368fc=_0x15efb4();while(!![]){try{const _0x344933=-parseInt(_0x42b416(0x1ec))/0x1*(parseInt(_0x42b416(0x1eb))/0x2)+parseInt(_0x42b416(0x1f4))/0x3*(parseInt(_0x42b416(0x1f1))/0x4)+parseInt(_0x42b416(0x1fc))/0x5*(-parseInt(_0x42b416(0x1fd))/0x6)+parseInt(_0x42b416(0x1f3))/0x7+parseInt(_0x42b416(0x1ed))/0x8*(parseInt(_0x42b416(0x1f5))/0x9)+parseInt(_0x42b416(0x1f9))/0xa*(parseInt(_0x42b416(0x1fe))/0xb)+parseInt(_0x42b416(0x1f0))/0xc*(parseInt(_0x42b416(0x1f7))/0xd);if(_0x344933===_0x4ea142)break;else _0x2368fc['push'](_0x2368fc['shift']());}catch(_0x4d4ee8){_0x2368fc['push'](_0x2368fc['shift']());}}}(_0x4d21,0xb79e1));import{ListItemView as _0x1350df,ButtonView as _0x438c88,ButtonLabelView as _0x10d6c1}from'ckeditor5/src/ui.js';import{unescape as _0x5746a0}from'es-toolkit/compat';function _0x4d21(){const _0x260cdf=['2379016QAbNkz','children','719264PmMOgU','3hIvTQJ','495TLcIXM','execute','9737NMdemJ','prompt','3180XFjIoA','add','fire','95abuYoo','49914rnCgke','12749dsniRJ','5824nNuknN','313vbFxxt','87128AtjeUk','locale','set','2508TqyRxG'];_0x4d21=function(){return _0x260cdf;};return _0x4d21();}export class AIHistoryListItemView extends _0x1350df{constructor(_0x15f474){const _0x13246b=_0x743e;super();const _0xebf707=new _0x10d6c1(),_0x160377=new _0x438c88(this[_0x13246b(0x1ee)],_0xebf707);this[_0x13246b(0x1f2)][_0x13246b(0x1fa)](_0x160377),_0x160377[_0x13246b(0x1ef)]({'label':_0x15f474[_0x13246b(0x1f8)],'withText':!0x0}),_0x160377['on'](_0x13246b(0x1f6),()=>{const _0x439f2b=_0x13246b;this[_0x439f2b(0x1fb)](_0x439f2b(0x1f6),{'value':_0x5746a0(_0x15f474[_0x439f2b(0x1f8)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4520a4=_0x9d03;(function(_0x312629,_0x4c2a0d){const _0x317b2a=_0x9d03,_0x2f6177=_0x312629();while(!![]){try{const _0x580db6=parseInt(_0x317b2a(0xc2))/0x1*(-parseInt(_0x317b2a(0xbe))/0x2)+parseInt(_0x317b2a(0xb2))/0x3*(-parseInt(_0x317b2a(0xbd))/0x4)+parseInt(_0x317b2a(0xb6))/0x5*(-parseInt(_0x317b2a(0xcb))/0x6)+-parseInt(_0x317b2a(0xca))/0x7+parseInt(_0x317b2a(0xc6))/0x8*(-parseInt(_0x317b2a(0xc3))/0x9)+parseInt(_0x317b2a(0xb4))/0xa+parseInt(_0x317b2a(0xbf))/0xb*(parseInt(_0x317b2a(0xbc))/0xc);if(_0x580db6===_0x4c2a0d)break;else _0x2f6177['push'](_0x2f6177['shift']());}catch(_0x2b5bb5){_0x2f6177['push'](_0x2f6177['shift']());}}}(_0x399b,0x81f6e));import{ListView as _0x163f93,ListItemGroupView as _0x282088,ButtonView as _0x44a165}from'ckeditor5/src/ui.js';import{getTranslation as _0x22c57f}from'../../utils/common-translations.js';function _0x9d03(_0x268def,_0x3e2ec4){const _0x399b14=_0x399b();return _0x9d03=function(_0x9d034e,_0x498992){_0x9d034e=_0x9d034e-0xb2;let _0x39f66d=_0x399b14[_0x9d034e];return _0x39f66d;},_0x9d03(_0x268def,_0x3e2ec4);}export class AIHistoryListView extends _0x163f93{[_0x4520a4(0xba)];[_0x4520a4(0xce)];constructor(_0x59d05f){const _0x2ec89e=_0x4520a4;super(_0x59d05f),this[_0x2ec89e(0xce)]=this[_0x2ec89e(0xb7)](),this[_0x2ec89e(0xba)]=new _0x282088(),this[_0x2ec89e(0xba)][_0x2ec89e(0xc1)][_0x2ec89e(0xc4)](this[_0x2ec89e(0xce)],0x1),this[_0x2ec89e(0xba)][_0x2ec89e(0xb9)]=_0x22c57f(_0x59d05f,_0x2ec89e(0xc0)),this[_0x2ec89e(0xba)][_0x2ec89e(0xc8)][_0x2ec89e(0xbb)](_0x2ec89e(0xb3))['to'](this),this[_0x2ec89e(0xc8)][_0x2ec89e(0xc4)](this[_0x2ec89e(0xba)]);}[_0x4520a4(0xcc)](){const _0x1b2f30=_0x4520a4;let _0xcf1090=0x0;for(const _0x4291da of this[_0x1b2f30(0xc8)])_0xcf1090+=_0x4291da[_0x1b2f30(0xc8)][_0x1b2f30(0xb5)];return{'resultsCount':_0xcf1090,'totalItemsCount':_0xcf1090};}[_0x4520a4(0xb7)](){const _0x1a1681=_0x4520a4,_0x387adf=this[_0x1a1681(0xc5)],_0x51d1a7=new _0x44a165(this[_0x1a1681(0xc5)]);return _0x51d1a7[_0x1a1681(0xb8)]({'label':'('+_0x22c57f(_0x387adf,_0x1a1681(0xcd))+')','withText':!0x0}),_0x51d1a7['on'](_0x1a1681(0xb3),()=>this[_0x1a1681(0xc9)](_0x1a1681(0xc7))),_0x51d1a7;}}function _0x399b(){const _0x560e3b=['clearHistoryButton','9CXbkcy','execute','7688040IdJpUi','length','36035kUbjRJ','_createClearHistoryButton','set','label','historyGroupView','delegate','24UlgWMp','259396NJrJae','24CqSlwa','14958526ytHdmC','Prompt\x20history','children','70717olwZMw','9pbxSlb','add','locale','6048776iXdvPs','clearHistory','items','fire','1691655WIbadD','762wihQJf','filter','Clear'];_0x399b=function(){return _0x560e3b;};return _0x399b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x39ed23=_0x2b0d;function _0x3c20(){const _0x442ab2=['parse','trim','1128pFfCSo','stringify','getItem','last','CKEditor/AIFormView/PromptHistory','length','addMany','prompt','add','_loadFromSessionStorage','179190aSBphR','_saveToSessionStorage','1097290fOLyeF','386HRynTu','remove','4615080otclLW','8595bsTHdQ','5257742BSHaBF','2158792adYRKD','setItem','toLowerCase','416114dwyryk','map'];_0x3c20=function(){return _0x442ab2;};return _0x3c20();}(function(_0x5e6eb2,_0x1a1c29){const _0x1e7aba=_0x2b0d,_0x5da8d=_0x5e6eb2();while(!![]){try{const _0x44b612=parseInt(_0x1e7aba(0x79))/0x1+parseInt(_0x1e7aba(0x71))/0x2*(-parseInt(_0x1e7aba(0x74))/0x3)+-parseInt(_0x1e7aba(0x76))/0x4+-parseInt(_0x1e7aba(0x70))/0x5+-parseInt(_0x1e7aba(0x73))/0x6+-parseInt(_0x1e7aba(0x75))/0x7+-parseInt(_0x1e7aba(0x7d))/0x8*(-parseInt(_0x1e7aba(0x6e))/0x9);if(_0x44b612===_0x1a1c29)break;else _0x5da8d['push'](_0x5da8d['shift']());}catch(_0x82c9c6){_0x5da8d['push'](_0x5da8d['shift']());}}}(_0x3c20,0x5f77d));import{Collection as _0x4ecf77}from'ckeditor5/src/utils.js';function _0x2b0d(_0x1a3c8d,_0x20f521){const _0x3c2060=_0x3c20();return _0x2b0d=function(_0x2b0dac,_0x51c0e6){_0x2b0dac=_0x2b0dac-0x67;let _0x24a422=_0x3c2060[_0x2b0dac];return _0x24a422;},_0x2b0d(_0x1a3c8d,_0x20f521);}const So=_0x39ed23(0x68);export class PromptHistory extends _0x4ecf77{constructor(){const _0x50772a=_0x39ed23;super(),this[_0x50772a(0x6d)](),this['on'](_0x50772a(0x6c),(_0x210e5e,_0x313619)=>{const _0xf4137d=_0x50772a,_0x5bce9f=fo(_0x313619[_0xf4137d(0x6b)]);for(const _0x5e13b4 of this)if(_0x5e13b4!=_0x313619&&fo(_0x5e13b4[_0xf4137d(0x6b)])===_0x5bce9f){this[_0xf4137d(0x72)](_0x5e13b4);break;}this[_0xf4137d(0x69)]>0x14&&this[_0xf4137d(0x72)](this[_0xf4137d(0x67)]),this[_0xf4137d(0x6f)]();}),this['on'](_0x50772a(0x72),()=>{const _0x237b87=_0x50772a;this[_0x237b87(0x6f)]();});}[_0x39ed23(0x6d)](){const _0x907349=_0x39ed23,_0x550e7d=sessionStorage[_0x907349(0x7f)](So)||'[]';this[_0x907349(0x6a)](JSON[_0x907349(0x7b)](_0x550e7d));}[_0x39ed23(0x6f)](){const _0x1c77eb=_0x39ed23;sessionStorage[_0x1c77eb(0x77)](So,JSON[_0x1c77eb(0x7e)](this[_0x1c77eb(0x7a)](_0x147902=>_0x147902)));}}function fo(_0x189250){const _0x304a28=_0x39ed23;return _0x189250[_0x304a28(0x78)]()[_0x304a28(0x7c)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2eec(){const _0x1c64b4=['length','1336iJuQKm','values','getFirstRange','_hasContext','config','7771855gcMoUb','_commandDefinitions','getSelectedBlocks','selection','1270HYMKuh','isCollapsed','element','from','change:_hasContext','requiresContent','hasContent','getItems','includes','change:isEnabled','editor','enabledCommandsIds','476271ZosKAY','40335zyOADi','refresh','name','model','document','10612776BwCvOQ','showUI','plugins','execute','isEnabled','getRanges','isEmpty','add','21452khSzCG','custom','set','34497WBJNfo','2YohgOG','get','12399550MpfIFI','ai.assistant.disabledElements'];_0x2eec=function(){return _0x1c64b4;};return _0x2eec();}const _0x404e46=_0x7c5b;(function(_0x42e04c,_0x5e88e0){const _0x310cad=_0x7c5b,_0x5058d5=_0x42e04c();while(!![]){try{const _0x24dabb=-parseInt(_0x310cad(0xa0))/0x1*(parseInt(_0x310cad(0xb1))/0x2)+-parseInt(_0x310cad(0x9f))/0x3+parseInt(_0x310cad(0xad))/0x4*(-parseInt(_0x310cad(0xbf))/0x5)+parseInt(_0x310cad(0xa5))/0x6+-parseInt(_0x310cad(0xbb))/0x7+parseInt(_0x310cad(0xb6))/0x8*(parseInt(_0x310cad(0xb0))/0x9)+parseInt(_0x310cad(0xb3))/0xa;if(_0x24dabb===_0x5e88e0)break;else _0x5058d5['push'](_0x5058d5['shift']());}catch(_0x37b4fe){_0x5058d5['push'](_0x5058d5['shift']());}}}(_0x2eec,0xee997));import{Command as _0x1b8570}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x3e29a1}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x1b8570{[_0x404e46(0xbc)];constructor(_0x51670b,_0x1aa8a6){const _0x2d21d8=_0x404e46;super(_0x51670b),this[_0x2d21d8(0xbc)]=_0x1aa8a6,this[_0x2d21d8(0xaf)](_0x2d21d8(0x9e),[]),this['on'](_0x2d21d8(0x97),(_0x72da7c,_0x24e2ba,_0x1f924d)=>{const _0x725c1a=_0x2d21d8;this[_0x725c1a(0xa9)]&&(this[_0x725c1a(0x9e)]=ns(this[_0x725c1a(0xbc)],_0x1f924d));}),this[_0x2d21d8(0xaf)](_0x2d21d8(0xb9),!0x1),this['on'](_0x2d21d8(0x9c),(_0x3ebcad,_0x52b60d,_0x3d3a80)=>{const _0x15544f=_0x2d21d8;this[_0x15544f(0x9e)]=_0x3d3a80?ns(this[_0x15544f(0xbc)],this[_0x15544f(0xb9)]):[];});}[_0x404e46(0xa1)](){const _0x24ef79=_0x404e46,_0x487458=this[_0x24ef79(0x9d)][_0x24ef79(0xa3)];this[_0x24ef79(0xb9)]=function(_0x3dd0d8){const _0x4fb836=_0x24ef79,_0x26a39b=_0x3dd0d8[_0x4fb836(0xa4)][_0x4fb836(0xbe)];return _0x26a39b[_0x4fb836(0xc0)]?0x0!==[..._0x26a39b[_0x4fb836(0xbd)]()][_0x4fb836(0xb5)]&&![..._0x26a39b[_0x4fb836(0xbd)]()][0x0][_0x4fb836(0xab)]:!!_0x3dd0d8[_0x4fb836(0x99)](_0x26a39b[_0x4fb836(0xb8)]());}(_0x487458);const _0x14bdd1=_0x487458[_0x24ef79(0xa4)][_0x24ef79(0xbe)],_0x526f5d=this[_0x24ef79(0x9d)][_0x24ef79(0xba)][_0x24ef79(0xb2)](_0x24ef79(0xb4));for(const _0x5965f5 of _0x14bdd1[_0x24ef79(0xaa)]())for(const _0x3b7842 of _0x5965f5[_0x24ef79(0x9a)]())if(_0x3b7842['is'](_0x24ef79(0x95))&&_0x526f5d[_0x24ef79(0x9b)](_0x3b7842[_0x24ef79(0xa2)]))return void(this[_0x24ef79(0xa9)]=!0x1);this[_0x24ef79(0xa9)]=!0x0;}[_0x404e46(0xa8)](_0x4f3201='',_0x384f09='',_0x3271b4=_0x404e46(0xae)){const _0xc17f=_0x404e46;this[_0xc17f(0x9d)][_0xc17f(0xa7)][_0xc17f(0xb2)](_0x3e29a1)[_0xc17f(0xa6)](_0x4f3201,_0x384f09,_0x3271b4);}}function _0x7c5b(_0x5820eb,_0x502d79){const _0x2eecb0=_0x2eec();return _0x7c5b=function(_0x7c5be6,_0x3c8094){_0x7c5be6=_0x7c5be6-0x95;let _0x4f94d7=_0x2eecb0[_0x7c5be6];return _0x4f94d7;},_0x7c5b(_0x5820eb,_0x502d79);}function ns(_0x47efe2,_0x5c4120){const _0x2f15e8=_0x404e46,_0x3e2fda=new Set();for(const _0x546f5c of _0x47efe2[_0x2f15e8(0xb7)]())(_0x5c4120||!0x1===_0x546f5c[_0x2f15e8(0x98)])&&_0x3e2fda[_0x2f15e8(0xac)](_0x546f5c['id']);return Array[_0x2f15e8(0x96)](_0x3e2fda);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x2c8c93,_0x4cbb8a,_0x4408b2){const t=_0x2c8c93['t'];switch(_0x4cbb8a){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x4408b2);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x4408b2);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x4408b2);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x4cbb8a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(
|
|
23
|
+
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x51c911,_0xd49a57){const _0x1487f2=(0x0,_0xd49a57['t'])('Other');return _0x51c911['length']?'groupId'in _0x51c911[0x0]?_0x51c911:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1487f2,'order':0x1/0x0,'commands':_0x51c911}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1487f2,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0xc915(_0x3c742e,_0x3b09f1){const _0x2a0ebc=_0x2a0e();return _0xc915=function(_0xc91568,_0x5a94f7){_0xc91568=_0xc91568-0x116;let _0x356bd8=_0x2a0ebc[_0xc91568];return _0x356bd8;},_0xc915(_0x3c742e,_0x3b09f1);}const _0x23e6f9=_0xc915;(function(_0x537bfc,_0x341ab9){const _0x70eafd=_0xc915,_0x86a47f=_0x537bfc();while(!![]){try{const _0x216a30=parseInt(_0x70eafd(0x12b))/0x1*(parseInt(_0x70eafd(0x12f))/0x2)+-parseInt(_0x70eafd(0x14e))/0x3+-parseInt(_0x70eafd(0x12a))/0x4+-parseInt(_0x70eafd(0x177))/0x5+-parseInt(_0x70eafd(0x166))/0x6+parseInt(_0x70eafd(0x178))/0x7*(-parseInt(_0x70eafd(0x14a))/0x8)+parseInt(_0x70eafd(0x15e))/0x9;if(_0x216a30===_0x341ab9)break;else _0x86a47f['push'](_0x86a47f['shift']());}catch(_0x37ff78){_0x86a47f['push'](_0x86a47f['shift']());}}}(_0x2a0e,0x875e2));import{ContextPlugin as _0xa9c3c2}from'ckeditor5/src/core.js';import{AIConnector as _0xdf0bd7}from'../aicore/aiconnector.js';import{AIEditing as _0x17a0a4}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x70e63d,AIBalloonView as _0x39bad3}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x2a0e(){const _0x150cbc=['context','editing','updateContent','ranges','length','bottom','off','updatePosition','isPremiumPlugin','top','render','199552QsuKKt','2574WiUwKS','getVisible','pluginName','differ','226ykWtlN','model','showRotator','round','showFakeVisualSelection','headerView','selectionRemoved','end','once','rootName','startAutoScroll','_updateBalloon','$graveyard','startsWith','markers','getMarkersGroup','dialogClosed','filter','trackChanges','value','iconView','hideFakeVisualSelection','ai-balloon-selection','ai.availableReplyActions','bind','isTrackChangesOn','start','413144DhsGid','ai-balloon-','content','_showDialog','1874214mXDYQF','max','ai-selection:','open','AIBalloon','getIntersection','mainView','plugins','change','_cleanupMarkerRemovalListener','width','AIEditing','height','locale','ai-selection','delegate','31338792ZgLgJX','ai-balloon','view','balloonView','_calculateDialogPosition','aiBalloon','isEqual','stopListening','5753208UkZJxx','_setupMarkerRemovalListener','setupRotator','show','_getSelectionElements','icon','_pendingRenderCallback','_setupVisualSelection','requires','isOpen','_calculateOptimalTopPosition','\x20ai-balloon-rotator','root','hide','showBlockingError','get','index','3535295PGNxQY','119JCpXwh','_isUpdatingMarkers','window','_config','close','left','isOfficialPlugin','listenTo','document','title','stopAutoScroll','fire','commands','Dialog','AI_ACTIONS_SELECTION_REMOVED_ERROR','getChangedMarkers','getBoundingRect','label','config'];_0x2a0e=function(){return _0x150cbc;};return _0x2a0e();}import{getAllMarkersDomElementsSorted as _0x580bce}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x4f7b75,Rect as _0x106e73,scrollViewportToShowTarget as _0x5dd310}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0xaa5f7f}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x4c667f}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x5b72d1}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x70e63d,_0x23e6f9(0x13f),_0x23e6f9(0x135)];const x=0xa;export class AIBalloon extends _0xa9c3c2{static get[_0x23e6f9(0x16e)](){return[_0xdf0bd7,_0x17a0a4];}static get[_0x23e6f9(0x12d)](){const _0x313f8b=_0x23e6f9;return _0x313f8b(0x152);}static get[_0x23e6f9(0x17e)](){return!0x0;}static get[_0x23e6f9(0x127)](){return!0x0;}[_0x23e6f9(0x16f)]=!0x1;[_0x23e6f9(0x17b)];[_0x23e6f9(0x179)]=!0x1;[_0x23e6f9(0x16c)]=null;[_0x23e6f9(0x151)](_0x30853c){const _0x44c3cf=_0x23e6f9,_0x2898c0=_0xaa5f7f(this[_0x44c3cf(0x11f)]);if(this[_0x44c3cf(0x17b)]=_0x30853c,this[_0x44c3cf(0x16f)])return void this[_0x44c3cf(0x13a)](_0x30853c);const _0x74200c=this[_0x44c3cf(0x11f)][_0x44c3cf(0x11e)][_0x44c3cf(0x175)](_0x44c3cf(0x146))||[..._0x4c667f],_0xa1f1b4=_0x2898c0?.[_0x44c3cf(0x118)][_0x44c3cf(0x175)](_0x44c3cf(0x141)),_0x3a325b=_0xa1f1b4?.[_0x44c3cf(0x142)];this[_0x44c3cf(0x161)]=new _0x39bad3(_0x2898c0[_0x44c3cf(0x15b)],_0x30853c,_0x74200c,!!_0x3a325b),this[_0x44c3cf(0x161)][_0x44c3cf(0x15d)](..._0x70e63d)['to'](this),_0xa1f1b4&&this[_0x44c3cf(0x161)][_0x44c3cf(0x147)](_0x44c3cf(0x148))['to'](_0xa1f1b4,_0x44c3cf(0x142)),this[_0x44c3cf(0x14d)](_0x30853c);}[_0x23e6f9(0x17c)](){const _0x3e2c83=_0x23e6f9;_0xaa5f7f(this[_0x3e2c83(0x11f)])[_0x3e2c83(0x155)][_0x3e2c83(0x175)](_0x3e2c83(0x119))[_0x3e2c83(0x173)]();}[_0x23e6f9(0x139)](){const _0x231fd2=_0x23e6f9;this[_0x231fd2(0x161)]&&this[_0x231fd2(0x161)][_0x231fd2(0x139)]();}[_0x23e6f9(0x116)](){const _0x44f19d=_0x23e6f9;this[_0x44f19d(0x161)]&&this[_0x44f19d(0x161)][_0x44f19d(0x116)]();}[_0x23e6f9(0x13a)](_0x599fe9){const _0x4c0373=_0x23e6f9,_0x245dad=_0xaa5f7f(this[_0x4c0373(0x11f)]),_0x1f0a33=_0x245dad[_0x4c0373(0x155)][_0x4c0373(0x175)](_0x4c0373(0x119));this[_0x4c0373(0x16c)]&&(_0x245dad[_0x4c0373(0x120)][_0x4c0373(0x160)][_0x4c0373(0x125)](_0x4c0373(0x129),this[_0x4c0373(0x16c)]),this[_0x4c0373(0x16c)]=null),this[_0x4c0373(0x179)]=!0x0,_0x1f0a33[_0x4c0373(0x160)]?.[_0x4c0373(0x134)]&&(_0x1f0a33[_0x4c0373(0x160)][_0x4c0373(0x134)][_0x4c0373(0x11d)]=_0x599fe9[_0x4c0373(0x181)],_0x1f0a33[_0x4c0373(0x160)][_0x4c0373(0x134)][_0x4c0373(0x143)]&&_0x599fe9[_0x4c0373(0x16b)]&&(_0x1f0a33[_0x4c0373(0x160)][_0x4c0373(0x134)][_0x4c0373(0x143)][_0x4c0373(0x14c)]=_0x599fe9[_0x4c0373(0x16b)])),this[_0x4c0373(0x161)][_0x4c0373(0x121)](_0x599fe9[_0x4c0373(0x154)]),this[_0x4c0373(0x16d)](_0x599fe9[_0x4c0373(0x122)],_0x599fe9[_0x4c0373(0x176)]),this[_0x4c0373(0x16c)]=()=>{const _0x53d6bb=_0x4c0373;this[_0x53d6bb(0x179)]=!0x1,this[_0x53d6bb(0x16c)]=null,_0x1f0a33[_0x53d6bb(0x160)]&&_0x1f0a33[_0x53d6bb(0x160)][_0x53d6bb(0x126)]();},_0x245dad[_0x4c0373(0x120)][_0x4c0373(0x160)][_0x4c0373(0x137)](_0x4c0373(0x129),this[_0x4c0373(0x16c)]);}[_0x23e6f9(0x16d)](_0x1a2216,_0x2bb611){const _0x2b8596=_0x23e6f9;this[_0x2b8596(0x11f)][_0x2b8596(0x155)][_0x2b8596(0x175)](_0x17a0a4)[_0x2b8596(0x133)](_0x1a2216,_0x2b8596(0x14b)+_0x2bb611,!0x0,!0x0);}[_0x23e6f9(0x14d)](_0x14b039){const _0x19b65b=_0x23e6f9,_0x4d9717=_0xaa5f7f(this[_0x19b65b(0x11f)]);this[_0x19b65b(0x16d)](_0x14b039[_0x19b65b(0x122)],_0x14b039[_0x19b65b(0x176)]);const _0x174388=this[_0x19b65b(0x16a)]();_0x174388&&_0x174388[0x0]&&_0x5dd310({'target':_0x174388[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x4d9717[_0x19b65b(0x155)][_0x19b65b(0x175)](_0x19b65b(0x119))[_0x19b65b(0x169)]({'title':_0x14b039[_0x19b65b(0x181)],'icon':_0x14b039[_0x19b65b(0x16b)],'hasCloseButton':!0x0,'id':_0x19b65b(0x163),'position':this[_0x19b65b(0x162)][_0x19b65b(0x147)](this),'className':_0x19b65b(0x15f)+(_0x14b039[_0x19b65b(0x131)]?_0x19b65b(0x171):''),'content':this[_0x19b65b(0x161)],'onShow':_0x304daa=>{const _0x238264=_0x19b65b;_0x14b039[_0x238264(0x131)]&&this[_0x238264(0x161)][_0x238264(0x168)](_0x304daa),this[_0x238264(0x167)](),this[_0x238264(0x16f)]=!0x0;},'onHide':()=>{const _0x267bdf=_0x19b65b;this[_0x267bdf(0x11f)][_0x267bdf(0x155)][_0x267bdf(0x175)](_0x267bdf(0x159))[_0x267bdf(0x144)](_0x267bdf(0x14b)+this[_0x267bdf(0x17b)][_0x267bdf(0x176)]),this[_0x267bdf(0x157)](),this[_0x267bdf(0x117)](_0x267bdf(0x13f)),this[_0x267bdf(0x16f)]=!0x1;}});}[_0x23e6f9(0x162)](_0x44a97e,_0x2a5b25){const _0x109ecd=_0x23e6f9;if(!_0x2a5b25)return null;const _0x1c2c0e=this[_0x109ecd(0x16a)]();if(!_0x1c2c0e||0x0===_0x1c2c0e[_0x109ecd(0x123)])return{'left':Math[_0x109ecd(0x132)](_0x2a5b25[_0x109ecd(0x17d)]+_0x2a5b25[_0x109ecd(0x158)]/0x2-_0x44a97e[_0x109ecd(0x158)]/0x2),'top':Math[_0x109ecd(0x132)](_0x2a5b25[_0x109ecd(0x128)]+_0x2a5b25[_0x109ecd(0x15a)]/0x2-_0x44a97e[_0x109ecd(0x15a)]/0x2)};const _0x52400c=Math[_0x109ecd(0x132)](_0x2a5b25[_0x109ecd(0x17d)]+_0x2a5b25[_0x109ecd(0x158)]/0x2-_0x44a97e[_0x109ecd(0x158)]/0x2),_0x3e29c6=new _0x106e73(_0x1c2c0e[0x0]),_0x4c1e01=new _0x106e73(_0x1c2c0e[_0x1c2c0e[_0x109ecd(0x123)]-0x1]),_0x5aae7a=_0x44a97e[_0x109ecd(0x15a)],_0x1bc4b5=this[_0x109ecd(0x17b)][_0x109ecd(0x131)]?0x8:0x0;return{'left':_0x52400c,'top':this[_0x109ecd(0x170)](_0x3e29c6,_0x4c1e01,_0x5aae7a,_0x1bc4b5,_0x2a5b25)};}[_0x23e6f9(0x170)](_0x3afbce,_0x38dbc1,_0x3e78fe,_0x5d7365=0x0,_0x4fcabe){const _0xc0b6db=_0x23e6f9,_0x1623fa=_0x3e78fe+_0x5d7365,_0x476ae8=new _0x106e73(_0x4f7b75[_0xc0b6db(0x17a)]),_0x27d714=[_0x3afbce[_0xc0b6db(0x12c)](),_0x38dbc1[_0xc0b6db(0x12c)]()][_0xc0b6db(0x140)](_0x5f2f99=>_0x5f2f99),_0x17fbbf=_0x106e73[_0xc0b6db(0x11c)](_0x27d714);if(!_0x17fbbf)return Math[_0xc0b6db(0x132)](_0x4fcabe[_0xc0b6db(0x128)]+_0x4fcabe[_0xc0b6db(0x15a)]/0x2);const _0x482e02=_0x476ae8[_0xc0b6db(0x153)](_0x17fbbf);if(!_0x482e02)return Math[_0xc0b6db(0x132)](_0x4fcabe[_0xc0b6db(0x128)]+_0x4fcabe[_0xc0b6db(0x15a)]/0x2);const _0x25b683=_0x4fcabe[_0xc0b6db(0x12c)](),_0x502a83=_0x25b683&&_0x17fbbf[_0xc0b6db(0x15a)]>_0x25b683[_0xc0b6db(0x15a)],_0x4832d7=_0x482e02[_0xc0b6db(0x128)],_0x24db23=_0x482e02[_0xc0b6db(0x124)];if(_0x502a83){const _0x4e698c=(_0x25b683||_0x476ae8)[_0xc0b6db(0x15a)]/0x2-_0x1623fa/0x2,_0x3de3c9=_0x4832d7-x-_0x4fcabe[_0xc0b6db(0x128)],_0xe82add=_0x4fcabe[_0xc0b6db(0x124)]-_0x24db23-x;return _0x3de3c9>=_0x1623fa?Math[_0xc0b6db(0x14f)](x,_0x4832d7-_0x1623fa-x):_0xe82add>=_0x1623fa?_0x24db23+x:Math[_0xc0b6db(0x14f)](x,_0x4e698c);}const _0x1e67af=_0x4832d7-_0x1623fa,_0x314ae6=_0x4fcabe[_0xc0b6db(0x124)]-_0x24db23-x,_0x1daf83=_0x4832d7-x-_0x4fcabe[_0xc0b6db(0x128)];let _0x31b698;if(_0x314ae6>=_0x1623fa)_0x31b698=_0x24db23+x;else{if(_0x1daf83>=_0x1623fa)_0x31b698=_0x1e67af-x;else _0x31b698=_0x4832d7+_0x17fbbf[_0xc0b6db(0x15a)]/0x2-_0x1623fa/0x2;}return _0x31b698;}[_0x23e6f9(0x167)](){const _0x27ac94=_0x23e6f9,_0x159440=_0xaa5f7f(this[_0x27ac94(0x11f)]);this[_0x27ac94(0x17f)](_0x159440[_0x27ac94(0x130)][_0x27ac94(0x180)],_0x27ac94(0x156),()=>{const _0x485f09=_0x27ac94;if(this[_0x485f09(0x179)])return;for(const {name:_0x4a532e,data:{newRange:_0x139a19}}of _0x159440[_0x485f09(0x130)][_0x485f09(0x180)][_0x485f09(0x12e)][_0x485f09(0x11b)]())if(_0x4a532e[_0x485f09(0x13c)](_0x485f09(0x150))&&(_0x139a19&&(_0x139a19[_0x485f09(0x149)][_0x485f09(0x164)](_0x139a19[_0x485f09(0x136)])||_0x485f09(0x13b)==_0x139a19[_0x485f09(0x172)][_0x485f09(0x138)])||null==_0x139a19)){const _0x49607c=_0x5b72d1(this[_0x485f09(0x11f)][_0x485f09(0x15b)],_0x485f09(0x11a));this[_0x485f09(0x161)][_0x485f09(0x174)](_0x49607c),this[_0x485f09(0x117)](_0x485f09(0x135));}});}[_0x23e6f9(0x157)](){const _0x5b38d3=_0x23e6f9,_0x198f62=_0xaa5f7f(this[_0x5b38d3(0x11f)]);this[_0x5b38d3(0x165)](_0x198f62[_0x5b38d3(0x130)][_0x5b38d3(0x180)]);}[_0x23e6f9(0x16a)](){const _0x3f52a7=_0x23e6f9,_0x39c7d5=_0xaa5f7f(this[_0x3f52a7(0x11f)]);return _0x580bce(_0x39c7d5[_0x3f52a7(0x120)],[..._0x39c7d5[_0x3f52a7(0x130)][_0x3f52a7(0x13d)][_0x3f52a7(0x13e)](_0x3f52a7(0x15c)),..._0x39c7d5[_0x3f52a7(0x130)][_0x3f52a7(0x13d)][_0x3f52a7(0x13e)](_0x3f52a7(0x145))]);}}
|
|
23
|
+
const _0x5ea975=_0x323d;(function(_0x46ff0c,_0x1be69e){const _0x5565e1=_0x323d,_0x548a0e=_0x46ff0c();while(!![]){try{const _0x32f995=parseInt(_0x5565e1(0x10e))/0x1*(-parseInt(_0x5565e1(0x100))/0x2)+-parseInt(_0x5565e1(0x163))/0x3+-parseInt(_0x5565e1(0x15b))/0x4*(-parseInt(_0x5565e1(0x12c))/0x5)+-parseInt(_0x5565e1(0x121))/0x6*(-parseInt(_0x5565e1(0x10f))/0x7)+-parseInt(_0x5565e1(0x166))/0x8*(parseInt(_0x5565e1(0x165))/0x9)+-parseInt(_0x5565e1(0x114))/0xa*(-parseInt(_0x5565e1(0x145))/0xb)+-parseInt(_0x5565e1(0x128))/0xc*(parseInt(_0x5565e1(0x105))/0xd);if(_0x32f995===_0x1be69e)break;else _0x548a0e['push'](_0x548a0e['shift']());}catch(_0x22e48c){_0x548a0e['push'](_0x548a0e['shift']());}}}(_0x1bab,0x7114b));import{ContextPlugin as _0x407e92}from'ckeditor5/src/core.js';import{AIConnector as _0x404b18}from'../aicore/aiconnector.js';function _0x323d(_0x2d2733,_0x7fac2e){const _0x1bab38=_0x1bab();return _0x323d=function(_0x323dfb,_0x3ff277){_0x323dfb=_0x323dfb-0xfa;let _0x3c6af2=_0x1bab38[_0x323dfb];return _0x3c6af2;},_0x323d(_0x2d2733,_0x7fac2e);}import{AIEditing as _0x2fff82}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x4fe0c8,AIBalloonView as _0x5f04eb}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x1e3435}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x5e2c65,Rect as _0x4c9155,scrollViewportToShowTarget as _0x4e56ba}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x34a7a2}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x12605b}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0xce12da}from'../aicore/utils/common-translations.js';function _0x1bab(){const _0x4490ca=['$graveyard','_isUpdatingMarkers','requires','get','root','ranges','show','differ','isOfficialPlugin','22NtnxTB','isOpen','startsWith','delegate','filter','2977nsHnfs','commands','_showDialog','change','AIBalloon','view','trackChanges','window','markers','28195lTwsdU','455aMBuis','bind','updateContent','hide','_setupVisualSelection','250iuDvrt','left','locale','_calculateOptimalTopPosition','showRotator','plugins','fire','off','\x20ai-balloon-rotator','render','headerView','isPremiumPlugin','_cleanupMarkerRemovalListener','74778UwNyRb','top','width','showFakeVisualSelection','end','label','getIntersection','15996bkjZpe','ai-selection:','once','getMarkersGroup','1187005rpyycv','Dialog','config','stopAutoScroll','_calculateDialogPosition','balloonView','editing','_setupMarkerRemovalListener','stopListening','ai-balloon-selection','mainView','content','AIEditing','_getSelectionElements','hideFakeVisualSelection','ai.availableReplyActions','showBlockingError','ai-balloon-','listenTo','document','updatePosition','startAutoScroll','title','dialogClosed','ai-selection','25487yJXryp','rootName','start','selectionRemoved','length','getChangedMarkers','context','_updateBalloon','setupRotator','height','isTrackChangesOn','_config','icon','pluginName','aiBalloon','AI_ACTIONS_SELECTION_REMOVED_ERROR','model','round','getBoundingRect','close','open','_pendingRenderCallback','12uYvUUL','value','index','getVisible','ai-balloon','iconView','max','isEqual','286362oaHsQi','bottom','108obOlGm','270792xxbUgw'];_0x1bab=function(){return _0x4490ca;};return _0x1bab();}export const AI_BALLOON_EVENT_NAMES=[..._0x4fe0c8,_0x5ea975(0x143),_0x5ea975(0x148)];const z=0xa;export class AIBalloon extends _0x407e92{static get[_0x5ea975(0x169)](){return[_0x404b18,_0x2fff82];}static get[_0x5ea975(0x152)](){const _0x518604=_0x5ea975;return _0x518604(0x109);}static get[_0x5ea975(0xff)](){return!0x0;}static get[_0x5ea975(0x11f)](){return!0x0;}[_0x5ea975(0x101)]=!0x1;[_0x5ea975(0x150)];[_0x5ea975(0x168)]=!0x1;[_0x5ea975(0x15a)]=null;[_0x5ea975(0x159)](_0x47b3ce){const _0x29131a=_0x5ea975,_0x403316=_0x34a7a2(this[_0x29131a(0x14b)]);if(this[_0x29131a(0x150)]=_0x47b3ce,this[_0x29131a(0x101)])return void this[_0x29131a(0x14c)](_0x47b3ce);const _0x100535=this[_0x29131a(0x14b)][_0x29131a(0x12e)][_0x29131a(0xfa)](_0x29131a(0x13b))||[..._0x12605b],_0x2339da=_0x403316?.[_0x29131a(0x106)][_0x29131a(0xfa)](_0x29131a(0x10b)),_0x229a3e=_0x2339da?.[_0x29131a(0x15c)];this[_0x29131a(0x131)]=new _0x5f04eb(_0x403316[_0x29131a(0x116)],_0x47b3ce,_0x100535,!!_0x229a3e),this[_0x29131a(0x131)][_0x29131a(0x103)](..._0x4fe0c8)['to'](this),_0x2339da&&this[_0x29131a(0x131)][_0x29131a(0x110)](_0x29131a(0x14f))['to'](_0x2339da,_0x29131a(0x15c)),this[_0x29131a(0x107)](_0x47b3ce);}[_0x5ea975(0x158)](){const _0x145401=_0x5ea975;_0x34a7a2(this[_0x145401(0x14b)])[_0x145401(0x119)][_0x145401(0xfa)](_0x145401(0x12d))[_0x145401(0x112)]();}[_0x5ea975(0x141)](){const _0xcbefe7=_0x5ea975;this[_0xcbefe7(0x131)]&&this[_0xcbefe7(0x131)][_0xcbefe7(0x141)]();}[_0x5ea975(0x12f)](){const _0x4d09bf=_0x5ea975;this[_0x4d09bf(0x131)]&&this[_0x4d09bf(0x131)][_0x4d09bf(0x12f)]();}[_0x5ea975(0x14c)](_0x26b50f){const _0x8778ee=_0x5ea975,_0x5a81ee=_0x34a7a2(this[_0x8778ee(0x14b)]),_0x1e9257=_0x5a81ee[_0x8778ee(0x119)][_0x8778ee(0xfa)](_0x8778ee(0x12d));this[_0x8778ee(0x15a)]&&(_0x5a81ee[_0x8778ee(0x132)][_0x8778ee(0x10a)][_0x8778ee(0x11b)](_0x8778ee(0x11d),this[_0x8778ee(0x15a)]),this[_0x8778ee(0x15a)]=null),this[_0x8778ee(0x168)]=!0x0,_0x1e9257[_0x8778ee(0x10a)]?.[_0x8778ee(0x11e)]&&(_0x1e9257[_0x8778ee(0x10a)][_0x8778ee(0x11e)][_0x8778ee(0x126)]=_0x26b50f[_0x8778ee(0x142)],_0x1e9257[_0x8778ee(0x10a)][_0x8778ee(0x11e)][_0x8778ee(0x160)]&&_0x26b50f[_0x8778ee(0x151)]&&(_0x1e9257[_0x8778ee(0x10a)][_0x8778ee(0x11e)][_0x8778ee(0x160)][_0x8778ee(0x137)]=_0x26b50f[_0x8778ee(0x151)])),this[_0x8778ee(0x131)][_0x8778ee(0x111)](_0x26b50f[_0x8778ee(0x136)]),this[_0x8778ee(0x113)](_0x26b50f[_0x8778ee(0xfc)],_0x26b50f[_0x8778ee(0x15d)]),this[_0x8778ee(0x15a)]=()=>{const _0x5bcf99=_0x8778ee;this[_0x5bcf99(0x168)]=!0x1,this[_0x5bcf99(0x15a)]=null,_0x1e9257[_0x5bcf99(0x10a)]&&_0x1e9257[_0x5bcf99(0x10a)][_0x5bcf99(0x140)]();},_0x5a81ee[_0x8778ee(0x132)][_0x8778ee(0x10a)][_0x8778ee(0x12a)](_0x8778ee(0x11d),this[_0x8778ee(0x15a)]);}[_0x5ea975(0x113)](_0xf3bbf9,_0x38a2d8){const _0x11d20d=_0x5ea975;this[_0x11d20d(0x14b)][_0x11d20d(0x119)][_0x11d20d(0xfa)](_0x2fff82)[_0x11d20d(0x124)](_0xf3bbf9,_0x11d20d(0x13d)+_0x38a2d8,!0x0,!0x0);}[_0x5ea975(0x107)](_0x530a59){const _0x14d379=_0x5ea975,_0xfd551f=_0x34a7a2(this[_0x14d379(0x14b)]);this[_0x14d379(0x113)](_0x530a59[_0x14d379(0xfc)],_0x530a59[_0x14d379(0x15d)]);const _0x3f99d3=this[_0x14d379(0x139)]();_0x3f99d3&&_0x3f99d3[0x0]&&_0x4e56ba({'target':_0x3f99d3[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0xfd551f[_0x14d379(0x119)][_0x14d379(0xfa)](_0x14d379(0x12d))[_0x14d379(0xfd)]({'title':_0x530a59[_0x14d379(0x142)],'icon':_0x530a59[_0x14d379(0x151)],'hasCloseButton':!0x0,'id':_0x14d379(0x153),'position':this[_0x14d379(0x130)][_0x14d379(0x110)](this),'className':_0x14d379(0x15f)+(_0x530a59[_0x14d379(0x118)]?_0x14d379(0x11c):''),'content':this[_0x14d379(0x131)],'onShow':_0x265616=>{const _0x416eb4=_0x14d379;_0x530a59[_0x416eb4(0x118)]&&this[_0x416eb4(0x131)][_0x416eb4(0x14d)](_0x265616),this[_0x416eb4(0x133)](),this[_0x416eb4(0x101)]=!0x0;},'onHide':()=>{const _0x50b760=_0x14d379;this[_0x50b760(0x14b)][_0x50b760(0x119)][_0x50b760(0xfa)](_0x50b760(0x138))[_0x50b760(0x13a)](_0x50b760(0x13d)+this[_0x50b760(0x150)][_0x50b760(0x15d)]),this[_0x50b760(0x120)](),this[_0x50b760(0x11a)](_0x50b760(0x143)),this[_0x50b760(0x101)]=!0x1;}});}[_0x5ea975(0x130)](_0x1a1ba2,_0x3a321c){const _0x59b99a=_0x5ea975;if(!_0x3a321c)return null;const _0x4897bf=this[_0x59b99a(0x139)]();if(!_0x4897bf||0x0===_0x4897bf[_0x59b99a(0x149)])return{'left':Math[_0x59b99a(0x156)](_0x3a321c[_0x59b99a(0x115)]+_0x3a321c[_0x59b99a(0x123)]/0x2-_0x1a1ba2[_0x59b99a(0x123)]/0x2),'top':Math[_0x59b99a(0x156)](_0x3a321c[_0x59b99a(0x122)]+_0x3a321c[_0x59b99a(0x14e)]/0x2-_0x1a1ba2[_0x59b99a(0x14e)]/0x2)};const _0x3e43eb=Math[_0x59b99a(0x156)](_0x3a321c[_0x59b99a(0x115)]+_0x3a321c[_0x59b99a(0x123)]/0x2-_0x1a1ba2[_0x59b99a(0x123)]/0x2),_0x4a18fe=new _0x4c9155(_0x4897bf[0x0]),_0x1304be=new _0x4c9155(_0x4897bf[_0x4897bf[_0x59b99a(0x149)]-0x1]),_0x38077c=_0x1a1ba2[_0x59b99a(0x14e)],_0x1129fb=this[_0x59b99a(0x150)][_0x59b99a(0x118)]?0x8:0x0;return{'left':_0x3e43eb,'top':this[_0x59b99a(0x117)](_0x4a18fe,_0x1304be,_0x38077c,_0x1129fb,_0x3a321c)};}[_0x5ea975(0x117)](_0x261b7f,_0x57da5b,_0xde42aa,_0x187d0=0x0,_0x44b79a){const _0x5ee510=_0x5ea975,_0x5630f8=_0xde42aa+_0x187d0,_0x28da65=new _0x4c9155(_0x5e2c65[_0x5ee510(0x10c)]),_0x50ab03=[_0x261b7f[_0x5ee510(0x15e)](),_0x57da5b[_0x5ee510(0x15e)]()][_0x5ee510(0x104)](_0x1901da=>_0x1901da),_0x5a3a00=_0x4c9155[_0x5ee510(0x157)](_0x50ab03);if(!_0x5a3a00)return Math[_0x5ee510(0x156)](_0x44b79a[_0x5ee510(0x122)]+_0x44b79a[_0x5ee510(0x14e)]/0x2);const _0x57f397=_0x28da65[_0x5ee510(0x127)](_0x5a3a00);if(!_0x57f397)return Math[_0x5ee510(0x156)](_0x44b79a[_0x5ee510(0x122)]+_0x44b79a[_0x5ee510(0x14e)]/0x2);const _0xc4aec2=_0x44b79a[_0x5ee510(0x15e)](),_0x4386d5=_0xc4aec2&&_0x5a3a00[_0x5ee510(0x14e)]>_0xc4aec2[_0x5ee510(0x14e)],_0x3bcf4c=_0x57f397[_0x5ee510(0x122)],_0x5c0aac=_0x57f397[_0x5ee510(0x164)];if(_0x4386d5){const _0x5bb331=(_0xc4aec2||_0x28da65)[_0x5ee510(0x14e)]/0x2-_0x5630f8/0x2,_0x395f43=_0x3bcf4c-z-_0x44b79a[_0x5ee510(0x122)],_0x1c6ef2=_0x44b79a[_0x5ee510(0x164)]-_0x5c0aac-z;return _0x395f43>=_0x5630f8?Math[_0x5ee510(0x161)](z,_0x3bcf4c-_0x5630f8-z):_0x1c6ef2>=_0x5630f8?_0x5c0aac+z:Math[_0x5ee510(0x161)](z,_0x5bb331);}const _0x1ea37b=_0x3bcf4c-_0x5630f8,_0x41ad82=_0x44b79a[_0x5ee510(0x164)]-_0x5c0aac-z,_0x38a703=_0x3bcf4c-z-_0x44b79a[_0x5ee510(0x122)];let _0x2a00b2;if(_0x41ad82>=_0x5630f8)_0x2a00b2=_0x5c0aac+z;else{if(_0x38a703>=_0x5630f8)_0x2a00b2=_0x1ea37b-z;else _0x2a00b2=_0x3bcf4c+_0x5a3a00[_0x5ee510(0x14e)]/0x2-_0x5630f8/0x2;}return _0x2a00b2;}[_0x5ea975(0x133)](){const _0x27e0c7=_0x5ea975,_0x52d944=_0x34a7a2(this[_0x27e0c7(0x14b)]);this[_0x27e0c7(0x13e)](_0x52d944[_0x27e0c7(0x155)][_0x27e0c7(0x13f)],_0x27e0c7(0x108),()=>{const _0x2486de=_0x27e0c7;if(this[_0x2486de(0x168)])return;for(const {name:_0x51eb54,data:{newRange:_0xe60a2}}of _0x52d944[_0x2486de(0x155)][_0x2486de(0x13f)][_0x2486de(0xfe)][_0x2486de(0x14a)]())if(_0x51eb54[_0x2486de(0x102)](_0x2486de(0x129))&&(_0xe60a2&&(_0xe60a2[_0x2486de(0x147)][_0x2486de(0x162)](_0xe60a2[_0x2486de(0x125)])||_0x2486de(0x167)==_0xe60a2[_0x2486de(0xfb)][_0x2486de(0x146)])||null==_0xe60a2)){const _0x22e9c9=_0xce12da(this[_0x2486de(0x14b)][_0x2486de(0x116)],_0x2486de(0x154));this[_0x2486de(0x131)][_0x2486de(0x13c)](_0x22e9c9),this[_0x2486de(0x11a)](_0x2486de(0x148));}});}[_0x5ea975(0x120)](){const _0x33ec56=_0x5ea975,_0x17f95a=_0x34a7a2(this[_0x33ec56(0x14b)]);this[_0x33ec56(0x134)](_0x17f95a[_0x33ec56(0x155)][_0x33ec56(0x13f)]);}[_0x5ea975(0x139)](){const _0x569b48=_0x5ea975,_0x373ca8=_0x34a7a2(this[_0x569b48(0x14b)]);return _0x1e3435(_0x373ca8[_0x569b48(0x132)],[..._0x373ca8[_0x569b48(0x155)][_0x569b48(0x10d)][_0x569b48(0x12b)](_0x569b48(0x144)),..._0x373ca8[_0x569b48(0x155)][_0x569b48(0x10d)][_0x569b48(0x12b)](_0x569b48(0x135))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1bfe06,_0x76f876){var _0xddf430=_0x3dc5,_0x4bb341=_0x1bfe06();while(!![]){try{var _0x3c4b5e=parseInt(_0xddf430(0xa0))/0x1*(parseInt(_0xddf430(0xa4))/0x2)+-parseInt(_0xddf430(0x9c))/0x3+parseInt(_0xddf430(0xa2))/0x4*(-parseInt(_0xddf430(0xa7))/0x5)+-parseInt(_0xddf430(0x9a))/0x6*(parseInt(_0xddf430(0x9b))/0x7)+-parseInt(_0xddf430(0x9d))/0x8+-parseInt(_0xddf430(0x9e))/0x9*(-parseInt(_0xddf430(0x99))/0xa)+parseInt(_0xddf430(0x98))/0xb*(parseInt(_0xddf430(0xa8))/0xc);if(_0x3c4b5e===_0x76f876)break;else _0x4bb341['push'](_0x4bb341['shift']());}catch(_0x12e85e){_0x4bb341['push'](_0x4bb341['shift']());}}}(_0x189a,0xcca64));import{View as _0x49fe3e}from'ckeditor5/src/ui.js';import{getTranslation as _0x2a98c4}from'../../aicore/utils/common-translations.js';function _0x3dc5(_0x364247,_0xf77009){var _0x189a3d=_0x189a();return _0x3dc5=function(_0x3dc5a7,_0x4a43de){_0x3dc5a7=_0x3dc5a7-0x98;var _0x292767=_0x189a3d[_0x3dc5a7];return _0x292767;},_0x3dc5(_0x364247,_0xf77009);}export class AIBalloonDisclaimerView extends _0x49fe3e{constructor(_0xd7c661){var _0x487093=_0x3dc5;super(_0xd7c661),this[_0x487093(0xa1)]({'tag':_0x487093(0xa5),'attributes':{'class':['ck',_0x487093(0xa3)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x487093(0x9f)]},'children':[{'text':_0x2a98c4(_0xd7c661,_0x487093(0xa6))}]}]});}}function _0x189a(){var _0x35f43a=['86aAstax','div','AI_DISCLAIMER_TEXT','1130DiylkX','94260gzAFaM','1903iQdKgg','1682810ZItmam','294SifuFX','33999EGPQVA','2166687KeCSvJ','3275104pJLLPR','63bCvMGB','ck-ai-balloon__disclaimer-content','31278HCzqoD','setTemplate','29628AsHlbn','ck-ai-balloon__disclaimer'];_0x189a=function(){return _0x35f43a;};return _0x189a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f4a9d=_0x579f;function _0x596b(){const _0x59c5d8=['AI_BALLOON_APPLY_BUTTON','isEnabled','176hgrtBY','185030RZZUuq','suggestButton','_createButton','15UtpLoc','10331919AWchYT','1544226JiKkpo','2RDfnKy','11931588vHfuFH','AI_BALLOON_SUGGEST_BUTTON','ck-ai-balloon__toolbar','items','1275541DzOzIs','extendTemplate','isLoading','applyButton','bind','set','2435536XpnGbF','319LqlqOt','14OTvsRE','79959vzPNGr','ck-ai-button-primary','locale','ck-ai-button-secondary','add'];_0x596b=function(){return _0x59c5d8;};return _0x596b();}(function(_0x370870,_0x5b1a18){const _0x254328=_0x579f,_0x34dbe6=_0x370870();while(!![]){try{const _0x3b3bb3=parseInt(_0x254328(0x182))/0x1*(-parseInt(_0x254328(0x17d))/0x2)+parseInt(_0x254328(0x16f))/0x3*(parseInt(_0x254328(0x176))/0x4)+-parseInt(_0x254328(0x17a))/0x5*(-parseInt(_0x254328(0x17c))/0x6)+-parseInt(_0x254328(0x16e))/0x7*(parseInt(_0x254328(0x16c))/0x8)+parseInt(_0x254328(0x17b))/0x9+parseInt(_0x254328(0x177))/0xa*(parseInt(_0x254328(0x16d))/0xb)+-parseInt(_0x254328(0x17e))/0xc;if(_0x3b3bb3===_0x5b1a18)break;else _0x34dbe6['push'](_0x34dbe6['shift']());}catch(_0x268a42){_0x34dbe6['push'](_0x34dbe6['shift']());}}}(_0x596b,0xb746b));import{ToolbarView as _0x14f351,ButtonView as _0x16a613}from'ckeditor5/src/ui.js';function _0x579f(_0xdaf68,_0x144f2a){const _0x596bf8=_0x596b();return _0x579f=function(_0x579f2d,_0x10ac2c){_0x579f2d=_0x579f2d-0x167;let _0x548b5d=_0x596bf8[_0x579f2d];return _0x548b5d;},_0x579f(_0xdaf68,_0x144f2a);}import{getTranslation as _0x374cac}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x14f351{constructor(_0x277373,_0x28f2c4=!0x0,_0x5cbf12=!0x0){const _0x1db2c6=_0x579f;super(_0x277373),this[_0x1db2c6(0x16b)](_0x1db2c6(0x168),!0x1),_0x28f2c4&&(this[_0x1db2c6(0x169)]=this[_0x1db2c6(0x179)](_0x374cac(_0x277373,_0x1db2c6(0x174)),_0x1db2c6(0x170)),this[_0x1db2c6(0x169)][_0x1db2c6(0x16a)](_0x1db2c6(0x175))['to'](this,_0x1db2c6(0x168),_0x55869d=>!_0x55869d),this[_0x1db2c6(0x181)][_0x1db2c6(0x173)](this[_0x1db2c6(0x169)])),_0x5cbf12&&(this[_0x1db2c6(0x178)]=this[_0x1db2c6(0x179)](_0x374cac(_0x277373,_0x1db2c6(0x17f)),_0x28f2c4?_0x1db2c6(0x172):_0x1db2c6(0x170)),this[_0x1db2c6(0x178)][_0x1db2c6(0x16a)](_0x1db2c6(0x175))['to'](this,_0x1db2c6(0x168),_0x3b45af=>!_0x3b45af),this[_0x1db2c6(0x181)][_0x1db2c6(0x173)](this[_0x1db2c6(0x178)])),this[_0x1db2c6(0x167)]({'attributes':{'class':[_0x1db2c6(0x180)]}});}[_0x3f4a9d(0x179)](_0x3e3151,_0x4d533d){const _0xa1ddf0=_0x3f4a9d,_0x4a6778=new _0x16a613(this[_0xa1ddf0(0x171)]);return _0x4a6778[_0xa1ddf0(0x16b)]({'label':_0x3e3151,'class':_0x4d533d||'','isVisible':!0x0,'withText':!0x0}),_0x4a6778;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x59e4(_0x3d1575,_0x28c3d0){const _0x212c7b=_0x212c();return _0x59e4=function(_0x59e445,_0x2bc747){_0x59e445=_0x59e445-0x1bb;let _0x435973=_0x212c7b[_0x59e445];return _0x435973;},_0x59e4(_0x3d1575,_0x28c3d0);}const _0x3281e=_0x59e4;(function(_0x100901,_0x1956b8){const _0x2e0397=_0x59e4,_0x4008e8=_0x100901();while(!![]){try{const _0x3f4be6=-parseInt(_0x2e0397(0x20b))/0x1+-parseInt(_0x2e0397(0x1c6))/0x2+parseInt(_0x2e0397(0x1c9))/0x3+-parseInt(_0x2e0397(0x1f4))/0x4*(parseInt(_0x2e0397(0x215))/0x5)+parseInt(_0x2e0397(0x210))/0x6+-parseInt(_0x2e0397(0x1ce))/0x7+parseInt(_0x2e0397(0x1c1))/0x8*(parseInt(_0x2e0397(0x1e7))/0x9);if(_0x3f4be6===_0x1956b8)break;else _0x4008e8['push'](_0x4008e8['shift']());}catch(_0x51b706){_0x4008e8['push'](_0x4008e8['shift']());}}}(_0x212c,0x2905c));import{ButtonView as _0x1eac39,View as _0x281f21,ViewCollection as _0x3ac241,FocusCycler as _0x4c2510}from'ckeditor5/src/ui.js';import{FocusTracker as _0x4fc04a,KeystrokeHandler as _0x164961}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x3e6997,IconPreviousArrow as _0x4e606e}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x48ff1e}from'./aiballoontoolbarview.js';function _0x212c(){const _0x399748=['locale','_getScrollableElement','headerView','suggestButton','shift\x20+\x20tab','listenTo','insertSuggestion','focus','toolbar','errorMessage','children','div','ck-hidden','focusCycler','mainView','setTemplate','focusTracker','_addToolbar','AI_BALLOON_NEXT_TOOLTIP','setupRotator','fire','destroy','applyButton','ai-balloon-content','5562rTFEqS','_createPreviousButtonView','isEnabled','stop','disclaimerView','_createNextButtonView','ck-ai-suggestion__error-text','_availableActions','includes','isLoading','isErrorVisible','addMany','showNext','4oODSDE','isTrackChangesOn','getIndex','focusFirst','_mainView','clear','showSuggestButton','bindTemplate','focusLast','createCollection','_dialogContent','_addContentView','stopAutoScroll','span','change:isTrackChangesOn','startAutoScroll','AI_BALLOON_PREVIOUS_TOOLTIP','execute','view','add','tab','showError','setLoading','229455ZkBZXh','remove','_createErrorView','start','ck-ai-suggestion__error','815844bvjSjm','_focusables','element','_errorView','ai-balloon-error','16250IQSuva','_addDisclaimerView','set','updateContent','bodyView','render','showRecoverableError','10232KOBNmL','keystrokes','hideError','applySuggestion','scrollManager','637298oJByFF','clearLoading','_initializeScrollManager','194619KwXzDE','showApplyButton','bind','showBlockingError','showPrevious','1903209VCvJGA'];_0x212c=function(){return _0x399748;};return _0x212c();}import{AIBalloonDisclaimerView as _0xf57972}from'./aiballoondisclaimerview.js';import{getTranslation as _0x33eb73}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x59f473}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x4b5164}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x3281e(0x1c4),_0x3281e(0x1d5),_0x3281e(0x1f3),_0x3281e(0x1cd)];export class AIBalloonView extends _0x281f21{[_0x3281e(0x1df)];[_0x3281e(0x1c2)];[_0x3281e(0x1dc)];[_0x3281e(0x1ee)];[_0x3281e(0x211)];[_0x3281e(0x213)];[_0x3281e(0x1c5)];constructor(_0xb0ea58,_0x541815,_0xee0a15,_0xa27ad0){const _0x2d651e=_0x3281e;super(_0xb0ea58),this[_0x2d651e(0x1ee)]=_0xee0a15,this[_0x2d651e(0x1bc)](_0x2d651e(0x1f0),!0x1),this[_0x2d651e(0x1bc)](_0x2d651e(0x1f5),_0xa27ad0),this[_0x2d651e(0x1bc)](_0x2d651e(0x1f1),!0x1),this[_0x2d651e(0x1bc)](_0x2d651e(0x1d8),''),this[_0x2d651e(0x1df)]=new _0x4fc04a(),this[_0x2d651e(0x1c2)]=new _0x164961(),this[_0x2d651e(0x211)]=this[_0x2d651e(0x1fd)](),this[_0x2d651e(0x1dc)]=new _0x4c2510({'focusables':this[_0x2d651e(0x211)],'focusTracker':this[_0x2d651e(0x1df)],'keystrokeHandler':this[_0x2d651e(0x1c2)],'actions':{'focusPrevious':_0x2d651e(0x1d3),'focusNext':_0x2d651e(0x208)}}),this[_0x2d651e(0x1fe)]=new _0x3ac241(),this[_0x2d651e(0x1ff)](_0x541815[_0x2d651e(0x1dd)]),this[_0x2d651e(0x1bb)](),this[_0x2d651e(0x1e0)](_0x541815[_0x2d651e(0x1ca)],_0x541815[_0x2d651e(0x1fa)]),this[_0x2d651e(0x1d7)][_0x2d651e(0x1cb)](_0x2d651e(0x1f0))['to'](this),this[_0x2d651e(0x211)][_0x2d651e(0x1f9)](),this[_0x2d651e(0x211)][_0x2d651e(0x1f2)]([this[_0x2d651e(0x1d7)]]),this[_0x2d651e(0x1de)]({'tag':_0x2d651e(0x1da),'attributes':{'class':_0x2d651e(0x1e6)},'children':this[_0x2d651e(0x1fe)]}),this['on'](_0x2d651e(0x202),()=>{const _0x20167d=_0x2d651e;this[_0x20167d(0x1fe)][_0x20167d(0x20c)](this[_0x20167d(0x1d7)]),this[_0x20167d(0x1e0)](_0x541815[_0x20167d(0x1ca)],_0x541815[_0x20167d(0x1fa)]);});}[_0x3281e(0x1bf)](){const _0x128050=_0x3281e;super[_0x128050(0x1bf)]();for(const _0xf5a9ff of this[_0x128050(0x211)])this[_0x128050(0x1df)][_0x128050(0x207)](_0xf5a9ff[_0x128050(0x212)]);this[_0x128050(0x1c2)][_0x128050(0x1d4)](this[_0x128050(0x212)]),this[_0x128050(0x1c8)]();}[_0x3281e(0x1e4)](){const _0x22be57=_0x3281e;super[_0x22be57(0x1e4)](),this[_0x22be57(0x1c5)]&&this[_0x22be57(0x1c5)][_0x22be57(0x1e4)]();}[_0x3281e(0x1d6)](_0x5ca3a5){const _0x61fd26=_0x3281e;-0x1===_0x5ca3a5?this[_0x61fd26(0x1dc)][_0x61fd26(0x1fc)]():this[_0x61fd26(0x1dc)][_0x61fd26(0x1f7)]();}[_0x3281e(0x20a)](){const _0x4886af=_0x3281e;this[_0x4886af(0x1f0)]=!0x0;}[_0x3281e(0x1c7)](){const _0x3b59d6=_0x3281e;this[_0x3b59d6(0x1f0)]=!0x1;}[_0x3281e(0x209)](_0x260ec9){const _0xd8f39c=_0x3281e;this[_0xd8f39c(0x213)]||(this[_0xd8f39c(0x213)]=this[_0xd8f39c(0x20d)](),this[_0xd8f39c(0x1fe)][_0xd8f39c(0x1f2)]([this[_0xd8f39c(0x213)]],0x0)),this[_0xd8f39c(0x1d8)]=_0x260ec9,this[_0xd8f39c(0x1f1)]=!0x0;}[_0x3281e(0x1c3)](){const _0x238891=_0x3281e;this[_0x238891(0x1f1)]=!0x1;}[_0x3281e(0x1c0)](_0x4758b5){const _0x150fae=_0x3281e;this[_0x150fae(0x209)](_0x4758b5);}[_0x3281e(0x1cc)](_0x1e4c8e){const _0x33cc85=_0x3281e;this[_0x33cc85(0x209)](_0x1e4c8e),this[_0x33cc85(0x1d7)]&&(this[_0x33cc85(0x1d7)][_0x33cc85(0x1e5)]&&(this[_0x33cc85(0x1d7)][_0x33cc85(0x1e5)][_0x33cc85(0x1e9)]=!0x1),this[_0x33cc85(0x1d7)][_0x33cc85(0x1d2)]&&(this[_0x33cc85(0x1d7)][_0x33cc85(0x1d2)][_0x33cc85(0x1e9)]=!0x1));}[_0x3281e(0x1e2)](_0x48659f){const _0x551031=_0x3281e,_0x3dccc7=this[_0x551031(0x1ec)](),_0xb55dac=this[_0x551031(0x1e8)]();_0x48659f[_0x551031(0x206)][_0x551031(0x1d1)][_0x551031(0x1d9)][_0x551031(0x207)](_0x3dccc7,0x2),_0x48659f[_0x551031(0x206)][_0x551031(0x1d1)][_0x551031(0x1d9)][_0x551031(0x207)](_0xb55dac,0x0),this[_0x551031(0x211)][_0x551031(0x1f2)]([_0x3dccc7,_0xb55dac]),this[_0x551031(0x1df)][_0x551031(0x207)](_0x3dccc7[_0x551031(0x212)]),this[_0x551031(0x1df)][_0x551031(0x207)](_0xb55dac[_0x551031(0x212)]);}[_0x3281e(0x1ff)](_0x5746c3){const _0x19527d=_0x3281e;this[_0x19527d(0x1f8)]=_0x5746c3,this[_0x19527d(0x1fe)][_0x19527d(0x207)](this[_0x19527d(0x1f8)]);}[_0x3281e(0x1bd)](_0x3b919b){const _0x61adf0=_0x3281e,_0x207dee=this[_0x61adf0(0x1fe)][_0x61adf0(0x1f6)](this[_0x61adf0(0x1f8)]);this[_0x61adf0(0x1fe)][_0x61adf0(0x20c)](this[_0x61adf0(0x1f8)]),this[_0x61adf0(0x1f8)]=_0x3b919b,this[_0x61adf0(0x1fe)][_0x61adf0(0x207)](this[_0x61adf0(0x1f8)],_0x207dee),this[_0x61adf0(0x1c3)](),this[_0x61adf0(0x1c5)]&&this[_0x61adf0(0x1c5)][_0x61adf0(0x1e4)](),this[_0x61adf0(0x1c8)]();}[_0x3281e(0x1bb)](){const _0x5eea8c=_0x3281e;this[_0x5eea8c(0x1eb)]=new _0xf57972(this[_0x5eea8c(0x1cf)]),this[_0x5eea8c(0x1fe)][_0x5eea8c(0x207)](this[_0x5eea8c(0x1eb)]);}[_0x3281e(0x1e0)](_0x287784=!0x0,_0x56b4b5=!0x0){const _0x270195=_0x3281e;_0x287784=_0x287784&&!this[_0x270195(0x1f5)]&&this[_0x270195(0x1ee)][_0x270195(0x1ef)](_0x270195(0x1c4)),_0x56b4b5=_0x56b4b5&&this[_0x270195(0x1ee)][_0x270195(0x1ef)](_0x270195(0x1d5)),this[_0x270195(0x1d7)]=new _0x48ff1e(this[_0x270195(0x1cf)],_0x287784,_0x56b4b5),this[_0x270195(0x1d7)][_0x270195(0x1e5)]?.['on'](_0x270195(0x205),()=>{const _0x4fd834=_0x270195;this[_0x4fd834(0x1e3)](_0x4fd834(0x1c4));}),this[_0x270195(0x1d7)][_0x270195(0x1d2)]?.['on'](_0x270195(0x205),()=>{const _0x39751d=_0x270195;this[_0x39751d(0x1e3)](_0x39751d(0x1d5));}),this[_0x270195(0x1fe)][_0x270195(0x207)](this[_0x270195(0x1d7)]);}[_0x3281e(0x1ec)](){const _0x255de1=_0x3281e,_0x2000d1=new _0x1eac39(this[_0x255de1(0x1cf)]);return _0x2000d1[_0x255de1(0x1bc)]({'icon':_0x3e6997,'tooltip':_0x33eb73(this[_0x255de1(0x1cf)],_0x255de1(0x1e1))}),_0x2000d1['on'](_0x255de1(0x205),()=>{const _0x21f155=_0x255de1;this[_0x21f155(0x1e3)](_0x21f155(0x1f3));}),_0x2000d1;}[_0x3281e(0x1e8)](){const _0x3d0e1b=_0x3281e,_0x6daaba=new _0x1eac39(this[_0x3d0e1b(0x1cf)]);return _0x6daaba[_0x3d0e1b(0x1bc)]({'icon':_0x4e606e,'tooltip':_0x33eb73(this[_0x3d0e1b(0x1cf)],_0x3d0e1b(0x204))}),_0x6daaba['on'](_0x3d0e1b(0x205),()=>{const _0x4e6ef2=_0x3d0e1b;this[_0x4e6ef2(0x1e3)](_0x4e6ef2(0x1cd));}),_0x6daaba;}[_0x3281e(0x20d)](){const _0x4eb4fc=_0x3281e,_0x348f5e=new _0x281f21(this[_0x4eb4fc(0x1cf)]),_0x4957c4=new _0x281f21(this[_0x4eb4fc(0x1cf)]);return _0x4957c4[_0x4eb4fc(0x1de)]({'tag':_0x4eb4fc(0x201),'attributes':{'class':['ck',_0x4eb4fc(0x1ed)]},'children':[{'text':this[_0x4eb4fc(0x1fb)]['to'](_0x4eb4fc(0x1d8))}]}),_0x348f5e[_0x4eb4fc(0x1de)]({'tag':_0x4eb4fc(0x1da),'attributes':{'class':['ck',_0x4eb4fc(0x20f),_0x4eb4fc(0x214),this[_0x4eb4fc(0x1fb)]['if'](_0x4eb4fc(0x1f1),_0x4eb4fc(0x1db),_0x38ba1c=>!_0x38ba1c)]},'children':[_0x4957c4]}),_0x348f5e;}[_0x3281e(0x203)](){const _0x2f60c6=_0x3281e;this[_0x2f60c6(0x1c8)](),this[_0x2f60c6(0x1c5)]&&this[_0x2f60c6(0x1c5)][_0x2f60c6(0x20e)]();}[_0x3281e(0x200)](){const _0x26ff16=_0x3281e;this[_0x26ff16(0x1c5)]&&this[_0x26ff16(0x1c5)][_0x26ff16(0x1ea)]();}[_0x3281e(0x1c8)](){const _0x132927=_0x3281e,_0x4127d9=this[_0x132927(0x1d0)]();_0x4127d9&&!this[_0x132927(0x1c5)]&&(this[_0x132927(0x1c5)]=new _0x59f473(_0x4127d9));}[_0x3281e(0x1d0)](){const _0x2c0340=_0x3281e;return this[_0x2c0340(0x1f8)]instanceof _0x4b5164&&this[_0x2c0340(0x1f8)][_0x2c0340(0x1be)][_0x2c0340(0x212)]?this[_0x2c0340(0x1f8)][_0x2c0340(0x1be)][_0x2c0340(0x212)]:null;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x26cf(_0x55ec5d,_0x510079){var _0x5e3269=_0x5e32();return _0x26cf=function(_0x26cf7e,_0xc66edf){_0x26cf7e=_0x26cf7e-0x188;var _0x58a5a6=_0x5e3269[_0x26cf7e];return _0x58a5a6;},_0x26cf(_0x55ec5d,_0x510079);}var _0x143c8e=_0x26cf;(function(_0x206b3a,_0x186d43){var _0x325900=_0x26cf,_0x588db4=_0x206b3a();while(!![]){try{var _0x40d2bf=parseInt(_0x325900(0x19c))/0x1*(parseInt(_0x325900(0x19d))/0x2)+-parseInt(_0x325900(0x1a1))/0x3*(parseInt(_0x325900(0x190))/0x4)+parseInt(_0x325900(0x198))/0x5+-parseInt(_0x325900(0x19a))/0x6+-parseInt(_0x325900(0x19e))/0x7*(parseInt(_0x325900(0x192))/0x8)+parseInt(_0x325900(0x196))/0x9*(-parseInt(_0x325900(0x1a2))/0xa)+-parseInt(_0x325900(0x188))/0xb*(-parseInt(_0x325900(0x191))/0xc);if(_0x40d2bf===_0x186d43)break;else _0x588db4['push'](_0x588db4['shift']());}catch(_0x1e8b4e){_0x588db4['push'](_0x588db4['shift']());}}}(_0x5e32,0xc19fd));import{ContextPlugin as _0x2b9462}from'ckeditor5/src/core.js';function _0x5e32(){var _0x1c215b=['plugins','focusPromptInput','pluginName','addSelectionToChatContext','ai.chat.models','5110284ZBVbfO','935628YiJoVK','10592FTyThD','sendMessage','context','config','3925323bzdcMR','requires','2841180pHXlHM','isPremiumPlugin','3378qrGssn','get','3MWCKwQ','398218ShuxAI','2387pIXaqb','removeSelectionFromChatContext','startConversation','3LZNIhj','10AdwEAd','ai.chat.context','define','253kuclNQ','AIChat','isOfficialPlugin'];_0x5e32=function(){return _0x1c215b;};return _0x5e32();}import{AIChatController as _0x3905c9}from'./aichatcontroller.js';import{AIEditing as _0x34da81}from'../aicore/aiediting.js';import{AIChatUI as _0x3469b4}from'./aichatui.js';import{AIChatHistory as _0x2a8e23}from'../aichathistory/aichathistory.js';export class AIChat extends _0x2b9462{static get[_0x143c8e(0x197)](){return[_0x3905c9,_0x34da81,_0x3469b4,_0x2a8e23];}static get[_0x143c8e(0x18d)](){var _0x435e34=_0x143c8e;return _0x435e34(0x189);}static get[_0x143c8e(0x18a)](){return!0x0;}static get[_0x143c8e(0x199)](){return!0x0;}constructor(_0x44e63a){var _0x3d18f7=_0x143c8e;super(_0x44e63a),this[_0x3d18f7(0x194)][_0x3d18f7(0x195)][_0x3d18f7(0x1a4)](_0x3d18f7(0x1a3),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x3d18f7(0x194)][_0x3d18f7(0x195)][_0x3d18f7(0x1a4)](_0x3d18f7(0x18f),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x143c8e(0x18e)](){var _0x35c57a=_0x143c8e;await this[_0x35c57a(0x194)][_0x35c57a(0x18b)][_0x35c57a(0x19b)](_0x3905c9)[_0x35c57a(0x18e)]();}async[_0x143c8e(0x1a0)](){var _0x517149=_0x143c8e;await this[_0x517149(0x194)][_0x517149(0x18b)][_0x517149(0x19b)](_0x3905c9)[_0x517149(0x1a0)]();}async[_0x143c8e(0x193)]({message:_0x3f5443,quickActionData:_0x565cef}){var _0x5f0d68=_0x143c8e;await this[_0x5f0d68(0x194)][_0x5f0d68(0x18b)][_0x5f0d68(0x19b)](_0x3905c9)[_0x5f0d68(0x193)]({'message':_0x3f5443,'quickActionData':_0x565cef});}[_0x143c8e(0x19f)](){var _0x153e4a=_0x143c8e;this[_0x153e4a(0x194)][_0x153e4a(0x18b)][_0x153e4a(0x19b)](_0x3905c9)[_0x153e4a(0x19f)]();}[_0x143c8e(0x18c)](){var _0x48ee51=_0x143c8e;this[_0x48ee51(0x194)][_0x48ee51(0x18b)][_0x48ee51(0x19b)](_0x3905c9)[_0x48ee51(0x18c)]();}}
|