@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250215.0 → 0.0.0-nightly-next-20250216.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 +9 -9
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- 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 _0x1daa16,ObservableMixin as _0x2c09c2}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x10353f}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5a0256}from'ckeditor5/src/icons.js';import _0x7b10a7 from'./uploadcareimageeditformview.js';import _0x263fee from'../../utils/uploadutils.js';import{getImageUrls as _0x2799de,getImageDimension as _0x1ec555}from'../../utils/editingutils.js';import{isAncestor as _0x1c4c21}from'../../utils/isancestor.js';export default class q extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2c09c2(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x381bcf,_0x1958cf,_0x191edf){super(),this['_editor']=_0x381bcf,this['_dialog']=_0x1958cf,this['_imageElement']=_0x191edf,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 _0x434ee0=this['_imageElement'],_0x7a78ad=_0x434ee0['getAttribute']('uploadcareImageId'),_0x1d0e4d=_0x434ee0['getAttribute']('src');if(_0x7a78ad)await this['_loadImageInfo'](_0x7a78ad,_0x1d0e4d);else{if(this['_imageCache']['has'](_0x1d0e4d)){const _0x24c6f9=this['_imageCache']['get'](_0x1d0e4d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24c6f9['url'],this['imageDimension']=_0x24c6f9['dimension'],this['imageId']=_0x24c6f9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1e7478}=this['_editor'],t=_0x1e7478['t'],_0x489c6c=new _0x7b10a7(_0x1e7478,this['imageStatus'],this['_attributes']);_0x489c6c['bind']('status')['to'](this,'imageStatus'),_0x489c6c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x489c6c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x489c6c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x489c6c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5a0256,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x489c6c,'position':_0x10353f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x489c6c['focus']();},'onHide':()=>{_0x489c6c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x49091c=>!_0x1c4c21(_0x49091c,_0x489c6c['element'])}});}['_loadImageInfo'](_0x47c5ca,_0x476ea7){return _0x263fee['getInfo'](_0x47c5ca,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3c5c1b=>{const {width:_0x28fdea,height:_0x370c70}=_0x3c5c1b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x476ea7,this['imageDimension']={'width':_0x28fdea,'height':_0x370c70},this['imageId']=_0x47c5ca;})['catch'](_0x1f2932=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1f2932['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x44bab2,_0x150742){return this['_getImageAsFile'](_0x44bab2)['then'](_0x27d157=>_0x263fee['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x150742['signal'],'file':_0x27d157,'onProgress':_0x1106c5=>{_0x1106c5&&_0x1106c5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1106c5['value']));}}))['then'](_0x59b899=>{const {width:_0x124344,height:_0x3f14de}=_0x59b899['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x59b899['cdnUrl'],this['imageDimension']={'width':_0x124344,'height':_0x3f14de},this['imageId']=_0x59b899['uuid'],this['imageUploadProgress']=null;const _0x61e193=_0x44bab2['getAttribute']('src');this['_imageCache']['set'](_0x61e193,{'id':_0x59b899['uuid'],'url':_0x59b899['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4f4089=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f4089['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x106086,_0x1698c9){_0x106086['on']('apply',(_0x1bf9e7,_0x2523f2)=>{this['_replaceImage'](_0x1698c9,_0x2523f2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x106086['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x106086['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1136e9,_0x4562e8,_0x1f8463){const _0x20bf0a=this['_editor'],{width:_0x15c732,height:_0x3d57d5}=_0x1ec555(_0x4562e8,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4d8a16,imageSources:_0x4c90a8}=_0x2799de(_0x4562e8,_0x15c732);_0x20bf0a['model']['change'](_0x39fe2f=>{if('$graveyard'===_0x1136e9['root']['rootName']){_0x20bf0a['execute']('insertImage',{'imageType':_0x1136e9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1136e9['getAttributes']()),'uploadcareImageId':_0x1f8463,'src':_0x4d8a16,'sources':_0x4c90a8,'width':_0x15c732,'height':_0x3d57d5}});const _0xf7cad7=_0x1136e9['getChildren']();_0x1136e9=_0x20bf0a['model']['document']['selection']['getSelectedElement']();for(const _0x1bd6a8 of _0xf7cad7)_0x39fe2f['append'](_0x39fe2f['cloneElement'](_0x1bd6a8),_0x1136e9);}else _0x39fe2f['setSelection'](_0x1136e9,'on'),_0x20bf0a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1136e9['getAttributes']()),'uploadcareImageId':_0x1f8463,'src':_0x4d8a16,'sources':_0x4c90a8,'width':_0x15c732,'height':_0x3d57d5},_0x1136e9);_0x39fe2f['setSelection'](_0x1136e9,'on');});}async['_getImageAsFile'](_0x13af76){const _0x3245e5=_0x1daa16['window'],_0x373460=_0x1daa16['document']['location']['href'],_0x3a22bf=new _0x3245e5['URL'](_0x13af76['getAttribute']('src'),_0x373460);if('data:'===_0x3a22bf['protocol']){const _0x586ada=_0x3a22bf['href']['split'](','),_0x491142=_0x586ada[0x0]['match'](/:(.*?);/)[0x1],_0x1e6876=_0x491142['split']('/')[0x1],_0x3c0e2d=_0x3245e5['atob'](_0x586ada[_0x586ada['length']-0x1]);let _0x134167=_0x3c0e2d['length'];const _0x2165c3=new _0x3245e5['Uint8Array'](_0x134167);for(;_0x134167--;)_0x2165c3[_0x134167]=_0x3c0e2d['charCodeAt'](_0x134167);return new _0x3245e5['File']([_0x2165c3],'image.'+_0x1e6876,{'type':_0x491142});}const _0x1a3bb3=_0x3a22bf['href']['split']('/'),_0x65169b=_0x1a3bb3[_0x1a3bb3['length']-0x1],_0x44f207=_0x65169b['split']('.')[0x1];return _0x3245e5['fetch'](_0x3a22bf['href'])['then'](_0x21baa9=>_0x21baa9['clone']()['blob']())['then'](_0x480872=>new _0x3245e5['File']([_0x480872],_0x65169b,{'type':'image/'+_0x44f207}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2fde(){const _0x4c7178=['4244QOMfyr','1296889VsEooN','imageSrc','3xuIpdV','setTemplate','image-edit','23221DyvhuD','54678TIhnlA','992014xiVqNx','6929336RotAKc','3900PHShjl','set','uc-light','uc-cloud-image-editor','6135HlmDRe','ck-uploadcare-theme','bindTemplate','255880upBFfT','387htCbmx','819GHxONj'];_0x2fde=function(){return _0x4c7178;};return _0x2fde();}(function(_0x449724,_0x15f45e){const _0x5eb85d=_0x38a8,_0xae8d9e=_0x449724();while(!![]){try{const _0x1e8715=-parseInt(_0x5eb85d(0x136))/0x1+parseInt(_0x5eb85d(0x13d))/0x2*(parseInt(_0x5eb85d(0x138))/0x3)+-parseInt(_0x5eb85d(0x135))/0x4*(-parseInt(_0x5eb85d(0x12f))/0x5)+parseInt(_0x5eb85d(0x13c))/0x6*(-parseInt(_0x5eb85d(0x134))/0x7)+parseInt(_0x5eb85d(0x13e))/0x8+-parseInt(_0x5eb85d(0x133))/0x9*(-parseInt(_0x5eb85d(0x132))/0xa)+parseInt(_0x5eb85d(0x13b))/0xb*(-parseInt(_0x5eb85d(0x13f))/0xc);if(_0x1e8715===_0x15f45e)break;else _0xae8d9e['push'](_0xae8d9e['shift']());}catch(_0x5b0708){_0xae8d9e['push'](_0xae8d9e['shift']());}}}(_0x2fde,0xae970));import{View as _0x121149}from'ckeditor5/src/ui.js';function _0x38a8(_0x546664,_0x2747ba){const _0x2fde1c=_0x2fde();return _0x38a8=function(_0x38a838,_0x3b0128){_0x38a838=_0x38a838-0x12d;let _0x52086b=_0x2fde1c[_0x38a838];return _0x52086b;},_0x38a8(_0x546664,_0x2747ba);}export default class tt extends _0x121149{constructor(_0x249831,_0xd3807e){const _0x1616fa=_0x38a8;super(_0x249831);const _0x27329c=this[_0x1616fa(0x131)];this[_0x1616fa(0x140)](_0x1616fa(0x137),''),this[_0x1616fa(0x139)]({'tag':_0x1616fa(0x12e),'attributes':{..._0xd3807e,'class':[_0x1616fa(0x12d),_0x1616fa(0x130)],'ctx-name':_0x1616fa(0x13a),'cdn-url':_0x27329c['to'](_0x1616fa(0x137))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x122b58,IconView as at,View as _0x469455}from'ckeditor5/src/ui.js';export default class rt extends _0x469455{constructor(_0x212e49){super(_0x212e49);const t=_0x212e49['t'];this['set']('errorType',null);const _0x2eaea4=new _0x122b58(_0x212e49);_0x2eaea4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2eaea4['withText']=!0x0,_0x2eaea4['class']='ck-button-action',_0x2eaea4['on']('execute',()=>{this['fire']('retry');}),_0x2eaea4['bind']('isVisible')['to'](this,'errorType',_0x5df7ca=>'NotFound'!==_0x5df7ca);const _0x414a3b=new at();_0x414a3b['content']=et,_0x414a3b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1beb53=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':[_0x414a3b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1beb53['to']('errorType',_0x271499=>t('NotFound'!==_0x271499?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2eaea4]},{'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 _0x3f68bf,View as _0x462a6f}from'ckeditor5/src/ui.js';export default class ta extends _0x462a6f{constructor(_0x27bc4b){super(_0x27bc4b);const t=_0x27bc4b['t'],_0x26f694=this['bindTemplate'],_0x17386a=new _0x3f68bf();_0x17386a['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':[_0x17386a,{'text':_0x26f694['to']('imageUploadProgress',_0x1104fa=>t('Loading\x20image...')+'\x20('+(_0x1104fa||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
|
-
|
|
23
|
+
function _0x4c82(_0x529c6c,_0x7ac290){const _0xb22b3a=_0xb22b();return _0x4c82=function(_0x4c8273,_0x4f6a83){_0x4c8273=_0x4c8273-0x15c;let _0x5cd88e=_0xb22b3a[_0x4c8273];return _0x5cd88e;},_0x4c82(_0x529c6c,_0x7ac290);}const _0x4ed12c=_0x4c82;(function(_0x3fba05,_0x5e7e0c){const _0x26f824=_0x4c82,_0x18e73e=_0x3fba05();while(!![]){try{const _0x2b0e61=parseInt(_0x26f824(0x17f))/0x1+parseInt(_0x26f824(0x170))/0x2*(-parseInt(_0x26f824(0x178))/0x3)+-parseInt(_0x26f824(0x187))/0x4+parseInt(_0x26f824(0x17c))/0x5*(-parseInt(_0x26f824(0x184))/0x6)+parseInt(_0x26f824(0x16e))/0x7*(parseInt(_0x26f824(0x16f))/0x8)+-parseInt(_0x26f824(0x163))/0x9*(-parseInt(_0x26f824(0x15e))/0xa)+-parseInt(_0x26f824(0x16a))/0xb;if(_0x2b0e61===_0x5e7e0c)break;else _0x18e73e['push'](_0x18e73e['shift']());}catch(_0x45f8ce){_0x18e73e['push'](_0x18e73e['shift']());}}}(_0xb22b,0x22807));function _0xb22b(){const _0x3d6ea6=['532564zexnZO','once','toLowerCase','uploading','addEventListener','status','cancel','addMany','_addUploadcareImageEditorListeners','nodeName','cdnUrl','retry','_items','getFocusableElement','_waitForImageEditorComponent','120DajJeF','_editingView','filter','div','apply','101169ZXlBql','uc-cloud-image-editor','_addErrorViewListeners','ck-uploadcare-form','length','ck-reset_all-excluded','_errorView','1010493UmKkLq','_focusableView','error','render','33733mALoao','184aSAfXZ','88sxoqyQ','addedNodes','element','_loadingView','detail','disconnect','target','add','3540usYVYq','focus','ready','setTemplate','35LNyzgY','querySelector','_setView','211987hZGzZK','fire','observe','set','clear','33834UIVzFx','change:status','createCollection'];_0xb22b=function(){return _0x3d6ea6;};return _0xb22b();}import{View as _0x101a92}from'ckeditor5/src/ui.js';import _0x5538ea from'./uploadcareimageeditformloadingview.js';import _0x220e67 from'./uploadcareimageeditformerrorview.js';import _0x30cdc9 from'./uploadcareimageeditformeditingview.js';import _0x5c18ae from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class ii extends _0x5c18ae{[_0x4ed12c(0x193)];[_0x4ed12c(0x173)];[_0x4ed12c(0x169)];[_0x4ed12c(0x15f)];[_0x4ed12c(0x16b)];constructor(_0x54f11f,_0x553f0c,_0x5ce7ee){const _0x111fc0=_0x4ed12c;super(_0x54f11f),this[_0x111fc0(0x193)]=this[_0x111fc0(0x186)](),this[_0x111fc0(0x173)]=new _0x5538ea(_0x54f11f),this[_0x111fc0(0x169)]=new _0x220e67(_0x54f11f),this[_0x111fc0(0x15f)]=new _0x30cdc9(_0x54f11f,_0x5ce7ee),this[_0x111fc0(0x16b)]=new _0x101a92(_0x54f11f),this[_0x111fc0(0x16b)][_0x111fc0(0x17b)](this[_0x111fc0(0x15c)]()),this[_0x111fc0(0x182)](_0x111fc0(0x18c),_0x553f0c),this[_0x111fc0(0x17b)]({'tag':_0x111fc0(0x161),'attributes':{'class':['ck',_0x111fc0(0x168),_0x111fc0(0x166)],'tabindex':'-1'},'children':this[_0x111fc0(0x193)]}),this[_0x111fc0(0x17e)](),this[_0x111fc0(0x188)](_0x111fc0(0x16d),()=>{const _0x9f6308=_0x111fc0;this[_0x9f6308(0x15d)](this[_0x9f6308(0x172)],_0x8202b1=>{const _0xb244c0=_0x9f6308;this[_0xb244c0(0x18f)](_0x8202b1);});}),this['on'](_0x111fc0(0x185),()=>{const _0x185105=_0x111fc0;this[_0x185105(0x17e)]();}),this[_0x111fc0(0x165)]();}[_0x4ed12c(0x179)](){const _0x465f57=_0x4ed12c;this[_0x465f57(0x172)][_0x465f57(0x179)]();}[_0x4ed12c(0x17e)](){const _0x44171b=_0x4ed12c;switch(this[_0x44171b(0x193)][_0x44171b(0x183)](),this[_0x44171b(0x18c)]){case _0x44171b(0x18a):this[_0x44171b(0x193)][_0x44171b(0x177)](this[_0x44171b(0x173)]);break;case _0x44171b(0x16c):this[_0x44171b(0x193)][_0x44171b(0x177)](this[_0x44171b(0x169)]);break;case _0x44171b(0x17a):this[_0x44171b(0x193)][_0x44171b(0x18e)]([this[_0x44171b(0x15f)],this[_0x44171b(0x16b)]]);}}[_0x4ed12c(0x15d)](_0x3df9d4,_0x452f24){const _0x2aaaae=_0x4ed12c,_0x128938=_0x2aaaae(0x164),_0x42ec8f=_0x3df9d4[_0x2aaaae(0x17d)](_0x128938);if(_0x42ec8f)return _0x452f24(_0x42ec8f);const _0xbca1ae=new MutationObserver(_0x231183=>{const _0x29d069=_0x2aaaae,_0x2a2e48=_0x231183[_0x29d069(0x160)](_0x7cb922=>_0x7cb922[_0x29d069(0x176)]===_0x3df9d4&&_0x7cb922[_0x29d069(0x171)][_0x29d069(0x167)]>0x0&&_0x7cb922[_0x29d069(0x171)][0x0][_0x29d069(0x190)][_0x29d069(0x189)]()===_0x128938);_0x2a2e48[_0x29d069(0x167)]&&(_0xbca1ae[_0x29d069(0x175)](),_0x452f24(_0x2a2e48[0x0][_0x29d069(0x171)][0x0]));});_0xbca1ae[_0x2aaaae(0x181)](_0x3df9d4,{'childList':!0x0,'subtree':!0x0});}[_0x4ed12c(0x18f)](_0x228809){const _0x53116c=_0x4ed12c;_0x228809[_0x53116c(0x18b)](_0x53116c(0x162),_0x3fd4bb=>{const _0x5625ce=_0x53116c;this[_0x5625ce(0x180)](_0x5625ce(0x162),{'imageSrc':_0x3fd4bb[_0x5625ce(0x174)][_0x5625ce(0x191)]});}),_0x228809[_0x53116c(0x18b)](_0x53116c(0x18d),()=>{const _0x4608b1=_0x53116c;this[_0x4608b1(0x180)](_0x4608b1(0x18d));});}[_0x4ed12c(0x165)](){const _0x46b470=_0x4ed12c;this[_0x46b470(0x169)]['on'](_0x46b470(0x192),()=>{const _0xd1399d=_0x46b470;this[_0xd1399d(0x180)](_0xd1399d(0x192));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x14cb(_0xdba84b,_0x5e7948){const _0x565a23=_0x565a();return _0x14cb=function(_0x14cbe8,_0x195a59){_0x14cbe8=_0x14cbe8-0x75;let _0x9df335=_0x565a23[_0x14cbe8];return _0x9df335;},_0x14cb(_0xdba84b,_0x5e7948);}const _0x16145b=_0x14cb;(function(_0x2c2687,_0x5a8876){const _0x1413b2=_0x14cb,_0x12a02a=_0x2c2687();while(!![]){try{const _0x4de972=-parseInt(_0x1413b2(0x8a))/0x1*(-parseInt(_0x1413b2(0x94))/0x2)+parseInt(_0x1413b2(0x80))/0x3*(parseInt(_0x1413b2(0x8c))/0x4)+-parseInt(_0x1413b2(0x8f))/0x5*(-parseInt(_0x1413b2(0x81))/0x6)+parseInt(_0x1413b2(0x7b))/0x7*(-parseInt(_0x1413b2(0x85))/0x8)+-parseInt(_0x1413b2(0x87))/0x9+parseInt(_0x1413b2(0x7d))/0xa+parseInt(_0x1413b2(0x89))/0xb*(-parseInt(_0x1413b2(0x7f))/0xc);if(_0x4de972===_0x5a8876)break;else _0x12a02a['push'](_0x12a02a['shift']());}catch(_0x2350c3){_0x12a02a['push'](_0x12a02a['shift']());}}}(_0x565a,0x2c81e));function _0x565a(){const _0x4bb00f=['get','4SwzzJn','refresh','model','293815jXCNEO','editor','document','imageBlock','isActive','1468eOHFMu','requires','_isEditable','getSelectedElement','isEnabled','bind','plugins','uploadcare.allowExternalImagesEditing','element','340970WYWAVr','unbind','2038720YrlTxi','set','12EpuEke','1033347uaVkLQ','30BAcTPN','imageEditController','imageInline','selection','32evsXdL','execute','594819aRKqwg','config','8110047lkoBnn','461uWOBHc'];_0x565a=function(){return _0x4bb00f;};return _0x565a();}import{Command as _0xf3efea}from'ckeditor5/src/core.js';import{Dialog as _0x214f8c}from'ckeditor5/src/ui.js';import _0x4e6a26 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x3a8cdd}from'../utils/editingutils.js';export default class D extends _0xf3efea{[_0x16145b(0x82)];static get[_0x16145b(0x95)](){return[_0x214f8c];}[_0x16145b(0x96)];constructor(_0x4cc9ea){const _0x195d39=_0x16145b;super(_0x4cc9ea),this[_0x195d39(0x82)]=void 0x0,this[_0x195d39(0x96)]=_0x3a8cdd(_0x4cc9ea[_0x195d39(0x88)][_0x195d39(0x8b)](_0x195d39(0x79))||[]),this[_0x195d39(0x7e)]({'isActive':!0x1});}[_0x16145b(0x8d)](){const _0x2b6335=_0x16145b,_0x149cad=this[_0x2b6335(0x90)][_0x2b6335(0x8e)][_0x2b6335(0x91)][_0x2b6335(0x84)][_0x2b6335(0x75)]();this[_0x2b6335(0x76)]=this[_0x2b6335(0x96)](_0x149cad);}[_0x16145b(0x86)](){const _0x5d7c69=_0x16145b;this[_0x5d7c69(0x82)]&&(this[_0x5d7c69(0x7c)](_0x5d7c69(0x93)),this[_0x5d7c69(0x82)]=void 0x0);const _0x3b386d=this[_0x5d7c69(0x90)][_0x5d7c69(0x8e)][_0x5d7c69(0x91)][_0x5d7c69(0x84)][_0x5d7c69(0x75)]();_0x3b386d&&(_0x3b386d['is'](_0x5d7c69(0x7a),_0x5d7c69(0x92))||_0x3b386d['is'](_0x5d7c69(0x7a),_0x5d7c69(0x83)))&&(this[_0x5d7c69(0x82)]=new _0x4e6a26(this[_0x5d7c69(0x90)],this[_0x5d7c69(0x90)][_0x5d7c69(0x78)][_0x5d7c69(0x8b)](_0x214f8c),_0x3b386d),this[_0x5d7c69(0x77)](_0x5d7c69(0x93))['to'](this[_0x5d7c69(0x82)],_0x5d7c69(0x93)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x760032=_0x2efd;(function(_0x3d0710,_0x2eae43){const _0x552ccf=_0x2efd,_0x2573f4=_0x3d0710();while(!![]){try{const _0x16a771=-parseInt(_0x552ccf(0x15f))/0x1*(-parseInt(_0x552ccf(0x160))/0x2)+-parseInt(_0x552ccf(0x164))/0x3*(-parseInt(_0x552ccf(0x155))/0x4)+parseInt(_0x552ccf(0x157))/0x5*(-parseInt(_0x552ccf(0x156))/0x6)+-parseInt(_0x552ccf(0x15e))/0x7+parseInt(_0x552ccf(0x167))/0x8*(-parseInt(_0x552ccf(0x159))/0x9)+-parseInt(_0x552ccf(0x165))/0xa+parseInt(_0x552ccf(0x158))/0xb;if(_0x16a771===_0x2eae43)break;else _0x2573f4['push'](_0x2573f4['shift']());}catch(_0x56b231){_0x2573f4['push'](_0x2573f4['shift']());}}}(_0x4395,0x61750));function _0x4395(){const _0x55955b=['uploadcareImageReplace','15dngeap','1422090EGMvYl','ImageEditing','1550032EUSFeL','UploadcareImageEditEditing','pluginName','init','requires','2476xSNdHl','222zDqInT','79115xFCUsI','13738846lSPPOC','9USjzIl','commands','uploadcareImageEdit','ImageUtils','add','3870125BBhSNq','310696RrrykZ','4AWQwiG','isOfficialPlugin','isPremiumPlugin'];_0x4395=function(){return _0x55955b;};return _0x4395();}import{Plugin as _0x352768}from'ckeditor5/src/core.js';import{Notification as _0x13c21a}from'ckeditor5/src/ui.js';import _0xb689a8 from'./uploadcareimageeditcommand.js';function _0x2efd(_0x2c4300,_0x50a38f){const _0x43952c=_0x4395();return _0x2efd=function(_0x2efd69,_0x52f289){_0x2efd69=_0x2efd69-0x154;let _0x1cad41=_0x43952c[_0x2efd69];return _0x1cad41;},_0x2efd(_0x2c4300,_0x50a38f);}import _0x420d6a from'./uploadcareimagereplacecommand.js';import _0x37bb87 from'../uploadcareediting.js';export default class g extends _0x352768{static get[_0x760032(0x169)](){const _0x112fad=_0x760032;return _0x112fad(0x168);}static get[_0x760032(0x154)](){const _0x50dec0=_0x760032;return[_0x37bb87,_0x13c21a,_0x50dec0(0x15c),_0x50dec0(0x166)];}static get[_0x760032(0x161)](){return!0x0;}static get[_0x760032(0x162)](){return!0x0;}[_0x760032(0x16a)](){const _0x9dd3e7=_0x760032,{editor:_0x3bf73b}=this;_0x3bf73b[_0x9dd3e7(0x15a)][_0x9dd3e7(0x15d)](_0x9dd3e7(0x15b),new _0xb689a8(_0x3bf73b)),_0x3bf73b[_0x9dd3e7(0x15a)][_0x9dd3e7(0x15d)](_0x9dd3e7(0x163),new _0x420d6a(_0x3bf73b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x51e677}from'ckeditor5/src/core.js';import{ButtonView as _0x9c1631}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4d2524}from'ckeditor5/src/icons.js';import{createElement as _0x2a610f}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x51e677{['_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 _0x131f8e=this['editor'];_0x131f8e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x128f2b=>{const _0x3927b7=_0x131f8e['commands']['get']('uploadcareImageEdit'),_0x34272a=new _0x9c1631(_0x128f2b),t=_0x128f2b['t'];return _0x34272a['set']({'icon':_0x4d2524,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x34272a['bind']('isEnabled')['to'](_0x3927b7),_0x34272a['bind']('isOn')['to'](_0x3927b7,'isActive'),this['listenTo'](_0x34272a,'execute',()=>{_0x131f8e['execute']('uploadcareImageEdit'),_0x131f8e['editing']['view']['focus']();}),_0x34272a;}),this['_initConfig']();}['_initConfig'](){const _0x10bdac=_0x2a610f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x10bdac),this['listenTo'](this['editor'],'destroy',()=>{_0x10bdac['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x13c087=_0x4fbb;(function(_0x41a7d1,_0x4e1179){const _0x2d113e=_0x4fbb,_0x28de9a=_0x41a7d1();while(!![]){try{const _0x21e30e=parseInt(_0x2d113e(0x1f2))/0x1*(-parseInt(_0x2d113e(0x1e1))/0x2)+parseInt(_0x2d113e(0x1ed))/0x3+-parseInt(_0x2d113e(0x1e8))/0x4+parseInt(_0x2d113e(0x1ec))/0x5*(parseInt(_0x2d113e(0x1ee))/0x6)+parseInt(_0x2d113e(0x1e5))/0x7+parseInt(_0x2d113e(0x1dd))/0x8+parseInt(_0x2d113e(0x1de))/0x9*(parseInt(_0x2d113e(0x1f0))/0xa);if(_0x21e30e===_0x4e1179)break;else _0x28de9a['push'](_0x28de9a['shift']());}catch(_0x41f516){_0x28de9a['push'](_0x28de9a['shift']());}}}(_0x4b2c,0xd04b2));import{Command as _0x34454e}from'ckeditor5/src/core.js';function _0x4fbb(_0x3501ca,_0x5518fe){const _0x4b2ccf=_0x4b2c();return _0x4fbb=function(_0x4fbb7d,_0x43c968){_0x4fbb7d=_0x4fbb7d-0x1dd;let _0x1b5f9d=_0x4b2ccf[_0x4fbb7d];return _0x1b5f9d;},_0x4fbb(_0x3501ca,_0x5518fe);}export default class O extends _0x34454e{[_0x13c087(0x1f4)](){const _0x57b8b9=_0x13c087,_0x23e594=this[_0x57b8b9(0x1e7)][_0x57b8b9(0x1e2)][_0x57b8b9(0x1e6)][_0x57b8b9(0x1f3)][_0x57b8b9(0x1eb)]();this[_0x57b8b9(0x1e0)]=Boolean(_0x23e594&&(_0x23e594['is'](_0x57b8b9(0x1e9),_0x57b8b9(0x1f5))||_0x23e594['is'](_0x57b8b9(0x1e9),_0x57b8b9(0x1e3))));}[_0x13c087(0x1f6)](_0x5df961){const _0x507db8=_0x13c087,_0x2fd92d=this[_0x507db8(0x1e7)][_0x507db8(0x1e2)][_0x507db8(0x1e6)][_0x507db8(0x1f3)][_0x507db8(0x1eb)]();this[_0x507db8(0x1e7)][_0x507db8(0x1e2)][_0x507db8(0x1f1)](_0x194ac3=>{const _0x5f1787=_0x507db8;_0x194ac3[_0x5f1787(0x1ea)](_0x5df961,_0x2fd92d),_0x194ac3[_0x5f1787(0x1df)](_0x5f1787(0x1e4),_0x2fd92d),_0x194ac3[_0x5f1787(0x1df)](_0x5f1787(0x1ef),_0x2fd92d);});}}function _0x4b2c(){const _0xb6c78d=['521248KVdMjU','document','editor','3706984ToYmeS','element','setAttributes','getSelectedElement','135RfLvez','1453179iYtiJs','174216RDwmfS','sizes','5986690PEneKO','change','840943yRYgwD','selection','refresh','imageBlock','execute','2583728AJWHGF','27oepFZi','removeAttribute','isEnabled','4DzAHVa','model','imageInline','srcset'];_0x4b2c=function(){return _0xb6c78d;};return _0x4b2c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x1bf0(_0x496355,_0x3c977e){var _0x398cea=_0x398c();return _0x1bf0=function(_0x1bf0f4,_0x107d93){_0x1bf0f4=_0x1bf0f4-0x10c;var _0x17eb6c=_0x398cea[_0x1bf0f4];return _0x17eb6c;},_0x1bf0(_0x496355,_0x3c977e);}var _0x1dab57=_0x1bf0;(function(_0x268703,_0x3b2515){var _0x49e3a6=_0x1bf0,_0xa3d548=_0x268703();while(!![]){try{var _0x219a49=-parseInt(_0x49e3a6(0x113))/0x1+parseInt(_0x49e3a6(0x116))/0x2+-parseInt(_0x49e3a6(0x11a))/0x3+-parseInt(_0x49e3a6(0x112))/0x4+parseInt(_0x49e3a6(0x114))/0x5*(-parseInt(_0x49e3a6(0x11d))/0x6)+parseInt(_0x49e3a6(0x111))/0x7*(-parseInt(_0x49e3a6(0x11e))/0x8)+-parseInt(_0x49e3a6(0x110))/0x9*(-parseInt(_0x49e3a6(0x118))/0xa);if(_0x219a49===_0x3b2515)break;else _0xa3d548['push'](_0xa3d548['shift']());}catch(_0x5f5de2){_0xa3d548['push'](_0xa3d548['shift']());}}}(_0x398c,0xf1b22));import{FocusTracker as _0x4eddb0}from'ckeditor5/src/utils.js';import{View as _0x1f99c1,FocusCycler as _0x517627}from'ckeditor5/src/ui.js';function _0x398c(){var _0x1861e9=['getFocusableElement','focusCycler','580542tYIsSt','5849464eqFckM','focusTracker','createCollection','fire','forwardCycle','12671667LLpeJg','7RkzElk','5654516WYWYQB','1489525lmmTLR','65vsRipc','true','2572044wekMzL','bindTemplate','40rEYIzR','div','3107130oejBlj'];_0x398c=function(){return _0x1861e9;};return _0x398c();}import'../../theme/uploadcare-form.css';export default class G extends _0x1f99c1{[_0x1dab57(0x10c)];[_0x1dab57(0x11c)];constructor(_0x364cd3){var _0x402c81=_0x1dab57;super(_0x364cd3),this[_0x402c81(0x10c)]=new _0x4eddb0(),this[_0x402c81(0x11c)]=new _0x517627({'focusables':this[_0x402c81(0x10d)](),'focusTracker':this[_0x402c81(0x10c)]});}[_0x1dab57(0x11b)](){var _0x334fdb=_0x1dab57;return{'tag':_0x334fdb(0x119),'attributes':{'aria-hidden':_0x334fdb(0x115),'tabindex':'0'},'on':{'focus':this[_0x334fdb(0x117)]['to'](()=>{var _0x281518=_0x334fdb;this[_0x281518(0x11c)][_0x281518(0x10e)](_0x281518(0x10f));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x3b7938,_0x3e2499){const _0x207198=_0x3955,_0xac5c37=_0x3b7938();while(!![]){try{const _0x2397ba=parseInt(_0x207198(0x116))/0x1*(parseInt(_0x207198(0x126))/0x2)+-parseInt(_0x207198(0x122))/0x3*(-parseInt(_0x207198(0x145))/0x4)+-parseInt(_0x207198(0x14c))/0x5+parseInt(_0x207198(0x132))/0x6*(parseInt(_0x207198(0x11b))/0x7)+parseInt(_0x207198(0x134))/0x8+parseInt(_0x207198(0x118))/0x9*(-parseInt(_0x207198(0x12c))/0xa)+-parseInt(_0x207198(0x139))/0xb*(parseInt(_0x207198(0x127))/0xc);if(_0x2397ba===_0x3e2499)break;else _0xac5c37['push'](_0xac5c37['shift']());}catch(_0x1b19d7){_0xac5c37['push'](_0xac5c37['shift']());}}}(_0x3fe4,0xad804));import{global as _0x7f4264,DomEmitterMixin as _0x456102}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x5adcb3){const _0x1deaef=_0x3955,_0x5ab3e1=W(_0x5adcb3);return _0x1425e4=>!(!_0x1425e4||!_0x1425e4['is'](_0x1deaef(0x14e),_0x1deaef(0x12b))&&!_0x1425e4['is'](_0x1deaef(0x14e),_0x1deaef(0x138)))&&(!!_0x1425e4[_0x1deaef(0x136)](_0x1deaef(0x125))||!!_0x1425e4[_0x1deaef(0x136)](_0x1deaef(0x13c))&&_0x5ab3e1(_0x1425e4[_0x1deaef(0x12e)](_0x1deaef(0x13c))));}export function getImageUrls(_0x4e83f8,_0x34d831){const _0x5d2a70=_0x3955,_0x339ffd=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x5d2a70(0x144)](_0x3ee845=>_0x3ee845<=_0x34d831)[_0x5d2a70(0x124)](_0x340477=>_0x4e83f8[_0x5d2a70(0x123)](/\/$/,'')+_0x5d2a70(0x120)+_0x340477+_0x5d2a70(0x149)+_0x340477+'w');return{'imageFallbackUrl':_0x4e83f8,'imageSources':[{'srcset':_0x339ffd[_0x5d2a70(0x11f)](',\x20'),'sizes':_0x5d2a70(0x11a)+_0x34d831+_0x5d2a70(0x142)+_0x34d831+'px','type':_0x5d2a70(0x130)}]};}function _0x3955(_0x1a45f3,_0x2069de){const _0x3fe4ac=_0x3fe4();return _0x3955=function(_0x39553f,_0x49413f){_0x39553f=_0x39553f-0x115;let _0x40e893=_0x3fe4ac[_0x39553f];return _0x40e893;},_0x3955(_0x1a45f3,_0x2069de);}export function getImageDimension(_0x240f7b,_0x3130a5,_0x3427ae){const _0x2f4f1a=_0x3955,_0x4ef0eb=_0x240f7b[_0x2f4f1a(0x143)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4ef0eb?parseInt(_0x4ef0eb[0x1],0xa):_0x3130a5,'height':_0x4ef0eb?parseInt(_0x4ef0eb[0x2],0xa):_0x3427ae};}function _0x3fe4(){const _0x2fd119=['function','document','join','/-/resize/','toViewElement','3VQlwdE','replace','map','uploadcareImageId','3506ThhweW','125508kFdjdJ','stopListening','create','setStyle','imageBlock','8634770irVDUN','addClass','getAttribute','removeStyle','image/webp','domConverter','354rZIWWK','removeClass','2781184pqJMlJ','findViewImgElement','hasAttribute','get','imageInline','66eOCvIY','window','ImageUtils','src','isArray','height','width','listenTo','baseURI','px)\x20100vw,\x20','match','filter','632944okAjnK','location','origin','image-processing','x/\x20','view','change','3830565yBPjtC','plugins','element','load','editing','aspect-ratio','529FwVDyl','some','9NdrWIc','viewToDom','(max-width:\x20','115059bzfuAY','mapper'];_0x3fe4=function(){return _0x2fd119;};return _0x3fe4();}export function showImageProcessingIndicator(_0x2d6ccf,_0x45b3bc){const _0x57abde=_0x3955,_0x3f58c3=Object[_0x57abde(0x129)](_0x456102),_0x5263cc=_0x2d6ccf[_0x57abde(0x14d)][_0x57abde(0x137)](_0x57abde(0x13b)),_0x58b6b2=_0x2d6ccf[_0x57abde(0x150)][_0x57abde(0x11c)][_0x57abde(0x121)](_0x45b3bc),_0x5e1e85=_0x5263cc[_0x57abde(0x135)](_0x58b6b2),_0x17a269=_0x2d6ccf[_0x57abde(0x150)][_0x57abde(0x14a)][_0x57abde(0x131)][_0x57abde(0x119)](_0x5e1e85),_0x50cc43=_0x45b3bc[_0x57abde(0x12e)](_0x57abde(0x13f)),_0x28790c=_0x45b3bc[_0x57abde(0x12e)](_0x57abde(0x13e)),_0x196e3c=_0x57abde(0x148);_0x2d6ccf[_0x57abde(0x150)][_0x57abde(0x14a)][_0x57abde(0x14b)](_0x4aff66=>{const _0x2c8311=_0x57abde;_0x4aff66[_0x2c8311(0x12d)](_0x196e3c,_0x58b6b2),_0x4aff66[_0x2c8311(0x12a)](_0x2c8311(0x115),_0x50cc43+'/'+_0x28790c,_0x5e1e85);}),_0x3f58c3[_0x57abde(0x140)](_0x17a269,_0x57abde(0x14f),()=>{const _0x329e49=_0x57abde;_0x3f58c3[_0x329e49(0x128)](_0x17a269,_0x329e49(0x14f)),_0x2d6ccf[_0x329e49(0x150)][_0x329e49(0x14a)][_0x329e49(0x14b)](_0x3fa21e=>{const _0x44c54e=_0x329e49;_0x3fa21e[_0x44c54e(0x133)](_0x196e3c,_0x58b6b2),_0x3fa21e[_0x44c54e(0x12f)](_0x44c54e(0x115),_0x5e1e85);});});}function W(_0x1e4752){const _0x29a44c=_0x3955;if(Array[_0x29a44c(0x13d)](_0x1e4752)){const _0x1c9f96=_0x1e4752[_0x29a44c(0x124)](W);return _0x2043ca=>_0x1c9f96[_0x29a44c(0x117)](_0x31e5f9=>_0x31e5f9(_0x2043ca));}if(_0x29a44c(0x147)==_0x1e4752){const _0x168044=_0x7f4264[_0x29a44c(0x13a)][_0x29a44c(0x146)][_0x29a44c(0x147)];return _0x56854c=>new URL(_0x56854c,_0x7f4264[_0x29a44c(0x11e)][_0x29a44c(0x141)])[_0x29a44c(0x147)]==_0x168044;}return _0x29a44c(0x11d)==typeof _0x1e4752?_0x1e4752:_0x1e4752 instanceof RegExp?_0x539dd3=>!(!_0x539dd3[_0x29a44c(0x143)](_0x1e4752)&&!_0x539dd3[_0x29a44c(0x123)](/^https?:\/\//,'')[_0x29a44c(0x143)](_0x1e4752)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x177f61,_0x4e0e85){var _0x11514c=_0x5ed1,_0x460573=_0x177f61();while(!![]){try{var _0xce309f=-parseInt(_0x11514c(0x11a))/0x1*(parseInt(_0x11514c(0x115))/0x2)+-parseInt(_0x11514c(0x117))/0x3*(parseInt(_0x11514c(0x116))/0x4)+-parseInt(_0x11514c(0x118))/0x5*(-parseInt(_0x11514c(0x114))/0x6)+parseInt(_0x11514c(0x11f))/0x7+parseInt(_0x11514c(0x11c))/0x8+-parseInt(_0x11514c(0x119))/0x9+parseInt(_0x11514c(0x11e))/0xa*(parseInt(_0x11514c(0x11d))/0xb);if(_0xce309f===_0x4e0e85)break;else _0x460573['push'](_0x460573['shift']());}catch(_0xa12c47){_0x460573['push'](_0x460573['shift']());}}}(_0xb285,0x87045));function _0x5ed1(_0x43f778,_0x3cf1e9){var _0xb2858d=_0xb285();return _0x5ed1=function(_0x5ed1a0,_0x33734f){_0x5ed1a0=_0x5ed1a0-0x114;var _0x38ed55=_0xb2858d[_0x5ed1a0];return _0x38ed55;},_0x5ed1(_0x43f778,_0x3cf1e9);}function _0xb285(){var _0x5be3dc=['4035405gSSeKL','20qbnLbu','6442506AzaElq','target','3086922zIHnXT','460IJixuV','4RPymxQ','1488447tuQBkU','5MHRmmH','7281423nEHHbp','3822VjKKlU','includes','4549840GCVlXz'];_0xb285=function(){return _0x5be3dc;};return _0xb285();}import{getAncestors as _0x4c5306}from'ckeditor5/src/utils.js';export function isAncestor(_0x45768d,_0x1d0f0b){var _0x5099f0=_0x5ed1;return _0x4c5306(_0x45768d[_0x5099f0(0x120)])[_0x5099f0(0x11b)](_0x1d0f0b);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0xdea8(_0x22ed99,_0x7b5683){var _0x5df839=_0x5df8();return _0xdea8=function(_0xdea8de,_0x2a4e1c){_0xdea8de=_0xdea8de-0x1ad;var _0x244cf0=_0x5df839[_0xdea8de];return _0x244cf0;},_0xdea8(_0x22ed99,_0x7b5683);}var _0x52c77c=_0xdea8;(function(_0x58b3b2,_0x3c575d){var _0x419969=_0xdea8,_0x2d53eb=_0x58b3b2();while(!![]){try{var _0x5722ff=-parseInt(_0x419969(0x1ae))/0x1*(parseInt(_0x419969(0x1b0))/0x2)+-parseInt(_0x419969(0x1ad))/0x3*(-parseInt(_0x419969(0x1b5))/0x4)+parseInt(_0x419969(0x1b2))/0x5*(parseInt(_0x419969(0x1b4))/0x6)+-parseInt(_0x419969(0x1b7))/0x7+-parseInt(_0x419969(0x1ba))/0x8+parseInt(_0x419969(0x1af))/0x9+-parseInt(_0x419969(0x1b6))/0xa*(-parseInt(_0x419969(0x1b1))/0xb);if(_0x5722ff===_0x3c575d)break;else _0x2d53eb['push'](_0x2d53eb['shift']());}catch(_0x5c4af6){_0x2d53eb['push'](_0x2d53eb['shift']());}}}(_0x5df8,0x42b4f));import{uploadFile as _0x262c99,info as _0x3324d3}from'@uploadcare/upload-client';function _0x5df8(){var _0x12e92b=['2507337ZjhLOa','14UyBvTO','11cMOPdA','1040aZRnek','auto','4986HOHRyJ','33188CwIPKc','6902660Dgkhdi','2941946VQeRmD','getInfo','upload','1586632UFJLPE','15Gbmujz','41622yMpMIL'];_0x5df8=function(){return _0x12e92b;};return _0x5df8();}export default class C{static[_0x52c77c(0x1b9)]({file:_0x376d66,publicKey:_0x5b5e47,signal:_0xc52901,onProgress:_0x2b8824}){var _0x35e724=_0x52c77c;return _0x262c99(_0x376d66,{'publicKey':_0x5b5e47,'store':_0x35e724(0x1b3),'signal':_0xc52901,'onProgress':_0x2b8824});}static[_0x52c77c(0x1b8)](_0x4ab752,_0x5ea72a){return _0x3324d3(_0x4ab752,_0x5ea72a);}}
|