@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250201.0 → 0.0.0-nightly-20250202.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 _0x1bca59,ObservableMixin as _0x33bf9f}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1d9d15}from'ckeditor5/src/ui.js';import _0x292877 from'./uploadcareimageeditformview.js';import _0x49220a from'../../utils/uploadutils.js';import _0x1feb02 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x51b954,getImageDimension as _0x4ad270}from'../../utils/editingutils.js';import{isAncestor as _0x28433f}from'../../utils/isancestor.js';export default class Q extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x33bf9f(){constructor(_0x35c966,_0xdb3ca0,_0x477d51){super(),this['_editor']=_0x35c966,this['_dialog']=_0xdb3ca0,this['_imageElement']=_0x477d51,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 _0x1a247e=this['_imageElement'],_0x5785a4=_0x1a247e['getAttribute']('uploadcareImageId'),_0x367de7=_0x1a247e['getAttribute']('src');if(_0x5785a4)await this['_loadImageInfo'](_0x5785a4,_0x367de7);else{if(this['_imageCache']['has'](_0x367de7)){const _0x50b1a0=this['_imageCache']['get'](_0x367de7);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50b1a0['url'],this['imageDimension']=_0x50b1a0['dimension'],this['imageId']=_0x50b1a0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x50ccbf}=this['_editor'],t=_0x50ccbf['t'],_0x46757e=new _0x292877(_0x50ccbf,this['imageStatus'],this['_attributes']);_0x46757e['bind']('status')['to'](this,'imageStatus'),_0x46757e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x46757e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x46757e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x46757e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1feb02,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x46757e,'position':_0x1d9d15['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x46757e['focus']();},'onHide':()=>{_0x46757e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3c1146=>!_0x28433f(_0x3c1146,_0x46757e['element'])}});}['_loadImageInfo'](_0x408185,_0x536233){return _0x49220a['getInfo'](_0x408185,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3b7d3b=>{const {width:_0x884e9,height:_0x3447cb}=_0x3b7d3b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x536233,this['imageDimension']={'width':_0x884e9,'height':_0x3447cb},this['imageId']=_0x408185;})['catch'](_0x4352c1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4352c1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x518dea,_0x574542){return this['_getImageAsFile'](_0x518dea)['then'](_0x1ef236=>_0x49220a['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x574542['signal'],'file':_0x1ef236,'onProgress':_0x27cd1d=>{_0x27cd1d&&_0x27cd1d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x27cd1d['value']));}}))['then'](_0x5d0577=>{const {width:_0x5d8f84,height:_0x269783}=_0x5d0577['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5d0577['cdnUrl'],this['imageDimension']={'width':_0x5d8f84,'height':_0x269783},this['imageId']=_0x5d0577['uuid'],this['imageUploadProgress']=null;const _0x3188e8=_0x518dea['getAttribute']('src');this['_imageCache']['set'](_0x3188e8,{'id':_0x5d0577['uuid'],'url':_0x5d0577['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xa69de8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xa69de8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x55ef67,_0x2314a6){_0x55ef67['on']('apply',(_0x4b142f,_0x1d1a66)=>{this['_replaceImage'](_0x2314a6,_0x1d1a66['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x55ef67['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x55ef67['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x43fe6c,_0x5b333b,_0x295e46){const _0x5c0539=this['_editor'],{width:_0x2f243d,height:_0x2720a9}=_0x4ad270(_0x5b333b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x9efaeb,imageSources:_0x244441}=_0x51b954(_0x5b333b,_0x2f243d);_0x5c0539['model']['change'](_0x5b518d=>{if('$graveyard'===_0x43fe6c['root']['rootName']){_0x5c0539['execute']('insertImage',{'imageType':_0x43fe6c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x43fe6c['getAttributes']()),'uploadcareImageId':_0x295e46,'src':_0x9efaeb,'sources':_0x244441,'width':_0x2f243d,'height':_0x2720a9}});const _0x1dc476=_0x43fe6c['getChildren']();_0x43fe6c=_0x5c0539['model']['document']['selection']['getSelectedElement']();for(const _0x2f944f of _0x1dc476)_0x5b518d['append'](_0x5b518d['cloneElement'](_0x2f944f),_0x43fe6c);}else _0x5b518d['setSelection'](_0x43fe6c,'on'),_0x5c0539['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x43fe6c['getAttributes']()),'uploadcareImageId':_0x295e46,'src':_0x9efaeb,'sources':_0x244441,'width':_0x2f243d,'height':_0x2720a9},_0x43fe6c);_0x5b518d['setSelection'](_0x43fe6c,'on');});}async['_getImageAsFile'](_0x4b7788){const _0x554c58=_0x1bca59['window'],_0x13091=_0x1bca59['document']['location']['href'],_0x257a9a=new _0x554c58['URL'](_0x4b7788['getAttribute']('src'),_0x13091);if('data:'===_0x257a9a['protocol']){const _0xf40c10=_0x257a9a['href']['split'](','),_0x24212c=_0xf40c10[0x0]['match'](/:(.*?);/)[0x1],_0xb84fff=_0x24212c['split']('/')[0x1],_0x5315cd=_0x554c58['atob'](_0xf40c10[_0xf40c10['length']-0x1]);let _0x43f788=_0x5315cd['length'];const _0x5e3016=new _0x554c58['Uint8Array'](_0x43f788);for(;_0x43f788--;)_0x5e3016[_0x43f788]=_0x5315cd['charCodeAt'](_0x43f788);return new _0x554c58['File']([_0x5e3016],'image.'+_0xb84fff,{'type':_0x24212c});}const _0x15c8cf=_0x257a9a['href']['split']('/'),_0x499cf3=_0x15c8cf[_0x15c8cf['length']-0x1],_0x858c1d=_0x499cf3['split']('.')[0x1];return _0x554c58['fetch'](_0x257a9a['href'])['then'](_0x4cb49b=>_0x4cb49b['clone']()['blob']())['then'](_0x1ca779=>new _0x554c58['File']([_0x1ca779],_0x499cf3,{'type':'image/'+_0x858c1d}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x11f176,_0x370cdc){const _0x378b53=_0xf619,_0x461e75=_0x11f176();while(!![]){try{const _0xb4a56b=parseInt(_0x378b53(0x84))/0x1+-parseInt(_0x378b53(0x7a))/0x2+-parseInt(_0x378b53(0x7d))/0x3*(parseInt(_0x378b53(0x79))/0x4)+-parseInt(_0x378b53(0x83))/0x5+parseInt(_0x378b53(0x7e))/0x6+parseInt(_0x378b53(0x85))/0x7+-parseInt(_0x378b53(0x76))/0x8*(parseInt(_0x378b53(0x78))/0x9);if(_0xb4a56b===_0x370cdc)break;else _0x461e75['push'](_0x461e75['shift']());}catch(_0x6a9c00){_0x461e75['push'](_0x461e75['shift']());}}}(_0x3930,0x531c3));import{View as _0x2026de}from'ckeditor5/src/ui.js';function _0xf619(_0x4a227d,_0x24dd35){const _0x3930d1=_0x3930();return _0xf619=function(_0xf61993,_0x39b5c1){_0xf61993=_0xf61993-0x75;let _0x26bee1=_0x3930d1[_0xf61993];return _0x26bee1;},_0xf619(_0x4a227d,_0x24dd35);}export default class tt extends _0x2026de{constructor(_0x3de8fb,_0x94ccbd){const _0x4de203=_0xf619;super(_0x3de8fb);const _0x95e967=this[_0x4de203(0x77)];this[_0x4de203(0x7b)](_0x4de203(0x80),''),this[_0x4de203(0x81)]({'tag':_0x4de203(0x7c),'attributes':{..._0x94ccbd,'class':[_0x4de203(0x7f),_0x4de203(0x82)],'ctx-name':_0x4de203(0x75),'cdn-url':_0x95e967['to'](_0x4de203(0x80))}});}}function _0x3930(){const _0x4a7716=['image-edit','2539976vPFZVr','bindTemplate','9EaXSpX','18992fQiXHV','242144bcKyqP','set','uc-cloud-image-editor','393xBzHVa','2214654lTnExx','uc-light','imageSrc','setTemplate','ck-uploadcare-theme','931580kzkKKA','613603ZxHTfd','4232060aDtHxR'];_0x3930=function(){return _0x4a7716;};return _0x3930();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0xc16996,IconView as et,View as _0x472fe6}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x472fe6{constructor(_0x6a261){super(_0x6a261);const t=_0x6a261['t'];this['set']('errorType',null);const _0xbf5373=new _0xc16996(_0x6a261);_0xbf5373['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xbf5373['withText']=!0x0,_0xbf5373['class']='ck-button-action',_0xbf5373['on']('execute',()=>{this['fire']('retry');}),_0xbf5373['bind']('isVisible')['to'](this,'errorType',_0x5572b1=>'NotFound'!==_0x5572b1);const _0x3f9d2a=new et();_0x3f9d2a['content']=at,_0x3f9d2a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2c89f8=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':[_0x3f9d2a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2c89f8['to']('errorType',_0x1a2d3e=>t('NotFound'!==_0x1a2d3e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xbf5373]},{'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 _0xa669ae,View as _0x4b69be}from'ckeditor5/src/ui.js';export default class ta extends _0x4b69be{constructor(_0x4690ec){super(_0x4690ec);const t=_0x4690ec['t'],_0x669f82=this['bindTemplate'],_0x2fbb3b=new _0xa669ae();_0x2fbb3b['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':[_0x2fbb3b,{'text':_0x669f82['to']('imageUploadProgress',_0x16ad10=>t('Loading\x20image...')+'\x20('+(_0x16ad10||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 _0x52df24=_0x4b58;function _0x4b58(_0x5b75ee,_0x22c8f5){const _0x45cf99=_0x45cf();return _0x4b58=function(_0x4b581a,_0x6293cf){_0x4b581a=_0x4b581a-0x98;let _0x1c95ed=_0x45cf99[_0x4b581a];return _0x1c95ed;},_0x4b58(_0x5b75ee,_0x22c8f5);}(function(_0x1f4e38,_0x24af42){const _0x6d2416=_0x4b58,_0x91427f=_0x1f4e38();while(!![]){try{const _0x3ab72a=parseInt(_0x6d2416(0x9b))/0x1+-parseInt(_0x6d2416(0xcd))/0x2*(-parseInt(_0x6d2416(0xce))/0x3)+-parseInt(_0x6d2416(0xa3))/0x4+-parseInt(_0x6d2416(0xa2))/0x5*(parseInt(_0x6d2416(0xbf))/0x6)+-parseInt(_0x6d2416(0x9c))/0x7+-parseInt(_0x6d2416(0xa9))/0x8*(parseInt(_0x6d2416(0xb6))/0x9)+parseInt(_0x6d2416(0xae))/0xa;if(_0x3ab72a===_0x24af42)break;else _0x91427f['push'](_0x91427f['shift']());}catch(_0x4c98f9){_0x91427f['push'](_0x91427f['shift']());}}}(_0x45cf,0x3d659));import{View as _0x352000}from'ckeditor5/src/ui.js';import _0x18106e from'./uploadcareimageeditformloadingview.js';import _0x19145f from'./uploadcareimageeditformerrorview.js';import _0x3a1d3e from'./uploadcareimageeditformeditingview.js';import _0x736e02 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class ii extends _0x736e02{constructor(_0x31a163,_0x44308b,_0x1a0222){const _0x2cfb50=_0x4b58;super(_0x31a163),this[_0x2cfb50(0xa0)]=this[_0x2cfb50(0xb9)](),this[_0x2cfb50(0xc3)]=new _0x18106e(_0x31a163),this[_0x2cfb50(0xaa)]=new _0x19145f(_0x31a163),this[_0x2cfb50(0x9a)]=new _0x3a1d3e(_0x31a163,_0x1a0222),this[_0x2cfb50(0xbe)]=new _0x352000(_0x31a163),this[_0x2cfb50(0xbe)][_0x2cfb50(0xa4)](this[_0x2cfb50(0xbb)]()),this[_0x2cfb50(0xb1)](_0x2cfb50(0xa5),_0x44308b),this[_0x2cfb50(0xa4)]({'tag':_0x2cfb50(0xb8),'attributes':{'class':['ck',_0x2cfb50(0xa1),_0x2cfb50(0x99)],'tabindex':'-1'},'children':this[_0x2cfb50(0xa0)]}),this[_0x2cfb50(0xaf)](),this[_0x2cfb50(0xbd)](_0x2cfb50(0xa7),()=>{const _0x459f93=_0x2cfb50;this[_0x459f93(0xb4)](this[_0x459f93(0xc9)],_0xb535b2=>{const _0xdc39c7=_0x459f93;this[_0xdc39c7(0xba)](_0xb535b2);});}),this['on'](_0x2cfb50(0xb2),()=>{const _0xb60be6=_0x2cfb50;this[_0xb60be6(0xaf)]();}),this[_0x2cfb50(0xca)]();}[_0x52df24(0xb7)](){const _0x23f7a1=_0x52df24;this[_0x23f7a1(0xc9)][_0x23f7a1(0xb7)]();}[_0x52df24(0xaf)](){const _0xdd83a6=_0x52df24;switch(this[_0xdd83a6(0xa0)][_0xdd83a6(0xac)](),this[_0xdd83a6(0xa5)]){case _0xdd83a6(0xc1):this[_0xdd83a6(0xa0)][_0xdd83a6(0xb3)](this[_0xdd83a6(0xc3)]);break;case _0xdd83a6(0xa8):this[_0xdd83a6(0xa0)][_0xdd83a6(0xb3)](this[_0xdd83a6(0xaa)]);break;case _0xdd83a6(0xcb):this[_0xdd83a6(0xa0)][_0xdd83a6(0xab)]([this[_0xdd83a6(0x9a)],this[_0xdd83a6(0xbe)]]);}}[_0x52df24(0xb4)](_0x127d29,_0x50b7fa){const _0x48ea20=_0x52df24,_0x556f1a=_0x48ea20(0xbc),_0x1e0b6d=_0x127d29[_0x48ea20(0x9f)](_0x556f1a);if(_0x1e0b6d)return _0x50b7fa(_0x1e0b6d);const _0x56ff0b=new MutationObserver(_0x50d8c3=>{const _0x2bceb1=_0x48ea20,_0x5077f1=_0x50d8c3[_0x2bceb1(0xb0)](_0x5fb17=>_0x5fb17[_0x2bceb1(0xc8)]===_0x127d29&&_0x5fb17[_0x2bceb1(0xc7)][_0x2bceb1(0xb5)]>0x0&&_0x5fb17[_0x2bceb1(0xc7)][0x0][_0x2bceb1(0xa6)][_0x2bceb1(0xc5)]()===_0x556f1a);_0x5077f1[_0x2bceb1(0xb5)]&&(_0x56ff0b[_0x2bceb1(0xcc)](),_0x50b7fa(_0x5077f1[0x0][_0x2bceb1(0xc7)][0x0]));});_0x56ff0b[_0x48ea20(0x9e)](_0x127d29,{'childList':!0x0,'subtree':!0x0});}[_0x52df24(0xba)](_0x108806){const _0x468173=_0x52df24;_0x108806[_0x468173(0xad)](_0x468173(0xc6),_0x2aba57=>{const _0x2ca732=_0x468173;this[_0x2ca732(0xc0)](_0x2ca732(0xc6),{'imageSrc':_0x2aba57[_0x2ca732(0x9d)][_0x2ca732(0xc4)]});}),_0x108806[_0x468173(0xad)](_0x468173(0x98),()=>{const _0x5b62ea=_0x468173;this[_0x5b62ea(0xc0)](_0x5b62ea(0x98));});}[_0x52df24(0xca)](){const _0x5d54f6=_0x52df24;this[_0x5d54f6(0xaa)]['on'](_0x5d54f6(0xc2),()=>{const _0x2e69af=_0x5d54f6;this[_0x2e69af(0xc0)](_0x2e69af(0xc2));});}}function _0x45cf(){const _0x4f1b02=['observe','querySelector','_items','ck-reset_all-excluded','5lXSWWr','625520kUYjFj','setTemplate','status','nodeName','render','error','321832ZlgViD','_errorView','addMany','clear','addEventListener','8117460ZtqLnr','_setView','filter','set','change:status','add','_waitForImageEditorComponent','length','99oqpXXW','focus','div','createCollection','_addUploadcareImageEditorListeners','getFocusableElement','uc-cloud-image-editor','once','_focusableView','1275438QpWVym','fire','uploading','retry','_loadingView','cdnUrl','toLowerCase','apply','addedNodes','target','element','_addErrorViewListeners','ready','disconnect','46KJlpjc','18789PICYdJ','cancel','ck-uploadcare-form','_editingView','259033YAfpjc','1063125HACkIB','detail'];_0x45cf=function(){return _0x4f1b02;};return _0x45cf();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x49b6e8=_0x3107;(function(_0x23e71a,_0x2d986a){const _0x222fd0=_0x3107,_0x56a9e5=_0x23e71a();while(!![]){try{const _0x296345=parseInt(_0x222fd0(0x179))/0x1*(-parseInt(_0x222fd0(0x188))/0x2)+parseInt(_0x222fd0(0x17d))/0x3*(parseInt(_0x222fd0(0x185))/0x4)+parseInt(_0x222fd0(0x192))/0x5+-parseInt(_0x222fd0(0x18d))/0x6*(parseInt(_0x222fd0(0x18f))/0x7)+parseInt(_0x222fd0(0x176))/0x8+-parseInt(_0x222fd0(0x17a))/0x9+parseInt(_0x222fd0(0x184))/0xa;if(_0x296345===_0x2d986a)break;else _0x56a9e5['push'](_0x56a9e5['shift']());}catch(_0x259fe4){_0x56a9e5['push'](_0x56a9e5['shift']());}}}(_0x598b,0x46685));function _0x598b(){const _0x49f9cc=['_isEditable','3WCezmw','imageEditController','getSelectedElement','refresh','plugins','uploadcare.allowExternalImagesEditing','model','4277820KrzVed','44660JfKYzs','set','isEnabled','3058AfaXrj','editor','get','execute','document','1974GQrzAQ','imageInline','217FHGtBL','selection','config','1199225Rnisgh','isActive','requires','unbind','250712ORxObY','bind','element','211RgHfeS','800316nZIuVc','imageBlock'];_0x598b=function(){return _0x49f9cc;};return _0x598b();}import{Command as _0x4390ea}from'ckeditor5/src/core.js';import{Dialog as _0x1e5c3f}from'ckeditor5/src/ui.js';import _0x2c9bdb from'./ui/uploadcareimageeditcontroller.js';function _0x3107(_0x1cdbe8,_0x2565c9){const _0x598bf9=_0x598b();return _0x3107=function(_0x31079c,_0x6be305){_0x31079c=_0x31079c-0x174;let _0xef6cad=_0x598bf9[_0x31079c];return _0xef6cad;},_0x3107(_0x1cdbe8,_0x2565c9);}import{createEditabilityChecker as _0x5d6b24}from'../utils/editingutils.js';export default class W extends _0x4390ea{static get[_0x49b6e8(0x174)](){return[_0x1e5c3f];}constructor(_0x26a163){const _0x1822fc=_0x49b6e8;super(_0x26a163),this[_0x1822fc(0x17e)]=void 0x0,this[_0x1822fc(0x17c)]=_0x5d6b24(_0x26a163[_0x1822fc(0x191)][_0x1822fc(0x18a)](_0x1822fc(0x182))||[]),this[_0x1822fc(0x186)]({'isActive':!0x1});}[_0x49b6e8(0x180)](){const _0x11892a=_0x49b6e8,_0x4bb146=this[_0x11892a(0x189)][_0x11892a(0x183)][_0x11892a(0x18c)][_0x11892a(0x190)][_0x11892a(0x17f)]();this[_0x11892a(0x187)]=this[_0x11892a(0x17c)](_0x4bb146);}[_0x49b6e8(0x18b)](){const _0x1c079c=_0x49b6e8;this[_0x1c079c(0x17e)]&&(this[_0x1c079c(0x175)](_0x1c079c(0x193)),this[_0x1c079c(0x17e)]=void 0x0);const _0x1ad2c3=this[_0x1c079c(0x189)][_0x1c079c(0x183)][_0x1c079c(0x18c)][_0x1c079c(0x190)][_0x1c079c(0x17f)]();_0x1ad2c3&&(_0x1ad2c3['is'](_0x1c079c(0x178),_0x1c079c(0x17b))||_0x1ad2c3['is'](_0x1c079c(0x178),_0x1c079c(0x18e)))&&(this[_0x1c079c(0x17e)]=new _0x2c9bdb(this[_0x1c079c(0x189)],this[_0x1c079c(0x189)][_0x1c079c(0x181)][_0x1c079c(0x18a)](_0x1e5c3f),_0x1ad2c3),this[_0x1c079c(0x177)](_0x1c079c(0x193))['to'](this[_0x1c079c(0x17e)],_0x1c079c(0x193)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2229(){const _0x145ce0=['uploadcareImageReplace','10704980myypkz','40vLufUG','429330TxBVKv','5OLencd','isPremiumPlugin','commands','1271494YffJMw','requires','65740vkwBSl','init','isOfficialPlugin','2565244coeLTg','uploadcareImageEdit','2999832LRvFYA','add','ImageUtils','ImageEditing','pluginName','1692bUItDV','UploadcareImageEditEditing','94778uQYBeY','19khwkgQ'];_0x2229=function(){return _0x145ce0;};return _0x2229();}const _0xbe50eb=_0x44fa;(function(_0x1785aa,_0x1a6311){const _0xab1c52=_0x44fa,_0x980537=_0x1785aa();while(!![]){try{const _0x428d5c=-parseInt(_0xab1c52(0xa6))/0x1*(-parseInt(_0xab1c52(0xa5))/0x2)+-parseInt(_0xab1c52(0x9e))/0x3+-parseInt(_0xab1c52(0x9c))/0x4+parseInt(_0xab1c52(0x94))/0x5*(parseInt(_0xab1c52(0x93))/0x6)+-parseInt(_0xab1c52(0x97))/0x7*(parseInt(_0xab1c52(0x92))/0x8)+-parseInt(_0xab1c52(0xa3))/0x9*(-parseInt(_0xab1c52(0x99))/0xa)+parseInt(_0xab1c52(0x91))/0xb;if(_0x428d5c===_0x1a6311)break;else _0x980537['push'](_0x980537['shift']());}catch(_0x1cc8dd){_0x980537['push'](_0x980537['shift']());}}}(_0x2229,0x9a315));import{Plugin as _0x43a5b9}from'ckeditor5/src/core.js';import{Notification as _0x4d50ba}from'ckeditor5/src/ui.js';import _0x57f05e from'./uploadcareimageeditcommand.js';import _0x484ee9 from'./uploadcareimagereplacecommand.js';import _0x423d00 from'../uploadcareediting.js';function _0x44fa(_0x3d2804,_0x4a9b3a){const _0x22292c=_0x2229();return _0x44fa=function(_0x44fafe,_0x27614d){_0x44fafe=_0x44fafe-0x91;let _0x2e971e=_0x22292c[_0x44fafe];return _0x2e971e;},_0x44fa(_0x3d2804,_0x4a9b3a);}export default class m extends _0x43a5b9{static get[_0xbe50eb(0xa2)](){const _0x2c9a13=_0xbe50eb;return _0x2c9a13(0xa4);}static get[_0xbe50eb(0x98)](){const _0x57fa72=_0xbe50eb;return[_0x423d00,_0x4d50ba,_0x57fa72(0xa0),_0x57fa72(0xa1)];}static get[_0xbe50eb(0x9b)](){return!0x0;}static get[_0xbe50eb(0x95)](){return!0x0;}[_0xbe50eb(0x9a)](){const _0x3da25c=_0xbe50eb,{editor:_0x472269}=this;_0x472269[_0x3da25c(0x96)][_0x3da25c(0x9f)](_0x3da25c(0x9d),new _0x57f05e(_0x472269)),_0x472269[_0x3da25c(0x96)][_0x3da25c(0x9f)](_0x3da25c(0xa7),new _0x484ee9(_0x472269));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xa0be82}from'ckeditor5/src/core.js';import{ButtonView as _0x384900}from'ckeditor5/src/ui.js';import{createElement as _0x2b4161}from'ckeditor5/src/utils.js';import _0x548dba 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 _0xa0be82{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 _0x85b974=this['editor'];_0x85b974['ui']['componentFactory']['add']('uploadcareImageEdit',_0x487f36=>{const _0x12c6b2=_0x85b974['commands']['get']('uploadcareImageEdit'),_0x50a32c=new _0x384900(_0x487f36),t=_0x487f36['t'];return _0x50a32c['set']({'icon':_0x548dba,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x50a32c['bind']('isEnabled')['to'](_0x12c6b2),_0x50a32c['bind']('isOn')['to'](_0x12c6b2,'isActive'),this['listenTo'](_0x50a32c,'execute',()=>{_0x85b974['execute']('uploadcareImageEdit'),_0x85b974['editing']['view']['focus']();}),_0x50a32c;}),this['_initConfig']();}['_initConfig'](){const _0x15088f=_0x2b4161(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x15088f),this['listenTo'](this['editor'],'destroy',()=>{_0x15088f['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x6f15(){const _0x1dcc3d=['6259UQmsRd','30kHdheF','refresh','802494hptmzj','getSelectedElement','srcset','6yFtBKF','imageBlock','215529KIzskT','execute','isEnabled','selection','1028368NDWYCp','157424sxSJmP','setAttributes','model','change','6cQUrSB','sizes','615835RCArKP','imageInline','document','232524CysRYX','removeAttribute','editor','element','35tgfIly'];_0x6f15=function(){return _0x1dcc3d;};return _0x6f15();}const _0x512d27=_0x5d11;(function(_0x4481ac,_0x38c5b2){const _0x8fa88c=_0x5d11,_0x4ec47c=_0x4481ac();while(!![]){try{const _0x3f555a=parseInt(_0x8fa88c(0xf6))/0x1+-parseInt(_0x8fa88c(0x10c))/0x2*(parseInt(_0x8fa88c(0x103))/0x3)+parseInt(_0x8fa88c(0x107))/0x4+-parseInt(_0x8fa88c(0xf3))/0x5*(parseInt(_0x8fa88c(0x101))/0x6)+-parseInt(_0x8fa88c(0xfa))/0x7*(parseInt(_0x8fa88c(0x108))/0x8)+parseInt(_0x8fa88c(0xfe))/0x9+parseInt(_0x8fa88c(0xfc))/0xa*(parseInt(_0x8fa88c(0xfb))/0xb);if(_0x3f555a===_0x38c5b2)break;else _0x4ec47c['push'](_0x4ec47c['shift']());}catch(_0x257664){_0x4ec47c['push'](_0x4ec47c['shift']());}}}(_0x6f15,0x2302b));function _0x5d11(_0x464088,_0x17f790){const _0x6f1506=_0x6f15();return _0x5d11=function(_0x5d113d,_0x5ef89a){_0x5d113d=_0x5d113d-0xf3;let _0xf15c7e=_0x6f1506[_0x5d113d];return _0xf15c7e;},_0x5d11(_0x464088,_0x17f790);}import{Command as _0x1ce9b2}from'ckeditor5/src/core.js';export default class Y extends _0x1ce9b2{[_0x512d27(0xfd)](){const _0x287e99=_0x512d27,_0x4bcbc3=this[_0x287e99(0xf8)][_0x287e99(0x10a)][_0x287e99(0xf5)][_0x287e99(0x106)][_0x287e99(0xff)]();this[_0x287e99(0x105)]=Boolean(_0x4bcbc3&&(_0x4bcbc3['is'](_0x287e99(0xf9),_0x287e99(0x102))||_0x4bcbc3['is'](_0x287e99(0xf9),_0x287e99(0xf4))));}[_0x512d27(0x104)](_0x4b3e76){const _0x215474=_0x512d27,_0x456270=this[_0x215474(0xf8)][_0x215474(0x10a)][_0x215474(0xf5)][_0x215474(0x106)][_0x215474(0xff)]();this[_0x215474(0xf8)][_0x215474(0x10a)][_0x215474(0x10b)](_0x14ec6d=>{const _0x50573f=_0x215474;_0x14ec6d[_0x50573f(0x109)](_0x4b3e76,_0x456270),_0x14ec6d[_0x50573f(0xf7)](_0x50573f(0x100),_0x456270),_0x14ec6d[_0x50573f(0xf7)](_0x50573f(0x10d),_0x456270);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x29cf(_0x84ccdc,_0x65571e){var _0xf35ec0=_0xf35e();return _0x29cf=function(_0x29cf7f,_0x477d39){_0x29cf7f=_0x29cf7f-0x1b9;var _0x18b434=_0xf35ec0[_0x29cf7f];return _0x18b434;},_0x29cf(_0x84ccdc,_0x65571e);}var _0x5540cf=_0x29cf;(function(_0x3dd256,_0x4748e1){var _0xf4fc4d=_0x29cf,_0x242131=_0x3dd256();while(!![]){try{var _0x5894a0=parseInt(_0xf4fc4d(0x1c8))/0x1+-parseInt(_0xf4fc4d(0x1c0))/0x2+parseInt(_0xf4fc4d(0x1bb))/0x3+parseInt(_0xf4fc4d(0x1be))/0x4+-parseInt(_0xf4fc4d(0x1c3))/0x5+parseInt(_0xf4fc4d(0x1ba))/0x6*(parseInt(_0xf4fc4d(0x1c7))/0x7)+-parseInt(_0xf4fc4d(0x1b9))/0x8*(-parseInt(_0xf4fc4d(0x1bf))/0x9);if(_0x5894a0===_0x4748e1)break;else _0x242131['push'](_0x242131['shift']());}catch(_0x492214){_0x242131['push'](_0x242131['shift']());}}}(_0xf35e,0xd2caf));import{FocusTracker as _0x451cba}from'ckeditor5/src/utils.js';function _0xf35e(){var _0x575113=['focusTracker','31032oQaGOs','9230160xGzHjS','4938291tlMFRC','true','getFocusableElement','873996qPLtqU','441RTLIht','2935670BUaEvc','fire','forwardCycle','8005915jcXddo','div','focusCycler','bindTemplate','7ZduKMN','339398xzaeyg','createCollection'];_0xf35e=function(){return _0x575113;};return _0xf35e();}import{View as _0x5268f4,FocusCycler as _0x9ee595}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x5268f4{constructor(_0x5dc6c7){var _0x58278f=_0x29cf;super(_0x5dc6c7),this[_0x58278f(0x1ca)]=new _0x451cba(),this[_0x58278f(0x1c5)]=new _0x9ee595({'focusables':this[_0x58278f(0x1c9)](),'focusTracker':this[_0x58278f(0x1ca)]});}[_0x5540cf(0x1bd)](){var _0x1e1106=_0x5540cf;return{'tag':_0x1e1106(0x1c4),'attributes':{'aria-hidden':_0x1e1106(0x1bc),'tabindex':'0'},'on':{'focus':this[_0x1e1106(0x1c6)]['to'](()=>{var _0x2d3b3f=_0x1e1106;this[_0x2d3b3f(0x1c5)][_0x2d3b3f(0x1c1)](_0x2d3b3f(0x1c2));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1821(_0x34ff30,_0x5408da){const _0x4393f0=_0x4393();return _0x1821=function(_0x1821d3,_0x4a60d8){_0x1821d3=_0x1821d3-0xcf;let _0x1aa14d=_0x4393f0[_0x1821d3];return _0x1aa14d;},_0x1821(_0x34ff30,_0x5408da);}(function(_0x300906,_0x3350cc){const _0x37eafd=_0x1821,_0x2fcf97=_0x300906();while(!![]){try{const _0x10a9ab=-parseInt(_0x37eafd(0xe4))/0x1*(-parseInt(_0x37eafd(0xec))/0x2)+parseInt(_0x37eafd(0xf7))/0x3*(-parseInt(_0x37eafd(0xef))/0x4)+parseInt(_0x37eafd(0xea))/0x5*(-parseInt(_0x37eafd(0xe8))/0x6)+-parseInt(_0x37eafd(0xf0))/0x7*(-parseInt(_0x37eafd(0xe5))/0x8)+parseInt(_0x37eafd(0xe3))/0x9*(parseInt(_0x37eafd(0xfd))/0xa)+parseInt(_0x37eafd(0xda))/0xb*(-parseInt(_0x37eafd(0xe6))/0xc)+parseInt(_0x37eafd(0x102))/0xd;if(_0x10a9ab===_0x3350cc)break;else _0x2fcf97['push'](_0x2fcf97['shift']());}catch(_0x41701f){_0x2fcf97['push'](_0x2fcf97['shift']());}}}(_0x4393,0x79440));import{global as _0x3a44ee,DomEmitterMixin as _0x1a6803}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x5f0a28){const _0x17d82b=_0x1821,_0x1a9bc3=R(_0x5f0a28);return _0x3ca117=>!(!_0x3ca117||!_0x3ca117['is'](_0x17d82b(0x100),_0x17d82b(0xd5))&&!_0x3ca117['is'](_0x17d82b(0x100),_0x17d82b(0xdd)))&&(!!_0x3ca117[_0x17d82b(0xdb)](_0x17d82b(0xfb))||!!_0x3ca117[_0x17d82b(0xdb)](_0x17d82b(0xee))&&_0x1a9bc3(_0x3ca117[_0x17d82b(0xd0)](_0x17d82b(0xee))));}export function getImageUrls(_0x3f9d1c,_0x1e2d19){const _0x16cf13=_0x1821,_0x48b11e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x16cf13(0xed)](_0x563430=>_0x563430<=_0x1e2d19)[_0x16cf13(0xd8)](_0x2c21b5=>_0x3f9d1c[_0x16cf13(0xdc)](/\/$/,'')+_0x16cf13(0x101)+_0x2c21b5+_0x16cf13(0x10a)+_0x2c21b5+'w');return{'imageFallbackUrl':_0x3f9d1c,'imageSources':[{'srcset':_0x48b11e[_0x16cf13(0xe0)](',\x20'),'sizes':_0x16cf13(0x105)+_0x1e2d19+_0x16cf13(0xf3)+_0x1e2d19+'px','type':_0x16cf13(0xde)}]};}export function getImageDimension(_0x159536,_0x48e159,_0x2b1d50){const _0x45d0cc=_0x1821,_0x315803=_0x159536[_0x45d0cc(0xfe)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x315803?parseInt(_0x315803[0x1],0xa):_0x48e159,'height':_0x315803?parseInt(_0x315803[0x2],0xa):_0x2b1d50};}export function showImageProcessingIndicator(_0x2a57ad,_0x29c6a7){const _0x14b4c6=_0x1821,_0x4a001d=Object[_0x14b4c6(0xf8)](_0x1a6803),_0x5be0a9=_0x2a57ad[_0x14b4c6(0xff)][_0x14b4c6(0x103)](_0x14b4c6(0xe1)),_0x4bb6d8=_0x2a57ad[_0x14b4c6(0xcf)][_0x14b4c6(0xeb)][_0x14b4c6(0xf5)](_0x29c6a7),_0x9d0a65=_0x5be0a9[_0x14b4c6(0x10b)](_0x4bb6d8),_0x5bdb20=_0x2a57ad[_0x14b4c6(0xcf)][_0x14b4c6(0xf4)][_0x14b4c6(0xdf)][_0x14b4c6(0xf2)](_0x9d0a65),_0x589678=_0x29c6a7[_0x14b4c6(0xd0)](_0x14b4c6(0xf6)),_0x45965b=_0x29c6a7[_0x14b4c6(0xd0)](_0x14b4c6(0xfc)),_0x48706c=_0x14b4c6(0xfa);_0x2a57ad[_0x14b4c6(0xcf)][_0x14b4c6(0xf4)][_0x14b4c6(0x106)](_0x92c6d7=>{const _0x53ba05=_0x14b4c6;_0x92c6d7[_0x53ba05(0x108)](_0x48706c,_0x4bb6d8),_0x92c6d7[_0x53ba05(0x104)](_0x53ba05(0xf9),_0x589678+'/'+_0x45965b,_0x9d0a65);}),_0x4a001d[_0x14b4c6(0xd2)](_0x5bdb20,_0x14b4c6(0xf1),()=>{const _0x4e4c62=_0x14b4c6;_0x4a001d[_0x4e4c62(0xe2)](_0x5bdb20,_0x4e4c62(0xf1)),_0x2a57ad[_0x4e4c62(0xcf)][_0x4e4c62(0xf4)][_0x4e4c62(0x106)](_0x497f14=>{const _0x2eae0b=_0x4e4c62;_0x497f14[_0x2eae0b(0xd1)](_0x48706c,_0x4bb6d8),_0x497f14[_0x2eae0b(0xe9)](_0x2eae0b(0xf9),_0x9d0a65);});});}function _0x4393(){const _0x1a56d8=['function','x/\x20','findViewImgElement','editing','getAttribute','removeClass','listenTo','window','isArray','imageBlock','location','some','map','document','81631xHuKfr','hasAttribute','replace','imageInline','image/webp','domConverter','join','ImageUtils','stopListening','7587891AmcNgE','733aupLtF','24xUgxjn','624WPOdsk','origin','500754McfPdi','removeStyle','20ItcqCp','mapper','2252VbTAdk','filter','src','4tnBoTA','721847BIpKFn','load','viewToDom','px)\x20100vw,\x20','view','toViewElement','width','2651343MECrKD','create','aspect-ratio','image-processing','uploadcareImageId','height','10aDvDSh','match','plugins','element','/-/resize/','1591109YjPued','get','setStyle','(max-width:\x20','change','baseURI','addClass'];_0x4393=function(){return _0x1a56d8;};return _0x4393();}function R(_0x1c2fd6){const _0x2d8794=_0x1821;if(Array[_0x2d8794(0xd4)](_0x1c2fd6)){const _0x492f79=_0x1c2fd6[_0x2d8794(0xd8)](R);return _0x331508=>_0x492f79[_0x2d8794(0xd7)](_0x87c661=>_0x87c661(_0x331508));}if(_0x2d8794(0xe7)==_0x1c2fd6){const _0x486c2a=_0x3a44ee[_0x2d8794(0xd3)][_0x2d8794(0xd6)][_0x2d8794(0xe7)];return _0x40f352=>new URL(_0x40f352,_0x3a44ee[_0x2d8794(0xd9)][_0x2d8794(0x107)])[_0x2d8794(0xe7)]==_0x486c2a;}return _0x2d8794(0x109)==typeof _0x1c2fd6?_0x1c2fd6:_0x1c2fd6 instanceof RegExp?_0x266266=>!(!_0x266266[_0x2d8794(0xfe)](_0x1c2fd6)&&!_0x266266[_0x2d8794(0xdc)](/^https?:\/\//,'')[_0x2d8794(0xfe)](_0x1c2fd6)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4cbbe8,_0x5935e3){var _0x41ffb3=_0x4318,_0x1d870d=_0x4cbbe8();while(!![]){try{var _0x3931c1=parseInt(_0x41ffb3(0xbc))/0x1+parseInt(_0x41ffb3(0xbf))/0x2+-parseInt(_0x41ffb3(0xbd))/0x3+parseInt(_0x41ffb3(0xc6))/0x4*(-parseInt(_0x41ffb3(0xc7))/0x5)+-parseInt(_0x41ffb3(0xc2))/0x6*(-parseInt(_0x41ffb3(0xc0))/0x7)+parseInt(_0x41ffb3(0xc4))/0x8*(parseInt(_0x41ffb3(0xc3))/0x9)+-parseInt(_0x41ffb3(0xc5))/0xa;if(_0x3931c1===_0x5935e3)break;else _0x1d870d['push'](_0x1d870d['shift']());}catch(_0x484e38){_0x1d870d['push'](_0x1d870d['shift']());}}}(_0x3434,0xdf9a8));import{getAncestors as _0xad98bd}from'ckeditor5/src/utils.js';export function isAncestor(_0x5f2afc,_0x551342){var _0x4dec42=_0x4318;return _0xad98bd(_0x5f2afc[_0x4dec42(0xbe)])[_0x4dec42(0xc1)](_0x551342);}function _0x4318(_0x47df97,_0x552d42){var _0x3434b1=_0x3434();return _0x4318=function(_0x431866,_0x2594e4){_0x431866=_0x431866-0xbc;var _0x17c723=_0x3434b1[_0x431866];return _0x17c723;},_0x4318(_0x47df97,_0x552d42);}function _0x3434(){var _0x16de71=['171iUmISi','631960qRxBzf','4791340FdNgch','3791824LHlKNs','5nMCOLX','239835bctXZF','2772738JyDiYV','target','2988004UMmiea','227318DWzUtc','includes','6zusDWL'];_0x3434=function(){return _0x16de71;};return _0x3434();}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xb63e(){var _0xfdb00c=['2922165onTuYC','getInfo','auto','4EaVRyt','588LhhsIZ','3456708NVDRAP','50vgMuIR','927740VhnhAy','2082uDcHYc','9335rCxdYM','26419470bwKGKa','37568zANCYh','3221208wlVXPF','upload'];_0xb63e=function(){return _0xfdb00c;};return _0xb63e();}var _0x482041=_0xcd44;(function(_0x1a3b01,_0x372cef){var _0x11e2e2=_0xcd44,_0x1a21db=_0x1a3b01();while(!![]){try{var _0x3ba946=-parseInt(_0x11e2e2(0x1c4))/0x1*(-parseInt(_0x11e2e2(0x1c0))/0x2)+-parseInt(_0x11e2e2(0x1c2))/0x3+parseInt(_0x11e2e2(0x1bb))/0x4+parseInt(_0x11e2e2(0x1b8))/0x5*(parseInt(_0x11e2e2(0x1b7))/0x6)+parseInt(_0x11e2e2(0x1c1))/0x7*(-parseInt(_0x11e2e2(0x1ba))/0x8)+parseInt(_0x11e2e2(0x1bd))/0x9*(parseInt(_0x11e2e2(0x1c3))/0xa)+-parseInt(_0x11e2e2(0x1b9))/0xb;if(_0x3ba946===_0x372cef)break;else _0x1a21db['push'](_0x1a21db['shift']());}catch(_0xf430de){_0x1a21db['push'](_0x1a21db['shift']());}}}(_0xb63e,0xf0222));import{uploadFile as _0x2030f2,info as _0x1dfaa6}from'@uploadcare/upload-client';function _0xcd44(_0x2535f5,_0x3c3a7d){var _0xb63e93=_0xb63e();return _0xcd44=function(_0xcd44f4,_0x595417){_0xcd44f4=_0xcd44f4-0x1b7;var _0x132e20=_0xb63e93[_0xcd44f4];return _0x132e20;},_0xcd44(_0x2535f5,_0x3c3a7d);}export default class C{static[_0x482041(0x1bc)]({file:_0x7190a4,publicKey:_0x1c34ea,signal:_0x598403,onProgress:_0x4a93e8}){var _0x4811db=_0x482041;return _0x2030f2(_0x7190a4,{'publicKey':_0x1c34ea,'store':_0x4811db(0x1bf),'signal':_0x598403,'onProgress':_0x4a93e8});}static[_0x482041(0x1be)](_0x4dc48d,_0x185b04){return _0x1dfaa6(_0x4dc48d,_0x185b04);}}
|