@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250929.0 → 0.0.0-nightly-20251001.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 _0x5e4a29,ObservableMixin as _0x549056}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3f8aa5}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x549151}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x454495}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x1d8ecc}from'../../utils/uploadutils.js';import{getImageUrls as _0x1bacba,getImageDimension as _0x101183}from'../../utils/editingutils.js';import{isAncestor as _0x1f8a5f}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x549056(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x281565,_0x5dcd04,_0x58b90){super(),this['_editor']=_0x281565,this['_dialog']=_0x5dcd04,this['_imageElement']=_0x58b90,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 _0x34542c=this['_imageElement'],_0x4b7aa5=_0x34542c['getAttribute']('uploadcareImageId'),_0x5b03ef=_0x34542c['getAttribute']('src');if(_0x4b7aa5)await this['_loadImageInfo'](_0x4b7aa5,_0x5b03ef);else{if(this['_imageCache']['has'](_0x5b03ef)){const _0x47937c=this['_imageCache']['get'](_0x5b03ef);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x47937c['url'],this['imageDimension']=_0x47937c['dimension'],this['imageId']=_0x47937c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4ce9c0}=this['_editor'],t=_0x4ce9c0['t'],_0x20e076=new _0x454495(_0x4ce9c0,this['imageStatus'],this['_attributes']);_0x20e076['bind']('status')['to'](this,'imageStatus'),_0x20e076['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x20e076['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x20e076['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x20e076,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x549151,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x20e076,'position':_0x3f8aa5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x20e076['focus']();},'onHide':()=>{_0x20e076['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4791a2=>!_0x1f8a5f(_0x4791a2,_0x20e076['element'])}});}['_loadImageInfo'](_0x2c7c2f,_0x2d253b){return _0x1d8ecc['getInfo'](_0x2c7c2f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1f3d05=>{const {width:_0x29f2d7,height:_0x193d0c}=_0x1f3d05['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d253b,this['imageDimension']={'width':_0x29f2d7,'height':_0x193d0c},this['imageId']=_0x2c7c2f;})['catch'](_0x58d4c1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x58d4c1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1401c9,_0x4a2f3a){return this['_getImageAsFile'](_0x1401c9)['then'](_0x5aeca4=>_0x1d8ecc['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':_0x4a2f3a['signal'],'file':_0x5aeca4,'onProgress':_0x10895b=>{_0x10895b&&_0x10895b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x10895b['value']));}}))['then'](_0x698a03=>{const {width:_0x170192,height:_0x16b680}=_0x698a03['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x698a03['cdnUrl'],this['imageDimension']={'width':_0x170192,'height':_0x16b680},this['imageId']=_0x698a03['uuid'],this['imageUploadProgress']=null;const _0x44fddb=_0x1401c9['getAttribute']('src');this['_imageCache']['set'](_0x44fddb,{'id':_0x698a03['uuid'],'url':_0x698a03['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3095d8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3095d8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2821a1,_0x68411b){_0x2821a1['on']('apply',(_0x1ab821,_0x378989)=>{this['_replaceImage'](_0x68411b,_0x378989['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2821a1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2821a1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5f40d1,_0x500281,_0xb2219a){const _0xccdc73=this['_editor'],{width:_0x26ad54,height:_0x3cdbe1}=_0x101183(_0x500281,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x25c4dc,imageSources:_0x18223f}=_0x1bacba(_0x500281,_0x26ad54);_0xccdc73['model']['change'](_0x284960=>{if('$graveyard'===_0x5f40d1['root']['rootName']){_0xccdc73['execute']('insertImage',{'imageType':_0x5f40d1['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5f40d1['getAttributes']()),'uploadcareImageId':_0xb2219a,'src':_0x25c4dc,'sources':_0x18223f,'width':_0x26ad54,'height':_0x3cdbe1}});const _0x5bcf23=_0x5f40d1['getChildren']();_0x5f40d1=_0xccdc73['model']['document']['selection']['getSelectedElement']();for(const _0x3568d1 of _0x5bcf23)_0x284960['append'](_0x284960['cloneElement'](_0x3568d1),_0x5f40d1);}else _0x284960['setSelection'](_0x5f40d1,'on'),_0xccdc73['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5f40d1['getAttributes']()),'uploadcareImageId':_0xb2219a,'src':_0x25c4dc,'sources':_0x18223f,'width':_0x26ad54,'height':_0x3cdbe1},_0x5f40d1);_0x284960['setSelection'](_0x5f40d1,'on');});}async['_getImageAsFile'](_0x56287d){const _0x812731=_0x5e4a29['window'],_0x462f68=_0x5e4a29['document']['location']['href'],_0x4f7fa8=new _0x812731['URL'](_0x56287d['getAttribute']('src'),_0x462f68);if('data:'===_0x4f7fa8['protocol']){const _0x451003=_0x4f7fa8['href']['split'](','),_0x1b102b=_0x451003[0x0]['match'](/:(.*?);/)[0x1],_0x43d825=_0x1b102b['split']('/')[0x1],_0x4a54be=_0x812731['atob'](_0x451003[_0x451003['length']-0x1]);let _0x14f34f=_0x4a54be['length'];const _0x5e36c2=new _0x812731['Uint8Array'](_0x14f34f);for(;_0x14f34f--;)_0x5e36c2[_0x14f34f]=_0x4a54be['charCodeAt'](_0x14f34f);return new _0x812731['File']([_0x5e36c2],'image.'+_0x43d825,{'type':_0x1b102b});}const _0x54b701=_0x4f7fa8['href']['split']('/'),_0x29c351=_0x54b701[_0x54b701['length']-0x1],_0x573a9c=_0x29c351['split']('.')[0x1];return _0x812731['fetch'](_0x4f7fa8['href'])['then'](_0x197445=>_0x197445['clone']()['blob']())['then'](_0x41dea1=>new _0x812731['File']([_0x41dea1],_0x29c351,{'type':'image/'+_0x573a9c}));}}
23
+ import{global as _0x203eca,ObservableMixin as _0x419143}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3268a6}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x422993}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x563dc2}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x26238a}from'../../utils/uploadutils.js';import{getImageUrls as _0x392862,getImageDimension as _0x2af238}from'../../utils/editingutils.js';import{isAncestor as _0x2fd581}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x419143(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4275eb,_0x429a03,_0x564479){super(),this['_editor']=_0x4275eb,this['_dialog']=_0x429a03,this['_imageElement']=_0x564479,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 _0x1c8cf7=this['_imageElement'],_0x5e0495=_0x1c8cf7['getAttribute']('uploadcareImageId'),_0x31fd91=_0x1c8cf7['getAttribute']('src');if(_0x5e0495)await this['_loadImageInfo'](_0x5e0495,_0x31fd91);else{if(this['_imageCache']['has'](_0x31fd91)){const _0x4a3fcc=this['_imageCache']['get'](_0x31fd91);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4a3fcc['url'],this['imageDimension']=_0x4a3fcc['dimension'],this['imageId']=_0x4a3fcc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x43d018}=this['_editor'],t=_0x43d018['t'],_0x303f43=new _0x563dc2(_0x43d018,this['imageStatus'],this['_attributes']);_0x303f43['bind']('status')['to'](this,'imageStatus'),_0x303f43['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x303f43['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x303f43['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x303f43,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x422993,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x303f43,'position':_0x3268a6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x303f43['focus']();},'onHide':()=>{_0x303f43['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5b8023=>!_0x2fd581(_0x5b8023,_0x303f43['element'])}});}['_loadImageInfo'](_0x30ea76,_0x17169d){return _0x26238a['getInfo'](_0x30ea76,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x37cfcf=>{const {width:_0x3c8d03,height:_0x3dbd87}=_0x37cfcf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17169d,this['imageDimension']={'width':_0x3c8d03,'height':_0x3dbd87},this['imageId']=_0x30ea76;})['catch'](_0x3a8623=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3a8623['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4d97f8,_0x41fa4f){return this['_getImageAsFile'](_0x4d97f8)['then'](_0x5255e6=>_0x26238a['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':_0x41fa4f['signal'],'file':_0x5255e6,'onProgress':_0x3cd4d9=>{_0x3cd4d9&&_0x3cd4d9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3cd4d9['value']));}}))['then'](_0x1f7214=>{const {width:_0x30dd1d,height:_0x5103f0}=_0x1f7214['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1f7214['cdnUrl'],this['imageDimension']={'width':_0x30dd1d,'height':_0x5103f0},this['imageId']=_0x1f7214['uuid'],this['imageUploadProgress']=null;const _0x1c2ad3=_0x4d97f8['getAttribute']('src');this['_imageCache']['set'](_0x1c2ad3,{'id':_0x1f7214['uuid'],'url':_0x1f7214['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x371cdf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x371cdf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3413b9,_0x4bd58c){_0x3413b9['on']('apply',(_0x3a5ac6,_0x2ebb89)=>{this['_replaceImage'](_0x4bd58c,_0x2ebb89['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3413b9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3413b9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xe1c49e,_0x5c333d,_0x153a2c){const _0x50442b=this['_editor'],{width:_0x5a32d2,height:_0x3daf90}=_0x2af238(_0x5c333d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x76ea6e,imageSources:_0x1edba4}=_0x392862(_0x5c333d,_0x5a32d2);_0x50442b['model']['change'](_0x47af2a=>{if('$graveyard'===_0xe1c49e['root']['rootName']){_0x50442b['execute']('insertImage',{'imageType':_0xe1c49e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xe1c49e['getAttributes']()),'uploadcareImageId':_0x153a2c,'src':_0x76ea6e,'sources':_0x1edba4,'width':_0x5a32d2,'height':_0x3daf90}});const _0x5b2727=_0xe1c49e['getChildren']();_0xe1c49e=_0x50442b['model']['document']['selection']['getSelectedElement']();for(const _0x5dffad of _0x5b2727)_0x47af2a['append'](_0x47af2a['cloneElement'](_0x5dffad),_0xe1c49e);}else _0x47af2a['setSelection'](_0xe1c49e,'on'),_0x50442b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xe1c49e['getAttributes']()),'uploadcareImageId':_0x153a2c,'src':_0x76ea6e,'sources':_0x1edba4,'width':_0x5a32d2,'height':_0x3daf90},_0xe1c49e);_0x47af2a['setSelection'](_0xe1c49e,'on');});}async['_getImageAsFile'](_0x24a47e){const _0x4a3b94=_0x203eca['window'],_0x167786=_0x203eca['document']['location']['href'],_0x484c1e=new _0x4a3b94['URL'](_0x24a47e['getAttribute']('src'),_0x167786);if('data:'===_0x484c1e['protocol']){const _0x46af50=_0x484c1e['href']['split'](','),_0x1d2c8a=_0x46af50[0x0]['match'](/:(.*?);/)[0x1],_0x286653=_0x1d2c8a['split']('/')[0x1],_0xabc7e0=_0x4a3b94['atob'](_0x46af50[_0x46af50['length']-0x1]);let _0x402f99=_0xabc7e0['length'];const _0x4ff441=new _0x4a3b94['Uint8Array'](_0x402f99);for(;_0x402f99--;)_0x4ff441[_0x402f99]=_0xabc7e0['charCodeAt'](_0x402f99);return new _0x4a3b94['File']([_0x4ff441],'image.'+_0x286653,{'type':_0x1d2c8a});}const _0x50eb35=_0x484c1e['href']['split']('/'),_0x30194f=_0x50eb35[_0x50eb35['length']-0x1],_0x3382c7=_0x30194f['split']('.')[0x1];return _0x4a3b94['fetch'](_0x484c1e['href'])['then'](_0x48d261=>_0x48d261['clone']()['blob']())['then'](_0x71b274=>new _0x4a3b94['File']([_0x71b274],_0x30194f,{'type':'image/'+_0x3382c7}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x22f3d3,_0xa4425c){const _0x5ec91b=_0x2976,_0x599317=_0x22f3d3();while(!![]){try{const _0x1d7405=-parseInt(_0x5ec91b(0x16d))/0x1*(parseInt(_0x5ec91b(0x169))/0x2)+parseInt(_0x5ec91b(0x162))/0x3*(-parseInt(_0x5ec91b(0x166))/0x4)+-parseInt(_0x5ec91b(0x16e))/0x5+parseInt(_0x5ec91b(0x16f))/0x6*(-parseInt(_0x5ec91b(0x16c))/0x7)+parseInt(_0x5ec91b(0x167))/0x8*(-parseInt(_0x5ec91b(0x15f))/0x9)+parseInt(_0x5ec91b(0x16a))/0xa+parseInt(_0x5ec91b(0x170))/0xb;if(_0x1d7405===_0xa4425c)break;else _0x599317['push'](_0x599317['shift']());}catch(_0x454ec7){_0x599317['push'](_0x599317['shift']());}}}(_0x1dd5,0xe33d0));import{View as _0x27a23b}from'ckeditor5/src/ui.js';function _0x1dd5(){const _0x3398d5=['67922448khpUMM','bindTemplate','171SfihZX','set','uc-cloud-image-editor','12PoYDnu','setTemplate','ck-uploadcare-theme','imageSrc','442072pMxMcg','349240BdXpvW','uc-light','399912kKVHzh','3960690YwILXX','image-edit','203wYbgHf','8LKdInh','5841825vpCazb','331146RIqKBf'];_0x1dd5=function(){return _0x3398d5;};return _0x1dd5();}function _0x2976(_0xd2751b,_0x38e2df){const _0x1dd535=_0x1dd5();return _0x2976=function(_0x297633,_0x2e6cb4){_0x297633=_0x297633-0x15e;let _0xe64607=_0x1dd535[_0x297633];return _0xe64607;},_0x2976(_0xd2751b,_0x38e2df);}export class UploadcareImageEditFormEditingView extends _0x27a23b{constructor(_0x4e2df1,_0x3312f9){const _0x208dda=_0x2976;super(_0x4e2df1);const _0x3e930b=this[_0x208dda(0x15e)];this[_0x208dda(0x160)](_0x208dda(0x165),''),this[_0x208dda(0x163)]({'tag':_0x208dda(0x161),'attributes':{..._0x3312f9,'class':[_0x208dda(0x168),_0x208dda(0x164)],'ctx-name':_0x208dda(0x16b),'cdn-url':_0x3e930b['to'](_0x208dda(0x165))}});}}
23
+ function _0x1913(_0x469ed4,_0x310805){const _0x2d0e50=_0x2d0e();return _0x1913=function(_0x1913de,_0x2c7af5){_0x1913de=_0x1913de-0x132;let _0x53d742=_0x2d0e50[_0x1913de];return _0x53d742;},_0x1913(_0x469ed4,_0x310805);}(function(_0x5402ed,_0x11dc55){const _0x490478=_0x1913,_0x44839c=_0x5402ed();while(!![]){try{const _0x43d499=parseInt(_0x490478(0x133))/0x1+parseInt(_0x490478(0x13d))/0x2*(parseInt(_0x490478(0x13e))/0x3)+-parseInt(_0x490478(0x142))/0x4*(parseInt(_0x490478(0x13f))/0x5)+parseInt(_0x490478(0x13c))/0x6*(parseInt(_0x490478(0x136))/0x7)+parseInt(_0x490478(0x145))/0x8*(parseInt(_0x490478(0x13b))/0x9)+-parseInt(_0x490478(0x141))/0xa+parseInt(_0x490478(0x143))/0xb*(parseInt(_0x490478(0x13a))/0xc);if(_0x43d499===_0x11dc55)break;else _0x44839c['push'](_0x44839c['shift']());}catch(_0x158600){_0x44839c['push'](_0x44839c['shift']());}}}(_0x2d0e,0xa2190));function _0x2d0e(){const _0x1d4de5=['8sTCbxH','11UmKnwO','bindTemplate','8GpVLfx','setTemplate','261122kptKDO','imageSrc','uc-light','2417065hmxSPa','uc-cloud-image-editor','ck-uploadcare-theme','image-edit','8599692mxMPMb','1516338AIXBfu','6bJEWPV','2oIzIRS','1359066qpziTw','104770hgjvMZ','set','12387020KGWRHn'];_0x2d0e=function(){return _0x1d4de5;};return _0x2d0e();}import{View as _0x5eca9c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x5eca9c{constructor(_0x24ce19,_0x579edd){const _0x1e9fb7=_0x1913;super(_0x24ce19);const _0x4cb3b0=this[_0x1e9fb7(0x144)];this[_0x1e9fb7(0x140)](_0x1e9fb7(0x134),''),this[_0x1e9fb7(0x132)]({'tag':_0x1e9fb7(0x137),'attributes':{..._0x579edd,'class':[_0x1e9fb7(0x135),_0x1e9fb7(0x138)],'ctx-name':_0x1e9fb7(0x139),'cdn-url':_0x4cb3b0['to'](_0x1e9fb7(0x134))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x26a594}from'ckeditor5/src/icons.js';import{ButtonView as _0x32cfc0,IconView as _0x4571b0,View as _0x165e50}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x165e50{constructor(_0x161f16){super(_0x161f16);const t=_0x161f16['t'];this['set']('errorType',null);const _0x24cf28=new _0x32cfc0(_0x161f16);_0x24cf28['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x24cf28['withText']=!0x0,_0x24cf28['class']='ck-button-action',_0x24cf28['on']('execute',()=>{this['fire']('retry');}),_0x24cf28['bind']('isVisible')['to'](this,'errorType',_0x3e46f7=>'NotFound'!==_0x3e46f7);const _0x204efe=new _0x4571b0();_0x204efe['content']=_0x26a594,_0x204efe['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x127a26=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':[_0x204efe,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x127a26['to']('errorType',_0x53d533=>t('NotFound'!==_0x53d533?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x24cf28]},{'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 _0x335c8d}from'ckeditor5/src/icons.js';import{ButtonView as _0x3f6d15,IconView as _0x271e25,View as _0x5de9dc}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x5de9dc{constructor(_0x4677f8){super(_0x4677f8);const t=_0x4677f8['t'];this['set']('errorType',null);const _0x48248c=new _0x3f6d15(_0x4677f8);_0x48248c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x48248c['withText']=!0x0,_0x48248c['class']='ck-button-action',_0x48248c['on']('execute',()=>{this['fire']('retry');}),_0x48248c['bind']('isVisible')['to'](this,'errorType',_0xd49bad=>'NotFound'!==_0xd49bad);const _0x1bcd92=new _0x271e25();_0x1bcd92['content']=_0x335c8d,_0x1bcd92['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2fb65a=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':[_0x1bcd92,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2fb65a['to']('errorType',_0x3aa6c4=>t('NotFound'!==_0x3aa6c4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x48248c]},{'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 _0x5db9bd,View as _0x133153}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x133153{constructor(_0x5bda9a){super(_0x5bda9a);const t=_0x5bda9a['t'],_0x3fb559=this['bindTemplate'],_0x909e8f=new _0x5db9bd();_0x909e8f['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':[_0x909e8f,{'text':_0x3fb559['to']('imageUploadProgress',_0x5a3455=>t('Loading\x20image...')+'\x20('+(_0x5a3455||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 _0x339c2c,View as _0x53aebe}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x53aebe{constructor(_0x27a88d){super(_0x27a88d);const t=_0x27a88d['t'],_0x1fae27=this['bindTemplate'],_0x233ba4=new _0x339c2c();_0x233ba4['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':[_0x233ba4,{'text':_0x1fae27['to']('imageUploadProgress',_0xd2cadc=>t('Loading\x20image...')+'\x20('+(_0xd2cadc||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 _0x580e(_0x2813c9,_0x42b87d){const _0xdd2f54=_0xdd2f();return _0x580e=function(_0x580e5e,_0x201cfc){_0x580e5e=_0x580e5e-0x79;let _0x3a2f44=_0xdd2f54[_0x580e5e];return _0x3a2f44;},_0x580e(_0x2813c9,_0x42b87d);}const _0x549d84=_0x580e;(function(_0x25f777,_0xbd6071){const _0x650de7=_0x580e,_0x1ff0dd=_0x25f777();while(!![]){try{const _0x58501c=-parseInt(_0x650de7(0x8b))/0x1+-parseInt(_0x650de7(0x79))/0x2*(-parseInt(_0x650de7(0x87))/0x3)+-parseInt(_0x650de7(0x90))/0x4*(-parseInt(_0x650de7(0x8f))/0x5)+-parseInt(_0x650de7(0xab))/0x6*(-parseInt(_0x650de7(0x7a))/0x7)+parseInt(_0x650de7(0x9f))/0x8*(-parseInt(_0x650de7(0xa3))/0x9)+parseInt(_0x650de7(0x81))/0xa+-parseInt(_0x650de7(0xaa))/0xb;if(_0x58501c===_0xbd6071)break;else _0x1ff0dd['push'](_0x1ff0dd['shift']());}catch(_0x18d968){_0x1ff0dd['push'](_0x1ff0dd['shift']());}}}(_0xdd2f,0x8b190));import{View as _0x27b8db}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x375054}from'./uploadcareimageeditformloadingview.js';function _0xdd2f(){const _0x5368a7=['_errorView','clear','cdnUrl','2026AiaxYW','7NPnyEB','apply','set','error','retry','addEventListener','ck-uploadcare-form','3504290jMNeaM','getFocusableElement','toLowerCase','ck-reset_all-excluded','detail','nodeName','3279vKRZLg','uploading','_addErrorViewListeners','div','319200tdYrMO','addedNodes','render','querySelector','35gEoHwX','500596cYBkvE','change:status','setTemplate','_focusableView','disconnect','status','ready','_addUploadcareImageEditorListeners','_editingView','observe','add','_loadingView','createCollection','target','fire','8162664nkBuQk','cancel','addMany','_setView','9asLYHj','focus','element','length','filter','_items','_waitForImageEditorComponent','16766849NvsZnc','6599130HZcwKZ','uc-cloud-image-editor','once'];_0xdd2f=function(){return _0x5368a7;};return _0xdd2f();}import{UploadcareImageEditFormErrorView as _0x3aa02f}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x2cb5f8}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1b0260}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x1b0260{[_0x549d84(0xa8)];[_0x549d84(0x9b)];[_0x549d84(0xae)];[_0x549d84(0x98)];[_0x549d84(0x93)];constructor(_0x19e1db,_0x22fd54,_0x24c933){const _0x4ec4d2=_0x549d84;super(_0x19e1db),this[_0x4ec4d2(0xa8)]=this[_0x4ec4d2(0x9c)](),this[_0x4ec4d2(0x9b)]=new _0x375054(_0x19e1db),this[_0x4ec4d2(0xae)]=new _0x3aa02f(_0x19e1db),this[_0x4ec4d2(0x98)]=new _0x2cb5f8(_0x19e1db,_0x24c933),this[_0x4ec4d2(0x93)]=new _0x27b8db(_0x19e1db),this[_0x4ec4d2(0x93)][_0x4ec4d2(0x92)](this[_0x4ec4d2(0x82)]()),this[_0x4ec4d2(0x7c)](_0x4ec4d2(0x95),_0x22fd54),this[_0x4ec4d2(0x92)]({'tag':_0x4ec4d2(0x8a),'attributes':{'class':['ck',_0x4ec4d2(0x84),_0x4ec4d2(0x80)],'tabindex':'-1'},'children':this[_0x4ec4d2(0xa8)]}),this[_0x4ec4d2(0xa2)](),this[_0x4ec4d2(0xad)](_0x4ec4d2(0x8d),()=>{const _0x34f199=_0x4ec4d2;this[_0x34f199(0xa9)](this[_0x34f199(0xa5)],_0x5a9370=>{const _0x23d07d=_0x34f199;this[_0x23d07d(0x97)](_0x5a9370);});}),this['on'](_0x4ec4d2(0x91),()=>{const _0x144a06=_0x4ec4d2;this[_0x144a06(0xa2)]();}),this[_0x4ec4d2(0x89)]();}[_0x549d84(0xa4)](){const _0x46f880=_0x549d84;this[_0x46f880(0xa5)][_0x46f880(0xa4)]();}[_0x549d84(0xa2)](){const _0xd38608=_0x549d84;switch(this[_0xd38608(0xa8)][_0xd38608(0xaf)](),this[_0xd38608(0x95)]){case _0xd38608(0x88):this[_0xd38608(0xa8)][_0xd38608(0x9a)](this[_0xd38608(0x9b)]);break;case _0xd38608(0x7d):this[_0xd38608(0xa8)][_0xd38608(0x9a)](this[_0xd38608(0xae)]);break;case _0xd38608(0x96):this[_0xd38608(0xa8)][_0xd38608(0xa1)]([this[_0xd38608(0x98)],this[_0xd38608(0x93)]]);}}[_0x549d84(0xa9)](_0x10a53b,_0x36814d){const _0xdfbc18=_0x549d84,_0x192414=_0xdfbc18(0xac),_0x297dc3=_0x10a53b[_0xdfbc18(0x8e)](_0x192414);if(_0x297dc3)return _0x36814d(_0x297dc3);const _0x1c4cf7=new MutationObserver(_0x5c4a82=>{const _0x4d0cc6=_0xdfbc18,_0x156d7b=_0x5c4a82[_0x4d0cc6(0xa7)](_0x40fe20=>_0x40fe20[_0x4d0cc6(0x9d)]===_0x10a53b&&_0x40fe20[_0x4d0cc6(0x8c)][_0x4d0cc6(0xa6)]>0x0&&_0x40fe20[_0x4d0cc6(0x8c)][0x0][_0x4d0cc6(0x86)][_0x4d0cc6(0x83)]()===_0x192414);_0x156d7b[_0x4d0cc6(0xa6)]&&(_0x1c4cf7[_0x4d0cc6(0x94)](),_0x36814d(_0x156d7b[0x0][_0x4d0cc6(0x8c)][0x0]));});_0x1c4cf7[_0xdfbc18(0x99)](_0x10a53b,{'childList':!0x0,'subtree':!0x0});}[_0x549d84(0x97)](_0x4487f5){const _0xecad35=_0x549d84;_0x4487f5[_0xecad35(0x7f)](_0xecad35(0x7b),_0x21563a=>{const _0x156724=_0xecad35;this[_0x156724(0x9e)](_0x156724(0x7b),{'imageSrc':_0x21563a[_0x156724(0x85)][_0x156724(0xb0)]});}),_0x4487f5[_0xecad35(0x7f)](_0xecad35(0xa0),()=>{const _0x44108c=_0xecad35;this[_0x44108c(0x9e)](_0x44108c(0xa0));});}[_0x549d84(0x89)](){const _0x20f0ef=_0x549d84;this[_0x20f0ef(0xae)]['on'](_0x20f0ef(0x7e),()=>{const _0x39b11b=_0x20f0ef;this[_0x39b11b(0x9e)](_0x39b11b(0x7e));});}}
23
+ const _0x522351=_0x568a;(function(_0x2ba76b,_0x30301a){const _0x8ca10=_0x568a,_0x586100=_0x2ba76b();while(!![]){try{const _0xd866aa=parseInt(_0x8ca10(0x12b))/0x1*(-parseInt(_0x8ca10(0x136))/0x2)+-parseInt(_0x8ca10(0x122))/0x3*(parseInt(_0x8ca10(0x118))/0x4)+-parseInt(_0x8ca10(0x127))/0x5+parseInt(_0x8ca10(0x135))/0x6+-parseInt(_0x8ca10(0x11f))/0x7+parseInt(_0x8ca10(0x139))/0x8+parseInt(_0x8ca10(0x116))/0x9;if(_0xd866aa===_0x30301a)break;else _0x586100['push'](_0x586100['shift']());}catch(_0x18dfe5){_0x586100['push'](_0x586100['shift']());}}}(_0x51a1,0x4a7d8));import{View as _0x300216}from'ckeditor5/src/ui.js';function _0x568a(_0x50e56d,_0x1049fd){const _0x51a152=_0x51a1();return _0x568a=function(_0x568a68,_0x8bd550){_0x568a68=_0x568a68-0x108;let _0x272770=_0x51a152[_0x568a68];return _0x272770;},_0x568a(_0x50e56d,_0x1049fd);}import{UploadcareImageEditFormLoadingView as _0x3f7626}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x1e2e43}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xc8d79a}from'./uploadcareimageeditformeditingview.js';function _0x51a1(){const _0x1d0850=['length','cancel','_addUploadcareImageEditorListeners','_errorView','getFocusableElement','8863146qsWEGh','detail','32544RMdBHd','addMany','_items','_loadingView','_focusableView','filter','add','4243946KiMhvz','set','status','99hmguiU','uc-cloud-image-editor','ready','error','ck-reset_all-excluded','1214175vLJEoP','once','setTemplate','render','224987NoEGHm','div','_addErrorViewListeners','fire','toLowerCase','focus','_setView','addedNodes','disconnect','_editingView','2159010fiEyIa','2HCIsMd','apply','createCollection','2424568TpZlYf','nodeName','addEventListener','retry','cdnUrl','element','observe','uploading','_waitForImageEditorComponent','target','change:status','clear','ck-uploadcare-form','querySelector'];_0x51a1=function(){return _0x1d0850;};return _0x51a1();}import{DialogFocusManagerView as _0x4794f4}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x4794f4{[_0x522351(0x11a)];[_0x522351(0x11b)];[_0x522351(0x114)];[_0x522351(0x134)];[_0x522351(0x11c)];constructor(_0x230b68,_0x48c7e2,_0x15f763){const _0x18d240=_0x522351;super(_0x230b68),this[_0x18d240(0x11a)]=this[_0x18d240(0x138)](),this[_0x18d240(0x11b)]=new _0x3f7626(_0x230b68),this[_0x18d240(0x114)]=new _0x1e2e43(_0x230b68),this[_0x18d240(0x134)]=new _0xc8d79a(_0x230b68,_0x15f763),this[_0x18d240(0x11c)]=new _0x300216(_0x230b68),this[_0x18d240(0x11c)][_0x18d240(0x129)](this[_0x18d240(0x115)]()),this[_0x18d240(0x120)](_0x18d240(0x121),_0x48c7e2),this[_0x18d240(0x129)]({'tag':_0x18d240(0x12c),'attributes':{'class':['ck',_0x18d240(0x126),_0x18d240(0x10f)],'tabindex':'-1'},'children':this[_0x18d240(0x11a)]}),this[_0x18d240(0x131)](),this[_0x18d240(0x128)](_0x18d240(0x12a),()=>{const _0x677c79=_0x18d240;this[_0x677c79(0x10b)](this[_0x677c79(0x108)],_0x31d127=>{const _0x559155=_0x677c79;this[_0x559155(0x113)](_0x31d127);});}),this['on'](_0x18d240(0x10d),()=>{const _0x4e6506=_0x18d240;this[_0x4e6506(0x131)]();}),this[_0x18d240(0x12d)]();}[_0x522351(0x130)](){const _0x62986d=_0x522351;this[_0x62986d(0x108)][_0x62986d(0x130)]();}[_0x522351(0x131)](){const _0x3fc662=_0x522351;switch(this[_0x3fc662(0x11a)][_0x3fc662(0x10e)](),this[_0x3fc662(0x121)]){case _0x3fc662(0x10a):this[_0x3fc662(0x11a)][_0x3fc662(0x11e)](this[_0x3fc662(0x11b)]);break;case _0x3fc662(0x125):this[_0x3fc662(0x11a)][_0x3fc662(0x11e)](this[_0x3fc662(0x114)]);break;case _0x3fc662(0x124):this[_0x3fc662(0x11a)][_0x3fc662(0x119)]([this[_0x3fc662(0x134)],this[_0x3fc662(0x11c)]]);}}[_0x522351(0x10b)](_0x8c9869,_0x1f1cdf){const _0xe11444=_0x522351,_0x255b97=_0xe11444(0x123),_0x43a4bf=_0x8c9869[_0xe11444(0x110)](_0x255b97);if(_0x43a4bf)return _0x1f1cdf(_0x43a4bf);const _0x33e5b3=new MutationObserver(_0xbd17b2=>{const _0x2357c5=_0xe11444,_0xdc94c7=_0xbd17b2[_0x2357c5(0x11d)](_0x7d1276=>_0x7d1276[_0x2357c5(0x10c)]===_0x8c9869&&_0x7d1276[_0x2357c5(0x132)][_0x2357c5(0x111)]>0x0&&_0x7d1276[_0x2357c5(0x132)][0x0][_0x2357c5(0x13a)][_0x2357c5(0x12f)]()===_0x255b97);_0xdc94c7[_0x2357c5(0x111)]&&(_0x33e5b3[_0x2357c5(0x133)](),_0x1f1cdf(_0xdc94c7[0x0][_0x2357c5(0x132)][0x0]));});_0x33e5b3[_0xe11444(0x109)](_0x8c9869,{'childList':!0x0,'subtree':!0x0});}[_0x522351(0x113)](_0x15b9b2){const _0x1c0fcc=_0x522351;_0x15b9b2[_0x1c0fcc(0x13b)](_0x1c0fcc(0x137),_0x435f94=>{const _0x3d17d9=_0x1c0fcc;this[_0x3d17d9(0x12e)](_0x3d17d9(0x137),{'imageSrc':_0x435f94[_0x3d17d9(0x117)][_0x3d17d9(0x13d)]});}),_0x15b9b2[_0x1c0fcc(0x13b)](_0x1c0fcc(0x112),()=>{const _0x24dbe5=_0x1c0fcc;this[_0x24dbe5(0x12e)](_0x24dbe5(0x112));});}[_0x522351(0x12d)](){const _0x265a8c=_0x522351;this[_0x265a8c(0x114)]['on'](_0x265a8c(0x13c),()=>{const _0x20205e=_0x265a8c;this[_0x20205e(0x12e)](_0x20205e(0x13c));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2657dd=_0x3eb9;(function(_0x5ef729,_0x3d886a){const _0xd4a4c2=_0x3eb9,_0x55063f=_0x5ef729();while(!![]){try{const _0x53ebc8=parseInt(_0xd4a4c2(0xb2))/0x1+parseInt(_0xd4a4c2(0xbb))/0x2+-parseInt(_0xd4a4c2(0xc4))/0x3*(parseInt(_0xd4a4c2(0xc0))/0x4)+-parseInt(_0xd4a4c2(0xd0))/0x5+-parseInt(_0xd4a4c2(0xb7))/0x6*(parseInt(_0xd4a4c2(0xbe))/0x7)+-parseInt(_0xd4a4c2(0xb5))/0x8*(-parseInt(_0xd4a4c2(0xbd))/0x9)+-parseInt(_0xd4a4c2(0xcc))/0xa*(parseInt(_0xd4a4c2(0xd2))/0xb);if(_0x53ebc8===_0x3d886a)break;else _0x55063f['push'](_0x55063f['shift']());}catch(_0x550276){_0x55063f['push'](_0x55063f['shift']());}}}(_0x47c2,0xc79cf));function _0x3eb9(_0x4a9ff0,_0x1ea759){const _0x47c2e9=_0x47c2();return _0x3eb9=function(_0x3eb97a,_0x1377e4){_0x3eb97a=_0x3eb97a-0xb2;let _0x67e226=_0x47c2e9[_0x3eb97a];return _0x67e226;},_0x3eb9(_0x4a9ff0,_0x1ea759);}import{Command as _0x1d7be6}from'ckeditor5/src/core.js';function _0x47c2(){const _0xc5b0f2=['isActive','editor','plugins','55010xBlmmL','unbind','requires','uploadcare.allowExternalImagesEditing','5011095iNHKQc','element','1001kMfMHx','629490YgFcfJ','execute','getSelectedElement','4287112avfDhl','model','114792kcNmxL','_isEditable','imageInline','isEnabled','3105472BhRCbg','config','18kETOVO','7fHFYuR','document','215164fwcQVO','refresh','set','imageEditController','51YNneIz','imageBlock','selection','bind','get'];_0x47c2=function(){return _0xc5b0f2;};return _0x47c2();}import{Dialog as _0x2a39a1}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1ccda7}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x628e31}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x1d7be6{[_0x2657dd(0xc3)];static get[_0x2657dd(0xce)](){return[_0x2a39a1];}[_0x2657dd(0xb8)];constructor(_0x2ade73){const _0x257f49=_0x2657dd;super(_0x2ade73),this[_0x257f49(0xc3)]=void 0x0,this[_0x257f49(0xb8)]=_0x628e31(_0x2ade73[_0x257f49(0xbc)][_0x257f49(0xc8)](_0x257f49(0xcf))||[]),this[_0x257f49(0xc2)]({'isActive':!0x1});}[_0x2657dd(0xc1)](){const _0x52b8c1=_0x2657dd,_0x35cbd0=this[_0x52b8c1(0xca)][_0x52b8c1(0xb6)][_0x52b8c1(0xbf)][_0x52b8c1(0xc6)][_0x52b8c1(0xb4)]();this[_0x52b8c1(0xba)]=this[_0x52b8c1(0xb8)](_0x35cbd0);}[_0x2657dd(0xb3)](){const _0x5784ab=_0x2657dd;this[_0x5784ab(0xc3)]&&(this[_0x5784ab(0xcd)](_0x5784ab(0xc9)),this[_0x5784ab(0xc3)]=void 0x0);const _0x46cbe4=this[_0x5784ab(0xca)][_0x5784ab(0xb6)][_0x5784ab(0xbf)][_0x5784ab(0xc6)][_0x5784ab(0xb4)]();_0x46cbe4&&(_0x46cbe4['is'](_0x5784ab(0xd1),_0x5784ab(0xc5))||_0x46cbe4['is'](_0x5784ab(0xd1),_0x5784ab(0xb9)))&&(this[_0x5784ab(0xc3)]=new _0x1ccda7(this[_0x5784ab(0xca)],this[_0x5784ab(0xca)][_0x5784ab(0xcb)][_0x5784ab(0xc8)](_0x2a39a1),_0x46cbe4),this[_0x5784ab(0xc7)](_0x5784ab(0xc9))['to'](this[_0x5784ab(0xc3)],_0x5784ab(0xc9)));}}
23
+ function _0x2790(_0x30a13a,_0x55c7a2){const _0x3cb656=_0x3cb6();return _0x2790=function(_0x279042,_0x2f5197){_0x279042=_0x279042-0x1e5;let _0x5316aa=_0x3cb656[_0x279042];return _0x5316aa;},_0x2790(_0x30a13a,_0x55c7a2);}const _0x55e9b2=_0x2790;(function(_0x35a0e2,_0x2e71f4){const _0x2f74d0=_0x2790,_0x5a0eda=_0x35a0e2();while(!![]){try{const _0x2e2014=parseInt(_0x2f74d0(0x1f6))/0x1*(-parseInt(_0x2f74d0(0x1e8))/0x2)+-parseInt(_0x2f74d0(0x1ee))/0x3*(-parseInt(_0x2f74d0(0x1ed))/0x4)+-parseInt(_0x2f74d0(0x1f2))/0x5+-parseInt(_0x2f74d0(0x1fe))/0x6+parseInt(_0x2f74d0(0x1fb))/0x7*(parseInt(_0x2f74d0(0x1e7))/0x8)+-parseInt(_0x2f74d0(0x1ea))/0x9+parseInt(_0x2f74d0(0x1f7))/0xa*(parseInt(_0x2f74d0(0x1fc))/0xb);if(_0x2e2014===_0x2e71f4)break;else _0x5a0eda['push'](_0x5a0eda['shift']());}catch(_0x48204a){_0x5a0eda['push'](_0x5a0eda['shift']());}}}(_0x3cb6,0xaffc0));import{Command as _0xa53048}from'ckeditor5/src/core.js';import{Dialog as _0x302b7e}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1ab91a}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x508479}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0xa53048{[_0x55e9b2(0x1f9)];static get[_0x55e9b2(0x201)](){return[_0x302b7e];}[_0x55e9b2(0x202)];constructor(_0x11cdb3){const _0x26e9f5=_0x55e9b2;super(_0x11cdb3),this[_0x26e9f5(0x1f9)]=void 0x0,this[_0x26e9f5(0x202)]=_0x508479(_0x11cdb3[_0x26e9f5(0x1e6)][_0x26e9f5(0x1e9)](_0x26e9f5(0x1f5))||[]),this[_0x26e9f5(0x200)]({'isActive':!0x1});}[_0x55e9b2(0x205)](){const _0x561d39=_0x55e9b2,_0x30985b=this[_0x561d39(0x1f3)][_0x561d39(0x1fd)][_0x561d39(0x1eb)][_0x561d39(0x1e5)][_0x561d39(0x1f0)]();this[_0x561d39(0x1ec)]=this[_0x561d39(0x202)](_0x30985b);}[_0x55e9b2(0x1ff)](){const _0x343dcf=_0x55e9b2;this[_0x343dcf(0x1f9)]&&(this[_0x343dcf(0x1f8)](_0x343dcf(0x1fa)),this[_0x343dcf(0x1f9)]=void 0x0);const _0xf73f7d=this[_0x343dcf(0x1f3)][_0x343dcf(0x1fd)][_0x343dcf(0x1eb)][_0x343dcf(0x1e5)][_0x343dcf(0x1f0)]();_0xf73f7d&&(_0xf73f7d['is'](_0x343dcf(0x1ef),_0x343dcf(0x204))||_0xf73f7d['is'](_0x343dcf(0x1ef),_0x343dcf(0x1f1)))&&(this[_0x343dcf(0x1f9)]=new _0x1ab91a(this[_0x343dcf(0x1f3)],this[_0x343dcf(0x1f3)][_0x343dcf(0x203)][_0x343dcf(0x1e9)](_0x302b7e),_0xf73f7d),this[_0x343dcf(0x1f4)](_0x343dcf(0x1fa))['to'](this[_0x343dcf(0x1f9)],_0x343dcf(0x1fa)));}}function _0x3cb6(){const _0x2e3aee=['isActive','21rsMvvA','2808971chjsMQ','model','6673500GjWHAQ','execute','set','requires','_isEditable','plugins','imageBlock','refresh','selection','config','527560ZQtwTc','684pRRwwj','get','8087229VMDslK','document','isEnabled','1445684SIUxmn','3poYLVz','element','getSelectedElement','imageInline','1657500gUQcgJ','editor','bind','uploadcare.allowExternalImagesEditing','892gpjAmu','110klVDaI','unbind','imageEditController'];_0x3cb6=function(){return _0x2e3aee;};return _0x3cb6();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1310e3=_0x5152;(function(_0x3a3acf,_0xbbba54){const _0x1ace1d=_0x5152,_0x36c908=_0x3a3acf();while(!![]){try{const _0x37fd3a=parseInt(_0x1ace1d(0x14a))/0x1+-parseInt(_0x1ace1d(0x152))/0x2+parseInt(_0x1ace1d(0x151))/0x3+parseInt(_0x1ace1d(0x148))/0x4+-parseInt(_0x1ace1d(0x153))/0x5+parseInt(_0x1ace1d(0x14c))/0x6+-parseInt(_0x1ace1d(0x156))/0x7;if(_0x37fd3a===_0xbbba54)break;else _0x36c908['push'](_0x36c908['shift']());}catch(_0x2effa4){_0x36c908['push'](_0x36c908['shift']());}}}(_0x3289,0x72c23));import{Plugin as _0x256c8a}from'ckeditor5/src/core.js';import{Notification as _0x2b41ad}from'ckeditor5/src/ui.js';function _0x3289(){const _0x1b6252=['uploadcareImageReplace','ImageEditing','isPremiumPlugin','UploadcareImageEditEditing','3011744HkVXUe','ImageUtils','788840VQDHUy','uploadcareImageEdit','4244334jNAUvZ','commands','requires','add','isOfficialPlugin','2338053tPLtJm','424150vDUCVy','3851930ICZbjb','pluginName','init','11032028nccaaL'];_0x3289=function(){return _0x1b6252;};return _0x3289();}function _0x5152(_0x5297a3,_0x184794){const _0x328939=_0x3289();return _0x5152=function(_0x5152cc,_0x884daa){_0x5152cc=_0x5152cc-0x144;let _0x4988c3=_0x328939[_0x5152cc];return _0x4988c3;},_0x5152(_0x5297a3,_0x184794);}import{UploadcareImageEditCommand as _0x181f1f}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x254282}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0xd54ec0}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x256c8a{static get[_0x1310e3(0x154)](){const _0x9d0acd=_0x1310e3;return _0x9d0acd(0x147);}static get[_0x1310e3(0x14e)](){const _0x27205d=_0x1310e3;return[_0xd54ec0,_0x2b41ad,_0x27205d(0x149),_0x27205d(0x145)];}static get[_0x1310e3(0x150)](){return!0x0;}static get[_0x1310e3(0x146)](){return!0x0;}[_0x1310e3(0x155)](){const _0x19a345=_0x1310e3,{editor:_0x43b591}=this;_0x43b591[_0x19a345(0x14d)][_0x19a345(0x14f)](_0x19a345(0x14b),new _0x181f1f(_0x43b591)),_0x43b591[_0x19a345(0x14d)][_0x19a345(0x14f)](_0x19a345(0x144),new _0x254282(_0x43b591));}}
23
+ const _0x5ef032=_0x3d93;(function(_0x5df21a,_0x5d4987){const _0x31f495=_0x3d93,_0x58f84c=_0x5df21a();while(!![]){try{const _0x3402a9=-parseInt(_0x31f495(0x1e6))/0x1*(parseInt(_0x31f495(0x1de))/0x2)+-parseInt(_0x31f495(0x1db))/0x3*(-parseInt(_0x31f495(0x1e5))/0x4)+parseInt(_0x31f495(0x1da))/0x5+parseInt(_0x31f495(0x1d8))/0x6+-parseInt(_0x31f495(0x1dd))/0x7+-parseInt(_0x31f495(0x1e4))/0x8*(-parseInt(_0x31f495(0x1e8))/0x9)+-parseInt(_0x31f495(0x1df))/0xa;if(_0x3402a9===_0x5d4987)break;else _0x58f84c['push'](_0x58f84c['shift']());}catch(_0xdd039c){_0x58f84c['push'](_0x58f84c['shift']());}}}(_0x1f88,0x7015d));import{Plugin as _0x4dcd45}from'ckeditor5/src/core.js';import{Notification as _0x3bc9c1}from'ckeditor5/src/ui.js';function _0x1f88(){const _0x3872cd=['isPremiumPlugin','uploadcareImageReplace','ImageEditing','uploadcareImageEdit','2539902jraezZ','isOfficialPlugin','2240390BYEMOA','3yInQJo','pluginName','82320cLeQya','407698SsiCID','735440ZlMVps','add','requires','ImageUtils','UploadcareImageEditEditing','198928KItCzS','1257376LgQXCb','4lWFLqC','commands','63ekbqmo','init'];_0x1f88=function(){return _0x3872cd;};return _0x1f88();}import{UploadcareImageEditCommand as _0x521267}from'./uploadcareimageeditcommand.js';function _0x3d93(_0x2b2892,_0x230ed0){const _0x1f8894=_0x1f88();return _0x3d93=function(_0x3d93c9,_0x555bcb){_0x3d93c9=_0x3d93c9-0x1d4;let _0x52952e=_0x1f8894[_0x3d93c9];return _0x52952e;},_0x3d93(_0x2b2892,_0x230ed0);}import{UploadcareImageReplaceCommand as _0x1f6923}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x4e3b2a}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x4dcd45{static get[_0x5ef032(0x1dc)](){const _0x5a3954=_0x5ef032;return _0x5a3954(0x1e3);}static get[_0x5ef032(0x1e1)](){const _0xed3b69=_0x5ef032;return[_0x4e3b2a,_0x3bc9c1,_0xed3b69(0x1e2),_0xed3b69(0x1d6)];}static get[_0x5ef032(0x1d9)](){return!0x0;}static get[_0x5ef032(0x1d4)](){return!0x0;}[_0x5ef032(0x1e9)](){const _0xae7ae9=_0x5ef032,{editor:_0x5a58da}=this;_0x5a58da[_0xae7ae9(0x1e7)][_0xae7ae9(0x1e0)](_0xae7ae9(0x1d7),new _0x521267(_0x5a58da)),_0x5a58da[_0xae7ae9(0x1e7)][_0xae7ae9(0x1e0)](_0xae7ae9(0x1d5),new _0x1f6923(_0x5a58da));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1bbe50}from'ckeditor5/src/core.js';import{ButtonView as _0x5c84fa}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5c5bf1}from'ckeditor5/src/icons.js';import{createElement as _0x20307c}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 _0x1bbe50{['_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 _0x86f30c=this['editor'];_0x86f30c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x563454=>{const _0x22a123=_0x86f30c['commands']['get']('uploadcareImageEdit'),_0x2868e3=new _0x5c84fa(_0x563454),t=_0x563454['t'];return _0x2868e3['set']({'icon':_0x5c5bf1,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2868e3['bind']('isEnabled')['to'](_0x22a123),_0x2868e3['bind']('isOn')['to'](_0x22a123,'isActive'),this['listenTo'](_0x2868e3,'execute',()=>{_0x86f30c['execute']('uploadcareImageEdit'),_0x86f30c['editing']['view']['focus']();}),_0x2868e3;}),this['_initConfig']();}['_initConfig'](){const _0x3bfad6=_0x20307c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3bfad6),this['listenTo'](this['editor'],'destroy',()=>{_0x3bfad6['remove']();});}}
23
+ import{Plugin as _0x2154e7}from'ckeditor5/src/core.js';import{ButtonView as _0x36a98}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4db1ce}from'ckeditor5/src/icons.js';import{createElement as _0x2e4c46}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 _0x2154e7{['_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 _0x477ee7=this['editor'];_0x477ee7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3f5e00=>{const _0x4a7667=_0x477ee7['commands']['get']('uploadcareImageEdit'),_0x11d7f5=new _0x36a98(_0x3f5e00),t=_0x3f5e00['t'];return _0x11d7f5['set']({'icon':_0x4db1ce,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x11d7f5['bind']('isEnabled')['to'](_0x4a7667),_0x11d7f5['bind']('isOn')['to'](_0x4a7667,'isActive'),this['listenTo'](_0x11d7f5,'execute',()=>{_0x477ee7['execute']('uploadcareImageEdit'),_0x477ee7['editing']['view']['focus']();}),_0x11d7f5;}),this['_initConfig']();}['_initConfig'](){const _0x4d0dec=_0x2e4c46(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4d0dec),this['listenTo'](this['editor'],'destroy',()=>{_0x4d0dec['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2ba9(){var _0x51fa16=['28523990XEOixU','focusTracker','forwardCycle','div','334040tCyExM','6742458xFVdmY','focusCycler','635MXbKfQ','989188Cozabk','getFocusableElement','3TDNiUW','fire','1UeiYDC','1965320RCepfK','true','23898qjGlDf','createCollection','1679788nJsgCh','bindTemplate'];_0x2ba9=function(){return _0x51fa16;};return _0x2ba9();}var _0x3bfbd8=_0x5ecc;(function(_0x2d7db6,_0x14a09c){var _0x5b32ae=_0x5ecc,_0x5264ac=_0x2d7db6();while(!![]){try{var _0xf5d24=parseInt(_0x5b32ae(0x1c0))/0x1*(-parseInt(_0x5b32ae(0x1bc))/0x2)+parseInt(_0x5b32ae(0x1be))/0x3*(-parseInt(_0x5b32ae(0x1c5))/0x4)+parseInt(_0x5b32ae(0x1bb))/0x5*(-parseInt(_0x5b32ae(0x1c3))/0x6)+-parseInt(_0x5b32ae(0x1b8))/0x7+-parseInt(_0x5b32ae(0x1c1))/0x8+-parseInt(_0x5b32ae(0x1b9))/0x9+parseInt(_0x5b32ae(0x1c7))/0xa;if(_0xf5d24===_0x14a09c)break;else _0x5264ac['push'](_0x5264ac['shift']());}catch(_0x198a94){_0x5264ac['push'](_0x5264ac['shift']());}}}(_0x2ba9,0x5f15e));import{FocusTracker as _0x2c443d}from'ckeditor5/src/utils.js';import{View as _0x77bd46,FocusCycler as _0x5b74b4}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x5ecc(_0x4a2ee2,_0x147bff){var _0x2ba91f=_0x2ba9();return _0x5ecc=function(_0x5eccb2,_0x3eae64){_0x5eccb2=_0x5eccb2-0x1b6;var _0x400f85=_0x2ba91f[_0x5eccb2];return _0x400f85;},_0x5ecc(_0x4a2ee2,_0x147bff);}export class DialogFocusManagerView extends _0x77bd46{[_0x3bfbd8(0x1c8)];[_0x3bfbd8(0x1ba)];constructor(_0x196020){var _0xf7df20=_0x3bfbd8;super(_0x196020),this[_0xf7df20(0x1c8)]=new _0x2c443d(),this[_0xf7df20(0x1ba)]=new _0x5b74b4({'focusables':this[_0xf7df20(0x1c4)](),'focusTracker':this[_0xf7df20(0x1c8)]});}[_0x3bfbd8(0x1bd)](){var _0x30289b=_0x3bfbd8;return{'tag':_0x30289b(0x1b7),'attributes':{'aria-hidden':_0x30289b(0x1c2),'tabindex':'0'},'on':{'focus':this[_0x30289b(0x1c6)]['to'](()=>{var _0x1156d9=_0x30289b;this[_0x1156d9(0x1ba)][_0x1156d9(0x1bf)](_0x1156d9(0x1b6));})}};}}
23
+ var _0x53ec14=_0x25e3;function _0x25e3(_0xa802a6,_0x25f972){var _0x34a995=_0x34a9();return _0x25e3=function(_0x25e3c6,_0x9f782){_0x25e3c6=_0x25e3c6-0x19c;var _0x559792=_0x34a995[_0x25e3c6];return _0x559792;},_0x25e3(_0xa802a6,_0x25f972);}(function(_0x497a42,_0x3da17e){var _0x6416ea=_0x25e3,_0x4fdf57=_0x497a42();while(!![]){try{var _0x32b673=-parseInt(_0x6416ea(0x1ab))/0x1*(-parseInt(_0x6416ea(0x1ac))/0x2)+-parseInt(_0x6416ea(0x1a3))/0x3+-parseInt(_0x6416ea(0x1ae))/0x4+-parseInt(_0x6416ea(0x1a9))/0x5*(parseInt(_0x6416ea(0x19c))/0x6)+-parseInt(_0x6416ea(0x1a4))/0x7*(parseInt(_0x6416ea(0x19d))/0x8)+parseInt(_0x6416ea(0x1a7))/0x9+parseInt(_0x6416ea(0x1aa))/0xa;if(_0x32b673===_0x3da17e)break;else _0x4fdf57['push'](_0x4fdf57['shift']());}catch(_0x30deb9){_0x4fdf57['push'](_0x4fdf57['shift']());}}}(_0x34a9,0x65ef1));function _0x34a9(){var _0x3374f1=['focusCycler','div','92787ryEPzN','14mAvtzo','true','bindTemplate','1277982ENiiPm','getFocusableElement','5YgNJRM','15700260PeVFJv','1Akuutu','697054setsmE','focusTracker','1546304CjsxtX','3303522QPcpzm','2699752QIuOLU','createCollection','forwardCycle','fire'];_0x34a9=function(){return _0x3374f1;};return _0x34a9();}import{FocusTracker as _0x239b00}from'ckeditor5/src/utils.js';import{View as _0x5b9995,FocusCycler as _0x4c67cd}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x5b9995{[_0x53ec14(0x1ad)];[_0x53ec14(0x1a1)];constructor(_0x259448){var _0x422b81=_0x53ec14;super(_0x259448),this[_0x422b81(0x1ad)]=new _0x239b00(),this[_0x422b81(0x1a1)]=new _0x4c67cd({'focusables':this[_0x422b81(0x19e)](),'focusTracker':this[_0x422b81(0x1ad)]});}[_0x53ec14(0x1a8)](){var _0x181f43=_0x53ec14;return{'tag':_0x181f43(0x1a2),'attributes':{'aria-hidden':_0x181f43(0x1a5),'tabindex':'0'},'on':{'focus':this[_0x181f43(0x1a6)]['to'](()=>{var _0x1fdfbf=_0x181f43;this[_0x1fdfbf(0x1a1)][_0x1fdfbf(0x1a0)](_0x1fdfbf(0x19f));})}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x3a3b40,_0x462168){const _0x15296c=_0x10ae,_0x388ac7=_0x3a3b40();while(!![]){try{const _0x41e7fb=-parseInt(_0x15296c(0x1ce))/0x1*(parseInt(_0x15296c(0x1c4))/0x2)+-parseInt(_0x15296c(0x1b8))/0x3*(parseInt(_0x15296c(0x1b1))/0x4)+parseInt(_0x15296c(0x1a3))/0x5+parseInt(_0x15296c(0x1a8))/0x6*(parseInt(_0x15296c(0x1c7))/0x7)+parseInt(_0x15296c(0x1c9))/0x8+-parseInt(_0x15296c(0x1bf))/0x9+parseInt(_0x15296c(0x1b5))/0xa*(parseInt(_0x15296c(0x1ba))/0xb);if(_0x41e7fb===_0x462168)break;else _0x388ac7['push'](_0x388ac7['shift']());}catch(_0x1bfade){_0x388ac7['push'](_0x388ac7['shift']());}}}(_0x555d,0xa29d4));import{global as _0x3dbe96,DomEmitterMixin as _0x4e4872}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x203bf8){const _0x402c94=_0x10ae,_0x5c67f9=G(_0x203bf8);return _0x1e5426=>!(!_0x1e5426||!_0x1e5426['is'](_0x402c94(0x1d1),_0x402c94(0x1ae))&&!_0x1e5426['is'](_0x402c94(0x1d1),_0x402c94(0x1a0)))&&(!!_0x1e5426[_0x402c94(0x1bc)](_0x402c94(0x1c0))||!!_0x1e5426[_0x402c94(0x1bc)](_0x402c94(0x1d0))&&_0x5c67f9(_0x1e5426[_0x402c94(0x1cb)](_0x402c94(0x1d0))));}function _0x555d(){const _0xc8ac74=['listenTo','get','view','1185558LxTuSp','aspect-ratio','px)\x20100vw,\x20','7077LFeXXX','toViewElement','1444160WvmGba','removeStyle','getAttribute','join','(max-width:\x20','2NSoqRW','mapper','src','element','image/webp','document','plugins','window','some','location','baseURI','/-/resize/','imageInline','width','filter','5862155JTEIlT','findViewImgElement','setStyle','x/\x20','replace','4230lnvgTA','map','ImageUtils','addClass','origin','image-processing','imageBlock','isArray','stopListening','1505436BCFxQh','viewToDom','change','height','10330dSrSxV','function','load','3fyjEyX','editing','5104ZeKlcr','removeClass','hasAttribute','match','domConverter','2853297UUjOmb','uploadcareImageId'];_0x555d=function(){return _0xc8ac74;};return _0x555d();}export function getImageUrls(_0x239da2,_0x39d7e9){const _0x1d9fe2=_0x10ae,_0x2659e7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x1d9fe2(0x1a2)](_0x41f293=>_0x41f293<=_0x39d7e9)[_0x1d9fe2(0x1a9)](_0x5a4632=>_0x239da2[_0x1d9fe2(0x1a7)](/\/$/,'')+_0x1d9fe2(0x19f)+_0x5a4632+_0x1d9fe2(0x1a6)+_0x5a4632+'w');return{'imageFallbackUrl':_0x239da2,'imageSources':[{'srcset':_0x2659e7[_0x1d9fe2(0x1cc)](',\x20'),'sizes':_0x1d9fe2(0x1cd)+_0x39d7e9+_0x1d9fe2(0x1c6)+_0x39d7e9+'px','type':_0x1d9fe2(0x198)}]};}function _0x10ae(_0x39b969,_0x1959fb){const _0x555ddb=_0x555d();return _0x10ae=function(_0x10ae1c,_0x946f78){_0x10ae1c=_0x10ae1c-0x198;let _0x493825=_0x555ddb[_0x10ae1c];return _0x493825;},_0x10ae(_0x39b969,_0x1959fb);}export function getImageDimension(_0x322bd4,_0xbe028d,_0x12be3c){const _0x45dc05=_0x10ae,_0x5d7a3c=_0x322bd4[_0x45dc05(0x1bd)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5d7a3c?parseInt(_0x5d7a3c[0x1],0xa):_0xbe028d,'height':_0x5d7a3c?parseInt(_0x5d7a3c[0x2],0xa):_0x12be3c};}export function showImageProcessingIndicator(_0x32b9a8,_0x48964d){const _0x516154=_0x10ae,_0x40980d=new(_0x4e4872())(),_0x3c7568=_0x32b9a8[_0x516154(0x19a)][_0x516154(0x1c2)](_0x516154(0x1aa)),_0x288329=_0x32b9a8[_0x516154(0x1b9)][_0x516154(0x1cf)][_0x516154(0x1c8)](_0x48964d),_0x42fdf0=_0x3c7568[_0x516154(0x1a4)](_0x288329),_0x21e95e=_0x32b9a8[_0x516154(0x1b9)][_0x516154(0x1c3)][_0x516154(0x1be)][_0x516154(0x1b2)](_0x42fdf0),_0x7f8c5c=_0x48964d[_0x516154(0x1cb)](_0x516154(0x1a1)),_0x5028f3=_0x48964d[_0x516154(0x1cb)](_0x516154(0x1b4)),_0x19fd1b=_0x516154(0x1ad);_0x32b9a8[_0x516154(0x1b9)][_0x516154(0x1c3)][_0x516154(0x1b3)](_0x412e0d=>{const _0x328022=_0x516154;_0x412e0d[_0x328022(0x1ab)](_0x19fd1b,_0x288329),_0x412e0d[_0x328022(0x1a5)](_0x328022(0x1c5),_0x7f8c5c+'/'+_0x5028f3,_0x42fdf0);}),_0x40980d[_0x516154(0x1c1)](_0x21e95e,_0x516154(0x1b7),()=>{const _0x3f4f28=_0x516154;_0x40980d[_0x3f4f28(0x1b0)](_0x21e95e,_0x3f4f28(0x1b7)),_0x32b9a8[_0x3f4f28(0x1b9)][_0x3f4f28(0x1c3)][_0x3f4f28(0x1b3)](_0x5025d6=>{const _0x32db52=_0x3f4f28;_0x5025d6[_0x32db52(0x1bb)](_0x19fd1b,_0x288329),_0x5025d6[_0x32db52(0x1ca)](_0x32db52(0x1c5),_0x42fdf0);});});}function G(_0x45cafe){const _0x564531=_0x10ae;if(Array[_0x564531(0x1af)](_0x45cafe)){const _0x5ba4e2=_0x45cafe[_0x564531(0x1a9)](G);return _0x181cb5=>_0x5ba4e2[_0x564531(0x19c)](_0x274180=>_0x274180(_0x181cb5));}if(_0x564531(0x1ac)==_0x45cafe){const _0x57dc75=_0x3dbe96[_0x564531(0x19b)][_0x564531(0x19d)][_0x564531(0x1ac)];return _0x4d8556=>new URL(_0x4d8556,_0x3dbe96[_0x564531(0x199)][_0x564531(0x19e)])[_0x564531(0x1ac)]==_0x57dc75;}return _0x564531(0x1b6)==typeof _0x45cafe?_0x45cafe:_0x45cafe instanceof RegExp?_0x36d14e=>!(!_0x36d14e[_0x564531(0x1bd)](_0x45cafe)&&!_0x36d14e[_0x564531(0x1a7)](/^https?:\/\//,'')[_0x564531(0x1bd)](_0x45cafe)):()=>!0x1;}
23
+ function _0x900f(_0x2cdc84,_0x1926e9){const _0x58463e=_0x5846();return _0x900f=function(_0x900f49,_0x227a12){_0x900f49=_0x900f49-0xc9;let _0x36534d=_0x58463e[_0x900f49];return _0x36534d;},_0x900f(_0x2cdc84,_0x1926e9);}(function(_0x309000,_0x6ad9d7){const _0x531aea=_0x900f,_0x4134c0=_0x309000();while(!![]){try{const _0x424bfe=-parseInt(_0x531aea(0xf9))/0x1+parseInt(_0x531aea(0xde))/0x2+parseInt(_0x531aea(0xe4))/0x3+parseInt(_0x531aea(0xe1))/0x4*(parseInt(_0x531aea(0xf5))/0x5)+-parseInt(_0x531aea(0xef))/0x6+-parseInt(_0x531aea(0xdf))/0x7*(-parseInt(_0x531aea(0xed))/0x8)+-parseInt(_0x531aea(0xf1))/0x9*(parseInt(_0x531aea(0xdd))/0xa);if(_0x424bfe===_0x6ad9d7)break;else _0x4134c0['push'](_0x4134c0['shift']());}catch(_0x56aa29){_0x4134c0['push'](_0x4134c0['shift']());}}}(_0x5846,0x7654c));function _0x5846(){const _0x34b6ef=['listenTo','map','44060KMrxnS','166208vcgsGh','21CBhGPd','x/\x20','269636SuFMqR','px)\x20100vw,\x20','removeClass','2158467TdufzN','isArray','getAttribute','imageInline','hasAttribute','setStyle','editing','plugins','findViewImgElement','1373432xOxvHx','toViewElement','4743444HIqeVV','view','1377QDWcXg','ImageUtils','domConverter','change','65OxcVwn','replace','image/webp','viewToDom','244571RJGVYr','uploadcareImageId','match','addClass','get','aspect-ratio','function','baseURI','mapper','stopListening','document','height','element','removeStyle','src','origin','/-/resize/','join','window','imageBlock','some','filter','location','width','(max-width:\x20','load','image-processing'];_0x5846=function(){return _0x34b6ef;};return _0x5846();}import{global as _0x22da9f,DomEmitterMixin as _0x3d581e}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x14f235){const _0xf59feb=_0x900f,_0x136c45=R(_0x14f235);return _0x5e94dd=>!(!_0x5e94dd||!_0x5e94dd['is'](_0xf59feb(0xcc),_0xf59feb(0xd3))&&!_0x5e94dd['is'](_0xf59feb(0xcc),_0xf59feb(0xe7)))&&(!!_0x5e94dd[_0xf59feb(0xe8)](_0xf59feb(0xfa))||!!_0x5e94dd[_0xf59feb(0xe8)](_0xf59feb(0xce))&&_0x136c45(_0x5e94dd[_0xf59feb(0xe6)](_0xf59feb(0xce))));}export function getImageUrls(_0xc0a0cd,_0xb4cf01){const _0x1a1596=_0x900f,_0x3b5bb4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x1a1596(0xd5)](_0x1cd79e=>_0x1cd79e<=_0xb4cf01)[_0x1a1596(0xdc)](_0x529221=>_0xc0a0cd[_0x1a1596(0xf6)](/\/$/,'')+_0x1a1596(0xd0)+_0x529221+_0x1a1596(0xe0)+_0x529221+'w');return{'imageFallbackUrl':_0xc0a0cd,'imageSources':[{'srcset':_0x3b5bb4[_0x1a1596(0xd1)](',\x20'),'sizes':_0x1a1596(0xd8)+_0xb4cf01+_0x1a1596(0xe2)+_0xb4cf01+'px','type':_0x1a1596(0xf7)}]};}export function getImageDimension(_0x5ee98a,_0x37c317,_0x3a40cb){const _0x26b7c1=_0x900f,_0x31b67d=_0x5ee98a[_0x26b7c1(0xfb)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x31b67d?parseInt(_0x31b67d[0x1],0xa):_0x37c317,'height':_0x31b67d?parseInt(_0x31b67d[0x2],0xa):_0x3a40cb};}export function showImageProcessingIndicator(_0x1af694,_0x3785d1){const _0x536684=_0x900f,_0x56f701=new(_0x3d581e())(),_0x7bcca7=_0x1af694[_0x536684(0xeb)][_0x536684(0xfd)](_0x536684(0xf2)),_0x269b25=_0x1af694[_0x536684(0xea)][_0x536684(0x101)][_0x536684(0xee)](_0x3785d1),_0x3ff18c=_0x7bcca7[_0x536684(0xec)](_0x269b25),_0x213a48=_0x1af694[_0x536684(0xea)][_0x536684(0xf0)][_0x536684(0xf3)][_0x536684(0xf8)](_0x3ff18c),_0x14016c=_0x3785d1[_0x536684(0xe6)](_0x536684(0xd7)),_0x1e6166=_0x3785d1[_0x536684(0xe6)](_0x536684(0xcb)),_0x2be8d5=_0x536684(0xda);_0x1af694[_0x536684(0xea)][_0x536684(0xf0)][_0x536684(0xf4)](_0xa2008f=>{const _0x42efaf=_0x536684;_0xa2008f[_0x42efaf(0xfc)](_0x2be8d5,_0x269b25),_0xa2008f[_0x42efaf(0xe9)](_0x42efaf(0xfe),_0x14016c+'/'+_0x1e6166,_0x3ff18c);}),_0x56f701[_0x536684(0xdb)](_0x213a48,_0x536684(0xd9),()=>{const _0x5820bd=_0x536684;_0x56f701[_0x5820bd(0xc9)](_0x213a48,_0x5820bd(0xd9)),_0x1af694[_0x5820bd(0xea)][_0x5820bd(0xf0)][_0x5820bd(0xf4)](_0x40a637=>{const _0x4f823a=_0x5820bd;_0x40a637[_0x4f823a(0xe3)](_0x2be8d5,_0x269b25),_0x40a637[_0x4f823a(0xcd)](_0x4f823a(0xfe),_0x3ff18c);});});}function R(_0x59db21){const _0x24d6e9=_0x900f;if(Array[_0x24d6e9(0xe5)](_0x59db21)){const _0x5996e7=_0x59db21[_0x24d6e9(0xdc)](R);return _0xee4906=>_0x5996e7[_0x24d6e9(0xd4)](_0x7b3f1=>_0x7b3f1(_0xee4906));}if(_0x24d6e9(0xcf)==_0x59db21){const _0x281060=_0x22da9f[_0x24d6e9(0xd2)][_0x24d6e9(0xd6)][_0x24d6e9(0xcf)];return _0x45c3b8=>new URL(_0x45c3b8,_0x22da9f[_0x24d6e9(0xca)][_0x24d6e9(0x100)])[_0x24d6e9(0xcf)]==_0x281060;}return _0x24d6e9(0xff)==typeof _0x59db21?_0x59db21:_0x59db21 instanceof RegExp?_0x244fd0=>!(!_0x244fd0[_0x24d6e9(0xfb)](_0x59db21)&&!_0x244fd0[_0x24d6e9(0xf6)](/^https?:\/\//,'')[_0x24d6e9(0xfb)](_0x59db21)):()=>!0x1;}