@ckeditor/ckeditor5-uploadcare 44.2.0-alpha.0 → 44.2.0-alpha.1
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/LICENSE.md +5 -0
- package/README.md +16 -5
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.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/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.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 _0x1f2082,ObservableMixin as _0x4fa689}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1043da}from'ckeditor5/src/ui.js';import _0x3cdc0d from'./uploadcareimageeditformview.js';import _0x4fe6ac from'../../utils/uploadutils.js';import _0xc46832 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x5592a9,getImageDimension as _0x17b387}from'../../utils/editingutils.js';import{isAncestor as _0x59d374}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4fa689(){constructor(_0x161c37,_0x34deea,_0x48224f){super(),this['_editor']=_0x161c37,this['_dialog']=_0x34deea,this['_imageElement']=_0x48224f,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 _0x355983=this['_imageElement'],_0x512455=_0x355983['getAttribute']('uploadcareImageId'),_0x4b1d50=_0x355983['getAttribute']('src');if(_0x512455)await this['_loadImageInfo'](_0x512455,_0x4b1d50);else{if(this['_imageCache']['has'](_0x4b1d50)){const _0x27ba70=this['_imageCache']['get'](_0x4b1d50);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x27ba70['url'],this['imageDimension']=_0x27ba70['dimension'],this['imageId']=_0x27ba70['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1c868b}=this['_editor'],t=_0x1c868b['t'],_0xb4c132=new _0x3cdc0d(_0x1c868b,this['imageStatus'],this['_attributes']);_0xb4c132['bind']('status')['to'](this,'imageStatus'),_0xb4c132['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xb4c132['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xb4c132['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xb4c132,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xc46832,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xb4c132,'position':_0x1043da['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xb4c132['focus']();},'onHide':()=>{_0xb4c132['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3988b1=>!_0x59d374(_0x3988b1,_0xb4c132['element'])}});}['_loadImageInfo'](_0x8f46ab,_0x122c5a){return _0x4fe6ac['getInfo'](_0x8f46ab,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3dff5c=>{const {width:_0x5c90ea,height:_0x156d84}=_0x3dff5c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x122c5a,this['imageDimension']={'width':_0x5c90ea,'height':_0x156d84},this['imageId']=_0x8f46ab;})['catch'](_0x5a9613=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5a9613['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1e0d0a,_0x50bc70){return this['_getImageAsFile'](_0x1e0d0a)['then'](_0x8b1e64=>_0x4fe6ac['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x50bc70['signal'],'file':_0x8b1e64,'onProgress':_0x305496=>{_0x305496&&_0x305496['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x305496['value']));}}))['then'](_0x34164d=>{const {width:_0x211a0c,height:_0x38816a}=_0x34164d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34164d['cdnUrl'],this['imageDimension']={'width':_0x211a0c,'height':_0x38816a},this['imageId']=_0x34164d['uuid'],this['imageUploadProgress']=null;const _0x465de9=_0x1e0d0a['getAttribute']('src');this['_imageCache']['set'](_0x465de9,{'id':_0x34164d['uuid'],'url':_0x34164d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4c4c3c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4c4c3c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x8c25d2,_0x100c82){_0x8c25d2['on']('apply',(_0x56fbaa,_0x566d2d)=>{this['_replaceImage'](_0x100c82,_0x566d2d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x8c25d2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x8c25d2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x554be4,_0x308949,_0x2df818){const _0x4f5de5=this['_editor'],{width:_0x129428,height:_0x5aa3b5}=_0x17b387(_0x308949,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x176386,imageSources:_0xcbf063}=_0x5592a9(_0x308949,_0x129428);_0x4f5de5['model']['change'](_0x17873a=>{if('$graveyard'===_0x554be4['root']['rootName']){_0x4f5de5['execute']('insertImage',{'imageType':_0x554be4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x554be4['getAttributes']()),'uploadcareImageId':_0x2df818,'src':_0x176386,'sources':_0xcbf063,'width':_0x129428,'height':_0x5aa3b5}});const _0x927028=_0x554be4['getChildren']();_0x554be4=_0x4f5de5['model']['document']['selection']['getSelectedElement']();for(const _0x45fce3 of _0x927028)_0x17873a['append'](_0x17873a['cloneElement'](_0x45fce3),_0x554be4);}else _0x17873a['setSelection'](_0x554be4,'on'),_0x4f5de5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x554be4['getAttributes']()),'uploadcareImageId':_0x2df818,'src':_0x176386,'sources':_0xcbf063,'width':_0x129428,'height':_0x5aa3b5},_0x554be4);_0x17873a['setSelection'](_0x554be4,'on');});}async['_getImageAsFile'](_0x12ee5a){const _0x26102d=_0x1f2082['window'],_0x3b6dbf=_0x1f2082['document']['location']['href'],_0x954efd=new _0x26102d['URL'](_0x12ee5a['getAttribute']('src'),_0x3b6dbf);if('data:'===_0x954efd['protocol']){const _0x548b8b=_0x954efd['href']['split'](','),_0x2afc25=_0x548b8b[0x0]['match'](/:(.*?);/)[0x1],_0x2a3e39=_0x2afc25['split']('/')[0x1],_0x135750=_0x26102d['atob'](_0x548b8b[_0x548b8b['length']-0x1]);let _0x532532=_0x135750['length'];const _0x4530b7=new _0x26102d['Uint8Array'](_0x532532);for(;_0x532532--;)_0x4530b7[_0x532532]=_0x135750['charCodeAt'](_0x532532);return new _0x26102d['File']([_0x4530b7],'image.'+_0x2a3e39,{'type':_0x2afc25});}const _0x51fd1c=_0x954efd['href']['split']('/'),_0x1f1606=_0x51fd1c[_0x51fd1c['length']-0x1],_0x1624ab=_0x1f1606['split']('.')[0x1];return _0x26102d['fetch'](_0x954efd['href'])['then'](_0xad764d=>_0xad764d['clone']()['blob']())['then'](_0x112f88=>new _0x26102d['File']([_0x112f88],_0x1f1606,{'type':'image/'+_0x1624ab}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x2eb85e,_0x4e6b35){const _0x459f6d=_0x4fd5,_0x11f10f=_0x2eb85e();while(!![]){try{const _0x33f35e=parseInt(_0x459f6d(0x6e))/0x1+parseInt(_0x459f6d(0x70))/0x2+parseInt(_0x459f6d(0x75))/0x3+parseInt(_0x459f6d(0x77))/0x4+parseInt(_0x459f6d(0x73))/0x5*(parseInt(_0x459f6d(0x68))/0x6)+-parseInt(_0x459f6d(0x72))/0x7*(parseInt(_0x459f6d(0x76))/0x8)+-parseInt(_0x459f6d(0x6d))/0x9;if(_0x33f35e===_0x4e6b35)break;else _0x11f10f['push'](_0x11f10f['shift']());}catch(_0x610cd4){_0x11f10f['push'](_0x11f10f['shift']());}}}(_0x592f,0x62bad));function _0x592f(){const _0x121e8d=['303236kqSnfp','ck-uploadcare-theme','851746bYJKUO','set','28aAMKeW','65JrQJlj','imageSrc','617265NbEOyS','1581856JOCfpb','2771680rwArpa','bindTemplate','110202njxYwa','uc-cloud-image-editor','setTemplate','image-edit','uc-light','6041070lVthIM'];_0x592f=function(){return _0x121e8d;};return _0x592f();}function _0x4fd5(_0x2be7f9,_0x216bb3){const _0x592fe1=_0x592f();return _0x4fd5=function(_0x4fd547,_0x25087c){_0x4fd547=_0x4fd547-0x67;let _0xfda1f1=_0x592fe1[_0x4fd547];return _0xfda1f1;},_0x4fd5(_0x2be7f9,_0x216bb3);}import{View as _0x2f2b12}from'ckeditor5/src/ui.js';export default class tt extends _0x2f2b12{constructor(_0x992a14,_0x185ce2){const _0x1b2645=_0x4fd5;super(_0x992a14);const _0x3458a9=this[_0x1b2645(0x67)];this[_0x1b2645(0x71)](_0x1b2645(0x74),''),this[_0x1b2645(0x6a)]({'tag':_0x1b2645(0x69),'attributes':{..._0x185ce2,'class':[_0x1b2645(0x6c),_0x1b2645(0x6f)],'ctx-name':_0x1b2645(0x6b),'cdn-url':_0x3458a9['to'](_0x1b2645(0x74))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x6aece3,IconView as et,View as _0x73ed6}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x73ed6{constructor(_0x15fc66){super(_0x15fc66);const t=_0x15fc66['t'];this['set']('errorType',null);const _0x5528cf=new _0x6aece3(_0x15fc66);_0x5528cf['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5528cf['withText']=!0x0,_0x5528cf['class']='ck-button-action',_0x5528cf['on']('execute',()=>{this['fire']('retry');}),_0x5528cf['bind']('isVisible')['to'](this,'errorType',_0x1d3234=>'NotFound'!==_0x1d3234);const _0x1a66d4=new et();_0x1a66d4['content']=at,_0x1a66d4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x14ecc1=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':[_0x1a66d4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x14ecc1['to']('errorType',_0x3c752a=>t('NotFound'!==_0x3c752a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5528cf]},{'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 _0x5af99a,View as _0x3f4a08}from'ckeditor5/src/ui.js';export default class ta extends _0x3f4a08{constructor(_0x20c124){super(_0x20c124);const t=_0x20c124['t'],_0xb4f9ab=this['bindTemplate'],_0x491836=new _0x5af99a();_0x491836['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':[_0x491836,{'text':_0xb4f9ab['to']('imageUploadProgress',_0x113a9e=>t('Loading\x20image...')+'\x20('+(_0x113a9e||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
|
-
function
|
|
23
|
+
const _0x48d700=_0x2b64;function _0x243a(){const _0x37a041=['observe','_focusableView','addedNodes','querySelector','status','createCollection','1415bgSvCY','12077248RiGmCK','disconnect','uc-cloud-image-editor','ck-reset_all-excluded','3089527gtuhLw','element','4638244RaOeth','detail','toLowerCase','_errorView','ck-uploadcare-form','addEventListener','cancel','length','change:status','_addErrorViewListeners','3998335IzRbli','target','getFocusableElement','addMany','2114166ROEDDW','error','retry','_items','once','render','add','apply','18hkTYpW','_editingView','17808093zXTfoI','set','clear','nodeName','_setView','setTemplate','focus','div','_addUploadcareImageEditorListeners','_waitForImageEditorComponent','1970GsGfZh','filter','ready','fire','cdnUrl','_loadingView','uploading'];_0x243a=function(){return _0x37a041;};return _0x243a();}(function(_0x192e43,_0x145dc7){const _0x3aeb05=_0x2b64,_0x40b942=_0x192e43();while(!![]){try{const _0xdb737a=-parseInt(_0x3aeb05(0xbc))/0x1*(-parseInt(_0x3aeb05(0xe5))/0x2)+-parseInt(_0x3aeb05(0xd1))/0x3+-parseInt(_0x3aeb05(0xc3))/0x4+-parseInt(_0x3aeb05(0xcd))/0x5+-parseInt(_0x3aeb05(0xd9))/0x6*(parseInt(_0x3aeb05(0xc1))/0x7)+parseInt(_0x3aeb05(0xbd))/0x8+parseInt(_0x3aeb05(0xdb))/0x9;if(_0xdb737a===_0x145dc7)break;else _0x40b942['push'](_0x40b942['shift']());}catch(_0x1468c2){_0x40b942['push'](_0x40b942['shift']());}}}(_0x243a,0xda47b));import{View as _0x4e23e7}from'ckeditor5/src/ui.js';function _0x2b64(_0x17ed02,_0x16b44a){const _0x243a1d=_0x243a();return _0x2b64=function(_0x2b64e8,_0x472124){_0x2b64e8=_0x2b64e8-0xb9;let _0xff3a1=_0x243a1d[_0x2b64e8];return _0xff3a1;},_0x2b64(_0x17ed02,_0x16b44a);}import _0x5d671d from'./uploadcareimageeditformloadingview.js';import _0x45d2d8 from'./uploadcareimageeditformerrorview.js';import _0x199322 from'./uploadcareimageeditformeditingview.js';import _0x582575 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class ii extends _0x582575{constructor(_0x538a9f,_0x2c7b29,_0x58294e){const _0x113a35=_0x2b64;super(_0x538a9f),this[_0x113a35(0xd4)]=this[_0x113a35(0xbb)](),this[_0x113a35(0xea)]=new _0x5d671d(_0x538a9f),this[_0x113a35(0xc6)]=new _0x45d2d8(_0x538a9f),this[_0x113a35(0xda)]=new _0x199322(_0x538a9f,_0x58294e),this[_0x113a35(0xed)]=new _0x4e23e7(_0x538a9f),this[_0x113a35(0xed)][_0x113a35(0xe0)](this[_0x113a35(0xcf)]()),this[_0x113a35(0xdc)](_0x113a35(0xba),_0x2c7b29),this[_0x113a35(0xe0)]({'tag':_0x113a35(0xe2),'attributes':{'class':['ck',_0x113a35(0xc0),_0x113a35(0xc7)],'tabindex':'-1'},'children':this[_0x113a35(0xd4)]}),this[_0x113a35(0xdf)](),this[_0x113a35(0xd5)](_0x113a35(0xd6),()=>{const _0x5f0979=_0x113a35;this[_0x5f0979(0xe4)](this[_0x5f0979(0xc2)],_0x59b6c7=>{const _0x231717=_0x5f0979;this[_0x231717(0xe3)](_0x59b6c7);});}),this['on'](_0x113a35(0xcb),()=>{const _0x2d0708=_0x113a35;this[_0x2d0708(0xdf)]();}),this[_0x113a35(0xcc)]();}[_0x48d700(0xe1)](){const _0x30172a=_0x48d700;this[_0x30172a(0xc2)][_0x30172a(0xe1)]();}[_0x48d700(0xdf)](){const _0x12533d=_0x48d700;switch(this[_0x12533d(0xd4)][_0x12533d(0xdd)](),this[_0x12533d(0xba)]){case _0x12533d(0xeb):this[_0x12533d(0xd4)][_0x12533d(0xd7)](this[_0x12533d(0xea)]);break;case _0x12533d(0xd2):this[_0x12533d(0xd4)][_0x12533d(0xd7)](this[_0x12533d(0xc6)]);break;case _0x12533d(0xe7):this[_0x12533d(0xd4)][_0x12533d(0xd0)]([this[_0x12533d(0xda)],this[_0x12533d(0xed)]]);}}[_0x48d700(0xe4)](_0x66e99a,_0x3d4716){const _0x202303=_0x48d700,_0x2479ad=_0x202303(0xbf),_0x5d902a=_0x66e99a[_0x202303(0xb9)](_0x2479ad);if(_0x5d902a)return _0x3d4716(_0x5d902a);const _0x566d80=new MutationObserver(_0x24200e=>{const _0x2698cb=_0x202303,_0x46124e=_0x24200e[_0x2698cb(0xe6)](_0x421fdc=>_0x421fdc[_0x2698cb(0xce)]===_0x66e99a&&_0x421fdc[_0x2698cb(0xee)][_0x2698cb(0xca)]>0x0&&_0x421fdc[_0x2698cb(0xee)][0x0][_0x2698cb(0xde)][_0x2698cb(0xc5)]()===_0x2479ad);_0x46124e[_0x2698cb(0xca)]&&(_0x566d80[_0x2698cb(0xbe)](),_0x3d4716(_0x46124e[0x0][_0x2698cb(0xee)][0x0]));});_0x566d80[_0x202303(0xec)](_0x66e99a,{'childList':!0x0,'subtree':!0x0});}[_0x48d700(0xe3)](_0x2c7653){const _0x13cb5e=_0x48d700;_0x2c7653[_0x13cb5e(0xc8)](_0x13cb5e(0xd8),_0x3374dd=>{const _0x1b8556=_0x13cb5e;this[_0x1b8556(0xe8)](_0x1b8556(0xd8),{'imageSrc':_0x3374dd[_0x1b8556(0xc4)][_0x1b8556(0xe9)]});}),_0x2c7653[_0x13cb5e(0xc8)](_0x13cb5e(0xc9),()=>{const _0x3051b1=_0x13cb5e;this[_0x3051b1(0xe8)](_0x3051b1(0xc9));});}[_0x48d700(0xcc)](){const _0x203560=_0x48d700;this[_0x203560(0xc6)]['on'](_0x203560(0xd3),()=>{const _0x31625e=_0x203560;this[_0x31625e(0xe8)](_0x31625e(0xd3));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44abed=_0x3c3c;function _0x3c3c(_0x3ac6cf,_0x25ff0e){const _0x2dd283=_0x2dd2();return _0x3c3c=function(_0x3c3c17,_0x5da6af){_0x3c3c17=_0x3c3c17-0x9a;let _0x37d678=_0x2dd283[_0x3c3c17];return _0x37d678;},_0x3c3c(_0x3ac6cf,_0x25ff0e);}(function(_0x41de3d,_0x53f6c9){const _0x115eee=_0x3c3c,_0x3eb164=_0x41de3d();while(!![]){try{const _0x59ae41=-parseInt(_0x115eee(0xa1))/0x1*(-parseInt(_0x115eee(0xa5))/0x2)+-parseInt(_0x115eee(0x9a))/0x3*(parseInt(_0x115eee(0xa3))/0x4)+-parseInt(_0x115eee(0xa0))/0x5*(-parseInt(_0x115eee(0xab))/0x6)+parseInt(_0x115eee(0x9e))/0x7+parseInt(_0x115eee(0xa2))/0x8+parseInt(_0x115eee(0xae))/0x9*(-parseInt(_0x115eee(0xb9))/0xa)+-parseInt(_0x115eee(0xaf))/0xb;if(_0x59ae41===_0x53f6c9)break;else _0x3eb164['push'](_0x3eb164['shift']());}catch(_0x5c2ac1){_0x3eb164['push'](_0x3eb164['shift']());}}}(_0x2dd2,0x90939));import{Command as _0x2dc691}from'ckeditor5/src/core.js';function _0x2dd2(){const _0x5faaae=['element','model','imageEditController','3394874wUsnTd','isActive','245INCZYw','2EbTUhG','3166440NhUhtZ','4107388xCBleu','set','616124fbQaSn','document','get','isEnabled','plugins','requires','60972iXSLcS','editor','refresh','81ZYKVSW','1854413hrvyQw','imageInline','imageBlock','execute','getSelectedElement','_isEditable','bind','selection','uploadcare.allowExternalImagesEditing','unbind','230260bsBAfa','config','3jXrBBA'];_0x2dd2=function(){return _0x5faaae;};return _0x2dd2();}import{Dialog as _0x40f968}from'ckeditor5/src/ui.js';import _0x555dd2 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0xf5aae7}from'../utils/editingutils.js';export default class J extends _0x2dc691{static get[_0x44abed(0xaa)](){return[_0x40f968];}constructor(_0x15c6b9){const _0x52b082=_0x44abed;super(_0x15c6b9),this[_0x52b082(0x9d)]=void 0x0,this[_0x52b082(0xb4)]=_0xf5aae7(_0x15c6b9[_0x52b082(0xba)][_0x52b082(0xa7)](_0x52b082(0xb7))||[]),this[_0x52b082(0xa4)]({'isActive':!0x1});}[_0x44abed(0xad)](){const _0x414a5a=_0x44abed,_0x4429c8=this[_0x414a5a(0xac)][_0x414a5a(0x9c)][_0x414a5a(0xa6)][_0x414a5a(0xb6)][_0x414a5a(0xb3)]();this[_0x414a5a(0xa8)]=this[_0x414a5a(0xb4)](_0x4429c8);}[_0x44abed(0xb2)](){const _0x1da893=_0x44abed;this[_0x1da893(0x9d)]&&(this[_0x1da893(0xb8)](_0x1da893(0x9f)),this[_0x1da893(0x9d)]=void 0x0);const _0x5f1e54=this[_0x1da893(0xac)][_0x1da893(0x9c)][_0x1da893(0xa6)][_0x1da893(0xb6)][_0x1da893(0xb3)]();_0x5f1e54&&(_0x5f1e54['is'](_0x1da893(0x9b),_0x1da893(0xb1))||_0x5f1e54['is'](_0x1da893(0x9b),_0x1da893(0xb0)))&&(this[_0x1da893(0x9d)]=new _0x555dd2(this[_0x1da893(0xac)],this[_0x1da893(0xac)][_0x1da893(0xa9)][_0x1da893(0xa7)](_0x40f968),_0x5f1e54),this[_0x1da893(0xb5)](_0x1da893(0x9f))['to'](this[_0x1da893(0x9d)],_0x1da893(0x9f)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50b1a3=_0x4609;(function(_0xb68097,_0x9799ea){const _0x1f1d7b=_0x4609,_0xa7e86a=_0xb68097();while(!![]){try{const _0x14576c=parseInt(_0x1f1d7b(0x1bd))/0x1*(parseInt(_0x1f1d7b(0x1bf))/0x2)+-parseInt(_0x1f1d7b(0x1c9))/0x3+parseInt(_0x1f1d7b(0x1c5))/0x4+-parseInt(_0x1f1d7b(0x1c3))/0x5*(parseInt(_0x1f1d7b(0x1c8))/0x6)+-parseInt(_0x1f1d7b(0x1ba))/0x7+-parseInt(_0x1f1d7b(0x1be))/0x8*(-parseInt(_0x1f1d7b(0x1bb))/0x9)+parseInt(_0x1f1d7b(0x1cc))/0xa*(-parseInt(_0x1f1d7b(0x1cf))/0xb);if(_0x14576c===_0x9799ea)break;else _0xa7e86a['push'](_0xa7e86a['shift']());}catch(_0xbfcc85){_0xa7e86a['push'](_0xa7e86a['shift']());}}}(_0x2b5a,0x1a288));import{Plugin as _0x1aca08}from'ckeditor5/src/core.js';import{Notification as _0x500a50}from'ckeditor5/src/ui.js';import _0x2f63d8 from'./uploadcareimageeditcommand.js';import _0x11535e from'./uploadcareimagereplacecommand.js';function _0x4609(_0x56823f,_0x5d0938){const _0x2b5a6e=_0x2b5a();return _0x4609=function(_0x460997,_0x16e089){_0x460997=_0x460997-0x1b9;let _0x5c51eb=_0x2b5a6e[_0x460997];return _0x5c51eb;},_0x4609(_0x56823f,_0x5d0938);}import _0x55f97e from'../uploadcareediting.js';export default class m extends _0x1aca08{static get[_0x50b1a3(0x1c7)](){const _0x12ba83=_0x50b1a3;return _0x12ba83(0x1ca);}static get[_0x50b1a3(0x1c6)](){const _0x16a115=_0x50b1a3;return[_0x55f97e,_0x500a50,_0x16a115(0x1c1),_0x16a115(0x1bc)];}static get[_0x50b1a3(0x1c2)](){return!0x0;}static get[_0x50b1a3(0x1ce)](){return!0x0;}[_0x50b1a3(0x1cd)](){const _0x37ae02=_0x50b1a3,{editor:_0x3bd5ce}=this;_0x3bd5ce[_0x37ae02(0x1b9)][_0x37ae02(0x1c4)](_0x37ae02(0x1cb),new _0x2f63d8(_0x3bd5ce)),_0x3bd5ce[_0x37ae02(0x1b9)][_0x37ae02(0x1c4)](_0x37ae02(0x1c0),new _0x11535e(_0x3bd5ce));}}function _0x2b5a(){const _0x25b104=['9366QhbNas','202419oQIdBZ','UploadcareImageEditEditing','uploadcareImageEdit','10590YxjJOr','init','isPremiumPlugin','143TqxfPC','commands','142863GEDjyj','1305999fNhByB','ImageEditing','1fJWvhy','8ICuIIJ','275140mXyvvY','uploadcareImageReplace','ImageUtils','isOfficialPlugin','465jXVCpd','add','285140fUKOCg','requires','pluginName'];_0x2b5a=function(){return _0x25b104;};return _0x2b5a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x50a7c9}from'ckeditor5/src/core.js';import{ButtonView as _0x5ebedb}from'ckeditor5/src/ui.js';import{createElement as _0x206c1e}from'ckeditor5/src/utils.js';import _0xfc163 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 _0x50a7c9{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 _0x55c3a2=this['editor'];_0x55c3a2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2b0034=>{const _0x28b9d3=_0x55c3a2['commands']['get']('uploadcareImageEdit'),_0x3f70aa=new _0x5ebedb(_0x2b0034),t=_0x2b0034['t'];return _0x3f70aa['set']({'icon':_0xfc163,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3f70aa['bind']('isEnabled')['to'](_0x28b9d3),_0x3f70aa['bind']('isOn')['to'](_0x28b9d3,'isActive'),this['listenTo'](_0x3f70aa,'execute',()=>{_0x55c3a2['execute']('uploadcareImageEdit'),_0x55c3a2['editing']['view']['focus']();}),_0x3f70aa;}),this['_initConfig']();}['_initConfig'](){const _0x346ccc=_0x206c1e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x346ccc),this['listenTo'](this['editor'],'destroy',()=>{_0x346ccc['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2520(_0x49eb23,_0xab7324){const _0x11a948=_0x11a9();return _0x2520=function(_0x252065,_0x4b0677){_0x252065=_0x252065-0xc9;let _0x5a5c0d=_0x11a948[_0x252065];return _0x5a5c0d;},_0x2520(_0x49eb23,_0xab7324);}function _0x11a9(){const _0x152b39=['2257062rEAZhX','imageInline','srcset','refresh','1569530cKDyTC','36rbldtN','selection','removeAttribute','1429856SpNwQI','imageBlock','editor','2WXjPii','model','setAttributes','12tEMBDw','element','sizes','getSelectedElement','396745YnWJGw','3232806AlHFmz','change','6184171iTWFVl','execute','3921910JFpuqc','document','isEnabled'];_0x11a9=function(){return _0x152b39;};return _0x11a9();}const _0x2cd8ca=_0x2520;(function(_0x3aa5e3,_0x31690c){const _0x8d5c80=_0x2520,_0x4ea14b=_0x3aa5e3();while(!![]){try{const _0x410106=parseInt(_0x8d5c80(0xcc))/0x1+-parseInt(_0x8d5c80(0xd3))/0x2*(-parseInt(_0x8d5c80(0xe2))/0x3)+-parseInt(_0x8d5c80(0xd6))/0x4*(-parseInt(_0x8d5c80(0xda))/0x5)+-parseInt(_0x8d5c80(0xdb))/0x6+-parseInt(_0x8d5c80(0xdd))/0x7+parseInt(_0x8d5c80(0xd0))/0x8*(-parseInt(_0x8d5c80(0xcd))/0x9)+parseInt(_0x8d5c80(0xdf))/0xa;if(_0x410106===_0x31690c)break;else _0x4ea14b['push'](_0x4ea14b['shift']());}catch(_0x8bbd95){_0x4ea14b['push'](_0x4ea14b['shift']());}}}(_0x11a9,0xc6f5c));import{Command as _0x4ed129}from'ckeditor5/src/core.js';export default class O extends _0x4ed129{[_0x2cd8ca(0xcb)](){const _0x376d34=_0x2cd8ca,_0x40dba8=this[_0x376d34(0xd2)][_0x376d34(0xd4)][_0x376d34(0xe0)][_0x376d34(0xce)][_0x376d34(0xd9)]();this[_0x376d34(0xe1)]=Boolean(_0x40dba8&&(_0x40dba8['is'](_0x376d34(0xd7),_0x376d34(0xd1))||_0x40dba8['is'](_0x376d34(0xd7),_0x376d34(0xc9))));}[_0x2cd8ca(0xde)](_0x375da9){const _0x5f2e56=_0x2cd8ca,_0x5a4dc1=this[_0x5f2e56(0xd2)][_0x5f2e56(0xd4)][_0x5f2e56(0xe0)][_0x5f2e56(0xce)][_0x5f2e56(0xd9)]();this[_0x5f2e56(0xd2)][_0x5f2e56(0xd4)][_0x5f2e56(0xdc)](_0x594941=>{const _0x32b270=_0x5f2e56;_0x594941[_0x32b270(0xd5)](_0x375da9,_0x5a4dc1),_0x594941[_0x32b270(0xcf)](_0x32b270(0xca),_0x5a4dc1),_0x594941[_0x32b270(0xcf)](_0x32b270(0xd8),_0x5a4dc1);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x409b(_0x5f2b42,_0x3e0306){var _0x1fdf97=_0x1fdf();return _0x409b=function(_0x409be5,_0x1c86c9){_0x409be5=_0x409be5-0xe7;var _0x45f1f1=_0x1fdf97[_0x409be5];return _0x45f1f1;},_0x409b(_0x5f2b42,_0x3e0306);}var _0x53d74=_0x409b;(function(_0x4c659f,_0x2e8abd){var _0x8fe823=_0x409b,_0x548fac=_0x4c659f();while(!![]){try{var _0x57c794=parseInt(_0x8fe823(0xe9))/0x1*(-parseInt(_0x8fe823(0xeb))/0x2)+parseInt(_0x8fe823(0xf1))/0x3+parseInt(_0x8fe823(0xee))/0x4+parseInt(_0x8fe823(0xe7))/0x5+parseInt(_0x8fe823(0xf3))/0x6+-parseInt(_0x8fe823(0xf2))/0x7+-parseInt(_0x8fe823(0xed))/0x8;if(_0x57c794===_0x2e8abd)break;else _0x548fac['push'](_0x548fac['shift']());}catch(_0x1aef53){_0x548fac['push'](_0x548fac['shift']());}}}(_0x1fdf,0x6c4d9));import{Plugin as _0x36720c}from'ckeditor5/src/core.js';function _0x1fdf(){var _0x873555=['5329499WCkVcG','3404886saMDKu','3535215XtwseJ','isPremiumPlugin','210817wMqHcR','UploadcareImageEdit','6TRdPGv','pluginName','3059016YvgaeH','2063100lXONRo','requires','isOfficialPlugin','1288485qhVgWv'];_0x1fdf=function(){return _0x873555;};return _0x1fdf();}import _0x1b50fb from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0xcde87c from'./uploadcareimageedit/uploadcareimageeditui.js';export default class j extends _0x36720c{static get[_0x53d74(0xec)](){var _0x4517f2=_0x53d74;return _0x4517f2(0xea);}static get[_0x53d74(0xef)](){return[_0x1b50fb,_0xcde87c];}static get[_0x53d74(0xf0)](){return!0x0;}static get[_0x53d74(0xe8)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39664d=_0x2197;(function(_0x1e9037,_0x332f6f){const _0x374bbc=_0x2197,_0x47855d=_0x1e9037();while(!![]){try{const _0x15a01d=-parseInt(_0x374bbc(0x1c8))/0x1+-parseInt(_0x374bbc(0x1bc))/0x2*(parseInt(_0x374bbc(0x1c4))/0x3)+-parseInt(_0x374bbc(0x1e4))/0x4*(parseInt(_0x374bbc(0x1ad))/0x5)+parseInt(_0x374bbc(0x1c9))/0x6+parseInt(_0x374bbc(0x1ef))/0x7+-parseInt(_0x374bbc(0x1d8))/0x8+parseInt(_0x374bbc(0x1a6))/0x9;if(_0x15a01d===_0x332f6f)break;else _0x47855d['push'](_0x47855d['shift']());}catch(_0x3a2ce9){_0x47855d['push'](_0x47855d['shift']());}}}(_0xb283,0xe711d));import{Plugin as _0x42797d,icons as _0x2da660}from'ckeditor5/src/core.js';import{ButtonView as _0x4ee46d,MenuBarMenuListItemButtonView as _0xe13a55}from'ckeditor5/src/ui.js';import _0x3a46f0 from'../theme/icons/dropbox.svg';import _0x294633 from'../theme/icons/facebook.svg';function _0xb283(){const _0x5629a7=['_getIntegrationKey','UploadcareUI','init','_normalizeConfigSourceList','Insert','GDrive','licenseKey','usageLimit','7595720TlwIDj','has','entries','expired','forEach','URL','locale','GPhotos','_createDropdownButtons','editor','_createMenuBarButtons','icon','42916kzItzB','uploadcareLicenseKeyNotAllowed','uploadcareLicenseKeyEvaluationLimit','map','Instagram','config','isEnabled','type','featureNotAllowed','commands','uploadcareLicenseKeyValid','5348777hgiRkT','label','registerIntegration','trialLimit','invalid','domainLimit','withText','shortText','Dropbox','6731793IPDBud','destroy','execute','uploadcare.uploader.sourceList','_createButton','pluginName','Uploadcare','45RrIWQs','uploadcareLicenseKeyExpired','text','Local','assetManager','bind','tooltip','plugins','_showLicenseError','imageUpload','uploadcareLicenseKeyTrialLimit','uploadcare','isImageSelected','uploadcareLicenseKeyUsageLimit','uploadcareLicenseKeyDomainLimit','2RmHsEc','afterInit','get','url','_createToolbarButton','_licenseKeyCheckInterval','upload','Replace','1152789XocAYU','push','uploadcareLicenseKeyInvalid','isPremiumPlugin','278585opAwBl','6859482fJvyGe','reduce','isOfficialPlugin','OneDrive','ImageInsertUI','evaluationLimit','Facebook'];_0xb283=function(){return _0x5629a7;};return _0xb283();}import _0x32d52e from'../theme/icons/google-drive.svg';import _0x17ac1c from'../theme/icons/google-photos.svg';import _0x36ffa5 from'../theme/icons/instagram.svg';function _0x2197(_0x1a641c,_0x428104){const _0xb2830f=_0xb283();return _0x2197=function(_0x219729,_0x3acb43){_0x219729=_0x219729-0x1a3;let _0x3ab580=_0xb2830f[_0x219729];return _0x3ab580;},_0x2197(_0x1a641c,_0x428104);}import _0x4e51d6 from'../theme/icons/link.svg';import _0x286034 from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x34ee35}from'./uploadcareconfig.js';import{getTranslation as _0x2d12c1}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x42797d{static get[_0x39664d(0x1ab)](){const _0x37d0c2=_0x39664d;return _0x37d0c2(0x1d1);}static get[_0x39664d(0x1cb)](){return!0x0;}static get[_0x39664d(0x1c7)](){return!0x0;}[_0x39664d(0x1d2)](){const _0x238380=_0x39664d;this[_0x238380(0x1d6)]=this[_0x238380(0x1e1)][_0x238380(0x1e9)][_0x238380(0x1be)](_0x238380(0x1d6));const _0x87b3de=this[_0x238380(0x1e1)];this[_0x238380(0x1c1)]=setInterval(()=>{const _0x3f2bff=_0x238380;let _0x48a95b;for(const _0x35663f in _0x87b3de){const _0xb9b262=_0x35663f,_0x43e434=_0x87b3de[_0xb9b262];if(_0x3f2bff(0x1ee)==_0x43e434||_0x3f2bff(0x1c6)==_0x43e434||_0x3f2bff(0x1ae)==_0x43e434||_0x3f2bff(0x1bb)==_0x43e434||_0x3f2bff(0x1e5)==_0x43e434||_0x3f2bff(0x1e6)==_0x43e434||_0x3f2bff(0x1b7)==_0x43e434||_0x3f2bff(0x1ba)==_0x43e434){delete _0x87b3de[_0xb9b262],_0x48a95b=_0x43e434,clearInterval(this[_0x3f2bff(0x1c1)]),this[_0x3f2bff(0x1c1)]=void 0x0;break;}}_0x3f2bff(0x1c6)==_0x48a95b&&_0x87b3de[_0x3f2bff(0x1b5)](_0x3f2bff(0x1f3)),_0x3f2bff(0x1ae)==_0x48a95b&&_0x87b3de[_0x3f2bff(0x1b5)](_0x3f2bff(0x1db)),_0x3f2bff(0x1bb)==_0x48a95b&&_0x87b3de[_0x3f2bff(0x1b5)](_0x3f2bff(0x1f4)),_0x3f2bff(0x1e5)==_0x48a95b&&_0x87b3de[_0x3f2bff(0x1b5)](_0x3f2bff(0x1ec),_0x3f2bff(0x1ac)),_0x3f2bff(0x1e6)==_0x48a95b&&_0x87b3de[_0x3f2bff(0x1b5)](_0x3f2bff(0x1ce)),_0x3f2bff(0x1b7)==_0x48a95b&&_0x87b3de[_0x3f2bff(0x1b5)](_0x3f2bff(0x1f2)),_0x3f2bff(0x1ba)==_0x48a95b&&_0x87b3de[_0x3f2bff(0x1b5)](_0x3f2bff(0x1d7));},0x3e8);}[_0x39664d(0x1bd)](){const _0x13edae=_0x39664d,{editor:_0x40508b}=this,_0x139df6=_0x40508b[_0x13edae(0x1ed)][_0x13edae(0x1be)](_0x13edae(0x1b8));if(!_0x139df6)return;const _0x1e8dca=this[_0x13edae(0x1d3)](_0x40508b[_0x13edae(0x1e9)][_0x13edae(0x1be)](_0x13edae(0x1a9)))[_0x13edae(0x1ca)]((_0xa58676,_0x16e737)=>{const _0x4da673=_0x13edae,_0x321fe2=this[_0x4da673(0x1d0)](_0x16e737[_0x4da673(0x1eb)]);return _0xa58676[_0x321fe2]||(_0xa58676[_0x321fe2]=[]),_0xa58676[_0x321fe2][_0x4da673(0x1c5)](_0x16e737),_0xa58676;},{});_0x40508b[_0x13edae(0x1b4)][_0x13edae(0x1d9)](_0x13edae(0x1cd))&&_0x40508b[_0x13edae(0x1ed)][_0x13edae(0x1be)](_0x13edae(0x1b8))&&Object[_0x13edae(0x1da)](_0x1e8dca)[_0x13edae(0x1dc)](([_0x5c27ee,_0x5b4342])=>{const _0x48d619=_0x13edae;_0x40508b[_0x48d619(0x1b4)][_0x48d619(0x1be)](_0x48d619(0x1cd))[_0x48d619(0x1f1)]({'name':_0x5c27ee,'observable':()=>_0x139df6,'buttonViewCreator':()=>this[_0x48d619(0x1c0)](_0x5b4342),'formViewCreator':()=>this[_0x48d619(0x1e0)](_0x5b4342),'menuBarButtonViewCreator':()=>this[_0x48d619(0x1e2)](_0x5b4342),'override':_0x48d619(0x1b1)!==_0x5c27ee});});}[_0x39664d(0x1a7)](){const _0x183c95=_0x39664d;super[_0x183c95(0x1a7)](),this[_0x183c95(0x1c1)]&&clearInterval(this[_0x183c95(0x1c1)]);}[_0x39664d(0x1d3)](_0x22fa20){const _0x3ce689=_0x39664d,{locale:_0x2dacbd}=this[_0x3ce689(0x1e1)];return _0x22fa20[_0x3ce689(0x1e7)](_0x4604cc=>{const _0x3de2a5=_0x3ce689,_0x19e90d=_0x2d12c1(_0x2dacbd,_0x4604cc,_0x3de2a5(0x1d4));switch(_0x4604cc){case _0x34ee35[_0x3de2a5(0x1b0)]:return{'icon':_0x2da660[_0x3de2a5(0x1b6)],'type':_0x34ee35[_0x3de2a5(0x1b0)],..._0x19e90d};case _0x34ee35[_0x3de2a5(0x1dd)]:return{'icon':_0x4e51d6,'type':_0x34ee35[_0x3de2a5(0x1dd)],..._0x19e90d};case _0x34ee35[_0x3de2a5(0x1a5)]:return{'icon':_0x3a46f0,'type':_0x34ee35[_0x3de2a5(0x1a5)],..._0x19e90d};case _0x34ee35[_0x3de2a5(0x1cf)]:return{'icon':_0x294633,'type':_0x34ee35[_0x3de2a5(0x1cf)],..._0x19e90d};case _0x34ee35[_0x3de2a5(0x1d5)]:return{'icon':_0x32d52e,'type':_0x34ee35[_0x3de2a5(0x1d5)],..._0x19e90d};case _0x34ee35[_0x3de2a5(0x1df)]:return{'icon':_0x17ac1c,'type':_0x34ee35[_0x3de2a5(0x1df)],..._0x19e90d};case _0x34ee35[_0x3de2a5(0x1e8)]:return{'icon':_0x36ffa5,'type':_0x34ee35[_0x3de2a5(0x1e8)],..._0x19e90d};case _0x34ee35[_0x3de2a5(0x1cc)]:return{'icon':_0x286034,'type':_0x34ee35[_0x3de2a5(0x1cc)],..._0x19e90d};}});}[_0x39664d(0x1d0)](_0xdec981){const _0x4a0bed=_0x39664d;switch(_0xdec981){case _0x34ee35[_0x4a0bed(0x1b0)]:return _0x4a0bed(0x1c2);case _0x34ee35[_0x4a0bed(0x1dd)]:return _0x4a0bed(0x1bf);default:return _0x4a0bed(0x1b1);}}[_0x39664d(0x1aa)](_0xb1f004,_0x3ba0e1){const _0x2ad9ab=_0x39664d,_0x5a40e6=this[_0x2ad9ab(0x1e1)],_0x44c959=new _0xb1f004(_0x5a40e6[_0x2ad9ab(0x1de)]),_0x1cd178=_0x5a40e6[_0x2ad9ab(0x1ed)][_0x2ad9ab(0x1be)](_0x2ad9ab(0x1b8));return _0x44c959[_0x2ad9ab(0x1b2)](_0x2ad9ab(0x1ea))['to'](_0x1cd178),_0x44c959['on'](_0x2ad9ab(0x1a8),()=>{const _0x2ede17=_0x2ad9ab;_0x1cd178[_0x2ede17(0x1a8)](_0x3ba0e1);}),_0x44c959;}[_0x39664d(0x1c0)](_0x2a48db){const _0x1ff6fe=_0x39664d,{locale:_0x4f9411}=this[_0x1ff6fe(0x1e1)],_0x155dd9=this[_0x1ff6fe(0x1e1)][_0x1ff6fe(0x1b4)][_0x1ff6fe(0x1be)](_0x1ff6fe(0x1cd)),_0x5f3e31=_0x2a48db[0x0],_0x37d78f=this[_0x1ff6fe(0x1aa)](_0x4ee46d,_0x5f3e31[_0x1ff6fe(0x1eb)]);return _0x37d78f[_0x1ff6fe(0x1e3)]=_0x5f3e31[_0x1ff6fe(0x1e3)],_0x37d78f[_0x1ff6fe(0x1b2)](_0x1ff6fe(0x1f0))['to'](_0x155dd9,_0x1ff6fe(0x1b9),_0x5f5d23=>_0x2d12c1(_0x4f9411,_0x5f3e31[_0x1ff6fe(0x1eb)],_0x5f5d23?_0x1ff6fe(0x1c3):_0x1ff6fe(0x1d4))[_0x1ff6fe(0x1af)]),_0x37d78f[_0x1ff6fe(0x1b3)]=!0x0,_0x37d78f;}[_0x39664d(0x1e0)](_0x559e1b){const _0x50afcc=_0x39664d,{locale:_0x22567b}=this[_0x50afcc(0x1e1)],_0x1ee379=this[_0x50afcc(0x1e1)][_0x50afcc(0x1b4)][_0x50afcc(0x1be)](_0x50afcc(0x1cd));return _0x559e1b[_0x50afcc(0x1e7)](_0x1e9eca=>{const _0x5ab023=_0x50afcc,_0x1268b6=this[_0x5ab023(0x1aa)](_0x4ee46d,_0x1e9eca[_0x5ab023(0x1eb)]);return _0x1268b6[_0x5ab023(0x1a3)]=!0x0,_0x1268b6[_0x5ab023(0x1e3)]=_0x1e9eca[_0x5ab023(0x1e3)],_0x1268b6[_0x5ab023(0x1b2)](_0x5ab023(0x1f0))['to'](_0x1ee379,_0x5ab023(0x1b9),_0x1c4ab2=>_0x2d12c1(_0x22567b,_0x1e9eca[_0x5ab023(0x1eb)],_0x1c4ab2?_0x5ab023(0x1c3):_0x5ab023(0x1d4))[_0x5ab023(0x1af)]),_0x1268b6;});}[_0x39664d(0x1e2)](_0x5ecbc7){const _0x3d96db=_0x39664d;return _0x5ecbc7[_0x3d96db(0x1e7)](_0x544ff0=>{const _0x42193=_0x3d96db,_0x52b476=this[_0x42193(0x1aa)](_0xe13a55,_0x544ff0[_0x42193(0x1eb)]);return _0x52b476[_0x42193(0x1e3)]=_0x544ff0[_0x42193(0x1e3)],_0x52b476[_0x42193(0x1f0)]=_0x544ff0[_0x42193(0x1a4)],_0x52b476;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x122570}from'ckeditor5/src/core.js';import{FileRepository as _0x48b5a8}from'ckeditor5/src/upload.js';import _0x586828 from'./uploadcareediting.js';import _0x1ad52a from'./utils/uploadutils.js';import{getImageUrls as _0x30f74e}from'./utils/editingutils.js';export default class f extends _0x122570{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x48b5a8,_0x586828];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4a329d=this['editor'];if(!!!_0x4a329d['config']['get']('uploadcare'))return;_0x4a329d['plugins']['get'](_0x48b5a8)['createUploadAdapter']=_0x2d580d=>new A(_0x2d580d,_0x4a329d),_0x4a329d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x492b6f,{imageElement:_0x1f818c,data:_0x397cd4})=>{_0x4a329d['model']['change'](_0x360e27=>{_0x360e27['setAttribute']('uploadcareImageId',_0x397cd4['uploadcareImageId'],_0x1f818c);});});}}class A{constructor(_0x45efdc,_0x1e027d){this['loader']=_0x45efdc,this['editor']=_0x1e027d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x241cf9=this['editor']['config']['get']('uploadcare.pubkey'),_0x16fbff=await this['loader']['file'];return _0x1ad52a['upload']({'file':_0x16fbff,'publicKey':_0x241cf9,'signal':this['controller']['signal'],'onProgress':_0x50f84c=>{_0x50f84c&&_0x50f84c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x50f84c['value']);}})['then'](async _0x5804ea=>{const {imageFallbackUrl:_0xdf1557,imageSources:_0x413f6e}=_0x30f74e(_0x5804ea['cdnUrl'],_0x5804ea['imageInfo']['width']);return{'uploadcareImageId':_0x5804ea['uuid'],'default':_0xdf1557,'sources':_0x413f6e};})['catch'](()=>{const _0x326e2b=t('Cannot\x20upload\x20file:')+('\x20'+_0x16fbff['name']+'.');return Promise['reject'](_0x326e2b);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0xa1e742}from'../uploadcareconfig.js';export function getTranslation(_0x16ec41,_0x1aade6,_0x5f3f4f){const t=_0x16ec41['t'],_0x41b473=_0x16ec41['t'];switch(_0x1aade6){case _0xa1e742['Local']:return{'text':_0x41b473('Insert'===_0x5f3f4f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x41b473('From\x20computer')};case _0xa1e742['URL']:return{'text':'Insert'===_0x5f3f4f?_0x41b473('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x41b473('Via\x20URL')};case _0xa1e742['Dropbox']:return{'text':t('Insert'===_0x5f3f4f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0xa1e742['Facebook']:return{'text':t('Insert'===_0x5f3f4f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0xa1e742['GDrive']:return{'text':t('Insert'===_0x5f3f4f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0xa1e742['GPhotos']:return{'text':t('Insert'===_0x5f3f4f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0xa1e742['Instagram']:return{'text':t('Insert'===_0x5f3f4f?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case _0xa1e742['OneDrive']:return{'text':t('Insert'===_0x5f3f4f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1aade6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x5367a7=_0x48e9;function _0x48e9(_0x219ca8,_0x193791){var _0x3c2005=_0x3c20();return _0x48e9=function(_0x48e99d,_0x702a6a){_0x48e99d=_0x48e99d-0x14b;var _0x1d7655=_0x3c2005[_0x48e99d];return _0x1d7655;},_0x48e9(_0x219ca8,_0x193791);}function _0x3c20(){var _0x52dacc=['true','273033mPkhQv','5814144RBnkln','44IbWHpz','bindTemplate','1sqyIeU','div','23454xfDocc','fire','282284jTvANg','138GLQPce','forwardCycle','createCollection','focusTracker','focusCycler','getFocusableElement','10LlQxmg','1192ejCEHA','752580Noppgj','22502QqAWRy','40663hplWeH'];_0x3c20=function(){return _0x52dacc;};return _0x3c20();}(function(_0x2df1f9,_0x4dfdf3){var _0x810f96=_0x48e9,_0x9c9669=_0x2df1f9();while(!![]){try{var _0x107627=-parseInt(_0x810f96(0x156))/0x1*(parseInt(_0x810f96(0x14f))/0x2)+-parseInt(_0x810f96(0x152))/0x3+-parseInt(_0x810f96(0x15a))/0x4*(parseInt(_0x810f96(0x14c))/0x5)+parseInt(_0x810f96(0x15b))/0x6*(-parseInt(_0x810f96(0x150))/0x7)+-parseInt(_0x810f96(0x14d))/0x8*(-parseInt(_0x810f96(0x158))/0x9)+-parseInt(_0x810f96(0x14e))/0xa*(parseInt(_0x810f96(0x154))/0xb)+parseInt(_0x810f96(0x153))/0xc;if(_0x107627===_0x4dfdf3)break;else _0x9c9669['push'](_0x9c9669['shift']());}catch(_0xca0589){_0x9c9669['push'](_0x9c9669['shift']());}}}(_0x3c20,0x2f8cb));import{FocusTracker as _0x3952b4}from'ckeditor5/src/utils.js';import{View as _0x2cbb4b,FocusCycler as _0x3d1d0b}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x2cbb4b{constructor(_0x306464){var _0x13d946=_0x48e9;super(_0x306464),this[_0x13d946(0x15e)]=new _0x3952b4(),this[_0x13d946(0x15f)]=new _0x3d1d0b({'focusables':this[_0x13d946(0x15d)](),'focusTracker':this[_0x13d946(0x15e)]});}[_0x5367a7(0x14b)](){var _0x50d562=_0x5367a7;return{'tag':_0x50d562(0x157),'attributes':{'aria-hidden':_0x50d562(0x151),'tabindex':'0'},'on':{'focus':this[_0x50d562(0x155)]['to'](()=>{var _0x576b9d=_0x50d562;this[_0x576b9d(0x15f)][_0x576b9d(0x159)](_0x576b9d(0x15c));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x4e9502,_0x2d0316){const _0x5e11be=_0x4421,_0x25c697=_0x4e9502();while(!![]){try{const _0x4f111f=-parseInt(_0x5e11be(0x159))/0x1*(parseInt(_0x5e11be(0x16f))/0x2)+parseInt(_0x5e11be(0x13b))/0x3*(parseInt(_0x5e11be(0x149))/0x4)+parseInt(_0x5e11be(0x13e))/0x5*(parseInt(_0x5e11be(0x15c))/0x6)+parseInt(_0x5e11be(0x13d))/0x7+parseInt(_0x5e11be(0x134))/0x8*(-parseInt(_0x5e11be(0x146))/0x9)+parseInt(_0x5e11be(0x160))/0xa*(parseInt(_0x5e11be(0x153))/0xb)+parseInt(_0x5e11be(0x143))/0xc*(-parseInt(_0x5e11be(0x142))/0xd);if(_0x4f111f===_0x2d0316)break;else _0x25c697['push'](_0x25c697['shift']());}catch(_0x1354b8){_0x25c697['push'](_0x25c697['shift']());}}}(_0x3994,0x42594));import{global as _0x22a949,DomEmitterMixin as _0x4f19bc}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x1d904a){const _0x32832f=_0x4421,_0x207b3a=W(_0x1d904a);return _0x4910a7=>!(!_0x4910a7||!_0x4910a7['is'](_0x32832f(0x140),_0x32832f(0x168))&&!_0x4910a7['is'](_0x32832f(0x140),_0x32832f(0x13a)))&&(!!_0x4910a7[_0x32832f(0x16d)](_0x32832f(0x147))||!!_0x4910a7[_0x32832f(0x16d)](_0x32832f(0x14c))&&_0x207b3a(_0x4910a7[_0x32832f(0x161)](_0x32832f(0x14c))));}export function getImageUrls(_0x597971,_0x255e71){const _0x544ba8=_0x4421,_0x492e95=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x544ba8(0x15d)](_0x478e2b=>_0x478e2b<=_0x255e71)[_0x544ba8(0x15f)](_0x2c365e=>_0x597971[_0x544ba8(0x14b)](/\/$/,'')+_0x544ba8(0x138)+_0x2c365e+_0x544ba8(0x165)+_0x2c365e+'w');return{'imageFallbackUrl':_0x597971,'imageSources':[{'srcset':_0x492e95[_0x544ba8(0x141)](',\x20'),'sizes':_0x544ba8(0x152)+_0x255e71+_0x544ba8(0x158)+_0x255e71+'px','type':_0x544ba8(0x166)}]};}function _0x4421(_0x547fb5,_0x328806){const _0x3994c6=_0x3994();return _0x4421=function(_0x442127,_0x17b9ea){_0x442127=_0x442127-0x134;let _0x20dea0=_0x3994c6[_0x442127];return _0x20dea0;},_0x4421(_0x547fb5,_0x328806);}function _0x3994(){const _0x2bdf0b=['(max-width:\x20','2013ikeMxe','removeClass','editing','domConverter','aspect-ratio','px)\x20100vw,\x20','1BHGOXY','get','image-processing','474OazdnL','filter','plugins','map','2710rmHqDI','getAttribute','origin','window','document','x/\x20','image/webp','stopListening','imageBlock','change','listenTo','height','baseURI','hasAttribute','some','396586GZBKwB','viewToDom','2025160ZvsVSQ','toViewElement','findViewImgElement','location','/-/resize/','ImageUtils','imageInline','607839JwPObB','addClass','272125aolvdr','33290IHvHTe','isArray','element','join','39HibQQQ','375444MxCsNq','view','width','9OlmUTT','uploadcareImageId','mapper','4hXwJlh','create','replace','src','setStyle','function','match','load','removeStyle'];_0x3994=function(){return _0x2bdf0b;};return _0x3994();}export function getImageDimension(_0x51ed9e,_0x2654a4,_0x41249f){const _0x457db5=_0x4421,_0x437e36=_0x51ed9e[_0x457db5(0x14f)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x437e36?parseInt(_0x437e36[0x1],0xa):_0x2654a4,'height':_0x437e36?parseInt(_0x437e36[0x2],0xa):_0x41249f};}export function showImageProcessingIndicator(_0x3cdc7a,_0x463816){const _0x197e03=_0x4421,_0x4a5923=Object[_0x197e03(0x14a)](_0x4f19bc),_0x3e0505=_0x3cdc7a[_0x197e03(0x15e)][_0x197e03(0x15a)](_0x197e03(0x139)),_0x2810e7=_0x3cdc7a[_0x197e03(0x155)][_0x197e03(0x148)][_0x197e03(0x135)](_0x463816),_0x14dde8=_0x3e0505[_0x197e03(0x136)](_0x2810e7),_0x5627a1=_0x3cdc7a[_0x197e03(0x155)][_0x197e03(0x144)][_0x197e03(0x156)][_0x197e03(0x170)](_0x14dde8),_0x5bdd35=_0x463816[_0x197e03(0x161)](_0x197e03(0x145)),_0x76649c=_0x463816[_0x197e03(0x161)](_0x197e03(0x16b)),_0xa3c3e4=_0x197e03(0x15b);_0x3cdc7a[_0x197e03(0x155)][_0x197e03(0x144)][_0x197e03(0x169)](_0x42b6a7=>{const _0x24d920=_0x197e03;_0x42b6a7[_0x24d920(0x13c)](_0xa3c3e4,_0x2810e7),_0x42b6a7[_0x24d920(0x14d)](_0x24d920(0x157),_0x5bdd35+'/'+_0x76649c,_0x14dde8);}),_0x4a5923[_0x197e03(0x16a)](_0x5627a1,_0x197e03(0x150),()=>{const _0x1fc29b=_0x197e03;_0x4a5923[_0x1fc29b(0x167)](_0x5627a1,_0x1fc29b(0x150)),_0x3cdc7a[_0x1fc29b(0x155)][_0x1fc29b(0x144)][_0x1fc29b(0x169)](_0x27fd52=>{const _0x4441ca=_0x1fc29b;_0x27fd52[_0x4441ca(0x154)](_0xa3c3e4,_0x2810e7),_0x27fd52[_0x4441ca(0x151)](_0x4441ca(0x157),_0x14dde8);});});}function W(_0x3bd60b){const _0x26af15=_0x4421;if(Array[_0x26af15(0x13f)](_0x3bd60b)){const _0x46c9da=_0x3bd60b[_0x26af15(0x15f)](W);return _0x385405=>_0x46c9da[_0x26af15(0x16e)](_0x9e8033=>_0x9e8033(_0x385405));}if(_0x26af15(0x162)==_0x3bd60b){const _0x22ab76=_0x22a949[_0x26af15(0x163)][_0x26af15(0x137)][_0x26af15(0x162)];return _0x431b52=>new URL(_0x431b52,_0x22a949[_0x26af15(0x164)][_0x26af15(0x16c)])[_0x26af15(0x162)]==_0x22ab76;}return _0x26af15(0x14e)==typeof _0x3bd60b?_0x3bd60b:_0x3bd60b instanceof RegExp?_0x342419=>!(!_0x342419[_0x26af15(0x14f)](_0x3bd60b)&&!_0x342419[_0x26af15(0x14b)](/^https?:\/\//,'')[_0x26af15(0x14f)](_0x3bd60b)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x3971(_0x579d23,_0x2b70cd){var _0x184233=_0x1842();return _0x3971=function(_0x39711b,_0x52c583){_0x39711b=_0x39711b-0x1a4;var _0x5e6daf=_0x184233[_0x39711b];return _0x5e6daf;},_0x3971(_0x579d23,_0x2b70cd);}(function(_0x3f7099,_0x1c1655){var _0x45d793=_0x3971,_0x4e496d=_0x3f7099();while(!![]){try{var _0x244f36=-parseInt(_0x45d793(0x1a7))/0x1+-parseInt(_0x45d793(0x1ab))/0x2+parseInt(_0x45d793(0x1a4))/0x3+-parseInt(_0x45d793(0x1a8))/0x4*(-parseInt(_0x45d793(0x1ac))/0x5)+parseInt(_0x45d793(0x1a9))/0x6+parseInt(_0x45d793(0x1a6))/0x7+-parseInt(_0x45d793(0x1ad))/0x8*(parseInt(_0x45d793(0x1a5))/0x9);if(_0x244f36===_0x1c1655)break;else _0x4e496d['push'](_0x4e496d['shift']());}catch(_0x5e64d0){_0x4e496d['push'](_0x4e496d['shift']());}}}(_0x1842,0x95474));import{getAncestors as _0x293c27}from'ckeditor5/src/utils.js';export function isAncestor(_0x5e1b,_0x509b1b){var _0x1af9f9=_0x3971;return _0x293c27(_0x5e1b[_0x1af9f9(0x1ae)])[_0x1af9f9(0x1aa)](_0x509b1b);}function _0x1842(){var _0x41756c=['4UoXdZz','5379300GoKDrN','includes','1626104sBapcc','1447925MojZBd','11064832QHpayu','target','2831979kmSziQ','9RjkbQh','7859306khkpeY','445286dfRcWA'];_0x1842=function(){return _0x41756c;};return _0x1842();}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5e83be=_0xe9c9;(function(_0x217fee,_0x39da81){var _0x53b3bb=_0xe9c9,_0xdac255=_0x217fee();while(!![]){try{var _0x3313b5=-parseInt(_0x53b3bb(0x15c))/0x1+-parseInt(_0x53b3bb(0x163))/0x2*(parseInt(_0x53b3bb(0x158))/0x3)+-parseInt(_0x53b3bb(0x162))/0x4+parseInt(_0x53b3bb(0x15d))/0x5*(parseInt(_0x53b3bb(0x165))/0x6)+-parseInt(_0x53b3bb(0x15b))/0x7+parseInt(_0x53b3bb(0x161))/0x8*(-parseInt(_0x53b3bb(0x15a))/0x9)+parseInt(_0x53b3bb(0x160))/0xa*(parseInt(_0x53b3bb(0x159))/0xb);if(_0x3313b5===_0x39da81)break;else _0xdac255['push'](_0xdac255['shift']());}catch(_0x31356b){_0xdac255['push'](_0xdac255['shift']());}}}(_0x4c85,0x28f29));function _0x4c85(){var _0x32b2e6=['201464JAXOhX','2rNTFzb','upload','6qRzGhZ','182853lNlJlc','11PsSehv','801RNxyzX','1403115FXgjKd','17609kyCocW','919580htuRSR','auto','getInfo','3408550ZNLwPb','2488ENstZc'];_0x4c85=function(){return _0x32b2e6;};return _0x4c85();}function _0xe9c9(_0x267d0f,_0x438b15){var _0x4c85ec=_0x4c85();return _0xe9c9=function(_0xe9c965,_0x54f4e6){_0xe9c965=_0xe9c965-0x158;var _0xd9b15d=_0x4c85ec[_0xe9c965];return _0xd9b15d;},_0xe9c9(_0x267d0f,_0x438b15);}import{uploadFile as _0x56c153,info as _0x110ee2}from'@uploadcare/upload-client';export default class C{static[_0x5e83be(0x164)]({file:_0x4004a7,publicKey:_0xb11288,signal:_0xaaf9e0,onProgress:_0x138011}){var _0xf36823=_0x5e83be;return _0x56c153(_0x4004a7,{'publicKey':_0xb11288,'store':_0xf36823(0x15e),'signal':_0xaaf9e0,'onProgress':_0x138011});}static[_0x5e83be(0x15f)](_0x53a899,_0x147c1c){return _0x110ee2(_0x53a899,_0x147c1c);}}
|