@ckeditor/ckeditor5-uploadcare 44.3.0-alpha.3 → 44.3.0-alpha.4
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 _0xab5082,ObservableMixin as _0x3d25ed}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4e9b8c}from'ckeditor5/src/ui.js';import _0x4cc00f from'./uploadcareimageeditformview.js';import _0x92dbee from'../../utils/uploadutils.js';import _0x4aa02e from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x2a18c6,getImageDimension as _0x3ce6e3}from'../../utils/editingutils.js';import{isAncestor as _0x5eea67}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3d25ed(){constructor(_0x1f8d88,_0x2eea78,_0x1f261b){super(),this['_editor']=_0x1f8d88,this['_dialog']=_0x2eea78,this['_imageElement']=_0x1f261b,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 _0x5b089c=this['_imageElement'],_0x5f31b1=_0x5b089c['getAttribute']('uploadcareImageId'),_0x52e4c3=_0x5b089c['getAttribute']('src');if(_0x5f31b1)await this['_loadImageInfo'](_0x5f31b1,_0x52e4c3);else{if(this['_imageCache']['has'](_0x52e4c3)){const _0x4b0524=this['_imageCache']['get'](_0x52e4c3);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4b0524['url'],this['imageDimension']=_0x4b0524['dimension'],this['imageId']=_0x4b0524['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5acd47}=this['_editor'],t=_0x5acd47['t'],_0x1a27c7=new _0x4cc00f(_0x5acd47,this['imageStatus'],this['_attributes']);_0x1a27c7['bind']('status')['to'](this,'imageStatus'),_0x1a27c7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1a27c7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1a27c7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1a27c7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4aa02e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1a27c7,'position':_0x4e9b8c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1a27c7['focus']();},'onHide':()=>{_0x1a27c7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x45a9c0=>!_0x5eea67(_0x45a9c0,_0x1a27c7['element'])}});}['_loadImageInfo'](_0x552e68,_0x5ff95c){return _0x92dbee['getInfo'](_0x552e68,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x317c72=>{const {width:_0xb19ac6,height:_0x190a39}=_0x317c72['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ff95c,this['imageDimension']={'width':_0xb19ac6,'height':_0x190a39},this['imageId']=_0x552e68;})['catch'](_0x25c6d5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x25c6d5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x422a26,_0x1839dd){return this['_getImageAsFile'](_0x422a26)['then'](_0x2f1c20=>_0x92dbee['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1839dd['signal'],'file':_0x2f1c20,'onProgress':_0x4e6f1d=>{_0x4e6f1d&&_0x4e6f1d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4e6f1d['value']));}}))['then'](_0x297a7a=>{const {width:_0x2ad2e0,height:_0x1dedde}=_0x297a7a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x297a7a['cdnUrl'],this['imageDimension']={'width':_0x2ad2e0,'height':_0x1dedde},this['imageId']=_0x297a7a['uuid'],this['imageUploadProgress']=null;const _0x1531b3=_0x422a26['getAttribute']('src');this['_imageCache']['set'](_0x1531b3,{'id':_0x297a7a['uuid'],'url':_0x297a7a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xb1aa96=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xb1aa96['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1ed00e,_0x520a9b){_0x1ed00e['on']('apply',(_0x395605,_0x4f7f8f)=>{this['_replaceImage'](_0x520a9b,_0x4f7f8f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1ed00e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1ed00e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x46c08b,_0x4c41fa,_0x2faa73){const _0x213b26=this['_editor'],{width:_0x27ff5b,height:_0x43cdbe}=_0x3ce6e3(_0x4c41fa,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x183c3f,imageSources:_0x3368cc}=_0x2a18c6(_0x4c41fa,_0x27ff5b);_0x213b26['model']['change'](_0x15a81e=>{if('$graveyard'===_0x46c08b['root']['rootName']){_0x213b26['execute']('insertImage',{'imageType':_0x46c08b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x46c08b['getAttributes']()),'uploadcareImageId':_0x2faa73,'src':_0x183c3f,'sources':_0x3368cc,'width':_0x27ff5b,'height':_0x43cdbe}});const _0x1bb7c9=_0x46c08b['getChildren']();_0x46c08b=_0x213b26['model']['document']['selection']['getSelectedElement']();for(const _0x10377b of _0x1bb7c9)_0x15a81e['append'](_0x15a81e['cloneElement'](_0x10377b),_0x46c08b);}else _0x15a81e['setSelection'](_0x46c08b,'on'),_0x213b26['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x46c08b['getAttributes']()),'uploadcareImageId':_0x2faa73,'src':_0x183c3f,'sources':_0x3368cc,'width':_0x27ff5b,'height':_0x43cdbe},_0x46c08b);_0x15a81e['setSelection'](_0x46c08b,'on');});}async['_getImageAsFile'](_0x5bc417){const _0x4c28a3=_0xab5082['window'],_0x2480a5=_0xab5082['document']['location']['href'],_0x3f99e1=new _0x4c28a3['URL'](_0x5bc417['getAttribute']('src'),_0x2480a5);if('data:'===_0x3f99e1['protocol']){const _0x30ac3d=_0x3f99e1['href']['split'](','),_0x2cf642=_0x30ac3d[0x0]['match'](/:(.*?);/)[0x1],_0x15ce3e=_0x2cf642['split']('/')[0x1],_0x310499=_0x4c28a3['atob'](_0x30ac3d[_0x30ac3d['length']-0x1]);let _0xadf927=_0x310499['length'];const _0x5b4775=new _0x4c28a3['Uint8Array'](_0xadf927);for(;_0xadf927--;)_0x5b4775[_0xadf927]=_0x310499['charCodeAt'](_0xadf927);return new _0x4c28a3['File']([_0x5b4775],'image.'+_0x15ce3e,{'type':_0x2cf642});}const _0x4e16bc=_0x3f99e1['href']['split']('/'),_0x50b614=_0x4e16bc[_0x4e16bc['length']-0x1],_0x2c77c1=_0x50b614['split']('.')[0x1];return _0x4c28a3['fetch'](_0x3f99e1['href'])['then'](_0x1a0cc3=>_0x1a0cc3['clone']()['blob']())['then'](_0x35409d=>new _0x4c28a3['File']([_0x35409d],_0x50b614,{'type':'image/'+_0x2c77c1}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1caf(_0x5788ca,_0xdb7f3f){const _0x30c20c=_0x30c2();return _0x1caf=function(_0x1cafd1,_0x2f7f24){_0x1cafd1=_0x1cafd1-0x1f4;let _0x4c9d51=_0x30c20c[_0x1cafd1];return _0x4c9d51;},_0x1caf(_0x5788ca,_0xdb7f3f);}(function(_0x527ce3,_0x558d39){const _0x26c8d3=_0x1caf,_0x2dfc01=_0x527ce3();while(!![]){try{const _0x2e81f5=-parseInt(_0x26c8d3(0x1f8))/0x1+-parseInt(_0x26c8d3(0x1fc))/0x2*(-parseInt(_0x26c8d3(0x1ff))/0x3)+parseInt(_0x26c8d3(0x1f9))/0x4+parseInt(_0x26c8d3(0x202))/0x5*(parseInt(_0x26c8d3(0x1f6))/0x6)+-parseInt(_0x26c8d3(0x1f7))/0x7*(-parseInt(_0x26c8d3(0x204))/0x8)+-parseInt(_0x26c8d3(0x203))/0x9+-parseInt(_0x26c8d3(0x1f4))/0xa;if(_0x2e81f5===_0x558d39)break;else _0x2dfc01['push'](_0x2dfc01['shift']());}catch(_0x3ce165){_0x2dfc01['push'](_0x2dfc01['shift']());}}}(_0x30c2,0x4cf5f));function _0x30c2(){const _0x22b540=['1790631PbFOuR','1760mvfdzG','imageSrc','1631170MZMpPs','bindTemplate','4668yrXGOH','2331YrTtfD','502498UHIfgu','963168huywfI','uc-cloud-image-editor','uc-light','2OqKlIg','ck-uploadcare-theme','setTemplate','1654323VPzvLh','set','image-edit','2020VsUrxf'];_0x30c2=function(){return _0x22b540;};return _0x30c2();}import{View as _0x348fa9}from'ckeditor5/src/ui.js';export default class tt extends _0x348fa9{constructor(_0x3f1813,_0x3fbdac){const _0x3d3959=_0x1caf;super(_0x3f1813);const _0x4f1e54=this[_0x3d3959(0x1f5)];this[_0x3d3959(0x200)](_0x3d3959(0x205),''),this[_0x3d3959(0x1fe)]({'tag':_0x3d3959(0x1fa),'attributes':{..._0x3fbdac,'class':[_0x3d3959(0x1fb),_0x3d3959(0x1fd)],'ctx-name':_0x3d3959(0x201),'cdn-url':_0x4f1e54['to'](_0x3d3959(0x205))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x20d531,IconView as et,View as _0x4a4f24}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x4a4f24{constructor(_0x44eec6){super(_0x44eec6);const t=_0x44eec6['t'];this['set']('errorType',null);const _0x4d938e=new _0x20d531(_0x44eec6);_0x4d938e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4d938e['withText']=!0x0,_0x4d938e['class']='ck-button-action',_0x4d938e['on']('execute',()=>{this['fire']('retry');}),_0x4d938e['bind']('isVisible')['to'](this,'errorType',_0x14e36a=>'NotFound'!==_0x14e36a);const _0xbe4e62=new et();_0xbe4e62['content']=at,_0xbe4e62['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5633c8=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':[_0xbe4e62,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5633c8['to']('errorType',_0x10bfd3=>t('NotFound'!==_0x10bfd3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4d938e]},{'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 _0x545b9f,View as _0x267838}from'ckeditor5/src/ui.js';export default class ta extends _0x267838{constructor(_0x1d809f){super(_0x1d809f);const t=_0x1d809f['t'],_0x443495=this['bindTemplate'],_0x28069d=new _0x545b9f();_0x28069d['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':[_0x28069d,{'text':_0x443495['to']('imageUploadProgress',_0x9cbb2b=>t('Loading\x20image...')+'\x20('+(_0x9cbb2b||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 _0x52fce=_0x16d9;(function(_0x3883fb,_0x3279bb){const _0x4ad822=_0x16d9,_0x217adb=_0x3883fb();while(!![]){try{const _0x1cb68f=parseInt(_0x4ad822(0xce))/0x1*(-parseInt(_0x4ad822(0xe9))/0x2)+-parseInt(_0x4ad822(0xe3))/0x3+-parseInt(_0x4ad822(0xc2))/0x4+-parseInt(_0x4ad822(0xe8))/0x5+parseInt(_0x4ad822(0xc8))/0x6*(parseInt(_0x4ad822(0xc1))/0x7)+parseInt(_0x4ad822(0xbf))/0x8*(parseInt(_0x4ad822(0xe4))/0x9)+parseInt(_0x4ad822(0xde))/0xa;if(_0x1cb68f===_0x3279bb)break;else _0x217adb['push'](_0x217adb['shift']());}catch(_0x51047b){_0x217adb['push'](_0x217adb['shift']());}}}(_0xb8e2,0x3a7e5));import{View as _0x45d09f}from'ckeditor5/src/ui.js';import _0x3b9aa9 from'./uploadcareimageeditformloadingview.js';import _0x4935d5 from'./uploadcareimageeditformerrorview.js';function _0xb8e2(){const _0x1b7912=['ck-uploadcare-form','addedNodes','uploading','cancel','uc-cloud-image-editor','status','clear','render','8YUNqXY','element','14bovCXH','172176PLflYE','_focusableView','_waitForImageEditorComponent','_addErrorViewListeners','getFocusableElement','length','566178TeTlqg','_items','apply','createCollection','_addUploadcareImageEditorListeners','change:status','5eNXgbe','target','_editingView','div','disconnect','focus','nodeName','detail','observe','_errorView','add','filter','setTemplate','addMany','_setView','fire','5842190HXXrzE','ck-reset_all-excluded','error','ready','cdnUrl','88713jBOrMm','1649187znbbZy','set','once','retry','1366695izZPVw','148258wPzIda','toLowerCase','querySelector','_loadingView','addEventListener'];_0xb8e2=function(){return _0x1b7912;};return _0xb8e2();}import _0x351bf0 from'./uploadcareimageeditformeditingview.js';function _0x16d9(_0x26484e,_0xacdb49){const _0xb8e21e=_0xb8e2();return _0x16d9=function(_0x16d9ba,_0x58f4ed){_0x16d9ba=_0x16d9ba-0xb9;let _0x5574e4=_0xb8e21e[_0x16d9ba];return _0x5574e4;},_0x16d9(_0x26484e,_0xacdb49);}import _0x58c861 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x58c861{constructor(_0x17f6aa,_0x5d0d69,_0x55ee1e){const _0x113cb7=_0x16d9;super(_0x17f6aa),this[_0x113cb7(0xc9)]=this[_0x113cb7(0xcb)](),this[_0x113cb7(0xec)]=new _0x3b9aa9(_0x17f6aa),this[_0x113cb7(0xd7)]=new _0x4935d5(_0x17f6aa),this[_0x113cb7(0xd0)]=new _0x351bf0(_0x17f6aa,_0x55ee1e),this[_0x113cb7(0xc3)]=new _0x45d09f(_0x17f6aa),this[_0x113cb7(0xc3)][_0x113cb7(0xda)](this[_0x113cb7(0xc6)]()),this[_0x113cb7(0xe5)](_0x113cb7(0xbc),_0x5d0d69),this[_0x113cb7(0xda)]({'tag':_0x113cb7(0xd1),'attributes':{'class':['ck',_0x113cb7(0xdf),_0x113cb7(0xee)],'tabindex':'-1'},'children':this[_0x113cb7(0xc9)]}),this[_0x113cb7(0xdc)](),this[_0x113cb7(0xe6)](_0x113cb7(0xbe),()=>{const _0x25248f=_0x113cb7;this[_0x25248f(0xc4)](this[_0x25248f(0xc0)],_0x1e8c9c=>{const _0x92a2bc=_0x25248f;this[_0x92a2bc(0xcc)](_0x1e8c9c);});}),this['on'](_0x113cb7(0xcd),()=>{const _0x4f03c9=_0x113cb7;this[_0x4f03c9(0xdc)]();}),this[_0x113cb7(0xc5)]();}[_0x52fce(0xd3)](){const _0x2fd06a=_0x52fce;this[_0x2fd06a(0xc0)][_0x2fd06a(0xd3)]();}[_0x52fce(0xdc)](){const _0x184c84=_0x52fce;switch(this[_0x184c84(0xc9)][_0x184c84(0xbd)](),this[_0x184c84(0xbc)]){case _0x184c84(0xb9):this[_0x184c84(0xc9)][_0x184c84(0xd8)](this[_0x184c84(0xec)]);break;case _0x184c84(0xe0):this[_0x184c84(0xc9)][_0x184c84(0xd8)](this[_0x184c84(0xd7)]);break;case _0x184c84(0xe1):this[_0x184c84(0xc9)][_0x184c84(0xdb)]([this[_0x184c84(0xd0)],this[_0x184c84(0xc3)]]);}}[_0x52fce(0xc4)](_0x56bd03,_0x49bc67){const _0x2a4682=_0x52fce,_0x18d7eb=_0x2a4682(0xbb),_0x25438c=_0x56bd03[_0x2a4682(0xeb)](_0x18d7eb);if(_0x25438c)return _0x49bc67(_0x25438c);const _0x40e6a7=new MutationObserver(_0xabf09e=>{const _0x280c35=_0x2a4682,_0x5cf462=_0xabf09e[_0x280c35(0xd9)](_0x4ee2db=>_0x4ee2db[_0x280c35(0xcf)]===_0x56bd03&&_0x4ee2db[_0x280c35(0xef)][_0x280c35(0xc7)]>0x0&&_0x4ee2db[_0x280c35(0xef)][0x0][_0x280c35(0xd4)][_0x280c35(0xea)]()===_0x18d7eb);_0x5cf462[_0x280c35(0xc7)]&&(_0x40e6a7[_0x280c35(0xd2)](),_0x49bc67(_0x5cf462[0x0][_0x280c35(0xef)][0x0]));});_0x40e6a7[_0x2a4682(0xd6)](_0x56bd03,{'childList':!0x0,'subtree':!0x0});}[_0x52fce(0xcc)](_0x3b07e5){const _0x1bf2e8=_0x52fce;_0x3b07e5[_0x1bf2e8(0xed)](_0x1bf2e8(0xca),_0x513879=>{const _0x39c9df=_0x1bf2e8;this[_0x39c9df(0xdd)](_0x39c9df(0xca),{'imageSrc':_0x513879[_0x39c9df(0xd5)][_0x39c9df(0xe2)]});}),_0x3b07e5[_0x1bf2e8(0xed)](_0x1bf2e8(0xba),()=>{const _0x39cfe7=_0x1bf2e8;this[_0x39cfe7(0xdd)](_0x39cfe7(0xba));});}[_0x52fce(0xc5)](){const _0x1b864e=_0x52fce;this[_0x1b864e(0xd7)]['on'](_0x1b864e(0xe7),()=>{const _0x4d480c=_0x1b864e;this[_0x4d480c(0xdd)](_0x4d480c(0xe7));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58ee08=_0x33ec;(function(_0x5cb87f,_0x4e54d6){const _0x11be14=_0x33ec,_0x3f1c64=_0x5cb87f();while(!![]){try{const _0x3af808=parseInt(_0x11be14(0xed))/0x1+-parseInt(_0x11be14(0xeb))/0x2+parseInt(_0x11be14(0xd4))/0x3*(parseInt(_0x11be14(0xd8))/0x4)+-parseInt(_0x11be14(0xd1))/0x5*(parseInt(_0x11be14(0xde))/0x6)+-parseInt(_0x11be14(0xe3))/0x7+parseInt(_0x11be14(0xe6))/0x8*(parseInt(_0x11be14(0xe5))/0x9)+parseInt(_0x11be14(0xdd))/0xa;if(_0x3af808===_0x4e54d6)break;else _0x3f1c64['push'](_0x3f1c64['shift']());}catch(_0x5e363c){_0x3f1c64['push'](_0x3f1c64['shift']());}}}(_0x46f9,0xe4df6));import{Command as _0x38cf6a}from'ckeditor5/src/core.js';function _0x33ec(_0x446a18,_0x3d1a05){const _0x46f9c=_0x46f9();return _0x33ec=function(_0x33ec91,_0x2b0ae){_0x33ec91=_0x33ec91-0xcf;let _0x258eb6=_0x46f9c[_0x33ec91];return _0x258eb6;},_0x33ec(_0x446a18,_0x3d1a05);}import{Dialog as _0x506549}from'ckeditor5/src/ui.js';import _0x2c4289 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x502cef}from'../utils/editingutils.js';function _0x46f9(){const _0x579759=['521981hCblBj','element','_isEditable','model','65020xeJhFs','uploadcare.allowExternalImagesEditing','config','31284cmdvsd','get','imageBlock','plugins','52cqjoJh','selection','document','refresh','set','9131680eHWatt','42OpUXsT','isActive','execute','requires','bind','2046065PgzXkA','getSelectedElement','369zfXWdU','314536oAIYyp','unbind','imageEditController','editor','isEnabled','3723850MDvBlP','imageInline'];_0x46f9=function(){return _0x579759;};return _0x46f9();}export default class J extends _0x38cf6a{static get[_0x58ee08(0xe1)](){return[_0x506549];}constructor(_0x536be3){const _0x3b85d9=_0x58ee08;super(_0x536be3),this[_0x3b85d9(0xe8)]=void 0x0,this[_0x3b85d9(0xcf)]=_0x502cef(_0x536be3[_0x3b85d9(0xd3)][_0x3b85d9(0xd5)](_0x3b85d9(0xd2))||[]),this[_0x3b85d9(0xdc)]({'isActive':!0x1});}[_0x58ee08(0xdb)](){const _0x27a1c8=_0x58ee08,_0xcda302=this[_0x27a1c8(0xe9)][_0x27a1c8(0xd0)][_0x27a1c8(0xda)][_0x27a1c8(0xd9)][_0x27a1c8(0xe4)]();this[_0x27a1c8(0xea)]=this[_0x27a1c8(0xcf)](_0xcda302);}[_0x58ee08(0xe0)](){const _0x53846b=_0x58ee08;this[_0x53846b(0xe8)]&&(this[_0x53846b(0xe7)](_0x53846b(0xdf)),this[_0x53846b(0xe8)]=void 0x0);const _0xdfce87=this[_0x53846b(0xe9)][_0x53846b(0xd0)][_0x53846b(0xda)][_0x53846b(0xd9)][_0x53846b(0xe4)]();_0xdfce87&&(_0xdfce87['is'](_0x53846b(0xee),_0x53846b(0xd6))||_0xdfce87['is'](_0x53846b(0xee),_0x53846b(0xec)))&&(this[_0x53846b(0xe8)]=new _0x2c4289(this[_0x53846b(0xe9)],this[_0x53846b(0xe9)][_0x53846b(0xd7)][_0x53846b(0xd5)](_0x506549),_0xdfce87),this[_0x53846b(0xe2)](_0x53846b(0xdf))['to'](this[_0x53846b(0xe8)],_0x53846b(0xdf)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x415f15=_0x1dd7;(function(_0xb4838f,_0x48927e){const _0x254b36=_0x1dd7,_0x344922=_0xb4838f();while(!![]){try{const _0x2bea7f=parseInt(_0x254b36(0x75))/0x1+parseInt(_0x254b36(0x70))/0x2*(-parseInt(_0x254b36(0x77))/0x3)+parseInt(_0x254b36(0x7e))/0x4+-parseInt(_0x254b36(0x6d))/0x5+parseInt(_0x254b36(0x6c))/0x6+-parseInt(_0x254b36(0x6e))/0x7+-parseInt(_0x254b36(0x79))/0x8;if(_0x2bea7f===_0x48927e)break;else _0x344922['push'](_0x344922['shift']());}catch(_0x52f541){_0x344922['push'](_0x344922['shift']());}}}(_0x3fe1,0x19db0));import{Plugin as _0x4ee1b9}from'ckeditor5/src/core.js';function _0x1dd7(_0x7e81a7,_0xb20e75){const _0x3fe185=_0x3fe1();return _0x1dd7=function(_0x1dd70e,_0x24fc63){_0x1dd70e=_0x1dd70e-0x6b;let _0x285ac2=_0x3fe185[_0x1dd70e];return _0x285ac2;},_0x1dd7(_0x7e81a7,_0xb20e75);}import{Notification as _0x5bdc8d}from'ckeditor5/src/ui.js';import _0x179889 from'./uploadcareimageeditcommand.js';import _0x22118c from'./uploadcareimagereplacecommand.js';function _0x3fe1(){const _0x211fad=['isOfficialPlugin','isPremiumPlugin','ImageUtils','add','65335rwKOHu','pluginName','29535PCwFHW','uploadcareImageEdit','52992GbwQUV','UploadcareImageEditEditing','requires','init','uploadcareImageReplace','463116MljuWo','commands','1176972rWBrko','992640XescHM','50050yYsmui','ImageEditing','12OmHUdx'];_0x3fe1=function(){return _0x211fad;};return _0x3fe1();}import _0x1903fa from'../uploadcareediting.js';export default class m extends _0x4ee1b9{static get[_0x415f15(0x76)](){const _0x546a10=_0x415f15;return _0x546a10(0x7a);}static get[_0x415f15(0x7b)](){const _0x169e0f=_0x415f15;return[_0x1903fa,_0x5bdc8d,_0x169e0f(0x73),_0x169e0f(0x6f)];}static get[_0x415f15(0x71)](){return!0x0;}static get[_0x415f15(0x72)](){return!0x0;}[_0x415f15(0x7c)](){const _0x3291e4=_0x415f15,{editor:_0x466471}=this;_0x466471[_0x3291e4(0x6b)][_0x3291e4(0x74)](_0x3291e4(0x78),new _0x179889(_0x466471)),_0x466471[_0x3291e4(0x6b)][_0x3291e4(0x74)](_0x3291e4(0x7d),new _0x22118c(_0x466471));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x31e46d}from'ckeditor5/src/core.js';import{ButtonView as _0x4d280d}from'ckeditor5/src/ui.js';import{createElement as _0x378f12}from'ckeditor5/src/utils.js';import _0xe444e9 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 _0x31e46d{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 _0x474177=this['editor'];_0x474177['ui']['componentFactory']['add']('uploadcareImageEdit',_0x760b04=>{const _0x36192a=_0x474177['commands']['get']('uploadcareImageEdit'),_0x2f1db3=new _0x4d280d(_0x760b04),t=_0x760b04['t'];return _0x2f1db3['set']({'icon':_0xe444e9,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2f1db3['bind']('isEnabled')['to'](_0x36192a),_0x2f1db3['bind']('isOn')['to'](_0x36192a,'isActive'),this['listenTo'](_0x2f1db3,'execute',()=>{_0x474177['execute']('uploadcareImageEdit'),_0x474177['editing']['view']['focus']();}),_0x2f1db3;}),this['_initConfig']();}['_initConfig'](){const _0x3e91c5=_0x378f12(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3e91c5),this['listenTo'](this['editor'],'destroy',()=>{_0x3e91c5['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2df9dd=_0x3a89;function _0x3a89(_0x6b9ac5,_0x45ef95){const _0x3fad43=_0x3fad();return _0x3a89=function(_0x3a89c5,_0x84124e){_0x3a89c5=_0x3a89c5-0x117;let _0x3bf2ea=_0x3fad43[_0x3a89c5];return _0x3bf2ea;},_0x3a89(_0x6b9ac5,_0x45ef95);}(function(_0x578fdf,_0x1e519e){const _0xcabd8=_0x3a89,_0x3a3f5f=_0x578fdf();while(!![]){try{const _0x7828e7=-parseInt(_0xcabd8(0x12b))/0x1*(-parseInt(_0xcabd8(0x129))/0x2)+-parseInt(_0xcabd8(0x120))/0x3*(parseInt(_0xcabd8(0x12a))/0x4)+-parseInt(_0xcabd8(0x131))/0x5*(parseInt(_0xcabd8(0x130))/0x6)+-parseInt(_0xcabd8(0x119))/0x7+parseInt(_0xcabd8(0x117))/0x8*(-parseInt(_0xcabd8(0x121))/0x9)+parseInt(_0xcabd8(0x127))/0xa*(parseInt(_0xcabd8(0x11c))/0xb)+-parseInt(_0xcabd8(0x12f))/0xc*(-parseInt(_0xcabd8(0x12d))/0xd);if(_0x7828e7===_0x1e519e)break;else _0x3a3f5f['push'](_0x3a3f5f['shift']());}catch(_0x4ca470){_0x3a3f5f['push'](_0x3a3f5f['shift']());}}}(_0x3fad,0x712dc));import{Command as _0x5ec9f2}from'ckeditor5/src/core.js';export default class O extends _0x5ec9f2{[_0x2df9dd(0x128)](){const _0x23449c=_0x2df9dd,_0x484a26=this[_0x23449c(0x125)][_0x23449c(0x132)][_0x23449c(0x126)][_0x23449c(0x123)][_0x23449c(0x11f)]();this[_0x23449c(0x122)]=Boolean(_0x484a26&&(_0x484a26['is'](_0x23449c(0x11e),_0x23449c(0x12e))||_0x484a26['is'](_0x23449c(0x11e),_0x23449c(0x124))));}[_0x2df9dd(0x118)](_0x19c7ae){const _0x4f8477=_0x2df9dd,_0x3b28aa=this[_0x4f8477(0x125)][_0x4f8477(0x132)][_0x4f8477(0x126)][_0x4f8477(0x123)][_0x4f8477(0x11f)]();this[_0x4f8477(0x125)][_0x4f8477(0x132)][_0x4f8477(0x11d)](_0x5345b0=>{const _0x20fe83=_0x4f8477;_0x5345b0[_0x20fe83(0x11b)](_0x19c7ae,_0x3b28aa),_0x5345b0[_0x20fe83(0x12c)](_0x20fe83(0x11a),_0x3b28aa),_0x5345b0[_0x20fe83(0x12c)](_0x20fe83(0x133),_0x3b28aa);});}}function _0x3fad(){const _0x40b670=['210lwBxpe','refresh','92wswDrc','1674344XOdoIf','19541KwsXEb','removeAttribute','91xFUIyz','imageBlock','2750508BhgJgg','22704BRvgny','175QDaTzR','model','sizes','1628920fcAMOU','execute','3359391VYlVkZ','srcset','setAttributes','10791VsGhbA','change','element','getSelectedElement','6mInjta','27Hemzgy','isEnabled','selection','imageInline','editor','document'];_0x3fad=function(){return _0x40b670;};return _0x3fad();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xbfef(_0x1bb915,_0x39e725){var _0xf08672=_0xf086();return _0xbfef=function(_0xbfefd8,_0x59b6c7){_0xbfefd8=_0xbfefd8-0x19f;var _0x460581=_0xf08672[_0xbfefd8];return _0x460581;},_0xbfef(_0x1bb915,_0x39e725);}var _0x756b77=_0xbfef;(function(_0x57570d,_0x500374){var _0x36b72b=_0xbfef,_0x2ba4a6=_0x57570d();while(!![]){try{var _0x15aa70=parseInt(_0x36b72b(0x1a7))/0x1+-parseInt(_0x36b72b(0x1ab))/0x2*(-parseInt(_0x36b72b(0x1b0))/0x3)+parseInt(_0x36b72b(0x1a9))/0x4*(-parseInt(_0x36b72b(0x1a5))/0x5)+parseInt(_0x36b72b(0x1a2))/0x6*(-parseInt(_0x36b72b(0x1ad))/0x7)+parseInt(_0x36b72b(0x1af))/0x8+parseInt(_0x36b72b(0x1a1))/0x9*(parseInt(_0x36b72b(0x1aa))/0xa)+parseInt(_0x36b72b(0x1b1))/0xb;if(_0x15aa70===_0x500374)break;else _0x2ba4a6['push'](_0x2ba4a6['shift']());}catch(_0x326848){_0x2ba4a6['push'](_0x2ba4a6['shift']());}}}(_0xf086,0x3d43c));function _0xf086(){var _0x1e66c3=['427452ifKfeQ','getFocusableElement','div','20UOTPUs','bindTemplate','229244LrOvOz','focusTracker','260036NBUOzD','7640bMZYXT','27110ffJgQb','forwardCycle','49Qkqkma','fire','2633672FlGsGf','69WosHYJ','29656IZsWli','focusCycler','createCollection','true','1611RXtbJG'];_0xf086=function(){return _0x1e66c3;};return _0xf086();}import{FocusTracker as _0x4df6ed}from'ckeditor5/src/utils.js';import{View as _0x826c53,FocusCycler as _0x4460f4}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x826c53{constructor(_0x56ed10){var _0x246f3e=_0xbfef;super(_0x56ed10),this[_0x246f3e(0x1a8)]=new _0x4df6ed(),this[_0x246f3e(0x1b2)]=new _0x4460f4({'focusables':this[_0x246f3e(0x19f)](),'focusTracker':this[_0x246f3e(0x1a8)]});}[_0x756b77(0x1a3)](){var _0xc61158=_0x756b77;return{'tag':_0xc61158(0x1a4),'attributes':{'aria-hidden':_0xc61158(0x1a0),'tabindex':'0'},'on':{'focus':this[_0xc61158(0x1a6)]['to'](()=>{var _0x1b177c=_0xc61158;this[_0x1b177c(0x1b2)][_0x1b177c(0x1ae)](_0x1b177c(0x1ac));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x35724e,_0x32ae30){const _0x359f43=_0x1d79,_0x22c77b=_0x35724e();while(!![]){try{const _0x3bfc3b=parseInt(_0x359f43(0xa0))/0x1*(parseInt(_0x359f43(0x77))/0x2)+parseInt(_0x359f43(0x93))/0x3+parseInt(_0x359f43(0x91))/0x4*(-parseInt(_0x359f43(0xa2))/0x5)+parseInt(_0x359f43(0x8e))/0x6+parseInt(_0x359f43(0xa9))/0x7*(-parseInt(_0x359f43(0x9b))/0x8)+parseInt(_0x359f43(0x88))/0x9+-parseInt(_0x359f43(0x92))/0xa*(parseInt(_0x359f43(0x9d))/0xb);if(_0x3bfc3b===_0x32ae30)break;else _0x22c77b['push'](_0x22c77b['shift']());}catch(_0x2ecc94){_0x22c77b['push'](_0x22c77b['shift']());}}}(_0x336d,0xa326b));import{global as _0xa9e56f,DomEmitterMixin as _0x4ffacb}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x4290a2){const _0x4385e2=_0x1d79,_0x54f7b0=V(_0x4290a2);return _0x72af7c=>!(!_0x72af7c||!_0x72af7c['is'](_0x4385e2(0x84),_0x4385e2(0x79))&&!_0x72af7c['is'](_0x4385e2(0x84),_0x4385e2(0xa3)))&&(!!_0x72af7c[_0x4385e2(0xa1)](_0x4385e2(0x8b))||!!_0x72af7c[_0x4385e2(0xa1)](_0x4385e2(0x9f))&&_0x54f7b0(_0x72af7c[_0x4385e2(0x9c)](_0x4385e2(0x9f))));}function _0x336d(){const _0x45b235=['image-processing','10067985GGVXiV','stopListening','mapper','uploadcareImageId','px)\x20100vw,\x20','x/\x20','2409978EcsGig','replace','domConverter','36xTwBNN','279240Njvnmz','2191200UnhNhA','editing','image/webp','setStyle','listenTo','get','function','filter','1068056LjAMGJ','getAttribute','462LeJCxx','create','src','1EOSoxz','hasAttribute','407850jhvTYJ','imageInline','map','some','location','aspect-ratio','load','42bghtwG','change','findViewImgElement','document','baseURI','/-/resize/','width','plugins','toViewElement','2251038cVqwMP','viewToDom','imageBlock','window','addClass','ImageUtils','height','origin','view','match','(max-width:\x20','removeClass','removeStyle','element','isArray','join'];_0x336d=function(){return _0x45b235;};return _0x336d();}export function getImageUrls(_0x21526b,_0xcb8e74){const _0x39a935=_0x1d79,_0x4a24f3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x39a935(0x9a)](_0x53a15a=>_0x53a15a<=_0xcb8e74)[_0x39a935(0xa4)](_0x522b1d=>_0x21526b[_0x39a935(0x8f)](/\/$/,'')+_0x39a935(0xae)+_0x522b1d+_0x39a935(0x8d)+_0x522b1d+'w');return{'imageFallbackUrl':_0x21526b,'imageSources':[{'srcset':_0x4a24f3[_0x39a935(0x86)](',\x20'),'sizes':_0x39a935(0x81)+_0xcb8e74+_0x39a935(0x8c)+_0xcb8e74+'px','type':_0x39a935(0x95)}]};}export function getImageDimension(_0xc86fdb,_0x486e78,_0x9ca501){const _0x2d6942=_0x1d79,_0x21fe08=_0xc86fdb[_0x2d6942(0x80)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x21fe08?parseInt(_0x21fe08[0x1],0xa):_0x486e78,'height':_0x21fe08?parseInt(_0x21fe08[0x2],0xa):_0x9ca501};}export function showImageProcessingIndicator(_0x2143fb,_0x26f1fb){const _0x383e7c=_0x1d79,_0x2c42a0=Object[_0x383e7c(0x9e)](_0x4ffacb),_0x1ff86e=_0x2143fb[_0x383e7c(0x75)][_0x383e7c(0x98)](_0x383e7c(0x7c)),_0x5a63ee=_0x2143fb[_0x383e7c(0x94)][_0x383e7c(0x8a)][_0x383e7c(0x76)](_0x26f1fb),_0x5c567a=_0x1ff86e[_0x383e7c(0xab)](_0x5a63ee),_0x4e49f2=_0x2143fb[_0x383e7c(0x94)][_0x383e7c(0x7f)][_0x383e7c(0x90)][_0x383e7c(0x78)](_0x5c567a),_0x573b66=_0x26f1fb[_0x383e7c(0x9c)](_0x383e7c(0x74)),_0x312504=_0x26f1fb[_0x383e7c(0x9c)](_0x383e7c(0x7d)),_0x551d82=_0x383e7c(0x87);_0x2143fb[_0x383e7c(0x94)][_0x383e7c(0x7f)][_0x383e7c(0xaa)](_0x333e3a=>{const _0x17a200=_0x383e7c;_0x333e3a[_0x17a200(0x7b)](_0x551d82,_0x5a63ee),_0x333e3a[_0x17a200(0x96)](_0x17a200(0xa7),_0x573b66+'/'+_0x312504,_0x5c567a);}),_0x2c42a0[_0x383e7c(0x97)](_0x4e49f2,_0x383e7c(0xa8),()=>{const _0x3ccd48=_0x383e7c;_0x2c42a0[_0x3ccd48(0x89)](_0x4e49f2,_0x3ccd48(0xa8)),_0x2143fb[_0x3ccd48(0x94)][_0x3ccd48(0x7f)][_0x3ccd48(0xaa)](_0x159ef7=>{const _0x26bcd8=_0x3ccd48;_0x159ef7[_0x26bcd8(0x82)](_0x551d82,_0x5a63ee),_0x159ef7[_0x26bcd8(0x83)](_0x26bcd8(0xa7),_0x5c567a);});});}function _0x1d79(_0x5c837f,_0x50d185){const _0x336d84=_0x336d();return _0x1d79=function(_0x1d7931,_0x388fa2){_0x1d7931=_0x1d7931-0x74;let _0x4ecd88=_0x336d84[_0x1d7931];return _0x4ecd88;},_0x1d79(_0x5c837f,_0x50d185);}function V(_0x1a3ffa){const _0x52a8c6=_0x1d79;if(Array[_0x52a8c6(0x85)](_0x1a3ffa)){const _0x3c33c9=_0x1a3ffa[_0x52a8c6(0xa4)](V);return _0x3654c6=>_0x3c33c9[_0x52a8c6(0xa5)](_0x27c51b=>_0x27c51b(_0x3654c6));}if(_0x52a8c6(0x7e)==_0x1a3ffa){const _0x30f4bc=_0xa9e56f[_0x52a8c6(0x7a)][_0x52a8c6(0xa6)][_0x52a8c6(0x7e)];return _0x1ca918=>new URL(_0x1ca918,_0xa9e56f[_0x52a8c6(0xac)][_0x52a8c6(0xad)])[_0x52a8c6(0x7e)]==_0x30f4bc;}return _0x52a8c6(0x99)==typeof _0x1a3ffa?_0x1a3ffa:_0x1a3ffa instanceof RegExp?_0x47976e=>!(!_0x47976e[_0x52a8c6(0x80)](_0x1a3ffa)&&!_0x47976e[_0x52a8c6(0x8f)](/^https?:\/\//,'')[_0x52a8c6(0x80)](_0x1a3ffa)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x256e20,_0x503c82){var _0x43dc9f=_0x5bc9,_0x5d5747=_0x256e20();while(!![]){try{var _0x5eeb48=parseInt(_0x43dc9f(0xdd))/0x1*(parseInt(_0x43dc9f(0xe5))/0x2)+parseInt(_0x43dc9f(0xe3))/0x3*(-parseInt(_0x43dc9f(0xdc))/0x4)+-parseInt(_0x43dc9f(0xdf))/0x5+-parseInt(_0x43dc9f(0xe2))/0x6+-parseInt(_0x43dc9f(0xe4))/0x7*(parseInt(_0x43dc9f(0xe6))/0x8)+parseInt(_0x43dc9f(0xde))/0x9+parseInt(_0x43dc9f(0xe0))/0xa;if(_0x5eeb48===_0x503c82)break;else _0x5d5747['push'](_0x5d5747['shift']());}catch(_0x541a04){_0x5d5747['push'](_0x5d5747['shift']());}}}(_0x4124,0x5f344));function _0x4124(){var _0x2b2cab=['includes','551516ibVJXA','1409MeyYtn','3710394mNTXzu','1186390ppbDaB','16644630hwGDpE','target','849540RhkiUu','15NyXuzD','450982AhfuHh','128JVnWER','88huvQbN'];_0x4124=function(){return _0x2b2cab;};return _0x4124();}function _0x5bc9(_0x462452,_0x6bdcb0){var _0x4124b3=_0x4124();return _0x5bc9=function(_0x5bc9c2,_0x261372){_0x5bc9c2=_0x5bc9c2-0xdc;var _0x190c32=_0x4124b3[_0x5bc9c2];return _0x190c32;},_0x5bc9(_0x462452,_0x6bdcb0);}import{getAncestors as _0x561ca8}from'ckeditor5/src/utils.js';export function isAncestor(_0x3a2160,_0x39fbb7){var _0x541e50=_0x5bc9;return _0x561ca8(_0x3a2160[_0x541e50(0xe1)])[_0x541e50(0xe7)](_0x39fbb7);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1df7(){var _0x4d0e48=['11397778HNFddE','102vhzpKQ','getInfo','185bSsBTW','5764dhiTyM','10NEqVJZ','8knnOoJ','9294144HoQJhY','1513130bBtpcM','upload','764550cYDXQA','98882sZqclY','auto','22268422IkJbut'];_0x1df7=function(){return _0x4d0e48;};return _0x1df7();}var _0x436461=_0x2669;function _0x2669(_0x41383e,_0x7cdb14){var _0x1df7e8=_0x1df7();return _0x2669=function(_0x266918,_0x249959){_0x266918=_0x266918-0x198;var _0x2a4a48=_0x1df7e8[_0x266918];return _0x2a4a48;},_0x2669(_0x41383e,_0x7cdb14);}(function(_0xeba108,_0x506ec4){var _0x3ba3cb=_0x2669,_0x486f8b=_0xeba108();while(!![]){try{var _0x39b19a=parseInt(_0x3ba3cb(0x1a5))/0x1+parseInt(_0x3ba3cb(0x19a))/0x2*(-parseInt(_0x3ba3cb(0x19e))/0x3)+parseInt(_0x3ba3cb(0x1a1))/0x4*(-parseInt(_0x3ba3cb(0x1a0))/0x5)+parseInt(_0x3ba3cb(0x1a4))/0x6+-parseInt(_0x3ba3cb(0x19d))/0x7*(-parseInt(_0x3ba3cb(0x1a3))/0x8)+-parseInt(_0x3ba3cb(0x199))/0x9+parseInt(_0x3ba3cb(0x1a2))/0xa*(-parseInt(_0x3ba3cb(0x19c))/0xb);if(_0x39b19a===_0x506ec4)break;else _0x486f8b['push'](_0x486f8b['shift']());}catch(_0x4cc3a4){_0x486f8b['push'](_0x486f8b['shift']());}}}(_0x1df7,0xceb99));import{uploadFile as _0x122507,info as _0x1c03f7}from'@uploadcare/upload-client';export default class k{static[_0x436461(0x198)]({file:_0x1ee53b,publicKey:_0x596f79,signal:_0x5374d7,onProgress:_0x3ed759}){var _0x4e9659=_0x436461;return _0x122507(_0x1ee53b,{'publicKey':_0x596f79,'store':_0x4e9659(0x19b),'signal':_0x5374d7,'onProgress':_0x3ed759});}static[_0x436461(0x19f)](_0x23dec4,_0x3a0df0){return _0x1c03f7(_0x23dec4,_0x3a0df0);}}
|