@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.0 → 46.0.1-alpha.1

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 _0x35d4cb,ObservableMixin as _0x2c31eb}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x49edb6}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2d014}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0xab02c6}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x46ef83}from'../../utils/uploadutils.js';import{getImageUrls as _0x3e59e3,getImageDimension as _0x3d667d}from'../../utils/editingutils.js';import{isAncestor as _0x1cea80}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x2c31eb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xb20eac,_0x2a7fe3,_0x151814){super(),this['_editor']=_0xb20eac,this['_dialog']=_0x2a7fe3,this['_imageElement']=_0x151814,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 _0x2f3069=this['_imageElement'],_0x42c473=_0x2f3069['getAttribute']('uploadcareImageId'),_0x11f960=_0x2f3069['getAttribute']('src');if(_0x42c473)await this['_loadImageInfo'](_0x42c473,_0x11f960);else{if(this['_imageCache']['has'](_0x11f960)){const _0x1e8513=this['_imageCache']['get'](_0x11f960);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1e8513['url'],this['imageDimension']=_0x1e8513['dimension'],this['imageId']=_0x1e8513['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x6ed478}=this['_editor'],t=_0x6ed478['t'],_0x2fd78b=new _0xab02c6(_0x6ed478,this['imageStatus'],this['_attributes']);_0x2fd78b['bind']('status')['to'](this,'imageStatus'),_0x2fd78b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2fd78b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2fd78b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2fd78b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2d014,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2fd78b,'position':_0x49edb6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2fd78b['focus']();},'onHide':()=>{_0x2fd78b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x17eee5=>!_0x1cea80(_0x17eee5,_0x2fd78b['element'])}});}['_loadImageInfo'](_0x1520cd,_0x4b135a){return _0x46ef83['getInfo'](_0x1520cd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xfca989=>{const {width:_0x5d18e4,height:_0xc7073b}=_0xfca989['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4b135a,this['imageDimension']={'width':_0x5d18e4,'height':_0xc7073b},this['imageId']=_0x1520cd;})['catch'](_0x4fe784=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4fe784['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x555340,_0x2068d3){return this['_getImageAsFile'](_0x555340)['then'](_0x14d6a8=>_0x46ef83['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2068d3['signal'],'file':_0x14d6a8,'onProgress':_0x4ae354=>{_0x4ae354&&_0x4ae354['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4ae354['value']));}}))['then'](_0x5599f2=>{const {width:_0x6087f1,height:_0x4f1544}=_0x5599f2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5599f2['cdnUrl'],this['imageDimension']={'width':_0x6087f1,'height':_0x4f1544},this['imageId']=_0x5599f2['uuid'],this['imageUploadProgress']=null;const _0xe7ae1e=_0x555340['getAttribute']('src');this['_imageCache']['set'](_0xe7ae1e,{'id':_0x5599f2['uuid'],'url':_0x5599f2['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x49aebb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x49aebb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5755fb,_0xd98dea){_0x5755fb['on']('apply',(_0x32a5be,_0x5ae39b)=>{this['_replaceImage'](_0xd98dea,_0x5ae39b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5755fb['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5755fb['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5a1671,_0x1dfc0a,_0x43cca9){const _0xf9ad0e=this['_editor'],{width:_0x27a81b,height:_0x3581b2}=_0x3d667d(_0x1dfc0a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x23c283,imageSources:_0x4164db}=_0x3e59e3(_0x1dfc0a,_0x27a81b);_0xf9ad0e['model']['change'](_0x38ecad=>{if('$graveyard'===_0x5a1671['root']['rootName']){_0xf9ad0e['execute']('insertImage',{'imageType':_0x5a1671['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5a1671['getAttributes']()),'uploadcareImageId':_0x43cca9,'src':_0x23c283,'sources':_0x4164db,'width':_0x27a81b,'height':_0x3581b2}});const _0x22eeab=_0x5a1671['getChildren']();_0x5a1671=_0xf9ad0e['model']['document']['selection']['getSelectedElement']();for(const _0x45f91b of _0x22eeab)_0x38ecad['append'](_0x38ecad['cloneElement'](_0x45f91b),_0x5a1671);}else _0x38ecad['setSelection'](_0x5a1671,'on'),_0xf9ad0e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5a1671['getAttributes']()),'uploadcareImageId':_0x43cca9,'src':_0x23c283,'sources':_0x4164db,'width':_0x27a81b,'height':_0x3581b2},_0x5a1671);_0x38ecad['setSelection'](_0x5a1671,'on');});}async['_getImageAsFile'](_0x498ff7){const _0x194793=_0x35d4cb['window'],_0x333e31=_0x35d4cb['document']['location']['href'],_0x2ab8a=new _0x194793['URL'](_0x498ff7['getAttribute']('src'),_0x333e31);if('data:'===_0x2ab8a['protocol']){const _0x33e601=_0x2ab8a['href']['split'](','),_0x11d28d=_0x33e601[0x0]['match'](/:(.*?);/)[0x1],_0x588a21=_0x11d28d['split']('/')[0x1],_0x655c1c=_0x194793['atob'](_0x33e601[_0x33e601['length']-0x1]);let _0x2dffab=_0x655c1c['length'];const _0xdde32b=new _0x194793['Uint8Array'](_0x2dffab);for(;_0x2dffab--;)_0xdde32b[_0x2dffab]=_0x655c1c['charCodeAt'](_0x2dffab);return new _0x194793['File']([_0xdde32b],'image.'+_0x588a21,{'type':_0x11d28d});}const _0x85454a=_0x2ab8a['href']['split']('/'),_0x1c8a04=_0x85454a[_0x85454a['length']-0x1],_0x16eb9f=_0x1c8a04['split']('.')[0x1];return _0x194793['fetch'](_0x2ab8a['href'])['then'](_0x6609f7=>_0x6609f7['clone']()['blob']())['then'](_0x7d98a5=>new _0x194793['File']([_0x7d98a5],_0x1c8a04,{'type':'image/'+_0x16eb9f}));}}
23
+ import{global as _0x550a86,ObservableMixin as _0x185150}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2853ef}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x59741d}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x241c81}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x3e6110}from'../../utils/uploadutils.js';import{getImageUrls as _0x5a200a,getImageDimension as _0x38cf2d}from'../../utils/editingutils.js';import{isAncestor as _0x1be6ae}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x185150(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x25ad5e,_0x545e6f,_0x32ed80){super(),this['_editor']=_0x25ad5e,this['_dialog']=_0x545e6f,this['_imageElement']=_0x32ed80,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 _0xd055fa=this['_imageElement'],_0x48cc62=_0xd055fa['getAttribute']('uploadcareImageId'),_0x236da7=_0xd055fa['getAttribute']('src');if(_0x48cc62)await this['_loadImageInfo'](_0x48cc62,_0x236da7);else{if(this['_imageCache']['has'](_0x236da7)){const _0x476737=this['_imageCache']['get'](_0x236da7);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x476737['url'],this['imageDimension']=_0x476737['dimension'],this['imageId']=_0x476737['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1dbc39}=this['_editor'],t=_0x1dbc39['t'],_0x5cf458=new _0x241c81(_0x1dbc39,this['imageStatus'],this['_attributes']);_0x5cf458['bind']('status')['to'](this,'imageStatus'),_0x5cf458['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5cf458['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5cf458['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5cf458,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x59741d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5cf458,'position':_0x2853ef['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5cf458['focus']();},'onHide':()=>{_0x5cf458['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19feda=>!_0x1be6ae(_0x19feda,_0x5cf458['element'])}});}['_loadImageInfo'](_0x3bf4f9,_0x43fc3b){return _0x3e6110['getInfo'](_0x3bf4f9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5406a3=>{const {width:_0x365ab1,height:_0x3dda68}=_0x5406a3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x43fc3b,this['imageDimension']={'width':_0x365ab1,'height':_0x3dda68},this['imageId']=_0x3bf4f9;})['catch'](_0x39a8c2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x39a8c2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x413867,_0x524bf7){return this['_getImageAsFile'](_0x413867)['then'](_0x206ebc=>_0x3e6110['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x524bf7['signal'],'file':_0x206ebc,'onProgress':_0x30cf9e=>{_0x30cf9e&&_0x30cf9e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x30cf9e['value']));}}))['then'](_0x3f23c5=>{const {width:_0x567dd3,height:_0x4c1c20}=_0x3f23c5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f23c5['cdnUrl'],this['imageDimension']={'width':_0x567dd3,'height':_0x4c1c20},this['imageId']=_0x3f23c5['uuid'],this['imageUploadProgress']=null;const _0x265891=_0x413867['getAttribute']('src');this['_imageCache']['set'](_0x265891,{'id':_0x3f23c5['uuid'],'url':_0x3f23c5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4d5e55=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d5e55['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x475f62,_0x46568b){_0x475f62['on']('apply',(_0x1b2500,_0x1552e2)=>{this['_replaceImage'](_0x46568b,_0x1552e2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x475f62['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x475f62['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xa1b634,_0x2077fe,_0x16a8e3){const _0x52642b=this['_editor'],{width:_0x18fefe,height:_0x19b174}=_0x38cf2d(_0x2077fe,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5b40f9,imageSources:_0x7e3177}=_0x5a200a(_0x2077fe,_0x18fefe);_0x52642b['model']['change'](_0x1fad60=>{if('$graveyard'===_0xa1b634['root']['rootName']){_0x52642b['execute']('insertImage',{'imageType':_0xa1b634['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xa1b634['getAttributes']()),'uploadcareImageId':_0x16a8e3,'src':_0x5b40f9,'sources':_0x7e3177,'width':_0x18fefe,'height':_0x19b174}});const _0x1ec761=_0xa1b634['getChildren']();_0xa1b634=_0x52642b['model']['document']['selection']['getSelectedElement']();for(const _0x4928fe of _0x1ec761)_0x1fad60['append'](_0x1fad60['cloneElement'](_0x4928fe),_0xa1b634);}else _0x1fad60['setSelection'](_0xa1b634,'on'),_0x52642b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xa1b634['getAttributes']()),'uploadcareImageId':_0x16a8e3,'src':_0x5b40f9,'sources':_0x7e3177,'width':_0x18fefe,'height':_0x19b174},_0xa1b634);_0x1fad60['setSelection'](_0xa1b634,'on');});}async['_getImageAsFile'](_0x5cd0c6){const _0x4b5252=_0x550a86['window'],_0x45318d=_0x550a86['document']['location']['href'],_0x3ef648=new _0x4b5252['URL'](_0x5cd0c6['getAttribute']('src'),_0x45318d);if('data:'===_0x3ef648['protocol']){const _0x4eae4a=_0x3ef648['href']['split'](','),_0x44cbe2=_0x4eae4a[0x0]['match'](/:(.*?);/)[0x1],_0x1a3456=_0x44cbe2['split']('/')[0x1],_0x530d23=_0x4b5252['atob'](_0x4eae4a[_0x4eae4a['length']-0x1]);let _0xaff9f1=_0x530d23['length'];const _0x34153d=new _0x4b5252['Uint8Array'](_0xaff9f1);for(;_0xaff9f1--;)_0x34153d[_0xaff9f1]=_0x530d23['charCodeAt'](_0xaff9f1);return new _0x4b5252['File']([_0x34153d],'image.'+_0x1a3456,{'type':_0x44cbe2});}const _0x1a3647=_0x3ef648['href']['split']('/'),_0x136543=_0x1a3647[_0x1a3647['length']-0x1],_0x2ab93d=_0x136543['split']('.')[0x1];return _0x4b5252['fetch'](_0x3ef648['href'])['then'](_0x50a028=>_0x50a028['clone']()['blob']())['then'](_0x48b9ce=>new _0x4b5252['File']([_0x48b9ce],_0x136543,{'type':'image/'+_0x2ab93d}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2798(){const _0x41413c=['image-edit','3204080CsBRbh','10956VmjXFB','setTemplate','450396BxOajv','20pcvzsF','51364wSEbpo','uc-cloud-image-editor','set','132270oZCXjI','imageSrc','387RUCOlZ','bindTemplate','631354xTkhra','7PXRqsG','uc-light','ck-uploadcare-theme','24nytMnV','1534968HtMiIK','23647VyTuSU','2BKGLvU'];_0x2798=function(){return _0x41413c;};return _0x2798();}function _0x34e7(_0x4b7108,_0x18440f){const _0x2798fc=_0x2798();return _0x34e7=function(_0x34e777,_0x5e990d){_0x34e777=_0x34e777-0x72;let _0x515094=_0x2798fc[_0x34e777];return _0x515094;},_0x34e7(_0x4b7108,_0x18440f);}(function(_0x52403f,_0x226c89){const _0x3bdedc=_0x34e7,_0x14b075=_0x52403f();while(!![]){try{const _0x4d48bc=parseInt(_0x3bdedc(0x75))/0x1*(-parseInt(_0x3bdedc(0x83))/0x2)+parseInt(_0x3bdedc(0x72))/0x3*(parseInt(_0x3bdedc(0x7c))/0x4)+parseInt(_0x3bdedc(0x7b))/0x5*(parseInt(_0x3bdedc(0x7a))/0x6)+-parseInt(_0x3bdedc(0x84))/0x7*(parseInt(_0x3bdedc(0x73))/0x8)+parseInt(_0x3bdedc(0x81))/0x9*(-parseInt(_0x3bdedc(0x7f))/0xa)+-parseInt(_0x3bdedc(0x77))/0xb+-parseInt(_0x3bdedc(0x78))/0xc*(-parseInt(_0x3bdedc(0x74))/0xd);if(_0x4d48bc===_0x226c89)break;else _0x14b075['push'](_0x14b075['shift']());}catch(_0x271943){_0x14b075['push'](_0x14b075['shift']());}}}(_0x2798,0x5ce39));import{View as _0x35864e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x35864e{constructor(_0x259ccc,_0x5824ba){const _0x151bb9=_0x34e7;super(_0x259ccc);const _0x595fb1=this[_0x151bb9(0x82)];this[_0x151bb9(0x7e)](_0x151bb9(0x80),''),this[_0x151bb9(0x79)]({'tag':_0x151bb9(0x7d),'attributes':{..._0x5824ba,'class':[_0x151bb9(0x85),_0x151bb9(0x86)],'ctx-name':_0x151bb9(0x76),'cdn-url':_0x595fb1['to'](_0x151bb9(0x80))}});}}
23
+ (function(_0x2b7334,_0x59ed5e){const _0x5c0f75=_0x4b96,_0xbcde94=_0x2b7334();while(!![]){try{const _0x2ee699=parseInt(_0x5c0f75(0x19b))/0x1*(-parseInt(_0x5c0f75(0x19a))/0x2)+-parseInt(_0x5c0f75(0x19e))/0x3*(-parseInt(_0x5c0f75(0x19f))/0x4)+-parseInt(_0x5c0f75(0x196))/0x5+-parseInt(_0x5c0f75(0x1a3))/0x6*(parseInt(_0x5c0f75(0x1a5))/0x7)+-parseInt(_0x5c0f75(0x198))/0x8*(-parseInt(_0x5c0f75(0x1a1))/0x9)+-parseInt(_0x5c0f75(0x1a0))/0xa+parseInt(_0x5c0f75(0x1a4))/0xb;if(_0x2ee699===_0x59ed5e)break;else _0xbcde94['push'](_0xbcde94['shift']());}catch(_0x4eb76d){_0xbcde94['push'](_0xbcde94['shift']());}}}(_0x551e,0x4409d));function _0x4b96(_0x49e9fd,_0x3c4025){const _0x551ea4=_0x551e();return _0x4b96=function(_0x4b969e,_0x243fc4){_0x4b969e=_0x4b969e-0x196;let _0x42898d=_0x551ea4[_0x4b969e];return _0x42898d;},_0x4b96(_0x49e9fd,_0x3c4025);}import{View as _0x322af9}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x322af9{constructor(_0x1659ce,_0x3e76c6){const _0x6bfbe9=_0x4b96;super(_0x1659ce);const _0x1db54c=this[_0x6bfbe9(0x1a2)];this[_0x6bfbe9(0x1a6)](_0x6bfbe9(0x1a7),''),this[_0x6bfbe9(0x19d)]({'tag':_0x6bfbe9(0x197),'attributes':{..._0x3e76c6,'class':[_0x6bfbe9(0x1a8),_0x6bfbe9(0x19c)],'ctx-name':_0x6bfbe9(0x199),'cdn-url':_0x1db54c['to'](_0x6bfbe9(0x1a7))}});}}function _0x551e(){const _0x304722=['246069NBxQlZ','bindTemplate','1302234cPwznl','4347695xDeCPy','7nrkesC','set','imageSrc','uc-light','13845hpnMTX','uc-cloud-image-editor','120bAkRWK','image-edit','11238pTUYmK','86NvcuDJ','ck-uploadcare-theme','setTemplate','69RsBiNe','92472RISAMr','3553470dVDdsC'];_0x551e=function(){return _0x304722;};return _0x551e();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x5629ec}from'ckeditor5/src/icons.js';import{ButtonView as _0x3a787a,IconView as _0x13b58e,View as _0x14209e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x14209e{constructor(_0x4a418e){super(_0x4a418e);const t=_0x4a418e['t'];this['set']('errorType',null);const _0x5ead18=new _0x3a787a(_0x4a418e);_0x5ead18['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5ead18['withText']=!0x0,_0x5ead18['class']='ck-button-action',_0x5ead18['on']('execute',()=>{this['fire']('retry');}),_0x5ead18['bind']('isVisible')['to'](this,'errorType',_0x5b3384=>'NotFound'!==_0x5b3384);const _0x4442db=new _0x13b58e();_0x4442db['content']=_0x5629ec,_0x4442db['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x569a72=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':[_0x4442db,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x569a72['to']('errorType',_0x42d8bd=>t('NotFound'!==_0x42d8bd?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5ead18]},{'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 _0x147b18}from'ckeditor5/src/icons.js';import{ButtonView as _0x33402f,IconView as _0x526203,View as _0x38e9a6}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x38e9a6{constructor(_0x1364d3){super(_0x1364d3);const t=_0x1364d3['t'];this['set']('errorType',null);const _0x26b08e=new _0x33402f(_0x1364d3);_0x26b08e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x26b08e['withText']=!0x0,_0x26b08e['class']='ck-button-action',_0x26b08e['on']('execute',()=>{this['fire']('retry');}),_0x26b08e['bind']('isVisible')['to'](this,'errorType',_0x2a727f=>'NotFound'!==_0x2a727f);const _0x56b64f=new _0x526203();_0x56b64f['content']=_0x147b18,_0x56b64f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2aa810=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':[_0x56b64f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2aa810['to']('errorType',_0x21d8f5=>t('NotFound'!==_0x21d8f5?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x26b08e]},{'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 _0x43df18,View as _0x231dce}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x231dce{constructor(_0x84ae5a){super(_0x84ae5a);const t=_0x84ae5a['t'],_0x27a3fb=this['bindTemplate'],_0x279341=new _0x43df18();_0x279341['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':[_0x279341,{'text':_0x27a3fb['to']('imageUploadProgress',_0x3c4723=>t('Loading\x20image...')+'\x20('+(_0x3c4723||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 _0x2bf02e,View as _0x399e07}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x399e07{constructor(_0x5d47e4){super(_0x5d47e4);const t=_0x5d47e4['t'],_0x717e86=this['bindTemplate'],_0x3b07ba=new _0x2bf02e();_0x3b07ba['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':[_0x3b07ba,{'text':_0x717e86['to']('imageUploadProgress',_0x4186cf=>t('Loading\x20image...')+'\x20('+(_0x4186cf||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 _0xad7a(_0x2a6afb,_0x605168){const _0x52bf89=_0x52bf();return _0xad7a=function(_0xad7ab0,_0xb4936d){_0xad7ab0=_0xad7ab0-0x13b;let _0x1a4800=_0x52bf89[_0xad7ab0];return _0x1a4800;},_0xad7a(_0x2a6afb,_0x605168);}const _0x347f3b=_0xad7a;(function(_0x26ff0d,_0x476fa0){const _0x162be5=_0xad7a,_0x1a08f5=_0x26ff0d();while(!![]){try{const _0x3503b4=parseInt(_0x162be5(0x15b))/0x1*(-parseInt(_0x162be5(0x164))/0x2)+parseInt(_0x162be5(0x16e))/0x3+parseInt(_0x162be5(0x168))/0x4*(parseInt(_0x162be5(0x144))/0x5)+-parseInt(_0x162be5(0x142))/0x6+parseInt(_0x162be5(0x161))/0x7+parseInt(_0x162be5(0x155))/0x8+-parseInt(_0x162be5(0x159))/0x9;if(_0x3503b4===_0x476fa0)break;else _0x1a08f5['push'](_0x1a08f5['shift']());}catch(_0x25815f){_0x1a08f5['push'](_0x1a08f5['shift']());}}}(_0x52bf,0x7809c));import{View as _0x34d59e}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3dea2a}from'./uploadcareimageeditformloadingview.js';function _0x52bf(){const _0x52b1fb=['uc-cloud-image-editor','addEventListener','target','retry','5799318XnaWzv','_waitForImageEditorComponent','3365ujbjEO','addedNodes','_setView','length','observe','render','clear','ready','addMany','getFocusableElement','_focusableView','nodeName','_editingView','_errorView','cdnUrl','querySelector','element','6627104juaLHq','status','_items','uploading','5061258SxSjKb','detail','1acrIjN','ck-uploadcare-form','div','error','createCollection','focus','4581213OLuidn','apply','once','1739672bJCswi','filter','toLowerCase','_addErrorViewListeners','5684bHhSSb','setTemplate','ck-reset_all-excluded','disconnect','set','fire','1353741fXicYK','change:status','cancel','add','_addUploadcareImageEditorListeners','_loadingView'];_0x52bf=function(){return _0x52b1fb;};return _0x52bf();}import{UploadcareImageEditFormErrorView as _0x58acc6}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x456827}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x5f4cfa}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x5f4cfa{[_0x347f3b(0x157)];[_0x347f3b(0x13d)];[_0x347f3b(0x151)];[_0x347f3b(0x150)];[_0x347f3b(0x14e)];constructor(_0x81663c,_0x45210e,_0x313ab6){const _0x196130=_0x347f3b;super(_0x81663c),this[_0x196130(0x157)]=this[_0x196130(0x15f)](),this[_0x196130(0x13d)]=new _0x3dea2a(_0x81663c),this[_0x196130(0x151)]=new _0x58acc6(_0x81663c),this[_0x196130(0x150)]=new _0x456827(_0x81663c,_0x313ab6),this[_0x196130(0x14e)]=new _0x34d59e(_0x81663c),this[_0x196130(0x14e)][_0x196130(0x169)](this[_0x196130(0x14d)]()),this[_0x196130(0x16c)](_0x196130(0x156),_0x45210e),this[_0x196130(0x169)]({'tag':_0x196130(0x15d),'attributes':{'class':['ck',_0x196130(0x16a),_0x196130(0x15c)],'tabindex':'-1'},'children':this[_0x196130(0x157)]}),this[_0x196130(0x146)](),this[_0x196130(0x163)](_0x196130(0x149),()=>{const _0x210c42=_0x196130;this[_0x210c42(0x143)](this[_0x210c42(0x154)],_0x4d5f12=>{const _0x3290b8=_0x210c42;this[_0x3290b8(0x13c)](_0x4d5f12);});}),this['on'](_0x196130(0x16f),()=>{const _0x45f343=_0x196130;this[_0x45f343(0x146)]();}),this[_0x196130(0x167)]();}[_0x347f3b(0x160)](){const _0x48d1d5=_0x347f3b;this[_0x48d1d5(0x154)][_0x48d1d5(0x160)]();}[_0x347f3b(0x146)](){const _0x33b221=_0x347f3b;switch(this[_0x33b221(0x157)][_0x33b221(0x14a)](),this[_0x33b221(0x156)]){case _0x33b221(0x158):this[_0x33b221(0x157)][_0x33b221(0x13b)](this[_0x33b221(0x13d)]);break;case _0x33b221(0x15e):this[_0x33b221(0x157)][_0x33b221(0x13b)](this[_0x33b221(0x151)]);break;case _0x33b221(0x14b):this[_0x33b221(0x157)][_0x33b221(0x14c)]([this[_0x33b221(0x150)],this[_0x33b221(0x14e)]]);}}[_0x347f3b(0x143)](_0x5f33c4,_0xecc903){const _0x4bd0f0=_0x347f3b,_0x47e066=_0x4bd0f0(0x13e),_0x4f040f=_0x5f33c4[_0x4bd0f0(0x153)](_0x47e066);if(_0x4f040f)return _0xecc903(_0x4f040f);const _0x4c86d1=new MutationObserver(_0x261712=>{const _0x2f628d=_0x4bd0f0,_0x2dd962=_0x261712[_0x2f628d(0x165)](_0x3aa981=>_0x3aa981[_0x2f628d(0x140)]===_0x5f33c4&&_0x3aa981[_0x2f628d(0x145)][_0x2f628d(0x147)]>0x0&&_0x3aa981[_0x2f628d(0x145)][0x0][_0x2f628d(0x14f)][_0x2f628d(0x166)]()===_0x47e066);_0x2dd962[_0x2f628d(0x147)]&&(_0x4c86d1[_0x2f628d(0x16b)](),_0xecc903(_0x2dd962[0x0][_0x2f628d(0x145)][0x0]));});_0x4c86d1[_0x4bd0f0(0x148)](_0x5f33c4,{'childList':!0x0,'subtree':!0x0});}[_0x347f3b(0x13c)](_0x518474){const _0x27bb85=_0x347f3b;_0x518474[_0x27bb85(0x13f)](_0x27bb85(0x162),_0x49498f=>{const _0x340131=_0x27bb85;this[_0x340131(0x16d)](_0x340131(0x162),{'imageSrc':_0x49498f[_0x340131(0x15a)][_0x340131(0x152)]});}),_0x518474[_0x27bb85(0x13f)](_0x27bb85(0x170),()=>{const _0x152ae4=_0x27bb85;this[_0x152ae4(0x16d)](_0x152ae4(0x170));});}[_0x347f3b(0x167)](){const _0x5bcb9c=_0x347f3b;this[_0x5bcb9c(0x151)]['on'](_0x5bcb9c(0x141),()=>{const _0x31a403=_0x5bcb9c;this[_0x31a403(0x16d)](_0x31a403(0x141));});}}
23
+ function _0x27d0(){const _0x21fb91=['filter','setTemplate','87550uqsIEt','addMany','cancel','_addUploadcareImageEditorListeners','596309GtKdYC','_editingView','ck-reset_all-excluded','ck-uploadcare-form','ready','add','_focusableView','_addErrorViewListeners','status','810798IqGFFW','uc-cloud-image-editor','_waitForImageEditorComponent','_items','1284402tbAvnL','16dwoKGL','1231479TxRGRG','getFocusableElement','fire','cdnUrl','_loadingView','7KkUzeb','observe','addEventListener','querySelector','render','4Fxivqd','change:status','uploading','apply','element','_errorView','disconnect','detail','length','focus','addedNodes','43552PAMVtC','set','target','132jjydYx','div','retry','_setView','once','clear','error','createCollection','toLowerCase','nodeName','1203805rxaMJX'];_0x27d0=function(){return _0x21fb91;};return _0x27d0();}const _0x241d6c=_0x3d05;(function(_0x37daa4,_0x1cd8ab){const _0x137c78=_0x3d05,_0x7f85d0=_0x37daa4();while(!![]){try{const _0x167445=-parseInt(_0x137c78(0x1af))/0x1*(parseInt(_0x137c78(0x1bf))/0x2)+parseInt(_0x137c78(0x1a4))/0x3+-parseInt(_0x137c78(0x1b4))/0x4*(-parseInt(_0x137c78(0x1cc))/0x5)+parseInt(_0x137c78(0x1a8))/0x6+-parseInt(_0x137c78(0x19b))/0x7*(parseInt(_0x137c78(0x1a9))/0x8)+-parseInt(_0x137c78(0x1aa))/0x9+-parseInt(_0x137c78(0x197))/0xa*(parseInt(_0x137c78(0x1c2))/0xb);if(_0x167445===_0x1cd8ab)break;else _0x7f85d0['push'](_0x7f85d0['shift']());}catch(_0x201485){_0x7f85d0['push'](_0x7f85d0['shift']());}}}(_0x27d0,0x2728d));import{View as _0x20b589}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x426c3a}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x5930d5}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x561f92}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x5aa18d}from'../../utils/dialogfocusmanagerview.js';function _0x3d05(_0x3d190e,_0x397296){const _0x27d06d=_0x27d0();return _0x3d05=function(_0x3d0557,_0x3b43ee){_0x3d0557=_0x3d0557-0x197;let _0x3cbb53=_0x27d06d[_0x3d0557];return _0x3cbb53;},_0x3d05(_0x3d190e,_0x397296);}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x5aa18d{[_0x241d6c(0x1a7)];[_0x241d6c(0x1ae)];[_0x241d6c(0x1b9)];[_0x241d6c(0x19c)];[_0x241d6c(0x1a1)];constructor(_0x571de4,_0x48d32a,_0x178f95){const _0x252178=_0x241d6c;super(_0x571de4),this[_0x252178(0x1a7)]=this[_0x252178(0x1c9)](),this[_0x252178(0x1ae)]=new _0x426c3a(_0x571de4),this[_0x252178(0x1b9)]=new _0x5930d5(_0x571de4),this[_0x252178(0x19c)]=new _0x561f92(_0x571de4,_0x178f95),this[_0x252178(0x1a1)]=new _0x20b589(_0x571de4),this[_0x252178(0x1a1)][_0x252178(0x1ce)](this[_0x252178(0x1ab)]()),this[_0x252178(0x1c0)](_0x252178(0x1a3),_0x48d32a),this[_0x252178(0x1ce)]({'tag':_0x252178(0x1c3),'attributes':{'class':['ck',_0x252178(0x19d),_0x252178(0x19e)],'tabindex':'-1'},'children':this[_0x252178(0x1a7)]}),this[_0x252178(0x1c5)](),this[_0x252178(0x1c6)](_0x252178(0x1b3),()=>{const _0x3196ae=_0x252178;this[_0x3196ae(0x1a6)](this[_0x3196ae(0x1b8)],_0x47b56e=>{const _0x5e8747=_0x3196ae;this[_0x5e8747(0x19a)](_0x47b56e);});}),this['on'](_0x252178(0x1b5),()=>{const _0xe29b57=_0x252178;this[_0xe29b57(0x1c5)]();}),this[_0x252178(0x1a2)]();}[_0x241d6c(0x1bd)](){const _0x5d74b2=_0x241d6c;this[_0x5d74b2(0x1b8)][_0x5d74b2(0x1bd)]();}[_0x241d6c(0x1c5)](){const _0x234a84=_0x241d6c;switch(this[_0x234a84(0x1a7)][_0x234a84(0x1c7)](),this[_0x234a84(0x1a3)]){case _0x234a84(0x1b6):this[_0x234a84(0x1a7)][_0x234a84(0x1a0)](this[_0x234a84(0x1ae)]);break;case _0x234a84(0x1c8):this[_0x234a84(0x1a7)][_0x234a84(0x1a0)](this[_0x234a84(0x1b9)]);break;case _0x234a84(0x19f):this[_0x234a84(0x1a7)][_0x234a84(0x198)]([this[_0x234a84(0x19c)],this[_0x234a84(0x1a1)]]);}}[_0x241d6c(0x1a6)](_0x2ad465,_0x468a5e){const _0x5a6e22=_0x241d6c,_0x231af6=_0x5a6e22(0x1a5),_0x472446=_0x2ad465[_0x5a6e22(0x1b2)](_0x231af6);if(_0x472446)return _0x468a5e(_0x472446);const _0x1df9b9=new MutationObserver(_0x3562fa=>{const _0x5185a3=_0x5a6e22,_0x275f39=_0x3562fa[_0x5185a3(0x1cd)](_0xab1020=>_0xab1020[_0x5185a3(0x1c1)]===_0x2ad465&&_0xab1020[_0x5185a3(0x1be)][_0x5185a3(0x1bc)]>0x0&&_0xab1020[_0x5185a3(0x1be)][0x0][_0x5185a3(0x1cb)][_0x5185a3(0x1ca)]()===_0x231af6);_0x275f39[_0x5185a3(0x1bc)]&&(_0x1df9b9[_0x5185a3(0x1ba)](),_0x468a5e(_0x275f39[0x0][_0x5185a3(0x1be)][0x0]));});_0x1df9b9[_0x5a6e22(0x1b0)](_0x2ad465,{'childList':!0x0,'subtree':!0x0});}[_0x241d6c(0x19a)](_0x232010){const _0x362dbc=_0x241d6c;_0x232010[_0x362dbc(0x1b1)](_0x362dbc(0x1b7),_0x1b2489=>{const _0x46842f=_0x362dbc;this[_0x46842f(0x1ac)](_0x46842f(0x1b7),{'imageSrc':_0x1b2489[_0x46842f(0x1bb)][_0x46842f(0x1ad)]});}),_0x232010[_0x362dbc(0x1b1)](_0x362dbc(0x199),()=>{const _0x41e034=_0x362dbc;this[_0x41e034(0x1ac)](_0x41e034(0x199));});}[_0x241d6c(0x1a2)](){const _0x5022ce=_0x241d6c;this[_0x5022ce(0x1b9)]['on'](_0x5022ce(0x1c4),()=>{const _0x3e1851=_0x5022ce;this[_0x3e1851(0x1ac)](_0x3e1851(0x1c4));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2569fa=_0x374c;function _0x4015(){const _0x53d57e=['execute','config','element','model','382OXXoyb','editor','3049039fcdfxG','2139642PNAtNP','149020CSwNSW','2456HwbOgh','document','imageBlock','8VNktdW','uploadcare.allowExternalImagesEditing','unbind','imageEditController','_isEditable','requires','1926516PmbDvq','1023483YRAydr','refresh','get','imageInline','selection','isActive','isEnabled','plugins','set','bind','getSelectedElement','6379812imqfcO'];_0x4015=function(){return _0x53d57e;};return _0x4015();}(function(_0x20d8ff,_0x1ea3a6){const _0x4bf92a=_0x374c,_0x3101ee=_0x20d8ff();while(!![]){try{const _0x1507c8=parseInt(_0x4bf92a(0x1db))/0x1*(parseInt(_0x4bf92a(0x1e0))/0x2)+parseInt(_0x4bf92a(0x1cb))/0x3+-parseInt(_0x4bf92a(0x1ca))/0x4+parseInt(_0x4bf92a(0x1df))/0x5+-parseInt(_0x4bf92a(0x1de))/0x6+-parseInt(_0x4bf92a(0x1dd))/0x7*(parseInt(_0x4bf92a(0x1c4))/0x8)+parseInt(_0x4bf92a(0x1d6))/0x9;if(_0x1507c8===_0x1ea3a6)break;else _0x3101ee['push'](_0x3101ee['shift']());}catch(_0x13f3e7){_0x3101ee['push'](_0x3101ee['shift']());}}}(_0x4015,0x432ac));import{Command as _0x2eb27c}from'ckeditor5/src/core.js';function _0x374c(_0x416f88,_0x544987){const _0x4015e5=_0x4015();return _0x374c=function(_0x374c40,_0x179b45){_0x374c40=_0x374c40-0x1c2;let _0x2ea83f=_0x4015e5[_0x374c40];return _0x2ea83f;},_0x374c(_0x416f88,_0x544987);}import{Dialog as _0x223284}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x19a5cb}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x505f13}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2eb27c{[_0x2569fa(0x1c7)];static get[_0x2569fa(0x1c9)](){return[_0x223284];}[_0x2569fa(0x1c8)];constructor(_0x1fd030){const _0x49b4c3=_0x2569fa;super(_0x1fd030),this[_0x49b4c3(0x1c7)]=void 0x0,this[_0x49b4c3(0x1c8)]=_0x505f13(_0x1fd030[_0x49b4c3(0x1d8)][_0x49b4c3(0x1cd)](_0x49b4c3(0x1c5))||[]),this[_0x49b4c3(0x1d3)]({'isActive':!0x1});}[_0x2569fa(0x1cc)](){const _0xeacda8=_0x2569fa,_0x49971b=this[_0xeacda8(0x1dc)][_0xeacda8(0x1da)][_0xeacda8(0x1c2)][_0xeacda8(0x1cf)][_0xeacda8(0x1d5)]();this[_0xeacda8(0x1d1)]=this[_0xeacda8(0x1c8)](_0x49971b);}[_0x2569fa(0x1d7)](){const _0x5b5332=_0x2569fa;this[_0x5b5332(0x1c7)]&&(this[_0x5b5332(0x1c6)](_0x5b5332(0x1d0)),this[_0x5b5332(0x1c7)]=void 0x0);const _0x1ba13f=this[_0x5b5332(0x1dc)][_0x5b5332(0x1da)][_0x5b5332(0x1c2)][_0x5b5332(0x1cf)][_0x5b5332(0x1d5)]();_0x1ba13f&&(_0x1ba13f['is'](_0x5b5332(0x1d9),_0x5b5332(0x1c3))||_0x1ba13f['is'](_0x5b5332(0x1d9),_0x5b5332(0x1ce)))&&(this[_0x5b5332(0x1c7)]=new _0x19a5cb(this[_0x5b5332(0x1dc)],this[_0x5b5332(0x1dc)][_0x5b5332(0x1d2)][_0x5b5332(0x1cd)](_0x223284),_0x1ba13f),this[_0x5b5332(0x1d4)](_0x5b5332(0x1d0))['to'](this[_0x5b5332(0x1c7)],_0x5b5332(0x1d0)));}}
23
+ const _0x14a509=_0x3446;(function(_0x2d2259,_0xcad99b){const _0x54edcc=_0x3446,_0x1401b6=_0x2d2259();while(!![]){try{const _0x103c7d=parseInt(_0x54edcc(0x182))/0x1+parseInt(_0x54edcc(0x195))/0x2+parseInt(_0x54edcc(0x186))/0x3*(parseInt(_0x54edcc(0x18e))/0x4)+-parseInt(_0x54edcc(0x185))/0x5+parseInt(_0x54edcc(0x189))/0x6+-parseInt(_0x54edcc(0x19a))/0x7*(-parseInt(_0x54edcc(0x184))/0x8)+-parseInt(_0x54edcc(0x190))/0x9;if(_0x103c7d===_0xcad99b)break;else _0x1401b6['push'](_0x1401b6['shift']());}catch(_0x4d9391){_0x1401b6['push'](_0x1401b6['shift']());}}}(_0x552b,0x6c896));import{Command as _0xe0d348}from'ckeditor5/src/core.js';function _0x3446(_0x557812,_0x4f8319){const _0x552b0b=_0x552b();return _0x3446=function(_0x344644,_0x26ace3){_0x344644=_0x344644-0x181;let _0x2d4c0b=_0x552b0b[_0x344644];return _0x2d4c0b;},_0x3446(_0x557812,_0x4f8319);}import{Dialog as _0xf55465}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x384263}from'./ui/uploadcareimageeditcontroller.js';function _0x552b(){const _0x37f2bc=['bind','imageEditController','943620RraUHl','isEnabled','model','isActive','plugins','39000kcfehi','uploadcare.allowExternalImagesEditing','13260870rhjAmG','imageBlock','getSelectedElement','config','document','311176lbmFDq','requires','imageInline','_isEditable','refresh','3665067DPKRhj','set','element','unbind','selection','get','editor','587840isJifS','execute','8JVHmBa','846415oFFPQO','204haIhpH'];_0x552b=function(){return _0x37f2bc;};return _0x552b();}import{createEditabilityChecker as _0x3024a9}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0xe0d348{[_0x14a509(0x188)];static get[_0x14a509(0x196)](){return[_0xf55465];}[_0x14a509(0x198)];constructor(_0x9b7ddf){const _0xaf64ef=_0x14a509;super(_0x9b7ddf),this[_0xaf64ef(0x188)]=void 0x0,this[_0xaf64ef(0x198)]=_0x3024a9(_0x9b7ddf[_0xaf64ef(0x193)][_0xaf64ef(0x19f)](_0xaf64ef(0x18f))||[]),this[_0xaf64ef(0x19b)]({'isActive':!0x1});}[_0x14a509(0x199)](){const _0x334bbf=_0x14a509,_0x3d78c0=this[_0x334bbf(0x181)][_0x334bbf(0x18b)][_0x334bbf(0x194)][_0x334bbf(0x19e)][_0x334bbf(0x192)]();this[_0x334bbf(0x18a)]=this[_0x334bbf(0x198)](_0x3d78c0);}[_0x14a509(0x183)](){const _0x3818d2=_0x14a509;this[_0x3818d2(0x188)]&&(this[_0x3818d2(0x19d)](_0x3818d2(0x18c)),this[_0x3818d2(0x188)]=void 0x0);const _0x55ab9e=this[_0x3818d2(0x181)][_0x3818d2(0x18b)][_0x3818d2(0x194)][_0x3818d2(0x19e)][_0x3818d2(0x192)]();_0x55ab9e&&(_0x55ab9e['is'](_0x3818d2(0x19c),_0x3818d2(0x191))||_0x55ab9e['is'](_0x3818d2(0x19c),_0x3818d2(0x197)))&&(this[_0x3818d2(0x188)]=new _0x384263(this[_0x3818d2(0x181)],this[_0x3818d2(0x181)][_0x3818d2(0x18d)][_0x3818d2(0x19f)](_0xf55465),_0x55ab9e),this[_0x3818d2(0x187)](_0x3818d2(0x18c))['to'](this[_0x3818d2(0x188)],_0x3818d2(0x18c)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ced9e=_0x4027;function _0x4027(_0x283445,_0x5da5c3){const _0x42ea3e=_0x42ea();return _0x4027=function(_0x4027ee,_0x5cd712){_0x4027ee=_0x4027ee-0x87;let _0xa62a90=_0x42ea3e[_0x4027ee];return _0xa62a90;},_0x4027(_0x283445,_0x5da5c3);}(function(_0x2c4d3d,_0x468d45){const _0x109dbf=_0x4027,_0x318295=_0x2c4d3d();while(!![]){try{const _0x3bb1ce=-parseInt(_0x109dbf(0x8e))/0x1*(parseInt(_0x109dbf(0x8d))/0x2)+-parseInt(_0x109dbf(0x91))/0x3*(-parseInt(_0x109dbf(0x96))/0x4)+-parseInt(_0x109dbf(0x9b))/0x5+parseInt(_0x109dbf(0x8f))/0x6*(-parseInt(_0x109dbf(0x92))/0x7)+parseInt(_0x109dbf(0x93))/0x8*(-parseInt(_0x109dbf(0x9d))/0x9)+parseInt(_0x109dbf(0x88))/0xa*(-parseInt(_0x109dbf(0x89))/0xb)+parseInt(_0x109dbf(0x8a))/0xc;if(_0x3bb1ce===_0x468d45)break;else _0x318295['push'](_0x318295['shift']());}catch(_0x4c59f7){_0x318295['push'](_0x318295['shift']());}}}(_0x42ea,0xd2b48));import{Plugin as _0x1ae818}from'ckeditor5/src/core.js';function _0x42ea(){const _0x52ffa7=['12472zXyGHD','init','commands','6701476vVMvrU','isOfficialPlugin','isPremiumPlugin','ImageEditing','UploadcareImageEditEditing','6169425HRYMiC','uploadcareImageReplace','6408iiRDLk','add','pluginName','465890FrJVJT','121OxabBV','59425776TULnbP','ImageUtils','requires','1614946rZtojO','2QkNYsX','474jPOEJa','uploadcareImageEdit','3oBnLhV','114583kZSjQK'];_0x42ea=function(){return _0x52ffa7;};return _0x42ea();}import{Notification as _0x589a28}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x213995}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0xfc58a6}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2bd80a}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x1ae818{static get[_0x2ced9e(0x87)](){const _0x2f58bb=_0x2ced9e;return _0x2f58bb(0x9a);}static get[_0x2ced9e(0x8c)](){const _0x403618=_0x2ced9e;return[_0x2bd80a,_0x589a28,_0x403618(0x8b),_0x403618(0x99)];}static get[_0x2ced9e(0x97)](){return!0x0;}static get[_0x2ced9e(0x98)](){return!0x0;}[_0x2ced9e(0x94)](){const _0x18cf4f=_0x2ced9e,{editor:_0x5cc555}=this;_0x5cc555[_0x18cf4f(0x95)][_0x18cf4f(0x9e)](_0x18cf4f(0x90),new _0x213995(_0x5cc555)),_0x5cc555[_0x18cf4f(0x95)][_0x18cf4f(0x9e)](_0x18cf4f(0x9c),new _0xfc58a6(_0x5cc555));}}
23
+ const _0x51bea6=_0x5b6c;function _0x5b6c(_0x21e10f,_0x874281){const _0x357f5b=_0x357f();return _0x5b6c=function(_0x5b6c04,_0x58d5e5){_0x5b6c04=_0x5b6c04-0x89;let _0xa45676=_0x357f5b[_0x5b6c04];return _0xa45676;},_0x5b6c(_0x21e10f,_0x874281);}(function(_0x659c33,_0x32f6d3){const _0x273dd5=_0x5b6c,_0x2d998a=_0x659c33();while(!![]){try{const _0x5e676a=-parseInt(_0x273dd5(0x9b))/0x1+parseInt(_0x273dd5(0x97))/0x2*(parseInt(_0x273dd5(0x9d))/0x3)+parseInt(_0x273dd5(0x99))/0x4+-parseInt(_0x273dd5(0x90))/0x5+parseInt(_0x273dd5(0x98))/0x6+parseInt(_0x273dd5(0x9a))/0x7+parseInt(_0x273dd5(0x94))/0x8*(-parseInt(_0x273dd5(0x9c))/0x9);if(_0x5e676a===_0x32f6d3)break;else _0x2d998a['push'](_0x2d998a['shift']());}catch(_0x11f2d1){_0x2d998a['push'](_0x2d998a['shift']());}}}(_0x357f,0x6a490));import{Plugin as _0x54fc47}from'ckeditor5/src/core.js';import{Notification as _0x2f1a2a}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x445a5a}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1d5748}from'./uploadcareimagereplacecommand.js';function _0x357f(){const _0x292c1e=['2264373IKZldM','2189613hbwYjb','uploadcareImageReplace','commands','ImageEditing','ImageUtils','UploadcareImageEditEditing','requires','isPremiumPlugin','2866760KRaoVQ','uploadcareImageEdit','isOfficialPlugin','pluginName','16hueLIZ','init','add','2OmsyUT','2887488KazwIp','660160KseWFg','968513orDGzO','2628jDCSzn'];_0x357f=function(){return _0x292c1e;};return _0x357f();}import{UploadcareEditing as _0x441381}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x54fc47{static get[_0x51bea6(0x93)](){const _0x1899cf=_0x51bea6;return _0x1899cf(0x8d);}static get[_0x51bea6(0x8e)](){const _0x1c05e0=_0x51bea6;return[_0x441381,_0x2f1a2a,_0x1c05e0(0x8c),_0x1c05e0(0x8b)];}static get[_0x51bea6(0x92)](){return!0x0;}static get[_0x51bea6(0x8f)](){return!0x0;}[_0x51bea6(0x95)](){const _0x84cdbc=_0x51bea6,{editor:_0x51e95e}=this;_0x51e95e[_0x84cdbc(0x8a)][_0x84cdbc(0x96)](_0x84cdbc(0x91),new _0x445a5a(_0x51e95e)),_0x51e95e[_0x84cdbc(0x8a)][_0x84cdbc(0x96)](_0x84cdbc(0x89),new _0x1d5748(_0x51e95e));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x108967}from'ckeditor5/src/core.js';import{ButtonView as _0x476384}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x11495c}from'ckeditor5/src/icons.js';import{createElement as _0x3c5d1b}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 _0x108967{['_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 _0x5255c8=this['editor'];_0x5255c8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5cdeec=>{const _0x206665=_0x5255c8['commands']['get']('uploadcareImageEdit'),_0x551e1b=new _0x476384(_0x5cdeec),t=_0x5cdeec['t'];return _0x551e1b['set']({'icon':_0x11495c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x551e1b['bind']('isEnabled')['to'](_0x206665),_0x551e1b['bind']('isOn')['to'](_0x206665,'isActive'),this['listenTo'](_0x551e1b,'execute',()=>{_0x5255c8['execute']('uploadcareImageEdit'),_0x5255c8['editing']['view']['focus']();}),_0x551e1b;}),this['_initConfig']();}['_initConfig'](){const _0x5e534c=_0x3c5d1b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5e534c),this['listenTo'](this['editor'],'destroy',()=>{_0x5e534c['remove']();});}}
23
+ import{Plugin as _0x1b90bb}from'ckeditor5/src/core.js';import{ButtonView as _0x109f8d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x20649b}from'ckeditor5/src/icons.js';import{createElement as _0x227c5a}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 _0x1b90bb{['_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 _0x5665eb=this['editor'];_0x5665eb['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4f2762=>{const _0x3cac64=_0x5665eb['commands']['get']('uploadcareImageEdit'),_0xc12139=new _0x109f8d(_0x4f2762),t=_0x4f2762['t'];return _0xc12139['set']({'icon':_0x20649b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xc12139['bind']('isEnabled')['to'](_0x3cac64),_0xc12139['bind']('isOn')['to'](_0x3cac64,'isActive'),this['listenTo'](_0xc12139,'execute',()=>{_0x5665eb['execute']('uploadcareImageEdit'),_0x5665eb['editing']['view']['focus']();}),_0xc12139;}),this['_initConfig']();}['_initConfig'](){const _0x13dfe9=_0x227c5a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x13dfe9),this['listenTo'](this['editor'],'destroy',()=>{_0x13dfe9['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5c09(_0x421bc2,_0x52f805){var _0x3a6f2d=_0x3a6f();return _0x5c09=function(_0x5c09c4,_0x2a39d9){_0x5c09c4=_0x5c09c4-0x1e8;var _0x35bd98=_0x3a6f2d[_0x5c09c4];return _0x35bd98;},_0x5c09(_0x421bc2,_0x52f805);}var _0x39e402=_0x5c09;(function(_0x3c25ad,_0x5b4abe){var _0x113798=_0x5c09,_0x11fcb1=_0x3c25ad();while(!![]){try{var _0x4a213a=parseInt(_0x113798(0x1e8))/0x1*(parseInt(_0x113798(0x1fa))/0x2)+-parseInt(_0x113798(0x1f1))/0x3*(parseInt(_0x113798(0x1ee))/0x4)+parseInt(_0x113798(0x1f2))/0x5*(-parseInt(_0x113798(0x1ed))/0x6)+parseInt(_0x113798(0x1f8))/0x7*(-parseInt(_0x113798(0x1ef))/0x8)+parseInt(_0x113798(0x1f6))/0x9+parseInt(_0x113798(0x1f7))/0xa+parseInt(_0x113798(0x1f3))/0xb;if(_0x4a213a===_0x5b4abe)break;else _0x11fcb1['push'](_0x11fcb1['shift']());}catch(_0x5cafd3){_0x11fcb1['push'](_0x11fcb1['shift']());}}}(_0x3a6f,0x33fd7));import{FocusTracker as _0x4f1302}from'ckeditor5/src/utils.js';import{View as _0x3010c0,FocusCycler as _0x20a01b}from'ckeditor5/src/ui.js';function _0x3a6f(){var _0x1cdca6=['bindTemplate','true','createCollection','24cJCifu','252qWwnhp','8ybekrA','focusCycler','2034PBKDJh','317530pDLENf','1984697ffIkqZ','forwardCycle','focusTracker','58581Izapxl','2344170EnmpUJ','1835897juCpSz','div','36906WBTWuh','getFocusableElement','19Wbvtur','fire'];_0x3a6f=function(){return _0x1cdca6;};return _0x3a6f();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x3010c0{[_0x39e402(0x1f5)];[_0x39e402(0x1f0)];constructor(_0x1bb67e){var _0x5604bc=_0x39e402;super(_0x1bb67e),this[_0x5604bc(0x1f5)]=new _0x4f1302(),this[_0x5604bc(0x1f0)]=new _0x20a01b({'focusables':this[_0x5604bc(0x1ec)](),'focusTracker':this[_0x5604bc(0x1f5)]});}[_0x39e402(0x1fb)](){var _0xcea0dd=_0x39e402;return{'tag':_0xcea0dd(0x1f9),'attributes':{'aria-hidden':_0xcea0dd(0x1eb),'tabindex':'0'},'on':{'focus':this[_0xcea0dd(0x1ea)]['to'](()=>{var _0x291090=_0xcea0dd;this[_0x291090(0x1f0)][_0x291090(0x1e9)](_0x291090(0x1f4));})}};}}
23
+ function _0x5c8a(){var _0x454476=['1778lfiBIH','bindTemplate','234297SiIMLB','255291oloQnM','focusCycler','8962932cMZLsT','createCollection','56bPNuJr','290675ezOBIO','div','310RZwPjo','1524akGvdL','376JZxtSW','focusTracker','4160930typpZz','forwardCycle','fire','getFocusableElement','5033084cJhlyw','true'];_0x5c8a=function(){return _0x454476;};return _0x5c8a();}var _0x4cfbee=_0x4724;(function(_0xf06cf0,_0x48ea09){var _0x4fccf5=_0x4724,_0x206c51=_0xf06cf0();while(!![]){try{var _0x4873f3=-parseInt(_0x4fccf5(0xfa))/0x1*(parseInt(_0x4fccf5(0xef))/0x2)+-parseInt(_0x4fccf5(0xf2))/0x3*(-parseInt(_0x4fccf5(0xf6))/0x4)+-parseInt(_0x4fccf5(0xfd))/0x5+parseInt(_0x4fccf5(0xf4))/0x6+parseInt(_0x4fccf5(0xed))/0x7+-parseInt(_0x4fccf5(0xfb))/0x8*(parseInt(_0x4fccf5(0xf1))/0x9)+parseInt(_0x4fccf5(0xf9))/0xa*(parseInt(_0x4fccf5(0xf7))/0xb);if(_0x4873f3===_0x48ea09)break;else _0x206c51['push'](_0x206c51['shift']());}catch(_0x1793c6){_0x206c51['push'](_0x206c51['shift']());}}}(_0x5c8a,0xc66fa));import{FocusTracker as _0x254af4}from'ckeditor5/src/utils.js';function _0x4724(_0xe2ceb3,_0xab4c56){var _0x5c8aea=_0x5c8a();return _0x4724=function(_0x472421,_0x486386){_0x472421=_0x472421-0xeb;var _0x520183=_0x5c8aea[_0x472421];return _0x520183;},_0x4724(_0xe2ceb3,_0xab4c56);}import{View as _0x59a431,FocusCycler as _0x5869fc}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x59a431{[_0x4cfbee(0xfc)];[_0x4cfbee(0xf3)];constructor(_0x559f97){var _0x140518=_0x4cfbee;super(_0x559f97),this[_0x140518(0xfc)]=new _0x254af4(),this[_0x140518(0xf3)]=new _0x5869fc({'focusables':this[_0x140518(0xf5)](),'focusTracker':this[_0x140518(0xfc)]});}[_0x4cfbee(0xec)](){var _0x1c678b=_0x4cfbee;return{'tag':_0x1c678b(0xf8),'attributes':{'aria-hidden':_0x1c678b(0xee),'tabindex':'0'},'on':{'focus':this[_0x1c678b(0xf0)]['to'](()=>{var _0xea867d=_0x1c678b;this[_0xea867d(0xf3)][_0xea867d(0xeb)](_0xea867d(0xfe));})}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x8cbbce,_0x7b4426){const _0xa778c=_0x335d,_0x4b69ef=_0x8cbbce();while(!![]){try{const _0xd8fd3b=parseInt(_0xa778c(0x1d6))/0x1+-parseInt(_0xa778c(0x20d))/0x2*(parseInt(_0xa778c(0x1f1))/0x3)+parseInt(_0xa778c(0x1f9))/0x4*(-parseInt(_0xa778c(0x1f6))/0x5)+parseInt(_0xa778c(0x1f3))/0x6+parseInt(_0xa778c(0x20a))/0x7+parseInt(_0xa778c(0x1da))/0x8+-parseInt(_0xa778c(0x1fc))/0x9*(-parseInt(_0xa778c(0x203))/0xa);if(_0xd8fd3b===_0x7b4426)break;else _0x4b69ef['push'](_0x4b69ef['shift']());}catch(_0x32ac58){_0x4b69ef['push'](_0x4b69ef['shift']());}}}(_0x368e,0x6a62a));import{global as _0x4a6a95,DomEmitterMixin as _0x585eab}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x15d404){const _0x337bd1=_0x335d,_0x282e53=z(_0x15d404);return _0x4fcd0e=>!(!_0x4fcd0e||!_0x4fcd0e['is'](_0x337bd1(0x1e3),_0x337bd1(0x1fa))&&!_0x4fcd0e['is'](_0x337bd1(0x1e3),_0x337bd1(0x1e7)))&&(!!_0x4fcd0e[_0x337bd1(0x1ea)](_0x337bd1(0x1ef))||!!_0x4fcd0e[_0x337bd1(0x1ea)](_0x337bd1(0x1ee))&&_0x282e53(_0x4fcd0e[_0x337bd1(0x201)](_0x337bd1(0x1ee))));}export function getImageUrls(_0x454579,_0x36fe23){const _0x1f682e=_0x335d,_0x4ca319=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x1f682e(0x1d9)](_0x5602c5=>_0x5602c5<=_0x36fe23)[_0x1f682e(0x1e8)](_0x1b8b1b=>_0x454579[_0x1f682e(0x20c)](/\/$/,'')+_0x1f682e(0x1fd)+_0x1b8b1b+_0x1f682e(0x1d7)+_0x1b8b1b+'w');return{'imageFallbackUrl':_0x454579,'imageSources':[{'srcset':_0x4ca319[_0x1f682e(0x207)](',\x20'),'sizes':_0x1f682e(0x205)+_0x36fe23+_0x1f682e(0x1dd)+_0x36fe23+'px','type':_0x1f682e(0x1f7)}]};}export function getImageDimension(_0x5129d0,_0x4229c7,_0x2cb59f){const _0x2b65af=_0x335d,_0x44b28d=_0x5129d0[_0x2b65af(0x1fb)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x44b28d?parseInt(_0x44b28d[0x1],0xa):_0x4229c7,'height':_0x44b28d?parseInt(_0x44b28d[0x2],0xa):_0x2cb59f};}function _0x368e(){const _0x2865df=['stopListening','mapper','view','setStyle','document','element','some','removeStyle','removeClass','imageInline','map','origin','hasAttribute','listenTo','toViewElement','width','src','uploadcareImageId','change','3otCWVp','load','2037408TiGTfp','baseURI','ImageUtils','655445fBhAXf','image/webp','get','12UfqIVG','imageBlock','match','2502PloYmO','/-/resize/','aspect-ratio','plugins','addClass','getAttribute','window','3350uuInck','viewToDom','(max-width:\x20','findViewImgElement','join','isArray','domConverter','5283208fFmEgc','function','replace','1299118pJqxjE','location','289127xCICWF','x/\x20','editing','filter','16088KiYRVT','image-processing','height','px)\x20100vw,\x20'];_0x368e=function(){return _0x2865df;};return _0x368e();}function _0x335d(_0x550be6,_0x232051){const _0x368e6e=_0x368e();return _0x335d=function(_0x335d08,_0x55370d){_0x335d08=_0x335d08-0x1d5;let _0x3020f2=_0x368e6e[_0x335d08];return _0x3020f2;},_0x335d(_0x550be6,_0x232051);}export function showImageProcessingIndicator(_0x352afb,_0x2c7547){const _0x2bcd40=_0x335d,_0x4cdcea=new(_0x585eab())(),_0x1bb4be=_0x352afb[_0x2bcd40(0x1ff)][_0x2bcd40(0x1f8)](_0x2bcd40(0x1f5)),_0x72a56f=_0x352afb[_0x2bcd40(0x1d8)][_0x2bcd40(0x1df)][_0x2bcd40(0x1ec)](_0x2c7547),_0x381b52=_0x1bb4be[_0x2bcd40(0x206)](_0x72a56f),_0x17b0a1=_0x352afb[_0x2bcd40(0x1d8)][_0x2bcd40(0x1e0)][_0x2bcd40(0x209)][_0x2bcd40(0x204)](_0x381b52),_0x5dbb93=_0x2c7547[_0x2bcd40(0x201)](_0x2bcd40(0x1ed)),_0x48c300=_0x2c7547[_0x2bcd40(0x201)](_0x2bcd40(0x1dc)),_0x4f7730=_0x2bcd40(0x1db);_0x352afb[_0x2bcd40(0x1d8)][_0x2bcd40(0x1e0)][_0x2bcd40(0x1f0)](_0x1e0ebe=>{const _0x414a8e=_0x2bcd40;_0x1e0ebe[_0x414a8e(0x200)](_0x4f7730,_0x72a56f),_0x1e0ebe[_0x414a8e(0x1e1)](_0x414a8e(0x1fe),_0x5dbb93+'/'+_0x48c300,_0x381b52);}),_0x4cdcea[_0x2bcd40(0x1eb)](_0x17b0a1,_0x2bcd40(0x1f2),()=>{const _0x2bb6fb=_0x2bcd40;_0x4cdcea[_0x2bb6fb(0x1de)](_0x17b0a1,_0x2bb6fb(0x1f2)),_0x352afb[_0x2bb6fb(0x1d8)][_0x2bb6fb(0x1e0)][_0x2bb6fb(0x1f0)](_0x487b02=>{const _0x5db18b=_0x2bb6fb;_0x487b02[_0x5db18b(0x1e6)](_0x4f7730,_0x72a56f),_0x487b02[_0x5db18b(0x1e5)](_0x5db18b(0x1fe),_0x381b52);});});}function z(_0x3d0c1d){const _0x39f30e=_0x335d;if(Array[_0x39f30e(0x208)](_0x3d0c1d)){const _0x4119b9=_0x3d0c1d[_0x39f30e(0x1e8)](z);return _0x542c6c=>_0x4119b9[_0x39f30e(0x1e4)](_0x139eb0=>_0x139eb0(_0x542c6c));}if(_0x39f30e(0x1e9)==_0x3d0c1d){const _0x2489f7=_0x4a6a95[_0x39f30e(0x202)][_0x39f30e(0x1d5)][_0x39f30e(0x1e9)];return _0x39435c=>new URL(_0x39435c,_0x4a6a95[_0x39f30e(0x1e2)][_0x39f30e(0x1f4)])[_0x39f30e(0x1e9)]==_0x2489f7;}return _0x39f30e(0x20b)==typeof _0x3d0c1d?_0x3d0c1d:_0x3d0c1d instanceof RegExp?_0x57fbc9=>!(!_0x57fbc9[_0x39f30e(0x1fb)](_0x3d0c1d)&&!_0x57fbc9[_0x39f30e(0x20c)](/^https?:\/\//,'')[_0x39f30e(0x1fb)](_0x3d0c1d)):()=>!0x1;}
23
+ function _0x18ee(){const _0x432719=['isArray','hasAttribute','117081DrcUFt','128JxPunc','toViewElement','height','(max-width:\x20','window','src','mapper','element','28448uGvYeB','map','px)\x20100vw,\x20','domConverter','width','208497xgbklc','join','20zZWmDs','246JoITSF','addClass','uploadcareImageId','x/\x20','removeStyle','3238910daZnvM','filter','editing','getAttribute','location','findViewImgElement','function','800173vYjExs','replace','21AOtKyd','change','imageBlock','document','listenTo','29771XTuoyV','595876pJVdFQ','get','match','some','load','/-/resize/','removeClass','stopListening','imageInline','view','ImageUtils','viewToDom','setStyle','aspect-ratio','plugins','image/webp','origin','84pXgYgO','baseURI','image-processing'];_0x18ee=function(){return _0x432719;};return _0x18ee();}(function(_0x4eddb9,_0x2b01dc){const _0x3bf99a=_0x4fb0,_0x4285e2=_0x4eddb9();while(!![]){try{const _0x1baba0=parseInt(_0x3bf99a(0xaa))/0x1*(-parseInt(_0x3bf99a(0xcf))/0x2)+parseInt(_0x3bf99a(0xd4))/0x3+-parseInt(_0x3bf99a(0xb0))/0x4*(parseInt(_0x3bf99a(0xd6))/0x5)+parseInt(_0x3bf99a(0xd7))/0x6*(parseInt(_0x3bf99a(0xaf))/0x7)+-parseInt(_0x3bf99a(0xc7))/0x8*(-parseInt(_0x3bf99a(0xc6))/0x9)+parseInt(_0x3bf99a(0xdc))/0xa+parseInt(_0x3bf99a(0xa8))/0xb*(parseInt(_0x3bf99a(0xc1))/0xc);if(_0x1baba0===_0x2b01dc)break;else _0x4285e2['push'](_0x4285e2['shift']());}catch(_0x20d515){_0x4285e2['push'](_0x4285e2['shift']());}}}(_0x18ee,0x5f580));import{global as _0x34895a,DomEmitterMixin as _0x54d56e}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0xf413c2){const _0x11b997=_0x4fb0,_0x49c256=G(_0xf413c2);return _0x3ccda0=>!(!_0x3ccda0||!_0x3ccda0['is'](_0x11b997(0xce),_0x11b997(0xac))&&!_0x3ccda0['is'](_0x11b997(0xce),_0x11b997(0xb8)))&&(!!_0x3ccda0[_0x11b997(0xc5)](_0x11b997(0xd9))||!!_0x3ccda0[_0x11b997(0xc5)](_0x11b997(0xcc))&&_0x49c256(_0x3ccda0[_0x11b997(0xa4)](_0x11b997(0xcc))));}export function getImageUrls(_0x2030d1,_0x470ee7){const _0x5a29f8=_0x4fb0,_0x57d5f0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x5a29f8(0xdd)](_0x396f5a=>_0x396f5a<=_0x470ee7)[_0x5a29f8(0xd0)](_0x21615d=>_0x2030d1[_0x5a29f8(0xa9)](/\/$/,'')+_0x5a29f8(0xb5)+_0x21615d+_0x5a29f8(0xda)+_0x21615d+'w');return{'imageFallbackUrl':_0x2030d1,'imageSources':[{'srcset':_0x57d5f0[_0x5a29f8(0xd5)](',\x20'),'sizes':_0x5a29f8(0xca)+_0x470ee7+_0x5a29f8(0xd1)+_0x470ee7+'px','type':_0x5a29f8(0xbf)}]};}export function getImageDimension(_0x242da0,_0x4bedc0,_0x36c0d0){const _0x131b33=_0x4fb0,_0x3c657a=_0x242da0[_0x131b33(0xb2)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3c657a?parseInt(_0x3c657a[0x1],0xa):_0x4bedc0,'height':_0x3c657a?parseInt(_0x3c657a[0x2],0xa):_0x36c0d0};}function _0x4fb0(_0x12485a,_0x318661){const _0x18ee3e=_0x18ee();return _0x4fb0=function(_0x4fb012,_0x323a87){_0x4fb012=_0x4fb012-0xa3;let _0x705cbb=_0x18ee3e[_0x4fb012];return _0x705cbb;},_0x4fb0(_0x12485a,_0x318661);}export function showImageProcessingIndicator(_0x7bba20,_0x2f0e2e){const _0x524ab6=_0x4fb0,_0x576bdc=new(_0x54d56e())(),_0x40d9b7=_0x7bba20[_0x524ab6(0xbe)][_0x524ab6(0xb1)](_0x524ab6(0xba)),_0xbe198=_0x7bba20[_0x524ab6(0xa3)][_0x524ab6(0xcd)][_0x524ab6(0xc8)](_0x2f0e2e),_0x158ab0=_0x40d9b7[_0x524ab6(0xa6)](_0xbe198),_0x5bd774=_0x7bba20[_0x524ab6(0xa3)][_0x524ab6(0xb9)][_0x524ab6(0xd2)][_0x524ab6(0xbb)](_0x158ab0),_0xc5df85=_0x2f0e2e[_0x524ab6(0xa4)](_0x524ab6(0xd3)),_0x3de2ed=_0x2f0e2e[_0x524ab6(0xa4)](_0x524ab6(0xc9)),_0x4e18d9=_0x524ab6(0xc3);_0x7bba20[_0x524ab6(0xa3)][_0x524ab6(0xb9)][_0x524ab6(0xab)](_0xf3c28e=>{const _0x12db73=_0x524ab6;_0xf3c28e[_0x12db73(0xd8)](_0x4e18d9,_0xbe198),_0xf3c28e[_0x12db73(0xbc)](_0x12db73(0xbd),_0xc5df85+'/'+_0x3de2ed,_0x158ab0);}),_0x576bdc[_0x524ab6(0xae)](_0x5bd774,_0x524ab6(0xb4),()=>{const _0x3439f5=_0x524ab6;_0x576bdc[_0x3439f5(0xb7)](_0x5bd774,_0x3439f5(0xb4)),_0x7bba20[_0x3439f5(0xa3)][_0x3439f5(0xb9)][_0x3439f5(0xab)](_0x2d2b1f=>{const _0x374a82=_0x3439f5;_0x2d2b1f[_0x374a82(0xb6)](_0x4e18d9,_0xbe198),_0x2d2b1f[_0x374a82(0xdb)](_0x374a82(0xbd),_0x158ab0);});});}function G(_0x44e6af){const _0xdefcd2=_0x4fb0;if(Array[_0xdefcd2(0xc4)](_0x44e6af)){const _0x3e91ed=_0x44e6af[_0xdefcd2(0xd0)](G);return _0x51d9a1=>_0x3e91ed[_0xdefcd2(0xb3)](_0x4e02ec=>_0x4e02ec(_0x51d9a1));}if(_0xdefcd2(0xc0)==_0x44e6af){const _0xf261de=_0x34895a[_0xdefcd2(0xcb)][_0xdefcd2(0xa5)][_0xdefcd2(0xc0)];return _0x42d3d7=>new URL(_0x42d3d7,_0x34895a[_0xdefcd2(0xad)][_0xdefcd2(0xc2)])[_0xdefcd2(0xc0)]==_0xf261de;}return _0xdefcd2(0xa7)==typeof _0x44e6af?_0x44e6af:_0x44e6af instanceof RegExp?_0x49f881=>!(!_0x49f881[_0xdefcd2(0xb2)](_0x44e6af)&&!_0x49f881[_0xdefcd2(0xa9)](/^https?:\/\//,'')[_0xdefcd2(0xb2)](_0x44e6af)):()=>!0x1;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x49e4e4,_0x220296){var _0x28d636=_0x2166,_0x510514=_0x49e4e4();while(!![]){try{var _0x35dbf4=-parseInt(_0x28d636(0x1d4))/0x1+-parseInt(_0x28d636(0x1d6))/0x2+parseInt(_0x28d636(0x1d9))/0x3+parseInt(_0x28d636(0x1d2))/0x4+parseInt(_0x28d636(0x1dc))/0x5*(-parseInt(_0x28d636(0x1d7))/0x6)+-parseInt(_0x28d636(0x1db))/0x7*(-parseInt(_0x28d636(0x1d1))/0x8)+parseInt(_0x28d636(0x1d8))/0x9*(parseInt(_0x28d636(0x1d5))/0xa);if(_0x35dbf4===_0x220296)break;else _0x510514['push'](_0x510514['shift']());}catch(_0xc5950e){_0x510514['push'](_0x510514['shift']());}}}(_0x5edf,0xca572));import{getAncestors as _0xa8a011}from'ckeditor5/src/utils.js';export function isAncestor(_0xf5b96e,_0x1894fd){var _0x3fc901=_0x2166;return _0xa8a011(_0xf5b96e[_0x3fc901(0x1d3)])[_0x3fc901(0x1da)](_0x1894fd);}function _0x2166(_0x24e7d9,_0x392736){var _0x5edf08=_0x5edf();return _0x2166=function(_0x216644,_0x321682){_0x216644=_0x216644-0x1d1;var _0x2f9ab0=_0x5edf08[_0x216644];return _0x2f9ab0;},_0x2166(_0x24e7d9,_0x392736);}function _0x5edf(){var _0x3a90c8=['1456735VjKlGj','5598730qqQIpq','40ptSLsH','4082144GyjuQt','target','389074xTmZId','200hhUMrI','2504704zPYhwF','6VdDnCq','504045QJszEj','1226391ZmOYKs','includes'];_0x5edf=function(){return _0x3a90c8;};return _0x5edf();}
23
+ (function(_0x65d65,_0x311782){var _0x53e76e=_0x1504,_0x7e0732=_0x65d65();while(!![]){try{var _0x3b27c8=-parseInt(_0x53e76e(0x10d))/0x1+parseInt(_0x53e76e(0x112))/0x2+parseInt(_0x53e76e(0x110))/0x3*(parseInt(_0x53e76e(0x114))/0x4)+-parseInt(_0x53e76e(0x10e))/0x5*(-parseInt(_0x53e76e(0x117))/0x6)+-parseInt(_0x53e76e(0x119))/0x7*(-parseInt(_0x53e76e(0x118))/0x8)+-parseInt(_0x53e76e(0x10f))/0x9*(parseInt(_0x53e76e(0x115))/0xa)+parseInt(_0x53e76e(0x113))/0xb*(-parseInt(_0x53e76e(0x111))/0xc);if(_0x3b27c8===_0x311782)break;else _0x7e0732['push'](_0x7e0732['shift']());}catch(_0x217c5f){_0x7e0732['push'](_0x7e0732['shift']());}}}(_0x4254,0xd5eda));import{getAncestors as _0x527a73}from'ckeditor5/src/utils.js';function _0x4254(){var _0x2bc765=['11qYjLaT','24rrjOyc','14720wDrAuI','target','378evaLfu','154720JWJMfO','532NTJhcF','includes','304025jGDKMV','107465LpvpaI','4581QWbOfN','514149fmBidT','33884532lrgVik','1802074wtGgvf'];_0x4254=function(){return _0x2bc765;};return _0x4254();}function _0x1504(_0x17e7c9,_0x4f250c){var _0x425449=_0x4254();return _0x1504=function(_0x150403,_0x4a5f36){_0x150403=_0x150403-0x10c;var _0x5766dc=_0x425449[_0x150403];return _0x5766dc;},_0x1504(_0x17e7c9,_0x4f250c);}export function isAncestor(_0xaa55e9,_0x58309d){var _0x76d302=_0x1504;return _0x527a73(_0xaa55e9[_0x76d302(0x116)])[_0x76d302(0x10c)](_0x58309d);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3e6942=_0x3e96;(function(_0x5cf470,_0x66c8e6){var _0x1d31b8=_0x3e96,_0x5f82c0=_0x5cf470();while(!![]){try{var _0x4a959a=parseInt(_0x1d31b8(0xdb))/0x1+-parseInt(_0x1d31b8(0xdf))/0x2+parseInt(_0x1d31b8(0xd9))/0x3+parseInt(_0x1d31b8(0xd6))/0x4*(parseInt(_0x1d31b8(0xd7))/0x5)+-parseInt(_0x1d31b8(0xda))/0x6+parseInt(_0x1d31b8(0xdc))/0x7*(parseInt(_0x1d31b8(0xdd))/0x8)+-parseInt(_0x1d31b8(0xde))/0x9;if(_0x4a959a===_0x66c8e6)break;else _0x5f82c0['push'](_0x5f82c0['shift']());}catch(_0x531c12){_0x5f82c0['push'](_0x5f82c0['shift']());}}}(_0x45b8,0x19c9b));function _0x45b8(){var _0x32f324=['11225kxQwKi','auto','417321rgqtxZ','171408QmCOrp','77586YXPbuf','7EacYWv','911464CBcHLy','235872zhZyKV','371876UiyVYQ','upload','getInfo','28sPFcYH'];_0x45b8=function(){return _0x32f324;};return _0x45b8();}function _0x3e96(_0xddb6a5,_0x198104){var _0x45b8ba=_0x45b8();return _0x3e96=function(_0x3e9677,_0x3ab16b){_0x3e9677=_0x3e9677-0xd5;var _0x374df3=_0x45b8ba[_0x3e9677];return _0x374df3;},_0x3e96(_0xddb6a5,_0x198104);}import{uploadFile as _0x27376c,info as _0x546125}from'@uploadcare/upload-client';export class UploadUtils{static[_0x3e6942(0xe0)]({file:_0x1eef97,publicKey:_0x53fef3,signal:_0x598d21,onProgress:_0x42ec85}){var _0x3953b3=_0x3e6942;return _0x27376c(_0x1eef97,{'publicKey':_0x53fef3,'store':_0x3953b3(0xd8),'signal':_0x598d21,'onProgress':_0x42ec85});}static[_0x3e6942(0xd5)](_0x1b606a,_0x1ed5f5){return _0x546125(_0x1b606a,_0x1ed5f5);}}
23
+ var _0xeeaf7e=_0x50c6;(function(_0x562ac1,_0x2a8ca2){var _0x3d4e64=_0x50c6,_0x58258a=_0x562ac1();while(!![]){try{var _0x544adf=parseInt(_0x3d4e64(0x1e6))/0x1*(parseInt(_0x3d4e64(0x1d7))/0x2)+-parseInt(_0x3d4e64(0x1e1))/0x3*(-parseInt(_0x3d4e64(0x1e5))/0x4)+parseInt(_0x3d4e64(0x1d8))/0x5*(parseInt(_0x3d4e64(0x1e0))/0x6)+parseInt(_0x3d4e64(0x1db))/0x7+parseInt(_0x3d4e64(0x1d9))/0x8*(parseInt(_0x3d4e64(0x1da))/0x9)+parseInt(_0x3d4e64(0x1df))/0xa*(-parseInt(_0x3d4e64(0x1e4))/0xb)+parseInt(_0x3d4e64(0x1e3))/0xc*(-parseInt(_0x3d4e64(0x1dd))/0xd);if(_0x544adf===_0x2a8ca2)break;else _0x58258a['push'](_0x58258a['shift']());}catch(_0x506ca7){_0x58258a['push'](_0x58258a['shift']());}}}(_0x27e6,0xe8758));function _0x50c6(_0x3d4c4b,_0x2ec20a){var _0x27e695=_0x27e6();return _0x50c6=function(_0x50c683,_0x345516){_0x50c683=_0x50c683-0x1d7;var _0x3794f1=_0x27e695[_0x50c683];return _0x3794f1;},_0x50c6(_0x3d4c4b,_0x2ec20a);}function _0x27e6(){var _0x7d7d29=['3625173zinvui','7752241wWPQvS','auto','1210027zIyxNJ','upload','13725080Kgqtkv','102hkbvFn','1614909AkAFZv','getInfo','492MLcNHW','11cbgsJP','12WspzwJ','17394JbRVWg','214MWGjOf','339580BrhwIh','8hcVDRY'];_0x27e6=function(){return _0x7d7d29;};return _0x27e6();}import{uploadFile as _0x40ed03,info as _0x479c74}from'@uploadcare/upload-client';export class UploadUtils{static[_0xeeaf7e(0x1de)]({file:_0x47a701,publicKey:_0xadc70,signal:_0x35ae39,onProgress:_0x1946f7}){var _0x3b4ca9=_0xeeaf7e;return _0x40ed03(_0x47a701,{'publicKey':_0xadc70,'store':_0x3b4ca9(0x1dc),'signal':_0x35ae39,'onProgress':_0x1946f7});}static[_0xeeaf7e(0x1e2)](_0x8ccc63,_0x46fa1f){return _0x479c74(_0x8ccc63,_0x46fa1f);}}