@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.2 → 46.0.1-alpha.4

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 _0x4d8bb6,ObservableMixin as _0x2d38c4}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x118da4}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4db288}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x95daf5}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x25be0b}from'../../utils/uploadutils.js';import{getImageUrls as _0x693bf5,getImageDimension as _0x12f5e5}from'../../utils/editingutils.js';import{isAncestor as _0x519630}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x2d38c4(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x38bddb,_0x3445ad,_0x59b11f){super(),this['_editor']=_0x38bddb,this['_dialog']=_0x3445ad,this['_imageElement']=_0x59b11f,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 _0x32d6a7=this['_imageElement'],_0x3f8c77=_0x32d6a7['getAttribute']('uploadcareImageId'),_0x2ff9a0=_0x32d6a7['getAttribute']('src');if(_0x3f8c77)await this['_loadImageInfo'](_0x3f8c77,_0x2ff9a0);else{if(this['_imageCache']['has'](_0x2ff9a0)){const _0x3146fb=this['_imageCache']['get'](_0x2ff9a0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3146fb['url'],this['imageDimension']=_0x3146fb['dimension'],this['imageId']=_0x3146fb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1f2a0d}=this['_editor'],t=_0x1f2a0d['t'],_0xf3392a=new _0x95daf5(_0x1f2a0d,this['imageStatus'],this['_attributes']);_0xf3392a['bind']('status')['to'](this,'imageStatus'),_0xf3392a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xf3392a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xf3392a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xf3392a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4db288,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xf3392a,'position':_0x118da4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xf3392a['focus']();},'onHide':()=>{_0xf3392a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x37cbf3=>!_0x519630(_0x37cbf3,_0xf3392a['element'])}});}['_loadImageInfo'](_0x24b64e,_0x34f468){return _0x25be0b['getInfo'](_0x24b64e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x416e59=>{const {width:_0x8a1173,height:_0x285599}=_0x416e59['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34f468,this['imageDimension']={'width':_0x8a1173,'height':_0x285599},this['imageId']=_0x24b64e;})['catch'](_0x3e127e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e127e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x349433,_0x2aa43c){return this['_getImageAsFile'](_0x349433)['then'](_0x3c01ed=>_0x25be0b['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2aa43c['signal'],'file':_0x3c01ed,'onProgress':_0x19c650=>{_0x19c650&&_0x19c650['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x19c650['value']));}}))['then'](_0x7cc9ad=>{const {width:_0x454100,height:_0x536b7b}=_0x7cc9ad['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x7cc9ad['cdnUrl'],this['imageDimension']={'width':_0x454100,'height':_0x536b7b},this['imageId']=_0x7cc9ad['uuid'],this['imageUploadProgress']=null;const _0x289f78=_0x349433['getAttribute']('src');this['_imageCache']['set'](_0x289f78,{'id':_0x7cc9ad['uuid'],'url':_0x7cc9ad['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xad9562=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xad9562['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4912a3,_0x195d35){_0x4912a3['on']('apply',(_0x504a8a,_0x29a5bb)=>{this['_replaceImage'](_0x195d35,_0x29a5bb['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4912a3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4912a3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x300743,_0x53517d,_0x5cf4a1){const _0x4116a0=this['_editor'],{width:_0x41976e,height:_0x6c194f}=_0x12f5e5(_0x53517d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x7af13e,imageSources:_0x5acc5}=_0x693bf5(_0x53517d,_0x41976e);_0x4116a0['model']['change'](_0x25f34b=>{if('$graveyard'===_0x300743['root']['rootName']){_0x4116a0['execute']('insertImage',{'imageType':_0x300743['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x300743['getAttributes']()),'uploadcareImageId':_0x5cf4a1,'src':_0x7af13e,'sources':_0x5acc5,'width':_0x41976e,'height':_0x6c194f}});const _0x68883c=_0x300743['getChildren']();_0x300743=_0x4116a0['model']['document']['selection']['getSelectedElement']();for(const _0x4e2414 of _0x68883c)_0x25f34b['append'](_0x25f34b['cloneElement'](_0x4e2414),_0x300743);}else _0x25f34b['setSelection'](_0x300743,'on'),_0x4116a0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x300743['getAttributes']()),'uploadcareImageId':_0x5cf4a1,'src':_0x7af13e,'sources':_0x5acc5,'width':_0x41976e,'height':_0x6c194f},_0x300743);_0x25f34b['setSelection'](_0x300743,'on');});}async['_getImageAsFile'](_0x1b7a5b){const _0x6e792c=_0x4d8bb6['window'],_0x4fda60=_0x4d8bb6['document']['location']['href'],_0x3933f0=new _0x6e792c['URL'](_0x1b7a5b['getAttribute']('src'),_0x4fda60);if('data:'===_0x3933f0['protocol']){const _0x1eef3b=_0x3933f0['href']['split'](','),_0x88e1bd=_0x1eef3b[0x0]['match'](/:(.*?);/)[0x1],_0x5009df=_0x88e1bd['split']('/')[0x1],_0x39f05c=_0x6e792c['atob'](_0x1eef3b[_0x1eef3b['length']-0x1]);let _0x2af5a1=_0x39f05c['length'];const _0x5e2c6e=new _0x6e792c['Uint8Array'](_0x2af5a1);for(;_0x2af5a1--;)_0x5e2c6e[_0x2af5a1]=_0x39f05c['charCodeAt'](_0x2af5a1);return new _0x6e792c['File']([_0x5e2c6e],'image.'+_0x5009df,{'type':_0x88e1bd});}const _0x6d6e99=_0x3933f0['href']['split']('/'),_0x44b5d1=_0x6d6e99[_0x6d6e99['length']-0x1],_0xc73763=_0x44b5d1['split']('.')[0x1];return _0x6e792c['fetch'](_0x3933f0['href'])['then'](_0x16cf0f=>_0x16cf0f['clone']()['blob']())['then'](_0x4f4a38=>new _0x6e792c['File']([_0x4f4a38],_0x44b5d1,{'type':'image/'+_0xc73763}));}}
23
+ import{global as _0x3b34bd,ObservableMixin as _0x2cb91d}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0xd8197b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3ef42e}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1d6070}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xafa7c3}from'../../utils/uploadutils.js';import{getImageUrls as _0x5428c9,getImageDimension as _0x18da96}from'../../utils/editingutils.js';import{isAncestor as _0x24982a}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x2cb91d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3a2f12,_0x356031,_0x3c5dba){super(),this['_editor']=_0x3a2f12,this['_dialog']=_0x356031,this['_imageElement']=_0x3c5dba,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 _0x70f380=this['_imageElement'],_0x2fcf39=_0x70f380['getAttribute']('uploadcareImageId'),_0x53772f=_0x70f380['getAttribute']('src');if(_0x2fcf39)await this['_loadImageInfo'](_0x2fcf39,_0x53772f);else{if(this['_imageCache']['has'](_0x53772f)){const _0x8a411d=this['_imageCache']['get'](_0x53772f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x8a411d['url'],this['imageDimension']=_0x8a411d['dimension'],this['imageId']=_0x8a411d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2041a3}=this['_editor'],t=_0x2041a3['t'],_0x50e116=new _0x1d6070(_0x2041a3,this['imageStatus'],this['_attributes']);_0x50e116['bind']('status')['to'](this,'imageStatus'),_0x50e116['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x50e116['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x50e116['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x50e116,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3ef42e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x50e116,'position':_0xd8197b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x50e116['focus']();},'onHide':()=>{_0x50e116['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3a6582=>!_0x24982a(_0x3a6582,_0x50e116['element'])}});}['_loadImageInfo'](_0x13b64a,_0x501674){return _0xafa7c3['getInfo'](_0x13b64a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x45bdff=>{const {width:_0x5ebb32,height:_0x322a25}=_0x45bdff['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x501674,this['imageDimension']={'width':_0x5ebb32,'height':_0x322a25},this['imageId']=_0x13b64a;})['catch'](_0x587fbd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x587fbd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x255dd7,_0x52a09a){return this['_getImageAsFile'](_0x255dd7)['then'](_0x201e22=>_0xafa7c3['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x52a09a['signal'],'file':_0x201e22,'onProgress':_0x4e97c6=>{_0x4e97c6&&_0x4e97c6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4e97c6['value']));}}))['then'](_0x592cd9=>{const {width:_0x45be9b,height:_0x59118f}=_0x592cd9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x592cd9['cdnUrl'],this['imageDimension']={'width':_0x45be9b,'height':_0x59118f},this['imageId']=_0x592cd9['uuid'],this['imageUploadProgress']=null;const _0x55ac48=_0x255dd7['getAttribute']('src');this['_imageCache']['set'](_0x55ac48,{'id':_0x592cd9['uuid'],'url':_0x592cd9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x6f4303=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x6f4303['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x582073,_0x5d212e){_0x582073['on']('apply',(_0x4981ca,_0x298396)=>{this['_replaceImage'](_0x5d212e,_0x298396['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x582073['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x582073['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x70d060,_0x40bf4f,_0x38258d){const _0x520741=this['_editor'],{width:_0xa3ed53,height:_0x42a071}=_0x18da96(_0x40bf4f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3de14f,imageSources:_0x2182e8}=_0x5428c9(_0x40bf4f,_0xa3ed53);_0x520741['model']['change'](_0xb039d7=>{if('$graveyard'===_0x70d060['root']['rootName']){_0x520741['execute']('insertImage',{'imageType':_0x70d060['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x70d060['getAttributes']()),'uploadcareImageId':_0x38258d,'src':_0x3de14f,'sources':_0x2182e8,'width':_0xa3ed53,'height':_0x42a071}});const _0x3cb2b4=_0x70d060['getChildren']();_0x70d060=_0x520741['model']['document']['selection']['getSelectedElement']();for(const _0x5b4984 of _0x3cb2b4)_0xb039d7['append'](_0xb039d7['cloneElement'](_0x5b4984),_0x70d060);}else _0xb039d7['setSelection'](_0x70d060,'on'),_0x520741['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x70d060['getAttributes']()),'uploadcareImageId':_0x38258d,'src':_0x3de14f,'sources':_0x2182e8,'width':_0xa3ed53,'height':_0x42a071},_0x70d060);_0xb039d7['setSelection'](_0x70d060,'on');});}async['_getImageAsFile'](_0x13f2ef){const _0x308c70=_0x3b34bd['window'],_0x3195ad=_0x3b34bd['document']['location']['href'],_0x2ca96f=new _0x308c70['URL'](_0x13f2ef['getAttribute']('src'),_0x3195ad);if('data:'===_0x2ca96f['protocol']){const _0xc10f33=_0x2ca96f['href']['split'](','),_0x24eab3=_0xc10f33[0x0]['match'](/:(.*?);/)[0x1],_0x444629=_0x24eab3['split']('/')[0x1],_0x4bd61d=_0x308c70['atob'](_0xc10f33[_0xc10f33['length']-0x1]);let _0x40e25b=_0x4bd61d['length'];const _0x27a7c4=new _0x308c70['Uint8Array'](_0x40e25b);for(;_0x40e25b--;)_0x27a7c4[_0x40e25b]=_0x4bd61d['charCodeAt'](_0x40e25b);return new _0x308c70['File']([_0x27a7c4],'image.'+_0x444629,{'type':_0x24eab3});}const _0x5af75f=_0x2ca96f['href']['split']('/'),_0x26c95c=_0x5af75f[_0x5af75f['length']-0x1],_0x58a3df=_0x26c95c['split']('.')[0x1];return _0x308c70['fetch'](_0x2ca96f['href'])['then'](_0xfa797f=>_0xfa797f['clone']()['blob']())['then'](_0x37f3c5=>new _0x308c70['File']([_0x37f3c5],_0x26c95c,{'type':'image/'+_0x58a3df}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x5918d1,_0x2e3e9c){const _0x347d1d=_0xa697,_0x4878c2=_0x5918d1();while(!![]){try{const _0x102caa=-parseInt(_0x347d1d(0xf8))/0x1*(parseInt(_0x347d1d(0xf7))/0x2)+-parseInt(_0x347d1d(0xe6))/0x3*(parseInt(_0x347d1d(0xee))/0x4)+parseInt(_0x347d1d(0xe7))/0x5*(parseInt(_0x347d1d(0xf1))/0x6)+-parseInt(_0x347d1d(0xef))/0x7+parseInt(_0x347d1d(0xf0))/0x8*(-parseInt(_0x347d1d(0xe9))/0x9)+parseInt(_0x347d1d(0xf2))/0xa+parseInt(_0x347d1d(0xeb))/0xb*(-parseInt(_0x347d1d(0xe5))/0xc);if(_0x102caa===_0x2e3e9c)break;else _0x4878c2['push'](_0x4878c2['shift']());}catch(_0x4a974c){_0x4878c2['push'](_0x4878c2['shift']());}}}(_0x4b86,0x2ab44));function _0x4b86(){const _0x5a1d4c=['4678wQQBSE','9oKYVnt','38172kcAjoT','6MZebzR','809660gJicUQ','uc-cloud-image-editor','27801RqHjNp','imageSrc','99llqtxf','setTemplate','set','400108RStssO','84448bepRgb','328yRgdyh','12HVfhkG','2394990XTlvdm','uc-light','image-edit','ck-uploadcare-theme','bindTemplate'];_0x4b86=function(){return _0x5a1d4c;};return _0x4b86();}function _0xa697(_0x192f54,_0x4954d4){const _0x4b8647=_0x4b86();return _0xa697=function(_0xa697bc,_0x5dce2b){_0xa697bc=_0xa697bc-0xe5;let _0x1b0f22=_0x4b8647[_0xa697bc];return _0x1b0f22;},_0xa697(_0x192f54,_0x4954d4);}import{View as _0xa99fbe}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0xa99fbe{constructor(_0x4f4d70,_0x5dd488){const _0x195f5f=_0xa697;super(_0x4f4d70);const _0x417aa9=this[_0x195f5f(0xf6)];this[_0x195f5f(0xed)](_0x195f5f(0xea),''),this[_0x195f5f(0xec)]({'tag':_0x195f5f(0xe8),'attributes':{..._0x5dd488,'class':[_0x195f5f(0xf3),_0x195f5f(0xf5)],'ctx-name':_0x195f5f(0xf4),'cdn-url':_0x417aa9['to'](_0x195f5f(0xea))}});}}
23
+ (function(_0x137b85,_0x2775c6){const _0x2f5629=_0x560e,_0xf9b2b7=_0x137b85();while(!![]){try{const _0x3c62a9=parseInt(_0x2f5629(0xaa))/0x1*(parseInt(_0x2f5629(0xad))/0x2)+-parseInt(_0x2f5629(0xab))/0x3+parseInt(_0x2f5629(0xb7))/0x4+parseInt(_0x2f5629(0xb3))/0x5*(parseInt(_0x2f5629(0xb0))/0x6)+parseInt(_0x2f5629(0xb2))/0x7+parseInt(_0x2f5629(0xa9))/0x8*(parseInt(_0x2f5629(0xa6))/0x9)+-parseInt(_0x2f5629(0xb6))/0xa*(parseInt(_0x2f5629(0xae))/0xb);if(_0x3c62a9===_0x2775c6)break;else _0xf9b2b7['push'](_0xf9b2b7['shift']());}catch(_0x1f3805){_0xf9b2b7['push'](_0xf9b2b7['shift']());}}}(_0x369c,0xccfd0));function _0x369c(){const _0x4c3be7=['1108195mnwzfD','set','image-edit','1744810YjRDui','1440684mnbPPi','setTemplate','909585mXkPOB','ck-uploadcare-theme','uc-cloud-image-editor','120lNPZHi','683691akjjVD','4008975LbnftD','bindTemplate','2OtFtCQ','121sxhqhK','imageSrc','18zoBCZd','uc-light','6093458JLCgUW'];_0x369c=function(){return _0x4c3be7;};return _0x369c();}import{View as _0x1776fd}from'ckeditor5/src/ui.js';function _0x560e(_0x1e9dcb,_0x25b4fb){const _0x369c39=_0x369c();return _0x560e=function(_0x560e91,_0x471f29){_0x560e91=_0x560e91-0xa5;let _0x3cce52=_0x369c39[_0x560e91];return _0x3cce52;},_0x560e(_0x1e9dcb,_0x25b4fb);}export class UploadcareImageEditFormEditingView extends _0x1776fd{constructor(_0x5a8006,_0x297e67){const _0x30cfae=_0x560e;super(_0x5a8006);const _0x289abb=this[_0x30cfae(0xac)];this[_0x30cfae(0xb4)](_0x30cfae(0xaf),''),this[_0x30cfae(0xa5)]({'tag':_0x30cfae(0xa8),'attributes':{..._0x297e67,'class':[_0x30cfae(0xb1),_0x30cfae(0xa7)],'ctx-name':_0x30cfae(0xb5),'cdn-url':_0x289abb['to'](_0x30cfae(0xaf))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x40484b}from'ckeditor5/src/icons.js';import{ButtonView as _0x891f24,IconView as _0x56eca5,View as _0x2f1b41}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x2f1b41{constructor(_0x15c56b){super(_0x15c56b);const t=_0x15c56b['t'];this['set']('errorType',null);const _0x306857=new _0x891f24(_0x15c56b);_0x306857['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x306857['withText']=!0x0,_0x306857['class']='ck-button-action',_0x306857['on']('execute',()=>{this['fire']('retry');}),_0x306857['bind']('isVisible')['to'](this,'errorType',_0x4e8d59=>'NotFound'!==_0x4e8d59);const _0x44a3fe=new _0x56eca5();_0x44a3fe['content']=_0x40484b,_0x44a3fe['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5aac79=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':[_0x44a3fe,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5aac79['to']('errorType',_0x2f4fb6=>t('NotFound'!==_0x2f4fb6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x306857]},{'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 _0x36b5cc}from'ckeditor5/src/icons.js';import{ButtonView as _0x4e3206,IconView as _0x573591,View as _0x5a01c3}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x5a01c3{constructor(_0x591a63){super(_0x591a63);const t=_0x591a63['t'];this['set']('errorType',null);const _0x1f8227=new _0x4e3206(_0x591a63);_0x1f8227['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1f8227['withText']=!0x0,_0x1f8227['class']='ck-button-action',_0x1f8227['on']('execute',()=>{this['fire']('retry');}),_0x1f8227['bind']('isVisible')['to'](this,'errorType',_0x57972=>'NotFound'!==_0x57972);const _0x4c8f6f=new _0x573591();_0x4c8f6f['content']=_0x36b5cc,_0x4c8f6f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xa44094=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':[_0x4c8f6f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xa44094['to']('errorType',_0x28f205=>t('NotFound'!==_0x28f205?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1f8227]},{'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 _0x475df5,View as _0x5e9277}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x5e9277{constructor(_0x1f2142){super(_0x1f2142);const t=_0x1f2142['t'],_0x212309=this['bindTemplate'],_0x341081=new _0x475df5();_0x341081['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':[_0x341081,{'text':_0x212309['to']('imageUploadProgress',_0x230929=>t('Loading\x20image...')+'\x20('+(_0x230929||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 _0xe5dc5c,View as _0x4b56d1}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4b56d1{constructor(_0x4a91cf){super(_0x4a91cf);const t=_0x4a91cf['t'],_0x57623b=this['bindTemplate'],_0x415c82=new _0xe5dc5c();_0x415c82['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':[_0x415c82,{'text':_0x57623b['to']('imageUploadProgress',_0x16d81f=>t('Loading\x20image...')+'\x20('+(_0x16d81f||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 _0x17700a=_0x14fb;(function(_0x5de3a2,_0x121150){const _0x2df796=_0x14fb,_0x5df2d6=_0x5de3a2();while(!![]){try{const _0x1958ef=parseInt(_0x2df796(0x1ed))/0x1+-parseInt(_0x2df796(0x1f0))/0x2+-parseInt(_0x2df796(0x1fc))/0x3*(-parseInt(_0x2df796(0x1f6))/0x4)+parseInt(_0x2df796(0x1e7))/0x5+parseInt(_0x2df796(0x20b))/0x6+parseInt(_0x2df796(0x1f1))/0x7+-parseInt(_0x2df796(0x1f9))/0x8*(parseInt(_0x2df796(0x20e))/0x9);if(_0x1958ef===_0x121150)break;else _0x5df2d6['push'](_0x5df2d6['shift']());}catch(_0x44a5b3){_0x5df2d6['push'](_0x5df2d6['shift']());}}}(_0x5782,0xcbab7));function _0x5782(){const _0x34ec44=['focus','add','_waitForImageEditorComponent','7841035emysPK','fire','length','div','ready','filter','953764tgNdeL','querySelector','_items','781742VpfCvo','3357543zfEMEI','cancel','once','setTemplate','uploading','8156rRYpVY','uc-cloud-image-editor','_addErrorViewListeners','24048fmhwwT','addMany','addEventListener','354OUopwx','set','_errorView','observe','detail','error','ck-reset_all-excluded','addedNodes','change:status','_loadingView','nodeName','getFocusableElement','element','clear','status','6456324CHOxNc','cdnUrl','target','9261FYmuYx','toLowerCase','ck-uploadcare-form','render','_setView','apply','createCollection','_focusableView','_addUploadcareImageEditorListeners','retry','disconnect','_editingView'];_0x5782=function(){return _0x34ec44;};return _0x5782();}import{View as _0x52c8c0}from'ckeditor5/src/ui.js';function _0x14fb(_0x5bec6f,_0x35bb53){const _0x5782f0=_0x5782();return _0x14fb=function(_0x14fb01,_0x9c42af){_0x14fb01=_0x14fb01-0x1d9;let _0x29ba98=_0x5782f0[_0x14fb01];return _0x29ba98;},_0x14fb(_0x5bec6f,_0x35bb53);}import{UploadcareImageEditFormLoadingView as _0x500632}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x43d46f}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xd1891}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1ebfab}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x1ebfab{[_0x17700a(0x1ef)];[_0x17700a(0x205)];[_0x17700a(0x1fe)];[_0x17700a(0x1e3)];[_0x17700a(0x1df)];constructor(_0x25bbfb,_0x1e0b3b,_0x496fb1){const _0x97f32e=_0x17700a;super(_0x25bbfb),this[_0x97f32e(0x1ef)]=this[_0x97f32e(0x1de)](),this[_0x97f32e(0x205)]=new _0x500632(_0x25bbfb),this[_0x97f32e(0x1fe)]=new _0x43d46f(_0x25bbfb),this[_0x97f32e(0x1e3)]=new _0xd1891(_0x25bbfb,_0x496fb1),this[_0x97f32e(0x1df)]=new _0x52c8c0(_0x25bbfb),this[_0x97f32e(0x1df)][_0x97f32e(0x1f4)](this[_0x97f32e(0x207)]()),this[_0x97f32e(0x1fd)](_0x97f32e(0x20a),_0x1e0b3b),this[_0x97f32e(0x1f4)]({'tag':_0x97f32e(0x1ea),'attributes':{'class':['ck',_0x97f32e(0x202),_0x97f32e(0x1da)],'tabindex':'-1'},'children':this[_0x97f32e(0x1ef)]}),this[_0x97f32e(0x1dc)](),this[_0x97f32e(0x1f3)](_0x97f32e(0x1db),()=>{const _0xd4737a=_0x97f32e;this[_0xd4737a(0x1e6)](this[_0xd4737a(0x208)],_0xc253c0=>{const _0x220553=_0xd4737a;this[_0x220553(0x1e0)](_0xc253c0);});}),this['on'](_0x97f32e(0x204),()=>{const _0x151068=_0x97f32e;this[_0x151068(0x1dc)]();}),this[_0x97f32e(0x1f8)]();}[_0x17700a(0x1e4)](){const _0x5c7849=_0x17700a;this[_0x5c7849(0x208)][_0x5c7849(0x1e4)]();}[_0x17700a(0x1dc)](){const _0x39971e=_0x17700a;switch(this[_0x39971e(0x1ef)][_0x39971e(0x209)](),this[_0x39971e(0x20a)]){case _0x39971e(0x1f5):this[_0x39971e(0x1ef)][_0x39971e(0x1e5)](this[_0x39971e(0x205)]);break;case _0x39971e(0x201):this[_0x39971e(0x1ef)][_0x39971e(0x1e5)](this[_0x39971e(0x1fe)]);break;case _0x39971e(0x1eb):this[_0x39971e(0x1ef)][_0x39971e(0x1fa)]([this[_0x39971e(0x1e3)],this[_0x39971e(0x1df)]]);}}[_0x17700a(0x1e6)](_0x5c4a06,_0x24162a){const _0x43f6d5=_0x17700a,_0x5ba7e5=_0x43f6d5(0x1f7),_0x3fbe52=_0x5c4a06[_0x43f6d5(0x1ee)](_0x5ba7e5);if(_0x3fbe52)return _0x24162a(_0x3fbe52);const _0x12c464=new MutationObserver(_0x5be768=>{const _0x393315=_0x43f6d5,_0x518bf1=_0x5be768[_0x393315(0x1ec)](_0x39474d=>_0x39474d[_0x393315(0x20d)]===_0x5c4a06&&_0x39474d[_0x393315(0x203)][_0x393315(0x1e9)]>0x0&&_0x39474d[_0x393315(0x203)][0x0][_0x393315(0x206)][_0x393315(0x1d9)]()===_0x5ba7e5);_0x518bf1[_0x393315(0x1e9)]&&(_0x12c464[_0x393315(0x1e2)](),_0x24162a(_0x518bf1[0x0][_0x393315(0x203)][0x0]));});_0x12c464[_0x43f6d5(0x1ff)](_0x5c4a06,{'childList':!0x0,'subtree':!0x0});}[_0x17700a(0x1e0)](_0x1f552a){const _0x3b8aa2=_0x17700a;_0x1f552a[_0x3b8aa2(0x1fb)](_0x3b8aa2(0x1dd),_0x4e9bca=>{const _0x559ad6=_0x3b8aa2;this[_0x559ad6(0x1e8)](_0x559ad6(0x1dd),{'imageSrc':_0x4e9bca[_0x559ad6(0x200)][_0x559ad6(0x20c)]});}),_0x1f552a[_0x3b8aa2(0x1fb)](_0x3b8aa2(0x1f2),()=>{const _0x12c191=_0x3b8aa2;this[_0x12c191(0x1e8)](_0x12c191(0x1f2));});}[_0x17700a(0x1f8)](){const _0x1fc7a2=_0x17700a;this[_0x1fc7a2(0x1fe)]['on'](_0x1fc7a2(0x1e1),()=>{const _0x7a8468=_0x1fc7a2;this[_0x7a8468(0x1e8)](_0x7a8468(0x1e1));});}}
23
+ function _0x40cf(_0x5b516e,_0x155378){const _0x39a152=_0x39a1();return _0x40cf=function(_0x40cff4,_0x401dec){_0x40cff4=_0x40cff4-0x1b9;let _0x74f69d=_0x39a152[_0x40cff4];return _0x74f69d;},_0x40cf(_0x5b516e,_0x155378);}const _0x4b04dd=_0x40cf;(function(_0x50f725,_0x445f3d){const _0x36437e=_0x40cf,_0x5b1750=_0x50f725();while(!![]){try{const _0x44397e=parseInt(_0x36437e(0x1e0))/0x1*(parseInt(_0x36437e(0x1db))/0x2)+parseInt(_0x36437e(0x1d3))/0x3+parseInt(_0x36437e(0x1e2))/0x4+-parseInt(_0x36437e(0x1c5))/0x5*(parseInt(_0x36437e(0x1ea))/0x6)+-parseInt(_0x36437e(0x1d1))/0x7+parseInt(_0x36437e(0x1ce))/0x8+-parseInt(_0x36437e(0x1df))/0x9;if(_0x44397e===_0x445f3d)break;else _0x5b1750['push'](_0x5b1750['shift']());}catch(_0x564f1e){_0x5b1750['push'](_0x5b1750['shift']());}}}(_0x39a1,0x1a898));import{View as _0x573967}from'ckeditor5/src/ui.js';function _0x39a1(){const _0x30a3a6=['330792CLSgdz','addEventListener','_addUploadcareImageEditorListeners','observe','_setView','once','fire','_errorView','271426HDCLgB','setTemplate','add','change:status','1704033HkXhyd','1cVdqVB','toLowerCase','710840ALCukq','ck-reset_all-excluded','_focusableView','disconnect','length','addedNodes','querySelector','clear','12iGBPqT','ready','element','error','_addErrorViewListeners','focus','getFocusableElement','createCollection','filter','addMany','div','uploading','_items','cancel','set','_loadingView','target','322030SMKHhe','retry','detail','nodeName','ck-uploadcare-form','status','render','apply','_editingView','485248rMfjqI','_waitForImageEditorComponent','uc-cloud-image-editor','402486Dqswby','cdnUrl'];_0x39a1=function(){return _0x30a3a6;};return _0x39a1();}import{UploadcareImageEditFormLoadingView as _0x423c33}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2911a6}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x2a6051}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3fd3e4}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x3fd3e4{[_0x4b04dd(0x1c0)];[_0x4b04dd(0x1c3)];[_0x4b04dd(0x1da)];[_0x4b04dd(0x1cd)];[_0x4b04dd(0x1e4)];constructor(_0x2863cf,_0x267322,_0x372ab2){const _0x3699cf=_0x4b04dd;super(_0x2863cf),this[_0x3699cf(0x1c0)]=this[_0x3699cf(0x1bb)](),this[_0x3699cf(0x1c3)]=new _0x423c33(_0x2863cf),this[_0x3699cf(0x1da)]=new _0x2911a6(_0x2863cf),this[_0x3699cf(0x1cd)]=new _0x2a6051(_0x2863cf,_0x372ab2),this[_0x3699cf(0x1e4)]=new _0x573967(_0x2863cf),this[_0x3699cf(0x1e4)][_0x3699cf(0x1dc)](this[_0x3699cf(0x1ba)]()),this[_0x3699cf(0x1c2)](_0x3699cf(0x1ca),_0x267322),this[_0x3699cf(0x1dc)]({'tag':_0x3699cf(0x1be),'attributes':{'class':['ck',_0x3699cf(0x1e3),_0x3699cf(0x1c9)],'tabindex':'-1'},'children':this[_0x3699cf(0x1c0)]}),this[_0x3699cf(0x1d7)](),this[_0x3699cf(0x1d8)](_0x3699cf(0x1cb),()=>{const _0x5084ea=_0x3699cf;this[_0x5084ea(0x1cf)](this[_0x5084ea(0x1ec)],_0x409294=>{const _0x93967a=_0x5084ea;this[_0x93967a(0x1d5)](_0x409294);});}),this['on'](_0x3699cf(0x1de),()=>{const _0x280976=_0x3699cf;this[_0x280976(0x1d7)]();}),this[_0x3699cf(0x1ee)]();}[_0x4b04dd(0x1b9)](){const _0x249b0f=_0x4b04dd;this[_0x249b0f(0x1ec)][_0x249b0f(0x1b9)]();}[_0x4b04dd(0x1d7)](){const _0x3b2aac=_0x4b04dd;switch(this[_0x3b2aac(0x1c0)][_0x3b2aac(0x1e9)](),this[_0x3b2aac(0x1ca)]){case _0x3b2aac(0x1bf):this[_0x3b2aac(0x1c0)][_0x3b2aac(0x1dd)](this[_0x3b2aac(0x1c3)]);break;case _0x3b2aac(0x1ed):this[_0x3b2aac(0x1c0)][_0x3b2aac(0x1dd)](this[_0x3b2aac(0x1da)]);break;case _0x3b2aac(0x1eb):this[_0x3b2aac(0x1c0)][_0x3b2aac(0x1bd)]([this[_0x3b2aac(0x1cd)],this[_0x3b2aac(0x1e4)]]);}}[_0x4b04dd(0x1cf)](_0x2005dc,_0x254442){const _0x2b6624=_0x4b04dd,_0x3aca6a=_0x2b6624(0x1d0),_0xbf2033=_0x2005dc[_0x2b6624(0x1e8)](_0x3aca6a);if(_0xbf2033)return _0x254442(_0xbf2033);const _0x2575bb=new MutationObserver(_0x1914ea=>{const _0x52d321=_0x2b6624,_0x53e076=_0x1914ea[_0x52d321(0x1bc)](_0x193b2d=>_0x193b2d[_0x52d321(0x1c4)]===_0x2005dc&&_0x193b2d[_0x52d321(0x1e7)][_0x52d321(0x1e6)]>0x0&&_0x193b2d[_0x52d321(0x1e7)][0x0][_0x52d321(0x1c8)][_0x52d321(0x1e1)]()===_0x3aca6a);_0x53e076[_0x52d321(0x1e6)]&&(_0x2575bb[_0x52d321(0x1e5)](),_0x254442(_0x53e076[0x0][_0x52d321(0x1e7)][0x0]));});_0x2575bb[_0x2b6624(0x1d6)](_0x2005dc,{'childList':!0x0,'subtree':!0x0});}[_0x4b04dd(0x1d5)](_0x131d8d){const _0xec9f98=_0x4b04dd;_0x131d8d[_0xec9f98(0x1d4)](_0xec9f98(0x1cc),_0x196c02=>{const _0x2d067c=_0xec9f98;this[_0x2d067c(0x1d9)](_0x2d067c(0x1cc),{'imageSrc':_0x196c02[_0x2d067c(0x1c7)][_0x2d067c(0x1d2)]});}),_0x131d8d[_0xec9f98(0x1d4)](_0xec9f98(0x1c1),()=>{const _0x286651=_0xec9f98;this[_0x286651(0x1d9)](_0x286651(0x1c1));});}[_0x4b04dd(0x1ee)](){const _0x443ae7=_0x4b04dd;this[_0x443ae7(0x1da)]['on'](_0x443ae7(0x1c6),()=>{const _0xec3d44=_0x443ae7;this[_0xec3d44(0x1d9)](_0xec3d44(0x1c6));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49147f=_0x3748;(function(_0x545843,_0x6ef6df){const _0x36dd01=_0x3748,_0x2a0a50=_0x545843();while(!![]){try{const _0x24d1d6=parseInt(_0x36dd01(0xdd))/0x1+parseInt(_0x36dd01(0xf5))/0x2*(-parseInt(_0x36dd01(0xe2))/0x3)+parseInt(_0x36dd01(0xec))/0x4*(parseInt(_0x36dd01(0xe4))/0x5)+-parseInt(_0x36dd01(0xdf))/0x6+parseInt(_0x36dd01(0xda))/0x7*(parseInt(_0x36dd01(0xde))/0x8)+-parseInt(_0x36dd01(0xf6))/0x9+-parseInt(_0x36dd01(0xee))/0xa*(-parseInt(_0x36dd01(0xdc))/0xb);if(_0x24d1d6===_0x6ef6df)break;else _0x2a0a50['push'](_0x2a0a50['shift']());}catch(_0x1418a6){_0x2a0a50['push'](_0x2a0a50['shift']());}}}(_0x5aba,0x9092b));import{Command as _0x19b7b8}from'ckeditor5/src/core.js';import{Dialog as _0x4ef742}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x2d57cc}from'./ui/uploadcareimageeditcontroller.js';function _0x3748(_0x523e36,_0x10cbad){const _0x5abade=_0x5aba();return _0x3748=function(_0x37488a,_0x11630e){_0x37488a=_0x37488a-0xda;let _0x5d6da3=_0x5abade[_0x37488a];return _0x5d6da3;},_0x3748(_0x523e36,_0x10cbad);}import{createEditabilityChecker as _0x2c2f4c}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x19b7b8{[_0x49147f(0xe8)];static get[_0x49147f(0xe6)](){return[_0x4ef742];}[_0x49147f(0xea)];constructor(_0x5dc741){const _0x35328f=_0x49147f;super(_0x5dc741),this[_0x35328f(0xe8)]=void 0x0,this[_0x35328f(0xea)]=_0x2c2f4c(_0x5dc741[_0x35328f(0xe0)][_0x35328f(0xf9)](_0x35328f(0xe9))||[]),this[_0x35328f(0xf0)]({'isActive':!0x1});}[_0x49147f(0xf8)](){const _0x103270=_0x49147f,_0x53d979=this[_0x103270(0xf2)][_0x103270(0xe3)][_0x103270(0xef)][_0x103270(0xeb)][_0x103270(0xe1)]();this[_0x103270(0xfa)]=this[_0x103270(0xea)](_0x53d979);}[_0x49147f(0xe7)](){const _0x3bb128=_0x49147f;this[_0x3bb128(0xe8)]&&(this[_0x3bb128(0xe5)](_0x3bb128(0xf3)),this[_0x3bb128(0xe8)]=void 0x0);const _0x2ed955=this[_0x3bb128(0xf2)][_0x3bb128(0xe3)][_0x3bb128(0xef)][_0x3bb128(0xeb)][_0x3bb128(0xe1)]();_0x2ed955&&(_0x2ed955['is'](_0x3bb128(0xf4),_0x3bb128(0xf7))||_0x2ed955['is'](_0x3bb128(0xf4),_0x3bb128(0xf1)))&&(this[_0x3bb128(0xe8)]=new _0x2d57cc(this[_0x3bb128(0xf2)],this[_0x3bb128(0xf2)][_0x3bb128(0xed)][_0x3bb128(0xf9)](_0x4ef742),_0x2ed955),this[_0x3bb128(0xdb)](_0x3bb128(0xf3))['to'](this[_0x3bb128(0xe8)],_0x3bb128(0xf3)));}}function _0x5aba(){const _0x5e78c1=['getSelectedElement','235461Gffbff','model','30JSMAcI','unbind','requires','execute','imageEditController','uploadcare.allowExternalImagesEditing','_isEditable','selection','674124xOrFDT','plugins','3130EjZiPk','document','set','imageInline','editor','isActive','element','10QEmQoc','8930970LbJESO','imageBlock','refresh','get','isEnabled','231YMHDwh','bind','46552SkSflT','317398SnUPYd','49304VkSwQC','5277858Jeqblb','config'];_0x5aba=function(){return _0x5e78c1;};return _0x5aba();}
23
+ const _0x147937=_0x3b75;function _0x3b75(_0x23e71d,_0x5a7584){const _0x55a621=_0x55a6();return _0x3b75=function(_0x3b7557,_0xb939fc){_0x3b7557=_0x3b7557-0xc9;let _0x5d9245=_0x55a621[_0x3b7557];return _0x5d9245;},_0x3b75(_0x23e71d,_0x5a7584);}(function(_0x1a4e6e,_0x4365dc){const _0x3ccefd=_0x3b75,_0x29e876=_0x1a4e6e();while(!![]){try{const _0x5d23c2=parseInt(_0x3ccefd(0xcc))/0x1*(-parseInt(_0x3ccefd(0xd1))/0x2)+-parseInt(_0x3ccefd(0xe0))/0x3*(parseInt(_0x3ccefd(0xe9))/0x4)+-parseInt(_0x3ccefd(0xd7))/0x5+parseInt(_0x3ccefd(0xe2))/0x6*(parseInt(_0x3ccefd(0xdf))/0x7)+-parseInt(_0x3ccefd(0xcb))/0x8*(parseInt(_0x3ccefd(0xe8))/0x9)+-parseInt(_0x3ccefd(0xcd))/0xa+parseInt(_0x3ccefd(0xe5))/0xb;if(_0x5d23c2===_0x4365dc)break;else _0x29e876['push'](_0x29e876['shift']());}catch(_0x2bc4bd){_0x29e876['push'](_0x29e876['shift']());}}}(_0x55a6,0x2d9b3));function _0x55a6(){const _0x397565=['uploadcare.allowExternalImagesEditing','element','1024104BuRTeh','188wuzOQJ','2283470ixrQis','get','set','plugins','2116vrJhSL','config','refresh','isActive','isEnabled','getSelectedElement','1309180lPPMdo','unbind','selection','model','imageBlock','execute','document','requires','140zzVyCn','3hUMHLF','imageEditController','56232jlYGOU','imageInline','editor','9914542oekMdj','bind','_isEditable','9FJCCqt','339436hQFjca'];_0x55a6=function(){return _0x397565;};return _0x55a6();}import{Command as _0x707432}from'ckeditor5/src/core.js';import{Dialog as _0x3a83a0}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x542576}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x5a4b42}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x707432{[_0x147937(0xe1)];static get[_0x147937(0xde)](){return[_0x3a83a0];}[_0x147937(0xe7)];constructor(_0x4f587b){const _0x3a69dd=_0x147937;super(_0x4f587b),this[_0x3a69dd(0xe1)]=void 0x0,this[_0x3a69dd(0xe7)]=_0x5a4b42(_0x4f587b[_0x3a69dd(0xd2)][_0x3a69dd(0xce)](_0x3a69dd(0xc9))||[]),this[_0x3a69dd(0xcf)]({'isActive':!0x1});}[_0x147937(0xd3)](){const _0x235b18=_0x147937,_0x27832b=this[_0x235b18(0xe4)][_0x235b18(0xda)][_0x235b18(0xdd)][_0x235b18(0xd9)][_0x235b18(0xd6)]();this[_0x235b18(0xd5)]=this[_0x235b18(0xe7)](_0x27832b);}[_0x147937(0xdc)](){const _0xdfb54e=_0x147937;this[_0xdfb54e(0xe1)]&&(this[_0xdfb54e(0xd8)](_0xdfb54e(0xd4)),this[_0xdfb54e(0xe1)]=void 0x0);const _0x1dccce=this[_0xdfb54e(0xe4)][_0xdfb54e(0xda)][_0xdfb54e(0xdd)][_0xdfb54e(0xd9)][_0xdfb54e(0xd6)]();_0x1dccce&&(_0x1dccce['is'](_0xdfb54e(0xca),_0xdfb54e(0xdb))||_0x1dccce['is'](_0xdfb54e(0xca),_0xdfb54e(0xe3)))&&(this[_0xdfb54e(0xe1)]=new _0x542576(this[_0xdfb54e(0xe4)],this[_0xdfb54e(0xe4)][_0xdfb54e(0xd0)][_0xdfb54e(0xce)](_0x3a83a0),_0x1dccce),this[_0xdfb54e(0xe6)](_0xdfb54e(0xd4))['to'](this[_0xdfb54e(0xe1)],_0xdfb54e(0xd4)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x460810=_0x3944;(function(_0x3b3f80,_0x4b9708){const _0x139be1=_0x3944,_0x431167=_0x3b3f80();while(!![]){try{const _0x3c4ce1=-parseInt(_0x139be1(0x153))/0x1+parseInt(_0x139be1(0x13f))/0x2+-parseInt(_0x139be1(0x145))/0x3*(-parseInt(_0x139be1(0x14e))/0x4)+-parseInt(_0x139be1(0x141))/0x5+-parseInt(_0x139be1(0x14c))/0x6+parseInt(_0x139be1(0x146))/0x7*(parseInt(_0x139be1(0x147))/0x8)+-parseInt(_0x139be1(0x142))/0x9;if(_0x3c4ce1===_0x4b9708)break;else _0x431167['push'](_0x431167['shift']());}catch(_0xaf042b){_0x431167['push'](_0x431167['shift']());}}}(_0x570e,0x6d33f));function _0x570e(){const _0x34d932=['14938kISaAY','commands','407430JdScuM','6646410ocnCax','init','ImageUtils','2020719zDXIza','7BAJMGE','6131432cSVmxk','requires','uploadcareImageReplace','add','ImageEditing','1049760nbCkNI','isOfficialPlugin','4RmkCPz','isPremiumPlugin','UploadcareImageEditEditing','pluginName','uploadcareImageEdit','5240Ovthkm'];_0x570e=function(){return _0x34d932;};return _0x570e();}import{Plugin as _0x69488f}from'ckeditor5/src/core.js';import{Notification as _0x3f6bc8}from'ckeditor5/src/ui.js';function _0x3944(_0x2ff99a,_0x1cd925){const _0x570e99=_0x570e();return _0x3944=function(_0x39448a,_0x6e34da){_0x39448a=_0x39448a-0x13f;let _0x30b4aa=_0x570e99[_0x39448a];return _0x30b4aa;},_0x3944(_0x2ff99a,_0x1cd925);}import{UploadcareImageEditCommand as _0x40fcbc}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1dabc2}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2b46aa}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x69488f{static get[_0x460810(0x151)](){const _0x5f5651=_0x460810;return _0x5f5651(0x150);}static get[_0x460810(0x148)](){const _0x115f37=_0x460810;return[_0x2b46aa,_0x3f6bc8,_0x115f37(0x144),_0x115f37(0x14b)];}static get[_0x460810(0x14d)](){return!0x0;}static get[_0x460810(0x14f)](){return!0x0;}[_0x460810(0x143)](){const _0x239ec2=_0x460810,{editor:_0x3ddf0b}=this;_0x3ddf0b[_0x239ec2(0x140)][_0x239ec2(0x14a)](_0x239ec2(0x152),new _0x40fcbc(_0x3ddf0b)),_0x3ddf0b[_0x239ec2(0x140)][_0x239ec2(0x14a)](_0x239ec2(0x149),new _0x1dabc2(_0x3ddf0b));}}
23
+ const _0xaef6d5=_0x58eb;(function(_0x4be969,_0x4a21b8){const _0x2e6dd2=_0x58eb,_0x518829=_0x4be969();while(!![]){try{const _0x2670a9=-parseInt(_0x2e6dd2(0x152))/0x1*(-parseInt(_0x2e6dd2(0x154))/0x2)+parseInt(_0x2e6dd2(0x14e))/0x3*(parseInt(_0x2e6dd2(0x142))/0x4)+parseInt(_0x2e6dd2(0x146))/0x5*(-parseInt(_0x2e6dd2(0x144))/0x6)+-parseInt(_0x2e6dd2(0x153))/0x7+-parseInt(_0x2e6dd2(0x150))/0x8+parseInt(_0x2e6dd2(0x13f))/0x9*(parseInt(_0x2e6dd2(0x13e))/0xa)+parseInt(_0x2e6dd2(0x145))/0xb*(parseInt(_0x2e6dd2(0x14c))/0xc);if(_0x2670a9===_0x4a21b8)break;else _0x518829['push'](_0x518829['shift']());}catch(_0x4de6bc){_0x518829['push'](_0x518829['shift']());}}}(_0x518e,0x55203));import{Plugin as _0x2aa6fa}from'ckeditor5/src/core.js';import{Notification as _0x1b677c}from'ckeditor5/src/ui.js';function _0x518e(){const _0x34b99b=['137368RhgXjX','10RJCWxv','ImageEditing','pluginName','isPremiumPlugin','add','init','12rjWUjb','uploadcareImageEdit','289209xcrHXB','requires','271176fOjQIc','ImageUtils','383VMauDI','3541216pBcJLo','2898aeLrUT','isOfficialPlugin','9660IFyCwv','4167dawOmC','commands','uploadcareImageReplace','12TGJZTk','UploadcareImageEditEditing','1246386PMzqDs'];_0x518e=function(){return _0x34b99b;};return _0x518e();}import{UploadcareImageEditCommand as _0x2bf72e}from'./uploadcareimageeditcommand.js';function _0x58eb(_0x29c06e,_0x5d19a3){const _0x518e00=_0x518e();return _0x58eb=function(_0x58ebb0,_0x475b26){_0x58ebb0=_0x58ebb0-0x13d;let _0x3e9fbe=_0x518e00[_0x58ebb0];return _0x3e9fbe;},_0x58eb(_0x29c06e,_0x5d19a3);}import{UploadcareImageReplaceCommand as _0x1a44c9}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x44b909}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x2aa6fa{static get[_0xaef6d5(0x148)](){const _0x142675=_0xaef6d5;return _0x142675(0x143);}static get[_0xaef6d5(0x14f)](){const _0x4184ae=_0xaef6d5;return[_0x44b909,_0x1b677c,_0x4184ae(0x151),_0x4184ae(0x147)];}static get[_0xaef6d5(0x13d)](){return!0x0;}static get[_0xaef6d5(0x149)](){return!0x0;}[_0xaef6d5(0x14b)](){const _0x321eb7=_0xaef6d5,{editor:_0x28f348}=this;_0x28f348[_0x321eb7(0x140)][_0x321eb7(0x14a)](_0x321eb7(0x14d),new _0x2bf72e(_0x28f348)),_0x28f348[_0x321eb7(0x140)][_0x321eb7(0x14a)](_0x321eb7(0x141),new _0x1a44c9(_0x28f348));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x137563}from'ckeditor5/src/core.js';import{ButtonView as _0x1862b9}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x20c2e3}from'ckeditor5/src/icons.js';import{createElement as _0x4464bd}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 _0x137563{['_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 _0x5ca4d8=this['editor'];_0x5ca4d8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x43349d=>{const _0x1e3a45=_0x5ca4d8['commands']['get']('uploadcareImageEdit'),_0x335e77=new _0x1862b9(_0x43349d),t=_0x43349d['t'];return _0x335e77['set']({'icon':_0x20c2e3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x335e77['bind']('isEnabled')['to'](_0x1e3a45),_0x335e77['bind']('isOn')['to'](_0x1e3a45,'isActive'),this['listenTo'](_0x335e77,'execute',()=>{_0x5ca4d8['execute']('uploadcareImageEdit'),_0x5ca4d8['editing']['view']['focus']();}),_0x335e77;}),this['_initConfig']();}['_initConfig'](){const _0x602d13=_0x4464bd(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x602d13),this['listenTo'](this['editor'],'destroy',()=>{_0x602d13['remove']();});}}
23
+ import{Plugin as _0x3bee1f}from'ckeditor5/src/core.js';import{ButtonView as _0x3fc178}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xe84642}from'ckeditor5/src/icons.js';import{createElement as _0x24fc7b}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 _0x3bee1f{['_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 _0x22d237=this['editor'];_0x22d237['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5ea116=>{const _0x562eee=_0x22d237['commands']['get']('uploadcareImageEdit'),_0x8d84f7=new _0x3fc178(_0x5ea116),t=_0x5ea116['t'];return _0x8d84f7['set']({'icon':_0xe84642,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x8d84f7['bind']('isEnabled')['to'](_0x562eee),_0x8d84f7['bind']('isOn')['to'](_0x562eee,'isActive'),this['listenTo'](_0x8d84f7,'execute',()=>{_0x22d237['execute']('uploadcareImageEdit'),_0x22d237['editing']['view']['focus']();}),_0x8d84f7;}),this['_initConfig']();}['_initConfig'](){const _0x28b523=_0x24fc7b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x28b523),this['listenTo'](this['editor'],'destroy',()=>{_0x28b523['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3ab8fe=_0x1a48;function _0x1a48(_0x15dc97,_0x4cafbf){var _0xd56af6=_0xd56a();return _0x1a48=function(_0x1a4811,_0x10bffa){_0x1a4811=_0x1a4811-0x1c5;var _0x3973c4=_0xd56af6[_0x1a4811];return _0x3973c4;},_0x1a48(_0x15dc97,_0x4cafbf);}(function(_0x22bfbe,_0x4672ce){var _0x27a44f=_0x1a48,_0x3c0f08=_0x22bfbe();while(!![]){try{var _0x4c567b=-parseInt(_0x27a44f(0x1d5))/0x1+parseInt(_0x27a44f(0x1d7))/0x2+-parseInt(_0x27a44f(0x1ce))/0x3+parseInt(_0x27a44f(0x1d3))/0x4*(parseInt(_0x27a44f(0x1d4))/0x5)+parseInt(_0x27a44f(0x1c9))/0x6*(parseInt(_0x27a44f(0x1cd))/0x7)+-parseInt(_0x27a44f(0x1c5))/0x8*(parseInt(_0x27a44f(0x1d6))/0x9)+-parseInt(_0x27a44f(0x1d8))/0xa*(-parseInt(_0x27a44f(0x1cc))/0xb);if(_0x4c567b===_0x4672ce)break;else _0x3c0f08['push'](_0x3c0f08['shift']());}catch(_0xd2e664){_0x3c0f08['push'](_0x3c0f08['shift']());}}}(_0xd56a,0xeb5f2));import{FocusTracker as _0x4c9102}from'ckeditor5/src/utils.js';import{View as _0x1c51cd,FocusCycler as _0x337d99}from'ckeditor5/src/ui.js';function _0xd56a(){var _0x183291=['2937152jChURj','10elZfzr','272kofEsR','true','forwardCycle','fire','1128qBTIXs','div','createCollection','18804533DJYyDV','17906ZoYLlQ','5240628ucQjNo','focusTracker','getFocusableElement','focusCycler','bindTemplate','2908uJonjv','5415gQSXCi','892200vyMbfs','223191XmHGwf'];_0xd56a=function(){return _0x183291;};return _0xd56a();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1c51cd{[_0x3ab8fe(0x1cf)];[_0x3ab8fe(0x1d1)];constructor(_0x4ce49e){var _0x245b51=_0x3ab8fe;super(_0x4ce49e),this[_0x245b51(0x1cf)]=new _0x4c9102(),this[_0x245b51(0x1d1)]=new _0x337d99({'focusables':this[_0x245b51(0x1cb)](),'focusTracker':this[_0x245b51(0x1cf)]});}[_0x3ab8fe(0x1d0)](){var _0x4acb00=_0x3ab8fe;return{'tag':_0x4acb00(0x1ca),'attributes':{'aria-hidden':_0x4acb00(0x1c6),'tabindex':'0'},'on':{'focus':this[_0x4acb00(0x1d2)]['to'](()=>{var _0x39f517=_0x4acb00;this[_0x39f517(0x1d1)][_0x39f517(0x1c8)](_0x39f517(0x1c7));})}};}}
23
+ var _0xc0ad6a=_0xa9f9;function _0xa9f9(_0x4110f2,_0x182060){var _0x2817e7=_0x2817();return _0xa9f9=function(_0xa9f960,_0x57cd1){_0xa9f960=_0xa9f960-0x15b;var _0x1ddaf0=_0x2817e7[_0xa9f960];return _0x1ddaf0;},_0xa9f9(_0x4110f2,_0x182060);}(function(_0x130b58,_0x2a1afa){var _0x455f5f=_0xa9f9,_0x1be6c1=_0x130b58();while(!![]){try{var _0x2c1088=-parseInt(_0x455f5f(0x15b))/0x1*(-parseInt(_0x455f5f(0x16d))/0x2)+parseInt(_0x455f5f(0x169))/0x3+parseInt(_0x455f5f(0x168))/0x4+parseInt(_0x455f5f(0x161))/0x5+parseInt(_0x455f5f(0x15d))/0x6*(parseInt(_0x455f5f(0x15f))/0x7)+-parseInt(_0x455f5f(0x16a))/0x8*(parseInt(_0x455f5f(0x16b))/0x9)+parseInt(_0x455f5f(0x167))/0xa*(-parseInt(_0x455f5f(0x163))/0xb);if(_0x2c1088===_0x2a1afa)break;else _0x1be6c1['push'](_0x1be6c1['shift']());}catch(_0x3cf480){_0x1be6c1['push'](_0x1be6c1['shift']());}}}(_0x2817,0x54ee0));function _0x2817(){var _0x23b0b0=['focusCycler','true','42290XhAfBO','1510404nCOPue','1514649dASXAe','4792iqyeLG','5571lkgeLX','forwardCycle','298AVMDXB','fire','1169hUFxkg','div','522UuYGvo','focusTracker','49329hsgmIw','bindTemplate','2243490UlNGCr','createCollection','3641NOnstG','getFocusableElement'];_0x2817=function(){return _0x23b0b0;};return _0x2817();}import{FocusTracker as _0x58d4e6}from'ckeditor5/src/utils.js';import{View as _0xa05ef5,FocusCycler as _0x46e04b}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0xa05ef5{[_0xc0ad6a(0x15e)];[_0xc0ad6a(0x165)];constructor(_0x5a2581){var _0x2fadda=_0xc0ad6a;super(_0x5a2581),this[_0x2fadda(0x15e)]=new _0x58d4e6(),this[_0x2fadda(0x165)]=new _0x46e04b({'focusables':this[_0x2fadda(0x162)](),'focusTracker':this[_0x2fadda(0x15e)]});}[_0xc0ad6a(0x164)](){var _0xbae7ae=_0xc0ad6a;return{'tag':_0xbae7ae(0x15c),'attributes':{'aria-hidden':_0xbae7ae(0x166),'tabindex':'0'},'on':{'focus':this[_0xbae7ae(0x160)]['to'](()=>{var _0x4fdb5f=_0xbae7ae;this[_0x4fdb5f(0x165)][_0x4fdb5f(0x16e)](_0x4fdb5f(0x16c));})}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x5002cb,_0x57751c){const _0x233378=_0x2c8f,_0x564f9d=_0x5002cb();while(!![]){try{const _0x3c1f17=-parseInt(_0x233378(0xb2))/0x1+parseInt(_0x233378(0xb7))/0x2*(parseInt(_0x233378(0xab))/0x3)+-parseInt(_0x233378(0xac))/0x4+parseInt(_0x233378(0xcf))/0x5+parseInt(_0x233378(0xd2))/0x6+parseInt(_0x233378(0xca))/0x7+parseInt(_0x233378(0xc5))/0x8*(parseInt(_0x233378(0xaf))/0x9);if(_0x3c1f17===_0x57751c)break;else _0x564f9d['push'](_0x564f9d['shift']());}catch(_0x1a4ac5){_0x564f9d['push'](_0x564f9d['shift']());}}}(_0x391a,0x41659));import{global as _0x12c268,DomEmitterMixin as _0x2280ff}from'ckeditor5/src/utils.js';function _0x2c8f(_0x519ccb,_0x496bbf){const _0x391a07=_0x391a();return _0x2c8f=function(_0x2c8faa,_0x5d5f95){_0x2c8faa=_0x2c8faa-0xa4;let _0x56fb58=_0x391a07[_0x2c8faa];return _0x56fb58;},_0x2c8f(_0x519ccb,_0x496bbf);}function _0x391a(){const _0x5aa553=['removeStyle','location','findViewImgElement','hasAttribute','isArray','function','plugins','8RDcXiu','image-processing','listenTo','filter','origin','2591995EkIsSU','x/\x20','(max-width:\x20','replace','window','493080vIQqVQ','getAttribute','load','77430pLmfzC','some','px)\x20100vw,\x20','map','get','removeClass','/-/resize/','imageInline','aspect-ratio','editing','view','uploadcareImageId','element','mapper','src','setStyle','join','7257wdPuhq','1849272EOiJoO','imageBlock','match','3807288nZbSTC','addClass','height','235130yNuSST','toViewElement','change','ImageUtils','viewToDom','50obRBuo','stopListening','domConverter','width','image/webp','baseURI','document'];_0x391a=function(){return _0x5aa553;};return _0x391a();}export function createEditabilityChecker(_0x24cc98){const _0x2046fd=_0x2c8f,_0x26d66f=R(_0x24cc98);return _0x43a56d=>!(!_0x43a56d||!_0x43a56d['is'](_0x2046fd(0xa6),_0x2046fd(0xad))&&!_0x43a56d['is'](_0x2046fd(0xa6),_0x2046fd(0xd9)))&&(!!_0x43a56d[_0x2046fd(0xc1)](_0x2046fd(0xa5))||!!_0x43a56d[_0x2046fd(0xc1)](_0x2046fd(0xa8))&&_0x26d66f(_0x43a56d[_0x2046fd(0xd0)](_0x2046fd(0xa8))));}export function getImageUrls(_0x5216ce,_0x33f2e8){const _0x3a0be4=_0x2c8f,_0xe9f7fe=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x3a0be4(0xc8)](_0x2e1b65=>_0x2e1b65<=_0x33f2e8)[_0x3a0be4(0xd5)](_0x18c00f=>_0x5216ce[_0x3a0be4(0xcd)](/\/$/,'')+_0x3a0be4(0xd8)+_0x18c00f+_0x3a0be4(0xcb)+_0x18c00f+'w');return{'imageFallbackUrl':_0x5216ce,'imageSources':[{'srcset':_0xe9f7fe[_0x3a0be4(0xaa)](',\x20'),'sizes':_0x3a0be4(0xcc)+_0x33f2e8+_0x3a0be4(0xd4)+_0x33f2e8+'px','type':_0x3a0be4(0xbb)}]};}export function getImageDimension(_0x3be3ba,_0x54f47e,_0x1f4c9e){const _0x1bfa69=_0x2c8f,_0x1a2fc2=_0x3be3ba[_0x1bfa69(0xae)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1a2fc2?parseInt(_0x1a2fc2[0x1],0xa):_0x54f47e,'height':_0x1a2fc2?parseInt(_0x1a2fc2[0x2],0xa):_0x1f4c9e};}export function showImageProcessingIndicator(_0x5afd65,_0x6a1735){const _0x4d73b8=_0x2c8f,_0x552a0c=new(_0x2280ff())(),_0x5ad49d=_0x5afd65[_0x4d73b8(0xc4)][_0x4d73b8(0xd6)](_0x4d73b8(0xb5)),_0x1139e3=_0x5afd65[_0x4d73b8(0xdb)][_0x4d73b8(0xa7)][_0x4d73b8(0xb3)](_0x6a1735),_0x15d21c=_0x5ad49d[_0x4d73b8(0xc0)](_0x1139e3),_0x52cd24=_0x5afd65[_0x4d73b8(0xdb)][_0x4d73b8(0xa4)][_0x4d73b8(0xb9)][_0x4d73b8(0xb6)](_0x15d21c),_0x73f8c=_0x6a1735[_0x4d73b8(0xd0)](_0x4d73b8(0xba)),_0x38057e=_0x6a1735[_0x4d73b8(0xd0)](_0x4d73b8(0xb1)),_0x1aa72d=_0x4d73b8(0xc6);_0x5afd65[_0x4d73b8(0xdb)][_0x4d73b8(0xa4)][_0x4d73b8(0xb4)](_0x574eb6=>{const _0x4cf160=_0x4d73b8;_0x574eb6[_0x4cf160(0xb0)](_0x1aa72d,_0x1139e3),_0x574eb6[_0x4cf160(0xa9)](_0x4cf160(0xda),_0x73f8c+'/'+_0x38057e,_0x15d21c);}),_0x552a0c[_0x4d73b8(0xc7)](_0x52cd24,_0x4d73b8(0xd1),()=>{const _0xeee291=_0x4d73b8;_0x552a0c[_0xeee291(0xb8)](_0x52cd24,_0xeee291(0xd1)),_0x5afd65[_0xeee291(0xdb)][_0xeee291(0xa4)][_0xeee291(0xb4)](_0x24dd18=>{const _0x797d88=_0xeee291;_0x24dd18[_0x797d88(0xd7)](_0x1aa72d,_0x1139e3),_0x24dd18[_0x797d88(0xbe)](_0x797d88(0xda),_0x15d21c);});});}function R(_0xaead1a){const _0xa88494=_0x2c8f;if(Array[_0xa88494(0xc2)](_0xaead1a)){const _0x21dd7d=_0xaead1a[_0xa88494(0xd5)](R);return _0x45d937=>_0x21dd7d[_0xa88494(0xd3)](_0x20a42b=>_0x20a42b(_0x45d937));}if(_0xa88494(0xc9)==_0xaead1a){const _0x59bc4c=_0x12c268[_0xa88494(0xce)][_0xa88494(0xbf)][_0xa88494(0xc9)];return _0x6851ac=>new URL(_0x6851ac,_0x12c268[_0xa88494(0xbd)][_0xa88494(0xbc)])[_0xa88494(0xc9)]==_0x59bc4c;}return _0xa88494(0xc3)==typeof _0xaead1a?_0xaead1a:_0xaead1a instanceof RegExp?_0x23d2f0=>!(!_0x23d2f0[_0xa88494(0xae)](_0xaead1a)&&!_0x23d2f0[_0xa88494(0xcd)](/^https?:\/\//,'')[_0xa88494(0xae)](_0xaead1a)):()=>!0x1;}
23
+ (function(_0x3140a5,_0x43eaba){const _0x17bea3=_0x2ab4,_0x703881=_0x3140a5();while(!![]){try{const _0x19f36b=parseInt(_0x17bea3(0xcf))/0x1*(-parseInt(_0x17bea3(0xe4))/0x2)+-parseInt(_0x17bea3(0xd8))/0x3*(parseInt(_0x17bea3(0xc2))/0x4)+parseInt(_0x17bea3(0xd9))/0x5*(parseInt(_0x17bea3(0xbb))/0x6)+-parseInt(_0x17bea3(0xc9))/0x7*(-parseInt(_0x17bea3(0xc8))/0x8)+parseInt(_0x17bea3(0xe6))/0x9+-parseInt(_0x17bea3(0xd2))/0xa+parseInt(_0x17bea3(0xbf))/0xb*(-parseInt(_0x17bea3(0xdb))/0xc);if(_0x19f36b===_0x43eaba)break;else _0x703881['push'](_0x703881['shift']());}catch(_0x59fbe5){_0x703881['push'](_0x703881['shift']());}}}(_0x5e9f,0x186a0));function _0x5e9f(){const _0x2891be=['change','837PvrCoC','34735NYoxWt','element','15780RaSAmz','location','window','filter','document','ImageUtils','removeStyle','listenTo','replace','2lTKUWT','map','1657971NbaIYj','view','mapper','editing','baseURI','(max-width:\x20','function','uploadcareImageId','image-processing','aspect-ratio','image/webp','width','getAttribute','x/\x20','join','height','90JTfjyu','load','setStyle','plugins','319GOjjdr','/-/resize/','hasAttribute','84snabdQ','some','imageInline','domConverter','stopListening','get','40xtFgaX','245357qdjvVo','isArray','toViewElement','removeClass','match','findViewImgElement','125963ajAXXY','viewToDom','origin','1937220SltYGx','addClass','src','imageBlock','px)\x20100vw,\x20'];_0x5e9f=function(){return _0x2891be;};return _0x5e9f();}function _0x2ab4(_0x58121f,_0xf8b839){const _0x5e9f51=_0x5e9f();return _0x2ab4=function(_0x2ab47e,_0x568e16){_0x2ab47e=_0x2ab47e-0xb5;let _0x15b76e=_0x5e9f51[_0x2ab47e];return _0x15b76e;},_0x2ab4(_0x58121f,_0xf8b839);}import{global as _0x20d58e,DomEmitterMixin as _0x4a6b66}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x1ebfe1){const _0x203fdb=_0x2ab4,_0x554f03=z(_0x1ebfe1);return _0x5be6e7=>!(!_0x5be6e7||!_0x5be6e7['is'](_0x203fdb(0xda),_0x203fdb(0xd5))&&!_0x5be6e7['is'](_0x203fdb(0xda),_0x203fdb(0xc4)))&&(!!_0x5be6e7[_0x203fdb(0xc1)](_0x203fdb(0xed))||!!_0x5be6e7[_0x203fdb(0xc1)](_0x203fdb(0xd4))&&_0x554f03(_0x5be6e7[_0x203fdb(0xb7)](_0x203fdb(0xd4))));}export function getImageUrls(_0x475c64,_0x51376d){const _0x4b920e=_0x2ab4,_0x9cad1a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x4b920e(0xde)](_0xbb0ed7=>_0xbb0ed7<=_0x51376d)[_0x4b920e(0xe5)](_0x567e29=>_0x475c64[_0x4b920e(0xe3)](/\/$/,'')+_0x4b920e(0xc0)+_0x567e29+_0x4b920e(0xb8)+_0x567e29+'w');return{'imageFallbackUrl':_0x475c64,'imageSources':[{'srcset':_0x9cad1a[_0x4b920e(0xb9)](',\x20'),'sizes':_0x4b920e(0xeb)+_0x51376d+_0x4b920e(0xd6)+_0x51376d+'px','type':_0x4b920e(0xb5)}]};}export function getImageDimension(_0x3dc9fd,_0x57acb4,_0x40bb23){const _0x31ddeb=_0x2ab4,_0x46dee5=_0x3dc9fd[_0x31ddeb(0xcd)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x46dee5?parseInt(_0x46dee5[0x1],0xa):_0x57acb4,'height':_0x46dee5?parseInt(_0x46dee5[0x2],0xa):_0x40bb23};}export function showImageProcessingIndicator(_0x52b459,_0x2f67c9){const _0x235602=_0x2ab4,_0x277e31=new(_0x4a6b66())(),_0xaa17ca=_0x52b459[_0x235602(0xbe)][_0x235602(0xc7)](_0x235602(0xe0)),_0x43e5b8=_0x52b459[_0x235602(0xe9)][_0x235602(0xe8)][_0x235602(0xcb)](_0x2f67c9),_0x23d75f=_0xaa17ca[_0x235602(0xce)](_0x43e5b8),_0xf2873a=_0x52b459[_0x235602(0xe9)][_0x235602(0xe7)][_0x235602(0xc5)][_0x235602(0xd0)](_0x23d75f),_0x25e424=_0x2f67c9[_0x235602(0xb7)](_0x235602(0xb6)),_0x45c625=_0x2f67c9[_0x235602(0xb7)](_0x235602(0xba)),_0x2b31e5=_0x235602(0xee);_0x52b459[_0x235602(0xe9)][_0x235602(0xe7)][_0x235602(0xd7)](_0x2317dd=>{const _0x500717=_0x235602;_0x2317dd[_0x500717(0xd3)](_0x2b31e5,_0x43e5b8),_0x2317dd[_0x500717(0xbd)](_0x500717(0xef),_0x25e424+'/'+_0x45c625,_0x23d75f);}),_0x277e31[_0x235602(0xe2)](_0xf2873a,_0x235602(0xbc),()=>{const _0x5515a2=_0x235602;_0x277e31[_0x5515a2(0xc6)](_0xf2873a,_0x5515a2(0xbc)),_0x52b459[_0x5515a2(0xe9)][_0x5515a2(0xe7)][_0x5515a2(0xd7)](_0x54d96a=>{const _0x38e72a=_0x5515a2;_0x54d96a[_0x38e72a(0xcc)](_0x2b31e5,_0x43e5b8),_0x54d96a[_0x38e72a(0xe1)](_0x38e72a(0xef),_0x23d75f);});});}function z(_0x283396){const _0x3271d9=_0x2ab4;if(Array[_0x3271d9(0xca)](_0x283396)){const _0x4be2af=_0x283396[_0x3271d9(0xe5)](z);return _0x71968e=>_0x4be2af[_0x3271d9(0xc3)](_0x1116ed=>_0x1116ed(_0x71968e));}if(_0x3271d9(0xd1)==_0x283396){const _0x21f413=_0x20d58e[_0x3271d9(0xdd)][_0x3271d9(0xdc)][_0x3271d9(0xd1)];return _0x3e6e29=>new URL(_0x3e6e29,_0x20d58e[_0x3271d9(0xdf)][_0x3271d9(0xea)])[_0x3271d9(0xd1)]==_0x21f413;}return _0x3271d9(0xec)==typeof _0x283396?_0x283396:_0x283396 instanceof RegExp?_0x1f573f=>!(!_0x1f573f[_0x3271d9(0xcd)](_0x283396)&&!_0x1f573f[_0x3271d9(0xe3)](/^https?:\/\//,'')[_0x3271d9(0xcd)](_0x283396)):()=>!0x1;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1305(_0x54afcb,_0x116280){var _0x23f293=_0x23f2();return _0x1305=function(_0x130520,_0x448d0a){_0x130520=_0x130520-0x18f;var _0x25c808=_0x23f293[_0x130520];return _0x25c808;},_0x1305(_0x54afcb,_0x116280);}function _0x23f2(){var _0x4486e1=['8781670wrNORA','target','35903CgzoVV','includes','47860LOpJuO','220MMEgLJ','6604032KeKzaQ','7907994UUesVz','408oFzxSN','3nLuetX','1383486imUnjt','941496AytsMq'];_0x23f2=function(){return _0x4486e1;};return _0x23f2();}(function(_0x4271cf,_0x1ac816){var _0x30939e=_0x1305,_0x1d07ae=_0x4271cf();while(!![]){try{var _0x6bbfb6=parseInt(_0x30939e(0x194))/0x1+parseInt(_0x30939e(0x193))/0x2*(parseInt(_0x30939e(0x192))/0x3)+parseInt(_0x30939e(0x19a))/0x4*(-parseInt(_0x30939e(0x199))/0x5)+-parseInt(_0x30939e(0x191))/0x6*(-parseInt(_0x30939e(0x197))/0x7)+-parseInt(_0x30939e(0x18f))/0x8+parseInt(_0x30939e(0x190))/0x9+-parseInt(_0x30939e(0x195))/0xa;if(_0x6bbfb6===_0x1ac816)break;else _0x1d07ae['push'](_0x1d07ae['shift']());}catch(_0x3c1a63){_0x1d07ae['push'](_0x1d07ae['shift']());}}}(_0x23f2,0x99f12));import{getAncestors as _0x3dcbf4}from'ckeditor5/src/utils.js';export function isAncestor(_0xb0eb44,_0x577147){var _0x170670=_0x1305;return _0x3dcbf4(_0xb0eb44[_0x170670(0x196)])[_0x170670(0x198)](_0x577147);}
23
+ (function(_0x14f4e1,_0xc1342c){var _0x59a680=_0x41b8,_0x8f5bda=_0x14f4e1();while(!![]){try{var _0x3cd46d=parseInt(_0x59a680(0xd7))/0x1*(-parseInt(_0x59a680(0xd9))/0x2)+-parseInt(_0x59a680(0xd8))/0x3*(-parseInt(_0x59a680(0xd6))/0x4)+-parseInt(_0x59a680(0xda))/0x5*(-parseInt(_0x59a680(0xdd))/0x6)+-parseInt(_0x59a680(0xdf))/0x7+-parseInt(_0x59a680(0xd5))/0x8+-parseInt(_0x59a680(0xdc))/0x9*(-parseInt(_0x59a680(0xd3))/0xa)+-parseInt(_0x59a680(0xde))/0xb;if(_0x3cd46d===_0xc1342c)break;else _0x8f5bda['push'](_0x8f5bda['shift']());}catch(_0x4199c7){_0x8f5bda['push'](_0x8f5bda['shift']());}}}(_0x459a,0xa9677));function _0x459a(){var _0x705c9f=['1718aYJNfl','255DJfUoy','includes','9LYwqyN','79284MONCkN','3385338mtAmKR','5739195WWQVzZ','13411430EcFjuC','target','3571536LqhVaM','232828VosOms','722mbxPSR','45SQLUZO'];_0x459a=function(){return _0x705c9f;};return _0x459a();}import{getAncestors as _0xb0fe4a}from'ckeditor5/src/utils.js';function _0x41b8(_0x5f4e04,_0x17dea6){var _0x459a1f=_0x459a();return _0x41b8=function(_0x41b806,_0x27296d){_0x41b806=_0x41b806-0xd3;var _0x5e2218=_0x459a1f[_0x41b806];return _0x5e2218;},_0x41b8(_0x5f4e04,_0x17dea6);}export function isAncestor(_0x541da3,_0x3af311){var _0x411510=_0x41b8;return _0xb0fe4a(_0x541da3[_0x411510(0xd4)])[_0x411510(0xdb)](_0x3af311);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5ca83e=_0x1d4f;(function(_0x59f0c8,_0x158c8a){var _0x4b515c=_0x1d4f,_0x257049=_0x59f0c8();while(!![]){try{var _0x484176=-parseInt(_0x4b515c(0x1e8))/0x1*(-parseInt(_0x4b515c(0x1f1))/0x2)+-parseInt(_0x4b515c(0x1e7))/0x3+-parseInt(_0x4b515c(0x1f3))/0x4+parseInt(_0x4b515c(0x1ea))/0x5*(parseInt(_0x4b515c(0x1f0))/0x6)+parseInt(_0x4b515c(0x1ef))/0x7+parseInt(_0x4b515c(0x1ee))/0x8*(parseInt(_0x4b515c(0x1ec))/0x9)+-parseInt(_0x4b515c(0x1ed))/0xa;if(_0x484176===_0x158c8a)break;else _0x257049['push'](_0x257049['shift']());}catch(_0xf762b7){_0x257049['push'](_0x257049['shift']());}}}(_0x4d8e,0x8c404));import{uploadFile as _0x52a504,info as _0x14fc01}from'@uploadcare/upload-client';function _0x4d8e(){var _0x4e55fa=['1199600kEVxDH','24VeIhie','7071890aXRgyj','6xRYwGi','22aVoSWC','getInfo','4207004IbhrFj','2805762xqLjcz','50044zGZgPw','auto','2131030zyJaGl','upload','2083419xYrGqh'];_0x4d8e=function(){return _0x4e55fa;};return _0x4d8e();}function _0x1d4f(_0x34caf2,_0x2e072c){var _0x4d8e86=_0x4d8e();return _0x1d4f=function(_0x1d4f74,_0x5b7ef4){_0x1d4f74=_0x1d4f74-0x1e7;var _0x18a0bd=_0x4d8e86[_0x1d4f74];return _0x18a0bd;},_0x1d4f(_0x34caf2,_0x2e072c);}export class UploadUtils{static[_0x5ca83e(0x1eb)]({file:_0x1eabf4,publicKey:_0x3c2b48,signal:_0x287d0f,onProgress:_0x353aa8}){var _0x323196=_0x5ca83e;return _0x52a504(_0x1eabf4,{'publicKey':_0x3c2b48,'store':_0x323196(0x1e9),'signal':_0x287d0f,'onProgress':_0x353aa8});}static[_0x5ca83e(0x1f2)](_0x1c586b,_0x41cd7b){return _0x14fc01(_0x1c586b,_0x41cd7b);}}
23
+ var _0x270552=_0x128d;(function(_0x4a75f2,_0xc6c4bc){var _0x3c85c4=_0x128d,_0x3c030a=_0x4a75f2();while(!![]){try{var _0x4f2a06=-parseInt(_0x3c85c4(0x1aa))/0x1+-parseInt(_0x3c85c4(0x1a1))/0x2+-parseInt(_0x3c85c4(0x1a7))/0x3*(-parseInt(_0x3c85c4(0x1a6))/0x4)+parseInt(_0x3c85c4(0x1a5))/0x5*(parseInt(_0x3c85c4(0x1a8))/0x6)+-parseInt(_0x3c85c4(0x1a9))/0x7+parseInt(_0x3c85c4(0x1a3))/0x8+-parseInt(_0x3c85c4(0x1a4))/0x9;if(_0x4f2a06===_0xc6c4bc)break;else _0x3c030a['push'](_0x3c030a['shift']());}catch(_0x24a121){_0x3c030a['push'](_0x3c030a['shift']());}}}(_0x6f70,0x30fcc));import{uploadFile as _0x1cd111,info as _0x4705b2}from'@uploadcare/upload-client';function _0x128d(_0xd1225,_0x3e3148){var _0x6f70c7=_0x6f70();return _0x128d=function(_0x128d45,_0x1b5daf){_0x128d45=_0x128d45-0x19f;var _0x1737e5=_0x6f70c7[_0x128d45];return _0x1737e5;},_0x128d(_0xd1225,_0x3e3148);}function _0x6f70(){var _0x1ab432=['29136tnigeO','6FGngQp','98007HkyahP','144710JMvoWC','getInfo','upload','364mMYUKD','auto','1454312yGbAPA','3780153BdMevd','1677745Xlokyv','108jiMJnE'];_0x6f70=function(){return _0x1ab432;};return _0x6f70();}export class UploadUtils{static[_0x270552(0x1a0)]({file:_0x3c2b0c,publicKey:_0x1e3c47,signal:_0x2d5a8f,onProgress:_0x1eface}){var _0x3ce46b=_0x270552;return _0x1cd111(_0x3c2b0c,{'publicKey':_0x1e3c47,'store':_0x3ce46b(0x1a2),'signal':_0x2d5a8f,'onProgress':_0x1eface});}static[_0x270552(0x19f)](_0x3779dd,_0x1c0267){return _0x4705b2(_0x3779dd,_0x1c0267);}}