@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250326.1 → 0.0.0-nightly-20250327.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 _0x28b03d,ObservableMixin as _0x20ef5f}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x162e5f}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x38e322}from'ckeditor5/src/icons.js';import _0x818396 from'./uploadcareimageeditformview.js';import _0x4cf638 from'../../utils/uploadutils.js';import{getImageUrls as _0x3222b6,getImageDimension as _0x4cb4e4}from'../../utils/editingutils.js';import{isAncestor as _0xa47186}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
24
- _0x20ef5f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x58d6d3,_0x1c902f,_0x1a570a){super(),this['_editor']=_0x58d6d3,this['_dialog']=_0x1c902f,this['_imageElement']=_0x1a570a,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 _0x492eaf=this['_imageElement'],_0x2f6915=_0x492eaf['getAttribute']('uploadcareImageId'),_0xd8752b=_0x492eaf['getAttribute']('src');if(_0x2f6915)await this['_loadImageInfo'](_0x2f6915,_0xd8752b);else{if(this['_imageCache']['has'](_0xd8752b)){const _0x4b5611=this['_imageCache']['get'](_0xd8752b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4b5611['url'],this['imageDimension']=_0x4b5611['dimension'],this['imageId']=_0x4b5611['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4b9052}=this['_editor'],t=_0x4b9052['t'],_0xa5bf3f=new _0x818396(_0x4b9052,this['imageStatus'],this['_attributes']);_0xa5bf3f['bind']('status')['to'](this,'imageStatus'),_0xa5bf3f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xa5bf3f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xa5bf3f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xa5bf3f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x38e322,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xa5bf3f,'position':_0x162e5f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xa5bf3f['focus']();},'onHide':()=>{_0xa5bf3f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4ad1cd=>!_0xa47186(_0x4ad1cd,_0xa5bf3f['element'])}});}['_loadImageInfo'](_0x5c4637,_0x2bed13){return _0x4cf638['getInfo'](_0x5c4637,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x7efda0=>{const {width:_0x3e1a55,height:_0xeeb3e9}=_0x7efda0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2bed13,this['imageDimension']={'width':_0x3e1a55,'height':_0xeeb3e9},this['imageId']=_0x5c4637;})['catch'](_0x5a0022=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5a0022['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x125903,_0x51be56){return this['_getImageAsFile'](_0x125903)['then'](_0x16c908=>_0x4cf638['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x51be56['signal'],'file':_0x16c908,'onProgress':_0x1c870c=>{_0x1c870c&&_0x1c870c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1c870c['value']));}}))['then'](_0xbae6c9=>{const {width:_0x34ba20,height:_0x92f34a}=_0xbae6c9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xbae6c9['cdnUrl'],this['imageDimension']={'width':_0x34ba20,'height':_0x92f34a},this['imageId']=_0xbae6c9['uuid'],this['imageUploadProgress']=null;const _0x200b59=_0x125903['getAttribute']('src');this['_imageCache']['set'](_0x200b59,{'id':_0xbae6c9['uuid'],'url':_0xbae6c9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x319a2b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x319a2b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xea3b45,_0x391260){_0xea3b45['on']('apply',(_0x6685f8,_0x38e67f)=>{this['_replaceImage'](_0x391260,_0x38e67f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xea3b45['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xea3b45['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3541c1,_0x16b4e4,_0x52170c){const _0x1d0a7b=this['_editor'],{width:_0x4acaca,height:_0x1f3560}=_0x4cb4e4(_0x16b4e4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5a9da2,imageSources:_0x2d5ed8}=_0x3222b6(_0x16b4e4,_0x4acaca);_0x1d0a7b['model']['change'](_0x1e1c9d=>{if('$graveyard'===_0x3541c1['root']['rootName']){_0x1d0a7b['execute']('insertImage',{'imageType':_0x3541c1['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3541c1['getAttributes']()),'uploadcareImageId':_0x52170c,'src':_0x5a9da2,'sources':_0x2d5ed8,'width':_0x4acaca,'height':_0x1f3560}});const _0x283fa2=_0x3541c1['getChildren']();_0x3541c1=_0x1d0a7b['model']['document']['selection']['getSelectedElement']();for(const _0x29c687 of _0x283fa2)_0x1e1c9d['append'](_0x1e1c9d['cloneElement'](_0x29c687),_0x3541c1);}else _0x1e1c9d['setSelection'](_0x3541c1,'on'),_0x1d0a7b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3541c1['getAttributes']()),'uploadcareImageId':_0x52170c,'src':_0x5a9da2,'sources':_0x2d5ed8,'width':_0x4acaca,'height':_0x1f3560},_0x3541c1);_0x1e1c9d['setSelection'](_0x3541c1,'on');});}async['_getImageAsFile'](_0x57239f){const _0x5c8476=_0x28b03d['window'],_0x3f0aff=_0x28b03d['document']['location']['href'],_0x469973=new _0x5c8476['URL'](_0x57239f['getAttribute']('src'),_0x3f0aff);if('data:'===_0x469973['protocol']){const _0x368b79=_0x469973['href']['split'](','),_0x2c1746=_0x368b79[0x0]['match'](/:(.*?);/)[0x1],_0x152268=_0x2c1746['split']('/')[0x1],_0x5ae4f7=_0x5c8476['atob'](_0x368b79[_0x368b79['length']-0x1]);let _0x72b0d6=_0x5ae4f7['length'];const _0x1bd460=new _0x5c8476['Uint8Array'](_0x72b0d6);for(;_0x72b0d6--;)_0x1bd460[_0x72b0d6]=_0x5ae4f7['charCodeAt'](_0x72b0d6);return new _0x5c8476['File']([_0x1bd460],'image.'+_0x152268,{'type':_0x2c1746});}const _0xa8f3ec=_0x469973['href']['split']('/'),_0x37c789=_0xa8f3ec[_0xa8f3ec['length']-0x1],_0x1fbde4=_0x37c789['split']('.')[0x1];return _0x5c8476['fetch'](_0x469973['href'])['then'](_0x2da9d9=>_0x2da9d9['clone']()['blob']())['then'](_0xdb6d0a=>new _0x5c8476['File']([_0xdb6d0a],_0x37c789,{'type':'image/'+_0x1fbde4}));}}
23
+ import{global as _0x122a8f,ObservableMixin as _0x18bf99}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x47fa1d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4b0bb2}from'ckeditor5/src/icons.js';import _0x11512f from'./uploadcareimageeditformview.js';import _0x12100c from'../../utils/uploadutils.js';import{getImageUrls as _0x363d25,getImageDimension as _0x18d03a}from'../../utils/editingutils.js';import{isAncestor as _0x5147af}from'../../utils/isancestor.js';export default class A extends/* #__PURE__ -- @preserve */
24
+ _0x18bf99(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2dde92,_0x5aadf6,_0x528571){super(),this['_editor']=_0x2dde92,this['_dialog']=_0x5aadf6,this['_imageElement']=_0x528571,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 _0x4af56d=this['_imageElement'],_0x3f8396=_0x4af56d['getAttribute']('uploadcareImageId'),_0x7f88b5=_0x4af56d['getAttribute']('src');if(_0x3f8396)await this['_loadImageInfo'](_0x3f8396,_0x7f88b5);else{if(this['_imageCache']['has'](_0x7f88b5)){const _0x2365ab=this['_imageCache']['get'](_0x7f88b5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2365ab['url'],this['imageDimension']=_0x2365ab['dimension'],this['imageId']=_0x2365ab['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5cae14}=this['_editor'],t=_0x5cae14['t'],_0xae06b6=new _0x11512f(_0x5cae14,this['imageStatus'],this['_attributes']);_0xae06b6['bind']('status')['to'](this,'imageStatus'),_0xae06b6['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xae06b6['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xae06b6['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xae06b6,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4b0bb2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xae06b6,'position':_0x47fa1d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xae06b6['focus']();},'onHide':()=>{_0xae06b6['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x53fbeb=>!_0x5147af(_0x53fbeb,_0xae06b6['element'])}});}['_loadImageInfo'](_0x5d18c3,_0x4e6554){return _0x12100c['getInfo'](_0x5d18c3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x767897=>{const {width:_0x5f2090,height:_0x3dd5f4}=_0x767897['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e6554,this['imageDimension']={'width':_0x5f2090,'height':_0x3dd5f4},this['imageId']=_0x5d18c3;})['catch'](_0x29a0e2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x29a0e2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3d122d,_0x246c1d){return this['_getImageAsFile'](_0x3d122d)['then'](_0x1d428a=>_0x12100c['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x246c1d['signal'],'file':_0x1d428a,'onProgress':_0x5679d5=>{_0x5679d5&&_0x5679d5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5679d5['value']));}}))['then'](_0x5933fd=>{const {width:_0x36d218,height:_0x1375f7}=_0x5933fd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5933fd['cdnUrl'],this['imageDimension']={'width':_0x36d218,'height':_0x1375f7},this['imageId']=_0x5933fd['uuid'],this['imageUploadProgress']=null;const _0x4d7cb3=_0x3d122d['getAttribute']('src');this['_imageCache']['set'](_0x4d7cb3,{'id':_0x5933fd['uuid'],'url':_0x5933fd['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x186aa4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x186aa4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x34979d,_0x4418b7){_0x34979d['on']('apply',(_0x2c0639,_0x3a4290)=>{this['_replaceImage'](_0x4418b7,_0x3a4290['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x34979d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x34979d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x37bf61,_0x1b1d83,_0x4425f6){const _0x3ce0f2=this['_editor'],{width:_0x3a9330,height:_0x2c26b7}=_0x18d03a(_0x1b1d83,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x14694f,imageSources:_0x4fa81c}=_0x363d25(_0x1b1d83,_0x3a9330);_0x3ce0f2['model']['change'](_0x14cb09=>{if('$graveyard'===_0x37bf61['root']['rootName']){_0x3ce0f2['execute']('insertImage',{'imageType':_0x37bf61['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x37bf61['getAttributes']()),'uploadcareImageId':_0x4425f6,'src':_0x14694f,'sources':_0x4fa81c,'width':_0x3a9330,'height':_0x2c26b7}});const _0x3f757f=_0x37bf61['getChildren']();_0x37bf61=_0x3ce0f2['model']['document']['selection']['getSelectedElement']();for(const _0x311af4 of _0x3f757f)_0x14cb09['append'](_0x14cb09['cloneElement'](_0x311af4),_0x37bf61);}else _0x14cb09['setSelection'](_0x37bf61,'on'),_0x3ce0f2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x37bf61['getAttributes']()),'uploadcareImageId':_0x4425f6,'src':_0x14694f,'sources':_0x4fa81c,'width':_0x3a9330,'height':_0x2c26b7},_0x37bf61);_0x14cb09['setSelection'](_0x37bf61,'on');});}async['_getImageAsFile'](_0x4a69a8){const _0x40a6bb=_0x122a8f['window'],_0x15b379=_0x122a8f['document']['location']['href'],_0x44e326=new _0x40a6bb['URL'](_0x4a69a8['getAttribute']('src'),_0x15b379);if('data:'===_0x44e326['protocol']){const _0x49d1ca=_0x44e326['href']['split'](','),_0x5ee702=_0x49d1ca[0x0]['match'](/:(.*?);/)[0x1],_0x4c585d=_0x5ee702['split']('/')[0x1],_0x42459d=_0x40a6bb['atob'](_0x49d1ca[_0x49d1ca['length']-0x1]);let _0x538ddd=_0x42459d['length'];const _0x121d7e=new _0x40a6bb['Uint8Array'](_0x538ddd);for(;_0x538ddd--;)_0x121d7e[_0x538ddd]=_0x42459d['charCodeAt'](_0x538ddd);return new _0x40a6bb['File']([_0x121d7e],'image.'+_0x4c585d,{'type':_0x5ee702});}const _0x2ca1c1=_0x44e326['href']['split']('/'),_0x1ad92d=_0x2ca1c1[_0x2ca1c1['length']-0x1],_0x2e9bdb=_0x1ad92d['split']('.')[0x1];return _0x40a6bb['fetch'](_0x44e326['href'])['then'](_0x4b0c66=>_0x4b0c66['clone']()['blob']())['then'](_0x2ebf36=>new _0x40a6bb['File']([_0x2ebf36],_0x1ad92d,{'type':'image/'+_0x2e9bdb}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2f0725,_0x3bd3d6){const _0x3a5e6f=_0x1bb3,_0x5f463a=_0x2f0725();while(!![]){try{const _0x43735b=-parseInt(_0x3a5e6f(0xa5))/0x1+-parseInt(_0x3a5e6f(0xa0))/0x2*(-parseInt(_0x3a5e6f(0xac))/0x3)+-parseInt(_0x3a5e6f(0xa4))/0x4+parseInt(_0x3a5e6f(0xab))/0x5*(parseInt(_0x3a5e6f(0xa1))/0x6)+-parseInt(_0x3a5e6f(0xad))/0x7+-parseInt(_0x3a5e6f(0x9f))/0x8*(-parseInt(_0x3a5e6f(0xb0))/0x9)+-parseInt(_0x3a5e6f(0xaa))/0xa*(parseInt(_0x3a5e6f(0x9e))/0xb);if(_0x43735b===_0x3bd3d6)break;else _0x5f463a['push'](_0x5f463a['shift']());}catch(_0x2037ef){_0x5f463a['push'](_0x5f463a['shift']());}}}(_0x4807,0x9985d));import{View as _0x52352f}from'ckeditor5/src/ui.js';function _0x1bb3(_0x2c83a7,_0x3f56a8){const _0x480759=_0x4807();return _0x1bb3=function(_0x1bb385,_0x2b2ea4){_0x1bb385=_0x1bb385-0x9e;let _0x2d3042=_0x480759[_0x1bb385];return _0x2d3042;},_0x1bb3(_0x2c83a7,_0x3f56a8);}function _0x4807(){const _0x245669=['setTemplate','ck-uploadcare-theme','117mZpxyE','121tJcqeU','589672Sfmxts','2xmCHnh','18iXsiOY','uc-cloud-image-editor','imageSrc','3903848fLemHb','134899HDZfeK','bindTemplate','uc-light','image-edit','set','487180AJTStO','427730YpcgBs','3412218NYMNwQ','536711MoUWUF'];_0x4807=function(){return _0x245669;};return _0x4807();}export default class tt extends _0x52352f{constructor(_0x13d614,_0x304a1b){const _0x2fc86d=_0x1bb3;super(_0x13d614);const _0x5da83f=this[_0x2fc86d(0xa6)];this[_0x2fc86d(0xa9)](_0x2fc86d(0xa3),''),this[_0x2fc86d(0xae)]({'tag':_0x2fc86d(0xa2),'attributes':{..._0x304a1b,'class':[_0x2fc86d(0xa7),_0x2fc86d(0xaf)],'ctx-name':_0x2fc86d(0xa8),'cdn-url':_0x5da83f['to'](_0x2fc86d(0xa3))}});}}
23
+ (function(_0x301c59,_0xa4b6de){const _0xe15f5f=_0x2978,_0x246213=_0x301c59();while(!![]){try{const _0x1b4cda=-parseInt(_0xe15f5f(0x194))/0x1*(-parseInt(_0xe15f5f(0x191))/0x2)+-parseInt(_0xe15f5f(0x193))/0x3*(parseInt(_0xe15f5f(0x185))/0x4)+parseInt(_0xe15f5f(0x195))/0x5+-parseInt(_0xe15f5f(0x18c))/0x6*(-parseInt(_0xe15f5f(0x196))/0x7)+-parseInt(_0xe15f5f(0x197))/0x8+-parseInt(_0xe15f5f(0x186))/0x9+parseInt(_0xe15f5f(0x18a))/0xa*(parseInt(_0xe15f5f(0x18f))/0xb);if(_0x1b4cda===_0xa4b6de)break;else _0x246213['push'](_0x246213['shift']());}catch(_0x23ebbc){_0x246213['push'](_0x246213['shift']());}}}(_0x7564,0xa726b));function _0x2978(_0x8565cd,_0x556cdb){const _0x756412=_0x7564();return _0x2978=function(_0x29783d,_0x51c5b3){_0x29783d=_0x29783d-0x185;let _0x5edd83=_0x756412[_0x29783d];return _0x5edd83;},_0x2978(_0x8565cd,_0x556cdb);}import{View as _0xd80cb}from'ckeditor5/src/ui.js';function _0x7564(){const _0x395d85=['6428560TXzKKj','3524FGCxbp','11988306DSebTM','set','imageSrc','bindTemplate','19307950Lnncbg','ck-uploadcare-theme','4214706xfhyPP','uc-light','uc-cloud-image-editor','11QjsfbW','image-edit','1392998GJbuAG','setTemplate','2985QAkiSV','1NasZvU','1835525ZzYENx','7CzHpUj'];_0x7564=function(){return _0x395d85;};return _0x7564();}export default class tt extends _0xd80cb{constructor(_0x13a3fe,_0x100b59){const _0x1bf4df=_0x2978;super(_0x13a3fe);const _0x4c3abe=this[_0x1bf4df(0x189)];this[_0x1bf4df(0x187)](_0x1bf4df(0x188),''),this[_0x1bf4df(0x192)]({'tag':_0x1bf4df(0x18e),'attributes':{..._0x100b59,'class':[_0x1bf4df(0x18d),_0x1bf4df(0x18b)],'ctx-name':_0x1bf4df(0x190),'cdn-url':_0x4c3abe['to'](_0x1bf4df(0x188))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x2d6439,IconView as at,View as _0x546e74}from'ckeditor5/src/ui.js';export default class rt extends _0x546e74{constructor(_0x448355){super(_0x448355);const t=_0x448355['t'];this['set']('errorType',null);const _0x263cb7=new _0x2d6439(_0x448355);_0x263cb7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x263cb7['withText']=!0x0,_0x263cb7['class']='ck-button-action',_0x263cb7['on']('execute',()=>{this['fire']('retry');}),_0x263cb7['bind']('isVisible')['to'](this,'errorType',_0x1a474b=>'NotFound'!==_0x1a474b);const _0x59ed38=new at();_0x59ed38['content']=et,_0x59ed38['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1dcd44=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':[_0x59ed38,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1dcd44['to']('errorType',_0xa55a1a=>t('NotFound'!==_0xa55a1a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x263cb7]},{'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 _0x3c620a,IconView as at,View as _0x36dc82}from'ckeditor5/src/ui.js';export default class rt extends _0x36dc82{constructor(_0x310591){super(_0x310591);const t=_0x310591['t'];this['set']('errorType',null);const _0x5088a6=new _0x3c620a(_0x310591);_0x5088a6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5088a6['withText']=!0x0,_0x5088a6['class']='ck-button-action',_0x5088a6['on']('execute',()=>{this['fire']('retry');}),_0x5088a6['bind']('isVisible')['to'](this,'errorType',_0x388190=>'NotFound'!==_0x388190);const _0x456061=new at();_0x456061['content']=et,_0x456061['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2aa95b=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':[_0x456061,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2aa95b['to']('errorType',_0x2c72e6=>t('NotFound'!==_0x2c72e6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5088a6]},{'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 _0x2220c1,View as _0x131606}from'ckeditor5/src/ui.js';export default class ta extends _0x131606{constructor(_0x34d119){super(_0x34d119);const t=_0x34d119['t'],_0xe60d95=this['bindTemplate'],_0x145d4c=new _0x2220c1();_0x145d4c['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':[_0x145d4c,{'text':_0xe60d95['to']('imageUploadProgress',_0x505d2a=>t('Loading\x20image...')+'\x20('+(_0x505d2a||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 _0x5377d1,View as _0x38734b}from'ckeditor5/src/ui.js';export default class ta extends _0x38734b{constructor(_0x397b7b){super(_0x397b7b);const t=_0x397b7b['t'],_0x53419e=this['bindTemplate'],_0x345077=new _0x5377d1();_0x345077['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':[_0x345077,{'text':_0x53419e['to']('imageUploadProgress',_0x59538c=>t('Loading\x20image...')+'\x20('+(_0x59538c||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 _0x20d9ac=_0x3d14;(function(_0x505ea4,_0xfd0bc0){const _0x18e765=_0x3d14,_0x3009ab=_0x505ea4();while(!![]){try{const _0x2a9de9=-parseInt(_0x18e765(0xd0))/0x1*(-parseInt(_0x18e765(0xe5))/0x2)+parseInt(_0x18e765(0xf4))/0x3*(-parseInt(_0x18e765(0xeb))/0x4)+parseInt(_0x18e765(0x107))/0x5*(parseInt(_0x18e765(0xd9))/0x6)+-parseInt(_0x18e765(0xfa))/0x7*(parseInt(_0x18e765(0x106))/0x8)+-parseInt(_0x18e765(0xf1))/0x9+-parseInt(_0x18e765(0xe3))/0xa*(parseInt(_0x18e765(0x105))/0xb)+-parseInt(_0x18e765(0xd3))/0xc*(-parseInt(_0x18e765(0xfc))/0xd);if(_0x2a9de9===_0xfd0bc0)break;else _0x3009ab['push'](_0x3009ab['shift']());}catch(_0x3f3800){_0x3009ab['push'](_0x3009ab['shift']());}}}(_0x21aa,0x2e874));function _0x3d14(_0x408518,_0x5f3d0f){const _0x21aa1a=_0x21aa();return _0x3d14=function(_0x3d1412,_0x373082){_0x3d1412=_0x3d1412-0xd0;let _0x3bf206=_0x21aa1a[_0x3d1412];return _0x3bf206;},_0x3d14(_0x408518,_0x5f3d0f);}import{View as _0x1da708}from'ckeditor5/src/ui.js';import _0x48fff1 from'./uploadcareimageeditformloadingview.js';import _0xe60628 from'./uploadcareimageeditformerrorview.js';import _0x515721 from'./uploadcareimageeditformeditingview.js';import _0x4ccf1c from'../../utils/dialogfocusmanagerview.js';function _0x21aa(){const _0xaaddfc=['length','3958FacOhj','createCollection','add','_focusableView','fire','toLowerCase','12rtqTpJ','set','addEventListener','addMany','detail','_editingView','2803320qOWGyF','disconnect','target','56169IELGYx','uploading','_errorView','clear','_items','_loadingView','49oOxOKy','querySelector','3783RWrQrS','ck-reset_all-excluded','div','cdnUrl','cancel','focus','error','once','ck-uploadcare-form','994807iIyeSP','300536cEVRtL','40RwzHZM','uc-cloud-image-editor','_waitForImageEditorComponent','2ksGzLk','nodeName','observe','42204jcnDmr','_addErrorViewListeners','change:status','_setView','filter','retry','48828kfmClc','setTemplate','addedNodes','element','status','apply','_addUploadcareImageEditorListeners','getFocusableElement','ready','render','30jakxcy'];_0x21aa=function(){return _0xaaddfc;};return _0x21aa();}import'../../../theme/uploadcare-form.css';export default class Z extends _0x4ccf1c{[_0x20d9ac(0xf8)];[_0x20d9ac(0xf9)];[_0x20d9ac(0xf6)];[_0x20d9ac(0xf0)];[_0x20d9ac(0xe8)];constructor(_0x5373f7,_0x3ef534,_0x19134f){const _0x5e4979=_0x20d9ac;super(_0x5373f7),this[_0x5e4979(0xf8)]=this[_0x5e4979(0xe6)](),this[_0x5e4979(0xf9)]=new _0x48fff1(_0x5373f7),this[_0x5e4979(0xf6)]=new _0xe60628(_0x5373f7),this[_0x5e4979(0xf0)]=new _0x515721(_0x5373f7,_0x19134f),this[_0x5e4979(0xe8)]=new _0x1da708(_0x5373f7),this[_0x5e4979(0xe8)][_0x5e4979(0xda)](this[_0x5e4979(0xe0)]()),this[_0x5e4979(0xec)](_0x5e4979(0xdd),_0x3ef534),this[_0x5e4979(0xda)]({'tag':_0x5e4979(0xfe),'attributes':{'class':['ck',_0x5e4979(0xfd),_0x5e4979(0x104)],'tabindex':'-1'},'children':this[_0x5e4979(0xf8)]}),this[_0x5e4979(0xd6)](),this[_0x5e4979(0x103)](_0x5e4979(0xe2),()=>{const _0x2a679c=_0x5e4979;this[_0x2a679c(0x109)](this[_0x2a679c(0xdc)],_0x21faac=>{const _0x5b3b35=_0x2a679c;this[_0x5b3b35(0xdf)](_0x21faac);});}),this['on'](_0x5e4979(0xd5),()=>{const _0x54b945=_0x5e4979;this[_0x54b945(0xd6)]();}),this[_0x5e4979(0xd4)]();}[_0x20d9ac(0x101)](){const _0x3f6313=_0x20d9ac;this[_0x3f6313(0xdc)][_0x3f6313(0x101)]();}[_0x20d9ac(0xd6)](){const _0x34309b=_0x20d9ac;switch(this[_0x34309b(0xf8)][_0x34309b(0xf7)](),this[_0x34309b(0xdd)]){case _0x34309b(0xf5):this[_0x34309b(0xf8)][_0x34309b(0xe7)](this[_0x34309b(0xf9)]);break;case _0x34309b(0x102):this[_0x34309b(0xf8)][_0x34309b(0xe7)](this[_0x34309b(0xf6)]);break;case _0x34309b(0xe1):this[_0x34309b(0xf8)][_0x34309b(0xee)]([this[_0x34309b(0xf0)],this[_0x34309b(0xe8)]]);}}[_0x20d9ac(0x109)](_0x111619,_0x2407a8){const _0x3b3233=_0x20d9ac,_0x320e90=_0x3b3233(0x108),_0x541de3=_0x111619[_0x3b3233(0xfb)](_0x320e90);if(_0x541de3)return _0x2407a8(_0x541de3);const _0x1d43e3=new MutationObserver(_0x34b7be=>{const _0x100ae9=_0x3b3233,_0x56cb6f=_0x34b7be[_0x100ae9(0xd7)](_0x2f72e7=>_0x2f72e7[_0x100ae9(0xf3)]===_0x111619&&_0x2f72e7[_0x100ae9(0xdb)][_0x100ae9(0xe4)]>0x0&&_0x2f72e7[_0x100ae9(0xdb)][0x0][_0x100ae9(0xd1)][_0x100ae9(0xea)]()===_0x320e90);_0x56cb6f[_0x100ae9(0xe4)]&&(_0x1d43e3[_0x100ae9(0xf2)](),_0x2407a8(_0x56cb6f[0x0][_0x100ae9(0xdb)][0x0]));});_0x1d43e3[_0x3b3233(0xd2)](_0x111619,{'childList':!0x0,'subtree':!0x0});}[_0x20d9ac(0xdf)](_0x55d64f){const _0xda1020=_0x20d9ac;_0x55d64f[_0xda1020(0xed)](_0xda1020(0xde),_0x1e0d14=>{const _0x4f3f28=_0xda1020;this[_0x4f3f28(0xe9)](_0x4f3f28(0xde),{'imageSrc':_0x1e0d14[_0x4f3f28(0xef)][_0x4f3f28(0xff)]});}),_0x55d64f[_0xda1020(0xed)](_0xda1020(0x100),()=>{const _0xd8806a=_0xda1020;this[_0xd8806a(0xe9)](_0xd8806a(0x100));});}[_0x20d9ac(0xd4)](){const _0xc20f46=_0x20d9ac;this[_0xc20f46(0xf6)]['on'](_0xc20f46(0xd8),()=>{const _0x19f7e1=_0xc20f46;this[_0x19f7e1(0xe9)](_0x19f7e1(0xd8));});}}
23
+ const _0x17e8ef=_0x1dc2;function _0x21b3(){const _0x5917ed=['_focusableView','disconnect','set','_editingView','29562Gnqjfy','add','122724fmepuq','ck-reset_all-excluded','_items','length','filter','uploading','change:status','detail','retry','apply','render','addMany','element','clear','5999076oXTJLK','addedNodes','focus','_waitForImageEditorComponent','status','279aFyKFK','_errorView','error','151389DCwjcB','observe','18Yhwheg','ck-uploadcare-form','174TVYZaX','_addErrorViewListeners','cancel','nodeName','div','95624oDcvND','cdnUrl','addEventListener','once','target','fire','uc-cloud-image-editor','2671915CMRfMY','44mBPlMN','toLowerCase','setTemplate','2060460WCSsKO','querySelector','_loadingView','22kPRwCf','_setView','createCollection','_addUploadcareImageEditorListeners','getFocusableElement','ready'];_0x21b3=function(){return _0x5917ed;};return _0x21b3();}function _0x1dc2(_0x3cc677,_0x5afcee){const _0x21b337=_0x21b3();return _0x1dc2=function(_0x1dc2a3,_0x523547){_0x1dc2a3=_0x1dc2a3-0x66;let _0x3ed47e=_0x21b337[_0x1dc2a3];return _0x3ed47e;},_0x1dc2(_0x3cc677,_0x5afcee);}(function(_0x13f441,_0x56f06f){const _0x56f11c=_0x1dc2,_0x4c499e=_0x13f441();while(!![]){try{const _0xf60081=-parseInt(_0x56f11c(0x70))/0x1*(parseInt(_0x56f11c(0x80))/0x2)+parseInt(_0x56f11c(0x9a))/0x3*(-parseInt(_0x56f11c(0x82))/0x4)+parseInt(_0x56f11c(0x6f))/0x5+parseInt(_0x56f11c(0x9c))/0x6*(-parseInt(_0x56f11c(0x98))/0x7)+-parseInt(_0x56f11c(0x68))/0x8*(-parseInt(_0x56f11c(0x95))/0x9)+parseInt(_0x56f11c(0x73))/0xa*(parseInt(_0x56f11c(0x76))/0xb)+parseInt(_0x56f11c(0x90))/0xc;if(_0xf60081===_0x56f06f)break;else _0x4c499e['push'](_0x4c499e['shift']());}catch(_0xce70f7){_0x4c499e['push'](_0x4c499e['shift']());}}}(_0x21b3,0x56bec));import{View as _0x451009}from'ckeditor5/src/ui.js';import _0x26ac67 from'./uploadcareimageeditformloadingview.js';import _0x11da70 from'./uploadcareimageeditformerrorview.js';import _0x14e0ef from'./uploadcareimageeditformeditingview.js';import _0x445100 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x445100{[_0x17e8ef(0x84)];[_0x17e8ef(0x75)];[_0x17e8ef(0x96)];[_0x17e8ef(0x7f)];[_0x17e8ef(0x7c)];constructor(_0x561e1e,_0x5a9674,_0x1fd59a){const _0x3ba694=_0x17e8ef;super(_0x561e1e),this[_0x3ba694(0x84)]=this[_0x3ba694(0x78)](),this[_0x3ba694(0x75)]=new _0x26ac67(_0x561e1e),this[_0x3ba694(0x96)]=new _0x11da70(_0x561e1e),this[_0x3ba694(0x7f)]=new _0x14e0ef(_0x561e1e,_0x1fd59a),this[_0x3ba694(0x7c)]=new _0x451009(_0x561e1e),this[_0x3ba694(0x7c)][_0x3ba694(0x72)](this[_0x3ba694(0x7a)]()),this[_0x3ba694(0x7e)](_0x3ba694(0x94),_0x5a9674),this[_0x3ba694(0x72)]({'tag':_0x3ba694(0x67),'attributes':{'class':['ck',_0x3ba694(0x83),_0x3ba694(0x9b)],'tabindex':'-1'},'children':this[_0x3ba694(0x84)]}),this[_0x3ba694(0x77)](),this[_0x3ba694(0x6b)](_0x3ba694(0x8c),()=>{const _0xc6c881=_0x3ba694;this[_0xc6c881(0x93)](this[_0xc6c881(0x8e)],_0x4f8175=>{const _0x1961e6=_0xc6c881;this[_0x1961e6(0x79)](_0x4f8175);});}),this['on'](_0x3ba694(0x88),()=>{const _0x2ae94d=_0x3ba694;this[_0x2ae94d(0x77)]();}),this[_0x3ba694(0x9d)]();}[_0x17e8ef(0x92)](){const _0xc90549=_0x17e8ef;this[_0xc90549(0x8e)][_0xc90549(0x92)]();}[_0x17e8ef(0x77)](){const _0x2d95a9=_0x17e8ef;switch(this[_0x2d95a9(0x84)][_0x2d95a9(0x8f)](),this[_0x2d95a9(0x94)]){case _0x2d95a9(0x87):this[_0x2d95a9(0x84)][_0x2d95a9(0x81)](this[_0x2d95a9(0x75)]);break;case _0x2d95a9(0x97):this[_0x2d95a9(0x84)][_0x2d95a9(0x81)](this[_0x2d95a9(0x96)]);break;case _0x2d95a9(0x7b):this[_0x2d95a9(0x84)][_0x2d95a9(0x8d)]([this[_0x2d95a9(0x7f)],this[_0x2d95a9(0x7c)]]);}}[_0x17e8ef(0x93)](_0x5257b5,_0x1892dc){const _0x5361fd=_0x17e8ef,_0x1741c1=_0x5361fd(0x6e),_0x3518de=_0x5257b5[_0x5361fd(0x74)](_0x1741c1);if(_0x3518de)return _0x1892dc(_0x3518de);const _0x5afab0=new MutationObserver(_0x5e07bd=>{const _0x5849a6=_0x5361fd,_0xf21d64=_0x5e07bd[_0x5849a6(0x86)](_0x5bf0e3=>_0x5bf0e3[_0x5849a6(0x6c)]===_0x5257b5&&_0x5bf0e3[_0x5849a6(0x91)][_0x5849a6(0x85)]>0x0&&_0x5bf0e3[_0x5849a6(0x91)][0x0][_0x5849a6(0x66)][_0x5849a6(0x71)]()===_0x1741c1);_0xf21d64[_0x5849a6(0x85)]&&(_0x5afab0[_0x5849a6(0x7d)](),_0x1892dc(_0xf21d64[0x0][_0x5849a6(0x91)][0x0]));});_0x5afab0[_0x5361fd(0x99)](_0x5257b5,{'childList':!0x0,'subtree':!0x0});}[_0x17e8ef(0x79)](_0x1ca581){const _0x2d14e7=_0x17e8ef;_0x1ca581[_0x2d14e7(0x6a)](_0x2d14e7(0x8b),_0x53b02c=>{const _0x2ae28a=_0x2d14e7;this[_0x2ae28a(0x6d)](_0x2ae28a(0x8b),{'imageSrc':_0x53b02c[_0x2ae28a(0x89)][_0x2ae28a(0x69)]});}),_0x1ca581[_0x2d14e7(0x6a)](_0x2d14e7(0x9e),()=>{const _0xa78444=_0x2d14e7;this[_0xa78444(0x6d)](_0xa78444(0x9e));});}[_0x17e8ef(0x9d)](){const _0x3ef99d=_0x17e8ef;this[_0x3ef99d(0x96)]['on'](_0x3ef99d(0x8a),()=>{const _0x4e2cd8=_0x3ef99d;this[_0x4e2cd8(0x6d)](_0x4e2cd8(0x8a));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43db36=_0x3d5f;(function(_0x5e31b6,_0x4d1b01){const _0x29c9a0=_0x3d5f,_0xcde2de=_0x5e31b6();while(!![]){try{const _0x18f566=parseInt(_0x29c9a0(0x142))/0x1+-parseInt(_0x29c9a0(0x152))/0x2+parseInt(_0x29c9a0(0x149))/0x3+parseInt(_0x29c9a0(0x150))/0x4*(-parseInt(_0x29c9a0(0x14a))/0x5)+-parseInt(_0x29c9a0(0x15d))/0x6*(parseInt(_0x29c9a0(0x14d))/0x7)+-parseInt(_0x29c9a0(0x15c))/0x8+parseInt(_0x29c9a0(0x156))/0x9;if(_0x18f566===_0x4d1b01)break;else _0xcde2de['push'](_0xcde2de['shift']());}catch(_0x37d2a0){_0xcde2de['push'](_0xcde2de['shift']());}}}(_0x1c01,0x67a73));import{Command as _0x25614a}from'ckeditor5/src/core.js';import{Dialog as _0x4cacd1}from'ckeditor5/src/ui.js';import _0x44ee8c from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x50d729}from'../utils/editingutils.js';function _0x3d5f(_0x247a70,_0x4911d7){const _0x1c012a=_0x1c01();return _0x3d5f=function(_0x3d5fd3,_0x51d9b6){_0x3d5fd3=_0x3d5fd3-0x140;let _0x404985=_0x1c012a[_0x3d5fd3];return _0x404985;},_0x3d5f(_0x247a70,_0x4911d7);}function _0x1c01(){const _0x3eb2a7=['imageInline','element','selection','model','editor','1861425caqFyq','5KiNyCp','document','isEnabled','56cFzEym','imageEditController','unbind','2956636NsuvfC','get','89642MbtPiM','requires','set','imageBlock','11539611MDLEHd','isActive','uploadcare.allowExternalImagesEditing','getSelectedElement','plugins','refresh','2470416oRKoke','305796SllDqC','execute','bind','config','22419PcVKRh','_isEditable'];_0x1c01=function(){return _0x3eb2a7;};return _0x1c01();}export default class J extends _0x25614a{[_0x43db36(0x14e)];static get[_0x43db36(0x153)](){return[_0x4cacd1];}[_0x43db36(0x143)];constructor(_0x41e601){const _0x3b3a19=_0x43db36;super(_0x41e601),this[_0x3b3a19(0x14e)]=void 0x0,this[_0x3b3a19(0x143)]=_0x50d729(_0x41e601[_0x3b3a19(0x141)][_0x3b3a19(0x151)](_0x3b3a19(0x158))||[]),this[_0x3b3a19(0x154)]({'isActive':!0x1});}[_0x43db36(0x15b)](){const _0x17b7ab=_0x43db36,_0x1d52c1=this[_0x17b7ab(0x148)][_0x17b7ab(0x147)][_0x17b7ab(0x14b)][_0x17b7ab(0x146)][_0x17b7ab(0x159)]();this[_0x17b7ab(0x14c)]=this[_0x17b7ab(0x143)](_0x1d52c1);}[_0x43db36(0x15e)](){const _0x4d0099=_0x43db36;this[_0x4d0099(0x14e)]&&(this[_0x4d0099(0x14f)](_0x4d0099(0x157)),this[_0x4d0099(0x14e)]=void 0x0);const _0x3799cf=this[_0x4d0099(0x148)][_0x4d0099(0x147)][_0x4d0099(0x14b)][_0x4d0099(0x146)][_0x4d0099(0x159)]();_0x3799cf&&(_0x3799cf['is'](_0x4d0099(0x145),_0x4d0099(0x155))||_0x3799cf['is'](_0x4d0099(0x145),_0x4d0099(0x144)))&&(this[_0x4d0099(0x14e)]=new _0x44ee8c(this[_0x4d0099(0x148)],this[_0x4d0099(0x148)][_0x4d0099(0x15a)][_0x4d0099(0x151)](_0x4cacd1),_0x3799cf),this[_0x4d0099(0x140)](_0x4d0099(0x157))['to'](this[_0x4d0099(0x14e)],_0x4d0099(0x157)));}}
23
+ const _0x4fdc57=_0x5dae;(function(_0x58f485,_0x33f412){const _0x7e1162=_0x5dae,_0x3ec019=_0x58f485();while(!![]){try{const _0x559e8a=parseInt(_0x7e1162(0x1bd))/0x1+parseInt(_0x7e1162(0x1d2))/0x2+-parseInt(_0x7e1162(0x1cc))/0x3+-parseInt(_0x7e1162(0x1c4))/0x4*(-parseInt(_0x7e1162(0x1c0))/0x5)+-parseInt(_0x7e1162(0x1c6))/0x6+-parseInt(_0x7e1162(0x1c7))/0x7+parseInt(_0x7e1162(0x1bb))/0x8;if(_0x559e8a===_0x33f412)break;else _0x3ec019['push'](_0x3ec019['shift']());}catch(_0x533734){_0x3ec019['push'](_0x3ec019['shift']());}}}(_0x5740,0x633e3));import{Command as _0x2f15d6}from'ckeditor5/src/core.js';import{Dialog as _0x11532b}from'ckeditor5/src/ui.js';import _0x40bc46 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2bf1ca}from'../utils/editingutils.js';function _0x5dae(_0x1ebf9e,_0x157019){const _0x57403b=_0x5740();return _0x5dae=function(_0x5daef4,_0x3b9cb8){_0x5daef4=_0x5daef4-0x1b8;let _0x286df0=_0x57403b[_0x5daef4];return _0x286df0;},_0x5dae(_0x1ebf9e,_0x157019);}export default class z extends _0x2f15d6{[_0x4fdc57(0x1cd)];static get[_0x4fdc57(0x1d5)](){return[_0x11532b];}[_0x4fdc57(0x1c5)];constructor(_0x57fe0b){const _0x56a123=_0x4fdc57;super(_0x57fe0b),this[_0x56a123(0x1cd)]=void 0x0,this[_0x56a123(0x1c5)]=_0x2bf1ca(_0x57fe0b[_0x56a123(0x1c3)][_0x56a123(0x1b8)](_0x56a123(0x1d3))||[]),this[_0x56a123(0x1cb)]({'isActive':!0x1});}[_0x4fdc57(0x1ce)](){const _0x7d848f=_0x4fdc57,_0x3dfe4a=this[_0x7d848f(0x1b9)][_0x7d848f(0x1d4)][_0x7d848f(0x1ba)][_0x7d848f(0x1bc)][_0x7d848f(0x1c9)]();this[_0x7d848f(0x1d1)]=this[_0x7d848f(0x1c5)](_0x3dfe4a);}[_0x4fdc57(0x1bf)](){const _0x1e2cee=_0x4fdc57;this[_0x1e2cee(0x1cd)]&&(this[_0x1e2cee(0x1d0)](_0x1e2cee(0x1ca)),this[_0x1e2cee(0x1cd)]=void 0x0);const _0x2c55a7=this[_0x1e2cee(0x1b9)][_0x1e2cee(0x1d4)][_0x1e2cee(0x1ba)][_0x1e2cee(0x1bc)][_0x1e2cee(0x1c9)]();_0x2c55a7&&(_0x2c55a7['is'](_0x1e2cee(0x1be),_0x1e2cee(0x1cf))||_0x2c55a7['is'](_0x1e2cee(0x1be),_0x1e2cee(0x1c2)))&&(this[_0x1e2cee(0x1cd)]=new _0x40bc46(this[_0x1e2cee(0x1b9)],this[_0x1e2cee(0x1b9)][_0x1e2cee(0x1c1)][_0x1e2cee(0x1b8)](_0x11532b),_0x2c55a7),this[_0x1e2cee(0x1c8)](_0x1e2cee(0x1ca))['to'](this[_0x1e2cee(0x1cd)],_0x1e2cee(0x1ca)));}}function _0x5740(){const _0x21a387=['getSelectedElement','isActive','set','1861377vAVtnT','imageEditController','refresh','imageBlock','unbind','isEnabled','1312922ohEPad','uploadcare.allowExternalImagesEditing','model','requires','get','editor','document','7118736yEDhhv','selection','264293sFmCCo','element','execute','4835AQVzto','plugins','imageInline','config','820qejwLg','_isEditable','2049420aVLjBb','4482121iiFNNX','bind'];_0x5740=function(){return _0x21a387;};return _0x5740();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc6b74e=_0x1589;(function(_0x256bfd,_0x240029){const _0x3eb9f2=_0x1589,_0x5d96d9=_0x256bfd();while(!![]){try{const _0x548d4c=parseInt(_0x3eb9f2(0x166))/0x1*(-parseInt(_0x3eb9f2(0x162))/0x2)+-parseInt(_0x3eb9f2(0x15f))/0x3*(-parseInt(_0x3eb9f2(0x165))/0x4)+-parseInt(_0x3eb9f2(0x163))/0x5*(-parseInt(_0x3eb9f2(0x15c))/0x6)+-parseInt(_0x3eb9f2(0x155))/0x7*(-parseInt(_0x3eb9f2(0x16a))/0x8)+parseInt(_0x3eb9f2(0x158))/0x9*(parseInt(_0x3eb9f2(0x169))/0xa)+-parseInt(_0x3eb9f2(0x15b))/0xb*(parseInt(_0x3eb9f2(0x153))/0xc)+-parseInt(_0x3eb9f2(0x156))/0xd;if(_0x548d4c===_0x240029)break;else _0x5d96d9['push'](_0x5d96d9['shift']());}catch(_0x1a2390){_0x5d96d9['push'](_0x5d96d9['shift']());}}}(_0x3721,0x5f4ec));import{Plugin as _0x1621aa}from'ckeditor5/src/core.js';function _0x1589(_0x20e87c,_0xbcec1a){const _0x372134=_0x3721();return _0x1589=function(_0x1589e9,_0x5a3056){_0x1589e9=_0x1589e9-0x152;let _0x413c70=_0x372134[_0x1589e9];return _0x413c70;},_0x1589(_0x20e87c,_0xbcec1a);}import{Notification as _0x1bfbc6}from'ckeditor5/src/ui.js';function _0x3721(){const _0x1e0b6b=['273940rSeDoY','commands','1966444rQcomE','403dObKGH','isPremiumPlugin','uploadcareImageReplace','344530Elgdbz','296qpXBsd','add','2502012DgTsuL','ImageUtils','68999qJLyEI','3685149zOsChl','UploadcareImageEditEditing','135HrdekB','ImageEditing','requires','22MFOIUd','48zVJfrL','uploadcareImageEdit','init','3zhGOmg','pluginName','isOfficialPlugin','3576JoAJrW'];_0x3721=function(){return _0x1e0b6b;};return _0x3721();}import _0xafb3b3 from'./uploadcareimageeditcommand.js';import _0x4f98b4 from'./uploadcareimagereplacecommand.js';import _0x365ae9 from'../uploadcareediting.js';export default class g extends _0x1621aa{static get[_0xc6b74e(0x160)](){const _0x5ba644=_0xc6b74e;return _0x5ba644(0x157);}static get[_0xc6b74e(0x15a)](){const _0x2324eb=_0xc6b74e;return[_0x365ae9,_0x1bfbc6,_0x2324eb(0x154),_0x2324eb(0x159)];}static get[_0xc6b74e(0x161)](){return!0x0;}static get[_0xc6b74e(0x167)](){return!0x0;}[_0xc6b74e(0x15e)](){const _0x3ade6f=_0xc6b74e,{editor:_0x4a11d8}=this;_0x4a11d8[_0x3ade6f(0x164)][_0x3ade6f(0x152)](_0x3ade6f(0x15d),new _0xafb3b3(_0x4a11d8)),_0x4a11d8[_0x3ade6f(0x164)][_0x3ade6f(0x152)](_0x3ade6f(0x168),new _0x4f98b4(_0x4a11d8));}}
23
+ const _0xc0a00f=_0x2fa8;function _0x2fa8(_0x34c851,_0x2fae83){const _0x191763=_0x1917();return _0x2fa8=function(_0x2fa81d,_0x5888d5){_0x2fa81d=_0x2fa81d-0x18d;let _0x321b00=_0x191763[_0x2fa81d];return _0x321b00;},_0x2fa8(_0x34c851,_0x2fae83);}(function(_0x557b98,_0x586eed){const _0x28f96e=_0x2fa8,_0x1bc460=_0x557b98();while(!![]){try{const _0x404ee7=-parseInt(_0x28f96e(0x190))/0x1+parseInt(_0x28f96e(0x1a1))/0x2+parseInt(_0x28f96e(0x19d))/0x3+-parseInt(_0x28f96e(0x194))/0x4*(-parseInt(_0x28f96e(0x18e))/0x5)+parseInt(_0x28f96e(0x19f))/0x6*(parseInt(_0x28f96e(0x1a2))/0x7)+-parseInt(_0x28f96e(0x196))/0x8*(parseInt(_0x28f96e(0x19c))/0x9)+-parseInt(_0x28f96e(0x199))/0xa;if(_0x404ee7===_0x586eed)break;else _0x1bc460['push'](_0x1bc460['shift']());}catch(_0x2b349a){_0x1bc460['push'](_0x1bc460['shift']());}}}(_0x1917,0xc345c));import{Plugin as _0x58da82}from'ckeditor5/src/core.js';import{Notification as _0x49dab6}from'ckeditor5/src/ui.js';function _0x1917(){const _0x21b249=['init','uploadcareImageReplace','9XfPZUS','2423064IStOSh','UploadcareImageEditEditing','6NOtOKy','pluginName','3089880kjhAnF','7433279pOChMS','commands','141755qwcXkE','add','314336gRsZJV','ImageEditing','requires','isPremiumPlugin','220NMOKBZ','isOfficialPlugin','5673488ldqNJK','ImageUtils','uploadcareImageEdit','31504720sznjQl'];_0x1917=function(){return _0x21b249;};return _0x1917();}import _0x575abd from'./uploadcareimageeditcommand.js';import _0x21bf11 from'./uploadcareimagereplacecommand.js';import _0x5648ca from'../uploadcareediting.js';export default class g extends _0x58da82{static get[_0xc0a00f(0x1a0)](){const _0x3974fb=_0xc0a00f;return _0x3974fb(0x19e);}static get[_0xc0a00f(0x192)](){const _0x5a883e=_0xc0a00f;return[_0x5648ca,_0x49dab6,_0x5a883e(0x197),_0x5a883e(0x191)];}static get[_0xc0a00f(0x195)](){return!0x0;}static get[_0xc0a00f(0x193)](){return!0x0;}[_0xc0a00f(0x19a)](){const _0xb54c73=_0xc0a00f,{editor:_0x587153}=this;_0x587153[_0xb54c73(0x18d)][_0xb54c73(0x18f)](_0xb54c73(0x198),new _0x575abd(_0x587153)),_0x587153[_0xb54c73(0x18d)][_0xb54c73(0x18f)](_0xb54c73(0x19b),new _0x21bf11(_0x587153));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1ebfb1=_0x45fd;function _0x5044(){var _0x5c452c=['bindTemplate','createCollection','focusTracker','getFocusableElement','fire','9MjHCij','451489JgWCZm','10ZQktfo','559398VUOJsv','div','27750mGlFgA','8IXUDEq','6599923GmROyj','true','3pyDkWd','1276415XgDjzs','forwardCycle','815786CglBaN','focusCycler','156556Mmsauc'];_0x5044=function(){return _0x5c452c;};return _0x5044();}(function(_0x2a0692,_0x4489d9){var _0x44af42=_0x45fd,_0x49c3ef=_0x2a0692();while(!![]){try{var _0x5af21e=parseInt(_0x44af42(0x1f1))/0x1+-parseInt(_0x44af42(0x1e8))/0x2*(-parseInt(_0x44af42(0x1e5))/0x3)+parseInt(_0x44af42(0x1ea))/0x4*(parseInt(_0x44af42(0x1f2))/0x5)+parseInt(_0x44af42(0x1f3))/0x6+parseInt(_0x44af42(0x1e6))/0x7*(-parseInt(_0x44af42(0x1e2))/0x8)+parseInt(_0x44af42(0x1f0))/0x9*(-parseInt(_0x44af42(0x1e1))/0xa)+-parseInt(_0x44af42(0x1e3))/0xb;if(_0x5af21e===_0x4489d9)break;else _0x49c3ef['push'](_0x49c3ef['shift']());}catch(_0x27e0d1){_0x49c3ef['push'](_0x49c3ef['shift']());}}}(_0x5044,0x3c014));import{FocusTracker as _0x446983}from'ckeditor5/src/utils.js';function _0x45fd(_0x1b2f37,_0x10518f){var _0x504493=_0x5044();return _0x45fd=function(_0x45fd39,_0x3bdf8c){_0x45fd39=_0x45fd39-0x1e1;var _0x4c4511=_0x504493[_0x45fd39];return _0x4c4511;},_0x45fd(_0x1b2f37,_0x10518f);}import{View as _0x16603f,FocusCycler as _0x4f75be}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x16603f{[_0x1ebfb1(0x1ed)];[_0x1ebfb1(0x1e9)];constructor(_0x2d4092){var _0x27eb5e=_0x1ebfb1;super(_0x2d4092),this[_0x27eb5e(0x1ed)]=new _0x446983(),this[_0x27eb5e(0x1e9)]=new _0x4f75be({'focusables':this[_0x27eb5e(0x1ec)](),'focusTracker':this[_0x27eb5e(0x1ed)]});}[_0x1ebfb1(0x1ee)](){var _0x3e105c=_0x1ebfb1;return{'tag':_0x3e105c(0x1f4),'attributes':{'aria-hidden':_0x3e105c(0x1e4),'tabindex':'0'},'on':{'focus':this[_0x3e105c(0x1eb)]['to'](()=>{var _0x37f445=_0x3e105c;this[_0x37f445(0x1e9)][_0x37f445(0x1ef)](_0x37f445(0x1e7));})}};}}
23
+ var _0x3b299d=_0x26fe;(function(_0x32ae51,_0x45398e){var _0x1878aa=_0x26fe,_0x1d07dc=_0x32ae51();while(!![]){try{var _0x30b31d=-parseInt(_0x1878aa(0xfa))/0x1+parseInt(_0x1878aa(0xfb))/0x2*(-parseInt(_0x1878aa(0xf9))/0x3)+parseInt(_0x1878aa(0xfc))/0x4*(-parseInt(_0x1878aa(0x104))/0x5)+parseInt(_0x1878aa(0xf8))/0x6*(-parseInt(_0x1878aa(0x106))/0x7)+-parseInt(_0x1878aa(0x100))/0x8+parseInt(_0x1878aa(0x105))/0x9*(parseInt(_0x1878aa(0xfd))/0xa)+parseInt(_0x1878aa(0x103))/0xb;if(_0x30b31d===_0x45398e)break;else _0x1d07dc['push'](_0x1d07dc['shift']());}catch(_0x11231a){_0x1d07dc['push'](_0x1d07dc['shift']());}}}(_0x539a,0x38ee3));function _0x26fe(_0x30438b,_0x3f76e4){var _0x539aa8=_0x539a();return _0x26fe=function(_0x26feda,_0x150999){_0x26feda=_0x26feda-0xf6;var _0x133b9d=_0x539aa8[_0x26feda];return _0x133b9d;},_0x26fe(_0x30438b,_0x3f76e4);}import{FocusTracker as _0x4aa11b}from'ckeditor5/src/utils.js';import{View as _0x1a402d,FocusCycler as _0x2253ed}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x539a(){var _0x106b39=['forwardCycle','focusTracker','getFocusableElement','fire','312ZUTZVg','436143OmiBip','93511KxbCwz','4jAJfJL','780928IQcgMH','115460vEhICR','focusCycler','bindTemplate','1512968McGeSN','true','createCollection','12998623IQdDOS','10SErOmN','54gUyEiw','7259HkfIpK','div'];_0x539a=function(){return _0x106b39;};return _0x539a();}export default class G extends _0x1a402d{[_0x3b299d(0x109)];[_0x3b299d(0xfe)];constructor(_0x1b8fd3){var _0x3414f6=_0x3b299d;super(_0x1b8fd3),this[_0x3414f6(0x109)]=new _0x4aa11b(),this[_0x3414f6(0xfe)]=new _0x2253ed({'focusables':this[_0x3414f6(0x102)](),'focusTracker':this[_0x3414f6(0x109)]});}[_0x3b299d(0xf6)](){var _0x2b2a0b=_0x3b299d;return{'tag':_0x2b2a0b(0x107),'attributes':{'aria-hidden':_0x2b2a0b(0x101),'tabindex':'0'},'on':{'focus':this[_0x2b2a0b(0xff)]['to'](()=>{var _0x164d85=_0x2b2a0b;this[_0x164d85(0xfe)][_0x164d85(0xf7)](_0x164d85(0x108));})}};}}