@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251213.0 → 0.0.0-nightly-20251214.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 _0x5d6ac7,ObservableMixin as _0x263098}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1f8458}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3ece6b}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1b9954}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x138138}from'../../utils/uploadutils.js';import{getImageUrls as _0x4bfe47,getImageDimension as _0x24a0c9}from'../../utils/editingutils.js';import{isAncestor as _0x2f42a5}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x263098(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x599c36,_0x43dd12,_0x5dd5af){super(),this['_editor']=_0x599c36,this['_dialog']=_0x43dd12,this['_imageElement']=_0x5dd5af,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 _0x53846c=this['_imageElement'],_0x53d382=_0x53846c['getAttribute']('uploadcareImageId'),_0x2dfcfa=_0x53846c['getAttribute']('src');if(_0x53d382)await this['_loadImageInfo'](_0x53d382,_0x2dfcfa);else{if(this['_imageCache']['has'](_0x2dfcfa)){const _0x5b6fb5=this['_imageCache']['get'](_0x2dfcfa);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b6fb5['url'],this['imageDimension']=_0x5b6fb5['dimension'],this['imageId']=_0x5b6fb5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x8b5a4e}=this['_editor'],t=_0x8b5a4e['t'],_0x52a106=new _0x1b9954(_0x8b5a4e,this['imageStatus'],this['_attributes']);_0x52a106['bind']('status')['to'](this,'imageStatus'),_0x52a106['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x52a106['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x52a106['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x52a106,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3ece6b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x52a106,'position':_0x1f8458['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x52a106['focus']();},'onHide':()=>{_0x52a106['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5b949d=>!_0x2f42a5(_0x5b949d,_0x52a106['element'])}});}['_loadImageInfo'](_0x489448,_0x14dc22){return _0x138138['getInfo'](_0x489448,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x13e150=>{const {width:_0x25401e,height:_0x4ac188}=_0x13e150['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14dc22,this['imageDimension']={'width':_0x25401e,'height':_0x4ac188},this['imageId']=_0x489448;})['catch'](_0x505420=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x505420['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x12caf6,_0x10944d){return this['_getImageAsFile'](_0x12caf6)['then'](_0x28aaf5=>_0x138138['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':_0x10944d['signal'],'file':_0x28aaf5,'onProgress':_0x44bad3=>{_0x44bad3&&_0x44bad3['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x44bad3['value']));}}))['then'](_0x10ca91=>{const {width:_0x53795f,height:_0x29e597}=_0x10ca91['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x10ca91['cdnUrl'],this['imageDimension']={'width':_0x53795f,'height':_0x29e597},this['imageId']=_0x10ca91['uuid'],this['imageUploadProgress']=null;const _0x4262a1=_0x12caf6['getAttribute']('src');this['_imageCache']['set'](_0x4262a1,{'id':_0x10ca91['uuid'],'url':_0x10ca91['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x26339f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x26339f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x19d1a9,_0x46ef35){_0x19d1a9['on']('apply',(_0x370713,_0x41fd6d)=>{this['_replaceImage'](_0x46ef35,_0x41fd6d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x19d1a9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x19d1a9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1e0d9c,_0x5b200b,_0x24de36){const _0x193363=this['_editor'],{width:_0x23fdb8,height:_0x257722}=_0x24a0c9(_0x5b200b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x144010,imageSources:_0x394d79}=_0x4bfe47(_0x5b200b,_0x23fdb8);_0x193363['model']['change'](_0x9cc528=>{if('$graveyard'===_0x1e0d9c['root']['rootName']){_0x193363['execute']('insertImage',{'imageType':_0x1e0d9c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1e0d9c['getAttributes']()),'uploadcareImageId':_0x24de36,'src':_0x144010,'sources':_0x394d79,'width':_0x23fdb8,'height':_0x257722}});const _0x67f46d=_0x1e0d9c['getChildren']();_0x1e0d9c=_0x193363['model']['document']['selection']['getSelectedElement']();for(const _0x17fcc7 of _0x67f46d)_0x9cc528['append'](_0x9cc528['cloneElement'](_0x17fcc7),_0x1e0d9c);}else _0x9cc528['setSelection'](_0x1e0d9c,'on'),_0x193363['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1e0d9c['getAttributes']()),'uploadcareImageId':_0x24de36,'src':_0x144010,'sources':_0x394d79,'width':_0x23fdb8,'height':_0x257722},_0x1e0d9c);_0x9cc528['setSelection'](_0x1e0d9c,'on');});}async['_getImageAsFile'](_0x12816a){const _0x52bb33=_0x5d6ac7['window'],_0x25565d=_0x5d6ac7['document']['location']['href'],_0x3484fa=new _0x52bb33['URL'](_0x12816a['getAttribute']('src'),_0x25565d);if('data:'===_0x3484fa['protocol']){const _0x42c727=_0x3484fa['href']['split'](','),_0x32a588=_0x42c727[0x0]['match'](/:(.*?);/)[0x1],_0x499203=_0x32a588['split']('/')[0x1],_0x1872c8=_0x52bb33['atob'](_0x42c727[_0x42c727['length']-0x1]);let _0x5e659a=_0x1872c8['length'];const _0xfc39aa=new _0x52bb33['Uint8Array'](_0x5e659a);for(;_0x5e659a--;)_0xfc39aa[_0x5e659a]=_0x1872c8['charCodeAt'](_0x5e659a);return new _0x52bb33['File']([_0xfc39aa],'image.'+_0x499203,{'type':_0x32a588});}const _0xb25486=_0x3484fa['href']['split']('/'),_0xdaa247=_0xb25486[_0xb25486['length']-0x1],_0x5d7a43=_0xdaa247['split']('.')[0x1];return _0x52bb33['fetch'](_0x3484fa['href'])['then'](_0x3b5310=>_0x3b5310['clone']()['blob']())['then'](_0x168a6d=>new _0x52bb33['File']([_0x168a6d],_0xdaa247,{'type':'image/'+_0x5d7a43}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x179d(){const _0x1193e1=['set','13822250sXHNnr','2031805pnzZOo','12iyOUcF','2811qMJgBb','33OHvIFH','1894452kcHRYM','2928MvvAKZ','setTemplate','6KvPQNl','uc-light','ck-uploadcare-theme','bindTemplate','imageSrc','image-edit','48537UQNZFS','5735172PUSbLF','240214ALeBed','7664eagssX','uc-cloud-image-editor'];_0x179d=function(){return _0x1193e1;};return _0x179d();}(function(_0x52936b,_0x4daa74){const _0x408286=_0x55b4,_0x391226=_0x52936b();while(!![]){try{const _0x42fe35=parseInt(_0x408286(0xeb))/0x1*(parseInt(_0x408286(0xf1))/0x2)+parseInt(_0x408286(0xf2))/0x3*(-parseInt(_0x408286(0xec))/0x4)+-parseInt(_0x408286(0xf0))/0x5*(parseInt(_0x408286(0xf7))/0x6)+-parseInt(_0x408286(0xf4))/0x7+parseInt(_0x408286(0xf5))/0x8*(parseInt(_0x408286(0xfd))/0x9)+-parseInt(_0x408286(0xef))/0xa+-parseInt(_0x408286(0xf3))/0xb*(-parseInt(_0x408286(0xfe))/0xc);if(_0x42fe35===_0x4daa74)break;else _0x391226['push'](_0x391226['shift']());}catch(_0x5db0a0){_0x391226['push'](_0x391226['shift']());}}}(_0x179d,0xf2c61));import{View as _0x5ed757}from'ckeditor5/src/ui.js';function _0x55b4(_0x355f47,_0x8668ef){const _0x179da2=_0x179d();return _0x55b4=function(_0x55b4d6,_0x51d795){_0x55b4d6=_0x55b4d6-0xeb;let _0x1dc24c=_0x179da2[_0x55b4d6];return _0x1dc24c;},_0x55b4(_0x355f47,_0x8668ef);}export class UploadcareImageEditFormEditingView extends _0x5ed757{constructor(_0x4bbf32,_0x42acff){const _0x5cace0=_0x55b4;super(_0x4bbf32);const _0x502d8e=this[_0x5cace0(0xfa)];this[_0x5cace0(0xee)](_0x5cace0(0xfb),''),this[_0x5cace0(0xf6)]({'tag':_0x5cace0(0xed),'attributes':{..._0x42acff,'class':[_0x5cace0(0xf8),_0x5cace0(0xf9)],'ctx-name':_0x5cace0(0xfc),'cdn-url':_0x502d8e['to'](_0x5cace0(0xfb))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x4ded13}from'ckeditor5/src/icons.js';import{ButtonView as _0x1acda9,IconView as _0x3ab637,View as _0x43dfe0}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x43dfe0{constructor(_0x2ef4c9){super(_0x2ef4c9);const t=_0x2ef4c9['t'];this['set']('errorType',null);const _0x1519f5=new _0x1acda9(_0x2ef4c9);_0x1519f5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1519f5['withText']=!0x0,_0x1519f5['class']='ck-button-action',_0x1519f5['on']('execute',()=>{this['fire']('retry');}),_0x1519f5['bind']('isVisible')['to'](this,'errorType',_0x3066a1=>'NotFound'!==_0x3066a1);const _0x218df7=new _0x3ab637();_0x218df7['content']=_0x4ded13,_0x218df7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5d60f2=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':[_0x218df7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5d60f2['to']('errorType',_0x1aad75=>t('NotFound'!==_0x1aad75?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1519f5]},{'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 _0x1eb541,View as _0x14bc03}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x14bc03{constructor(_0x4455dc){super(_0x4455dc);const t=_0x4455dc['t'],_0x3aaef1=this['bindTemplate'],_0x40b074=new _0x1eb541();_0x40b074['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':[_0x40b074,{'text':_0x3aaef1['to']('imageUploadProgress',_0x2e16a2=>t('Loading\x20image...')+'\x20('+(_0x2e16a2||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 _0x35dbf6=_0x40db;(function(_0x29564e,_0x1eae10){const _0x8fb0eb=_0x40db,_0x15245b=_0x29564e();while(!![]){try{const _0x374d66=-parseInt(_0x8fb0eb(0x1da))/0x1+parseInt(_0x8fb0eb(0x1e7))/0x2+parseInt(_0x8fb0eb(0x1db))/0x3*(-parseInt(_0x8fb0eb(0x1e1))/0x4)+-parseInt(_0x8fb0eb(0x206))/0x5*(parseInt(_0x8fb0eb(0x1ec))/0x6)+-parseInt(_0x8fb0eb(0x1f6))/0x7*(-parseInt(_0x8fb0eb(0x1df))/0x8)+-parseInt(_0x8fb0eb(0x1fd))/0x9+parseInt(_0x8fb0eb(0x1fe))/0xa;if(_0x374d66===_0x1eae10)break;else _0x15245b['push'](_0x15245b['shift']());}catch(_0x146044){_0x15245b['push'](_0x15245b['shift']());}}}(_0x2f6d,0x1cfa3));import{View as _0x124e5a}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x514f1e}from'./uploadcareimageeditformloadingview.js';function _0x2f6d(){const _0x324a2b=['_waitForImageEditorComponent','toLowerCase','disconnect','target','change:status','status','element','_errorView','_addUploadcareImageEditorListeners','clear','221703nCoRwi','15SADKUE','_editingView','render','_focusableView','1437032xCzKiy','addMany','38884xUgitS','add','div','_loadingView','filter','_addErrorViewListeners','343642MeqeBM','ck-uploadcare-form','observe','addEventListener','ck-reset_all-excluded','18gRMlvE','cancel','ready','apply','querySelector','getFocusableElement','length','nodeName','uc-cloud-image-editor','detail','7XiGlci','createCollection','once','error','focus','retry','fire','995571zyhlur','2254810IiNBiv','setTemplate','set','_setView','uploading','addedNodes','_items','cdnUrl','128855VsHGyT'];_0x2f6d=function(){return _0x324a2b;};return _0x2f6d();}import{UploadcareImageEditFormErrorView as _0x4acdb5}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x20e9ff}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1422c2}from'../../utils/dialogfocusmanagerview.js';function _0x40db(_0x230873,_0x510c0d){const _0x2f6d0d=_0x2f6d();return _0x40db=function(_0x40db8a,_0x1b8730){_0x40db8a=_0x40db8a-0x1d5;let _0x25f3cb=_0x2f6d0d[_0x40db8a];return _0x25f3cb;},_0x40db(_0x230873,_0x510c0d);}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x1422c2{[_0x35dbf6(0x204)];[_0x35dbf6(0x1e4)];[_0x35dbf6(0x1d7)];[_0x35dbf6(0x1dc)];[_0x35dbf6(0x1de)];constructor(_0x127d64,_0x5888f7,_0x492cbe){const _0x5f03e0=_0x35dbf6;super(_0x127d64),this[_0x5f03e0(0x204)]=this[_0x5f03e0(0x1f7)](),this[_0x5f03e0(0x1e4)]=new _0x514f1e(_0x127d64),this[_0x5f03e0(0x1d7)]=new _0x4acdb5(_0x127d64),this[_0x5f03e0(0x1dc)]=new _0x20e9ff(_0x127d64,_0x492cbe),this[_0x5f03e0(0x1de)]=new _0x124e5a(_0x127d64),this[_0x5f03e0(0x1de)][_0x5f03e0(0x1ff)](this[_0x5f03e0(0x1f1)]()),this[_0x5f03e0(0x200)](_0x5f03e0(0x1d5),_0x5888f7),this[_0x5f03e0(0x1ff)]({'tag':_0x5f03e0(0x1e3),'attributes':{'class':['ck',_0x5f03e0(0x1eb),_0x5f03e0(0x1e8)],'tabindex':'-1'},'children':this[_0x5f03e0(0x204)]}),this[_0x5f03e0(0x201)](),this[_0x5f03e0(0x1f8)](_0x5f03e0(0x1dd),()=>{const _0x41baa4=_0x5f03e0;this[_0x41baa4(0x207)](this[_0x41baa4(0x1d6)],_0x44f7c8=>{const _0x5d8315=_0x41baa4;this[_0x5d8315(0x1d8)](_0x44f7c8);});}),this['on'](_0x5f03e0(0x20b),()=>{const _0x2c492c=_0x5f03e0;this[_0x2c492c(0x201)]();}),this[_0x5f03e0(0x1e6)]();}[_0x35dbf6(0x1fa)](){const _0x191ea4=_0x35dbf6;this[_0x191ea4(0x1d6)][_0x191ea4(0x1fa)]();}[_0x35dbf6(0x201)](){const _0x4a704a=_0x35dbf6;switch(this[_0x4a704a(0x204)][_0x4a704a(0x1d9)](),this[_0x4a704a(0x1d5)]){case _0x4a704a(0x202):this[_0x4a704a(0x204)][_0x4a704a(0x1e2)](this[_0x4a704a(0x1e4)]);break;case _0x4a704a(0x1f9):this[_0x4a704a(0x204)][_0x4a704a(0x1e2)](this[_0x4a704a(0x1d7)]);break;case _0x4a704a(0x1ee):this[_0x4a704a(0x204)][_0x4a704a(0x1e0)]([this[_0x4a704a(0x1dc)],this[_0x4a704a(0x1de)]]);}}[_0x35dbf6(0x207)](_0x17bab6,_0x1f2eb6){const _0x2ff739=_0x35dbf6,_0x2adc3f=_0x2ff739(0x1f4),_0x200b98=_0x17bab6[_0x2ff739(0x1f0)](_0x2adc3f);if(_0x200b98)return _0x1f2eb6(_0x200b98);const _0x2e1c28=new MutationObserver(_0x5e24a6=>{const _0x3a8207=_0x2ff739,_0x583363=_0x5e24a6[_0x3a8207(0x1e5)](_0xfb263e=>_0xfb263e[_0x3a8207(0x20a)]===_0x17bab6&&_0xfb263e[_0x3a8207(0x203)][_0x3a8207(0x1f2)]>0x0&&_0xfb263e[_0x3a8207(0x203)][0x0][_0x3a8207(0x1f3)][_0x3a8207(0x208)]()===_0x2adc3f);_0x583363[_0x3a8207(0x1f2)]&&(_0x2e1c28[_0x3a8207(0x209)](),_0x1f2eb6(_0x583363[0x0][_0x3a8207(0x203)][0x0]));});_0x2e1c28[_0x2ff739(0x1e9)](_0x17bab6,{'childList':!0x0,'subtree':!0x0});}[_0x35dbf6(0x1d8)](_0x44859e){const _0x1fc77e=_0x35dbf6;_0x44859e[_0x1fc77e(0x1ea)](_0x1fc77e(0x1ef),_0x312e2a=>{const _0x1fcd83=_0x1fc77e;this[_0x1fcd83(0x1fc)](_0x1fcd83(0x1ef),{'imageSrc':_0x312e2a[_0x1fcd83(0x1f5)][_0x1fcd83(0x205)]});}),_0x44859e[_0x1fc77e(0x1ea)](_0x1fc77e(0x1ed),()=>{const _0x39b672=_0x1fc77e;this[_0x39b672(0x1fc)](_0x39b672(0x1ed));});}[_0x35dbf6(0x1e6)](){const _0x1d89c2=_0x35dbf6;this[_0x1d89c2(0x1d7)]['on'](_0x1d89c2(0x1fb),()=>{const _0x38ad22=_0x1d89c2;this[_0x38ad22(0x1fc)](_0x38ad22(0x1fb));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x882fb1=_0x1e22;(function(_0x117be6,_0x4537e6){const _0x2c6f74=_0x1e22,_0x186b3c=_0x117be6();while(!![]){try{const _0x3aa1ff=-parseInt(_0x2c6f74(0xac))/0x1*(parseInt(_0x2c6f74(0xbc))/0x2)+parseInt(_0x2c6f74(0xb1))/0x3*(parseInt(_0x2c6f74(0xb3))/0x4)+parseInt(_0x2c6f74(0xb5))/0x5*(parseInt(_0x2c6f74(0xc5))/0x6)+parseInt(_0x2c6f74(0xaa))/0x7*(parseInt(_0x2c6f74(0xb0))/0x8)+parseInt(_0x2c6f74(0xba))/0x9*(-parseInt(_0x2c6f74(0xc8))/0xa)+-parseInt(_0x2c6f74(0xbb))/0xb+parseInt(_0x2c6f74(0xc1))/0xc;if(_0x3aa1ff===_0x4537e6)break;else _0x186b3c['push'](_0x186b3c['shift']());}catch(_0x13db63){_0x186b3c['push'](_0x186b3c['shift']());}}}(_0x368a,0x48c38));import{Command as _0x3510b5}from'ckeditor5/src/core.js';function _0x368a(){const _0x1f6e21=['unbind','imageInline','config','6FHqlYS','uploadcare.allowExternalImagesEditing','selection','100eYlPrd','bind','plugins','refresh','2870203TNnFiN','get','267MBXqMA','document','getSelectedElement','editor','8TncXPk','3HindUz','imageEditController','411612kKIupu','execute','1387145UpsxWV','model','requires','element','isEnabled','175590toIOiQ','3794505EAzzLL','1732ttIxUM','set','imageBlock','_isEditable','isActive','3347472oqrJCM'];_0x368a=function(){return _0x1f6e21;};return _0x368a();}import{Dialog as _0x4ffa8a}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x3292e8}from'./ui/uploadcareimageeditcontroller.js';function _0x1e22(_0x25fd1c,_0x356907){const _0x368ae8=_0x368a();return _0x1e22=function(_0x1e22e4,_0x285159){_0x1e22e4=_0x1e22e4-0xa8;let _0x25fa00=_0x368ae8[_0x1e22e4];return _0x25fa00;},_0x1e22(_0x25fd1c,_0x356907);}import{createEditabilityChecker as _0x121d78}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3510b5{[_0x882fb1(0xb2)];static get[_0x882fb1(0xb7)](){return[_0x4ffa8a];}[_0x882fb1(0xbf)];constructor(_0x2fc980){const _0x490c07=_0x882fb1;super(_0x2fc980),this[_0x490c07(0xb2)]=void 0x0,this[_0x490c07(0xbf)]=_0x121d78(_0x2fc980[_0x490c07(0xc4)][_0x490c07(0xab)](_0x490c07(0xc6))||[]),this[_0x490c07(0xbd)]({'isActive':!0x1});}[_0x882fb1(0xa9)](){const _0x4bbc88=_0x882fb1,_0x5a015a=this[_0x4bbc88(0xaf)][_0x4bbc88(0xb6)][_0x4bbc88(0xad)][_0x4bbc88(0xc7)][_0x4bbc88(0xae)]();this[_0x4bbc88(0xb9)]=this[_0x4bbc88(0xbf)](_0x5a015a);}[_0x882fb1(0xb4)](){const _0x5ab18e=_0x882fb1;this[_0x5ab18e(0xb2)]&&(this[_0x5ab18e(0xc2)](_0x5ab18e(0xc0)),this[_0x5ab18e(0xb2)]=void 0x0);const _0x1aff18=this[_0x5ab18e(0xaf)][_0x5ab18e(0xb6)][_0x5ab18e(0xad)][_0x5ab18e(0xc7)][_0x5ab18e(0xae)]();_0x1aff18&&(_0x1aff18['is'](_0x5ab18e(0xb8),_0x5ab18e(0xbe))||_0x1aff18['is'](_0x5ab18e(0xb8),_0x5ab18e(0xc3)))&&(this[_0x5ab18e(0xb2)]=new _0x3292e8(this[_0x5ab18e(0xaf)],this[_0x5ab18e(0xaf)][_0x5ab18e(0xa8)][_0x5ab18e(0xab)](_0x4ffa8a),_0x1aff18),this[_0x5ab18e(0xc9)](_0x5ab18e(0xc0))['to'](this[_0x5ab18e(0xb2)],_0x5ab18e(0xc0)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x262b(_0xb373c3,_0x380cf6){const _0x50f64a=_0x50f6();return _0x262b=function(_0x262b87,_0x31c2b9){_0x262b87=_0x262b87-0xef;let _0x215d21=_0x50f64a[_0x262b87];return _0x215d21;},_0x262b(_0xb373c3,_0x380cf6);}const _0x554a0d=_0x262b;(function(_0x5698ed,_0x49d2c3){const _0x45dc3f=_0x262b,_0x305de8=_0x5698ed();while(!![]){try{const _0x134070=parseInt(_0x45dc3f(0xef))/0x1+parseInt(_0x45dc3f(0x101))/0x2*(-parseInt(_0x45dc3f(0xfa))/0x3)+parseInt(_0x45dc3f(0xf0))/0x4+parseInt(_0x45dc3f(0xfc))/0x5*(parseInt(_0x45dc3f(0xf4))/0x6)+parseInt(_0x45dc3f(0xf6))/0x7*(parseInt(_0x45dc3f(0x100))/0x8)+-parseInt(_0x45dc3f(0x102))/0x9+-parseInt(_0x45dc3f(0xf1))/0xa*(parseInt(_0x45dc3f(0xf2))/0xb);if(_0x134070===_0x49d2c3)break;else _0x305de8['push'](_0x305de8['shift']());}catch(_0x1ff4e5){_0x305de8['push'](_0x305de8['shift']());}}}(_0x50f6,0x4ae5d));import{Plugin as _0x5037ee}from'ckeditor5/src/core.js';function _0x50f6(){const _0x3c6343=['add','ImageUtils','42jlBhrR','uploadcareImageReplace','79510vSKnOe','UploadcareImageEditEditing','pluginName','init','27152mbOuxx','15146jwvRdt','4743405dnyxhs','commands','ImageEditing','uploadcareImageEdit','297140cQWZJp','311880fLdMht','1747300qaQnyt','22fMEBOg','isOfficialPlugin','222bwtOpY','isPremiumPlugin','672YQXvmY','requires'];_0x50f6=function(){return _0x3c6343;};return _0x50f6();}import{Notification as _0x18ca2f}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x3db708}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2b6810}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x4dada}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x5037ee{static get[_0x554a0d(0xfe)](){const _0x30faa5=_0x554a0d;return _0x30faa5(0xfd);}static get[_0x554a0d(0xf7)](){const _0x5525a1=_0x554a0d;return[_0x4dada,_0x18ca2f,_0x5525a1(0xf9),_0x5525a1(0x104)];}static get[_0x554a0d(0xf3)](){return!0x0;}static get[_0x554a0d(0xf5)](){return!0x0;}[_0x554a0d(0xff)](){const _0x5b8066=_0x554a0d,{editor:_0x13f523}=this;_0x13f523[_0x5b8066(0x103)][_0x5b8066(0xf8)](_0x5b8066(0x105),new _0x3db708(_0x13f523)),_0x13f523[_0x5b8066(0x103)][_0x5b8066(0xf8)](_0x5b8066(0xfb),new _0x2b6810(_0x13f523));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x342f9b}from'ckeditor5/src/core.js';import{ButtonView as _0x50ff20}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x23c6c7}from'ckeditor5/src/icons.js';import{createElement as _0x4f4424}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 _0x342f9b{['_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 _0xab10c7=this['editor'];_0xab10c7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x581459=>{const _0x32d262=_0xab10c7['commands']['get']('uploadcareImageEdit'),_0xc6bc1=new _0x50ff20(_0x581459),t=_0x581459['t'];return _0xc6bc1['set']({'icon':_0x23c6c7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xc6bc1['bind']('isEnabled')['to'](_0x32d262),_0xc6bc1['bind']('isOn')['to'](_0x32d262,'isActive'),this['listenTo'](_0xc6bc1,'execute',()=>{_0xab10c7['execute']('uploadcareImageEdit'),_0xab10c7['editing']['view']['focus']();}),_0xc6bc1;}),this['_initConfig']();}['_initConfig'](){const _0x5623c9=_0x4f4424(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5623c9),this['listenTo'](this['editor'],'destroy',()=>{_0x5623c9['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4a90(){var _0x3cdb14=['1gmMjYi','462344MUINXi','35nYdzdy','focusTracker','true','215162HFvMmZ','8148BoKwux','1322072yrSyAE','focusCycler','9FOYCHi','11272668xdQvlS','bindTemplate','545496NmIwGP','createCollection','forwardCycle','fire','div','370mdqhQW','getFocusableElement','319070TaUsiY'];_0x4a90=function(){return _0x3cdb14;};return _0x4a90();}var _0x18abfa=_0x543a;(function(_0xb5eb01,_0x1a0d75){var _0x1ed4ae=_0x543a,_0xe16b01=_0xb5eb01();while(!![]){try{var _0x10427f=parseInt(_0x1ed4ae(0x1aa))/0x1*(-parseInt(_0x1ed4ae(0x1af))/0x2)+-parseInt(_0x1ed4ae(0x1b6))/0x3+-parseInt(_0x1ed4ae(0x1b1))/0x4+parseInt(_0x1ed4ae(0x1a7))/0x5*(parseInt(_0x1ed4ae(0x1b0))/0x6)+parseInt(_0x1ed4ae(0x1ac))/0x7*(-parseInt(_0x1ed4ae(0x1ab))/0x8)+parseInt(_0x1ed4ae(0x1b3))/0x9*(-parseInt(_0x1ed4ae(0x1a9))/0xa)+parseInt(_0x1ed4ae(0x1b4))/0xb;if(_0x10427f===_0x1a0d75)break;else _0xe16b01['push'](_0xe16b01['shift']());}catch(_0x382468){_0xe16b01['push'](_0xe16b01['shift']());}}}(_0x4a90,0x2d09d));function _0x543a(_0x817026,_0x3c5f40){var _0x4a901a=_0x4a90();return _0x543a=function(_0x543ac1,_0x200965){_0x543ac1=_0x543ac1-0x1a4;var _0x39f324=_0x4a901a[_0x543ac1];return _0x39f324;},_0x543a(_0x817026,_0x3c5f40);}import{FocusTracker as _0x349d6a}from'ckeditor5/src/utils.js';import{View as _0x5b2986,FocusCycler as _0x37b4b0}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x5b2986{[_0x18abfa(0x1ad)];[_0x18abfa(0x1b2)];constructor(_0x4c9abf){var _0x55a8de=_0x18abfa;super(_0x4c9abf),this[_0x55a8de(0x1ad)]=new _0x349d6a(),this[_0x55a8de(0x1b2)]=new _0x37b4b0({'focusables':this[_0x55a8de(0x1b7)](),'focusTracker':this[_0x55a8de(0x1ad)]});}[_0x18abfa(0x1a8)](){var _0x5af26e=_0x18abfa;return{'tag':_0x5af26e(0x1a6),'attributes':{'aria-hidden':_0x5af26e(0x1ae),'tabindex':'0'},'on':{'focus':this[_0x5af26e(0x1b5)]['to'](()=>{var _0x353045=_0x5af26e;this[_0x353045(0x1b2)][_0x353045(0x1a5)](_0x353045(0x1a4));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x111722,_0x1beaa4){const _0x5044fe=_0x386e,_0x2e1c6a=_0x111722();while(!![]){try{const _0x2468ee=-parseInt(_0x5044fe(0x20c))/0x1*(-parseInt(_0x5044fe(0x1f5))/0x2)+-parseInt(_0x5044fe(0x205))/0x3+parseInt(_0x5044fe(0x20a))/0x4*(-parseInt(_0x5044fe(0x209))/0x5)+-parseInt(_0x5044fe(0x201))/0x6+parseInt(_0x5044fe(0x1f6))/0x7+parseInt(_0x5044fe(0x218))/0x8+parseInt(_0x5044fe(0x21b))/0x9;if(_0x2468ee===_0x1beaa4)break;else _0x2e1c6a['push'](_0x2e1c6a['shift']());}catch(_0x24f2b8){_0x2e1c6a['push'](_0x2e1c6a['shift']());}}}(_0x10a3,0x912eb));function _0x386e(_0x8d950c,_0x22cdf3){const _0x10a39a=_0x10a3();return _0x386e=function(_0x386e6c,_0x5e6dbf){_0x386e6c=_0x386e6c-0x1e9;let _0x2b08a3=_0x10a39a[_0x386e6c];return _0x2b08a3;},_0x386e(_0x8d950c,_0x22cdf3);}import{global as _0x36a65b,DomEmitterMixin as _0x5559b7}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x54dc9a){const _0x32f9ae=_0x386e,_0x3ccd58=R(_0x54dc9a);return _0x3ab237=>!(!_0x3ab237||!_0x3ab237['is'](_0x32f9ae(0x217),_0x32f9ae(0x1e9))&&!_0x3ab237['is'](_0x32f9ae(0x217),_0x32f9ae(0x1ed)))&&(!!_0x3ab237[_0x32f9ae(0x210)](_0x32f9ae(0x200))||!!_0x3ab237[_0x32f9ae(0x210)](_0x32f9ae(0x214))&&_0x3ccd58(_0x3ab237[_0x32f9ae(0x1f3)](_0x32f9ae(0x214))));}export function getImageUrls(_0x1849c7,_0x363071){const _0x45cc50=_0x386e,_0x1c989=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x45cc50(0x204)](_0x38f9c8=>_0x38f9c8<=_0x363071)[_0x45cc50(0x212)](_0x4dd610=>_0x1849c7[_0x45cc50(0x207)](/\/$/,'')+_0x45cc50(0x220)+_0x4dd610+_0x45cc50(0x213)+_0x4dd610+'w');return{'imageFallbackUrl':_0x1849c7,'imageSources':[{'srcset':_0x1c989[_0x45cc50(0x1f0)](',\x20'),'sizes':_0x45cc50(0x208)+_0x363071+_0x45cc50(0x21d)+_0x363071+'px','type':_0x45cc50(0x203)}]};}export function getImageDimension(_0x55c40b,_0x3e0e5e,_0x4f9cc6){const _0x32c5a7=_0x386e,_0x13a047=_0x55c40b[_0x32c5a7(0x211)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x13a047?parseInt(_0x13a047[0x1],0xa):_0x3e0e5e,'height':_0x13a047?parseInt(_0x13a047[0x2],0xa):_0x4f9cc6};}export function showImageProcessingIndicator(_0x4f5d6b,_0x31e47f){const _0x15bed3=_0x386e,_0x2897db=new(_0x5559b7())(),_0x34445f=_0x4f5d6b[_0x15bed3(0x1fd)][_0x15bed3(0x206)](_0x15bed3(0x1fe)),_0x2c3515=_0x4f5d6b[_0x15bed3(0x1f1)][_0x15bed3(0x20b)][_0x15bed3(0x1fb)](_0x31e47f),_0x1c7ae9=_0x34445f[_0x15bed3(0x215)](_0x2c3515),_0x82d5a7=_0x4f5d6b[_0x15bed3(0x1f1)][_0x15bed3(0x1ea)][_0x15bed3(0x1ff)][_0x15bed3(0x202)](_0x1c7ae9),_0x342376=_0x31e47f[_0x15bed3(0x1f3)](_0x15bed3(0x1f8)),_0x502a93=_0x31e47f[_0x15bed3(0x1f3)](_0x15bed3(0x1eb)),_0x111632=_0x15bed3(0x1f9);_0x4f5d6b[_0x15bed3(0x1f1)][_0x15bed3(0x1ea)][_0x15bed3(0x21c)](_0x161bae=>{const _0x2eb249=_0x15bed3;_0x161bae[_0x2eb249(0x1fa)](_0x111632,_0x2c3515),_0x161bae[_0x2eb249(0x1f7)](_0x2eb249(0x21e),_0x342376+'/'+_0x502a93,_0x1c7ae9);}),_0x2897db[_0x15bed3(0x1ef)](_0x82d5a7,_0x15bed3(0x1f4),()=>{const _0x4438df=_0x15bed3;_0x2897db[_0x4438df(0x1ee)](_0x82d5a7,_0x4438df(0x1f4)),_0x4f5d6b[_0x4438df(0x1f1)][_0x4438df(0x1ea)][_0x4438df(0x21c)](_0x4e7444=>{const _0x5c1bfb=_0x4438df;_0x4e7444[_0x5c1bfb(0x20f)](_0x111632,_0x2c3515),_0x4e7444[_0x5c1bfb(0x219)](_0x5c1bfb(0x21e),_0x1c7ae9);});});}function R(_0x32b4ea){const _0x3564f7=_0x386e;if(Array[_0x3564f7(0x21f)](_0x32b4ea)){const _0x192477=_0x32b4ea[_0x3564f7(0x212)](R);return _0x2f81cc=>_0x192477[_0x3564f7(0x20e)](_0x336342=>_0x336342(_0x2f81cc));}if(_0x3564f7(0x1ec)==_0x32b4ea){const _0x31f6e8=_0x36a65b[_0x3564f7(0x1f2)][_0x3564f7(0x20d)][_0x3564f7(0x1ec)];return _0x4b221b=>new URL(_0x4b221b,_0x36a65b[_0x3564f7(0x1fc)][_0x3564f7(0x216)])[_0x3564f7(0x1ec)]==_0x31f6e8;}return _0x3564f7(0x21a)==typeof _0x32b4ea?_0x32b4ea:_0x32b4ea instanceof RegExp?_0x5480b7=>!(!_0x5480b7[_0x3564f7(0x211)](_0x32b4ea)&&!_0x5480b7[_0x3564f7(0x207)](/^https?:\/\//,'')[_0x3564f7(0x211)](_0x32b4ea)):()=>!0x1;}function _0x10a3(){const _0x60d32c=['origin','imageInline','stopListening','listenTo','join','editing','window','getAttribute','load','577996TVidqK','2441481iTLLPb','setStyle','width','image-processing','addClass','toViewElement','document','plugins','ImageUtils','domConverter','uploadcareImageId','3535794PAKNRC','viewToDom','image/webp','filter','313221YZKQSy','get','replace','(max-width:\x20','655CoWAdT','13340LGwFPN','mapper','1ObDnoD','location','some','removeClass','hasAttribute','match','map','x/\x20','src','findViewImgElement','baseURI','element','6692408nmPpoz','removeStyle','function','2258334DqzNHs','change','px)\x20100vw,\x20','aspect-ratio','isArray','/-/resize/','imageBlock','view','height'];_0x10a3=function(){return _0x60d32c;};return _0x10a3();}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0xc8ec(){var _0x88318=['3350053fPpwJz','2228208QLGaIr','2WxxIzN','2836364vaFnhR','target','8daNYFx','7051023zWGdwH','includes','2524180cacdaP','1766649VKzWaD','898884KWYSjd'];_0xc8ec=function(){return _0x88318;};return _0xc8ec();}(function(_0x5056d1,_0x24f707){var _0x5a9fcf=_0x36ae,_0x41fe45=_0x5056d1();while(!![]){try{var _0x1fb291=-parseInt(_0x5a9fcf(0x75))/0x1+parseInt(_0x5a9fcf(0x78))/0x2*(parseInt(_0x5a9fcf(0x74))/0x3)+parseInt(_0x5a9fcf(0x79))/0x4+-parseInt(_0x5a9fcf(0x73))/0x5+parseInt(_0x5a9fcf(0x77))/0x6+parseInt(_0x5a9fcf(0x76))/0x7*(-parseInt(_0x5a9fcf(0x7b))/0x8)+parseInt(_0x5a9fcf(0x71))/0x9;if(_0x1fb291===_0x24f707)break;else _0x41fe45['push'](_0x41fe45['shift']());}catch(_0xcd16fb){_0x41fe45['push'](_0x41fe45['shift']());}}}(_0xc8ec,0x8b47a));import{getAncestors as _0x2ccd70}from'ckeditor5/src/utils.js';function _0x36ae(_0x263761,_0x1bc3a6){var _0xc8ec91=_0xc8ec();return _0x36ae=function(_0x36aeee,_0x584e7b){_0x36aeee=_0x36aeee-0x71;var _0x27457e=_0xc8ec91[_0x36aeee];return _0x27457e;},_0x36ae(_0x263761,_0x1bc3a6);}export function isAncestor(_0x157451,_0x7dfbbf){var _0x56385a=_0x36ae;return _0x2ccd70(_0x157451[_0x56385a(0x7a)])[_0x56385a(0x72)](_0x7dfbbf);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x141d(_0x15e23a,_0x4da092){var _0x296eb5=_0x296e();return _0x141d=function(_0x141dfd,_0x59f973){_0x141dfd=_0x141dfd-0x199;var _0x22fd0c=_0x296eb5[_0x141dfd];return _0x22fd0c;},_0x141d(_0x15e23a,_0x4da092);}function _0x296e(){var _0x583fd9=['upload','18361UOrdWt','109116GVXgXj','824wdJsur','796763YkbJBA','30mcTeCM','649772GWNVpp','464PSuVsp','getInfo','132HepLMM','1114675qdpTqC','9567WATupo','1101537Balahm','1ANlWbG'];_0x296e=function(){return _0x583fd9;};return _0x296e();}var _0x38de65=_0x141d;(function(_0x30c42f,_0x346a8a){var _0x248f2c=_0x141d,_0x1035e8=_0x30c42f();while(!![]){try{var _0x1fdd6=-parseInt(_0x248f2c(0x1a1))/0x1*(-parseInt(_0x248f2c(0x19a))/0x2)+-parseInt(_0x248f2c(0x19f))/0x3*(parseInt(_0x248f2c(0x19b))/0x4)+parseInt(_0x248f2c(0x19e))/0x5+-parseInt(_0x248f2c(0x1a4))/0x6+-parseInt(_0x248f2c(0x1a3))/0x7*(parseInt(_0x248f2c(0x1a5))/0x8)+-parseInt(_0x248f2c(0x1a0))/0x9*(parseInt(_0x248f2c(0x199))/0xa)+-parseInt(_0x248f2c(0x1a6))/0xb*(-parseInt(_0x248f2c(0x19d))/0xc);if(_0x1fdd6===_0x346a8a)break;else _0x1035e8['push'](_0x1035e8['shift']());}catch(_0x8fa7cf){_0x1035e8['push'](_0x1035e8['shift']());}}}(_0x296e,0x4de96));import{uploadFile as _0x3a3af5,info as _0x581413}from'@uploadcare/upload-client';export class UploadUtils{static[_0x38de65(0x1a2)]({file:_0x5193e6,..._0x3a1ade}){return _0x3a3af5(_0x5193e6,_0x3a1ade);}static[_0x38de65(0x19c)](_0x59e856,_0x3d4115){return _0x581413(_0x59e856,_0x3d4115);}}
|