@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251216.0 → 0.0.0-nightly-20251217.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 _0x452e3e,ObservableMixin as _0xf2d011}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0xd085a8}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x13fd63}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x5b1d90}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x3418ce}from'../../utils/uploadutils.js';import{getImageUrls as _0x558feb,getImageDimension as _0x1a0aa3}from'../../utils/editingutils.js';import{isAncestor as _0x21ba1e}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0xf2d011(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x39d4e4,_0x1f2cb4,_0x131eba){super(),this['_editor']=_0x39d4e4,this['_dialog']=_0x1f2cb4,this['_imageElement']=_0x131eba,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 _0x11e901=this['_imageElement'],_0x298580=_0x11e901['getAttribute']('uploadcareImageId'),_0x2921ff=_0x11e901['getAttribute']('src');if(_0x298580)await this['_loadImageInfo'](_0x298580,_0x2921ff);else{if(this['_imageCache']['has'](_0x2921ff)){const _0x59366d=this['_imageCache']['get'](_0x2921ff);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x59366d['url'],this['imageDimension']=_0x59366d['dimension'],this['imageId']=_0x59366d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x95aba0}=this['_editor'],t=_0x95aba0['t'],_0xb1e3a9=new _0x5b1d90(_0x95aba0,this['imageStatus'],this['_attributes']);_0xb1e3a9['bind']('status')['to'](this,'imageStatus'),_0xb1e3a9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xb1e3a9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xb1e3a9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xb1e3a9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x13fd63,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xb1e3a9,'position':_0xd085a8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xb1e3a9['focus']();},'onHide':()=>{_0xb1e3a9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x146127=>!_0x21ba1e(_0x146127,_0xb1e3a9['element'])}});}['_loadImageInfo'](_0x2fe454,_0x1118dd){return _0x3418ce['getInfo'](_0x2fe454,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x85227a=>{const {width:_0x5c9c26,height:_0x5983c2}=_0x85227a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1118dd,this['imageDimension']={'width':_0x5c9c26,'height':_0x5983c2},this['imageId']=_0x2fe454;})['catch'](_0x37a840=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x37a840['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x19fe94,_0x3907f3){return this['_getImageAsFile'](_0x19fe94)['then'](_0x8458dd=>_0x3418ce['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':_0x3907f3['signal'],'file':_0x8458dd,'onProgress':_0x327f45=>{_0x327f45&&_0x327f45['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x327f45['value']));}}))['then'](_0x22fee3=>{const {width:_0x58c00d,height:_0x214c69}=_0x22fee3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x22fee3['cdnUrl'],this['imageDimension']={'width':_0x58c00d,'height':_0x214c69},this['imageId']=_0x22fee3['uuid'],this['imageUploadProgress']=null;const _0x287e83=_0x19fe94['getAttribute']('src');this['_imageCache']['set'](_0x287e83,{'id':_0x22fee3['uuid'],'url':_0x22fee3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2dfd43=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2dfd43['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5549c9,_0xed21c2){_0x5549c9['on']('apply',(_0x28ee00,_0x45d497)=>{this['_replaceImage'](_0xed21c2,_0x45d497['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5549c9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5549c9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5f3e2c,_0x4e60c8,_0x135cde){const _0x310624=this['_editor'],{width:_0x33c37c,height:_0x1de89a}=_0x1a0aa3(_0x4e60c8,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3c6fec,imageSources:_0x39c536}=_0x558feb(_0x4e60c8,_0x33c37c);_0x310624['model']['change'](_0x491f96=>{if('$graveyard'===_0x5f3e2c['root']['rootName']){_0x310624['execute']('insertImage',{'imageType':_0x5f3e2c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5f3e2c['getAttributes']()),'uploadcareImageId':_0x135cde,'src':_0x3c6fec,'sources':_0x39c536,'width':_0x33c37c,'height':_0x1de89a}});const _0x51ed77=_0x5f3e2c['getChildren']();_0x5f3e2c=_0x310624['model']['document']['selection']['getSelectedElement']();for(const _0x32aa6f of _0x51ed77)_0x491f96['append'](_0x491f96['cloneElement'](_0x32aa6f),_0x5f3e2c);}else _0x491f96['setSelection'](_0x5f3e2c,'on'),_0x310624['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5f3e2c['getAttributes']()),'uploadcareImageId':_0x135cde,'src':_0x3c6fec,'sources':_0x39c536,'width':_0x33c37c,'height':_0x1de89a},_0x5f3e2c);_0x491f96['setSelection'](_0x5f3e2c,'on');});}async['_getImageAsFile'](_0x48cf1d){const _0x3cc0dd=_0x452e3e['window'],_0x562818=_0x452e3e['document']['location']['href'],_0x5804ed=new _0x3cc0dd['URL'](_0x48cf1d['getAttribute']('src'),_0x562818);if('data:'===_0x5804ed['protocol']){const _0x2c0626=_0x5804ed['href']['split'](','),_0x3bb5ca=_0x2c0626[0x0]['match'](/:(.*?);/)[0x1],_0x58e4ca=_0x3bb5ca['split']('/')[0x1],_0x271981=_0x3cc0dd['atob'](_0x2c0626[_0x2c0626['length']-0x1]);let _0x5f0ebb=_0x271981['length'];const _0x2974a6=new _0x3cc0dd['Uint8Array'](_0x5f0ebb);for(;_0x5f0ebb--;)_0x2974a6[_0x5f0ebb]=_0x271981['charCodeAt'](_0x5f0ebb);return new _0x3cc0dd['File']([_0x2974a6],'image.'+_0x58e4ca,{'type':_0x3bb5ca});}const _0x5c3481=_0x5804ed['href']['split']('/'),_0x4ebd23=_0x5c3481[_0x5c3481['length']-0x1],_0xecd7d8=_0x4ebd23['split']('.')[0x1];return _0x3cc0dd['fetch'](_0x5804ed['href'])['then'](_0x261ff1=>_0x261ff1['clone']()['blob']())['then'](_0x5d2530=>new _0x3cc0dd['File']([_0x5d2530],_0x4ebd23,{'type':'image/'+_0xecd7d8}));}}
23
+ import{global as _0x5ba72c,ObservableMixin as _0x41fba2}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x50e72c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x10c3d6}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4b28cb}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x54d6e0}from'../../utils/uploadutils.js';import{getImageUrls as _0x536003,getImageDimension as _0x227705}from'../../utils/editingutils.js';import{isAncestor as _0x5ee0cc}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x41fba2(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1d9262,_0x46dc23,_0x29f300){super(),this['_editor']=_0x1d9262,this['_dialog']=_0x46dc23,this['_imageElement']=_0x29f300,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 _0x29799f=this['_imageElement'],_0xe2a80d=_0x29799f['getAttribute']('uploadcareImageId'),_0x1d3ba1=_0x29799f['getAttribute']('src');if(_0xe2a80d)await this['_loadImageInfo'](_0xe2a80d,_0x1d3ba1);else{if(this['_imageCache']['has'](_0x1d3ba1)){const _0x4038d5=this['_imageCache']['get'](_0x1d3ba1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4038d5['url'],this['imageDimension']=_0x4038d5['dimension'],this['imageId']=_0x4038d5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x140e0e}=this['_editor'],t=_0x140e0e['t'],_0x5f25fe=new _0x4b28cb(_0x140e0e,this['imageStatus'],this['_attributes']);_0x5f25fe['bind']('status')['to'](this,'imageStatus'),_0x5f25fe['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5f25fe['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5f25fe['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5f25fe,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x10c3d6,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5f25fe,'position':_0x50e72c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5f25fe['focus']();},'onHide':()=>{_0x5f25fe['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x231964=>!_0x5ee0cc(_0x231964,_0x5f25fe['element'])}});}['_loadImageInfo'](_0x4b833d,_0x1cc84a){return _0x54d6e0['getInfo'](_0x4b833d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xa84145=>{const {width:_0x1a199d,height:_0x64fdf1}=_0xa84145['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1cc84a,this['imageDimension']={'width':_0x1a199d,'height':_0x64fdf1},this['imageId']=_0x4b833d;})['catch'](_0x133eaf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x133eaf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1fe68f,_0x5380fa){return this['_getImageAsFile'](_0x1fe68f)['then'](_0x7915d6=>_0x54d6e0['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':_0x5380fa['signal'],'file':_0x7915d6,'onProgress':_0x44fbf0=>{_0x44fbf0&&_0x44fbf0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x44fbf0['value']));}}))['then'](_0xcd7cff=>{const {width:_0x4a42dc,height:_0x5487c9}=_0xcd7cff['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xcd7cff['cdnUrl'],this['imageDimension']={'width':_0x4a42dc,'height':_0x5487c9},this['imageId']=_0xcd7cff['uuid'],this['imageUploadProgress']=null;const _0x39a57e=_0x1fe68f['getAttribute']('src');this['_imageCache']['set'](_0x39a57e,{'id':_0xcd7cff['uuid'],'url':_0xcd7cff['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3d2df4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3d2df4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xc12ffd,_0x236ed0){_0xc12ffd['on']('apply',(_0x402685,_0x27a186)=>{this['_replaceImage'](_0x236ed0,_0x27a186['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xc12ffd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xc12ffd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2b62c5,_0x5d9671,_0x2f2968){const _0x4815ba=this['_editor'],{width:_0x453560,height:_0x4bd6d7}=_0x227705(_0x5d9671,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1abb78,imageSources:_0x411fa7}=_0x536003(_0x5d9671,_0x453560);_0x4815ba['model']['change'](_0x50c6e3=>{if('$graveyard'===_0x2b62c5['root']['rootName']){_0x4815ba['execute']('insertImage',{'imageType':_0x2b62c5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2b62c5['getAttributes']()),'uploadcareImageId':_0x2f2968,'src':_0x1abb78,'sources':_0x411fa7,'width':_0x453560,'height':_0x4bd6d7}});const _0x1ad8a1=_0x2b62c5['getChildren']();_0x2b62c5=_0x4815ba['model']['document']['selection']['getSelectedElement']();for(const _0xa814e5 of _0x1ad8a1)_0x50c6e3['append'](_0x50c6e3['cloneElement'](_0xa814e5),_0x2b62c5);}else _0x50c6e3['setSelection'](_0x2b62c5,'on'),_0x4815ba['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2b62c5['getAttributes']()),'uploadcareImageId':_0x2f2968,'src':_0x1abb78,'sources':_0x411fa7,'width':_0x453560,'height':_0x4bd6d7},_0x2b62c5);_0x50c6e3['setSelection'](_0x2b62c5,'on');});}async['_getImageAsFile'](_0x1dbc5c){const _0x36e58a=_0x5ba72c['window'],_0x12c44f=_0x5ba72c['document']['location']['href'],_0x1df053=new _0x36e58a['URL'](_0x1dbc5c['getAttribute']('src'),_0x12c44f);if('data:'===_0x1df053['protocol']){const _0x47057c=_0x1df053['href']['split'](','),_0xa9c03=_0x47057c[0x0]['match'](/:(.*?);/)[0x1],_0x4ad4e4=_0xa9c03['split']('/')[0x1],_0x21c06c=_0x36e58a['atob'](_0x47057c[_0x47057c['length']-0x1]);let _0x24f5e5=_0x21c06c['length'];const _0x265d04=new _0x36e58a['Uint8Array'](_0x24f5e5);for(;_0x24f5e5--;)_0x265d04[_0x24f5e5]=_0x21c06c['charCodeAt'](_0x24f5e5);return new _0x36e58a['File']([_0x265d04],'image.'+_0x4ad4e4,{'type':_0xa9c03});}const _0x248339=_0x1df053['href']['split']('/'),_0x3b67e2=_0x248339[_0x248339['length']-0x1],_0x352b3d=_0x3b67e2['split']('.')[0x1];return _0x36e58a['fetch'](_0x1df053['href'])['then'](_0x492c74=>_0x492c74['clone']()['blob']())['then'](_0x3708b7=>new _0x36e58a['File']([_0x3708b7],_0x3b67e2,{'type':'image/'+_0x352b3d}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x26655c,_0x375fdc){const _0x488170=_0x55d5,_0x4d4f3d=_0x26655c();while(!![]){try{const _0x4d482c=parseInt(_0x488170(0xf7))/0x1+-parseInt(_0x488170(0xef))/0x2*(parseInt(_0x488170(0xe9))/0x3)+-parseInt(_0x488170(0xea))/0x4+-parseInt(_0x488170(0xf5))/0x5*(parseInt(_0x488170(0xe4))/0x6)+-parseInt(_0x488170(0xeb))/0x7*(parseInt(_0x488170(0xee))/0x8)+-parseInt(_0x488170(0xe6))/0x9*(parseInt(_0x488170(0xf1))/0xa)+parseInt(_0x488170(0xe8))/0xb*(parseInt(_0x488170(0xf3))/0xc);if(_0x4d482c===_0x375fdc)break;else _0x4d4f3d['push'](_0x4d4f3d['shift']());}catch(_0x58213d){_0x4d4f3d['push'](_0x4d4f3d['shift']());}}}(_0x4704,0x35260));import{View as _0x230319}from'ckeditor5/src/ui.js';function _0x55d5(_0x18a6fe,_0x597ef9){const _0x4704eb=_0x4704();return _0x55d5=function(_0x55d5ba,_0x56f9bc){_0x55d5ba=_0x55d5ba-0xe4;let _0xe34fd8=_0x4704eb[_0x55d5ba];return _0xe34fd8;},_0x55d5(_0x18a6fe,_0x597ef9);}export class UploadcareImageEditFormEditingView extends _0x230319{constructor(_0x6a965c,_0x403610){const _0x5999b7=_0x55d5;super(_0x6a965c);const _0x3b0820=this[_0x5999b7(0xe7)];this[_0x5999b7(0xed)](_0x5999b7(0xf2),''),this[_0x5999b7(0xe5)]({'tag':_0x5999b7(0xf0),'attributes':{..._0x403610,'class':[_0x5999b7(0xec),_0x5999b7(0xf6)],'ctx-name':_0x5999b7(0xf4),'cdn-url':_0x3b0820['to'](_0x5999b7(0xf2))}});}}function _0x4704(){const _0x12d36d=['9IfiPGw','bindTemplate','889933MSpbUB','10167nnHgur','234708nXUroF','1918cjDjBg','uc-light','set','240oqxnIW','246ALzqlp','uc-cloud-image-editor','3511960ZSqbmj','imageSrc','156YUjPox','image-edit','1848135pIIKyn','ck-uploadcare-theme','370524MGNNND','6IHpwBv','setTemplate'];_0x4704=function(){return _0x12d36d;};return _0x4704();}
23
+ function _0x37df(_0x5564be,_0x13e217){const _0x12f927=_0x12f9();return _0x37df=function(_0x37dfde,_0xcb059f){_0x37dfde=_0x37dfde-0x65;let _0x57bc99=_0x12f927[_0x37dfde];return _0x57bc99;},_0x37df(_0x5564be,_0x13e217);}function _0x12f9(){const _0x1f9759=['set','8UaZGlP','uc-cloud-image-editor','65wZpIsb','1416216CnnSza','image-edit','6158940gtATQj','uc-light','48udBIJO','ck-uploadcare-theme','1682933fySbKk','44yhlqRi','677457fAkiXc','54046HJaHaT','imageSrc','bindTemplate','797736vFJxDL','23SQBipi','27282FwRJFq','setTemplate'];_0x12f9=function(){return _0x1f9759;};return _0x12f9();}(function(_0x3d707d,_0x2b25af){const _0x48c3e0=_0x37df,_0x4bb9ac=_0x3d707d();while(!![]){try{const _0x330a75=parseInt(_0x48c3e0(0x6b))/0x1*(-parseInt(_0x48c3e0(0x67))/0x2)+-parseInt(_0x48c3e0(0x6a))/0x3*(-parseInt(_0x48c3e0(0x6f))/0x4)+parseInt(_0x48c3e0(0x71))/0x5*(parseInt(_0x48c3e0(0x6c))/0x6)+-parseInt(_0x48c3e0(0x78))/0x7+parseInt(_0x48c3e0(0x76))/0x8*(-parseInt(_0x48c3e0(0x66))/0x9)+parseInt(_0x48c3e0(0x74))/0xa+-parseInt(_0x48c3e0(0x65))/0xb*(-parseInt(_0x48c3e0(0x72))/0xc);if(_0x330a75===_0x2b25af)break;else _0x4bb9ac['push'](_0x4bb9ac['shift']());}catch(_0x19351f){_0x4bb9ac['push'](_0x4bb9ac['shift']());}}}(_0x12f9,0x59303));import{View as _0x1ece77}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x1ece77{constructor(_0x2ba3f8,_0x1ce495){const _0x3024bb=_0x37df;super(_0x2ba3f8);const _0x24855c=this[_0x3024bb(0x69)];this[_0x3024bb(0x6e)](_0x3024bb(0x68),''),this[_0x3024bb(0x6d)]({'tag':_0x3024bb(0x70),'attributes':{..._0x1ce495,'class':[_0x3024bb(0x75),_0x3024bb(0x77)],'ctx-name':_0x3024bb(0x73),'cdn-url':_0x24855c['to'](_0x3024bb(0x68))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x432942}from'ckeditor5/src/icons.js';import{ButtonView as _0x98a35f,IconView as _0x3dd8c8,View as _0x22d470}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x22d470{constructor(_0x122cb5){super(_0x122cb5);const t=_0x122cb5['t'];this['set']('errorType',null);const _0x470fd6=new _0x98a35f(_0x122cb5);_0x470fd6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x470fd6['withText']=!0x0,_0x470fd6['class']='ck-button-action',_0x470fd6['on']('execute',()=>{this['fire']('retry');}),_0x470fd6['bind']('isVisible')['to'](this,'errorType',_0x49177d=>'NotFound'!==_0x49177d);const _0x55c5c1=new _0x3dd8c8();_0x55c5c1['content']=_0x432942,_0x55c5c1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2b32c8=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':[_0x55c5c1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2b32c8['to']('errorType',_0x21e023=>t('NotFound'!==_0x21e023?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x470fd6]},{'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 _0x57afb2}from'ckeditor5/src/icons.js';import{ButtonView as _0x20edbf,IconView as _0x453698,View as _0x51f20d}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x51f20d{constructor(_0x1e2f67){super(_0x1e2f67);const t=_0x1e2f67['t'];this['set']('errorType',null);const _0x25c35d=new _0x20edbf(_0x1e2f67);_0x25c35d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x25c35d['withText']=!0x0,_0x25c35d['class']='ck-button-action',_0x25c35d['on']('execute',()=>{this['fire']('retry');}),_0x25c35d['bind']('isVisible')['to'](this,'errorType',_0x2453da=>'NotFound'!==_0x2453da);const _0x8c20fb=new _0x453698();_0x8c20fb['content']=_0x57afb2,_0x8c20fb['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x11c7a6=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':[_0x8c20fb,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x11c7a6['to']('errorType',_0x5d535e=>t('NotFound'!==_0x5d535e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x25c35d]},{'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 _0x3127cf,View as _0x310f7f}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x310f7f{constructor(_0x597f58){super(_0x597f58);const t=_0x597f58['t'],_0x3931e7=this['bindTemplate'],_0xc02b9b=new _0x3127cf();_0xc02b9b['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':[_0xc02b9b,{'text':_0x3931e7['to']('imageUploadProgress',_0x5a5bb0=>t('Loading\x20image...')+'\x20('+(_0x5a5bb0||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 _0x40eaf9,View as _0x115346}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x115346{constructor(_0x303ff9){super(_0x303ff9);const t=_0x303ff9['t'],_0x896494=this['bindTemplate'],_0x756463=new _0x40eaf9();_0x756463['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':[_0x756463,{'text':_0x896494['to']('imageUploadProgress',_0x2aad1c=>t('Loading\x20image...')+'\x20('+(_0x2aad1c||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 _0x1adf(_0x23eda3,_0x59a430){const _0x898d88=_0x898d();return _0x1adf=function(_0x1adfad,_0x40af28){_0x1adfad=_0x1adfad-0x69;let _0x438a76=_0x898d88[_0x1adfad];return _0x438a76;},_0x1adf(_0x23eda3,_0x59a430);}const _0x46563c=_0x1adf;function _0x898d(){const _0x14a387=['setTemplate','clear','render','_addErrorViewListeners','819092kvoWjE','add','div','_addUploadcareImageEditorListeners','218961QqFZMz','retry','disconnect','ck-reset_all-excluded','querySelector','fire','status','cancel','change:status','target','219808UUQzKu','nodeName','uploading','_setView','addEventListener','apply','element','166018slWxiR','_items','654143hEiLHq','_loadingView','detail','focus','907614idvOrO','_errorView','10NnAeiq','getFocusableElement','addMany','_focusableView','cdnUrl','set','uc-cloud-image-editor','_editingView','once','88922aTwqbo','toLowerCase','addedNodes','error','observe','createCollection','filter','_waitForImageEditorComponent','ck-uploadcare-form','ready','length','6wzCuqK','5nUDNky'];_0x898d=function(){return _0x14a387;};return _0x898d();}(function(_0x643866,_0x2a02ae){const _0x53e184=_0x1adf,_0x59d044=_0x643866();while(!![]){try{const _0x3261d2=parseInt(_0x53e184(0x92))/0x1+-parseInt(_0x53e184(0x6c))/0x2*(-parseInt(_0x53e184(0x77))/0x3)+-parseInt(_0x53e184(0x7d))/0x4+-parseInt(_0x53e184(0x78))/0x5*(-parseInt(_0x53e184(0x98))/0x6)+-parseInt(_0x53e184(0x94))/0x7+parseInt(_0x53e184(0x8b))/0x8+parseInt(_0x53e184(0x81))/0x9*(-parseInt(_0x53e184(0x9a))/0xa);if(_0x3261d2===_0x2a02ae)break;else _0x59d044['push'](_0x59d044['shift']());}catch(_0x4ed805){_0x59d044['push'](_0x59d044['shift']());}}}(_0x898d,0x1b21e));import{View as _0x1e39a8}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x2bd4d4}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x422535}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x122b04}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x280cba}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x280cba{[_0x46563c(0x93)];[_0x46563c(0x95)];[_0x46563c(0x99)];[_0x46563c(0x6a)];[_0x46563c(0x9d)];constructor(_0x148894,_0x371edc,_0x3682dc){const _0x43dfc5=_0x46563c;super(_0x148894),this[_0x43dfc5(0x93)]=this[_0x43dfc5(0x71)](),this[_0x43dfc5(0x95)]=new _0x2bd4d4(_0x148894),this[_0x43dfc5(0x99)]=new _0x422535(_0x148894),this[_0x43dfc5(0x6a)]=new _0x122b04(_0x148894,_0x3682dc),this[_0x43dfc5(0x9d)]=new _0x1e39a8(_0x148894),this[_0x43dfc5(0x9d)][_0x43dfc5(0x79)](this[_0x43dfc5(0x9b)]()),this[_0x43dfc5(0x9f)](_0x43dfc5(0x87),_0x371edc),this[_0x43dfc5(0x79)]({'tag':_0x43dfc5(0x7f),'attributes':{'class':['ck',_0x43dfc5(0x84),_0x43dfc5(0x74)],'tabindex':'-1'},'children':this[_0x43dfc5(0x93)]}),this[_0x43dfc5(0x8e)](),this[_0x43dfc5(0x6b)](_0x43dfc5(0x7b),()=>{const _0x1368e0=_0x43dfc5;this[_0x1368e0(0x73)](this[_0x1368e0(0x91)],_0x398ddf=>{const _0x3547e8=_0x1368e0;this[_0x3547e8(0x80)](_0x398ddf);});}),this['on'](_0x43dfc5(0x89),()=>{const _0x19fad5=_0x43dfc5;this[_0x19fad5(0x8e)]();}),this[_0x43dfc5(0x7c)]();}[_0x46563c(0x97)](){const _0x4226a5=_0x46563c;this[_0x4226a5(0x91)][_0x4226a5(0x97)]();}[_0x46563c(0x8e)](){const _0xf5c611=_0x46563c;switch(this[_0xf5c611(0x93)][_0xf5c611(0x7a)](),this[_0xf5c611(0x87)]){case _0xf5c611(0x8d):this[_0xf5c611(0x93)][_0xf5c611(0x7e)](this[_0xf5c611(0x95)]);break;case _0xf5c611(0x6f):this[_0xf5c611(0x93)][_0xf5c611(0x7e)](this[_0xf5c611(0x99)]);break;case _0xf5c611(0x75):this[_0xf5c611(0x93)][_0xf5c611(0x9c)]([this[_0xf5c611(0x6a)],this[_0xf5c611(0x9d)]]);}}[_0x46563c(0x73)](_0x3cb77c,_0xe1502b){const _0x10aebd=_0x46563c,_0x2ef71d=_0x10aebd(0x69),_0x2bb553=_0x3cb77c[_0x10aebd(0x85)](_0x2ef71d);if(_0x2bb553)return _0xe1502b(_0x2bb553);const _0x153702=new MutationObserver(_0x4e64ef=>{const _0x3a4e6d=_0x10aebd,_0x2b0041=_0x4e64ef[_0x3a4e6d(0x72)](_0x507feb=>_0x507feb[_0x3a4e6d(0x8a)]===_0x3cb77c&&_0x507feb[_0x3a4e6d(0x6e)][_0x3a4e6d(0x76)]>0x0&&_0x507feb[_0x3a4e6d(0x6e)][0x0][_0x3a4e6d(0x8c)][_0x3a4e6d(0x6d)]()===_0x2ef71d);_0x2b0041[_0x3a4e6d(0x76)]&&(_0x153702[_0x3a4e6d(0x83)](),_0xe1502b(_0x2b0041[0x0][_0x3a4e6d(0x6e)][0x0]));});_0x153702[_0x10aebd(0x70)](_0x3cb77c,{'childList':!0x0,'subtree':!0x0});}[_0x46563c(0x80)](_0x3c8692){const _0xe87700=_0x46563c;_0x3c8692[_0xe87700(0x8f)](_0xe87700(0x90),_0x1ff683=>{const _0x53fa25=_0xe87700;this[_0x53fa25(0x86)](_0x53fa25(0x90),{'imageSrc':_0x1ff683[_0x53fa25(0x96)][_0x53fa25(0x9e)]});}),_0x3c8692[_0xe87700(0x8f)](_0xe87700(0x88),()=>{const _0x420ea7=_0xe87700;this[_0x420ea7(0x86)](_0x420ea7(0x88));});}[_0x46563c(0x7c)](){const _0x3d7eb0=_0x46563c;this[_0x3d7eb0(0x99)]['on'](_0x3d7eb0(0x82),()=>{const _0x24e4d5=_0x3d7eb0;this[_0x24e4d5(0x86)](_0x24e4d5(0x82));});}}
23
+ const _0x3dfa2c=_0x423d;function _0x3f3e(){const _0x4533fd=['setTemplate','div','ready','206432HxrvMJ','_addErrorViewListeners','_waitForImageEditorComponent','focus','add','nodeName','ck-reset_all-excluded','change:status','filter','status','createCollection','_addUploadcareImageEditorListeners','toLowerCase','_errorView','357sBvVpP','_items','2876430kIAvtj','_setView','querySelector','_editingView','cdnUrl','153580eORuwN','apply','element','9kwUDJp','clear','uc-cloud-image-editor','disconnect','uploading','14276911sKzIJG','305100kNeJSe','target','_focusableView','getFocusableElement','2980vzHryw','retry','ck-uploadcare-form','error','cancel','fire','render','14JVfEaa','addedNodes','observe','detail','once','_loadingView','addEventListener','4gxEfWC','345688IsnMDu','addMany','set','length'];_0x3f3e=function(){return _0x4533fd;};return _0x3f3e();}(function(_0x404feb,_0x30230e){const _0x58bf1d=_0x423d,_0x342a4c=_0x404feb();while(!![]){try{const _0x2ac305=parseInt(_0x58bf1d(0x1c6))/0x1*(-parseInt(_0x58bf1d(0x1f6))/0x2)+parseInt(_0x58bf1d(0x1d4))/0x3*(parseInt(_0x58bf1d(0x1e8))/0x4)+-parseInt(_0x58bf1d(0x1d6))/0x5+parseInt(_0x58bf1d(0x1e4))/0x6+parseInt(_0x58bf1d(0x1ef))/0x7*(-parseInt(_0x58bf1d(0x1f7))/0x8)+parseInt(_0x58bf1d(0x1de))/0x9*(-parseInt(_0x58bf1d(0x1db))/0xa)+parseInt(_0x58bf1d(0x1e3))/0xb;if(_0x2ac305===_0x30230e)break;else _0x342a4c['push'](_0x342a4c['shift']());}catch(_0x1ec4d1){_0x342a4c['push'](_0x342a4c['shift']());}}}(_0x3f3e,0x54d54));import{View as _0x57c560}from'ckeditor5/src/ui.js';function _0x423d(_0x4cd116,_0x52c7e7){const _0x3f3e54=_0x3f3e();return _0x423d=function(_0x423d79,_0x295c28){_0x423d79=_0x423d79-0x1c5;let _0x1ea2e2=_0x3f3e54[_0x423d79];return _0x1ea2e2;},_0x423d(_0x4cd116,_0x52c7e7);}import{UploadcareImageEditFormLoadingView as _0x123e3b}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x509e66}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x4377ff}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x58591f}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x58591f{[_0x3dfa2c(0x1d5)];[_0x3dfa2c(0x1f4)];[_0x3dfa2c(0x1d3)];[_0x3dfa2c(0x1d9)];[_0x3dfa2c(0x1e6)];constructor(_0x127ef3,_0x4d0ff0,_0x11896e){const _0x27a53b=_0x3dfa2c;super(_0x127ef3),this[_0x27a53b(0x1d5)]=this[_0x27a53b(0x1d0)](),this[_0x27a53b(0x1f4)]=new _0x123e3b(_0x127ef3),this[_0x27a53b(0x1d3)]=new _0x509e66(_0x127ef3),this[_0x27a53b(0x1d9)]=new _0x4377ff(_0x127ef3,_0x11896e),this[_0x27a53b(0x1e6)]=new _0x57c560(_0x127ef3),this[_0x27a53b(0x1e6)][_0x27a53b(0x1fb)](this[_0x27a53b(0x1e7)]()),this[_0x27a53b(0x1f9)](_0x27a53b(0x1cf),_0x4d0ff0),this[_0x27a53b(0x1fb)]({'tag':_0x27a53b(0x1fc),'attributes':{'class':['ck',_0x27a53b(0x1cc),_0x27a53b(0x1ea)],'tabindex':'-1'},'children':this[_0x27a53b(0x1d5)]}),this[_0x27a53b(0x1d7)](),this[_0x27a53b(0x1f3)](_0x27a53b(0x1ee),()=>{const _0x11bd4a=_0x27a53b;this[_0x11bd4a(0x1c8)](this[_0x11bd4a(0x1dd)],_0x28ea70=>{const _0x112806=_0x11bd4a;this[_0x112806(0x1d1)](_0x28ea70);});}),this['on'](_0x27a53b(0x1cd),()=>{const _0x9ad9a4=_0x27a53b;this[_0x9ad9a4(0x1d7)]();}),this[_0x27a53b(0x1c7)]();}[_0x3dfa2c(0x1c9)](){const _0x10131a=_0x3dfa2c;this[_0x10131a(0x1dd)][_0x10131a(0x1c9)]();}[_0x3dfa2c(0x1d7)](){const _0x563633=_0x3dfa2c;switch(this[_0x563633(0x1d5)][_0x563633(0x1df)](),this[_0x563633(0x1cf)]){case _0x563633(0x1e2):this[_0x563633(0x1d5)][_0x563633(0x1ca)](this[_0x563633(0x1f4)]);break;case _0x563633(0x1eb):this[_0x563633(0x1d5)][_0x563633(0x1ca)](this[_0x563633(0x1d3)]);break;case _0x563633(0x1c5):this[_0x563633(0x1d5)][_0x563633(0x1f8)]([this[_0x563633(0x1d9)],this[_0x563633(0x1e6)]]);}}[_0x3dfa2c(0x1c8)](_0x523fb1,_0x2727da){const _0x39e08e=_0x3dfa2c,_0x5112ff=_0x39e08e(0x1e0),_0xb3ff4f=_0x523fb1[_0x39e08e(0x1d8)](_0x5112ff);if(_0xb3ff4f)return _0x2727da(_0xb3ff4f);const _0x32f29c=new MutationObserver(_0x4c378d=>{const _0x5457c9=_0x39e08e,_0x4c9bba=_0x4c378d[_0x5457c9(0x1ce)](_0x4d8802=>_0x4d8802[_0x5457c9(0x1e5)]===_0x523fb1&&_0x4d8802[_0x5457c9(0x1f0)][_0x5457c9(0x1fa)]>0x0&&_0x4d8802[_0x5457c9(0x1f0)][0x0][_0x5457c9(0x1cb)][_0x5457c9(0x1d2)]()===_0x5112ff);_0x4c9bba[_0x5457c9(0x1fa)]&&(_0x32f29c[_0x5457c9(0x1e1)](),_0x2727da(_0x4c9bba[0x0][_0x5457c9(0x1f0)][0x0]));});_0x32f29c[_0x39e08e(0x1f1)](_0x523fb1,{'childList':!0x0,'subtree':!0x0});}[_0x3dfa2c(0x1d1)](_0x2451b6){const _0x21cbc0=_0x3dfa2c;_0x2451b6[_0x21cbc0(0x1f5)](_0x21cbc0(0x1dc),_0x437d14=>{const _0x459bae=_0x21cbc0;this[_0x459bae(0x1ed)](_0x459bae(0x1dc),{'imageSrc':_0x437d14[_0x459bae(0x1f2)][_0x459bae(0x1da)]});}),_0x2451b6[_0x21cbc0(0x1f5)](_0x21cbc0(0x1ec),()=>{const _0x9b6b80=_0x21cbc0;this[_0x9b6b80(0x1ed)](_0x9b6b80(0x1ec));});}[_0x3dfa2c(0x1c7)](){const _0x334a21=_0x3dfa2c;this[_0x334a21(0x1d3)]['on'](_0x334a21(0x1e9),()=>{const _0x419ba2=_0x334a21;this[_0x419ba2(0x1ed)](_0x419ba2(0x1e9));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16e093=_0x2064;(function(_0x503ea5,_0xd65d8b){const _0x38e278=_0x2064,_0x5aeaa5=_0x503ea5();while(!![]){try{const _0xc72743=parseInt(_0x38e278(0xfa))/0x1*(parseInt(_0x38e278(0xff))/0x2)+parseInt(_0x38e278(0xfc))/0x3+-parseInt(_0x38e278(0x10a))/0x4+parseInt(_0x38e278(0x101))/0x5+parseInt(_0x38e278(0x105))/0x6+-parseInt(_0x38e278(0xf9))/0x7*(parseInt(_0x38e278(0x10b))/0x8)+-parseInt(_0x38e278(0x107))/0x9*(parseInt(_0x38e278(0x114))/0xa);if(_0xc72743===_0xd65d8b)break;else _0x5aeaa5['push'](_0x5aeaa5['shift']());}catch(_0x16cbc9){_0x5aeaa5['push'](_0x5aeaa5['shift']());}}}(_0x5ceb,0x47b0c));function _0x2064(_0x3345d1,_0x533e4e){const _0x5ceb8f=_0x5ceb();return _0x2064=function(_0x2064af,_0x495c57){_0x2064af=_0x2064af-0xf5;let _0x35073a=_0x5ceb8f[_0x2064af];return _0x35073a;},_0x2064(_0x3345d1,_0x533e4e);}import{Command as _0x2ae4da}from'ckeditor5/src/core.js';function _0x5ceb(){const _0x269cf8=['2183700mMYjaS','editor','45XKfMgF','unbind','isActive','1912608sXeoMz','64IDhbwP','set','element','refresh','config','selection','requires','plugins','execute','668530uBLGQK','uploadcare.allowExternalImagesEditing','get','getSelectedElement','imageInline','372974WviOfz','4ONJsza','imageEditController','1650216NGsHTG','document','imageBlock','185990GJLGtK','isEnabled','1231575GxgKmc','bind','model','_isEditable'];_0x5ceb=function(){return _0x269cf8;};return _0x5ceb();}import{Dialog as _0x303586}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x4eda79}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x20307d}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2ae4da{[_0x16e093(0xfb)];static get[_0x16e093(0x111)](){return[_0x303586];}[_0x16e093(0x104)];constructor(_0x2a88c9){const _0x1fe742=_0x16e093;super(_0x2a88c9),this[_0x1fe742(0xfb)]=void 0x0,this[_0x1fe742(0x104)]=_0x20307d(_0x2a88c9[_0x1fe742(0x10f)][_0x1fe742(0xf6)](_0x1fe742(0xf5))||[]),this[_0x1fe742(0x10c)]({'isActive':!0x1});}[_0x16e093(0x10e)](){const _0x3eeb1f=_0x16e093,_0x51d462=this[_0x3eeb1f(0x106)][_0x3eeb1f(0x103)][_0x3eeb1f(0xfd)][_0x3eeb1f(0x110)][_0x3eeb1f(0xf7)]();this[_0x3eeb1f(0x100)]=this[_0x3eeb1f(0x104)](_0x51d462);}[_0x16e093(0x113)](){const _0x1097ba=_0x16e093;this[_0x1097ba(0xfb)]&&(this[_0x1097ba(0x108)](_0x1097ba(0x109)),this[_0x1097ba(0xfb)]=void 0x0);const _0x45fe95=this[_0x1097ba(0x106)][_0x1097ba(0x103)][_0x1097ba(0xfd)][_0x1097ba(0x110)][_0x1097ba(0xf7)]();_0x45fe95&&(_0x45fe95['is'](_0x1097ba(0x10d),_0x1097ba(0xfe))||_0x45fe95['is'](_0x1097ba(0x10d),_0x1097ba(0xf8)))&&(this[_0x1097ba(0xfb)]=new _0x4eda79(this[_0x1097ba(0x106)],this[_0x1097ba(0x106)][_0x1097ba(0x112)][_0x1097ba(0xf6)](_0x303586),_0x45fe95),this[_0x1097ba(0x102)](_0x1097ba(0x109))['to'](this[_0x1097ba(0xfb)],_0x1097ba(0x109)));}}
23
+ function _0x4c9e(_0x2f678c,_0x11f882){const _0x58e897=_0x58e8();return _0x4c9e=function(_0x4c9ee6,_0x45110e){_0x4c9ee6=_0x4c9ee6-0x1b4;let _0x1f9d2d=_0x58e897[_0x4c9ee6];return _0x1f9d2d;},_0x4c9e(_0x2f678c,_0x11f882);}function _0x58e8(){const _0x51d6fb=['refresh','requires','imageEditController','unbind','608838cfLnhy','3689616TiFjvu','1398364OJlsdd','model','selection','element','_isEditable','3581165isxcND','getSelectedElement','plugins','get','imageBlock','3119705IBUANb','isEnabled','set','bind','1267662yFnyBT','imageInline','document','editor','309035KCtyWE','config','execute','isActive','uploadcare.allowExternalImagesEditing'];_0x58e8=function(){return _0x51d6fb;};return _0x58e8();}const _0x372521=_0x4c9e;(function(_0x4dd043,_0x1b05c4){const _0x33eca7=_0x4c9e,_0x1de00a=_0x4dd043();while(!![]){try{const _0x1ceeae=parseInt(_0x33eca7(0x1c9))/0x1+-parseInt(_0x33eca7(0x1c5))/0x2+-parseInt(_0x33eca7(0x1b5))/0x3+parseInt(_0x33eca7(0x1b7))/0x4+parseInt(_0x33eca7(0x1c1))/0x5+-parseInt(_0x33eca7(0x1b6))/0x6+parseInt(_0x33eca7(0x1bc))/0x7;if(_0x1ceeae===_0x1b05c4)break;else _0x1de00a['push'](_0x1de00a['shift']());}catch(_0x4e07fa){_0x1de00a['push'](_0x1de00a['shift']());}}}(_0x58e8,0x539b1));import{Command as _0x524d3a}from'ckeditor5/src/core.js';import{Dialog as _0x157921}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x319422}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x37434a}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x524d3a{[_0x372521(0x1d0)];static get[_0x372521(0x1cf)](){return[_0x157921];}[_0x372521(0x1bb)];constructor(_0x1fb818){const _0x3f84d7=_0x372521;super(_0x1fb818),this[_0x3f84d7(0x1d0)]=void 0x0,this[_0x3f84d7(0x1bb)]=_0x37434a(_0x1fb818[_0x3f84d7(0x1ca)][_0x3f84d7(0x1bf)](_0x3f84d7(0x1cd))||[]),this[_0x3f84d7(0x1c3)]({'isActive':!0x1});}[_0x372521(0x1ce)](){const _0x39e204=_0x372521,_0x6ef6e6=this[_0x39e204(0x1c8)][_0x39e204(0x1b8)][_0x39e204(0x1c7)][_0x39e204(0x1b9)][_0x39e204(0x1bd)]();this[_0x39e204(0x1c2)]=this[_0x39e204(0x1bb)](_0x6ef6e6);}[_0x372521(0x1cb)](){const _0x5703be=_0x372521;this[_0x5703be(0x1d0)]&&(this[_0x5703be(0x1b4)](_0x5703be(0x1cc)),this[_0x5703be(0x1d0)]=void 0x0);const _0x43ada1=this[_0x5703be(0x1c8)][_0x5703be(0x1b8)][_0x5703be(0x1c7)][_0x5703be(0x1b9)][_0x5703be(0x1bd)]();_0x43ada1&&(_0x43ada1['is'](_0x5703be(0x1ba),_0x5703be(0x1c0))||_0x43ada1['is'](_0x5703be(0x1ba),_0x5703be(0x1c6)))&&(this[_0x5703be(0x1d0)]=new _0x319422(this[_0x5703be(0x1c8)],this[_0x5703be(0x1c8)][_0x5703be(0x1be)][_0x5703be(0x1bf)](_0x157921),_0x43ada1),this[_0x5703be(0x1c4)](_0x5703be(0x1cc))['to'](this[_0x5703be(0x1d0)],_0x5703be(0x1cc)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x34c8b8=_0x23b0;(function(_0x5c2392,_0x5da5fa){const _0xf1b757=_0x23b0,_0x16a119=_0x5c2392();while(!![]){try{const _0x482479=parseInt(_0xf1b757(0x18d))/0x1+-parseInt(_0xf1b757(0x188))/0x2*(parseInt(_0xf1b757(0x18c))/0x3)+parseInt(_0xf1b757(0x193))/0x4+parseInt(_0xf1b757(0x190))/0x5+parseInt(_0xf1b757(0x199))/0x6+parseInt(_0xf1b757(0x194))/0x7*(parseInt(_0xf1b757(0x186))/0x8)+-parseInt(_0xf1b757(0x191))/0x9;if(_0x482479===_0x5da5fa)break;else _0x16a119['push'](_0x16a119['shift']());}catch(_0x4aadaf){_0x16a119['push'](_0x16a119['shift']());}}}(_0x80a9,0x981f7));function _0x80a9(){const _0x1ee15d=['uploadcareImageReplace','3946910yoFJlG','9666315EQduIl','uploadcareImageEdit','1204428IweVOv','63JkhenA','commands','isOfficialPlugin','ImageEditing','init','461358UHbFTW','ImageUtils','787376nNiUSM','requires','2390rFdMSg','isPremiumPlugin','pluginName','add','2661rQZZOB','703915GyBXKP','UploadcareImageEditEditing'];_0x80a9=function(){return _0x1ee15d;};return _0x80a9();}import{Plugin as _0x45e0ab}from'ckeditor5/src/core.js';import{Notification as _0x85bd34}from'ckeditor5/src/ui.js';function _0x23b0(_0x311f7d,_0x930b33){const _0x80a91c=_0x80a9();return _0x23b0=function(_0x23b055,_0x32a70e){_0x23b055=_0x23b055-0x186;let _0x3258a9=_0x80a91c[_0x23b055];return _0x3258a9;},_0x23b0(_0x311f7d,_0x930b33);}import{UploadcareImageEditCommand as _0xce27bc}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x15cd82}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0xb295d7}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x45e0ab{static get[_0x34c8b8(0x18a)](){const _0x4831d7=_0x34c8b8;return _0x4831d7(0x18e);}static get[_0x34c8b8(0x187)](){const _0x1706c8=_0x34c8b8;return[_0xb295d7,_0x85bd34,_0x1706c8(0x19a),_0x1706c8(0x197)];}static get[_0x34c8b8(0x196)](){return!0x0;}static get[_0x34c8b8(0x189)](){return!0x0;}[_0x34c8b8(0x198)](){const _0x482bee=_0x34c8b8,{editor:_0x2781ad}=this;_0x2781ad[_0x482bee(0x195)][_0x482bee(0x18b)](_0x482bee(0x192),new _0xce27bc(_0x2781ad)),_0x2781ad[_0x482bee(0x195)][_0x482bee(0x18b)](_0x482bee(0x18f),new _0x15cd82(_0x2781ad));}}
23
+ const _0x1ef706=_0x45c6;(function(_0x2a85e5,_0x3a56a4){const _0x48cd39=_0x45c6,_0x5f0d1f=_0x2a85e5();while(!![]){try{const _0x1b0aed=parseInt(_0x48cd39(0x1cb))/0x1+-parseInt(_0x48cd39(0x1c4))/0x2+-parseInt(_0x48cd39(0x1cd))/0x3*(-parseInt(_0x48cd39(0x1c7))/0x4)+-parseInt(_0x48cd39(0x1d1))/0x5+parseInt(_0x48cd39(0x1d4))/0x6+-parseInt(_0x48cd39(0x1d3))/0x7*(-parseInt(_0x48cd39(0x1d0))/0x8)+parseInt(_0x48cd39(0x1ce))/0x9*(-parseInt(_0x48cd39(0x1cc))/0xa);if(_0x1b0aed===_0x3a56a4)break;else _0x5f0d1f['push'](_0x5f0d1f['shift']());}catch(_0x596811){_0x5f0d1f['push'](_0x5f0d1f['shift']());}}}(_0x5050,0x19774));import{Plugin as _0x120aa0}from'ckeditor5/src/core.js';function _0x45c6(_0x5e2014,_0x2708fa){const _0x5050af=_0x5050();return _0x45c6=function(_0x45c69e,_0xd40f5d){_0x45c69e=_0x45c69e-0x1c1;let _0x375726=_0x5050af[_0x45c69e];return _0x375726;},_0x45c6(_0x5e2014,_0x2708fa);}import{Notification as _0x18b7b2}from'ckeditor5/src/ui.js';function _0x5050(){const _0x5b2f99=['7HMRaoo','979506uaCrpJ','isOfficialPlugin','uploadcareImageReplace','commands','ImageUtils','requires','143870IFjohf','pluginName','init','4jgnQAH','ImageEditing','UploadcareImageEditEditing','isPremiumPlugin','32613mLcgbn','10LCdcMh','307911sxOdLW','1801467yiZYgN','uploadcareImageEdit','873648KaZxuI','156505pRuwiw','add'];_0x5050=function(){return _0x5b2f99;};return _0x5050();}import{UploadcareImageEditCommand as _0x171413}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1839bf}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x15d2f2}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x120aa0{static get[_0x1ef706(0x1c5)](){const _0x5ef55d=_0x1ef706;return _0x5ef55d(0x1c9);}static get[_0x1ef706(0x1c3)](){const _0x3d7c54=_0x1ef706;return[_0x15d2f2,_0x18b7b2,_0x3d7c54(0x1c2),_0x3d7c54(0x1c8)];}static get[_0x1ef706(0x1d5)](){return!0x0;}static get[_0x1ef706(0x1ca)](){return!0x0;}[_0x1ef706(0x1c6)](){const _0x2d99b9=_0x1ef706,{editor:_0x408dd7}=this;_0x408dd7[_0x2d99b9(0x1c1)][_0x2d99b9(0x1d2)](_0x2d99b9(0x1cf),new _0x171413(_0x408dd7)),_0x408dd7[_0x2d99b9(0x1c1)][_0x2d99b9(0x1d2)](_0x2d99b9(0x1d6),new _0x1839bf(_0x408dd7));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x2892a8}from'ckeditor5/src/core.js';import{ButtonView as _0x501988}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3a254f}from'ckeditor5/src/icons.js';import{createElement as _0x5d5f8f}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 _0x2892a8{['_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 _0x412d4b=this['editor'];_0x412d4b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1348b5=>{const _0x4a9027=_0x412d4b['commands']['get']('uploadcareImageEdit'),_0x4905b1=new _0x501988(_0x1348b5),t=_0x1348b5['t'];return _0x4905b1['set']({'icon':_0x3a254f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4905b1['bind']('isEnabled')['to'](_0x4a9027),_0x4905b1['bind']('isOn')['to'](_0x4a9027,'isActive'),this['listenTo'](_0x4905b1,'execute',()=>{_0x412d4b['execute']('uploadcareImageEdit'),_0x412d4b['editing']['view']['focus']();}),_0x4905b1;}),this['_initConfig']();}['_initConfig'](){const _0x2103a8=_0x5d5f8f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2103a8),this['listenTo'](this['editor'],'destroy',()=>{_0x2103a8['remove']();});}}
23
+ import{Plugin as _0x29735a}from'ckeditor5/src/core.js';import{ButtonView as _0x3c76bd}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x478cac}from'ckeditor5/src/icons.js';import{createElement as _0x46b4a1}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 _0x29735a{['_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 _0x2e2e2b=this['editor'];_0x2e2e2b['ui']['componentFactory']['add']('uploadcareImageEdit',_0xfbd467=>{const _0x27ac7c=_0x2e2e2b['commands']['get']('uploadcareImageEdit'),_0x5c26e6=new _0x3c76bd(_0xfbd467),t=_0xfbd467['t'];return _0x5c26e6['set']({'icon':_0x478cac,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5c26e6['bind']('isEnabled')['to'](_0x27ac7c),_0x5c26e6['bind']('isOn')['to'](_0x27ac7c,'isActive'),this['listenTo'](_0x5c26e6,'execute',()=>{_0x2e2e2b['execute']('uploadcareImageEdit'),_0x2e2e2b['editing']['view']['focus']();}),_0x5c26e6;}),this['_initConfig']();}['_initConfig'](){const _0x1498ac=_0x46b4a1(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1498ac),this['listenTo'](this['editor'],'destroy',()=>{_0x1498ac['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2a4d(_0x2c0ed8,_0x5d31d2){var _0x14645a=_0x1464();return _0x2a4d=function(_0x2a4d31,_0x1453b5){_0x2a4d31=_0x2a4d31-0x12d;var _0x10aa8a=_0x14645a[_0x2a4d31];return _0x10aa8a;},_0x2a4d(_0x2c0ed8,_0x5d31d2);}var _0x2d6e9e=_0x2a4d;function _0x1464(){var _0x4fbd8e=['2251988eUCMQU','4690wIHJUX','9147296WUOOML','10bdzQyc','171UfXGlv','fire','focusCycler','createCollection','3664824jEkits','bindTemplate','div','10838232qSTtSE','1604705NEAkuL','forwardCycle','getFocusableElement','focusTracker','true','3DbqcfX','4821908HgooSa'];_0x1464=function(){return _0x4fbd8e;};return _0x1464();}(function(_0x51b7fe,_0x59d986){var _0x1f081c=_0x2a4d,_0x358a30=_0x51b7fe();while(!![]){try{var _0x837859=parseInt(_0x1f081c(0x12f))/0x1*(parseInt(_0x1f081c(0x13f))/0x2)+parseInt(_0x1f081c(0x13c))/0x3*(parseInt(_0x1f081c(0x13e))/0x4)+-parseInt(_0x1f081c(0x137))/0x5+parseInt(_0x1f081c(0x133))/0x6+-parseInt(_0x1f081c(0x13d))/0x7+-parseInt(_0x1f081c(0x12d))/0x8+-parseInt(_0x1f081c(0x136))/0x9*(-parseInt(_0x1f081c(0x12e))/0xa);if(_0x837859===_0x59d986)break;else _0x358a30['push'](_0x358a30['shift']());}catch(_0x244166){_0x358a30['push'](_0x358a30['shift']());}}}(_0x1464,0x98cb7));import{FocusTracker as _0x16a890}from'ckeditor5/src/utils.js';import{View as _0xe42d4a,FocusCycler as _0x4833e2}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0xe42d4a{[_0x2d6e9e(0x13a)];[_0x2d6e9e(0x131)];constructor(_0xa7582f){var _0x542a81=_0x2d6e9e;super(_0xa7582f),this[_0x542a81(0x13a)]=new _0x16a890(),this[_0x542a81(0x131)]=new _0x4833e2({'focusables':this[_0x542a81(0x132)](),'focusTracker':this[_0x542a81(0x13a)]});}[_0x2d6e9e(0x139)](){var _0x33f8c3=_0x2d6e9e;return{'tag':_0x33f8c3(0x135),'attributes':{'aria-hidden':_0x33f8c3(0x13b),'tabindex':'0'},'on':{'focus':this[_0x33f8c3(0x134)]['to'](()=>{var _0xbfc940=_0x33f8c3;this[_0xbfc940(0x131)][_0xbfc940(0x130)](_0xbfc940(0x138));})}};}}
23
+ var _0x94e816=_0x475a;(function(_0x22daa7,_0x212e72){var _0x368816=_0x475a,_0x27ba88=_0x22daa7();while(!![]){try{var _0x1ce59d=-parseInt(_0x368816(0xe4))/0x1*(-parseInt(_0x368816(0xeb))/0x2)+parseInt(_0x368816(0xea))/0x3+-parseInt(_0x368816(0xec))/0x4*(-parseInt(_0x368816(0xe3))/0x5)+-parseInt(_0x368816(0xee))/0x6+parseInt(_0x368816(0xed))/0x7+-parseInt(_0x368816(0xe6))/0x8+-parseInt(_0x368816(0xe2))/0x9;if(_0x1ce59d===_0x212e72)break;else _0x27ba88['push'](_0x27ba88['shift']());}catch(_0x54bcf7){_0x27ba88['push'](_0x27ba88['shift']());}}}(_0x5cbd,0xf3528));import{FocusTracker as _0x105058}from'ckeditor5/src/utils.js';import{View as _0x1af2a8,FocusCycler as _0x3c689d}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x5cbd(){var _0x2602e8=['12TLyNOw','10588900BiLZJN','8753664KhvqjB','bindTemplate','fire','focusTracker','div','forwardCycle','14401125wUXLlj','1984975skVZed','349464JFcLvI','true','7034728dBiofu','getFocusableElement','createCollection','focusCycler','4597335aJlHiw','4cQDHMS'];_0x5cbd=function(){return _0x2602e8;};return _0x5cbd();}function _0x475a(_0x555031,_0x6edfe7){var _0x5cbdc8=_0x5cbd();return _0x475a=function(_0x475ad7,_0x1b7589){_0x475ad7=_0x475ad7-0xde;var _0x3cb4b3=_0x5cbdc8[_0x475ad7];return _0x3cb4b3;},_0x475a(_0x555031,_0x6edfe7);}export class DialogFocusManagerView extends _0x1af2a8{[_0x94e816(0xdf)];[_0x94e816(0xe9)];constructor(_0x24c35f){var _0x51cf96=_0x94e816;super(_0x24c35f),this[_0x51cf96(0xdf)]=new _0x105058(),this[_0x51cf96(0xe9)]=new _0x3c689d({'focusables':this[_0x51cf96(0xe8)](),'focusTracker':this[_0x51cf96(0xdf)]});}[_0x94e816(0xe7)](){var _0x594439=_0x94e816;return{'tag':_0x594439(0xe0),'attributes':{'aria-hidden':_0x594439(0xe5),'tabindex':'0'},'on':{'focus':this[_0x594439(0xef)]['to'](()=>{var _0x366e4f=_0x594439;this[_0x366e4f(0xe9)][_0x366e4f(0xde)](_0x366e4f(0xe1));})}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x491ba0,_0x2517d0){const _0x3d8f36=_0x4fb2,_0x3a1c73=_0x491ba0();while(!![]){try{const _0x208d15=-parseInt(_0x3d8f36(0x14f))/0x1*(parseInt(_0x3d8f36(0x132))/0x2)+parseInt(_0x3d8f36(0x15d))/0x3*(-parseInt(_0x3d8f36(0x13b))/0x4)+parseInt(_0x3d8f36(0x14c))/0x5+parseInt(_0x3d8f36(0x130))/0x6*(-parseInt(_0x3d8f36(0x15c))/0x7)+parseInt(_0x3d8f36(0x156))/0x8*(parseInt(_0x3d8f36(0x138))/0x9)+parseInt(_0x3d8f36(0x14d))/0xa+-parseInt(_0x3d8f36(0x159))/0xb*(-parseInt(_0x3d8f36(0x149))/0xc);if(_0x208d15===_0x2517d0)break;else _0x3a1c73['push'](_0x3a1c73['shift']());}catch(_0x33c0c9){_0x3a1c73['push'](_0x3a1c73['shift']());}}}(_0x3f3f,0x97e27));import{global as _0x408f06,DomEmitterMixin as _0x3297d5}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x506cf5){const _0x69321c=_0x4fb2,_0x560a44=z(_0x506cf5);return _0x3f4267=>!(!_0x3f4267||!_0x3f4267['is'](_0x69321c(0x143),_0x69321c(0x13c))&&!_0x3f4267['is'](_0x69321c(0x143),_0x69321c(0x123)))&&(!!_0x3f4267[_0x69321c(0x157)](_0x69321c(0x127))||!!_0x3f4267[_0x69321c(0x157)](_0x69321c(0x128))&&_0x560a44(_0x3f4267[_0x69321c(0x137)](_0x69321c(0x128))));}export function getImageUrls(_0x5ba1b2,_0x2e1e54){const _0x109a9a=_0x4fb2,_0x4cc09e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x109a9a(0x12e)](_0x18959e=>_0x18959e<=_0x2e1e54)[_0x109a9a(0x12c)](_0x4b983b=>_0x5ba1b2[_0x109a9a(0x13e)](/\/$/,'')+_0x109a9a(0x146)+_0x4b983b+_0x109a9a(0x13d)+_0x4b983b+'w');return{'imageFallbackUrl':_0x5ba1b2,'imageSources':[{'srcset':_0x4cc09e[_0x109a9a(0x136)](',\x20'),'sizes':_0x109a9a(0x12d)+_0x2e1e54+_0x109a9a(0x15b)+_0x2e1e54+'px','type':_0x109a9a(0x147)}]};}function _0x4fb2(_0x1e3584,_0x49f457){const _0x3f3f39=_0x3f3f();return _0x4fb2=function(_0x4fb2fd,_0x42bc35){_0x4fb2fd=_0x4fb2fd-0x123;let _0x450fd8=_0x3f3f39[_0x4fb2fd];return _0x450fd8;},_0x4fb2(_0x1e3584,_0x49f457);}function _0x3f3f(){const _0x4f5b6c=['map','(max-width:\x20','filter','aspect-ratio','6Cezxlv','ImageUtils','4fdMjqc','removeStyle','height','domConverter','join','getAttribute','5772078owpPZH','toViewElement','width','48572VQPtTg','imageBlock','x/\x20','replace','document','change','plugins','removeClass','element','get','stopListening','/-/resize/','image/webp','listenTo','12XfIHsT','editing','view','955320KBnWcC','1423300FgRzgy','some','252009ymuzfH','load','findViewImgElement','viewToDom','function','addClass','match','8QdzWAt','hasAttribute','setStyle','6230477QLuJqP','baseURI','px)\x20100vw,\x20','2225034eNbkBl','24ggZdJJ','imageInline','origin','location','window','uploadcareImageId','src','isArray','image-processing','mapper'];_0x3f3f=function(){return _0x4f5b6c;};return _0x3f3f();}export function getImageDimension(_0x279a27,_0x4193a0,_0x2506ea){const _0x288e87=_0x4fb2,_0x5ace8f=_0x279a27[_0x288e87(0x155)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5ace8f?parseInt(_0x5ace8f[0x1],0xa):_0x4193a0,'height':_0x5ace8f?parseInt(_0x5ace8f[0x2],0xa):_0x2506ea};}export function showImageProcessingIndicator(_0xe8694b,_0x52562f){const _0x520ada=_0x4fb2,_0x552e53=new(_0x3297d5())(),_0x301a4b=_0xe8694b[_0x520ada(0x141)][_0x520ada(0x144)](_0x520ada(0x131)),_0x517fd3=_0xe8694b[_0x520ada(0x14a)][_0x520ada(0x12b)][_0x520ada(0x139)](_0x52562f),_0x45ecb7=_0x301a4b[_0x520ada(0x151)](_0x517fd3),_0x285a70=_0xe8694b[_0x520ada(0x14a)][_0x520ada(0x14b)][_0x520ada(0x135)][_0x520ada(0x152)](_0x45ecb7),_0x2efc63=_0x52562f[_0x520ada(0x137)](_0x520ada(0x13a)),_0x30c2bc=_0x52562f[_0x520ada(0x137)](_0x520ada(0x134)),_0x2238b4=_0x520ada(0x12a);_0xe8694b[_0x520ada(0x14a)][_0x520ada(0x14b)][_0x520ada(0x140)](_0x1b685d=>{const _0x275e31=_0x520ada;_0x1b685d[_0x275e31(0x154)](_0x2238b4,_0x517fd3),_0x1b685d[_0x275e31(0x158)](_0x275e31(0x12f),_0x2efc63+'/'+_0x30c2bc,_0x45ecb7);}),_0x552e53[_0x520ada(0x148)](_0x285a70,_0x520ada(0x150),()=>{const _0x1be7ab=_0x520ada;_0x552e53[_0x1be7ab(0x145)](_0x285a70,_0x1be7ab(0x150)),_0xe8694b[_0x1be7ab(0x14a)][_0x1be7ab(0x14b)][_0x1be7ab(0x140)](_0x2ca9cf=>{const _0x4780b0=_0x1be7ab;_0x2ca9cf[_0x4780b0(0x142)](_0x2238b4,_0x517fd3),_0x2ca9cf[_0x4780b0(0x133)](_0x4780b0(0x12f),_0x45ecb7);});});}function z(_0x209bdf){const _0x5b58b1=_0x4fb2;if(Array[_0x5b58b1(0x129)](_0x209bdf)){const _0x465750=_0x209bdf[_0x5b58b1(0x12c)](z);return _0x82825f=>_0x465750[_0x5b58b1(0x14e)](_0x547f8a=>_0x547f8a(_0x82825f));}if(_0x5b58b1(0x124)==_0x209bdf){const _0x2488c2=_0x408f06[_0x5b58b1(0x126)][_0x5b58b1(0x125)][_0x5b58b1(0x124)];return _0x5ce4ec=>new URL(_0x5ce4ec,_0x408f06[_0x5b58b1(0x13f)][_0x5b58b1(0x15a)])[_0x5b58b1(0x124)]==_0x2488c2;}return _0x5b58b1(0x153)==typeof _0x209bdf?_0x209bdf:_0x209bdf instanceof RegExp?_0x11431f=>!(!_0x11431f[_0x5b58b1(0x155)](_0x209bdf)&&!_0x11431f[_0x5b58b1(0x13e)](/^https?:\/\//,'')[_0x5b58b1(0x155)](_0x209bdf)):()=>!0x1;}
23
+ (function(_0x4f135c,_0x4ba3e0){const _0x3ac6c8=_0x2e2f,_0x311d74=_0x4f135c();while(!![]){try{const _0x3a97dd=parseInt(_0x3ac6c8(0x95))/0x1+-parseInt(_0x3ac6c8(0x94))/0x2*(parseInt(_0x3ac6c8(0x8f))/0x3)+-parseInt(_0x3ac6c8(0x77))/0x4*(parseInt(_0x3ac6c8(0x92))/0x5)+-parseInt(_0x3ac6c8(0x78))/0x6*(parseInt(_0x3ac6c8(0x6e))/0x7)+-parseInt(_0x3ac6c8(0x71))/0x8+-parseInt(_0x3ac6c8(0x85))/0x9+parseInt(_0x3ac6c8(0x96))/0xa;if(_0x3a97dd===_0x4ba3e0)break;else _0x311d74['push'](_0x311d74['shift']());}catch(_0x4ffca9){_0x311d74['push'](_0x311d74['shift']());}}}(_0xd827,0x64f15));import{global as _0x2f8c16,DomEmitterMixin as _0x5abaa7}from'ckeditor5/src/utils.js';function _0xd827(){const _0x5eb229=['7rakRBJ','addClass','getAttribute','468720aQygdF','ImageUtils','baseURI','(max-width:\x20','load','removeClass','4rUYCEt','1055298lHVrab','map','element','toViewElement','some','mapper','function','src','hasAttribute','plugins','view','change','findViewImgElement','901278Stgfud','height','isArray','domConverter','imageInline','width','filter','imageBlock','image-processing','get','3uuZWaZ','join','aspect-ratio','1435960FDkkqi','removeStyle','1177594suvSfg','220924hdDeKT','14031410jXZCzz','origin','setStyle','/-/resize/','uploadcareImageId','listenTo','editing','location','viewToDom','stopListening','replace','document','px)\x20100vw,\x20','image/webp','x/\x20','window','match'];_0xd827=function(){return _0x5eb229;};return _0xd827();}export function createEditabilityChecker(_0x319f32){const _0x57568b=_0x2e2f,_0xfe1529=R(_0x319f32);return _0x5b2dc8=>!(!_0x5b2dc8||!_0x5b2dc8['is'](_0x57568b(0x7a),_0x57568b(0x8c))&&!_0x5b2dc8['is'](_0x57568b(0x7a),_0x57568b(0x89)))&&(!!_0x5b2dc8[_0x57568b(0x80)](_0x57568b(0x9a))||!!_0x5b2dc8[_0x57568b(0x80)](_0x57568b(0x7f))&&_0xfe1529(_0x5b2dc8[_0x57568b(0x70)](_0x57568b(0x7f))));}function _0x2e2f(_0x351607,_0x14de70){const _0xd827f3=_0xd827();return _0x2e2f=function(_0x2e2f61,_0x3ea95a){_0x2e2f61=_0x2e2f61-0x6d;let _0x479d29=_0xd827f3[_0x2e2f61];return _0x479d29;},_0x2e2f(_0x351607,_0x14de70);}export function getImageUrls(_0x5ac498,_0x51dfdb){const _0x387c57=_0x2e2f,_0x8ffb5b=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x387c57(0x8b)](_0x390669=>_0x390669<=_0x51dfdb)[_0x387c57(0x79)](_0x507b05=>_0x5ac498[_0x387c57(0xa0)](/\/$/,'')+_0x387c57(0x99)+_0x507b05+_0x387c57(0xa4)+_0x507b05+'w');return{'imageFallbackUrl':_0x5ac498,'imageSources':[{'srcset':_0x8ffb5b[_0x387c57(0x90)](',\x20'),'sizes':_0x387c57(0x74)+_0x51dfdb+_0x387c57(0xa2)+_0x51dfdb+'px','type':_0x387c57(0xa3)}]};}export function getImageDimension(_0x235102,_0x3ada4f,_0x4b651a){const _0x2c9ead=_0x2e2f,_0x77a889=_0x235102[_0x2c9ead(0x6d)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x77a889?parseInt(_0x77a889[0x1],0xa):_0x3ada4f,'height':_0x77a889?parseInt(_0x77a889[0x2],0xa):_0x4b651a};}export function showImageProcessingIndicator(_0x2f617f,_0x1eec96){const _0x51ad07=_0x2e2f,_0x3c11d6=new(_0x5abaa7())(),_0x246e5d=_0x2f617f[_0x51ad07(0x81)][_0x51ad07(0x8e)](_0x51ad07(0x72)),_0x18e743=_0x2f617f[_0x51ad07(0x9c)][_0x51ad07(0x7d)][_0x51ad07(0x7b)](_0x1eec96),_0x262c70=_0x246e5d[_0x51ad07(0x84)](_0x18e743),_0x314018=_0x2f617f[_0x51ad07(0x9c)][_0x51ad07(0x82)][_0x51ad07(0x88)][_0x51ad07(0x9e)](_0x262c70),_0x1a174e=_0x1eec96[_0x51ad07(0x70)](_0x51ad07(0x8a)),_0x2ca98b=_0x1eec96[_0x51ad07(0x70)](_0x51ad07(0x86)),_0x5b6087=_0x51ad07(0x8d);_0x2f617f[_0x51ad07(0x9c)][_0x51ad07(0x82)][_0x51ad07(0x83)](_0x39a308=>{const _0x1edea1=_0x51ad07;_0x39a308[_0x1edea1(0x6f)](_0x5b6087,_0x18e743),_0x39a308[_0x1edea1(0x98)](_0x1edea1(0x91),_0x1a174e+'/'+_0x2ca98b,_0x262c70);}),_0x3c11d6[_0x51ad07(0x9b)](_0x314018,_0x51ad07(0x75),()=>{const _0x45a0d6=_0x51ad07;_0x3c11d6[_0x45a0d6(0x9f)](_0x314018,_0x45a0d6(0x75)),_0x2f617f[_0x45a0d6(0x9c)][_0x45a0d6(0x82)][_0x45a0d6(0x83)](_0x5c6921=>{const _0x2f668a=_0x45a0d6;_0x5c6921[_0x2f668a(0x76)](_0x5b6087,_0x18e743),_0x5c6921[_0x2f668a(0x93)](_0x2f668a(0x91),_0x262c70);});});}function R(_0xc648c5){const _0x5b0631=_0x2e2f;if(Array[_0x5b0631(0x87)](_0xc648c5)){const _0x11675d=_0xc648c5[_0x5b0631(0x79)](R);return _0x366b6b=>_0x11675d[_0x5b0631(0x7c)](_0x148b07=>_0x148b07(_0x366b6b));}if(_0x5b0631(0x97)==_0xc648c5){const _0x1c7287=_0x2f8c16[_0x5b0631(0xa5)][_0x5b0631(0x9d)][_0x5b0631(0x97)];return _0x54e5b8=>new URL(_0x54e5b8,_0x2f8c16[_0x5b0631(0xa1)][_0x5b0631(0x73)])[_0x5b0631(0x97)]==_0x1c7287;}return _0x5b0631(0x7e)==typeof _0xc648c5?_0xc648c5:_0xc648c5 instanceof RegExp?_0x5b7c67=>!(!_0x5b7c67[_0x5b0631(0x6d)](_0xc648c5)&&!_0x5b7c67[_0x5b0631(0xa0)](/^https?:\/\//,'')[_0x5b0631(0x6d)](_0xc648c5)):()=>!0x1;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0xb4105e,_0xe3bc4e){var _0x57f9e7=_0x206e,_0x242ad9=_0xb4105e();while(!![]){try{var _0x5c88bd=parseInt(_0x57f9e7(0x1d9))/0x1*(-parseInt(_0x57f9e7(0x1d0))/0x2)+parseInt(_0x57f9e7(0x1d1))/0x3+-parseInt(_0x57f9e7(0x1d3))/0x4+-parseInt(_0x57f9e7(0x1d5))/0x5+parseInt(_0x57f9e7(0x1d2))/0x6+-parseInt(_0x57f9e7(0x1d7))/0x7*(-parseInt(_0x57f9e7(0x1cf))/0x8)+-parseInt(_0x57f9e7(0x1d6))/0x9;if(_0x5c88bd===_0xe3bc4e)break;else _0x242ad9['push'](_0x242ad9['shift']());}catch(_0x10f56d){_0x242ad9['push'](_0x242ad9['shift']());}}}(_0x2af2,0x5422f));import{getAncestors as _0x42d2cb}from'ckeditor5/src/utils.js';function _0x206e(_0x57f686,_0x47861c){var _0x2af2a0=_0x2af2();return _0x206e=function(_0x206e60,_0x5c403a){_0x206e60=_0x206e60-0x1cf;var _0x340906=_0x2af2a0[_0x206e60];return _0x340906;},_0x206e(_0x57f686,_0x47861c);}export function isAncestor(_0x3ef988,_0x48b04c){var _0x599105=_0x206e;return _0x42d2cb(_0x3ef988[_0x599105(0x1d4)])[_0x599105(0x1d8)](_0x48b04c);}function _0x2af2(){var _0x357503=['target','816015EXdeOF','1439127aHkwKQ','593285mWuTKN','includes','22595vdNpMN','56scnngb','2fBeAxu','500967TIYoYa','782898kWnmyx','801732YlmjIf'];_0x2af2=function(){return _0x357503;};return _0x2af2();}
23
+ function _0x45d6(_0x2bfa8f,_0x207ac0){var _0x4244e9=_0x4244();return _0x45d6=function(_0x45d694,_0x2a84fc){_0x45d694=_0x45d694-0xef;var _0x49a286=_0x4244e9[_0x45d694];return _0x49a286;},_0x45d6(_0x2bfa8f,_0x207ac0);}function _0x4244(){var _0x963c7=['2PtSxbs','3052jAcjFp','590093haccnV','1692FlkeNj','143410IPBkbM','8728nQbMRV','3ZpvLJl','143PlUacR','2108615yOhdfj','3029512cBNMPc','includes','4398nLoBkz','target','17575128hYwlcv'];_0x4244=function(){return _0x963c7;};return _0x4244();}(function(_0x58cc39,_0x1e8646){var _0x636e6d=_0x45d6,_0xc4c997=_0x58cc39();while(!![]){try{var _0x3bb446=parseInt(_0x636e6d(0xfb))/0x1*(-parseInt(_0x636e6d(0xf9))/0x2)+parseInt(_0x636e6d(0xf1))/0x3*(-parseInt(_0x636e6d(0xf4))/0x4)+-parseInt(_0x636e6d(0xf3))/0x5+parseInt(_0x636e6d(0xf6))/0x6*(parseInt(_0x636e6d(0xfa))/0x7)+-parseInt(_0x636e6d(0xf0))/0x8*(-parseInt(_0x636e6d(0xfc))/0x9)+-parseInt(_0x636e6d(0xef))/0xa*(-parseInt(_0x636e6d(0xf2))/0xb)+parseInt(_0x636e6d(0xf8))/0xc;if(_0x3bb446===_0x1e8646)break;else _0xc4c997['push'](_0xc4c997['shift']());}catch(_0x4ec2dc){_0xc4c997['push'](_0xc4c997['shift']());}}}(_0x4244,0x63401));import{getAncestors as _0x3db4fb}from'ckeditor5/src/utils.js';export function isAncestor(_0xca93d9,_0x377965){var _0x255f7c=_0x45d6;return _0x3db4fb(_0xca93d9[_0x255f7c(0xf7)])[_0x255f7c(0xf5)](_0x377965);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xf9e96c=_0x208b;(function(_0x55e8d3,_0x20cccf){var _0x32432f=_0x208b,_0xd7d6c2=_0x55e8d3();while(!![]){try{var _0x14789f=-parseInt(_0x32432f(0x104))/0x1+parseInt(_0x32432f(0x10c))/0x2*(-parseInt(_0x32432f(0x103))/0x3)+-parseInt(_0x32432f(0x107))/0x4*(parseInt(_0x32432f(0x10d))/0x5)+parseInt(_0x32432f(0x109))/0x6+parseInt(_0x32432f(0x10b))/0x7+-parseInt(_0x32432f(0x108))/0x8+-parseInt(_0x32432f(0x105))/0x9*(-parseInt(_0x32432f(0x10e))/0xa);if(_0x14789f===_0x20cccf)break;else _0xd7d6c2['push'](_0xd7d6c2['shift']());}catch(_0x456b18){_0xd7d6c2['push'](_0xd7d6c2['shift']());}}}(_0x464a,0xc1424));function _0x464a(){var _0x16e979=['5760000oKMxeM','getInfo','10176173EgDEbm','78658khMYOK','50FaxBpp','10HqZrss','3moylKS','354389sEerwQ','3287763YsQvcY','upload','477788FAwhVo','3194160etajKB'];_0x464a=function(){return _0x16e979;};return _0x464a();}function _0x208b(_0x3b6c28,_0x2fcc17){var _0x464ade=_0x464a();return _0x208b=function(_0x208b93,_0x19ebee){_0x208b93=_0x208b93-0x103;var _0xa6f09a=_0x464ade[_0x208b93];return _0xa6f09a;},_0x208b(_0x3b6c28,_0x2fcc17);}import{uploadFile as _0x3cc47d,info as _0x39f5a4}from'@uploadcare/upload-client';export class UploadUtils{static[_0xf9e96c(0x106)]({file:_0x30bbc9,..._0x57b7ee}){return _0x3cc47d(_0x30bbc9,_0x57b7ee);}static[_0xf9e96c(0x10a)](_0x5bff8f,_0x258094){return _0x39f5a4(_0x5bff8f,_0x258094);}}
23
+ function _0x2cdf(_0x23ad07,_0x16a93d){var _0x23544d=_0x2354();return _0x2cdf=function(_0x2cdff1,_0x410aae){_0x2cdff1=_0x2cdff1-0x151;var _0x2d0220=_0x23544d[_0x2cdff1];return _0x2d0220;},_0x2cdf(_0x23ad07,_0x16a93d);}var _0x1fc76f=_0x2cdf;function _0x2354(){var _0x2acb4a=['6tCMPJS','upload','getInfo','1310261JgLZzI','9bjmRaI','5577620wYnmuN','2154072iZYtDd','6916784ShlsOS','6031488HARaFv','3509093gTzxpd','2FvlvLq','28917430vKipEo'];_0x2354=function(){return _0x2acb4a;};return _0x2354();}(function(_0x56022a,_0x8e60c5){var _0x365b48=_0x2cdf,_0x307f70=_0x56022a();while(!![]){try{var _0x2cf380=-parseInt(_0x365b48(0x15b))/0x1*(parseInt(_0x365b48(0x156))/0x2)+-parseInt(_0x365b48(0x152))/0x3+parseInt(_0x365b48(0x154))/0x4+-parseInt(_0x365b48(0x151))/0x5+-parseInt(_0x365b48(0x158))/0x6*(-parseInt(_0x365b48(0x155))/0x7)+-parseInt(_0x365b48(0x153))/0x8*(parseInt(_0x365b48(0x15c))/0x9)+parseInt(_0x365b48(0x157))/0xa;if(_0x2cf380===_0x8e60c5)break;else _0x307f70['push'](_0x307f70['shift']());}catch(_0x246334){_0x307f70['push'](_0x307f70['shift']());}}}(_0x2354,0xd9e5b));import{uploadFile as _0x3ca6b1,info as _0x3c9503}from'@uploadcare/upload-client';export class UploadUtils{static[_0x1fc76f(0x159)]({file:_0x1dfa86,..._0x147334}){return _0x3ca6b1(_0x1dfa86,_0x147334);}static[_0x1fc76f(0x15a)](_0x50bc9c,_0x47c386){return _0x3c9503(_0x50bc9c,_0x47c386);}}