@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250921.0 → 0.0.0-nightly-20250922.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 _0x56daba,ObservableMixin as _0x47b8a1}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x181fc3}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4e778d}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x394275}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x289dcc}from'../../utils/uploadutils.js';import{getImageUrls as _0x117fa3,getImageDimension as _0x26bdd8}from'../../utils/editingutils.js';import{isAncestor as _0x36c1d7}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x47b8a1(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x41670f,_0x450860,_0x4cebdb){super(),this['_editor']=_0x41670f,this['_dialog']=_0x450860,this['_imageElement']=_0x4cebdb,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 _0x5a2337=this['_imageElement'],_0x2ded00=_0x5a2337['getAttribute']('uploadcareImageId'),_0x2fa03d=_0x5a2337['getAttribute']('src');if(_0x2ded00)await this['_loadImageInfo'](_0x2ded00,_0x2fa03d);else{if(this['_imageCache']['has'](_0x2fa03d)){const _0x221eb7=this['_imageCache']['get'](_0x2fa03d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x221eb7['url'],this['imageDimension']=_0x221eb7['dimension'],this['imageId']=_0x221eb7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5009b8}=this['_editor'],t=_0x5009b8['t'],_0x110e4c=new _0x394275(_0x5009b8,this['imageStatus'],this['_attributes']);_0x110e4c['bind']('status')['to'](this,'imageStatus'),_0x110e4c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x110e4c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x110e4c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x110e4c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4e778d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x110e4c,'position':_0x181fc3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x110e4c['focus']();},'onHide':()=>{_0x110e4c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2935ec=>!_0x36c1d7(_0x2935ec,_0x110e4c['element'])}});}['_loadImageInfo'](_0x5bd983,_0x10e2c2){return _0x289dcc['getInfo'](_0x5bd983,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x38231a=>{const {width:_0xeaa01f,height:_0x1ad433}=_0x38231a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x10e2c2,this['imageDimension']={'width':_0xeaa01f,'height':_0x1ad433},this['imageId']=_0x5bd983;})['catch'](_0x1ce3e6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1ce3e6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1038f7,_0x136d47){return this['_getImageAsFile'](_0x1038f7)['then'](_0x824238=>_0x289dcc['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':_0x136d47['signal'],'file':_0x824238,'onProgress':_0x3dcfc2=>{_0x3dcfc2&&_0x3dcfc2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3dcfc2['value']));}}))['then'](_0x4bb4da=>{const {width:_0x1d5e47,height:_0x1ab232}=_0x4bb4da['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4bb4da['cdnUrl'],this['imageDimension']={'width':_0x1d5e47,'height':_0x1ab232},this['imageId']=_0x4bb4da['uuid'],this['imageUploadProgress']=null;const _0x5bbf95=_0x1038f7['getAttribute']('src');this['_imageCache']['set'](_0x5bbf95,{'id':_0x4bb4da['uuid'],'url':_0x4bb4da['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2a3ab7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a3ab7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x71560e,_0x18fa6e){_0x71560e['on']('apply',(_0x33c4d5,_0x11f4cc)=>{this['_replaceImage'](_0x18fa6e,_0x11f4cc['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x71560e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x71560e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x8f0e4a,_0x53998d,_0xfb3898){const _0x5c1521=this['_editor'],{width:_0x4d338b,height:_0x543743}=_0x26bdd8(_0x53998d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1ae720,imageSources:_0x20f447}=_0x117fa3(_0x53998d,_0x4d338b);_0x5c1521['model']['change'](_0x17ea5e=>{if('$graveyard'===_0x8f0e4a['root']['rootName']){_0x5c1521['execute']('insertImage',{'imageType':_0x8f0e4a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x8f0e4a['getAttributes']()),'uploadcareImageId':_0xfb3898,'src':_0x1ae720,'sources':_0x20f447,'width':_0x4d338b,'height':_0x543743}});const _0x4c8c65=_0x8f0e4a['getChildren']();_0x8f0e4a=_0x5c1521['model']['document']['selection']['getSelectedElement']();for(const _0x3dbf01 of _0x4c8c65)_0x17ea5e['append'](_0x17ea5e['cloneElement'](_0x3dbf01),_0x8f0e4a);}else _0x17ea5e['setSelection'](_0x8f0e4a,'on'),_0x5c1521['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x8f0e4a['getAttributes']()),'uploadcareImageId':_0xfb3898,'src':_0x1ae720,'sources':_0x20f447,'width':_0x4d338b,'height':_0x543743},_0x8f0e4a);_0x17ea5e['setSelection'](_0x8f0e4a,'on');});}async['_getImageAsFile'](_0x42525e){const _0x44a949=_0x56daba['window'],_0x157987=_0x56daba['document']['location']['href'],_0x1d01af=new _0x44a949['URL'](_0x42525e['getAttribute']('src'),_0x157987);if('data:'===_0x1d01af['protocol']){const _0x14d647=_0x1d01af['href']['split'](','),_0xc380b1=_0x14d647[0x0]['match'](/:(.*?);/)[0x1],_0x4f9dfd=_0xc380b1['split']('/')[0x1],_0x59d02f=_0x44a949['atob'](_0x14d647[_0x14d647['length']-0x1]);let _0x476c6f=_0x59d02f['length'];const _0xd2cfcc=new _0x44a949['Uint8Array'](_0x476c6f);for(;_0x476c6f--;)_0xd2cfcc[_0x476c6f]=_0x59d02f['charCodeAt'](_0x476c6f);return new _0x44a949['File']([_0xd2cfcc],'image.'+_0x4f9dfd,{'type':_0xc380b1});}const _0x3239ec=_0x1d01af['href']['split']('/'),_0x4c0c2f=_0x3239ec[_0x3239ec['length']-0x1],_0x573813=_0x4c0c2f['split']('.')[0x1];return _0x44a949['fetch'](_0x1d01af['href'])['then'](_0x39cb5a=>_0x39cb5a['clone']()['blob']())['then'](_0x50efbe=>new _0x44a949['File']([_0x50efbe],_0x4c0c2f,{'type':'image/'+_0x573813}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x20a959,_0x1121d3){const _0xa9bbbb=_0x3f43,_0x2e7ada=_0x20a959();while(!![]){try{const _0x3b5e0c=parseInt(_0xa9bbbb(0xf1))/0x1*(parseInt(_0xa9bbbb(0xeb))/0x2)+-parseInt(_0xa9bbbb(0xee))/0x3*(parseInt(_0xa9bbbb(0xea))/0x4)+parseInt(_0xa9bbbb(0xe7))/0x5+-parseInt(_0xa9bbbb(0xe5))/0x6+parseInt(_0xa9bbbb(0xf0))/0x7+-parseInt(_0xa9bbbb(0xe4))/0x8+parseInt(_0xa9bbbb(0xe9))/0x9;if(_0x3b5e0c===_0x1121d3)break;else _0x2e7ada['push'](_0x2e7ada['shift']());}catch(_0xf9f26c){_0x2e7ada['push'](_0x2e7ada['shift']());}}}(_0x1e4c,0xa61be));import{View as _0x44ec4f}from'ckeditor5/src/ui.js';function _0x3f43(_0x4b4870,_0x1e9095){const _0x1e4c4b=_0x1e4c();return _0x3f43=function(_0x3f4308,_0x5b80d8){_0x3f4308=_0x3f4308-0xe3;let _0x1edf75=_0x1e4c4b[_0x3f4308];return _0x1edf75;},_0x3f43(_0x4b4870,_0x1e9095);}function _0x1e4c(){const _0x21c757=['ck-uploadcare-theme','12319038vsoObP','72300QSwlvR','386OxOTGz','uc-light','uc-cloud-image-editor','63fbpQIG','imageSrc','276381DOnNUZ','4139jJdnRb','set','setTemplate','bindTemplate','4937608tWGYzB','3273084GQOkSJ','image-edit','77900sEpgRu'];_0x1e4c=function(){return _0x21c757;};return _0x1e4c();}export class UploadcareImageEditFormEditingView extends _0x44ec4f{constructor(_0x262d81,_0x43d61d){const _0x8fbfe9=_0x3f43;super(_0x262d81);const _0x59d556=this[_0x8fbfe9(0xe3)];this[_0x8fbfe9(0xf2)](_0x8fbfe9(0xef),''),this[_0x8fbfe9(0xf3)]({'tag':_0x8fbfe9(0xed),'attributes':{..._0x43d61d,'class':[_0x8fbfe9(0xec),_0x8fbfe9(0xe8)],'ctx-name':_0x8fbfe9(0xe6),'cdn-url':_0x59d556['to'](_0x8fbfe9(0xef))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x3b4c95}from'ckeditor5/src/icons.js';import{ButtonView as _0x23148f,IconView as _0x8d92a1,View as _0xa3332}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0xa3332{constructor(_0x246b96){super(_0x246b96);const t=_0x246b96['t'];this['set']('errorType',null);const _0x5c96dd=new _0x23148f(_0x246b96);_0x5c96dd['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5c96dd['withText']=!0x0,_0x5c96dd['class']='ck-button-action',_0x5c96dd['on']('execute',()=>{this['fire']('retry');}),_0x5c96dd['bind']('isVisible')['to'](this,'errorType',_0x149220=>'NotFound'!==_0x149220);const _0x510eac=new _0x8d92a1();_0x510eac['content']=_0x3b4c95,_0x510eac['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x27353e=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':[_0x510eac,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x27353e['to']('errorType',_0x4aff55=>t('NotFound'!==_0x4aff55?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5c96dd]},{'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 _0x16414b,View as _0x3b66c4}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x3b66c4{constructor(_0x1ba405){super(_0x1ba405);const t=_0x1ba405['t'],_0x3c0e0c=this['bindTemplate'],_0x3febdd=new _0x16414b();_0x3febdd['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':[_0x3febdd,{'text':_0x3c0e0c['to']('imageUploadProgress',_0x375a69=>t('Loading\x20image...')+'\x20('+(_0x375a69||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 _0xf1de93=_0x16dd;(function(_0x400354,_0x2ca23e){const _0x47f714=_0x16dd,_0x12a5a5=_0x400354();while(!![]){try{const _0x4bbf7c=-parseInt(_0x47f714(0x1eb))/0x1*(parseInt(_0x47f714(0x200))/0x2)+-parseInt(_0x47f714(0x1d5))/0x3*(parseInt(_0x47f714(0x1ff))/0x4)+parseInt(_0x47f714(0x203))/0x5*(parseInt(_0x47f714(0x1e7))/0x6)+-parseInt(_0x47f714(0x1d8))/0x7+parseInt(_0x47f714(0x1e3))/0x8*(-parseInt(_0x47f714(0x1cd))/0x9)+-parseInt(_0x47f714(0x1ed))/0xa*(-parseInt(_0x47f714(0x1e2))/0xb)+parseInt(_0x47f714(0x1fc))/0xc;if(_0x4bbf7c===_0x2ca23e)break;else _0x12a5a5['push'](_0x12a5a5['shift']());}catch(_0x304810){_0x12a5a5['push'](_0x12a5a5['shift']());}}}(_0x1331,0x19f4a));import{View as _0x11108e}from'ckeditor5/src/ui.js';function _0x16dd(_0x5ada5f,_0x2a5088){const _0x133167=_0x1331();return _0x16dd=function(_0x16dd2f,_0x281b02){_0x16dd2f=_0x16dd2f-0x1cc;let _0x5c08ad=_0x133167[_0x16dd2f];return _0x5c08ad;},_0x16dd(_0x5ada5f,_0x2a5088);}import{UploadcareImageEditFormLoadingView as _0x19a7af}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x312725}from'./uploadcareimageeditformerrorview.js';function _0x1331(){const _0x10ea98=['12gINTwI','setTemplate','focus','once','195639jeTqEH','target','3330RfPCRa','querySelector','_errorView','addEventListener','detail','set','length','fire','retry','_waitForImageEditorComponent','apply','render','status','element','ck-uploadcare-form','8396124wukNeD','_loadingView','_setView','4rBHkUS','2XmZPvS','addedNodes','_editingView','139280cGZDJP','cancel','filter','1845279xXvOjo','nodeName','clear','_addErrorViewListeners','ck-reset_all-excluded','cdnUrl','createCollection','change:status','536361mDzURS','add','addMany','648165rSevSL','uc-cloud-image-editor','error','div','_focusableView','disconnect','uploading','ready','observe','_items','759fykkEy','8zojpIq','getFocusableElement','toLowerCase','_addUploadcareImageEditorListeners'];_0x1331=function(){return _0x10ea98;};return _0x1331();}import{UploadcareImageEditFormEditingView as _0x224f66}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2a576f}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x2a576f{[_0xf1de93(0x1e1)];[_0xf1de93(0x1fd)];[_0xf1de93(0x1ef)];[_0xf1de93(0x202)];[_0xf1de93(0x1dc)];constructor(_0x30a162,_0x4593d2,_0x40fe06){const _0x7baaef=_0xf1de93;super(_0x30a162),this[_0x7baaef(0x1e1)]=this[_0x7baaef(0x1d3)](),this[_0x7baaef(0x1fd)]=new _0x19a7af(_0x30a162),this[_0x7baaef(0x1ef)]=new _0x312725(_0x30a162),this[_0x7baaef(0x202)]=new _0x224f66(_0x30a162,_0x40fe06),this[_0x7baaef(0x1dc)]=new _0x11108e(_0x30a162),this[_0x7baaef(0x1dc)][_0x7baaef(0x1e8)](this[_0x7baaef(0x1e4)]()),this[_0x7baaef(0x1f2)](_0x7baaef(0x1f9),_0x4593d2),this[_0x7baaef(0x1e8)]({'tag':_0x7baaef(0x1db),'attributes':{'class':['ck',_0x7baaef(0x1d1),_0x7baaef(0x1fb)],'tabindex':'-1'},'children':this[_0x7baaef(0x1e1)]}),this[_0x7baaef(0x1fe)](),this[_0x7baaef(0x1ea)](_0x7baaef(0x1f8),()=>{const _0x49d836=_0x7baaef;this[_0x49d836(0x1f6)](this[_0x49d836(0x1fa)],_0x5c2b25=>{const _0x1d22cc=_0x49d836;this[_0x1d22cc(0x1e6)](_0x5c2b25);});}),this['on'](_0x7baaef(0x1d4),()=>{const _0xfedc4=_0x7baaef;this[_0xfedc4(0x1fe)]();}),this[_0x7baaef(0x1d0)]();}[_0xf1de93(0x1e9)](){const _0x160f2f=_0xf1de93;this[_0x160f2f(0x1fa)][_0x160f2f(0x1e9)]();}[_0xf1de93(0x1fe)](){const _0x9fbcfc=_0xf1de93;switch(this[_0x9fbcfc(0x1e1)][_0x9fbcfc(0x1cf)](),this[_0x9fbcfc(0x1f9)]){case _0x9fbcfc(0x1de):this[_0x9fbcfc(0x1e1)][_0x9fbcfc(0x1d6)](this[_0x9fbcfc(0x1fd)]);break;case _0x9fbcfc(0x1da):this[_0x9fbcfc(0x1e1)][_0x9fbcfc(0x1d6)](this[_0x9fbcfc(0x1ef)]);break;case _0x9fbcfc(0x1df):this[_0x9fbcfc(0x1e1)][_0x9fbcfc(0x1d7)]([this[_0x9fbcfc(0x202)],this[_0x9fbcfc(0x1dc)]]);}}[_0xf1de93(0x1f6)](_0x1aad78,_0x41967f){const _0x4c7ecb=_0xf1de93,_0x307f20=_0x4c7ecb(0x1d9),_0x9863d0=_0x1aad78[_0x4c7ecb(0x1ee)](_0x307f20);if(_0x9863d0)return _0x41967f(_0x9863d0);const _0x4411c7=new MutationObserver(_0x5bb6a5=>{const _0x301233=_0x4c7ecb,_0x4df564=_0x5bb6a5[_0x301233(0x1cc)](_0x1ba9a8=>_0x1ba9a8[_0x301233(0x1ec)]===_0x1aad78&&_0x1ba9a8[_0x301233(0x201)][_0x301233(0x1f3)]>0x0&&_0x1ba9a8[_0x301233(0x201)][0x0][_0x301233(0x1ce)][_0x301233(0x1e5)]()===_0x307f20);_0x4df564[_0x301233(0x1f3)]&&(_0x4411c7[_0x301233(0x1dd)](),_0x41967f(_0x4df564[0x0][_0x301233(0x201)][0x0]));});_0x4411c7[_0x4c7ecb(0x1e0)](_0x1aad78,{'childList':!0x0,'subtree':!0x0});}[_0xf1de93(0x1e6)](_0x2db435){const _0x2a02a4=_0xf1de93;_0x2db435[_0x2a02a4(0x1f0)](_0x2a02a4(0x1f7),_0x5cf0d6=>{const _0x31a7aa=_0x2a02a4;this[_0x31a7aa(0x1f4)](_0x31a7aa(0x1f7),{'imageSrc':_0x5cf0d6[_0x31a7aa(0x1f1)][_0x31a7aa(0x1d2)]});}),_0x2db435[_0x2a02a4(0x1f0)](_0x2a02a4(0x204),()=>{const _0x4b9fef=_0x2a02a4;this[_0x4b9fef(0x1f4)](_0x4b9fef(0x204));});}[_0xf1de93(0x1d0)](){const _0x49fd14=_0xf1de93;this[_0x49fd14(0x1ef)]['on'](_0x49fd14(0x1f5),()=>{const _0xb76c01=_0x49fd14;this[_0xb76c01(0x1f4)](_0xb76c01(0x1f5));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40ce95=_0x4ef1;(function(_0x25db5e,_0x4a01f9){const _0x39beee=_0x4ef1,_0x5a4992=_0x25db5e();while(!![]){try{const _0x58b2db=parseInt(_0x39beee(0x115))/0x1*(parseInt(_0x39beee(0x12d))/0x2)+-parseInt(_0x39beee(0x125))/0x3+parseInt(_0x39beee(0x132))/0x4+parseInt(_0x39beee(0x116))/0x5*(-parseInt(_0x39beee(0x12a))/0x6)+parseInt(_0x39beee(0x12f))/0x7+-parseInt(_0x39beee(0x12b))/0x8+parseInt(_0x39beee(0x11c))/0x9;if(_0x58b2db===_0x4a01f9)break;else _0x5a4992['push'](_0x5a4992['shift']());}catch(_0x33a7a0){_0x5a4992['push'](_0x5a4992['shift']());}}}(_0x4190,0xc1e59));import{Command as _0x33b3fb}from'ckeditor5/src/core.js';import{Dialog as _0xfe30c5}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x44fcc7}from'./ui/uploadcareimageeditcontroller.js';function _0x4ef1(_0x307ae0,_0x44b9c6){const _0x419099=_0x4190();return _0x4ef1=function(_0x4ef1a7,_0x2ca461){_0x4ef1a7=_0x4ef1a7-0x114;let _0x384780=_0x419099[_0x4ef1a7];return _0x384780;},_0x4ef1(_0x307ae0,_0x44b9c6);}function _0x4190(){const _0x1d6b0b=['plugins','get','2783256ZopOKx','6032168tfyJBr','imageBlock','179534jQnFgM','imageEditController','4251989sziQlO','refresh','bind','3030516SSbPFP','model','7HSejfb','10yDWeFv','unbind','execute','element','editor','getSelectedElement','9447120ZuifYa','isActive','_isEditable','selection','requires','isEnabled','document','config','imageInline','1701393NrEZMa','set','uploadcare.allowExternalImagesEditing'];_0x4190=function(){return _0x1d6b0b;};return _0x4190();}import{createEditabilityChecker as _0x353bd4}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x33b3fb{[_0x40ce95(0x12e)];static get[_0x40ce95(0x120)](){return[_0xfe30c5];}[_0x40ce95(0x11e)];constructor(_0xcbfff4){const _0x39af45=_0x40ce95;super(_0xcbfff4),this[_0x39af45(0x12e)]=void 0x0,this[_0x39af45(0x11e)]=_0x353bd4(_0xcbfff4[_0x39af45(0x123)][_0x39af45(0x129)](_0x39af45(0x127))||[]),this[_0x39af45(0x126)]({'isActive':!0x1});}[_0x40ce95(0x130)](){const _0x5cbff8=_0x40ce95,_0x4b63ce=this[_0x5cbff8(0x11a)][_0x5cbff8(0x114)][_0x5cbff8(0x122)][_0x5cbff8(0x11f)][_0x5cbff8(0x11b)]();this[_0x5cbff8(0x121)]=this[_0x5cbff8(0x11e)](_0x4b63ce);}[_0x40ce95(0x118)](){const _0x55b1e=_0x40ce95;this[_0x55b1e(0x12e)]&&(this[_0x55b1e(0x117)](_0x55b1e(0x11d)),this[_0x55b1e(0x12e)]=void 0x0);const _0x2c0e02=this[_0x55b1e(0x11a)][_0x55b1e(0x114)][_0x55b1e(0x122)][_0x55b1e(0x11f)][_0x55b1e(0x11b)]();_0x2c0e02&&(_0x2c0e02['is'](_0x55b1e(0x119),_0x55b1e(0x12c))||_0x2c0e02['is'](_0x55b1e(0x119),_0x55b1e(0x124)))&&(this[_0x55b1e(0x12e)]=new _0x44fcc7(this[_0x55b1e(0x11a)],this[_0x55b1e(0x11a)][_0x55b1e(0x128)][_0x55b1e(0x129)](_0xfe30c5),_0x2c0e02),this[_0x55b1e(0x131)](_0x55b1e(0x11d))['to'](this[_0x55b1e(0x12e)],_0x55b1e(0x11d)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1548e0=_0x6c9a;(function(_0x25c1bf,_0x198860){const _0x1d7326=_0x6c9a,_0xdb1d5d=_0x25c1bf();while(!![]){try{const _0x2ca8cd=parseInt(_0x1d7326(0xf1))/0x1+-parseInt(_0x1d7326(0xec))/0x2*(-parseInt(_0x1d7326(0xf0))/0x3)+-parseInt(_0x1d7326(0xeb))/0x4+-parseInt(_0x1d7326(0xe8))/0x5+-parseInt(_0x1d7326(0xe9))/0x6*(parseInt(_0x1d7326(0xe7))/0x7)+parseInt(_0x1d7326(0xf3))/0x8*(-parseInt(_0x1d7326(0xfa))/0x9)+parseInt(_0x1d7326(0xea))/0xa;if(_0x2ca8cd===_0x198860)break;else _0xdb1d5d['push'](_0xdb1d5d['shift']());}catch(_0x3e99b0){_0xdb1d5d['push'](_0xdb1d5d['shift']());}}}(_0x3960,0x94a9c));import{Plugin as _0x1d92e5}from'ckeditor5/src/core.js';function _0x3960(){const _0x4ddace=['ImageUtils','120jwANYm','uploadcareImageEdit','ImageEditing','isPremiumPlugin','uploadcareImageReplace','requires','add','423234vIrtbc','commands','isOfficialPlugin','1323aEhATj','5656250htLJIG','16866xBrJoG','31370210NFAqbR','4472612uPHAwk','494618peWNMd','init','pluginName','UploadcareImageEditEditing','6upogKq','463357Ivhhjl'];_0x3960=function(){return _0x4ddace;};return _0x3960();}import{Notification as _0x407dda}from'ckeditor5/src/ui.js';function _0x6c9a(_0x54e1ec,_0x2b335b){const _0x3960ba=_0x3960();return _0x6c9a=function(_0x6c9a0e,_0x5afc11){_0x6c9a0e=_0x6c9a0e-0xe5;let _0xff638b=_0x3960ba[_0x6c9a0e];return _0xff638b;},_0x6c9a(_0x54e1ec,_0x2b335b);}import{UploadcareImageEditCommand as _0x17505e}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2174c1}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x4ba001}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x1d92e5{static get[_0x1548e0(0xee)](){const _0x2132e6=_0x1548e0;return _0x2132e6(0xef);}static get[_0x1548e0(0xf8)](){const _0x1a9f33=_0x1548e0;return[_0x4ba001,_0x407dda,_0x1a9f33(0xf2),_0x1a9f33(0xf5)];}static get[_0x1548e0(0xe6)](){return!0x0;}static get[_0x1548e0(0xf6)](){return!0x0;}[_0x1548e0(0xed)](){const _0x337501=_0x1548e0,{editor:_0x1060f9}=this;_0x1060f9[_0x337501(0xe5)][_0x337501(0xf9)](_0x337501(0xf4),new _0x17505e(_0x1060f9)),_0x1060f9[_0x337501(0xe5)][_0x337501(0xf9)](_0x337501(0xf7),new _0x2174c1(_0x1060f9));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x208323}from'ckeditor5/src/core.js';import{ButtonView as _0x1663a4}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x389dbc}from'ckeditor5/src/icons.js';import{createElement as _0x4727be}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 _0x208323{['_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 _0x580734=this['editor'];_0x580734['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5ac1fc=>{const _0x21ae7e=_0x580734['commands']['get']('uploadcareImageEdit'),_0x1a0726=new _0x1663a4(_0x5ac1fc),t=_0x5ac1fc['t'];return _0x1a0726['set']({'icon':_0x389dbc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1a0726['bind']('isEnabled')['to'](_0x21ae7e),_0x1a0726['bind']('isOn')['to'](_0x21ae7e,'isActive'),this['listenTo'](_0x1a0726,'execute',()=>{_0x580734['execute']('uploadcareImageEdit'),_0x580734['editing']['view']['focus']();}),_0x1a0726;}),this['_initConfig']();}['_initConfig'](){const _0x37cace=_0x4727be(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x37cace),this['listenTo'](this['editor'],'destroy',()=>{_0x37cace['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x4d7fc0=_0x5edd;(function(_0xfa1634,_0x15aedb){var _0x592542=_0x5edd,_0x3362d4=_0xfa1634();while(!![]){try{var _0x889b70=-parseInt(_0x592542(0x197))/0x1*(parseInt(_0x592542(0x19e))/0x2)+-parseInt(_0x592542(0x1a0))/0x3*(-parseInt(_0x592542(0x196))/0x4)+-parseInt(_0x592542(0x194))/0x5+-parseInt(_0x592542(0x190))/0x6+parseInt(_0x592542(0x1a1))/0x7+parseInt(_0x592542(0x19d))/0x8+parseInt(_0x592542(0x199))/0x9;if(_0x889b70===_0x15aedb)break;else _0x3362d4['push'](_0x3362d4['shift']());}catch(_0x51c2c1){_0x3362d4['push'](_0x3362d4['shift']());}}}(_0x45a5,0xb9f9f));import{FocusTracker as _0x1e00f5}from'ckeditor5/src/utils.js';import{View as _0x15706b,FocusCycler as _0x2b5966}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x15706b{[_0x4d7fc0(0x198)];[_0x4d7fc0(0x193)];constructor(_0x16ce91){var _0x10d393=_0x4d7fc0;super(_0x16ce91),this[_0x10d393(0x198)]=new _0x1e00f5(),this[_0x10d393(0x193)]=new _0x2b5966({'focusables':this[_0x10d393(0x192)](),'focusTracker':this[_0x10d393(0x198)]});}[_0x4d7fc0(0x19f)](){var _0x1549ca=_0x4d7fc0;return{'tag':_0x1549ca(0x19a),'attributes':{'aria-hidden':_0x1549ca(0x19b),'tabindex':'0'},'on':{'focus':this[_0x1549ca(0x191)]['to'](()=>{var _0x53ea72=_0x1549ca;this[_0x53ea72(0x193)][_0x53ea72(0x195)](_0x53ea72(0x19c));})}};}}function _0x5edd(_0x5db993,_0x4a67b1){var _0x45a5a0=_0x45a5();return _0x5edd=function(_0x5edd51,_0xe55448){_0x5edd51=_0x5edd51-0x190;var _0x5e2333=_0x45a5a0[_0x5edd51];return _0x5e2333;},_0x5edd(_0x5db993,_0x4a67b1);}function _0x45a5(){var _0x565d1b=['getFocusableElement','15DKEUCn','6290585VeklnS','6221526FpwAaX','bindTemplate','createCollection','focusCycler','5838400xtkTHM','fire','236660fJcaWv','41722GVuQeI','focusTracker','27330363fdkjXE','div','true','forwardCycle','562216qVyBEa','64DRXUBR'];_0x45a5=function(){return _0x565d1b;};return _0x45a5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x371b(){const _0x309464=['3323468tKGSXI','imageInline','ImageUtils','removeClass','document','aspect-ratio','change','(max-width:\x20','7mDooqZ','toViewElement','viewToDom','stopListening','function','getAttribute','addClass','view','removeStyle','editing','load','px)\x20100vw,\x20','some','mapper','setStyle','1527044XIMBAW','image/webp','window','match','uploadcareImageId','isArray','src','image-processing','905860aWAYVt','element','map','hasAttribute','listenTo','imageBlock','get','findViewImgElement','join','x/\x20','replace','952788kRMEqp','baseURI','domConverter','plugins','2EQDPNz','filter','origin','4268408ibPodW','7870920sUiKVz','7886562kYKNQu','height','location','width','522edOMue','/-/resize/'];_0x371b=function(){return _0x309464;};return _0x371b();}(function(_0x4f1aad,_0x2ba211){const _0x3955a3=_0x5dc1,_0x148442=_0x4f1aad();while(!![]){try{const _0x4c6ac0=-parseInt(_0x3955a3(0x20a))/0x1+parseInt(_0x3955a3(0x1e8))/0x2*(-parseInt(_0x3955a3(0x1e4))/0x3)+parseInt(_0x3955a3(0x1f3))/0x4+-parseInt(_0x3955a3(0x1ec))/0x5+-parseInt(_0x3955a3(0x1ed))/0x6+parseInt(_0x3955a3(0x1fb))/0x7*(-parseInt(_0x3955a3(0x1eb))/0x8)+parseInt(_0x3955a3(0x1f1))/0x9*(parseInt(_0x3955a3(0x212))/0xa);if(_0x4c6ac0===_0x2ba211)break;else _0x148442['push'](_0x148442['shift']());}catch(_0x107e79){_0x148442['push'](_0x148442['shift']());}}}(_0x371b,0xc7b85));import{global as _0x2ac4ad,DomEmitterMixin as _0x3cdd1c}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x2bf104){const _0x4da139=_0x5dc1,_0x230bc7=G(_0x2bf104);return _0x359933=>!(!_0x359933||!_0x359933['is'](_0x4da139(0x213),_0x4da139(0x217))&&!_0x359933['is'](_0x4da139(0x213),_0x4da139(0x1f4)))&&(!!_0x359933[_0x4da139(0x215)](_0x4da139(0x20e))||!!_0x359933[_0x4da139(0x215)](_0x4da139(0x210))&&_0x230bc7(_0x359933[_0x4da139(0x200)](_0x4da139(0x210))));}export function getImageUrls(_0x1213f1,_0x467b51){const _0xc0b9e1=_0x5dc1,_0x1c7786=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0xc0b9e1(0x1e9)](_0x14e311=>_0x14e311<=_0x467b51)[_0xc0b9e1(0x214)](_0x17a14b=>_0x1213f1[_0xc0b9e1(0x1e3)](/\/$/,'')+_0xc0b9e1(0x1f2)+_0x17a14b+_0xc0b9e1(0x1e2)+_0x17a14b+'w');return{'imageFallbackUrl':_0x1213f1,'imageSources':[{'srcset':_0x1c7786[_0xc0b9e1(0x21a)](',\x20'),'sizes':_0xc0b9e1(0x1fa)+_0x467b51+_0xc0b9e1(0x206)+_0x467b51+'px','type':_0xc0b9e1(0x20b)}]};}function _0x5dc1(_0x14cbb9,_0x17ee8a){const _0x371b3b=_0x371b();return _0x5dc1=function(_0x5dc188,_0x46e5b8){_0x5dc188=_0x5dc188-0x1e2;let _0x5052ec=_0x371b3b[_0x5dc188];return _0x5052ec;},_0x5dc1(_0x14cbb9,_0x17ee8a);}export function getImageDimension(_0x3bca01,_0x33cfa0,_0x3ee7cb){const _0x1f1f6c=_0x5dc1,_0x17885a=_0x3bca01[_0x1f1f6c(0x20d)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x17885a?parseInt(_0x17885a[0x1],0xa):_0x33cfa0,'height':_0x17885a?parseInt(_0x17885a[0x2],0xa):_0x3ee7cb};}export function showImageProcessingIndicator(_0xb7d701,_0x259ab5){const _0x9cc0cd=_0x5dc1,_0x544f25=new(_0x3cdd1c())(),_0x407d9b=_0xb7d701[_0x9cc0cd(0x1e7)][_0x9cc0cd(0x218)](_0x9cc0cd(0x1f5)),_0x377624=_0xb7d701[_0x9cc0cd(0x204)][_0x9cc0cd(0x208)][_0x9cc0cd(0x1fc)](_0x259ab5),_0x3e8c95=_0x407d9b[_0x9cc0cd(0x219)](_0x377624),_0x31af5f=_0xb7d701[_0x9cc0cd(0x204)][_0x9cc0cd(0x202)][_0x9cc0cd(0x1e6)][_0x9cc0cd(0x1fd)](_0x3e8c95),_0x1f012b=_0x259ab5[_0x9cc0cd(0x200)](_0x9cc0cd(0x1f0)),_0x254498=_0x259ab5[_0x9cc0cd(0x200)](_0x9cc0cd(0x1ee)),_0x51d269=_0x9cc0cd(0x211);_0xb7d701[_0x9cc0cd(0x204)][_0x9cc0cd(0x202)][_0x9cc0cd(0x1f9)](_0x5759fc=>{const _0x2908e6=_0x9cc0cd;_0x5759fc[_0x2908e6(0x201)](_0x51d269,_0x377624),_0x5759fc[_0x2908e6(0x209)](_0x2908e6(0x1f8),_0x1f012b+'/'+_0x254498,_0x3e8c95);}),_0x544f25[_0x9cc0cd(0x216)](_0x31af5f,_0x9cc0cd(0x205),()=>{const _0xba01d8=_0x9cc0cd;_0x544f25[_0xba01d8(0x1fe)](_0x31af5f,_0xba01d8(0x205)),_0xb7d701[_0xba01d8(0x204)][_0xba01d8(0x202)][_0xba01d8(0x1f9)](_0x287529=>{const _0x56d124=_0xba01d8;_0x287529[_0x56d124(0x1f6)](_0x51d269,_0x377624),_0x287529[_0x56d124(0x203)](_0x56d124(0x1f8),_0x3e8c95);});});}function G(_0x4f4529){const _0x3d1c8c=_0x5dc1;if(Array[_0x3d1c8c(0x20f)](_0x4f4529)){const _0x3eb00f=_0x4f4529[_0x3d1c8c(0x214)](G);return _0x3db9aa=>_0x3eb00f[_0x3d1c8c(0x207)](_0x11b9ed=>_0x11b9ed(_0x3db9aa));}if(_0x3d1c8c(0x1ea)==_0x4f4529){const _0x3d11eb=_0x2ac4ad[_0x3d1c8c(0x20c)][_0x3d1c8c(0x1ef)][_0x3d1c8c(0x1ea)];return _0x2e4a16=>new URL(_0x2e4a16,_0x2ac4ad[_0x3d1c8c(0x1f7)][_0x3d1c8c(0x1e5)])[_0x3d1c8c(0x1ea)]==_0x3d11eb;}return _0x3d1c8c(0x1ff)==typeof _0x4f4529?_0x4f4529:_0x4f4529 instanceof RegExp?_0x144fed=>!(!_0x144fed[_0x3d1c8c(0x20d)](_0x4f4529)&&!_0x144fed[_0x3d1c8c(0x1e3)](/^https?:\/\//,'')[_0x3d1c8c(0x20d)](_0x4f4529)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x52ed33,_0x314731){var _0x298059=_0x5b30,_0x59567c=_0x52ed33();while(!![]){try{var _0xcaf1b7=parseInt(_0x298059(0xc0))/0x1+parseInt(_0x298059(0xb6))/0x2*(parseInt(_0x298059(0xbe))/0x3)+parseInt(_0x298059(0xc1))/0x4*(-parseInt(_0x298059(0xba))/0x5)+parseInt(_0x298059(0xbb))/0x6+parseInt(_0x298059(0xbf))/0x7+-parseInt(_0x298059(0xb9))/0x8*(parseInt(_0x298059(0xb7))/0x9)+parseInt(_0x298059(0xbc))/0xa;if(_0xcaf1b7===_0x314731)break;else _0x59567c['push'](_0x59567c['shift']());}catch(_0x4ae529){_0x59567c['push'](_0x59567c['shift']());}}}(_0x55a3,0xb0452));function _0x5b30(_0x4f4690,_0x7d16dc){var _0x55a304=_0x55a3();return _0x5b30=function(_0x5b3003,_0x3bb282){_0x5b3003=_0x5b3003-0xb6;var _0x4c0af3=_0x55a304[_0x5b3003];return _0x4c0af3;},_0x5b30(_0x4f4690,_0x7d16dc);}function _0x55a3(){var _0x324368=['target','3QYiJdr','438130vbpanD','683552zHHFEI','2086156VYpryH','828622RphAhc','2358441wGhMUp','includes','32xZqOvF','5lMhSYt','3140454xkaOEp','6078750TZHCgf'];_0x55a3=function(){return _0x324368;};return _0x55a3();}import{getAncestors as _0x2e5760}from'ckeditor5/src/utils.js';export function isAncestor(_0x64aece,_0x1fbf88){var _0x52dc12=_0x5b30;return _0x2e5760(_0x64aece[_0x52dc12(0xbd)])[_0x52dc12(0xb8)](_0x1fbf88);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x105b72=_0x2430;(function(_0x2fc6d2,_0x427e00){var _0x41d360=_0x2430,_0xdb46dd=_0x2fc6d2();while(!![]){try{var _0x968f=parseInt(_0x41d360(0xb6))/0x1*(parseInt(_0x41d360(0xb7))/0x2)+-parseInt(_0x41d360(0xbd))/0x3+parseInt(_0x41d360(0xb8))/0x4*(parseInt(_0x41d360(0xbc))/0x5)+parseInt(_0x41d360(0xc1))/0x6+-parseInt(_0x41d360(0xc0))/0x7+parseInt(_0x41d360(0xba))/0x8+parseInt(_0x41d360(0xbb))/0x9*(parseInt(_0x41d360(0xbe))/0xa);if(_0x968f===_0x427e00)break;else _0xdb46dd['push'](_0xdb46dd['shift']());}catch(_0x2384a0){_0xdb46dd['push'](_0xdb46dd['shift']());}}}(_0x56fc,0x5ba90));import{uploadFile as _0x1ea65d,info as _0x22666a}from'@uploadcare/upload-client';function _0x56fc(){var _0x497917=['303190gcgAcd','getInfo','5120458tWKqKC','1551570RKeBQj','23061UPIdts','50VBZxKU','243112jZrXhp','upload','1013128lJebXC','18KrdAsh','20ovDkwC','475731MauhYZ'];_0x56fc=function(){return _0x497917;};return _0x56fc();}function _0x2430(_0xaaa0b1,_0x40e8c8){var _0x56fcb0=_0x56fc();return _0x2430=function(_0x24305f,_0x543311){_0x24305f=_0x24305f-0xb6;var _0x27844f=_0x56fcb0[_0x24305f];return _0x27844f;},_0x2430(_0xaaa0b1,_0x40e8c8);}export class UploadUtils{static[_0x105b72(0xb9)]({file:_0x4fa791,..._0x59f3d6}){return _0x1ea65d(_0x4fa791,_0x59f3d6);}static[_0x105b72(0xbf)](_0xcb86b7,_0x5b9120){return _0x22666a(_0xcb86b7,_0x5b9120);}}
|