@ckeditor/ckeditor5-ai 0.0.0-nightly-20240416.0 → 0.0.0-nightly-20240418.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +6 -6
- package/lang/contexts.json +4 -0
- 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 _0x24efa8=_0x5177;(function(_0xd263a7,_0x35d188){const _0x2a31cd=_0x5177,_0x48f566=_0xd263a7();while(!![]){try{const _0x2962e9=-parseInt(_0x2a31cd(0x11d))/0x1*(parseInt(_0x2a31cd(0x153))/0x2)+parseInt(_0x2a31cd(0x148))/0x3*(-parseInt(_0x2a31cd(0x167))/0x4)+parseInt(_0x2a31cd(0x138))/0x5+-parseInt(_0x2a31cd(0x155))/0x6*(-parseInt(_0x2a31cd(0x16f))/0x7)+-parseInt(_0x2a31cd(0x156))/0x8*(-parseInt(_0x2a31cd(0x143))/0x9)+parseInt(_0x2a31cd(0x142))/0xa*(parseInt(_0x2a31cd(0x121))/0xb)+-parseInt(_0x2a31cd(0x145))/0xc*(parseInt(_0x2a31cd(0x122))/0xd);if(_0x2962e9===_0x35d188)break;else _0x48f566['push'](_0x48f566['shift']());}catch(_0x5e9b32){_0x48f566['push'](_0x48f566['shift']());}}}(_0x5958,0xbd89a));import{global as _0x3840f1}from'ckeditor5/src/utils.js';import{View as _0x21cfdc,ButtonView as _0x314784,SpinnerView as _0x4b95d0}from'ckeditor5/src/ui.js';import _0x16080e from'../../../theme/icons/copy.svg';import{getTranslation as _0x1ef66e}from'../../utils/common-translations.js';import{icons as _0x4c56e}from'ckeditor5/src/core.js';function _0x5177(_0x35a0af,_0x58876e){const _0x595806=_0x5958();return _0x5177=function(_0x517717,_0x2587d4){_0x517717=_0x517717-0x11a;let _0x412296=_0x595806[_0x517717];return _0x412296;},_0x5177(_0x35a0af,_0x58876e);}function _0x5958(){const _0x39fc9c=['_createLoader','-9999px','20671SOPyuA','position','div','setContent','appendChild','value','wheel','1WKMOwi','<span>]</span>','_copyHTMLToClipboard','lastElementChild','11363077NczfNN','35152wOnPZY','text/plain','Copy','text/html','<span>[</span>','innerHTML','setStartAfter','_createCopyButton','execute','removeAllRanges','bind','focus','absolute','ck-ai-form__copy-button-wrapper','class','check','contentFieldView','createElement','style','change:value','querySelector','setTemplate','5093250hcekfr','scrollHeight','element','setEndBefore','remove','scrollTo','set','locale','ck-ai-form__content-field','smooth','10GcNCOo','11170773VXnEmQ','render','12840TgABod','loaderView','ck-ai-form__content-area','3xzJLgr','ck-content','ck-ai-form__loader','.ck-ai-form__loader','textContent','bindTemplate','write','getSelection','isEnabled','firstElementChild','\x20ck-ai-form__copy-button--copied','401300EieZog','icon','1374GzgmWY','8mNQDNN','ck-ai-form__copy-button','isVisible','ck-hidden','change:isProcessing','ClipboardItem','isProcessing','appendLoader','listenTo','clipboard','AI\x20is\x20writing...','left','ck-ai-form__content-area-wrapper','addRange','createRange','execCommand','ck-reset_all-excluded','395260uDsyjR','mousedown','copy','ck-ai-form__content-area--processing','copyButtonView','body'];_0x5958=function(){return _0x39fc9c;};return _0x5958();}export default class nt extends _0x21cfdc{constructor(_0x5475ff,_0x5a4058=''){const _0x4cc11d=_0x5177;super(_0x5475ff),this[_0x4cc11d(0x13e)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x53913a=this[_0x4cc11d(0x14d)];this[_0x4cc11d(0x132)]=new ContentFieldView(_0x5475ff,_0x5a4058),this[_0x4cc11d(0x16b)]=this[_0x4cc11d(0x129)](),this[_0x4cc11d(0x137)]({'tag':_0x4cc11d(0x171),'attributes':{'class':['ck',_0x4cc11d(0x162),_0x53913a['if'](_0x4cc11d(0x158),_0x4cc11d(0x159),_0x4c9826=>!_0x4c9826)],'tabindex':'-1'},'children':[{'tag':_0x4cc11d(0x171),'attributes':{'class':['ck',_0x4cc11d(0x147),_0x53913a['if'](_0x4cc11d(0x15c),_0x4cc11d(0x16a))]},'children':[this[_0x4cc11d(0x132)],{'tag':_0x4cc11d(0x171),'attributes':{'class':['ck',_0x4cc11d(0x12f)]},'children':[this[_0x4cc11d(0x16b)]]}]}]});}[_0x24efa8(0x144)](){const _0x230f6d=_0x24efa8;super[_0x230f6d(0x144)](),this[_0x230f6d(0x11b)]&&this[_0x230f6d(0x132)][_0x230f6d(0x172)](this[_0x230f6d(0x11b)]);let _0xdd2e20=!0x1;this['on'](_0x230f6d(0x135),(_0x4c105b,_0xe250cc,_0x29d141)=>{const _0x53aaba=_0x230f6d,_0x20c51e=!this[_0x53aaba(0x132)][_0x53aaba(0x13a)][_0x53aaba(0x136)](_0x53aaba(0x14b));this[_0x53aaba(0x132)][_0x53aaba(0x172)](_0x29d141),this[_0x53aaba(0x15c)]&&_0x20c51e&&!_0xdd2e20&&this[_0x53aaba(0x13a)][_0x53aaba(0x13d)]({'top':this[_0x53aaba(0x13a)][_0x53aaba(0x139)],'behavior':_0x53aaba(0x141)});}),this['on'](_0x230f6d(0x15a),(_0x9fc3b8,_0x41f637,_0x5f04ce)=>{const _0x20e1ef=_0x230f6d;_0xdd2e20=!0x1,_0x5f04ce?(this[_0x20e1ef(0x11b)]=null,this[_0x20e1ef(0x132)][_0x20e1ef(0x15d)]()):this[_0x20e1ef(0x11b)]||this[_0x20e1ef(0x132)][_0x20e1ef(0x172)]('');}),this[_0x230f6d(0x15e)](this[_0x230f6d(0x13a)],_0x230f6d(0x11c),()=>{_0xdd2e20=!0x0;}),this[_0x230f6d(0x15e)](this[_0x230f6d(0x13a)],_0x230f6d(0x168),()=>{_0xdd2e20=!0x0;});}[_0x24efa8(0x12d)](){const _0x217389=_0x24efa8;this[_0x217389(0x13a)][_0x217389(0x12d)]();}[_0x24efa8(0x129)](){const _0x54f1b0=_0x24efa8,_0x3feeee=this[_0x54f1b0(0x13f)],_0x28a8d8=new _0x314784(this[_0x54f1b0(0x13f)]),_0xd6897d=_0x54f1b0(0x157);return _0x28a8d8[_0x54f1b0(0x13e)]({'label':_0x1ef66e(_0x3feeee,_0x54f1b0(0x124)),'icon':_0x16080e,'class':_0xd6897d,'tooltip':!0x0}),_0x28a8d8[_0x54f1b0(0x12c)](_0x54f1b0(0x158))['to'](this,_0x54f1b0(0x11b),_0x392bd2=>!!_0x392bd2),_0x28a8d8[_0x54f1b0(0x12c)](_0x54f1b0(0x150))['to'](this,_0x54f1b0(0x15c),_0x285dd0=>!_0x285dd0),_0x28a8d8['on'](_0x54f1b0(0x12a),()=>{const _0x528b59=_0x54f1b0;this[_0x528b59(0x11f)](this[_0x528b59(0x132)][_0x528b59(0x13a)]),_0x28a8d8[_0x528b59(0x154)]=_0x4c56e[_0x528b59(0x131)],_0x28a8d8[_0x528b59(0x130)]=_0xd6897d+_0x528b59(0x152),this[_0x528b59(0x12d)](),setTimeout(()=>{const _0x3e820c=_0x528b59;_0x28a8d8[_0x3e820c(0x154)]=_0x16080e,_0x28a8d8[_0x3e820c(0x130)]=_0xd6897d;},0x3e8);}),_0x28a8d8;}[_0x24efa8(0x11f)](_0x5b79f3){const _0x16a2fb=_0x24efa8,{window:_0x4b3a4e,document:_0x2248b9}=_0x3840f1;if(_0x4b3a4e[_0x16a2fb(0x15b)]){const {Blob:_0x49991c,ClipboardItem:_0xe5a63e}=_0x4b3a4e,_0x2fff0f=[new _0xe5a63e({'text/html':new _0x49991c([_0x5b79f3[_0x16a2fb(0x127)]],{'type':_0x16a2fb(0x125)}),'text/plain':new _0x49991c([_0x5b79f3[_0x16a2fb(0x14c)]||''],{'type':_0x16a2fb(0x123)})})];navigator[_0x16a2fb(0x15f)][_0x16a2fb(0x14e)](_0x2fff0f);}else{const _0x110f6e=_0x2248b9[_0x16a2fb(0x133)](_0x16a2fb(0x171));_0x110f6e[_0x16a2fb(0x134)][_0x16a2fb(0x170)]=_0x16a2fb(0x12e),_0x110f6e[_0x16a2fb(0x134)][_0x16a2fb(0x161)]=_0x16a2fb(0x16e),_0x110f6e[_0x16a2fb(0x127)]=_0x16a2fb(0x126)+_0x5b79f3[_0x16a2fb(0x127)]+_0x16a2fb(0x11e),_0x2248b9[_0x16a2fb(0x16c)][_0x16a2fb(0x11a)](_0x110f6e);const _0x2050e9=_0x2248b9[_0x16a2fb(0x164)]();_0x2050e9[_0x16a2fb(0x128)](_0x110f6e[_0x16a2fb(0x151)]),_0x2050e9[_0x16a2fb(0x13b)](_0x110f6e[_0x16a2fb(0x120)]);const _0x3f7079=_0x4b3a4e[_0x16a2fb(0x14f)]();_0x3f7079[_0x16a2fb(0x12b)](),_0x3f7079[_0x16a2fb(0x163)](_0x2050e9),_0x2248b9[_0x16a2fb(0x165)](_0x16a2fb(0x169)),_0x110f6e[_0x16a2fb(0x13c)]();}}}export class ContentFieldView extends _0x21cfdc{constructor(_0x310d00,_0x5d1ff3=''){const _0x3ddd83=_0x24efa8;super(_0x310d00),this[_0x3ddd83(0x146)]=this[_0x3ddd83(0x16d)](),this[_0x3ddd83(0x137)]({'tag':_0x3ddd83(0x171),'attributes':{'class':['ck',_0x3ddd83(0x149),_0x5d1ff3,_0x3ddd83(0x166),_0x3ddd83(0x140)]}});}[_0x24efa8(0x172)](_0x36920c){const _0x5cad1d=_0x24efa8;this[_0x5cad1d(0x13a)][_0x5cad1d(0x127)]=_0x36920c;}[_0x24efa8(0x15d)](){const _0x13d8fd=_0x24efa8;this[_0x13d8fd(0x13a)][_0x13d8fd(0x11a)](this[_0x13d8fd(0x146)][_0x13d8fd(0x13a)]);}[_0x24efa8(0x16d)](){const _0x609646=_0x24efa8,_0xb07fd9=new _0x21cfdc(),_0x2574ae=this[_0x609646(0x13f)],_0x5f29d9=new _0x4b95d0();return _0x5f29d9[_0x609646(0x158)]=!0x0,_0xb07fd9[_0x609646(0x137)]({'tag':_0x609646(0x171),'attributes':{'class':['ck',_0x609646(0x14a)]},'children':[_0x5f29d9,{'text':_0x1ef66e(_0x2574ae,_0x609646(0x160))}]}),_0xb07fd9[_0x609646(0x144)](),_0xb07fd9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1582(_0x161726,_0x19ff6a){const _0x513edd=_0x513e();return _0x1582=function(_0x158291,_0x2bcc36){_0x158291=_0x158291-0xdf;let _0x339e19=_0x513edd[_0x158291];return _0x339e19;},_0x1582(_0x161726,_0x19ff6a);}(function(_0x5dfa2a,_0x5b37f8){const _0x28c1cb=_0x1582,_0x15bde5=_0x5dfa2a();while(!![]){try{const _0x31b9f1=-parseInt(_0x28c1cb(0xdf))/0x1+parseInt(_0x28c1cb(0xea))/0x2+parseInt(_0x28c1cb(0xe9))/0x3*(parseInt(_0x28c1cb(0xe3))/0x4)+parseInt(_0x28c1cb(0xe0))/0x5*(parseInt(_0x28c1cb(0xef))/0x6)+parseInt(_0x28c1cb(0xe6))/0x7*(parseInt(_0x28c1cb(0xed))/0x8)+parseInt(_0x28c1cb(0xec))/0x9*(parseInt(_0x28c1cb(0xf0))/0xa)+-parseInt(_0x28c1cb(0xe1))/0xb;if(_0x31b9f1===_0x5b37f8)break;else _0x15bde5['push'](_0x15bde5['shift']());}catch(_0x2f5883){_0x15bde5['push'](_0x15bde5['shift']());}}}(_0x513e,0x7f110));function _0x513e(){const _0x1fbc8d=['4QCKqPK','content','ck-ai-form__error','28ujqofH','bindTemplate','div','791601cVfUvJ','1332488pMAPjL','text','6336783yQRYcj','1617216mwYEII','set','60GjmEdQ','10imoSql','623209deGxaC','112855vvilTb','16773273vPAoss','setTemplate'];_0x513e=function(){return _0x1fbc8d;};return _0x513e();}import{View as _0x1cc8ab,IconView as _0x1f2934}from'ckeditor5/src/ui.js';import _0x49d88c from'../../../theme/icons/error.svg';export default class mt extends _0x1cc8ab{constructor(_0x1e6b8f,_0x57c87f=''){const _0x48af1c=_0x1582;super(_0x1e6b8f);const _0x998e35=new _0x1f2934(),_0x20f09a=this[_0x48af1c(0xe7)];this[_0x48af1c(0xee)](_0x48af1c(0xeb),_0x57c87f),_0x998e35[_0x48af1c(0xe4)]=_0x49d88c,this[_0x48af1c(0xe2)]({'tag':_0x48af1c(0xe8),'attributes':{'class':['ck',_0x48af1c(0xe5)]},'children':[_0x998e35,{'text':_0x20f09a['to'](_0x48af1c(0xeb))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d58a3=_0x4a31;(function(_0xb9b7c1,_0x2d4808){const _0x5eb187=_0x4a31,_0x5c3dda=_0xb9b7c1();while(!![]){try{const _0x11dce4=parseInt(_0x5eb187(0x130))/0x1*(-parseInt(_0x5eb187(0x15d))/0x2)+parseInt(_0x5eb187(0x12c))/0x3+parseInt(_0x5eb187(0x144))/0x4+-parseInt(_0x5eb187(0x133))/0x5+parseInt(_0x5eb187(0x134))/0x6*(parseInt(_0x5eb187(0x132))/0x7)+parseInt(_0x5eb187(0x156))/0x8*(parseInt(_0x5eb187(0x152))/0x9)+parseInt(_0x5eb187(0x14e))/0xa*(-parseInt(_0x5eb187(0x12d))/0xb);if(_0x11dce4===_0x2d4808)break;else _0x5c3dda['push'](_0x5c3dda['shift']());}catch(_0x2ee5fe){_0x5c3dda['push'](_0x5c3dda['shift']());}}}(_0x65b0,0x48e75));import{Rect as _0xd818e3,global as _0x2cd4f1,isVisible as _0x458282}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x3cde1d,ButtonView as _0x3c2ba9}from'ckeditor5/src/ui.js';import{icons as _0x335089}from'ckeditor5/src/core.js';import{getTranslation as _0x5133ad}from'../../utils/common-translations.js';function _0x65b0(){const _0x42607d=['target','maxRows','element','execute','right','left','uiLanguageDirection','272364VNKiql','isOn','bind','style','isVisible','width','submit','submitButtonView','rtl','_createSubmitButton','2985810uCXWPg','render','resultsView','focusableChildren','804987ZbmJHa','focus','children','History','32QBmcir','history','value','ck-ai-form__toggle-history','add','_createShowHistoryButton','fire','186946XoZbfm','requestAnimationFrame','enter','locale','isEnabled','Submit','focusFirst','focusLast','queryView','update','fieldWrapperChildren','1504851XgNdyw','11oYBJsi','minRows','excludeScrollbarsAndBorders','5BSaLix','showHistoryButtonView','7ufUTHb','2009585eVNpAg','3233976feFroY','fieldView','focusCycler','keystrokes','set','isEmpty','window','ck-ai-form__submit','filteredView'];_0x65b0=function(){return _0x42607d;};return _0x65b0();}function _0x4a31(_0x47cd4b,_0xf35a2e){const _0x65b041=_0x65b0();return _0x4a31=function(_0x4a317a,_0x2768d3){_0x4a317a=_0x4a317a-0x12c;let _0x49681c=_0x65b041[_0x4a317a];return _0x49681c;},_0x4a31(_0x47cd4b,_0xf35a2e);}import _0x559777 from'../../../theme/icons/submit.svg';export default class pt extends _0x3cde1d{constructor(_0x11a91f,_0x33fab3){const _0x47e0b3=_0x4a31;super(_0x11a91f,_0x33fab3),this[_0x47e0b3(0x165)][_0x47e0b3(0x135)][_0x47e0b3(0x12e)]=0x1,this[_0x47e0b3(0x165)][_0x47e0b3(0x135)][_0x47e0b3(0x13e)]=0x3,this[_0x47e0b3(0x14b)]=this[_0x47e0b3(0x14d)](),this[_0x47e0b3(0x131)]=this[_0x47e0b3(0x15b)](),this[_0x47e0b3(0x151)][_0x47e0b3(0x15a)](this[_0x47e0b3(0x131)],0x1),this[_0x47e0b3(0x151)][_0x47e0b3(0x15a)](this[_0x47e0b3(0x14b)]);}[_0x5d58a3(0x14f)](){const _0x1a12f8=_0x5d58a3;super[_0x1a12f8(0x14f)](),this[_0x1a12f8(0x165)][_0x1a12f8(0x167)][_0x1a12f8(0x15a)](this[_0x1a12f8(0x131)]),this[_0x1a12f8(0x154)][_0x1a12f8(0x15a)](this[_0x1a12f8(0x14b)]),this[_0x1a12f8(0x137)][_0x1a12f8(0x138)](_0x1a12f8(0x15f),(_0x1e34d1,_0x32e196)=>{const _0x42b8cb=_0x1a12f8;_0x1e34d1[_0x42b8cb(0x13d)]==this[_0x42b8cb(0x165)][_0x42b8cb(0x135)][_0x42b8cb(0x13f)]&&(this[_0x42b8cb(0x14a)](),_0x32e196());});}[_0x5d58a3(0x14d)](){const _0x1b301e=_0x5d58a3,_0x5ac2ea=new _0x3c2ba9(this[_0x1b301e(0x160)]),_0x8eb213=this[_0x1b301e(0x160)];return _0x5ac2ea[_0x1b301e(0x138)]({'icon':_0x559777,'label':_0x5133ad(_0x8eb213,_0x1b301e(0x162)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x1b301e(0x13b)}),_0x5ac2ea['on'](_0x1b301e(0x140),()=>{const _0x25d8c9=_0x1b301e;this[_0x25d8c9(0x14a)]();}),_0x5ac2ea[_0x1b301e(0x146)](_0x1b301e(0x161))['to'](this[_0x1b301e(0x165)][_0x1b301e(0x135)],_0x1b301e(0x139),this,_0x1b301e(0x161),(_0x2e32c1,_0x4a3b8e)=>!_0x2e32c1&&_0x4a3b8e),_0x5ac2ea;}[_0x5d58a3(0x15b)](){const _0x55ea13=_0x5d58a3,_0x48475d=new _0x3c2ba9(this[_0x55ea13(0x160)]),_0x172e8b=this[_0x55ea13(0x150)],_0x578fae=this[_0x55ea13(0x160)];_0x48475d[_0x55ea13(0x138)]({'label':_0x5133ad(_0x578fae,_0x55ea13(0x155)),'withText':!0x1,'icon':_0x335089[_0x55ea13(0x157)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x55ea13(0x159)}),_0x48475d[_0x55ea13(0x146)](_0x55ea13(0x145))['to'](_0x172e8b,_0x55ea13(0x148)),_0x48475d[_0x55ea13(0x146)](_0x55ea13(0x161))['to'](this,_0x55ea13(0x161)),_0x48475d['on'](_0x55ea13(0x140),()=>{const _0x306906=_0x55ea13;_0x172e8b[_0x306906(0x148)]=!_0x172e8b[_0x306906(0x148)],_0x172e8b[_0x306906(0x148)]?this[_0x306906(0x13c)][_0x306906(0x153)]():this[_0x306906(0x153)]();});const _0x3ed41b=()=>{const _0x7cfdc=_0x55ea13;_0x2cd4f1[_0x7cfdc(0x13a)][_0x7cfdc(0x15e)](()=>{const _0x311558=_0x7cfdc;if(_0x458282(this[_0x311558(0x13f)])){const _0x2f15d3=new _0xd818e3(this[_0x311558(0x165)][_0x311558(0x135)][_0x311558(0x13f)]),_0xf9c213=_0x2f15d3[_0x311558(0x149)],_0x922a5a=_0x311558(0x14c)===_0x578fae[_0x311558(0x143)]?_0x311558(0x142):_0x311558(0x141);_0x2f15d3[_0x311558(0x12f)](),_0x48475d[_0x311558(0x13f)][_0x311558(0x147)][_0x922a5a]=_0xf9c213-_0x2f15d3[_0x311558(0x149)]+0x1+'px';}});};return this[_0x55ea13(0x165)][_0x55ea13(0x135)]['on'](_0x55ea13(0x166),_0x3ed41b),this['on'](_0x55ea13(0x14f),_0x3ed41b),_0x48475d;}[_0x5d58a3(0x14a)](){const _0x52d7fc=_0x5d58a3,_0x16bcc6=this[_0x52d7fc(0x165)][_0x52d7fc(0x135)][_0x52d7fc(0x13f)][_0x52d7fc(0x158)];this[_0x52d7fc(0x15c)](_0x52d7fc(0x14a),_0x16bcc6);}[_0x5d58a3(0x153)](_0x51f76c){const _0x3f3f89=_0x5d58a3;-0x1===_0x51f76c?this[_0x3f3f89(0x136)][_0x3f3f89(0x164)]():this[_0x3f3f89(0x136)][_0x3f3f89(0x163)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d1754=_0x4889;(function(_0x22ef01,_0x5ed257){const _0x472c20=_0x4889,_0x2a4e8e=_0x22ef01();while(!![]){try{const _0x36f5de=parseInt(_0x472c20(0x113))/0x1*(parseInt(_0x472c20(0x124))/0x2)+-parseInt(_0x472c20(0x12e))/0x3+-parseInt(_0x472c20(0x130))/0x4+parseInt(_0x472c20(0x11d))/0x5+parseInt(_0x472c20(0x137))/0x6+-parseInt(_0x472c20(0x128))/0x7*(-parseInt(_0x472c20(0x116))/0x8)+parseInt(_0x472c20(0x123))/0x9*(parseInt(_0x472c20(0x12d))/0xa);if(_0x36f5de===_0x5ed257)break;else _0x2a4e8e['push'](_0x2a4e8e['shift']());}catch(_0x546fb6){_0x2a4e8e['push'](_0x2a4e8e['shift']());}}}(_0x3ac4,0x93f8a));import{ToolbarView as _0x319bf1,ButtonView as _0x30b8da}from'ckeditor5/src/ui.js';import{getTranslation as _0x4b8fb8}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x5d1754(0x118),'INSERT':_0x5d1754(0x120)};function _0x4889(_0x263f80,_0x35b9ff){const _0x3ac4d9=_0x3ac4();return _0x4889=function(_0x4889c0,_0x309b79){_0x4889c0=_0x4889c0-0x113;let _0x2ade31=_0x3ac4d9[_0x4889c0];return _0x2ade31;},_0x4889(_0x263f80,_0x35b9ff);}export default class Tt extends _0x319bf1{constructor(_0x167354){const _0x36c826=_0x5d1754;super(_0x167354),this[_0x36c826(0x133)](_0x36c826(0x135),!0x1),this[_0x36c826(0x133)](_0x36c826(0x115),AIFormToolbarViewMainActionLabel[_0x36c826(0x127)]),this[_0x36c826(0x11a)]=this[_0x36c826(0x126)]('',_0x36c826(0x121)),this[_0x36c826(0x11a)][_0x36c826(0x12c)](_0x36c826(0x11e))['to'](this,_0x36c826(0x115),_0x4fbe33=>_0x4b8fb8(_0x167354,_0x36c826(0x11b)+_0x4fbe33[_0x36c826(0x119)]()+_0x36c826(0x131))),this[_0x36c826(0x12a)]=this[_0x36c826(0x126)](_0x4b8fb8(_0x167354,_0x36c826(0x11f))),this[_0x36c826(0x132)]=this[_0x36c826(0x126)](_0x4b8fb8(_0x167354,_0x36c826(0x122))),this[_0x36c826(0x125)]=this[_0x36c826(0x126)](_0x4b8fb8(_0x167354,_0x36c826(0x117)));const _0x14dbd9=this[_0x36c826(0x12b)];this[_0x36c826(0x114)]({'attributes':{'class':[_0x36c826(0x12f),_0x14dbd9['if'](_0x36c826(0x135),_0x36c826(0x11c),_0x25150f=>!_0x25150f)]}}),this[_0x36c826(0x134)][_0x36c826(0x136)]([this[_0x36c826(0x11a)],this[_0x36c826(0x12a)],this[_0x36c826(0x132)],this[_0x36c826(0x125)]]);}[_0x5d1754(0x126)](_0x491153,_0x62b6d6){const _0x175b1e=_0x5d1754,_0x4b8ff7=new _0x30b8da(this[_0x175b1e(0x129)]);return _0x4b8ff7[_0x175b1e(0x133)]({'label':_0x491153,'class':_0x62b6d6||'','isVisible':!0x0,'withText':!0x0}),_0x4b8ff7;}}function _0x3ac4(){const _0x5975bd=['addMany','1480680lvWSkq','19266evhhdS','extendTemplate','mainAction','616PRWvpQ','Stop','replace','toUpperCase','replaceButton','AI_','ck-hidden','4203920PVJFbz','label','Insert\x20below','insert','ck-button-action','Try\x20again','13878rTAMUz','26AmRfzU','stopButton','_createButton','REPLACE','30443KqWxpc','locale','insertButton','bindTemplate','bind','5430YIjsTX','2773986WwHjTq','ck-ai-form__toolbar','3917796WLuVIZ','_CONTENT','tryAgainButton','set','items','isVisible'];_0x3ac4=function(){return _0x5975bd;};return _0x3ac4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xdfe6bd=_0x1e13;(function(_0x3768ed,_0x5edbb6){const _0x252447=_0x1e13,_0xdc64be=_0x3768ed();while(!![]){try{const _0x2dec22=-parseInt(_0x252447(0x187))/0x1+-parseInt(_0x252447(0x1bc))/0x2*(-parseInt(_0x252447(0x1c6))/0x3)+parseInt(_0x252447(0x19f))/0x4*(-parseInt(_0x252447(0x1b3))/0x5)+-parseInt(_0x252447(0x1ce))/0x6+-parseInt(_0x252447(0x1bb))/0x7+-parseInt(_0x252447(0x19a))/0x8*(parseInt(_0x252447(0x1a6))/0x9)+parseInt(_0x252447(0x1ae))/0xa*(parseInt(_0x252447(0x18d))/0xb);if(_0x2dec22===_0x5edbb6)break;else _0xdc64be['push'](_0xdc64be['shift']());}catch(_0x33eece){_0xdc64be['push'](_0xdc64be['shift']());}}}(_0x3297,0x75be7));import{FocusTracker as _0x4f033,KeystrokeHandler as _0x4440cf}from'ckeditor5/src/utils.js';import{View as _0x538657,FocusCycler as _0x49dba9,createLabeledTextarea as _0x3f783f}from'ckeditor5/src/ui.js';import _0x40ab13,{AIFormToolbarViewMainActionLabel as _0x507fcd}from'./aiformtoolbarview.js';import _0x3ea767 from'./aiformcontentarea.js';function _0x3297(){const _0x5ed25a=['tryAgainEvent','keystrokes','high','tryAgainButton','createCollection','prompt','10iMIJwr','finishProcessing','bind','handleError','_focusables','988340ZhgggJ','render','queryView','items','text','value','ck-hidden','promptView','3744657yFxHva','2kieRHS','errorView','shift\x20+\x20tab','bindTo','clear','tab','insertButton','focusFirst','locale','isProcessing','683811xIKJLC','trim','mainAction','startProcessing','isEnabled','AI_ERROR_FAILED','focusTracker','stop','1757604XPuGSS','listenTo','REPLACE','insertContentBelow','execute','_createHistoryView','replaceContent','focusNext','submit','_promptHistory','search','isError','_createToolbar','fieldView','forwardCycle','setTemplate','submitPrompt','bindTemplate','focusPrevious','845762nJHcKw','Ask\x20AI\x20to\x20improve\x20generated\x20text','Ask\x20AI\x20to\x20edit\x20or\x20generate','stopButton','reset','label','34495978xMhJYL','focusCycler','focusLast','toolbar','clearHistory','backwardCycle','contentArea','replaceButton','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','ck-ai-form','div','delegate','stopProcessing','3338696uPNDRZ','add','element','ck-ai-form-content','copyButtonView','16wxtrMB','isVisible','Empty\x20history','fire','_createPromptView','set','historyGroupView','9oCTHNT','focus'];_0x3297=function(){return _0x5ed25a;};return _0x3297();}import _0x1c922e from'./aiformerrorview.js';import _0x165f44 from'./aiformpromptview.js';import _0x17b1b4 from'./aihistorylistview.js';import _0x36b652 from'./aihistorylistitemview.js';import _0x2d1101 from'./prompthistory.js';import{getTranslation as _0x1cf0bf}from'../../utils/common-translations.js';function _0x1e13(_0x24a75e,_0x5b3db5){const _0x3297dc=_0x3297();return _0x1e13=function(_0x1e1306,_0x1628e0){_0x1e1306=_0x1e1306-0x175;let _0x2f0259=_0x3297dc[_0x1e1306];return _0x2f0259;},_0x1e13(_0x24a75e,_0x5b3db5);}import{escape as _0x1f842b}from'lodash-es';export default class x extends _0x538657{constructor(_0x4e7860,_0x2679a3,_0x58b198=''){const _0x12df65=_0x1e13;super(_0x4e7860),this[_0x12df65(0x1a4)](_0x12df65(0x1ca),!0x0),this[_0x12df65(0x1a4)](_0x12df65(0x1c5),!0x1),this[_0x12df65(0x1a4)](_0x12df65(0x1ad),''),this[_0x12df65(0x1a4)](_0x12df65(0x1b8),''),this[_0x12df65(0x1a4)](_0x12df65(0x17f),!0x1),this[_0x12df65(0x1a4)](_0x12df65(0x1c8),_0x507fcd[_0x12df65(0x176)]),this[_0x12df65(0x17d)]=new _0x2d1101(),this[_0x12df65(0x1bd)]=new _0x1c922e(_0x4e7860),this[_0x12df65(0x193)]=new _0x3ea767(_0x4e7860,_0x58b198),this[_0x12df65(0x193)][_0x12df65(0x1b0)](_0x12df65(0x1c5))['to'](this),this[_0x12df65(0x193)][_0x12df65(0x1b0)](_0x12df65(0x1b8))['to'](this),this[_0x12df65(0x190)]=this[_0x12df65(0x180)](),this[_0x12df65(0x190)][_0x12df65(0x1b0)](_0x12df65(0x1c8))['to'](this),this[_0x12df65(0x1ba)]=this[_0x12df65(0x1a3)](),this[_0x12df65(0x1cc)]=new _0x4f033(),this[_0x12df65(0x1a9)]=new _0x4440cf(),this[_0x12df65(0x1b2)]=this[_0x12df65(0x1ac)]([this[_0x12df65(0x193)],this[_0x12df65(0x193)][_0x12df65(0x19e)],this[_0x12df65(0x190)],this[_0x12df65(0x1ba)]]),this[_0x12df65(0x18e)]=new _0x49dba9({'focusables':this[_0x12df65(0x1b2)],'focusTracker':this[_0x12df65(0x1cc)],'keystrokeHandler':this[_0x12df65(0x1a9)],'actions':{'focusPrevious':_0x12df65(0x1be),'focusNext':_0x12df65(0x1c1)}}),this[_0x12df65(0x1ba)][_0x12df65(0x18e)]['on'](_0x12df65(0x182),_0x2aeb76=>{const _0x4a1d30=_0x12df65;this[_0x4a1d30(0x18e)][_0x4a1d30(0x17b)](),_0x2aeb76[_0x4a1d30(0x1cd)]();}),this[_0x12df65(0x1ba)][_0x12df65(0x18e)]['on'](_0x12df65(0x192),_0x1a7f72=>{const _0x242f2f=_0x12df65;this[_0x242f2f(0x18e)][_0x242f2f(0x186)](),_0x1a7f72[_0x242f2f(0x1cd)]();}),this[_0x12df65(0x1ba)][_0x12df65(0x1b5)][_0x12df65(0x181)][_0x12df65(0x1b0)](_0x12df65(0x1b8))['to'](this,_0x12df65(0x1ad));const _0x51c718=this[_0x12df65(0x185)];this[_0x12df65(0x183)]({'tag':_0x12df65(0x197),'attributes':{'class':['ck',_0x12df65(0x196),_0x2679a3],'tabindex':'-1'},'children':[{'tag':_0x12df65(0x197),'attributes':{'class':['ck',_0x12df65(0x19d)]},'children':[{'tag':_0x12df65(0x197),'attributes':{'class':[_0x51c718['if'](_0x12df65(0x17f),_0x12df65(0x1b9),_0x1ce222=>!_0x1ce222)]},'children':[this[_0x12df65(0x1bd)]]},this[_0x12df65(0x193)],this[_0x12df65(0x190)],this[_0x12df65(0x1ba)]]}]});}[_0xdfe6bd(0x1b4)](){const _0x563b1c=_0xdfe6bd;super[_0x563b1c(0x1b4)](),this[_0x563b1c(0x1cc)][_0x563b1c(0x19b)](this[_0x563b1c(0x193)][_0x563b1c(0x19c)]),this[_0x563b1c(0x1cc)][_0x563b1c(0x19b)](this[_0x563b1c(0x193)][_0x563b1c(0x19e)][_0x563b1c(0x19c)]),this[_0x563b1c(0x1cc)][_0x563b1c(0x19b)](this[_0x563b1c(0x190)][_0x563b1c(0x19c)]),this[_0x563b1c(0x1cc)][_0x563b1c(0x19b)](this[_0x563b1c(0x1ba)][_0x563b1c(0x19c)]),this[_0x563b1c(0x1a9)][_0x563b1c(0x175)](this[_0x563b1c(0x19c)]);}[_0xdfe6bd(0x1a7)](_0x1e26ff=0x1){const _0x2dc17b=_0xdfe6bd;-0x1===_0x1e26ff?this[_0x2dc17b(0x18e)][_0x2dc17b(0x18f)]():this[_0x2dc17b(0x18e)][_0x2dc17b(0x1c3)]();}[_0xdfe6bd(0x18b)](){const _0x4fb7aa=_0xdfe6bd;this[_0x4fb7aa(0x1ad)]='',this[_0x4fb7aa(0x1b8)]='',this[_0x4fb7aa(0x17f)]=!0x1,this[_0x4fb7aa(0x1ba)][_0x4fb7aa(0x18b)](),this[_0x4fb7aa(0x193)][_0x4fb7aa(0x1a0)]=!0x1,this[_0x4fb7aa(0x190)][_0x4fb7aa(0x1a0)]=!0x1;}[_0xdfe6bd(0x1a3)](){const _0x5abcef=_0xdfe6bd,_0x7c2818=this[_0x5abcef(0x1c4)],_0x4cacdc=new _0x165f44(_0x7c2818,{'queryView':{'label':_0x1cf0bf(_0x7c2818,_0x5abcef(0x189)),'creator':_0x3f783f,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x1cf0bf(_0x7c2818,_0x5abcef(0x1a1)),'secondary':_0x1cf0bf(_0x7c2818,_0x5abcef(0x195))}}},'filteredView':this[_0x5abcef(0x179)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4cacdc[_0x5abcef(0x1b0)](_0x5abcef(0x1ca))['to'](this,_0x5abcef(0x1ca),this,_0x5abcef(0x1c5),(_0xe04457,_0x48179b)=>_0xe04457&&!_0x48179b),this[_0x5abcef(0x175)](_0x4cacdc,_0x5abcef(0x17c),(_0x3589c1,_0x29b155)=>{const _0x5eb6a4=_0x5abcef;this[_0x5eb6a4(0x1ad)]=_0x29b155;const _0x24491e=_0x1f842b(_0x29b155);this[_0x5eb6a4(0x1a2)](_0x5eb6a4(0x184),_0x24491e),_0x29b155[_0x5eb6a4(0x1c7)]()&&this[_0x5eb6a4(0x17d)][_0x5eb6a4(0x19b)]({'prompt':_0x24491e},0x0);},{'priority':_0x5abcef(0x1aa)}),_0x4cacdc;}[_0xdfe6bd(0x179)](){const _0x13b96e=_0xdfe6bd,_0x3e5f7a=new _0x17b1b4(this[_0x13b96e(0x1c4)]);return _0x3e5f7a[_0x13b96e(0x1a5)][_0x13b96e(0x1b6)][_0x13b96e(0x1bf)](this[_0x13b96e(0x17d)])['as'](_0x36b652),_0x3e5f7a['on'](_0x13b96e(0x191),()=>{const _0x18c9f0=_0x13b96e;this[_0x18c9f0(0x17d)][_0x18c9f0(0x1c0)](),this[_0x18c9f0(0x1ba)][_0x18c9f0(0x17e)](''),this[_0x18c9f0(0x1ba)][_0x18c9f0(0x1a7)]();}),_0x3e5f7a;}[_0xdfe6bd(0x180)](){const _0x366794=_0xdfe6bd,_0x1c51c9=new _0x40ab13(this[_0x366794(0x1c4)]);return _0x1c51c9[_0x366794(0x194)][_0x366794(0x1b0)](_0x366794(0x1ca))['to'](this,_0x366794(0x1ca),this,_0x366794(0x1c5),this,_0x366794(0x1b8),(_0x22dd70,_0x49ee6d,_0x3cc1b5)=>_0x22dd70&&!_0x49ee6d&&!!_0x3cc1b5),_0x1c51c9[_0x366794(0x194)][_0x366794(0x198)](_0x366794(0x178))['to'](this,_0x366794(0x17a)),_0x1c51c9[_0x366794(0x1c2)][_0x366794(0x1b0)](_0x366794(0x1ca))['to'](this,_0x366794(0x1ca),this,_0x366794(0x1c5),this,_0x366794(0x1b8),(_0x11267d,_0x1d283f,_0x379cc4)=>_0x11267d&&!_0x1d283f&&!!_0x379cc4),_0x1c51c9[_0x366794(0x1c2)][_0x366794(0x198)](_0x366794(0x178))['to'](this,_0x366794(0x177)),_0x1c51c9[_0x366794(0x1ab)][_0x366794(0x1b0)](_0x366794(0x1ca))['to'](this,_0x366794(0x1ca),this,_0x366794(0x1c5),(_0x23c9bc,_0x31e630)=>_0x23c9bc&&!_0x31e630),_0x1c51c9[_0x366794(0x1ab)][_0x366794(0x198)](_0x366794(0x178))['to'](this,_0x366794(0x1a8)),_0x1c51c9[_0x366794(0x18a)][_0x366794(0x1b0)](_0x366794(0x1ca))['to'](this,_0x366794(0x1c5)),_0x1c51c9[_0x366794(0x18a)][_0x366794(0x198)](_0x366794(0x178))['to'](this,_0x366794(0x199)),_0x1c51c9;}[_0xdfe6bd(0x1c9)](){const _0x2f5e2f=_0xdfe6bd;this[_0x2f5e2f(0x1b8)]='',this[_0x2f5e2f(0x17f)]=!0x1,this[_0x2f5e2f(0x1c5)]=!0x0,this[_0x2f5e2f(0x193)][_0x2f5e2f(0x1a0)]=!0x0,this[_0x2f5e2f(0x190)][_0x2f5e2f(0x1a0)]=!0x0,this[_0x2f5e2f(0x193)][_0x2f5e2f(0x1a7)]();}[_0xdfe6bd(0x1af)](){const _0x2d33b6=_0xdfe6bd,_0x44b3bc=this[_0x2d33b6(0x1c4)];this[_0x2d33b6(0x1c5)]=!0x1,this[_0x2d33b6(0x1ad)]='',this[_0x2d33b6(0x1ba)][_0x2d33b6(0x18b)](),this[_0x2d33b6(0x1b8)]&&(this[_0x2d33b6(0x1ba)][_0x2d33b6(0x1b5)][_0x2d33b6(0x18c)]=_0x1cf0bf(_0x44b3bc,_0x2d33b6(0x188)));}[_0xdfe6bd(0x1b1)](_0x929e3b){const _0x3bf09f=_0xdfe6bd,_0x36017b=this[_0x3bf09f(0x1c4)];this[_0x3bf09f(0x1af)](),this[_0x3bf09f(0x17f)]=!0x0,this[_0x3bf09f(0x1bd)][_0x3bf09f(0x1b7)]=_0x929e3b||_0x1cf0bf(_0x36017b,_0x3bf09f(0x1cb)),this[_0x3bf09f(0x1b8)]||(this[_0x3bf09f(0x193)][_0x3bf09f(0x1a0)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x48a226,_0x532eab){const _0x2e038d=_0x11f9,_0x46db12=_0x48a226();while(!![]){try{const _0x9e5cce=-parseInt(_0x2e038d(0x18d))/0x1*(parseInt(_0x2e038d(0x18e))/0x2)+parseInt(_0x2e038d(0x189))/0x3*(-parseInt(_0x2e038d(0x18f))/0x4)+-parseInt(_0x2e038d(0x194))/0x5+-parseInt(_0x2e038d(0x18c))/0x6+parseInt(_0x2e038d(0x191))/0x7+-parseInt(_0x2e038d(0x188))/0x8+-parseInt(_0x2e038d(0x190))/0x9*(-parseInt(_0x2e038d(0x196))/0xa);if(_0x9e5cce===_0x532eab)break;else _0x46db12['push'](_0x46db12['shift']());}catch(_0x1f2d17){_0x46db12['push'](_0x46db12['shift']());}}}(_0x324e,0x942bf));import{ListItemView as _0xe1a725,ButtonView as _0x5b58a6}from'ckeditor5/src/ui.js';function _0x11f9(_0x4ff447,_0x4b3511){const _0x324e35=_0x324e();return _0x11f9=function(_0x11f912,_0x335b7c){_0x11f912=_0x11f912-0x186;let _0x44fcdc=_0x324e35[_0x11f912];return _0x44fcdc;},_0x11f9(_0x4ff447,_0x4b3511);}import _0x2e8cce from'../dropdown/buttonlabelwithhighlightview.js';function _0x324e(){const _0x49becb=['execute','3375342mtKXNI','58ZuoVOT','2954vYjKgP','56192csPnFs','9qgvPlB','894180YDpcuR','add','children','2264645jrAvuV','fire','31423580cGjdUt','prompt','locale','9012376HtGvpu','93ndOExL','set'];_0x324e=function(){return _0x49becb;};return _0x324e();}import{unescape as _0x5c3b9d}from'lodash-es';export default class hs extends _0xe1a725{constructor(_0x3e9880){const _0x5a5324=_0x11f9;super();const _0x5a0a19=new _0x2e8cce(),_0x1a26d2=new _0x5b58a6(this[_0x5a5324(0x187)],_0x5a0a19);this[_0x5a5324(0x193)][_0x5a5324(0x192)](_0x1a26d2),_0x1a26d2[_0x5a5324(0x18a)]({'label':_0x3e9880[_0x5a5324(0x186)],'withText':!0x0}),_0x1a26d2['on'](_0x5a5324(0x18b),()=>{const _0x17dd9d=_0x5a5324;this[_0x17dd9d(0x195)](_0x17dd9d(0x18b),{'value':_0x5c3b9d(_0x3e9880[_0x17dd9d(0x186)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x12ab(){const _0xb9105e=['execute','Prompt\x20history','clearHistoryButton','add','delegate','filter','locale','items','36OEIpBo','set','4634390xjWkvy','2252104YfJyfR','length','6GZoaeq','label','historyGroupView','clearHistory','fire','children','_createClearHistoryButton','2610792iIJmHc','278401LNHhda','Clear','10TQcjUq','7757323LVATnq','1353570CNuMrr','2098248FxGCst'];_0x12ab=function(){return _0xb9105e;};return _0x12ab();}const _0x58c834=_0x5eee;(function(_0x36560c,_0x18f267){const _0x608c5e=_0x5eee,_0x671c82=_0x36560c();while(!![]){try{const _0xb31407=parseInt(_0x608c5e(0x1e2))/0x1*(-parseInt(_0x608c5e(0x1da))/0x2)+parseInt(_0x608c5e(0x1e6))/0x3+parseInt(_0x608c5e(0x1d8))/0x4*(-parseInt(_0x608c5e(0x1e4))/0x5)+-parseInt(_0x608c5e(0x1e1))/0x6+parseInt(_0x608c5e(0x1e5))/0x7+parseInt(_0x608c5e(0x1e7))/0x8*(parseInt(_0x608c5e(0x1d5))/0x9)+parseInt(_0x608c5e(0x1d7))/0xa;if(_0xb31407===_0x18f267)break;else _0x671c82['push'](_0x671c82['shift']());}catch(_0x1d4633){_0x671c82['push'](_0x671c82['shift']());}}}(_0x12ab,0xa4ee3));function _0x5eee(_0x3bcf3f,_0xf2f5f6){const _0x12ab5f=_0x12ab();return _0x5eee=function(_0x5eee36,_0xabff37){_0x5eee36=_0x5eee36-0x1d5;let _0x26e111=_0x12ab5f[_0x5eee36];return _0x26e111;},_0x5eee(_0x3bcf3f,_0xf2f5f6);}import{ListView as _0x221f91,ListItemGroupView as _0x1b8636,ButtonView as _0x4039c7}from'ckeditor5/src/ui.js';import{getTranslation as _0x289cb0}from'../../utils/common-translations.js';export default class rs extends _0x221f91{constructor(_0x24e510){const _0x1e6581=_0x5eee;super(_0x24e510),this[_0x1e6581(0x1ea)]=this[_0x1e6581(0x1e0)](),this[_0x1e6581(0x1dc)]=new _0x1b8636(),this[_0x1e6581(0x1dc)][_0x1e6581(0x1df)][_0x1e6581(0x1eb)](this[_0x1e6581(0x1ea)],0x1),this[_0x1e6581(0x1dc)][_0x1e6581(0x1db)]=_0x289cb0(_0x24e510,_0x1e6581(0x1e9)),this[_0x1e6581(0x1dc)][_0x1e6581(0x1ef)][_0x1e6581(0x1ec)](_0x1e6581(0x1e8))['to'](this),this[_0x1e6581(0x1ef)][_0x1e6581(0x1eb)](this[_0x1e6581(0x1dc)]);}[_0x58c834(0x1ed)](){const _0x144c64=_0x58c834;let _0x29f117=0x0;for(const _0x463704 of this[_0x144c64(0x1ef)])_0x29f117+=_0x463704[_0x144c64(0x1ef)][_0x144c64(0x1d9)];return{'resultsCount':_0x29f117,'totalItemsCount':_0x29f117};}[_0x58c834(0x1e0)](){const _0x132c70=_0x58c834,_0xe549ee=this[_0x132c70(0x1ee)],_0x56038a=new _0x4039c7(this[_0x132c70(0x1ee)]);return _0x56038a[_0x132c70(0x1d6)]({'label':'('+_0x289cb0(_0xe549ee,_0x132c70(0x1e3))+')','withText':!0x0}),_0x56038a['on'](_0x132c70(0x1e8),()=>this[_0x132c70(0x1de)](_0x132c70(0x1dd))),_0x56038a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55baeb=_0x5ab4;(function(_0x44bdf6,_0x307074){const _0x3c40cd=_0x5ab4,_0x1f1fbd=_0x44bdf6();while(!![]){try{const _0x4059aa=parseInt(_0x3c40cd(0x190))/0x1+parseInt(_0x3c40cd(0x1a0))/0x2*(parseInt(_0x3c40cd(0x194))/0x3)+parseInt(_0x3c40cd(0x1a4))/0x4+parseInt(_0x3c40cd(0x1a3))/0x5*(parseInt(_0x3c40cd(0x1a2))/0x6)+parseInt(_0x3c40cd(0x191))/0x7+-parseInt(_0x3c40cd(0x197))/0x8+-parseInt(_0x3c40cd(0x199))/0x9*(parseInt(_0x3c40cd(0x19f))/0xa);if(_0x4059aa===_0x307074)break;else _0x1f1fbd['push'](_0x1f1fbd['shift']());}catch(_0x46bf35){_0x1f1fbd['push'](_0x1f1fbd['shift']());}}}(_0x45f2,0x7bfe1));import{Collection as _0x26aaac}from'ckeditor5/src/utils.js';const cs=_0x55baeb(0x18f);function _0x45f2(){const _0x3f5843=['prompt','length','CKEditor/AIFormView/PromptHistory','925231NXkFov','682108FvDDae','last','_saveToSessionStorage','672711xkbQUv','_loadFromSessionStorage','addMany','2051312rsvfVl','parse','9CqgpIt','getItem','remove','add','setItem','map','18583420jqtJOI','6IEEceq','toLowerCase','6xFlwUN','2721965DQnSQv','1531400DeWXQF','stringify','trim'];_0x45f2=function(){return _0x3f5843;};return _0x45f2();}export default class os extends _0x26aaac{constructor(){const _0x2e2322=_0x55baeb;super(),this[_0x2e2322(0x195)](),this['on'](_0x2e2322(0x19c),(_0x118bf5,_0x1ec32c)=>{const _0x7efb1b=_0x2e2322,_0x49b400=Ss(_0x1ec32c[_0x7efb1b(0x18d)]);for(const _0x40ed1b of this)if(_0x40ed1b!=_0x1ec32c&&Ss(_0x40ed1b[_0x7efb1b(0x18d)])===_0x49b400){this[_0x7efb1b(0x19b)](_0x40ed1b);break;}this[_0x7efb1b(0x18e)]>0x14&&this[_0x7efb1b(0x19b)](this[_0x7efb1b(0x192)]),this[_0x7efb1b(0x193)]();}),this['on'](_0x2e2322(0x19b),()=>{const _0x349ba2=_0x2e2322;this[_0x349ba2(0x193)]();});}[_0x55baeb(0x195)](){const _0x575b6a=_0x55baeb,_0x32f0e3=sessionStorage[_0x575b6a(0x19a)](cs)||'[]';this[_0x575b6a(0x196)](JSON[_0x575b6a(0x198)](_0x32f0e3));}[_0x55baeb(0x193)](){const _0xc7491e=_0x55baeb;sessionStorage[_0xc7491e(0x19d)](cs,JSON[_0xc7491e(0x18b)](this[_0xc7491e(0x19e)](_0x325fab=>_0x325fab)));}}function _0x5ab4(_0x450640,_0x52473f){const _0x45f2b9=_0x45f2();return _0x5ab4=function(_0x5ab436,_0x45f4ad){_0x5ab436=_0x5ab436-0x18b;let _0x14866c=_0x45f2b9[_0x5ab436];return _0x14866c;},_0x5ab4(_0x450640,_0x52473f);}function Ss(_0x3c6384){const _0x549385=_0x55baeb;return _0x3c6384[_0x549385(0x1a1)]()[_0x549385(0x18c)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5925(_0x5d05ee,_0x21fe00){const _0x248bba=_0x248b();return _0x5925=function(_0x5925a3,_0x2d9070){_0x5925a3=_0x5925a3-0xfc;let _0x55eed3=_0x248bba[_0x5925a3];return _0x55eed3;},_0x5925(_0x5d05ee,_0x21fe00);}const _0x1d59e9=_0x5925;function _0x248b(){const _0x4bcee0=['name','set','custom','4083345CJrQXB','length','commands','selection','from','document','config','_hasContext','concat','hasContent','isEnabled','isCollapsed','editor','requiresContent','enabledCommandsIds','1820964vngBkI','1855KmvVju','add','ai.aiAssistant.disabledElements','8239408BttOLM','11252817dPBqeC','getRanges','getItems','element','getFirstRange','change:_hasContext','3644GjWaPT','513167HhDUMd','showUI','reduce','refresh','7248fApNBt','_commandDefinitions','model','plugins','includes','getSelectedBlocks','isEmpty','execute','711pspSUc','get','change:isEnabled'];_0x248b=function(){return _0x4bcee0;};return _0x248b();}(function(_0x207002,_0x4de9f7){const _0x39d02a=_0x5925,_0x44097a=_0x207002();while(!![]){try{const _0xe45ac0=parseInt(_0x39d02a(0x101))/0x1+-parseInt(_0x39d02a(0x122))/0x2+parseInt(_0x39d02a(0x10d))/0x3*(parseInt(_0x39d02a(0x100))/0x4)+parseInt(_0x39d02a(0x123))/0x5*(parseInt(_0x39d02a(0x105))/0x6)+parseInt(_0x39d02a(0x113))/0x7+parseInt(_0x39d02a(0x126))/0x8+-parseInt(_0x39d02a(0x127))/0x9;if(_0xe45ac0===_0x4de9f7)break;else _0x44097a['push'](_0x44097a['shift']());}catch(_0x44c23c){_0x44097a['push'](_0x44097a['shift']());}}}(_0x248b,0x99bcc));import{Command as _0x241e31}from'ckeditor5/src/core.js';import _0x1e7e03 from'../aiassistantui.js';export default class j extends _0x241e31{constructor(_0x3c9879,_0xcddc0c){const _0x5dc762=_0x5925;super(_0x3c9879),this[_0x5dc762(0x106)]=_0xcddc0c?_0xcddc0c[_0x5dc762(0x103)]((_0x4551ef,_0x5e1d36)=>_0x4551ef[_0x5dc762(0x11b)](_0x5e1d36[_0x5dc762(0x115)]),new Array()):[],this[_0x5dc762(0x111)](_0x5dc762(0x121),[]),this['on'](_0x5dc762(0xff),(_0x19142e,_0x2c2b34,_0x4ef7ed)=>{const _0x676a9b=_0x5dc762;this[_0x676a9b(0x11d)]&&(this[_0x676a9b(0x121)]=K(this[_0x676a9b(0x106)],_0x4ef7ed));}),this[_0x5dc762(0x111)](_0x5dc762(0x11a),!0x1),this['on'](_0x5dc762(0x10f),(_0x364aee,_0x144027,_0x4b521c)=>{const _0x5e650f=_0x5dc762;this[_0x5e650f(0x121)]=_0x4b521c?K(this[_0x5e650f(0x106)],this[_0x5e650f(0x11a)]):[];});}[_0x1d59e9(0x104)](){const _0x5dd394=_0x1d59e9,_0x3a8d38=this[_0x5dd394(0x11f)][_0x5dd394(0x107)];this[_0x5dd394(0x11a)]=function(_0x420d9d){const _0x25c1a4=_0x5dd394,_0x4748b7=_0x420d9d[_0x25c1a4(0x118)][_0x25c1a4(0x116)];return _0x4748b7[_0x25c1a4(0x11e)]?0x0!==[..._0x4748b7[_0x25c1a4(0x10a)]()][_0x25c1a4(0x114)]&&![..._0x4748b7[_0x25c1a4(0x10a)]()][0x0][_0x25c1a4(0x10b)]:!!_0x420d9d[_0x25c1a4(0x11c)](_0x4748b7[_0x25c1a4(0xfe)]());}(_0x3a8d38);const _0x155210=_0x3a8d38[_0x5dd394(0x118)][_0x5dd394(0x116)],_0x11914e=this[_0x5dd394(0x11f)][_0x5dd394(0x119)][_0x5dd394(0x10e)](_0x5dd394(0x125));for(const _0x22fb77 of _0x155210[_0x5dd394(0x128)]())for(const _0x5a27e3 of _0x22fb77[_0x5dd394(0xfc)]())if(_0x5a27e3['is'](_0x5dd394(0xfd))&&_0x11914e[_0x5dd394(0x109)](_0x5a27e3[_0x5dd394(0x110)]))return void(this[_0x5dd394(0x11d)]=!0x1);this[_0x5dd394(0x11d)]=!0x0;}[_0x1d59e9(0x10c)](_0x408c12='',_0xe308c8='',_0x3316bb=_0x1d59e9(0x112)){const _0x47e284=_0x1d59e9;this[_0x47e284(0x11f)][_0x47e284(0x108)][_0x47e284(0x10e)](_0x1e7e03)[_0x47e284(0x102)](_0x408c12,_0xe308c8,_0x3316bb);}}function K(_0x597c1f,_0x8688de){const _0x298182=_0x1d59e9,_0xd5099=new Set();for(const _0x29888d of _0x597c1f)(_0x8688de||!0x1===_0x29888d[_0x298182(0x120)])&&_0xd5099[_0x298182(0x124)](_0x29888d['id']);return Array[_0x298182(0x117)](_0xd5099);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x47646f,_0x26f4e3,_0x1e5040){const t=_0x47646f['t'];switch(_0x26f4e3){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',_0x1e5040);case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x1e5040);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x1e5040);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'},_0x1e5040);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 _0x26f4e3;}}
|