@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251214.0 → 0.0.0-nightly-20251215.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 _0x119491,ObservableMixin as _0xa82deb}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x532854}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x176a5f}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x348928}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x40bf05}from'../../utils/uploadutils.js';import{getImageUrls as _0x33bcd0,getImageDimension as _0xfba066}from'../../utils/editingutils.js';import{isAncestor as _0x157972}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xa82deb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x38a809,_0x1e926f,_0x24390e){super(),this['_editor']=_0x38a809,this['_dialog']=_0x1e926f,this['_imageElement']=_0x24390e,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 _0x251d32=this['_imageElement'],_0x535d49=_0x251d32['getAttribute']('uploadcareImageId'),_0x3e263d=_0x251d32['getAttribute']('src');if(_0x535d49)await this['_loadImageInfo'](_0x535d49,_0x3e263d);else{if(this['_imageCache']['has'](_0x3e263d)){const _0x4a3f54=this['_imageCache']['get'](_0x3e263d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4a3f54['url'],this['imageDimension']=_0x4a3f54['dimension'],this['imageId']=_0x4a3f54['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1b619f}=this['_editor'],t=_0x1b619f['t'],_0x437b1d=new _0x348928(_0x1b619f,this['imageStatus'],this['_attributes']);_0x437b1d['bind']('status')['to'](this,'imageStatus'),_0x437b1d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x437b1d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x437b1d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x437b1d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x176a5f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x437b1d,'position':_0x532854['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x437b1d['focus']();},'onHide':()=>{_0x437b1d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2d9e6b=>!_0x157972(_0x2d9e6b,_0x437b1d['element'])}});}['_loadImageInfo'](_0x35bdff,_0x185cf3){return _0x40bf05['getInfo'](_0x35bdff,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x42cfa4=>{const {width:_0x1898b9,height:_0x2e19c0}=_0x42cfa4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x185cf3,this['imageDimension']={'width':_0x1898b9,'height':_0x2e19c0},this['imageId']=_0x35bdff;})['catch'](_0x4c4299=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4c4299['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5d418a,_0x51e85e){return this['_getImageAsFile'](_0x5d418a)['then'](_0x473151=>_0x40bf05['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':_0x51e85e['signal'],'file':_0x473151,'onProgress':_0x5be70b=>{_0x5be70b&&_0x5be70b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5be70b['value']));}}))['then'](_0x25e64f=>{const {width:_0x3a3790,height:_0x24938b}=_0x25e64f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x25e64f['cdnUrl'],this['imageDimension']={'width':_0x3a3790,'height':_0x24938b},this['imageId']=_0x25e64f['uuid'],this['imageUploadProgress']=null;const _0x830d1e=_0x5d418a['getAttribute']('src');this['_imageCache']['set'](_0x830d1e,{'id':_0x25e64f['uuid'],'url':_0x25e64f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3a6193=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3a6193['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1f7d71,_0x1b3593){_0x1f7d71['on']('apply',(_0x525be5,_0x25ab46)=>{this['_replaceImage'](_0x1b3593,_0x25ab46['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1f7d71['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1f7d71['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2545e9,_0x358050,_0x4d5af2){const _0x1bd5de=this['_editor'],{width:_0x208a2c,height:_0x233a8b}=_0xfba066(_0x358050,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x38b22e,imageSources:_0x411d2d}=_0x33bcd0(_0x358050,_0x208a2c);_0x1bd5de['model']['change'](_0x35fd96=>{if('$graveyard'===_0x2545e9['root']['rootName']){_0x1bd5de['execute']('insertImage',{'imageType':_0x2545e9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2545e9['getAttributes']()),'uploadcareImageId':_0x4d5af2,'src':_0x38b22e,'sources':_0x411d2d,'width':_0x208a2c,'height':_0x233a8b}});const _0x180a76=_0x2545e9['getChildren']();_0x2545e9=_0x1bd5de['model']['document']['selection']['getSelectedElement']();for(const _0x54c572 of _0x180a76)_0x35fd96['append'](_0x35fd96['cloneElement'](_0x54c572),_0x2545e9);}else _0x35fd96['setSelection'](_0x2545e9,'on'),_0x1bd5de['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2545e9['getAttributes']()),'uploadcareImageId':_0x4d5af2,'src':_0x38b22e,'sources':_0x411d2d,'width':_0x208a2c,'height':_0x233a8b},_0x2545e9);_0x35fd96['setSelection'](_0x2545e9,'on');});}async['_getImageAsFile'](_0x369389){const _0x4388a7=_0x119491['window'],_0x46a0b9=_0x119491['document']['location']['href'],_0x4b0e4a=new _0x4388a7['URL'](_0x369389['getAttribute']('src'),_0x46a0b9);if('data:'===_0x4b0e4a['protocol']){const _0x3dfb8c=_0x4b0e4a['href']['split'](','),_0x4fb8a1=_0x3dfb8c[0x0]['match'](/:(.*?);/)[0x1],_0x5be28d=_0x4fb8a1['split']('/')[0x1],_0x1c02a3=_0x4388a7['atob'](_0x3dfb8c[_0x3dfb8c['length']-0x1]);let _0x4805d8=_0x1c02a3['length'];const _0xfaed94=new _0x4388a7['Uint8Array'](_0x4805d8);for(;_0x4805d8--;)_0xfaed94[_0x4805d8]=_0x1c02a3['charCodeAt'](_0x4805d8);return new _0x4388a7['File']([_0xfaed94],'image.'+_0x5be28d,{'type':_0x4fb8a1});}const _0x4e8eb2=_0x4b0e4a['href']['split']('/'),_0x1c63ee=_0x4e8eb2[_0x4e8eb2['length']-0x1],_0x425cb1=_0x1c63ee['split']('.')[0x1];return _0x4388a7['fetch'](_0x4b0e4a['href'])['then'](_0x56e9bb=>_0x56e9bb['clone']()['blob']())['then'](_0x1aa885=>new _0x4388a7['File']([_0x1aa885],_0x1c63ee,{'type':'image/'+_0x425cb1}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x1c2f59,_0x2c24c6){const _0x123cf9=_0x1c1d,_0x3815e1=_0x1c2f59();while(!![]){try{const _0x23ec17=-parseInt(_0x123cf9(0x1ca))/0x1*(-parseInt(_0x123cf9(0x1d0))/0x2)+-parseInt(_0x123cf9(0x1c2))/0x3*(parseInt(_0x123cf9(0x1c0))/0x4)+parseInt(_0x123cf9(0x1c8))/0x5*(-parseInt(_0x123cf9(0x1be))/0x6)+-parseInt(_0x123cf9(0x1c1))/0x7*(-parseInt(_0x123cf9(0x1cf))/0x8)+-parseInt(_0x123cf9(0x1bf))/0x9*(-parseInt(_0x123cf9(0x1d1))/0xa)+-parseInt(_0x123cf9(0x1bd))/0xb*(parseInt(_0x123cf9(0x1c5))/0xc)+-parseInt(_0x123cf9(0x1c6))/0xd*(-parseInt(_0x123cf9(0x1d2))/0xe);if(_0x23ec17===_0x2c24c6)break;else _0x3815e1['push'](_0x3815e1['shift']());}catch(_0x436ab7){_0x3815e1['push'](_0x3815e1['shift']());}}}(_0xe638,0x36a9d));function _0xe638(){const _0x32d89b=['13otbwWO','bindTemplate','1025630XiNuuV','uc-light','1YzuPwp','imageSrc','ck-uploadcare-theme','image-edit','uc-cloud-image-editor','8Qnlbsl','465254NfREUK','354070qFBtNw','6373178VWgxbG','150359eTMrnW','6VsoFhf','27tOEoGg','20hRzgHh','1188026DHAOaX','83019jcQZlq','setTemplate','set','348tXkgKG'];_0xe638=function(){return _0x32d89b;};return _0xe638();}function _0x1c1d(_0x421f36,_0x476a54){const _0xe6383a=_0xe638();return _0x1c1d=function(_0x1c1dfd,_0x1c3209){_0x1c1dfd=_0x1c1dfd-0x1bd;let _0x5e3fc7=_0xe6383a[_0x1c1dfd];return _0x5e3fc7;},_0x1c1d(_0x421f36,_0x476a54);}import{View as _0xed5f17}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0xed5f17{constructor(_0x533e6e,_0xf67dd7){const _0x347472=_0x1c1d;super(_0x533e6e);const _0x44635d=this[_0x347472(0x1c7)];this[_0x347472(0x1c4)](_0x347472(0x1cb),''),this[_0x347472(0x1c3)]({'tag':_0x347472(0x1ce),'attributes':{..._0xf67dd7,'class':[_0x347472(0x1c9),_0x347472(0x1cc)],'ctx-name':_0x347472(0x1cd),'cdn-url':_0x44635d['to'](_0x347472(0x1cb))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x403f67}from'ckeditor5/src/icons.js';import{ButtonView as _0x423a6e,IconView as _0x32f353,View as _0x1c928c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x1c928c{constructor(_0xfac3ec){super(_0xfac3ec);const t=_0xfac3ec['t'];this['set']('errorType',null);const _0x307d82=new _0x423a6e(_0xfac3ec);_0x307d82['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x307d82['withText']=!0x0,_0x307d82['class']='ck-button-action',_0x307d82['on']('execute',()=>{this['fire']('retry');}),_0x307d82['bind']('isVisible')['to'](this,'errorType',_0xd60f86=>'NotFound'!==_0xd60f86);const _0x15cbb9=new _0x32f353();_0x15cbb9['content']=_0x403f67,_0x15cbb9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3c9662=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':[_0x15cbb9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3c9662['to']('errorType',_0x120418=>t('NotFound'!==_0x120418?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x307d82]},{'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 _0x484d94,View as _0x324afb}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x324afb{constructor(_0x6df893){super(_0x6df893);const t=_0x6df893['t'],_0xf4438f=this['bindTemplate'],_0x31d7bf=new _0x484d94();_0x31d7bf['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':[_0x31d7bf,{'text':_0xf4438f['to']('imageUploadProgress',_0x3fe051=>t('Loading\x20image...')+'\x20('+(_0x3fe051||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a264f=_0x5b9f;(function(_0x5e8809,_0x2c84df){const _0x49556e=_0x5b9f,_0x1b7b5a=_0x5e8809();while(!![]){try{const _0x14e056=-parseInt(_0x49556e(0x115))/0x1*(parseInt(_0x49556e(0xf3))/0x2)+-parseInt(_0x49556e(0xfc))/0x3*(-parseInt(_0x49556e(0x109))/0x4)+-parseInt(_0x49556e(0xf8))/0x5*(-parseInt(_0x49556e(0x102))/0x6)+parseInt(_0x49556e(0xf1))/0x7+parseInt(_0x49556e(0xf6))/0x8*(parseInt(_0x49556e(0x11e))/0x9)+-parseInt(_0x49556e(0x10a))/0xa*(-parseInt(_0x49556e(0xef))/0xb)+parseInt(_0x49556e(0x108))/0xc*(-parseInt(_0x49556e(0x104))/0xd);if(_0x14e056===_0x2c84df)break;else _0x1b7b5a['push'](_0x1b7b5a['shift']());}catch(_0x225c23){_0x1b7b5a['push'](_0x1b7b5a['shift']());}}}(_0x32f7,0xe8992));import{View as _0x2edc8f}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x4e4c34}from'./uploadcareimageeditformloadingview.js';function _0x32f7(){const _0x5f2fa5=['190qTQCJq','cdnUrl','_addErrorViewListeners','div','3wQYJrw','ready','_waitForImageEditorComponent','ck-reset_all-excluded','filter','apply','47904dGWslZ','uc-cloud-image-editor','5733ZWIRqo','element','addedNodes','clear','38124ThhQxy','1801128TnCdpI','14738340VgdvkY','nodeName','setTemplate','length','querySelector','fire','_focusableView','_editingView','render','status','once','49ewoBlg','focus','_errorView','error','_items','toLowerCase','retry','add','ck-uploadcare-form','387scbsEX','change:status','createCollection','uploading','getFocusableElement','addEventListener','detail','_setView','addMany','observe','set','11jUxRaX','_loadingView','408450SvObOl','_addUploadcareImageEditorListeners','4980phbgCX','cancel','disconnect','35336cTAhmX','target'];_0x32f7=function(){return _0x5f2fa5;};return _0x32f7();}import{UploadcareImageEditFormErrorView as _0x27afab}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xd29913}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2b7e26}from'../../utils/dialogfocusmanagerview.js';function _0x5b9f(_0x36f971,_0x17b8ab){const _0x32f787=_0x32f7();return _0x5b9f=function(_0x5b9f45,_0x1b4b8b){_0x5b9f45=_0x5b9f45-0xef;let _0x46ea84=_0x32f787[_0x5b9f45];return _0x46ea84;},_0x5b9f(_0x36f971,_0x17b8ab);}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x2b7e26{[_0x2a264f(0x119)];[_0x2a264f(0xf0)];[_0x2a264f(0x117)];[_0x2a264f(0x111)];[_0x2a264f(0x110)];constructor(_0x4bc7cf,_0x443873,_0x27721c){const _0x309071=_0x2a264f;super(_0x4bc7cf),this[_0x309071(0x119)]=this[_0x309071(0x120)](),this[_0x309071(0xf0)]=new _0x4e4c34(_0x4bc7cf),this[_0x309071(0x117)]=new _0x27afab(_0x4bc7cf),this[_0x309071(0x111)]=new _0xd29913(_0x4bc7cf,_0x27721c),this[_0x309071(0x110)]=new _0x2edc8f(_0x4bc7cf),this[_0x309071(0x110)][_0x309071(0x10c)](this[_0x309071(0x122)]()),this[_0x309071(0x128)](_0x309071(0x113),_0x443873),this[_0x309071(0x10c)]({'tag':_0x309071(0xfb),'attributes':{'class':['ck',_0x309071(0xff),_0x309071(0x11d)],'tabindex':'-1'},'children':this[_0x309071(0x119)]}),this[_0x309071(0x125)](),this[_0x309071(0x114)](_0x309071(0x112),()=>{const _0xa76ec=_0x309071;this[_0xa76ec(0xfe)](this[_0xa76ec(0x105)],_0x41a52e=>{const _0x523392=_0xa76ec;this[_0x523392(0xf2)](_0x41a52e);});}),this['on'](_0x309071(0x11f),()=>{const _0x276350=_0x309071;this[_0x276350(0x125)]();}),this[_0x309071(0xfa)]();}[_0x2a264f(0x116)](){const _0x1d9218=_0x2a264f;this[_0x1d9218(0x105)][_0x1d9218(0x116)]();}[_0x2a264f(0x125)](){const _0x2be0e9=_0x2a264f;switch(this[_0x2be0e9(0x119)][_0x2be0e9(0x107)](),this[_0x2be0e9(0x113)]){case _0x2be0e9(0x121):this[_0x2be0e9(0x119)][_0x2be0e9(0x11c)](this[_0x2be0e9(0xf0)]);break;case _0x2be0e9(0x118):this[_0x2be0e9(0x119)][_0x2be0e9(0x11c)](this[_0x2be0e9(0x117)]);break;case _0x2be0e9(0xfd):this[_0x2be0e9(0x119)][_0x2be0e9(0x126)]([this[_0x2be0e9(0x111)],this[_0x2be0e9(0x110)]]);}}[_0x2a264f(0xfe)](_0x5421b9,_0x177fb2){const _0x42dc92=_0x2a264f,_0x16b208=_0x42dc92(0x103),_0x4c9ffc=_0x5421b9[_0x42dc92(0x10e)](_0x16b208);if(_0x4c9ffc)return _0x177fb2(_0x4c9ffc);const _0x542b93=new MutationObserver(_0x23a9da=>{const _0x2d241c=_0x42dc92,_0x153017=_0x23a9da[_0x2d241c(0x100)](_0x414775=>_0x414775[_0x2d241c(0xf7)]===_0x5421b9&&_0x414775[_0x2d241c(0x106)][_0x2d241c(0x10d)]>0x0&&_0x414775[_0x2d241c(0x106)][0x0][_0x2d241c(0x10b)][_0x2d241c(0x11a)]()===_0x16b208);_0x153017[_0x2d241c(0x10d)]&&(_0x542b93[_0x2d241c(0xf5)](),_0x177fb2(_0x153017[0x0][_0x2d241c(0x106)][0x0]));});_0x542b93[_0x42dc92(0x127)](_0x5421b9,{'childList':!0x0,'subtree':!0x0});}[_0x2a264f(0xf2)](_0x14295f){const _0x23004f=_0x2a264f;_0x14295f[_0x23004f(0x123)](_0x23004f(0x101),_0x5f39ae=>{const _0x4feb11=_0x23004f;this[_0x4feb11(0x10f)](_0x4feb11(0x101),{'imageSrc':_0x5f39ae[_0x4feb11(0x124)][_0x4feb11(0xf9)]});}),_0x14295f[_0x23004f(0x123)](_0x23004f(0xf4),()=>{const _0x47cc16=_0x23004f;this[_0x47cc16(0x10f)](_0x47cc16(0xf4));});}[_0x2a264f(0xfa)](){const _0x16de93=_0x2a264f;this[_0x16de93(0x117)]['on'](_0x16de93(0x11b),()=>{const _0x3170ea=_0x16de93;this[_0x3170ea(0x10f)](_0x3170ea(0x11b));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x324d(){const _0x51de82=['250JsVUpR','unbind','300503KQGfzO','get','getSelectedElement','selection','22465WrBpuS','90BbQbMg','refresh','75695CGFEAp','26UNifWx','bind','editor','imageInline','execute','element','imageEditController','_isEditable','8AXBVYM','requires','uploadcare.allowExternalImagesEditing','1517004HZdEYu','isActive','set','config','342122jbeTKW','plugins','imageBlock','2753856gTBVbO','598864YQtUtz','isEnabled','model','document'];_0x324d=function(){return _0x51de82;};return _0x324d();}const _0x5f4ed2=_0xf42b;(function(_0x149175,_0x597d0a){const _0x5e7a85=_0xf42b,_0x1facc9=_0x149175();while(!![]){try{const _0x572bd4=parseInt(_0x5e7a85(0xbc))/0x1*(parseInt(_0x5e7a85(0xc0))/0x2)+parseInt(_0x5e7a85(0xcb))/0x3+-parseInt(_0x5e7a85(0xc8))/0x4*(-parseInt(_0x5e7a85(0xbf))/0x5)+-parseInt(_0x5e7a85(0xbd))/0x6*(-parseInt(_0x5e7a85(0xb8))/0x7)+parseInt(_0x5e7a85(0xd3))/0x8+-parseInt(_0x5e7a85(0xd2))/0x9+-parseInt(_0x5e7a85(0xd7))/0xa*(parseInt(_0x5e7a85(0xcf))/0xb);if(_0x572bd4===_0x597d0a)break;else _0x1facc9['push'](_0x1facc9['shift']());}catch(_0x4c1d2b){_0x1facc9['push'](_0x1facc9['shift']());}}}(_0x324d,0x71192));import{Command as _0x25267c}from'ckeditor5/src/core.js';import{Dialog as _0x5b0fc6}from'ckeditor5/src/ui.js';function _0xf42b(_0x368679,_0x3c9cc7){const _0x324db7=_0x324d();return _0xf42b=function(_0xf42b26,_0x2fd16e){_0xf42b26=_0xf42b26-0xb7;let _0x31a28e=_0x324db7[_0xf42b26];return _0x31a28e;},_0xf42b(_0x368679,_0x3c9cc7);}import{UploadcareImageEditController as _0x55c038}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x731b1}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x25267c{[_0x5f4ed2(0xc6)];static get[_0x5f4ed2(0xc9)](){return[_0x5b0fc6];}[_0x5f4ed2(0xc7)];constructor(_0x178601){const _0x14b35b=_0x5f4ed2;super(_0x178601),this[_0x14b35b(0xc6)]=void 0x0,this[_0x14b35b(0xc7)]=_0x731b1(_0x178601[_0x14b35b(0xce)][_0x14b35b(0xb9)](_0x14b35b(0xca))||[]),this[_0x14b35b(0xcd)]({'isActive':!0x1});}[_0x5f4ed2(0xbe)](){const _0x4649f7=_0x5f4ed2,_0x261f0c=this[_0x4649f7(0xc2)][_0x4649f7(0xd5)][_0x4649f7(0xd6)][_0x4649f7(0xbb)][_0x4649f7(0xba)]();this[_0x4649f7(0xd4)]=this[_0x4649f7(0xc7)](_0x261f0c);}[_0x5f4ed2(0xc4)](){const _0x42f810=_0x5f4ed2;this[_0x42f810(0xc6)]&&(this[_0x42f810(0xb7)](_0x42f810(0xcc)),this[_0x42f810(0xc6)]=void 0x0);const _0x75b2f6=this[_0x42f810(0xc2)][_0x42f810(0xd5)][_0x42f810(0xd6)][_0x42f810(0xbb)][_0x42f810(0xba)]();_0x75b2f6&&(_0x75b2f6['is'](_0x42f810(0xc5),_0x42f810(0xd1))||_0x75b2f6['is'](_0x42f810(0xc5),_0x42f810(0xc3)))&&(this[_0x42f810(0xc6)]=new _0x55c038(this[_0x42f810(0xc2)],this[_0x42f810(0xc2)][_0x42f810(0xd0)][_0x42f810(0xb9)](_0x5b0fc6),_0x75b2f6),this[_0x42f810(0xc1)](_0x42f810(0xcc))['to'](this[_0x42f810(0xc6)],_0x42f810(0xcc)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5d8d(){const _0x4ce531=['isPremiumPlugin','629659mdPqkO','36RmylmK','11gdtbay','356732exbyrh','2614110wJAvvt','ImageEditing','init','requires','UploadcareImageEditEditing','uploadcareImageEdit','add','isOfficialPlugin','8oWsxWC','4945884pZnCrB','ImageUtils','uploadcareImageReplace','2285661erVGYS','101774cfEypd','1371591ZpjUoU','pluginName','commands','25IGneGH'];_0x5d8d=function(){return _0x4ce531;};return _0x5d8d();}const _0x2c2d0e=_0x4eeb;(function(_0x4ba96a,_0x200877){const _0x54b190=_0x4eeb,_0x3ff069=_0x4ba96a();while(!![]){try{const _0xa797ac=-parseInt(_0x54b190(0x74))/0x1+parseInt(_0x54b190(0x6e))/0x2*(parseInt(_0x54b190(0x75))/0x3)+-parseInt(_0x54b190(0x77))/0x4*(parseInt(_0x54b190(0x72))/0x5)+parseInt(_0x54b190(0x81))/0x6+-parseInt(_0x54b190(0x6d))/0x7*(parseInt(_0x54b190(0x80))/0x8)+parseInt(_0x54b190(0x6f))/0x9+parseInt(_0x54b190(0x78))/0xa*(parseInt(_0x54b190(0x76))/0xb);if(_0xa797ac===_0x200877)break;else _0x3ff069['push'](_0x3ff069['shift']());}catch(_0x992e9){_0x3ff069['push'](_0x3ff069['shift']());}}}(_0x5d8d,0x6d0cf));function _0x4eeb(_0x209cac,_0x563441){const _0x5d8dba=_0x5d8d();return _0x4eeb=function(_0x4eeb4b,_0x94d39f){_0x4eeb4b=_0x4eeb4b-0x6b;let _0x18cd36=_0x5d8dba[_0x4eeb4b];return _0x18cd36;},_0x4eeb(_0x209cac,_0x563441);}import{Plugin as _0x1b9802}from'ckeditor5/src/core.js';import{Notification as _0x1452fa}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x1f657a}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1e2980}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x3d9c38}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x1b9802{static get[_0x2c2d0e(0x70)](){const _0x96db9=_0x2c2d0e;return _0x96db9(0x7c);}static get[_0x2c2d0e(0x7b)](){const _0x5a5755=_0x2c2d0e;return[_0x3d9c38,_0x1452fa,_0x5a5755(0x6b),_0x5a5755(0x79)];}static get[_0x2c2d0e(0x7f)](){return!0x0;}static get[_0x2c2d0e(0x73)](){return!0x0;}[_0x2c2d0e(0x7a)](){const _0x1d0b74=_0x2c2d0e,{editor:_0x38403f}=this;_0x38403f[_0x1d0b74(0x71)][_0x1d0b74(0x7e)](_0x1d0b74(0x7d),new _0x1f657a(_0x38403f)),_0x38403f[_0x1d0b74(0x71)][_0x1d0b74(0x7e)](_0x1d0b74(0x6c),new _0x1e2980(_0x38403f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x18abb9}from'ckeditor5/src/core.js';import{ButtonView as _0x28c820}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1aff48}from'ckeditor5/src/icons.js';import{createElement as _0xc9f5cd}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 _0x18abb9{['_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 _0x3dfb34=this['editor'];_0x3dfb34['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1f069b=>{const _0x9b9859=_0x3dfb34['commands']['get']('uploadcareImageEdit'),_0x585c2b=new _0x28c820(_0x1f069b),t=_0x1f069b['t'];return _0x585c2b['set']({'icon':_0x1aff48,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x585c2b['bind']('isEnabled')['to'](_0x9b9859),_0x585c2b['bind']('isOn')['to'](_0x9b9859,'isActive'),this['listenTo'](_0x585c2b,'execute',()=>{_0x3dfb34['execute']('uploadcareImageEdit'),_0x3dfb34['editing']['view']['focus']();}),_0x585c2b;}),this['_initConfig']();}['_initConfig'](){const _0x1e33df=_0xc9f5cd(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1e33df),this['listenTo'](this['editor'],'destroy',()=>{_0x1e33df['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x5960d1=_0x4fcb;(function(_0x3da680,_0x5617b9){var _0x3f776c=_0x4fcb,_0x58893a=_0x3da680();while(!![]){try{var _0x2eb6a7=parseInt(_0x3f776c(0xbc))/0x1+parseInt(_0x3f776c(0xba))/0x2*(-parseInt(_0x3f776c(0xb4))/0x3)+parseInt(_0x3f776c(0xb5))/0x4+-parseInt(_0x3f776c(0xb7))/0x5*(parseInt(_0x3f776c(0xaf))/0x6)+parseInt(_0x3f776c(0xb0))/0x7+-parseInt(_0x3f776c(0xbf))/0x8*(parseInt(_0x3f776c(0xb3))/0x9)+parseInt(_0x3f776c(0xac))/0xa*(-parseInt(_0x3f776c(0xbb))/0xb);if(_0x2eb6a7===_0x5617b9)break;else _0x58893a['push'](_0x58893a['shift']());}catch(_0x49c1f3){_0x58893a['push'](_0x58893a['shift']());}}}(_0x2e73,0xc2287));import{FocusTracker as _0x3ffbff}from'ckeditor5/src/utils.js';import{View as _0x1c9798,FocusCycler as _0x3596bd}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x4fcb(_0x39895e,_0x3e041a){var _0x2e738d=_0x2e73();return _0x4fcb=function(_0x4fcbd0,_0x64c760){_0x4fcbd0=_0x4fcbd0-0xac;var _0x3f1f96=_0x2e738d[_0x4fcbd0];return _0x3f1f96;},_0x4fcb(_0x39895e,_0x3e041a);}export class DialogFocusManagerView extends _0x1c9798{[_0x5960d1(0xb8)];[_0x5960d1(0xad)];constructor(_0x23e47e){var _0x19cee0=_0x5960d1;super(_0x23e47e),this[_0x19cee0(0xb8)]=new _0x3ffbff(),this[_0x19cee0(0xad)]=new _0x3596bd({'focusables':this[_0x19cee0(0xb1)](),'focusTracker':this[_0x19cee0(0xb8)]});}[_0x5960d1(0xbe)](){var _0x180ee1=_0x5960d1;return{'tag':_0x180ee1(0xae),'attributes':{'aria-hidden':_0x180ee1(0xb9),'tabindex':'0'},'on':{'focus':this[_0x180ee1(0xbd)]['to'](()=>{var _0x345370=_0x180ee1;this[_0x345370(0xad)][_0x345370(0xb6)](_0x345370(0xb2));})}};}}function _0x2e73(){var _0x5859f0=['99RzPaCQ','633811qvrFIU','bindTemplate','getFocusableElement','512uyJmTT','678200qKVMPJ','focusCycler','div','983964XMYoDH','9445513tBrKeP','createCollection','forwardCycle','173061QVyMQN','1704oFipLO','5290980OTgCTx','fire','20ruCTlM','focusTracker','true','48ftFLIf'];_0x2e73=function(){return _0x5859f0;};return _0x2e73();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x551484,_0x57b743){const _0x455805=_0x3454,_0x55a316=_0x551484();while(!![]){try{const _0x36ad14=-parseInt(_0x455805(0x1d4))/0x1+parseInt(_0x455805(0x1cc))/0x2+-parseInt(_0x455805(0x1d7))/0x3+parseInt(_0x455805(0x1da))/0x4+parseInt(_0x455805(0x1c9))/0x5*(parseInt(_0x455805(0x1e3))/0x6)+parseInt(_0x455805(0x1d9))/0x7*(parseInt(_0x455805(0x1e1))/0x8)+-parseInt(_0x455805(0x1e2))/0x9*(parseInt(_0x455805(0x1f2))/0xa);if(_0x36ad14===_0x57b743)break;else _0x55a316['push'](_0x55a316['shift']());}catch(_0x3be8b8){_0x55a316['push'](_0x55a316['shift']());}}}(_0x9742,0xb7c2b));import{global as _0x5a2574,DomEmitterMixin as _0x586336}from'ckeditor5/src/utils.js';function _0x3454(_0x2fc8ca,_0x34ea85){const _0x97426d=_0x9742();return _0x3454=function(_0x345437,_0x15b14d){_0x345437=_0x345437-0x1c0;let _0x3e9921=_0x97426d[_0x345437];return _0x3e9921;},_0x3454(_0x2fc8ca,_0x34ea85);}function _0x9742(){const _0x200047=['document','domConverter','imageBlock','join','baseURI','px)\x20100vw,\x20','(max-width:\x20','removeStyle','setStyle','x/\x20','get','/-/resize/','findViewImgElement','isArray','5ngsWgG','view','element','1613534DMAvCT','origin','toViewElement','getAttribute','stopListening','plugins','aspect-ratio','function','1037163iiIHNN','image/webp','match','1897800LhdXHP','map','392896MHUFso','5641524yGIgXG','uploadcareImageId','image-processing','ImageUtils','load','editing','hasAttribute','8mZURTd','577161jsqikl','5897082PUXfwM','filter','imageInline','replace','removeClass','width','viewToDom','window','src','addClass','location','height','listenTo','some','mapper','130DBSbDd','change'];_0x9742=function(){return _0x200047;};return _0x9742();}export function createEditabilityChecker(_0x395c2e){const _0x1ae655=_0x3454,_0x37b28d=z(_0x395c2e);return _0x475318=>!(!_0x475318||!_0x475318['is'](_0x1ae655(0x1cb),_0x1ae655(0x1f6))&&!_0x475318['is'](_0x1ae655(0x1cb),_0x1ae655(0x1e5)))&&(!!_0x475318[_0x1ae655(0x1e0)](_0x1ae655(0x1db))||!!_0x475318[_0x1ae655(0x1e0)](_0x1ae655(0x1eb))&&_0x37b28d(_0x475318[_0x1ae655(0x1cf)](_0x1ae655(0x1eb))));}export function getImageUrls(_0x278854,_0x58b555){const _0x3dc7ef=_0x3454,_0x3d296d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x3dc7ef(0x1e4)](_0x334763=>_0x334763<=_0x58b555)[_0x3dc7ef(0x1d8)](_0x1f1c80=>_0x278854[_0x3dc7ef(0x1e6)](/\/$/,'')+_0x3dc7ef(0x1c6)+_0x1f1c80+_0x3dc7ef(0x1c4)+_0x1f1c80+'w');return{'imageFallbackUrl':_0x278854,'imageSources':[{'srcset':_0x3d296d[_0x3dc7ef(0x1f7)](',\x20'),'sizes':_0x3dc7ef(0x1c1)+_0x58b555+_0x3dc7ef(0x1c0)+_0x58b555+'px','type':_0x3dc7ef(0x1d5)}]};}export function getImageDimension(_0x5998a2,_0xc958fa,_0x6f7c0d){const _0x5e2ccc=_0x3454,_0x427745=_0x5998a2[_0x5e2ccc(0x1d6)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x427745?parseInt(_0x427745[0x1],0xa):_0xc958fa,'height':_0x427745?parseInt(_0x427745[0x2],0xa):_0x6f7c0d};}export function showImageProcessingIndicator(_0x46df75,_0x21a6a7){const _0x383f8f=_0x3454,_0x56ba06=new(_0x586336())(),_0x20f245=_0x46df75[_0x383f8f(0x1d1)][_0x383f8f(0x1c5)](_0x383f8f(0x1dd)),_0x538846=_0x46df75[_0x383f8f(0x1df)][_0x383f8f(0x1f1)][_0x383f8f(0x1ce)](_0x21a6a7),_0x4d5a31=_0x20f245[_0x383f8f(0x1c7)](_0x538846),_0x52407f=_0x46df75[_0x383f8f(0x1df)][_0x383f8f(0x1ca)][_0x383f8f(0x1f5)][_0x383f8f(0x1e9)](_0x4d5a31),_0xf41522=_0x21a6a7[_0x383f8f(0x1cf)](_0x383f8f(0x1e8)),_0x429cbd=_0x21a6a7[_0x383f8f(0x1cf)](_0x383f8f(0x1ee)),_0x317425=_0x383f8f(0x1dc);_0x46df75[_0x383f8f(0x1df)][_0x383f8f(0x1ca)][_0x383f8f(0x1f3)](_0x500495=>{const _0x107a2c=_0x383f8f;_0x500495[_0x107a2c(0x1ec)](_0x317425,_0x538846),_0x500495[_0x107a2c(0x1c3)](_0x107a2c(0x1d2),_0xf41522+'/'+_0x429cbd,_0x4d5a31);}),_0x56ba06[_0x383f8f(0x1ef)](_0x52407f,_0x383f8f(0x1de),()=>{const _0x4c6684=_0x383f8f;_0x56ba06[_0x4c6684(0x1d0)](_0x52407f,_0x4c6684(0x1de)),_0x46df75[_0x4c6684(0x1df)][_0x4c6684(0x1ca)][_0x4c6684(0x1f3)](_0x50cd16=>{const _0x4287cf=_0x4c6684;_0x50cd16[_0x4287cf(0x1e7)](_0x317425,_0x538846),_0x50cd16[_0x4287cf(0x1c2)](_0x4287cf(0x1d2),_0x4d5a31);});});}function z(_0x344215){const _0x5f3d17=_0x3454;if(Array[_0x5f3d17(0x1c8)](_0x344215)){const _0x34274b=_0x344215[_0x5f3d17(0x1d8)](z);return _0x27574b=>_0x34274b[_0x5f3d17(0x1f0)](_0x45525f=>_0x45525f(_0x27574b));}if(_0x5f3d17(0x1cd)==_0x344215){const _0x1d7b15=_0x5a2574[_0x5f3d17(0x1ea)][_0x5f3d17(0x1ed)][_0x5f3d17(0x1cd)];return _0x503445=>new URL(_0x503445,_0x5a2574[_0x5f3d17(0x1f4)][_0x5f3d17(0x1f8)])[_0x5f3d17(0x1cd)]==_0x1d7b15;}return _0x5f3d17(0x1d3)==typeof _0x344215?_0x344215:_0x344215 instanceof RegExp?_0x2e8eb6=>!(!_0x2e8eb6[_0x5f3d17(0x1d6)](_0x344215)&&!_0x2e8eb6[_0x5f3d17(0x1e6)](/^https?:\/\//,'')[_0x5f3d17(0x1d6)](_0x344215)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x5d308d,_0x1df0e3){var _0x4c6aa9=_0x352b,_0x5e5647=_0x5d308d();while(!![]){try{var _0x37c722=parseInt(_0x4c6aa9(0xba))/0x1*(parseInt(_0x4c6aa9(0xb6))/0x2)+parseInt(_0x4c6aa9(0xb2))/0x3+parseInt(_0x4c6aa9(0xb1))/0x4+parseInt(_0x4c6aa9(0xb8))/0x5+-parseInt(_0x4c6aa9(0xb3))/0x6+-parseInt(_0x4c6aa9(0xb5))/0x7+parseInt(_0x4c6aa9(0xb9))/0x8;if(_0x37c722===_0x1df0e3)break;else _0x5e5647['push'](_0x5e5647['shift']());}catch(_0x5567b2){_0x5e5647['push'](_0x5e5647['shift']());}}}(_0x567d,0xef32f));function _0x567d(){var _0x534990=['1sESitS','275672TPhBcB','4299060LMQJhB','4697712ZBGNVS','includes','12497639cwXDNJ','1622290VuEcCZ','target','2605215JvDVSc','5711696HSWZtq'];_0x567d=function(){return _0x534990;};return _0x567d();}function _0x352b(_0x28ccef,_0x25fef0){var _0x567d0a=_0x567d();return _0x352b=function(_0x352b32,_0x25a3d8){_0x352b32=_0x352b32-0xb1;var _0x3c533f=_0x567d0a[_0x352b32];return _0x3c533f;},_0x352b(_0x28ccef,_0x25fef0);}import{getAncestors as _0x4f4434}from'ckeditor5/src/utils.js';export function isAncestor(_0xd00307,_0xdc7f04){var _0x2baab=_0x352b;return _0x4f4434(_0xd00307[_0x2baab(0xb7)])[_0x2baab(0xb4)](_0xdc7f04);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x3301a6=_0x489a;function _0x489a(_0x52e931,_0x542681){var _0x5c73cb=_0x5c73();return _0x489a=function(_0x489a5c,_0x197483){_0x489a5c=_0x489a5c-0x1de;var _0x1bae0b=_0x5c73cb[_0x489a5c];return _0x1bae0b;},_0x489a(_0x52e931,_0x542681);}(function(_0x286cbf,_0x10c6ab){var _0x5b879a=_0x489a,_0x7eb57=_0x286cbf();while(!![]){try{var _0xdf742=parseInt(_0x5b879a(0x1e6))/0x1+parseInt(_0x5b879a(0x1e7))/0x2*(parseInt(_0x5b879a(0x1df))/0x3)+-parseInt(_0x5b879a(0x1e0))/0x4+-parseInt(_0x5b879a(0x1e1))/0x5+-parseInt(_0x5b879a(0x1e8))/0x6+-parseInt(_0x5b879a(0x1e4))/0x7*(parseInt(_0x5b879a(0x1e3))/0x8)+parseInt(_0x5b879a(0x1e2))/0x9;if(_0xdf742===_0x10c6ab)break;else _0x7eb57['push'](_0x7eb57['shift']());}catch(_0x1745cd){_0x7eb57['push'](_0x7eb57['shift']());}}}(_0x5c73,0x73da2));import{uploadFile as _0x529bec,info as _0xb52013}from'@uploadcare/upload-client';function _0x5c73(){var _0x3b93e8=['320819MzXcqw','4868IPgIHG','4805340pIlHYA','upload','318ikrgcD','1265724tDQdNA','567230IsLGqI','12721770GwOZDR','352lHxyND','45668VcqipX','getInfo'];_0x5c73=function(){return _0x3b93e8;};return _0x5c73();}export class UploadUtils{static[_0x3301a6(0x1de)]({file:_0x58426e,..._0x3ba833}){return _0x529bec(_0x58426e,_0x3ba833);}static[_0x3301a6(0x1e5)](_0x4e9227,_0xff2fd4){return _0xb52013(_0x4e9227,_0xff2fd4);}}
|