@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.12 → 46.0.1-alpha.13
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/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{SpinnerView as
|
|
23
|
+
import{SpinnerView as _0x269e45,View as _0x106849}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x106849{constructor(_0x9602c6){super(_0x9602c6);const t=_0x9602c6['t'],_0x3ba06f=this['bindTemplate'],_0x397af5=new _0x269e45();_0x397af5['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':[_0x397af5,{'text':_0x3ba06f['to']('imageUploadProgress',_0x354ea6=>t('Loading\x20image...')+'\x20('+(_0x354ea6||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
|
-
|
|
23
|
+
const _0x1c1bb0=_0x2931;(function(_0x12226d,_0x13a133){const _0x4cdd30=_0x2931,_0x3c7be1=_0x12226d();while(!![]){try{const _0x9e0144=parseInt(_0x4cdd30(0x116))/0x1*(-parseInt(_0x4cdd30(0x115))/0x2)+parseInt(_0x4cdd30(0x120))/0x3+parseInt(_0x4cdd30(0x113))/0x4*(-parseInt(_0x4cdd30(0x121))/0x5)+-parseInt(_0x4cdd30(0xef))/0x6+-parseInt(_0x4cdd30(0xf9))/0x7*(parseInt(_0x4cdd30(0x11d))/0x8)+parseInt(_0x4cdd30(0x125))/0x9+parseInt(_0x4cdd30(0x11a))/0xa;if(_0x9e0144===_0x13a133)break;else _0x3c7be1['push'](_0x3c7be1['shift']());}catch(_0x5a00fa){_0x3c7be1['push'](_0x3c7be1['shift']());}}}(_0x2c67,0x655cb));import{View as _0x3de458}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x541aba}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x11dc80}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x5570c9}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x5dc667}from'../../utils/dialogfocusmanagerview.js';function _0x2931(_0x33a6d7,_0x142d59){const _0x2c678a=_0x2c67();return _0x2931=function(_0x29314c,_0x5e9482){_0x29314c=_0x29314c-0xef;let _0x2b949a=_0x2c678a[_0x29314c];return _0x2b949a;},_0x2931(_0x33a6d7,_0x142d59);}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x5dc667{[_0x1c1bb0(0x107)];[_0x1c1bb0(0x123)];[_0x1c1bb0(0xf7)];[_0x1c1bb0(0x102)];[_0x1c1bb0(0x111)];constructor(_0x3c3dbe,_0xf0dcf0,_0x36b82a){const _0x43eae2=_0x1c1bb0;super(_0x3c3dbe),this[_0x43eae2(0x107)]=this[_0x43eae2(0xfe)](),this[_0x43eae2(0x123)]=new _0x541aba(_0x3c3dbe),this[_0x43eae2(0xf7)]=new _0x11dc80(_0x3c3dbe),this[_0x43eae2(0x102)]=new _0x5570c9(_0x3c3dbe,_0x36b82a),this[_0x43eae2(0x111)]=new _0x3de458(_0x3c3dbe),this[_0x43eae2(0x111)][_0x43eae2(0x10d)](this[_0x43eae2(0x101)]()),this[_0x43eae2(0xfb)](_0x43eae2(0xf4),_0xf0dcf0),this[_0x43eae2(0x10d)]({'tag':_0x43eae2(0xf0),'attributes':{'class':['ck',_0x43eae2(0x10f),_0x43eae2(0x112)],'tabindex':'-1'},'children':this[_0x43eae2(0x107)]}),this[_0x43eae2(0xfc)](),this[_0x43eae2(0x10b)](_0x43eae2(0x117),()=>{const _0x1eb788=_0x43eae2;this[_0x1eb788(0xf6)](this[_0x1eb788(0x119)],_0x470174=>{const _0x832e52=_0x1eb788;this[_0x832e52(0x11f)](_0x470174);});}),this['on'](_0x43eae2(0x118),()=>{const _0x15e0a8=_0x43eae2;this[_0x15e0a8(0xfc)]();}),this[_0x43eae2(0x105)]();}[_0x1c1bb0(0x124)](){const _0x23ab33=_0x1c1bb0;this[_0x23ab33(0x119)][_0x23ab33(0x124)]();}[_0x1c1bb0(0xfc)](){const _0x151a9c=_0x1c1bb0;switch(this[_0x151a9c(0x107)][_0x151a9c(0xff)](),this[_0x151a9c(0xf4)]){case _0x151a9c(0x100):this[_0x151a9c(0x107)][_0x151a9c(0x10c)](this[_0x151a9c(0x123)]);break;case _0x151a9c(0x122):this[_0x151a9c(0x107)][_0x151a9c(0x10c)](this[_0x151a9c(0xf7)]);break;case _0x151a9c(0xf8):this[_0x151a9c(0x107)][_0x151a9c(0x108)]([this[_0x151a9c(0x102)],this[_0x151a9c(0x111)]]);}}[_0x1c1bb0(0xf6)](_0x96167,_0x5d5e58){const _0x2f7fd3=_0x1c1bb0,_0xfce16b=_0x2f7fd3(0xf5),_0x1d7120=_0x96167[_0x2f7fd3(0x10a)](_0xfce16b);if(_0x1d7120)return _0x5d5e58(_0x1d7120);const _0x280ff4=new MutationObserver(_0x1599e7=>{const _0x4853d5=_0x2f7fd3,_0x5ab445=_0x1599e7[_0x4853d5(0x104)](_0x21bf32=>_0x21bf32[_0x4853d5(0xf1)]===_0x96167&&_0x21bf32[_0x4853d5(0x10e)][_0x4853d5(0x11e)]>0x0&&_0x21bf32[_0x4853d5(0x10e)][0x0][_0x4853d5(0x109)][_0x4853d5(0x103)]()===_0xfce16b);_0x5ab445[_0x4853d5(0x11e)]&&(_0x280ff4[_0x4853d5(0x110)](),_0x5d5e58(_0x5ab445[0x0][_0x4853d5(0x10e)][0x0]));});_0x280ff4[_0x2f7fd3(0xf2)](_0x96167,{'childList':!0x0,'subtree':!0x0});}[_0x1c1bb0(0x11f)](_0x2454a4){const _0x1a6e4c=_0x1c1bb0;_0x2454a4[_0x1a6e4c(0x11c)](_0x1a6e4c(0xf3),_0x4ebfa1=>{const _0x37d3e1=_0x1a6e4c;this[_0x37d3e1(0xfd)](_0x37d3e1(0xf3),{'imageSrc':_0x4ebfa1[_0x37d3e1(0x114)][_0x37d3e1(0xfa)]});}),_0x2454a4[_0x1a6e4c(0x11c)](_0x1a6e4c(0x106),()=>{const _0x20b8ec=_0x1a6e4c;this[_0x20b8ec(0xfd)](_0x20b8ec(0x106));});}[_0x1c1bb0(0x105)](){const _0x3620d3=_0x1c1bb0;this[_0x3620d3(0xf7)]['on'](_0x3620d3(0x11b),()=>{const _0x28d1b6=_0x3620d3;this[_0x28d1b6(0xfd)](_0x28d1b6(0x11b));});}}function _0x2c67(){const _0x44ea00=['getFocusableElement','_editingView','toLowerCase','filter','_addErrorViewListeners','cancel','_items','addMany','nodeName','querySelector','once','add','setTemplate','addedNodes','ck-reset_all-excluded','disconnect','_focusableView','ck-uploadcare-form','13692BzvZBM','detail','276494AAkRGd','4qeHzOZ','render','change:status','element','13199310IGhqWt','retry','addEventListener','1744FniKrI','length','_addUploadcareImageEditorListeners','1167873MwCHpC','155muXwIR','error','_loadingView','focus','3837735lSWNqN','4781538OmatVC','div','target','observe','apply','status','uc-cloud-image-editor','_waitForImageEditorComponent','_errorView','ready','8491IixGFJ','cdnUrl','set','_setView','fire','createCollection','clear','uploading'];_0x2c67=function(){return _0x44ea00;};return _0x2c67();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x128c(){const _0x1ca16a=['config','3280417uiBoHv','4147938DLfoWh','1174508MOadCh','editor','imageEditController','model','1XfijzI','171KrkqWT','imageBlock','isActive','unbind','634360mgfumW','1321354iCXuse','document','_isEditable','isEnabled','element','plugins','requires','selection','662104CRsIlJ','imageInline','uploadcare.allowExternalImagesEditing','set','get','getSelectedElement','refresh','2276244DBNqVf','execute','bind'];_0x128c=function(){return _0x1ca16a;};return _0x128c();}function _0x443e(_0x54d08e,_0x1630de){const _0x128c3e=_0x128c();return _0x443e=function(_0x443e2b,_0x58daae){_0x443e2b=_0x443e2b-0x1f4;let _0x2e647f=_0x128c3e[_0x443e2b];return _0x2e647f;},_0x443e(_0x54d08e,_0x1630de);}const _0x38821b=_0x443e;(function(_0x3674cf,_0x1d2049){const _0x39a4bd=_0x443e,_0x57c5ea=_0x3674cf();while(!![]){try{const _0x2f8098=-parseInt(_0x39a4bd(0x211))/0x1*(-parseInt(_0x39a4bd(0x1f8))/0x2)+parseInt(_0x39a4bd(0x207))/0x3+parseInt(_0x39a4bd(0x20d))/0x4+parseInt(_0x39a4bd(0x1f7))/0x5+parseInt(_0x39a4bd(0x20c))/0x6+-parseInt(_0x39a4bd(0x20b))/0x7+-parseInt(_0x39a4bd(0x200))/0x8*(parseInt(_0x39a4bd(0x212))/0x9);if(_0x2f8098===_0x1d2049)break;else _0x57c5ea['push'](_0x57c5ea['shift']());}catch(_0x2b7909){_0x57c5ea['push'](_0x57c5ea['shift']());}}}(_0x128c,0x77a87));import{Command as _0x513f9e}from'ckeditor5/src/core.js';import{Dialog as _0x11a718}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1a4f3f}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x451867}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x513f9e{[_0x38821b(0x20f)];static get[_0x38821b(0x1fe)](){return[_0x11a718];}[_0x38821b(0x1fa)];constructor(_0x290172){const _0xe989da=_0x38821b;super(_0x290172),this[_0xe989da(0x20f)]=void 0x0,this[_0xe989da(0x1fa)]=_0x451867(_0x290172[_0xe989da(0x20a)][_0xe989da(0x204)](_0xe989da(0x202))||[]),this[_0xe989da(0x203)]({'isActive':!0x1});}[_0x38821b(0x206)](){const _0x1ec468=_0x38821b,_0x5c6ea6=this[_0x1ec468(0x20e)][_0x1ec468(0x210)][_0x1ec468(0x1f9)][_0x1ec468(0x1ff)][_0x1ec468(0x205)]();this[_0x1ec468(0x1fb)]=this[_0x1ec468(0x1fa)](_0x5c6ea6);}[_0x38821b(0x208)](){const _0x1264d8=_0x38821b;this[_0x1264d8(0x20f)]&&(this[_0x1264d8(0x1f6)](_0x1264d8(0x1f5)),this[_0x1264d8(0x20f)]=void 0x0);const _0x4c6d8a=this[_0x1264d8(0x20e)][_0x1264d8(0x210)][_0x1264d8(0x1f9)][_0x1264d8(0x1ff)][_0x1264d8(0x205)]();_0x4c6d8a&&(_0x4c6d8a['is'](_0x1264d8(0x1fc),_0x1264d8(0x1f4))||_0x4c6d8a['is'](_0x1264d8(0x1fc),_0x1264d8(0x201)))&&(this[_0x1264d8(0x20f)]=new _0x1a4f3f(this[_0x1264d8(0x20e)],this[_0x1264d8(0x20e)][_0x1264d8(0x1fd)][_0x1264d8(0x204)](_0x11a718),_0x4c6d8a),this[_0x1264d8(0x209)](_0x1264d8(0x1f5))['to'](this[_0x1264d8(0x20f)],_0x1264d8(0x1f5)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1e48(){const _0x2eb1b6=['4484nsmLEL','uploadcareImageReplace','add','requires','isOfficialPlugin','2991bbNybZ','isPremiumPlugin','pluginName','ImageUtils','312PELkNL','646735KYjBri','49aXSdAW','ImageEditing','95110xJxzCH','init','5107240LAdcxF','uploadcareImageEdit','1032344oykOVI','18efYfCy','37000898NPDegc','UploadcareImageEditEditing','1465802bZJoLo','commands'];_0x1e48=function(){return _0x2eb1b6;};return _0x1e48();}const _0x507c73=_0xe413;(function(_0x5e2042,_0x4206cb){const _0x2689ec=_0xe413,_0x453742=_0x5e2042();while(!![]){try{const _0x1f4d89=parseInt(_0x2689ec(0x6f))/0x1+-parseInt(_0x2689ec(0x7a))/0x2+-parseInt(_0x2689ec(0x81))/0x3*(-parseInt(_0x2689ec(0x7c))/0x4)+-parseInt(_0x2689ec(0x72))/0x5*(-parseInt(_0x2689ec(0x6e))/0x6)+parseInt(_0x2689ec(0x70))/0x7*(parseInt(_0x2689ec(0x76))/0x8)+-parseInt(_0x2689ec(0x77))/0x9*(-parseInt(_0x2689ec(0x74))/0xa)+-parseInt(_0x2689ec(0x78))/0xb;if(_0x1f4d89===_0x4206cb)break;else _0x453742['push'](_0x453742['shift']());}catch(_0x5acf2d){_0x453742['push'](_0x453742['shift']());}}}(_0x1e48,0x8e00e));import{Plugin as _0x410800}from'ckeditor5/src/core.js';import{Notification as _0x29ee4f}from'ckeditor5/src/ui.js';function _0xe413(_0x10f1ff,_0x2cc248){const _0x1e486b=_0x1e48();return _0xe413=function(_0xe413fd,_0x4e9888){_0xe413fd=_0xe413fd-0x6b;let _0x15f382=_0x1e486b[_0xe413fd];return _0x15f382;},_0xe413(_0x10f1ff,_0x2cc248);}import{UploadcareImageEditCommand as _0x1b84f}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0xb18e1a}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x12daf3}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x410800{static get[_0x507c73(0x6c)](){const _0x573058=_0x507c73;return _0x573058(0x79);}static get[_0x507c73(0x7f)](){const _0x51b24e=_0x507c73;return[_0x12daf3,_0x29ee4f,_0x51b24e(0x6d),_0x51b24e(0x71)];}static get[_0x507c73(0x80)](){return!0x0;}static get[_0x507c73(0x6b)](){return!0x0;}[_0x507c73(0x73)](){const _0x214e84=_0x507c73,{editor:_0x1f00bc}=this;_0x1f00bc[_0x214e84(0x7b)][_0x214e84(0x7e)](_0x214e84(0x75),new _0x1b84f(_0x1f00bc)),_0x1f00bc[_0x214e84(0x7b)][_0x214e84(0x7e)](_0x214e84(0x7d),new _0xb18e1a(_0x1f00bc));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x42c293}from'ckeditor5/src/core.js';import{ButtonView as _0x2bf53d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x187518}from'ckeditor5/src/icons.js';import{createElement as _0x1367e8}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x42c293{['_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 _0x58df79=this['editor'];_0x58df79['ui']['componentFactory']['add']('uploadcareImageEdit',_0x323d1c=>{const _0x41f749=_0x58df79['commands']['get']('uploadcareImageEdit'),_0x22535d=new _0x2bf53d(_0x323d1c),t=_0x323d1c['t'];return _0x22535d['set']({'icon':_0x187518,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x22535d['bind']('isEnabled')['to'](_0x41f749),_0x22535d['bind']('isOn')['to'](_0x41f749,'isActive'),this['listenTo'](_0x22535d,'execute',()=>{_0x58df79['execute']('uploadcareImageEdit'),_0x58df79['editing']['view']['focus']();}),_0x22535d;}),this['_initConfig']();}['_initConfig'](){const _0x50ea13=_0x1367e8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x50ea13),this['listenTo'](this['editor'],'destroy',()=>{_0x50ea13['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5530a7=_0x3caa;(function(_0x40672b,_0x5d05ec){var _0x5b1d91=_0x3caa,_0x419fb8=_0x40672b();while(!![]){try{var _0x2b0cd7=-parseInt(_0x5b1d91(0x16c))/0x1+parseInt(_0x5b1d91(0x163))/0x2+parseInt(_0x5b1d91(0x16e))/0x3+parseInt(_0x5b1d91(0x170))/0x4*(-parseInt(_0x5b1d91(0x172))/0x5)+parseInt(_0x5b1d91(0x166))/0x6+-parseInt(_0x5b1d91(0x16b))/0x7+-parseInt(_0x5b1d91(0x167))/0x8*(parseInt(_0x5b1d91(0x16f))/0x9);if(_0x2b0cd7===_0x5d05ec)break;else _0x419fb8['push'](_0x419fb8['shift']());}catch(_0x5112de){_0x419fb8['push'](_0x419fb8['shift']());}}}(_0xd211,0xad18a));import{FocusTracker as _0x356a20}from'ckeditor5/src/utils.js';function _0xd211(){var _0x40d9db=['3377814WcdkHI','297JqCEZl','32FxHykJ','createCollection','600790KvOVIp','focusCycler','focusTracker','2509738SIpYsV','getFocusableElement','div','4467702iNoxDx','131128kAWsnZ','fire','bindTemplate','true','963557wwIzlp','776604gCMMpZ','forwardCycle'];_0xd211=function(){return _0x40d9db;};return _0xd211();}function _0x3caa(_0x3b820f,_0x30abcd){var _0xd211b=_0xd211();return _0x3caa=function(_0x3caa90,_0x4a3a57){_0x3caa90=_0x3caa90-0x162;var _0x33962c=_0xd211b[_0x3caa90];return _0x33962c;},_0x3caa(_0x3b820f,_0x30abcd);}import{View as _0x1ab7e2,FocusCycler as _0x229efa}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1ab7e2{[_0x5530a7(0x162)];[_0x5530a7(0x173)];constructor(_0x2c0304){var _0x9cd920=_0x5530a7;super(_0x2c0304),this[_0x9cd920(0x162)]=new _0x356a20(),this[_0x9cd920(0x173)]=new _0x229efa({'focusables':this[_0x9cd920(0x171)](),'focusTracker':this[_0x9cd920(0x162)]});}[_0x5530a7(0x164)](){var _0x4a683c=_0x5530a7;return{'tag':_0x4a683c(0x165),'attributes':{'aria-hidden':_0x4a683c(0x16a),'tabindex':'0'},'on':{'focus':this[_0x4a683c(0x169)]['to'](()=>{var _0x49b57a=_0x4a683c;this[_0x49b57a(0x173)][_0x49b57a(0x168)](_0x49b57a(0x16d));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x14e1(){const _0x5d25c0=['ImageUtils','9005GvDMbs','1228JCprxB','removeClass','origin','filter','mapper','toViewElement','listenTo','window','setStyle','imageInline','5172390OXlLes','document','domConverter','uploadcareImageId','32EoxmZc','3072222SpSURZ','stopListening','hasAttribute','1057938TfHkdC','px)\x20100vw,\x20','get','84OZUhJI','location','removeStyle','replace','src','findViewImgElement','3522726ySfeUn','getAttribute','492087loCESK','imageBlock','image-processing','x/\x20','width','plugins','map','isArray','match','function','view','height','join','aspect-ratio','editing','(max-width:\x20','image/webp','viewToDom','addClass','15573uNNxrq','/-/resize/','element','some','load','baseURI','change'];_0x14e1=function(){return _0x5d25c0;};return _0x14e1();}(function(_0x38694a,_0x726e54){const _0x1aa3e2=_0xf643,_0x259a76=_0x38694a();while(!![]){try{const _0x2be08d=-parseInt(_0x1aa3e2(0x177))/0x1+-parseInt(_0x1aa3e2(0x16f))/0x2*(-parseInt(_0x1aa3e2(0x151))/0x3)+parseInt(_0x1aa3e2(0x15a))/0x4*(-parseInt(_0x1aa3e2(0x159))/0x5)+parseInt(_0x1aa3e2(0x169))/0x6+parseInt(_0x1aa3e2(0x16c))/0x7*(parseInt(_0x1aa3e2(0x168))/0x8)+-parseInt(_0x1aa3e2(0x175))/0x9+parseInt(_0x1aa3e2(0x164))/0xa;if(_0x2be08d===_0x726e54)break;else _0x259a76['push'](_0x259a76['shift']());}catch(_0x2c8995){_0x259a76['push'](_0x259a76['shift']());}}}(_0x14e1,0x656c2));import{global as _0x4dc698,DomEmitterMixin as _0x45f163}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x5b6400){const _0x5f5937=_0xf643,_0x502d06=G(_0x5b6400);return _0xd0baa9=>!(!_0xd0baa9||!_0xd0baa9['is'](_0x5f5937(0x153),_0x5f5937(0x178))&&!_0xd0baa9['is'](_0x5f5937(0x153),_0x5f5937(0x163)))&&(!!_0xd0baa9[_0x5f5937(0x16b)](_0x5f5937(0x167))||!!_0xd0baa9[_0x5f5937(0x16b)](_0x5f5937(0x173))&&_0x502d06(_0xd0baa9[_0x5f5937(0x176)](_0x5f5937(0x173))));}function _0xf643(_0x2d6cce,_0x569369){const _0x14e182=_0x14e1();return _0xf643=function(_0xf6430a,_0x5bdea9){_0xf6430a=_0xf6430a-0x142;let _0x3db1e3=_0x14e182[_0xf6430a];return _0x3db1e3;},_0xf643(_0x2d6cce,_0x569369);}export function getImageUrls(_0x3f875a,_0x2c73bd){const _0x158d66=_0xf643,_0x15485b=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x158d66(0x15d)](_0x4e80f9=>_0x4e80f9<=_0x2c73bd)[_0x158d66(0x144)](_0x3effaa=>_0x3f875a[_0x158d66(0x172)](/\/$/,'')+_0x158d66(0x152)+_0x3effaa+_0x158d66(0x17a)+_0x3effaa+'w');return{'imageFallbackUrl':_0x3f875a,'imageSources':[{'srcset':_0x15485b[_0x158d66(0x14a)](',\x20'),'sizes':_0x158d66(0x14d)+_0x2c73bd+_0x158d66(0x16d)+_0x2c73bd+'px','type':_0x158d66(0x14e)}]};}export function getImageDimension(_0x49488c,_0x52db79,_0x30f3dd){const _0x470db1=_0xf643,_0x361d41=_0x49488c[_0x470db1(0x146)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x361d41?parseInt(_0x361d41[0x1],0xa):_0x52db79,'height':_0x361d41?parseInt(_0x361d41[0x2],0xa):_0x30f3dd};}export function showImageProcessingIndicator(_0x172a9c,_0x21da77){const _0x4b158b=_0xf643,_0x450eb7=new(_0x45f163())(),_0x360c8d=_0x172a9c[_0x4b158b(0x143)][_0x4b158b(0x16e)](_0x4b158b(0x158)),_0x2b3979=_0x172a9c[_0x4b158b(0x14c)][_0x4b158b(0x15e)][_0x4b158b(0x15f)](_0x21da77),_0x36a67e=_0x360c8d[_0x4b158b(0x174)](_0x2b3979),_0x27cf70=_0x172a9c[_0x4b158b(0x14c)][_0x4b158b(0x148)][_0x4b158b(0x166)][_0x4b158b(0x14f)](_0x36a67e),_0x1c7e02=_0x21da77[_0x4b158b(0x176)](_0x4b158b(0x142)),_0x3ec2f4=_0x21da77[_0x4b158b(0x176)](_0x4b158b(0x149)),_0x5e544e=_0x4b158b(0x179);_0x172a9c[_0x4b158b(0x14c)][_0x4b158b(0x148)][_0x4b158b(0x157)](_0x2ab799=>{const _0x247821=_0x4b158b;_0x2ab799[_0x247821(0x150)](_0x5e544e,_0x2b3979),_0x2ab799[_0x247821(0x162)](_0x247821(0x14b),_0x1c7e02+'/'+_0x3ec2f4,_0x36a67e);}),_0x450eb7[_0x4b158b(0x160)](_0x27cf70,_0x4b158b(0x155),()=>{const _0x15e5c9=_0x4b158b;_0x450eb7[_0x15e5c9(0x16a)](_0x27cf70,_0x15e5c9(0x155)),_0x172a9c[_0x15e5c9(0x14c)][_0x15e5c9(0x148)][_0x15e5c9(0x157)](_0x336e27=>{const _0x1419a3=_0x15e5c9;_0x336e27[_0x1419a3(0x15b)](_0x5e544e,_0x2b3979),_0x336e27[_0x1419a3(0x171)](_0x1419a3(0x14b),_0x36a67e);});});}function G(_0x4163c9){const _0x3d864c=_0xf643;if(Array[_0x3d864c(0x145)](_0x4163c9)){const _0x5153cc=_0x4163c9[_0x3d864c(0x144)](G);return _0x3bfe12=>_0x5153cc[_0x3d864c(0x154)](_0x2219a7=>_0x2219a7(_0x3bfe12));}if(_0x3d864c(0x15c)==_0x4163c9){const _0x2ed47c=_0x4dc698[_0x3d864c(0x161)][_0x3d864c(0x170)][_0x3d864c(0x15c)];return _0x3f398f=>new URL(_0x3f398f,_0x4dc698[_0x3d864c(0x165)][_0x3d864c(0x156)])[_0x3d864c(0x15c)]==_0x2ed47c;}return _0x3d864c(0x147)==typeof _0x4163c9?_0x4163c9:_0x4163c9 instanceof RegExp?_0x2f7e8b=>!(!_0x2f7e8b[_0x3d864c(0x146)](_0x4163c9)&&!_0x2f7e8b[_0x3d864c(0x172)](/^https?:\/\//,'')[_0x3d864c(0x146)](_0x4163c9)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5a55(){var _0xd68ce=['3383238gUISzQ','20OfGfQT','1271568esSHas','target','494636mtlSOn','198728UQVSMd','2292LAjHFN','includes','273pogQRU','16204364ZlPiBy','50HALcFs','477CfhctE','432549vXPxpf'];_0x5a55=function(){return _0xd68ce;};return _0x5a55();}function _0x1a0e(_0x577fcc,_0x476c9e){var _0x5a558c=_0x5a55();return _0x1a0e=function(_0x1a0ec1,_0x45bcef){_0x1a0ec1=_0x1a0ec1-0x19f;var _0x67a32e=_0x5a558c[_0x1a0ec1];return _0x67a32e;},_0x1a0e(_0x577fcc,_0x476c9e);}(function(_0x4b5c7c,_0x43077f){var _0x868dde=_0x1a0e,_0x48bb8a=_0x4b5c7c();while(!![]){try{var _0x563828=-parseInt(_0x868dde(0x1a4))/0x1*(-parseInt(_0x868dde(0x19f))/0x2)+parseInt(_0x868dde(0x1a8))/0x3+-parseInt(_0x868dde(0x1aa))/0x4*(parseInt(_0x868dde(0x1a7))/0x5)+-parseInt(_0x868dde(0x1a6))/0x6+parseInt(_0x868dde(0x1a1))/0x7*(-parseInt(_0x868dde(0x1ab))/0x8)+parseInt(_0x868dde(0x1a5))/0x9*(parseInt(_0x868dde(0x1a3))/0xa)+parseInt(_0x868dde(0x1a2))/0xb;if(_0x563828===_0x43077f)break;else _0x48bb8a['push'](_0x48bb8a['shift']());}catch(_0x510294){_0x48bb8a['push'](_0x48bb8a['shift']());}}}(_0x5a55,0xa04eb));import{getAncestors as _0x205ec7}from'ckeditor5/src/utils.js';export function isAncestor(_0x194fb7,_0x1196d2){var _0x5b9c3=_0x1a0e;return _0x205ec7(_0x194fb7[_0x5b9c3(0x1a9)])[_0x5b9c3(0x1a0)](_0x1196d2);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x13614e=_0x4c5c;(function(_0x3eb8e5,_0x9e7f62){var _0x16d3cd=_0x4c5c,_0x358378=_0x3eb8e5();while(!![]){try{var _0x14be49=-parseInt(_0x16d3cd(0x113))/0x1*(parseInt(_0x16d3cd(0x10d))/0x2)+parseInt(_0x16d3cd(0x110))/0x3+parseInt(_0x16d3cd(0x114))/0x4+-parseInt(_0x16d3cd(0x112))/0x5*(parseInt(_0x16d3cd(0x108))/0x6)+parseInt(_0x16d3cd(0x10c))/0x7+parseInt(_0x16d3cd(0x10e))/0x8+-parseInt(_0x16d3cd(0x10f))/0x9*(parseInt(_0x16d3cd(0x111))/0xa);if(_0x14be49===_0x9e7f62)break;else _0x358378['push'](_0x358378['shift']());}catch(_0x134a46){_0x358378['push'](_0x358378['shift']());}}}(_0x4288,0xc2314));function _0x4c5c(_0x43e43d,_0x4f191a){var _0x4288d6=_0x4288();return _0x4c5c=function(_0x4c5c19,_0x166d13){_0x4c5c19=_0x4c5c19-0x108;var _0x53c0db=_0x4288d6[_0x4c5c19];return _0x53c0db;},_0x4c5c(_0x43e43d,_0x4f191a);}import{uploadFile as _0x5af1b3,info as _0xef1854}from'@uploadcare/upload-client';export class UploadUtils{static[_0x13614e(0x109)]({file:_0x4fb08a,publicKey:_0x15e999,signal:_0xde31d,onProgress:_0x4e0d82}){var _0x1adba1=_0x13614e;return _0x5af1b3(_0x4fb08a,{'publicKey':_0x15e999,'store':_0x1adba1(0x10b),'signal':_0xde31d,'onProgress':_0x4e0d82});}static[_0x13614e(0x10a)](_0x26ca6a,_0x255b7b){return _0xef1854(_0x26ca6a,_0x255b7b);}}function _0x4288(){var _0x299c99=['upload','getInfo','auto','10505614VgaOaT','32476zgdPdP','73856IXtlEk','99VGyKvF','1723068dzVZFT','105010JwEeaP','95sRqDRC','2cQxTqM','493076JvfFWk','399240ZYhsIk'];_0x4288=function(){return _0x299c99;};return _0x4288();}
|