@ckeditor/ckeditor5-ai 45.1.0-alpha.5 → 45.1.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 _0x110566=_0x26a5;(function(_0x2dbad8,_0x3cba38){const _0x30b155=_0x26a5,_0x40907a=_0x2dbad8();while(!![]){try{const _0x44d44c=parseInt(_0x30b155(0x154))/0x1+-parseInt(_0x30b155(0x12c))/0x2+-parseInt(_0x30b155(0x15a))/0x3*(parseInt(_0x30b155(0x12f))/0x4)+parseInt(_0x30b155(0x159))/0x5*(parseInt(_0x30b155(0x158))/0x6)+parseInt(_0x30b155(0x141))/0x7*(-parseInt(_0x30b155(0x15e))/0x8)+parseInt(_0x30b155(0x136))/0x9+parseInt(_0x30b155(0x131))/0xa*(parseInt(_0x30b155(0x152))/0xb);if(_0x44d44c===_0x3cba38)break;else _0x40907a['push'](_0x40907a['shift']());}catch(_0xd73225){_0x40907a['push'](_0x40907a['shift']());}}}(_0x1f80,0xaf392));function _0x26a5(_0x3b9b06,_0x2d6df9){const _0x1f8032=_0x1f80();return _0x26a5=function(_0x26a51c,_0x2432b0){_0x26a51c=_0x26a51c-0x12a;let _0x4480ae=_0x1f8032[_0x26a51c];return _0x4480ae;},_0x26a5(_0x3b9b06,_0x2d6df9);}function _0x1f80(){const _0x8e58c5=['bind','window','6757586WMkOfU','resultsView','1402394XgICwL','render','fieldView','focusCycler','1404AeWupv','8815ycCjnn','3747VFsuXj','isEnabled','queryView','execute','4018424KsbyFQ','keystrokes','right','minRows','enter','add','submit','submitButtonView','uiLanguageDirection','2264556PgBLIJ','showHistoryButtonView','focus','1572SrCpzr','width','10WWbcIV','target','rtl','_createSubmitButton','maxRows','3725010xkFJuY','value','set','_createShowHistoryButton','locale','ck-ai-form__submit','left','fieldWrapperChildren','isOn','requestAnimationFrame','excludeScrollbarsAndBorders','7HtEeHC','update','filteredView','focusFirst','children','focusLast','Submit','focusableChildren','isVisible','ck-ai-form__toggle-history','isEmpty','style','fire','element','History'];_0x1f80=function(){return _0x8e58c5;};return _0x1f80();}import{Rect as _0x3e5f5c,global as _0x3f7a7f,isVisible as _0x2bc723}from'ckeditor5/src/utils.js';import{IconHistory as _0x2b2392,IconSubmit as _0x4aee4f}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x21ac20,ButtonView as _0x4adfd6}from'ckeditor5/src/ui.js';import{getTranslation as _0x4c69d9}from'../../utils/common-translations.js';export default class ct extends _0x21ac20{[_0x110566(0x12a)];[_0x110566(0x12d)];constructor(_0x1c3b53,_0x18d065){const _0x538005=_0x110566;super(_0x1c3b53,_0x18d065),this[_0x538005(0x15c)][_0x538005(0x156)][_0x538005(0x161)]=0x1,this[_0x538005(0x15c)][_0x538005(0x156)][_0x538005(0x135)]=0x3,this[_0x538005(0x12a)]=this[_0x538005(0x134)](),this[_0x538005(0x12d)]=this[_0x538005(0x139)](),this[_0x538005(0x148)][_0x538005(0x163)](this[_0x538005(0x12d)],0x1),this[_0x538005(0x148)][_0x538005(0x163)](this[_0x538005(0x12a)]);}[_0x110566(0x155)](){const _0x47ba2c=_0x110566;super[_0x47ba2c(0x155)](),this[_0x47ba2c(0x15c)][_0x47ba2c(0x13d)][_0x47ba2c(0x163)](this[_0x47ba2c(0x12d)]),this[_0x47ba2c(0x145)][_0x47ba2c(0x163)](this[_0x47ba2c(0x12a)]),this[_0x47ba2c(0x15f)][_0x47ba2c(0x138)](_0x47ba2c(0x162),(_0x51c312,_0x552842)=>{const _0xf26e1d=_0x47ba2c;_0x51c312[_0xf26e1d(0x132)]==this[_0xf26e1d(0x15c)][_0xf26e1d(0x156)][_0xf26e1d(0x14e)]&&(this[_0xf26e1d(0x164)](),_0x552842());});}[_0x110566(0x134)](){const _0x5080dc=_0x110566,_0x43d6f1=new _0x4adfd6(this[_0x5080dc(0x13a)]),_0x3eb3a7=this[_0x5080dc(0x13a)];return _0x43d6f1[_0x5080dc(0x138)]({'icon':_0x4aee4f,'label':_0x4c69d9(_0x3eb3a7,_0x5080dc(0x147)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5080dc(0x13b)}),_0x43d6f1['on'](_0x5080dc(0x15d),()=>{const _0x4fde5b=_0x5080dc;this[_0x4fde5b(0x164)]();}),_0x43d6f1[_0x5080dc(0x150)](_0x5080dc(0x15b))['to'](this[_0x5080dc(0x15c)][_0x5080dc(0x156)],_0x5080dc(0x14b),this,_0x5080dc(0x15b),(_0x1466e7,_0x55d055)=>!_0x1466e7&&_0x55d055),_0x43d6f1;}[_0x110566(0x139)](){const _0x449713=_0x110566,_0x12b702=new _0x4adfd6(this[_0x449713(0x13a)]),_0x738063=this[_0x449713(0x153)],_0x3298f5=this[_0x449713(0x13a)];_0x12b702[_0x449713(0x138)]({'label':_0x4c69d9(_0x3298f5,_0x449713(0x14f)),'withText':!0x1,'icon':_0x2b2392,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x449713(0x14a)}),_0x12b702[_0x449713(0x150)](_0x449713(0x13e))['to'](_0x738063,_0x449713(0x149)),_0x12b702[_0x449713(0x150)](_0x449713(0x15b))['to'](this,_0x449713(0x15b)),_0x12b702['on'](_0x449713(0x15d),()=>{const _0x4d6518=_0x449713;_0x738063[_0x4d6518(0x149)]=!_0x738063[_0x4d6518(0x149)],_0x738063[_0x4d6518(0x149)]?this[_0x4d6518(0x143)][_0x4d6518(0x12e)]():this[_0x4d6518(0x12e)]();});const _0x4b7bc7=()=>{const _0x430047=_0x449713;_0x3f7a7f[_0x430047(0x151)][_0x430047(0x13f)](()=>{const _0x416c6b=_0x430047;if(_0x2bc723(this[_0x416c6b(0x14e)])){const _0x24de14=new _0x3e5f5c(this[_0x416c6b(0x15c)][_0x416c6b(0x156)][_0x416c6b(0x14e)]),_0x4c0bee=_0x24de14[_0x416c6b(0x130)],_0x39b6b6=_0x416c6b(0x133)===_0x3298f5[_0x416c6b(0x12b)]?_0x416c6b(0x13c):_0x416c6b(0x160);_0x24de14[_0x416c6b(0x140)](),_0x12b702[_0x416c6b(0x14e)][_0x416c6b(0x14c)][_0x39b6b6]=_0x4c0bee-_0x24de14[_0x416c6b(0x130)]+0x1+'px';}});};return this[_0x449713(0x15c)][_0x449713(0x156)]['on'](_0x449713(0x142),_0x4b7bc7),this['on'](_0x449713(0x155),_0x4b7bc7),_0x12b702;}[_0x110566(0x164)](){const _0x404728=_0x110566,_0x31ee3f=this[_0x404728(0x15c)][_0x404728(0x156)][_0x404728(0x14e)][_0x404728(0x137)];this[_0x404728(0x14d)](_0x404728(0x164),_0x31ee3f);}[_0x110566(0x12e)](_0x3f3193){const _0x5e6a09=_0x110566;-0x1===_0x3f3193?this[_0x5e6a09(0x157)][_0x5e6a09(0x146)]():this[_0x5e6a09(0x157)][_0x5e6a09(0x144)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40a19e=_0x2a30;(function(_0x4c2089,_0x164898){const _0x514994=_0x2a30,_0x1fcf24=_0x4c2089();while(!![]){try{const _0x6b1098=parseInt(_0x514994(0x10a))/0x1*(-parseInt(_0x514994(0x10d))/0x2)+-parseInt(_0x514994(0xf7))/0x3*(-parseInt(_0x514994(0x110))/0x4)+parseInt(_0x514994(0xf6))/0x5*(parseInt(_0x514994(0xf3))/0x6)+parseInt(_0x514994(0x116))/0x7*(parseInt(_0x514994(0x10e))/0x8)+-parseInt(_0x514994(0x108))/0x9+parseInt(_0x514994(0x107))/0xa*(parseInt(_0x514994(0x111))/0xb)+parseInt(_0x514994(0x106))/0xc;if(_0x6b1098===_0x164898)break;else _0x1fcf24['push'](_0x1fcf24['shift']());}catch(_0x14efb2){_0x1fcf24['push'](_0x1fcf24['shift']());}}}(_0x3637,0xddc26));import{ToolbarView as _0x170159,ButtonView as _0x5866aa}from'ckeditor5/src/ui.js';function _0x3637(){const _0xe8dcf5=['Stop','label','bindTemplate','7027092GlesUU','15320Liiyjw','8041302BHzAsT','Insert\x20below','197144qbAqyg','extendTemplate','ck-hidden','10EEhEGz','1920CAWXlw','ck-button-action','1071416qbjYpW','55XIozSW','_createButton','addMany','replace','stopButton','13062cNBxpx','set','ck-ai-form__toolbar','items','8871474sDOCud','replaceButton','insert','5KqZTIz','3OZzaQV','isVisible','tryAgainButton','AI_','bind','_CONTENT','mainAction','insertButton','Try\x20again','locale','REPLACE','toUpperCase'];_0x3637=function(){return _0xe8dcf5;};return _0x3637();}function _0x2a30(_0x528410,_0x2ed2bb){const _0x36371e=_0x3637();return _0x2a30=function(_0x2a3006,_0x463f85){_0x2a3006=_0x2a3006-0xf3;let _0x3f4be3=_0x36371e[_0x2a3006];return _0x3f4be3;},_0x2a30(_0x528410,_0x2ed2bb);}import{getTranslation as _0x1e2037}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x40a19e(0x114),'INSERT':_0x40a19e(0xf5)};export default class lt extends _0x170159{constructor(_0x494d1e){const _0x3eb008=_0x40a19e;super(_0x494d1e),this[_0x3eb008(0x117)](_0x3eb008(0xf8),!0x1),this[_0x3eb008(0x117)](_0x3eb008(0xfd),AIFormToolbarViewMainActionLabel[_0x3eb008(0x101)]),this[_0x3eb008(0xf4)]=this[_0x3eb008(0x112)]('',_0x3eb008(0x10f)),this[_0x3eb008(0xf4)][_0x3eb008(0xfb)](_0x3eb008(0x104))['to'](this,_0x3eb008(0xfd),_0x59b303=>_0x1e2037(_0x494d1e,_0x3eb008(0xfa)+_0x59b303[_0x3eb008(0x102)]()+_0x3eb008(0xfc))),this[_0x3eb008(0xfe)]=this[_0x3eb008(0x112)](_0x1e2037(_0x494d1e,_0x3eb008(0x109))),this[_0x3eb008(0xf9)]=this[_0x3eb008(0x112)](_0x1e2037(_0x494d1e,_0x3eb008(0xff))),this[_0x3eb008(0x115)]=this[_0x3eb008(0x112)](_0x1e2037(_0x494d1e,_0x3eb008(0x103)));const _0x32b0dc=this[_0x3eb008(0x105)];this[_0x3eb008(0x10b)]({'attributes':{'class':[_0x3eb008(0x118),_0x32b0dc['if'](_0x3eb008(0xf8),_0x3eb008(0x10c),_0x1f45d5=>!_0x1f45d5)]}}),this[_0x3eb008(0x119)][_0x3eb008(0x113)]([this[_0x3eb008(0xf4)],this[_0x3eb008(0xfe)],this[_0x3eb008(0xf9)],this[_0x3eb008(0x115)]]);}[_0x40a19e(0x112)](_0x2c2a25,_0x2bb517){const _0x52309c=_0x40a19e,_0x458656=new _0x5866aa(this[_0x52309c(0x100)]);return _0x458656[_0x52309c(0x117)]({'label':_0x2c2a25,'class':_0x2bb517||'','isVisible':!0x0,'withText':!0x0}),_0x458656;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e52d2=_0x3bb0;(function(_0x2506a,_0x493900){const _0x5654e1=_0x3bb0,_0x3e7a68=_0x2506a();while(!![]){try{const _0xee0007=parseInt(_0x5654e1(0x1bb))/0x1*(-parseInt(_0x5654e1(0x1cf))/0x2)+parseInt(_0x5654e1(0x1c1))/0x3+-parseInt(_0x5654e1(0x1fb))/0x4*(parseInt(_0x5654e1(0x1ee))/0x5)+parseInt(_0x5654e1(0x1e3))/0x6+parseInt(_0x5654e1(0x1bd))/0x7+parseInt(_0x5654e1(0x1ed))/0x8*(-parseInt(_0x5654e1(0x1d2))/0x9)+-parseInt(_0x5654e1(0x1aa))/0xa*(-parseInt(_0x5654e1(0x1c0))/0xb);if(_0xee0007===_0x493900)break;else _0x3e7a68['push'](_0x3e7a68['shift']());}catch(_0x39fa00){_0x3e7a68['push'](_0x3e7a68['shift']());}}}(_0x2d27,0xb3745));import{FocusTracker as _0x55afc4,KeystrokeHandler as _0x286069}from'ckeditor5/src/utils.js';import{View as _0x5e1eef,FocusCycler as _0x53be2e,createLabeledTextarea as _0x36c434}from'ckeditor5/src/ui.js';import _0x547d00,{AIFormToolbarViewMainActionLabel as _0x352ecf}from'./aiformtoolbarview.js';import _0x2734b4 from'./aiformcontentarea.js';import _0x48b29a from'./aiformerrorview.js';import _0x1d071b from'./aiformpromptview.js';import _0x1392c4 from'./aihistorylistview.js';import _0x2e25fc from'./aihistorylistitemview.js';function _0x3bb0(_0xa3a5b5,_0x268b5a){const _0x2d27bf=_0x2d27();return _0x3bb0=function(_0x3bb05b,_0x1ccd09){_0x3bb05b=_0x3bb05b-0x1a6;let _0x1889d9=_0x2d27bf[_0x3bb05b];return _0x1889d9;},_0x3bb0(_0xa3a5b5,_0x268b5a);}import _0x46fb84 from'./prompthistory.js';function _0x2d27(){const _0x316102=['contentArea','bindTemplate','errorView','replaceButton','execute','tab','tryAgainEvent','ck-hidden','mainAction','bindTo','div','focusCycler','createCollection','1570200FnnbPH','fire','text','clearHistory','Ask\x20AI\x20to\x20edit\x20or\x20generate','promptView','insertButton','focusFirst','focus','reset','745912SHmrkt','10upTSUS','delegate','toolbar','prompt','chain','focusTracker','trim','ck-ai-form-content','insertContentBelow','AI_ERROR_FAILED','items','setTemplate','replaceContent','2897124ZCevzf','stopButton','element','bind','Ask\x20AI\x20to\x20improve\x20generated\x20text','1540nqZDTp','stopProcessing','focusLast','_promptHistory','isVisible','submit','startProcessing','isEnabled','ck-ai-form','_focusables','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','clear','handleError','render','REPLACE','isError','label','30501rCwlyF','_createToolbar','6807199gIEREj','shift\x20+\x20tab','listenTo','46442CsHtCg','3922593JUsbya','_createPromptView','fieldView','queryView','isProcessing','finishProcessing','_createHistoryView','copyButtonView','set','high','value','submitPrompt','historyGroupView','locale','60hgVoZB','search','Empty\x20history','9IPiKvD','add','keystrokes','tryAgainButton'];_0x2d27=function(){return _0x316102;};return _0x2d27();}import{getTranslation as _0x5655e8}from'../../utils/common-translations.js';import{escape as _0x40fa7c}from'es-toolkit/compat';export default class _ extends _0x5e1eef{[_0x3e52d2(0x1f3)];[_0x3e52d2(0x1d4)];[_0x3e52d2(0x1d6)];[_0x3e52d2(0x1f0)];[_0x3e52d2(0x1e8)];[_0x3e52d2(0x1d8)];[_0x3e52d2(0x1b3)];[_0x3e52d2(0x1e1)];[_0x3e52d2(0x1ad)];constructor(_0x3c788e,_0x4a21b4,_0x19dc71=''){const _0x5f4336=_0x3e52d2;super(_0x3c788e),this[_0x5f4336(0x1c9)](_0x5f4336(0x1b1),!0x0),this[_0x5f4336(0x1c9)](_0x5f4336(0x1c5),!0x1),this[_0x5f4336(0x1c9)](_0x5f4336(0x1f1),''),this[_0x5f4336(0x1c9)](_0x5f4336(0x1cb),''),this[_0x5f4336(0x1c9)](_0x5f4336(0x1b9),!0x1),this[_0x5f4336(0x1c9)](_0x5f4336(0x1de),_0x352ecf[_0x5f4336(0x1b8)]),this[_0x5f4336(0x1ad)]=new _0x46fb84(),this[_0x5f4336(0x1d8)]=new _0x48b29a(_0x3c788e),this[_0x5f4336(0x1d6)]=new _0x2734b4(_0x3c788e,_0x19dc71),this[_0x5f4336(0x1d6)][_0x5f4336(0x1a8)](_0x5f4336(0x1c5))['to'](this),this[_0x5f4336(0x1d6)][_0x5f4336(0x1a8)](_0x5f4336(0x1cb))['to'](this),this[_0x5f4336(0x1f0)]=this[_0x5f4336(0x1bc)](),this[_0x5f4336(0x1f0)][_0x5f4336(0x1a8)](_0x5f4336(0x1de))['to'](this),this[_0x5f4336(0x1e8)]=this[_0x5f4336(0x1c2)](),this[_0x5f4336(0x1f3)]=new _0x55afc4(),this[_0x5f4336(0x1d4)]=new _0x286069(),this[_0x5f4336(0x1b3)]=this[_0x5f4336(0x1e2)]([this[_0x5f4336(0x1d6)],this[_0x5f4336(0x1d6)][_0x5f4336(0x1c8)],this[_0x5f4336(0x1f0)],this[_0x5f4336(0x1e8)]]),this[_0x5f4336(0x1e1)]=new _0x53be2e({'focusables':this[_0x5f4336(0x1b3)],'focusTracker':this[_0x5f4336(0x1f3)],'keystrokeHandler':this[_0x5f4336(0x1d4)],'actions':{'focusPrevious':_0x5f4336(0x1be),'focusNext':_0x5f4336(0x1db)}}),this[_0x5f4336(0x1e1)][_0x5f4336(0x1f2)](this[_0x5f4336(0x1e8)][_0x5f4336(0x1e1)]),this[_0x5f4336(0x1e8)][_0x5f4336(0x1c4)][_0x5f4336(0x1c3)][_0x5f4336(0x1a8)](_0x5f4336(0x1cb))['to'](this,_0x5f4336(0x1f1));const _0x35b99f=this[_0x5f4336(0x1d7)];this[_0x5f4336(0x1f9)]({'tag':_0x5f4336(0x1e0),'attributes':{'class':['ck',_0x5f4336(0x1b2),_0x4a21b4],'tabindex':'-1'},'children':[{'tag':_0x5f4336(0x1e0),'attributes':{'class':['ck',_0x5f4336(0x1f5)]},'children':[{'tag':_0x5f4336(0x1e0),'attributes':{'class':[_0x35b99f['if'](_0x5f4336(0x1b9),_0x5f4336(0x1dd),_0x169660=>!_0x169660)]},'children':[this[_0x5f4336(0x1d8)]]},this[_0x5f4336(0x1d6)],this[_0x5f4336(0x1f0)],this[_0x5f4336(0x1e8)]]}]});}[_0x3e52d2(0x1b7)](){const _0x1f66c4=_0x3e52d2;super[_0x1f66c4(0x1b7)](),this[_0x1f66c4(0x1f3)][_0x1f66c4(0x1d3)](this[_0x1f66c4(0x1d6)][_0x1f66c4(0x1a7)]),this[_0x1f66c4(0x1f3)][_0x1f66c4(0x1d3)](this[_0x1f66c4(0x1d6)][_0x1f66c4(0x1c8)][_0x1f66c4(0x1a7)]),this[_0x1f66c4(0x1f3)][_0x1f66c4(0x1d3)](this[_0x1f66c4(0x1f0)][_0x1f66c4(0x1a7)]),this[_0x1f66c4(0x1f3)][_0x1f66c4(0x1d3)](this[_0x1f66c4(0x1e8)][_0x1f66c4(0x1a7)]),this[_0x1f66c4(0x1d4)][_0x1f66c4(0x1bf)](this[_0x1f66c4(0x1a7)]);}[_0x3e52d2(0x1eb)](_0x502588=0x1){const _0x558867=_0x3e52d2;-0x1===_0x502588?this[_0x558867(0x1e1)][_0x558867(0x1ac)]():this[_0x558867(0x1e1)][_0x558867(0x1ea)]();}[_0x3e52d2(0x1ec)](){const _0x43b14a=_0x3e52d2;this[_0x43b14a(0x1f1)]='',this[_0x43b14a(0x1cb)]='',this[_0x43b14a(0x1b9)]=!0x1,this[_0x43b14a(0x1e8)][_0x43b14a(0x1ec)](),this[_0x43b14a(0x1d6)][_0x43b14a(0x1ae)]=!0x1,this[_0x43b14a(0x1f0)][_0x43b14a(0x1ae)]=!0x1;}[_0x3e52d2(0x1c2)](){const _0x421193=_0x3e52d2,_0x46ecfa=this[_0x421193(0x1ce)],_0x472336=new _0x1d071b(_0x46ecfa,{'queryView':{'label':_0x5655e8(_0x46ecfa,_0x421193(0x1e7)),'creator':_0x36c434,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5655e8(_0x46ecfa,_0x421193(0x1d1)),'secondary':_0x5655e8(_0x46ecfa,_0x421193(0x1b4))}}},'filteredView':this[_0x421193(0x1c7)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x472336[_0x421193(0x1a8)](_0x421193(0x1b1))['to'](this,_0x421193(0x1b1),this,_0x421193(0x1c5),(_0x5f3f43,_0x4af00d)=>_0x5f3f43&&!_0x4af00d),this[_0x421193(0x1bf)](_0x472336,_0x421193(0x1af),(_0x2d360e,_0x46df69)=>{const _0x39704a=_0x421193;this[_0x39704a(0x1f1)]=_0x46df69;const _0x5405de=_0x40fa7c(_0x46df69);this[_0x39704a(0x1e4)](_0x39704a(0x1cc),_0x5405de),_0x46df69[_0x39704a(0x1f4)]()&&this[_0x39704a(0x1ad)][_0x39704a(0x1d3)]({'prompt':_0x5405de},0x0);},{'priority':_0x421193(0x1ca)}),_0x472336;}[_0x3e52d2(0x1c7)](){const _0x48d36d=_0x3e52d2,_0x337b62=new _0x1392c4(this[_0x48d36d(0x1ce)]);return _0x337b62[_0x48d36d(0x1cd)][_0x48d36d(0x1f8)][_0x48d36d(0x1df)](this[_0x48d36d(0x1ad)])['as'](_0x2e25fc),_0x337b62['on'](_0x48d36d(0x1e6),()=>{const _0xc3d0eb=_0x48d36d;this[_0xc3d0eb(0x1ad)][_0xc3d0eb(0x1b5)](),this[_0xc3d0eb(0x1e8)][_0xc3d0eb(0x1d0)](''),this[_0xc3d0eb(0x1e8)][_0xc3d0eb(0x1eb)]();}),_0x337b62;}[_0x3e52d2(0x1bc)](){const _0x1089cd=_0x3e52d2,_0x99e4cd=new _0x547d00(this[_0x1089cd(0x1ce)]);return _0x99e4cd[_0x1089cd(0x1d9)][_0x1089cd(0x1a8)](_0x1089cd(0x1b1))['to'](this,_0x1089cd(0x1b1),this,_0x1089cd(0x1c5),this,_0x1089cd(0x1cb),(_0xd59c2f,_0x4c1bee,_0x505c69)=>_0xd59c2f&&!_0x4c1bee&&!!_0x505c69),_0x99e4cd[_0x1089cd(0x1d9)][_0x1089cd(0x1ef)](_0x1089cd(0x1da))['to'](this,_0x1089cd(0x1fa)),_0x99e4cd[_0x1089cd(0x1e9)][_0x1089cd(0x1a8)](_0x1089cd(0x1b1))['to'](this,_0x1089cd(0x1b1),this,_0x1089cd(0x1c5),this,_0x1089cd(0x1cb),(_0x2a7a6a,_0x29bd5b,_0x35213e)=>_0x2a7a6a&&!_0x29bd5b&&!!_0x35213e),_0x99e4cd[_0x1089cd(0x1e9)][_0x1089cd(0x1ef)](_0x1089cd(0x1da))['to'](this,_0x1089cd(0x1f6)),_0x99e4cd[_0x1089cd(0x1d5)][_0x1089cd(0x1a8)](_0x1089cd(0x1b1))['to'](this,_0x1089cd(0x1b1),this,_0x1089cd(0x1c5),(_0x569d0f,_0x509e02)=>_0x569d0f&&!_0x509e02),_0x99e4cd[_0x1089cd(0x1d5)][_0x1089cd(0x1ef)](_0x1089cd(0x1da))['to'](this,_0x1089cd(0x1dc)),_0x99e4cd[_0x1089cd(0x1a6)][_0x1089cd(0x1a8)](_0x1089cd(0x1b1))['to'](this,_0x1089cd(0x1c5)),_0x99e4cd[_0x1089cd(0x1a6)][_0x1089cd(0x1ef)](_0x1089cd(0x1da))['to'](this,_0x1089cd(0x1ab)),_0x99e4cd;}[_0x3e52d2(0x1b0)](){const _0x2d0b9e=_0x3e52d2;this[_0x2d0b9e(0x1cb)]='',this[_0x2d0b9e(0x1b9)]=!0x1,this[_0x2d0b9e(0x1c5)]=!0x0,this[_0x2d0b9e(0x1d6)][_0x2d0b9e(0x1ae)]=!0x0,this[_0x2d0b9e(0x1f0)][_0x2d0b9e(0x1ae)]=!0x0,this[_0x2d0b9e(0x1d6)][_0x2d0b9e(0x1eb)]();}[_0x3e52d2(0x1c6)](){const _0x529c8b=_0x3e52d2,_0x5509a2=this[_0x529c8b(0x1ce)];this[_0x529c8b(0x1c5)]=!0x1,this[_0x529c8b(0x1f1)]='',this[_0x529c8b(0x1e8)][_0x529c8b(0x1ec)](),this[_0x529c8b(0x1cb)]&&(this[_0x529c8b(0x1e8)][_0x529c8b(0x1c4)][_0x529c8b(0x1ba)]=_0x5655e8(_0x5509a2,_0x529c8b(0x1a9)));}[_0x3e52d2(0x1b6)](_0x59ebe4){const _0x48b25a=_0x3e52d2,_0x212c33=this[_0x48b25a(0x1ce)];this[_0x48b25a(0x1c6)](),this[_0x48b25a(0x1b9)]=!0x0,this[_0x48b25a(0x1d8)][_0x48b25a(0x1e5)]=_0x59ebe4||_0x5655e8(_0x212c33,_0x48b25a(0x1f7)),this[_0x48b25a(0x1cb)]||(this[_0x48b25a(0x1d6)][_0x48b25a(0x1ae)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x32599b,_0x41ca8b){const _0x2b8bf5=_0xfdef,_0x1daaec=_0x32599b();while(!![]){try{const _0x45cd7e=parseInt(_0x2b8bf5(0xe0))/0x1*(parseInt(_0x2b8bf5(0xe6))/0x2)+-parseInt(_0x2b8bf5(0xe5))/0x3+parseInt(_0x2b8bf5(0xea))/0x4+parseInt(_0x2b8bf5(0xeb))/0x5+-parseInt(_0x2b8bf5(0xec))/0x6+-parseInt(_0x2b8bf5(0xe8))/0x7+parseInt(_0x2b8bf5(0xe3))/0x8*(-parseInt(_0x2b8bf5(0xe2))/0x9);if(_0x45cd7e===_0x41ca8b)break;else _0x1daaec['push'](_0x1daaec['shift']());}catch(_0x58630a){_0x1daaec['push'](_0x1daaec['shift']());}}}(_0x9930,0x9765e));function _0xfdef(_0x4f655c,_0x408eeb){const _0x9930f7=_0x9930();return _0xfdef=function(_0xfdef5c,_0x26a382){_0xfdef5c=_0xfdef5c-0xe0;let _0x1702f3=_0x9930f7[_0xfdef5c];return _0x1702f3;},_0xfdef(_0x4f655c,_0x408eeb);}import{ListItemView as _0x358317,ButtonView as _0x146761,ButtonLabelView as _0x4450b1}from'ckeditor5/src/ui.js';import{unescape as _0x1ca762}from'es-toolkit/compat';export default class bt extends _0x358317{constructor(_0x41cf07){const _0x565f4c=_0xfdef;super();const _0x2c8c3d=new _0x4450b1(),_0x77a972=new _0x146761(this[_0x565f4c(0xef)],_0x2c8c3d);this[_0x565f4c(0xee)][_0x565f4c(0xe1)](_0x77a972),_0x77a972[_0x565f4c(0xed)]({'label':_0x41cf07[_0x565f4c(0xe9)],'withText':!0x0}),_0x77a972['on'](_0x565f4c(0xe7),()=>{const _0x2659f8=_0x565f4c;this[_0x2659f8(0xe4)](_0x2659f8(0xe7),{'value':_0x1ca762(_0x41cf07[_0x2659f8(0xe9)])});});}}function _0x9930(){const _0xacab6f=['125914YlRvsP','execute','5219746vcAhGI','prompt','2414680mnrYHT','4906175WhrcNw','4723098BRGyCc','set','children','locale','19JgVVwJ','add','9sadXYJ','980264ehmUCY','fire','1516704DLMRJY'];_0x9930=function(){return _0xacab6f;};return _0x9930();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53ab4f=_0x3c98;(function(_0x44a8ae,_0x286c2a){const _0x1589fb=_0x3c98,_0x3d21c6=_0x44a8ae();while(!![]){try{const _0x18edd2=-parseInt(_0x1589fb(0x8b))/0x1+-parseInt(_0x1589fb(0x8d))/0x2*(-parseInt(_0x1589fb(0x92))/0x3)+-parseInt(_0x1589fb(0x95))/0x4+-parseInt(_0x1589fb(0x89))/0x5+parseInt(_0x1589fb(0x9b))/0x6*(-parseInt(_0x1589fb(0x93))/0x7)+parseInt(_0x1589fb(0x98))/0x8+parseInt(_0x1589fb(0x8f))/0x9*(parseInt(_0x1589fb(0x8c))/0xa);if(_0x18edd2===_0x286c2a)break;else _0x3d21c6['push'](_0x3d21c6['shift']());}catch(_0x24df71){_0x3d21c6['push'](_0x3d21c6['shift']());}}}(_0x418d,0x29700));import{ListView as _0x47fab7,ListItemGroupView as _0x546192,ButtonView as _0x49b318}from'ckeditor5/src/ui.js';import{getTranslation as _0xeaf01b}from'../../utils/common-translations.js';function _0x3c98(_0x48d285,_0x5f555b){const _0x418d06=_0x418d();return _0x3c98=function(_0x3c988d,_0x176b5c){_0x3c988d=_0x3c988d-0x81;let _0x23e399=_0x418d06[_0x3c988d];return _0x23e399;},_0x3c98(_0x48d285,_0x5f555b);}export default class ft extends _0x47fab7{[_0x53ab4f(0x87)];[_0x53ab4f(0x82)];constructor(_0x3c10c9){const _0x24d4f1=_0x53ab4f;super(_0x3c10c9),this[_0x24d4f1(0x82)]=this[_0x24d4f1(0x8a)](),this[_0x24d4f1(0x87)]=new _0x546192(),this[_0x24d4f1(0x87)][_0x24d4f1(0x81)][_0x24d4f1(0x85)](this[_0x24d4f1(0x82)],0x1),this[_0x24d4f1(0x87)][_0x24d4f1(0x8e)]=_0xeaf01b(_0x3c10c9,_0x24d4f1(0x84)),this[_0x24d4f1(0x87)][_0x24d4f1(0x86)][_0x24d4f1(0x99)](_0x24d4f1(0x96))['to'](this),this[_0x24d4f1(0x86)][_0x24d4f1(0x85)](this[_0x24d4f1(0x87)]);}[_0x53ab4f(0x9a)](){const _0x4132b1=_0x53ab4f;let _0x1f9d6b=0x0;for(const _0x5dac04 of this[_0x4132b1(0x86)])_0x1f9d6b+=_0x5dac04[_0x4132b1(0x86)][_0x4132b1(0x91)];return{'resultsCount':_0x1f9d6b,'totalItemsCount':_0x1f9d6b};}[_0x53ab4f(0x8a)](){const _0x391803=_0x53ab4f,_0x44b858=this[_0x391803(0x88)],_0x1a193c=new _0x49b318(this[_0x391803(0x88)]);return _0x1a193c[_0x391803(0x83)]({'label':'('+_0xeaf01b(_0x44b858,_0x391803(0x94))+')','withText':!0x0}),_0x1a193c['on'](_0x391803(0x96),()=>this[_0x391803(0x90)](_0x391803(0x97))),_0x1a193c;}}function _0x418d(){const _0x17f38a=['27081wPDviB','fire','length','6ObMQrj','127554ywhQjY','Clear','401532jdIvuF','execute','clearHistory','1794704CPTOce','delegate','filter','54GphvPY','children','clearHistoryButton','set','Prompt\x20history','add','items','historyGroupView','locale','1628470XWPZYn','_createClearHistoryButton','81220GdbyLO','2030VxTQPZ','5858hzhElW','label'];_0x418d=function(){return _0x17f38a;};return _0x418d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ddeb7=_0x2b3a;function _0x1971(){const _0x21cc44=['map','toLowerCase','last','_saveToSessionStorage','84MnPdhY','addMany','1413982hqjGVA','4269568pFblNr','setItem','_loadFromSessionStorage','remove','CKEditor/AIFormView/PromptHistory','726440HdOsiY','stringify','trim','prompt','add','getItem','18Kyhhhv','length','1539816SiNKRn','314055ljRAWe','9194493OLoWVm','parse','4533363YsTyvw','2kRiBAx'];_0x1971=function(){return _0x21cc44;};return _0x1971();}(function(_0x54c1ce,_0x291d48){const _0x269e48=_0x2b3a,_0x38008c=_0x54c1ce();while(!![]){try{const _0x3a9fc4=-parseInt(_0x269e48(0xd1))/0x1+-parseInt(_0x269e48(0xca))/0x2*(parseInt(_0x269e48(0xc9))/0x3)+parseInt(_0x269e48(0xd2))/0x4+parseInt(_0x269e48(0xc6))/0x5*(parseInt(_0x269e48(0xcf))/0x6)+parseInt(_0x269e48(0xc7))/0x7+parseInt(_0x269e48(0xc5))/0x8*(parseInt(_0x269e48(0xc3))/0x9)+parseInt(_0x269e48(0xd7))/0xa;if(_0x3a9fc4===_0x291d48)break;else _0x38008c['push'](_0x38008c['shift']());}catch(_0xa35a23){_0x38008c['push'](_0x38008c['shift']());}}}(_0x1971,0xc18a4));import{Collection as _0x4bc9fa}from'ckeditor5/src/utils.js';const ts=_0x4ddeb7(0xd6);export default class wt extends _0x4bc9fa{constructor(){const _0x5cfac1=_0x4ddeb7;super(),this[_0x5cfac1(0xd4)](),this['on'](_0x5cfac1(0xc1),(_0x44b708,_0x3a94e1)=>{const _0x47bffa=_0x5cfac1,_0x3d5c30=os(_0x3a94e1[_0x47bffa(0xc0)]);for(const _0x377490 of this)if(_0x377490!=_0x3a94e1&&os(_0x377490[_0x47bffa(0xc0)])===_0x3d5c30){this[_0x47bffa(0xd5)](_0x377490);break;}this[_0x47bffa(0xc4)]>0x14&&this[_0x47bffa(0xd5)](this[_0x47bffa(0xcd)]),this[_0x47bffa(0xce)]();}),this['on'](_0x5cfac1(0xd5),()=>{const _0x5cebc6=_0x5cfac1;this[_0x5cebc6(0xce)]();});}[_0x4ddeb7(0xd4)](){const _0x114962=_0x4ddeb7,_0x8f4300=sessionStorage[_0x114962(0xc2)](ts)||'[]';this[_0x114962(0xd0)](JSON[_0x114962(0xc8)](_0x8f4300));}[_0x4ddeb7(0xce)](){const _0x318314=_0x4ddeb7;sessionStorage[_0x318314(0xd3)](ts,JSON[_0x318314(0xd8)](this[_0x318314(0xcb)](_0x5af99e=>_0x5af99e)));}}function _0x2b3a(_0x38803d,_0x5590b7){const _0x197126=_0x1971();return _0x2b3a=function(_0x2b3ab6,_0x108118){_0x2b3ab6=_0x2b3ab6-0xc0;let _0x581f25=_0x197126[_0x2b3ab6];return _0x581f25;},_0x2b3a(_0x38803d,_0x5590b7);}function os(_0x3c9dad){const _0x4ded69=_0x4ddeb7;return _0x3c9dad[_0x4ded69(0xcc)]()[_0x4ded69(0xd9)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ce201=_0x53cf;(function(_0x3c5e8e,_0x826bf6){const _0x293f77=_0x53cf,_0x53ff02=_0x3c5e8e();while(!![]){try{const _0x2d7c27=parseInt(_0x293f77(0x123))/0x1+-parseInt(_0x293f77(0x10c))/0x2*(parseInt(_0x293f77(0x105))/0x3)+parseInt(_0x293f77(0x113))/0x4+parseInt(_0x293f77(0x130))/0x5+-parseInt(_0x293f77(0x120))/0x6*(-parseInt(_0x293f77(0x126))/0x7)+-parseInt(_0x293f77(0x11f))/0x8+-parseInt(_0x293f77(0x11b))/0x9*(parseInt(_0x293f77(0x129))/0xa);if(_0x2d7c27===_0x826bf6)break;else _0x53ff02['push'](_0x53ff02['shift']());}catch(_0x300b0f){_0x53ff02['push'](_0x53ff02['shift']());}}}(_0x2bf6,0x70879));import{Command as _0x56398c}from'ckeditor5/src/core.js';function _0x53cf(_0x85536f,_0x4994e9){const _0x2bf67a=_0x2bf6();return _0x53cf=function(_0x53cff3,_0x59841d){_0x53cff3=_0x53cff3-0x105;let _0x3d523b=_0x2bf67a[_0x53cff3];return _0x3d523b;},_0x53cf(_0x85536f,_0x4994e9);}import _0x304fda from'../aiassistantui.js';export default class j extends _0x56398c{[_0x1ce201(0x10b)];constructor(_0x392d9a,_0x5d521){const _0x1cb113=_0x1ce201;super(_0x392d9a),this[_0x1cb113(0x10b)]=_0x5d521,this[_0x1cb113(0x12a)](_0x1cb113(0x12e),[]),this['on'](_0x1cb113(0x121),(_0x3e6b21,_0xdc9193,_0x36a713)=>{const _0x5680c8=_0x1cb113;this[_0x5680c8(0x12c)]&&(this[_0x5680c8(0x12e)]=G(this[_0x5680c8(0x10b)],_0x36a713));}),this[_0x1cb113(0x12a)](_0x1cb113(0x11a),!0x1),this['on'](_0x1cb113(0x114),(_0x247952,_0x3fc7e0,_0xb1c7dd)=>{const _0x52a73f=_0x1cb113;this[_0x52a73f(0x12e)]=_0xb1c7dd?G(this[_0x52a73f(0x10b)],this[_0x52a73f(0x11a)]):[];});}[_0x1ce201(0x118)](){const _0x1fb96f=_0x1ce201,_0x3d8aae=this[_0x1fb96f(0x10e)][_0x1fb96f(0x122)];this[_0x1fb96f(0x11a)]=function(_0x2abace){const _0x42e09a=_0x1fb96f,_0x36d456=_0x2abace[_0x42e09a(0x10f)][_0x42e09a(0x125)];return _0x36d456[_0x42e09a(0x11d)]?0x0!==[..._0x36d456[_0x42e09a(0x119)]()][_0x42e09a(0x12b)]&&![..._0x36d456[_0x42e09a(0x119)]()][0x0][_0x42e09a(0x128)]:!!_0x2abace[_0x42e09a(0x106)](_0x36d456[_0x42e09a(0x110)]());}(_0x3d8aae);const _0x1c929e=_0x3d8aae[_0x1fb96f(0x10f)][_0x1fb96f(0x125)],_0x3bb9e2=this[_0x1fb96f(0x10e)][_0x1fb96f(0x10d)][_0x1fb96f(0x10a)](_0x1fb96f(0x127));for(const _0x248c3a of _0x1c929e[_0x1fb96f(0x111)]())for(const _0x59ecce of _0x248c3a[_0x1fb96f(0x115)]())if(_0x59ecce['is'](_0x1fb96f(0x12f))&&_0x3bb9e2[_0x1fb96f(0x112)](_0x59ecce[_0x1fb96f(0x117)]))return void(this[_0x1fb96f(0x12c)]=!0x1);this[_0x1fb96f(0x12c)]=!0x0;}[_0x1ce201(0x109)](_0x184c77='',_0x2eab1b='',_0x538c7e=_0x1ce201(0x12d)){const _0x1c7d9a=_0x1ce201;this[_0x1c7d9a(0x10e)][_0x1c7d9a(0x124)][_0x1c7d9a(0x10a)](_0x304fda)[_0x1c7d9a(0x11e)](_0x184c77,_0x2eab1b,_0x538c7e);}}function _0x2bf6(){const _0x42be22=['set','length','isEnabled','custom','enabledCommandsIds','element','1496635LuhKPG','57gRTmEe','hasContent','values','from','execute','get','_commandDefinitions','8202LqvcPj','config','editor','document','getFirstRange','getRanges','includes','3326300IxjXdf','change:isEnabled','getItems','add','name','refresh','getSelectedBlocks','_hasContext','11794932RfWmtq','requiresContent','isCollapsed','showUI','2904400bUmMCt','18jxANLO','change:_hasContext','model','532305SOdYIV','plugins','selection','1281539uqCTqs','ai.aiAssistant.disabledElements','isEmpty','10ojQNSP'];_0x2bf6=function(){return _0x42be22;};return _0x2bf6();}function G(_0x2e8076,_0x7a46f8){const _0x2acdb1=_0x1ce201,_0x14100a=new Set();for(const _0x2527f0 of _0x2e8076[_0x2acdb1(0x107)]())(_0x7a46f8||!0x1===_0x2527f0[_0x2acdb1(0x11c)])&&_0x14100a[_0x2acdb1(0x116)](_0x2527f0['id']);return Array[_0x2acdb1(0x108)](_0x14100a);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x4f296a,_0x105bc7,_0x34a891){const t=_0x4f296a['t'];switch(_0x105bc7){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',_0x34a891);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x34a891);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'},_0x34a891);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 _0x105bc7;}}
|
|
@@ -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(_0x58c7ec,_0x26dac8){const _0x52dbef=(0x0,_0x26dac8['t'])('Other');return _0x58c7ec['length']?'groupId'in _0x58c7ec[0x0]?_0x58c7ec:[{'groupId':'_ungrouppedCommands','groupLabel':_0x52dbef,'order':0x1/0x0,'commands':_0x58c7ec}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x52dbef,'order':0x1/0x0,'commands':[]}];}
|