@ckeditor/ckeditor5-ai 41.3.0 → 41.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +6 -6
- package/package.json +4 -4
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/ui/aiassistantcontroller.js +1 -1
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
- package/src/ui/dropdown/labelwithhighlightview.js +1 -1
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x134408=_0x56be;(function(_0x59c4ff,_0x35f743){const _0x30ea2e=_0x56be,_0x265879=_0x59c4ff();while(!![]){try{const _0x1d013d=-parseInt(_0x30ea2e(0x143))/0x1+-parseInt(_0x30ea2e(0x139))/0x2+-parseInt(_0x30ea2e(0x13f))/0x3*(-parseInt(_0x30ea2e(0x178))/0x4)+-parseInt(_0x30ea2e(0x14d))/0x5*(parseInt(_0x30ea2e(0x16a))/0x6)+parseInt(_0x30ea2e(0x165))/0x7*(parseInt(_0x30ea2e(0x129))/0x8)+parseInt(_0x30ea2e(0x175))/0x9+parseInt(_0x30ea2e(0x169))/0xa;if(_0x1d013d===_0x35f743)break;else _0x265879['push'](_0x265879['shift']());}catch(_0x585e36){_0x265879['push'](_0x265879['shift']());}}}(_0x253f,0x6bb46));function _0x253f(){const _0x26754c=['ck-ai-form__content-area-wrapper','addRange','textContent','AI\x20is\x20writing...','text/html','change:value','isVisible','setStartAfter','remove','text/plain','absolute','innerHTML','1529532XkIzco','_createLoader','ck-ai-form__content-area--processing','contentFieldView','removeAllRanges','ck-ai-form__content-field','102BELhfm','write','render','ck-reset_all-excluded','15021dZtobK','_copyHTMLToClipboard','check','class','isProcessing','ck-ai-form__copy-button-wrapper','bind','wheel','focus','<span>[</span>','15qrYphN','body','locale','element','ck-hidden','appendChild','setEndBefore','ClipboardItem','setTemplate','ck-ai-form__copy-button','position','firstElementChild','div','createElement','mousedown','_createCopyButton','getSelection','\x20ck-ai-form__copy-button--copied','copyButtonView','ck-content','-9999px','copy','querySelector','style','147PmLuAF','Copy','ck-ai-form__loader','appendLoader','8798520fUHfsk','305178KcYKhf','setContent','value','loaderView','listenTo','lastElementChild','.ck-ai-form__loader','isEnabled','execute','scrollTo','ck-ai-form__content-area','1909449VWAGfv','set','smooth','17464IWrugA','change:isProcessing','createRange','icon','clipboard','execCommand','<span>]</span>','50696KrJheN','left','bindTemplate','scrollHeight'];_0x253f=function(){return _0x26754c;};return _0x253f();}import{global as _0x54b343}from'ckeditor5/src/utils.js';function _0x56be(_0x241c8d,_0xfcb072){const _0x253f12=_0x253f();return _0x56be=function(_0x56be7d,_0xcfff2){_0x56be7d=_0x56be7d-0x125;let _0x55d74e=_0x253f12[_0x56be7d];return _0x55d74e;},_0x56be(_0x241c8d,_0xfcb072);}import{View as _0x26332c,ButtonView as _0x66e3dc,SpinnerView as _0x44339c}from'ckeditor5/src/ui.js';import _0x37f22f from'../../../theme/icons/copy.svg';import{getTranslation as _0x2cd4f3}from'../../utils/common-translations.js';import{icons as _0x3cdedc}from'ckeditor5/src/core.js';export default class nt extends _0x26332c{constructor(_0x2e526a,_0x287afc=''){const _0x5a00a1=_0x56be;super(_0x2e526a),this[_0x5a00a1(0x176)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x53ff50=this[_0x5a00a1(0x12b)];this[_0x5a00a1(0x13c)]=new ContentFieldView(_0x2e526a,_0x287afc),this[_0x5a00a1(0x15f)]=this[_0x5a00a1(0x15c)](),this[_0x5a00a1(0x155)]({'tag':_0x5a00a1(0x159),'attributes':{'class':['ck',_0x5a00a1(0x12d),_0x53ff50['if'](_0x5a00a1(0x133),_0x5a00a1(0x151),_0x26e43d=>!_0x26e43d)],'tabindex':'-1'},'children':[{'tag':_0x5a00a1(0x159),'attributes':{'class':['ck',_0x5a00a1(0x174),_0x53ff50['if'](_0x5a00a1(0x147),_0x5a00a1(0x13b))]},'children':[this[_0x5a00a1(0x13c)],{'tag':_0x5a00a1(0x159),'attributes':{'class':['ck',_0x5a00a1(0x148)]},'children':[this[_0x5a00a1(0x15f)]]}]}]});}[_0x134408(0x141)](){const _0xfddb29=_0x134408;super[_0xfddb29(0x141)](),this[_0xfddb29(0x16c)]&&this[_0xfddb29(0x13c)][_0xfddb29(0x16b)](this[_0xfddb29(0x16c)]);let _0x487647=!0x1;this['on'](_0xfddb29(0x132),(_0x4d92c5,_0x4a6463,_0x4870fa)=>{const _0x1b6f94=_0xfddb29,_0x174184=!this[_0x1b6f94(0x13c)][_0x1b6f94(0x150)][_0x1b6f94(0x163)](_0x1b6f94(0x170));this[_0x1b6f94(0x13c)][_0x1b6f94(0x16b)](_0x4870fa),this[_0x1b6f94(0x147)]&&_0x174184&&!_0x487647&&this[_0x1b6f94(0x150)][_0x1b6f94(0x173)]({'top':this[_0x1b6f94(0x150)][_0x1b6f94(0x12c)],'behavior':_0x1b6f94(0x177)});}),this['on'](_0xfddb29(0x179),(_0x1ff871,_0x274015,_0x374b26)=>{const _0x5ce9df=_0xfddb29;_0x487647=!0x1,_0x374b26?(this[_0x5ce9df(0x16c)]=null,this[_0x5ce9df(0x13c)][_0x5ce9df(0x168)]()):this[_0x5ce9df(0x16c)]||this[_0x5ce9df(0x13c)][_0x5ce9df(0x16b)]('');}),this[_0xfddb29(0x16e)](this[_0xfddb29(0x150)],_0xfddb29(0x14a),()=>{_0x487647=!0x0;}),this[_0xfddb29(0x16e)](this[_0xfddb29(0x150)],_0xfddb29(0x15b),()=>{_0x487647=!0x0;});}[_0x134408(0x14b)](){const _0x2fef47=_0x134408;this[_0x2fef47(0x150)][_0x2fef47(0x14b)]();}[_0x134408(0x15c)](){const _0x449cae=_0x134408,_0xdbd9c6=this[_0x449cae(0x14f)],_0x464d9b=new _0x66e3dc(this[_0x449cae(0x14f)]),_0x36e84b=_0x449cae(0x156);return _0x464d9b[_0x449cae(0x176)]({'label':_0x2cd4f3(_0xdbd9c6,_0x449cae(0x166)),'icon':_0x37f22f,'class':_0x36e84b,'tooltip':!0x0}),_0x464d9b[_0x449cae(0x149)](_0x449cae(0x133))['to'](this,_0x449cae(0x16c),_0x39728e=>!!_0x39728e),_0x464d9b[_0x449cae(0x149)](_0x449cae(0x171))['to'](this,_0x449cae(0x147),_0x1e9118=>!_0x1e9118),_0x464d9b['on'](_0x449cae(0x172),()=>{const _0x2ecfec=_0x449cae;this[_0x2ecfec(0x144)](this[_0x2ecfec(0x13c)][_0x2ecfec(0x150)]),_0x464d9b[_0x2ecfec(0x125)]=_0x3cdedc[_0x2ecfec(0x145)],_0x464d9b[_0x2ecfec(0x146)]=_0x36e84b+_0x2ecfec(0x15e),this[_0x2ecfec(0x14b)](),setTimeout(()=>{const _0x459707=_0x2ecfec;_0x464d9b[_0x459707(0x125)]=_0x37f22f,_0x464d9b[_0x459707(0x146)]=_0x36e84b;},0x3e8);}),_0x464d9b;}[_0x134408(0x144)](_0x5b60c1){const _0x5c6dc6=_0x134408,{window:_0x400891,document:_0x395a9f}=_0x54b343;if(_0x400891[_0x5c6dc6(0x154)]){const {Blob:_0x405b7d,ClipboardItem:_0x30de6f}=_0x400891,_0x2cc11b=[new _0x30de6f({'text/html':new _0x405b7d([_0x5b60c1[_0x5c6dc6(0x138)]],{'type':_0x5c6dc6(0x131)}),'text/plain':new _0x405b7d([_0x5b60c1[_0x5c6dc6(0x12f)]||''],{'type':_0x5c6dc6(0x136)})})];navigator[_0x5c6dc6(0x126)][_0x5c6dc6(0x140)](_0x2cc11b);}else{const _0x241216=_0x395a9f[_0x5c6dc6(0x15a)](_0x5c6dc6(0x159));_0x241216[_0x5c6dc6(0x164)][_0x5c6dc6(0x157)]=_0x5c6dc6(0x137),_0x241216[_0x5c6dc6(0x164)][_0x5c6dc6(0x12a)]=_0x5c6dc6(0x161),_0x241216[_0x5c6dc6(0x138)]=_0x5c6dc6(0x14c)+_0x5b60c1[_0x5c6dc6(0x138)]+_0x5c6dc6(0x128),_0x395a9f[_0x5c6dc6(0x14e)][_0x5c6dc6(0x152)](_0x241216);const _0x4d4219=_0x395a9f[_0x5c6dc6(0x17a)]();_0x4d4219[_0x5c6dc6(0x134)](_0x241216[_0x5c6dc6(0x158)]),_0x4d4219[_0x5c6dc6(0x153)](_0x241216[_0x5c6dc6(0x16f)]);const _0x5f39e0=_0x400891[_0x5c6dc6(0x15d)]();_0x5f39e0[_0x5c6dc6(0x13d)](),_0x5f39e0[_0x5c6dc6(0x12e)](_0x4d4219),_0x395a9f[_0x5c6dc6(0x127)](_0x5c6dc6(0x162)),_0x241216[_0x5c6dc6(0x135)]();}}}export class ContentFieldView extends _0x26332c{constructor(_0x14aded,_0x5da0ab=''){const _0x370664=_0x134408;super(_0x14aded),this[_0x370664(0x16d)]=this[_0x370664(0x13a)](),this[_0x370664(0x155)]({'tag':_0x370664(0x159),'attributes':{'class':['ck',_0x370664(0x160),_0x5da0ab,_0x370664(0x142),_0x370664(0x13e)]}});}[_0x134408(0x16b)](_0x5a7065){const _0x46a656=_0x134408;this[_0x46a656(0x150)][_0x46a656(0x138)]=_0x5a7065;}[_0x134408(0x168)](){const _0x10e00d=_0x134408;this[_0x10e00d(0x150)][_0x10e00d(0x152)](this[_0x10e00d(0x16d)][_0x10e00d(0x150)]);}[_0x134408(0x13a)](){const _0x2fea33=_0x134408,_0x3d3f28=new _0x26332c(),_0x48f052=this[_0x2fea33(0x14f)],_0x4cb0bd=new _0x44339c();return _0x4cb0bd[_0x2fea33(0x133)]=!0x0,_0x3d3f28[_0x2fea33(0x155)]({'tag':_0x2fea33(0x159),'attributes':{'class':['ck',_0x2fea33(0x167)]},'children':[_0x4cb0bd,{'text':_0x2cd4f3(_0x48f052,_0x2fea33(0x130))}]}),_0x3d3f28[_0x2fea33(0x141)](),_0x3d3f28;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x36c02b,_0x5bc83e){const _0x17bac6=_0x13aa,_0x56522f=_0x36c02b();while(!![]){try{const _0x48e0b3=-parseInt(_0x17bac6(0x11e))/0x1*(parseInt(_0x17bac6(0x11a))/0x2)+-parseInt(_0x17bac6(0x119))/0x3*(parseInt(_0x17bac6(0x116))/0x4)+-parseInt(_0x17bac6(0x115))/0x5*(parseInt(_0x17bac6(0x11d))/0x6)+-parseInt(_0x17bac6(0x112))/0x7*(parseInt(_0x17bac6(0x11b))/0x8)+-parseInt(_0x17bac6(0x117))/0x9+-parseInt(_0x17bac6(0x113))/0xa+parseInt(_0x17bac6(0x11c))/0xb;if(_0x48e0b3===_0x5bc83e)break;else _0x56522f['push'](_0x56522f['shift']());}catch(_0x11acac){_0x56522f['push'](_0x56522f['shift']());}}}(_0xd486,0x362e5));function _0xd486(){const _0x2d9f6b=['set','3871XRDeKY','903530vwhemY','text','485tZYojm','64gPnhMJ','2183085LVaLvg','div','40362uCmjwK','13106cZbLoL','5824nQrPvU','16426531khduMM','12942nzbLkl','17JzKlAJ','bindTemplate','ck-ai-form__error','setTemplate','content'];_0xd486=function(){return _0x2d9f6b;};return _0xd486();}import{View as _0x3d476f,IconView as _0x10a497}from'ckeditor5/src/ui.js';import _0x5029a4 from'../../../theme/icons/error.svg';function _0x13aa(_0x181d2d,_0x5767cf){const _0xd48646=_0xd486();return _0x13aa=function(_0x13aa05,_0x1421d0){_0x13aa05=_0x13aa05-0x112;let _0x299d3c=_0xd48646[_0x13aa05];return _0x299d3c;},_0x13aa(_0x181d2d,_0x5767cf);}export default class mt extends _0x3d476f{constructor(_0x5791aa,_0x43f9d1=''){const _0x5e5690=_0x13aa;super(_0x5791aa);const _0xe968d7=new _0x10a497(),_0x174a13=this[_0x5e5690(0x11f)];this[_0x5e5690(0x123)](_0x5e5690(0x114),_0x43f9d1),_0xe968d7[_0x5e5690(0x122)]=_0x5029a4,this[_0x5e5690(0x121)]({'tag':_0x5e5690(0x118),'attributes':{'class':['ck',_0x5e5690(0x120)]},'children':[_0xe968d7,{'text':_0x174a13['to'](_0x5e5690(0x114))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ed5db=_0x364c;function _0x364c(_0x22ef06,_0x237d20){const _0x5e1af8=_0x5e1a();return _0x364c=function(_0x364cb9,_0x54fa7c){_0x364cb9=_0x364cb9-0x142;let _0x1cddc3=_0x5e1af8[_0x364cb9];return _0x1cddc3;},_0x364c(_0x22ef06,_0x237d20);}(function(_0x41bdae,_0x1c158e){const _0x77d2d1=_0x364c,_0x45014a=_0x41bdae();while(!![]){try{const _0x267403=parseInt(_0x77d2d1(0x166))/0x1*(-parseInt(_0x77d2d1(0x159))/0x2)+parseInt(_0x77d2d1(0x15b))/0x3+parseInt(_0x77d2d1(0x16c))/0x4+-parseInt(_0x77d2d1(0x14d))/0x5+parseInt(_0x77d2d1(0x173))/0x6+-parseInt(_0x77d2d1(0x145))/0x7+parseInt(_0x77d2d1(0x147))/0x8;if(_0x267403===_0x1c158e)break;else _0x45014a['push'](_0x45014a['shift']());}catch(_0x5c10b8){_0x45014a['push'](_0x45014a['shift']());}}}(_0x5e1a,0xaf883));import{Rect as _0x542eb1,global as _0x1705a8,isVisible as _0x4521da}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x98e00f,ButtonView as _0x4dc270}from'ckeditor5/src/ui.js';import{icons as _0x42462f}from'ckeditor5/src/core.js';import{getTranslation as _0x46b3a0}from'../../utils/common-translations.js';function _0x5e1a(){const _0x536594=['isVisible','Submit','focusLast','render','value','maxRows','target','execute','resultsView','1202406kzZLae','rtl','queryView','_createSubmitButton','keystrokes','requestAnimationFrame','3754020oRerpY','right','history','isOn','showHistoryButtonView','left','element','8398194MQBWpN','isEnabled','excludeScrollbarsAndBorders','add','width','_createShowHistoryButton','ck-ai-form__submit','focusFirst','fieldView','filteredView','enter','9073512qtFipH','ck-ai-form__toggle-history','8993120FzbBRO','style','isEmpty','bind','minRows','submitButtonView','1873615vQcacc','window','fire','focusableChildren','update','fieldWrapperChildren','set','locale','focusCycler','focus','children','uiLanguageDirection','2PoUQEA','submit','389940CqffwT','History'];_0x5e1a=function(){return _0x536594;};return _0x5e1a();}import _0x473f7a from'../../../theme/icons/submit.svg';export default class pt extends _0x98e00f{constructor(_0x3662c4,_0x29c2b6){const _0x1ca16f=_0x364c;super(_0x3662c4,_0x29c2b6),this[_0x1ca16f(0x168)][_0x1ca16f(0x142)][_0x1ca16f(0x14b)]=0x1,this[_0x1ca16f(0x168)][_0x1ca16f(0x142)][_0x1ca16f(0x162)]=0x3,this[_0x1ca16f(0x14c)]=this[_0x1ca16f(0x169)](),this[_0x1ca16f(0x170)]=this[_0x1ca16f(0x178)](),this[_0x1ca16f(0x150)][_0x1ca16f(0x176)](this[_0x1ca16f(0x170)],0x1),this[_0x1ca16f(0x150)][_0x1ca16f(0x176)](this[_0x1ca16f(0x14c)]);}[_0x4ed5db(0x160)](){const _0x45e5d5=_0x4ed5db;super[_0x45e5d5(0x160)](),this[_0x45e5d5(0x168)][_0x45e5d5(0x152)][_0x45e5d5(0x176)](this[_0x45e5d5(0x170)]),this[_0x45e5d5(0x157)][_0x45e5d5(0x176)](this[_0x45e5d5(0x14c)]),this[_0x45e5d5(0x16a)][_0x45e5d5(0x153)](_0x45e5d5(0x144),(_0xc7ab5b,_0x3843e2)=>{const _0x127cfe=_0x45e5d5;_0xc7ab5b[_0x127cfe(0x163)]==this[_0x127cfe(0x168)][_0x127cfe(0x142)][_0x127cfe(0x172)]&&(this[_0x127cfe(0x15a)](),_0x3843e2());});}[_0x4ed5db(0x169)](){const _0x472472=_0x4ed5db,_0x40b10a=new _0x4dc270(this[_0x472472(0x154)]),_0x3dde05=this[_0x472472(0x154)];return _0x40b10a[_0x472472(0x153)]({'icon':_0x473f7a,'label':_0x46b3a0(_0x3dde05,_0x472472(0x15e)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x472472(0x179)}),_0x40b10a['on'](_0x472472(0x164),()=>{const _0x313824=_0x472472;this[_0x313824(0x15a)]();}),_0x40b10a[_0x472472(0x14a)](_0x472472(0x174))['to'](this[_0x472472(0x168)][_0x472472(0x142)],_0x472472(0x149),this,_0x472472(0x174),(_0x22f1ea,_0x596dd6)=>!_0x22f1ea&&_0x596dd6),_0x40b10a;}[_0x4ed5db(0x178)](){const _0x5e0c99=_0x4ed5db,_0x590583=new _0x4dc270(this[_0x5e0c99(0x154)]),_0x10b7ea=this[_0x5e0c99(0x165)],_0x1cad20=this[_0x5e0c99(0x154)];_0x590583[_0x5e0c99(0x153)]({'label':_0x46b3a0(_0x1cad20,_0x5e0c99(0x15c)),'withText':!0x1,'icon':_0x42462f[_0x5e0c99(0x16e)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x5e0c99(0x146)}),_0x590583[_0x5e0c99(0x14a)](_0x5e0c99(0x16f))['to'](_0x10b7ea,_0x5e0c99(0x15d)),_0x590583[_0x5e0c99(0x14a)](_0x5e0c99(0x174))['to'](this,_0x5e0c99(0x174)),_0x590583['on'](_0x5e0c99(0x164),()=>{const _0xd4ae62=_0x5e0c99;_0x10b7ea[_0xd4ae62(0x15d)]=!_0x10b7ea[_0xd4ae62(0x15d)],_0x10b7ea[_0xd4ae62(0x15d)]?this[_0xd4ae62(0x143)][_0xd4ae62(0x156)]():this[_0xd4ae62(0x156)]();});const _0x5185b4=()=>{const _0x1c5d2f=_0x5e0c99;_0x1705a8[_0x1c5d2f(0x14e)][_0x1c5d2f(0x16b)](()=>{const _0x5cc000=_0x1c5d2f;if(_0x4521da(this[_0x5cc000(0x172)])){const _0x58ef59=new _0x542eb1(this[_0x5cc000(0x168)][_0x5cc000(0x142)][_0x5cc000(0x172)]),_0x1c7638=_0x58ef59[_0x5cc000(0x177)],_0x105d67=_0x5cc000(0x167)===_0x1cad20[_0x5cc000(0x158)]?_0x5cc000(0x171):_0x5cc000(0x16d);_0x58ef59[_0x5cc000(0x175)](),_0x590583[_0x5cc000(0x172)][_0x5cc000(0x148)][_0x105d67]=_0x1c7638-_0x58ef59[_0x5cc000(0x177)]+0x1+'px';}});};return this[_0x5e0c99(0x168)][_0x5e0c99(0x142)]['on'](_0x5e0c99(0x151),_0x5185b4),this['on'](_0x5e0c99(0x160),_0x5185b4),_0x590583;}[_0x4ed5db(0x15a)](){const _0x5b3abb=_0x4ed5db,_0x53b988=this[_0x5b3abb(0x168)][_0x5b3abb(0x142)][_0x5b3abb(0x172)][_0x5b3abb(0x161)];this[_0x5b3abb(0x14f)](_0x5b3abb(0x15a),_0x53b988);}[_0x4ed5db(0x156)](_0x119643){const _0x1702ea=_0x4ed5db;-0x1===_0x119643?this[_0x1702ea(0x155)][_0x1702ea(0x15f)]():this[_0x1702ea(0x155)][_0x1702ea(0x17a)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ed27c=_0x49f5;(function(_0x11e0ac,_0x2bc514){const _0x573888=_0x49f5,_0x3e0be0=_0x11e0ac();while(!![]){try{const _0x4f1282=-parseInt(_0x573888(0x152))/0x1*(-parseInt(_0x573888(0x153))/0x2)+parseInt(_0x573888(0x168))/0x3*(-parseInt(_0x573888(0x157))/0x4)+-parseInt(_0x573888(0x14b))/0x5+-parseInt(_0x573888(0x149))/0x6+parseInt(_0x573888(0x15a))/0x7*(-parseInt(_0x573888(0x160))/0x8)+parseInt(_0x573888(0x15c))/0x9*(parseInt(_0x573888(0x169))/0xa)+parseInt(_0x573888(0x167))/0xb;if(_0x4f1282===_0x2bc514)break;else _0x3e0be0['push'](_0x3e0be0['shift']());}catch(_0x311f46){_0x3e0be0['push'](_0x3e0be0['shift']());}}}(_0xb26e,0x1fde1));function _0xb26e(){const _0x3cb030=['5374VIxVff','14IwxQxx','_CONTENT','bind','insertButton','3984AoHEsy','locale','REPLACE','41531aoNOFI','set','20781cCjOVF','replaceButton','ck-ai-form__toolbar','ck-hidden','280aAnLJq','Insert\x20below','replace','stopButton','label','AI_','extendTemplate','7891334CCcQqx','447rJiJql','440uFiChe','items','addMany','toUpperCase','isVisible','insert','950682MzpTYf','ck-button-action','1057865uKpFLw','mainAction','Stop','Try\x20again','tryAgainButton','bindTemplate','_createButton'];_0xb26e=function(){return _0x3cb030;};return _0xb26e();}function _0x49f5(_0x5aa26d,_0x1efd6a){const _0xb26efa=_0xb26e();return _0x49f5=function(_0x49f579,_0x3eae75){_0x49f579=_0x49f579-0x148;let _0x431127=_0xb26efa[_0x49f579];return _0x431127;},_0x49f5(_0x5aa26d,_0x1efd6a);}import{ToolbarView as _0x427dfa,ButtonView as _0xbf5b18}from'ckeditor5/src/ui.js';import{getTranslation as _0xd3e1ee}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x4ed27c(0x162),'INSERT':_0x4ed27c(0x148)};export default class Tt extends _0x427dfa{constructor(_0x34bbf0){const _0x3f2128=_0x4ed27c;super(_0x34bbf0),this[_0x3f2128(0x15b)](_0x3f2128(0x16d),!0x1),this[_0x3f2128(0x15b)](_0x3f2128(0x14c),AIFormToolbarViewMainActionLabel[_0x3f2128(0x159)]),this[_0x3f2128(0x15d)]=this[_0x3f2128(0x151)]('',_0x3f2128(0x14a)),this[_0x3f2128(0x15d)][_0x3f2128(0x155)](_0x3f2128(0x164))['to'](this,_0x3f2128(0x14c),_0x25abb1=>_0xd3e1ee(_0x34bbf0,_0x3f2128(0x165)+_0x25abb1[_0x3f2128(0x16c)]()+_0x3f2128(0x154))),this[_0x3f2128(0x156)]=this[_0x3f2128(0x151)](_0xd3e1ee(_0x34bbf0,_0x3f2128(0x161))),this[_0x3f2128(0x14f)]=this[_0x3f2128(0x151)](_0xd3e1ee(_0x34bbf0,_0x3f2128(0x14e))),this[_0x3f2128(0x163)]=this[_0x3f2128(0x151)](_0xd3e1ee(_0x34bbf0,_0x3f2128(0x14d)));const _0x2572ed=this[_0x3f2128(0x150)];this[_0x3f2128(0x166)]({'attributes':{'class':[_0x3f2128(0x15e),_0x2572ed['if'](_0x3f2128(0x16d),_0x3f2128(0x15f),_0x1709c3=>!_0x1709c3)]}}),this[_0x3f2128(0x16a)][_0x3f2128(0x16b)]([this[_0x3f2128(0x15d)],this[_0x3f2128(0x156)],this[_0x3f2128(0x14f)],this[_0x3f2128(0x163)]]);}[_0x4ed27c(0x151)](_0x4a8a1a,_0x5b8748){const _0x253548=_0x4ed27c,_0x3e1d9d=new _0xbf5b18(this[_0x253548(0x158)]);return _0x3e1d9d[_0x253548(0x15b)]({'label':_0x4a8a1a,'class':_0x5b8748||'','isVisible':!0x0,'withText':!0x0}),_0x3e1d9d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x373de0=_0x41b6;(function(_0x4c616c,_0x575655){const _0x1cbf41=_0x41b6,_0x106ec6=_0x4c616c();while(!![]){try{const _0x20d1cf=-parseInt(_0x1cbf41(0x1b0))/0x1*(-parseInt(_0x1cbf41(0x165))/0x2)+-parseInt(_0x1cbf41(0x15f))/0x3+parseInt(_0x1cbf41(0x1ac))/0x4*(-parseInt(_0x1cbf41(0x173))/0x5)+parseInt(_0x1cbf41(0x19e))/0x6*(parseInt(_0x1cbf41(0x186))/0x7)+parseInt(_0x1cbf41(0x177))/0x8+parseInt(_0x1cbf41(0x191))/0x9*(-parseInt(_0x1cbf41(0x189))/0xa)+-parseInt(_0x1cbf41(0x168))/0xb*(-parseInt(_0x1cbf41(0x1b1))/0xc);if(_0x20d1cf===_0x575655)break;else _0x106ec6['push'](_0x106ec6['shift']());}catch(_0x3510df){_0x106ec6['push'](_0x106ec6['shift']());}}}(_0x316f,0x5e77b));import{FocusTracker as _0xf1748b,KeystrokeHandler as _0x1216c0}from'ckeditor5/src/utils.js';function _0x316f(){const _0x46b8fb=['Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','copyButtonView','_createHistoryView','text','stopButton','listenTo','finishProcessing','add','188745aGTkhq','render','_focusables','promptView','849128HbFGnK','stop','trim','high','createCollection','isVisible','items','keystrokes','fire','prompt','Empty\x20history','isProcessing','backwardCycle','tryAgainButton','fieldView','476413xqgOxc','_createToolbar','mainAction','50ypQYDT','_promptHistory','focusNext','label','ck-hidden','handleError','execute','bindTemplate','1262889yYMfgy','startProcessing','clearHistory','focusLast','ck-ai-form-content','_createPromptView','toolbar','focusPrevious','contentArea','isEnabled','focusFirst','Ask\x20AI\x20to\x20edit\x20or\x20generate','delegate','6gnYNwX','setTemplate','submitPrompt','Ask\x20AI\x20to\x20improve\x20generated\x20text','forwardCycle','tryAgainEvent','insertButton','tab','stopProcessing','focus','ck-ai-form','replaceButton','bind','bindTo','60TsSnjH','AI_ERROR_FAILED','replaceContent','div','14738rmFcEB','4128XMpqHF','element','reset','locale','REPLACE','isError','focusTracker','insertContentBelow','historyGroupView','1507191WUOgqd','value','errorView','queryView','focusCycler','set','96JZONma','search','submit','40788oItZeq','shift\x20+\x20tab','clear'];_0x316f=function(){return _0x46b8fb;};return _0x316f();}import{View as _0x5692b5,FocusCycler as _0x49c27b,createLabeledTextarea as _0x1b6224}from'ckeditor5/src/ui.js';function _0x41b6(_0x421a7d,_0x68a149){const _0x316fe0=_0x316f();return _0x41b6=function(_0x41b681,_0x1aa367){_0x41b681=_0x41b681-0x15f;let _0x27d683=_0x316fe0[_0x41b681];return _0x27d683;},_0x41b6(_0x421a7d,_0x68a149);}import _0xa4ee5f,{AIFormToolbarViewMainActionLabel as _0x22c80f}from'./aiformtoolbarview.js';import _0x4af7a4 from'./aiformcontentarea.js';import _0x59d834 from'./aiformerrorview.js';import _0x1fb2b3 from'./aiformpromptview.js';import _0x42ac50 from'./aihistorylistview.js';import _0x43e8af from'./aihistorylistitemview.js';import _0x356026 from'./prompthistory.js';import{getTranslation as _0x2ad2bc}from'../../utils/common-translations.js';import{escape as _0x3daece}from'lodash-es';export default class x extends _0x5692b5{constructor(_0x1bd7ec,_0x417125,_0x144517=''){const _0x3f1950=_0x41b6;super(_0x1bd7ec),this[_0x3f1950(0x164)](_0x3f1950(0x19a),!0x0),this[_0x3f1950(0x164)](_0x3f1950(0x182),!0x1),this[_0x3f1950(0x164)](_0x3f1950(0x180),''),this[_0x3f1950(0x164)](_0x3f1950(0x160),''),this[_0x3f1950(0x164)](_0x3f1950(0x1b6),!0x1),this[_0x3f1950(0x164)](_0x3f1950(0x188),_0x22c80f[_0x3f1950(0x1b5)]),this[_0x3f1950(0x18a)]=new _0x356026(),this[_0x3f1950(0x161)]=new _0x59d834(_0x1bd7ec),this[_0x3f1950(0x199)]=new _0x4af7a4(_0x1bd7ec,_0x144517),this[_0x3f1950(0x199)][_0x3f1950(0x1aa)](_0x3f1950(0x182))['to'](this),this[_0x3f1950(0x199)][_0x3f1950(0x1aa)](_0x3f1950(0x160))['to'](this),this[_0x3f1950(0x197)]=this[_0x3f1950(0x187)](),this[_0x3f1950(0x197)][_0x3f1950(0x1aa)](_0x3f1950(0x188))['to'](this),this[_0x3f1950(0x176)]=this[_0x3f1950(0x196)](),this[_0x3f1950(0x1b7)]=new _0xf1748b(),this[_0x3f1950(0x17e)]=new _0x1216c0(),this[_0x3f1950(0x175)]=this[_0x3f1950(0x17b)]([this[_0x3f1950(0x199)],this[_0x3f1950(0x199)][_0x3f1950(0x16c)],this[_0x3f1950(0x197)],this[_0x3f1950(0x176)]]),this[_0x3f1950(0x163)]=new _0x49c27b({'focusables':this[_0x3f1950(0x175)],'focusTracker':this[_0x3f1950(0x1b7)],'keystrokeHandler':this[_0x3f1950(0x17e)],'actions':{'focusPrevious':_0x3f1950(0x169),'focusNext':_0x3f1950(0x1a5)}}),this[_0x3f1950(0x176)][_0x3f1950(0x163)]['on'](_0x3f1950(0x1a2),_0x551d3c=>{const _0x38b5a3=_0x3f1950;this[_0x38b5a3(0x163)][_0x38b5a3(0x18b)](),_0x551d3c[_0x38b5a3(0x178)]();}),this[_0x3f1950(0x176)][_0x3f1950(0x163)]['on'](_0x3f1950(0x183),_0x1d45ed=>{const _0x40755d=_0x3f1950;this[_0x40755d(0x163)][_0x40755d(0x198)](),_0x1d45ed[_0x40755d(0x178)]();}),this[_0x3f1950(0x176)][_0x3f1950(0x162)][_0x3f1950(0x185)][_0x3f1950(0x1aa)](_0x3f1950(0x160))['to'](this,_0x3f1950(0x180));const _0x52d213=this[_0x3f1950(0x190)];this[_0x3f1950(0x19f)]({'tag':_0x3f1950(0x1af),'attributes':{'class':['ck',_0x3f1950(0x1a8),_0x417125],'tabindex':'-1'},'children':[{'tag':_0x3f1950(0x1af),'attributes':{'class':['ck',_0x3f1950(0x195)]},'children':[{'tag':_0x3f1950(0x1af),'attributes':{'class':[_0x52d213['if'](_0x3f1950(0x1b6),_0x3f1950(0x18d),_0x41ad16=>!_0x41ad16)]},'children':[this[_0x3f1950(0x161)]]},this[_0x3f1950(0x199)],this[_0x3f1950(0x197)],this[_0x3f1950(0x176)]]}]});}[_0x373de0(0x174)](){const _0x26e79d=_0x373de0;super[_0x26e79d(0x174)](),this[_0x26e79d(0x1b7)][_0x26e79d(0x172)](this[_0x26e79d(0x199)][_0x26e79d(0x1b2)]),this[_0x26e79d(0x1b7)][_0x26e79d(0x172)](this[_0x26e79d(0x199)][_0x26e79d(0x16c)][_0x26e79d(0x1b2)]),this[_0x26e79d(0x1b7)][_0x26e79d(0x172)](this[_0x26e79d(0x197)][_0x26e79d(0x1b2)]),this[_0x26e79d(0x1b7)][_0x26e79d(0x172)](this[_0x26e79d(0x176)][_0x26e79d(0x1b2)]),this[_0x26e79d(0x17e)][_0x26e79d(0x170)](this[_0x26e79d(0x1b2)]);}[_0x373de0(0x1a7)](_0x4c6a0e=0x1){const _0x44101d=_0x373de0;-0x1===_0x4c6a0e?this[_0x44101d(0x163)][_0x44101d(0x194)]():this[_0x44101d(0x163)][_0x44101d(0x19b)]();}[_0x373de0(0x1b3)](){const _0x29d3aa=_0x373de0;this[_0x29d3aa(0x180)]='',this[_0x29d3aa(0x160)]='',this[_0x29d3aa(0x1b6)]=!0x1,this[_0x29d3aa(0x176)][_0x29d3aa(0x1b3)](),this[_0x29d3aa(0x199)][_0x29d3aa(0x17c)]=!0x1,this[_0x29d3aa(0x197)][_0x29d3aa(0x17c)]=!0x1;}[_0x373de0(0x196)](){const _0x1ce809=_0x373de0,_0x4fe9d0=this[_0x1ce809(0x1b4)],_0x5955a5=new _0x1fb2b3(_0x4fe9d0,{'queryView':{'label':_0x2ad2bc(_0x4fe9d0,_0x1ce809(0x19c)),'creator':_0x1b6224,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x2ad2bc(_0x4fe9d0,_0x1ce809(0x181)),'secondary':_0x2ad2bc(_0x4fe9d0,_0x1ce809(0x16b))}}},'filteredView':this[_0x1ce809(0x16d)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x5955a5[_0x1ce809(0x1aa)](_0x1ce809(0x19a))['to'](this,_0x1ce809(0x19a),this,_0x1ce809(0x182),(_0x472191,_0x1582e6)=>_0x472191&&!_0x1582e6),this[_0x1ce809(0x170)](_0x5955a5,_0x1ce809(0x167),(_0x4b457e,_0x19ab25)=>{const _0x4741df=_0x1ce809;this[_0x4741df(0x180)]=_0x19ab25;const _0x2f4518=_0x3daece(_0x19ab25);this[_0x4741df(0x17f)](_0x4741df(0x1a0),_0x2f4518),_0x19ab25[_0x4741df(0x179)]()&&this[_0x4741df(0x18a)][_0x4741df(0x172)]({'prompt':_0x2f4518},0x0);},{'priority':_0x1ce809(0x17a)}),_0x5955a5;}[_0x373de0(0x16d)](){const _0x1cd204=_0x373de0,_0x24c7b0=new _0x42ac50(this[_0x1cd204(0x1b4)]);return _0x24c7b0[_0x1cd204(0x1b9)][_0x1cd204(0x17d)][_0x1cd204(0x1ab)](this[_0x1cd204(0x18a)])['as'](_0x43e8af),_0x24c7b0['on'](_0x1cd204(0x193),()=>{const _0x3085ff=_0x1cd204;this[_0x3085ff(0x18a)][_0x3085ff(0x16a)](),this[_0x3085ff(0x176)][_0x3085ff(0x166)](''),this[_0x3085ff(0x176)][_0x3085ff(0x1a7)]();}),_0x24c7b0;}[_0x373de0(0x187)](){const _0x274a9c=_0x373de0,_0x54ff78=new _0xa4ee5f(this[_0x274a9c(0x1b4)]);return _0x54ff78[_0x274a9c(0x1a9)][_0x274a9c(0x1aa)](_0x274a9c(0x19a))['to'](this,_0x274a9c(0x19a),this,_0x274a9c(0x182),this,_0x274a9c(0x160),(_0x22ddfb,_0x2e05d9,_0x2b517e)=>_0x22ddfb&&!_0x2e05d9&&!!_0x2b517e),_0x54ff78[_0x274a9c(0x1a9)][_0x274a9c(0x19d)](_0x274a9c(0x18f))['to'](this,_0x274a9c(0x1ae)),_0x54ff78[_0x274a9c(0x1a4)][_0x274a9c(0x1aa)](_0x274a9c(0x19a))['to'](this,_0x274a9c(0x19a),this,_0x274a9c(0x182),this,_0x274a9c(0x160),(_0x33219e,_0x5f2076,_0x3d4d02)=>_0x33219e&&!_0x5f2076&&!!_0x3d4d02),_0x54ff78[_0x274a9c(0x1a4)][_0x274a9c(0x19d)](_0x274a9c(0x18f))['to'](this,_0x274a9c(0x1b8)),_0x54ff78[_0x274a9c(0x184)][_0x274a9c(0x1aa)](_0x274a9c(0x19a))['to'](this,_0x274a9c(0x19a),this,_0x274a9c(0x182),(_0x3cb8db,_0x584e70)=>_0x3cb8db&&!_0x584e70),_0x54ff78[_0x274a9c(0x184)][_0x274a9c(0x19d)](_0x274a9c(0x18f))['to'](this,_0x274a9c(0x1a3)),_0x54ff78[_0x274a9c(0x16f)][_0x274a9c(0x1aa)](_0x274a9c(0x19a))['to'](this,_0x274a9c(0x182)),_0x54ff78[_0x274a9c(0x16f)][_0x274a9c(0x19d)](_0x274a9c(0x18f))['to'](this,_0x274a9c(0x1a6)),_0x54ff78;}[_0x373de0(0x192)](){const _0x2a9132=_0x373de0;this[_0x2a9132(0x160)]='',this[_0x2a9132(0x1b6)]=!0x1,this[_0x2a9132(0x182)]=!0x0,this[_0x2a9132(0x199)][_0x2a9132(0x17c)]=!0x0,this[_0x2a9132(0x197)][_0x2a9132(0x17c)]=!0x0,this[_0x2a9132(0x199)][_0x2a9132(0x1a7)]();}[_0x373de0(0x171)](){const _0x113795=_0x373de0,_0x3c562=this[_0x113795(0x1b4)];this[_0x113795(0x182)]=!0x1,this[_0x113795(0x180)]='',this[_0x113795(0x176)][_0x113795(0x1b3)](),this[_0x113795(0x160)]&&(this[_0x113795(0x176)][_0x113795(0x162)][_0x113795(0x18c)]=_0x2ad2bc(_0x3c562,_0x113795(0x1a1)));}[_0x373de0(0x18e)](_0x55e14e){const _0xa52ae0=_0x373de0,_0x250a13=this[_0xa52ae0(0x1b4)];this[_0xa52ae0(0x171)](),this[_0xa52ae0(0x1b6)]=!0x0,this[_0xa52ae0(0x161)][_0xa52ae0(0x16e)]=_0x55e14e||_0x2ad2bc(_0x250a13,_0xa52ae0(0x1ad)),this[_0xa52ae0(0x160)]||(this[_0xa52ae0(0x199)][_0xa52ae0(0x17c)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xe832fd,_0x25d5c2){const _0x36324a=_0x2bd9,_0x3a82ee=_0xe832fd();while(!![]){try{const _0x21f413=-parseInt(_0x36324a(0x11a))/0x1+-parseInt(_0x36324a(0x122))/0x2*(parseInt(_0x36324a(0x11c))/0x3)+parseInt(_0x36324a(0x11b))/0x4*(parseInt(_0x36324a(0x124))/0x5)+-parseInt(_0x36324a(0x11d))/0x6+parseInt(_0x36324a(0x11f))/0x7+parseInt(_0x36324a(0x118))/0x8+parseInt(_0x36324a(0x120))/0x9;if(_0x21f413===_0x25d5c2)break;else _0x3a82ee['push'](_0x3a82ee['shift']());}catch(_0x32cb0f){_0x3a82ee['push'](_0x3a82ee['shift']());}}}(_0x3409,0x82883));import{ListItemView as _0x51b9a1,ButtonView as _0x6d2559}from'ckeditor5/src/ui.js';function _0x2bd9(_0x4a254f,_0x41dddb){const _0x340915=_0x3409();return _0x2bd9=function(_0x2bd9de,_0xd0dfa9){_0x2bd9de=_0x2bd9de-0x118;let _0x3cec81=_0x340915[_0x2bd9de];return _0x3cec81;},_0x2bd9(_0x4a254f,_0x41dddb);}function _0x3409(){const _0x503d46=['7480476dBosth','set','5898JctiDS','prompt','10MpqxbU','fire','add','execute','2176480XNgjWO','locale','565971Vzjkif','2120172GyoqhT','993GhVuLZ','1327398hBsOIr','children','942704sDHbCb'];_0x3409=function(){return _0x503d46;};return _0x3409();}import _0x216949 from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x240c3c}from'lodash-es';export default class hs extends _0x51b9a1{constructor(_0x38f766){const _0x24299e=_0x2bd9;super();const _0xbf1400=new _0x216949(),_0x3cdbb4=new _0x6d2559(this[_0x24299e(0x119)],_0xbf1400);this[_0x24299e(0x11e)][_0x24299e(0x126)](_0x3cdbb4),_0x3cdbb4[_0x24299e(0x121)]({'label':_0x38f766[_0x24299e(0x123)],'withText':!0x0}),_0x3cdbb4['on'](_0x24299e(0x127),()=>{const _0x57db32=_0x24299e;this[_0x57db32(0x125)](_0x57db32(0x127),{'value':_0x240c3c(_0x38f766[_0x57db32(0x123)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57e5e2=_0x4cd1;function _0x3a7e(){const _0x4ddda4=['label','3252672iGnHUg','16qbCWrq','clearHistory','delegate','clearHistoryButton','set','3362680OGHiKZ','_createClearHistoryButton','filter','children','execute','Prompt\x20history','2941595Ehblta','6ZbZRgg','length','50564754bVbexp','Clear','locale','4556216OzjssE','items','add','fire','586726ETpqiJ','historyGroupView','1316870lgzYRG'];_0x3a7e=function(){return _0x4ddda4;};return _0x3a7e();}(function(_0x3b18c8,_0x100639){const _0x32e33f=_0x4cd1,_0x31e34e=_0x3b18c8();while(!![]){try{const _0x175f6a=-parseInt(_0x32e33f(0x1f8))/0x1+parseInt(_0x32e33f(0x1f6))/0x2+-parseInt(_0x32e33f(0x1fa))/0x3+-parseInt(_0x32e33f(0x1e6))/0x4+-parseInt(_0x32e33f(0x1ec))/0x5*(parseInt(_0x32e33f(0x1ed))/0x6)+parseInt(_0x32e33f(0x1f2))/0x7*(-parseInt(_0x32e33f(0x1fb))/0x8)+parseInt(_0x32e33f(0x1ef))/0x9;if(_0x175f6a===_0x100639)break;else _0x31e34e['push'](_0x31e34e['shift']());}catch(_0x3b873d){_0x31e34e['push'](_0x31e34e['shift']());}}}(_0x3a7e,0xbe622));function _0x4cd1(_0x4cd55a,_0x33d651){const _0x3a7e51=_0x3a7e();return _0x4cd1=function(_0x4cd1a6,_0x3c4d7f){_0x4cd1a6=_0x4cd1a6-0x1e4;let _0x9b4f06=_0x3a7e51[_0x4cd1a6];return _0x9b4f06;},_0x4cd1(_0x4cd55a,_0x33d651);}import{ListView as _0x3cdb51,ListItemGroupView as _0xb0e754,ButtonView as _0xede9e5}from'ckeditor5/src/ui.js';import{getTranslation as _0x392a0}from'../../utils/common-translations.js';export default class rs extends _0x3cdb51{constructor(_0x4cb724){const _0xa25f=_0x4cd1;super(_0x4cb724),this[_0xa25f(0x1e4)]=this[_0xa25f(0x1e7)](),this[_0xa25f(0x1f7)]=new _0xb0e754(),this[_0xa25f(0x1f7)][_0xa25f(0x1e9)][_0xa25f(0x1f4)](this[_0xa25f(0x1e4)],0x1),this[_0xa25f(0x1f7)][_0xa25f(0x1f9)]=_0x392a0(_0x4cb724,_0xa25f(0x1eb)),this[_0xa25f(0x1f7)][_0xa25f(0x1f3)][_0xa25f(0x1fd)](_0xa25f(0x1ea))['to'](this),this[_0xa25f(0x1f3)][_0xa25f(0x1f4)](this[_0xa25f(0x1f7)]);}[_0x57e5e2(0x1e8)](){const _0x7303a8=_0x57e5e2;let _0x3746e1=0x0;for(const _0x3ba1e1 of this[_0x7303a8(0x1f3)])_0x3746e1+=_0x3ba1e1[_0x7303a8(0x1f3)][_0x7303a8(0x1ee)];return{'resultsCount':_0x3746e1,'totalItemsCount':_0x3746e1};}[_0x57e5e2(0x1e7)](){const _0x21bc8c=_0x57e5e2,_0x3e76c1=this[_0x21bc8c(0x1f1)],_0x286f4d=new _0xede9e5(this[_0x21bc8c(0x1f1)]);return _0x286f4d[_0x21bc8c(0x1e5)]({'label':'('+_0x392a0(_0x3e76c1,_0x21bc8c(0x1f0))+')','withText':!0x0}),_0x286f4d['on'](_0x21bc8c(0x1ea),()=>this[_0x21bc8c(0x1f5)](_0x21bc8c(0x1fc))),_0x286f4d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a183d=_0x436e;(function(_0x5d4c5a,_0x40f159){const _0x47aec2=_0x436e,_0x14a62d=_0x5d4c5a();while(!![]){try{const _0x9d9b3=-parseInt(_0x47aec2(0xcf))/0x1+parseInt(_0x47aec2(0xdc))/0x2+parseInt(_0x47aec2(0xd3))/0x3+-parseInt(_0x47aec2(0xd7))/0x4*(parseInt(_0x47aec2(0xdf))/0x5)+parseInt(_0x47aec2(0xda))/0x6*(-parseInt(_0x47aec2(0xd6))/0x7)+-parseInt(_0x47aec2(0xd0))/0x8*(-parseInt(_0x47aec2(0xcd))/0x9)+parseInt(_0x47aec2(0xce))/0xa;if(_0x9d9b3===_0x40f159)break;else _0x14a62d['push'](_0x14a62d['shift']());}catch(_0x2ef958){_0x14a62d['push'](_0x14a62d['shift']());}}}(_0x5026,0x712dd));function _0x436e(_0x18f820,_0x5da3c0){const _0x5026f4=_0x5026();return _0x436e=function(_0x436e21,_0x8db64c){_0x436e21=_0x436e21-0xc9;let _0x3f9314=_0x5026f4[_0x436e21];return _0x3f9314;},_0x436e(_0x18f820,_0x5da3c0);}import{Collection as _0x5e7e68}from'ckeditor5/src/utils.js';const cs=_0x3a183d(0xd5);export default class os extends _0x5e7e68{constructor(){const _0x85006=_0x3a183d;super(),this[_0x85006(0xe2)](),this['on'](_0x85006(0xe0),(_0x363c7b,_0x2388b6)=>{const _0x760235=_0x85006,_0x54f70d=Ss(_0x2388b6[_0x760235(0xca)]);for(const _0x1c4bc5 of this)if(_0x1c4bc5!=_0x2388b6&&Ss(_0x1c4bc5[_0x760235(0xca)])===_0x54f70d){this[_0x760235(0xd1)](_0x1c4bc5);break;}this[_0x760235(0xcc)]>0x14&&this[_0x760235(0xd1)](this[_0x760235(0xdd)]),this[_0x760235(0xd8)]();}),this['on'](_0x85006(0xd1),()=>{const _0x132d94=_0x85006;this[_0x132d94(0xd8)]();});}[_0x3a183d(0xe2)](){const _0x5e5486=_0x3a183d,_0x2b1b1c=sessionStorage[_0x5e5486(0xdb)](cs)||'[]';this[_0x5e5486(0xde)](JSON[_0x5e5486(0xcb)](_0x2b1b1c));}[_0x3a183d(0xd8)](){const _0x45457f=_0x3a183d;sessionStorage[_0x45457f(0xd9)](cs,JSON[_0x45457f(0xc9)](this[_0x45457f(0xd2)](_0x120cb8=>_0x120cb8)));}}function Ss(_0x923253){const _0x117059=_0x3a183d;return _0x923253[_0x117059(0xe1)]()[_0x117059(0xd4)]();}function _0x5026(){const _0x49d2f6=['prompt','parse','length','9POSJPU','3762340vMVhgI','168134cwRDzC','5148984BohwaM','remove','map','931947Ushkua','trim','CKEditor/AIFormView/PromptHistory','7FhPkaw','8MbXjSR','_saveToSessionStorage','setItem','3909906MqUpGU','getItem','1695968gNfVLX','last','addMany','2237810vpVtvB','add','toLowerCase','_loadFromSessionStorage','stringify'];_0x5026=function(){return _0x49d2f6;};return _0x5026();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d3d00=_0x53a8;function _0x4224(){const _0x343abb=['getFirstRange','getSelectedBlocks','custom','editor','87750IEzFJb','config','hasContent','2553760CGkBre','2391656ksoueM','refresh','getItems','_hasContext','change:_hasContext','showUI','commands','element','isCollapsed','147NNWEXI','requiresContent','concat','_commandDefinitions','plugins','isEmpty','9BOKIND','ai.aiAssistant.disabledElements','name','enabledCommandsIds','change:isEnabled','from','set','1274449lFIETH','30jwbcIT','get','397812UtxdnR','isEnabled','selection','length','reduce','add','document','907786cAqDZW','1770EiWnkC','getRanges','includes','model','2036rtkUDT','execute'];_0x4224=function(){return _0x343abb;};return _0x4224();}function _0x53a8(_0x17ce0f,_0x26d3b4){const _0x4224b3=_0x4224();return _0x53a8=function(_0x53a801,_0x38cc9d){_0x53a801=_0x53a801-0x172;let _0x156df4=_0x4224b3[_0x53a801];return _0x156df4;},_0x53a8(_0x17ce0f,_0x26d3b4);}(function(_0x5e0206,_0x292f44){const _0x1ddee5=_0x53a8,_0x4567ec=_0x5e0206();while(!![]){try{const _0x563684=-parseInt(_0x1ddee5(0x187))/0x1+-parseInt(_0x1ddee5(0x18e))/0x2+-parseInt(_0x1ddee5(0x18f))/0x3*(-parseInt(_0x1ddee5(0x193))/0x4)+parseInt(_0x1ddee5(0x19c))/0x5+parseInt(_0x1ddee5(0x199))/0x6*(parseInt(_0x1ddee5(0x177))/0x7)+-parseInt(_0x1ddee5(0x19d))/0x8*(parseInt(_0x1ddee5(0x17d))/0x9)+parseInt(_0x1ddee5(0x185))/0xa*(parseInt(_0x1ddee5(0x184))/0xb);if(_0x563684===_0x292f44)break;else _0x4567ec['push'](_0x4567ec['shift']());}catch(_0x326ef4){_0x4567ec['push'](_0x4567ec['shift']());}}}(_0x4224,0x4cede));import{Command as _0x3e994a}from'ckeditor5/src/core.js';import _0x17abed from'../aiassistantui.js';export default class j extends _0x3e994a{constructor(_0x345c21,_0x1c1bf8){const _0x277275=_0x53a8;super(_0x345c21),this[_0x277275(0x17a)]=_0x1c1bf8?_0x1c1bf8[_0x277275(0x18b)]((_0x36f9fe,_0x260120)=>_0x36f9fe[_0x277275(0x179)](_0x260120[_0x277275(0x174)]),new Array()):[],this[_0x277275(0x183)](_0x277275(0x180),[]),this['on'](_0x277275(0x172),(_0x50363d,_0x399f24,_0x5a68c8)=>{const _0x3778a5=_0x277275;this[_0x3778a5(0x188)]&&(this[_0x3778a5(0x180)]=G(this[_0x3778a5(0x17a)],_0x5a68c8));}),this[_0x277275(0x183)](_0x277275(0x1a0),!0x1),this['on'](_0x277275(0x181),(_0x5c37c0,_0x34a385,_0x10e446)=>{const _0x2671ab=_0x277275;this[_0x2671ab(0x180)]=_0x10e446?G(this[_0x2671ab(0x17a)],this[_0x2671ab(0x1a0)]):[];});}[_0x4d3d00(0x19e)](){const _0x51693e=_0x4d3d00,_0x199053=this[_0x51693e(0x198)][_0x51693e(0x192)];this[_0x51693e(0x1a0)]=function(_0x5973a9){const _0x499c81=_0x51693e,_0xf5f4aa=_0x5973a9[_0x499c81(0x18d)][_0x499c81(0x189)];return _0xf5f4aa[_0x499c81(0x176)]?0x0!==[..._0xf5f4aa[_0x499c81(0x196)]()][_0x499c81(0x18a)]&&![..._0xf5f4aa[_0x499c81(0x196)]()][0x0][_0x499c81(0x17c)]:!!_0x5973a9[_0x499c81(0x19b)](_0xf5f4aa[_0x499c81(0x195)]());}(_0x199053);const _0x1815c1=_0x199053[_0x51693e(0x18d)][_0x51693e(0x189)],_0x5deec0=this[_0x51693e(0x198)][_0x51693e(0x19a)][_0x51693e(0x186)](_0x51693e(0x17e));for(const _0x6d37f5 of _0x1815c1[_0x51693e(0x190)]())for(const _0x5c0198 of _0x6d37f5[_0x51693e(0x19f)]())if(_0x5c0198['is'](_0x51693e(0x175))&&_0x5deec0[_0x51693e(0x191)](_0x5c0198[_0x51693e(0x17f)]))return void(this[_0x51693e(0x188)]=!0x1);this[_0x51693e(0x188)]=!0x0;}[_0x4d3d00(0x194)](_0x53fed6='',_0x26fcf2='',_0x3c5d44=_0x4d3d00(0x197)){const _0x325660=_0x4d3d00;this[_0x325660(0x198)][_0x325660(0x17b)][_0x325660(0x186)](_0x17abed)[_0x325660(0x173)](_0x53fed6,_0x26fcf2,_0x3c5d44);}}function G(_0x4fed51,_0x4ec6fd){const _0x81a415=_0x4d3d00,_0x4a4c0f=new Set();for(const _0x1108d7 of _0x4fed51)(_0x4ec6fd||!0x1===_0x1108d7[_0x81a415(0x178)])&&_0x4a4c0f[_0x81a415(0x18c)](_0x1108d7['id']);return Array[_0x81a415(0x182)](_0x4a4c0f);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x2eb3cd,_0x3ed4a7,_0x1bc9c6){const t=_0x2eb3cd['t'];switch(_0x3ed4a7){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',_0x1bc9c6);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'},_0x1bc9c6);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 _0x3ed4a7;}}
|