@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.13 → 46.0.1-alpha.14
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 _0x4bf9a9,View as _0x361743}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x361743{constructor(_0x3c040b){super(_0x3c040b);const t=_0x3c040b['t'],_0x42be68=this['bindTemplate'],_0xfa93bb=new _0x4bf9a9();_0xfa93bb['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':[_0xfa93bb,{'text':_0x42be68['to']('imageUploadProgress',_0x250fc6=>t('Loading\x20image...')+'\x20('+(_0x250fc6||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
|
+
function _0x4530(_0x512446,_0x2cd2b2){const _0x451c3c=_0x451c();return _0x4530=function(_0x453002,_0x367f88){_0x453002=_0x453002-0x1a4;let _0xc19d6d=_0x451c3c[_0x453002];return _0xc19d6d;},_0x4530(_0x512446,_0x2cd2b2);}const _0x30848f=_0x4530;(function(_0x25ab74,_0x3ec1aa){const _0x38a01c=_0x4530,_0x42a922=_0x25ab74();while(!![]){try{const _0x18cb30=-parseInt(_0x38a01c(0x1af))/0x1+-parseInt(_0x38a01c(0x1d7))/0x2+-parseInt(_0x38a01c(0x1c4))/0x3*(-parseInt(_0x38a01c(0x1ca))/0x4)+parseInt(_0x38a01c(0x1b8))/0x5*(-parseInt(_0x38a01c(0x1a9))/0x6)+parseInt(_0x38a01c(0x1c5))/0x7*(-parseInt(_0x38a01c(0x1d3))/0x8)+parseInt(_0x38a01c(0x1c3))/0x9*(-parseInt(_0x38a01c(0x1ae))/0xa)+parseInt(_0x38a01c(0x1bf))/0xb;if(_0x18cb30===_0x3ec1aa)break;else _0x42a922['push'](_0x42a922['shift']());}catch(_0x343dc8){_0x42a922['push'](_0x42a922['shift']());}}}(_0x451c,0xae83b));function _0x451c(){const _0x5ccfa0=['getFocusableElement','set','9807660eMwftr','6GUCBfj','1499771vrYIUl','observe','element','ready','createCollection','1755476bYcOSw','fire','_focusableView','detail','focus','_addErrorViewListeners','setTemplate','addMany','change:status','24TKGjGh','disconnect','_setView','cdnUrl','985642adiRaf','addedNodes','ck-reset_all-excluded','retry','render','target','error','toLowerCase','querySelector','filter','970848WEVKaP','status','_waitForImageEditorComponent','ck-uploadcare-form','length','10KyrKbD','1375544jOUBdg','once','apply','clear','uc-cloud-image-editor','_items','_addUploadcareImageEditorListeners','nodeName','cancel','15ToRtZi','add','_editingView','_errorView','uploading','div','addEventListener','43156971njTQIh','_loadingView'];_0x451c=function(){return _0x5ccfa0;};return _0x451c();}import{View as _0x1c25d8}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5f412b}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x547cfb}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x2d23d5}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x4ae379}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x4ae379{[_0x30848f(0x1b4)];[_0x30848f(0x1c0)];[_0x30848f(0x1bb)];[_0x30848f(0x1ba)];[_0x30848f(0x1cc)];constructor(_0x1d1b1d,_0x4ad48e,_0x56198c){const _0x18dabe=_0x30848f;super(_0x1d1b1d),this[_0x18dabe(0x1b4)]=this[_0x18dabe(0x1c9)](),this[_0x18dabe(0x1c0)]=new _0x5f412b(_0x1d1b1d),this[_0x18dabe(0x1bb)]=new _0x547cfb(_0x1d1b1d),this[_0x18dabe(0x1ba)]=new _0x2d23d5(_0x1d1b1d,_0x56198c),this[_0x18dabe(0x1cc)]=new _0x1c25d8(_0x1d1b1d),this[_0x18dabe(0x1cc)][_0x18dabe(0x1d0)](this[_0x18dabe(0x1c1)]()),this[_0x18dabe(0x1c2)](_0x18dabe(0x1aa),_0x4ad48e),this[_0x18dabe(0x1d0)]({'tag':_0x18dabe(0x1bd),'attributes':{'class':['ck',_0x18dabe(0x1d9),_0x18dabe(0x1ac)],'tabindex':'-1'},'children':this[_0x18dabe(0x1b4)]}),this[_0x18dabe(0x1d5)](),this[_0x18dabe(0x1b0)](_0x18dabe(0x1db),()=>{const _0x3367e0=_0x18dabe;this[_0x3367e0(0x1ab)](this[_0x3367e0(0x1c7)],_0xd1e32e=>{const _0x46bf50=_0x3367e0;this[_0x46bf50(0x1b5)](_0xd1e32e);});}),this['on'](_0x18dabe(0x1d2),()=>{const _0x2396f6=_0x18dabe;this[_0x2396f6(0x1d5)]();}),this[_0x18dabe(0x1cf)]();}[_0x30848f(0x1ce)](){const _0x379555=_0x30848f;this[_0x379555(0x1c7)][_0x379555(0x1ce)]();}[_0x30848f(0x1d5)](){const _0x34cec9=_0x30848f;switch(this[_0x34cec9(0x1b4)][_0x34cec9(0x1b2)](),this[_0x34cec9(0x1aa)]){case _0x34cec9(0x1bc):this[_0x34cec9(0x1b4)][_0x34cec9(0x1b9)](this[_0x34cec9(0x1c0)]);break;case _0x34cec9(0x1a5):this[_0x34cec9(0x1b4)][_0x34cec9(0x1b9)](this[_0x34cec9(0x1bb)]);break;case _0x34cec9(0x1c8):this[_0x34cec9(0x1b4)][_0x34cec9(0x1d1)]([this[_0x34cec9(0x1ba)],this[_0x34cec9(0x1cc)]]);}}[_0x30848f(0x1ab)](_0x5f1b5a,_0x57609a){const _0x4e1c8f=_0x30848f,_0x17ff36=_0x4e1c8f(0x1b3),_0x26546a=_0x5f1b5a[_0x4e1c8f(0x1a7)](_0x17ff36);if(_0x26546a)return _0x57609a(_0x26546a);const _0x5581cf=new MutationObserver(_0x2a8059=>{const _0x2e3a2a=_0x4e1c8f,_0x2c1bbc=_0x2a8059[_0x2e3a2a(0x1a8)](_0x24f383=>_0x24f383[_0x2e3a2a(0x1a4)]===_0x5f1b5a&&_0x24f383[_0x2e3a2a(0x1d8)][_0x2e3a2a(0x1ad)]>0x0&&_0x24f383[_0x2e3a2a(0x1d8)][0x0][_0x2e3a2a(0x1b6)][_0x2e3a2a(0x1a6)]()===_0x17ff36);_0x2c1bbc[_0x2e3a2a(0x1ad)]&&(_0x5581cf[_0x2e3a2a(0x1d4)](),_0x57609a(_0x2c1bbc[0x0][_0x2e3a2a(0x1d8)][0x0]));});_0x5581cf[_0x4e1c8f(0x1c6)](_0x5f1b5a,{'childList':!0x0,'subtree':!0x0});}[_0x30848f(0x1b5)](_0x31579a){const _0x3a56b3=_0x30848f;_0x31579a[_0x3a56b3(0x1be)](_0x3a56b3(0x1b1),_0x538233=>{const _0x2aaf10=_0x3a56b3;this[_0x2aaf10(0x1cb)](_0x2aaf10(0x1b1),{'imageSrc':_0x538233[_0x2aaf10(0x1cd)][_0x2aaf10(0x1d6)]});}),_0x31579a[_0x3a56b3(0x1be)](_0x3a56b3(0x1b7),()=>{const _0xdd9492=_0x3a56b3;this[_0xdd9492(0x1cb)](_0xdd9492(0x1b7));});}[_0x30848f(0x1cf)](){const _0x43f1c5=_0x30848f;this[_0x43f1c5(0x1bb)]['on'](_0x43f1c5(0x1da),()=>{const _0x579b8d=_0x43f1c5;this[_0x579b8d(0x1cb)](_0x579b8d(0x1da));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x17a2f9=_0x3017;(function(_0x31dc7f,_0x30296e){const _0x3afe88=_0x3017,_0x340223=_0x31dc7f();while(!![]){try{const _0x25a8b1=parseInt(_0x3afe88(0x12e))/0x1+-parseInt(_0x3afe88(0x12a))/0x2*(-parseInt(_0x3afe88(0x133))/0x3)+parseInt(_0x3afe88(0x12c))/0x4+-parseInt(_0x3afe88(0x131))/0x5*(parseInt(_0x3afe88(0x130))/0x6)+-parseInt(_0x3afe88(0x13c))/0x7*(-parseInt(_0x3afe88(0x136))/0x8)+-parseInt(_0x3afe88(0x129))/0x9+-parseInt(_0x3afe88(0x12d))/0xa;if(_0x25a8b1===_0x30296e)break;else _0x340223['push'](_0x340223['shift']());}catch(_0x34aff9){_0x340223['push'](_0x340223['shift']());}}}(_0x6877,0x2642c));function _0x3017(_0x3c151e,_0x1fecc1){const _0x68779e=_0x6877();return _0x3017=function(_0x3017e1,_0x22d7cc){_0x3017e1=_0x3017e1-0x127;let _0x567974=_0x68779e[_0x3017e1];return _0x567974;},_0x3017(_0x3c151e,_0x1fecc1);}import{Command as _0x2f4ca0}from'ckeditor5/src/core.js';import{Dialog as _0x1119d3}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1b447d}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x5b52af}from'../utils/editingutils.js';function _0x6877(){const _0xdb2fc2=['185270ICgqhD','uploadcare.allowExternalImagesEditing','1758TojStK','1910oFbLEG','model','1530obcyTF','selection','bind','3544KqGRpR','execute','_isEditable','refresh','plugins','isEnabled','763YlOWFM','editor','unbind','document','isActive','getSelectedElement','imageInline','set','imageEditController','requires','element','get','imageBlock','325665HhRHex','514oyvNzq','config','85580eKGnII','811950anubhS'];_0x6877=function(){return _0xdb2fc2;};return _0x6877();}export class UploadcareImageEditCommand extends _0x2f4ca0{[_0x17a2f9(0x144)];static get[_0x17a2f9(0x145)](){return[_0x1119d3];}[_0x17a2f9(0x138)];constructor(_0x51f194){const _0x44a28c=_0x17a2f9;super(_0x51f194),this[_0x44a28c(0x144)]=void 0x0,this[_0x44a28c(0x138)]=_0x5b52af(_0x51f194[_0x44a28c(0x12b)][_0x44a28c(0x127)](_0x44a28c(0x12f))||[]),this[_0x44a28c(0x143)]({'isActive':!0x1});}[_0x17a2f9(0x139)](){const _0x18f8d7=_0x17a2f9,_0x228ffd=this[_0x18f8d7(0x13d)][_0x18f8d7(0x132)][_0x18f8d7(0x13f)][_0x18f8d7(0x134)][_0x18f8d7(0x141)]();this[_0x18f8d7(0x13b)]=this[_0x18f8d7(0x138)](_0x228ffd);}[_0x17a2f9(0x137)](){const _0x4704b8=_0x17a2f9;this[_0x4704b8(0x144)]&&(this[_0x4704b8(0x13e)](_0x4704b8(0x140)),this[_0x4704b8(0x144)]=void 0x0);const _0x84f2d0=this[_0x4704b8(0x13d)][_0x4704b8(0x132)][_0x4704b8(0x13f)][_0x4704b8(0x134)][_0x4704b8(0x141)]();_0x84f2d0&&(_0x84f2d0['is'](_0x4704b8(0x146),_0x4704b8(0x128))||_0x84f2d0['is'](_0x4704b8(0x146),_0x4704b8(0x142)))&&(this[_0x4704b8(0x144)]=new _0x1b447d(this[_0x4704b8(0x13d)],this[_0x4704b8(0x13d)][_0x4704b8(0x13a)][_0x4704b8(0x127)](_0x1119d3),_0x84f2d0),this[_0x4704b8(0x135)](_0x4704b8(0x140))['to'](this[_0x4704b8(0x144)],_0x4704b8(0x140)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x358ede=_0x4d72;(function(_0x2809cf,_0x256d23){const _0x1a47bb=_0x4d72,_0x4bfb5c=_0x2809cf();while(!![]){try{const _0x51010a=-parseInt(_0x1a47bb(0x1e8))/0x1*(parseInt(_0x1a47bb(0x1e0))/0x2)+-parseInt(_0x1a47bb(0x1de))/0x3*(-parseInt(_0x1a47bb(0x1eb))/0x4)+-parseInt(_0x1a47bb(0x1ec))/0x5+parseInt(_0x1a47bb(0x1f1))/0x6+-parseInt(_0x1a47bb(0x1ef))/0x7+parseInt(_0x1a47bb(0x1e4))/0x8*(-parseInt(_0x1a47bb(0x1e6))/0x9)+parseInt(_0x1a47bb(0x1e7))/0xa*(parseInt(_0x1a47bb(0x1ea))/0xb);if(_0x51010a===_0x256d23)break;else _0x4bfb5c['push'](_0x4bfb5c['shift']());}catch(_0x5e66fd){_0x4bfb5c['push'](_0x4bfb5c['shift']());}}}(_0x3d69,0xcdec2));function _0x4d72(_0x137ff7,_0x1e6488){const _0x3d69c0=_0x3d69();return _0x4d72=function(_0x4d7296,_0xcd7b2d){_0x4d7296=_0x4d7296-0x1dc;let _0xd24814=_0x3d69c0[_0x4d7296];return _0xd24814;},_0x4d72(_0x137ff7,_0x1e6488);}import{Plugin as _0x71a4e}from'ckeditor5/src/core.js';import{Notification as _0x1c64d3}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x2afbdc}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x243559}from'./uploadcareimagereplacecommand.js';function _0x3d69(){const _0x23adbd=['2680902ElrUbg','70hEqMDq','977749aRBgBE','isPremiumPlugin','3977215pWmcKr','56qFObEZ','6966340glIBOr','pluginName','requires','9460773KsRxQX','uploadcareImageEdit','7040070mtggwm','ImageEditing','UploadcareImageEditEditing','add','248484cVTdTo','init','2laIEtA','uploadcareImageReplace','commands','ImageUtils','8gIaLwM','isOfficialPlugin'];_0x3d69=function(){return _0x23adbd;};return _0x3d69();}import{UploadcareEditing as _0x6647a9}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x71a4e{static get[_0x358ede(0x1ed)](){const _0xcc0e51=_0x358ede;return _0xcc0e51(0x1dc);}static get[_0x358ede(0x1ee)](){const _0x3cdf14=_0x358ede;return[_0x6647a9,_0x1c64d3,_0x3cdf14(0x1e3),_0x3cdf14(0x1f2)];}static get[_0x358ede(0x1e5)](){return!0x0;}static get[_0x358ede(0x1e9)](){return!0x0;}[_0x358ede(0x1df)](){const _0x5d8826=_0x358ede,{editor:_0x2b7607}=this;_0x2b7607[_0x5d8826(0x1e2)][_0x5d8826(0x1dd)](_0x5d8826(0x1f0),new _0x2afbdc(_0x2b7607)),_0x2b7607[_0x5d8826(0x1e2)][_0x5d8826(0x1dd)](_0x5d8826(0x1e1),new _0x243559(_0x2b7607));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2ee881}from'ckeditor5/src/core.js';import{ButtonView as _0x7c86d9}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xdf90df}from'ckeditor5/src/icons.js';import{createElement as _0x2535f7}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 _0x2ee881{['_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 _0x2b3966=this['editor'];_0x2b3966['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2f6b23=>{const _0x250c1a=_0x2b3966['commands']['get']('uploadcareImageEdit'),_0x28a931=new _0x7c86d9(_0x2f6b23),t=_0x2f6b23['t'];return _0x28a931['set']({'icon':_0xdf90df,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x28a931['bind']('isEnabled')['to'](_0x250c1a),_0x28a931['bind']('isOn')['to'](_0x250c1a,'isActive'),this['listenTo'](_0x28a931,'execute',()=>{_0x2b3966['execute']('uploadcareImageEdit'),_0x2b3966['editing']['view']['focus']();}),_0x28a931;}),this['_initConfig']();}['_initConfig'](){const _0x3a6d80=_0x2535f7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3a6d80),this['listenTo'](this['editor'],'destroy',()=>{_0x3a6d80['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4f2670=_0x33fb;(function(_0x4035f5,_0x2637f7){var _0x1200d=_0x33fb,_0x51f0ab=_0x4035f5();while(!![]){try{var _0x3e4d51=-parseInt(_0x1200d(0x1dc))/0x1*(parseInt(_0x1200d(0x1e1))/0x2)+parseInt(_0x1200d(0x1da))/0x3*(parseInt(_0x1200d(0x1e5))/0x4)+parseInt(_0x1200d(0x1d9))/0x5+parseInt(_0x1200d(0x1e8))/0x6+-parseInt(_0x1200d(0x1db))/0x7+-parseInt(_0x1200d(0x1e3))/0x8+-parseInt(_0x1200d(0x1e0))/0x9;if(_0x3e4d51===_0x2637f7)break;else _0x51f0ab['push'](_0x51f0ab['shift']());}catch(_0x4597aa){_0x51f0ab['push'](_0x51f0ab['shift']());}}}(_0x339e,0xf0a8b));import{FocusTracker as _0x1392db}from'ckeditor5/src/utils.js';import{View as _0x8e47f8,FocusCycler as _0x474369}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x33fb(_0x348603,_0xa9d925){var _0x339e27=_0x339e();return _0x33fb=function(_0x33fb5f,_0x54cc1a){_0x33fb5f=_0x33fb5f-0x1d8;var _0x2bad71=_0x339e27[_0x33fb5f];return _0x2bad71;},_0x33fb(_0x348603,_0xa9d925);}export class DialogFocusManagerView extends _0x8e47f8{[_0x4f2670(0x1d8)];[_0x4f2670(0x1e7)];constructor(_0x46f820){var _0xfcc3c7=_0x4f2670;super(_0x46f820),this[_0xfcc3c7(0x1d8)]=new _0x1392db(),this[_0xfcc3c7(0x1e7)]=new _0x474369({'focusables':this[_0xfcc3c7(0x1de)](),'focusTracker':this[_0xfcc3c7(0x1d8)]});}[_0x4f2670(0x1df)](){var _0x62feb7=_0x4f2670;return{'tag':_0x62feb7(0x1e9),'attributes':{'aria-hidden':_0x62feb7(0x1e6),'tabindex':'0'},'on':{'focus':this[_0x62feb7(0x1e4)]['to'](()=>{var _0x3dfe13=_0x62feb7;this[_0x3dfe13(0x1e7)][_0x3dfe13(0x1dd)](_0x3dfe13(0x1e2));})}};}}function _0x339e(){var _0x2e829f=['5476TdIgcl','true','focusCycler','3347844SZYsdN','div','focusTracker','7689305sWToRg','3417TcXRVI','3193911zmTwxC','1320703SltQsz','fire','createCollection','getFocusableElement','2959938IeNwRD','2unOCLY','forwardCycle','4508232hUZGEJ','bindTemplate'];_0x339e=function(){return _0x2e829f;};return _0x339e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
(function(_0x289f0d,_0x252733){const _0x2948a8=_0x2f68,_0xd094cd=_0x289f0d();while(!![]){try{const _0x43ca25=-parseInt(_0x2948a8(0x12f))/0x1*(-parseInt(_0x2948a8(0x123))/0x2)+parseInt(_0x2948a8(0x122))/0x3+-parseInt(_0x2948a8(0x13d))/0x4+-parseInt(_0x2948a8(0x120))/0x5*(-parseInt(_0x2948a8(0x125))/0x6)+-parseInt(_0x2948a8(0x11d))/0x7+parseInt(_0x2948a8(0x132))/0x8*(-parseInt(_0x2948a8(0x133))/0x9)+parseInt(_0x2948a8(0x12c))/0xa;if(_0x43ca25===_0x252733)break;else _0xd094cd['push'](_0xd094cd['shift']());}catch(_0x1f8435){_0xd094cd['push'](_0xd094cd['shift']());}}}(_0x413a,0x40553));function _0x413a(){const _0x14fb7f=['328rVzlqh','96435dNRlzJ','setStyle','ImageUtils','(max-width:\x20','removeClass','toViewElement','location','map','baseURI','px)\x20100vw,\x20','1847340nvPENU','uploadcareImageId','findViewImgElement','viewToDom','filter','match','imageBlock','origin','imageInline','removeStyle','change','join','document','/-/resize/','plugins','some','get','editing','aspect-ratio','stopListening','load','isArray','height','element','window','134876QPxpXJ','image-processing','addClass','5Jddrnv','hasAttribute','472755IEEeez','58qORxHW','mapper','2827686NsIUNG','view','getAttribute','listenTo','width','function','x/\x20','1813940YckVpn','replace','src','12885pOsqKd','domConverter','image/webp'];_0x413a=function(){return _0x14fb7f;};return _0x413a();}import{global as _0x2db1a9,DomEmitterMixin as _0x32ad8c}from'ckeditor5/src/utils.js';function _0x2f68(_0x141fd5,_0x590638){const _0x413a2b=_0x413a();return _0x2f68=function(_0x2f68c1,_0x231389){_0x2f68c1=_0x2f68c1-0x11b;let _0xe04eb9=_0x413a2b[_0x2f68c1];return _0xe04eb9;},_0x2f68(_0x141fd5,_0x590638);}export function createEditabilityChecker(_0x4439d7){const _0x5e80ad=_0x2f68,_0x311968=z(_0x4439d7);return _0x2cfc59=>!(!_0x2cfc59||!_0x2cfc59['is'](_0x5e80ad(0x11b),_0x5e80ad(0x143))&&!_0x2cfc59['is'](_0x5e80ad(0x11b),_0x5e80ad(0x145)))&&(!!_0x2cfc59[_0x5e80ad(0x121)](_0x5e80ad(0x13e))||!!_0x2cfc59[_0x5e80ad(0x121)](_0x5e80ad(0x12e))&&_0x311968(_0x2cfc59[_0x5e80ad(0x127)](_0x5e80ad(0x12e))));}export function getImageUrls(_0x252ba6,_0x2d35bb){const _0x213943=_0x2f68,_0x2255c7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x213943(0x141)](_0x32636c=>_0x32636c<=_0x2d35bb)[_0x213943(0x13a)](_0x389df4=>_0x252ba6[_0x213943(0x12d)](/\/$/,'')+_0x213943(0x14a)+_0x389df4+_0x213943(0x12b)+_0x389df4+'w');return{'imageFallbackUrl':_0x252ba6,'imageSources':[{'srcset':_0x2255c7[_0x213943(0x148)](',\x20'),'sizes':_0x213943(0x136)+_0x2d35bb+_0x213943(0x13c)+_0x2d35bb+'px','type':_0x213943(0x131)}]};}export function getImageDimension(_0x1bdee3,_0x3bd83c,_0x109598){const _0xf02f73=_0x2f68,_0xba77ce=_0x1bdee3[_0xf02f73(0x142)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xba77ce?parseInt(_0xba77ce[0x1],0xa):_0x3bd83c,'height':_0xba77ce?parseInt(_0xba77ce[0x2],0xa):_0x109598};}export function showImageProcessingIndicator(_0x30a065,_0x15ddbb){const _0x1bb466=_0x2f68,_0x1177fc=new(_0x32ad8c())(),_0x432ef4=_0x30a065[_0x1bb466(0x14b)][_0x1bb466(0x14d)](_0x1bb466(0x135)),_0xbeb0c2=_0x30a065[_0x1bb466(0x14e)][_0x1bb466(0x124)][_0x1bb466(0x138)](_0x15ddbb),_0x2fde47=_0x432ef4[_0x1bb466(0x13f)](_0xbeb0c2),_0x34d44e=_0x30a065[_0x1bb466(0x14e)][_0x1bb466(0x126)][_0x1bb466(0x130)][_0x1bb466(0x140)](_0x2fde47),_0x21d21a=_0x15ddbb[_0x1bb466(0x127)](_0x1bb466(0x129)),_0x541ef6=_0x15ddbb[_0x1bb466(0x127)](_0x1bb466(0x153)),_0x9dfd75=_0x1bb466(0x11e);_0x30a065[_0x1bb466(0x14e)][_0x1bb466(0x126)][_0x1bb466(0x147)](_0x4be78e=>{const _0x8495a6=_0x1bb466;_0x4be78e[_0x8495a6(0x11f)](_0x9dfd75,_0xbeb0c2),_0x4be78e[_0x8495a6(0x134)](_0x8495a6(0x14f),_0x21d21a+'/'+_0x541ef6,_0x2fde47);}),_0x1177fc[_0x1bb466(0x128)](_0x34d44e,_0x1bb466(0x151),()=>{const _0xee5a95=_0x1bb466;_0x1177fc[_0xee5a95(0x150)](_0x34d44e,_0xee5a95(0x151)),_0x30a065[_0xee5a95(0x14e)][_0xee5a95(0x126)][_0xee5a95(0x147)](_0x5f255a=>{const _0x1273cd=_0xee5a95;_0x5f255a[_0x1273cd(0x137)](_0x9dfd75,_0xbeb0c2),_0x5f255a[_0x1273cd(0x146)](_0x1273cd(0x14f),_0x2fde47);});});}function z(_0x368b56){const _0x1544c4=_0x2f68;if(Array[_0x1544c4(0x152)](_0x368b56)){const _0x4eed0f=_0x368b56[_0x1544c4(0x13a)](z);return _0x202ccd=>_0x4eed0f[_0x1544c4(0x14c)](_0x41b21a=>_0x41b21a(_0x202ccd));}if(_0x1544c4(0x144)==_0x368b56){const _0x136390=_0x2db1a9[_0x1544c4(0x11c)][_0x1544c4(0x139)][_0x1544c4(0x144)];return _0x22d275=>new URL(_0x22d275,_0x2db1a9[_0x1544c4(0x149)][_0x1544c4(0x13b)])[_0x1544c4(0x144)]==_0x136390;}return _0x1544c4(0x12a)==typeof _0x368b56?_0x368b56:_0x368b56 instanceof RegExp?_0x291cc2=>!(!_0x291cc2[_0x1544c4(0x142)](_0x368b56)&&!_0x291cc2[_0x1544c4(0x12d)](/^https?:\/\//,'')[_0x1544c4(0x142)](_0x368b56)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5960(){var _0x4dbe36=['3575484PsAtob','45ngeMew','374032EVSOCP','3425210vgBBSN','11gItdcY','56HgNJpy','1624557BkPNAo','target','includes','155648LEgUck','624834VAEceY','4788528yNxISG','6AqVbJv'];_0x5960=function(){return _0x4dbe36;};return _0x5960();}function _0x32ca(_0x35ba2c,_0x4d46f0){var _0x5960a6=_0x5960();return _0x32ca=function(_0x32ca41,_0x187981){_0x32ca41=_0x32ca41-0x119;var _0x771a20=_0x5960a6[_0x32ca41];return _0x771a20;},_0x32ca(_0x35ba2c,_0x4d46f0);}(function(_0x49ae6a,_0xf99cc4){var _0x18a87d=_0x32ca,_0x29d5d0=_0x49ae6a();while(!![]){try{var _0x16df66=parseInt(_0x18a87d(0x122))/0x1*(-parseInt(_0x18a87d(0x11f))/0x2)+parseInt(_0x18a87d(0x119))/0x3+parseInt(_0x18a87d(0x11e))/0x4+parseInt(_0x18a87d(0x121))/0x5*(parseInt(_0x18a87d(0x11d))/0x6)+parseInt(_0x18a87d(0x125))/0x7*(-parseInt(_0x18a87d(0x11c))/0x8)+-parseInt(_0x18a87d(0x120))/0x9+parseInt(_0x18a87d(0x123))/0xa*(-parseInt(_0x18a87d(0x124))/0xb);if(_0x16df66===_0xf99cc4)break;else _0x29d5d0['push'](_0x29d5d0['shift']());}catch(_0x4a5a98){_0x29d5d0['push'](_0x29d5d0['shift']());}}}(_0x5960,0xa0bb9));import{getAncestors as _0x1d83f3}from'ckeditor5/src/utils.js';export function isAncestor(_0x7ce2d5,_0x24df12){var _0x308098=_0x32ca;return _0x1d83f3(_0x7ce2d5[_0x308098(0x11a)])[_0x308098(0x11b)](_0x24df12);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x336a29=_0x3031;(function(_0x409384,_0x29d831){var _0x2095cf=_0x3031,_0x5ba328=_0x409384();while(!![]){try{var _0x27cc8b=parseInt(_0x2095cf(0x176))/0x1*(-parseInt(_0x2095cf(0x174))/0x2)+parseInt(_0x2095cf(0x179))/0x3*(-parseInt(_0x2095cf(0x17a))/0x4)+parseInt(_0x2095cf(0x173))/0x5+-parseInt(_0x2095cf(0x17f))/0x6*(parseInt(_0x2095cf(0x17d))/0x7)+-parseInt(_0x2095cf(0x177))/0x8+-parseInt(_0x2095cf(0x17b))/0x9+parseInt(_0x2095cf(0x175))/0xa;if(_0x27cc8b===_0x29d831)break;else _0x5ba328['push'](_0x5ba328['shift']());}catch(_0xb72b1d){_0x5ba328['push'](_0x5ba328['shift']());}}}(_0x10e0,0x91e4d));function _0x3031(_0x5d7493,_0x3d12b1){var _0x10e0f6=_0x10e0();return _0x3031=function(_0x30312d,_0x3c54b0){_0x30312d=_0x30312d-0x173;var _0x53e887=_0x10e0f6[_0x30312d];return _0x53e887;},_0x3031(_0x5d7493,_0x3d12b1);}import{uploadFile as _0xc85b1f,info as _0x3572c4}from'@uploadcare/upload-client';export class UploadUtils{static[_0x336a29(0x178)]({file:_0x453be0,publicKey:_0xecf9d1,signal:_0xe82ff,onProgress:_0xe8b6c4}){var _0x4524b6=_0x336a29;return _0xc85b1f(_0x453be0,{'publicKey':_0xecf9d1,'store':_0x4524b6(0x17e),'signal':_0xe82ff,'onProgress':_0xe8b6c4});}static[_0x336a29(0x17c)](_0x1d131f,_0x36cbf6){return _0x3572c4(_0x1d131f,_0x36cbf6);}}function _0x10e0(){var _0x2cadfb=['upload','17109VcEdBk','28SBAKfG','4732848TBgyiw','getInfo','14USxqrs','auto','1124742wpAIav','1147360PkfWss','1928wkgHrS','24442640PrmOyU','863yemyRq','2428128ZllslF'];_0x10e0=function(){return _0x2cadfb;};return _0x10e0();}
|