@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251122.0 → 0.0.0-nightly-20251124.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 _0x4fd594,ObservableMixin as _0x43cb18}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x244607}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2fcb43}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x3fcc54}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x52c332}from'../../utils/uploadutils.js';import{getImageUrls as _0x47ad30,getImageDimension as _0x2182cf}from'../../utils/editingutils.js';import{isAncestor as _0x1d5017}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x43cb18(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x40d170,_0x4d0bc9,_0x1a3162){super(),this['_editor']=_0x40d170,this['_dialog']=_0x4d0bc9,this['_imageElement']=_0x1a3162,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 _0x1fe26f=this['_imageElement'],_0x2e3cf1=_0x1fe26f['getAttribute']('uploadcareImageId'),_0x5369ae=_0x1fe26f['getAttribute']('src');if(_0x2e3cf1)await this['_loadImageInfo'](_0x2e3cf1,_0x5369ae);else{if(this['_imageCache']['has'](_0x5369ae)){const _0x45db58=this['_imageCache']['get'](_0x5369ae);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x45db58['url'],this['imageDimension']=_0x45db58['dimension'],this['imageId']=_0x45db58['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x570fc1}=this['_editor'],t=_0x570fc1['t'],_0xda6dc5=new _0x3fcc54(_0x570fc1,this['imageStatus'],this['_attributes']);_0xda6dc5['bind']('status')['to'](this,'imageStatus'),_0xda6dc5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xda6dc5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xda6dc5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xda6dc5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2fcb43,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xda6dc5,'position':_0x244607['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xda6dc5['focus']();},'onHide':()=>{_0xda6dc5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5841cd=>!_0x1d5017(_0x5841cd,_0xda6dc5['element'])}});}['_loadImageInfo'](_0x23f517,_0x54bb87){return _0x52c332['getInfo'](_0x23f517,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x556022=>{const {width:_0x3f5a47,height:_0x2996d2}=_0x556022['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x54bb87,this['imageDimension']={'width':_0x3f5a47,'height':_0x2996d2},this['imageId']=_0x23f517;})['catch'](_0x50b854=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x50b854['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3000c7,_0x533c99){return this['_getImageAsFile'](_0x3000c7)['then'](_0xcf2b3=>_0x52c332['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':_0x533c99['signal'],'file':_0xcf2b3,'onProgress':_0x2d85e5=>{_0x2d85e5&&_0x2d85e5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2d85e5['value']));}}))['then'](_0x26474a=>{const {width:_0x25dfb1,height:_0x27f11b}=_0x26474a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x26474a['cdnUrl'],this['imageDimension']={'width':_0x25dfb1,'height':_0x27f11b},this['imageId']=_0x26474a['uuid'],this['imageUploadProgress']=null;const _0x3c80a3=_0x3000c7['getAttribute']('src');this['_imageCache']['set'](_0x3c80a3,{'id':_0x26474a['uuid'],'url':_0x26474a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x461fb1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x461fb1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x47bed3,_0x353e4c){_0x47bed3['on']('apply',(_0x2ddfc,_0x151444)=>{this['_replaceImage'](_0x353e4c,_0x151444['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x47bed3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x47bed3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x30c474,_0x59084e,_0x2fdaf8){const _0x9aab63=this['_editor'],{width:_0xef1726,height:_0xb6746f}=_0x2182cf(_0x59084e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xe9547f,imageSources:_0x5a87c6}=_0x47ad30(_0x59084e,_0xef1726);_0x9aab63['model']['change'](_0x1f462a=>{if('$graveyard'===_0x30c474['root']['rootName']){_0x9aab63['execute']('insertImage',{'imageType':_0x30c474['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x30c474['getAttributes']()),'uploadcareImageId':_0x2fdaf8,'src':_0xe9547f,'sources':_0x5a87c6,'width':_0xef1726,'height':_0xb6746f}});const _0x3a2016=_0x30c474['getChildren']();_0x30c474=_0x9aab63['model']['document']['selection']['getSelectedElement']();for(const _0x51616e of _0x3a2016)_0x1f462a['append'](_0x1f462a['cloneElement'](_0x51616e),_0x30c474);}else _0x1f462a['setSelection'](_0x30c474,'on'),_0x9aab63['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x30c474['getAttributes']()),'uploadcareImageId':_0x2fdaf8,'src':_0xe9547f,'sources':_0x5a87c6,'width':_0xef1726,'height':_0xb6746f},_0x30c474);_0x1f462a['setSelection'](_0x30c474,'on');});}async['_getImageAsFile'](_0x53217e){const _0x4641ac=_0x4fd594['window'],_0x5f40af=_0x4fd594['document']['location']['href'],_0x511fe8=new _0x4641ac['URL'](_0x53217e['getAttribute']('src'),_0x5f40af);if('data:'===_0x511fe8['protocol']){const _0xf8d38c=_0x511fe8['href']['split'](','),_0x1324d1=_0xf8d38c[0x0]['match'](/:(.*?);/)[0x1],_0x1c2556=_0x1324d1['split']('/')[0x1],_0x4202e1=_0x4641ac['atob'](_0xf8d38c[_0xf8d38c['length']-0x1]);let _0x7c8448=_0x4202e1['length'];const _0x30fef2=new _0x4641ac['Uint8Array'](_0x7c8448);for(;_0x7c8448--;)_0x30fef2[_0x7c8448]=_0x4202e1['charCodeAt'](_0x7c8448);return new _0x4641ac['File']([_0x30fef2],'image.'+_0x1c2556,{'type':_0x1324d1});}const _0x558bbb=_0x511fe8['href']['split']('/'),_0x3b530f=_0x558bbb[_0x558bbb['length']-0x1],_0x54292c=_0x3b530f['split']('.')[0x1];return _0x4641ac['fetch'](_0x511fe8['href'])['then'](_0x5b42ac=>_0x5b42ac['clone']()['blob']())['then'](_0x433b9d=>new _0x4641ac['File']([_0x433b9d],_0x3b530f,{'type':'image/'+_0x54292c}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x499619,_0x145bc7){const _0x5226b9=_0x50fd,_0x316e1e=_0x499619();while(!![]){try{const _0x1d74ed=parseInt(_0x5226b9(0x18a))/0x1*(parseInt(_0x5226b9(0x189))/0x2)+-parseInt(_0x5226b9(0x181))/0x3*(-parseInt(_0x5226b9(0x18c))/0x4)+-parseInt(_0x5226b9(0x182))/0x5+parseInt(_0x5226b9(0x185))/0x6+parseInt(_0x5226b9(0x17d))/0x7*(parseInt(_0x5226b9(0x188))/0x8)+-parseInt(_0x5226b9(0x187))/0x9*(parseInt(_0x5226b9(0x18e))/0xa)+parseInt(_0x5226b9(0x18b))/0xb;if(_0x1d74ed===_0x145bc7)break;else _0x316e1e['push'](_0x316e1e['shift']());}catch(_0x2528bd){_0x316e1e['push'](_0x316e1e['shift']());}}}(_0x5838,0xbe4b3));import{View as _0x420699}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x420699{constructor(_0x2823e1,_0x289133){const _0x22bad7=_0x50fd;super(_0x2823e1);const _0x53b104=this[_0x22bad7(0x186)];this[_0x22bad7(0x17c)](_0x22bad7(0x17f),''),this[_0x22bad7(0x180)]({'tag':_0x22bad7(0x183),'attributes':{..._0x289133,'class':[_0x22bad7(0x184),_0x22bad7(0x18d)],'ctx-name':_0x22bad7(0x17e),'cdn-url':_0x53b104['to'](_0x22bad7(0x17f))}});}}function _0x50fd(_0x30dcb6,_0x497a4a){const _0x583890=_0x5838();return _0x50fd=function(_0x50fdc2,_0x7399ae){_0x50fdc2=_0x50fdc2-0x17c;let _0x22cdb9=_0x583890[_0x50fdc2];return _0x22cdb9;},_0x50fd(_0x30dcb6,_0x497a4a);}function _0x5838(){const _0x253569=['21945462foYIVx','935944SsyQXd','ck-uploadcare-theme','85970UQWQTq','set','147882PEniQu','image-edit','imageSrc','setTemplate','15XoYDRh','7667720pTLbaJ','uc-cloud-image-editor','uc-light','990918QQqmOE','bindTemplate','1269KCORmp','56YPgWMx','31438DGJluE','3TMkafA'];_0x5838=function(){return _0x253569;};return _0x5838();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x183ad2}from'ckeditor5/src/icons.js';import{ButtonView as _0x2bae07,IconView as _0x8b81b9,View as _0x3b1cad}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x3b1cad{constructor(_0x2e47b6){super(_0x2e47b6);const t=_0x2e47b6['t'];this['set']('errorType',null);const _0x49cb34=new _0x2bae07(_0x2e47b6);_0x49cb34['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x49cb34['withText']=!0x0,_0x49cb34['class']='ck-button-action',_0x49cb34['on']('execute',()=>{this['fire']('retry');}),_0x49cb34['bind']('isVisible')['to'](this,'errorType',_0xbd9664=>'NotFound'!==_0xbd9664);const _0x226a5a=new _0x8b81b9();_0x226a5a['content']=_0x183ad2,_0x226a5a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x30ba47=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':[_0x226a5a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x30ba47['to']('errorType',_0x3b818f=>t('NotFound'!==_0x3b818f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x49cb34]},{'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 _0x13874e,View as _0x28be0b}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x28be0b{constructor(_0x372628){super(_0x372628);const t=_0x372628['t'],_0x38ed37=this['bindTemplate'],_0xb3ce94=new _0x13874e();_0xb3ce94['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':[_0xb3ce94,{'text':_0x38ed37['to']('imageUploadProgress',_0x438371=>t('Loading\x20image...')+'\x20('+(_0x438371||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf4f53e=_0x37ed;function _0x37ed(_0x5435f5,_0x31a39b){const _0x4e7033=_0x4e70();return _0x37ed=function(_0x37ed05,_0x4a98af){_0x37ed05=_0x37ed05-0x14b;let _0x5da827=_0x4e7033[_0x37ed05];return _0x5da827;},_0x37ed(_0x5435f5,_0x31a39b);}(function(_0x1614d5,_0x539d50){const _0x1a02e0=_0x37ed,_0x1f0045=_0x1614d5();while(!![]){try{const _0x2c56c5=parseInt(_0x1a02e0(0x154))/0x1+parseInt(_0x1a02e0(0x17b))/0x2*(-parseInt(_0x1a02e0(0x177))/0x3)+parseInt(_0x1a02e0(0x14d))/0x4*(parseInt(_0x1a02e0(0x14e))/0x5)+-parseInt(_0x1a02e0(0x16a))/0x6*(-parseInt(_0x1a02e0(0x14f))/0x7)+parseInt(_0x1a02e0(0x175))/0x8*(parseInt(_0x1a02e0(0x14c))/0x9)+parseInt(_0x1a02e0(0x180))/0xa*(-parseInt(_0x1a02e0(0x166))/0xb)+parseInt(_0x1a02e0(0x16c))/0xc;if(_0x2c56c5===_0x539d50)break;else _0x1f0045['push'](_0x1f0045['shift']());}catch(_0x5ab1c5){_0x1f0045['push'](_0x1f0045['shift']());}}}(_0x4e70,0x729e0));import{View as _0x48677c}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1d9739}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x88432b}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x6b363e}from'./uploadcareimageeditformeditingview.js';function _0x4e70(){const _0x440f13=['_addErrorViewListeners','6115500laadTv','retry','_editingView','_waitForImageEditorComponent','length','observe','detail','cancel','_items','40MZHITy','div','31887zxPUzn','uploading','change:status','addEventListener','74FIMTMt','_loadingView','error','render','element','6862980OpDunu','toLowerCase','cdnUrl','addMany','clear','237213YWfXGQ','1360NgsXdn','3545vpxzXg','22876QRpVyO','focus','createCollection','uc-cloud-image-editor','getFocusableElement','418205hToqwq','_setView','status','filter','once','_errorView','ck-reset_all-excluded','fire','target','add','set','ck-uploadcare-form','_focusableView','ready','apply','setTemplate','_addUploadcareImageEditorListeners','addedNodes','11HJySof','disconnect','querySelector','nodeName','456vEkVGG'];_0x4e70=function(){return _0x440f13;};return _0x4e70();}import{DialogFocusManagerView as _0x487bc2}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x487bc2{[_0xf4f53e(0x174)];[_0xf4f53e(0x17c)];[_0xf4f53e(0x159)];[_0xf4f53e(0x16e)];[_0xf4f53e(0x160)];constructor(_0x363466,_0x449927,_0x5a326e){const _0x4e287f=_0xf4f53e;super(_0x363466),this[_0x4e287f(0x174)]=this[_0x4e287f(0x151)](),this[_0x4e287f(0x17c)]=new _0x1d9739(_0x363466),this[_0x4e287f(0x159)]=new _0x88432b(_0x363466),this[_0x4e287f(0x16e)]=new _0x6b363e(_0x363466,_0x5a326e),this[_0x4e287f(0x160)]=new _0x48677c(_0x363466),this[_0x4e287f(0x160)][_0x4e287f(0x163)](this[_0x4e287f(0x153)]()),this[_0x4e287f(0x15e)](_0x4e287f(0x156),_0x449927),this[_0x4e287f(0x163)]({'tag':_0x4e287f(0x176),'attributes':{'class':['ck',_0x4e287f(0x15a),_0x4e287f(0x15f)],'tabindex':'-1'},'children':this[_0x4e287f(0x174)]}),this[_0x4e287f(0x155)](),this[_0x4e287f(0x158)](_0x4e287f(0x17e),()=>{const _0x43af1a=_0x4e287f;this[_0x43af1a(0x16f)](this[_0x43af1a(0x17f)],_0x364f57=>{const _0x1dc1d6=_0x43af1a;this[_0x1dc1d6(0x164)](_0x364f57);});}),this['on'](_0x4e287f(0x179),()=>{const _0x152068=_0x4e287f;this[_0x152068(0x155)]();}),this[_0x4e287f(0x16b)]();}[_0xf4f53e(0x150)](){const _0x3b7c3b=_0xf4f53e;this[_0x3b7c3b(0x17f)][_0x3b7c3b(0x150)]();}[_0xf4f53e(0x155)](){const _0x5e7c43=_0xf4f53e;switch(this[_0x5e7c43(0x174)][_0x5e7c43(0x14b)](),this[_0x5e7c43(0x156)]){case _0x5e7c43(0x178):this[_0x5e7c43(0x174)][_0x5e7c43(0x15d)](this[_0x5e7c43(0x17c)]);break;case _0x5e7c43(0x17d):this[_0x5e7c43(0x174)][_0x5e7c43(0x15d)](this[_0x5e7c43(0x159)]);break;case _0x5e7c43(0x161):this[_0x5e7c43(0x174)][_0x5e7c43(0x183)]([this[_0x5e7c43(0x16e)],this[_0x5e7c43(0x160)]]);}}[_0xf4f53e(0x16f)](_0x303003,_0x11b9fc){const _0x3d8c2c=_0xf4f53e,_0x4df4d2=_0x3d8c2c(0x152),_0x471db1=_0x303003[_0x3d8c2c(0x168)](_0x4df4d2);if(_0x471db1)return _0x11b9fc(_0x471db1);const _0x33cd0b=new MutationObserver(_0x4be750=>{const _0x39148d=_0x3d8c2c,_0x1d6191=_0x4be750[_0x39148d(0x157)](_0x2c4b5d=>_0x2c4b5d[_0x39148d(0x15c)]===_0x303003&&_0x2c4b5d[_0x39148d(0x165)][_0x39148d(0x170)]>0x0&&_0x2c4b5d[_0x39148d(0x165)][0x0][_0x39148d(0x169)][_0x39148d(0x181)]()===_0x4df4d2);_0x1d6191[_0x39148d(0x170)]&&(_0x33cd0b[_0x39148d(0x167)](),_0x11b9fc(_0x1d6191[0x0][_0x39148d(0x165)][0x0]));});_0x33cd0b[_0x3d8c2c(0x171)](_0x303003,{'childList':!0x0,'subtree':!0x0});}[_0xf4f53e(0x164)](_0x18e17f){const _0x520fe1=_0xf4f53e;_0x18e17f[_0x520fe1(0x17a)](_0x520fe1(0x162),_0x5c1aa0=>{const _0x27328b=_0x520fe1;this[_0x27328b(0x15b)](_0x27328b(0x162),{'imageSrc':_0x5c1aa0[_0x27328b(0x172)][_0x27328b(0x182)]});}),_0x18e17f[_0x520fe1(0x17a)](_0x520fe1(0x173),()=>{const _0x16cb9f=_0x520fe1;this[_0x16cb9f(0x15b)](_0x16cb9f(0x173));});}[_0xf4f53e(0x16b)](){const _0x2f4b2b=_0xf4f53e;this[_0x2f4b2b(0x159)]['on'](_0x2f4b2b(0x16d),()=>{const _0x59df61=_0x2f4b2b;this[_0x59df61(0x15b)](_0x59df61(0x16d));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45c9f6=_0x56fb;function _0x56fb(_0x753171,_0x3db069){const _0x28c8d8=_0x28c8();return _0x56fb=function(_0x56fbb9,_0x2b3c86){_0x56fbb9=_0x56fbb9-0x1aa;let _0x24e1b3=_0x28c8d8[_0x56fbb9];return _0x24e1b3;},_0x56fb(_0x753171,_0x3db069);}function _0x28c8(){const _0x3ce14a=['_isEditable','imageBlock','7emUkrF','refresh','execute','imageEditController','275808feyCkS','2479630znssjt','uploadcare.allowExternalImagesEditing','element','4ffLkEY','selection','isEnabled','bind','config','9018675vSRwOT','487520iYnkWY','1906974rUJOdd','460200dXFfyX','isActive','unbind','getSelectedElement','editor','plugins','set','2919312naXRaP','model','get','document','requires','imageInline'];_0x28c8=function(){return _0x3ce14a;};return _0x28c8();}(function(_0x2c6a5a,_0x2c9d4c){const _0x59e19a=_0x56fb,_0x514999=_0x2c6a5a();while(!![]){try{const _0x4f0523=-parseInt(_0x59e19a(0x1bf))/0x1+parseInt(_0x59e19a(0x1b5))/0x2+parseInt(_0x59e19a(0x1c0))/0x3+parseInt(_0x59e19a(0x1b9))/0x4*(parseInt(_0x59e19a(0x1b6))/0x5)+parseInt(_0x59e19a(0x1c8))/0x6+parseInt(_0x59e19a(0x1b1))/0x7*(parseInt(_0x59e19a(0x1c1))/0x8)+-parseInt(_0x59e19a(0x1be))/0x9;if(_0x4f0523===_0x2c9d4c)break;else _0x514999['push'](_0x514999['shift']());}catch(_0x36f287){_0x514999['push'](_0x514999['shift']());}}}(_0x28c8,0x4f182));import{Command as _0x169e09}from'ckeditor5/src/core.js';import{Dialog as _0xa04995}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x27f54b}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0xabe273}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x169e09{[_0x45c9f6(0x1b4)];static get[_0x45c9f6(0x1ad)](){return[_0xa04995];}[_0x45c9f6(0x1af)];constructor(_0x31b46f){const _0x26038e=_0x45c9f6;super(_0x31b46f),this[_0x26038e(0x1b4)]=void 0x0,this[_0x26038e(0x1af)]=_0xabe273(_0x31b46f[_0x26038e(0x1bd)][_0x26038e(0x1ab)](_0x26038e(0x1b7))||[]),this[_0x26038e(0x1c7)]({'isActive':!0x1});}[_0x45c9f6(0x1b2)](){const _0x5dc252=_0x45c9f6,_0x29ecb8=this[_0x5dc252(0x1c5)][_0x5dc252(0x1aa)][_0x5dc252(0x1ac)][_0x5dc252(0x1ba)][_0x5dc252(0x1c4)]();this[_0x5dc252(0x1bb)]=this[_0x5dc252(0x1af)](_0x29ecb8);}[_0x45c9f6(0x1b3)](){const _0x56d409=_0x45c9f6;this[_0x56d409(0x1b4)]&&(this[_0x56d409(0x1c3)](_0x56d409(0x1c2)),this[_0x56d409(0x1b4)]=void 0x0);const _0x144fce=this[_0x56d409(0x1c5)][_0x56d409(0x1aa)][_0x56d409(0x1ac)][_0x56d409(0x1ba)][_0x56d409(0x1c4)]();_0x144fce&&(_0x144fce['is'](_0x56d409(0x1b8),_0x56d409(0x1b0))||_0x144fce['is'](_0x56d409(0x1b8),_0x56d409(0x1ae)))&&(this[_0x56d409(0x1b4)]=new _0x27f54b(this[_0x56d409(0x1c5)],this[_0x56d409(0x1c5)][_0x56d409(0x1c6)][_0x56d409(0x1ab)](_0xa04995),_0x144fce),this[_0x56d409(0x1bc)](_0x56d409(0x1c2))['to'](this[_0x56d409(0x1b4)],_0x56d409(0x1c2)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xbd3c(_0x367aaf,_0x331a91){const _0x3d6391=_0x3d63();return _0xbd3c=function(_0xbd3c65,_0xfbc2a9){_0xbd3c65=_0xbd3c65-0x171;let _0x4ca84e=_0x3d6391[_0xbd3c65];return _0x4ca84e;},_0xbd3c(_0x367aaf,_0x331a91);}const _0x5ddfe4=_0xbd3c;(function(_0x5e5f0e,_0x56bc5d){const _0x20a6bd=_0xbd3c,_0x3f69b1=_0x5e5f0e();while(!![]){try{const _0x17a4bf=-parseInt(_0x20a6bd(0x172))/0x1+parseInt(_0x20a6bd(0x179))/0x2*(-parseInt(_0x20a6bd(0x183))/0x3)+-parseInt(_0x20a6bd(0x176))/0x4+parseInt(_0x20a6bd(0x17c))/0x5*(-parseInt(_0x20a6bd(0x184))/0x6)+parseInt(_0x20a6bd(0x177))/0x7*(-parseInt(_0x20a6bd(0x181))/0x8)+-parseInt(_0x20a6bd(0x17a))/0x9*(parseInt(_0x20a6bd(0x180))/0xa)+parseInt(_0x20a6bd(0x185))/0xb;if(_0x17a4bf===_0x56bc5d)break;else _0x3f69b1['push'](_0x3f69b1['shift']());}catch(_0x44168c){_0x3f69b1['push'](_0x3f69b1['shift']());}}}(_0x3d63,0xf0354));function _0x3d63(){const _0x192511=['11244664XSCGjz','init','3ZkeepP','6nnLCzV','81185742sbdrnK','pluginName','commands','ImageEditing','1530007BmDNVP','UploadcareImageEditEditing','uploadcareImageReplace','add','7056880niqxgm','7zqYAUS','requires','2538826IyMvpY','9dykmac','isPremiumPlugin','739835VMbvag','ImageUtils','uploadcareImageEdit','isOfficialPlugin','2794400NJsOjs'];_0x3d63=function(){return _0x192511;};return _0x3d63();}import{Plugin as _0x16aafb}from'ckeditor5/src/core.js';import{Notification as _0x512099}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x21e4b3}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x32348e}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x30e851}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x16aafb{static get[_0x5ddfe4(0x186)](){const _0x438728=_0x5ddfe4;return _0x438728(0x173);}static get[_0x5ddfe4(0x178)](){const _0x5a8a2e=_0x5ddfe4;return[_0x30e851,_0x512099,_0x5a8a2e(0x17d),_0x5a8a2e(0x171)];}static get[_0x5ddfe4(0x17f)](){return!0x0;}static get[_0x5ddfe4(0x17b)](){return!0x0;}[_0x5ddfe4(0x182)](){const _0x3c93e8=_0x5ddfe4,{editor:_0x2777a2}=this;_0x2777a2[_0x3c93e8(0x187)][_0x3c93e8(0x175)](_0x3c93e8(0x17e),new _0x21e4b3(_0x2777a2)),_0x2777a2[_0x3c93e8(0x187)][_0x3c93e8(0x175)](_0x3c93e8(0x174),new _0x32348e(_0x2777a2));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4e3866}from'ckeditor5/src/core.js';import{ButtonView as _0xc60a2e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x56fd20}from'ckeditor5/src/icons.js';import{createElement as _0x212736}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 _0x4e3866{['_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 _0x5c0127=this['editor'];_0x5c0127['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2db614=>{const _0x3020be=_0x5c0127['commands']['get']('uploadcareImageEdit'),_0x113905=new _0xc60a2e(_0x2db614),t=_0x2db614['t'];return _0x113905['set']({'icon':_0x56fd20,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x113905['bind']('isEnabled')['to'](_0x3020be),_0x113905['bind']('isOn')['to'](_0x3020be,'isActive'),this['listenTo'](_0x113905,'execute',()=>{_0x5c0127['execute']('uploadcareImageEdit'),_0x5c0127['editing']['view']['focus']();}),_0x113905;}),this['_initConfig']();}['_initConfig'](){const _0x28406e=_0x212736(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x28406e),this['listenTo'](this['editor'],'destroy',()=>{_0x28406e['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x6f7a(){var _0x4d3d26=['10wHxASr','bindTemplate','196944zSAFEI','3861018lwNJAB','fire','1924749PWCkLg','1ujZhIA','focusTracker','1539QMJPyP','4201840ezjbgf','createCollection','forwardCycle','true','focusCycler','5335962XbfXQU','1379946LrWRte','3264tLEgaZ','div','getFocusableElement'];_0x6f7a=function(){return _0x4d3d26;};return _0x6f7a();}function _0x3e13(_0x43e7f4,_0x57b97f){var _0x6f7a81=_0x6f7a();return _0x3e13=function(_0x3e13cb,_0x3da185){_0x3e13cb=_0x3e13cb-0x137;var _0xc2e8f4=_0x6f7a81[_0x3e13cb];return _0xc2e8f4;},_0x3e13(_0x43e7f4,_0x57b97f);}var _0x41631e=_0x3e13;(function(_0x11428c,_0x5f25b4){var _0x28cb1a=_0x3e13,_0x5d732e=_0x11428c();while(!![]){try{var _0x311e44=-parseInt(_0x28cb1a(0x147))/0x1*(-parseInt(_0x28cb1a(0x13d))/0x2)+parseInt(_0x28cb1a(0x146))/0x3+parseInt(_0x28cb1a(0x143))/0x4*(parseInt(_0x28cb1a(0x141))/0x5)+-parseInt(_0x28cb1a(0x13c))/0x6+-parseInt(_0x28cb1a(0x144))/0x7+-parseInt(_0x28cb1a(0x13e))/0x8*(-parseInt(_0x28cb1a(0x149))/0x9)+parseInt(_0x28cb1a(0x137))/0xa;if(_0x311e44===_0x5f25b4)break;else _0x5d732e['push'](_0x5d732e['shift']());}catch(_0x3ebf71){_0x5d732e['push'](_0x5d732e['shift']());}}}(_0x6f7a,0x74f67));import{FocusTracker as _0x52bdb0}from'ckeditor5/src/utils.js';import{View as _0x2f2608,FocusCycler as _0x2a7540}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x2f2608{[_0x41631e(0x148)];[_0x41631e(0x13b)];constructor(_0x3eb667){var _0x293da5=_0x41631e;super(_0x3eb667),this[_0x293da5(0x148)]=new _0x52bdb0(),this[_0x293da5(0x13b)]=new _0x2a7540({'focusables':this[_0x293da5(0x138)](),'focusTracker':this[_0x293da5(0x148)]});}[_0x41631e(0x140)](){var _0x177186=_0x41631e;return{'tag':_0x177186(0x13f),'attributes':{'aria-hidden':_0x177186(0x13a),'tabindex':'0'},'on':{'focus':this[_0x177186(0x142)]['to'](()=>{var _0x4a75e8=_0x177186;this[_0x4a75e8(0x13b)][_0x4a75e8(0x145)](_0x4a75e8(0x139));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1710f4,_0x119697){const _0x509077=_0x2392,_0x27d7d0=_0x1710f4();while(!![]){try{const _0x54a0ec=-parseInt(_0x509077(0x1cb))/0x1+-parseInt(_0x509077(0x1b7))/0x2+-parseInt(_0x509077(0x1b3))/0x3*(-parseInt(_0x509077(0x1c3))/0x4)+-parseInt(_0x509077(0x1c9))/0x5+-parseInt(_0x509077(0x1cc))/0x6*(-parseInt(_0x509077(0x1bf))/0x7)+parseInt(_0x509077(0x1b2))/0x8+-parseInt(_0x509077(0x1e0))/0x9*(-parseInt(_0x509077(0x1bc))/0xa);if(_0x54a0ec===_0x119697)break;else _0x27d7d0['push'](_0x27d7d0['shift']());}catch(_0xae19ae){_0x27d7d0['push'](_0x27d7d0['shift']());}}}(_0x5a63,0x4661e));import{global as _0x1cfeb0,DomEmitterMixin as _0x2e742a}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x4ee092){const _0x56f152=_0x2392,_0x581929=z(_0x4ee092);return _0x385850=>!(!_0x385850||!_0x385850['is'](_0x56f152(0x1dd),_0x56f152(0x1d3))&&!_0x385850['is'](_0x56f152(0x1dd),_0x56f152(0x1d7)))&&(!!_0x385850[_0x56f152(0x1c0)](_0x56f152(0x1ce))||!!_0x385850[_0x56f152(0x1c0)](_0x56f152(0x1de))&&_0x581929(_0x385850[_0x56f152(0x1d5)](_0x56f152(0x1de))));}export function getImageUrls(_0x216b7e,_0x87aeb0){const _0x17f0de=_0x2392,_0x19c4de=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x17f0de(0x1d0)](_0x35ac7e=>_0x35ac7e<=_0x87aeb0)[_0x17f0de(0x1c2)](_0x4c8966=>_0x216b7e[_0x17f0de(0x1e1)](/\/$/,'')+_0x17f0de(0x1b0)+_0x4c8966+_0x17f0de(0x1ca)+_0x4c8966+'w');return{'imageFallbackUrl':_0x216b7e,'imageSources':[{'srcset':_0x19c4de[_0x17f0de(0x1be)](',\x20'),'sizes':_0x17f0de(0x1da)+_0x87aeb0+_0x17f0de(0x1c1)+_0x87aeb0+'px','type':_0x17f0de(0x1d4)}]};}export function getImageDimension(_0x59db20,_0x51a762,_0x167f68){const _0xa786ef=_0x2392,_0x38b908=_0x59db20[_0xa786ef(0x1d6)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x38b908?parseInt(_0x38b908[0x1],0xa):_0x51a762,'height':_0x38b908?parseInt(_0x38b908[0x2],0xa):_0x167f68};}export function showImageProcessingIndicator(_0x432615,_0x446a4){const _0x43a51f=_0x2392,_0x176cd5=new(_0x2e742a())(),_0x252f6d=_0x432615[_0x43a51f(0x1c6)][_0x43a51f(0x1b9)](_0x43a51f(0x1db)),_0x38529f=_0x432615[_0x43a51f(0x1bb)][_0x43a51f(0x1bd)][_0x43a51f(0x1dc)](_0x446a4),_0x47b4c1=_0x252f6d[_0x43a51f(0x1b1)](_0x38529f),_0x306134=_0x432615[_0x43a51f(0x1bb)][_0x43a51f(0x1aa)][_0x43a51f(0x1c7)][_0x43a51f(0x1ba)](_0x47b4c1),_0x2c7952=_0x446a4[_0x43a51f(0x1d5)](_0x43a51f(0x1df)),_0x29a539=_0x446a4[_0x43a51f(0x1d5)](_0x43a51f(0x1ae)),_0x89724c=_0x43a51f(0x1c8);_0x432615[_0x43a51f(0x1bb)][_0x43a51f(0x1aa)][_0x43a51f(0x1b4)](_0x181bae=>{const _0x5c551e=_0x43a51f;_0x181bae[_0x5c551e(0x1d1)](_0x89724c,_0x38529f),_0x181bae[_0x5c551e(0x1cf)](_0x5c551e(0x1af),_0x2c7952+'/'+_0x29a539,_0x47b4c1);}),_0x176cd5[_0x43a51f(0x1b5)](_0x306134,_0x43a51f(0x1c5),()=>{const _0x291810=_0x43a51f;_0x176cd5[_0x291810(0x1d9)](_0x306134,_0x291810(0x1c5)),_0x432615[_0x291810(0x1bb)][_0x291810(0x1aa)][_0x291810(0x1b4)](_0x17efe9=>{const _0x113fe8=_0x291810;_0x17efe9[_0x113fe8(0x1ac)](_0x89724c,_0x38529f),_0x17efe9[_0x113fe8(0x1b8)](_0x113fe8(0x1af),_0x47b4c1);});});}function _0x2392(_0x37dd6b,_0x4f5c07){const _0x5a6335=_0x5a63();return _0x2392=function(_0x2392dc,_0x814dd8){_0x2392dc=_0x2392dc-0x1a9;let _0x5c3d2a=_0x5a6335[_0x2392dc];return _0x5c3d2a;},_0x2392(_0x37dd6b,_0x4f5c07);}function z(_0xa31cec){const _0x49dfeb=_0x2392;if(Array[_0x49dfeb(0x1ad)](_0xa31cec)){const _0x3b7bb7=_0xa31cec[_0x49dfeb(0x1c2)](z);return _0x125fd7=>_0x3b7bb7[_0x49dfeb(0x1cd)](_0x38e0c6=>_0x38e0c6(_0x125fd7));}if(_0x49dfeb(0x1ab)==_0xa31cec){const _0x247b9d=_0x1cfeb0[_0x49dfeb(0x1c4)][_0x49dfeb(0x1b6)][_0x49dfeb(0x1ab)];return _0x19403f=>new URL(_0x19403f,_0x1cfeb0[_0x49dfeb(0x1d8)][_0x49dfeb(0x1a9)])[_0x49dfeb(0x1ab)]==_0x247b9d;}return _0x49dfeb(0x1d2)==typeof _0xa31cec?_0xa31cec:_0xa31cec instanceof RegExp?_0x201fa4=>!(!_0x201fa4[_0x49dfeb(0x1d6)](_0xa31cec)&&!_0x201fa4[_0x49dfeb(0x1e1)](/^https?:\/\//,'')[_0x49dfeb(0x1d6)](_0xa31cec)):()=>!0x1;}function _0x5a63(){const _0x3bfca4=['mapper','join','8617vTbHjz','hasAttribute','px)\x20100vw,\x20','map','12QhyrxW','window','load','plugins','domConverter','image-processing','607895SYSADX','x/\x20','345816dUwErB','1494mibOtd','some','uploadcareImageId','setStyle','filter','addClass','function','imageBlock','image/webp','getAttribute','match','imageInline','document','stopListening','(max-width:\x20','ImageUtils','toViewElement','element','src','width','45XGYKms','replace','baseURI','view','origin','removeClass','isArray','height','aspect-ratio','/-/resize/','findViewImgElement','2202304RBmbgP','260817DUlwhE','change','listenTo','location','339896fxGXHi','removeStyle','get','viewToDom','editing','166010sIWjYf'];_0x5a63=function(){return _0x3bfca4;};return _0x5a63();}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x35d927,_0x299466){var _0x5eb4e8=_0x3e81,_0x184e02=_0x35d927();while(!![]){try{var _0x3b9c2d=parseInt(_0x5eb4e8(0x17a))/0x1*(parseInt(_0x5eb4e8(0x17b))/0x2)+-parseInt(_0x5eb4e8(0x17e))/0x3+parseInt(_0x5eb4e8(0x17c))/0x4+parseInt(_0x5eb4e8(0x175))/0x5*(parseInt(_0x5eb4e8(0x177))/0x6)+parseInt(_0x5eb4e8(0x17f))/0x7+parseInt(_0x5eb4e8(0x179))/0x8+-parseInt(_0x5eb4e8(0x176))/0x9;if(_0x3b9c2d===_0x299466)break;else _0x184e02['push'](_0x184e02['shift']());}catch(_0x77b3f){_0x184e02['push'](_0x184e02['shift']());}}}(_0x4d91,0x27c4a));function _0x3e81(_0x3b1f9b,_0x96c96a){var _0x4d915b=_0x4d91();return _0x3e81=function(_0x3e813e,_0x2d725a){_0x3e813e=_0x3e813e-0x175;var _0x510cba=_0x4d915b[_0x3e813e];return _0x510cba;},_0x3e81(_0x3b1f9b,_0x96c96a);}import{getAncestors as _0x2ddc7b}from'ckeditor5/src/utils.js';export function isAncestor(_0x35aab7,_0x5500da){var _0x446706=_0x3e81;return _0x2ddc7b(_0x35aab7[_0x446706(0x17d)])[_0x446706(0x178)](_0x5500da);}function _0x4d91(){var _0x194fd0=['includes','1108344tzUXyc','61AbgBYH','6166LTbuVG','476548pbhYtR','target','286575kKohXT','1695820cqcXVb','38910EgQPYk','4916862SiEpiQ','90QUOrwT'];_0x4d91=function(){return _0x194fd0;};return _0x4d91();}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2ebafd=_0x482c;(function(_0x6b1d79,_0x562a1c){var _0x2b7afe=_0x482c,_0x441a8d=_0x6b1d79();while(!![]){try{var _0x3a31a4=parseInt(_0x2b7afe(0x1d2))/0x1*(parseInt(_0x2b7afe(0x1cf))/0x2)+-parseInt(_0x2b7afe(0x1d3))/0x3+parseInt(_0x2b7afe(0x1ce))/0x4*(parseInt(_0x2b7afe(0x1d0))/0x5)+-parseInt(_0x2b7afe(0x1d1))/0x6*(-parseInt(_0x2b7afe(0x1cc))/0x7)+-parseInt(_0x2b7afe(0x1d4))/0x8+-parseInt(_0x2b7afe(0x1cd))/0x9+parseInt(_0x2b7afe(0x1cb))/0xa;if(_0x3a31a4===_0x562a1c)break;else _0x441a8d['push'](_0x441a8d['shift']());}catch(_0x2d8c27){_0x441a8d['push'](_0x441a8d['shift']());}}}(_0x148a,0xccff8));import{uploadFile as _0x521b23,info as _0x3e620b}from'@uploadcare/upload-client';function _0x482c(_0x5d775e,_0xe5b732){var _0x148ac2=_0x148a();return _0x482c=function(_0x482cf1,_0x2eacab){_0x482cf1=_0x482cf1-0x1ca;var _0x240c11=_0x148ac2[_0x482cf1];return _0x240c11;},_0x482c(_0x5d775e,_0xe5b732);}export class UploadUtils{static[_0x2ebafd(0x1d5)]({file:_0x39383d,..._0x49045d}){return _0x521b23(_0x39383d,_0x49045d);}static[_0x2ebafd(0x1ca)](_0x4ab29c,_0x283275){return _0x3e620b(_0x4ab29c,_0x283275);}}function _0x148a(){var _0x4991c5=['6198903TzXVNq','593148hrnuzr','76azNgth','5eRNGBm','1088898VtPLoB','9920UnXUGS','3951561JHxGbH','4426120jMqJOv','upload','getInfo','26921610ulQuHm','7AKnGVk'];_0x148a=function(){return _0x4991c5;};return _0x148a();}
|