@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250315.0 → 0.0.0-nightly-20250317.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 _0x1fd1f9,ObservableMixin as _0x1263ce}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1b944b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1b8a49}from'ckeditor5/src/icons.js';import _0x2bc840 from'./uploadcareimageeditformview.js';import _0x262a91 from'../../utils/uploadutils.js';import{getImageUrls as _0x26cc24,getImageDimension as _0x3b40c5}from'../../utils/editingutils.js';import{isAncestor as _0x552e12}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
24
- _0x1263ce(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4004b8,_0x50a44a,_0x26a3bf){super(),this['_editor']=_0x4004b8,this['_dialog']=_0x50a44a,this['_imageElement']=_0x26a3bf,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 _0x4b161a=this['_imageElement'],_0x68afa0=_0x4b161a['getAttribute']('uploadcareImageId'),_0x30e96a=_0x4b161a['getAttribute']('src');if(_0x68afa0)await this['_loadImageInfo'](_0x68afa0,_0x30e96a);else{if(this['_imageCache']['has'](_0x30e96a)){const _0x295d70=this['_imageCache']['get'](_0x30e96a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x295d70['url'],this['imageDimension']=_0x295d70['dimension'],this['imageId']=_0x295d70['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x51d5fe}=this['_editor'],t=_0x51d5fe['t'],_0xdae768=new _0x2bc840(_0x51d5fe,this['imageStatus'],this['_attributes']);_0xdae768['bind']('status')['to'](this,'imageStatus'),_0xdae768['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xdae768['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xdae768['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xdae768,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1b8a49,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xdae768,'position':_0x1b944b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xdae768['focus']();},'onHide':()=>{_0xdae768['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3fed82=>!_0x552e12(_0x3fed82,_0xdae768['element'])}});}['_loadImageInfo'](_0x3c6cb3,_0x1ba872){return _0x262a91['getInfo'](_0x3c6cb3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x41a459=>{const {width:_0x17567d,height:_0x559a94}=_0x41a459['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1ba872,this['imageDimension']={'width':_0x17567d,'height':_0x559a94},this['imageId']=_0x3c6cb3;})['catch'](_0x399fcd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x399fcd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5e19ff,_0x3654f1){return this['_getImageAsFile'](_0x5e19ff)['then'](_0x9e4653=>_0x262a91['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3654f1['signal'],'file':_0x9e4653,'onProgress':_0x30d1ee=>{_0x30d1ee&&_0x30d1ee['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x30d1ee['value']));}}))['then'](_0x46a58a=>{const {width:_0x97546d,height:_0x4bdd79}=_0x46a58a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x46a58a['cdnUrl'],this['imageDimension']={'width':_0x97546d,'height':_0x4bdd79},this['imageId']=_0x46a58a['uuid'],this['imageUploadProgress']=null;const _0x47e893=_0x5e19ff['getAttribute']('src');this['_imageCache']['set'](_0x47e893,{'id':_0x46a58a['uuid'],'url':_0x46a58a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x33a0b6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x33a0b6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1c8f79,_0x2458cc){_0x1c8f79['on']('apply',(_0x1a8d9f,_0x57c605)=>{this['_replaceImage'](_0x2458cc,_0x57c605['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1c8f79['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1c8f79['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5073c6,_0x5b55d4,_0x5ed416){const _0x3ff4ed=this['_editor'],{width:_0x495c32,height:_0x1539a8}=_0x3b40c5(_0x5b55d4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x19d4b1,imageSources:_0xdd4917}=_0x26cc24(_0x5b55d4,_0x495c32);_0x3ff4ed['model']['change'](_0x49bf56=>{if('$graveyard'===_0x5073c6['root']['rootName']){_0x3ff4ed['execute']('insertImage',{'imageType':_0x5073c6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5073c6['getAttributes']()),'uploadcareImageId':_0x5ed416,'src':_0x19d4b1,'sources':_0xdd4917,'width':_0x495c32,'height':_0x1539a8}});const _0x5a9ebc=_0x5073c6['getChildren']();_0x5073c6=_0x3ff4ed['model']['document']['selection']['getSelectedElement']();for(const _0x2eaf65 of _0x5a9ebc)_0x49bf56['append'](_0x49bf56['cloneElement'](_0x2eaf65),_0x5073c6);}else _0x49bf56['setSelection'](_0x5073c6,'on'),_0x3ff4ed['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5073c6['getAttributes']()),'uploadcareImageId':_0x5ed416,'src':_0x19d4b1,'sources':_0xdd4917,'width':_0x495c32,'height':_0x1539a8},_0x5073c6);_0x49bf56['setSelection'](_0x5073c6,'on');});}async['_getImageAsFile'](_0x1cca2c){const _0x5214dc=_0x1fd1f9['window'],_0x5bb3b1=_0x1fd1f9['document']['location']['href'],_0x4b0763=new _0x5214dc['URL'](_0x1cca2c['getAttribute']('src'),_0x5bb3b1);if('data:'===_0x4b0763['protocol']){const _0xa2a815=_0x4b0763['href']['split'](','),_0x5c7ce0=_0xa2a815[0x0]['match'](/:(.*?);/)[0x1],_0x122d04=_0x5c7ce0['split']('/')[0x1],_0x4986ef=_0x5214dc['atob'](_0xa2a815[_0xa2a815['length']-0x1]);let _0x4d7909=_0x4986ef['length'];const _0xe4f049=new _0x5214dc['Uint8Array'](_0x4d7909);for(;_0x4d7909--;)_0xe4f049[_0x4d7909]=_0x4986ef['charCodeAt'](_0x4d7909);return new _0x5214dc['File']([_0xe4f049],'image.'+_0x122d04,{'type':_0x5c7ce0});}const _0x31d497=_0x4b0763['href']['split']('/'),_0x548c06=_0x31d497[_0x31d497['length']-0x1],_0x1f3245=_0x548c06['split']('.')[0x1];return _0x5214dc['fetch'](_0x4b0763['href'])['then'](_0x231dd6=>_0x231dd6['clone']()['blob']())['then'](_0x5f4af3=>new _0x5214dc['File']([_0x5f4af3],_0x548c06,{'type':'image/'+_0x1f3245}));}}
23
+ import{global as _0x4064d2,ObservableMixin as _0x4ab7b7}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x37f546}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4e401f}from'ckeditor5/src/icons.js';import _0x286ba0 from'./uploadcareimageeditformview.js';import _0x31485c from'../../utils/uploadutils.js';import{getImageUrls as _0x476ffa,getImageDimension as _0x2e3341}from'../../utils/editingutils.js';import{isAncestor as _0x10998a}from'../../utils/isancestor.js';export default class A extends/* #__PURE__ -- @preserve */
24
+ _0x4ab7b7(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2752b7,_0x475cb5,_0x1b5aa2){super(),this['_editor']=_0x2752b7,this['_dialog']=_0x475cb5,this['_imageElement']=_0x1b5aa2,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 _0x1204f9=this['_imageElement'],_0x148814=_0x1204f9['getAttribute']('uploadcareImageId'),_0x47b723=_0x1204f9['getAttribute']('src');if(_0x148814)await this['_loadImageInfo'](_0x148814,_0x47b723);else{if(this['_imageCache']['has'](_0x47b723)){const _0x26dc69=this['_imageCache']['get'](_0x47b723);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x26dc69['url'],this['imageDimension']=_0x26dc69['dimension'],this['imageId']=_0x26dc69['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x585d00}=this['_editor'],t=_0x585d00['t'],_0x4472ba=new _0x286ba0(_0x585d00,this['imageStatus'],this['_attributes']);_0x4472ba['bind']('status')['to'](this,'imageStatus'),_0x4472ba['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4472ba['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4472ba['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4472ba,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4e401f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4472ba,'position':_0x37f546['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4472ba['focus']();},'onHide':()=>{_0x4472ba['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2a8e22=>!_0x10998a(_0x2a8e22,_0x4472ba['element'])}});}['_loadImageInfo'](_0x5428d3,_0x591ac1){return _0x31485c['getInfo'](_0x5428d3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xd0677a=>{const {width:_0x4790d3,height:_0x2b0d7d}=_0xd0677a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x591ac1,this['imageDimension']={'width':_0x4790d3,'height':_0x2b0d7d},this['imageId']=_0x5428d3;})['catch'](_0xaaab91=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xaaab91['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d2a46,_0x20e361){return this['_getImageAsFile'](_0x1d2a46)['then'](_0x16d0d0=>_0x31485c['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x20e361['signal'],'file':_0x16d0d0,'onProgress':_0xec1218=>{_0xec1218&&_0xec1218['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xec1218['value']));}}))['then'](_0x4bf8b5=>{const {width:_0xc47e26,height:_0x413b1e}=_0x4bf8b5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4bf8b5['cdnUrl'],this['imageDimension']={'width':_0xc47e26,'height':_0x413b1e},this['imageId']=_0x4bf8b5['uuid'],this['imageUploadProgress']=null;const _0x3d88ef=_0x1d2a46['getAttribute']('src');this['_imageCache']['set'](_0x3d88ef,{'id':_0x4bf8b5['uuid'],'url':_0x4bf8b5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3ad760=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3ad760['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1db47f,_0x2ef606){_0x1db47f['on']('apply',(_0x1bac18,_0x7007c9)=>{this['_replaceImage'](_0x2ef606,_0x7007c9['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1db47f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1db47f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1ea1b3,_0x46de96,_0x44afc1){const _0x3906cd=this['_editor'],{width:_0x3604e6,height:_0x237e38}=_0x2e3341(_0x46de96,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4bfa4b,imageSources:_0x24d2d7}=_0x476ffa(_0x46de96,_0x3604e6);_0x3906cd['model']['change'](_0x533283=>{if('$graveyard'===_0x1ea1b3['root']['rootName']){_0x3906cd['execute']('insertImage',{'imageType':_0x1ea1b3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1ea1b3['getAttributes']()),'uploadcareImageId':_0x44afc1,'src':_0x4bfa4b,'sources':_0x24d2d7,'width':_0x3604e6,'height':_0x237e38}});const _0x2036f3=_0x1ea1b3['getChildren']();_0x1ea1b3=_0x3906cd['model']['document']['selection']['getSelectedElement']();for(const _0x163a01 of _0x2036f3)_0x533283['append'](_0x533283['cloneElement'](_0x163a01),_0x1ea1b3);}else _0x533283['setSelection'](_0x1ea1b3,'on'),_0x3906cd['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1ea1b3['getAttributes']()),'uploadcareImageId':_0x44afc1,'src':_0x4bfa4b,'sources':_0x24d2d7,'width':_0x3604e6,'height':_0x237e38},_0x1ea1b3);_0x533283['setSelection'](_0x1ea1b3,'on');});}async['_getImageAsFile'](_0x5d3d8e){const _0x3975bc=_0x4064d2['window'],_0x245a37=_0x4064d2['document']['location']['href'],_0x26b99=new _0x3975bc['URL'](_0x5d3d8e['getAttribute']('src'),_0x245a37);if('data:'===_0x26b99['protocol']){const _0x4fd67e=_0x26b99['href']['split'](','),_0xd39c15=_0x4fd67e[0x0]['match'](/:(.*?);/)[0x1],_0x112f71=_0xd39c15['split']('/')[0x1],_0x2b9c6a=_0x3975bc['atob'](_0x4fd67e[_0x4fd67e['length']-0x1]);let _0x3886fb=_0x2b9c6a['length'];const _0x43e6cb=new _0x3975bc['Uint8Array'](_0x3886fb);for(;_0x3886fb--;)_0x43e6cb[_0x3886fb]=_0x2b9c6a['charCodeAt'](_0x3886fb);return new _0x3975bc['File']([_0x43e6cb],'image.'+_0x112f71,{'type':_0xd39c15});}const _0x1d9b8e=_0x26b99['href']['split']('/'),_0x1ff3c0=_0x1d9b8e[_0x1d9b8e['length']-0x1],_0x5f2bef=_0x1ff3c0['split']('.')[0x1];return _0x3975bc['fetch'](_0x26b99['href'])['then'](_0x52dc55=>_0x52dc55['clone']()['blob']())['then'](_0x1ebf46=>new _0x3975bc['File']([_0x1ebf46],_0x1ff3c0,{'type':'image/'+_0x5f2bef}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2071(){const _0x4adbef=['uc-light','uc-cloud-image-editor','1037610eNAPda','357912LVYeZh','bindTemplate','8578320LYWLlc','175ppKZai','11860NHQVjl','42FnMMpY','imageSrc','797106zFuqJL','ck-uploadcare-theme','117RkhwaF','399259mkRbYF','image-edit','set','setTemplate','122656NGVoBJ'];_0x2071=function(){return _0x4adbef;};return _0x2071();}(function(_0x22c531,_0xd0abfa){const _0x59cd45=_0x90a3,_0x5dba8f=_0x22c531();while(!![]){try{const _0x35a9aa=parseInt(_0x59cd45(0x96))/0x1+-parseInt(_0x59cd45(0xa7))/0x2+parseInt(_0x59cd45(0x9d))/0x3+parseInt(_0x59cd45(0x9a))/0x4*(-parseInt(_0x59cd45(0x99))/0x5)+parseInt(_0x59cd45(0x9b))/0x6*(-parseInt(_0x59cd45(0xa0))/0x7)+-parseInt(_0x59cd45(0xa4))/0x8*(parseInt(_0x59cd45(0x9f))/0x9)+parseInt(_0x59cd45(0x98))/0xa;if(_0x35a9aa===_0xd0abfa)break;else _0x5dba8f['push'](_0x5dba8f['shift']());}catch(_0x3427b3){_0x5dba8f['push'](_0x5dba8f['shift']());}}}(_0x2071,0x3f8c3));function _0x90a3(_0x413789,_0x252f01){const _0x207179=_0x2071();return _0x90a3=function(_0x90a3ef,_0x903e63){_0x90a3ef=_0x90a3ef-0x96;let _0x26acd9=_0x207179[_0x90a3ef];return _0x26acd9;},_0x90a3(_0x413789,_0x252f01);}import{View as _0x108d97}from'ckeditor5/src/ui.js';export default class tt extends _0x108d97{constructor(_0x590d49,_0x39298b){const _0x4284e2=_0x90a3;super(_0x590d49);const _0x43c975=this[_0x4284e2(0x97)];this[_0x4284e2(0xa2)](_0x4284e2(0x9c),''),this[_0x4284e2(0xa3)]({'tag':_0x4284e2(0xa6),'attributes':{..._0x39298b,'class':[_0x4284e2(0xa5),_0x4284e2(0x9e)],'ctx-name':_0x4284e2(0xa1),'cdn-url':_0x43c975['to'](_0x4284e2(0x9c))}});}}
23
+ function _0x1cc4(_0x306162,_0x5cfe72){const _0x2d4b82=_0x2d4b();return _0x1cc4=function(_0x1cc42f,_0x45f596){_0x1cc42f=_0x1cc42f-0x13d;let _0x2c6bad=_0x2d4b82[_0x1cc42f];return _0x2c6bad;},_0x1cc4(_0x306162,_0x5cfe72);}function _0x2d4b(){const _0x2cef67=['2385900FZPWhm','ck-uploadcare-theme','3REpzcx','212034PATpLI','4nlcOyY','59474xacrvH','uc-cloud-image-editor','40VIGXvi','setTemplate','1362361eneEft','imageSrc','bindTemplate','45WvjxNs','1520386IcnWyH','1815016ZUVQqG','511251IFKLgZ','set','uc-light','image-edit'];_0x2d4b=function(){return _0x2cef67;};return _0x2d4b();}(function(_0x49b6cc,_0x55bf4f){const _0x1443dc=_0x1cc4,_0x18ace5=_0x49b6cc();while(!![]){try{const _0x24ec8f=-parseInt(_0x1443dc(0x14d))/0x1*(-parseInt(_0x1443dc(0x13d))/0x2)+parseInt(_0x1443dc(0x147))/0x3*(parseInt(_0x1443dc(0x14f))/0x4)+-parseInt(_0x1443dc(0x144))/0x5*(parseInt(_0x1443dc(0x14e))/0x6)+parseInt(_0x1443dc(0x145))/0x7+-parseInt(_0x1443dc(0x146))/0x8+-parseInt(_0x1443dc(0x14b))/0x9+parseInt(_0x1443dc(0x13f))/0xa*(parseInt(_0x1443dc(0x141))/0xb);if(_0x24ec8f===_0x55bf4f)break;else _0x18ace5['push'](_0x18ace5['shift']());}catch(_0x153311){_0x18ace5['push'](_0x18ace5['shift']());}}}(_0x2d4b,0x2799a));import{View as _0x4fc048}from'ckeditor5/src/ui.js';export default class tt extends _0x4fc048{constructor(_0x8986c2,_0x291269){const _0x8ba840=_0x1cc4;super(_0x8986c2);const _0x3f50ec=this[_0x8ba840(0x143)];this[_0x8ba840(0x148)](_0x8ba840(0x142),''),this[_0x8ba840(0x140)]({'tag':_0x8ba840(0x13e),'attributes':{..._0x291269,'class':[_0x8ba840(0x149),_0x8ba840(0x14c)],'ctx-name':_0x8ba840(0x14a),'cdn-url':_0x3f50ec['to'](_0x8ba840(0x142))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x2cb788,IconView as at,View as _0x3155cc}from'ckeditor5/src/ui.js';export default class rt extends _0x3155cc{constructor(_0x414c7c){super(_0x414c7c);const t=_0x414c7c['t'];this['set']('errorType',null);const _0x23cf58=new _0x2cb788(_0x414c7c);_0x23cf58['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x23cf58['withText']=!0x0,_0x23cf58['class']='ck-button-action',_0x23cf58['on']('execute',()=>{this['fire']('retry');}),_0x23cf58['bind']('isVisible')['to'](this,'errorType',_0x1db733=>'NotFound'!==_0x1db733);const _0xb71887=new at();_0xb71887['content']=et,_0xb71887['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x37a41a=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':[_0xb71887,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x37a41a['to']('errorType',_0x50f140=>t('NotFound'!==_0x50f140?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x23cf58]},{'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 et}from'ckeditor5/src/icons.js';import{ButtonView as _0x1e05b8,IconView as at,View as _0xd3f3cd}from'ckeditor5/src/ui.js';export default class rt extends _0xd3f3cd{constructor(_0x193be5){super(_0x193be5);const t=_0x193be5['t'];this['set']('errorType',null);const _0x3ad6e0=new _0x1e05b8(_0x193be5);_0x3ad6e0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3ad6e0['withText']=!0x0,_0x3ad6e0['class']='ck-button-action',_0x3ad6e0['on']('execute',()=>{this['fire']('retry');}),_0x3ad6e0['bind']('isVisible')['to'](this,'errorType',_0x478a6b=>'NotFound'!==_0x478a6b);const _0x2bf06e=new at();_0x2bf06e['content']=et,_0x2bf06e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1ecf29=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':[_0x2bf06e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1ecf29['to']('errorType',_0x2329af=>t('NotFound'!==_0x2329af?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3ad6e0]},{'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 _0x4ccfcc,View as _0x25c49c}from'ckeditor5/src/ui.js';export default class ta extends _0x25c49c{constructor(_0x20ad2b){super(_0x20ad2b);const t=_0x20ad2b['t'],_0x2849b6=this['bindTemplate'],_0x316063=new _0x4ccfcc();_0x316063['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':[_0x316063,{'text':_0x2849b6['to']('imageUploadProgress',_0x532206=>t('Loading\x20image...')+'\x20('+(_0x532206||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 _0x2cef7a,View as _0x18c5f6}from'ckeditor5/src/ui.js';export default class ta extends _0x18c5f6{constructor(_0x52327d){super(_0x52327d);const t=_0x52327d['t'],_0x827007=this['bindTemplate'],_0x5f3dd5=new _0x2cef7a();_0x5f3dd5['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':[_0x5f3dd5,{'text':_0x827007['to']('imageUploadProgress',_0x41a5e6=>t('Loading\x20image...')+'\x20('+(_0x41a5e6||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 _0x3dd16f=_0x547a;(function(_0x3ae65c,_0x258551){const _0x5b1b57=_0x547a,_0x3a8ac7=_0x3ae65c();while(!![]){try{const _0x364f69=parseInt(_0x5b1b57(0x1ba))/0x1+-parseInt(_0x5b1b57(0x1e5))/0x2*(-parseInt(_0x5b1b57(0x1de))/0x3)+parseInt(_0x5b1b57(0x1be))/0x4+parseInt(_0x5b1b57(0x1ce))/0x5+parseInt(_0x5b1b57(0x1bd))/0x6+parseInt(_0x5b1b57(0x1ed))/0x7+-parseInt(_0x5b1b57(0x1db))/0x8*(parseInt(_0x5b1b57(0x1d5))/0x9);if(_0x364f69===_0x258551)break;else _0x3a8ac7['push'](_0x3a8ac7['shift']());}catch(_0x5a2a3f){_0x3a8ac7['push'](_0x3a8ac7['shift']());}}}(_0xfde9,0x22e9a));import{View as _0x15f950}from'ckeditor5/src/ui.js';import _0x1de01a from'./uploadcareimageeditformloadingview.js';import _0x1236c6 from'./uploadcareimageeditformerrorview.js';function _0x547a(_0x14b510,_0x40bcc5){const _0xfde91f=_0xfde9();return _0x547a=function(_0x547a4f,_0x1dbdef){_0x547a4f=_0x547a4f-0x1b9;let _0x53d7da=_0xfde91f[_0x547a4f];return _0x53d7da;},_0x547a(_0x14b510,_0x40bcc5);}import _0x18bf72 from'./uploadcareimageeditformeditingview.js';import _0x5629e5 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x5629e5{[_0x3dd16f(0x1d1)];[_0x3dd16f(0x1c1)];[_0x3dd16f(0x1bf)];[_0x3dd16f(0x1d9)];[_0x3dd16f(0x1eb)];constructor(_0x30187d,_0x1f1d5f,_0x577270){const _0x17345c=_0x3dd16f;super(_0x30187d),this[_0x17345c(0x1d1)]=this[_0x17345c(0x1d4)](),this[_0x17345c(0x1c1)]=new _0x1de01a(_0x30187d),this[_0x17345c(0x1bf)]=new _0x1236c6(_0x30187d),this[_0x17345c(0x1d9)]=new _0x18bf72(_0x30187d,_0x577270),this[_0x17345c(0x1eb)]=new _0x15f950(_0x30187d),this[_0x17345c(0x1eb)][_0x17345c(0x1ee)](this[_0x17345c(0x1c4)]()),this[_0x17345c(0x1e1)](_0x17345c(0x1c8),_0x1f1d5f),this[_0x17345c(0x1ee)]({'tag':_0x17345c(0x1e7),'attributes':{'class':['ck',_0x17345c(0x1cb),_0x17345c(0x1e2)],'tabindex':'-1'},'children':this[_0x17345c(0x1d1)]}),this[_0x17345c(0x1d2)](),this[_0x17345c(0x1c0)](_0x17345c(0x1df),()=>{const _0x3b25ad=_0x17345c;this[_0x3b25ad(0x1da)](this[_0x3b25ad(0x1c9)],_0x6736dd=>{const _0x4ff2c3=_0x3b25ad;this[_0x4ff2c3(0x1c5)](_0x6736dd);});}),this['on'](_0x17345c(0x1bb),()=>{const _0x3c907c=_0x17345c;this[_0x3c907c(0x1d2)]();}),this[_0x17345c(0x1d0)]();}[_0x3dd16f(0x1c3)](){const _0x19fce2=_0x3dd16f;this[_0x19fce2(0x1c9)][_0x19fce2(0x1c3)]();}[_0x3dd16f(0x1d2)](){const _0x232612=_0x3dd16f;switch(this[_0x232612(0x1d1)][_0x232612(0x1e0)](),this[_0x232612(0x1c8)]){case _0x232612(0x1d7):this[_0x232612(0x1d1)][_0x232612(0x1c7)](this[_0x232612(0x1c1)]);break;case _0x232612(0x1d3):this[_0x232612(0x1d1)][_0x232612(0x1c7)](this[_0x232612(0x1bf)]);break;case _0x232612(0x1e8):this[_0x232612(0x1d1)][_0x232612(0x1bc)]([this[_0x232612(0x1d9)],this[_0x232612(0x1eb)]]);}}[_0x3dd16f(0x1da)](_0x4ff66c,_0x1cc5c7){const _0x3415d2=_0x3dd16f,_0x3c7d6e=_0x3415d2(0x1d8),_0x51c786=_0x4ff66c[_0x3415d2(0x1e4)](_0x3c7d6e);if(_0x51c786)return _0x1cc5c7(_0x51c786);const _0x47837f=new MutationObserver(_0x553989=>{const _0x89ee90=_0x3415d2,_0x5afc50=_0x553989[_0x89ee90(0x1b9)](_0x2c6547=>_0x2c6547[_0x89ee90(0x1cf)]===_0x4ff66c&&_0x2c6547[_0x89ee90(0x1e6)][_0x89ee90(0x1dc)]>0x0&&_0x2c6547[_0x89ee90(0x1e6)][0x0][_0x89ee90(0x1ea)][_0x89ee90(0x1dd)]()===_0x3c7d6e);_0x5afc50[_0x89ee90(0x1dc)]&&(_0x47837f[_0x89ee90(0x1c2)](),_0x1cc5c7(_0x5afc50[0x0][_0x89ee90(0x1e6)][0x0]));});_0x47837f[_0x3415d2(0x1c6)](_0x4ff66c,{'childList':!0x0,'subtree':!0x0});}[_0x3dd16f(0x1c5)](_0xb9d823){const _0x3b76a0=_0x3dd16f;_0xb9d823[_0x3b76a0(0x1cc)](_0x3b76a0(0x1ec),_0x10a382=>{const _0x1ed30b=_0x3b76a0;this[_0x1ed30b(0x1cd)](_0x1ed30b(0x1ec),{'imageSrc':_0x10a382[_0x1ed30b(0x1ca)][_0x1ed30b(0x1e3)]});}),_0xb9d823[_0x3b76a0(0x1cc)](_0x3b76a0(0x1e9),()=>{const _0x2802ff=_0x3b76a0;this[_0x2802ff(0x1cd)](_0x2802ff(0x1e9));});}[_0x3dd16f(0x1d0)](){const _0x3c72d3=_0x3dd16f;this[_0x3c72d3(0x1bf)]['on'](_0x3c72d3(0x1d6),()=>{const _0x5da84c=_0x3c72d3;this[_0x5da84c(0x1cd)](_0x5da84c(0x1d6));});}}function _0xfde9(){const _0x1d2d81=['target','_addErrorViewListeners','_items','_setView','error','createCollection','1674ffaIEK','retry','uploading','uc-cloud-image-editor','_editingView','_waitForImageEditorComponent','26808qdpirh','length','toLowerCase','101262nfLJRx','render','clear','set','ck-uploadcare-form','cdnUrl','querySelector','4plDYJc','addedNodes','div','ready','cancel','nodeName','_focusableView','apply','564004dmHrBL','setTemplate','filter','139479ZROFDY','change:status','addMany','36492GTBQQB','994752GNKaDy','_errorView','once','_loadingView','disconnect','focus','getFocusableElement','_addUploadcareImageEditorListeners','observe','add','status','element','detail','ck-reset_all-excluded','addEventListener','fire','1119795jhrlHk'];_0xfde9=function(){return _0x1d2d81;};return _0xfde9();}
23
+ const _0x2d15d5=_0x3a17;(function(_0x3631d7,_0x18828e){const _0x1732c3=_0x3a17,_0x42b433=_0x3631d7();while(!![]){try{const _0x14c980=-parseInt(_0x1732c3(0x1b0))/0x1+parseInt(_0x1732c3(0x1af))/0x2+parseInt(_0x1732c3(0x185))/0x3*(-parseInt(_0x1732c3(0x1aa))/0x4)+parseInt(_0x1732c3(0x192))/0x5+parseInt(_0x1732c3(0x1a5))/0x6+-parseInt(_0x1732c3(0x188))/0x7*(-parseInt(_0x1732c3(0x1a0))/0x8)+-parseInt(_0x1732c3(0x19b))/0x9;if(_0x14c980===_0x18828e)break;else _0x42b433['push'](_0x42b433['shift']());}catch(_0x41f871){_0x42b433['push'](_0x42b433['shift']());}}}(_0x115a,0x9dc6d));function _0x115a(){const _0x320b41=['_focusableView','_setView','_loadingView','toLowerCase','6093156JZdJUo','uc-cloud-image-editor','addedNodes','change:status','retry','4DbXVmc','ck-reset_all-excluded','filter','_addUploadcareImageEditorListeners','length','1055336rapOAt','1231292uKqxyE','div','detail','disconnect','addMany','addEventListener','ready','apply','once','_editingView','_addErrorViewListeners','1836852TmsDob','fire','_items','4021374ZmTHeG','set','status','target','observe','querySelector','_errorView','clear','nodeName','getFocusableElement','3476315QTvdHL','add','uploading','cancel','createCollection','ck-uploadcare-form','render','error','cdnUrl','2907990XyOeRK','_waitForImageEditorComponent','setTemplate','element','focus','8xBoZQv'];_0x115a=function(){return _0x320b41;};return _0x115a();}import{View as _0x5f2502}from'ckeditor5/src/ui.js';import _0x49f391 from'./uploadcareimageeditformloadingview.js';import _0x59eb24 from'./uploadcareimageeditformerrorview.js';import _0x336b67 from'./uploadcareimageeditformeditingview.js';function _0x3a17(_0x206d56,_0x36dcb3){const _0x115ab8=_0x115a();return _0x3a17=function(_0x3a179b,_0x5540fe){_0x3a179b=_0x3a179b-0x17b;let _0xd4127c=_0x115ab8[_0x3a179b];return _0xd4127c;},_0x3a17(_0x206d56,_0x36dcb3);}import _0x334c68 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x334c68{[_0x2d15d5(0x187)];[_0x2d15d5(0x1a3)];[_0x2d15d5(0x18e)];[_0x2d15d5(0x183)];[_0x2d15d5(0x1a1)];constructor(_0x3ccf45,_0x2cab56,_0xdd876e){const _0x22211f=_0x2d15d5;super(_0x3ccf45),this[_0x22211f(0x187)]=this[_0x22211f(0x196)](),this[_0x22211f(0x1a3)]=new _0x49f391(_0x3ccf45),this[_0x22211f(0x18e)]=new _0x59eb24(_0x3ccf45),this[_0x22211f(0x183)]=new _0x336b67(_0x3ccf45,_0xdd876e),this[_0x22211f(0x1a1)]=new _0x5f2502(_0x3ccf45),this[_0x22211f(0x1a1)][_0x22211f(0x19d)](this[_0x22211f(0x191)]()),this[_0x22211f(0x189)](_0x22211f(0x18a),_0x2cab56),this[_0x22211f(0x19d)]({'tag':_0x22211f(0x17b),'attributes':{'class':['ck',_0x22211f(0x1ab),_0x22211f(0x197)],'tabindex':'-1'},'children':this[_0x22211f(0x187)]}),this[_0x22211f(0x1a2)](),this[_0x22211f(0x182)](_0x22211f(0x198),()=>{const _0x72b3f1=_0x22211f;this[_0x72b3f1(0x19c)](this[_0x72b3f1(0x19e)],_0x363b53=>{const _0x538439=_0x72b3f1;this[_0x538439(0x1ad)](_0x363b53);});}),this['on'](_0x22211f(0x1a8),()=>{const _0x1b87bb=_0x22211f;this[_0x1b87bb(0x1a2)]();}),this[_0x22211f(0x184)]();}[_0x2d15d5(0x19f)](){const _0x499f25=_0x2d15d5;this[_0x499f25(0x19e)][_0x499f25(0x19f)]();}[_0x2d15d5(0x1a2)](){const _0x7e3842=_0x2d15d5;switch(this[_0x7e3842(0x187)][_0x7e3842(0x18f)](),this[_0x7e3842(0x18a)]){case _0x7e3842(0x194):this[_0x7e3842(0x187)][_0x7e3842(0x193)](this[_0x7e3842(0x1a3)]);break;case _0x7e3842(0x199):this[_0x7e3842(0x187)][_0x7e3842(0x193)](this[_0x7e3842(0x18e)]);break;case _0x7e3842(0x180):this[_0x7e3842(0x187)][_0x7e3842(0x17e)]([this[_0x7e3842(0x183)],this[_0x7e3842(0x1a1)]]);}}[_0x2d15d5(0x19c)](_0x22493d,_0x5e23d0){const _0x1b2666=_0x2d15d5,_0x3b1970=_0x1b2666(0x1a6),_0x57db4=_0x22493d[_0x1b2666(0x18d)](_0x3b1970);if(_0x57db4)return _0x5e23d0(_0x57db4);const _0x575ce7=new MutationObserver(_0xc1af03=>{const _0x2edfc9=_0x1b2666,_0x3cb08a=_0xc1af03[_0x2edfc9(0x1ac)](_0x51b59c=>_0x51b59c[_0x2edfc9(0x18b)]===_0x22493d&&_0x51b59c[_0x2edfc9(0x1a7)][_0x2edfc9(0x1ae)]>0x0&&_0x51b59c[_0x2edfc9(0x1a7)][0x0][_0x2edfc9(0x190)][_0x2edfc9(0x1a4)]()===_0x3b1970);_0x3cb08a[_0x2edfc9(0x1ae)]&&(_0x575ce7[_0x2edfc9(0x17d)](),_0x5e23d0(_0x3cb08a[0x0][_0x2edfc9(0x1a7)][0x0]));});_0x575ce7[_0x1b2666(0x18c)](_0x22493d,{'childList':!0x0,'subtree':!0x0});}[_0x2d15d5(0x1ad)](_0x270878){const _0x5756c9=_0x2d15d5;_0x270878[_0x5756c9(0x17f)](_0x5756c9(0x181),_0x56bcb3=>{const _0x421f0b=_0x5756c9;this[_0x421f0b(0x186)](_0x421f0b(0x181),{'imageSrc':_0x56bcb3[_0x421f0b(0x17c)][_0x421f0b(0x19a)]});}),_0x270878[_0x5756c9(0x17f)](_0x5756c9(0x195),()=>{const _0x2f7bc3=_0x5756c9;this[_0x2f7bc3(0x186)](_0x2f7bc3(0x195));});}[_0x2d15d5(0x184)](){const _0x2ef04c=_0x2d15d5;this[_0x2ef04c(0x18e)]['on'](_0x2ef04c(0x1a9),()=>{const _0x22b708=_0x2ef04c;this[_0x22b708(0x186)](_0x22b708(0x1a9));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1bd3(_0xb717eb,_0x26693e){const _0x174e71=_0x174e();return _0x1bd3=function(_0x1bd39b,_0x584439){_0x1bd39b=_0x1bd39b-0xbc;let _0x26521b=_0x174e71[_0x1bd39b];return _0x26521b;},_0x1bd3(_0xb717eb,_0x26693e);}const _0x2abf51=_0x1bd3;(function(_0x715b27,_0x5f38c6){const _0x347a95=_0x1bd3,_0x2513a2=_0x715b27();while(!![]){try{const _0x4f1207=-parseInt(_0x347a95(0xbf))/0x1*(parseInt(_0x347a95(0xc7))/0x2)+-parseInt(_0x347a95(0xbd))/0x3+-parseInt(_0x347a95(0xc9))/0x4+-parseInt(_0x347a95(0xcd))/0x5+-parseInt(_0x347a95(0xd5))/0x6+parseInt(_0x347a95(0xc5))/0x7*(parseInt(_0x347a95(0xcf))/0x8)+parseInt(_0x347a95(0xd1))/0x9;if(_0x4f1207===_0x5f38c6)break;else _0x2513a2['push'](_0x2513a2['shift']());}catch(_0x477bd6){_0x2513a2['push'](_0x2513a2['shift']());}}}(_0x174e,0x2143c));import{Command as _0x398403}from'ckeditor5/src/core.js';import{Dialog as _0x433cb6}from'ckeditor5/src/ui.js';import _0x5aae04 from'./ui/uploadcareimageeditcontroller.js';function _0x174e(){const _0x559d06=['14wYjpyH','requires','246oaNRiR','get','750968fRVkWd','refresh','_isEditable','plugins','780045QEXtmH','set','821768knMHIv','unbind','8156016wHieRW','bind','selection','element','1062822yjYnHd','isActive','imageInline','uploadcare.allowExternalImagesEditing','model','getSelectedElement','config','689784gFRkCv','imageEditController','1826QBuSdN','execute','imageBlock','document','isEnabled','editor'];_0x174e=function(){return _0x559d06;};return _0x174e();}import{createEditabilityChecker as _0x3d7912}from'../utils/editingutils.js';export default class J extends _0x398403{[_0x2abf51(0xbe)];static get[_0x2abf51(0xc6)](){return[_0x433cb6];}[_0x2abf51(0xcb)];constructor(_0x3946f9){const _0x3f0b56=_0x2abf51;super(_0x3946f9),this[_0x3f0b56(0xbe)]=void 0x0,this[_0x3f0b56(0xcb)]=_0x3d7912(_0x3946f9[_0x3f0b56(0xbc)][_0x3f0b56(0xc8)](_0x3f0b56(0xd8))||[]),this[_0x3f0b56(0xce)]({'isActive':!0x1});}[_0x2abf51(0xca)](){const _0x2d51fb=_0x2abf51,_0x2b9023=this[_0x2d51fb(0xc4)][_0x2d51fb(0xd9)][_0x2d51fb(0xc2)][_0x2d51fb(0xd3)][_0x2d51fb(0xda)]();this[_0x2d51fb(0xc3)]=this[_0x2d51fb(0xcb)](_0x2b9023);}[_0x2abf51(0xc0)](){const _0x4ce1a8=_0x2abf51;this[_0x4ce1a8(0xbe)]&&(this[_0x4ce1a8(0xd0)](_0x4ce1a8(0xd6)),this[_0x4ce1a8(0xbe)]=void 0x0);const _0x58eced=this[_0x4ce1a8(0xc4)][_0x4ce1a8(0xd9)][_0x4ce1a8(0xc2)][_0x4ce1a8(0xd3)][_0x4ce1a8(0xda)]();_0x58eced&&(_0x58eced['is'](_0x4ce1a8(0xd4),_0x4ce1a8(0xc1))||_0x58eced['is'](_0x4ce1a8(0xd4),_0x4ce1a8(0xd7)))&&(this[_0x4ce1a8(0xbe)]=new _0x5aae04(this[_0x4ce1a8(0xc4)],this[_0x4ce1a8(0xc4)][_0x4ce1a8(0xcc)][_0x4ce1a8(0xc8)](_0x433cb6),_0x58eced),this[_0x4ce1a8(0xd2)](_0x4ce1a8(0xd6))['to'](this[_0x4ce1a8(0xbe)],_0x4ce1a8(0xd6)));}}
23
+ const _0x859d63=_0x24ea;(function(_0x535470,_0x2daea3){const _0x4345fd=_0x24ea,_0x3eca08=_0x535470();while(!![]){try{const _0x3eda26=parseInt(_0x4345fd(0x90))/0x1*(parseInt(_0x4345fd(0x9d))/0x2)+-parseInt(_0x4345fd(0x8b))/0x3+parseInt(_0x4345fd(0x7d))/0x4*(-parseInt(_0x4345fd(0x89))/0x5)+-parseInt(_0x4345fd(0x9a))/0x6+-parseInt(_0x4345fd(0x83))/0x7*(parseInt(_0x4345fd(0x8c))/0x8)+-parseInt(_0x4345fd(0x80))/0x9*(-parseInt(_0x4345fd(0x8f))/0xa)+parseInt(_0x4345fd(0x7f))/0xb;if(_0x3eda26===_0x2daea3)break;else _0x3eca08['push'](_0x3eca08['shift']());}catch(_0x875fee){_0x3eca08['push'](_0x3eca08['shift']());}}}(_0x5aee,0xa25d0));import{Command as _0x1a18e2}from'ckeditor5/src/core.js';import{Dialog as _0x30a7cc}from'ckeditor5/src/ui.js';function _0x24ea(_0x10c2c1,_0x731667){const _0x5aee2d=_0x5aee();return _0x24ea=function(_0x24eaac,_0x2d11fb){_0x24eaac=_0x24eaac-0x7d;let _0x5ad881=_0x5aee2d[_0x24eaac];return _0x5ad881;},_0x24ea(_0x10c2c1,_0x731667);}import _0x3d6ffa from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2486f8}from'../utils/editingutils.js';export default class z extends _0x1a18e2{[_0x859d63(0x8e)];static get[_0x859d63(0x8d)](){return[_0x30a7cc];}[_0x859d63(0x96)];constructor(_0x3763a4){const _0x2315bf=_0x859d63;super(_0x3763a4),this[_0x2315bf(0x8e)]=void 0x0,this[_0x2315bf(0x96)]=_0x2486f8(_0x3763a4[_0x2315bf(0x8a)][_0x2315bf(0x88)](_0x2315bf(0x98))||[]),this[_0x2315bf(0x99)]({'isActive':!0x1});}[_0x859d63(0x9b)](){const _0x3d922c=_0x859d63,_0x1d80da=this[_0x3d922c(0x85)][_0x3d922c(0x94)][_0x3d922c(0x9c)][_0x3d922c(0x92)][_0x3d922c(0x7e)]();this[_0x3d922c(0x81)]=this[_0x3d922c(0x96)](_0x1d80da);}[_0x859d63(0x97)](){const _0x277f02=_0x859d63;this[_0x277f02(0x8e)]&&(this[_0x277f02(0x86)](_0x277f02(0x82)),this[_0x277f02(0x8e)]=void 0x0);const _0x45d184=this[_0x277f02(0x85)][_0x277f02(0x94)][_0x277f02(0x9c)][_0x277f02(0x92)][_0x277f02(0x7e)]();_0x45d184&&(_0x45d184['is'](_0x277f02(0x91),_0x277f02(0x84))||_0x45d184['is'](_0x277f02(0x91),_0x277f02(0x87)))&&(this[_0x277f02(0x8e)]=new _0x3d6ffa(this[_0x277f02(0x85)],this[_0x277f02(0x85)][_0x277f02(0x93)][_0x277f02(0x88)](_0x30a7cc),_0x45d184),this[_0x277f02(0x95)](_0x277f02(0x82))['to'](this[_0x277f02(0x8e)],_0x277f02(0x82)));}}function _0x5aee(){const _0x5a09e4=['isActive','49IQSSDy','imageBlock','editor','unbind','imageInline','get','10FDqvWH','config','3420276cGGyla','1204744gdeGmA','requires','imageEditController','3810MZbTaq','280WxPTeI','element','selection','plugins','model','bind','_isEditable','execute','uploadcare.allowExternalImagesEditing','set','5496192TZhypt','refresh','document','370wRgLwh','2094200sSEqrF','getSelectedElement','43093116PMrHGB','20151kzOlzR','isEnabled'];_0x5aee=function(){return _0x5a09e4;};return _0x5aee();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12dc64=_0x2bef;(function(_0xfba112,_0x4a6081){const _0x2b3d7b=_0x2bef,_0x1f63af=_0xfba112();while(!![]){try{const _0x2e20b1=-parseInt(_0x2b3d7b(0xa8))/0x1+-parseInt(_0x2b3d7b(0x9b))/0x2*(parseInt(_0x2b3d7b(0xa5))/0x3)+-parseInt(_0x2b3d7b(0xa9))/0x4*(parseInt(_0x2b3d7b(0x9a))/0x5)+-parseInt(_0x2b3d7b(0xae))/0x6*(-parseInt(_0x2b3d7b(0xad))/0x7)+parseInt(_0x2b3d7b(0x9c))/0x8*(-parseInt(_0x2b3d7b(0xa4))/0x9)+-parseInt(_0x2b3d7b(0xa6))/0xa+parseInt(_0x2b3d7b(0xa0))/0xb*(parseInt(_0x2b3d7b(0xb0))/0xc);if(_0x2e20b1===_0x4a6081)break;else _0x1f63af['push'](_0x1f63af['shift']());}catch(_0x57680f){_0x1f63af['push'](_0x1f63af['shift']());}}}(_0x72b8,0x950a5));function _0x72b8(){const _0x4beb2a=['4170FITDsN','pluginName','44940804yJWoTf','requires','5prStpI','2193226zEClJg','640YUqLus','ImageEditing','uploadcareImageEdit','isPremiumPlugin','11KSjStR','isOfficialPlugin','add','commands','86049DZPROL','3GOVqGf','7756350LmAkYD','UploadcareImageEditEditing','540259DjBNgJ','2583824cokLod','ImageUtils','uploadcareImageReplace','init','6937lXjAtc'];_0x72b8=function(){return _0x4beb2a;};return _0x72b8();}function _0x2bef(_0x4c70be,_0x442566){const _0x72b8a1=_0x72b8();return _0x2bef=function(_0x2beff4,_0x447aeb){_0x2beff4=_0x2beff4-0x9a;let _0x55590a=_0x72b8a1[_0x2beff4];return _0x55590a;},_0x2bef(_0x4c70be,_0x442566);}import{Plugin as _0x2896fd}from'ckeditor5/src/core.js';import{Notification as _0x4e4ff8}from'ckeditor5/src/ui.js';import _0x91b798 from'./uploadcareimageeditcommand.js';import _0xba4ee3 from'./uploadcareimagereplacecommand.js';import _0xc7b7ed from'../uploadcareediting.js';export default class g extends _0x2896fd{static get[_0x12dc64(0xaf)](){const _0x238af1=_0x12dc64;return _0x238af1(0xa7);}static get[_0x12dc64(0xb1)](){const _0xcbe007=_0x12dc64;return[_0xc7b7ed,_0x4e4ff8,_0xcbe007(0xaa),_0xcbe007(0x9d)];}static get[_0x12dc64(0xa1)](){return!0x0;}static get[_0x12dc64(0x9f)](){return!0x0;}[_0x12dc64(0xac)](){const _0x350903=_0x12dc64,{editor:_0x1d5f1c}=this;_0x1d5f1c[_0x350903(0xa3)][_0x350903(0xa2)](_0x350903(0x9e),new _0x91b798(_0x1d5f1c)),_0x1d5f1c[_0x350903(0xa3)][_0x350903(0xa2)](_0x350903(0xab),new _0xba4ee3(_0x1d5f1c));}}
23
+ const _0x5693b4=_0x131a;(function(_0x33939,_0x1f38aa){const _0x1ce618=_0x131a,_0x4868d6=_0x33939();while(!![]){try{const _0x8458b5=-parseInt(_0x1ce618(0x18a))/0x1+-parseInt(_0x1ce618(0x178))/0x2+-parseInt(_0x1ce618(0x179))/0x3*(parseInt(_0x1ce618(0x182))/0x4)+parseInt(_0x1ce618(0x175))/0x5+parseInt(_0x1ce618(0x177))/0x6*(-parseInt(_0x1ce618(0x176))/0x7)+parseInt(_0x1ce618(0x181))/0x8*(parseInt(_0x1ce618(0x184))/0x9)+-parseInt(_0x1ce618(0x17b))/0xa*(-parseInt(_0x1ce618(0x174))/0xb);if(_0x8458b5===_0x1f38aa)break;else _0x4868d6['push'](_0x4868d6['shift']());}catch(_0x585554){_0x4868d6['push'](_0x4868d6['shift']());}}}(_0x2d05,0x7b2be));import{Plugin as _0x5bb7cf}from'ckeditor5/src/core.js';import{Notification as _0x36c4d1}from'ckeditor5/src/ui.js';function _0x2d05(){const _0x33d48f=['250XhgYIR','pluginName','ImageEditing','add','isOfficialPlugin','init','716808hatTOv','632arXaqo','uploadcareImageReplace','99WwkRIW','uploadcareImageEdit','requires','commands','UploadcareImageEditEditing','isPremiumPlugin','217234chjYkR','17237Odccma','3285210FuhupV','61243xbDTMu','42gWzAPS','839886dedZRt','9093uqFfth','ImageUtils'];_0x2d05=function(){return _0x33d48f;};return _0x2d05();}import _0x2664c from'./uploadcareimageeditcommand.js';function _0x131a(_0x18573b,_0x3cbcb5){const _0x2d05ff=_0x2d05();return _0x131a=function(_0x131a7e,_0x2980d6){_0x131a7e=_0x131a7e-0x174;let _0x4b1e87=_0x2d05ff[_0x131a7e];return _0x4b1e87;},_0x131a(_0x18573b,_0x3cbcb5);}import _0x1c40fc from'./uploadcareimagereplacecommand.js';import _0x47340b from'../uploadcareediting.js';export default class g extends _0x5bb7cf{static get[_0x5693b4(0x17c)](){const _0x43fec3=_0x5693b4;return _0x43fec3(0x188);}static get[_0x5693b4(0x186)](){const _0x2bf2cd=_0x5693b4;return[_0x47340b,_0x36c4d1,_0x2bf2cd(0x17a),_0x2bf2cd(0x17d)];}static get[_0x5693b4(0x17f)](){return!0x0;}static get[_0x5693b4(0x189)](){return!0x0;}[_0x5693b4(0x180)](){const _0x2471b5=_0x5693b4,{editor:_0x3b1a7b}=this;_0x3b1a7b[_0x2471b5(0x187)][_0x2471b5(0x17e)](_0x2471b5(0x185),new _0x2664c(_0x3b1a7b)),_0x3b1a7b[_0x2471b5(0x187)][_0x2471b5(0x17e)](_0x2471b5(0x183),new _0x1c40fc(_0x3b1a7b));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x161e69=_0x4432;function _0x1948(){var _0x2998e0=['true','8503033TYtwPf','4917530eLIgqT','2038620MnklUA','bindTemplate','15jxbCJw','div','24FPWgQa','focusTracker','30XgXHvV','fire','9086624eoAWmN','forwardCycle','createCollection','124876ivMaWf','focusCycler','getFocusableElement','144516YDrZYF','2812221LexShR'];_0x1948=function(){return _0x2998e0;};return _0x1948();}function _0x4432(_0x4c50c3,_0xee6e68){var _0x1948e6=_0x1948();return _0x4432=function(_0x443289,_0x175e6b){_0x443289=_0x443289-0x188;var _0x23f9ab=_0x1948e6[_0x443289];return _0x23f9ab;},_0x4432(_0x4c50c3,_0xee6e68);}(function(_0x5036d7,_0x347fbf){var _0x28cc34=_0x4432,_0x4d3330=_0x5036d7();while(!![]){try{var _0x4e32d1=-parseInt(_0x28cc34(0x194))/0x1*(-parseInt(_0x28cc34(0x18d))/0x2)+-parseInt(_0x28cc34(0x196))/0x3*(parseInt(_0x28cc34(0x18a))/0x4)+parseInt(_0x28cc34(0x191))/0x5+-parseInt(_0x28cc34(0x192))/0x6+parseInt(_0x28cc34(0x190))/0x7+-parseInt(_0x28cc34(0x19a))/0x8+parseInt(_0x28cc34(0x18e))/0x9*(-parseInt(_0x28cc34(0x198))/0xa);if(_0x4e32d1===_0x347fbf)break;else _0x4d3330['push'](_0x4d3330['shift']());}catch(_0x5cded7){_0x4d3330['push'](_0x4d3330['shift']());}}}(_0x1948,0x9734a));import{FocusTracker as _0x52aaca}from'ckeditor5/src/utils.js';import{View as _0x2c6f77,FocusCycler as _0x1ee303}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x2c6f77{[_0x161e69(0x197)];[_0x161e69(0x18b)];constructor(_0x990696){var _0x729846=_0x161e69;super(_0x990696),this[_0x729846(0x197)]=new _0x52aaca(),this[_0x729846(0x18b)]=new _0x1ee303({'focusables':this[_0x729846(0x189)](),'focusTracker':this[_0x729846(0x197)]});}[_0x161e69(0x18c)](){var _0x72df6b=_0x161e69;return{'tag':_0x72df6b(0x195),'attributes':{'aria-hidden':_0x72df6b(0x18f),'tabindex':'0'},'on':{'focus':this[_0x72df6b(0x193)]['to'](()=>{var _0x3aff35=_0x72df6b;this[_0x3aff35(0x18b)][_0x3aff35(0x199)](_0x3aff35(0x188));})}};}}
23
+ var _0x4574da=_0x3e3b;(function(_0x59875e,_0x815a1e){var _0x17f4e5=_0x3e3b,_0x5a8b7c=_0x59875e();while(!![]){try{var _0x48d221=-parseInt(_0x17f4e5(0xa3))/0x1+parseInt(_0x17f4e5(0xaa))/0x2+-parseInt(_0x17f4e5(0xa6))/0x3*(parseInt(_0x17f4e5(0xa7))/0x4)+parseInt(_0x17f4e5(0xa8))/0x5*(parseInt(_0x17f4e5(0xb2))/0x6)+parseInt(_0x17f4e5(0xaf))/0x7+parseInt(_0x17f4e5(0xa9))/0x8+parseInt(_0x17f4e5(0xae))/0x9;if(_0x48d221===_0x815a1e)break;else _0x5a8b7c['push'](_0x5a8b7c['shift']());}catch(_0x444f35){_0x5a8b7c['push'](_0x5a8b7c['shift']());}}}(_0x103e,0x66f27));import{FocusTracker as _0xc311da}from'ckeditor5/src/utils.js';import{View as _0x13d423,FocusCycler as _0x566560}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x3e3b(_0x35a335,_0x245718){var _0x103ed6=_0x103e();return _0x3e3b=function(_0x3e3b5b,_0x3d92b4){_0x3e3b5b=_0x3e3b5b-0xa3;var _0x5222c7=_0x103ed6[_0x3e3b5b];return _0x5222c7;},_0x3e3b(_0x35a335,_0x245718);}function _0x103e(){var _0x21f397=['div','focusCycler','420502JUaJdM','fire','focusTracker','6qegsLr','951248KfHJRl','101485pzWgJl','2120920SXwcHc','289808oJGvwd','getFocusableElement','createCollection','bindTemplate','582174wNodUt','5333328Lbqapu','forwardCycle','true','24hDRFOr'];_0x103e=function(){return _0x21f397;};return _0x103e();}export default class G extends _0x13d423{[_0x4574da(0xa5)];[_0x4574da(0xb4)];constructor(_0xc6581d){var _0x1cc7d4=_0x4574da;super(_0xc6581d),this[_0x1cc7d4(0xa5)]=new _0xc311da(),this[_0x1cc7d4(0xb4)]=new _0x566560({'focusables':this[_0x1cc7d4(0xac)](),'focusTracker':this[_0x1cc7d4(0xa5)]});}[_0x4574da(0xab)](){var _0x43b6b1=_0x4574da;return{'tag':_0x43b6b1(0xb3),'attributes':{'aria-hidden':_0x43b6b1(0xb1),'tabindex':'0'},'on':{'focus':this[_0x43b6b1(0xad)]['to'](()=>{var _0x5d23f4=_0x43b6b1;this[_0x5d23f4(0xb4)][_0x5d23f4(0xa4)](_0x5d23f4(0xb0));})}};}}