@ckeditor/ckeditor5-uploadcare 44.2.0-alpha.13 → 44.2.0-alpha.14
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 _0x56c258,ObservableMixin as _0xb64977}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0xa41faa}from'ckeditor5/src/ui.js';import _0x4452cf from'./uploadcareimageeditformview.js';import _0x54d9df from'../../utils/uploadutils.js';import _0x21950a from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0xe0e64c,getImageDimension as _0x175b07}from'../../utils/editingutils.js';import{isAncestor as _0x44d5f4}from'../../utils/isancestor.js';export default class O extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xb64977(){constructor(_0xc57f00,_0x3db250,_0xd85310){super(),this['_editor']=_0xc57f00,this['_dialog']=_0x3db250,this['_imageElement']=_0xd85310,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 _0x26cbb4=this['_imageElement'],_0x4d850a=_0x26cbb4['getAttribute']('uploadcareImageId'),_0x47b4d2=_0x26cbb4['getAttribute']('src');if(_0x4d850a)await this['_loadImageInfo'](_0x4d850a,_0x47b4d2);else{if(this['_imageCache']['has'](_0x47b4d2)){const _0x518712=this['_imageCache']['get'](_0x47b4d2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x518712['url'],this['imageDimension']=_0x518712['dimension'],this['imageId']=_0x518712['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xf81a82}=this['_editor'],t=_0xf81a82['t'],_0x89fa7=new _0x4452cf(_0xf81a82,this['imageStatus'],this['_attributes']);_0x89fa7['bind']('status')['to'](this,'imageStatus'),_0x89fa7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x89fa7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x89fa7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x89fa7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x21950a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x89fa7,'position':_0xa41faa['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x89fa7['focus']();},'onHide':()=>{_0x89fa7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xf18461=>!_0x44d5f4(_0xf18461,_0x89fa7['element'])}});}['_loadImageInfo'](_0x5d1593,_0x2553f8){return _0x54d9df['getInfo'](_0x5d1593,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x40c006=>{const {width:_0x248da7,height:_0x4ca47e}=_0x40c006['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2553f8,this['imageDimension']={'width':_0x248da7,'height':_0x4ca47e},this['imageId']=_0x5d1593;})['catch'](_0x4d5efb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d5efb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x128c63,_0xbb147b){return this['_getImageAsFile'](_0x128c63)['then'](_0x38b831=>_0x54d9df['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xbb147b['signal'],'file':_0x38b831,'onProgress':_0x53e223=>{_0x53e223&&_0x53e223['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x53e223['value']));}}))['then'](_0x15b795=>{const {width:_0x10a6b0,height:_0x27a26c}=_0x15b795['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x15b795['cdnUrl'],this['imageDimension']={'width':_0x10a6b0,'height':_0x27a26c},this['imageId']=_0x15b795['uuid'],this['imageUploadProgress']=null;const _0x4a64ae=_0x128c63['getAttribute']('src');this['_imageCache']['set'](_0x4a64ae,{'id':_0x15b795['uuid'],'url':_0x15b795['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x173025=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x173025['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1b2b20,_0x10afc6){_0x1b2b20['on']('apply',(_0x265495,_0x4cb1d1)=>{this['_replaceImage'](_0x10afc6,_0x4cb1d1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1b2b20['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1b2b20['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x924c1e,_0x2882d9,_0x2b7e2b){const _0x57d568=this['_editor'],{width:_0x414c8d,height:_0x5b522b}=_0x175b07(_0x2882d9,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x320d4c,imageSources:_0x11f86}=_0xe0e64c(_0x2882d9,_0x414c8d);_0x57d568['model']['change'](_0x55b9a5=>{if('$graveyard'===_0x924c1e['root']['rootName']){_0x57d568['execute']('insertImage',{'imageType':_0x924c1e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x924c1e['getAttributes']()),'uploadcareImageId':_0x2b7e2b,'src':_0x320d4c,'sources':_0x11f86,'width':_0x414c8d,'height':_0x5b522b}});const _0x47f33f=_0x924c1e['getChildren']();_0x924c1e=_0x57d568['model']['document']['selection']['getSelectedElement']();for(const _0x3be4d6 of _0x47f33f)_0x55b9a5['append'](_0x55b9a5['cloneElement'](_0x3be4d6),_0x924c1e);}else _0x55b9a5['setSelection'](_0x924c1e,'on'),_0x57d568['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x924c1e['getAttributes']()),'uploadcareImageId':_0x2b7e2b,'src':_0x320d4c,'sources':_0x11f86,'width':_0x414c8d,'height':_0x5b522b},_0x924c1e);_0x55b9a5['setSelection'](_0x924c1e,'on');});}async['_getImageAsFile'](_0x4da420){const _0x44ea94=_0x56c258['window'],_0x1a937d=_0x56c258['document']['location']['href'],_0x420609=new _0x44ea94['URL'](_0x4da420['getAttribute']('src'),_0x1a937d);if('data:'===_0x420609['protocol']){const _0x56e06b=_0x420609['href']['split'](','),_0x1ca0a0=_0x56e06b[0x0]['match'](/:(.*?);/)[0x1],_0x2e1271=_0x1ca0a0['split']('/')[0x1],_0x82f4f1=_0x44ea94['atob'](_0x56e06b[_0x56e06b['length']-0x1]);let _0x5afcc4=_0x82f4f1['length'];const _0x7e7d0f=new _0x44ea94['Uint8Array'](_0x5afcc4);for(;_0x5afcc4--;)_0x7e7d0f[_0x5afcc4]=_0x82f4f1['charCodeAt'](_0x5afcc4);return new _0x44ea94['File']([_0x7e7d0f],'image.'+_0x2e1271,{'type':_0x1ca0a0});}const _0x55cf5e=_0x420609['href']['split']('/'),_0x45b4c8=_0x55cf5e[_0x55cf5e['length']-0x1],_0x9af5b=_0x45b4c8['split']('.')[0x1];return _0x44ea94['fetch'](_0x420609['href'])['then'](_0x4b7aa6=>_0x4b7aa6['clone']()['blob']())['then'](_0x320948=>new _0x44ea94['File']([_0x320948],_0x45b4c8,{'type':'image/'+_0x9af5b}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1180(_0x2d7a87,_0x164f63){const _0x145608=_0x1456();return _0x1180=function(_0x11806f,_0xb7c876){_0x11806f=_0x11806f-0xdb;let _0x5b5c70=_0x145608[_0x11806f];return _0x5b5c70;},_0x1180(_0x2d7a87,_0x164f63);}(function(_0x42f8c8,_0x20706d){const _0x2f49c0=_0x1180,_0x3cba80=_0x42f8c8();while(!![]){try{const _0x3b14ee=parseInt(_0x2f49c0(0xeb))/0x1+-parseInt(_0x2f49c0(0xed))/0x2*(parseInt(_0x2f49c0(0xe7))/0x3)+parseInt(_0x2f49c0(0xdb))/0x4*(parseInt(_0x2f49c0(0xe1))/0x5)+parseInt(_0x2f49c0(0xdc))/0x6+-parseInt(_0x2f49c0(0xe0))/0x7+-parseInt(_0x2f49c0(0xdf))/0x8*(parseInt(_0x2f49c0(0xdd))/0x9)+-parseInt(_0x2f49c0(0xde))/0xa*(-parseInt(_0x2f49c0(0xe6))/0xb);if(_0x3b14ee===_0x20706d)break;else _0x3cba80['push'](_0x3cba80['shift']());}catch(_0x22ea66){_0x3cba80['push'](_0x3cba80['shift']());}}}(_0x1456,0xdad5e));import{View as _0x1bfd7b}from'ckeditor5/src/ui.js';export default class tt extends _0x1bfd7b{constructor(_0x36e4c3,_0x341af6){const _0x3921a2=_0x1180;super(_0x36e4c3);const _0x18f4b4=this[_0x3921a2(0xec)];this[_0x3921a2(0xe8)](_0x3921a2(0xe9),''),this[_0x3921a2(0xe3)]({'tag':_0x3921a2(0xe2),'attributes':{..._0x341af6,'class':[_0x3921a2(0xe4),_0x3921a2(0xe5)],'ctx-name':_0x3921a2(0xea),'cdn-url':_0x18f4b4['to'](_0x3921a2(0xe9))}});}}function _0x1456(){const _0x51fbbc=['540552RnGdFN','300lIvhaw','5708382aDhWfh','192897Qkhkas','10FgBSVm','152uFGhYV','9093945cAfLkP','78610qGWEQa','uc-cloud-image-editor','setTemplate','uc-light','ck-uploadcare-theme','10808138KNWGcV','6rnNWpb','set','imageSrc','image-edit','30159ViscvC','bindTemplate'];_0x1456=function(){return _0x51fbbc;};return _0x1456();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x5c71e7,IconView as et,View as _0x3c7934}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x3c7934{constructor(_0x54485d){super(_0x54485d);const t=_0x54485d['t'];this['set']('errorType',null);const _0x146336=new _0x5c71e7(_0x54485d);_0x146336['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x146336['withText']=!0x0,_0x146336['class']='ck-button-action',_0x146336['on']('execute',()=>{this['fire']('retry');}),_0x146336['bind']('isVisible')['to'](this,'errorType',_0x1d059b=>'NotFound'!==_0x1d059b);const _0x203608=new et();_0x203608['content']=at,_0x203608['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x84f543=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':[_0x203608,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x84f543['to']('errorType',_0x59da11=>t('NotFound'!==_0x59da11?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x146336]},{'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 _0x2ddba9,View as _0x56a036}from'ckeditor5/src/ui.js';export default class ta extends _0x56a036{constructor(_0x59fa83){super(_0x59fa83);const t=_0x59fa83['t'],_0x4294e8=this['bindTemplate'],_0xd28a13=new _0x2ddba9();_0xd28a13['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':[_0xd28a13,{'text':_0x4294e8['to']('imageUploadProgress',_0x1f4893=>t('Loading\x20image...')+'\x20('+(_0x1f4893||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 _0x3fff56=_0x4657;function _0x4143(){const _0x8fd52c=['status','filter','598780PozRgx','5989473bODUIi','_loadingView','cdnUrl','_focusableView','addEventListener','277036tJxEMc','setTemplate','disconnect','element','detail','cancel','createCollection','ck-reset_all-excluded','render','getFocusableElement','div','apply','change:status','addedNodes','querySelector','target','error','_items','_errorView','addMany','_setView','ready','nodeName','uc-cloud-image-editor','1065342lDtlbK','set','_addErrorViewListeners','toLowerCase','length','once','observe','ck-uploadcare-form','160804cCCeyA','retry','_addUploadcareImageEditorListeners','291509rIZIBH','clear','_editingView','_waitForImageEditorComponent','fire','add','uploading','3080412PCmPpy','focus'];_0x4143=function(){return _0x8fd52c;};return _0x4143();}(function(_0x21ce8e,_0x210d45){const _0x103c1c=_0x4657,_0x506f4f=_0x21ce8e();while(!![]){try{const _0x34b337=parseInt(_0x103c1c(0x18d))/0x1+-parseInt(_0x103c1c(0x19e))/0x2+-parseInt(_0x103c1c(0x182))/0x3+parseInt(_0x103c1c(0x18a))/0x4+parseInt(_0x103c1c(0x198))/0x5+-parseInt(_0x103c1c(0x194))/0x6+parseInt(_0x103c1c(0x199))/0x7;if(_0x34b337===_0x210d45)break;else _0x506f4f['push'](_0x506f4f['shift']());}catch(_0x1b6ffd){_0x506f4f['push'](_0x506f4f['shift']());}}}(_0x4143,0x49427));function _0x4657(_0x4fc748,_0x372bca){const _0x4143b7=_0x4143();return _0x4657=function(_0x4657a8,_0x3d43d7){_0x4657a8=_0x4657a8-0x182;let _0x406c30=_0x4143b7[_0x4657a8];return _0x406c30;},_0x4657(_0x4fc748,_0x372bca);}import{View as _0x447c12}from'ckeditor5/src/ui.js';import _0x2a5f18 from'./uploadcareimageeditformloadingview.js';import _0x27c7fe from'./uploadcareimageeditformerrorview.js';import _0x354b3a from'./uploadcareimageeditformeditingview.js';import _0x5a43db from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x5a43db{constructor(_0x258d9b,_0x222920,_0xf7542){const _0x177079=_0x4657;super(_0x258d9b),this[_0x177079(0x1af)]=this[_0x177079(0x1a4)](),this[_0x177079(0x19a)]=new _0x2a5f18(_0x258d9b),this[_0x177079(0x1b0)]=new _0x27c7fe(_0x258d9b),this[_0x177079(0x18f)]=new _0x354b3a(_0x258d9b,_0xf7542),this[_0x177079(0x19c)]=new _0x447c12(_0x258d9b),this[_0x177079(0x19c)][_0x177079(0x19f)](this[_0x177079(0x1a7)]()),this[_0x177079(0x183)](_0x177079(0x196),_0x222920),this[_0x177079(0x19f)]({'tag':_0x177079(0x1a8),'attributes':{'class':['ck',_0x177079(0x1a5),_0x177079(0x189)],'tabindex':'-1'},'children':this[_0x177079(0x1af)]}),this[_0x177079(0x1b2)](),this[_0x177079(0x187)](_0x177079(0x1a6),()=>{const _0x3ca5ff=_0x177079;this[_0x3ca5ff(0x190)](this[_0x3ca5ff(0x1a1)],_0x42c163=>{const _0x22e615=_0x3ca5ff;this[_0x22e615(0x18c)](_0x42c163);});}),this['on'](_0x177079(0x1aa),()=>{const _0x2ba937=_0x177079;this[_0x2ba937(0x1b2)]();}),this[_0x177079(0x184)]();}[_0x3fff56(0x195)](){const _0x117d0e=_0x3fff56;this[_0x117d0e(0x1a1)][_0x117d0e(0x195)]();}[_0x3fff56(0x1b2)](){const _0x3b6642=_0x3fff56;switch(this[_0x3b6642(0x1af)][_0x3b6642(0x18e)](),this[_0x3b6642(0x196)]){case _0x3b6642(0x193):this[_0x3b6642(0x1af)][_0x3b6642(0x192)](this[_0x3b6642(0x19a)]);break;case _0x3b6642(0x1ae):this[_0x3b6642(0x1af)][_0x3b6642(0x192)](this[_0x3b6642(0x1b0)]);break;case _0x3b6642(0x1b3):this[_0x3b6642(0x1af)][_0x3b6642(0x1b1)]([this[_0x3b6642(0x18f)],this[_0x3b6642(0x19c)]]);}}[_0x3fff56(0x190)](_0xe4dcd6,_0x212428){const _0x53e638=_0x3fff56,_0x14dc3c=_0x53e638(0x1b5),_0x1621d2=_0xe4dcd6[_0x53e638(0x1ac)](_0x14dc3c);if(_0x1621d2)return _0x212428(_0x1621d2);const _0x47b965=new MutationObserver(_0x311811=>{const _0x4aecdc=_0x53e638,_0x24a935=_0x311811[_0x4aecdc(0x197)](_0x5db054=>_0x5db054[_0x4aecdc(0x1ad)]===_0xe4dcd6&&_0x5db054[_0x4aecdc(0x1ab)][_0x4aecdc(0x186)]>0x0&&_0x5db054[_0x4aecdc(0x1ab)][0x0][_0x4aecdc(0x1b4)][_0x4aecdc(0x185)]()===_0x14dc3c);_0x24a935[_0x4aecdc(0x186)]&&(_0x47b965[_0x4aecdc(0x1a0)](),_0x212428(_0x24a935[0x0][_0x4aecdc(0x1ab)][0x0]));});_0x47b965[_0x53e638(0x188)](_0xe4dcd6,{'childList':!0x0,'subtree':!0x0});}[_0x3fff56(0x18c)](_0x312910){const _0x4bf35e=_0x3fff56;_0x312910[_0x4bf35e(0x19d)](_0x4bf35e(0x1a9),_0x3a8022=>{const _0x29fb84=_0x4bf35e;this[_0x29fb84(0x191)](_0x29fb84(0x1a9),{'imageSrc':_0x3a8022[_0x29fb84(0x1a2)][_0x29fb84(0x19b)]});}),_0x312910[_0x4bf35e(0x19d)](_0x4bf35e(0x1a3),()=>{const _0x3a9e6e=_0x4bf35e;this[_0x3a9e6e(0x191)](_0x3a9e6e(0x1a3));});}[_0x3fff56(0x184)](){const _0x15e6db=_0x3fff56;this[_0x15e6db(0x1b0)]['on'](_0x15e6db(0x18b),()=>{const _0x24996d=_0x15e6db;this[_0x24996d(0x191)](_0x24996d(0x18b));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x7cb08b=_0x2647;(function(_0x37a94c,_0xd3066){const _0x2d2e1b=_0x2647,_0x506a1e=_0x37a94c();while(!![]){try{const _0x54f765=-parseInt(_0x2d2e1b(0x19d))/0x1+parseInt(_0x2d2e1b(0x1a2))/0x2+-parseInt(_0x2d2e1b(0x19a))/0x3+-parseInt(_0x2d2e1b(0x1aa))/0x4*(-parseInt(_0x2d2e1b(0x1b0))/0x5)+parseInt(_0x2d2e1b(0x1ae))/0x6+parseInt(_0x2d2e1b(0x1a5))/0x7+-parseInt(_0x2d2e1b(0x1a8))/0x8;if(_0x54f765===_0xd3066)break;else _0x506a1e['push'](_0x506a1e['shift']());}catch(_0x36da72){_0x506a1e['push'](_0x506a1e['shift']());}}}(_0x2783,0x84e18));function _0x2783(){const _0x27781a=['model','447147JsbdpY','_isEditable','isActive','editor','element','1379566HAPHee','execute','requires','3559297fUYZTZ','imageEditController','get','11485032dfuTiW','isEnabled','4144348kWRkHp','imageBlock','unbind','config','5930478XpNglb','imageInline','5amxmQI','document','refresh','bind','selection','set','getSelectedElement','plugins','2387094lxJdws','uploadcare.allowExternalImagesEditing'];_0x2783=function(){return _0x27781a;};return _0x2783();}function _0x2647(_0x3ffd31,_0x493a81){const _0x2783fd=_0x2783();return _0x2647=function(_0x264764,_0x5d315c){_0x264764=_0x264764-0x195;let _0x1f0a09=_0x2783fd[_0x264764];return _0x1f0a09;},_0x2647(_0x3ffd31,_0x493a81);}import{Command as _0x17c6f9}from'ckeditor5/src/core.js';import{Dialog as _0x5044b9}from'ckeditor5/src/ui.js';import _0x51d790 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x52ffd9}from'../utils/editingutils.js';export default class V extends _0x17c6f9{static get[_0x7cb08b(0x1a4)](){return[_0x5044b9];}constructor(_0x1388d1){const _0xa2fde4=_0x7cb08b;super(_0x1388d1),this[_0xa2fde4(0x1a6)]=void 0x0,this[_0xa2fde4(0x19e)]=_0x52ffd9(_0x1388d1[_0xa2fde4(0x1ad)][_0xa2fde4(0x1a7)](_0xa2fde4(0x19b))||[]),this[_0xa2fde4(0x197)]({'isActive':!0x1});}[_0x7cb08b(0x1b2)](){const _0x243659=_0x7cb08b,_0x3b9806=this[_0x243659(0x1a0)][_0x243659(0x19c)][_0x243659(0x1b1)][_0x243659(0x196)][_0x243659(0x198)]();this[_0x243659(0x1a9)]=this[_0x243659(0x19e)](_0x3b9806);}[_0x7cb08b(0x1a3)](){const _0x472e53=_0x7cb08b;this[_0x472e53(0x1a6)]&&(this[_0x472e53(0x1ac)](_0x472e53(0x19f)),this[_0x472e53(0x1a6)]=void 0x0);const _0x596b5e=this[_0x472e53(0x1a0)][_0x472e53(0x19c)][_0x472e53(0x1b1)][_0x472e53(0x196)][_0x472e53(0x198)]();_0x596b5e&&(_0x596b5e['is'](_0x472e53(0x1a1),_0x472e53(0x1ab))||_0x596b5e['is'](_0x472e53(0x1a1),_0x472e53(0x1af)))&&(this[_0x472e53(0x1a6)]=new _0x51d790(this[_0x472e53(0x1a0)],this[_0x472e53(0x1a0)][_0x472e53(0x199)][_0x472e53(0x1a7)](_0x5044b9),_0x596b5e),this[_0x472e53(0x195)](_0x472e53(0x19f))['to'](this[_0x472e53(0x1a6)],_0x472e53(0x19f)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c1689=_0x1810;(function(_0x27c5b4,_0x11b11e){const _0x82afe6=_0x1810,_0x18be1f=_0x27c5b4();while(!![]){try{const _0x154e64=parseInt(_0x82afe6(0x7a))/0x1*(-parseInt(_0x82afe6(0x6f))/0x2)+parseInt(_0x82afe6(0x72))/0x3+-parseInt(_0x82afe6(0x7b))/0x4*(-parseInt(_0x82afe6(0x77))/0x5)+-parseInt(_0x82afe6(0x7f))/0x6*(parseInt(_0x82afe6(0x76))/0x7)+parseInt(_0x82afe6(0x69))/0x8+-parseInt(_0x82afe6(0x6c))/0x9*(-parseInt(_0x82afe6(0x7c))/0xa)+parseInt(_0x82afe6(0x73))/0xb*(-parseInt(_0x82afe6(0x6a))/0xc);if(_0x154e64===_0x11b11e)break;else _0x18be1f['push'](_0x18be1f['shift']());}catch(_0x1040cf){_0x18be1f['push'](_0x18be1f['shift']());}}}(_0x5bb4,0xb6506));function _0x1810(_0x459a76,_0x14e019){const _0x5bb4ac=_0x5bb4();return _0x1810=function(_0x1810ae,_0x4a7e2b){_0x1810ae=_0x1810ae-0x68;let _0x1416c7=_0x5bb4ac[_0x1810ae];return _0x1416c7;},_0x1810(_0x459a76,_0x14e019);}function _0x5bb4(){const _0x14b2f7=['add','isOfficialPlugin','299726zTZTLZ','requires','uploadcareImageEdit','2759925sWKTkp','11YHEgmc','pluginName','UploadcareImageEditEditing','6363xhcLDz','10KawEDI','commands','uploadcareImageReplace','2yqnirw','1130860KViowu','36200BaWHHP','init','ImageUtils','2586szCrpc','isPremiumPlugin','3223528QKJjKV','5531316OpfLzA','ImageEditing','27IjVTRm'];_0x5bb4=function(){return _0x14b2f7;};return _0x5bb4();}import{Plugin as _0x7d14a2}from'ckeditor5/src/core.js';import{Notification as _0x189616}from'ckeditor5/src/ui.js';import _0x59f821 from'./uploadcareimageeditcommand.js';import _0x14a2b8 from'./uploadcareimagereplacecommand.js';import _0x3dbe70 from'../uploadcareediting.js';export default class m extends _0x7d14a2{static get[_0x4c1689(0x74)](){const _0x212c3e=_0x4c1689;return _0x212c3e(0x75);}static get[_0x4c1689(0x70)](){const _0x5baea5=_0x4c1689;return[_0x3dbe70,_0x189616,_0x5baea5(0x7e),_0x5baea5(0x6b)];}static get[_0x4c1689(0x6e)](){return!0x0;}static get[_0x4c1689(0x68)](){return!0x0;}[_0x4c1689(0x7d)](){const _0x3fe992=_0x4c1689,{editor:_0x484264}=this;_0x484264[_0x3fe992(0x78)][_0x3fe992(0x6d)](_0x3fe992(0x71),new _0x59f821(_0x484264)),_0x484264[_0x3fe992(0x78)][_0x3fe992(0x6d)](_0x3fe992(0x79),new _0x14a2b8(_0x484264));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3be000}from'ckeditor5/src/core.js';import{ButtonView as _0x411524}from'ckeditor5/src/ui.js';import{createElement as _0x3d3af6}from'ckeditor5/src/utils.js';import _0x15456c 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 _0x3be000{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 _0x1d2dc8=this['editor'];_0x1d2dc8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x338afd=>{const _0x49a190=_0x1d2dc8['commands']['get']('uploadcareImageEdit'),_0x421593=new _0x411524(_0x338afd),t=_0x338afd['t'];return _0x421593['set']({'icon':_0x15456c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x421593['bind']('isEnabled')['to'](_0x49a190),_0x421593['bind']('isOn')['to'](_0x49a190,'isActive'),this['listenTo'](_0x421593,'execute',()=>{_0x1d2dc8['execute']('uploadcareImageEdit'),_0x1d2dc8['editing']['view']['focus']();}),_0x421593;}),this['_initConfig']();}['_initConfig'](){const _0x1cb7b2=_0x3d3af6(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1cb7b2),this['listenTo'](this['editor'],'destroy',()=>{_0x1cb7b2['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4487(_0x17a998,_0x10283e){const _0x3ba1f3=_0x3ba1();return _0x4487=function(_0x4487dc,_0x117692){_0x4487dc=_0x4487dc-0x65;let _0x174fc1=_0x3ba1f3[_0x4487dc];return _0x174fc1;},_0x4487(_0x17a998,_0x10283e);}const _0x3a069d=_0x4487;(function(_0x168ee9,_0x597b9c){const _0x4d95c3=_0x4487,_0x993b50=_0x168ee9();while(!![]){try{const _0x437a2b=-parseInt(_0x4d95c3(0x69))/0x1+-parseInt(_0x4d95c3(0x72))/0x2+-parseInt(_0x4d95c3(0x75))/0x3+-parseInt(_0x4d95c3(0x7a))/0x4+-parseInt(_0x4d95c3(0x78))/0x5+-parseInt(_0x4d95c3(0x6d))/0x6+-parseInt(_0x4d95c3(0x6c))/0x7*(-parseInt(_0x4d95c3(0x65))/0x8);if(_0x437a2b===_0x597b9c)break;else _0x993b50['push'](_0x993b50['shift']());}catch(_0x3effd7){_0x993b50['push'](_0x993b50['shift']());}}}(_0x3ba1,0x65f66));function _0x3ba1(){const _0x35b968=['424983ctqKHK','removeAttribute','setAttributes','84wWpnvn','4505400khFGAL','getSelectedElement','isEnabled','imageBlock','editor','964998oTgXKM','element','imageInline','931692wVPQPx','change','sizes','201725QtiriP','refresh','39884CxClxK','selection','model','1624600FHnZWM','document','srcset','execute'];_0x3ba1=function(){return _0x35b968;};return _0x3ba1();}import{Command as _0x12fec0}from'ckeditor5/src/core.js';export default class X extends _0x12fec0{[_0x3a069d(0x79)](){const _0x28855e=_0x3a069d,_0x377778=this[_0x28855e(0x71)][_0x28855e(0x7c)][_0x28855e(0x66)][_0x28855e(0x7b)][_0x28855e(0x6e)]();this[_0x28855e(0x6f)]=Boolean(_0x377778&&(_0x377778['is'](_0x28855e(0x73),_0x28855e(0x70))||_0x377778['is'](_0x28855e(0x73),_0x28855e(0x74))));}[_0x3a069d(0x68)](_0x399476){const _0xfbce3e=_0x3a069d,_0x303f19=this[_0xfbce3e(0x71)][_0xfbce3e(0x7c)][_0xfbce3e(0x66)][_0xfbce3e(0x7b)][_0xfbce3e(0x6e)]();this[_0xfbce3e(0x71)][_0xfbce3e(0x7c)][_0xfbce3e(0x76)](_0x5a4982=>{const _0x57e04f=_0xfbce3e;_0x5a4982[_0x57e04f(0x6b)](_0x399476,_0x303f19),_0x5a4982[_0x57e04f(0x6a)](_0x57e04f(0x67),_0x303f19),_0x5a4982[_0x57e04f(0x6a)](_0x57e04f(0x77),_0x303f19);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1f4779=_0x40e0;(function(_0x5e272a,_0x3bf4cb){var _0x5412c7=_0x40e0,_0xf8c507=_0x5e272a();while(!![]){try{var _0x302dee=-parseInt(_0x5412c7(0x10d))/0x1+parseInt(_0x5412c7(0x102))/0x2*(parseInt(_0x5412c7(0x109))/0x3)+-parseInt(_0x5412c7(0xff))/0x4*(parseInt(_0x5412c7(0x100))/0x5)+parseInt(_0x5412c7(0x105))/0x6*(parseInt(_0x5412c7(0x101))/0x7)+parseInt(_0x5412c7(0x104))/0x8+-parseInt(_0x5412c7(0x10a))/0x9+parseInt(_0x5412c7(0x10c))/0xa;if(_0x302dee===_0x3bf4cb)break;else _0xf8c507['push'](_0xf8c507['shift']());}catch(_0x396448){_0xf8c507['push'](_0xf8c507['shift']());}}}(_0x3bb2,0x306c6));import{FocusTracker as _0x12ade8}from'ckeditor5/src/utils.js';import{View as _0x3101eb,FocusCycler as _0x5266af}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x3bb2(){var _0x5577df=['fire','1120611HEWuOf','573597evKvIw','div','727430aVywgR','93877OwmSjD','createCollection','bindTemplate','forwardCycle','getFocusableElement','27876OGuHgH','195KtYiEe','2765UttlgG','2RDOKjY','focusCycler','649064mIMHoy','1524DAvseb','true','focusTracker'];_0x3bb2=function(){return _0x5577df;};return _0x3bb2();}function _0x40e0(_0x1cb3a8,_0x3444c7){var _0x3bb269=_0x3bb2();return _0x40e0=function(_0x40e058,_0x2b6824){_0x40e058=_0x40e058-0xfe;var _0x215a19=_0x3bb269[_0x40e058];return _0x215a19;},_0x40e0(_0x1cb3a8,_0x3444c7);}export default class q extends _0x3101eb{constructor(_0x83c166){var _0x46375a=_0x40e0;super(_0x83c166),this[_0x46375a(0x107)]=new _0x12ade8(),this[_0x46375a(0x103)]=new _0x5266af({'focusables':this[_0x46375a(0x10e)](),'focusTracker':this[_0x46375a(0x107)]});}[_0x1f4779(0xfe)](){var _0x11acfd=_0x1f4779;return{'tag':_0x11acfd(0x10b),'attributes':{'aria-hidden':_0x11acfd(0x106),'tabindex':'0'},'on':{'focus':this[_0x11acfd(0x10f)]['to'](()=>{var _0xb2f7f8=_0x11acfd;this[_0xb2f7f8(0x103)][_0xb2f7f8(0x108)](_0xb2f7f8(0x110));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x9135fc,_0x41be96){const _0x328de2=_0x41de,_0x58486a=_0x9135fc();while(!![]){try{const _0x199043=parseInt(_0x328de2(0x96))/0x1+parseInt(_0x328de2(0x90))/0x2*(-parseInt(_0x328de2(0xb6))/0x3)+parseInt(_0x328de2(0x99))/0x4+parseInt(_0x328de2(0x93))/0x5+parseInt(_0x328de2(0xbf))/0x6+parseInt(_0x328de2(0xb4))/0x7+parseInt(_0x328de2(0xaf))/0x8*(-parseInt(_0x328de2(0xa3))/0x9);if(_0x199043===_0x41be96)break;else _0x58486a['push'](_0x58486a['shift']());}catch(_0x1e0026){_0x58486a['push'](_0x58486a['shift']());}}}(_0x3138,0x99f9b));function _0x41de(_0x303b0a,_0x594604){const _0x3138cf=_0x3138();return _0x41de=function(_0x41dedf,_0x5e18fa){_0x41dedf=_0x41dedf-0x8a;let _0xfae462=_0x3138cf[_0x41dedf];return _0xfae462;},_0x41de(_0x303b0a,_0x594604);}import{global as _0x3b7caa,DomEmitterMixin as _0x5441f0}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0xdc774){const _0x283d57=_0x41de,_0x414f02=R(_0xdc774);return _0x3daa6d=>!(!_0x3daa6d||!_0x3daa6d['is'](_0x283d57(0xb8),_0x283d57(0xb3))&&!_0x3daa6d['is'](_0x283d57(0xb8),_0x283d57(0x8f)))&&(!!_0x3daa6d[_0x283d57(0xa9)](_0x283d57(0xb9))||!!_0x3daa6d[_0x283d57(0xa9)](_0x283d57(0x9f))&&_0x414f02(_0x3daa6d[_0x283d57(0xbc)](_0x283d57(0x9f))));}export function getImageUrls(_0x3ed1e1,_0x48ab32){const _0x51bdce=_0x41de,_0x426b83=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x51bdce(0xa7)](_0x133f7e=>_0x133f7e<=_0x48ab32)[_0x51bdce(0xc1)](_0x3ec04b=>_0x3ed1e1[_0x51bdce(0xa0)](/\/$/,'')+_0x51bdce(0x9b)+_0x3ec04b+_0x51bdce(0x9e)+_0x3ec04b+'w');return{'imageFallbackUrl':_0x3ed1e1,'imageSources':[{'srcset':_0x426b83[_0x51bdce(0xae)](',\x20'),'sizes':_0x51bdce(0xad)+_0x48ab32+_0x51bdce(0xb1)+_0x48ab32+'px','type':_0x51bdce(0x8b)}]};}export function getImageDimension(_0x3a910d,_0x2038f1,_0x3d8a17){const _0x2e8fe6=_0x41de,_0x3d2096=_0x3a910d[_0x2e8fe6(0xab)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3d2096?parseInt(_0x3d2096[0x1],0xa):_0x2038f1,'height':_0x3d2096?parseInt(_0x3d2096[0x2],0xa):_0x3d8a17};}export function showImageProcessingIndicator(_0x544924,_0x343235){const _0x43a6bf=_0x41de,_0x1616e6=Object[_0x43a6bf(0x9d)](_0x5441f0),_0x33185d=_0x544924[_0x43a6bf(0xb5)][_0x43a6bf(0xbe)](_0x43a6bf(0xa6)),_0x23e8ff=_0x544924[_0x43a6bf(0x9c)][_0x43a6bf(0xac)][_0x43a6bf(0xbd)](_0x343235),_0x4cdde6=_0x33185d[_0x43a6bf(0xa4)](_0x23e8ff),_0x8b9fb6=_0x544924[_0x43a6bf(0x9c)][_0x43a6bf(0xa5)][_0x43a6bf(0xc0)][_0x43a6bf(0xa1)](_0x4cdde6),_0x31a4c6=_0x343235[_0x43a6bf(0xbc)](_0x43a6bf(0x94)),_0x46d520=_0x343235[_0x43a6bf(0xbc)](_0x43a6bf(0x97)),_0x3721da=_0x43a6bf(0xaa);_0x544924[_0x43a6bf(0x9c)][_0x43a6bf(0xa5)][_0x43a6bf(0x8d)](_0x27ef43=>{const _0x43752=_0x43a6bf;_0x27ef43[_0x43752(0x9a)](_0x3721da,_0x23e8ff),_0x27ef43[_0x43752(0x91)](_0x43752(0xb2),_0x31a4c6+'/'+_0x46d520,_0x4cdde6);}),_0x1616e6[_0x43a6bf(0xa2)](_0x8b9fb6,_0x43a6bf(0xc2),()=>{const _0x3ef743=_0x43a6bf;_0x1616e6[_0x3ef743(0xa8)](_0x8b9fb6,_0x3ef743(0xc2)),_0x544924[_0x3ef743(0x9c)][_0x3ef743(0xa5)][_0x3ef743(0x8d)](_0x114976=>{const _0x451280=_0x3ef743;_0x114976[_0x451280(0xb7)](_0x3721da,_0x23e8ff),_0x114976[_0x451280(0xba)](_0x451280(0xb2),_0x4cdde6);});});}function _0x3138(){const _0x1f5751=['findViewImgElement','view','ImageUtils','filter','stopListening','hasAttribute','image-processing','match','mapper','(max-width:\x20','join','3208PgTuBl','origin','px)\x20100vw,\x20','aspect-ratio','imageBlock','4323669cBDvCT','plugins','3tlcQhO','removeClass','element','uploadcareImageId','removeStyle','document','getAttribute','toViewElement','get','5900544edAYeO','domConverter','map','load','isArray','image/webp','some','change','window','imageInline','575384LviBhq','setStyle','location','1453125sJgYtd','width','baseURI','712320cQDPbV','height','function','2754640JwdrAr','addClass','/-/resize/','editing','create','x/\x20','src','replace','viewToDom','listenTo','53289NUxINQ'];_0x3138=function(){return _0x1f5751;};return _0x3138();}function R(_0x1498ec){const _0x50e08d=_0x41de;if(Array[_0x50e08d(0x8a)](_0x1498ec)){const _0x1be680=_0x1498ec[_0x50e08d(0xc1)](R);return _0x2569ca=>_0x1be680[_0x50e08d(0x8c)](_0x40800b=>_0x40800b(_0x2569ca));}if(_0x50e08d(0xb0)==_0x1498ec){const _0x555f02=_0x3b7caa[_0x50e08d(0x8e)][_0x50e08d(0x92)][_0x50e08d(0xb0)];return _0x56d3de=>new URL(_0x56d3de,_0x3b7caa[_0x50e08d(0xbb)][_0x50e08d(0x95)])[_0x50e08d(0xb0)]==_0x555f02;}return _0x50e08d(0x98)==typeof _0x1498ec?_0x1498ec:_0x1498ec instanceof RegExp?_0x51280c=>!(!_0x51280c[_0x50e08d(0xab)](_0x1498ec)&&!_0x51280c[_0x50e08d(0xa0)](/^https?:\/\//,'')[_0x50e08d(0xab)](_0x1498ec)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x36e4(_0x237c4e,_0xa1a14){var _0x488b92=_0x488b();return _0x36e4=function(_0x36e4b2,_0x243032){_0x36e4b2=_0x36e4b2-0x123;var _0x2850b5=_0x488b92[_0x36e4b2];return _0x2850b5;},_0x36e4(_0x237c4e,_0xa1a14);}function _0x488b(){var _0x59689c=['8JxXvLX','target','1274132RPLNbV','includes','3619800gCtLjU','179223gOjmqX','8ugwfcg','10VajurU','55987OpnsRX','70PBeJcT','3cbXGHY','7891248qzpcmq','445256suMoFu','1161726YkKGjp'];_0x488b=function(){return _0x59689c;};return _0x488b();}(function(_0x1bfa9b,_0x6cabc7){var _0x1f754f=_0x36e4,_0x49d626=_0x1bfa9b();while(!![]){try{var _0x55a152=-parseInt(_0x1f754f(0x12d))/0x1*(parseInt(_0x1f754f(0x125))/0x2)+-parseInt(_0x1f754f(0x12f))/0x3*(parseInt(_0x1f754f(0x127))/0x4)+parseInt(_0x1f754f(0x12c))/0x5*(-parseInt(_0x1f754f(0x124))/0x6)+parseInt(_0x1f754f(0x123))/0x7+parseInt(_0x1f754f(0x12b))/0x8*(parseInt(_0x1f754f(0x129))/0x9)+-parseInt(_0x1f754f(0x12e))/0xa*(-parseInt(_0x1f754f(0x12a))/0xb)+parseInt(_0x1f754f(0x130))/0xc;if(_0x55a152===_0x6cabc7)break;else _0x49d626['push'](_0x49d626['shift']());}catch(_0xbd0a0e){_0x49d626['push'](_0x49d626['shift']());}}}(_0x488b,0x4b21c));import{getAncestors as _0x2f1efc}from'ckeditor5/src/utils.js';export function isAncestor(_0x5c8312,_0x25243d){var _0xc22e7=_0x36e4;return _0x2f1efc(_0x5c8312[_0xc22e7(0x126)])[_0xc22e7(0x128)](_0x25243d);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2eabbe=_0x45af;(function(_0x4768e2,_0x51e5fe){var _0x4b3a34=_0x45af,_0x2e9c0a=_0x4768e2();while(!![]){try{var _0x1bd71a=-parseInt(_0x4b3a34(0xec))/0x1*(parseInt(_0x4b3a34(0xef))/0x2)+-parseInt(_0x4b3a34(0xe4))/0x3*(-parseInt(_0x4b3a34(0xe3))/0x4)+parseInt(_0x4b3a34(0xe7))/0x5+-parseInt(_0x4b3a34(0xeb))/0x6*(parseInt(_0x4b3a34(0xf0))/0x7)+parseInt(_0x4b3a34(0xea))/0x8*(-parseInt(_0x4b3a34(0xe5))/0x9)+-parseInt(_0x4b3a34(0xf2))/0xa*(-parseInt(_0x4b3a34(0xed))/0xb)+-parseInt(_0x4b3a34(0xee))/0xc*(parseInt(_0x4b3a34(0xe8))/0xd);if(_0x1bd71a===_0x51e5fe)break;else _0x2e9c0a['push'](_0x2e9c0a['shift']());}catch(_0x205f12){_0x2e9c0a['push'](_0x2e9c0a['shift']());}}}(_0xd8d5,0x87d6f));function _0xd8d5(){var _0x31e44c=['520YgPdFK','auto','7792gwnARm','1829622zqfNAq','1lsnMMA','476234ASCiKz','6708NdZPaX','1255426ffdVLk','21twUvEt','getInfo','190jUmxbj','2926180EvDRzq','3vAiOzP','2493nQwptZ','upload','4184750AcNVAQ'];_0xd8d5=function(){return _0x31e44c;};return _0xd8d5();}function _0x45af(_0x34c039,_0x11a39a){var _0xd8d55a=_0xd8d5();return _0x45af=function(_0x45af4a,_0x1dde41){_0x45af4a=_0x45af4a-0xe3;var _0x10337d=_0xd8d55a[_0x45af4a];return _0x10337d;},_0x45af(_0x34c039,_0x11a39a);}import{uploadFile as _0x13e2d7,info as _0xdf298a}from'@uploadcare/upload-client';export default class k{static[_0x2eabbe(0xe6)]({file:_0x1c5163,publicKey:_0x31a095,signal:_0x4c097d,onProgress:_0x2242ec}){var _0x414a21=_0x2eabbe;return _0x13e2d7(_0x1c5163,{'publicKey':_0x31a095,'store':_0x414a21(0xe9),'signal':_0x4c097d,'onProgress':_0x2242ec});}static[_0x2eabbe(0xf1)](_0x1d3e9c,_0x5a29f0){return _0xdf298a(_0x1d3e9c,_0x5a29f0);}}
|