@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250222.0 → 0.0.0-nightly-next-20250223.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x23d08a,ObservableMixin as _0x59d929}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x381f3d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x312bdc}from'ckeditor5/src/icons.js';import _0xaa60b1 from'./uploadcareimageeditformview.js';import _0x1f7297 from'../../utils/uploadutils.js';import{getImageUrls as _0x590b11,getImageDimension as _0x17ee1f}from'../../utils/editingutils.js';import{isAncestor as _0xe418cf}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
24
- _0x59d929(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x345048,_0x226a99,_0x28e337){super(),this['_editor']=_0x345048,this['_dialog']=_0x226a99,this['_imageElement']=_0x28e337,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 _0x3820a5=this['_imageElement'],_0x52a3c6=_0x3820a5['getAttribute']('uploadcareImageId'),_0x37dfb0=_0x3820a5['getAttribute']('src');if(_0x52a3c6)await this['_loadImageInfo'](_0x52a3c6,_0x37dfb0);else{if(this['_imageCache']['has'](_0x37dfb0)){const _0x2d544f=this['_imageCache']['get'](_0x37dfb0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d544f['url'],this['imageDimension']=_0x2d544f['dimension'],this['imageId']=_0x2d544f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2c4f86}=this['_editor'],t=_0x2c4f86['t'],_0x9003d2=new _0xaa60b1(_0x2c4f86,this['imageStatus'],this['_attributes']);_0x9003d2['bind']('status')['to'](this,'imageStatus'),_0x9003d2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x9003d2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x9003d2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x9003d2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x312bdc,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x9003d2,'position':_0x381f3d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x9003d2['focus']();},'onHide':()=>{_0x9003d2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5d3960=>!_0xe418cf(_0x5d3960,_0x9003d2['element'])}});}['_loadImageInfo'](_0x5cc8b1,_0x28c6c2){return _0x1f7297['getInfo'](_0x5cc8b1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x40eaf3=>{const {width:_0x57dd5c,height:_0x4a5505}=_0x40eaf3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x28c6c2,this['imageDimension']={'width':_0x57dd5c,'height':_0x4a5505},this['imageId']=_0x5cc8b1;})['catch'](_0x125067=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x125067['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5d8c87,_0x558ab0){return this['_getImageAsFile'](_0x5d8c87)['then'](_0x3202a2=>_0x1f7297['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x558ab0['signal'],'file':_0x3202a2,'onProgress':_0x5ed1e1=>{_0x5ed1e1&&_0x5ed1e1['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5ed1e1['value']));}}))['then'](_0x4ed48a=>{const {width:_0x2cad1d,height:_0x8407b5}=_0x4ed48a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ed48a['cdnUrl'],this['imageDimension']={'width':_0x2cad1d,'height':_0x8407b5},this['imageId']=_0x4ed48a['uuid'],this['imageUploadProgress']=null;const _0x37c229=_0x5d8c87['getAttribute']('src');this['_imageCache']['set'](_0x37c229,{'id':_0x4ed48a['uuid'],'url':_0x4ed48a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x187c31=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x187c31['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1eb002,_0x212608){_0x1eb002['on']('apply',(_0x2c1e65,_0x388469)=>{this['_replaceImage'](_0x212608,_0x388469['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1eb002['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1eb002['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x16f2cd,_0x359bfa,_0x4bf22b){const _0x42509f=this['_editor'],{width:_0x5b7b50,height:_0x21d6a2}=_0x17ee1f(_0x359bfa,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x9c2b9b,imageSources:_0x40cc9e}=_0x590b11(_0x359bfa,_0x5b7b50);_0x42509f['model']['change'](_0x50966d=>{if('$graveyard'===_0x16f2cd['root']['rootName']){_0x42509f['execute']('insertImage',{'imageType':_0x16f2cd['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x16f2cd['getAttributes']()),'uploadcareImageId':_0x4bf22b,'src':_0x9c2b9b,'sources':_0x40cc9e,'width':_0x5b7b50,'height':_0x21d6a2}});const _0x95e1f7=_0x16f2cd['getChildren']();_0x16f2cd=_0x42509f['model']['document']['selection']['getSelectedElement']();for(const _0x8bfa21 of _0x95e1f7)_0x50966d['append'](_0x50966d['cloneElement'](_0x8bfa21),_0x16f2cd);}else _0x50966d['setSelection'](_0x16f2cd,'on'),_0x42509f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x16f2cd['getAttributes']()),'uploadcareImageId':_0x4bf22b,'src':_0x9c2b9b,'sources':_0x40cc9e,'width':_0x5b7b50,'height':_0x21d6a2},_0x16f2cd);_0x50966d['setSelection'](_0x16f2cd,'on');});}async['_getImageAsFile'](_0x90f52a){const _0x579058=_0x23d08a['window'],_0x14020a=_0x23d08a['document']['location']['href'],_0x243dc1=new _0x579058['URL'](_0x90f52a['getAttribute']('src'),_0x14020a);if('data:'===_0x243dc1['protocol']){const _0x52310c=_0x243dc1['href']['split'](','),_0x413e82=_0x52310c[0x0]['match'](/:(.*?);/)[0x1],_0x166f46=_0x413e82['split']('/')[0x1],_0x2a9afa=_0x579058['atob'](_0x52310c[_0x52310c['length']-0x1]);let _0x1a21d5=_0x2a9afa['length'];const _0x1f0443=new _0x579058['Uint8Array'](_0x1a21d5);for(;_0x1a21d5--;)_0x1f0443[_0x1a21d5]=_0x2a9afa['charCodeAt'](_0x1a21d5);return new _0x579058['File']([_0x1f0443],'image.'+_0x166f46,{'type':_0x413e82});}const _0x28444d=_0x243dc1['href']['split']('/'),_0x8f827c=_0x28444d[_0x28444d['length']-0x1],_0xd2e9=_0x8f827c['split']('.')[0x1];return _0x579058['fetch'](_0x243dc1['href'])['then'](_0x388f45=>_0x388f45['clone']()['blob']())['then'](_0x225d44=>new _0x579058['File']([_0x225d44],_0x8f827c,{'type':'image/'+_0xd2e9}));}}
23
+ import{global as _0x54309f,ObservableMixin as _0x47fadc}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2842f6}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x360df2}from'ckeditor5/src/icons.js';import _0x56e9be from'./uploadcareimageeditformview.js';import _0x455cae from'../../utils/uploadutils.js';import{getImageUrls as _0x59e74a,getImageDimension as _0x1029d5}from'../../utils/editingutils.js';import{isAncestor as _0x5f5d7d}from'../../utils/isancestor.js';export default class A extends/* #__PURE__ -- @preserve */
24
+ _0x47fadc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5811b1,_0x337e17,_0x13e03c){super(),this['_editor']=_0x5811b1,this['_dialog']=_0x337e17,this['_imageElement']=_0x13e03c,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 _0x4fc0b4=this['_imageElement'],_0x816ed=_0x4fc0b4['getAttribute']('uploadcareImageId'),_0x494b22=_0x4fc0b4['getAttribute']('src');if(_0x816ed)await this['_loadImageInfo'](_0x816ed,_0x494b22);else{if(this['_imageCache']['has'](_0x494b22)){const _0x5b735a=this['_imageCache']['get'](_0x494b22);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b735a['url'],this['imageDimension']=_0x5b735a['dimension'],this['imageId']=_0x5b735a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1e1837}=this['_editor'],t=_0x1e1837['t'],_0x450aaa=new _0x56e9be(_0x1e1837,this['imageStatus'],this['_attributes']);_0x450aaa['bind']('status')['to'](this,'imageStatus'),_0x450aaa['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x450aaa['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x450aaa['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x450aaa,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x360df2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x450aaa,'position':_0x2842f6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x450aaa['focus']();},'onHide':()=>{_0x450aaa['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x58f304=>!_0x5f5d7d(_0x58f304,_0x450aaa['element'])}});}['_loadImageInfo'](_0x536f0f,_0x3c204b){return _0x455cae['getInfo'](_0x536f0f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xa3d4d2=>{const {width:_0x2fac19,height:_0x3b2374}=_0xa3d4d2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c204b,this['imageDimension']={'width':_0x2fac19,'height':_0x3b2374},this['imageId']=_0x536f0f;})['catch'](_0x40358a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x40358a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x511c40,_0x18d49a){return this['_getImageAsFile'](_0x511c40)['then'](_0xfd934d=>_0x455cae['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x18d49a['signal'],'file':_0xfd934d,'onProgress':_0x136413=>{_0x136413&&_0x136413['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x136413['value']));}}))['then'](_0x8a6875=>{const {width:_0x33e96a,height:_0x317379}=_0x8a6875['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x8a6875['cdnUrl'],this['imageDimension']={'width':_0x33e96a,'height':_0x317379},this['imageId']=_0x8a6875['uuid'],this['imageUploadProgress']=null;const _0x55f483=_0x511c40['getAttribute']('src');this['_imageCache']['set'](_0x55f483,{'id':_0x8a6875['uuid'],'url':_0x8a6875['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x589daa=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x589daa['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x414319,_0xbcc3d0){_0x414319['on']('apply',(_0x450b5b,_0x1e105e)=>{this['_replaceImage'](_0xbcc3d0,_0x1e105e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x414319['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x414319['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4302ac,_0x22a853,_0x448b75){const _0x5613fc=this['_editor'],{width:_0x290f04,height:_0x5d3c3d}=_0x1029d5(_0x22a853,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4bc949,imageSources:_0x3f1c38}=_0x59e74a(_0x22a853,_0x290f04);_0x5613fc['model']['change'](_0x5686b4=>{if('$graveyard'===_0x4302ac['root']['rootName']){_0x5613fc['execute']('insertImage',{'imageType':_0x4302ac['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4302ac['getAttributes']()),'uploadcareImageId':_0x448b75,'src':_0x4bc949,'sources':_0x3f1c38,'width':_0x290f04,'height':_0x5d3c3d}});const _0xaf1929=_0x4302ac['getChildren']();_0x4302ac=_0x5613fc['model']['document']['selection']['getSelectedElement']();for(const _0x5e25f9 of _0xaf1929)_0x5686b4['append'](_0x5686b4['cloneElement'](_0x5e25f9),_0x4302ac);}else _0x5686b4['setSelection'](_0x4302ac,'on'),_0x5613fc['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4302ac['getAttributes']()),'uploadcareImageId':_0x448b75,'src':_0x4bc949,'sources':_0x3f1c38,'width':_0x290f04,'height':_0x5d3c3d},_0x4302ac);_0x5686b4['setSelection'](_0x4302ac,'on');});}async['_getImageAsFile'](_0x22297c){const _0x4e2fd7=_0x54309f['window'],_0x27692c=_0x54309f['document']['location']['href'],_0x2b990c=new _0x4e2fd7['URL'](_0x22297c['getAttribute']('src'),_0x27692c);if('data:'===_0x2b990c['protocol']){const _0x188c15=_0x2b990c['href']['split'](','),_0x55dbfa=_0x188c15[0x0]['match'](/:(.*?);/)[0x1],_0x2166b8=_0x55dbfa['split']('/')[0x1],_0x32b084=_0x4e2fd7['atob'](_0x188c15[_0x188c15['length']-0x1]);let _0x44bff3=_0x32b084['length'];const _0x374a16=new _0x4e2fd7['Uint8Array'](_0x44bff3);for(;_0x44bff3--;)_0x374a16[_0x44bff3]=_0x32b084['charCodeAt'](_0x44bff3);return new _0x4e2fd7['File']([_0x374a16],'image.'+_0x2166b8,{'type':_0x55dbfa});}const _0xb4fac=_0x2b990c['href']['split']('/'),_0x18ae9f=_0xb4fac[_0xb4fac['length']-0x1],_0x4a06c4=_0x18ae9f['split']('.')[0x1];return _0x4e2fd7['fetch'](_0x2b990c['href'])['then'](_0x52576c=>_0x52576c['clone']()['blob']())['then'](_0x1f8852=>new _0x4e2fd7['File']([_0x1f8852],_0x18ae9f,{'type':'image/'+_0x4a06c4}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1dc9(_0x5816b4,_0x3d5a4a){const _0x4ef9da=_0x4ef9();return _0x1dc9=function(_0x1dc943,_0x411cbe){_0x1dc943=_0x1dc943-0x93;let _0x1b5588=_0x4ef9da[_0x1dc943];return _0x1b5588;},_0x1dc9(_0x5816b4,_0x3d5a4a);}(function(_0x14beff,_0x4038ae){const _0x3f2b60=_0x1dc9,_0x34c499=_0x14beff();while(!![]){try{const _0x141093=parseInt(_0x3f2b60(0xa0))/0x1+-parseInt(_0x3f2b60(0x94))/0x2*(parseInt(_0x3f2b60(0x9e))/0x3)+parseInt(_0x3f2b60(0x9a))/0x4+-parseInt(_0x3f2b60(0x9d))/0x5*(-parseInt(_0x3f2b60(0x9c))/0x6)+-parseInt(_0x3f2b60(0xa2))/0x7+parseInt(_0x3f2b60(0x99))/0x8+parseInt(_0x3f2b60(0xa1))/0x9*(-parseInt(_0x3f2b60(0x97))/0xa);if(_0x141093===_0x4038ae)break;else _0x34c499['push'](_0x34c499['shift']());}catch(_0x4547ff){_0x34c499['push'](_0x34c499['shift']());}}}(_0x4ef9,0x2c6ea));import{View as _0x58fe2e}from'ckeditor5/src/ui.js';function _0x4ef9(){const _0x1d23ec=['132pCjZMk','setTemplate','133341cgJMmm','135EZvgqu','1360051VKtluP','set','image-edit','bindTemplate','5136tOereB','uc-light','imageSrc','222660ccoKic','uc-cloud-image-editor','2731568PCyYnC','202824kfRdgp','ck-uploadcare-theme','111666RaoAPF','80loQEhi'];_0x4ef9=function(){return _0x1d23ec;};return _0x4ef9();}export default class tt extends _0x58fe2e{constructor(_0x31d98f,_0x525397){const _0x27d933=_0x1dc9;super(_0x31d98f);const _0x2dcafa=this[_0x27d933(0x93)];this[_0x27d933(0xa3)](_0x27d933(0x96),''),this[_0x27d933(0x9f)]({'tag':_0x27d933(0x98),'attributes':{..._0x525397,'class':[_0x27d933(0x95),_0x27d933(0x9b)],'ctx-name':_0x27d933(0xa4),'cdn-url':_0x2dcafa['to'](_0x27d933(0x96))}});}}
23
+ (function(_0x4211a3,_0x4cd8b2){const _0x26c7e1=_0x503b,_0x33dd91=_0x4211a3();while(!![]){try{const _0x2a6542=-parseInt(_0x26c7e1(0x18d))/0x1+parseInt(_0x26c7e1(0x18b))/0x2+-parseInt(_0x26c7e1(0x18a))/0x3*(-parseInt(_0x26c7e1(0x18c))/0x4)+-parseInt(_0x26c7e1(0x18e))/0x5+parseInt(_0x26c7e1(0x196))/0x6+parseInt(_0x26c7e1(0x193))/0x7*(parseInt(_0x26c7e1(0x186))/0x8)+-parseInt(_0x26c7e1(0x192))/0x9;if(_0x2a6542===_0x4cd8b2)break;else _0x33dd91['push'](_0x33dd91['shift']());}catch(_0x57749d){_0x33dd91['push'](_0x33dd91['shift']());}}}(_0x1413,0x20ddd));import{View as _0x56914d}from'ckeditor5/src/ui.js';function _0x503b(_0x354d47,_0x585b99){const _0x141399=_0x1413();return _0x503b=function(_0x503b2a,_0x3ffcc){_0x503b2a=_0x503b2a-0x186;let _0x4d1276=_0x141399[_0x503b2a];return _0x4d1276;},_0x503b(_0x354d47,_0x585b99);}export default class tt extends _0x56914d{constructor(_0x46b092,_0x59e349){const _0x1b7a7a=_0x503b;super(_0x46b092);const _0x2f63a5=this[_0x1b7a7a(0x189)];this[_0x1b7a7a(0x194)](_0x1b7a7a(0x188),''),this[_0x1b7a7a(0x187)]({'tag':_0x1b7a7a(0x190),'attributes':{..._0x59e349,'class':[_0x1b7a7a(0x191),_0x1b7a7a(0x18f)],'ctx-name':_0x1b7a7a(0x195),'cdn-url':_0x2f63a5['to'](_0x1b7a7a(0x188))}});}}function _0x1413(){const _0x5e6920=['uc-light','381924dECPiy','56AfEZrA','set','image-edit','1251294aPTdPO','140648YhpnHv','setTemplate','imageSrc','bindTemplate','135ghkVGi','235438pycyDn','3156brHHGm','100518krjslg','1124230OQWmjW','ck-uploadcare-theme','uc-cloud-image-editor'];_0x1413=function(){return _0x5e6920;};return _0x1413();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x2c213b,IconView as at,View as _0x1ae52a}from'ckeditor5/src/ui.js';export default class rt extends _0x1ae52a{constructor(_0x4ad58e){super(_0x4ad58e);const t=_0x4ad58e['t'];this['set']('errorType',null);const _0x2edd8b=new _0x2c213b(_0x4ad58e);_0x2edd8b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2edd8b['withText']=!0x0,_0x2edd8b['class']='ck-button-action',_0x2edd8b['on']('execute',()=>{this['fire']('retry');}),_0x2edd8b['bind']('isVisible')['to'](this,'errorType',_0x4cb6d7=>'NotFound'!==_0x4cb6d7);const _0x5a2f4e=new at();_0x5a2f4e['content']=et,_0x5a2f4e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x380982=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':[_0x5a2f4e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x380982['to']('errorType',_0x35161b=>t('NotFound'!==_0x35161b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2edd8b]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
23
+ import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x3057d6,IconView as at,View as _0x48b622}from'ckeditor5/src/ui.js';export default class rt extends _0x48b622{constructor(_0x51d6c1){super(_0x51d6c1);const t=_0x51d6c1['t'];this['set']('errorType',null);const _0x212744=new _0x3057d6(_0x51d6c1);_0x212744['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x212744['withText']=!0x0,_0x212744['class']='ck-button-action',_0x212744['on']('execute',()=>{this['fire']('retry');}),_0x212744['bind']('isVisible')['to'](this,'errorType',_0x170918=>'NotFound'!==_0x170918);const _0x2d0490=new at();_0x2d0490['content']=et,_0x2d0490['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x16ad50=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':[_0x2d0490,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x16ad50['to']('errorType',_0x5d0dcb=>t('NotFound'!==_0x5d0dcb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x212744]},{'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 _0x4bbf5b,View as _0x156729}from'ckeditor5/src/ui.js';export default class ta extends _0x156729{constructor(_0x23fa74){super(_0x23fa74);const t=_0x23fa74['t'],_0x22b992=this['bindTemplate'],_0x10fa81=new _0x4bbf5b();_0x10fa81['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':[_0x10fa81,{'text':_0x22b992['to']('imageUploadProgress',_0x2845f0=>t('Loading\x20image...')+'\x20('+(_0x2845f0||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 _0xd1cb26,View as _0x4d71c9}from'ckeditor5/src/ui.js';export default class ta extends _0x4d71c9{constructor(_0x463785){super(_0x463785);const t=_0x463785['t'],_0x542090=this['bindTemplate'],_0x24e828=new _0xd1cb26();_0x24e828['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':[_0x24e828,{'text':_0x542090['to']('imageUploadProgress',_0x92e790=>t('Loading\x20image...')+'\x20('+(_0x92e790||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
- const _0xc87ec4=_0x1107;(function(_0x1611fd,_0x571f2f){const _0x4d2d05=_0x1107,_0x15f702=_0x1611fd();while(!![]){try{const _0x539d8f=parseInt(_0x4d2d05(0xaa))/0x1+-parseInt(_0x4d2d05(0xa7))/0x2*(-parseInt(_0x4d2d05(0xa4))/0x3)+-parseInt(_0x4d2d05(0xa1))/0x4+-parseInt(_0x4d2d05(0xad))/0x5*(-parseInt(_0x4d2d05(0x8c))/0x6)+-parseInt(_0x4d2d05(0x8d))/0x7*(parseInt(_0x4d2d05(0x9d))/0x8)+-parseInt(_0x4d2d05(0x8f))/0x9*(-parseInt(_0x4d2d05(0x83))/0xa)+-parseInt(_0x4d2d05(0xae))/0xb*(parseInt(_0x4d2d05(0xb1))/0xc);if(_0x539d8f===_0x571f2f)break;else _0x15f702['push'](_0x15f702['shift']());}catch(_0x27f4e8){_0x15f702['push'](_0x15f702['shift']());}}}(_0x5d1a,0xd7ecf));import{View as _0x172721}from'ckeditor5/src/ui.js';function _0x1107(_0x15a230,_0x22132f){const _0x5d1af1=_0x5d1a();return _0x1107=function(_0x1107bb,_0x22a7fd){_0x1107bb=_0x1107bb-0x7d;let _0x3ed67c=_0x5d1af1[_0x1107bb];return _0x3ed67c;},_0x1107(_0x15a230,_0x22132f);}function _0x5d1a(){const _0x39d44b=['_waitForImageEditorComponent','setTemplate','addEventListener','_items','22352BojIah','render','_addUploadcareImageEditorListeners','_loadingView','2329120RdKFTg','retry','cdnUrl','230199ffjnGT','uc-cloud-image-editor','addedNodes','12SuEuUn','once','div','1437696JoEMjb','nodeName','target','1372315oLjKHl','720269iBDyYY','fire','_focusableView','204EVhyyW','cancel','_setView','_editingView','addMany','createCollection','toLowerCase','set','clear','ready','status','1817830qFXofD','disconnect','length','observe','apply','_errorView','focus','error','element','18hAZwfm','2632CKTMNq','change:status','45CxUpcu','add','getFocusableElement','detail','ck-uploadcare-form','filter','querySelector','uploading','_addErrorViewListeners','ck-reset_all-excluded'];_0x5d1a=function(){return _0x39d44b;};return _0x5d1a();}import _0x493261 from'./uploadcareimageeditformloadingview.js';import _0x25cc32 from'./uploadcareimageeditformerrorview.js';import _0x1c8125 from'./uploadcareimageeditformeditingview.js';import _0x176c87 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x176c87{[_0xc87ec4(0x9c)];[_0xc87ec4(0xa0)];[_0xc87ec4(0x88)];[_0xc87ec4(0xb4)];[_0xc87ec4(0xb0)];constructor(_0x49cc7b,_0x10ea18,_0x1e65f8){const _0x406cc7=_0xc87ec4;super(_0x49cc7b),this[_0x406cc7(0x9c)]=this[_0x406cc7(0x7d)](),this[_0x406cc7(0xa0)]=new _0x493261(_0x49cc7b),this[_0x406cc7(0x88)]=new _0x25cc32(_0x49cc7b),this[_0x406cc7(0xb4)]=new _0x1c8125(_0x49cc7b,_0x1e65f8),this[_0x406cc7(0xb0)]=new _0x172721(_0x49cc7b),this[_0x406cc7(0xb0)][_0x406cc7(0x9a)](this[_0x406cc7(0x91)]()),this[_0x406cc7(0x7f)](_0x406cc7(0x82),_0x10ea18),this[_0x406cc7(0x9a)]({'tag':_0x406cc7(0xa9),'attributes':{'class':['ck',_0x406cc7(0x98),_0x406cc7(0x93)],'tabindex':'-1'},'children':this[_0x406cc7(0x9c)]}),this[_0x406cc7(0xb3)](),this[_0x406cc7(0xa8)](_0x406cc7(0x9e),()=>{const _0x44bbcc=_0x406cc7;this[_0x44bbcc(0x99)](this[_0x44bbcc(0x8b)],_0x1ee9c2=>{const _0x541b2f=_0x44bbcc;this[_0x541b2f(0x9f)](_0x1ee9c2);});}),this['on'](_0x406cc7(0x8e),()=>{const _0x558fd4=_0x406cc7;this[_0x558fd4(0xb3)]();}),this[_0x406cc7(0x97)]();}[_0xc87ec4(0x89)](){const _0x2b1d96=_0xc87ec4;this[_0x2b1d96(0x8b)][_0x2b1d96(0x89)]();}[_0xc87ec4(0xb3)](){const _0x51c120=_0xc87ec4;switch(this[_0x51c120(0x9c)][_0x51c120(0x80)](),this[_0x51c120(0x82)]){case _0x51c120(0x96):this[_0x51c120(0x9c)][_0x51c120(0x90)](this[_0x51c120(0xa0)]);break;case _0x51c120(0x8a):this[_0x51c120(0x9c)][_0x51c120(0x90)](this[_0x51c120(0x88)]);break;case _0x51c120(0x81):this[_0x51c120(0x9c)][_0x51c120(0xb5)]([this[_0x51c120(0xb4)],this[_0x51c120(0xb0)]]);}}[_0xc87ec4(0x99)](_0x4a8fbc,_0x196f55){const _0x30beef=_0xc87ec4,_0x29fb9c=_0x30beef(0xa5),_0xa24663=_0x4a8fbc[_0x30beef(0x95)](_0x29fb9c);if(_0xa24663)return _0x196f55(_0xa24663);const _0x6c3f73=new MutationObserver(_0xe047c8=>{const _0xb556c7=_0x30beef,_0x4f5542=_0xe047c8[_0xb556c7(0x94)](_0x360e9e=>_0x360e9e[_0xb556c7(0xac)]===_0x4a8fbc&&_0x360e9e[_0xb556c7(0xa6)][_0xb556c7(0x85)]>0x0&&_0x360e9e[_0xb556c7(0xa6)][0x0][_0xb556c7(0xab)][_0xb556c7(0x7e)]()===_0x29fb9c);_0x4f5542[_0xb556c7(0x85)]&&(_0x6c3f73[_0xb556c7(0x84)](),_0x196f55(_0x4f5542[0x0][_0xb556c7(0xa6)][0x0]));});_0x6c3f73[_0x30beef(0x86)](_0x4a8fbc,{'childList':!0x0,'subtree':!0x0});}[_0xc87ec4(0x9f)](_0x2462a7){const _0x50a700=_0xc87ec4;_0x2462a7[_0x50a700(0x9b)](_0x50a700(0x87),_0x1c931e=>{const _0x5e1919=_0x50a700;this[_0x5e1919(0xaf)](_0x5e1919(0x87),{'imageSrc':_0x1c931e[_0x5e1919(0x92)][_0x5e1919(0xa3)]});}),_0x2462a7[_0x50a700(0x9b)](_0x50a700(0xb2),()=>{const _0x440772=_0x50a700;this[_0x440772(0xaf)](_0x440772(0xb2));});}[_0xc87ec4(0x97)](){const _0x21a42e=_0xc87ec4;this[_0x21a42e(0x88)]['on'](_0x21a42e(0xa2),()=>{const _0x469a11=_0x21a42e;this[_0x469a11(0xaf)](_0x469a11(0xa2));});}}
23
+ function _0x4a46(){const _0x105ca1=['494720TfzLbz','clear','uc-cloud-image-editor','error','uploading','target','204790ZhIlpz','5621864XMQMQB','639784HjdgWJ','setTemplate','_errorView','7yOODXV','disconnect','once','_focusableView','_items','ck-reset_all-excluded','addEventListener','apply','add','cancel','5GgPmGd','_editingView','_loadingView','14182272XLClsA','toLowerCase','_addErrorViewListeners','_addUploadcareImageEditorListeners','2830908RVJAhC','addMany','ready','1711143NzaZHD','_waitForImageEditorComponent','change:status','filter','retry','element','createCollection','addedNodes','div','cdnUrl','detail','getFocusableElement','focus','ck-uploadcare-form','observe','_setView','nodeName','set','querySelector','fire','length','render','status'];_0x4a46=function(){return _0x105ca1;};return _0x4a46();}const _0xccab62=_0x2567;(function(_0x193e6d,_0x5dd975){const _0x1245ef=_0x2567,_0x2b4a68=_0x193e6d();while(!![]){try{const _0x2f9a81=-parseInt(_0x1245ef(0x1bb))/0x1+-parseInt(_0x1245ef(0x1b5))/0x2+-parseInt(_0x1245ef(0x19e))/0x3+parseInt(_0x1245ef(0x1bd))/0x4*(parseInt(_0x1245ef(0x194))/0x5)+-parseInt(_0x1245ef(0x19b))/0x6*(-parseInt(_0x1245ef(0x1c0))/0x7)+-parseInt(_0x1245ef(0x1bc))/0x8+parseInt(_0x1245ef(0x197))/0x9;if(_0x2f9a81===_0x5dd975)break;else _0x2b4a68['push'](_0x2b4a68['shift']());}catch(_0xe00299){_0x2b4a68['push'](_0x2b4a68['shift']());}}}(_0x4a46,0x75c04));import{View as _0x2c17b2}from'ckeditor5/src/ui.js';function _0x2567(_0x230acb,_0x563c4b){const _0x4a464e=_0x4a46();return _0x2567=function(_0x25672e,_0x4e1d11){_0x25672e=_0x25672e-0x18f;let _0x3c6513=_0x4a464e[_0x25672e];return _0x3c6513;},_0x2567(_0x230acb,_0x563c4b);}import _0x3f690a from'./uploadcareimageeditformloadingview.js';import _0x55f1b0 from'./uploadcareimageeditformerrorview.js';import _0x1040fd from'./uploadcareimageeditformeditingview.js';import _0x17b4e5 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x17b4e5{[_0xccab62(0x1c4)];[_0xccab62(0x196)];[_0xccab62(0x1bf)];[_0xccab62(0x195)];[_0xccab62(0x1c3)];constructor(_0x31f06c,_0x5af1f4,_0x57e619){const _0x1dfbd4=_0xccab62;super(_0x31f06c),this[_0x1dfbd4(0x1c4)]=this[_0x1dfbd4(0x1a4)](),this[_0x1dfbd4(0x196)]=new _0x3f690a(_0x31f06c),this[_0x1dfbd4(0x1bf)]=new _0x55f1b0(_0x31f06c),this[_0x1dfbd4(0x195)]=new _0x1040fd(_0x31f06c,_0x57e619),this[_0x1dfbd4(0x1c3)]=new _0x2c17b2(_0x31f06c),this[_0x1dfbd4(0x1c3)][_0x1dfbd4(0x1be)](this[_0x1dfbd4(0x1a9)]()),this[_0x1dfbd4(0x1af)](_0x1dfbd4(0x1b4),_0x5af1f4),this[_0x1dfbd4(0x1be)]({'tag':_0x1dfbd4(0x1a6),'attributes':{'class':['ck',_0x1dfbd4(0x18f),_0x1dfbd4(0x1ab)],'tabindex':'-1'},'children':this[_0x1dfbd4(0x1c4)]}),this[_0x1dfbd4(0x1ad)](),this[_0x1dfbd4(0x1c2)](_0x1dfbd4(0x1b3),()=>{const _0x10a1dd=_0x1dfbd4;this[_0x10a1dd(0x19f)](this[_0x10a1dd(0x1a3)],_0xfaac6c=>{const _0x44030e=_0x10a1dd;this[_0x44030e(0x19a)](_0xfaac6c);});}),this['on'](_0x1dfbd4(0x1a0),()=>{const _0x2f1340=_0x1dfbd4;this[_0x2f1340(0x1ad)]();}),this[_0x1dfbd4(0x199)]();}[_0xccab62(0x1aa)](){const _0x4d6049=_0xccab62;this[_0x4d6049(0x1a3)][_0x4d6049(0x1aa)]();}[_0xccab62(0x1ad)](){const _0x4ef702=_0xccab62;switch(this[_0x4ef702(0x1c4)][_0x4ef702(0x1b6)](),this[_0x4ef702(0x1b4)]){case _0x4ef702(0x1b9):this[_0x4ef702(0x1c4)][_0x4ef702(0x192)](this[_0x4ef702(0x196)]);break;case _0x4ef702(0x1b8):this[_0x4ef702(0x1c4)][_0x4ef702(0x192)](this[_0x4ef702(0x1bf)]);break;case _0x4ef702(0x19d):this[_0x4ef702(0x1c4)][_0x4ef702(0x19c)]([this[_0x4ef702(0x195)],this[_0x4ef702(0x1c3)]]);}}[_0xccab62(0x19f)](_0x10d6ba,_0x4b3def){const _0x38fe6a=_0xccab62,_0x12fcab=_0x38fe6a(0x1b7),_0x32ffe5=_0x10d6ba[_0x38fe6a(0x1b0)](_0x12fcab);if(_0x32ffe5)return _0x4b3def(_0x32ffe5);const _0x5c653d=new MutationObserver(_0x46bbd5=>{const _0x4972c2=_0x38fe6a,_0x3fbbe3=_0x46bbd5[_0x4972c2(0x1a1)](_0x4d29b3=>_0x4d29b3[_0x4972c2(0x1ba)]===_0x10d6ba&&_0x4d29b3[_0x4972c2(0x1a5)][_0x4972c2(0x1b2)]>0x0&&_0x4d29b3[_0x4972c2(0x1a5)][0x0][_0x4972c2(0x1ae)][_0x4972c2(0x198)]()===_0x12fcab);_0x3fbbe3[_0x4972c2(0x1b2)]&&(_0x5c653d[_0x4972c2(0x1c1)](),_0x4b3def(_0x3fbbe3[0x0][_0x4972c2(0x1a5)][0x0]));});_0x5c653d[_0x38fe6a(0x1ac)](_0x10d6ba,{'childList':!0x0,'subtree':!0x0});}[_0xccab62(0x19a)](_0x2297b4){const _0x459fe6=_0xccab62;_0x2297b4[_0x459fe6(0x190)](_0x459fe6(0x191),_0x2c31f2=>{const _0x812fc5=_0x459fe6;this[_0x812fc5(0x1b1)](_0x812fc5(0x191),{'imageSrc':_0x2c31f2[_0x812fc5(0x1a8)][_0x812fc5(0x1a7)]});}),_0x2297b4[_0x459fe6(0x190)](_0x459fe6(0x193),()=>{const _0x37b551=_0x459fe6;this[_0x37b551(0x1b1)](_0x37b551(0x193));});}[_0xccab62(0x199)](){const _0x4af99a=_0xccab62;this[_0x4af99a(0x1bf)]['on'](_0x4af99a(0x1a2),()=>{const _0x55c7ef=_0x4af99a;this[_0x55c7ef(0x1b1)](_0x55c7ef(0x1a2));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b9965=_0x1c2d;(function(_0x3deef8,_0xa57c4){const _0x188a6a=_0x1c2d,_0x14a9c2=_0x3deef8();while(!![]){try{const _0x2f9b58=-parseInt(_0x188a6a(0x196))/0x1*(parseInt(_0x188a6a(0x1a1))/0x2)+-parseInt(_0x188a6a(0x197))/0x3+-parseInt(_0x188a6a(0x1a6))/0x4+-parseInt(_0x188a6a(0x1ae))/0x5*(parseInt(_0x188a6a(0x195))/0x6)+-parseInt(_0x188a6a(0x1ac))/0x7+parseInt(_0x188a6a(0x1a5))/0x8*(-parseInt(_0x188a6a(0x1aa))/0x9)+parseInt(_0x188a6a(0x1b1))/0xa;if(_0x2f9b58===_0xa57c4)break;else _0x14a9c2['push'](_0x14a9c2['shift']());}catch(_0xf2a29e){_0x14a9c2['push'](_0x14a9c2['shift']());}}}(_0x32df,0x4ed6e));import{Command as _0x51192a}from'ckeditor5/src/core.js';import{Dialog as _0x4a4820}from'ckeditor5/src/ui.js';import _0x1c93c9 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0xbe0f33}from'../utils/editingutils.js';function _0x32df(){const _0x5e4d31=['set','uploadcare.allowExternalImagesEditing','45CQrGKz','_isEditable','1407049JmniWs','refresh','5SgKkjc','editor','document','14580390ibstxD','bind','execute','getSelectedElement','169842zXXHup','218809UaAjoz','826527lrzsop','imageInline','model','imageEditController','requires','plugins','selection','imageBlock','get','isEnabled','2aHVoFt','isActive','element','config','617896ePmYiV','101184qWfUdc','unbind'];_0x32df=function(){return _0x5e4d31;};return _0x32df();}function _0x1c2d(_0x88b698,_0x1cf06c){const _0x32df4a=_0x32df();return _0x1c2d=function(_0x1c2d77,_0x41771c){_0x1c2d77=_0x1c2d77-0x193;let _0x340e11=_0x32df4a[_0x1c2d77];return _0x340e11;},_0x1c2d(_0x88b698,_0x1cf06c);}export default class J extends _0x51192a{[_0x2b9965(0x19a)];static get[_0x2b9965(0x19b)](){return[_0x4a4820];}[_0x2b9965(0x1ab)];constructor(_0x279d1a){const _0xea77e=_0x2b9965;super(_0x279d1a),this[_0xea77e(0x19a)]=void 0x0,this[_0xea77e(0x1ab)]=_0xbe0f33(_0x279d1a[_0xea77e(0x1a4)][_0xea77e(0x19f)](_0xea77e(0x1a9))||[]),this[_0xea77e(0x1a8)]({'isActive':!0x1});}[_0x2b9965(0x1ad)](){const _0x2320dc=_0x2b9965,_0x15c736=this[_0x2320dc(0x1af)][_0x2320dc(0x199)][_0x2320dc(0x1b0)][_0x2320dc(0x19d)][_0x2320dc(0x194)]();this[_0x2320dc(0x1a0)]=this[_0x2320dc(0x1ab)](_0x15c736);}[_0x2b9965(0x193)](){const _0x2a934e=_0x2b9965;this[_0x2a934e(0x19a)]&&(this[_0x2a934e(0x1a7)](_0x2a934e(0x1a2)),this[_0x2a934e(0x19a)]=void 0x0);const _0x5774d6=this[_0x2a934e(0x1af)][_0x2a934e(0x199)][_0x2a934e(0x1b0)][_0x2a934e(0x19d)][_0x2a934e(0x194)]();_0x5774d6&&(_0x5774d6['is'](_0x2a934e(0x1a3),_0x2a934e(0x19e))||_0x5774d6['is'](_0x2a934e(0x1a3),_0x2a934e(0x198)))&&(this[_0x2a934e(0x19a)]=new _0x1c93c9(this[_0x2a934e(0x1af)],this[_0x2a934e(0x1af)][_0x2a934e(0x19c)][_0x2a934e(0x19f)](_0x4a4820),_0x5774d6),this[_0x2a934e(0x1b2)](_0x2a934e(0x1a2))['to'](this[_0x2a934e(0x19a)],_0x2a934e(0x1a2)));}}
23
+ const _0x362194=_0x1f21;(function(_0x145ec6,_0x585d5e){const _0x350b6c=_0x1f21,_0x3075d0=_0x145ec6();while(!![]){try{const _0x171bb5=-parseInt(_0x350b6c(0x117))/0x1*(-parseInt(_0x350b6c(0x121))/0x2)+parseInt(_0x350b6c(0x127))/0x3+-parseInt(_0x350b6c(0x12d))/0x4*(-parseInt(_0x350b6c(0x119))/0x5)+-parseInt(_0x350b6c(0x11a))/0x6+-parseInt(_0x350b6c(0x12c))/0x7+-parseInt(_0x350b6c(0x112))/0x8+-parseInt(_0x350b6c(0x111))/0x9*(-parseInt(_0x350b6c(0x114))/0xa);if(_0x171bb5===_0x585d5e)break;else _0x3075d0['push'](_0x3075d0['shift']());}catch(_0x4273bb){_0x3075d0['push'](_0x3075d0['shift']());}}}(_0xafc5,0xd21de));function _0xafc5(){const _0x4e0baa=['refresh','editor','bind','imageBlock','5105555lwFSTn','17876uMQcud','imageEditController','unbind','selection','161523RgCBic','9711464WtijMu','isEnabled','1390lUhqZI','_isEditable','document','33671jTpOyN','config','835gJqCFq','8040060wwmOxY','model','getSelectedElement','execute','plugins','requires','imageInline','40TzhuUa','uploadcare.allowExternalImagesEditing','get','set','isActive','element','688710WPHRgd'];_0xafc5=function(){return _0x4e0baa;};return _0xafc5();}import{Command as _0x161b02}from'ckeditor5/src/core.js';import{Dialog as _0x2e8002}from'ckeditor5/src/ui.js';import _0x22a9ee from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x47585d}from'../utils/editingutils.js';function _0x1f21(_0x3696b4,_0x31ba9a){const _0xafc506=_0xafc5();return _0x1f21=function(_0x1f2112,_0xf9ef6c){_0x1f2112=_0x1f2112-0x10e;let _0x1a1063=_0xafc506[_0x1f2112];return _0x1a1063;},_0x1f21(_0x3696b4,_0x31ba9a);}export default class z extends _0x161b02{[_0x362194(0x10e)];static get[_0x362194(0x11f)](){return[_0x2e8002];}[_0x362194(0x115)];constructor(_0x1795b1){const _0x764aff=_0x362194;super(_0x1795b1),this[_0x764aff(0x10e)]=void 0x0,this[_0x764aff(0x115)]=_0x47585d(_0x1795b1[_0x764aff(0x118)][_0x764aff(0x123)](_0x764aff(0x122))||[]),this[_0x764aff(0x124)]({'isActive':!0x1});}[_0x362194(0x128)](){const _0x98dc9c=_0x362194,_0x6ee38c=this[_0x98dc9c(0x129)][_0x98dc9c(0x11b)][_0x98dc9c(0x116)][_0x98dc9c(0x110)][_0x98dc9c(0x11c)]();this[_0x98dc9c(0x113)]=this[_0x98dc9c(0x115)](_0x6ee38c);}[_0x362194(0x11d)](){const _0xed0f4a=_0x362194;this[_0xed0f4a(0x10e)]&&(this[_0xed0f4a(0x10f)](_0xed0f4a(0x125)),this[_0xed0f4a(0x10e)]=void 0x0);const _0x269790=this[_0xed0f4a(0x129)][_0xed0f4a(0x11b)][_0xed0f4a(0x116)][_0xed0f4a(0x110)][_0xed0f4a(0x11c)]();_0x269790&&(_0x269790['is'](_0xed0f4a(0x126),_0xed0f4a(0x12b))||_0x269790['is'](_0xed0f4a(0x126),_0xed0f4a(0x120)))&&(this[_0xed0f4a(0x10e)]=new _0x22a9ee(this[_0xed0f4a(0x129)],this[_0xed0f4a(0x129)][_0xed0f4a(0x11e)][_0xed0f4a(0x123)](_0x2e8002),_0x269790),this[_0xed0f4a(0x12a)](_0xed0f4a(0x125))['to'](this[_0xed0f4a(0x10e)],_0xed0f4a(0x125)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x26ca7c=_0x56f7;(function(_0x4cc3c5,_0x33aba9){const _0x1274ba=_0x56f7,_0x590521=_0x4cc3c5();while(!![]){try{const _0x3c9722=-parseInt(_0x1274ba(0x180))/0x1*(-parseInt(_0x1274ba(0x192))/0x2)+-parseInt(_0x1274ba(0x17e))/0x3*(parseInt(_0x1274ba(0x185))/0x4)+-parseInt(_0x1274ba(0x18b))/0x5*(parseInt(_0x1274ba(0x194))/0x6)+-parseInt(_0x1274ba(0x18a))/0x7+parseInt(_0x1274ba(0x18f))/0x8*(parseInt(_0x1274ba(0x18d))/0x9)+-parseInt(_0x1274ba(0x17f))/0xa*(-parseInt(_0x1274ba(0x189))/0xb)+parseInt(_0x1274ba(0x193))/0xc;if(_0x3c9722===_0x33aba9)break;else _0x590521['push'](_0x590521['shift']());}catch(_0x3e4232){_0x590521['push'](_0x590521['shift']());}}}(_0x9169,0x66e25));import{Plugin as _0x1fca15}from'ckeditor5/src/core.js';import{Notification as _0x3056cc}from'ckeditor5/src/ui.js';import _0x44f155 from'./uploadcareimageeditcommand.js';import _0x1b9d22 from'./uploadcareimagereplacecommand.js';function _0x9169(){const _0x3a0add=['isOfficialPlugin','ImageUtils','UploadcareImageEditEditing','32527ZFuCJF','3252305eTkwKK','7090uANpGm','pluginName','26559FRUBVZ','requires','424uObzCo','isPremiumPlugin','ImageEditing','1406SIdHCY','8754168mDhAqc','3270TOEtev','uploadcareImageReplace','2652DlnsWx','1010bMYTLP','1116rvfMif','add','uploadcareImageEdit','init','commands','1404GmdeIT'];_0x9169=function(){return _0x3a0add;};return _0x9169();}import _0x15b60c from'../uploadcareediting.js';function _0x56f7(_0x1b4a6b,_0x26bd4f){const _0x916966=_0x9169();return _0x56f7=function(_0x56f73d,_0x82d31b){_0x56f73d=_0x56f73d-0x17d;let _0x17130e=_0x916966[_0x56f73d];return _0x17130e;},_0x56f7(_0x1b4a6b,_0x26bd4f);}export default class g extends _0x1fca15{static get[_0x26ca7c(0x18c)](){const _0x2d18fc=_0x26ca7c;return _0x2d18fc(0x188);}static get[_0x26ca7c(0x18e)](){const _0x5de552=_0x26ca7c;return[_0x15b60c,_0x3056cc,_0x5de552(0x187),_0x5de552(0x191)];}static get[_0x26ca7c(0x186)](){return!0x0;}static get[_0x26ca7c(0x190)](){return!0x0;}[_0x26ca7c(0x183)](){const _0x3722e2=_0x26ca7c,{editor:_0xc9cf7b}=this;_0xc9cf7b[_0x3722e2(0x184)][_0x3722e2(0x181)](_0x3722e2(0x182),new _0x44f155(_0xc9cf7b)),_0xc9cf7b[_0x3722e2(0x184)][_0x3722e2(0x181)](_0x3722e2(0x17d),new _0x1b9d22(_0xc9cf7b));}}
23
+ const _0x43fc0e=_0x1058;(function(_0x429495,_0x291742){const _0x122eaa=_0x1058,_0x3a80e7=_0x429495();while(!![]){try{const _0x2777dc=parseInt(_0x122eaa(0x181))/0x1+parseInt(_0x122eaa(0x17d))/0x2+parseInt(_0x122eaa(0x189))/0x3*(-parseInt(_0x122eaa(0x182))/0x4)+-parseInt(_0x122eaa(0x17c))/0x5+-parseInt(_0x122eaa(0x183))/0x6*(-parseInt(_0x122eaa(0x18a))/0x7)+-parseInt(_0x122eaa(0x192))/0x8*(parseInt(_0x122eaa(0x185))/0x9)+-parseInt(_0x122eaa(0x180))/0xa*(-parseInt(_0x122eaa(0x18c))/0xb);if(_0x2777dc===_0x291742)break;else _0x3a80e7['push'](_0x3a80e7['shift']());}catch(_0x5ee4ae){_0x3a80e7['push'](_0x3a80e7['shift']());}}}(_0x57cf,0x9dd99));import{Plugin as _0x28e674}from'ckeditor5/src/core.js';import{Notification as _0x465c04}from'ckeditor5/src/ui.js';function _0x57cf(){const _0x26f7ea=['isOfficialPlugin','ImageEditing','9zFjfsN','5596003biPGUo','uploadcareImageEdit','2243065irRBzI','requires','pluginName','commands','ImageUtils','init','4264jjqOfn','1052250DGOqpg','786782eHXkkT','UploadcareImageEditEditing','add','30AIWjxc','352066XZlKhN','1012932AcSTGU','6gVZujX','uploadcareImageReplace','9117esWpqh','isPremiumPlugin'];_0x57cf=function(){return _0x26f7ea;};return _0x57cf();}import _0x248597 from'./uploadcareimageeditcommand.js';import _0xb0d180 from'./uploadcareimagereplacecommand.js';function _0x1058(_0x13dca4,_0x5918c9){const _0x57cf67=_0x57cf();return _0x1058=function(_0x105835,_0xa60b1d){_0x105835=_0x105835-0x17c;let _0x3f4d36=_0x57cf67[_0x105835];return _0x3f4d36;},_0x1058(_0x13dca4,_0x5918c9);}import _0x382972 from'../uploadcareediting.js';export default class g extends _0x28e674{static get[_0x43fc0e(0x18e)](){const _0x4a1fcb=_0x43fc0e;return _0x4a1fcb(0x17e);}static get[_0x43fc0e(0x18d)](){const _0x53c055=_0x43fc0e;return[_0x382972,_0x465c04,_0x53c055(0x190),_0x53c055(0x188)];}static get[_0x43fc0e(0x187)](){return!0x0;}static get[_0x43fc0e(0x186)](){return!0x0;}[_0x43fc0e(0x191)](){const _0xf6c264=_0x43fc0e,{editor:_0x4898bd}=this;_0x4898bd[_0xf6c264(0x18f)][_0xf6c264(0x17f)](_0xf6c264(0x18b),new _0x248597(_0x4898bd)),_0x4898bd[_0xf6c264(0x18f)][_0xf6c264(0x17f)](_0xf6c264(0x184),new _0xb0d180(_0x4898bd));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x28292a=_0x482f;(function(_0x1e7ca3,_0x34de28){var _0x58987c=_0x482f,_0x9e6f1c=_0x1e7ca3();while(!![]){try{var _0x4a4555=-parseInt(_0x58987c(0xcb))/0x1+-parseInt(_0x58987c(0xca))/0x2+parseInt(_0x58987c(0xd5))/0x3*(-parseInt(_0x58987c(0xcc))/0x4)+parseInt(_0x58987c(0xd2))/0x5*(parseInt(_0x58987c(0xcf))/0x6)+parseInt(_0x58987c(0xcd))/0x7+-parseInt(_0x58987c(0xd1))/0x8*(parseInt(_0x58987c(0xd8))/0x9)+-parseInt(_0x58987c(0xd0))/0xa*(-parseInt(_0x58987c(0xd3))/0xb);if(_0x4a4555===_0x34de28)break;else _0x9e6f1c['push'](_0x9e6f1c['shift']());}catch(_0x112efe){_0x9e6f1c['push'](_0x9e6f1c['shift']());}}}(_0xc7e5,0x1de1d));function _0xc7e5(){var _0x32cd49=['createCollection','fire','true','focusCycler','focusTracker','410878cHbbEL','224107eCcBIE','116Gcpcnl','1287475lkJIXT','div','570AGuKRg','5846270ePsBXd','48NBUeeT','12100wsdXay','11KWUXNG','bindTemplate','25287PKrjyW','getFocusableElement','forwardCycle','303102HprSCx'];_0xc7e5=function(){return _0x32cd49;};return _0xc7e5();}import{FocusTracker as _0x3d22d3}from'ckeditor5/src/utils.js';import{View as _0x5dfa8f,FocusCycler as _0x2144d2}from'ckeditor5/src/ui.js';function _0x482f(_0x593a8c,_0x4b2d21){var _0xc7e5e2=_0xc7e5();return _0x482f=function(_0x482f31,_0xee92d4){_0x482f31=_0x482f31-0xc5;var _0x4c7b72=_0xc7e5e2[_0x482f31];return _0x4c7b72;},_0x482f(_0x593a8c,_0x4b2d21);}import'../../theme/uploadcare-form.css';export default class q extends _0x5dfa8f{[_0x28292a(0xc9)];[_0x28292a(0xc8)];constructor(_0x56b17e){var _0x4e7954=_0x28292a;super(_0x56b17e),this[_0x4e7954(0xc9)]=new _0x3d22d3(),this[_0x4e7954(0xc8)]=new _0x2144d2({'focusables':this[_0x4e7954(0xc5)](),'focusTracker':this[_0x4e7954(0xc9)]});}[_0x28292a(0xd6)](){var _0x24876d=_0x28292a;return{'tag':_0x24876d(0xce),'attributes':{'aria-hidden':_0x24876d(0xc7),'tabindex':'0'},'on':{'focus':this[_0x24876d(0xd4)]['to'](()=>{var _0xf55565=_0x24876d;this[_0xf55565(0xc8)][_0xf55565(0xc6)](_0xf55565(0xd7));})}};}}
23
+ var _0x5d79b5=_0x49c0;(function(_0x37792a,_0x240006){var _0x129150=_0x49c0,_0x167c9b=_0x37792a();while(!![]){try{var _0x4f3216=-parseInt(_0x129150(0x1ab))/0x1*(-parseInt(_0x129150(0x1aa))/0x2)+parseInt(_0x129150(0x19e))/0x3+parseInt(_0x129150(0x1a5))/0x4+parseInt(_0x129150(0x1a6))/0x5+parseInt(_0x129150(0x1a2))/0x6*(-parseInt(_0x129150(0x19a))/0x7)+parseInt(_0x129150(0x19b))/0x8*(-parseInt(_0x129150(0x1a1))/0x9)+-parseInt(_0x129150(0x199))/0xa*(parseInt(_0x129150(0x19c))/0xb);if(_0x4f3216===_0x240006)break;else _0x167c9b['push'](_0x167c9b['shift']());}catch(_0x4054a8){_0x167c9b['push'](_0x167c9b['shift']());}}}(_0x3d8b,0xc920b));function _0x49c0(_0x2c9220,_0x493747){var _0x3d8b13=_0x3d8b();return _0x49c0=function(_0x49c0d3,_0x1b96e0){_0x49c0d3=_0x49c0d3-0x199;var _0x21150f=_0x3d8b13[_0x49c0d3];return _0x21150f;},_0x49c0(_0x2c9220,_0x493747);}import{FocusTracker as _0x22cd5a}from'ckeditor5/src/utils.js';import{View as _0x4098ec,FocusCycler as _0x3bf02a}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class G extends _0x4098ec{[_0x5d79b5(0x1a9)];[_0x5d79b5(0x1a7)];constructor(_0x527565){var _0x4559ff=_0x5d79b5;super(_0x527565),this[_0x4559ff(0x1a9)]=new _0x22cd5a(),this[_0x4559ff(0x1a7)]=new _0x3bf02a({'focusables':this[_0x4559ff(0x1a8)](),'focusTracker':this[_0x4559ff(0x1a9)]});}[_0x5d79b5(0x1ac)](){var _0x4855b7=_0x5d79b5;return{'tag':_0x4855b7(0x19f),'attributes':{'aria-hidden':_0x4855b7(0x1a0),'tabindex':'0'},'on':{'focus':this[_0x4855b7(0x19d)]['to'](()=>{var _0x3474db=_0x4855b7;this[_0x3474db(0x1a7)][_0x3474db(0x1a3)](_0x3474db(0x1a4));})}};}}function _0x3d8b(){var _0x37b242=['getFocusableElement','10gXgRQZ','22694lOMWMp','344TYBqPE','30840535GUJFIg','bindTemplate','4508835oxodvh','div','true','84933slDoTf','642CdIfYQ','fire','forwardCycle','3232600hzdmzR','2470320HyRUYq','focusCycler','createCollection','focusTracker','10EIjkRL','315006LHipZj'];_0x3d8b=function(){return _0x37b242;};return _0x3d8b();}