@ckeditor/ckeditor5-ai 41.1.0 → 41.2.1

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.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5192=['Copy','_createCopyButton','ClipboardItem','text/plain','appendChild','position','left','ck-content','absolute','ck-ai-form__copy-button-wrapper','focus','setStartAfter','icon','innerHTML','removeAllRanges','listenTo','ck-ai-form__loader','body','bindTemplate','getSelection','createElement','div','loaderView','text/html','setEndBefore','execute','style','smooth','check','wheel','<span>[</span>','_copyHTMLToClipboard','_createLoader','value','-9999px','ck-ai-form__copy-button','element','isProcessing','change:isProcessing','createRange','copy','scrollHeight','isVisible','ck-ai-form__content-area','locale','AI\x20is\x20writing...','copyButtonView','appendLoader','scrollTo','set','execCommand','class','setContent','textContent','bind','ck-ai-form__content-field','firstElementChild','contentFieldView','querySelector','render'];(function(_0x310cf2,_0x5192a4){const _0x11109b=function(_0x132866){while(--_0x132866){_0x310cf2['push'](_0x310cf2['shift']());}};_0x11109b(++_0x5192a4);}(_0x5192,0x132));const _0x1110=function(_0x310cf2,_0x5192a4){_0x310cf2=_0x310cf2-0x0;let _0x11109b=_0x5192[_0x310cf2];return _0x11109b;};import{global as _0xd225ae}from'ckeditor5/src/utils.js';import{View as _0x2fddb4,ButtonView as _0xd2246c,SpinnerView as _0xdc8e0a}from'ckeditor5/src/ui.js';import _0x29bfa4 from'../../../theme/icons/copy.svg';import{getTranslation as _0x4198fc}from'../../utils/common-translations.js';import{icons as _0x1cd7f6}from'ckeditor5/src/core.js';export default class X extends _0x2fddb4{constructor(_0x432625,_0x247b93=''){super(_0x432625),this[_0x1110('0x2b')]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x26a9d8=this[_0x1110('0xc')];this[_0x1110('0x33')]=new ContentFieldView(_0x432625,_0x247b93),this[_0x1110('0x28')]=this['_createCopyButton'](),this['setTemplate']({'tag':_0x1110('0xf'),'attributes':{'class':['ck','ck-ai-form__content-area-wrapper',_0x26a9d8['if'](_0x1110('0x24'),'ck-hidden',_0x355561=>!_0x355561)],'tabindex':'-1'},'children':[{'tag':_0x1110('0xf'),'attributes':{'class':['ck',_0x1110('0x25'),_0x26a9d8['if']('isProcessing','ck-ai-form__content-area--processing')]},'children':[this[_0x1110('0x33')],{'tag':_0x1110('0xf'),'attributes':{'class':['ck',_0x1110('0x3')]},'children':[this[_0x1110('0x28')]]}]}]});}[_0x1110('0x35')](){super[_0x1110('0x35')](),this[_0x1110('0x1b')]&&this[_0x1110('0x33')][_0x1110('0x2e')](this['value']);let _0x244e55=!0x1;this['on']('change:value',(_0x3dbd3d,_0x1dac9e,_0x215321)=>{const _0x40c751=!this[_0x1110('0x33')]['element'][_0x1110('0x34')]('.ck-ai-form__loader');this[_0x1110('0x33')]['setContent'](_0x215321),this[_0x1110('0x1f')]&&_0x40c751&&!_0x244e55&&this[_0x1110('0x1e')][_0x1110('0x2a')]({'top':this['element'][_0x1110('0x23')],'behavior':_0x1110('0x15')});}),this['on'](_0x1110('0x20'),(_0x4c9541,_0x585fb0,_0xfe8d5)=>{_0x244e55=!0x1,_0xfe8d5?(this['value']=null,this[_0x1110('0x33')][_0x1110('0x29')]()):this[_0x1110('0x1b')]||this[_0x1110('0x33')][_0x1110('0x2e')]('');}),this[_0x1110('0x9')](this[_0x1110('0x1e')],_0x1110('0x17'),()=>{_0x244e55=!0x0;}),this['listenTo'](this[_0x1110('0x1e')],'mousedown',()=>{_0x244e55=!0x0;});}['focus'](){this[_0x1110('0x1e')][_0x1110('0x4')]();}[_0x1110('0x37')](){const _0x383c77=this[_0x1110('0x26')],_0x1e0419=new _0xd2246c(this[_0x1110('0x26')]),_0x1a1960=_0x1110('0x1d');return _0x1e0419[_0x1110('0x2b')]({'label':_0x4198fc(_0x383c77,_0x1110('0x36')),'icon':_0x29bfa4,'class':_0x1a1960,'tooltip':!0x0}),_0x1e0419[_0x1110('0x30')]('isVisible')['to'](this,_0x1110('0x1b'),_0x54ae46=>!!_0x54ae46),_0x1e0419[_0x1110('0x30')]('isEnabled')['to'](this,'isProcessing',_0x1f9a34=>!_0x1f9a34),_0x1e0419['on'](_0x1110('0x13'),()=>{this['_copyHTMLToClipboard'](this[_0x1110('0x33')][_0x1110('0x1e')]),_0x1e0419[_0x1110('0x6')]=_0x1cd7f6[_0x1110('0x16')],_0x1e0419[_0x1110('0x2d')]=_0x1a1960+'\x20ck-ai-form__copy-button--copied',this[_0x1110('0x4')](),setTimeout(()=>{_0x1e0419['icon']=_0x29bfa4,_0x1e0419['class']=_0x1a1960;},0x3e8);}),_0x1e0419;}[_0x1110('0x19')](_0x2d6418){const {window:_0x54d1a1,document:_0x449466}=_0xd225ae;if(_0x54d1a1[_0x1110('0x38')]){const {Blob:_0x5a3c1a,ClipboardItem:_0x393492}=_0x54d1a1,_0x3bbfee=[new _0x393492({'text/html':new _0x5a3c1a([_0x2d6418['innerHTML']],{'type':_0x1110('0x11')}),'text/plain':new _0x5a3c1a([_0x2d6418[_0x1110('0x2f')]||''],{'type':_0x1110('0x39')})})];navigator['clipboard']['write'](_0x3bbfee);}else{const _0x53e328=_0x449466[_0x1110('0xe')](_0x1110('0xf'));_0x53e328[_0x1110('0x14')][_0x1110('0x3b')]=_0x1110('0x2'),_0x53e328[_0x1110('0x14')][_0x1110('0x0')]=_0x1110('0x1c'),_0x53e328[_0x1110('0x7')]=_0x1110('0x18')+_0x2d6418[_0x1110('0x7')]+'<span>]</span>',_0x449466[_0x1110('0xb')][_0x1110('0x3a')](_0x53e328);const _0x130e12=_0x449466[_0x1110('0x21')]();_0x130e12[_0x1110('0x5')](_0x53e328[_0x1110('0x32')]),_0x130e12[_0x1110('0x12')](_0x53e328['lastElementChild']);const _0x1e4eb3=_0x54d1a1[_0x1110('0xd')]();_0x1e4eb3[_0x1110('0x8')](),_0x1e4eb3['addRange'](_0x130e12),_0x449466[_0x1110('0x2c')](_0x1110('0x22')),_0x53e328['remove']();}}}export class ContentFieldView extends _0x2fddb4{constructor(_0x2ff9fe,_0x24e49a=''){super(_0x2ff9fe),this[_0x1110('0x10')]=this[_0x1110('0x1a')](),this['setTemplate']({'tag':_0x1110('0xf'),'attributes':{'class':['ck',_0x1110('0x1'),_0x24e49a,'ck-reset_all-excluded',_0x1110('0x31')]}});}[_0x1110('0x2e')](_0x3e8d0f){this[_0x1110('0x1e')]['innerHTML']=_0x3e8d0f;}['appendLoader'](){this[_0x1110('0x1e')][_0x1110('0x3a')](this[_0x1110('0x10')][_0x1110('0x1e')]);}['_createLoader'](){const _0x1d92a3=new _0x2fddb4(),_0x3a5842=this[_0x1110('0x26')],_0x170d60=new _0xdc8e0a();return _0x170d60[_0x1110('0x24')]=!0x0,_0x1d92a3['setTemplate']({'tag':_0x1110('0xf'),'attributes':{'class':['ck',_0x1110('0xa')]},'children':[_0x170d60,{'text':_0x4198fc(_0x3a5842,_0x1110('0x27'))}]}),_0x1d92a3[_0x1110('0x35')](),_0x1d92a3;}}
23
+ const _0x2a385b=_0x3cf9;(function(_0x2c95e8,_0x304903){const _0x5b6e16=_0x3cf9,_0x288442=_0x2c95e8();while(!![]){try{const _0x503d74=-parseInt(_0x5b6e16(0x150))/0x1*(parseInt(_0x5b6e16(0x177))/0x2)+parseInt(_0x5b6e16(0x192))/0x3+parseInt(_0x5b6e16(0x159))/0x4*(-parseInt(_0x5b6e16(0x158))/0x5)+-parseInt(_0x5b6e16(0x180))/0x6*(-parseInt(_0x5b6e16(0x193))/0x7)+parseInt(_0x5b6e16(0x153))/0x8*(-parseInt(_0x5b6e16(0x174))/0x9)+parseInt(_0x5b6e16(0x163))/0xa+parseInt(_0x5b6e16(0x189))/0xb;if(_0x503d74===_0x304903)break;else _0x288442['push'](_0x288442['shift']());}catch(_0x2283fa){_0x288442['push'](_0x288442['shift']());}}}(_0x1150,0x763e0));import{global as _0x5dec7f}from'ckeditor5/src/utils.js';import{View as _0x327d24,ButtonView as _0x5babfd,SpinnerView as _0x20c0e7}from'ckeditor5/src/ui.js';import _0x46f1ea from'../../../theme/icons/copy.svg';function _0x3cf9(_0x31e35e,_0x342f40){const _0x1150c4=_0x1150();return _0x3cf9=function(_0x3cf9f2,_0x2effc9){_0x3cf9f2=_0x3cf9f2-0x143;let _0x2f9ec5=_0x1150c4[_0x3cf9f2];return _0x2f9ec5;},_0x3cf9(_0x31e35e,_0x342f40);}import{getTranslation as _0x3c0573}from'../../utils/common-translations.js';import{icons as _0x1dcac4}from'ckeditor5/src/core.js';function _0x1150(){const _0x296c4f=['_createCopyButton','remove','lastElementChild','render','text/html','bind','style','execCommand','340137BxniDp','12166VmRFnH','createRange','_createLoader','listenTo','addRange','setTemplate','removeAllRanges','absolute','ClipboardItem','div','clipboard','_copyHTMLToClipboard','appendLoader','contentFieldView','ck-hidden','.ck-ai-form__loader','execute','body','ck-ai-form__content-area-wrapper','ck-reset_all-excluded','20275hWZclT','Copy','mousedown','13248ecfVYi','ck-ai-form__content-field','value','ck-ai-form__copy-button','focus','31290zWmDVA','128EdNulK','querySelector','smooth','copyButtonView','\x20ck-ai-form__copy-button--copied','AI\x20is\x20writing...','firstElementChild','isProcessing','bindTemplate','ck-ai-form__content-area--processing','6830260aIRYGI','text/plain','copy','setContent','wheel','<span>]</span>','scrollHeight','ck-ai-form__copy-button-wrapper','loaderView','isEnabled','position','getSelection','change:value','ck-content','appendChild','setStartAfter','element','4905AiFZPI','locale','scrollTo','44cJyNpW','check','<span>[</span>','change:isProcessing','setEndBefore','innerHTML','isVisible','textContent','createElement','2556GEXTGu','left','-9999px','icon','set','ck-ai-form__loader','ck-ai-form__content-area','class','write','5459883yhWOUk'];_0x1150=function(){return _0x296c4f;};return _0x1150();}export default class st extends _0x327d24{constructor(_0x28ab11,_0x113e51=''){const _0x4cda55=_0x3cf9;super(_0x28ab11),this[_0x4cda55(0x184)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x417d37=this[_0x4cda55(0x161)];this[_0x4cda55(0x149)]=new ContentFieldView(_0x28ab11,_0x113e51),this[_0x4cda55(0x15c)]=this[_0x4cda55(0x18a)](),this[_0x4cda55(0x198)]({'tag':_0x4cda55(0x145),'attributes':{'class':['ck',_0x4cda55(0x14e),_0x417d37['if'](_0x4cda55(0x17d),_0x4cda55(0x14a),_0x21c818=>!_0x21c818)],'tabindex':'-1'},'children':[{'tag':_0x4cda55(0x145),'attributes':{'class':['ck',_0x4cda55(0x186),_0x417d37['if'](_0x4cda55(0x160),_0x4cda55(0x162))]},'children':[this[_0x4cda55(0x149)],{'tag':_0x4cda55(0x145),'attributes':{'class':['ck',_0x4cda55(0x16a)]},'children':[this[_0x4cda55(0x15c)]]}]}]});}[_0x2a385b(0x18d)](){const _0x2514a1=_0x2a385b;super[_0x2514a1(0x18d)](),this[_0x2514a1(0x155)]&&this[_0x2514a1(0x149)][_0x2514a1(0x166)](this[_0x2514a1(0x155)]);let _0x2040ea=!0x1;this['on'](_0x2514a1(0x16f),(_0x23b941,_0x28e21e,_0x3dad2a)=>{const _0x2be27f=_0x2514a1,_0x330e3c=!this[_0x2be27f(0x149)][_0x2be27f(0x173)][_0x2be27f(0x15a)](_0x2be27f(0x14b));this[_0x2be27f(0x149)][_0x2be27f(0x166)](_0x3dad2a),this[_0x2be27f(0x160)]&&_0x330e3c&&!_0x2040ea&&this[_0x2be27f(0x173)][_0x2be27f(0x176)]({'top':this[_0x2be27f(0x173)][_0x2be27f(0x169)],'behavior':_0x2be27f(0x15b)});}),this['on'](_0x2514a1(0x17a),(_0x33e525,_0x32654e,_0x2fce57)=>{const _0x4415c6=_0x2514a1;_0x2040ea=!0x1,_0x2fce57?(this[_0x4415c6(0x155)]=null,this[_0x4415c6(0x149)][_0x4415c6(0x148)]()):this[_0x4415c6(0x155)]||this[_0x4415c6(0x149)][_0x4415c6(0x166)]('');}),this[_0x2514a1(0x196)](this[_0x2514a1(0x173)],_0x2514a1(0x167),()=>{_0x2040ea=!0x0;}),this[_0x2514a1(0x196)](this[_0x2514a1(0x173)],_0x2514a1(0x152),()=>{_0x2040ea=!0x0;});}[_0x2a385b(0x157)](){const _0x438606=_0x2a385b;this[_0x438606(0x173)][_0x438606(0x157)]();}[_0x2a385b(0x18a)](){const _0x57c5d1=_0x2a385b,_0x54cfb6=this[_0x57c5d1(0x175)],_0xc51943=new _0x5babfd(this[_0x57c5d1(0x175)]),_0x45e947=_0x57c5d1(0x156);return _0xc51943[_0x57c5d1(0x184)]({'label':_0x3c0573(_0x54cfb6,_0x57c5d1(0x151)),'icon':_0x46f1ea,'class':_0x45e947,'tooltip':!0x0}),_0xc51943[_0x57c5d1(0x18f)](_0x57c5d1(0x17d))['to'](this,_0x57c5d1(0x155),_0x27a2fe=>!!_0x27a2fe),_0xc51943[_0x57c5d1(0x18f)](_0x57c5d1(0x16c))['to'](this,_0x57c5d1(0x160),_0x2834d5=>!_0x2834d5),_0xc51943['on'](_0x57c5d1(0x14c),()=>{const _0x1dc822=_0x57c5d1;this[_0x1dc822(0x147)](this[_0x1dc822(0x149)][_0x1dc822(0x173)]),_0xc51943[_0x1dc822(0x183)]=_0x1dcac4[_0x1dc822(0x178)],_0xc51943[_0x1dc822(0x187)]=_0x45e947+_0x1dc822(0x15d),this[_0x1dc822(0x157)](),setTimeout(()=>{const _0x384310=_0x1dc822;_0xc51943[_0x384310(0x183)]=_0x46f1ea,_0xc51943[_0x384310(0x187)]=_0x45e947;},0x3e8);}),_0xc51943;}[_0x2a385b(0x147)](_0x268cda){const _0x55f362=_0x2a385b,{window:_0x2dabf9,document:_0x1fedbc}=_0x5dec7f;if(_0x2dabf9[_0x55f362(0x144)]){const {Blob:_0x20153c,ClipboardItem:_0x48fc61}=_0x2dabf9,_0x32de50=[new _0x48fc61({'text/html':new _0x20153c([_0x268cda[_0x55f362(0x17c)]],{'type':_0x55f362(0x18e)}),'text/plain':new _0x20153c([_0x268cda[_0x55f362(0x17e)]||''],{'type':_0x55f362(0x164)})})];navigator[_0x55f362(0x146)][_0x55f362(0x188)](_0x32de50);}else{const _0x11b46e=_0x1fedbc[_0x55f362(0x17f)](_0x55f362(0x145));_0x11b46e[_0x55f362(0x190)][_0x55f362(0x16d)]=_0x55f362(0x143),_0x11b46e[_0x55f362(0x190)][_0x55f362(0x181)]=_0x55f362(0x182),_0x11b46e[_0x55f362(0x17c)]=_0x55f362(0x179)+_0x268cda[_0x55f362(0x17c)]+_0x55f362(0x168),_0x1fedbc[_0x55f362(0x14d)][_0x55f362(0x171)](_0x11b46e);const _0x37a278=_0x1fedbc[_0x55f362(0x194)]();_0x37a278[_0x55f362(0x172)](_0x11b46e[_0x55f362(0x15f)]),_0x37a278[_0x55f362(0x17b)](_0x11b46e[_0x55f362(0x18c)]);const _0x26bbe4=_0x2dabf9[_0x55f362(0x16e)]();_0x26bbe4[_0x55f362(0x199)](),_0x26bbe4[_0x55f362(0x197)](_0x37a278),_0x1fedbc[_0x55f362(0x191)](_0x55f362(0x165)),_0x11b46e[_0x55f362(0x18b)]();}}}export class ContentFieldView extends _0x327d24{constructor(_0x120883,_0x4b955b=''){const _0x49ad74=_0x2a385b;super(_0x120883),this[_0x49ad74(0x16b)]=this[_0x49ad74(0x195)](),this[_0x49ad74(0x198)]({'tag':_0x49ad74(0x145),'attributes':{'class':['ck',_0x49ad74(0x170),_0x4b955b,_0x49ad74(0x14f),_0x49ad74(0x154)]}});}[_0x2a385b(0x166)](_0x3d2306){const _0x5b95c4=_0x2a385b;this[_0x5b95c4(0x173)][_0x5b95c4(0x17c)]=_0x3d2306;}[_0x2a385b(0x148)](){const _0x42e89d=_0x2a385b;this[_0x42e89d(0x173)][_0x42e89d(0x171)](this[_0x42e89d(0x16b)][_0x42e89d(0x173)]);}[_0x2a385b(0x195)](){const _0x45eb15=_0x2a385b,_0x26d228=new _0x327d24(),_0xc102a=this[_0x45eb15(0x175)],_0xaf790c=new _0x20c0e7();return _0xaf790c[_0x45eb15(0x17d)]=!0x0,_0x26d228[_0x45eb15(0x198)]({'tag':_0x45eb15(0x145),'attributes':{'class':['ck',_0x45eb15(0x185)]},'children':[_0xaf790c,{'text':_0x3c0573(_0xc102a,_0x45eb15(0x15e))}]}),_0x26d228[_0x45eb15(0x18d)](),_0x26d228;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c20=['div','content','setTemplate','ck-ai-form__error','set','text'];(function(_0x42598c,_0x3c209b){const _0x3fbf2c=function(_0x402180){while(--_0x402180){_0x42598c['push'](_0x42598c['shift']());}};_0x3fbf2c(++_0x3c209b);}(_0x3c20,0x17a));const _0x3fbf=function(_0x42598c,_0x3c209b){_0x42598c=_0x42598c-0x0;let _0x3fbf2c=_0x3c20[_0x42598c];return _0x3fbf2c;};import{View as _0x1d23b8,IconView as _0x5de8e5}from'ckeditor5/src/ui.js';import _0x3fb765 from'../../../theme/icons/error.svg';export default class rt extends _0x1d23b8{constructor(_0xbe5b6b,_0x13a786=''){super(_0xbe5b6b);const _0x322713=new _0x5de8e5(),_0x16b401=this['bindTemplate'];this[_0x3fbf('0x4')](_0x3fbf('0x5'),_0x13a786),_0x322713[_0x3fbf('0x1')]=_0x3fb765,this[_0x3fbf('0x2')]({'tag':_0x3fbf('0x0'),'attributes':{'class':['ck',_0x3fbf('0x3')]},'children':[_0x322713,{'text':_0x16b401['to']('text')}]});}}
23
+ (function(_0x2963ea,_0x17fc3a){const _0xd914dd=_0xc0dd,_0xd32f70=_0x2963ea();while(!![]){try{const _0xfb2747=parseInt(_0xd914dd(0x193))/0x1+parseInt(_0xd914dd(0x18d))/0x2+parseInt(_0xd914dd(0x199))/0x3*(parseInt(_0xd914dd(0x18c))/0x4)+parseInt(_0xd914dd(0x191))/0x5+parseInt(_0xd914dd(0x19a))/0x6+parseInt(_0xd914dd(0x18e))/0x7+-parseInt(_0xd914dd(0x190))/0x8;if(_0xfb2747===_0x17fc3a)break;else _0xd32f70['push'](_0xd32f70['shift']());}catch(_0x468f86){_0xd32f70['push'](_0xd32f70['shift']());}}}(_0x4695,0x88e67));import{View as _0x365578,IconView as _0x2e6753}from'ckeditor5/src/ui.js';function _0xc0dd(_0x49bd68,_0x370639){const _0x46957d=_0x4695();return _0xc0dd=function(_0x1492cd,_0x23c002){_0x1492cd=_0x1492cd-0x18c;let _0x2f289e=_0x46957d[_0x1492cd];return _0x2f289e;},_0xc0dd(_0x49bd68,_0x370639);}import _0x43ff2f from'../../../theme/icons/error.svg';export default class ot extends _0x365578{constructor(_0x19002c,_0x32a21a=''){const _0x1d07ac=_0xc0dd;super(_0x19002c);const _0x3173ec=new _0x2e6753(),_0x29f264=this[_0x1d07ac(0x18f)];this[_0x1d07ac(0x195)](_0x1d07ac(0x196),_0x32a21a),_0x3173ec[_0x1d07ac(0x194)]=_0x43ff2f,this[_0x1d07ac(0x192)]({'tag':_0x1d07ac(0x198),'attributes':{'class':['ck',_0x1d07ac(0x197)]},'children':[_0x3173ec,{'text':_0x29f264['to'](_0x1d07ac(0x196))}]});}}function _0x4695(){const _0x5bdbb8=['setTemplate','564166JnSPgG','content','set','text','ck-ai-form__error','div','740613XBlKdH','1192716qwxMyq','8HetHSW','909112kGFCHt','3455102KaXKmJ','bindTemplate','14891880yjvhQD','1086960AawCWv'];_0x4695=function(){return _0x5bdbb8;};return _0x4695();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25ad=['fire','submit','set','_createShowHistoryButton','resultsView','update','target','Submit','history','focusCycler','fieldWrapperChildren','rtl','focusFirst','uiLanguageDirection','showHistoryButtonView','enter','requestAnimationFrame','submitButtonView','window','style','excludeScrollbarsAndBorders','maxRows','minRows','children','queryView','add','render','focus','locale','value','isOn','fieldView','element','isVisible','focusableChildren','right','execute','width','isEnabled','ck-ai-form__toggle-history','_createSubmitButton','filteredView','bind'];(function(_0x1a5444,_0x25addb){const _0x112f1b=function(_0x3ec57b){while(--_0x3ec57b){_0x1a5444['push'](_0x1a5444['shift']());}};_0x112f1b(++_0x25addb);}(_0x25ad,0xd2));const _0x112f=function(_0x1a5444,_0x25addb){_0x1a5444=_0x1a5444-0x0;let _0x112f1b=_0x25ad[_0x1a5444];return _0x112f1b;};import{Rect as _0x3f694f,global as _0x18cf8a,isVisible as _0x1612f1}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x302717,ButtonView as _0x46f7e4}from'ckeditor5/src/ui.js';import{icons as _0x25e98a}from'ckeditor5/src/core.js';import{getTranslation as _0x2ea6a9}from'../../utils/common-translations.js';import _0x4333eb from'../../../theme/icons/submit.svg';export default class ht extends _0x302717{constructor(_0x161099,_0x1bef73){super(_0x161099,_0x1bef73),this[_0x112f('0x1d')][_0x112f('0x24')][_0x112f('0x1b')]=0x1,this[_0x112f('0x1d')]['fieldView'][_0x112f('0x1a')]=0x3,this[_0x112f('0x16')]=this[_0x112f('0x2')](),this[_0x112f('0x13')]=this['_createShowHistoryButton'](),this[_0x112f('0x27')]['add'](this[_0x112f('0x13')],0x1),this[_0x112f('0x27')][_0x112f('0x1e')](this[_0x112f('0x16')]);}[_0x112f('0x1f')](){super['render'](),this[_0x112f('0x1d')][_0x112f('0xf')][_0x112f('0x1e')](this[_0x112f('0x13')]),this[_0x112f('0x1c')][_0x112f('0x1e')](this[_0x112f('0x16')]),this['keystrokes'][_0x112f('0x7')](_0x112f('0x14'),(_0x5110f4,_0x10ecba)=>{_0x5110f4[_0x112f('0xb')]==this['queryView'][_0x112f('0x24')][_0x112f('0x25')]&&(this['submit'](),_0x10ecba());});}[_0x112f('0x2')](){const _0x295fb6=new _0x46f7e4(this[_0x112f('0x21')]),_0x10a770=this[_0x112f('0x21')];return _0x295fb6[_0x112f('0x7')]({'icon':_0x4333eb,'label':_0x2ea6a9(_0x10a770,_0x112f('0xc')),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-form__submit'}),_0x295fb6['on']('execute',()=>{this[_0x112f('0x6')]();}),_0x295fb6[_0x112f('0x4')](_0x112f('0x0'))['to'](this[_0x112f('0x1d')][_0x112f('0x24')],'isEmpty',this,_0x112f('0x0'),(_0x381c04,_0x5b662c)=>!_0x381c04&&_0x5b662c),_0x295fb6;}[_0x112f('0x8')](){const _0x3a3444=new _0x46f7e4(this[_0x112f('0x21')]),_0x5169ad=this[_0x112f('0x9')],_0x5027e3=this[_0x112f('0x21')];_0x3a3444[_0x112f('0x7')]({'label':_0x2ea6a9(_0x5027e3,'History'),'withText':!0x1,'icon':_0x25e98a[_0x112f('0xd')],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x112f('0x1')}),_0x3a3444[_0x112f('0x4')](_0x112f('0x23'))['to'](_0x5169ad,_0x112f('0x26')),_0x3a3444[_0x112f('0x4')](_0x112f('0x0'))['to'](this,_0x112f('0x0')),_0x3a3444['on'](_0x112f('0x29'),()=>{_0x5169ad['isVisible']=!_0x5169ad[_0x112f('0x26')],_0x5169ad[_0x112f('0x26')]?this[_0x112f('0x3')]['focus']():this[_0x112f('0x20')]();});const _0x2feee7=()=>{_0x18cf8a[_0x112f('0x17')][_0x112f('0x15')](()=>{if(_0x1612f1(this[_0x112f('0x25')])){const _0x3ce70d=new _0x3f694f(this[_0x112f('0x1d')][_0x112f('0x24')][_0x112f('0x25')]),_0x554c01=_0x3ce70d[_0x112f('0x2a')],_0x5df1f0=_0x112f('0x10')===_0x5027e3[_0x112f('0x12')]?'left':_0x112f('0x28');_0x3ce70d[_0x112f('0x19')](),_0x3a3444[_0x112f('0x25')][_0x112f('0x18')][_0x5df1f0]=_0x554c01-_0x3ce70d[_0x112f('0x2a')]+0x1+'px';}});};return this[_0x112f('0x1d')][_0x112f('0x24')]['on'](_0x112f('0xa'),_0x2feee7),this['on'](_0x112f('0x1f'),_0x2feee7),_0x3a3444;}['submit'](){const _0x2cd260=this[_0x112f('0x1d')][_0x112f('0x24')]['element'][_0x112f('0x22')];this[_0x112f('0x5')](_0x112f('0x6'),_0x2cd260);}[_0x112f('0x20')](_0x30195b){-0x1===_0x30195b?this[_0x112f('0xe')]['focusLast']():this[_0x112f('0xe')][_0x112f('0x11')]();}}
23
+ const _0xb1fe17=_0x1d1e;function _0x1f62(){const _0x59b66d=['isEmpty','submit','history','window','set','focusFirst','ck-ai-form__submit','requestAnimationFrame','excludeScrollbarsAndBorders','focusableChildren','bind','value','add','style','target','_createSubmitButton','children','Submit','locale','1815FhjCtH','resultsView','width','278012ckkdOU','isVisible','930MiYkol','focus','uiLanguageDirection','element','focusLast','focusCycler','1702569uttSYc','left','render','rtl','145478haBSyr','filteredView','7338mSoHwB','right','update','9PxPbLO','205204oOGhEO','fieldView','submitButtonView','isOn','minRows','execute','enter','18981dIJtve','queryView','ck-ai-form__toggle-history','104OoqcFe','keystrokes','History','157514XssgQJ','maxRows','_createShowHistoryButton','showHistoryButtonView','fieldWrapperChildren','isEnabled','fire'];_0x1f62=function(){return _0x59b66d;};return _0x1f62();}(function(_0x53dcfb,_0x50c81a){const _0x1a0380=_0x1d1e,_0x3ab0a7=_0x53dcfb();while(!![]){try{const _0xdee606=-parseInt(_0x1a0380(0x7f))/0x1+-parseInt(_0x1a0380(0x8b))/0x2*(-parseInt(_0x1a0380(0x90))/0x3)+-parseInt(_0x1a0380(0x91))/0x4+parseInt(_0x1a0380(0x7c))/0x5*(parseInt(_0x1a0380(0x8d))/0x6)+-parseInt(_0x1a0380(0x9e))/0x7*(-parseInt(_0x1a0380(0x9b))/0x8)+-parseInt(_0x1a0380(0x98))/0x9*(parseInt(_0x1a0380(0x81))/0xa)+-parseInt(_0x1a0380(0x87))/0xb;if(_0xdee606===_0x50c81a)break;else _0x3ab0a7['push'](_0x3ab0a7['shift']());}catch(_0x5da8d9){_0x3ab0a7['push'](_0x3ab0a7['shift']());}}}(_0x1f62,0x4301f));import{Rect as _0x336dfb,global as _0x6a02c0,isVisible as _0xd58a33}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x538471,ButtonView as _0x6d7e66}from'ckeditor5/src/ui.js';function _0x1d1e(_0x383435,_0x43cadd){const _0x1f6224=_0x1f62();return _0x1d1e=function(_0x1d1e41,_0x1aaaa6){_0x1d1e41=_0x1d1e41-0x76;let _0xf2e11a=_0x1f6224[_0x1d1e41];return _0xf2e11a;},_0x1d1e(_0x383435,_0x43cadd);}import{icons as _0x3dd80f}from'ckeditor5/src/core.js';import{getTranslation as _0x36799a}from'../../utils/common-translations.js';import _0x3dd840 from'../../../theme/icons/submit.svg';export default class lt extends _0x538471{constructor(_0x3fc3aa,_0x4f9c6f){const _0x2ae657=_0x1d1e;super(_0x3fc3aa,_0x4f9c6f),this[_0x2ae657(0x99)][_0x2ae657(0x92)][_0x2ae657(0x95)]=0x1,this[_0x2ae657(0x99)][_0x2ae657(0x92)][_0x2ae657(0x9f)]=0x3,this[_0x2ae657(0x93)]=this[_0x2ae657(0x78)](),this[_0x2ae657(0xa1)]=this[_0x2ae657(0xa0)](),this[_0x2ae657(0xae)][_0x2ae657(0xb1)](this[_0x2ae657(0xa1)],0x1),this[_0x2ae657(0xae)][_0x2ae657(0xb1)](this[_0x2ae657(0x93)]);}[_0xb1fe17(0x89)](){const _0x1b3d59=_0xb1fe17;super[_0x1b3d59(0x89)](),this[_0x1b3d59(0x99)][_0x1b3d59(0xa2)][_0x1b3d59(0xb1)](this[_0x1b3d59(0xa1)]),this[_0x1b3d59(0x79)][_0x1b3d59(0xb1)](this[_0x1b3d59(0x93)]),this[_0x1b3d59(0x9c)][_0x1b3d59(0xa9)](_0x1b3d59(0x97),(_0x5eb884,_0x5b9de4)=>{const _0x21f8ed=_0x1b3d59;_0x5eb884[_0x21f8ed(0x77)]==this[_0x21f8ed(0x99)][_0x21f8ed(0x92)][_0x21f8ed(0x84)]&&(this[_0x21f8ed(0xa6)](),_0x5b9de4());});}[_0xb1fe17(0x78)](){const _0x2f047e=_0xb1fe17,_0x1949c7=new _0x6d7e66(this[_0x2f047e(0x7b)]),_0x104c4d=this[_0x2f047e(0x7b)];return _0x1949c7[_0x2f047e(0xa9)]({'icon':_0x3dd840,'label':_0x36799a(_0x104c4d,_0x2f047e(0x7a)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2f047e(0xab)}),_0x1949c7['on'](_0x2f047e(0x96),()=>{const _0x11a22d=_0x2f047e;this[_0x11a22d(0xa6)]();}),_0x1949c7[_0x2f047e(0xaf)](_0x2f047e(0xa3))['to'](this[_0x2f047e(0x99)][_0x2f047e(0x92)],_0x2f047e(0xa5),this,_0x2f047e(0xa3),(_0x1777c2,_0x46fa14)=>!_0x1777c2&&_0x46fa14),_0x1949c7;}[_0xb1fe17(0xa0)](){const _0x2b8dc6=_0xb1fe17,_0x620f29=new _0x6d7e66(this[_0x2b8dc6(0x7b)]),_0x37dbfa=this[_0x2b8dc6(0x7d)],_0xc48aa=this[_0x2b8dc6(0x7b)];_0x620f29[_0x2b8dc6(0xa9)]({'label':_0x36799a(_0xc48aa,_0x2b8dc6(0x9d)),'withText':!0x1,'icon':_0x3dd80f[_0x2b8dc6(0xa7)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x2b8dc6(0x9a)}),_0x620f29[_0x2b8dc6(0xaf)](_0x2b8dc6(0x94))['to'](_0x37dbfa,_0x2b8dc6(0x80)),_0x620f29[_0x2b8dc6(0xaf)](_0x2b8dc6(0xa3))['to'](this,_0x2b8dc6(0xa3)),_0x620f29['on'](_0x2b8dc6(0x96),()=>{const _0x3de3ab=_0x2b8dc6;_0x37dbfa[_0x3de3ab(0x80)]=!_0x37dbfa[_0x3de3ab(0x80)],_0x37dbfa[_0x3de3ab(0x80)]?this[_0x3de3ab(0x8c)][_0x3de3ab(0x82)]():this[_0x3de3ab(0x82)]();});const _0x1ae4a0=()=>{const _0x431a58=_0x2b8dc6;_0x6a02c0[_0x431a58(0xa8)][_0x431a58(0xac)](()=>{const _0x47fe4d=_0x431a58;if(_0xd58a33(this[_0x47fe4d(0x84)])){const _0x1488ed=new _0x336dfb(this[_0x47fe4d(0x99)][_0x47fe4d(0x92)][_0x47fe4d(0x84)]),_0x57bbff=_0x1488ed[_0x47fe4d(0x7e)],_0x27dbc1=_0x47fe4d(0x8a)===_0xc48aa[_0x47fe4d(0x83)]?_0x47fe4d(0x88):_0x47fe4d(0x8e);_0x1488ed[_0x47fe4d(0xad)](),_0x620f29[_0x47fe4d(0x84)][_0x47fe4d(0x76)][_0x27dbc1]=_0x57bbff-_0x1488ed[_0x47fe4d(0x7e)]+0x1+'px';}});};return this[_0x2b8dc6(0x99)][_0x2b8dc6(0x92)]['on'](_0x2b8dc6(0x8f),_0x1ae4a0),this['on'](_0x2b8dc6(0x89),_0x1ae4a0),_0x620f29;}[_0xb1fe17(0xa6)](){const _0x119c84=_0xb1fe17,_0x408e4f=this[_0x119c84(0x99)][_0x119c84(0x92)][_0x119c84(0x84)][_0x119c84(0xb0)];this[_0x119c84(0xa4)](_0x119c84(0xa6),_0x408e4f);}[_0xb1fe17(0x82)](_0x4444b1){const _0x3eefae=_0xb1fe17;-0x1===_0x4444b1?this[_0x3eefae(0x86)][_0x3eefae(0x85)]():this[_0x3eefae(0x86)][_0x3eefae(0xaa)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43b2=['extendTemplate','set','replaceButton','toUpperCase','stopButton','insertButton','mainAction','ck-button-action','REPLACE','Try\x20again','locale','replace','items','bindTemplate','_createButton','Insert\x20below','bind','addMany','tryAgainButton','ck-hidden','insert','AI_','isVisible','Stop','ck-ai-form__toolbar','_CONTENT'];(function(_0x3fe480,_0x43b297){const _0x1138ca=function(_0x17e652){while(--_0x17e652){_0x3fe480['push'](_0x3fe480['shift']());}};_0x1138ca(++_0x43b297);}(_0x43b2,0x170));const _0x1138=function(_0x3fe480,_0x43b297){_0x3fe480=_0x3fe480-0x0;let _0x1138ca=_0x43b2[_0x3fe480];return _0x1138ca;};import{ToolbarView as _0x2da9a0,ButtonView as _0x47fe60}from'ckeditor5/src/ui.js';import{getTranslation as _0x16d989}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x1138('0x7'),'INSERT':_0x1138('0x10')};export default class at extends _0x2da9a0{constructor(_0x52b62c){super(_0x52b62c),this[_0x1138('0x17')](_0x1138('0x12'),!0x1),this[_0x1138('0x17')](_0x1138('0x2'),AIFormToolbarViewMainActionLabel[_0x1138('0x4')]),this[_0x1138('0x18')]=this[_0x1138('0xa')]('',_0x1138('0x3')),this[_0x1138('0x18')][_0x1138('0xc')]('label')['to'](this,_0x1138('0x2'),_0x395b09=>_0x16d989(_0x52b62c,_0x1138('0x11')+_0x395b09[_0x1138('0x19')]()+_0x1138('0x15'))),this['insertButton']=this['_createButton'](_0x16d989(_0x52b62c,_0x1138('0xb'))),this[_0x1138('0xe')]=this[_0x1138('0xa')](_0x16d989(_0x52b62c,_0x1138('0x5'))),this[_0x1138('0x0')]=this[_0x1138('0xa')](_0x16d989(_0x52b62c,_0x1138('0x13')));const _0x183354=this[_0x1138('0x9')];this[_0x1138('0x16')]({'attributes':{'class':[_0x1138('0x14'),_0x183354['if'](_0x1138('0x12'),_0x1138('0xf'),_0xbad83e=>!_0xbad83e)]}}),this[_0x1138('0x8')][_0x1138('0xd')]([this[_0x1138('0x18')],this[_0x1138('0x1')],this[_0x1138('0xe')],this[_0x1138('0x0')]]);}[_0x1138('0xa')](_0x24520c,_0x277f4f){const _0x3b41c7=new _0x47fe60(this[_0x1138('0x6')]);return _0x3b41c7['set']({'label':_0x24520c,'class':_0x277f4f||'','isVisible':!0x0,'withText':!0x0}),_0x3b41c7;}}
23
+ const _0x5bc3ca=_0x45fc;(function(_0x222b0c,_0x59b05a){const _0x35e019=_0x45fc,_0x4a0112=_0x222b0c();while(!![]){try{const _0x5d15db=-parseInt(_0x35e019(0x198))/0x1+parseInt(_0x35e019(0x1ae))/0x2*(parseInt(_0x35e019(0x199))/0x3)+-parseInt(_0x35e019(0x1ab))/0x4*(-parseInt(_0x35e019(0x1aa))/0x5)+-parseInt(_0x35e019(0x196))/0x6*(-parseInt(_0x35e019(0x194))/0x7)+-parseInt(_0x35e019(0x197))/0x8*(-parseInt(_0x35e019(0x1a5))/0x9)+-parseInt(_0x35e019(0x1ac))/0xa+-parseInt(_0x35e019(0x19d))/0xb;if(_0x5d15db===_0x59b05a)break;else _0x4a0112['push'](_0x4a0112['shift']());}catch(_0x418e64){_0x4a0112['push'](_0x4a0112['shift']());}}}(_0x1d18,0x65ad1));import{ToolbarView as _0x12f1e1,ButtonView as _0x4011a2}from'ckeditor5/src/ui.js';import{getTranslation as _0x25e7c5}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x5bc3ca(0x191),'INSERT':_0x5bc3ca(0x1b3)};export default class bt extends _0x12f1e1{constructor(_0x37a739){const _0xbfa70e=_0x5bc3ca;super(_0x37a739),this[_0xbfa70e(0x1a3)](_0xbfa70e(0x1b5),!0x1),this[_0xbfa70e(0x1a3)](_0xbfa70e(0x1a8),AIFormToolbarViewMainActionLabel[_0xbfa70e(0x19b)]),this[_0xbfa70e(0x1b0)]=this[_0xbfa70e(0x1a9)]('',_0xbfa70e(0x1a7)),this[_0xbfa70e(0x1b0)][_0xbfa70e(0x1b1)](_0xbfa70e(0x19f))['to'](this,_0xbfa70e(0x1a8),_0xfa016=>_0x25e7c5(_0x37a739,_0xbfa70e(0x19c)+_0xfa016[_0xbfa70e(0x1a0)]()+_0xbfa70e(0x1a6))),this[_0xbfa70e(0x1a4)]=this[_0xbfa70e(0x1a9)](_0x25e7c5(_0x37a739,_0xbfa70e(0x19e))),this[_0xbfa70e(0x1a1)]=this[_0xbfa70e(0x1a9)](_0x25e7c5(_0x37a739,_0xbfa70e(0x193))),this[_0xbfa70e(0x192)]=this[_0xbfa70e(0x1a9)](_0x25e7c5(_0x37a739,_0xbfa70e(0x1af)));const _0x53db00=this[_0xbfa70e(0x1b2)];this[_0xbfa70e(0x1b4)]({'attributes':{'class':[_0xbfa70e(0x1a2),_0x53db00['if'](_0xbfa70e(0x1b5),_0xbfa70e(0x1ad),_0x4cefad=>!_0x4cefad)]}}),this[_0xbfa70e(0x19a)][_0xbfa70e(0x1b6)]([this[_0xbfa70e(0x1b0)],this[_0xbfa70e(0x1a4)],this[_0xbfa70e(0x1a1)],this[_0xbfa70e(0x192)]]);}[_0x5bc3ca(0x1a9)](_0x1f0fcf,_0x1d33de){const _0x12e5c7=_0x5bc3ca,_0x505db3=new _0x4011a2(this[_0x12e5c7(0x195)]);return _0x505db3[_0x12e5c7(0x1a3)]({'label':_0x1f0fcf,'class':_0x1d33de||'','isVisible':!0x0,'withText':!0x0}),_0x505db3;}}function _0x45fc(_0x244041,_0x432fbf){const _0x1d18f9=_0x1d18();return _0x45fc=function(_0x45fc5f,_0x4cb54f){_0x45fc5f=_0x45fc5f-0x191;let _0x16301b=_0x1d18f9[_0x45fc5f];return _0x16301b;},_0x45fc(_0x244041,_0x432fbf);}function _0x1d18(){const _0x533923=['3223244XOehgr','6617730iHVKbD','ck-hidden','211294prXiiU','Stop','replaceButton','bind','bindTemplate','insert','extendTemplate','isVisible','addMany','replace','stopButton','Try\x20again','1729kxGBLN','locale','1824IGaWPE','36128ZrhmAk','123776wBrxTi','9MRwWMp','items','REPLACE','AI_','8051274xsynUd','Insert\x20below','label','toUpperCase','tryAgainButton','ck-ai-form__toolbar','set','insertButton','1467bXUpKF','_CONTENT','ck-button-action','mainAction','_createButton','5hkGKWI'];_0x1d18=function(){return _0x533923;};return _0x1d18();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x287b=['replaceButton','clear','isEnabled','locale','AI_ERROR_FAILED','focusCycler','add','historyGroupView','shift\x20+\x20tab','fire','value','insertContentBelow','contentArea','focusPrevious','replaceContent','set','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','isError','submitPrompt','fieldView','delegate','errorView','clearHistory','_promptHistory','Ask\x20AI\x20to\x20improve\x20generated\x20text','stopButton','focusNext','backwardCycle','stop','focusTracker','ck-ai-form','promptView','handleError','_createHistoryView','div','toolbar','startProcessing','focusFirst','REPLACE','render','element','text','tryAgainEvent','insertButton','bindTo','isVisible','ck-ai-form-content','_createToolbar','focus','tryAgainButton','finishProcessing','createCollection','mainAction','stopProcessing','bind','reset','execute','trim','focusLast','items','setTemplate','prompt','submit','keystrokes','queryView','_focusables','isProcessing','copyButtonView','_createPromptView'];(function(_0x2da91a,_0x287bba){const _0x455b21=function(_0x144636){while(--_0x144636){_0x2da91a['push'](_0x2da91a['shift']());}};_0x455b21(++_0x287bba);}(_0x287b,0x123));const _0x455b=function(_0x2da91a,_0x287bba){_0x2da91a=_0x2da91a-0x0;let _0x455b21=_0x287b[_0x2da91a];return _0x455b21;};import{FocusTracker as _0x53ee1d,KeystrokeHandler as _0x41d6c6}from'ckeditor5/src/utils.js';import{View as _0x43f5d6,FocusCycler as _0x313bdc,createLabeledTextarea as _0x284bbc}from'ckeditor5/src/ui.js';import _0x27ae3a,{AIFormToolbarViewMainActionLabel as _0x494123}from'./aiformtoolbarview.js';import _0x3b3ccd from'./aiformcontentarea.js';import _0x256f89 from'./aiformerrorview.js';import _0x2b0094 from'./aiformpromptview.js';import _0x343725 from'./aihistorylistview.js';import _0x54f7f6 from'./aihistorylistitemview.js';import _0x44ec00 from'./prompthistory.js';import{getTranslation as _0x10e538}from'../../utils/common-translations.js';import{escape as _0x72d839}from'lodash-es';export default class v extends _0x43f5d6{constructor(_0x4d02c8,_0x178708,_0x5ee5b1=''){super(_0x4d02c8),this[_0x455b('0x0')](_0x455b('0x38'),!0x0),this[_0x455b('0x0')](_0x455b('0x33'),!0x1),this['set'](_0x455b('0x2e'),''),this[_0x455b('0x0')](_0x455b('0x40'),''),this[_0x455b('0x0')](_0x455b('0x2'),!0x1),this[_0x455b('0x0')](_0x455b('0x25'),_0x494123[_0x455b('0x17')]),this[_0x455b('0x8')]=new _0x44ec00(),this[_0x455b('0x6')]=new _0x256f89(_0x4d02c8),this[_0x455b('0x42')]=new _0x3b3ccd(_0x4d02c8,_0x5ee5b1),this['contentArea'][_0x455b('0x27')](_0x455b('0x33'))['to'](this),this[_0x455b('0x42')][_0x455b('0x27')](_0x455b('0x40'))['to'](this),this[_0x455b('0x14')]=this[_0x455b('0x20')](),this[_0x455b('0x14')]['bind']('mainAction')['to'](this),this[_0x455b('0x10')]=this['_createPromptView'](),this[_0x455b('0xe')]=new _0x53ee1d(),this[_0x455b('0x30')]=new _0x41d6c6(),this[_0x455b('0x32')]=this[_0x455b('0x24')]([this['contentArea'],this[_0x455b('0x42')][_0x455b('0x34')],this[_0x455b('0x14')],this[_0x455b('0x10')]]),this[_0x455b('0x3b')]=new _0x313bdc({'focusables':this[_0x455b('0x32')],'focusTracker':this[_0x455b('0xe')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x455b('0x3e'),'focusNext':'tab'}}),this[_0x455b('0x10')][_0x455b('0x3b')]['on']('forwardCycle',_0x456929=>{this[_0x455b('0x3b')][_0x455b('0xb')](),_0x456929[_0x455b('0xd')]();}),this[_0x455b('0x10')][_0x455b('0x3b')]['on'](_0x455b('0xc'),_0x59a37e=>{this[_0x455b('0x3b')][_0x455b('0x43')](),_0x59a37e[_0x455b('0xd')]();}),this[_0x455b('0x10')][_0x455b('0x31')][_0x455b('0x4')]['bind'](_0x455b('0x40'))['to'](this,_0x455b('0x2e'));const _0x4bafdb=this['bindTemplate'];this[_0x455b('0x2d')]({'tag':_0x455b('0x13'),'attributes':{'class':['ck',_0x455b('0xf'),_0x178708],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck',_0x455b('0x1f')]},'children':[{'tag':_0x455b('0x13'),'attributes':{'class':[_0x4bafdb['if']('isError','ck-hidden',_0x16ceec=>!_0x16ceec)]},'children':[this[_0x455b('0x6')]]},this[_0x455b('0x42')],this[_0x455b('0x14')],this['promptView']]}]});}[_0x455b('0x18')](){super[_0x455b('0x18')](),this['focusTracker'][_0x455b('0x3c')](this[_0x455b('0x42')]['element']),this[_0x455b('0xe')][_0x455b('0x3c')](this['contentArea'][_0x455b('0x34')][_0x455b('0x19')]),this[_0x455b('0xe')][_0x455b('0x3c')](this['toolbar'][_0x455b('0x19')]),this[_0x455b('0xe')][_0x455b('0x3c')](this[_0x455b('0x10')][_0x455b('0x19')]),this['keystrokes']['listenTo'](this[_0x455b('0x19')]);}[_0x455b('0x21')](_0x49a309=0x1){-0x1===_0x49a309?this['focusCycler'][_0x455b('0x2b')]():this[_0x455b('0x3b')][_0x455b('0x16')]();}[_0x455b('0x28')](){this['prompt']='',this['value']='',this[_0x455b('0x2')]=!0x1,this['promptView']['reset'](),this[_0x455b('0x42')]['isVisible']=!0x1,this[_0x455b('0x14')][_0x455b('0x1e')]=!0x1;}[_0x455b('0x35')](){const _0x56dd74=this[_0x455b('0x39')],_0x237644=new _0x2b0094(_0x56dd74,{'queryView':{'label':_0x10e538(_0x56dd74,'Ask\x20AI\x20to\x20edit\x20or\x20generate'),'creator':_0x284bbc,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x10e538(_0x56dd74,'Empty\x20history'),'secondary':_0x10e538(_0x56dd74,_0x455b('0x1'))}}},'filteredView':this[_0x455b('0x12')](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x237644[_0x455b('0x27')](_0x455b('0x38'))['to'](this,_0x455b('0x38'),this,_0x455b('0x33'),(_0xb59428,_0xe00802)=>_0xb59428&&!_0xe00802),this['listenTo'](_0x237644,_0x455b('0x2f'),(_0x6ed043,_0x2f074e)=>{this['prompt']=_0x2f074e;const _0xdc6a0=_0x72d839(_0x2f074e);this[_0x455b('0x3f')](_0x455b('0x3'),_0xdc6a0),_0x2f074e[_0x455b('0x2a')]()&&this[_0x455b('0x8')]['add']({'prompt':_0xdc6a0},0x0);},{'priority':'high'}),_0x237644;}[_0x455b('0x12')](){const _0x4d1d91=new _0x343725(this['locale']);return _0x4d1d91[_0x455b('0x3d')][_0x455b('0x2c')][_0x455b('0x1d')](this[_0x455b('0x8')])['as'](_0x54f7f6),_0x4d1d91['on'](_0x455b('0x7'),()=>{this[_0x455b('0x8')][_0x455b('0x37')](),this['promptView']['search'](''),this[_0x455b('0x10')]['focus']();}),_0x4d1d91;}['_createToolbar'](){const _0x1dd56c=new _0x27ae3a(this[_0x455b('0x39')]);return _0x1dd56c[_0x455b('0x36')]['bind']('isEnabled')['to'](this,_0x455b('0x38'),this,'isProcessing',this,_0x455b('0x40'),(_0x3048b2,_0x5a9f38,_0x5e9238)=>_0x3048b2&&!_0x5a9f38&&!!_0x5e9238),_0x1dd56c['replaceButton'][_0x455b('0x5')](_0x455b('0x29'))['to'](this,_0x455b('0x44')),_0x1dd56c[_0x455b('0x1c')][_0x455b('0x27')](_0x455b('0x38'))['to'](this,_0x455b('0x38'),this,'isProcessing',this,_0x455b('0x40'),(_0x233f1d,_0x122b37,_0x225080)=>_0x233f1d&&!_0x122b37&&!!_0x225080),_0x1dd56c['insertButton'][_0x455b('0x5')](_0x455b('0x29'))['to'](this,_0x455b('0x41')),_0x1dd56c[_0x455b('0x22')][_0x455b('0x27')](_0x455b('0x38'))['to'](this,_0x455b('0x38'),this,_0x455b('0x33'),(_0x4cde12,_0x5eda1d)=>_0x4cde12&&!_0x5eda1d),_0x1dd56c[_0x455b('0x22')][_0x455b('0x5')](_0x455b('0x29'))['to'](this,_0x455b('0x1b')),_0x1dd56c[_0x455b('0xa')][_0x455b('0x27')]('isEnabled')['to'](this,_0x455b('0x33')),_0x1dd56c[_0x455b('0xa')][_0x455b('0x5')](_0x455b('0x29'))['to'](this,_0x455b('0x26')),_0x1dd56c;}[_0x455b('0x15')](){this['value']='',this[_0x455b('0x2')]=!0x1,this['isProcessing']=!0x0,this[_0x455b('0x42')]['isVisible']=!0x0,this[_0x455b('0x14')][_0x455b('0x1e')]=!0x0,this[_0x455b('0x42')][_0x455b('0x21')]();}[_0x455b('0x23')](){const _0x2143ef=this[_0x455b('0x39')];this['isProcessing']=!0x1,this[_0x455b('0x2e')]='',this[_0x455b('0x10')][_0x455b('0x28')](),this[_0x455b('0x40')]&&(this['promptView'][_0x455b('0x31')]['label']=_0x10e538(_0x2143ef,_0x455b('0x9')));}[_0x455b('0x11')](_0x352c47){const _0x4e9b30=this[_0x455b('0x39')];this[_0x455b('0x23')](),this['isError']=!0x0,this[_0x455b('0x6')][_0x455b('0x1a')]=_0x352c47||_0x10e538(_0x4e9b30,_0x455b('0x3a')),this['value']||(this[_0x455b('0x42')][_0x455b('0x1e')]=!0x1);}}
23
+ const _0x245c09=_0x56d2;(function(_0x26b893,_0x3c9f4e){const _0x287f7a=_0x56d2,_0x2deac3=_0x26b893();while(!![]){try{const _0x32a944=parseInt(_0x287f7a(0x9c))/0x1+parseInt(_0x287f7a(0xa6))/0x2*(-parseInt(_0x287f7a(0x82))/0x3)+-parseInt(_0x287f7a(0xae))/0x4+parseInt(_0x287f7a(0xb1))/0x5+-parseInt(_0x287f7a(0xa2))/0x6*(parseInt(_0x287f7a(0xc8))/0x7)+parseInt(_0x287f7a(0xb0))/0x8*(parseInt(_0x287f7a(0xbc))/0x9)+parseInt(_0x287f7a(0x8a))/0xa;if(_0x32a944===_0x3c9f4e)break;else _0x2deac3['push'](_0x2deac3['shift']());}catch(_0xfcd5e5){_0x2deac3['push'](_0x2deac3['shift']());}}}(_0x34e0,0x2e792));import{FocusTracker as _0x14e75d,KeystrokeHandler as _0x42b7ba}from'ckeditor5/src/utils.js';import{View as _0x514a4f,FocusCycler as _0x705dce,createLabeledTextarea as _0x350472}from'ckeditor5/src/ui.js';function _0x34e0(){const _0x3de585=['queryView','delegate','tab','clearHistory','Ask\x20AI\x20to\x20edit\x20or\x20generate','stopProcessing','focus','listenTo','forwardCycle','reset','AI_ERROR_FAILED','218211enaYRp','trim','handleError','_focusables','historyGroupView','focusTracker','focusCycler','prompt','ck-ai-form-content','fieldView','element','contentArea','clear','isProcessing','Empty\x20history','locale','items','createCollection','startProcessing','351KeaoZr','fire','_createHistoryView','isVisible','search','render','bindTemplate','value','3670890yjWVEe','submit','insertButton','shift\x20+\x20tab','ck-ai-form','keystrokes','text','stop','focusPrevious','replaceContent','mainAction','toolbar','bind','add','finishProcessing','focusFirst','div','insertContentBelow','32720xVWlzr','high','tryAgainEvent','bindTo','focusLast','REPLACE','72aaCFxB','submitPrompt','replaceButton','ck-hidden','1874IuZAwq','copyButtonView','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','setTemplate','tryAgainButton','execute','Ask\x20AI\x20to\x20improve\x20generated\x20text','_createToolbar','342472aTqSah','promptView','4568UFVrgl','1131270XFqQmH','set','isError','backwardCycle','focusNext','_promptHistory','stopButton','errorView','_createPromptView','isEnabled','label','2106bEQGtG'];_0x34e0=function(){return _0x3de585;};return _0x34e0();}import _0x3857d5,{AIFormToolbarViewMainActionLabel as _0x3b8d30}from'./aiformtoolbarview.js';import _0xfc5376 from'./aiformcontentarea.js';import _0x356774 from'./aiformerrorview.js';import _0x2c82c5 from'./aiformpromptview.js';import _0x59e073 from'./aihistorylistview.js';import _0x328911 from'./aihistorylistitemview.js';function _0x56d2(_0x412932,_0x251c74){const _0x34e05d=_0x34e0();return _0x56d2=function(_0x56d2d5,_0xfdb8d1){_0x56d2d5=_0x56d2d5-0x77;let _0x359dfd=_0x34e05d[_0x56d2d5];return _0x359dfd;},_0x56d2(_0x412932,_0x251c74);}import _0x38f3a9 from'./prompthistory.js';import{getTranslation as _0x22d040}from'../../utils/common-translations.js';import{escape as _0x3b559d}from'lodash-es';export default class j extends _0x514a4f{constructor(_0x55827d,_0x46f77f,_0x2d0128=''){const _0x535bc3=_0x56d2;super(_0x55827d),this[_0x535bc3(0xb2)](_0x535bc3(0xba),!0x0),this[_0x535bc3(0xb2)](_0x535bc3(0x7c),!0x1),this[_0x535bc3(0xb2)](_0x535bc3(0xcf),''),this[_0x535bc3(0xb2)](_0x535bc3(0x89),''),this[_0x535bc3(0xb2)](_0x535bc3(0xb3),!0x1),this[_0x535bc3(0xb2)](_0x535bc3(0x94),_0x3b8d30[_0x535bc3(0xa1)]),this[_0x535bc3(0xb6)]=new _0x38f3a9(),this[_0x535bc3(0xb8)]=new _0x356774(_0x55827d),this[_0x535bc3(0x7a)]=new _0xfc5376(_0x55827d,_0x2d0128),this[_0x535bc3(0x7a)][_0x535bc3(0x96)](_0x535bc3(0x7c))['to'](this),this[_0x535bc3(0x7a)][_0x535bc3(0x96)](_0x535bc3(0x89))['to'](this),this[_0x535bc3(0x95)]=this[_0x535bc3(0xad)](),this[_0x535bc3(0x95)][_0x535bc3(0x96)](_0x535bc3(0x94))['to'](this),this[_0x535bc3(0xaf)]=this[_0x535bc3(0xb9)](),this[_0x535bc3(0xcd)]=new _0x14e75d(),this[_0x535bc3(0x8f)]=new _0x42b7ba(),this[_0x535bc3(0xcb)]=this[_0x535bc3(0x80)]([this[_0x535bc3(0x7a)],this[_0x535bc3(0x7a)][_0x535bc3(0xa7)],this[_0x535bc3(0x95)],this[_0x535bc3(0xaf)]]),this[_0x535bc3(0xce)]=new _0x705dce({'focusables':this[_0x535bc3(0xcb)],'focusTracker':this[_0x535bc3(0xcd)],'keystrokeHandler':this[_0x535bc3(0x8f)],'actions':{'focusPrevious':_0x535bc3(0x8d),'focusNext':_0x535bc3(0xbf)}}),this[_0x535bc3(0xaf)][_0x535bc3(0xce)]['on'](_0x535bc3(0xc5),_0x1d6360=>{const _0x1994da=_0x535bc3;this[_0x1994da(0xce)][_0x1994da(0xb5)](),_0x1d6360[_0x1994da(0x91)]();}),this[_0x535bc3(0xaf)][_0x535bc3(0xce)]['on'](_0x535bc3(0xb4),_0x2eafb6=>{const _0x159201=_0x535bc3;this[_0x159201(0xce)][_0x159201(0x92)](),_0x2eafb6[_0x159201(0x91)]();}),this[_0x535bc3(0xaf)][_0x535bc3(0xbd)][_0x535bc3(0x78)][_0x535bc3(0x96)](_0x535bc3(0x89))['to'](this,_0x535bc3(0xcf));const _0xec349=this[_0x535bc3(0x88)];this[_0x535bc3(0xa9)]({'tag':_0x535bc3(0x9a),'attributes':{'class':['ck',_0x535bc3(0x8e),_0x46f77f],'tabindex':'-1'},'children':[{'tag':_0x535bc3(0x9a),'attributes':{'class':['ck',_0x535bc3(0x77)]},'children':[{'tag':_0x535bc3(0x9a),'attributes':{'class':[_0xec349['if'](_0x535bc3(0xb3),_0x535bc3(0xa5),_0x31182c=>!_0x31182c)]},'children':[this[_0x535bc3(0xb8)]]},this[_0x535bc3(0x7a)],this[_0x535bc3(0x95)],this[_0x535bc3(0xaf)]]}]});}[_0x245c09(0x87)](){const _0xb41697=_0x245c09;super[_0xb41697(0x87)](),this[_0xb41697(0xcd)][_0xb41697(0x97)](this[_0xb41697(0x7a)][_0xb41697(0x79)]),this[_0xb41697(0xcd)][_0xb41697(0x97)](this[_0xb41697(0x7a)][_0xb41697(0xa7)][_0xb41697(0x79)]),this[_0xb41697(0xcd)][_0xb41697(0x97)](this[_0xb41697(0x95)][_0xb41697(0x79)]),this[_0xb41697(0xcd)][_0xb41697(0x97)](this[_0xb41697(0xaf)][_0xb41697(0x79)]),this[_0xb41697(0x8f)][_0xb41697(0xc4)](this[_0xb41697(0x79)]);}[_0x245c09(0xc3)](_0x445cff=0x1){const _0x3d8651=_0x245c09;-0x1===_0x445cff?this[_0x3d8651(0xce)][_0x3d8651(0xa0)]():this[_0x3d8651(0xce)][_0x3d8651(0x99)]();}[_0x245c09(0xc6)](){const _0x43c6a1=_0x245c09;this[_0x43c6a1(0xcf)]='',this[_0x43c6a1(0x89)]='',this[_0x43c6a1(0xb3)]=!0x1,this[_0x43c6a1(0xaf)][_0x43c6a1(0xc6)](),this[_0x43c6a1(0x7a)][_0x43c6a1(0x85)]=!0x1,this[_0x43c6a1(0x95)][_0x43c6a1(0x85)]=!0x1;}[_0x245c09(0xb9)](){const _0x74f039=_0x245c09,_0x4e5904=this[_0x74f039(0x7e)],_0x2d30c9=new _0x2c82c5(_0x4e5904,{'queryView':{'label':_0x22d040(_0x4e5904,_0x74f039(0xc1)),'creator':_0x350472,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x22d040(_0x4e5904,_0x74f039(0x7d)),'secondary':_0x22d040(_0x4e5904,_0x74f039(0xa8))}}},'filteredView':this[_0x74f039(0x84)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x2d30c9[_0x74f039(0x96)](_0x74f039(0xba))['to'](this,_0x74f039(0xba),this,_0x74f039(0x7c),(_0x3a8099,_0x526cb6)=>_0x3a8099&&!_0x526cb6),this[_0x74f039(0xc4)](_0x2d30c9,_0x74f039(0x8b),(_0x3a9f57,_0x20b71f)=>{const _0x11fdfb=_0x74f039;this[_0x11fdfb(0xcf)]=_0x20b71f;const _0x2591eb=_0x3b559d(_0x20b71f);this[_0x11fdfb(0x83)](_0x11fdfb(0xa3),_0x2591eb),_0x20b71f[_0x11fdfb(0xc9)]()&&this[_0x11fdfb(0xb6)][_0x11fdfb(0x97)]({'prompt':_0x2591eb},0x0);},{'priority':_0x74f039(0x9d)}),_0x2d30c9;}[_0x245c09(0x84)](){const _0x1bd71b=_0x245c09,_0x1b4cfb=new _0x59e073(this[_0x1bd71b(0x7e)]);return _0x1b4cfb[_0x1bd71b(0xcc)][_0x1bd71b(0x7f)][_0x1bd71b(0x9f)](this[_0x1bd71b(0xb6)])['as'](_0x328911),_0x1b4cfb['on'](_0x1bd71b(0xc0),()=>{const _0x39cecf=_0x1bd71b;this[_0x39cecf(0xb6)][_0x39cecf(0x7b)](),this[_0x39cecf(0xaf)][_0x39cecf(0x86)](''),this[_0x39cecf(0xaf)][_0x39cecf(0xc3)]();}),_0x1b4cfb;}[_0x245c09(0xad)](){const _0x457b5a=_0x245c09,_0x31cfd0=new _0x3857d5(this[_0x457b5a(0x7e)]);return _0x31cfd0[_0x457b5a(0xa4)][_0x457b5a(0x96)](_0x457b5a(0xba))['to'](this,_0x457b5a(0xba),this,_0x457b5a(0x7c),this,_0x457b5a(0x89),(_0x2fabc9,_0x358849,_0x278ea6)=>_0x2fabc9&&!_0x358849&&!!_0x278ea6),_0x31cfd0[_0x457b5a(0xa4)][_0x457b5a(0xbe)](_0x457b5a(0xab))['to'](this,_0x457b5a(0x93)),_0x31cfd0[_0x457b5a(0x8c)][_0x457b5a(0x96)](_0x457b5a(0xba))['to'](this,_0x457b5a(0xba),this,_0x457b5a(0x7c),this,_0x457b5a(0x89),(_0x3b3b91,_0x4f23d9,_0x32e430)=>_0x3b3b91&&!_0x4f23d9&&!!_0x32e430),_0x31cfd0[_0x457b5a(0x8c)][_0x457b5a(0xbe)](_0x457b5a(0xab))['to'](this,_0x457b5a(0x9b)),_0x31cfd0[_0x457b5a(0xaa)][_0x457b5a(0x96)](_0x457b5a(0xba))['to'](this,_0x457b5a(0xba),this,_0x457b5a(0x7c),(_0x8d8755,_0x23d54a)=>_0x8d8755&&!_0x23d54a),_0x31cfd0[_0x457b5a(0xaa)][_0x457b5a(0xbe)](_0x457b5a(0xab))['to'](this,_0x457b5a(0x9e)),_0x31cfd0[_0x457b5a(0xb7)][_0x457b5a(0x96)](_0x457b5a(0xba))['to'](this,_0x457b5a(0x7c)),_0x31cfd0[_0x457b5a(0xb7)][_0x457b5a(0xbe)](_0x457b5a(0xab))['to'](this,_0x457b5a(0xc2)),_0x31cfd0;}[_0x245c09(0x81)](){const _0x1956c1=_0x245c09;this[_0x1956c1(0x89)]='',this[_0x1956c1(0xb3)]=!0x1,this[_0x1956c1(0x7c)]=!0x0,this[_0x1956c1(0x7a)][_0x1956c1(0x85)]=!0x0,this[_0x1956c1(0x95)][_0x1956c1(0x85)]=!0x0,this[_0x1956c1(0x7a)][_0x1956c1(0xc3)]();}[_0x245c09(0x98)](){const _0x195868=_0x245c09,_0x4be634=this[_0x195868(0x7e)];this[_0x195868(0x7c)]=!0x1,this[_0x195868(0xcf)]='',this[_0x195868(0xaf)][_0x195868(0xc6)](),this[_0x195868(0x89)]&&(this[_0x195868(0xaf)][_0x195868(0xbd)][_0x195868(0xbb)]=_0x22d040(_0x4be634,_0x195868(0xac)));}[_0x245c09(0xca)](_0x1580ef){const _0x167f66=_0x245c09,_0x3e042f=this[_0x167f66(0x7e)];this[_0x167f66(0x98)](),this[_0x167f66(0xb3)]=!0x0,this[_0x167f66(0xb8)][_0x167f66(0x90)]=_0x1580ef||_0x22d040(_0x3e042f,_0x167f66(0xc7)),this[_0x167f66(0x89)]||(this[_0x167f66(0x7a)][_0x167f66(0x85)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e70=['add','prompt','execute','fire'];(function(_0x2c4464,_0x5e70d1){const _0x5711aa=function(_0x2d5c09){while(--_0x2d5c09){_0x2c4464['push'](_0x2c4464['shift']());}};_0x5711aa(++_0x5e70d1);}(_0x5e70,0x11e));const _0x5711=function(_0x2c4464,_0x5e70d1){_0x2c4464=_0x2c4464-0x0;let _0x5711aa=_0x5e70[_0x2c4464];return _0x5711aa;};import{ListItemView as _0x5942e3,ButtonView as _0x142971}from'ckeditor5/src/ui.js';import _0x35f643 from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x2caf88}from'lodash-es';export default class hs extends _0x5942e3{constructor(_0x365248){super();const _0x3067d6=new _0x35f643(),_0x419c88=new _0x142971(this['locale'],_0x3067d6);this['children'][_0x5711('0x2')](_0x419c88),_0x419c88['set']({'label':_0x365248[_0x5711('0x3')],'withText':!0x0}),_0x419c88['on'](_0x5711('0x0'),()=>{this[_0x5711('0x1')](_0x5711('0x0'),{'value':_0x2caf88(_0x365248[_0x5711('0x3')])});});}}
23
+ (function(_0x3b646b,_0x2a569f){const _0x450e98=_0x1895,_0x509f12=_0x3b646b();while(!![]){try{const _0x501d6c=parseInt(_0x450e98(0x72))/0x1+parseInt(_0x450e98(0x74))/0x2*(-parseInt(_0x450e98(0x6d))/0x3)+-parseInt(_0x450e98(0x6f))/0x4*(parseInt(_0x450e98(0x70))/0x5)+-parseInt(_0x450e98(0x68))/0x6*(-parseInt(_0x450e98(0x6b))/0x7)+-parseInt(_0x450e98(0x75))/0x8*(-parseInt(_0x450e98(0x6c))/0x9)+parseInt(_0x450e98(0x6e))/0xa+-parseInt(_0x450e98(0x79))/0xb;if(_0x501d6c===_0x2a569f)break;else _0x509f12['push'](_0x509f12['shift']());}catch(_0xa524b6){_0x509f12['push'](_0x509f12['shift']());}}}(_0x5c40,0x78b82));function _0x1895(_0x478588,_0x1cf603){const _0x5c4078=_0x5c40();return _0x1895=function(_0x18955a,_0x3fcd81){_0x18955a=_0x18955a-0x68;let _0x25ca1d=_0x5c4078[_0x18955a];return _0x25ca1d;},_0x1895(_0x478588,_0x1cf603);}function _0x5c40(){const _0x326b43=['376enGaQW','locale','execute','fire','18985120SpAair','3997146tXLJqy','children','set','7JyINrk','147987wBpEqC','6yUYVKV','4653450jUqWtg','12RNiYXu','449935asXpWk','prompt','696904OcWPVr','add','110914ADdPDo'];_0x5c40=function(){return _0x326b43;};return _0x5c40();}import{ListItemView as _0x187632,ButtonView as _0x12b0d5}from'ckeditor5/src/ui.js';import _0x5dd764 from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0xfe6a97}from'lodash-es';export default class hs extends _0x187632{constructor(_0x491c16){const _0x5b43be=_0x1895;super();const _0x57424b=new _0x5dd764(),_0x469cd1=new _0x12b0d5(this[_0x5b43be(0x76)],_0x57424b);this[_0x5b43be(0x69)][_0x5b43be(0x73)](_0x469cd1),_0x469cd1[_0x5b43be(0x6a)]({'label':_0x491c16[_0x5b43be(0x71)],'withText':!0x0}),_0x469cd1['on'](_0x5b43be(0x77),()=>{const _0x2b4fed=_0x5b43be;this[_0x2b4fed(0x78)](_0x2b4fed(0x77),{'value':_0xfe6a97(_0x491c16[_0x2b4fed(0x71)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f1b=['set','items','Clear','historyGroupView','filter','length','add','clearHistoryButton','clearHistory','execute','fire','locale'];(function(_0x1b3d0a,_0x1f1b2c){const _0x4e4322=function(_0x4c23f4){while(--_0x4c23f4){_0x1b3d0a['push'](_0x1b3d0a['shift']());}};_0x4e4322(++_0x1f1b2c);}(_0x1f1b,0xd6));const _0x4e43=function(_0x1b3d0a,_0x1f1b2c){_0x1b3d0a=_0x1b3d0a-0x0;let _0x4e4322=_0x1f1b[_0x1b3d0a];return _0x4e4322;};import{ListView as _0x2ea859,ListItemGroupView as _0x5383d5,ButtonView as _0x99327e}from'ckeditor5/src/ui.js';import{getTranslation as _0x52d153}from'../../utils/common-translations.js';export default class rs extends _0x2ea859{constructor(_0x1689c1){super(_0x1689c1),this[_0x4e43('0x9')]=this['_createClearHistoryButton'](),this[_0x4e43('0x5')]=new _0x5383d5(),this['historyGroupView']['children'][_0x4e43('0x8')](this[_0x4e43('0x9')],0x1),this[_0x4e43('0x5')]['label']=_0x52d153(_0x1689c1,'Prompt\x20history'),this[_0x4e43('0x5')][_0x4e43('0x3')]['delegate'](_0x4e43('0xb'))['to'](this),this[_0x4e43('0x3')]['add'](this['historyGroupView']);}[_0x4e43('0x6')](){let _0x477be0=0x0;for(const _0x15a621 of this[_0x4e43('0x3')])_0x477be0+=_0x15a621[_0x4e43('0x3')][_0x4e43('0x7')];return{'resultsCount':_0x477be0,'totalItemsCount':_0x477be0};}['_createClearHistoryButton'](){const _0x352003=this['locale'],_0x557e3a=new _0x99327e(this[_0x4e43('0x1')]);return _0x557e3a[_0x4e43('0x2')]({'label':'('+_0x52d153(_0x352003,_0x4e43('0x4'))+')','withText':!0x0}),_0x557e3a['on'](_0x4e43('0xb'),()=>this[_0x4e43('0x0')](_0x4e43('0xa'))),_0x557e3a;}}
23
+ function _0x2f23(_0x3b6d3b,_0xcfe9a1){const _0x1d61f0=_0x1d61();return _0x2f23=function(_0x2f2313,_0x13902e){_0x2f2313=_0x2f2313-0x1b8;let _0x3e8ace=_0x1d61f0[_0x2f2313];return _0x3e8ace;},_0x2f23(_0x3b6d3b,_0xcfe9a1);}function _0x1d61(){const _0x4ecae5=['Prompt\x20history','93492nYDURG','children','390999HVvFXt','149194zvQWMW','length','1044610aLYrgY','8OPGczQ','execute','locale','add','clearHistoryButton','filter','536742ElgoQX','fire','historyGroupView','Clear','set','items','label','185142kZMjno','907485PHJulC','clearHistory','delegate','_createClearHistoryButton'];_0x1d61=function(){return _0x4ecae5;};return _0x1d61();}const _0x2c654e=_0x2f23;(function(_0x56955b,_0x7c21f0){const _0x5deffb=_0x2f23,_0xc2ca30=_0x56955b();while(!![]){try{const _0x5b03c6=parseInt(_0x5deffb(0x1b8))/0x1+parseInt(_0x5deffb(0x1c1))/0x2+-parseInt(_0x5deffb(0x1c0))/0x3+-parseInt(_0x5deffb(0x1be))/0x4+-parseInt(_0x5deffb(0x1b9))/0x5+parseInt(_0x5deffb(0x1ca))/0x6+-parseInt(_0x5deffb(0x1c3))/0x7*(-parseInt(_0x5deffb(0x1c4))/0x8);if(_0x5b03c6===_0x7c21f0)break;else _0xc2ca30['push'](_0xc2ca30['shift']());}catch(_0x5d9319){_0xc2ca30['push'](_0xc2ca30['shift']());}}}(_0x1d61,0x27d97));import{ListView as _0x19d426,ListItemGroupView as _0x1aa00d,ButtonView as _0x1f4807}from'ckeditor5/src/ui.js';import{getTranslation as _0x4375f8}from'../../utils/common-translations.js';export default class rs extends _0x19d426{constructor(_0x3d7492){const _0x25095d=_0x2f23;super(_0x3d7492),this[_0x25095d(0x1c8)]=this[_0x25095d(0x1bc)](),this[_0x25095d(0x1cc)]=new _0x1aa00d(),this[_0x25095d(0x1cc)][_0x25095d(0x1bf)][_0x25095d(0x1c7)](this[_0x25095d(0x1c8)],0x1),this[_0x25095d(0x1cc)][_0x25095d(0x1d0)]=_0x4375f8(_0x3d7492,_0x25095d(0x1bd)),this[_0x25095d(0x1cc)][_0x25095d(0x1cf)][_0x25095d(0x1bb)](_0x25095d(0x1c5))['to'](this),this[_0x25095d(0x1cf)][_0x25095d(0x1c7)](this[_0x25095d(0x1cc)]);}[_0x2c654e(0x1c9)](){const _0x4db570=_0x2c654e;let _0x4dd42e=0x0;for(const _0x2ddcd9 of this[_0x4db570(0x1cf)])_0x4dd42e+=_0x2ddcd9[_0x4db570(0x1cf)][_0x4db570(0x1c2)];return{'resultsCount':_0x4dd42e,'totalItemsCount':_0x4dd42e};}[_0x2c654e(0x1bc)](){const _0x54fb57=_0x2c654e,_0x519404=this[_0x54fb57(0x1c6)],_0x36755f=new _0x1f4807(this[_0x54fb57(0x1c6)]);return _0x36755f[_0x54fb57(0x1ce)]({'label':'('+_0x4375f8(_0x519404,_0x54fb57(0x1cd))+')','withText':!0x0}),_0x36755f['on'](_0x54fb57(0x1c5),()=>this[_0x54fb57(0x1cb)](_0x54fb57(0x1ba))),_0x36755f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1242=['CKEditor/AIFormView/PromptHistory','toLowerCase','length','getItem','remove','stringify','addMany','last','add','setItem','prompt','_saveToSessionStorage','map'];(function(_0xfca20c,_0x124275){const _0x41a510=function(_0x1fce27){while(--_0x1fce27){_0xfca20c['push'](_0xfca20c['shift']());}};_0x41a510(++_0x124275);}(_0x1242,0xa6));const _0x41a5=function(_0xfca20c,_0x124275){_0xfca20c=_0xfca20c-0x0;let _0x41a510=_0x1242[_0xfca20c];return _0x41a510;};import{Collection as _0x379985}from'ckeditor5/src/utils.js';const cs=_0x41a5('0x3');export default class os extends _0x379985{constructor(){super(),this['_loadFromSessionStorage'](),this['on'](_0x41a5('0xb'),(_0x5c5b9b,_0x269b4d)=>{const _0x44f0ba=Ss(_0x269b4d[_0x41a5('0x0')]);for(const _0x7df0b7 of this)if(_0x7df0b7!=_0x269b4d&&Ss(_0x7df0b7['prompt'])===_0x44f0ba){this[_0x41a5('0x7')](_0x7df0b7);break;}this[_0x41a5('0x5')]>0x14&&this[_0x41a5('0x7')](this[_0x41a5('0xa')]),this[_0x41a5('0x1')]();}),this['on']('remove',()=>{this[_0x41a5('0x1')]();});}['_loadFromSessionStorage'](){const _0x48dd43=sessionStorage[_0x41a5('0x6')](cs)||'[]';this[_0x41a5('0x9')](JSON['parse'](_0x48dd43));}['_saveToSessionStorage'](){sessionStorage[_0x41a5('0xc')](cs,JSON[_0x41a5('0x8')](this[_0x41a5('0x2')](_0x4e67a8=>_0x4e67a8)));}}function Ss(_0x238169){return _0x238169[_0x41a5('0x4')]()['trim']();}
23
+ const _0x366e3f=_0x2408;(function(_0x36cc66,_0x368b73){const _0x321868=_0x2408,_0x575dbe=_0x36cc66();while(!![]){try{const _0x528b7d=parseInt(_0x321868(0x172))/0x1+parseInt(_0x321868(0x17b))/0x2+parseInt(_0x321868(0x16c))/0x3+parseInt(_0x321868(0x17a))/0x4*(parseInt(_0x321868(0x16e))/0x5)+-parseInt(_0x321868(0x171))/0x6+-parseInt(_0x321868(0x179))/0x7*(-parseInt(_0x321868(0x16d))/0x8)+-parseInt(_0x321868(0x170))/0x9;if(_0x528b7d===_0x368b73)break;else _0x575dbe['push'](_0x575dbe['shift']());}catch(_0x224ff7){_0x575dbe['push'](_0x575dbe['shift']());}}}(_0x3306,0x72ec8));import{Collection as _0x132de4}from'ckeditor5/src/utils.js';const cs=_0x366e3f(0x176);export default class os extends _0x132de4{constructor(){const _0x28d957=_0x366e3f;super(),this[_0x28d957(0x175)](),this['on'](_0x28d957(0x17c),(_0x26ebf4,_0x313e2b)=>{const _0x25095b=_0x28d957,_0x2d03b9=Ss(_0x313e2b[_0x25095b(0x177)]);for(const _0x7fd45f of this)if(_0x7fd45f!=_0x313e2b&&Ss(_0x7fd45f[_0x25095b(0x177)])===_0x2d03b9){this[_0x25095b(0x167)](_0x7fd45f);break;}this[_0x25095b(0x16f)]>0x14&&this[_0x25095b(0x167)](this[_0x25095b(0x178)]),this[_0x25095b(0x17d)]();}),this['on'](_0x28d957(0x167),()=>{const _0x4a5ce2=_0x28d957;this[_0x4a5ce2(0x17d)]();});}[_0x366e3f(0x175)](){const _0x1af7ed=_0x366e3f,_0x180256=sessionStorage[_0x1af7ed(0x16b)](cs)||'[]';this[_0x1af7ed(0x169)](JSON[_0x1af7ed(0x16a)](_0x180256));}[_0x366e3f(0x17d)](){const _0x2574bf=_0x366e3f;sessionStorage[_0x2574bf(0x17e)](cs,JSON[_0x2574bf(0x174)](this[_0x2574bf(0x173)](_0x481ebc=>_0x481ebc)));}}function Ss(_0x1d4eb3){const _0x1a928b=_0x366e3f;return _0x1d4eb3[_0x1a928b(0x166)]()[_0x1a928b(0x168)]();}function _0x2408(_0x5ab615,_0x48684c){const _0x330691=_0x3306();return _0x2408=function(_0x2408ad,_0x35e93b){_0x2408ad=_0x2408ad-0x166;let _0x1e066a=_0x330691[_0x2408ad];return _0x1e066a;},_0x2408(_0x5ab615,_0x48684c);}function _0x3306(){const _0x550d4a=['1005dxeUJG','length','13481496OOiuKg','1342368fmCIsx','714cVFlnS','map','stringify','_loadFromSessionStorage','CKEditor/AIFormView/PromptHistory','prompt','last','7FaQYbb','10124BnOoyS','1354868xJVHFN','add','_saveToSessionStorage','setItem','toLowerCase','remove','trim','addMany','parse','getItem','2684559hcocqI','885344vBfPYC'];_0x3306=function(){return _0x550d4a;};return _0x3306();}
@@ -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 _0x40bb=['refresh','includes','isEnabled','ai.aiAssistant.disabledElements','element','getRanges','config','execute','get','editor','showUI','model','name','getItems','plugins'];(function(_0x3cc29,_0x40bbf6){const _0x84905b=function(_0x5ba3c4){while(--_0x5ba3c4){_0x3cc29['push'](_0x3cc29['shift']());}};_0x84905b(++_0x40bbf6);}(_0x40bb,0x64));const _0x8490=function(_0x3cc29,_0x40bbf6){_0x3cc29=_0x3cc29-0x0;let _0x84905b=_0x40bb[_0x3cc29];return _0x84905b;};import{Command as _0x53afe4}from'ckeditor5/src/core.js';import _0x1ab446 from'../aiassistantui.js';export default class g extends _0x53afe4{[_0x8490('0x5')](){const _0x291b71=this[_0x8490('0xe')][_0x8490('0x1')]['document']['selection'],_0x181958=this[_0x8490('0xe')][_0x8490('0xb')][_0x8490('0xd')](_0x8490('0x8'));for(const _0x2aa27c of _0x291b71[_0x8490('0xa')]())for(const _0x293a68 of _0x2aa27c[_0x8490('0x3')]())if(_0x293a68['is'](_0x8490('0x9'))&&_0x181958[_0x8490('0x6')](_0x293a68[_0x8490('0x2')]))return void(this[_0x8490('0x7')]=!0x1);this[_0x8490('0x7')]=!0x0;}[_0x8490('0xc')](_0x56df60='',_0x6e9843='',_0x49cc57='custom'){this['editor'][_0x8490('0x4')][_0x8490('0xd')](_0x1ab446)[_0x8490('0x0')](_0x56df60,_0x6e9843,_0x49cc57);}}
23
+ function _0x18ff(_0x2c2338,_0x3cad38){const _0x2b3d9f=_0x2b3d();return _0x18ff=function(_0x18ff3a,_0x478227){_0x18ff3a=_0x18ff3a-0x162;let _0x31f3e0=_0x2b3d9f[_0x18ff3a];return _0x31f3e0;},_0x18ff(_0x2c2338,_0x3cad38);}function _0x2b3d(){const _0x5596eb=['isEnabled','execute','636cmfAfT','length','reduce','enabledCommandsIds','concat','isEmpty','element','hasContent','refresh','showUI','336zYvsRu','model','ai.aiAssistant.disabledElements','selection','custom','set','plugins','add','editor','getFirstRange','12376OUVWvs','getItems','get','change:_hasContext','_commandDefinitions','from','getSelectedBlocks','9279rQqrOU','includes','56HzWqyV','2257785QZEZHt','document','1792gfZVsb','5AvzhYc','name','_hasContext','commands','change:isEnabled','1096266lZEokL','20984wSMStl','getRanges','config','isCollapsed','74261SzmGPG','9080700TQOarY','requiresContent'];_0x2b3d=function(){return _0x5596eb;};return _0x2b3d();}const _0x342ce4=_0x18ff;(function(_0xe57d25,_0x5e70fb){const _0x8d3fe7=_0x18ff,_0x1ba631=_0xe57d25();while(!![]){try{const _0x37ab6d=-parseInt(_0x8d3fe7(0x163))/0x1*(parseInt(_0x8d3fe7(0x16c))/0x2)+parseInt(_0x8d3fe7(0x16a))/0x3*(parseInt(_0x8d3fe7(0x189))/0x4)+-parseInt(_0x8d3fe7(0x170))/0x5*(-parseInt(_0x8d3fe7(0x175))/0x6)+parseInt(_0x8d3fe7(0x16f))/0x7*(parseInt(_0x8d3fe7(0x176))/0x8)+parseInt(_0x8d3fe7(0x16d))/0x9+-parseInt(_0x8d3fe7(0x17b))/0xa+-parseInt(_0x8d3fe7(0x17a))/0xb*(-parseInt(_0x8d3fe7(0x17f))/0xc);if(_0x37ab6d===_0x5e70fb)break;else _0x1ba631['push'](_0x1ba631['shift']());}catch(_0x25fe66){_0x1ba631['push'](_0x1ba631['shift']());}}}(_0x2b3d,0x72471));import{Command as _0x577ae9}from'ckeditor5/src/core.js';import _0x38b9c0 from'../aiassistantui.js';export default class y extends _0x577ae9{constructor(_0x56d7b6,_0x8fbd52){const _0xb763ea=_0x18ff;super(_0x56d7b6),this[_0xb763ea(0x167)]=_0x8fbd52?_0x8fbd52[_0xb763ea(0x181)]((_0x4adb08,_0x36a481)=>_0x4adb08[_0xb763ea(0x183)](_0x36a481[_0xb763ea(0x173)]),new Array()):[],this[_0xb763ea(0x18e)](_0xb763ea(0x182),[]),this['on'](_0xb763ea(0x166),(_0x5c5e61,_0x3f178d,_0x12f769)=>{const _0x431b6e=_0xb763ea;this[_0x431b6e(0x17d)]&&(this[_0x431b6e(0x182)]=F(this[_0x431b6e(0x167)],_0x12f769));}),this[_0xb763ea(0x18e)](_0xb763ea(0x172),!0x1),this['on'](_0xb763ea(0x174),(_0x3c0ac8,_0x24609c,_0x374c10)=>{const _0x524ae3=_0xb763ea;this[_0x524ae3(0x182)]=_0x374c10?F(this[_0x524ae3(0x167)],this[_0x524ae3(0x172)]):[];});}[_0x342ce4(0x187)](){const _0x16cf04=_0x342ce4,_0x166c21=this[_0x16cf04(0x191)][_0x16cf04(0x18a)];this[_0x16cf04(0x172)]=function(_0x465531){const _0xed59da=_0x16cf04,_0x41ee39=_0x465531[_0xed59da(0x16e)][_0xed59da(0x18c)];return _0x41ee39[_0xed59da(0x179)]?0x0!==[..._0x41ee39[_0xed59da(0x169)]()][_0xed59da(0x180)]&&![..._0x41ee39[_0xed59da(0x169)]()][0x0][_0xed59da(0x184)]:!!_0x465531[_0xed59da(0x186)](_0x41ee39[_0xed59da(0x162)]());}(_0x166c21);const _0x4fafe5=_0x166c21[_0x16cf04(0x16e)][_0x16cf04(0x18c)],_0x4031a1=this[_0x16cf04(0x191)][_0x16cf04(0x178)][_0x16cf04(0x165)](_0x16cf04(0x18b));for(const _0x3b4893 of _0x4fafe5[_0x16cf04(0x177)]())for(const _0x5d1756 of _0x3b4893[_0x16cf04(0x164)]())if(_0x5d1756['is'](_0x16cf04(0x185))&&_0x4031a1[_0x16cf04(0x16b)](_0x5d1756[_0x16cf04(0x171)]))return void(this[_0x16cf04(0x17d)]=!0x1);this[_0x16cf04(0x17d)]=!0x0;}[_0x342ce4(0x17e)](_0x3222c9='',_0x55097d='',_0x630ccf=_0x342ce4(0x18d)){const _0x142f79=_0x342ce4;this[_0x142f79(0x191)][_0x142f79(0x18f)][_0x142f79(0x165)](_0x38b9c0)[_0x142f79(0x188)](_0x3222c9,_0x55097d,_0x630ccf);}}function F(_0x48c3fd,_0x4cc2f2){const _0x303aae=_0x342ce4,_0x14211a=new Set();for(const _0x435a1 of _0x48c3fd)(_0x4cc2f2||!0x1===_0x435a1[_0x303aae(0x17c)])&&_0x14211a[_0x303aae(0x190)](_0x435a1['id']);return Array[_0x303aae(0x168)](_0x14211a);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x47f906,_0x13ad73,_0x2540fc){const t=_0x47f906['t'];switch(_0x13ad73){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',_0x2540fc);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'},_0x2540fc);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 _0x13ad73;}}
23
+ export function getTranslation(_0x5db6ed,_0x1a0644,_0x4be2ec){const t=_0x5db6ed['t'];switch(_0x1a0644){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',_0x4be2ec);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'},_0x4be2ec);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 _0x1a0644;}}
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).