@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251122.0 → 0.0.0-nightly-20251124.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 _0x2a0412,ObservableMixin as _0x2c8185}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4c46fa}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x269afb}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4c73e5}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x5ee73b}from'../../utils/uploadutils.js';import{getImageUrls as _0x39cd4d,getImageDimension as _0x86d473}from'../../utils/editingutils.js';import{isAncestor as _0x132c6d}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x2c8185(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3a69ee,_0x2384e0,_0x87e343){super(),this['_editor']=_0x3a69ee,this['_dialog']=_0x2384e0,this['_imageElement']=_0x87e343,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 _0x1b3be0=this['_imageElement'],_0x2e23a8=_0x1b3be0['getAttribute']('uploadcareImageId'),_0x5d84aa=_0x1b3be0['getAttribute']('src');if(_0x2e23a8)await this['_loadImageInfo'](_0x2e23a8,_0x5d84aa);else{if(this['_imageCache']['has'](_0x5d84aa)){const _0x1d6d13=this['_imageCache']['get'](_0x5d84aa);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1d6d13['url'],this['imageDimension']=_0x1d6d13['dimension'],this['imageId']=_0x1d6d13['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4f47da}=this['_editor'],t=_0x4f47da['t'],_0x5d093d=new _0x4c73e5(_0x4f47da,this['imageStatus'],this['_attributes']);_0x5d093d['bind']('status')['to'](this,'imageStatus'),_0x5d093d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5d093d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5d093d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5d093d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x269afb,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5d093d,'position':_0x4c46fa['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5d093d['focus']();},'onHide':()=>{_0x5d093d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5aee81=>!_0x132c6d(_0x5aee81,_0x5d093d['element'])}});}['_loadImageInfo'](_0x2fb402,_0x168808){return _0x5ee73b['getInfo'](_0x2fb402,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x37e72d=>{const {width:_0x200889,height:_0x4434c6}=_0x37e72d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x168808,this['imageDimension']={'width':_0x200889,'height':_0x4434c6},this['imageId']=_0x2fb402;})['catch'](_0x168b0a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x168b0a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x175b9f,_0x1e012a){return this['_getImageAsFile'](_0x175b9f)['then'](_0x441172=>_0x5ee73b['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':_0x1e012a['signal'],'file':_0x441172,'onProgress':_0x1cdd75=>{_0x1cdd75&&_0x1cdd75['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1cdd75['value']));}}))['then'](_0x5073f0=>{const {width:_0xc8ce7c,height:_0x1a66bd}=_0x5073f0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5073f0['cdnUrl'],this['imageDimension']={'width':_0xc8ce7c,'height':_0x1a66bd},this['imageId']=_0x5073f0['uuid'],this['imageUploadProgress']=null;const _0x27b04c=_0x175b9f['getAttribute']('src');this['_imageCache']['set'](_0x27b04c,{'id':_0x5073f0['uuid'],'url':_0x5073f0['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2e54ca=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2e54ca['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2422b7,_0x4664e0){_0x2422b7['on']('apply',(_0x3835e5,_0x4b733d)=>{this['_replaceImage'](_0x4664e0,_0x4b733d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2422b7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2422b7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x12f4a6,_0x58ff69,_0x46fbc8){const _0x4a60f2=this['_editor'],{width:_0x48a222,height:_0x12acb5}=_0x86d473(_0x58ff69,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x635637,imageSources:_0x543632}=_0x39cd4d(_0x58ff69,_0x48a222);_0x4a60f2['model']['change'](_0x1c2535=>{if('$graveyard'===_0x12f4a6['root']['rootName']){_0x4a60f2['execute']('insertImage',{'imageType':_0x12f4a6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x12f4a6['getAttributes']()),'uploadcareImageId':_0x46fbc8,'src':_0x635637,'sources':_0x543632,'width':_0x48a222,'height':_0x12acb5}});const _0x53686b=_0x12f4a6['getChildren']();_0x12f4a6=_0x4a60f2['model']['document']['selection']['getSelectedElement']();for(const _0x1c2825 of _0x53686b)_0x1c2535['append'](_0x1c2535['cloneElement'](_0x1c2825),_0x12f4a6);}else _0x1c2535['setSelection'](_0x12f4a6,'on'),_0x4a60f2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x12f4a6['getAttributes']()),'uploadcareImageId':_0x46fbc8,'src':_0x635637,'sources':_0x543632,'width':_0x48a222,'height':_0x12acb5},_0x12f4a6);_0x1c2535['setSelection'](_0x12f4a6,'on');});}async['_getImageAsFile'](_0x35e609){const _0x122b70=_0x2a0412['window'],_0x3d8444=_0x2a0412['document']['location']['href'],_0xb9ad50=new _0x122b70['URL'](_0x35e609['getAttribute']('src'),_0x3d8444);if('data:'===_0xb9ad50['protocol']){const _0x31e9ee=_0xb9ad50['href']['split'](','),_0x295509=_0x31e9ee[0x0]['match'](/:(.*?);/)[0x1],_0x377212=_0x295509['split']('/')[0x1],_0x82782c=_0x122b70['atob'](_0x31e9ee[_0x31e9ee['length']-0x1]);let _0x392537=_0x82782c['length'];const _0x409284=new _0x122b70['Uint8Array'](_0x392537);for(;_0x392537--;)_0x409284[_0x392537]=_0x82782c['charCodeAt'](_0x392537);return new _0x122b70['File']([_0x409284],'image.'+_0x377212,{'type':_0x295509});}const _0x3db12f=_0xb9ad50['href']['split']('/'),_0x5bae66=_0x3db12f[_0x3db12f['length']-0x1],_0x3b3d06=_0x5bae66['split']('.')[0x1];return _0x122b70['fetch'](_0xb9ad50['href'])['then'](_0x2d4ca3=>_0x2d4ca3['clone']()['blob']())['then'](_0x2f0e5a=>new _0x122b70['File']([_0x2f0e5a],_0x5bae66,{'type':'image/'+_0x3b3d06}));}}
23
+ import{global as _0x4fd594,ObservableMixin as _0x43cb18}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x244607}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2fcb43}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x3fcc54}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x52c332}from'../../utils/uploadutils.js';import{getImageUrls as _0x47ad30,getImageDimension as _0x2182cf}from'../../utils/editingutils.js';import{isAncestor as _0x1d5017}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x43cb18(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x40d170,_0x4d0bc9,_0x1a3162){super(),this['_editor']=_0x40d170,this['_dialog']=_0x4d0bc9,this['_imageElement']=_0x1a3162,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 _0x1fe26f=this['_imageElement'],_0x2e3cf1=_0x1fe26f['getAttribute']('uploadcareImageId'),_0x5369ae=_0x1fe26f['getAttribute']('src');if(_0x2e3cf1)await this['_loadImageInfo'](_0x2e3cf1,_0x5369ae);else{if(this['_imageCache']['has'](_0x5369ae)){const _0x45db58=this['_imageCache']['get'](_0x5369ae);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x45db58['url'],this['imageDimension']=_0x45db58['dimension'],this['imageId']=_0x45db58['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x570fc1}=this['_editor'],t=_0x570fc1['t'],_0xda6dc5=new _0x3fcc54(_0x570fc1,this['imageStatus'],this['_attributes']);_0xda6dc5['bind']('status')['to'](this,'imageStatus'),_0xda6dc5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xda6dc5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xda6dc5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xda6dc5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2fcb43,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xda6dc5,'position':_0x244607['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xda6dc5['focus']();},'onHide':()=>{_0xda6dc5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5841cd=>!_0x1d5017(_0x5841cd,_0xda6dc5['element'])}});}['_loadImageInfo'](_0x23f517,_0x54bb87){return _0x52c332['getInfo'](_0x23f517,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x556022=>{const {width:_0x3f5a47,height:_0x2996d2}=_0x556022['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x54bb87,this['imageDimension']={'width':_0x3f5a47,'height':_0x2996d2},this['imageId']=_0x23f517;})['catch'](_0x50b854=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x50b854['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3000c7,_0x533c99){return this['_getImageAsFile'](_0x3000c7)['then'](_0xcf2b3=>_0x52c332['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':_0x533c99['signal'],'file':_0xcf2b3,'onProgress':_0x2d85e5=>{_0x2d85e5&&_0x2d85e5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2d85e5['value']));}}))['then'](_0x26474a=>{const {width:_0x25dfb1,height:_0x27f11b}=_0x26474a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x26474a['cdnUrl'],this['imageDimension']={'width':_0x25dfb1,'height':_0x27f11b},this['imageId']=_0x26474a['uuid'],this['imageUploadProgress']=null;const _0x3c80a3=_0x3000c7['getAttribute']('src');this['_imageCache']['set'](_0x3c80a3,{'id':_0x26474a['uuid'],'url':_0x26474a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x461fb1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x461fb1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x47bed3,_0x353e4c){_0x47bed3['on']('apply',(_0x2ddfc,_0x151444)=>{this['_replaceImage'](_0x353e4c,_0x151444['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x47bed3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x47bed3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x30c474,_0x59084e,_0x2fdaf8){const _0x9aab63=this['_editor'],{width:_0xef1726,height:_0xb6746f}=_0x2182cf(_0x59084e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xe9547f,imageSources:_0x5a87c6}=_0x47ad30(_0x59084e,_0xef1726);_0x9aab63['model']['change'](_0x1f462a=>{if('$graveyard'===_0x30c474['root']['rootName']){_0x9aab63['execute']('insertImage',{'imageType':_0x30c474['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x30c474['getAttributes']()),'uploadcareImageId':_0x2fdaf8,'src':_0xe9547f,'sources':_0x5a87c6,'width':_0xef1726,'height':_0xb6746f}});const _0x3a2016=_0x30c474['getChildren']();_0x30c474=_0x9aab63['model']['document']['selection']['getSelectedElement']();for(const _0x51616e of _0x3a2016)_0x1f462a['append'](_0x1f462a['cloneElement'](_0x51616e),_0x30c474);}else _0x1f462a['setSelection'](_0x30c474,'on'),_0x9aab63['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x30c474['getAttributes']()),'uploadcareImageId':_0x2fdaf8,'src':_0xe9547f,'sources':_0x5a87c6,'width':_0xef1726,'height':_0xb6746f},_0x30c474);_0x1f462a['setSelection'](_0x30c474,'on');});}async['_getImageAsFile'](_0x53217e){const _0x4641ac=_0x4fd594['window'],_0x5f40af=_0x4fd594['document']['location']['href'],_0x511fe8=new _0x4641ac['URL'](_0x53217e['getAttribute']('src'),_0x5f40af);if('data:'===_0x511fe8['protocol']){const _0xf8d38c=_0x511fe8['href']['split'](','),_0x1324d1=_0xf8d38c[0x0]['match'](/:(.*?);/)[0x1],_0x1c2556=_0x1324d1['split']('/')[0x1],_0x4202e1=_0x4641ac['atob'](_0xf8d38c[_0xf8d38c['length']-0x1]);let _0x7c8448=_0x4202e1['length'];const _0x30fef2=new _0x4641ac['Uint8Array'](_0x7c8448);for(;_0x7c8448--;)_0x30fef2[_0x7c8448]=_0x4202e1['charCodeAt'](_0x7c8448);return new _0x4641ac['File']([_0x30fef2],'image.'+_0x1c2556,{'type':_0x1324d1});}const _0x558bbb=_0x511fe8['href']['split']('/'),_0x3b530f=_0x558bbb[_0x558bbb['length']-0x1],_0x54292c=_0x3b530f['split']('.')[0x1];return _0x4641ac['fetch'](_0x511fe8['href'])['then'](_0x5b42ac=>_0x5b42ac['clone']()['blob']())['then'](_0x433b9d=>new _0x4641ac['File']([_0x433b9d],_0x3b530f,{'type':'image/'+_0x54292c}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3795(){const _0x11984a=['26196iMlCbP','image-edit','524130SJRpiA','436469zlNjiZ','4355135dHOVSP','2YDjSkH','set','uc-light','imageSrc','ck-uploadcare-theme','198029SntKMK','840oEleQE','uc-cloud-image-editor','setTemplate','68457AGUOIG','413824yqoDKp','144EDxzcK','12ZNCIku','6yIXCTL','4169mNFsVr','bindTemplate','14GjxxAO'];_0x3795=function(){return _0x11984a;};return _0x3795();}(function(_0x5a6064,_0x1ba622){const _0x4083ac=_0xb568,_0x2d0f7e=_0x5a6064();while(!![]){try{const _0x3640df=parseInt(_0x4083ac(0x1a3))/0x1*(parseInt(_0x4083ac(0x1a5))/0x2)+parseInt(_0x4083ac(0x198))/0x3*(-parseInt(_0x4083ac(0x19b))/0x4)+-parseInt(_0x4083ac(0x1a4))/0x5*(-parseInt(_0x4083ac(0x19c))/0x6)+parseInt(_0x4083ac(0x19f))/0x7*(parseInt(_0x4083ac(0x199))/0x8)+-parseInt(_0x4083ac(0x19a))/0x9*(-parseInt(_0x4083ac(0x1a2))/0xa)+-parseInt(_0x4083ac(0x19d))/0xb*(parseInt(_0x4083ac(0x1a0))/0xc)+-parseInt(_0x4083ac(0x1aa))/0xd*(parseInt(_0x4083ac(0x1ab))/0xe);if(_0x3640df===_0x1ba622)break;else _0x2d0f7e['push'](_0x2d0f7e['shift']());}catch(_0x23c4e3){_0x2d0f7e['push'](_0x2d0f7e['shift']());}}}(_0x3795,0x6b5d6));import{View as _0x38cef8}from'ckeditor5/src/ui.js';function _0xb568(_0x4db589,_0x27a89c){const _0x3795c9=_0x3795();return _0xb568=function(_0xb568ad,_0x2ec944){_0xb568ad=_0xb568ad-0x198;let _0x2c4a7f=_0x3795c9[_0xb568ad];return _0x2c4a7f;},_0xb568(_0x4db589,_0x27a89c);}export class UploadcareImageEditFormEditingView extends _0x38cef8{constructor(_0x5672fd,_0x5e0713){const _0x287aa3=_0xb568;super(_0x5672fd);const _0x369e06=this[_0x287aa3(0x19e)];this[_0x287aa3(0x1a6)](_0x287aa3(0x1a8),''),this[_0x287aa3(0x1ad)]({'tag':_0x287aa3(0x1ac),'attributes':{..._0x5e0713,'class':[_0x287aa3(0x1a7),_0x287aa3(0x1a9)],'ctx-name':_0x287aa3(0x1a1),'cdn-url':_0x369e06['to'](_0x287aa3(0x1a8))}});}}
23
+ (function(_0x499619,_0x145bc7){const _0x5226b9=_0x50fd,_0x316e1e=_0x499619();while(!![]){try{const _0x1d74ed=parseInt(_0x5226b9(0x18a))/0x1*(parseInt(_0x5226b9(0x189))/0x2)+-parseInt(_0x5226b9(0x181))/0x3*(-parseInt(_0x5226b9(0x18c))/0x4)+-parseInt(_0x5226b9(0x182))/0x5+parseInt(_0x5226b9(0x185))/0x6+parseInt(_0x5226b9(0x17d))/0x7*(parseInt(_0x5226b9(0x188))/0x8)+-parseInt(_0x5226b9(0x187))/0x9*(parseInt(_0x5226b9(0x18e))/0xa)+parseInt(_0x5226b9(0x18b))/0xb;if(_0x1d74ed===_0x145bc7)break;else _0x316e1e['push'](_0x316e1e['shift']());}catch(_0x2528bd){_0x316e1e['push'](_0x316e1e['shift']());}}}(_0x5838,0xbe4b3));import{View as _0x420699}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x420699{constructor(_0x2823e1,_0x289133){const _0x22bad7=_0x50fd;super(_0x2823e1);const _0x53b104=this[_0x22bad7(0x186)];this[_0x22bad7(0x17c)](_0x22bad7(0x17f),''),this[_0x22bad7(0x180)]({'tag':_0x22bad7(0x183),'attributes':{..._0x289133,'class':[_0x22bad7(0x184),_0x22bad7(0x18d)],'ctx-name':_0x22bad7(0x17e),'cdn-url':_0x53b104['to'](_0x22bad7(0x17f))}});}}function _0x50fd(_0x30dcb6,_0x497a4a){const _0x583890=_0x5838();return _0x50fd=function(_0x50fdc2,_0x7399ae){_0x50fdc2=_0x50fdc2-0x17c;let _0x22cdb9=_0x583890[_0x50fdc2];return _0x22cdb9;},_0x50fd(_0x30dcb6,_0x497a4a);}function _0x5838(){const _0x253569=['21945462foYIVx','935944SsyQXd','ck-uploadcare-theme','85970UQWQTq','set','147882PEniQu','image-edit','imageSrc','setTemplate','15XoYDRh','7667720pTLbaJ','uc-cloud-image-editor','uc-light','990918QQqmOE','bindTemplate','1269KCORmp','56YPgWMx','31438DGJluE','3TMkafA'];_0x5838=function(){return _0x253569;};return _0x5838();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x4d1836}from'ckeditor5/src/icons.js';import{ButtonView as _0x421073,IconView as _0x1c4aba,View as _0x1ec44a}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x1ec44a{constructor(_0x30f85b){super(_0x30f85b);const t=_0x30f85b['t'];this['set']('errorType',null);const _0x44656c=new _0x421073(_0x30f85b);_0x44656c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x44656c['withText']=!0x0,_0x44656c['class']='ck-button-action',_0x44656c['on']('execute',()=>{this['fire']('retry');}),_0x44656c['bind']('isVisible')['to'](this,'errorType',_0x4c4812=>'NotFound'!==_0x4c4812);const _0x31c105=new _0x1c4aba();_0x31c105['content']=_0x4d1836,_0x31c105['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xb44d16=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':[_0x31c105,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xb44d16['to']('errorType',_0x26b60e=>t('NotFound'!==_0x26b60e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x44656c]},{'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 _0x183ad2}from'ckeditor5/src/icons.js';import{ButtonView as _0x2bae07,IconView as _0x8b81b9,View as _0x3b1cad}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x3b1cad{constructor(_0x2e47b6){super(_0x2e47b6);const t=_0x2e47b6['t'];this['set']('errorType',null);const _0x49cb34=new _0x2bae07(_0x2e47b6);_0x49cb34['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x49cb34['withText']=!0x0,_0x49cb34['class']='ck-button-action',_0x49cb34['on']('execute',()=>{this['fire']('retry');}),_0x49cb34['bind']('isVisible')['to'](this,'errorType',_0xbd9664=>'NotFound'!==_0xbd9664);const _0x226a5a=new _0x8b81b9();_0x226a5a['content']=_0x183ad2,_0x226a5a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x30ba47=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':[_0x226a5a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x30ba47['to']('errorType',_0x3b818f=>t('NotFound'!==_0x3b818f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x49cb34]},{'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 _0x19185a,View as _0x37c5c6}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x37c5c6{constructor(_0x1e17a9){super(_0x1e17a9);const t=_0x1e17a9['t'],_0x16e4cb=this['bindTemplate'],_0x2f0f61=new _0x19185a();_0x2f0f61['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':[_0x2f0f61,{'text':_0x16e4cb['to']('imageUploadProgress',_0x24e939=>t('Loading\x20image...')+'\x20('+(_0x24e939||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 _0x13874e,View as _0x28be0b}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x28be0b{constructor(_0x372628){super(_0x372628);const t=_0x372628['t'],_0x38ed37=this['bindTemplate'],_0xb3ce94=new _0x13874e();_0xb3ce94['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':[_0xb3ce94,{'text':_0x38ed37['to']('imageUploadProgress',_0x438371=>t('Loading\x20image...')+'\x20('+(_0x438371||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 _0x124c40=_0xdec2;(function(_0x3309e5,_0x3a4611){const _0x2ef983=_0xdec2,_0xb5fd67=_0x3309e5();while(!![]){try{const _0x1e1550=-parseInt(_0x2ef983(0xcb))/0x1+-parseInt(_0x2ef983(0xac))/0x2+-parseInt(_0x2ef983(0xc7))/0x3*(-parseInt(_0x2ef983(0xcd))/0x4)+-parseInt(_0x2ef983(0xab))/0x5+-parseInt(_0x2ef983(0x9e))/0x6+-parseInt(_0x2ef983(0xa5))/0x7+parseInt(_0x2ef983(0xc8))/0x8;if(_0x1e1550===_0x3a4611)break;else _0xb5fd67['push'](_0xb5fd67['shift']());}catch(_0x331eae){_0xb5fd67['push'](_0xb5fd67['shift']());}}}(_0xde3e,0x7e4b9));import{View as _0x5d32f5}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x596e0a}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x6f4559}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x58629}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x48b37f}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0xdec2(_0x348d1e,_0x43866c){const _0xde3e66=_0xde3e();return _0xdec2=function(_0xdec22,_0x13bcd1){_0xdec22=_0xdec22-0x9c;let _0x2bd205=_0xde3e66[_0xdec22];return _0x2bd205;},_0xdec2(_0x348d1e,_0x43866c);}function _0xde3e(){const _0x81de2=['detail','299836HOCItP','ck-reset_all-excluded','toLowerCase','ready','nodeName','_focusableView','5280798DAJbat','render','error','clear','setTemplate','target','_errorView','4592567kANrLe','addEventListener','add','getFocusableElement','status','div','1965330CoMMeI','388446elBosA','uc-cloud-image-editor','querySelector','addedNodes','_loadingView','length','element','uploading','_addErrorViewListeners','change:status','_setView','retry','apply','filter','set','createCollection','focus','fire','observe','_items','addMany','_addUploadcareImageEditorListeners','cdnUrl','cancel','disconnect','once','ck-uploadcare-form','36lBrYpc','20728248ydGiqj','_editingView','_waitForImageEditorComponent','849731RtMVmD'];_0xde3e=function(){return _0x81de2;};return _0xde3e();}export class UploadcareImageEditFormView extends _0x48b37f{[_0x124c40(0xbf)];[_0x124c40(0xb0)];[_0x124c40(0xa4)];[_0x124c40(0xc9)];[_0x124c40(0x9d)];constructor(_0x2dfc6c,_0x4934cb,_0x3e3fd3){const _0x2e805d=_0x124c40;super(_0x2dfc6c),this[_0x2e805d(0xbf)]=this[_0x2e805d(0xbb)](),this[_0x2e805d(0xb0)]=new _0x596e0a(_0x2dfc6c),this[_0x2e805d(0xa4)]=new _0x6f4559(_0x2dfc6c),this[_0x2e805d(0xc9)]=new _0x58629(_0x2dfc6c,_0x3e3fd3),this[_0x2e805d(0x9d)]=new _0x5d32f5(_0x2dfc6c),this[_0x2e805d(0x9d)][_0x2e805d(0xa2)](this[_0x2e805d(0xa8)]()),this[_0x2e805d(0xba)](_0x2e805d(0xa9),_0x4934cb),this[_0x2e805d(0xa2)]({'tag':_0x2e805d(0xaa),'attributes':{'class':['ck',_0x2e805d(0xce),_0x2e805d(0xc6)],'tabindex':'-1'},'children':this[_0x2e805d(0xbf)]}),this[_0x2e805d(0xb6)](),this[_0x2e805d(0xc5)](_0x2e805d(0x9f),()=>{const _0x5c1643=_0x2e805d;this[_0x5c1643(0xca)](this[_0x5c1643(0xb2)],_0x197ec2=>{const _0x35d536=_0x5c1643;this[_0x35d536(0xc1)](_0x197ec2);});}),this['on'](_0x2e805d(0xb5),()=>{const _0x12365a=_0x2e805d;this[_0x12365a(0xb6)]();}),this[_0x2e805d(0xb4)]();}[_0x124c40(0xbc)](){const _0x26b579=_0x124c40;this[_0x26b579(0xb2)][_0x26b579(0xbc)]();}[_0x124c40(0xb6)](){const _0x756548=_0x124c40;switch(this[_0x756548(0xbf)][_0x756548(0xa1)](),this[_0x756548(0xa9)]){case _0x756548(0xb3):this[_0x756548(0xbf)][_0x756548(0xa7)](this[_0x756548(0xb0)]);break;case _0x756548(0xa0):this[_0x756548(0xbf)][_0x756548(0xa7)](this[_0x756548(0xa4)]);break;case _0x756548(0xd0):this[_0x756548(0xbf)][_0x756548(0xc0)]([this[_0x756548(0xc9)],this[_0x756548(0x9d)]]);}}[_0x124c40(0xca)](_0x26f32e,_0xb7f196){const _0x28be7b=_0x124c40,_0x4706f3=_0x28be7b(0xad),_0x198a57=_0x26f32e[_0x28be7b(0xae)](_0x4706f3);if(_0x198a57)return _0xb7f196(_0x198a57);const _0x544188=new MutationObserver(_0x3774d8=>{const _0x46f1ad=_0x28be7b,_0x5623a0=_0x3774d8[_0x46f1ad(0xb9)](_0x4e2ffc=>_0x4e2ffc[_0x46f1ad(0xa3)]===_0x26f32e&&_0x4e2ffc[_0x46f1ad(0xaf)][_0x46f1ad(0xb1)]>0x0&&_0x4e2ffc[_0x46f1ad(0xaf)][0x0][_0x46f1ad(0x9c)][_0x46f1ad(0xcf)]()===_0x4706f3);_0x5623a0[_0x46f1ad(0xb1)]&&(_0x544188[_0x46f1ad(0xc4)](),_0xb7f196(_0x5623a0[0x0][_0x46f1ad(0xaf)][0x0]));});_0x544188[_0x28be7b(0xbe)](_0x26f32e,{'childList':!0x0,'subtree':!0x0});}[_0x124c40(0xc1)](_0x3f6227){const _0x42dda1=_0x124c40;_0x3f6227[_0x42dda1(0xa6)](_0x42dda1(0xb8),_0x34a2c2=>{const _0x25966e=_0x42dda1;this[_0x25966e(0xbd)](_0x25966e(0xb8),{'imageSrc':_0x34a2c2[_0x25966e(0xcc)][_0x25966e(0xc2)]});}),_0x3f6227[_0x42dda1(0xa6)](_0x42dda1(0xc3),()=>{const _0x1c9a61=_0x42dda1;this[_0x1c9a61(0xbd)](_0x1c9a61(0xc3));});}[_0x124c40(0xb4)](){const _0x346524=_0x124c40;this[_0x346524(0xa4)]['on'](_0x346524(0xb7),()=>{const _0x3513be=_0x346524;this[_0x3513be(0xbd)](_0x3513be(0xb7));});}}
23
+ const _0xf4f53e=_0x37ed;function _0x37ed(_0x5435f5,_0x31a39b){const _0x4e7033=_0x4e70();return _0x37ed=function(_0x37ed05,_0x4a98af){_0x37ed05=_0x37ed05-0x14b;let _0x5da827=_0x4e7033[_0x37ed05];return _0x5da827;},_0x37ed(_0x5435f5,_0x31a39b);}(function(_0x1614d5,_0x539d50){const _0x1a02e0=_0x37ed,_0x1f0045=_0x1614d5();while(!![]){try{const _0x2c56c5=parseInt(_0x1a02e0(0x154))/0x1+parseInt(_0x1a02e0(0x17b))/0x2*(-parseInt(_0x1a02e0(0x177))/0x3)+parseInt(_0x1a02e0(0x14d))/0x4*(parseInt(_0x1a02e0(0x14e))/0x5)+-parseInt(_0x1a02e0(0x16a))/0x6*(-parseInt(_0x1a02e0(0x14f))/0x7)+parseInt(_0x1a02e0(0x175))/0x8*(parseInt(_0x1a02e0(0x14c))/0x9)+parseInt(_0x1a02e0(0x180))/0xa*(-parseInt(_0x1a02e0(0x166))/0xb)+parseInt(_0x1a02e0(0x16c))/0xc;if(_0x2c56c5===_0x539d50)break;else _0x1f0045['push'](_0x1f0045['shift']());}catch(_0x5ab1c5){_0x1f0045['push'](_0x1f0045['shift']());}}}(_0x4e70,0x729e0));import{View as _0x48677c}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1d9739}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x88432b}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x6b363e}from'./uploadcareimageeditformeditingview.js';function _0x4e70(){const _0x440f13=['_addErrorViewListeners','6115500laadTv','retry','_editingView','_waitForImageEditorComponent','length','observe','detail','cancel','_items','40MZHITy','div','31887zxPUzn','uploading','change:status','addEventListener','74FIMTMt','_loadingView','error','render','element','6862980OpDunu','toLowerCase','cdnUrl','addMany','clear','237213YWfXGQ','1360NgsXdn','3545vpxzXg','22876QRpVyO','focus','createCollection','uc-cloud-image-editor','getFocusableElement','418205hToqwq','_setView','status','filter','once','_errorView','ck-reset_all-excluded','fire','target','add','set','ck-uploadcare-form','_focusableView','ready','apply','setTemplate','_addUploadcareImageEditorListeners','addedNodes','11HJySof','disconnect','querySelector','nodeName','456vEkVGG'];_0x4e70=function(){return _0x440f13;};return _0x4e70();}import{DialogFocusManagerView as _0x487bc2}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x487bc2{[_0xf4f53e(0x174)];[_0xf4f53e(0x17c)];[_0xf4f53e(0x159)];[_0xf4f53e(0x16e)];[_0xf4f53e(0x160)];constructor(_0x363466,_0x449927,_0x5a326e){const _0x4e287f=_0xf4f53e;super(_0x363466),this[_0x4e287f(0x174)]=this[_0x4e287f(0x151)](),this[_0x4e287f(0x17c)]=new _0x1d9739(_0x363466),this[_0x4e287f(0x159)]=new _0x88432b(_0x363466),this[_0x4e287f(0x16e)]=new _0x6b363e(_0x363466,_0x5a326e),this[_0x4e287f(0x160)]=new _0x48677c(_0x363466),this[_0x4e287f(0x160)][_0x4e287f(0x163)](this[_0x4e287f(0x153)]()),this[_0x4e287f(0x15e)](_0x4e287f(0x156),_0x449927),this[_0x4e287f(0x163)]({'tag':_0x4e287f(0x176),'attributes':{'class':['ck',_0x4e287f(0x15a),_0x4e287f(0x15f)],'tabindex':'-1'},'children':this[_0x4e287f(0x174)]}),this[_0x4e287f(0x155)](),this[_0x4e287f(0x158)](_0x4e287f(0x17e),()=>{const _0x43af1a=_0x4e287f;this[_0x43af1a(0x16f)](this[_0x43af1a(0x17f)],_0x364f57=>{const _0x1dc1d6=_0x43af1a;this[_0x1dc1d6(0x164)](_0x364f57);});}),this['on'](_0x4e287f(0x179),()=>{const _0x152068=_0x4e287f;this[_0x152068(0x155)]();}),this[_0x4e287f(0x16b)]();}[_0xf4f53e(0x150)](){const _0x3b7c3b=_0xf4f53e;this[_0x3b7c3b(0x17f)][_0x3b7c3b(0x150)]();}[_0xf4f53e(0x155)](){const _0x5e7c43=_0xf4f53e;switch(this[_0x5e7c43(0x174)][_0x5e7c43(0x14b)](),this[_0x5e7c43(0x156)]){case _0x5e7c43(0x178):this[_0x5e7c43(0x174)][_0x5e7c43(0x15d)](this[_0x5e7c43(0x17c)]);break;case _0x5e7c43(0x17d):this[_0x5e7c43(0x174)][_0x5e7c43(0x15d)](this[_0x5e7c43(0x159)]);break;case _0x5e7c43(0x161):this[_0x5e7c43(0x174)][_0x5e7c43(0x183)]([this[_0x5e7c43(0x16e)],this[_0x5e7c43(0x160)]]);}}[_0xf4f53e(0x16f)](_0x303003,_0x11b9fc){const _0x3d8c2c=_0xf4f53e,_0x4df4d2=_0x3d8c2c(0x152),_0x471db1=_0x303003[_0x3d8c2c(0x168)](_0x4df4d2);if(_0x471db1)return _0x11b9fc(_0x471db1);const _0x33cd0b=new MutationObserver(_0x4be750=>{const _0x39148d=_0x3d8c2c,_0x1d6191=_0x4be750[_0x39148d(0x157)](_0x2c4b5d=>_0x2c4b5d[_0x39148d(0x15c)]===_0x303003&&_0x2c4b5d[_0x39148d(0x165)][_0x39148d(0x170)]>0x0&&_0x2c4b5d[_0x39148d(0x165)][0x0][_0x39148d(0x169)][_0x39148d(0x181)]()===_0x4df4d2);_0x1d6191[_0x39148d(0x170)]&&(_0x33cd0b[_0x39148d(0x167)](),_0x11b9fc(_0x1d6191[0x0][_0x39148d(0x165)][0x0]));});_0x33cd0b[_0x3d8c2c(0x171)](_0x303003,{'childList':!0x0,'subtree':!0x0});}[_0xf4f53e(0x164)](_0x18e17f){const _0x520fe1=_0xf4f53e;_0x18e17f[_0x520fe1(0x17a)](_0x520fe1(0x162),_0x5c1aa0=>{const _0x27328b=_0x520fe1;this[_0x27328b(0x15b)](_0x27328b(0x162),{'imageSrc':_0x5c1aa0[_0x27328b(0x172)][_0x27328b(0x182)]});}),_0x18e17f[_0x520fe1(0x17a)](_0x520fe1(0x173),()=>{const _0x16cb9f=_0x520fe1;this[_0x16cb9f(0x15b)](_0x16cb9f(0x173));});}[_0xf4f53e(0x16b)](){const _0x2f4b2b=_0xf4f53e;this[_0x2f4b2b(0x159)]['on'](_0x2f4b2b(0x16d),()=>{const _0x59df61=_0x2f4b2b;this[_0x59df61(0x15b)](_0x59df61(0x16d));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x353dac=_0x470a;(function(_0xbb8e70,_0x18990b){const _0xc2834e=_0x470a,_0x31a276=_0xbb8e70();while(!![]){try{const _0x3efc61=parseInt(_0xc2834e(0xef))/0x1+-parseInt(_0xc2834e(0xdf))/0x2+-parseInt(_0xc2834e(0xfb))/0x3*(parseInt(_0xc2834e(0xea))/0x4)+-parseInt(_0xc2834e(0xeb))/0x5+-parseInt(_0xc2834e(0xe2))/0x6*(-parseInt(_0xc2834e(0xf0))/0x7)+parseInt(_0xc2834e(0xe6))/0x8*(-parseInt(_0xc2834e(0xe1))/0x9)+parseInt(_0xc2834e(0xdb))/0xa*(parseInt(_0xc2834e(0xf4))/0xb);if(_0x3efc61===_0x18990b)break;else _0x31a276['push'](_0x31a276['shift']());}catch(_0x205e57){_0x31a276['push'](_0x31a276['shift']());}}}(_0x315d,0x5ef0d));import{Command as _0x2abf12}from'ckeditor5/src/core.js';import{Dialog as _0x5a1b6b}from'ckeditor5/src/ui.js';function _0x470a(_0x2dee4b,_0x31f2e2){const _0x315da4=_0x315d();return _0x470a=function(_0x470a95,_0x1378f7){_0x470a95=_0x470a95-0xdb;let _0x379374=_0x315da4[_0x470a95];return _0x379374;},_0x470a(_0x2dee4b,_0x31f2e2);}import{UploadcareImageEditController as _0x508a63}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x57fa3c}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2abf12{[_0x353dac(0xec)];static get[_0x353dac(0xf8)](){return[_0x5a1b6b];}[_0x353dac(0xf5)];constructor(_0x96b05){const _0x1cc85c=_0x353dac;super(_0x96b05),this[_0x1cc85c(0xec)]=void 0x0,this[_0x1cc85c(0xf5)]=_0x57fa3c(_0x96b05[_0x1cc85c(0xe8)][_0x1cc85c(0xf9)](_0x1cc85c(0xf6))||[]),this[_0x1cc85c(0xf7)]({'isActive':!0x1});}[_0x353dac(0xf1)](){const _0x4caa2c=_0x353dac,_0x535c1e=this[_0x4caa2c(0xe3)][_0x4caa2c(0xf2)][_0x4caa2c(0xdc)][_0x4caa2c(0xde)][_0x4caa2c(0xe4)]();this[_0x4caa2c(0xed)]=this[_0x4caa2c(0xf5)](_0x535c1e);}[_0x353dac(0xe7)](){const _0x20f5a1=_0x353dac;this[_0x20f5a1(0xec)]&&(this[_0x20f5a1(0xee)](_0x20f5a1(0xe0)),this[_0x20f5a1(0xec)]=void 0x0);const _0x2404ab=this[_0x20f5a1(0xe3)][_0x20f5a1(0xf2)][_0x20f5a1(0xdc)][_0x20f5a1(0xde)][_0x20f5a1(0xe4)]();_0x2404ab&&(_0x2404ab['is'](_0x20f5a1(0xe9),_0x20f5a1(0xdd))||_0x2404ab['is'](_0x20f5a1(0xe9),_0x20f5a1(0xe5)))&&(this[_0x20f5a1(0xec)]=new _0x508a63(this[_0x20f5a1(0xe3)],this[_0x20f5a1(0xe3)][_0x20f5a1(0xfa)][_0x20f5a1(0xf9)](_0x5a1b6b),_0x2404ab),this[_0x20f5a1(0xf3)](_0x20f5a1(0xe0))['to'](this[_0x20f5a1(0xec)],_0x20f5a1(0xe0)));}}function _0x315d(){const _0x4f6273=['document','imageBlock','selection','333196GisKGl','isActive','9mEeAMP','36NKpzxl','editor','getSelectedElement','imageInline','260600sjPouA','execute','config','element','82972IudaXu','147265JFrmcQ','imageEditController','isEnabled','unbind','90282VXGwjI','805616zMHmwC','refresh','model','bind','11kzVmXL','_isEditable','uploadcare.allowExternalImagesEditing','set','requires','get','plugins','48HAdtfk','1685810rntshN'];_0x315d=function(){return _0x4f6273;};return _0x315d();}
23
+ const _0x45c9f6=_0x56fb;function _0x56fb(_0x753171,_0x3db069){const _0x28c8d8=_0x28c8();return _0x56fb=function(_0x56fbb9,_0x2b3c86){_0x56fbb9=_0x56fbb9-0x1aa;let _0x24e1b3=_0x28c8d8[_0x56fbb9];return _0x24e1b3;},_0x56fb(_0x753171,_0x3db069);}function _0x28c8(){const _0x3ce14a=['_isEditable','imageBlock','7emUkrF','refresh','execute','imageEditController','275808feyCkS','2479630znssjt','uploadcare.allowExternalImagesEditing','element','4ffLkEY','selection','isEnabled','bind','config','9018675vSRwOT','487520iYnkWY','1906974rUJOdd','460200dXFfyX','isActive','unbind','getSelectedElement','editor','plugins','set','2919312naXRaP','model','get','document','requires','imageInline'];_0x28c8=function(){return _0x3ce14a;};return _0x28c8();}(function(_0x2c6a5a,_0x2c9d4c){const _0x59e19a=_0x56fb,_0x514999=_0x2c6a5a();while(!![]){try{const _0x4f0523=-parseInt(_0x59e19a(0x1bf))/0x1+parseInt(_0x59e19a(0x1b5))/0x2+parseInt(_0x59e19a(0x1c0))/0x3+parseInt(_0x59e19a(0x1b9))/0x4*(parseInt(_0x59e19a(0x1b6))/0x5)+parseInt(_0x59e19a(0x1c8))/0x6+parseInt(_0x59e19a(0x1b1))/0x7*(parseInt(_0x59e19a(0x1c1))/0x8)+-parseInt(_0x59e19a(0x1be))/0x9;if(_0x4f0523===_0x2c9d4c)break;else _0x514999['push'](_0x514999['shift']());}catch(_0x36f287){_0x514999['push'](_0x514999['shift']());}}}(_0x28c8,0x4f182));import{Command as _0x169e09}from'ckeditor5/src/core.js';import{Dialog as _0xa04995}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x27f54b}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0xabe273}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x169e09{[_0x45c9f6(0x1b4)];static get[_0x45c9f6(0x1ad)](){return[_0xa04995];}[_0x45c9f6(0x1af)];constructor(_0x31b46f){const _0x26038e=_0x45c9f6;super(_0x31b46f),this[_0x26038e(0x1b4)]=void 0x0,this[_0x26038e(0x1af)]=_0xabe273(_0x31b46f[_0x26038e(0x1bd)][_0x26038e(0x1ab)](_0x26038e(0x1b7))||[]),this[_0x26038e(0x1c7)]({'isActive':!0x1});}[_0x45c9f6(0x1b2)](){const _0x5dc252=_0x45c9f6,_0x29ecb8=this[_0x5dc252(0x1c5)][_0x5dc252(0x1aa)][_0x5dc252(0x1ac)][_0x5dc252(0x1ba)][_0x5dc252(0x1c4)]();this[_0x5dc252(0x1bb)]=this[_0x5dc252(0x1af)](_0x29ecb8);}[_0x45c9f6(0x1b3)](){const _0x56d409=_0x45c9f6;this[_0x56d409(0x1b4)]&&(this[_0x56d409(0x1c3)](_0x56d409(0x1c2)),this[_0x56d409(0x1b4)]=void 0x0);const _0x144fce=this[_0x56d409(0x1c5)][_0x56d409(0x1aa)][_0x56d409(0x1ac)][_0x56d409(0x1ba)][_0x56d409(0x1c4)]();_0x144fce&&(_0x144fce['is'](_0x56d409(0x1b8),_0x56d409(0x1b0))||_0x144fce['is'](_0x56d409(0x1b8),_0x56d409(0x1ae)))&&(this[_0x56d409(0x1b4)]=new _0x27f54b(this[_0x56d409(0x1c5)],this[_0x56d409(0x1c5)][_0x56d409(0x1c6)][_0x56d409(0x1ab)](_0xa04995),_0x144fce),this[_0x56d409(0x1bc)](_0x56d409(0x1c2))['to'](this[_0x56d409(0x1b4)],_0x56d409(0x1c2)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53180d=_0x27be;(function(_0x2f1e57,_0x1825fb){const _0x16a9f7=_0x27be,_0x3a572d=_0x2f1e57();while(!![]){try{const _0x235d0f=parseInt(_0x16a9f7(0x8d))/0x1+-parseInt(_0x16a9f7(0x89))/0x2+parseInt(_0x16a9f7(0x95))/0x3+parseInt(_0x16a9f7(0x88))/0x4*(-parseInt(_0x16a9f7(0x81))/0x5)+parseInt(_0x16a9f7(0x8a))/0x6*(parseInt(_0x16a9f7(0x85))/0x7)+-parseInt(_0x16a9f7(0x82))/0x8+parseInt(_0x16a9f7(0x83))/0x9;if(_0x235d0f===_0x1825fb)break;else _0x3a572d['push'](_0x3a572d['shift']());}catch(_0x29fd8e){_0x3a572d['push'](_0x3a572d['shift']());}}}(_0x2828,0xbefa6));import{Plugin as _0x1472b1}from'ckeditor5/src/core.js';import{Notification as _0x3950a8}from'ckeditor5/src/ui.js';function _0x27be(_0x1eeb2f,_0x13dda7){const _0x2828df=_0x2828();return _0x27be=function(_0x27be8d,_0xd5cccd){_0x27be8d=_0x27be8d-0x81;let _0x5dcb8d=_0x2828df[_0x27be8d];return _0x5dcb8d;},_0x27be(_0x1eeb2f,_0x13dda7);}import{UploadcareImageEditCommand as _0x5463b0}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x3be3a5}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x3becd2}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x1472b1{static get[_0x53180d(0x86)](){const _0x2b0588=_0x53180d;return _0x2b0588(0x8e);}static get[_0x53180d(0x91)](){const _0x56dcd5=_0x53180d;return[_0x3becd2,_0x3950a8,_0x56dcd5(0x8b),_0x56dcd5(0x90)];}static get[_0x53180d(0x87)](){return!0x0;}static get[_0x53180d(0x92)](){return!0x0;}[_0x53180d(0x93)](){const _0x45d2d8=_0x53180d,{editor:_0x1641c6}=this;_0x1641c6[_0x45d2d8(0x84)][_0x45d2d8(0x94)](_0x45d2d8(0x8f),new _0x5463b0(_0x1641c6)),_0x1641c6[_0x45d2d8(0x84)][_0x45d2d8(0x94)](_0x45d2d8(0x8c),new _0x3be3a5(_0x1641c6));}}function _0x2828(){const _0x4fd976=['49NfIQnd','pluginName','isOfficialPlugin','596HCOjBX','830006FRzCxq','112326SYBXyL','ImageUtils','uploadcareImageReplace','49315NdPhKh','UploadcareImageEditEditing','uploadcareImageEdit','ImageEditing','requires','isPremiumPlugin','init','add','3239733TYQfwe','22075KlCSlp','8696720RxaOzj','15137109XSWVxp','commands'];_0x2828=function(){return _0x4fd976;};return _0x2828();}
23
+ function _0xbd3c(_0x367aaf,_0x331a91){const _0x3d6391=_0x3d63();return _0xbd3c=function(_0xbd3c65,_0xfbc2a9){_0xbd3c65=_0xbd3c65-0x171;let _0x4ca84e=_0x3d6391[_0xbd3c65];return _0x4ca84e;},_0xbd3c(_0x367aaf,_0x331a91);}const _0x5ddfe4=_0xbd3c;(function(_0x5e5f0e,_0x56bc5d){const _0x20a6bd=_0xbd3c,_0x3f69b1=_0x5e5f0e();while(!![]){try{const _0x17a4bf=-parseInt(_0x20a6bd(0x172))/0x1+parseInt(_0x20a6bd(0x179))/0x2*(-parseInt(_0x20a6bd(0x183))/0x3)+-parseInt(_0x20a6bd(0x176))/0x4+parseInt(_0x20a6bd(0x17c))/0x5*(-parseInt(_0x20a6bd(0x184))/0x6)+parseInt(_0x20a6bd(0x177))/0x7*(-parseInt(_0x20a6bd(0x181))/0x8)+-parseInt(_0x20a6bd(0x17a))/0x9*(parseInt(_0x20a6bd(0x180))/0xa)+parseInt(_0x20a6bd(0x185))/0xb;if(_0x17a4bf===_0x56bc5d)break;else _0x3f69b1['push'](_0x3f69b1['shift']());}catch(_0x44168c){_0x3f69b1['push'](_0x3f69b1['shift']());}}}(_0x3d63,0xf0354));function _0x3d63(){const _0x192511=['11244664XSCGjz','init','3ZkeepP','6nnLCzV','81185742sbdrnK','pluginName','commands','ImageEditing','1530007BmDNVP','UploadcareImageEditEditing','uploadcareImageReplace','add','7056880niqxgm','7zqYAUS','requires','2538826IyMvpY','9dykmac','isPremiumPlugin','739835VMbvag','ImageUtils','uploadcareImageEdit','isOfficialPlugin','2794400NJsOjs'];_0x3d63=function(){return _0x192511;};return _0x3d63();}import{Plugin as _0x16aafb}from'ckeditor5/src/core.js';import{Notification as _0x512099}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x21e4b3}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x32348e}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x30e851}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x16aafb{static get[_0x5ddfe4(0x186)](){const _0x438728=_0x5ddfe4;return _0x438728(0x173);}static get[_0x5ddfe4(0x178)](){const _0x5a8a2e=_0x5ddfe4;return[_0x30e851,_0x512099,_0x5a8a2e(0x17d),_0x5a8a2e(0x171)];}static get[_0x5ddfe4(0x17f)](){return!0x0;}static get[_0x5ddfe4(0x17b)](){return!0x0;}[_0x5ddfe4(0x182)](){const _0x3c93e8=_0x5ddfe4,{editor:_0x2777a2}=this;_0x2777a2[_0x3c93e8(0x187)][_0x3c93e8(0x175)](_0x3c93e8(0x17e),new _0x21e4b3(_0x2777a2)),_0x2777a2[_0x3c93e8(0x187)][_0x3c93e8(0x175)](_0x3c93e8(0x174),new _0x32348e(_0x2777a2));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x3aa9e7}from'ckeditor5/src/core.js';import{ButtonView as _0x3f27c2}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x49f6b7}from'ckeditor5/src/icons.js';import{createElement as _0xd21a29}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 _0x3aa9e7{['_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 _0x128741=this['editor'];_0x128741['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4ff50d=>{const _0x37f95e=_0x128741['commands']['get']('uploadcareImageEdit'),_0x428668=new _0x3f27c2(_0x4ff50d),t=_0x4ff50d['t'];return _0x428668['set']({'icon':_0x49f6b7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x428668['bind']('isEnabled')['to'](_0x37f95e),_0x428668['bind']('isOn')['to'](_0x37f95e,'isActive'),this['listenTo'](_0x428668,'execute',()=>{_0x128741['execute']('uploadcareImageEdit'),_0x128741['editing']['view']['focus']();}),_0x428668;}),this['_initConfig']();}['_initConfig'](){const _0x112802=_0xd21a29(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x112802),this['listenTo'](this['editor'],'destroy',()=>{_0x112802['remove']();});}}
23
+ import{Plugin as _0x4e3866}from'ckeditor5/src/core.js';import{ButtonView as _0xc60a2e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x56fd20}from'ckeditor5/src/icons.js';import{createElement as _0x212736}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 _0x4e3866{['_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 _0x5c0127=this['editor'];_0x5c0127['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2db614=>{const _0x3020be=_0x5c0127['commands']['get']('uploadcareImageEdit'),_0x113905=new _0xc60a2e(_0x2db614),t=_0x2db614['t'];return _0x113905['set']({'icon':_0x56fd20,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x113905['bind']('isEnabled')['to'](_0x3020be),_0x113905['bind']('isOn')['to'](_0x3020be,'isActive'),this['listenTo'](_0x113905,'execute',()=>{_0x5c0127['execute']('uploadcareImageEdit'),_0x5c0127['editing']['view']['focus']();}),_0x113905;}),this['_initConfig']();}['_initConfig'](){const _0x28406e=_0x212736(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x28406e),this['listenTo'](this['editor'],'destroy',()=>{_0x28406e['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2c2868=_0x1971;function _0x1971(_0x1ce132,_0x3d02a3){var _0x5c16f5=_0x5c16();return _0x1971=function(_0x19718b,_0x458eb6){_0x19718b=_0x19718b-0x197;var _0x12bd38=_0x5c16f5[_0x19718b];return _0x12bd38;},_0x1971(_0x1ce132,_0x3d02a3);}function _0x5c16(){var _0x50034d=['133394RaAtZY','548wqwmOp','13956mngpOi','getFocusableElement','30EQLaFG','focusTracker','956082Pcldji','8dExinZ','div','focusCycler','bindTemplate','true','12284577DHbgse','1022318ZUsOCs','18715znNufA','35TreKKx','1826DhyGiM','2971750jbgOiV','fire','createCollection','forwardCycle'];_0x5c16=function(){return _0x50034d;};return _0x5c16();}(function(_0x5b3764,_0x3ba68c){var _0x1fcf71=_0x1971,_0x5aa5be=_0x5b3764();while(!![]){try{var _0x4bb25b=parseInt(_0x1fcf71(0x1aa))/0x1+-parseInt(_0x1fcf71(0x19d))/0x2*(-parseInt(_0x1fcf71(0x1a1))/0x3)+parseInt(_0x1fcf71(0x19e))/0x4*(-parseInt(_0x1fcf71(0x1ab))/0x5)+parseInt(_0x1fcf71(0x1a3))/0x6*(parseInt(_0x1fcf71(0x197))/0x7)+-parseInt(_0x1fcf71(0x1a4))/0x8*(parseInt(_0x1fcf71(0x1a9))/0x9)+parseInt(_0x1fcf71(0x199))/0xa+-parseInt(_0x1fcf71(0x198))/0xb*(parseInt(_0x1fcf71(0x19f))/0xc);if(_0x4bb25b===_0x3ba68c)break;else _0x5aa5be['push'](_0x5aa5be['shift']());}catch(_0xdb9278){_0x5aa5be['push'](_0x5aa5be['shift']());}}}(_0x5c16,0xadecc));import{FocusTracker as _0x4db950}from'ckeditor5/src/utils.js';import{View as _0x2f8d6d,FocusCycler as _0x1f63be}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x2f8d6d{[_0x2c2868(0x1a2)];[_0x2c2868(0x1a6)];constructor(_0x17830b){var _0x530457=_0x2c2868;super(_0x17830b),this[_0x530457(0x1a2)]=new _0x4db950(),this[_0x530457(0x1a6)]=new _0x1f63be({'focusables':this[_0x530457(0x19b)](),'focusTracker':this[_0x530457(0x1a2)]});}[_0x2c2868(0x1a0)](){var _0x95f600=_0x2c2868;return{'tag':_0x95f600(0x1a5),'attributes':{'aria-hidden':_0x95f600(0x1a8),'tabindex':'0'},'on':{'focus':this[_0x95f600(0x1a7)]['to'](()=>{var _0x5410d5=_0x95f600;this[_0x5410d5(0x1a6)][_0x5410d5(0x19a)](_0x5410d5(0x19c));})}};}}
23
+ function _0x6f7a(){var _0x4d3d26=['10wHxASr','bindTemplate','196944zSAFEI','3861018lwNJAB','fire','1924749PWCkLg','1ujZhIA','focusTracker','1539QMJPyP','4201840ezjbgf','createCollection','forwardCycle','true','focusCycler','5335962XbfXQU','1379946LrWRte','3264tLEgaZ','div','getFocusableElement'];_0x6f7a=function(){return _0x4d3d26;};return _0x6f7a();}function _0x3e13(_0x43e7f4,_0x57b97f){var _0x6f7a81=_0x6f7a();return _0x3e13=function(_0x3e13cb,_0x3da185){_0x3e13cb=_0x3e13cb-0x137;var _0xc2e8f4=_0x6f7a81[_0x3e13cb];return _0xc2e8f4;},_0x3e13(_0x43e7f4,_0x57b97f);}var _0x41631e=_0x3e13;(function(_0x11428c,_0x5f25b4){var _0x28cb1a=_0x3e13,_0x5d732e=_0x11428c();while(!![]){try{var _0x311e44=-parseInt(_0x28cb1a(0x147))/0x1*(-parseInt(_0x28cb1a(0x13d))/0x2)+parseInt(_0x28cb1a(0x146))/0x3+parseInt(_0x28cb1a(0x143))/0x4*(parseInt(_0x28cb1a(0x141))/0x5)+-parseInt(_0x28cb1a(0x13c))/0x6+-parseInt(_0x28cb1a(0x144))/0x7+-parseInt(_0x28cb1a(0x13e))/0x8*(-parseInt(_0x28cb1a(0x149))/0x9)+parseInt(_0x28cb1a(0x137))/0xa;if(_0x311e44===_0x5f25b4)break;else _0x5d732e['push'](_0x5d732e['shift']());}catch(_0x3ebf71){_0x5d732e['push'](_0x5d732e['shift']());}}}(_0x6f7a,0x74f67));import{FocusTracker as _0x52bdb0}from'ckeditor5/src/utils.js';import{View as _0x2f2608,FocusCycler as _0x2a7540}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x2f2608{[_0x41631e(0x148)];[_0x41631e(0x13b)];constructor(_0x3eb667){var _0x293da5=_0x41631e;super(_0x3eb667),this[_0x293da5(0x148)]=new _0x52bdb0(),this[_0x293da5(0x13b)]=new _0x2a7540({'focusables':this[_0x293da5(0x138)](),'focusTracker':this[_0x293da5(0x148)]});}[_0x41631e(0x140)](){var _0x177186=_0x41631e;return{'tag':_0x177186(0x13f),'attributes':{'aria-hidden':_0x177186(0x13a),'tabindex':'0'},'on':{'focus':this[_0x177186(0x142)]['to'](()=>{var _0x4a75e8=_0x177186;this[_0x4a75e8(0x13b)][_0x4a75e8(0x145)](_0x4a75e8(0x139));})}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x4a25f7,_0x1a31d0){const _0x25e020=_0x4071,_0x864e4e=_0x4a25f7();while(!![]){try{const _0x16853f=parseInt(_0x25e020(0x105))/0x1*(-parseInt(_0x25e020(0xf1))/0x2)+-parseInt(_0x25e020(0xf6))/0x3+parseInt(_0x25e020(0xd6))/0x4+-parseInt(_0x25e020(0xdc))/0x5*(-parseInt(_0x25e020(0xd7))/0x6)+parseInt(_0x25e020(0xf4))/0x7+parseInt(_0x25e020(0xf8))/0x8*(-parseInt(_0x25e020(0xf5))/0x9)+-parseInt(_0x25e020(0xe9))/0xa*(-parseInt(_0x25e020(0xeb))/0xb);if(_0x16853f===_0x1a31d0)break;else _0x864e4e['push'](_0x864e4e['shift']());}catch(_0x54caeb){_0x864e4e['push'](_0x864e4e['shift']());}}}(_0x2877,0xf025c));import{global as _0x5cd670,DomEmitterMixin as _0x293246}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x2d19ce){const _0x10837d=_0x4071,_0x2c57c6=R(_0x2d19ce);return _0x4c62b1=>!(!_0x4c62b1||!_0x4c62b1['is'](_0x10837d(0x104),_0x10837d(0xd1))&&!_0x4c62b1['is'](_0x10837d(0x104),_0x10837d(0xec)))&&(!!_0x4c62b1[_0x10837d(0xf7)](_0x10837d(0x102))||!!_0x4c62b1[_0x10837d(0xf7)](_0x10837d(0xef))&&_0x2c57c6(_0x4c62b1[_0x10837d(0xe1)](_0x10837d(0xef))));}export function getImageUrls(_0x40c9c2,_0x5e8bc4){const _0x45dd95=_0x4071,_0x517303=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x45dd95(0xe2)](_0x36076c=>_0x36076c<=_0x5e8bc4)[_0x45dd95(0xe6)](_0x1bd238=>_0x40c9c2[_0x45dd95(0xcd)](/\/$/,'')+_0x45dd95(0xe0)+_0x1bd238+_0x45dd95(0xee)+_0x1bd238+'w');return{'imageFallbackUrl':_0x40c9c2,'imageSources':[{'srcset':_0x517303[_0x45dd95(0xd9)](',\x20'),'sizes':_0x45dd95(0xdb)+_0x5e8bc4+_0x45dd95(0xde)+_0x5e8bc4+'px','type':_0x45dd95(0xd0)}]};}export function getImageDimension(_0x38deaa,_0x4e4d06,_0x4992db){const _0x2f4a43=_0x4071,_0x3e4f42=_0x38deaa[_0x2f4a43(0xdf)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3e4f42?parseInt(_0x3e4f42[0x1],0xa):_0x4e4d06,'height':_0x3e4f42?parseInt(_0x3e4f42[0x2],0xa):_0x4992db};}function _0x2877(){const _0x3e90a1=['filter','plugins','setStyle','removeClass','map','toViewElement','isArray','64360UaipoD','height','3245meIvPS','imageInline','domConverter','x/\x20','src','document','172610JtSrie','change','baseURI','423717aaawzO','9RUQiWW','5242320bGXxCN','hasAttribute','10184JndzSe','listenTo','load','some','findViewImgElement','width','get','stopListening','ImageUtils','addClass','uploadcareImageId','location','element','7USJdIm','viewToDom','replace','aspect-ratio','view','image/webp','imageBlock','window','mapper','function','origin','5353404cHRMAz','60KHCdwd','removeStyle','join','editing','(max-width:\x20','19495tmMvAX','image-processing','px)\x20100vw,\x20','match','/-/resize/','getAttribute'];_0x2877=function(){return _0x3e90a1;};return _0x2877();}function _0x4071(_0x1ffc04,_0x421f54){const _0x28773e=_0x2877();return _0x4071=function(_0x4071fb,_0x4bcf28){_0x4071fb=_0x4071fb-0xcc;let _0x45cf7c=_0x28773e[_0x4071fb];return _0x45cf7c;},_0x4071(_0x1ffc04,_0x421f54);}export function showImageProcessingIndicator(_0x1a18e4,_0x22dd79){const _0xb301fb=_0x4071,_0x449826=new(_0x293246())(),_0x2b7f50=_0x1a18e4[_0xb301fb(0xe3)][_0xb301fb(0xfe)](_0xb301fb(0x100)),_0xbdb87e=_0x1a18e4[_0xb301fb(0xda)][_0xb301fb(0xd3)][_0xb301fb(0xe7)](_0x22dd79),_0x30bf65=_0x2b7f50[_0xb301fb(0xfc)](_0xbdb87e),_0x461c42=_0x1a18e4[_0xb301fb(0xda)][_0xb301fb(0xcf)][_0xb301fb(0xed)][_0xb301fb(0xcc)](_0x30bf65),_0x3d1a14=_0x22dd79[_0xb301fb(0xe1)](_0xb301fb(0xfd)),_0x410b9e=_0x22dd79[_0xb301fb(0xe1)](_0xb301fb(0xea)),_0x196b59=_0xb301fb(0xdd);_0x1a18e4[_0xb301fb(0xda)][_0xb301fb(0xcf)][_0xb301fb(0xf2)](_0x3d172d=>{const _0x2b66b9=_0xb301fb;_0x3d172d[_0x2b66b9(0x101)](_0x196b59,_0xbdb87e),_0x3d172d[_0x2b66b9(0xe4)](_0x2b66b9(0xce),_0x3d1a14+'/'+_0x410b9e,_0x30bf65);}),_0x449826[_0xb301fb(0xf9)](_0x461c42,_0xb301fb(0xfa),()=>{const _0x1695c5=_0xb301fb;_0x449826[_0x1695c5(0xff)](_0x461c42,_0x1695c5(0xfa)),_0x1a18e4[_0x1695c5(0xda)][_0x1695c5(0xcf)][_0x1695c5(0xf2)](_0x58eed4=>{const _0x5accda=_0x1695c5;_0x58eed4[_0x5accda(0xe5)](_0x196b59,_0xbdb87e),_0x58eed4[_0x5accda(0xd8)](_0x5accda(0xce),_0x30bf65);});});}function R(_0x33051a){const _0x948ee5=_0x4071;if(Array[_0x948ee5(0xe8)](_0x33051a)){const _0x1f43a8=_0x33051a[_0x948ee5(0xe6)](R);return _0x2efe7b=>_0x1f43a8[_0x948ee5(0xfb)](_0xe9cf39=>_0xe9cf39(_0x2efe7b));}if(_0x948ee5(0xd5)==_0x33051a){const _0x34342c=_0x5cd670[_0x948ee5(0xd2)][_0x948ee5(0x103)][_0x948ee5(0xd5)];return _0xa47281=>new URL(_0xa47281,_0x5cd670[_0x948ee5(0xf0)][_0x948ee5(0xf3)])[_0x948ee5(0xd5)]==_0x34342c;}return _0x948ee5(0xd4)==typeof _0x33051a?_0x33051a:_0x33051a instanceof RegExp?_0xd45281=>!(!_0xd45281[_0x948ee5(0xdf)](_0x33051a)&&!_0xd45281[_0x948ee5(0xcd)](/^https?:\/\//,'')[_0x948ee5(0xdf)](_0x33051a)):()=>!0x1;}
23
+ (function(_0x1710f4,_0x119697){const _0x509077=_0x2392,_0x27d7d0=_0x1710f4();while(!![]){try{const _0x54a0ec=-parseInt(_0x509077(0x1cb))/0x1+-parseInt(_0x509077(0x1b7))/0x2+-parseInt(_0x509077(0x1b3))/0x3*(-parseInt(_0x509077(0x1c3))/0x4)+-parseInt(_0x509077(0x1c9))/0x5+-parseInt(_0x509077(0x1cc))/0x6*(-parseInt(_0x509077(0x1bf))/0x7)+parseInt(_0x509077(0x1b2))/0x8+-parseInt(_0x509077(0x1e0))/0x9*(-parseInt(_0x509077(0x1bc))/0xa);if(_0x54a0ec===_0x119697)break;else _0x27d7d0['push'](_0x27d7d0['shift']());}catch(_0xae19ae){_0x27d7d0['push'](_0x27d7d0['shift']());}}}(_0x5a63,0x4661e));import{global as _0x1cfeb0,DomEmitterMixin as _0x2e742a}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x4ee092){const _0x56f152=_0x2392,_0x581929=z(_0x4ee092);return _0x385850=>!(!_0x385850||!_0x385850['is'](_0x56f152(0x1dd),_0x56f152(0x1d3))&&!_0x385850['is'](_0x56f152(0x1dd),_0x56f152(0x1d7)))&&(!!_0x385850[_0x56f152(0x1c0)](_0x56f152(0x1ce))||!!_0x385850[_0x56f152(0x1c0)](_0x56f152(0x1de))&&_0x581929(_0x385850[_0x56f152(0x1d5)](_0x56f152(0x1de))));}export function getImageUrls(_0x216b7e,_0x87aeb0){const _0x17f0de=_0x2392,_0x19c4de=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x17f0de(0x1d0)](_0x35ac7e=>_0x35ac7e<=_0x87aeb0)[_0x17f0de(0x1c2)](_0x4c8966=>_0x216b7e[_0x17f0de(0x1e1)](/\/$/,'')+_0x17f0de(0x1b0)+_0x4c8966+_0x17f0de(0x1ca)+_0x4c8966+'w');return{'imageFallbackUrl':_0x216b7e,'imageSources':[{'srcset':_0x19c4de[_0x17f0de(0x1be)](',\x20'),'sizes':_0x17f0de(0x1da)+_0x87aeb0+_0x17f0de(0x1c1)+_0x87aeb0+'px','type':_0x17f0de(0x1d4)}]};}export function getImageDimension(_0x59db20,_0x51a762,_0x167f68){const _0xa786ef=_0x2392,_0x38b908=_0x59db20[_0xa786ef(0x1d6)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x38b908?parseInt(_0x38b908[0x1],0xa):_0x51a762,'height':_0x38b908?parseInt(_0x38b908[0x2],0xa):_0x167f68};}export function showImageProcessingIndicator(_0x432615,_0x446a4){const _0x43a51f=_0x2392,_0x176cd5=new(_0x2e742a())(),_0x252f6d=_0x432615[_0x43a51f(0x1c6)][_0x43a51f(0x1b9)](_0x43a51f(0x1db)),_0x38529f=_0x432615[_0x43a51f(0x1bb)][_0x43a51f(0x1bd)][_0x43a51f(0x1dc)](_0x446a4),_0x47b4c1=_0x252f6d[_0x43a51f(0x1b1)](_0x38529f),_0x306134=_0x432615[_0x43a51f(0x1bb)][_0x43a51f(0x1aa)][_0x43a51f(0x1c7)][_0x43a51f(0x1ba)](_0x47b4c1),_0x2c7952=_0x446a4[_0x43a51f(0x1d5)](_0x43a51f(0x1df)),_0x29a539=_0x446a4[_0x43a51f(0x1d5)](_0x43a51f(0x1ae)),_0x89724c=_0x43a51f(0x1c8);_0x432615[_0x43a51f(0x1bb)][_0x43a51f(0x1aa)][_0x43a51f(0x1b4)](_0x181bae=>{const _0x5c551e=_0x43a51f;_0x181bae[_0x5c551e(0x1d1)](_0x89724c,_0x38529f),_0x181bae[_0x5c551e(0x1cf)](_0x5c551e(0x1af),_0x2c7952+'/'+_0x29a539,_0x47b4c1);}),_0x176cd5[_0x43a51f(0x1b5)](_0x306134,_0x43a51f(0x1c5),()=>{const _0x291810=_0x43a51f;_0x176cd5[_0x291810(0x1d9)](_0x306134,_0x291810(0x1c5)),_0x432615[_0x291810(0x1bb)][_0x291810(0x1aa)][_0x291810(0x1b4)](_0x17efe9=>{const _0x113fe8=_0x291810;_0x17efe9[_0x113fe8(0x1ac)](_0x89724c,_0x38529f),_0x17efe9[_0x113fe8(0x1b8)](_0x113fe8(0x1af),_0x47b4c1);});});}function _0x2392(_0x37dd6b,_0x4f5c07){const _0x5a6335=_0x5a63();return _0x2392=function(_0x2392dc,_0x814dd8){_0x2392dc=_0x2392dc-0x1a9;let _0x5c3d2a=_0x5a6335[_0x2392dc];return _0x5c3d2a;},_0x2392(_0x37dd6b,_0x4f5c07);}function z(_0xa31cec){const _0x49dfeb=_0x2392;if(Array[_0x49dfeb(0x1ad)](_0xa31cec)){const _0x3b7bb7=_0xa31cec[_0x49dfeb(0x1c2)](z);return _0x125fd7=>_0x3b7bb7[_0x49dfeb(0x1cd)](_0x38e0c6=>_0x38e0c6(_0x125fd7));}if(_0x49dfeb(0x1ab)==_0xa31cec){const _0x247b9d=_0x1cfeb0[_0x49dfeb(0x1c4)][_0x49dfeb(0x1b6)][_0x49dfeb(0x1ab)];return _0x19403f=>new URL(_0x19403f,_0x1cfeb0[_0x49dfeb(0x1d8)][_0x49dfeb(0x1a9)])[_0x49dfeb(0x1ab)]==_0x247b9d;}return _0x49dfeb(0x1d2)==typeof _0xa31cec?_0xa31cec:_0xa31cec instanceof RegExp?_0x201fa4=>!(!_0x201fa4[_0x49dfeb(0x1d6)](_0xa31cec)&&!_0x201fa4[_0x49dfeb(0x1e1)](/^https?:\/\//,'')[_0x49dfeb(0x1d6)](_0xa31cec)):()=>!0x1;}function _0x5a63(){const _0x3bfca4=['mapper','join','8617vTbHjz','hasAttribute','px)\x20100vw,\x20','map','12QhyrxW','window','load','plugins','domConverter','image-processing','607895SYSADX','x/\x20','345816dUwErB','1494mibOtd','some','uploadcareImageId','setStyle','filter','addClass','function','imageBlock','image/webp','getAttribute','match','imageInline','document','stopListening','(max-width:\x20','ImageUtils','toViewElement','element','src','width','45XGYKms','replace','baseURI','view','origin','removeClass','isArray','height','aspect-ratio','/-/resize/','findViewImgElement','2202304RBmbgP','260817DUlwhE','change','listenTo','location','339896fxGXHi','removeStyle','get','viewToDom','editing','166010sIWjYf'];_0x5a63=function(){return _0x3bfca4;};return _0x5a63();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2c08(_0xed97fa,_0x178199){var _0x304bd4=_0x304b();return _0x2c08=function(_0x2c08a6,_0x10bbc8){_0x2c08a6=_0x2c08a6-0x18b;var _0x18f280=_0x304bd4[_0x2c08a6];return _0x18f280;},_0x2c08(_0xed97fa,_0x178199);}(function(_0x4e1db2,_0xca298c){var _0x505ae9=_0x2c08,_0x17aa32=_0x4e1db2();while(!![]){try{var _0x4f37da=parseInt(_0x505ae9(0x192))/0x1+-parseInt(_0x505ae9(0x191))/0x2+-parseInt(_0x505ae9(0x18c))/0x3*(-parseInt(_0x505ae9(0x190))/0x4)+parseInt(_0x505ae9(0x197))/0x5*(parseInt(_0x505ae9(0x18b))/0x6)+parseInt(_0x505ae9(0x18e))/0x7*(-parseInt(_0x505ae9(0x196))/0x8)+-parseInt(_0x505ae9(0x195))/0x9+parseInt(_0x505ae9(0x18d))/0xa*(parseInt(_0x505ae9(0x18f))/0xb);if(_0x4f37da===_0xca298c)break;else _0x17aa32['push'](_0x17aa32['shift']());}catch(_0x58298a){_0x17aa32['push'](_0x17aa32['shift']());}}}(_0x304b,0xf0e50));function _0x304b(){var _0x3e5b3b=['4844aMRChS','3542870ECAeMR','1701211JCUpBZ','target','includes','16863543dkOqYv','15595912CYlYSd','3450260EKBcnr','6JzLMoi','771DDVlwl','150RGjboM','7QfOdLL','2844501HLxoYy'];_0x304b=function(){return _0x3e5b3b;};return _0x304b();}import{getAncestors as _0x1e3514}from'ckeditor5/src/utils.js';export function isAncestor(_0x228acf,_0x3ec1e0){var _0x5efa16=_0x2c08;return _0x1e3514(_0x228acf[_0x5efa16(0x193)])[_0x5efa16(0x194)](_0x3ec1e0);}
23
+ (function(_0x35d927,_0x299466){var _0x5eb4e8=_0x3e81,_0x184e02=_0x35d927();while(!![]){try{var _0x3b9c2d=parseInt(_0x5eb4e8(0x17a))/0x1*(parseInt(_0x5eb4e8(0x17b))/0x2)+-parseInt(_0x5eb4e8(0x17e))/0x3+parseInt(_0x5eb4e8(0x17c))/0x4+parseInt(_0x5eb4e8(0x175))/0x5*(parseInt(_0x5eb4e8(0x177))/0x6)+parseInt(_0x5eb4e8(0x17f))/0x7+parseInt(_0x5eb4e8(0x179))/0x8+-parseInt(_0x5eb4e8(0x176))/0x9;if(_0x3b9c2d===_0x299466)break;else _0x184e02['push'](_0x184e02['shift']());}catch(_0x77b3f){_0x184e02['push'](_0x184e02['shift']());}}}(_0x4d91,0x27c4a));function _0x3e81(_0x3b1f9b,_0x96c96a){var _0x4d915b=_0x4d91();return _0x3e81=function(_0x3e813e,_0x2d725a){_0x3e813e=_0x3e813e-0x175;var _0x510cba=_0x4d915b[_0x3e813e];return _0x510cba;},_0x3e81(_0x3b1f9b,_0x96c96a);}import{getAncestors as _0x2ddc7b}from'ckeditor5/src/utils.js';export function isAncestor(_0x35aab7,_0x5500da){var _0x446706=_0x3e81;return _0x2ddc7b(_0x35aab7[_0x446706(0x17d)])[_0x446706(0x178)](_0x5500da);}function _0x4d91(){var _0x194fd0=['includes','1108344tzUXyc','61AbgBYH','6166LTbuVG','476548pbhYtR','target','286575kKohXT','1695820cqcXVb','38910EgQPYk','4916862SiEpiQ','90QUOrwT'];_0x4d91=function(){return _0x194fd0;};return _0x4d91();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x17d2a3=_0x1d3f;function _0x1d3f(_0x4970ec,_0x5eef95){var _0x16a165=_0x16a1();return _0x1d3f=function(_0x1d3fd6,_0x323e8b){_0x1d3fd6=_0x1d3fd6-0xc1;var _0x5620f1=_0x16a165[_0x1d3fd6];return _0x5620f1;},_0x1d3f(_0x4970ec,_0x5eef95);}function _0x16a1(){var _0x5d9c1f=['478224zfkovN','getInfo','upload','165mtDOKj','8DeMRjJ','19590852bQAlue','5785974haEstK','2CisFRh','90112ttIjgl','19430Aaduwg','11qiiKUg','6244679zRFQcS','9JVIEak','387041NAhGQr'];_0x16a1=function(){return _0x5d9c1f;};return _0x16a1();}(function(_0x1237e2,_0x559745){var _0x516905=_0x1d3f,_0x2b7936=_0x1237e2();while(!![]){try{var _0x373b6d=-parseInt(_0x516905(0xcc))/0x1*(parseInt(_0x516905(0xc6))/0x2)+parseInt(_0x516905(0xcd))/0x3+-parseInt(_0x516905(0xc7))/0x4*(parseInt(_0x516905(0xc2))/0x5)+parseInt(_0x516905(0xc5))/0x6+-parseInt(_0x516905(0xca))/0x7*(parseInt(_0x516905(0xc3))/0x8)+parseInt(_0x516905(0xcb))/0x9*(parseInt(_0x516905(0xc8))/0xa)+parseInt(_0x516905(0xc9))/0xb*(parseInt(_0x516905(0xc4))/0xc);if(_0x373b6d===_0x559745)break;else _0x2b7936['push'](_0x2b7936['shift']());}catch(_0x3a0a22){_0x2b7936['push'](_0x2b7936['shift']());}}}(_0x16a1,0xb39c9));import{uploadFile as _0x1db526,info as _0x58c7c8}from'@uploadcare/upload-client';export class UploadUtils{static[_0x17d2a3(0xc1)]({file:_0x2a17b0,..._0x861574}){return _0x1db526(_0x2a17b0,_0x861574);}static[_0x17d2a3(0xce)](_0xbc2bb4,_0x2900c0){return _0x58c7c8(_0xbc2bb4,_0x2900c0);}}
23
+ var _0x2ebafd=_0x482c;(function(_0x6b1d79,_0x562a1c){var _0x2b7afe=_0x482c,_0x441a8d=_0x6b1d79();while(!![]){try{var _0x3a31a4=parseInt(_0x2b7afe(0x1d2))/0x1*(parseInt(_0x2b7afe(0x1cf))/0x2)+-parseInt(_0x2b7afe(0x1d3))/0x3+parseInt(_0x2b7afe(0x1ce))/0x4*(parseInt(_0x2b7afe(0x1d0))/0x5)+-parseInt(_0x2b7afe(0x1d1))/0x6*(-parseInt(_0x2b7afe(0x1cc))/0x7)+-parseInt(_0x2b7afe(0x1d4))/0x8+-parseInt(_0x2b7afe(0x1cd))/0x9+parseInt(_0x2b7afe(0x1cb))/0xa;if(_0x3a31a4===_0x562a1c)break;else _0x441a8d['push'](_0x441a8d['shift']());}catch(_0x2d8c27){_0x441a8d['push'](_0x441a8d['shift']());}}}(_0x148a,0xccff8));import{uploadFile as _0x521b23,info as _0x3e620b}from'@uploadcare/upload-client';function _0x482c(_0x5d775e,_0xe5b732){var _0x148ac2=_0x148a();return _0x482c=function(_0x482cf1,_0x2eacab){_0x482cf1=_0x482cf1-0x1ca;var _0x240c11=_0x148ac2[_0x482cf1];return _0x240c11;},_0x482c(_0x5d775e,_0xe5b732);}export class UploadUtils{static[_0x2ebafd(0x1d5)]({file:_0x39383d,..._0x49045d}){return _0x521b23(_0x39383d,_0x49045d);}static[_0x2ebafd(0x1ca)](_0x4ab29c,_0x283275){return _0x3e620b(_0x4ab29c,_0x283275);}}function _0x148a(){var _0x4991c5=['6198903TzXVNq','593148hrnuzr','76azNgth','5eRNGBm','1088898VtPLoB','9920UnXUGS','3951561JHxGbH','4426120jMqJOv','upload','getInfo','26921610ulQuHm','7AKnGVk'];_0x148a=function(){return _0x4991c5;};return _0x148a();}