@ckeditor/ckeditor5-ai 47.0.0-alpha.5 → 47.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/ckeditor5-metadata.json +14 -0
- package/dist/index-editor.css +17 -2
- package/dist/index.css +18 -2
- 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 +1 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +4 -0
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +2 -0
- 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.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.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/aiquickactions/utils/common-translations.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/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 +3 -0
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls.css +6 -0
- package/theme/aichat/aichat.css +2 -0
- package/theme/aichat/aisuggestioncontainer.css +8 -2
- package/theme/aireviewmode/aireviewmode-check-run-result.css +5 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1e9f(){const _0x4a3110=['chain','clearHistory','listenTo','execute','stopButton','mainAction','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','locale','bindTemplate','finishProcessing','_promptHistory','render','replaceButton','1791tUjrAQ','replaceContent','text','Empty\x20history','trim','startProcessing','isEnabled','submitPrompt','focusCycler','promptView','toolbar','focus','33GZNJic','insertButton','errorView','_createHistoryView','_createPromptView','ck-ai-form','stopProcessing','label','set','tab','120gkaNIP','5wHTTXK','focusFirst','tryAgainEvent','isProcessing','fire','value','fieldView','shift\x20+\x20tab','Ask\x20AI\x20to\x20improve\x20generated\x20text','REPLACE','contentArea','3500371wziOEI','ck-hidden','bind','clear','reset','submit','delegate','queryView','element','setTemplate','isError','div','search','createCollection','9757896BrjLwa','_createToolbar','1255150MuarYM','prompt','add','bindTo','tryAgainButton','items','historyGroupView','insertContentBelow','5882836yyfpgt','focusTracker','copyButtonView','55766XCfSZp','isVisible','handleError','1237280NXlrHe','ck-ai-form-content','_focusables','focusLast','keystrokes','61520xiZXyB','AI_ERROR_FAILED','high','3NOfNGm','Ask\x20AI\x20to\x20edit\x20or\x20generate'];_0x1e9f=function(){return _0x4a3110;};return _0x1e9f();}const _0x394a81=_0x160b;(function(_0x48f13c,_0x30f85f){const _0x2cf4fe=_0x160b,_0x38bf26=_0x48f13c();while(!![]){try{const _0x380df4=-parseInt(_0x2cf4fe(0x126))/0x1*(-parseInt(_0x2cf4fe(0x100))/0x2)+parseInt(_0x2cf4fe(0x10b))/0x3*(-parseInt(_0x2cf4fe(0xfd))/0x4)+-parseInt(_0x2cf4fe(0x131))/0x5*(parseInt(_0x2cf4fe(0xf3))/0x6)+parseInt(_0x2cf4fe(0xe5))/0x7+parseInt(_0x2cf4fe(0x108))/0x8*(parseInt(_0x2cf4fe(0x11a))/0x9)+-parseInt(_0x2cf4fe(0xf5))/0xa+-parseInt(_0x2cf4fe(0x103))/0xb*(-parseInt(_0x2cf4fe(0x130))/0xc);if(_0x380df4===_0x30f85f)break;else _0x38bf26['push'](_0x38bf26['shift']());}catch(_0x3953fd){_0x38bf26['push'](_0x38bf26['shift']());}}}(_0x1e9f,0xd031a));import{FocusTracker as _0x2ee0b9,KeystrokeHandler as _0x45814c}from'ckeditor5/src/utils.js';import{View as _0x473f79,FocusCycler as _0x578b75,createLabeledTextarea as _0xbfd266}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x3c7142,AIFormToolbarViewMainActionLabel as _0x5f3e7a}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x1bed7f}from'./aiformcontentarea.js';import{AIFormErrorView as _0x967f43}from'./aiformerrorview.js';import{AIFormPromptView as _0x43fddd}from'./aiformpromptview.js';import{AIHistoryListView as _0x57bdd5}from'./aihistorylistview.js';function _0x160b(_0x79e3a,_0x573af7){const _0x1e9fa3=_0x1e9f();return _0x160b=function(_0x160b11,_0x3e752f){_0x160b11=_0x160b11-0xdd;let _0x5c08b9=_0x1e9fa3[_0x160b11];return _0x5c08b9;},_0x160b(_0x79e3a,_0x573af7);}import{AIHistoryListItemView as _0x2dbbcf}from'./aihistorylistitemview.js';import{PromptHistory as _0x218b6d}from'./prompthistory.js';import{getTranslation as _0x2573d4}from'../../utils/common-translations.js';import{escape as _0x234378}from'es-toolkit/compat';export class AIFormView extends _0x473f79{[_0x394a81(0xfe)];[_0x394a81(0x107)];[_0x394a81(0xe4)];[_0x394a81(0x124)];[_0x394a81(0x123)];[_0x394a81(0x128)];[_0x394a81(0x105)];[_0x394a81(0x122)];[_0x394a81(0x117)];constructor(_0x202b70,_0x58a3b9,_0x1c73a2=''){const _0x1c9f64=_0x394a81;super(_0x202b70),this[_0x1c9f64(0x12e)](_0x1c9f64(0x120),!0x0),this[_0x1c9f64(0x12e)](_0x1c9f64(0xdd),!0x1),this[_0x1c9f64(0x12e)](_0x1c9f64(0xf6),''),this[_0x1c9f64(0x12e)](_0x1c9f64(0xdf),''),this[_0x1c9f64(0x12e)](_0x1c9f64(0xef),!0x1),this[_0x1c9f64(0x12e)](_0x1c9f64(0x112),_0x5f3e7a[_0x1c9f64(0xe3)]),this[_0x1c9f64(0x117)]=new _0x218b6d(),this[_0x1c9f64(0x128)]=new _0x967f43(_0x202b70),this[_0x1c9f64(0xe4)]=new _0x1bed7f(_0x202b70,_0x1c73a2),this[_0x1c9f64(0xe4)][_0x1c9f64(0xe7)](_0x1c9f64(0xdd))['to'](this),this[_0x1c9f64(0xe4)][_0x1c9f64(0xe7)](_0x1c9f64(0xdf))['to'](this),this[_0x1c9f64(0x124)]=this[_0x1c9f64(0xf4)](),this[_0x1c9f64(0x124)][_0x1c9f64(0xe7)](_0x1c9f64(0x112))['to'](this),this[_0x1c9f64(0x123)]=this[_0x1c9f64(0x12a)](),this[_0x1c9f64(0xfe)]=new _0x2ee0b9(),this[_0x1c9f64(0x107)]=new _0x45814c(),this[_0x1c9f64(0x105)]=this[_0x1c9f64(0xf2)]([this[_0x1c9f64(0xe4)],this[_0x1c9f64(0xe4)][_0x1c9f64(0xff)],this[_0x1c9f64(0x124)],this[_0x1c9f64(0x123)]]),this[_0x1c9f64(0x122)]=new _0x578b75({'focusables':this[_0x1c9f64(0x105)],'focusTracker':this[_0x1c9f64(0xfe)],'keystrokeHandler':this[_0x1c9f64(0x107)],'actions':{'focusPrevious':_0x1c9f64(0xe1),'focusNext':_0x1c9f64(0x12f)}}),this[_0x1c9f64(0x122)][_0x1c9f64(0x10d)](this[_0x1c9f64(0x123)][_0x1c9f64(0x122)]),this[_0x1c9f64(0x123)][_0x1c9f64(0xec)][_0x1c9f64(0xe0)][_0x1c9f64(0xe7)](_0x1c9f64(0xdf))['to'](this,_0x1c9f64(0xf6));const _0x22478e=this[_0x1c9f64(0x115)];this[_0x1c9f64(0xee)]({'tag':_0x1c9f64(0xf0),'attributes':{'class':['ck',_0x1c9f64(0x12b),_0x58a3b9],'tabindex':'-1'},'children':[{'tag':_0x1c9f64(0xf0),'attributes':{'class':['ck',_0x1c9f64(0x104)]},'children':[{'tag':_0x1c9f64(0xf0),'attributes':{'class':[_0x22478e['if'](_0x1c9f64(0xef),_0x1c9f64(0xe6),_0x39924a=>!_0x39924a)]},'children':[this[_0x1c9f64(0x128)]]},this[_0x1c9f64(0xe4)],this[_0x1c9f64(0x124)],this[_0x1c9f64(0x123)]]}]});}[_0x394a81(0x118)](){const _0x44c4ed=_0x394a81;super[_0x44c4ed(0x118)](),this[_0x44c4ed(0xfe)][_0x44c4ed(0xf7)](this[_0x44c4ed(0xe4)][_0x44c4ed(0xed)]),this[_0x44c4ed(0xfe)][_0x44c4ed(0xf7)](this[_0x44c4ed(0xe4)][_0x44c4ed(0xff)][_0x44c4ed(0xed)]),this[_0x44c4ed(0xfe)][_0x44c4ed(0xf7)](this[_0x44c4ed(0x124)][_0x44c4ed(0xed)]),this[_0x44c4ed(0xfe)][_0x44c4ed(0xf7)](this[_0x44c4ed(0x123)][_0x44c4ed(0xed)]),this[_0x44c4ed(0x107)][_0x44c4ed(0x10f)](this[_0x44c4ed(0xed)]);}[_0x394a81(0x125)](_0x4d711b=0x1){const _0x1ae40c=_0x394a81;-0x1===_0x4d711b?this[_0x1ae40c(0x122)][_0x1ae40c(0x106)]():this[_0x1ae40c(0x122)][_0x1ae40c(0x132)]();}[_0x394a81(0xe9)](){const _0x30ae70=_0x394a81;this[_0x30ae70(0xf6)]='',this[_0x30ae70(0xdf)]='',this[_0x30ae70(0xef)]=!0x1,this[_0x30ae70(0x123)][_0x30ae70(0xe9)](),this[_0x30ae70(0xe4)][_0x30ae70(0x101)]=!0x1,this[_0x30ae70(0x124)][_0x30ae70(0x101)]=!0x1;}[_0x394a81(0x12a)](){const _0x83fecd=_0x394a81,_0x140ec9=this[_0x83fecd(0x114)],_0x4f60f5=new _0x43fddd(_0x140ec9,{'queryView':{'label':_0x2573d4(_0x140ec9,_0x83fecd(0x10c)),'creator':_0xbfd266,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x2573d4(_0x140ec9,_0x83fecd(0x11d)),'secondary':_0x2573d4(_0x140ec9,_0x83fecd(0x113))}}},'filteredView':this[_0x83fecd(0x129)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4f60f5[_0x83fecd(0xe7)](_0x83fecd(0x120))['to'](this,_0x83fecd(0x120),this,_0x83fecd(0xdd),(_0x50cce5,_0x4bfac9)=>_0x50cce5&&!_0x4bfac9),this[_0x83fecd(0x10f)](_0x4f60f5,_0x83fecd(0xea),(_0x24d05b,_0x34e64a)=>{const _0x2e17a7=_0x83fecd;this[_0x2e17a7(0xf6)]=_0x34e64a;const _0x26be28=_0x234378(_0x34e64a);this[_0x2e17a7(0xde)](_0x2e17a7(0x121),_0x26be28),_0x34e64a[_0x2e17a7(0x11e)]()&&this[_0x2e17a7(0x117)][_0x2e17a7(0xf7)]({'prompt':_0x26be28},0x0);},{'priority':_0x83fecd(0x10a)}),_0x4f60f5;}[_0x394a81(0x129)](){const _0x1b0d2d=_0x394a81,_0x2bec69=new _0x57bdd5(this[_0x1b0d2d(0x114)]);return _0x2bec69[_0x1b0d2d(0xfb)][_0x1b0d2d(0xfa)][_0x1b0d2d(0xf8)](this[_0x1b0d2d(0x117)])['as'](_0x2dbbcf),_0x2bec69['on'](_0x1b0d2d(0x10e),()=>{const _0x1f2eb2=_0x1b0d2d;this[_0x1f2eb2(0x117)][_0x1f2eb2(0xe8)](),this[_0x1f2eb2(0x123)][_0x1f2eb2(0xf1)](''),this[_0x1f2eb2(0x123)][_0x1f2eb2(0x125)]();}),_0x2bec69;}[_0x394a81(0xf4)](){const _0x47b5bf=_0x394a81,_0x62fa56=new _0x3c7142(this[_0x47b5bf(0x114)]);return _0x62fa56[_0x47b5bf(0x119)][_0x47b5bf(0xe7)](_0x47b5bf(0x120))['to'](this,_0x47b5bf(0x120),this,_0x47b5bf(0xdd),this,_0x47b5bf(0xdf),(_0x16bc05,_0x55fbe4,_0x26bb3c)=>_0x16bc05&&!_0x55fbe4&&!!_0x26bb3c),_0x62fa56[_0x47b5bf(0x119)][_0x47b5bf(0xeb)](_0x47b5bf(0x110))['to'](this,_0x47b5bf(0x11b)),_0x62fa56[_0x47b5bf(0x127)][_0x47b5bf(0xe7)](_0x47b5bf(0x120))['to'](this,_0x47b5bf(0x120),this,_0x47b5bf(0xdd),this,_0x47b5bf(0xdf),(_0x181f65,_0x4eedc4,_0x523427)=>_0x181f65&&!_0x4eedc4&&!!_0x523427),_0x62fa56[_0x47b5bf(0x127)][_0x47b5bf(0xeb)](_0x47b5bf(0x110))['to'](this,_0x47b5bf(0xfc)),_0x62fa56[_0x47b5bf(0xf9)][_0x47b5bf(0xe7)](_0x47b5bf(0x120))['to'](this,_0x47b5bf(0x120),this,_0x47b5bf(0xdd),(_0x499baf,_0x16184e)=>_0x499baf&&!_0x16184e),_0x62fa56[_0x47b5bf(0xf9)][_0x47b5bf(0xeb)](_0x47b5bf(0x110))['to'](this,_0x47b5bf(0x133)),_0x62fa56[_0x47b5bf(0x111)][_0x47b5bf(0xe7)](_0x47b5bf(0x120))['to'](this,_0x47b5bf(0xdd)),_0x62fa56[_0x47b5bf(0x111)][_0x47b5bf(0xeb)](_0x47b5bf(0x110))['to'](this,_0x47b5bf(0x12c)),_0x62fa56;}[_0x394a81(0x11f)](){const _0x136524=_0x394a81;this[_0x136524(0xdf)]='',this[_0x136524(0xef)]=!0x1,this[_0x136524(0xdd)]=!0x0,this[_0x136524(0xe4)][_0x136524(0x101)]=!0x0,this[_0x136524(0x124)][_0x136524(0x101)]=!0x0,this[_0x136524(0xe4)][_0x136524(0x125)]();}[_0x394a81(0x116)](){const _0x191c29=_0x394a81,_0x5c775c=this[_0x191c29(0x114)];this[_0x191c29(0xdd)]=!0x1,this[_0x191c29(0xf6)]='',this[_0x191c29(0x123)][_0x191c29(0xe9)](),this[_0x191c29(0xdf)]&&(this[_0x191c29(0x123)][_0x191c29(0xec)][_0x191c29(0x12d)]=_0x2573d4(_0x5c775c,_0x191c29(0xe2)));}[_0x394a81(0x102)](_0x3acdf8){const _0x3f75f8=_0x394a81,_0x19bc49=this[_0x3f75f8(0x114)];this[_0x3f75f8(0x116)](),this[_0x3f75f8(0xef)]=!0x0,this[_0x3f75f8(0x128)][_0x3f75f8(0x11c)]=_0x3acdf8||_0x2573d4(_0x19bc49,_0x3f75f8(0x109)),this[_0x3f75f8(0xdf)]||(this[_0x3f75f8(0xe4)][_0x3f75f8(0x101)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xae64e7,_0x1e4663){const _0x289868=_0x804d,_0x225e1d=_0xae64e7();while(!![]){try{const _0x592842=parseInt(_0x289868(0x1d0))/0x1+parseInt(_0x289868(0x1c6))/0x2*(-parseInt(_0x289868(0x1d2))/0x3)+parseInt(_0x289868(0x1d4))/0x4+parseInt(_0x289868(0x1d3))/0x5+-parseInt(_0x289868(0x1c7))/0x6+-parseInt(_0x289868(0x1ca))/0x7+parseInt(_0x289868(0x1cb))/0x8;if(_0x592842===_0x1e4663)break;else _0x225e1d['push'](_0x225e1d['shift']());}catch(_0x228c66){_0x225e1d['push'](_0x225e1d['shift']());}}}(_0x4147,0x4a4b4));import{ListItemView as _0x4dd411,ButtonView as _0x5c8a85,ButtonLabelView as _0x3f0c02}from'ckeditor5/src/ui.js';import{unescape as _0x230c46}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x4dd411{constructor(_0x2404ac){const _0x50e1c1=_0x804d;super();const _0x35dc4d=new _0x3f0c02(),_0x4def2f=new _0x5c8a85(this[_0x50e1c1(0x1d1)],_0x35dc4d);this[_0x50e1c1(0x1ce)][_0x50e1c1(0x1c9)](_0x4def2f),_0x4def2f[_0x50e1c1(0x1cc)]({'label':_0x2404ac[_0x50e1c1(0x1cf)],'withText':!0x0}),_0x4def2f['on'](_0x50e1c1(0x1cd),()=>{const _0xfc507f=_0x50e1c1;this[_0xfc507f(0x1c8)](_0xfc507f(0x1cd),{'value':_0x230c46(_0x2404ac[_0xfc507f(0x1cf)])});});}}function _0x804d(_0x1a536c,_0x548181){const _0x41477b=_0x4147();return _0x804d=function(_0x804d7c,_0x44bd51){_0x804d7c=_0x804d7c-0x1c6;let _0x2ee49b=_0x41477b[_0x804d7c];return _0x2ee49b;},_0x804d(_0x1a536c,_0x548181);}function _0x4147(){const _0xdcaa0c=['259210JUdSJy','682364rHAuuU','4CYwZhJ','1004058QhqnpA','fire','add','725816lhseWW','1822720vrRwlV','set','execute','children','prompt','138758dMRtNI','locale','20538ZpwsKr'];_0x4147=function(){return _0xdcaa0c;};return _0x4147();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x7d4c(_0xcb037,_0x723273){const _0x5377ed=_0x5377();return _0x7d4c=function(_0x7d4c5a,_0x5a73f3){_0x7d4c5a=_0x7d4c5a-0xbd;let _0x2c4e74=_0x5377ed[_0x7d4c5a];return _0x2c4e74;},_0x7d4c(_0xcb037,_0x723273);}const _0x1b6da7=_0x7d4c;(function(_0x1ec47f,_0x1fb92a){const _0x27bd3f=_0x7d4c,_0x9d718b=_0x1ec47f();while(!![]){try{const _0x154c14=-parseInt(_0x27bd3f(0xc5))/0x1*(parseInt(_0x27bd3f(0xc9))/0x2)+parseInt(_0x27bd3f(0xd2))/0x3+-parseInt(_0x27bd3f(0xc3))/0x4+-parseInt(_0x27bd3f(0xcf))/0x5*(-parseInt(_0x27bd3f(0xc8))/0x6)+parseInt(_0x27bd3f(0xc0))/0x7+-parseInt(_0x27bd3f(0xc7))/0x8+parseInt(_0x27bd3f(0xbd))/0x9*(parseInt(_0x27bd3f(0xd6))/0xa);if(_0x154c14===_0x1fb92a)break;else _0x9d718b['push'](_0x9d718b['shift']());}catch(_0x46ac28){_0x9d718b['push'](_0x9d718b['shift']());}}}(_0x5377,0x52b8c));import{ListView as _0x3a44d9,ListItemGroupView as _0x1531db,ButtonView as _0x29e9dd}from'ckeditor5/src/ui.js';function _0x5377(){const _0x4e30d7=['Prompt\x20history','set','1990040uMFQbl','_createClearHistoryButton','1HOVGIU','add','3018344JWYaUe','32400TYsrii','916036iyegMm','children','length','delegate','fire','label','170GqHDKm','historyGroupView','Clear','1530669EjTOew','locale','clearHistoryButton','filter','100Gkxcbq','items','781551FZklbg','clearHistory','execute','766052hIPZiO'];_0x5377=function(){return _0x4e30d7;};return _0x5377();}import{getTranslation as _0x5e66a3}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x3a44d9{[_0x1b6da7(0xd0)];[_0x1b6da7(0xd4)];constructor(_0x3d3b37){const _0x277e52=_0x1b6da7;super(_0x3d3b37),this[_0x277e52(0xd4)]=this[_0x277e52(0xc4)](),this[_0x277e52(0xd0)]=new _0x1531db(),this[_0x277e52(0xd0)][_0x277e52(0xca)][_0x277e52(0xc6)](this[_0x277e52(0xd4)],0x1),this[_0x277e52(0xd0)][_0x277e52(0xce)]=_0x5e66a3(_0x3d3b37,_0x277e52(0xc1)),this[_0x277e52(0xd0)][_0x277e52(0xd7)][_0x277e52(0xcc)](_0x277e52(0xbf))['to'](this),this[_0x277e52(0xd7)][_0x277e52(0xc6)](this[_0x277e52(0xd0)]);}[_0x1b6da7(0xd5)](){const _0x1e8be3=_0x1b6da7;let _0x27e77c=0x0;for(const _0x258185 of this[_0x1e8be3(0xd7)])_0x27e77c+=_0x258185[_0x1e8be3(0xd7)][_0x1e8be3(0xcb)];return{'resultsCount':_0x27e77c,'totalItemsCount':_0x27e77c};}[_0x1b6da7(0xc4)](){const _0x2ae967=_0x1b6da7,_0x174a1e=this[_0x2ae967(0xd3)],_0xb7378c=new _0x29e9dd(this[_0x2ae967(0xd3)]);return _0xb7378c[_0x2ae967(0xc2)]({'label':'('+_0x5e66a3(_0x174a1e,_0x2ae967(0xd1))+')','withText':!0x0}),_0xb7378c['on'](_0x2ae967(0xbf),()=>this[_0x2ae967(0xcd)](_0x2ae967(0xbe))),_0xb7378c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x2c928f=_0x2e34;function _0x2e34(_0xc679cc,_0x2f3cc6){const _0x420ea5=_0x420e();return _0x2e34=function(_0x2e3431,_0x1fe038){_0x2e3431=_0x2e3431-0x102;let _0x1225cc=_0x420ea5[_0x2e3431];return _0x1225cc;},_0x2e34(_0xc679cc,_0x2f3cc6);}(function(_0xfc06d1,_0x10618c){const _0x3318c0=_0x2e34,_0x194257=_0xfc06d1();while(!![]){try{const _0x434160=parseInt(_0x3318c0(0x10f))/0x1*(parseInt(_0x3318c0(0x109))/0x2)+-parseInt(_0x3318c0(0x113))/0x3+parseInt(_0x3318c0(0x111))/0x4*(parseInt(_0x3318c0(0x106))/0x5)+-parseInt(_0x3318c0(0x116))/0x6*(-parseInt(_0x3318c0(0x104))/0x7)+parseInt(_0x3318c0(0x108))/0x8+-parseInt(_0x3318c0(0x10d))/0x9+-parseInt(_0x3318c0(0x10b))/0xa;if(_0x434160===_0x10618c)break;else _0x194257['push'](_0x194257['shift']());}catch(_0x1fcc65){_0x194257['push'](_0x194257['shift']());}}}(_0x420e,0xa9ac8));import{Collection as _0xb79d1a}from'ckeditor5/src/utils.js';function _0x420e(){const _0x4fc54b=['10fmxOgf','add','139776jVOZDB','2zZGIko','last','17278980VEgZPS','stringify','159786bHrliQ','_loadFromSessionStorage','1109013syCsvQ','map','1880964BbYNBa','length','22521cTLzed','trim','getItem','73776bDpxlz','addMany','prompt','setItem','_saveToSessionStorage','toLowerCase','parse','remove','217AznVNT','CKEditor/AIFormView/PromptHistory'];_0x420e=function(){return _0x4fc54b;};return _0x420e();}const no=_0x2c928f(0x105);export class PromptHistory extends _0xb79d1a{constructor(){const _0x189f3a=_0x2c928f;super(),this[_0x189f3a(0x10e)](),this['on'](_0x189f3a(0x107),(_0xe032cb,_0x2676ab)=>{const _0x461da5=_0x189f3a,_0x48366c=ao(_0x2676ab[_0x461da5(0x118)]);for(const _0x196a15 of this)if(_0x196a15!=_0x2676ab&&ao(_0x196a15[_0x461da5(0x118)])===_0x48366c){this[_0x461da5(0x103)](_0x196a15);break;}this[_0x461da5(0x112)]>0x14&&this[_0x461da5(0x103)](this[_0x461da5(0x10a)]),this[_0x461da5(0x11a)]();}),this['on'](_0x189f3a(0x103),()=>{const _0x21264f=_0x189f3a;this[_0x21264f(0x11a)]();});}[_0x2c928f(0x10e)](){const _0xaf67d2=_0x2c928f,_0x3d0296=sessionStorage[_0xaf67d2(0x115)](no)||'[]';this[_0xaf67d2(0x117)](JSON[_0xaf67d2(0x102)](_0x3d0296));}[_0x2c928f(0x11a)](){const _0x655ce2=_0x2c928f;sessionStorage[_0x655ce2(0x119)](no,JSON[_0x655ce2(0x10c)](this[_0x655ce2(0x110)](_0x4bcae2=>_0x4bcae2)));}}function ao(_0x478262){const _0x46ef21=_0x2c928f;return _0x478262[_0x46ef21(0x11b)]()[_0x46ef21(0x114)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e2438=_0x9517;(function(_0x2a1978,_0x207e8c){const _0x47f87c=_0x9517,_0x13f508=_0x2a1978();while(!![]){try{const _0x95527b=-parseInt(_0x47f87c(0x1e1))/0x1*(-parseInt(_0x47f87c(0x1f9))/0x2)+parseInt(_0x47f87c(0x1db))/0x3*(-parseInt(_0x47f87c(0x1d5))/0x4)+parseInt(_0x47f87c(0x1f7))/0x5+-parseInt(_0x47f87c(0x1df))/0x6*(parseInt(_0x47f87c(0x1de))/0x7)+-parseInt(_0x47f87c(0x1e4))/0x8*(-parseInt(_0x47f87c(0x1d8))/0x9)+parseInt(_0x47f87c(0x1fb))/0xa+-parseInt(_0x47f87c(0x1d1))/0xb;if(_0x95527b===_0x207e8c)break;else _0x13f508['push'](_0x13f508['shift']());}catch(_0x50a520){_0x13f508['push'](_0x13f508['shift']());}}}(_0x2568,0xae42b));import{Command as _0x29be42}from'ckeditor5/src/core.js';function _0x9517(_0xe180dd,_0x57d285){const _0x256820=_0x2568();return _0x9517=function(_0x951715,_0x19fdbd){_0x951715=_0x951715-0x1d1;let _0x3252eb=_0x256820[_0x951715];return _0x3252eb;},_0x9517(_0xe180dd,_0x57d285);}import{AIAssistantUI as _0x2e66d8}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x29be42{[_0x4e2438(0x1f4)];constructor(_0xbbde7f,_0x47eca7){const _0x249978=_0x4e2438;super(_0xbbde7f),this[_0x249978(0x1f4)]=_0x47eca7,this[_0x249978(0x1ea)](_0x249978(0x1d2),[]),this['on'](_0x249978(0x1f0),(_0xe422b9,_0x5732c4,_0x2fc0ad)=>{const _0x14eb5f=_0x249978;this[_0x14eb5f(0x1f3)]&&(this[_0x14eb5f(0x1d2)]=ns(this[_0x14eb5f(0x1f4)],_0x2fc0ad));}),this[_0x249978(0x1ea)](_0x249978(0x1fa),!0x1),this['on'](_0x249978(0x1eb),(_0x4562e7,_0x3b4d19,_0x154e5f)=>{const _0x3e92d6=_0x249978;this[_0x3e92d6(0x1d2)]=_0x154e5f?ns(this[_0x3e92d6(0x1f4)],this[_0x3e92d6(0x1fa)]):[];});}[_0x4e2438(0x1f2)](){const _0x5b6dcf=_0x4e2438,_0x51ee68=this[_0x5b6dcf(0x1dd)][_0x5b6dcf(0x1ef)];this[_0x5b6dcf(0x1fa)]=function(_0x2222ba){const _0x520c00=_0x5b6dcf,_0x3bf513=_0x2222ba[_0x520c00(0x1d7)][_0x520c00(0x1e9)];return _0x3bf513[_0x520c00(0x1dc)]?0x0!==[..._0x3bf513[_0x520c00(0x1e3)]()][_0x520c00(0x1d6)]&&![..._0x3bf513[_0x520c00(0x1e3)]()][0x0][_0x520c00(0x1e8)]:!!_0x2222ba[_0x520c00(0x1e7)](_0x3bf513[_0x520c00(0x1ec)]());}(_0x51ee68);const _0x2cb38b=_0x51ee68[_0x5b6dcf(0x1d7)][_0x5b6dcf(0x1e9)],_0x259631=this[_0x5b6dcf(0x1dd)][_0x5b6dcf(0x1e0)][_0x5b6dcf(0x1f5)](_0x5b6dcf(0x1e6));for(const _0x13d2cc of _0x2cb38b[_0x5b6dcf(0x1e2)]())for(const _0x1be842 of _0x13d2cc[_0x5b6dcf(0x1fc)]())if(_0x1be842['is'](_0x5b6dcf(0x1d9))&&_0x259631[_0x5b6dcf(0x1f1)](_0x1be842[_0x5b6dcf(0x1d4)]))return void(this[_0x5b6dcf(0x1f3)]=!0x1);this[_0x5b6dcf(0x1f3)]=!0x0;}[_0x4e2438(0x1da)](_0x5cc636='',_0x3a451e='',_0x40759d=_0x4e2438(0x1e5)){const _0x519f94=_0x4e2438;this[_0x519f94(0x1dd)][_0x519f94(0x1f6)][_0x519f94(0x1f5)](_0x2e66d8)[_0x519f94(0x1fd)](_0x5cc636,_0x3a451e,_0x40759d);}}function _0x2568(){const _0x294cb3=['581lgYQQo','getRanges','getSelectedBlocks','24LOsFxu','custom','ai.assistant.disabledElements','hasContent','isEmpty','selection','set','change:isEnabled','getFirstRange','from','requiresContent','model','change:_hasContext','includes','refresh','isEnabled','_commandDefinitions','get','plugins','2564670tkqKSZ','add','1336PMlKEG','_hasContext','9871370aJMfVV','getItems','showUI','12694935NuslKX','enabledCommandsIds','values','name','2548fIAoTw','length','document','4068243GusfcF','element','execute','81eKnrBg','isCollapsed','editor','9514435cmBgAv','6dcFEQe','config'];_0x2568=function(){return _0x294cb3;};return _0x2568();}function ns(_0x541ae4,_0x172e64){const _0x2294dd=_0x4e2438,_0x483e96=new Set();for(const _0x34b3f3 of _0x541ae4[_0x2294dd(0x1d3)]())(_0x172e64||!0x1===_0x34b3f3[_0x2294dd(0x1ee)])&&_0x483e96[_0x2294dd(0x1f8)](_0x34b3f3['id']);return Array[_0x2294dd(0x1ed)](_0x483e96);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3dd9b3,_0x337673,_0x1087fb){const t=_0x3dd9b3['t'];switch(_0x337673){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',_0x1087fb);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x1087fb);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'},_0x1087fb);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 _0x337673;}}
|
|
@@ -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(_0x13eee3,_0x3834e3){const _0x54f397=(0x0,_0x3834e3['t'])('Other');return _0x13eee3['length']?'groupId'in _0x13eee3[0x0]?_0x13eee3:[{'groupId':'_ungrouppedCommands','groupLabel':_0x54f397,'order':0x1/0x0,'commands':_0x13eee3}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x54f397,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5a7c(_0x5a2444,_0x42ee92){const _0x4db4ed=_0x4db4();return _0x5a7c=function(_0x5a7c60,_0x5cd528){_0x5a7c60=_0x5a7c60-0x154;let _0x7ab5ce=_0x4db4ed[_0x5a7c60];return _0x7ab5ce;},_0x5a7c(_0x5a2444,_0x42ee92);}const _0x4e4bc8=_0x5a7c;(function(_0xcc7af1,_0x2a2188){const _0x30c824=_0x5a7c,_0x20e9c6=_0xcc7af1();while(!![]){try{const _0x3d818e=-parseInt(_0x30c824(0x18a))/0x1*(-parseInt(_0x30c824(0x162))/0x2)+parseInt(_0x30c824(0x169))/0x3+-parseInt(_0x30c824(0x15e))/0x4+parseInt(_0x30c824(0x174))/0x5*(parseInt(_0x30c824(0x15d))/0x6)+-parseInt(_0x30c824(0x16a))/0x7+parseInt(_0x30c824(0x173))/0x8+parseInt(_0x30c824(0x158))/0x9;if(_0x3d818e===_0x2a2188)break;else _0x20e9c6['push'](_0x20e9c6['shift']());}catch(_0x4ecdfb){_0x20e9c6['push'](_0x20e9c6['shift']());}}}(_0x4db4,0x67313));import{ContextPlugin as _0x290d1f}from'ckeditor5/src/core.js';import{AIConnector as _0x24e0c8}from'../aicore/aiconnector.js';import{AIEditing as _0x56f9ca}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x424d83,AIBalloonView as _0x256492}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x5742a8}from'@ckeditor/ckeditor5-collaboration-core';function _0x4db4(){const _0x2ae391=['balloonView','ai-balloon','53430Qrdopj','2250150ynrAXV','round','editing','setupRotator','AIEditing','delegate','markers','_calculateDialogPosition','AIBalloon','1534336QowQxc','49665qKptWE','width','fire','aiBalloon','length','open','Dialog','isOpen','left','ai-balloon-selection','hide','height','getMarkersGroup','context','icon','showFakeVisualSelection','top','ranges','_showDialog','ai-balloon-','model','getBoundingClientRect','393aEcMOc','show','get','locale','index','dialogClosed','requires','_calculateOptimalTopPosition','bind','\x20ai-balloon-rotator','_config','4729041huSuAQ','close','isOfficialPlugin','showRotator','isPremiumPlugin','324LQKPSB','2129668ggrSCU','_setupVisualSelection','plugins','innerHeight','26OSikJx','pluginName','hideFakeVisualSelection','ai-selection','title'];_0x4db4=function(){return _0x2ae391;};return _0x4db4();}import{getEditorFromContext as _0x4bdb99}from'../aicore/utils/geteditorfromcontext.js';export const AI_BALLOON_EVENT_NAMES=[..._0x424d83,_0x4e4bc8(0x18f)];export class AIBalloon extends _0x290d1f{static get[_0x4e4bc8(0x190)](){return[_0x24e0c8,_0x56f9ca];}static get[_0x4e4bc8(0x163)](){const _0x161875=_0x4e4bc8;return _0x161875(0x172);}static get[_0x4e4bc8(0x15a)](){return!0x0;}static get[_0x4e4bc8(0x15c)](){return!0x0;}[_0x4e4bc8(0x17b)]=!0x1;[_0x4e4bc8(0x157)];[_0x4e4bc8(0x179)](_0x2cbb32){const _0x5756e2=_0x4e4bc8,_0x253e02=_0x4bdb99(this[_0x5756e2(0x181)]);this[_0x5756e2(0x157)]=_0x2cbb32,this[_0x5756e2(0x167)]=new _0x256492(_0x253e02[_0x5756e2(0x18d)],_0x2cbb32),this[_0x5756e2(0x167)][_0x5756e2(0x16f)](..._0x424d83)['to'](this),this[_0x5756e2(0x186)](_0x2cbb32);}[_0x4e4bc8(0x159)](){const _0x5a3370=_0x4e4bc8;_0x4bdb99(this[_0x5a3370(0x181)])[_0x5a3370(0x160)][_0x5a3370(0x18c)](_0x5a3370(0x17a))[_0x5a3370(0x17e)]();}[_0x4e4bc8(0x15f)](_0x269731,_0x1158c3){const _0x69d0f0=_0x4e4bc8;this[_0x69d0f0(0x181)][_0x69d0f0(0x160)][_0x69d0f0(0x18c)](_0x56f9ca)[_0x69d0f0(0x183)](_0x269731,_0x69d0f0(0x187)+_0x1158c3,!0x0,!0x0);}[_0x4e4bc8(0x186)](_0x246bbc){const _0x26a88c=_0x4e4bc8,_0x66ce80=_0x4bdb99(this[_0x26a88c(0x181)]);this[_0x26a88c(0x15f)](_0x246bbc[_0x26a88c(0x185)],_0x246bbc[_0x26a88c(0x18e)]),_0x66ce80[_0x26a88c(0x160)][_0x26a88c(0x18c)](_0x26a88c(0x17a))[_0x26a88c(0x18b)]({'title':_0x246bbc[_0x26a88c(0x166)],'icon':_0x246bbc[_0x26a88c(0x182)],'hasCloseButton':!0x0,'id':_0x26a88c(0x177),'position':this[_0x26a88c(0x171)][_0x26a88c(0x155)](this),'className':_0x26a88c(0x168)+(_0x246bbc[_0x26a88c(0x15b)]?_0x26a88c(0x156):''),'content':this[_0x26a88c(0x167)],'onShow':_0x4a5658=>{const _0x79750e=_0x26a88c;_0x246bbc[_0x79750e(0x15b)]&&this[_0x79750e(0x167)][_0x79750e(0x16d)](_0x4a5658),this[_0x79750e(0x17b)]=!0x0;},'onHide':()=>{const _0x397aa4=_0x26a88c;this[_0x397aa4(0x181)][_0x397aa4(0x160)][_0x397aa4(0x18c)](_0x397aa4(0x16e))[_0x397aa4(0x164)](_0x397aa4(0x187)+_0x246bbc[_0x397aa4(0x18e)]),this[_0x397aa4(0x176)](_0x397aa4(0x18f)),this[_0x397aa4(0x17b)]=!0x1;}});}[_0x4e4bc8(0x171)](_0x251f27,_0x2e032d){const _0x9d312c=_0x4e4bc8,_0x285d13=_0x4bdb99(this[_0x9d312c(0x181)]);if(!_0x2e032d)return null;const _0x32fb3f=_0x5742a8(_0x285d13[_0x9d312c(0x16c)],[..._0x285d13[_0x9d312c(0x188)][_0x9d312c(0x170)][_0x9d312c(0x180)](_0x9d312c(0x165)),..._0x285d13[_0x9d312c(0x188)][_0x9d312c(0x170)][_0x9d312c(0x180)](_0x9d312c(0x17d))]);if(!_0x32fb3f||0x0===_0x32fb3f[_0x9d312c(0x178)])return{'left':Math[_0x9d312c(0x16b)](_0x2e032d[_0x9d312c(0x17c)]+_0x2e032d[_0x9d312c(0x175)]/0x2-_0x251f27[_0x9d312c(0x175)]/0x2),'top':Math[_0x9d312c(0x16b)](_0x2e032d[_0x9d312c(0x184)]+_0x2e032d[_0x9d312c(0x17f)]/0x2-_0x251f27[_0x9d312c(0x17f)]/0x2)};const _0x21536c=Math[_0x9d312c(0x16b)](_0x2e032d[_0x9d312c(0x17c)]+_0x2e032d[_0x9d312c(0x175)]/0x2-_0x251f27[_0x9d312c(0x175)]/0x2),_0x17db3a=_0x32fb3f[0x0][_0x9d312c(0x189)](),_0x4a380f=_0x32fb3f[_0x32fb3f[_0x9d312c(0x178)]-0x1][_0x9d312c(0x189)](),_0xe2f7e0=_0x251f27[_0x9d312c(0x17f)],_0x58d9dc=this[_0x9d312c(0x157)][_0x9d312c(0x15b)]?0x8:0x0;return{'left':_0x21536c,'top':this[_0x9d312c(0x154)](_0x17db3a,_0x4a380f,_0xe2f7e0,_0x58d9dc)};}[_0x4e4bc8(0x154)](_0x5c0329,_0x1bb4ff,_0x4e5efa,_0x1d6fff=0x0){const _0x4d99f2=_0x4e4bc8,_0x20d535=_0x1bb4ff[_0x4d99f2(0x184)]+_0x1bb4ff[_0x4d99f2(0x17f)],_0x140603=_0x5c0329[_0x4d99f2(0x184)]-_0x4e5efa-_0x1d6fff,_0x163118=window[_0x4d99f2(0x161)]-_0x20d535-0xa,_0x651b7c=_0x5c0329[_0x4d99f2(0x184)]-_0x1d6fff-0xa;let _0x255bba;if(_0x163118>=_0x4e5efa)_0x255bba=_0x20d535+0xa;else{if(_0x651b7c>=_0x4e5efa)_0x255bba=_0x140603-0xa;else _0x255bba=_0x5c0329[_0x4d99f2(0x184)]+(_0x1bb4ff[_0x4d99f2(0x184)]+_0x1bb4ff[_0x4d99f2(0x17f)])/0x2-(_0x4e5efa+_0x1d6fff)/0x2;}return _0x255bba;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2714(){var _0x4357ab=['486914xcqEiV','36504520LAtuNL','ck-ai-balloon__disclaimer','5112898KxLUXM','5kQMMEW','ck-ai-balloon__disclaimer-content','AI_DISCLAIMER_TEXT','800847gCxSWG','div','8672IFogvr','5VRGNiH','3838674arEoXI','1992dmAVwB','3491480ugUnpj','setTemplate'];_0x2714=function(){return _0x4357ab;};return _0x2714();}(function(_0x462627,_0x5a59cf){var _0x47631e=_0x3139,_0x404e15=_0x462627();while(!![]){try{var _0x560bdf=-parseInt(_0x47631e(0x1f9))/0x1*(parseInt(_0x47631e(0x1ef))/0x2)+parseInt(_0x47631e(0x1fb))/0x3*(-parseInt(_0x47631e(0x1f8))/0x4)+-parseInt(_0x47631e(0x1f3))/0x5*(parseInt(_0x47631e(0x1fa))/0x6)+parseInt(_0x47631e(0x1f2))/0x7+-parseInt(_0x47631e(0x1ed))/0x8+parseInt(_0x47631e(0x1f6))/0x9+parseInt(_0x47631e(0x1f0))/0xa;if(_0x560bdf===_0x5a59cf)break;else _0x404e15['push'](_0x404e15['shift']());}catch(_0x3958fb){_0x404e15['push'](_0x404e15['shift']());}}}(_0x2714,0xb3e1e));function _0x3139(_0x25abce,_0x3b68f9){var _0x271416=_0x2714();return _0x3139=function(_0x3139cf,_0x5307bb){_0x3139cf=_0x3139cf-0x1ed;var _0x1ab8ac=_0x271416[_0x3139cf];return _0x1ab8ac;},_0x3139(_0x25abce,_0x3b68f9);}import{View as _0x48e82e}from'ckeditor5/src/ui.js';import{getTranslation as _0x2c8235}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x48e82e{constructor(_0x5cd9a1){var _0x2a559b=_0x3139;super(_0x5cd9a1),this[_0x2a559b(0x1ee)]({'tag':_0x2a559b(0x1f7),'attributes':{'class':['ck',_0x2a559b(0x1f1)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x2a559b(0x1f4)]},'children':[{'text':_0x2c8235(_0x5cd9a1,_0x2a559b(0x1f5))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x534a89=_0x153e;function _0x153e(_0x410363,_0x457067){const _0x3f8ad3=_0x3f8a();return _0x153e=function(_0x153e78,_0x427736){_0x153e78=_0x153e78-0x95;let _0x342e0c=_0x3f8ad3[_0x153e78];return _0x342e0c;},_0x153e(_0x410363,_0x457067);}(function(_0x56c7d9,_0x1e935c){const _0x118a69=_0x153e,_0x4dcda1=_0x56c7d9();while(!![]){try{const _0x23708a=parseInt(_0x118a69(0xa3))/0x1*(parseInt(_0x118a69(0x9c))/0x2)+-parseInt(_0x118a69(0xaf))/0x3+-parseInt(_0x118a69(0x96))/0x4*(-parseInt(_0x118a69(0x98))/0x5)+-parseInt(_0x118a69(0xa8))/0x6*(-parseInt(_0x118a69(0xa2))/0x7)+-parseInt(_0x118a69(0xae))/0x8*(parseInt(_0x118a69(0x9a))/0x9)+parseInt(_0x118a69(0x99))/0xa+-parseInt(_0x118a69(0x97))/0xb;if(_0x23708a===_0x1e935c)break;else _0x4dcda1['push'](_0x4dcda1['shift']());}catch(_0x247c23){_0x4dcda1['push'](_0x4dcda1['shift']());}}}(_0x3f8a,0x5f7f0));import{ToolbarView as _0x33fca1,ButtonView as _0x23ef17}from'ckeditor5/src/ui.js';import{getTranslation as _0x55d681}from'../../aicore/utils/common-translations.js';function _0x3f8a(){const _0x3f2e18=['3159654jmRjgg','locale','extendTemplate','AI_BALLOON_SUGGEST_BUTTON','_createButton','ck-ai-button-secondary','535016hEprpz','1722579cEMqlo','isLoading','794132bwppxL','2948451YDDFYS','10NOQwgF','4315380OgEQCr','36iaRPcG','suggestButton','2VkDLiL','isEnabled','items','ck-ai-balloon__toolbar','ck-ai-button-primary','bind','7AGqMBL','145681tXgWLZ','add','applyButton','AI_BALLOON_APPLY_BUTTON','set'];_0x3f8a=function(){return _0x3f2e18;};return _0x3f8a();}export class AIBalloonToolbarView extends _0x33fca1{constructor(_0x49825d,_0x1a52d9=!0x0,_0x535608=!0x0){const _0xa1229c=_0x153e;super(_0x49825d),this[_0xa1229c(0xa7)](_0xa1229c(0x95),!0x1),_0x1a52d9&&(this[_0xa1229c(0xa5)]=this[_0xa1229c(0xac)](_0x55d681(_0x49825d,_0xa1229c(0xa6)),_0xa1229c(0xa0)),this[_0xa1229c(0xa5)][_0xa1229c(0xa1)](_0xa1229c(0x9d))['to'](this,_0xa1229c(0x95),_0x3fe79f=>!_0x3fe79f),this[_0xa1229c(0x9e)][_0xa1229c(0xa4)](this[_0xa1229c(0xa5)])),_0x535608&&(this[_0xa1229c(0x9b)]=this[_0xa1229c(0xac)](_0x55d681(_0x49825d,_0xa1229c(0xab)),_0xa1229c(0xad)),this[_0xa1229c(0x9b)][_0xa1229c(0xa1)](_0xa1229c(0x9d))['to'](this,_0xa1229c(0x95),_0x16f915=>!_0x16f915),this[_0xa1229c(0x9e)][_0xa1229c(0xa4)](this[_0xa1229c(0x9b)])),this[_0xa1229c(0xaa)]({'attributes':{'class':[_0xa1229c(0x9f)]}});}[_0x534a89(0xac)](_0x8718aa,_0x39399a){const _0x2a586e=_0x534a89,_0x4734bc=new _0x23ef17(this[_0x2a586e(0xa9)]);return _0x4734bc[_0x2a586e(0xa7)]({'label':_0x8718aa,'class':_0x39399a||'','isVisible':!0x0,'withText':!0x0}),_0x4734bc;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23db2e=_0x4d46;(function(_0x474ae6,_0x2698b9){const _0x230e84=_0x4d46,_0x2171ad=_0x474ae6();while(!![]){try{const _0x27c26f=parseInt(_0x230e84(0x1f4))/0x1*(-parseInt(_0x230e84(0x203))/0x2)+-parseInt(_0x230e84(0x1d7))/0x3*(parseInt(_0x230e84(0x1ea))/0x4)+parseInt(_0x230e84(0x1f1))/0x5*(parseInt(_0x230e84(0x1db))/0x6)+-parseInt(_0x230e84(0x1f8))/0x7+-parseInt(_0x230e84(0x1f0))/0x8*(parseInt(_0x230e84(0x1d6))/0x9)+-parseInt(_0x230e84(0x1e7))/0xa+parseInt(_0x230e84(0x201))/0xb*(parseInt(_0x230e84(0x1c9))/0xc);if(_0x27c26f===_0x2698b9)break;else _0x2171ad['push'](_0x2171ad['shift']());}catch(_0x3c3582){_0x2171ad['push'](_0x2171ad['shift']());}}}(_0x1bf2,0x39c9d));import{ButtonView as _0xb0a3e1,View as _0x33b1a3,ViewCollection as _0x1054d9,FocusCycler as _0x37cdfc}from'ckeditor5/src/ui.js';function _0x4d46(_0x10d6b5,_0x55b99e){const _0x1bf26e=_0x1bf2();return _0x4d46=function(_0x4d4622,_0x4afdef){_0x4d4622=_0x4d4622-0x1c5;let _0x9278c0=_0x1bf26e[_0x4d4622];return _0x9278c0;},_0x4d46(_0x10d6b5,_0x55b99e);}import{FocusTracker as _0x49f67d,KeystrokeHandler as _0x1f5b9c}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x33ed84,IconPreviousArrow as _0x3521a5}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x572cff}from'./aiballoontoolbarview.js';function _0x1bf2(){const _0x3cacc6=['1015360invqRU','_focusables','AI_BALLOON_NEXT_TOOLTIP','72DEHOXh','showPrevious','focusCycler','focusTracker','_createNextButtonView','showApplyButton','56RjcNOb','5iXQBdB','bind','insertSuggestion','2165fotwtz','fire','AI_BALLOON_PREVIOUS_TOOLTIP','setLoading','2818662qovANv','view','headerView','_dialogContent','locale','setupRotator','_mainView','add','div','21439SLEpty','tab','308RxXJAR','set','setTemplate','listenTo','applyButton','6852pOlkRm','showSuggestButton','_createPreviousButtonView','execute','element','focus','clear','mainView','focusFirst','shift\x20+\x20tab','focusLast','createCollection','addMany','44865xILSXW','72855VFCydZ','suggestButton','isLoading','applySuggestion','2600754jFJqnK','_addContentView','keystrokes','render','disclaimerView','ai-balloon-content','showNext','clearLoading','_addToolbar','toolbar','children','_addDisclaimerView'];_0x1bf2=function(){return _0x3cacc6;};return _0x1bf2();}import{AIBalloonDisclaimerView as _0x2ad97a}from'./aiballoondisclaimerview.js';import{getTranslation as _0x40fb27}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x23db2e(0x1da),_0x23db2e(0x1f3),_0x23db2e(0x1e1),_0x23db2e(0x1eb)];export class AIBalloonView extends _0x33b1a3{[_0x23db2e(0x1ed)];[_0x23db2e(0x1dd)];[_0x23db2e(0x1ec)];[_0x23db2e(0x1e8)];constructor(_0x5bc682,_0x4b0792){const _0x21c89d=_0x23db2e;super(_0x5bc682),this[_0x21c89d(0x1c5)](_0x21c89d(0x1d9),!0x1),this[_0x21c89d(0x1ed)]=new _0x49f67d(),this[_0x21c89d(0x1dd)]=new _0x1f5b9c(),this[_0x21c89d(0x1e8)]=this[_0x21c89d(0x1d4)](),this[_0x21c89d(0x1ec)]=new _0x37cdfc({'focusables':this[_0x21c89d(0x1e8)],'focusTracker':this[_0x21c89d(0x1ed)],'keystrokeHandler':this[_0x21c89d(0x1dd)],'actions':{'focusPrevious':_0x21c89d(0x1d2),'focusNext':_0x21c89d(0x202)}}),this[_0x21c89d(0x1fb)]=new _0x1054d9(),this[_0x21c89d(0x1dc)](_0x4b0792[_0x21c89d(0x1d0)]),this[_0x21c89d(0x1e6)](),this[_0x21c89d(0x1e3)](_0x4b0792[_0x21c89d(0x1ef)],_0x4b0792[_0x21c89d(0x1ca)]),this[_0x21c89d(0x1e4)][_0x21c89d(0x1f2)](_0x21c89d(0x1d9))['to'](this),this[_0x21c89d(0x1e8)][_0x21c89d(0x1cf)](),this[_0x21c89d(0x1e8)][_0x21c89d(0x1d5)]([this[_0x21c89d(0x1e4)]]),this[_0x21c89d(0x1c6)]({'tag':_0x21c89d(0x200),'attributes':{'class':_0x21c89d(0x1e0)},'children':this[_0x21c89d(0x1fb)]});}[_0x23db2e(0x1de)](){const _0x254cc9=_0x23db2e;super[_0x254cc9(0x1de)]();for(const _0x26b2d2 of this[_0x254cc9(0x1e8)])this[_0x254cc9(0x1ed)][_0x254cc9(0x1ff)](_0x26b2d2[_0x254cc9(0x1cd)]);this[_0x254cc9(0x1dd)][_0x254cc9(0x1c7)](this[_0x254cc9(0x1cd)]);}[_0x23db2e(0x1ce)](_0x157e14){const _0x45cd89=_0x23db2e;-0x1===_0x157e14?this[_0x45cd89(0x1ec)][_0x45cd89(0x1d3)]():this[_0x45cd89(0x1ec)][_0x45cd89(0x1d1)]();}[_0x23db2e(0x1f7)](){const _0x608cd5=_0x23db2e;this[_0x608cd5(0x1d9)]=!0x0;}[_0x23db2e(0x1e2)](){const _0x188f09=_0x23db2e;this[_0x188f09(0x1d9)]=!0x1;}[_0x23db2e(0x1fd)](_0x320393){const _0x1691d0=_0x23db2e,_0x25074e=this[_0x1691d0(0x1ee)](),_0x11771d=this[_0x1691d0(0x1cb)]();_0x320393[_0x1691d0(0x1f9)][_0x1691d0(0x1fa)][_0x1691d0(0x1e5)][_0x1691d0(0x1ff)](_0x25074e,0x2),_0x320393[_0x1691d0(0x1f9)][_0x1691d0(0x1fa)][_0x1691d0(0x1e5)][_0x1691d0(0x1ff)](_0x11771d,0x0),this[_0x1691d0(0x1e8)][_0x1691d0(0x1d5)]([_0x25074e,_0x11771d]),this[_0x1691d0(0x1ed)][_0x1691d0(0x1ff)](_0x25074e[_0x1691d0(0x1cd)]),this[_0x1691d0(0x1ed)][_0x1691d0(0x1ff)](_0x11771d[_0x1691d0(0x1cd)]);}[_0x23db2e(0x1dc)](_0x2d02f9){const _0x440ad7=_0x23db2e;this[_0x440ad7(0x1fe)]=_0x2d02f9,this[_0x440ad7(0x1fb)][_0x440ad7(0x1ff)](this[_0x440ad7(0x1fe)]);}[_0x23db2e(0x1e6)](){const _0x38382e=_0x23db2e;this[_0x38382e(0x1df)]=new _0x2ad97a(this[_0x38382e(0x1fc)]),this[_0x38382e(0x1fb)][_0x38382e(0x1ff)](this[_0x38382e(0x1df)]);}[_0x23db2e(0x1e3)](_0x1737a4=!0x0,_0x37015=!0x0){const _0x42c7c5=_0x23db2e;this[_0x42c7c5(0x1e4)]=new _0x572cff(this[_0x42c7c5(0x1fc)],_0x1737a4,_0x37015),this[_0x42c7c5(0x1e4)][_0x42c7c5(0x1c8)]?.['on'](_0x42c7c5(0x1cc),()=>{const _0x5f3c91=_0x42c7c5;this[_0x5f3c91(0x1f5)](_0x5f3c91(0x1da));}),this[_0x42c7c5(0x1e4)][_0x42c7c5(0x1d8)]?.['on'](_0x42c7c5(0x1cc),()=>{const _0x430a7d=_0x42c7c5;this[_0x430a7d(0x1f5)](_0x430a7d(0x1f3));}),this[_0x42c7c5(0x1fb)][_0x42c7c5(0x1ff)](this[_0x42c7c5(0x1e4)]);}[_0x23db2e(0x1ee)](){const _0x40b5f0=_0x23db2e,_0x1215bc=new _0xb0a3e1(this[_0x40b5f0(0x1fc)]);return _0x1215bc[_0x40b5f0(0x1c5)]({'icon':_0x33ed84,'tooltip':_0x40fb27(this[_0x40b5f0(0x1fc)],_0x40b5f0(0x1e9))}),_0x1215bc['on'](_0x40b5f0(0x1cc),()=>{const _0x13625f=_0x40b5f0;this[_0x13625f(0x1f5)](_0x13625f(0x1e1));}),_0x1215bc;}[_0x23db2e(0x1cb)](){const _0x4a5a48=_0x23db2e,_0x291ece=new _0xb0a3e1(this[_0x4a5a48(0x1fc)]);return _0x291ece[_0x4a5a48(0x1c5)]({'icon':_0x3521a5,'tooltip':_0x40fb27(this[_0x4a5a48(0x1fc)],_0x4a5a48(0x1f6))}),_0x291ece['on'](_0x4a5a48(0x1cc),()=>{const _0x23978c=_0x4a5a48;this[_0x23978c(0x1f5)](_0x23978c(0x1eb));}),_0x291ece;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34a5fd=_0x10b3;(function(_0x46e43a,_0x59e09e){const _0x31fbd1=_0x10b3,_0xa1e8c1=_0x46e43a();while(!![]){try{const _0x41f921=parseInt(_0x31fbd1(0x143))/0x1+parseInt(_0x31fbd1(0x145))/0x2*(-parseInt(_0x31fbd1(0x14d))/0x3)+parseInt(_0x31fbd1(0x14a))/0x4+-parseInt(_0x31fbd1(0x141))/0x5*(-parseInt(_0x31fbd1(0x147))/0x6)+-parseInt(_0x31fbd1(0x13b))/0x7*(-parseInt(_0x31fbd1(0x13c))/0x8)+parseInt(_0x31fbd1(0x14c))/0x9*(parseInt(_0x31fbd1(0x14b))/0xa)+-parseInt(_0x31fbd1(0x13a))/0xb;if(_0x41f921===_0x59e09e)break;else _0xa1e8c1['push'](_0xa1e8c1['shift']());}catch(_0x2a5ddd){_0xa1e8c1['push'](_0xa1e8c1['shift']());}}}(_0x1854,0x5efd5));import{ContextPlugin as _0x37dc84}from'ckeditor5/src/core.js';function _0x10b3(_0x391524,_0x1c4bda){const _0x18547c=_0x1854();return _0x10b3=function(_0x10b384,_0x5e375c){_0x10b384=_0x10b384-0x138;let _0x22a07a=_0x18547c[_0x10b384];return _0x22a07a;},_0x10b3(_0x391524,_0x1c4bda);}import{AIChatController as _0x28b2ec}from'./aichatcontroller.js';import{AIEditing as _0x571d17}from'../aicore/aiediting.js';import{AIChatUI as _0x1c5288}from'./aichatui.js';import{AIChatHistory as _0x1d262e}from'../aichathistory/aichathistory.js';export class AIChat extends _0x37dc84{static get[_0x34a5fd(0x152)](){return[_0x28b2ec,_0x571d17,_0x1c5288,_0x1d262e];}static get[_0x34a5fd(0x140)](){const _0x2be61d=_0x34a5fd;return _0x2be61d(0x144);}static get[_0x34a5fd(0x153)](){return!0x0;}static get[_0x34a5fd(0x150)](){return!0x0;}constructor(_0x56200f){const _0x183936=_0x34a5fd;super(_0x56200f);const _0xad8b4b=_0x56200f[_0x183936(0x13e)];_0xad8b4b[_0x183936(0x138)](_0x183936(0x148),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),_0xad8b4b[_0x183936(0x138)](_0x183936(0x151),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x34a5fd(0x13f)](){const _0x541ea4=_0x34a5fd;await this[_0x541ea4(0x14e)][_0x541ea4(0x14f)][_0x541ea4(0x13d)](_0x28b2ec)[_0x541ea4(0x13f)]();}async[_0x34a5fd(0x142)](){const _0x968087=_0x34a5fd;await this[_0x968087(0x14e)][_0x968087(0x14f)][_0x968087(0x13d)](_0x28b2ec)[_0x968087(0x142)]();}async[_0x34a5fd(0x139)]({message:_0x1cb11c,quickActionData:_0x537564}){const _0x42d2b1=_0x34a5fd;await this[_0x42d2b1(0x14e)][_0x42d2b1(0x14f)][_0x42d2b1(0x13d)](_0x28b2ec)[_0x42d2b1(0x139)]({'message':_0x1cb11c,'quickActionData':_0x537564});}[_0x34a5fd(0x149)](){const _0x17615e=_0x34a5fd;this[_0x17615e(0x14e)][_0x17615e(0x14f)][_0x17615e(0x13d)](_0x28b2ec)[_0x17615e(0x149)]();}[_0x34a5fd(0x146)](){const _0x398e9d=_0x34a5fd;this[_0x398e9d(0x14e)][_0x398e9d(0x14f)][_0x398e9d(0x13d)](_0x28b2ec)[_0x398e9d(0x146)]();}}function _0x1854(){const _0x21aedf=['6PLNjjp','ai.chat.context','removeSelectionFromChatContext','1066768TGXyQp','10vCfUvA','3923163MRnMbF','3fqqQnE','context','plugins','isPremiumPlugin','ai.chat.models','requires','isOfficialPlugin','define','sendMessage','11123255rzMRri','51562aGJkpJ','120jRtZWx','get','config','addSelectionToChatContext','pluginName','1576405LNfErV','startConversation','743793EAHqAV','AIChat','943762OFEixq','focusPromptInput'];_0x1854=function(){return _0x21aedf;};return _0x1854();}
|
|
@@ -64,5 +64,9 @@ export declare class AIChatController extends ContextPlugin {
|
|
|
64
64
|
* Gets the group ID for the current editor.
|
|
65
65
|
*/
|
|
66
66
|
getGroupId(): string;
|
|
67
|
+
/**
|
|
68
|
+
* Starts an AI chat conversation safely, catching and logging any errors.
|
|
69
|
+
*/
|
|
70
|
+
protected _startConversationSafely(id?: string): Promise<void>;
|
|
67
71
|
updateConversationTitle(title: string | undefined, shouldAnimate?: boolean): void;
|
|
68
72
|
}
|