@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250913.0 → 0.0.0-nightly-20250914.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/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x22eeaf,ObservableMixin as _0x239699}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x30fd7d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x54895e}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x15797c}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x464874}from'../../utils/uploadutils.js';import{getImageUrls as _0x300a67,getImageDimension as _0x5d7c6c}from'../../utils/editingutils.js';import{isAncestor as _0x47a861}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x239699(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4b03a5,_0xf601ae,_0x5c670e){super(),this['_editor']=_0x4b03a5,this['_dialog']=_0xf601ae,this['_imageElement']=_0x5c670e,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x3a5c5c=this['_imageElement'],_0xa849b0=_0x3a5c5c['getAttribute']('uploadcareImageId'),_0x469314=_0x3a5c5c['getAttribute']('src');if(_0xa849b0)await this['_loadImageInfo'](_0xa849b0,_0x469314);else{if(this['_imageCache']['has'](_0x469314)){const _0x409ffd=this['_imageCache']['get'](_0x469314);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x409ffd['url'],this['imageDimension']=_0x409ffd['dimension'],this['imageId']=_0x409ffd['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xded998}=this['_editor'],t=_0xded998['t'],_0x27c385=new _0x15797c(_0xded998,this['imageStatus'],this['_attributes']);_0x27c385['bind']('status')['to'](this,'imageStatus'),_0x27c385['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x27c385['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x27c385['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x27c385,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x54895e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x27c385,'position':_0x30fd7d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x27c385['focus']();},'onHide':()=>{_0x27c385['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4c1d9e=>!_0x47a861(_0x4c1d9e,_0x27c385['element'])}});}['_loadImageInfo'](_0x1c26ff,_0x39b1a2){return _0x464874['getInfo'](_0x1c26ff,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x53cfab=>{const {width:_0x484f83,height:_0x308dd3}=_0x53cfab['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x39b1a2,this['imageDimension']={'width':_0x484f83,'height':_0x308dd3},this['imageId']=_0x1c26ff;})['catch'](_0x1365a6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1365a6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x30c676,_0x2d6aca){return this['_getImageAsFile'](_0x30c676)['then'](_0x33658e=>_0x464874['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2d6aca['signal'],'file':_0x33658e,'onProgress':_0x3614bb=>{_0x3614bb&&_0x3614bb['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3614bb['value']));}}))['then'](_0x32926b=>{const {width:_0x9f454d,height:_0x60a087}=_0x32926b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32926b['cdnUrl'],this['imageDimension']={'width':_0x9f454d,'height':_0x60a087},this['imageId']=_0x32926b['uuid'],this['imageUploadProgress']=null;const _0x509bc0=_0x30c676['getAttribute']('src');this['_imageCache']['set'](_0x509bc0,{'id':_0x32926b['uuid'],'url':_0x32926b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x44d8df=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x44d8df['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4fd752,_0x316297){_0x4fd752['on']('apply',(_0x44864d,_0x8d5936)=>{this['_replaceImage'](_0x316297,_0x8d5936['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4fd752['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4fd752['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x462ba3,_0x25b5e4,_0x15d6b5){const _0x2115ba=this['_editor'],{width:_0x40283c,height:_0x1da60a}=_0x5d7c6c(_0x25b5e4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1a9795,imageSources:_0x1265d1}=_0x300a67(_0x25b5e4,_0x40283c);_0x2115ba['model']['change'](_0x30522a=>{if('$graveyard'===_0x462ba3['root']['rootName']){_0x2115ba['execute']('insertImage',{'imageType':_0x462ba3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x462ba3['getAttributes']()),'uploadcareImageId':_0x15d6b5,'src':_0x1a9795,'sources':_0x1265d1,'width':_0x40283c,'height':_0x1da60a}});const _0x182da6=_0x462ba3['getChildren']();_0x462ba3=_0x2115ba['model']['document']['selection']['getSelectedElement']();for(const _0x3cdcc9 of _0x182da6)_0x30522a['append'](_0x30522a['cloneElement'](_0x3cdcc9),_0x462ba3);}else _0x30522a['setSelection'](_0x462ba3,'on'),_0x2115ba['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x462ba3['getAttributes']()),'uploadcareImageId':_0x15d6b5,'src':_0x1a9795,'sources':_0x1265d1,'width':_0x40283c,'height':_0x1da60a},_0x462ba3);_0x30522a['setSelection'](_0x462ba3,'on');});}async['_getImageAsFile'](_0x16c0ac){const _0x584be0=_0x22eeaf['window'],_0x29e33d=_0x22eeaf['document']['location']['href'],_0x19ce0e=new _0x584be0['URL'](_0x16c0ac['getAttribute']('src'),_0x29e33d);if('data:'===_0x19ce0e['protocol']){const _0x2a0772=_0x19ce0e['href']['split'](','),_0x32667b=_0x2a0772[0x0]['match'](/:(.*?);/)[0x1],_0x36c5e6=_0x32667b['split']('/')[0x1],_0x2638b1=_0x584be0['atob'](_0x2a0772[_0x2a0772['length']-0x1]);let _0x3845a7=_0x2638b1['length'];const _0x3dadd4=new _0x584be0['Uint8Array'](_0x3845a7);for(;_0x3845a7--;)_0x3dadd4[_0x3845a7]=_0x2638b1['charCodeAt'](_0x3845a7);return new _0x584be0['File']([_0x3dadd4],'image.'+_0x36c5e6,{'type':_0x32667b});}const _0x14e56b=_0x19ce0e['href']['split']('/'),_0x53bfc7=_0x14e56b[_0x14e56b['length']-0x1],_0x4b8537=_0x53bfc7['split']('.')[0x1];return _0x584be0['fetch'](_0x19ce0e['href'])['then'](_0x19caff=>_0x19caff['clone']()['blob']())['then'](_0x26385b=>new _0x584be0['File']([_0x26385b],_0x53bfc7,{'type':'image/'+_0x4b8537}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x10f408,_0x5b12f9){const _0x1b25a7=_0x1734,_0x134619=_0x10f408();while(!![]){try{const _0x45b1f7=parseInt(_0x1b25a7(0x135))/0x1*(parseInt(_0x1b25a7(0x13a))/0x2)+-parseInt(_0x1b25a7(0x13d))/0x3*(parseInt(_0x1b25a7(0x129))/0x4)+parseInt(_0x1b25a7(0x12f))/0x5*(parseInt(_0x1b25a7(0x136))/0x6)+parseInt(_0x1b25a7(0x139))/0x7*(-parseInt(_0x1b25a7(0x130))/0x8)+parseInt(_0x1b25a7(0x138))/0x9*(-parseInt(_0x1b25a7(0x12b))/0xa)+-parseInt(_0x1b25a7(0x134))/0xb*(-parseInt(_0x1b25a7(0x13c))/0xc)+parseInt(_0x1b25a7(0x13b))/0xd;if(_0x45b1f7===_0x5b12f9)break;else _0x134619['push'](_0x134619['shift']());}catch(_0x223e4d){_0x134619['push'](_0x134619['shift']());}}}(_0x56e4,0x447a9));function _0x1734(_0x3d2fa1,_0x2073e9){const _0x56e4e5=_0x56e4();return _0x1734=function(_0x17345d,_0x6e8128){_0x17345d=_0x17345d-0x129;let _0x569109=_0x56e4e5[_0x17345d];return _0x569109;},_0x1734(_0x3d2fa1,_0x2073e9);}import{View as _0x3858b8}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x3858b8{constructor(_0x4625e2,_0x55459b){const _0x2574e1=_0x1734;super(_0x4625e2);const _0x28927b=this[_0x2574e1(0x12c)];this[_0x2574e1(0x12d)](_0x2574e1(0x132),''),this[_0x2574e1(0x137)]({'tag':_0x2574e1(0x133),'attributes':{..._0x55459b,'class':[_0x2574e1(0x12e),_0x2574e1(0x131)],'ctx-name':_0x2574e1(0x12a),'cdn-url':_0x28927b['to'](_0x2574e1(0x132))}});}}function _0x56e4(){const _0x520744=['210KLKtud','setTemplate','5553hIpjZn','2267258pUcUlu','4514XBlThA','5746806wCBJjL','6682464RZmVDi','2547YQVWRE','504pWkpEE','image-edit','8230cIYEbu','bindTemplate','set','uc-light','27590sxhfqj','8MnyFWK','ck-uploadcare-theme','imageSrc','uc-cloud-image-editor','11JQEJCw','12BBRwtk'];_0x56e4=function(){return _0x520744;};return _0x56e4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x3ed6dd}from'ckeditor5/src/icons.js';import{ButtonView as _0x204c6b,IconView as _0x3c3a03,View as _0x405522}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x405522{constructor(_0x22fc91){super(_0x22fc91);const t=_0x22fc91['t'];this['set']('errorType',null);const _0x368df8=new _0x204c6b(_0x22fc91);_0x368df8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x368df8['withText']=!0x0,_0x368df8['class']='ck-button-action',_0x368df8['on']('execute',()=>{this['fire']('retry');}),_0x368df8['bind']('isVisible')['to'](this,'errorType',_0x2fee8b=>'NotFound'!==_0x2fee8b);const _0x247497=new _0x3c3a03();_0x247497['content']=_0x3ed6dd,_0x247497['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1de782=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x247497,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1de782['to']('errorType',_0x2e735f=>t('NotFound'!==_0x2e735f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x368df8]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{SpinnerView as
|
|
23
|
+
import{SpinnerView as _0x460a0f,View as _0x8250}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x8250{constructor(_0x44da03){super(_0x44da03);const t=_0x44da03['t'],_0x4f4fdd=this['bindTemplate'],_0x2d34d6=new _0x460a0f();_0x2d34d6['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x2d34d6,{'text':_0x4f4fdd['to']('imageUploadProgress',_0x552c9e=>t('Loading\x20image...')+'\x20('+(_0x552c9e||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2067f5=_0x5128;(function(_0xfb0fab,_0x297bea){const _0x9ca01d=_0x5128,_0xa7b511=_0xfb0fab();while(!![]){try{const _0x7bf012=parseInt(_0x9ca01d(0x9c))/0x1+-parseInt(_0x9ca01d(0xb6))/0x2*(parseInt(_0x9ca01d(0xb1))/0x3)+-parseInt(_0x9ca01d(0xc2))/0x4+parseInt(_0x9ca01d(0x9e))/0x5*(parseInt(_0x9ca01d(0xc4))/0x6)+parseInt(_0x9ca01d(0xc3))/0x7*(-parseInt(_0x9ca01d(0xcf))/0x8)+parseInt(_0x9ca01d(0xa8))/0x9+-parseInt(_0x9ca01d(0xaf))/0xa*(-parseInt(_0x9ca01d(0xac))/0xb);if(_0x7bf012===_0x297bea)break;else _0xa7b511['push'](_0xa7b511['shift']());}catch(_0x43b7b8){_0xa7b511['push'](_0xa7b511['shift']());}}}(_0x321e,0x74b9b));import{View as _0x5b68ed}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1acb05}from'./uploadcareimageeditformloadingview.js';function _0x5128(_0x39932f,_0x377424){const _0x321ee7=_0x321e();return _0x5128=function(_0x5128d2,_0x21533a){_0x5128d2=_0x5128d2-0x9c;let _0x14e4c9=_0x321ee7[_0x5128d2];return _0x14e4c9;},_0x5128(_0x39932f,_0x377424);}import{UploadcareImageEditFormErrorView as _0x2d9100}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x40008c}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3c32e8}from'../../utils/dialogfocusmanagerview.js';function _0x321e(){const _0x259668=['set','status','addedNodes','ck-uploadcare-form','retry','render','add','observe','8224zFZiNw','_editingView','createCollection','setTemplate','_setView','489775WuePaZ','once','1527970QHnpzU','ready','fire','_waitForImageEditorComponent','uploading','cancel','ck-reset_all-excluded','_items','filter','focus','1243179NlKpZk','element','addEventListener','error','3509DcQZRa','change:status','detail','61850pYfVAG','_addErrorViewListeners','507udoLYk','_loadingView','apply','cdnUrl','clear','9970THnFTZ','toLowerCase','div','target','getFocusableElement','nodeName','length','uc-cloud-image-editor','_focusableView','addMany','disconnect','_addUploadcareImageEditorListeners','3066508MpwZHK','5579LKZkAg','6FQwtpP','_errorView','querySelector'];_0x321e=function(){return _0x259668;};return _0x321e();}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x3c32e8{[_0x2067f5(0xa5)];[_0x2067f5(0xb2)];[_0x2067f5(0xc5)];[_0x2067f5(0xd0)];[_0x2067f5(0xbe)];constructor(_0x4de3c5,_0x5675c9,_0x3b78a3){const _0x4fb453=_0x2067f5;super(_0x4de3c5),this[_0x4fb453(0xa5)]=this[_0x4fb453(0xd1)](),this[_0x4fb453(0xb2)]=new _0x1acb05(_0x4de3c5),this[_0x4fb453(0xc5)]=new _0x2d9100(_0x4de3c5),this[_0x4fb453(0xd0)]=new _0x40008c(_0x4de3c5,_0x3b78a3),this[_0x4fb453(0xbe)]=new _0x5b68ed(_0x4de3c5),this[_0x4fb453(0xbe)][_0x4fb453(0xd2)](this[_0x4fb453(0xba)]()),this[_0x4fb453(0xc7)](_0x4fb453(0xc8),_0x5675c9),this[_0x4fb453(0xd2)]({'tag':_0x4fb453(0xb8),'attributes':{'class':['ck',_0x4fb453(0xa4),_0x4fb453(0xca)],'tabindex':'-1'},'children':this[_0x4fb453(0xa5)]}),this[_0x4fb453(0xd3)](),this[_0x4fb453(0x9d)](_0x4fb453(0xcc),()=>{const _0x5ecbde=_0x4fb453;this[_0x5ecbde(0xa1)](this[_0x5ecbde(0xa9)],_0x2fface=>{const _0x2e9eb5=_0x5ecbde;this[_0x2e9eb5(0xc1)](_0x2fface);});}),this['on'](_0x4fb453(0xad),()=>{const _0x191397=_0x4fb453;this[_0x191397(0xd3)]();}),this[_0x4fb453(0xb0)]();}[_0x2067f5(0xa7)](){const _0x564f82=_0x2067f5;this[_0x564f82(0xa9)][_0x564f82(0xa7)]();}[_0x2067f5(0xd3)](){const _0x5bf66e=_0x2067f5;switch(this[_0x5bf66e(0xa5)][_0x5bf66e(0xb5)](),this[_0x5bf66e(0xc8)]){case _0x5bf66e(0xa2):this[_0x5bf66e(0xa5)][_0x5bf66e(0xcd)](this[_0x5bf66e(0xb2)]);break;case _0x5bf66e(0xab):this[_0x5bf66e(0xa5)][_0x5bf66e(0xcd)](this[_0x5bf66e(0xc5)]);break;case _0x5bf66e(0x9f):this[_0x5bf66e(0xa5)][_0x5bf66e(0xbf)]([this[_0x5bf66e(0xd0)],this[_0x5bf66e(0xbe)]]);}}[_0x2067f5(0xa1)](_0x452c25,_0xe77a04){const _0x5ad3d4=_0x2067f5,_0x546e3e=_0x5ad3d4(0xbd),_0x2151e2=_0x452c25[_0x5ad3d4(0xc6)](_0x546e3e);if(_0x2151e2)return _0xe77a04(_0x2151e2);const _0x34c7d7=new MutationObserver(_0x1ac1e0=>{const _0x5abc65=_0x5ad3d4,_0x29dc92=_0x1ac1e0[_0x5abc65(0xa6)](_0x5438cd=>_0x5438cd[_0x5abc65(0xb9)]===_0x452c25&&_0x5438cd[_0x5abc65(0xc9)][_0x5abc65(0xbc)]>0x0&&_0x5438cd[_0x5abc65(0xc9)][0x0][_0x5abc65(0xbb)][_0x5abc65(0xb7)]()===_0x546e3e);_0x29dc92[_0x5abc65(0xbc)]&&(_0x34c7d7[_0x5abc65(0xc0)](),_0xe77a04(_0x29dc92[0x0][_0x5abc65(0xc9)][0x0]));});_0x34c7d7[_0x5ad3d4(0xce)](_0x452c25,{'childList':!0x0,'subtree':!0x0});}[_0x2067f5(0xc1)](_0x478c8c){const _0x417c21=_0x2067f5;_0x478c8c[_0x417c21(0xaa)](_0x417c21(0xb3),_0x596ab3=>{const _0x3d0b0f=_0x417c21;this[_0x3d0b0f(0xa0)](_0x3d0b0f(0xb3),{'imageSrc':_0x596ab3[_0x3d0b0f(0xae)][_0x3d0b0f(0xb4)]});}),_0x478c8c[_0x417c21(0xaa)](_0x417c21(0xa3),()=>{const _0x3b07b3=_0x417c21;this[_0x3b07b3(0xa0)](_0x3b07b3(0xa3));});}[_0x2067f5(0xb0)](){const _0x43d759=_0x2067f5;this[_0x43d759(0xc5)]['on'](_0x43d759(0xcb),()=>{const _0x35d80e=_0x43d759;this[_0x35d80e(0xa0)](_0x35d80e(0xcb));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52dcaa=_0x1cac;function _0x3a69(){const _0x4a1636=['getSelectedElement','set','imageInline','28MpsyVA','document','get','imageEditController','requires','plugins','editor','uploadcare.allowExternalImagesEditing','model','13833AzRhEu','_isEditable','210tfOARW','isEnabled','selection','isActive','config','26LhGJDJ','4689688BQwvlS','execute','116924pRvwVA','refresh','519976PXFuqU','222690psVtod','element','unbind','28581uVMdRE','1595465rPFlOw','imageBlock','bind'];_0x3a69=function(){return _0x4a1636;};return _0x3a69();}(function(_0x4b05ef,_0x5ce601){const _0x13d472=_0x1cac,_0x27542f=_0x4b05ef();while(!![]){try{const _0x2b4780=parseInt(_0x13d472(0x71))/0x1+-parseInt(_0x13d472(0x6e))/0x2*(parseInt(_0x13d472(0x77))/0x3)+parseInt(_0x13d472(0x73))/0x4+-parseInt(_0x13d472(0x78))/0x5+-parseInt(_0x13d472(0x74))/0x6*(-parseInt(_0x13d472(0x7e))/0x7)+parseInt(_0x13d472(0x6f))/0x8+parseInt(_0x13d472(0x87))/0x9*(-parseInt(_0x13d472(0x89))/0xa);if(_0x2b4780===_0x5ce601)break;else _0x27542f['push'](_0x27542f['shift']());}catch(_0x101278){_0x27542f['push'](_0x27542f['shift']());}}}(_0x3a69,0x7ba00));import{Command as _0x3bbab7}from'ckeditor5/src/core.js';import{Dialog as _0x20d8fa}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0xf3bcd5}from'./ui/uploadcareimageeditcontroller.js';function _0x1cac(_0x10cab5,_0x4ab7bb){const _0x3a696f=_0x3a69();return _0x1cac=function(_0x1cac0a,_0x432684){_0x1cac0a=_0x1cac0a-0x6e;let _0x36de65=_0x3a696f[_0x1cac0a];return _0x36de65;},_0x1cac(_0x10cab5,_0x4ab7bb);}import{createEditabilityChecker as _0x1f37dd}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3bbab7{[_0x52dcaa(0x81)];static get[_0x52dcaa(0x82)](){return[_0x20d8fa];}[_0x52dcaa(0x88)];constructor(_0x15a174){const _0x5b8218=_0x52dcaa;super(_0x15a174),this[_0x5b8218(0x81)]=void 0x0,this[_0x5b8218(0x88)]=_0x1f37dd(_0x15a174[_0x5b8218(0x8d)][_0x5b8218(0x80)](_0x5b8218(0x85))||[]),this[_0x5b8218(0x7c)]({'isActive':!0x1});}[_0x52dcaa(0x72)](){const _0xc90f61=_0x52dcaa,_0x4ce6b9=this[_0xc90f61(0x84)][_0xc90f61(0x86)][_0xc90f61(0x7f)][_0xc90f61(0x8b)][_0xc90f61(0x7b)]();this[_0xc90f61(0x8a)]=this[_0xc90f61(0x88)](_0x4ce6b9);}[_0x52dcaa(0x70)](){const _0x495e36=_0x52dcaa;this[_0x495e36(0x81)]&&(this[_0x495e36(0x76)](_0x495e36(0x8c)),this[_0x495e36(0x81)]=void 0x0);const _0x26a26a=this[_0x495e36(0x84)][_0x495e36(0x86)][_0x495e36(0x7f)][_0x495e36(0x8b)][_0x495e36(0x7b)]();_0x26a26a&&(_0x26a26a['is'](_0x495e36(0x75),_0x495e36(0x79))||_0x26a26a['is'](_0x495e36(0x75),_0x495e36(0x7d)))&&(this[_0x495e36(0x81)]=new _0xf3bcd5(this[_0x495e36(0x84)],this[_0x495e36(0x84)][_0x495e36(0x83)][_0x495e36(0x80)](_0x20d8fa),_0x26a26a),this[_0x495e36(0x7a)](_0x495e36(0x8c))['to'](this[_0x495e36(0x81)],_0x495e36(0x8c)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x142796=_0x2c4e;(function(_0xd19b07,_0x45f90e){const _0x198dcc=_0x2c4e,_0x54ccca=_0xd19b07();while(!![]){try{const _0x4f12fb=-parseInt(_0x198dcc(0x75))/0x1+-parseInt(_0x198dcc(0x6f))/0x2*(parseInt(_0x198dcc(0x81))/0x3)+parseInt(_0x198dcc(0x73))/0x4*(parseInt(_0x198dcc(0x70))/0x5)+-parseInt(_0x198dcc(0x6d))/0x6*(parseInt(_0x198dcc(0x83))/0x7)+-parseInt(_0x198dcc(0x72))/0x8*(parseInt(_0x198dcc(0x7e))/0x9)+-parseInt(_0x198dcc(0x7d))/0xa*(parseInt(_0x198dcc(0x82))/0xb)+-parseInt(_0x198dcc(0x74))/0xc*(-parseInt(_0x198dcc(0x76))/0xd);if(_0x4f12fb===_0x45f90e)break;else _0x54ccca['push'](_0x54ccca['shift']());}catch(_0x167b0d){_0x54ccca['push'](_0x54ccca['shift']());}}}(_0x44ef,0xa98b6));import{Plugin as _0x5f3542}from'ckeditor5/src/core.js';import{Notification as _0x2c78a3}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x560507}from'./uploadcareimageeditcommand.js';function _0x2c4e(_0x44e9da,_0x406d29){const _0x44efb4=_0x44ef();return _0x2c4e=function(_0x2c4ee2,_0x5860bb){_0x2c4ee2=_0x2c4ee2-0x6b;let _0x4ff92e=_0x44efb4[_0x2c4ee2];return _0x4ff92e;},_0x2c4e(_0x44e9da,_0x406d29);}function _0x44ef(){const _0x375acd=['3hCIjXH','128777vduELK','3542273aDTmoY','init','commands','6pSQVzx','add','1829596YFXyEc','775nbPiCy','pluginName','2942488zFkNdW','30812EjZbfq','84cRfZjO','1069729diZIQh','6467942qjwIRp','isOfficialPlugin','uploadcareImageReplace','ImageEditing','uploadcareImageEdit','ImageUtils','isPremiumPlugin','960iTPOMm','9CKbghe','UploadcareImageEditEditing','requires'];_0x44ef=function(){return _0x375acd;};return _0x44ef();}import{UploadcareImageReplaceCommand as _0x58d4e4}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0xea82f1}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x5f3542{static get[_0x142796(0x71)](){const _0x644081=_0x142796;return _0x644081(0x7f);}static get[_0x142796(0x80)](){const _0x1b8265=_0x142796;return[_0xea82f1,_0x2c78a3,_0x1b8265(0x7b),_0x1b8265(0x79)];}static get[_0x142796(0x77)](){return!0x0;}static get[_0x142796(0x7c)](){return!0x0;}[_0x142796(0x6b)](){const _0x397a43=_0x142796,{editor:_0x365ec0}=this;_0x365ec0[_0x397a43(0x6c)][_0x397a43(0x6e)](_0x397a43(0x7a),new _0x560507(_0x365ec0)),_0x365ec0[_0x397a43(0x6c)][_0x397a43(0x6e)](_0x397a43(0x78),new _0x58d4e4(_0x365ec0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x37838b}from'ckeditor5/src/core.js';import{ButtonView as _0x183956}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x848966}from'ckeditor5/src/icons.js';import{createElement as _0x282ce4}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x37838b{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0xed922=this['editor'];_0xed922['ui']['componentFactory']['add']('uploadcareImageEdit',_0x35c5e8=>{const _0x4fb088=_0xed922['commands']['get']('uploadcareImageEdit'),_0x21f2ca=new _0x183956(_0x35c5e8),t=_0x35c5e8['t'];return _0x21f2ca['set']({'icon':_0x848966,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x21f2ca['bind']('isEnabled')['to'](_0x4fb088),_0x21f2ca['bind']('isOn')['to'](_0x4fb088,'isActive'),this['listenTo'](_0x21f2ca,'execute',()=>{_0xed922['execute']('uploadcareImageEdit'),_0xed922['editing']['view']['focus']();}),_0x21f2ca;}),this['_initConfig']();}['_initConfig'](){const _0x865de6=_0x282ce4(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x865de6),this['listenTo'](this['editor'],'destroy',()=>{_0x865de6['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x42a6(_0x26b651,_0x30c0ca){var _0x228216=_0x2282();return _0x42a6=function(_0x42a6f5,_0x3e8b3d){_0x42a6f5=_0x42a6f5-0x17d;var _0x2a362d=_0x228216[_0x42a6f5];return _0x2a362d;},_0x42a6(_0x26b651,_0x30c0ca);}function _0x2282(){var _0x54e77a=['div','forwardCycle','fire','createCollection','8866590GLcTzn','true','110OJIRku','716880OrENdl','focusCycler','56suRjhs','bindTemplate','3424075XVeBob','112416jQIWqT','2515IbypMe','12PYRFAE','10632opQqst','focusTracker','getFocusableElement','2966355vWrnQL'];_0x2282=function(){return _0x54e77a;};return _0x2282();}var _0x30fd89=_0x42a6;(function(_0x41a70b,_0x52839f){var _0x5863bb=_0x42a6,_0x4419be=_0x41a70b();while(!![]){try{var _0x1c42e0=-parseInt(_0x5863bb(0x186))/0x1*(-parseInt(_0x5863bb(0x17f))/0x2)+parseInt(_0x5863bb(0x185))/0x3*(-parseInt(_0x5863bb(0x187))/0x4)+-parseInt(_0x5863bb(0x184))/0x5+-parseInt(_0x5863bb(0x188))/0x6*(parseInt(_0x5863bb(0x182))/0x7)+-parseInt(_0x5863bb(0x180))/0x8+parseInt(_0x5863bb(0x18b))/0x9+parseInt(_0x5863bb(0x17d))/0xa;if(_0x1c42e0===_0x52839f)break;else _0x4419be['push'](_0x4419be['shift']());}catch(_0x3661f3){_0x4419be['push'](_0x4419be['shift']());}}}(_0x2282,0x6ebba));import{FocusTracker as _0x3e402b}from'ckeditor5/src/utils.js';import{View as _0x129b2f,FocusCycler as _0x411374}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x129b2f{[_0x30fd89(0x189)];[_0x30fd89(0x181)];constructor(_0x5d9796){var _0x25ef38=_0x30fd89;super(_0x5d9796),this[_0x25ef38(0x189)]=new _0x3e402b(),this[_0x25ef38(0x181)]=new _0x411374({'focusables':this[_0x25ef38(0x18f)](),'focusTracker':this[_0x25ef38(0x189)]});}[_0x30fd89(0x18a)](){var _0x24eb61=_0x30fd89;return{'tag':_0x24eb61(0x18c),'attributes':{'aria-hidden':_0x24eb61(0x17e),'tabindex':'0'},'on':{'focus':this[_0x24eb61(0x183)]['to'](()=>{var _0x480e72=_0x24eb61;this[_0x480e72(0x181)][_0x480e72(0x18e)](_0x480e72(0x18d));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x27ab00,_0x1ac117){const _0x7720bb=_0xb0ef,_0x59454b=_0x27ab00();while(!![]){try{const _0x33d906=-parseInt(_0x7720bb(0x9a))/0x1+-parseInt(_0x7720bb(0x8b))/0x2+parseInt(_0x7720bb(0xab))/0x3+-parseInt(_0x7720bb(0x89))/0x4*(parseInt(_0x7720bb(0xa6))/0x5)+parseInt(_0x7720bb(0x85))/0x6+parseInt(_0x7720bb(0x8c))/0x7+-parseInt(_0x7720bb(0x8d))/0x8*(-parseInt(_0x7720bb(0x9e))/0x9);if(_0x33d906===_0x1ac117)break;else _0x59454b['push'](_0x59454b['shift']());}catch(_0x450be0){_0x59454b['push'](_0x59454b['shift']());}}}(_0xfeb3,0x6d939));function _0xb0ef(_0xc4a3bb,_0x10cb31){const _0xfeb3ce=_0xfeb3();return _0xb0ef=function(_0xb0ef7f,_0x542dea){_0xb0ef7f=_0xb0ef7f-0x85;let _0x1d4f72=_0xfeb3ce[_0xb0ef7f];return _0x1d4f72;},_0xb0ef(_0xc4a3bb,_0x10cb31);}import{global as _0x1aa0d9,DomEmitterMixin as _0xd2322e}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x19bda5){const _0x5226a5=_0xb0ef,_0x1d3277=z(_0x19bda5);return _0x1331f3=>!(!_0x1331f3||!_0x1331f3['is'](_0x5226a5(0x9c),_0x5226a5(0x99))&&!_0x1331f3['is'](_0x5226a5(0x9c),_0x5226a5(0xad)))&&(!!_0x1331f3[_0x5226a5(0xb2)](_0x5226a5(0xb0))||!!_0x1331f3[_0x5226a5(0xb2)](_0x5226a5(0xb8))&&_0x1d3277(_0x1331f3[_0x5226a5(0x9f)](_0x5226a5(0xb8))));}export function getImageUrls(_0x354adb,_0x3c3d64){const _0x183691=_0xb0ef,_0x125b16=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x183691(0x8a)](_0x182c22=>_0x182c22<=_0x3c3d64)[_0x183691(0xb3)](_0x5d38a6=>_0x354adb[_0x183691(0x92)](/\/$/,'')+_0x183691(0x96)+_0x5d38a6+_0x183691(0xa2)+_0x5d38a6+'w');return{'imageFallbackUrl':_0x354adb,'imageSources':[{'srcset':_0x125b16[_0x183691(0x97)](',\x20'),'sizes':_0x183691(0xa7)+_0x3c3d64+_0x183691(0xaf)+_0x3c3d64+'px','type':_0x183691(0xa4)}]};}export function getImageDimension(_0x5a972c,_0x172d19,_0x121ec8){const _0x5a9b80=_0xb0ef,_0x16fd72=_0x5a972c[_0x5a9b80(0x87)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x16fd72?parseInt(_0x16fd72[0x1],0xa):_0x172d19,'height':_0x16fd72?parseInt(_0x16fd72[0x2],0xa):_0x121ec8};}function _0xfeb3(){const _0x998b4=['2494695vgaZPT','269736bkmOzg','viewToDom','image-processing','width','get','replace','document','plugins','baseURI','/-/resize/','join','editing','imageBlock','357824AGYqaF','function','element','findViewImgElement','63HVjrSD','getAttribute','view','stopListening','x/\x20','ImageUtils','image/webp','setStyle','5XZbIsZ','(max-width:\x20','height','load','window','494778ydgmFa','domConverter','imageInline','origin','px)\x20100vw,\x20','uploadcareImageId','listenTo','hasAttribute','map','addClass','aspect-ratio','some','removeStyle','src','isArray','toViewElement','change','location','5003430yktLzy','mapper','match','removeClass','322716ymwcYH','filter','1407814aOXNmo'];_0xfeb3=function(){return _0x998b4;};return _0xfeb3();}export function showImageProcessingIndicator(_0x537670,_0x47d25d){const _0x439549=_0xb0ef,_0x457299=new(_0xd2322e())(),_0xc02daa=_0x537670[_0x439549(0x94)][_0x439549(0x91)](_0x439549(0xa3)),_0x5a9be0=_0x537670[_0x439549(0x98)][_0x439549(0x86)][_0x439549(0xba)](_0x47d25d),_0x149dd7=_0xc02daa[_0x439549(0x9d)](_0x5a9be0),_0x8dd882=_0x537670[_0x439549(0x98)][_0x439549(0xa0)][_0x439549(0xac)][_0x439549(0x8e)](_0x149dd7),_0x473409=_0x47d25d[_0x439549(0x9f)](_0x439549(0x90)),_0x28c366=_0x47d25d[_0x439549(0x9f)](_0x439549(0xa8)),_0x4f5340=_0x439549(0x8f);_0x537670[_0x439549(0x98)][_0x439549(0xa0)][_0x439549(0xbb)](_0x120114=>{const _0x37567d=_0x439549;_0x120114[_0x37567d(0xb4)](_0x4f5340,_0x5a9be0),_0x120114[_0x37567d(0xa5)](_0x37567d(0xb5),_0x473409+'/'+_0x28c366,_0x149dd7);}),_0x457299[_0x439549(0xb1)](_0x8dd882,_0x439549(0xa9),()=>{const _0x566483=_0x439549;_0x457299[_0x566483(0xa1)](_0x8dd882,_0x566483(0xa9)),_0x537670[_0x566483(0x98)][_0x566483(0xa0)][_0x566483(0xbb)](_0x4f7384=>{const _0x3ea6a3=_0x566483;_0x4f7384[_0x3ea6a3(0x88)](_0x4f5340,_0x5a9be0),_0x4f7384[_0x3ea6a3(0xb7)](_0x3ea6a3(0xb5),_0x149dd7);});});}function z(_0x28312a){const _0x11e7c5=_0xb0ef;if(Array[_0x11e7c5(0xb9)](_0x28312a)){const _0xb8049e=_0x28312a[_0x11e7c5(0xb3)](z);return _0x59d291=>_0xb8049e[_0x11e7c5(0xb6)](_0x256131=>_0x256131(_0x59d291));}if(_0x11e7c5(0xae)==_0x28312a){const _0x50f1c1=_0x1aa0d9[_0x11e7c5(0xaa)][_0x11e7c5(0xbc)][_0x11e7c5(0xae)];return _0x1eab53=>new URL(_0x1eab53,_0x1aa0d9[_0x11e7c5(0x93)][_0x11e7c5(0x95)])[_0x11e7c5(0xae)]==_0x50f1c1;}return _0x11e7c5(0x9b)==typeof _0x28312a?_0x28312a:_0x28312a instanceof RegExp?_0x57ca90=>!(!_0x57ca90[_0x11e7c5(0x87)](_0x28312a)&&!_0x57ca90[_0x11e7c5(0x92)](/^https?:\/\//,'')[_0x11e7c5(0x87)](_0x28312a)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1b32(_0x146c97,_0x39e162){var _0x428935=_0x4289();return _0x1b32=function(_0x1b32ce,_0x311bf8){_0x1b32ce=_0x1b32ce-0xe4;var _0x4c11e0=_0x428935[_0x1b32ce];return _0x4c11e0;},_0x1b32(_0x146c97,_0x39e162);}function _0x4289(){var _0x3ff53b=['4141120eJFLMc','4350960zOYhPc','132993WridNr','135774WMpTRg','4759015owVAVb','38brFeWe','8900298MEonhq','includes','2110878hlwmfP','4rVTQFl','target'];_0x4289=function(){return _0x3ff53b;};return _0x4289();}(function(_0x3a4496,_0x2f87c4){var _0x21905a=_0x1b32,_0x5a6e7f=_0x3a4496();while(!![]){try{var _0x159102=-parseInt(_0x21905a(0xee))/0x1+-parseInt(_0x21905a(0xe5))/0x2*(parseInt(_0x21905a(0xed))/0x3)+parseInt(_0x21905a(0xe9))/0x4*(parseInt(_0x21905a(0xe4))/0x5)+parseInt(_0x21905a(0xec))/0x6+parseInt(_0x21905a(0xe8))/0x7+parseInt(_0x21905a(0xeb))/0x8+-parseInt(_0x21905a(0xe6))/0x9;if(_0x159102===_0x2f87c4)break;else _0x5a6e7f['push'](_0x5a6e7f['shift']());}catch(_0x1ba1e4){_0x5a6e7f['push'](_0x5a6e7f['shift']());}}}(_0x4289,0x81314));import{getAncestors as _0x24e736}from'ckeditor5/src/utils.js';export function isAncestor(_0x1748da,_0x1784dd){var _0x48540d=_0x1b32;return _0x24e736(_0x1748da[_0x48540d(0xea)])[_0x48540d(0xe7)](_0x1784dd);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4897d7=_0x378d;function _0x378d(_0x1f660f,_0x5357ab){var _0x8fda78=_0x8fda();return _0x378d=function(_0x378dc1,_0x1e67b2){_0x378dc1=_0x378dc1-0x7b;var _0x38089f=_0x8fda78[_0x378dc1];return _0x38089f;},_0x378d(_0x1f660f,_0x5357ab);}function _0x8fda(){var _0x3b0ff2=['3382952eJyVWS','490028fRjWSA','87162LvoFKQ','13806020dHCgeL','17060bStQKF','17946LvmCCd','411110XKNkAn','upload','9WAljrY','65rHTLgh','603YMdvDO','getInfo'];_0x8fda=function(){return _0x3b0ff2;};return _0x8fda();}(function(_0x247562,_0x2cbfc4){var _0xc0e559=_0x378d,_0x411d79=_0x247562();while(!![]){try{var _0x56047f=parseInt(_0xc0e559(0x7c))/0x1+-parseInt(_0xc0e559(0x80))/0x2+-parseInt(_0xc0e559(0x85))/0x3*(-parseInt(_0xc0e559(0x7f))/0x4)+parseInt(_0xc0e559(0x84))/0x5*(parseInt(_0xc0e559(0x7d))/0x6)+parseInt(_0xc0e559(0x81))/0x7+-parseInt(_0xc0e559(0x7b))/0x8*(-parseInt(_0xc0e559(0x83))/0x9)+-parseInt(_0xc0e559(0x7e))/0xa;if(_0x56047f===_0x2cbfc4)break;else _0x411d79['push'](_0x411d79['shift']());}catch(_0xe3d787){_0x411d79['push'](_0x411d79['shift']());}}}(_0x8fda,0x995c8));import{uploadFile as _0x364a0c,info as _0x51a0c9}from'@uploadcare/upload-client';export class UploadUtils{static[_0x4897d7(0x82)]({file:_0x587978,..._0x1c08b0}){return _0x364a0c(_0x587978,_0x1c08b0);}static[_0x4897d7(0x86)](_0x4b277a,_0x2b5d39){return _0x51a0c9(_0x4b277a,_0x2b5d39);}}
|