@ckeditor/ckeditor5-ai 43.1.0-alpha.5 → 43.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/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.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/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/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/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/ko.js +1 -1
- package/dist/translations/ko.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/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/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/sk.js +1 -1
- package/dist/translations/sk.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/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 +8 -8
- 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/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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28493e=_0x2ab2;(function(_0x511ada,_0x5f57be){const _0x331a65=_0x2ab2,_0x272c13=_0x511ada();while(!![]){try{const _0x28c9df=-parseInt(_0x331a65(0x9f))/0x1+-parseInt(_0x331a65(0x90))/0x2*(parseInt(_0x331a65(0x9c))/0x3)+parseInt(_0x331a65(0xcb))/0x4+parseInt(_0x331a65(0xd4))/0x5*(parseInt(_0x331a65(0x87))/0x6)+-parseInt(_0x331a65(0xb0))/0x7+-parseInt(_0x331a65(0x9a))/0x8+parseInt(_0x331a65(0x92))/0x9;if(_0x28c9df===_0x5f57be)break;else _0x272c13['push'](_0x272c13['shift']());}catch(_0x2c1550){_0x272c13['push'](_0x272c13['shift']());}}}(_0x5c00,0x8dc49));function _0x5c00(){const _0x57ad28=['mousedown','2144328QtNWll','body','contentFieldView','.ck-ai-form__loader','set','setTemplate','text/html','position','lastElementChild','695lEXXKe','clipboard','ClipboardItem','\x20ck-ai-form__copy-button--copied','style','change:value','write','execCommand','27924HAfrnU','isProcessing','createElement','change:isProcessing','setContent','ck-hidden','loaderView','scrollHeight','ck-ai-form__copy-button','3130Iqdnxi','Copy','19988874PdqMhY','scrollTo','firstElementChild','ck-reset_all-excluded','appendLoader','innerHTML','ck-ai-form__content-field','setEndBefore','3401144extEev','wheel','1611YTZzyJ','execute','value','840860yqNYEx','ck-ai-form__copy-button-wrapper','removeAllRanges','ck-ai-form__content-area','AI\x20is\x20writing...','<span>]</span>','locale','render','remove','createRange','ck-ai-form__content-area--processing','copyButtonView','_createCopyButton','addRange','getSelection','_copyHTMLToClipboard','ck-content','5018195uxUqrM','bind','bindTemplate','element','copy','left','ck-ai-form__loader','textContent','<span>[</span>','_createLoader','check','isEnabled','isVisible','class','setStartAfter','div','ck-ai-form__content-area-wrapper','smooth','querySelector','focus','absolute','text/plain','icon','listenTo','appendChild','-9999px'];_0x5c00=function(){return _0x57ad28;};return _0x5c00();}function _0x2ab2(_0x21e58b,_0x531db6){const _0x5c0077=_0x5c00();return _0x2ab2=function(_0x2ab24b,_0x1b9217){_0x2ab24b=_0x2ab24b-0x81;let _0x1a52c9=_0x5c0077[_0x2ab24b];return _0x1a52c9;},_0x2ab2(_0x21e58b,_0x531db6);}import{global as _0x27e490}from'ckeditor5/src/utils.js';import{View as _0x1e7e70,ButtonView as _0x4b7c91,SpinnerView as _0x348ab5}from'ckeditor5/src/ui.js';import _0x19ddd9 from'../../../theme/icons/copy.svg';import{getTranslation as _0x487180}from'../../utils/common-translations.js';import{icons as _0x5cab34}from'ckeditor5/src/core.js';export default class K extends _0x1e7e70{constructor(_0x553443,_0x34c576=''){const _0x4141e6=_0x2ab2;super(_0x553443),this[_0x4141e6(0xcf)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x39d739=this[_0x4141e6(0xb2)];this[_0x4141e6(0xcd)]=new ContentFieldView(_0x553443,_0x34c576),this[_0x4141e6(0xaa)]=this[_0x4141e6(0xab)](),this[_0x4141e6(0xd0)]({'tag':_0x4141e6(0xbf),'attributes':{'class':['ck',_0x4141e6(0xc0),_0x39d739['if'](_0x4141e6(0xbc),_0x4141e6(0x8c),_0x81aada=>!_0x81aada)],'tabindex':'-1'},'children':[{'tag':_0x4141e6(0xbf),'attributes':{'class':['ck',_0x4141e6(0xa2),_0x39d739['if'](_0x4141e6(0x88),_0x4141e6(0xa9))]},'children':[this[_0x4141e6(0xcd)],{'tag':_0x4141e6(0xbf),'attributes':{'class':['ck',_0x4141e6(0xa0)]},'children':[this[_0x4141e6(0xaa)]]}]}]});}[_0x28493e(0xa6)](){const _0x54a3a0=_0x28493e;super[_0x54a3a0(0xa6)](),this[_0x54a3a0(0x9e)]&&this[_0x54a3a0(0xcd)][_0x54a3a0(0x8b)](this[_0x54a3a0(0x9e)]);let _0x18260b=!0x1;this['on'](_0x54a3a0(0x84),(_0x2f042e,_0x26dc3a,_0x206f96)=>{const _0xa8543c=_0x54a3a0,_0x34b322=!this[_0xa8543c(0xcd)][_0xa8543c(0xb3)][_0xa8543c(0xc2)](_0xa8543c(0xce));this[_0xa8543c(0xcd)][_0xa8543c(0x8b)](_0x206f96),this[_0xa8543c(0x88)]&&_0x34b322&&!_0x18260b&&this[_0xa8543c(0xb3)][_0xa8543c(0x93)]({'top':this[_0xa8543c(0xb3)][_0xa8543c(0x8e)],'behavior':_0xa8543c(0xc1)});}),this['on'](_0x54a3a0(0x8a),(_0x4c83ad,_0x5e4e8c,_0x9ec14d)=>{const _0x53dbd1=_0x54a3a0;_0x18260b=!0x1,_0x9ec14d?(this[_0x53dbd1(0x9e)]=null,this[_0x53dbd1(0xcd)][_0x53dbd1(0x96)]()):this[_0x53dbd1(0x9e)]||this[_0x53dbd1(0xcd)][_0x53dbd1(0x8b)]('');}),this[_0x54a3a0(0xc7)](this[_0x54a3a0(0xb3)],_0x54a3a0(0x9b),()=>{_0x18260b=!0x0;}),this[_0x54a3a0(0xc7)](this[_0x54a3a0(0xb3)],_0x54a3a0(0xca),()=>{_0x18260b=!0x0;});}[_0x28493e(0xc3)](){const _0x464cfe=_0x28493e;this[_0x464cfe(0xb3)][_0x464cfe(0xc3)]();}[_0x28493e(0xab)](){const _0x1868ee=_0x28493e,_0x322ec5=this[_0x1868ee(0xa5)],_0x1dfb87=new _0x4b7c91(this[_0x1868ee(0xa5)]),_0x3eb46a=_0x1868ee(0x8f);return _0x1dfb87[_0x1868ee(0xcf)]({'label':_0x487180(_0x322ec5,_0x1868ee(0x91)),'icon':_0x19ddd9,'class':_0x3eb46a,'tooltip':!0x0}),_0x1dfb87[_0x1868ee(0xb1)](_0x1868ee(0xbc))['to'](this,_0x1868ee(0x9e),_0x2f03c7=>!!_0x2f03c7),_0x1dfb87[_0x1868ee(0xb1)](_0x1868ee(0xbb))['to'](this,_0x1868ee(0x88),_0x5a3f76=>!_0x5a3f76),_0x1dfb87['on'](_0x1868ee(0x9d),()=>{const _0x27df10=_0x1868ee;this[_0x27df10(0xae)](this[_0x27df10(0xcd)][_0x27df10(0xb3)]),_0x1dfb87[_0x27df10(0xc6)]=_0x5cab34[_0x27df10(0xba)],_0x1dfb87[_0x27df10(0xbd)]=_0x3eb46a+_0x27df10(0x82),this[_0x27df10(0xc3)](),setTimeout(()=>{const _0x42c421=_0x27df10;_0x1dfb87[_0x42c421(0xc6)]=_0x19ddd9,_0x1dfb87[_0x42c421(0xbd)]=_0x3eb46a;},0x3e8);}),_0x1dfb87;}[_0x28493e(0xae)](_0xac3b5e){const _0x4015d5=_0x28493e,{window:_0x4247e0,document:_0x440e2d}=_0x27e490;if(_0x4247e0[_0x4015d5(0x81)]){const {Blob:_0x2555cc,ClipboardItem:_0x1eeefd}=_0x4247e0,_0x45e693=[new _0x1eeefd({'text/html':new _0x2555cc([_0xac3b5e[_0x4015d5(0x97)]],{'type':_0x4015d5(0xd1)}),'text/plain':new _0x2555cc([_0xac3b5e[_0x4015d5(0xb7)]||''],{'type':_0x4015d5(0xc5)})})];navigator[_0x4015d5(0xd5)][_0x4015d5(0x85)](_0x45e693);}else{const _0x35fbf9=_0x440e2d[_0x4015d5(0x89)](_0x4015d5(0xbf));_0x35fbf9[_0x4015d5(0x83)][_0x4015d5(0xd2)]=_0x4015d5(0xc4),_0x35fbf9[_0x4015d5(0x83)][_0x4015d5(0xb5)]=_0x4015d5(0xc9),_0x35fbf9[_0x4015d5(0x97)]=_0x4015d5(0xb8)+_0xac3b5e[_0x4015d5(0x97)]+_0x4015d5(0xa4),_0x440e2d[_0x4015d5(0xcc)][_0x4015d5(0xc8)](_0x35fbf9);const _0x264cae=_0x440e2d[_0x4015d5(0xa8)]();_0x264cae[_0x4015d5(0xbe)](_0x35fbf9[_0x4015d5(0x94)]),_0x264cae[_0x4015d5(0x99)](_0x35fbf9[_0x4015d5(0xd3)]);const _0x2da5f1=_0x4247e0[_0x4015d5(0xad)]();_0x2da5f1[_0x4015d5(0xa1)](),_0x2da5f1[_0x4015d5(0xac)](_0x264cae),_0x440e2d[_0x4015d5(0x86)](_0x4015d5(0xb4)),_0x35fbf9[_0x4015d5(0xa7)]();}}}export class ContentFieldView extends _0x1e7e70{constructor(_0x892a51,_0x66f718=''){const _0x595535=_0x28493e;super(_0x892a51),this[_0x595535(0x8d)]=this[_0x595535(0xb9)](),this[_0x595535(0xd0)]({'tag':_0x595535(0xbf),'attributes':{'class':['ck',_0x595535(0xaf),_0x66f718,_0x595535(0x95),_0x595535(0x98)]}});}[_0x28493e(0x8b)](_0x15b8da){const _0x565845=_0x28493e;this[_0x565845(0xb3)][_0x565845(0x97)]=_0x15b8da;}[_0x28493e(0x96)](){const _0x175845=_0x28493e;this[_0x175845(0xb3)][_0x175845(0xc8)](this[_0x175845(0x8d)][_0x175845(0xb3)]);}[_0x28493e(0xb9)](){const _0x42b43d=_0x28493e,_0x54d82f=new _0x1e7e70(),_0x2832d2=this[_0x42b43d(0xa5)],_0x220b97=new _0x348ab5();return _0x220b97[_0x42b43d(0xbc)]=!0x0,_0x54d82f[_0x42b43d(0xd0)]({'tag':_0x42b43d(0xbf),'attributes':{'class':['ck',_0x42b43d(0xb6)]},'children':[_0x220b97,{'text':_0x487180(_0x2832d2,_0x42b43d(0xa3))}]}),_0x54d82f[_0x42b43d(0xa6)](),_0x54d82f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x528cd8,_0x697f84){const _0x164b4a=_0x1ef4,_0x14183d=_0x528cd8();while(!![]){try{const _0x52d9ff=-parseInt(_0x164b4a(0x101))/0x1+parseInt(_0x164b4a(0x107))/0x2*(parseInt(_0x164b4a(0x102))/0x3)+parseInt(_0x164b4a(0x100))/0x4*(-parseInt(_0x164b4a(0xfd))/0x5)+-parseInt(_0x164b4a(0xfc))/0x6*(-parseInt(_0x164b4a(0x109))/0x7)+-parseInt(_0x164b4a(0xfb))/0x8+parseInt(_0x164b4a(0x105))/0x9+-parseInt(_0x164b4a(0xfa))/0xa*(-parseInt(_0x164b4a(0x108))/0xb);if(_0x52d9ff===_0x697f84)break;else _0x14183d['push'](_0x14183d['shift']());}catch(_0x575c6b){_0x14183d['push'](_0x14183d['shift']());}}}(_0x43f8,0x3fc92));import{View as _0x3855d4,IconView as _0x32dd55}from'ckeditor5/src/ui.js';import _0x1d5d57 from'../../../theme/icons/error.svg';function _0x1ef4(_0x4b14eb,_0x5bb517){const _0x43f875=_0x43f8();return _0x1ef4=function(_0x1ef474,_0x54e617){_0x1ef474=_0x1ef474-0xfa;let _0x18815a=_0x43f875[_0x1ef474];return _0x18815a;},_0x1ef4(_0x4b14eb,_0x5bb517);}export default class Y extends _0x3855d4{constructor(_0x50fd34,_0x19f45b=''){const _0x17e3be=_0x1ef4;super(_0x50fd34);const _0x20eb00=new _0x32dd55(),_0x322c73=this[_0x17e3be(0xff)];this[_0x17e3be(0xfe)](_0x17e3be(0x10a),_0x19f45b),_0x20eb00[_0x17e3be(0x104)]=_0x1d5d57,this[_0x17e3be(0x103)]({'tag':_0x17e3be(0x106),'attributes':{'class':['ck',_0x17e3be(0x10b)]},'children':[_0x20eb00,{'text':_0x322c73['to'](_0x17e3be(0x10a))}]});}}function _0x43f8(){const _0xa1fee5=['550mzSoZx','set','bindTemplate','10712AJjxKc','152155ckKIlp','174abhmuf','setTemplate','content','3504546gGCntS','div','4280pJzcSH','22DEXOQN','21BPyRra','text','ck-ai-form__error','1313630fmeQPO','2688128CrXtWg','535554dMQkLr'];_0x43f8=function(){return _0xa1fee5;};return _0x43f8();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1019(_0x49e0e8,_0x138548){const _0x19ba41=_0x19ba();return _0x1019=function(_0x101995,_0x294ecf){_0x101995=_0x101995-0x135;let _0x1f25a1=_0x19ba41[_0x101995];return _0x1f25a1;},_0x1019(_0x49e0e8,_0x138548);}const _0x2f8942=_0x1019;(function(_0x2c03a4,_0xc2f53c){const _0x22b9e9=_0x1019,_0x146092=_0x2c03a4();while(!![]){try{const _0x1333af=-parseInt(_0x22b9e9(0x164))/0x1*(-parseInt(_0x22b9e9(0x13e))/0x2)+parseInt(_0x22b9e9(0x14a))/0x3+parseInt(_0x22b9e9(0x161))/0x4*(parseInt(_0x22b9e9(0x14d))/0x5)+parseInt(_0x22b9e9(0x158))/0x6*(parseInt(_0x22b9e9(0x160))/0x7)+-parseInt(_0x22b9e9(0x167))/0x8+parseInt(_0x22b9e9(0x15b))/0x9+parseInt(_0x22b9e9(0x135))/0xa*(-parseInt(_0x22b9e9(0x14f))/0xb);if(_0x1333af===_0xc2f53c)break;else _0x146092['push'](_0x146092['shift']());}catch(_0x38281f){_0x146092['push'](_0x146092['shift']());}}}(_0x19ba,0x42df8));import{Rect as _0x3d2fd7,global as _0x59a5d5,isVisible as _0xdc6cc9}from'ckeditor5/src/utils.js';function _0x19ba(){const _0x1d4fb1=['ck-ai-form__toggle-history','focus','ck-ai-form__submit','maxRows','submitButtonView','value','uiLanguageDirection','keystrokes','6yOOHCY','fieldView','_createSubmitButton','isEnabled','element','execute','isOn','right','requestAnimationFrame','rtl','fieldWrapperChildren','children','325569FdyYUN','queryView','update','2363095lXoVxQ','minRows','12969usvfKy','focusableChildren','locale','isVisible','width','History','Submit','window','filteredView','204864FYTvRo','style','left','1582884yGAdXG','fire','showHistoryButtonView','isEmpty','excludeScrollbarsAndBorders','14idlYzy','4AYWKua','focusLast','render','125641rTlWoW','focusCycler','resultsView','1673016BJJjLG','enter','submit','_createShowHistoryButton','focusFirst','bind','set','add','target','history','6100wInkYr'];_0x19ba=function(){return _0x1d4fb1;};return _0x19ba();}import{AutocompleteView as _0x10d33b,ButtonView as _0x1a6376}from'ckeditor5/src/ui.js';import{icons as _0x573b12}from'ckeditor5/src/core.js';import{getTranslation as _0x268eb2}from'../../utils/common-translations.js';import _0x47ff24 from'../../../theme/icons/submit.svg';export default class ot extends _0x10d33b{constructor(_0x213c82,_0x357d1e){const _0x5234db=_0x1019;super(_0x213c82,_0x357d1e),this[_0x5234db(0x14b)][_0x5234db(0x13f)][_0x5234db(0x14e)]=0x1,this[_0x5234db(0x14b)][_0x5234db(0x13f)][_0x5234db(0x139)]=0x3,this[_0x5234db(0x13a)]=this[_0x5234db(0x140)](),this[_0x5234db(0x15d)]=this[_0x5234db(0x16a)](),this[_0x5234db(0x150)][_0x5234db(0x16e)](this[_0x5234db(0x15d)],0x1),this[_0x5234db(0x150)][_0x5234db(0x16e)](this[_0x5234db(0x13a)]);}[_0x2f8942(0x163)](){const _0x4793e1=_0x2f8942;super[_0x4793e1(0x163)](),this[_0x4793e1(0x14b)][_0x4793e1(0x148)][_0x4793e1(0x16e)](this[_0x4793e1(0x15d)]),this[_0x4793e1(0x149)][_0x4793e1(0x16e)](this[_0x4793e1(0x13a)]),this[_0x4793e1(0x13d)][_0x4793e1(0x16d)](_0x4793e1(0x168),(_0x1b4372,_0x5a0ec7)=>{const _0xf4afe2=_0x4793e1;_0x1b4372[_0xf4afe2(0x16f)]==this[_0xf4afe2(0x14b)][_0xf4afe2(0x13f)][_0xf4afe2(0x142)]&&(this[_0xf4afe2(0x169)](),_0x5a0ec7());});}[_0x2f8942(0x140)](){const _0x166a39=_0x2f8942,_0x308729=new _0x1a6376(this[_0x166a39(0x151)]),_0x13a309=this[_0x166a39(0x151)];return _0x308729[_0x166a39(0x16d)]({'icon':_0x47ff24,'label':_0x268eb2(_0x13a309,_0x166a39(0x155)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x166a39(0x138)}),_0x308729['on'](_0x166a39(0x143),()=>{const _0x5e82ae=_0x166a39;this[_0x5e82ae(0x169)]();}),_0x308729[_0x166a39(0x16c)](_0x166a39(0x141))['to'](this[_0x166a39(0x14b)][_0x166a39(0x13f)],_0x166a39(0x15e),this,_0x166a39(0x141),(_0x5c5b11,_0x58cd23)=>!_0x5c5b11&&_0x58cd23),_0x308729;}[_0x2f8942(0x16a)](){const _0x1821ee=_0x2f8942,_0x28c084=new _0x1a6376(this[_0x1821ee(0x151)]),_0x4eb38f=this[_0x1821ee(0x166)],_0x2e31c9=this[_0x1821ee(0x151)];_0x28c084[_0x1821ee(0x16d)]({'label':_0x268eb2(_0x2e31c9,_0x1821ee(0x154)),'withText':!0x1,'icon':_0x573b12[_0x1821ee(0x170)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x1821ee(0x136)}),_0x28c084[_0x1821ee(0x16c)](_0x1821ee(0x144))['to'](_0x4eb38f,_0x1821ee(0x152)),_0x28c084[_0x1821ee(0x16c)](_0x1821ee(0x141))['to'](this,_0x1821ee(0x141)),_0x28c084['on'](_0x1821ee(0x143),()=>{const _0x4fb1c3=_0x1821ee;_0x4eb38f[_0x4fb1c3(0x152)]=!_0x4eb38f[_0x4fb1c3(0x152)],_0x4eb38f[_0x4fb1c3(0x152)]?this[_0x4fb1c3(0x157)][_0x4fb1c3(0x137)]():this[_0x4fb1c3(0x137)]();});const _0x140aba=()=>{const _0x5bbc4a=_0x1821ee;_0x59a5d5[_0x5bbc4a(0x156)][_0x5bbc4a(0x146)](()=>{const _0x5359f8=_0x5bbc4a;if(_0xdc6cc9(this[_0x5359f8(0x142)])){const _0x4a499c=new _0x3d2fd7(this[_0x5359f8(0x14b)][_0x5359f8(0x13f)][_0x5359f8(0x142)]),_0x3cfbaa=_0x4a499c[_0x5359f8(0x153)],_0x2dce63=_0x5359f8(0x147)===_0x2e31c9[_0x5359f8(0x13c)]?_0x5359f8(0x15a):_0x5359f8(0x145);_0x4a499c[_0x5359f8(0x15f)](),_0x28c084[_0x5359f8(0x142)][_0x5359f8(0x159)][_0x2dce63]=_0x3cfbaa-_0x4a499c[_0x5359f8(0x153)]+0x1+'px';}});};return this[_0x1821ee(0x14b)][_0x1821ee(0x13f)]['on'](_0x1821ee(0x14c),_0x140aba),this['on'](_0x1821ee(0x163),_0x140aba),_0x28c084;}[_0x2f8942(0x169)](){const _0x4b5eff=_0x2f8942,_0x10bd59=this[_0x4b5eff(0x14b)][_0x4b5eff(0x13f)][_0x4b5eff(0x142)][_0x4b5eff(0x13b)];this[_0x4b5eff(0x15c)](_0x4b5eff(0x169),_0x10bd59);}[_0x2f8942(0x137)](_0x4216ef){const _0x50269b=_0x2f8942;-0x1===_0x4216ef?this[_0x50269b(0x165)][_0x50269b(0x162)]():this[_0x50269b(0x165)][_0x50269b(0x16b)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xeec00f=_0x54fd;(function(_0x57e43d,_0x5b763b){const _0x3ac5a7=_0x54fd,_0x341c1b=_0x57e43d();while(!![]){try{const _0x55651d=-parseInt(_0x3ac5a7(0x1f4))/0x1+parseInt(_0x3ac5a7(0x1e5))/0x2+-parseInt(_0x3ac5a7(0x1ea))/0x3+parseInt(_0x3ac5a7(0x1e3))/0x4*(-parseInt(_0x3ac5a7(0x1f7))/0x5)+-parseInt(_0x3ac5a7(0x1fc))/0x6+parseInt(_0x3ac5a7(0x1e7))/0x7*(parseInt(_0x3ac5a7(0x1ee))/0x8)+-parseInt(_0x3ac5a7(0x201))/0x9*(-parseInt(_0x3ac5a7(0x1f0))/0xa);if(_0x55651d===_0x5b763b)break;else _0x341c1b['push'](_0x341c1b['shift']());}catch(_0x595b3f){_0x341c1b['push'](_0x341c1b['shift']());}}}(_0x2eed,0x876c7));import{ToolbarView as _0x32a9ac,ButtonView as _0x4abb8b}from'ckeditor5/src/ui.js';import{getTranslation as _0x10f05e}from'../../utils/common-translations.js';function _0x2eed(){const _0x3e60c7=['label','_CONTENT','ck-ai-form__toolbar','replaceButton','388YlKUko','items','870770lIxnzv','replace','5040413FqFpyS','insertButton','extendTemplate','1984899ABtpgO','Stop','stopButton','insert','8AjWWsq','locale','10zkZKwX','ck-button-action','toUpperCase','Try\x20again','478101YSfLyw','REPLACE','Insert\x20below','20135WzjjDw','isVisible','bind','tryAgainButton','ck-hidden','6492918nbgaDJ','addMany','mainAction','AI_','set','18105813ZIIuMq','bindTemplate','_createButton'];_0x2eed=function(){return _0x3e60c7;};return _0x2eed();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0xeec00f(0x1e6),'INSERT':_0xeec00f(0x1ed)};function _0x54fd(_0x594bef,_0x67eb5b){const _0x2eed26=_0x2eed();return _0x54fd=function(_0x54fd4c,_0x242b5c){_0x54fd4c=_0x54fd4c-0x1e0;let _0x5201f6=_0x2eed26[_0x54fd4c];return _0x5201f6;},_0x54fd(_0x594bef,_0x67eb5b);}export default class rt extends _0x32a9ac{constructor(_0x277900){const _0x110d59=_0xeec00f;super(_0x277900),this[_0x110d59(0x200)](_0x110d59(0x1f8),!0x1),this[_0x110d59(0x200)](_0x110d59(0x1fe),AIFormToolbarViewMainActionLabel[_0x110d59(0x1f5)]),this[_0x110d59(0x1e2)]=this[_0x110d59(0x203)]('',_0x110d59(0x1f1)),this[_0x110d59(0x1e2)][_0x110d59(0x1f9)](_0x110d59(0x204))['to'](this,_0x110d59(0x1fe),_0x2d47ab=>_0x10f05e(_0x277900,_0x110d59(0x1ff)+_0x2d47ab[_0x110d59(0x1f2)]()+_0x110d59(0x1e0))),this[_0x110d59(0x1e8)]=this[_0x110d59(0x203)](_0x10f05e(_0x277900,_0x110d59(0x1f6))),this[_0x110d59(0x1fa)]=this[_0x110d59(0x203)](_0x10f05e(_0x277900,_0x110d59(0x1f3))),this[_0x110d59(0x1ec)]=this[_0x110d59(0x203)](_0x10f05e(_0x277900,_0x110d59(0x1eb)));const _0x369088=this[_0x110d59(0x202)];this[_0x110d59(0x1e9)]({'attributes':{'class':[_0x110d59(0x1e1),_0x369088['if'](_0x110d59(0x1f8),_0x110d59(0x1fb),_0x2c16db=>!_0x2c16db)]}}),this[_0x110d59(0x1e4)][_0x110d59(0x1fd)]([this[_0x110d59(0x1e2)],this[_0x110d59(0x1e8)],this[_0x110d59(0x1fa)],this[_0x110d59(0x1ec)]]);}[_0xeec00f(0x203)](_0x3383af,_0xb4d2c1){const _0x1e8f8e=_0xeec00f,_0x290c74=new _0x4abb8b(this[_0x1e8f8e(0x1ef)]);return _0x290c74[_0x1e8f8e(0x200)]({'label':_0x3383af,'class':_0xb4d2c1||'','isVisible':!0x0,'withText':!0x0}),_0x290c74;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c7856=_0x16b2;(function(_0x1e157,_0x2b9883){const _0x314b91=_0x16b2,_0x19772b=_0x1e157();while(!![]){try{const _0x48b79c=-parseInt(_0x314b91(0xf7))/0x1*(-parseInt(_0x314b91(0x13c))/0x2)+-parseInt(_0x314b91(0x11e))/0x3*(parseInt(_0x314b91(0xfa))/0x4)+parseInt(_0x314b91(0xf0))/0x5*(parseInt(_0x314b91(0x134))/0x6)+-parseInt(_0x314b91(0xec))/0x7+parseInt(_0x314b91(0x105))/0x8*(-parseInt(_0x314b91(0x109))/0x9)+-parseInt(_0x314b91(0x132))/0xa*(parseInt(_0x314b91(0x135))/0xb)+-parseInt(_0x314b91(0x10f))/0xc*(-parseInt(_0x314b91(0x126))/0xd);if(_0x48b79c===_0x2b9883)break;else _0x19772b['push'](_0x19772b['shift']());}catch(_0x49368b){_0x19772b['push'](_0x19772b['shift']());}}}(_0x24c6,0x4a4d2));import{FocusTracker as _0x4b6a7f,KeystrokeHandler as _0x3388f8}from'ckeditor5/src/utils.js';function _0x24c6(){const _0x2808e=['execute','high','contentArea','queryView','14691228WtUTEe','fieldView','isVisible','startProcessing','tryAgainButton','isEnabled','submit','set','delegate','Ask\x20AI\x20to\x20edit\x20or\x20generate','add','_createToolbar','promptView','locale','label','1050492lCoOXv','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','prompt','search','tab','shift\x20+\x20tab','ck-ai-form','toolbar','13DefTQX','focusFirst','focusCycler','items','submitPrompt','mainAction','focusTracker','text','insertContentBelow','isError','render','focus','1100AzQbBy','focusLast','78636ajIPIN','54406KthCCi','errorView','bind','tryAgainEvent','_createHistoryView','isProcessing','copyButtonView','2cBtJMw','clear','stopProcessing','ck-ai-form-content','REPLACE','div','keystrokes','replaceButton','3104094LXbrgJ','clearHistory','createCollection','handleError','45qqporf','_createPromptView','value','bindTemplate','ck-hidden','trim','_promptHistory','507106HkywJO','chain','Ask\x20AI\x20to\x20improve\x20generated\x20text','4FwZGXr','Empty\x20history','AI_ERROR_FAILED','fire','historyGroupView','finishProcessing','bindTo','stopButton','insertButton','element','listenTo','331720EaReFK','reset','setTemplate','replaceContent','45jZBTGQ','_focusables'];_0x24c6=function(){return _0x2808e;};return _0x24c6();}import{View as _0x244c4f,FocusCycler as _0x53d5f1,createLabeledTextarea as _0x579b5d}from'ckeditor5/src/ui.js';import _0x5ebc9c,{AIFormToolbarViewMainActionLabel as _0x570ea9}from'./aiformtoolbarview.js';import _0x4d6297 from'./aiformcontentarea.js';import _0x3c0e99 from'./aiformerrorview.js';import _0x4b9914 from'./aiformpromptview.js';import _0x581a03 from'./aihistorylistview.js';import _0x3a3859 from'./aihistorylistitemview.js';import _0x2b27dd from'./prompthistory.js';function _0x16b2(_0x4f5383,_0x465c00){const _0x24c6c9=_0x24c6();return _0x16b2=function(_0x16b222,_0x35db94){_0x16b222=_0x16b222-0xe6;let _0x1252ec=_0x24c6c9[_0x16b222];return _0x1252ec;},_0x16b2(_0x4f5383,_0x465c00);}import{getTranslation as _0x4c7c58}from'../../utils/common-translations.js';import{escape as _0x45079d}from'lodash-es';export default class v extends _0x244c4f{constructor(_0x122029,_0x2c613b,_0x282d7d=''){const _0x26131d=_0x16b2;super(_0x122029),this[_0x26131d(0x116)](_0x26131d(0x114),!0x0),this[_0x26131d(0x116)](_0x26131d(0x13a),!0x1),this[_0x26131d(0x116)](_0x26131d(0x120),''),this[_0x26131d(0x116)](_0x26131d(0xf2),''),this[_0x26131d(0x116)](_0x26131d(0x12f),!0x1),this[_0x26131d(0x116)](_0x26131d(0x12b),_0x570ea9[_0x26131d(0xe8)]),this[_0x26131d(0xf6)]=new _0x2b27dd(),this[_0x26131d(0x136)]=new _0x3c0e99(_0x122029),this[_0x26131d(0x10d)]=new _0x4d6297(_0x122029,_0x282d7d),this[_0x26131d(0x10d)][_0x26131d(0x137)](_0x26131d(0x13a))['to'](this),this[_0x26131d(0x10d)][_0x26131d(0x137)](_0x26131d(0xf2))['to'](this),this[_0x26131d(0x125)]=this[_0x26131d(0x11a)](),this[_0x26131d(0x125)][_0x26131d(0x137)](_0x26131d(0x12b))['to'](this),this[_0x26131d(0x11b)]=this[_0x26131d(0xf1)](),this[_0x26131d(0x12c)]=new _0x4b6a7f(),this[_0x26131d(0xea)]=new _0x3388f8(),this[_0x26131d(0x10a)]=this[_0x26131d(0xee)]([this[_0x26131d(0x10d)],this[_0x26131d(0x10d)][_0x26131d(0x13b)],this[_0x26131d(0x125)],this[_0x26131d(0x11b)]]),this[_0x26131d(0x128)]=new _0x53d5f1({'focusables':this[_0x26131d(0x10a)],'focusTracker':this[_0x26131d(0x12c)],'keystrokeHandler':this[_0x26131d(0xea)],'actions':{'focusPrevious':_0x26131d(0x123),'focusNext':_0x26131d(0x122)}}),this[_0x26131d(0x128)][_0x26131d(0xf8)](this[_0x26131d(0x11b)][_0x26131d(0x128)]),this[_0x26131d(0x11b)][_0x26131d(0x10e)][_0x26131d(0x110)][_0x26131d(0x137)](_0x26131d(0xf2))['to'](this,_0x26131d(0x120));const _0x1ad754=this[_0x26131d(0xf3)];this[_0x26131d(0x107)]({'tag':_0x26131d(0xe9),'attributes':{'class':['ck',_0x26131d(0x124),_0x2c613b],'tabindex':'-1'},'children':[{'tag':_0x26131d(0xe9),'attributes':{'class':['ck',_0x26131d(0xe7)]},'children':[{'tag':_0x26131d(0xe9),'attributes':{'class':[_0x1ad754['if'](_0x26131d(0x12f),_0x26131d(0xf4),_0x188816=>!_0x188816)]},'children':[this[_0x26131d(0x136)]]},this[_0x26131d(0x10d)],this[_0x26131d(0x125)],this[_0x26131d(0x11b)]]}]});}[_0x4c7856(0x130)](){const _0x426c08=_0x4c7856;super[_0x426c08(0x130)](),this[_0x426c08(0x12c)][_0x426c08(0x119)](this[_0x426c08(0x10d)][_0x426c08(0x103)]),this[_0x426c08(0x12c)][_0x426c08(0x119)](this[_0x426c08(0x10d)][_0x426c08(0x13b)][_0x426c08(0x103)]),this[_0x426c08(0x12c)][_0x426c08(0x119)](this[_0x426c08(0x125)][_0x426c08(0x103)]),this[_0x426c08(0x12c)][_0x426c08(0x119)](this[_0x426c08(0x11b)][_0x426c08(0x103)]),this[_0x426c08(0xea)][_0x426c08(0x104)](this[_0x426c08(0x103)]);}[_0x4c7856(0x131)](_0x3af137=0x1){const _0x38a7d4=_0x4c7856;-0x1===_0x3af137?this[_0x38a7d4(0x128)][_0x38a7d4(0x133)]():this[_0x38a7d4(0x128)][_0x38a7d4(0x127)]();}[_0x4c7856(0x106)](){const _0x4b5039=_0x4c7856;this[_0x4b5039(0x120)]='',this[_0x4b5039(0xf2)]='',this[_0x4b5039(0x12f)]=!0x1,this[_0x4b5039(0x11b)][_0x4b5039(0x106)](),this[_0x4b5039(0x10d)][_0x4b5039(0x111)]=!0x1,this[_0x4b5039(0x125)][_0x4b5039(0x111)]=!0x1;}[_0x4c7856(0xf1)](){const _0x47f0b5=_0x4c7856,_0x3feedc=this[_0x47f0b5(0x11c)],_0x346d95=new _0x4b9914(_0x3feedc,{'queryView':{'label':_0x4c7c58(_0x3feedc,_0x47f0b5(0x118)),'creator':_0x579b5d,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4c7c58(_0x3feedc,_0x47f0b5(0xfb)),'secondary':_0x4c7c58(_0x3feedc,_0x47f0b5(0x11f))}}},'filteredView':this[_0x47f0b5(0x139)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x346d95[_0x47f0b5(0x137)](_0x47f0b5(0x114))['to'](this,_0x47f0b5(0x114),this,_0x47f0b5(0x13a),(_0x95283b,_0x1c8acf)=>_0x95283b&&!_0x1c8acf),this[_0x47f0b5(0x104)](_0x346d95,_0x47f0b5(0x115),(_0x161ffd,_0x449e34)=>{const _0x4532d1=_0x47f0b5;this[_0x4532d1(0x120)]=_0x449e34;const _0x3a2fe6=_0x45079d(_0x449e34);this[_0x4532d1(0xfd)](_0x4532d1(0x12a),_0x3a2fe6),_0x449e34[_0x4532d1(0xf5)]()&&this[_0x4532d1(0xf6)][_0x4532d1(0x119)]({'prompt':_0x3a2fe6},0x0);},{'priority':_0x47f0b5(0x10c)}),_0x346d95;}[_0x4c7856(0x139)](){const _0xc69901=_0x4c7856,_0x4a5936=new _0x581a03(this[_0xc69901(0x11c)]);return _0x4a5936[_0xc69901(0xfe)][_0xc69901(0x129)][_0xc69901(0x100)](this[_0xc69901(0xf6)])['as'](_0x3a3859),_0x4a5936['on'](_0xc69901(0xed),()=>{const _0x5eb5f8=_0xc69901;this[_0x5eb5f8(0xf6)][_0x5eb5f8(0x13d)](),this[_0x5eb5f8(0x11b)][_0x5eb5f8(0x121)](''),this[_0x5eb5f8(0x11b)][_0x5eb5f8(0x131)]();}),_0x4a5936;}[_0x4c7856(0x11a)](){const _0x46e293=_0x4c7856,_0xa3c93a=new _0x5ebc9c(this[_0x46e293(0x11c)]);return _0xa3c93a[_0x46e293(0xeb)][_0x46e293(0x137)](_0x46e293(0x114))['to'](this,_0x46e293(0x114),this,_0x46e293(0x13a),this,_0x46e293(0xf2),(_0x42242d,_0x1449af,_0x14d852)=>_0x42242d&&!_0x1449af&&!!_0x14d852),_0xa3c93a[_0x46e293(0xeb)][_0x46e293(0x117)](_0x46e293(0x10b))['to'](this,_0x46e293(0x108)),_0xa3c93a[_0x46e293(0x102)][_0x46e293(0x137)](_0x46e293(0x114))['to'](this,_0x46e293(0x114),this,_0x46e293(0x13a),this,_0x46e293(0xf2),(_0x3911c1,_0x5b3936,_0x44b250)=>_0x3911c1&&!_0x5b3936&&!!_0x44b250),_0xa3c93a[_0x46e293(0x102)][_0x46e293(0x117)](_0x46e293(0x10b))['to'](this,_0x46e293(0x12e)),_0xa3c93a[_0x46e293(0x113)][_0x46e293(0x137)](_0x46e293(0x114))['to'](this,_0x46e293(0x114),this,_0x46e293(0x13a),(_0x129560,_0x4b88d5)=>_0x129560&&!_0x4b88d5),_0xa3c93a[_0x46e293(0x113)][_0x46e293(0x117)](_0x46e293(0x10b))['to'](this,_0x46e293(0x138)),_0xa3c93a[_0x46e293(0x101)][_0x46e293(0x137)](_0x46e293(0x114))['to'](this,_0x46e293(0x13a)),_0xa3c93a[_0x46e293(0x101)][_0x46e293(0x117)](_0x46e293(0x10b))['to'](this,_0x46e293(0xe6)),_0xa3c93a;}[_0x4c7856(0x112)](){const _0x2d515a=_0x4c7856;this[_0x2d515a(0xf2)]='',this[_0x2d515a(0x12f)]=!0x1,this[_0x2d515a(0x13a)]=!0x0,this[_0x2d515a(0x10d)][_0x2d515a(0x111)]=!0x0,this[_0x2d515a(0x125)][_0x2d515a(0x111)]=!0x0,this[_0x2d515a(0x10d)][_0x2d515a(0x131)]();}[_0x4c7856(0xff)](){const _0x312326=_0x4c7856,_0x62fc80=this[_0x312326(0x11c)];this[_0x312326(0x13a)]=!0x1,this[_0x312326(0x120)]='',this[_0x312326(0x11b)][_0x312326(0x106)](),this[_0x312326(0xf2)]&&(this[_0x312326(0x11b)][_0x312326(0x10e)][_0x312326(0x11d)]=_0x4c7c58(_0x62fc80,_0x312326(0xf9)));}[_0x4c7856(0xef)](_0xd795d){const _0x5a2ec9=_0x4c7856,_0x45902c=this[_0x5a2ec9(0x11c)];this[_0x5a2ec9(0xff)](),this[_0x5a2ec9(0x12f)]=!0x0,this[_0x5a2ec9(0x136)][_0x5a2ec9(0x12d)]=_0xd795d||_0x4c7c58(_0x45902c,_0x5a2ec9(0xfc)),this[_0x5a2ec9(0xf2)]||(this[_0x5a2ec9(0x10d)][_0x5a2ec9(0x111)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x41b3(_0x590028,_0x36eb03){const _0x1aab60=_0x1aab();return _0x41b3=function(_0x41b373,_0x5218b1){_0x41b373=_0x41b373-0xaa;let _0x1e3b4a=_0x1aab60[_0x41b373];return _0x1e3b4a;},_0x41b3(_0x590028,_0x36eb03);}(function(_0x510a35,_0x2a6a15){const _0x2cf13f=_0x41b3,_0xf749c8=_0x510a35();while(!![]){try{const _0x486e76=parseInt(_0x2cf13f(0xae))/0x1+parseInt(_0x2cf13f(0xb9))/0x2+parseInt(_0x2cf13f(0xb8))/0x3*(-parseInt(_0x2cf13f(0xb7))/0x4)+parseInt(_0x2cf13f(0xb4))/0x5+parseInt(_0x2cf13f(0xb6))/0x6+-parseInt(_0x2cf13f(0xb5))/0x7+-parseInt(_0x2cf13f(0xb3))/0x8*(parseInt(_0x2cf13f(0xab))/0x9);if(_0x486e76===_0x2a6a15)break;else _0xf749c8['push'](_0xf749c8['shift']());}catch(_0x315e3c){_0xf749c8['push'](_0xf749c8['shift']());}}}(_0x1aab,0x50228));import{ListItemView as _0x191ff2,ButtonView as _0x540bca,ButtonLabelView as _0x3ea33c}from'ckeditor5/src/ui.js';function _0x1aab(){const _0x15d72b=['locale','add','children','1094896DgZRVI','988860nPNagr','1325170WgHmds','3761586BHygEg','4leZuiS','1292262ayoABI','1095172PTqGVH','fire','63ZSYiHu','prompt','execute','534041rYqVYH','set'];_0x1aab=function(){return _0x15d72b;};return _0x1aab();}import{unescape as _0x107ae0}from'lodash-es';export default class hs extends _0x191ff2{constructor(_0x2fb700){const _0x47ba01=_0x41b3;super();const _0x13166e=new _0x3ea33c(),_0x8c1753=new _0x540bca(this[_0x47ba01(0xb0)],_0x13166e);this[_0x47ba01(0xb2)][_0x47ba01(0xb1)](_0x8c1753),_0x8c1753[_0x47ba01(0xaf)]({'label':_0x2fb700[_0x47ba01(0xac)],'withText':!0x0}),_0x8c1753['on'](_0x47ba01(0xad),()=>{const _0x4e1311=_0x47ba01;this[_0x4e1311(0xaa)](_0x4e1311(0xad),{'value':_0x107ae0(_0x2fb700[_0x4e1311(0xac)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x47ed(){const _0x5b6be4=['3899UEvYxO','fire','items','6538roYlzz','40VDdrZp','669SqTkwm','Prompt\x20history','delegate','Clear','clearHistoryButton','484380nRPDgX','add','7792QTnsvf','4069776ygzZgB','set','1540860ADDlyr','3213783onRLKp','children','historyGroupView','clearHistory','label','2868885znPNlD','filter','length','locale','execute','_createClearHistoryButton'];_0x47ed=function(){return _0x5b6be4;};return _0x47ed();}const _0x3f844e=_0x3708;function _0x3708(_0x34ebbd,_0x51ab65){const _0x47edb4=_0x47ed();return _0x3708=function(_0x370839,_0x1a76ca){_0x370839=_0x370839-0x1d4;let _0x15e106=_0x47edb4[_0x370839];return _0x15e106;},_0x3708(_0x34ebbd,_0x51ab65);}(function(_0x266994,_0xc8da7e){const _0x147023=_0x3708,_0x4442bd=_0x266994();while(!![]){try{const _0x2d1314=-parseInt(_0x147023(0x1dc))/0x1+parseInt(_0x147023(0x1d5))/0x2*(parseInt(_0x147023(0x1d7))/0x3)+-parseInt(_0x147023(0x1df))/0x4+-parseInt(_0x147023(0x1e7))/0x5+parseInt(_0x147023(0x1e1))/0x6+-parseInt(_0x147023(0x1ed))/0x7*(-parseInt(_0x147023(0x1de))/0x8)+-parseInt(_0x147023(0x1e2))/0x9*(-parseInt(_0x147023(0x1d6))/0xa);if(_0x2d1314===_0xc8da7e)break;else _0x4442bd['push'](_0x4442bd['shift']());}catch(_0x93ccf0){_0x4442bd['push'](_0x4442bd['shift']());}}}(_0x47ed,0xd71a6));import{ListView as _0x3cd08e,ListItemGroupView as _0x1635bb,ButtonView as _0x55d6d8}from'ckeditor5/src/ui.js';import{getTranslation as _0x5e2c02}from'../../utils/common-translations.js';export default class rs extends _0x3cd08e{constructor(_0x3d9bb5){const _0xaa9895=_0x3708;super(_0x3d9bb5),this[_0xaa9895(0x1db)]=this[_0xaa9895(0x1ec)](),this[_0xaa9895(0x1e4)]=new _0x1635bb(),this[_0xaa9895(0x1e4)][_0xaa9895(0x1e3)][_0xaa9895(0x1dd)](this[_0xaa9895(0x1db)],0x1),this[_0xaa9895(0x1e4)][_0xaa9895(0x1e6)]=_0x5e2c02(_0x3d9bb5,_0xaa9895(0x1d8)),this[_0xaa9895(0x1e4)][_0xaa9895(0x1d4)][_0xaa9895(0x1d9)](_0xaa9895(0x1eb))['to'](this),this[_0xaa9895(0x1d4)][_0xaa9895(0x1dd)](this[_0xaa9895(0x1e4)]);}[_0x3f844e(0x1e8)](){const _0x3bd303=_0x3f844e;let _0x58f558=0x0;for(const _0x5e0680 of this[_0x3bd303(0x1d4)])_0x58f558+=_0x5e0680[_0x3bd303(0x1d4)][_0x3bd303(0x1e9)];return{'resultsCount':_0x58f558,'totalItemsCount':_0x58f558};}[_0x3f844e(0x1ec)](){const _0x28ee8c=_0x3f844e,_0x12e23f=this[_0x28ee8c(0x1ea)],_0x4c6eda=new _0x55d6d8(this[_0x28ee8c(0x1ea)]);return _0x4c6eda[_0x28ee8c(0x1e0)]({'label':'('+_0x5e2c02(_0x12e23f,_0x28ee8c(0x1da))+')','withText':!0x0}),_0x4c6eda['on'](_0x28ee8c(0x1eb),()=>this[_0x28ee8c(0x1ee)](_0x28ee8c(0x1e5))),_0x4c6eda;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5e8c06=_0x1853;(function(_0x54f89b,_0x18b5c4){const _0x153c2e=_0x1853,_0x3b73da=_0x54f89b();while(!![]){try{const _0x89e4d2=parseInt(_0x153c2e(0x13f))/0x1*(parseInt(_0x153c2e(0x135))/0x2)+parseInt(_0x153c2e(0x138))/0x3*(parseInt(_0x153c2e(0x146))/0x4)+parseInt(_0x153c2e(0x140))/0x5+-parseInt(_0x153c2e(0x147))/0x6*(parseInt(_0x153c2e(0x12c))/0x7)+parseInt(_0x153c2e(0x142))/0x8+-parseInt(_0x153c2e(0x143))/0x9*(parseInt(_0x153c2e(0x141))/0xa)+parseInt(_0x153c2e(0x131))/0xb*(parseInt(_0x153c2e(0x136))/0xc);if(_0x89e4d2===_0x18b5c4)break;else _0x3b73da['push'](_0x3b73da['shift']());}catch(_0x29d895){_0x3b73da['push'](_0x3b73da['shift']());}}}(_0x470f,0x46626));import{Collection as _0x59d9e3}from'ckeditor5/src/utils.js';const cs=_0x5e8c06(0x144);export default class os extends _0x59d9e3{constructor(){const _0x2619cf=_0x5e8c06;super(),this[_0x2619cf(0x139)](),this['on'](_0x2619cf(0x13c),(_0x5a0919,_0x275ff8)=>{const _0x61e61e=_0x2619cf,_0x5eb8d0=Ss(_0x275ff8[_0x61e61e(0x137)]);for(const _0xb5e8cd of this)if(_0xb5e8cd!=_0x275ff8&&Ss(_0xb5e8cd[_0x61e61e(0x137)])===_0x5eb8d0){this[_0x61e61e(0x13e)](_0xb5e8cd);break;}this[_0x61e61e(0x133)]>0x14&&this[_0x61e61e(0x13e)](this[_0x61e61e(0x145)]),this[_0x61e61e(0x12e)]();}),this['on'](_0x2619cf(0x13e),()=>{const _0x4b6732=_0x2619cf;this[_0x4b6732(0x12e)]();});}[_0x5e8c06(0x139)](){const _0x97e3a0=_0x5e8c06,_0x5a8d7f=sessionStorage[_0x97e3a0(0x132)](cs)||'[]';this[_0x97e3a0(0x12d)](JSON[_0x97e3a0(0x134)](_0x5a8d7f));}[_0x5e8c06(0x12e)](){const _0x508fcc=_0x5e8c06;sessionStorage[_0x508fcc(0x12f)](cs,JSON[_0x508fcc(0x13d)](this[_0x508fcc(0x13a)](_0x309e6d=>_0x309e6d)));}}function _0x1853(_0x2577aa,_0x283c1e){const _0x470f33=_0x470f();return _0x1853=function(_0x1853c3,_0x181a19){_0x1853c3=_0x1853c3-0x12c;let _0x726d1e=_0x470f33[_0x1853c3];return _0x726d1e;},_0x1853(_0x2577aa,_0x283c1e);}function Ss(_0x541928){const _0x25bcb4=_0x5e8c06;return _0x541928[_0x25bcb4(0x13b)]()[_0x25bcb4(0x130)]();}function _0x470f(){const _0x46ad70=['length','parse','30NIbocq','636QsDiQB','prompt','201jBaLAf','_loadFromSessionStorage','map','toLowerCase','add','stringify','remove','15544vvhRad','1077450qRRNJl','20JmjmCb','3252312OjlgRR','2591703zuBiUU','CKEditor/AIFormView/PromptHistory','last','25220SwXObH','2757354PAKdNH','7PJuiVr','addMany','_saveToSessionStorage','setItem','trim','9581EajqJJ','getItem'];_0x470f=function(){return _0x46ad70;};return _0x470f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5527(){const _0x139bce=['_commandDefinitions','showUI','getRanges','isEmpty','hasContent','custom','getItems','153546ADbjkW','change:isEnabled','4699161GwVGWy','document','isEnabled','158889bKYdKl','plugins','2050296ydCbsw','config','_hasContext','542868JkezGZ','set','isCollapsed','get','6wGbNFg','enabledCommandsIds','change:_hasContext','selection','element','getFirstRange','length','model','130249hEpWqq','50RUyhiv','execute','name','editor','refresh','add','from','requiresContent','getSelectedBlocks','ai.aiAssistant.disabledElements','values','485952HFTFjL','includes'];_0x5527=function(){return _0x139bce;};return _0x5527();}function _0x5e7c(_0x89a4bf,_0x336a0f){const _0x552757=_0x5527();return _0x5e7c=function(_0x5e7c8a,_0x2ffb58){_0x5e7c8a=_0x5e7c8a-0x136;let _0x1f1fd0=_0x552757[_0x5e7c8a];return _0x1f1fd0;},_0x5e7c(_0x89a4bf,_0x336a0f);}const _0x2cfdf3=_0x5e7c;(function(_0xe4597e,_0x5c5bc4){const _0x43fae0=_0x5e7c,_0x203b35=_0xe4597e();while(!![]){try{const _0x595813=parseInt(_0x43fae0(0x148))/0x1+-parseInt(_0x43fae0(0x14d))/0x2+parseInt(_0x43fae0(0x151))/0x3*(-parseInt(_0x43fae0(0x13a))/0x4)+parseInt(_0x43fae0(0x15a))/0x5*(-parseInt(_0x43fae0(0x143))/0x6)+-parseInt(_0x43fae0(0x159))/0x7+parseInt(_0x43fae0(0x14a))/0x8+parseInt(_0x43fae0(0x145))/0x9;if(_0x595813===_0x5c5bc4)break;else _0x203b35['push'](_0x203b35['shift']());}catch(_0x146766){_0x203b35['push'](_0x203b35['shift']());}}}(_0x5527,0x2439a));import{Command as _0x5b70d8}from'ckeditor5/src/core.js';import _0x46b61a from'../aiassistantui.js';export default class C extends _0x5b70d8{constructor(_0x477de9,_0xc7fac){const _0x4b851e=_0x5e7c;super(_0x477de9),this[_0x4b851e(0x13c)]=_0xc7fac,this[_0x4b851e(0x14e)](_0x4b851e(0x152),[]),this['on'](_0x4b851e(0x153),(_0x54578a,_0x4e8712,_0xcf546f)=>{const _0x229824=_0x4b851e;this[_0x229824(0x147)]&&(this[_0x229824(0x152)]=F(this[_0x229824(0x13c)],_0xcf546f));}),this[_0x4b851e(0x14e)](_0x4b851e(0x14c),!0x1),this['on'](_0x4b851e(0x144),(_0xac6f15,_0x2adabd,_0x38454a)=>{const _0x3ff49c=_0x4b851e;this[_0x3ff49c(0x152)]=_0x38454a?F(this[_0x3ff49c(0x13c)],this[_0x3ff49c(0x14c)]):[];});}[_0x2cfdf3(0x15e)](){const _0x162fc9=_0x2cfdf3,_0x17063b=this[_0x162fc9(0x15d)][_0x162fc9(0x158)];this[_0x162fc9(0x14c)]=function(_0x513c35){const _0x2e3f46=_0x162fc9,_0x163b79=_0x513c35[_0x2e3f46(0x146)][_0x2e3f46(0x154)];return _0x163b79[_0x2e3f46(0x14f)]?0x0!==[..._0x163b79[_0x2e3f46(0x137)]()][_0x2e3f46(0x157)]&&![..._0x163b79[_0x2e3f46(0x137)]()][0x0][_0x2e3f46(0x13f)]:!!_0x513c35[_0x2e3f46(0x140)](_0x163b79[_0x2e3f46(0x156)]());}(_0x17063b);const _0xb6e679=_0x17063b[_0x162fc9(0x146)][_0x162fc9(0x154)],_0xbc5ed0=this[_0x162fc9(0x15d)][_0x162fc9(0x14b)][_0x162fc9(0x150)](_0x162fc9(0x138));for(const _0xbad13c of _0xb6e679[_0x162fc9(0x13e)]())for(const _0x18c3f7 of _0xbad13c[_0x162fc9(0x142)]())if(_0x18c3f7['is'](_0x162fc9(0x155))&&_0xbc5ed0[_0x162fc9(0x13b)](_0x18c3f7[_0x162fc9(0x15c)]))return void(this[_0x162fc9(0x147)]=!0x1);this[_0x162fc9(0x147)]=!0x0;}[_0x2cfdf3(0x15b)](_0x6cdf2c='',_0xd73060='',_0x44d721=_0x2cfdf3(0x141)){const _0x1d3805=_0x2cfdf3;this[_0x1d3805(0x15d)][_0x1d3805(0x149)][_0x1d3805(0x150)](_0x46b61a)[_0x1d3805(0x13d)](_0x6cdf2c,_0xd73060,_0x44d721);}}function F(_0x1f3170,_0x351442){const _0x7edbd2=_0x2cfdf3,_0x29dd57=new Set();for(const _0x16f4f8 of _0x1f3170[_0x7edbd2(0x139)]())(_0x351442||!0x1===_0x16f4f8[_0x7edbd2(0x136)])&&_0x29dd57[_0x7edbd2(0x15f)](_0x16f4f8['id']);return Array[_0x7edbd2(0x160)](_0x29dd57);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x39f292,_0x4aafda,_0x3edf7c){const t=_0x39f292['t'];switch(_0x4aafda){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',_0x3edf7c);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x3edf7c);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'},_0x3edf7c);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 _0x4aafda;}}
|