@ckeditor/ckeditor5-uploadcare 46.0.0-alpha.7 → 46.0.0-alpha.8
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 _0x2c9db5,ObservableMixin as _0x4de30a}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x529ca2}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1fea96}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x403eec}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x2cebd7}from'../../utils/uploadutils.js';import{getImageUrls as _0x4609dc,getImageDimension as _0x25686b}from'../../utils/editingutils.js';import{isAncestor as _0x413fbf}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4de30a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x46dcf8,_0x4c6d94,_0x15dce5){super(),this['_editor']=_0x46dcf8,this['_dialog']=_0x4c6d94,this['_imageElement']=_0x15dce5,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 _0x32cacd=this['_imageElement'],_0x222f3c=_0x32cacd['getAttribute']('uploadcareImageId'),_0x28628f=_0x32cacd['getAttribute']('src');if(_0x222f3c)await this['_loadImageInfo'](_0x222f3c,_0x28628f);else{if(this['_imageCache']['has'](_0x28628f)){const _0x2cf6e1=this['_imageCache']['get'](_0x28628f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2cf6e1['url'],this['imageDimension']=_0x2cf6e1['dimension'],this['imageId']=_0x2cf6e1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2f8e66}=this['_editor'],t=_0x2f8e66['t'],_0x40bc63=new _0x403eec(_0x2f8e66,this['imageStatus'],this['_attributes']);_0x40bc63['bind']('status')['to'](this,'imageStatus'),_0x40bc63['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x40bc63['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x40bc63['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x40bc63,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1fea96,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x40bc63,'position':_0x529ca2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x40bc63['focus']();},'onHide':()=>{_0x40bc63['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x200f88=>!_0x413fbf(_0x200f88,_0x40bc63['element'])}});}['_loadImageInfo'](_0x522ab4,_0x1fc25a){return _0x2cebd7['getInfo'](_0x522ab4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2a1598=>{const {width:_0x5bdba6,height:_0x467f01}=_0x2a1598['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1fc25a,this['imageDimension']={'width':_0x5bdba6,'height':_0x467f01},this['imageId']=_0x522ab4;})['catch'](_0x1a4ca0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1a4ca0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1ba639,_0x5f1e13){return this['_getImageAsFile'](_0x1ba639)['then'](_0x41cf22=>_0x2cebd7['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5f1e13['signal'],'file':_0x41cf22,'onProgress':_0x5d597a=>{_0x5d597a&&_0x5d597a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5d597a['value']));}}))['then'](_0x34cf6f=>{const {width:_0x2d13f3,height:_0x1e83b5}=_0x34cf6f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34cf6f['cdnUrl'],this['imageDimension']={'width':_0x2d13f3,'height':_0x1e83b5},this['imageId']=_0x34cf6f['uuid'],this['imageUploadProgress']=null;const _0x679547=_0x1ba639['getAttribute']('src');this['_imageCache']['set'](_0x679547,{'id':_0x34cf6f['uuid'],'url':_0x34cf6f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1f8884=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1f8884['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x21e19f,_0xf6126e){_0x21e19f['on']('apply',(_0x32fced,_0x16028e)=>{this['_replaceImage'](_0xf6126e,_0x16028e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x21e19f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x21e19f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5b88f6,_0x2778d1,_0x20a360){const _0x3048c1=this['_editor'],{width:_0x292f86,height:_0x44b639}=_0x25686b(_0x2778d1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4d281b,imageSources:_0x1c3718}=_0x4609dc(_0x2778d1,_0x292f86);_0x3048c1['model']['change'](_0x3ebd1d=>{if('$graveyard'===_0x5b88f6['root']['rootName']){_0x3048c1['execute']('insertImage',{'imageType':_0x5b88f6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5b88f6['getAttributes']()),'uploadcareImageId':_0x20a360,'src':_0x4d281b,'sources':_0x1c3718,'width':_0x292f86,'height':_0x44b639}});const _0x43341a=_0x5b88f6['getChildren']();_0x5b88f6=_0x3048c1['model']['document']['selection']['getSelectedElement']();for(const _0x3ec131 of _0x43341a)_0x3ebd1d['append'](_0x3ebd1d['cloneElement'](_0x3ec131),_0x5b88f6);}else _0x3ebd1d['setSelection'](_0x5b88f6,'on'),_0x3048c1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5b88f6['getAttributes']()),'uploadcareImageId':_0x20a360,'src':_0x4d281b,'sources':_0x1c3718,'width':_0x292f86,'height':_0x44b639},_0x5b88f6);_0x3ebd1d['setSelection'](_0x5b88f6,'on');});}async['_getImageAsFile'](_0x2c253a){const _0x1a98d6=_0x2c9db5['window'],_0x2d13cd=_0x2c9db5['document']['location']['href'],_0x52520d=new _0x1a98d6['URL'](_0x2c253a['getAttribute']('src'),_0x2d13cd);if('data:'===_0x52520d['protocol']){const _0x518aa3=_0x52520d['href']['split'](','),_0x1f5889=_0x518aa3[0x0]['match'](/:(.*?);/)[0x1],_0xf123e0=_0x1f5889['split']('/')[0x1],_0x489efa=_0x1a98d6['atob'](_0x518aa3[_0x518aa3['length']-0x1]);let _0x5509ac=_0x489efa['length'];const _0x19650e=new _0x1a98d6['Uint8Array'](_0x5509ac);for(;_0x5509ac--;)_0x19650e[_0x5509ac]=_0x489efa['charCodeAt'](_0x5509ac);return new _0x1a98d6['File']([_0x19650e],'image.'+_0xf123e0,{'type':_0x1f5889});}const _0x4190d8=_0x52520d['href']['split']('/'),_0x35d40b=_0x4190d8[_0x4190d8['length']-0x1],_0xdb1fb0=_0x35d40b['split']('.')[0x1];return _0x1a98d6['fetch'](_0x52520d['href'])['then'](_0x4bbb57=>_0x4bbb57['clone']()['blob']())['then'](_0x262b10=>new _0x1a98d6['File']([_0x262b10],_0x35d40b,{'type':'image/'+_0xdb1fb0}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x351bb4,_0x5479e5){const _0x3cfc13=_0x1e20,_0x157c4e=_0x351bb4();while(!![]){try{const _0x2a6eae=parseInt(_0x3cfc13(0xac))/0x1*(-parseInt(_0x3cfc13(0xb1))/0x2)+parseInt(_0x3cfc13(0xad))/0x3+-parseInt(_0x3cfc13(0xae))/0x4*(parseInt(_0x3cfc13(0xa3))/0x5)+parseInt(_0x3cfc13(0xaa))/0x6*(-parseInt(_0x3cfc13(0xa9))/0x7)+-parseInt(_0x3cfc13(0xaf))/0x8+-parseInt(_0x3cfc13(0xa8))/0x9*(parseInt(_0x3cfc13(0xa5))/0xa)+parseInt(_0x3cfc13(0xb0))/0xb;if(_0x2a6eae===_0x5479e5)break;else _0x157c4e['push'](_0x157c4e['shift']());}catch(_0x3e0306){_0x157c4e['push'](_0x157c4e['shift']());}}}(_0x2c2d,0x32a57));function _0x2c2d(){const _0x221b51=['150xQkFXL','ck-uploadcare-theme','uc-cloud-image-editor','41355YFEdzV','14IUUMdq','764262jLDWTN','image-edit','348837YzWYzp','588774IEiDdd','32xTLDpB','1943880liLIBv','12023462KJQUyi','2BbdXlV','imageSrc','set','uc-light','setTemplate','103970fRIezG','bindTemplate'];_0x2c2d=function(){return _0x221b51;};return _0x2c2d();}import{View as _0x27adb1}from'ckeditor5/src/ui.js';function _0x1e20(_0x29421c,_0x222fd2){const _0x2c2dd5=_0x2c2d();return _0x1e20=function(_0x1e2011,_0x3bd97a){_0x1e2011=_0x1e2011-0xa2;let _0x12744a=_0x2c2dd5[_0x1e2011];return _0x12744a;},_0x1e20(_0x29421c,_0x222fd2);}export class UploadcareImageEditFormEditingView extends _0x27adb1{constructor(_0x49ec9a,_0x5f3c4){const _0x3c6373=_0x1e20;super(_0x49ec9a);const _0x3ca6f1=this[_0x3c6373(0xa4)];this[_0x3c6373(0xb3)](_0x3c6373(0xb2),''),this[_0x3c6373(0xa2)]({'tag':_0x3c6373(0xa7),'attributes':{..._0x5f3c4,'class':[_0x3c6373(0xb4),_0x3c6373(0xa6)],'ctx-name':_0x3c6373(0xab),'cdn-url':_0x3ca6f1['to'](_0x3c6373(0xb2))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0xcf64dc}from'ckeditor5/src/icons.js';import{ButtonView as _0x2eca8e,IconView as _0x45987d,View as _0xf70854}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0xf70854{constructor(_0xf20076){super(_0xf20076);const t=_0xf20076['t'];this['set']('errorType',null);const _0x2fd459=new _0x2eca8e(_0xf20076);_0x2fd459['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2fd459['withText']=!0x0,_0x2fd459['class']='ck-button-action',_0x2fd459['on']('execute',()=>{this['fire']('retry');}),_0x2fd459['bind']('isVisible')['to'](this,'errorType',_0x1305de=>'NotFound'!==_0x1305de);const _0x1384d2=new _0x45987d();_0x1384d2['content']=_0xcf64dc,_0x1384d2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4dc4fd=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':[_0x1384d2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4dc4fd['to']('errorType',_0x4a68e2=>t('NotFound'!==_0x4a68e2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2fd459]},{'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 _0x307f61,View as _0x4b3b5b}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4b3b5b{constructor(_0x1170f3){super(_0x1170f3);const t=_0x1170f3['t'],_0x354515=this['bindTemplate'],_0x5749b4=new _0x307f61();_0x5749b4['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':[_0x5749b4,{'text':_0x354515['to']('imageUploadProgress',_0x1c488d=>t('Loading\x20image...')+'\x20('+(_0x1c488d||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
|
-
|
|
23
|
+
const _0x50273a=_0x3c19;(function(_0x4131d1,_0xb51fa3){const _0x26a8a7=_0x3c19,_0x44944a=_0x4131d1();while(!![]){try{const _0x4fc4cc=-parseInt(_0x26a8a7(0x136))/0x1*(parseInt(_0x26a8a7(0x11d))/0x2)+parseInt(_0x26a8a7(0x119))/0x3*(parseInt(_0x26a8a7(0x14e))/0x4)+parseInt(_0x26a8a7(0x138))/0x5+parseInt(_0x26a8a7(0x127))/0x6+-parseInt(_0x26a8a7(0x14d))/0x7+parseInt(_0x26a8a7(0x124))/0x8*(-parseInt(_0x26a8a7(0x129))/0x9)+parseInt(_0x26a8a7(0x12a))/0xa;if(_0x4fc4cc===_0xb51fa3)break;else _0x44944a['push'](_0x44944a['shift']());}catch(_0x1fe726){_0x44944a['push'](_0x44944a['shift']());}}}(_0x5efe,0x37f67));import{View as _0xaa2bbc}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x66ec17}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x29d322}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x1fad77}from'./uploadcareimageeditformeditingview.js';function _0x3c19(_0x5e3cc7,_0x16f297){const _0x5efe48=_0x5efe();return _0x3c19=function(_0x3c196c,_0x50706c){_0x3c196c=_0x3c196c-0x119;let _0xcddbd1=_0x5efe48[_0x3c196c];return _0xcddbd1;},_0x3c19(_0x5e3cc7,_0x16f297);}import{DialogFocusManagerView as _0x4a047c}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x4a047c{[_0x50273a(0x134)];[_0x50273a(0x13f)];[_0x50273a(0x144)];[_0x50273a(0x137)];[_0x50273a(0x148)];constructor(_0x5f1b2b,_0x550ad9,_0x13b572){const _0x40d460=_0x50273a;super(_0x5f1b2b),this[_0x40d460(0x134)]=this[_0x40d460(0x120)](),this[_0x40d460(0x13f)]=new _0x66ec17(_0x5f1b2b),this[_0x40d460(0x144)]=new _0x29d322(_0x5f1b2b),this[_0x40d460(0x137)]=new _0x1fad77(_0x5f1b2b,_0x13b572),this[_0x40d460(0x148)]=new _0xaa2bbc(_0x5f1b2b),this[_0x40d460(0x148)][_0x40d460(0x11c)](this[_0x40d460(0x13c)]()),this[_0x40d460(0x140)](_0x40d460(0x14f),_0x550ad9),this[_0x40d460(0x11c)]({'tag':_0x40d460(0x146),'attributes':{'class':['ck',_0x40d460(0x13d),_0x40d460(0x11f)],'tabindex':'-1'},'children':this[_0x40d460(0x134)]}),this[_0x40d460(0x13b)](),this[_0x40d460(0x14c)](_0x40d460(0x131),()=>{const _0x115980=_0x40d460;this[_0x115980(0x12f)](this[_0x115980(0x123)],_0x25d316=>{const _0xeddff4=_0x115980;this[_0xeddff4(0x12c)](_0x25d316);});}),this['on'](_0x40d460(0x145),()=>{const _0x3ca299=_0x40d460;this[_0x3ca299(0x13b)]();}),this[_0x40d460(0x133)]();}[_0x50273a(0x147)](){const _0x1408de=_0x50273a;this[_0x1408de(0x123)][_0x1408de(0x147)]();}[_0x50273a(0x13b)](){const _0x430133=_0x50273a;switch(this[_0x430133(0x134)][_0x430133(0x14a)](),this[_0x430133(0x14f)]){case _0x430133(0x13e):this[_0x430133(0x134)][_0x430133(0x149)](this[_0x430133(0x13f)]);break;case _0x430133(0x12d):this[_0x430133(0x134)][_0x430133(0x149)](this[_0x430133(0x144)]);break;case _0x430133(0x14b):this[_0x430133(0x134)][_0x430133(0x12b)]([this[_0x430133(0x137)],this[_0x430133(0x148)]]);}}[_0x50273a(0x12f)](_0xb0a515,_0x55d98d){const _0x517755=_0x50273a,_0x4cdf89=_0x517755(0x130),_0x1e4444=_0xb0a515[_0x517755(0x122)](_0x4cdf89);if(_0x1e4444)return _0x55d98d(_0x1e4444);const _0x5d733d=new MutationObserver(_0xe0aacc=>{const _0x31a050=_0x517755,_0x1d0dd2=_0xe0aacc[_0x31a050(0x142)](_0x2d7a7f=>_0x2d7a7f[_0x31a050(0x128)]===_0xb0a515&&_0x2d7a7f[_0x31a050(0x141)][_0x31a050(0x121)]>0x0&&_0x2d7a7f[_0x31a050(0x141)][0x0][_0x31a050(0x11e)][_0x31a050(0x132)]()===_0x4cdf89);_0x1d0dd2[_0x31a050(0x121)]&&(_0x5d733d[_0x31a050(0x11a)](),_0x55d98d(_0x1d0dd2[0x0][_0x31a050(0x141)][0x0]));});_0x5d733d[_0x517755(0x135)](_0xb0a515,{'childList':!0x0,'subtree':!0x0});}[_0x50273a(0x12c)](_0x3670ef){const _0x479d99=_0x50273a;_0x3670ef[_0x479d99(0x12e)](_0x479d99(0x143),_0x1bc8d6=>{const _0x5c4a0c=_0x479d99;this[_0x5c4a0c(0x11b)](_0x5c4a0c(0x143),{'imageSrc':_0x1bc8d6[_0x5c4a0c(0x13a)][_0x5c4a0c(0x139)]});}),_0x3670ef[_0x479d99(0x12e)](_0x479d99(0x126),()=>{const _0x546c5a=_0x479d99;this[_0x546c5a(0x11b)](_0x546c5a(0x126));});}[_0x50273a(0x133)](){const _0x3b2568=_0x50273a;this[_0x3b2568(0x144)]['on'](_0x3b2568(0x125),()=>{const _0x18f8dd=_0x3b2568;this[_0x18f8dd(0x11b)](_0x18f8dd(0x125));});}}function _0x5efe(){const _0x2b40f5=['12zXJVOf','status','386490uCreFz','disconnect','fire','setTemplate','2JZJmzD','nodeName','ck-uploadcare-form','createCollection','length','querySelector','element','120eDbfKd','retry','cancel','1261308MhMwAv','target','13680vTNDvm','3350rNDlNn','addMany','_addUploadcareImageEditorListeners','error','addEventListener','_waitForImageEditorComponent','uc-cloud-image-editor','render','toLowerCase','_addErrorViewListeners','_items','observe','160713aApZXs','_editingView','1131815kmVKJK','cdnUrl','detail','_setView','getFocusableElement','ck-reset_all-excluded','uploading','_loadingView','set','addedNodes','filter','apply','_errorView','change:status','div','focus','_focusableView','add','clear','ready','once','2874690YLkaVP'];_0x5efe=function(){return _0x2b40f5;};return _0x5efe();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a6338=_0x5988;(function(_0x33300e,_0x3b2afa){const _0xc5b0bd=_0x5988,_0x207031=_0x33300e();while(!![]){try{const _0x3bfb2b=-parseInt(_0xc5b0bd(0x143))/0x1*(-parseInt(_0xc5b0bd(0x153))/0x2)+-parseInt(_0xc5b0bd(0x148))/0x3+-parseInt(_0xc5b0bd(0x13e))/0x4*(parseInt(_0xc5b0bd(0x158))/0x5)+parseInt(_0xc5b0bd(0x14c))/0x6+-parseInt(_0xc5b0bd(0x151))/0x7+parseInt(_0xc5b0bd(0x139))/0x8+-parseInt(_0xc5b0bd(0x14f))/0x9*(-parseInt(_0xc5b0bd(0x13c))/0xa);if(_0x3bfb2b===_0x3b2afa)break;else _0x207031['push'](_0x207031['shift']());}catch(_0x194c86){_0x207031['push'](_0x207031['shift']());}}}(_0x3d89,0xe4b23));import{Command as _0x593323}from'ckeditor5/src/core.js';function _0x5988(_0x2842ce,_0x3ea667){const _0x3d89cc=_0x3d89();return _0x5988=function(_0x5988d1,_0x453e0b){_0x5988d1=_0x5988d1-0x139;let _0xc922a1=_0x3d89cc[_0x5988d1];return _0xc922a1;},_0x5988(_0x2842ce,_0x3ea667);}import{Dialog as _0x1cdb9e}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0xbc5054}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x248b46}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x593323{[_0x3a6338(0x157)];static get[_0x3a6338(0x141)](){return[_0x1cdb9e];}[_0x3a6338(0x145)];constructor(_0xc7dfd4){const _0x3d2f7b=_0x3a6338;super(_0xc7dfd4),this[_0x3d2f7b(0x157)]=void 0x0,this[_0x3d2f7b(0x145)]=_0x248b46(_0xc7dfd4[_0x3d2f7b(0x140)][_0x3d2f7b(0x154)](_0x3d2f7b(0x142))||[]),this[_0x3d2f7b(0x149)]({'isActive':!0x1});}[_0x3a6338(0x147)](){const _0x3aee4b=_0x3a6338,_0x332139=this[_0x3aee4b(0x155)][_0x3aee4b(0x13b)][_0x3aee4b(0x14d)][_0x3aee4b(0x152)][_0x3aee4b(0x146)]();this[_0x3aee4b(0x13f)]=this[_0x3aee4b(0x145)](_0x332139);}[_0x3a6338(0x13a)](){const _0x5c8908=_0x3a6338;this[_0x5c8908(0x157)]&&(this[_0x5c8908(0x156)](_0x5c8908(0x14e)),this[_0x5c8908(0x157)]=void 0x0);const _0x214372=this[_0x5c8908(0x155)][_0x5c8908(0x13b)][_0x5c8908(0x14d)][_0x5c8908(0x152)][_0x5c8908(0x146)]();_0x214372&&(_0x214372['is'](_0x5c8908(0x13d),_0x5c8908(0x150))||_0x214372['is'](_0x5c8908(0x13d),_0x5c8908(0x14b)))&&(this[_0x5c8908(0x157)]=new _0xbc5054(this[_0x5c8908(0x155)],this[_0x5c8908(0x155)][_0x5c8908(0x144)][_0x5c8908(0x154)](_0x1cdb9e),_0x214372),this[_0x5c8908(0x14a)](_0x5c8908(0x14e))['to'](this[_0x5c8908(0x157)],_0x5c8908(0x14e)));}}function _0x3d89(){const _0x1e5928=['1305ArJgef','imageBlock','12100410QSjtnU','selection','33482smVMtN','get','editor','unbind','imageEditController','25WFcnBj','5655392ERXdZP','execute','model','170510PIhJQe','element','673804OyFtmO','isEnabled','config','requires','uploadcare.allowExternalImagesEditing','33SnQqgu','plugins','_isEditable','getSelectedElement','refresh','2008809QarZOk','set','bind','imageInline','2672730yRBHco','document','isActive'];_0x3d89=function(){return _0x1e5928;};return _0x3d89();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fb75b=_0x376f;(function(_0x5dca48,_0x4e084f){const _0x519b67=_0x376f,_0x59dbc2=_0x5dca48();while(!![]){try{const _0x180f32=-parseInt(_0x519b67(0x1b5))/0x1+parseInt(_0x519b67(0x1ae))/0x2+-parseInt(_0x519b67(0x1b4))/0x3*(-parseInt(_0x519b67(0x1ac))/0x4)+parseInt(_0x519b67(0x1b8))/0x5+parseInt(_0x519b67(0x1b0))/0x6*(parseInt(_0x519b67(0x1b1))/0x7)+parseInt(_0x519b67(0x1b3))/0x8+parseInt(_0x519b67(0x1bb))/0x9*(-parseInt(_0x519b67(0x1b2))/0xa);if(_0x180f32===_0x4e084f)break;else _0x59dbc2['push'](_0x59dbc2['shift']());}catch(_0x3aba92){_0x59dbc2['push'](_0x59dbc2['shift']());}}}(_0xdd90,0x7d979));import{Plugin as _0xa5363}from'ckeditor5/src/core.js';import{Notification as _0x25ebdb}from'ckeditor5/src/ui.js';function _0xdd90(){const _0x5ed6d2=['3KzhvWm','713795rkGPyO','requires','ImageUtils','85180pWOXzB','pluginName','init','5537421XXdVfF','add','isPremiumPlugin','uploadcareImageReplace','ImageEditing','isOfficialPlugin','UploadcareImageEditEditing','4079028AeYmuA','commands','1819648bfxRWs','uploadcareImageEdit','6asyvWi','2476733SyQjOC','30OoFVYJ','6188728HsCEnK'];_0xdd90=function(){return _0x5ed6d2;};return _0xdd90();}function _0x376f(_0x3fe41d,_0x5f4e3e){const _0xdd903b=_0xdd90();return _0x376f=function(_0x376f36,_0x3a93e6){_0x376f36=_0x376f36-0x1a7;let _0x4d6a55=_0xdd903b[_0x376f36];return _0x4d6a55;},_0x376f(_0x3fe41d,_0x5f4e3e);}import{UploadcareImageEditCommand as _0x151ded}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1e8419}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x56c899}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0xa5363{static get[_0x1fb75b(0x1b9)](){const _0x188724=_0x1fb75b;return _0x188724(0x1ab);}static get[_0x1fb75b(0x1b6)](){const _0x2b1360=_0x1fb75b;return[_0x56c899,_0x25ebdb,_0x2b1360(0x1b7),_0x2b1360(0x1a9)];}static get[_0x1fb75b(0x1aa)](){return!0x0;}static get[_0x1fb75b(0x1a7)](){return!0x0;}[_0x1fb75b(0x1ba)](){const _0x32ee44=_0x1fb75b,{editor:_0x587098}=this;_0x587098[_0x32ee44(0x1ad)][_0x32ee44(0x1bc)](_0x32ee44(0x1af),new _0x151ded(_0x587098)),_0x587098[_0x32ee44(0x1ad)][_0x32ee44(0x1bc)](_0x32ee44(0x1a8),new _0x1e8419(_0x587098));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2b406e}from'ckeditor5/src/core.js';import{ButtonView as _0xcc0e4d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1352bb}from'ckeditor5/src/icons.js';import{createElement as _0x35fef8}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 _0x2b406e{['_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 _0x23e97c=this['editor'];_0x23e97c['ui']['componentFactory']['add']('uploadcareImageEdit',_0xccebce=>{const _0x509b81=_0x23e97c['commands']['get']('uploadcareImageEdit'),_0x309b0e=new _0xcc0e4d(_0xccebce),t=_0xccebce['t'];return _0x309b0e['set']({'icon':_0x1352bb,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x309b0e['bind']('isEnabled')['to'](_0x509b81),_0x309b0e['bind']('isOn')['to'](_0x509b81,'isActive'),this['listenTo'](_0x309b0e,'execute',()=>{_0x23e97c['execute']('uploadcareImageEdit'),_0x23e97c['editing']['view']['focus']();}),_0x309b0e;}),this['_initConfig']();}['_initConfig'](){const _0x144240=_0x35fef8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x144240),this['listenTo'](this['editor'],'destroy',()=>{_0x144240['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1725a3=_0x1d80;function _0x2f6e(){var _0xf78b4a=['10GgeNca','focusCycler','10oPDzYC','fire','div','339400IkkbdS','15069aCppBZ','10924122eyGZRx','428csrpCn','focusTracker','36020KnXnpw','forwardCycle','bindTemplate','5632173WfrHMq','610968KDWocZ','createCollection','71ODBNES','getFocusableElement','true','6551258cQhTzt'];_0x2f6e=function(){return _0xf78b4a;};return _0x2f6e();}(function(_0x58236a,_0x36cad9){var _0x1973fc=_0x1d80,_0x585bc1=_0x58236a();while(!![]){try{var _0x5b2f09=-parseInt(_0x1973fc(0x112))/0x1*(parseInt(_0x1973fc(0x10c))/0x2)+parseInt(_0x1973fc(0x108))/0x3*(-parseInt(_0x1973fc(0x10a))/0x4)+parseInt(_0x1973fc(0x118))/0x5*(parseInt(_0x1973fc(0x110))/0x6)+parseInt(_0x1973fc(0x115))/0x7+parseInt(_0x1973fc(0x107))/0x8+-parseInt(_0x1973fc(0x10f))/0x9*(-parseInt(_0x1973fc(0x116))/0xa)+parseInt(_0x1973fc(0x109))/0xb;if(_0x5b2f09===_0x36cad9)break;else _0x585bc1['push'](_0x585bc1['shift']());}catch(_0x57fdde){_0x585bc1['push'](_0x585bc1['shift']());}}}(_0x2f6e,0xf067f));import{FocusTracker as _0x401b8b}from'ckeditor5/src/utils.js';import{View as _0x1a0f2a,FocusCycler as _0x1f22c1}from'ckeditor5/src/ui.js';function _0x1d80(_0x35ee05,_0x55603d){var _0x2f6eb4=_0x2f6e();return _0x1d80=function(_0x1d80a7,_0x3cc014){_0x1d80a7=_0x1d80a7-0x106;var _0x55d4b8=_0x2f6eb4[_0x1d80a7];return _0x55d4b8;},_0x1d80(_0x35ee05,_0x55603d);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1a0f2a{[_0x1725a3(0x10b)];[_0x1725a3(0x117)];constructor(_0x3abd68){var _0x2f5786=_0x1725a3;super(_0x3abd68),this[_0x2f5786(0x10b)]=new _0x401b8b(),this[_0x2f5786(0x117)]=new _0x1f22c1({'focusables':this[_0x2f5786(0x111)](),'focusTracker':this[_0x2f5786(0x10b)]});}[_0x1725a3(0x113)](){var _0x19f97c=_0x1725a3;return{'tag':_0x19f97c(0x106),'attributes':{'aria-hidden':_0x19f97c(0x114),'tabindex':'0'},'on':{'focus':this[_0x19f97c(0x10e)]['to'](()=>{var _0x528db0=_0x19f97c;this[_0x528db0(0x117)][_0x528db0(0x119)](_0x528db0(0x10d));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3ced1f,_0x1a1ce4){const _0xd5d222=_0x5817,_0x2e5cc9=_0x3ced1f();while(!![]){try{const _0x5d6fc5=-parseInt(_0xd5d222(0xf4))/0x1+-parseInt(_0xd5d222(0xcf))/0x2+-parseInt(_0xd5d222(0xef))/0x3*(-parseInt(_0xd5d222(0xf5))/0x4)+parseInt(_0xd5d222(0xd7))/0x5*(-parseInt(_0xd5d222(0xee))/0x6)+-parseInt(_0xd5d222(0xd4))/0x7*(parseInt(_0xd5d222(0xff))/0x8)+parseInt(_0xd5d222(0xfd))/0x9*(parseInt(_0xd5d222(0xd8))/0xa)+parseInt(_0xd5d222(0x105))/0xb;if(_0x5d6fc5===_0x1a1ce4)break;else _0x2e5cc9['push'](_0x2e5cc9['shift']());}catch(_0x26032b){_0x2e5cc9['push'](_0x2e5cc9['shift']());}}}(_0x1397,0xa90d6));import{global as _0x3ee4cf,DomEmitterMixin as _0x326256}from'ckeditor5/src/utils.js';function _0x5817(_0x20a16b,_0x24e08c){const _0x1397b9=_0x1397();return _0x5817=function(_0x581741,_0x5af550){_0x581741=_0x581741-0xcd;let _0x5a08f6=_0x1397b9[_0x581741];return _0x5a08f6;},_0x5817(_0x20a16b,_0x24e08c);}export function createEditabilityChecker(_0x873ddc){const _0x407923=_0x5817,_0x49403a=R(_0x873ddc);return _0x2a4725=>!(!_0x2a4725||!_0x2a4725['is'](_0x407923(0xf3),_0x407923(0xd3))&&!_0x2a4725['is'](_0x407923(0xf3),_0x407923(0xe1)))&&(!!_0x2a4725[_0x407923(0xda)](_0x407923(0x104))||!!_0x2a4725[_0x407923(0xda)](_0x407923(0xea))&&_0x49403a(_0x2a4725[_0x407923(0xe5)](_0x407923(0xea))));}export function getImageUrls(_0x5a494d,_0x11a0de){const _0x2b4ea9=_0x5817,_0x1ed943=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x2b4ea9(0xe3)](_0x59518a=>_0x59518a<=_0x11a0de)[_0x2b4ea9(0xfc)](_0x25851b=>_0x5a494d[_0x2b4ea9(0xdb)](/\/$/,'')+_0x2b4ea9(0x101)+_0x25851b+_0x2b4ea9(0xe8)+_0x25851b+'w');return{'imageFallbackUrl':_0x5a494d,'imageSources':[{'srcset':_0x1ed943[_0x2b4ea9(0xcd)](',\x20'),'sizes':_0x2b4ea9(0xfa)+_0x11a0de+_0x2b4ea9(0xe6)+_0x11a0de+'px','type':_0x2b4ea9(0xde)}]};}export function getImageDimension(_0x232d54,_0x57c698,_0x131ba4){const _0x153069=_0x5817,_0xeab59a=_0x232d54[_0x153069(0xe2)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xeab59a?parseInt(_0xeab59a[0x1],0xa):_0x57c698,'height':_0xeab59a?parseInt(_0xeab59a[0x2],0xa):_0x131ba4};}export function showImageProcessingIndicator(_0xc710fe,_0x187aea){const _0x3127f0=_0x5817,_0x1191a9=new(_0x326256())(),_0x4d1c5=_0xc710fe[_0x3127f0(0xed)][_0x3127f0(0x103)](_0x3127f0(0xe0)),_0x585a42=_0xc710fe[_0x3127f0(0xe4)][_0x3127f0(0x100)][_0x3127f0(0xf6)](_0x187aea),_0x469f65=_0x4d1c5[_0x3127f0(0xf9)](_0x585a42),_0x369cc7=_0xc710fe[_0x3127f0(0xe4)][_0x3127f0(0xce)][_0x3127f0(0xd5)][_0x3127f0(0xe9)](_0x469f65),_0x1686e7=_0x187aea[_0x3127f0(0xe5)](_0x3127f0(0x106)),_0x195d52=_0x187aea[_0x3127f0(0xe5)](_0x3127f0(0xeb)),_0x461f28=_0x3127f0(0xfe);_0xc710fe[_0x3127f0(0xe4)][_0x3127f0(0xce)][_0x3127f0(0xd0)](_0x14cac9=>{const _0x137104=_0x3127f0;_0x14cac9[_0x137104(0xf1)](_0x461f28,_0x585a42),_0x14cac9[_0x137104(0xd2)](_0x137104(0xf7),_0x1686e7+'/'+_0x195d52,_0x469f65);}),_0x1191a9[_0x3127f0(0xdf)](_0x369cc7,_0x3127f0(0xdc),()=>{const _0x1aca33=_0x3127f0;_0x1191a9[_0x1aca33(0xf2)](_0x369cc7,_0x1aca33(0xdc)),_0xc710fe[_0x1aca33(0xe4)][_0x1aca33(0xce)][_0x1aca33(0xd0)](_0x51632e=>{const _0x84f78c=_0x1aca33;_0x51632e[_0x84f78c(0xec)](_0x461f28,_0x585a42),_0x51632e[_0x84f78c(0xfb)](_0x84f78c(0xf7),_0x469f65);});});}function _0x1397(){const _0x25a59d=['window','addClass','stopListening','element','538668gUqhcm','8ITweSt','toViewElement','aspect-ratio','baseURI','findViewImgElement','(max-width:\x20','removeStyle','map','201429YOVFow','image-processing','2204440PXLAmQ','mapper','/-/resize/','document','get','uploadcareImageId','6128023BRoGgd','width','join','view','897348chfwYY','change','some','setStyle','imageBlock','7SmlpPs','domConverter','function','2665QYbJfW','510eFHpRV','origin','hasAttribute','replace','load','isArray','image/webp','listenTo','ImageUtils','imageInline','match','filter','editing','getAttribute','px)\x20100vw,\x20','location','x/\x20','viewToDom','src','height','removeClass','plugins','4086cUxrzp','929676gNGbFr'];_0x1397=function(){return _0x25a59d;};return _0x1397();}function R(_0x5719fe){const _0x5ea39e=_0x5817;if(Array[_0x5ea39e(0xdd)](_0x5719fe)){const _0x26b7dc=_0x5719fe[_0x5ea39e(0xfc)](R);return _0x3dcf5d=>_0x26b7dc[_0x5ea39e(0xd1)](_0x190e55=>_0x190e55(_0x3dcf5d));}if(_0x5ea39e(0xd9)==_0x5719fe){const _0x191005=_0x3ee4cf[_0x5ea39e(0xf0)][_0x5ea39e(0xe7)][_0x5ea39e(0xd9)];return _0x4a82c8=>new URL(_0x4a82c8,_0x3ee4cf[_0x5ea39e(0x102)][_0x5ea39e(0xf8)])[_0x5ea39e(0xd9)]==_0x191005;}return _0x5ea39e(0xd6)==typeof _0x5719fe?_0x5719fe:_0x5719fe instanceof RegExp?_0x1f2a49=>!(!_0x1f2a49[_0x5ea39e(0xe2)](_0x5719fe)&&!_0x1f2a49[_0x5ea39e(0xdb)](/^https?:\/\//,'')[_0x5ea39e(0xe2)](_0x5719fe)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x201b80,_0x313755){var _0x493fde=_0x3903,_0x55b6a7=_0x201b80();while(!![]){try{var _0x4d252f=-parseInt(_0x493fde(0xf5))/0x1*(-parseInt(_0x493fde(0xf8))/0x2)+parseInt(_0x493fde(0xf9))/0x3+-parseInt(_0x493fde(0xf6))/0x4*(-parseInt(_0x493fde(0xfd))/0x5)+-parseInt(_0x493fde(0xfa))/0x6*(parseInt(_0x493fde(0xff))/0x7)+-parseInt(_0x493fde(0xfe))/0x8+parseInt(_0x493fde(0xf7))/0x9+-parseInt(_0x493fde(0xfb))/0xa;if(_0x4d252f===_0x313755)break;else _0x55b6a7['push'](_0x55b6a7['shift']());}catch(_0x23545f){_0x55b6a7['push'](_0x55b6a7['shift']());}}}(_0x58c7,0xe5df4));function _0x3903(_0x2b10e2,_0x24c79c){var _0x58c7ae=_0x58c7();return _0x3903=function(_0x3903b2,_0x5816b5){_0x3903b2=_0x3903b2-0xf4;var _0x5e8646=_0x58c7ae[_0x3903b2];return _0x5e8646;},_0x3903(_0x2b10e2,_0x24c79c);}function _0x58c7(){var _0x242e01=['9056025etZlkL','3115514cGqQcU','5320467zWiApO','444648NvxXND','41600100nEuoYi','includes','5nmVGwB','3615272NtVYue','7DCXhOd','target','1WUOsWf','5160448AGnHpD'];_0x58c7=function(){return _0x242e01;};return _0x58c7();}import{getAncestors as _0x5abc1a}from'ckeditor5/src/utils.js';export function isAncestor(_0x3292bb,_0x510cbf){var _0x4c9899=_0x3903;return _0x5abc1a(_0x3292bb[_0x4c9899(0xf4)])[_0x4c9899(0xfc)](_0x510cbf);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x2a97ca=_0x1589;(function(_0x2e1f19,_0x475355){var _0x595a3c=_0x1589,_0x1df668=_0x2e1f19();while(!![]){try{var _0x5f2a3e=-parseInt(_0x595a3c(0x84))/0x1+-parseInt(_0x595a3c(0x88))/0x2+parseInt(_0x595a3c(0x83))/0x3*(parseInt(_0x595a3c(0x81))/0x4)+parseInt(_0x595a3c(0x89))/0x5+-parseInt(_0x595a3c(0x87))/0x6+parseInt(_0x595a3c(0x86))/0x7+parseInt(_0x595a3c(0x82))/0x8;if(_0x5f2a3e===_0x475355)break;else _0x1df668['push'](_0x1df668['shift']());}catch(_0x1a8f2a){_0x1df668['push'](_0x1df668['shift']());}}}(_0x3ff8,0x49c19));function _0x1589(_0x3b8a43,_0x210aee){var _0x3ff829=_0x3ff8();return _0x1589=function(_0x158939,_0x1d78fc){_0x158939=_0x158939-0x81;var _0x3a555c=_0x3ff829[_0x158939];return _0x3a555c;},_0x1589(_0x3b8a43,_0x210aee);}function _0x3ff8(){var _0x18e91d=['4IPDFOv','5210328JNOLZY','1301361djsZGB','109405muQUSm','auto','889427slCqTn','3115332hShlFz','882258MlyPhU','798610SkbKKM','upload','getInfo'];_0x3ff8=function(){return _0x18e91d;};return _0x3ff8();}import{uploadFile as _0x372f03,info as _0x21eb41}from'@uploadcare/upload-client';export class UploadUtils{static[_0x2a97ca(0x8a)]({file:_0x4c8f04,publicKey:_0x5e3aee,signal:_0xe62812,onProgress:_0x136224}){var _0x15c9c5=_0x2a97ca;return _0x372f03(_0x4c8f04,{'publicKey':_0x5e3aee,'store':_0x15c9c5(0x85),'signal':_0xe62812,'onProgress':_0x136224});}static[_0x2a97ca(0x8b)](_0x1547c1,_0x54f12b){return _0x21eb41(_0x1547c1,_0x54f12b);}}
|