@ckeditor/ckeditor5-ai 41.0.0 → 41.2.0

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.
Files changed (36) hide show
  1. package/build/ai.js +6 -6
  2. package/build/translations/it.js +1 -1
  3. package/build/translations/pt.js +1 -1
  4. package/lang/translations/he.po +1 -1
  5. package/lang/translations/it.po +16 -16
  6. package/lang/translations/pt.po +4 -4
  7. package/package.json +4 -4
  8. package/src/adapters/aiadapter.js +1 -1
  9. package/src/adapters/aitextadapter.js +1 -1
  10. package/src/adapters/awstextadapter.js +1 -1
  11. package/src/adapters/openaitextadapter.js +1 -1
  12. package/src/aiassistant.js +1 -1
  13. package/src/aiassistantediting.d.ts +5 -0
  14. package/src/aiassistantediting.js +1 -1
  15. package/src/aiassistantui.d.ts +2 -1
  16. package/src/aiassistantui.js +1 -1
  17. package/src/augmentation.d.ts +1 -1
  18. package/src/index.js +1 -1
  19. package/src/ui/aiassistantcontroller.d.ts +1 -1
  20. package/src/ui/aiassistantcontroller.js +1 -1
  21. package/src/ui/dropdown/aicommandslistview.d.ts +11 -0
  22. package/src/ui/dropdown/aicommandslistview.js +1 -1
  23. package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
  24. package/src/ui/dropdown/labelwithhighlightview.js +1 -1
  25. package/src/ui/form/aiformcontentarea.js +1 -1
  26. package/src/ui/form/aiformerrorview.js +1 -1
  27. package/src/ui/form/aiformpromptview.js +1 -1
  28. package/src/ui/form/aiformtoolbarview.js +1 -1
  29. package/src/ui/form/aiformview.js +1 -1
  30. package/src/ui/form/aihistorylistitemview.js +1 -1
  31. package/src/ui/form/aihistorylistview.js +1 -1
  32. package/src/ui/form/prompthistory.js +1 -1
  33. package/src/ui/showaiassistantcommand.d.ts +12 -1
  34. package/src/ui/showaiassistantcommand.js +1 -1
  35. package/src/utils/common-translations.js +1 -1
  36. package/theme/ai.css +4 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e56=['clipboard','element','_createCopyButton','ClipboardItem','execute','icon','_createLoader','isEnabled','contentFieldView','createElement','check','.ck-ai-form__loader','setTemplate','innerHTML','ck-ai-form__loader','lastElementChild','Copy','locale','setEndBefore','execCommand','class','isProcessing','scrollTo','AI\x20is\x20writing...','style','copy','position','ck-ai-form__content-area-wrapper','ck-ai-form__copy-button','focus','isVisible','scrollHeight','copyButtonView','change:isProcessing','set','textContent','setStartAfter','ck-hidden','value','ck-reset_all-excluded','loaderView','-9999px','appendLoader','render','ck-content','div','smooth','setContent','ck-ai-form__content-area','left','_copyHTMLToClipboard','bind','listenTo','getSelection','querySelector','change:value','firstElementChild','<span>[</span>','text/html','appendChild','createRange','absolute','write'];(function(_0x54bf70,_0x1e5672){const _0x2cd7fe=function(_0x3da8ce){while(--_0x3da8ce){_0x54bf70['push'](_0x54bf70['shift']());}};_0x2cd7fe(++_0x1e5672);}(_0x1e56,0x1c8));const _0x2cd7=function(_0x54bf70,_0x1e5672){_0x54bf70=_0x54bf70-0x0;let _0x2cd7fe=_0x1e56[_0x54bf70];return _0x2cd7fe;};import{global as _0x3c25a9}from'ckeditor5/src/utils.js';import{View as _0x44738e,ButtonView as _0x4ce293,SpinnerView as _0x1207ed}from'ckeditor5/src/ui.js';import _0x7b5e7a from'../../../theme/icons/copy.svg';import{getTranslation as _0x62bf9}from'../../utils/common-translations.js';import{icons as _0x13984f}from'ckeditor5/src/core.js';export default class X extends _0x44738e{constructor(_0x50abfb,_0x2b510f=''){super(_0x50abfb),this[_0x2cd7('0x13')]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0xe96df1=this['bindTemplate'];this[_0x2cd7('0x38')]=new ContentFieldView(_0x50abfb,_0x2b510f),this['copyButtonView']=this[_0x2cd7('0x32')](),this[_0x2cd7('0x3c')]({'tag':_0x2cd7('0x1e'),'attributes':{'class':['ck',_0x2cd7('0xc'),_0xe96df1['if']('isVisible',_0x2cd7('0x16'),_0x10868e=>!_0x10868e)],'tabindex':'-1'},'children':[{'tag':_0x2cd7('0x1e'),'attributes':{'class':['ck',_0x2cd7('0x21'),_0xe96df1['if'](_0x2cd7('0x6'),'ck-ai-form__content-area--processing')]},'children':[this[_0x2cd7('0x38')],{'tag':_0x2cd7('0x1e'),'attributes':{'class':['ck','ck-ai-form__copy-button-wrapper']},'children':[this[_0x2cd7('0x11')]]}]}]});}[_0x2cd7('0x1c')](){super['render'](),this[_0x2cd7('0x17')]&&this[_0x2cd7('0x38')][_0x2cd7('0x20')](this['value']);let _0x122591=!0x1;this['on'](_0x2cd7('0x28'),(_0x23f825,_0x38d82c,_0x3867dc)=>{const _0x2bb706=!this[_0x2cd7('0x38')][_0x2cd7('0x31')][_0x2cd7('0x27')](_0x2cd7('0x3b'));this[_0x2cd7('0x38')][_0x2cd7('0x20')](_0x3867dc),this[_0x2cd7('0x6')]&&_0x2bb706&&!_0x122591&&this[_0x2cd7('0x31')][_0x2cd7('0x7')]({'top':this[_0x2cd7('0x31')][_0x2cd7('0x10')],'behavior':_0x2cd7('0x1f')});}),this['on'](_0x2cd7('0x12'),(_0x109699,_0x2432e5,_0xd3d5ac)=>{_0x122591=!0x1,_0xd3d5ac?(this[_0x2cd7('0x17')]=null,this[_0x2cd7('0x38')][_0x2cd7('0x1b')]()):this[_0x2cd7('0x17')]||this['contentFieldView'][_0x2cd7('0x20')]('');}),this[_0x2cd7('0x25')](this[_0x2cd7('0x31')],'wheel',()=>{_0x122591=!0x0;}),this[_0x2cd7('0x25')](this[_0x2cd7('0x31')],'mousedown',()=>{_0x122591=!0x0;});}[_0x2cd7('0xe')](){this[_0x2cd7('0x31')][_0x2cd7('0xe')]();}[_0x2cd7('0x32')](){const _0xa8ad6d=this[_0x2cd7('0x2')],_0x28ae72=new _0x4ce293(this['locale']),_0x1a74e6=_0x2cd7('0xd');return _0x28ae72[_0x2cd7('0x13')]({'label':_0x62bf9(_0xa8ad6d,_0x2cd7('0x1')),'icon':_0x7b5e7a,'class':_0x1a74e6,'tooltip':!0x0}),_0x28ae72['bind'](_0x2cd7('0xf'))['to'](this,_0x2cd7('0x17'),_0x1a7478=>!!_0x1a7478),_0x28ae72[_0x2cd7('0x24')](_0x2cd7('0x37'))['to'](this,_0x2cd7('0x6'),_0x6b4cb9=>!_0x6b4cb9),_0x28ae72['on'](_0x2cd7('0x34'),()=>{this[_0x2cd7('0x23')](this[_0x2cd7('0x38')][_0x2cd7('0x31')]),_0x28ae72[_0x2cd7('0x35')]=_0x13984f[_0x2cd7('0x3a')],_0x28ae72['class']=_0x1a74e6+'\x20ck-ai-form__copy-button--copied',this[_0x2cd7('0xe')](),setTimeout(()=>{_0x28ae72[_0x2cd7('0x35')]=_0x7b5e7a,_0x28ae72[_0x2cd7('0x5')]=_0x1a74e6;},0x3e8);}),_0x28ae72;}[_0x2cd7('0x23')](_0x54502f){const {window:_0x293fe6,document:_0x18fdf8}=_0x3c25a9;if(_0x293fe6[_0x2cd7('0x33')]){const {Blob:_0x44cf59,ClipboardItem:_0x1c110e}=_0x293fe6,_0x24da40=[new _0x1c110e({'text/html':new _0x44cf59([_0x54502f[_0x2cd7('0x3d')]],{'type':_0x2cd7('0x2b')}),'text/plain':new _0x44cf59([_0x54502f[_0x2cd7('0x14')]||''],{'type':'text/plain'})})];navigator[_0x2cd7('0x30')][_0x2cd7('0x2f')](_0x24da40);}else{const _0xc9ba6e=_0x18fdf8[_0x2cd7('0x39')](_0x2cd7('0x1e'));_0xc9ba6e['style'][_0x2cd7('0xb')]=_0x2cd7('0x2e'),_0xc9ba6e[_0x2cd7('0x9')][_0x2cd7('0x22')]=_0x2cd7('0x1a'),_0xc9ba6e[_0x2cd7('0x3d')]=_0x2cd7('0x2a')+_0x54502f['innerHTML']+'<span>]</span>',_0x18fdf8['body'][_0x2cd7('0x2c')](_0xc9ba6e);const _0x1200b2=_0x18fdf8[_0x2cd7('0x2d')]();_0x1200b2[_0x2cd7('0x15')](_0xc9ba6e[_0x2cd7('0x29')]),_0x1200b2[_0x2cd7('0x3')](_0xc9ba6e[_0x2cd7('0x0')]);const _0x403bf8=_0x293fe6[_0x2cd7('0x26')]();_0x403bf8['removeAllRanges'](),_0x403bf8['addRange'](_0x1200b2),_0x18fdf8[_0x2cd7('0x4')](_0x2cd7('0xa')),_0xc9ba6e['remove']();}}}export class ContentFieldView extends _0x44738e{constructor(_0x5823a1,_0xb775f8=''){super(_0x5823a1),this[_0x2cd7('0x19')]=this[_0x2cd7('0x36')](),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x2cd7('0x1d'),_0xb775f8,_0x2cd7('0x18'),'ck-ai-form__content-field']}});}[_0x2cd7('0x20')](_0x472c59){this['element'][_0x2cd7('0x3d')]=_0x472c59;}['appendLoader'](){this[_0x2cd7('0x31')][_0x2cd7('0x2c')](this[_0x2cd7('0x19')]['element']);}['_createLoader'](){const _0x1026ac=new _0x44738e(),_0x5aa48f=this[_0x2cd7('0x2')],_0x3391fb=new _0x1207ed();return _0x3391fb[_0x2cd7('0xf')]=!0x0,_0x1026ac[_0x2cd7('0x3c')]({'tag':'div','attributes':{'class':['ck',_0x2cd7('0x3e')]},'children':[_0x3391fb,{'text':_0x62bf9(_0x5aa48f,_0x2cd7('0x8'))}]}),_0x1026ac[_0x2cd7('0x1c')](),_0x1026ac;}}
