@ckeditor/ckeditor5-uploadcare 45.2.0-alpha.5 → 45.2.0-alpha.6
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/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,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x87b590=_0x4c56;(function(_0x4fefce,_0x86ccc0){const _0x16977c=_0x4c56,_0x236208=_0x4fefce();while(!![]){try{const _0x331b68=parseInt(_0x16977c(0x167))/0x1+-parseInt(_0x16977c(0x153))/0x2+-parseInt(_0x16977c(0x147))/0x3*(parseInt(_0x16977c(0x150))/0x4)+-parseInt(_0x16977c(0x14f))/0x5+-parseInt(_0x16977c(0x161))/0x6+parseInt(_0x16977c(0x149))/0x7+parseInt(_0x16977c(0x169))/0x8;if(_0x331b68===_0x86ccc0)break;else _0x236208['push'](_0x236208['shift']());}catch(_0x529d89){_0x236208['push'](_0x236208['shift']());}}}(_0x1d18,0xe511f));import{View as _0x110897}from'ckeditor5/src/ui.js';function _0x1d18(){const _0x280236=['set','3351306ZXwzXM','clear','_addErrorViewListeners','addEventListener','fire','_setView','1269558MkyIpr','filter','18574160nyxrts','setTemplate','observe','addMany','_errorView','_editingView','retry','apply','cancel','_items','_loadingView','getFocusableElement','uploading','uc-cloud-image-editor','ready','toLowerCase','render','querySelector','_focusableView','4951095HWyMdg','status','3376674OMUdRl','_waitForImageEditorComponent','detail','target','ck-uploadcare-form','ck-reset_all-excluded','3196970GqxMJi','4MOKaAY','div','nodeName','574258IIzYzH','addedNodes','disconnect','change:status','add','createCollection','length','focus','_addUploadcareImageEditorListeners','once','cdnUrl','error','element'];_0x1d18=function(){return _0x280236;};return _0x1d18();}import _0x58180e from'./uploadcareimageeditformloadingview.js';import _0x43266e from'./uploadcareimageeditformerrorview.js';import _0x3ce265 from'./uploadcareimageeditformeditingview.js';function _0x4c56(_0x1e3e15,_0x4018a8){const _0x1d18f3=_0x1d18();return _0x4c56=function(_0x4c568f,_0xc26a8f){_0x4c568f=_0x4c568f-0x13b;let _0x5ce8db=_0x1d18f3[_0x4c568f];return _0x5ce8db;},_0x4c56(_0x1e3e15,_0x4018a8);}import _0x5f2073 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x5f2073{[_0x87b590(0x13d)];[_0x87b590(0x13e)];[_0x87b590(0x16d)];[_0x87b590(0x16e)];[_0x87b590(0x146)];constructor(_0x52580b,_0x378363,_0x25e250){const _0x49b9d0=_0x87b590;super(_0x52580b),this[_0x49b9d0(0x13d)]=this[_0x49b9d0(0x158)](),this[_0x49b9d0(0x13e)]=new _0x58180e(_0x52580b),this[_0x49b9d0(0x16d)]=new _0x43266e(_0x52580b),this[_0x49b9d0(0x16e)]=new _0x3ce265(_0x52580b,_0x25e250),this[_0x49b9d0(0x146)]=new _0x110897(_0x52580b),this[_0x49b9d0(0x146)][_0x49b9d0(0x16a)](this[_0x49b9d0(0x13f)]()),this[_0x49b9d0(0x160)](_0x49b9d0(0x148),_0x378363),this[_0x49b9d0(0x16a)]({'tag':_0x49b9d0(0x151),'attributes':{'class':['ck',_0x49b9d0(0x14e),_0x49b9d0(0x14d)],'tabindex':'-1'},'children':this[_0x49b9d0(0x13d)]}),this[_0x49b9d0(0x166)](),this[_0x49b9d0(0x15c)](_0x49b9d0(0x144),()=>{const _0x5c3f8e=_0x49b9d0;this[_0x5c3f8e(0x14a)](this[_0x5c3f8e(0x15f)],_0xbdf40c=>{const _0x194c43=_0x5c3f8e;this[_0x194c43(0x15b)](_0xbdf40c);});}),this['on'](_0x49b9d0(0x156),()=>{const _0x5bd3e4=_0x49b9d0;this[_0x5bd3e4(0x166)]();}),this[_0x49b9d0(0x163)]();}[_0x87b590(0x15a)](){const _0xe440c0=_0x87b590;this[_0xe440c0(0x15f)][_0xe440c0(0x15a)]();}[_0x87b590(0x166)](){const _0x281f6c=_0x87b590;switch(this[_0x281f6c(0x13d)][_0x281f6c(0x162)](),this[_0x281f6c(0x148)]){case _0x281f6c(0x140):this[_0x281f6c(0x13d)][_0x281f6c(0x157)](this[_0x281f6c(0x13e)]);break;case _0x281f6c(0x15e):this[_0x281f6c(0x13d)][_0x281f6c(0x157)](this[_0x281f6c(0x16d)]);break;case _0x281f6c(0x142):this[_0x281f6c(0x13d)][_0x281f6c(0x16c)]([this[_0x281f6c(0x16e)],this[_0x281f6c(0x146)]]);}}[_0x87b590(0x14a)](_0x43ffce,_0x35da10){const _0x30d8d1=_0x87b590,_0x28143c=_0x30d8d1(0x141),_0x4f0c20=_0x43ffce[_0x30d8d1(0x145)](_0x28143c);if(_0x4f0c20)return _0x35da10(_0x4f0c20);const _0xb76937=new MutationObserver(_0x188038=>{const _0x491c65=_0x30d8d1,_0x279c6d=_0x188038[_0x491c65(0x168)](_0x29075a=>_0x29075a[_0x491c65(0x14c)]===_0x43ffce&&_0x29075a[_0x491c65(0x154)][_0x491c65(0x159)]>0x0&&_0x29075a[_0x491c65(0x154)][0x0][_0x491c65(0x152)][_0x491c65(0x143)]()===_0x28143c);_0x279c6d[_0x491c65(0x159)]&&(_0xb76937[_0x491c65(0x155)](),_0x35da10(_0x279c6d[0x0][_0x491c65(0x154)][0x0]));});_0xb76937[_0x30d8d1(0x16b)](_0x43ffce,{'childList':!0x0,'subtree':!0x0});}[_0x87b590(0x15b)](_0x432eda){const _0x4e7710=_0x87b590;_0x432eda[_0x4e7710(0x164)](_0x4e7710(0x13b),_0x58f94c=>{const _0x3d32e3=_0x4e7710;this[_0x3d32e3(0x165)](_0x3d32e3(0x13b),{'imageSrc':_0x58f94c[_0x3d32e3(0x14b)][_0x3d32e3(0x15d)]});}),_0x432eda[_0x4e7710(0x164)](_0x4e7710(0x13c),()=>{const _0x3fed0c=_0x4e7710;this[_0x3fed0c(0x165)](_0x3fed0c(0x13c));});}[_0x87b590(0x163)](){const _0x2aa4cd=_0x87b590;this[_0x2aa4cd(0x16d)]['on'](_0x2aa4cd(0x16f),()=>{const _0x2e3321=_0x2aa4cd;this[_0x2e3321(0x165)](_0x2e3321(0x16f));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4fec(){const _0x3f3ca2=['getSelectedElement','plugins','_isEditable','uploadcare.allowExternalImagesEditing','unbind','isEnabled','1373247QNIFwO','imageInline','bind','refresh','document','126LnXexb','set','element','isActive','get','422972VCRKEl','12964257YXNgeU','imageEditController','109970NIbbKp','config','170clTIKP','3dVJWar','selection','execute','requires','model','imageBlock','2097724wlqLwO','10qkgDxg','10376368LXlmbU','editor','1529174gDPYQV'];_0x4fec=function(){return _0x3f3ca2;};return _0x4fec();}function _0x2b78(_0x517b0c,_0x58e840){const _0x4fec0e=_0x4fec();return _0x2b78=function(_0x2b786c,_0x1f3a0d){_0x2b786c=_0x2b786c-0xd4;let _0x1bbd10=_0x4fec0e[_0x2b786c];return _0x1bbd10;},_0x2b78(_0x517b0c,_0x58e840);}const _0x3c4409=_0x2b78;(function(_0x48a570,_0x5f370c){const _0x530e59=_0x2b78,_0x2b4a09=_0x48a570();while(!![]){try{const _0x3752c6=-parseInt(_0x530e59(0xf4))/0x1+parseInt(_0x530e59(0xed))/0x2*(parseInt(_0x530e59(0xe3))/0x3)+parseInt(_0x530e59(0xe9))/0x4*(-parseInt(_0x530e59(0xea))/0x5)+-parseInt(_0x530e59(0xd8))/0x6*(-parseInt(_0x530e59(0xe0))/0x7)+parseInt(_0x530e59(0xeb))/0x8+parseInt(_0x530e59(0xde))/0x9+-parseInt(_0x530e59(0xe2))/0xa*(parseInt(_0x530e59(0xdd))/0xb);if(_0x3752c6===_0x5f370c)break;else _0x2b4a09['push'](_0x2b4a09['shift']());}catch(_0x11eeeb){_0x2b4a09['push'](_0x2b4a09['shift']());}}}(_0x4fec,0xb89ff));import{Command as _0x293e67}from'ckeditor5/src/core.js';import{Dialog as _0x1ab2d5}from'ckeditor5/src/ui.js';import _0x56fc76 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x138ca2}from'../utils/editingutils.js';export default class V extends _0x293e67{[_0x3c4409(0xdf)];static get[_0x3c4409(0xe6)](){return[_0x1ab2d5];}[_0x3c4409(0xf0)];constructor(_0xf75bbf){const _0x19ee54=_0x3c4409;super(_0xf75bbf),this[_0x19ee54(0xdf)]=void 0x0,this[_0x19ee54(0xf0)]=_0x138ca2(_0xf75bbf[_0x19ee54(0xe1)][_0x19ee54(0xdc)](_0x19ee54(0xf1))||[]),this[_0x19ee54(0xd9)]({'isActive':!0x1});}[_0x3c4409(0xd6)](){const _0x4e77f5=_0x3c4409,_0x143928=this[_0x4e77f5(0xec)][_0x4e77f5(0xe7)][_0x4e77f5(0xd7)][_0x4e77f5(0xe4)][_0x4e77f5(0xee)]();this[_0x4e77f5(0xf3)]=this[_0x4e77f5(0xf0)](_0x143928);}[_0x3c4409(0xe5)](){const _0x4994b1=_0x3c4409;this[_0x4994b1(0xdf)]&&(this[_0x4994b1(0xf2)](_0x4994b1(0xdb)),this[_0x4994b1(0xdf)]=void 0x0);const _0x227292=this[_0x4994b1(0xec)][_0x4994b1(0xe7)][_0x4994b1(0xd7)][_0x4994b1(0xe4)][_0x4994b1(0xee)]();_0x227292&&(_0x227292['is'](_0x4994b1(0xda),_0x4994b1(0xe8))||_0x227292['is'](_0x4994b1(0xda),_0x4994b1(0xd4)))&&(this[_0x4994b1(0xdf)]=new _0x56fc76(this[_0x4994b1(0xec)],this[_0x4994b1(0xec)][_0x4994b1(0xef)][_0x4994b1(0xdc)](_0x1ab2d5),_0x227292),this[_0x4994b1(0xd5)](_0x4994b1(0xdb))['to'](this[_0x4994b1(0xdf)],_0x4994b1(0xdb)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x368fe2=_0x4b6c;(function(_0x31479d,_0x851b1){const _0x5aa248=_0x4b6c,_0x1964ba=_0x31479d();while(!![]){try{const _0x3d45fc=-parseInt(_0x5aa248(0x1f9))/0x1*(-parseInt(_0x5aa248(0x1ef))/0x2)+-parseInt(_0x5aa248(0x1f2))/0x3+parseInt(_0x5aa248(0x1ec))/0x4*(-parseInt(_0x5aa248(0x1fb))/0x5)+parseInt(_0x5aa248(0x1e8))/0x6+parseInt(_0x5aa248(0x1f0))/0x7+parseInt(_0x5aa248(0x1fa))/0x8+-parseInt(_0x5aa248(0x1ea))/0x9*(parseInt(_0x5aa248(0x1f1))/0xa);if(_0x3d45fc===_0x851b1)break;else _0x1964ba['push'](_0x1964ba['shift']());}catch(_0x4ab71f){_0x1964ba['push'](_0x1964ba['shift']());}}}(_0x5f52,0x34551));import{Plugin as _0x50a1ce}from'ckeditor5/src/core.js';import{Notification as _0x3b0347}from'ckeditor5/src/ui.js';import _0x4414d from'./uploadcareimageeditcommand.js';function _0x4b6c(_0x29328b,_0x37f5cb){const _0x5f524b=_0x5f52();return _0x4b6c=function(_0x4b6cfb,_0x106cf5){_0x4b6cfb=_0x4b6cfb-0x1e7;let _0x504cf8=_0x5f524b[_0x4b6cfb];return _0x504cf8;},_0x4b6c(_0x29328b,_0x37f5cb);}function _0x5f52(){const _0x2a7ba5=['978ryPApk','1261896PNaheg','204090IJyuuV','uploadcareImageEdit','init','1996668wPJrdf','ImageEditing','169956DafHbd','add','12yZoOJU','UploadcareImageEditEditing','ImageUtils','458IjZyEH','658399kGNmLI','30DolQsI','1245225vcEOAI','isPremiumPlugin','requires','uploadcareImageReplace','isOfficialPlugin','pluginName','commands'];_0x5f52=function(){return _0x2a7ba5;};return _0x5f52();}import _0x1cfa19 from'./uploadcareimagereplacecommand.js';import _0x2c51d3 from'../uploadcareediting.js';export default class g extends _0x50a1ce{static get[_0x368fe2(0x1f7)](){const _0x59c432=_0x368fe2;return _0x59c432(0x1ed);}static get[_0x368fe2(0x1f4)](){const _0x1fd0d5=_0x368fe2;return[_0x2c51d3,_0x3b0347,_0x1fd0d5(0x1ee),_0x1fd0d5(0x1e9)];}static get[_0x368fe2(0x1f6)](){return!0x0;}static get[_0x368fe2(0x1f3)](){return!0x0;}[_0x368fe2(0x1e7)](){const _0x1bea88=_0x368fe2,{editor:_0x2ae4cc}=this;_0x2ae4cc[_0x1bea88(0x1f8)][_0x1bea88(0x1eb)](_0x1bea88(0x1fc),new _0x4414d(_0x2ae4cc)),_0x2ae4cc[_0x1bea88(0x1f8)][_0x1bea88(0x1eb)](_0x1bea88(0x1f5),new _0x1cfa19(_0x2ae4cc));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5eaf48}from'ckeditor5/src/core.js';import{ButtonView as _0x28bcb7}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x53f343}from'ckeditor5/src/icons.js';import{createElement as _0x1aa370}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 _0x5eaf48{['_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 _0x4ee713=this['editor'];_0x4ee713['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1e488b=>{const _0x418683=_0x4ee713['commands']['get']('uploadcareImageEdit'),_0x4f4427=new _0x28bcb7(_0x1e488b),t=_0x1e488b['t'];return _0x4f4427['set']({'icon':_0x53f343,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4f4427['bind']('isEnabled')['to'](_0x418683),_0x4f4427['bind']('isOn')['to'](_0x418683,'isActive'),this['listenTo'](_0x4f4427,'execute',()=>{_0x4ee713['execute']('uploadcareImageEdit'),_0x4ee713['editing']['view']['focus']();}),_0x4f4427;}),this['_initConfig']();}['_initConfig'](){const _0x54826f=_0x1aa370(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x54826f),this['listenTo'](this['editor'],'destroy',()=>{_0x54826f['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4c5ccd=_0x3364;(function(_0x2ee48,_0x508416){const _0x453d2c=_0x3364,_0x1e373e=_0x2ee48();while(!![]){try{const _0x51cee0=-parseInt(_0x453d2c(0x11a))/0x1+parseInt(_0x453d2c(0x11c))/0x2*(parseInt(_0x453d2c(0x11e))/0x3)+-parseInt(_0x453d2c(0x129))/0x4+-parseInt(_0x453d2c(0x11f))/0x5*(parseInt(_0x453d2c(0x122))/0x6)+-parseInt(_0x453d2c(0x116))/0x7+parseInt(_0x453d2c(0x115))/0x8*(-parseInt(_0x453d2c(0x11b))/0x9)+-parseInt(_0x453d2c(0x12f))/0xa*(-parseInt(_0x453d2c(0x12c))/0xb);if(_0x51cee0===_0x508416)break;else _0x1e373e['push'](_0x1e373e['shift']());}catch(_0x4d0e90){_0x1e373e['push'](_0x1e373e['shift']());}}}(_0x173b,0xd4006));import{Command as _0x38a4e8}from'ckeditor5/src/core.js';function _0x3364(_0x50ea7b,_0x41e6cd){const _0x173bec=_0x173b();return _0x3364=function(_0x336433,_0x119033){_0x336433=_0x336433-0x115;let _0x4135ec=_0x173bec[_0x336433];return _0x4135ec;},_0x3364(_0x50ea7b,_0x41e6cd);}export default class X extends _0x38a4e8{[_0x4c5ccd(0x117)](){const _0x305377=_0x4c5ccd,_0x374b27=this[_0x305377(0x121)][_0x305377(0x12d)][_0x305377(0x126)][_0x305377(0x12a)][_0x305377(0x128)]();this[_0x305377(0x12b)]=Boolean(_0x374b27&&(_0x374b27['is'](_0x305377(0x11d),_0x305377(0x124))||_0x374b27['is'](_0x305377(0x11d),_0x305377(0x125))));}[_0x4c5ccd(0x119)](_0x5b1fb8){const _0x3e1ab0=_0x4c5ccd,_0x161285=this[_0x3e1ab0(0x121)][_0x3e1ab0(0x12d)][_0x3e1ab0(0x126)][_0x3e1ab0(0x12a)][_0x3e1ab0(0x128)]();this[_0x3e1ab0(0x121)][_0x3e1ab0(0x12d)][_0x3e1ab0(0x120)](_0x25346d=>{const _0x5bc023=_0x3e1ab0;_0x25346d[_0x5bc023(0x127)](_0x5b1fb8,_0x161285),_0x25346d[_0x5bc023(0x12e)](_0x5bc023(0x123),_0x161285),_0x25346d[_0x5bc023(0x12e)](_0x5bc023(0x118),_0x161285);});}}function _0x173b(){const _0x14528e=['2355591vfSrTB','refresh','sizes','execute','1426424lFwZjP','210969XEpymU','2525626sqqYMp','element','3aQYTLp','5twzqMm','change','editor','9086730AfGFjO','srcset','imageBlock','imageInline','document','setAttributes','getSelectedElement','114056lWgNoS','selection','isEnabled','34346620XtLEUx','model','removeAttribute','10mqCTrM','72DSbASW'];_0x173b=function(){return _0x14528e;};return _0x173b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x386a03=_0x5caa;function _0x5caa(_0x54de4d,_0x587e85){var _0x66ac19=_0x66ac();return _0x5caa=function(_0x5caa1e,_0x28c864){_0x5caa1e=_0x5caa1e-0x185;var _0x2923d3=_0x66ac19[_0x5caa1e];return _0x2923d3;},_0x5caa(_0x54de4d,_0x587e85);}(function(_0x2c43be,_0x547887){var _0x12747e=_0x5caa,_0x1f1d49=_0x2c43be();while(!![]){try{var _0x4ae39e=-parseInt(_0x12747e(0x195))/0x1+parseInt(_0x12747e(0x18e))/0x2+parseInt(_0x12747e(0x18a))/0x3+parseInt(_0x12747e(0x18b))/0x4*(parseInt(_0x12747e(0x192))/0x5)+parseInt(_0x12747e(0x187))/0x6+parseInt(_0x12747e(0x189))/0x7+-parseInt(_0x12747e(0x194))/0x8*(parseInt(_0x12747e(0x191))/0x9);if(_0x4ae39e===_0x547887)break;else _0x1f1d49['push'](_0x1f1d49['shift']());}catch(_0x393d63){_0x1f1d49['push'](_0x1f1d49['shift']());}}}(_0x66ac,0x2c935));import{FocusTracker as _0x3b6972}from'ckeditor5/src/utils.js';import{View as _0x4c4023,FocusCycler as _0x434269}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x66ac(){var _0x5584a5=['30nDSqbn','bindTemplate','961024VvulHS','260958UQuNMK','div','focusTracker','forwardCycle','960696bywwTG','fire','1133811EDzAnp','837513WWjujo','6516axvjUH','focusCycler','true','626034KfgIMn','createCollection','getFocusableElement','36srHgCp'];_0x66ac=function(){return _0x5584a5;};return _0x66ac();}export default class q extends _0x4c4023{[_0x386a03(0x185)];[_0x386a03(0x18c)];constructor(_0x30a552){var _0x386c94=_0x386a03;super(_0x30a552),this[_0x386c94(0x185)]=new _0x3b6972(),this[_0x386c94(0x18c)]=new _0x434269({'focusables':this[_0x386c94(0x18f)](),'focusTracker':this[_0x386c94(0x185)]});}[_0x386a03(0x190)](){var _0x17ef2e=_0x386a03;return{'tag':_0x17ef2e(0x196),'attributes':{'aria-hidden':_0x17ef2e(0x18d),'tabindex':'0'},'on':{'focus':this[_0x17ef2e(0x193)]['to'](()=>{var _0x1e1071=_0x17ef2e;this[_0x1e1071(0x18c)][_0x1e1071(0x188)](_0x1e1071(0x186));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5b9914,_0x166da0){const _0x4dab6d=_0x4ea9,_0xf521cd=_0x5b9914();while(!![]){try{const _0x5cc63b=-parseInt(_0x4dab6d(0x160))/0x1+parseInt(_0x4dab6d(0x13f))/0x2+parseInt(_0x4dab6d(0x15d))/0x3+parseInt(_0x4dab6d(0x15c))/0x4*(parseInt(_0x4dab6d(0x156))/0x5)+-parseInt(_0x4dab6d(0x152))/0x6*(parseInt(_0x4dab6d(0x169))/0x7)+parseInt(_0x4dab6d(0x15e))/0x8+parseInt(_0x4dab6d(0x13e))/0x9;if(_0x5cc63b===_0x166da0)break;else _0xf521cd['push'](_0xf521cd['shift']());}catch(_0x27b86f){_0xf521cd['push'](_0xf521cd['shift']());}}}(_0xc0b3,0xe8ce1));function _0x4ea9(_0x558bc9,_0x4c3e8a){const _0xc0b3d7=_0xc0b3();return _0x4ea9=function(_0x4ea90c,_0x51d84a){_0x4ea90c=_0x4ea90c-0x13d;let _0x4d551e=_0xc0b3d7[_0x4ea90c];return _0x4d551e;},_0x4ea9(_0x558bc9,_0x4c3e8a);}import{global as _0x441aac,DomEmitterMixin as _0x18bdc8}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x2d1a57){const _0x53be73=_0x4ea9,_0x5b36d7=R(_0x2d1a57);return _0x32377c=>!(!_0x32377c||!_0x32377c['is'](_0x53be73(0x154),_0x53be73(0x172))&&!_0x32377c['is'](_0x53be73(0x154),_0x53be73(0x16b)))&&(!!_0x32377c[_0x53be73(0x170)](_0x53be73(0x14d))||!!_0x32377c[_0x53be73(0x170)](_0x53be73(0x145))&&_0x5b36d7(_0x32377c[_0x53be73(0x142)](_0x53be73(0x145))));}export function getImageUrls(_0x25378d,_0x43fa8d){const _0xde0068=_0x4ea9,_0x2e806a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0xde0068(0x151)](_0x4abc32=>_0x4abc32<=_0x43fa8d)[_0xde0068(0x141)](_0x1e396c=>_0x25378d[_0xde0068(0x173)](/\/$/,'')+_0xde0068(0x155)+_0x1e396c+_0xde0068(0x149)+_0x1e396c+'w');return{'imageFallbackUrl':_0x25378d,'imageSources':[{'srcset':_0x2e806a[_0xde0068(0x162)](',\x20'),'sizes':_0xde0068(0x15b)+_0x43fa8d+_0xde0068(0x171)+_0x43fa8d+'px','type':_0xde0068(0x140)}]};}export function getImageDimension(_0x1061fe,_0x5373ce,_0xec785a){const _0x321306=_0x4ea9,_0xfff088=_0x1061fe[_0x321306(0x14e)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xfff088?parseInt(_0xfff088[0x1],0xa):_0x5373ce,'height':_0xfff088?parseInt(_0xfff088[0x2],0xa):_0xec785a};}export function showImageProcessingIndicator(_0x31c7c4,_0x231ae9){const _0x29f9b8=_0x4ea9,_0x1fa190=Object[_0x29f9b8(0x166)](_0x18bdc8),_0x12da8d=_0x31c7c4[_0x29f9b8(0x153)][_0x29f9b8(0x150)](_0x29f9b8(0x14c)),_0x4dd299=_0x31c7c4[_0x29f9b8(0x16f)][_0x29f9b8(0x143)][_0x29f9b8(0x163)](_0x231ae9),_0x4fedb7=_0x12da8d[_0x29f9b8(0x148)](_0x4dd299),_0x3eb614=_0x31c7c4[_0x29f9b8(0x16f)][_0x29f9b8(0x14b)][_0x29f9b8(0x16d)][_0x29f9b8(0x14f)](_0x4fedb7),_0x18d8a4=_0x231ae9[_0x29f9b8(0x142)](_0x29f9b8(0x146)),_0x4c2460=_0x231ae9[_0x29f9b8(0x142)](_0x29f9b8(0x158)),_0x39f49f=_0x29f9b8(0x174);_0x31c7c4[_0x29f9b8(0x16f)][_0x29f9b8(0x14b)][_0x29f9b8(0x157)](_0x7ae3d0=>{const _0x544de3=_0x29f9b8;_0x7ae3d0[_0x544de3(0x15f)](_0x39f49f,_0x4dd299),_0x7ae3d0[_0x544de3(0x15a)](_0x544de3(0x164),_0x18d8a4+'/'+_0x4c2460,_0x4fedb7);}),_0x1fa190[_0x29f9b8(0x175)](_0x3eb614,_0x29f9b8(0x147),()=>{const _0x5cf8c8=_0x29f9b8;_0x1fa190[_0x5cf8c8(0x13d)](_0x3eb614,_0x5cf8c8(0x147)),_0x31c7c4[_0x5cf8c8(0x16f)][_0x5cf8c8(0x14b)][_0x5cf8c8(0x157)](_0x3cd4f7=>{const _0x4b71ba=_0x5cf8c8;_0x3cd4f7[_0x4b71ba(0x167)](_0x39f49f,_0x4dd299),_0x3cd4f7[_0x4b71ba(0x16e)](_0x4b71ba(0x164),_0x4fedb7);});});}function _0xc0b3(){const _0x5405d2=['x/\x20','function','view','ImageUtils','uploadcareImageId','match','viewToDom','get','filter','618eVPCaw','plugins','element','/-/resize/','3670zHtqxU','change','height','isArray','setStyle','(max-width:\x20','3940JUbgOV','1274394NBOOGM','9849184vTnLTq','addClass','1781729vcVlcZ','baseURI','join','toViewElement','aspect-ratio','window','create','removeClass','origin','35077YUzWUo','some','imageInline','document','domConverter','removeStyle','editing','hasAttribute','px)\x20100vw,\x20','imageBlock','replace','image-processing','listenTo','stopListening','4864869gVbCCB','663908DNefjU','image/webp','map','getAttribute','mapper','location','src','width','load','findViewImgElement'];_0xc0b3=function(){return _0x5405d2;};return _0xc0b3();}function R(_0x3d79c2){const _0x53c4e6=_0x4ea9;if(Array[_0x53c4e6(0x159)](_0x3d79c2)){const _0x293f77=_0x3d79c2[_0x53c4e6(0x141)](R);return _0x1ad895=>_0x293f77[_0x53c4e6(0x16a)](_0x15a401=>_0x15a401(_0x1ad895));}if(_0x53c4e6(0x168)==_0x3d79c2){const _0xcbd4e0=_0x441aac[_0x53c4e6(0x165)][_0x53c4e6(0x144)][_0x53c4e6(0x168)];return _0x30bbef=>new URL(_0x30bbef,_0x441aac[_0x53c4e6(0x16c)][_0x53c4e6(0x161)])[_0x53c4e6(0x168)]==_0xcbd4e0;}return _0x53c4e6(0x14a)==typeof _0x3d79c2?_0x3d79c2:_0x3d79c2 instanceof RegExp?_0x5cc19b=>!(!_0x5cc19b[_0x53c4e6(0x14e)](_0x3d79c2)&&!_0x5cc19b[_0x53c4e6(0x173)](/^https?:\/\//,'')[_0x53c4e6(0x14e)](_0x3d79c2)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x423dd1,_0x44f749){var _0x8bdd5f=_0x3813,_0x1d9b91=_0x423dd1();while(!![]){try{var _0x2c86b1=parseInt(_0x8bdd5f(0x118))/0x1*(parseInt(_0x8bdd5f(0x112))/0x2)+-parseInt(_0x8bdd5f(0x114))/0x3*(parseInt(_0x8bdd5f(0x116))/0x4)+parseInt(_0x8bdd5f(0x113))/0x5+-parseInt(_0x8bdd5f(0x10f))/0x6+parseInt(_0x8bdd5f(0x117))/0x7*(-parseInt(_0x8bdd5f(0x119))/0x8)+-parseInt(_0x8bdd5f(0x10e))/0x9+-parseInt(_0x8bdd5f(0x11a))/0xa*(-parseInt(_0x8bdd5f(0x110))/0xb);if(_0x2c86b1===_0x44f749)break;else _0x1d9b91['push'](_0x1d9b91['shift']());}catch(_0x3de531){_0x1d9b91['push'](_0x1d9b91['shift']());}}}(_0x3885,0x4306c));import{getAncestors as _0x5b722f}from'ckeditor5/src/utils.js';function _0x3813(_0x526f47,_0x2862bf){var _0x388569=_0x3885();return _0x3813=function(_0x381375,_0x855e71){_0x381375=_0x381375-0x10e;var _0x2bec4c=_0x388569[_0x381375];return _0x2bec4c;},_0x3813(_0x526f47,_0x2862bf);}function _0x3885(){var _0x1dba46=['4652AWcQax','288264oyrvdH','10IwkGFF','4755933PHEmXn','2437026hnHKyL','13012846uYzIbd','target','122QwVeHG','811230ldlREj','16449tmiKWk','includes','96WaTwRb','56tqOwpz'];_0x3885=function(){return _0x1dba46;};return _0x3885();}export function isAncestor(_0x32295e,_0xfd6acb){var _0x2f423e=_0x3813;return _0x5b722f(_0x32295e[_0x2f423e(0x111)])[_0x2f423e(0x115)](_0xfd6acb);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x9f40(_0x53dafc,_0x193bcf){var _0x16af0e=_0x16af();return _0x9f40=function(_0x9f4005,_0x2cb5f4){_0x9f4005=_0x9f4005-0xae;var _0x439954=_0x16af0e[_0x9f4005];return _0x439954;},_0x9f40(_0x53dafc,_0x193bcf);}var _0x42240c=_0x9f40;function _0x16af(){var _0x3a7aa1=['209421sCwrae','upload','auto','getInfo','5005OeZocX','8770lNlPcW','8SESYny','180630VjWHZY','166596QruBhV','804349FoDqeq','438390rdaNfT','18sbBksC','1kTUqAd','646900HodyuB'];_0x16af=function(){return _0x3a7aa1;};return _0x16af();}(function(_0x44def9,_0x351203){var _0x346922=_0x9f40,_0x58dd11=_0x44def9();while(!![]){try{var _0x3d61ca=parseInt(_0x346922(0xb1))/0x1*(-parseInt(_0x346922(0xbb))/0x2)+parseInt(_0x346922(0xb3))/0x3+parseInt(_0x346922(0xb2))/0x4+-parseInt(_0x346922(0xaf))/0x5*(parseInt(_0x346922(0xb0))/0x6)+parseInt(_0x346922(0xae))/0x7*(-parseInt(_0x346922(0xb9))/0x8)+-parseInt(_0x346922(0xba))/0x9+-parseInt(_0x346922(0xb8))/0xa*(-parseInt(_0x346922(0xb7))/0xb);if(_0x3d61ca===_0x351203)break;else _0x58dd11['push'](_0x58dd11['shift']());}catch(_0x4b354b){_0x58dd11['push'](_0x58dd11['shift']());}}}(_0x16af,0x2470a));import{uploadFile as _0x15e6e4,info as _0x30fea1}from'@uploadcare/upload-client';export default class C{static[_0x42240c(0xb4)]({file:_0x49ed90,publicKey:_0x3f1f4b,signal:_0xc4fd10,onProgress:_0x119f5c}){var _0x4db418=_0x42240c;return _0x15e6e4(_0x49ed90,{'publicKey':_0x3f1f4b,'store':_0x4db418(0xb5),'signal':_0xc4fd10,'onProgress':_0x119f5c});}static[_0x42240c(0xb6)](_0x51859d,_0x24fec2){return _0x30fea1(_0x51859d,_0x24fec2);}}
|