@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250223.0 → 0.0.0-nightly-next-20250224.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/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 _0x415acc,ObservableMixin as _0x876cfd}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x52eda0}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x34f53d}from'ckeditor5/src/icons.js';import _0x29fe81 from'./uploadcareimageeditformview.js';import _0x4b67a4 from'../../utils/uploadutils.js';import{getImageUrls as _0xbfa909,getImageDimension as _0x44dfcb}from'../../utils/editingutils.js';import{isAncestor as _0x479206}from'../../utils/isancestor.js';export default class O extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x876cfd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2bcc22,_0x2d82d2,_0x5145e8){super(),this['_editor']=_0x2bcc22,this['_dialog']=_0x2d82d2,this['_imageElement']=_0x5145e8,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 _0x2d5ed2=this['_imageElement'],_0x53fb49=_0x2d5ed2['getAttribute']('uploadcareImageId'),_0x528723=_0x2d5ed2['getAttribute']('src');if(_0x53fb49)await this['_loadImageInfo'](_0x53fb49,_0x528723);else{if(this['_imageCache']['has'](_0x528723)){const _0x5bd28b=this['_imageCache']['get'](_0x528723);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5bd28b['url'],this['imageDimension']=_0x5bd28b['dimension'],this['imageId']=_0x5bd28b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x340aec}=this['_editor'],t=_0x340aec['t'],_0x9322f=new _0x29fe81(_0x340aec,this['imageStatus'],this['_attributes']);_0x9322f['bind']('status')['to'](this,'imageStatus'),_0x9322f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x9322f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x9322f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x9322f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x34f53d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x9322f,'position':_0x52eda0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x9322f['focus']();},'onHide':()=>{_0x9322f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5a8954=>!_0x479206(_0x5a8954,_0x9322f['element'])}});}['_loadImageInfo'](_0x4f6746,_0x2ebe18){return _0x4b67a4['getInfo'](_0x4f6746,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2999a4=>{const {width:_0x3b9d95,height:_0x63f50b}=_0x2999a4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ebe18,this['imageDimension']={'width':_0x3b9d95,'height':_0x63f50b},this['imageId']=_0x4f6746;})['catch'](_0x200098=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x200098['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x51e29d,_0x3cc2fc){return this['_getImageAsFile'](_0x51e29d)['then'](_0x47493b=>_0x4b67a4['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3cc2fc['signal'],'file':_0x47493b,'onProgress':_0x1eb159=>{_0x1eb159&&_0x1eb159['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1eb159['value']));}}))['then'](_0x2ee398=>{const {width:_0x5928ac,height:_0x270ec8}=_0x2ee398['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ee398['cdnUrl'],this['imageDimension']={'width':_0x5928ac,'height':_0x270ec8},this['imageId']=_0x2ee398['uuid'],this['imageUploadProgress']=null;const _0x3ca58b=_0x51e29d['getAttribute']('src');this['_imageCache']['set'](_0x3ca58b,{'id':_0x2ee398['uuid'],'url':_0x2ee398['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x258cf0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x258cf0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x403aed,_0x484cb6){_0x403aed['on']('apply',(_0x1fb300,_0x34734c)=>{this['_replaceImage'](_0x484cb6,_0x34734c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x403aed['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x403aed['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xe2f38,_0x5f2b63,_0x32fe68){const _0x18dd06=this['_editor'],{width:_0x3eb38a,height:_0x13cec8}=_0x44dfcb(_0x5f2b63,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5cfa93,imageSources:_0x2a179c}=_0xbfa909(_0x5f2b63,_0x3eb38a);_0x18dd06['model']['change'](_0x2608f4=>{if('$graveyard'===_0xe2f38['root']['rootName']){_0x18dd06['execute']('insertImage',{'imageType':_0xe2f38['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xe2f38['getAttributes']()),'uploadcareImageId':_0x32fe68,'src':_0x5cfa93,'sources':_0x2a179c,'width':_0x3eb38a,'height':_0x13cec8}});const _0x38daf8=_0xe2f38['getChildren']();_0xe2f38=_0x18dd06['model']['document']['selection']['getSelectedElement']();for(const _0x5c6a6d of _0x38daf8)_0x2608f4['append'](_0x2608f4['cloneElement'](_0x5c6a6d),_0xe2f38);}else _0x2608f4['setSelection'](_0xe2f38,'on'),_0x18dd06['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xe2f38['getAttributes']()),'uploadcareImageId':_0x32fe68,'src':_0x5cfa93,'sources':_0x2a179c,'width':_0x3eb38a,'height':_0x13cec8},_0xe2f38);_0x2608f4['setSelection'](_0xe2f38,'on');});}async['_getImageAsFile'](_0x5ea29a){const _0x3b4da2=_0x415acc['window'],_0x40c619=_0x415acc['document']['location']['href'],_0xe795b2=new _0x3b4da2['URL'](_0x5ea29a['getAttribute']('src'),_0x40c619);if('data:'===_0xe795b2['protocol']){const _0x45b6af=_0xe795b2['href']['split'](','),_0x386873=_0x45b6af[0x0]['match'](/:(.*?);/)[0x1],_0x4aaa24=_0x386873['split']('/')[0x1],_0x14a5f6=_0x3b4da2['atob'](_0x45b6af[_0x45b6af['length']-0x1]);let _0x4bc22e=_0x14a5f6['length'];const _0x4aeda6=new _0x3b4da2['Uint8Array'](_0x4bc22e);for(;_0x4bc22e--;)_0x4aeda6[_0x4bc22e]=_0x14a5f6['charCodeAt'](_0x4bc22e);return new _0x3b4da2['File']([_0x4aeda6],'image.'+_0x4aaa24,{'type':_0x386873});}const _0x38e262=_0xe795b2['href']['split']('/'),_0xa57b3d=_0x38e262[_0x38e262['length']-0x1],_0x1790da=_0xa57b3d['split']('.')[0x1];return _0x3b4da2['fetch'](_0xe795b2['href'])['then'](_0x37a618=>_0x37a618['clone']()['blob']())['then'](_0x4ba1bc=>new _0x3b4da2['File']([_0x4ba1bc],_0xa57b3d,{'type':'image/'+_0x1790da}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x58c8(){const _0x11b7d7=['9bVCZcb','40319620AXZiDO','bindTemplate','18sTDuwt','39878UIZQhk','set','104700VvUeoT','1016204Dmuson','imageSrc','ck-uploadcare-theme','uc-light','128rjMKyZ','image-edit','22qydozS','setTemplate','uc-cloud-image-editor','8324520BUBCAC','3182850xYIASZ','2101150exDrRz'];_0x58c8=function(){return _0x11b7d7;};return _0x58c8();}(function(_0x431132,_0xcdb55e){const _0xd64a17=_0x3546,_0x57a174=_0x431132();while(!![]){try{const _0x2d0311=parseInt(_0xd64a17(0x17b))/0x1*(-parseInt(_0xd64a17(0x184))/0x2)+parseInt(_0xd64a17(0x17d))/0x3*(-parseInt(_0xd64a17(0x182))/0x4)+-parseInt(_0xd64a17(0x188))/0x5+parseInt(_0xd64a17(0x18d))/0x6*(parseInt(_0xd64a17(0x17e))/0x7)+parseInt(_0xd64a17(0x187))/0x8*(-parseInt(_0xd64a17(0x18a))/0x9)+-parseInt(_0xd64a17(0x189))/0xa+parseInt(_0xd64a17(0x18b))/0xb;if(_0x2d0311===_0xcdb55e)break;else _0x57a174['push'](_0x57a174['shift']());}catch(_0x435850){_0x57a174['push'](_0x57a174['shift']());}}}(_0x58c8,0xa0b34));function _0x3546(_0x343df9,_0x390085){const _0x58c8de=_0x58c8();return _0x3546=function(_0x35461e,_0x99de7c){_0x35461e=_0x35461e-0x17b;let _0x24536b=_0x58c8de[_0x35461e];return _0x24536b;},_0x3546(_0x343df9,_0x390085);}import{View as _0xed379e}from'ckeditor5/src/ui.js';export default class tt extends _0xed379e{constructor(_0x24854e,_0x1f1972){const _0x549e07=_0x3546;super(_0x24854e);const _0xdca19e=this[_0x549e07(0x18c)];this[_0x549e07(0x17c)](_0x549e07(0x17f),''),this[_0x549e07(0x185)]({'tag':_0x549e07(0x186),'attributes':{..._0x1f1972,'class':[_0x549e07(0x181),_0x549e07(0x180)],'ctx-name':_0x549e07(0x183),'cdn-url':_0xdca19e['to'](_0x549e07(0x17f))}});}}
|
|
@@ -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 _0x5ed2cb,IconView as at,View as _0x1250fa}from'ckeditor5/src/ui.js';export default class rt extends _0x1250fa{constructor(_0x1e710e){super(_0x1e710e);const t=_0x1e710e['t'];this['set']('errorType',null);const _0x43e1e7=new _0x5ed2cb(_0x1e710e);_0x43e1e7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x43e1e7['withText']=!0x0,_0x43e1e7['class']='ck-button-action',_0x43e1e7['on']('execute',()=>{this['fire']('retry');}),_0x43e1e7['bind']('isVisible')['to'](this,'errorType',_0x3c269f=>'NotFound'!==_0x3c269f);const _0x338749=new at();_0x338749['content']=et,_0x338749['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x411ea9=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':[_0x338749,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x411ea9['to']('errorType',_0x29fb63=>t('NotFound'!==_0x29fb63?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x43e1e7]},{'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 _0x27bb7b,View as _0x3bd677}from'ckeditor5/src/ui.js';export default class ta extends _0x3bd677{constructor(_0x3e6ed5){super(_0x3e6ed5);const t=_0x3e6ed5['t'],_0x18bdfe=this['bindTemplate'],_0x5ea8df=new _0x27bb7b();_0x5ea8df['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':[_0x5ea8df,{'text':_0x18bdfe['to']('imageUploadProgress',_0x481dcd=>t('Loading\x20image...')+'\x20('+(_0x481dcd||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
|
+
function _0x5bd6(_0x11360d,_0xe128a9){const _0x40ee9f=_0x40ee();return _0x5bd6=function(_0x5bd66d,_0x51d970){_0x5bd66d=_0x5bd66d-0x16c;let _0x493110=_0x40ee9f[_0x5bd66d];return _0x493110;},_0x5bd6(_0x11360d,_0xe128a9);}const _0x1080f0=_0x5bd6;(function(_0x26b9e7,_0x404d71){const _0xe18859=_0x5bd6,_0x5ce690=_0x26b9e7();while(!![]){try{const _0x584fc7=-parseInt(_0xe18859(0x19c))/0x1+-parseInt(_0xe18859(0x187))/0x2+-parseInt(_0xe18859(0x191))/0x3*(parseInt(_0xe18859(0x184))/0x4)+parseInt(_0xe18859(0x19d))/0x5*(-parseInt(_0xe18859(0x175))/0x6)+parseInt(_0xe18859(0x19a))/0x7*(-parseInt(_0xe18859(0x18f))/0x8)+-parseInt(_0xe18859(0x17a))/0x9*(-parseInt(_0xe18859(0x197))/0xa)+parseInt(_0xe18859(0x18d))/0xb;if(_0x584fc7===_0x404d71)break;else _0x5ce690['push'](_0x5ce690['shift']());}catch(_0x409c09){_0x5ce690['push'](_0x5ce690['shift']());}}}(_0x40ee,0x1ac15));import{View as _0x23e477}from'ckeditor5/src/ui.js';import _0x1bf044 from'./uploadcareimageeditformloadingview.js';import _0x230276 from'./uploadcareimageeditformerrorview.js';import _0x2dfd68 from'./uploadcareimageeditformeditingview.js';function _0x40ee(){const _0x1f68bc=['ready','setTemplate','nodeName','detail','_waitForImageEditorComponent','filter','_loadingView','168GXRCfe','element','ck-reset_all-excluded','addEventListener','uc-cloud-image-editor','11709vJWVjb','set','status','once','_addUploadcareImageEditorListeners','render','fire','clear','_editingView','addedNodes','48dRiWeO','add','_errorView','418384uklAXb','focus','apply','observe','toLowerCase','target','7870016MllRQt','querySelector','16gaOBZX','div','50871wkvOSm','getFocusableElement','length','cdnUrl','ck-uploadcare-form','disconnect','1130EykTPs','change:status','_focusableView','744877SaOsVk','_addErrorViewListeners','126570ohEJrx','145IOLytP','retry','cancel','uploading','_items','error','createCollection','addMany','_setView'];_0x40ee=function(){return _0x1f68bc;};return _0x40ee();}import _0x3cb81e from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x3cb81e{[_0x1080f0(0x1a1)];[_0x1080f0(0x174)];[_0x1080f0(0x186)];[_0x1080f0(0x182)];[_0x1080f0(0x199)];constructor(_0x4f9730,_0xe07bbb,_0x40c783){const _0x5979c8=_0x1080f0;super(_0x4f9730),this[_0x5979c8(0x1a1)]=this[_0x5979c8(0x1a3)](),this[_0x5979c8(0x174)]=new _0x1bf044(_0x4f9730),this[_0x5979c8(0x186)]=new _0x230276(_0x4f9730),this[_0x5979c8(0x182)]=new _0x2dfd68(_0x4f9730,_0x40c783),this[_0x5979c8(0x199)]=new _0x23e477(_0x4f9730),this[_0x5979c8(0x199)][_0x5979c8(0x16f)](this[_0x5979c8(0x192)]()),this[_0x5979c8(0x17b)](_0x5979c8(0x17c),_0xe07bbb),this[_0x5979c8(0x16f)]({'tag':_0x5979c8(0x190),'attributes':{'class':['ck',_0x5979c8(0x177),_0x5979c8(0x195)],'tabindex':'-1'},'children':this[_0x5979c8(0x1a1)]}),this[_0x5979c8(0x16d)](),this[_0x5979c8(0x17d)](_0x5979c8(0x17f),()=>{const _0x13aede=_0x5979c8;this[_0x13aede(0x172)](this[_0x13aede(0x176)],_0x38a063=>{const _0x52880d=_0x13aede;this[_0x52880d(0x17e)](_0x38a063);});}),this['on'](_0x5979c8(0x198),()=>{const _0x4ee731=_0x5979c8;this[_0x4ee731(0x16d)]();}),this[_0x5979c8(0x19b)]();}[_0x1080f0(0x188)](){const _0x260e84=_0x1080f0;this[_0x260e84(0x176)][_0x260e84(0x188)]();}[_0x1080f0(0x16d)](){const _0x4fe2c0=_0x1080f0;switch(this[_0x4fe2c0(0x1a1)][_0x4fe2c0(0x181)](),this[_0x4fe2c0(0x17c)]){case _0x4fe2c0(0x1a0):this[_0x4fe2c0(0x1a1)][_0x4fe2c0(0x185)](this[_0x4fe2c0(0x174)]);break;case _0x4fe2c0(0x1a2):this[_0x4fe2c0(0x1a1)][_0x4fe2c0(0x185)](this[_0x4fe2c0(0x186)]);break;case _0x4fe2c0(0x16e):this[_0x4fe2c0(0x1a1)][_0x4fe2c0(0x16c)]([this[_0x4fe2c0(0x182)],this[_0x4fe2c0(0x199)]]);}}[_0x1080f0(0x172)](_0x30e002,_0x22e42b){const _0x1d9f88=_0x1080f0,_0xd7fc14=_0x1d9f88(0x179),_0x591016=_0x30e002[_0x1d9f88(0x18e)](_0xd7fc14);if(_0x591016)return _0x22e42b(_0x591016);const _0x52a9cb=new MutationObserver(_0x58e10e=>{const _0x352789=_0x1d9f88,_0x1a5e17=_0x58e10e[_0x352789(0x173)](_0x59813a=>_0x59813a[_0x352789(0x18c)]===_0x30e002&&_0x59813a[_0x352789(0x183)][_0x352789(0x193)]>0x0&&_0x59813a[_0x352789(0x183)][0x0][_0x352789(0x170)][_0x352789(0x18b)]()===_0xd7fc14);_0x1a5e17[_0x352789(0x193)]&&(_0x52a9cb[_0x352789(0x196)](),_0x22e42b(_0x1a5e17[0x0][_0x352789(0x183)][0x0]));});_0x52a9cb[_0x1d9f88(0x18a)](_0x30e002,{'childList':!0x0,'subtree':!0x0});}[_0x1080f0(0x17e)](_0x20ca74){const _0x38242f=_0x1080f0;_0x20ca74[_0x38242f(0x178)](_0x38242f(0x189),_0x45f4dc=>{const _0x3f6f85=_0x38242f;this[_0x3f6f85(0x180)](_0x3f6f85(0x189),{'imageSrc':_0x45f4dc[_0x3f6f85(0x171)][_0x3f6f85(0x194)]});}),_0x20ca74[_0x38242f(0x178)](_0x38242f(0x19f),()=>{const _0x559100=_0x38242f;this[_0x559100(0x180)](_0x559100(0x19f));});}[_0x1080f0(0x19b)](){const _0x2a6657=_0x1080f0;this[_0x2a6657(0x186)]['on'](_0x2a6657(0x19e),()=>{const _0x26e345=_0x2a6657;this[_0x26e345(0x180)](_0x26e345(0x19e));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x517b8c=_0x200e;(function(_0x4b50f7,_0x4a2bab){const _0x1c7ac2=_0x200e,_0x3ed6da=_0x4b50f7();while(!![]){try{const _0x36bd18=-parseInt(_0x1c7ac2(0x18c))/0x1*(parseInt(_0x1c7ac2(0x191))/0x2)+-parseInt(_0x1c7ac2(0x189))/0x3*(-parseInt(_0x1c7ac2(0x177))/0x4)+parseInt(_0x1c7ac2(0x17e))/0x5+parseInt(_0x1c7ac2(0x18a))/0x6*(parseInt(_0x1c7ac2(0x193))/0x7)+parseInt(_0x1c7ac2(0x181))/0x8+parseInt(_0x1c7ac2(0x17a))/0x9+-parseInt(_0x1c7ac2(0x18d))/0xa*(parseInt(_0x1c7ac2(0x194))/0xb);if(_0x36bd18===_0x4a2bab)break;else _0x3ed6da['push'](_0x3ed6da['shift']());}catch(_0x5021d3){_0x3ed6da['push'](_0x3ed6da['shift']());}}}(_0x5d91,0xae8a2));import{Command as _0x35f2d7}from'ckeditor5/src/core.js';function _0x200e(_0x2ac5d6,_0x3a5770){const _0x5d912d=_0x5d91();return _0x200e=function(_0x200ee3,_0x40966e){_0x200ee3=_0x200ee3-0x175;let _0xfcf5b8=_0x5d912d[_0x200ee3];return _0xfcf5b8;},_0x200e(_0x2ac5d6,_0x3a5770);}import{Dialog as _0x3ca17c}from'ckeditor5/src/ui.js';import _0x2054d8 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x586fcd}from'../utils/editingutils.js';function _0x5d91(){const _0x19db26=['102OvNkcD','model','1zbzwPN','22336510ykXZqN','uploadcare.allowExternalImagesEditing','element','imageInline','1049762aJaJXt','selection','265937VdPGXv','11AazWRH','bind','imageEditController','config','32osIHeW','get','requires','5328441czusIO','imageBlock','document','unbind','3736330FyOupt','refresh','getSelectedElement','8353376YEcdxq','plugins','editor','execute','isActive','set','isEnabled','_isEditable','166542gIcUAg'];_0x5d91=function(){return _0x19db26;};return _0x5d91();}export default class V extends _0x35f2d7{[_0x517b8c(0x175)];static get[_0x517b8c(0x179)](){return[_0x3ca17c];}[_0x517b8c(0x188)];constructor(_0x5b4e10){const _0x1d1d69=_0x517b8c;super(_0x5b4e10),this[_0x1d1d69(0x175)]=void 0x0,this[_0x1d1d69(0x188)]=_0x586fcd(_0x5b4e10[_0x1d1d69(0x176)][_0x1d1d69(0x178)](_0x1d1d69(0x18e))||[]),this[_0x1d1d69(0x186)]({'isActive':!0x1});}[_0x517b8c(0x17f)](){const _0x74d419=_0x517b8c,_0xd4bdc7=this[_0x74d419(0x183)][_0x74d419(0x18b)][_0x74d419(0x17c)][_0x74d419(0x192)][_0x74d419(0x180)]();this[_0x74d419(0x187)]=this[_0x74d419(0x188)](_0xd4bdc7);}[_0x517b8c(0x184)](){const _0x5461f6=_0x517b8c;this[_0x5461f6(0x175)]&&(this[_0x5461f6(0x17d)](_0x5461f6(0x185)),this[_0x5461f6(0x175)]=void 0x0);const _0xc300e4=this[_0x5461f6(0x183)][_0x5461f6(0x18b)][_0x5461f6(0x17c)][_0x5461f6(0x192)][_0x5461f6(0x180)]();_0xc300e4&&(_0xc300e4['is'](_0x5461f6(0x18f),_0x5461f6(0x17b))||_0xc300e4['is'](_0x5461f6(0x18f),_0x5461f6(0x190)))&&(this[_0x5461f6(0x175)]=new _0x2054d8(this[_0x5461f6(0x183)],this[_0x5461f6(0x183)][_0x5461f6(0x182)][_0x5461f6(0x178)](_0x3ca17c),_0xc300e4),this[_0x5461f6(0x195)](_0x5461f6(0x185))['to'](this[_0x5461f6(0x175)],_0x5461f6(0x185)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9b2fae=_0x4f6b;(function(_0x346432,_0x661e95){const _0x255b8c=_0x4f6b,_0x28d03e=_0x346432();while(!![]){try{const _0x39d4d0=-parseInt(_0x255b8c(0x1be))/0x1+parseInt(_0x255b8c(0x1c7))/0x2*(-parseInt(_0x255b8c(0x1bd))/0x3)+parseInt(_0x255b8c(0x1c4))/0x4+parseInt(_0x255b8c(0x1c3))/0x5*(-parseInt(_0x255b8c(0x1bf))/0x6)+parseInt(_0x255b8c(0x1c5))/0x7+parseInt(_0x255b8c(0x1ce))/0x8*(-parseInt(_0x255b8c(0x1ca))/0x9)+-parseInt(_0x255b8c(0x1cc))/0xa*(-parseInt(_0x255b8c(0x1c9))/0xb);if(_0x39d4d0===_0x661e95)break;else _0x28d03e['push'](_0x28d03e['shift']());}catch(_0x1dbffa){_0x28d03e['push'](_0x28d03e['shift']());}}}(_0xf531,0x444cd));import{Plugin as _0x36703a}from'ckeditor5/src/core.js';import{Notification as _0x204441}from'ckeditor5/src/ui.js';import _0xcb5cb0 from'./uploadcareimageeditcommand.js';function _0xf531(){const _0x31e6bb=['33TrUSUa','57258cpBWIZ','isPremiumPlugin','913370dGxLZH','init','24lTlFBe','UploadcareImageEditEditing','ImageUtils','add','ImageEditing','isOfficialPlugin','160233oYfKXZ','194513OllvNx','390jHXBLL','commands','uploadcareImageEdit','uploadcareImageReplace','5ihfyby','1673924GTDZmm','475888JuWyUi','requires','10oeTqOQ','pluginName'];_0xf531=function(){return _0x31e6bb;};return _0xf531();}import _0x4af827 from'./uploadcareimagereplacecommand.js';function _0x4f6b(_0x207227,_0x3d734e){const _0xf531f1=_0xf531();return _0x4f6b=function(_0x4f6b28,_0x27c1cd){_0x4f6b28=_0x4f6b28-0x1b9;let _0x550655=_0xf531f1[_0x4f6b28];return _0x550655;},_0x4f6b(_0x207227,_0x3d734e);}import _0x1a568f from'../uploadcareediting.js';export default class g extends _0x36703a{static get[_0x9b2fae(0x1c8)](){const _0x512188=_0x9b2fae;return _0x512188(0x1cf);}static get[_0x9b2fae(0x1c6)](){const _0x3fee2d=_0x9b2fae;return[_0x1a568f,_0x204441,_0x3fee2d(0x1b9),_0x3fee2d(0x1bb)];}static get[_0x9b2fae(0x1bc)](){return!0x0;}static get[_0x9b2fae(0x1cb)](){return!0x0;}[_0x9b2fae(0x1cd)](){const _0x4a74e2=_0x9b2fae,{editor:_0xf89f02}=this;_0xf89f02[_0x4a74e2(0x1c0)][_0x4a74e2(0x1ba)](_0x4a74e2(0x1c1),new _0xcb5cb0(_0xf89f02)),_0xf89f02[_0x4a74e2(0x1c0)][_0x4a74e2(0x1ba)](_0x4a74e2(0x1c2),new _0x4af827(_0xf89f02));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1ed35d}from'ckeditor5/src/core.js';import{ButtonView as _0x3cbdb2}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2f5df6}from'ckeditor5/src/icons.js';import{createElement as _0x1692ce}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 _0x1ed35d{['_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 _0x546835=this['editor'];_0x546835['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1de95d=>{const _0x458de9=_0x546835['commands']['get']('uploadcareImageEdit'),_0x26f00e=new _0x3cbdb2(_0x1de95d),t=_0x1de95d['t'];return _0x26f00e['set']({'icon':_0x2f5df6,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x26f00e['bind']('isEnabled')['to'](_0x458de9),_0x26f00e['bind']('isOn')['to'](_0x458de9,'isActive'),this['listenTo'](_0x26f00e,'execute',()=>{_0x546835['execute']('uploadcareImageEdit'),_0x546835['editing']['view']['focus']();}),_0x26f00e;}),this['_initConfig']();}['_initConfig'](){const _0x1cc3d3=_0x1692ce(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1cc3d3),this['listenTo'](this['editor'],'destroy',()=>{_0x1cc3d3['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46f7cf=_0x2397;function _0x2397(_0x20d9fe,_0x7c07f3){const _0x12d5b6=_0x12d5();return _0x2397=function(_0x2397b5,_0x38afcc){_0x2397b5=_0x2397b5-0x174;let _0x3b0fff=_0x12d5b6[_0x2397b5];return _0x3b0fff;},_0x2397(_0x20d9fe,_0x7c07f3);}(function(_0x31fcaa,_0x556bd0){const _0x24a19b=_0x2397,_0x417f09=_0x31fcaa();while(!![]){try{const _0x51d3c3=parseInt(_0x24a19b(0x185))/0x1*(parseInt(_0x24a19b(0x17e))/0x2)+-parseInt(_0x24a19b(0x17b))/0x3*(-parseInt(_0x24a19b(0x186))/0x4)+parseInt(_0x24a19b(0x189))/0x5+parseInt(_0x24a19b(0x17d))/0x6*(parseInt(_0x24a19b(0x17c))/0x7)+parseInt(_0x24a19b(0x17f))/0x8+-parseInt(_0x24a19b(0x180))/0x9*(parseInt(_0x24a19b(0x18e))/0xa)+-parseInt(_0x24a19b(0x174))/0xb;if(_0x51d3c3===_0x556bd0)break;else _0x417f09['push'](_0x417f09['shift']());}catch(_0xf198e7){_0x417f09['push'](_0x417f09['shift']());}}}(_0x12d5,0x978a0));import{Command as _0x1a1ff1}from'ckeditor5/src/core.js';function _0x12d5(){const _0x29c9e9=['isEnabled','document','editor','sizes','43JcecIp','4WsmafG','imageInline','setAttributes','539880wYYPli','change','refresh','srcset','removeAttribute','9310sxGcpW','15146428rwSRyr','selection','element','execute','imageBlock','getSelectedElement','model','3563034WJcyzl','7aJPkxI','1916310sUdcsu','11602gBvIvs','1534584adPRZa','567rrLsJA'];_0x12d5=function(){return _0x29c9e9;};return _0x12d5();}export default class X extends _0x1a1ff1{[_0x46f7cf(0x18b)](){const _0x521433=_0x46f7cf,_0x2069b3=this[_0x521433(0x183)][_0x521433(0x17a)][_0x521433(0x182)][_0x521433(0x175)][_0x521433(0x179)]();this[_0x521433(0x181)]=Boolean(_0x2069b3&&(_0x2069b3['is'](_0x521433(0x176),_0x521433(0x178))||_0x2069b3['is'](_0x521433(0x176),_0x521433(0x187))));}[_0x46f7cf(0x177)](_0x5b8d1b){const _0x4c3b36=_0x46f7cf,_0x234315=this[_0x4c3b36(0x183)][_0x4c3b36(0x17a)][_0x4c3b36(0x182)][_0x4c3b36(0x175)][_0x4c3b36(0x179)]();this[_0x4c3b36(0x183)][_0x4c3b36(0x17a)][_0x4c3b36(0x18a)](_0xbcbd9c=>{const _0x5b1b61=_0x4c3b36;_0xbcbd9c[_0x5b1b61(0x188)](_0x5b8d1b,_0x234315),_0xbcbd9c[_0x5b1b61(0x18d)](_0x5b1b61(0x18c),_0x234315),_0xbcbd9c[_0x5b1b61(0x18d)](_0x5b1b61(0x184),_0x234315);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x37f74c=_0x3e12;(function(_0x345539,_0x3d29c6){var _0x5b1e13=_0x3e12,_0x3e54fa=_0x345539();while(!![]){try{var _0x33fdea=-parseInt(_0x5b1e13(0x1a3))/0x1*(parseInt(_0x5b1e13(0x1a6))/0x2)+parseInt(_0x5b1e13(0x1a4))/0x3*(-parseInt(_0x5b1e13(0x1b6))/0x4)+parseInt(_0x5b1e13(0x1a5))/0x5+-parseInt(_0x5b1e13(0x1b4))/0x6*(parseInt(_0x5b1e13(0x1ad))/0x7)+-parseInt(_0x5b1e13(0x1b5))/0x8*(parseInt(_0x5b1e13(0x1a8))/0x9)+-parseInt(_0x5b1e13(0x1b2))/0xa*(-parseInt(_0x5b1e13(0x1ae))/0xb)+parseInt(_0x5b1e13(0x1a7))/0xc;if(_0x33fdea===_0x3d29c6)break;else _0x3e54fa['push'](_0x3e54fa['shift']());}catch(_0x22edff){_0x3e54fa['push'](_0x3e54fa['shift']());}}}(_0x2aa7,0xc15d8));function _0x3e12(_0x88236a,_0xccd2b6){var _0x2aa771=_0x2aa7();return _0x3e12=function(_0x3e1295,_0x5803dd){_0x3e1295=_0x3e1295-0x1a2;var _0x17b574=_0x2aa771[_0x3e1295];return _0x17b574;},_0x3e12(_0x88236a,_0xccd2b6);}import{FocusTracker as _0x3234ff}from'ckeditor5/src/utils.js';import{View as _0x436624,FocusCycler as _0x1ce99b}from'ckeditor5/src/ui.js';function _0x2aa7(){var _0x407218=['12tRFOAO','4790792iTkYyo','391736aZVyYW','forwardCycle','142498XTMWNt','6UEtfWf','3654050YQaHOK','16CLmaHT','24420048CwXbnx','9qVjViY','getFocusableElement','div','fire','focusTracker','1255198sVidne','13893PnSQEu','true','focusCycler','createCollection','2530ewgruN','bindTemplate'];_0x2aa7=function(){return _0x407218;};return _0x2aa7();}import'../../theme/uploadcare-form.css';export default class q extends _0x436624{[_0x37f74c(0x1ac)];[_0x37f74c(0x1b0)];constructor(_0x3f6051){var _0x3fedb2=_0x37f74c;super(_0x3f6051),this[_0x3fedb2(0x1ac)]=new _0x3234ff(),this[_0x3fedb2(0x1b0)]=new _0x1ce99b({'focusables':this[_0x3fedb2(0x1b1)](),'focusTracker':this[_0x3fedb2(0x1ac)]});}[_0x37f74c(0x1a9)](){var _0x2e14df=_0x37f74c;return{'tag':_0x2e14df(0x1aa),'attributes':{'aria-hidden':_0x2e14df(0x1af),'tabindex':'0'},'on':{'focus':this[_0x2e14df(0x1b3)]['to'](()=>{var _0x14e947=_0x2e14df;this[_0x14e947(0x1b0)][_0x14e947(0x1ab)](_0x14e947(0x1a2));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x21c95b,_0x5661ca){const _0x251ab4=_0x37ee,_0x33b183=_0x21c95b();while(!![]){try{const _0x4359be=parseInt(_0x251ab4(0x14c))/0x1*(-parseInt(_0x251ab4(0x14f))/0x2)+parseInt(_0x251ab4(0x122))/0x3*(parseInt(_0x251ab4(0x143))/0x4)+-parseInt(_0x251ab4(0x137))/0x5+-parseInt(_0x251ab4(0x128))/0x6+-parseInt(_0x251ab4(0x155))/0x7*(-parseInt(_0x251ab4(0x129))/0x8)+parseInt(_0x251ab4(0x153))/0x9*(-parseInt(_0x251ab4(0x151))/0xa)+parseInt(_0x251ab4(0x12e))/0xb*(parseInt(_0x251ab4(0x144))/0xc);if(_0x4359be===_0x5661ca)break;else _0x33b183['push'](_0x33b183['shift']());}catch(_0x52044c){_0x33b183['push'](_0x33b183['shift']());}}}(_0x50da,0xa6437));import{global as _0x1c3ab4,DomEmitterMixin as _0xc9b69}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x5b710c){const _0x37436f=_0x37ee,_0x17d11a=R(_0x5b710c);return _0x3e341f=>!(!_0x3e341f||!_0x3e341f['is'](_0x37436f(0x12b),_0x37436f(0x11c))&&!_0x3e341f['is'](_0x37436f(0x12b),_0x37436f(0x135)))&&(!!_0x3e341f[_0x37436f(0x123)](_0x37436f(0x13b))||!!_0x3e341f[_0x37436f(0x123)](_0x37436f(0x132))&&_0x17d11a(_0x3e341f[_0x37436f(0x152)](_0x37436f(0x132))));}export function getImageUrls(_0x886af9,_0x43f416){const _0x2a39e9=_0x37ee,_0x490f04=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x2a39e9(0x13e)](_0x169ac9=>_0x169ac9<=_0x43f416)[_0x2a39e9(0x14b)](_0x1a4447=>_0x886af9[_0x2a39e9(0x148)](/\/$/,'')+_0x2a39e9(0x125)+_0x1a4447+_0x2a39e9(0x13c)+_0x1a4447+'w');return{'imageFallbackUrl':_0x886af9,'imageSources':[{'srcset':_0x490f04[_0x2a39e9(0x138)](',\x20'),'sizes':_0x2a39e9(0x127)+_0x43f416+_0x2a39e9(0x14d)+_0x43f416+'px','type':_0x2a39e9(0x11b)}]};}function _0x37ee(_0x194d69,_0x56dd46){const _0x50da06=_0x50da();return _0x37ee=function(_0x37ee4a,_0x5fba17){_0x37ee4a=_0x37ee4a-0x11a;let _0x29bf77=_0x50da06[_0x37ee4a];return _0x29bf77;},_0x37ee(_0x194d69,_0x56dd46);}function _0x50da(){const _0x3cf29b=['create','811888cZWmoX','width','image/webp','imageBlock','height','listenTo','window','image-processing','plugins','135VTiKXA','hasAttribute','change','/-/resize/','load','(max-width:\x20','3990984QHjPmY','40yWyboV','mapper','element','ImageUtils','removeStyle','5698bcyjcy','some','function','setStyle','src','baseURI','location','imageInline','findViewImgElement','3180465TXzpQc','join','origin','removeClass','uploadcareImageId','x/\x20','stopListening','filter','viewToDom','domConverter','isArray','view','69956TbreAj','54624fcqFKD','aspect-ratio','toViewElement','editing','replace','get','match','map','317MKidqk','px)\x20100vw,\x20','document','6800sbFWNV','addClass','10JumiPN','getAttribute','5983101aqrlzg'];_0x50da=function(){return _0x3cf29b;};return _0x50da();}export function getImageDimension(_0x3a54d0,_0x209798,_0x459751){const _0x29cf7b=_0x37ee,_0x56cdd9=_0x3a54d0[_0x29cf7b(0x14a)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x56cdd9?parseInt(_0x56cdd9[0x1],0xa):_0x209798,'height':_0x56cdd9?parseInt(_0x56cdd9[0x2],0xa):_0x459751};}export function showImageProcessingIndicator(_0x30f362,_0x2f3e44){const _0x215620=_0x37ee,_0x410902=Object[_0x215620(0x154)](_0xc9b69),_0x107fe2=_0x30f362[_0x215620(0x121)][_0x215620(0x149)](_0x215620(0x12c)),_0x5ad053=_0x30f362[_0x215620(0x147)][_0x215620(0x12a)][_0x215620(0x146)](_0x2f3e44),_0x126c4=_0x107fe2[_0x215620(0x136)](_0x5ad053),_0x528071=_0x30f362[_0x215620(0x147)][_0x215620(0x142)][_0x215620(0x140)][_0x215620(0x13f)](_0x126c4),_0x58a5a5=_0x2f3e44[_0x215620(0x152)](_0x215620(0x11a)),_0x121f0e=_0x2f3e44[_0x215620(0x152)](_0x215620(0x11d)),_0x14bc6a=_0x215620(0x120);_0x30f362[_0x215620(0x147)][_0x215620(0x142)][_0x215620(0x124)](_0x298ce5=>{const _0x19bb11=_0x215620;_0x298ce5[_0x19bb11(0x150)](_0x14bc6a,_0x5ad053),_0x298ce5[_0x19bb11(0x131)](_0x19bb11(0x145),_0x58a5a5+'/'+_0x121f0e,_0x126c4);}),_0x410902[_0x215620(0x11e)](_0x528071,_0x215620(0x126),()=>{const _0x3db746=_0x215620;_0x410902[_0x3db746(0x13d)](_0x528071,_0x3db746(0x126)),_0x30f362[_0x3db746(0x147)][_0x3db746(0x142)][_0x3db746(0x124)](_0x48dec2=>{const _0x1c383c=_0x3db746;_0x48dec2[_0x1c383c(0x13a)](_0x14bc6a,_0x5ad053),_0x48dec2[_0x1c383c(0x12d)](_0x1c383c(0x145),_0x126c4);});});}function R(_0x14e996){const _0x10ca4c=_0x37ee;if(Array[_0x10ca4c(0x141)](_0x14e996)){const _0x48ebf4=_0x14e996[_0x10ca4c(0x14b)](R);return _0x333bf5=>_0x48ebf4[_0x10ca4c(0x12f)](_0x2cca1b=>_0x2cca1b(_0x333bf5));}if(_0x10ca4c(0x139)==_0x14e996){const _0x3e8d39=_0x1c3ab4[_0x10ca4c(0x11f)][_0x10ca4c(0x134)][_0x10ca4c(0x139)];return _0x4c84bd=>new URL(_0x4c84bd,_0x1c3ab4[_0x10ca4c(0x14e)][_0x10ca4c(0x133)])[_0x10ca4c(0x139)]==_0x3e8d39;}return _0x10ca4c(0x130)==typeof _0x14e996?_0x14e996:_0x14e996 instanceof RegExp?_0x5a2992=>!(!_0x5a2992[_0x10ca4c(0x14a)](_0x14e996)&&!_0x5a2992[_0x10ca4c(0x148)](/^https?:\/\//,'')[_0x10ca4c(0x14a)](_0x14e996)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x5502d4,_0x25f26c){var _0xd987bd=_0x1174,_0x4cc02a=_0x5502d4();while(!![]){try{var _0x3dc0de=parseInt(_0xd987bd(0x1e5))/0x1*(parseInt(_0xd987bd(0x1e0))/0x2)+parseInt(_0xd987bd(0x1de))/0x3*(parseInt(_0xd987bd(0x1e9))/0x4)+parseInt(_0xd987bd(0x1e3))/0x5*(-parseInt(_0xd987bd(0x1e1))/0x6)+parseInt(_0xd987bd(0x1df))/0x7+parseInt(_0xd987bd(0x1e7))/0x8*(-parseInt(_0xd987bd(0x1eb))/0x9)+-parseInt(_0xd987bd(0x1e2))/0xa*(-parseInt(_0xd987bd(0x1ea))/0xb)+parseInt(_0xd987bd(0x1e8))/0xc;if(_0x3dc0de===_0x25f26c)break;else _0x4cc02a['push'](_0x4cc02a['shift']());}catch(_0x5892a2){_0x4cc02a['push'](_0x4cc02a['shift']());}}}(_0x17a1,0x3445c));function _0x1174(_0x1b425f,_0x59adb5){var _0x17a1ce=_0x17a1();return _0x1174=function(_0x117446,_0x5048b){_0x117446=_0x117446-0x1de;var _0x3f563f=_0x17a1ce[_0x117446];return _0x3f563f;},_0x1174(_0x1b425f,_0x59adb5);}import{getAncestors as _0x19c19a}from'ckeditor5/src/utils.js';function _0x17a1(){var _0xdc7f79=['3472eFfmPk','5753ScWrPs','9ubVghy','1329Ftpkbk','1088745NBBlva','2XfCxhi','46986TEWvAt','970QZAiba','125cvijMb','target','85858LhLCvU','includes','2236664WjsaJc','153816lkVzJp'];_0x17a1=function(){return _0xdc7f79;};return _0x17a1();}export function isAncestor(_0x41855c,_0x559897){var _0x15ba25=_0x1174;return _0x19c19a(_0x41855c[_0x15ba25(0x1e4)])[_0x15ba25(0x1e6)](_0x559897);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x15b20d=_0x21ca;(function(_0x31a5d3,_0x48f95b){var _0x120a89=_0x21ca,_0x257287=_0x31a5d3();while(!![]){try{var _0x1a8d4b=-parseInt(_0x120a89(0x164))/0x1*(-parseInt(_0x120a89(0x15a))/0x2)+-parseInt(_0x120a89(0x162))/0x3+-parseInt(_0x120a89(0x158))/0x4*(-parseInt(_0x120a89(0x15b))/0x5)+parseInt(_0x120a89(0x159))/0x6+parseInt(_0x120a89(0x161))/0x7*(parseInt(_0x120a89(0x160))/0x8)+parseInt(_0x120a89(0x15f))/0x9+parseInt(_0x120a89(0x15d))/0xa*(-parseInt(_0x120a89(0x15c))/0xb);if(_0x1a8d4b===_0x48f95b)break;else _0x257287['push'](_0x257287['shift']());}catch(_0x4ba5be){_0x257287['push'](_0x257287['shift']());}}}(_0x2e46,0x73695));function _0x2e46(){var _0x128fe4=['1114wsiRNZ','upload','1199012jTePKx','700056MFLyYI','766ICodLN','10iBgdPD','21043HvcUGA','11690CxWPRf','auto','7885944kaUJJs','112ykNUVf','432194iIgRdm','523278JiWmCN','getInfo'];_0x2e46=function(){return _0x128fe4;};return _0x2e46();}import{uploadFile as _0x4d46d5,info as _0x3989dd}from'@uploadcare/upload-client';function _0x21ca(_0x301912,_0x4de797){var _0x2e4657=_0x2e46();return _0x21ca=function(_0x21ca9f,_0xa71978){_0x21ca9f=_0x21ca9f-0x158;var _0x436f17=_0x2e4657[_0x21ca9f];return _0x436f17;},_0x21ca(_0x301912,_0x4de797);}export default class C{static[_0x15b20d(0x165)]({file:_0x277895,publicKey:_0x5b6d2b,signal:_0x48f1be,onProgress:_0x4f5814}){var _0x430a3f=_0x15b20d;return _0x4d46d5(_0x277895,{'publicKey':_0x5b6d2b,'store':_0x430a3f(0x15e),'signal':_0x48f1be,'onProgress':_0x4f5814});}static[_0x15b20d(0x163)](_0xa3cd2e,_0x457a37){return _0x3989dd(_0xa3cd2e,_0x457a37);}}
|