@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250218.0 → 0.0.0-nightly-20250219.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 +8 -8
- 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/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x49a495,ObservableMixin as _0x2069bb}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x5c836c}from'ckeditor5/src/ui.js';import _0x4db16b from'./uploadcareimageeditformview.js';import _0x1d853f from'../../utils/uploadutils.js';import _0x215be2 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0xb62d38,getImageDimension as _0x430c48}from'../../utils/editingutils.js';import{isAncestor as _0x4c0969}from'../../utils/isancestor.js';export default class O extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2069bb(){constructor(_0x430e76,_0xb300bb,_0xef4059){super(),this['_editor']=_0x430e76,this['_dialog']=_0xb300bb,this['_imageElement']=_0xef4059,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 _0x2972ce=this['_imageElement'],_0x26c962=_0x2972ce['getAttribute']('uploadcareImageId'),_0x4f80a8=_0x2972ce['getAttribute']('src');if(_0x26c962)await this['_loadImageInfo'](_0x26c962,_0x4f80a8);else{if(this['_imageCache']['has'](_0x4f80a8)){const _0x3aa2aa=this['_imageCache']['get'](_0x4f80a8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3aa2aa['url'],this['imageDimension']=_0x3aa2aa['dimension'],this['imageId']=_0x3aa2aa['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x9a2baa}=this['_editor'],t=_0x9a2baa['t'],_0x86c2b7=new _0x4db16b(_0x9a2baa,this['imageStatus'],this['_attributes']);_0x86c2b7['bind']('status')['to'](this,'imageStatus'),_0x86c2b7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x86c2b7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x86c2b7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x86c2b7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x215be2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x86c2b7,'position':_0x5c836c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x86c2b7['focus']();},'onHide':()=>{_0x86c2b7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x7f7619=>!_0x4c0969(_0x7f7619,_0x86c2b7['element'])}});}['_loadImageInfo'](_0x31d9b4,_0x43bce1){return _0x1d853f['getInfo'](_0x31d9b4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5ce777=>{const {width:_0x27f6bf,height:_0x24eebc}=_0x5ce777['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x43bce1,this['imageDimension']={'width':_0x27f6bf,'height':_0x24eebc},this['imageId']=_0x31d9b4;})['catch'](_0x4e43ae=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4e43ae['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d3919,_0x1264e6){return this['_getImageAsFile'](_0x1d3919)['then'](_0x348347=>_0x1d853f['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1264e6['signal'],'file':_0x348347,'onProgress':_0x5d0a73=>{_0x5d0a73&&_0x5d0a73['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5d0a73['value']));}}))['then'](_0x17cbad=>{const {width:_0x39745a,height:_0x363412}=_0x17cbad['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17cbad['cdnUrl'],this['imageDimension']={'width':_0x39745a,'height':_0x363412},this['imageId']=_0x17cbad['uuid'],this['imageUploadProgress']=null;const _0x4ab228=_0x1d3919['getAttribute']('src');this['_imageCache']['set'](_0x4ab228,{'id':_0x17cbad['uuid'],'url':_0x17cbad['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x547392=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x547392['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3042bc,_0x4af96d){_0x3042bc['on']('apply',(_0x2dd1b6,_0x385e0b)=>{this['_replaceImage'](_0x4af96d,_0x385e0b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3042bc['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3042bc['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2401c2,_0x3319ef,_0x2435c2){const _0x7366a1=this['_editor'],{width:_0x25ab21,height:_0x34fdf9}=_0x430c48(_0x3319ef,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1cb395,imageSources:_0xa1b442}=_0xb62d38(_0x3319ef,_0x25ab21);_0x7366a1['model']['change'](_0x56d137=>{if('$graveyard'===_0x2401c2['root']['rootName']){_0x7366a1['execute']('insertImage',{'imageType':_0x2401c2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2401c2['getAttributes']()),'uploadcareImageId':_0x2435c2,'src':_0x1cb395,'sources':_0xa1b442,'width':_0x25ab21,'height':_0x34fdf9}});const _0x30a312=_0x2401c2['getChildren']();_0x2401c2=_0x7366a1['model']['document']['selection']['getSelectedElement']();for(const _0x5a8039 of _0x30a312)_0x56d137['append'](_0x56d137['cloneElement'](_0x5a8039),_0x2401c2);}else _0x56d137['setSelection'](_0x2401c2,'on'),_0x7366a1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2401c2['getAttributes']()),'uploadcareImageId':_0x2435c2,'src':_0x1cb395,'sources':_0xa1b442,'width':_0x25ab21,'height':_0x34fdf9},_0x2401c2);_0x56d137['setSelection'](_0x2401c2,'on');});}async['_getImageAsFile'](_0x5a4760){const _0xe593cc=_0x49a495['window'],_0x495f5f=_0x49a495['document']['location']['href'],_0x11547e=new _0xe593cc['URL'](_0x5a4760['getAttribute']('src'),_0x495f5f);if('data:'===_0x11547e['protocol']){const _0x391aa4=_0x11547e['href']['split'](','),_0x4767ff=_0x391aa4[0x0]['match'](/:(.*?);/)[0x1],_0x27dabf=_0x4767ff['split']('/')[0x1],_0x33e584=_0xe593cc['atob'](_0x391aa4[_0x391aa4['length']-0x1]);let _0x24daea=_0x33e584['length'];const _0xb52595=new _0xe593cc['Uint8Array'](_0x24daea);for(;_0x24daea--;)_0xb52595[_0x24daea]=_0x33e584['charCodeAt'](_0x24daea);return new _0xe593cc['File']([_0xb52595],'image.'+_0x27dabf,{'type':_0x4767ff});}const _0x538c77=_0x11547e['href']['split']('/'),_0x3780fd=_0x538c77[_0x538c77['length']-0x1],_0x38ec81=_0x3780fd['split']('.')[0x1];return _0xe593cc['fetch'](_0x11547e['href'])['then'](_0x209764=>_0x209764['clone']()['blob']())['then'](_0x986771=>new _0xe593cc['File']([_0x986771],_0x3780fd,{'type':'image/'+_0x38ec81}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1d4bef,_0x3f784d){const _0x5b8f6a=_0x51f7,_0x4fa174=_0x1d4bef();while(!![]){try{const _0xdeb2b9=-parseInt(_0x5b8f6a(0xcb))/0x1*(parseInt(_0x5b8f6a(0xc0))/0x2)+parseInt(_0x5b8f6a(0xce))/0x3*(-parseInt(_0x5b8f6a(0xc3))/0x4)+-parseInt(_0x5b8f6a(0xbc))/0x5*(-parseInt(_0x5b8f6a(0xc2))/0x6)+-parseInt(_0x5b8f6a(0xbd))/0x7*(parseInt(_0x5b8f6a(0xcc))/0x8)+-parseInt(_0x5b8f6a(0xc8))/0x9+parseInt(_0x5b8f6a(0xc1))/0xa+-parseInt(_0x5b8f6a(0xc6))/0xb*(-parseInt(_0x5b8f6a(0xc7))/0xc);if(_0xdeb2b9===_0x3f784d)break;else _0x4fa174['push'](_0x4fa174['shift']());}catch(_0x33acab){_0x4fa174['push'](_0x4fa174['shift']());}}}(_0x4585,0x45636));import{View as _0x3bc502}from'ckeditor5/src/ui.js';function _0x51f7(_0x11d243,_0x313aaa){const _0x458585=_0x4585();return _0x51f7=function(_0x51f717,_0xa81679){_0x51f717=_0x51f717-0xbb;let _0x9e6a1a=_0x458585[_0x51f717];return _0x9e6a1a;},_0x51f7(_0x11d243,_0x313aaa);}export default class tt extends _0x3bc502{constructor(_0xd3f69f,_0x5e298b){const _0x34f40e=_0x51f7;super(_0xd3f69f);const _0x7dcbea=this[_0x34f40e(0xc5)];this[_0x34f40e(0xc9)](_0x34f40e(0xbb),''),this[_0x34f40e(0xbf)]({'tag':_0x34f40e(0xbe),'attributes':{..._0x5e298b,'class':[_0x34f40e(0xca),_0x34f40e(0xcd)],'ctx-name':_0x34f40e(0xc4),'cdn-url':_0x7dcbea['to'](_0x34f40e(0xbb))}});}}function _0x4585(){const _0x5137ce=['9iLbdhf','1808QqKpYr','ck-uploadcare-theme','64365jELuwb','imageSrc','2017065iGqDyD','13454AAEQJU','uc-cloud-image-editor','setTemplate','66124mSYHSN','2413480WgaOuz','6oplsrU','24GLAixG','image-edit','bindTemplate','9887493ESkmPV','12xoyLTy','3588750UBeMsb','set','uc-light'];_0x4585=function(){return _0x5137ce;};return _0x4585();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x1a95fb,IconView as et,View as _0x52c04f}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x52c04f{constructor(_0xf251b6){super(_0xf251b6);const t=_0xf251b6['t'];this['set']('errorType',null);const _0x177b1e=new _0x1a95fb(_0xf251b6);_0x177b1e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x177b1e['withText']=!0x0,_0x177b1e['class']='ck-button-action',_0x177b1e['on']('execute',()=>{this['fire']('retry');}),_0x177b1e['bind']('isVisible')['to'](this,'errorType',_0x12c0e7=>'NotFound'!==_0x12c0e7);const _0x21ad46=new et();_0x21ad46['content']=at,_0x21ad46['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x34ca7b=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':[_0x21ad46,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x34ca7b['to']('errorType',_0x29845a=>t('NotFound'!==_0x29845a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x177b1e]},{'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 _0x4e27bb,View as _0x1e88e5}from'ckeditor5/src/ui.js';export default class ta extends _0x1e88e5{constructor(_0x21daa7){super(_0x21daa7);const t=_0x21daa7['t'],_0x1aa3f5=this['bindTemplate'],_0x1c2b3d=new _0x4e27bb();_0x1c2b3d['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':[_0x1c2b3d,{'text':_0x1aa3f5['to']('imageUploadProgress',_0x47a4d1=>t('Loading\x20image...')+'\x20('+(_0x47a4d1||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 _0x3775a0=_0x7107;function _0x7107(_0x292919,_0x450d9f){const _0x424aa5=_0x424a();return _0x7107=function(_0x710767,_0x5861bc){_0x710767=_0x710767-0x7d;let _0x59f07a=_0x424aa5[_0x710767];return _0x59f07a;},_0x7107(_0x292919,_0x450d9f);}(function(_0x5570bc,_0x47f47d){const _0xbf968a=_0x7107,_0x330a56=_0x5570bc();while(!![]){try{const _0x39f0cd=-parseInt(_0xbf968a(0xaf))/0x1+parseInt(_0xbf968a(0xa5))/0x2*(-parseInt(_0xbf968a(0x7e))/0x3)+-parseInt(_0xbf968a(0x93))/0x4*(-parseInt(_0xbf968a(0xa7))/0x5)+parseInt(_0xbf968a(0xa8))/0x6+parseInt(_0xbf968a(0x97))/0x7*(parseInt(_0xbf968a(0x99))/0x8)+-parseInt(_0xbf968a(0x81))/0x9*(parseInt(_0xbf968a(0x8b))/0xa)+parseInt(_0xbf968a(0x80))/0xb;if(_0x39f0cd===_0x47f47d)break;else _0x330a56['push'](_0x330a56['shift']());}catch(_0x38b8d1){_0x330a56['push'](_0x330a56['shift']());}}}(_0x424a,0x3a3b3));import{View as _0x23e056}from'ckeditor5/src/ui.js';import _0x519cce from'./uploadcareimageeditformloadingview.js';import _0x11613d from'./uploadcareimageeditformerrorview.js';import _0x2e00f3 from'./uploadcareimageeditformeditingview.js';import _0x1a5500 from'../../utils/dialogfocusmanagerview.js';function _0x424a(){const _0x906272=['observe','5WTpTml','1986132UuJuIG','setTemplate','ck-uploadcare-form','ck-reset_all-excluded','_addErrorViewListeners','ready','once','391160dQCgQi','retry','_focusableView','addEventListener','change:status','filter','createCollection','39kWQcwT','_loadingView','508816kzXTtK','27qLbbOR','_items','querySelector','div','set','disconnect','cdnUrl','addMany','add','clear','1151470hFZkFo','cancel','getFocusableElement','error','_editingView','apply','_errorView','element','705648VGfjXS','toLowerCase','_setView','uc-cloud-image-editor','1092315OyhiPt','fire','24zOSKod','render','length','status','focus','nodeName','_waitForImageEditorComponent','_addUploadcareImageEditorListeners','detail','uploading','target','addedNodes','7186tMPbGM'];_0x424a=function(){return _0x906272;};return _0x424a();}import'../../../theme/uploadcare-form.css';export default class Z extends _0x1a5500{constructor(_0x93aeb5,_0x114b7b,_0xe01e84){const _0x2ba077=_0x7107;super(_0x93aeb5),this[_0x2ba077(0x82)]=this[_0x2ba077(0x7d)](),this[_0x2ba077(0x7f)]=new _0x519cce(_0x93aeb5),this[_0x2ba077(0x91)]=new _0x11613d(_0x93aeb5),this[_0x2ba077(0x8f)]=new _0x2e00f3(_0x93aeb5,_0xe01e84),this[_0x2ba077(0xb1)]=new _0x23e056(_0x93aeb5),this[_0x2ba077(0xb1)][_0x2ba077(0xa9)](this[_0x2ba077(0x8d)]()),this[_0x2ba077(0x85)](_0x2ba077(0x9c),_0x114b7b),this[_0x2ba077(0xa9)]({'tag':_0x2ba077(0x84),'attributes':{'class':['ck',_0x2ba077(0xab),_0x2ba077(0xaa)],'tabindex':'-1'},'children':this[_0x2ba077(0x82)]}),this[_0x2ba077(0x95)](),this[_0x2ba077(0xae)](_0x2ba077(0x9a),()=>{const _0x538616=_0x2ba077;this[_0x538616(0x9f)](this[_0x538616(0x92)],_0x1f89e5=>{const _0x320d58=_0x538616;this[_0x320d58(0xa0)](_0x1f89e5);});}),this['on'](_0x2ba077(0xb3),()=>{const _0x234215=_0x2ba077;this[_0x234215(0x95)]();}),this[_0x2ba077(0xac)]();}[_0x3775a0(0x9d)](){const _0x5db164=_0x3775a0;this[_0x5db164(0x92)][_0x5db164(0x9d)]();}[_0x3775a0(0x95)](){const _0x3332c6=_0x3775a0;switch(this[_0x3332c6(0x82)][_0x3332c6(0x8a)](),this[_0x3332c6(0x9c)]){case _0x3332c6(0xa2):this[_0x3332c6(0x82)][_0x3332c6(0x89)](this[_0x3332c6(0x7f)]);break;case _0x3332c6(0x8e):this[_0x3332c6(0x82)][_0x3332c6(0x89)](this[_0x3332c6(0x91)]);break;case _0x3332c6(0xad):this[_0x3332c6(0x82)][_0x3332c6(0x88)]([this[_0x3332c6(0x8f)],this[_0x3332c6(0xb1)]]);}}[_0x3775a0(0x9f)](_0x1546b8,_0x17fcbe){const _0x48c32b=_0x3775a0,_0xf67fe3=_0x48c32b(0x96),_0x2ecf5f=_0x1546b8[_0x48c32b(0x83)](_0xf67fe3);if(_0x2ecf5f)return _0x17fcbe(_0x2ecf5f);const _0x3e069e=new MutationObserver(_0x21d96d=>{const _0x3d1ea4=_0x48c32b,_0xe7f483=_0x21d96d[_0x3d1ea4(0xb4)](_0x38b603=>_0x38b603[_0x3d1ea4(0xa3)]===_0x1546b8&&_0x38b603[_0x3d1ea4(0xa4)][_0x3d1ea4(0x9b)]>0x0&&_0x38b603[_0x3d1ea4(0xa4)][0x0][_0x3d1ea4(0x9e)][_0x3d1ea4(0x94)]()===_0xf67fe3);_0xe7f483[_0x3d1ea4(0x9b)]&&(_0x3e069e[_0x3d1ea4(0x86)](),_0x17fcbe(_0xe7f483[0x0][_0x3d1ea4(0xa4)][0x0]));});_0x3e069e[_0x48c32b(0xa6)](_0x1546b8,{'childList':!0x0,'subtree':!0x0});}[_0x3775a0(0xa0)](_0x53651c){const _0x3df959=_0x3775a0;_0x53651c[_0x3df959(0xb2)](_0x3df959(0x90),_0x5ec9ff=>{const _0x4bd57c=_0x3df959;this[_0x4bd57c(0x98)](_0x4bd57c(0x90),{'imageSrc':_0x5ec9ff[_0x4bd57c(0xa1)][_0x4bd57c(0x87)]});}),_0x53651c[_0x3df959(0xb2)](_0x3df959(0x8c),()=>{const _0x3a41df=_0x3df959;this[_0x3a41df(0x98)](_0x3a41df(0x8c));});}[_0x3775a0(0xac)](){const _0x30bb0b=_0x3775a0;this[_0x30bb0b(0x91)]['on'](_0x30bb0b(0xb0),()=>{const _0x27d41b=_0x30bb0b;this[_0x27d41b(0x98)](_0x27d41b(0xb0));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c5a4e=_0xe101;(function(_0x450d0a,_0x5b24c5){const _0x3bd2a5=_0xe101,_0x4dbba6=_0x450d0a();while(!![]){try{const _0x1d6d13=parseInt(_0x3bd2a5(0x106))/0x1*(-parseInt(_0x3bd2a5(0xff))/0x2)+parseInt(_0x3bd2a5(0x107))/0x3*(parseInt(_0x3bd2a5(0x11b))/0x4)+-parseInt(_0x3bd2a5(0x101))/0x5+-parseInt(_0x3bd2a5(0x116))/0x6+parseInt(_0x3bd2a5(0x104))/0x7+parseInt(_0x3bd2a5(0x11a))/0x8+-parseInt(_0x3bd2a5(0x100))/0x9;if(_0x1d6d13===_0x5b24c5)break;else _0x4dbba6['push'](_0x4dbba6['shift']());}catch(_0x60d29f){_0x4dbba6['push'](_0x4dbba6['shift']());}}}(_0x1c9b,0x33652));import{Command as _0x2c3789}from'ckeditor5/src/core.js';import{Dialog as _0x2435ca}from'ckeditor5/src/ui.js';function _0xe101(_0x22304c,_0x17106a){const _0x1c9ba2=_0x1c9b();return _0xe101=function(_0xe101ba,_0x3d1ee9){_0xe101ba=_0xe101ba-0xfd;let _0x1cd3db=_0x1c9ba2[_0xe101ba];return _0x1cd3db;},_0xe101(_0x22304c,_0x17106a);}import _0x22ec6b from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x52d4cb}from'../utils/editingutils.js';function _0x1c9b(){const _0x3b6041=['plugins','editor','2264045yexrBx','getSelectedElement','4SxKZtB','2787CRohuU','bind','refresh','get','element','imageEditController','config','execute','requires','imageInline','isEnabled','uploadcare.allowExternalImagesEditing','set','_isEditable','document','125202lPyxmu','selection','model','unbind','1426520gqzVjh','1732baHHXI','isActive','imageBlock','5114DvYUMF','4006620ZfaWSZ','1086090rUJlTn'];_0x1c9b=function(){return _0x3b6041;};return _0x1c9b();}export default class V extends _0x2c3789{static get[_0x5c5a4e(0x10f)](){return[_0x2435ca];}constructor(_0x3c6c8b){const _0x1ac2a5=_0x5c5a4e;super(_0x3c6c8b),this[_0x1ac2a5(0x10c)]=void 0x0,this[_0x1ac2a5(0x114)]=_0x52d4cb(_0x3c6c8b[_0x1ac2a5(0x10d)][_0x1ac2a5(0x10a)](_0x1ac2a5(0x112))||[]),this[_0x1ac2a5(0x113)]({'isActive':!0x1});}[_0x5c5a4e(0x109)](){const _0x482633=_0x5c5a4e,_0x9fbcf4=this[_0x482633(0x103)][_0x482633(0x118)][_0x482633(0x115)][_0x482633(0x117)][_0x482633(0x105)]();this[_0x482633(0x111)]=this[_0x482633(0x114)](_0x9fbcf4);}[_0x5c5a4e(0x10e)](){const _0x2445c0=_0x5c5a4e;this[_0x2445c0(0x10c)]&&(this[_0x2445c0(0x119)](_0x2445c0(0xfd)),this[_0x2445c0(0x10c)]=void 0x0);const _0x2f3a9f=this[_0x2445c0(0x103)][_0x2445c0(0x118)][_0x2445c0(0x115)][_0x2445c0(0x117)][_0x2445c0(0x105)]();_0x2f3a9f&&(_0x2f3a9f['is'](_0x2445c0(0x10b),_0x2445c0(0xfe))||_0x2f3a9f['is'](_0x2445c0(0x10b),_0x2445c0(0x110)))&&(this[_0x2445c0(0x10c)]=new _0x22ec6b(this[_0x2445c0(0x103)],this[_0x2445c0(0x103)][_0x2445c0(0x102)][_0x2445c0(0x10a)](_0x2435ca),_0x2f3a9f),this[_0x2445c0(0x108)](_0x2445c0(0xfd))['to'](this[_0x2445c0(0x10c)],_0x2445c0(0xfd)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa1c200=_0x29ca;(function(_0x2aafb1,_0x25ff4b){const _0x5d3d2b=_0x29ca,_0x5d8003=_0x2aafb1();while(!![]){try{const _0x20e59a=-parseInt(_0x5d3d2b(0xc1))/0x1*(-parseInt(_0x5d3d2b(0xcd))/0x2)+-parseInt(_0x5d3d2b(0xcc))/0x3*(parseInt(_0x5d3d2b(0xc6))/0x4)+parseInt(_0x5d3d2b(0xbd))/0x5*(-parseInt(_0x5d3d2b(0xc4))/0x6)+parseInt(_0x5d3d2b(0xcb))/0x7*(parseInt(_0x5d3d2b(0xd1))/0x8)+parseInt(_0x5d3d2b(0xc0))/0x9+parseInt(_0x5d3d2b(0xd4))/0xa+-parseInt(_0x5d3d2b(0xd2))/0xb*(-parseInt(_0x5d3d2b(0xd0))/0xc);if(_0x20e59a===_0x25ff4b)break;else _0x5d8003['push'](_0x5d8003['shift']());}catch(_0x1a3a29){_0x5d8003['push'](_0x5d8003['shift']());}}}(_0x4e44,0xc73ff));function _0x4e44(){const _0x5e0b82=['uploadcareImageReplace','pluginName','2321862USvFwb','isPremiumPlugin','3380merGWv','requires','uploadcareImageEdit','ImageUtils','UploadcareImageEditEditing','47803dnemTq','471QiEFQi','1668030wuJeOz','isOfficialPlugin','ImageEditing','36WsfyMx','872NOWvhW','1418912DRagUG','commands','3072230YummHn','20tIrrpp','add','init','2017125nnyRie','1ppUEkp'];_0x4e44=function(){return _0x5e0b82;};return _0x4e44();}import{Plugin as _0x4eff71}from'ckeditor5/src/core.js';function _0x29ca(_0x1e4350,_0x51b48d){const _0x4e448b=_0x4e44();return _0x29ca=function(_0x29ca8e,_0x9e357b){_0x29ca8e=_0x29ca8e-0xbd;let _0x1e0ead=_0x4e448b[_0x29ca8e];return _0x1e0ead;},_0x29ca(_0x1e4350,_0x51b48d);}import{Notification as _0x2f3465}from'ckeditor5/src/ui.js';import _0x56b277 from'./uploadcareimageeditcommand.js';import _0x3abda3 from'./uploadcareimagereplacecommand.js';import _0xf816b4 from'../uploadcareediting.js';export default class m extends _0x4eff71{static get[_0xa1c200(0xc3)](){const _0xc72f70=_0xa1c200;return _0xc72f70(0xca);}static get[_0xa1c200(0xc7)](){const _0x12905c=_0xa1c200;return[_0xf816b4,_0x2f3465,_0x12905c(0xc9),_0x12905c(0xcf)];}static get[_0xa1c200(0xce)](){return!0x0;}static get[_0xa1c200(0xc5)](){return!0x0;}[_0xa1c200(0xbf)](){const _0x28ab00=_0xa1c200,{editor:_0x329df9}=this;_0x329df9[_0x28ab00(0xd3)][_0x28ab00(0xbe)](_0x28ab00(0xc8),new _0x56b277(_0x329df9)),_0x329df9[_0x28ab00(0xd3)][_0x28ab00(0xbe)](_0x28ab00(0xc2),new _0x3abda3(_0x329df9));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x583f0c}from'ckeditor5/src/core.js';import{ButtonView as _0xe151f4}from'ckeditor5/src/ui.js';import{createElement as _0x57e4af}from'ckeditor5/src/utils.js';import _0x3a65e8 from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x583f0c{constructor(){super(...arguments),this['_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 _0x49d9a5=this['editor'];_0x49d9a5['ui']['componentFactory']['add']('uploadcareImageEdit',_0x38a09f=>{const _0x510b26=_0x49d9a5['commands']['get']('uploadcareImageEdit'),_0x258a1d=new _0xe151f4(_0x38a09f),t=_0x38a09f['t'];return _0x258a1d['set']({'icon':_0x3a65e8,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x258a1d['bind']('isEnabled')['to'](_0x510b26),_0x258a1d['bind']('isOn')['to'](_0x510b26,'isActive'),this['listenTo'](_0x258a1d,'execute',()=>{_0x49d9a5['execute']('uploadcareImageEdit'),_0x49d9a5['editing']['view']['focus']();}),_0x258a1d;}),this['_initConfig']();}['_initConfig'](){const _0x9c6a13=_0x57e4af(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x9c6a13),this['listenTo'](this['editor'],'destroy',()=>{_0x9c6a13['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e1916=_0x4447;(function(_0x26d0de,_0x5820da){const _0x430d96=_0x4447,_0x2389d6=_0x26d0de();while(!![]){try{const _0x469e13=parseInt(_0x430d96(0x1ac))/0x1*(-parseInt(_0x430d96(0x1a3))/0x2)+-parseInt(_0x430d96(0x19a))/0x3*(-parseInt(_0x430d96(0x1a6))/0x4)+-parseInt(_0x430d96(0x1a7))/0x5*(parseInt(_0x430d96(0x1aa))/0x6)+parseInt(_0x430d96(0x1b2))/0x7*(-parseInt(_0x430d96(0x19d))/0x8)+-parseInt(_0x430d96(0x199))/0x9+parseInt(_0x430d96(0x19c))/0xa+parseInt(_0x430d96(0x19b))/0xb*(parseInt(_0x430d96(0x19f))/0xc);if(_0x469e13===_0x5820da)break;else _0x2389d6['push'](_0x2389d6['shift']());}catch(_0x19792d){_0x2389d6['push'](_0x2389d6['shift']());}}}(_0x53ad,0x9a8eb));function _0x53ad(){const _0x35ef51=['156mQWTwx','document','408937VzEMrD','getSelectedElement','refresh','change','editor','setAttributes','1358PoZiMS','execute','imageBlock','7555410drUfAE','4881lLvZjq','165mLSbFl','3789390WTBiwE','19504gYoBRf','element','1514076rjvTOy','srcset','removeAttribute','sizes','4iOWITn','imageInline','isEnabled','1900EwFqhG','54030ztnKIV','selection','model'];_0x53ad=function(){return _0x35ef51;};return _0x53ad();}function _0x4447(_0x5b9347,_0x4322be){const _0x53adfb=_0x53ad();return _0x4447=function(_0x4447e3,_0x1d99c9){_0x4447e3=_0x4447e3-0x197;let _0x566670=_0x53adfb[_0x4447e3];return _0x566670;},_0x4447(_0x5b9347,_0x4322be);}import{Command as _0x2d17cf}from'ckeditor5/src/core.js';export default class X extends _0x2d17cf{[_0x2e1916(0x1ae)](){const _0x2561cc=_0x2e1916,_0x50c4d8=this[_0x2561cc(0x1b0)][_0x2561cc(0x1a9)][_0x2561cc(0x1ab)][_0x2561cc(0x1a8)][_0x2561cc(0x1ad)]();this[_0x2561cc(0x1a5)]=Boolean(_0x50c4d8&&(_0x50c4d8['is'](_0x2561cc(0x19e),_0x2561cc(0x198))||_0x50c4d8['is'](_0x2561cc(0x19e),_0x2561cc(0x1a4))));}[_0x2e1916(0x197)](_0x182f57){const _0x3d7170=_0x2e1916,_0x45c9d1=this[_0x3d7170(0x1b0)][_0x3d7170(0x1a9)][_0x3d7170(0x1ab)][_0x3d7170(0x1a8)][_0x3d7170(0x1ad)]();this[_0x3d7170(0x1b0)][_0x3d7170(0x1a9)][_0x3d7170(0x1af)](_0x61b1=>{const _0x25a55b=_0x3d7170;_0x61b1[_0x25a55b(0x1b1)](_0x182f57,_0x45c9d1),_0x61b1[_0x25a55b(0x1a1)](_0x25a55b(0x1a0),_0x45c9d1),_0x61b1[_0x25a55b(0x1a1)](_0x25a55b(0x1a2),_0x45c9d1);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x5ee4(_0x57ac9c,_0x39333d){var _0x4a748e=_0x4a74();return _0x5ee4=function(_0x5ee4a9,_0x55efba){_0x5ee4a9=_0x5ee4a9-0x1ac;var _0x2ee39c=_0x4a748e[_0x5ee4a9];return _0x2ee39c;},_0x5ee4(_0x57ac9c,_0x39333d);}var _0x9c6328=_0x5ee4;(function(_0xee6c72,_0x2a244d){var _0x73ccdf=_0x5ee4,_0x37b010=_0xee6c72();while(!![]){try{var _0x27ba5d=-parseInt(_0x73ccdf(0x1bc))/0x1+parseInt(_0x73ccdf(0x1b3))/0x2+parseInt(_0x73ccdf(0x1b9))/0x3+parseInt(_0x73ccdf(0x1b0))/0x4*(parseInt(_0x73ccdf(0x1bb))/0x5)+parseInt(_0x73ccdf(0x1ae))/0x6*(-parseInt(_0x73ccdf(0x1b6))/0x7)+parseInt(_0x73ccdf(0x1ad))/0x8+-parseInt(_0x73ccdf(0x1af))/0x9;if(_0x27ba5d===_0x2a244d)break;else _0x37b010['push'](_0x37b010['shift']());}catch(_0x56b895){_0x37b010['push'](_0x37b010['shift']());}}}(_0x4a74,0x9f89e));import{FocusTracker as _0x345c23}from'ckeditor5/src/utils.js';import{View as _0x24ce74,FocusCycler as _0x402037}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x24ce74{constructor(_0x51e158){var _0xdf4a5f=_0x5ee4;super(_0x51e158),this[_0xdf4a5f(0x1b7)]=new _0x345c23(),this[_0xdf4a5f(0x1bd)]=new _0x402037({'focusables':this[_0xdf4a5f(0x1b2)](),'focusTracker':this[_0xdf4a5f(0x1b7)]});}[_0x9c6328(0x1b8)](){var _0x1c8b72=_0x9c6328;return{'tag':_0x1c8b72(0x1b1),'attributes':{'aria-hidden':_0x1c8b72(0x1b4),'tabindex':'0'},'on':{'focus':this[_0x1c8b72(0x1b5)]['to'](()=>{var _0x28a93e=_0x1c8b72;this[_0x28a93e(0x1bd)][_0x28a93e(0x1ac)](_0x28a93e(0x1ba));})}};}}function _0x4a74(){var _0x4a1268=['223846JycVIc','focusTracker','getFocusableElement','1182510OjyuRX','forwardCycle','3035BYcYIQ','37462UgaSIr','focusCycler','fire','4330440BBfWQZ','42uXnhdi','15297687IZUmhS','8252Xhgnau','div','createCollection','853610uLFKZm','true','bindTemplate'];_0x4a74=function(){return _0x4a1268;};return _0x4a74();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x509847,_0x474374){const _0x20202c=_0x47c1,_0x58fb5d=_0x509847();while(!![]){try{const _0x3ce10a=-parseInt(_0x20202c(0xf2))/0x1*(parseInt(_0x20202c(0xec))/0x2)+parseInt(_0x20202c(0xc0))/0x3+-parseInt(_0x20202c(0xe0))/0x4+-parseInt(_0x20202c(0xd9))/0x5+parseInt(_0x20202c(0xbc))/0x6*(parseInt(_0x20202c(0xcd))/0x7)+parseInt(_0x20202c(0xe5))/0x8*(parseInt(_0x20202c(0xd6))/0x9)+parseInt(_0x20202c(0xf3))/0xa;if(_0x3ce10a===_0x474374)break;else _0x58fb5d['push'](_0x58fb5d['shift']());}catch(_0xf9e1ac){_0x58fb5d['push'](_0x58fb5d['shift']());}}}(_0x4e21,0x72ee8));import{global as _0x1d70c5,DomEmitterMixin as _0x59bbeb}from'ckeditor5/src/utils.js';function _0x47c1(_0x189c78,_0x216c0a){const _0x4e216b=_0x4e21();return _0x47c1=function(_0x47c138,_0x1cb44f){_0x47c138=_0x47c138-0xbb;let _0x271918=_0x4e216b[_0x47c138];return _0x271918;},_0x47c1(_0x189c78,_0x216c0a);}export function createEditabilityChecker(_0x3318a8){const _0x3e175d=_0x47c1,_0x5d775d=R(_0x3318a8);return _0x10aa9c=>!(!_0x10aa9c||!_0x10aa9c['is'](_0x3e175d(0xf4),_0x3e175d(0xe7))&&!_0x10aa9c['is'](_0x3e175d(0xf4),_0x3e175d(0xd2)))&&(!!_0x10aa9c[_0x3e175d(0xea)](_0x3e175d(0xe3))||!!_0x10aa9c[_0x3e175d(0xea)](_0x3e175d(0xd5))&&_0x5d775d(_0x10aa9c[_0x3e175d(0xbb)](_0x3e175d(0xd5))));}export function getImageUrls(_0x1a3d2b,_0x5af3e9){const _0x15072b=_0x47c1,_0x48f643=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x15072b(0xf0)](_0x4004d3=>_0x4004d3<=_0x5af3e9)[_0x15072b(0xc1)](_0x24f1bf=>_0x1a3d2b[_0x15072b(0xcf)](/\/$/,'')+_0x15072b(0xc7)+_0x24f1bf+_0x15072b(0xe2)+_0x24f1bf+'w');return{'imageFallbackUrl':_0x1a3d2b,'imageSources':[{'srcset':_0x48f643[_0x15072b(0xbd)](',\x20'),'sizes':_0x15072b(0xd8)+_0x5af3e9+_0x15072b(0xe9)+_0x5af3e9+'px','type':_0x15072b(0xd1)}]};}export function getImageDimension(_0x4d44d5,_0x195ba9,_0x38af12){const _0xca5adc=_0x47c1,_0x243559=_0x4d44d5[_0xca5adc(0xe1)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x243559?parseInt(_0x243559[0x1],0xa):_0x195ba9,'height':_0x243559?parseInt(_0x243559[0x2],0xa):_0x38af12};}export function showImageProcessingIndicator(_0x5e2832,_0x85b81f){const _0x39a9dd=_0x47c1,_0x586b9c=Object[_0x39a9dd(0xcb)](_0x59bbeb),_0x170e6f=_0x5e2832[_0x39a9dd(0xc3)][_0x39a9dd(0xcc)](_0x39a9dd(0xef)),_0x287c4c=_0x5e2832[_0x39a9dd(0xd0)][_0x39a9dd(0xdd)][_0x39a9dd(0xce)](_0x85b81f),_0x267024=_0x170e6f[_0x39a9dd(0xdb)](_0x287c4c),_0x25849f=_0x5e2832[_0x39a9dd(0xd0)][_0x39a9dd(0xd7)][_0x39a9dd(0xc4)][_0x39a9dd(0xeb)](_0x267024),_0x29b28d=_0x85b81f[_0x39a9dd(0xbb)](_0x39a9dd(0xe6)),_0x37fb10=_0x85b81f[_0x39a9dd(0xbb)](_0x39a9dd(0xed)),_0x5d1244=_0x39a9dd(0xbf);_0x5e2832[_0x39a9dd(0xd0)][_0x39a9dd(0xd7)][_0x39a9dd(0xca)](_0x477509=>{const _0x19365c=_0x39a9dd;_0x477509[_0x19365c(0xf1)](_0x5d1244,_0x287c4c),_0x477509[_0x19365c(0xdf)](_0x19365c(0xc9),_0x29b28d+'/'+_0x37fb10,_0x267024);}),_0x586b9c[_0x39a9dd(0xe4)](_0x25849f,_0x39a9dd(0xd4),()=>{const _0x5dbd1e=_0x39a9dd;_0x586b9c[_0x5dbd1e(0xc6)](_0x25849f,_0x5dbd1e(0xd4)),_0x5e2832[_0x5dbd1e(0xd0)][_0x5dbd1e(0xd7)][_0x5dbd1e(0xca)](_0x5dd9af=>{const _0x354435=_0x5dbd1e;_0x5dd9af[_0x354435(0xbe)](_0x5d1244,_0x287c4c),_0x5dd9af[_0x354435(0xda)](_0x354435(0xc9),_0x267024);});});}function _0x4e21(){const _0x1d00cf=['ImageUtils','filter','addClass','14lysBve','11423770jvlUSY','element','getAttribute','204ERivfr','join','removeClass','image-processing','2160270eaFgvm','map','baseURI','plugins','domConverter','origin','stopListening','/-/resize/','window','aspect-ratio','change','create','get','22771JEzPiC','toViewElement','replace','editing','image/webp','imageInline','document','load','src','15354ClqBDy','view','(max-width:\x20','2499400KvPTZt','removeStyle','findViewImgElement','function','mapper','location','setStyle','933348vAFDhl','match','x/\x20','uploadcareImageId','listenTo','8nEqJCF','width','imageBlock','isArray','px)\x20100vw,\x20','hasAttribute','viewToDom','110114SCXxTb','height','some'];_0x4e21=function(){return _0x1d00cf;};return _0x4e21();}function R(_0x3b0098){const _0x3ddbd3=_0x47c1;if(Array[_0x3ddbd3(0xe8)](_0x3b0098)){const _0x150427=_0x3b0098[_0x3ddbd3(0xc1)](R);return _0x3b8734=>_0x150427[_0x3ddbd3(0xee)](_0x213c66=>_0x213c66(_0x3b8734));}if(_0x3ddbd3(0xc5)==_0x3b0098){const _0x365aaf=_0x1d70c5[_0x3ddbd3(0xc8)][_0x3ddbd3(0xde)][_0x3ddbd3(0xc5)];return _0x327379=>new URL(_0x327379,_0x1d70c5[_0x3ddbd3(0xd3)][_0x3ddbd3(0xc2)])[_0x3ddbd3(0xc5)]==_0x365aaf;}return _0x3ddbd3(0xdc)==typeof _0x3b0098?_0x3b0098:_0x3b0098 instanceof RegExp?_0x8c56ea=>!(!_0x8c56ea[_0x3ddbd3(0xe1)](_0x3b0098)&&!_0x8c56ea[_0x3ddbd3(0xcf)](/^https?:\/\//,'')[_0x3ddbd3(0xe1)](_0x3b0098)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x218c30,_0x1c5d96){var _0x238396=_0x1ec6,_0x47ecf0=_0x218c30();while(!![]){try{var _0x33e0bd=-parseInt(_0x238396(0x19e))/0x1*(-parseInt(_0x238396(0x197))/0x2)+-parseInt(_0x238396(0x19d))/0x3*(-parseInt(_0x238396(0x195))/0x4)+-parseInt(_0x238396(0x19b))/0x5*(-parseInt(_0x238396(0x198))/0x6)+-parseInt(_0x238396(0x19a))/0x7*(-parseInt(_0x238396(0x199))/0x8)+-parseInt(_0x238396(0x196))/0x9+-parseInt(_0x238396(0x193))/0xa+-parseInt(_0x238396(0x19f))/0xb;if(_0x33e0bd===_0x1c5d96)break;else _0x47ecf0['push'](_0x47ecf0['shift']());}catch(_0x1dc249){_0x47ecf0['push'](_0x47ecf0['shift']());}}}(_0x2cb2,0x5196a));function _0x1ec6(_0x40d431,_0x196090){var _0x2cb21d=_0x2cb2();return _0x1ec6=function(_0x1ec65f,_0x3e9121){_0x1ec65f=_0x1ec65f-0x193;var _0x359932=_0x2cb21d[_0x1ec65f];return _0x359932;},_0x1ec6(_0x40d431,_0x196090);}import{getAncestors as _0x21c1f9}from'ckeditor5/src/utils.js';export function isAncestor(_0x387304,_0x20e020){var _0x2f473b=_0x1ec6;return _0x21c1f9(_0x387304[_0x2f473b(0x19c)])[_0x2f473b(0x194)](_0x20e020);}function _0x2cb2(){var _0x2401e2=['386431DPOznd','12974236ImvgWx','4165680BUJyvN','includes','4ioPKUv','204912WjDvyk','2YUMKtz','2994TJbGNs','4189112DdFjxS','7hEAxcV','5270NQYMsA','target','1550946cjnkZN'];_0x2cb2=function(){return _0x2401e2;};return _0x2cb2();}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x526698=_0xc2c8;(function(_0x4d9dc1,_0x206261){var _0x467d3e=_0xc2c8,_0x15f183=_0x4d9dc1();while(!![]){try{var _0x251c6a=parseInt(_0x467d3e(0xbe))/0x1*(parseInt(_0x467d3e(0xb4))/0x2)+-parseInt(_0x467d3e(0xbc))/0x3*(parseInt(_0x467d3e(0xba))/0x4)+-parseInt(_0x467d3e(0xb9))/0x5*(parseInt(_0x467d3e(0xbf))/0x6)+-parseInt(_0x467d3e(0xbd))/0x7+-parseInt(_0x467d3e(0xb3))/0x8+parseInt(_0x467d3e(0xb6))/0x9*(-parseInt(_0x467d3e(0xb5))/0xa)+parseInt(_0x467d3e(0xbb))/0xb;if(_0x251c6a===_0x206261)break;else _0x15f183['push'](_0x15f183['shift']());}catch(_0x5d4eda){_0x15f183['push'](_0x15f183['shift']());}}}(_0x1494,0x9a506));import{uploadFile as _0x10accd,info as _0x14cd89}from'@uploadcare/upload-client';function _0xc2c8(_0x312740,_0x37fa0e){var _0x1494ea=_0x1494();return _0xc2c8=function(_0xc2c841,_0x42f80d){_0xc2c841=_0xc2c841-0xb3;var _0x2e8183=_0x1494ea[_0xc2c841];return _0x2e8183;},_0xc2c8(_0x312740,_0x37fa0e);}export default class k{static[_0x526698(0xc0)]({file:_0x48c380,publicKey:_0x5ae0a3,signal:_0x4ffcd0,onProgress:_0x4f608f}){var _0x37576e=_0x526698;return _0x10accd(_0x48c380,{'publicKey':_0x5ae0a3,'store':_0x37576e(0xb8),'signal':_0x4ffcd0,'onProgress':_0x4f608f});}static[_0x526698(0xb7)](_0x2657cd,_0xaacd6e){return _0x14cd89(_0x2657cd,_0xaacd6e);}}function _0x1494(){var _0x3f4c3e=['getInfo','auto','747935engSoj','17972jthTYm','39720076VFmHrX','711ylynFj','4951198iALQXH','1irJZMU','6IEpmSd','upload','5280832sScmgW','1248374BNfIwO','10211870QSuVWO','9cGUBoY'];_0x1494=function(){return _0x3f4c3e;};return _0x1494();}
|