@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251031.0 → 0.0.0-nightly-20251102.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 _0x5393b5,ObservableMixin as _0x1a8fd1}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x359cbc}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3808b8}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x36cd16}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x8d78f0}from'../../utils/uploadutils.js';import{getImageUrls as _0x45a5b5,getImageDimension as _0xc47749}from'../../utils/editingutils.js';import{isAncestor as _0xe9eaaf}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1a8fd1(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x377e5b,_0x5b5068,_0x1ea9fc){super(),this['_editor']=_0x377e5b,this['_dialog']=_0x5b5068,this['_imageElement']=_0x1ea9fc,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 _0x1fb45c=this['_imageElement'],_0x23d8f9=_0x1fb45c['getAttribute']('uploadcareImageId'),_0x417ea8=_0x1fb45c['getAttribute']('src');if(_0x23d8f9)await this['_loadImageInfo'](_0x23d8f9,_0x417ea8);else{if(this['_imageCache']['has'](_0x417ea8)){const _0x4d6888=this['_imageCache']['get'](_0x417ea8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d6888['url'],this['imageDimension']=_0x4d6888['dimension'],this['imageId']=_0x4d6888['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4dc4bb}=this['_editor'],t=_0x4dc4bb['t'],_0x57abc3=new _0x36cd16(_0x4dc4bb,this['imageStatus'],this['_attributes']);_0x57abc3['bind']('status')['to'](this,'imageStatus'),_0x57abc3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x57abc3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x57abc3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x57abc3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3808b8,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x57abc3,'position':_0x359cbc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x57abc3['focus']();},'onHide':()=>{_0x57abc3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f2b74=>!_0xe9eaaf(_0x3f2b74,_0x57abc3['element'])}});}['_loadImageInfo'](_0xf80786,_0x4698bb){return _0x8d78f0['getInfo'](_0xf80786,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3c41e3=>{const {width:_0x4fbd78,height:_0x217f9b}=_0x3c41e3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4698bb,this['imageDimension']={'width':_0x4fbd78,'height':_0x217f9b},this['imageId']=_0xf80786;})['catch'](_0x2cc3c2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2cc3c2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x272800,_0x23d54f){return this['_getImageAsFile'](_0x272800)['then'](_0x1bbe8a=>_0x8d78f0['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':_0x23d54f['signal'],'file':_0x1bbe8a,'onProgress':_0x2df4f2=>{_0x2df4f2&&_0x2df4f2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2df4f2['value']));}}))['then'](_0xce97ea=>{const {width:_0x477a26,height:_0x2021ed}=_0xce97ea['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xce97ea['cdnUrl'],this['imageDimension']={'width':_0x477a26,'height':_0x2021ed},this['imageId']=_0xce97ea['uuid'],this['imageUploadProgress']=null;const _0x356971=_0x272800['getAttribute']('src');this['_imageCache']['set'](_0x356971,{'id':_0xce97ea['uuid'],'url':_0xce97ea['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5687b7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5687b7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2dc2f7,_0x30490e){_0x2dc2f7['on']('apply',(_0x461d68,_0x23a987)=>{this['_replaceImage'](_0x30490e,_0x23a987['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2dc2f7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2dc2f7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3ca52c,_0x569f8a,_0x3a74ad){const _0x20db06=this['_editor'],{width:_0x35b308,height:_0x1a2f0f}=_0xc47749(_0x569f8a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x222d09,imageSources:_0x2f8bb5}=_0x45a5b5(_0x569f8a,_0x35b308);_0x20db06['model']['change'](_0x468c66=>{if('$graveyard'===_0x3ca52c['root']['rootName']){_0x20db06['execute']('insertImage',{'imageType':_0x3ca52c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3ca52c['getAttributes']()),'uploadcareImageId':_0x3a74ad,'src':_0x222d09,'sources':_0x2f8bb5,'width':_0x35b308,'height':_0x1a2f0f}});const _0x4f856e=_0x3ca52c['getChildren']();_0x3ca52c=_0x20db06['model']['document']['selection']['getSelectedElement']();for(const _0x1bc1d6 of _0x4f856e)_0x468c66['append'](_0x468c66['cloneElement'](_0x1bc1d6),_0x3ca52c);}else _0x468c66['setSelection'](_0x3ca52c,'on'),_0x20db06['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3ca52c['getAttributes']()),'uploadcareImageId':_0x3a74ad,'src':_0x222d09,'sources':_0x2f8bb5,'width':_0x35b308,'height':_0x1a2f0f},_0x3ca52c);_0x468c66['setSelection'](_0x3ca52c,'on');});}async['_getImageAsFile'](_0x3f7e47){const _0x368d98=_0x5393b5['window'],_0x291a1b=_0x5393b5['document']['location']['href'],_0x55c8a5=new _0x368d98['URL'](_0x3f7e47['getAttribute']('src'),_0x291a1b);if('data:'===_0x55c8a5['protocol']){const _0x1ef721=_0x55c8a5['href']['split'](','),_0x956737=_0x1ef721[0x0]['match'](/:(.*?);/)[0x1],_0x5b8786=_0x956737['split']('/')[0x1],_0x33bc5c=_0x368d98['atob'](_0x1ef721[_0x1ef721['length']-0x1]);let _0x4dd05f=_0x33bc5c['length'];const _0x13d3d0=new _0x368d98['Uint8Array'](_0x4dd05f);for(;_0x4dd05f--;)_0x13d3d0[_0x4dd05f]=_0x33bc5c['charCodeAt'](_0x4dd05f);return new _0x368d98['File']([_0x13d3d0],'image.'+_0x5b8786,{'type':_0x956737});}const _0x140d7e=_0x55c8a5['href']['split']('/'),_0x591694=_0x140d7e[_0x140d7e['length']-0x1],_0x4aebf3=_0x591694['split']('.')[0x1];return _0x368d98['fetch'](_0x55c8a5['href'])['then'](_0x5ad5ec=>_0x5ad5ec['clone']()['blob']())['then'](_0x3a5044=>new _0x368d98['File']([_0x3a5044],_0x591694,{'type':'image/'+_0x4aebf3}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x25da(_0x3ad1f6,_0x298c89){const _0x291a7b=_0x291a();return _0x25da=function(_0x25dade,_0x307b49){_0x25dade=_0x25dade-0x13e;let _0x31a213=_0x291a7b[_0x25dade];return _0x31a213;},_0x25da(_0x3ad1f6,_0x298c89);}(function(_0x413c79,_0x1f6412){const _0x474086=_0x25da,_0x2f8f30=_0x413c79();while(!![]){try{const _0x519637=-parseInt(_0x474086(0x13f))/0x1*(-parseInt(_0x474086(0x14f))/0x2)+parseInt(_0x474086(0x144))/0x3*(parseInt(_0x474086(0x14a))/0x4)+-parseInt(_0x474086(0x148))/0x5+parseInt(_0x474086(0x146))/0x6*(-parseInt(_0x474086(0x141))/0x7)+-parseInt(_0x474086(0x13e))/0x8*(-parseInt(_0x474086(0x149))/0x9)+-parseInt(_0x474086(0x14b))/0xa+-parseInt(_0x474086(0x147))/0xb*(-parseInt(_0x474086(0x14e))/0xc);if(_0x519637===_0x1f6412)break;else _0x2f8f30['push'](_0x2f8f30['shift']());}catch(_0x1b2532){_0x2f8f30['push'](_0x2f8f30['shift']());}}}(_0x291a,0x1df31));import{View as _0x36f365}from'ckeditor5/src/ui.js';function _0x291a(){const _0x4ce38e=['bindTemplate','27928pGDBMt','2181FfZZHK','imageSrc','14vLQRTg','uc-cloud-image-editor','image-edit','9MSbziN','uc-light','589686eIhvsk','11oMbJvX','1196365RjSPpM','495mWhNSo','28972XSAsPl','242280BfsNrG','setTemplate','ck-uploadcare-theme','3904584NtTLkJ','40HpmFQq','set'];_0x291a=function(){return _0x4ce38e;};return _0x291a();}export class UploadcareImageEditFormEditingView extends _0x36f365{constructor(_0x1c9cad,_0x7bcd2){const _0xc0927b=_0x25da;super(_0x1c9cad);const _0x3bedd0=this[_0xc0927b(0x151)];this[_0xc0927b(0x150)](_0xc0927b(0x140),''),this[_0xc0927b(0x14c)]({'tag':_0xc0927b(0x142),'attributes':{..._0x7bcd2,'class':[_0xc0927b(0x145),_0xc0927b(0x14d)],'ctx-name':_0xc0927b(0x143),'cdn-url':_0x3bedd0['to'](_0xc0927b(0x140))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x1679fc}from'ckeditor5/src/icons.js';import{ButtonView as _0x2451f1,IconView as _0x5047b4,View as _0x1e7719}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x1e7719{constructor(_0x25ea50){super(_0x25ea50);const t=_0x25ea50['t'];this['set']('errorType',null);const _0x20de2b=new _0x2451f1(_0x25ea50);_0x20de2b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x20de2b['withText']=!0x0,_0x20de2b['class']='ck-button-action',_0x20de2b['on']('execute',()=>{this['fire']('retry');}),_0x20de2b['bind']('isVisible')['to'](this,'errorType',_0x3e157a=>'NotFound'!==_0x3e157a);const _0x334f55=new _0x5047b4();_0x334f55['content']=_0x1679fc,_0x334f55['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x502954=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':[_0x334f55,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x502954['to']('errorType',_0x2d3607=>t('NotFound'!==_0x2d3607?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x20de2b]},{'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 _0x182a9f,View as _0x1e8753}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x1e8753{constructor(_0x2be375){super(_0x2be375);const t=_0x2be375['t'],_0x2b7ea1=this['bindTemplate'],_0x244ea0=new _0x182a9f();_0x244ea0['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':[_0x244ea0,{'text':_0x2b7ea1['to']('imageUploadProgress',_0x19713f=>t('Loading\x20image...')+'\x20('+(_0x19713f||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
|
+
function _0x5838(){const _0x495bd9=['querySelector','uc-cloud-image-editor','_waitForImageEditorComponent','apply','getFocusableElement','nodeName','status','1998824ouiEIQ','10QTcfGj','div','createCollection','render','_addUploadcareImageEditorListeners','_addErrorViewListeners','setTemplate','6231255cJnWxb','addEventListener','904828bimueR','addedNodes','ready','detail','set','7147872DFYlmK','addMany','_errorView','ck-uploadcare-form','2GoeTJH','error','_editingView','observe','6LBsBnC','cdnUrl','_loadingView','_focusableView','focus','_items','element','length','fire','change:status','disconnect','target','2510637RsQAQk','_setView','once','toLowerCase','uploading','ck-reset_all-excluded','clear','300622BPAwqk','32702031fXIQtE','cancel','retry','add','filter'];_0x5838=function(){return _0x495bd9;};return _0x5838();}const _0x13b682=_0x4ca2;(function(_0x5ab2b2,_0x5c22d2){const _0x200fde=_0x4ca2,_0x10ed7a=_0x5ab2b2();while(!![]){try{const _0x2935ee=parseInt(_0x200fde(0x128))/0x1*(-parseInt(_0x200fde(0x11f))/0x2)+parseInt(_0x200fde(0x138))/0x3+-parseInt(_0x200fde(0x115))/0x4+-parseInt(_0x200fde(0x11d))/0x5*(parseInt(_0x200fde(0x12c))/0x6)+-parseInt(_0x200fde(0x108))/0x7+-parseInt(_0x200fde(0x124))/0x8+parseInt(_0x200fde(0x109))/0x9*(parseInt(_0x200fde(0x116))/0xa);if(_0x2935ee===_0x5c22d2)break;else _0x10ed7a['push'](_0x10ed7a['shift']());}catch(_0xda704c){_0x10ed7a['push'](_0x10ed7a['shift']());}}}(_0x5838,0xd7a17));function _0x4ca2(_0x385d49,_0x5751e7){const _0x5838a3=_0x5838();return _0x4ca2=function(_0x4ca2dc,_0x4b3f9e){_0x4ca2dc=_0x4ca2dc-0x108;let _0x153b00=_0x5838a3[_0x4ca2dc];return _0x153b00;},_0x4ca2(_0x385d49,_0x5751e7);}import{View as _0x4ea12d}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x460d67}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x29a13f}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x293e21}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0xdddb61}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0xdddb61{[_0x13b682(0x131)];[_0x13b682(0x12e)];[_0x13b682(0x126)];[_0x13b682(0x12a)];[_0x13b682(0x12f)];constructor(_0x31441c,_0x3d6a71,_0x211ffd){const _0x26f4e1=_0x13b682;super(_0x31441c),this[_0x26f4e1(0x131)]=this[_0x26f4e1(0x118)](),this[_0x26f4e1(0x12e)]=new _0x460d67(_0x31441c),this[_0x26f4e1(0x126)]=new _0x29a13f(_0x31441c),this[_0x26f4e1(0x12a)]=new _0x293e21(_0x31441c,_0x211ffd),this[_0x26f4e1(0x12f)]=new _0x4ea12d(_0x31441c),this[_0x26f4e1(0x12f)][_0x26f4e1(0x11c)](this[_0x26f4e1(0x112)]()),this[_0x26f4e1(0x123)](_0x26f4e1(0x114),_0x3d6a71),this[_0x26f4e1(0x11c)]({'tag':_0x26f4e1(0x117),'attributes':{'class':['ck',_0x26f4e1(0x13d),_0x26f4e1(0x127)],'tabindex':'-1'},'children':this[_0x26f4e1(0x131)]}),this[_0x26f4e1(0x139)](),this[_0x26f4e1(0x13a)](_0x26f4e1(0x119),()=>{const _0x4670fc=_0x26f4e1;this[_0x4670fc(0x110)](this[_0x4670fc(0x132)],_0x38815f=>{const _0x57af02=_0x4670fc;this[_0x57af02(0x11a)](_0x38815f);});}),this['on'](_0x26f4e1(0x135),()=>{const _0x239e06=_0x26f4e1;this[_0x239e06(0x139)]();}),this[_0x26f4e1(0x11b)]();}[_0x13b682(0x130)](){const _0x21f7eb=_0x13b682;this[_0x21f7eb(0x132)][_0x21f7eb(0x130)]();}[_0x13b682(0x139)](){const _0x53ccf3=_0x13b682;switch(this[_0x53ccf3(0x131)][_0x53ccf3(0x13e)](),this[_0x53ccf3(0x114)]){case _0x53ccf3(0x13c):this[_0x53ccf3(0x131)][_0x53ccf3(0x10c)](this[_0x53ccf3(0x12e)]);break;case _0x53ccf3(0x129):this[_0x53ccf3(0x131)][_0x53ccf3(0x10c)](this[_0x53ccf3(0x126)]);break;case _0x53ccf3(0x121):this[_0x53ccf3(0x131)][_0x53ccf3(0x125)]([this[_0x53ccf3(0x12a)],this[_0x53ccf3(0x12f)]]);}}[_0x13b682(0x110)](_0x160607,_0xab7d64){const _0x3d35e5=_0x13b682,_0x2d7a0c=_0x3d35e5(0x10f),_0x53b369=_0x160607[_0x3d35e5(0x10e)](_0x2d7a0c);if(_0x53b369)return _0xab7d64(_0x53b369);const _0x348db8=new MutationObserver(_0x430a45=>{const _0x4d6893=_0x3d35e5,_0x3aa0eb=_0x430a45[_0x4d6893(0x10d)](_0x549bb4=>_0x549bb4[_0x4d6893(0x137)]===_0x160607&&_0x549bb4[_0x4d6893(0x120)][_0x4d6893(0x133)]>0x0&&_0x549bb4[_0x4d6893(0x120)][0x0][_0x4d6893(0x113)][_0x4d6893(0x13b)]()===_0x2d7a0c);_0x3aa0eb[_0x4d6893(0x133)]&&(_0x348db8[_0x4d6893(0x136)](),_0xab7d64(_0x3aa0eb[0x0][_0x4d6893(0x120)][0x0]));});_0x348db8[_0x3d35e5(0x12b)](_0x160607,{'childList':!0x0,'subtree':!0x0});}[_0x13b682(0x11a)](_0x520cf1){const _0xeb1d39=_0x13b682;_0x520cf1[_0xeb1d39(0x11e)](_0xeb1d39(0x111),_0x103c32=>{const _0x11da00=_0xeb1d39;this[_0x11da00(0x134)](_0x11da00(0x111),{'imageSrc':_0x103c32[_0x11da00(0x122)][_0x11da00(0x12d)]});}),_0x520cf1[_0xeb1d39(0x11e)](_0xeb1d39(0x10a),()=>{const _0x22ebb1=_0xeb1d39;this[_0x22ebb1(0x134)](_0x22ebb1(0x10a));});}[_0x13b682(0x11b)](){const _0x191ab5=_0x13b682;this[_0x191ab5(0x126)]['on'](_0x191ab5(0x10b),()=>{const _0x31c7a8=_0x191ab5;this[_0x31c7a8(0x134)](_0x31c7a8(0x10b));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c9d65=_0x5a80;(function(_0x35331a,_0x2d2906){const _0x187d92=_0x5a80,_0x21c81b=_0x35331a();while(!![]){try{const _0x368ba8=-parseInt(_0x187d92(0x119))/0x1+parseInt(_0x187d92(0x11a))/0x2+-parseInt(_0x187d92(0x10f))/0x3+-parseInt(_0x187d92(0x118))/0x4*(-parseInt(_0x187d92(0x120))/0x5)+-parseInt(_0x187d92(0x112))/0x6+parseInt(_0x187d92(0x116))/0x7+parseInt(_0x187d92(0x114))/0x8*(parseInt(_0x187d92(0x127))/0x9);if(_0x368ba8===_0x2d2906)break;else _0x21c81b['push'](_0x21c81b['shift']());}catch(_0x465bfb){_0x21c81b['push'](_0x21c81b['shift']());}}}(_0x5b6f,0x9ffa1));import{Command as _0xe781cd}from'ckeditor5/src/core.js';import{Dialog as _0x31f509}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x9e204f}from'./ui/uploadcareimageeditcontroller.js';function _0x5a80(_0x3acbd7,_0x4e38b8){const _0x5b6f41=_0x5b6f();return _0x5a80=function(_0x5a80c5,_0x34811b){_0x5a80c5=_0x5a80c5-0x10c;let _0xf5c1a0=_0x5b6f41[_0x5a80c5];return _0xf5c1a0;},_0x5a80(_0x3acbd7,_0x4e38b8);}import{createEditabilityChecker as _0x4e0320}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0xe781cd{[_0x2c9d65(0x126)];static get[_0x2c9d65(0x122)](){return[_0x31f509];}[_0x2c9d65(0x113)];constructor(_0x26eb17){const _0x184cb5=_0x2c9d65;super(_0x26eb17),this[_0x184cb5(0x126)]=void 0x0,this[_0x184cb5(0x113)]=_0x4e0320(_0x26eb17[_0x184cb5(0x10e)][_0x184cb5(0x11d)](_0x184cb5(0x123))||[]),this[_0x184cb5(0x12a)]({'isActive':!0x1});}[_0x2c9d65(0x11e)](){const _0x539c83=_0x2c9d65,_0x578a5b=this[_0x539c83(0x115)][_0x539c83(0x110)][_0x539c83(0x111)][_0x539c83(0x10d)][_0x539c83(0x121)]();this[_0x539c83(0x129)]=this[_0x539c83(0x113)](_0x578a5b);}[_0x2c9d65(0x124)](){const _0xf7d62=_0x2c9d65;this[_0xf7d62(0x126)]&&(this[_0xf7d62(0x10c)](_0xf7d62(0x11b)),this[_0xf7d62(0x126)]=void 0x0);const _0x4f84bf=this[_0xf7d62(0x115)][_0xf7d62(0x110)][_0xf7d62(0x111)][_0xf7d62(0x10d)][_0xf7d62(0x121)]();_0x4f84bf&&(_0x4f84bf['is'](_0xf7d62(0x125),_0xf7d62(0x11c))||_0x4f84bf['is'](_0xf7d62(0x125),_0xf7d62(0x11f)))&&(this[_0xf7d62(0x126)]=new _0x9e204f(this[_0xf7d62(0x115)],this[_0xf7d62(0x115)][_0xf7d62(0x128)][_0xf7d62(0x11d)](_0x31f509),_0x4f84bf),this[_0xf7d62(0x117)](_0xf7d62(0x11b))['to'](this[_0xf7d62(0x126)],_0xf7d62(0x11b)));}}function _0x5b6f(){const _0x3cadb1=['6215bAbntK','getSelectedElement','requires','uploadcare.allowExternalImagesEditing','execute','element','imageEditController','342GuXTWs','plugins','isEnabled','set','unbind','selection','config','2600715izmlrd','model','document','583242RyptMW','_isEditable','20728fmjTkI','editor','938140YFsxHQ','bind','2456TKvmIk','431120AaPPLV','2109634QhVVOD','isActive','imageBlock','get','refresh','imageInline'];_0x5b6f=function(){return _0x3cadb1;};return _0x5b6f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1027ff=_0x2e18;(function(_0x12ca68,_0x3febc5){const _0x58cca3=_0x2e18,_0x4d4ae9=_0x12ca68();while(!![]){try{const _0x1b669e=-parseInt(_0x58cca3(0xf4))/0x1*(-parseInt(_0x58cca3(0xf2))/0x2)+parseInt(_0x58cca3(0xe6))/0x3*(-parseInt(_0x58cca3(0xec))/0x4)+parseInt(_0x58cca3(0xef))/0x5*(parseInt(_0x58cca3(0xee))/0x6)+-parseInt(_0x58cca3(0xf3))/0x7+parseInt(_0x58cca3(0xed))/0x8+-parseInt(_0x58cca3(0xe4))/0x9*(-parseInt(_0x58cca3(0xe2))/0xa)+-parseInt(_0x58cca3(0xe8))/0xb;if(_0x1b669e===_0x3febc5)break;else _0x4d4ae9['push'](_0x4d4ae9['shift']());}catch(_0x7f0bbf){_0x4d4ae9['push'](_0x4d4ae9['shift']());}}}(_0xc79f,0x9fe58));import{Plugin as _0x4905f8}from'ckeditor5/src/core.js';import{Notification as _0x5a1686}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x367f0c}from'./uploadcareimageeditcommand.js';function _0xc79f(){const _0x4c864e=['isOfficialPlugin','pluginName','3452230UaZZYL','uploadcareImageReplace','18GMrFBH','init','9kslTDz','isPremiumPlugin','14419614dcsXFe','uploadcareImageEdit','commands','requires','105076jAzOBC','5727208qyhajh','3158904gXeibJ','5UtXBAD','ImageEditing','ImageUtils','2vcqNmW','115864yCtugY','128338VqOoir','UploadcareImageEditEditing','add'];_0xc79f=function(){return _0x4c864e;};return _0xc79f();}import{UploadcareImageReplaceCommand as _0x3185a2}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x178afc}from'../uploadcareediting.js';function _0x2e18(_0x3eeb3e,_0x5f23b9){const _0xc79f3d=_0xc79f();return _0x2e18=function(_0x2e186f,_0x3b2e){_0x2e186f=_0x2e186f-0xe1;let _0x3cd342=_0xc79f3d[_0x2e186f];return _0x3cd342;},_0x2e18(_0x3eeb3e,_0x5f23b9);}export class UploadcareImageEditEditing extends _0x4905f8{static get[_0x1027ff(0xe1)](){const _0x4adf53=_0x1027ff;return _0x4adf53(0xf5);}static get[_0x1027ff(0xeb)](){const _0x23aa81=_0x1027ff;return[_0x178afc,_0x5a1686,_0x23aa81(0xf1),_0x23aa81(0xf0)];}static get[_0x1027ff(0xf7)](){return!0x0;}static get[_0x1027ff(0xe7)](){return!0x0;}[_0x1027ff(0xe5)](){const _0x5ccac8=_0x1027ff,{editor:_0x3b5269}=this;_0x3b5269[_0x5ccac8(0xea)][_0x5ccac8(0xf6)](_0x5ccac8(0xe9),new _0x367f0c(_0x3b5269)),_0x3b5269[_0x5ccac8(0xea)][_0x5ccac8(0xf6)](_0x5ccac8(0xe3),new _0x3185a2(_0x3b5269));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x529d05}from'ckeditor5/src/core.js';import{ButtonView as _0x4dc104}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2d32ad}from'ckeditor5/src/icons.js';import{createElement as _0x98553a}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 _0x529d05{['_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 _0x4311d4=this['editor'];_0x4311d4['ui']['componentFactory']['add']('uploadcareImageEdit',_0xcd742a=>{const _0x4e4206=_0x4311d4['commands']['get']('uploadcareImageEdit'),_0x14649e=new _0x4dc104(_0xcd742a),t=_0xcd742a['t'];return _0x14649e['set']({'icon':_0x2d32ad,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x14649e['bind']('isEnabled')['to'](_0x4e4206),_0x14649e['bind']('isOn')['to'](_0x4e4206,'isActive'),this['listenTo'](_0x14649e,'execute',()=>{_0x4311d4['execute']('uploadcareImageEdit'),_0x4311d4['editing']['view']['focus']();}),_0x14649e;}),this['_initConfig']();}['_initConfig'](){const _0x49ae68=_0x98553a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x49ae68),this['listenTo'](this['editor'],'destroy',()=>{_0x49ae68['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3944f7=_0x6a3f;(function(_0x677f45,_0x5da52a){var _0x1fd71d=_0x6a3f,_0x5925e3=_0x677f45();while(!![]){try{var _0x3e4adc=-parseInt(_0x1fd71d(0x12f))/0x1*(-parseInt(_0x1fd71d(0x12b))/0x2)+parseInt(_0x1fd71d(0x132))/0x3*(parseInt(_0x1fd71d(0x131))/0x4)+-parseInt(_0x1fd71d(0x129))/0x5*(parseInt(_0x1fd71d(0x12a))/0x6)+parseInt(_0x1fd71d(0x127))/0x7*(parseInt(_0x1fd71d(0x133))/0x8)+-parseInt(_0x1fd71d(0x121))/0x9*(parseInt(_0x1fd71d(0x126))/0xa)+parseInt(_0x1fd71d(0x122))/0xb+-parseInt(_0x1fd71d(0x12e))/0xc*(-parseInt(_0x1fd71d(0x11e))/0xd);if(_0x3e4adc===_0x5da52a)break;else _0x5925e3['push'](_0x5925e3['shift']());}catch(_0x5e4ba6){_0x5925e3['push'](_0x5925e3['shift']());}}}(_0x5dc6,0x67bc3));import{FocusTracker as _0x340347}from'ckeditor5/src/utils.js';function _0x5dc6(){var _0x4c086c=['focusCycler','9joWrqk','2908257CkxpsL','forwardCycle','true','bindTemplate','8176040oPqAiV','28KuHPtG','focusTracker','3401295AvGFxb','6FtpkTW','44zVgAvk','div','fire','36YOWWyn','2749oVQXoL','createCollection','2712LdEUor','3579otnZLh','1574792neiQtW','7137GQzMMi','getFocusableElement'];_0x5dc6=function(){return _0x4c086c;};return _0x5dc6();}function _0x6a3f(_0x14fc7a,_0x5f4217){var _0x5dc681=_0x5dc6();return _0x6a3f=function(_0x6a3f70,_0x1ad9d0){_0x6a3f70=_0x6a3f70-0x11e;var _0x17eca6=_0x5dc681[_0x6a3f70];return _0x17eca6;},_0x6a3f(_0x14fc7a,_0x5f4217);}import{View as _0x5f4b71,FocusCycler as _0x411c52}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x5f4b71{[_0x3944f7(0x128)];[_0x3944f7(0x120)];constructor(_0x4bc8bd){var _0xe37b9=_0x3944f7;super(_0x4bc8bd),this[_0xe37b9(0x128)]=new _0x340347(),this[_0xe37b9(0x120)]=new _0x411c52({'focusables':this[_0xe37b9(0x130)](),'focusTracker':this[_0xe37b9(0x128)]});}[_0x3944f7(0x11f)](){var _0x234181=_0x3944f7;return{'tag':_0x234181(0x12c),'attributes':{'aria-hidden':_0x234181(0x124),'tabindex':'0'},'on':{'focus':this[_0x234181(0x125)]['to'](()=>{var _0x230e55=_0x234181;this[_0x230e55(0x120)][_0x230e55(0x12d)](_0x230e55(0x123));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x137d33,_0x29c40d){const _0x4a2b36=_0x17ed,_0x5c4668=_0x137d33();while(!![]){try{const _0x1ea3c2=-parseInt(_0x4a2b36(0xa3))/0x1*(parseInt(_0x4a2b36(0xb0))/0x2)+parseInt(_0x4a2b36(0xb1))/0x3+-parseInt(_0x4a2b36(0xb8))/0x4*(-parseInt(_0x4a2b36(0xc4))/0x5)+parseInt(_0x4a2b36(0xce))/0x6+parseInt(_0x4a2b36(0xbc))/0x7+-parseInt(_0x4a2b36(0xc7))/0x8*(-parseInt(_0x4a2b36(0xbd))/0x9)+parseInt(_0x4a2b36(0xa6))/0xa*(-parseInt(_0x4a2b36(0x9a))/0xb);if(_0x1ea3c2===_0x29c40d)break;else _0x5c4668['push'](_0x5c4668['shift']());}catch(_0x569952){_0x5c4668['push'](_0x5c4668['shift']());}}}(_0x162a,0xe0885));function _0x17ed(_0x39dbde,_0x1a0bd8){const _0x162a5a=_0x162a();return _0x17ed=function(_0x17edcd,_0x211872){_0x17edcd=_0x17edcd-0x96;let _0x24151c=_0x162a5a[_0x17edcd];return _0x24151c;},_0x17ed(_0x39dbde,_0x1a0bd8);}import{global as _0x33f079,DomEmitterMixin as _0x3d0d99}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x918686){const _0x34c405=_0x17ed,_0x4c56b2=R(_0x918686);return _0x4d999c=>!(!_0x4d999c||!_0x4d999c['is'](_0x34c405(0xa8),_0x34c405(0x99))&&!_0x4d999c['is'](_0x34c405(0xa8),_0x34c405(0x9e)))&&(!!_0x4d999c[_0x34c405(0x96)](_0x34c405(0xaf))||!!_0x4d999c[_0x34c405(0x96)](_0x34c405(0xcb))&&_0x4c56b2(_0x4d999c[_0x34c405(0xc0)](_0x34c405(0xcb))));}export function getImageUrls(_0x4148fd,_0x304a59){const _0x582e76=_0x17ed,_0xf08062=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x582e76(0x97)](_0x26344b=>_0x26344b<=_0x304a59)[_0x582e76(0xbe)](_0x5b7d67=>_0x4148fd[_0x582e76(0xac)](/\/$/,'')+_0x582e76(0xa9)+_0x5b7d67+_0x582e76(0xae)+_0x5b7d67+'w');return{'imageFallbackUrl':_0x4148fd,'imageSources':[{'srcset':_0xf08062[_0x582e76(0xc2)](',\x20'),'sizes':_0x582e76(0x9c)+_0x304a59+_0x582e76(0xba)+_0x304a59+'px','type':_0x582e76(0xca)}]};}function _0x162a(){const _0x2945d9=['ImageUtils','match','toViewElement','88kyXsHm','location','px)\x20100vw,\x20','isArray','3724819Sscthb','5436JJHazg','map','some','getAttribute','findViewImgElement','join','viewToDom','36095pCTlZA','mapper','width','22424KXJYMB','domConverter','plugins','image/webp','src','addClass','get','7078884VQbEpM','listenTo','hasAttribute','filter','load','imageBlock','43496574OnOMsA','origin','(max-width:\x20','image-processing','imageInline','function','removeStyle','view','aspect-ratio','37045mLItZF','window','change','10kQAYdN','setStyle','element','/-/resize/','stopListening','baseURI','replace','document','x/\x20','uploadcareImageId','28GswrrE','5486364xfqIdp','removeClass','editing','height'];_0x162a=function(){return _0x2945d9;};return _0x162a();}export function getImageDimension(_0x1916e0,_0x1be5eb,_0x4a13c2){const _0x2dccaa=_0x17ed,_0x31fa6a=_0x1916e0[_0x2dccaa(0xb6)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x31fa6a?parseInt(_0x31fa6a[0x1],0xa):_0x1be5eb,'height':_0x31fa6a?parseInt(_0x31fa6a[0x2],0xa):_0x4a13c2};}export function showImageProcessingIndicator(_0x13ee13,_0x2efd54){const _0xf5f5de=_0x17ed,_0x548e6b=new(_0x3d0d99())(),_0x302205=_0x13ee13[_0xf5f5de(0xc9)][_0xf5f5de(0xcd)](_0xf5f5de(0xb5)),_0x4bf883=_0x13ee13[_0xf5f5de(0xb3)][_0xf5f5de(0xc5)][_0xf5f5de(0xb7)](_0x2efd54),_0x241e51=_0x302205[_0xf5f5de(0xc1)](_0x4bf883),_0x426060=_0x13ee13[_0xf5f5de(0xb3)][_0xf5f5de(0xa1)][_0xf5f5de(0xc8)][_0xf5f5de(0xc3)](_0x241e51),_0x5f5469=_0x2efd54[_0xf5f5de(0xc0)](_0xf5f5de(0xc6)),_0x65dfbc=_0x2efd54[_0xf5f5de(0xc0)](_0xf5f5de(0xb4)),_0x457f7d=_0xf5f5de(0x9d);_0x13ee13[_0xf5f5de(0xb3)][_0xf5f5de(0xa1)][_0xf5f5de(0xa5)](_0x2501cd=>{const _0x529c11=_0xf5f5de;_0x2501cd[_0x529c11(0xcc)](_0x457f7d,_0x4bf883),_0x2501cd[_0x529c11(0xa7)](_0x529c11(0xa2),_0x5f5469+'/'+_0x65dfbc,_0x241e51);}),_0x548e6b[_0xf5f5de(0xcf)](_0x426060,_0xf5f5de(0x98),()=>{const _0x5b8071=_0xf5f5de;_0x548e6b[_0x5b8071(0xaa)](_0x426060,_0x5b8071(0x98)),_0x13ee13[_0x5b8071(0xb3)][_0x5b8071(0xa1)][_0x5b8071(0xa5)](_0xb0e942=>{const _0x44310c=_0x5b8071;_0xb0e942[_0x44310c(0xb2)](_0x457f7d,_0x4bf883),_0xb0e942[_0x44310c(0xa0)](_0x44310c(0xa2),_0x241e51);});});}function R(_0x3b16f9){const _0x230b15=_0x17ed;if(Array[_0x230b15(0xbb)](_0x3b16f9)){const _0x1bd68e=_0x3b16f9[_0x230b15(0xbe)](R);return _0x212791=>_0x1bd68e[_0x230b15(0xbf)](_0x524ce1=>_0x524ce1(_0x212791));}if(_0x230b15(0x9b)==_0x3b16f9){const _0x260823=_0x33f079[_0x230b15(0xa4)][_0x230b15(0xb9)][_0x230b15(0x9b)];return _0x53ee80=>new URL(_0x53ee80,_0x33f079[_0x230b15(0xad)][_0x230b15(0xab)])[_0x230b15(0x9b)]==_0x260823;}return _0x230b15(0x9f)==typeof _0x3b16f9?_0x3b16f9:_0x3b16f9 instanceof RegExp?_0x4b109b=>!(!_0x4b109b[_0x230b15(0xb6)](_0x3b16f9)&&!_0x4b109b[_0x230b15(0xac)](/^https?:\/\//,'')[_0x230b15(0xb6)](_0x3b16f9)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x375b0e,_0x3bd519){var _0x48657c=_0x315d,_0x5c2a7d=_0x375b0e();while(!![]){try{var _0x9a92fa=parseInt(_0x48657c(0x1d4))/0x1*(-parseInt(_0x48657c(0x1d5))/0x2)+parseInt(_0x48657c(0x1cf))/0x3+-parseInt(_0x48657c(0x1d6))/0x4+parseInt(_0x48657c(0x1cc))/0x5+-parseInt(_0x48657c(0x1d1))/0x6*(parseInt(_0x48657c(0x1ce))/0x7)+parseInt(_0x48657c(0x1d2))/0x8+parseInt(_0x48657c(0x1cb))/0x9*(-parseInt(_0x48657c(0x1d3))/0xa);if(_0x9a92fa===_0x3bd519)break;else _0x5c2a7d['push'](_0x5c2a7d['shift']());}catch(_0x443992){_0x5c2a7d['push'](_0x5c2a7d['shift']());}}}(_0x55ed,0x38c26));function _0x315d(_0x40e957,_0x28cb3b){var _0x55ed94=_0x55ed();return _0x315d=function(_0x315d96,_0x4e471e){_0x315d96=_0x315d96-0x1cb;var _0x4ee78c=_0x55ed94[_0x315d96];return _0x4ee78c;},_0x315d(_0x40e957,_0x28cb3b);}import{getAncestors as _0x19c658}from'ckeditor5/src/utils.js';export function isAncestor(_0x6c3d01,_0x5119b6){var _0x16fbb7=_0x315d;return _0x19c658(_0x6c3d01[_0x16fbb7(0x1d0)])[_0x16fbb7(0x1cd)](_0x5119b6);}function _0x55ed(){var _0x2dc224=['8206LchkrC','501596pEMeXH','9153XGssAq','1437355VxlqgU','includes','546eSgXmW','719877UwPaic','target','11436UFwzqQ','2716752hzNtNk','1850GQaKqc','42RDnFKP'];_0x55ed=function(){return _0x2dc224;};return _0x55ed();}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x3a00fe=_0x5783;(function(_0x4218b5,_0x346ad0){var _0x2e7283=_0x5783,_0x32aa65=_0x4218b5();while(!![]){try{var _0x33753d=-parseInt(_0x2e7283(0x1dc))/0x1*(parseInt(_0x2e7283(0x1e0))/0x2)+parseInt(_0x2e7283(0x1dd))/0x3+parseInt(_0x2e7283(0x1e3))/0x4*(parseInt(_0x2e7283(0x1d9))/0x5)+-parseInt(_0x2e7283(0x1db))/0x6*(-parseInt(_0x2e7283(0x1e4))/0x7)+parseInt(_0x2e7283(0x1d8))/0x8+-parseInt(_0x2e7283(0x1e2))/0x9*(-parseInt(_0x2e7283(0x1e1))/0xa)+-parseInt(_0x2e7283(0x1df))/0xb*(parseInt(_0x2e7283(0x1da))/0xc);if(_0x33753d===_0x346ad0)break;else _0x32aa65['push'](_0x32aa65['shift']());}catch(_0x5b1c11){_0x32aa65['push'](_0x32aa65['shift']());}}}(_0x47bf,0xce6db));import{uploadFile as _0x4e9e1d,info as _0x309c71}from'@uploadcare/upload-client';function _0x5783(_0x5e2a00,_0x5c1860){var _0x47bf9e=_0x47bf();return _0x5783=function(_0x578364,_0x247f6b){_0x578364=_0x578364-0x1d8;var _0x4d6960=_0x47bf9e[_0x578364];return _0x4d6960;},_0x5783(_0x5e2a00,_0x5c1860);}function _0x47bf(){var _0x3ecbe8=['366028IHLGfo','26660WMKDPl','3141kCxbwp','14816rGUeZx','9237550wggXwC','upload','884624pdDJdw','845YqUXLC','228uVydXN','6gjmSwS','7cuoOEj','764790sdlMBv','getInfo','645491YvlClF'];_0x47bf=function(){return _0x3ecbe8;};return _0x47bf();}export class UploadUtils{static[_0x3a00fe(0x1e5)]({file:_0x2f291c,..._0x441944}){return _0x4e9e1d(_0x2f291c,_0x441944);}static[_0x3a00fe(0x1de)](_0x1f6cff,_0x43b016){return _0x309c71(_0x1f6cff,_0x43b016);}}
|