@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250315.0 → 0.0.0-nightly-20250317.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/utils/dialogfocusmanagerview.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x4064d2,ObservableMixin as _0x4ab7b7}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x37f546}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4e401f}from'ckeditor5/src/icons.js';import _0x286ba0 from'./uploadcareimageeditformview.js';import _0x31485c from'../../utils/uploadutils.js';import{getImageUrls as _0x476ffa,getImageDimension as _0x2e3341}from'../../utils/editingutils.js';import{isAncestor as _0x10998a}from'../../utils/isancestor.js';export default class A extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4ab7b7(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2752b7,_0x475cb5,_0x1b5aa2){super(),this['_editor']=_0x2752b7,this['_dialog']=_0x475cb5,this['_imageElement']=_0x1b5aa2,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 _0x1204f9=this['_imageElement'],_0x148814=_0x1204f9['getAttribute']('uploadcareImageId'),_0x47b723=_0x1204f9['getAttribute']('src');if(_0x148814)await this['_loadImageInfo'](_0x148814,_0x47b723);else{if(this['_imageCache']['has'](_0x47b723)){const _0x26dc69=this['_imageCache']['get'](_0x47b723);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x26dc69['url'],this['imageDimension']=_0x26dc69['dimension'],this['imageId']=_0x26dc69['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x585d00}=this['_editor'],t=_0x585d00['t'],_0x4472ba=new _0x286ba0(_0x585d00,this['imageStatus'],this['_attributes']);_0x4472ba['bind']('status')['to'](this,'imageStatus'),_0x4472ba['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4472ba['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4472ba['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4472ba,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4e401f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4472ba,'position':_0x37f546['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4472ba['focus']();},'onHide':()=>{_0x4472ba['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2a8e22=>!_0x10998a(_0x2a8e22,_0x4472ba['element'])}});}['_loadImageInfo'](_0x5428d3,_0x591ac1){return _0x31485c['getInfo'](_0x5428d3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xd0677a=>{const {width:_0x4790d3,height:_0x2b0d7d}=_0xd0677a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x591ac1,this['imageDimension']={'width':_0x4790d3,'height':_0x2b0d7d},this['imageId']=_0x5428d3;})['catch'](_0xaaab91=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xaaab91['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d2a46,_0x20e361){return this['_getImageAsFile'](_0x1d2a46)['then'](_0x16d0d0=>_0x31485c['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x20e361['signal'],'file':_0x16d0d0,'onProgress':_0xec1218=>{_0xec1218&&_0xec1218['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xec1218['value']));}}))['then'](_0x4bf8b5=>{const {width:_0xc47e26,height:_0x413b1e}=_0x4bf8b5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4bf8b5['cdnUrl'],this['imageDimension']={'width':_0xc47e26,'height':_0x413b1e},this['imageId']=_0x4bf8b5['uuid'],this['imageUploadProgress']=null;const _0x3d88ef=_0x1d2a46['getAttribute']('src');this['_imageCache']['set'](_0x3d88ef,{'id':_0x4bf8b5['uuid'],'url':_0x4bf8b5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3ad760=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3ad760['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1db47f,_0x2ef606){_0x1db47f['on']('apply',(_0x1bac18,_0x7007c9)=>{this['_replaceImage'](_0x2ef606,_0x7007c9['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1db47f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1db47f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1ea1b3,_0x46de96,_0x44afc1){const _0x3906cd=this['_editor'],{width:_0x3604e6,height:_0x237e38}=_0x2e3341(_0x46de96,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4bfa4b,imageSources:_0x24d2d7}=_0x476ffa(_0x46de96,_0x3604e6);_0x3906cd['model']['change'](_0x533283=>{if('$graveyard'===_0x1ea1b3['root']['rootName']){_0x3906cd['execute']('insertImage',{'imageType':_0x1ea1b3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1ea1b3['getAttributes']()),'uploadcareImageId':_0x44afc1,'src':_0x4bfa4b,'sources':_0x24d2d7,'width':_0x3604e6,'height':_0x237e38}});const _0x2036f3=_0x1ea1b3['getChildren']();_0x1ea1b3=_0x3906cd['model']['document']['selection']['getSelectedElement']();for(const _0x163a01 of _0x2036f3)_0x533283['append'](_0x533283['cloneElement'](_0x163a01),_0x1ea1b3);}else _0x533283['setSelection'](_0x1ea1b3,'on'),_0x3906cd['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1ea1b3['getAttributes']()),'uploadcareImageId':_0x44afc1,'src':_0x4bfa4b,'sources':_0x24d2d7,'width':_0x3604e6,'height':_0x237e38},_0x1ea1b3);_0x533283['setSelection'](_0x1ea1b3,'on');});}async['_getImageAsFile'](_0x5d3d8e){const _0x3975bc=_0x4064d2['window'],_0x245a37=_0x4064d2['document']['location']['href'],_0x26b99=new _0x3975bc['URL'](_0x5d3d8e['getAttribute']('src'),_0x245a37);if('data:'===_0x26b99['protocol']){const _0x4fd67e=_0x26b99['href']['split'](','),_0xd39c15=_0x4fd67e[0x0]['match'](/:(.*?);/)[0x1],_0x112f71=_0xd39c15['split']('/')[0x1],_0x2b9c6a=_0x3975bc['atob'](_0x4fd67e[_0x4fd67e['length']-0x1]);let _0x3886fb=_0x2b9c6a['length'];const _0x43e6cb=new _0x3975bc['Uint8Array'](_0x3886fb);for(;_0x3886fb--;)_0x43e6cb[_0x3886fb]=_0x2b9c6a['charCodeAt'](_0x3886fb);return new _0x3975bc['File']([_0x43e6cb],'image.'+_0x112f71,{'type':_0xd39c15});}const _0x1d9b8e=_0x26b99['href']['split']('/'),_0x1ff3c0=_0x1d9b8e[_0x1d9b8e['length']-0x1],_0x5f2bef=_0x1ff3c0['split']('.')[0x1];return _0x3975bc['fetch'](_0x26b99['href'])['then'](_0x52dc55=>_0x52dc55['clone']()['blob']())['then'](_0x1ebf46=>new _0x3975bc['File']([_0x1ebf46],_0x1ff3c0,{'type':'image/'+_0x5f2bef}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1cc4(_0x306162,_0x5cfe72){const _0x2d4b82=_0x2d4b();return _0x1cc4=function(_0x1cc42f,_0x45f596){_0x1cc42f=_0x1cc42f-0x13d;let _0x2c6bad=_0x2d4b82[_0x1cc42f];return _0x2c6bad;},_0x1cc4(_0x306162,_0x5cfe72);}function _0x2d4b(){const _0x2cef67=['2385900FZPWhm','ck-uploadcare-theme','3REpzcx','212034PATpLI','4nlcOyY','59474xacrvH','uc-cloud-image-editor','40VIGXvi','setTemplate','1362361eneEft','imageSrc','bindTemplate','45WvjxNs','1520386IcnWyH','1815016ZUVQqG','511251IFKLgZ','set','uc-light','image-edit'];_0x2d4b=function(){return _0x2cef67;};return _0x2d4b();}(function(_0x49b6cc,_0x55bf4f){const _0x1443dc=_0x1cc4,_0x18ace5=_0x49b6cc();while(!![]){try{const _0x24ec8f=-parseInt(_0x1443dc(0x14d))/0x1*(-parseInt(_0x1443dc(0x13d))/0x2)+parseInt(_0x1443dc(0x147))/0x3*(parseInt(_0x1443dc(0x14f))/0x4)+-parseInt(_0x1443dc(0x144))/0x5*(parseInt(_0x1443dc(0x14e))/0x6)+parseInt(_0x1443dc(0x145))/0x7+-parseInt(_0x1443dc(0x146))/0x8+-parseInt(_0x1443dc(0x14b))/0x9+parseInt(_0x1443dc(0x13f))/0xa*(parseInt(_0x1443dc(0x141))/0xb);if(_0x24ec8f===_0x55bf4f)break;else _0x18ace5['push'](_0x18ace5['shift']());}catch(_0x153311){_0x18ace5['push'](_0x18ace5['shift']());}}}(_0x2d4b,0x2799a));import{View as _0x4fc048}from'ckeditor5/src/ui.js';export default class tt extends _0x4fc048{constructor(_0x8986c2,_0x291269){const _0x8ba840=_0x1cc4;super(_0x8986c2);const _0x3f50ec=this[_0x8ba840(0x143)];this[_0x8ba840(0x148)](_0x8ba840(0x142),''),this[_0x8ba840(0x140)]({'tag':_0x8ba840(0x13e),'attributes':{..._0x291269,'class':[_0x8ba840(0x149),_0x8ba840(0x14c)],'ctx-name':_0x8ba840(0x14a),'cdn-url':_0x3f50ec['to'](_0x8ba840(0x142))}});}}
|
|
@@ -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 _0x1e05b8,IconView as at,View as _0xd3f3cd}from'ckeditor5/src/ui.js';export default class rt extends _0xd3f3cd{constructor(_0x193be5){super(_0x193be5);const t=_0x193be5['t'];this['set']('errorType',null);const _0x3ad6e0=new _0x1e05b8(_0x193be5);_0x3ad6e0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3ad6e0['withText']=!0x0,_0x3ad6e0['class']='ck-button-action',_0x3ad6e0['on']('execute',()=>{this['fire']('retry');}),_0x3ad6e0['bind']('isVisible')['to'](this,'errorType',_0x478a6b=>'NotFound'!==_0x478a6b);const _0x2bf06e=new at();_0x2bf06e['content']=et,_0x2bf06e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1ecf29=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':[_0x2bf06e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1ecf29['to']('errorType',_0x2329af=>t('NotFound'!==_0x2329af?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3ad6e0]},{'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 _0x2cef7a,View as _0x18c5f6}from'ckeditor5/src/ui.js';export default class ta extends _0x18c5f6{constructor(_0x52327d){super(_0x52327d);const t=_0x52327d['t'],_0x827007=this['bindTemplate'],_0x5f3dd5=new _0x2cef7a();_0x5f3dd5['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':[_0x5f3dd5,{'text':_0x827007['to']('imageUploadProgress',_0x41a5e6=>t('Loading\x20image...')+'\x20('+(_0x41a5e6||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
|
|
23
|
+
const _0x2d15d5=_0x3a17;(function(_0x3631d7,_0x18828e){const _0x1732c3=_0x3a17,_0x42b433=_0x3631d7();while(!![]){try{const _0x14c980=-parseInt(_0x1732c3(0x1b0))/0x1+parseInt(_0x1732c3(0x1af))/0x2+parseInt(_0x1732c3(0x185))/0x3*(-parseInt(_0x1732c3(0x1aa))/0x4)+parseInt(_0x1732c3(0x192))/0x5+parseInt(_0x1732c3(0x1a5))/0x6+-parseInt(_0x1732c3(0x188))/0x7*(-parseInt(_0x1732c3(0x1a0))/0x8)+-parseInt(_0x1732c3(0x19b))/0x9;if(_0x14c980===_0x18828e)break;else _0x42b433['push'](_0x42b433['shift']());}catch(_0x41f871){_0x42b433['push'](_0x42b433['shift']());}}}(_0x115a,0x9dc6d));function _0x115a(){const _0x320b41=['_focusableView','_setView','_loadingView','toLowerCase','6093156JZdJUo','uc-cloud-image-editor','addedNodes','change:status','retry','4DbXVmc','ck-reset_all-excluded','filter','_addUploadcareImageEditorListeners','length','1055336rapOAt','1231292uKqxyE','div','detail','disconnect','addMany','addEventListener','ready','apply','once','_editingView','_addErrorViewListeners','1836852TmsDob','fire','_items','4021374ZmTHeG','set','status','target','observe','querySelector','_errorView','clear','nodeName','getFocusableElement','3476315QTvdHL','add','uploading','cancel','createCollection','ck-uploadcare-form','render','error','cdnUrl','2907990XyOeRK','_waitForImageEditorComponent','setTemplate','element','focus','8xBoZQv'];_0x115a=function(){return _0x320b41;};return _0x115a();}import{View as _0x5f2502}from'ckeditor5/src/ui.js';import _0x49f391 from'./uploadcareimageeditformloadingview.js';import _0x59eb24 from'./uploadcareimageeditformerrorview.js';import _0x336b67 from'./uploadcareimageeditformeditingview.js';function _0x3a17(_0x206d56,_0x36dcb3){const _0x115ab8=_0x115a();return _0x3a17=function(_0x3a179b,_0x5540fe){_0x3a179b=_0x3a179b-0x17b;let _0xd4127c=_0x115ab8[_0x3a179b];return _0xd4127c;},_0x3a17(_0x206d56,_0x36dcb3);}import _0x334c68 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x334c68{[_0x2d15d5(0x187)];[_0x2d15d5(0x1a3)];[_0x2d15d5(0x18e)];[_0x2d15d5(0x183)];[_0x2d15d5(0x1a1)];constructor(_0x3ccf45,_0x2cab56,_0xdd876e){const _0x22211f=_0x2d15d5;super(_0x3ccf45),this[_0x22211f(0x187)]=this[_0x22211f(0x196)](),this[_0x22211f(0x1a3)]=new _0x49f391(_0x3ccf45),this[_0x22211f(0x18e)]=new _0x59eb24(_0x3ccf45),this[_0x22211f(0x183)]=new _0x336b67(_0x3ccf45,_0xdd876e),this[_0x22211f(0x1a1)]=new _0x5f2502(_0x3ccf45),this[_0x22211f(0x1a1)][_0x22211f(0x19d)](this[_0x22211f(0x191)]()),this[_0x22211f(0x189)](_0x22211f(0x18a),_0x2cab56),this[_0x22211f(0x19d)]({'tag':_0x22211f(0x17b),'attributes':{'class':['ck',_0x22211f(0x1ab),_0x22211f(0x197)],'tabindex':'-1'},'children':this[_0x22211f(0x187)]}),this[_0x22211f(0x1a2)](),this[_0x22211f(0x182)](_0x22211f(0x198),()=>{const _0x72b3f1=_0x22211f;this[_0x72b3f1(0x19c)](this[_0x72b3f1(0x19e)],_0x363b53=>{const _0x538439=_0x72b3f1;this[_0x538439(0x1ad)](_0x363b53);});}),this['on'](_0x22211f(0x1a8),()=>{const _0x1b87bb=_0x22211f;this[_0x1b87bb(0x1a2)]();}),this[_0x22211f(0x184)]();}[_0x2d15d5(0x19f)](){const _0x499f25=_0x2d15d5;this[_0x499f25(0x19e)][_0x499f25(0x19f)]();}[_0x2d15d5(0x1a2)](){const _0x7e3842=_0x2d15d5;switch(this[_0x7e3842(0x187)][_0x7e3842(0x18f)](),this[_0x7e3842(0x18a)]){case _0x7e3842(0x194):this[_0x7e3842(0x187)][_0x7e3842(0x193)](this[_0x7e3842(0x1a3)]);break;case _0x7e3842(0x199):this[_0x7e3842(0x187)][_0x7e3842(0x193)](this[_0x7e3842(0x18e)]);break;case _0x7e3842(0x180):this[_0x7e3842(0x187)][_0x7e3842(0x17e)]([this[_0x7e3842(0x183)],this[_0x7e3842(0x1a1)]]);}}[_0x2d15d5(0x19c)](_0x22493d,_0x5e23d0){const _0x1b2666=_0x2d15d5,_0x3b1970=_0x1b2666(0x1a6),_0x57db4=_0x22493d[_0x1b2666(0x18d)](_0x3b1970);if(_0x57db4)return _0x5e23d0(_0x57db4);const _0x575ce7=new MutationObserver(_0xc1af03=>{const _0x2edfc9=_0x1b2666,_0x3cb08a=_0xc1af03[_0x2edfc9(0x1ac)](_0x51b59c=>_0x51b59c[_0x2edfc9(0x18b)]===_0x22493d&&_0x51b59c[_0x2edfc9(0x1a7)][_0x2edfc9(0x1ae)]>0x0&&_0x51b59c[_0x2edfc9(0x1a7)][0x0][_0x2edfc9(0x190)][_0x2edfc9(0x1a4)]()===_0x3b1970);_0x3cb08a[_0x2edfc9(0x1ae)]&&(_0x575ce7[_0x2edfc9(0x17d)](),_0x5e23d0(_0x3cb08a[0x0][_0x2edfc9(0x1a7)][0x0]));});_0x575ce7[_0x1b2666(0x18c)](_0x22493d,{'childList':!0x0,'subtree':!0x0});}[_0x2d15d5(0x1ad)](_0x270878){const _0x5756c9=_0x2d15d5;_0x270878[_0x5756c9(0x17f)](_0x5756c9(0x181),_0x56bcb3=>{const _0x421f0b=_0x5756c9;this[_0x421f0b(0x186)](_0x421f0b(0x181),{'imageSrc':_0x56bcb3[_0x421f0b(0x17c)][_0x421f0b(0x19a)]});}),_0x270878[_0x5756c9(0x17f)](_0x5756c9(0x195),()=>{const _0x2f7bc3=_0x5756c9;this[_0x2f7bc3(0x186)](_0x2f7bc3(0x195));});}[_0x2d15d5(0x184)](){const _0x2ef04c=_0x2d15d5;this[_0x2ef04c(0x18e)]['on'](_0x2ef04c(0x1a9),()=>{const _0x22b708=_0x2ef04c;this[_0x22b708(0x186)](_0x22b708(0x1a9));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x859d63=_0x24ea;(function(_0x535470,_0x2daea3){const _0x4345fd=_0x24ea,_0x3eca08=_0x535470();while(!![]){try{const _0x3eda26=parseInt(_0x4345fd(0x90))/0x1*(parseInt(_0x4345fd(0x9d))/0x2)+-parseInt(_0x4345fd(0x8b))/0x3+parseInt(_0x4345fd(0x7d))/0x4*(-parseInt(_0x4345fd(0x89))/0x5)+-parseInt(_0x4345fd(0x9a))/0x6+-parseInt(_0x4345fd(0x83))/0x7*(parseInt(_0x4345fd(0x8c))/0x8)+-parseInt(_0x4345fd(0x80))/0x9*(-parseInt(_0x4345fd(0x8f))/0xa)+parseInt(_0x4345fd(0x7f))/0xb;if(_0x3eda26===_0x2daea3)break;else _0x3eca08['push'](_0x3eca08['shift']());}catch(_0x875fee){_0x3eca08['push'](_0x3eca08['shift']());}}}(_0x5aee,0xa25d0));import{Command as _0x1a18e2}from'ckeditor5/src/core.js';import{Dialog as _0x30a7cc}from'ckeditor5/src/ui.js';function _0x24ea(_0x10c2c1,_0x731667){const _0x5aee2d=_0x5aee();return _0x24ea=function(_0x24eaac,_0x2d11fb){_0x24eaac=_0x24eaac-0x7d;let _0x5ad881=_0x5aee2d[_0x24eaac];return _0x5ad881;},_0x24ea(_0x10c2c1,_0x731667);}import _0x3d6ffa from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2486f8}from'../utils/editingutils.js';export default class z extends _0x1a18e2{[_0x859d63(0x8e)];static get[_0x859d63(0x8d)](){return[_0x30a7cc];}[_0x859d63(0x96)];constructor(_0x3763a4){const _0x2315bf=_0x859d63;super(_0x3763a4),this[_0x2315bf(0x8e)]=void 0x0,this[_0x2315bf(0x96)]=_0x2486f8(_0x3763a4[_0x2315bf(0x8a)][_0x2315bf(0x88)](_0x2315bf(0x98))||[]),this[_0x2315bf(0x99)]({'isActive':!0x1});}[_0x859d63(0x9b)](){const _0x3d922c=_0x859d63,_0x1d80da=this[_0x3d922c(0x85)][_0x3d922c(0x94)][_0x3d922c(0x9c)][_0x3d922c(0x92)][_0x3d922c(0x7e)]();this[_0x3d922c(0x81)]=this[_0x3d922c(0x96)](_0x1d80da);}[_0x859d63(0x97)](){const _0x277f02=_0x859d63;this[_0x277f02(0x8e)]&&(this[_0x277f02(0x86)](_0x277f02(0x82)),this[_0x277f02(0x8e)]=void 0x0);const _0x45d184=this[_0x277f02(0x85)][_0x277f02(0x94)][_0x277f02(0x9c)][_0x277f02(0x92)][_0x277f02(0x7e)]();_0x45d184&&(_0x45d184['is'](_0x277f02(0x91),_0x277f02(0x84))||_0x45d184['is'](_0x277f02(0x91),_0x277f02(0x87)))&&(this[_0x277f02(0x8e)]=new _0x3d6ffa(this[_0x277f02(0x85)],this[_0x277f02(0x85)][_0x277f02(0x93)][_0x277f02(0x88)](_0x30a7cc),_0x45d184),this[_0x277f02(0x95)](_0x277f02(0x82))['to'](this[_0x277f02(0x8e)],_0x277f02(0x82)));}}function _0x5aee(){const _0x5a09e4=['isActive','49IQSSDy','imageBlock','editor','unbind','imageInline','get','10FDqvWH','config','3420276cGGyla','1204744gdeGmA','requires','imageEditController','3810MZbTaq','280WxPTeI','element','selection','plugins','model','bind','_isEditable','execute','uploadcare.allowExternalImagesEditing','set','5496192TZhypt','refresh','document','370wRgLwh','2094200sSEqrF','getSelectedElement','43093116PMrHGB','20151kzOlzR','isEnabled'];_0x5aee=function(){return _0x5a09e4;};return _0x5aee();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5693b4=_0x131a;(function(_0x33939,_0x1f38aa){const _0x1ce618=_0x131a,_0x4868d6=_0x33939();while(!![]){try{const _0x8458b5=-parseInt(_0x1ce618(0x18a))/0x1+-parseInt(_0x1ce618(0x178))/0x2+-parseInt(_0x1ce618(0x179))/0x3*(parseInt(_0x1ce618(0x182))/0x4)+parseInt(_0x1ce618(0x175))/0x5+parseInt(_0x1ce618(0x177))/0x6*(-parseInt(_0x1ce618(0x176))/0x7)+parseInt(_0x1ce618(0x181))/0x8*(parseInt(_0x1ce618(0x184))/0x9)+-parseInt(_0x1ce618(0x17b))/0xa*(-parseInt(_0x1ce618(0x174))/0xb);if(_0x8458b5===_0x1f38aa)break;else _0x4868d6['push'](_0x4868d6['shift']());}catch(_0x585554){_0x4868d6['push'](_0x4868d6['shift']());}}}(_0x2d05,0x7b2be));import{Plugin as _0x5bb7cf}from'ckeditor5/src/core.js';import{Notification as _0x36c4d1}from'ckeditor5/src/ui.js';function _0x2d05(){const _0x33d48f=['250XhgYIR','pluginName','ImageEditing','add','isOfficialPlugin','init','716808hatTOv','632arXaqo','uploadcareImageReplace','99WwkRIW','uploadcareImageEdit','requires','commands','UploadcareImageEditEditing','isPremiumPlugin','217234chjYkR','17237Odccma','3285210FuhupV','61243xbDTMu','42gWzAPS','839886dedZRt','9093uqFfth','ImageUtils'];_0x2d05=function(){return _0x33d48f;};return _0x2d05();}import _0x2664c from'./uploadcareimageeditcommand.js';function _0x131a(_0x18573b,_0x3cbcb5){const _0x2d05ff=_0x2d05();return _0x131a=function(_0x131a7e,_0x2980d6){_0x131a7e=_0x131a7e-0x174;let _0x4b1e87=_0x2d05ff[_0x131a7e];return _0x4b1e87;},_0x131a(_0x18573b,_0x3cbcb5);}import _0x1c40fc from'./uploadcareimagereplacecommand.js';import _0x47340b from'../uploadcareediting.js';export default class g extends _0x5bb7cf{static get[_0x5693b4(0x17c)](){const _0x43fec3=_0x5693b4;return _0x43fec3(0x188);}static get[_0x5693b4(0x186)](){const _0x2bf2cd=_0x5693b4;return[_0x47340b,_0x36c4d1,_0x2bf2cd(0x17a),_0x2bf2cd(0x17d)];}static get[_0x5693b4(0x17f)](){return!0x0;}static get[_0x5693b4(0x189)](){return!0x0;}[_0x5693b4(0x180)](){const _0x2471b5=_0x5693b4,{editor:_0x3b1a7b}=this;_0x3b1a7b[_0x2471b5(0x187)][_0x2471b5(0x17e)](_0x2471b5(0x185),new _0x2664c(_0x3b1a7b)),_0x3b1a7b[_0x2471b5(0x187)][_0x2471b5(0x17e)](_0x2471b5(0x183),new _0x1c40fc(_0x3b1a7b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4574da=_0x3e3b;(function(_0x59875e,_0x815a1e){var _0x17f4e5=_0x3e3b,_0x5a8b7c=_0x59875e();while(!![]){try{var _0x48d221=-parseInt(_0x17f4e5(0xa3))/0x1+parseInt(_0x17f4e5(0xaa))/0x2+-parseInt(_0x17f4e5(0xa6))/0x3*(parseInt(_0x17f4e5(0xa7))/0x4)+parseInt(_0x17f4e5(0xa8))/0x5*(parseInt(_0x17f4e5(0xb2))/0x6)+parseInt(_0x17f4e5(0xaf))/0x7+parseInt(_0x17f4e5(0xa9))/0x8+parseInt(_0x17f4e5(0xae))/0x9;if(_0x48d221===_0x815a1e)break;else _0x5a8b7c['push'](_0x5a8b7c['shift']());}catch(_0x444f35){_0x5a8b7c['push'](_0x5a8b7c['shift']());}}}(_0x103e,0x66f27));import{FocusTracker as _0xc311da}from'ckeditor5/src/utils.js';import{View as _0x13d423,FocusCycler as _0x566560}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x3e3b(_0x35a335,_0x245718){var _0x103ed6=_0x103e();return _0x3e3b=function(_0x3e3b5b,_0x3d92b4){_0x3e3b5b=_0x3e3b5b-0xa3;var _0x5222c7=_0x103ed6[_0x3e3b5b];return _0x5222c7;},_0x3e3b(_0x35a335,_0x245718);}function _0x103e(){var _0x21f397=['div','focusCycler','420502JUaJdM','fire','focusTracker','6qegsLr','951248KfHJRl','101485pzWgJl','2120920SXwcHc','289808oJGvwd','getFocusableElement','createCollection','bindTemplate','582174wNodUt','5333328Lbqapu','forwardCycle','true','24hDRFOr'];_0x103e=function(){return _0x21f397;};return _0x103e();}export default class G extends _0x13d423{[_0x4574da(0xa5)];[_0x4574da(0xb4)];constructor(_0xc6581d){var _0x1cc7d4=_0x4574da;super(_0xc6581d),this[_0x1cc7d4(0xa5)]=new _0xc311da(),this[_0x1cc7d4(0xb4)]=new _0x566560({'focusables':this[_0x1cc7d4(0xac)](),'focusTracker':this[_0x1cc7d4(0xa5)]});}[_0x4574da(0xab)](){var _0x43b6b1=_0x4574da;return{'tag':_0x43b6b1(0xb3),'attributes':{'aria-hidden':_0x43b6b1(0xb1),'tabindex':'0'},'on':{'focus':this[_0x43b6b1(0xad)]['to'](()=>{var _0x5d23f4=_0x43b6b1;this[_0x5d23f4(0xb4)][_0x5d23f4(0xa4)](_0x5d23f4(0xb0));})}};}}
|