@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260117.0 → 0.0.0-nightly-20260118.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 _0x5d38cf,ObservableMixin as _0x5c77fe}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x223989}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2e4811}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1c27ce}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x363663}from'../../utils/uploadutils.js';import{getImageUrls as _0x4b3317,getImageDimension as _0x27f14a}from'../../utils/editingutils.js';import{isAncestor as _0xd1f7c8}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5c77fe(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5d312a,_0x52124e,_0x436d04){super(),this['_editor']=_0x5d312a,this['_dialog']=_0x52124e,this['_imageElement']=_0x436d04,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 _0x73bb76=this['_imageElement'],_0x1b9cb4=_0x73bb76['getAttribute']('uploadcareImageId'),_0x3d85d2=_0x73bb76['getAttribute']('src');if(_0x1b9cb4)await this['_loadImageInfo'](_0x1b9cb4,_0x3d85d2);else{if(this['_imageCache']['has'](_0x3d85d2)){const _0x5428cd=this['_imageCache']['get'](_0x3d85d2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5428cd['url'],this['imageDimension']=_0x5428cd['dimension'],this['imageId']=_0x5428cd['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3a77cc}=this['_editor'],t=_0x3a77cc['t'],_0x1c2186=new _0x1c27ce(_0x3a77cc,this['imageStatus'],this['_attributes']);_0x1c2186['bind']('status')['to'](this,'imageStatus'),_0x1c2186['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1c2186['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1c2186['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1c2186,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2e4811,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1c2186,'position':_0x223989['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1c2186['focus']();},'onHide':()=>{_0x1c2186['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1dc89c=>!_0xd1f7c8(_0x1dc89c,_0x1c2186['element'])}});}['_loadImageInfo'](_0x2b0cd2,_0x2bc4ec){return _0x363663['getInfo'](_0x2b0cd2,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x37bf7e=>{const {width:_0x15f149,height:_0x2a44d3}=_0x37bf7e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2bc4ec,this['imageDimension']={'width':_0x15f149,'height':_0x2a44d3},this['imageId']=_0x2b0cd2;})['catch'](_0x54ffdf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x54ffdf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x31de9b,_0x1bf3b9){return this['_getImageAsFile'](_0x31de9b)['then'](_0x217ff1=>_0x363663['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':_0x1bf3b9['signal'],'file':_0x217ff1,'onProgress':_0x27ecd9=>{_0x27ecd9&&_0x27ecd9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x27ecd9['value']));}}))['then'](_0x3fdcac=>{const {width:_0x41cd8e,height:_0x5a43eb}=_0x3fdcac['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3fdcac['cdnUrl'],this['imageDimension']={'width':_0x41cd8e,'height':_0x5a43eb},this['imageId']=_0x3fdcac['uuid'],this['imageUploadProgress']=null;const _0x45fd7e=_0x31de9b['getAttribute']('src');this['_imageCache']['set'](_0x45fd7e,{'id':_0x3fdcac['uuid'],'url':_0x3fdcac['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1d5e77=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1d5e77['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x48b0dd,_0x42cd50){_0x48b0dd['on']('apply',(_0x2cfae0,_0x4393ab)=>{this['_replaceImage'](_0x42cd50,_0x4393ab['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x48b0dd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x48b0dd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3b7582,_0xd639af,_0x4aad3b){const _0x54b2ff=this['_editor'],{width:_0x536218,height:_0x1b918b}=_0x27f14a(_0xd639af,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x29c1a7,imageSources:_0x4f5bf6}=_0x4b3317(_0xd639af,_0x536218);_0x54b2ff['model']['change'](_0x5f25f0=>{if('$graveyard'===_0x3b7582['root']['rootName']){_0x54b2ff['execute']('insertImage',{'imageType':_0x3b7582['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3b7582['getAttributes']()),'uploadcareImageId':_0x4aad3b,'src':_0x29c1a7,'sources':_0x4f5bf6,'width':_0x536218,'height':_0x1b918b}});const _0x1acd47=_0x3b7582['getChildren']();_0x3b7582=_0x54b2ff['model']['document']['selection']['getSelectedElement']();for(const _0x4bd812 of _0x1acd47)_0x5f25f0['append'](_0x5f25f0['cloneElement'](_0x4bd812),_0x3b7582);}else _0x5f25f0['setSelection'](_0x3b7582,'on'),_0x54b2ff['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3b7582['getAttributes']()),'uploadcareImageId':_0x4aad3b,'src':_0x29c1a7,'sources':_0x4f5bf6,'width':_0x536218,'height':_0x1b918b},_0x3b7582);_0x5f25f0['setSelection'](_0x3b7582,'on');});}async['_getImageAsFile'](_0x98a157){const _0x3748b9=_0x5d38cf['window'],_0x22b653=_0x5d38cf['document']['location']['href'],_0x3de811=new _0x3748b9['URL'](_0x98a157['getAttribute']('src'),_0x22b653);if('data:'===_0x3de811['protocol']){const _0x4ce77d=_0x3de811['href']['split'](','),_0x5e0ea1=_0x4ce77d[0x0]['match'](/:(.*?);/)[0x1],_0x312076=_0x5e0ea1['split']('/')[0x1],_0x4bb9b8=_0x3748b9['atob'](_0x4ce77d[_0x4ce77d['length']-0x1]);let _0x57e35f=_0x4bb9b8['length'];const _0x5b25ac=new _0x3748b9['Uint8Array'](_0x57e35f);for(;_0x57e35f--;)_0x5b25ac[_0x57e35f]=_0x4bb9b8['charCodeAt'](_0x57e35f);return new _0x3748b9['File']([_0x5b25ac],'image.'+_0x312076,{'type':_0x5e0ea1});}const _0xd3e144=_0x3de811['href']['split']('/'),_0x502382=_0xd3e144[_0xd3e144['length']-0x1],_0x26550c=_0x502382['split']('.')[0x1];return _0x3748b9['fetch'](_0x3de811['href'])['then'](_0x52764f=>_0x52764f['clone']()['blob']())['then'](_0x23119f=>new _0x3748b9['File']([_0x23119f],_0x502382,{'type':'image/'+_0x26550c}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x2a46f8,_0x179a2d){const _0x240904=_0x1da4,_0x24dc5d=_0x2a46f8();while(!![]){try{const _0x1a5887=-parseInt(_0x240904(0x1be))/0x1+-parseInt(_0x240904(0x1cc))/0x2*(-parseInt(_0x240904(0x1c5))/0x3)+parseInt(_0x240904(0x1cb))/0x4+parseInt(_0x240904(0x1cd))/0x5+-parseInt(_0x240904(0x1c7))/0x6*(parseInt(_0x240904(0x1c8))/0x7)+-parseInt(_0x240904(0x1c2))/0x8*(-parseInt(_0x240904(0x1c0))/0x9)+parseInt(_0x240904(0x1bc))/0xa;if(_0x1a5887===_0x179a2d)break;else _0x24dc5d['push'](_0x24dc5d['shift']());}catch(_0x1ae182){_0x24dc5d['push'](_0x24dc5d['shift']());}}}(_0xe02c,0x5bd6e));import{View as _0x17491c}from'ckeditor5/src/ui.js';function _0xe02c(){const _0x1a6206=['setTemplate','1593700KPVUXs','914WAMmie','3637610raeORz','2584100mOkwLe','bindTemplate','691716Ihapkc','set','459oVfjFA','uc-light','26800CBIxFo','uc-cloud-image-editor','ck-uploadcare-theme','1245ozuKiy','imageSrc','2030916brZybN','14eBhYKn','image-edit'];_0xe02c=function(){return _0x1a6206;};return _0xe02c();}function _0x1da4(_0x40b899,_0x3f1718){const _0xe02cb6=_0xe02c();return _0x1da4=function(_0x1da4af,_0x1e356e){_0x1da4af=_0x1da4af-0x1bc;let _0x3d151c=_0xe02cb6[_0x1da4af];return _0x3d151c;},_0x1da4(_0x40b899,_0x3f1718);}export class UploadcareImageEditFormEditingView extends _0x17491c{constructor(_0x5d9def,_0x99c3a7){const _0x1a2e45=_0x1da4;super(_0x5d9def);const _0xd74ab4=this[_0x1a2e45(0x1bd)];this[_0x1a2e45(0x1bf)](_0x1a2e45(0x1c6),''),this[_0x1a2e45(0x1ca)]({'tag':_0x1a2e45(0x1c3),'attributes':{..._0x99c3a7,'class':[_0x1a2e45(0x1c1),_0x1a2e45(0x1c4)],'ctx-name':_0x1a2e45(0x1c9),'cdn-url':_0xd74ab4['to'](_0x1a2e45(0x1c6))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x8ce8f7}from'ckeditor5/src/icons.js';import{ButtonView as _0x47c123,IconView as _0x4a641e,View as _0x416ce6}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x416ce6{constructor(_0x186541){super(_0x186541);const t=_0x186541['t'];this['set']('errorType',null);const _0x55c953=new _0x47c123(_0x186541);_0x55c953['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x55c953['withText']=!0x0,_0x55c953['class']='ck-button-action',_0x55c953['on']('execute',()=>{this['fire']('retry');}),_0x55c953['bind']('isVisible')['to'](this,'errorType',_0x5a1d5e=>'NotFound'!==_0x5a1d5e);const _0x3a317f=new _0x4a641e();_0x3a317f['content']=_0x8ce8f7,_0x3a317f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x49cb30=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':[_0x3a317f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x49cb30['to']('errorType',_0x5c14fa=>t('NotFound'!==_0x5c14fa?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x55c953]},{'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 _0x2560f7,View as _0x36853e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x36853e{constructor(_0x53f312){super(_0x53f312);const t=_0x53f312['t'],_0x2a50c0=this['bindTemplate'],_0x2c4acd=new _0x2560f7();_0x2c4acd['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':[_0x2c4acd,{'text':_0x2a50c0['to']('imageUploadProgress',_0x1e0354=>t('Loading\x20image...')+'\x20('+(_0x1e0354||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2494(_0x3309b1,_0x17800d){const _0x4993f0=_0x4993();return _0x2494=function(_0x2494d7,_0x475a53){_0x2494d7=_0x2494d7-0x154;let _0x311126=_0x4993f0[_0x2494d7];return _0x311126;},_0x2494(_0x3309b1,_0x17800d);}const _0x3e8994=_0x2494;(function(_0x336348,_0x2e9b28){const _0x2db23e=_0x2494,_0x117bea=_0x336348();while(!![]){try{const _0x265fb7=parseInt(_0x2db23e(0x176))/0x1+parseInt(_0x2db23e(0x16a))/0x2*(-parseInt(_0x2db23e(0x184))/0x3)+parseInt(_0x2db23e(0x178))/0x4*(parseInt(_0x2db23e(0x154))/0x5)+-parseInt(_0x2db23e(0x189))/0x6*(-parseInt(_0x2db23e(0x18b))/0x7)+parseInt(_0x2db23e(0x167))/0x8+-parseInt(_0x2db23e(0x15a))/0x9+parseInt(_0x2db23e(0x16e))/0xa*(-parseInt(_0x2db23e(0x156))/0xb);if(_0x265fb7===_0x2e9b28)break;else _0x117bea['push'](_0x117bea['shift']());}catch(_0x2d544d){_0x117bea['push'](_0x117bea['shift']());}}}(_0x4993,0xdfa1c));import{View as _0x38a365}from'ckeditor5/src/ui.js';function _0x4993(){const _0x20fdbd=['_setView','target','addEventListener','uc-cloud-image-editor','length','change:status','addMany','ck-uploadcare-form','12991776rBkmcU','observe','_addUploadcareImageEditorListeners','2WeAqAo','_items','_loadingView','_addErrorViewListeners','1940Qixqbs','add','apply','ck-reset_all-excluded','querySelector','_errorView','uploading','detail','1770846jUARDT','error','564856tOCeaG','ready','_waitForImageEditorComponent','setTemplate','disconnect','createCollection','div','filter','toLowerCase','render','fire','once','821007xobhMu','getFocusableElement','retry','focus','nodeName','18ywGRMe','cancel','241073CTrgsM','5WXxyKW','set','57739sGgAqz','_editingView','element','status','12882402XqgBsH','cdnUrl','clear','_focusableView','addedNodes'];_0x4993=function(){return _0x20fdbd;};return _0x4993();}import{UploadcareImageEditFormLoadingView as _0xc415f5}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x1956e2}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x1a2d8d}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x4ffc8d}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x4ffc8d{[_0x3e8994(0x16b)];[_0x3e8994(0x16c)];[_0x3e8994(0x173)];[_0x3e8994(0x157)];[_0x3e8994(0x15d)];constructor(_0x1b20c0,_0x10ba17,_0x2221ef){const _0x354990=_0x3e8994;super(_0x1b20c0),this[_0x354990(0x16b)]=this[_0x354990(0x17d)](),this[_0x354990(0x16c)]=new _0xc415f5(_0x1b20c0),this[_0x354990(0x173)]=new _0x1956e2(_0x1b20c0),this[_0x354990(0x157)]=new _0x1a2d8d(_0x1b20c0,_0x2221ef),this[_0x354990(0x15d)]=new _0x38a365(_0x1b20c0),this[_0x354990(0x15d)][_0x354990(0x17b)](this[_0x354990(0x185)]()),this[_0x354990(0x155)](_0x354990(0x159),_0x10ba17),this[_0x354990(0x17b)]({'tag':_0x354990(0x17e),'attributes':{'class':['ck',_0x354990(0x171),_0x354990(0x166)],'tabindex':'-1'},'children':this[_0x354990(0x16b)]}),this[_0x354990(0x15f)](),this[_0x354990(0x183)](_0x354990(0x181),()=>{const _0x480f38=_0x354990;this[_0x480f38(0x17a)](this[_0x480f38(0x158)],_0x120b33=>{const _0x286190=_0x480f38;this[_0x286190(0x169)](_0x120b33);});}),this['on'](_0x354990(0x164),()=>{const _0x212695=_0x354990;this[_0x212695(0x15f)]();}),this[_0x354990(0x16d)]();}[_0x3e8994(0x187)](){const _0x1471b3=_0x3e8994;this[_0x1471b3(0x158)][_0x1471b3(0x187)]();}[_0x3e8994(0x15f)](){const _0x2191d8=_0x3e8994;switch(this[_0x2191d8(0x16b)][_0x2191d8(0x15c)](),this[_0x2191d8(0x159)]){case _0x2191d8(0x174):this[_0x2191d8(0x16b)][_0x2191d8(0x16f)](this[_0x2191d8(0x16c)]);break;case _0x2191d8(0x177):this[_0x2191d8(0x16b)][_0x2191d8(0x16f)](this[_0x2191d8(0x173)]);break;case _0x2191d8(0x179):this[_0x2191d8(0x16b)][_0x2191d8(0x165)]([this[_0x2191d8(0x157)],this[_0x2191d8(0x15d)]]);}}[_0x3e8994(0x17a)](_0x31358c,_0x19fdef){const _0x3e13ce=_0x3e8994,_0x444133=_0x3e13ce(0x162),_0x59adc5=_0x31358c[_0x3e13ce(0x172)](_0x444133);if(_0x59adc5)return _0x19fdef(_0x59adc5);const _0x2f50bb=new MutationObserver(_0x1cbe47=>{const _0x18fec6=_0x3e13ce,_0x426d84=_0x1cbe47[_0x18fec6(0x17f)](_0x4f939a=>_0x4f939a[_0x18fec6(0x160)]===_0x31358c&&_0x4f939a[_0x18fec6(0x15e)][_0x18fec6(0x163)]>0x0&&_0x4f939a[_0x18fec6(0x15e)][0x0][_0x18fec6(0x188)][_0x18fec6(0x180)]()===_0x444133);_0x426d84[_0x18fec6(0x163)]&&(_0x2f50bb[_0x18fec6(0x17c)](),_0x19fdef(_0x426d84[0x0][_0x18fec6(0x15e)][0x0]));});_0x2f50bb[_0x3e13ce(0x168)](_0x31358c,{'childList':!0x0,'subtree':!0x0});}[_0x3e8994(0x169)](_0x1f2e08){const _0x51dcec=_0x3e8994;_0x1f2e08[_0x51dcec(0x161)](_0x51dcec(0x170),_0x168fb9=>{const _0x57a67c=_0x51dcec;this[_0x57a67c(0x182)](_0x57a67c(0x170),{'imageSrc':_0x168fb9[_0x57a67c(0x175)][_0x57a67c(0x15b)]});}),_0x1f2e08[_0x51dcec(0x161)](_0x51dcec(0x18a),()=>{const _0x4744a9=_0x51dcec;this[_0x4744a9(0x182)](_0x4744a9(0x18a));});}[_0x3e8994(0x16d)](){const _0x5d1eef=_0x3e8994;this[_0x5d1eef(0x173)]['on'](_0x5d1eef(0x186),()=>{const _0x35a498=_0x5d1eef;this[_0x35a498(0x182)](_0x35a498(0x186));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4234c7=_0x24b7;(function(_0x4f8b65,_0x338af0){const _0x48a59f=_0x24b7,_0x301a33=_0x4f8b65();while(!![]){try{const _0x3be43c=parseInt(_0x48a59f(0x153))/0x1*(-parseInt(_0x48a59f(0x140))/0x2)+-parseInt(_0x48a59f(0x14e))/0x3*(parseInt(_0x48a59f(0x155))/0x4)+parseInt(_0x48a59f(0x13e))/0x5*(-parseInt(_0x48a59f(0x14a))/0x6)+parseInt(_0x48a59f(0x152))/0x7*(parseInt(_0x48a59f(0x15d))/0x8)+-parseInt(_0x48a59f(0x14f))/0x9*(parseInt(_0x48a59f(0x150))/0xa)+parseInt(_0x48a59f(0x147))/0xb+parseInt(_0x48a59f(0x141))/0xc*(parseInt(_0x48a59f(0x154))/0xd);if(_0x3be43c===_0x338af0)break;else _0x301a33['push'](_0x301a33['shift']());}catch(_0x52d442){_0x301a33['push'](_0x301a33['shift']());}}}(_0x18b5,0xa1b5d));import{Command as _0x2c1cce}from'ckeditor5/src/core.js';function _0x18b5(){const _0x30c49=['uploadcare.allowExternalImagesEditing','5628AKuVWZ','56kKBCGU','1835301NMNBxf','3004uZLCEW','execute','getSelectedElement','set','document','imageBlock','model','unbind','4248HAlegf','imageInline','isActive','imageEditController','6157265MudGat','config','6274fJmVvE','228teDQSD','refresh','plugins','get','editor','selection','4865146DlZNxg','requires','bind','6roMgNv','_isEditable','element','isEnabled','2703VPMmMJ','87336BWxynB','830MzOhnW'];_0x18b5=function(){return _0x30c49;};return _0x18b5();}import{Dialog as _0x1ede65}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x2fcc53}from'./ui/uploadcareimageeditcontroller.js';function _0x24b7(_0x23986f,_0xee4fbf){const _0x18b551=_0x18b5();return _0x24b7=function(_0x24b79a,_0x26bf2b){_0x24b79a=_0x24b79a-0x13c;let _0x3c0aac=_0x18b551[_0x24b79a];return _0x3c0aac;},_0x24b7(_0x23986f,_0xee4fbf);}import{createEditabilityChecker as _0x87e849}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2c1cce{[_0x4234c7(0x13d)];static get[_0x4234c7(0x148)](){return[_0x1ede65];}[_0x4234c7(0x14b)];constructor(_0x171208){const _0x4866e6=_0x4234c7;super(_0x171208),this[_0x4866e6(0x13d)]=void 0x0,this[_0x4866e6(0x14b)]=_0x87e849(_0x171208[_0x4866e6(0x13f)][_0x4866e6(0x144)](_0x4866e6(0x151))||[]),this[_0x4866e6(0x158)]({'isActive':!0x1});}[_0x4234c7(0x142)](){const _0x37d129=_0x4234c7,_0x1c1b23=this[_0x37d129(0x145)][_0x37d129(0x15b)][_0x37d129(0x159)][_0x37d129(0x146)][_0x37d129(0x157)]();this[_0x37d129(0x14d)]=this[_0x37d129(0x14b)](_0x1c1b23);}[_0x4234c7(0x156)](){const _0x70f19=_0x4234c7;this[_0x70f19(0x13d)]&&(this[_0x70f19(0x15c)](_0x70f19(0x13c)),this[_0x70f19(0x13d)]=void 0x0);const _0x11ccec=this[_0x70f19(0x145)][_0x70f19(0x15b)][_0x70f19(0x159)][_0x70f19(0x146)][_0x70f19(0x157)]();_0x11ccec&&(_0x11ccec['is'](_0x70f19(0x14c),_0x70f19(0x15a))||_0x11ccec['is'](_0x70f19(0x14c),_0x70f19(0x15e)))&&(this[_0x70f19(0x13d)]=new _0x2fcc53(this[_0x70f19(0x145)],this[_0x70f19(0x145)][_0x70f19(0x143)][_0x70f19(0x144)](_0x1ede65),_0x11ccec),this[_0x70f19(0x149)](_0x70f19(0x13c))['to'](this[_0x70f19(0x13d)],_0x70f19(0x13c)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58e8f1=_0x5925;(function(_0xf00b28,_0x2c53be){const _0x237a1a=_0x5925,_0x2e4335=_0xf00b28();while(!![]){try{const _0x2e2c2a=parseInt(_0x237a1a(0x1d8))/0x1+parseInt(_0x237a1a(0x1da))/0x2+-parseInt(_0x237a1a(0x1df))/0x3*(-parseInt(_0x237a1a(0x1e1))/0x4)+-parseInt(_0x237a1a(0x1e3))/0x5+-parseInt(_0x237a1a(0x1e9))/0x6+-parseInt(_0x237a1a(0x1d9))/0x7*(-parseInt(_0x237a1a(0x1de))/0x8)+parseInt(_0x237a1a(0x1d7))/0x9;if(_0x2e2c2a===_0x2c53be)break;else _0x2e4335['push'](_0x2e4335['shift']());}catch(_0x424084){_0x2e4335['push'](_0x2e4335['shift']());}}}(_0xdd44,0x879cb));import{Plugin as _0x2bbd98}from'ckeditor5/src/core.js';import{Notification as _0x567a43}from'ckeditor5/src/ui.js';function _0xdd44(){const _0x4a7b57=['uploadcareImageReplace','2990745tbiGuv','161569WgVORX','1043133nNVISl','1285372ofdkbP','pluginName','requires','commands','8sbIZoh','168LIkbVi','add','19128wSLwRb','isOfficialPlugin','4320895JmiEQx','UploadcareImageEditEditing','uploadcareImageEdit','init','ImageEditing','ImageUtils','802350JPMESi','isPremiumPlugin'];_0xdd44=function(){return _0x4a7b57;};return _0xdd44();}import{UploadcareImageEditCommand as _0x4ebf93}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1b23a4}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x3b4dd9}from'../uploadcareediting.js';function _0x5925(_0x654cf0,_0x2e0384){const _0xdd443f=_0xdd44();return _0x5925=function(_0x5925d7,_0x3f5c99){_0x5925d7=_0x5925d7-0x1d6;let _0xcdfb2=_0xdd443f[_0x5925d7];return _0xcdfb2;},_0x5925(_0x654cf0,_0x2e0384);}export class UploadcareImageEditEditing extends _0x2bbd98{static get[_0x58e8f1(0x1db)](){const _0x3d0a89=_0x58e8f1;return _0x3d0a89(0x1e4);}static get[_0x58e8f1(0x1dc)](){const _0x539677=_0x58e8f1;return[_0x3b4dd9,_0x567a43,_0x539677(0x1e8),_0x539677(0x1e7)];}static get[_0x58e8f1(0x1e2)](){return!0x0;}static get[_0x58e8f1(0x1ea)](){return!0x0;}[_0x58e8f1(0x1e6)](){const _0x1bb1b5=_0x58e8f1,{editor:_0x57f17b}=this;_0x57f17b[_0x1bb1b5(0x1dd)][_0x1bb1b5(0x1e0)](_0x1bb1b5(0x1e5),new _0x4ebf93(_0x57f17b)),_0x57f17b[_0x1bb1b5(0x1dd)][_0x1bb1b5(0x1e0)](_0x1bb1b5(0x1d6),new _0x1b23a4(_0x57f17b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2fbba5}from'ckeditor5/src/core.js';import{ButtonView as _0x1ea314}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x256be2}from'ckeditor5/src/icons.js';import{createElement as _0x371eab}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 _0x2fbba5{['_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 _0x292e2c=this['editor'];_0x292e2c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1225d3=>{const _0x26e734=_0x292e2c['commands']['get']('uploadcareImageEdit'),_0xbf388d=new _0x1ea314(_0x1225d3),t=_0x1225d3['t'];return _0xbf388d['set']({'icon':_0x256be2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xbf388d['bind']('isEnabled')['to'](_0x26e734),_0xbf388d['bind']('isOn')['to'](_0x26e734,'isActive'),this['listenTo'](_0xbf388d,'execute',()=>{_0x292e2c['execute']('uploadcareImageEdit'),_0x292e2c['editing']['view']['focus']();}),_0xbf388d;}),this['_initConfig']();}['_initConfig'](){const _0x345ba5=_0x371eab(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x345ba5),this['listenTo'](this['editor'],'destroy',()=>{_0x345ba5['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x20dda6=_0x2db9;function _0x2db9(_0x347d81,_0x52dac3){var _0x5cb69e=_0x5cb6();return _0x2db9=function(_0x2db969,_0x1306f4){_0x2db969=_0x2db969-0x11a;var _0x43815b=_0x5cb69e[_0x2db969];return _0x43815b;},_0x2db9(_0x347d81,_0x52dac3);}(function(_0x1ef676,_0x307036){var _0x2db0b6=_0x2db9,_0x63128=_0x1ef676();while(!![]){try{var _0x42e4d1=-parseInt(_0x2db0b6(0x11d))/0x1+parseInt(_0x2db0b6(0x127))/0x2*(parseInt(_0x2db0b6(0x12e))/0x3)+parseInt(_0x2db0b6(0x12b))/0x4*(-parseInt(_0x2db0b6(0x12a))/0x5)+parseInt(_0x2db0b6(0x128))/0x6*(-parseInt(_0x2db0b6(0x129))/0x7)+-parseInt(_0x2db0b6(0x11f))/0x8*(parseInt(_0x2db0b6(0x122))/0x9)+-parseInt(_0x2db0b6(0x11a))/0xa*(parseInt(_0x2db0b6(0x125))/0xb)+parseInt(_0x2db0b6(0x120))/0xc;if(_0x42e4d1===_0x307036)break;else _0x63128['push'](_0x63128['shift']());}catch(_0x354f08){_0x63128['push'](_0x63128['shift']());}}}(_0x5cb6,0xc5b8d));import{FocusTracker as _0x4f1475}from'ckeditor5/src/utils.js';import{View as _0x2da169,FocusCycler as _0x2c77fa}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x5cb6(){var _0x1e3094=['forwardCycle','45729CBZNWX','true','focusTracker','55EIpvtk','focusCycler','302madXld','56724TxnWwG','217MktzbH','725dfIJjw','37768vUXlcl','bindTemplate','div','19104NKuiUI','2219470nQZxGu','createCollection','fire','817249TYplBC','getFocusableElement','1544epbhWS','53016984BaxQcr'];_0x5cb6=function(){return _0x1e3094;};return _0x5cb6();}export class DialogFocusManagerView extends _0x2da169{[_0x20dda6(0x124)];[_0x20dda6(0x126)];constructor(_0x504aa3){var _0x217e85=_0x20dda6;super(_0x504aa3),this[_0x217e85(0x124)]=new _0x4f1475(),this[_0x217e85(0x126)]=new _0x2c77fa({'focusables':this[_0x217e85(0x11b)](),'focusTracker':this[_0x217e85(0x124)]});}[_0x20dda6(0x11e)](){var _0x23aa1c=_0x20dda6;return{'tag':_0x23aa1c(0x12d),'attributes':{'aria-hidden':_0x23aa1c(0x123),'tabindex':'0'},'on':{'focus':this[_0x23aa1c(0x12c)]['to'](()=>{var _0x5a367b=_0x23aa1c;this[_0x5a367b(0x126)][_0x5a367b(0x11c)](_0x5a367b(0x121));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2cba(){const _0x1f30e1=['536932ZXqSGR','origin','stopListening','aspect-ratio','15468HPIVWs','533607hqzrHE','domConverter','load','element','window','filter','listenTo','getAttribute','px)\x20100vw,\x20','(max-width:\x20','image-processing','plugins','removeClass','hasAttribute','mapper','128050uxhQXk','src','image/webp','10sLWypj','2754096AkpDER','viewToDom','ImageUtils','view','some','addClass','map','x/\x20','uploadcareImageId','width','function','replace','imageInline','editing','toViewElement','18516gcrCgi','removeStyle','164698cspjpv','imageBlock','setStyle','322UkTkXo','isArray','height','findViewImgElement','change','get','join','baseURI','location','45xNHOGp','document','match','/-/resize/'];_0x2cba=function(){return _0x1f30e1;};return _0x2cba();}function _0x1ea3(_0x558794,_0x711242){const _0x2cba13=_0x2cba();return _0x1ea3=function(_0x1ea3f7,_0x41b8c7){_0x1ea3f7=_0x1ea3f7-0xf5;let _0x45f125=_0x2cba13[_0x1ea3f7];return _0x45f125;},_0x1ea3(_0x558794,_0x711242);}(function(_0x48dd91,_0x31d71a){const _0x3e9360=_0x1ea3,_0x21189f=_0x48dd91();while(!![]){try{const _0x36ec1c=parseInt(_0x3e9360(0x10e))/0x1+parseInt(_0x3e9360(0x11e))/0x2+parseInt(_0x3e9360(0x123))/0x3+parseInt(_0x3e9360(0x122))/0x4*(parseInt(_0x3e9360(0xfc))/0x5)+parseInt(_0x3e9360(0x10c))/0x6*(-parseInt(_0x3e9360(0x111))/0x7)+-parseInt(_0x3e9360(0xfd))/0x8+parseInt(_0x3e9360(0x11a))/0x9*(parseInt(_0x3e9360(0xf9))/0xa);if(_0x36ec1c===_0x31d71a)break;else _0x21189f['push'](_0x21189f['shift']());}catch(_0x3f0e2d){_0x21189f['push'](_0x21189f['shift']());}}}(_0x2cba,0x2ffde));import{global as _0x136a66,DomEmitterMixin as _0x8baea2}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x3f21e3){const _0x3ae55c=_0x1ea3,_0x38fb9d=G(_0x3f21e3);return _0x4db587=>!(!_0x4db587||!_0x4db587['is'](_0x3ae55c(0x126),_0x3ae55c(0x10f))&&!_0x4db587['is'](_0x3ae55c(0x126),_0x3ae55c(0x109)))&&(!!_0x4db587[_0x3ae55c(0xf7)](_0x3ae55c(0x105))||!!_0x4db587[_0x3ae55c(0xf7)](_0x3ae55c(0xfa))&&_0x38fb9d(_0x4db587[_0x3ae55c(0x12a)](_0x3ae55c(0xfa))));}export function getImageUrls(_0x8c8278,_0x48fccd){const _0x571b81=_0x1ea3,_0x157ba9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x571b81(0x128)](_0x5b90ac=>_0x5b90ac<=_0x48fccd)[_0x571b81(0x103)](_0x525935=>_0x8c8278[_0x571b81(0x108)](/\/$/,'')+_0x571b81(0x11d)+_0x525935+_0x571b81(0x104)+_0x525935+'w');return{'imageFallbackUrl':_0x8c8278,'imageSources':[{'srcset':_0x157ba9[_0x571b81(0x117)](',\x20'),'sizes':_0x571b81(0x12c)+_0x48fccd+_0x571b81(0x12b)+_0x48fccd+'px','type':_0x571b81(0xfb)}]};}export function getImageDimension(_0x4a414f,_0x41ced6,_0x204845){const _0xb2bb04=_0x1ea3,_0x2f2fca=_0x4a414f[_0xb2bb04(0x11c)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2f2fca?parseInt(_0x2f2fca[0x1],0xa):_0x41ced6,'height':_0x2f2fca?parseInt(_0x2f2fca[0x2],0xa):_0x204845};}export function showImageProcessingIndicator(_0x1b8442,_0xe66559){const _0x4e0674=_0x1ea3,_0x2fcf86=new(_0x8baea2())(),_0x347bee=_0x1b8442[_0x4e0674(0xf5)][_0x4e0674(0x116)](_0x4e0674(0xff)),_0x2d3d1b=_0x1b8442[_0x4e0674(0x10a)][_0x4e0674(0xf8)][_0x4e0674(0x10b)](_0xe66559),_0x2038fb=_0x347bee[_0x4e0674(0x114)](_0x2d3d1b),_0x2b1e03=_0x1b8442[_0x4e0674(0x10a)][_0x4e0674(0x100)][_0x4e0674(0x124)][_0x4e0674(0xfe)](_0x2038fb),_0x2820e6=_0xe66559[_0x4e0674(0x12a)](_0x4e0674(0x106)),_0x54a1e1=_0xe66559[_0x4e0674(0x12a)](_0x4e0674(0x113)),_0x4ac03b=_0x4e0674(0x12d);_0x1b8442[_0x4e0674(0x10a)][_0x4e0674(0x100)][_0x4e0674(0x115)](_0x5dc7bb=>{const _0x18ce2c=_0x4e0674;_0x5dc7bb[_0x18ce2c(0x102)](_0x4ac03b,_0x2d3d1b),_0x5dc7bb[_0x18ce2c(0x110)](_0x18ce2c(0x121),_0x2820e6+'/'+_0x54a1e1,_0x2038fb);}),_0x2fcf86[_0x4e0674(0x129)](_0x2b1e03,_0x4e0674(0x125),()=>{const _0x43a42f=_0x4e0674;_0x2fcf86[_0x43a42f(0x120)](_0x2b1e03,_0x43a42f(0x125)),_0x1b8442[_0x43a42f(0x10a)][_0x43a42f(0x100)][_0x43a42f(0x115)](_0x147eee=>{const _0x5ce044=_0x43a42f;_0x147eee[_0x5ce044(0xf6)](_0x4ac03b,_0x2d3d1b),_0x147eee[_0x5ce044(0x10d)](_0x5ce044(0x121),_0x2038fb);});});}function G(_0x7ab8ed){const _0x26a2dc=_0x1ea3;if(Array[_0x26a2dc(0x112)](_0x7ab8ed)){const _0x57e30a=_0x7ab8ed[_0x26a2dc(0x103)](G);return _0xdb7fc3=>_0x57e30a[_0x26a2dc(0x101)](_0x4e3dc7=>_0x4e3dc7(_0xdb7fc3));}if(_0x26a2dc(0x11f)==_0x7ab8ed){const _0x3fc6f1=_0x136a66[_0x26a2dc(0x127)][_0x26a2dc(0x119)][_0x26a2dc(0x11f)];return _0x5027c7=>new URL(_0x5027c7,_0x136a66[_0x26a2dc(0x11b)][_0x26a2dc(0x118)])[_0x26a2dc(0x11f)]==_0x3fc6f1;}return _0x26a2dc(0x107)==typeof _0x7ab8ed?_0x7ab8ed:_0x7ab8ed instanceof RegExp?_0x29711f=>!(!_0x29711f[_0x26a2dc(0x11c)](_0x7ab8ed)&&!_0x29711f[_0x26a2dc(0x108)](/^https?:\/\//,'')[_0x26a2dc(0x11c)](_0x7ab8ed)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5a68(){var _0xd87f81=['14090499xcgyiE','includes','1778316qhNLOF','4xtxLDq','5KqngOw','5022210vJCaoj','37640304xBnXct','1539900FORhcL','6128913IFYCJT','2540JSULaK','2sDEMRj','target','8XGEbfE','76285ewNPgp'];_0x5a68=function(){return _0xd87f81;};return _0x5a68();}(function(_0x5bf2ae,_0x3fc94f){var _0x25812d=_0x2797,_0xd64175=_0x5bf2ae();while(!![]){try{var _0x5dd9b6=parseInt(_0x25812d(0x98))/0x1*(parseInt(_0x25812d(0x90))/0x2)+parseInt(_0x25812d(0x93))/0x3*(-parseInt(_0x25812d(0x91))/0x4)+-parseInt(_0x25812d(0x92))/0x5*(parseInt(_0x25812d(0x95))/0x6)+parseInt(_0x25812d(0x96))/0x7+-parseInt(_0x25812d(0x8c))/0x8*(-parseInt(_0x25812d(0x8e))/0x9)+-parseInt(_0x25812d(0x97))/0xa*(-parseInt(_0x25812d(0x8d))/0xb)+-parseInt(_0x25812d(0x94))/0xc;if(_0x5dd9b6===_0x3fc94f)break;else _0xd64175['push'](_0xd64175['shift']());}catch(_0x4a8085){_0xd64175['push'](_0xd64175['shift']());}}}(_0x5a68,0xdf09c));function _0x2797(_0x2ce697,_0x32270c){var _0x5a68bd=_0x5a68();return _0x2797=function(_0x279748,_0x168e03){_0x279748=_0x279748-0x8c;var _0x3d978e=_0x5a68bd[_0x279748];return _0x3d978e;},_0x2797(_0x2ce697,_0x32270c);}import{getAncestors as _0x3c5b28}from'ckeditor5/src/utils.js';export function isAncestor(_0x29ac71,_0x86d233){var _0x2b5b44=_0x2797;return _0x3c5b28(_0x29ac71[_0x2b5b44(0x99)])[_0x2b5b44(0x8f)](_0x86d233);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x5a64d4=_0x6f4b;(function(_0x3f55a3,_0x4e180f){var _0xcde685=_0x6f4b,_0x275d21=_0x3f55a3();while(!![]){try{var _0x5933dd=-parseInt(_0xcde685(0x137))/0x1*(parseInt(_0xcde685(0x136))/0x2)+-parseInt(_0xcde685(0x134))/0x3*(parseInt(_0xcde685(0x12f))/0x4)+parseInt(_0xcde685(0x133))/0x5*(-parseInt(_0xcde685(0x13b))/0x6)+parseInt(_0xcde685(0x13a))/0x7*(-parseInt(_0xcde685(0x13c))/0x8)+-parseInt(_0xcde685(0x13d))/0x9*(-parseInt(_0xcde685(0x130))/0xa)+parseInt(_0xcde685(0x135))/0xb*(-parseInt(_0xcde685(0x132))/0xc)+-parseInt(_0xcde685(0x138))/0xd*(-parseInt(_0xcde685(0x139))/0xe);if(_0x5933dd===_0x4e180f)break;else _0x275d21['push'](_0x275d21['shift']());}catch(_0x308cc3){_0x275d21['push'](_0x275d21['shift']());}}}(_0x261c,0xe476e));function _0x6f4b(_0x457a68,_0x275481){var _0x261cc0=_0x261c();return _0x6f4b=function(_0x6f4b33,_0xa950ef){_0x6f4b33=_0x6f4b33-0x12e;var _0x1e8237=_0x261cc0[_0x6f4b33];return _0x1e8237;},_0x6f4b(_0x457a68,_0x275481);}import{uploadFile as _0x596090,info as _0x4fd4cd}from'@uploadcare/upload-client';function _0x261c(){var _0xff9cb=['8iYNMIG','70OPPmrg','getInfo','12gCQxBV','46315PlYvJf','1014051fvLeVZ','9614099gvwoAV','29596sVAaDx','65ZtdcQq','13UFkqVT','59889998wYHURb','14zVKaeR','750WnqBwA','1036104vumxKE','754389NELieg','upload'];_0x261c=function(){return _0xff9cb;};return _0x261c();}export class UploadUtils{static[_0x5a64d4(0x12e)]({file:_0x67a90f,..._0x5cd745}){return _0x596090(_0x67a90f,_0x5cd745);}static[_0x5a64d4(0x131)](_0xf6eba3,_0x2a094d){return _0x4fd4cd(_0xf6eba3,_0x2a094d);}}
|