@ckeditor/ckeditor5-uploadcare 47.3.0-alpha.4 → 47.3.0-alpha.5

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 _0xea112e,ObservableMixin as _0x228abd}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x578421}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x40b554}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4cee5a}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x53577d}from'../../utils/uploadutils.js';import{getImageUrls as _0xb4eacc,getImageDimension as _0x2d2b98}from'../../utils/editingutils.js';import{isAncestor as _0x173def}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x228abd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x6b8377,_0xe55e46,_0x4e022a){super(),this['_editor']=_0x6b8377,this['_dialog']=_0xe55e46,this['_imageElement']=_0x4e022a,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 _0x57058b=this['_imageElement'],_0x1407aa=_0x57058b['getAttribute']('uploadcareImageId'),_0x35d165=_0x57058b['getAttribute']('src');if(_0x1407aa)await this['_loadImageInfo'](_0x1407aa,_0x35d165);else{if(this['_imageCache']['has'](_0x35d165)){const _0x189bc7=this['_imageCache']['get'](_0x35d165);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x189bc7['url'],this['imageDimension']=_0x189bc7['dimension'],this['imageId']=_0x189bc7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1787a9}=this['_editor'],t=_0x1787a9['t'],_0x559f2c=new _0x4cee5a(_0x1787a9,this['imageStatus'],this['_attributes']);_0x559f2c['bind']('status')['to'](this,'imageStatus'),_0x559f2c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x559f2c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x559f2c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x559f2c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x40b554,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x559f2c,'position':_0x578421['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x559f2c['focus']();},'onHide':()=>{_0x559f2c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x305ec5=>!_0x173def(_0x305ec5,_0x559f2c['element'])}});}['_loadImageInfo'](_0x6169d8,_0x29affd){return _0x53577d['getInfo'](_0x6169d8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x565485=>{const {width:_0x1f6d42,height:_0x18ce34}=_0x565485['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x29affd,this['imageDimension']={'width':_0x1f6d42,'height':_0x18ce34},this['imageId']=_0x6169d8;})['catch'](_0x1e4f57=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1e4f57['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x47f705,_0x153dab){return this['_getImageAsFile'](_0x47f705)['then'](_0x98c9dc=>_0x53577d['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':_0x153dab['signal'],'file':_0x98c9dc,'onProgress':_0x498c88=>{_0x498c88&&_0x498c88['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x498c88['value']));}}))['then'](_0x4d4928=>{const {width:_0x16c4a3,height:_0xe536c5}=_0x4d4928['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d4928['cdnUrl'],this['imageDimension']={'width':_0x16c4a3,'height':_0xe536c5},this['imageId']=_0x4d4928['uuid'],this['imageUploadProgress']=null;const _0x158f8c=_0x47f705['getAttribute']('src');this['_imageCache']['set'](_0x158f8c,{'id':_0x4d4928['uuid'],'url':_0x4d4928['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x329584=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x329584['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4cf824,_0x38f250){_0x4cf824['on']('apply',(_0x3503ee,_0x193bd1)=>{this['_replaceImage'](_0x38f250,_0x193bd1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4cf824['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4cf824['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x45844f,_0x136c31,_0x1abc25){const _0x2524a1=this['_editor'],{width:_0x47aea0,height:_0x5ab43b}=_0x2d2b98(_0x136c31,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x417237,imageSources:_0x5f0f6b}=_0xb4eacc(_0x136c31,_0x47aea0);_0x2524a1['model']['change'](_0x3aee80=>{if('$graveyard'===_0x45844f['root']['rootName']){_0x2524a1['execute']('insertImage',{'imageType':_0x45844f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x45844f['getAttributes']()),'uploadcareImageId':_0x1abc25,'src':_0x417237,'sources':_0x5f0f6b,'width':_0x47aea0,'height':_0x5ab43b}});const _0x365f20=_0x45844f['getChildren']();_0x45844f=_0x2524a1['model']['document']['selection']['getSelectedElement']();for(const _0x397ae8 of _0x365f20)_0x3aee80['append'](_0x3aee80['cloneElement'](_0x397ae8),_0x45844f);}else _0x3aee80['setSelection'](_0x45844f,'on'),_0x2524a1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x45844f['getAttributes']()),'uploadcareImageId':_0x1abc25,'src':_0x417237,'sources':_0x5f0f6b,'width':_0x47aea0,'height':_0x5ab43b},_0x45844f);_0x3aee80['setSelection'](_0x45844f,'on');});}async['_getImageAsFile'](_0x42de77){const _0x537533=_0xea112e['window'],_0x4baedf=_0xea112e['document']['location']['href'],_0x5b7440=new _0x537533['URL'](_0x42de77['getAttribute']('src'),_0x4baedf);if('data:'===_0x5b7440['protocol']){const _0x248239=_0x5b7440['href']['split'](','),_0x49477e=_0x248239[0x0]['match'](/:(.*?);/)[0x1],_0x3073f7=_0x49477e['split']('/')[0x1],_0x456fcd=_0x537533['atob'](_0x248239[_0x248239['length']-0x1]);let _0x45f247=_0x456fcd['length'];const _0x168997=new _0x537533['Uint8Array'](_0x45f247);for(;_0x45f247--;)_0x168997[_0x45f247]=_0x456fcd['charCodeAt'](_0x45f247);return new _0x537533['File']([_0x168997],'image.'+_0x3073f7,{'type':_0x49477e});}const _0x30f544=_0x5b7440['href']['split']('/'),_0x3f428c=_0x30f544[_0x30f544['length']-0x1],_0x259c2e=_0x3f428c['split']('.')[0x1];return _0x537533['fetch'](_0x5b7440['href'])['then'](_0xb801d=>_0xb801d['clone']()['blob']())['then'](_0x1fec3b=>new _0x537533['File']([_0x1fec3b],_0x3f428c,{'type':'image/'+_0x259c2e}));}}
23
+ import{global as _0x3056fa,ObservableMixin as _0x34fd01}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x7031d2}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1fbff9}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x2404ca}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x373025}from'../../utils/uploadutils.js';import{getImageUrls as _0x34352c,getImageDimension as _0x5289e4}from'../../utils/editingutils.js';import{isAncestor as _0x309d39}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x34fd01(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x586001,_0xb67705,_0x1bae0e){super(),this['_editor']=_0x586001,this['_dialog']=_0xb67705,this['_imageElement']=_0x1bae0e,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 _0x2b3d0d=this['_imageElement'],_0x368e51=_0x2b3d0d['getAttribute']('uploadcareImageId'),_0x5a665a=_0x2b3d0d['getAttribute']('src');if(_0x368e51)await this['_loadImageInfo'](_0x368e51,_0x5a665a);else{if(this['_imageCache']['has'](_0x5a665a)){const _0x4cacb3=this['_imageCache']['get'](_0x5a665a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4cacb3['url'],this['imageDimension']=_0x4cacb3['dimension'],this['imageId']=_0x4cacb3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x24c195}=this['_editor'],t=_0x24c195['t'],_0x52bfd0=new _0x2404ca(_0x24c195,this['imageStatus'],this['_attributes']);_0x52bfd0['bind']('status')['to'](this,'imageStatus'),_0x52bfd0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x52bfd0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x52bfd0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x52bfd0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1fbff9,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x52bfd0,'position':_0x7031d2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x52bfd0['focus']();},'onHide':()=>{_0x52bfd0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x34583d=>!_0x309d39(_0x34583d,_0x52bfd0['element'])}});}['_loadImageInfo'](_0x5e5b48,_0x32b331){return _0x373025['getInfo'](_0x5e5b48,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x32ed6d=>{const {width:_0x363165,height:_0x3e92be}=_0x32ed6d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32b331,this['imageDimension']={'width':_0x363165,'height':_0x3e92be},this['imageId']=_0x5e5b48;})['catch'](_0x4259d3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4259d3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x334d0a,_0x31631f){return this['_getImageAsFile'](_0x334d0a)['then'](_0x1b061f=>_0x373025['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':_0x31631f['signal'],'file':_0x1b061f,'onProgress':_0x1dcd45=>{_0x1dcd45&&_0x1dcd45['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1dcd45['value']));}}))['then'](_0x460b78=>{const {width:_0x196287,height:_0x199cc3}=_0x460b78['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x460b78['cdnUrl'],this['imageDimension']={'width':_0x196287,'height':_0x199cc3},this['imageId']=_0x460b78['uuid'],this['imageUploadProgress']=null;const _0x3939c5=_0x334d0a['getAttribute']('src');this['_imageCache']['set'](_0x3939c5,{'id':_0x460b78['uuid'],'url':_0x460b78['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5e7062=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5e7062['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x333224,_0x4839df){_0x333224['on']('apply',(_0x3cd92b,_0x2fc9f7)=>{this['_replaceImage'](_0x4839df,_0x2fc9f7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x333224['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x333224['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1020c9,_0x3d7f1d,_0x56ee68){const _0x276f2f=this['_editor'],{width:_0x32171c,height:_0x6dae5b}=_0x5289e4(_0x3d7f1d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2782c8,imageSources:_0x5221df}=_0x34352c(_0x3d7f1d,_0x32171c);_0x276f2f['model']['change'](_0x388208=>{if('$graveyard'===_0x1020c9['root']['rootName']){_0x276f2f['execute']('insertImage',{'imageType':_0x1020c9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1020c9['getAttributes']()),'uploadcareImageId':_0x56ee68,'src':_0x2782c8,'sources':_0x5221df,'width':_0x32171c,'height':_0x6dae5b}});const _0x156e68=_0x1020c9['getChildren']();_0x1020c9=_0x276f2f['model']['document']['selection']['getSelectedElement']();for(const _0x25e471 of _0x156e68)_0x388208['append'](_0x388208['cloneElement'](_0x25e471),_0x1020c9);}else _0x388208['setSelection'](_0x1020c9,'on'),_0x276f2f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1020c9['getAttributes']()),'uploadcareImageId':_0x56ee68,'src':_0x2782c8,'sources':_0x5221df,'width':_0x32171c,'height':_0x6dae5b},_0x1020c9);_0x388208['setSelection'](_0x1020c9,'on');});}async['_getImageAsFile'](_0x2b9e67){const _0x6e6912=_0x3056fa['window'],_0x268108=_0x3056fa['document']['location']['href'],_0x437e6e=new _0x6e6912['URL'](_0x2b9e67['getAttribute']('src'),_0x268108);if('data:'===_0x437e6e['protocol']){const _0x298701=_0x437e6e['href']['split'](','),_0x3b5298=_0x298701[0x0]['match'](/:(.*?);/)[0x1],_0xd41ff2=_0x3b5298['split']('/')[0x1],_0xca0ddf=_0x6e6912['atob'](_0x298701[_0x298701['length']-0x1]);let _0x9fbc0=_0xca0ddf['length'];const _0x5609f3=new _0x6e6912['Uint8Array'](_0x9fbc0);for(;_0x9fbc0--;)_0x5609f3[_0x9fbc0]=_0xca0ddf['charCodeAt'](_0x9fbc0);return new _0x6e6912['File']([_0x5609f3],'image.'+_0xd41ff2,{'type':_0x3b5298});}const _0x1c6724=_0x437e6e['href']['split']('/'),_0x2e73e3=_0x1c6724[_0x1c6724['length']-0x1],_0x4907fd=_0x2e73e3['split']('.')[0x1];return _0x6e6912['fetch'](_0x437e6e['href'])['then'](_0x36339a=>_0x36339a['clone']()['blob']())['then'](_0x11a3ec=>new _0x6e6912['File']([_0x11a3ec],_0x2e73e3,{'type':'image/'+_0x4907fd}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x590337,_0x242c46){const _0x50dc00=_0x4e58,_0x29b98b=_0x590337();while(!![]){try{const _0x2df4d4=-parseInt(_0x50dc00(0x1ea))/0x1+parseInt(_0x50dc00(0x1de))/0x2*(parseInt(_0x50dc00(0x1db))/0x3)+parseInt(_0x50dc00(0x1e6))/0x4+parseInt(_0x50dc00(0x1df))/0x5*(-parseInt(_0x50dc00(0x1d9))/0x6)+parseInt(_0x50dc00(0x1e0))/0x7+-parseInt(_0x50dc00(0x1d8))/0x8*(-parseInt(_0x50dc00(0x1e2))/0x9)+-parseInt(_0x50dc00(0x1e4))/0xa*(parseInt(_0x50dc00(0x1e9))/0xb);if(_0x2df4d4===_0x242c46)break;else _0x29b98b['push'](_0x29b98b['shift']());}catch(_0x51d362){_0x29b98b['push'](_0x29b98b['shift']());}}}(_0x3559,0xc57ca));function _0x4e58(_0x4ac1a5,_0x259536){const _0x3559e2=_0x3559();return _0x4e58=function(_0x4e5891,_0x27c95d){_0x4e5891=_0x4e5891-0x1d8;let _0x39fcbc=_0x3559e2[_0x4e5891];return _0x39fcbc;},_0x4e58(_0x4ac1a5,_0x259536);}function _0x3559(){const _0x1d1894=['setTemplate','image-edit','11eMEXoK','409593fdTHze','9844152BPRwAk','41526pfZlOc','set','9459PxYbWz','bindTemplate','uc-cloud-image-editor','484iSONXP','240HJnQUa','5142158kheavX','imageSrc','9lLZhfu','uc-light','21173870rdcUOW','ck-uploadcare-theme','3759820vjfZwr'];_0x3559=function(){return _0x1d1894;};return _0x3559();}import{View as _0xe224ad}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0xe224ad{constructor(_0x1c715f,_0x194c59){const _0x9758c5=_0x4e58;super(_0x1c715f);const _0xce1930=this[_0x9758c5(0x1dc)];this[_0x9758c5(0x1da)](_0x9758c5(0x1e1),''),this[_0x9758c5(0x1e7)]({'tag':_0x9758c5(0x1dd),'attributes':{..._0x194c59,'class':[_0x9758c5(0x1e3),_0x9758c5(0x1e5)],'ctx-name':_0x9758c5(0x1e8),'cdn-url':_0xce1930['to'](_0x9758c5(0x1e1))}});}}
23
+ function _0x4a4b(){const _0x2626a1=['6348750iNyAfU','uc-light','6749416sObeap','setTemplate','ck-uploadcare-theme','10885329cPRpnT','1796660krKQRx','53628LQheyp','image-edit','396WGnJju','bindTemplate','12vMbZsA','24whANND','7gODMNL','set','12RkERBx','imageSrc','9JRJYNj','uc-cloud-image-editor','9944209TMIiuW','34292FZWPLU'];_0x4a4b=function(){return _0x2626a1;};return _0x4a4b();}function _0x4b14(_0x3fe128,_0x12d417){const _0x4a4bc5=_0x4a4b();return _0x4b14=function(_0x4b1475,_0x509e99){_0x4b1475=_0x4b1475-0x73;let _0x822b89=_0x4a4bc5[_0x4b1475];return _0x822b89;},_0x4b14(_0x3fe128,_0x12d417);}(function(_0x1ccf71,_0x37bb66){const _0x45338a=_0x4b14,_0x259a27=_0x1ccf71();while(!![]){try{const _0x3861b0=-parseInt(_0x45338a(0x82))/0x1*(-parseInt(_0x45338a(0x87))/0x2)+parseInt(_0x45338a(0x84))/0x3*(parseInt(_0x45338a(0x7a))/0x4)+parseInt(_0x45338a(0x81))/0x5*(-parseInt(_0x45338a(0x75))/0x6)+parseInt(_0x45338a(0x73))/0x7*(parseInt(_0x45338a(0x7d))/0x8)+-parseInt(_0x45338a(0x77))/0x9*(-parseInt(_0x45338a(0x7b))/0xa)+-parseInt(_0x45338a(0x79))/0xb+parseInt(_0x45338a(0x86))/0xc*(-parseInt(_0x45338a(0x80))/0xd);if(_0x3861b0===_0x37bb66)break;else _0x259a27['push'](_0x259a27['shift']());}catch(_0x42af3f){_0x259a27['push'](_0x259a27['shift']());}}}(_0x4a4b,0xc1c6c));import{View as _0x32acda}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x32acda{constructor(_0x1cbd4b,_0x3b0702){const _0x1a5d8f=_0x4b14;super(_0x1cbd4b);const _0x59aa42=this[_0x1a5d8f(0x85)];this[_0x1a5d8f(0x74)](_0x1a5d8f(0x76),''),this[_0x1a5d8f(0x7e)]({'tag':_0x1a5d8f(0x78),'attributes':{..._0x3b0702,'class':[_0x1a5d8f(0x7c),_0x1a5d8f(0x7f)],'ctx-name':_0x1a5d8f(0x83),'cdn-url':_0x59aa42['to'](_0x1a5d8f(0x76))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x4f8c25}from'ckeditor5/src/icons.js';import{ButtonView as _0x5801db,IconView as _0x27d747,View as _0xc6aa9a}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0xc6aa9a{constructor(_0x3fac1a){super(_0x3fac1a);const t=_0x3fac1a['t'];this['set']('errorType',null);const _0xc1ded=new _0x5801db(_0x3fac1a);_0xc1ded['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xc1ded['withText']=!0x0,_0xc1ded['class']='ck-button-action',_0xc1ded['on']('execute',()=>{this['fire']('retry');}),_0xc1ded['bind']('isVisible')['to'](this,'errorType',_0x514f89=>'NotFound'!==_0x514f89);const _0x427812=new _0x27d747();_0x427812['content']=_0x4f8c25,_0x427812['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1986c1=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':[_0x427812,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1986c1['to']('errorType',_0x2170d6=>t('NotFound'!==_0x2170d6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xc1ded]},{'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 _0x26544e}from'ckeditor5/src/icons.js';import{ButtonView as _0x9ad82b,IconView as _0x2c8613,View as _0x3215c2}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x3215c2{constructor(_0x126eb1){super(_0x126eb1);const t=_0x126eb1['t'];this['set']('errorType',null);const _0x373ee6=new _0x9ad82b(_0x126eb1);_0x373ee6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x373ee6['withText']=!0x0,_0x373ee6['class']='ck-button-action',_0x373ee6['on']('execute',()=>{this['fire']('retry');}),_0x373ee6['bind']('isVisible')['to'](this,'errorType',_0x2bedbd=>'NotFound'!==_0x2bedbd);const _0x10efe9=new _0x2c8613();_0x10efe9['content']=_0x26544e,_0x10efe9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xcc81e2=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':[_0x10efe9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xcc81e2['to']('errorType',_0x594aea=>t('NotFound'!==_0x594aea?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x373ee6]},{'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 _0x2f81c8,View as _0x1b82b7}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x1b82b7{constructor(_0x25caa7){super(_0x25caa7);const t=_0x25caa7['t'],_0x15dbbe=this['bindTemplate'],_0x24be96=new _0x2f81c8();_0x24be96['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':[_0x24be96,{'text':_0x15dbbe['to']('imageUploadProgress',_0x244f69=>t('Loading\x20image...')+'\x20('+(_0x244f69||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 _0x12cee7,View as _0x269307}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x269307{constructor(_0x38826e){super(_0x38826e);const t=_0x38826e['t'],_0x229345=this['bindTemplate'],_0x5412d5=new _0x12cee7();_0x5412d5['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':[_0x5412d5,{'text':_0x229345['to']('imageUploadProgress',_0x178b27=>t('Loading\x20image...')+'\x20('+(_0x178b27||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 _0x3f5225=_0x4d28;function _0x4d28(_0x2b4d58,_0x4a340f){const _0x290518=_0x2905();return _0x4d28=function(_0x4d2898,_0x36c50f){_0x4d2898=_0x4d2898-0x80;let _0x39ec96=_0x290518[_0x4d2898];return _0x39ec96;},_0x4d28(_0x2b4d58,_0x4a340f);}(function(_0x245bc7,_0x3d95ce){const _0x46c9f5=_0x4d28,_0x11e761=_0x245bc7();while(!![]){try{const _0x289eeb=-parseInt(_0x46c9f5(0x8a))/0x1*(-parseInt(_0x46c9f5(0xad))/0x2)+-parseInt(_0x46c9f5(0xae))/0x3*(parseInt(_0x46c9f5(0x82))/0x4)+-parseInt(_0x46c9f5(0x80))/0x5*(parseInt(_0x46c9f5(0x87))/0x6)+parseInt(_0x46c9f5(0x88))/0x7*(-parseInt(_0x46c9f5(0xb5))/0x8)+parseInt(_0x46c9f5(0x84))/0x9*(parseInt(_0x46c9f5(0x90))/0xa)+parseInt(_0x46c9f5(0x97))/0xb*(-parseInt(_0x46c9f5(0xa0))/0xc)+parseInt(_0x46c9f5(0xa6))/0xd;if(_0x289eeb===_0x3d95ce)break;else _0x11e761['push'](_0x11e761['shift']());}catch(_0x318795){_0x11e761['push'](_0x11e761['shift']());}}}(_0x2905,0xb415e));import{View as _0x168a17}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1e8075}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x34ab50}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x40914a}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1c6c19}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x1c6c19{[_0x3f5225(0x98)];[_0x3f5225(0xa9)];[_0x3f5225(0x9e)];[_0x3f5225(0x9f)];[_0x3f5225(0x81)];constructor(_0x28b43f,_0x1d9547,_0x13989a){const _0x1ae3d8=_0x3f5225;super(_0x28b43f),this[_0x1ae3d8(0x98)]=this[_0x1ae3d8(0xab)](),this[_0x1ae3d8(0xa9)]=new _0x1e8075(_0x28b43f),this[_0x1ae3d8(0x9e)]=new _0x34ab50(_0x28b43f),this[_0x1ae3d8(0x9f)]=new _0x40914a(_0x28b43f,_0x13989a),this[_0x1ae3d8(0x81)]=new _0x168a17(_0x28b43f),this[_0x1ae3d8(0x81)][_0x1ae3d8(0x8c)](this[_0x1ae3d8(0xb8)]()),this[_0x1ae3d8(0x9a)](_0x1ae3d8(0xa1),_0x1d9547),this[_0x1ae3d8(0x8c)]({'tag':_0x1ae3d8(0x9d),'attributes':{'class':['ck',_0x1ae3d8(0x83),_0x1ae3d8(0x93)],'tabindex':'-1'},'children':this[_0x1ae3d8(0x98)]}),this[_0x1ae3d8(0xb0)](),this[_0x1ae3d8(0xb3)](_0x1ae3d8(0xaa),()=>{const _0xbb3bd0=_0x1ae3d8;this[_0xbb3bd0(0xa8)](this[_0xbb3bd0(0x94)],_0x386af8=>{const _0x3b0dc9=_0xbb3bd0;this[_0x3b0dc9(0xb7)](_0x386af8);});}),this['on'](_0x1ae3d8(0xb9),()=>{const _0x4f2003=_0x1ae3d8;this[_0x4f2003(0xb0)]();}),this[_0x1ae3d8(0x96)]();}[_0x3f5225(0x8f)](){const _0x172a26=_0x3f5225;this[_0x172a26(0x94)][_0x172a26(0x8f)]();}[_0x3f5225(0xb0)](){const _0x5e1efc=_0x3f5225;switch(this[_0x5e1efc(0x98)][_0x5e1efc(0xa7)](),this[_0x5e1efc(0xa1)]){case _0x5e1efc(0xac):this[_0x5e1efc(0x98)][_0x5e1efc(0x99)](this[_0x5e1efc(0xa9)]);break;case _0x5e1efc(0x8b):this[_0x5e1efc(0x98)][_0x5e1efc(0x99)](this[_0x5e1efc(0x9e)]);break;case _0x5e1efc(0xb4):this[_0x5e1efc(0x98)][_0x5e1efc(0x9c)]([this[_0x5e1efc(0x9f)],this[_0x5e1efc(0x81)]]);}}[_0x3f5225(0xa8)](_0x1f881d,_0x34e61e){const _0x43b54a=_0x3f5225,_0x53db0b=_0x43b54a(0x9b),_0x1ce041=_0x1f881d[_0x43b54a(0xa3)](_0x53db0b);if(_0x1ce041)return _0x34e61e(_0x1ce041);const _0x1c781d=new MutationObserver(_0x329f13=>{const _0x4934fe=_0x43b54a,_0x2b0581=_0x329f13[_0x4934fe(0x8e)](_0x18eafe=>_0x18eafe[_0x4934fe(0xa2)]===_0x1f881d&&_0x18eafe[_0x4934fe(0xaf)][_0x4934fe(0x92)]>0x0&&_0x18eafe[_0x4934fe(0xaf)][0x0][_0x4934fe(0x91)][_0x4934fe(0xb1)]()===_0x53db0b);_0x2b0581[_0x4934fe(0x92)]&&(_0x1c781d[_0x4934fe(0x8d)](),_0x34e61e(_0x2b0581[0x0][_0x4934fe(0xaf)][0x0]));});_0x1c781d[_0x43b54a(0xa4)](_0x1f881d,{'childList':!0x0,'subtree':!0x0});}[_0x3f5225(0xb7)](_0x47945f){const _0x29bff1=_0x3f5225;_0x47945f[_0x29bff1(0xb6)](_0x29bff1(0x89),_0x4cdc7f=>{const _0x22c55a=_0x29bff1;this[_0x22c55a(0x86)](_0x22c55a(0x89),{'imageSrc':_0x4cdc7f[_0x22c55a(0xb2)][_0x22c55a(0xa5)]});}),_0x47945f[_0x29bff1(0xb6)](_0x29bff1(0x85),()=>{const _0x23e943=_0x29bff1;this[_0x23e943(0x86)](_0x23e943(0x85));});}[_0x3f5225(0x96)](){const _0x27319c=_0x3f5225;this[_0x27319c(0x9e)]['on'](_0x27319c(0x95),()=>{const _0x3a93b4=_0x27319c;this[_0x3a93b4(0x86)](_0x3a93b4(0x95));});}}function _0x2905(){const _0xe1b789=['16540nNjXlL','nodeName','length','ck-uploadcare-form','element','retry','_addErrorViewListeners','3443DvtaTN','_items','add','set','uc-cloud-image-editor','addMany','div','_errorView','_editingView','10884fDzsRB','status','target','querySelector','observe','cdnUrl','31292846AkhtUm','clear','_waitForImageEditorComponent','_loadingView','render','createCollection','uploading','13652IEBUWM','1398ZxvUvA','addedNodes','_setView','toLowerCase','detail','once','ready','1571336TSgEOu','addEventListener','_addUploadcareImageEditorListeners','getFocusableElement','change:status','935140uPlAYT','_focusableView','11920NMNmRd','ck-reset_all-excluded','4131peEpvE','cancel','fire','30wopQTA','7YUNpFK','apply','55vngtlR','error','setTemplate','disconnect','filter','focus'];_0x2905=function(){return _0xe1b789;};return _0x2905();}
23
+ const _0x248d1f=_0x34c2;(function(_0x33628c,_0x54e0eb){const _0x143e07=_0x34c2,_0x93f1df=_0x33628c();while(!![]){try{const _0x1ef3a5=parseInt(_0x143e07(0x16d))/0x1*(-parseInt(_0x143e07(0x185))/0x2)+parseInt(_0x143e07(0x174))/0x3*(parseInt(_0x143e07(0x18b))/0x4)+-parseInt(_0x143e07(0x168))/0x5*(-parseInt(_0x143e07(0x16c))/0x6)+parseInt(_0x143e07(0x186))/0x7*(parseInt(_0x143e07(0x18f))/0x8)+-parseInt(_0x143e07(0x17a))/0x9*(-parseInt(_0x143e07(0x190))/0xa)+parseInt(_0x143e07(0x160))/0xb*(-parseInt(_0x143e07(0x163))/0xc)+parseInt(_0x143e07(0x178))/0xd;if(_0x1ef3a5===_0x54e0eb)break;else _0x93f1df['push'](_0x93f1df['shift']());}catch(_0x25cdb4){_0x93f1df['push'](_0x93f1df['shift']());}}}(_0x1b16,0xaf4f6));import{View as _0x25376f}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1e9f61}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x753c7f}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x2c800e}from'./uploadcareimageeditformeditingview.js';function _0x1b16(){const _0x2bafca=['div','_focusableView','_errorView','getFocusableElement','toLowerCase','ready','132654uyenIE','84889KUMDqq','addMany','querySelector','cancel','detail','21116jxEDzR','add','cdnUrl','addedNodes','544krkMXk','6515390IZOOnY','_setView','_items','_loadingView','status','set','_editingView','uploading','_waitForImageEditorComponent','setTemplate','984467eRnECw','target','ck-reset_all-excluded','84jAYrxS','length','once','_addErrorViewListeners','focus','435TlUPOL','nodeName','element','createCollection','24834XRTqCL','17ckKEyE','uc-cloud-image-editor','fire','addEventListener','change:status','_addUploadcareImageEditorListeners','filter','135YZZOth','disconnect','apply','render','5177705zykuQy','ck-uploadcare-form','9zhYEox','clear','retry','observe','error'];_0x1b16=function(){return _0x2bafca;};return _0x1b16();}function _0x34c2(_0x45b09b,_0x4f8f95){const _0x1b1641=_0x1b16();return _0x34c2=function(_0x34c27e,_0x140ddc){_0x34c27e=_0x34c27e-0x15f;let _0x575323=_0x1b1641[_0x34c27e];return _0x575323;},_0x34c2(_0x45b09b,_0x4f8f95);}import{DialogFocusManagerView as _0x58c1cd}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x58c1cd{[_0x248d1f(0x192)];[_0x248d1f(0x193)];[_0x248d1f(0x181)];[_0x248d1f(0x196)];[_0x248d1f(0x180)];constructor(_0x51ad6a,_0x2682a5,_0x23891f){const _0xfee8b=_0x248d1f;super(_0x51ad6a),this[_0xfee8b(0x192)]=this[_0xfee8b(0x16b)](),this[_0xfee8b(0x193)]=new _0x1e9f61(_0x51ad6a),this[_0xfee8b(0x181)]=new _0x753c7f(_0x51ad6a),this[_0xfee8b(0x196)]=new _0x2c800e(_0x51ad6a,_0x23891f),this[_0xfee8b(0x180)]=new _0x25376f(_0x51ad6a),this[_0xfee8b(0x180)][_0xfee8b(0x15f)](this[_0xfee8b(0x182)]()),this[_0xfee8b(0x195)](_0xfee8b(0x194),_0x2682a5),this[_0xfee8b(0x15f)]({'tag':_0xfee8b(0x17f),'attributes':{'class':['ck',_0xfee8b(0x162),_0xfee8b(0x179)],'tabindex':'-1'},'children':this[_0xfee8b(0x192)]}),this[_0xfee8b(0x191)](),this[_0xfee8b(0x165)](_0xfee8b(0x177),()=>{const _0x1f7442=_0xfee8b;this[_0x1f7442(0x198)](this[_0x1f7442(0x16a)],_0x175aed=>{const _0x5dec8=_0x1f7442;this[_0x5dec8(0x172)](_0x175aed);});}),this['on'](_0xfee8b(0x171),()=>{const _0x5362bc=_0xfee8b;this[_0x5362bc(0x191)]();}),this[_0xfee8b(0x166)]();}[_0x248d1f(0x167)](){const _0x173638=_0x248d1f;this[_0x173638(0x16a)][_0x173638(0x167)]();}[_0x248d1f(0x191)](){const _0x2387d9=_0x248d1f;switch(this[_0x2387d9(0x192)][_0x2387d9(0x17b)](),this[_0x2387d9(0x194)]){case _0x2387d9(0x197):this[_0x2387d9(0x192)][_0x2387d9(0x18c)](this[_0x2387d9(0x193)]);break;case _0x2387d9(0x17e):this[_0x2387d9(0x192)][_0x2387d9(0x18c)](this[_0x2387d9(0x181)]);break;case _0x2387d9(0x184):this[_0x2387d9(0x192)][_0x2387d9(0x187)]([this[_0x2387d9(0x196)],this[_0x2387d9(0x180)]]);}}[_0x248d1f(0x198)](_0x82edfa,_0x243c90){const _0x4c5e34=_0x248d1f,_0x3505da=_0x4c5e34(0x16e),_0x2d8b58=_0x82edfa[_0x4c5e34(0x188)](_0x3505da);if(_0x2d8b58)return _0x243c90(_0x2d8b58);const _0x36d6f6=new MutationObserver(_0x312b39=>{const _0xc13d2f=_0x4c5e34,_0x3c975c=_0x312b39[_0xc13d2f(0x173)](_0x48d95b=>_0x48d95b[_0xc13d2f(0x161)]===_0x82edfa&&_0x48d95b[_0xc13d2f(0x18e)][_0xc13d2f(0x164)]>0x0&&_0x48d95b[_0xc13d2f(0x18e)][0x0][_0xc13d2f(0x169)][_0xc13d2f(0x183)]()===_0x3505da);_0x3c975c[_0xc13d2f(0x164)]&&(_0x36d6f6[_0xc13d2f(0x175)](),_0x243c90(_0x3c975c[0x0][_0xc13d2f(0x18e)][0x0]));});_0x36d6f6[_0x4c5e34(0x17d)](_0x82edfa,{'childList':!0x0,'subtree':!0x0});}[_0x248d1f(0x172)](_0x38f254){const _0x4f0db7=_0x248d1f;_0x38f254[_0x4f0db7(0x170)](_0x4f0db7(0x176),_0x542041=>{const _0x4fb27f=_0x4f0db7;this[_0x4fb27f(0x16f)](_0x4fb27f(0x176),{'imageSrc':_0x542041[_0x4fb27f(0x18a)][_0x4fb27f(0x18d)]});}),_0x38f254[_0x4f0db7(0x170)](_0x4f0db7(0x189),()=>{const _0xc023d4=_0x4f0db7;this[_0xc023d4(0x16f)](_0xc023d4(0x189));});}[_0x248d1f(0x166)](){const _0x44ce35=_0x248d1f;this[_0x44ce35(0x181)]['on'](_0x44ce35(0x17c),()=>{const _0x8a978c=_0x44ce35;this[_0x8a978c(0x16f)](_0x8a978c(0x17c));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x53ca(){const _0x3836ed=['uploadcare.allowExternalImagesEditing','refresh','getSelectedElement','_isEditable','1771748IuXHUK','isEnabled','bind','set','1062wRzuMT','10035IHtFGm','26081TAIEvW','execute','model','unbind','591039zzoinw','2954646yriKkm','imageEditController','16pPnVfN','10fnTYWY','plugins','document','586377eibZbc','element','isActive','107472ADbfge','imageInline','imageBlock','42UtBipa','get','24RbAbIA','selection','config','editor','requires'];_0x53ca=function(){return _0x3836ed;};return _0x53ca();}function _0x3588(_0x511376,_0x108f42){const _0x53ca5f=_0x53ca();return _0x3588=function(_0x358837,_0x2358fe){_0x358837=_0x358837-0x1f0;let _0x59b21e=_0x53ca5f[_0x358837];return _0x59b21e;},_0x3588(_0x511376,_0x108f42);}const _0xebc598=_0x3588;(function(_0x74fa55,_0x568f69){const _0x209f13=_0x3588,_0x508490=_0x74fa55();while(!![]){try{const _0x51a406=-parseInt(_0x209f13(0x206))/0x1*(parseInt(_0x209f13(0x20d))/0x2)+-parseInt(_0x209f13(0x20a))/0x3+parseInt(_0x209f13(0x200))/0x4+parseInt(_0x209f13(0x205))/0x5*(parseInt(_0x209f13(0x204))/0x6)+parseInt(_0x209f13(0x1f5))/0x7*(parseInt(_0x209f13(0x1f2))/0x8)+parseInt(_0x209f13(0x20b))/0x9*(-parseInt(_0x209f13(0x20e))/0xa)+-parseInt(_0x209f13(0x211))/0xb*(-parseInt(_0x209f13(0x1f7))/0xc);if(_0x51a406===_0x568f69)break;else _0x508490['push'](_0x508490['shift']());}catch(_0x170eba){_0x508490['push'](_0x508490['shift']());}}}(_0x53ca,0x3d62f));import{Command as _0x55f2d7}from'ckeditor5/src/core.js';import{Dialog as _0x4f3ed5}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x3f853c}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x1cf366}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x55f2d7{[_0xebc598(0x20c)];static get[_0xebc598(0x1fb)](){return[_0x4f3ed5];}[_0xebc598(0x1ff)];constructor(_0x19f850){const _0x61dea2=_0xebc598;super(_0x19f850),this[_0x61dea2(0x20c)]=void 0x0,this[_0x61dea2(0x1ff)]=_0x1cf366(_0x19f850[_0x61dea2(0x1f9)][_0x61dea2(0x1f6)](_0x61dea2(0x1fc))||[]),this[_0x61dea2(0x203)]({'isActive':!0x1});}[_0xebc598(0x1fd)](){const _0x463121=_0xebc598,_0x127a56=this[_0x463121(0x1fa)][_0x463121(0x208)][_0x463121(0x210)][_0x463121(0x1f8)][_0x463121(0x1fe)]();this[_0x463121(0x201)]=this[_0x463121(0x1ff)](_0x127a56);}[_0xebc598(0x207)](){const _0x2d97c0=_0xebc598;this[_0x2d97c0(0x20c)]&&(this[_0x2d97c0(0x209)](_0x2d97c0(0x1f1)),this[_0x2d97c0(0x20c)]=void 0x0);const _0x3b8d19=this[_0x2d97c0(0x1fa)][_0x2d97c0(0x208)][_0x2d97c0(0x210)][_0x2d97c0(0x1f8)][_0x2d97c0(0x1fe)]();_0x3b8d19&&(_0x3b8d19['is'](_0x2d97c0(0x1f0),_0x2d97c0(0x1f4))||_0x3b8d19['is'](_0x2d97c0(0x1f0),_0x2d97c0(0x1f3)))&&(this[_0x2d97c0(0x20c)]=new _0x3f853c(this[_0x2d97c0(0x1fa)],this[_0x2d97c0(0x1fa)][_0x2d97c0(0x20f)][_0x2d97c0(0x1f6)](_0x4f3ed5),_0x3b8d19),this[_0x2d97c0(0x202)](_0x2d97c0(0x1f1))['to'](this[_0x2d97c0(0x20c)],_0x2d97c0(0x1f1)));}}
23
+ const _0x2f175a=_0x1773;(function(_0x37386c,_0x5a5069){const _0x2226e2=_0x1773,_0x34f62f=_0x37386c();while(!![]){try{const _0x3cea20=-parseInt(_0x2226e2(0x9a))/0x1*(-parseInt(_0x2226e2(0xa2))/0x2)+parseInt(_0x2226e2(0x98))/0x3*(-parseInt(_0x2226e2(0x9f))/0x4)+-parseInt(_0x2226e2(0x97))/0x5*(parseInt(_0x2226e2(0xa7))/0x6)+-parseInt(_0x2226e2(0x9b))/0x7*(-parseInt(_0x2226e2(0xa3))/0x8)+-parseInt(_0x2226e2(0x8a))/0x9+parseInt(_0x2226e2(0xa0))/0xa+parseInt(_0x2226e2(0x96))/0xb;if(_0x3cea20===_0x5a5069)break;else _0x34f62f['push'](_0x34f62f['shift']());}catch(_0x37d2e6){_0x34f62f['push'](_0x34f62f['shift']());}}}(_0x26c3,0xdeb76));import{Command as _0x13c991}from'ckeditor5/src/core.js';import{Dialog as _0x3d45d0}from'ckeditor5/src/ui.js';function _0x26c3(){const _0x1d602a=['isEnabled','plugins','execute','isActive','selection','32680120eNaxYt','443545MniexW','4023483qEiHBF','uploadcare.allowExternalImagesEditing','96905DElsNk','71666DgMBaM','element','set','bind','4qMIaZb','3101340fxyLlO','config','4mKsfIr','800teqNMG','imageInline','requires','model','84jhxcSe','getSelectedElement','document','editor','9029979WogPpr','unbind','get','_isEditable','refresh','imageBlock','imageEditController'];_0x26c3=function(){return _0x1d602a;};return _0x26c3();}import{UploadcareImageEditController as _0x2ebeca}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x387d90}from'../utils/editingutils.js';function _0x1773(_0x1cb071,_0x127464){const _0x26c3e2=_0x26c3();return _0x1773=function(_0x1773fb,_0x6bad90){_0x1773fb=_0x1773fb-0x87;let _0x20a822=_0x26c3e2[_0x1773fb];return _0x20a822;},_0x1773(_0x1cb071,_0x127464);}export class UploadcareImageEditCommand extends _0x13c991{[_0x2f175a(0x90)];static get[_0x2f175a(0xa5)](){return[_0x3d45d0];}[_0x2f175a(0x8d)];constructor(_0x5bc4f6){const _0x57bfc1=_0x2f175a;super(_0x5bc4f6),this[_0x57bfc1(0x90)]=void 0x0,this[_0x57bfc1(0x8d)]=_0x387d90(_0x5bc4f6[_0x57bfc1(0xa1)][_0x57bfc1(0x8c)](_0x57bfc1(0x99))||[]),this[_0x57bfc1(0x9d)]({'isActive':!0x1});}[_0x2f175a(0x8e)](){const _0x3a54f4=_0x2f175a,_0x401181=this[_0x3a54f4(0x89)][_0x3a54f4(0xa6)][_0x3a54f4(0x88)][_0x3a54f4(0x95)][_0x3a54f4(0x87)]();this[_0x3a54f4(0x91)]=this[_0x3a54f4(0x8d)](_0x401181);}[_0x2f175a(0x93)](){const _0x43f624=_0x2f175a;this[_0x43f624(0x90)]&&(this[_0x43f624(0x8b)](_0x43f624(0x94)),this[_0x43f624(0x90)]=void 0x0);const _0xb4daee=this[_0x43f624(0x89)][_0x43f624(0xa6)][_0x43f624(0x88)][_0x43f624(0x95)][_0x43f624(0x87)]();_0xb4daee&&(_0xb4daee['is'](_0x43f624(0x9c),_0x43f624(0x8f))||_0xb4daee['is'](_0x43f624(0x9c),_0x43f624(0xa4)))&&(this[_0x43f624(0x90)]=new _0x2ebeca(this[_0x43f624(0x89)],this[_0x43f624(0x89)][_0x43f624(0x92)][_0x43f624(0x8c)](_0x3d45d0),_0xb4daee),this[_0x43f624(0x9e)](_0x43f624(0x94))['to'](this[_0x43f624(0x90)],_0x43f624(0x94)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e4ec3=_0x369b;function _0x369b(_0x551296,_0x5f4ccc){const _0x151e50=_0x151e();return _0x369b=function(_0x369b5d,_0x31476c){_0x369b5d=_0x369b5d-0xaa;let _0x476a68=_0x151e50[_0x369b5d];return _0x476a68;},_0x369b(_0x551296,_0x5f4ccc);}(function(_0x9fc339,_0x26f013){const _0x7764da=_0x369b,_0x3d3e13=_0x9fc339();while(!![]){try{const _0x190448=parseInt(_0x7764da(0xb3))/0x1*(-parseInt(_0x7764da(0xb5))/0x2)+parseInt(_0x7764da(0xae))/0x3+parseInt(_0x7764da(0xb7))/0x4*(-parseInt(_0x7764da(0xb9))/0x5)+-parseInt(_0x7764da(0xaf))/0x6*(-parseInt(_0x7764da(0xad))/0x7)+-parseInt(_0x7764da(0xb0))/0x8*(-parseInt(_0x7764da(0xc2))/0x9)+parseInt(_0x7764da(0xac))/0xa*(-parseInt(_0x7764da(0xb1))/0xb)+parseInt(_0x7764da(0xab))/0xc*(parseInt(_0x7764da(0xbb))/0xd);if(_0x190448===_0x26f013)break;else _0x3d3e13['push'](_0x3d3e13['shift']());}catch(_0x495247){_0x3d3e13['push'](_0x3d3e13['shift']());}}}(_0x151e,0x23457));import{Plugin as _0x31d29b}from'ckeditor5/src/core.js';import{Notification as _0x1106ef}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x5d073a}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x3bc88a}from'./uploadcareimagereplacecommand.js';function _0x151e(){const _0x48493b=['ImageUtils','95PTskSx','init','13RRxgEN','commands','UploadcareImageEditEditing','ImageEditing','pluginName','isPremiumPlugin','add','3096DOHvOZ','uploadcareImageEdit','5388912FMKDWL','1625390DxMXTF','161CjwfGv','615213rpVtCO','5388kCgkvy','472IhRuZr','11LIwdhD','requires','5YBMSgL','isOfficialPlugin','86736gqlBGI','uploadcareImageReplace','36052dmWPzu'];_0x151e=function(){return _0x48493b;};return _0x151e();}import{UploadcareEditing as _0x4ad7db}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x31d29b{static get[_0x4e4ec3(0xbf)](){const _0x4b20da=_0x4e4ec3;return _0x4b20da(0xbd);}static get[_0x4e4ec3(0xb2)](){const _0x3ce935=_0x4e4ec3;return[_0x4ad7db,_0x1106ef,_0x3ce935(0xb8),_0x3ce935(0xbe)];}static get[_0x4e4ec3(0xb4)](){return!0x0;}static get[_0x4e4ec3(0xc0)](){return!0x0;}[_0x4e4ec3(0xba)](){const _0x20e05c=_0x4e4ec3,{editor:_0x48295d}=this;_0x48295d[_0x20e05c(0xbc)][_0x20e05c(0xc1)](_0x20e05c(0xaa),new _0x5d073a(_0x48295d)),_0x48295d[_0x20e05c(0xbc)][_0x20e05c(0xc1)](_0x20e05c(0xb6),new _0x3bc88a(_0x48295d));}}
23
+ const _0x4b5c5a=_0x64c3;function _0x3753(){const _0xe1d832=['uploadcareImageReplace','isOfficialPlugin','requires','UploadcareImageEditEditing','147970ElvwrK','22EJOuQh','13453tlWdxq','ImageUtils','ImageEditing','168288VUQEyA','add','pluginName','isPremiumPlugin','74080xzTIyG','init','commands','1507833EQHWjQ','1245024kRixYL','2232874KkPkMx','30dbVXZq','32LHkDyJ','1045wtdeGX','uploadcareImageEdit'];_0x3753=function(){return _0xe1d832;};return _0x3753();}(function(_0x26771d,_0x332e02){const _0x3675d3=_0x64c3,_0x26d1c7=_0x26771d();while(!![]){try{const _0x3167f6=parseInt(_0x3675d3(0x7d))/0x1*(-parseInt(_0x3675d3(0x7c))/0x2)+parseInt(_0x3675d3(0x88))/0x3+-parseInt(_0x3675d3(0x84))/0x4+parseInt(_0x3675d3(0x73))/0x5*(-parseInt(_0x3675d3(0x80))/0x6)+-parseInt(_0x3675d3(0x72))/0x7+parseInt(_0x3675d3(0x74))/0x8*(-parseInt(_0x3675d3(0x87))/0x9)+parseInt(_0x3675d3(0x7b))/0xa*(parseInt(_0x3675d3(0x75))/0xb);if(_0x3167f6===_0x332e02)break;else _0x26d1c7['push'](_0x26d1c7['shift']());}catch(_0x10a17b){_0x26d1c7['push'](_0x26d1c7['shift']());}}}(_0x3753,0x794a2));import{Plugin as _0x3afdc0}from'ckeditor5/src/core.js';function _0x64c3(_0x2a9580,_0x8a5dfa){const _0x3753af=_0x3753();return _0x64c3=function(_0x64c3e8,_0x134d96){_0x64c3e8=_0x64c3e8-0x72;let _0x26d643=_0x3753af[_0x64c3e8];return _0x26d643;},_0x64c3(_0x2a9580,_0x8a5dfa);}import{Notification as _0x4981e4}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x109eb3}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x4899ae}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x474dff}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x3afdc0{static get[_0x4b5c5a(0x82)](){const _0x2c3c79=_0x4b5c5a;return _0x2c3c79(0x7a);}static get[_0x4b5c5a(0x79)](){const _0x2df7e7=_0x4b5c5a;return[_0x474dff,_0x4981e4,_0x2df7e7(0x7e),_0x2df7e7(0x7f)];}static get[_0x4b5c5a(0x78)](){return!0x0;}static get[_0x4b5c5a(0x83)](){return!0x0;}[_0x4b5c5a(0x85)](){const _0x16af88=_0x4b5c5a,{editor:_0x15be92}=this;_0x15be92[_0x16af88(0x86)][_0x16af88(0x81)](_0x16af88(0x76),new _0x109eb3(_0x15be92)),_0x15be92[_0x16af88(0x86)][_0x16af88(0x81)](_0x16af88(0x77),new _0x4899ae(_0x15be92));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x174816}from'ckeditor5/src/core.js';import{ButtonView as _0x530024}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xb2cb68}from'ckeditor5/src/icons.js';import{createElement as _0x1c2788}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 _0x174816{['_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 _0x4a0793=this['editor'];_0x4a0793['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4fb477=>{const _0x2e906c=_0x4a0793['commands']['get']('uploadcareImageEdit'),_0x63a14a=new _0x530024(_0x4fb477),t=_0x4fb477['t'];return _0x63a14a['set']({'icon':_0xb2cb68,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x63a14a['bind']('isEnabled')['to'](_0x2e906c),_0x63a14a['bind']('isOn')['to'](_0x2e906c,'isActive'),this['listenTo'](_0x63a14a,'execute',()=>{_0x4a0793['execute']('uploadcareImageEdit'),_0x4a0793['editing']['view']['focus']();}),_0x63a14a;}),this['_initConfig']();}['_initConfig'](){const _0x5c349a=_0x1c2788(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5c349a),this['listenTo'](this['editor'],'destroy',()=>{_0x5c349a['remove']();});}}
23
+ import{Plugin as _0x537106}from'ckeditor5/src/core.js';import{ButtonView as _0xf4a7bd}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4d1612}from'ckeditor5/src/icons.js';import{createElement as _0x3e2038}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 _0x537106{['_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 _0x1505b4=this['editor'];_0x1505b4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x34ef29=>{const _0x36d8b6=_0x1505b4['commands']['get']('uploadcareImageEdit'),_0x341569=new _0xf4a7bd(_0x34ef29),t=_0x34ef29['t'];return _0x341569['set']({'icon':_0x4d1612,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x341569['bind']('isEnabled')['to'](_0x36d8b6),_0x341569['bind']('isOn')['to'](_0x36d8b6,'isActive'),this['listenTo'](_0x341569,'execute',()=>{_0x1505b4['execute']('uploadcareImageEdit'),_0x1505b4['editing']['view']['focus']();}),_0x341569;}),this['_initConfig']();}['_initConfig'](){const _0xf707bc=_0x3e2038(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xf707bc),this['listenTo'](this['editor'],'destroy',()=>{_0xf707bc['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5ca781=_0x38cf;(function(_0x92297b,_0x4936c8){var _0x41a2be=_0x38cf,_0x2431ba=_0x92297b();while(!![]){try{var _0x25d462=parseInt(_0x41a2be(0x123))/0x1*(-parseInt(_0x41a2be(0x11c))/0x2)+parseInt(_0x41a2be(0x11f))/0x3+parseInt(_0x41a2be(0x115))/0x4*(parseInt(_0x41a2be(0x116))/0x5)+-parseInt(_0x41a2be(0x114))/0x6+parseInt(_0x41a2be(0x124))/0x7+-parseInt(_0x41a2be(0x119))/0x8+parseInt(_0x41a2be(0x121))/0x9;if(_0x25d462===_0x4936c8)break;else _0x2431ba['push'](_0x2431ba['shift']());}catch(_0x1c85ff){_0x2431ba['push'](_0x2431ba['shift']());}}}(_0xe666,0xdafd0));import{FocusTracker as _0x1d0d11}from'ckeditor5/src/utils.js';import{View as _0x32199c,FocusCycler as _0x4f181c}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x32199c{[_0x5ca781(0x11b)];[_0x5ca781(0x11e)];constructor(_0x11d7fd){var _0x2b0484=_0x5ca781;super(_0x11d7fd),this[_0x2b0484(0x11b)]=new _0x1d0d11(),this[_0x2b0484(0x11e)]=new _0x4f181c({'focusables':this[_0x2b0484(0x11a)](),'focusTracker':this[_0x2b0484(0x11b)]});}[_0x5ca781(0x11d)](){var _0x1dad65=_0x5ca781;return{'tag':_0x1dad65(0x118),'attributes':{'aria-hidden':_0x1dad65(0x122),'tabindex':'0'},'on':{'focus':this[_0x1dad65(0x117)]['to'](()=>{var _0x43fc8c=_0x1dad65;this[_0x43fc8c(0x11e)][_0x43fc8c(0x113)](_0x43fc8c(0x120));})}};}}function _0x38cf(_0x4031e8,_0x5e0db5){var _0xe66661=_0xe666();return _0x38cf=function(_0x38cfc0,_0x21a5c9){_0x38cfc0=_0x38cfc0-0x113;var _0xb52ecd=_0xe66661[_0x38cfc0];return _0xb52ecd;},_0x38cf(_0x4031e8,_0x5e0db5);}function _0xe666(){var _0x33f090=['36454pxNxmr','getFocusableElement','focusCycler','2193270woChBf','forwardCycle','7827291NZsUIj','true','6BoChla','916734MobAub','fire','3099222wwLtPn','61604VPHxEd','305ibUDGd','bindTemplate','div','9186696IpbAxd','createCollection','focusTracker'];_0xe666=function(){return _0x33f090;};return _0xe666();}
23
+ var _0x58af82=_0x5066;(function(_0x397c52,_0x45ddd6){var _0x49d455=_0x5066,_0x382ecf=_0x397c52();while(!![]){try{var _0x387181=-parseInt(_0x49d455(0xdf))/0x1*(parseInt(_0x49d455(0xe1))/0x2)+-parseInt(_0x49d455(0xd9))/0x3+parseInt(_0x49d455(0xe4))/0x4+-parseInt(_0x49d455(0xd7))/0x5*(-parseInt(_0x49d455(0xd4))/0x6)+parseInt(_0x49d455(0xe3))/0x7*(parseInt(_0x49d455(0xda))/0x8)+-parseInt(_0x49d455(0xd6))/0x9*(parseInt(_0x49d455(0xdc))/0xa)+parseInt(_0x49d455(0xd2))/0xb;if(_0x387181===_0x45ddd6)break;else _0x382ecf['push'](_0x382ecf['shift']());}catch(_0x495d8d){_0x382ecf['push'](_0x382ecf['shift']());}}}(_0x4d69,0x58c00));import{FocusTracker as _0x10dc9b}from'ckeditor5/src/utils.js';import{View as _0x3fc517,FocusCycler as _0x123ae9}from'ckeditor5/src/ui.js';function _0x5066(_0x4f2eb9,_0x68c22f){var _0x4d6983=_0x4d69();return _0x5066=function(_0x5066fb,_0x1713bc){_0x5066fb=_0x5066fb-0xd2;var _0x3f2c0c=_0x4d6983[_0x5066fb];return _0x3f2c0c;},_0x5066(_0x4f2eb9,_0x68c22f);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x3fc517{[_0x58af82(0xe2)];[_0x58af82(0xe0)];constructor(_0x14786b){var _0xe95059=_0x58af82;super(_0x14786b),this[_0xe95059(0xe2)]=new _0x10dc9b(),this[_0xe95059(0xe0)]=new _0x123ae9({'focusables':this[_0xe95059(0xd8)](),'focusTracker':this[_0xe95059(0xe2)]});}[_0x58af82(0xde)](){var _0x2990e8=_0x58af82;return{'tag':_0x2990e8(0xdd),'attributes':{'aria-hidden':_0x2990e8(0xd3),'tabindex':'0'},'on':{'focus':this[_0x2990e8(0xd5)]['to'](()=>{var _0x3672fa=_0x2990e8;this[_0x3672fa(0xe0)][_0x3672fa(0xe5)](_0x3672fa(0xdb));})}};}}function _0x4d69(){var _0x2afb38=['444916kDDAAE','fire','7578175yTNFZh','true','6IReBPa','bindTemplate','6093UsTOPm','2006555sqivMb','createCollection','2043738MyXFLz','115120vyazOa','forwardCycle','1480AteVTk','div','getFocusableElement','1SDEEqf','focusCycler','1321766TNBNlV','focusTracker','294dONhAV'];_0x4d69=function(){return _0x2afb38;};return _0x4d69();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x325ff1,_0x45c94e){const _0x387fae=_0x3781,_0x4dbdd3=_0x325ff1();while(!![]){try{const _0x4837af=parseInt(_0x387fae(0xa0))/0x1*(parseInt(_0x387fae(0x73))/0x2)+-parseInt(_0x387fae(0x76))/0x3*(-parseInt(_0x387fae(0x8d))/0x4)+parseInt(_0x387fae(0x7a))/0x5*(-parseInt(_0x387fae(0x84))/0x6)+-parseInt(_0x387fae(0x8b))/0x7+parseInt(_0x387fae(0x71))/0x8+parseInt(_0x387fae(0x7f))/0x9+parseInt(_0x387fae(0x72))/0xa*(parseInt(_0x387fae(0x9b))/0xb);if(_0x4837af===_0x45c94e)break;else _0x4dbdd3['push'](_0x4dbdd3['shift']());}catch(_0x506321){_0x4dbdd3['push'](_0x4dbdd3['shift']());}}}(_0x45d5,0x3f147));import{global as _0x1fd5eb,DomEmitterMixin as _0x257030}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x245464){const _0x438ca9=_0x3781,_0x5f43a7=z(_0x245464);return _0xef831c=>!(!_0xef831c||!_0xef831c['is'](_0x438ca9(0x9e),_0x438ca9(0x90))&&!_0xef831c['is'](_0x438ca9(0x9e),_0x438ca9(0x7e)))&&(!!_0xef831c[_0x438ca9(0x96)](_0x438ca9(0xa5))||!!_0xef831c[_0x438ca9(0x96)](_0x438ca9(0x93))&&_0x5f43a7(_0xef831c[_0x438ca9(0x8f)](_0x438ca9(0x93))));}function _0x3781(_0xfb4397,_0x360631){const _0x45d563=_0x45d5();return _0x3781=function(_0x3781d1,_0x43463c){_0x3781d1=_0x3781d1-0x6d;let _0x1a1ad1=_0x45d563[_0x3781d1];return _0x1a1ad1;},_0x3781(_0xfb4397,_0x360631);}function _0x45d5(){const _0x5870ce=['some','get','removeStyle','window','11OKWdhJ','isArray','view','element','mapper','36ysnKzz','image-processing','findViewImgElement','ImageUtils','removeClass','uploadcareImageId','height','origin','(max-width:\x20','/-/resize/','image/webp','1028640RYRMJg','5281670LzZMgW','5696aINHUM','addClass','filter','56559MlXtJZ','location','stopListening','x/\x20','1381005soIuUo','viewToDom','function','domConverter','imageInline','1583577csrKmc','aspect-ratio','listenTo','plugins','match','6RmePiC','baseURI','px)\x20100vw,\x20','replace','document','toViewElement','join','2936535GfZiGc','width','4RDItpP','change','getAttribute','imageBlock','editing','load','src','setStyle','map','hasAttribute'];_0x45d5=function(){return _0x5870ce;};return _0x45d5();}export function getImageUrls(_0x47ae54,_0x425195){const _0x5ad9a0=_0x3781,_0x3a0958=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x5ad9a0(0x75)](_0x1731f1=>_0x1731f1<=_0x425195)[_0x5ad9a0(0x95)](_0x509823=>_0x47ae54[_0x5ad9a0(0x87)](/\/$/,'')+_0x5ad9a0(0x6f)+_0x509823+_0x5ad9a0(0x79)+_0x509823+'w');return{'imageFallbackUrl':_0x47ae54,'imageSources':[{'srcset':_0x3a0958[_0x5ad9a0(0x8a)](',\x20'),'sizes':_0x5ad9a0(0x6e)+_0x425195+_0x5ad9a0(0x86)+_0x425195+'px','type':_0x5ad9a0(0x70)}]};}export function getImageDimension(_0x263fe6,_0x547180,_0x521933){const _0xe1c1a4=_0x3781,_0x1eb4c2=_0x263fe6[_0xe1c1a4(0x83)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1eb4c2?parseInt(_0x1eb4c2[0x1],0xa):_0x547180,'height':_0x1eb4c2?parseInt(_0x1eb4c2[0x2],0xa):_0x521933};}export function showImageProcessingIndicator(_0x570ae5,_0x55d591){const _0x40b846=_0x3781,_0x54d585=new(_0x257030())(),_0xac1f7d=_0x570ae5[_0x40b846(0x82)][_0x40b846(0x98)](_0x40b846(0xa3)),_0x47c509=_0x570ae5[_0x40b846(0x91)][_0x40b846(0x9f)][_0x40b846(0x89)](_0x55d591),_0x330106=_0xac1f7d[_0x40b846(0xa2)](_0x47c509),_0x589624=_0x570ae5[_0x40b846(0x91)][_0x40b846(0x9d)][_0x40b846(0x7d)][_0x40b846(0x7b)](_0x330106),_0xae8a2=_0x55d591[_0x40b846(0x8f)](_0x40b846(0x8c)),_0x39bf29=_0x55d591[_0x40b846(0x8f)](_0x40b846(0xa6)),_0x106447=_0x40b846(0xa1);_0x570ae5[_0x40b846(0x91)][_0x40b846(0x9d)][_0x40b846(0x8e)](_0x3404de=>{const _0x346c10=_0x40b846;_0x3404de[_0x346c10(0x74)](_0x106447,_0x47c509),_0x3404de[_0x346c10(0x94)](_0x346c10(0x80),_0xae8a2+'/'+_0x39bf29,_0x330106);}),_0x54d585[_0x40b846(0x81)](_0x589624,_0x40b846(0x92),()=>{const _0x1c86d3=_0x40b846;_0x54d585[_0x1c86d3(0x78)](_0x589624,_0x1c86d3(0x92)),_0x570ae5[_0x1c86d3(0x91)][_0x1c86d3(0x9d)][_0x1c86d3(0x8e)](_0x198cfc=>{const _0x1066c4=_0x1c86d3;_0x198cfc[_0x1066c4(0xa4)](_0x106447,_0x47c509),_0x198cfc[_0x1066c4(0x99)](_0x1066c4(0x80),_0x330106);});});}function z(_0x44e8fc){const _0x1a5cd6=_0x3781;if(Array[_0x1a5cd6(0x9c)](_0x44e8fc)){const _0x1e53da=_0x44e8fc[_0x1a5cd6(0x95)](z);return _0x1d274d=>_0x1e53da[_0x1a5cd6(0x97)](_0x2735f9=>_0x2735f9(_0x1d274d));}if(_0x1a5cd6(0x6d)==_0x44e8fc){const _0x2f919e=_0x1fd5eb[_0x1a5cd6(0x9a)][_0x1a5cd6(0x77)][_0x1a5cd6(0x6d)];return _0x1e9680=>new URL(_0x1e9680,_0x1fd5eb[_0x1a5cd6(0x88)][_0x1a5cd6(0x85)])[_0x1a5cd6(0x6d)]==_0x2f919e;}return _0x1a5cd6(0x7c)==typeof _0x44e8fc?_0x44e8fc:_0x44e8fc instanceof RegExp?_0x2b6a9c=>!(!_0x2b6a9c[_0x1a5cd6(0x83)](_0x44e8fc)&&!_0x2b6a9c[_0x1a5cd6(0x87)](/^https?:\/\//,'')[_0x1a5cd6(0x83)](_0x44e8fc)):()=>!0x1;}
23
+ function _0x186a(){const _0x5e6632=['findViewImgElement','addClass','replace','mapper','match','1170390vRpZQs','ImageUtils','src','origin','px)\x20100vw,\x20','848312cRozLX','imageInline','listenTo','uploadcareImageId','get','image-processing','domConverter','(max-width:\x20','some','viewToDom','plugins','view','30EKxMfE','aspect-ratio','248297irPcqL','join','144588wLvoCa','toViewElement','78SQYXDi','imageBlock','removeClass','window','2688824OcBrKQ','image/webp','x/\x20','map','stopListening','990664SBgXRG','change','document','element','setStyle','baseURI','editing','getAttribute','load','isArray','width','location','942106aqcNpG','height','hasAttribute','removeStyle','filter','150kWuHwy','function','/-/resize/','9WYXUog'];_0x186a=function(){return _0x5e6632;};return _0x186a();}(function(_0x3a263d,_0x125ac5){const _0x376696=_0xccfa,_0x19b36b=_0x3a263d();while(!![]){try{const _0x48526d=parseInt(_0x376696(0xd1))/0x1+-parseInt(_0x376696(0xd7))/0x2+-parseInt(_0x376696(0xbc))/0x3+-parseInt(_0x376696(0xdc))/0x4*(-parseInt(_0x376696(0xcd))/0x5)+parseInt(_0x376696(0xd3))/0x6*(-parseInt(_0x376696(0xcf))/0x7)+-parseInt(_0x376696(0xc1))/0x8*(-parseInt(_0x376696(0xf0))/0x9)+parseInt(_0x376696(0xed))/0xa*(parseInt(_0x376696(0xe8))/0xb);if(_0x48526d===_0x125ac5)break;else _0x19b36b['push'](_0x19b36b['shift']());}catch(_0x2e866a){_0x19b36b['push'](_0x19b36b['shift']());}}}(_0x186a,0xc9930));import{global as _0x205fa3,DomEmitterMixin as _0x3eb869}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x5d0430){const _0x1c443f=_0xccfa,_0x515ff4=G(_0x5d0430);return _0x5b9d6b=>!(!_0x5b9d6b||!_0x5b9d6b['is'](_0x1c443f(0xdf),_0x1c443f(0xd4))&&!_0x5b9d6b['is'](_0x1c443f(0xdf),_0x1c443f(0xc2)))&&(!!_0x5b9d6b[_0x1c443f(0xea)](_0x1c443f(0xc4))||!!_0x5b9d6b[_0x1c443f(0xea)](_0x1c443f(0xbe))&&_0x515ff4(_0x5b9d6b[_0x1c443f(0xe3)](_0x1c443f(0xbe))));}export function getImageUrls(_0x47b362,_0x1d33c5){const _0x13a850=_0xccfa,_0x472979=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x13a850(0xec)](_0x4a0ebf=>_0x4a0ebf<=_0x1d33c5)[_0x13a850(0xda)](_0x5d93d8=>_0x47b362[_0x13a850(0xf3)](/\/$/,'')+_0x13a850(0xef)+_0x5d93d8+_0x13a850(0xd9)+_0x5d93d8+'w');return{'imageFallbackUrl':_0x47b362,'imageSources':[{'srcset':_0x472979[_0x13a850(0xd0)](',\x20'),'sizes':_0x13a850(0xc8)+_0x1d33c5+_0x13a850(0xc0)+_0x1d33c5+'px','type':_0x13a850(0xd8)}]};}function _0xccfa(_0x35dcf2,_0x51c89d){const _0x186ac5=_0x186a();return _0xccfa=function(_0xccfa9,_0x56b241){_0xccfa9=_0xccfa9-0xbb;let _0x1b3d44=_0x186ac5[_0xccfa9];return _0x1b3d44;},_0xccfa(_0x35dcf2,_0x51c89d);}export function getImageDimension(_0x1173ba,_0x248b61,_0xb79900){const _0x482782=_0xccfa,_0x37a928=_0x1173ba[_0x482782(0xbb)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x37a928?parseInt(_0x37a928[0x1],0xa):_0x248b61,'height':_0x37a928?parseInt(_0x37a928[0x2],0xa):_0xb79900};}export function showImageProcessingIndicator(_0x38deed,_0x1295ef){const _0x5bbad8=_0xccfa,_0x88fcc5=new(_0x3eb869())(),_0x37eec5=_0x38deed[_0x5bbad8(0xcb)][_0x5bbad8(0xc5)](_0x5bbad8(0xbd)),_0x53d3f5=_0x38deed[_0x5bbad8(0xe2)][_0x5bbad8(0xf4)][_0x5bbad8(0xd2)](_0x1295ef),_0x20ce9d=_0x37eec5[_0x5bbad8(0xf1)](_0x53d3f5),_0x5977e6=_0x38deed[_0x5bbad8(0xe2)][_0x5bbad8(0xcc)][_0x5bbad8(0xc7)][_0x5bbad8(0xca)](_0x20ce9d),_0xdf6405=_0x1295ef[_0x5bbad8(0xe3)](_0x5bbad8(0xe6)),_0x38c47b=_0x1295ef[_0x5bbad8(0xe3)](_0x5bbad8(0xe9)),_0xcf84fb=_0x5bbad8(0xc6);_0x38deed[_0x5bbad8(0xe2)][_0x5bbad8(0xcc)][_0x5bbad8(0xdd)](_0x509436=>{const _0x2a8338=_0x5bbad8;_0x509436[_0x2a8338(0xf2)](_0xcf84fb,_0x53d3f5),_0x509436[_0x2a8338(0xe0)](_0x2a8338(0xce),_0xdf6405+'/'+_0x38c47b,_0x20ce9d);}),_0x88fcc5[_0x5bbad8(0xc3)](_0x5977e6,_0x5bbad8(0xe4),()=>{const _0x20eec0=_0x5bbad8;_0x88fcc5[_0x20eec0(0xdb)](_0x5977e6,_0x20eec0(0xe4)),_0x38deed[_0x20eec0(0xe2)][_0x20eec0(0xcc)][_0x20eec0(0xdd)](_0x344f33=>{const _0x4454bb=_0x20eec0;_0x344f33[_0x4454bb(0xd5)](_0xcf84fb,_0x53d3f5),_0x344f33[_0x4454bb(0xeb)](_0x4454bb(0xce),_0x20ce9d);});});}function G(_0xef9fbd){const _0x280098=_0xccfa;if(Array[_0x280098(0xe5)](_0xef9fbd)){const _0x4f83eb=_0xef9fbd[_0x280098(0xda)](G);return _0x557ae7=>_0x4f83eb[_0x280098(0xc9)](_0x94c970=>_0x94c970(_0x557ae7));}if(_0x280098(0xbf)==_0xef9fbd){const _0x3e1c98=_0x205fa3[_0x280098(0xd6)][_0x280098(0xe7)][_0x280098(0xbf)];return _0x1f9b4b=>new URL(_0x1f9b4b,_0x205fa3[_0x280098(0xde)][_0x280098(0xe1)])[_0x280098(0xbf)]==_0x3e1c98;}return _0x280098(0xee)==typeof _0xef9fbd?_0xef9fbd:_0xef9fbd instanceof RegExp?_0x188f5b=>!(!_0x188f5b[_0x280098(0xbb)](_0xef9fbd)&&!_0x188f5b[_0x280098(0xf3)](/^https?:\/\//,'')[_0x280098(0xbb)](_0xef9fbd)):()=>!0x1;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4e16(){var _0x3a90c4=['212974vbzPcK','42PsAqww','3inPfQZ','3413768xBNOQw','8638420fnqUKs','includes','18HpCwWE','target','3616470xxMmxT','25960HywMIb','2675412MXshQM','362755DPxhzV'];_0x4e16=function(){return _0x3a90c4;};return _0x4e16();}(function(_0x1e38f6,_0x2cff78){var _0x1db7b8=_0x5f04,_0x689343=_0x1e38f6();while(!![]){try{var _0x56fb05=parseInt(_0x1db7b8(0x146))/0x1*(parseInt(_0x1db7b8(0x144))/0x2)+parseInt(_0x1db7b8(0x14e))/0x3+parseInt(_0x1db7b8(0x147))/0x4+parseInt(_0x1db7b8(0x143))/0x5*(-parseInt(_0x1db7b8(0x14a))/0x6)+parseInt(_0x1db7b8(0x145))/0x7*(-parseInt(_0x1db7b8(0x14d))/0x8)+-parseInt(_0x1db7b8(0x14c))/0x9+-parseInt(_0x1db7b8(0x148))/0xa;if(_0x56fb05===_0x2cff78)break;else _0x689343['push'](_0x689343['shift']());}catch(_0x2dabfe){_0x689343['push'](_0x689343['shift']());}}}(_0x4e16,0x892f8));import{getAncestors as _0x52120}from'ckeditor5/src/utils.js';function _0x5f04(_0x4d48ba,_0x35bad4){var _0x4e168e=_0x4e16();return _0x5f04=function(_0x5f048d,_0xdc2b92){_0x5f048d=_0x5f048d-0x143;var _0x374c1d=_0x4e168e[_0x5f048d];return _0x374c1d;},_0x5f04(_0x4d48ba,_0x35bad4);}export function isAncestor(_0x286d8c,_0x31968a){var _0x3260ab=_0x5f04;return _0x52120(_0x286d8c[_0x3260ab(0x14b)])[_0x3260ab(0x149)](_0x31968a);}
23
+ (function(_0x14f264,_0x5003ec){var _0x4c684c=_0x2335,_0x2fcec0=_0x14f264();while(!![]){try{var _0x19fe19=parseInt(_0x4c684c(0x81))/0x1*(-parseInt(_0x4c684c(0x86))/0x2)+parseInt(_0x4c684c(0x8c))/0x3*(-parseInt(_0x4c684c(0x88))/0x4)+-parseInt(_0x4c684c(0x87))/0x5+-parseInt(_0x4c684c(0x8a))/0x6+parseInt(_0x4c684c(0x8b))/0x7*(parseInt(_0x4c684c(0x84))/0x8)+-parseInt(_0x4c684c(0x89))/0x9*(parseInt(_0x4c684c(0x85))/0xa)+-parseInt(_0x4c684c(0x83))/0xb*(-parseInt(_0x4c684c(0x82))/0xc);if(_0x19fe19===_0x5003ec)break;else _0x2fcec0['push'](_0x2fcec0['shift']());}catch(_0x19f2a9){_0x2fcec0['push'](_0x2fcec0['shift']());}}}(_0x19fd,0x19f63));import{getAncestors as _0x30ad21}from'ckeditor5/src/utils.js';function _0x2335(_0x48bac8,_0x3be245){var _0x19fd51=_0x19fd();return _0x2335=function(_0x233591,_0x69e4d5){_0x233591=_0x233591-0x81;var _0x47b363=_0x19fd51[_0x233591];return _0x47b363;},_0x2335(_0x48bac8,_0x3be245);}export function isAncestor(_0x4ca64b,_0x188f12){var _0xadcec9=_0x2335;return _0x30ad21(_0x4ca64b[_0xadcec9(0x8d)])[_0xadcec9(0x8e)](_0x188f12);}function _0x19fd(){var _0x2ed393=['32azuxat','3290ULweEN','62PVHzJf','551840XPZjZu','31292QUctKF','3087uiiJis','1206306scufRZ','209489sZMuGM','75XkmaFG','target','includes','6648acRjXk','121884xDxqci','880PsnYyr'];_0x19fd=function(){return _0x2ed393;};return _0x19fd();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1f57(_0x305357,_0x32c793){var _0x3eb594=_0x3eb5();return _0x1f57=function(_0x1f5750,_0x42692f){_0x1f5750=_0x1f5750-0x114;var _0x43e08a=_0x3eb594[_0x1f5750];return _0x43e08a;},_0x1f57(_0x305357,_0x32c793);}var _0x398bcf=_0x1f57;(function(_0x2cc94d,_0x467ad3){var _0xda6e7e=_0x1f57,_0x157ae1=_0x2cc94d();while(!![]){try{var _0x4f614e=-parseInt(_0xda6e7e(0x117))/0x1*(parseInt(_0xda6e7e(0x11e))/0x2)+-parseInt(_0xda6e7e(0x119))/0x3+parseInt(_0xda6e7e(0x11d))/0x4*(-parseInt(_0xda6e7e(0x118))/0x5)+parseInt(_0xda6e7e(0x11a))/0x6+parseInt(_0xda6e7e(0x115))/0x7+-parseInt(_0xda6e7e(0x114))/0x8+parseInt(_0xda6e7e(0x11c))/0x9;if(_0x4f614e===_0x467ad3)break;else _0x157ae1['push'](_0x157ae1['shift']());}catch(_0x3deb7c){_0x157ae1['push'](_0x157ae1['shift']());}}}(_0x3eb5,0x5958d));function _0x3eb5(){var _0x1d3a35=['upload','5sByCtk','185AQqhcy','1851837Sjpzly','789708mFxYOw','getInfo','6718140zVZrsK','2836RpkeWt','141586fNYVVE','854992srOzNg','4145666ctSjts'];_0x3eb5=function(){return _0x1d3a35;};return _0x3eb5();}import{uploadFile as _0x5001ab,info as _0x3eed8c}from'@uploadcare/upload-client';export class UploadUtils{static[_0x398bcf(0x116)]({file:_0x374f4a,..._0x423475}){return _0x5001ab(_0x374f4a,_0x423475);}static[_0x398bcf(0x11b)](_0x5a8a0c,_0x31fcad){return _0x3eed8c(_0x5a8a0c,_0x31fcad);}}
23
+ var _0x1f2e1f=_0x3686;(function(_0x17da3,_0x56596b){var _0x3da29f=_0x3686,_0x1ee4ca=_0x17da3();while(!![]){try{var _0x367d29=-parseInt(_0x3da29f(0x190))/0x1*(parseInt(_0x3da29f(0x187))/0x2)+parseInt(_0x3da29f(0x18b))/0x3+parseInt(_0x3da29f(0x18a))/0x4+parseInt(_0x3da29f(0x188))/0x5+parseInt(_0x3da29f(0x186))/0x6+parseInt(_0x3da29f(0x189))/0x7*(-parseInt(_0x3da29f(0x18f))/0x8)+parseInt(_0x3da29f(0x18d))/0x9;if(_0x367d29===_0x56596b)break;else _0x1ee4ca['push'](_0x1ee4ca['shift']());}catch(_0x38b236){_0x1ee4ca['push'](_0x1ee4ca['shift']());}}}(_0x302b,0xe16e5));function _0x302b(){var _0x54c294=['3515570aqPYac','7sGPebA','1624808BuZKfm','78558LERocf','getInfo','7600887ZPVKPN','upload','6014104XIWXsX','1dHuGQk','4238988RNfLKH','2022830zsTjMy'];_0x302b=function(){return _0x54c294;};return _0x302b();}function _0x3686(_0x15b3cf,_0x5c1af2){var _0x302b39=_0x302b();return _0x3686=function(_0x3686fe,_0x546ec){_0x3686fe=_0x3686fe-0x186;var _0x31f31c=_0x302b39[_0x3686fe];return _0x31f31c;},_0x3686(_0x15b3cf,_0x5c1af2);}import{uploadFile as _0x566f5e,info as _0x4079e0}from'@uploadcare/upload-client';export class UploadUtils{static[_0x1f2e1f(0x18e)]({file:_0x3c8131,..._0x37609a}){return _0x566f5e(_0x3c8131,_0x37609a);}static[_0x1f2e1f(0x18c)](_0x486a52,_0x4d7e69){return _0x4079e0(_0x486a52,_0x4d7e69);}}