@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250216.0 → 0.0.0-nightly-next-20250217.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.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x52ab4f,ObservableMixin as _0x54be45}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3f9232}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xcdccdf}from'ckeditor5/src/icons.js';import _0x496eeb from'./uploadcareimageeditformview.js';import _0x27ed75 from'../../utils/uploadutils.js';import{getImageUrls as _0xa0e2d2,getImageDimension as _0x469bb4}from'../../utils/editingutils.js';import{isAncestor as _0x451b3a}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x54be45(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1ba87b,_0x45785a,_0x42857f){super(),this['_editor']=_0x1ba87b,this['_dialog']=_0x45785a,this['_imageElement']=_0x42857f,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 _0x2e6581=this['_imageElement'],_0x1059e1=_0x2e6581['getAttribute']('uploadcareImageId'),_0x1641e8=_0x2e6581['getAttribute']('src');if(_0x1059e1)await this['_loadImageInfo'](_0x1059e1,_0x1641e8);else{if(this['_imageCache']['has'](_0x1641e8)){const _0xc78ea1=this['_imageCache']['get'](_0x1641e8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xc78ea1['url'],this['imageDimension']=_0xc78ea1['dimension'],this['imageId']=_0xc78ea1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x29f398}=this['_editor'],t=_0x29f398['t'],_0x5b6fed=new _0x496eeb(_0x29f398,this['imageStatus'],this['_attributes']);_0x5b6fed['bind']('status')['to'](this,'imageStatus'),_0x5b6fed['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5b6fed['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5b6fed['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5b6fed,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xcdccdf,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5b6fed,'position':_0x3f9232['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5b6fed['focus']();},'onHide':()=>{_0x5b6fed['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xd9109=>!_0x451b3a(_0xd9109,_0x5b6fed['element'])}});}['_loadImageInfo'](_0xd914f0,_0x12c942){return _0x27ed75['getInfo'](_0xd914f0,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3c4cbf=>{const {width:_0x3f0c95,height:_0x21139a}=_0x3c4cbf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x12c942,this['imageDimension']={'width':_0x3f0c95,'height':_0x21139a},this['imageId']=_0xd914f0;})['catch'](_0x2c8ac9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c8ac9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x451f3c,_0x50a437){return this['_getImageAsFile'](_0x451f3c)['then'](_0x10625e=>_0x27ed75['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x50a437['signal'],'file':_0x10625e,'onProgress':_0x76db20=>{_0x76db20&&_0x76db20['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x76db20['value']));}}))['then'](_0x421778=>{const {width:_0x4cd114,height:_0x4b8f13}=_0x421778['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x421778['cdnUrl'],this['imageDimension']={'width':_0x4cd114,'height':_0x4b8f13},this['imageId']=_0x421778['uuid'],this['imageUploadProgress']=null;const _0x5a1f86=_0x451f3c['getAttribute']('src');this['_imageCache']['set'](_0x5a1f86,{'id':_0x421778['uuid'],'url':_0x421778['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xfa4104=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xfa4104['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1d690d,_0x1fba2e){_0x1d690d['on']('apply',(_0x453363,_0x19f61f)=>{this['_replaceImage'](_0x1fba2e,_0x19f61f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1d690d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1d690d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5525ec,_0x1e8c51,_0x1b4549){const _0x4511a9=this['_editor'],{width:_0x384c8a,height:_0x4711bc}=_0x469bb4(_0x1e8c51,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x494b51,imageSources:_0x20aa3b}=_0xa0e2d2(_0x1e8c51,_0x384c8a);_0x4511a9['model']['change'](_0x1a89eb=>{if('$graveyard'===_0x5525ec['root']['rootName']){_0x4511a9['execute']('insertImage',{'imageType':_0x5525ec['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5525ec['getAttributes']()),'uploadcareImageId':_0x1b4549,'src':_0x494b51,'sources':_0x20aa3b,'width':_0x384c8a,'height':_0x4711bc}});const _0x51b55a=_0x5525ec['getChildren']();_0x5525ec=_0x4511a9['model']['document']['selection']['getSelectedElement']();for(const _0x20ac81 of _0x51b55a)_0x1a89eb['append'](_0x1a89eb['cloneElement'](_0x20ac81),_0x5525ec);}else _0x1a89eb['setSelection'](_0x5525ec,'on'),_0x4511a9['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5525ec['getAttributes']()),'uploadcareImageId':_0x1b4549,'src':_0x494b51,'sources':_0x20aa3b,'width':_0x384c8a,'height':_0x4711bc},_0x5525ec);_0x1a89eb['setSelection'](_0x5525ec,'on');});}async['_getImageAsFile'](_0x3222c6){const _0x228d8c=_0x52ab4f['window'],_0xe1b631=_0x52ab4f['document']['location']['href'],_0x35e30a=new _0x228d8c['URL'](_0x3222c6['getAttribute']('src'),_0xe1b631);if('data:'===_0x35e30a['protocol']){const _0x7251ca=_0x35e30a['href']['split'](','),_0x2dc3fd=_0x7251ca[0x0]['match'](/:(.*?);/)[0x1],_0x407f6d=_0x2dc3fd['split']('/')[0x1],_0x51bf9b=_0x228d8c['atob'](_0x7251ca[_0x7251ca['length']-0x1]);let _0x2d6107=_0x51bf9b['length'];const _0x165dbf=new _0x228d8c['Uint8Array'](_0x2d6107);for(;_0x2d6107--;)_0x165dbf[_0x2d6107]=_0x51bf9b['charCodeAt'](_0x2d6107);return new _0x228d8c['File']([_0x165dbf],'image.'+_0x407f6d,{'type':_0x2dc3fd});}const _0x2c4255=_0x35e30a['href']['split']('/'),_0x294035=_0x2c4255[_0x2c4255['length']-0x1],_0x32549b=_0x294035['split']('.')[0x1];return _0x228d8c['fetch'](_0x35e30a['href'])['then'](_0x4edeb0=>_0x4edeb0['clone']()['blob']())['then'](_0x53200b=>new _0x228d8c['File']([_0x53200b],_0x294035,{'type':'image/'+_0x32549b}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5aaf(_0x288eba,_0x26a1a5){const _0x2ff4df=_0x2ff4();return _0x5aaf=function(_0x5aafad,_0x3e8a11){_0x5aafad=_0x5aafad-0x9e;let _0x17fcc9=_0x2ff4df[_0x5aafad];return _0x17fcc9;},_0x5aaf(_0x288eba,_0x26a1a5);}function _0x2ff4(){const _0x49d61d=['66fYxjkg','set','imageSrc','image-edit','392995bOVMkN','7ASXTKs','5771491meDQtw','4OurQFo','bindTemplate','setTemplate','uc-light','uc-cloud-image-editor','16RukLHV','100wbBgxS','189903TvKPKh','873135PzIPAs','43653nWBjMM','23676636HzcJgb','13aqYpNr','ck-uploadcare-theme','7005104vqFkNc'];_0x2ff4=function(){return _0x49d61d;};return _0x2ff4();}(function(_0x45cac0,_0x3bdad9){const _0x3b98e7=_0x5aaf,_0x26c00d=_0x45cac0();while(!![]){try{const _0x7ed29a=parseInt(_0x3b98e7(0xad))/0x1*(-parseInt(_0x3b98e7(0xa4))/0x2)+parseInt(_0x3b98e7(0xab))/0x3*(parseInt(_0x3b98e7(0xa9))/0x4)+-parseInt(_0x3b98e7(0xa1))/0x5*(-parseInt(_0x3b98e7(0xb2))/0x6)+-parseInt(_0x3b98e7(0xa2))/0x7*(parseInt(_0x3b98e7(0xb1))/0x8)+parseInt(_0x3b98e7(0xac))/0x9*(-parseInt(_0x3b98e7(0xaa))/0xa)+-parseInt(_0x3b98e7(0xa3))/0xb+parseInt(_0x3b98e7(0xae))/0xc*(parseInt(_0x3b98e7(0xaf))/0xd);if(_0x7ed29a===_0x3bdad9)break;else _0x26c00d['push'](_0x26c00d['shift']());}catch(_0x4114f5){_0x26c00d['push'](_0x26c00d['shift']());}}}(_0x2ff4,0x9a8ef));import{View as _0x44484d}from'ckeditor5/src/ui.js';export default class tt extends _0x44484d{constructor(_0x320ab7,_0x228270){const _0x271079=_0x5aaf;super(_0x320ab7);const _0x565a39=this[_0x271079(0xa5)];this[_0x271079(0x9e)](_0x271079(0x9f),''),this[_0x271079(0xa6)]({'tag':_0x271079(0xa8),'attributes':{..._0x228270,'class':[_0x271079(0xa7),_0x271079(0xb0)],'ctx-name':_0x271079(0xa0),'cdn-url':_0x565a39['to'](_0x271079(0x9f))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x569baf,IconView as at,View as _0xc0f1ea}from'ckeditor5/src/ui.js';export default class rt extends _0xc0f1ea{constructor(_0x1cd1a6){super(_0x1cd1a6);const t=_0x1cd1a6['t'];this['set']('errorType',null);const _0xd476c9=new _0x569baf(_0x1cd1a6);_0xd476c9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xd476c9['withText']=!0x0,_0xd476c9['class']='ck-button-action',_0xd476c9['on']('execute',()=>{this['fire']('retry');}),_0xd476c9['bind']('isVisible')['to'](this,'errorType',_0x27585a=>'NotFound'!==_0x27585a);const _0x3b7847=new at();_0x3b7847['content']=et,_0x3b7847['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x214e8e=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':[_0x3b7847,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x214e8e['to']('errorType',_0x416baa=>t('NotFound'!==_0x416baa?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xd476c9]},{'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
|
|
23
|
+
import{SpinnerView as _0x4b290e,View as _0x24c9de}from'ckeditor5/src/ui.js';export default class ta extends _0x24c9de{constructor(_0x4cdc62){super(_0x4cdc62);const t=_0x4cdc62['t'],_0x556013=this['bindTemplate'],_0x4a9c6d=new _0x4b290e();_0x4a9c6d['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':[_0x4a9c6d,{'text':_0x556013['to']('imageUploadProgress',_0x256dd8=>t('Loading\x20image...')+'\x20('+(_0x256dd8||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0xec9ed8=_0x4ee5;function _0x4ee5(_0x5dd861,_0x2da0b8){const _0x2a6689=_0x2a66();return _0x4ee5=function(_0x4ee5b7,_0x16bfae){_0x4ee5b7=_0x4ee5b7-0xd3;let _0x7285e=_0x2a6689[_0x4ee5b7];return _0x7285e;},_0x4ee5(_0x5dd861,_0x2da0b8);}(function(_0x5b71d8,_0x29a86d){const _0x29e312=_0x4ee5,_0x190890=_0x5b71d8();while(!![]){try{const _0x1458c0=-parseInt(_0x29e312(0xec))/0x1+-parseInt(_0x29e312(0xde))/0x2*(-parseInt(_0x29e312(0xff))/0x3)+-parseInt(_0x29e312(0x106))/0x4+parseInt(_0x29e312(0xe9))/0x5+-parseInt(_0x29e312(0xe0))/0x6*(-parseInt(_0x29e312(0xf7))/0x7)+-parseInt(_0x29e312(0x100))/0x8+-parseInt(_0x29e312(0xf2))/0x9;if(_0x1458c0===_0x29a86d)break;else _0x190890['push'](_0x190890['shift']());}catch(_0x5b7553){_0x190890['push'](_0x190890['shift']());}}}(_0x2a66,0xac59b));import{View as _0xcfe988}from'ckeditor5/src/ui.js';import _0x41e050 from'./uploadcareimageeditformloadingview.js';import _0x577081 from'./uploadcareimageeditformerrorview.js';import _0x21dc97 from'./uploadcareimageeditformeditingview.js';import _0x2e9fde from'../../utils/dialogfocusmanagerview.js';function _0x2a66(){const _0x4f57a5=['setTemplate','81BCTsdA','6367000sXXtoF','_errorView','ready','ck-reset_all-excluded','_loadingView','nodeName','613680ZujPgm','cancel','uploading','disconnect','createCollection','_waitForImageEditorComponent','addEventListener','filter','once','set','apply','element','_items','_focusableView','56666AdssXC','cdnUrl','6TsBshy','retry','target','add','addedNodes','querySelector','render','length','focus','687355dvpOhJ','ck-uploadcare-form','detail','515461wonqAd','getFocusableElement','addMany','fire','_setView','observe','680274DNvvDU','uc-cloud-image-editor','_addUploadcareImageEditorListeners','change:status','status','9406789TKrdjZ','toLowerCase','div','_addErrorViewListeners','error','clear','_editingView'];_0x2a66=function(){return _0x4f57a5;};return _0x2a66();}import'../../../theme/uploadcare-form.css';export default class ii extends _0x2e9fde{[_0xec9ed8(0xdc)];[_0xec9ed8(0x104)];[_0xec9ed8(0x101)];[_0xec9ed8(0xfd)];[_0xec9ed8(0xdd)];constructor(_0x352d70,_0x43b064,_0x2d0210){const _0x4611ff=_0xec9ed8;super(_0x352d70),this[_0x4611ff(0xdc)]=this[_0x4611ff(0xd4)](),this[_0x4611ff(0x104)]=new _0x41e050(_0x352d70),this[_0x4611ff(0x101)]=new _0x577081(_0x352d70),this[_0x4611ff(0xfd)]=new _0x21dc97(_0x352d70,_0x2d0210),this[_0x4611ff(0xdd)]=new _0xcfe988(_0x352d70),this[_0x4611ff(0xdd)][_0x4611ff(0xfe)](this[_0x4611ff(0xed)]()),this[_0x4611ff(0xd9)](_0x4611ff(0xf6),_0x43b064),this[_0x4611ff(0xfe)]({'tag':_0x4611ff(0xf9),'attributes':{'class':['ck',_0x4611ff(0x103),_0x4611ff(0xea)],'tabindex':'-1'},'children':this[_0x4611ff(0xdc)]}),this[_0x4611ff(0xf0)](),this[_0x4611ff(0xd8)](_0x4611ff(0xe6),()=>{const _0xcf9752=_0x4611ff;this[_0xcf9752(0xd5)](this[_0xcf9752(0xdb)],_0xa46cfe=>{const _0x4496a0=_0xcf9752;this[_0x4496a0(0xf4)](_0xa46cfe);});}),this['on'](_0x4611ff(0xf5),()=>{const _0x740733=_0x4611ff;this[_0x740733(0xf0)]();}),this[_0x4611ff(0xfa)]();}[_0xec9ed8(0xe8)](){const _0x53133e=_0xec9ed8;this[_0x53133e(0xdb)][_0x53133e(0xe8)]();}[_0xec9ed8(0xf0)](){const _0x4bd5ba=_0xec9ed8;switch(this[_0x4bd5ba(0xdc)][_0x4bd5ba(0xfc)](),this[_0x4bd5ba(0xf6)]){case _0x4bd5ba(0x108):this[_0x4bd5ba(0xdc)][_0x4bd5ba(0xe3)](this[_0x4bd5ba(0x104)]);break;case _0x4bd5ba(0xfb):this[_0x4bd5ba(0xdc)][_0x4bd5ba(0xe3)](this[_0x4bd5ba(0x101)]);break;case _0x4bd5ba(0x102):this[_0x4bd5ba(0xdc)][_0x4bd5ba(0xee)]([this[_0x4bd5ba(0xfd)],this[_0x4bd5ba(0xdd)]]);}}[_0xec9ed8(0xd5)](_0x41cff8,_0x27e881){const _0x11ecad=_0xec9ed8,_0x544f4f=_0x11ecad(0xf3),_0x16c75a=_0x41cff8[_0x11ecad(0xe5)](_0x544f4f);if(_0x16c75a)return _0x27e881(_0x16c75a);const _0x4dda62=new MutationObserver(_0x2a752c=>{const _0xfa4941=_0x11ecad,_0x48ba46=_0x2a752c[_0xfa4941(0xd7)](_0xe08fe5=>_0xe08fe5[_0xfa4941(0xe2)]===_0x41cff8&&_0xe08fe5[_0xfa4941(0xe4)][_0xfa4941(0xe7)]>0x0&&_0xe08fe5[_0xfa4941(0xe4)][0x0][_0xfa4941(0x105)][_0xfa4941(0xf8)]()===_0x544f4f);_0x48ba46[_0xfa4941(0xe7)]&&(_0x4dda62[_0xfa4941(0xd3)](),_0x27e881(_0x48ba46[0x0][_0xfa4941(0xe4)][0x0]));});_0x4dda62[_0x11ecad(0xf1)](_0x41cff8,{'childList':!0x0,'subtree':!0x0});}[_0xec9ed8(0xf4)](_0xa8f3){const _0x3844d9=_0xec9ed8;_0xa8f3[_0x3844d9(0xd6)](_0x3844d9(0xda),_0x3d7f10=>{const _0x3269f8=_0x3844d9;this[_0x3269f8(0xef)](_0x3269f8(0xda),{'imageSrc':_0x3d7f10[_0x3269f8(0xeb)][_0x3269f8(0xdf)]});}),_0xa8f3[_0x3844d9(0xd6)](_0x3844d9(0x107),()=>{const _0x4802bb=_0x3844d9;this[_0x4802bb(0xef)](_0x4802bb(0x107));});}[_0xec9ed8(0xfa)](){const _0x4dc0da=_0xec9ed8;this[_0x4dc0da(0x101)]['on'](_0x4dc0da(0xe1),()=>{const _0x485d39=_0x4dc0da;this[_0x485d39(0xef)](_0x485d39(0xe1));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x1b6f21=_0x45f1;function _0x454d(){const _0x15c3e9=['editor','5677342hZNWsJ','config','refresh','645BtTiYQ','3593528nrnWNf','20etQMSE','32178hoWErE','plugins','selection','isActive','imageInline','34359BaDUZX','bind','isEnabled','requires','9384EZNuEK','get','3USZliI','76621MjIRxb','18smoHYR','uploadcare.allowExternalImagesEditing','_isEditable','311633HTigOy','set','element','258676UAToMG','imageBlock','unbind','26xJdlJv','document','getSelectedElement','model','execute','imageEditController'];_0x454d=function(){return _0x15c3e9;};return _0x454d();}(function(_0x386d04,_0x2e840c){const _0x1affb9=_0x45f1,_0x4c681d=_0x386d04();while(!![]){try{const _0x2b9259=parseInt(_0x1affb9(0x188))/0x1*(-parseInt(_0x1affb9(0x16f))/0x2)+-parseInt(_0x1affb9(0x187))/0x3*(-parseInt(_0x1affb9(0x18f))/0x4)+-parseInt(_0x1affb9(0x179))/0x5*(parseInt(_0x1affb9(0x17c))/0x6)+-parseInt(_0x1affb9(0x18c))/0x7+parseInt(_0x1affb9(0x17a))/0x8*(-parseInt(_0x1affb9(0x189))/0x9)+parseInt(_0x1affb9(0x17b))/0xa*(parseInt(_0x1affb9(0x176))/0xb)+parseInt(_0x1affb9(0x185))/0xc*(parseInt(_0x1affb9(0x181))/0xd);if(_0x2b9259===_0x2e840c)break;else _0x4c681d['push'](_0x4c681d['shift']());}catch(_0x199b50){_0x4c681d['push'](_0x4c681d['shift']());}}}(_0x454d,0x821ca));import{Command as _0x24dab3}from'ckeditor5/src/core.js';function _0x45f1(_0x14a9d3,_0x4e5b81){const _0x454d9c=_0x454d();return _0x45f1=function(_0x45f1ec,_0x132eb8){_0x45f1ec=_0x45f1ec-0x16e;let _0x257edb=_0x454d9c[_0x45f1ec];return _0x257edb;},_0x45f1(_0x14a9d3,_0x4e5b81);}import{Dialog as _0x13e331}from'ckeditor5/src/ui.js';import _0x55c2db from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x4cf580}from'../utils/editingutils.js';export default class J extends _0x24dab3{[_0x1b6f21(0x174)];static get[_0x1b6f21(0x184)](){return[_0x13e331];}[_0x1b6f21(0x18b)];constructor(_0x3c78d7){const _0x298151=_0x1b6f21;super(_0x3c78d7),this[_0x298151(0x174)]=void 0x0,this[_0x298151(0x18b)]=_0x4cf580(_0x3c78d7[_0x298151(0x177)][_0x298151(0x186)](_0x298151(0x18a))||[]),this[_0x298151(0x18d)]({'isActive':!0x1});}[_0x1b6f21(0x178)](){const _0x1e0360=_0x1b6f21,_0x599c38=this[_0x1e0360(0x175)][_0x1e0360(0x172)][_0x1e0360(0x170)][_0x1e0360(0x17e)][_0x1e0360(0x171)]();this[_0x1e0360(0x183)]=this[_0x1e0360(0x18b)](_0x599c38);}[_0x1b6f21(0x173)](){const _0x467794=_0x1b6f21;this[_0x467794(0x174)]&&(this[_0x467794(0x16e)](_0x467794(0x17f)),this[_0x467794(0x174)]=void 0x0);const _0xb389de=this[_0x467794(0x175)][_0x467794(0x172)][_0x467794(0x170)][_0x467794(0x17e)][_0x467794(0x171)]();_0xb389de&&(_0xb389de['is'](_0x467794(0x18e),_0x467794(0x190))||_0xb389de['is'](_0x467794(0x18e),_0x467794(0x180)))&&(this[_0x467794(0x174)]=new _0x55c2db(this[_0x467794(0x175)],this[_0x467794(0x175)][_0x467794(0x17d)][_0x467794(0x186)](_0x13e331),_0xb389de),this[_0x467794(0x182)](_0x467794(0x17f))['to'](this[_0x467794(0x174)],_0x467794(0x17f)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x472b(_0x3abb2f,_0x479176){const _0x16feb4=_0x16fe();return _0x472b=function(_0x472bf4,_0x40e40e){_0x472bf4=_0x472bf4-0xfc;let _0x10c887=_0x16feb4[_0x472bf4];return _0x10c887;},_0x472b(_0x3abb2f,_0x479176);}const _0x105101=_0x472b;(function(_0xfcc006,_0x32144b){const _0x300a8e=_0x472b,_0x4aa18f=_0xfcc006();while(!![]){try{const _0x1cbfc8=parseInt(_0x300a8e(0x10a))/0x1+parseInt(_0x300a8e(0x101))/0x2*(parseInt(_0x300a8e(0x10c))/0x3)+-parseInt(_0x300a8e(0x100))/0x4*(-parseInt(_0x300a8e(0x109))/0x5)+parseInt(_0x300a8e(0x110))/0x6*(parseInt(_0x300a8e(0x105))/0x7)+-parseInt(_0x300a8e(0xfd))/0x8*(-parseInt(_0x300a8e(0x111))/0x9)+parseInt(_0x300a8e(0x10b))/0xa+parseInt(_0x300a8e(0x108))/0xb*(-parseInt(_0x300a8e(0x10e))/0xc);if(_0x1cbfc8===_0x32144b)break;else _0x4aa18f['push'](_0x4aa18f['shift']());}catch(_0x444769){_0x4aa18f['push'](_0x4aa18f['shift']());}}}(_0x16fe,0x7c66a));import{Plugin as _0x53cd2b}from'ckeditor5/src/core.js';import{Notification as _0x5a8828}from'ckeditor5/src/ui.js';function _0x16fe(){const _0x42dffb=['add','12DVdHZe','isPremiumPlugin','4555422XFBsGI','113517WPAJiG','UploadcareImageEditEditing','commands','ImageUtils','376fnYmcN','requires','isOfficialPlugin','4JGSAuv','182QtBvQD','init','uploadcareImageReplace','ImageEditing','7oCdqpH','pluginName','uploadcareImageEdit','24488233shWVld','3140145mypVqT','3406AvGazO','4276690kTbVQw','10701ZoBzAh'];_0x16fe=function(){return _0x42dffb;};return _0x16fe();}import _0x4c6780 from'./uploadcareimageeditcommand.js';import _0x20fed0 from'./uploadcareimagereplacecommand.js';import _0x5dcaea from'../uploadcareediting.js';export default class g extends _0x53cd2b{static get[_0x105101(0x106)](){const _0x5e9515=_0x105101;return _0x5e9515(0x112);}static get[_0x105101(0xfe)](){const _0x2a4345=_0x105101;return[_0x5dcaea,_0x5a8828,_0x2a4345(0xfc),_0x2a4345(0x104)];}static get[_0x105101(0xff)](){return!0x0;}static get[_0x105101(0x10f)](){return!0x0;}[_0x105101(0x102)](){const _0x5a59e8=_0x105101,{editor:_0x3cdf6e}=this;_0x3cdf6e[_0x5a59e8(0x113)][_0x5a59e8(0x10d)](_0x5a59e8(0x107),new _0x4c6780(_0x3cdf6e)),_0x3cdf6e[_0x5a59e8(0x113)][_0x5a59e8(0x10d)](_0x5a59e8(0x103),new _0x20fed0(_0x3cdf6e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3f8840}from'ckeditor5/src/core.js';import{ButtonView as _0x22a6ad}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x55834b}from'ckeditor5/src/icons.js';import{createElement as _0x2c6c4d}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x3f8840{['_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 _0x62ab49=this['editor'];_0x62ab49['ui']['componentFactory']['add']('uploadcareImageEdit',_0x50a700=>{const _0x4de262=_0x62ab49['commands']['get']('uploadcareImageEdit'),_0x200c59=new _0x22a6ad(_0x50a700),t=_0x50a700['t'];return _0x200c59['set']({'icon':_0x55834b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x200c59['bind']('isEnabled')['to'](_0x4de262),_0x200c59['bind']('isOn')['to'](_0x4de262,'isActive'),this['listenTo'](_0x200c59,'execute',()=>{_0x62ab49['execute']('uploadcareImageEdit'),_0x62ab49['editing']['view']['focus']();}),_0x200c59;}),this['_initConfig']();}['_initConfig'](){const _0x53a9e1=_0x2c6c4d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x53a9e1),this['listenTo'](this['editor'],'destroy',()=>{_0x53a9e1['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x1b00c6=_0x4f12;function _0x4d71(){var _0x15d225=['bindTemplate','createCollection','17lCnrji','6CIDWNl','26341qzQAJI','true','focusCycler','getFocusableElement','forwardCycle','div','59404yHHory','3399273opPwJr','75KveMBT','202378oEFchh','focusTracker','708cGULwC','10989950FjmuIP','175822AEBcuI','2824WcCtlM','fire','3830835VdDSgN'];_0x4d71=function(){return _0x15d225;};return _0x4d71();}(function(_0x501b7c,_0x590d3e){var _0x460065=_0x4f12,_0x5c73f2=_0x501b7c();while(!![]){try{var _0x10ad90=-parseInt(_0x460065(0x72))/0x1*(-parseInt(_0x460065(0x6c))/0x2)+parseInt(_0x460065(0x7c))/0x3*(-parseInt(_0x460065(0x7a))/0x4)+-parseInt(_0x460065(0x6f))/0x5*(-parseInt(_0x460065(0x73))/0x6)+-parseInt(_0x460065(0x74))/0x7*(parseInt(_0x460065(0x6d))/0x8)+parseInt(_0x460065(0x7b))/0x9+-parseInt(_0x460065(0x6b))/0xa+-parseInt(_0x460065(0x68))/0xb*(-parseInt(_0x460065(0x6a))/0xc);if(_0x10ad90===_0x590d3e)break;else _0x5c73f2['push'](_0x5c73f2['shift']());}catch(_0x1888bc){_0x5c73f2['push'](_0x5c73f2['shift']());}}}(_0x4d71,0xe1e28));import{FocusTracker as _0x5197bb}from'ckeditor5/src/utils.js';function _0x4f12(_0x1bde81,_0x3a37c5){var _0x4d7178=_0x4d71();return _0x4f12=function(_0x4f12e9,_0x3e80e8){_0x4f12e9=_0x4f12e9-0x68;var _0x673125=_0x4d7178[_0x4f12e9];return _0x673125;},_0x4f12(_0x1bde81,_0x3a37c5);}import{View as _0x4c4987,FocusCycler as _0x215f5e}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x4c4987{[_0x1b00c6(0x69)];[_0x1b00c6(0x76)];constructor(_0x405ade){var _0xdaf2c5=_0x1b00c6;super(_0x405ade),this[_0xdaf2c5(0x69)]=new _0x5197bb(),this[_0xdaf2c5(0x76)]=new _0x215f5e({'focusables':this[_0xdaf2c5(0x71)](),'focusTracker':this[_0xdaf2c5(0x69)]});}[_0x1b00c6(0x77)](){var _0x9ce76d=_0x1b00c6;return{'tag':_0x9ce76d(0x79),'attributes':{'aria-hidden':_0x9ce76d(0x75),'tabindex':'0'},'on':{'focus':this[_0x9ce76d(0x70)]['to'](()=>{var _0x185d11=_0x9ce76d;this[_0x185d11(0x76)][_0x185d11(0x6e)](_0x185d11(0x78));})}};}}
|