@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250216.0 → 0.0.0-nightly-next-20250217.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 _0x1daa16,ObservableMixin as _0x2c09c2}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x10353f}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5a0256}from'ckeditor5/src/icons.js';import _0x7b10a7 from'./uploadcareimageeditformview.js';import _0x263fee from'../../utils/uploadutils.js';import{getImageUrls as _0x2799de,getImageDimension as _0x1ec555}from'../../utils/editingutils.js';import{isAncestor as _0x1c4c21}from'../../utils/isancestor.js';export default class q extends/* #__PURE__ -- @preserve */
24
- _0x2c09c2(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x381bcf,_0x1958cf,_0x191edf){super(),this['_editor']=_0x381bcf,this['_dialog']=_0x1958cf,this['_imageElement']=_0x191edf,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 _0x434ee0=this['_imageElement'],_0x7a78ad=_0x434ee0['getAttribute']('uploadcareImageId'),_0x1d0e4d=_0x434ee0['getAttribute']('src');if(_0x7a78ad)await this['_loadImageInfo'](_0x7a78ad,_0x1d0e4d);else{if(this['_imageCache']['has'](_0x1d0e4d)){const _0x24c6f9=this['_imageCache']['get'](_0x1d0e4d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24c6f9['url'],this['imageDimension']=_0x24c6f9['dimension'],this['imageId']=_0x24c6f9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1e7478}=this['_editor'],t=_0x1e7478['t'],_0x489c6c=new _0x7b10a7(_0x1e7478,this['imageStatus'],this['_attributes']);_0x489c6c['bind']('status')['to'](this,'imageStatus'),_0x489c6c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x489c6c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x489c6c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x489c6c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5a0256,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x489c6c,'position':_0x10353f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x489c6c['focus']();},'onHide':()=>{_0x489c6c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x49091c=>!_0x1c4c21(_0x49091c,_0x489c6c['element'])}});}['_loadImageInfo'](_0x47c5ca,_0x476ea7){return _0x263fee['getInfo'](_0x47c5ca,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3c5c1b=>{const {width:_0x28fdea,height:_0x370c70}=_0x3c5c1b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x476ea7,this['imageDimension']={'width':_0x28fdea,'height':_0x370c70},this['imageId']=_0x47c5ca;})['catch'](_0x1f2932=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1f2932['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x44bab2,_0x150742){return this['_getImageAsFile'](_0x44bab2)['then'](_0x27d157=>_0x263fee['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x150742['signal'],'file':_0x27d157,'onProgress':_0x1106c5=>{_0x1106c5&&_0x1106c5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1106c5['value']));}}))['then'](_0x59b899=>{const {width:_0x124344,height:_0x3f14de}=_0x59b899['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x59b899['cdnUrl'],this['imageDimension']={'width':_0x124344,'height':_0x3f14de},this['imageId']=_0x59b899['uuid'],this['imageUploadProgress']=null;const _0x61e193=_0x44bab2['getAttribute']('src');this['_imageCache']['set'](_0x61e193,{'id':_0x59b899['uuid'],'url':_0x59b899['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4f4089=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f4089['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x106086,_0x1698c9){_0x106086['on']('apply',(_0x1bf9e7,_0x2523f2)=>{this['_replaceImage'](_0x1698c9,_0x2523f2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x106086['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x106086['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1136e9,_0x4562e8,_0x1f8463){const _0x20bf0a=this['_editor'],{width:_0x15c732,height:_0x3d57d5}=_0x1ec555(_0x4562e8,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4d8a16,imageSources:_0x4c90a8}=_0x2799de(_0x4562e8,_0x15c732);_0x20bf0a['model']['change'](_0x39fe2f=>{if('$graveyard'===_0x1136e9['root']['rootName']){_0x20bf0a['execute']('insertImage',{'imageType':_0x1136e9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1136e9['getAttributes']()),'uploadcareImageId':_0x1f8463,'src':_0x4d8a16,'sources':_0x4c90a8,'width':_0x15c732,'height':_0x3d57d5}});const _0xf7cad7=_0x1136e9['getChildren']();_0x1136e9=_0x20bf0a['model']['document']['selection']['getSelectedElement']();for(const _0x1bd6a8 of _0xf7cad7)_0x39fe2f['append'](_0x39fe2f['cloneElement'](_0x1bd6a8),_0x1136e9);}else _0x39fe2f['setSelection'](_0x1136e9,'on'),_0x20bf0a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1136e9['getAttributes']()),'uploadcareImageId':_0x1f8463,'src':_0x4d8a16,'sources':_0x4c90a8,'width':_0x15c732,'height':_0x3d57d5},_0x1136e9);_0x39fe2f['setSelection'](_0x1136e9,'on');});}async['_getImageAsFile'](_0x13af76){const _0x3245e5=_0x1daa16['window'],_0x373460=_0x1daa16['document']['location']['href'],_0x3a22bf=new _0x3245e5['URL'](_0x13af76['getAttribute']('src'),_0x373460);if('data:'===_0x3a22bf['protocol']){const _0x586ada=_0x3a22bf['href']['split'](','),_0x491142=_0x586ada[0x0]['match'](/:(.*?);/)[0x1],_0x1e6876=_0x491142['split']('/')[0x1],_0x3c0e2d=_0x3245e5['atob'](_0x586ada[_0x586ada['length']-0x1]);let _0x134167=_0x3c0e2d['length'];const _0x2165c3=new _0x3245e5['Uint8Array'](_0x134167);for(;_0x134167--;)_0x2165c3[_0x134167]=_0x3c0e2d['charCodeAt'](_0x134167);return new _0x3245e5['File']([_0x2165c3],'image.'+_0x1e6876,{'type':_0x491142});}const _0x1a3bb3=_0x3a22bf['href']['split']('/'),_0x65169b=_0x1a3bb3[_0x1a3bb3['length']-0x1],_0x44f207=_0x65169b['split']('.')[0x1];return _0x3245e5['fetch'](_0x3a22bf['href'])['then'](_0x21baa9=>_0x21baa9['clone']()['blob']())['then'](_0x480872=>new _0x3245e5['File']([_0x480872],_0x65169b,{'type':'image/'+_0x44f207}));}}
23
+ import{global as _0x52ab4f,ObservableMixin as _0x54be45}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3f9232}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xcdccdf}from'ckeditor5/src/icons.js';import _0x496eeb from'./uploadcareimageeditformview.js';import _0x27ed75 from'../../utils/uploadutils.js';import{getImageUrls as _0xa0e2d2,getImageDimension as _0x469bb4}from'../../utils/editingutils.js';import{isAncestor as _0x451b3a}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
24
+ _0x54be45(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1ba87b,_0x45785a,_0x42857f){super(),this['_editor']=_0x1ba87b,this['_dialog']=_0x45785a,this['_imageElement']=_0x42857f,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 _0x2e6581=this['_imageElement'],_0x1059e1=_0x2e6581['getAttribute']('uploadcareImageId'),_0x1641e8=_0x2e6581['getAttribute']('src');if(_0x1059e1)await this['_loadImageInfo'](_0x1059e1,_0x1641e8);else{if(this['_imageCache']['has'](_0x1641e8)){const _0xc78ea1=this['_imageCache']['get'](_0x1641e8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xc78ea1['url'],this['imageDimension']=_0xc78ea1['dimension'],this['imageId']=_0xc78ea1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x29f398}=this['_editor'],t=_0x29f398['t'],_0x5b6fed=new _0x496eeb(_0x29f398,this['imageStatus'],this['_attributes']);_0x5b6fed['bind']('status')['to'](this,'imageStatus'),_0x5b6fed['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5b6fed['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5b6fed['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5b6fed,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xcdccdf,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5b6fed,'position':_0x3f9232['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5b6fed['focus']();},'onHide':()=>{_0x5b6fed['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xd9109=>!_0x451b3a(_0xd9109,_0x5b6fed['element'])}});}['_loadImageInfo'](_0xd914f0,_0x12c942){return _0x27ed75['getInfo'](_0xd914f0,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3c4cbf=>{const {width:_0x3f0c95,height:_0x21139a}=_0x3c4cbf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x12c942,this['imageDimension']={'width':_0x3f0c95,'height':_0x21139a},this['imageId']=_0xd914f0;})['catch'](_0x2c8ac9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c8ac9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x451f3c,_0x50a437){return this['_getImageAsFile'](_0x451f3c)['then'](_0x10625e=>_0x27ed75['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x50a437['signal'],'file':_0x10625e,'onProgress':_0x76db20=>{_0x76db20&&_0x76db20['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x76db20['value']));}}))['then'](_0x421778=>{const {width:_0x4cd114,height:_0x4b8f13}=_0x421778['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x421778['cdnUrl'],this['imageDimension']={'width':_0x4cd114,'height':_0x4b8f13},this['imageId']=_0x421778['uuid'],this['imageUploadProgress']=null;const _0x5a1f86=_0x451f3c['getAttribute']('src');this['_imageCache']['set'](_0x5a1f86,{'id':_0x421778['uuid'],'url':_0x421778['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xfa4104=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xfa4104['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1d690d,_0x1fba2e){_0x1d690d['on']('apply',(_0x453363,_0x19f61f)=>{this['_replaceImage'](_0x1fba2e,_0x19f61f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1d690d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1d690d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5525ec,_0x1e8c51,_0x1b4549){const _0x4511a9=this['_editor'],{width:_0x384c8a,height:_0x4711bc}=_0x469bb4(_0x1e8c51,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x494b51,imageSources:_0x20aa3b}=_0xa0e2d2(_0x1e8c51,_0x384c8a);_0x4511a9['model']['change'](_0x1a89eb=>{if('$graveyard'===_0x5525ec['root']['rootName']){_0x4511a9['execute']('insertImage',{'imageType':_0x5525ec['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5525ec['getAttributes']()),'uploadcareImageId':_0x1b4549,'src':_0x494b51,'sources':_0x20aa3b,'width':_0x384c8a,'height':_0x4711bc}});const _0x51b55a=_0x5525ec['getChildren']();_0x5525ec=_0x4511a9['model']['document']['selection']['getSelectedElement']();for(const _0x20ac81 of _0x51b55a)_0x1a89eb['append'](_0x1a89eb['cloneElement'](_0x20ac81),_0x5525ec);}else _0x1a89eb['setSelection'](_0x5525ec,'on'),_0x4511a9['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5525ec['getAttributes']()),'uploadcareImageId':_0x1b4549,'src':_0x494b51,'sources':_0x20aa3b,'width':_0x384c8a,'height':_0x4711bc},_0x5525ec);_0x1a89eb['setSelection'](_0x5525ec,'on');});}async['_getImageAsFile'](_0x3222c6){const _0x228d8c=_0x52ab4f['window'],_0xe1b631=_0x52ab4f['document']['location']['href'],_0x35e30a=new _0x228d8c['URL'](_0x3222c6['getAttribute']('src'),_0xe1b631);if('data:'===_0x35e30a['protocol']){const _0x7251ca=_0x35e30a['href']['split'](','),_0x2dc3fd=_0x7251ca[0x0]['match'](/:(.*?);/)[0x1],_0x407f6d=_0x2dc3fd['split']('/')[0x1],_0x51bf9b=_0x228d8c['atob'](_0x7251ca[_0x7251ca['length']-0x1]);let _0x2d6107=_0x51bf9b['length'];const _0x165dbf=new _0x228d8c['Uint8Array'](_0x2d6107);for(;_0x2d6107--;)_0x165dbf[_0x2d6107]=_0x51bf9b['charCodeAt'](_0x2d6107);return new _0x228d8c['File']([_0x165dbf],'image.'+_0x407f6d,{'type':_0x2dc3fd});}const _0x2c4255=_0x35e30a['href']['split']('/'),_0x294035=_0x2c4255[_0x2c4255['length']-0x1],_0x32549b=_0x294035['split']('.')[0x1];return _0x228d8c['fetch'](_0x35e30a['href'])['then'](_0x4edeb0=>_0x4edeb0['clone']()['blob']())['then'](_0x53200b=>new _0x228d8c['File']([_0x53200b],_0x294035,{'type':'image/'+_0x32549b}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2fde(){const _0x4c7178=['4244QOMfyr','1296889VsEooN','imageSrc','3xuIpdV','setTemplate','image-edit','23221DyvhuD','54678TIhnlA','992014xiVqNx','6929336RotAKc','3900PHShjl','set','uc-light','uc-cloud-image-editor','6135HlmDRe','ck-uploadcare-theme','bindTemplate','255880upBFfT','387htCbmx','819GHxONj'];_0x2fde=function(){return _0x4c7178;};return _0x2fde();}(function(_0x449724,_0x15f45e){const _0x5eb85d=_0x38a8,_0xae8d9e=_0x449724();while(!![]){try{const _0x1e8715=-parseInt(_0x5eb85d(0x136))/0x1+parseInt(_0x5eb85d(0x13d))/0x2*(parseInt(_0x5eb85d(0x138))/0x3)+-parseInt(_0x5eb85d(0x135))/0x4*(-parseInt(_0x5eb85d(0x12f))/0x5)+parseInt(_0x5eb85d(0x13c))/0x6*(-parseInt(_0x5eb85d(0x134))/0x7)+parseInt(_0x5eb85d(0x13e))/0x8+-parseInt(_0x5eb85d(0x133))/0x9*(-parseInt(_0x5eb85d(0x132))/0xa)+parseInt(_0x5eb85d(0x13b))/0xb*(-parseInt(_0x5eb85d(0x13f))/0xc);if(_0x1e8715===_0x15f45e)break;else _0xae8d9e['push'](_0xae8d9e['shift']());}catch(_0x5b0708){_0xae8d9e['push'](_0xae8d9e['shift']());}}}(_0x2fde,0xae970));import{View as _0x121149}from'ckeditor5/src/ui.js';function _0x38a8(_0x546664,_0x2747ba){const _0x2fde1c=_0x2fde();return _0x38a8=function(_0x38a838,_0x3b0128){_0x38a838=_0x38a838-0x12d;let _0x52086b=_0x2fde1c[_0x38a838];return _0x52086b;},_0x38a8(_0x546664,_0x2747ba);}export default class tt extends _0x121149{constructor(_0x249831,_0xd3807e){const _0x1616fa=_0x38a8;super(_0x249831);const _0x27329c=this[_0x1616fa(0x131)];this[_0x1616fa(0x140)](_0x1616fa(0x137),''),this[_0x1616fa(0x139)]({'tag':_0x1616fa(0x12e),'attributes':{..._0xd3807e,'class':[_0x1616fa(0x12d),_0x1616fa(0x130)],'ctx-name':_0x1616fa(0x13a),'cdn-url':_0x27329c['to'](_0x1616fa(0x137))}});}}
23
+ function _0x5aaf(_0x288eba,_0x26a1a5){const _0x2ff4df=_0x2ff4();return _0x5aaf=function(_0x5aafad,_0x3e8a11){_0x5aafad=_0x5aafad-0x9e;let _0x17fcc9=_0x2ff4df[_0x5aafad];return _0x17fcc9;},_0x5aaf(_0x288eba,_0x26a1a5);}function _0x2ff4(){const _0x49d61d=['66fYxjkg','set','imageSrc','image-edit','392995bOVMkN','7ASXTKs','5771491meDQtw','4OurQFo','bindTemplate','setTemplate','uc-light','uc-cloud-image-editor','16RukLHV','100wbBgxS','189903TvKPKh','873135PzIPAs','43653nWBjMM','23676636HzcJgb','13aqYpNr','ck-uploadcare-theme','7005104vqFkNc'];_0x2ff4=function(){return _0x49d61d;};return _0x2ff4();}(function(_0x45cac0,_0x3bdad9){const _0x3b98e7=_0x5aaf,_0x26c00d=_0x45cac0();while(!![]){try{const _0x7ed29a=parseInt(_0x3b98e7(0xad))/0x1*(-parseInt(_0x3b98e7(0xa4))/0x2)+parseInt(_0x3b98e7(0xab))/0x3*(parseInt(_0x3b98e7(0xa9))/0x4)+-parseInt(_0x3b98e7(0xa1))/0x5*(-parseInt(_0x3b98e7(0xb2))/0x6)+-parseInt(_0x3b98e7(0xa2))/0x7*(parseInt(_0x3b98e7(0xb1))/0x8)+parseInt(_0x3b98e7(0xac))/0x9*(-parseInt(_0x3b98e7(0xaa))/0xa)+-parseInt(_0x3b98e7(0xa3))/0xb+parseInt(_0x3b98e7(0xae))/0xc*(parseInt(_0x3b98e7(0xaf))/0xd);if(_0x7ed29a===_0x3bdad9)break;else _0x26c00d['push'](_0x26c00d['shift']());}catch(_0x4114f5){_0x26c00d['push'](_0x26c00d['shift']());}}}(_0x2ff4,0x9a8ef));import{View as _0x44484d}from'ckeditor5/src/ui.js';export default class tt extends _0x44484d{constructor(_0x320ab7,_0x228270){const _0x271079=_0x5aaf;super(_0x320ab7);const _0x565a39=this[_0x271079(0xa5)];this[_0x271079(0x9e)](_0x271079(0x9f),''),this[_0x271079(0xa6)]({'tag':_0x271079(0xa8),'attributes':{..._0x228270,'class':[_0x271079(0xa7),_0x271079(0xb0)],'ctx-name':_0x271079(0xa0),'cdn-url':_0x565a39['to'](_0x271079(0x9f))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x122b58,IconView as at,View as _0x469455}from'ckeditor5/src/ui.js';export default class rt extends _0x469455{constructor(_0x212e49){super(_0x212e49);const t=_0x212e49['t'];this['set']('errorType',null);const _0x2eaea4=new _0x122b58(_0x212e49);_0x2eaea4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2eaea4['withText']=!0x0,_0x2eaea4['class']='ck-button-action',_0x2eaea4['on']('execute',()=>{this['fire']('retry');}),_0x2eaea4['bind']('isVisible')['to'](this,'errorType',_0x5df7ca=>'NotFound'!==_0x5df7ca);const _0x414a3b=new at();_0x414a3b['content']=et,_0x414a3b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1beb53=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':[_0x414a3b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1beb53['to']('errorType',_0x271499=>t('NotFound'!==_0x271499?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2eaea4]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
23
+ import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x569baf,IconView as at,View as _0xc0f1ea}from'ckeditor5/src/ui.js';export default class rt extends _0xc0f1ea{constructor(_0x1cd1a6){super(_0x1cd1a6);const t=_0x1cd1a6['t'];this['set']('errorType',null);const _0xd476c9=new _0x569baf(_0x1cd1a6);_0xd476c9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xd476c9['withText']=!0x0,_0xd476c9['class']='ck-button-action',_0xd476c9['on']('execute',()=>{this['fire']('retry');}),_0xd476c9['bind']('isVisible')['to'](this,'errorType',_0x27585a=>'NotFound'!==_0x27585a);const _0x3b7847=new at();_0x3b7847['content']=et,_0x3b7847['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x214e8e=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':[_0x3b7847,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x214e8e['to']('errorType',_0x416baa=>t('NotFound'!==_0x416baa?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xd476c9]},{'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 _0x3f68bf,View as _0x462a6f}from'ckeditor5/src/ui.js';export default class ta extends _0x462a6f{constructor(_0x27bc4b){super(_0x27bc4b);const t=_0x27bc4b['t'],_0x26f694=this['bindTemplate'],_0x17386a=new _0x3f68bf();_0x17386a['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':[_0x17386a,{'text':_0x26f694['to']('imageUploadProgress',_0x1104fa=>t('Loading\x20image...')+'\x20('+(_0x1104fa||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 _0x4b290e,View as _0x24c9de}from'ckeditor5/src/ui.js';export default class ta extends _0x24c9de{constructor(_0x4cdc62){super(_0x4cdc62);const t=_0x4cdc62['t'],_0x556013=this['bindTemplate'],_0x4a9c6d=new _0x4b290e();_0x4a9c6d['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':[_0x4a9c6d,{'text':_0x556013['to']('imageUploadProgress',_0x256dd8=>t('Loading\x20image...')+'\x20('+(_0x256dd8||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4c82(_0x529c6c,_0x7ac290){const _0xb22b3a=_0xb22b();return _0x4c82=function(_0x4c8273,_0x4f6a83){_0x4c8273=_0x4c8273-0x15c;let _0x5cd88e=_0xb22b3a[_0x4c8273];return _0x5cd88e;},_0x4c82(_0x529c6c,_0x7ac290);}const _0x4ed12c=_0x4c82;(function(_0x3fba05,_0x5e7e0c){const _0x26f824=_0x4c82,_0x18e73e=_0x3fba05();while(!![]){try{const _0x2b0e61=parseInt(_0x26f824(0x17f))/0x1+parseInt(_0x26f824(0x170))/0x2*(-parseInt(_0x26f824(0x178))/0x3)+-parseInt(_0x26f824(0x187))/0x4+parseInt(_0x26f824(0x17c))/0x5*(-parseInt(_0x26f824(0x184))/0x6)+parseInt(_0x26f824(0x16e))/0x7*(parseInt(_0x26f824(0x16f))/0x8)+-parseInt(_0x26f824(0x163))/0x9*(-parseInt(_0x26f824(0x15e))/0xa)+-parseInt(_0x26f824(0x16a))/0xb;if(_0x2b0e61===_0x5e7e0c)break;else _0x18e73e['push'](_0x18e73e['shift']());}catch(_0x45f8ce){_0x18e73e['push'](_0x18e73e['shift']());}}}(_0xb22b,0x22807));function _0xb22b(){const _0x3d6ea6=['532564zexnZO','once','toLowerCase','uploading','addEventListener','status','cancel','addMany','_addUploadcareImageEditorListeners','nodeName','cdnUrl','retry','_items','getFocusableElement','_waitForImageEditorComponent','120DajJeF','_editingView','filter','div','apply','101169ZXlBql','uc-cloud-image-editor','_addErrorViewListeners','ck-uploadcare-form','length','ck-reset_all-excluded','_errorView','1010493UmKkLq','_focusableView','error','render','33733mALoao','184aSAfXZ','88sxoqyQ','addedNodes','element','_loadingView','detail','disconnect','target','add','3540usYVYq','focus','ready','setTemplate','35LNyzgY','querySelector','_setView','211987hZGzZK','fire','observe','set','clear','33834UIVzFx','change:status','createCollection'];_0xb22b=function(){return _0x3d6ea6;};return _0xb22b();}import{View as _0x101a92}from'ckeditor5/src/ui.js';import _0x5538ea from'./uploadcareimageeditformloadingview.js';import _0x220e67 from'./uploadcareimageeditformerrorview.js';import _0x30cdc9 from'./uploadcareimageeditformeditingview.js';import _0x5c18ae from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class ii extends _0x5c18ae{[_0x4ed12c(0x193)];[_0x4ed12c(0x173)];[_0x4ed12c(0x169)];[_0x4ed12c(0x15f)];[_0x4ed12c(0x16b)];constructor(_0x54f11f,_0x553f0c,_0x5ce7ee){const _0x111fc0=_0x4ed12c;super(_0x54f11f),this[_0x111fc0(0x193)]=this[_0x111fc0(0x186)](),this[_0x111fc0(0x173)]=new _0x5538ea(_0x54f11f),this[_0x111fc0(0x169)]=new _0x220e67(_0x54f11f),this[_0x111fc0(0x15f)]=new _0x30cdc9(_0x54f11f,_0x5ce7ee),this[_0x111fc0(0x16b)]=new _0x101a92(_0x54f11f),this[_0x111fc0(0x16b)][_0x111fc0(0x17b)](this[_0x111fc0(0x15c)]()),this[_0x111fc0(0x182)](_0x111fc0(0x18c),_0x553f0c),this[_0x111fc0(0x17b)]({'tag':_0x111fc0(0x161),'attributes':{'class':['ck',_0x111fc0(0x168),_0x111fc0(0x166)],'tabindex':'-1'},'children':this[_0x111fc0(0x193)]}),this[_0x111fc0(0x17e)](),this[_0x111fc0(0x188)](_0x111fc0(0x16d),()=>{const _0x9f6308=_0x111fc0;this[_0x9f6308(0x15d)](this[_0x9f6308(0x172)],_0x8202b1=>{const _0xb244c0=_0x9f6308;this[_0xb244c0(0x18f)](_0x8202b1);});}),this['on'](_0x111fc0(0x185),()=>{const _0x185105=_0x111fc0;this[_0x185105(0x17e)]();}),this[_0x111fc0(0x165)]();}[_0x4ed12c(0x179)](){const _0x465f57=_0x4ed12c;this[_0x465f57(0x172)][_0x465f57(0x179)]();}[_0x4ed12c(0x17e)](){const _0x44171b=_0x4ed12c;switch(this[_0x44171b(0x193)][_0x44171b(0x183)](),this[_0x44171b(0x18c)]){case _0x44171b(0x18a):this[_0x44171b(0x193)][_0x44171b(0x177)](this[_0x44171b(0x173)]);break;case _0x44171b(0x16c):this[_0x44171b(0x193)][_0x44171b(0x177)](this[_0x44171b(0x169)]);break;case _0x44171b(0x17a):this[_0x44171b(0x193)][_0x44171b(0x18e)]([this[_0x44171b(0x15f)],this[_0x44171b(0x16b)]]);}}[_0x4ed12c(0x15d)](_0x3df9d4,_0x452f24){const _0x2aaaae=_0x4ed12c,_0x128938=_0x2aaaae(0x164),_0x42ec8f=_0x3df9d4[_0x2aaaae(0x17d)](_0x128938);if(_0x42ec8f)return _0x452f24(_0x42ec8f);const _0xbca1ae=new MutationObserver(_0x231183=>{const _0x29d069=_0x2aaaae,_0x2a2e48=_0x231183[_0x29d069(0x160)](_0x7cb922=>_0x7cb922[_0x29d069(0x176)]===_0x3df9d4&&_0x7cb922[_0x29d069(0x171)][_0x29d069(0x167)]>0x0&&_0x7cb922[_0x29d069(0x171)][0x0][_0x29d069(0x190)][_0x29d069(0x189)]()===_0x128938);_0x2a2e48[_0x29d069(0x167)]&&(_0xbca1ae[_0x29d069(0x175)](),_0x452f24(_0x2a2e48[0x0][_0x29d069(0x171)][0x0]));});_0xbca1ae[_0x2aaaae(0x181)](_0x3df9d4,{'childList':!0x0,'subtree':!0x0});}[_0x4ed12c(0x18f)](_0x228809){const _0x53116c=_0x4ed12c;_0x228809[_0x53116c(0x18b)](_0x53116c(0x162),_0x3fd4bb=>{const _0x5625ce=_0x53116c;this[_0x5625ce(0x180)](_0x5625ce(0x162),{'imageSrc':_0x3fd4bb[_0x5625ce(0x174)][_0x5625ce(0x191)]});}),_0x228809[_0x53116c(0x18b)](_0x53116c(0x18d),()=>{const _0x4608b1=_0x53116c;this[_0x4608b1(0x180)](_0x4608b1(0x18d));});}[_0x4ed12c(0x165)](){const _0x46b470=_0x4ed12c;this[_0x46b470(0x169)]['on'](_0x46b470(0x192),()=>{const _0xd1399d=_0x46b470;this[_0xd1399d(0x180)](_0xd1399d(0x192));});}}
23
+ const _0xec9ed8=_0x4ee5;function _0x4ee5(_0x5dd861,_0x2da0b8){const _0x2a6689=_0x2a66();return _0x4ee5=function(_0x4ee5b7,_0x16bfae){_0x4ee5b7=_0x4ee5b7-0xd3;let _0x7285e=_0x2a6689[_0x4ee5b7];return _0x7285e;},_0x4ee5(_0x5dd861,_0x2da0b8);}(function(_0x5b71d8,_0x29a86d){const _0x29e312=_0x4ee5,_0x190890=_0x5b71d8();while(!![]){try{const _0x1458c0=-parseInt(_0x29e312(0xec))/0x1+-parseInt(_0x29e312(0xde))/0x2*(-parseInt(_0x29e312(0xff))/0x3)+-parseInt(_0x29e312(0x106))/0x4+parseInt(_0x29e312(0xe9))/0x5+-parseInt(_0x29e312(0xe0))/0x6*(-parseInt(_0x29e312(0xf7))/0x7)+-parseInt(_0x29e312(0x100))/0x8+-parseInt(_0x29e312(0xf2))/0x9;if(_0x1458c0===_0x29a86d)break;else _0x190890['push'](_0x190890['shift']());}catch(_0x5b7553){_0x190890['push'](_0x190890['shift']());}}}(_0x2a66,0xac59b));import{View as _0xcfe988}from'ckeditor5/src/ui.js';import _0x41e050 from'./uploadcareimageeditformloadingview.js';import _0x577081 from'./uploadcareimageeditformerrorview.js';import _0x21dc97 from'./uploadcareimageeditformeditingview.js';import _0x2e9fde from'../../utils/dialogfocusmanagerview.js';function _0x2a66(){const _0x4f57a5=['setTemplate','81BCTsdA','6367000sXXtoF','_errorView','ready','ck-reset_all-excluded','_loadingView','nodeName','613680ZujPgm','cancel','uploading','disconnect','createCollection','_waitForImageEditorComponent','addEventListener','filter','once','set','apply','element','_items','_focusableView','56666AdssXC','cdnUrl','6TsBshy','retry','target','add','addedNodes','querySelector','render','length','focus','687355dvpOhJ','ck-uploadcare-form','detail','515461wonqAd','getFocusableElement','addMany','fire','_setView','observe','680274DNvvDU','uc-cloud-image-editor','_addUploadcareImageEditorListeners','change:status','status','9406789TKrdjZ','toLowerCase','div','_addErrorViewListeners','error','clear','_editingView'];_0x2a66=function(){return _0x4f57a5;};return _0x2a66();}import'../../../theme/uploadcare-form.css';export default class ii extends _0x2e9fde{[_0xec9ed8(0xdc)];[_0xec9ed8(0x104)];[_0xec9ed8(0x101)];[_0xec9ed8(0xfd)];[_0xec9ed8(0xdd)];constructor(_0x352d70,_0x43b064,_0x2d0210){const _0x4611ff=_0xec9ed8;super(_0x352d70),this[_0x4611ff(0xdc)]=this[_0x4611ff(0xd4)](),this[_0x4611ff(0x104)]=new _0x41e050(_0x352d70),this[_0x4611ff(0x101)]=new _0x577081(_0x352d70),this[_0x4611ff(0xfd)]=new _0x21dc97(_0x352d70,_0x2d0210),this[_0x4611ff(0xdd)]=new _0xcfe988(_0x352d70),this[_0x4611ff(0xdd)][_0x4611ff(0xfe)](this[_0x4611ff(0xed)]()),this[_0x4611ff(0xd9)](_0x4611ff(0xf6),_0x43b064),this[_0x4611ff(0xfe)]({'tag':_0x4611ff(0xf9),'attributes':{'class':['ck',_0x4611ff(0x103),_0x4611ff(0xea)],'tabindex':'-1'},'children':this[_0x4611ff(0xdc)]}),this[_0x4611ff(0xf0)](),this[_0x4611ff(0xd8)](_0x4611ff(0xe6),()=>{const _0xcf9752=_0x4611ff;this[_0xcf9752(0xd5)](this[_0xcf9752(0xdb)],_0xa46cfe=>{const _0x4496a0=_0xcf9752;this[_0x4496a0(0xf4)](_0xa46cfe);});}),this['on'](_0x4611ff(0xf5),()=>{const _0x740733=_0x4611ff;this[_0x740733(0xf0)]();}),this[_0x4611ff(0xfa)]();}[_0xec9ed8(0xe8)](){const _0x53133e=_0xec9ed8;this[_0x53133e(0xdb)][_0x53133e(0xe8)]();}[_0xec9ed8(0xf0)](){const _0x4bd5ba=_0xec9ed8;switch(this[_0x4bd5ba(0xdc)][_0x4bd5ba(0xfc)](),this[_0x4bd5ba(0xf6)]){case _0x4bd5ba(0x108):this[_0x4bd5ba(0xdc)][_0x4bd5ba(0xe3)](this[_0x4bd5ba(0x104)]);break;case _0x4bd5ba(0xfb):this[_0x4bd5ba(0xdc)][_0x4bd5ba(0xe3)](this[_0x4bd5ba(0x101)]);break;case _0x4bd5ba(0x102):this[_0x4bd5ba(0xdc)][_0x4bd5ba(0xee)]([this[_0x4bd5ba(0xfd)],this[_0x4bd5ba(0xdd)]]);}}[_0xec9ed8(0xd5)](_0x41cff8,_0x27e881){const _0x11ecad=_0xec9ed8,_0x544f4f=_0x11ecad(0xf3),_0x16c75a=_0x41cff8[_0x11ecad(0xe5)](_0x544f4f);if(_0x16c75a)return _0x27e881(_0x16c75a);const _0x4dda62=new MutationObserver(_0x2a752c=>{const _0xfa4941=_0x11ecad,_0x48ba46=_0x2a752c[_0xfa4941(0xd7)](_0xe08fe5=>_0xe08fe5[_0xfa4941(0xe2)]===_0x41cff8&&_0xe08fe5[_0xfa4941(0xe4)][_0xfa4941(0xe7)]>0x0&&_0xe08fe5[_0xfa4941(0xe4)][0x0][_0xfa4941(0x105)][_0xfa4941(0xf8)]()===_0x544f4f);_0x48ba46[_0xfa4941(0xe7)]&&(_0x4dda62[_0xfa4941(0xd3)](),_0x27e881(_0x48ba46[0x0][_0xfa4941(0xe4)][0x0]));});_0x4dda62[_0x11ecad(0xf1)](_0x41cff8,{'childList':!0x0,'subtree':!0x0});}[_0xec9ed8(0xf4)](_0xa8f3){const _0x3844d9=_0xec9ed8;_0xa8f3[_0x3844d9(0xd6)](_0x3844d9(0xda),_0x3d7f10=>{const _0x3269f8=_0x3844d9;this[_0x3269f8(0xef)](_0x3269f8(0xda),{'imageSrc':_0x3d7f10[_0x3269f8(0xeb)][_0x3269f8(0xdf)]});}),_0xa8f3[_0x3844d9(0xd6)](_0x3844d9(0x107),()=>{const _0x4802bb=_0x3844d9;this[_0x4802bb(0xef)](_0x4802bb(0x107));});}[_0xec9ed8(0xfa)](){const _0x4dc0da=_0xec9ed8;this[_0x4dc0da(0x101)]['on'](_0x4dc0da(0xe1),()=>{const _0x485d39=_0x4dc0da;this[_0x485d39(0xef)](_0x485d39(0xe1));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x14cb(_0xdba84b,_0x5e7948){const _0x565a23=_0x565a();return _0x14cb=function(_0x14cbe8,_0x195a59){_0x14cbe8=_0x14cbe8-0x75;let _0x9df335=_0x565a23[_0x14cbe8];return _0x9df335;},_0x14cb(_0xdba84b,_0x5e7948);}const _0x16145b=_0x14cb;(function(_0x2c2687,_0x5a8876){const _0x1413b2=_0x14cb,_0x12a02a=_0x2c2687();while(!![]){try{const _0x4de972=-parseInt(_0x1413b2(0x8a))/0x1*(-parseInt(_0x1413b2(0x94))/0x2)+parseInt(_0x1413b2(0x80))/0x3*(parseInt(_0x1413b2(0x8c))/0x4)+-parseInt(_0x1413b2(0x8f))/0x5*(-parseInt(_0x1413b2(0x81))/0x6)+parseInt(_0x1413b2(0x7b))/0x7*(-parseInt(_0x1413b2(0x85))/0x8)+-parseInt(_0x1413b2(0x87))/0x9+parseInt(_0x1413b2(0x7d))/0xa+parseInt(_0x1413b2(0x89))/0xb*(-parseInt(_0x1413b2(0x7f))/0xc);if(_0x4de972===_0x5a8876)break;else _0x12a02a['push'](_0x12a02a['shift']());}catch(_0x2350c3){_0x12a02a['push'](_0x12a02a['shift']());}}}(_0x565a,0x2c81e));function _0x565a(){const _0x4bb00f=['get','4SwzzJn','refresh','model','293815jXCNEO','editor','document','imageBlock','isActive','1468eOHFMu','requires','_isEditable','getSelectedElement','isEnabled','bind','plugins','uploadcare.allowExternalImagesEditing','element','340970WYWAVr','unbind','2038720YrlTxi','set','12EpuEke','1033347uaVkLQ','30BAcTPN','imageEditController','imageInline','selection','32evsXdL','execute','594819aRKqwg','config','8110047lkoBnn','461uWOBHc'];_0x565a=function(){return _0x4bb00f;};return _0x565a();}import{Command as _0xf3efea}from'ckeditor5/src/core.js';import{Dialog as _0x214f8c}from'ckeditor5/src/ui.js';import _0x4e6a26 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x3a8cdd}from'../utils/editingutils.js';export default class D extends _0xf3efea{[_0x16145b(0x82)];static get[_0x16145b(0x95)](){return[_0x214f8c];}[_0x16145b(0x96)];constructor(_0x4cc9ea){const _0x195d39=_0x16145b;super(_0x4cc9ea),this[_0x195d39(0x82)]=void 0x0,this[_0x195d39(0x96)]=_0x3a8cdd(_0x4cc9ea[_0x195d39(0x88)][_0x195d39(0x8b)](_0x195d39(0x79))||[]),this[_0x195d39(0x7e)]({'isActive':!0x1});}[_0x16145b(0x8d)](){const _0x2b6335=_0x16145b,_0x149cad=this[_0x2b6335(0x90)][_0x2b6335(0x8e)][_0x2b6335(0x91)][_0x2b6335(0x84)][_0x2b6335(0x75)]();this[_0x2b6335(0x76)]=this[_0x2b6335(0x96)](_0x149cad);}[_0x16145b(0x86)](){const _0x5d7c69=_0x16145b;this[_0x5d7c69(0x82)]&&(this[_0x5d7c69(0x7c)](_0x5d7c69(0x93)),this[_0x5d7c69(0x82)]=void 0x0);const _0x3b386d=this[_0x5d7c69(0x90)][_0x5d7c69(0x8e)][_0x5d7c69(0x91)][_0x5d7c69(0x84)][_0x5d7c69(0x75)]();_0x3b386d&&(_0x3b386d['is'](_0x5d7c69(0x7a),_0x5d7c69(0x92))||_0x3b386d['is'](_0x5d7c69(0x7a),_0x5d7c69(0x83)))&&(this[_0x5d7c69(0x82)]=new _0x4e6a26(this[_0x5d7c69(0x90)],this[_0x5d7c69(0x90)][_0x5d7c69(0x78)][_0x5d7c69(0x8b)](_0x214f8c),_0x3b386d),this[_0x5d7c69(0x77)](_0x5d7c69(0x93))['to'](this[_0x5d7c69(0x82)],_0x5d7c69(0x93)));}}
23
+ const _0x1b6f21=_0x45f1;function _0x454d(){const _0x15c3e9=['editor','5677342hZNWsJ','config','refresh','645BtTiYQ','3593528nrnWNf','20etQMSE','32178hoWErE','plugins','selection','isActive','imageInline','34359BaDUZX','bind','isEnabled','requires','9384EZNuEK','get','3USZliI','76621MjIRxb','18smoHYR','uploadcare.allowExternalImagesEditing','_isEditable','311633HTigOy','set','element','258676UAToMG','imageBlock','unbind','26xJdlJv','document','getSelectedElement','model','execute','imageEditController'];_0x454d=function(){return _0x15c3e9;};return _0x454d();}(function(_0x386d04,_0x2e840c){const _0x1affb9=_0x45f1,_0x4c681d=_0x386d04();while(!![]){try{const _0x2b9259=parseInt(_0x1affb9(0x188))/0x1*(-parseInt(_0x1affb9(0x16f))/0x2)+-parseInt(_0x1affb9(0x187))/0x3*(-parseInt(_0x1affb9(0x18f))/0x4)+-parseInt(_0x1affb9(0x179))/0x5*(parseInt(_0x1affb9(0x17c))/0x6)+-parseInt(_0x1affb9(0x18c))/0x7+parseInt(_0x1affb9(0x17a))/0x8*(-parseInt(_0x1affb9(0x189))/0x9)+parseInt(_0x1affb9(0x17b))/0xa*(parseInt(_0x1affb9(0x176))/0xb)+parseInt(_0x1affb9(0x185))/0xc*(parseInt(_0x1affb9(0x181))/0xd);if(_0x2b9259===_0x2e840c)break;else _0x4c681d['push'](_0x4c681d['shift']());}catch(_0x199b50){_0x4c681d['push'](_0x4c681d['shift']());}}}(_0x454d,0x821ca));import{Command as _0x24dab3}from'ckeditor5/src/core.js';function _0x45f1(_0x14a9d3,_0x4e5b81){const _0x454d9c=_0x454d();return _0x45f1=function(_0x45f1ec,_0x132eb8){_0x45f1ec=_0x45f1ec-0x16e;let _0x257edb=_0x454d9c[_0x45f1ec];return _0x257edb;},_0x45f1(_0x14a9d3,_0x4e5b81);}import{Dialog as _0x13e331}from'ckeditor5/src/ui.js';import _0x55c2db from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x4cf580}from'../utils/editingutils.js';export default class J extends _0x24dab3{[_0x1b6f21(0x174)];static get[_0x1b6f21(0x184)](){return[_0x13e331];}[_0x1b6f21(0x18b)];constructor(_0x3c78d7){const _0x298151=_0x1b6f21;super(_0x3c78d7),this[_0x298151(0x174)]=void 0x0,this[_0x298151(0x18b)]=_0x4cf580(_0x3c78d7[_0x298151(0x177)][_0x298151(0x186)](_0x298151(0x18a))||[]),this[_0x298151(0x18d)]({'isActive':!0x1});}[_0x1b6f21(0x178)](){const _0x1e0360=_0x1b6f21,_0x599c38=this[_0x1e0360(0x175)][_0x1e0360(0x172)][_0x1e0360(0x170)][_0x1e0360(0x17e)][_0x1e0360(0x171)]();this[_0x1e0360(0x183)]=this[_0x1e0360(0x18b)](_0x599c38);}[_0x1b6f21(0x173)](){const _0x467794=_0x1b6f21;this[_0x467794(0x174)]&&(this[_0x467794(0x16e)](_0x467794(0x17f)),this[_0x467794(0x174)]=void 0x0);const _0xb389de=this[_0x467794(0x175)][_0x467794(0x172)][_0x467794(0x170)][_0x467794(0x17e)][_0x467794(0x171)]();_0xb389de&&(_0xb389de['is'](_0x467794(0x18e),_0x467794(0x190))||_0xb389de['is'](_0x467794(0x18e),_0x467794(0x180)))&&(this[_0x467794(0x174)]=new _0x55c2db(this[_0x467794(0x175)],this[_0x467794(0x175)][_0x467794(0x17d)][_0x467794(0x186)](_0x13e331),_0xb389de),this[_0x467794(0x182)](_0x467794(0x17f))['to'](this[_0x467794(0x174)],_0x467794(0x17f)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x760032=_0x2efd;(function(_0x3d0710,_0x2eae43){const _0x552ccf=_0x2efd,_0x2573f4=_0x3d0710();while(!![]){try{const _0x16a771=-parseInt(_0x552ccf(0x15f))/0x1*(-parseInt(_0x552ccf(0x160))/0x2)+-parseInt(_0x552ccf(0x164))/0x3*(-parseInt(_0x552ccf(0x155))/0x4)+parseInt(_0x552ccf(0x157))/0x5*(-parseInt(_0x552ccf(0x156))/0x6)+-parseInt(_0x552ccf(0x15e))/0x7+parseInt(_0x552ccf(0x167))/0x8*(-parseInt(_0x552ccf(0x159))/0x9)+-parseInt(_0x552ccf(0x165))/0xa+parseInt(_0x552ccf(0x158))/0xb;if(_0x16a771===_0x2eae43)break;else _0x2573f4['push'](_0x2573f4['shift']());}catch(_0x56b231){_0x2573f4['push'](_0x2573f4['shift']());}}}(_0x4395,0x61750));function _0x4395(){const _0x55955b=['uploadcareImageReplace','15dngeap','1422090EGMvYl','ImageEditing','1550032EUSFeL','UploadcareImageEditEditing','pluginName','init','requires','2476xSNdHl','222zDqInT','79115xFCUsI','13738846lSPPOC','9USjzIl','commands','uploadcareImageEdit','ImageUtils','add','3870125BBhSNq','310696RrrykZ','4AWQwiG','isOfficialPlugin','isPremiumPlugin'];_0x4395=function(){return _0x55955b;};return _0x4395();}import{Plugin as _0x352768}from'ckeditor5/src/core.js';import{Notification as _0x13c21a}from'ckeditor5/src/ui.js';import _0xb689a8 from'./uploadcareimageeditcommand.js';function _0x2efd(_0x2c4300,_0x50a38f){const _0x43952c=_0x4395();return _0x2efd=function(_0x2efd69,_0x52f289){_0x2efd69=_0x2efd69-0x154;let _0x1cad41=_0x43952c[_0x2efd69];return _0x1cad41;},_0x2efd(_0x2c4300,_0x50a38f);}import _0x420d6a from'./uploadcareimagereplacecommand.js';import _0x37bb87 from'../uploadcareediting.js';export default class g extends _0x352768{static get[_0x760032(0x169)](){const _0x112fad=_0x760032;return _0x112fad(0x168);}static get[_0x760032(0x154)](){const _0x50dec0=_0x760032;return[_0x37bb87,_0x13c21a,_0x50dec0(0x15c),_0x50dec0(0x166)];}static get[_0x760032(0x161)](){return!0x0;}static get[_0x760032(0x162)](){return!0x0;}[_0x760032(0x16a)](){const _0x9dd3e7=_0x760032,{editor:_0x3bf73b}=this;_0x3bf73b[_0x9dd3e7(0x15a)][_0x9dd3e7(0x15d)](_0x9dd3e7(0x15b),new _0xb689a8(_0x3bf73b)),_0x3bf73b[_0x9dd3e7(0x15a)][_0x9dd3e7(0x15d)](_0x9dd3e7(0x163),new _0x420d6a(_0x3bf73b));}}
23
+ function _0x472b(_0x3abb2f,_0x479176){const _0x16feb4=_0x16fe();return _0x472b=function(_0x472bf4,_0x40e40e){_0x472bf4=_0x472bf4-0xfc;let _0x10c887=_0x16feb4[_0x472bf4];return _0x10c887;},_0x472b(_0x3abb2f,_0x479176);}const _0x105101=_0x472b;(function(_0xfcc006,_0x32144b){const _0x300a8e=_0x472b,_0x4aa18f=_0xfcc006();while(!![]){try{const _0x1cbfc8=parseInt(_0x300a8e(0x10a))/0x1+parseInt(_0x300a8e(0x101))/0x2*(parseInt(_0x300a8e(0x10c))/0x3)+-parseInt(_0x300a8e(0x100))/0x4*(-parseInt(_0x300a8e(0x109))/0x5)+parseInt(_0x300a8e(0x110))/0x6*(parseInt(_0x300a8e(0x105))/0x7)+-parseInt(_0x300a8e(0xfd))/0x8*(-parseInt(_0x300a8e(0x111))/0x9)+parseInt(_0x300a8e(0x10b))/0xa+parseInt(_0x300a8e(0x108))/0xb*(-parseInt(_0x300a8e(0x10e))/0xc);if(_0x1cbfc8===_0x32144b)break;else _0x4aa18f['push'](_0x4aa18f['shift']());}catch(_0x444769){_0x4aa18f['push'](_0x4aa18f['shift']());}}}(_0x16fe,0x7c66a));import{Plugin as _0x53cd2b}from'ckeditor5/src/core.js';import{Notification as _0x5a8828}from'ckeditor5/src/ui.js';function _0x16fe(){const _0x42dffb=['add','12DVdHZe','isPremiumPlugin','4555422XFBsGI','113517WPAJiG','UploadcareImageEditEditing','commands','ImageUtils','376fnYmcN','requires','isOfficialPlugin','4JGSAuv','182QtBvQD','init','uploadcareImageReplace','ImageEditing','7oCdqpH','pluginName','uploadcareImageEdit','24488233shWVld','3140145mypVqT','3406AvGazO','4276690kTbVQw','10701ZoBzAh'];_0x16fe=function(){return _0x42dffb;};return _0x16fe();}import _0x4c6780 from'./uploadcareimageeditcommand.js';import _0x20fed0 from'./uploadcareimagereplacecommand.js';import _0x5dcaea from'../uploadcareediting.js';export default class g extends _0x53cd2b{static get[_0x105101(0x106)](){const _0x5e9515=_0x105101;return _0x5e9515(0x112);}static get[_0x105101(0xfe)](){const _0x2a4345=_0x105101;return[_0x5dcaea,_0x5a8828,_0x2a4345(0xfc),_0x2a4345(0x104)];}static get[_0x105101(0xff)](){return!0x0;}static get[_0x105101(0x10f)](){return!0x0;}[_0x105101(0x102)](){const _0x5a59e8=_0x105101,{editor:_0x3cdf6e}=this;_0x3cdf6e[_0x5a59e8(0x113)][_0x5a59e8(0x10d)](_0x5a59e8(0x107),new _0x4c6780(_0x3cdf6e)),_0x3cdf6e[_0x5a59e8(0x113)][_0x5a59e8(0x10d)](_0x5a59e8(0x103),new _0x20fed0(_0x3cdf6e));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x51e677}from'ckeditor5/src/core.js';import{ButtonView as _0x9c1631}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4d2524}from'ckeditor5/src/icons.js';import{createElement as _0x2a610f}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x51e677{['_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 _0x131f8e=this['editor'];_0x131f8e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x128f2b=>{const _0x3927b7=_0x131f8e['commands']['get']('uploadcareImageEdit'),_0x34272a=new _0x9c1631(_0x128f2b),t=_0x128f2b['t'];return _0x34272a['set']({'icon':_0x4d2524,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x34272a['bind']('isEnabled')['to'](_0x3927b7),_0x34272a['bind']('isOn')['to'](_0x3927b7,'isActive'),this['listenTo'](_0x34272a,'execute',()=>{_0x131f8e['execute']('uploadcareImageEdit'),_0x131f8e['editing']['view']['focus']();}),_0x34272a;}),this['_initConfig']();}['_initConfig'](){const _0x10bdac=_0x2a610f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x10bdac),this['listenTo'](this['editor'],'destroy',()=>{_0x10bdac['remove']();});}}
23
+ import{Plugin as _0x3f8840}from'ckeditor5/src/core.js';import{ButtonView as _0x22a6ad}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x55834b}from'ckeditor5/src/icons.js';import{createElement as _0x2c6c4d}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x3f8840{['_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 _0x62ab49=this['editor'];_0x62ab49['ui']['componentFactory']['add']('uploadcareImageEdit',_0x50a700=>{const _0x4de262=_0x62ab49['commands']['get']('uploadcareImageEdit'),_0x200c59=new _0x22a6ad(_0x50a700),t=_0x50a700['t'];return _0x200c59['set']({'icon':_0x55834b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x200c59['bind']('isEnabled')['to'](_0x4de262),_0x200c59['bind']('isOn')['to'](_0x4de262,'isActive'),this['listenTo'](_0x200c59,'execute',()=>{_0x62ab49['execute']('uploadcareImageEdit'),_0x62ab49['editing']['view']['focus']();}),_0x200c59;}),this['_initConfig']();}['_initConfig'](){const _0x53a9e1=_0x2c6c4d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x53a9e1),this['listenTo'](this['editor'],'destroy',()=>{_0x53a9e1['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1bf0(_0x496355,_0x3c977e){var _0x398cea=_0x398c();return _0x1bf0=function(_0x1bf0f4,_0x107d93){_0x1bf0f4=_0x1bf0f4-0x10c;var _0x17eb6c=_0x398cea[_0x1bf0f4];return _0x17eb6c;},_0x1bf0(_0x496355,_0x3c977e);}var _0x1dab57=_0x1bf0;(function(_0x268703,_0x3b2515){var _0x49e3a6=_0x1bf0,_0xa3d548=_0x268703();while(!![]){try{var _0x219a49=-parseInt(_0x49e3a6(0x113))/0x1+parseInt(_0x49e3a6(0x116))/0x2+-parseInt(_0x49e3a6(0x11a))/0x3+-parseInt(_0x49e3a6(0x112))/0x4+parseInt(_0x49e3a6(0x114))/0x5*(-parseInt(_0x49e3a6(0x11d))/0x6)+parseInt(_0x49e3a6(0x111))/0x7*(-parseInt(_0x49e3a6(0x11e))/0x8)+-parseInt(_0x49e3a6(0x110))/0x9*(-parseInt(_0x49e3a6(0x118))/0xa);if(_0x219a49===_0x3b2515)break;else _0xa3d548['push'](_0xa3d548['shift']());}catch(_0x5f5de2){_0xa3d548['push'](_0xa3d548['shift']());}}}(_0x398c,0xf1b22));import{FocusTracker as _0x4eddb0}from'ckeditor5/src/utils.js';import{View as _0x1f99c1,FocusCycler as _0x517627}from'ckeditor5/src/ui.js';function _0x398c(){var _0x1861e9=['getFocusableElement','focusCycler','580542tYIsSt','5849464eqFckM','focusTracker','createCollection','fire','forwardCycle','12671667LLpeJg','7RkzElk','5654516WYWYQB','1489525lmmTLR','65vsRipc','true','2572044wekMzL','bindTemplate','40rEYIzR','div','3107130oejBlj'];_0x398c=function(){return _0x1861e9;};return _0x398c();}import'../../theme/uploadcare-form.css';export default class G extends _0x1f99c1{[_0x1dab57(0x10c)];[_0x1dab57(0x11c)];constructor(_0x364cd3){var _0x402c81=_0x1dab57;super(_0x364cd3),this[_0x402c81(0x10c)]=new _0x4eddb0(),this[_0x402c81(0x11c)]=new _0x517627({'focusables':this[_0x402c81(0x10d)](),'focusTracker':this[_0x402c81(0x10c)]});}[_0x1dab57(0x11b)](){var _0x334fdb=_0x1dab57;return{'tag':_0x334fdb(0x119),'attributes':{'aria-hidden':_0x334fdb(0x115),'tabindex':'0'},'on':{'focus':this[_0x334fdb(0x117)]['to'](()=>{var _0x281518=_0x334fdb;this[_0x281518(0x11c)][_0x281518(0x10e)](_0x281518(0x10f));})}};}}
23
+ var _0x1b00c6=_0x4f12;function _0x4d71(){var _0x15d225=['bindTemplate','createCollection','17lCnrji','6CIDWNl','26341qzQAJI','true','focusCycler','getFocusableElement','forwardCycle','div','59404yHHory','3399273opPwJr','75KveMBT','202378oEFchh','focusTracker','708cGULwC','10989950FjmuIP','175822AEBcuI','2824WcCtlM','fire','3830835VdDSgN'];_0x4d71=function(){return _0x15d225;};return _0x4d71();}(function(_0x501b7c,_0x590d3e){var _0x460065=_0x4f12,_0x5c73f2=_0x501b7c();while(!![]){try{var _0x10ad90=-parseInt(_0x460065(0x72))/0x1*(-parseInt(_0x460065(0x6c))/0x2)+parseInt(_0x460065(0x7c))/0x3*(-parseInt(_0x460065(0x7a))/0x4)+-parseInt(_0x460065(0x6f))/0x5*(-parseInt(_0x460065(0x73))/0x6)+-parseInt(_0x460065(0x74))/0x7*(parseInt(_0x460065(0x6d))/0x8)+parseInt(_0x460065(0x7b))/0x9+-parseInt(_0x460065(0x6b))/0xa+-parseInt(_0x460065(0x68))/0xb*(-parseInt(_0x460065(0x6a))/0xc);if(_0x10ad90===_0x590d3e)break;else _0x5c73f2['push'](_0x5c73f2['shift']());}catch(_0x1888bc){_0x5c73f2['push'](_0x5c73f2['shift']());}}}(_0x4d71,0xe1e28));import{FocusTracker as _0x5197bb}from'ckeditor5/src/utils.js';function _0x4f12(_0x1bde81,_0x3a37c5){var _0x4d7178=_0x4d71();return _0x4f12=function(_0x4f12e9,_0x3e80e8){_0x4f12e9=_0x4f12e9-0x68;var _0x673125=_0x4d7178[_0x4f12e9];return _0x673125;},_0x4f12(_0x1bde81,_0x3a37c5);}import{View as _0x4c4987,FocusCycler as _0x215f5e}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x4c4987{[_0x1b00c6(0x69)];[_0x1b00c6(0x76)];constructor(_0x405ade){var _0xdaf2c5=_0x1b00c6;super(_0x405ade),this[_0xdaf2c5(0x69)]=new _0x5197bb(),this[_0xdaf2c5(0x76)]=new _0x215f5e({'focusables':this[_0xdaf2c5(0x71)](),'focusTracker':this[_0xdaf2c5(0x69)]});}[_0x1b00c6(0x77)](){var _0x9ce76d=_0x1b00c6;return{'tag':_0x9ce76d(0x79),'attributes':{'aria-hidden':_0x9ce76d(0x75),'tabindex':'0'},'on':{'focus':this[_0x9ce76d(0x70)]['to'](()=>{var _0x185d11=_0x9ce76d;this[_0x185d11(0x76)][_0x185d11(0x6e)](_0x185d11(0x78));})}};}}