@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250202.0 → 0.0.0-nightly-20250203.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 _0x5bb027,ObservableMixin as _0xb113a3}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3c4c7e}from'ckeditor5/src/ui.js';import _0x18e432 from'./uploadcareimageeditformview.js';import _0x159ce8 from'../../utils/uploadutils.js';import _0x7b3c3e from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0xbafbd1,getImageDimension as _0x10442c}from'../../utils/editingutils.js';import{isAncestor as _0x262b82}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xb113a3(){constructor(_0x397375,_0x36340d,_0xa279bf){super(),this['_editor']=_0x397375,this['_dialog']=_0x36340d,this['_imageElement']=_0xa279bf,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 _0x133adb=this['_imageElement'],_0x10f810=_0x133adb['getAttribute']('uploadcareImageId'),_0x4c78b4=_0x133adb['getAttribute']('src');if(_0x10f810)await this['_loadImageInfo'](_0x10f810,_0x4c78b4);else{if(this['_imageCache']['has'](_0x4c78b4)){const _0x2ad927=this['_imageCache']['get'](_0x4c78b4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ad927['url'],this['imageDimension']=_0x2ad927['dimension'],this['imageId']=_0x2ad927['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1f94a8}=this['_editor'],t=_0x1f94a8['t'],_0x49e318=new _0x18e432(_0x1f94a8,this['imageStatus'],this['_attributes']);_0x49e318['bind']('status')['to'](this,'imageStatus'),_0x49e318['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x49e318['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x49e318['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x49e318,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x7b3c3e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x49e318,'position':_0x3c4c7e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x49e318['focus']();},'onHide':()=>{_0x49e318['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x327c32=>!_0x262b82(_0x327c32,_0x49e318['element'])}});}['_loadImageInfo'](_0x37712a,_0x32dfaf){return _0x159ce8['getInfo'](_0x37712a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5af0ee=>{const {width:_0x4b656c,height:_0x9b2288}=_0x5af0ee['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32dfaf,this['imageDimension']={'width':_0x4b656c,'height':_0x9b2288},this['imageId']=_0x37712a;})['catch'](_0x172724=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x172724['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5bf4e8,_0x21a90e){return this['_getImageAsFile'](_0x5bf4e8)['then'](_0x28e3a2=>_0x159ce8['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x21a90e['signal'],'file':_0x28e3a2,'onProgress':_0x3b3a50=>{_0x3b3a50&&_0x3b3a50['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3b3a50['value']));}}))['then'](_0x207e88=>{const {width:_0x3418bd,height:_0x37e0b1}=_0x207e88['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x207e88['cdnUrl'],this['imageDimension']={'width':_0x3418bd,'height':_0x37e0b1},this['imageId']=_0x207e88['uuid'],this['imageUploadProgress']=null;const _0x396cc9=_0x5bf4e8['getAttribute']('src');this['_imageCache']['set'](_0x396cc9,{'id':_0x207e88['uuid'],'url':_0x207e88['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xf7c04=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xf7c04['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x45a4b2,_0x46d7f5){_0x45a4b2['on']('apply',(_0x297b97,_0xc8f67b)=>{this['_replaceImage'](_0x46d7f5,_0xc8f67b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x45a4b2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x45a4b2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x38a831,_0x2f43fd,_0x263f33){const _0x5a4046=this['_editor'],{width:_0x25acd1,height:_0x1892c0}=_0x10442c(_0x2f43fd,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x6975e0,imageSources:_0xaeabcd}=_0xbafbd1(_0x2f43fd,_0x25acd1);_0x5a4046['model']['change'](_0x328c2e=>{if('$graveyard'===_0x38a831['root']['rootName']){_0x5a4046['execute']('insertImage',{'imageType':_0x38a831['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x38a831['getAttributes']()),'uploadcareImageId':_0x263f33,'src':_0x6975e0,'sources':_0xaeabcd,'width':_0x25acd1,'height':_0x1892c0}});const _0x4b04d1=_0x38a831['getChildren']();_0x38a831=_0x5a4046['model']['document']['selection']['getSelectedElement']();for(const _0x13031f of _0x4b04d1)_0x328c2e['append'](_0x328c2e['cloneElement'](_0x13031f),_0x38a831);}else _0x328c2e['setSelection'](_0x38a831,'on'),_0x5a4046['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x38a831['getAttributes']()),'uploadcareImageId':_0x263f33,'src':_0x6975e0,'sources':_0xaeabcd,'width':_0x25acd1,'height':_0x1892c0},_0x38a831);_0x328c2e['setSelection'](_0x38a831,'on');});}async['_getImageAsFile'](_0x154c72){const _0x2a0dc0=_0x5bb027['window'],_0x5d7a27=_0x5bb027['document']['location']['href'],_0x11cced=new _0x2a0dc0['URL'](_0x154c72['getAttribute']('src'),_0x5d7a27);if('data:'===_0x11cced['protocol']){const _0x5f0ad7=_0x11cced['href']['split'](','),_0x594ace=_0x5f0ad7[0x0]['match'](/:(.*?);/)[0x1],_0x567b7c=_0x594ace['split']('/')[0x1],_0x2c81fb=_0x2a0dc0['atob'](_0x5f0ad7[_0x5f0ad7['length']-0x1]);let _0x2a8d29=_0x2c81fb['length'];const _0x350a43=new _0x2a0dc0['Uint8Array'](_0x2a8d29);for(;_0x2a8d29--;)_0x350a43[_0x2a8d29]=_0x2c81fb['charCodeAt'](_0x2a8d29);return new _0x2a0dc0['File']([_0x350a43],'image.'+_0x567b7c,{'type':_0x594ace});}const _0x26a508=_0x11cced['href']['split']('/'),_0x53318e=_0x26a508[_0x26a508['length']-0x1],_0x417d08=_0x53318e['split']('.')[0x1];return _0x2a0dc0['fetch'](_0x11cced['href'])['then'](_0x20ad7d=>_0x20ad7d['clone']()['blob']())['then'](_0xe8cde2=>new _0x2a0dc0['File']([_0xe8cde2],_0x53318e,{'type':'image/'+_0x417d08}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x5ce7(_0x1ba6fe,_0x516caf){const _0x2bf816=_0x2bf8();return _0x5ce7=function(_0x5ce73d,_0x387934){_0x5ce73d=_0x5ce73d-0x1c1;let _0x1d1158=_0x2bf816[_0x5ce73d];return _0x1d1158;},_0x5ce7(_0x1ba6fe,_0x516caf);}(function(_0x2612d0,_0x5ec2cb){const _0x26e0b9=_0x5ce7,_0x3e14a0=_0x2612d0();while(!![]){try{const _0x479a42=-parseInt(_0x26e0b9(0x1c9))/0x1*(-parseInt(_0x26e0b9(0x1c5))/0x2)+-parseInt(_0x26e0b9(0x1c7))/0x3+-parseInt(_0x26e0b9(0x1c1))/0x4*(parseInt(_0x26e0b9(0x1ce))/0x5)+parseInt(_0x26e0b9(0x1cf))/0x6*(parseInt(_0x26e0b9(0x1c3))/0x7)+-parseInt(_0x26e0b9(0x1d4))/0x8+-parseInt(_0x26e0b9(0x1cc))/0x9*(parseInt(_0x26e0b9(0x1d1))/0xa)+-parseInt(_0x26e0b9(0x1c4))/0xb*(-parseInt(_0x26e0b9(0x1c6))/0xc);if(_0x479a42===_0x5ec2cb)break;else _0x3e14a0['push'](_0x3e14a0['shift']());}catch(_0x1e1ac2){_0x3e14a0['push'](_0x3e14a0['shift']());}}}(_0x2bf8,0x5e11d));import{View as _0x49a317}from'ckeditor5/src/ui.js';function _0x2bf8(){const _0x44c76b=['151362JxGRxR','bindTemplate','119435ONKHrt','6hxSHez','set','130BEwgLm','imageSrc','ck-uploadcare-theme','324672FfgmUA','20XNidKY','image-edit','3166611ylDGyW','2498485XYUnDn','484xolKEL','36wfIJHE','1971936smFboS','setTemplate','1188THdHUr','uc-cloud-image-editor','uc-light'];_0x2bf8=function(){return _0x44c76b;};return _0x2bf8();}export default class tt extends _0x49a317{constructor(_0x214933,_0xf10937){const _0x47839c=_0x5ce7;super(_0x214933);const _0xdf0dc1=this[_0x47839c(0x1cd)];this[_0x47839c(0x1d0)](_0x47839c(0x1d2),''),this[_0x47839c(0x1c8)]({'tag':_0x47839c(0x1ca),'attributes':{..._0xf10937,'class':[_0x47839c(0x1cb),_0x47839c(0x1d3)],'ctx-name':_0x47839c(0x1c2),'cdn-url':_0xdf0dc1['to'](_0x47839c(0x1d2))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0xc3b65c,IconView as et,View as _0x1c56da}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x1c56da{constructor(_0x44a081){super(_0x44a081);const t=_0x44a081['t'];this['set']('errorType',null);const _0x4a08f7=new _0xc3b65c(_0x44a081);_0x4a08f7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4a08f7['withText']=!0x0,_0x4a08f7['class']='ck-button-action',_0x4a08f7['on']('execute',()=>{this['fire']('retry');}),_0x4a08f7['bind']('isVisible')['to'](this,'errorType',_0x1dcb42=>'NotFound'!==_0x1dcb42);const _0x2a304c=new et();_0x2a304c['content']=at,_0x2a304c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2acfe2=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':[_0x2a304c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2acfe2['to']('errorType',_0x524b18=>t('NotFound'!==_0x524b18?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4a08f7]},{'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 _0x575bb8,View as _0x55ce8c}from'ckeditor5/src/ui.js';export default class ta extends _0x55ce8c{constructor(_0x25d591){super(_0x25d591);const t=_0x25d591['t'],_0x496743=this['bindTemplate'],_0xf16d23=new _0x575bb8();_0xf16d23['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':[_0xf16d23,{'text':_0x496743['to']('imageUploadProgress',_0x5e467d=>t('Loading\x20image...')+'\x20('+(_0x5e467d||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 _0x182c78=_0x1dc4;(function(_0x5ac02f,_0x12002c){const _0xa1db4d=_0x1dc4,_0x3dee0b=_0x5ac02f();while(!![]){try{const _0x151cce=-parseInt(_0xa1db4d(0x137))/0x1+parseInt(_0xa1db4d(0x118))/0x2+parseInt(_0xa1db4d(0x139))/0x3*(parseInt(_0xa1db4d(0x13d))/0x4)+parseInt(_0xa1db4d(0x13c))/0x5*(parseInt(_0xa1db4d(0x11d))/0x6)+parseInt(_0xa1db4d(0x134))/0x7*(-parseInt(_0xa1db4d(0x125))/0x8)+parseInt(_0xa1db4d(0x12e))/0x9*(parseInt(_0xa1db4d(0x141))/0xa)+-parseInt(_0xa1db4d(0x121))/0xb*(-parseInt(_0xa1db4d(0x120))/0xc);if(_0x151cce===_0x12002c)break;else _0x3dee0b['push'](_0x3dee0b['shift']());}catch(_0x5d82a8){_0x3dee0b['push'](_0x3dee0b['shift']());}}}(_0x5987,0x3b936));function _0x1dc4(_0x1f7014,_0x5579de){const _0x598789=_0x5987();return _0x1dc4=function(_0x1dc472,_0x2e41f3){_0x1dc472=_0x1dc472-0x10d;let _0x2e62ab=_0x598789[_0x1dc472];return _0x2e62ab;},_0x1dc4(_0x1f7014,_0x5579de);}import{View as _0x104ad5}from'ckeditor5/src/ui.js';import _0x1c5b69 from'./uploadcareimageeditformloadingview.js';import _0x25e4fa from'./uploadcareimageeditformerrorview.js';import _0x21a7a2 from'./uploadcareimageeditformeditingview.js';function _0x5987(){const _0x41c105=['10iMgPtb','disconnect','addEventListener','add','length','retry','ready','fire','status','clear','ck-uploadcare-form','uploading','set','_errorView','filter','detail','99052QDmDui','_editingView','_focusableView','apply','createCollection','6LuCwOn','nodeName','change:status','708564PibstZ','88PQhKTi','error','cancel','setTemplate','1208eYkYEu','once','render','toLowerCase','div','querySelector','_setView','observe','ck-reset_all-excluded','1848213ssqsVJ','cdnUrl','uc-cloud-image-editor','_loadingView','addedNodes','_waitForImageEditorComponent','20741dcKgwO','getFocusableElement','addMany','440700jFhXJX','_addErrorViewListeners','501QwmgTs','target','_items','837845jaDPOE','5684TVjvkc','_addUploadcareImageEditorListeners','focus','element'];_0x5987=function(){return _0x41c105;};return _0x5987();}import _0x2a9f0e from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class ii extends _0x2a9f0e{constructor(_0x5bbf82,_0x2e8b7d,_0x2a8753){const _0x53f43e=_0x1dc4;super(_0x5bbf82),this[_0x53f43e(0x13b)]=this[_0x53f43e(0x11c)](),this[_0x53f43e(0x131)]=new _0x1c5b69(_0x5bbf82),this[_0x53f43e(0x115)]=new _0x25e4fa(_0x5bbf82),this[_0x53f43e(0x119)]=new _0x21a7a2(_0x5bbf82,_0x2a8753),this[_0x53f43e(0x11a)]=new _0x104ad5(_0x5bbf82),this[_0x53f43e(0x11a)][_0x53f43e(0x124)](this[_0x53f43e(0x135)]()),this[_0x53f43e(0x114)](_0x53f43e(0x110),_0x2e8b7d),this[_0x53f43e(0x124)]({'tag':_0x53f43e(0x129),'attributes':{'class':['ck',_0x53f43e(0x12d),_0x53f43e(0x112)],'tabindex':'-1'},'children':this[_0x53f43e(0x13b)]}),this[_0x53f43e(0x12b)](),this[_0x53f43e(0x126)](_0x53f43e(0x127),()=>{const _0x222fae=_0x53f43e;this[_0x222fae(0x133)](this[_0x222fae(0x140)],_0x44ad1a=>{const _0x32355b=_0x222fae;this[_0x32355b(0x13e)](_0x44ad1a);});}),this['on'](_0x53f43e(0x11f),()=>{const _0x2984d2=_0x53f43e;this[_0x2984d2(0x12b)]();}),this[_0x53f43e(0x138)]();}[_0x182c78(0x13f)](){const _0x2b3afe=_0x182c78;this[_0x2b3afe(0x140)][_0x2b3afe(0x13f)]();}[_0x182c78(0x12b)](){const _0x1708bd=_0x182c78;switch(this[_0x1708bd(0x13b)][_0x1708bd(0x111)](),this[_0x1708bd(0x110)]){case _0x1708bd(0x113):this[_0x1708bd(0x13b)][_0x1708bd(0x144)](this[_0x1708bd(0x131)]);break;case _0x1708bd(0x122):this[_0x1708bd(0x13b)][_0x1708bd(0x144)](this[_0x1708bd(0x115)]);break;case _0x1708bd(0x10e):this[_0x1708bd(0x13b)][_0x1708bd(0x136)]([this[_0x1708bd(0x119)],this[_0x1708bd(0x11a)]]);}}[_0x182c78(0x133)](_0x13cd45,_0x278b7a){const _0x7f9bee=_0x182c78,_0x504c18=_0x7f9bee(0x130),_0x3b302c=_0x13cd45[_0x7f9bee(0x12a)](_0x504c18);if(_0x3b302c)return _0x278b7a(_0x3b302c);const _0x552f6b=new MutationObserver(_0xb3827b=>{const _0x5843c6=_0x7f9bee,_0x4e1c2a=_0xb3827b[_0x5843c6(0x116)](_0x33a8ed=>_0x33a8ed[_0x5843c6(0x13a)]===_0x13cd45&&_0x33a8ed[_0x5843c6(0x132)][_0x5843c6(0x145)]>0x0&&_0x33a8ed[_0x5843c6(0x132)][0x0][_0x5843c6(0x11e)][_0x5843c6(0x128)]()===_0x504c18);_0x4e1c2a[_0x5843c6(0x145)]&&(_0x552f6b[_0x5843c6(0x142)](),_0x278b7a(_0x4e1c2a[0x0][_0x5843c6(0x132)][0x0]));});_0x552f6b[_0x7f9bee(0x12c)](_0x13cd45,{'childList':!0x0,'subtree':!0x0});}[_0x182c78(0x13e)](_0x1b524a){const _0x17d5d1=_0x182c78;_0x1b524a[_0x17d5d1(0x143)](_0x17d5d1(0x11b),_0x1011b1=>{const _0x486db8=_0x17d5d1;this[_0x486db8(0x10f)](_0x486db8(0x11b),{'imageSrc':_0x1011b1[_0x486db8(0x117)][_0x486db8(0x12f)]});}),_0x1b524a[_0x17d5d1(0x143)](_0x17d5d1(0x123),()=>{const _0x284137=_0x17d5d1;this[_0x284137(0x10f)](_0x284137(0x123));});}[_0x182c78(0x138)](){const _0x2450ce=_0x182c78;this[_0x2450ce(0x115)]['on'](_0x2450ce(0x10d),()=>{const _0x29750d=_0x2450ce;this[_0x29750d(0x10f)](_0x29750d(0x10d));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2728(_0x57b4f2,_0x186181){const _0x5205d0=_0x5205();return _0x2728=function(_0x272807,_0x2b1cdc){_0x272807=_0x272807-0x8e;let _0x5a3db4=_0x5205d0[_0x272807];return _0x5a3db4;},_0x2728(_0x57b4f2,_0x186181);}const _0x492478=_0x2728;(function(_0x3421fc,_0x15a3b4){const _0x3317b9=_0x2728,_0x2d5c11=_0x3421fc();while(!![]){try{const _0xd1d119=-parseInt(_0x3317b9(0xae))/0x1*(parseInt(_0x3317b9(0x93))/0x2)+parseInt(_0x3317b9(0xa8))/0x3*(parseInt(_0x3317b9(0x9f))/0x4)+-parseInt(_0x3317b9(0x91))/0x5+-parseInt(_0x3317b9(0x95))/0x6+-parseInt(_0x3317b9(0x97))/0x7*(parseInt(_0x3317b9(0x9b))/0x8)+parseInt(_0x3317b9(0x94))/0x9*(parseInt(_0x3317b9(0xa1))/0xa)+parseInt(_0x3317b9(0x92))/0xb;if(_0xd1d119===_0x15a3b4)break;else _0x2d5c11['push'](_0x2d5c11['shift']());}catch(_0xebe7a8){_0x2d5c11['push'](_0x2d5c11['shift']());}}}(_0x5205,0x196de));import{Command as _0x1121e3}from'ckeditor5/src/core.js';import{Dialog as _0x4d3813}from'ckeditor5/src/ui.js';function _0x5205(){const _0xa0773c=['223773GDjWFv','element','imageInline','set','uploadcare.allowExternalImagesEditing','refresh','183649mmKWlf','getSelectedElement','isActive','get','516305pKPDkt','5120753HGTkKv','2QMnZRi','1241784lxycip','1203924XjsPoB','selection','37786LMvqyv','execute','editor','imageBlock','128KHuXwP','imageEditController','document','model','4KQsYdT','requires','10ugvILE','isEnabled','config','plugins','_isEditable','bind','unbind'];_0x5205=function(){return _0xa0773c;};return _0x5205();}import _0x1804bc from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2b0bc1}from'../utils/editingutils.js';export default class J extends _0x1121e3{static get[_0x492478(0xa0)](){return[_0x4d3813];}constructor(_0x13f2c8){const _0x3418c1=_0x492478;super(_0x13f2c8),this[_0x3418c1(0x9c)]=void 0x0,this[_0x3418c1(0xa5)]=_0x2b0bc1(_0x13f2c8[_0x3418c1(0xa3)][_0x3418c1(0x90)](_0x3418c1(0xac))||[]),this[_0x3418c1(0xab)]({'isActive':!0x1});}[_0x492478(0xad)](){const _0x5936e4=_0x492478,_0x1ac954=this[_0x5936e4(0x99)][_0x5936e4(0x9e)][_0x5936e4(0x9d)][_0x5936e4(0x96)][_0x5936e4(0x8e)]();this[_0x5936e4(0xa2)]=this[_0x5936e4(0xa5)](_0x1ac954);}[_0x492478(0x98)](){const _0x42c3e3=_0x492478;this[_0x42c3e3(0x9c)]&&(this[_0x42c3e3(0xa7)](_0x42c3e3(0x8f)),this[_0x42c3e3(0x9c)]=void 0x0);const _0x54bc11=this[_0x42c3e3(0x99)][_0x42c3e3(0x9e)][_0x42c3e3(0x9d)][_0x42c3e3(0x96)][_0x42c3e3(0x8e)]();_0x54bc11&&(_0x54bc11['is'](_0x42c3e3(0xa9),_0x42c3e3(0x9a))||_0x54bc11['is'](_0x42c3e3(0xa9),_0x42c3e3(0xaa)))&&(this[_0x42c3e3(0x9c)]=new _0x1804bc(this[_0x42c3e3(0x99)],this[_0x42c3e3(0x99)][_0x42c3e3(0xa4)][_0x42c3e3(0x90)](_0x4d3813),_0x54bc11),this[_0x42c3e3(0xa6)](_0x42c3e3(0x8f))['to'](this[_0x42c3e3(0x9c)],_0x42c3e3(0x8f)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x339642=_0x6705;(function(_0x370889,_0x3a46e5){const _0x1d0ba5=_0x6705,_0x20b917=_0x370889();while(!![]){try{const _0x39d00c=parseInt(_0x1d0ba5(0x85))/0x1*(parseInt(_0x1d0ba5(0x7e))/0x2)+parseInt(_0x1d0ba5(0x92))/0x3*(-parseInt(_0x1d0ba5(0x89))/0x4)+-parseInt(_0x1d0ba5(0x81))/0x5+-parseInt(_0x1d0ba5(0x7d))/0x6+-parseInt(_0x1d0ba5(0x8b))/0x7*(parseInt(_0x1d0ba5(0x8e))/0x8)+parseInt(_0x1d0ba5(0x83))/0x9+parseInt(_0x1d0ba5(0x90))/0xa;if(_0x39d00c===_0x3a46e5)break;else _0x20b917['push'](_0x20b917['shift']());}catch(_0x312c0b){_0x20b917['push'](_0x20b917['shift']());}}}(_0x5f6b,0x93760));import{Plugin as _0x4e0578}from'ckeditor5/src/core.js';import{Notification as _0x53f68c}from'ckeditor5/src/ui.js';function _0x5f6b(){const _0x4ecb3c=['ImageEditing','128zRgkNS','uploadcareImageReplace','35DBMLWR','ImageUtils','pluginName','691112DnXKDz','init','13762970aGuSrn','isOfficialPlugin','34761wCCZcw','3403296cSbGro','16862qAnuJH','requires','add','1399765mpxoop','uploadcareImageEdit','4939128mDiTpR','isPremiumPlugin','39IyvpRv','UploadcareImageEditEditing','commands'];_0x5f6b=function(){return _0x4ecb3c;};return _0x5f6b();}function _0x6705(_0x1ed5fc,_0x2a7b47){const _0x5f6b9c=_0x5f6b();return _0x6705=function(_0x67055b,_0x527fbb){_0x67055b=_0x67055b-0x7d;let _0x29f717=_0x5f6b9c[_0x67055b];return _0x29f717;},_0x6705(_0x1ed5fc,_0x2a7b47);}import _0x4b07e3 from'./uploadcareimageeditcommand.js';import _0x2ce26c from'./uploadcareimagereplacecommand.js';import _0x37178b from'../uploadcareediting.js';export default class m extends _0x4e0578{static get[_0x339642(0x8d)](){const _0x5a2d81=_0x339642;return _0x5a2d81(0x86);}static get[_0x339642(0x7f)](){const _0x4b979b=_0x339642;return[_0x37178b,_0x53f68c,_0x4b979b(0x8c),_0x4b979b(0x88)];}static get[_0x339642(0x91)](){return!0x0;}static get[_0x339642(0x84)](){return!0x0;}[_0x339642(0x8f)](){const _0x850e90=_0x339642,{editor:_0x438f3c}=this;_0x438f3c[_0x850e90(0x87)][_0x850e90(0x80)](_0x850e90(0x82),new _0x4b07e3(_0x438f3c)),_0x438f3c[_0x850e90(0x87)][_0x850e90(0x80)](_0x850e90(0x8a),new _0x2ce26c(_0x438f3c));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x31ca02}from'ckeditor5/src/core.js';import{ButtonView as _0x31c09a}from'ckeditor5/src/ui.js';import{createElement as _0x261254}from'ckeditor5/src/utils.js';import _0x41f4ee 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 _0x31ca02{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 _0x58b749=this['editor'];_0x58b749['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2762ee=>{const _0x183677=_0x58b749['commands']['get']('uploadcareImageEdit'),_0x60cdd6=new _0x31c09a(_0x2762ee),t=_0x2762ee['t'];return _0x60cdd6['set']({'icon':_0x41f4ee,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x60cdd6['bind']('isEnabled')['to'](_0x183677),_0x60cdd6['bind']('isOn')['to'](_0x183677,'isActive'),this['listenTo'](_0x60cdd6,'execute',()=>{_0x58b749['execute']('uploadcareImageEdit'),_0x58b749['editing']['view']['focus']();}),_0x60cdd6;}),this['_initConfig']();}['_initConfig'](){const _0x346efb=_0x261254(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x346efb),this['listenTo'](this['editor'],'destroy',()=>{_0x346efb['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0xd30f52=_0x1d6e;function _0x239e(){const _0x25f042=['model','change','612GXpKBh','isEnabled','12XCFTIw','217bkxEdj','228745RujKQM','execute','2966uBEsWl','2710500CZWAVD','editor','getSelectedElement','element','selection','document','4812054CQEABo','srcset','setAttributes','345380OLxjmn','imageInline','248337OVvPnx','sizes','171KNSunt','8dFaZzV','1736441fFjLNC','refresh','imageBlock','removeAttribute'];_0x239e=function(){return _0x25f042;};return _0x239e();}(function(_0x229239,_0x36fe58){const _0x72623a=_0x1d6e,_0x496155=_0x229239();while(!![]){try{const _0x334a43=-parseInt(_0x72623a(0x122))/0x1*(-parseInt(_0x72623a(0x125))/0x2)+parseInt(_0x72623a(0x131))/0x3*(-parseInt(_0x72623a(0x121))/0x4)+parseInt(_0x72623a(0x126))/0x5+-parseInt(_0x72623a(0x12c))/0x6+-parseInt(_0x72623a(0x119))/0x7*(-parseInt(_0x72623a(0x118))/0x8)+-parseInt(_0x72623a(0x133))/0x9*(parseInt(_0x72623a(0x12f))/0xa)+parseInt(_0x72623a(0x123))/0xb*(parseInt(_0x72623a(0x11f))/0xc);if(_0x334a43===_0x36fe58)break;else _0x496155['push'](_0x496155['shift']());}catch(_0x56b09f){_0x496155['push'](_0x496155['shift']());}}}(_0x239e,0x71c1f));import{Command as _0x219382}from'ckeditor5/src/core.js';function _0x1d6e(_0x297a60,_0x3f42ca){const _0x239e4f=_0x239e();return _0x1d6e=function(_0x1d6e5e,_0xb3c4bc){_0x1d6e5e=_0x1d6e5e-0x118;let _0x4d1779=_0x239e4f[_0x1d6e5e];return _0x4d1779;},_0x1d6e(_0x297a60,_0x3f42ca);}export default class O extends _0x219382{[_0xd30f52(0x11a)](){const _0x4f7333=_0xd30f52,_0x56792e=this[_0x4f7333(0x127)][_0x4f7333(0x11d)][_0x4f7333(0x12b)][_0x4f7333(0x12a)][_0x4f7333(0x128)]();this[_0x4f7333(0x120)]=Boolean(_0x56792e&&(_0x56792e['is'](_0x4f7333(0x129),_0x4f7333(0x11b))||_0x56792e['is'](_0x4f7333(0x129),_0x4f7333(0x130))));}[_0xd30f52(0x124)](_0x3ba0e9){const _0xf5e4fc=_0xd30f52,_0x2df4e8=this[_0xf5e4fc(0x127)][_0xf5e4fc(0x11d)][_0xf5e4fc(0x12b)][_0xf5e4fc(0x12a)][_0xf5e4fc(0x128)]();this[_0xf5e4fc(0x127)][_0xf5e4fc(0x11d)][_0xf5e4fc(0x11e)](_0x53cf57=>{const _0x217dee=_0xf5e4fc;_0x53cf57[_0x217dee(0x12e)](_0x3ba0e9,_0x2df4e8),_0x53cf57[_0x217dee(0x11c)](_0x217dee(0x12d),_0x2df4e8),_0x53cf57[_0x217dee(0x11c)](_0x217dee(0x132),_0x2df4e8);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x121e97=_0x1b29;(function(_0x33b410,_0x231f50){var _0x332194=_0x1b29,_0x501a78=_0x33b410();while(!![]){try{var _0x571663=parseInt(_0x332194(0x17b))/0x1+-parseInt(_0x332194(0x177))/0x2*(-parseInt(_0x332194(0x17f))/0x3)+parseInt(_0x332194(0x17d))/0x4+parseInt(_0x332194(0x176))/0x5+parseInt(_0x332194(0x17c))/0x6*(parseInt(_0x332194(0x185))/0x7)+parseInt(_0x332194(0x178))/0x8+-parseInt(_0x332194(0x17a))/0x9;if(_0x571663===_0x231f50)break;else _0x501a78['push'](_0x501a78['shift']());}catch(_0x43e09f){_0x501a78['push'](_0x501a78['shift']());}}}(_0x51df,0x1f8a9));import{FocusTracker as _0x3e083d}from'ckeditor5/src/utils.js';function _0x51df(){var _0x316307=['true','286740TZQRHa','22PoFhTe','1543048VzPcJJ','focusTracker','7600905xjqfFM','186305UMSjXg','82638vKMGmS','801016uMsfMk','fire','58089gvHvsW','createCollection','div','forwardCycle','getFocusableElement','bindTemplate','63aeDdxG','focusCycler'];_0x51df=function(){return _0x316307;};return _0x51df();}import{View as _0x369eef,FocusCycler as _0x725644}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x1b29(_0x3ef949,_0x1c965a){var _0x51df36=_0x51df();return _0x1b29=function(_0x1b2904,_0xff84fc){_0x1b2904=_0x1b2904-0x175;var _0x13b9f4=_0x51df36[_0x1b2904];return _0x13b9f4;},_0x1b29(_0x3ef949,_0x1c965a);}export default class q extends _0x369eef{constructor(_0x252729){var _0x451490=_0x1b29;super(_0x252729),this[_0x451490(0x179)]=new _0x3e083d(),this[_0x451490(0x186)]=new _0x725644({'focusables':this[_0x451490(0x180)](),'focusTracker':this[_0x451490(0x179)]});}[_0x121e97(0x183)](){var _0x3d293c=_0x121e97;return{'tag':_0x3d293c(0x181),'attributes':{'aria-hidden':_0x3d293c(0x175),'tabindex':'0'},'on':{'focus':this[_0x3d293c(0x184)]['to'](()=>{var _0x1b896=_0x3d293c;this[_0x1b896(0x186)][_0x1b896(0x17e)](_0x1b896(0x182));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x5aabb4,_0x1b91f1){const _0x995f07=_0x2339,_0x2255b5=_0x5aabb4();while(!![]){try{const _0x2bcf04=parseInt(_0x995f07(0x101))/0x1*(parseInt(_0x995f07(0x110))/0x2)+parseInt(_0x995f07(0xdc))/0x3*(-parseInt(_0x995f07(0xf0))/0x4)+-parseInt(_0x995f07(0x10b))/0x5+parseInt(_0x995f07(0xf1))/0x6+parseInt(_0x995f07(0xef))/0x7*(parseInt(_0x995f07(0x108))/0x8)+-parseInt(_0x995f07(0xe8))/0x9+-parseInt(_0x995f07(0xe4))/0xa*(-parseInt(_0x995f07(0xe0))/0xb);if(_0x2bcf04===_0x1b91f1)break;else _0x2255b5['push'](_0x2255b5['shift']());}catch(_0xecf030){_0x2255b5['push'](_0x2255b5['shift']());}}}(_0x5a8a,0x637f9));function _0x2339(_0x347d9e,_0x229824){const _0x5a8a65=_0x5a8a();return _0x2339=function(_0x2339c0,_0x292e2f){_0x2339c0=_0x2339c0-0xd9;let _0x512e2d=_0x5a8a65[_0x2339c0];return _0x512e2d;},_0x2339(_0x347d9e,_0x229824);}import{global as _0x9c6048,DomEmitterMixin as _0x3e0f60}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x399bc2){const _0x346a5e=_0x2339,_0x3430f3=W(_0x399bc2);return _0x183b37=>!(!_0x183b37||!_0x183b37['is'](_0x346a5e(0xfd),_0x346a5e(0x105))&&!_0x183b37['is'](_0x346a5e(0xfd),_0x346a5e(0xe7)))&&(!!_0x183b37[_0x346a5e(0xeb)](_0x346a5e(0x10c))||!!_0x183b37[_0x346a5e(0xeb)](_0x346a5e(0xe6))&&_0x3430f3(_0x183b37[_0x346a5e(0xd9)](_0x346a5e(0xe6))));}export function getImageUrls(_0x14ad3a,_0x34cf90){const _0x6c8c39=_0x2339,_0x45fe6f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x6c8c39(0x10a)](_0x54abd2=>_0x54abd2<=_0x34cf90)[_0x6c8c39(0xdd)](_0x50c218=>_0x14ad3a[_0x6c8c39(0x106)](/\/$/,'')+_0x6c8c39(0xe5)+_0x50c218+_0x6c8c39(0xf9)+_0x50c218+'w');return{'imageFallbackUrl':_0x14ad3a,'imageSources':[{'srcset':_0x45fe6f[_0x6c8c39(0xff)](',\x20'),'sizes':_0x6c8c39(0xe9)+_0x34cf90+_0x6c8c39(0xe2)+_0x34cf90+'px','type':_0x6c8c39(0xfa)}]};}export function getImageDimension(_0x29b59f,_0x2064ef,_0x25997e){const _0x377d82=_0x2339,_0x2736df=_0x29b59f[_0x377d82(0x100)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2736df?parseInt(_0x2736df[0x1],0xa):_0x2064ef,'height':_0x2736df?parseInt(_0x2736df[0x2],0xa):_0x25997e};}function _0x5a8a(){const _0x2cf26e=['create','hasAttribute','some','change','load','63Csnmmi','3908BteEPU','797952QjTzfa','listenTo','removeClass','location','height','image-processing','viewToDom','mapper','x/\x20','image/webp','isArray','stopListening','element','addClass','join','match','4RszFam','removeStyle','ImageUtils','aspect-ratio','imageBlock','replace','toViewElement','142864aRBxnc','domConverter','filter','2899665WxIxKR','uploadcareImageId','width','baseURI','get','16838FtkbZP','view','window','findViewImgElement','getAttribute','origin','setStyle','816udfAEn','map','function','plugins','429033KHsfOr','editing','px)\x20100vw,\x20','document','250hknIay','/-/resize/','src','imageInline','443187qrmazM','(max-width:\x20'];_0x5a8a=function(){return _0x2cf26e;};return _0x5a8a();}export function showImageProcessingIndicator(_0x1c359b,_0x54d2a7){const _0x4d825d=_0x2339,_0x1844c5=Object[_0x4d825d(0xea)](_0x3e0f60),_0x89d1d0=_0x1c359b[_0x4d825d(0xdf)][_0x4d825d(0x10f)](_0x4d825d(0x103)),_0x14464f=_0x1c359b[_0x4d825d(0xe1)][_0x4d825d(0xf8)][_0x4d825d(0x107)](_0x54d2a7),_0x455202=_0x89d1d0[_0x4d825d(0x113)](_0x14464f),_0x23c840=_0x1c359b[_0x4d825d(0xe1)][_0x4d825d(0x111)][_0x4d825d(0x109)][_0x4d825d(0xf7)](_0x455202),_0x815b70=_0x54d2a7[_0x4d825d(0xd9)](_0x4d825d(0x10d)),_0x1fdd4c=_0x54d2a7[_0x4d825d(0xd9)](_0x4d825d(0xf5)),_0x41c0f3=_0x4d825d(0xf6);_0x1c359b[_0x4d825d(0xe1)][_0x4d825d(0x111)][_0x4d825d(0xed)](_0x334d34=>{const _0x275127=_0x4d825d;_0x334d34[_0x275127(0xfe)](_0x41c0f3,_0x14464f),_0x334d34[_0x275127(0xdb)](_0x275127(0x104),_0x815b70+'/'+_0x1fdd4c,_0x455202);}),_0x1844c5[_0x4d825d(0xf2)](_0x23c840,_0x4d825d(0xee),()=>{const _0x38c530=_0x4d825d;_0x1844c5[_0x38c530(0xfc)](_0x23c840,_0x38c530(0xee)),_0x1c359b[_0x38c530(0xe1)][_0x38c530(0x111)][_0x38c530(0xed)](_0x5c50eb=>{const _0x40618b=_0x38c530;_0x5c50eb[_0x40618b(0xf3)](_0x41c0f3,_0x14464f),_0x5c50eb[_0x40618b(0x102)](_0x40618b(0x104),_0x455202);});});}function W(_0x398491){const _0x33ad1a=_0x2339;if(Array[_0x33ad1a(0xfb)](_0x398491)){const _0x48ff04=_0x398491[_0x33ad1a(0xdd)](W);return _0x37c94f=>_0x48ff04[_0x33ad1a(0xec)](_0x23f580=>_0x23f580(_0x37c94f));}if(_0x33ad1a(0xda)==_0x398491){const _0x24f708=_0x9c6048[_0x33ad1a(0x112)][_0x33ad1a(0xf4)][_0x33ad1a(0xda)];return _0x2f7df1=>new URL(_0x2f7df1,_0x9c6048[_0x33ad1a(0xe3)][_0x33ad1a(0x10e)])[_0x33ad1a(0xda)]==_0x24f708;}return _0x33ad1a(0xde)==typeof _0x398491?_0x398491:_0x398491 instanceof RegExp?_0xa03d6b=>!(!_0xa03d6b[_0x33ad1a(0x100)](_0x398491)&&!_0xa03d6b[_0x33ad1a(0x106)](/^https?:\/\//,'')[_0x33ad1a(0x100)](_0x398491)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5c8c49,_0x1197a9){var _0x3efd1e=_0x52c3,_0x35bcf4=_0x5c8c49();while(!![]){try{var _0x2d6c2b=parseInt(_0x3efd1e(0xae))/0x1+parseInt(_0x3efd1e(0xb1))/0x2+parseInt(_0x3efd1e(0xb5))/0x3+parseInt(_0x3efd1e(0xb6))/0x4*(parseInt(_0x3efd1e(0xb4))/0x5)+-parseInt(_0x3efd1e(0xaf))/0x6+-parseInt(_0x3efd1e(0xb3))/0x7+-parseInt(_0x3efd1e(0xad))/0x8;if(_0x2d6c2b===_0x1197a9)break;else _0x35bcf4['push'](_0x35bcf4['shift']());}catch(_0x67266e){_0x35bcf4['push'](_0x35bcf4['shift']());}}}(_0x2fe3,0x40323));function _0x2fe3(){var _0x60dd53=['includes','972026qtdhbf','target','1016148fFSEvK','30RAqMVk','763410AltxAe','78940VjbcIp','2986248QvUzFw','409159wNSYGw','2919960IEOJYu'];_0x2fe3=function(){return _0x60dd53;};return _0x2fe3();}function _0x52c3(_0x31d729,_0x55475d){var _0x2fe3f3=_0x2fe3();return _0x52c3=function(_0x52c3d6,_0xd74bc4){_0x52c3d6=_0x52c3d6-0xad;var _0x439428=_0x2fe3f3[_0x52c3d6];return _0x439428;},_0x52c3(_0x31d729,_0x55475d);}import{getAncestors as _0x353acf}from'ckeditor5/src/utils.js';export function isAncestor(_0x2cd9f5,_0x41465e){var _0x1a968a=_0x52c3;return _0x353acf(_0x2cd9f5[_0x1a968a(0xb2)])[_0x1a968a(0xb0)](_0x41465e);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3974(_0xcf85fe,_0x33e9f5){var _0x379b20=_0x379b();return _0x3974=function(_0x397437,_0x38eca3){_0x397437=_0x397437-0x72;var _0x443160=_0x379b20[_0x397437];return _0x443160;},_0x3974(_0xcf85fe,_0x33e9f5);}var _0xdfacde=_0x3974;(function(_0x5d275e,_0x3c5a6f){var _0x571ab9=_0x3974,_0x5e2704=_0x5d275e();while(!![]){try{var _0x5cabd8=parseInt(_0x571ab9(0x7b))/0x1*(-parseInt(_0x571ab9(0x75))/0x2)+parseInt(_0x571ab9(0x7a))/0x3+-parseInt(_0x571ab9(0x73))/0x4+-parseInt(_0x571ab9(0x76))/0x5+parseInt(_0x571ab9(0x78))/0x6+-parseInt(_0x571ab9(0x74))/0x7+-parseInt(_0x571ab9(0x77))/0x8*(-parseInt(_0x571ab9(0x72))/0x9);if(_0x5cabd8===_0x3c5a6f)break;else _0x5e2704['push'](_0x5e2704['shift']());}catch(_0x1e6703){_0x5e2704['push'](_0x5e2704['shift']());}}}(_0x379b,0x1a20e));import{uploadFile as _0x4af09c,info as _0x32eb4d}from'@uploadcare/upload-client';export default class C{static[_0xdfacde(0x7c)]({file:_0x311251,publicKey:_0x4a96e7,signal:_0x53b45c,onProgress:_0x2d0992}){var _0x42115a=_0xdfacde;return _0x4af09c(_0x311251,{'publicKey':_0x4a96e7,'store':_0x42115a(0x7d),'signal':_0x53b45c,'onProgress':_0x2d0992});}static[_0xdfacde(0x79)](_0x161800,_0x475a63){return _0x32eb4d(_0x161800,_0x475a63);}}function _0x379b(){var _0x504d9f=['497693RBHkgl','6eXLYoH','354325FFqfIr','982104TjCXcx','668334HvbmpN','getInfo','360393bjOeTa','28331ouGCLn','upload','auto','9NxItxD','81216RVjyty'];_0x379b=function(){return _0x504d9f;};return _0x379b();}
|