@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251220.0 → 0.0.0-nightly-next-20251221.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 _0x400a7c,ObservableMixin as _0x500ed1}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x364d2f}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5d384b}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x43f3fa}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xe16f87}from'../../utils/uploadutils.js';import{getImageUrls as _0x599f86,getImageDimension as _0x2ef2f8}from'../../utils/editingutils.js';import{isAncestor as _0x4de0d0}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x500ed1(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x374338,_0xc23ff2,_0x40fdde){super(),this['_editor']=_0x374338,this['_dialog']=_0xc23ff2,this['_imageElement']=_0x40fdde,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 _0x1dcb2c=this['_imageElement'],_0x6212a4=_0x1dcb2c['getAttribute']('uploadcareImageId'),_0x11e6d8=_0x1dcb2c['getAttribute']('src');if(_0x6212a4)await this['_loadImageInfo'](_0x6212a4,_0x11e6d8);else{if(this['_imageCache']['has'](_0x11e6d8)){const _0x287c3e=this['_imageCache']['get'](_0x11e6d8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x287c3e['url'],this['imageDimension']=_0x287c3e['dimension'],this['imageId']=_0x287c3e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2b0e1c}=this['_editor'],t=_0x2b0e1c['t'],_0x56226c=new _0x43f3fa(_0x2b0e1c,this['imageStatus'],this['_attributes']);_0x56226c['bind']('status')['to'](this,'imageStatus'),_0x56226c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x56226c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x56226c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x56226c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5d384b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x56226c,'position':_0x364d2f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x56226c['focus']();},'onHide':()=>{_0x56226c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xc42004=>!_0x4de0d0(_0xc42004,_0x56226c['element'])}});}['_loadImageInfo'](_0x19bff3,_0x3f8b84){return _0xe16f87['getInfo'](_0x19bff3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2a92b8=>{const {width:_0x4aeb78,height:_0x160a51}=_0x2a92b8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f8b84,this['imageDimension']={'width':_0x4aeb78,'height':_0x160a51},this['imageId']=_0x19bff3;})['catch'](_0xfee3cd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xfee3cd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2ed1aa,_0x3e306b){return this['_getImageAsFile'](_0x2ed1aa)['then'](_0x25ea99=>_0xe16f87['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3e306b['signal'],'file':_0x25ea99,'onProgress':_0x3d10eb=>{_0x3d10eb&&_0x3d10eb['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3d10eb['value']));}}))['then'](_0x13c5ac=>{const {width:_0x118497,height:_0x17eb0b}=_0x13c5ac['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13c5ac['cdnUrl'],this['imageDimension']={'width':_0x118497,'height':_0x17eb0b},this['imageId']=_0x13c5ac['uuid'],this['imageUploadProgress']=null;const _0x1d7151=_0x2ed1aa['getAttribute']('src');this['_imageCache']['set'](_0x1d7151,{'id':_0x13c5ac['uuid'],'url':_0x13c5ac['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x35fdb3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x35fdb3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4b260a,_0x359b73){_0x4b260a['on']('apply',(_0x338c01,_0x27b166)=>{this['_replaceImage'](_0x359b73,_0x27b166['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4b260a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4b260a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x259d4b,_0xec3a35,_0x25d2ee){const _0x335110=this['_editor'],{width:_0x506aaa,height:_0x508e01}=_0x2ef2f8(_0xec3a35,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5e0c5d,imageSources:_0xa606ee}=_0x599f86(_0xec3a35,_0x506aaa);_0x335110['model']['change'](_0x9c60c1=>{if('$graveyard'===_0x259d4b['root']['rootName']){_0x335110['execute']('insertImage',{'imageType':_0x259d4b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x259d4b['getAttributes']()),'uploadcareImageId':_0x25d2ee,'src':_0x5e0c5d,'sources':_0xa606ee,'width':_0x506aaa,'height':_0x508e01}});const _0x504dc5=_0x259d4b['getChildren']();_0x259d4b=_0x335110['model']['document']['selection']['getSelectedElement']();for(const _0x14580b of _0x504dc5)_0x9c60c1['append'](_0x9c60c1['cloneElement'](_0x14580b),_0x259d4b);}else _0x9c60c1['setSelection'](_0x259d4b,'on'),_0x335110['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x259d4b['getAttributes']()),'uploadcareImageId':_0x25d2ee,'src':_0x5e0c5d,'sources':_0xa606ee,'width':_0x506aaa,'height':_0x508e01},_0x259d4b);_0x9c60c1['setSelection'](_0x259d4b,'on');});}async['_getImageAsFile'](_0x4e261c){const _0x35e000=_0x400a7c['window'],_0x6e2c05=_0x400a7c['document']['location']['href'],_0x4c5ed4=new _0x35e000['URL'](_0x4e261c['getAttribute']('src'),_0x6e2c05);if('data:'===_0x4c5ed4['protocol']){const _0x5d5edc=_0x4c5ed4['href']['split'](','),_0x283a11=_0x5d5edc[0x0]['match'](/:(.*?);/)[0x1],_0x198b93=_0x283a11['split']('/')[0x1],_0xd28950=_0x35e000['atob'](_0x5d5edc[_0x5d5edc['length']-0x1]);let _0x13745f=_0xd28950['length'];const _0x16a829=new _0x35e000['Uint8Array'](_0x13745f);for(;_0x13745f--;)_0x16a829[_0x13745f]=_0xd28950['charCodeAt'](_0x13745f);return new _0x35e000['File']([_0x16a829],'image.'+_0x198b93,{'type':_0x283a11});}const _0x1327ca=_0x4c5ed4['href']['split']('/'),_0x723f14=_0x1327ca[_0x1327ca['length']-0x1],_0x143f17=_0x723f14['split']('.')[0x1];return _0x35e000['fetch'](_0x4c5ed4['href'])['then'](_0x335900=>_0x335900['clone']()['blob']())['then'](_0x478140=>new _0x35e000['File']([_0x478140],_0x723f14,{'type':'image/'+_0x143f17}));}}
23
+ import{global as _0x46f999,ObservableMixin as _0x5dc735}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3ccd3d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2977cd}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x135c3d}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x23cd8f}from'../../utils/uploadutils.js';import{getImageUrls as _0x40519d,getImageDimension as _0xfd7424}from'../../utils/editingutils.js';import{isAncestor as _0x36a002}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x5dc735(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x45c843,_0x1d3b65,_0x17a17c){super(),this['_editor']=_0x45c843,this['_dialog']=_0x1d3b65,this['_imageElement']=_0x17a17c,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 _0x49940e=this['_imageElement'],_0x55d8df=_0x49940e['getAttribute']('uploadcareImageId'),_0x5b8c51=_0x49940e['getAttribute']('src');if(_0x55d8df)await this['_loadImageInfo'](_0x55d8df,_0x5b8c51);else{if(this['_imageCache']['has'](_0x5b8c51)){const _0x48eb33=this['_imageCache']['get'](_0x5b8c51);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48eb33['url'],this['imageDimension']=_0x48eb33['dimension'],this['imageId']=_0x48eb33['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x172a8e}=this['_editor'],t=_0x172a8e['t'],_0xb23c45=new _0x135c3d(_0x172a8e,this['imageStatus'],this['_attributes']);_0xb23c45['bind']('status')['to'](this,'imageStatus'),_0xb23c45['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xb23c45['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xb23c45['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xb23c45,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2977cd,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xb23c45,'position':_0x3ccd3d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xb23c45['focus']();},'onHide':()=>{_0xb23c45['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2d128c=>!_0x36a002(_0x2d128c,_0xb23c45['element'])}});}['_loadImageInfo'](_0x3ea099,_0x4bb1dd){return _0x23cd8f['getInfo'](_0x3ea099,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x298aac=>{const {width:_0x1a0c41,height:_0xf0be5f}=_0x298aac['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4bb1dd,this['imageDimension']={'width':_0x1a0c41,'height':_0xf0be5f},this['imageId']=_0x3ea099;})['catch'](_0x3ea163=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3ea163['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x345f9f,_0x3b086e){return this['_getImageAsFile'](_0x345f9f)['then'](_0x338589=>_0x23cd8f['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3b086e['signal'],'file':_0x338589,'onProgress':_0x287c3e=>{_0x287c3e&&_0x287c3e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x287c3e['value']));}}))['then'](_0xe33b3c=>{const {width:_0xfa45d2,height:_0xed0784}=_0xe33b3c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe33b3c['cdnUrl'],this['imageDimension']={'width':_0xfa45d2,'height':_0xed0784},this['imageId']=_0xe33b3c['uuid'],this['imageUploadProgress']=null;const _0x141ffa=_0x345f9f['getAttribute']('src');this['_imageCache']['set'](_0x141ffa,{'id':_0xe33b3c['uuid'],'url':_0xe33b3c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x37b683=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x37b683['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x561f9a,_0x29b5bf){_0x561f9a['on']('apply',(_0x37422f,_0x55be67)=>{this['_replaceImage'](_0x29b5bf,_0x55be67['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x561f9a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x561f9a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3cf744,_0x11a99c,_0x17ee30){const _0x1e05bf=this['_editor'],{width:_0x2af2a8,height:_0x5788f5}=_0xfd7424(_0x11a99c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2965bb,imageSources:_0x2dc0f6}=_0x40519d(_0x11a99c,_0x2af2a8);_0x1e05bf['model']['change'](_0x41ed1f=>{if('$graveyard'===_0x3cf744['root']['rootName']){_0x1e05bf['execute']('insertImage',{'imageType':_0x3cf744['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3cf744['getAttributes']()),'uploadcareImageId':_0x17ee30,'src':_0x2965bb,'sources':_0x2dc0f6,'width':_0x2af2a8,'height':_0x5788f5}});const _0xf4abde=_0x3cf744['getChildren']();_0x3cf744=_0x1e05bf['model']['document']['selection']['getSelectedElement']();for(const _0x2d8e20 of _0xf4abde)_0x41ed1f['append'](_0x41ed1f['cloneElement'](_0x2d8e20),_0x3cf744);}else _0x41ed1f['setSelection'](_0x3cf744,'on'),_0x1e05bf['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3cf744['getAttributes']()),'uploadcareImageId':_0x17ee30,'src':_0x2965bb,'sources':_0x2dc0f6,'width':_0x2af2a8,'height':_0x5788f5},_0x3cf744);_0x41ed1f['setSelection'](_0x3cf744,'on');});}async['_getImageAsFile'](_0x90de10){const _0x1a0757=_0x46f999['window'],_0x585ce1=_0x46f999['document']['location']['href'],_0x1d2235=new _0x1a0757['URL'](_0x90de10['getAttribute']('src'),_0x585ce1);if('data:'===_0x1d2235['protocol']){const _0x42ebdc=_0x1d2235['href']['split'](','),_0x5c941b=_0x42ebdc[0x0]['match'](/:(.*?);/)[0x1],_0x51e846=_0x5c941b['split']('/')[0x1],_0xb0f0c9=_0x1a0757['atob'](_0x42ebdc[_0x42ebdc['length']-0x1]);let _0x28d484=_0xb0f0c9['length'];const _0x556502=new _0x1a0757['Uint8Array'](_0x28d484);for(;_0x28d484--;)_0x556502[_0x28d484]=_0xb0f0c9['charCodeAt'](_0x28d484);return new _0x1a0757['File']([_0x556502],'image.'+_0x51e846,{'type':_0x5c941b});}const _0x2079e2=_0x1d2235['href']['split']('/'),_0x50d197=_0x2079e2[_0x2079e2['length']-0x1],_0x2fec90=_0x50d197['split']('.')[0x1];return _0x1a0757['fetch'](_0x1d2235['href'])['then'](_0x3277e5=>_0x3277e5['clone']()['blob']())['then'](_0x53a3ac=>new _0x1a0757['File']([_0x53a3ac],_0x50d197,{'type':'image/'+_0x2fec90}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x4d301f,_0xd57248){const _0x5d008c=_0x12ca,_0x330bb0=_0x4d301f();while(!![]){try{const _0x23a09b=parseInt(_0x5d008c(0xd2))/0x1*(-parseInt(_0x5d008c(0xd6))/0x2)+-parseInt(_0x5d008c(0xd5))/0x3*(parseInt(_0x5d008c(0xe2))/0x4)+parseInt(_0x5d008c(0xd0))/0x5+parseInt(_0x5d008c(0xd4))/0x6*(-parseInt(_0x5d008c(0xdf))/0x7)+-parseInt(_0x5d008c(0xdb))/0x8+parseInt(_0x5d008c(0xd9))/0x9+parseInt(_0x5d008c(0xd8))/0xa*(parseInt(_0x5d008c(0xd1))/0xb);if(_0x23a09b===_0xd57248)break;else _0x330bb0['push'](_0x330bb0['shift']());}catch(_0x305100){_0x330bb0['push'](_0x330bb0['shift']());}}}(_0x23a2,0x9bf3d));import{View as _0x3c13ba}from'ckeditor5/src/ui.js';function _0x23a2(){const _0x203d64=['set','163868LVSEvu','5609775UEolsD','22gNGHwo','6ofDbHo','image-edit','1608scEUic','33HuLurB','301160vBsTaG','uc-cloud-image-editor','1137050BZnoYV','10424412dfqXCc','bindTemplate','3271000FWtMSI','uc-light','ck-uploadcare-theme','imageSrc','2765lyJKLp','setTemplate'];_0x23a2=function(){return _0x203d64;};return _0x23a2();}function _0x12ca(_0x1063ba,_0x46412f){const _0x23a2fa=_0x23a2();return _0x12ca=function(_0x12cae3,_0x4c25f8){_0x12cae3=_0x12cae3-0xd0;let _0x1fc531=_0x23a2fa[_0x12cae3];return _0x1fc531;},_0x12ca(_0x1063ba,_0x46412f);}export class UploadcareImageEditFormEditingView extends _0x3c13ba{constructor(_0x5c5aff,_0x4e8f6a){const _0x10be53=_0x12ca;super(_0x5c5aff);const _0x44558f=this[_0x10be53(0xda)];this[_0x10be53(0xe1)](_0x10be53(0xde),''),this[_0x10be53(0xe0)]({'tag':_0x10be53(0xd7),'attributes':{..._0x4e8f6a,'class':[_0x10be53(0xdc),_0x10be53(0xdd)],'ctx-name':_0x10be53(0xd3),'cdn-url':_0x44558f['to'](_0x10be53(0xde))}});}}
23
+ function _0x3e7e(){const _0x5e5f3b=['setTemplate','8036064TppUTm','1479wcbZoJ','uc-light','bindTemplate','4152CPHPVu','5052ggPDxU','set','264730iBBaSV','image-edit','2808666jrtQQZ','imageSrc','uc-cloud-image-editor','2980044iorAgg','ck-uploadcare-theme','3220180ApRYNn'];_0x3e7e=function(){return _0x5e5f3b;};return _0x3e7e();}function _0x5ec8(_0x418893,_0x38943a){const _0x3e7e89=_0x3e7e();return _0x5ec8=function(_0x5ec8c9,_0x554ddd){_0x5ec8c9=_0x5ec8c9-0x143;let _0x382977=_0x3e7e89[_0x5ec8c9];return _0x382977;},_0x5ec8(_0x418893,_0x38943a);}(function(_0x1e390f,_0x25b71b){const _0x5bf029=_0x5ec8,_0x311e19=_0x1e390f();while(!![]){try{const _0x16fb5a=parseInt(_0x5bf029(0x149))/0x1+parseInt(_0x5bf029(0x147))/0x2+-parseInt(_0x5bf029(0x143))/0x3*(-parseInt(_0x5bf029(0x146))/0x4)+parseInt(_0x5bf029(0x150))/0x5+-parseInt(_0x5bf029(0x14e))/0x6+parseInt(_0x5bf029(0x14b))/0x7+-parseInt(_0x5bf029(0x152))/0x8;if(_0x16fb5a===_0x25b71b)break;else _0x311e19['push'](_0x311e19['shift']());}catch(_0x2e46b7){_0x311e19['push'](_0x311e19['shift']());}}}(_0x3e7e,0x4ee0a));import{View as _0x524713}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x524713{constructor(_0x24911c,_0x5f2cca){const _0x261bf5=_0x5ec8;super(_0x24911c);const _0x51d779=this[_0x261bf5(0x145)];this[_0x261bf5(0x148)](_0x261bf5(0x14c),''),this[_0x261bf5(0x151)]({'tag':_0x261bf5(0x14d),'attributes':{..._0x5f2cca,'class':[_0x261bf5(0x144),_0x261bf5(0x14f)],'ctx-name':_0x261bf5(0x14a),'cdn-url':_0x51d779['to'](_0x261bf5(0x14c))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x338bdc}from'ckeditor5/src/icons.js';import{ButtonView as _0x3ecedf,IconView as _0xb48ae0,View as _0x2c8e22}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x2c8e22{constructor(_0x25e238){super(_0x25e238);const t=_0x25e238['t'];this['set']('errorType',null);const _0x56da37=new _0x3ecedf(_0x25e238);_0x56da37['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x56da37['withText']=!0x0,_0x56da37['class']='ck-button-action',_0x56da37['on']('execute',()=>{this['fire']('retry');}),_0x56da37['bind']('isVisible')['to'](this,'errorType',_0x3421ae=>'NotFound'!==_0x3421ae);const _0x50aaad=new _0xb48ae0();_0x50aaad['content']=_0x338bdc,_0x50aaad['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x26b3ad=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':[_0x50aaad,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x26b3ad['to']('errorType',_0x304021=>t('NotFound'!==_0x304021?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x56da37]},{'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 _0x345645}from'ckeditor5/src/icons.js';import{ButtonView as _0x1e3690,IconView as _0x165a4c,View as _0x11b34c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x11b34c{constructor(_0x38eccd){super(_0x38eccd);const t=_0x38eccd['t'];this['set']('errorType',null);const _0x465310=new _0x1e3690(_0x38eccd);_0x465310['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x465310['withText']=!0x0,_0x465310['class']='ck-button-action',_0x465310['on']('execute',()=>{this['fire']('retry');}),_0x465310['bind']('isVisible')['to'](this,'errorType',_0x446ba6=>'NotFound'!==_0x446ba6);const _0x23de4d=new _0x165a4c();_0x23de4d['content']=_0x345645,_0x23de4d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2f3045=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':[_0x23de4d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2f3045['to']('errorType',_0x51c80c=>t('NotFound'!==_0x51c80c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x465310]},{'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 _0x55032f,View as _0x50c8c2}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x50c8c2{constructor(_0x289926){super(_0x289926);const t=_0x289926['t'],_0x71da26=this['bindTemplate'],_0xab55ea=new _0x55032f();_0xab55ea['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':[_0xab55ea,{'text':_0x71da26['to']('imageUploadProgress',_0x26e98d=>t('Loading\x20image...')+'\x20('+(_0x26e98d||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 _0x316457,View as _0x107f3b}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x107f3b{constructor(_0x31e3d8){super(_0x31e3d8);const t=_0x31e3d8['t'],_0x304fe5=this['bindTemplate'],_0x36fbe6=new _0x316457();_0x36fbe6['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':[_0x36fbe6,{'text':_0x304fe5['to']('imageUploadProgress',_0x186041=>t('Loading\x20image...')+'\x20('+(_0x186041||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 _0xf3d8bb=_0x4b13;(function(_0x204978,_0x45a446){const _0x2c6ea2=_0x4b13,_0x5398b7=_0x204978();while(!![]){try{const _0x3ef6b1=parseInt(_0x2c6ea2(0x150))/0x1*(-parseInt(_0x2c6ea2(0x142))/0x2)+-parseInt(_0x2c6ea2(0x154))/0x3+-parseInt(_0x2c6ea2(0x14e))/0x4+-parseInt(_0x2c6ea2(0x12d))/0x5+parseInt(_0x2c6ea2(0x12b))/0x6+parseInt(_0x2c6ea2(0x133))/0x7+parseInt(_0x2c6ea2(0x157))/0x8*(parseInt(_0x2c6ea2(0x136))/0x9);if(_0x3ef6b1===_0x45a446)break;else _0x5398b7['push'](_0x5398b7['shift']());}catch(_0x5b4afa){_0x5398b7['push'](_0x5398b7['shift']());}}}(_0x5d17,0x97160));function _0x4b13(_0x30ccd5,_0x46a3f6){const _0x5d175a=_0x5d17();return _0x4b13=function(_0x4b1377,_0x4b1f22){_0x4b1377=_0x4b1377-0x12b;let _0x4cdae8=_0x5d175a[_0x4b1377];return _0x4cdae8;},_0x4b13(_0x30ccd5,_0x46a3f6);}import{View as _0x5583f0}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x36cd4c}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x286f94}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x53bd8d}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3e38a5}from'../../utils/dialogfocusmanagerview.js';function _0x5d17(){const _0x272dec=['_loadingView','apply','error','getFocusableElement','addedNodes','12zONook','uploading','_editingView','target','once','_errorView','_addErrorViewListeners','createCollection','_focusableView','render','detail','set','195664pXdeZg','_items','14684ncrGyk','querySelector','change:status','ready','1833612KMfzFK','cdnUrl','div','104XQUdVI','filter','element','disconnect','add','retry','ck-reset_all-excluded','observe','_addUploadcareImageEditorListeners','toLowerCase','3028734EBQaZa','cancel','5540345dcLtEK','clear','setTemplate','status','nodeName','ck-uploadcare-form','2352035oMOYyC','fire','addMany','1131471RyuDQr','focus','_waitForImageEditorComponent','_setView','uc-cloud-image-editor','length','addEventListener'];_0x5d17=function(){return _0x272dec;};return _0x5d17();}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x3e38a5{[_0xf3d8bb(0x14f)];[_0xf3d8bb(0x13d)];[_0xf3d8bb(0x147)];[_0xf3d8bb(0x144)];[_0xf3d8bb(0x14a)];constructor(_0x1b5e88,_0x5d1f35,_0x4752a0){const _0x40582b=_0xf3d8bb;super(_0x1b5e88),this[_0x40582b(0x14f)]=this[_0x40582b(0x149)](),this[_0x40582b(0x13d)]=new _0x36cd4c(_0x1b5e88),this[_0x40582b(0x147)]=new _0x286f94(_0x1b5e88),this[_0x40582b(0x144)]=new _0x53bd8d(_0x1b5e88,_0x4752a0),this[_0x40582b(0x14a)]=new _0x5583f0(_0x1b5e88),this[_0x40582b(0x14a)][_0x40582b(0x12f)](this[_0x40582b(0x140)]()),this[_0x40582b(0x14d)](_0x40582b(0x130),_0x5d1f35),this[_0x40582b(0x12f)]({'tag':_0x40582b(0x156),'attributes':{'class':['ck',_0x40582b(0x15d),_0x40582b(0x132)],'tabindex':'-1'},'children':this[_0x40582b(0x14f)]}),this[_0x40582b(0x139)](),this[_0x40582b(0x146)](_0x40582b(0x14b),()=>{const _0x4b38a9=_0x40582b;this[_0x4b38a9(0x138)](this[_0x4b38a9(0x159)],_0x3ce7a6=>{const _0x38c6bc=_0x4b38a9;this[_0x38c6bc(0x15f)](_0x3ce7a6);});}),this['on'](_0x40582b(0x152),()=>{const _0x132bea=_0x40582b;this[_0x132bea(0x139)]();}),this[_0x40582b(0x148)]();}[_0xf3d8bb(0x137)](){const _0x4875c0=_0xf3d8bb;this[_0x4875c0(0x159)][_0x4875c0(0x137)]();}[_0xf3d8bb(0x139)](){const _0x4bb5b9=_0xf3d8bb;switch(this[_0x4bb5b9(0x14f)][_0x4bb5b9(0x12e)](),this[_0x4bb5b9(0x130)]){case _0x4bb5b9(0x143):this[_0x4bb5b9(0x14f)][_0x4bb5b9(0x15b)](this[_0x4bb5b9(0x13d)]);break;case _0x4bb5b9(0x13f):this[_0x4bb5b9(0x14f)][_0x4bb5b9(0x15b)](this[_0x4bb5b9(0x147)]);break;case _0x4bb5b9(0x153):this[_0x4bb5b9(0x14f)][_0x4bb5b9(0x135)]([this[_0x4bb5b9(0x144)],this[_0x4bb5b9(0x14a)]]);}}[_0xf3d8bb(0x138)](_0x4f526a,_0x3798eb){const _0x2a2288=_0xf3d8bb,_0x38ae18=_0x2a2288(0x13a),_0x6dcc26=_0x4f526a[_0x2a2288(0x151)](_0x38ae18);if(_0x6dcc26)return _0x3798eb(_0x6dcc26);const _0x333358=new MutationObserver(_0x50a692=>{const _0x4d61a1=_0x2a2288,_0x4f2158=_0x50a692[_0x4d61a1(0x158)](_0x678d8c=>_0x678d8c[_0x4d61a1(0x145)]===_0x4f526a&&_0x678d8c[_0x4d61a1(0x141)][_0x4d61a1(0x13b)]>0x0&&_0x678d8c[_0x4d61a1(0x141)][0x0][_0x4d61a1(0x131)][_0x4d61a1(0x160)]()===_0x38ae18);_0x4f2158[_0x4d61a1(0x13b)]&&(_0x333358[_0x4d61a1(0x15a)](),_0x3798eb(_0x4f2158[0x0][_0x4d61a1(0x141)][0x0]));});_0x333358[_0x2a2288(0x15e)](_0x4f526a,{'childList':!0x0,'subtree':!0x0});}[_0xf3d8bb(0x15f)](_0x253a97){const _0x41249f=_0xf3d8bb;_0x253a97[_0x41249f(0x13c)](_0x41249f(0x13e),_0xa018c3=>{const _0x52bd62=_0x41249f;this[_0x52bd62(0x134)](_0x52bd62(0x13e),{'imageSrc':_0xa018c3[_0x52bd62(0x14c)][_0x52bd62(0x155)]});}),_0x253a97[_0x41249f(0x13c)](_0x41249f(0x12c),()=>{const _0xd3a39c=_0x41249f;this[_0xd3a39c(0x134)](_0xd3a39c(0x12c));});}[_0xf3d8bb(0x148)](){const _0x8b82d6=_0xf3d8bb;this[_0x8b82d6(0x147)]['on'](_0x8b82d6(0x15c),()=>{const _0x398347=_0x8b82d6;this[_0x398347(0x134)](_0x398347(0x15c));});}}
23
+ const _0x59b0c1=_0x3784;(function(_0xadef96,_0x5f34b2){const _0x4baf02=_0x3784,_0x23222a=_0xadef96();while(!![]){try{const _0x41f29e=-parseInt(_0x4baf02(0xec))/0x1+-parseInt(_0x4baf02(0xd7))/0x2*(-parseInt(_0x4baf02(0xfa))/0x3)+-parseInt(_0x4baf02(0xfc))/0x4+-parseInt(_0x4baf02(0x10b))/0x5+-parseInt(_0x4baf02(0x101))/0x6+parseInt(_0x4baf02(0xf6))/0x7*(-parseInt(_0x4baf02(0xea))/0x8)+parseInt(_0x4baf02(0xee))/0x9;if(_0x41f29e===_0x5f34b2)break;else _0x23222a['push'](_0x23222a['shift']());}catch(_0x2a4776){_0x23222a['push'](_0x23222a['shift']());}}}(_0x30ad,0xec357));import{View as _0x25204d}from'ckeditor5/src/ui.js';function _0x3784(_0x777c91,_0x1325a9){const _0x30ad58=_0x30ad();return _0x3784=function(_0x37843e,_0x2cb718){_0x37843e=_0x37843e-0xd6;let _0x26b5b4=_0x30ad58[_0x37843e];return _0x26b5b4;},_0x3784(_0x777c91,_0x1325a9);}import{UploadcareImageEditFormLoadingView as _0x3c8890}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2ea1b1}from'./uploadcareimageeditformerrorview.js';function _0x30ad(){const _0x178c8c=['24ZgMvss','ck-uploadcare-form','1397048PhPJXp','_addErrorViewListeners','47059659mmIlKd','addMany','add','toLowerCase','_addUploadcareImageEditorListeners','nodeName','observe','length','4305973ZsSbko','_setView','element','render','9SEeiHg','set','105432kjkrcH','filter','addEventListener','error','_waitForImageEditorComponent','2778432BfwVHC','div','target','_items','fire','setTemplate','disconnect','detail','addedNodes','_loadingView','7720870kZfNZQ','clear','676486gbwlmx','createCollection','getFocusableElement','_focusableView','status','cdnUrl','focus','retry','change:status','querySelector','uploading','_errorView','apply','uc-cloud-image-editor','once','ready','_editingView','ck-reset_all-excluded','cancel'];_0x30ad=function(){return _0x178c8c;};return _0x30ad();}import{UploadcareImageEditFormEditingView as _0x5b5f10}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x539423}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x539423{[_0x59b0c1(0x104)];[_0x59b0c1(0x10a)];[_0x59b0c1(0xe2)];[_0x59b0c1(0xe7)];[_0x59b0c1(0xda)];constructor(_0x4ed0aa,_0xfa195f,_0x2e7cff){const _0x4ba8f4=_0x59b0c1;super(_0x4ed0aa),this[_0x4ba8f4(0x104)]=this[_0x4ba8f4(0xd8)](),this[_0x4ba8f4(0x10a)]=new _0x3c8890(_0x4ed0aa),this[_0x4ba8f4(0xe2)]=new _0x2ea1b1(_0x4ed0aa),this[_0x4ba8f4(0xe7)]=new _0x5b5f10(_0x4ed0aa,_0x2e7cff),this[_0x4ba8f4(0xda)]=new _0x25204d(_0x4ed0aa),this[_0x4ba8f4(0xda)][_0x4ba8f4(0x106)](this[_0x4ba8f4(0xd9)]()),this[_0x4ba8f4(0xfb)](_0x4ba8f4(0xdb),_0xfa195f),this[_0x4ba8f4(0x106)]({'tag':_0x4ba8f4(0x102),'attributes':{'class':['ck',_0x4ba8f4(0xe8),_0x4ba8f4(0xeb)],'tabindex':'-1'},'children':this[_0x4ba8f4(0x104)]}),this[_0x4ba8f4(0xf7)](),this[_0x4ba8f4(0xe5)](_0x4ba8f4(0xf9),()=>{const _0xf817df=_0x4ba8f4;this[_0xf817df(0x100)](this[_0xf817df(0xf8)],_0x5865be=>{const _0x345671=_0xf817df;this[_0x345671(0xf2)](_0x5865be);});}),this['on'](_0x4ba8f4(0xdf),()=>{const _0x4c4d68=_0x4ba8f4;this[_0x4c4d68(0xf7)]();}),this[_0x4ba8f4(0xed)]();}[_0x59b0c1(0xdd)](){const _0x4d6fdc=_0x59b0c1;this[_0x4d6fdc(0xf8)][_0x4d6fdc(0xdd)]();}[_0x59b0c1(0xf7)](){const _0x47ca2c=_0x59b0c1;switch(this[_0x47ca2c(0x104)][_0x47ca2c(0xd6)](),this[_0x47ca2c(0xdb)]){case _0x47ca2c(0xe1):this[_0x47ca2c(0x104)][_0x47ca2c(0xf0)](this[_0x47ca2c(0x10a)]);break;case _0x47ca2c(0xff):this[_0x47ca2c(0x104)][_0x47ca2c(0xf0)](this[_0x47ca2c(0xe2)]);break;case _0x47ca2c(0xe6):this[_0x47ca2c(0x104)][_0x47ca2c(0xef)]([this[_0x47ca2c(0xe7)],this[_0x47ca2c(0xda)]]);}}[_0x59b0c1(0x100)](_0x2aaec7,_0x1368ad){const _0x9dfaff=_0x59b0c1,_0x91b6ae=_0x9dfaff(0xe4),_0xee1583=_0x2aaec7[_0x9dfaff(0xe0)](_0x91b6ae);if(_0xee1583)return _0x1368ad(_0xee1583);const _0x40aae1=new MutationObserver(_0x48cf6c=>{const _0x497e51=_0x9dfaff,_0xec1e14=_0x48cf6c[_0x497e51(0xfd)](_0x2d8939=>_0x2d8939[_0x497e51(0x103)]===_0x2aaec7&&_0x2d8939[_0x497e51(0x109)][_0x497e51(0xf5)]>0x0&&_0x2d8939[_0x497e51(0x109)][0x0][_0x497e51(0xf3)][_0x497e51(0xf1)]()===_0x91b6ae);_0xec1e14[_0x497e51(0xf5)]&&(_0x40aae1[_0x497e51(0x107)](),_0x1368ad(_0xec1e14[0x0][_0x497e51(0x109)][0x0]));});_0x40aae1[_0x9dfaff(0xf4)](_0x2aaec7,{'childList':!0x0,'subtree':!0x0});}[_0x59b0c1(0xf2)](_0x38eca0){const _0x356f9f=_0x59b0c1;_0x38eca0[_0x356f9f(0xfe)](_0x356f9f(0xe3),_0x1ce6a9=>{const _0x2fdf6f=_0x356f9f;this[_0x2fdf6f(0x105)](_0x2fdf6f(0xe3),{'imageSrc':_0x1ce6a9[_0x2fdf6f(0x108)][_0x2fdf6f(0xdc)]});}),_0x38eca0[_0x356f9f(0xfe)](_0x356f9f(0xe9),()=>{const _0x8fe514=_0x356f9f;this[_0x8fe514(0x105)](_0x8fe514(0xe9));});}[_0x59b0c1(0xed)](){const _0x6b62c=_0x59b0c1;this[_0x6b62c(0xe2)]['on'](_0x6b62c(0xde),()=>{const _0x3a9ca8=_0x6b62c;this[_0x3a9ca8(0x105)](_0x3a9ca8(0xde));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30e5a5=_0xadb1;function _0x11c9(){const _0x28c75b=['model','editor','set','imageInline','uploadcare.allowExternalImagesEditing','imageBlock','imageEditController','document','18rCdqYH','74994lQIjYm','_isEditable','isActive','13494HWyQDX','4296520XXjwzN','requires','get','4UdZoOZ','5OaMZmc','refresh','isEnabled','selection','bind','execute','27560vGPnAl','1536372xYlDmF','13QmIGSr','plugins','2299vcCYmJ','element','getSelectedElement','unbind','3451OLxFPe','1108956ALajKU','config','1830965XlVIwj'];_0x11c9=function(){return _0x28c75b;};return _0x11c9();}(function(_0x46efc8,_0x764db0){const _0x146c61=_0xadb1,_0x217cf0=_0x46efc8();while(!![]){try{const _0x477066=-parseInt(_0x146c61(0x196))/0x1*(-parseInt(_0x146c61(0x18e))/0x2)+-parseInt(_0x146c61(0x19d))/0x3+-parseInt(_0x146c61(0x195))/0x4*(-parseInt(_0x146c61(0x184))/0x5)+parseInt(_0x146c61(0x191))/0x6*(parseInt(_0x146c61(0x181))/0x7)+parseInt(_0x146c61(0x192))/0x8*(-parseInt(_0x146c61(0x18d))/0x9)+parseInt(_0x146c61(0x19c))/0xa*(parseInt(_0x146c61(0x1a0))/0xb)+-parseInt(_0x146c61(0x182))/0xc*(parseInt(_0x146c61(0x19e))/0xd);if(_0x477066===_0x764db0)break;else _0x217cf0['push'](_0x217cf0['shift']());}catch(_0x569766){_0x217cf0['push'](_0x217cf0['shift']());}}}(_0x11c9,0x88a9c));import{Command as _0x38d2d5}from'ckeditor5/src/core.js';import{Dialog as _0xf1fbd}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1c6c4d}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x9edb}from'../utils/editingutils.js';function _0xadb1(_0x527d0a,_0x5bdef2){const _0x11c917=_0x11c9();return _0xadb1=function(_0xadb1da,_0x5da791){_0xadb1da=_0xadb1da-0x180;let _0x44a6bd=_0x11c917[_0xadb1da];return _0x44a6bd;},_0xadb1(_0x527d0a,_0x5bdef2);}export class UploadcareImageEditCommand extends _0x38d2d5{[_0x30e5a5(0x18b)];static get[_0x30e5a5(0x193)](){return[_0xf1fbd];}[_0x30e5a5(0x18f)];constructor(_0x43369f){const _0x427954=_0x30e5a5;super(_0x43369f),this[_0x427954(0x18b)]=void 0x0,this[_0x427954(0x18f)]=_0x9edb(_0x43369f[_0x427954(0x183)][_0x427954(0x194)](_0x427954(0x189))||[]),this[_0x427954(0x187)]({'isActive':!0x1});}[_0x30e5a5(0x197)](){const _0x40234d=_0x30e5a5,_0x49b8cc=this[_0x40234d(0x186)][_0x40234d(0x185)][_0x40234d(0x18c)][_0x40234d(0x199)][_0x40234d(0x1a2)]();this[_0x40234d(0x198)]=this[_0x40234d(0x18f)](_0x49b8cc);}[_0x30e5a5(0x19b)](){const _0x514749=_0x30e5a5;this[_0x514749(0x18b)]&&(this[_0x514749(0x180)](_0x514749(0x190)),this[_0x514749(0x18b)]=void 0x0);const _0x9ad733=this[_0x514749(0x186)][_0x514749(0x185)][_0x514749(0x18c)][_0x514749(0x199)][_0x514749(0x1a2)]();_0x9ad733&&(_0x9ad733['is'](_0x514749(0x1a1),_0x514749(0x18a))||_0x9ad733['is'](_0x514749(0x1a1),_0x514749(0x188)))&&(this[_0x514749(0x18b)]=new _0x1c6c4d(this[_0x514749(0x186)],this[_0x514749(0x186)][_0x514749(0x19f)][_0x514749(0x194)](_0xf1fbd),_0x9ad733),this[_0x514749(0x19a)](_0x514749(0x190))['to'](this[_0x514749(0x18b)],_0x514749(0x190)));}}
23
+ function _0x1d37(){const _0x5467f8=['uploadcare.allowExternalImagesEditing','imageInline','1905546SxDPvx','model','3iDlPzz','isActive','set','getSelectedElement','13343274RWGwlg','503546YMbKPF','11064vgFkfF','unbind','imageBlock','518sVPvzQ','1900252XudeYE','editor','_isEditable','plugins','document','element','5409350ulSpsR','620730XfFFCf','isEnabled','get','requires','refresh','bind','imageEditController','selection','execute','config'];_0x1d37=function(){return _0x5467f8;};return _0x1d37();}const _0x2db552=_0x2b29;(function(_0x479afc,_0x542135){const _0x4a5345=_0x2b29,_0x1f94b0=_0x479afc();while(!![]){try{const _0x4b4766=-parseInt(_0x4a5345(0x198))/0x1+parseInt(_0x4a5345(0x191))/0x2*(parseInt(_0x4a5345(0x193))/0x3)+-parseInt(_0x4a5345(0x17e))/0x4+-parseInt(_0x4a5345(0x184))/0x5+parseInt(_0x4a5345(0x185))/0x6+-parseInt(_0x4a5345(0x17d))/0x7*(-parseInt(_0x4a5345(0x17a))/0x8)+parseInt(_0x4a5345(0x197))/0x9;if(_0x4b4766===_0x542135)break;else _0x1f94b0['push'](_0x1f94b0['shift']());}catch(_0x58c0e1){_0x1f94b0['push'](_0x1f94b0['shift']());}}}(_0x1d37,0x8dc45));import{Command as _0x4a3b90}from'ckeditor5/src/core.js';import{Dialog as _0x431a54}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x4f42c6}from'./ui/uploadcareimageeditcontroller.js';function _0x2b29(_0x3b8918,_0x4fa77f){const _0x1d3741=_0x1d37();return _0x2b29=function(_0x2b2936,_0x3c7069){_0x2b2936=_0x2b2936-0x17a;let _0x1cf656=_0x1d3741[_0x2b2936];return _0x1cf656;},_0x2b29(_0x3b8918,_0x4fa77f);}import{createEditabilityChecker as _0x18661e}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x4a3b90{[_0x2db552(0x18b)];static get[_0x2db552(0x188)](){return[_0x431a54];}[_0x2db552(0x180)];constructor(_0x3d3c7f){const _0x438268=_0x2db552;super(_0x3d3c7f),this[_0x438268(0x18b)]=void 0x0,this[_0x438268(0x180)]=_0x18661e(_0x3d3c7f[_0x438268(0x18e)][_0x438268(0x187)](_0x438268(0x18f))||[]),this[_0x438268(0x195)]({'isActive':!0x1});}[_0x2db552(0x189)](){const _0xa9a36b=_0x2db552,_0x7ee020=this[_0xa9a36b(0x17f)][_0xa9a36b(0x192)][_0xa9a36b(0x182)][_0xa9a36b(0x18c)][_0xa9a36b(0x196)]();this[_0xa9a36b(0x186)]=this[_0xa9a36b(0x180)](_0x7ee020);}[_0x2db552(0x18d)](){const _0x3a2c1f=_0x2db552;this[_0x3a2c1f(0x18b)]&&(this[_0x3a2c1f(0x17b)](_0x3a2c1f(0x194)),this[_0x3a2c1f(0x18b)]=void 0x0);const _0x2b5b48=this[_0x3a2c1f(0x17f)][_0x3a2c1f(0x192)][_0x3a2c1f(0x182)][_0x3a2c1f(0x18c)][_0x3a2c1f(0x196)]();_0x2b5b48&&(_0x2b5b48['is'](_0x3a2c1f(0x183),_0x3a2c1f(0x17c))||_0x2b5b48['is'](_0x3a2c1f(0x183),_0x3a2c1f(0x190)))&&(this[_0x3a2c1f(0x18b)]=new _0x4f42c6(this[_0x3a2c1f(0x17f)],this[_0x3a2c1f(0x17f)][_0x3a2c1f(0x181)][_0x3a2c1f(0x187)](_0x431a54),_0x2b5b48),this[_0x3a2c1f(0x18a)](_0x3a2c1f(0x194))['to'](this[_0x3a2c1f(0x18b)],_0x3a2c1f(0x194)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46c09c=_0x50c1;(function(_0x491db3,_0x4e21e5){const _0x48aa27=_0x50c1,_0x1aeed9=_0x491db3();while(!![]){try{const _0x1141c4=parseInt(_0x48aa27(0x1d8))/0x1*(parseInt(_0x48aa27(0x1d2))/0x2)+-parseInt(_0x48aa27(0x1c2))/0x3+-parseInt(_0x48aa27(0x1cf))/0x4*(-parseInt(_0x48aa27(0x1d9))/0x5)+parseInt(_0x48aa27(0x1d3))/0x6*(parseInt(_0x48aa27(0x1d1))/0x7)+parseInt(_0x48aa27(0x1ca))/0x8+-parseInt(_0x48aa27(0x1d7))/0x9*(-parseInt(_0x48aa27(0x1d6))/0xa)+parseInt(_0x48aa27(0x1c6))/0xb*(-parseInt(_0x48aa27(0x1d4))/0xc);if(_0x1141c4===_0x4e21e5)break;else _0x1aeed9['push'](_0x1aeed9['shift']());}catch(_0x267fc6){_0x1aeed9['push'](_0x1aeed9['shift']());}}}(_0x4dc6,0x46c45));import{Plugin as _0x21b5df}from'ckeditor5/src/core.js';import{Notification as _0x40f494}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x5a7c04}from'./uploadcareimageeditcommand.js';function _0x4dc6(){const _0xd1f264=['commands','7cHTNAz','2vZZqJT','1870212VmJIKn','12bpWGji','isPremiumPlugin','163640QCNyiB','18RNyaYW','110293vTHeAA','5bXiqxJ','265590OhZbDT','isOfficialPlugin','requires','uploadcareImageReplace','5689123UonZPF','pluginName','ImageEditing','UploadcareImageEditEditing','2324160IhMfGU','ImageUtils','uploadcareImageEdit','init','add','601364aZxrNn'];_0x4dc6=function(){return _0xd1f264;};return _0x4dc6();}import{UploadcareImageReplaceCommand as _0xfd390c}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x1fe479}from'../uploadcareediting.js';function _0x50c1(_0x309b6a,_0x49d875){const _0x4dc64c=_0x4dc6();return _0x50c1=function(_0x50c183,_0x538d27){_0x50c183=_0x50c183-0x1c2;let _0xdee7b2=_0x4dc64c[_0x50c183];return _0xdee7b2;},_0x50c1(_0x309b6a,_0x49d875);}export class UploadcareImageEditEditing extends _0x21b5df{static get[_0x46c09c(0x1c7)](){const _0x5351ab=_0x46c09c;return _0x5351ab(0x1c9);}static get[_0x46c09c(0x1c4)](){const _0x5411ba=_0x46c09c;return[_0x1fe479,_0x40f494,_0x5411ba(0x1cb),_0x5411ba(0x1c8)];}static get[_0x46c09c(0x1c3)](){return!0x0;}static get[_0x46c09c(0x1d5)](){return!0x0;}[_0x46c09c(0x1cd)](){const _0x2af6cd=_0x46c09c,{editor:_0x276698}=this;_0x276698[_0x2af6cd(0x1d0)][_0x2af6cd(0x1ce)](_0x2af6cd(0x1cc),new _0x5a7c04(_0x276698)),_0x276698[_0x2af6cd(0x1d0)][_0x2af6cd(0x1ce)](_0x2af6cd(0x1c5),new _0xfd390c(_0x276698));}}
23
+ function _0x48a7(_0x5d7f76,_0x73e2a9){const _0x493ced=_0x493c();return _0x48a7=function(_0x48a7c3,_0x1eba7a){_0x48a7c3=_0x48a7c3-0x1a9;let _0x4c7e12=_0x493ced[_0x48a7c3];return _0x4c7e12;},_0x48a7(_0x5d7f76,_0x73e2a9);}const _0x187f54=_0x48a7;(function(_0x27cbb1,_0x349ab2){const _0x100f83=_0x48a7,_0x3b0058=_0x27cbb1();while(!![]){try{const _0x2c20ef=parseInt(_0x100f83(0x1ae))/0x1+parseInt(_0x100f83(0x1b2))/0x2*(parseInt(_0x100f83(0x1ac))/0x3)+-parseInt(_0x100f83(0x1b0))/0x4*(parseInt(_0x100f83(0x1aa))/0x5)+-parseInt(_0x100f83(0x1b1))/0x6*(-parseInt(_0x100f83(0x1b8))/0x7)+parseInt(_0x100f83(0x1ba))/0x8+parseInt(_0x100f83(0x1bf))/0x9*(parseInt(_0x100f83(0x1bc))/0xa)+-parseInt(_0x100f83(0x1ad))/0xb;if(_0x2c20ef===_0x349ab2)break;else _0x3b0058['push'](_0x3b0058['shift']());}catch(_0x3a5607){_0x3b0058['push'](_0x3b0058['shift']());}}}(_0x493c,0x623c2));import{Plugin as _0x4c8f0d}from'ckeditor5/src/core.js';import{Notification as _0xfed473}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x1fdd04}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x3ffa78}from'./uploadcareimagereplacecommand.js';function _0x493c(){const _0xa42f47=['20979CYPOiS','isOfficialPlugin','1128645VekDxu','uploadcareImageEdit','33zWtQZx','12209087izvHtv','422320qOhHjD','pluginName','4lMYlso','53058nSndKK','117146ATpfOo','commands','uploadcareImageReplace','isPremiumPlugin','UploadcareImageEditEditing','requires','77oGGtKN','ImageUtils','136088uIOJZb','init','2390sHBjlP','ImageEditing','add'];_0x493c=function(){return _0xa42f47;};return _0x493c();}import{UploadcareEditing as _0x3f9352}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x4c8f0d{static get[_0x187f54(0x1af)](){const _0x13b89f=_0x187f54;return _0x13b89f(0x1b6);}static get[_0x187f54(0x1b7)](){const _0x35e0e9=_0x187f54;return[_0x3f9352,_0xfed473,_0x35e0e9(0x1b9),_0x35e0e9(0x1bd)];}static get[_0x187f54(0x1a9)](){return!0x0;}static get[_0x187f54(0x1b5)](){return!0x0;}[_0x187f54(0x1bb)](){const _0x4a93ac=_0x187f54,{editor:_0x21d848}=this;_0x21d848[_0x4a93ac(0x1b3)][_0x4a93ac(0x1be)](_0x4a93ac(0x1ab),new _0x1fdd04(_0x21d848)),_0x21d848[_0x4a93ac(0x1b3)][_0x4a93ac(0x1be)](_0x4a93ac(0x1b4),new _0x3ffa78(_0x21d848));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x424dfc}from'ckeditor5/src/core.js';import{ButtonView as _0x113213}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x44c187}from'ckeditor5/src/icons.js';import{createElement as _0x143332}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x424dfc{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x1f73a9=this['editor'];_0x1f73a9['ui']['componentFactory']['add']('uploadcareImageEdit',_0x21fed6=>{const _0x5ee310=_0x1f73a9['commands']['get']('uploadcareImageEdit'),_0x2c3777=new _0x113213(_0x21fed6),t=_0x21fed6['t'];return _0x2c3777['set']({'icon':_0x44c187,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2c3777['bind']('isEnabled')['to'](_0x5ee310),_0x2c3777['bind']('isOn')['to'](_0x5ee310,'isActive'),this['listenTo'](_0x2c3777,'execute',()=>{_0x1f73a9['execute']('uploadcareImageEdit'),_0x1f73a9['editing']['view']['focus']();}),_0x2c3777;}),this['_initConfig']();}['_initConfig'](){const _0x351cce=_0x143332(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x351cce),this['listenTo'](this['editor'],'destroy',()=>{_0x351cce['remove']();});}}
23
+ import{Plugin as _0x1ac247}from'ckeditor5/src/core.js';import{ButtonView as _0xc3083f}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x39377a}from'ckeditor5/src/icons.js';import{createElement as _0x34f1fc}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x1ac247{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x4316ac=this['editor'];_0x4316ac['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1e7f96=>{const _0x1e7ae4=_0x4316ac['commands']['get']('uploadcareImageEdit'),_0x175284=new _0xc3083f(_0x1e7f96),t=_0x1e7f96['t'];return _0x175284['set']({'icon':_0x39377a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x175284['bind']('isEnabled')['to'](_0x1e7ae4),_0x175284['bind']('isOn')['to'](_0x1e7ae4,'isActive'),this['listenTo'](_0x175284,'execute',()=>{_0x4316ac['execute']('uploadcareImageEdit'),_0x4316ac['editing']['view']['focus']();}),_0x175284;}),this['_initConfig']();}['_initConfig'](){const _0x942086=_0x34f1fc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x942086),this['listenTo'](this['editor'],'destroy',()=>{_0x942086['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5a1e(){var _0xf4200d=['9046jnlfDZ','9xfrbFM','focusCycler','createCollection','forwardCycle','6534696EapKLk','13989490ManELa','getFocusableElement','bindTemplate','div','364400eYPBpi','fire','227TkDdAo','4QwxQrI','focusTracker','2010366FCocBf','true','3192805hBanYb','6GyjgMJ','24180849epNTht'];_0x5a1e=function(){return _0xf4200d;};return _0x5a1e();}var _0x314b61=_0x33b3;(function(_0x47fc40,_0x4fd17b){var _0x24c588=_0x33b3,_0x5c22c9=_0x47fc40();while(!![]){try{var _0x4e9b6c=parseInt(_0x24c588(0x149))/0x1*(parseInt(_0x24c588(0x151))/0x2)+-parseInt(_0x24c588(0x14c))/0x3*(parseInt(_0x24c588(0x14a))/0x4)+parseInt(_0x24c588(0x14e))/0x5*(parseInt(_0x24c588(0x14f))/0x6)+-parseInt(_0x24c588(0x156))/0x7+parseInt(_0x24c588(0x147))/0x8*(-parseInt(_0x24c588(0x152))/0x9)+-parseInt(_0x24c588(0x157))/0xa+parseInt(_0x24c588(0x150))/0xb;if(_0x4e9b6c===_0x4fd17b)break;else _0x5c22c9['push'](_0x5c22c9['shift']());}catch(_0x8f8d57){_0x5c22c9['push'](_0x5c22c9['shift']());}}}(_0x5a1e,0xc7120));import{FocusTracker as _0x524108}from'ckeditor5/src/utils.js';function _0x33b3(_0x604a9f,_0x2c7739){var _0x5a1e44=_0x5a1e();return _0x33b3=function(_0x33b3a4,_0x519334){_0x33b3a4=_0x33b3a4-0x146;var _0x1accfc=_0x5a1e44[_0x33b3a4];return _0x1accfc;},_0x33b3(_0x604a9f,_0x2c7739);}import{View as _0x1ca2c1,FocusCycler as _0x4123ae}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1ca2c1{[_0x314b61(0x14b)];[_0x314b61(0x153)];constructor(_0x18f12f){var _0x331bfd=_0x314b61;super(_0x18f12f),this[_0x331bfd(0x14b)]=new _0x524108(),this[_0x331bfd(0x153)]=new _0x4123ae({'focusables':this[_0x331bfd(0x154)](),'focusTracker':this[_0x331bfd(0x14b)]});}[_0x314b61(0x158)](){var _0x47cc37=_0x314b61;return{'tag':_0x47cc37(0x146),'attributes':{'aria-hidden':_0x47cc37(0x14d),'tabindex':'0'},'on':{'focus':this[_0x47cc37(0x159)]['to'](()=>{var _0x4a3b3c=_0x47cc37;this[_0x4a3b3c(0x153)][_0x4a3b3c(0x148)](_0x4a3b3c(0x155));})}};}}
23
+ var _0x5f52b1=_0x236a;function _0x236a(_0x24a5d4,_0x233551){var _0x4f3c6d=_0x4f3c();return _0x236a=function(_0x236ae6,_0x13e286){_0x236ae6=_0x236ae6-0x145;var _0x4df3b2=_0x4f3c6d[_0x236ae6];return _0x4df3b2;},_0x236a(_0x24a5d4,_0x233551);}(function(_0x40e8e7,_0x32379b){var _0x585976=_0x236a,_0x1edf06=_0x40e8e7();while(!![]){try{var _0x543a09=parseInt(_0x585976(0x14c))/0x1*(-parseInt(_0x585976(0x14d))/0x2)+parseInt(_0x585976(0x14f))/0x3*(parseInt(_0x585976(0x146))/0x4)+parseInt(_0x585976(0x152))/0x5+parseInt(_0x585976(0x158))/0x6*(parseInt(_0x585976(0x145))/0x7)+parseInt(_0x585976(0x154))/0x8*(-parseInt(_0x585976(0x15a))/0x9)+-parseInt(_0x585976(0x151))/0xa*(parseInt(_0x585976(0x14b))/0xb)+-parseInt(_0x585976(0x157))/0xc*(parseInt(_0x585976(0x155))/0xd);if(_0x543a09===_0x32379b)break;else _0x1edf06['push'](_0x1edf06['shift']());}catch(_0x316d1b){_0x1edf06['push'](_0x1edf06['shift']());}}}(_0x4f3c,0xdd55b));import{FocusTracker as _0x3cd986}from'ckeditor5/src/utils.js';function _0x4f3c(){var _0x2d2323=['6sigMmg','div','162IDeJmk','11403434hAhddl','36508okyFiA','createCollection','getFocusableElement','focusTracker','forwardCycle','187YgClHI','5SlHlRk','617846mZAOVL','fire','318YkimRZ','focusCycler','74810dEiUkP','8599655DQShHD','true','431176HNGVGy','1066umWpjz','bindTemplate','112380ePtOnc'];_0x4f3c=function(){return _0x2d2323;};return _0x4f3c();}import{View as _0x4d6f35,FocusCycler as _0x5549a4}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x4d6f35{[_0x5f52b1(0x149)];[_0x5f52b1(0x150)];constructor(_0x5bbdcd){var _0x13d8ee=_0x5f52b1;super(_0x5bbdcd),this[_0x13d8ee(0x149)]=new _0x3cd986(),this[_0x13d8ee(0x150)]=new _0x5549a4({'focusables':this[_0x13d8ee(0x147)](),'focusTracker':this[_0x13d8ee(0x149)]});}[_0x5f52b1(0x148)](){var _0x48e00d=_0x5f52b1;return{'tag':_0x48e00d(0x159),'attributes':{'aria-hidden':_0x48e00d(0x153),'tabindex':'0'},'on':{'focus':this[_0x48e00d(0x156)]['to'](()=>{var _0x2ea0aa=_0x48e00d;this[_0x2ea0aa(0x150)][_0x2ea0aa(0x14e)](_0x2ea0aa(0x14a));})}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x3663cc,_0x59678f){const _0x4f8d90=_0xbbe8,_0x3d761e=_0x3663cc();while(!![]){try{const _0x37269e=parseInt(_0x4f8d90(0x12c))/0x1*(parseInt(_0x4f8d90(0x14e))/0x2)+-parseInt(_0x4f8d90(0x141))/0x3+-parseInt(_0x4f8d90(0x125))/0x4*(-parseInt(_0x4f8d90(0x12b))/0x5)+parseInt(_0x4f8d90(0x11c))/0x6+parseInt(_0x4f8d90(0x148))/0x7+parseInt(_0x4f8d90(0x133))/0x8+-parseInt(_0x4f8d90(0x135))/0x9*(parseInt(_0x4f8d90(0x149))/0xa);if(_0x37269e===_0x59678f)break;else _0x3d761e['push'](_0x3d761e['shift']());}catch(_0x337bc4){_0x3d761e['push'](_0x3d761e['shift']());}}}(_0x3d2f,0x396be));import{global as _0x228a88,DomEmitterMixin as _0x597169}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0xb338ff){const _0x397c16=_0xbbe8,_0x30c896=z(_0xb338ff);return _0x22b933=>!(!_0x22b933||!_0x22b933['is'](_0x397c16(0x12d),_0x397c16(0x136))&&!_0x22b933['is'](_0x397c16(0x12d),_0x397c16(0x129)))&&(!!_0x22b933[_0x397c16(0x121)](_0x397c16(0x147))||!!_0x22b933[_0x397c16(0x121)](_0x397c16(0x13e))&&_0x30c896(_0x22b933[_0x397c16(0x138)](_0x397c16(0x13e))));}export function getImageUrls(_0x5cc7bf,_0x2c8e19){const _0x1982fd=_0xbbe8,_0x1c9312=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x1982fd(0x140)](_0x239229=>_0x239229<=_0x2c8e19)[_0x1982fd(0x13d)](_0x3d9c1a=>_0x5cc7bf[_0x1982fd(0x11e)](/\/$/,'')+_0x1982fd(0x13b)+_0x3d9c1a+_0x1982fd(0x131)+_0x3d9c1a+'w');return{'imageFallbackUrl':_0x5cc7bf,'imageSources':[{'srcset':_0x1c9312[_0x1982fd(0x143)](',\x20'),'sizes':_0x1982fd(0x13a)+_0x2c8e19+_0x1982fd(0x139)+_0x2c8e19+'px','type':_0x1982fd(0x127)}]};}function _0xbbe8(_0x18cabd,_0x4b7b02){const _0x3d2fc1=_0x3d2f();return _0xbbe8=function(_0xbbe870,_0x1ebb24){_0xbbe870=_0xbbe870-0x11b;let _0x3953fd=_0x3d2fc1[_0xbbe870];return _0x3953fd;},_0xbbe8(_0x18cabd,_0x4b7b02);}export function getImageDimension(_0x665028,_0x594d45,_0x47b3ff){const _0x1686a9=_0xbbe8,_0x2d6dfd=_0x665028[_0x1686a9(0x14d)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2d6dfd?parseInt(_0x2d6dfd[0x1],0xa):_0x594d45,'height':_0x2d6dfd?parseInt(_0x2d6dfd[0x2],0xa):_0x47b3ff};}function _0x3d2f(){const _0x50afc5=['src','plugins','filter','157386EHAIsP','removeClass','join','function','baseURI','view','uploadcareImageId','3165148fVFPoq','9360790QScfeD','width','isArray','listenTo','match','2CbQLAN','ImageUtils','height','stopListening','toViewElement','window','some','2598702KFCgtd','removeStyle','replace','setStyle','addClass','hasAttribute','findViewImgElement','aspect-ratio','get','52PvuIVy','origin','image/webp','document','imageInline','mapper','64730jSlSwq','12841IIVnXb','element','location','viewToDom','image-processing','x/\x20','change','1258552Jcpwcq','load','9bBLurM','imageBlock','editing','getAttribute','px)\x20100vw,\x20','(max-width:\x20','/-/resize/','domConverter','map'];_0x3d2f=function(){return _0x50afc5;};return _0x3d2f();}export function showImageProcessingIndicator(_0x4cd7c1,_0x76aedf){const _0xc6f584=_0xbbe8,_0x31ee6f=new(_0x597169())(),_0x5bcaa5=_0x4cd7c1[_0xc6f584(0x13f)][_0xc6f584(0x124)](_0xc6f584(0x14f)),_0x5d406d=_0x4cd7c1[_0xc6f584(0x137)][_0xc6f584(0x12a)][_0xc6f584(0x152)](_0x76aedf),_0x3078bf=_0x5bcaa5[_0xc6f584(0x122)](_0x5d406d),_0xbdcf93=_0x4cd7c1[_0xc6f584(0x137)][_0xc6f584(0x146)][_0xc6f584(0x13c)][_0xc6f584(0x12f)](_0x3078bf),_0x5eaf29=_0x76aedf[_0xc6f584(0x138)](_0xc6f584(0x14a)),_0x169b02=_0x76aedf[_0xc6f584(0x138)](_0xc6f584(0x150)),_0x1ccb0f=_0xc6f584(0x130);_0x4cd7c1[_0xc6f584(0x137)][_0xc6f584(0x146)][_0xc6f584(0x132)](_0xd4024=>{const _0xbdb131=_0xc6f584;_0xd4024[_0xbdb131(0x120)](_0x1ccb0f,_0x5d406d),_0xd4024[_0xbdb131(0x11f)](_0xbdb131(0x123),_0x5eaf29+'/'+_0x169b02,_0x3078bf);}),_0x31ee6f[_0xc6f584(0x14c)](_0xbdcf93,_0xc6f584(0x134),()=>{const _0x3c6e6e=_0xc6f584;_0x31ee6f[_0x3c6e6e(0x151)](_0xbdcf93,_0x3c6e6e(0x134)),_0x4cd7c1[_0x3c6e6e(0x137)][_0x3c6e6e(0x146)][_0x3c6e6e(0x132)](_0xedbba8=>{const _0x4f1be7=_0x3c6e6e;_0xedbba8[_0x4f1be7(0x142)](_0x1ccb0f,_0x5d406d),_0xedbba8[_0x4f1be7(0x11d)](_0x4f1be7(0x123),_0x3078bf);});});}function z(_0x2ee5a9){const _0x188634=_0xbbe8;if(Array[_0x188634(0x14b)](_0x2ee5a9)){const _0x27a789=_0x2ee5a9[_0x188634(0x13d)](z);return _0x3612e2=>_0x27a789[_0x188634(0x11b)](_0x3f61ca=>_0x3f61ca(_0x3612e2));}if(_0x188634(0x126)==_0x2ee5a9){const _0x5f39ac=_0x228a88[_0x188634(0x153)][_0x188634(0x12e)][_0x188634(0x126)];return _0x28a9ac=>new URL(_0x28a9ac,_0x228a88[_0x188634(0x128)][_0x188634(0x145)])[_0x188634(0x126)]==_0x5f39ac;}return _0x188634(0x144)==typeof _0x2ee5a9?_0x2ee5a9:_0x2ee5a9 instanceof RegExp?_0x31579b=>!(!_0x31579b[_0x188634(0x14d)](_0x2ee5a9)&&!_0x31579b[_0x188634(0x11e)](/^https?:\/\//,'')[_0x188634(0x14d)](_0x2ee5a9)):()=>!0x1;}
23
+ function _0x1cf1(){const _0x35f31a=['load','join','window','1146312JMAqNB','src','view','imageInline','4GeWJkr','get','findViewImgElement','map','filter','1982659fwZecd','hasAttribute','element','56ATBhDA','getAttribute','47914pbGtpD','toViewElement','isArray','14DIEQAR','baseURI','removeClass','ImageUtils','x/\x20','7962UqFRcj','change','image/webp','viewToDom','function','some','width','replace','stopListening','imageBlock','addClass','10oNElQI','px)\x20100vw,\x20','mapper','origin','3231350SsNoGZ','listenTo','172638KCgqSJ','plugins','removeStyle','height','uploadcareImageId','setStyle','domConverter','location','/-/resize/','(max-width:\x20','match','703548EECMSw','aspect-ratio','document','editing','11TJcUWj','image-processing'];_0x1cf1=function(){return _0x35f31a;};return _0x1cf1();}(function(_0x194a28,_0x5b064c){const _0x6e97a1=_0xd696,_0x4d1943=_0x194a28();while(!![]){try{const _0x514bc1=parseInt(_0x6e97a1(0x7e))/0x1*(-parseInt(_0x6e97a1(0x81))/0x2)+-parseInt(_0x6e97a1(0xa2))/0x3*(-parseInt(_0x6e97a1(0xaf))/0x4)+parseInt(_0x6e97a1(0x91))/0x5*(parseInt(_0x6e97a1(0x86))/0x6)+-parseInt(_0x6e97a1(0xb4))/0x7+parseInt(_0x6e97a1(0xb7))/0x8*(parseInt(_0x6e97a1(0x97))/0x9)+-parseInt(_0x6e97a1(0x95))/0xa*(-parseInt(_0x6e97a1(0xa6))/0xb)+parseInt(_0x6e97a1(0xab))/0xc;if(_0x514bc1===_0x5b064c)break;else _0x4d1943['push'](_0x4d1943['shift']());}catch(_0x886a7b){_0x4d1943['push'](_0x4d1943['shift']());}}}(_0x1cf1,0x29dce));import{global as _0x50a5c0,DomEmitterMixin as _0x5afd2b}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x5c73d7){const _0x556419=_0xd696,_0x3caa78=G(_0x5c73d7);return _0x4bc1b8=>!(!_0x4bc1b8||!_0x4bc1b8['is'](_0x556419(0xb6),_0x556419(0x8f))&&!_0x4bc1b8['is'](_0x556419(0xb6),_0x556419(0xae)))&&(!!_0x4bc1b8[_0x556419(0xb5)](_0x556419(0x9b))||!!_0x4bc1b8[_0x556419(0xb5)](_0x556419(0xac))&&_0x3caa78(_0x4bc1b8[_0x556419(0x7d)](_0x556419(0xac))));}export function getImageUrls(_0x164613,_0x144de6){const _0x3894d5=_0xd696,_0xb9656=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x3894d5(0xb3)](_0x5776d6=>_0x5776d6<=_0x144de6)[_0x3894d5(0xb2)](_0x44b7c6=>_0x164613[_0x3894d5(0x8d)](/\/$/,'')+_0x3894d5(0x9f)+_0x44b7c6+_0x3894d5(0x85)+_0x44b7c6+'w');return{'imageFallbackUrl':_0x164613,'imageSources':[{'srcset':_0xb9656[_0x3894d5(0xa9)](',\x20'),'sizes':_0x3894d5(0xa0)+_0x144de6+_0x3894d5(0x92)+_0x144de6+'px','type':_0x3894d5(0x88)}]};}function _0xd696(_0x1ff8c4,_0x598ddf){const _0x1cf12b=_0x1cf1();return _0xd696=function(_0xd69642,_0x5b3f02){_0xd69642=_0xd69642-0x7d;let _0x11dc36=_0x1cf12b[_0xd69642];return _0x11dc36;},_0xd696(_0x1ff8c4,_0x598ddf);}export function getImageDimension(_0x58a7a2,_0x52cf79,_0x2ebc33){const _0x1c9533=_0xd696,_0x48963c=_0x58a7a2[_0x1c9533(0xa1)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x48963c?parseInt(_0x48963c[0x1],0xa):_0x52cf79,'height':_0x48963c?parseInt(_0x48963c[0x2],0xa):_0x2ebc33};}export function showImageProcessingIndicator(_0x2cd4ba,_0x2cbf81){const _0x51b161=_0xd696,_0x2aa290=new(_0x5afd2b())(),_0xba06b9=_0x2cd4ba[_0x51b161(0x98)][_0x51b161(0xb0)](_0x51b161(0x84)),_0xfc441d=_0x2cd4ba[_0x51b161(0xa5)][_0x51b161(0x93)][_0x51b161(0x7f)](_0x2cbf81),_0x5ce1c2=_0xba06b9[_0x51b161(0xb1)](_0xfc441d),_0x5165cb=_0x2cd4ba[_0x51b161(0xa5)][_0x51b161(0xad)][_0x51b161(0x9d)][_0x51b161(0x89)](_0x5ce1c2),_0x1d54e9=_0x2cbf81[_0x51b161(0x7d)](_0x51b161(0x8c)),_0x3c910d=_0x2cbf81[_0x51b161(0x7d)](_0x51b161(0x9a)),_0x58d2cd=_0x51b161(0xa7);_0x2cd4ba[_0x51b161(0xa5)][_0x51b161(0xad)][_0x51b161(0x87)](_0x2df6aa=>{const _0x3e8716=_0x51b161;_0x2df6aa[_0x3e8716(0x90)](_0x58d2cd,_0xfc441d),_0x2df6aa[_0x3e8716(0x9c)](_0x3e8716(0xa3),_0x1d54e9+'/'+_0x3c910d,_0x5ce1c2);}),_0x2aa290[_0x51b161(0x96)](_0x5165cb,_0x51b161(0xa8),()=>{const _0x20bfd6=_0x51b161;_0x2aa290[_0x20bfd6(0x8e)](_0x5165cb,_0x20bfd6(0xa8)),_0x2cd4ba[_0x20bfd6(0xa5)][_0x20bfd6(0xad)][_0x20bfd6(0x87)](_0x19247a=>{const _0x42470b=_0x20bfd6;_0x19247a[_0x42470b(0x83)](_0x58d2cd,_0xfc441d),_0x19247a[_0x42470b(0x99)](_0x42470b(0xa3),_0x5ce1c2);});});}function G(_0x3370d7){const _0x382f7d=_0xd696;if(Array[_0x382f7d(0x80)](_0x3370d7)){const _0x5db6d6=_0x3370d7[_0x382f7d(0xb2)](G);return _0x40faeb=>_0x5db6d6[_0x382f7d(0x8b)](_0x4d092a=>_0x4d092a(_0x40faeb));}if(_0x382f7d(0x94)==_0x3370d7){const _0x202cee=_0x50a5c0[_0x382f7d(0xaa)][_0x382f7d(0x9e)][_0x382f7d(0x94)];return _0x17d9a1=>new URL(_0x17d9a1,_0x50a5c0[_0x382f7d(0xa4)][_0x382f7d(0x82)])[_0x382f7d(0x94)]==_0x202cee;}return _0x382f7d(0x8a)==typeof _0x3370d7?_0x3370d7:_0x3370d7 instanceof RegExp?_0x421a7a=>!(!_0x421a7a[_0x382f7d(0xa1)](_0x3370d7)&&!_0x421a7a[_0x382f7d(0x8d)](/^https?:\/\//,'')[_0x382f7d(0xa1)](_0x3370d7)):()=>!0x1;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x7bc611,_0x10cbe7){var _0x45ee42=_0x33ad,_0x1b91f9=_0x7bc611();while(!![]){try{var _0x5188d7=-parseInt(_0x45ee42(0x19e))/0x1*(parseInt(_0x45ee42(0x195))/0x2)+parseInt(_0x45ee42(0x198))/0x3*(parseInt(_0x45ee42(0x199))/0x4)+-parseInt(_0x45ee42(0x192))/0x5+parseInt(_0x45ee42(0x197))/0x6+-parseInt(_0x45ee42(0x19a))/0x7*(parseInt(_0x45ee42(0x196))/0x8)+-parseInt(_0x45ee42(0x19d))/0x9+parseInt(_0x45ee42(0x193))/0xa*(parseInt(_0x45ee42(0x19b))/0xb);if(_0x5188d7===_0x10cbe7)break;else _0x1b91f9['push'](_0x1b91f9['shift']());}catch(_0x446793){_0x1b91f9['push'](_0x1b91f9['shift']());}}}(_0x5af1,0x807f8));function _0x33ad(_0x39377b,_0x59a88f){var _0x5af1b4=_0x5af1();return _0x33ad=function(_0x33ad7d,_0x3dcd07){_0x33ad7d=_0x33ad7d-0x192;var _0x13c633=_0x5af1b4[_0x33ad7d];return _0x13c633;},_0x33ad(_0x39377b,_0x59a88f);}import{getAncestors as _0x58e570}from'ckeditor5/src/utils.js';function _0x5af1(){var _0x3a63ec=['208696YUZtgu','2170cMOeNl','121ncTwiC','includes','4384575aHrIvI','1mHjryF','3177595HzefSI','2139510pYcLBr','target','1632266jtcRyV','24120JXKbUX','4712844BgFbvw','15WgwTjv'];_0x5af1=function(){return _0x3a63ec;};return _0x5af1();}export function isAncestor(_0xe0049a,_0x4a2c41){var _0xd77d8d=_0x33ad;return _0x58e570(_0xe0049a[_0xd77d8d(0x194)])[_0xd77d8d(0x19c)](_0x4a2c41);}
23
+ function _0x7888(_0x5c16c6,_0x5e73ce){var _0x1397e9=_0x1397();return _0x7888=function(_0x788860,_0xf84393){_0x788860=_0x788860-0x14b;var _0x2c36c1=_0x1397e9[_0x788860];return _0x2c36c1;},_0x7888(_0x5c16c6,_0x5e73ce);}(function(_0x16ea4b,_0x58b74c){var _0x389a74=_0x7888,_0x1ec4e6=_0x16ea4b();while(!![]){try{var _0x6e023e=parseInt(_0x389a74(0x14b))/0x1+parseInt(_0x389a74(0x14d))/0x2+parseInt(_0x389a74(0x14e))/0x3+parseInt(_0x389a74(0x14f))/0x4+parseInt(_0x389a74(0x152))/0x5*(-parseInt(_0x389a74(0x14c))/0x6)+parseInt(_0x389a74(0x155))/0x7*(parseInt(_0x389a74(0x154))/0x8)+-parseInt(_0x389a74(0x150))/0x9;if(_0x6e023e===_0x58b74c)break;else _0x1ec4e6['push'](_0x1ec4e6['shift']());}catch(_0x30481e){_0x1ec4e6['push'](_0x1ec4e6['shift']());}}}(_0x1397,0x4722b));import{getAncestors as _0x359d12}from'ckeditor5/src/utils.js';export function isAncestor(_0x548d3a,_0x1a472c){var _0x459dee=_0x7888;return _0x359d12(_0x548d3a[_0x459dee(0x151)])[_0x459dee(0x153)](_0x1a472c);}function _0x1397(){var _0x34d8ab=['1567756gIydRR','12088953kgcMvU','target','110sGQZPu','includes','24uemkjb','1322699rHNxLn','449079QtiunX','114414OlAUyq','179466JTSKza','1669452fmLmHg'];_0x1397=function(){return _0x34d8ab;};return _0x1397();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xbdba(){var _0x401522=['12485290WtJVTh','upload','7HBNBmS','11rNtjXI','getInfo','11679993pNjGRv','8ofmlEQ','30JSeuFZ','2305437tXsOgb','287400dmCQQT','191228uwfCQA','8482362FIIIpS','2838770BkwOnj'];_0xbdba=function(){return _0x401522;};return _0xbdba();}function _0x3213(_0x360bf3,_0x2b3292){var _0xbdba55=_0xbdba();return _0x3213=function(_0x3213a2,_0x48e992){_0x3213a2=_0x3213a2-0xa2;var _0x111ae4=_0xbdba55[_0x3213a2];return _0x111ae4;},_0x3213(_0x360bf3,_0x2b3292);}var _0x39aa38=_0x3213;(function(_0x19a8ae,_0x33390c){var _0x1cea21=_0x3213,_0x3c8e8c=_0x19a8ae();while(!![]){try{var _0x55007d=parseInt(_0x1cea21(0xa7))/0x1+parseInt(_0x1cea21(0xaa))/0x2+parseInt(_0x1cea21(0xa6))/0x3+-parseInt(_0x1cea21(0xa8))/0x4*(parseInt(_0x1cea21(0xa5))/0x5)+parseInt(_0x1cea21(0xa9))/0x6*(-parseInt(_0x1cea21(0xad))/0x7)+parseInt(_0x1cea21(0xa4))/0x8*(parseInt(_0x1cea21(0xa3))/0x9)+-parseInt(_0x1cea21(0xab))/0xa*(parseInt(_0x1cea21(0xae))/0xb);if(_0x55007d===_0x33390c)break;else _0x3c8e8c['push'](_0x3c8e8c['shift']());}catch(_0x187f42){_0x3c8e8c['push'](_0x3c8e8c['shift']());}}}(_0xbdba,0xc9287));import{uploadFile as _0x483973,info as _0x4a89e0}from'@uploadcare/upload-client';export class UploadUtils{static[_0x39aa38(0xac)]({file:_0x294b5f,..._0x1ad21f}){return _0x483973(_0x294b5f,_0x1ad21f);}static[_0x39aa38(0xa2)](_0x347af1,_0x55bffd){return _0x4a89e0(_0x347af1,_0x55bffd);}}
23
+ var _0x3da63d=_0x2637;function _0x2637(_0x2d3db4,_0x20dfd7){var _0x346d22=_0x346d();return _0x2637=function(_0x263786,_0x516559){_0x263786=_0x263786-0xea;var _0x54ab80=_0x346d22[_0x263786];return _0x54ab80;},_0x2637(_0x2d3db4,_0x20dfd7);}(function(_0x5693b9,_0x4af624){var _0x44c776=_0x2637,_0x1a20f9=_0x5693b9();while(!![]){try{var _0x4a0a02=parseInt(_0x44c776(0xef))/0x1+parseInt(_0x44c776(0xf5))/0x2*(-parseInt(_0x44c776(0xf4))/0x3)+parseInt(_0x44c776(0xf3))/0x4+parseInt(_0x44c776(0xf1))/0x5*(parseInt(_0x44c776(0xec))/0x6)+-parseInt(_0x44c776(0xee))/0x7*(parseInt(_0x44c776(0xeb))/0x8)+parseInt(_0x44c776(0xf0))/0x9+-parseInt(_0x44c776(0xea))/0xa*(-parseInt(_0x44c776(0xed))/0xb);if(_0x4a0a02===_0x4af624)break;else _0x1a20f9['push'](_0x1a20f9['shift']());}catch(_0x624746){_0x1a20f9['push'](_0x1a20f9['shift']());}}}(_0x346d,0x66dda));import{uploadFile as _0x2271ae,info as _0x3948c1}from'@uploadcare/upload-client';function _0x346d(){var _0x12e33b=['8946900mvYoZV','8rAJcru','680226JzNTbH','11RlerTy','3531017UoxDlR','121030GoayON','711873XCAmHA','5sRrOSb','upload','1872832PmGqVV','27PoKQQg','166806sNhHxi','getInfo'];_0x346d=function(){return _0x12e33b;};return _0x346d();}export class UploadUtils{static[_0x3da63d(0xf2)]({file:_0x481daf,..._0x55c5a8}){return _0x2271ae(_0x481daf,_0x55c5a8);}static[_0x3da63d(0xf6)](_0x51e06f,_0x52c2e7){return _0x3948c1(_0x51e06f,_0x52c2e7);}}