23
+ const _0x47ff45=_0x1570;(function(_0x206a9c,_0x2b1b42){const _0xecf482=_0x1570,_0x60b717=_0x206a9c();while(!![]){try{const _0x5f26de=-parseInt(_0xecf482(0xa7))/0x1+-parseInt(_0xecf482(0x82))/0x2+-parseInt(_0xecf482(0xb1))/0x3+parseInt(_0xecf482(0xb2))/0x4*(parseInt(_0xecf482(0xab))/0x5)+parseInt(_0xecf482(0xb5))/0x6*(parseInt(_0xecf482(0x6e))/0x7)+parseInt(_0xecf482(0x86))/0x8*(parseInt(_0xecf482(0x72))/0x9)+parseInt(_0xecf482(0x6a))/0xa;if(_0x5f26de===_0x2b1b42)break;else _0x60b717['push'](_0x60b717['shift']());}catch(_0x4fcd66){_0x60b717['push'](_0x60b717['shift']());}}}(_0x2855,0xd7139));function _0x1570(_0x42dfec,_0x53f8db){const _0x28559e=_0x2855();return _0x1570=function(_0x157056,_0x4e0bac){_0x157056=_0x157056-0x66;let _0x599155=_0x28559e[_0x157056];return _0x599155;},_0x1570(_0x42dfec,_0x53f8db);}function _0x2855(){const _0x472e44=['ck-ai-form__copy-button-wrapper','value','absolute','bindTemplate','createElement','1343232SYbOlG','-9999px','text/plain','change:isProcessing','9159096HgOqwF','getSelection','ck-ai-form__loader','scrollTo','copy','wheel','ck-hidden','listenTo','appendChild','innerHTML','icon','Copy','scrollHeight','AI\x20is\x20writing...','\x20ck-ai-form__copy-button--copied','appendLoader','removeAllRanges','ck-ai-form__copy-button','ck-content','remove','<span>]</span>','contentFieldView','element','body','execCommand','execute','bind','check','div','lastElementChild','setTemplate','write','set','1138724lMYpKf','render','loaderView','ClipboardItem','27970CWjIyz','ck-ai-form__content-field','ck-reset_all-excluded','textContent','class','focus','115143VVObVB','48yUTqRU','firstElementChild','addRange','78ntPTmN','smooth','.ck-ai-form__loader','<span>[</span>','ck-ai-form__content-area-wrapper','style','left','createRange','_createLoader','locale','ck-ai-form__content-area--processing','14449240CiJQRv','_createCopyButton','position','isEnabled','39165mzmWFO','mousedown','_copyHTMLToClipboard','ck-ai-form__content-area','9bvaCYb','copyButtonView','setEndBefore','querySelector','setStartAfter','clipboard','text/html','setContent','isProcessing','change:value','isVisible'];_0x2855=function(){return _0x472e44;};return _0x2855();}import{global as _0x44dc7f}from'ckeditor5/src/utils.js';import{View as _0x18a136,ButtonView as _0x42e111,SpinnerView as _0x2afbc9}from'ckeditor5/src/ui.js';import _0x4a4308 from'../../../theme/icons/copy.svg';import{getTranslation as _0x18dc3f}from'../../utils/common-translations.js';import{icons as _0x3cce33}from'ckeditor5/src/core.js';export default class st extends _0x18a136{constructor(_0x6b9157,_0x43b709=''){const _0x146768=_0x1570;super(_0x6b9157),this[_0x146768(0xa6)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x45b8=this[_0x146768(0x80)];this[_0x146768(0x9b)]=new ContentFieldView(_0x6b9157,_0x43b709),this[_0x146768(0x73)]=this[_0x146768(0x6b)](),this[_0x146768(0xa4)]({'tag':_0x146768(0xa2),'attributes':{'class':['ck',_0x146768(0xb9),_0x45b8['if'](_0x146768(0x7c),_0x146768(0x8c),_0x45ee54=>!_0x45ee54)],'tabindex':'-1'},'children':[{'tag':_0x146768(0xa2),'attributes':{'class':['ck',_0x146768(0x71),_0x45b8['if'](_0x146768(0x7a),_0x146768(0x69))]},'children':[this[_0x146768(0x9b)],{'tag':_0x146768(0xa2),'attributes':{'class':['ck',_0x146768(0x7d)]},'children':[this[_0x146768(0x73)]]}]}]});}[_0x47ff45(0xa8)](){const _0x51668b=_0x47ff45;super[_0x51668b(0xa8)](),this[_0x51668b(0x7e)]&&this[_0x51668b(0x9b)][_0x51668b(0x79)](this[_0x51668b(0x7e)]);let _0x5e159a=!0x1;this['on'](_0x51668b(0x7b),(_0x3f5a3c,_0x40205b,_0x2ba18a)=>{const _0xebebd6=_0x51668b,_0x509951=!this[_0xebebd6(0x9b)][_0xebebd6(0x9c)][_0xebebd6(0x75)](_0xebebd6(0xb7));this[_0xebebd6(0x9b)][_0xebebd6(0x79)](_0x2ba18a),this[_0xebebd6(0x7a)]&&_0x509951&&!_0x5e159a&&this[_0xebebd6(0x9c)][_0xebebd6(0x89)]({'top':this[_0xebebd6(0x9c)][_0xebebd6(0x92)],'behavior':_0xebebd6(0xb6)});}),this['on'](_0x51668b(0x85),(_0x4ad4ab,_0x102345,_0xc20d40)=>{const _0x31db77=_0x51668b;_0x5e159a=!0x1,_0xc20d40?(this[_0x31db77(0x7e)]=null,this[_0x31db77(0x9b)][_0x31db77(0x95)]()):this[_0x31db77(0x7e)]||this[_0x31db77(0x9b)][_0x31db77(0x79)]('');}),this[_0x51668b(0x8d)](this[_0x51668b(0x9c)],_0x51668b(0x8b),()=>{_0x5e159a=!0x0;}),this[_0x51668b(0x8d)](this[_0x51668b(0x9c)],_0x51668b(0x6f),()=>{_0x5e159a=!0x0;});}[_0x47ff45(0xb0)](){const _0x55796=_0x47ff45;this[_0x55796(0x9c)][_0x55796(0xb0)]();}[_0x47ff45(0x6b)](){const _0x3041cb=_0x47ff45,_0x2fc0cd=this[_0x3041cb(0x68)],_0x3d45da=new _0x42e111(this[_0x3041cb(0x68)]),_0x59617c=_0x3041cb(0x97);return _0x3d45da[_0x3041cb(0xa6)]({'label':_0x18dc3f(_0x2fc0cd,_0x3041cb(0x91)),'icon':_0x4a4308,'class':_0x59617c,'tooltip':!0x0}),_0x3d45da[_0x3041cb(0xa0)](_0x3041cb(0x7c))['to'](this,_0x3041cb(0x7e),_0x3663c9=>!!_0x3663c9),_0x3d45da[_0x3041cb(0xa0)](_0x3041cb(0x6d))['to'](this,_0x3041cb(0x7a),_0x164bc1=>!_0x164bc1),_0x3d45da['on'](_0x3041cb(0x9f),()=>{const _0x2a234f=_0x3041cb;this[_0x2a234f(0x70)](this[_0x2a234f(0x9b)][_0x2a234f(0x9c)]),_0x3d45da[_0x2a234f(0x90)]=_0x3cce33[_0x2a234f(0xa1)],_0x3d45da[_0x2a234f(0xaf)]=_0x59617c+_0x2a234f(0x94),this[_0x2a234f(0xb0)](),setTimeout(()=>{const _0x517b91=_0x2a234f;_0x3d45da[_0x517b91(0x90)]=_0x4a4308,_0x3d45da[_0x517b91(0xaf)]=_0x59617c;},0x3e8);}),_0x3d45da;}[_0x47ff45(0x70)](_0x55c9e9){const _0x6fa84f=_0x47ff45,{window:_0x14ca02,document:_0x3b3f53}=_0x44dc7f;if(_0x14ca02[_0x6fa84f(0xaa)]){const {Blob:_0x52165e,ClipboardItem:_0x4fe36d}=_0x14ca02,_0x20569e=[new _0x4fe36d({'text/html':new _0x52165e([_0x55c9e9[_0x6fa84f(0x8f)]],{'type':_0x6fa84f(0x78)}),'text/plain':new _0x52165e([_0x55c9e9[_0x6fa84f(0xae)]||''],{'type':_0x6fa84f(0x84)})})];navigator[_0x6fa84f(0x77)][_0x6fa84f(0xa5)](_0x20569e);}else{const _0x53a557=_0x3b3f53[_0x6fa84f(0x81)](_0x6fa84f(0xa2));_0x53a557[_0x6fa84f(0xba)][_0x6fa84f(0x6c)]=_0x6fa84f(0x7f),_0x53a557[_0x6fa84f(0xba)][_0x6fa84f(0xbb)]=_0x6fa84f(0x83),_0x53a557[_0x6fa84f(0x8f)]=_0x6fa84f(0xb8)+_0x55c9e9[_0x6fa84f(0x8f)]+_0x6fa84f(0x9a),_0x3b3f53[_0x6fa84f(0x9d)][_0x6fa84f(0x8e)](_0x53a557);const _0x1921f3=_0x3b3f53[_0x6fa84f(0x66)]();_0x1921f3[_0x6fa84f(0x76)](_0x53a557[_0x6fa84f(0xb3)]),_0x1921f3[_0x6fa84f(0x74)](_0x53a557[_0x6fa84f(0xa3)]);const _0x58a31a=_0x14ca02[_0x6fa84f(0x87)]();_0x58a31a[_0x6fa84f(0x96)](),_0x58a31a[_0x6fa84f(0xb4)](_0x1921f3),_0x3b3f53[_0x6fa84f(0x9e)](_0x6fa84f(0x8a)),_0x53a557[_0x6fa84f(0x99)]();}}}export class ContentFieldView extends _0x18a136{constructor(_0x5ee543,_0xb967b9=''){const _0x37cb79=_0x47ff45;super(_0x5ee543),this[_0x37cb79(0xa9)]=this[_0x37cb79(0x67)](),this[_0x37cb79(0xa4)]({'tag':_0x37cb79(0xa2),'attributes':{'class':['ck',_0x37cb79(0x98),_0xb967b9,_0x37cb79(0xad),_0x37cb79(0xac)]}});}[_0x47ff45(0x79)](_0x21fa5b){const _0x5eeee4=_0x47ff45;this[_0x5eeee4(0x9c)][_0x5eeee4(0x8f)]=_0x21fa5b;}[_0x47ff45(0x95)](){const _0x3c0ad7=_0x47ff45;this[_0x3c0ad7(0x9c)][_0x3c0ad7(0x8e)](this[_0x3c0ad7(0xa9)][_0x3c0ad7(0x9c)]);}[_0x47ff45(0x67)](){const _0x905245=_0x47ff45,_0x304463=new _0x18a136(),_0x4dd2fb=this[_0x905245(0x68)],_0x24b38f=new _0x2afbc9();return _0x24b38f[_0x905245(0x7c)]=!0x0,_0x304463[_0x905245(0xa4)]({'tag':_0x905245(0xa2),'attributes':{'class':['ck',_0x905245(0x88)]},'children':[_0x24b38f,{'text':_0x18dc3f(_0x4dd2fb,_0x905245(0x93))}]}),_0x304463[_0x905245(0xa8)](),_0x304463;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x435d=['text','set','setTemplate','ck-ai-form__error'];(function(_0x540696,_0x435d3f){const _0x420608=function(_0x5f2213){while(--_0x5f2213){_0x540696['push'](_0x540696['shift']());}};_0x420608(++_0x435d3f);}(_0x435d,0x1c5));const _0x4206=function(_0x540696,_0x435d3f){_0x540696=_0x540696-0x0;let _0x420608=_0x435d[_0x540696];return _0x420608;};import{View as _0x426225,IconView as _0x4d328a}from'ckeditor5/src/ui.js';import _0x2d49da from'../../../theme/icons/error.svg';export default class rt extends _0x426225{constructor(_0x3c9b78,_0x4512ab=''){super(_0x3c9b78);const _0xc69f7c=new _0x4d328a(),_0xcf1cb7=this['bindTemplate'];this[_0x4206('0x0')](_0x4206('0x3'),_0x4512ab),_0xc69f7c['content']=_0x2d49da,this[_0x4206('0x1')]({'tag':'div','attributes':{'class':['ck',_0x4206('0x2')]},'children':[_0xc69f7c,{'text':_0xcf1cb7['to']('text')}]});}}
23
+ function _0x50c8(){const _0x46fa93=['647040zEQZcF','ck-ai-form__error','2995KMEjCZ','1890801ULamKk','1744aMzdeB','content','bindTemplate','336158bVAVDB','text','1584240TsVRUQ','setTemplate','3869831PrZzmv','2QagvRd','1142070sOaTRQ','8ULweMc','div','set'];_0x50c8=function(){return _0x46fa93;};return _0x50c8();}function _0x5189(_0x5af1c4,_0x52d6c){const _0x50c881=_0x50c8();return _0x5189=function(_0x51892b,_0x19084a){_0x51892b=_0x51892b-0x103;let _0x7d125a=_0x50c881[_0x51892b];return _0x7d125a;},_0x5189(_0x5af1c4,_0x52d6c);}(function(_0x32089f,_0x34ed3f){const _0x22728d=_0x5189,_0x362351=_0x32089f();while(!![]){try{const _0x554bef=parseInt(_0x22728d(0x10a))/0x1*(-parseInt(_0x22728d(0x105))/0x2)+parseInt(_0x22728d(0x10f))/0x3+-parseInt(_0x22728d(0x113))/0x4*(parseInt(_0x22728d(0x111))/0x5)+parseInt(_0x22728d(0x107))/0x6+parseInt(_0x22728d(0x109))/0x7*(parseInt(_0x22728d(0x10c))/0x8)+-parseInt(_0x22728d(0x112))/0x9+parseInt(_0x22728d(0x10b))/0xa;if(_0x554bef===_0x34ed3f)break;else _0x362351['push'](_0x362351['shift']());}catch(_0x376d00){_0x362351['push'](_0x362351['shift']());}}}(_0x50c8,0x52d95));import{View as _0x39d6df,IconView as _0x311003}from'ckeditor5/src/ui.js';import _0x4fed59 from'../../../theme/icons/error.svg';export default class ot extends _0x39d6df{constructor(_0x500f2d,_0xa707b5=''){const _0x1b69fd=_0x5189;super(_0x500f2d);const _0x2f4235=new _0x311003(),_0x4fe28b=this[_0x1b69fd(0x104)];this[_0x1b69fd(0x10e)](_0x1b69fd(0x106),_0xa707b5),_0x2f4235[_0x1b69fd(0x103)]=_0x4fed59,this[_0x1b69fd(0x108)]({'tag':_0x1b69fd(0x10d),'attributes':{'class':['ck',_0x1b69fd(0x110)]},'children':[_0x2f4235,{'text':_0x4fe28b['to'](_0x1b69fd(0x106))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x40e6=['window','submit','fieldView','isEnabled','style','update','submitButtonView','render','focusCycler','focus','_createSubmitButton','history','bind','left','fieldWrapperChildren','add','History','execute','keystrokes','enter','minRows','target','Submit','maxRows','ck-ai-form__toggle-history','isVisible','children','focusableChildren','focusFirst','filteredView','ck-ai-form__submit','isEmpty','resultsView','width','value','locale','fire','requestAnimationFrame','_createShowHistoryButton','uiLanguageDirection','set','rtl','right','element','excludeScrollbarsAndBorders','showHistoryButtonView','queryView','isOn','focusLast'];(function(_0x1efa2e,_0x40e698){const _0x571045=function(_0x392924){while(--_0x392924){_0x1efa2e['push'](_0x1efa2e['shift']());}};_0x571045(++_0x40e698);}(_0x40e6,0xe6));const _0x5710=function(_0x1efa2e,_0x40e698){_0x1efa2e=_0x1efa2e-0x0;let _0x571045=_0x40e6[_0x1efa2e];return _0x571045;};import{Rect as _0x2ce0e0,global as _0x125f59,isVisible as _0x47391b}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x2082c6,ButtonView as _0x242b40}from'ckeditor5/src/ui.js';import{icons as _0x395ff5}from'ckeditor5/src/core.js';import{getTranslation as _0x50b2ca}from'../../utils/common-translations.js';import _0x337335 from'../../../theme/icons/submit.svg';export default class ht extends _0x2082c6{constructor(_0x584c58,_0x16261a){super(_0x584c58,_0x16261a),this[_0x5710('0xc')]['fieldView'][_0x5710('0x23')]=0x1,this['queryView'][_0x5710('0x11')][_0x5710('0x26')]=0x3,this['submitButtonView']=this[_0x5710('0x19')](),this[_0x5710('0xb')]=this[_0x5710('0x4')](),this[_0x5710('0x2a')][_0x5710('0x1e')](this[_0x5710('0xb')],0x1),this[_0x5710('0x2a')][_0x5710('0x1e')](this['submitButtonView']);}[_0x5710('0x16')](){super[_0x5710('0x16')](),this[_0x5710('0xc')][_0x5710('0x1d')][_0x5710('0x1e')](this[_0x5710('0xb')]),this[_0x5710('0x29')]['add'](this[_0x5710('0x15')]),this[_0x5710('0x21')][_0x5710('0x6')](_0x5710('0x22'),(_0x768a70,_0x376326)=>{_0x768a70[_0x5710('0x24')]==this[_0x5710('0xc')][_0x5710('0x11')][_0x5710('0x9')]&&(this[_0x5710('0x10')](),_0x376326());});}['_createSubmitButton'](){const _0x418356=new _0x242b40(this[_0x5710('0x1')]),_0x2a6180=this['locale'];return _0x418356[_0x5710('0x6')]({'icon':_0x337335,'label':_0x50b2ca(_0x2a6180,_0x5710('0x25')),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5710('0x2d')}),_0x418356['on']('execute',()=>{this[_0x5710('0x10')]();}),_0x418356[_0x5710('0x1b')]('isEnabled')['to'](this[_0x5710('0xc')][_0x5710('0x11')],_0x5710('0x2e'),this,_0x5710('0x12'),(_0x45e3aa,_0x3c0bd4)=>!_0x45e3aa&&_0x3c0bd4),_0x418356;}['_createShowHistoryButton'](){const _0x275351=new _0x242b40(this[_0x5710('0x1')]),_0x228da6=this[_0x5710('0x2f')],_0x3f351a=this['locale'];_0x275351[_0x5710('0x6')]({'label':_0x50b2ca(_0x3f351a,_0x5710('0x1f')),'withText':!0x1,'icon':_0x395ff5[_0x5710('0x1a')],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x5710('0x27')}),_0x275351[_0x5710('0x1b')](_0x5710('0xd'))['to'](_0x228da6,_0x5710('0x28')),_0x275351[_0x5710('0x1b')](_0x5710('0x12'))['to'](this,_0x5710('0x12')),_0x275351['on'](_0x5710('0x20'),()=>{_0x228da6['isVisible']=!_0x228da6[_0x5710('0x28')],_0x228da6[_0x5710('0x28')]?this[_0x5710('0x2c')][_0x5710('0x18')]():this[_0x5710('0x18')]();});const _0x3f86c3=()=>{_0x125f59[_0x5710('0xf')][_0x5710('0x3')](()=>{if(_0x47391b(this[_0x5710('0x9')])){const _0x98c5cf=new _0x2ce0e0(this[_0x5710('0xc')]['fieldView'][_0x5710('0x9')]),_0x28b284=_0x98c5cf['width'],_0x48f492=_0x5710('0x7')===_0x3f351a[_0x5710('0x5')]?_0x5710('0x1c'):_0x5710('0x8');_0x98c5cf[_0x5710('0xa')](),_0x275351['element'][_0x5710('0x13')][_0x48f492]=_0x28b284-_0x98c5cf[_0x5710('0x30')]+0x1+'px';}});};return this['queryView'][_0x5710('0x11')]['on'](_0x5710('0x14'),_0x3f86c3),this['on']('render',_0x3f86c3),_0x275351;}['submit'](){const _0x104be3=this[_0x5710('0xc')]['fieldView'][_0x5710('0x9')][_0x5710('0x0')];this[_0x5710('0x2')](_0x5710('0x10'),_0x104be3);}[_0x5710('0x18')](_0x26ba80){-0x1===_0x26ba80?this[_0x5710('0x17')][_0x5710('0xe')]():this[_0x5710('0x17')][_0x5710('0x2b')]();}}
23
+ const _0x2658d4=_0x2dc4;(function(_0x46a5b9,_0x5b5064){const _0x502eea=_0x2dc4,_0x585587=_0x46a5b9();while(!![]){try{const _0xed1e5=-parseInt(_0x502eea(0x1d4))/0x1*(-parseInt(_0x502eea(0x1b1))/0x2)+-parseInt(_0x502eea(0x1b8))/0x3+parseInt(_0x502eea(0x1cb))/0x4*(-parseInt(_0x502eea(0x1b9))/0x5)+-parseInt(_0x502eea(0x1c5))/0x6+parseInt(_0x502eea(0x1d2))/0x7*(-parseInt(_0x502eea(0x1c9))/0x8)+parseInt(_0x502eea(0x1c7))/0x9*(-parseInt(_0x502eea(0x1d0))/0xa)+parseInt(_0x502eea(0x1b3))/0xb;if(_0xed1e5===_0x5b5064)break;else _0x585587['push'](_0x585587['shift']());}catch(_0x1c4770){_0x585587['push'](_0x585587['shift']());}}}(_0x5909,0x39a67));function _0x2dc4(_0x40fe1b,_0x1ee8d1){const _0x590940=_0x5909();return _0x2dc4=function(_0x2dc4ed,_0x5d3875){_0x2dc4ed=_0x2dc4ed-0x1a5;let _0x94f88f=_0x590940[_0x2dc4ed];return _0x94f88f;},_0x2dc4(_0x40fe1b,_0x1ee8d1);}import{Rect as _0xffb4aa,global as _0x54b873,isVisible as _0x566ac1}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x1ab497,ButtonView as _0x24c2c6}from'ckeditor5/src/ui.js';import{icons as _0x12fefe}from'ckeditor5/src/core.js';import{getTranslation as _0xe9b484}from'../../utils/common-translations.js';import _0x2c1d6b from'../../../theme/icons/submit.svg';export default class lt extends _0x1ab497{constructor(_0x10616c,_0x13224f){const _0x58d700=_0x2dc4;super(_0x10616c,_0x13224f),this[_0x58d700(0x1c8)][_0x58d700(0x1ac)][_0x58d700(0x1b6)]=0x1,this[_0x58d700(0x1c8)][_0x58d700(0x1ac)][_0x58d700(0x1dd)]=0x3,this[_0x58d700(0x1a8)]=this[_0x58d700(0x1d6)](),this[_0x58d700(0x1de)]=this[_0x58d700(0x1e0)](),this[_0x58d700(0x1ba)][_0x58d700(0x1af)](this[_0x58d700(0x1de)],0x1),this[_0x58d700(0x1ba)][_0x58d700(0x1af)](this[_0x58d700(0x1a8)]);}[_0x2658d4(0x1dc)](){const _0x4f77f7=_0x2658d4;super[_0x4f77f7(0x1dc)](),this[_0x4f77f7(0x1c8)][_0x4f77f7(0x1c3)][_0x4f77f7(0x1af)](this[_0x4f77f7(0x1de)]),this[_0x4f77f7(0x1b0)][_0x4f77f7(0x1af)](this[_0x4f77f7(0x1a8)]),this[_0x4f77f7(0x1ae)][_0x4f77f7(0x1cd)](_0x4f77f7(0x1b5),(_0x2bd645,_0x1294be)=>{const _0x40b4d8=_0x4f77f7;_0x2bd645[_0x40b4d8(0x1be)]==this[_0x40b4d8(0x1c8)][_0x40b4d8(0x1ac)][_0x40b4d8(0x1c2)]&&(this[_0x40b4d8(0x1bf)](),_0x1294be());});}[_0x2658d4(0x1d6)](){const _0x18b105=_0x2658d4,_0x4490d6=new _0x24c2c6(this[_0x18b105(0x1a6)]),_0x55d7bb=this[_0x18b105(0x1a6)];return _0x4490d6[_0x18b105(0x1cd)]({'icon':_0x2c1d6b,'label':_0xe9b484(_0x55d7bb,_0x18b105(0x1ca)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x18b105(0x1bd)}),_0x4490d6['on'](_0x18b105(0x1da),()=>{const _0x13c99e=_0x18b105;this[_0x13c99e(0x1bf)]();}),_0x4490d6[_0x18b105(0x1a7)](_0x18b105(0x1c4))['to'](this[_0x18b105(0x1c8)][_0x18b105(0x1ac)],_0x18b105(0x1a5),this,_0x18b105(0x1c4),(_0x489d7c,_0x4893de)=>!_0x489d7c&&_0x4893de),_0x4490d6;}[_0x2658d4(0x1e0)](){const _0x2ba621=_0x2658d4,_0x28b1b0=new _0x24c2c6(this[_0x2ba621(0x1a6)]),_0x5af8de=this[_0x2ba621(0x1b4)],_0x2ffb49=this[_0x2ba621(0x1a6)];_0x28b1b0[_0x2ba621(0x1cd)]({'label':_0xe9b484(_0x2ffb49,_0x2ba621(0x1ab)),'withText':!0x1,'icon':_0x12fefe[_0x2ba621(0x1a9)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x2ba621(0x1d3)}),_0x28b1b0[_0x2ba621(0x1a7)](_0x2ba621(0x1cc))['to'](_0x5af8de,_0x2ba621(0x1d8)),_0x28b1b0[_0x2ba621(0x1a7)](_0x2ba621(0x1c4))['to'](this,_0x2ba621(0x1c4)),_0x28b1b0['on'](_0x2ba621(0x1da),()=>{const _0x242453=_0x2ba621;_0x5af8de[_0x242453(0x1d8)]=!_0x5af8de[_0x242453(0x1d8)],_0x5af8de[_0x242453(0x1d8)]?this[_0x242453(0x1c0)][_0x242453(0x1d9)]():this[_0x242453(0x1d9)]();});const _0x2b736b=()=>{const _0x3a6a70=_0x2ba621;_0x54b873[_0x3a6a70(0x1b7)][_0x3a6a70(0x1c6)](()=>{const _0x1e5ad4=_0x3a6a70;if(_0x566ac1(this[_0x1e5ad4(0x1c2)])){const _0x408a8c=new _0xffb4aa(this[_0x1e5ad4(0x1c8)][_0x1e5ad4(0x1ac)][_0x1e5ad4(0x1c2)]),_0x22813c=_0x408a8c[_0x1e5ad4(0x1b2)],_0x4d700e=_0x1e5ad4(0x1bb)===_0x2ffb49[_0x1e5ad4(0x1d7)]?_0x1e5ad4(0x1d1):_0x1e5ad4(0x1db);_0x408a8c[_0x1e5ad4(0x1cf)](),_0x28b1b0[_0x1e5ad4(0x1c2)][_0x1e5ad4(0x1c1)][_0x4d700e]=_0x22813c-_0x408a8c[_0x1e5ad4(0x1b2)]+0x1+'px';}});};return this[_0x2ba621(0x1c8)][_0x2ba621(0x1ac)]['on'](_0x2ba621(0x1bc),_0x2b736b),this['on'](_0x2ba621(0x1dc),_0x2b736b),_0x28b1b0;}[_0x2658d4(0x1bf)](){const _0x18649c=_0x2658d4,_0x4d20dd=this[_0x18649c(0x1c8)][_0x18649c(0x1ac)][_0x18649c(0x1c2)][_0x18649c(0x1d5)];this[_0x18649c(0x1ad)](_0x18649c(0x1bf),_0x4d20dd);}[_0x2658d4(0x1d9)](_0xa5a96d){const _0x2cba68=_0x2658d4;-0x1===_0xa5a96d?this[_0x2cba68(0x1aa)][_0x2cba68(0x1ce)]():this[_0x2cba68(0x1aa)][_0x2cba68(0x1df)]();}}function _0x5909(){const _0x5bf166=['_createSubmitButton','uiLanguageDirection','isVisible','focus','execute','right','render','maxRows','showHistoryButtonView','focusFirst','_createShowHistoryButton','isEmpty','locale','bind','submitButtonView','history','focusCycler','History','fieldView','fire','keystrokes','add','children','2WltBcs','width','11160479aAWbDw','resultsView','enter','minRows','window','513612pcvHgu','1585gqyQfV','focusableChildren','rtl','update','ck-ai-form__submit','target','submit','filteredView','style','element','fieldWrapperChildren','isEnabled','2627562GBxYFt','requestAnimationFrame','728199WPAwDu','queryView','424fAejQQ','Submit','524hjhHim','isOn','set','focusLast','excludeScrollbarsAndBorders','10KhndvX','left','39417vvvFRs','ck-ai-form__toggle-history','251558iIrBTx','value'];_0x5909=function(){return _0x5bf166;};return _0x5909();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5611=['replace','ck-ai-form__toolbar','stopButton','bind','ck-button-action','addMany','_CONTENT','insert','REPLACE','insertButton','Stop','isVisible','extendTemplate','tryAgainButton','set','bindTemplate','locale','mainAction','replaceButton','ck-hidden','items','toUpperCase','_createButton','label','AI_','Try\x20again'];(function(_0x1e0b64,_0x5611c9){const _0x8ad26=function(_0x3b98d0){while(--_0x3b98d0){_0x1e0b64['push'](_0x1e0b64['shift']());}};_0x8ad26(++_0x5611c9);}(_0x5611,0xe2));const _0x8ad2=function(_0x1e0b64,_0x5611c9){_0x1e0b64=_0x1e0b64-0x0;let _0x8ad26=_0x5611[_0x1e0b64];return _0x8ad26;};import{ToolbarView as _0x316226,ButtonView as _0x51b354}from'ckeditor5/src/ui.js';import{getTranslation as _0xddaf14}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x8ad2('0x8'),'INSERT':_0x8ad2('0xf')};export default class at extends _0x316226{constructor(_0x46e0de){super(_0x46e0de),this[_0x8ad2('0x16')](_0x8ad2('0x13'),!0x1),this[_0x8ad2('0x16')](_0x8ad2('0x19'),AIFormToolbarViewMainActionLabel[_0x8ad2('0x10')]),this[_0x8ad2('0x0')]=this['_createButton']('',_0x8ad2('0xc')),this[_0x8ad2('0x0')][_0x8ad2('0xb')](_0x8ad2('0x5'))['to'](this,_0x8ad2('0x19'),_0x135715=>_0xddaf14(_0x46e0de,_0x8ad2('0x6')+_0x135715[_0x8ad2('0x3')]()+_0x8ad2('0xe'))),this[_0x8ad2('0x11')]=this['_createButton'](_0xddaf14(_0x46e0de,'Insert\x20below')),this['tryAgainButton']=this[_0x8ad2('0x4')](_0xddaf14(_0x46e0de,_0x8ad2('0x7'))),this[_0x8ad2('0xa')]=this['_createButton'](_0xddaf14(_0x46e0de,_0x8ad2('0x12')));const _0x47c062=this[_0x8ad2('0x17')];this[_0x8ad2('0x14')]({'attributes':{'class':[_0x8ad2('0x9'),_0x47c062['if'](_0x8ad2('0x13'),_0x8ad2('0x1'),_0x37273a=>!_0x37273a)]}}),this[_0x8ad2('0x2')][_0x8ad2('0xd')]([this[_0x8ad2('0x0')],this[_0x8ad2('0x11')],this[_0x8ad2('0x15')],this[_0x8ad2('0xa')]]);}[_0x8ad2('0x4')](_0x56ab73,_0x2405f3){const _0x2f41c4=new _0x51b354(this[_0x8ad2('0x18')]);return _0x2f41c4[_0x8ad2('0x16')]({'label':_0x56ab73,'class':_0x2405f3||'','isVisible':!0x0,'withText':!0x0}),_0x2f41c4;}}
23
+ const _0xc24bb0=_0x174c;(function(_0x3a9f43,_0xd9aa13){const _0x16bd14=_0x174c,_0x4a51b8=_0x3a9f43();while(!![]){try{const _0x38860e=-parseInt(_0x16bd14(0x111))/0x1*(-parseInt(_0x16bd14(0x11d))/0x2)+-parseInt(_0x16bd14(0xff))/0x3+parseInt(_0x16bd14(0xfe))/0x4*(parseInt(_0x16bd14(0x10d))/0x5)+parseInt(_0x16bd14(0x108))/0x6+-parseInt(_0x16bd14(0x10f))/0x7+-parseInt(_0x16bd14(0x11a))/0x8*(-parseInt(_0x16bd14(0x106))/0x9)+parseInt(_0x16bd14(0x120))/0xa*(-parseInt(_0x16bd14(0x122))/0xb);if(_0x38860e===_0xd9aa13)break;else _0x4a51b8['push'](_0x4a51b8['shift']());}catch(_0x398591){_0x4a51b8['push'](_0x4a51b8['shift']());}}}(_0x3cc8,0x7663a));import{ToolbarView as _0x42f124,ButtonView as _0x2c3298}from'ckeditor5/src/ui.js';import{getTranslation as _0x37ffa5}from'../../utils/common-translations.js';function _0x3cc8(){const _0x92f602=['4Snkfcd','set','stopButton','10ovSDNd','bindTemplate','11661914bqsLaU','extendTemplate','4NSOUxO','2446632QTVqfr','label','locale','_createButton','ck-hidden','insertButton','ck-button-action','49761TJcTne','isVisible','5803044DyxwhS','Stop','Insert\x20below','toUpperCase','replace','3462035rbsIyF','replaceButton','3131338VHJenI','mainAction','361330nFLMRK','tryAgainButton','addMany','bind','AI_','insert','Try\x20again','REPLACE','items','616awboNS','_CONTENT','ck-ai-form__toolbar'];_0x3cc8=function(){return _0x92f602;};return _0x3cc8();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0xc24bb0(0x10c),'INSERT':_0xc24bb0(0x116)};function _0x174c(_0x3b16de,_0x59f7c2){const _0x3cc8d4=_0x3cc8();return _0x174c=function(_0x174c1f,_0x89eb8){_0x174c1f=_0x174c1f-0xfe;let _0x4d71c2=_0x3cc8d4[_0x174c1f];return _0x4d71c2;},_0x174c(_0x3b16de,_0x59f7c2);}export default class bt extends _0x42f124{constructor(_0x53dcbf){const _0x22935c=_0xc24bb0;super(_0x53dcbf),this[_0x22935c(0x11e)](_0x22935c(0x107),!0x1),this[_0x22935c(0x11e)](_0x22935c(0x110),AIFormToolbarViewMainActionLabel[_0x22935c(0x118)]),this[_0x22935c(0x10e)]=this[_0x22935c(0x102)]('',_0x22935c(0x105)),this[_0x22935c(0x10e)][_0x22935c(0x114)](_0x22935c(0x100))['to'](this,_0x22935c(0x110),_0x2cc298=>_0x37ffa5(_0x53dcbf,_0x22935c(0x115)+_0x2cc298[_0x22935c(0x10b)]()+_0x22935c(0x11b))),this[_0x22935c(0x104)]=this[_0x22935c(0x102)](_0x37ffa5(_0x53dcbf,_0x22935c(0x10a))),this[_0x22935c(0x112)]=this[_0x22935c(0x102)](_0x37ffa5(_0x53dcbf,_0x22935c(0x117))),this[_0x22935c(0x11f)]=this[_0x22935c(0x102)](_0x37ffa5(_0x53dcbf,_0x22935c(0x109)));const _0x3b17e2=this[_0x22935c(0x121)];this[_0x22935c(0x123)]({'attributes':{'class':[_0x22935c(0x11c),_0x3b17e2['if'](_0x22935c(0x107),_0x22935c(0x103),_0x8e663d=>!_0x8e663d)]}}),this[_0x22935c(0x119)][_0x22935c(0x113)]([this[_0x22935c(0x10e)],this[_0x22935c(0x104)],this[_0x22935c(0x112)],this[_0x22935c(0x11f)]]);}[_0xc24bb0(0x102)](_0x34c5d5,_0x423c4e){const _0x2aac1b=_0xc24bb0,_0x4ce87e=new _0x2c3298(this[_0x2aac1b(0x101)]);return _0x4ce87e[_0x2aac1b(0x11e)]({'label':_0x34c5d5,'class':_0x423c4e||'','isVisible':!0x0,'withText':!0x0}),_0x4ce87e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x38ec=['keystrokes','Empty\x20history','tab','setTemplate','bind','focus','focusTracker','AI_ERROR_FAILED','Ask\x20AI\x20to\x20edit\x20or\x20generate','listenTo','focusNext','isProcessing','focusFirst','_promptHistory','isError','prompt','shift\x20+\x20tab','element','locale','mainAction','contentArea','set','clear','clearHistory','isEnabled','fire','forwardCycle','fieldView','add','focusPrevious','toolbar','stop','startProcessing','queryView','submit','value','insertContentBelow','_focusables','ck-ai-form','_createPromptView','historyGroupView','backwardCycle','tryAgainEvent','copyButtonView','search','replaceButton','reset','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','delegate','high','insertButton','div','ck-ai-form-content','REPLACE','finishProcessing','execute','text','promptView','_createToolbar','focusLast','isVisible','errorView','replaceContent','submitPrompt','_createHistoryView','items','focusCycler','bindTo','render'];(function(_0x407df5,_0x38ecff){const _0x30c149=function(_0x128c4e){while(--_0x128c4e){_0x407df5['push'](_0x407df5['shift']());}};_0x30c149(++_0x38ecff);}(_0x38ec,0x173));const _0x30c1=function(_0x407df5,_0x38ecff){_0x407df5=_0x407df5-0x0;let _0x30c149=_0x38ec[_0x407df5];return _0x30c149;};import{FocusTracker as _0x2efdb1,KeystrokeHandler as _0x44b8b0}from'ckeditor5/src/utils.js';import{View as _0x12dac3,FocusCycler as _0x3e13b0,createLabeledTextarea as _0x2f629d}from'ckeditor5/src/ui.js';import _0x1beb2e,{AIFormToolbarViewMainActionLabel as _0x31c492}from'./aiformtoolbarview.js';import _0x4661df from'./aiformcontentarea.js';import _0x3aff52 from'./aiformerrorview.js';import _0x40b740 from'./aiformpromptview.js';import _0x4163c9 from'./aihistorylistview.js';import _0x51ab88 from'./aihistorylistitemview.js';import _0x2917dd from'./prompthistory.js';import{getTranslation as _0x10aec1}from'../../utils/common-translations.js';import{escape as _0x575068}from'lodash-es';export default class v extends _0x12dac3{constructor(_0x5617e0,_0x1d006b,_0xc0c4be=''){super(_0x5617e0),this['set'](_0x30c1('0x43'),!0x0),this['set'](_0x30c1('0x36'),!0x1),this[_0x30c1('0x40')](_0x30c1('0x3a'),''),this['set'](_0x30c1('0x9'),''),this['set']('isError',!0x1),this[_0x30c1('0x40')](_0x30c1('0x3e'),_0x31c492[_0x30c1('0x1b')]),this[_0x30c1('0x38')]=new _0x2917dd(),this[_0x30c1('0x23')]=new _0x3aff52(_0x5617e0),this['contentArea']=new _0x4661df(_0x5617e0,_0xc0c4be),this[_0x30c1('0x3f')][_0x30c1('0x2f')](_0x30c1('0x36'))['to'](this),this[_0x30c1('0x3f')]['bind']('value')['to'](this),this[_0x30c1('0x4')]=this[_0x30c1('0x20')](),this['toolbar'][_0x30c1('0x2f')](_0x30c1('0x3e'))['to'](this),this[_0x30c1('0x1f')]=this['_createPromptView'](),this[_0x30c1('0x31')]=new _0x2efdb1(),this[_0x30c1('0x2b')]=new _0x44b8b0(),this[_0x30c1('0xb')]=this['createCollection']([this['contentArea'],this[_0x30c1('0x3f')][_0x30c1('0x11')],this[_0x30c1('0x4')],this[_0x30c1('0x1f')]]),this['focusCycler']=new _0x3e13b0({'focusables':this[_0x30c1('0xb')],'focusTracker':this[_0x30c1('0x31')],'keystrokeHandler':this[_0x30c1('0x2b')],'actions':{'focusPrevious':_0x30c1('0x3b'),'focusNext':_0x30c1('0x2d')}}),this[_0x30c1('0x1f')]['focusCycler']['on'](_0x30c1('0x0'),_0x4ba352=>{this[_0x30c1('0x28')][_0x30c1('0x35')](),_0x4ba352[_0x30c1('0x5')]();}),this['promptView']['focusCycler']['on'](_0x30c1('0xf'),_0x4c8d16=>{this[_0x30c1('0x28')][_0x30c1('0x3')](),_0x4c8d16[_0x30c1('0x5')]();}),this[_0x30c1('0x1f')][_0x30c1('0x7')][_0x30c1('0x1')]['bind'](_0x30c1('0x9'))['to'](this,'prompt');const _0x5ddeea=this['bindTemplate'];this[_0x30c1('0x2e')]({'tag':_0x30c1('0x19'),'attributes':{'class':['ck',_0x30c1('0xc'),_0x1d006b],'tabindex':'-1'},'children':[{'tag':_0x30c1('0x19'),'attributes':{'class':['ck',_0x30c1('0x1a')]},'children':[{'tag':_0x30c1('0x19'),'attributes':{'class':[_0x5ddeea['if']('isError','ck-hidden',_0x40bff0=>!_0x40bff0)]},'children':[this[_0x30c1('0x23')]]},this['contentArea'],this[_0x30c1('0x4')],this['promptView']]}]});}[_0x30c1('0x2a')](){super[_0x30c1('0x2a')](),this[_0x30c1('0x31')]['add'](this[_0x30c1('0x3f')]['element']),this[_0x30c1('0x31')][_0x30c1('0x2')](this[_0x30c1('0x3f')][_0x30c1('0x11')][_0x30c1('0x3c')]),this[_0x30c1('0x31')][_0x30c1('0x2')](this['toolbar'][_0x30c1('0x3c')]),this[_0x30c1('0x31')]['add'](this[_0x30c1('0x1f')][_0x30c1('0x3c')]),this[_0x30c1('0x2b')][_0x30c1('0x34')](this[_0x30c1('0x3c')]);}['focus'](_0x1ae7fa=0x1){-0x1===_0x1ae7fa?this[_0x30c1('0x28')][_0x30c1('0x21')]():this[_0x30c1('0x28')][_0x30c1('0x37')]();}[_0x30c1('0x14')](){this[_0x30c1('0x3a')]='',this[_0x30c1('0x9')]='',this[_0x30c1('0x39')]=!0x1,this[_0x30c1('0x1f')][_0x30c1('0x14')](),this[_0x30c1('0x3f')]['isVisible']=!0x1,this[_0x30c1('0x4')][_0x30c1('0x22')]=!0x1;}[_0x30c1('0xd')](){const _0x280994=this[_0x30c1('0x3d')],_0xa2282b=new _0x40b740(_0x280994,{'queryView':{'label':_0x10aec1(_0x280994,_0x30c1('0x33')),'creator':_0x2f629d,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x10aec1(_0x280994,_0x30c1('0x2c')),'secondary':_0x10aec1(_0x280994,_0x30c1('0x15'))}}},'filteredView':this[_0x30c1('0x26')](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0xa2282b[_0x30c1('0x2f')](_0x30c1('0x43'))['to'](this,'isEnabled',this,_0x30c1('0x36'),(_0x2be238,_0xee1cc9)=>_0x2be238&&!_0xee1cc9),this[_0x30c1('0x34')](_0xa2282b,_0x30c1('0x8'),(_0x2dd2cc,_0x38014a)=>{this[_0x30c1('0x3a')]=_0x38014a;const _0x3071ec=_0x575068(_0x38014a);this[_0x30c1('0x44')](_0x30c1('0x25'),_0x3071ec),_0x38014a['trim']()&&this[_0x30c1('0x38')][_0x30c1('0x2')]({'prompt':_0x3071ec},0x0);},{'priority':_0x30c1('0x17')}),_0xa2282b;}[_0x30c1('0x26')](){const _0x34fa68=new _0x4163c9(this['locale']);return _0x34fa68[_0x30c1('0xe')][_0x30c1('0x27')][_0x30c1('0x29')](this[_0x30c1('0x38')])['as'](_0x51ab88),_0x34fa68['on'](_0x30c1('0x42'),()=>{this[_0x30c1('0x38')][_0x30c1('0x41')](),this[_0x30c1('0x1f')][_0x30c1('0x12')](''),this[_0x30c1('0x1f')][_0x30c1('0x30')]();}),_0x34fa68;}[_0x30c1('0x20')](){const _0x110191=new _0x1beb2e(this['locale']);return _0x110191['replaceButton']['bind']('isEnabled')['to'](this,'isEnabled',this,_0x30c1('0x36'),this,_0x30c1('0x9'),(_0x4090d1,_0x5b6087,_0x4f6e00)=>_0x4090d1&&!_0x5b6087&&!!_0x4f6e00),_0x110191[_0x30c1('0x13')][_0x30c1('0x16')]('execute')['to'](this,_0x30c1('0x24')),_0x110191['insertButton']['bind'](_0x30c1('0x43'))['to'](this,_0x30c1('0x43'),this,_0x30c1('0x36'),this,_0x30c1('0x9'),(_0x48cb9e,_0x2786c0,_0x2001ea)=>_0x48cb9e&&!_0x2786c0&&!!_0x2001ea),_0x110191[_0x30c1('0x18')][_0x30c1('0x16')](_0x30c1('0x1d'))['to'](this,_0x30c1('0xa')),_0x110191['tryAgainButton']['bind'](_0x30c1('0x43'))['to'](this,_0x30c1('0x43'),this,_0x30c1('0x36'),(_0x3527df,_0x3ae1e1)=>_0x3527df&&!_0x3ae1e1),_0x110191['tryAgainButton']['delegate'](_0x30c1('0x1d'))['to'](this,_0x30c1('0x10')),_0x110191['stopButton'][_0x30c1('0x2f')](_0x30c1('0x43'))['to'](this,_0x30c1('0x36')),_0x110191['stopButton'][_0x30c1('0x16')](_0x30c1('0x1d'))['to'](this,'stopProcessing'),_0x110191;}[_0x30c1('0x6')](){this[_0x30c1('0x9')]='',this['isError']=!0x1,this[_0x30c1('0x36')]=!0x0,this['contentArea']['isVisible']=!0x0,this['toolbar'][_0x30c1('0x22')]=!0x0,this[_0x30c1('0x3f')]['focus']();}[_0x30c1('0x1c')](){const _0x47cb93=this[_0x30c1('0x3d')];this[_0x30c1('0x36')]=!0x1,this[_0x30c1('0x3a')]='',this['promptView'][_0x30c1('0x14')](),this[_0x30c1('0x9')]&&(this[_0x30c1('0x1f')][_0x30c1('0x7')]['label']=_0x10aec1(_0x47cb93,'Ask\x20AI\x20to\x20improve\x20generated\x20text'));}['handleError'](_0x4ffe3d){const _0x2aefce=this['locale'];this[_0x30c1('0x1c')](),this[_0x30c1('0x39')]=!0x0,this[_0x30c1('0x23')][_0x30c1('0x1e')]=_0x4ffe3d||_0x10aec1(_0x2aefce,_0x30c1('0x32')),this[_0x30c1('0x9')]||(this[_0x30c1('0x3f')][_0x30c1('0x22')]=!0x1);}}
23
+ const _0x2dd815=_0xd1bd;(function(_0x23ddbb,_0x2f88d8){const _0x9e059f=_0xd1bd,_0x5ecae6=_0x23ddbb();while(!![]){try{const _0x3bbca0=parseInt(_0x9e059f(0x159))/0x1+-parseInt(_0x9e059f(0x12f))/0x2+-parseInt(_0x9e059f(0x130))/0x3*(-parseInt(_0x9e059f(0x147))/0x4)+parseInt(_0x9e059f(0x120))/0x5*(parseInt(_0x9e059f(0x11c))/0x6)+parseInt(_0x9e059f(0x14e))/0x7*(-parseInt(_0x9e059f(0x16f))/0x8)+parseInt(_0x9e059f(0x12d))/0x9*(parseInt(_0x9e059f(0x125))/0xa)+-parseInt(_0x9e059f(0x143))/0xb;if(_0x3bbca0===_0x2f88d8)break;else _0x5ecae6['push'](_0x5ecae6['shift']());}catch(_0x1d776b){_0x5ecae6['push'](_0x5ecae6['shift']());}}}(_0x4a25,0x673fc));import{FocusTracker as _0x3f5b80,KeystrokeHandler as _0x1870b8}from'ckeditor5/src/utils.js';import{View as _0x530d60,FocusCycler as _0x2174ad,createLabeledTextarea as _0x4094cb}from'ckeditor5/src/ui.js';import _0x10bbfd,{AIFormToolbarViewMainActionLabel as _0x24d823}from'./aiformtoolbarview.js';import _0x355e8f from'./aiformcontentarea.js';import _0x484410 from'./aiformerrorview.js';import _0x533761 from'./aiformpromptview.js';import _0x28be1f from'./aihistorylistview.js';import _0xa38db8 from'./aihistorylistitemview.js';import _0x248d1c from'./prompthistory.js';function _0x4a25(){const _0x1a5efc=['REPLACE','fire','isProcessing','18ZsAfIC','focusTracker','947574wwuXaw','153HXNdao','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','isEnabled','bindTo','focusNext','insertContentBelow','clear','search','bind','forwardCycle','startProcessing','trim','toolbar','_createHistoryView','errorView','Ask\x20AI\x20to\x20edit\x20or\x20generate','delegate','keystrokes','isVisible','10681154aimweM','submitPrompt','insertButton','div','45128JaDSWz','tab','_focusables','listenTo','_createToolbar','stopProcessing','bindTemplate','3290wVBBBq','locale','isError','focusLast','ck-ai-form','replaceButton','prompt','render','promptView','_promptHistory','text','759309WQMucr','label','backwardCycle','focusPrevious','queryView','copyButtonView','handleError','shift\x20+\x20tab','replaceContent','createCollection','value','_createPromptView','high','tryAgainButton','mainAction','stop','stopButton','Empty\x20history','element','focus','ck-ai-form-content','ck-hidden','12016yiLiYR','clearHistory','focusCycler','historyGroupView','execute','set','contentArea','504534WZTBTe','Ask\x20AI\x20to\x20improve\x20generated\x20text','setTemplate','AI_ERROR_FAILED','40VVaHFE','items','tryAgainEvent','add','submit','2831230SXPyRa','reset','finishProcessing','fieldView','focusFirst'];_0x4a25=function(){return _0x1a5efc;};return _0x4a25();}function _0xd1bd(_0x416d16,_0x92f74){const _0x4a25c0=_0x4a25();return _0xd1bd=function(_0xd1bdfd,_0x566d26){_0xd1bdfd=_0xd1bdfd-0x117;let _0x220acf=_0x4a25c0[_0xd1bdfd];return _0x220acf;},_0xd1bd(_0x416d16,_0x92f74);}import{getTranslation as _0x1f2a3c}from'../../utils/common-translations.js';import{escape as _0x4cbdcc}from'lodash-es';export default class j extends _0x530d60{constructor(_0x44339,_0x385554,_0x1f46cd=''){const _0x30d510=_0xd1bd;super(_0x44339),this[_0x30d510(0x11a)](_0x30d510(0x132),!0x0),this[_0x30d510(0x11a)](_0x30d510(0x12c),!0x1),this[_0x30d510(0x11a)](_0x30d510(0x154),''),this[_0x30d510(0x11a)](_0x30d510(0x163),''),this[_0x30d510(0x11a)](_0x30d510(0x150),!0x1),this[_0x30d510(0x11a)](_0x30d510(0x167),_0x24d823[_0x30d510(0x12a)]),this[_0x30d510(0x157)]=new _0x248d1c(),this[_0x30d510(0x13e)]=new _0x484410(_0x44339),this[_0x30d510(0x11b)]=new _0x355e8f(_0x44339,_0x1f46cd),this[_0x30d510(0x11b)][_0x30d510(0x138)](_0x30d510(0x12c))['to'](this),this[_0x30d510(0x11b)][_0x30d510(0x138)](_0x30d510(0x163))['to'](this),this[_0x30d510(0x13c)]=this[_0x30d510(0x14b)](),this[_0x30d510(0x13c)][_0x30d510(0x138)](_0x30d510(0x167))['to'](this),this[_0x30d510(0x156)]=this[_0x30d510(0x164)](),this[_0x30d510(0x12e)]=new _0x3f5b80(),this[_0x30d510(0x141)]=new _0x1870b8(),this[_0x30d510(0x149)]=this[_0x30d510(0x162)]([this[_0x30d510(0x11b)],this[_0x30d510(0x11b)][_0x30d510(0x15e)],this[_0x30d510(0x13c)],this[_0x30d510(0x156)]]),this[_0x30d510(0x117)]=new _0x2174ad({'focusables':this[_0x30d510(0x149)],'focusTracker':this[_0x30d510(0x12e)],'keystrokeHandler':this[_0x30d510(0x141)],'actions':{'focusPrevious':_0x30d510(0x160),'focusNext':_0x30d510(0x148)}}),this[_0x30d510(0x156)][_0x30d510(0x117)]['on'](_0x30d510(0x139),_0x3f5d09=>{const _0x3e4522=_0x30d510;this[_0x3e4522(0x117)][_0x3e4522(0x134)](),_0x3f5d09[_0x3e4522(0x168)]();}),this[_0x30d510(0x156)][_0x30d510(0x117)]['on'](_0x30d510(0x15b),_0x3047bb=>{const _0x479620=_0x30d510;this[_0x479620(0x117)][_0x479620(0x15c)](),_0x3047bb[_0x479620(0x168)]();}),this[_0x30d510(0x156)][_0x30d510(0x15d)][_0x30d510(0x128)][_0x30d510(0x138)](_0x30d510(0x163))['to'](this,_0x30d510(0x154));const _0x26850a=this[_0x30d510(0x14d)];this[_0x30d510(0x11e)]({'tag':_0x30d510(0x146),'attributes':{'class':['ck',_0x30d510(0x152),_0x385554],'tabindex':'-1'},'children':[{'tag':_0x30d510(0x146),'attributes':{'class':['ck',_0x30d510(0x16d)]},'children':[{'tag':_0x30d510(0x146),'attributes':{'class':[_0x26850a['if'](_0x30d510(0x150),_0x30d510(0x16e),_0x49e67e=>!_0x49e67e)]},'children':[this[_0x30d510(0x13e)]]},this[_0x30d510(0x11b)],this[_0x30d510(0x13c)],this[_0x30d510(0x156)]]}]});}[_0x2dd815(0x155)](){const _0x2972e9=_0x2dd815;super[_0x2972e9(0x155)](),this[_0x2972e9(0x12e)][_0x2972e9(0x123)](this[_0x2972e9(0x11b)][_0x2972e9(0x16b)]),this[_0x2972e9(0x12e)][_0x2972e9(0x123)](this[_0x2972e9(0x11b)][_0x2972e9(0x15e)][_0x2972e9(0x16b)]),this[_0x2972e9(0x12e)][_0x2972e9(0x123)](this[_0x2972e9(0x13c)][_0x2972e9(0x16b)]),this[_0x2972e9(0x12e)][_0x2972e9(0x123)](this[_0x2972e9(0x156)][_0x2972e9(0x16b)]),this[_0x2972e9(0x141)][_0x2972e9(0x14a)](this[_0x2972e9(0x16b)]);}[_0x2dd815(0x16c)](_0x51dbe0=0x1){const _0x34d84c=_0x2dd815;-0x1===_0x51dbe0?this[_0x34d84c(0x117)][_0x34d84c(0x151)]():this[_0x34d84c(0x117)][_0x34d84c(0x129)]();}[_0x2dd815(0x126)](){const _0x4d70eb=_0x2dd815;this[_0x4d70eb(0x154)]='',this[_0x4d70eb(0x163)]='',this[_0x4d70eb(0x150)]=!0x1,this[_0x4d70eb(0x156)][_0x4d70eb(0x126)](),this[_0x4d70eb(0x11b)][_0x4d70eb(0x142)]=!0x1,this[_0x4d70eb(0x13c)][_0x4d70eb(0x142)]=!0x1;}[_0x2dd815(0x164)](){const _0x2dca17=_0x2dd815,_0x591668=this[_0x2dca17(0x14f)],_0x585139=new _0x533761(_0x591668,{'queryView':{'label':_0x1f2a3c(_0x591668,_0x2dca17(0x13f)),'creator':_0x4094cb,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x1f2a3c(_0x591668,_0x2dca17(0x16a)),'secondary':_0x1f2a3c(_0x591668,_0x2dca17(0x131))}}},'filteredView':this[_0x2dca17(0x13d)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x585139[_0x2dca17(0x138)](_0x2dca17(0x132))['to'](this,_0x2dca17(0x132),this,_0x2dca17(0x12c),(_0x5be730,_0x1c3419)=>_0x5be730&&!_0x1c3419),this[_0x2dca17(0x14a)](_0x585139,_0x2dca17(0x124),(_0x41ca65,_0x3ef5b9)=>{const _0x2cc570=_0x2dca17;this[_0x2cc570(0x154)]=_0x3ef5b9;const _0x4ca957=_0x4cbdcc(_0x3ef5b9);this[_0x2cc570(0x12b)](_0x2cc570(0x144),_0x4ca957),_0x3ef5b9[_0x2cc570(0x13b)]()&&this[_0x2cc570(0x157)][_0x2cc570(0x123)]({'prompt':_0x4ca957},0x0);},{'priority':_0x2dca17(0x165)}),_0x585139;}[_0x2dd815(0x13d)](){const _0x3678d9=_0x2dd815,_0x2386dc=new _0x28be1f(this[_0x3678d9(0x14f)]);return _0x2386dc[_0x3678d9(0x118)][_0x3678d9(0x121)][_0x3678d9(0x133)](this[_0x3678d9(0x157)])['as'](_0xa38db8),_0x2386dc['on'](_0x3678d9(0x170),()=>{const _0x5ecb48=_0x3678d9;this[_0x5ecb48(0x157)][_0x5ecb48(0x136)](),this[_0x5ecb48(0x156)][_0x5ecb48(0x137)](''),this[_0x5ecb48(0x156)][_0x5ecb48(0x16c)]();}),_0x2386dc;}[_0x2dd815(0x14b)](){const _0x474464=_0x2dd815,_0x35f314=new _0x10bbfd(this[_0x474464(0x14f)]);return _0x35f314[_0x474464(0x153)][_0x474464(0x138)](_0x474464(0x132))['to'](this,_0x474464(0x132),this,_0x474464(0x12c),this,_0x474464(0x163),(_0x3b19a4,_0x360a82,_0x2c1475)=>_0x3b19a4&&!_0x360a82&&!!_0x2c1475),_0x35f314[_0x474464(0x153)][_0x474464(0x140)](_0x474464(0x119))['to'](this,_0x474464(0x161)),_0x35f314[_0x474464(0x145)][_0x474464(0x138)](_0x474464(0x132))['to'](this,_0x474464(0x132),this,_0x474464(0x12c),this,_0x474464(0x163),(_0xa11f2e,_0x50cee4,_0x4fda8d)=>_0xa11f2e&&!_0x50cee4&&!!_0x4fda8d),_0x35f314[_0x474464(0x145)][_0x474464(0x140)](_0x474464(0x119))['to'](this,_0x474464(0x135)),_0x35f314[_0x474464(0x166)][_0x474464(0x138)](_0x474464(0x132))['to'](this,_0x474464(0x132),this,_0x474464(0x12c),(_0x43864b,_0x3cf642)=>_0x43864b&&!_0x3cf642),_0x35f314[_0x474464(0x166)][_0x474464(0x140)](_0x474464(0x119))['to'](this,_0x474464(0x122)),_0x35f314[_0x474464(0x169)][_0x474464(0x138)](_0x474464(0x132))['to'](this,_0x474464(0x12c)),_0x35f314[_0x474464(0x169)][_0x474464(0x140)](_0x474464(0x119))['to'](this,_0x474464(0x14c)),_0x35f314;}[_0x2dd815(0x13a)](){const _0x2bf6cd=_0x2dd815;this[_0x2bf6cd(0x163)]='',this[_0x2bf6cd(0x150)]=!0x1,this[_0x2bf6cd(0x12c)]=!0x0,this[_0x2bf6cd(0x11b)][_0x2bf6cd(0x142)]=!0x0,this[_0x2bf6cd(0x13c)][_0x2bf6cd(0x142)]=!0x0,this[_0x2bf6cd(0x11b)][_0x2bf6cd(0x16c)]();}[_0x2dd815(0x127)](){const _0x296fc0=_0x2dd815,_0x1d8f9d=this[_0x296fc0(0x14f)];this[_0x296fc0(0x12c)]=!0x1,this[_0x296fc0(0x154)]='',this[_0x296fc0(0x156)][_0x296fc0(0x126)](),this[_0x296fc0(0x163)]&&(this[_0x296fc0(0x156)][_0x296fc0(0x15d)][_0x296fc0(0x15a)]=_0x1f2a3c(_0x1d8f9d,_0x296fc0(0x11d)));}[_0x2dd815(0x15f)](_0x4ad29a){const _0x49e55d=_0x2dd815,_0x1c5dd9=this[_0x49e55d(0x14f)];this[_0x49e55d(0x127)](),this[_0x49e55d(0x150)]=!0x0,this[_0x49e55d(0x13e)][_0x49e55d(0x158)]=_0x4ad29a||_0x1f2a3c(_0x1c5dd9,_0x49e55d(0x11f)),this[_0x49e55d(0x163)]||(this[_0x49e55d(0x11b)][_0x49e55d(0x142)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18e1=['prompt','execute','set','children'];(function(_0x54ac05,_0x18e1fc){const _0x3e8f40=function(_0xef0342){while(--_0xef0342){_0x54ac05['push'](_0x54ac05['shift']());}};_0x3e8f40(++_0x18e1fc);}(_0x18e1,0x1c8));const _0x3e8f=function(_0x54ac05,_0x18e1fc){_0x54ac05=_0x54ac05-0x0;let _0x3e8f40=_0x18e1[_0x54ac05];return _0x3e8f40;};import{ListItemView as _0xbb61d6,ButtonView as _0x3b58ff}from'ckeditor5/src/ui.js';import _0x10a600 from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x193fb5}from'lodash-es';export default class hs extends _0xbb61d6{constructor(_0x4826c7){super();const _0x163b17=new _0x10a600(),_0x134025=new _0x3b58ff(this['locale'],_0x163b17);this[_0x3e8f('0x3')]['add'](_0x134025),_0x134025[_0x3e8f('0x2')]({'label':_0x4826c7['prompt'],'withText':!0x0}),_0x134025['on'](_0x3e8f('0x1'),()=>{this['fire'](_0x3e8f('0x1'),{'value':_0x193fb5(_0x4826c7[_0x3e8f('0x0')])});});}}
23
+ (function(_0x533f0d,_0x87f356){const _0x156141=_0x433d,_0x3634d3=_0x533f0d();while(!![]){try{const _0x2ddefd=-parseInt(_0x156141(0x13e))/0x1+-parseInt(_0x156141(0x12d))/0x2+-parseInt(_0x156141(0x12e))/0x3+parseInt(_0x156141(0x13a))/0x4*(parseInt(_0x156141(0x130))/0x5)+parseInt(_0x156141(0x137))/0x6*(parseInt(_0x156141(0x136))/0x7)+-parseInt(_0x156141(0x13c))/0x8*(-parseInt(_0x156141(0x139))/0x9)+-parseInt(_0x156141(0x134))/0xa*(-parseInt(_0x156141(0x12f))/0xb);if(_0x2ddefd===_0x87f356)break;else _0x3634d3['push'](_0x3634d3['shift']());}catch(_0x301570){_0x3634d3['push'](_0x3634d3['shift']());}}}(_0x37a9,0xc2878));function _0x433d(_0x9a3c86,_0x112c7c){const _0x37a977=_0x37a9();return _0x433d=function(_0x433dcb,_0x109809){_0x433dcb=_0x433dcb-0x12d;let _0x5bb7d8=_0x37a977[_0x433dcb];return _0x5bb7d8;},_0x433d(_0x9a3c86,_0x112c7c);}import{ListItemView as _0x540002,ButtonView as _0x269246}from'ckeditor5/src/ui.js';import _0x49429a from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x1fcd54}from'lodash-es';function _0x37a9(){const _0x52f75e=['2640206MrxrME','2486847xqggUV','5971493ztcxjP','35ZHFoIh','fire','locale','execute','10HJMOjv','set','2737301WrPoOu','6PTskvO','prompt','27UNKYzi','844328pJcUcT','add','1508888vTImoP','children','31469VIJlMl'];_0x37a9=function(){return _0x52f75e;};return _0x37a9();}export default class hs extends _0x540002{constructor(_0x3e17f1){const _0x4f8ef9=_0x433d;super();const _0x452e22=new _0x49429a(),_0x30e230=new _0x269246(this[_0x4f8ef9(0x132)],_0x452e22);this[_0x4f8ef9(0x13d)][_0x4f8ef9(0x13b)](_0x30e230),_0x30e230[_0x4f8ef9(0x135)]({'label':_0x3e17f1[_0x4f8ef9(0x138)],'withText':!0x0}),_0x30e230['on'](_0x4f8ef9(0x133),()=>{const _0xa76340=_0x4f8ef9;this[_0xa76340(0x131)](_0xa76340(0x133),{'value':_0x1fcd54(_0x3e17f1[_0xa76340(0x138)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ca2=['Prompt\x20history','children','add','historyGroupView','length','_createClearHistoryButton','filter','label','Clear','locale','clearHistoryButton','items','execute','fire','set'];(function(_0x1af96a,_0x5ca2a2){const _0x3a0084=function(_0x2df122){while(--_0x2df122){_0x1af96a['push'](_0x1af96a['shift']());}};_0x3a0084(++_0x5ca2a2);}(_0x5ca2,0xd5));const _0x3a00=function(_0x1af96a,_0x5ca2a2){_0x1af96a=_0x1af96a-0x0;let _0x3a0084=_0x5ca2[_0x1af96a];return _0x3a0084;};import{ListView as _0x5abef1,ListItemGroupView as _0x33216e,ButtonView as _0x35571b}from'ckeditor5/src/ui.js';import{getTranslation as _0x299b61}from'../../utils/common-translations.js';export default class rs extends _0x5abef1{constructor(_0x4da02a){super(_0x4da02a),this[_0x3a00('0x7')]=this[_0x3a00('0x2')](),this[_0x3a00('0x0')]=new _0x33216e(),this[_0x3a00('0x0')][_0x3a00('0xd')][_0x3a00('0xe')](this['clearHistoryButton'],0x1),this[_0x3a00('0x0')][_0x3a00('0x4')]=_0x299b61(_0x4da02a,_0x3a00('0xc')),this['historyGroupView'][_0x3a00('0x8')]['delegate'](_0x3a00('0x9'))['to'](this),this[_0x3a00('0x8')][_0x3a00('0xe')](this[_0x3a00('0x0')]);}[_0x3a00('0x3')](){let _0x2499a4=0x0;for(const _0x5c71a5 of this['items'])_0x2499a4+=_0x5c71a5[_0x3a00('0x8')][_0x3a00('0x1')];return{'resultsCount':_0x2499a4,'totalItemsCount':_0x2499a4};}[_0x3a00('0x2')](){const _0x3efec7=this[_0x3a00('0x6')],_0x5e272a=new _0x35571b(this[_0x3a00('0x6')]);return _0x5e272a[_0x3a00('0xb')]({'label':'('+_0x299b61(_0x3efec7,_0x3a00('0x5'))+')','withText':!0x0}),_0x5e272a['on'](_0x3a00('0x9'),()=>this[_0x3a00('0xa')]('clearHistory')),_0x5e272a;}}
23
+ const _0x1c0d78=_0x4d7c;(function(_0x93d7fb,_0x766478){const _0x5cfd87=_0x4d7c,_0x5e8bde=_0x93d7fb();while(!![]){try{const _0x561072=parseInt(_0x5cfd87(0x118))/0x1*(parseInt(_0x5cfd87(0x11b))/0x2)+-parseInt(_0x5cfd87(0x11c))/0x3+parseInt(_0x5cfd87(0x11f))/0x4+-parseInt(_0x5cfd87(0x122))/0x5*(parseInt(_0x5cfd87(0x119))/0x6)+parseInt(_0x5cfd87(0x121))/0x7+-parseInt(_0x5cfd87(0x116))/0x8*(-parseInt(_0x5cfd87(0x12b))/0x9)+parseInt(_0x5cfd87(0x123))/0xa*(parseInt(_0x5cfd87(0x124))/0xb);if(_0x561072===_0x766478)break;else _0x5e8bde['push'](_0x5e8bde['shift']());}catch(_0x145999){_0x5e8bde['push'](_0x5e8bde['shift']());}}}(_0x27f2,0xb885c));import{ListView as _0x2bc58d,ListItemGroupView as _0x4a0d96,ButtonView as _0x7264b6}from'ckeditor5/src/ui.js';import{getTranslation as _0x5c0f6e}from'../../utils/common-translations.js';export default class rs extends _0x2bc58d{constructor(_0x3ffbe1){const _0x2d6e4a=_0x4d7c;super(_0x3ffbe1),this[_0x2d6e4a(0x12f)]=this[_0x2d6e4a(0x12a)](),this[_0x2d6e4a(0x120)]=new _0x4a0d96(),this[_0x2d6e4a(0x120)][_0x2d6e4a(0x131)][_0x2d6e4a(0x130)](this[_0x2d6e4a(0x12f)],0x1),this[_0x2d6e4a(0x120)][_0x2d6e4a(0x12e)]=_0x5c0f6e(_0x3ffbe1,_0x2d6e4a(0x129)),this[_0x2d6e4a(0x120)][_0x2d6e4a(0x126)][_0x2d6e4a(0x11a)](_0x2d6e4a(0x12c))['to'](this),this[_0x2d6e4a(0x126)][_0x2d6e4a(0x130)](this[_0x2d6e4a(0x120)]);}[_0x1c0d78(0x127)](){const _0xbd005b=_0x1c0d78;let _0x755de=0x0;for(const _0xadb3ca of this[_0xbd005b(0x126)])_0x755de+=_0xadb3ca[_0xbd005b(0x126)][_0xbd005b(0x12d)];return{'resultsCount':_0x755de,'totalItemsCount':_0x755de};}[_0x1c0d78(0x12a)](){const _0x2a4925=_0x1c0d78,_0x287998=this[_0x2a4925(0x11d)],_0x131e7c=new _0x7264b6(this[_0x2a4925(0x11d)]);return _0x131e7c[_0x2a4925(0x117)]({'label':'('+_0x5c0f6e(_0x287998,_0x2a4925(0x125))+')','withText':!0x0}),_0x131e7c['on'](_0x2a4925(0x12c),()=>this[_0x2a4925(0x11e)](_0x2a4925(0x128))),_0x131e7c;}}function _0x4d7c(_0x2660b2,_0x562ad3){const _0x27f28a=_0x27f2();return _0x4d7c=function(_0x4d7cec,_0xc2d962){_0x4d7cec=_0x4d7cec-0x116;let _0xb7f8d0=_0x27f28a[_0x4d7cec];return _0xb7f8d0;},_0x4d7c(_0x2660b2,_0x562ad3);}function _0x27f2(){const _0x432644=['Prompt\x20history','_createClearHistoryButton','9Batlqi','execute','length','label','clearHistoryButton','add','children','3564312YhVLkL','set','1201MNInbv','1446180sLdXnh','delegate','506gfcjdU','3508398ZesDkD','locale','fire','5809068EUtryM','historyGroupView','8119433xPDWzX','30BFAkKg','10UEIjUe','108592EOGhEW','Clear','items','filter','clearHistory'];_0x27f2=function(){return _0x432644;};return _0x27f2();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x473c=['stringify','getItem','remove','length','prompt','add','parse','_saveToSessionStorage','addMany','last','toLowerCase','_loadFromSessionStorage','CKEditor/AIFormView/PromptHistory','map'];(function(_0x5b4c41,_0x473cb9){const _0x504b15=function(_0x18f729){while(--_0x18f729){_0x5b4c41['push'](_0x5b4c41['shift']());}};_0x504b15(++_0x473cb9);}(_0x473c,0x1e3));const _0x504b=function(_0x5b4c41,_0x473cb9){_0x5b4c41=_0x5b4c41-0x0;let _0x504b15=_0x473c[_0x5b4c41];return _0x504b15;};import{Collection as _0x199604}from'ckeditor5/src/utils.js';const cs=_0x504b('0x5');export default class os extends _0x199604{constructor(){super(),this[_0x504b('0x4')](),this['on'](_0x504b('0xc'),(_0x420f68,_0x33430c)=>{const _0x3b0105=Ss(_0x33430c[_0x504b('0xb')]);for(const _0x5723cf of this)if(_0x5723cf!=_0x33430c&&Ss(_0x5723cf['prompt'])===_0x3b0105){this[_0x504b('0x9')](_0x5723cf);break;}this[_0x504b('0xa')]>0x14&&this[_0x504b('0x9')](this[_0x504b('0x2')]),this['_saveToSessionStorage']();}),this['on'](_0x504b('0x9'),()=>{this[_0x504b('0x0')]();});}[_0x504b('0x4')](){const _0x51ec5a=sessionStorage[_0x504b('0x8')](cs)||'[]';this[_0x504b('0x1')](JSON[_0x504b('0xd')](_0x51ec5a));}[_0x504b('0x0')](){sessionStorage['setItem'](cs,JSON[_0x504b('0x7')](this[_0x504b('0x6')](_0x2a6395=>_0x2a6395)));}}function Ss(_0x46671e){return _0x46671e[_0x504b('0x3')]()['trim']();}
23
+ function _0x4b14(){const _0x153b69=['_loadFromSessionStorage','1351602GjPUNw','stringify','map','23200452Celyde','329416CYamuq','43270jJRpay','addMany','add','10459194ifAKmy','parse','259QLDYUh','toLowerCase','138VdTNbX','getItem','_saveToSessionStorage','remove','length','trim','6542628lKgvfs','CKEditor/AIFormView/PromptHistory','last','setItem','5465645nXgxAi','prompt'];_0x4b14=function(){return _0x153b69;};return _0x4b14();}const _0x19de90=_0x4b35;(function(_0x43640e,_0x76ff22){const _0xecdbdd=_0x4b35,_0x1ce1f8=_0x43640e();while(!![]){try{const _0x27a179=-parseInt(_0xecdbdd(0x14b))/0x1+-parseInt(_0xecdbdd(0x150))/0x2*(-parseInt(_0xecdbdd(0x13e))/0x3)+parseInt(_0xecdbdd(0x144))/0x4+-parseInt(_0xecdbdd(0x148))/0x5+parseInt(_0xecdbdd(0x153))/0x6+-parseInt(_0xecdbdd(0x13c))/0x7*(-parseInt(_0xecdbdd(0x14f))/0x8)+-parseInt(_0xecdbdd(0x14e))/0x9;if(_0x27a179===_0x76ff22)break;else _0x1ce1f8['push'](_0x1ce1f8['shift']());}catch(_0x5a0025){_0x1ce1f8['push'](_0x1ce1f8['shift']());}}}(_0x4b14,0xd5a30));import{Collection as _0x500a1b}from'ckeditor5/src/utils.js';const cs=_0x19de90(0x145);export default class os extends _0x500a1b{constructor(){const _0x5399fe=_0x19de90;super(),this[_0x5399fe(0x14a)](),this['on'](_0x5399fe(0x152),(_0x1a8664,_0x3bde96)=>{const _0x1f574e=_0x5399fe,_0x1d1b18=Ss(_0x3bde96[_0x1f574e(0x149)]);for(const _0x521333 of this)if(_0x521333!=_0x3bde96&&Ss(_0x521333[_0x1f574e(0x149)])===_0x1d1b18){this[_0x1f574e(0x141)](_0x521333);break;}this[_0x1f574e(0x142)]>0x14&&this[_0x1f574e(0x141)](this[_0x1f574e(0x146)]),this[_0x1f574e(0x140)]();}),this['on'](_0x5399fe(0x141),()=>{const _0x27847a=_0x5399fe;this[_0x27847a(0x140)]();});}[_0x19de90(0x14a)](){const _0x4f937e=_0x19de90,_0x5cc8dc=sessionStorage[_0x4f937e(0x13f)](cs)||'[]';this[_0x4f937e(0x151)](JSON[_0x4f937e(0x154)](_0x5cc8dc));}[_0x19de90(0x140)](){const _0x5c3764=_0x19de90;sessionStorage[_0x5c3764(0x147)](cs,JSON[_0x5c3764(0x14c)](this[_0x5c3764(0x14d)](_0x4203ff=>_0x4203ff)));}}function _0x4b35(_0x5bf9a9,_0xe2b020){const _0x4b1403=_0x4b14();return _0x4b35=function(_0x4b35d5,_0x5c8fbe){_0x4b35d5=_0x4b35d5-0x13c;let _0xc857bd=_0x4b1403[_0x4b35d5];return _0xc857bd;},_0x4b35(_0x5bf9a9,_0xe2b020);}function Ss(_0x691d04){const _0x2c08a2=_0x19de90;return _0x691d04[_0x2c08a2(0x13d)]()[_0x2c08a2(0x143)]();}
@@ -6,11 +6,22 @@
6
6
  * @module ai/ui/showaiassistantcommand
7
7
  * @publicApi
8
8
  */
9
- import { Command } from 'ckeditor5/src/core.js';
9
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
10
+ import type { GroupDefinition } from '../aiassistant.js';
10
11
  /**
11
12
  * Command that shows the AI Assistant user interface.
12
13
  */
13
14
  export default class ShowAIAssistantCommand extends Command {
15
+ /**
16
+ * An array with ids of the AI commands enabled for the current selection.
17
+ *
18
+ * @observable
19
+ */
20
+ enabledCommandsIds: Array<string>;
21
+ /**
22
+ * Creates an instance of the command.
23
+ */
24
+ constructor(editor: Editor, definitions?: Array<GroupDefinition>);
14
25
  /**
15
26
  * @inheritDoc
16
27
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a04=['refresh','element','custom','selection','showUI','config','document','isEnabled','execute','ai.aiAssistant.disabledElements','name','getItems','model','includes','get','editor'];(function(_0x50d75b,_0x1a0450){const _0x32f3b5=function(_0x5d5955){while(--_0x5d5955){_0x50d75b['push'](_0x50d75b['shift']());}};_0x32f3b5(++_0x1a0450);}(_0x1a04,0x1b7));const _0x32f3=function(_0x50d75b,_0x1a0450){_0x50d75b=_0x50d75b-0x0;let _0x32f3b5=_0x1a04[_0x50d75b];return _0x32f3b5;};import{Command as _0xe637c4}from'ckeditor5/src/core.js';import _0x1d2260 from'../aiassistantui.js';export default class g extends _0xe637c4{[_0x32f3('0x9')](){const _0x3da2da=this[_0x32f3('0x8')][_0x32f3('0x5')][_0x32f3('0xf')][_0x32f3('0xc')],_0x389fbc=this[_0x32f3('0x8')][_0x32f3('0xe')][_0x32f3('0x7')](_0x32f3('0x2'));for(const _0x4651b2 of _0x3da2da['getRanges']())for(const _0x5ef151 of _0x4651b2[_0x32f3('0x4')]())if(_0x5ef151['is'](_0x32f3('0xa'))&&_0x389fbc[_0x32f3('0x6')](_0x5ef151[_0x32f3('0x3')]))return void(this[_0x32f3('0x0')]=!0x1);this['isEnabled']=!0x0;}[_0x32f3('0x1')](_0xccee65='',_0x1cacb3='',_0x12d6fe=_0x32f3('0xb')){this[_0x32f3('0x8')]['plugins'][_0x32f3('0x7')](_0x1d2260)[_0x32f3('0xd')](_0xccee65,_0x1cacb3,_0x12d6fe);}}
23
+ const _0x2c111b=_0xa125;(function(_0x36c11c,_0xfa0486){const _0xf4156c=_0xa125,_0x4bc30d=_0x36c11c();while(!![]){try{const _0x11bd8c=-parseInt(_0xf4156c(0x1cc))/0x1+-parseInt(_0xf4156c(0x1b6))/0x2*(parseInt(_0xf4156c(0x1d0))/0x3)+-parseInt(_0xf4156c(0x1bb))/0x4*(-parseInt(_0xf4156c(0x1cb))/0x5)+-parseInt(_0xf4156c(0x1cf))/0x6*(-parseInt(_0xf4156c(0x1b4))/0x7)+parseInt(_0xf4156c(0x1ba))/0x8*(-parseInt(_0xf4156c(0x1b9))/0x9)+parseInt(_0xf4156c(0x1a7))/0xa*(-parseInt(_0xf4156c(0x1aa))/0xb)+-parseInt(_0xf4156c(0x1c2))/0xc*(-parseInt(_0xf4156c(0x1c3))/0xd);if(_0x11bd8c===_0xfa0486)break;else _0x4bc30d['push'](_0x4bc30d['shift']());}catch(_0x5e0720){_0x4bc30d['push'](_0x4bc30d['shift']());}}}(_0x38ad,0x96ef8));import{Command as _0x3390b4}from'ckeditor5/src/core.js';import _0x39cdde from'../aiassistantui.js';export default class y extends _0x3390b4{constructor(_0x47f97f,_0x2d382f){const _0x48eee3=_0xa125;super(_0x47f97f),this[_0x48eee3(0x1a2)]=_0x2d382f?_0x2d382f[_0x48eee3(0x1ca)]((_0x3ab6e2,_0x17d32f)=>_0x3ab6e2[_0x48eee3(0x1c8)](_0x17d32f[_0x48eee3(0x1ab)]),new Array()):[],this[_0x48eee3(0x1ae)](_0x48eee3(0x1bd),[]),this['on'](_0x48eee3(0x1bf),(_0x2d0302,_0xb3b7b4,_0x36e703)=>{const _0x3dbc7f=_0x48eee3;this[_0x3dbc7f(0x1a9)]&&(this[_0x3dbc7f(0x1bd)]=F(this[_0x3dbc7f(0x1a2)],_0x36e703));}),this[_0x48eee3(0x1ae)](_0x48eee3(0x1be),!0x1),this['on'](_0x48eee3(0x1b8),(_0xf7d4e1,_0x2fa8fa,_0x488b5c)=>{const _0x1c8ee6=_0x48eee3;this[_0x1c8ee6(0x1bd)]=_0x488b5c?F(this[_0x1c8ee6(0x1a2)],this[_0x1c8ee6(0x1be)]):[];});}[_0x2c111b(0x1af)](){const _0x77eb59=_0x2c111b,_0x4a3438=this[_0x77eb59(0x1a8)][_0x77eb59(0x1c7)];this[_0x77eb59(0x1be)]=function(_0x24c0c2){const _0x4080f6=_0x77eb59,_0x2c97ff=_0x24c0c2[_0x4080f6(0x1c9)][_0x4080f6(0x1c4)];return _0x2c97ff[_0x4080f6(0x1b7)]?0x0!==[..._0x2c97ff[_0x4080f6(0x1ce)]()][_0x4080f6(0x1b0)]&&![..._0x2c97ff[_0x4080f6(0x1ce)]()][0x0][_0x4080f6(0x1a4)]:!!_0x24c0c2[_0x4080f6(0x1a3)](_0x2c97ff[_0x4080f6(0x1d1)]());}(_0x4a3438);const _0x5e6b9b=_0x4a3438[_0x77eb59(0x1c9)][_0x77eb59(0x1c4)],_0x349228=this[_0x77eb59(0x1a8)][_0x77eb59(0x1b2)][_0x77eb59(0x1b1)](_0x77eb59(0x1c5));for(const _0x887e1 of _0x5e6b9b[_0x77eb59(0x1c6)]())for(const _0x354280 of _0x887e1[_0x77eb59(0x1cd)]())if(_0x354280['is'](_0x77eb59(0x1b5))&&_0x349228[_0x77eb59(0x1b3)](_0x354280[_0x77eb59(0x1ac)]))return void(this[_0x77eb59(0x1a9)]=!0x1);this[_0x77eb59(0x1a9)]=!0x0;}[_0x2c111b(0x1d2)](_0x2a0af6='',_0x395e44='',_0x8f37fd=_0x2c111b(0x1bc)){const _0x55fe11=_0x2c111b;this[_0x55fe11(0x1a8)][_0x55fe11(0x1c1)][_0x55fe11(0x1b1)](_0x39cdde)[_0x55fe11(0x1a5)](_0x2a0af6,_0x395e44,_0x8f37fd);}}function _0xa125(_0x98a96c,_0x449836){const _0x38ad9b=_0x38ad();return _0xa125=function(_0xa125fb,_0x183db0){_0xa125fb=_0xa125fb-0x1a2;let _0x385236=_0x38ad9b[_0xa125fb];return _0x385236;},_0xa125(_0x98a96c,_0x449836);}function _0x38ad(){const _0x24d71a=['2MgKQhw','isCollapsed','change:isEnabled','459GPqNBv','191304NLjtFc','564628KVAnAB','custom','enabledCommandsIds','_hasContext','change:_hasContext','add','plugins','1836hADbhx','164593VPpmvv','selection','ai.aiAssistant.disabledElements','getRanges','model','concat','document','reduce','20QEswkK','1049053WGlqzc','getItems','getSelectedBlocks','6AErNHB','163731NXmumu','getFirstRange','execute','_commandDefinitions','hasContent','isEmpty','showUI','requiresContent','5276580bVWfBB','editor','isEnabled','11aLSMlY','commands','name','from','set','refresh','length','get','config','includes','6771254ssHkGD','element'];_0x38ad=function(){return _0x24d71a;};return _0x38ad();}function F(_0x210b0f,_0x1a7c06){const _0x443cf3=_0x2c111b,_0x538cfd=new Set();for(const _0xc3863 of _0x210b0f)(_0x1a7c06||!0x1===_0xc3863[_0x443cf3(0x1a6)])&&_0x538cfd[_0x443cf3(0x1c0)](_0xc3863['id']);return Array[_0x443cf3(0x1ad)](_0x538cfd);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x56c57f,_0x1170a3,_0x4ac435){const t=_0x56c57f['t'];switch(_0x1170a3){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'Translate\x20to\x20%0':return t('Translate\x20to\x20%0',_0x4ac435);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'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'Search\x20AI\x20command':return t('Search\x20AI\x20command');case'No\x20commands\x20found':return t('No\x20commands\x20found');case'No\x20commands\x20available':return t('No\x20commands\x20available');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'},_0x4ac435);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 _0x1170a3;}}
23
+ export function getTranslation(_0x3fefec,_0x53921b,_0x883934){const t=_0x3fefec['t'];switch(_0x53921b){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'Translate\x20to\x20%0':return t('Translate\x20to\x20%0',_0x883934);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'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'Search\x20AI\x20command':return t('Search\x20AI\x20command');case'No\x20commands\x20found':return t('No\x20commands\x20found');case'No\x20commands\x20available':return t('No\x20commands\x20available');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'},_0x883934);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 _0x53921b;}}
package/theme/ai.css CHANGED
@@ -63,6 +63,10 @@
63
63
  background: var(--ck-color-ai-selection);
64
64
  }
65
65
 
66
+ .ck .ck-widget.ck-fake-ai-selection {
67
+ outline-color: var(--ck-color-ai-selection);
68
+ }
69
+
66
70
  /*
67
71
  * Classes used by the "fake visual candidate selection" displayed in the content when an input
68
72
  * in the AI dropdown has focus (the browser does not render the native selection in this state).