@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251216.0 → 0.0.0-nightly-20251217.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 _0x5ba72c,ObservableMixin as _0x41fba2}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x50e72c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x10c3d6}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4b28cb}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x54d6e0}from'../../utils/uploadutils.js';import{getImageUrls as _0x536003,getImageDimension as _0x227705}from'../../utils/editingutils.js';import{isAncestor as _0x5ee0cc}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x41fba2(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1d9262,_0x46dc23,_0x29f300){super(),this['_editor']=_0x1d9262,this['_dialog']=_0x46dc23,this['_imageElement']=_0x29f300,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 _0x29799f=this['_imageElement'],_0xe2a80d=_0x29799f['getAttribute']('uploadcareImageId'),_0x1d3ba1=_0x29799f['getAttribute']('src');if(_0xe2a80d)await this['_loadImageInfo'](_0xe2a80d,_0x1d3ba1);else{if(this['_imageCache']['has'](_0x1d3ba1)){const _0x4038d5=this['_imageCache']['get'](_0x1d3ba1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4038d5['url'],this['imageDimension']=_0x4038d5['dimension'],this['imageId']=_0x4038d5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x140e0e}=this['_editor'],t=_0x140e0e['t'],_0x5f25fe=new _0x4b28cb(_0x140e0e,this['imageStatus'],this['_attributes']);_0x5f25fe['bind']('status')['to'](this,'imageStatus'),_0x5f25fe['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5f25fe['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5f25fe['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5f25fe,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x10c3d6,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5f25fe,'position':_0x50e72c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5f25fe['focus']();},'onHide':()=>{_0x5f25fe['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x231964=>!_0x5ee0cc(_0x231964,_0x5f25fe['element'])}});}['_loadImageInfo'](_0x4b833d,_0x1cc84a){return _0x54d6e0['getInfo'](_0x4b833d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xa84145=>{const {width:_0x1a199d,height:_0x64fdf1}=_0xa84145['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1cc84a,this['imageDimension']={'width':_0x1a199d,'height':_0x64fdf1},this['imageId']=_0x4b833d;})['catch'](_0x133eaf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x133eaf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1fe68f,_0x5380fa){return this['_getImageAsFile'](_0x1fe68f)['then'](_0x7915d6=>_0x54d6e0['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':_0x5380fa['signal'],'file':_0x7915d6,'onProgress':_0x44fbf0=>{_0x44fbf0&&_0x44fbf0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x44fbf0['value']));}}))['then'](_0xcd7cff=>{const {width:_0x4a42dc,height:_0x5487c9}=_0xcd7cff['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xcd7cff['cdnUrl'],this['imageDimension']={'width':_0x4a42dc,'height':_0x5487c9},this['imageId']=_0xcd7cff['uuid'],this['imageUploadProgress']=null;const _0x39a57e=_0x1fe68f['getAttribute']('src');this['_imageCache']['set'](_0x39a57e,{'id':_0xcd7cff['uuid'],'url':_0xcd7cff['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3d2df4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3d2df4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xc12ffd,_0x236ed0){_0xc12ffd['on']('apply',(_0x402685,_0x27a186)=>{this['_replaceImage'](_0x236ed0,_0x27a186['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xc12ffd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xc12ffd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2b62c5,_0x5d9671,_0x2f2968){const _0x4815ba=this['_editor'],{width:_0x453560,height:_0x4bd6d7}=_0x227705(_0x5d9671,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1abb78,imageSources:_0x411fa7}=_0x536003(_0x5d9671,_0x453560);_0x4815ba['model']['change'](_0x50c6e3=>{if('$graveyard'===_0x2b62c5['root']['rootName']){_0x4815ba['execute']('insertImage',{'imageType':_0x2b62c5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2b62c5['getAttributes']()),'uploadcareImageId':_0x2f2968,'src':_0x1abb78,'sources':_0x411fa7,'width':_0x453560,'height':_0x4bd6d7}});const _0x1ad8a1=_0x2b62c5['getChildren']();_0x2b62c5=_0x4815ba['model']['document']['selection']['getSelectedElement']();for(const _0xa814e5 of _0x1ad8a1)_0x50c6e3['append'](_0x50c6e3['cloneElement'](_0xa814e5),_0x2b62c5);}else _0x50c6e3['setSelection'](_0x2b62c5,'on'),_0x4815ba['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2b62c5['getAttributes']()),'uploadcareImageId':_0x2f2968,'src':_0x1abb78,'sources':_0x411fa7,'width':_0x453560,'height':_0x4bd6d7},_0x2b62c5);_0x50c6e3['setSelection'](_0x2b62c5,'on');});}async['_getImageAsFile'](_0x1dbc5c){const _0x36e58a=_0x5ba72c['window'],_0x12c44f=_0x5ba72c['document']['location']['href'],_0x1df053=new _0x36e58a['URL'](_0x1dbc5c['getAttribute']('src'),_0x12c44f);if('data:'===_0x1df053['protocol']){const _0x47057c=_0x1df053['href']['split'](','),_0xa9c03=_0x47057c[0x0]['match'](/:(.*?);/)[0x1],_0x4ad4e4=_0xa9c03['split']('/')[0x1],_0x21c06c=_0x36e58a['atob'](_0x47057c[_0x47057c['length']-0x1]);let _0x24f5e5=_0x21c06c['length'];const _0x265d04=new _0x36e58a['Uint8Array'](_0x24f5e5);for(;_0x24f5e5--;)_0x265d04[_0x24f5e5]=_0x21c06c['charCodeAt'](_0x24f5e5);return new _0x36e58a['File']([_0x265d04],'image.'+_0x4ad4e4,{'type':_0xa9c03});}const _0x248339=_0x1df053['href']['split']('/'),_0x3b67e2=_0x248339[_0x248339['length']-0x1],_0x352b3d=_0x3b67e2['split']('.')[0x1];return _0x36e58a['fetch'](_0x1df053['href'])['then'](_0x492c74=>_0x492c74['clone']()['blob']())['then'](_0x3708b7=>new _0x36e58a['File']([_0x3708b7],_0x3b67e2,{'type':'image/'+_0x352b3d}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x37df(_0x5564be,_0x13e217){const _0x12f927=_0x12f9();return _0x37df=function(_0x37dfde,_0xcb059f){_0x37dfde=_0x37dfde-0x65;let _0x57bc99=_0x12f927[_0x37dfde];return _0x57bc99;},_0x37df(_0x5564be,_0x13e217);}function _0x12f9(){const _0x1f9759=['set','8UaZGlP','uc-cloud-image-editor','65wZpIsb','1416216CnnSza','image-edit','6158940gtATQj','uc-light','48udBIJO','ck-uploadcare-theme','1682933fySbKk','44yhlqRi','677457fAkiXc','54046HJaHaT','imageSrc','bindTemplate','797736vFJxDL','23SQBipi','27282FwRJFq','setTemplate'];_0x12f9=function(){return _0x1f9759;};return _0x12f9();}(function(_0x3d707d,_0x2b25af){const _0x48c3e0=_0x37df,_0x4bb9ac=_0x3d707d();while(!![]){try{const _0x330a75=parseInt(_0x48c3e0(0x6b))/0x1*(-parseInt(_0x48c3e0(0x67))/0x2)+-parseInt(_0x48c3e0(0x6a))/0x3*(-parseInt(_0x48c3e0(0x6f))/0x4)+parseInt(_0x48c3e0(0x71))/0x5*(parseInt(_0x48c3e0(0x6c))/0x6)+-parseInt(_0x48c3e0(0x78))/0x7+parseInt(_0x48c3e0(0x76))/0x8*(-parseInt(_0x48c3e0(0x66))/0x9)+parseInt(_0x48c3e0(0x74))/0xa+-parseInt(_0x48c3e0(0x65))/0xb*(-parseInt(_0x48c3e0(0x72))/0xc);if(_0x330a75===_0x2b25af)break;else _0x4bb9ac['push'](_0x4bb9ac['shift']());}catch(_0x19351f){_0x4bb9ac['push'](_0x4bb9ac['shift']());}}}(_0x12f9,0x59303));import{View as _0x1ece77}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x1ece77{constructor(_0x2ba3f8,_0x1ce495){const _0x3024bb=_0x37df;super(_0x2ba3f8);const _0x24855c=this[_0x3024bb(0x69)];this[_0x3024bb(0x6e)](_0x3024bb(0x68),''),this[_0x3024bb(0x6d)]({'tag':_0x3024bb(0x70),'attributes':{..._0x1ce495,'class':[_0x3024bb(0x75),_0x3024bb(0x77)],'ctx-name':_0x3024bb(0x73),'cdn-url':_0x24855c['to'](_0x3024bb(0x68))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x57afb2}from'ckeditor5/src/icons.js';import{ButtonView as _0x20edbf,IconView as _0x453698,View as _0x51f20d}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x51f20d{constructor(_0x1e2f67){super(_0x1e2f67);const t=_0x1e2f67['t'];this['set']('errorType',null);const _0x25c35d=new _0x20edbf(_0x1e2f67);_0x25c35d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x25c35d['withText']=!0x0,_0x25c35d['class']='ck-button-action',_0x25c35d['on']('execute',()=>{this['fire']('retry');}),_0x25c35d['bind']('isVisible')['to'](this,'errorType',_0x2453da=>'NotFound'!==_0x2453da);const _0x8c20fb=new _0x453698();_0x8c20fb['content']=_0x57afb2,_0x8c20fb['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x11c7a6=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':[_0x8c20fb,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x11c7a6['to']('errorType',_0x5d535e=>t('NotFound'!==_0x5d535e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x25c35d]},{'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 _0x40eaf9,View as _0x115346}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x115346{constructor(_0x303ff9){super(_0x303ff9);const t=_0x303ff9['t'],_0x896494=this['bindTemplate'],_0x756463=new _0x40eaf9();_0x756463['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':[_0x756463,{'text':_0x896494['to']('imageUploadProgress',_0x2aad1c=>t('Loading\x20image...')+'\x20('+(_0x2aad1c||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3dfa2c=_0x423d;function _0x3f3e(){const _0x4533fd=['setTemplate','div','ready','206432HxrvMJ','_addErrorViewListeners','_waitForImageEditorComponent','focus','add','nodeName','ck-reset_all-excluded','change:status','filter','status','createCollection','_addUploadcareImageEditorListeners','toLowerCase','_errorView','357sBvVpP','_items','2876430kIAvtj','_setView','querySelector','_editingView','cdnUrl','153580eORuwN','apply','element','9kwUDJp','clear','uc-cloud-image-editor','disconnect','uploading','14276911sKzIJG','305100kNeJSe','target','_focusableView','getFocusableElement','2980vzHryw','retry','ck-uploadcare-form','error','cancel','fire','render','14JVfEaa','addedNodes','observe','detail','once','_loadingView','addEventListener','4gxEfWC','345688IsnMDu','addMany','set','length'];_0x3f3e=function(){return _0x4533fd;};return _0x3f3e();}(function(_0x404feb,_0x30230e){const _0x58bf1d=_0x423d,_0x342a4c=_0x404feb();while(!![]){try{const _0x2ac305=parseInt(_0x58bf1d(0x1c6))/0x1*(-parseInt(_0x58bf1d(0x1f6))/0x2)+parseInt(_0x58bf1d(0x1d4))/0x3*(parseInt(_0x58bf1d(0x1e8))/0x4)+-parseInt(_0x58bf1d(0x1d6))/0x5+parseInt(_0x58bf1d(0x1e4))/0x6+parseInt(_0x58bf1d(0x1ef))/0x7*(-parseInt(_0x58bf1d(0x1f7))/0x8)+parseInt(_0x58bf1d(0x1de))/0x9*(-parseInt(_0x58bf1d(0x1db))/0xa)+parseInt(_0x58bf1d(0x1e3))/0xb;if(_0x2ac305===_0x30230e)break;else _0x342a4c['push'](_0x342a4c['shift']());}catch(_0x1ec4d1){_0x342a4c['push'](_0x342a4c['shift']());}}}(_0x3f3e,0x54d54));import{View as _0x57c560}from'ckeditor5/src/ui.js';function _0x423d(_0x4cd116,_0x52c7e7){const _0x3f3e54=_0x3f3e();return _0x423d=function(_0x423d79,_0x295c28){_0x423d79=_0x423d79-0x1c5;let _0x1ea2e2=_0x3f3e54[_0x423d79];return _0x1ea2e2;},_0x423d(_0x4cd116,_0x52c7e7);}import{UploadcareImageEditFormLoadingView as _0x123e3b}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x509e66}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x4377ff}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x58591f}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x58591f{[_0x3dfa2c(0x1d5)];[_0x3dfa2c(0x1f4)];[_0x3dfa2c(0x1d3)];[_0x3dfa2c(0x1d9)];[_0x3dfa2c(0x1e6)];constructor(_0x127ef3,_0x4d0ff0,_0x11896e){const _0x27a53b=_0x3dfa2c;super(_0x127ef3),this[_0x27a53b(0x1d5)]=this[_0x27a53b(0x1d0)](),this[_0x27a53b(0x1f4)]=new _0x123e3b(_0x127ef3),this[_0x27a53b(0x1d3)]=new _0x509e66(_0x127ef3),this[_0x27a53b(0x1d9)]=new _0x4377ff(_0x127ef3,_0x11896e),this[_0x27a53b(0x1e6)]=new _0x57c560(_0x127ef3),this[_0x27a53b(0x1e6)][_0x27a53b(0x1fb)](this[_0x27a53b(0x1e7)]()),this[_0x27a53b(0x1f9)](_0x27a53b(0x1cf),_0x4d0ff0),this[_0x27a53b(0x1fb)]({'tag':_0x27a53b(0x1fc),'attributes':{'class':['ck',_0x27a53b(0x1cc),_0x27a53b(0x1ea)],'tabindex':'-1'},'children':this[_0x27a53b(0x1d5)]}),this[_0x27a53b(0x1d7)](),this[_0x27a53b(0x1f3)](_0x27a53b(0x1ee),()=>{const _0x11bd4a=_0x27a53b;this[_0x11bd4a(0x1c8)](this[_0x11bd4a(0x1dd)],_0x28ea70=>{const _0x112806=_0x11bd4a;this[_0x112806(0x1d1)](_0x28ea70);});}),this['on'](_0x27a53b(0x1cd),()=>{const _0x9ad9a4=_0x27a53b;this[_0x9ad9a4(0x1d7)]();}),this[_0x27a53b(0x1c7)]();}[_0x3dfa2c(0x1c9)](){const _0x10131a=_0x3dfa2c;this[_0x10131a(0x1dd)][_0x10131a(0x1c9)]();}[_0x3dfa2c(0x1d7)](){const _0x563633=_0x3dfa2c;switch(this[_0x563633(0x1d5)][_0x563633(0x1df)](),this[_0x563633(0x1cf)]){case _0x563633(0x1e2):this[_0x563633(0x1d5)][_0x563633(0x1ca)](this[_0x563633(0x1f4)]);break;case _0x563633(0x1eb):this[_0x563633(0x1d5)][_0x563633(0x1ca)](this[_0x563633(0x1d3)]);break;case _0x563633(0x1c5):this[_0x563633(0x1d5)][_0x563633(0x1f8)]([this[_0x563633(0x1d9)],this[_0x563633(0x1e6)]]);}}[_0x3dfa2c(0x1c8)](_0x523fb1,_0x2727da){const _0x39e08e=_0x3dfa2c,_0x5112ff=_0x39e08e(0x1e0),_0xb3ff4f=_0x523fb1[_0x39e08e(0x1d8)](_0x5112ff);if(_0xb3ff4f)return _0x2727da(_0xb3ff4f);const _0x32f29c=new MutationObserver(_0x4c378d=>{const _0x5457c9=_0x39e08e,_0x4c9bba=_0x4c378d[_0x5457c9(0x1ce)](_0x4d8802=>_0x4d8802[_0x5457c9(0x1e5)]===_0x523fb1&&_0x4d8802[_0x5457c9(0x1f0)][_0x5457c9(0x1fa)]>0x0&&_0x4d8802[_0x5457c9(0x1f0)][0x0][_0x5457c9(0x1cb)][_0x5457c9(0x1d2)]()===_0x5112ff);_0x4c9bba[_0x5457c9(0x1fa)]&&(_0x32f29c[_0x5457c9(0x1e1)](),_0x2727da(_0x4c9bba[0x0][_0x5457c9(0x1f0)][0x0]));});_0x32f29c[_0x39e08e(0x1f1)](_0x523fb1,{'childList':!0x0,'subtree':!0x0});}[_0x3dfa2c(0x1d1)](_0x2451b6){const _0x21cbc0=_0x3dfa2c;_0x2451b6[_0x21cbc0(0x1f5)](_0x21cbc0(0x1dc),_0x437d14=>{const _0x459bae=_0x21cbc0;this[_0x459bae(0x1ed)](_0x459bae(0x1dc),{'imageSrc':_0x437d14[_0x459bae(0x1f2)][_0x459bae(0x1da)]});}),_0x2451b6[_0x21cbc0(0x1f5)](_0x21cbc0(0x1ec),()=>{const _0x9b6b80=_0x21cbc0;this[_0x9b6b80(0x1ed)](_0x9b6b80(0x1ec));});}[_0x3dfa2c(0x1c7)](){const _0x334a21=_0x3dfa2c;this[_0x334a21(0x1d3)]['on'](_0x334a21(0x1e9),()=>{const _0x419ba2=_0x334a21;this[_0x419ba2(0x1ed)](_0x419ba2(0x1e9));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4c9e(_0x2f678c,_0x11f882){const _0x58e897=_0x58e8();return _0x4c9e=function(_0x4c9ee6,_0x45110e){_0x4c9ee6=_0x4c9ee6-0x1b4;let _0x1f9d2d=_0x58e897[_0x4c9ee6];return _0x1f9d2d;},_0x4c9e(_0x2f678c,_0x11f882);}function _0x58e8(){const _0x51d6fb=['refresh','requires','imageEditController','unbind','608838cfLnhy','3689616TiFjvu','1398364OJlsdd','model','selection','element','_isEditable','3581165isxcND','getSelectedElement','plugins','get','imageBlock','3119705IBUANb','isEnabled','set','bind','1267662yFnyBT','imageInline','document','editor','309035KCtyWE','config','execute','isActive','uploadcare.allowExternalImagesEditing'];_0x58e8=function(){return _0x51d6fb;};return _0x58e8();}const _0x372521=_0x4c9e;(function(_0x4dd043,_0x1b05c4){const _0x33eca7=_0x4c9e,_0x1de00a=_0x4dd043();while(!![]){try{const _0x1ceeae=parseInt(_0x33eca7(0x1c9))/0x1+-parseInt(_0x33eca7(0x1c5))/0x2+-parseInt(_0x33eca7(0x1b5))/0x3+parseInt(_0x33eca7(0x1b7))/0x4+parseInt(_0x33eca7(0x1c1))/0x5+-parseInt(_0x33eca7(0x1b6))/0x6+parseInt(_0x33eca7(0x1bc))/0x7;if(_0x1ceeae===_0x1b05c4)break;else _0x1de00a['push'](_0x1de00a['shift']());}catch(_0x4e07fa){_0x1de00a['push'](_0x1de00a['shift']());}}}(_0x58e8,0x539b1));import{Command as _0x524d3a}from'ckeditor5/src/core.js';import{Dialog as _0x157921}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x319422}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x37434a}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x524d3a{[_0x372521(0x1d0)];static get[_0x372521(0x1cf)](){return[_0x157921];}[_0x372521(0x1bb)];constructor(_0x1fb818){const _0x3f84d7=_0x372521;super(_0x1fb818),this[_0x3f84d7(0x1d0)]=void 0x0,this[_0x3f84d7(0x1bb)]=_0x37434a(_0x1fb818[_0x3f84d7(0x1ca)][_0x3f84d7(0x1bf)](_0x3f84d7(0x1cd))||[]),this[_0x3f84d7(0x1c3)]({'isActive':!0x1});}[_0x372521(0x1ce)](){const _0x39e204=_0x372521,_0x6ef6e6=this[_0x39e204(0x1c8)][_0x39e204(0x1b8)][_0x39e204(0x1c7)][_0x39e204(0x1b9)][_0x39e204(0x1bd)]();this[_0x39e204(0x1c2)]=this[_0x39e204(0x1bb)](_0x6ef6e6);}[_0x372521(0x1cb)](){const _0x5703be=_0x372521;this[_0x5703be(0x1d0)]&&(this[_0x5703be(0x1b4)](_0x5703be(0x1cc)),this[_0x5703be(0x1d0)]=void 0x0);const _0x43ada1=this[_0x5703be(0x1c8)][_0x5703be(0x1b8)][_0x5703be(0x1c7)][_0x5703be(0x1b9)][_0x5703be(0x1bd)]();_0x43ada1&&(_0x43ada1['is'](_0x5703be(0x1ba),_0x5703be(0x1c0))||_0x43ada1['is'](_0x5703be(0x1ba),_0x5703be(0x1c6)))&&(this[_0x5703be(0x1d0)]=new _0x319422(this[_0x5703be(0x1c8)],this[_0x5703be(0x1c8)][_0x5703be(0x1be)][_0x5703be(0x1bf)](_0x157921),_0x43ada1),this[_0x5703be(0x1c4)](_0x5703be(0x1cc))['to'](this[_0x5703be(0x1d0)],_0x5703be(0x1cc)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ef706=_0x45c6;(function(_0x2a85e5,_0x3a56a4){const _0x48cd39=_0x45c6,_0x5f0d1f=_0x2a85e5();while(!![]){try{const _0x1b0aed=parseInt(_0x48cd39(0x1cb))/0x1+-parseInt(_0x48cd39(0x1c4))/0x2+-parseInt(_0x48cd39(0x1cd))/0x3*(-parseInt(_0x48cd39(0x1c7))/0x4)+-parseInt(_0x48cd39(0x1d1))/0x5+parseInt(_0x48cd39(0x1d4))/0x6+-parseInt(_0x48cd39(0x1d3))/0x7*(-parseInt(_0x48cd39(0x1d0))/0x8)+parseInt(_0x48cd39(0x1ce))/0x9*(-parseInt(_0x48cd39(0x1cc))/0xa);if(_0x1b0aed===_0x3a56a4)break;else _0x5f0d1f['push'](_0x5f0d1f['shift']());}catch(_0x596811){_0x5f0d1f['push'](_0x5f0d1f['shift']());}}}(_0x5050,0x19774));import{Plugin as _0x120aa0}from'ckeditor5/src/core.js';function _0x45c6(_0x5e2014,_0x2708fa){const _0x5050af=_0x5050();return _0x45c6=function(_0x45c69e,_0xd40f5d){_0x45c69e=_0x45c69e-0x1c1;let _0x375726=_0x5050af[_0x45c69e];return _0x375726;},_0x45c6(_0x5e2014,_0x2708fa);}import{Notification as _0x18b7b2}from'ckeditor5/src/ui.js';function _0x5050(){const _0x5b2f99=['7HMRaoo','979506uaCrpJ','isOfficialPlugin','uploadcareImageReplace','commands','ImageUtils','requires','143870IFjohf','pluginName','init','4jgnQAH','ImageEditing','UploadcareImageEditEditing','isPremiumPlugin','32613mLcgbn','10LCdcMh','307911sxOdLW','1801467yiZYgN','uploadcareImageEdit','873648KaZxuI','156505pRuwiw','add'];_0x5050=function(){return _0x5b2f99;};return _0x5050();}import{UploadcareImageEditCommand as _0x171413}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1839bf}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x15d2f2}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x120aa0{static get[_0x1ef706(0x1c5)](){const _0x5ef55d=_0x1ef706;return _0x5ef55d(0x1c9);}static get[_0x1ef706(0x1c3)](){const _0x3d7c54=_0x1ef706;return[_0x15d2f2,_0x18b7b2,_0x3d7c54(0x1c2),_0x3d7c54(0x1c8)];}static get[_0x1ef706(0x1d5)](){return!0x0;}static get[_0x1ef706(0x1ca)](){return!0x0;}[_0x1ef706(0x1c6)](){const _0x2d99b9=_0x1ef706,{editor:_0x408dd7}=this;_0x408dd7[_0x2d99b9(0x1c1)][_0x2d99b9(0x1d2)](_0x2d99b9(0x1cf),new _0x171413(_0x408dd7)),_0x408dd7[_0x2d99b9(0x1c1)][_0x2d99b9(0x1d2)](_0x2d99b9(0x1d6),new _0x1839bf(_0x408dd7));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x29735a}from'ckeditor5/src/core.js';import{ButtonView as _0x3c76bd}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x478cac}from'ckeditor5/src/icons.js';import{createElement as _0x46b4a1}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 _0x29735a{['_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 _0x2e2e2b=this['editor'];_0x2e2e2b['ui']['componentFactory']['add']('uploadcareImageEdit',_0xfbd467=>{const _0x27ac7c=_0x2e2e2b['commands']['get']('uploadcareImageEdit'),_0x5c26e6=new _0x3c76bd(_0xfbd467),t=_0xfbd467['t'];return _0x5c26e6['set']({'icon':_0x478cac,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5c26e6['bind']('isEnabled')['to'](_0x27ac7c),_0x5c26e6['bind']('isOn')['to'](_0x27ac7c,'isActive'),this['listenTo'](_0x5c26e6,'execute',()=>{_0x2e2e2b['execute']('uploadcareImageEdit'),_0x2e2e2b['editing']['view']['focus']();}),_0x5c26e6;}),this['_initConfig']();}['_initConfig'](){const _0x1498ac=_0x46b4a1(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1498ac),this['listenTo'](this['editor'],'destroy',()=>{_0x1498ac['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x94e816=_0x475a;(function(_0x22daa7,_0x212e72){var _0x368816=_0x475a,_0x27ba88=_0x22daa7();while(!![]){try{var _0x1ce59d=-parseInt(_0x368816(0xe4))/0x1*(-parseInt(_0x368816(0xeb))/0x2)+parseInt(_0x368816(0xea))/0x3+-parseInt(_0x368816(0xec))/0x4*(-parseInt(_0x368816(0xe3))/0x5)+-parseInt(_0x368816(0xee))/0x6+parseInt(_0x368816(0xed))/0x7+-parseInt(_0x368816(0xe6))/0x8+-parseInt(_0x368816(0xe2))/0x9;if(_0x1ce59d===_0x212e72)break;else _0x27ba88['push'](_0x27ba88['shift']());}catch(_0x54bcf7){_0x27ba88['push'](_0x27ba88['shift']());}}}(_0x5cbd,0xf3528));import{FocusTracker as _0x105058}from'ckeditor5/src/utils.js';import{View as _0x1af2a8,FocusCycler as _0x3c689d}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x5cbd(){var _0x2602e8=['12TLyNOw','10588900BiLZJN','8753664KhvqjB','bindTemplate','fire','focusTracker','div','forwardCycle','14401125wUXLlj','1984975skVZed','349464JFcLvI','true','7034728dBiofu','getFocusableElement','createCollection','focusCycler','4597335aJlHiw','4cQDHMS'];_0x5cbd=function(){return _0x2602e8;};return _0x5cbd();}function _0x475a(_0x555031,_0x6edfe7){var _0x5cbdc8=_0x5cbd();return _0x475a=function(_0x475ad7,_0x1b7589){_0x475ad7=_0x475ad7-0xde;var _0x3cb4b3=_0x5cbdc8[_0x475ad7];return _0x3cb4b3;},_0x475a(_0x555031,_0x6edfe7);}export class DialogFocusManagerView extends _0x1af2a8{[_0x94e816(0xdf)];[_0x94e816(0xe9)];constructor(_0x24c35f){var _0x51cf96=_0x94e816;super(_0x24c35f),this[_0x51cf96(0xdf)]=new _0x105058(),this[_0x51cf96(0xe9)]=new _0x3c689d({'focusables':this[_0x51cf96(0xe8)](),'focusTracker':this[_0x51cf96(0xdf)]});}[_0x94e816(0xe7)](){var _0x594439=_0x94e816;return{'tag':_0x594439(0xe0),'attributes':{'aria-hidden':_0x594439(0xe5),'tabindex':'0'},'on':{'focus':this[_0x594439(0xef)]['to'](()=>{var _0x366e4f=_0x594439;this[_0x366e4f(0xe9)][_0x366e4f(0xde)](_0x366e4f(0xe1));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4f135c,_0x4ba3e0){const _0x3ac6c8=_0x2e2f,_0x311d74=_0x4f135c();while(!![]){try{const _0x3a97dd=parseInt(_0x3ac6c8(0x95))/0x1+-parseInt(_0x3ac6c8(0x94))/0x2*(parseInt(_0x3ac6c8(0x8f))/0x3)+-parseInt(_0x3ac6c8(0x77))/0x4*(parseInt(_0x3ac6c8(0x92))/0x5)+-parseInt(_0x3ac6c8(0x78))/0x6*(parseInt(_0x3ac6c8(0x6e))/0x7)+-parseInt(_0x3ac6c8(0x71))/0x8+-parseInt(_0x3ac6c8(0x85))/0x9+parseInt(_0x3ac6c8(0x96))/0xa;if(_0x3a97dd===_0x4ba3e0)break;else _0x311d74['push'](_0x311d74['shift']());}catch(_0x4ffca9){_0x311d74['push'](_0x311d74['shift']());}}}(_0xd827,0x64f15));import{global as _0x2f8c16,DomEmitterMixin as _0x5abaa7}from'ckeditor5/src/utils.js';function _0xd827(){const _0x5eb229=['7rakRBJ','addClass','getAttribute','468720aQygdF','ImageUtils','baseURI','(max-width:\x20','load','removeClass','4rUYCEt','1055298lHVrab','map','element','toViewElement','some','mapper','function','src','hasAttribute','plugins','view','change','findViewImgElement','901278Stgfud','height','isArray','domConverter','imageInline','width','filter','imageBlock','image-processing','get','3uuZWaZ','join','aspect-ratio','1435960FDkkqi','removeStyle','1177594suvSfg','220924hdDeKT','14031410jXZCzz','origin','setStyle','/-/resize/','uploadcareImageId','listenTo','editing','location','viewToDom','stopListening','replace','document','px)\x20100vw,\x20','image/webp','x/\x20','window','match'];_0xd827=function(){return _0x5eb229;};return _0xd827();}export function createEditabilityChecker(_0x319f32){const _0x57568b=_0x2e2f,_0xfe1529=R(_0x319f32);return _0x5b2dc8=>!(!_0x5b2dc8||!_0x5b2dc8['is'](_0x57568b(0x7a),_0x57568b(0x8c))&&!_0x5b2dc8['is'](_0x57568b(0x7a),_0x57568b(0x89)))&&(!!_0x5b2dc8[_0x57568b(0x80)](_0x57568b(0x9a))||!!_0x5b2dc8[_0x57568b(0x80)](_0x57568b(0x7f))&&_0xfe1529(_0x5b2dc8[_0x57568b(0x70)](_0x57568b(0x7f))));}function _0x2e2f(_0x351607,_0x14de70){const _0xd827f3=_0xd827();return _0x2e2f=function(_0x2e2f61,_0x3ea95a){_0x2e2f61=_0x2e2f61-0x6d;let _0x479d29=_0xd827f3[_0x2e2f61];return _0x479d29;},_0x2e2f(_0x351607,_0x14de70);}export function getImageUrls(_0x5ac498,_0x51dfdb){const _0x387c57=_0x2e2f,_0x8ffb5b=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x387c57(0x8b)](_0x390669=>_0x390669<=_0x51dfdb)[_0x387c57(0x79)](_0x507b05=>_0x5ac498[_0x387c57(0xa0)](/\/$/,'')+_0x387c57(0x99)+_0x507b05+_0x387c57(0xa4)+_0x507b05+'w');return{'imageFallbackUrl':_0x5ac498,'imageSources':[{'srcset':_0x8ffb5b[_0x387c57(0x90)](',\x20'),'sizes':_0x387c57(0x74)+_0x51dfdb+_0x387c57(0xa2)+_0x51dfdb+'px','type':_0x387c57(0xa3)}]};}export function getImageDimension(_0x235102,_0x3ada4f,_0x4b651a){const _0x2c9ead=_0x2e2f,_0x77a889=_0x235102[_0x2c9ead(0x6d)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x77a889?parseInt(_0x77a889[0x1],0xa):_0x3ada4f,'height':_0x77a889?parseInt(_0x77a889[0x2],0xa):_0x4b651a};}export function showImageProcessingIndicator(_0x2f617f,_0x1eec96){const _0x51ad07=_0x2e2f,_0x3c11d6=new(_0x5abaa7())(),_0x246e5d=_0x2f617f[_0x51ad07(0x81)][_0x51ad07(0x8e)](_0x51ad07(0x72)),_0x18e743=_0x2f617f[_0x51ad07(0x9c)][_0x51ad07(0x7d)][_0x51ad07(0x7b)](_0x1eec96),_0x262c70=_0x246e5d[_0x51ad07(0x84)](_0x18e743),_0x314018=_0x2f617f[_0x51ad07(0x9c)][_0x51ad07(0x82)][_0x51ad07(0x88)][_0x51ad07(0x9e)](_0x262c70),_0x1a174e=_0x1eec96[_0x51ad07(0x70)](_0x51ad07(0x8a)),_0x2ca98b=_0x1eec96[_0x51ad07(0x70)](_0x51ad07(0x86)),_0x5b6087=_0x51ad07(0x8d);_0x2f617f[_0x51ad07(0x9c)][_0x51ad07(0x82)][_0x51ad07(0x83)](_0x39a308=>{const _0x1edea1=_0x51ad07;_0x39a308[_0x1edea1(0x6f)](_0x5b6087,_0x18e743),_0x39a308[_0x1edea1(0x98)](_0x1edea1(0x91),_0x1a174e+'/'+_0x2ca98b,_0x262c70);}),_0x3c11d6[_0x51ad07(0x9b)](_0x314018,_0x51ad07(0x75),()=>{const _0x45a0d6=_0x51ad07;_0x3c11d6[_0x45a0d6(0x9f)](_0x314018,_0x45a0d6(0x75)),_0x2f617f[_0x45a0d6(0x9c)][_0x45a0d6(0x82)][_0x45a0d6(0x83)](_0x5c6921=>{const _0x2f668a=_0x45a0d6;_0x5c6921[_0x2f668a(0x76)](_0x5b6087,_0x18e743),_0x5c6921[_0x2f668a(0x93)](_0x2f668a(0x91),_0x262c70);});});}function R(_0xc648c5){const _0x5b0631=_0x2e2f;if(Array[_0x5b0631(0x87)](_0xc648c5)){const _0x11675d=_0xc648c5[_0x5b0631(0x79)](R);return _0x366b6b=>_0x11675d[_0x5b0631(0x7c)](_0x148b07=>_0x148b07(_0x366b6b));}if(_0x5b0631(0x97)==_0xc648c5){const _0x1c7287=_0x2f8c16[_0x5b0631(0xa5)][_0x5b0631(0x9d)][_0x5b0631(0x97)];return _0x54e5b8=>new URL(_0x54e5b8,_0x2f8c16[_0x5b0631(0xa1)][_0x5b0631(0x73)])[_0x5b0631(0x97)]==_0x1c7287;}return _0x5b0631(0x7e)==typeof _0xc648c5?_0xc648c5:_0xc648c5 instanceof RegExp?_0x5b7c67=>!(!_0x5b7c67[_0x5b0631(0x6d)](_0xc648c5)&&!_0x5b7c67[_0x5b0631(0xa0)](/^https?:\/\//,'')[_0x5b0631(0x6d)](_0xc648c5)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x45d6(_0x2bfa8f,_0x207ac0){var _0x4244e9=_0x4244();return _0x45d6=function(_0x45d694,_0x2a84fc){_0x45d694=_0x45d694-0xef;var _0x49a286=_0x4244e9[_0x45d694];return _0x49a286;},_0x45d6(_0x2bfa8f,_0x207ac0);}function _0x4244(){var _0x963c7=['2PtSxbs','3052jAcjFp','590093haccnV','1692FlkeNj','143410IPBkbM','8728nQbMRV','3ZpvLJl','143PlUacR','2108615yOhdfj','3029512cBNMPc','includes','4398nLoBkz','target','17575128hYwlcv'];_0x4244=function(){return _0x963c7;};return _0x4244();}(function(_0x58cc39,_0x1e8646){var _0x636e6d=_0x45d6,_0xc4c997=_0x58cc39();while(!![]){try{var _0x3bb446=parseInt(_0x636e6d(0xfb))/0x1*(-parseInt(_0x636e6d(0xf9))/0x2)+parseInt(_0x636e6d(0xf1))/0x3*(-parseInt(_0x636e6d(0xf4))/0x4)+-parseInt(_0x636e6d(0xf3))/0x5+parseInt(_0x636e6d(0xf6))/0x6*(parseInt(_0x636e6d(0xfa))/0x7)+-parseInt(_0x636e6d(0xf0))/0x8*(-parseInt(_0x636e6d(0xfc))/0x9)+-parseInt(_0x636e6d(0xef))/0xa*(-parseInt(_0x636e6d(0xf2))/0xb)+parseInt(_0x636e6d(0xf8))/0xc;if(_0x3bb446===_0x1e8646)break;else _0xc4c997['push'](_0xc4c997['shift']());}catch(_0x4ec2dc){_0xc4c997['push'](_0xc4c997['shift']());}}}(_0x4244,0x63401));import{getAncestors as _0x3db4fb}from'ckeditor5/src/utils.js';export function isAncestor(_0xca93d9,_0x377965){var _0x255f7c=_0x45d6;return _0x3db4fb(_0xca93d9[_0x255f7c(0xf7)])[_0x255f7c(0xf5)](_0x377965);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x2cdf(_0x23ad07,_0x16a93d){var _0x23544d=_0x2354();return _0x2cdf=function(_0x2cdff1,_0x410aae){_0x2cdff1=_0x2cdff1-0x151;var _0x2d0220=_0x23544d[_0x2cdff1];return _0x2d0220;},_0x2cdf(_0x23ad07,_0x16a93d);}var _0x1fc76f=_0x2cdf;function _0x2354(){var _0x2acb4a=['6tCMPJS','upload','getInfo','1310261JgLZzI','9bjmRaI','5577620wYnmuN','2154072iZYtDd','6916784ShlsOS','6031488HARaFv','3509093gTzxpd','2FvlvLq','28917430vKipEo'];_0x2354=function(){return _0x2acb4a;};return _0x2354();}(function(_0x56022a,_0x8e60c5){var _0x365b48=_0x2cdf,_0x307f70=_0x56022a();while(!![]){try{var _0x2cf380=-parseInt(_0x365b48(0x15b))/0x1*(parseInt(_0x365b48(0x156))/0x2)+-parseInt(_0x365b48(0x152))/0x3+parseInt(_0x365b48(0x154))/0x4+-parseInt(_0x365b48(0x151))/0x5+-parseInt(_0x365b48(0x158))/0x6*(-parseInt(_0x365b48(0x155))/0x7)+-parseInt(_0x365b48(0x153))/0x8*(parseInt(_0x365b48(0x15c))/0x9)+parseInt(_0x365b48(0x157))/0xa;if(_0x2cf380===_0x8e60c5)break;else _0x307f70['push'](_0x307f70['shift']());}catch(_0x246334){_0x307f70['push'](_0x307f70['shift']());}}}(_0x2354,0xd9e5b));import{uploadFile as _0x3ca6b1,info as _0x3c9503}from'@uploadcare/upload-client';export class UploadUtils{static[_0x1fc76f(0x159)]({file:_0x1dfa86,..._0x147334}){return _0x3ca6b1(_0x1dfa86,_0x147334);}static[_0x1fc76f(0x15a)](_0x50bc9c,_0x47c386){return _0x3c9503(_0x50bc9c,_0x47c386);}}
|