@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251102.0 → 0.0.0-nightly-20251103.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 _0x4deb09,ObservableMixin as _0x292301}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1454a0}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x97e1ef}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x3dde40}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xe2689a}from'../../utils/uploadutils.js';import{getImageUrls as _0x217215,getImageDimension as _0x5ad4bc}from'../../utils/editingutils.js';import{isAncestor as _0x3f310b}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x292301(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x17645d,_0xfc8c0,_0x3cfdfa){super(),this['_editor']=_0x17645d,this['_dialog']=_0xfc8c0,this['_imageElement']=_0x3cfdfa,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 _0x27a8b9=this['_imageElement'],_0x13901d=_0x27a8b9['getAttribute']('uploadcareImageId'),_0x44195e=_0x27a8b9['getAttribute']('src');if(_0x13901d)await this['_loadImageInfo'](_0x13901d,_0x44195e);else{if(this['_imageCache']['has'](_0x44195e)){const _0x5b7f76=this['_imageCache']['get'](_0x44195e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b7f76['url'],this['imageDimension']=_0x5b7f76['dimension'],this['imageId']=_0x5b7f76['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4f8d5b}=this['_editor'],t=_0x4f8d5b['t'],_0x17e3c1=new _0x3dde40(_0x4f8d5b,this['imageStatus'],this['_attributes']);_0x17e3c1['bind']('status')['to'](this,'imageStatus'),_0x17e3c1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x17e3c1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x17e3c1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x17e3c1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x97e1ef,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x17e3c1,'position':_0x1454a0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x17e3c1['focus']();},'onHide':()=>{_0x17e3c1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3b9179=>!_0x3f310b(_0x3b9179,_0x17e3c1['element'])}});}['_loadImageInfo'](_0x4d9f71,_0x1b5b07){return _0xe2689a['getInfo'](_0x4d9f71,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x72b3bb=>{const {width:_0x5c6bc2,height:_0x27d451}=_0x72b3bb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b5b07,this['imageDimension']={'width':_0x5c6bc2,'height':_0x27d451},this['imageId']=_0x4d9f71;})['catch'](_0x558082=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x558082['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5b16ca,_0xaa64e){return this['_getImageAsFile'](_0x5b16ca)['then'](_0x160847=>_0xe2689a['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':_0xaa64e['signal'],'file':_0x160847,'onProgress':_0x7647c8=>{_0x7647c8&&_0x7647c8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x7647c8['value']));}}))['then'](_0x25e4d1=>{const {width:_0x15af79,height:_0x151872}=_0x25e4d1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x25e4d1['cdnUrl'],this['imageDimension']={'width':_0x15af79,'height':_0x151872},this['imageId']=_0x25e4d1['uuid'],this['imageUploadProgress']=null;const _0x1d9211=_0x5b16ca['getAttribute']('src');this['_imageCache']['set'](_0x1d9211,{'id':_0x25e4d1['uuid'],'url':_0x25e4d1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1c03f7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1c03f7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5d3b30,_0x224698){_0x5d3b30['on']('apply',(_0x536ebd,_0x25cfd6)=>{this['_replaceImage'](_0x224698,_0x25cfd6['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5d3b30['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5d3b30['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2ff3ee,_0x580173,_0x2a5c88){const _0x21de21=this['_editor'],{width:_0x4cebbe,height:_0x3d7d97}=_0x5ad4bc(_0x580173,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3247d9,imageSources:_0x1cf9ad}=_0x217215(_0x580173,_0x4cebbe);_0x21de21['model']['change'](_0x4fe8fa=>{if('$graveyard'===_0x2ff3ee['root']['rootName']){_0x21de21['execute']('insertImage',{'imageType':_0x2ff3ee['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2ff3ee['getAttributes']()),'uploadcareImageId':_0x2a5c88,'src':_0x3247d9,'sources':_0x1cf9ad,'width':_0x4cebbe,'height':_0x3d7d97}});const _0x3ab26b=_0x2ff3ee['getChildren']();_0x2ff3ee=_0x21de21['model']['document']['selection']['getSelectedElement']();for(const _0x6b676f of _0x3ab26b)_0x4fe8fa['append'](_0x4fe8fa['cloneElement'](_0x6b676f),_0x2ff3ee);}else _0x4fe8fa['setSelection'](_0x2ff3ee,'on'),_0x21de21['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2ff3ee['getAttributes']()),'uploadcareImageId':_0x2a5c88,'src':_0x3247d9,'sources':_0x1cf9ad,'width':_0x4cebbe,'height':_0x3d7d97},_0x2ff3ee);_0x4fe8fa['setSelection'](_0x2ff3ee,'on');});}async['_getImageAsFile'](_0xadc9da){const _0x2df39d=_0x4deb09['window'],_0x1f9066=_0x4deb09['document']['location']['href'],_0x3bffdd=new _0x2df39d['URL'](_0xadc9da['getAttribute']('src'),_0x1f9066);if('data:'===_0x3bffdd['protocol']){const _0x120667=_0x3bffdd['href']['split'](','),_0x1a43e5=_0x120667[0x0]['match'](/:(.*?);/)[0x1],_0x5007a7=_0x1a43e5['split']('/')[0x1],_0x3c9175=_0x2df39d['atob'](_0x120667[_0x120667['length']-0x1]);let _0x2c11ce=_0x3c9175['length'];const _0xbcf75f=new _0x2df39d['Uint8Array'](_0x2c11ce);for(;_0x2c11ce--;)_0xbcf75f[_0x2c11ce]=_0x3c9175['charCodeAt'](_0x2c11ce);return new _0x2df39d['File']([_0xbcf75f],'image.'+_0x5007a7,{'type':_0x1a43e5});}const _0x53eebc=_0x3bffdd['href']['split']('/'),_0x401dba=_0x53eebc[_0x53eebc['length']-0x1],_0x591fff=_0x401dba['split']('.')[0x1];return _0x2df39d['fetch'](_0x3bffdd['href'])['then'](_0x346749=>_0x346749['clone']()['blob']())['then'](_0x17f8a0=>new _0x2df39d['File']([_0x17f8a0],_0x401dba,{'type':'image/'+_0x591fff}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x98942d,_0x9f189a){const _0x4738f1=_0x4680,_0x303150=_0x98942d();while(!![]){try{const _0x1e7dc3=parseInt(_0x4738f1(0x148))/0x1+parseInt(_0x4738f1(0x14d))/0x2*(-parseInt(_0x4738f1(0x145))/0x3)+-parseInt(_0x4738f1(0x147))/0x4+parseInt(_0x4738f1(0x149))/0x5*(-parseInt(_0x4738f1(0x141))/0x6)+parseInt(_0x4738f1(0x143))/0x7+parseInt(_0x4738f1(0x144))/0x8+parseInt(_0x4738f1(0x150))/0x9;if(_0x1e7dc3===_0x9f189a)break;else _0x303150['push'](_0x303150['shift']());}catch(_0x72424){_0x303150['push'](_0x303150['shift']());}}}(_0x5c0c,0x942b8));function _0x5c0c(){const _0x3cb58f=['ck-uploadcare-theme','4398nnnXmd','imageSrc','6193845ZHrchk','4493376QWUJqR','475287JUlTgc','uc-cloud-image-editor','4553920sRdgKu','1189086XcNcNc','5850SEHJrB','image-edit','bindTemplate','set','8kUWnqs','setTemplate','uc-light','5410053yOQsQD'];_0x5c0c=function(){return _0x3cb58f;};return _0x5c0c();}import{View as _0xa04c0}from'ckeditor5/src/ui.js';function _0x4680(_0x8f23b0,_0x1274f2){const _0x5c0c8d=_0x5c0c();return _0x4680=function(_0x46808b,_0x52bb3e){_0x46808b=_0x46808b-0x141;let _0x5f1530=_0x5c0c8d[_0x46808b];return _0x5f1530;},_0x4680(_0x8f23b0,_0x1274f2);}export class UploadcareImageEditFormEditingView extends _0xa04c0{constructor(_0x2bb6f4,_0x3cc140){const _0x4d6d4f=_0x4680;super(_0x2bb6f4);const _0x927888=this[_0x4d6d4f(0x14b)];this[_0x4d6d4f(0x14c)](_0x4d6d4f(0x142),''),this[_0x4d6d4f(0x14e)]({'tag':_0x4d6d4f(0x146),'attributes':{..._0x3cc140,'class':[_0x4d6d4f(0x14f),_0x4d6d4f(0x151)],'ctx-name':_0x4d6d4f(0x14a),'cdn-url':_0x927888['to'](_0x4d6d4f(0x142))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x4be29d}from'ckeditor5/src/icons.js';import{ButtonView as _0x5bbe24,IconView as _0x57172e,View as _0x9f4990}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x9f4990{constructor(_0x109316){super(_0x109316);const t=_0x109316['t'];this['set']('errorType',null);const _0x3c2c7c=new _0x5bbe24(_0x109316);_0x3c2c7c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3c2c7c['withText']=!0x0,_0x3c2c7c['class']='ck-button-action',_0x3c2c7c['on']('execute',()=>{this['fire']('retry');}),_0x3c2c7c['bind']('isVisible')['to'](this,'errorType',_0x3a31a0=>'NotFound'!==_0x3a31a0);const _0x198ded=new _0x57172e();_0x198ded['content']=_0x4be29d,_0x198ded['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x57f116=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':[_0x198ded,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x57f116['to']('errorType',_0x9dca77=>t('NotFound'!==_0x9dca77?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3c2c7c]},{'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 _0x2a26a5,View as _0x7da50}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x7da50{constructor(_0x144bfe){super(_0x144bfe);const t=_0x144bfe['t'],_0x50425f=this['bindTemplate'],_0x3a8472=new _0x2a26a5();_0x3a8472['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':[_0x3a8472,{'text':_0x50425f['to']('imageUploadProgress',_0x2b12e9=>t('Loading\x20image...')+'\x20('+(_0x2b12e9||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
|
-
function
|
|
23
|
+
const _0x5cf3f0=_0x19ab;(function(_0x4bce53,_0x2285ba){const _0x5e664e=_0x19ab,_0x3486cb=_0x4bce53();while(!![]){try{const _0x4eb735=parseInt(_0x5e664e(0x19d))/0x1+parseInt(_0x5e664e(0x196))/0x2+-parseInt(_0x5e664e(0x18e))/0x3*(-parseInt(_0x5e664e(0x197))/0x4)+-parseInt(_0x5e664e(0x18f))/0x5+parseInt(_0x5e664e(0x194))/0x6*(-parseInt(_0x5e664e(0x1a9))/0x7)+-parseInt(_0x5e664e(0x1b1))/0x8*(parseInt(_0x5e664e(0x195))/0x9)+parseInt(_0x5e664e(0x199))/0xa;if(_0x4eb735===_0x2285ba)break;else _0x3486cb['push'](_0x3486cb['shift']());}catch(_0xbc8537){_0x3486cb['push'](_0x3486cb['shift']());}}}(_0x2e84,0xbf356));function _0x2e84(){const _0x4f0702=['target','ck-uploadcare-form','focus','once','retry','add','apply','element','setTemplate','fire','ready','addMany','error','div','nodeName','status','toLowerCase','_editingView','348ljvwwS','4642710qNKDkL','clear','cdnUrl','createCollection','_waitForImageEditorComponent','138ySTRFM','9cIywvM','2102240GUKUZa','6628kquays','_errorView','17386040cvFGVM','_addErrorViewListeners','ck-reset_all-excluded','addEventListener','418161YMCBle','length','getFocusableElement','filter','uploading','uc-cloud-image-editor','querySelector','detail','_setView','_loadingView','render','cancel','434203lezaRG','set','disconnect','addedNodes','observe','_items','_focusableView','_addUploadcareImageEditorListeners','2093584BYKxGp','change:status'];_0x2e84=function(){return _0x4f0702;};return _0x2e84();}import{View as _0x3f0500}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5c1473}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0xbaa170}from'./uploadcareimageeditformerrorview.js';function _0x19ab(_0x475e92,_0x4cb746){const _0x2e840f=_0x2e84();return _0x19ab=function(_0x19aba2,_0x43d6dc){_0x19aba2=_0x19aba2-0x180;let _0xe6a01c=_0x2e840f[_0x19aba2];return _0xe6a01c;},_0x19ab(_0x475e92,_0x4cb746);}import{UploadcareImageEditFormEditingView as _0x487d7d}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x4b5257}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x4b5257{[_0x5cf3f0(0x1ae)];[_0x5cf3f0(0x1a6)];[_0x5cf3f0(0x198)];[_0x5cf3f0(0x18d)];[_0x5cf3f0(0x1af)];constructor(_0x3b4403,_0x3e3344,_0x46b75d){const _0x5b25a8=_0x5cf3f0;super(_0x3b4403),this[_0x5b25a8(0x1ae)]=this[_0x5b25a8(0x192)](),this[_0x5b25a8(0x1a6)]=new _0x5c1473(_0x3b4403),this[_0x5b25a8(0x198)]=new _0xbaa170(_0x3b4403),this[_0x5b25a8(0x18d)]=new _0x487d7d(_0x3b4403,_0x46b75d),this[_0x5b25a8(0x1af)]=new _0x3f0500(_0x3b4403),this[_0x5b25a8(0x1af)][_0x5b25a8(0x184)](this[_0x5b25a8(0x19f)]()),this[_0x5b25a8(0x1aa)](_0x5b25a8(0x18b),_0x3e3344),this[_0x5b25a8(0x184)]({'tag':_0x5b25a8(0x189),'attributes':{'class':['ck',_0x5b25a8(0x19b),_0x5b25a8(0x1b4)],'tabindex':'-1'},'children':this[_0x5b25a8(0x1ae)]}),this[_0x5b25a8(0x1a5)](),this[_0x5b25a8(0x1b6)](_0x5b25a8(0x1a7),()=>{const _0x43d8cf=_0x5b25a8;this[_0x43d8cf(0x193)](this[_0x43d8cf(0x183)],_0xc5d9f7=>{const _0x194ac7=_0x43d8cf;this[_0x194ac7(0x1b0)](_0xc5d9f7);});}),this['on'](_0x5b25a8(0x1b2),()=>{const _0x26200d=_0x5b25a8;this[_0x26200d(0x1a5)]();}),this[_0x5b25a8(0x19a)]();}[_0x5cf3f0(0x1b5)](){const _0x24dd83=_0x5cf3f0;this[_0x24dd83(0x183)][_0x24dd83(0x1b5)]();}[_0x5cf3f0(0x1a5)](){const _0x10fa7c=_0x5cf3f0;switch(this[_0x10fa7c(0x1ae)][_0x10fa7c(0x190)](),this[_0x10fa7c(0x18b)]){case _0x10fa7c(0x1a1):this[_0x10fa7c(0x1ae)][_0x10fa7c(0x181)](this[_0x10fa7c(0x1a6)]);break;case _0x10fa7c(0x188):this[_0x10fa7c(0x1ae)][_0x10fa7c(0x181)](this[_0x10fa7c(0x198)]);break;case _0x10fa7c(0x186):this[_0x10fa7c(0x1ae)][_0x10fa7c(0x187)]([this[_0x10fa7c(0x18d)],this[_0x10fa7c(0x1af)]]);}}[_0x5cf3f0(0x193)](_0x1e0a80,_0x34f9be){const _0xda76ec=_0x5cf3f0,_0x422c46=_0xda76ec(0x1a2),_0x4c876b=_0x1e0a80[_0xda76ec(0x1a3)](_0x422c46);if(_0x4c876b)return _0x34f9be(_0x4c876b);const _0x567419=new MutationObserver(_0x16555e=>{const _0x1999a9=_0xda76ec,_0x4d1ed0=_0x16555e[_0x1999a9(0x1a0)](_0x1aaa96=>_0x1aaa96[_0x1999a9(0x1b3)]===_0x1e0a80&&_0x1aaa96[_0x1999a9(0x1ac)][_0x1999a9(0x19e)]>0x0&&_0x1aaa96[_0x1999a9(0x1ac)][0x0][_0x1999a9(0x18a)][_0x1999a9(0x18c)]()===_0x422c46);_0x4d1ed0[_0x1999a9(0x19e)]&&(_0x567419[_0x1999a9(0x1ab)](),_0x34f9be(_0x4d1ed0[0x0][_0x1999a9(0x1ac)][0x0]));});_0x567419[_0xda76ec(0x1ad)](_0x1e0a80,{'childList':!0x0,'subtree':!0x0});}[_0x5cf3f0(0x1b0)](_0x39c28b){const _0x3e7c78=_0x5cf3f0;_0x39c28b[_0x3e7c78(0x19c)](_0x3e7c78(0x182),_0x4749bf=>{const _0x4406ee=_0x3e7c78;this[_0x4406ee(0x185)](_0x4406ee(0x182),{'imageSrc':_0x4749bf[_0x4406ee(0x1a4)][_0x4406ee(0x191)]});}),_0x39c28b[_0x3e7c78(0x19c)](_0x3e7c78(0x1a8),()=>{const _0x45a948=_0x3e7c78;this[_0x45a948(0x185)](_0x45a948(0x1a8));});}[_0x5cf3f0(0x19a)](){const _0x4ee236=_0x5cf3f0;this[_0x4ee236(0x198)]['on'](_0x4ee236(0x180),()=>{const _0x1865f6=_0x4ee236;this[_0x1865f6(0x185)](_0x1865f6(0x180));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x209b3c=_0xf433;(function(_0x11ff76,_0x54bf26){const _0xf02e89=_0xf433,_0x4a9111=_0x11ff76();while(!![]){try{const _0x31391d=-parseInt(_0xf02e89(0x184))/0x1+parseInt(_0xf02e89(0x17a))/0x2*(parseInt(_0xf02e89(0x186))/0x3)+parseInt(_0xf02e89(0x183))/0x4+-parseInt(_0xf02e89(0x17f))/0x5*(parseInt(_0xf02e89(0x18e))/0x6)+parseInt(_0xf02e89(0x187))/0x7*(parseInt(_0xf02e89(0x175))/0x8)+parseInt(_0xf02e89(0x18d))/0x9+-parseInt(_0xf02e89(0x178))/0xa;if(_0x31391d===_0x54bf26)break;else _0x4a9111['push'](_0x4a9111['shift']());}catch(_0x3769b6){_0x4a9111['push'](_0x4a9111['shift']());}}}(_0x4440,0x43c68));import{Command as _0x15fc01}from'ckeditor5/src/core.js';function _0x4440(){const _0x31b515=['imageEditController','execute','get','283820ClLmDD','491585doNlQp','refresh','415218BTqfQt','7keNHIh','model','bind','uploadcare.allowExternalImagesEditing','isEnabled','editor','1593369iFkhxp','18yFtKHt','isActive','set','_isEditable','requires','plugins','document','1969232DYCaSj','element','imageInline','603700uyRKBt','selection','8AKgghz','config','imageBlock','unbind','getSelectedElement','363685Mxngvq'];_0x4440=function(){return _0x31b515;};return _0x4440();}import{Dialog as _0x325b89}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0xda8e76}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x15c697}from'../utils/editingutils.js';function _0xf433(_0x43fb02,_0x57f644){const _0x4440c2=_0x4440();return _0xf433=function(_0xf43336,_0x11b2f0){_0xf43336=_0xf43336-0x175;let _0x4cf8b6=_0x4440c2[_0xf43336];return _0x4cf8b6;},_0xf433(_0x43fb02,_0x57f644);}export class UploadcareImageEditCommand extends _0x15fc01{[_0x209b3c(0x180)];static get[_0x209b3c(0x192)](){return[_0x325b89];}[_0x209b3c(0x191)];constructor(_0x5e95af){const _0x4ec148=_0x209b3c;super(_0x5e95af),this[_0x4ec148(0x180)]=void 0x0,this[_0x4ec148(0x191)]=_0x15c697(_0x5e95af[_0x4ec148(0x17b)][_0x4ec148(0x182)](_0x4ec148(0x18a))||[]),this[_0x4ec148(0x190)]({'isActive':!0x1});}[_0x209b3c(0x185)](){const _0x219483=_0x209b3c,_0x54bae5=this[_0x219483(0x18c)][_0x219483(0x188)][_0x219483(0x194)][_0x219483(0x179)][_0x219483(0x17e)]();this[_0x219483(0x18b)]=this[_0x219483(0x191)](_0x54bae5);}[_0x209b3c(0x181)](){const _0x2e9d61=_0x209b3c;this[_0x2e9d61(0x180)]&&(this[_0x2e9d61(0x17d)](_0x2e9d61(0x18f)),this[_0x2e9d61(0x180)]=void 0x0);const _0x2563eb=this[_0x2e9d61(0x18c)][_0x2e9d61(0x188)][_0x2e9d61(0x194)][_0x2e9d61(0x179)][_0x2e9d61(0x17e)]();_0x2563eb&&(_0x2563eb['is'](_0x2e9d61(0x176),_0x2e9d61(0x17c))||_0x2563eb['is'](_0x2e9d61(0x176),_0x2e9d61(0x177)))&&(this[_0x2e9d61(0x180)]=new _0xda8e76(this[_0x2e9d61(0x18c)],this[_0x2e9d61(0x18c)][_0x2e9d61(0x193)][_0x2e9d61(0x182)](_0x325b89),_0x2563eb),this[_0x2e9d61(0x189)](_0x2e9d61(0x18f))['to'](this[_0x2e9d61(0x180)],_0x2e9d61(0x18f)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28c742=_0x1569;function _0x1569(_0x3026a6,_0xb7ed2d){const _0x4415f4=_0x4415();return _0x1569=function(_0x156907,_0x420a96){_0x156907=_0x156907-0x14a;let _0x5b75e1=_0x4415f4[_0x156907];return _0x5b75e1;},_0x1569(_0x3026a6,_0xb7ed2d);}function _0x4415(){const _0x5adc19=['uploadcareImageReplace','2039660YYEIqQ','945WdZfOM','ImageEditing','commands','add','4118100sWHIxk','15828IQDECh','pluginName','3742788drAXCs','2fbvvmj','requires','4066468yaeOYV','UploadcareImageEditEditing','isOfficialPlugin','uploadcareImageEdit','ImageUtils','isPremiumPlugin','3069hqoSQX','10072PMQTnu','init','804914xFetyf'];_0x4415=function(){return _0x5adc19;};return _0x4415();}(function(_0x380a1c,_0x56bb0a){const _0xa91a8c=_0x1569,_0x3de576=_0x380a1c();while(!![]){try{const _0x3e06f7=parseInt(_0xa91a8c(0x14b))/0x1*(-parseInt(_0xa91a8c(0x156))/0x2)+parseInt(_0xa91a8c(0x14a))/0x3+parseInt(_0xa91a8c(0x14d))/0x4+-parseInt(_0xa91a8c(0x159))/0x5*(parseInt(_0xa91a8c(0x15e))/0x6)+-parseInt(_0xa91a8c(0x158))/0x7+parseInt(_0xa91a8c(0x154))/0x8*(-parseInt(_0xa91a8c(0x153))/0x9)+parseInt(_0xa91a8c(0x15d))/0xa;if(_0x3e06f7===_0x56bb0a)break;else _0x3de576['push'](_0x3de576['shift']());}catch(_0x34028f){_0x3de576['push'](_0x3de576['shift']());}}}(_0x4415,0x9f234));import{Plugin as _0x314670}from'ckeditor5/src/core.js';import{Notification as _0x46a9e2}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x46be4c}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2a7954}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x18109b}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x314670{static get[_0x28c742(0x15f)](){const _0x4dc84e=_0x28c742;return _0x4dc84e(0x14e);}static get[_0x28c742(0x14c)](){const _0x2afe57=_0x28c742;return[_0x18109b,_0x46a9e2,_0x2afe57(0x151),_0x2afe57(0x15a)];}static get[_0x28c742(0x14f)](){return!0x0;}static get[_0x28c742(0x152)](){return!0x0;}[_0x28c742(0x155)](){const _0x48a87f=_0x28c742,{editor:_0x5621cc}=this;_0x5621cc[_0x48a87f(0x15b)][_0x48a87f(0x15c)](_0x48a87f(0x150),new _0x46be4c(_0x5621cc)),_0x5621cc[_0x48a87f(0x15b)][_0x48a87f(0x15c)](_0x48a87f(0x157),new _0x2a7954(_0x5621cc));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1d5acd}from'ckeditor5/src/core.js';import{ButtonView as _0x91b20d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x386fbf}from'ckeditor5/src/icons.js';import{createElement as _0x4b0b5e}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 _0x1d5acd{['_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 _0x406c73=this['editor'];_0x406c73['ui']['componentFactory']['add']('uploadcareImageEdit',_0xd9bfc9=>{const _0x4cd869=_0x406c73['commands']['get']('uploadcareImageEdit'),_0x55db15=new _0x91b20d(_0xd9bfc9),t=_0xd9bfc9['t'];return _0x55db15['set']({'icon':_0x386fbf,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x55db15['bind']('isEnabled')['to'](_0x4cd869),_0x55db15['bind']('isOn')['to'](_0x4cd869,'isActive'),this['listenTo'](_0x55db15,'execute',()=>{_0x406c73['execute']('uploadcareImageEdit'),_0x406c73['editing']['view']['focus']();}),_0x55db15;}),this['_initConfig']();}['_initConfig'](){const _0x1a3666=_0x4b0b5e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1a3666),this['listenTo'](this['editor'],'destroy',()=>{_0x1a3666['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2532f5=_0x1d07;(function(_0x2fabfd,_0x190aee){var _0x30cdd9=_0x1d07,_0x31b285=_0x2fabfd();while(!![]){try{var _0x522ffc=-parseInt(_0x30cdd9(0xa0))/0x1*(-parseInt(_0x30cdd9(0xa8))/0x2)+parseInt(_0x30cdd9(0xb2))/0x3*(parseInt(_0x30cdd9(0xaa))/0x4)+parseInt(_0x30cdd9(0xaf))/0x5*(parseInt(_0x30cdd9(0xa1))/0x6)+-parseInt(_0x30cdd9(0xb1))/0x7*(-parseInt(_0x30cdd9(0xb0))/0x8)+parseInt(_0x30cdd9(0xa7))/0x9+parseInt(_0x30cdd9(0xb3))/0xa+parseInt(_0x30cdd9(0xa2))/0xb*(-parseInt(_0x30cdd9(0xa5))/0xc);if(_0x522ffc===_0x190aee)break;else _0x31b285['push'](_0x31b285['shift']());}catch(_0x44050c){_0x31b285['push'](_0x31b285['shift']());}}}(_0x1eed,0xacc9d));function _0x1d07(_0x5dd1fc,_0x3bfe90){var _0x1eed46=_0x1eed();return _0x1d07=function(_0x1d077d,_0x5909d0){_0x1d077d=_0x1d077d-0x9f;var _0x5b1cdd=_0x1eed46[_0x1d077d];return _0x5b1cdd;},_0x1d07(_0x5dd1fc,_0x3bfe90);}import{FocusTracker as _0x3e2f47}from'ckeditor5/src/utils.js';import{View as _0x66a984,FocusCycler as _0x209d51}from'ckeditor5/src/ui.js';function _0x1eed(){var _0x3b4a14=['48Yrjrkg','bindTemplate','6814116OHBQDu','136342UjNgrI','forwardCycle','1955548ZWXZpk','focusTracker','createCollection','true','focusCycler','6693710XuQgdt','178456eHFvLK','161YNLnLl','3ROZfAl','12758540dKrCJy','getFocusableElement','7LDMXTU','6lSdttK','11393591VKzIHN','div','fire'];_0x1eed=function(){return _0x3b4a14;};return _0x1eed();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x66a984{[_0x2532f5(0xab)];[_0x2532f5(0xae)];constructor(_0x455c4a){var _0x282b41=_0x2532f5;super(_0x455c4a),this[_0x282b41(0xab)]=new _0x3e2f47(),this[_0x282b41(0xae)]=new _0x209d51({'focusables':this[_0x282b41(0xac)](),'focusTracker':this[_0x282b41(0xab)]});}[_0x2532f5(0x9f)](){var _0x78d8a5=_0x2532f5;return{'tag':_0x78d8a5(0xa3),'attributes':{'aria-hidden':_0x78d8a5(0xad),'tabindex':'0'},'on':{'focus':this[_0x78d8a5(0xa6)]['to'](()=>{var _0x53c0ea=_0x78d8a5;this[_0x53c0ea(0xae)][_0x53c0ea(0xa4)](_0x53c0ea(0xa9));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3165d8,_0x4bbd9a){const _0x10e3b9=_0x5793,_0x36b8ab=_0x3165d8();while(!![]){try{const _0x4b060b=-parseInt(_0x10e3b9(0x9a))/0x1*(parseInt(_0x10e3b9(0xb3))/0x2)+-parseInt(_0x10e3b9(0xbe))/0x3*(parseInt(_0x10e3b9(0xac))/0x4)+parseInt(_0x10e3b9(0xb9))/0x5*(-parseInt(_0x10e3b9(0x94))/0x6)+parseInt(_0x10e3b9(0xa1))/0x7+parseInt(_0x10e3b9(0x98))/0x8+parseInt(_0x10e3b9(0xc0))/0x9+parseInt(_0x10e3b9(0xa6))/0xa;if(_0x4b060b===_0x4bbd9a)break;else _0x36b8ab['push'](_0x36b8ab['shift']());}catch(_0x5f2dea){_0x36b8ab['push'](_0x36b8ab['shift']());}}}(_0x2d1d,0x84901));import{global as _0x189398,DomEmitterMixin as _0x203358}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x504b08){const _0x4222ed=_0x5793,_0x27fd02=z(_0x504b08);return _0x8fa6eb=>!(!_0x8fa6eb||!_0x8fa6eb['is'](_0x4222ed(0x93),_0x4222ed(0xc7))&&!_0x8fa6eb['is'](_0x4222ed(0x93),_0x4222ed(0xa2)))&&(!!_0x8fa6eb[_0x4222ed(0x9f)](_0x4222ed(0xa8))||!!_0x8fa6eb[_0x4222ed(0x9f)](_0x4222ed(0xbb))&&_0x27fd02(_0x8fa6eb[_0x4222ed(0xad)](_0x4222ed(0xbb))));}export function getImageUrls(_0x1653d4,_0x51b38d){const _0x4864ce=_0x5793,_0x50f28=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x4864ce(0xb0)](_0x39db08=>_0x39db08<=_0x51b38d)[_0x4864ce(0xa7)](_0x5eafcf=>_0x1653d4[_0x4864ce(0xbc)](/\/$/,'')+_0x4864ce(0xab)+_0x5eafcf+_0x4864ce(0xbf)+_0x5eafcf+'w');return{'imageFallbackUrl':_0x1653d4,'imageSources':[{'srcset':_0x50f28[_0x4864ce(0xc5)](',\x20'),'sizes':_0x4864ce(0x92)+_0x51b38d+_0x4864ce(0xb7)+_0x51b38d+'px','type':_0x4864ce(0x9b)}]};}function _0x5793(_0x4565a5,_0x21f764){const _0x2d1d5b=_0x2d1d();return _0x5793=function(_0x5793bb,_0x36600d){_0x5793bb=_0x5793bb-0x92;let _0x2d60e0=_0x2d1d5b[_0x5793bb];return _0x2d60e0;},_0x5793(_0x4565a5,_0x21f764);}export function getImageDimension(_0x44de51,_0x10ac63,_0x37cbc6){const _0x4747b1=_0x5793,_0x641df1=_0x44de51[_0x4747b1(0xc2)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x641df1?parseInt(_0x641df1[0x1],0xa):_0x10ac63,'height':_0x641df1?parseInt(_0x641df1[0x2],0xa):_0x37cbc6};}function _0x2d1d(){const _0x117ac9=['stopListening','isArray','filter','findViewImgElement','view','96KCmvnD','image-processing','location','change','px)\x20100vw,\x20','width','5qoGHoL','domConverter','src','replace','load','308244jerOvR','x/\x20','4166307fMagnJ','removeStyle','match','mapper','editing','join','setStyle','imageBlock','some','removeClass','function','(max-width:\x20','element','6210588RbaTJm','addClass','document','baseURI','3891232KGdXVs','viewToDom','9059hxuxKi','image/webp','height','get','toViewElement','hasAttribute','ImageUtils','1569281qwKTwT','imageInline','origin','window','aspect-ratio','16613810BlwyCI','map','uploadcareImageId','listenTo','plugins','/-/resize/','32snaBQu','getAttribute'];_0x2d1d=function(){return _0x117ac9;};return _0x2d1d();}export function showImageProcessingIndicator(_0x39f00f,_0x48ff72){const _0xb81191=_0x5793,_0x41cffb=new(_0x203358())(),_0x3eb72d=_0x39f00f[_0xb81191(0xaa)][_0xb81191(0x9d)](_0xb81191(0xa0)),_0x461f39=_0x39f00f[_0xb81191(0xc4)][_0xb81191(0xc3)][_0xb81191(0x9e)](_0x48ff72),_0x29e4ab=_0x3eb72d[_0xb81191(0xb1)](_0x461f39),_0x2f8741=_0x39f00f[_0xb81191(0xc4)][_0xb81191(0xb2)][_0xb81191(0xba)][_0xb81191(0x99)](_0x29e4ab),_0x1129cc=_0x48ff72[_0xb81191(0xad)](_0xb81191(0xb8)),_0x4ee91e=_0x48ff72[_0xb81191(0xad)](_0xb81191(0x9c)),_0x5ee293=_0xb81191(0xb4);_0x39f00f[_0xb81191(0xc4)][_0xb81191(0xb2)][_0xb81191(0xb6)](_0x6615e3=>{const _0x55cd7d=_0xb81191;_0x6615e3[_0x55cd7d(0x95)](_0x5ee293,_0x461f39),_0x6615e3[_0x55cd7d(0xc6)](_0x55cd7d(0xa5),_0x1129cc+'/'+_0x4ee91e,_0x29e4ab);}),_0x41cffb[_0xb81191(0xa9)](_0x2f8741,_0xb81191(0xbd),()=>{const _0x4dc059=_0xb81191;_0x41cffb[_0x4dc059(0xae)](_0x2f8741,_0x4dc059(0xbd)),_0x39f00f[_0x4dc059(0xc4)][_0x4dc059(0xb2)][_0x4dc059(0xb6)](_0x33b7cf=>{const _0xe90a8f=_0x4dc059;_0x33b7cf[_0xe90a8f(0xc9)](_0x5ee293,_0x461f39),_0x33b7cf[_0xe90a8f(0xc1)](_0xe90a8f(0xa5),_0x29e4ab);});});}function z(_0x1ea72e){const _0x270455=_0x5793;if(Array[_0x270455(0xaf)](_0x1ea72e)){const _0x331147=_0x1ea72e[_0x270455(0xa7)](z);return _0x2adf2a=>_0x331147[_0x270455(0xc8)](_0x14c8d6=>_0x14c8d6(_0x2adf2a));}if(_0x270455(0xa3)==_0x1ea72e){const _0x272b84=_0x189398[_0x270455(0xa4)][_0x270455(0xb5)][_0x270455(0xa3)];return _0x108d7e=>new URL(_0x108d7e,_0x189398[_0x270455(0x96)][_0x270455(0x97)])[_0x270455(0xa3)]==_0x272b84;}return _0x270455(0xca)==typeof _0x1ea72e?_0x1ea72e:_0x1ea72e instanceof RegExp?_0x681dcb=>!(!_0x681dcb[_0x270455(0xc2)](_0x1ea72e)&&!_0x681dcb[_0x270455(0xbc)](/^https?:\/\//,'')[_0x270455(0xc2)](_0x1ea72e)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2573(){var _0x3b533e=['includes','167836rJJcfY','2887423teDWGv','485650JpizmB','844744nbtVOd','target','271604opbLhu','3ACMrzL','18HpXqwV','1395870NSuQmP','21pFVuDj','1311552KrKZbs','21Idnbit'];_0x2573=function(){return _0x3b533e;};return _0x2573();}(function(_0xbabbbd,_0x4a1fd8){var _0x5f2f64=_0x1805,_0x13587a=_0xbabbbd();while(!![]){try{var _0xfc75fe=parseInt(_0x5f2f64(0x8b))/0x1*(-parseInt(_0x5f2f64(0x92))/0x2)+parseInt(_0x5f2f64(0x8e))/0x3*(parseInt(_0x5f2f64(0x8a))/0x4)+-parseInt(_0x5f2f64(0x87))/0x5+-parseInt(_0x5f2f64(0x8f))/0x6+-parseInt(_0x5f2f64(0x90))/0x7*(-parseInt(_0x5f2f64(0x88))/0x8)+parseInt(_0x5f2f64(0x8c))/0x9*(parseInt(_0x5f2f64(0x8d))/0xa)+-parseInt(_0x5f2f64(0x93))/0xb;if(_0xfc75fe===_0x4a1fd8)break;else _0x13587a['push'](_0x13587a['shift']());}catch(_0x2ce38e){_0x13587a['push'](_0x13587a['shift']());}}}(_0x2573,0x3ae8b));function _0x1805(_0x5db836,_0x501c3d){var _0x257363=_0x2573();return _0x1805=function(_0x180555,_0x2e3365){_0x180555=_0x180555-0x87;var _0x109ebd=_0x257363[_0x180555];return _0x109ebd;},_0x1805(_0x5db836,_0x501c3d);}import{getAncestors as _0x2b17e7}from'ckeditor5/src/utils.js';export function isAncestor(_0x14f999,_0x903319){var _0x581be0=_0x1805;return _0x2b17e7(_0x14f999[_0x581be0(0x89)])[_0x581be0(0x91)](_0x903319);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x4a14(_0x4e10e5,_0x1a3b85){var _0x5d8722=_0x5d87();return _0x4a14=function(_0x4a14de,_0xcd94f3){_0x4a14de=_0x4a14de-0x86;var _0x2cce35=_0x5d8722[_0x4a14de];return _0x2cce35;},_0x4a14(_0x4e10e5,_0x1a3b85);}function _0x5d87(){var _0x345df9=['310884ioqGco','50Ufxomy','upload','135448OudMKC','getInfo','334488wUSAhu','53377EvURWe','35oFVbRk','1510536utsCtm','3151971xSxvCy','10xdfgSH','143742YUjgqg'];_0x5d87=function(){return _0x345df9;};return _0x5d87();}var _0x4cd6fd=_0x4a14;(function(_0x117b9e,_0x52352b){var _0x483085=_0x4a14,_0x45760f=_0x117b9e();while(!![]){try{var _0x163b9b=-parseInt(_0x483085(0x91))/0x1+-parseInt(_0x483085(0x8b))/0x2+parseInt(_0x483085(0x90))/0x3+-parseInt(_0x483085(0x8e))/0x4*(parseInt(_0x483085(0x8c))/0x5)+-parseInt(_0x483085(0x8a))/0x6*(-parseInt(_0x483085(0x86))/0x7)+parseInt(_0x483085(0x87))/0x8+-parseInt(_0x483085(0x88))/0x9*(-parseInt(_0x483085(0x89))/0xa);if(_0x163b9b===_0x52352b)break;else _0x45760f['push'](_0x45760f['shift']());}catch(_0x2a04b2){_0x45760f['push'](_0x45760f['shift']());}}}(_0x5d87,0x3669e));import{uploadFile as _0x5633b4,info as _0x348aa9}from'@uploadcare/upload-client';export class UploadUtils{static[_0x4cd6fd(0x8d)]({file:_0x38c4a8,..._0x9cd479}){return _0x5633b4(_0x38c4a8,_0x9cd479);}static[_0x4cd6fd(0x8f)](_0xecf20c,_0xcc5abb){return _0x348aa9(_0xecf20c,_0xcc5abb);}}
|