@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250219.0 → 0.0.0-nightly-20250220.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 _0x563d53,ObservableMixin as _0x38736b}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x443268}from'ckeditor5/src/ui.js';import _0x186283 from'./uploadcareimageeditformview.js';import _0x1cf53c from'../../utils/uploadutils.js';import _0x28fb42 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x31ddb5,getImageDimension as _0xf67bb2}from'../../utils/editingutils.js';import{isAncestor as _0x3098da}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x38736b(){constructor(_0x33a870,_0x4b032a,_0x5a7ed6){super(),this['_editor']=_0x33a870,this['_dialog']=_0x4b032a,this['_imageElement']=_0x5a7ed6,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 _0x41c7c1=this['_imageElement'],_0x317afd=_0x41c7c1['getAttribute']('uploadcareImageId'),_0x155866=_0x41c7c1['getAttribute']('src');if(_0x317afd)await this['_loadImageInfo'](_0x317afd,_0x155866);else{if(this['_imageCache']['has'](_0x155866)){const _0x1a0516=this['_imageCache']['get'](_0x155866);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1a0516['url'],this['imageDimension']=_0x1a0516['dimension'],this['imageId']=_0x1a0516['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2d3ee1}=this['_editor'],t=_0x2d3ee1['t'],_0x3bdc17=new _0x186283(_0x2d3ee1,this['imageStatus'],this['_attributes']);_0x3bdc17['bind']('status')['to'](this,'imageStatus'),_0x3bdc17['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3bdc17['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3bdc17['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3bdc17,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x28fb42,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3bdc17,'position':_0x443268['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3bdc17['focus']();},'onHide':()=>{_0x3bdc17['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3a8d36=>!_0x3098da(_0x3a8d36,_0x3bdc17['element'])}});}['_loadImageInfo'](_0x442003,_0x472074){return _0x1cf53c['getInfo'](_0x442003,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x424b03=>{const {width:_0x32d8f2,height:_0x438d81}=_0x424b03['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x472074,this['imageDimension']={'width':_0x32d8f2,'height':_0x438d81},this['imageId']=_0x442003;})['catch'](_0x3a510d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3a510d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5df781,_0x15d572){return this['_getImageAsFile'](_0x5df781)['then'](_0x4cf6f3=>_0x1cf53c['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x15d572['signal'],'file':_0x4cf6f3,'onProgress':_0x313de1=>{_0x313de1&&_0x313de1['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x313de1['value']));}}))['then'](_0x12a31c=>{const {width:_0x3e0d8c,height:_0x51aecb}=_0x12a31c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x12a31c['cdnUrl'],this['imageDimension']={'width':_0x3e0d8c,'height':_0x51aecb},this['imageId']=_0x12a31c['uuid'],this['imageUploadProgress']=null;const _0x26e26b=_0x5df781['getAttribute']('src');this['_imageCache']['set'](_0x26e26b,{'id':_0x12a31c['uuid'],'url':_0x12a31c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2e32a7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2e32a7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5cbed5,_0x333d5){_0x5cbed5['on']('apply',(_0x36a79e,_0x2b12c2)=>{this['_replaceImage'](_0x333d5,_0x2b12c2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5cbed5['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5cbed5['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x157a2f,_0x5c4aef,_0x464598){const _0x2b8385=this['_editor'],{width:_0x3204ff,height:_0x49360c}=_0xf67bb2(_0x5c4aef,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1e554b,imageSources:_0x36668e}=_0x31ddb5(_0x5c4aef,_0x3204ff);_0x2b8385['model']['change'](_0x4e7a89=>{if('$graveyard'===_0x157a2f['root']['rootName']){_0x2b8385['execute']('insertImage',{'imageType':_0x157a2f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x157a2f['getAttributes']()),'uploadcareImageId':_0x464598,'src':_0x1e554b,'sources':_0x36668e,'width':_0x3204ff,'height':_0x49360c}});const _0x1dcf33=_0x157a2f['getChildren']();_0x157a2f=_0x2b8385['model']['document']['selection']['getSelectedElement']();for(const _0x19c77a of _0x1dcf33)_0x4e7a89['append'](_0x4e7a89['cloneElement'](_0x19c77a),_0x157a2f);}else _0x4e7a89['setSelection'](_0x157a2f,'on'),_0x2b8385['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x157a2f['getAttributes']()),'uploadcareImageId':_0x464598,'src':_0x1e554b,'sources':_0x36668e,'width':_0x3204ff,'height':_0x49360c},_0x157a2f);_0x4e7a89['setSelection'](_0x157a2f,'on');});}async['_getImageAsFile'](_0x1d3685){const _0x43fb8f=_0x563d53['window'],_0x19ba92=_0x563d53['document']['location']['href'],_0x381378=new _0x43fb8f['URL'](_0x1d3685['getAttribute']('src'),_0x19ba92);if('data:'===_0x381378['protocol']){const _0x47adfb=_0x381378['href']['split'](','),_0x4bd2c5=_0x47adfb[0x0]['match'](/:(.*?);/)[0x1],_0x5dd84e=_0x4bd2c5['split']('/')[0x1],_0x3316d=_0x43fb8f['atob'](_0x47adfb[_0x47adfb['length']-0x1]);let _0x4bbff9=_0x3316d['length'];const _0x5f0d5f=new _0x43fb8f['Uint8Array'](_0x4bbff9);for(;_0x4bbff9--;)_0x5f0d5f[_0x4bbff9]=_0x3316d['charCodeAt'](_0x4bbff9);return new _0x43fb8f['File']([_0x5f0d5f],'image.'+_0x5dd84e,{'type':_0x4bd2c5});}const _0x52dbfb=_0x381378['href']['split']('/'),_0x206e76=_0x52dbfb[_0x52dbfb['length']-0x1],_0x2c9463=_0x206e76['split']('.')[0x1];return _0x43fb8f['fetch'](_0x381378['href'])['then'](_0x566fda=>_0x566fda['clone']()['blob']())['then'](_0x4abe0c=>new _0x43fb8f['File']([_0x4abe0c],_0x206e76,{'type':'image/'+_0x2c9463}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x30f1f8,_0x52d0c5){const _0x1aebd1=_0x153d,_0x271b29=_0x30f1f8();while(!![]){try{const _0x4fab0d=parseInt(_0x1aebd1(0x1d1))/0x1*(-parseInt(_0x1aebd1(0x1d0))/0x2)+-parseInt(_0x1aebd1(0x1bf))/0x3+-parseInt(_0x1aebd1(0x1c8))/0x4*(-parseInt(_0x1aebd1(0x1cf))/0x5)+-parseInt(_0x1aebd1(0x1c7))/0x6*(-parseInt(_0x1aebd1(0x1ce))/0x7)+parseInt(_0x1aebd1(0x1ca))/0x8*(-parseInt(_0x1aebd1(0x1c5))/0x9)+parseInt(_0x1aebd1(0x1cd))/0xa*(-parseInt(_0x1aebd1(0x1cb))/0xb)+parseInt(_0x1aebd1(0x1c0))/0xc;if(_0x4fab0d===_0x52d0c5)break;else _0x271b29['push'](_0x271b29['shift']());}catch(_0x18520a){_0x271b29['push'](_0x271b29['shift']());}}}(_0x5177,0x8254b));function _0x5177(){const _0x2bfa55=['uc-light','2868204HIlhvc','3645236MRcoCd','set','6749032qCvBfu','693ilNlEa','ck-uploadcare-theme','116100PHjRHE','7pJAYXQ','5wzbMit','9382yJubkA','104CVxhWd','imageSrc','1794225pyUVGf','21665880UxsCNZ','bindTemplate','image-edit','uc-cloud-image-editor','setTemplate','9hSMnmo'];_0x5177=function(){return _0x2bfa55;};return _0x5177();}function _0x153d(_0xee2f16,_0x2fba58){const _0x517780=_0x5177();return _0x153d=function(_0x153de3,_0x5d8876){_0x153de3=_0x153de3-0x1bf;let _0x57460e=_0x517780[_0x153de3];return _0x57460e;},_0x153d(_0xee2f16,_0x2fba58);}import{View as _0x58b19f}from'ckeditor5/src/ui.js';export default class tt extends _0x58b19f{constructor(_0x12a393,_0x19572a){const _0x2b1ace=_0x153d;super(_0x12a393);const _0x30248a=this[_0x2b1ace(0x1c1)];this[_0x2b1ace(0x1c9)](_0x2b1ace(0x1d2),''),this[_0x2b1ace(0x1c4)]({'tag':_0x2b1ace(0x1c3),'attributes':{..._0x19572a,'class':[_0x2b1ace(0x1c6),_0x2b1ace(0x1cc)],'ctx-name':_0x2b1ace(0x1c2),'cdn-url':_0x30248a['to'](_0x2b1ace(0x1d2))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x3f88c0,IconView as et,View as _0x3333d6}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x3333d6{constructor(_0x1f7d8c){super(_0x1f7d8c);const t=_0x1f7d8c['t'];this['set']('errorType',null);const _0x508939=new _0x3f88c0(_0x1f7d8c);_0x508939['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x508939['withText']=!0x0,_0x508939['class']='ck-button-action',_0x508939['on']('execute',()=>{this['fire']('retry');}),_0x508939['bind']('isVisible')['to'](this,'errorType',_0x49993a=>'NotFound'!==_0x49993a);const _0x2e246d=new et();_0x2e246d['content']=at,_0x2e246d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4e7d7e=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':[_0x2e246d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4e7d7e['to']('errorType',_0x34877d=>t('NotFound'!==_0x34877d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x508939]},{'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 _0x5d6260,View as _0x2ae620}from'ckeditor5/src/ui.js';export default class ta extends _0x2ae620{constructor(_0x480b3c){super(_0x480b3c);const t=_0x480b3c['t'],_0x44b227=this['bindTemplate'],_0x5da497=new _0x5d6260();_0x5da497['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':[_0x5da497,{'text':_0x44b227['to']('imageUploadProgress',_0x463746=>t('Loading\x20image...')+'\x20('+(_0x463746||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 _0x333070=_0x290e;(function(_0x27e9ee,_0x296384){const _0x99d237=_0x290e,_0x13c8e0=_0x27e9ee();while(!![]){try{const _0x1ad532=-parseInt(_0x99d237(0x13a))/0x1+-parseInt(_0x99d237(0x123))/0x2*(-parseInt(_0x99d237(0x125))/0x3)+parseInt(_0x99d237(0x133))/0x4+-parseInt(_0x99d237(0x128))/0x5*(parseInt(_0x99d237(0x148))/0x6)+parseInt(_0x99d237(0x13e))/0x7*(-parseInt(_0x99d237(0x135))/0x8)+-parseInt(_0x99d237(0x121))/0x9+parseInt(_0x99d237(0x143))/0xa;if(_0x1ad532===_0x296384)break;else _0x13c8e0['push'](_0x13c8e0['shift']());}catch(_0x2412b1){_0x13c8e0['push'](_0x13c8e0['shift']());}}}(_0x1a10,0x74664));import{View as _0x1d9fb3}from'ckeditor5/src/ui.js';import _0x3d7ec8 from'./uploadcareimageeditformloadingview.js';function _0x290e(_0x39eefb,_0x92bf13){const _0x1a104e=_0x1a10();return _0x290e=function(_0x290ea3,_0x40272a){_0x290ea3=_0x290ea3-0x117;let _0x1dd43e=_0x1a104e[_0x290ea3];return _0x1dd43e;},_0x290e(_0x39eefb,_0x92bf13);}import _0x52d0bd from'./uploadcareimageeditformerrorview.js';import _0x1ee6c0 from'./uploadcareimageeditformeditingview.js';import _0x183ff1 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x183ff1{constructor(_0x251f3a,_0x17dcd3,_0x21ea17){const _0x23cc8c=_0x290e;super(_0x251f3a),this[_0x23cc8c(0x11e)]=this[_0x23cc8c(0x12f)](),this[_0x23cc8c(0x141)]=new _0x3d7ec8(_0x251f3a),this[_0x23cc8c(0x147)]=new _0x52d0bd(_0x251f3a),this[_0x23cc8c(0x11d)]=new _0x1ee6c0(_0x251f3a,_0x21ea17),this[_0x23cc8c(0x130)]=new _0x1d9fb3(_0x251f3a),this[_0x23cc8c(0x130)][_0x23cc8c(0x120)](this[_0x23cc8c(0x145)]()),this[_0x23cc8c(0x122)](_0x23cc8c(0x142),_0x17dcd3),this[_0x23cc8c(0x120)]({'tag':_0x23cc8c(0x13c),'attributes':{'class':['ck',_0x23cc8c(0x12e),_0x23cc8c(0x127)],'tabindex':'-1'},'children':this[_0x23cc8c(0x11e)]}),this[_0x23cc8c(0x129)](),this[_0x23cc8c(0x124)](_0x23cc8c(0x11c),()=>{const _0x139dca=_0x23cc8c;this[_0x139dca(0x119)](this[_0x139dca(0x14d)],_0x2aae92=>{const _0x5c2fc3=_0x139dca;this[_0x5c2fc3(0x13f)](_0x2aae92);});}),this['on'](_0x23cc8c(0x11a),()=>{const _0x30d402=_0x23cc8c;this[_0x30d402(0x129)]();}),this[_0x23cc8c(0x144)]();}[_0x333070(0x117)](){const _0x156730=_0x333070;this[_0x156730(0x14d)][_0x156730(0x117)]();}[_0x333070(0x129)](){const _0x2906fb=_0x333070;switch(this[_0x2906fb(0x11e)][_0x2906fb(0x134)](),this[_0x2906fb(0x142)]){case _0x2906fb(0x146):this[_0x2906fb(0x11e)][_0x2906fb(0x118)](this[_0x2906fb(0x141)]);break;case _0x2906fb(0x139):this[_0x2906fb(0x11e)][_0x2906fb(0x118)](this[_0x2906fb(0x147)]);break;case _0x2906fb(0x137):this[_0x2906fb(0x11e)][_0x2906fb(0x12d)]([this[_0x2906fb(0x11d)],this[_0x2906fb(0x130)]]);}}[_0x333070(0x119)](_0x353209,_0x1ac8b9){const _0x52f68e=_0x333070,_0x2cdf87=_0x52f68e(0x13d),_0x43e6bb=_0x353209[_0x52f68e(0x131)](_0x2cdf87);if(_0x43e6bb)return _0x1ac8b9(_0x43e6bb);const _0x470175=new MutationObserver(_0x28065f=>{const _0x1d5eca=_0x52f68e,_0x3fad7d=_0x28065f[_0x1d5eca(0x11b)](_0xc24a8=>_0xc24a8[_0x1d5eca(0x140)]===_0x353209&&_0xc24a8[_0x1d5eca(0x12a)][_0x1d5eca(0x11f)]>0x0&&_0xc24a8[_0x1d5eca(0x12a)][0x0][_0x1d5eca(0x132)][_0x1d5eca(0x14c)]()===_0x2cdf87);_0x3fad7d[_0x1d5eca(0x11f)]&&(_0x470175[_0x1d5eca(0x149)](),_0x1ac8b9(_0x3fad7d[0x0][_0x1d5eca(0x12a)][0x0]));});_0x470175[_0x52f68e(0x12c)](_0x353209,{'childList':!0x0,'subtree':!0x0});}[_0x333070(0x13f)](_0x426911){const _0x36622d=_0x333070;_0x426911[_0x36622d(0x136)](_0x36622d(0x13b),_0x539dec=>{const _0x28408b=_0x36622d;this[_0x28408b(0x12b)](_0x28408b(0x13b),{'imageSrc':_0x539dec[_0x28408b(0x14b)][_0x28408b(0x126)]});}),_0x426911[_0x36622d(0x136)](_0x36622d(0x138),()=>{const _0xde0b4b=_0x36622d;this[_0xde0b4b(0x12b)](_0xde0b4b(0x138));});}[_0x333070(0x144)](){const _0x20f8ed=_0x333070;this[_0x20f8ed(0x147)]['on'](_0x20f8ed(0x14a),()=>{const _0x3c095a=_0x20f8ed;this[_0x3c095a(0x12b)](_0x3c095a(0x14a));});}}function _0x1a10(){const _0xcd4b13=['createCollection','_focusableView','querySelector','nodeName','2614392qsIvIg','clear','112NIXjPJ','addEventListener','ready','cancel','error','937832doucSE','apply','div','uc-cloud-image-editor','94045VVvBjQ','_addUploadcareImageEditorListeners','target','_loadingView','status','14900420axYcMA','_addErrorViewListeners','getFocusableElement','uploading','_errorView','234408LYpsyU','disconnect','retry','detail','toLowerCase','element','focus','add','_waitForImageEditorComponent','change:status','filter','render','_editingView','_items','length','setTemplate','3089520FUWBSa','set','186596lmVFtb','once','15stprBQ','cdnUrl','ck-uploadcare-form','85LMEAdC','_setView','addedNodes','fire','observe','addMany','ck-reset_all-excluded'];_0x1a10=function(){return _0xcd4b13;};return _0x1a10();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b049f=_0x1167;(function(_0x184e00,_0x5a89f8){const _0x526698=_0x1167,_0x26b2c4=_0x184e00();while(!![]){try{const _0x3f0d73=parseInt(_0x526698(0x1a1))/0x1*(-parseInt(_0x526698(0x190))/0x2)+parseInt(_0x526698(0x1a4))/0x3+-parseInt(_0x526698(0x19d))/0x4*(-parseInt(_0x526698(0x19f))/0x5)+parseInt(_0x526698(0x196))/0x6*(parseInt(_0x526698(0x193))/0x7)+parseInt(_0x526698(0x18d))/0x8+-parseInt(_0x526698(0x18f))/0x9+-parseInt(_0x526698(0x1aa))/0xa;if(_0x3f0d73===_0x5a89f8)break;else _0x26b2c4['push'](_0x26b2c4['shift']());}catch(_0x3bdf73){_0x26b2c4['push'](_0x26b2c4['shift']());}}}(_0x1d73,0x39804));import{Command as _0x1af575}from'ckeditor5/src/core.js';function _0x1167(_0x650af,_0x410650){const _0x1d7378=_0x1d73();return _0x1167=function(_0x116722,_0x2b859f){_0x116722=_0x116722-0x18d;let _0x4d55be=_0x1d7378[_0x116722];return _0x4d55be;},_0x1167(_0x650af,_0x410650);}import{Dialog as _0xe88659}from'ckeditor5/src/ui.js';function _0x1d73(){const _0x262e42=['get','selection','_isEditable','execute','7593850TmKBGI','imageInline','requires','2135200UrOFWT','document','404946MvruRp','282764MNSNAI','isEnabled','element','21ffvGgv','plugins','editor','537870GmoYDj','uploadcare.allowExternalImagesEditing','imageEditController','unbind','set','config','bind','4tdQZXA','imageBlock','1073120BDyWhR','refresh','1KhFkFq','isActive','getSelectedElement','1292478TUnpWa','model'];_0x1d73=function(){return _0x262e42;};return _0x1d73();}import _0x1f8d94 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x4dff2f}from'../utils/editingutils.js';export default class J extends _0x1af575{static get[_0x2b049f(0x1ac)](){return[_0xe88659];}constructor(_0xec777f){const _0x362bdb=_0x2b049f;super(_0xec777f),this[_0x362bdb(0x198)]=void 0x0,this[_0x362bdb(0x1a8)]=_0x4dff2f(_0xec777f[_0x362bdb(0x19b)][_0x362bdb(0x1a6)](_0x362bdb(0x197))||[]),this[_0x362bdb(0x19a)]({'isActive':!0x1});}[_0x2b049f(0x1a0)](){const _0x23f966=_0x2b049f,_0x12e69a=this[_0x23f966(0x195)][_0x23f966(0x1a5)][_0x23f966(0x18e)][_0x23f966(0x1a7)][_0x23f966(0x1a3)]();this[_0x23f966(0x191)]=this[_0x23f966(0x1a8)](_0x12e69a);}[_0x2b049f(0x1a9)](){const _0x59ae85=_0x2b049f;this[_0x59ae85(0x198)]&&(this[_0x59ae85(0x199)](_0x59ae85(0x1a2)),this[_0x59ae85(0x198)]=void 0x0);const _0x3c1a3c=this[_0x59ae85(0x195)][_0x59ae85(0x1a5)][_0x59ae85(0x18e)][_0x59ae85(0x1a7)][_0x59ae85(0x1a3)]();_0x3c1a3c&&(_0x3c1a3c['is'](_0x59ae85(0x192),_0x59ae85(0x19e))||_0x3c1a3c['is'](_0x59ae85(0x192),_0x59ae85(0x1ab)))&&(this[_0x59ae85(0x198)]=new _0x1f8d94(this[_0x59ae85(0x195)],this[_0x59ae85(0x195)][_0x59ae85(0x194)][_0x59ae85(0x1a6)](_0xe88659),_0x3c1a3c),this[_0x59ae85(0x19c)](_0x59ae85(0x1a2))['to'](this[_0x59ae85(0x198)],_0x59ae85(0x1a2)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19a36c=_0x1818;function _0x4874(){const _0x5d4565=['276750haRXhb','ImageEditing','ImageUtils','commands','40977kUxNaA','381dFwCuy','uploadcareImageEdit','508145RCaGoG','5529IhrLOP','uploadcareImageReplace','32492sLeWHN','135asWqMY','278rWdLlQ','isPremiumPlugin','init','3122780KpsLDx','UploadcareImageEditEditing','isOfficialPlugin','256MQrYOE','requires','10553487LcpPtx','pluginName','852KbLhib','add'];_0x4874=function(){return _0x5d4565;};return _0x4874();}(function(_0x55dfe3,_0x290a9c){const _0x1a624a=_0x1818,_0xf9714a=_0x55dfe3();while(!![]){try{const _0x255178=-parseInt(_0x1a624a(0x106))/0x1*(-parseInt(_0x1a624a(0x10a))/0x2)+parseInt(_0x1a624a(0x103))/0x3*(parseInt(_0x1a624a(0x108))/0x4)+-parseInt(_0x1a624a(0x109))/0x5*(-parseInt(_0x1a624a(0xfe))/0x6)+parseInt(_0x1a624a(0xfa))/0x7+-parseInt(_0x1a624a(0xf8))/0x8*(parseInt(_0x1a624a(0x102))/0x9)+-parseInt(_0x1a624a(0xf5))/0xa+parseInt(_0x1a624a(0x105))/0xb*(-parseInt(_0x1a624a(0xfc))/0xc);if(_0x255178===_0x290a9c)break;else _0xf9714a['push'](_0xf9714a['shift']());}catch(_0x1c00df){_0xf9714a['push'](_0xf9714a['shift']());}}}(_0x4874,0xc70f5));import{Plugin as _0x503581}from'ckeditor5/src/core.js';import{Notification as _0x2c9ea6}from'ckeditor5/src/ui.js';import _0x5447cf from'./uploadcareimageeditcommand.js';function _0x1818(_0x354e8a,_0x395289){const _0x487499=_0x4874();return _0x1818=function(_0x181899,_0x35fbe8){_0x181899=_0x181899-0xf3;let _0x4a8bbd=_0x487499[_0x181899];return _0x4a8bbd;},_0x1818(_0x354e8a,_0x395289);}import _0x18185e from'./uploadcareimagereplacecommand.js';import _0x5ade06 from'../uploadcareediting.js';export default class m extends _0x503581{static get[_0x19a36c(0xfb)](){const _0x32f7fa=_0x19a36c;return _0x32f7fa(0xf6);}static get[_0x19a36c(0xf9)](){const _0x2df730=_0x19a36c;return[_0x5ade06,_0x2c9ea6,_0x2df730(0x100),_0x2df730(0xff)];}static get[_0x19a36c(0xf7)](){return!0x0;}static get[_0x19a36c(0xf3)](){return!0x0;}[_0x19a36c(0xf4)](){const _0x362015=_0x19a36c,{editor:_0x1106ab}=this;_0x1106ab[_0x362015(0x101)][_0x362015(0xfd)](_0x362015(0x104),new _0x5447cf(_0x1106ab)),_0x1106ab[_0x362015(0x101)][_0x362015(0xfd)](_0x362015(0x107),new _0x18185e(_0x1106ab));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5e4b0d}from'ckeditor5/src/core.js';import{ButtonView as _0x45464a}from'ckeditor5/src/ui.js';import{createElement as _0x4de17d}from'ckeditor5/src/utils.js';import _0x30fa1c 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 _0x5e4b0d{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 _0x17f495=this['editor'];_0x17f495['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5713d3=>{const _0x426c8e=_0x17f495['commands']['get']('uploadcareImageEdit'),_0x10414c=new _0x45464a(_0x5713d3),t=_0x5713d3['t'];return _0x10414c['set']({'icon':_0x30fa1c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x10414c['bind']('isEnabled')['to'](_0x426c8e),_0x10414c['bind']('isOn')['to'](_0x426c8e,'isActive'),this['listenTo'](_0x10414c,'execute',()=>{_0x17f495['execute']('uploadcareImageEdit'),_0x17f495['editing']['view']['focus']();}),_0x10414c;}),this['_initConfig']();}['_initConfig'](){const _0x54a238=_0x4de17d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x54a238),this['listenTo'](this['editor'],'destroy',()=>{_0x54a238['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x135a99=_0x17d0;function _0x17d0(_0x491a96,_0x151df5){const _0xc5aaed=_0xc5aa();return _0x17d0=function(_0x17d02d,_0x1c8774){_0x17d02d=_0x17d02d-0x15f;let _0x4b6688=_0xc5aaed[_0x17d02d];return _0x4b6688;},_0x17d0(_0x491a96,_0x151df5);}(function(_0x5783ff,_0x1e37b3){const _0x4a0957=_0x17d0,_0xf0ce7f=_0x5783ff();while(!![]){try{const _0x1eca75=-parseInt(_0x4a0957(0x160))/0x1+-parseInt(_0x4a0957(0x172))/0x2*(-parseInt(_0x4a0957(0x170))/0x3)+-parseInt(_0x4a0957(0x175))/0x4*(-parseInt(_0x4a0957(0x169))/0x5)+parseInt(_0x4a0957(0x178))/0x6+-parseInt(_0x4a0957(0x171))/0x7+parseInt(_0x4a0957(0x163))/0x8*(parseInt(_0x4a0957(0x166))/0x9)+-parseInt(_0x4a0957(0x176))/0xa*(parseInt(_0x4a0957(0x177))/0xb);if(_0x1eca75===_0x1e37b3)break;else _0xf0ce7f['push'](_0xf0ce7f['shift']());}catch(_0x2546e3){_0xf0ce7f['push'](_0xf0ce7f['shift']());}}}(_0xc5aa,0x313db));import{Command as _0x1d792a}from'ckeditor5/src/core.js';export default class O extends _0x1d792a{[_0x135a99(0x164)](){const _0x5022b9=_0x135a99,_0x26dded=this[_0x5022b9(0x165)][_0x5022b9(0x179)][_0x5022b9(0x16a)][_0x5022b9(0x16d)][_0x5022b9(0x16c)]();this[_0x5022b9(0x161)]=Boolean(_0x26dded&&(_0x26dded['is'](_0x5022b9(0x168),_0x5022b9(0x167))||_0x26dded['is'](_0x5022b9(0x168),_0x5022b9(0x173))));}[_0x135a99(0x16e)](_0x3d9b41){const _0x2baa4c=_0x135a99,_0x3844f6=this[_0x2baa4c(0x165)][_0x2baa4c(0x179)][_0x2baa4c(0x16a)][_0x2baa4c(0x16d)][_0x2baa4c(0x16c)]();this[_0x2baa4c(0x165)][_0x2baa4c(0x179)][_0x2baa4c(0x16f)](_0x4e268a=>{const _0x18109b=_0x2baa4c;_0x4e268a[_0x18109b(0x15f)](_0x3d9b41,_0x3844f6),_0x4e268a[_0x18109b(0x162)](_0x18109b(0x174),_0x3844f6),_0x4e268a[_0x18109b(0x162)](_0x18109b(0x16b),_0x3844f6);});}}function _0xc5aa(){const _0x53bf6b=['1505226rOAlvP','model','setAttributes','97442QtEYUS','isEnabled','removeAttribute','464MIdDJC','refresh','editor','52812eOsPqT','imageBlock','element','29615xEfkxD','document','sizes','getSelectedElement','selection','execute','change','563139uMdeZq','1473332hEWUfk','2OtIJYg','imageInline','srcset','192WCKlyG','1845410WZKaVy','33nJYlWj'];_0xc5aa=function(){return _0x53bf6b;};return _0xc5aa();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x50d52d=_0x77fd;(function(_0x5d81d9,_0x1bda05){var _0x4bf23f=_0x77fd,_0x36aa4f=_0x5d81d9();while(!![]){try{var _0x1b6e2d=-parseInt(_0x4bf23f(0xbc))/0x1+-parseInt(_0x4bf23f(0xc6))/0x2+-parseInt(_0x4bf23f(0xc5))/0x3+parseInt(_0x4bf23f(0xc4))/0x4*(-parseInt(_0x4bf23f(0xbb))/0x5)+-parseInt(_0x4bf23f(0xb8))/0x6+parseInt(_0x4bf23f(0xbd))/0x7*(parseInt(_0x4bf23f(0xc0))/0x8)+parseInt(_0x4bf23f(0xba))/0x9;if(_0x1b6e2d===_0x1bda05)break;else _0x36aa4f['push'](_0x36aa4f['shift']());}catch(_0x3dd148){_0x36aa4f['push'](_0x36aa4f['shift']());}}}(_0x52cf,0xd90d0));import{FocusTracker as _0x3fb146}from'ckeditor5/src/utils.js';function _0x52cf(){var _0x2a94a0=['6135606csmOFg','getFocusableElement','39656196luLWli','85795DJmotq','410494INfdaW','1589MfDFfj','true','div','49296TCcuzc','bindTemplate','createCollection','focusTracker','124MFWcuT','5115936jbmNVP','2491284NCvnyR','focusCycler','fire','forwardCycle'];_0x52cf=function(){return _0x2a94a0;};return _0x52cf();}import{View as _0xec1bb0,FocusCycler as _0x16f4dc}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x77fd(_0x37e67e,_0x3a6056){var _0x52cfca=_0x52cf();return _0x77fd=function(_0x77fd0f,_0x15ba92){_0x77fd0f=_0x77fd0f-0xb6;var _0x52a8e3=_0x52cfca[_0x77fd0f];return _0x52a8e3;},_0x77fd(_0x37e67e,_0x3a6056);}export default class q extends _0xec1bb0{constructor(_0x3022df){var _0xb924b0=_0x77fd;super(_0x3022df),this[_0xb924b0(0xc3)]=new _0x3fb146(),this[_0xb924b0(0xc7)]=new _0x16f4dc({'focusables':this[_0xb924b0(0xc2)](),'focusTracker':this[_0xb924b0(0xc3)]});}[_0x50d52d(0xb9)](){var _0x3794e5=_0x50d52d;return{'tag':_0x3794e5(0xbf),'attributes':{'aria-hidden':_0x3794e5(0xbe),'tabindex':'0'},'on':{'focus':this[_0x3794e5(0xc1)]['to'](()=>{var _0x2ae9c5=_0x3794e5;this[_0x2ae9c5(0xc7)][_0x2ae9c5(0xb6)](_0x2ae9c5(0xb7));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4311a1,_0x402db0){const _0x4ce38b=_0x4296,_0x24b754=_0x4311a1();while(!![]){try{const _0x9ec0c0=-parseInt(_0x4ce38b(0x1eb))/0x1*(parseInt(_0x4ce38b(0x1ed))/0x2)+parseInt(_0x4ce38b(0x1e2))/0x3+-parseInt(_0x4ce38b(0x1db))/0x4+-parseInt(_0x4ce38b(0x1f1))/0x5+parseInt(_0x4ce38b(0x1d5))/0x6+-parseInt(_0x4ce38b(0x1cf))/0x7+parseInt(_0x4ce38b(0x1bd))/0x8*(parseInt(_0x4ce38b(0x1d0))/0x9);if(_0x9ec0c0===_0x402db0)break;else _0x24b754['push'](_0x24b754['shift']());}catch(_0x32dfe0){_0x24b754['push'](_0x24b754['shift']());}}}(_0x14cb,0x90767));import{global as _0x4aaa51,DomEmitterMixin as _0x3a1834}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x380e4a){const _0x4c8f6e=_0x4296,_0x38788e=V(_0x380e4a);return _0x5df035=>!(!_0x5df035||!_0x5df035['is'](_0x4c8f6e(0x1ce),_0x4c8f6e(0x1e3))&&!_0x5df035['is'](_0x4c8f6e(0x1ce),_0x4c8f6e(0x1be)))&&(!!_0x5df035[_0x4c8f6e(0x1e6)](_0x4c8f6e(0x1c6))||!!_0x5df035[_0x4c8f6e(0x1e6)](_0x4c8f6e(0x1e4))&&_0x38788e(_0x5df035[_0x4c8f6e(0x1b9)](_0x4c8f6e(0x1e4))));}function _0x4296(_0x2fd6d6,_0x778f6e){const _0x14cb91=_0x14cb();return _0x4296=function(_0x4296bd,_0xa38b1d){_0x4296bd=_0x4296bd-0x1b9;let _0x2f89ec=_0x14cb91[_0x4296bd];return _0x2f89ec;},_0x4296(_0x2fd6d6,_0x778f6e);}export function getImageUrls(_0x9df9da,_0x385bdd){const _0x170377=_0x4296,_0x5a0513=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x170377(0x1ec)](_0x421e6a=>_0x421e6a<=_0x385bdd)[_0x170377(0x1cb)](_0x52e31f=>_0x9df9da[_0x170377(0x1cc)](/\/$/,'')+_0x170377(0x1ef)+_0x52e31f+_0x170377(0x1c7)+_0x52e31f+'w');return{'imageFallbackUrl':_0x9df9da,'imageSources':[{'srcset':_0x5a0513[_0x170377(0x1c1)](',\x20'),'sizes':_0x170377(0x1c0)+_0x385bdd+_0x170377(0x1c9)+_0x385bdd+'px','type':_0x170377(0x1d4)}]};}export function getImageDimension(_0x42fed3,_0x511277,_0x31e204){const _0x33c40b=_0x4296,_0x170105=_0x42fed3[_0x33c40b(0x1bc)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x170105?parseInt(_0x170105[0x1],0xa):_0x511277,'height':_0x170105?parseInt(_0x170105[0x2],0xa):_0x31e204};}function _0x14cb(){const _0x28b6cf=['src','addClass','hasAttribute','domConverter','origin','editing','stopListening','5kLCVuE','filter','251202LjonLg','listenTo','/-/resize/','removeClass','4685870WMkYPS','getAttribute','image-processing','function','match','24501016AUmvne','imageInline','window','(max-width:\x20','join','location','baseURI','findViewImgElement','height','uploadcareImageId','x/\x20','plugins','px)\x20100vw,\x20','mapper','map','replace','view','element','5963818qzlpuD','9cKwdmj','change','isArray','get','image/webp','4043226Nwobqk','toViewElement','width','load','document','create','4475872uPBjzo','ImageUtils','viewToDom','some','setStyle','removeStyle','aspect-ratio','1174026ZEuHpc','imageBlock'];_0x14cb=function(){return _0x28b6cf;};return _0x14cb();}export function showImageProcessingIndicator(_0x3dde08,_0x9bf45f){const _0x151624=_0x4296,_0x188d0c=Object[_0x151624(0x1da)](_0x3a1834),_0x463bd5=_0x3dde08[_0x151624(0x1c8)][_0x151624(0x1d3)](_0x151624(0x1dc)),_0x109374=_0x3dde08[_0x151624(0x1e9)][_0x151624(0x1ca)][_0x151624(0x1d6)](_0x9bf45f),_0x5f2e85=_0x463bd5[_0x151624(0x1c4)](_0x109374),_0x3e333d=_0x3dde08[_0x151624(0x1e9)][_0x151624(0x1cd)][_0x151624(0x1e7)][_0x151624(0x1dd)](_0x5f2e85),_0x3dfc95=_0x9bf45f[_0x151624(0x1b9)](_0x151624(0x1d7)),_0x3dba35=_0x9bf45f[_0x151624(0x1b9)](_0x151624(0x1c5)),_0xde760f=_0x151624(0x1ba);_0x3dde08[_0x151624(0x1e9)][_0x151624(0x1cd)][_0x151624(0x1d1)](_0x419ff3=>{const _0x1576b3=_0x151624;_0x419ff3[_0x1576b3(0x1e5)](_0xde760f,_0x109374),_0x419ff3[_0x1576b3(0x1df)](_0x1576b3(0x1e1),_0x3dfc95+'/'+_0x3dba35,_0x5f2e85);}),_0x188d0c[_0x151624(0x1ee)](_0x3e333d,_0x151624(0x1d8),()=>{const _0x2353df=_0x151624;_0x188d0c[_0x2353df(0x1ea)](_0x3e333d,_0x2353df(0x1d8)),_0x3dde08[_0x2353df(0x1e9)][_0x2353df(0x1cd)][_0x2353df(0x1d1)](_0x32202d=>{const _0xe9ae8c=_0x2353df;_0x32202d[_0xe9ae8c(0x1f0)](_0xde760f,_0x109374),_0x32202d[_0xe9ae8c(0x1e0)](_0xe9ae8c(0x1e1),_0x5f2e85);});});}function V(_0x19f9af){const _0x251bbe=_0x4296;if(Array[_0x251bbe(0x1d2)](_0x19f9af)){const _0x3866a7=_0x19f9af[_0x251bbe(0x1cb)](V);return _0xaf1634=>_0x3866a7[_0x251bbe(0x1de)](_0x3b610b=>_0x3b610b(_0xaf1634));}if(_0x251bbe(0x1e8)==_0x19f9af){const _0x96ce7=_0x4aaa51[_0x251bbe(0x1bf)][_0x251bbe(0x1c2)][_0x251bbe(0x1e8)];return _0x4d579f=>new URL(_0x4d579f,_0x4aaa51[_0x251bbe(0x1d9)][_0x251bbe(0x1c3)])[_0x251bbe(0x1e8)]==_0x96ce7;}return _0x251bbe(0x1bb)==typeof _0x19f9af?_0x19f9af:_0x19f9af instanceof RegExp?_0xcff309=>!(!_0xcff309[_0x251bbe(0x1bc)](_0x19f9af)&&!_0xcff309[_0x251bbe(0x1cc)](/^https?:\/\//,'')[_0x251bbe(0x1bc)](_0x19f9af)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x9686(_0x248ad1,_0x36a56d){var _0x4e3408=_0x4e34();return _0x9686=function(_0x968645,_0x4c0b62){_0x968645=_0x968645-0x180;var _0x44a68a=_0x4e3408[_0x968645];return _0x44a68a;},_0x9686(_0x248ad1,_0x36a56d);}function _0x4e34(){var _0x4c363f=['1393516lhtGKl','target','420GTZjPF','1116027ZwnBEx','includes','105596yghqFv','10059uBorkm','70334IgyjVu','6992800CrvqnK','42edsnht','4904zuEyoF','29735jNLbwx'];_0x4e34=function(){return _0x4c363f;};return _0x4e34();}(function(_0x395d7c,_0x503c8d){var _0x5ccc80=_0x9686,_0x277517=_0x395d7c();while(!![]){try{var _0x499b14=-parseInt(_0x5ccc80(0x18b))/0x1+parseInt(_0x5ccc80(0x181))/0x2*(parseInt(_0x5ccc80(0x183))/0x3)+-parseInt(_0x5ccc80(0x186))/0x4+parseInt(_0x5ccc80(0x185))/0x5*(parseInt(_0x5ccc80(0x188))/0x6)+-parseInt(_0x5ccc80(0x180))/0x7*(-parseInt(_0x5ccc80(0x184))/0x8)+-parseInt(_0x5ccc80(0x189))/0x9+-parseInt(_0x5ccc80(0x182))/0xa;if(_0x499b14===_0x503c8d)break;else _0x277517['push'](_0x277517['shift']());}catch(_0x526fa9){_0x277517['push'](_0x277517['shift']());}}}(_0x4e34,0x7d0fb));import{getAncestors as _0x8bfc00}from'ckeditor5/src/utils.js';export function isAncestor(_0x26b09f,_0x1f9550){var _0x5c25a2=_0x9686;return _0x8bfc00(_0x26b09f[_0x5c25a2(0x187)])[_0x5c25a2(0x18a)](_0x1f9550);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x3ece(){var _0x13401c=['207DNESnj','392ldiNzA','21gBWrPO','29733000lfBLnx','1469224fIghQH','1852MIopra','342EIaoXc','getInfo','3450095yiDHMB','444495ReVhOW','18618jWGYsw','auto','12baiYXf','upload','19610zBDygu'];_0x3ece=function(){return _0x13401c;};return _0x3ece();}function _0x2dda(_0x367b12,_0x4569cd){var _0x3ece72=_0x3ece();return _0x2dda=function(_0x2dda0c,_0x3bc131){_0x2dda0c=_0x2dda0c-0x179;var _0x13fc3a=_0x3ece72[_0x2dda0c];return _0x13fc3a;},_0x2dda(_0x367b12,_0x4569cd);}var _0x5be4b9=_0x2dda;(function(_0x442ba6,_0x20373c){var _0x3f0848=_0x2dda,_0x3f3e4d=_0x442ba6();while(!![]){try{var _0x4f609c=parseInt(_0x3f0848(0x181))/0x1*(-parseInt(_0x3f0848(0x180))/0x2)+-parseInt(_0x3f0848(0x185))/0x3*(parseInt(_0x3f0848(0x17c))/0x4)+-parseInt(_0x3f0848(0x184))/0x5*(parseInt(_0x3f0848(0x187))/0x6)+-parseInt(_0x3f0848(0x17d))/0x7*(parseInt(_0x3f0848(0x17f))/0x8)+parseInt(_0x3f0848(0x17b))/0x9*(-parseInt(_0x3f0848(0x17a))/0xa)+-parseInt(_0x3f0848(0x183))/0xb+parseInt(_0x3f0848(0x17e))/0xc;if(_0x4f609c===_0x20373c)break;else _0x3f3e4d['push'](_0x3f3e4d['shift']());}catch(_0x511ee3){_0x3f3e4d['push'](_0x3f3e4d['shift']());}}}(_0x3ece,0x719d5));import{uploadFile as _0x27299c,info as _0x34dc42}from'@uploadcare/upload-client';export default class k{static[_0x5be4b9(0x179)]({file:_0x45b9a1,publicKey:_0x555b2a,signal:_0x281ea1,onProgress:_0x4929d0}){var _0x17f220=_0x5be4b9;return _0x27299c(_0x45b9a1,{'publicKey':_0x555b2a,'store':_0x17f220(0x186),'signal':_0x281ea1,'onProgress':_0x4929d0});}static[_0x5be4b9(0x182)](_0x587580,_0x263cec){return _0x34dc42(_0x587580,_0x263cec);}}
|