@ckeditor/ckeditor5-uploadcare 45.0.0-alpha.3 → 45.0.0-alpha.5
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
|
-
function
|
|
23
|
+
function _0x1579(_0x4e5072,_0x197b05){const _0x19fdcc=_0x19fd();return _0x1579=function(_0x157910,_0x357147){_0x157910=_0x157910-0x149;let _0x3de4fa=_0x19fdcc[_0x157910];return _0x3de4fa;},_0x1579(_0x4e5072,_0x197b05);}const _0x17d501=_0x1579;(function(_0x7e8b13,_0x16a24a){const _0x4168ca=_0x1579,_0x1ad04d=_0x7e8b13();while(!![]){try{const _0x240271=parseInt(_0x4168ca(0x14b))/0x1*(-parseInt(_0x4168ca(0x149))/0x2)+-parseInt(_0x4168ca(0x155))/0x3*(-parseInt(_0x4168ca(0x168))/0x4)+parseInt(_0x4168ca(0x164))/0x5*(parseInt(_0x4168ca(0x15c))/0x6)+-parseInt(_0x4168ca(0x163))/0x7*(-parseInt(_0x4168ca(0x180))/0x8)+-parseInt(_0x4168ca(0x161))/0x9+parseInt(_0x4168ca(0x165))/0xa*(parseInt(_0x4168ca(0x16e))/0xb)+parseInt(_0x4168ca(0x170))/0xc*(-parseInt(_0x4168ca(0x16a))/0xd);if(_0x240271===_0x16a24a)break;else _0x1ad04d['push'](_0x1ad04d['shift']());}catch(_0x7ba121){_0x1ad04d['push'](_0x1ad04d['shift']());}}}(_0x19fd,0x54ff9));import{View as _0x556748}from'ckeditor5/src/ui.js';function _0x19fd(){const _0x2a1ae5=['_editingView','_items','length','_focusableView','_loadingView','div','once','ck-uploadcare-form','ready','2944IaRuqg','createCollection','querySelector','442dGWdIu','_setView','2120RkGEyb','setTemplate','_waitForImageEditorComponent','filter','observe','target','nodeName','change:status','_errorView','addEventListener','15nDVtOg','apply','addedNodes','cancel','_addErrorViewListeners','fire','addMany','6hjsCUa','toLowerCase','element','getFocusableElement','cdnUrl','4817070XyeGBm','set','10808zrilID','336540dGNtVm','20HFGGmx','uploading','retry','434904EWEYii','clear','325KENspp','render','error','uc-cloud-image-editor','1853764vkPmiF','focus','78852uolwFm','status','_addUploadcareImageEditorListeners','ck-reset_all-excluded','detail','disconnect','add'];_0x19fd=function(){return _0x2a1ae5;};return _0x19fd();}import _0x5f4f65 from'./uploadcareimageeditformloadingview.js';import _0x453d72 from'./uploadcareimageeditformerrorview.js';import _0x513627 from'./uploadcareimageeditformeditingview.js';import _0x3641a9 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x3641a9{[_0x17d501(0x178)];[_0x17d501(0x17b)];[_0x17d501(0x153)];[_0x17d501(0x177)];[_0x17d501(0x17a)];constructor(_0x3f3560,_0x57f40e,_0x37bde8){const _0x5a6e67=_0x17d501;super(_0x3f3560),this[_0x5a6e67(0x178)]=this[_0x5a6e67(0x181)](),this[_0x5a6e67(0x17b)]=new _0x5f4f65(_0x3f3560),this[_0x5a6e67(0x153)]=new _0x453d72(_0x3f3560),this[_0x5a6e67(0x177)]=new _0x513627(_0x3f3560,_0x37bde8),this[_0x5a6e67(0x17a)]=new _0x556748(_0x3f3560),this[_0x5a6e67(0x17a)][_0x5a6e67(0x14c)](this[_0x5a6e67(0x15f)]()),this[_0x5a6e67(0x162)](_0x5a6e67(0x171),_0x57f40e),this[_0x5a6e67(0x14c)]({'tag':_0x5a6e67(0x17c),'attributes':{'class':['ck',_0x5a6e67(0x173),_0x5a6e67(0x17e)],'tabindex':'-1'},'children':this[_0x5a6e67(0x178)]}),this[_0x5a6e67(0x14a)](),this[_0x5a6e67(0x17d)](_0x5a6e67(0x16b),()=>{const _0x4445db=_0x5a6e67;this[_0x4445db(0x14d)](this[_0x4445db(0x15e)],_0x155917=>{const _0xf7004e=_0x4445db;this[_0xf7004e(0x172)](_0x155917);});}),this['on'](_0x5a6e67(0x152),()=>{const _0x1c5e54=_0x5a6e67;this[_0x1c5e54(0x14a)]();}),this[_0x5a6e67(0x159)]();}[_0x17d501(0x16f)](){const _0x4fe2c3=_0x17d501;this[_0x4fe2c3(0x15e)][_0x4fe2c3(0x16f)]();}[_0x17d501(0x14a)](){const _0x51bc50=_0x17d501;switch(this[_0x51bc50(0x178)][_0x51bc50(0x169)](),this[_0x51bc50(0x171)]){case _0x51bc50(0x166):this[_0x51bc50(0x178)][_0x51bc50(0x176)](this[_0x51bc50(0x17b)]);break;case _0x51bc50(0x16c):this[_0x51bc50(0x178)][_0x51bc50(0x176)](this[_0x51bc50(0x153)]);break;case _0x51bc50(0x17f):this[_0x51bc50(0x178)][_0x51bc50(0x15b)]([this[_0x51bc50(0x177)],this[_0x51bc50(0x17a)]]);}}[_0x17d501(0x14d)](_0x5c6131,_0xcaccdb){const _0x13d6b3=_0x17d501,_0x3f3236=_0x13d6b3(0x16d),_0x21b28c=_0x5c6131[_0x13d6b3(0x182)](_0x3f3236);if(_0x21b28c)return _0xcaccdb(_0x21b28c);const _0x21155c=new MutationObserver(_0x5844c2=>{const _0x4ba2d8=_0x13d6b3,_0x3f2dd1=_0x5844c2[_0x4ba2d8(0x14e)](_0x5c8761=>_0x5c8761[_0x4ba2d8(0x150)]===_0x5c6131&&_0x5c8761[_0x4ba2d8(0x157)][_0x4ba2d8(0x179)]>0x0&&_0x5c8761[_0x4ba2d8(0x157)][0x0][_0x4ba2d8(0x151)][_0x4ba2d8(0x15d)]()===_0x3f3236);_0x3f2dd1[_0x4ba2d8(0x179)]&&(_0x21155c[_0x4ba2d8(0x175)](),_0xcaccdb(_0x3f2dd1[0x0][_0x4ba2d8(0x157)][0x0]));});_0x21155c[_0x13d6b3(0x14f)](_0x5c6131,{'childList':!0x0,'subtree':!0x0});}[_0x17d501(0x172)](_0x5a0c2a){const _0x1d919e=_0x17d501;_0x5a0c2a[_0x1d919e(0x154)](_0x1d919e(0x156),_0x3f0a98=>{const _0x4aaea4=_0x1d919e;this[_0x4aaea4(0x15a)](_0x4aaea4(0x156),{'imageSrc':_0x3f0a98[_0x4aaea4(0x174)][_0x4aaea4(0x160)]});}),_0x5a0c2a[_0x1d919e(0x154)](_0x1d919e(0x158),()=>{const _0x4480a4=_0x1d919e;this[_0x4480a4(0x15a)](_0x4480a4(0x158));});}[_0x17d501(0x159)](){const _0x141d66=_0x17d501;this[_0x141d66(0x153)]['on'](_0x141d66(0x167),()=>{const _0x10b8a0=_0x141d66;this[_0x10b8a0(0x15a)](_0x10b8a0(0x167));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ebb3a=_0x21ef;(function(_0x262142,_0x1b7c2c){const _0x220435=_0x21ef,_0xd88a83=_0x262142();while(!![]){try{const _0x4baae5=-parseInt(_0x220435(0x136))/0x1+-parseInt(_0x220435(0x138))/0x2*(-parseInt(_0x220435(0x135))/0x3)+parseInt(_0x220435(0x12f))/0x4*(-parseInt(_0x220435(0x125))/0x5)+parseInt(_0x220435(0x12c))/0x6*(-parseInt(_0x220435(0x134))/0x7)+parseInt(_0x220435(0x12e))/0x8*(-parseInt(_0x220435(0x132))/0x9)+parseInt(_0x220435(0x13c))/0xa+parseInt(_0x220435(0x140))/0xb*(parseInt(_0x220435(0x13b))/0xc);if(_0x4baae5===_0x1b7c2c)break;else _0xd88a83['push'](_0xd88a83['shift']());}catch(_0x28ed0c){_0xd88a83['push'](_0xd88a83['shift']());}}}(_0x4cde,0x84d64));function _0x4cde(){const _0x4e4ad8=['plugins','config','document','25ZmxeJE','imageEditController','isEnabled','set','bind','requires','isActive','6SSrPcw','imageInline','1744tAVUdB','79088yHJvdA','model','get','7362RNyMJP','editor','700182VoZwxn','74193VLnhIo','238440wGsIme','selection','10DTdmxi','execute','imageBlock','12CenMnV','2738470JdzueZ','_isEditable','getSelectedElement','refresh','8384728qGDtHU','unbind','uploadcare.allowExternalImagesEditing','element'];_0x4cde=function(){return _0x4e4ad8;};return _0x4cde();}import{Command as _0x409fc7}from'ckeditor5/src/core.js';import{Dialog as _0x539c5f}from'ckeditor5/src/ui.js';import _0x1a7a02 from'./ui/uploadcareimageeditcontroller.js';function _0x21ef(_0x55633d,_0x3a87c9){const _0x4cde07=_0x4cde();return _0x21ef=function(_0x21efce,_0x465723){_0x21efce=_0x21efce-0x122;let _0x31af1d=_0x4cde07[_0x21efce];return _0x31af1d;},_0x21ef(_0x55633d,_0x3a87c9);}import{createEditabilityChecker as _0x5aa1c6}from'../utils/editingutils.js';export default class V extends _0x409fc7{[_0x5ebb3a(0x126)];static get[_0x5ebb3a(0x12a)](){return[_0x539c5f];}[_0x5ebb3a(0x13d)];constructor(_0x24540c){const _0x595f9d=_0x5ebb3a;super(_0x24540c),this[_0x595f9d(0x126)]=void 0x0,this[_0x595f9d(0x13d)]=_0x5aa1c6(_0x24540c[_0x595f9d(0x123)][_0x595f9d(0x131)](_0x595f9d(0x142))||[]),this[_0x595f9d(0x128)]({'isActive':!0x1});}[_0x5ebb3a(0x13f)](){const _0x5c5af=_0x5ebb3a,_0x58ad4a=this[_0x5c5af(0x133)][_0x5c5af(0x130)][_0x5c5af(0x124)][_0x5c5af(0x137)][_0x5c5af(0x13e)]();this[_0x5c5af(0x127)]=this[_0x5c5af(0x13d)](_0x58ad4a);}[_0x5ebb3a(0x139)](){const _0x380d2e=_0x5ebb3a;this[_0x380d2e(0x126)]&&(this[_0x380d2e(0x141)](_0x380d2e(0x12b)),this[_0x380d2e(0x126)]=void 0x0);const _0x4f313e=this[_0x380d2e(0x133)][_0x380d2e(0x130)][_0x380d2e(0x124)][_0x380d2e(0x137)][_0x380d2e(0x13e)]();_0x4f313e&&(_0x4f313e['is'](_0x380d2e(0x143),_0x380d2e(0x13a))||_0x4f313e['is'](_0x380d2e(0x143),_0x380d2e(0x12d)))&&(this[_0x380d2e(0x126)]=new _0x1a7a02(this[_0x380d2e(0x133)],this[_0x380d2e(0x133)][_0x380d2e(0x122)][_0x380d2e(0x131)](_0x539c5f),_0x4f313e),this[_0x380d2e(0x129)](_0x380d2e(0x12b))['to'](this[_0x380d2e(0x126)],_0x380d2e(0x12b)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17e297=_0x522d;(function(_0x1869da,_0x4f8bb0){const _0x3d282b=_0x522d,_0x2a53f5=_0x1869da();while(!![]){try{const _0x34baf6=-parseInt(_0x3d282b(0x208))/0x1+-parseInt(_0x3d282b(0x1f7))/0x2+-parseInt(_0x3d282b(0x1f6))/0x3*(parseInt(_0x3d282b(0x206))/0x4)+parseInt(_0x3d282b(0x1fc))/0x5*(-parseInt(_0x3d282b(0x1fe))/0x6)+parseInt(_0x3d282b(0x1f5))/0x7*(-parseInt(_0x3d282b(0x1fd))/0x8)+parseInt(_0x3d282b(0x204))/0x9*(-parseInt(_0x3d282b(0x202))/0xa)+parseInt(_0x3d282b(0x1fa))/0xb*(parseInt(_0x3d282b(0x1fb))/0xc);if(_0x34baf6===_0x4f8bb0)break;else _0x2a53f5['push'](_0x2a53f5['shift']());}catch(_0x339fd4){_0x2a53f5['push'](_0x2a53f5['shift']());}}}(_0x2bf0,0xdb004));import{Plugin as _0x532dcf}from'ckeditor5/src/core.js';function _0x522d(_0x58111b,_0x812098){const _0x2bf0aa=_0x2bf0();return _0x522d=function(_0x522d12,_0x47f39e){_0x522d12=_0x522d12-0x1f4;let _0x1a4100=_0x2bf0aa[_0x522d12];return _0x1a4100;},_0x522d(_0x58111b,_0x812098);}import{Notification as _0x932c5c}from'ckeditor5/src/ui.js';import _0x20be62 from'./uploadcareimageeditcommand.js';function _0x2bf0(){const _0x35e623=['8QdkAgX','84SkAsLM','pluginName','uploadcareImageEdit','commands','20wTxGRw','ImageUtils','2494278fByhHo','isOfficialPlugin','176JRJBAg','add','1267134QBAChV','UploadcareImageEditEditing','isPremiumPlugin','requires','init','11300793YgSVBQ','77535cjKkxs','1770198TTGBEW','uploadcareImageReplace','ImageEditing','17805689RVqJoo','48fgdZaZ','42740WRDMzr'];_0x2bf0=function(){return _0x35e623;};return _0x2bf0();}import _0x45e1f6 from'./uploadcareimagereplacecommand.js';import _0x2c21b1 from'../uploadcareediting.js';export default class g extends _0x532dcf{static get[_0x17e297(0x1ff)](){const _0x394b5f=_0x17e297;return _0x394b5f(0x209);}static get[_0x17e297(0x20b)](){const _0x59b8c0=_0x17e297;return[_0x2c21b1,_0x932c5c,_0x59b8c0(0x203),_0x59b8c0(0x1f9)];}static get[_0x17e297(0x205)](){return!0x0;}static get[_0x17e297(0x20a)](){return!0x0;}[_0x17e297(0x1f4)](){const _0x4ced62=_0x17e297,{editor:_0x3e59e8}=this;_0x3e59e8[_0x4ced62(0x201)][_0x4ced62(0x207)](_0x4ced62(0x200),new _0x20be62(_0x3e59e8)),_0x3e59e8[_0x4ced62(0x201)][_0x4ced62(0x207)](_0x4ced62(0x1f8),new _0x45e1f6(_0x3e59e8));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x35205a}from'ckeditor5/src/core.js';import{ButtonView as _0x213afd}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x15cc5e}from'ckeditor5/src/icons.js';import{createElement as _0x2b249d}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 _0x35205a{['_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 _0x3cbce0=this['editor'];_0x3cbce0['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3a5e77=>{const _0x2aede8=_0x3cbce0['commands']['get']('uploadcareImageEdit'),_0x18f2ca=new _0x213afd(_0x3a5e77),t=_0x3a5e77['t'];return _0x18f2ca['set']({'icon':_0x15cc5e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x18f2ca['bind']('isEnabled')['to'](_0x2aede8),_0x18f2ca['bind']('isOn')['to'](_0x2aede8,'isActive'),this['listenTo'](_0x18f2ca,'execute',()=>{_0x3cbce0['execute']('uploadcareImageEdit'),_0x3cbce0['editing']['view']['focus']();}),_0x18f2ca;}),this['_initConfig']();}['_initConfig'](){const _0x36d071=_0x2b249d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x36d071),this['listenTo'](this['editor'],'destroy',()=>{_0x36d071['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2a536c=_0x1e4b;function _0x41bf(){const _0x5c7039=['3397604kPGBZf','selection','change','editor','4813384SZhZpP','6617737ABCMTC','setAttributes','srcset','imageInline','element','document','97OwsDyL','747215IkqtvQ','1384428WyNGEG','17326wKxpOk','18hmrDze','imageBlock','execute','model','removeAttribute','refresh','getSelectedElement','isEnabled','sizes','1143789aLAkDs'];_0x41bf=function(){return _0x5c7039;};return _0x41bf();}(function(_0x529648,_0x3c17e8){const _0x11c2ee=_0x1e4b,_0x586204=_0x529648();while(!![]){try{const _0x2874f9=-parseInt(_0x11c2ee(0xe8))/0x1*(-parseInt(_0x11c2ee(0xeb))/0x2)+parseInt(_0x11c2ee(0xf5))/0x3+-parseInt(_0x11c2ee(0xf6))/0x4+parseInt(_0x11c2ee(0xe9))/0x5+parseInt(_0x11c2ee(0xea))/0x6+parseInt(_0x11c2ee(0xe2))/0x7+-parseInt(_0x11c2ee(0xe1))/0x8*(parseInt(_0x11c2ee(0xec))/0x9);if(_0x2874f9===_0x3c17e8)break;else _0x586204['push'](_0x586204['shift']());}catch(_0x235ebc){_0x586204['push'](_0x586204['shift']());}}}(_0x41bf,0x78b3f));import{Command as _0x505fc7}from'ckeditor5/src/core.js';function _0x1e4b(_0x560876,_0x1e4971){const _0x41bff5=_0x41bf();return _0x1e4b=function(_0x1e4bf9,_0x8a0a9a){_0x1e4bf9=_0x1e4bf9-0xe0;let _0xac28b1=_0x41bff5[_0x1e4bf9];return _0xac28b1;},_0x1e4b(_0x560876,_0x1e4971);}export default class X extends _0x505fc7{[_0x2a536c(0xf1)](){const _0x5c4e70=_0x2a536c,_0x42617b=this[_0x5c4e70(0xe0)][_0x5c4e70(0xef)][_0x5c4e70(0xe7)][_0x5c4e70(0xf7)][_0x5c4e70(0xf2)]();this[_0x5c4e70(0xf3)]=Boolean(_0x42617b&&(_0x42617b['is'](_0x5c4e70(0xe6),_0x5c4e70(0xed))||_0x42617b['is'](_0x5c4e70(0xe6),_0x5c4e70(0xe5))));}[_0x2a536c(0xee)](_0x3cbfcc){const _0x279b20=_0x2a536c,_0x1cabd7=this[_0x279b20(0xe0)][_0x279b20(0xef)][_0x279b20(0xe7)][_0x279b20(0xf7)][_0x279b20(0xf2)]();this[_0x279b20(0xe0)][_0x279b20(0xef)][_0x279b20(0xf8)](_0x2e9645=>{const _0x5490d8=_0x279b20;_0x2e9645[_0x5490d8(0xe3)](_0x3cbfcc,_0x1cabd7),_0x2e9645[_0x5490d8(0xf0)](_0x5490d8(0xe4),_0x1cabd7),_0x2e9645[_0x5490d8(0xf0)](_0x5490d8(0xf4),_0x1cabd7);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3b57a6=_0x187d;function _0x187d(_0x4eecdc,_0x28ab52){var _0x2cb34b=_0x2cb3();return _0x187d=function(_0x187daa,_0x1962de){_0x187daa=_0x187daa-0x1da;var _0x24bfba=_0x2cb34b[_0x187daa];return _0x24bfba;},_0x187d(_0x4eecdc,_0x28ab52);}(function(_0x2eb64e,_0x1113b2){var _0x2c0d56=_0x187d,_0x3da506=_0x2eb64e();while(!![]){try{var _0x575104=-parseInt(_0x2c0d56(0x1dd))/0x1*(parseInt(_0x2c0d56(0x1eb))/0x2)+parseInt(_0x2c0d56(0x1ec))/0x3*(-parseInt(_0x2c0d56(0x1dc))/0x4)+-parseInt(_0x2c0d56(0x1ee))/0x5*(-parseInt(_0x2c0d56(0x1e5))/0x6)+-parseInt(_0x2c0d56(0x1e7))/0x7+parseInt(_0x2c0d56(0x1e1))/0x8*(-parseInt(_0x2c0d56(0x1e3))/0x9)+-parseInt(_0x2c0d56(0x1da))/0xa+-parseInt(_0x2c0d56(0x1e0))/0xb*(-parseInt(_0x2c0d56(0x1e9))/0xc);if(_0x575104===_0x1113b2)break;else _0x3da506['push'](_0x3da506['shift']());}catch(_0x23d60e){_0x3da506['push'](_0x3da506['shift']());}}}(_0x2cb3,0x8b433));import{FocusTracker as _0x3b6562}from'ckeditor5/src/utils.js';import{View as _0x3e7396,FocusCycler as _0x42146b}from'ckeditor5/src/ui.js';function _0x2cb3(){var _0x4fbffb=['bindTemplate','72lGUAIc','div','433392jQKmfy','forwardCycle','3837288oXZDsg','createCollection','156zVEvAV','fire','80246CxNpNN','554571QSkJzj','true','5LldQEI','2563980xPjGIy','focusCycler','4hiEubs','24ZYPJhw','getFocusableElement','focusTracker','2885278XZMDDy','959296QqRgum'];_0x2cb3=function(){return _0x4fbffb;};return _0x2cb3();}import'../../theme/uploadcare-form.css';export default class q extends _0x3e7396{[_0x3b57a6(0x1df)];[_0x3b57a6(0x1db)];constructor(_0x16ce68){var _0x3928c4=_0x3b57a6;super(_0x16ce68),this[_0x3928c4(0x1df)]=new _0x3b6562(),this[_0x3928c4(0x1db)]=new _0x42146b({'focusables':this[_0x3928c4(0x1e8)](),'focusTracker':this[_0x3928c4(0x1df)]});}[_0x3b57a6(0x1de)](){var _0x2abfc2=_0x3b57a6;return{'tag':_0x2abfc2(0x1e4),'attributes':{'aria-hidden':_0x2abfc2(0x1ed),'tabindex':'0'},'on':{'focus':this[_0x2abfc2(0x1e2)]['to'](()=>{var _0x56ceae=_0x2abfc2;this[_0x56ceae(0x1db)][_0x56ceae(0x1ea)](_0x56ceae(0x1e6));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5c1ac3,_0x120a74){const _0x5cbae9=_0x472a,_0x2ba81c=_0x5c1ac3();while(!![]){try{const _0x3f2ba5=-parseInt(_0x5cbae9(0x16e))/0x1*(parseInt(_0x5cbae9(0x14d))/0x2)+parseInt(_0x5cbae9(0x16f))/0x3+-parseInt(_0x5cbae9(0x158))/0x4*(-parseInt(_0x5cbae9(0x151))/0x5)+parseInt(_0x5cbae9(0x145))/0x6*(-parseInt(_0x5cbae9(0x16c))/0x7)+-parseInt(_0x5cbae9(0x157))/0x8*(parseInt(_0x5cbae9(0x163))/0x9)+parseInt(_0x5cbae9(0x14a))/0xa+-parseInt(_0x5cbae9(0x17d))/0xb*(parseInt(_0x5cbae9(0x15a))/0xc);if(_0x3f2ba5===_0x120a74)break;else _0x2ba81c['push'](_0x2ba81c['shift']());}catch(_0x2d5b3e){_0x2ba81c['push'](_0x2ba81c['shift']());}}}(_0x4edf,0xba79e));import{global as _0x36a067,DomEmitterMixin as _0x5ef0ea}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x302bb7){const _0x1d2973=_0x472a,_0x186b18=R(_0x302bb7);return _0x44a40a=>!(!_0x44a40a||!_0x44a40a['is'](_0x1d2973(0x17c),_0x1d2973(0x14e))&&!_0x44a40a['is'](_0x1d2973(0x17c),_0x1d2973(0x171)))&&(!!_0x44a40a[_0x1d2973(0x14b)](_0x1d2973(0x14c))||!!_0x44a40a[_0x1d2973(0x14b)](_0x1d2973(0x16a))&&_0x186b18(_0x44a40a[_0x1d2973(0x15b)](_0x1d2973(0x16a))));}export function getImageUrls(_0x3b4e00,_0x4c1310){const _0x3f2232=_0x472a,_0x3a5a3c=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x3f2232(0x150)](_0x18fea6=>_0x18fea6<=_0x4c1310)[_0x3f2232(0x179)](_0x3e735d=>_0x3b4e00[_0x3f2232(0x152)](/\/$/,'')+_0x3f2232(0x164)+_0x3e735d+_0x3f2232(0x172)+_0x3e735d+'w');return{'imageFallbackUrl':_0x3b4e00,'imageSources':[{'srcset':_0x3a5a3c[_0x3f2232(0x16b)](',\x20'),'sizes':_0x3f2232(0x153)+_0x4c1310+_0x3f2232(0x159)+_0x4c1310+'px','type':_0x3f2232(0x156)}]};}export function getImageDimension(_0x5d89b4,_0x298b6b,_0x2c49f2){const _0x19541a=_0x472a,_0x102c36=_0x5d89b4[_0x19541a(0x147)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x102c36?parseInt(_0x102c36[0x1],0xa):_0x298b6b,'height':_0x102c36?parseInt(_0x102c36[0x2],0xa):_0x2c49f2};}function _0x4edf(){const _0x2ef880=['imageBlock','image-processing','filter','788760xJaEju','replace','(max-width:\x20','editing','document','image/webp','3042032xJCCrD','32WwLBGE','px)\x20100vw,\x20','421380fpoZpH','getAttribute','view','baseURI','get','domConverter','viewToDom','change','isArray','9IzgRyK','/-/resize/','ImageUtils','width','stopListening','origin','window','src','join','462IKxIiu','removeStyle','683234mxiiGm','4092975oIUZbt','load','imageInline','x/\x20','create','location','aspect-ratio','setStyle','some','function','map','listenTo','removeClass','element','11EaeKiU','toViewElement','findViewImgElement','addClass','56262hTRCOq','height','match','mapper','plugins','5381840rKhLqi','hasAttribute','uploadcareImageId','4VxJWjf'];_0x4edf=function(){return _0x2ef880;};return _0x4edf();}function _0x472a(_0x539ea6,_0x489b07){const _0x4edf38=_0x4edf();return _0x472a=function(_0x472ae0,_0x2763b7){_0x472ae0=_0x472ae0-0x143;let _0x2fd224=_0x4edf38[_0x472ae0];return _0x2fd224;},_0x472a(_0x539ea6,_0x489b07);}export function showImageProcessingIndicator(_0x24a45a,_0x351501){const _0x5444bf=_0x472a,_0x5ea0e4=Object[_0x5444bf(0x173)](_0x5ef0ea),_0x407859=_0x24a45a[_0x5444bf(0x149)][_0x5444bf(0x15e)](_0x5444bf(0x165)),_0x3ac8ad=_0x24a45a[_0x5444bf(0x154)][_0x5444bf(0x148)][_0x5444bf(0x17e)](_0x351501),_0x1a1adf=_0x407859[_0x5444bf(0x143)](_0x3ac8ad),_0x465aa0=_0x24a45a[_0x5444bf(0x154)][_0x5444bf(0x15c)][_0x5444bf(0x15f)][_0x5444bf(0x160)](_0x1a1adf),_0x2824b4=_0x351501[_0x5444bf(0x15b)](_0x5444bf(0x166)),_0x405092=_0x351501[_0x5444bf(0x15b)](_0x5444bf(0x146)),_0x1eeae7=_0x5444bf(0x14f);_0x24a45a[_0x5444bf(0x154)][_0x5444bf(0x15c)][_0x5444bf(0x161)](_0x4d1c75=>{const _0x104261=_0x5444bf;_0x4d1c75[_0x104261(0x144)](_0x1eeae7,_0x3ac8ad),_0x4d1c75[_0x104261(0x176)](_0x104261(0x175),_0x2824b4+'/'+_0x405092,_0x1a1adf);}),_0x5ea0e4[_0x5444bf(0x17a)](_0x465aa0,_0x5444bf(0x170),()=>{const _0x5595ff=_0x5444bf;_0x5ea0e4[_0x5595ff(0x167)](_0x465aa0,_0x5595ff(0x170)),_0x24a45a[_0x5595ff(0x154)][_0x5595ff(0x15c)][_0x5595ff(0x161)](_0x1427ad=>{const _0x426b97=_0x5595ff;_0x1427ad[_0x426b97(0x17b)](_0x1eeae7,_0x3ac8ad),_0x1427ad[_0x426b97(0x16d)](_0x426b97(0x175),_0x1a1adf);});});}function R(_0x58647b){const _0x52df54=_0x472a;if(Array[_0x52df54(0x162)](_0x58647b)){const _0x39842e=_0x58647b[_0x52df54(0x179)](R);return _0x431c58=>_0x39842e[_0x52df54(0x177)](_0x2ab54d=>_0x2ab54d(_0x431c58));}if(_0x52df54(0x168)==_0x58647b){const _0x6a1fe8=_0x36a067[_0x52df54(0x169)][_0x52df54(0x174)][_0x52df54(0x168)];return _0x270fd1=>new URL(_0x270fd1,_0x36a067[_0x52df54(0x155)][_0x52df54(0x15d)])[_0x52df54(0x168)]==_0x6a1fe8;}return _0x52df54(0x178)==typeof _0x58647b?_0x58647b:_0x58647b instanceof RegExp?_0x38ee41=>!(!_0x38ee41[_0x52df54(0x147)](_0x58647b)&&!_0x38ee41[_0x52df54(0x152)](/^https?:\/\//,'')[_0x52df54(0x147)](_0x58647b)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1fb990,_0x3335ed){var _0x1ccfde=_0x1bf2,_0x55bb02=_0x1fb990();while(!![]){try{var _0x1d316f=-parseInt(_0x1ccfde(0xb3))/0x1+parseInt(_0x1ccfde(0xaf))/0x2+-parseInt(_0x1ccfde(0xad))/0x3*(-parseInt(_0x1ccfde(0xae))/0x4)+-parseInt(_0x1ccfde(0xac))/0x5+-parseInt(_0x1ccfde(0xb0))/0x6*(parseInt(_0x1ccfde(0xb2))/0x7)+parseInt(_0x1ccfde(0xb6))/0x8+-parseInt(_0x1ccfde(0xb1))/0x9;if(_0x1d316f===_0x3335ed)break;else _0x55bb02['push'](_0x55bb02['shift']());}catch(_0x48d362){_0x55bb02['push'](_0x55bb02['shift']());}}}(_0x4197,0xd1c78));function _0x1bf2(_0x2b07c9,_0xcd66fc){var _0x4197c4=_0x4197();return _0x1bf2=function(_0x1bf2df,_0x532ed2){_0x1bf2df=_0x1bf2df-0xac;var _0x4a5bc3=_0x4197c4[_0x1bf2df];return _0x4a5bc3;},_0x1bf2(_0x2b07c9,_0xcd66fc);}function _0x4197(){var _0x3e5564=['includes','target','12870240uYRKJC','237545Puorer','9VwIAyF','1627148vHclwX','2059038VEDSOj','32532FcmHYj','9576540nsLzeh','287XYblqe','1665533fntlWY'];_0x4197=function(){return _0x3e5564;};return _0x4197();}import{getAncestors as _0x54d8e3}from'ckeditor5/src/utils.js';export function isAncestor(_0x1fef05,_0x23fbd4){var _0x1b4b91=_0x1bf2;return _0x54d8e3(_0x1fef05[_0x1b4b91(0xb5)])[_0x1b4b91(0xb4)](_0x23fbd4);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5e86c2=_0x5a96;function _0x5a96(_0x40aa49,_0x303718){var _0x2b3892=_0x2b38();return _0x5a96=function(_0x5a96bd,_0x57f401){_0x5a96bd=_0x5a96bd-0xb0;var _0x3a6be0=_0x2b3892[_0x5a96bd];return _0x3a6be0;},_0x5a96(_0x40aa49,_0x303718);}(function(_0x5363e1,_0xd27295){var _0x481e9c=_0x5a96,_0x2c5139=_0x5363e1();while(!![]){try{var _0x4d1859=-parseInt(_0x481e9c(0xbc))/0x1*(-parseInt(_0x481e9c(0xbe))/0x2)+-parseInt(_0x481e9c(0xb1))/0x3*(parseInt(_0x481e9c(0xb5))/0x4)+-parseInt(_0x481e9c(0xb3))/0x5+parseInt(_0x481e9c(0xb9))/0x6*(-parseInt(_0x481e9c(0xb7))/0x7)+parseInt(_0x481e9c(0xb8))/0x8*(-parseInt(_0x481e9c(0xb0))/0x9)+-parseInt(_0x481e9c(0xb4))/0xa*(parseInt(_0x481e9c(0xbd))/0xb)+parseInt(_0x481e9c(0xba))/0xc;if(_0x4d1859===_0xd27295)break;else _0x2c5139['push'](_0x2c5139['shift']());}catch(_0x132dc6){_0x2c5139['push'](_0x2c5139['shift']());}}}(_0x2b38,0x1b4f9));import{uploadFile as _0x32ae8b,info as _0x312cf5}from'@uploadcare/upload-client';function _0x2b38(){var _0x48696d=['141434pGuenk','10062vIIHvE','789QQSHMQ','auto','400655SLhqCi','1745010PXuQJy','1704anAYHX','upload','7sBCTTC','1528sZwfMX','819606mxXstx','9095484neCIJY','getInfo','1DLiCES','11JpRklM'];_0x2b38=function(){return _0x48696d;};return _0x2b38();}export default class C{static[_0x5e86c2(0xb6)]({file:_0x4c13a9,publicKey:_0x5545aa,signal:_0x1b83ed,onProgress:_0x2d0454}){var _0x154b56=_0x5e86c2;return _0x32ae8b(_0x4c13a9,{'publicKey':_0x5545aa,'store':_0x154b56(0xb2),'signal':_0x1b83ed,'onProgress':_0x2d0454});}static[_0x5e86c2(0xbb)](_0x35e215,_0x3fcf44){return _0x312cf5(_0x35e215,_0x3fcf44);}}
|