@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.3 → 46.0.1-alpha.5

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 _0x5f19f3,ObservableMixin as _0x1486a5}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2107df}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x51f0a2}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0xb2332}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x3a8170}from'../../utils/uploadutils.js';import{getImageUrls as _0x1bcf4e,getImageDimension as _0xe74e81}from'../../utils/editingutils.js';import{isAncestor as _0x5c1ead}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x1486a5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1013a8,_0x33a0b4,_0x5375d4){super(),this['_editor']=_0x1013a8,this['_dialog']=_0x33a0b4,this['_imageElement']=_0x5375d4,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 _0x4e1540=this['_imageElement'],_0x14cc8d=_0x4e1540['getAttribute']('uploadcareImageId'),_0x6cf077=_0x4e1540['getAttribute']('src');if(_0x14cc8d)await this['_loadImageInfo'](_0x14cc8d,_0x6cf077);else{if(this['_imageCache']['has'](_0x6cf077)){const _0x1cdc37=this['_imageCache']['get'](_0x6cf077);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1cdc37['url'],this['imageDimension']=_0x1cdc37['dimension'],this['imageId']=_0x1cdc37['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1151bd}=this['_editor'],t=_0x1151bd['t'],_0x2f6565=new _0xb2332(_0x1151bd,this['imageStatus'],this['_attributes']);_0x2f6565['bind']('status')['to'](this,'imageStatus'),_0x2f6565['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2f6565['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2f6565['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2f6565,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x51f0a2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2f6565,'position':_0x2107df['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2f6565['focus']();},'onHide':()=>{_0x2f6565['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5b569f=>!_0x5c1ead(_0x5b569f,_0x2f6565['element'])}});}['_loadImageInfo'](_0x2c6a18,_0xe35e8e){return _0x3a8170['getInfo'](_0x2c6a18,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3061b2=>{const {width:_0xf9aacf,height:_0x55eb2a}=_0x3061b2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe35e8e,this['imageDimension']={'width':_0xf9aacf,'height':_0x55eb2a},this['imageId']=_0x2c6a18;})['catch'](_0x3f9abc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f9abc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5eceb3,_0x209bfc){return this['_getImageAsFile'](_0x5eceb3)['then'](_0x15a12b=>_0x3a8170['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x209bfc['signal'],'file':_0x15a12b,'onProgress':_0x452295=>{_0x452295&&_0x452295['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x452295['value']));}}))['then'](_0x3a0514=>{const {width:_0x1e2c6a,height:_0x565cf9}=_0x3a0514['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a0514['cdnUrl'],this['imageDimension']={'width':_0x1e2c6a,'height':_0x565cf9},this['imageId']=_0x3a0514['uuid'],this['imageUploadProgress']=null;const _0x101122=_0x5eceb3['getAttribute']('src');this['_imageCache']['set'](_0x101122,{'id':_0x3a0514['uuid'],'url':_0x3a0514['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5e2a37=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5e2a37['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x23853e,_0x1d3397){_0x23853e['on']('apply',(_0x509185,_0x4aa9fe)=>{this['_replaceImage'](_0x1d3397,_0x4aa9fe['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x23853e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x23853e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2731e3,_0xade5c4,_0x248313){const _0x571e07=this['_editor'],{width:_0x268a66,height:_0x2ea635}=_0xe74e81(_0xade5c4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3c0d20,imageSources:_0x2d78d0}=_0x1bcf4e(_0xade5c4,_0x268a66);_0x571e07['model']['change'](_0x3e6839=>{if('$graveyard'===_0x2731e3['root']['rootName']){_0x571e07['execute']('insertImage',{'imageType':_0x2731e3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2731e3['getAttributes']()),'uploadcareImageId':_0x248313,'src':_0x3c0d20,'sources':_0x2d78d0,'width':_0x268a66,'height':_0x2ea635}});const _0x4007cc=_0x2731e3['getChildren']();_0x2731e3=_0x571e07['model']['document']['selection']['getSelectedElement']();for(const _0x52e6db of _0x4007cc)_0x3e6839['append'](_0x3e6839['cloneElement'](_0x52e6db),_0x2731e3);}else _0x3e6839['setSelection'](_0x2731e3,'on'),_0x571e07['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2731e3['getAttributes']()),'uploadcareImageId':_0x248313,'src':_0x3c0d20,'sources':_0x2d78d0,'width':_0x268a66,'height':_0x2ea635},_0x2731e3);_0x3e6839['setSelection'](_0x2731e3,'on');});}async['_getImageAsFile'](_0xd2c894){const _0x270cb2=_0x5f19f3['window'],_0x3b7717=_0x5f19f3['document']['location']['href'],_0x2ff5ec=new _0x270cb2['URL'](_0xd2c894['getAttribute']('src'),_0x3b7717);if('data:'===_0x2ff5ec['protocol']){const _0x478791=_0x2ff5ec['href']['split'](','),_0x4b4922=_0x478791[0x0]['match'](/:(.*?);/)[0x1],_0x56bfc9=_0x4b4922['split']('/')[0x1],_0x4de4cd=_0x270cb2['atob'](_0x478791[_0x478791['length']-0x1]);let _0x433157=_0x4de4cd['length'];const _0x10edc4=new _0x270cb2['Uint8Array'](_0x433157);for(;_0x433157--;)_0x10edc4[_0x433157]=_0x4de4cd['charCodeAt'](_0x433157);return new _0x270cb2['File']([_0x10edc4],'image.'+_0x56bfc9,{'type':_0x4b4922});}const _0x4561ea=_0x2ff5ec['href']['split']('/'),_0x4bb13d=_0x4561ea[_0x4561ea['length']-0x1],_0x123a1b=_0x4bb13d['split']('.')[0x1];return _0x270cb2['fetch'](_0x2ff5ec['href'])['then'](_0x5a5bce=>_0x5a5bce['clone']()['blob']())['then'](_0x267e65=>new _0x270cb2['File']([_0x267e65],_0x4bb13d,{'type':'image/'+_0x123a1b}));}}
23
+ import{global as _0x4d8bb6,ObservableMixin as _0x2d38c4}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x118da4}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4db288}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x95daf5}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x25be0b}from'../../utils/uploadutils.js';import{getImageUrls as _0x693bf5,getImageDimension as _0x12f5e5}from'../../utils/editingutils.js';import{isAncestor as _0x519630}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x2d38c4(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x38bddb,_0x3445ad,_0x59b11f){super(),this['_editor']=_0x38bddb,this['_dialog']=_0x3445ad,this['_imageElement']=_0x59b11f,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 _0x32d6a7=this['_imageElement'],_0x3f8c77=_0x32d6a7['getAttribute']('uploadcareImageId'),_0x2ff9a0=_0x32d6a7['getAttribute']('src');if(_0x3f8c77)await this['_loadImageInfo'](_0x3f8c77,_0x2ff9a0);else{if(this['_imageCache']['has'](_0x2ff9a0)){const _0x3146fb=this['_imageCache']['get'](_0x2ff9a0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3146fb['url'],this['imageDimension']=_0x3146fb['dimension'],this['imageId']=_0x3146fb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1f2a0d}=this['_editor'],t=_0x1f2a0d['t'],_0xf3392a=new _0x95daf5(_0x1f2a0d,this['imageStatus'],this['_attributes']);_0xf3392a['bind']('status')['to'](this,'imageStatus'),_0xf3392a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xf3392a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xf3392a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xf3392a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4db288,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xf3392a,'position':_0x118da4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xf3392a['focus']();},'onHide':()=>{_0xf3392a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x37cbf3=>!_0x519630(_0x37cbf3,_0xf3392a['element'])}});}['_loadImageInfo'](_0x24b64e,_0x34f468){return _0x25be0b['getInfo'](_0x24b64e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x416e59=>{const {width:_0x8a1173,height:_0x285599}=_0x416e59['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34f468,this['imageDimension']={'width':_0x8a1173,'height':_0x285599},this['imageId']=_0x24b64e;})['catch'](_0x3e127e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e127e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x349433,_0x2aa43c){return this['_getImageAsFile'](_0x349433)['then'](_0x3c01ed=>_0x25be0b['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2aa43c['signal'],'file':_0x3c01ed,'onProgress':_0x19c650=>{_0x19c650&&_0x19c650['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x19c650['value']));}}))['then'](_0x7cc9ad=>{const {width:_0x454100,height:_0x536b7b}=_0x7cc9ad['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x7cc9ad['cdnUrl'],this['imageDimension']={'width':_0x454100,'height':_0x536b7b},this['imageId']=_0x7cc9ad['uuid'],this['imageUploadProgress']=null;const _0x289f78=_0x349433['getAttribute']('src');this['_imageCache']['set'](_0x289f78,{'id':_0x7cc9ad['uuid'],'url':_0x7cc9ad['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xad9562=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xad9562['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4912a3,_0x195d35){_0x4912a3['on']('apply',(_0x504a8a,_0x29a5bb)=>{this['_replaceImage'](_0x195d35,_0x29a5bb['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4912a3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4912a3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x300743,_0x53517d,_0x5cf4a1){const _0x4116a0=this['_editor'],{width:_0x41976e,height:_0x6c194f}=_0x12f5e5(_0x53517d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x7af13e,imageSources:_0x5acc5}=_0x693bf5(_0x53517d,_0x41976e);_0x4116a0['model']['change'](_0x25f34b=>{if('$graveyard'===_0x300743['root']['rootName']){_0x4116a0['execute']('insertImage',{'imageType':_0x300743['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x300743['getAttributes']()),'uploadcareImageId':_0x5cf4a1,'src':_0x7af13e,'sources':_0x5acc5,'width':_0x41976e,'height':_0x6c194f}});const _0x68883c=_0x300743['getChildren']();_0x300743=_0x4116a0['model']['document']['selection']['getSelectedElement']();for(const _0x4e2414 of _0x68883c)_0x25f34b['append'](_0x25f34b['cloneElement'](_0x4e2414),_0x300743);}else _0x25f34b['setSelection'](_0x300743,'on'),_0x4116a0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x300743['getAttributes']()),'uploadcareImageId':_0x5cf4a1,'src':_0x7af13e,'sources':_0x5acc5,'width':_0x41976e,'height':_0x6c194f},_0x300743);_0x25f34b['setSelection'](_0x300743,'on');});}async['_getImageAsFile'](_0x1b7a5b){const _0x6e792c=_0x4d8bb6['window'],_0x4fda60=_0x4d8bb6['document']['location']['href'],_0x3933f0=new _0x6e792c['URL'](_0x1b7a5b['getAttribute']('src'),_0x4fda60);if('data:'===_0x3933f0['protocol']){const _0x1eef3b=_0x3933f0['href']['split'](','),_0x88e1bd=_0x1eef3b[0x0]['match'](/:(.*?);/)[0x1],_0x5009df=_0x88e1bd['split']('/')[0x1],_0x39f05c=_0x6e792c['atob'](_0x1eef3b[_0x1eef3b['length']-0x1]);let _0x2af5a1=_0x39f05c['length'];const _0x5e2c6e=new _0x6e792c['Uint8Array'](_0x2af5a1);for(;_0x2af5a1--;)_0x5e2c6e[_0x2af5a1]=_0x39f05c['charCodeAt'](_0x2af5a1);return new _0x6e792c['File']([_0x5e2c6e],'image.'+_0x5009df,{'type':_0x88e1bd});}const _0x6d6e99=_0x3933f0['href']['split']('/'),_0x44b5d1=_0x6d6e99[_0x6d6e99['length']-0x1],_0xc73763=_0x44b5d1['split']('.')[0x1];return _0x6e792c['fetch'](_0x3933f0['href'])['then'](_0x16cf0f=>_0x16cf0f['clone']()['blob']())['then'](_0x4f4a38=>new _0x6e792c['File']([_0x4f4a38],_0x44b5d1,{'type':'image/'+_0xc73763}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x20a1(_0x303127,_0x2f91ef){const _0xe86cb2=_0xe86c();return _0x20a1=function(_0x20a1b1,_0x572bb5){_0x20a1b1=_0x20a1b1-0xd4;let _0x2c94ee=_0xe86cb2[_0x20a1b1];return _0x2c94ee;},_0x20a1(_0x303127,_0x2f91ef);}(function(_0x236d1f,_0x330327){const _0x171391=_0x20a1,_0x4e3378=_0x236d1f();while(!![]){try{const _0x5ccac2=parseInt(_0x171391(0xd9))/0x1*(parseInt(_0x171391(0xde))/0x2)+parseInt(_0x171391(0xe0))/0x3*(-parseInt(_0x171391(0xdd))/0x4)+-parseInt(_0x171391(0xd8))/0x5+-parseInt(_0x171391(0xdc))/0x6*(-parseInt(_0x171391(0xd6))/0x7)+-parseInt(_0x171391(0xe4))/0x8+-parseInt(_0x171391(0xd5))/0x9+parseInt(_0x171391(0xe2))/0xa;if(_0x5ccac2===_0x330327)break;else _0x4e3378['push'](_0x4e3378['shift']());}catch(_0x552612){_0x4e3378['push'](_0x4e3378['shift']());}}}(_0xe86c,0x92cd4));import{View as _0x587007}from'ckeditor5/src/ui.js';function _0xe86c(){const _0x548171=['7453503PYIkTI','7cGYvnk','image-edit','3916060yLokCg','99626DtdEdU','bindTemplate','ck-uploadcare-theme','2780742ggKXxM','4NxvLyh','22pNZrsi','uc-light','2530119HFtZUZ','set','19696320eOcfXV','setTemplate','3783384EMllgU','imageSrc','uc-cloud-image-editor'];_0xe86c=function(){return _0x548171;};return _0xe86c();}export class UploadcareImageEditFormEditingView extends _0x587007{constructor(_0x478d8d,_0xbec0e3){const _0x206831=_0x20a1;super(_0x478d8d);const _0x478bcb=this[_0x206831(0xda)];this[_0x206831(0xe1)](_0x206831(0xe5),''),this[_0x206831(0xe3)]({'tag':_0x206831(0xd4),'attributes':{..._0xbec0e3,'class':[_0x206831(0xdf),_0x206831(0xdb)],'ctx-name':_0x206831(0xd7),'cdn-url':_0x478bcb['to'](_0x206831(0xe5))}});}}
23
+ (function(_0x5918d1,_0x2e3e9c){const _0x347d1d=_0xa697,_0x4878c2=_0x5918d1();while(!![]){try{const _0x102caa=-parseInt(_0x347d1d(0xf8))/0x1*(parseInt(_0x347d1d(0xf7))/0x2)+-parseInt(_0x347d1d(0xe6))/0x3*(parseInt(_0x347d1d(0xee))/0x4)+parseInt(_0x347d1d(0xe7))/0x5*(parseInt(_0x347d1d(0xf1))/0x6)+-parseInt(_0x347d1d(0xef))/0x7+parseInt(_0x347d1d(0xf0))/0x8*(-parseInt(_0x347d1d(0xe9))/0x9)+parseInt(_0x347d1d(0xf2))/0xa+parseInt(_0x347d1d(0xeb))/0xb*(-parseInt(_0x347d1d(0xe5))/0xc);if(_0x102caa===_0x2e3e9c)break;else _0x4878c2['push'](_0x4878c2['shift']());}catch(_0x4a974c){_0x4878c2['push'](_0x4878c2['shift']());}}}(_0x4b86,0x2ab44));function _0x4b86(){const _0x5a1d4c=['4678wQQBSE','9oKYVnt','38172kcAjoT','6MZebzR','809660gJicUQ','uc-cloud-image-editor','27801RqHjNp','imageSrc','99llqtxf','setTemplate','set','400108RStssO','84448bepRgb','328yRgdyh','12HVfhkG','2394990XTlvdm','uc-light','image-edit','ck-uploadcare-theme','bindTemplate'];_0x4b86=function(){return _0x5a1d4c;};return _0x4b86();}function _0xa697(_0x192f54,_0x4954d4){const _0x4b8647=_0x4b86();return _0xa697=function(_0xa697bc,_0x5dce2b){_0xa697bc=_0xa697bc-0xe5;let _0x1b0f22=_0x4b8647[_0xa697bc];return _0x1b0f22;},_0xa697(_0x192f54,_0x4954d4);}import{View as _0xa99fbe}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0xa99fbe{constructor(_0x4f4d70,_0x5dd488){const _0x195f5f=_0xa697;super(_0x4f4d70);const _0x417aa9=this[_0x195f5f(0xf6)];this[_0x195f5f(0xed)](_0x195f5f(0xea),''),this[_0x195f5f(0xec)]({'tag':_0x195f5f(0xe8),'attributes':{..._0x5dd488,'class':[_0x195f5f(0xf3),_0x195f5f(0xf5)],'ctx-name':_0x195f5f(0xf4),'cdn-url':_0x417aa9['to'](_0x195f5f(0xea))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x42052b}from'ckeditor5/src/icons.js';import{ButtonView as _0xec4bf8,IconView as _0x1a31ae,View as _0x58da22}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x58da22{constructor(_0x26ebdd){super(_0x26ebdd);const t=_0x26ebdd['t'];this['set']('errorType',null);const _0x16ed0a=new _0xec4bf8(_0x26ebdd);_0x16ed0a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x16ed0a['withText']=!0x0,_0x16ed0a['class']='ck-button-action',_0x16ed0a['on']('execute',()=>{this['fire']('retry');}),_0x16ed0a['bind']('isVisible')['to'](this,'errorType',_0x2d68a8=>'NotFound'!==_0x2d68a8);const _0x1f6452=new _0x1a31ae();_0x1f6452['content']=_0x42052b,_0x1f6452['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x32a007=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':[_0x1f6452,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x32a007['to']('errorType',_0x117134=>t('NotFound'!==_0x117134?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x16ed0a]},{'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 _0x40484b}from'ckeditor5/src/icons.js';import{ButtonView as _0x891f24,IconView as _0x56eca5,View as _0x2f1b41}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x2f1b41{constructor(_0x15c56b){super(_0x15c56b);const t=_0x15c56b['t'];this['set']('errorType',null);const _0x306857=new _0x891f24(_0x15c56b);_0x306857['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x306857['withText']=!0x0,_0x306857['class']='ck-button-action',_0x306857['on']('execute',()=>{this['fire']('retry');}),_0x306857['bind']('isVisible')['to'](this,'errorType',_0x4e8d59=>'NotFound'!==_0x4e8d59);const _0x44a3fe=new _0x56eca5();_0x44a3fe['content']=_0x40484b,_0x44a3fe['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5aac79=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':[_0x44a3fe,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5aac79['to']('errorType',_0x2f4fb6=>t('NotFound'!==_0x2f4fb6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x306857]},{'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 _0x1f191e,View as _0x421f12}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x421f12{constructor(_0x13f72b){super(_0x13f72b);const t=_0x13f72b['t'],_0x42a1f9=this['bindTemplate'],_0x494c34=new _0x1f191e();_0x494c34['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':[_0x494c34,{'text':_0x42a1f9['to']('imageUploadProgress',_0x28a29b=>t('Loading\x20image...')+'\x20('+(_0x28a29b||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 _0x475df5,View as _0x5e9277}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x5e9277{constructor(_0x1f2142){super(_0x1f2142);const t=_0x1f2142['t'],_0x212309=this['bindTemplate'],_0x341081=new _0x475df5();_0x341081['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':[_0x341081,{'text':_0x212309['to']('imageUploadProgress',_0x230929=>t('Loading\x20image...')+'\x20('+(_0x230929||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 _0x5c9a(){const _0x43ee41=['add','12YTNVoZ','_errorView','7356601Iijuoz','10HfzxSO','uc-cloud-image-editor','_addErrorViewListeners','createCollection','26918eDExhR','once','detail','1422936Gcpisz','div','target','_setView','_focusableView','observe','6JaIYhP','error','addedNodes','toLowerCase','_editingView','render','disconnect','clear','ck-reset_all-excluded','31474916PDPWKd','retry','fire','_waitForImageEditorComponent','_items','ready','addMany','length','addEventListener','2941630xCLOYR','element','set','change:status','246oTsqCl','querySelector','status','setTemplate','cdnUrl','uploading','_loadingView','getFocusableElement','nodeName','filter','cancel','ck-uploadcare-form','focus','_addUploadcareImageEditorListeners','1606860IFrYas','50171QzCGfd','apply','40yuRSVG'];_0x5c9a=function(){return _0x43ee41;};return _0x5c9a();}const _0x274215=_0x1cae;(function(_0xc4ca66,_0xcb8feb){const _0x1ba7ca=_0x1cae,_0x5bed17=_0xc4ca66();while(!![]){try{const _0xaba381=parseInt(_0x1ba7ca(0xa8))/0x1+-parseInt(_0x1ba7ca(0xb3))/0x2*(parseInt(_0x1ba7ca(0x99))/0x3)+parseInt(_0x1ba7ca(0xb6))/0x4*(-parseInt(_0x1ba7ca(0xaf))/0x5)+-parseInt(_0x1ba7ca(0xbc))/0x6*(parseInt(_0x1ba7ca(0xae))/0x7)+-parseInt(_0x1ba7ca(0xaa))/0x8*(-parseInt(_0x1ba7ca(0xa7))/0x9)+-parseInt(_0x1ba7ca(0x95))/0xa+parseInt(_0x1ba7ca(0x8c))/0xb*(parseInt(_0x1ba7ca(0xac))/0xc);if(_0xaba381===_0xcb8feb)break;else _0x5bed17['push'](_0x5bed17['shift']());}catch(_0x2edab2){_0x5bed17['push'](_0x5bed17['shift']());}}}(_0x5c9a,0x9d3af));import{View as _0x20260f}from'ckeditor5/src/ui.js';function _0x1cae(_0x1b48f5,_0x8e78a1){const _0x5c9ac8=_0x5c9a();return _0x1cae=function(_0x1cae88,_0x2d4d3f){_0x1cae88=_0x1cae88-0x88;let _0x46c681=_0x5c9ac8[_0x1cae88];return _0x46c681;},_0x1cae(_0x1b48f5,_0x8e78a1);}import{UploadcareImageEditFormLoadingView as _0x8d64be}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2cced3}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x19b3a}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0xab609}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0xab609{[_0x274215(0x90)];[_0x274215(0x9f)];[_0x274215(0xad)];[_0x274215(0xc0)];[_0x274215(0xba)];constructor(_0x3384a8,_0x33bbe6,_0x34ed80){const _0x4717af=_0x274215;super(_0x3384a8),this[_0x4717af(0x90)]=this[_0x4717af(0xb2)](),this[_0x4717af(0x9f)]=new _0x8d64be(_0x3384a8),this[_0x4717af(0xad)]=new _0x2cced3(_0x3384a8),this[_0x4717af(0xc0)]=new _0x19b3a(_0x3384a8,_0x34ed80),this[_0x4717af(0xba)]=new _0x20260f(_0x3384a8),this[_0x4717af(0xba)][_0x4717af(0x9c)](this[_0x4717af(0xa0)]()),this[_0x4717af(0x97)](_0x4717af(0x9b),_0x33bbe6),this[_0x4717af(0x9c)]({'tag':_0x4717af(0xb7),'attributes':{'class':['ck',_0x4717af(0x8b),_0x4717af(0xa4)],'tabindex':'-1'},'children':this[_0x4717af(0x90)]}),this[_0x4717af(0xb9)](),this[_0x4717af(0xb4)](_0x4717af(0x88),()=>{const _0x4acc8d=_0x4717af;this[_0x4acc8d(0x8f)](this[_0x4acc8d(0x96)],_0x5251e1=>{const _0x3f6466=_0x4acc8d;this[_0x3f6466(0xa6)](_0x5251e1);});}),this['on'](_0x4717af(0x98),()=>{const _0x103147=_0x4717af;this[_0x103147(0xb9)]();}),this[_0x4717af(0xb1)]();}[_0x274215(0xa5)](){const _0x2f97a1=_0x274215;this[_0x2f97a1(0x96)][_0x2f97a1(0xa5)]();}[_0x274215(0xb9)](){const _0x141ae5=_0x274215;switch(this[_0x141ae5(0x90)][_0x141ae5(0x8a)](),this[_0x141ae5(0x9b)]){case _0x141ae5(0x9e):this[_0x141ae5(0x90)][_0x141ae5(0xab)](this[_0x141ae5(0x9f)]);break;case _0x141ae5(0xbd):this[_0x141ae5(0x90)][_0x141ae5(0xab)](this[_0x141ae5(0xad)]);break;case _0x141ae5(0x91):this[_0x141ae5(0x90)][_0x141ae5(0x92)]([this[_0x141ae5(0xc0)],this[_0x141ae5(0xba)]]);}}[_0x274215(0x8f)](_0x2a1706,_0x1fa3d2){const _0x24a0c4=_0x274215,_0x59ed24=_0x24a0c4(0xb0),_0x187d23=_0x2a1706[_0x24a0c4(0x9a)](_0x59ed24);if(_0x187d23)return _0x1fa3d2(_0x187d23);const _0xe31302=new MutationObserver(_0x29425f=>{const _0x586a0f=_0x24a0c4,_0x4d6b92=_0x29425f[_0x586a0f(0xa2)](_0x1cb7ba=>_0x1cb7ba[_0x586a0f(0xb8)]===_0x2a1706&&_0x1cb7ba[_0x586a0f(0xbe)][_0x586a0f(0x93)]>0x0&&_0x1cb7ba[_0x586a0f(0xbe)][0x0][_0x586a0f(0xa1)][_0x586a0f(0xbf)]()===_0x59ed24);_0x4d6b92[_0x586a0f(0x93)]&&(_0xe31302[_0x586a0f(0x89)](),_0x1fa3d2(_0x4d6b92[0x0][_0x586a0f(0xbe)][0x0]));});_0xe31302[_0x24a0c4(0xbb)](_0x2a1706,{'childList':!0x0,'subtree':!0x0});}[_0x274215(0xa6)](_0x154c26){const _0x5749dd=_0x274215;_0x154c26[_0x5749dd(0x94)](_0x5749dd(0xa9),_0x5e4643=>{const _0x2729ac=_0x5749dd;this[_0x2729ac(0x8e)](_0x2729ac(0xa9),{'imageSrc':_0x5e4643[_0x2729ac(0xb5)][_0x2729ac(0x9d)]});}),_0x154c26[_0x5749dd(0x94)](_0x5749dd(0xa3),()=>{const _0x317934=_0x5749dd;this[_0x317934(0x8e)](_0x317934(0xa3));});}[_0x274215(0xb1)](){const _0x25bdde=_0x274215;this[_0x25bdde(0xad)]['on'](_0x25bdde(0x8d),()=>{const _0x2e2314=_0x25bdde;this[_0x2e2314(0x8e)](_0x2e2314(0x8d));});}}
23
+ const _0x17700a=_0x14fb;(function(_0x5de3a2,_0x121150){const _0x2df796=_0x14fb,_0x5df2d6=_0x5de3a2();while(!![]){try{const _0x1958ef=parseInt(_0x2df796(0x1ed))/0x1+-parseInt(_0x2df796(0x1f0))/0x2+-parseInt(_0x2df796(0x1fc))/0x3*(-parseInt(_0x2df796(0x1f6))/0x4)+parseInt(_0x2df796(0x1e7))/0x5+parseInt(_0x2df796(0x20b))/0x6+parseInt(_0x2df796(0x1f1))/0x7+-parseInt(_0x2df796(0x1f9))/0x8*(parseInt(_0x2df796(0x20e))/0x9);if(_0x1958ef===_0x121150)break;else _0x5df2d6['push'](_0x5df2d6['shift']());}catch(_0x44a5b3){_0x5df2d6['push'](_0x5df2d6['shift']());}}}(_0x5782,0xcbab7));function _0x5782(){const _0x34ec44=['focus','add','_waitForImageEditorComponent','7841035emysPK','fire','length','div','ready','filter','953764tgNdeL','querySelector','_items','781742VpfCvo','3357543zfEMEI','cancel','once','setTemplate','uploading','8156rRYpVY','uc-cloud-image-editor','_addErrorViewListeners','24048fmhwwT','addMany','addEventListener','354OUopwx','set','_errorView','observe','detail','error','ck-reset_all-excluded','addedNodes','change:status','_loadingView','nodeName','getFocusableElement','element','clear','status','6456324CHOxNc','cdnUrl','target','9261FYmuYx','toLowerCase','ck-uploadcare-form','render','_setView','apply','createCollection','_focusableView','_addUploadcareImageEditorListeners','retry','disconnect','_editingView'];_0x5782=function(){return _0x34ec44;};return _0x5782();}import{View as _0x52c8c0}from'ckeditor5/src/ui.js';function _0x14fb(_0x5bec6f,_0x35bb53){const _0x5782f0=_0x5782();return _0x14fb=function(_0x14fb01,_0x9c42af){_0x14fb01=_0x14fb01-0x1d9;let _0x29ba98=_0x5782f0[_0x14fb01];return _0x29ba98;},_0x14fb(_0x5bec6f,_0x35bb53);}import{UploadcareImageEditFormLoadingView as _0x500632}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x43d46f}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xd1891}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1ebfab}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x1ebfab{[_0x17700a(0x1ef)];[_0x17700a(0x205)];[_0x17700a(0x1fe)];[_0x17700a(0x1e3)];[_0x17700a(0x1df)];constructor(_0x25bbfb,_0x1e0b3b,_0x496fb1){const _0x97f32e=_0x17700a;super(_0x25bbfb),this[_0x97f32e(0x1ef)]=this[_0x97f32e(0x1de)](),this[_0x97f32e(0x205)]=new _0x500632(_0x25bbfb),this[_0x97f32e(0x1fe)]=new _0x43d46f(_0x25bbfb),this[_0x97f32e(0x1e3)]=new _0xd1891(_0x25bbfb,_0x496fb1),this[_0x97f32e(0x1df)]=new _0x52c8c0(_0x25bbfb),this[_0x97f32e(0x1df)][_0x97f32e(0x1f4)](this[_0x97f32e(0x207)]()),this[_0x97f32e(0x1fd)](_0x97f32e(0x20a),_0x1e0b3b),this[_0x97f32e(0x1f4)]({'tag':_0x97f32e(0x1ea),'attributes':{'class':['ck',_0x97f32e(0x202),_0x97f32e(0x1da)],'tabindex':'-1'},'children':this[_0x97f32e(0x1ef)]}),this[_0x97f32e(0x1dc)](),this[_0x97f32e(0x1f3)](_0x97f32e(0x1db),()=>{const _0xd4737a=_0x97f32e;this[_0xd4737a(0x1e6)](this[_0xd4737a(0x208)],_0xc253c0=>{const _0x220553=_0xd4737a;this[_0x220553(0x1e0)](_0xc253c0);});}),this['on'](_0x97f32e(0x204),()=>{const _0x151068=_0x97f32e;this[_0x151068(0x1dc)]();}),this[_0x97f32e(0x1f8)]();}[_0x17700a(0x1e4)](){const _0x5c7849=_0x17700a;this[_0x5c7849(0x208)][_0x5c7849(0x1e4)]();}[_0x17700a(0x1dc)](){const _0x39971e=_0x17700a;switch(this[_0x39971e(0x1ef)][_0x39971e(0x209)](),this[_0x39971e(0x20a)]){case _0x39971e(0x1f5):this[_0x39971e(0x1ef)][_0x39971e(0x1e5)](this[_0x39971e(0x205)]);break;case _0x39971e(0x201):this[_0x39971e(0x1ef)][_0x39971e(0x1e5)](this[_0x39971e(0x1fe)]);break;case _0x39971e(0x1eb):this[_0x39971e(0x1ef)][_0x39971e(0x1fa)]([this[_0x39971e(0x1e3)],this[_0x39971e(0x1df)]]);}}[_0x17700a(0x1e6)](_0x5c4a06,_0x24162a){const _0x43f6d5=_0x17700a,_0x5ba7e5=_0x43f6d5(0x1f7),_0x3fbe52=_0x5c4a06[_0x43f6d5(0x1ee)](_0x5ba7e5);if(_0x3fbe52)return _0x24162a(_0x3fbe52);const _0x12c464=new MutationObserver(_0x5be768=>{const _0x393315=_0x43f6d5,_0x518bf1=_0x5be768[_0x393315(0x1ec)](_0x39474d=>_0x39474d[_0x393315(0x20d)]===_0x5c4a06&&_0x39474d[_0x393315(0x203)][_0x393315(0x1e9)]>0x0&&_0x39474d[_0x393315(0x203)][0x0][_0x393315(0x206)][_0x393315(0x1d9)]()===_0x5ba7e5);_0x518bf1[_0x393315(0x1e9)]&&(_0x12c464[_0x393315(0x1e2)](),_0x24162a(_0x518bf1[0x0][_0x393315(0x203)][0x0]));});_0x12c464[_0x43f6d5(0x1ff)](_0x5c4a06,{'childList':!0x0,'subtree':!0x0});}[_0x17700a(0x1e0)](_0x1f552a){const _0x3b8aa2=_0x17700a;_0x1f552a[_0x3b8aa2(0x1fb)](_0x3b8aa2(0x1dd),_0x4e9bca=>{const _0x559ad6=_0x3b8aa2;this[_0x559ad6(0x1e8)](_0x559ad6(0x1dd),{'imageSrc':_0x4e9bca[_0x559ad6(0x200)][_0x559ad6(0x20c)]});}),_0x1f552a[_0x3b8aa2(0x1fb)](_0x3b8aa2(0x1f2),()=>{const _0x12c191=_0x3b8aa2;this[_0x12c191(0x1e8)](_0x12c191(0x1f2));});}[_0x17700a(0x1f8)](){const _0x1fc7a2=_0x17700a;this[_0x1fc7a2(0x1fe)]['on'](_0x1fc7a2(0x1e1),()=>{const _0x7a8468=_0x1fc7a2;this[_0x7a8468(0x1e8)](_0x7a8468(0x1e1));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf3a676=_0x4014;function _0x285f(){const _0x2d1638=['isActive','20EaWKMa','bind','_isEditable','uploadcare.allowExternalImagesEditing','6853264CbPPcS','imageEditController','imageBlock','611496KBNWJY','4pDKPTJ','unbind','getSelectedElement','model','editor','235037TcWyds','820186Ftazik','get','refresh','imageInline','2078655oLCEoZ','isEnabled','document','23429iPdSlA','2747916kAZZEs','set','element','342qBmRCL','selection','requires','execute','plugins','3yZCGij','config'];_0x285f=function(){return _0x2d1638;};return _0x285f();}function _0x4014(_0x120e9b,_0x56a2c9){const _0x285f2a=_0x285f();return _0x4014=function(_0x4014ab,_0x1d959b){_0x4014ab=_0x4014ab-0xbc;let _0x32d8bc=_0x285f2a[_0x4014ab];return _0x32d8bc;},_0x4014(_0x120e9b,_0x56a2c9);}(function(_0x21a7f9,_0x3f84bd){const _0x6905f=_0x4014,_0x537efe=_0x21a7f9();while(!![]){try{const _0x312599=parseInt(_0x6905f(0xce))/0x1+-parseInt(_0x6905f(0xcf))/0x2*(parseInt(_0x6905f(0xbe))/0x3)+-parseInt(_0x6905f(0xc9))/0x4*(parseInt(_0x6905f(0xd3))/0x5)+-parseInt(_0x6905f(0xda))/0x6*(parseInt(_0x6905f(0xd6))/0x7)+parseInt(_0x6905f(0xc8))/0x8+-parseInt(_0x6905f(0xd7))/0x9+-parseInt(_0x6905f(0xc1))/0xa*(-parseInt(_0x6905f(0xc5))/0xb);if(_0x312599===_0x3f84bd)break;else _0x537efe['push'](_0x537efe['shift']());}catch(_0x588263){_0x537efe['push'](_0x537efe['shift']());}}}(_0x285f,0x3984b));import{Command as _0x2a0414}from'ckeditor5/src/core.js';import{Dialog as _0x4a8120}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x477620}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x12429b}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2a0414{[_0xf3a676(0xc6)];static get[_0xf3a676(0xdc)](){return[_0x4a8120];}[_0xf3a676(0xc3)];constructor(_0x26e34f){const _0x7a7751=_0xf3a676;super(_0x26e34f),this[_0x7a7751(0xc6)]=void 0x0,this[_0x7a7751(0xc3)]=_0x12429b(_0x26e34f[_0x7a7751(0xbf)][_0x7a7751(0xd0)](_0x7a7751(0xc4))||[]),this[_0x7a7751(0xd8)]({'isActive':!0x1});}[_0xf3a676(0xd1)](){const _0x28a3b9=_0xf3a676,_0x261423=this[_0x28a3b9(0xcd)][_0x28a3b9(0xcc)][_0x28a3b9(0xd5)][_0x28a3b9(0xdb)][_0x28a3b9(0xcb)]();this[_0x28a3b9(0xd4)]=this[_0x28a3b9(0xc3)](_0x261423);}[_0xf3a676(0xbc)](){const _0x748e6d=_0xf3a676;this[_0x748e6d(0xc6)]&&(this[_0x748e6d(0xca)](_0x748e6d(0xc0)),this[_0x748e6d(0xc6)]=void 0x0);const _0x50ca8b=this[_0x748e6d(0xcd)][_0x748e6d(0xcc)][_0x748e6d(0xd5)][_0x748e6d(0xdb)][_0x748e6d(0xcb)]();_0x50ca8b&&(_0x50ca8b['is'](_0x748e6d(0xd9),_0x748e6d(0xc7))||_0x50ca8b['is'](_0x748e6d(0xd9),_0x748e6d(0xd2)))&&(this[_0x748e6d(0xc6)]=new _0x477620(this[_0x748e6d(0xcd)],this[_0x748e6d(0xcd)][_0x748e6d(0xbd)][_0x748e6d(0xd0)](_0x4a8120),_0x50ca8b),this[_0x748e6d(0xc2)](_0x748e6d(0xc0))['to'](this[_0x748e6d(0xc6)],_0x748e6d(0xc0)));}}
23
+ const _0x49147f=_0x3748;(function(_0x545843,_0x6ef6df){const _0x36dd01=_0x3748,_0x2a0a50=_0x545843();while(!![]){try{const _0x24d1d6=parseInt(_0x36dd01(0xdd))/0x1+parseInt(_0x36dd01(0xf5))/0x2*(-parseInt(_0x36dd01(0xe2))/0x3)+parseInt(_0x36dd01(0xec))/0x4*(parseInt(_0x36dd01(0xe4))/0x5)+-parseInt(_0x36dd01(0xdf))/0x6+parseInt(_0x36dd01(0xda))/0x7*(parseInt(_0x36dd01(0xde))/0x8)+-parseInt(_0x36dd01(0xf6))/0x9+-parseInt(_0x36dd01(0xee))/0xa*(-parseInt(_0x36dd01(0xdc))/0xb);if(_0x24d1d6===_0x6ef6df)break;else _0x2a0a50['push'](_0x2a0a50['shift']());}catch(_0x1418a6){_0x2a0a50['push'](_0x2a0a50['shift']());}}}(_0x5aba,0x9092b));import{Command as _0x19b7b8}from'ckeditor5/src/core.js';import{Dialog as _0x4ef742}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x2d57cc}from'./ui/uploadcareimageeditcontroller.js';function _0x3748(_0x523e36,_0x10cbad){const _0x5abade=_0x5aba();return _0x3748=function(_0x37488a,_0x11630e){_0x37488a=_0x37488a-0xda;let _0x5d6da3=_0x5abade[_0x37488a];return _0x5d6da3;},_0x3748(_0x523e36,_0x10cbad);}import{createEditabilityChecker as _0x2c2f4c}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x19b7b8{[_0x49147f(0xe8)];static get[_0x49147f(0xe6)](){return[_0x4ef742];}[_0x49147f(0xea)];constructor(_0x5dc741){const _0x35328f=_0x49147f;super(_0x5dc741),this[_0x35328f(0xe8)]=void 0x0,this[_0x35328f(0xea)]=_0x2c2f4c(_0x5dc741[_0x35328f(0xe0)][_0x35328f(0xf9)](_0x35328f(0xe9))||[]),this[_0x35328f(0xf0)]({'isActive':!0x1});}[_0x49147f(0xf8)](){const _0x103270=_0x49147f,_0x53d979=this[_0x103270(0xf2)][_0x103270(0xe3)][_0x103270(0xef)][_0x103270(0xeb)][_0x103270(0xe1)]();this[_0x103270(0xfa)]=this[_0x103270(0xea)](_0x53d979);}[_0x49147f(0xe7)](){const _0x3bb128=_0x49147f;this[_0x3bb128(0xe8)]&&(this[_0x3bb128(0xe5)](_0x3bb128(0xf3)),this[_0x3bb128(0xe8)]=void 0x0);const _0x2ed955=this[_0x3bb128(0xf2)][_0x3bb128(0xe3)][_0x3bb128(0xef)][_0x3bb128(0xeb)][_0x3bb128(0xe1)]();_0x2ed955&&(_0x2ed955['is'](_0x3bb128(0xf4),_0x3bb128(0xf7))||_0x2ed955['is'](_0x3bb128(0xf4),_0x3bb128(0xf1)))&&(this[_0x3bb128(0xe8)]=new _0x2d57cc(this[_0x3bb128(0xf2)],this[_0x3bb128(0xf2)][_0x3bb128(0xed)][_0x3bb128(0xf9)](_0x4ef742),_0x2ed955),this[_0x3bb128(0xdb)](_0x3bb128(0xf3))['to'](this[_0x3bb128(0xe8)],_0x3bb128(0xf3)));}}function _0x5aba(){const _0x5e78c1=['getSelectedElement','235461Gffbff','model','30JSMAcI','unbind','requires','execute','imageEditController','uploadcare.allowExternalImagesEditing','_isEditable','selection','674124xOrFDT','plugins','3130EjZiPk','document','set','imageInline','editor','isActive','element','10QEmQoc','8930970LbJESO','imageBlock','refresh','get','isEnabled','231YMHDwh','bind','46552SkSflT','317398SnUPYd','49304VkSwQC','5277858Jeqblb','config'];_0x5aba=function(){return _0x5e78c1;};return _0x5aba();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c5a35=_0xd3d7;(function(_0x3db5a7,_0x3ac5cc){const _0xc0759c=_0xd3d7,_0x4eb18b=_0x3db5a7();while(!![]){try{const _0x1641e4=parseInt(_0xc0759c(0x1c2))/0x1*(-parseInt(_0xc0759c(0x1c5))/0x2)+-parseInt(_0xc0759c(0x1cd))/0x3+parseInt(_0xc0759c(0x1c6))/0x4+parseInt(_0xc0759c(0x1c1))/0x5+parseInt(_0xc0759c(0x1ca))/0x6+parseInt(_0xc0759c(0x1d0))/0x7*(parseInt(_0xc0759c(0x1d2))/0x8)+-parseInt(_0xc0759c(0x1c8))/0x9*(parseInt(_0xc0759c(0x1c9))/0xa);if(_0x1641e4===_0x3ac5cc)break;else _0x4eb18b['push'](_0x4eb18b['shift']());}catch(_0x48b5f8){_0x4eb18b['push'](_0x4eb18b['shift']());}}}(_0x336b,0x558c2));import{Plugin as _0x377ac}from'ckeditor5/src/core.js';import{Notification as _0x3e9ac0}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0xf40d8f}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x5b093a}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x239317}from'../uploadcareediting.js';function _0xd3d7(_0x3b2459,_0x769206){const _0x336bae=_0x336b();return _0xd3d7=function(_0xd3d7d6,_0x4219b4){_0xd3d7d6=_0xd3d7d6-0x1bd;let _0x101d7c=_0x336bae[_0xd3d7d6];return _0x101d7c;},_0xd3d7(_0x3b2459,_0x769206);}function _0x336b(){const _0x33733c=['uploadcareImageReplace','49EsXSJg','commands','398048rLhkzq','add','init','isOfficialPlugin','uploadcareImageEdit','3261320wWjtfx','39677SPlPbS','ImageUtils','ImageEditing','18HIAfnD','2345304bsLHml','pluginName','11133xbSCGO','5430PlIpnG','1547922RsEJZi','requires','isPremiumPlugin','1397049wSREhU','UploadcareImageEditEditing'];_0x336b=function(){return _0x33733c;};return _0x336b();}export class UploadcareImageEditEditing extends _0x377ac{static get[_0x1c5a35(0x1c7)](){const _0x274120=_0x1c5a35;return _0x274120(0x1ce);}static get[_0x1c5a35(0x1cb)](){const _0x4c7413=_0x1c5a35;return[_0x239317,_0x3e9ac0,_0x4c7413(0x1c3),_0x4c7413(0x1c4)];}static get[_0x1c5a35(0x1bf)](){return!0x0;}static get[_0x1c5a35(0x1cc)](){return!0x0;}[_0x1c5a35(0x1be)](){const _0x38d1ce=_0x1c5a35,{editor:_0x1ba010}=this;_0x1ba010[_0x38d1ce(0x1d1)][_0x38d1ce(0x1bd)](_0x38d1ce(0x1c0),new _0xf40d8f(_0x1ba010)),_0x1ba010[_0x38d1ce(0x1d1)][_0x38d1ce(0x1bd)](_0x38d1ce(0x1cf),new _0x5b093a(_0x1ba010));}}
23
+ const _0x460810=_0x3944;(function(_0x3b3f80,_0x4b9708){const _0x139be1=_0x3944,_0x431167=_0x3b3f80();while(!![]){try{const _0x3c4ce1=-parseInt(_0x139be1(0x153))/0x1+parseInt(_0x139be1(0x13f))/0x2+-parseInt(_0x139be1(0x145))/0x3*(-parseInt(_0x139be1(0x14e))/0x4)+-parseInt(_0x139be1(0x141))/0x5+-parseInt(_0x139be1(0x14c))/0x6+parseInt(_0x139be1(0x146))/0x7*(parseInt(_0x139be1(0x147))/0x8)+-parseInt(_0x139be1(0x142))/0x9;if(_0x3c4ce1===_0x4b9708)break;else _0x431167['push'](_0x431167['shift']());}catch(_0xaf042b){_0x431167['push'](_0x431167['shift']());}}}(_0x570e,0x6d33f));function _0x570e(){const _0x34d932=['14938kISaAY','commands','407430JdScuM','6646410ocnCax','init','ImageUtils','2020719zDXIza','7BAJMGE','6131432cSVmxk','requires','uploadcareImageReplace','add','ImageEditing','1049760nbCkNI','isOfficialPlugin','4RmkCPz','isPremiumPlugin','UploadcareImageEditEditing','pluginName','uploadcareImageEdit','5240Ovthkm'];_0x570e=function(){return _0x34d932;};return _0x570e();}import{Plugin as _0x69488f}from'ckeditor5/src/core.js';import{Notification as _0x3f6bc8}from'ckeditor5/src/ui.js';function _0x3944(_0x2ff99a,_0x1cd925){const _0x570e99=_0x570e();return _0x3944=function(_0x39448a,_0x6e34da){_0x39448a=_0x39448a-0x13f;let _0x30b4aa=_0x570e99[_0x39448a];return _0x30b4aa;},_0x3944(_0x2ff99a,_0x1cd925);}import{UploadcareImageEditCommand as _0x40fcbc}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1dabc2}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2b46aa}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x69488f{static get[_0x460810(0x151)](){const _0x5f5651=_0x460810;return _0x5f5651(0x150);}static get[_0x460810(0x148)](){const _0x115f37=_0x460810;return[_0x2b46aa,_0x3f6bc8,_0x115f37(0x144),_0x115f37(0x14b)];}static get[_0x460810(0x14d)](){return!0x0;}static get[_0x460810(0x14f)](){return!0x0;}[_0x460810(0x143)](){const _0x239ec2=_0x460810,{editor:_0x3ddf0b}=this;_0x3ddf0b[_0x239ec2(0x140)][_0x239ec2(0x14a)](_0x239ec2(0x152),new _0x40fcbc(_0x3ddf0b)),_0x3ddf0b[_0x239ec2(0x140)][_0x239ec2(0x14a)](_0x239ec2(0x149),new _0x1dabc2(_0x3ddf0b));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x57a006}from'ckeditor5/src/core.js';import{ButtonView as _0x41e258}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x21a5e1}from'ckeditor5/src/icons.js';import{createElement as _0x56f889}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 _0x57a006{['_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 _0x4361fd=this['editor'];_0x4361fd['ui']['componentFactory']['add']('uploadcareImageEdit',_0x221143=>{const _0x2eb134=_0x4361fd['commands']['get']('uploadcareImageEdit'),_0x567046=new _0x41e258(_0x221143),t=_0x221143['t'];return _0x567046['set']({'icon':_0x21a5e1,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x567046['bind']('isEnabled')['to'](_0x2eb134),_0x567046['bind']('isOn')['to'](_0x2eb134,'isActive'),this['listenTo'](_0x567046,'execute',()=>{_0x4361fd['execute']('uploadcareImageEdit'),_0x4361fd['editing']['view']['focus']();}),_0x567046;}),this['_initConfig']();}['_initConfig'](){const _0x3b09a6=_0x56f889(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3b09a6),this['listenTo'](this['editor'],'destroy',()=>{_0x3b09a6['remove']();});}}
23
+ import{Plugin as _0x137563}from'ckeditor5/src/core.js';import{ButtonView as _0x1862b9}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x20c2e3}from'ckeditor5/src/icons.js';import{createElement as _0x4464bd}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 _0x137563{['_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 _0x5ca4d8=this['editor'];_0x5ca4d8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x43349d=>{const _0x1e3a45=_0x5ca4d8['commands']['get']('uploadcareImageEdit'),_0x335e77=new _0x1862b9(_0x43349d),t=_0x43349d['t'];return _0x335e77['set']({'icon':_0x20c2e3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x335e77['bind']('isEnabled')['to'](_0x1e3a45),_0x335e77['bind']('isOn')['to'](_0x1e3a45,'isActive'),this['listenTo'](_0x335e77,'execute',()=>{_0x5ca4d8['execute']('uploadcareImageEdit'),_0x5ca4d8['editing']['view']['focus']();}),_0x335e77;}),this['_initConfig']();}['_initConfig'](){const _0x602d13=_0x4464bd(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x602d13),this['listenTo'](this['editor'],'destroy',()=>{_0x602d13['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x43e6(_0x1c6e55,_0x4611b0){var _0x2b70c7=_0x2b70();return _0x43e6=function(_0x43e683,_0x5bca11){_0x43e683=_0x43e683-0x1ca;var _0x10f86d=_0x2b70c7[_0x43e683];return _0x10f86d;},_0x43e6(_0x1c6e55,_0x4611b0);}var _0x418485=_0x43e6;function _0x2b70(){var _0x112ec3=['44496hanKio','focusCycler','true','3342LqBmKl','2642250wdwATw','focusTracker','4lMtuEW','891vHrpkg','div','7806270WqxWtD','8605zrFXWs','fire','forwardCycle','createCollection','603Aeqagk','getFocusableElement','bindTemplate','1698025YALjHr','12717VuanUR','76ruvoXb','35688Mlxnux'];_0x2b70=function(){return _0x112ec3;};return _0x2b70();}(function(_0x1f91f6,_0x11fd9e){var _0x3e8b13=_0x43e6,_0x4a3f5d=_0x1f91f6();while(!![]){try{var _0x41b992=-parseInt(_0x3e8b13(0x1d8))/0x1*(-parseInt(_0x3e8b13(0x1d9))/0x2)+parseInt(_0x3e8b13(0x1ca))/0x3*(-parseInt(_0x3e8b13(0x1cc))/0x4)+-parseInt(_0x3e8b13(0x1d0))/0x5*(-parseInt(_0x3e8b13(0x1de))/0x6)+-parseInt(_0x3e8b13(0x1d7))/0x7+-parseInt(_0x3e8b13(0x1da))/0x8*(parseInt(_0x3e8b13(0x1d4))/0x9)+parseInt(_0x3e8b13(0x1cf))/0xa+-parseInt(_0x3e8b13(0x1cd))/0xb*(parseInt(_0x3e8b13(0x1db))/0xc);if(_0x41b992===_0x11fd9e)break;else _0x4a3f5d['push'](_0x4a3f5d['shift']());}catch(_0x3bb0ce){_0x4a3f5d['push'](_0x4a3f5d['shift']());}}}(_0x2b70,0x7a0c6));import{FocusTracker as _0x19b73e}from'ckeditor5/src/utils.js';import{View as _0x56783b,FocusCycler as _0x2a2e76}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x56783b{[_0x418485(0x1cb)];[_0x418485(0x1dc)];constructor(_0x4b02e1){var _0x452e7c=_0x418485;super(_0x4b02e1),this[_0x452e7c(0x1cb)]=new _0x19b73e(),this[_0x452e7c(0x1dc)]=new _0x2a2e76({'focusables':this[_0x452e7c(0x1d3)](),'focusTracker':this[_0x452e7c(0x1cb)]});}[_0x418485(0x1d5)](){var _0xa68f92=_0x418485;return{'tag':_0xa68f92(0x1ce),'attributes':{'aria-hidden':_0xa68f92(0x1dd),'tabindex':'0'},'on':{'focus':this[_0xa68f92(0x1d6)]['to'](()=>{var _0x1b3182=_0xa68f92;this[_0x1b3182(0x1dc)][_0x1b3182(0x1d1)](_0x1b3182(0x1d2));})}};}}
23
+ var _0x3ab8fe=_0x1a48;function _0x1a48(_0x15dc97,_0x4cafbf){var _0xd56af6=_0xd56a();return _0x1a48=function(_0x1a4811,_0x10bffa){_0x1a4811=_0x1a4811-0x1c5;var _0x3973c4=_0xd56af6[_0x1a4811];return _0x3973c4;},_0x1a48(_0x15dc97,_0x4cafbf);}(function(_0x22bfbe,_0x4672ce){var _0x27a44f=_0x1a48,_0x3c0f08=_0x22bfbe();while(!![]){try{var _0x4c567b=-parseInt(_0x27a44f(0x1d5))/0x1+parseInt(_0x27a44f(0x1d7))/0x2+-parseInt(_0x27a44f(0x1ce))/0x3+parseInt(_0x27a44f(0x1d3))/0x4*(parseInt(_0x27a44f(0x1d4))/0x5)+parseInt(_0x27a44f(0x1c9))/0x6*(parseInt(_0x27a44f(0x1cd))/0x7)+-parseInt(_0x27a44f(0x1c5))/0x8*(parseInt(_0x27a44f(0x1d6))/0x9)+-parseInt(_0x27a44f(0x1d8))/0xa*(-parseInt(_0x27a44f(0x1cc))/0xb);if(_0x4c567b===_0x4672ce)break;else _0x3c0f08['push'](_0x3c0f08['shift']());}catch(_0xd2e664){_0x3c0f08['push'](_0x3c0f08['shift']());}}}(_0xd56a,0xeb5f2));import{FocusTracker as _0x4c9102}from'ckeditor5/src/utils.js';import{View as _0x1c51cd,FocusCycler as _0x337d99}from'ckeditor5/src/ui.js';function _0xd56a(){var _0x183291=['2937152jChURj','10elZfzr','272kofEsR','true','forwardCycle','fire','1128qBTIXs','div','createCollection','18804533DJYyDV','17906ZoYLlQ','5240628ucQjNo','focusTracker','getFocusableElement','focusCycler','bindTemplate','2908uJonjv','5415gQSXCi','892200vyMbfs','223191XmHGwf'];_0xd56a=function(){return _0x183291;};return _0xd56a();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1c51cd{[_0x3ab8fe(0x1cf)];[_0x3ab8fe(0x1d1)];constructor(_0x4ce49e){var _0x245b51=_0x3ab8fe;super(_0x4ce49e),this[_0x245b51(0x1cf)]=new _0x4c9102(),this[_0x245b51(0x1d1)]=new _0x337d99({'focusables':this[_0x245b51(0x1cb)](),'focusTracker':this[_0x245b51(0x1cf)]});}[_0x3ab8fe(0x1d0)](){var _0x4acb00=_0x3ab8fe;return{'tag':_0x4acb00(0x1ca),'attributes':{'aria-hidden':_0x4acb00(0x1c6),'tabindex':'0'},'on':{'focus':this[_0x4acb00(0x1d2)]['to'](()=>{var _0x39f517=_0x4acb00;this[_0x39f517(0x1d1)][_0x39f517(0x1c8)](_0x39f517(0x1c7));})}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x12b8d1,_0x5e9e51){const _0x51abf5=_0x1a4f,_0x47eb37=_0x12b8d1();while(!![]){try{const _0x4a30bc=parseInt(_0x51abf5(0x77))/0x1+-parseInt(_0x51abf5(0x81))/0x2*(-parseInt(_0x51abf5(0xa6))/0x3)+parseInt(_0x51abf5(0xa9))/0x4+-parseInt(_0x51abf5(0x76))/0x5+-parseInt(_0x51abf5(0xa5))/0x6*(parseInt(_0x51abf5(0xab))/0x7)+parseInt(_0x51abf5(0x7b))/0x8*(parseInt(_0x51abf5(0x8a))/0x9)+-parseInt(_0x51abf5(0xa7))/0xa;if(_0x4a30bc===_0x5e9e51)break;else _0x47eb37['push'](_0x47eb37['shift']());}catch(_0x545f68){_0x47eb37['push'](_0x47eb37['shift']());}}}(_0x5d6d,0xa85b5));function _0x1a4f(_0x455a9c,_0x2d1807){const _0x5d6de3=_0x5d6d();return _0x1a4f=function(_0x1a4f21,_0x4d72d7){_0x1a4f21=_0x1a4f21-0x76;let _0x5e1b12=_0x5d6de3[_0x1a4f21];return _0x5e1b12;},_0x1a4f(_0x455a9c,_0x2d1807);}function _0x5d6d(){const _0x4ed3c8=['171xiVQwj','setStyle','image-processing','element','isArray','window','/-/resize/','document','px)\x20100vw,\x20','view','uploadcareImageId','toViewElement','imageInline','getAttribute','get','ImageUtils','mapper','plugins','imageBlock','domConverter','height','src','map','hasAttribute','replace','editing','filter','6036FTMzId','33fwvrvq','12953290oGDgRm','location','4791460dkYlNR','load','3388RlUYtW','removeClass','findViewImgElement','some','1353680NOroKh','1089247KeHwHH','function','viewToDom','listenTo','64616EpmqdL','(max-width:\x20','change','join','stopListening','addClass','54906KEqBwl','width','baseURI','origin','x/\x20','aspect-ratio','match','image/webp','removeStyle'];_0x5d6d=function(){return _0x4ed3c8;};return _0x5d6d();}import{global as _0x206e3d,DomEmitterMixin as _0x545912}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x502a14){const _0x5b3fdd=_0x1a4f,_0x1e3ba4=G(_0x502a14);return _0x2a7195=>!(!_0x2a7195||!_0x2a7195['is'](_0x5b3fdd(0x8d),_0x5b3fdd(0x9c))&&!_0x2a7195['is'](_0x5b3fdd(0x8d),_0x5b3fdd(0x96)))&&(!!_0x2a7195[_0x5b3fdd(0xa1)](_0x5b3fdd(0x94))||!!_0x2a7195[_0x5b3fdd(0xa1)](_0x5b3fdd(0x9f))&&_0x1e3ba4(_0x2a7195[_0x5b3fdd(0x97)](_0x5b3fdd(0x9f))));}export function getImageUrls(_0x4d33ae,_0x5ee446){const _0x1bd49c=_0x1a4f,_0x443a6a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x1bd49c(0xa4)](_0x42c19b=>_0x42c19b<=_0x5ee446)[_0x1bd49c(0xa0)](_0x56110c=>_0x4d33ae[_0x1bd49c(0xa2)](/\/$/,'')+_0x1bd49c(0x90)+_0x56110c+_0x1bd49c(0x85)+_0x56110c+'w');return{'imageFallbackUrl':_0x4d33ae,'imageSources':[{'srcset':_0x443a6a[_0x1bd49c(0x7e)](',\x20'),'sizes':_0x1bd49c(0x7c)+_0x5ee446+_0x1bd49c(0x92)+_0x5ee446+'px','type':_0x1bd49c(0x88)}]};}export function getImageDimension(_0x5b9897,_0x197ce0,_0x8661df){const _0x3ebe75=_0x1a4f,_0x2f6ff3=_0x5b9897[_0x3ebe75(0x87)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2f6ff3?parseInt(_0x2f6ff3[0x1],0xa):_0x197ce0,'height':_0x2f6ff3?parseInt(_0x2f6ff3[0x2],0xa):_0x8661df};}export function showImageProcessingIndicator(_0x2ae34d,_0x47ecc){const _0x18bb20=_0x1a4f,_0x3756ed=new(_0x545912())(),_0x2d2550=_0x2ae34d[_0x18bb20(0x9b)][_0x18bb20(0x98)](_0x18bb20(0x99)),_0x305cd7=_0x2ae34d[_0x18bb20(0xa3)][_0x18bb20(0x9a)][_0x18bb20(0x95)](_0x47ecc),_0x3de225=_0x2d2550[_0x18bb20(0xad)](_0x305cd7),_0x3b2183=_0x2ae34d[_0x18bb20(0xa3)][_0x18bb20(0x93)][_0x18bb20(0x9d)][_0x18bb20(0x79)](_0x3de225),_0x4e23d9=_0x47ecc[_0x18bb20(0x97)](_0x18bb20(0x82)),_0x18ce1e=_0x47ecc[_0x18bb20(0x97)](_0x18bb20(0x9e)),_0x38e31f=_0x18bb20(0x8c);_0x2ae34d[_0x18bb20(0xa3)][_0x18bb20(0x93)][_0x18bb20(0x7d)](_0x22c2e8=>{const _0x2a0f49=_0x18bb20;_0x22c2e8[_0x2a0f49(0x80)](_0x38e31f,_0x305cd7),_0x22c2e8[_0x2a0f49(0x8b)](_0x2a0f49(0x86),_0x4e23d9+'/'+_0x18ce1e,_0x3de225);}),_0x3756ed[_0x18bb20(0x7a)](_0x3b2183,_0x18bb20(0xaa),()=>{const _0x190e14=_0x18bb20;_0x3756ed[_0x190e14(0x7f)](_0x3b2183,_0x190e14(0xaa)),_0x2ae34d[_0x190e14(0xa3)][_0x190e14(0x93)][_0x190e14(0x7d)](_0x331d8a=>{const _0x544a5f=_0x190e14;_0x331d8a[_0x544a5f(0xac)](_0x38e31f,_0x305cd7),_0x331d8a[_0x544a5f(0x89)](_0x544a5f(0x86),_0x3de225);});});}function G(_0x1880fd){const _0x14ca93=_0x1a4f;if(Array[_0x14ca93(0x8e)](_0x1880fd)){const _0x437d06=_0x1880fd[_0x14ca93(0xa0)](G);return _0x49c16c=>_0x437d06[_0x14ca93(0xae)](_0x4ddac7=>_0x4ddac7(_0x49c16c));}if(_0x14ca93(0x84)==_0x1880fd){const _0x1060b5=_0x206e3d[_0x14ca93(0x8f)][_0x14ca93(0xa8)][_0x14ca93(0x84)];return _0x1e0a7d=>new URL(_0x1e0a7d,_0x206e3d[_0x14ca93(0x91)][_0x14ca93(0x83)])[_0x14ca93(0x84)]==_0x1060b5;}return _0x14ca93(0x78)==typeof _0x1880fd?_0x1880fd:_0x1880fd instanceof RegExp?_0x4e9dc2=>!(!_0x4e9dc2[_0x14ca93(0x87)](_0x1880fd)&&!_0x4e9dc2[_0x14ca93(0xa2)](/^https?:\/\//,'')[_0x14ca93(0x87)](_0x1880fd)):()=>!0x1;}
23
+ (function(_0x5002cb,_0x57751c){const _0x233378=_0x2c8f,_0x564f9d=_0x5002cb();while(!![]){try{const _0x3c1f17=-parseInt(_0x233378(0xb2))/0x1+parseInt(_0x233378(0xb7))/0x2*(parseInt(_0x233378(0xab))/0x3)+-parseInt(_0x233378(0xac))/0x4+parseInt(_0x233378(0xcf))/0x5+parseInt(_0x233378(0xd2))/0x6+parseInt(_0x233378(0xca))/0x7+parseInt(_0x233378(0xc5))/0x8*(parseInt(_0x233378(0xaf))/0x9);if(_0x3c1f17===_0x57751c)break;else _0x564f9d['push'](_0x564f9d['shift']());}catch(_0x1a4ac5){_0x564f9d['push'](_0x564f9d['shift']());}}}(_0x391a,0x41659));import{global as _0x12c268,DomEmitterMixin as _0x2280ff}from'ckeditor5/src/utils.js';function _0x2c8f(_0x519ccb,_0x496bbf){const _0x391a07=_0x391a();return _0x2c8f=function(_0x2c8faa,_0x5d5f95){_0x2c8faa=_0x2c8faa-0xa4;let _0x56fb58=_0x391a07[_0x2c8faa];return _0x56fb58;},_0x2c8f(_0x519ccb,_0x496bbf);}function _0x391a(){const _0x5aa553=['removeStyle','location','findViewImgElement','hasAttribute','isArray','function','plugins','8RDcXiu','image-processing','listenTo','filter','origin','2591995EkIsSU','x/\x20','(max-width:\x20','replace','window','493080vIQqVQ','getAttribute','load','77430pLmfzC','some','px)\x20100vw,\x20','map','get','removeClass','/-/resize/','imageInline','aspect-ratio','editing','view','uploadcareImageId','element','mapper','src','setStyle','join','7257wdPuhq','1849272EOiJoO','imageBlock','match','3807288nZbSTC','addClass','height','235130yNuSST','toViewElement','change','ImageUtils','viewToDom','50obRBuo','stopListening','domConverter','width','image/webp','baseURI','document'];_0x391a=function(){return _0x5aa553;};return _0x391a();}export function createEditabilityChecker(_0x24cc98){const _0x2046fd=_0x2c8f,_0x26d66f=R(_0x24cc98);return _0x43a56d=>!(!_0x43a56d||!_0x43a56d['is'](_0x2046fd(0xa6),_0x2046fd(0xad))&&!_0x43a56d['is'](_0x2046fd(0xa6),_0x2046fd(0xd9)))&&(!!_0x43a56d[_0x2046fd(0xc1)](_0x2046fd(0xa5))||!!_0x43a56d[_0x2046fd(0xc1)](_0x2046fd(0xa8))&&_0x26d66f(_0x43a56d[_0x2046fd(0xd0)](_0x2046fd(0xa8))));}export function getImageUrls(_0x5216ce,_0x33f2e8){const _0x3a0be4=_0x2c8f,_0xe9f7fe=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x3a0be4(0xc8)](_0x2e1b65=>_0x2e1b65<=_0x33f2e8)[_0x3a0be4(0xd5)](_0x18c00f=>_0x5216ce[_0x3a0be4(0xcd)](/\/$/,'')+_0x3a0be4(0xd8)+_0x18c00f+_0x3a0be4(0xcb)+_0x18c00f+'w');return{'imageFallbackUrl':_0x5216ce,'imageSources':[{'srcset':_0xe9f7fe[_0x3a0be4(0xaa)](',\x20'),'sizes':_0x3a0be4(0xcc)+_0x33f2e8+_0x3a0be4(0xd4)+_0x33f2e8+'px','type':_0x3a0be4(0xbb)}]};}export function getImageDimension(_0x3be3ba,_0x54f47e,_0x1f4c9e){const _0x1bfa69=_0x2c8f,_0x1a2fc2=_0x3be3ba[_0x1bfa69(0xae)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1a2fc2?parseInt(_0x1a2fc2[0x1],0xa):_0x54f47e,'height':_0x1a2fc2?parseInt(_0x1a2fc2[0x2],0xa):_0x1f4c9e};}export function showImageProcessingIndicator(_0x5afd65,_0x6a1735){const _0x4d73b8=_0x2c8f,_0x552a0c=new(_0x2280ff())(),_0x5ad49d=_0x5afd65[_0x4d73b8(0xc4)][_0x4d73b8(0xd6)](_0x4d73b8(0xb5)),_0x1139e3=_0x5afd65[_0x4d73b8(0xdb)][_0x4d73b8(0xa7)][_0x4d73b8(0xb3)](_0x6a1735),_0x15d21c=_0x5ad49d[_0x4d73b8(0xc0)](_0x1139e3),_0x52cd24=_0x5afd65[_0x4d73b8(0xdb)][_0x4d73b8(0xa4)][_0x4d73b8(0xb9)][_0x4d73b8(0xb6)](_0x15d21c),_0x73f8c=_0x6a1735[_0x4d73b8(0xd0)](_0x4d73b8(0xba)),_0x38057e=_0x6a1735[_0x4d73b8(0xd0)](_0x4d73b8(0xb1)),_0x1aa72d=_0x4d73b8(0xc6);_0x5afd65[_0x4d73b8(0xdb)][_0x4d73b8(0xa4)][_0x4d73b8(0xb4)](_0x574eb6=>{const _0x4cf160=_0x4d73b8;_0x574eb6[_0x4cf160(0xb0)](_0x1aa72d,_0x1139e3),_0x574eb6[_0x4cf160(0xa9)](_0x4cf160(0xda),_0x73f8c+'/'+_0x38057e,_0x15d21c);}),_0x552a0c[_0x4d73b8(0xc7)](_0x52cd24,_0x4d73b8(0xd1),()=>{const _0xeee291=_0x4d73b8;_0x552a0c[_0xeee291(0xb8)](_0x52cd24,_0xeee291(0xd1)),_0x5afd65[_0xeee291(0xdb)][_0xeee291(0xa4)][_0xeee291(0xb4)](_0x24dd18=>{const _0x797d88=_0xeee291;_0x24dd18[_0x797d88(0xd7)](_0x1aa72d,_0x1139e3),_0x24dd18[_0x797d88(0xbe)](_0x797d88(0xda),_0x15d21c);});});}function R(_0xaead1a){const _0xa88494=_0x2c8f;if(Array[_0xa88494(0xc2)](_0xaead1a)){const _0x21dd7d=_0xaead1a[_0xa88494(0xd5)](R);return _0x45d937=>_0x21dd7d[_0xa88494(0xd3)](_0x20a42b=>_0x20a42b(_0x45d937));}if(_0xa88494(0xc9)==_0xaead1a){const _0x59bc4c=_0x12c268[_0xa88494(0xce)][_0xa88494(0xbf)][_0xa88494(0xc9)];return _0x6851ac=>new URL(_0x6851ac,_0x12c268[_0xa88494(0xbd)][_0xa88494(0xbc)])[_0xa88494(0xc9)]==_0x59bc4c;}return _0xa88494(0xc3)==typeof _0xaead1a?_0xaead1a:_0xaead1a instanceof RegExp?_0x23d2f0=>!(!_0x23d2f0[_0xa88494(0xae)](_0xaead1a)&&!_0x23d2f0[_0xa88494(0xcd)](/^https?:\/\//,'')[_0xa88494(0xae)](_0xaead1a)):()=>!0x1;}