@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251031.0 → 0.0.0-nightly-20251102.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.
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x4deb09,ObservableMixin as _0x292301}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1454a0}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x97e1ef}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x3dde40}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xe2689a}from'../../utils/uploadutils.js';import{getImageUrls as _0x217215,getImageDimension as _0x5ad4bc}from'../../utils/editingutils.js';import{isAncestor as _0x3f310b}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x292301(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x17645d,_0xfc8c0,_0x3cfdfa){super(),this['_editor']=_0x17645d,this['_dialog']=_0xfc8c0,this['_imageElement']=_0x3cfdfa,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 _0x27a8b9=this['_imageElement'],_0x13901d=_0x27a8b9['getAttribute']('uploadcareImageId'),_0x44195e=_0x27a8b9['getAttribute']('src');if(_0x13901d)await this['_loadImageInfo'](_0x13901d,_0x44195e);else{if(this['_imageCache']['has'](_0x44195e)){const _0x5b7f76=this['_imageCache']['get'](_0x44195e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b7f76['url'],this['imageDimension']=_0x5b7f76['dimension'],this['imageId']=_0x5b7f76['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4f8d5b}=this['_editor'],t=_0x4f8d5b['t'],_0x17e3c1=new _0x3dde40(_0x4f8d5b,this['imageStatus'],this['_attributes']);_0x17e3c1['bind']('status')['to'](this,'imageStatus'),_0x17e3c1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x17e3c1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x17e3c1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x17e3c1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x97e1ef,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x17e3c1,'position':_0x1454a0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x17e3c1['focus']();},'onHide':()=>{_0x17e3c1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3b9179=>!_0x3f310b(_0x3b9179,_0x17e3c1['element'])}});}['_loadImageInfo'](_0x4d9f71,_0x1b5b07){return _0xe2689a['getInfo'](_0x4d9f71,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x72b3bb=>{const {width:_0x5c6bc2,height:_0x27d451}=_0x72b3bb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b5b07,this['imageDimension']={'width':_0x5c6bc2,'height':_0x27d451},this['imageId']=_0x4d9f71;})['catch'](_0x558082=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x558082['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5b16ca,_0xaa64e){return this['_getImageAsFile'](_0x5b16ca)['then'](_0x160847=>_0xe2689a['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0xaa64e['signal'],'file':_0x160847,'onProgress':_0x7647c8=>{_0x7647c8&&_0x7647c8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x7647c8['value']));}}))['then'](_0x25e4d1=>{const {width:_0x15af79,height:_0x151872}=_0x25e4d1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x25e4d1['cdnUrl'],this['imageDimension']={'width':_0x15af79,'height':_0x151872},this['imageId']=_0x25e4d1['uuid'],this['imageUploadProgress']=null;const _0x1d9211=_0x5b16ca['getAttribute']('src');this['_imageCache']['set'](_0x1d9211,{'id':_0x25e4d1['uuid'],'url':_0x25e4d1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1c03f7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1c03f7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5d3b30,_0x224698){_0x5d3b30['on']('apply',(_0x536ebd,_0x25cfd6)=>{this['_replaceImage'](_0x224698,_0x25cfd6['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5d3b30['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5d3b30['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2ff3ee,_0x580173,_0x2a5c88){const _0x21de21=this['_editor'],{width:_0x4cebbe,height:_0x3d7d97}=_0x5ad4bc(_0x580173,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3247d9,imageSources:_0x1cf9ad}=_0x217215(_0x580173,_0x4cebbe);_0x21de21['model']['change'](_0x4fe8fa=>{if('$graveyard'===_0x2ff3ee['root']['rootName']){_0x21de21['execute']('insertImage',{'imageType':_0x2ff3ee['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2ff3ee['getAttributes']()),'uploadcareImageId':_0x2a5c88,'src':_0x3247d9,'sources':_0x1cf9ad,'width':_0x4cebbe,'height':_0x3d7d97}});const _0x3ab26b=_0x2ff3ee['getChildren']();_0x2ff3ee=_0x21de21['model']['document']['selection']['getSelectedElement']();for(const _0x6b676f of _0x3ab26b)_0x4fe8fa['append'](_0x4fe8fa['cloneElement'](_0x6b676f),_0x2ff3ee);}else _0x4fe8fa['setSelection'](_0x2ff3ee,'on'),_0x21de21['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2ff3ee['getAttributes']()),'uploadcareImageId':_0x2a5c88,'src':_0x3247d9,'sources':_0x1cf9ad,'width':_0x4cebbe,'height':_0x3d7d97},_0x2ff3ee);_0x4fe8fa['setSelection'](_0x2ff3ee,'on');});}async['_getImageAsFile'](_0xadc9da){const _0x2df39d=_0x4deb09['window'],_0x1f9066=_0x4deb09['document']['location']['href'],_0x3bffdd=new _0x2df39d['URL'](_0xadc9da['getAttribute']('src'),_0x1f9066);if('data:'===_0x3bffdd['protocol']){const _0x120667=_0x3bffdd['href']['split'](','),_0x1a43e5=_0x120667[0x0]['match'](/:(.*?);/)[0x1],_0x5007a7=_0x1a43e5['split']('/')[0x1],_0x3c9175=_0x2df39d['atob'](_0x120667[_0x120667['length']-0x1]);let _0x2c11ce=_0x3c9175['length'];const _0xbcf75f=new _0x2df39d['Uint8Array'](_0x2c11ce);for(;_0x2c11ce--;)_0xbcf75f[_0x2c11ce]=_0x3c9175['charCodeAt'](_0x2c11ce);return new _0x2df39d['File']([_0xbcf75f],'image.'+_0x5007a7,{'type':_0x1a43e5});}const _0x53eebc=_0x3bffdd['href']['split']('/'),_0x401dba=_0x53eebc[_0x53eebc['length']-0x1],_0x591fff=_0x401dba['split']('.')[0x1];return _0x2df39d['fetch'](_0x3bffdd['href'])['then'](_0x346749=>_0x346749['clone']()['blob']())['then'](_0x17f8a0=>new _0x2df39d['File']([_0x17f8a0],_0x401dba,{'type':'image/'+_0x591fff}));}}
23
+ import{global as _0x5393b5,ObservableMixin as _0x1a8fd1}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x359cbc}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3808b8}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x36cd16}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x8d78f0}from'../../utils/uploadutils.js';import{getImageUrls as _0x45a5b5,getImageDimension as _0xc47749}from'../../utils/editingutils.js';import{isAncestor as _0xe9eaaf}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x1a8fd1(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x377e5b,_0x5b5068,_0x1ea9fc){super(),this['_editor']=_0x377e5b,this['_dialog']=_0x5b5068,this['_imageElement']=_0x1ea9fc,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 _0x1fb45c=this['_imageElement'],_0x23d8f9=_0x1fb45c['getAttribute']('uploadcareImageId'),_0x417ea8=_0x1fb45c['getAttribute']('src');if(_0x23d8f9)await this['_loadImageInfo'](_0x23d8f9,_0x417ea8);else{if(this['_imageCache']['has'](_0x417ea8)){const _0x4d6888=this['_imageCache']['get'](_0x417ea8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d6888['url'],this['imageDimension']=_0x4d6888['dimension'],this['imageId']=_0x4d6888['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4dc4bb}=this['_editor'],t=_0x4dc4bb['t'],_0x57abc3=new _0x36cd16(_0x4dc4bb,this['imageStatus'],this['_attributes']);_0x57abc3['bind']('status')['to'](this,'imageStatus'),_0x57abc3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x57abc3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x57abc3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x57abc3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3808b8,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x57abc3,'position':_0x359cbc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x57abc3['focus']();},'onHide':()=>{_0x57abc3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f2b74=>!_0xe9eaaf(_0x3f2b74,_0x57abc3['element'])}});}['_loadImageInfo'](_0xf80786,_0x4698bb){return _0x8d78f0['getInfo'](_0xf80786,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3c41e3=>{const {width:_0x4fbd78,height:_0x217f9b}=_0x3c41e3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4698bb,this['imageDimension']={'width':_0x4fbd78,'height':_0x217f9b},this['imageId']=_0xf80786;})['catch'](_0x2cc3c2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2cc3c2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x272800,_0x23d54f){return this['_getImageAsFile'](_0x272800)['then'](_0x1bbe8a=>_0x8d78f0['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x23d54f['signal'],'file':_0x1bbe8a,'onProgress':_0x2df4f2=>{_0x2df4f2&&_0x2df4f2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2df4f2['value']));}}))['then'](_0xce97ea=>{const {width:_0x477a26,height:_0x2021ed}=_0xce97ea['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xce97ea['cdnUrl'],this['imageDimension']={'width':_0x477a26,'height':_0x2021ed},this['imageId']=_0xce97ea['uuid'],this['imageUploadProgress']=null;const _0x356971=_0x272800['getAttribute']('src');this['_imageCache']['set'](_0x356971,{'id':_0xce97ea['uuid'],'url':_0xce97ea['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5687b7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5687b7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2dc2f7,_0x30490e){_0x2dc2f7['on']('apply',(_0x461d68,_0x23a987)=>{this['_replaceImage'](_0x30490e,_0x23a987['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2dc2f7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2dc2f7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3ca52c,_0x569f8a,_0x3a74ad){const _0x20db06=this['_editor'],{width:_0x35b308,height:_0x1a2f0f}=_0xc47749(_0x569f8a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x222d09,imageSources:_0x2f8bb5}=_0x45a5b5(_0x569f8a,_0x35b308);_0x20db06['model']['change'](_0x468c66=>{if('$graveyard'===_0x3ca52c['root']['rootName']){_0x20db06['execute']('insertImage',{'imageType':_0x3ca52c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3ca52c['getAttributes']()),'uploadcareImageId':_0x3a74ad,'src':_0x222d09,'sources':_0x2f8bb5,'width':_0x35b308,'height':_0x1a2f0f}});const _0x4f856e=_0x3ca52c['getChildren']();_0x3ca52c=_0x20db06['model']['document']['selection']['getSelectedElement']();for(const _0x1bc1d6 of _0x4f856e)_0x468c66['append'](_0x468c66['cloneElement'](_0x1bc1d6),_0x3ca52c);}else _0x468c66['setSelection'](_0x3ca52c,'on'),_0x20db06['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3ca52c['getAttributes']()),'uploadcareImageId':_0x3a74ad,'src':_0x222d09,'sources':_0x2f8bb5,'width':_0x35b308,'height':_0x1a2f0f},_0x3ca52c);_0x468c66['setSelection'](_0x3ca52c,'on');});}async['_getImageAsFile'](_0x3f7e47){const _0x368d98=_0x5393b5['window'],_0x291a1b=_0x5393b5['document']['location']['href'],_0x55c8a5=new _0x368d98['URL'](_0x3f7e47['getAttribute']('src'),_0x291a1b);if('data:'===_0x55c8a5['protocol']){const _0x1ef721=_0x55c8a5['href']['split'](','),_0x956737=_0x1ef721[0x0]['match'](/:(.*?);/)[0x1],_0x5b8786=_0x956737['split']('/')[0x1],_0x33bc5c=_0x368d98['atob'](_0x1ef721[_0x1ef721['length']-0x1]);let _0x4dd05f=_0x33bc5c['length'];const _0x13d3d0=new _0x368d98['Uint8Array'](_0x4dd05f);for(;_0x4dd05f--;)_0x13d3d0[_0x4dd05f]=_0x33bc5c['charCodeAt'](_0x4dd05f);return new _0x368d98['File']([_0x13d3d0],'image.'+_0x5b8786,{'type':_0x956737});}const _0x140d7e=_0x55c8a5['href']['split']('/'),_0x591694=_0x140d7e[_0x140d7e['length']-0x1],_0x4aebf3=_0x591694['split']('.')[0x1];return _0x368d98['fetch'](_0x55c8a5['href'])['then'](_0x5ad5ec=>_0x5ad5ec['clone']()['blob']())['then'](_0x3a5044=>new _0x368d98['File']([_0x3a5044],_0x591694,{'type':'image/'+_0x4aebf3}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x98942d,_0x9f189a){const _0x4738f1=_0x4680,_0x303150=_0x98942d();while(!![]){try{const _0x1e7dc3=parseInt(_0x4738f1(0x148))/0x1+parseInt(_0x4738f1(0x14d))/0x2*(-parseInt(_0x4738f1(0x145))/0x3)+-parseInt(_0x4738f1(0x147))/0x4+parseInt(_0x4738f1(0x149))/0x5*(-parseInt(_0x4738f1(0x141))/0x6)+parseInt(_0x4738f1(0x143))/0x7+parseInt(_0x4738f1(0x144))/0x8+parseInt(_0x4738f1(0x150))/0x9;if(_0x1e7dc3===_0x9f189a)break;else _0x303150['push'](_0x303150['shift']());}catch(_0x72424){_0x303150['push'](_0x303150['shift']());}}}(_0x5c0c,0x942b8));function _0x5c0c(){const _0x3cb58f=['ck-uploadcare-theme','4398nnnXmd','imageSrc','6193845ZHrchk','4493376QWUJqR','475287JUlTgc','uc-cloud-image-editor','4553920sRdgKu','1189086XcNcNc','5850SEHJrB','image-edit','bindTemplate','set','8kUWnqs','setTemplate','uc-light','5410053yOQsQD'];_0x5c0c=function(){return _0x3cb58f;};return _0x5c0c();}import{View as _0xa04c0}from'ckeditor5/src/ui.js';function _0x4680(_0x8f23b0,_0x1274f2){const _0x5c0c8d=_0x5c0c();return _0x4680=function(_0x46808b,_0x52bb3e){_0x46808b=_0x46808b-0x141;let _0x5f1530=_0x5c0c8d[_0x46808b];return _0x5f1530;},_0x4680(_0x8f23b0,_0x1274f2);}export class UploadcareImageEditFormEditingView extends _0xa04c0{constructor(_0x2bb6f4,_0x3cc140){const _0x4d6d4f=_0x4680;super(_0x2bb6f4);const _0x927888=this[_0x4d6d4f(0x14b)];this[_0x4d6d4f(0x14c)](_0x4d6d4f(0x142),''),this[_0x4d6d4f(0x14e)]({'tag':_0x4d6d4f(0x146),'attributes':{..._0x3cc140,'class':[_0x4d6d4f(0x14f),_0x4d6d4f(0x151)],'ctx-name':_0x4d6d4f(0x14a),'cdn-url':_0x927888['to'](_0x4d6d4f(0x142))}});}}
23
+ function _0x25da(_0x3ad1f6,_0x298c89){const _0x291a7b=_0x291a();return _0x25da=function(_0x25dade,_0x307b49){_0x25dade=_0x25dade-0x13e;let _0x31a213=_0x291a7b[_0x25dade];return _0x31a213;},_0x25da(_0x3ad1f6,_0x298c89);}(function(_0x413c79,_0x1f6412){const _0x474086=_0x25da,_0x2f8f30=_0x413c79();while(!![]){try{const _0x519637=-parseInt(_0x474086(0x13f))/0x1*(-parseInt(_0x474086(0x14f))/0x2)+parseInt(_0x474086(0x144))/0x3*(parseInt(_0x474086(0x14a))/0x4)+-parseInt(_0x474086(0x148))/0x5+parseInt(_0x474086(0x146))/0x6*(-parseInt(_0x474086(0x141))/0x7)+-parseInt(_0x474086(0x13e))/0x8*(-parseInt(_0x474086(0x149))/0x9)+-parseInt(_0x474086(0x14b))/0xa+-parseInt(_0x474086(0x147))/0xb*(-parseInt(_0x474086(0x14e))/0xc);if(_0x519637===_0x1f6412)break;else _0x2f8f30['push'](_0x2f8f30['shift']());}catch(_0x1b2532){_0x2f8f30['push'](_0x2f8f30['shift']());}}}(_0x291a,0x1df31));import{View as _0x36f365}from'ckeditor5/src/ui.js';function _0x291a(){const _0x4ce38e=['bindTemplate','27928pGDBMt','2181FfZZHK','imageSrc','14vLQRTg','uc-cloud-image-editor','image-edit','9MSbziN','uc-light','589686eIhvsk','11oMbJvX','1196365RjSPpM','495mWhNSo','28972XSAsPl','242280BfsNrG','setTemplate','ck-uploadcare-theme','3904584NtTLkJ','40HpmFQq','set'];_0x291a=function(){return _0x4ce38e;};return _0x291a();}export class UploadcareImageEditFormEditingView extends _0x36f365{constructor(_0x1c9cad,_0x7bcd2){const _0xc0927b=_0x25da;super(_0x1c9cad);const _0x3bedd0=this[_0xc0927b(0x151)];this[_0xc0927b(0x150)](_0xc0927b(0x140),''),this[_0xc0927b(0x14c)]({'tag':_0xc0927b(0x142),'attributes':{..._0x7bcd2,'class':[_0xc0927b(0x145),_0xc0927b(0x14d)],'ctx-name':_0xc0927b(0x143),'cdn-url':_0x3bedd0['to'](_0xc0927b(0x140))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x4be29d}from'ckeditor5/src/icons.js';import{ButtonView as _0x5bbe24,IconView as _0x57172e,View as _0x9f4990}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x9f4990{constructor(_0x109316){super(_0x109316);const t=_0x109316['t'];this['set']('errorType',null);const _0x3c2c7c=new _0x5bbe24(_0x109316);_0x3c2c7c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3c2c7c['withText']=!0x0,_0x3c2c7c['class']='ck-button-action',_0x3c2c7c['on']('execute',()=>{this['fire']('retry');}),_0x3c2c7c['bind']('isVisible')['to'](this,'errorType',_0x3a31a0=>'NotFound'!==_0x3a31a0);const _0x198ded=new _0x57172e();_0x198ded['content']=_0x4be29d,_0x198ded['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x57f116=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':[_0x198ded,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x57f116['to']('errorType',_0x9dca77=>t('NotFound'!==_0x9dca77?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3c2c7c]},{'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'}]}]}]});}}
23
+ import{IconError as _0x1679fc}from'ckeditor5/src/icons.js';import{ButtonView as _0x2451f1,IconView as _0x5047b4,View as _0x1e7719}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x1e7719{constructor(_0x25ea50){super(_0x25ea50);const t=_0x25ea50['t'];this['set']('errorType',null);const _0x20de2b=new _0x2451f1(_0x25ea50);_0x20de2b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x20de2b['withText']=!0x0,_0x20de2b['class']='ck-button-action',_0x20de2b['on']('execute',()=>{this['fire']('retry');}),_0x20de2b['bind']('isVisible')['to'](this,'errorType',_0x3e157a=>'NotFound'!==_0x3e157a);const _0x334f55=new _0x5047b4();_0x334f55['content']=_0x1679fc,_0x334f55['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x502954=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':[_0x334f55,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x502954['to']('errorType',_0x2d3607=>t('NotFound'!==_0x2d3607?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x20de2b]},{'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 _0x2a26a5,View as _0x7da50}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x7da50{constructor(_0x144bfe){super(_0x144bfe);const t=_0x144bfe['t'],_0x50425f=this['bindTemplate'],_0x3a8472=new _0x2a26a5();_0x3a8472['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':[_0x3a8472,{'text':_0x50425f['to']('imageUploadProgress',_0x2b12e9=>t('Loading\x20image...')+'\x20('+(_0x2b12e9||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'}]}]}]});}}
23
+ import{SpinnerView as _0x182a9f,View as _0x1e8753}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x1e8753{constructor(_0x2be375){super(_0x2be375);const t=_0x2be375['t'],_0x2b7ea1=this['bindTemplate'],_0x244ea0=new _0x182a9f();_0x244ea0['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':[_0x244ea0,{'text':_0x2b7ea1['to']('imageUploadProgress',_0x19713f=>t('Loading\x20image...')+'\x20('+(_0x19713f||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5cf3f0=_0x19ab;(function(_0x4bce53,_0x2285ba){const _0x5e664e=_0x19ab,_0x3486cb=_0x4bce53();while(!![]){try{const _0x4eb735=parseInt(_0x5e664e(0x19d))/0x1+parseInt(_0x5e664e(0x196))/0x2+-parseInt(_0x5e664e(0x18e))/0x3*(-parseInt(_0x5e664e(0x197))/0x4)+-parseInt(_0x5e664e(0x18f))/0x5+parseInt(_0x5e664e(0x194))/0x6*(-parseInt(_0x5e664e(0x1a9))/0x7)+-parseInt(_0x5e664e(0x1b1))/0x8*(parseInt(_0x5e664e(0x195))/0x9)+parseInt(_0x5e664e(0x199))/0xa;if(_0x4eb735===_0x2285ba)break;else _0x3486cb['push'](_0x3486cb['shift']());}catch(_0xbc8537){_0x3486cb['push'](_0x3486cb['shift']());}}}(_0x2e84,0xbf356));function _0x2e84(){const _0x4f0702=['target','ck-uploadcare-form','focus','once','retry','add','apply','element','setTemplate','fire','ready','addMany','error','div','nodeName','status','toLowerCase','_editingView','348ljvwwS','4642710qNKDkL','clear','cdnUrl','createCollection','_waitForImageEditorComponent','138ySTRFM','9cIywvM','2102240GUKUZa','6628kquays','_errorView','17386040cvFGVM','_addErrorViewListeners','ck-reset_all-excluded','addEventListener','418161YMCBle','length','getFocusableElement','filter','uploading','uc-cloud-image-editor','querySelector','detail','_setView','_loadingView','render','cancel','434203lezaRG','set','disconnect','addedNodes','observe','_items','_focusableView','_addUploadcareImageEditorListeners','2093584BYKxGp','change:status'];_0x2e84=function(){return _0x4f0702;};return _0x2e84();}import{View as _0x3f0500}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5c1473}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0xbaa170}from'./uploadcareimageeditformerrorview.js';function _0x19ab(_0x475e92,_0x4cb746){const _0x2e840f=_0x2e84();return _0x19ab=function(_0x19aba2,_0x43d6dc){_0x19aba2=_0x19aba2-0x180;let _0xe6a01c=_0x2e840f[_0x19aba2];return _0xe6a01c;},_0x19ab(_0x475e92,_0x4cb746);}import{UploadcareImageEditFormEditingView as _0x487d7d}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x4b5257}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x4b5257{[_0x5cf3f0(0x1ae)];[_0x5cf3f0(0x1a6)];[_0x5cf3f0(0x198)];[_0x5cf3f0(0x18d)];[_0x5cf3f0(0x1af)];constructor(_0x3b4403,_0x3e3344,_0x46b75d){const _0x5b25a8=_0x5cf3f0;super(_0x3b4403),this[_0x5b25a8(0x1ae)]=this[_0x5b25a8(0x192)](),this[_0x5b25a8(0x1a6)]=new _0x5c1473(_0x3b4403),this[_0x5b25a8(0x198)]=new _0xbaa170(_0x3b4403),this[_0x5b25a8(0x18d)]=new _0x487d7d(_0x3b4403,_0x46b75d),this[_0x5b25a8(0x1af)]=new _0x3f0500(_0x3b4403),this[_0x5b25a8(0x1af)][_0x5b25a8(0x184)](this[_0x5b25a8(0x19f)]()),this[_0x5b25a8(0x1aa)](_0x5b25a8(0x18b),_0x3e3344),this[_0x5b25a8(0x184)]({'tag':_0x5b25a8(0x189),'attributes':{'class':['ck',_0x5b25a8(0x19b),_0x5b25a8(0x1b4)],'tabindex':'-1'},'children':this[_0x5b25a8(0x1ae)]}),this[_0x5b25a8(0x1a5)](),this[_0x5b25a8(0x1b6)](_0x5b25a8(0x1a7),()=>{const _0x43d8cf=_0x5b25a8;this[_0x43d8cf(0x193)](this[_0x43d8cf(0x183)],_0xc5d9f7=>{const _0x194ac7=_0x43d8cf;this[_0x194ac7(0x1b0)](_0xc5d9f7);});}),this['on'](_0x5b25a8(0x1b2),()=>{const _0x26200d=_0x5b25a8;this[_0x26200d(0x1a5)]();}),this[_0x5b25a8(0x19a)]();}[_0x5cf3f0(0x1b5)](){const _0x24dd83=_0x5cf3f0;this[_0x24dd83(0x183)][_0x24dd83(0x1b5)]();}[_0x5cf3f0(0x1a5)](){const _0x10fa7c=_0x5cf3f0;switch(this[_0x10fa7c(0x1ae)][_0x10fa7c(0x190)](),this[_0x10fa7c(0x18b)]){case _0x10fa7c(0x1a1):this[_0x10fa7c(0x1ae)][_0x10fa7c(0x181)](this[_0x10fa7c(0x1a6)]);break;case _0x10fa7c(0x188):this[_0x10fa7c(0x1ae)][_0x10fa7c(0x181)](this[_0x10fa7c(0x198)]);break;case _0x10fa7c(0x186):this[_0x10fa7c(0x1ae)][_0x10fa7c(0x187)]([this[_0x10fa7c(0x18d)],this[_0x10fa7c(0x1af)]]);}}[_0x5cf3f0(0x193)](_0x1e0a80,_0x34f9be){const _0xda76ec=_0x5cf3f0,_0x422c46=_0xda76ec(0x1a2),_0x4c876b=_0x1e0a80[_0xda76ec(0x1a3)](_0x422c46);if(_0x4c876b)return _0x34f9be(_0x4c876b);const _0x567419=new MutationObserver(_0x16555e=>{const _0x1999a9=_0xda76ec,_0x4d1ed0=_0x16555e[_0x1999a9(0x1a0)](_0x1aaa96=>_0x1aaa96[_0x1999a9(0x1b3)]===_0x1e0a80&&_0x1aaa96[_0x1999a9(0x1ac)][_0x1999a9(0x19e)]>0x0&&_0x1aaa96[_0x1999a9(0x1ac)][0x0][_0x1999a9(0x18a)][_0x1999a9(0x18c)]()===_0x422c46);_0x4d1ed0[_0x1999a9(0x19e)]&&(_0x567419[_0x1999a9(0x1ab)](),_0x34f9be(_0x4d1ed0[0x0][_0x1999a9(0x1ac)][0x0]));});_0x567419[_0xda76ec(0x1ad)](_0x1e0a80,{'childList':!0x0,'subtree':!0x0});}[_0x5cf3f0(0x1b0)](_0x39c28b){const _0x3e7c78=_0x5cf3f0;_0x39c28b[_0x3e7c78(0x19c)](_0x3e7c78(0x182),_0x4749bf=>{const _0x4406ee=_0x3e7c78;this[_0x4406ee(0x185)](_0x4406ee(0x182),{'imageSrc':_0x4749bf[_0x4406ee(0x1a4)][_0x4406ee(0x191)]});}),_0x39c28b[_0x3e7c78(0x19c)](_0x3e7c78(0x1a8),()=>{const _0x45a948=_0x3e7c78;this[_0x45a948(0x185)](_0x45a948(0x1a8));});}[_0x5cf3f0(0x19a)](){const _0x4ee236=_0x5cf3f0;this[_0x4ee236(0x198)]['on'](_0x4ee236(0x180),()=>{const _0x1865f6=_0x4ee236;this[_0x1865f6(0x185)](_0x1865f6(0x180));});}}
23
+ function _0x5838(){const _0x495bd9=['querySelector','uc-cloud-image-editor','_waitForImageEditorComponent','apply','getFocusableElement','nodeName','status','1998824ouiEIQ','10QTcfGj','div','createCollection','render','_addUploadcareImageEditorListeners','_addErrorViewListeners','setTemplate','6231255cJnWxb','addEventListener','904828bimueR','addedNodes','ready','detail','set','7147872DFYlmK','addMany','_errorView','ck-uploadcare-form','2GoeTJH','error','_editingView','observe','6LBsBnC','cdnUrl','_loadingView','_focusableView','focus','_items','element','length','fire','change:status','disconnect','target','2510637RsQAQk','_setView','once','toLowerCase','uploading','ck-reset_all-excluded','clear','300622BPAwqk','32702031fXIQtE','cancel','retry','add','filter'];_0x5838=function(){return _0x495bd9;};return _0x5838();}const _0x13b682=_0x4ca2;(function(_0x5ab2b2,_0x5c22d2){const _0x200fde=_0x4ca2,_0x10ed7a=_0x5ab2b2();while(!![]){try{const _0x2935ee=parseInt(_0x200fde(0x128))/0x1*(-parseInt(_0x200fde(0x11f))/0x2)+parseInt(_0x200fde(0x138))/0x3+-parseInt(_0x200fde(0x115))/0x4+-parseInt(_0x200fde(0x11d))/0x5*(parseInt(_0x200fde(0x12c))/0x6)+-parseInt(_0x200fde(0x108))/0x7+-parseInt(_0x200fde(0x124))/0x8+parseInt(_0x200fde(0x109))/0x9*(parseInt(_0x200fde(0x116))/0xa);if(_0x2935ee===_0x5c22d2)break;else _0x10ed7a['push'](_0x10ed7a['shift']());}catch(_0xda704c){_0x10ed7a['push'](_0x10ed7a['shift']());}}}(_0x5838,0xd7a17));function _0x4ca2(_0x385d49,_0x5751e7){const _0x5838a3=_0x5838();return _0x4ca2=function(_0x4ca2dc,_0x4b3f9e){_0x4ca2dc=_0x4ca2dc-0x108;let _0x153b00=_0x5838a3[_0x4ca2dc];return _0x153b00;},_0x4ca2(_0x385d49,_0x5751e7);}import{View as _0x4ea12d}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x460d67}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x29a13f}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x293e21}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0xdddb61}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0xdddb61{[_0x13b682(0x131)];[_0x13b682(0x12e)];[_0x13b682(0x126)];[_0x13b682(0x12a)];[_0x13b682(0x12f)];constructor(_0x31441c,_0x3d6a71,_0x211ffd){const _0x26f4e1=_0x13b682;super(_0x31441c),this[_0x26f4e1(0x131)]=this[_0x26f4e1(0x118)](),this[_0x26f4e1(0x12e)]=new _0x460d67(_0x31441c),this[_0x26f4e1(0x126)]=new _0x29a13f(_0x31441c),this[_0x26f4e1(0x12a)]=new _0x293e21(_0x31441c,_0x211ffd),this[_0x26f4e1(0x12f)]=new _0x4ea12d(_0x31441c),this[_0x26f4e1(0x12f)][_0x26f4e1(0x11c)](this[_0x26f4e1(0x112)]()),this[_0x26f4e1(0x123)](_0x26f4e1(0x114),_0x3d6a71),this[_0x26f4e1(0x11c)]({'tag':_0x26f4e1(0x117),'attributes':{'class':['ck',_0x26f4e1(0x13d),_0x26f4e1(0x127)],'tabindex':'-1'},'children':this[_0x26f4e1(0x131)]}),this[_0x26f4e1(0x139)](),this[_0x26f4e1(0x13a)](_0x26f4e1(0x119),()=>{const _0x4670fc=_0x26f4e1;this[_0x4670fc(0x110)](this[_0x4670fc(0x132)],_0x38815f=>{const _0x57af02=_0x4670fc;this[_0x57af02(0x11a)](_0x38815f);});}),this['on'](_0x26f4e1(0x135),()=>{const _0x239e06=_0x26f4e1;this[_0x239e06(0x139)]();}),this[_0x26f4e1(0x11b)]();}[_0x13b682(0x130)](){const _0x21f7eb=_0x13b682;this[_0x21f7eb(0x132)][_0x21f7eb(0x130)]();}[_0x13b682(0x139)](){const _0x53ccf3=_0x13b682;switch(this[_0x53ccf3(0x131)][_0x53ccf3(0x13e)](),this[_0x53ccf3(0x114)]){case _0x53ccf3(0x13c):this[_0x53ccf3(0x131)][_0x53ccf3(0x10c)](this[_0x53ccf3(0x12e)]);break;case _0x53ccf3(0x129):this[_0x53ccf3(0x131)][_0x53ccf3(0x10c)](this[_0x53ccf3(0x126)]);break;case _0x53ccf3(0x121):this[_0x53ccf3(0x131)][_0x53ccf3(0x125)]([this[_0x53ccf3(0x12a)],this[_0x53ccf3(0x12f)]]);}}[_0x13b682(0x110)](_0x160607,_0xab7d64){const _0x3d35e5=_0x13b682,_0x2d7a0c=_0x3d35e5(0x10f),_0x53b369=_0x160607[_0x3d35e5(0x10e)](_0x2d7a0c);if(_0x53b369)return _0xab7d64(_0x53b369);const _0x348db8=new MutationObserver(_0x430a45=>{const _0x4d6893=_0x3d35e5,_0x3aa0eb=_0x430a45[_0x4d6893(0x10d)](_0x549bb4=>_0x549bb4[_0x4d6893(0x137)]===_0x160607&&_0x549bb4[_0x4d6893(0x120)][_0x4d6893(0x133)]>0x0&&_0x549bb4[_0x4d6893(0x120)][0x0][_0x4d6893(0x113)][_0x4d6893(0x13b)]()===_0x2d7a0c);_0x3aa0eb[_0x4d6893(0x133)]&&(_0x348db8[_0x4d6893(0x136)](),_0xab7d64(_0x3aa0eb[0x0][_0x4d6893(0x120)][0x0]));});_0x348db8[_0x3d35e5(0x12b)](_0x160607,{'childList':!0x0,'subtree':!0x0});}[_0x13b682(0x11a)](_0x520cf1){const _0xeb1d39=_0x13b682;_0x520cf1[_0xeb1d39(0x11e)](_0xeb1d39(0x111),_0x103c32=>{const _0x11da00=_0xeb1d39;this[_0x11da00(0x134)](_0x11da00(0x111),{'imageSrc':_0x103c32[_0x11da00(0x122)][_0x11da00(0x12d)]});}),_0x520cf1[_0xeb1d39(0x11e)](_0xeb1d39(0x10a),()=>{const _0x22ebb1=_0xeb1d39;this[_0x22ebb1(0x134)](_0x22ebb1(0x10a));});}[_0x13b682(0x11b)](){const _0x191ab5=_0x13b682;this[_0x191ab5(0x126)]['on'](_0x191ab5(0x10b),()=>{const _0x31c7a8=_0x191ab5;this[_0x31c7a8(0x134)](_0x31c7a8(0x10b));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x209b3c=_0xf433;(function(_0x11ff76,_0x54bf26){const _0xf02e89=_0xf433,_0x4a9111=_0x11ff76();while(!![]){try{const _0x31391d=-parseInt(_0xf02e89(0x184))/0x1+parseInt(_0xf02e89(0x17a))/0x2*(parseInt(_0xf02e89(0x186))/0x3)+parseInt(_0xf02e89(0x183))/0x4+-parseInt(_0xf02e89(0x17f))/0x5*(parseInt(_0xf02e89(0x18e))/0x6)+parseInt(_0xf02e89(0x187))/0x7*(parseInt(_0xf02e89(0x175))/0x8)+parseInt(_0xf02e89(0x18d))/0x9+-parseInt(_0xf02e89(0x178))/0xa;if(_0x31391d===_0x54bf26)break;else _0x4a9111['push'](_0x4a9111['shift']());}catch(_0x3769b6){_0x4a9111['push'](_0x4a9111['shift']());}}}(_0x4440,0x43c68));import{Command as _0x15fc01}from'ckeditor5/src/core.js';function _0x4440(){const _0x31b515=['imageEditController','execute','get','283820ClLmDD','491585doNlQp','refresh','415218BTqfQt','7keNHIh','model','bind','uploadcare.allowExternalImagesEditing','isEnabled','editor','1593369iFkhxp','18yFtKHt','isActive','set','_isEditable','requires','plugins','document','1969232DYCaSj','element','imageInline','603700uyRKBt','selection','8AKgghz','config','imageBlock','unbind','getSelectedElement','363685Mxngvq'];_0x4440=function(){return _0x31b515;};return _0x4440();}import{Dialog as _0x325b89}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0xda8e76}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x15c697}from'../utils/editingutils.js';function _0xf433(_0x43fb02,_0x57f644){const _0x4440c2=_0x4440();return _0xf433=function(_0xf43336,_0x11b2f0){_0xf43336=_0xf43336-0x175;let _0x4cf8b6=_0x4440c2[_0xf43336];return _0x4cf8b6;},_0xf433(_0x43fb02,_0x57f644);}export class UploadcareImageEditCommand extends _0x15fc01{[_0x209b3c(0x180)];static get[_0x209b3c(0x192)](){return[_0x325b89];}[_0x209b3c(0x191)];constructor(_0x5e95af){const _0x4ec148=_0x209b3c;super(_0x5e95af),this[_0x4ec148(0x180)]=void 0x0,this[_0x4ec148(0x191)]=_0x15c697(_0x5e95af[_0x4ec148(0x17b)][_0x4ec148(0x182)](_0x4ec148(0x18a))||[]),this[_0x4ec148(0x190)]({'isActive':!0x1});}[_0x209b3c(0x185)](){const _0x219483=_0x209b3c,_0x54bae5=this[_0x219483(0x18c)][_0x219483(0x188)][_0x219483(0x194)][_0x219483(0x179)][_0x219483(0x17e)]();this[_0x219483(0x18b)]=this[_0x219483(0x191)](_0x54bae5);}[_0x209b3c(0x181)](){const _0x2e9d61=_0x209b3c;this[_0x2e9d61(0x180)]&&(this[_0x2e9d61(0x17d)](_0x2e9d61(0x18f)),this[_0x2e9d61(0x180)]=void 0x0);const _0x2563eb=this[_0x2e9d61(0x18c)][_0x2e9d61(0x188)][_0x2e9d61(0x194)][_0x2e9d61(0x179)][_0x2e9d61(0x17e)]();_0x2563eb&&(_0x2563eb['is'](_0x2e9d61(0x176),_0x2e9d61(0x17c))||_0x2563eb['is'](_0x2e9d61(0x176),_0x2e9d61(0x177)))&&(this[_0x2e9d61(0x180)]=new _0xda8e76(this[_0x2e9d61(0x18c)],this[_0x2e9d61(0x18c)][_0x2e9d61(0x193)][_0x2e9d61(0x182)](_0x325b89),_0x2563eb),this[_0x2e9d61(0x189)](_0x2e9d61(0x18f))['to'](this[_0x2e9d61(0x180)],_0x2e9d61(0x18f)));}}
23
+ const _0x2c9d65=_0x5a80;(function(_0x35331a,_0x2d2906){const _0x187d92=_0x5a80,_0x21c81b=_0x35331a();while(!![]){try{const _0x368ba8=-parseInt(_0x187d92(0x119))/0x1+parseInt(_0x187d92(0x11a))/0x2+-parseInt(_0x187d92(0x10f))/0x3+-parseInt(_0x187d92(0x118))/0x4*(-parseInt(_0x187d92(0x120))/0x5)+-parseInt(_0x187d92(0x112))/0x6+parseInt(_0x187d92(0x116))/0x7+parseInt(_0x187d92(0x114))/0x8*(parseInt(_0x187d92(0x127))/0x9);if(_0x368ba8===_0x2d2906)break;else _0x21c81b['push'](_0x21c81b['shift']());}catch(_0x465bfb){_0x21c81b['push'](_0x21c81b['shift']());}}}(_0x5b6f,0x9ffa1));import{Command as _0xe781cd}from'ckeditor5/src/core.js';import{Dialog as _0x31f509}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x9e204f}from'./ui/uploadcareimageeditcontroller.js';function _0x5a80(_0x3acbd7,_0x4e38b8){const _0x5b6f41=_0x5b6f();return _0x5a80=function(_0x5a80c5,_0x34811b){_0x5a80c5=_0x5a80c5-0x10c;let _0xf5c1a0=_0x5b6f41[_0x5a80c5];return _0xf5c1a0;},_0x5a80(_0x3acbd7,_0x4e38b8);}import{createEditabilityChecker as _0x4e0320}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0xe781cd{[_0x2c9d65(0x126)];static get[_0x2c9d65(0x122)](){return[_0x31f509];}[_0x2c9d65(0x113)];constructor(_0x26eb17){const _0x184cb5=_0x2c9d65;super(_0x26eb17),this[_0x184cb5(0x126)]=void 0x0,this[_0x184cb5(0x113)]=_0x4e0320(_0x26eb17[_0x184cb5(0x10e)][_0x184cb5(0x11d)](_0x184cb5(0x123))||[]),this[_0x184cb5(0x12a)]({'isActive':!0x1});}[_0x2c9d65(0x11e)](){const _0x539c83=_0x2c9d65,_0x578a5b=this[_0x539c83(0x115)][_0x539c83(0x110)][_0x539c83(0x111)][_0x539c83(0x10d)][_0x539c83(0x121)]();this[_0x539c83(0x129)]=this[_0x539c83(0x113)](_0x578a5b);}[_0x2c9d65(0x124)](){const _0xf7d62=_0x2c9d65;this[_0xf7d62(0x126)]&&(this[_0xf7d62(0x10c)](_0xf7d62(0x11b)),this[_0xf7d62(0x126)]=void 0x0);const _0x4f84bf=this[_0xf7d62(0x115)][_0xf7d62(0x110)][_0xf7d62(0x111)][_0xf7d62(0x10d)][_0xf7d62(0x121)]();_0x4f84bf&&(_0x4f84bf['is'](_0xf7d62(0x125),_0xf7d62(0x11c))||_0x4f84bf['is'](_0xf7d62(0x125),_0xf7d62(0x11f)))&&(this[_0xf7d62(0x126)]=new _0x9e204f(this[_0xf7d62(0x115)],this[_0xf7d62(0x115)][_0xf7d62(0x128)][_0xf7d62(0x11d)](_0x31f509),_0x4f84bf),this[_0xf7d62(0x117)](_0xf7d62(0x11b))['to'](this[_0xf7d62(0x126)],_0xf7d62(0x11b)));}}function _0x5b6f(){const _0x3cadb1=['6215bAbntK','getSelectedElement','requires','uploadcare.allowExternalImagesEditing','execute','element','imageEditController','342GuXTWs','plugins','isEnabled','set','unbind','selection','config','2600715izmlrd','model','document','583242RyptMW','_isEditable','20728fmjTkI','editor','938140YFsxHQ','bind','2456TKvmIk','431120AaPPLV','2109634QhVVOD','isActive','imageBlock','get','refresh','imageInline'];_0x5b6f=function(){return _0x3cadb1;};return _0x5b6f();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x28c742=_0x1569;function _0x1569(_0x3026a6,_0xb7ed2d){const _0x4415f4=_0x4415();return _0x1569=function(_0x156907,_0x420a96){_0x156907=_0x156907-0x14a;let _0x5b75e1=_0x4415f4[_0x156907];return _0x5b75e1;},_0x1569(_0x3026a6,_0xb7ed2d);}function _0x4415(){const _0x5adc19=['uploadcareImageReplace','2039660YYEIqQ','945WdZfOM','ImageEditing','commands','add','4118100sWHIxk','15828IQDECh','pluginName','3742788drAXCs','2fbvvmj','requires','4066468yaeOYV','UploadcareImageEditEditing','isOfficialPlugin','uploadcareImageEdit','ImageUtils','isPremiumPlugin','3069hqoSQX','10072PMQTnu','init','804914xFetyf'];_0x4415=function(){return _0x5adc19;};return _0x4415();}(function(_0x380a1c,_0x56bb0a){const _0xa91a8c=_0x1569,_0x3de576=_0x380a1c();while(!![]){try{const _0x3e06f7=parseInt(_0xa91a8c(0x14b))/0x1*(-parseInt(_0xa91a8c(0x156))/0x2)+parseInt(_0xa91a8c(0x14a))/0x3+parseInt(_0xa91a8c(0x14d))/0x4+-parseInt(_0xa91a8c(0x159))/0x5*(parseInt(_0xa91a8c(0x15e))/0x6)+-parseInt(_0xa91a8c(0x158))/0x7+parseInt(_0xa91a8c(0x154))/0x8*(-parseInt(_0xa91a8c(0x153))/0x9)+parseInt(_0xa91a8c(0x15d))/0xa;if(_0x3e06f7===_0x56bb0a)break;else _0x3de576['push'](_0x3de576['shift']());}catch(_0x34028f){_0x3de576['push'](_0x3de576['shift']());}}}(_0x4415,0x9f234));import{Plugin as _0x314670}from'ckeditor5/src/core.js';import{Notification as _0x46a9e2}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x46be4c}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2a7954}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x18109b}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x314670{static get[_0x28c742(0x15f)](){const _0x4dc84e=_0x28c742;return _0x4dc84e(0x14e);}static get[_0x28c742(0x14c)](){const _0x2afe57=_0x28c742;return[_0x18109b,_0x46a9e2,_0x2afe57(0x151),_0x2afe57(0x15a)];}static get[_0x28c742(0x14f)](){return!0x0;}static get[_0x28c742(0x152)](){return!0x0;}[_0x28c742(0x155)](){const _0x48a87f=_0x28c742,{editor:_0x5621cc}=this;_0x5621cc[_0x48a87f(0x15b)][_0x48a87f(0x15c)](_0x48a87f(0x150),new _0x46be4c(_0x5621cc)),_0x5621cc[_0x48a87f(0x15b)][_0x48a87f(0x15c)](_0x48a87f(0x157),new _0x2a7954(_0x5621cc));}}
23
+ const _0x1027ff=_0x2e18;(function(_0x12ca68,_0x3febc5){const _0x58cca3=_0x2e18,_0x4d4ae9=_0x12ca68();while(!![]){try{const _0x1b669e=-parseInt(_0x58cca3(0xf4))/0x1*(-parseInt(_0x58cca3(0xf2))/0x2)+parseInt(_0x58cca3(0xe6))/0x3*(-parseInt(_0x58cca3(0xec))/0x4)+parseInt(_0x58cca3(0xef))/0x5*(parseInt(_0x58cca3(0xee))/0x6)+-parseInt(_0x58cca3(0xf3))/0x7+parseInt(_0x58cca3(0xed))/0x8+-parseInt(_0x58cca3(0xe4))/0x9*(-parseInt(_0x58cca3(0xe2))/0xa)+-parseInt(_0x58cca3(0xe8))/0xb;if(_0x1b669e===_0x3febc5)break;else _0x4d4ae9['push'](_0x4d4ae9['shift']());}catch(_0x7f0bbf){_0x4d4ae9['push'](_0x4d4ae9['shift']());}}}(_0xc79f,0x9fe58));import{Plugin as _0x4905f8}from'ckeditor5/src/core.js';import{Notification as _0x5a1686}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x367f0c}from'./uploadcareimageeditcommand.js';function _0xc79f(){const _0x4c864e=['isOfficialPlugin','pluginName','3452230UaZZYL','uploadcareImageReplace','18GMrFBH','init','9kslTDz','isPremiumPlugin','14419614dcsXFe','uploadcareImageEdit','commands','requires','105076jAzOBC','5727208qyhajh','3158904gXeibJ','5UtXBAD','ImageEditing','ImageUtils','2vcqNmW','115864yCtugY','128338VqOoir','UploadcareImageEditEditing','add'];_0xc79f=function(){return _0x4c864e;};return _0xc79f();}import{UploadcareImageReplaceCommand as _0x3185a2}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x178afc}from'../uploadcareediting.js';function _0x2e18(_0x3eeb3e,_0x5f23b9){const _0xc79f3d=_0xc79f();return _0x2e18=function(_0x2e186f,_0x3b2e){_0x2e186f=_0x2e186f-0xe1;let _0x3cd342=_0xc79f3d[_0x2e186f];return _0x3cd342;},_0x2e18(_0x3eeb3e,_0x5f23b9);}export class UploadcareImageEditEditing extends _0x4905f8{static get[_0x1027ff(0xe1)](){const _0x4adf53=_0x1027ff;return _0x4adf53(0xf5);}static get[_0x1027ff(0xeb)](){const _0x23aa81=_0x1027ff;return[_0x178afc,_0x5a1686,_0x23aa81(0xf1),_0x23aa81(0xf0)];}static get[_0x1027ff(0xf7)](){return!0x0;}static get[_0x1027ff(0xe7)](){return!0x0;}[_0x1027ff(0xe5)](){const _0x5ccac8=_0x1027ff,{editor:_0x3b5269}=this;_0x3b5269[_0x5ccac8(0xea)][_0x5ccac8(0xf6)](_0x5ccac8(0xe9),new _0x367f0c(_0x3b5269)),_0x3b5269[_0x5ccac8(0xea)][_0x5ccac8(0xf6)](_0x5ccac8(0xe3),new _0x3185a2(_0x3b5269));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1d5acd}from'ckeditor5/src/core.js';import{ButtonView as _0x91b20d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x386fbf}from'ckeditor5/src/icons.js';import{createElement as _0x4b0b5e}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x1d5acd{['_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 _0x406c73=this['editor'];_0x406c73['ui']['componentFactory']['add']('uploadcareImageEdit',_0xd9bfc9=>{const _0x4cd869=_0x406c73['commands']['get']('uploadcareImageEdit'),_0x55db15=new _0x91b20d(_0xd9bfc9),t=_0xd9bfc9['t'];return _0x55db15['set']({'icon':_0x386fbf,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x55db15['bind']('isEnabled')['to'](_0x4cd869),_0x55db15['bind']('isOn')['to'](_0x4cd869,'isActive'),this['listenTo'](_0x55db15,'execute',()=>{_0x406c73['execute']('uploadcareImageEdit'),_0x406c73['editing']['view']['focus']();}),_0x55db15;}),this['_initConfig']();}['_initConfig'](){const _0x1a3666=_0x4b0b5e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1a3666),this['listenTo'](this['editor'],'destroy',()=>{_0x1a3666['remove']();});}}
23
+ import{Plugin as _0x529d05}from'ckeditor5/src/core.js';import{ButtonView as _0x4dc104}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2d32ad}from'ckeditor5/src/icons.js';import{createElement as _0x98553a}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x529d05{['_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 _0x4311d4=this['editor'];_0x4311d4['ui']['componentFactory']['add']('uploadcareImageEdit',_0xcd742a=>{const _0x4e4206=_0x4311d4['commands']['get']('uploadcareImageEdit'),_0x14649e=new _0x4dc104(_0xcd742a),t=_0xcd742a['t'];return _0x14649e['set']({'icon':_0x2d32ad,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x14649e['bind']('isEnabled')['to'](_0x4e4206),_0x14649e['bind']('isOn')['to'](_0x4e4206,'isActive'),this['listenTo'](_0x14649e,'execute',()=>{_0x4311d4['execute']('uploadcareImageEdit'),_0x4311d4['editing']['view']['focus']();}),_0x14649e;}),this['_initConfig']();}['_initConfig'](){const _0x49ae68=_0x98553a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x49ae68),this['listenTo'](this['editor'],'destroy',()=>{_0x49ae68['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2532f5=_0x1d07;(function(_0x2fabfd,_0x190aee){var _0x30cdd9=_0x1d07,_0x31b285=_0x2fabfd();while(!![]){try{var _0x522ffc=-parseInt(_0x30cdd9(0xa0))/0x1*(-parseInt(_0x30cdd9(0xa8))/0x2)+parseInt(_0x30cdd9(0xb2))/0x3*(parseInt(_0x30cdd9(0xaa))/0x4)+parseInt(_0x30cdd9(0xaf))/0x5*(parseInt(_0x30cdd9(0xa1))/0x6)+-parseInt(_0x30cdd9(0xb1))/0x7*(-parseInt(_0x30cdd9(0xb0))/0x8)+parseInt(_0x30cdd9(0xa7))/0x9+parseInt(_0x30cdd9(0xb3))/0xa+parseInt(_0x30cdd9(0xa2))/0xb*(-parseInt(_0x30cdd9(0xa5))/0xc);if(_0x522ffc===_0x190aee)break;else _0x31b285['push'](_0x31b285['shift']());}catch(_0x44050c){_0x31b285['push'](_0x31b285['shift']());}}}(_0x1eed,0xacc9d));function _0x1d07(_0x5dd1fc,_0x3bfe90){var _0x1eed46=_0x1eed();return _0x1d07=function(_0x1d077d,_0x5909d0){_0x1d077d=_0x1d077d-0x9f;var _0x5b1cdd=_0x1eed46[_0x1d077d];return _0x5b1cdd;},_0x1d07(_0x5dd1fc,_0x3bfe90);}import{FocusTracker as _0x3e2f47}from'ckeditor5/src/utils.js';import{View as _0x66a984,FocusCycler as _0x209d51}from'ckeditor5/src/ui.js';function _0x1eed(){var _0x3b4a14=['48Yrjrkg','bindTemplate','6814116OHBQDu','136342UjNgrI','forwardCycle','1955548ZWXZpk','focusTracker','createCollection','true','focusCycler','6693710XuQgdt','178456eHFvLK','161YNLnLl','3ROZfAl','12758540dKrCJy','getFocusableElement','7LDMXTU','6lSdttK','11393591VKzIHN','div','fire'];_0x1eed=function(){return _0x3b4a14;};return _0x1eed();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x66a984{[_0x2532f5(0xab)];[_0x2532f5(0xae)];constructor(_0x455c4a){var _0x282b41=_0x2532f5;super(_0x455c4a),this[_0x282b41(0xab)]=new _0x3e2f47(),this[_0x282b41(0xae)]=new _0x209d51({'focusables':this[_0x282b41(0xac)](),'focusTracker':this[_0x282b41(0xab)]});}[_0x2532f5(0x9f)](){var _0x78d8a5=_0x2532f5;return{'tag':_0x78d8a5(0xa3),'attributes':{'aria-hidden':_0x78d8a5(0xad),'tabindex':'0'},'on':{'focus':this[_0x78d8a5(0xa6)]['to'](()=>{var _0x53c0ea=_0x78d8a5;this[_0x53c0ea(0xae)][_0x53c0ea(0xa4)](_0x53c0ea(0xa9));})}};}}
23
+ var _0x3944f7=_0x6a3f;(function(_0x677f45,_0x5da52a){var _0x1fd71d=_0x6a3f,_0x5925e3=_0x677f45();while(!![]){try{var _0x3e4adc=-parseInt(_0x1fd71d(0x12f))/0x1*(-parseInt(_0x1fd71d(0x12b))/0x2)+parseInt(_0x1fd71d(0x132))/0x3*(parseInt(_0x1fd71d(0x131))/0x4)+-parseInt(_0x1fd71d(0x129))/0x5*(parseInt(_0x1fd71d(0x12a))/0x6)+parseInt(_0x1fd71d(0x127))/0x7*(parseInt(_0x1fd71d(0x133))/0x8)+-parseInt(_0x1fd71d(0x121))/0x9*(parseInt(_0x1fd71d(0x126))/0xa)+parseInt(_0x1fd71d(0x122))/0xb+-parseInt(_0x1fd71d(0x12e))/0xc*(-parseInt(_0x1fd71d(0x11e))/0xd);if(_0x3e4adc===_0x5da52a)break;else _0x5925e3['push'](_0x5925e3['shift']());}catch(_0x5e4ba6){_0x5925e3['push'](_0x5925e3['shift']());}}}(_0x5dc6,0x67bc3));import{FocusTracker as _0x340347}from'ckeditor5/src/utils.js';function _0x5dc6(){var _0x4c086c=['focusCycler','9joWrqk','2908257CkxpsL','forwardCycle','true','bindTemplate','8176040oPqAiV','28KuHPtG','focusTracker','3401295AvGFxb','6FtpkTW','44zVgAvk','div','fire','36YOWWyn','2749oVQXoL','createCollection','2712LdEUor','3579otnZLh','1574792neiQtW','7137GQzMMi','getFocusableElement'];_0x5dc6=function(){return _0x4c086c;};return _0x5dc6();}function _0x6a3f(_0x14fc7a,_0x5f4217){var _0x5dc681=_0x5dc6();return _0x6a3f=function(_0x6a3f70,_0x1ad9d0){_0x6a3f70=_0x6a3f70-0x11e;var _0x17eca6=_0x5dc681[_0x6a3f70];return _0x17eca6;},_0x6a3f(_0x14fc7a,_0x5f4217);}import{View as _0x5f4b71,FocusCycler as _0x411c52}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x5f4b71{[_0x3944f7(0x128)];[_0x3944f7(0x120)];constructor(_0x4bc8bd){var _0xe37b9=_0x3944f7;super(_0x4bc8bd),this[_0xe37b9(0x128)]=new _0x340347(),this[_0xe37b9(0x120)]=new _0x411c52({'focusables':this[_0xe37b9(0x130)](),'focusTracker':this[_0xe37b9(0x128)]});}[_0x3944f7(0x11f)](){var _0x234181=_0x3944f7;return{'tag':_0x234181(0x12c),'attributes':{'aria-hidden':_0x234181(0x124),'tabindex':'0'},'on':{'focus':this[_0x234181(0x125)]['to'](()=>{var _0x230e55=_0x234181;this[_0x230e55(0x120)][_0x230e55(0x12d)](_0x230e55(0x123));})}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x3165d8,_0x4bbd9a){const _0x10e3b9=_0x5793,_0x36b8ab=_0x3165d8();while(!![]){try{const _0x4b060b=-parseInt(_0x10e3b9(0x9a))/0x1*(parseInt(_0x10e3b9(0xb3))/0x2)+-parseInt(_0x10e3b9(0xbe))/0x3*(parseInt(_0x10e3b9(0xac))/0x4)+parseInt(_0x10e3b9(0xb9))/0x5*(-parseInt(_0x10e3b9(0x94))/0x6)+parseInt(_0x10e3b9(0xa1))/0x7+parseInt(_0x10e3b9(0x98))/0x8+parseInt(_0x10e3b9(0xc0))/0x9+parseInt(_0x10e3b9(0xa6))/0xa;if(_0x4b060b===_0x4bbd9a)break;else _0x36b8ab['push'](_0x36b8ab['shift']());}catch(_0x5f2dea){_0x36b8ab['push'](_0x36b8ab['shift']());}}}(_0x2d1d,0x84901));import{global as _0x189398,DomEmitterMixin as _0x203358}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x504b08){const _0x4222ed=_0x5793,_0x27fd02=z(_0x504b08);return _0x8fa6eb=>!(!_0x8fa6eb||!_0x8fa6eb['is'](_0x4222ed(0x93),_0x4222ed(0xc7))&&!_0x8fa6eb['is'](_0x4222ed(0x93),_0x4222ed(0xa2)))&&(!!_0x8fa6eb[_0x4222ed(0x9f)](_0x4222ed(0xa8))||!!_0x8fa6eb[_0x4222ed(0x9f)](_0x4222ed(0xbb))&&_0x27fd02(_0x8fa6eb[_0x4222ed(0xad)](_0x4222ed(0xbb))));}export function getImageUrls(_0x1653d4,_0x51b38d){const _0x4864ce=_0x5793,_0x50f28=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x4864ce(0xb0)](_0x39db08=>_0x39db08<=_0x51b38d)[_0x4864ce(0xa7)](_0x5eafcf=>_0x1653d4[_0x4864ce(0xbc)](/\/$/,'')+_0x4864ce(0xab)+_0x5eafcf+_0x4864ce(0xbf)+_0x5eafcf+'w');return{'imageFallbackUrl':_0x1653d4,'imageSources':[{'srcset':_0x50f28[_0x4864ce(0xc5)](',\x20'),'sizes':_0x4864ce(0x92)+_0x51b38d+_0x4864ce(0xb7)+_0x51b38d+'px','type':_0x4864ce(0x9b)}]};}function _0x5793(_0x4565a5,_0x21f764){const _0x2d1d5b=_0x2d1d();return _0x5793=function(_0x5793bb,_0x36600d){_0x5793bb=_0x5793bb-0x92;let _0x2d60e0=_0x2d1d5b[_0x5793bb];return _0x2d60e0;},_0x5793(_0x4565a5,_0x21f764);}export function getImageDimension(_0x44de51,_0x10ac63,_0x37cbc6){const _0x4747b1=_0x5793,_0x641df1=_0x44de51[_0x4747b1(0xc2)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x641df1?parseInt(_0x641df1[0x1],0xa):_0x10ac63,'height':_0x641df1?parseInt(_0x641df1[0x2],0xa):_0x37cbc6};}function _0x2d1d(){const _0x117ac9=['stopListening','isArray','filter','findViewImgElement','view','96KCmvnD','image-processing','location','change','px)\x20100vw,\x20','width','5qoGHoL','domConverter','src','replace','load','308244jerOvR','x/\x20','4166307fMagnJ','removeStyle','match','mapper','editing','join','setStyle','imageBlock','some','removeClass','function','(max-width:\x20','element','6210588RbaTJm','addClass','document','baseURI','3891232KGdXVs','viewToDom','9059hxuxKi','image/webp','height','get','toViewElement','hasAttribute','ImageUtils','1569281qwKTwT','imageInline','origin','window','aspect-ratio','16613810BlwyCI','map','uploadcareImageId','listenTo','plugins','/-/resize/','32snaBQu','getAttribute'];_0x2d1d=function(){return _0x117ac9;};return _0x2d1d();}export function showImageProcessingIndicator(_0x39f00f,_0x48ff72){const _0xb81191=_0x5793,_0x41cffb=new(_0x203358())(),_0x3eb72d=_0x39f00f[_0xb81191(0xaa)][_0xb81191(0x9d)](_0xb81191(0xa0)),_0x461f39=_0x39f00f[_0xb81191(0xc4)][_0xb81191(0xc3)][_0xb81191(0x9e)](_0x48ff72),_0x29e4ab=_0x3eb72d[_0xb81191(0xb1)](_0x461f39),_0x2f8741=_0x39f00f[_0xb81191(0xc4)][_0xb81191(0xb2)][_0xb81191(0xba)][_0xb81191(0x99)](_0x29e4ab),_0x1129cc=_0x48ff72[_0xb81191(0xad)](_0xb81191(0xb8)),_0x4ee91e=_0x48ff72[_0xb81191(0xad)](_0xb81191(0x9c)),_0x5ee293=_0xb81191(0xb4);_0x39f00f[_0xb81191(0xc4)][_0xb81191(0xb2)][_0xb81191(0xb6)](_0x6615e3=>{const _0x55cd7d=_0xb81191;_0x6615e3[_0x55cd7d(0x95)](_0x5ee293,_0x461f39),_0x6615e3[_0x55cd7d(0xc6)](_0x55cd7d(0xa5),_0x1129cc+'/'+_0x4ee91e,_0x29e4ab);}),_0x41cffb[_0xb81191(0xa9)](_0x2f8741,_0xb81191(0xbd),()=>{const _0x4dc059=_0xb81191;_0x41cffb[_0x4dc059(0xae)](_0x2f8741,_0x4dc059(0xbd)),_0x39f00f[_0x4dc059(0xc4)][_0x4dc059(0xb2)][_0x4dc059(0xb6)](_0x33b7cf=>{const _0xe90a8f=_0x4dc059;_0x33b7cf[_0xe90a8f(0xc9)](_0x5ee293,_0x461f39),_0x33b7cf[_0xe90a8f(0xc1)](_0xe90a8f(0xa5),_0x29e4ab);});});}function z(_0x1ea72e){const _0x270455=_0x5793;if(Array[_0x270455(0xaf)](_0x1ea72e)){const _0x331147=_0x1ea72e[_0x270455(0xa7)](z);return _0x2adf2a=>_0x331147[_0x270455(0xc8)](_0x14c8d6=>_0x14c8d6(_0x2adf2a));}if(_0x270455(0xa3)==_0x1ea72e){const _0x272b84=_0x189398[_0x270455(0xa4)][_0x270455(0xb5)][_0x270455(0xa3)];return _0x108d7e=>new URL(_0x108d7e,_0x189398[_0x270455(0x96)][_0x270455(0x97)])[_0x270455(0xa3)]==_0x272b84;}return _0x270455(0xca)==typeof _0x1ea72e?_0x1ea72e:_0x1ea72e instanceof RegExp?_0x681dcb=>!(!_0x681dcb[_0x270455(0xc2)](_0x1ea72e)&&!_0x681dcb[_0x270455(0xbc)](/^https?:\/\//,'')[_0x270455(0xc2)](_0x1ea72e)):()=>!0x1;}
23
+ (function(_0x137d33,_0x29c40d){const _0x4a2b36=_0x17ed,_0x5c4668=_0x137d33();while(!![]){try{const _0x1ea3c2=-parseInt(_0x4a2b36(0xa3))/0x1*(parseInt(_0x4a2b36(0xb0))/0x2)+parseInt(_0x4a2b36(0xb1))/0x3+-parseInt(_0x4a2b36(0xb8))/0x4*(-parseInt(_0x4a2b36(0xc4))/0x5)+parseInt(_0x4a2b36(0xce))/0x6+parseInt(_0x4a2b36(0xbc))/0x7+-parseInt(_0x4a2b36(0xc7))/0x8*(-parseInt(_0x4a2b36(0xbd))/0x9)+parseInt(_0x4a2b36(0xa6))/0xa*(-parseInt(_0x4a2b36(0x9a))/0xb);if(_0x1ea3c2===_0x29c40d)break;else _0x5c4668['push'](_0x5c4668['shift']());}catch(_0x569952){_0x5c4668['push'](_0x5c4668['shift']());}}}(_0x162a,0xe0885));function _0x17ed(_0x39dbde,_0x1a0bd8){const _0x162a5a=_0x162a();return _0x17ed=function(_0x17edcd,_0x211872){_0x17edcd=_0x17edcd-0x96;let _0x24151c=_0x162a5a[_0x17edcd];return _0x24151c;},_0x17ed(_0x39dbde,_0x1a0bd8);}import{global as _0x33f079,DomEmitterMixin as _0x3d0d99}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x918686){const _0x34c405=_0x17ed,_0x4c56b2=R(_0x918686);return _0x4d999c=>!(!_0x4d999c||!_0x4d999c['is'](_0x34c405(0xa8),_0x34c405(0x99))&&!_0x4d999c['is'](_0x34c405(0xa8),_0x34c405(0x9e)))&&(!!_0x4d999c[_0x34c405(0x96)](_0x34c405(0xaf))||!!_0x4d999c[_0x34c405(0x96)](_0x34c405(0xcb))&&_0x4c56b2(_0x4d999c[_0x34c405(0xc0)](_0x34c405(0xcb))));}export function getImageUrls(_0x4148fd,_0x304a59){const _0x582e76=_0x17ed,_0xf08062=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x582e76(0x97)](_0x26344b=>_0x26344b<=_0x304a59)[_0x582e76(0xbe)](_0x5b7d67=>_0x4148fd[_0x582e76(0xac)](/\/$/,'')+_0x582e76(0xa9)+_0x5b7d67+_0x582e76(0xae)+_0x5b7d67+'w');return{'imageFallbackUrl':_0x4148fd,'imageSources':[{'srcset':_0xf08062[_0x582e76(0xc2)](',\x20'),'sizes':_0x582e76(0x9c)+_0x304a59+_0x582e76(0xba)+_0x304a59+'px','type':_0x582e76(0xca)}]};}function _0x162a(){const _0x2945d9=['ImageUtils','match','toViewElement','88kyXsHm','location','px)\x20100vw,\x20','isArray','3724819Sscthb','5436JJHazg','map','some','getAttribute','findViewImgElement','join','viewToDom','36095pCTlZA','mapper','width','22424KXJYMB','domConverter','plugins','image/webp','src','addClass','get','7078884VQbEpM','listenTo','hasAttribute','filter','load','imageBlock','43496574OnOMsA','origin','(max-width:\x20','image-processing','imageInline','function','removeStyle','view','aspect-ratio','37045mLItZF','window','change','10kQAYdN','setStyle','element','/-/resize/','stopListening','baseURI','replace','document','x/\x20','uploadcareImageId','28GswrrE','5486364xfqIdp','removeClass','editing','height'];_0x162a=function(){return _0x2945d9;};return _0x162a();}export function getImageDimension(_0x1916e0,_0x1be5eb,_0x4a13c2){const _0x2dccaa=_0x17ed,_0x31fa6a=_0x1916e0[_0x2dccaa(0xb6)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x31fa6a?parseInt(_0x31fa6a[0x1],0xa):_0x1be5eb,'height':_0x31fa6a?parseInt(_0x31fa6a[0x2],0xa):_0x4a13c2};}export function showImageProcessingIndicator(_0x13ee13,_0x2efd54){const _0xf5f5de=_0x17ed,_0x548e6b=new(_0x3d0d99())(),_0x302205=_0x13ee13[_0xf5f5de(0xc9)][_0xf5f5de(0xcd)](_0xf5f5de(0xb5)),_0x4bf883=_0x13ee13[_0xf5f5de(0xb3)][_0xf5f5de(0xc5)][_0xf5f5de(0xb7)](_0x2efd54),_0x241e51=_0x302205[_0xf5f5de(0xc1)](_0x4bf883),_0x426060=_0x13ee13[_0xf5f5de(0xb3)][_0xf5f5de(0xa1)][_0xf5f5de(0xc8)][_0xf5f5de(0xc3)](_0x241e51),_0x5f5469=_0x2efd54[_0xf5f5de(0xc0)](_0xf5f5de(0xc6)),_0x65dfbc=_0x2efd54[_0xf5f5de(0xc0)](_0xf5f5de(0xb4)),_0x457f7d=_0xf5f5de(0x9d);_0x13ee13[_0xf5f5de(0xb3)][_0xf5f5de(0xa1)][_0xf5f5de(0xa5)](_0x2501cd=>{const _0x529c11=_0xf5f5de;_0x2501cd[_0x529c11(0xcc)](_0x457f7d,_0x4bf883),_0x2501cd[_0x529c11(0xa7)](_0x529c11(0xa2),_0x5f5469+'/'+_0x65dfbc,_0x241e51);}),_0x548e6b[_0xf5f5de(0xcf)](_0x426060,_0xf5f5de(0x98),()=>{const _0x5b8071=_0xf5f5de;_0x548e6b[_0x5b8071(0xaa)](_0x426060,_0x5b8071(0x98)),_0x13ee13[_0x5b8071(0xb3)][_0x5b8071(0xa1)][_0x5b8071(0xa5)](_0xb0e942=>{const _0x44310c=_0x5b8071;_0xb0e942[_0x44310c(0xb2)](_0x457f7d,_0x4bf883),_0xb0e942[_0x44310c(0xa0)](_0x44310c(0xa2),_0x241e51);});});}function R(_0x3b16f9){const _0x230b15=_0x17ed;if(Array[_0x230b15(0xbb)](_0x3b16f9)){const _0x1bd68e=_0x3b16f9[_0x230b15(0xbe)](R);return _0x212791=>_0x1bd68e[_0x230b15(0xbf)](_0x524ce1=>_0x524ce1(_0x212791));}if(_0x230b15(0x9b)==_0x3b16f9){const _0x260823=_0x33f079[_0x230b15(0xa4)][_0x230b15(0xb9)][_0x230b15(0x9b)];return _0x53ee80=>new URL(_0x53ee80,_0x33f079[_0x230b15(0xad)][_0x230b15(0xab)])[_0x230b15(0x9b)]==_0x260823;}return _0x230b15(0x9f)==typeof _0x3b16f9?_0x3b16f9:_0x3b16f9 instanceof RegExp?_0x4b109b=>!(!_0x4b109b[_0x230b15(0xb6)](_0x3b16f9)&&!_0x4b109b[_0x230b15(0xac)](/^https?:\/\//,'')[_0x230b15(0xb6)](_0x3b16f9)):()=>!0x1;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2573(){var _0x3b533e=['includes','167836rJJcfY','2887423teDWGv','485650JpizmB','844744nbtVOd','target','271604opbLhu','3ACMrzL','18HpXqwV','1395870NSuQmP','21pFVuDj','1311552KrKZbs','21Idnbit'];_0x2573=function(){return _0x3b533e;};return _0x2573();}(function(_0xbabbbd,_0x4a1fd8){var _0x5f2f64=_0x1805,_0x13587a=_0xbabbbd();while(!![]){try{var _0xfc75fe=parseInt(_0x5f2f64(0x8b))/0x1*(-parseInt(_0x5f2f64(0x92))/0x2)+parseInt(_0x5f2f64(0x8e))/0x3*(parseInt(_0x5f2f64(0x8a))/0x4)+-parseInt(_0x5f2f64(0x87))/0x5+-parseInt(_0x5f2f64(0x8f))/0x6+-parseInt(_0x5f2f64(0x90))/0x7*(-parseInt(_0x5f2f64(0x88))/0x8)+parseInt(_0x5f2f64(0x8c))/0x9*(parseInt(_0x5f2f64(0x8d))/0xa)+-parseInt(_0x5f2f64(0x93))/0xb;if(_0xfc75fe===_0x4a1fd8)break;else _0x13587a['push'](_0x13587a['shift']());}catch(_0x2ce38e){_0x13587a['push'](_0x13587a['shift']());}}}(_0x2573,0x3ae8b));function _0x1805(_0x5db836,_0x501c3d){var _0x257363=_0x2573();return _0x1805=function(_0x180555,_0x2e3365){_0x180555=_0x180555-0x87;var _0x109ebd=_0x257363[_0x180555];return _0x109ebd;},_0x1805(_0x5db836,_0x501c3d);}import{getAncestors as _0x2b17e7}from'ckeditor5/src/utils.js';export function isAncestor(_0x14f999,_0x903319){var _0x581be0=_0x1805;return _0x2b17e7(_0x14f999[_0x581be0(0x89)])[_0x581be0(0x91)](_0x903319);}
23
+ (function(_0x375b0e,_0x3bd519){var _0x48657c=_0x315d,_0x5c2a7d=_0x375b0e();while(!![]){try{var _0x9a92fa=parseInt(_0x48657c(0x1d4))/0x1*(-parseInt(_0x48657c(0x1d5))/0x2)+parseInt(_0x48657c(0x1cf))/0x3+-parseInt(_0x48657c(0x1d6))/0x4+parseInt(_0x48657c(0x1cc))/0x5+-parseInt(_0x48657c(0x1d1))/0x6*(parseInt(_0x48657c(0x1ce))/0x7)+parseInt(_0x48657c(0x1d2))/0x8+parseInt(_0x48657c(0x1cb))/0x9*(-parseInt(_0x48657c(0x1d3))/0xa);if(_0x9a92fa===_0x3bd519)break;else _0x5c2a7d['push'](_0x5c2a7d['shift']());}catch(_0x443992){_0x5c2a7d['push'](_0x5c2a7d['shift']());}}}(_0x55ed,0x38c26));function _0x315d(_0x40e957,_0x28cb3b){var _0x55ed94=_0x55ed();return _0x315d=function(_0x315d96,_0x4e471e){_0x315d96=_0x315d96-0x1cb;var _0x4ee78c=_0x55ed94[_0x315d96];return _0x4ee78c;},_0x315d(_0x40e957,_0x28cb3b);}import{getAncestors as _0x19c658}from'ckeditor5/src/utils.js';export function isAncestor(_0x6c3d01,_0x5119b6){var _0x16fbb7=_0x315d;return _0x19c658(_0x6c3d01[_0x16fbb7(0x1d0)])[_0x16fbb7(0x1cd)](_0x5119b6);}function _0x55ed(){var _0x2dc224=['8206LchkrC','501596pEMeXH','9153XGssAq','1437355VxlqgU','includes','546eSgXmW','719877UwPaic','target','11436UFwzqQ','2716752hzNtNk','1850GQaKqc','42RDnFKP'];_0x55ed=function(){return _0x2dc224;};return _0x55ed();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4a14(_0x4e10e5,_0x1a3b85){var _0x5d8722=_0x5d87();return _0x4a14=function(_0x4a14de,_0xcd94f3){_0x4a14de=_0x4a14de-0x86;var _0x2cce35=_0x5d8722[_0x4a14de];return _0x2cce35;},_0x4a14(_0x4e10e5,_0x1a3b85);}function _0x5d87(){var _0x345df9=['310884ioqGco','50Ufxomy','upload','135448OudMKC','getInfo','334488wUSAhu','53377EvURWe','35oFVbRk','1510536utsCtm','3151971xSxvCy','10xdfgSH','143742YUjgqg'];_0x5d87=function(){return _0x345df9;};return _0x5d87();}var _0x4cd6fd=_0x4a14;(function(_0x117b9e,_0x52352b){var _0x483085=_0x4a14,_0x45760f=_0x117b9e();while(!![]){try{var _0x163b9b=-parseInt(_0x483085(0x91))/0x1+-parseInt(_0x483085(0x8b))/0x2+parseInt(_0x483085(0x90))/0x3+-parseInt(_0x483085(0x8e))/0x4*(parseInt(_0x483085(0x8c))/0x5)+-parseInt(_0x483085(0x8a))/0x6*(-parseInt(_0x483085(0x86))/0x7)+parseInt(_0x483085(0x87))/0x8+-parseInt(_0x483085(0x88))/0x9*(-parseInt(_0x483085(0x89))/0xa);if(_0x163b9b===_0x52352b)break;else _0x45760f['push'](_0x45760f['shift']());}catch(_0x2a04b2){_0x45760f['push'](_0x45760f['shift']());}}}(_0x5d87,0x3669e));import{uploadFile as _0x5633b4,info as _0x348aa9}from'@uploadcare/upload-client';export class UploadUtils{static[_0x4cd6fd(0x8d)]({file:_0x38c4a8,..._0x9cd479}){return _0x5633b4(_0x38c4a8,_0x9cd479);}static[_0x4cd6fd(0x8f)](_0xecf20c,_0xcc5abb){return _0x348aa9(_0xecf20c,_0xcc5abb);}}
23
+ var _0x3a00fe=_0x5783;(function(_0x4218b5,_0x346ad0){var _0x2e7283=_0x5783,_0x32aa65=_0x4218b5();while(!![]){try{var _0x33753d=-parseInt(_0x2e7283(0x1dc))/0x1*(parseInt(_0x2e7283(0x1e0))/0x2)+parseInt(_0x2e7283(0x1dd))/0x3+parseInt(_0x2e7283(0x1e3))/0x4*(parseInt(_0x2e7283(0x1d9))/0x5)+-parseInt(_0x2e7283(0x1db))/0x6*(-parseInt(_0x2e7283(0x1e4))/0x7)+parseInt(_0x2e7283(0x1d8))/0x8+-parseInt(_0x2e7283(0x1e2))/0x9*(-parseInt(_0x2e7283(0x1e1))/0xa)+-parseInt(_0x2e7283(0x1df))/0xb*(parseInt(_0x2e7283(0x1da))/0xc);if(_0x33753d===_0x346ad0)break;else _0x32aa65['push'](_0x32aa65['shift']());}catch(_0x5b1c11){_0x32aa65['push'](_0x32aa65['shift']());}}}(_0x47bf,0xce6db));import{uploadFile as _0x4e9e1d,info as _0x309c71}from'@uploadcare/upload-client';function _0x5783(_0x5e2a00,_0x5c1860){var _0x47bf9e=_0x47bf();return _0x5783=function(_0x578364,_0x247f6b){_0x578364=_0x578364-0x1d8;var _0x4d6960=_0x47bf9e[_0x578364];return _0x4d6960;},_0x5783(_0x5e2a00,_0x5c1860);}function _0x47bf(){var _0x3ecbe8=['366028IHLGfo','26660WMKDPl','3141kCxbwp','14816rGUeZx','9237550wggXwC','upload','884624pdDJdw','845YqUXLC','228uVydXN','6gjmSwS','7cuoOEj','764790sdlMBv','getInfo','645491YvlClF'];_0x47bf=function(){return _0x3ecbe8;};return _0x47bf();}export class UploadUtils{static[_0x3a00fe(0x1e5)]({file:_0x2f291c,..._0x441944}){return _0x4e9e1d(_0x2f291c,_0x441944);}static[_0x3a00fe(0x1de)](_0x1f6cff,_0x43b016){return _0x309c71(_0x1f6cff,_0x43b016);}}