@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260117.0 → 0.0.0-nightly-20260118.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 _0x109f3a,ObservableMixin as _0x3d1949}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4bf96e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x10e9e7}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x111121}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xe387cf}from'../../utils/uploadutils.js';import{getImageUrls as _0x205c39,getImageDimension as _0x3c450a}from'../../utils/editingutils.js';import{isAncestor as _0x5cd371}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x3d1949(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x505781,_0x2ab482,_0x308aee){super(),this['_editor']=_0x505781,this['_dialog']=_0x2ab482,this['_imageElement']=_0x308aee,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 _0x227e94=this['_imageElement'],_0xf90d07=_0x227e94['getAttribute']('uploadcareImageId'),_0x3cb60a=_0x227e94['getAttribute']('src');if(_0xf90d07)await this['_loadImageInfo'](_0xf90d07,_0x3cb60a);else{if(this['_imageCache']['has'](_0x3cb60a)){const _0x3c1538=this['_imageCache']['get'](_0x3cb60a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c1538['url'],this['imageDimension']=_0x3c1538['dimension'],this['imageId']=_0x3c1538['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x27ad7e}=this['_editor'],t=_0x27ad7e['t'],_0xca9bd2=new _0x111121(_0x27ad7e,this['imageStatus'],this['_attributes']);_0xca9bd2['bind']('status')['to'](this,'imageStatus'),_0xca9bd2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xca9bd2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xca9bd2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xca9bd2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x10e9e7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xca9bd2,'position':_0x4bf96e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xca9bd2['focus']();},'onHide':()=>{_0xca9bd2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x47edef=>!_0x5cd371(_0x47edef,_0xca9bd2['element'])}});}['_loadImageInfo'](_0xdaa831,_0x4cf142){return _0xe387cf['getInfo'](_0xdaa831,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x45fc9a=>{const {width:_0x3049f7,height:_0x26bf0d}=_0x45fc9a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4cf142,this['imageDimension']={'width':_0x3049f7,'height':_0x26bf0d},this['imageId']=_0xdaa831;})['catch'](_0x257069=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x257069['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xc98088,_0x5291a3){return this['_getImageAsFile'](_0xc98088)['then'](_0x23fdf9=>_0xe387cf['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':_0x5291a3['signal'],'file':_0x23fdf9,'onProgress':_0x4e72c1=>{_0x4e72c1&&_0x4e72c1['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4e72c1['value']));}}))['then'](_0x1c1869=>{const {width:_0xff4b2b,height:_0x3eb2eb}=_0x1c1869['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1c1869['cdnUrl'],this['imageDimension']={'width':_0xff4b2b,'height':_0x3eb2eb},this['imageId']=_0x1c1869['uuid'],this['imageUploadProgress']=null;const _0x229d73=_0xc98088['getAttribute']('src');this['_imageCache']['set'](_0x229d73,{'id':_0x1c1869['uuid'],'url':_0x1c1869['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x89ad5a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x89ad5a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x208f76,_0x554db3){_0x208f76['on']('apply',(_0x2964bd,_0x3dd490)=>{this['_replaceImage'](_0x554db3,_0x3dd490['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x208f76['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x208f76['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5c9943,_0x165e03,_0x548c28){const _0x249806=this['_editor'],{width:_0xe75b9d,height:_0x103c14}=_0x3c450a(_0x165e03,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x568982,imageSources:_0x3561d5}=_0x205c39(_0x165e03,_0xe75b9d);_0x249806['model']['change'](_0x576cac=>{if('$graveyard'===_0x5c9943['root']['rootName']){_0x249806['execute']('insertImage',{'imageType':_0x5c9943['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5c9943['getAttributes']()),'uploadcareImageId':_0x548c28,'src':_0x568982,'sources':_0x3561d5,'width':_0xe75b9d,'height':_0x103c14}});const _0x32cd96=_0x5c9943['getChildren']();_0x5c9943=_0x249806['model']['document']['selection']['getSelectedElement']();for(const _0x418f06 of _0x32cd96)_0x576cac['append'](_0x576cac['cloneElement'](_0x418f06),_0x5c9943);}else _0x576cac['setSelection'](_0x5c9943,'on'),_0x249806['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5c9943['getAttributes']()),'uploadcareImageId':_0x548c28,'src':_0x568982,'sources':_0x3561d5,'width':_0xe75b9d,'height':_0x103c14},_0x5c9943);_0x576cac['setSelection'](_0x5c9943,'on');});}async['_getImageAsFile'](_0x429c8a){const _0x2a0915=_0x109f3a['window'],_0x2510dd=_0x109f3a['document']['location']['href'],_0x42b82d=new _0x2a0915['URL'](_0x429c8a['getAttribute']('src'),_0x2510dd);if('data:'===_0x42b82d['protocol']){const _0x51cf32=_0x42b82d['href']['split'](','),_0x53fe6e=_0x51cf32[0x0]['match'](/:(.*?);/)[0x1],_0x56d0cb=_0x53fe6e['split']('/')[0x1],_0x10aa40=_0x2a0915['atob'](_0x51cf32[_0x51cf32['length']-0x1]);let _0x1d45f0=_0x10aa40['length'];const _0x39162f=new _0x2a0915['Uint8Array'](_0x1d45f0);for(;_0x1d45f0--;)_0x39162f[_0x1d45f0]=_0x10aa40['charCodeAt'](_0x1d45f0);return new _0x2a0915['File']([_0x39162f],'image.'+_0x56d0cb,{'type':_0x53fe6e});}const _0x386f54=_0x42b82d['href']['split']('/'),_0x5265e5=_0x386f54[_0x386f54['length']-0x1],_0xfed084=_0x5265e5['split']('.')[0x1];return _0x2a0915['fetch'](_0x42b82d['href'])['then'](_0x527e5b=>_0x527e5b['clone']()['blob']())['then'](_0x2a7d3a=>new _0x2a0915['File']([_0x2a7d3a],_0x5265e5,{'type':'image/'+_0xfed084}));}}
23
+ import{global as _0x5d38cf,ObservableMixin as _0x5c77fe}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x223989}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2e4811}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1c27ce}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x363663}from'../../utils/uploadutils.js';import{getImageUrls as _0x4b3317,getImageDimension as _0x27f14a}from'../../utils/editingutils.js';import{isAncestor as _0xd1f7c8}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x5c77fe(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5d312a,_0x52124e,_0x436d04){super(),this['_editor']=_0x5d312a,this['_dialog']=_0x52124e,this['_imageElement']=_0x436d04,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 _0x73bb76=this['_imageElement'],_0x1b9cb4=_0x73bb76['getAttribute']('uploadcareImageId'),_0x3d85d2=_0x73bb76['getAttribute']('src');if(_0x1b9cb4)await this['_loadImageInfo'](_0x1b9cb4,_0x3d85d2);else{if(this['_imageCache']['has'](_0x3d85d2)){const _0x5428cd=this['_imageCache']['get'](_0x3d85d2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5428cd['url'],this['imageDimension']=_0x5428cd['dimension'],this['imageId']=_0x5428cd['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3a77cc}=this['_editor'],t=_0x3a77cc['t'],_0x1c2186=new _0x1c27ce(_0x3a77cc,this['imageStatus'],this['_attributes']);_0x1c2186['bind']('status')['to'](this,'imageStatus'),_0x1c2186['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1c2186['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1c2186['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1c2186,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2e4811,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1c2186,'position':_0x223989['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1c2186['focus']();},'onHide':()=>{_0x1c2186['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1dc89c=>!_0xd1f7c8(_0x1dc89c,_0x1c2186['element'])}});}['_loadImageInfo'](_0x2b0cd2,_0x2bc4ec){return _0x363663['getInfo'](_0x2b0cd2,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x37bf7e=>{const {width:_0x15f149,height:_0x2a44d3}=_0x37bf7e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2bc4ec,this['imageDimension']={'width':_0x15f149,'height':_0x2a44d3},this['imageId']=_0x2b0cd2;})['catch'](_0x54ffdf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x54ffdf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x31de9b,_0x1bf3b9){return this['_getImageAsFile'](_0x31de9b)['then'](_0x217ff1=>_0x363663['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':_0x1bf3b9['signal'],'file':_0x217ff1,'onProgress':_0x27ecd9=>{_0x27ecd9&&_0x27ecd9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x27ecd9['value']));}}))['then'](_0x3fdcac=>{const {width:_0x41cd8e,height:_0x5a43eb}=_0x3fdcac['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3fdcac['cdnUrl'],this['imageDimension']={'width':_0x41cd8e,'height':_0x5a43eb},this['imageId']=_0x3fdcac['uuid'],this['imageUploadProgress']=null;const _0x45fd7e=_0x31de9b['getAttribute']('src');this['_imageCache']['set'](_0x45fd7e,{'id':_0x3fdcac['uuid'],'url':_0x3fdcac['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1d5e77=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1d5e77['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x48b0dd,_0x42cd50){_0x48b0dd['on']('apply',(_0x2cfae0,_0x4393ab)=>{this['_replaceImage'](_0x42cd50,_0x4393ab['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x48b0dd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x48b0dd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3b7582,_0xd639af,_0x4aad3b){const _0x54b2ff=this['_editor'],{width:_0x536218,height:_0x1b918b}=_0x27f14a(_0xd639af,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x29c1a7,imageSources:_0x4f5bf6}=_0x4b3317(_0xd639af,_0x536218);_0x54b2ff['model']['change'](_0x5f25f0=>{if('$graveyard'===_0x3b7582['root']['rootName']){_0x54b2ff['execute']('insertImage',{'imageType':_0x3b7582['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3b7582['getAttributes']()),'uploadcareImageId':_0x4aad3b,'src':_0x29c1a7,'sources':_0x4f5bf6,'width':_0x536218,'height':_0x1b918b}});const _0x1acd47=_0x3b7582['getChildren']();_0x3b7582=_0x54b2ff['model']['document']['selection']['getSelectedElement']();for(const _0x4bd812 of _0x1acd47)_0x5f25f0['append'](_0x5f25f0['cloneElement'](_0x4bd812),_0x3b7582);}else _0x5f25f0['setSelection'](_0x3b7582,'on'),_0x54b2ff['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3b7582['getAttributes']()),'uploadcareImageId':_0x4aad3b,'src':_0x29c1a7,'sources':_0x4f5bf6,'width':_0x536218,'height':_0x1b918b},_0x3b7582);_0x5f25f0['setSelection'](_0x3b7582,'on');});}async['_getImageAsFile'](_0x98a157){const _0x3748b9=_0x5d38cf['window'],_0x22b653=_0x5d38cf['document']['location']['href'],_0x3de811=new _0x3748b9['URL'](_0x98a157['getAttribute']('src'),_0x22b653);if('data:'===_0x3de811['protocol']){const _0x4ce77d=_0x3de811['href']['split'](','),_0x5e0ea1=_0x4ce77d[0x0]['match'](/:(.*?);/)[0x1],_0x312076=_0x5e0ea1['split']('/')[0x1],_0x4bb9b8=_0x3748b9['atob'](_0x4ce77d[_0x4ce77d['length']-0x1]);let _0x57e35f=_0x4bb9b8['length'];const _0x5b25ac=new _0x3748b9['Uint8Array'](_0x57e35f);for(;_0x57e35f--;)_0x5b25ac[_0x57e35f]=_0x4bb9b8['charCodeAt'](_0x57e35f);return new _0x3748b9['File']([_0x5b25ac],'image.'+_0x312076,{'type':_0x5e0ea1});}const _0xd3e144=_0x3de811['href']['split']('/'),_0x502382=_0xd3e144[_0xd3e144['length']-0x1],_0x26550c=_0x502382['split']('.')[0x1];return _0x3748b9['fetch'](_0x3de811['href'])['then'](_0x52764f=>_0x52764f['clone']()['blob']())['then'](_0x23119f=>new _0x3748b9['File']([_0x23119f],_0x502382,{'type':'image/'+_0x26550c}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x56f7(_0x2b4f40,_0x163d26){const _0x2dcad4=_0x2dca();return _0x56f7=function(_0x56f74d,_0x495774){_0x56f74d=_0x56f74d-0x161;let _0x516f23=_0x2dcad4[_0x56f74d];return _0x516f23;},_0x56f7(_0x2b4f40,_0x163d26);}(function(_0x4a2c1a,_0x145de6){const _0x28279e=_0x56f7,_0x1ca37c=_0x4a2c1a();while(!![]){try{const _0x4cf30d=parseInt(_0x28279e(0x173))/0x1+-parseInt(_0x28279e(0x169))/0x2*(parseInt(_0x28279e(0x16d))/0x3)+-parseInt(_0x28279e(0x171))/0x4+parseInt(_0x28279e(0x16f))/0x5+parseInt(_0x28279e(0x168))/0x6*(parseInt(_0x28279e(0x162))/0x7)+parseInt(_0x28279e(0x163))/0x8*(-parseInt(_0x28279e(0x161))/0x9)+parseInt(_0x28279e(0x16a))/0xa*(-parseInt(_0x28279e(0x165))/0xb);if(_0x4cf30d===_0x145de6)break;else _0x1ca37c['push'](_0x1ca37c['shift']());}catch(_0x30c5f9){_0x1ca37c['push'](_0x1ca37c['shift']());}}}(_0x2dca,0xd98bf));import{View as _0x4f337c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x4f337c{constructor(_0x4232e0,_0x551cd8){const _0x10fcb7=_0x56f7;super(_0x4232e0);const _0x24f167=this[_0x10fcb7(0x16e)];this[_0x10fcb7(0x172)](_0x10fcb7(0x16b),''),this[_0x10fcb7(0x166)]({'tag':_0x10fcb7(0x167),'attributes':{..._0x551cd8,'class':[_0x10fcb7(0x164),_0x10fcb7(0x16c)],'ctx-name':_0x10fcb7(0x170),'cdn-url':_0x24f167['to'](_0x10fcb7(0x16b))}});}}function _0x2dca(){const _0x339df0=['ck-uploadcare-theme','1360251txwCKV','bindTemplate','7116165YRyiFT','image-edit','5582704PcIxQC','set','992719VNpYHi','2583KmPbjo','8691137vQweKC','8696uJtjko','uc-light','22PFkcYT','setTemplate','uc-cloud-image-editor','6SHDYwb','2ZCSXYc','3027050jRKqCv','imageSrc'];_0x2dca=function(){return _0x339df0;};return _0x2dca();}
23
+ (function(_0x2a46f8,_0x179a2d){const _0x240904=_0x1da4,_0x24dc5d=_0x2a46f8();while(!![]){try{const _0x1a5887=-parseInt(_0x240904(0x1be))/0x1+-parseInt(_0x240904(0x1cc))/0x2*(-parseInt(_0x240904(0x1c5))/0x3)+parseInt(_0x240904(0x1cb))/0x4+parseInt(_0x240904(0x1cd))/0x5+-parseInt(_0x240904(0x1c7))/0x6*(parseInt(_0x240904(0x1c8))/0x7)+-parseInt(_0x240904(0x1c2))/0x8*(-parseInt(_0x240904(0x1c0))/0x9)+parseInt(_0x240904(0x1bc))/0xa;if(_0x1a5887===_0x179a2d)break;else _0x24dc5d['push'](_0x24dc5d['shift']());}catch(_0x1ae182){_0x24dc5d['push'](_0x24dc5d['shift']());}}}(_0xe02c,0x5bd6e));import{View as _0x17491c}from'ckeditor5/src/ui.js';function _0xe02c(){const _0x1a6206=['setTemplate','1593700KPVUXs','914WAMmie','3637610raeORz','2584100mOkwLe','bindTemplate','691716Ihapkc','set','459oVfjFA','uc-light','26800CBIxFo','uc-cloud-image-editor','ck-uploadcare-theme','1245ozuKiy','imageSrc','2030916brZybN','14eBhYKn','image-edit'];_0xe02c=function(){return _0x1a6206;};return _0xe02c();}function _0x1da4(_0x40b899,_0x3f1718){const _0xe02cb6=_0xe02c();return _0x1da4=function(_0x1da4af,_0x1e356e){_0x1da4af=_0x1da4af-0x1bc;let _0x3d151c=_0xe02cb6[_0x1da4af];return _0x3d151c;},_0x1da4(_0x40b899,_0x3f1718);}export class UploadcareImageEditFormEditingView extends _0x17491c{constructor(_0x5d9def,_0x99c3a7){const _0x1a2e45=_0x1da4;super(_0x5d9def);const _0xd74ab4=this[_0x1a2e45(0x1bd)];this[_0x1a2e45(0x1bf)](_0x1a2e45(0x1c6),''),this[_0x1a2e45(0x1ca)]({'tag':_0x1a2e45(0x1c3),'attributes':{..._0x99c3a7,'class':[_0x1a2e45(0x1c1),_0x1a2e45(0x1c4)],'ctx-name':_0x1a2e45(0x1c9),'cdn-url':_0xd74ab4['to'](_0x1a2e45(0x1c6))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x542231}from'ckeditor5/src/icons.js';import{ButtonView as _0x2e9206,IconView as _0x4d1aa5,View as _0x3a34de}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x3a34de{constructor(_0x197352){super(_0x197352);const t=_0x197352['t'];this['set']('errorType',null);const _0x29864f=new _0x2e9206(_0x197352);_0x29864f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x29864f['withText']=!0x0,_0x29864f['class']='ck-button-action',_0x29864f['on']('execute',()=>{this['fire']('retry');}),_0x29864f['bind']('isVisible')['to'](this,'errorType',_0x139c40=>'NotFound'!==_0x139c40);const _0x5464b1=new _0x4d1aa5();_0x5464b1['content']=_0x542231,_0x5464b1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4583b5=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':[_0x5464b1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4583b5['to']('errorType',_0x571682=>t('NotFound'!==_0x571682?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x29864f]},{'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 _0x8ce8f7}from'ckeditor5/src/icons.js';import{ButtonView as _0x47c123,IconView as _0x4a641e,View as _0x416ce6}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x416ce6{constructor(_0x186541){super(_0x186541);const t=_0x186541['t'];this['set']('errorType',null);const _0x55c953=new _0x47c123(_0x186541);_0x55c953['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x55c953['withText']=!0x0,_0x55c953['class']='ck-button-action',_0x55c953['on']('execute',()=>{this['fire']('retry');}),_0x55c953['bind']('isVisible')['to'](this,'errorType',_0x5a1d5e=>'NotFound'!==_0x5a1d5e);const _0x3a317f=new _0x4a641e();_0x3a317f['content']=_0x8ce8f7,_0x3a317f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x49cb30=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':[_0x3a317f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x49cb30['to']('errorType',_0x5c14fa=>t('NotFound'!==_0x5c14fa?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x55c953]},{'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 _0x3646d6,View as _0x5918f6}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x5918f6{constructor(_0x3f302b){super(_0x3f302b);const t=_0x3f302b['t'],_0x59df4d=this['bindTemplate'],_0x3ffd0a=new _0x3646d6();_0x3ffd0a['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':[_0x3ffd0a,{'text':_0x59df4d['to']('imageUploadProgress',_0x26b1e8=>t('Loading\x20image...')+'\x20('+(_0x26b1e8||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 _0x2560f7,View as _0x36853e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x36853e{constructor(_0x53f312){super(_0x53f312);const t=_0x53f312['t'],_0x2a50c0=this['bindTemplate'],_0x2c4acd=new _0x2560f7();_0x2c4acd['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':[_0x2c4acd,{'text':_0x2a50c0['to']('imageUploadProgress',_0x1e0354=>t('Loading\x20image...')+'\x20('+(_0x1e0354||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5c5a(_0x27a8df,_0x44bc7f){const _0x2f075a=_0x2f07();return _0x5c5a=function(_0x5c5a85,_0xd522c0){_0x5c5a85=_0x5c5a85-0x96;let _0x5985d1=_0x2f075a[_0x5c5a85];return _0x5985d1;},_0x5c5a(_0x27a8df,_0x44bc7f);}const _0x93159=_0x5c5a;(function(_0x5ab6ae,_0x2e36e4){const _0x4b3aba=_0x5c5a,_0x288d33=_0x5ab6ae();while(!![]){try{const _0x472a25=-parseInt(_0x4b3aba(0x9a))/0x1*(parseInt(_0x4b3aba(0xc0))/0x2)+-parseInt(_0x4b3aba(0xc1))/0x3*(-parseInt(_0x4b3aba(0xa6))/0x4)+-parseInt(_0x4b3aba(0xa9))/0x5*(-parseInt(_0x4b3aba(0xca))/0x6)+parseInt(_0x4b3aba(0xc4))/0x7*(parseInt(_0x4b3aba(0x9e))/0x8)+parseInt(_0x4b3aba(0x98))/0x9+-parseInt(_0x4b3aba(0xb9))/0xa*(-parseInt(_0x4b3aba(0xb4))/0xb)+-parseInt(_0x4b3aba(0xab))/0xc;if(_0x472a25===_0x2e36e4)break;else _0x288d33['push'](_0x288d33['shift']());}catch(_0x3bff01){_0x288d33['push'](_0x288d33['shift']());}}}(_0x2f07,0xe63f2));import{View as _0x51b0e7}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x8c1796}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2e96bd}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xed1e5d}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3e9006}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x3e9006{[_0x93159(0xc2)];[_0x93159(0xa8)];[_0x93159(0xaf)];[_0x93159(0xb2)];[_0x93159(0x9c)];constructor(_0x4d0dc3,_0x5c3e53,_0x3c9c97){const _0x5b7ea5=_0x93159;super(_0x4d0dc3),this[_0x5b7ea5(0xc2)]=this[_0x5b7ea5(0xbb)](),this[_0x5b7ea5(0xa8)]=new _0x8c1796(_0x4d0dc3),this[_0x5b7ea5(0xaf)]=new _0x2e96bd(_0x4d0dc3),this[_0x5b7ea5(0xb2)]=new _0xed1e5d(_0x4d0dc3,_0x3c9c97),this[_0x5b7ea5(0x9c)]=new _0x51b0e7(_0x4d0dc3),this[_0x5b7ea5(0x9c)][_0x5b7ea5(0xbd)](this[_0x5b7ea5(0xa2)]()),this[_0x5b7ea5(0xa3)](_0x5b7ea5(0xcc),_0x5c3e53),this[_0x5b7ea5(0xbd)]({'tag':_0x5b7ea5(0xb0),'attributes':{'class':['ck',_0x5b7ea5(0xb8),_0x5b7ea5(0xaa)],'tabindex':'-1'},'children':this[_0x5b7ea5(0xc2)]}),this[_0x5b7ea5(0xbf)](),this[_0x5b7ea5(0xb3)](_0x5b7ea5(0xb7),()=>{const _0x42860c=_0x5b7ea5;this[_0x42860c(0xae)](this[_0x42860c(0xb1)],_0x44e10a=>{const _0xc333fd=_0x42860c;this[_0xc333fd(0x9d)](_0x44e10a);});}),this['on'](_0x5b7ea5(0xa5),()=>{const _0xd93945=_0x5b7ea5;this[_0xd93945(0xbf)]();}),this[_0x5b7ea5(0xbe)]();}[_0x93159(0x99)](){const _0x542190=_0x93159;this[_0x542190(0xb1)][_0x542190(0x99)]();}[_0x93159(0xbf)](){const _0xd18c7d=_0x93159;switch(this[_0xd18c7d(0xc2)][_0xd18c7d(0xc3)](),this[_0xd18c7d(0xcc)]){case _0xd18c7d(0xb5):this[_0xd18c7d(0xc2)][_0xd18c7d(0xad)](this[_0xd18c7d(0xa8)]);break;case _0xd18c7d(0xac):this[_0xd18c7d(0xc2)][_0xd18c7d(0xad)](this[_0xd18c7d(0xaf)]);break;case _0xd18c7d(0xa0):this[_0xd18c7d(0xc2)][_0xd18c7d(0x97)]([this[_0xd18c7d(0xb2)],this[_0xd18c7d(0x9c)]]);}}[_0x93159(0xae)](_0x2aef7b,_0x4a1595){const _0x31464f=_0x93159,_0x2608a3=_0x31464f(0xce),_0x12a39c=_0x2aef7b[_0x31464f(0xa4)](_0x2608a3);if(_0x12a39c)return _0x4a1595(_0x12a39c);const _0x33cc68=new MutationObserver(_0x4b7520=>{const _0x2d8e46=_0x31464f,_0x1df7fc=_0x4b7520[_0x2d8e46(0xba)](_0x232de2=>_0x232de2[_0x2d8e46(0xc7)]===_0x2aef7b&&_0x232de2[_0x2d8e46(0x96)][_0x2d8e46(0xcb)]>0x0&&_0x232de2[_0x2d8e46(0x96)][0x0][_0x2d8e46(0xc9)][_0x2d8e46(0xa1)]()===_0x2608a3);_0x1df7fc[_0x2d8e46(0xcb)]&&(_0x33cc68[_0x2d8e46(0xa7)](),_0x4a1595(_0x1df7fc[0x0][_0x2d8e46(0x96)][0x0]));});_0x33cc68[_0x31464f(0xcd)](_0x2aef7b,{'childList':!0x0,'subtree':!0x0});}[_0x93159(0x9d)](_0x3375ce){const _0x5b8bd8=_0x93159;_0x3375ce[_0x5b8bd8(0x9b)](_0x5b8bd8(0x9f),_0x5c6eed=>{const _0x30dde1=_0x5b8bd8;this[_0x30dde1(0xc6)](_0x30dde1(0x9f),{'imageSrc':_0x5c6eed[_0x30dde1(0xc8)][_0x30dde1(0xb6)]});}),_0x3375ce[_0x5b8bd8(0x9b)](_0x5b8bd8(0xc5),()=>{const _0xe830b9=_0x5b8bd8;this[_0xe830b9(0xc6)](_0xe830b9(0xc5));});}[_0x93159(0xbe)](){const _0x19caef=_0x93159;this[_0x19caef(0xaf)]['on'](_0x19caef(0xbc),()=>{const _0x5cb0cf=_0x19caef;this[_0x5cb0cf(0xc6)](_0x5cb0cf(0xbc));});}}function _0x2f07(){const _0x4f9d7d=['_waitForImageEditorComponent','_errorView','div','element','_editingView','once','737DDrXOz','uploading','cdnUrl','render','ck-reset_all-excluded','6460cHxQii','filter','createCollection','retry','setTemplate','_addErrorViewListeners','_setView','18PMyvym','87kJQnEA','_items','clear','7SuQdpV','cancel','fire','target','detail','nodeName','1956IbGaSx','length','status','observe','uc-cloud-image-editor','addedNodes','addMany','4024485zunBwC','focus','204743lKnWBZ','addEventListener','_focusableView','_addUploadcareImageEditorListeners','11454152DtLhbS','apply','ready','toLowerCase','getFocusableElement','set','querySelector','change:status','233476vePbTJ','disconnect','_loadingView','21310wPsEZT','ck-uploadcare-form','26622624qnzspD','error','add'];_0x2f07=function(){return _0x4f9d7d;};return _0x2f07();}
23
+ function _0x2494(_0x3309b1,_0x17800d){const _0x4993f0=_0x4993();return _0x2494=function(_0x2494d7,_0x475a53){_0x2494d7=_0x2494d7-0x154;let _0x311126=_0x4993f0[_0x2494d7];return _0x311126;},_0x2494(_0x3309b1,_0x17800d);}const _0x3e8994=_0x2494;(function(_0x336348,_0x2e9b28){const _0x2db23e=_0x2494,_0x117bea=_0x336348();while(!![]){try{const _0x265fb7=parseInt(_0x2db23e(0x176))/0x1+parseInt(_0x2db23e(0x16a))/0x2*(-parseInt(_0x2db23e(0x184))/0x3)+parseInt(_0x2db23e(0x178))/0x4*(parseInt(_0x2db23e(0x154))/0x5)+-parseInt(_0x2db23e(0x189))/0x6*(-parseInt(_0x2db23e(0x18b))/0x7)+parseInt(_0x2db23e(0x167))/0x8+-parseInt(_0x2db23e(0x15a))/0x9+parseInt(_0x2db23e(0x16e))/0xa*(-parseInt(_0x2db23e(0x156))/0xb);if(_0x265fb7===_0x2e9b28)break;else _0x117bea['push'](_0x117bea['shift']());}catch(_0x2d544d){_0x117bea['push'](_0x117bea['shift']());}}}(_0x4993,0xdfa1c));import{View as _0x38a365}from'ckeditor5/src/ui.js';function _0x4993(){const _0x20fdbd=['_setView','target','addEventListener','uc-cloud-image-editor','length','change:status','addMany','ck-uploadcare-form','12991776rBkmcU','observe','_addUploadcareImageEditorListeners','2WeAqAo','_items','_loadingView','_addErrorViewListeners','1940Qixqbs','add','apply','ck-reset_all-excluded','querySelector','_errorView','uploading','detail','1770846jUARDT','error','564856tOCeaG','ready','_waitForImageEditorComponent','setTemplate','disconnect','createCollection','div','filter','toLowerCase','render','fire','once','821007xobhMu','getFocusableElement','retry','focus','nodeName','18ywGRMe','cancel','241073CTrgsM','5WXxyKW','set','57739sGgAqz','_editingView','element','status','12882402XqgBsH','cdnUrl','clear','_focusableView','addedNodes'];_0x4993=function(){return _0x20fdbd;};return _0x4993();}import{UploadcareImageEditFormLoadingView as _0xc415f5}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x1956e2}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x1a2d8d}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x4ffc8d}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x4ffc8d{[_0x3e8994(0x16b)];[_0x3e8994(0x16c)];[_0x3e8994(0x173)];[_0x3e8994(0x157)];[_0x3e8994(0x15d)];constructor(_0x1b20c0,_0x10ba17,_0x2221ef){const _0x354990=_0x3e8994;super(_0x1b20c0),this[_0x354990(0x16b)]=this[_0x354990(0x17d)](),this[_0x354990(0x16c)]=new _0xc415f5(_0x1b20c0),this[_0x354990(0x173)]=new _0x1956e2(_0x1b20c0),this[_0x354990(0x157)]=new _0x1a2d8d(_0x1b20c0,_0x2221ef),this[_0x354990(0x15d)]=new _0x38a365(_0x1b20c0),this[_0x354990(0x15d)][_0x354990(0x17b)](this[_0x354990(0x185)]()),this[_0x354990(0x155)](_0x354990(0x159),_0x10ba17),this[_0x354990(0x17b)]({'tag':_0x354990(0x17e),'attributes':{'class':['ck',_0x354990(0x171),_0x354990(0x166)],'tabindex':'-1'},'children':this[_0x354990(0x16b)]}),this[_0x354990(0x15f)](),this[_0x354990(0x183)](_0x354990(0x181),()=>{const _0x480f38=_0x354990;this[_0x480f38(0x17a)](this[_0x480f38(0x158)],_0x120b33=>{const _0x286190=_0x480f38;this[_0x286190(0x169)](_0x120b33);});}),this['on'](_0x354990(0x164),()=>{const _0x212695=_0x354990;this[_0x212695(0x15f)]();}),this[_0x354990(0x16d)]();}[_0x3e8994(0x187)](){const _0x1471b3=_0x3e8994;this[_0x1471b3(0x158)][_0x1471b3(0x187)]();}[_0x3e8994(0x15f)](){const _0x2191d8=_0x3e8994;switch(this[_0x2191d8(0x16b)][_0x2191d8(0x15c)](),this[_0x2191d8(0x159)]){case _0x2191d8(0x174):this[_0x2191d8(0x16b)][_0x2191d8(0x16f)](this[_0x2191d8(0x16c)]);break;case _0x2191d8(0x177):this[_0x2191d8(0x16b)][_0x2191d8(0x16f)](this[_0x2191d8(0x173)]);break;case _0x2191d8(0x179):this[_0x2191d8(0x16b)][_0x2191d8(0x165)]([this[_0x2191d8(0x157)],this[_0x2191d8(0x15d)]]);}}[_0x3e8994(0x17a)](_0x31358c,_0x19fdef){const _0x3e13ce=_0x3e8994,_0x444133=_0x3e13ce(0x162),_0x59adc5=_0x31358c[_0x3e13ce(0x172)](_0x444133);if(_0x59adc5)return _0x19fdef(_0x59adc5);const _0x2f50bb=new MutationObserver(_0x1cbe47=>{const _0x18fec6=_0x3e13ce,_0x426d84=_0x1cbe47[_0x18fec6(0x17f)](_0x4f939a=>_0x4f939a[_0x18fec6(0x160)]===_0x31358c&&_0x4f939a[_0x18fec6(0x15e)][_0x18fec6(0x163)]>0x0&&_0x4f939a[_0x18fec6(0x15e)][0x0][_0x18fec6(0x188)][_0x18fec6(0x180)]()===_0x444133);_0x426d84[_0x18fec6(0x163)]&&(_0x2f50bb[_0x18fec6(0x17c)](),_0x19fdef(_0x426d84[0x0][_0x18fec6(0x15e)][0x0]));});_0x2f50bb[_0x3e13ce(0x168)](_0x31358c,{'childList':!0x0,'subtree':!0x0});}[_0x3e8994(0x169)](_0x1f2e08){const _0x51dcec=_0x3e8994;_0x1f2e08[_0x51dcec(0x161)](_0x51dcec(0x170),_0x168fb9=>{const _0x57a67c=_0x51dcec;this[_0x57a67c(0x182)](_0x57a67c(0x170),{'imageSrc':_0x168fb9[_0x57a67c(0x175)][_0x57a67c(0x15b)]});}),_0x1f2e08[_0x51dcec(0x161)](_0x51dcec(0x18a),()=>{const _0x4744a9=_0x51dcec;this[_0x4744a9(0x182)](_0x4744a9(0x18a));});}[_0x3e8994(0x16d)](){const _0x5d1eef=_0x3e8994;this[_0x5d1eef(0x173)]['on'](_0x5d1eef(0x186),()=>{const _0x35a498=_0x5d1eef;this[_0x35a498(0x182)](_0x35a498(0x186));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x483cc1=_0x42ba;(function(_0x58265d,_0x15d8b9){const _0x34467c=_0x42ba,_0x230ca6=_0x58265d();while(!![]){try{const _0x292e42=-parseInt(_0x34467c(0xc4))/0x1*(parseInt(_0x34467c(0xd2))/0x2)+-parseInt(_0x34467c(0xce))/0x3+parseInt(_0x34467c(0xd7))/0x4+-parseInt(_0x34467c(0xcd))/0x5*(-parseInt(_0x34467c(0xd3))/0x6)+-parseInt(_0x34467c(0xd4))/0x7*(-parseInt(_0x34467c(0xb7))/0x8)+parseInt(_0x34467c(0xc2))/0x9+parseInt(_0x34467c(0xd5))/0xa*(-parseInt(_0x34467c(0xbd))/0xb);if(_0x292e42===_0x15d8b9)break;else _0x230ca6['push'](_0x230ca6['shift']());}catch(_0x206e73){_0x230ca6['push'](_0x230ca6['shift']());}}}(_0x300d,0x61bd4));function _0x300d(){const _0x2f64c5=['40805kwLmMd','575346zRpSSx','unbind','requires','isEnabled','64950YYlKjZ','558wkiJFg','14EkWBmI','7547350HXCRar','imageEditController','1236488WSrpIW','11896aBEsAg','execute','model','document','imageBlock','getSelectedElement','11gRnvHb','imageInline','config','_isEditable','set','3943467WatGZc','isActive','5ISrMif','element','uploadcare.allowExternalImagesEditing','selection','refresh','plugins','bind','get','editor'];_0x300d=function(){return _0x2f64c5;};return _0x300d();}import{Command as _0x49945f}from'ckeditor5/src/core.js';import{Dialog as _0x6ea064}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x54836d}from'./ui/uploadcareimageeditcontroller.js';function _0x42ba(_0x45949e,_0x45c64a){const _0x300ddb=_0x300d();return _0x42ba=function(_0x42ba97,_0x35a094){_0x42ba97=_0x42ba97-0xb7;let _0x3caf21=_0x300ddb[_0x42ba97];return _0x3caf21;},_0x42ba(_0x45949e,_0x45c64a);}import{createEditabilityChecker as _0x1db201}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x49945f{[_0x483cc1(0xd6)];static get[_0x483cc1(0xd0)](){return[_0x6ea064];}[_0x483cc1(0xc0)];constructor(_0x167c79){const _0x5b9f84=_0x483cc1;super(_0x167c79),this[_0x5b9f84(0xd6)]=void 0x0,this[_0x5b9f84(0xc0)]=_0x1db201(_0x167c79[_0x5b9f84(0xbf)][_0x5b9f84(0xcb)](_0x5b9f84(0xc6))||[]),this[_0x5b9f84(0xc1)]({'isActive':!0x1});}[_0x483cc1(0xc8)](){const _0x49776c=_0x483cc1,_0x5c88fd=this[_0x49776c(0xcc)][_0x49776c(0xb9)][_0x49776c(0xba)][_0x49776c(0xc7)][_0x49776c(0xbc)]();this[_0x49776c(0xd1)]=this[_0x49776c(0xc0)](_0x5c88fd);}[_0x483cc1(0xb8)](){const _0x226117=_0x483cc1;this[_0x226117(0xd6)]&&(this[_0x226117(0xcf)](_0x226117(0xc3)),this[_0x226117(0xd6)]=void 0x0);const _0x4ebb99=this[_0x226117(0xcc)][_0x226117(0xb9)][_0x226117(0xba)][_0x226117(0xc7)][_0x226117(0xbc)]();_0x4ebb99&&(_0x4ebb99['is'](_0x226117(0xc5),_0x226117(0xbb))||_0x4ebb99['is'](_0x226117(0xc5),_0x226117(0xbe)))&&(this[_0x226117(0xd6)]=new _0x54836d(this[_0x226117(0xcc)],this[_0x226117(0xcc)][_0x226117(0xc9)][_0x226117(0xcb)](_0x6ea064),_0x4ebb99),this[_0x226117(0xca)](_0x226117(0xc3))['to'](this[_0x226117(0xd6)],_0x226117(0xc3)));}}
23
+ const _0x4234c7=_0x24b7;(function(_0x4f8b65,_0x338af0){const _0x48a59f=_0x24b7,_0x301a33=_0x4f8b65();while(!![]){try{const _0x3be43c=parseInt(_0x48a59f(0x153))/0x1*(-parseInt(_0x48a59f(0x140))/0x2)+-parseInt(_0x48a59f(0x14e))/0x3*(parseInt(_0x48a59f(0x155))/0x4)+parseInt(_0x48a59f(0x13e))/0x5*(-parseInt(_0x48a59f(0x14a))/0x6)+parseInt(_0x48a59f(0x152))/0x7*(parseInt(_0x48a59f(0x15d))/0x8)+-parseInt(_0x48a59f(0x14f))/0x9*(parseInt(_0x48a59f(0x150))/0xa)+parseInt(_0x48a59f(0x147))/0xb+parseInt(_0x48a59f(0x141))/0xc*(parseInt(_0x48a59f(0x154))/0xd);if(_0x3be43c===_0x338af0)break;else _0x301a33['push'](_0x301a33['shift']());}catch(_0x52d442){_0x301a33['push'](_0x301a33['shift']());}}}(_0x18b5,0xa1b5d));import{Command as _0x2c1cce}from'ckeditor5/src/core.js';function _0x18b5(){const _0x30c49=['uploadcare.allowExternalImagesEditing','5628AKuVWZ','56kKBCGU','1835301NMNBxf','3004uZLCEW','execute','getSelectedElement','set','document','imageBlock','model','unbind','4248HAlegf','imageInline','isActive','imageEditController','6157265MudGat','config','6274fJmVvE','228teDQSD','refresh','plugins','get','editor','selection','4865146DlZNxg','requires','bind','6roMgNv','_isEditable','element','isEnabled','2703VPMmMJ','87336BWxynB','830MzOhnW'];_0x18b5=function(){return _0x30c49;};return _0x18b5();}import{Dialog as _0x1ede65}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x2fcc53}from'./ui/uploadcareimageeditcontroller.js';function _0x24b7(_0x23986f,_0xee4fbf){const _0x18b551=_0x18b5();return _0x24b7=function(_0x24b79a,_0x26bf2b){_0x24b79a=_0x24b79a-0x13c;let _0x3c0aac=_0x18b551[_0x24b79a];return _0x3c0aac;},_0x24b7(_0x23986f,_0xee4fbf);}import{createEditabilityChecker as _0x87e849}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2c1cce{[_0x4234c7(0x13d)];static get[_0x4234c7(0x148)](){return[_0x1ede65];}[_0x4234c7(0x14b)];constructor(_0x171208){const _0x4866e6=_0x4234c7;super(_0x171208),this[_0x4866e6(0x13d)]=void 0x0,this[_0x4866e6(0x14b)]=_0x87e849(_0x171208[_0x4866e6(0x13f)][_0x4866e6(0x144)](_0x4866e6(0x151))||[]),this[_0x4866e6(0x158)]({'isActive':!0x1});}[_0x4234c7(0x142)](){const _0x37d129=_0x4234c7,_0x1c1b23=this[_0x37d129(0x145)][_0x37d129(0x15b)][_0x37d129(0x159)][_0x37d129(0x146)][_0x37d129(0x157)]();this[_0x37d129(0x14d)]=this[_0x37d129(0x14b)](_0x1c1b23);}[_0x4234c7(0x156)](){const _0x70f19=_0x4234c7;this[_0x70f19(0x13d)]&&(this[_0x70f19(0x15c)](_0x70f19(0x13c)),this[_0x70f19(0x13d)]=void 0x0);const _0x11ccec=this[_0x70f19(0x145)][_0x70f19(0x15b)][_0x70f19(0x159)][_0x70f19(0x146)][_0x70f19(0x157)]();_0x11ccec&&(_0x11ccec['is'](_0x70f19(0x14c),_0x70f19(0x15a))||_0x11ccec['is'](_0x70f19(0x14c),_0x70f19(0x15e)))&&(this[_0x70f19(0x13d)]=new _0x2fcc53(this[_0x70f19(0x145)],this[_0x70f19(0x145)][_0x70f19(0x143)][_0x70f19(0x144)](_0x1ede65),_0x11ccec),this[_0x70f19(0x149)](_0x70f19(0x13c))['to'](this[_0x70f19(0x13d)],_0x70f19(0x13c)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33a0a9=_0x2c14;(function(_0x52332f,_0x109b04){const _0x410b42=_0x2c14,_0x4710e2=_0x52332f();while(!![]){try{const _0x4c42c8=parseInt(_0x410b42(0x107))/0x1*(-parseInt(_0x410b42(0x10e))/0x2)+-parseInt(_0x410b42(0x103))/0x3*(parseInt(_0x410b42(0xfb))/0x4)+parseInt(_0x410b42(0xfc))/0x5+parseInt(_0x410b42(0x106))/0x6*(-parseInt(_0x410b42(0x10c))/0x7)+-parseInt(_0x410b42(0xfd))/0x8*(parseInt(_0x410b42(0x102))/0x9)+parseInt(_0x410b42(0x10d))/0xa+parseInt(_0x410b42(0x101))/0xb;if(_0x4c42c8===_0x109b04)break;else _0x4710e2['push'](_0x4710e2['shift']());}catch(_0x2094b7){_0x4710e2['push'](_0x4710e2['shift']());}}}(_0x3715,0x77274));import{Plugin as _0x22bac9}from'ckeditor5/src/core.js';import{Notification as _0x43a44f}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x1624d7}from'./uploadcareimageeditcommand.js';function _0x2c14(_0x590ccd,_0x48f2d5){const _0x37154b=_0x3715();return _0x2c14=function(_0x2c14e3,_0x4f4fb1){_0x2c14e3=_0x2c14e3-0xf9;let _0x54825b=_0x37154b[_0x2c14e3];return _0x54825b;},_0x2c14(_0x590ccd,_0x48f2d5);}import{UploadcareImageReplaceCommand as _0x490a45}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x558cad}from'../uploadcareediting.js';function _0x3715(){const _0x236dfb=['491405vedREt','4617256tPUNNZ','uploadcareImageEdit','commands','add','30013731OpOIwW','9hXdGqG','45qrFhmi','requires','init','360rGZLjD','59870ndYLFo','ImageUtils','isOfficialPlugin','ImageEditing','pluginName','43372IgBhyF','990120RHCPPc','32AytMqG','isPremiumPlugin','uploadcareImageReplace','UploadcareImageEditEditing','141580iFzqtg'];_0x3715=function(){return _0x236dfb;};return _0x3715();}export class UploadcareImageEditEditing extends _0x22bac9{static get[_0x33a0a9(0x10b)](){const _0x3176cf=_0x33a0a9;return _0x3176cf(0xfa);}static get[_0x33a0a9(0x104)](){const _0x50ffbb=_0x33a0a9;return[_0x558cad,_0x43a44f,_0x50ffbb(0x108),_0x50ffbb(0x10a)];}static get[_0x33a0a9(0x109)](){return!0x0;}static get[_0x33a0a9(0x10f)](){return!0x0;}[_0x33a0a9(0x105)](){const _0x4b8716=_0x33a0a9,{editor:_0x1f8eae}=this;_0x1f8eae[_0x4b8716(0xff)][_0x4b8716(0x100)](_0x4b8716(0xfe),new _0x1624d7(_0x1f8eae)),_0x1f8eae[_0x4b8716(0xff)][_0x4b8716(0x100)](_0x4b8716(0xf9),new _0x490a45(_0x1f8eae));}}
23
+ const _0x58e8f1=_0x5925;(function(_0xf00b28,_0x2c53be){const _0x237a1a=_0x5925,_0x2e4335=_0xf00b28();while(!![]){try{const _0x2e2c2a=parseInt(_0x237a1a(0x1d8))/0x1+parseInt(_0x237a1a(0x1da))/0x2+-parseInt(_0x237a1a(0x1df))/0x3*(-parseInt(_0x237a1a(0x1e1))/0x4)+-parseInt(_0x237a1a(0x1e3))/0x5+-parseInt(_0x237a1a(0x1e9))/0x6+-parseInt(_0x237a1a(0x1d9))/0x7*(-parseInt(_0x237a1a(0x1de))/0x8)+parseInt(_0x237a1a(0x1d7))/0x9;if(_0x2e2c2a===_0x2c53be)break;else _0x2e4335['push'](_0x2e4335['shift']());}catch(_0x424084){_0x2e4335['push'](_0x2e4335['shift']());}}}(_0xdd44,0x879cb));import{Plugin as _0x2bbd98}from'ckeditor5/src/core.js';import{Notification as _0x567a43}from'ckeditor5/src/ui.js';function _0xdd44(){const _0x4a7b57=['uploadcareImageReplace','2990745tbiGuv','161569WgVORX','1043133nNVISl','1285372ofdkbP','pluginName','requires','commands','8sbIZoh','168LIkbVi','add','19128wSLwRb','isOfficialPlugin','4320895JmiEQx','UploadcareImageEditEditing','uploadcareImageEdit','init','ImageEditing','ImageUtils','802350JPMESi','isPremiumPlugin'];_0xdd44=function(){return _0x4a7b57;};return _0xdd44();}import{UploadcareImageEditCommand as _0x4ebf93}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1b23a4}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x3b4dd9}from'../uploadcareediting.js';function _0x5925(_0x654cf0,_0x2e0384){const _0xdd443f=_0xdd44();return _0x5925=function(_0x5925d7,_0x3f5c99){_0x5925d7=_0x5925d7-0x1d6;let _0xcdfb2=_0xdd443f[_0x5925d7];return _0xcdfb2;},_0x5925(_0x654cf0,_0x2e0384);}export class UploadcareImageEditEditing extends _0x2bbd98{static get[_0x58e8f1(0x1db)](){const _0x3d0a89=_0x58e8f1;return _0x3d0a89(0x1e4);}static get[_0x58e8f1(0x1dc)](){const _0x539677=_0x58e8f1;return[_0x3b4dd9,_0x567a43,_0x539677(0x1e8),_0x539677(0x1e7)];}static get[_0x58e8f1(0x1e2)](){return!0x0;}static get[_0x58e8f1(0x1ea)](){return!0x0;}[_0x58e8f1(0x1e6)](){const _0x1bb1b5=_0x58e8f1,{editor:_0x57f17b}=this;_0x57f17b[_0x1bb1b5(0x1dd)][_0x1bb1b5(0x1e0)](_0x1bb1b5(0x1e5),new _0x4ebf93(_0x57f17b)),_0x57f17b[_0x1bb1b5(0x1dd)][_0x1bb1b5(0x1e0)](_0x1bb1b5(0x1d6),new _0x1b23a4(_0x57f17b));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x6cfac5}from'ckeditor5/src/core.js';import{ButtonView as _0x207e0b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x553a97}from'ckeditor5/src/icons.js';import{createElement as _0x1f13a3}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 _0x6cfac5{['_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 _0x50e31d=this['editor'];_0x50e31d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x11484a=>{const _0x22518e=_0x50e31d['commands']['get']('uploadcareImageEdit'),_0x3b2720=new _0x207e0b(_0x11484a),t=_0x11484a['t'];return _0x3b2720['set']({'icon':_0x553a97,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3b2720['bind']('isEnabled')['to'](_0x22518e),_0x3b2720['bind']('isOn')['to'](_0x22518e,'isActive'),this['listenTo'](_0x3b2720,'execute',()=>{_0x50e31d['execute']('uploadcareImageEdit'),_0x50e31d['editing']['view']['focus']();}),_0x3b2720;}),this['_initConfig']();}['_initConfig'](){const _0x206fb9=_0x1f13a3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x206fb9),this['listenTo'](this['editor'],'destroy',()=>{_0x206fb9['remove']();});}}
23
+ import{Plugin as _0x2fbba5}from'ckeditor5/src/core.js';import{ButtonView as _0x1ea314}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x256be2}from'ckeditor5/src/icons.js';import{createElement as _0x371eab}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 _0x2fbba5{['_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 _0x292e2c=this['editor'];_0x292e2c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1225d3=>{const _0x26e734=_0x292e2c['commands']['get']('uploadcareImageEdit'),_0xbf388d=new _0x1ea314(_0x1225d3),t=_0x1225d3['t'];return _0xbf388d['set']({'icon':_0x256be2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xbf388d['bind']('isEnabled')['to'](_0x26e734),_0xbf388d['bind']('isOn')['to'](_0x26e734,'isActive'),this['listenTo'](_0xbf388d,'execute',()=>{_0x292e2c['execute']('uploadcareImageEdit'),_0x292e2c['editing']['view']['focus']();}),_0xbf388d;}),this['_initConfig']();}['_initConfig'](){const _0x345ba5=_0x371eab(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x345ba5),this['listenTo'](this['editor'],'destroy',()=>{_0x345ba5['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2fc9d1=_0x5403;function _0x1b32(){var _0x9c3522=['12HUsWVw','bindTemplate','1290732PeDmVq','69463refFmX','4543946khUtdR','fire','3385440MSZmdN','focusCycler','965142OfikVv','1331216xafIoE','56WOePRd','238776ZkYikH','forwardCycle','getFocusableElement','div','createCollection','10DLVVZV','true','focusTracker','15inPxIu'];_0x1b32=function(){return _0x9c3522;};return _0x1b32();}(function(_0x49d394,_0x420315){var _0x4fbdfb=_0x5403,_0x5c3c43=_0x49d394();while(!![]){try{var _0x5d8198=parseInt(_0x4fbdfb(0x15d))/0x1*(-parseInt(_0x4fbdfb(0x15a))/0x2)+-parseInt(_0x4fbdfb(0x15c))/0x3+parseInt(_0x4fbdfb(0x14f))/0x4+-parseInt(_0x4fbdfb(0x159))/0x5*(-parseInt(_0x4fbdfb(0x162))/0x6)+parseInt(_0x4fbdfb(0x150))/0x7*(parseInt(_0x4fbdfb(0x151))/0x8)+-parseInt(_0x4fbdfb(0x160))/0x9+parseInt(_0x4fbdfb(0x156))/0xa*(parseInt(_0x4fbdfb(0x15e))/0xb);if(_0x5d8198===_0x420315)break;else _0x5c3c43['push'](_0x5c3c43['shift']());}catch(_0x4e7318){_0x5c3c43['push'](_0x5c3c43['shift']());}}}(_0x1b32,0x3b957));import{FocusTracker as _0xcd8502}from'ckeditor5/src/utils.js';import{View as _0x45f13a,FocusCycler as _0x73d02a}from'ckeditor5/src/ui.js';function _0x5403(_0x1b78b4,_0x40ef6e){var _0x1b327e=_0x1b32();return _0x5403=function(_0x540349,_0x4a722b){_0x540349=_0x540349-0x14f;var _0x3eff53=_0x1b327e[_0x540349];return _0x3eff53;},_0x5403(_0x1b78b4,_0x40ef6e);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x45f13a{[_0x2fc9d1(0x158)];[_0x2fc9d1(0x161)];constructor(_0x74084a){var _0x46c9f9=_0x2fc9d1;super(_0x74084a),this[_0x46c9f9(0x158)]=new _0xcd8502(),this[_0x46c9f9(0x161)]=new _0x73d02a({'focusables':this[_0x46c9f9(0x155)](),'focusTracker':this[_0x46c9f9(0x158)]});}[_0x2fc9d1(0x153)](){var _0x122b44=_0x2fc9d1;return{'tag':_0x122b44(0x154),'attributes':{'aria-hidden':_0x122b44(0x157),'tabindex':'0'},'on':{'focus':this[_0x122b44(0x15b)]['to'](()=>{var _0x4137f4=_0x122b44;this[_0x4137f4(0x161)][_0x4137f4(0x15f)](_0x4137f4(0x152));})}};}}
23
+ var _0x20dda6=_0x2db9;function _0x2db9(_0x347d81,_0x52dac3){var _0x5cb69e=_0x5cb6();return _0x2db9=function(_0x2db969,_0x1306f4){_0x2db969=_0x2db969-0x11a;var _0x43815b=_0x5cb69e[_0x2db969];return _0x43815b;},_0x2db9(_0x347d81,_0x52dac3);}(function(_0x1ef676,_0x307036){var _0x2db0b6=_0x2db9,_0x63128=_0x1ef676();while(!![]){try{var _0x42e4d1=-parseInt(_0x2db0b6(0x11d))/0x1+parseInt(_0x2db0b6(0x127))/0x2*(parseInt(_0x2db0b6(0x12e))/0x3)+parseInt(_0x2db0b6(0x12b))/0x4*(-parseInt(_0x2db0b6(0x12a))/0x5)+parseInt(_0x2db0b6(0x128))/0x6*(-parseInt(_0x2db0b6(0x129))/0x7)+-parseInt(_0x2db0b6(0x11f))/0x8*(parseInt(_0x2db0b6(0x122))/0x9)+-parseInt(_0x2db0b6(0x11a))/0xa*(parseInt(_0x2db0b6(0x125))/0xb)+parseInt(_0x2db0b6(0x120))/0xc;if(_0x42e4d1===_0x307036)break;else _0x63128['push'](_0x63128['shift']());}catch(_0x354f08){_0x63128['push'](_0x63128['shift']());}}}(_0x5cb6,0xc5b8d));import{FocusTracker as _0x4f1475}from'ckeditor5/src/utils.js';import{View as _0x2da169,FocusCycler as _0x2c77fa}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x5cb6(){var _0x1e3094=['forwardCycle','45729CBZNWX','true','focusTracker','55EIpvtk','focusCycler','302madXld','56724TxnWwG','217MktzbH','725dfIJjw','37768vUXlcl','bindTemplate','div','19104NKuiUI','2219470nQZxGu','createCollection','fire','817249TYplBC','getFocusableElement','1544epbhWS','53016984BaxQcr'];_0x5cb6=function(){return _0x1e3094;};return _0x5cb6();}export class DialogFocusManagerView extends _0x2da169{[_0x20dda6(0x124)];[_0x20dda6(0x126)];constructor(_0x504aa3){var _0x217e85=_0x20dda6;super(_0x504aa3),this[_0x217e85(0x124)]=new _0x4f1475(),this[_0x217e85(0x126)]=new _0x2c77fa({'focusables':this[_0x217e85(0x11b)](),'focusTracker':this[_0x217e85(0x124)]});}[_0x20dda6(0x11e)](){var _0x23aa1c=_0x20dda6;return{'tag':_0x23aa1c(0x12d),'attributes':{'aria-hidden':_0x23aa1c(0x123),'tabindex':'0'},'on':{'focus':this[_0x23aa1c(0x12c)]['to'](()=>{var _0x5a367b=_0x23aa1c;this[_0x5a367b(0x126)][_0x5a367b(0x11c)](_0x5a367b(0x121));})}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x47c529,_0x3f4039){const _0x4cc736=_0x59e1,_0x1f8c24=_0x47c529();while(!![]){try{const _0x3cca35=parseInt(_0x4cc736(0x189))/0x1*(-parseInt(_0x4cc736(0x18f))/0x2)+parseInt(_0x4cc736(0x18c))/0x3+-parseInt(_0x4cc736(0x16c))/0x4*(-parseInt(_0x4cc736(0x171))/0x5)+-parseInt(_0x4cc736(0x175))/0x6*(parseInt(_0x4cc736(0x17a))/0x7)+parseInt(_0x4cc736(0x193))/0x8*(-parseInt(_0x4cc736(0x195))/0x9)+-parseInt(_0x4cc736(0x173))/0xa+parseInt(_0x4cc736(0x187))/0xb;if(_0x3cca35===_0x3f4039)break;else _0x1f8c24['push'](_0x1f8c24['shift']());}catch(_0x360052){_0x1f8c24['push'](_0x1f8c24['shift']());}}}(_0x4b72,0x457e4));import{global as _0x20fa18,DomEmitterMixin as _0x1adad4}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x579dd9){const _0x11a189=_0x59e1,_0x3045e9=z(_0x579dd9);return _0x3b52b0=>!(!_0x3b52b0||!_0x3b52b0['is'](_0x11a189(0x186),_0x11a189(0x184))&&!_0x3b52b0['is'](_0x11a189(0x186),_0x11a189(0x16b)))&&(!!_0x3b52b0[_0x11a189(0x188)](_0x11a189(0x180))||!!_0x3b52b0[_0x11a189(0x188)](_0x11a189(0x194))&&_0x3045e9(_0x3b52b0[_0x11a189(0x166)](_0x11a189(0x194))));}function _0x4b72(){const _0x14ce96=['removeClass','match','(max-width:\x20','getAttribute','join','/-/resize/','change','plugins','imageInline','12KGUhco','get','ImageUtils','function','editing','102815CVBYws','mapper','4726440VjwFCS','setStyle','2273268Dtqzoy','baseURI','isArray','document','listenTo','7dxTidK','viewToDom','stopListening','location','window','image-processing','uploadcareImageId','removeStyle','toViewElement','px)\x20100vw,\x20','imageBlock','origin','element','13841036cVDcAt','hasAttribute','3mNshfv','domConverter','findViewImgElement','1690767UsHMjs','height','x/\x20','157302luzQnE','replace','map','image/webp','17560sMmjpx','src','2097vVTLne','load','addClass','aspect-ratio','filter','width','view','some'];_0x4b72=function(){return _0x14ce96;};return _0x4b72();}function _0x59e1(_0x4dd82c,_0x3935af){const _0x4b7276=_0x4b72();return _0x59e1=function(_0x59e145,_0x477266){_0x59e145=_0x59e145-0x163;let _0x40c155=_0x4b7276[_0x59e145];return _0x40c155;},_0x59e1(_0x4dd82c,_0x3935af);}export function getImageUrls(_0x123109,_0x2155bb){const _0x3842c9=_0x59e1,_0x1a7ac1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x3842c9(0x199)](_0x1eaebb=>_0x1eaebb<=_0x2155bb)[_0x3842c9(0x191)](_0x121525=>_0x123109[_0x3842c9(0x190)](/\/$/,'')+_0x3842c9(0x168)+_0x121525+_0x3842c9(0x18e)+_0x121525+'w');return{'imageFallbackUrl':_0x123109,'imageSources':[{'srcset':_0x1a7ac1[_0x3842c9(0x167)](',\x20'),'sizes':_0x3842c9(0x165)+_0x2155bb+_0x3842c9(0x183)+_0x2155bb+'px','type':_0x3842c9(0x192)}]};}export function getImageDimension(_0x5eb40a,_0x3c9d13,_0x5b79e7){const _0x551ba2=_0x59e1,_0x5248d5=_0x5eb40a[_0x551ba2(0x164)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5248d5?parseInt(_0x5248d5[0x1],0xa):_0x3c9d13,'height':_0x5248d5?parseInt(_0x5248d5[0x2],0xa):_0x5b79e7};}export function showImageProcessingIndicator(_0x4453fe,_0x40d918){const _0x5530ab=_0x59e1,_0x1cdbc2=new(_0x1adad4())(),_0x1fef64=_0x4453fe[_0x5530ab(0x16a)][_0x5530ab(0x16d)](_0x5530ab(0x16e)),_0x2a9e38=_0x4453fe[_0x5530ab(0x170)][_0x5530ab(0x172)][_0x5530ab(0x182)](_0x40d918),_0x45fcbb=_0x1fef64[_0x5530ab(0x18b)](_0x2a9e38),_0x61e4a9=_0x4453fe[_0x5530ab(0x170)][_0x5530ab(0x19b)][_0x5530ab(0x18a)][_0x5530ab(0x17b)](_0x45fcbb),_0x3fc63d=_0x40d918[_0x5530ab(0x166)](_0x5530ab(0x19a)),_0x2b4ee1=_0x40d918[_0x5530ab(0x166)](_0x5530ab(0x18d)),_0x9f8f5c=_0x5530ab(0x17f);_0x4453fe[_0x5530ab(0x170)][_0x5530ab(0x19b)][_0x5530ab(0x169)](_0x4dada9=>{const _0x1d08d6=_0x5530ab;_0x4dada9[_0x1d08d6(0x197)](_0x9f8f5c,_0x2a9e38),_0x4dada9[_0x1d08d6(0x174)](_0x1d08d6(0x198),_0x3fc63d+'/'+_0x2b4ee1,_0x45fcbb);}),_0x1cdbc2[_0x5530ab(0x179)](_0x61e4a9,_0x5530ab(0x196),()=>{const _0x54c2d0=_0x5530ab;_0x1cdbc2[_0x54c2d0(0x17c)](_0x61e4a9,_0x54c2d0(0x196)),_0x4453fe[_0x54c2d0(0x170)][_0x54c2d0(0x19b)][_0x54c2d0(0x169)](_0x18c088=>{const _0x57c12d=_0x54c2d0;_0x18c088[_0x57c12d(0x163)](_0x9f8f5c,_0x2a9e38),_0x18c088[_0x57c12d(0x181)](_0x57c12d(0x198),_0x45fcbb);});});}function z(_0x3fab09){const _0x2d3f05=_0x59e1;if(Array[_0x2d3f05(0x177)](_0x3fab09)){const _0x476b96=_0x3fab09[_0x2d3f05(0x191)](z);return _0x3b3d2b=>_0x476b96[_0x2d3f05(0x19c)](_0x5b9ec6=>_0x5b9ec6(_0x3b3d2b));}if(_0x2d3f05(0x185)==_0x3fab09){const _0x4c0144=_0x20fa18[_0x2d3f05(0x17e)][_0x2d3f05(0x17d)][_0x2d3f05(0x185)];return _0x135e45=>new URL(_0x135e45,_0x20fa18[_0x2d3f05(0x178)][_0x2d3f05(0x176)])[_0x2d3f05(0x185)]==_0x4c0144;}return _0x2d3f05(0x16f)==typeof _0x3fab09?_0x3fab09:_0x3fab09 instanceof RegExp?_0x44f63d=>!(!_0x44f63d[_0x2d3f05(0x164)](_0x3fab09)&&!_0x44f63d[_0x2d3f05(0x190)](/^https?:\/\//,'')[_0x2d3f05(0x164)](_0x3fab09)):()=>!0x1;}
23
+ function _0x2cba(){const _0x1f30e1=['536932ZXqSGR','origin','stopListening','aspect-ratio','15468HPIVWs','533607hqzrHE','domConverter','load','element','window','filter','listenTo','getAttribute','px)\x20100vw,\x20','(max-width:\x20','image-processing','plugins','removeClass','hasAttribute','mapper','128050uxhQXk','src','image/webp','10sLWypj','2754096AkpDER','viewToDom','ImageUtils','view','some','addClass','map','x/\x20','uploadcareImageId','width','function','replace','imageInline','editing','toViewElement','18516gcrCgi','removeStyle','164698cspjpv','imageBlock','setStyle','322UkTkXo','isArray','height','findViewImgElement','change','get','join','baseURI','location','45xNHOGp','document','match','/-/resize/'];_0x2cba=function(){return _0x1f30e1;};return _0x2cba();}function _0x1ea3(_0x558794,_0x711242){const _0x2cba13=_0x2cba();return _0x1ea3=function(_0x1ea3f7,_0x41b8c7){_0x1ea3f7=_0x1ea3f7-0xf5;let _0x45f125=_0x2cba13[_0x1ea3f7];return _0x45f125;},_0x1ea3(_0x558794,_0x711242);}(function(_0x48dd91,_0x31d71a){const _0x3e9360=_0x1ea3,_0x21189f=_0x48dd91();while(!![]){try{const _0x36ec1c=parseInt(_0x3e9360(0x10e))/0x1+parseInt(_0x3e9360(0x11e))/0x2+parseInt(_0x3e9360(0x123))/0x3+parseInt(_0x3e9360(0x122))/0x4*(parseInt(_0x3e9360(0xfc))/0x5)+parseInt(_0x3e9360(0x10c))/0x6*(-parseInt(_0x3e9360(0x111))/0x7)+-parseInt(_0x3e9360(0xfd))/0x8+parseInt(_0x3e9360(0x11a))/0x9*(parseInt(_0x3e9360(0xf9))/0xa);if(_0x36ec1c===_0x31d71a)break;else _0x21189f['push'](_0x21189f['shift']());}catch(_0x3f0e2d){_0x21189f['push'](_0x21189f['shift']());}}}(_0x2cba,0x2ffde));import{global as _0x136a66,DomEmitterMixin as _0x8baea2}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x3f21e3){const _0x3ae55c=_0x1ea3,_0x38fb9d=G(_0x3f21e3);return _0x4db587=>!(!_0x4db587||!_0x4db587['is'](_0x3ae55c(0x126),_0x3ae55c(0x10f))&&!_0x4db587['is'](_0x3ae55c(0x126),_0x3ae55c(0x109)))&&(!!_0x4db587[_0x3ae55c(0xf7)](_0x3ae55c(0x105))||!!_0x4db587[_0x3ae55c(0xf7)](_0x3ae55c(0xfa))&&_0x38fb9d(_0x4db587[_0x3ae55c(0x12a)](_0x3ae55c(0xfa))));}export function getImageUrls(_0x8c8278,_0x48fccd){const _0x571b81=_0x1ea3,_0x157ba9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x571b81(0x128)](_0x5b90ac=>_0x5b90ac<=_0x48fccd)[_0x571b81(0x103)](_0x525935=>_0x8c8278[_0x571b81(0x108)](/\/$/,'')+_0x571b81(0x11d)+_0x525935+_0x571b81(0x104)+_0x525935+'w');return{'imageFallbackUrl':_0x8c8278,'imageSources':[{'srcset':_0x157ba9[_0x571b81(0x117)](',\x20'),'sizes':_0x571b81(0x12c)+_0x48fccd+_0x571b81(0x12b)+_0x48fccd+'px','type':_0x571b81(0xfb)}]};}export function getImageDimension(_0x4a414f,_0x41ced6,_0x204845){const _0xb2bb04=_0x1ea3,_0x2f2fca=_0x4a414f[_0xb2bb04(0x11c)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2f2fca?parseInt(_0x2f2fca[0x1],0xa):_0x41ced6,'height':_0x2f2fca?parseInt(_0x2f2fca[0x2],0xa):_0x204845};}export function showImageProcessingIndicator(_0x1b8442,_0xe66559){const _0x4e0674=_0x1ea3,_0x2fcf86=new(_0x8baea2())(),_0x347bee=_0x1b8442[_0x4e0674(0xf5)][_0x4e0674(0x116)](_0x4e0674(0xff)),_0x2d3d1b=_0x1b8442[_0x4e0674(0x10a)][_0x4e0674(0xf8)][_0x4e0674(0x10b)](_0xe66559),_0x2038fb=_0x347bee[_0x4e0674(0x114)](_0x2d3d1b),_0x2b1e03=_0x1b8442[_0x4e0674(0x10a)][_0x4e0674(0x100)][_0x4e0674(0x124)][_0x4e0674(0xfe)](_0x2038fb),_0x2820e6=_0xe66559[_0x4e0674(0x12a)](_0x4e0674(0x106)),_0x54a1e1=_0xe66559[_0x4e0674(0x12a)](_0x4e0674(0x113)),_0x4ac03b=_0x4e0674(0x12d);_0x1b8442[_0x4e0674(0x10a)][_0x4e0674(0x100)][_0x4e0674(0x115)](_0x5dc7bb=>{const _0x18ce2c=_0x4e0674;_0x5dc7bb[_0x18ce2c(0x102)](_0x4ac03b,_0x2d3d1b),_0x5dc7bb[_0x18ce2c(0x110)](_0x18ce2c(0x121),_0x2820e6+'/'+_0x54a1e1,_0x2038fb);}),_0x2fcf86[_0x4e0674(0x129)](_0x2b1e03,_0x4e0674(0x125),()=>{const _0x43a42f=_0x4e0674;_0x2fcf86[_0x43a42f(0x120)](_0x2b1e03,_0x43a42f(0x125)),_0x1b8442[_0x43a42f(0x10a)][_0x43a42f(0x100)][_0x43a42f(0x115)](_0x147eee=>{const _0x5ce044=_0x43a42f;_0x147eee[_0x5ce044(0xf6)](_0x4ac03b,_0x2d3d1b),_0x147eee[_0x5ce044(0x10d)](_0x5ce044(0x121),_0x2038fb);});});}function G(_0x7ab8ed){const _0x26a2dc=_0x1ea3;if(Array[_0x26a2dc(0x112)](_0x7ab8ed)){const _0x57e30a=_0x7ab8ed[_0x26a2dc(0x103)](G);return _0xdb7fc3=>_0x57e30a[_0x26a2dc(0x101)](_0x4e3dc7=>_0x4e3dc7(_0xdb7fc3));}if(_0x26a2dc(0x11f)==_0x7ab8ed){const _0x3fc6f1=_0x136a66[_0x26a2dc(0x127)][_0x26a2dc(0x119)][_0x26a2dc(0x11f)];return _0x5027c7=>new URL(_0x5027c7,_0x136a66[_0x26a2dc(0x11b)][_0x26a2dc(0x118)])[_0x26a2dc(0x11f)]==_0x3fc6f1;}return _0x26a2dc(0x107)==typeof _0x7ab8ed?_0x7ab8ed:_0x7ab8ed instanceof RegExp?_0x29711f=>!(!_0x29711f[_0x26a2dc(0x11c)](_0x7ab8ed)&&!_0x29711f[_0x26a2dc(0x108)](/^https?:\/\//,'')[_0x26a2dc(0x11c)](_0x7ab8ed)):()=>!0x1;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1b04(){var _0xfa4406=['28ayzBTb','6DFCNVP','208143XOdNXr','36976jtoetw','1274992ZsmMsQ','includes','288012BcOKwF','230545MenmdM','40972IUvaQD','target','259840lpShYs'];_0x1b04=function(){return _0xfa4406;};return _0x1b04();}(function(_0x3d115b,_0x5c36b3){var _0x4aa1bb=_0x54f6,_0x18a84f=_0x3d115b();while(!![]){try{var _0x1dfb9b=-parseInt(_0x4aa1bb(0x157))/0x1+parseInt(_0x4aa1bb(0x153))/0x2+-parseInt(_0x4aa1bb(0x155))/0x3*(-parseInt(_0x4aa1bb(0x151))/0x4)+parseInt(_0x4aa1bb(0x150))/0x5+parseInt(_0x4aa1bb(0x14f))/0x6*(-parseInt(_0x4aa1bb(0x154))/0x7)+parseInt(_0x4aa1bb(0x158))/0x8+-parseInt(_0x4aa1bb(0x156))/0x9;if(_0x1dfb9b===_0x5c36b3)break;else _0x18a84f['push'](_0x18a84f['shift']());}catch(_0x5479bd){_0x18a84f['push'](_0x18a84f['shift']());}}}(_0x1b04,0x19562));function _0x54f6(_0x19426b,_0x55836e){var _0x1b0471=_0x1b04();return _0x54f6=function(_0x54f6ce,_0x3020f4){_0x54f6ce=_0x54f6ce-0x14f;var _0x8c41c5=_0x1b0471[_0x54f6ce];return _0x8c41c5;},_0x54f6(_0x19426b,_0x55836e);}import{getAncestors as _0x45a14b}from'ckeditor5/src/utils.js';export function isAncestor(_0x2e986c,_0xc82976){var _0x2e9818=_0x54f6;return _0x45a14b(_0x2e986c[_0x2e9818(0x152)])[_0x2e9818(0x159)](_0xc82976);}
23
+ function _0x5a68(){var _0xd87f81=['14090499xcgyiE','includes','1778316qhNLOF','4xtxLDq','5KqngOw','5022210vJCaoj','37640304xBnXct','1539900FORhcL','6128913IFYCJT','2540JSULaK','2sDEMRj','target','8XGEbfE','76285ewNPgp'];_0x5a68=function(){return _0xd87f81;};return _0x5a68();}(function(_0x5bf2ae,_0x3fc94f){var _0x25812d=_0x2797,_0xd64175=_0x5bf2ae();while(!![]){try{var _0x5dd9b6=parseInt(_0x25812d(0x98))/0x1*(parseInt(_0x25812d(0x90))/0x2)+parseInt(_0x25812d(0x93))/0x3*(-parseInt(_0x25812d(0x91))/0x4)+-parseInt(_0x25812d(0x92))/0x5*(parseInt(_0x25812d(0x95))/0x6)+parseInt(_0x25812d(0x96))/0x7+-parseInt(_0x25812d(0x8c))/0x8*(-parseInt(_0x25812d(0x8e))/0x9)+-parseInt(_0x25812d(0x97))/0xa*(-parseInt(_0x25812d(0x8d))/0xb)+-parseInt(_0x25812d(0x94))/0xc;if(_0x5dd9b6===_0x3fc94f)break;else _0xd64175['push'](_0xd64175['shift']());}catch(_0x4a8085){_0xd64175['push'](_0xd64175['shift']());}}}(_0x5a68,0xdf09c));function _0x2797(_0x2ce697,_0x32270c){var _0x5a68bd=_0x5a68();return _0x2797=function(_0x279748,_0x168e03){_0x279748=_0x279748-0x8c;var _0x3d978e=_0x5a68bd[_0x279748];return _0x3d978e;},_0x2797(_0x2ce697,_0x32270c);}import{getAncestors as _0x3c5b28}from'ckeditor5/src/utils.js';export function isAncestor(_0x29ac71,_0x86d233){var _0x2b5b44=_0x2797;return _0x3c5b28(_0x29ac71[_0x2b5b44(0x99)])[_0x2b5b44(0x8f)](_0x86d233);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3681(_0x21b376,_0x55e40a){var _0x4d749f=_0x4d74();return _0x3681=function(_0x36811b,_0x25e844){_0x36811b=_0x36811b-0xbc;var _0x3f2804=_0x4d749f[_0x36811b];return _0x3f2804;},_0x3681(_0x21b376,_0x55e40a);}var _0x4097a4=_0x3681;(function(_0x33538b,_0x14942){var _0x1d5cfc=_0x3681,_0x3fdd8f=_0x33538b();while(!![]){try{var _0xc940a=-parseInt(_0x1d5cfc(0xbe))/0x1*(parseInt(_0x1d5cfc(0xc7))/0x2)+parseInt(_0x1d5cfc(0xc2))/0x3*(parseInt(_0x1d5cfc(0xc8))/0x4)+parseInt(_0x1d5cfc(0xc1))/0x5*(-parseInt(_0x1d5cfc(0xbf))/0x6)+-parseInt(_0x1d5cfc(0xbc))/0x7*(-parseInt(_0x1d5cfc(0xc3))/0x8)+parseInt(_0x1d5cfc(0xc9))/0x9*(parseInt(_0x1d5cfc(0xc6))/0xa)+-parseInt(_0x1d5cfc(0xc5))/0xb+parseInt(_0x1d5cfc(0xc4))/0xc*(-parseInt(_0x1d5cfc(0xca))/0xd);if(_0xc940a===_0x14942)break;else _0x3fdd8f['push'](_0x3fdd8f['shift']());}catch(_0x18a390){_0x3fdd8f['push'](_0x3fdd8f['shift']());}}}(_0x4d74,0x71c6e));function _0x4d74(){var _0x493b92=['6IzaXBl','upload','2369135lUcUFs','48693sgnKGn','8RkxGZs','162576gOQYhE','8833429rWwROk','10vCmSsW','98LEqUzu','164xHSKkp','8355924jgFtyQ','390jPgfiQ','4359971UkgHxx','getInfo','1376NdkkJq'];_0x4d74=function(){return _0x493b92;};return _0x4d74();}import{uploadFile as _0x1110e0,info as _0x4d6be1}from'@uploadcare/upload-client';export class UploadUtils{static[_0x4097a4(0xc0)]({file:_0x41873e,..._0x3fd5b9}){return _0x1110e0(_0x41873e,_0x3fd5b9);}static[_0x4097a4(0xbd)](_0xd7d2f0,_0x54424e){return _0x4d6be1(_0xd7d2f0,_0x54424e);}}
23
+ var _0x5a64d4=_0x6f4b;(function(_0x3f55a3,_0x4e180f){var _0xcde685=_0x6f4b,_0x275d21=_0x3f55a3();while(!![]){try{var _0x5933dd=-parseInt(_0xcde685(0x137))/0x1*(parseInt(_0xcde685(0x136))/0x2)+-parseInt(_0xcde685(0x134))/0x3*(parseInt(_0xcde685(0x12f))/0x4)+parseInt(_0xcde685(0x133))/0x5*(-parseInt(_0xcde685(0x13b))/0x6)+parseInt(_0xcde685(0x13a))/0x7*(-parseInt(_0xcde685(0x13c))/0x8)+-parseInt(_0xcde685(0x13d))/0x9*(-parseInt(_0xcde685(0x130))/0xa)+parseInt(_0xcde685(0x135))/0xb*(-parseInt(_0xcde685(0x132))/0xc)+-parseInt(_0xcde685(0x138))/0xd*(-parseInt(_0xcde685(0x139))/0xe);if(_0x5933dd===_0x4e180f)break;else _0x275d21['push'](_0x275d21['shift']());}catch(_0x308cc3){_0x275d21['push'](_0x275d21['shift']());}}}(_0x261c,0xe476e));function _0x6f4b(_0x457a68,_0x275481){var _0x261cc0=_0x261c();return _0x6f4b=function(_0x6f4b33,_0xa950ef){_0x6f4b33=_0x6f4b33-0x12e;var _0x1e8237=_0x261cc0[_0x6f4b33];return _0x1e8237;},_0x6f4b(_0x457a68,_0x275481);}import{uploadFile as _0x596090,info as _0x4fd4cd}from'@uploadcare/upload-client';function _0x261c(){var _0xff9cb=['8iYNMIG','70OPPmrg','getInfo','12gCQxBV','46315PlYvJf','1014051fvLeVZ','9614099gvwoAV','29596sVAaDx','65ZtdcQq','13UFkqVT','59889998wYHURb','14zVKaeR','750WnqBwA','1036104vumxKE','754389NELieg','upload'];_0x261c=function(){return _0xff9cb;};return _0x261c();}export class UploadUtils{static[_0x5a64d4(0x12e)]({file:_0x67a90f,..._0x5cd745}){return _0x596090(_0x67a90f,_0x5cd745);}static[_0x5a64d4(0x131)](_0xf6eba3,_0x2a094d){return _0x4fd4cd(_0xf6eba3,_0x2a094d);}}