@ckeditor/ckeditor5-ai 46.1.0-alpha.0 → 46.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +2 -2
- 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 +9 -9
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/legacyerrors.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/normalizecommandsconfig.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cce3e=_0x23bb;(function(_0x943fc5,_0x3630eb){const _0x59b795=_0x23bb,_0x522e6a=_0x943fc5();while(!![]){try{const _0x561075=parseInt(_0x59b795(0x161))/0x1+-parseInt(_0x59b795(0x164))/0x2*(parseInt(_0x59b795(0x183))/0x3)+-parseInt(_0x59b795(0x17b))/0x4+parseInt(_0x59b795(0x180))/0x5+parseInt(_0x59b795(0x157))/0x6+-parseInt(_0x59b795(0x179))/0x7*(-parseInt(_0x59b795(0x166))/0x8)+parseInt(_0x59b795(0x15b))/0x9*(-parseInt(_0x59b795(0x169))/0xa);if(_0x561075===_0x3630eb)break;else _0x522e6a['push'](_0x522e6a['shift']());}catch(_0xfedc0b){_0x522e6a['push'](_0x522e6a['shift']());}}}(_0x203d,0xdc89e));function _0x203d(){const _0x2cb0a2=['render','History','update','excludeScrollbarsAndBorders','focusLast','fieldWrapperChildren','focus','filteredView','showHistoryButtonView','target','312487ppVCJk','set','2656696QsGIdw','isOn','isEnabled','focusFirst','isVisible','4904535SEIxsv','rtl','locale','258vlldas','right','children','enter','resultsView','bind','queryView','style','window','fieldView','focusCycler','execute','submit','element','9091104KzCCuf','left','focusableChildren','minRows','56763akloyz','requestAnimationFrame','fire','submitButtonView','add','_createSubmitButton','210630rtodGD','Submit','maxRows','23844xaiSAU','ck-ai-form__submit','96NOPblx','ck-ai-form__toggle-history','_createShowHistoryButton','1030jnaKBe','value','uiLanguageDirection','isEmpty','width','keystrokes'];_0x203d=function(){return _0x2cb0a2;};return _0x203d();}import{Rect as _0x2b036d,global as _0x43c248,isVisible as _0x27764b}from'ckeditor5/src/utils.js';function _0x23bb(_0x34147c,_0x5b9599){const _0x203d48=_0x203d();return _0x23bb=function(_0x23bb68,_0x511fc8){_0x23bb68=_0x23bb68-0x156;let _0x37f826=_0x203d48[_0x23bb68];return _0x37f826;},_0x23bb(_0x34147c,_0x5b9599);}import{IconHistory as _0x222418,IconSubmit as _0x1b0d4d}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x3eb30a,ButtonView as _0xa85f6d}from'ckeditor5/src/ui.js';import{getTranslation as _0x43668a}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x3eb30a{[_0x1cce3e(0x15e)];[_0x1cce3e(0x177)];constructor(_0x314c56,_0x27c491){const _0x343216=_0x1cce3e;super(_0x314c56,_0x27c491),this[_0x343216(0x189)][_0x343216(0x18c)][_0x343216(0x15a)]=0x1,this[_0x343216(0x189)][_0x343216(0x18c)][_0x343216(0x163)]=0x3,this[_0x343216(0x15e)]=this[_0x343216(0x160)](),this[_0x343216(0x177)]=this[_0x343216(0x168)](),this[_0x343216(0x159)][_0x343216(0x15f)](this[_0x343216(0x177)],0x1),this[_0x343216(0x159)][_0x343216(0x15f)](this[_0x343216(0x15e)]);}[_0x1cce3e(0x16f)](){const _0x10c8b1=_0x1cce3e;super[_0x10c8b1(0x16f)](),this[_0x10c8b1(0x189)][_0x10c8b1(0x174)][_0x10c8b1(0x15f)](this[_0x10c8b1(0x177)]),this[_0x10c8b1(0x185)][_0x10c8b1(0x15f)](this[_0x10c8b1(0x15e)]),this[_0x10c8b1(0x16e)][_0x10c8b1(0x17a)](_0x10c8b1(0x186),(_0x4fa794,_0x35c96d)=>{const _0x852dce=_0x10c8b1;_0x4fa794[_0x852dce(0x178)]==this[_0x852dce(0x189)][_0x852dce(0x18c)][_0x852dce(0x156)]&&(this[_0x852dce(0x18f)](),_0x35c96d());});}[_0x1cce3e(0x160)](){const _0x300311=_0x1cce3e,_0x4c4566=new _0xa85f6d(this[_0x300311(0x182)]),_0x4c73df=this[_0x300311(0x182)];return _0x4c4566[_0x300311(0x17a)]({'icon':_0x1b0d4d,'label':_0x43668a(_0x4c73df,_0x300311(0x162)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x300311(0x165)}),_0x4c4566['on'](_0x300311(0x18e),()=>{const _0x4f8da2=_0x300311;this[_0x4f8da2(0x18f)]();}),_0x4c4566[_0x300311(0x188)](_0x300311(0x17d))['to'](this[_0x300311(0x189)][_0x300311(0x18c)],_0x300311(0x16c),this,_0x300311(0x17d),(_0x55eeca,_0x2e8a45)=>!_0x55eeca&&_0x2e8a45),_0x4c4566;}[_0x1cce3e(0x168)](){const _0x37aa75=_0x1cce3e,_0x183076=new _0xa85f6d(this[_0x37aa75(0x182)]),_0x337284=this[_0x37aa75(0x187)],_0x44e7f9=this[_0x37aa75(0x182)];_0x183076[_0x37aa75(0x17a)]({'label':_0x43668a(_0x44e7f9,_0x37aa75(0x170)),'withText':!0x1,'icon':_0x222418,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x37aa75(0x167)}),_0x183076[_0x37aa75(0x188)](_0x37aa75(0x17c))['to'](_0x337284,_0x37aa75(0x17f)),_0x183076[_0x37aa75(0x188)](_0x37aa75(0x17d))['to'](this,_0x37aa75(0x17d)),_0x183076['on'](_0x37aa75(0x18e),()=>{const _0x2dacdb=_0x37aa75;_0x337284[_0x2dacdb(0x17f)]=!_0x337284[_0x2dacdb(0x17f)],_0x337284[_0x2dacdb(0x17f)]?this[_0x2dacdb(0x176)][_0x2dacdb(0x175)]():this[_0x2dacdb(0x175)]();});const _0x220043=()=>{const _0x13f7e6=_0x37aa75;_0x43c248[_0x13f7e6(0x18b)][_0x13f7e6(0x15c)](()=>{const _0x4d7816=_0x13f7e6;if(_0x27764b(this[_0x4d7816(0x156)])){const _0x32a7fe=new _0x2b036d(this[_0x4d7816(0x189)][_0x4d7816(0x18c)][_0x4d7816(0x156)]),_0x1a70ba=_0x32a7fe[_0x4d7816(0x16d)],_0x27a663=_0x4d7816(0x181)===_0x44e7f9[_0x4d7816(0x16b)]?_0x4d7816(0x158):_0x4d7816(0x184);_0x32a7fe[_0x4d7816(0x172)](),_0x183076[_0x4d7816(0x156)][_0x4d7816(0x18a)][_0x27a663]=_0x1a70ba-_0x32a7fe[_0x4d7816(0x16d)]+0x1+'px';}});};return this[_0x37aa75(0x189)][_0x37aa75(0x18c)]['on'](_0x37aa75(0x171),_0x220043),this['on'](_0x37aa75(0x16f),_0x220043),_0x183076;}[_0x1cce3e(0x18f)](){const _0x30b42c=_0x1cce3e,_0x4cc98a=this[_0x30b42c(0x189)][_0x30b42c(0x18c)][_0x30b42c(0x156)][_0x30b42c(0x16a)];this[_0x30b42c(0x15d)](_0x30b42c(0x18f),_0x4cc98a);}[_0x1cce3e(0x175)](_0x41ab6e){const _0x4b8daf=_0x1cce3e;-0x1===_0x41ab6e?this[_0x4b8daf(0x18d)][_0x4b8daf(0x173)]():this[_0x4b8daf(0x18d)][_0x4b8daf(0x17e)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50b146=_0x3ae1;function _0x3ae1(_0x197d29,_0x598a28){const _0x30011c=_0x3001();return _0x3ae1=function(_0x3ae1c4,_0x1ee11c){_0x3ae1c4=_0x3ae1c4-0xdc;let _0x29d792=_0x30011c[_0x3ae1c4];return _0x29d792;},_0x3ae1(_0x197d29,_0x598a28);}(function(_0x382bb0,_0x417f63){const _0x421be5=_0x3ae1,_0x44f599=_0x382bb0();while(!![]){try{const _0x39ccc9=parseInt(_0x421be5(0xf2))/0x1+parseInt(_0x421be5(0xe0))/0x2*(parseInt(_0x421be5(0xe7))/0x3)+-parseInt(_0x421be5(0xf0))/0x4+parseInt(_0x421be5(0xfe))/0x5*(-parseInt(_0x421be5(0xeb))/0x6)+-parseInt(_0x421be5(0xff))/0x7*(parseInt(_0x421be5(0xde))/0x8)+-parseInt(_0x421be5(0xee))/0x9*(-parseInt(_0x421be5(0xfd))/0xa)+-parseInt(_0x421be5(0xe5))/0xb;if(_0x39ccc9===_0x417f63)break;else _0x44f599['push'](_0x44f599['shift']());}catch(_0x136c44){_0x44f599['push'](_0x44f599['shift']());}}}(_0x3001,0x48787));function _0x3001(){const _0x25d784=['AI_','_createButton','tryAgainButton','8zXywwx','replace','8670WSqBrO','stopButton','ck-button-action','REPLACE','insert','1562671hqCQjQ','mainAction','129aiFIQQ','bindTemplate','insertButton','ck-ai-form__toolbar','1236qXFwhL','bind','locale','111924YaBhIP','addMany','1423056MRrtTA','items','470526ilyUcN','Try\x20again','replaceButton','Stop','ck-hidden','toUpperCase','_CONTENT','Insert\x20below','isVisible','label','set','470xKCGft','4405IcSLxh','1856911EzXmxn','extendTemplate'];_0x3001=function(){return _0x25d784;};return _0x3001();}import{ToolbarView as _0x1f9a31,ButtonView as _0x10aaa2}from'ckeditor5/src/ui.js';import{getTranslation as _0x18aba1}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x50b146(0xdf),'INSERT':_0x50b146(0xe4)};export class AIFormToolbarView extends _0x1f9a31{constructor(_0x1f2e3d){const _0xbc430c=_0x50b146;super(_0x1f2e3d),this[_0xbc430c(0xfc)](_0xbc430c(0xfa),!0x1),this[_0xbc430c(0xfc)](_0xbc430c(0xe6),AIFormToolbarViewMainActionLabel[_0xbc430c(0xe3)]),this[_0xbc430c(0xf4)]=this[_0xbc430c(0xdc)]('',_0xbc430c(0xe2)),this[_0xbc430c(0xf4)][_0xbc430c(0xec)](_0xbc430c(0xfb))['to'](this,_0xbc430c(0xe6),_0x2d4d0f=>_0x18aba1(_0x1f2e3d,_0xbc430c(0x101)+_0x2d4d0f[_0xbc430c(0xf7)]()+_0xbc430c(0xf8))),this[_0xbc430c(0xe9)]=this[_0xbc430c(0xdc)](_0x18aba1(_0x1f2e3d,_0xbc430c(0xf9))),this[_0xbc430c(0xdd)]=this[_0xbc430c(0xdc)](_0x18aba1(_0x1f2e3d,_0xbc430c(0xf3))),this[_0xbc430c(0xe1)]=this[_0xbc430c(0xdc)](_0x18aba1(_0x1f2e3d,_0xbc430c(0xf5)));const _0x4f5486=this[_0xbc430c(0xe8)];this[_0xbc430c(0x100)]({'attributes':{'class':[_0xbc430c(0xea),_0x4f5486['if'](_0xbc430c(0xfa),_0xbc430c(0xf6),_0x25b571=>!_0x25b571)]}}),this[_0xbc430c(0xf1)][_0xbc430c(0xef)]([this[_0xbc430c(0xf4)],this[_0xbc430c(0xe9)],this[_0xbc430c(0xdd)],this[_0xbc430c(0xe1)]]);}[_0x50b146(0xdc)](_0x35bf90,_0x1335f8){const _0x5db110=_0x50b146,_0x4b3626=new _0x10aaa2(this[_0x5db110(0xed)]);return _0x4b3626[_0x5db110(0xfc)]({'label':_0x35bf90,'class':_0x1335f8||'','isVisible':!0x0,'withText':!0x0}),_0x4b3626;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f4cab=_0x2d5d;(function(_0x5179c1,_0xb33ec7){const _0x1008e2=_0x2d5d,_0x20b32b=_0x5179c1();while(!![]){try{const _0x420b00=parseInt(_0x1008e2(0x181))/0x1*(-parseInt(_0x1008e2(0x15e))/0x2)+parseInt(_0x1008e2(0x148))/0x3+-parseInt(_0x1008e2(0x14d))/0x4*(-parseInt(_0x1008e2(0x15f))/0x5)+-parseInt(_0x1008e2(0x131))/0x6+parseInt(_0x1008e2(0x143))/0x7+parseInt(_0x1008e2(0x158))/0x8*(parseInt(_0x1008e2(0x136))/0x9)+parseInt(_0x1008e2(0x17f))/0xa*(-parseInt(_0x1008e2(0x137))/0xb);if(_0x420b00===_0xb33ec7)break;else _0x20b32b['push'](_0x20b32b['shift']());}catch(_0x197e39){_0x20b32b['push'](_0x20b32b['shift']());}}}(_0x3715,0x87770));import{FocusTracker as _0x34c5b4,KeystrokeHandler as _0x4a1bf4}from'ckeditor5/src/utils.js';import{View as _0x83435e,FocusCycler as _0x2e0e9f,createLabeledTextarea as _0x209fc6}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x5c9df2,AIFormToolbarViewMainActionLabel as _0x3bd0ef}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x23af25}from'./aiformcontentarea.js';import{AIFormErrorView as _0x3368b0}from'./aiformerrorview.js';function _0x3715(){const _0x3bc398=['submitPrompt','prompt','_focusables','769164znZCYA','locale','REPLACE','search','promptView','53919HdJmTD','4911951BbtIGV','Empty\x20history','historyGroupView','errorView','element','insertButton','isError','keystrokes','text','setTemplate','stopProcessing','contentArea','2619071VcufcJ','items','listenTo','Ask\x20AI\x20to\x20improve\x20generated\x20text','execute','1482864WpSPXk','delegate','isVisible','toolbar','AI_ERROR_FAILED','12pCTAkU','add','fire','focusCycler','bindTo','startProcessing','copyButtonView','reset','shift\x20+\x20tab','focus','insertContentBelow','264tKAhco','stopButton','_createToolbar','set','high','clearHistory','10FhCaMN','1380735JReDtF','ck-ai-form','chain','replaceButton','bind','div','focusFirst','finishProcessing','isEnabled','_createHistoryView','mainAction','Ask\x20AI\x20to\x20edit\x20or\x20generate','createCollection','tryAgainEvent','_createPromptView','queryView','submit','ck-hidden','_promptHistory','label','render','tab','bindTemplate','isProcessing','handleError','focusTracker','clear','value','fieldView','ck-ai-form-content','focusLast','trim','20HXDxfR','tryAgainButton','63689zVnPek','replaceContent','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.'];_0x3715=function(){return _0x3bc398;};return _0x3715();}import{AIFormPromptView as _0x3b1c0d}from'./aiformpromptview.js';function _0x2d5d(_0xea8fe3,_0x5b853b){const _0x37150f=_0x3715();return _0x2d5d=function(_0x2d5d3b,_0x141268){_0x2d5d3b=_0x2d5d3b-0x12d;let _0x4016c4=_0x37150f[_0x2d5d3b];return _0x4016c4;},_0x2d5d(_0xea8fe3,_0x5b853b);}import{AIHistoryListView as _0x28e3d4}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x3bcce0}from'./aihistorylistitemview.js';import{PromptHistory as _0x10898d}from'./prompthistory.js';import{getTranslation as _0x14983d}from'../../utils/common-translations.js';import{escape as _0x4e0da2}from'es-toolkit/compat';export class AIFormView extends _0x83435e{[_0x4f4cab(0x178)];[_0x4f4cab(0x13e)];[_0x4f4cab(0x142)];[_0x4f4cab(0x14b)];[_0x4f4cab(0x135)];[_0x4f4cab(0x13a)];[_0x4f4cab(0x130)];[_0x4f4cab(0x150)];[_0x4f4cab(0x171)];constructor(_0x1e4439,_0x263500,_0x560d5b=''){const _0x4aa74f=_0x4f4cab;super(_0x1e4439),this[_0x4aa74f(0x15b)](_0x4aa74f(0x167),!0x0),this[_0x4aa74f(0x15b)](_0x4aa74f(0x176),!0x1),this[_0x4aa74f(0x15b)](_0x4aa74f(0x12f),''),this[_0x4aa74f(0x15b)](_0x4aa74f(0x17a),''),this[_0x4aa74f(0x15b)](_0x4aa74f(0x13d),!0x1),this[_0x4aa74f(0x15b)](_0x4aa74f(0x169),_0x3bd0ef[_0x4aa74f(0x133)]),this[_0x4aa74f(0x171)]=new _0x10898d(),this[_0x4aa74f(0x13a)]=new _0x3368b0(_0x1e4439),this[_0x4aa74f(0x142)]=new _0x23af25(_0x1e4439,_0x560d5b),this[_0x4aa74f(0x142)][_0x4aa74f(0x163)](_0x4aa74f(0x176))['to'](this),this[_0x4aa74f(0x142)][_0x4aa74f(0x163)](_0x4aa74f(0x17a))['to'](this),this[_0x4aa74f(0x14b)]=this[_0x4aa74f(0x15a)](),this[_0x4aa74f(0x14b)][_0x4aa74f(0x163)](_0x4aa74f(0x169))['to'](this),this[_0x4aa74f(0x135)]=this[_0x4aa74f(0x16d)](),this[_0x4aa74f(0x178)]=new _0x34c5b4(),this[_0x4aa74f(0x13e)]=new _0x4a1bf4(),this[_0x4aa74f(0x130)]=this[_0x4aa74f(0x16b)]([this[_0x4aa74f(0x142)],this[_0x4aa74f(0x142)][_0x4aa74f(0x153)],this[_0x4aa74f(0x14b)],this[_0x4aa74f(0x135)]]),this[_0x4aa74f(0x150)]=new _0x2e0e9f({'focusables':this[_0x4aa74f(0x130)],'focusTracker':this[_0x4aa74f(0x178)],'keystrokeHandler':this[_0x4aa74f(0x13e)],'actions':{'focusPrevious':_0x4aa74f(0x155),'focusNext':_0x4aa74f(0x174)}}),this[_0x4aa74f(0x150)][_0x4aa74f(0x161)](this[_0x4aa74f(0x135)][_0x4aa74f(0x150)]),this[_0x4aa74f(0x135)][_0x4aa74f(0x16e)][_0x4aa74f(0x17b)][_0x4aa74f(0x163)](_0x4aa74f(0x17a))['to'](this,_0x4aa74f(0x12f));const _0x324df7=this[_0x4aa74f(0x175)];this[_0x4aa74f(0x140)]({'tag':_0x4aa74f(0x164),'attributes':{'class':['ck',_0x4aa74f(0x160),_0x263500],'tabindex':'-1'},'children':[{'tag':_0x4aa74f(0x164),'attributes':{'class':['ck',_0x4aa74f(0x17c)]},'children':[{'tag':_0x4aa74f(0x164),'attributes':{'class':[_0x324df7['if'](_0x4aa74f(0x13d),_0x4aa74f(0x170),_0x31fe5c=>!_0x31fe5c)]},'children':[this[_0x4aa74f(0x13a)]]},this[_0x4aa74f(0x142)],this[_0x4aa74f(0x14b)],this[_0x4aa74f(0x135)]]}]});}[_0x4f4cab(0x173)](){const _0x34fe32=_0x4f4cab;super[_0x34fe32(0x173)](),this[_0x34fe32(0x178)][_0x34fe32(0x14e)](this[_0x34fe32(0x142)][_0x34fe32(0x13b)]),this[_0x34fe32(0x178)][_0x34fe32(0x14e)](this[_0x34fe32(0x142)][_0x34fe32(0x153)][_0x34fe32(0x13b)]),this[_0x34fe32(0x178)][_0x34fe32(0x14e)](this[_0x34fe32(0x14b)][_0x34fe32(0x13b)]),this[_0x34fe32(0x178)][_0x34fe32(0x14e)](this[_0x34fe32(0x135)][_0x34fe32(0x13b)]),this[_0x34fe32(0x13e)][_0x34fe32(0x145)](this[_0x34fe32(0x13b)]);}[_0x4f4cab(0x156)](_0x13d11e=0x1){const _0x4ee7e2=_0x4f4cab;-0x1===_0x13d11e?this[_0x4ee7e2(0x150)][_0x4ee7e2(0x17d)]():this[_0x4ee7e2(0x150)][_0x4ee7e2(0x165)]();}[_0x4f4cab(0x154)](){const _0x5e69de=_0x4f4cab;this[_0x5e69de(0x12f)]='',this[_0x5e69de(0x17a)]='',this[_0x5e69de(0x13d)]=!0x1,this[_0x5e69de(0x135)][_0x5e69de(0x154)](),this[_0x5e69de(0x142)][_0x5e69de(0x14a)]=!0x1,this[_0x5e69de(0x14b)][_0x5e69de(0x14a)]=!0x1;}[_0x4f4cab(0x16d)](){const _0x5c7ff9=_0x4f4cab,_0x50b6bb=this[_0x5c7ff9(0x132)],_0x4c1e20=new _0x3b1c0d(_0x50b6bb,{'queryView':{'label':_0x14983d(_0x50b6bb,_0x5c7ff9(0x16a)),'creator':_0x209fc6,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x14983d(_0x50b6bb,_0x5c7ff9(0x138)),'secondary':_0x14983d(_0x50b6bb,_0x5c7ff9(0x12d))}}},'filteredView':this[_0x5c7ff9(0x168)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4c1e20[_0x5c7ff9(0x163)](_0x5c7ff9(0x167))['to'](this,_0x5c7ff9(0x167),this,_0x5c7ff9(0x176),(_0x59195d,_0x6fcf63)=>_0x59195d&&!_0x6fcf63),this[_0x5c7ff9(0x145)](_0x4c1e20,_0x5c7ff9(0x16f),(_0x171f25,_0x569f07)=>{const _0x4352b1=_0x5c7ff9;this[_0x4352b1(0x12f)]=_0x569f07;const _0x22ca8f=_0x4e0da2(_0x569f07);this[_0x4352b1(0x14f)](_0x4352b1(0x12e),_0x22ca8f),_0x569f07[_0x4352b1(0x17e)]()&&this[_0x4352b1(0x171)][_0x4352b1(0x14e)]({'prompt':_0x22ca8f},0x0);},{'priority':_0x5c7ff9(0x15c)}),_0x4c1e20;}[_0x4f4cab(0x168)](){const _0x5d9c02=_0x4f4cab,_0x54abc8=new _0x28e3d4(this[_0x5d9c02(0x132)]);return _0x54abc8[_0x5d9c02(0x139)][_0x5d9c02(0x144)][_0x5d9c02(0x151)](this[_0x5d9c02(0x171)])['as'](_0x3bcce0),_0x54abc8['on'](_0x5d9c02(0x15d),()=>{const _0x45964a=_0x5d9c02;this[_0x45964a(0x171)][_0x45964a(0x179)](),this[_0x45964a(0x135)][_0x45964a(0x134)](''),this[_0x45964a(0x135)][_0x45964a(0x156)]();}),_0x54abc8;}[_0x4f4cab(0x15a)](){const _0x3a27e8=_0x4f4cab,_0x389c88=new _0x5c9df2(this[_0x3a27e8(0x132)]);return _0x389c88[_0x3a27e8(0x162)][_0x3a27e8(0x163)](_0x3a27e8(0x167))['to'](this,_0x3a27e8(0x167),this,_0x3a27e8(0x176),this,_0x3a27e8(0x17a),(_0x4bebec,_0x3f17f8,_0x1d69e8)=>_0x4bebec&&!_0x3f17f8&&!!_0x1d69e8),_0x389c88[_0x3a27e8(0x162)][_0x3a27e8(0x149)](_0x3a27e8(0x147))['to'](this,_0x3a27e8(0x182)),_0x389c88[_0x3a27e8(0x13c)][_0x3a27e8(0x163)](_0x3a27e8(0x167))['to'](this,_0x3a27e8(0x167),this,_0x3a27e8(0x176),this,_0x3a27e8(0x17a),(_0x2a210e,_0x26156e,_0x7b17ea)=>_0x2a210e&&!_0x26156e&&!!_0x7b17ea),_0x389c88[_0x3a27e8(0x13c)][_0x3a27e8(0x149)](_0x3a27e8(0x147))['to'](this,_0x3a27e8(0x157)),_0x389c88[_0x3a27e8(0x180)][_0x3a27e8(0x163)](_0x3a27e8(0x167))['to'](this,_0x3a27e8(0x167),this,_0x3a27e8(0x176),(_0x3f104a,_0x50a7c7)=>_0x3f104a&&!_0x50a7c7),_0x389c88[_0x3a27e8(0x180)][_0x3a27e8(0x149)](_0x3a27e8(0x147))['to'](this,_0x3a27e8(0x16c)),_0x389c88[_0x3a27e8(0x159)][_0x3a27e8(0x163)](_0x3a27e8(0x167))['to'](this,_0x3a27e8(0x176)),_0x389c88[_0x3a27e8(0x159)][_0x3a27e8(0x149)](_0x3a27e8(0x147))['to'](this,_0x3a27e8(0x141)),_0x389c88;}[_0x4f4cab(0x152)](){const _0x4bbd6d=_0x4f4cab;this[_0x4bbd6d(0x17a)]='',this[_0x4bbd6d(0x13d)]=!0x1,this[_0x4bbd6d(0x176)]=!0x0,this[_0x4bbd6d(0x142)][_0x4bbd6d(0x14a)]=!0x0,this[_0x4bbd6d(0x14b)][_0x4bbd6d(0x14a)]=!0x0,this[_0x4bbd6d(0x142)][_0x4bbd6d(0x156)]();}[_0x4f4cab(0x166)](){const _0x4c54df=_0x4f4cab,_0x3cfdfe=this[_0x4c54df(0x132)];this[_0x4c54df(0x176)]=!0x1,this[_0x4c54df(0x12f)]='',this[_0x4c54df(0x135)][_0x4c54df(0x154)](),this[_0x4c54df(0x17a)]&&(this[_0x4c54df(0x135)][_0x4c54df(0x16e)][_0x4c54df(0x172)]=_0x14983d(_0x3cfdfe,_0x4c54df(0x146)));}[_0x4f4cab(0x177)](_0x1e2405){const _0x24eecc=_0x4f4cab,_0x5e37cf=this[_0x24eecc(0x132)];this[_0x24eecc(0x166)](),this[_0x24eecc(0x13d)]=!0x0,this[_0x24eecc(0x13a)][_0x24eecc(0x13f)]=_0x1e2405||_0x14983d(_0x5e37cf,_0x24eecc(0x14c)),this[_0x24eecc(0x17a)]||(this[_0x24eecc(0x142)][_0x24eecc(0x14a)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x43d78a,_0x3d5ad5){const _0x43971b=_0x2b1e,_0x4b5622=_0x43d78a();while(!![]){try{const _0x43983c=-parseInt(_0x43971b(0x102))/0x1*(parseInt(_0x43971b(0xfb))/0x2)+-parseInt(_0x43971b(0xfe))/0x3+-parseInt(_0x43971b(0xfd))/0x4+-parseInt(_0x43971b(0xff))/0x5+-parseInt(_0x43971b(0x105))/0x6*(parseInt(_0x43971b(0x100))/0x7)+parseInt(_0x43971b(0xf9))/0x8*(parseInt(_0x43971b(0x106))/0x9)+parseInt(_0x43971b(0xfa))/0xa*(parseInt(_0x43971b(0xf7))/0xb);if(_0x43983c===_0x3d5ad5)break;else _0x4b5622['push'](_0x4b5622['shift']());}catch(_0x3bfe66){_0x4b5622['push'](_0x4b5622['shift']());}}}(_0x2c33,0x54783));function _0x2b1e(_0x4245dd,_0x44f069){const _0x2c33df=_0x2c33();return _0x2b1e=function(_0x2b1eec,_0x1fdfa5){_0x2b1eec=_0x2b1eec-0xf6;let _0x518cb0=_0x2c33df[_0x2b1eec];return _0x518cb0;},_0x2b1e(_0x4245dd,_0x44f069);}import{ListItemView as _0x2ce7c3,ButtonView as _0x31c6aa,ButtonLabelView as _0x32bdf0}from'ckeditor5/src/ui.js';import{unescape as _0x5b66a3}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x2ce7c3{constructor(_0x49bf36){const _0x21187b=_0x2b1e;super();const _0x152dc9=new _0x32bdf0(),_0x3a79ee=new _0x31c6aa(this[_0x21187b(0x103)],_0x152dc9);this[_0x21187b(0xf6)][_0x21187b(0x101)](_0x3a79ee),_0x3a79ee[_0x21187b(0x107)]({'label':_0x49bf36[_0x21187b(0xf8)],'withText':!0x0}),_0x3a79ee['on'](_0x21187b(0xfc),()=>{const _0x525a89=_0x21187b;this[_0x525a89(0x104)](_0x525a89(0xfc),{'value':_0x5b66a3(_0x49bf36[_0x525a89(0xf8)])});});}}function _0x2c33(){const _0x54e3c0=['1547316VIIDKY','1710462CdDejV','3193245SElzAX','7faZJnM','add','2UvrNtW','locale','fire','2038098hWiuqU','20673cqhyUv','set','children','11qTbVTG','prompt','1664ihZdrj','20437580bByLVs','240232QqMRuv','execute'];_0x2c33=function(){return _0x54e3c0;};return _0x2c33();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xeb9e12=_0x53a5;(function(_0x4fe2ab,_0x19ec1d){const _0x1341f7=_0x53a5,_0x36ae2c=_0x4fe2ab();while(!![]){try{const _0x1b037f=parseInt(_0x1341f7(0x144))/0x1+-parseInt(_0x1341f7(0x14e))/0x2*(parseInt(_0x1341f7(0x15b))/0x3)+parseInt(_0x1341f7(0x14c))/0x4+parseInt(_0x1341f7(0x14b))/0x5+parseInt(_0x1341f7(0x143))/0x6+-parseInt(_0x1341f7(0x145))/0x7*(-parseInt(_0x1341f7(0x15a))/0x8)+-parseInt(_0x1341f7(0x14d))/0x9;if(_0x1b037f===_0x19ec1d)break;else _0x36ae2c['push'](_0x36ae2c['shift']());}catch(_0x285cef){_0x36ae2c['push'](_0x36ae2c['shift']());}}}(_0x4199,0xbbee9));function _0x53a5(_0x46cb6e,_0x3350e1){const _0x419929=_0x4199();return _0x53a5=function(_0x53a583,_0x9d88d6){_0x53a583=_0x53a583-0x142;let _0x517bb3=_0x419929[_0x53a583];return _0x517bb3;},_0x53a5(_0x46cb6e,_0x3350e1);}import{ListView as _0x1c949f,ListItemGroupView as _0x3dc0f2,ButtonView as _0x123ef5}from'ckeditor5/src/ui.js';function _0x4199(){const _0x232b05=['children','clearHistoryButton','add','4509700magzzA','2496416BGkakk','14433831rwgWFx','708MrbcGj','clearHistory','historyGroupView','Prompt\x20history','locale','_createClearHistoryButton','Clear','fire','delegate','length','items','filter','277672RekatE','5619PyLTyG','label','5015442YksqXt','605201BxFMwo','14kHuDei','set','execute'];_0x4199=function(){return _0x232b05;};return _0x4199();}import{getTranslation as _0x28e49f}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x1c949f{[_0xeb9e12(0x150)];[_0xeb9e12(0x149)];constructor(_0x4ce9ca){const _0x123003=_0xeb9e12;super(_0x4ce9ca),this[_0x123003(0x149)]=this[_0x123003(0x153)](),this[_0x123003(0x150)]=new _0x3dc0f2(),this[_0x123003(0x150)][_0x123003(0x148)][_0x123003(0x14a)](this[_0x123003(0x149)],0x1),this[_0x123003(0x150)][_0x123003(0x142)]=_0x28e49f(_0x4ce9ca,_0x123003(0x151)),this[_0x123003(0x150)][_0x123003(0x158)][_0x123003(0x156)](_0x123003(0x147))['to'](this),this[_0x123003(0x158)][_0x123003(0x14a)](this[_0x123003(0x150)]);}[_0xeb9e12(0x159)](){const _0x2d1ef0=_0xeb9e12;let _0x3ddbce=0x0;for(const _0x171ece of this[_0x2d1ef0(0x158)])_0x3ddbce+=_0x171ece[_0x2d1ef0(0x158)][_0x2d1ef0(0x157)];return{'resultsCount':_0x3ddbce,'totalItemsCount':_0x3ddbce};}[_0xeb9e12(0x153)](){const _0x19e7fd=_0xeb9e12,_0x21c191=this[_0x19e7fd(0x152)],_0x37f235=new _0x123ef5(this[_0x19e7fd(0x152)]);return _0x37f235[_0x19e7fd(0x146)]({'label':'('+_0x28e49f(_0x21c191,_0x19e7fd(0x154))+')','withText':!0x0}),_0x37f235['on'](_0x19e7fd(0x147),()=>this[_0x19e7fd(0x155)](_0x19e7fd(0x14f))),_0x37f235;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4043(){const _0x46faf8=['addMany','1730118xIbRlX','remove','setItem','parse','trim','_saveToSessionStorage','prompt','length','199jkZANP','487998DwQKmA','last','toLowerCase','484sDVgZL','map','1802508vmeOLl','CKEditor/AIFormView/PromptHistory','473732odyAXS','add','1366296TajDQr','_loadFromSessionStorage','getItem','250240gLrITh','stringify'];_0x4043=function(){return _0x46faf8;};return _0x4043();}function _0x8641(_0xf82296,_0x6b6d04){const _0x4043b6=_0x4043();return _0x8641=function(_0x86419a,_0x25c26f){_0x86419a=_0x86419a-0x175;let _0x271765=_0x4043b6[_0x86419a];return _0x271765;},_0x8641(_0xf82296,_0x6b6d04);}const _0x6e9140=_0x8641;(function(_0x4ad97e,_0x27106){const _0x52b254=_0x8641,_0x4f3fbc=_0x4ad97e();while(!![]){try{const _0x3cd1c4=parseInt(_0x52b254(0x180))/0x1*(-parseInt(_0x52b254(0x184))/0x2)+parseInt(_0x52b254(0x178))/0x3+parseInt(_0x52b254(0x188))/0x4+parseInt(_0x52b254(0x175))/0x5+-parseInt(_0x52b254(0x186))/0x6+-parseInt(_0x52b254(0x181))/0x7+parseInt(_0x52b254(0x18a))/0x8;if(_0x3cd1c4===_0x27106)break;else _0x4f3fbc['push'](_0x4f3fbc['shift']());}catch(_0x1535ed){_0x4f3fbc['push'](_0x4f3fbc['shift']());}}}(_0x4043,0x79814));import{Collection as _0xb82544}from'ckeditor5/src/utils.js';const ts=_0x6e9140(0x187);export class PromptHistory extends _0xb82544{constructor(){const _0x15203a=_0x6e9140;super(),this[_0x15203a(0x18b)](),this['on'](_0x15203a(0x189),(_0xfb36cc,_0x82edd9)=>{const _0x5c4f9a=_0x15203a,_0x599665=os(_0x82edd9[_0x5c4f9a(0x17e)]);for(const _0x111809 of this)if(_0x111809!=_0x82edd9&&os(_0x111809[_0x5c4f9a(0x17e)])===_0x599665){this[_0x5c4f9a(0x179)](_0x111809);break;}this[_0x5c4f9a(0x17f)]>0x14&&this[_0x5c4f9a(0x179)](this[_0x5c4f9a(0x182)]),this[_0x5c4f9a(0x17d)]();}),this['on'](_0x15203a(0x179),()=>{const _0x15cc80=_0x15203a;this[_0x15cc80(0x17d)]();});}[_0x6e9140(0x18b)](){const _0x161a1=_0x6e9140,_0x22e8e2=sessionStorage[_0x161a1(0x18c)](ts)||'[]';this[_0x161a1(0x177)](JSON[_0x161a1(0x17b)](_0x22e8e2));}[_0x6e9140(0x17d)](){const _0x53e948=_0x6e9140;sessionStorage[_0x53e948(0x17a)](ts,JSON[_0x53e948(0x176)](this[_0x53e948(0x185)](_0x3c4e97=>_0x3c4e97)));}}function os(_0x23503c){const _0x5edcab=_0x6e9140;return _0x23503c[_0x5edcab(0x183)]()[_0x5edcab(0x17c)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1a6b(_0x442fd4,_0x155314){const _0xc4ffb6=_0xc4ff();return _0x1a6b=function(_0x1a6bd2,_0x4f55d6){_0x1a6bd2=_0x1a6bd2-0x1ec;let _0x172d0e=_0xc4ffb6[_0x1a6bd2];return _0x172d0e;},_0x1a6b(_0x442fd4,_0x155314);}function _0xc4ff(){const _0x1151ab=['2167hygove','7796592cmxetB','element','execute','selection','hasContent','16OLLbSv','_commandDefinitions','plugins','getFirstRange','values','editor','334cAXMII','5512XwJluh','getSelectedBlocks','model','config','refresh','205806OSrwCi','name','4142184aFhMwa','get','custom','enabledCommandsIds','includes','add','document','getItems','isEmpty','ai.aiAssistant.disabledElements','set','isEnabled','showUI','166360leOtFT','_hasContext','change:isEnabled','isCollapsed','length','4838820zfzoDJ','change:_hasContext','3058643oKaBFJ','20IqRsKo','getRanges','requiresContent','from'];_0xc4ff=function(){return _0x1151ab;};return _0xc4ff();}const _0x4a9bdc=_0x1a6b;(function(_0x3fac00,_0x2f669a){const _0x173639=_0x1a6b,_0x630aec=_0x3fac00();while(!![]){try{const _0x51156c=-parseInt(_0x173639(0x1f7))/0x1*(parseInt(_0x173639(0x1f8))/0x2)+parseInt(_0x173639(0x1fd))/0x3*(-parseInt(_0x173639(0x214))/0x4)+parseInt(_0x173639(0x211))/0x5+-parseInt(_0x173639(0x1ff))/0x6+parseInt(_0x173639(0x213))/0x7*(-parseInt(_0x173639(0x1f1))/0x8)+-parseInt(_0x173639(0x1ec))/0x9+-parseInt(_0x173639(0x20c))/0xa*(-parseInt(_0x173639(0x218))/0xb);if(_0x51156c===_0x2f669a)break;else _0x630aec['push'](_0x630aec['shift']());}catch(_0x8560c5){_0x630aec['push'](_0x630aec['shift']());}}}(_0xc4ff,0x86850));import{Command as _0x1ef725}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x59e314}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x1ef725{[_0x4a9bdc(0x1f2)];constructor(_0x5b4c3e,_0x88ccf3){const _0x1e2d19=_0x4a9bdc;super(_0x5b4c3e),this[_0x1e2d19(0x1f2)]=_0x88ccf3,this[_0x1e2d19(0x209)](_0x1e2d19(0x202),[]),this['on'](_0x1e2d19(0x212),(_0x21bbc8,_0xf2fad8,_0xe77dc8)=>{const _0x5079c0=_0x1e2d19;this[_0x5079c0(0x20a)]&&(this[_0x5079c0(0x202)]=F(this[_0x5079c0(0x1f2)],_0xe77dc8));}),this[_0x1e2d19(0x209)](_0x1e2d19(0x20d),!0x1),this['on'](_0x1e2d19(0x20e),(_0x34ac35,_0xdb030e,_0x3a3cff)=>{const _0xc92e99=_0x1e2d19;this[_0xc92e99(0x202)]=_0x3a3cff?F(this[_0xc92e99(0x1f2)],this[_0xc92e99(0x20d)]):[];});}[_0x4a9bdc(0x1fc)](){const _0x434a8c=_0x4a9bdc,_0x116cd0=this[_0x434a8c(0x1f6)][_0x434a8c(0x1fa)];this[_0x434a8c(0x20d)]=function(_0x3d5f1e){const _0x1301ee=_0x434a8c,_0xddf191=_0x3d5f1e[_0x1301ee(0x205)][_0x1301ee(0x1ef)];return _0xddf191[_0x1301ee(0x20f)]?0x0!==[..._0xddf191[_0x1301ee(0x1f9)]()][_0x1301ee(0x210)]&&![..._0xddf191[_0x1301ee(0x1f9)]()][0x0][_0x1301ee(0x207)]:!!_0x3d5f1e[_0x1301ee(0x1f0)](_0xddf191[_0x1301ee(0x1f4)]());}(_0x116cd0);const _0x468a77=_0x116cd0[_0x434a8c(0x205)][_0x434a8c(0x1ef)],_0x421d61=this[_0x434a8c(0x1f6)][_0x434a8c(0x1fb)][_0x434a8c(0x200)](_0x434a8c(0x208));for(const _0x38da5c of _0x468a77[_0x434a8c(0x215)]())for(const _0x34debc of _0x38da5c[_0x434a8c(0x206)]())if(_0x34debc['is'](_0x434a8c(0x1ed))&&_0x421d61[_0x434a8c(0x203)](_0x34debc[_0x434a8c(0x1fe)]))return void(this[_0x434a8c(0x20a)]=!0x1);this[_0x434a8c(0x20a)]=!0x0;}[_0x4a9bdc(0x1ee)](_0x428600='',_0x1f36da='',_0x528664=_0x4a9bdc(0x201)){const _0x19e2e0=_0x4a9bdc;this[_0x19e2e0(0x1f6)][_0x19e2e0(0x1f3)][_0x19e2e0(0x200)](_0x59e314)[_0x19e2e0(0x20b)](_0x428600,_0x1f36da,_0x528664);}}function F(_0x12bf8c,_0x5bcec8){const _0xc230b3=_0x4a9bdc,_0x1a6eee=new Set();for(const _0x48217a of _0x12bf8c[_0xc230b3(0x1f5)]())(_0x5bcec8||!0x1===_0x48217a[_0xc230b3(0x216)])&&_0x1a6eee[_0xc230b3(0x204)](_0x48217a['id']);return Array[_0xc230b3(0x217)](_0x1a6eee);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x163960,_0x22beea,_0x538ba4){const t=_0x163960['t'];switch(_0x22beea){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',_0x538ba4);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x538ba4);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'},_0x538ba4);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 _0x22beea;}}
|
|
@@ -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(_0x45135f,_0x1a41fe){const _0x1e3dca=(0x0,_0x1a41fe['t'])('Other');return _0x45135f['length']?'groupId'in _0x45135f[0x0]?_0x45135f:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1e3dca,'order':0x1/0x0,'commands':_0x45135f}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1e3dca,'order':0x1/0x0,'commands':[]}];}
|