@ckeditor/ckeditor5-ai 0.0.0-nightly-20240410.0 → 0.0.0-nightly-20240411.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/README.md +1 -1
- package/build/ai.js +6 -6
- package/build/translations/es-co.js +1 -1
- package/lang/translations/es-co.po +53 -53
- package/package.json +4 -4
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.d.ts +1 -0
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.d.ts +3 -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
|
-
(function(
|
|
23
|
+
(function(_0x2ec635,_0x1d28d6){const _0x88f141=_0x443a,_0x16509f=_0x2ec635();while(!![]){try{const _0x11f8fc=-parseInt(_0x88f141(0x1b7))/0x1+parseInt(_0x88f141(0x1bb))/0x2+parseInt(_0x88f141(0x1b0))/0x3*(parseInt(_0x88f141(0x1b8))/0x4)+parseInt(_0x88f141(0x1bd))/0x5*(parseInt(_0x88f141(0x1b1))/0x6)+-parseInt(_0x88f141(0x1ae))/0x7+parseInt(_0x88f141(0x1bc))/0x8+parseInt(_0x88f141(0x1b2))/0x9*(parseInt(_0x88f141(0x1ba))/0xa);if(_0x11f8fc===_0x1d28d6)break;else _0x16509f['push'](_0x16509f['shift']());}catch(_0x5a0752){_0x16509f['push'](_0x16509f['shift']());}}}(_0x323b,0x79e68));function _0x323b(){const _0x2fc097=['ck-label','for','395879SrfjwM','20ZCRRXU','ck-editor__label_','780WRflWx','11440DEFEFE','2749208Tsrpnn','189925GbPoWz','2313829NercWe','set','479484Xrgptz','6tuhIsh','4527ohLqdZ','extendTemplate','bindTemplate'];_0x323b=function(){return _0x2fc097;};return _0x323b();}import{HighlightedTextView as _0x2fdca1}from'ckeditor5/src/ui.js';function _0x443a(_0x55bec2,_0x51f71e){const _0x323bfa=_0x323b();return _0x443a=function(_0x443a2c,_0x40059b){_0x443a2c=_0x443a2c-0x1ae;let _0x59da46=_0x323bfa[_0x443a2c];return _0x59da46;},_0x443a(_0x55bec2,_0x51f71e);}import{uid as _0x1d3f17}from'ckeditor5/src/utils.js';export default class S extends _0x2fdca1{constructor(){const _0x3b760a=_0x443a;super(),this[_0x3b760a(0x1af)](_0x3b760a(0x1b6),void 0x0);const _0x32e158=this[_0x3b760a(0x1b4)];this['id']=_0x3b760a(0x1b9)+_0x1d3f17(),this[_0x3b760a(0x1b3)]({'attributes':{'class':['ck',_0x3b760a(0x1b5)],'id':this['id'],'for':_0x32e158['to'](_0x3b760a(0x1b6))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x2f24b5=_0x44cb;function _0x2d85(){const _0x5e225f=['701952LUcvEl','setStartAfter','657348wKDhbi','text/html','wheel','remove','contentFieldView','_createLoader','ck-ai-form__content-area--processing','ck-ai-form__content-field','ClipboardItem','ck-ai-form__copy-button','ck-hidden','text/plain','body','scrollTo','execute','querySelector','<span>]</span>','class','\x20ck-ai-form__copy-button--copied','9pYZcEC','smooth','bind','ck-ai-form__content-area','56BqQZPy','isVisible','addRange','execCommand','getSelection','bindTemplate','left','53543CWZelM','absolute','icon','textContent','createElement','clipboard','lastElementChild','ck-content','AI\x20is\x20writing...','25166SlNZUa','copy','ck-ai-form__content-area-wrapper','write','element','697255meIGbm','8042UcHDfH','set','listenTo','position','render','locale','innerHTML','_copyHTMLToClipboard','focus','scrollHeight','.ck-ai-form__loader','ck-ai-form__loader','ck-reset_all-excluded','isEnabled','<span>[</span>','createRange','removeAllRanges','_createCopyButton','setContent','mousedown','-9999px','setTemplate','copyButtonView','setEndBefore','div','appendLoader','24NDleAs','change:value','isProcessing','check','value','style','appendChild','change:isProcessing','Copy','loaderView','ck-ai-form__copy-button-wrapper','2807510zBhoOy','firstElementChild'];_0x2d85=function(){return _0x5e225f;};return _0x2d85();}(function(_0x31c7e9,_0x4d9d81){const _0x52d623=_0x44cb,_0x2e330e=_0x31c7e9();while(!![]){try{const _0x5b6759=-parseInt(_0x52d623(0x107))/0x1+parseInt(_0x52d623(0x10d))/0x2*(-parseInt(_0x52d623(0x127))/0x3)+-parseInt(_0x52d623(0x136))/0x4+parseInt(_0x52d623(0x10c))/0x5+-parseInt(_0x52d623(0x134))/0x6+-parseInt(_0x52d623(0x154))/0x7*(-parseInt(_0x52d623(0x14d))/0x8)+-parseInt(_0x52d623(0x149))/0x9*(-parseInt(_0x52d623(0x132))/0xa);if(_0x5b6759===_0x4d9d81)break;else _0x2e330e['push'](_0x2e330e['shift']());}catch(_0x1f8e11){_0x2e330e['push'](_0x2e330e['shift']());}}}(_0x2d85,0x20faa));function _0x44cb(_0x4b34f5,_0x524831){const _0x2d851c=_0x2d85();return _0x44cb=function(_0x44cb6b,_0x1aad6e){_0x44cb6b=_0x44cb6b-0xff;let _0x23b296=_0x2d851c[_0x44cb6b];return _0x23b296;},_0x44cb(_0x4b34f5,_0x524831);}import{global as _0x432f07}from'ckeditor5/src/utils.js';import{View as _0x4f83bb,ButtonView as _0x171ffc,SpinnerView as _0x3596dd}from'ckeditor5/src/ui.js';import _0x58333e from'../../../theme/icons/copy.svg';import{getTranslation as _0xaa6936}from'../../utils/common-translations.js';import{icons as _0x4a1543}from'ckeditor5/src/core.js';export default class nt extends _0x4f83bb{constructor(_0xda1e3d,_0x14d484=''){const _0x5228b5=_0x44cb;super(_0xda1e3d),this[_0x5228b5(0x10e)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x75f39f=this[_0x5228b5(0x152)];this[_0x5228b5(0x13a)]=new ContentFieldView(_0xda1e3d,_0x14d484),this[_0x5228b5(0x123)]=this[_0x5228b5(0x11e)](),this[_0x5228b5(0x122)]({'tag':_0x5228b5(0x125),'attributes':{'class':['ck',_0x5228b5(0x109),_0x75f39f['if'](_0x5228b5(0x14e),_0x5228b5(0x140),_0x174ab4=>!_0x174ab4)],'tabindex':'-1'},'children':[{'tag':_0x5228b5(0x125),'attributes':{'class':['ck',_0x5228b5(0x14c),_0x75f39f['if'](_0x5228b5(0x129),_0x5228b5(0x13c))]},'children':[this[_0x5228b5(0x13a)],{'tag':_0x5228b5(0x125),'attributes':{'class':['ck',_0x5228b5(0x131)]},'children':[this[_0x5228b5(0x123)]]}]}]});}[_0x2f24b5(0x111)](){const _0x15b805=_0x2f24b5;super[_0x15b805(0x111)](),this[_0x15b805(0x12b)]&&this[_0x15b805(0x13a)][_0x15b805(0x11f)](this[_0x15b805(0x12b)]);let _0x1f2ab1=!0x1;this['on'](_0x15b805(0x128),(_0x2d3ee8,_0x18014f,_0x36d334)=>{const _0x3d16ab=_0x15b805,_0x496783=!this[_0x3d16ab(0x13a)][_0x3d16ab(0x10b)][_0x3d16ab(0x145)](_0x3d16ab(0x117));this[_0x3d16ab(0x13a)][_0x3d16ab(0x11f)](_0x36d334),this[_0x3d16ab(0x129)]&&_0x496783&&!_0x1f2ab1&&this[_0x3d16ab(0x10b)][_0x3d16ab(0x143)]({'top':this[_0x3d16ab(0x10b)][_0x3d16ab(0x116)],'behavior':_0x3d16ab(0x14a)});}),this['on'](_0x15b805(0x12e),(_0x4f1517,_0x111859,_0xdbcb80)=>{const _0x1b1d77=_0x15b805;_0x1f2ab1=!0x1,_0xdbcb80?(this[_0x1b1d77(0x12b)]=null,this[_0x1b1d77(0x13a)][_0x1b1d77(0x126)]()):this[_0x1b1d77(0x12b)]||this[_0x1b1d77(0x13a)][_0x1b1d77(0x11f)]('');}),this[_0x15b805(0x10f)](this[_0x15b805(0x10b)],_0x15b805(0x138),()=>{_0x1f2ab1=!0x0;}),this[_0x15b805(0x10f)](this[_0x15b805(0x10b)],_0x15b805(0x120),()=>{_0x1f2ab1=!0x0;});}[_0x2f24b5(0x115)](){const _0xced831=_0x2f24b5;this[_0xced831(0x10b)][_0xced831(0x115)]();}[_0x2f24b5(0x11e)](){const _0x4b68c5=_0x2f24b5,_0x2c8c41=this[_0x4b68c5(0x112)],_0x135dcd=new _0x171ffc(this[_0x4b68c5(0x112)]),_0x2cf802=_0x4b68c5(0x13f);return _0x135dcd[_0x4b68c5(0x10e)]({'label':_0xaa6936(_0x2c8c41,_0x4b68c5(0x12f)),'icon':_0x58333e,'class':_0x2cf802,'tooltip':!0x0}),_0x135dcd[_0x4b68c5(0x14b)](_0x4b68c5(0x14e))['to'](this,_0x4b68c5(0x12b),_0x13a154=>!!_0x13a154),_0x135dcd[_0x4b68c5(0x14b)](_0x4b68c5(0x11a))['to'](this,_0x4b68c5(0x129),_0x1b6df2=>!_0x1b6df2),_0x135dcd['on'](_0x4b68c5(0x144),()=>{const _0x2f4350=_0x4b68c5;this[_0x2f4350(0x114)](this[_0x2f4350(0x13a)][_0x2f4350(0x10b)]),_0x135dcd[_0x2f4350(0x100)]=_0x4a1543[_0x2f4350(0x12a)],_0x135dcd[_0x2f4350(0x147)]=_0x2cf802+_0x2f4350(0x148),this[_0x2f4350(0x115)](),setTimeout(()=>{const _0x3f6c00=_0x2f4350;_0x135dcd[_0x3f6c00(0x100)]=_0x58333e,_0x135dcd[_0x3f6c00(0x147)]=_0x2cf802;},0x3e8);}),_0x135dcd;}[_0x2f24b5(0x114)](_0x3a4cb7){const _0x4c7142=_0x2f24b5,{window:_0x5b8540,document:_0x14b5b1}=_0x432f07;if(_0x5b8540[_0x4c7142(0x13e)]){const {Blob:_0x3d3b7a,ClipboardItem:_0x267bcd}=_0x5b8540,_0x33dffe=[new _0x267bcd({'text/html':new _0x3d3b7a([_0x3a4cb7[_0x4c7142(0x113)]],{'type':_0x4c7142(0x137)}),'text/plain':new _0x3d3b7a([_0x3a4cb7[_0x4c7142(0x101)]||''],{'type':_0x4c7142(0x141)})})];navigator[_0x4c7142(0x103)][_0x4c7142(0x10a)](_0x33dffe);}else{const _0x260ae5=_0x14b5b1[_0x4c7142(0x102)](_0x4c7142(0x125));_0x260ae5[_0x4c7142(0x12c)][_0x4c7142(0x110)]=_0x4c7142(0xff),_0x260ae5[_0x4c7142(0x12c)][_0x4c7142(0x153)]=_0x4c7142(0x121),_0x260ae5[_0x4c7142(0x113)]=_0x4c7142(0x11b)+_0x3a4cb7[_0x4c7142(0x113)]+_0x4c7142(0x146),_0x14b5b1[_0x4c7142(0x142)][_0x4c7142(0x12d)](_0x260ae5);const _0x4187de=_0x14b5b1[_0x4c7142(0x11c)]();_0x4187de[_0x4c7142(0x135)](_0x260ae5[_0x4c7142(0x133)]),_0x4187de[_0x4c7142(0x124)](_0x260ae5[_0x4c7142(0x104)]);const _0x2a2880=_0x5b8540[_0x4c7142(0x151)]();_0x2a2880[_0x4c7142(0x11d)](),_0x2a2880[_0x4c7142(0x14f)](_0x4187de),_0x14b5b1[_0x4c7142(0x150)](_0x4c7142(0x108)),_0x260ae5[_0x4c7142(0x139)]();}}}export class ContentFieldView extends _0x4f83bb{constructor(_0x4b9764,_0x607f00=''){const _0x484fb8=_0x2f24b5;super(_0x4b9764),this[_0x484fb8(0x130)]=this[_0x484fb8(0x13b)](),this[_0x484fb8(0x122)]({'tag':_0x484fb8(0x125),'attributes':{'class':['ck',_0x484fb8(0x105),_0x607f00,_0x484fb8(0x119),_0x484fb8(0x13d)]}});}[_0x2f24b5(0x11f)](_0x51e37e){const _0x22d12b=_0x2f24b5;this[_0x22d12b(0x10b)][_0x22d12b(0x113)]=_0x51e37e;}[_0x2f24b5(0x126)](){const _0x3db2a5=_0x2f24b5;this[_0x3db2a5(0x10b)][_0x3db2a5(0x12d)](this[_0x3db2a5(0x130)][_0x3db2a5(0x10b)]);}[_0x2f24b5(0x13b)](){const _0x775801=_0x2f24b5,_0x414b48=new _0x4f83bb(),_0x43ddc3=this[_0x775801(0x112)],_0x4a29d2=new _0x3596dd();return _0x4a29d2[_0x775801(0x14e)]=!0x0,_0x414b48[_0x775801(0x122)]({'tag':_0x775801(0x125),'attributes':{'class':['ck',_0x775801(0x118)]},'children':[_0x4a29d2,{'text':_0xaa6936(_0x43ddc3,_0x775801(0x106))}]}),_0x414b48[_0x775801(0x111)](),_0x414b48;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0xa8c1c,_0x443147){const _0x4d2b49=_0x361a,_0x51afdb=_0xa8c1c();while(!![]){try{const _0x2a1594=-parseInt(_0x4d2b49(0xa6))/0x1*(parseInt(_0x4d2b49(0xae))/0x2)+-parseInt(_0x4d2b49(0xa7))/0x3+parseInt(_0x4d2b49(0x9f))/0x4+-parseInt(_0x4d2b49(0xa1))/0x5+-parseInt(_0x4d2b49(0xa8))/0x6*(-parseInt(_0x4d2b49(0xa2))/0x7)+-parseInt(_0x4d2b49(0xa0))/0x8*(-parseInt(_0x4d2b49(0xa3))/0x9)+parseInt(_0x4d2b49(0xad))/0xa;if(_0x2a1594===_0x443147)break;else _0x51afdb['push'](_0x51afdb['shift']());}catch(_0x3b716d){_0x51afdb['push'](_0x51afdb['shift']());}}}(_0x53da,0x51dc8));import{View as _0x390949,IconView as _0x3f43e8}from'ckeditor5/src/ui.js';function _0x53da(){const _0x25b292=['div','content','ck-ai-form__error','11302640PnTfpC','48226GmtLRP','set','1647168YMDcCU','16BVfBsB','1802780uRmDeP','7pqWPDt','805401ESoHsh','setTemplate','bindTemplate','20KFhTzp','1800588MPknDI','343692mqbkyV','text'];_0x53da=function(){return _0x25b292;};return _0x53da();}import _0x10e5c0 from'../../../theme/icons/error.svg';function _0x361a(_0x612dd7,_0x3ac02f){const _0x53da37=_0x53da();return _0x361a=function(_0x361aad,_0x48cfee){_0x361aad=_0x361aad-0x9e;let _0x36b1ba=_0x53da37[_0x361aad];return _0x36b1ba;},_0x361a(_0x612dd7,_0x3ac02f);}export default class mt extends _0x390949{constructor(_0x5dabd1,_0x138f19=''){const _0x2309a2=_0x361a;super(_0x5dabd1);const _0x14b1a5=new _0x3f43e8(),_0x48469a=this[_0x2309a2(0xa5)];this[_0x2309a2(0x9e)](_0x2309a2(0xa9),_0x138f19),_0x14b1a5[_0x2309a2(0xab)]=_0x10e5c0,this[_0x2309a2(0xa4)]({'tag':_0x2309a2(0xaa),'attributes':{'class':['ck',_0x2309a2(0xac)]},'children':[_0x14b1a5,{'text':_0x48469a['to'](_0x2309a2(0xa9))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x393164=_0x724a;function _0x3314(){const _0x328e91=['7EucNEV','focus','left','isOn','excludeScrollbarsAndBorders','133yrSzrR','minRows','fieldView','2770UXvnVp','174KUMlvz','children','75464YGqcnV','execute','enter','uiLanguageDirection','29790CVYhmQ','style','33374HcYhjL','fieldWrapperChildren','isEnabled','maxRows','_createSubmitButton','focusLast','ck-ai-form__toggle-history','resultsView','render','locale','_createShowHistoryButton','history','add','value','showHistoryButtonView','keystrokes','submitButtonView','target','2378270AJykmX','queryView','focusCycler','submit','bind','filteredView','ck-ai-form__submit','History','update','isVisible','element','810552MqIJdU','width','focusableChildren','15324PdzDHg','requestAnimationFrame','focusFirst','isEmpty','212638LWKqsu','set','Submit','window','right','1125HYElXP','fire','rtl'];_0x3314=function(){return _0x328e91;};return _0x3314();}(function(_0x342a0d,_0x12c0d8){const _0x4f4720=_0x724a,_0x3c8171=_0x342a0d();while(!![]){try{const _0x4a7fe8=parseInt(_0x4f4720(0x7a))/0x1*(parseInt(_0x4f4720(0xaf))/0x2)+-parseInt(_0x4f4720(0x83))/0x3*(-parseInt(_0x4f4720(0xab))/0x4)+-parseInt(_0x4f4720(0x9d))/0x5+-parseInt(_0x4f4720(0x89))/0x6*(parseInt(_0x4f4720(0x7f))/0x7)+parseInt(_0x4f4720(0x85))/0x8*(parseInt(_0x4f4720(0xb4))/0x9)+-parseInt(_0x4f4720(0x82))/0xa*(parseInt(_0x4f4720(0x8b))/0xb)+-parseInt(_0x4f4720(0xa8))/0xc;if(_0x4a7fe8===_0x12c0d8)break;else _0x3c8171['push'](_0x3c8171['shift']());}catch(_0x58506e){_0x3c8171['push'](_0x3c8171['shift']());}}}(_0x3314,0xa2fd3));import{Rect as _0x513856,global as _0xeabb23,isVisible as _0x123af4}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x2819fc,ButtonView as _0x29b194}from'ckeditor5/src/ui.js';import{icons as _0x673f4b}from'ckeditor5/src/core.js';import{getTranslation as _0xfe3d0a}from'../../utils/common-translations.js';import _0x3943a1 from'../../../theme/icons/submit.svg';function _0x724a(_0xb101f2,_0x3ad279){const _0x331452=_0x3314();return _0x724a=function(_0x724a74,_0x43e984){_0x724a74=_0x724a74-0x79;let _0x59f825=_0x331452[_0x724a74];return _0x59f825;},_0x724a(_0xb101f2,_0x3ad279);}export default class pt extends _0x2819fc{constructor(_0x1eb8ce,_0x58acca){const _0x48a1c1=_0x724a;super(_0x1eb8ce,_0x58acca),this[_0x48a1c1(0x9e)][_0x48a1c1(0x81)][_0x48a1c1(0x80)]=0x1,this[_0x48a1c1(0x9e)][_0x48a1c1(0x81)][_0x48a1c1(0x8e)]=0x3,this[_0x48a1c1(0x9b)]=this[_0x48a1c1(0x8f)](),this[_0x48a1c1(0x99)]=this[_0x48a1c1(0x95)](),this[_0x48a1c1(0xaa)][_0x48a1c1(0x97)](this[_0x48a1c1(0x99)],0x1),this[_0x48a1c1(0xaa)][_0x48a1c1(0x97)](this[_0x48a1c1(0x9b)]);}[_0x393164(0x93)](){const _0x31f933=_0x393164;super[_0x31f933(0x93)](),this[_0x31f933(0x9e)][_0x31f933(0x8c)][_0x31f933(0x97)](this[_0x31f933(0x99)]),this[_0x31f933(0x84)][_0x31f933(0x97)](this[_0x31f933(0x9b)]),this[_0x31f933(0x9a)][_0x31f933(0xb0)](_0x31f933(0x87),(_0x291a3c,_0x21ad42)=>{const _0x32ccdb=_0x31f933;_0x291a3c[_0x32ccdb(0x9c)]==this[_0x32ccdb(0x9e)][_0x32ccdb(0x81)][_0x32ccdb(0xa7)]&&(this[_0x32ccdb(0xa0)](),_0x21ad42());});}[_0x393164(0x8f)](){const _0x4e6d77=_0x393164,_0x560161=new _0x29b194(this[_0x4e6d77(0x94)]),_0x3a7caf=this[_0x4e6d77(0x94)];return _0x560161[_0x4e6d77(0xb0)]({'icon':_0x3943a1,'label':_0xfe3d0a(_0x3a7caf,_0x4e6d77(0xb1)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x4e6d77(0xa3)}),_0x560161['on'](_0x4e6d77(0x86),()=>{const _0x34e932=_0x4e6d77;this[_0x34e932(0xa0)]();}),_0x560161[_0x4e6d77(0xa1)](_0x4e6d77(0x8d))['to'](this[_0x4e6d77(0x9e)][_0x4e6d77(0x81)],_0x4e6d77(0xae),this,_0x4e6d77(0x8d),(_0xb50c62,_0x412fd6)=>!_0xb50c62&&_0x412fd6),_0x560161;}[_0x393164(0x95)](){const _0x4fab0e=_0x393164,_0x175130=new _0x29b194(this[_0x4fab0e(0x94)]),_0x52039c=this[_0x4fab0e(0x92)],_0x46749c=this[_0x4fab0e(0x94)];_0x175130[_0x4fab0e(0xb0)]({'label':_0xfe3d0a(_0x46749c,_0x4fab0e(0xa4)),'withText':!0x1,'icon':_0x673f4b[_0x4fab0e(0x96)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x4fab0e(0x91)}),_0x175130[_0x4fab0e(0xa1)](_0x4fab0e(0x7d))['to'](_0x52039c,_0x4fab0e(0xa6)),_0x175130[_0x4fab0e(0xa1)](_0x4fab0e(0x8d))['to'](this,_0x4fab0e(0x8d)),_0x175130['on'](_0x4fab0e(0x86),()=>{const _0x527578=_0x4fab0e;_0x52039c[_0x527578(0xa6)]=!_0x52039c[_0x527578(0xa6)],_0x52039c[_0x527578(0xa6)]?this[_0x527578(0xa2)][_0x527578(0x7b)]():this[_0x527578(0x7b)]();});const _0x4b9a0d=()=>{const _0x224e83=_0x4fab0e;_0xeabb23[_0x224e83(0xb2)][_0x224e83(0xac)](()=>{const _0x1573a1=_0x224e83;if(_0x123af4(this[_0x1573a1(0xa7)])){const _0x287aef=new _0x513856(this[_0x1573a1(0x9e)][_0x1573a1(0x81)][_0x1573a1(0xa7)]),_0x547ef1=_0x287aef[_0x1573a1(0xa9)],_0xbf986f=_0x1573a1(0x79)===_0x46749c[_0x1573a1(0x88)]?_0x1573a1(0x7c):_0x1573a1(0xb3);_0x287aef[_0x1573a1(0x7e)](),_0x175130[_0x1573a1(0xa7)][_0x1573a1(0x8a)][_0xbf986f]=_0x547ef1-_0x287aef[_0x1573a1(0xa9)]+0x1+'px';}});};return this[_0x4fab0e(0x9e)][_0x4fab0e(0x81)]['on'](_0x4fab0e(0xa5),_0x4b9a0d),this['on'](_0x4fab0e(0x93),_0x4b9a0d),_0x175130;}[_0x393164(0xa0)](){const _0x36c009=_0x393164,_0x26229e=this[_0x36c009(0x9e)][_0x36c009(0x81)][_0x36c009(0xa7)][_0x36c009(0x98)];this[_0x36c009(0xb5)](_0x36c009(0xa0),_0x26229e);}[_0x393164(0x7b)](_0xe40893){const _0x5db446=_0x393164;-0x1===_0xe40893?this[_0x5db446(0x9f)][_0x5db446(0x90)]():this[_0x5db446(0x9f)][_0x5db446(0xad)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4135b9=_0x297a;(function(_0x466e10,_0x2f8ef0){const _0x591b4c=_0x297a,_0x5130d9=_0x466e10();while(!![]){try{const _0x12960c=-parseInt(_0x591b4c(0x1a8))/0x1*(parseInt(_0x591b4c(0x1a5))/0x2)+-parseInt(_0x591b4c(0x1a9))/0x3*(-parseInt(_0x591b4c(0x1b5))/0x4)+parseInt(_0x591b4c(0x1ae))/0x5*(parseInt(_0x591b4c(0x1b0))/0x6)+-parseInt(_0x591b4c(0x1a4))/0x7+-parseInt(_0x591b4c(0x1ba))/0x8+parseInt(_0x591b4c(0x1ab))/0x9*(parseInt(_0x591b4c(0x1b3))/0xa)+-parseInt(_0x591b4c(0x1b8))/0xb*(-parseInt(_0x591b4c(0x1be))/0xc);if(_0x12960c===_0x2f8ef0)break;else _0x5130d9['push'](_0x5130d9['shift']());}catch(_0x18bdad){_0x5130d9['push'](_0x5130d9['shift']());}}}(_0x5592,0x9d898));function _0x5592(){const _0xebb7b0=['isVisible','19464aomKEb','REPLACE','items','stopButton','replace','addMany','set','Insert\x20below','Try\x20again','AI_','ck-hidden','toUpperCase','locale','3208765UVYCdk','833434sFajoo','insert','Stop','3AcynjT','6294reRDrP','extendTemplate','657GmqkWW','bindTemplate','_createButton','678990RoRghf','replaceButton','36ZeRnkZ','tryAgainButton','insertButton','49910EGgaHH','bind','2416hKkJDl','label','_CONTENT','5126jwgMFl','mainAction','6786856tWIVud','ck-button-action','ck-ai-form__toolbar'];_0x5592=function(){return _0xebb7b0;};return _0x5592();}import{ToolbarView as _0x1735dc,ButtonView as _0x5ac558}from'ckeditor5/src/ui.js';import{getTranslation as _0x44bc1e}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x4135b9(0x19b),'INSERT':_0x4135b9(0x1a6)};function _0x297a(_0x275bdd,_0x5a7fd8){const _0x55920f=_0x5592();return _0x297a=function(_0x297ad6,_0x1a551e){_0x297ad6=_0x297ad6-0x198;let _0x1e9c63=_0x55920f[_0x297ad6];return _0x1e9c63;},_0x297a(_0x275bdd,_0x5a7fd8);}export default class Tt extends _0x1735dc{constructor(_0x405d03){const _0x36f116=_0x4135b9;super(_0x405d03),this[_0x36f116(0x19d)](_0x36f116(0x1bd),!0x1),this[_0x36f116(0x19d)](_0x36f116(0x1b9),AIFormToolbarViewMainActionLabel[_0x36f116(0x198)]),this[_0x36f116(0x1af)]=this[_0x36f116(0x1ad)]('',_0x36f116(0x1bb)),this[_0x36f116(0x1af)][_0x36f116(0x1b4)](_0x36f116(0x1b6))['to'](this,_0x36f116(0x1b9),_0x20b3b2=>_0x44bc1e(_0x405d03,_0x36f116(0x1a0)+_0x20b3b2[_0x36f116(0x1a2)]()+_0x36f116(0x1b7))),this[_0x36f116(0x1b2)]=this[_0x36f116(0x1ad)](_0x44bc1e(_0x405d03,_0x36f116(0x19e))),this[_0x36f116(0x1b1)]=this[_0x36f116(0x1ad)](_0x44bc1e(_0x405d03,_0x36f116(0x19f))),this[_0x36f116(0x19a)]=this[_0x36f116(0x1ad)](_0x44bc1e(_0x405d03,_0x36f116(0x1a7)));const _0x499b5a=this[_0x36f116(0x1ac)];this[_0x36f116(0x1aa)]({'attributes':{'class':[_0x36f116(0x1bc),_0x499b5a['if'](_0x36f116(0x1bd),_0x36f116(0x1a1),_0x59f198=>!_0x59f198)]}}),this[_0x36f116(0x199)][_0x36f116(0x19c)]([this[_0x36f116(0x1af)],this[_0x36f116(0x1b2)],this[_0x36f116(0x1b1)],this[_0x36f116(0x19a)]]);}[_0x4135b9(0x1ad)](_0x455bab,_0x5b112c){const _0x149940=_0x4135b9,_0x40a44a=new _0x5ac558(this[_0x149940(0x1a3)]);return _0x40a44a[_0x149940(0x19d)]({'label':_0x455bab,'class':_0x5b112c||'','isVisible':!0x0,'withText':!0x0}),_0x40a44a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a615b=_0x3544;function _0x3544(_0x2e4f6b,_0x471b2d){const _0x1cb22b=_0x1cb2();return _0x3544=function(_0x354482,_0x3b7d9d){_0x354482=_0x354482-0x1f4;let _0xf4ffaa=_0x1cb22b[_0x354482];return _0xf4ffaa;},_0x3544(_0x2e4f6b,_0x471b2d);}(function(_0x399e91,_0x115018){const _0x536c62=_0x3544,_0x388e8b=_0x399e91();while(!![]){try{const _0x46d238=parseInt(_0x536c62(0x23f))/0x1+parseInt(_0x536c62(0x22c))/0x2*(-parseInt(_0x536c62(0x221))/0x3)+-parseInt(_0x536c62(0x203))/0x4+parseInt(_0x536c62(0x21e))/0x5*(parseInt(_0x536c62(0x1ff))/0x6)+parseInt(_0x536c62(0x235))/0x7+-parseInt(_0x536c62(0x215))/0x8+-parseInt(_0x536c62(0x1fd))/0x9*(-parseInt(_0x536c62(0x200))/0xa);if(_0x46d238===_0x115018)break;else _0x388e8b['push'](_0x388e8b['shift']());}catch(_0x14e2aa){_0x388e8b['push'](_0x388e8b['shift']());}}}(_0x1cb2,0x4a2f2));import{FocusTracker as _0x159e7c,KeystrokeHandler as _0x471481}from'ckeditor5/src/utils.js';import{View as _0x385218,FocusCycler as _0x2fb447,createLabeledTextarea as _0x76e578}from'ckeditor5/src/ui.js';import _0x52c48a,{AIFormToolbarViewMainActionLabel as _0x4342b7}from'./aiformtoolbarview.js';import _0x443754 from'./aiformcontentarea.js';import _0x52a7bc from'./aiformerrorview.js';import _0x298909 from'./aiformpromptview.js';import _0x16bcae from'./aihistorylistview.js';import _0x99f74d from'./aihistorylistitemview.js';import _0x17121a from'./prompthistory.js';import{getTranslation as _0x3349dc}from'../../utils/common-translations.js';import{escape as _0x40866d}from'lodash-es';export default class x extends _0x385218{constructor(_0x29bbfc,_0x5a2e55,_0x282988=''){const _0x38ab9b=_0x3544;super(_0x29bbfc),this[_0x38ab9b(0x230)](_0x38ab9b(0x211),!0x0),this[_0x38ab9b(0x230)](_0x38ab9b(0x20a),!0x1),this[_0x38ab9b(0x230)](_0x38ab9b(0x1f7),''),this[_0x38ab9b(0x230)](_0x38ab9b(0x23c),''),this[_0x38ab9b(0x230)](_0x38ab9b(0x20f),!0x1),this[_0x38ab9b(0x230)](_0x38ab9b(0x1fe),_0x4342b7[_0x38ab9b(0x241)]),this[_0x38ab9b(0x244)]=new _0x17121a(),this[_0x38ab9b(0x22a)]=new _0x52a7bc(_0x29bbfc),this[_0x38ab9b(0x236)]=new _0x443754(_0x29bbfc,_0x282988),this[_0x38ab9b(0x236)][_0x38ab9b(0x24b)](_0x38ab9b(0x20a))['to'](this),this[_0x38ab9b(0x236)][_0x38ab9b(0x24b)](_0x38ab9b(0x23c))['to'](this),this[_0x38ab9b(0x210)]=this[_0x38ab9b(0x223)](),this[_0x38ab9b(0x210)][_0x38ab9b(0x24b)](_0x38ab9b(0x1fe))['to'](this),this[_0x38ab9b(0x246)]=this[_0x38ab9b(0x1f6)](),this[_0x38ab9b(0x20e)]=new _0x159e7c(),this[_0x38ab9b(0x204)]=new _0x471481(),this[_0x38ab9b(0x243)]=this[_0x38ab9b(0x21d)]([this[_0x38ab9b(0x236)],this[_0x38ab9b(0x236)][_0x38ab9b(0x212)],this[_0x38ab9b(0x210)],this[_0x38ab9b(0x246)]]),this[_0x38ab9b(0x249)]=new _0x2fb447({'focusables':this[_0x38ab9b(0x243)],'focusTracker':this[_0x38ab9b(0x20e)],'keystrokeHandler':this[_0x38ab9b(0x204)],'actions':{'focusPrevious':_0x38ab9b(0x201),'focusNext':_0x38ab9b(0x205)}}),this[_0x38ab9b(0x246)][_0x38ab9b(0x249)]['on'](_0x38ab9b(0x214),_0x42d71a=>{const _0x257fa4=_0x38ab9b;this[_0x257fa4(0x249)][_0x257fa4(0x219)](),_0x42d71a[_0x257fa4(0x240)]();}),this[_0x38ab9b(0x246)][_0x38ab9b(0x249)]['on'](_0x38ab9b(0x207),_0x97f933=>{const _0x3f960a=_0x38ab9b;this[_0x3f960a(0x249)][_0x3f960a(0x1f4)](),_0x97f933[_0x3f960a(0x240)]();}),this[_0x38ab9b(0x246)][_0x38ab9b(0x21c)][_0x38ab9b(0x245)][_0x38ab9b(0x24b)](_0x38ab9b(0x23c))['to'](this,_0x38ab9b(0x1f7));const _0x27f322=this[_0x38ab9b(0x20b)];this[_0x38ab9b(0x224)]({'tag':_0x38ab9b(0x22b),'attributes':{'class':['ck',_0x38ab9b(0x24c),_0x5a2e55],'tabindex':'-1'},'children':[{'tag':_0x38ab9b(0x22b),'attributes':{'class':['ck',_0x38ab9b(0x21f)]},'children':[{'tag':_0x38ab9b(0x22b),'attributes':{'class':[_0x27f322['if'](_0x38ab9b(0x20f),_0x38ab9b(0x23a),_0x3da8af=>!_0x3da8af)]},'children':[this[_0x38ab9b(0x22a)]]},this[_0x38ab9b(0x236)],this[_0x38ab9b(0x210)],this[_0x38ab9b(0x246)]]}]});}[_0x4a615b(0x225)](){const _0x3d9074=_0x4a615b;super[_0x3d9074(0x225)](),this[_0x3d9074(0x20e)][_0x3d9074(0x209)](this[_0x3d9074(0x236)][_0x3d9074(0x233)]),this[_0x3d9074(0x20e)][_0x3d9074(0x209)](this[_0x3d9074(0x236)][_0x3d9074(0x212)][_0x3d9074(0x233)]),this[_0x3d9074(0x20e)][_0x3d9074(0x209)](this[_0x3d9074(0x210)][_0x3d9074(0x233)]),this[_0x3d9074(0x20e)][_0x3d9074(0x209)](this[_0x3d9074(0x246)][_0x3d9074(0x233)]),this[_0x3d9074(0x204)][_0x3d9074(0x24a)](this[_0x3d9074(0x233)]);}[_0x4a615b(0x21a)](_0x40b6a4=0x1){const _0x45c884=_0x4a615b;-0x1===_0x40b6a4?this[_0x45c884(0x249)][_0x45c884(0x22f)]():this[_0x45c884(0x249)][_0x45c884(0x23b)]();}[_0x4a615b(0x238)](){const _0x2e2183=_0x4a615b;this[_0x2e2183(0x1f7)]='',this[_0x2e2183(0x23c)]='',this[_0x2e2183(0x20f)]=!0x1,this[_0x2e2183(0x246)][_0x2e2183(0x238)](),this[_0x2e2183(0x236)][_0x2e2183(0x229)]=!0x1,this[_0x2e2183(0x210)][_0x2e2183(0x229)]=!0x1;}[_0x4a615b(0x1f6)](){const _0x5d19dc=_0x4a615b,_0x27d218=this[_0x5d19dc(0x242)],_0x1eb6e3=new _0x298909(_0x27d218,{'queryView':{'label':_0x3349dc(_0x27d218,_0x5d19dc(0x222)),'creator':_0x76e578,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x3349dc(_0x27d218,_0x5d19dc(0x220)),'secondary':_0x3349dc(_0x27d218,_0x5d19dc(0x231))}}},'filteredView':this[_0x5d19dc(0x1f9)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1eb6e3[_0x5d19dc(0x24b)](_0x5d19dc(0x211))['to'](this,_0x5d19dc(0x211),this,_0x5d19dc(0x20a),(_0x8133cb,_0x1e43ba)=>_0x8133cb&&!_0x1e43ba),this[_0x5d19dc(0x24a)](_0x1eb6e3,_0x5d19dc(0x1fb),(_0xb52cc3,_0x73ac91)=>{const _0xc363fc=_0x5d19dc;this[_0xc363fc(0x1f7)]=_0x73ac91;const _0x1a5cf9=_0x40866d(_0x73ac91);this[_0xc363fc(0x247)](_0xc363fc(0x232),_0x1a5cf9),_0x73ac91[_0xc363fc(0x1fa)]()&&this[_0xc363fc(0x244)][_0xc363fc(0x209)]({'prompt':_0x1a5cf9},0x0);},{'priority':_0x5d19dc(0x23d)}),_0x1eb6e3;}[_0x4a615b(0x1f9)](){const _0x1e99f5=_0x4a615b,_0x6689b=new _0x16bcae(this[_0x1e99f5(0x242)]);return _0x6689b[_0x1e99f5(0x21b)][_0x1e99f5(0x234)][_0x1e99f5(0x237)](this[_0x1e99f5(0x244)])['as'](_0x99f74d),_0x6689b['on'](_0x1e99f5(0x1f5),()=>{const _0x1010a2=_0x1e99f5;this[_0x1010a2(0x244)][_0x1010a2(0x217)](),this[_0x1010a2(0x246)][_0x1010a2(0x248)](''),this[_0x1010a2(0x246)][_0x1010a2(0x21a)]();}),_0x6689b;}[_0x4a615b(0x223)](){const _0x4ed3cd=_0x4a615b,_0x363e98=new _0x52c48a(this[_0x4ed3cd(0x242)]);return _0x363e98[_0x4ed3cd(0x213)][_0x4ed3cd(0x24b)](_0x4ed3cd(0x211))['to'](this,_0x4ed3cd(0x211),this,_0x4ed3cd(0x20a),this,_0x4ed3cd(0x23c),(_0x3e96d7,_0x55fcf8,_0x5a9b41)=>_0x3e96d7&&!_0x55fcf8&&!!_0x5a9b41),_0x363e98[_0x4ed3cd(0x213)][_0x4ed3cd(0x23e)](_0x4ed3cd(0x22d))['to'](this,_0x4ed3cd(0x239)),_0x363e98[_0x4ed3cd(0x202)][_0x4ed3cd(0x24b)](_0x4ed3cd(0x211))['to'](this,_0x4ed3cd(0x211),this,_0x4ed3cd(0x20a),this,_0x4ed3cd(0x23c),(_0x332e53,_0x569619,_0x4fe001)=>_0x332e53&&!_0x569619&&!!_0x4fe001),_0x363e98[_0x4ed3cd(0x202)][_0x4ed3cd(0x23e)](_0x4ed3cd(0x22d))['to'](this,_0x4ed3cd(0x22e)),_0x363e98[_0x4ed3cd(0x20c)][_0x4ed3cd(0x24b)](_0x4ed3cd(0x211))['to'](this,_0x4ed3cd(0x211),this,_0x4ed3cd(0x20a),(_0x75dec5,_0xeca807)=>_0x75dec5&&!_0xeca807),_0x363e98[_0x4ed3cd(0x20c)][_0x4ed3cd(0x23e)](_0x4ed3cd(0x22d))['to'](this,_0x4ed3cd(0x20d)),_0x363e98[_0x4ed3cd(0x226)][_0x4ed3cd(0x24b)](_0x4ed3cd(0x211))['to'](this,_0x4ed3cd(0x20a)),_0x363e98[_0x4ed3cd(0x226)][_0x4ed3cd(0x23e)](_0x4ed3cd(0x22d))['to'](this,_0x4ed3cd(0x228)),_0x363e98;}[_0x4a615b(0x1fc)](){const _0x35599b=_0x4a615b;this[_0x35599b(0x23c)]='',this[_0x35599b(0x20f)]=!0x1,this[_0x35599b(0x20a)]=!0x0,this[_0x35599b(0x236)][_0x35599b(0x229)]=!0x0,this[_0x35599b(0x210)][_0x35599b(0x229)]=!0x0,this[_0x35599b(0x236)][_0x35599b(0x21a)]();}[_0x4a615b(0x208)](){const _0x1d47f7=_0x4a615b,_0xf9299b=this[_0x1d47f7(0x242)];this[_0x1d47f7(0x20a)]=!0x1,this[_0x1d47f7(0x1f7)]='',this[_0x1d47f7(0x246)][_0x1d47f7(0x238)](),this[_0x1d47f7(0x23c)]&&(this[_0x1d47f7(0x246)][_0x1d47f7(0x21c)][_0x1d47f7(0x218)]=_0x3349dc(_0xf9299b,_0x1d47f7(0x216)));}[_0x4a615b(0x1f8)](_0x4846c8){const _0x2c4c70=_0x4a615b,_0x31bd40=this[_0x2c4c70(0x242)];this[_0x2c4c70(0x208)](),this[_0x2c4c70(0x20f)]=!0x0,this[_0x2c4c70(0x22a)][_0x2c4c70(0x206)]=_0x4846c8||_0x3349dc(_0x31bd40,_0x2c4c70(0x227)),this[_0x2c4c70(0x23c)]||(this[_0x2c4c70(0x236)][_0x2c4c70(0x229)]=!0x1);}}function _0x1cb2(){const _0x1fe05b=['search','focusCycler','listenTo','bind','ck-ai-form','focusPrevious','clearHistory','_createPromptView','prompt','handleError','_createHistoryView','trim','submit','startProcessing','8273637ZoJMZV','mainAction','71754cEcrHf','10SNnndJ','shift\x20+\x20tab','insertButton','979488FFZdis','keystrokes','tab','text','backwardCycle','finishProcessing','add','isProcessing','bindTemplate','tryAgainButton','tryAgainEvent','focusTracker','isError','toolbar','isEnabled','copyButtonView','replaceButton','forwardCycle','4283040NjfOkZ','Ask\x20AI\x20to\x20improve\x20generated\x20text','clear','label','focusNext','focus','historyGroupView','queryView','createCollection','5AxLXVJ','ck-ai-form-content','Empty\x20history','3AXRfyg','Ask\x20AI\x20to\x20edit\x20or\x20generate','_createToolbar','setTemplate','render','stopButton','AI_ERROR_FAILED','stopProcessing','isVisible','errorView','div','605908ahlAIw','execute','insertContentBelow','focusLast','set','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','submitPrompt','element','items','258118OJZKKS','contentArea','bindTo','reset','replaceContent','ck-hidden','focusFirst','value','high','delegate','418938Cytufw','stop','REPLACE','locale','_focusables','_promptHistory','fieldView','promptView','fire'];_0x1cb2=function(){return _0x1fe05b;};return _0x1cb2();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x501788,_0x52d801){const _0x5dc4cd=_0x432f,_0x6ef117=_0x501788();while(!![]){try{const _0x366742=parseInt(_0x5dc4cd(0xa0))/0x1+parseInt(_0x5dc4cd(0x91))/0x2*(parseInt(_0x5dc4cd(0x9c))/0x3)+parseInt(_0x5dc4cd(0x9a))/0x4+parseInt(_0x5dc4cd(0x95))/0x5+parseInt(_0x5dc4cd(0x90))/0x6*(-parseInt(_0x5dc4cd(0x98))/0x7)+-parseInt(_0x5dc4cd(0x99))/0x8*(-parseInt(_0x5dc4cd(0x96))/0x9)+-parseInt(_0x5dc4cd(0x93))/0xa*(parseInt(_0x5dc4cd(0x94))/0xb);if(_0x366742===_0x52d801)break;else _0x6ef117['push'](_0x6ef117['shift']());}catch(_0xe70136){_0x6ef117['push'](_0x6ef117['shift']());}}}(_0x3778,0xc6b1b));import{ListItemView as _0x34a1c7,ButtonView as _0x3acc08}from'ckeditor5/src/ui.js';function _0x432f(_0x3acb7c,_0x59df6a){const _0x3778f4=_0x3778();return _0x432f=function(_0x432fd1,_0x805ed9){_0x432fd1=_0x432fd1-0x8f;let _0x3b13a2=_0x3778f4[_0x432fd1];return _0x3b13a2;},_0x432f(_0x3acb7c,_0x59df6a);}import _0x373942 from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x4182bc}from'lodash-es';function _0x3778(){const _0x10c0d1=['5241200hzpMat','children','14055TVHVso','locale','set','prompt','1089211ycRNIH','add','35538ugMZYD','590xXbimU','fire','130cmijxr','4111734OTMACs','7862460pCdWss','1916811NodTsz','execute','378ajfmUz','24fFOhgC'];_0x3778=function(){return _0x10c0d1;};return _0x3778();}export default class hs extends _0x34a1c7{constructor(_0x433fb9){const _0x45f7d8=_0x432f;super();const _0x6afc97=new _0x373942(),_0x23d5fa=new _0x3acc08(this[_0x45f7d8(0x9d)],_0x6afc97);this[_0x45f7d8(0x9b)][_0x45f7d8(0x8f)](_0x23d5fa),_0x23d5fa[_0x45f7d8(0x9e)]({'label':_0x433fb9[_0x45f7d8(0x9f)],'withText':!0x0}),_0x23d5fa['on'](_0x45f7d8(0x97),()=>{const _0x26d448=_0x45f7d8;this[_0x26d448(0x92)](_0x26d448(0x97),{'value':_0x4182bc(_0x433fb9[_0x26d448(0x9f)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4f02(){const _0x252e85=['historyGroupView','fire','locale','_createClearHistoryButton','1688268zdoLDq','2139872LFCttz','246054gNIGup','length','delegate','1nwzsKG','44584oAQKqV','set','Clear','filter','children','193226WpqvwR','36LxYMkG','add','Prompt\x20history','clearHistoryButton','execute','clearHistory','287565sirOek','545793NZQfFm','items','label'];_0x4f02=function(){return _0x252e85;};return _0x4f02();}const _0x96bfb3=_0x37fc;function _0x37fc(_0x3aa722,_0xb52c59){const _0x4f0220=_0x4f02();return _0x37fc=function(_0x37fcd1,_0x18d274){_0x37fcd1=_0x37fcd1-0x134;let _0x30f3bd=_0x4f0220[_0x37fcd1];return _0x30f3bd;},_0x37fc(_0x3aa722,_0xb52c59);}(function(_0x19f7b4,_0x420798){const _0x1a79a0=_0x37fc,_0x5b802c=_0x19f7b4();while(!![]){try{const _0x2e67a4=-parseInt(_0x1a79a0(0x136))/0x1*(parseInt(_0x1a79a0(0x13c))/0x2)+parseInt(_0x1a79a0(0x144))/0x3+parseInt(_0x1a79a0(0x14b))/0x4+parseInt(_0x1a79a0(0x143))/0x5+parseInt(_0x1a79a0(0x14d))/0x6+-parseInt(_0x1a79a0(0x14c))/0x7+parseInt(_0x1a79a0(0x137))/0x8*(parseInt(_0x1a79a0(0x13d))/0x9);if(_0x2e67a4===_0x420798)break;else _0x5b802c['push'](_0x5b802c['shift']());}catch(_0x3c7ed4){_0x5b802c['push'](_0x5b802c['shift']());}}}(_0x4f02,0x4ebc7));import{ListView as _0x3a1a4b,ListItemGroupView as _0x290111,ButtonView as _0x49605b}from'ckeditor5/src/ui.js';import{getTranslation as _0x3be6}from'../../utils/common-translations.js';export default class rs extends _0x3a1a4b{constructor(_0xbd6563){const _0x5dc4f7=_0x37fc;super(_0xbd6563),this[_0x5dc4f7(0x140)]=this[_0x5dc4f7(0x14a)](),this[_0x5dc4f7(0x147)]=new _0x290111(),this[_0x5dc4f7(0x147)][_0x5dc4f7(0x13b)][_0x5dc4f7(0x13e)](this[_0x5dc4f7(0x140)],0x1),this[_0x5dc4f7(0x147)][_0x5dc4f7(0x146)]=_0x3be6(_0xbd6563,_0x5dc4f7(0x13f)),this[_0x5dc4f7(0x147)][_0x5dc4f7(0x145)][_0x5dc4f7(0x135)](_0x5dc4f7(0x141))['to'](this),this[_0x5dc4f7(0x145)][_0x5dc4f7(0x13e)](this[_0x5dc4f7(0x147)]);}[_0x96bfb3(0x13a)](){const _0x264c64=_0x96bfb3;let _0x329080=0x0;for(const _0x5f3555 of this[_0x264c64(0x145)])_0x329080+=_0x5f3555[_0x264c64(0x145)][_0x264c64(0x134)];return{'resultsCount':_0x329080,'totalItemsCount':_0x329080};}[_0x96bfb3(0x14a)](){const _0x53e645=_0x96bfb3,_0x5ed68f=this[_0x53e645(0x149)],_0x44a7ab=new _0x49605b(this[_0x53e645(0x149)]);return _0x44a7ab[_0x53e645(0x138)]({'label':'('+_0x3be6(_0x5ed68f,_0x53e645(0x139))+')','withText':!0x0}),_0x44a7ab['on'](_0x53e645(0x141),()=>this[_0x53e645(0x148)](_0x53e645(0x142))),_0x44a7ab;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1876(){const _0x1cf652=['addMany','1591398NvItxn','stringify','CKEditor/AIFormView/PromptHistory','_loadFromSessionStorage','12mddwSO','1462290ORIEQx','prompt','8UdseZI','12AGWrJK','toLowerCase','1858180aKTzBk','687876avnFiX','map','last','4DZjynT','add','28192373fOSluY','7287363JvjChA','setItem','79305XrBEqg','parse','trim','length','remove','getItem','_saveToSessionStorage'];_0x1876=function(){return _0x1cf652;};return _0x1876();}const _0x349f8a=_0x15da;(function(_0x192bf9,_0x1fe5b0){const _0x471ca8=_0x15da,_0x21705a=_0x192bf9();while(!![]){try{const _0x169443=-parseInt(_0x471ca8(0x1eb))/0x1*(parseInt(_0x471ca8(0x1f7))/0x2)+-parseInt(_0x471ca8(0x1f3))/0x3+-parseInt(_0x471ca8(0x201))/0x4*(parseInt(_0x471ca8(0x1f8))/0x5)+parseInt(_0x471ca8(0x1fb))/0x6*(parseInt(_0x471ca8(0x1fe))/0x7)+parseInt(_0x471ca8(0x1fa))/0x8*(-parseInt(_0x471ca8(0x1e9))/0x9)+-parseInt(_0x471ca8(0x1fd))/0xa+parseInt(_0x471ca8(0x1e8))/0xb;if(_0x169443===_0x1fe5b0)break;else _0x21705a['push'](_0x21705a['shift']());}catch(_0x3e4986){_0x21705a['push'](_0x21705a['shift']());}}}(_0x1876,0x71930));import{Collection as _0x229d11}from'ckeditor5/src/utils.js';const cs=_0x349f8a(0x1f5);function _0x15da(_0x2579cc,_0x50d8e4){const _0x18763b=_0x1876();return _0x15da=function(_0x15da8a,_0x1598ad){_0x15da8a=_0x15da8a-0x1e7;let _0x44f94d=_0x18763b[_0x15da8a];return _0x44f94d;},_0x15da(_0x2579cc,_0x50d8e4);}export default class os extends _0x229d11{constructor(){const _0x299fcb=_0x349f8a;super(),this[_0x299fcb(0x1f6)](),this['on'](_0x299fcb(0x1e7),(_0x48c2e2,_0x407fbf)=>{const _0x1a4797=_0x299fcb,_0x28f00c=Ss(_0x407fbf[_0x1a4797(0x1f9)]);for(const _0x2285d4 of this)if(_0x2285d4!=_0x407fbf&&Ss(_0x2285d4[_0x1a4797(0x1f9)])===_0x28f00c){this[_0x1a4797(0x1ef)](_0x2285d4);break;}this[_0x1a4797(0x1ee)]>0x14&&this[_0x1a4797(0x1ef)](this[_0x1a4797(0x200)]),this[_0x1a4797(0x1f1)]();}),this['on'](_0x299fcb(0x1ef),()=>{const _0x669faa=_0x299fcb;this[_0x669faa(0x1f1)]();});}[_0x349f8a(0x1f6)](){const _0x2bf189=_0x349f8a,_0x54c7b3=sessionStorage[_0x2bf189(0x1f0)](cs)||'[]';this[_0x2bf189(0x1f2)](JSON[_0x2bf189(0x1ec)](_0x54c7b3));}[_0x349f8a(0x1f1)](){const _0x47977e=_0x349f8a;sessionStorage[_0x47977e(0x1ea)](cs,JSON[_0x47977e(0x1f4)](this[_0x47977e(0x1ff)](_0x499a82=>_0x499a82)));}}function Ss(_0x36b534){const _0x4e9636=_0x349f8a;return _0x36b534[_0x4e9636(0x1fc)]()[_0x4e9636(0x1ed)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x34b152=_0x4359;(function(_0x41fb35,_0x3eeb31){const _0x39b3dd=_0x4359,_0x1711fc=_0x41fb35();while(!![]){try{const _0x1e27f5=parseInt(_0x39b3dd(0xe2))/0x1+-parseInt(_0x39b3dd(0xca))/0x2*(-parseInt(_0x39b3dd(0xe8))/0x3)+-parseInt(_0x39b3dd(0xcb))/0x4+-parseInt(_0x39b3dd(0xbf))/0x5+parseInt(_0x39b3dd(0xc1))/0x6*(parseInt(_0x39b3dd(0xc9))/0x7)+-parseInt(_0x39b3dd(0xe3))/0x8+parseInt(_0x39b3dd(0xe6))/0x9*(parseInt(_0x39b3dd(0xe7))/0xa);if(_0x1e27f5===_0x3eeb31)break;else _0x1711fc['push'](_0x1711fc['shift']());}catch(_0x11d97a){_0x1711fc['push'](_0x1711fc['shift']());}}}(_0x4c31,0xd65fd));import{Command as _0x1ffd66}from'ckeditor5/src/core.js';function _0x4c31(){const _0x18ed72=['includes','28lALQUg','497224momPWh','1310588jGYjDU','getRanges','change:isEnabled','selection','_commandDefinitions','from','length','concat','custom','getFirstRange','element','editor','model','enabledCommandsIds','refresh','get','reduce','getItems','showUI','config','set','add','_hasContext','1531928zSEUGx','9508568wTskLP','getSelectedBlocks','document','963eZxslz','41330qmPkxp','18blxBXG','name','isCollapsed','requiresContent','isEnabled','7394720RlzWDY','change:_hasContext','611112HXboUU','plugins','execute','commands','ai.aiAssistant.disabledElements','hasContent','isEmpty'];_0x4c31=function(){return _0x18ed72;};return _0x4c31();}import _0x208054 from'../aiassistantui.js';export default class j extends _0x1ffd66{constructor(_0x178991,_0x2feab1){const _0x3bac99=_0x4359;super(_0x178991),this[_0x3bac99(0xcf)]=_0x2feab1?_0x2feab1[_0x3bac99(0xdb)]((_0x1f821b,_0x2fdccb)=>_0x1f821b[_0x3bac99(0xd2)](_0x2fdccb[_0x3bac99(0xc4)]),new Array()):[],this[_0x3bac99(0xdf)](_0x3bac99(0xd8),[]),this['on'](_0x3bac99(0xc0),(_0x395b21,_0x5a4963,_0xd2d77b)=>{const _0x16a09c=_0x3bac99;this[_0x16a09c(0xbe)]&&(this[_0x16a09c(0xd8)]=G(this[_0x16a09c(0xcf)],_0xd2d77b));}),this[_0x3bac99(0xdf)](_0x3bac99(0xe1),!0x1),this['on'](_0x3bac99(0xcd),(_0x5206b1,_0x4276fc,_0x4a63b2)=>{const _0x268470=_0x3bac99;this[_0x268470(0xd8)]=_0x4a63b2?G(this[_0x268470(0xcf)],this[_0x268470(0xe1)]):[];});}[_0x34b152(0xd9)](){const _0x2b640d=_0x34b152,_0x5ded04=this[_0x2b640d(0xd6)][_0x2b640d(0xd7)];this[_0x2b640d(0xe1)]=function(_0x265e74){const _0x4f8beb=_0x2b640d,_0x39d7c7=_0x265e74[_0x4f8beb(0xe5)][_0x4f8beb(0xce)];return _0x39d7c7[_0x4f8beb(0xbc)]?0x0!==[..._0x39d7c7[_0x4f8beb(0xe4)]()][_0x4f8beb(0xd1)]&&![..._0x39d7c7[_0x4f8beb(0xe4)]()][0x0][_0x4f8beb(0xc7)]:!!_0x265e74[_0x4f8beb(0xc6)](_0x39d7c7[_0x4f8beb(0xd4)]());}(_0x5ded04);const _0x3ae78e=_0x5ded04[_0x2b640d(0xe5)][_0x2b640d(0xce)],_0x4e3963=this[_0x2b640d(0xd6)][_0x2b640d(0xde)][_0x2b640d(0xda)](_0x2b640d(0xc5));for(const _0x4ddc03 of _0x3ae78e[_0x2b640d(0xcc)]())for(const _0x3fbc23 of _0x4ddc03[_0x2b640d(0xdc)]())if(_0x3fbc23['is'](_0x2b640d(0xd5))&&_0x4e3963[_0x2b640d(0xc8)](_0x3fbc23[_0x2b640d(0xbb)]))return void(this[_0x2b640d(0xbe)]=!0x1);this[_0x2b640d(0xbe)]=!0x0;}[_0x34b152(0xc3)](_0x80b5ad='',_0x228039='',_0x51221e=_0x34b152(0xd3)){const _0x4d82bf=_0x34b152;this[_0x4d82bf(0xd6)][_0x4d82bf(0xc2)][_0x4d82bf(0xda)](_0x208054)[_0x4d82bf(0xdd)](_0x80b5ad,_0x228039,_0x51221e);}}function _0x4359(_0x1b5701,_0x85b5e6){const _0x4c3153=_0x4c31();return _0x4359=function(_0x43591a,_0x2deda7){_0x43591a=_0x43591a-0xbb;let _0xe6257=_0x4c3153[_0x43591a];return _0xe6257;},_0x4359(_0x1b5701,_0x85b5e6);}function G(_0x389444,_0x5944f8){const _0x165e5f=_0x34b152,_0x47507e=new Set();for(const _0xf02a54 of _0x389444)(_0x5944f8||!0x1===_0xf02a54[_0x165e5f(0xbd)])&&_0x47507e[_0x165e5f(0xe0)](_0xf02a54['id']);return Array[_0x165e5f(0xd0)](_0x47507e);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x22be84,_0x30a2ce,_0x2324f5){const t=_0x22be84['t'];switch(_0x30a2ce){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',_0x2324f5);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'},_0x2324f5);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 _0x30a2ce;}}
|