@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250913.0 → 0.0.0-nightly-20250914.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x322286,ObservableMixin as _0x2a0be5}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x5c38b3}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x18d422}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x11d5cc}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x17abfd}from'../../utils/uploadutils.js';import{getImageUrls as _0x1d2747,getImageDimension as _0x5568d}from'../../utils/editingutils.js';import{isAncestor as _0x3bf216}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x2a0be5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x18b92d,_0x42fe8b,_0x1b482c){super(),this['_editor']=_0x18b92d,this['_dialog']=_0x42fe8b,this['_imageElement']=_0x1b482c,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 _0x996eb8=this['_imageElement'],_0x1fbbdb=_0x996eb8['getAttribute']('uploadcareImageId'),_0x30ac29=_0x996eb8['getAttribute']('src');if(_0x1fbbdb)await this['_loadImageInfo'](_0x1fbbdb,_0x30ac29);else{if(this['_imageCache']['has'](_0x30ac29)){const _0x4d40bb=this['_imageCache']['get'](_0x30ac29);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d40bb['url'],this['imageDimension']=_0x4d40bb['dimension'],this['imageId']=_0x4d40bb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x588499}=this['_editor'],t=_0x588499['t'],_0x4f8750=new _0x11d5cc(_0x588499,this['imageStatus'],this['_attributes']);_0x4f8750['bind']('status')['to'](this,'imageStatus'),_0x4f8750['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4f8750['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4f8750['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4f8750,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x18d422,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4f8750,'position':_0x5c38b3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4f8750['focus']();},'onHide':()=>{_0x4f8750['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2fdb0a=>!_0x3bf216(_0x2fdb0a,_0x4f8750['element'])}});}['_loadImageInfo'](_0x4decc4,_0x28560d){return _0x17abfd['getInfo'](_0x4decc4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2a9f00=>{const {width:_0x4531c5,height:_0x57b669}=_0x2a9f00['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x28560d,this['imageDimension']={'width':_0x4531c5,'height':_0x57b669},this['imageId']=_0x4decc4;})['catch'](_0x1166c0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1166c0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x513069,_0x402f64){return this['_getImageAsFile'](_0x513069)['then'](_0x2b1c4c=>_0x17abfd['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':_0x402f64['signal'],'file':_0x2b1c4c,'onProgress':_0x103389=>{_0x103389&&_0x103389['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x103389['value']));}}))['then'](_0x4599ba=>{const {width:_0x6c429d,height:_0x3efc65}=_0x4599ba['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4599ba['cdnUrl'],this['imageDimension']={'width':_0x6c429d,'height':_0x3efc65},this['imageId']=_0x4599ba['uuid'],this['imageUploadProgress']=null;const _0x398439=_0x513069['getAttribute']('src');this['_imageCache']['set'](_0x398439,{'id':_0x4599ba['uuid'],'url':_0x4599ba['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2b1b3b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2b1b3b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2d582e,_0x1f8e23){_0x2d582e['on']('apply',(_0x175107,_0x586e60)=>{this['_replaceImage'](_0x1f8e23,_0x586e60['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2d582e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2d582e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5811ee,_0x4e2a72,_0x20a1be){const _0x5c0771=this['_editor'],{width:_0x4a32b9,height:_0x486b75}=_0x5568d(_0x4e2a72,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3654fa,imageSources:_0x4bd7fa}=_0x1d2747(_0x4e2a72,_0x4a32b9);_0x5c0771['model']['change'](_0x496c7c=>{if('$graveyard'===_0x5811ee['root']['rootName']){_0x5c0771['execute']('insertImage',{'imageType':_0x5811ee['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5811ee['getAttributes']()),'uploadcareImageId':_0x20a1be,'src':_0x3654fa,'sources':_0x4bd7fa,'width':_0x4a32b9,'height':_0x486b75}});const _0x454ccd=_0x5811ee['getChildren']();_0x5811ee=_0x5c0771['model']['document']['selection']['getSelectedElement']();for(const _0x1001ac of _0x454ccd)_0x496c7c['append'](_0x496c7c['cloneElement'](_0x1001ac),_0x5811ee);}else _0x496c7c['setSelection'](_0x5811ee,'on'),_0x5c0771['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5811ee['getAttributes']()),'uploadcareImageId':_0x20a1be,'src':_0x3654fa,'sources':_0x4bd7fa,'width':_0x4a32b9,'height':_0x486b75},_0x5811ee);_0x496c7c['setSelection'](_0x5811ee,'on');});}async['_getImageAsFile'](_0x3e9b57){const _0x470dcf=_0x322286['window'],_0x156ff7=_0x322286['document']['location']['href'],_0x4f2b0c=new _0x470dcf['URL'](_0x3e9b57['getAttribute']('src'),_0x156ff7);if('data:'===_0x4f2b0c['protocol']){const _0xda6cfe=_0x4f2b0c['href']['split'](','),_0x29cfda=_0xda6cfe[0x0]['match'](/:(.*?);/)[0x1],_0x2d2c94=_0x29cfda['split']('/')[0x1],_0x6ffbfc=_0x470dcf['atob'](_0xda6cfe[_0xda6cfe['length']-0x1]);let _0xb72998=_0x6ffbfc['length'];const _0x7edd4e=new _0x470dcf['Uint8Array'](_0xb72998);for(;_0xb72998--;)_0x7edd4e[_0xb72998]=_0x6ffbfc['charCodeAt'](_0xb72998);return new _0x470dcf['File']([_0x7edd4e],'image.'+_0x2d2c94,{'type':_0x29cfda});}const _0x1cb302=_0x4f2b0c['href']['split']('/'),_0x16d889=_0x1cb302[_0x1cb302['length']-0x1],_0x4b1d51=_0x16d889['split']('.')[0x1];return _0x470dcf['fetch'](_0x4f2b0c['href'])['then'](_0x272a0b=>_0x272a0b['clone']()['blob']())['then'](_0x3054ff=>new _0x470dcf['File']([_0x3054ff],_0x16d889,{'type':'image/'+_0x4b1d51}));}}
23
+ import{global as _0x22eeaf,ObservableMixin as _0x239699}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x30fd7d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x54895e}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x15797c}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x464874}from'../../utils/uploadutils.js';import{getImageUrls as _0x300a67,getImageDimension as _0x5d7c6c}from'../../utils/editingutils.js';import{isAncestor as _0x47a861}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x239699(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4b03a5,_0xf601ae,_0x5c670e){super(),this['_editor']=_0x4b03a5,this['_dialog']=_0xf601ae,this['_imageElement']=_0x5c670e,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 _0x3a5c5c=this['_imageElement'],_0xa849b0=_0x3a5c5c['getAttribute']('uploadcareImageId'),_0x469314=_0x3a5c5c['getAttribute']('src');if(_0xa849b0)await this['_loadImageInfo'](_0xa849b0,_0x469314);else{if(this['_imageCache']['has'](_0x469314)){const _0x409ffd=this['_imageCache']['get'](_0x469314);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x409ffd['url'],this['imageDimension']=_0x409ffd['dimension'],this['imageId']=_0x409ffd['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xded998}=this['_editor'],t=_0xded998['t'],_0x27c385=new _0x15797c(_0xded998,this['imageStatus'],this['_attributes']);_0x27c385['bind']('status')['to'](this,'imageStatus'),_0x27c385['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x27c385['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x27c385['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x27c385,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x54895e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x27c385,'position':_0x30fd7d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x27c385['focus']();},'onHide':()=>{_0x27c385['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4c1d9e=>!_0x47a861(_0x4c1d9e,_0x27c385['element'])}});}['_loadImageInfo'](_0x1c26ff,_0x39b1a2){return _0x464874['getInfo'](_0x1c26ff,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x53cfab=>{const {width:_0x484f83,height:_0x308dd3}=_0x53cfab['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x39b1a2,this['imageDimension']={'width':_0x484f83,'height':_0x308dd3},this['imageId']=_0x1c26ff;})['catch'](_0x1365a6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1365a6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x30c676,_0x2d6aca){return this['_getImageAsFile'](_0x30c676)['then'](_0x33658e=>_0x464874['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':_0x2d6aca['signal'],'file':_0x33658e,'onProgress':_0x3614bb=>{_0x3614bb&&_0x3614bb['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3614bb['value']));}}))['then'](_0x32926b=>{const {width:_0x9f454d,height:_0x60a087}=_0x32926b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32926b['cdnUrl'],this['imageDimension']={'width':_0x9f454d,'height':_0x60a087},this['imageId']=_0x32926b['uuid'],this['imageUploadProgress']=null;const _0x509bc0=_0x30c676['getAttribute']('src');this['_imageCache']['set'](_0x509bc0,{'id':_0x32926b['uuid'],'url':_0x32926b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x44d8df=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x44d8df['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4fd752,_0x316297){_0x4fd752['on']('apply',(_0x44864d,_0x8d5936)=>{this['_replaceImage'](_0x316297,_0x8d5936['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4fd752['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4fd752['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x462ba3,_0x25b5e4,_0x15d6b5){const _0x2115ba=this['_editor'],{width:_0x40283c,height:_0x1da60a}=_0x5d7c6c(_0x25b5e4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1a9795,imageSources:_0x1265d1}=_0x300a67(_0x25b5e4,_0x40283c);_0x2115ba['model']['change'](_0x30522a=>{if('$graveyard'===_0x462ba3['root']['rootName']){_0x2115ba['execute']('insertImage',{'imageType':_0x462ba3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x462ba3['getAttributes']()),'uploadcareImageId':_0x15d6b5,'src':_0x1a9795,'sources':_0x1265d1,'width':_0x40283c,'height':_0x1da60a}});const _0x182da6=_0x462ba3['getChildren']();_0x462ba3=_0x2115ba['model']['document']['selection']['getSelectedElement']();for(const _0x3cdcc9 of _0x182da6)_0x30522a['append'](_0x30522a['cloneElement'](_0x3cdcc9),_0x462ba3);}else _0x30522a['setSelection'](_0x462ba3,'on'),_0x2115ba['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x462ba3['getAttributes']()),'uploadcareImageId':_0x15d6b5,'src':_0x1a9795,'sources':_0x1265d1,'width':_0x40283c,'height':_0x1da60a},_0x462ba3);_0x30522a['setSelection'](_0x462ba3,'on');});}async['_getImageAsFile'](_0x16c0ac){const _0x584be0=_0x22eeaf['window'],_0x29e33d=_0x22eeaf['document']['location']['href'],_0x19ce0e=new _0x584be0['URL'](_0x16c0ac['getAttribute']('src'),_0x29e33d);if('data:'===_0x19ce0e['protocol']){const _0x2a0772=_0x19ce0e['href']['split'](','),_0x32667b=_0x2a0772[0x0]['match'](/:(.*?);/)[0x1],_0x36c5e6=_0x32667b['split']('/')[0x1],_0x2638b1=_0x584be0['atob'](_0x2a0772[_0x2a0772['length']-0x1]);let _0x3845a7=_0x2638b1['length'];const _0x3dadd4=new _0x584be0['Uint8Array'](_0x3845a7);for(;_0x3845a7--;)_0x3dadd4[_0x3845a7]=_0x2638b1['charCodeAt'](_0x3845a7);return new _0x584be0['File']([_0x3dadd4],'image.'+_0x36c5e6,{'type':_0x32667b});}const _0x14e56b=_0x19ce0e['href']['split']('/'),_0x53bfc7=_0x14e56b[_0x14e56b['length']-0x1],_0x4b8537=_0x53bfc7['split']('.')[0x1];return _0x584be0['fetch'](_0x19ce0e['href'])['then'](_0x19caff=>_0x19caff['clone']()['blob']())['then'](_0x26385b=>new _0x584be0['File']([_0x26385b],_0x53bfc7,{'type':'image/'+_0x4b8537}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x3e6239,_0x4da87e){const _0x38b130=_0x16d8,_0x3bc575=_0x3e6239();while(!![]){try{const _0x44dec0=parseInt(_0x38b130(0x163))/0x1*(parseInt(_0x38b130(0x155))/0x2)+parseInt(_0x38b130(0x15e))/0x3+-parseInt(_0x38b130(0x15a))/0x4*(parseInt(_0x38b130(0x15b))/0x5)+parseInt(_0x38b130(0x160))/0x6*(parseInt(_0x38b130(0x15c))/0x7)+parseInt(_0x38b130(0x159))/0x8+parseInt(_0x38b130(0x164))/0x9+-parseInt(_0x38b130(0x15f))/0xa;if(_0x44dec0===_0x4da87e)break;else _0x3bc575['push'](_0x3bc575['shift']());}catch(_0x34b2c0){_0x3bc575['push'](_0x3bc575['shift']());}}}(_0x4c76,0x8bd82));function _0x4c76(){const _0x48423f=['3219472dfhKuL','28NEXxZN','396080GzUWsD','3851813EDaHTL','image-edit','1976385QucjYC','24630740QkPECu','6uGtHso','uc-cloud-image-editor','setTemplate','961454vZVAVl','9157014msgFJB','imageSrc','ck-uploadcare-theme','2wNjAyW','bindTemplate','set','uc-light'];_0x4c76=function(){return _0x48423f;};return _0x4c76();}function _0x16d8(_0x348186,_0x59ea47){const _0x4c763a=_0x4c76();return _0x16d8=function(_0x16d835,_0xf82d4a){_0x16d835=_0x16d835-0x155;let _0x2395c1=_0x4c763a[_0x16d835];return _0x2395c1;},_0x16d8(_0x348186,_0x59ea47);}import{View as _0x5c8cbf}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x5c8cbf{constructor(_0x60da7a,_0x427ab2){const _0x4be715=_0x16d8;super(_0x60da7a);const _0x3dab0e=this[_0x4be715(0x156)];this[_0x4be715(0x157)](_0x4be715(0x165),''),this[_0x4be715(0x162)]({'tag':_0x4be715(0x161),'attributes':{..._0x427ab2,'class':[_0x4be715(0x158),_0x4be715(0x166)],'ctx-name':_0x4be715(0x15d),'cdn-url':_0x3dab0e['to'](_0x4be715(0x165))}});}}
23
+ (function(_0x10f408,_0x5b12f9){const _0x1b25a7=_0x1734,_0x134619=_0x10f408();while(!![]){try{const _0x45b1f7=parseInt(_0x1b25a7(0x135))/0x1*(parseInt(_0x1b25a7(0x13a))/0x2)+-parseInt(_0x1b25a7(0x13d))/0x3*(parseInt(_0x1b25a7(0x129))/0x4)+parseInt(_0x1b25a7(0x12f))/0x5*(parseInt(_0x1b25a7(0x136))/0x6)+parseInt(_0x1b25a7(0x139))/0x7*(-parseInt(_0x1b25a7(0x130))/0x8)+parseInt(_0x1b25a7(0x138))/0x9*(-parseInt(_0x1b25a7(0x12b))/0xa)+-parseInt(_0x1b25a7(0x134))/0xb*(-parseInt(_0x1b25a7(0x13c))/0xc)+parseInt(_0x1b25a7(0x13b))/0xd;if(_0x45b1f7===_0x5b12f9)break;else _0x134619['push'](_0x134619['shift']());}catch(_0x223e4d){_0x134619['push'](_0x134619['shift']());}}}(_0x56e4,0x447a9));function _0x1734(_0x3d2fa1,_0x2073e9){const _0x56e4e5=_0x56e4();return _0x1734=function(_0x17345d,_0x6e8128){_0x17345d=_0x17345d-0x129;let _0x569109=_0x56e4e5[_0x17345d];return _0x569109;},_0x1734(_0x3d2fa1,_0x2073e9);}import{View as _0x3858b8}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x3858b8{constructor(_0x4625e2,_0x55459b){const _0x2574e1=_0x1734;super(_0x4625e2);const _0x28927b=this[_0x2574e1(0x12c)];this[_0x2574e1(0x12d)](_0x2574e1(0x132),''),this[_0x2574e1(0x137)]({'tag':_0x2574e1(0x133),'attributes':{..._0x55459b,'class':[_0x2574e1(0x12e),_0x2574e1(0x131)],'ctx-name':_0x2574e1(0x12a),'cdn-url':_0x28927b['to'](_0x2574e1(0x132))}});}}function _0x56e4(){const _0x520744=['210KLKtud','setTemplate','5553hIpjZn','2267258pUcUlu','4514XBlThA','5746806wCBJjL','6682464RZmVDi','2547YQVWRE','504pWkpEE','image-edit','8230cIYEbu','bindTemplate','set','uc-light','27590sxhfqj','8MnyFWK','ck-uploadcare-theme','imageSrc','uc-cloud-image-editor','11JQEJCw','12BBRwtk'];_0x56e4=function(){return _0x520744;};return _0x56e4();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x39700a}from'ckeditor5/src/icons.js';import{ButtonView as _0x4f6140,IconView as _0x28b559,View as _0x1024d4}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x1024d4{constructor(_0x49b5c6){super(_0x49b5c6);const t=_0x49b5c6['t'];this['set']('errorType',null);const _0x585cd9=new _0x4f6140(_0x49b5c6);_0x585cd9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x585cd9['withText']=!0x0,_0x585cd9['class']='ck-button-action',_0x585cd9['on']('execute',()=>{this['fire']('retry');}),_0x585cd9['bind']('isVisible')['to'](this,'errorType',_0x3d1acc=>'NotFound'!==_0x3d1acc);const _0x402ded=new _0x28b559();_0x402ded['content']=_0x39700a,_0x402ded['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x26075d=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':[_0x402ded,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x26075d['to']('errorType',_0x3baf10=>t('NotFound'!==_0x3baf10?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x585cd9]},{'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 _0x3ed6dd}from'ckeditor5/src/icons.js';import{ButtonView as _0x204c6b,IconView as _0x3c3a03,View as _0x405522}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x405522{constructor(_0x22fc91){super(_0x22fc91);const t=_0x22fc91['t'];this['set']('errorType',null);const _0x368df8=new _0x204c6b(_0x22fc91);_0x368df8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x368df8['withText']=!0x0,_0x368df8['class']='ck-button-action',_0x368df8['on']('execute',()=>{this['fire']('retry');}),_0x368df8['bind']('isVisible')['to'](this,'errorType',_0x2fee8b=>'NotFound'!==_0x2fee8b);const _0x247497=new _0x3c3a03();_0x247497['content']=_0x3ed6dd,_0x247497['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1de782=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':[_0x247497,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1de782['to']('errorType',_0x2e735f=>t('NotFound'!==_0x2e735f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x368df8]},{'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 _0x32620a,View as _0x343d10}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x343d10{constructor(_0x4332d3){super(_0x4332d3);const t=_0x4332d3['t'],_0xed19c6=this['bindTemplate'],_0x4a7b3f=new _0x32620a();_0x4a7b3f['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':[_0x4a7b3f,{'text':_0xed19c6['to']('imageUploadProgress',_0x4b28bf=>t('Loading\x20image...')+'\x20('+(_0x4b28bf||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 _0x460a0f,View as _0x8250}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x8250{constructor(_0x44da03){super(_0x44da03);const t=_0x44da03['t'],_0x4f4fdd=this['bindTemplate'],_0x2d34d6=new _0x460a0f();_0x2d34d6['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':[_0x2d34d6,{'text':_0x4f4fdd['to']('imageUploadProgress',_0x552c9e=>t('Loading\x20image...')+'\x20('+(_0x552c9e||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 _0x353fe0=_0x167e;(function(_0x43006b,_0x2fa5bf){const _0x593fe7=_0x167e,_0x399584=_0x43006b();while(!![]){try{const _0x204b84=-parseInt(_0x593fe7(0xab))/0x1+-parseInt(_0x593fe7(0x95))/0x2+-parseInt(_0x593fe7(0xa2))/0x3+parseInt(_0x593fe7(0xac))/0x4*(-parseInt(_0x593fe7(0xa4))/0x5)+-parseInt(_0x593fe7(0x96))/0x6*(-parseInt(_0x593fe7(0x90))/0x7)+parseInt(_0x593fe7(0x93))/0x8*(-parseInt(_0x593fe7(0x9d))/0x9)+parseInt(_0x593fe7(0xaa))/0xa*(parseInt(_0x593fe7(0xbe))/0xb);if(_0x204b84===_0x2fa5bf)break;else _0x399584['push'](_0x399584['shift']());}catch(_0x2494d1){_0x399584['push'](_0x399584['shift']());}}}(_0x2c31,0x9df01));import{View as _0x58bfcb}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x11c9f5}from'./uploadcareimageeditformloadingview.js';function _0x167e(_0x5bb75f,_0x29629d){const _0x2c3117=_0x2c31();return _0x167e=function(_0x167e07,_0x4ca52e){_0x167e07=_0x167e07-0x90;let _0x128391=_0x2c3117[_0x167e07];return _0x128391;},_0x167e(_0x5bb75f,_0x29629d);}import{UploadcareImageEditFormErrorView as _0x473052}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x54d25b}from'./uploadcareimageeditformeditingview.js';function _0x2c31(){const _0xe83125=['clear','set','disconnect','getFocusableElement','retry','fire','uploading','946KfYtmE','_items','focus','_focusableView','cancel','div','status','length','change:status','ready','1539013wKVHZJ','addedNodes','_addUploadcareImageEditorListeners','266096gDSPgm','observe','889960WdLdLT','24iyMTYF','error','_errorView','_addErrorViewListeners','_editingView','uc-cloud-image-editor','detail','9QPsDqo','_waitForImageEditorComponent','add','_loadingView','element','1909140sAkfSG','cdnUrl','600515YhxdNO','querySelector','target','once','addMany','apply','357310uEzWXy','1109840DaDSvL','36VyvhkJ','ck-uploadcare-form','toLowerCase','filter','nodeName','ck-reset_all-excluded','render','createCollection','setTemplate','addEventListener','_setView'];_0x2c31=function(){return _0xe83125;};return _0x2c31();}import{DialogFocusManagerView as _0x579eed}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x579eed{[_0x353fe0(0xbf)];[_0x353fe0(0xa0)];[_0x353fe0(0x98)];[_0x353fe0(0x9a)];[_0x353fe0(0xc1)];constructor(_0x30762d,_0x31da4d,_0x1b63d8){const _0x4b5f05=_0x353fe0;super(_0x30762d),this[_0x4b5f05(0xbf)]=this[_0x4b5f05(0xb3)](),this[_0x4b5f05(0xa0)]=new _0x11c9f5(_0x30762d),this[_0x4b5f05(0x98)]=new _0x473052(_0x30762d),this[_0x4b5f05(0x9a)]=new _0x54d25b(_0x30762d,_0x1b63d8),this[_0x4b5f05(0xc1)]=new _0x58bfcb(_0x30762d),this[_0x4b5f05(0xc1)][_0x4b5f05(0xb4)](this[_0x4b5f05(0xba)]()),this[_0x4b5f05(0xb8)](_0x4b5f05(0xc4),_0x31da4d),this[_0x4b5f05(0xb4)]({'tag':_0x4b5f05(0xc3),'attributes':{'class':['ck',_0x4b5f05(0xb1),_0x4b5f05(0xad)],'tabindex':'-1'},'children':this[_0x4b5f05(0xbf)]}),this[_0x4b5f05(0xb6)](),this[_0x4b5f05(0xa7)](_0x4b5f05(0xb2),()=>{const _0x17b901=_0x4b5f05;this[_0x17b901(0x9e)](this[_0x17b901(0xa1)],_0x21671d=>{const _0x5e9311=_0x17b901;this[_0x5e9311(0x92)](_0x21671d);});}),this['on'](_0x4b5f05(0xc6),()=>{const _0x143924=_0x4b5f05;this[_0x143924(0xb6)]();}),this[_0x4b5f05(0x99)]();}[_0x353fe0(0xc0)](){const _0x5e751a=_0x353fe0;this[_0x5e751a(0xa1)][_0x5e751a(0xc0)]();}[_0x353fe0(0xb6)](){const _0x53b9b4=_0x353fe0;switch(this[_0x53b9b4(0xbf)][_0x53b9b4(0xb7)](),this[_0x53b9b4(0xc4)]){case _0x53b9b4(0xbd):this[_0x53b9b4(0xbf)][_0x53b9b4(0x9f)](this[_0x53b9b4(0xa0)]);break;case _0x53b9b4(0x97):this[_0x53b9b4(0xbf)][_0x53b9b4(0x9f)](this[_0x53b9b4(0x98)]);break;case _0x53b9b4(0xc7):this[_0x53b9b4(0xbf)][_0x53b9b4(0xa8)]([this[_0x53b9b4(0x9a)],this[_0x53b9b4(0xc1)]]);}}[_0x353fe0(0x9e)](_0x46214f,_0x1810e9){const _0x2c8b99=_0x353fe0,_0x183347=_0x2c8b99(0x9b),_0xb9fec0=_0x46214f[_0x2c8b99(0xa5)](_0x183347);if(_0xb9fec0)return _0x1810e9(_0xb9fec0);const _0x1f1038=new MutationObserver(_0x426297=>{const _0x50f5a7=_0x2c8b99,_0x4b6c25=_0x426297[_0x50f5a7(0xaf)](_0x159482=>_0x159482[_0x50f5a7(0xa6)]===_0x46214f&&_0x159482[_0x50f5a7(0x91)][_0x50f5a7(0xc5)]>0x0&&_0x159482[_0x50f5a7(0x91)][0x0][_0x50f5a7(0xb0)][_0x50f5a7(0xae)]()===_0x183347);_0x4b6c25[_0x50f5a7(0xc5)]&&(_0x1f1038[_0x50f5a7(0xb9)](),_0x1810e9(_0x4b6c25[0x0][_0x50f5a7(0x91)][0x0]));});_0x1f1038[_0x2c8b99(0x94)](_0x46214f,{'childList':!0x0,'subtree':!0x0});}[_0x353fe0(0x92)](_0x77e774){const _0x599d4e=_0x353fe0;_0x77e774[_0x599d4e(0xb5)](_0x599d4e(0xa9),_0x500731=>{const _0x222a0f=_0x599d4e;this[_0x222a0f(0xbc)](_0x222a0f(0xa9),{'imageSrc':_0x500731[_0x222a0f(0x9c)][_0x222a0f(0xa3)]});}),_0x77e774[_0x599d4e(0xb5)](_0x599d4e(0xc2),()=>{const _0xbfe0d1=_0x599d4e;this[_0xbfe0d1(0xbc)](_0xbfe0d1(0xc2));});}[_0x353fe0(0x99)](){const _0x570d3a=_0x353fe0;this[_0x570d3a(0x98)]['on'](_0x570d3a(0xbb),()=>{const _0x1f91f4=_0x570d3a;this[_0x1f91f4(0xbc)](_0x1f91f4(0xbb));});}}
23
+ const _0x2067f5=_0x5128;(function(_0xfb0fab,_0x297bea){const _0x9ca01d=_0x5128,_0xa7b511=_0xfb0fab();while(!![]){try{const _0x7bf012=parseInt(_0x9ca01d(0x9c))/0x1+-parseInt(_0x9ca01d(0xb6))/0x2*(parseInt(_0x9ca01d(0xb1))/0x3)+-parseInt(_0x9ca01d(0xc2))/0x4+parseInt(_0x9ca01d(0x9e))/0x5*(parseInt(_0x9ca01d(0xc4))/0x6)+parseInt(_0x9ca01d(0xc3))/0x7*(-parseInt(_0x9ca01d(0xcf))/0x8)+parseInt(_0x9ca01d(0xa8))/0x9+-parseInt(_0x9ca01d(0xaf))/0xa*(-parseInt(_0x9ca01d(0xac))/0xb);if(_0x7bf012===_0x297bea)break;else _0xa7b511['push'](_0xa7b511['shift']());}catch(_0x43b7b8){_0xa7b511['push'](_0xa7b511['shift']());}}}(_0x321e,0x74b9b));import{View as _0x5b68ed}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1acb05}from'./uploadcareimageeditformloadingview.js';function _0x5128(_0x39932f,_0x377424){const _0x321ee7=_0x321e();return _0x5128=function(_0x5128d2,_0x21533a){_0x5128d2=_0x5128d2-0x9c;let _0x14e4c9=_0x321ee7[_0x5128d2];return _0x14e4c9;},_0x5128(_0x39932f,_0x377424);}import{UploadcareImageEditFormErrorView as _0x2d9100}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x40008c}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3c32e8}from'../../utils/dialogfocusmanagerview.js';function _0x321e(){const _0x259668=['set','status','addedNodes','ck-uploadcare-form','retry','render','add','observe','8224zFZiNw','_editingView','createCollection','setTemplate','_setView','489775WuePaZ','once','1527970QHnpzU','ready','fire','_waitForImageEditorComponent','uploading','cancel','ck-reset_all-excluded','_items','filter','focus','1243179NlKpZk','element','addEventListener','error','3509DcQZRa','change:status','detail','61850pYfVAG','_addErrorViewListeners','507udoLYk','_loadingView','apply','cdnUrl','clear','9970THnFTZ','toLowerCase','div','target','getFocusableElement','nodeName','length','uc-cloud-image-editor','_focusableView','addMany','disconnect','_addUploadcareImageEditorListeners','3066508MpwZHK','5579LKZkAg','6FQwtpP','_errorView','querySelector'];_0x321e=function(){return _0x259668;};return _0x321e();}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x3c32e8{[_0x2067f5(0xa5)];[_0x2067f5(0xb2)];[_0x2067f5(0xc5)];[_0x2067f5(0xd0)];[_0x2067f5(0xbe)];constructor(_0x4de3c5,_0x5675c9,_0x3b78a3){const _0x4fb453=_0x2067f5;super(_0x4de3c5),this[_0x4fb453(0xa5)]=this[_0x4fb453(0xd1)](),this[_0x4fb453(0xb2)]=new _0x1acb05(_0x4de3c5),this[_0x4fb453(0xc5)]=new _0x2d9100(_0x4de3c5),this[_0x4fb453(0xd0)]=new _0x40008c(_0x4de3c5,_0x3b78a3),this[_0x4fb453(0xbe)]=new _0x5b68ed(_0x4de3c5),this[_0x4fb453(0xbe)][_0x4fb453(0xd2)](this[_0x4fb453(0xba)]()),this[_0x4fb453(0xc7)](_0x4fb453(0xc8),_0x5675c9),this[_0x4fb453(0xd2)]({'tag':_0x4fb453(0xb8),'attributes':{'class':['ck',_0x4fb453(0xa4),_0x4fb453(0xca)],'tabindex':'-1'},'children':this[_0x4fb453(0xa5)]}),this[_0x4fb453(0xd3)](),this[_0x4fb453(0x9d)](_0x4fb453(0xcc),()=>{const _0x5ecbde=_0x4fb453;this[_0x5ecbde(0xa1)](this[_0x5ecbde(0xa9)],_0x2fface=>{const _0x2e9eb5=_0x5ecbde;this[_0x2e9eb5(0xc1)](_0x2fface);});}),this['on'](_0x4fb453(0xad),()=>{const _0x191397=_0x4fb453;this[_0x191397(0xd3)]();}),this[_0x4fb453(0xb0)]();}[_0x2067f5(0xa7)](){const _0x564f82=_0x2067f5;this[_0x564f82(0xa9)][_0x564f82(0xa7)]();}[_0x2067f5(0xd3)](){const _0x5bf66e=_0x2067f5;switch(this[_0x5bf66e(0xa5)][_0x5bf66e(0xb5)](),this[_0x5bf66e(0xc8)]){case _0x5bf66e(0xa2):this[_0x5bf66e(0xa5)][_0x5bf66e(0xcd)](this[_0x5bf66e(0xb2)]);break;case _0x5bf66e(0xab):this[_0x5bf66e(0xa5)][_0x5bf66e(0xcd)](this[_0x5bf66e(0xc5)]);break;case _0x5bf66e(0x9f):this[_0x5bf66e(0xa5)][_0x5bf66e(0xbf)]([this[_0x5bf66e(0xd0)],this[_0x5bf66e(0xbe)]]);}}[_0x2067f5(0xa1)](_0x452c25,_0xe77a04){const _0x5ad3d4=_0x2067f5,_0x546e3e=_0x5ad3d4(0xbd),_0x2151e2=_0x452c25[_0x5ad3d4(0xc6)](_0x546e3e);if(_0x2151e2)return _0xe77a04(_0x2151e2);const _0x34c7d7=new MutationObserver(_0x1ac1e0=>{const _0x5abc65=_0x5ad3d4,_0x29dc92=_0x1ac1e0[_0x5abc65(0xa6)](_0x5438cd=>_0x5438cd[_0x5abc65(0xb9)]===_0x452c25&&_0x5438cd[_0x5abc65(0xc9)][_0x5abc65(0xbc)]>0x0&&_0x5438cd[_0x5abc65(0xc9)][0x0][_0x5abc65(0xbb)][_0x5abc65(0xb7)]()===_0x546e3e);_0x29dc92[_0x5abc65(0xbc)]&&(_0x34c7d7[_0x5abc65(0xc0)](),_0xe77a04(_0x29dc92[0x0][_0x5abc65(0xc9)][0x0]));});_0x34c7d7[_0x5ad3d4(0xce)](_0x452c25,{'childList':!0x0,'subtree':!0x0});}[_0x2067f5(0xc1)](_0x478c8c){const _0x417c21=_0x2067f5;_0x478c8c[_0x417c21(0xaa)](_0x417c21(0xb3),_0x596ab3=>{const _0x3d0b0f=_0x417c21;this[_0x3d0b0f(0xa0)](_0x3d0b0f(0xb3),{'imageSrc':_0x596ab3[_0x3d0b0f(0xae)][_0x3d0b0f(0xb4)]});}),_0x478c8c[_0x417c21(0xaa)](_0x417c21(0xa3),()=>{const _0x3b07b3=_0x417c21;this[_0x3b07b3(0xa0)](_0x3b07b3(0xa3));});}[_0x2067f5(0xb0)](){const _0x43d759=_0x2067f5;this[_0x43d759(0xc5)]['on'](_0x43d759(0xcb),()=>{const _0x35d80e=_0x43d759;this[_0x35d80e(0xa0)](_0x35d80e(0xcb));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ec2cb=_0x1942;(function(_0x1b85f0,_0x593027){const _0x3c571c=_0x1942,_0x5f209c=_0x1b85f0();while(!![]){try{const _0x3a30e1=-parseInt(_0x3c571c(0xa9))/0x1+parseInt(_0x3c571c(0xa2))/0x2+parseInt(_0x3c571c(0x9d))/0x3+-parseInt(_0x3c571c(0x98))/0x4*(parseInt(_0x3c571c(0xab))/0x5)+parseInt(_0x3c571c(0x9c))/0x6+-parseInt(_0x3c571c(0xa5))/0x7*(-parseInt(_0x3c571c(0x93))/0x8)+parseInt(_0x3c571c(0xa1))/0x9*(parseInt(_0x3c571c(0xaf))/0xa);if(_0x3a30e1===_0x593027)break;else _0x5f209c['push'](_0x5f209c['shift']());}catch(_0x59a556){_0x5f209c['push'](_0x5f209c['shift']());}}}(_0x4f5e,0x49a27));function _0x1942(_0x46f433,_0x1bdf37){const _0x4f5ebf=_0x4f5e();return _0x1942=function(_0x194239,_0x43837b){_0x194239=_0x194239-0x92;let _0x53e628=_0x4f5ebf[_0x194239];return _0x53e628;},_0x1942(_0x46f433,_0x1bdf37);}import{Command as _0x569833}from'ckeditor5/src/core.js';function _0x4f5e(){const _0x37b3ba=['element','document','config','bind','8cAxVyH','editor','isEnabled','imageBlock','559884tkSnoB','55134syeglK','get','selection','imageEditController','369JibiRG','190190rRTeQX','imageInline','isActive','1631749VXXdpp','model','set','unbind','392337BLsFBg','uploadcare.allowExternalImagesEditing','1034040RkGhBE','execute','getSelectedElement','requires','105990FJmCAv','plugins','_isEditable','refresh','16szwEvj'];_0x4f5e=function(){return _0x37b3ba;};return _0x4f5e();}import{Dialog as _0x57a8a1}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x25085e}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x22913f}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x569833{[_0x1ec2cb(0xa0)];static get[_0x1ec2cb(0xae)](){return[_0x57a8a1];}[_0x1ec2cb(0xb1)];constructor(_0xe0eded){const _0x3b49c3=_0x1ec2cb;super(_0xe0eded),this[_0x3b49c3(0xa0)]=void 0x0,this[_0x3b49c3(0xb1)]=_0x22913f(_0xe0eded[_0x3b49c3(0x96)][_0x3b49c3(0x9e)](_0x3b49c3(0xaa))||[]),this[_0x3b49c3(0xa7)]({'isActive':!0x1});}[_0x1ec2cb(0x92)](){const _0x3ebe83=_0x1ec2cb,_0x57e133=this[_0x3ebe83(0x99)][_0x3ebe83(0xa6)][_0x3ebe83(0x95)][_0x3ebe83(0x9f)][_0x3ebe83(0xad)]();this[_0x3ebe83(0x9a)]=this[_0x3ebe83(0xb1)](_0x57e133);}[_0x1ec2cb(0xac)](){const _0x9d7f99=_0x1ec2cb;this[_0x9d7f99(0xa0)]&&(this[_0x9d7f99(0xa8)](_0x9d7f99(0xa4)),this[_0x9d7f99(0xa0)]=void 0x0);const _0xb41e4b=this[_0x9d7f99(0x99)][_0x9d7f99(0xa6)][_0x9d7f99(0x95)][_0x9d7f99(0x9f)][_0x9d7f99(0xad)]();_0xb41e4b&&(_0xb41e4b['is'](_0x9d7f99(0x94),_0x9d7f99(0x9b))||_0xb41e4b['is'](_0x9d7f99(0x94),_0x9d7f99(0xa3)))&&(this[_0x9d7f99(0xa0)]=new _0x25085e(this[_0x9d7f99(0x99)],this[_0x9d7f99(0x99)][_0x9d7f99(0xb0)][_0x9d7f99(0x9e)](_0x57a8a1),_0xb41e4b),this[_0x9d7f99(0x97)](_0x9d7f99(0xa4))['to'](this[_0x9d7f99(0xa0)],_0x9d7f99(0xa4)));}}
23
+ const _0x52dcaa=_0x1cac;function _0x3a69(){const _0x4a1636=['getSelectedElement','set','imageInline','28MpsyVA','document','get','imageEditController','requires','plugins','editor','uploadcare.allowExternalImagesEditing','model','13833AzRhEu','_isEditable','210tfOARW','isEnabled','selection','isActive','config','26LhGJDJ','4689688BQwvlS','execute','116924pRvwVA','refresh','519976PXFuqU','222690psVtod','element','unbind','28581uVMdRE','1595465rPFlOw','imageBlock','bind'];_0x3a69=function(){return _0x4a1636;};return _0x3a69();}(function(_0x4b05ef,_0x5ce601){const _0x13d472=_0x1cac,_0x27542f=_0x4b05ef();while(!![]){try{const _0x2b4780=parseInt(_0x13d472(0x71))/0x1+-parseInt(_0x13d472(0x6e))/0x2*(parseInt(_0x13d472(0x77))/0x3)+parseInt(_0x13d472(0x73))/0x4+-parseInt(_0x13d472(0x78))/0x5+-parseInt(_0x13d472(0x74))/0x6*(-parseInt(_0x13d472(0x7e))/0x7)+parseInt(_0x13d472(0x6f))/0x8+parseInt(_0x13d472(0x87))/0x9*(-parseInt(_0x13d472(0x89))/0xa);if(_0x2b4780===_0x5ce601)break;else _0x27542f['push'](_0x27542f['shift']());}catch(_0x101278){_0x27542f['push'](_0x27542f['shift']());}}}(_0x3a69,0x7ba00));import{Command as _0x3bbab7}from'ckeditor5/src/core.js';import{Dialog as _0x20d8fa}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0xf3bcd5}from'./ui/uploadcareimageeditcontroller.js';function _0x1cac(_0x10cab5,_0x4ab7bb){const _0x3a696f=_0x3a69();return _0x1cac=function(_0x1cac0a,_0x432684){_0x1cac0a=_0x1cac0a-0x6e;let _0x36de65=_0x3a696f[_0x1cac0a];return _0x36de65;},_0x1cac(_0x10cab5,_0x4ab7bb);}import{createEditabilityChecker as _0x1f37dd}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3bbab7{[_0x52dcaa(0x81)];static get[_0x52dcaa(0x82)](){return[_0x20d8fa];}[_0x52dcaa(0x88)];constructor(_0x15a174){const _0x5b8218=_0x52dcaa;super(_0x15a174),this[_0x5b8218(0x81)]=void 0x0,this[_0x5b8218(0x88)]=_0x1f37dd(_0x15a174[_0x5b8218(0x8d)][_0x5b8218(0x80)](_0x5b8218(0x85))||[]),this[_0x5b8218(0x7c)]({'isActive':!0x1});}[_0x52dcaa(0x72)](){const _0xc90f61=_0x52dcaa,_0x4ce6b9=this[_0xc90f61(0x84)][_0xc90f61(0x86)][_0xc90f61(0x7f)][_0xc90f61(0x8b)][_0xc90f61(0x7b)]();this[_0xc90f61(0x8a)]=this[_0xc90f61(0x88)](_0x4ce6b9);}[_0x52dcaa(0x70)](){const _0x495e36=_0x52dcaa;this[_0x495e36(0x81)]&&(this[_0x495e36(0x76)](_0x495e36(0x8c)),this[_0x495e36(0x81)]=void 0x0);const _0x26a26a=this[_0x495e36(0x84)][_0x495e36(0x86)][_0x495e36(0x7f)][_0x495e36(0x8b)][_0x495e36(0x7b)]();_0x26a26a&&(_0x26a26a['is'](_0x495e36(0x75),_0x495e36(0x79))||_0x26a26a['is'](_0x495e36(0x75),_0x495e36(0x7d)))&&(this[_0x495e36(0x81)]=new _0xf3bcd5(this[_0x495e36(0x84)],this[_0x495e36(0x84)][_0x495e36(0x83)][_0x495e36(0x80)](_0x20d8fa),_0x26a26a),this[_0x495e36(0x7a)](_0x495e36(0x8c))['to'](this[_0x495e36(0x81)],_0x495e36(0x8c)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ca802=_0x39d0;(function(_0x4bfefc,_0x570af6){const _0x53b20d=_0x39d0,_0x296bb3=_0x4bfefc();while(!![]){try{const _0x2400a7=parseInt(_0x53b20d(0xed))/0x1+-parseInt(_0x53b20d(0xea))/0x2*(parseInt(_0x53b20d(0xe4))/0x3)+-parseInt(_0x53b20d(0xdf))/0x4*(-parseInt(_0x53b20d(0xf0))/0x5)+-parseInt(_0x53b20d(0xde))/0x6+-parseInt(_0x53b20d(0xee))/0x7*(parseInt(_0x53b20d(0xe9))/0x8)+-parseInt(_0x53b20d(0xf3))/0x9+parseInt(_0x53b20d(0xe0))/0xa*(parseInt(_0x53b20d(0xf1))/0xb);if(_0x2400a7===_0x570af6)break;else _0x296bb3['push'](_0x296bb3['shift']());}catch(_0x27d8b8){_0x296bb3['push'](_0x296bb3['shift']());}}}(_0x8c7d,0xa4bf9));import{Plugin as _0x416ed2}from'ckeditor5/src/core.js';function _0x8c7d(){const _0x4a8215=['88118ZVufIJ','ImageUtils','uploadcareImageReplace','772469hhqHzR','4211571BtCevf','add','4187930tozRUX','672683oAfMuE','init','851121LRTLzm','uploadcareImageEdit','6965364XBdRZt','4VtEFfb','230qXeqmw','UploadcareImageEditEditing','requires','isOfficialPlugin','33zGuwYm','pluginName','isPremiumPlugin','ImageEditing','commands','8jOYolh'];_0x8c7d=function(){return _0x4a8215;};return _0x8c7d();}import{Notification as _0x2606b3}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x20622}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x5a3317}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x166229}from'../uploadcareediting.js';function _0x39d0(_0x41b094,_0x21dd0c){const _0x8c7d15=_0x8c7d();return _0x39d0=function(_0x39d042,_0x43a2aa){_0x39d042=_0x39d042-0xdd;let _0x157e94=_0x8c7d15[_0x39d042];return _0x157e94;},_0x39d0(_0x41b094,_0x21dd0c);}export class UploadcareImageEditEditing extends _0x416ed2{static get[_0x3ca802(0xe5)](){const _0x2abefa=_0x3ca802;return _0x2abefa(0xe1);}static get[_0x3ca802(0xe2)](){const _0xcf1006=_0x3ca802;return[_0x166229,_0x2606b3,_0xcf1006(0xeb),_0xcf1006(0xe7)];}static get[_0x3ca802(0xe3)](){return!0x0;}static get[_0x3ca802(0xe6)](){return!0x0;}[_0x3ca802(0xf2)](){const _0x5b1bd0=_0x3ca802,{editor:_0xaeee92}=this;_0xaeee92[_0x5b1bd0(0xe8)][_0x5b1bd0(0xef)](_0x5b1bd0(0xdd),new _0x20622(_0xaeee92)),_0xaeee92[_0x5b1bd0(0xe8)][_0x5b1bd0(0xef)](_0x5b1bd0(0xec),new _0x5a3317(_0xaeee92));}}
23
+ const _0x142796=_0x2c4e;(function(_0xd19b07,_0x45f90e){const _0x198dcc=_0x2c4e,_0x54ccca=_0xd19b07();while(!![]){try{const _0x4f12fb=-parseInt(_0x198dcc(0x75))/0x1+-parseInt(_0x198dcc(0x6f))/0x2*(parseInt(_0x198dcc(0x81))/0x3)+parseInt(_0x198dcc(0x73))/0x4*(parseInt(_0x198dcc(0x70))/0x5)+-parseInt(_0x198dcc(0x6d))/0x6*(parseInt(_0x198dcc(0x83))/0x7)+-parseInt(_0x198dcc(0x72))/0x8*(parseInt(_0x198dcc(0x7e))/0x9)+-parseInt(_0x198dcc(0x7d))/0xa*(parseInt(_0x198dcc(0x82))/0xb)+-parseInt(_0x198dcc(0x74))/0xc*(-parseInt(_0x198dcc(0x76))/0xd);if(_0x4f12fb===_0x45f90e)break;else _0x54ccca['push'](_0x54ccca['shift']());}catch(_0x167b0d){_0x54ccca['push'](_0x54ccca['shift']());}}}(_0x44ef,0xa98b6));import{Plugin as _0x5f3542}from'ckeditor5/src/core.js';import{Notification as _0x2c78a3}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x560507}from'./uploadcareimageeditcommand.js';function _0x2c4e(_0x44e9da,_0x406d29){const _0x44efb4=_0x44ef();return _0x2c4e=function(_0x2c4ee2,_0x5860bb){_0x2c4ee2=_0x2c4ee2-0x6b;let _0x4ff92e=_0x44efb4[_0x2c4ee2];return _0x4ff92e;},_0x2c4e(_0x44e9da,_0x406d29);}function _0x44ef(){const _0x375acd=['3hCIjXH','128777vduELK','3542273aDTmoY','init','commands','6pSQVzx','add','1829596YFXyEc','775nbPiCy','pluginName','2942488zFkNdW','30812EjZbfq','84cRfZjO','1069729diZIQh','6467942qjwIRp','isOfficialPlugin','uploadcareImageReplace','ImageEditing','uploadcareImageEdit','ImageUtils','isPremiumPlugin','960iTPOMm','9CKbghe','UploadcareImageEditEditing','requires'];_0x44ef=function(){return _0x375acd;};return _0x44ef();}import{UploadcareImageReplaceCommand as _0x58d4e4}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0xea82f1}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x5f3542{static get[_0x142796(0x71)](){const _0x644081=_0x142796;return _0x644081(0x7f);}static get[_0x142796(0x80)](){const _0x1b8265=_0x142796;return[_0xea82f1,_0x2c78a3,_0x1b8265(0x7b),_0x1b8265(0x79)];}static get[_0x142796(0x77)](){return!0x0;}static get[_0x142796(0x7c)](){return!0x0;}[_0x142796(0x6b)](){const _0x397a43=_0x142796,{editor:_0x365ec0}=this;_0x365ec0[_0x397a43(0x6c)][_0x397a43(0x6e)](_0x397a43(0x7a),new _0x560507(_0x365ec0)),_0x365ec0[_0x397a43(0x6c)][_0x397a43(0x6e)](_0x397a43(0x78),new _0x58d4e4(_0x365ec0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5c36be}from'ckeditor5/src/core.js';import{ButtonView as _0x35fac7}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x237259}from'ckeditor5/src/icons.js';import{createElement as _0x4b9372}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 _0x5c36be{['_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 _0x540168=this['editor'];_0x540168['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5a90c2=>{const _0x13c082=_0x540168['commands']['get']('uploadcareImageEdit'),_0x30e050=new _0x35fac7(_0x5a90c2),t=_0x5a90c2['t'];return _0x30e050['set']({'icon':_0x237259,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x30e050['bind']('isEnabled')['to'](_0x13c082),_0x30e050['bind']('isOn')['to'](_0x13c082,'isActive'),this['listenTo'](_0x30e050,'execute',()=>{_0x540168['execute']('uploadcareImageEdit'),_0x540168['editing']['view']['focus']();}),_0x30e050;}),this['_initConfig']();}['_initConfig'](){const _0x1bf8b9=_0x4b9372(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1bf8b9),this['listenTo'](this['editor'],'destroy',()=>{_0x1bf8b9['remove']();});}}
23
+ import{Plugin as _0x37838b}from'ckeditor5/src/core.js';import{ButtonView as _0x183956}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x848966}from'ckeditor5/src/icons.js';import{createElement as _0x282ce4}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 _0x37838b{['_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 _0xed922=this['editor'];_0xed922['ui']['componentFactory']['add']('uploadcareImageEdit',_0x35c5e8=>{const _0x4fb088=_0xed922['commands']['get']('uploadcareImageEdit'),_0x21f2ca=new _0x183956(_0x35c5e8),t=_0x35c5e8['t'];return _0x21f2ca['set']({'icon':_0x848966,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x21f2ca['bind']('isEnabled')['to'](_0x4fb088),_0x21f2ca['bind']('isOn')['to'](_0x4fb088,'isActive'),this['listenTo'](_0x21f2ca,'execute',()=>{_0xed922['execute']('uploadcareImageEdit'),_0xed922['editing']['view']['focus']();}),_0x21f2ca;}),this['_initConfig']();}['_initConfig'](){const _0x865de6=_0x282ce4(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x865de6),this['listenTo'](this['editor'],'destroy',()=>{_0x865de6['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x8a37cd=_0x1312;(function(_0x2925ab,_0x6c162a){var _0x222a49=_0x1312,_0x28db9e=_0x2925ab();while(!![]){try{var _0x352fc2=-parseInt(_0x222a49(0x81))/0x1*(parseInt(_0x222a49(0x8a))/0x2)+-parseInt(_0x222a49(0x86))/0x3*(parseInt(_0x222a49(0x7c))/0x4)+parseInt(_0x222a49(0x8e))/0x5+parseInt(_0x222a49(0x8f))/0x6*(parseInt(_0x222a49(0x80))/0x7)+parseInt(_0x222a49(0x7d))/0x8+-parseInt(_0x222a49(0x7b))/0x9*(parseInt(_0x222a49(0x87))/0xa)+-parseInt(_0x222a49(0x7e))/0xb*(-parseInt(_0x222a49(0x8d))/0xc);if(_0x352fc2===_0x6c162a)break;else _0x28db9e['push'](_0x28db9e['shift']());}catch(_0x37dd29){_0x28db9e['push'](_0x28db9e['shift']());}}}(_0x4f98,0xb6b83));import{FocusTracker as _0x59c263}from'ckeditor5/src/utils.js';function _0x1312(_0x96c63d,_0x3785db){var _0x4f9895=_0x4f98();return _0x1312=function(_0x131255,_0x209993){_0x131255=_0x131255-0x7b;var _0x47996c=_0x4f9895[_0x131255];return _0x47996c;},_0x1312(_0x96c63d,_0x3785db);}function _0x4f98(){var _0x4ca22c=['fire','133qSxkDQ','307CcAFAo','focusCycler','true','div','bindTemplate','11442rwZlcD','10SVJgYV','getFocusableElement','forwardCycle','9430TptWhH','createCollection','focusTracker','5847540ZpOqmr','4432165HTorsp','38022ibbrvI','6756237BBZpFl','1488KuSijR','7376912xvuqWL','55uqNFNR'];_0x4f98=function(){return _0x4ca22c;};return _0x4f98();}import{View as _0x553ada,FocusCycler as _0x2e5bb0}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x553ada{[_0x8a37cd(0x8c)];[_0x8a37cd(0x82)];constructor(_0x2cbcfb){var _0x5749b2=_0x8a37cd;super(_0x2cbcfb),this[_0x5749b2(0x8c)]=new _0x59c263(),this[_0x5749b2(0x82)]=new _0x2e5bb0({'focusables':this[_0x5749b2(0x8b)](),'focusTracker':this[_0x5749b2(0x8c)]});}[_0x8a37cd(0x88)](){var _0x230523=_0x8a37cd;return{'tag':_0x230523(0x84),'attributes':{'aria-hidden':_0x230523(0x83),'tabindex':'0'},'on':{'focus':this[_0x230523(0x85)]['to'](()=>{var _0x380aba=_0x230523;this[_0x380aba(0x82)][_0x380aba(0x7f)](_0x380aba(0x89));})}};}}
23
+ function _0x42a6(_0x26b651,_0x30c0ca){var _0x228216=_0x2282();return _0x42a6=function(_0x42a6f5,_0x3e8b3d){_0x42a6f5=_0x42a6f5-0x17d;var _0x2a362d=_0x228216[_0x42a6f5];return _0x2a362d;},_0x42a6(_0x26b651,_0x30c0ca);}function _0x2282(){var _0x54e77a=['div','forwardCycle','fire','createCollection','8866590GLcTzn','true','110OJIRku','716880OrENdl','focusCycler','56suRjhs','bindTemplate','3424075XVeBob','112416jQIWqT','2515IbypMe','12PYRFAE','10632opQqst','focusTracker','getFocusableElement','2966355vWrnQL'];_0x2282=function(){return _0x54e77a;};return _0x2282();}var _0x30fd89=_0x42a6;(function(_0x41a70b,_0x52839f){var _0x5863bb=_0x42a6,_0x4419be=_0x41a70b();while(!![]){try{var _0x1c42e0=-parseInt(_0x5863bb(0x186))/0x1*(-parseInt(_0x5863bb(0x17f))/0x2)+parseInt(_0x5863bb(0x185))/0x3*(-parseInt(_0x5863bb(0x187))/0x4)+-parseInt(_0x5863bb(0x184))/0x5+-parseInt(_0x5863bb(0x188))/0x6*(parseInt(_0x5863bb(0x182))/0x7)+-parseInt(_0x5863bb(0x180))/0x8+parseInt(_0x5863bb(0x18b))/0x9+parseInt(_0x5863bb(0x17d))/0xa;if(_0x1c42e0===_0x52839f)break;else _0x4419be['push'](_0x4419be['shift']());}catch(_0x3661f3){_0x4419be['push'](_0x4419be['shift']());}}}(_0x2282,0x6ebba));import{FocusTracker as _0x3e402b}from'ckeditor5/src/utils.js';import{View as _0x129b2f,FocusCycler as _0x411374}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x129b2f{[_0x30fd89(0x189)];[_0x30fd89(0x181)];constructor(_0x5d9796){var _0x25ef38=_0x30fd89;super(_0x5d9796),this[_0x25ef38(0x189)]=new _0x3e402b(),this[_0x25ef38(0x181)]=new _0x411374({'focusables':this[_0x25ef38(0x18f)](),'focusTracker':this[_0x25ef38(0x189)]});}[_0x30fd89(0x18a)](){var _0x24eb61=_0x30fd89;return{'tag':_0x24eb61(0x18c),'attributes':{'aria-hidden':_0x24eb61(0x17e),'tabindex':'0'},'on':{'focus':this[_0x24eb61(0x183)]['to'](()=>{var _0x480e72=_0x24eb61;this[_0x480e72(0x181)][_0x480e72(0x18e)](_0x480e72(0x18d));})}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x1dd722,_0x5aaa67){const _0x347ab1=_0x5f1b,_0x4eec4f=_0x1dd722();while(!![]){try{const _0xaef758=parseInt(_0x347ab1(0x1f6))/0x1+-parseInt(_0x347ab1(0x1eb))/0x2*(-parseInt(_0x347ab1(0x1ff))/0x3)+parseInt(_0x347ab1(0x209))/0x4+-parseInt(_0x347ab1(0x1ee))/0x5*(parseInt(_0x347ab1(0x1f4))/0x6)+-parseInt(_0x347ab1(0x20a))/0x7+-parseInt(_0x347ab1(0x1da))/0x8+-parseInt(_0x347ab1(0x201))/0x9*(parseInt(_0x347ab1(0x1fa))/0xa);if(_0xaef758===_0x5aaa67)break;else _0x4eec4f['push'](_0x4eec4f['shift']());}catch(_0x54e3e4){_0x4eec4f['push'](_0x4eec4f['shift']());}}}(_0x3154,0xef93a));function _0x5f1b(_0x389135,_0x54b0ac){const _0x315407=_0x3154();return _0x5f1b=function(_0x5f1bc5,_0xc149f9){_0x5f1bc5=_0x5f1bc5-0x1d8;let _0x4b9adb=_0x315407[_0x5f1bc5];return _0x4b9adb;},_0x5f1b(_0x389135,_0x54b0ac);}import{global as _0x2b14db,DomEmitterMixin as _0x3cc062}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x5014b9){const _0x2469d1=_0x5f1b,_0x200b47=G(_0x5014b9);return _0x3863cc=>!(!_0x3863cc||!_0x3863cc['is'](_0x2469d1(0x1f7),_0x2469d1(0x1e1))&&!_0x3863cc['is'](_0x2469d1(0x1f7),_0x2469d1(0x1fb)))&&(!!_0x3863cc[_0x2469d1(0x200)](_0x2469d1(0x1e5))||!!_0x3863cc[_0x2469d1(0x200)](_0x2469d1(0x1f0))&&_0x200b47(_0x3863cc[_0x2469d1(0x1e3)](_0x2469d1(0x1f0))));}export function getImageUrls(_0x369f10,_0x185954){const _0x57d557=_0x5f1b,_0x1c149a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x57d557(0x20c)](_0x319bc1=>_0x319bc1<=_0x185954)[_0x57d557(0x1e0)](_0x471d3e=>_0x369f10[_0x57d557(0x1f2)](/\/$/,'')+_0x57d557(0x1d8)+_0x471d3e+_0x57d557(0x1e4)+_0x471d3e+'w');return{'imageFallbackUrl':_0x369f10,'imageSources':[{'srcset':_0x1c149a[_0x57d557(0x1e8)](',\x20'),'sizes':_0x57d557(0x1f3)+_0x185954+_0x57d557(0x1de)+_0x185954+'px','type':_0x57d557(0x1ed)}]};}function _0x3154(){const _0x3b2786=['width','join','plugins','change','10quUrdn','document','image/webp','7236695WAngdr','get','src','isArray','replace','(max-width:\x20','6ZcYJVT','function','1517253pIyKuP','element','domConverter','height','27070brZpeJ','imageInline','viewToDom','window','baseURI','530583HYyBTU','hasAttribute','576stRuOX','removeClass','some','mapper','findViewImgElement','setStyle','stopListening','ImageUtils','6551852TwznzX','1812258qPJEVA','origin','filter','listenTo','image-processing','addClass','location','/-/resize/','load','9429872irNVAL','toViewElement','aspect-ratio','removeStyle','px)\x20100vw,\x20','view','map','imageBlock','editing','getAttribute','x/\x20','uploadcareImageId','match'];_0x3154=function(){return _0x3b2786;};return _0x3154();}export function getImageDimension(_0x550ab6,_0x71db5b,_0x5f3e10){const _0xa9ed4c=_0x5f1b,_0x1ae6d3=_0x550ab6[_0xa9ed4c(0x1e6)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1ae6d3?parseInt(_0x1ae6d3[0x1],0xa):_0x71db5b,'height':_0x1ae6d3?parseInt(_0x1ae6d3[0x2],0xa):_0x5f3e10};}export function showImageProcessingIndicator(_0x123de9,_0x47b055){const _0x3af8a5=_0x5f1b,_0xa4365b=new(_0x3cc062())(),_0x510173=_0x123de9[_0x3af8a5(0x1e9)][_0x3af8a5(0x1ef)](_0x3af8a5(0x208)),_0x26132f=_0x123de9[_0x3af8a5(0x1e2)][_0x3af8a5(0x204)][_0x3af8a5(0x1db)](_0x47b055),_0x284884=_0x510173[_0x3af8a5(0x205)](_0x26132f),_0x5728b1=_0x123de9[_0x3af8a5(0x1e2)][_0x3af8a5(0x1df)][_0x3af8a5(0x1f8)][_0x3af8a5(0x1fc)](_0x284884),_0x33e019=_0x47b055[_0x3af8a5(0x1e3)](_0x3af8a5(0x1e7)),_0x4f7908=_0x47b055[_0x3af8a5(0x1e3)](_0x3af8a5(0x1f9)),_0x30d9c7=_0x3af8a5(0x20e);_0x123de9[_0x3af8a5(0x1e2)][_0x3af8a5(0x1df)][_0x3af8a5(0x1ea)](_0x3395b4=>{const _0x45e1e7=_0x3af8a5;_0x3395b4[_0x45e1e7(0x20f)](_0x30d9c7,_0x26132f),_0x3395b4[_0x45e1e7(0x206)](_0x45e1e7(0x1dc),_0x33e019+'/'+_0x4f7908,_0x284884);}),_0xa4365b[_0x3af8a5(0x20d)](_0x5728b1,_0x3af8a5(0x1d9),()=>{const _0x3e0715=_0x3af8a5;_0xa4365b[_0x3e0715(0x207)](_0x5728b1,_0x3e0715(0x1d9)),_0x123de9[_0x3e0715(0x1e2)][_0x3e0715(0x1df)][_0x3e0715(0x1ea)](_0x35a198=>{const _0x4364dd=_0x3e0715;_0x35a198[_0x4364dd(0x202)](_0x30d9c7,_0x26132f),_0x35a198[_0x4364dd(0x1dd)](_0x4364dd(0x1dc),_0x284884);});});}function G(_0x5351a0){const _0x2fd00d=_0x5f1b;if(Array[_0x2fd00d(0x1f1)](_0x5351a0)){const _0x256520=_0x5351a0[_0x2fd00d(0x1e0)](G);return _0xb27e2a=>_0x256520[_0x2fd00d(0x203)](_0x4caee8=>_0x4caee8(_0xb27e2a));}if(_0x2fd00d(0x20b)==_0x5351a0){const _0x259381=_0x2b14db[_0x2fd00d(0x1fd)][_0x2fd00d(0x210)][_0x2fd00d(0x20b)];return _0x56e2f2=>new URL(_0x56e2f2,_0x2b14db[_0x2fd00d(0x1ec)][_0x2fd00d(0x1fe)])[_0x2fd00d(0x20b)]==_0x259381;}return _0x2fd00d(0x1f5)==typeof _0x5351a0?_0x5351a0:_0x5351a0 instanceof RegExp?_0x430efa=>!(!_0x430efa[_0x2fd00d(0x1e6)](_0x5351a0)&&!_0x430efa[_0x2fd00d(0x1f2)](/^https?:\/\//,'')[_0x2fd00d(0x1e6)](_0x5351a0)):()=>!0x1;}
23
+ (function(_0x27ab00,_0x1ac117){const _0x7720bb=_0xb0ef,_0x59454b=_0x27ab00();while(!![]){try{const _0x33d906=-parseInt(_0x7720bb(0x9a))/0x1+-parseInt(_0x7720bb(0x8b))/0x2+parseInt(_0x7720bb(0xab))/0x3+-parseInt(_0x7720bb(0x89))/0x4*(parseInt(_0x7720bb(0xa6))/0x5)+parseInt(_0x7720bb(0x85))/0x6+parseInt(_0x7720bb(0x8c))/0x7+-parseInt(_0x7720bb(0x8d))/0x8*(-parseInt(_0x7720bb(0x9e))/0x9);if(_0x33d906===_0x1ac117)break;else _0x59454b['push'](_0x59454b['shift']());}catch(_0x450be0){_0x59454b['push'](_0x59454b['shift']());}}}(_0xfeb3,0x6d939));function _0xb0ef(_0xc4a3bb,_0x10cb31){const _0xfeb3ce=_0xfeb3();return _0xb0ef=function(_0xb0ef7f,_0x542dea){_0xb0ef7f=_0xb0ef7f-0x85;let _0x1d4f72=_0xfeb3ce[_0xb0ef7f];return _0x1d4f72;},_0xb0ef(_0xc4a3bb,_0x10cb31);}import{global as _0x1aa0d9,DomEmitterMixin as _0xd2322e}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x19bda5){const _0x5226a5=_0xb0ef,_0x1d3277=z(_0x19bda5);return _0x1331f3=>!(!_0x1331f3||!_0x1331f3['is'](_0x5226a5(0x9c),_0x5226a5(0x99))&&!_0x1331f3['is'](_0x5226a5(0x9c),_0x5226a5(0xad)))&&(!!_0x1331f3[_0x5226a5(0xb2)](_0x5226a5(0xb0))||!!_0x1331f3[_0x5226a5(0xb2)](_0x5226a5(0xb8))&&_0x1d3277(_0x1331f3[_0x5226a5(0x9f)](_0x5226a5(0xb8))));}export function getImageUrls(_0x354adb,_0x3c3d64){const _0x183691=_0xb0ef,_0x125b16=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x183691(0x8a)](_0x182c22=>_0x182c22<=_0x3c3d64)[_0x183691(0xb3)](_0x5d38a6=>_0x354adb[_0x183691(0x92)](/\/$/,'')+_0x183691(0x96)+_0x5d38a6+_0x183691(0xa2)+_0x5d38a6+'w');return{'imageFallbackUrl':_0x354adb,'imageSources':[{'srcset':_0x125b16[_0x183691(0x97)](',\x20'),'sizes':_0x183691(0xa7)+_0x3c3d64+_0x183691(0xaf)+_0x3c3d64+'px','type':_0x183691(0xa4)}]};}export function getImageDimension(_0x5a972c,_0x172d19,_0x121ec8){const _0x5a9b80=_0xb0ef,_0x16fd72=_0x5a972c[_0x5a9b80(0x87)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x16fd72?parseInt(_0x16fd72[0x1],0xa):_0x172d19,'height':_0x16fd72?parseInt(_0x16fd72[0x2],0xa):_0x121ec8};}function _0xfeb3(){const _0x998b4=['2494695vgaZPT','269736bkmOzg','viewToDom','image-processing','width','get','replace','document','plugins','baseURI','/-/resize/','join','editing','imageBlock','357824AGYqaF','function','element','findViewImgElement','63HVjrSD','getAttribute','view','stopListening','x/\x20','ImageUtils','image/webp','setStyle','5XZbIsZ','(max-width:\x20','height','load','window','494778ydgmFa','domConverter','imageInline','origin','px)\x20100vw,\x20','uploadcareImageId','listenTo','hasAttribute','map','addClass','aspect-ratio','some','removeStyle','src','isArray','toViewElement','change','location','5003430yktLzy','mapper','match','removeClass','322716ymwcYH','filter','1407814aOXNmo'];_0xfeb3=function(){return _0x998b4;};return _0xfeb3();}export function showImageProcessingIndicator(_0x537670,_0x47d25d){const _0x439549=_0xb0ef,_0x457299=new(_0xd2322e())(),_0xc02daa=_0x537670[_0x439549(0x94)][_0x439549(0x91)](_0x439549(0xa3)),_0x5a9be0=_0x537670[_0x439549(0x98)][_0x439549(0x86)][_0x439549(0xba)](_0x47d25d),_0x149dd7=_0xc02daa[_0x439549(0x9d)](_0x5a9be0),_0x8dd882=_0x537670[_0x439549(0x98)][_0x439549(0xa0)][_0x439549(0xac)][_0x439549(0x8e)](_0x149dd7),_0x473409=_0x47d25d[_0x439549(0x9f)](_0x439549(0x90)),_0x28c366=_0x47d25d[_0x439549(0x9f)](_0x439549(0xa8)),_0x4f5340=_0x439549(0x8f);_0x537670[_0x439549(0x98)][_0x439549(0xa0)][_0x439549(0xbb)](_0x120114=>{const _0x37567d=_0x439549;_0x120114[_0x37567d(0xb4)](_0x4f5340,_0x5a9be0),_0x120114[_0x37567d(0xa5)](_0x37567d(0xb5),_0x473409+'/'+_0x28c366,_0x149dd7);}),_0x457299[_0x439549(0xb1)](_0x8dd882,_0x439549(0xa9),()=>{const _0x566483=_0x439549;_0x457299[_0x566483(0xa1)](_0x8dd882,_0x566483(0xa9)),_0x537670[_0x566483(0x98)][_0x566483(0xa0)][_0x566483(0xbb)](_0x4f7384=>{const _0x3ea6a3=_0x566483;_0x4f7384[_0x3ea6a3(0x88)](_0x4f5340,_0x5a9be0),_0x4f7384[_0x3ea6a3(0xb7)](_0x3ea6a3(0xb5),_0x149dd7);});});}function z(_0x28312a){const _0x11e7c5=_0xb0ef;if(Array[_0x11e7c5(0xb9)](_0x28312a)){const _0xb8049e=_0x28312a[_0x11e7c5(0xb3)](z);return _0x59d291=>_0xb8049e[_0x11e7c5(0xb6)](_0x256131=>_0x256131(_0x59d291));}if(_0x11e7c5(0xae)==_0x28312a){const _0x50f1c1=_0x1aa0d9[_0x11e7c5(0xaa)][_0x11e7c5(0xbc)][_0x11e7c5(0xae)];return _0x1eab53=>new URL(_0x1eab53,_0x1aa0d9[_0x11e7c5(0x93)][_0x11e7c5(0x95)])[_0x11e7c5(0xae)]==_0x50f1c1;}return _0x11e7c5(0x9b)==typeof _0x28312a?_0x28312a:_0x28312a instanceof RegExp?_0x57ca90=>!(!_0x57ca90[_0x11e7c5(0x87)](_0x28312a)&&!_0x57ca90[_0x11e7c5(0x92)](/^https?:\/\//,'')[_0x11e7c5(0x87)](_0x28312a)):()=>!0x1;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x36e5(){var _0x836560=['includes','479268LYtAvq','1lxEJnk','7329iZlUUK','35186Hrzrsc','3213140WJmbNO','8284DnifZy','target','2096KIwMFW','1294980aCwHFh','3072888FqPOXr','55reEkmT'];_0x36e5=function(){return _0x836560;};return _0x36e5();}(function(_0x1d4588,_0x3382af){var _0x2023c3=_0x452e,_0x32b06e=_0x1d4588();while(!![]){try{var _0x10237e=parseInt(_0x2023c3(0x173))/0x1*(-parseInt(_0x2023c3(0x175))/0x2)+parseInt(_0x2023c3(0x172))/0x3+-parseInt(_0x2023c3(0x16b))/0x4*(-parseInt(_0x2023c3(0x170))/0x5)+-parseInt(_0x2023c3(0x16e))/0x6+-parseInt(_0x2023c3(0x174))/0x7*(-parseInt(_0x2023c3(0x16d))/0x8)+-parseInt(_0x2023c3(0x16f))/0x9+parseInt(_0x2023c3(0x176))/0xa;if(_0x10237e===_0x3382af)break;else _0x32b06e['push'](_0x32b06e['shift']());}catch(_0x32fd06){_0x32b06e['push'](_0x32b06e['shift']());}}}(_0x36e5,0x31a2e));function _0x452e(_0x2e503d,_0x127844){var _0x36e5b0=_0x36e5();return _0x452e=function(_0x452e4a,_0x865315){_0x452e4a=_0x452e4a-0x16b;var _0x27fdbe=_0x36e5b0[_0x452e4a];return _0x27fdbe;},_0x452e(_0x2e503d,_0x127844);}import{getAncestors as _0xb46641}from'ckeditor5/src/utils.js';export function isAncestor(_0x23a2d4,_0x112580){var _0x1788b2=_0x452e;return _0xb46641(_0x23a2d4[_0x1788b2(0x16c)])[_0x1788b2(0x171)](_0x112580);}
23
+ function _0x1b32(_0x146c97,_0x39e162){var _0x428935=_0x4289();return _0x1b32=function(_0x1b32ce,_0x311bf8){_0x1b32ce=_0x1b32ce-0xe4;var _0x4c11e0=_0x428935[_0x1b32ce];return _0x4c11e0;},_0x1b32(_0x146c97,_0x39e162);}function _0x4289(){var _0x3ff53b=['4141120eJFLMc','4350960zOYhPc','132993WridNr','135774WMpTRg','4759015owVAVb','38brFeWe','8900298MEonhq','includes','2110878hlwmfP','4rVTQFl','target'];_0x4289=function(){return _0x3ff53b;};return _0x4289();}(function(_0x3a4496,_0x2f87c4){var _0x21905a=_0x1b32,_0x5a6e7f=_0x3a4496();while(!![]){try{var _0x159102=-parseInt(_0x21905a(0xee))/0x1+-parseInt(_0x21905a(0xe5))/0x2*(parseInt(_0x21905a(0xed))/0x3)+parseInt(_0x21905a(0xe9))/0x4*(parseInt(_0x21905a(0xe4))/0x5)+parseInt(_0x21905a(0xec))/0x6+parseInt(_0x21905a(0xe8))/0x7+parseInt(_0x21905a(0xeb))/0x8+-parseInt(_0x21905a(0xe6))/0x9;if(_0x159102===_0x2f87c4)break;else _0x5a6e7f['push'](_0x5a6e7f['shift']());}catch(_0x1ba1e4){_0x5a6e7f['push'](_0x5a6e7f['shift']());}}}(_0x4289,0x81314));import{getAncestors as _0x24e736}from'ckeditor5/src/utils.js';export function isAncestor(_0x1748da,_0x1784dd){var _0x48540d=_0x1b32;return _0x24e736(_0x1748da[_0x48540d(0xea)])[_0x48540d(0xe7)](_0x1784dd);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xea7d8d=_0x3fed;(function(_0x246dc9,_0x4b7cf3){var _0x1aeb95=_0x3fed,_0x4ff6bc=_0x246dc9();while(!![]){try{var _0x1113da=-parseInt(_0x1aeb95(0xb6))/0x1+parseInt(_0x1aeb95(0xb5))/0x2*(parseInt(_0x1aeb95(0xb0))/0x3)+-parseInt(_0x1aeb95(0xb9))/0x4*(-parseInt(_0x1aeb95(0xb4))/0x5)+-parseInt(_0x1aeb95(0xb3))/0x6+-parseInt(_0x1aeb95(0xb7))/0x7*(-parseInt(_0x1aeb95(0xaf))/0x8)+-parseInt(_0x1aeb95(0xb2))/0x9+parseInt(_0x1aeb95(0xb8))/0xa;if(_0x1113da===_0x4b7cf3)break;else _0x4ff6bc['push'](_0x4ff6bc['shift']());}catch(_0x1514ce){_0x4ff6bc['push'](_0x4ff6bc['shift']());}}}(_0x5a57,0x1e63b));function _0x3fed(_0x3eeac8,_0x509a3d){var _0x5a57bc=_0x5a57();return _0x3fed=function(_0x3fedcf,_0x286acf){_0x3fedcf=_0x3fedcf-0xaf;var _0x462e97=_0x5a57bc[_0x3fedcf];return _0x462e97;},_0x3fed(_0x3eeac8,_0x509a3d);}import{uploadFile as _0x1a9633,info as _0x7532ff}from'@uploadcare/upload-client';export class UploadUtils{static[_0xea7d8d(0xba)]({file:_0x1504ba,..._0x2f15e5}){return _0x1a9633(_0x1504ba,_0x2f15e5);}static[_0xea7d8d(0xb1)](_0x330b9a,_0x185cfd){return _0x7532ff(_0x330b9a,_0x185cfd);}}function _0x5a57(){var _0x590c13=['getInfo','832752OGxpCj','713460tolIuA','1255NTZUVU','11612EhNYqC','97217XHuQPa','37527wNhZqR','296920vMtOMl','3148RMAICN','upload','56Ahagmj','87oKtDUu'];_0x5a57=function(){return _0x590c13;};return _0x5a57();}
23
+ var _0x4897d7=_0x378d;function _0x378d(_0x1f660f,_0x5357ab){var _0x8fda78=_0x8fda();return _0x378d=function(_0x378dc1,_0x1e67b2){_0x378dc1=_0x378dc1-0x7b;var _0x38089f=_0x8fda78[_0x378dc1];return _0x38089f;},_0x378d(_0x1f660f,_0x5357ab);}function _0x8fda(){var _0x3b0ff2=['3382952eJyVWS','490028fRjWSA','87162LvoFKQ','13806020dHCgeL','17060bStQKF','17946LvmCCd','411110XKNkAn','upload','9WAljrY','65rHTLgh','603YMdvDO','getInfo'];_0x8fda=function(){return _0x3b0ff2;};return _0x8fda();}(function(_0x247562,_0x2cbfc4){var _0xc0e559=_0x378d,_0x411d79=_0x247562();while(!![]){try{var _0x56047f=parseInt(_0xc0e559(0x7c))/0x1+-parseInt(_0xc0e559(0x80))/0x2+-parseInt(_0xc0e559(0x85))/0x3*(-parseInt(_0xc0e559(0x7f))/0x4)+parseInt(_0xc0e559(0x84))/0x5*(parseInt(_0xc0e559(0x7d))/0x6)+parseInt(_0xc0e559(0x81))/0x7+-parseInt(_0xc0e559(0x7b))/0x8*(-parseInt(_0xc0e559(0x83))/0x9)+-parseInt(_0xc0e559(0x7e))/0xa;if(_0x56047f===_0x2cbfc4)break;else _0x411d79['push'](_0x411d79['shift']());}catch(_0xe3d787){_0x411d79['push'](_0x411d79['shift']());}}}(_0x8fda,0x995c8));import{uploadFile as _0x364a0c,info as _0x51a0c9}from'@uploadcare/upload-client';export class UploadUtils{static[_0x4897d7(0x82)]({file:_0x587978,..._0x1c08b0}){return _0x364a0c(_0x587978,_0x1c08b0);}static[_0x4897d7(0x86)](_0x4b277a,_0x2b5d39){return _0x51a0c9(_0x4b277a,_0x2b5d39);}}