@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250301.0 → 0.0.0-nightly-20250302.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 +8 -8
- 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/uploadcareimageedit/uploadcareimagereplacecommand.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 _0x51d21a,ObservableMixin as _0x7490f2}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4c5688}from'ckeditor5/src/ui.js';import _0x26d18b from'./uploadcareimageeditformview.js';import _0x26a553 from'../../utils/uploadutils.js';import _0x56783a from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x1e21da,getImageDimension as _0x3ec5f9}from'../../utils/editingutils.js';import{isAncestor as _0x2200e0}from'../../utils/isancestor.js';export default class O extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x7490f2(){constructor(_0x10fcba,_0x98b843,_0x2aa844){super(),this['_editor']=_0x10fcba,this['_dialog']=_0x98b843,this['_imageElement']=_0x2aa844,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 _0x410c0b=this['_imageElement'],_0x1620f6=_0x410c0b['getAttribute']('uploadcareImageId'),_0x4516e1=_0x410c0b['getAttribute']('src');if(_0x1620f6)await this['_loadImageInfo'](_0x1620f6,_0x4516e1);else{if(this['_imageCache']['has'](_0x4516e1)){const _0x4424c0=this['_imageCache']['get'](_0x4516e1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4424c0['url'],this['imageDimension']=_0x4424c0['dimension'],this['imageId']=_0x4424c0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x18c2aa}=this['_editor'],t=_0x18c2aa['t'],_0x2904f5=new _0x26d18b(_0x18c2aa,this['imageStatus'],this['_attributes']);_0x2904f5['bind']('status')['to'](this,'imageStatus'),_0x2904f5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2904f5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2904f5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2904f5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x56783a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2904f5,'position':_0x4c5688['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2904f5['focus']();},'onHide':()=>{_0x2904f5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x11fb1e=>!_0x2200e0(_0x11fb1e,_0x2904f5['element'])}});}['_loadImageInfo'](_0x7bd6a,_0x551604){return _0x26a553['getInfo'](_0x7bd6a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x45392a=>{const {width:_0x14fe94,height:_0xd0268b}=_0x45392a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x551604,this['imageDimension']={'width':_0x14fe94,'height':_0xd0268b},this['imageId']=_0x7bd6a;})['catch'](_0x490f5a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x490f5a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x34399d,_0x5c145d){return this['_getImageAsFile'](_0x34399d)['then'](_0x4c5f6a=>_0x26a553['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5c145d['signal'],'file':_0x4c5f6a,'onProgress':_0x31547d=>{_0x31547d&&_0x31547d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x31547d['value']));}}))['then'](_0x167a4c=>{const {width:_0x281b61,height:_0x37e8b3}=_0x167a4c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x167a4c['cdnUrl'],this['imageDimension']={'width':_0x281b61,'height':_0x37e8b3},this['imageId']=_0x167a4c['uuid'],this['imageUploadProgress']=null;const _0x1314fd=_0x34399d['getAttribute']('src');this['_imageCache']['set'](_0x1314fd,{'id':_0x167a4c['uuid'],'url':_0x167a4c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x119d33=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x119d33['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x38c994,_0x57e546){_0x38c994['on']('apply',(_0xf073d,_0x157a47)=>{this['_replaceImage'](_0x57e546,_0x157a47['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x38c994['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x38c994['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x312680,_0x178ebf,_0x563e64){const _0x3c6f27=this['_editor'],{width:_0x1249b,height:_0x37ab01}=_0x3ec5f9(_0x178ebf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x40664f,imageSources:_0xbdffe3}=_0x1e21da(_0x178ebf,_0x1249b);_0x3c6f27['model']['change'](_0xb6606e=>{if('$graveyard'===_0x312680['root']['rootName']){_0x3c6f27['execute']('insertImage',{'imageType':_0x312680['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x312680['getAttributes']()),'uploadcareImageId':_0x563e64,'src':_0x40664f,'sources':_0xbdffe3,'width':_0x1249b,'height':_0x37ab01}});const _0x319dce=_0x312680['getChildren']();_0x312680=_0x3c6f27['model']['document']['selection']['getSelectedElement']();for(const _0x500583 of _0x319dce)_0xb6606e['append'](_0xb6606e['cloneElement'](_0x500583),_0x312680);}else _0xb6606e['setSelection'](_0x312680,'on'),_0x3c6f27['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x312680['getAttributes']()),'uploadcareImageId':_0x563e64,'src':_0x40664f,'sources':_0xbdffe3,'width':_0x1249b,'height':_0x37ab01},_0x312680);_0xb6606e['setSelection'](_0x312680,'on');});}async['_getImageAsFile'](_0x57349d){const _0x3f9a40=_0x51d21a['window'],_0x46eabd=_0x51d21a['document']['location']['href'],_0x524e09=new _0x3f9a40['URL'](_0x57349d['getAttribute']('src'),_0x46eabd);if('data:'===_0x524e09['protocol']){const _0x395200=_0x524e09['href']['split'](','),_0x5c0688=_0x395200[0x0]['match'](/:(.*?);/)[0x1],_0x4c837e=_0x5c0688['split']('/')[0x1],_0x4e483c=_0x3f9a40['atob'](_0x395200[_0x395200['length']-0x1]);let _0x1f448d=_0x4e483c['length'];const _0x3c002d=new _0x3f9a40['Uint8Array'](_0x1f448d);for(;_0x1f448d--;)_0x3c002d[_0x1f448d]=_0x4e483c['charCodeAt'](_0x1f448d);return new _0x3f9a40['File']([_0x3c002d],'image.'+_0x4c837e,{'type':_0x5c0688});}const _0x2576ba=_0x524e09['href']['split']('/'),_0x5b26ed=_0x2576ba[_0x2576ba['length']-0x1],_0x54de59=_0x5b26ed['split']('.')[0x1];return _0x3f9a40['fetch'](_0x524e09['href'])['then'](_0x5e1ee1=>_0x5e1ee1['clone']()['blob']())['then'](_0x2d1992=>new _0x3f9a40['File']([_0x2d1992],_0x5b26ed,{'type':'image/'+_0x54de59}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x40461b,_0x1e0bfa){const _0x196996=_0x27dd,_0x17b58b=_0x40461b();while(!![]){try{const _0x2d74c6=parseInt(_0x196996(0x185))/0x1*(-parseInt(_0x196996(0x186))/0x2)+parseInt(_0x196996(0x188))/0x3*(parseInt(_0x196996(0x182))/0x4)+parseInt(_0x196996(0x18e))/0x5*(-parseInt(_0x196996(0x191))/0x6)+-parseInt(_0x196996(0x18d))/0x7+-parseInt(_0x196996(0x18f))/0x8*(-parseInt(_0x196996(0x184))/0x9)+parseInt(_0x196996(0x190))/0xa+parseInt(_0x196996(0x193))/0xb;if(_0x2d74c6===_0x1e0bfa)break;else _0x17b58b['push'](_0x17b58b['shift']());}catch(_0xaef5f){_0x17b58b['push'](_0x17b58b['shift']());}}}(_0x5a3c,0xbe8cb));import{View as _0x391f09}from'ckeditor5/src/ui.js';export default class tt extends _0x391f09{constructor(_0x2c421c,_0x3b906e){const _0x25483f=_0x27dd;super(_0x2c421c);const _0x50da0c=this[_0x25483f(0x18a)];this[_0x25483f(0x181)](_0x25483f(0x189),''),this[_0x25483f(0x187)]({'tag':_0x25483f(0x192),'attributes':{..._0x3b906e,'class':[_0x25483f(0x18b),_0x25483f(0x18c)],'ctx-name':_0x25483f(0x183),'cdn-url':_0x50da0c['to'](_0x25483f(0x189))}});}}function _0x27dd(_0x3dce3f,_0x4243da){const _0x5a3c4f=_0x5a3c();return _0x27dd=function(_0x27ddc3,_0x1f34b8){_0x27ddc3=_0x27ddc3-0x181;let _0x2c1c53=_0x5a3c4f[_0x27ddc3];return _0x2c1c53;},_0x27dd(_0x3dce3f,_0x4243da);}function _0x5a3c(){const _0x282538=['7368YeWAff','554500YsJhIS','8563770LMqugt','uc-cloud-image-editor','28350003LxgCtC','set','16tuxbIx','image-edit','13707KLDwYp','16968ePtKtn','160iitNsT','setTemplate','448059FtGsSM','imageSrc','bindTemplate','uc-light','ck-uploadcare-theme','7473144RrWNkl','5teWJSJ'];_0x5a3c=function(){return _0x282538;};return _0x5a3c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x3be392,IconView as et,View as _0x5086f7}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x5086f7{constructor(_0x76c0cc){super(_0x76c0cc);const t=_0x76c0cc['t'];this['set']('errorType',null);const _0x150d98=new _0x3be392(_0x76c0cc);_0x150d98['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x150d98['withText']=!0x0,_0x150d98['class']='ck-button-action',_0x150d98['on']('execute',()=>{this['fire']('retry');}),_0x150d98['bind']('isVisible')['to'](this,'errorType',_0xd8b394=>'NotFound'!==_0xd8b394);const _0x545e42=new et();_0x545e42['content']=at,_0x545e42['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x31d72d=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':[_0x545e42,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x31d72d['to']('errorType',_0x306163=>t('NotFound'!==_0x306163?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x150d98]},{'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 _0x5640e6,View as _0x31fe42}from'ckeditor5/src/ui.js';export default class ta extends _0x31fe42{constructor(_0x474c54){super(_0x474c54);const t=_0x474c54['t'],_0x342029=this['bindTemplate'],_0x3cf365=new _0x5640e6();_0x3cf365['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':[_0x3cf365,{'text':_0x342029['to']('imageUploadProgress',_0x3fe904=>t('Loading\x20image...')+'\x20('+(_0x3fe904||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x59e5(_0x2094c7,_0x17f3db){const _0x45b609=_0x45b6();return _0x59e5=function(_0x59e519,_0x1f69f9){_0x59e519=_0x59e519-0xd7;let _0x1994f7=_0x45b609[_0x59e519];return _0x1994f7;},_0x59e5(_0x2094c7,_0x17f3db);}const _0x3ae4e0=_0x59e5;(function(_0x25baab,_0x2adf1f){const _0x4523df=_0x59e5,_0x3086e1=_0x25baab();while(!![]){try{const _0xa50a89=-parseInt(_0x4523df(0x101))/0x1+-parseInt(_0x4523df(0x108))/0x2*(-parseInt(_0x4523df(0x109))/0x3)+-parseInt(_0x4523df(0x107))/0x4+parseInt(_0x4523df(0x10d))/0x5+-parseInt(_0x4523df(0xf4))/0x6+parseInt(_0x4523df(0xe0))/0x7*(parseInt(_0x4523df(0xe2))/0x8)+-parseInt(_0x4523df(0xef))/0x9*(-parseInt(_0x4523df(0xda))/0xa);if(_0xa50a89===_0x2adf1f)break;else _0x3086e1['push'](_0x3086e1['shift']());}catch(_0x1368a4){_0x3086e1['push'](_0x3086e1['shift']());}}}(_0x45b6,0x1e7e8));import{View as _0x286b7f}from'ckeditor5/src/ui.js';function _0x45b6(){const _0x1698db=['filter','_waitForImageEditorComponent','observe','disconnect','ck-reset_all-excluded','detail','_editingView','apply','focus','_errorView','getFocusableElement','error','2188179GObRcg','_addErrorViewListeners','element','toLowerCase','status','955194lfFxva','createCollection','querySelector','once','cancel','change:status','_items','uploading','retry','_addUploadcareImageEditorListeners','addEventListener','cdnUrl','clear','178424luJglb','target','fire','ck-uploadcare-form','div','ready','462888FjWiIK','333746oSFXGq','3YEAPpM','addedNodes','addMany','_setView','920fUnwGa','_loadingView','render','nodeName','10gatdPz','length','_focusableView','setTemplate','add','set','7pBoeZK','uc-cloud-image-editor','1344488GFriTs'];_0x45b6=function(){return _0x1698db;};return _0x45b6();}import _0x5ab519 from'./uploadcareimageeditformloadingview.js';import _0x235a59 from'./uploadcareimageeditformerrorview.js';import _0x2c1a91 from'./uploadcareimageeditformeditingview.js';import _0x36f25a from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x36f25a{constructor(_0x10839c,_0x372797,_0x1a4ec6){const _0x516748=_0x59e5;super(_0x10839c),this[_0x516748(0xfa)]=this[_0x516748(0xf5)](),this[_0x516748(0xd7)]=new _0x5ab519(_0x10839c),this[_0x516748(0xec)]=new _0x235a59(_0x10839c),this[_0x516748(0xe9)]=new _0x2c1a91(_0x10839c,_0x1a4ec6),this[_0x516748(0xdc)]=new _0x286b7f(_0x10839c),this[_0x516748(0xdc)][_0x516748(0xdd)](this[_0x516748(0xed)]()),this[_0x516748(0xdf)](_0x516748(0xf3),_0x372797),this[_0x516748(0xdd)]({'tag':_0x516748(0x105),'attributes':{'class':['ck',_0x516748(0xe7),_0x516748(0x104)],'tabindex':'-1'},'children':this[_0x516748(0xfa)]}),this[_0x516748(0x10c)](),this[_0x516748(0xf7)](_0x516748(0xd8),()=>{const _0x2cb962=_0x516748;this[_0x2cb962(0xe4)](this[_0x2cb962(0xf1)],_0x302670=>{const _0x5bde3c=_0x2cb962;this[_0x5bde3c(0xfd)](_0x302670);});}),this['on'](_0x516748(0xf9),()=>{const _0x12cbf2=_0x516748;this[_0x12cbf2(0x10c)]();}),this[_0x516748(0xf0)]();}[_0x3ae4e0(0xeb)](){const _0x26ec88=_0x3ae4e0;this[_0x26ec88(0xf1)][_0x26ec88(0xeb)]();}[_0x3ae4e0(0x10c)](){const _0x301bdc=_0x3ae4e0;switch(this[_0x301bdc(0xfa)][_0x301bdc(0x100)](),this[_0x301bdc(0xf3)]){case _0x301bdc(0xfb):this[_0x301bdc(0xfa)][_0x301bdc(0xde)](this[_0x301bdc(0xd7)]);break;case _0x301bdc(0xee):this[_0x301bdc(0xfa)][_0x301bdc(0xde)](this[_0x301bdc(0xec)]);break;case _0x301bdc(0x106):this[_0x301bdc(0xfa)][_0x301bdc(0x10b)]([this[_0x301bdc(0xe9)],this[_0x301bdc(0xdc)]]);}}[_0x3ae4e0(0xe4)](_0xec1c72,_0x58505b){const _0x5c57fe=_0x3ae4e0,_0x7f59dc=_0x5c57fe(0xe1),_0x507ef6=_0xec1c72[_0x5c57fe(0xf6)](_0x7f59dc);if(_0x507ef6)return _0x58505b(_0x507ef6);const _0x246eee=new MutationObserver(_0xc6f41d=>{const _0x2a3cf1=_0x5c57fe,_0x4dae30=_0xc6f41d[_0x2a3cf1(0xe3)](_0x59bbf5=>_0x59bbf5[_0x2a3cf1(0x102)]===_0xec1c72&&_0x59bbf5[_0x2a3cf1(0x10a)][_0x2a3cf1(0xdb)]>0x0&&_0x59bbf5[_0x2a3cf1(0x10a)][0x0][_0x2a3cf1(0xd9)][_0x2a3cf1(0xf2)]()===_0x7f59dc);_0x4dae30[_0x2a3cf1(0xdb)]&&(_0x246eee[_0x2a3cf1(0xe6)](),_0x58505b(_0x4dae30[0x0][_0x2a3cf1(0x10a)][0x0]));});_0x246eee[_0x5c57fe(0xe5)](_0xec1c72,{'childList':!0x0,'subtree':!0x0});}[_0x3ae4e0(0xfd)](_0x5c2a73){const _0x301e79=_0x3ae4e0;_0x5c2a73[_0x301e79(0xfe)](_0x301e79(0xea),_0x50c10f=>{const _0x56fe67=_0x301e79;this[_0x56fe67(0x103)](_0x56fe67(0xea),{'imageSrc':_0x50c10f[_0x56fe67(0xe8)][_0x56fe67(0xff)]});}),_0x5c2a73[_0x301e79(0xfe)](_0x301e79(0xf8),()=>{const _0x398f74=_0x301e79;this[_0x398f74(0x103)](_0x398f74(0xf8));});}[_0x3ae4e0(0xf0)](){const _0x41bfb8=_0x3ae4e0;this[_0x41bfb8(0xec)]['on'](_0x41bfb8(0xfc),()=>{const _0x29869d=_0x41bfb8;this[_0x29869d(0x103)](_0x29869d(0xfc));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xa452ae=_0x285f;(function(_0x5b27c9,_0x50c067){const _0x268384=_0x285f,_0x3a1d0f=_0x5b27c9();while(!![]){try{const _0x117397=-parseInt(_0x268384(0x1e0))/0x1*(parseInt(_0x268384(0x1e2))/0x2)+-parseInt(_0x268384(0x1e4))/0x3*(parseInt(_0x268384(0x1f2))/0x4)+-parseInt(_0x268384(0x1eb))/0x5*(parseInt(_0x268384(0x1dd))/0x6)+-parseInt(_0x268384(0x1fa))/0x7+-parseInt(_0x268384(0x1ef))/0x8*(-parseInt(_0x268384(0x1e3))/0x9)+parseInt(_0x268384(0x1f9))/0xa*(parseInt(_0x268384(0x1ed))/0xb)+parseInt(_0x268384(0x1e9))/0xc;if(_0x117397===_0x50c067)break;else _0x3a1d0f['push'](_0x3a1d0f['shift']());}catch(_0x4d23e0){_0x3a1d0f['push'](_0x3a1d0f['shift']());}}}(_0x599e,0xbdf99));import{Command as _0xc316f2}from'ckeditor5/src/core.js';import{Dialog as _0x478ade}from'ckeditor5/src/ui.js';function _0x599e(){const _0x426178=['_isEditable','isActive','11850gJjbUw','getSelectedElement','element','304576MnPNDT','imageEditController','4JxiqDj','45rHdEBt','77397WZSmNp','bind','get','plugins','model','28599372UHwFMO','uploadcare.allowExternalImagesEditing','1165xPdRXO','config','11zzqvzo','set','1392296dneFub','document','imageBlock','140JpSVYV','refresh','execute','unbind','requires','imageInline','editor','9904360BqEuIi','10454311PzIaAs','isEnabled','selection'];_0x599e=function(){return _0x426178;};return _0x599e();}import _0x1a0e23 from'./ui/uploadcareimageeditcontroller.js';function _0x285f(_0x47900b,_0x2c9198){const _0x599edd=_0x599e();return _0x285f=function(_0x285ffb,_0x56c0e4){_0x285ffb=_0x285ffb-0x1dd;let _0x46d634=_0x599edd[_0x285ffb];return _0x46d634;},_0x285f(_0x47900b,_0x2c9198);}import{createEditabilityChecker as _0x14e996}from'../utils/editingutils.js';export default class V extends _0xc316f2{static get[_0xa452ae(0x1f6)](){return[_0x478ade];}constructor(_0x49d349){const _0x55b7a4=_0xa452ae;super(_0x49d349),this[_0x55b7a4(0x1e1)]=void 0x0,this[_0x55b7a4(0x1fd)]=_0x14e996(_0x49d349[_0x55b7a4(0x1ec)][_0x55b7a4(0x1e6)](_0x55b7a4(0x1ea))||[]),this[_0x55b7a4(0x1ee)]({'isActive':!0x1});}[_0xa452ae(0x1f3)](){const _0x49429c=_0xa452ae,_0x13539e=this[_0x49429c(0x1f8)][_0x49429c(0x1e8)][_0x49429c(0x1f0)][_0x49429c(0x1fc)][_0x49429c(0x1de)]();this[_0x49429c(0x1fb)]=this[_0x49429c(0x1fd)](_0x13539e);}[_0xa452ae(0x1f4)](){const _0x1f03f5=_0xa452ae;this[_0x1f03f5(0x1e1)]&&(this[_0x1f03f5(0x1f5)](_0x1f03f5(0x1fe)),this[_0x1f03f5(0x1e1)]=void 0x0);const _0x2e99d4=this[_0x1f03f5(0x1f8)][_0x1f03f5(0x1e8)][_0x1f03f5(0x1f0)][_0x1f03f5(0x1fc)][_0x1f03f5(0x1de)]();_0x2e99d4&&(_0x2e99d4['is'](_0x1f03f5(0x1df),_0x1f03f5(0x1f1))||_0x2e99d4['is'](_0x1f03f5(0x1df),_0x1f03f5(0x1f7)))&&(this[_0x1f03f5(0x1e1)]=new _0x1a0e23(this[_0x1f03f5(0x1f8)],this[_0x1f03f5(0x1f8)][_0x1f03f5(0x1e7)][_0x1f03f5(0x1e6)](_0x478ade),_0x2e99d4),this[_0x1f03f5(0x1e5)](_0x1f03f5(0x1fe))['to'](this[_0x1f03f5(0x1e1)],_0x1f03f5(0x1fe)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24e817=_0x2b5d;(function(_0x20089f,_0x2b3a85){const _0x49814b=_0x2b5d,_0x37d2ea=_0x20089f();while(!![]){try{const _0x44be4f=parseInt(_0x49814b(0x1d1))/0x1*(parseInt(_0x49814b(0x1cb))/0x2)+parseInt(_0x49814b(0x1d6))/0x3*(-parseInt(_0x49814b(0x1c4))/0x4)+-parseInt(_0x49814b(0x1d3))/0x5+-parseInt(_0x49814b(0x1ca))/0x6+parseInt(_0x49814b(0x1d2))/0x7+parseInt(_0x49814b(0x1cf))/0x8*(parseInt(_0x49814b(0x1cd))/0x9)+parseInt(_0x49814b(0x1d0))/0xa;if(_0x44be4f===_0x2b3a85)break;else _0x37d2ea['push'](_0x37d2ea['shift']());}catch(_0x4347c4){_0x37d2ea['push'](_0x37d2ea['shift']());}}}(_0x31a4,0x70656));function _0x2b5d(_0x4feae4,_0x2e781f){const _0x31a497=_0x31a4();return _0x2b5d=function(_0x2b5d0a,_0x295d97){_0x2b5d0a=_0x2b5d0a-0x1c1;let _0x46138e=_0x31a497[_0x2b5d0a];return _0x46138e;},_0x2b5d(_0x4feae4,_0x2e781f);}import{Plugin as _0x342eb3}from'ckeditor5/src/core.js';import{Notification as _0x16e69a}from'ckeditor5/src/ui.js';import _0x2dd23f from'./uploadcareimageeditcommand.js';import _0xffd3ca from'./uploadcareimagereplacecommand.js';function _0x31a4(){const _0x3b540a=['196888fnWDyZ','12831960zYcgXC','2cDqANI','6162387BIxvKi','4190125ENjDWS','add','ImageUtils','35031iuzqQI','commands','uploadcareImageReplace','requires','148mozRJG','UploadcareImageEditEditing','init','isPremiumPlugin','ImageEditing','isOfficialPlugin','5034216mFYAYZ','332114joIMqQ','uploadcareImageEdit','27GwEqIT','pluginName'];_0x31a4=function(){return _0x3b540a;};return _0x31a4();}import _0x14f1c3 from'../uploadcareediting.js';export default class m extends _0x342eb3{static get[_0x24e817(0x1ce)](){const _0x907ec1=_0x24e817;return _0x907ec1(0x1c5);}static get[_0x24e817(0x1c3)](){const _0x59d8d0=_0x24e817;return[_0x14f1c3,_0x16e69a,_0x59d8d0(0x1d5),_0x59d8d0(0x1c8)];}static get[_0x24e817(0x1c9)](){return!0x0;}static get[_0x24e817(0x1c7)](){return!0x0;}[_0x24e817(0x1c6)](){const _0x29e6bb=_0x24e817,{editor:_0x2d0e6e}=this;_0x2d0e6e[_0x29e6bb(0x1c1)][_0x29e6bb(0x1d4)](_0x29e6bb(0x1cc),new _0x2dd23f(_0x2d0e6e)),_0x2d0e6e[_0x29e6bb(0x1c1)][_0x29e6bb(0x1d4)](_0x29e6bb(0x1c2),new _0xffd3ca(_0x2d0e6e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x546880}from'ckeditor5/src/core.js';import{ButtonView as _0x3a9f1c}from'ckeditor5/src/ui.js';import{createElement as _0xb0df8}from'ckeditor5/src/utils.js';import _0x48ac9d from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x546880{constructor(){super(...arguments),this['_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 _0x13a2bc=this['editor'];_0x13a2bc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x330b08=>{const _0x21da10=_0x13a2bc['commands']['get']('uploadcareImageEdit'),_0x3a1a93=new _0x3a9f1c(_0x330b08),t=_0x330b08['t'];return _0x3a1a93['set']({'icon':_0x48ac9d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3a1a93['bind']('isEnabled')['to'](_0x21da10),_0x3a1a93['bind']('isOn')['to'](_0x21da10,'isActive'),this['listenTo'](_0x3a1a93,'execute',()=>{_0x13a2bc['execute']('uploadcareImageEdit'),_0x13a2bc['editing']['view']['focus']();}),_0x3a1a93;}),this['_initConfig']();}['_initConfig'](){const _0x4eaca6=_0xb0df8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4eaca6),this['listenTo'](this['editor'],'destroy',()=>{_0x4eaca6['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x219d(){const _0x5061ea=['change','removeAttribute','isEnabled','execute','document','2mFSJXj','refresh','430355tgBWYh','8zBHHIQ','4824519HYYMIM','630240jqCUSa','editor','srcset','imageBlock','2754920totPPG','model','700902hTidvj','5146464YTlNOH','10809945wEAuir','element','selection','imageInline','sizes','setAttributes','getSelectedElement'];_0x219d=function(){return _0x5061ea;};return _0x219d();}const _0x1393e2=_0xdfd2;(function(_0x1e7673,_0x3cd46d){const _0x2074db=_0xdfd2,_0x514962=_0x1e7673();while(!![]){try{const _0x49ec42=parseInt(_0x2074db(0x17a))/0x1+-parseInt(_0x2074db(0x178))/0x2*(-parseInt(_0x2074db(0x16a))/0x3)+parseInt(_0x2074db(0x17b))/0x4*(-parseInt(_0x2074db(0x168))/0x5)+-parseInt(_0x2074db(0x164))/0x6+-parseInt(_0x2074db(0x163))/0x7+parseInt(_0x2074db(0x16b))/0x8+parseInt(_0x2074db(0x16c))/0x9;if(_0x49ec42===_0x3cd46d)break;else _0x514962['push'](_0x514962['shift']());}catch(_0x3aef75){_0x514962['push'](_0x514962['shift']());}}}(_0x219d,0x95751));import{Command as _0x4afb00}from'ckeditor5/src/core.js';function _0xdfd2(_0x454b70,_0x399198){const _0x219d15=_0x219d();return _0xdfd2=function(_0xdfd270,_0x5b2517){_0xdfd270=_0xdfd270-0x163;let _0x4efb63=_0x219d15[_0xdfd270];return _0x4efb63;},_0xdfd2(_0x454b70,_0x399198);}export default class X extends _0x4afb00{[_0x1393e2(0x179)](){const _0x8edd6f=_0x1393e2,_0x4749d9=this[_0x8edd6f(0x165)][_0x8edd6f(0x169)][_0x8edd6f(0x177)][_0x8edd6f(0x16e)][_0x8edd6f(0x172)]();this[_0x8edd6f(0x175)]=Boolean(_0x4749d9&&(_0x4749d9['is'](_0x8edd6f(0x16d),_0x8edd6f(0x167))||_0x4749d9['is'](_0x8edd6f(0x16d),_0x8edd6f(0x16f))));}[_0x1393e2(0x176)](_0x1e1a49){const _0x40910d=_0x1393e2,_0x1faab0=this[_0x40910d(0x165)][_0x40910d(0x169)][_0x40910d(0x177)][_0x40910d(0x16e)][_0x40910d(0x172)]();this[_0x40910d(0x165)][_0x40910d(0x169)][_0x40910d(0x173)](_0x361e9d=>{const _0x5513e4=_0x40910d;_0x361e9d[_0x5513e4(0x171)](_0x1e1a49,_0x1faab0),_0x361e9d[_0x5513e4(0x174)](_0x5513e4(0x166),_0x1faab0),_0x361e9d[_0x5513e4(0x174)](_0x5513e4(0x170),_0x1faab0);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xd4c027=_0x275b;(function(_0x48db83,_0x3d1fd4){var _0x376aa0=_0x275b,_0x236513=_0x48db83();while(!![]){try{var _0x2fcec6=-parseInt(_0x376aa0(0x16e))/0x1+parseInt(_0x376aa0(0x169))/0x2*(-parseInt(_0x376aa0(0x165))/0x3)+-parseInt(_0x376aa0(0x16b))/0x4*(parseInt(_0x376aa0(0x166))/0x5)+-parseInt(_0x376aa0(0x161))/0x6*(parseInt(_0x376aa0(0x168))/0x7)+-parseInt(_0x376aa0(0x171))/0x8*(-parseInt(_0x376aa0(0x163))/0x9)+parseInt(_0x376aa0(0x167))/0xa+parseInt(_0x376aa0(0x164))/0xb;if(_0x2fcec6===_0x3d1fd4)break;else _0x236513['push'](_0x236513['shift']());}catch(_0x553fbf){_0x236513['push'](_0x236513['shift']());}}}(_0x4ffc,0x9abde));import{FocusTracker as _0x4c2918}from'ckeditor5/src/utils.js';import{View as _0x5d6994,FocusCycler as _0x342c74}from'ckeditor5/src/ui.js';function _0x275b(_0x148d95,_0x6a97e3){var _0x4ffc20=_0x4ffc();return _0x275b=function(_0x275bfe,_0xff1151){_0x275bfe=_0x275bfe-0x160;var _0x5b8297=_0x4ffc20[_0x275bfe];return _0x5b8297;},_0x275b(_0x148d95,_0x6a97e3);}import'../../theme/uploadcare-form.css';export default class q extends _0x5d6994{constructor(_0x2a9bf3){var _0x1f0b38=_0x275b;super(_0x2a9bf3),this[_0x1f0b38(0x16d)]=new _0x4c2918(),this[_0x1f0b38(0x160)]=new _0x342c74({'focusables':this[_0x1f0b38(0x162)](),'focusTracker':this[_0x1f0b38(0x16d)]});}[_0xd4c027(0x170)](){var _0x498e04=_0xd4c027;return{'tag':_0x498e04(0x173),'attributes':{'aria-hidden':_0x498e04(0x16a),'tabindex':'0'},'on':{'focus':this[_0x498e04(0x172)]['to'](()=>{var _0x19b7b4=_0x498e04;this[_0x19b7b4(0x160)][_0x19b7b4(0x16c)](_0x19b7b4(0x16f));})}};}}function _0x4ffc(){var _0x153198=['23360876JlWXVM','113121obKwGD','2475rKDKjy','12325450nWUrGL','396431JaXqvG','60qsEwsP','true','820DCbZkt','fire','focusTracker','1254500yiQACX','forwardCycle','getFocusableElement','23504xxLmba','bindTemplate','div','focusCycler','132NgcXhQ','createCollection','3096rEleFz'];_0x4ffc=function(){return _0x153198;};return _0x4ffc();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3cd789,_0x5461f5){const _0x32d08c=_0x4bf8,_0x5ee146=_0x3cd789();while(!![]){try{const _0x1fb04b=-parseInt(_0x32d08c(0x1a6))/0x1*(parseInt(_0x32d08c(0x18a))/0x2)+parseInt(_0x32d08c(0x185))/0x3+parseInt(_0x32d08c(0x18e))/0x4*(-parseInt(_0x32d08c(0x180))/0x5)+-parseInt(_0x32d08c(0x176))/0x6+-parseInt(_0x32d08c(0x17c))/0x7*(-parseInt(_0x32d08c(0x17a))/0x8)+parseInt(_0x32d08c(0x1a8))/0x9*(-parseInt(_0x32d08c(0x18d))/0xa)+parseInt(_0x32d08c(0x186))/0xb;if(_0x1fb04b===_0x5461f5)break;else _0x5ee146['push'](_0x5ee146['shift']());}catch(_0x49d1a4){_0x5ee146['push'](_0x5ee146['shift']());}}}(_0x3cfe,0x9b37c));import{global as _0x283ab5,DomEmitterMixin as _0x4d2ac0}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x2bc5d6){const _0x4c013c=_0x4bf8,_0xa6bae4=R(_0x2bc5d6);return _0x1fbf27=>!(!_0x1fbf27||!_0x1fbf27['is'](_0x4c013c(0x1a4),_0x4c013c(0x199))&&!_0x1fbf27['is'](_0x4c013c(0x1a4),_0x4c013c(0x1a5)))&&(!!_0x1fbf27[_0x4c013c(0x187)](_0x4c013c(0x1a9))||!!_0x1fbf27[_0x4c013c(0x187)](_0x4c013c(0x179))&&_0xa6bae4(_0x1fbf27[_0x4c013c(0x19c)](_0x4c013c(0x179))));}export function getImageUrls(_0x4d2d90,_0x2ca2b9){const _0x2ce509=_0x4bf8,_0x483caa=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x2ce509(0x16f)](_0x3dafd1=>_0x3dafd1<=_0x2ca2b9)[_0x2ce509(0x17b)](_0x26e484=>_0x4d2d90[_0x2ce509(0x194)](/\/$/,'')+_0x2ce509(0x197)+_0x26e484+_0x2ce509(0x195)+_0x26e484+'w');return{'imageFallbackUrl':_0x4d2d90,'imageSources':[{'srcset':_0x483caa[_0x2ce509(0x17f)](',\x20'),'sizes':_0x2ce509(0x19e)+_0x2ca2b9+_0x2ce509(0x192)+_0x2ca2b9+'px','type':_0x2ce509(0x19f)}]};}function _0x3cfe(){const _0x1a637b=['toViewElement','105438ttHUGv','window','match','10uITQuy','133804yntwMK','addClass','function','domConverter','px)\x20100vw,\x20','create','replace','x/\x20','view','/-/resize/','viewToDom','imageBlock','some','baseURI','getAttribute','aspect-ratio','(max-width:\x20','image/webp','ImageUtils','load','width','plugins','element','imageInline','4XaXgaC','mapper','4079574LPFTKp','uploadcareImageId','filter','removeClass','location','document','setStyle','stopListening','listenTo','1834890pVWTWf','isArray','height','src','477416vjCOKf','map','7HNrQwY','editing','get','join','40mkddQX','change','removeStyle','origin','findViewImgElement','1980276TufLQT','12689468NsJATr','hasAttribute','image-processing'];_0x3cfe=function(){return _0x1a637b;};return _0x3cfe();}export function getImageDimension(_0x18144f,_0x4df3c0,_0x852ee3){const _0x302c53=_0x4bf8,_0x285353=_0x18144f[_0x302c53(0x18c)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x285353?parseInt(_0x285353[0x1],0xa):_0x4df3c0,'height':_0x285353?parseInt(_0x285353[0x2],0xa):_0x852ee3};}export function showImageProcessingIndicator(_0x379d47,_0x4d62e3){const _0x2f96dd=_0x4bf8,_0x44c58d=Object[_0x2f96dd(0x193)](_0x4d2ac0),_0x486473=_0x379d47[_0x2f96dd(0x1a3)][_0x2f96dd(0x17e)](_0x2f96dd(0x1a0)),_0x12d7fe=_0x379d47[_0x2f96dd(0x17d)][_0x2f96dd(0x1a7)][_0x2f96dd(0x189)](_0x4d62e3),_0x10ce45=_0x486473[_0x2f96dd(0x184)](_0x12d7fe),_0x27e403=_0x379d47[_0x2f96dd(0x17d)][_0x2f96dd(0x196)][_0x2f96dd(0x191)][_0x2f96dd(0x198)](_0x10ce45),_0x328c5c=_0x4d62e3[_0x2f96dd(0x19c)](_0x2f96dd(0x1a2)),_0x159e4d=_0x4d62e3[_0x2f96dd(0x19c)](_0x2f96dd(0x178)),_0x2e899e=_0x2f96dd(0x188);_0x379d47[_0x2f96dd(0x17d)][_0x2f96dd(0x196)][_0x2f96dd(0x181)](_0x36ec19=>{const _0x33fecd=_0x2f96dd;_0x36ec19[_0x33fecd(0x18f)](_0x2e899e,_0x12d7fe),_0x36ec19[_0x33fecd(0x173)](_0x33fecd(0x19d),_0x328c5c+'/'+_0x159e4d,_0x10ce45);}),_0x44c58d[_0x2f96dd(0x175)](_0x27e403,_0x2f96dd(0x1a1),()=>{const _0x874f30=_0x2f96dd;_0x44c58d[_0x874f30(0x174)](_0x27e403,_0x874f30(0x1a1)),_0x379d47[_0x874f30(0x17d)][_0x874f30(0x196)][_0x874f30(0x181)](_0x1ab77f=>{const _0x318cfe=_0x874f30;_0x1ab77f[_0x318cfe(0x170)](_0x2e899e,_0x12d7fe),_0x1ab77f[_0x318cfe(0x182)](_0x318cfe(0x19d),_0x10ce45);});});}function _0x4bf8(_0x34f95e,_0x8907a5){const _0x3cfe0d=_0x3cfe();return _0x4bf8=function(_0x4bf892,_0x2308f9){_0x4bf892=_0x4bf892-0x16f;let _0x2e6bd5=_0x3cfe0d[_0x4bf892];return _0x2e6bd5;},_0x4bf8(_0x34f95e,_0x8907a5);}function R(_0x37f33d){const _0x12afdf=_0x4bf8;if(Array[_0x12afdf(0x177)](_0x37f33d)){const _0x1fbc46=_0x37f33d[_0x12afdf(0x17b)](R);return _0x3468db=>_0x1fbc46[_0x12afdf(0x19a)](_0x2d4d8f=>_0x2d4d8f(_0x3468db));}if(_0x12afdf(0x183)==_0x37f33d){const _0x27aa30=_0x283ab5[_0x12afdf(0x18b)][_0x12afdf(0x171)][_0x12afdf(0x183)];return _0x48cee0=>new URL(_0x48cee0,_0x283ab5[_0x12afdf(0x172)][_0x12afdf(0x19b)])[_0x12afdf(0x183)]==_0x27aa30;}return _0x12afdf(0x190)==typeof _0x37f33d?_0x37f33d:_0x37f33d instanceof RegExp?_0x48092a=>!(!_0x48092a[_0x12afdf(0x18c)](_0x37f33d)&&!_0x48092a[_0x12afdf(0x194)](/^https?:\/\//,'')[_0x12afdf(0x18c)](_0x37f33d)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x117054,_0x2a1ebe){var _0x2e3bba=_0x49db,_0x29e8de=_0x117054();while(!![]){try{var _0x144323=-parseInt(_0x2e3bba(0x1cd))/0x1*(parseInt(_0x2e3bba(0x1c9))/0x2)+-parseInt(_0x2e3bba(0x1cc))/0x3+-parseInt(_0x2e3bba(0x1cf))/0x4*(-parseInt(_0x2e3bba(0x1ce))/0x5)+parseInt(_0x2e3bba(0x1cb))/0x6+parseInt(_0x2e3bba(0x1d2))/0x7*(parseInt(_0x2e3bba(0x1c7))/0x8)+-parseInt(_0x2e3bba(0x1d0))/0x9+parseInt(_0x2e3bba(0x1c8))/0xa;if(_0x144323===_0x2a1ebe)break;else _0x29e8de['push'](_0x29e8de['shift']());}catch(_0x3b0652){_0x29e8de['push'](_0x29e8de['shift']());}}}(_0x532c,0xe957b));import{getAncestors as _0x523009}from'ckeditor5/src/utils.js';function _0x49db(_0x1f3122,_0x364b6b){var _0x532c2f=_0x532c();return _0x49db=function(_0x49dbba,_0x118506){_0x49dbba=_0x49dbba-0x1c7;var _0xe58f0f=_0x532c2f[_0x49dbba];return _0xe58f0f;},_0x49db(_0x1f3122,_0x364b6b);}export function isAncestor(_0xd6c7c2,_0x495260){var _0x516159=_0x49db;return _0x523009(_0xd6c7c2[_0x516159(0x1ca)])[_0x516159(0x1d1)](_0x495260);}function _0x532c(){var _0x562ad3=['includes','9075983NubSin','8BXHSNJ','4893280JEWzHB','2nFOgJm','target','6052470teVYjA','2239167rTQvFi','40643bvCPhl','11545NtAIut','580mtFlsA','12479796FusVuM'];_0x532c=function(){return _0x562ad3;};return _0x532c();}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xeea2(_0x3d78aa,_0x18c4fb){var _0x5632f6=_0x5632();return _0xeea2=function(_0xeea2ae,_0x34de27){_0xeea2ae=_0xeea2ae-0x1ce;var _0x30b9cb=_0x5632f6[_0xeea2ae];return _0x30b9cb;},_0xeea2(_0x3d78aa,_0x18c4fb);}function _0x5632(){var _0x230733=['4PGLwha','auto','upload','6URsQzQ','5397guZbZI','13426303DKqaxU','2424zVXUvP','367210YbxbxG','getInfo','855926CBXrpq','8949465llLVeB','10UgsEcM','648639SzYGES','4368880BTTTXC'];_0x5632=function(){return _0x230733;};return _0x5632();}var _0x295729=_0xeea2;(function(_0x5b802e,_0x2e8c58){var _0x5467b3=_0xeea2,_0x34a0ff=_0x5b802e();while(!![]){try{var _0x2c979e=-parseInt(_0x5467b3(0x1d0))/0x1+-parseInt(_0x5467b3(0x1d8))/0x2*(parseInt(_0x5467b3(0x1d3))/0x3)+parseInt(_0x5467b3(0x1d5))/0x4*(parseInt(_0x5467b3(0x1ce))/0x5)+-parseInt(_0x5467b3(0x1db))/0x6*(-parseInt(_0x5467b3(0x1d9))/0x7)+-parseInt(_0x5467b3(0x1d4))/0x8+parseInt(_0x5467b3(0x1d1))/0x9+parseInt(_0x5467b3(0x1d2))/0xa*(parseInt(_0x5467b3(0x1da))/0xb);if(_0x2c979e===_0x2e8c58)break;else _0x34a0ff['push'](_0x34a0ff['shift']());}catch(_0x2178ba){_0x34a0ff['push'](_0x34a0ff['shift']());}}}(_0x5632,0x86159));import{uploadFile as _0x27ed83,info as _0x44a559}from'@uploadcare/upload-client';export default class k{static[_0x295729(0x1d7)]({file:_0x36a268,publicKey:_0x26c1e4,signal:_0x2700f1,onProgress:_0x2932f7}){var _0x2b33df=_0x295729;return _0x27ed83(_0x36a268,{'publicKey':_0x26c1e4,'store':_0x2b33df(0x1d6),'signal':_0x2700f1,'onProgress':_0x2932f7});}static[_0x295729(0x1cf)](_0x1e98f7,_0x5ef185){return _0x44a559(_0x1e98f7,_0x5ef185);}}
|