@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250920.0 → 0.0.0-nightly-20250921.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 _0x359376,ObservableMixin as _0x5e765f}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2e0fca}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4144b1}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x5ef867}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x18278f}from'../../utils/uploadutils.js';import{getImageUrls as _0xeab726,getImageDimension as _0x20834c}from'../../utils/editingutils.js';import{isAncestor as _0x140b6a}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5e765f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x346fa7,_0x328e1d,_0x5c9a8a){super(),this['_editor']=_0x346fa7,this['_dialog']=_0x328e1d,this['_imageElement']=_0x5c9a8a,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 _0x27c026=this['_imageElement'],_0x1e0f97=_0x27c026['getAttribute']('uploadcareImageId'),_0x1e5d6e=_0x27c026['getAttribute']('src');if(_0x1e0f97)await this['_loadImageInfo'](_0x1e0f97,_0x1e5d6e);else{if(this['_imageCache']['has'](_0x1e5d6e)){const _0x419d7a=this['_imageCache']['get'](_0x1e5d6e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x419d7a['url'],this['imageDimension']=_0x419d7a['dimension'],this['imageId']=_0x419d7a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x161178}=this['_editor'],t=_0x161178['t'],_0x497a05=new _0x5ef867(_0x161178,this['imageStatus'],this['_attributes']);_0x497a05['bind']('status')['to'](this,'imageStatus'),_0x497a05['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x497a05['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x497a05['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x497a05,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4144b1,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x497a05,'position':_0x2e0fca['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x497a05['focus']();},'onHide':()=>{_0x497a05['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5db52e=>!_0x140b6a(_0x5db52e,_0x497a05['element'])}});}['_loadImageInfo'](_0x43b66f,_0x111208){return _0x18278f['getInfo'](_0x43b66f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3c7d12=>{const {width:_0xd6d5eb,height:_0x5d0ce1}=_0x3c7d12['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x111208,this['imageDimension']={'width':_0xd6d5eb,'height':_0x5d0ce1},this['imageId']=_0x43b66f;})['catch'](_0x471d84=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x471d84['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1a72ae,_0x34bbb5){return this['_getImageAsFile'](_0x1a72ae)['then'](_0x1a2e54=>_0x18278f['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':_0x34bbb5['signal'],'file':_0x1a2e54,'onProgress':_0x5812ab=>{_0x5812ab&&_0x5812ab['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5812ab['value']));}}))['then'](_0x589866=>{const {width:_0xc667d,height:_0x38ed9d}=_0x589866['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x589866['cdnUrl'],this['imageDimension']={'width':_0xc667d,'height':_0x38ed9d},this['imageId']=_0x589866['uuid'],this['imageUploadProgress']=null;const _0x521919=_0x1a72ae['getAttribute']('src');this['_imageCache']['set'](_0x521919,{'id':_0x589866['uuid'],'url':_0x589866['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x158c5d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x158c5d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5333af,_0x46b016){_0x5333af['on']('apply',(_0x160683,_0x582688)=>{this['_replaceImage'](_0x46b016,_0x582688['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5333af['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5333af['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4069df,_0x221eba,_0x5dcb5a){const _0x4a1e1a=this['_editor'],{width:_0xdd3394,height:_0x50b048}=_0x20834c(_0x221eba,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xe53579,imageSources:_0x205649}=_0xeab726(_0x221eba,_0xdd3394);_0x4a1e1a['model']['change'](_0x33fcc7=>{if('$graveyard'===_0x4069df['root']['rootName']){_0x4a1e1a['execute']('insertImage',{'imageType':_0x4069df['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4069df['getAttributes']()),'uploadcareImageId':_0x5dcb5a,'src':_0xe53579,'sources':_0x205649,'width':_0xdd3394,'height':_0x50b048}});const _0x3a92e0=_0x4069df['getChildren']();_0x4069df=_0x4a1e1a['model']['document']['selection']['getSelectedElement']();for(const _0x9f5e6e of _0x3a92e0)_0x33fcc7['append'](_0x33fcc7['cloneElement'](_0x9f5e6e),_0x4069df);}else _0x33fcc7['setSelection'](_0x4069df,'on'),_0x4a1e1a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4069df['getAttributes']()),'uploadcareImageId':_0x5dcb5a,'src':_0xe53579,'sources':_0x205649,'width':_0xdd3394,'height':_0x50b048},_0x4069df);_0x33fcc7['setSelection'](_0x4069df,'on');});}async['_getImageAsFile'](_0xe0a74c){const _0x480d7e=_0x359376['window'],_0x2d2e49=_0x359376['document']['location']['href'],_0x428e72=new _0x480d7e['URL'](_0xe0a74c['getAttribute']('src'),_0x2d2e49);if('data:'===_0x428e72['protocol']){const _0x5aaccd=_0x428e72['href']['split'](','),_0x3a383f=_0x5aaccd[0x0]['match'](/:(.*?);/)[0x1],_0x573046=_0x3a383f['split']('/')[0x1],_0x4a2463=_0x480d7e['atob'](_0x5aaccd[_0x5aaccd['length']-0x1]);let _0x4ff3a1=_0x4a2463['length'];const _0x5b3178=new _0x480d7e['Uint8Array'](_0x4ff3a1);for(;_0x4ff3a1--;)_0x5b3178[_0x4ff3a1]=_0x4a2463['charCodeAt'](_0x4ff3a1);return new _0x480d7e['File']([_0x5b3178],'image.'+_0x573046,{'type':_0x3a383f});}const _0x349652=_0x428e72['href']['split']('/'),_0x57911c=_0x349652[_0x349652['length']-0x1],_0x1646cc=_0x57911c['split']('.')[0x1];return _0x480d7e['fetch'](_0x428e72['href'])['then'](_0x13adb8=>_0x13adb8['clone']()['blob']())['then'](_0x1062ef=>new _0x480d7e['File']([_0x1062ef],_0x57911c,{'type':'image/'+_0x1646cc}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x8ff14f,_0x4e40f4){const _0x4d1595=_0x1442,_0x4656c2=_0x8ff14f();while(!![]){try{const _0x409c99=parseInt(_0x4d1595(0x1c4))/0x1+-parseInt(_0x4d1595(0x1bf))/0x2+parseInt(_0x4d1595(0x1bb))/0x3*(-parseInt(_0x4d1595(0x1c2))/0x4)+-parseInt(_0x4d1595(0x1c1))/0x5*(-parseInt(_0x4d1595(0x1c0))/0x6)+parseInt(_0x4d1595(0x1bd))/0x7+-parseInt(_0x4d1595(0x1b8))/0x8*(parseInt(_0x4d1595(0x1be))/0x9)+parseInt(_0x4d1595(0x1b7))/0xa;if(_0x409c99===_0x4e40f4)break;else _0x4656c2['push'](_0x4656c2['shift']());}catch(_0x4bb434){_0x4656c2['push'](_0x4656c2['shift']());}}}(_0xacbe,0x6edd4));function _0xacbe(){const _0x405747=['1778288bPethB','setTemplate','bindTemplate','141aKIHYe','image-edit','1284395yeBkBG','18lmsbfB','1376558ICGrDA','1026366OtNwel','20YdRSLb','23804hvjAQd','ck-uploadcare-theme','656184qjpSXb','uc-cloud-image-editor','imageSrc','uc-light','set','3427350hmNztc'];_0xacbe=function(){return _0x405747;};return _0xacbe();}import{View as _0x3b1877}from'ckeditor5/src/ui.js';function _0x1442(_0xe5ed6c,_0x3ef6c9){const _0xacbe1f=_0xacbe();return _0x1442=function(_0x144232,_0x34d5f0){_0x144232=_0x144232-0x1b7;let _0x1e5c6b=_0xacbe1f[_0x144232];return _0x1e5c6b;},_0x1442(_0xe5ed6c,_0x3ef6c9);}export class UploadcareImageEditFormEditingView extends _0x3b1877{constructor(_0x3beaae,_0x4a5c43){const _0x33bfe2=_0x1442;super(_0x3beaae);const _0x1f0e61=this[_0x33bfe2(0x1ba)];this[_0x33bfe2(0x1c8)](_0x33bfe2(0x1c6),''),this[_0x33bfe2(0x1b9)]({'tag':_0x33bfe2(0x1c5),'attributes':{..._0x4a5c43,'class':[_0x33bfe2(0x1c7),_0x33bfe2(0x1c3)],'ctx-name':_0x33bfe2(0x1bc),'cdn-url':_0x1f0e61['to'](_0x33bfe2(0x1c6))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x270e24}from'ckeditor5/src/icons.js';import{ButtonView as _0x50218d,IconView as _0x1abe1a,View as _0x688bc7}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x688bc7{constructor(_0x4995ad){super(_0x4995ad);const t=_0x4995ad['t'];this['set']('errorType',null);const _0x4241d8=new _0x50218d(_0x4995ad);_0x4241d8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4241d8['withText']=!0x0,_0x4241d8['class']='ck-button-action',_0x4241d8['on']('execute',()=>{this['fire']('retry');}),_0x4241d8['bind']('isVisible')['to'](this,'errorType',_0xafa077=>'NotFound'!==_0xafa077);const _0xa3108b=new _0x1abe1a();_0xa3108b['content']=_0x270e24,_0xa3108b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1bca3e=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':[_0xa3108b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1bca3e['to']('errorType',_0x13a415=>t('NotFound'!==_0x13a415?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4241d8]},{'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 _0x8c266f,View as _0x160639}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x160639{constructor(_0x11b0aa){super(_0x11b0aa);const t=_0x11b0aa['t'],_0x15d1b8=this['bindTemplate'],_0x5f21e1=new _0x8c266f();_0x5f21e1['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':[_0x5f21e1,{'text':_0x15d1b8['to']('imageUploadProgress',_0x1675f9=>t('Loading\x20image...')+'\x20('+(_0x1675f9||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 _0x29fd75=_0x435d;(function(_0x272560,_0xf4b343){const _0x41decb=_0x435d,_0x346f5d=_0x272560();while(!![]){try{const _0x2a5614=parseInt(_0x41decb(0x1d5))/0x1+parseInt(_0x41decb(0x1d4))/0x2*(-parseInt(_0x41decb(0x1fd))/0x3)+-parseInt(_0x41decb(0x1ee))/0x4*(-parseInt(_0x41decb(0x1f7))/0x5)+-parseInt(_0x41decb(0x1ea))/0x6+-parseInt(_0x41decb(0x1eb))/0x7+parseInt(_0x41decb(0x1d2))/0x8*(-parseInt(_0x41decb(0x1e6))/0x9)+parseInt(_0x41decb(0x1df))/0xa;if(_0x2a5614===_0xf4b343)break;else _0x346f5d['push'](_0x346f5d['shift']());}catch(_0x56baad){_0x346f5d['push'](_0x346f5d['shift']());}}}(_0x35cf,0x998cb));import{View as _0x54a8b5}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x2e4ff2}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x47d6ce}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xc91cbf}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2a3f01}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x435d(_0x24692a,_0x23ccf1){const _0x35cf86=_0x35cf();return _0x435d=function(_0x435d5b,_0xf50ab2){_0x435d5b=_0x435d5b-0x1cd;let _0x5bb31d=_0x35cf86[_0x435d5b];return _0x5bb31d;},_0x435d(_0x24692a,_0x23ccf1);}export class UploadcareImageEditFormView extends _0x2a3f01{[_0x29fd75(0x203)];[_0x29fd75(0x1f9)];[_0x29fd75(0x1f2)];[_0x29fd75(0x1e7)];[_0x29fd75(0x1de)];constructor(_0xfbc6eb,_0x44fd56,_0x1eec6d){const _0x6730de=_0x29fd75;super(_0xfbc6eb),this[_0x6730de(0x203)]=this[_0x6730de(0x1e0)](),this[_0x6730de(0x1f9)]=new _0x2e4ff2(_0xfbc6eb),this[_0x6730de(0x1f2)]=new _0x47d6ce(_0xfbc6eb),this[_0x6730de(0x1e7)]=new _0xc91cbf(_0xfbc6eb,_0x1eec6d),this[_0x6730de(0x1de)]=new _0x54a8b5(_0xfbc6eb),this[_0x6730de(0x1de)][_0x6730de(0x1d9)](this[_0x6730de(0x1e4)]()),this[_0x6730de(0x1f0)](_0x6730de(0x1f4),_0x44fd56),this[_0x6730de(0x1d9)]({'tag':_0x6730de(0x1dc),'attributes':{'class':['ck',_0x6730de(0x1d1),_0x6730de(0x1fc)],'tabindex':'-1'},'children':this[_0x6730de(0x203)]}),this[_0x6730de(0x1e5)](),this[_0x6730de(0x1da)](_0x6730de(0x1f3),()=>{const _0x25c3f4=_0x6730de;this[_0x25c3f4(0x1d6)](this[_0x25c3f4(0x1ce)],_0x3b7431=>{const _0x20fef5=_0x25c3f4;this[_0x20fef5(0x1d7)](_0x3b7431);});}),this['on'](_0x6730de(0x1f8),()=>{const _0x1410a2=_0x6730de;this[_0x1410a2(0x1e5)]();}),this[_0x6730de(0x1ec)]();}[_0x29fd75(0x1d3)](){const _0x2405c7=_0x29fd75;this[_0x2405c7(0x1ce)][_0x2405c7(0x1d3)]();}[_0x29fd75(0x1e5)](){const _0x493c90=_0x29fd75;switch(this[_0x493c90(0x203)][_0x493c90(0x1cd)](),this[_0x493c90(0x1f4)]){case _0x493c90(0x1d0):this[_0x493c90(0x203)][_0x493c90(0x201)](this[_0x493c90(0x1f9)]);break;case _0x493c90(0x1e9):this[_0x493c90(0x203)][_0x493c90(0x201)](this[_0x493c90(0x1f2)]);break;case _0x493c90(0x1cf):this[_0x493c90(0x203)][_0x493c90(0x1e1)]([this[_0x493c90(0x1e7)],this[_0x493c90(0x1de)]]);}}[_0x29fd75(0x1d6)](_0x126100,_0x5208db){const _0x3f93fa=_0x29fd75,_0x2211de=_0x3f93fa(0x1ed),_0x33d9da=_0x126100[_0x3f93fa(0x1fa)](_0x2211de);if(_0x33d9da)return _0x5208db(_0x33d9da);const _0x334fe7=new MutationObserver(_0x4d3838=>{const _0x4032e8=_0x3f93fa,_0x540eb1=_0x4d3838[_0x4032e8(0x1db)](_0x8c1839=>_0x8c1839[_0x4032e8(0x1f6)]===_0x126100&&_0x8c1839[_0x4032e8(0x202)][_0x4032e8(0x1e3)]>0x0&&_0x8c1839[_0x4032e8(0x202)][0x0][_0x4032e8(0x1fe)][_0x4032e8(0x1ef)]()===_0x2211de);_0x540eb1[_0x4032e8(0x1e3)]&&(_0x334fe7[_0x4032e8(0x1d8)](),_0x5208db(_0x540eb1[0x0][_0x4032e8(0x202)][0x0]));});_0x334fe7[_0x3f93fa(0x1e2)](_0x126100,{'childList':!0x0,'subtree':!0x0});}[_0x29fd75(0x1d7)](_0x5ad9de){const _0x376cd3=_0x29fd75;_0x5ad9de[_0x376cd3(0x1ff)](_0x376cd3(0x1f5),_0x5a3393=>{const _0x5c282e=_0x376cd3;this[_0x5c282e(0x1f1)](_0x5c282e(0x1f5),{'imageSrc':_0x5a3393[_0x5c282e(0x200)][_0x5c282e(0x1e8)]});}),_0x5ad9de[_0x376cd3(0x1ff)](_0x376cd3(0x1dd),()=>{const _0x503489=_0x376cd3;this[_0x503489(0x1f1)](_0x503489(0x1dd));});}[_0x29fd75(0x1ec)](){const _0x14132d=_0x29fd75;this[_0x14132d(0x1f2)]['on'](_0x14132d(0x1fb),()=>{const _0x42fa5d=_0x14132d;this[_0x42fa5d(0x1f1)](_0x42fa5d(0x1fb));});}}function _0x35cf(){const _0x39e77c=['once','filter','div','cancel','_focusableView','22424980tIHNar','createCollection','addMany','observe','length','getFocusableElement','_setView','54OlVJLW','_editingView','cdnUrl','error','209304BfAqNP','6933633huaFOo','_addErrorViewListeners','uc-cloud-image-editor','4CqKDYv','toLowerCase','set','fire','_errorView','render','status','apply','target','456995SJdNuK','change:status','_loadingView','querySelector','retry','ck-uploadcare-form','3255849DaVysq','nodeName','addEventListener','detail','add','addedNodes','_items','clear','element','ready','uploading','ck-reset_all-excluded','763688nPcGAU','focus','2ouLDwI','978494ZttcNL','_waitForImageEditorComponent','_addUploadcareImageEditorListeners','disconnect','setTemplate'];_0x35cf=function(){return _0x39e77c;};return _0x35cf();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x175e80=_0x37e8;(function(_0x5312a6,_0x3bc96a){const _0xb6d2a1=_0x37e8,_0x4bbd5b=_0x5312a6();while(!![]){try{const _0x5bfaa0=-parseInt(_0xb6d2a1(0xea))/0x1+parseInt(_0xb6d2a1(0xee))/0x2+parseInt(_0xb6d2a1(0xe5))/0x3+parseInt(_0xb6d2a1(0xfb))/0x4+parseInt(_0xb6d2a1(0xf9))/0x5+-parseInt(_0xb6d2a1(0xec))/0x6*(parseInt(_0xb6d2a1(0xf8))/0x7)+parseInt(_0xb6d2a1(0xdf))/0x8;if(_0x5bfaa0===_0x3bc96a)break;else _0x4bbd5b['push'](_0x4bbd5b['shift']());}catch(_0x3c9e94){_0x4bbd5b['push'](_0x4bbd5b['shift']());}}}(_0xb2d3,0x82adf));import{Command as _0x19d6a5}from'ckeditor5/src/core.js';import{Dialog as _0x1a0b95}from'ckeditor5/src/ui.js';function _0x37e8(_0x419870,_0x2efe04){const _0xb2d3e6=_0xb2d3();return _0x37e8=function(_0x37e899,_0x2c1c20){_0x37e899=_0x37e899-0xde;let _0x467080=_0xb2d3e6[_0x37e899];return _0x467080;},_0x37e8(_0x419870,_0x2efe04);}import{UploadcareImageEditController as _0x449e70}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x40642c}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x19d6a5{[_0x175e80(0xf3)];static get[_0x175e80(0xfa)](){return[_0x1a0b95];}[_0x175e80(0xf5)];constructor(_0x2cc2ea){const _0x1d4953=_0x175e80;super(_0x2cc2ea),this[_0x1d4953(0xf3)]=void 0x0,this[_0x1d4953(0xf5)]=_0x40642c(_0x2cc2ea[_0x1d4953(0xf6)][_0x1d4953(0xe4)](_0x1d4953(0xe2))||[]),this[_0x1d4953(0xef)]({'isActive':!0x1});}[_0x175e80(0xed)](){const _0x5749f1=_0x175e80,_0x4560c9=this[_0x5749f1(0xf7)][_0x5749f1(0xeb)][_0x5749f1(0xe7)][_0x5749f1(0xe1)][_0x5749f1(0xf2)]();this[_0x5749f1(0xde)]=this[_0x5749f1(0xf5)](_0x4560c9);}[_0x175e80(0xe3)](){const _0x2c5c56=_0x175e80;this[_0x2c5c56(0xf3)]&&(this[_0x2c5c56(0xe9)](_0x2c5c56(0xf1)),this[_0x2c5c56(0xf3)]=void 0x0);const _0x4d8eed=this[_0x2c5c56(0xf7)][_0x2c5c56(0xeb)][_0x2c5c56(0xe7)][_0x2c5c56(0xe1)][_0x2c5c56(0xf2)]();_0x4d8eed&&(_0x4d8eed['is'](_0x2c5c56(0xf4),_0x2c5c56(0xe0))||_0x4d8eed['is'](_0x2c5c56(0xf4),_0x2c5c56(0xe8)))&&(this[_0x2c5c56(0xf3)]=new _0x449e70(this[_0x2c5c56(0xf7)],this[_0x2c5c56(0xf7)][_0x2c5c56(0xe6)][_0x2c5c56(0xe4)](_0x1a0b95),_0x4d8eed),this[_0x2c5c56(0xf0)](_0x2c5c56(0xf1))['to'](this[_0x2c5c56(0xf3)],_0x2c5c56(0xf1)));}}function _0xb2d3(){const _0xb3224e=['imageInline','unbind','110121qUKuHC','model','6bYglnu','refresh','43640bGQBhE','set','bind','isActive','getSelectedElement','imageEditController','element','_isEditable','config','editor','230587gMDACU','137230ApzNDJ','requires','536356OgAZZy','isEnabled','397912BkLAvi','imageBlock','selection','uploadcare.allowExternalImagesEditing','execute','get','1335693qdGSQm','plugins','document'];_0xb2d3=function(){return _0xb3224e;};return _0xb2d3();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1991(_0x5872a4,_0x2f5f6e){const _0x11f866=_0x11f8();return _0x1991=function(_0x199197,_0x243a94){_0x199197=_0x199197-0x157;let _0x5b6a20=_0x11f866[_0x199197];return _0x5b6a20;},_0x1991(_0x5872a4,_0x2f5f6e);}const _0x2481f8=_0x1991;(function(_0x69870e,_0x3d01d3){const _0x1b31d0=_0x1991,_0x1c5d4f=_0x69870e();while(!![]){try{const _0x1a2c84=parseInt(_0x1b31d0(0x15c))/0x1+-parseInt(_0x1b31d0(0x16a))/0x2*(-parseInt(_0x1b31d0(0x157))/0x3)+-parseInt(_0x1b31d0(0x164))/0x4*(parseInt(_0x1b31d0(0x15b))/0x5)+parseInt(_0x1b31d0(0x167))/0x6*(-parseInt(_0x1b31d0(0x162))/0x7)+parseInt(_0x1b31d0(0x168))/0x8+parseInt(_0x1b31d0(0x169))/0x9+-parseInt(_0x1b31d0(0x16d))/0xa*(-parseInt(_0x1b31d0(0x16c))/0xb);if(_0x1a2c84===_0x3d01d3)break;else _0x1c5d4f['push'](_0x1c5d4f['shift']());}catch(_0x3b8e3a){_0x1c5d4f['push'](_0x1c5d4f['shift']());}}}(_0x11f8,0xd6122));function _0x11f8(){const _0x36d787=['add','10GZFPbJ','74031IbLaKX','ImageUtils','uploadcareImageEdit','uploadcareImageReplace','commands','requires','7BoeVnC','isPremiumPlugin','1826012mGYsGM','isOfficialPlugin','pluginName','10121046Emmpcm','1142312XWSkUH','7675038IuoyjI','189726blPNGb','ImageEditing','16346ZLunwW','15560ugSaiF','3wgiADr','UploadcareImageEditEditing','init'];_0x11f8=function(){return _0x36d787;};return _0x11f8();}import{Plugin as _0x2ac9d1}from'ckeditor5/src/core.js';import{Notification as _0x49f625}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0xaa57df}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x36ccc2}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x253941}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x2ac9d1{static get[_0x2481f8(0x166)](){const _0x124de1=_0x2481f8;return _0x124de1(0x158);}static get[_0x2481f8(0x161)](){const _0x3b2e6b=_0x2481f8;return[_0x253941,_0x49f625,_0x3b2e6b(0x15d),_0x3b2e6b(0x16b)];}static get[_0x2481f8(0x165)](){return!0x0;}static get[_0x2481f8(0x163)](){return!0x0;}[_0x2481f8(0x159)](){const _0x416afd=_0x2481f8,{editor:_0x9eda67}=this;_0x9eda67[_0x416afd(0x160)][_0x416afd(0x15a)](_0x416afd(0x15e),new _0xaa57df(_0x9eda67)),_0x9eda67[_0x416afd(0x160)][_0x416afd(0x15a)](_0x416afd(0x15f),new _0x36ccc2(_0x9eda67));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5a32ef}from'ckeditor5/src/core.js';import{ButtonView as _0x214b7c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5af45f}from'ckeditor5/src/icons.js';import{createElement as _0x67fa8b}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 _0x5a32ef{['_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 _0x201ab7=this['editor'];_0x201ab7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5a5484=>{const _0xef28c8=_0x201ab7['commands']['get']('uploadcareImageEdit'),_0x19cbe3=new _0x214b7c(_0x5a5484),t=_0x5a5484['t'];return _0x19cbe3['set']({'icon':_0x5af45f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x19cbe3['bind']('isEnabled')['to'](_0xef28c8),_0x19cbe3['bind']('isOn')['to'](_0xef28c8,'isActive'),this['listenTo'](_0x19cbe3,'execute',()=>{_0x201ab7['execute']('uploadcareImageEdit'),_0x201ab7['editing']['view']['focus']();}),_0x19cbe3;}),this['_initConfig']();}['_initConfig'](){const _0x4d1152=_0x67fa8b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4d1152),this['listenTo'](this['editor'],'destroy',()=>{_0x4d1152['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x221e(_0x5b191e,_0xf537d9){var _0x5e0733=_0x5e07();return _0x221e=function(_0x221e7e,_0x46f81f){_0x221e7e=_0x221e7e-0x82;var _0x205756=_0x5e0733[_0x221e7e];return _0x205756;},_0x221e(_0x5b191e,_0xf537d9);}var _0xeb500c=_0x221e;(function(_0x68be30,_0x5759cb){var _0x573ab4=_0x221e,_0x37b5a3=_0x68be30();while(!![]){try{var _0x980bff=-parseInt(_0x573ab4(0x8f))/0x1*(parseInt(_0x573ab4(0x87))/0x2)+-parseInt(_0x573ab4(0x85))/0x3*(-parseInt(_0x573ab4(0x8b))/0x4)+parseInt(_0x573ab4(0x89))/0x5+parseInt(_0x573ab4(0x93))/0x6+-parseInt(_0x573ab4(0x90))/0x7+parseInt(_0x573ab4(0x8d))/0x8*(parseInt(_0x573ab4(0x84))/0x9)+-parseInt(_0x573ab4(0x92))/0xa;if(_0x980bff===_0x5759cb)break;else _0x37b5a3['push'](_0x37b5a3['shift']());}catch(_0x340f15){_0x37b5a3['push'](_0x37b5a3['shift']());}}}(_0x5e07,0xa66d1));import{FocusTracker as _0x31ae7f}from'ckeditor5/src/utils.js';import{View as _0x3d7fef,FocusCycler as _0x5bc955}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x3d7fef{[_0xeb500c(0x94)];[_0xeb500c(0x8a)];constructor(_0x23eb25){var _0x474497=_0xeb500c;super(_0x23eb25),this[_0x474497(0x94)]=new _0x31ae7f(),this[_0x474497(0x8a)]=new _0x5bc955({'focusables':this[_0x474497(0x88)](),'focusTracker':this[_0x474497(0x94)]});}[_0xeb500c(0x91)](){var _0x34cc2d=_0xeb500c;return{'tag':_0x34cc2d(0x8e),'attributes':{'aria-hidden':_0x34cc2d(0x82),'tabindex':'0'},'on':{'focus':this[_0x34cc2d(0x83)]['to'](()=>{var _0x2e3983=_0x34cc2d;this[_0x2e3983(0x8a)][_0x2e3983(0x8c)](_0x2e3983(0x86));})}};}}function _0x5e07(){var _0x51a4dd=['5223580CjcRlP','focusCycler','1292kIApfo','fire','18608ifvZCS','div','1vpXyAt','6467748tPGwMG','getFocusableElement','25916160tBZjYx','7026102rnSPZa','focusTracker','true','bindTemplate','4887ZnnOmU','8061vCRKCH','forwardCycle','298782KsoHKC','createCollection'];_0x5e07=function(){return _0x51a4dd;};return _0x5e07();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x3817e7,_0x9ac3f6){const _0x1fbe4a=_0x5167,_0x8b2e4d=_0x3817e7();while(!![]){try{const _0x190c8f=parseInt(_0x1fbe4a(0xf9))/0x1*(-parseInt(_0x1fbe4a(0x102))/0x2)+parseInt(_0x1fbe4a(0xf0))/0x3*(parseInt(_0x1fbe4a(0xe4))/0x4)+-parseInt(_0x1fbe4a(0xff))/0x5+parseInt(_0x1fbe4a(0x100))/0x6*(-parseInt(_0x1fbe4a(0x103))/0x7)+parseInt(_0x1fbe4a(0xee))/0x8+parseInt(_0x1fbe4a(0xfe))/0x9+-parseInt(_0x1fbe4a(0xf1))/0xa*(-parseInt(_0x1fbe4a(0x10a))/0xb);if(_0x190c8f===_0x9ac3f6)break;else _0x8b2e4d['push'](_0x8b2e4d['shift']());}catch(_0x4fab0a){_0x8b2e4d['push'](_0x8b2e4d['shift']());}}}(_0x5831,0xc3c4d));import{global as _0x4874f6,DomEmitterMixin as _0x40dbb5}from'ckeditor5/src/utils.js';function _0x5167(_0x5b5e2f,_0x34d9ba){const _0x583122=_0x5831();return _0x5167=function(_0x516754,_0xd88d20){_0x516754=_0x516754-0xe4;let _0x35d3fb=_0x583122[_0x516754];return _0x35d3fb;},_0x5167(_0x5b5e2f,_0x34d9ba);}export function createEditabilityChecker(_0x5ce528){const _0x6d5556=_0x5167,_0x50281c=z(_0x5ce528);return _0x8967bf=>!(!_0x8967bf||!_0x8967bf['is'](_0x6d5556(0x116),_0x6d5556(0xe7))&&!_0x8967bf['is'](_0x6d5556(0x116),_0x6d5556(0x112)))&&(!!_0x8967bf[_0x6d5556(0x104)](_0x6d5556(0xf2))||!!_0x8967bf[_0x6d5556(0x104)](_0x6d5556(0xf7))&&_0x50281c(_0x8967bf[_0x6d5556(0x105)](_0x6d5556(0xf7))));}function _0x5831(){const _0x48b6af=['imageBlock','ImageUtils','editing','replace','findViewImgElement','filter','removeClass','4244976pnfGwB','image/webp','57GBOfsL','10wkImgz','uploadcareImageId','x/\x20','px)\x20100vw,\x20','addClass','get','src','origin','7NAxkxd','listenTo','width','view','location','6826113oBeBnw','1784255QAavaU','6enFuIB','change','426806ajcMxO','167153bMVNMd','hasAttribute','getAttribute','aspect-ratio','domConverter','/-/resize/','toViewElement','2347477cZsdUD','stopListening','some','load','map','setStyle','isArray','window','imageInline','mapper','match','baseURI','element','function','plugins','(max-width:\x20','image-processing','viewToDom','join','document','247144VbgbjZ','removeStyle','height'];_0x5831=function(){return _0x48b6af;};return _0x5831();}export function getImageUrls(_0x5a6087,_0x37f11e){const _0x4a3e3c=_0x5167,_0x248a0c=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x4a3e3c(0xec)](_0x23ae7a=>_0x23ae7a<=_0x37f11e)[_0x4a3e3c(0x10e)](_0x299822=>_0x5a6087[_0x4a3e3c(0xea)](/\/$/,'')+_0x4a3e3c(0x108)+_0x299822+_0x4a3e3c(0xf3)+_0x299822+'w');return{'imageFallbackUrl':_0x5a6087,'imageSources':[{'srcset':_0x248a0c[_0x4a3e3c(0x11c)](',\x20'),'sizes':_0x4a3e3c(0x119)+_0x37f11e+_0x4a3e3c(0xf4)+_0x37f11e+'px','type':_0x4a3e3c(0xef)}]};}export function getImageDimension(_0x2aef1a,_0x26a48d,_0x15037e){const _0x121dff=_0x5167,_0x32ca60=_0x2aef1a[_0x121dff(0x114)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x32ca60?parseInt(_0x32ca60[0x1],0xa):_0x26a48d,'height':_0x32ca60?parseInt(_0x32ca60[0x2],0xa):_0x15037e};}export function showImageProcessingIndicator(_0x5690e6,_0x55ac0f){const _0x57789d=_0x5167,_0x421eaf=new(_0x40dbb5())(),_0x22dc77=_0x5690e6[_0x57789d(0x118)][_0x57789d(0xf6)](_0x57789d(0xe8)),_0x653023=_0x5690e6[_0x57789d(0xe9)][_0x57789d(0x113)][_0x57789d(0x109)](_0x55ac0f),_0x397c6e=_0x22dc77[_0x57789d(0xeb)](_0x653023),_0x27b159=_0x5690e6[_0x57789d(0xe9)][_0x57789d(0xfc)][_0x57789d(0x107)][_0x57789d(0x11b)](_0x397c6e),_0x4a1f44=_0x55ac0f[_0x57789d(0x105)](_0x57789d(0xfb)),_0xbd936b=_0x55ac0f[_0x57789d(0x105)](_0x57789d(0xe6)),_0x394b40=_0x57789d(0x11a);_0x5690e6[_0x57789d(0xe9)][_0x57789d(0xfc)][_0x57789d(0x101)](_0x3549e6=>{const _0x475ecc=_0x57789d;_0x3549e6[_0x475ecc(0xf5)](_0x394b40,_0x653023),_0x3549e6[_0x475ecc(0x10f)](_0x475ecc(0x106),_0x4a1f44+'/'+_0xbd936b,_0x397c6e);}),_0x421eaf[_0x57789d(0xfa)](_0x27b159,_0x57789d(0x10d),()=>{const _0x34a209=_0x57789d;_0x421eaf[_0x34a209(0x10b)](_0x27b159,_0x34a209(0x10d)),_0x5690e6[_0x34a209(0xe9)][_0x34a209(0xfc)][_0x34a209(0x101)](_0x2091cc=>{const _0x255c0e=_0x34a209;_0x2091cc[_0x255c0e(0xed)](_0x394b40,_0x653023),_0x2091cc[_0x255c0e(0xe5)](_0x255c0e(0x106),_0x397c6e);});});}function z(_0x3e76f4){const _0x3c0903=_0x5167;if(Array[_0x3c0903(0x110)](_0x3e76f4)){const _0xc81118=_0x3e76f4[_0x3c0903(0x10e)](z);return _0xf685fa=>_0xc81118[_0x3c0903(0x10c)](_0x4e971d=>_0x4e971d(_0xf685fa));}if(_0x3c0903(0xf8)==_0x3e76f4){const _0x221afa=_0x4874f6[_0x3c0903(0x111)][_0x3c0903(0xfd)][_0x3c0903(0xf8)];return _0x2ef36a=>new URL(_0x2ef36a,_0x4874f6[_0x3c0903(0x11d)][_0x3c0903(0x115)])[_0x3c0903(0xf8)]==_0x221afa;}return _0x3c0903(0x117)==typeof _0x3e76f4?_0x3e76f4:_0x3e76f4 instanceof RegExp?_0x50e055=>!(!_0x50e055[_0x3c0903(0x114)](_0x3e76f4)&&!_0x50e055[_0x3c0903(0xea)](/^https?:\/\//,'')[_0x3c0903(0x114)](_0x3e76f4)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x39a847,_0x5329fe){var _0x68c331=_0x57dc,_0x383987=_0x39a847();while(!![]){try{var _0x4b4370=parseInt(_0x68c331(0x1a4))/0x1*(-parseInt(_0x68c331(0x1a2))/0x2)+parseInt(_0x68c331(0x1a6))/0x3+-parseInt(_0x68c331(0x19f))/0x4+parseInt(_0x68c331(0x1a5))/0x5+parseInt(_0x68c331(0x1a7))/0x6+parseInt(_0x68c331(0x1a3))/0x7+parseInt(_0x68c331(0x1a1))/0x8*(-parseInt(_0x68c331(0x19e))/0x9);if(_0x4b4370===_0x5329fe)break;else _0x383987['push'](_0x383987['shift']());}catch(_0x25cdcb){_0x383987['push'](_0x383987['shift']());}}}(_0x1438,0xf14d5));function _0x57dc(_0x5d5870,_0x1e0bd1){var _0x1438de=_0x1438();return _0x57dc=function(_0x57dcee,_0x3e3a20){_0x57dcee=_0x57dcee-0x19d;var _0xd3ec9=_0x1438de[_0x57dcee];return _0xd3ec9;},_0x57dc(_0x5d5870,_0x1e0bd1);}import{getAncestors as _0x461998}from'ckeditor5/src/utils.js';function _0x1438(){var _0x388097=['target','192168uIrJjD','484804JztcuJ','includes','280STiWBe','380882qMhIke','1463987YBkeEg','10LAiRmU','8658895vKGMtX','290169XEgLIO','10341966oTTfBg'];_0x1438=function(){return _0x388097;};return _0x1438();}export function isAncestor(_0x153190,_0x214ab8){var _0x1b90a5=_0x57dc;return _0x461998(_0x153190[_0x1b90a5(0x19d)])[_0x1b90a5(0x1a0)](_0x214ab8);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x429e51=_0x271c;(function(_0x3819f9,_0x3b8d30){var _0x2d261b=_0x271c,_0x4f760b=_0x3819f9();while(!![]){try{var _0x308f16=parseInt(_0x2d261b(0xdd))/0x1*(parseInt(_0x2d261b(0xdb))/0x2)+-parseInt(_0x2d261b(0xd2))/0x3*(-parseInt(_0x2d261b(0xd8))/0x4)+parseInt(_0x2d261b(0xdc))/0x5*(parseInt(_0x2d261b(0xd7))/0x6)+-parseInt(_0x2d261b(0xd5))/0x7*(-parseInt(_0x2d261b(0xdf))/0x8)+parseInt(_0x2d261b(0xd3))/0x9+parseInt(_0x2d261b(0xde))/0xa*(parseInt(_0x2d261b(0xda))/0xb)+-parseInt(_0x2d261b(0xd9))/0xc;if(_0x308f16===_0x3b8d30)break;else _0x4f760b['push'](_0x4f760b['shift']());}catch(_0x1cb5b3){_0x4f760b['push'](_0x4f760b['shift']());}}}(_0x1850,0x3c3a4));import{uploadFile as _0x3bdcda,info as _0x47f02f}from'@uploadcare/upload-client';export class UploadUtils{static[_0x429e51(0xd6)]({file:_0x265e18,..._0x35d9bc}){return _0x3bdcda(_0x265e18,_0x35d9bc);}static[_0x429e51(0xd4)](_0x30b288,_0x595521){return _0x47f02f(_0x30b288,_0x595521);}}function _0x271c(_0x326727,_0x514ce1){var _0x1850a0=_0x1850();return _0x271c=function(_0x271c68,_0xc9c29a){_0x271c68=_0x271c68-0xd2;var _0x42264e=_0x1850a0[_0x271c68];return _0x42264e;},_0x271c(_0x326727,_0x514ce1);}function _0x1850(){var _0x3af43f=['getInfo','7POVhBw','upload','730854ncOofL','1375984ntSYUB','14485536nmDSKY','209XUBRip','193330zYnLAx','10hQweUJ','3GWIjhA','47810fNjZJX','995816MeaNZG','3OqtwRH','3248055qKtdFQ'];_0x1850=function(){return _0x3af43f;};return _0x1850();}
|