@ckeditor/ckeditor5-uploadcare 46.1.1-alpha.2 → 46.1.1-alpha.3
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 _0x4a1263,View as _0x5d1e74}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x5d1e74{constructor(_0x1f6e8d){super(_0x1f6e8d);const t=_0x1f6e8d['t'],_0x4180a4=this['bindTemplate'],_0x30d3ac=new _0x4a1263();_0x30d3ac['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':[_0x30d3ac,{'text':_0x4180a4['to']('imageUploadProgress',_0xb2e3ac=>t('Loading\x20image...')+'\x20('+(_0xb2e3ac||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x1c459b=_0x2c67;function _0x58f5(){const _0x5b5bc0=['filter','set','addMany','clear','disconnect','apply','252rVpxKI','20APvFYw','toLowerCase','27114nYIVIV','render','5FROZDV','15476512cbDHjH','_setView','target','observe','119tCaObh','detail','ready','_waitForImageEditorComponent','_addErrorViewListeners','addedNodes','nodeName','div','_focusableView','uploading','createCollection','6557348SZyQun','ck-reset_all-excluded','error','fire','cancel','_editingView','once','6980ecgREh','542529HYfHoR','_items','element','_loadingView','add','addEventListener','_errorView','change:status','10757982ohZlQo','length','status','focus','ck-uploadcare-form','_addUploadcareImageEditorListeners','22189233JvYQkT','uc-cloud-image-editor','setTemplate','getFocusableElement','querySelector','retry','cdnUrl'];_0x58f5=function(){return _0x5b5bc0;};return _0x58f5();}(function(_0x4e304c,_0x590281){const _0x135a9c=_0x2c67,_0x59f4be=_0x4e304c();while(!![]){try{const _0x2cedd8=parseInt(_0x135a9c(0x15e))/0x1*(-parseInt(_0x135a9c(0x138))/0x2)+-parseInt(_0x135a9c(0x157))/0x3*(-parseInt(_0x135a9c(0x154))/0x4)+-parseInt(_0x135a9c(0x159))/0x5*(-parseInt(_0x135a9c(0x141))/0x6)+-parseInt(_0x135a9c(0x131))/0x7+-parseInt(_0x135a9c(0x15a))/0x8+parseInt(_0x135a9c(0x139))/0x9*(-parseInt(_0x135a9c(0x155))/0xa)+parseInt(_0x135a9c(0x147))/0xb;if(_0x2cedd8===_0x590281)break;else _0x59f4be['push'](_0x59f4be['shift']());}catch(_0x373ba){_0x59f4be['push'](_0x59f4be['shift']());}}}(_0x58f5,0xed66a));import{View as _0x228bd6}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3bd8bb}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x5a86d2}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x187356}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x449b7c}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x2c67(_0x5d2bc2,_0x1b3eb6){const _0x58f5be=_0x58f5();return _0x2c67=function(_0x2c67da,_0x91ceab){_0x2c67da=_0x2c67da-0x12e;let _0x58128d=_0x58f5be[_0x2c67da];return _0x58128d;},_0x2c67(_0x5d2bc2,_0x1b3eb6);}export class UploadcareImageEditFormView extends _0x449b7c{[_0x1c459b(0x13a)];[_0x1c459b(0x13c)];[_0x1c459b(0x13f)];[_0x1c459b(0x136)];[_0x1c459b(0x12e)];constructor(_0x30b8b9,_0x5e9c2c,_0x550992){const _0x520473=_0x1c459b;super(_0x30b8b9),this[_0x520473(0x13a)]=this[_0x520473(0x130)](),this[_0x520473(0x13c)]=new _0x3bd8bb(_0x30b8b9),this[_0x520473(0x13f)]=new _0x5a86d2(_0x30b8b9),this[_0x520473(0x136)]=new _0x187356(_0x30b8b9,_0x550992),this[_0x520473(0x12e)]=new _0x228bd6(_0x30b8b9),this[_0x520473(0x12e)][_0x520473(0x149)](this[_0x520473(0x14a)]()),this[_0x520473(0x14f)](_0x520473(0x143),_0x5e9c2c),this[_0x520473(0x149)]({'tag':_0x520473(0x165),'attributes':{'class':['ck',_0x520473(0x132),_0x520473(0x145)],'tabindex':'-1'},'children':this[_0x520473(0x13a)]}),this[_0x520473(0x15b)](),this[_0x520473(0x137)](_0x520473(0x158),()=>{const _0x41587c=_0x520473;this[_0x41587c(0x161)](this[_0x41587c(0x13b)],_0x44b67c=>{const _0x1bf057=_0x41587c;this[_0x1bf057(0x146)](_0x44b67c);});}),this['on'](_0x520473(0x140),()=>{const _0x9fa83a=_0x520473;this[_0x9fa83a(0x15b)]();}),this[_0x520473(0x162)]();}[_0x1c459b(0x144)](){const _0x2f423f=_0x1c459b;this[_0x2f423f(0x13b)][_0x2f423f(0x144)]();}[_0x1c459b(0x15b)](){const _0x162a83=_0x1c459b;switch(this[_0x162a83(0x13a)][_0x162a83(0x151)](),this[_0x162a83(0x143)]){case _0x162a83(0x12f):this[_0x162a83(0x13a)][_0x162a83(0x13d)](this[_0x162a83(0x13c)]);break;case _0x162a83(0x133):this[_0x162a83(0x13a)][_0x162a83(0x13d)](this[_0x162a83(0x13f)]);break;case _0x162a83(0x160):this[_0x162a83(0x13a)][_0x162a83(0x150)]([this[_0x162a83(0x136)],this[_0x162a83(0x12e)]]);}}[_0x1c459b(0x161)](_0x1a298d,_0x59521f){const _0x523576=_0x1c459b,_0x444903=_0x523576(0x148),_0x5abe7e=_0x1a298d[_0x523576(0x14b)](_0x444903);if(_0x5abe7e)return _0x59521f(_0x5abe7e);const _0x46eaee=new MutationObserver(_0x159a0d=>{const _0x2a1bac=_0x523576,_0x153828=_0x159a0d[_0x2a1bac(0x14e)](_0x3c197e=>_0x3c197e[_0x2a1bac(0x15c)]===_0x1a298d&&_0x3c197e[_0x2a1bac(0x163)][_0x2a1bac(0x142)]>0x0&&_0x3c197e[_0x2a1bac(0x163)][0x0][_0x2a1bac(0x164)][_0x2a1bac(0x156)]()===_0x444903);_0x153828[_0x2a1bac(0x142)]&&(_0x46eaee[_0x2a1bac(0x152)](),_0x59521f(_0x153828[0x0][_0x2a1bac(0x163)][0x0]));});_0x46eaee[_0x523576(0x15d)](_0x1a298d,{'childList':!0x0,'subtree':!0x0});}[_0x1c459b(0x146)](_0x14cd7f){const _0x4e13a5=_0x1c459b;_0x14cd7f[_0x4e13a5(0x13e)](_0x4e13a5(0x153),_0x31dba8=>{const _0x3e76e0=_0x4e13a5;this[_0x3e76e0(0x134)](_0x3e76e0(0x153),{'imageSrc':_0x31dba8[_0x3e76e0(0x15f)][_0x3e76e0(0x14d)]});}),_0x14cd7f[_0x4e13a5(0x13e)](_0x4e13a5(0x135),()=>{const _0x53a754=_0x4e13a5;this[_0x53a754(0x134)](_0x53a754(0x135));});}[_0x1c459b(0x162)](){const _0x332f95=_0x1c459b;this[_0x332f95(0x13f)]['on'](_0x332f95(0x14c),()=>{const _0x23210d=_0x332f95;this[_0x23210d(0x134)](_0x23210d(0x14c));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2acd(){const _0x139594=['selection','4372236ceUQnW','2086528gtCCkc','682CjUixE','model','5338886gsFoXz','uploadcare.allowExternalImagesEditing','element','2174008SObjQa','editor','requires','imageInline','getSelectedElement','imageEditController','247134gPWPuy','isActive','1558125rlZQFB','imageBlock','isEnabled','refresh','document','unbind','get','1515GKaewI','config','execute','plugins','bind','set','_isEditable'];_0x2acd=function(){return _0x139594;};return _0x2acd();}const _0xe50f41=_0x47f4;function _0x47f4(_0x52192a,_0x6e087e){const _0x2acd26=_0x2acd();return _0x47f4=function(_0x47f40b,_0x4165df){_0x47f40b=_0x47f40b-0x7c;let _0x51dc5d=_0x2acd26[_0x47f40b];return _0x51dc5d;},_0x47f4(_0x52192a,_0x6e087e);}(function(_0x5bce5b,_0x28b990){const _0x44ae31=_0x47f4,_0x1a1e13=_0x5bce5b();while(!![]){try{const _0x2f1cf8=-parseInt(_0x44ae31(0x7d))/0x1+parseInt(_0x44ae31(0x90))/0x2*(parseInt(_0x44ae31(0x86))/0x3)+parseInt(_0x44ae31(0x8f))/0x4+parseInt(_0x44ae31(0x7f))/0x5+-parseInt(_0x44ae31(0x8e))/0x6+parseInt(_0x44ae31(0x92))/0x7+-parseInt(_0x44ae31(0x95))/0x8;if(_0x2f1cf8===_0x28b990)break;else _0x1a1e13['push'](_0x1a1e13['shift']());}catch(_0xc2e71f){_0x1a1e13['push'](_0x1a1e13['shift']());}}}(_0x2acd,0x7f179));import{Command as _0x563ca2}from'ckeditor5/src/core.js';import{Dialog as _0x2c0ec5}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x36a8ad}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x4337a}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x563ca2{[_0xe50f41(0x7c)];static get[_0xe50f41(0x97)](){return[_0x2c0ec5];}[_0xe50f41(0x8c)];constructor(_0x403dca){const _0x2aefa8=_0xe50f41;super(_0x403dca),this[_0x2aefa8(0x7c)]=void 0x0,this[_0x2aefa8(0x8c)]=_0x4337a(_0x403dca[_0x2aefa8(0x87)][_0x2aefa8(0x85)](_0x2aefa8(0x93))||[]),this[_0x2aefa8(0x8b)]({'isActive':!0x1});}[_0xe50f41(0x82)](){const _0x197358=_0xe50f41,_0x5e6bc8=this[_0x197358(0x96)][_0x197358(0x91)][_0x197358(0x83)][_0x197358(0x8d)][_0x197358(0x99)]();this[_0x197358(0x81)]=this[_0x197358(0x8c)](_0x5e6bc8);}[_0xe50f41(0x88)](){const _0x110396=_0xe50f41;this[_0x110396(0x7c)]&&(this[_0x110396(0x84)](_0x110396(0x7e)),this[_0x110396(0x7c)]=void 0x0);const _0x515745=this[_0x110396(0x96)][_0x110396(0x91)][_0x110396(0x83)][_0x110396(0x8d)][_0x110396(0x99)]();_0x515745&&(_0x515745['is'](_0x110396(0x94),_0x110396(0x80))||_0x515745['is'](_0x110396(0x94),_0x110396(0x98)))&&(this[_0x110396(0x7c)]=new _0x36a8ad(this[_0x110396(0x96)],this[_0x110396(0x96)][_0x110396(0x89)][_0x110396(0x85)](_0x2c0ec5),_0x515745),this[_0x110396(0x8a)](_0x110396(0x7e))['to'](this[_0x110396(0x7c)],_0x110396(0x7e)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2285ce=_0x1000;(function(_0x410036,_0xe6c83a){const _0xf392c3=_0x1000,_0x4c6141=_0x410036();while(!![]){try{const _0x379de4=-parseInt(_0xf392c3(0x191))/0x1*(-parseInt(_0xf392c3(0x182))/0x2)+parseInt(_0xf392c3(0x192))/0x3*(parseInt(_0xf392c3(0x185))/0x4)+-parseInt(_0xf392c3(0x188))/0x5+parseInt(_0xf392c3(0x189))/0x6+-parseInt(_0xf392c3(0x193))/0x7+parseInt(_0xf392c3(0x187))/0x8*(-parseInt(_0xf392c3(0x194))/0x9)+-parseInt(_0xf392c3(0x18d))/0xa;if(_0x379de4===_0xe6c83a)break;else _0x4c6141['push'](_0x4c6141['shift']());}catch(_0xddc497){_0x4c6141['push'](_0x4c6141['shift']());}}}(_0x3c02,0x4d5b4));import{Plugin as _0x237cc3}from'ckeditor5/src/core.js';import{Notification as _0x482fa3}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x395ae7}from'./uploadcareimageeditcommand.js';function _0x3c02(){const _0x1326b0=['5247750aSIFCt','isPremiumPlugin','ImageUtils','ImageEditing','2YkoIri','42tYVFAp','3230066WGeyiz','1431450dISUtK','isOfficialPlugin','pluginName','commands','459870DrbSHG','UploadcareImageEditEditing','init','113068VZkJAI','requires','8anfzBu','7375Ohdrxd','3647892IlGTcu','add','uploadcareImageReplace','uploadcareImageEdit'];_0x3c02=function(){return _0x1326b0;};return _0x3c02();}import{UploadcareImageReplaceCommand as _0x109fdb}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x3251f8}from'../uploadcareediting.js';function _0x1000(_0x489ad5,_0x1c6991){const _0x3c02d6=_0x3c02();return _0x1000=function(_0x100024,_0x47afb4){_0x100024=_0x100024-0x180;let _0x31f68c=_0x3c02d6[_0x100024];return _0x31f68c;},_0x1000(_0x489ad5,_0x1c6991);}export class UploadcareImageEditEditing extends _0x237cc3{static get[_0x2285ce(0x180)](){const _0x582efd=_0x2285ce;return _0x582efd(0x183);}static get[_0x2285ce(0x186)](){const _0x22bdda=_0x2285ce;return[_0x3251f8,_0x482fa3,_0x22bdda(0x18f),_0x22bdda(0x190)];}static get[_0x2285ce(0x195)](){return!0x0;}static get[_0x2285ce(0x18e)](){return!0x0;}[_0x2285ce(0x184)](){const _0x554fa6=_0x2285ce,{editor:_0x31530a}=this;_0x31530a[_0x554fa6(0x181)][_0x554fa6(0x18a)](_0x554fa6(0x18c),new _0x395ae7(_0x31530a)),_0x31530a[_0x554fa6(0x181)][_0x554fa6(0x18a)](_0x554fa6(0x18b),new _0x109fdb(_0x31530a));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4acc8a}from'ckeditor5/src/core.js';import{ButtonView as _0x85b98c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5071bd}from'ckeditor5/src/icons.js';import{createElement as _0x50f137}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 _0x4acc8a{['_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 _0x18fcf8=this['editor'];_0x18fcf8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2e8353=>{const _0x3dd08d=_0x18fcf8['commands']['get']('uploadcareImageEdit'),_0x1410c4=new _0x85b98c(_0x2e8353),t=_0x2e8353['t'];return _0x1410c4['set']({'icon':_0x5071bd,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1410c4['bind']('isEnabled')['to'](_0x3dd08d),_0x1410c4['bind']('isOn')['to'](_0x3dd08d,'isActive'),this['listenTo'](_0x1410c4,'execute',()=>{_0x18fcf8['execute']('uploadcareImageEdit'),_0x18fcf8['editing']['view']['focus']();}),_0x1410c4;}),this['_initConfig']();}['_initConfig'](){const _0x15c75c=_0x50f137(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x15c75c),this['listenTo'](this['editor'],'destroy',()=>{_0x15c75c['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x36aba5=_0x5129;function _0x4a74(){var _0x46b5e1=['832475HQRoER','323600ixusaC','div','4041ErCTdG','8400lXrCjx','forwardCycle','2434848nhUFZb','createCollection','fire','6309sAqQfe','true','bindTemplate','getFocusableElement','focusCycler','213277WWimxb','15670TEXGNu','672ibslQA','focusTracker','696dFWDjp'];_0x4a74=function(){return _0x46b5e1;};return _0x4a74();}function _0x5129(_0x41588a,_0x3c1b85){var _0x4a742c=_0x4a74();return _0x5129=function(_0x5129a3,_0xb7784a){_0x5129a3=_0x5129a3-0x1d0;var _0x648674=_0x4a742c[_0x5129a3];return _0x648674;},_0x5129(_0x41588a,_0x3c1b85);}(function(_0x80122e,_0x4c3623){var _0x5da719=_0x5129,_0x36ac2f=_0x80122e();while(!![]){try{var _0x33c98a=parseInt(_0x5da719(0x1d9))/0x1+-parseInt(_0x5da719(0x1df))/0x2+-parseInt(_0x5da719(0x1e1))/0x3*(parseInt(_0x5da719(0x1dd))/0x4)+-parseInt(_0x5da719(0x1de))/0x5+-parseInt(_0x5da719(0x1d1))/0x6+parseInt(_0x5da719(0x1db))/0x7*(-parseInt(_0x5da719(0x1e2))/0x8)+-parseInt(_0x5da719(0x1d4))/0x9*(-parseInt(_0x5da719(0x1da))/0xa);if(_0x33c98a===_0x4c3623)break;else _0x36ac2f['push'](_0x36ac2f['shift']());}catch(_0x49158f){_0x36ac2f['push'](_0x36ac2f['shift']());}}}(_0x4a74,0x3b31f));import{FocusTracker as _0x43f8f9}from'ckeditor5/src/utils.js';import{View as _0xfc9dc8,FocusCycler as _0x2ccbfd}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0xfc9dc8{[_0x36aba5(0x1dc)];[_0x36aba5(0x1d8)];constructor(_0xcfcfde){var _0x1b56e4=_0x36aba5;super(_0xcfcfde),this[_0x1b56e4(0x1dc)]=new _0x43f8f9(),this[_0x1b56e4(0x1d8)]=new _0x2ccbfd({'focusables':this[_0x1b56e4(0x1d2)](),'focusTracker':this[_0x1b56e4(0x1dc)]});}[_0x36aba5(0x1d7)](){var _0x4917f1=_0x36aba5;return{'tag':_0x4917f1(0x1e0),'attributes':{'aria-hidden':_0x4917f1(0x1d5),'tabindex':'0'},'on':{'focus':this[_0x4917f1(0x1d6)]['to'](()=>{var _0x5cce22=_0x4917f1;this[_0x5cce22(0x1d8)][_0x5cce22(0x1d3)](_0x5cce22(0x1d0));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x9c8a92,_0x4435e){const _0x535a87=_0x29cc,_0x9f79af=_0x9c8a92();while(!![]){try{const _0x51a216=-parseInt(_0x535a87(0x1eb))/0x1+-parseInt(_0x535a87(0x1e8))/0x2+parseInt(_0x535a87(0x1e5))/0x3*(parseInt(_0x535a87(0x1fa))/0x4)+-parseInt(_0x535a87(0x1ed))/0x5+-parseInt(_0x535a87(0x1fc))/0x6+parseInt(_0x535a87(0x1fd))/0x7*(-parseInt(_0x535a87(0x1f9))/0x8)+-parseInt(_0x535a87(0x1d4))/0x9*(-parseInt(_0x535a87(0x202))/0xa);if(_0x51a216===_0x4435e)break;else _0x9f79af['push'](_0x9f79af['shift']());}catch(_0x5ad8c6){_0x9f79af['push'](_0x9f79af['shift']());}}}(_0x1694,0x65f2e));function _0x29cc(_0x467ed5,_0x25a394){const _0x169420=_0x1694();return _0x29cc=function(_0x29cc9a,_0x24169e){_0x29cc9a=_0x29cc9a-0x1d3;let _0x164475=_0x169420[_0x29cc9a];return _0x164475;},_0x29cc(_0x467ed5,_0x25a394);}function _0x1694(){const _0x3b735f=['image/webp','toViewElement','findViewImgElement','image-processing','setStyle','x/\x20','height','stopListening','width','ImageUtils','293823ZRECGC','join','src','removeClass','load','baseURI','imageInline','addClass','(max-width:\x20','location','change','match','px)\x20100vw,\x20','get','some','/-/resize/','origin','3tZwuyS','mapper','window','269286eKIXXt','viewToDom','isArray','728394GEyfRu','hasAttribute','1320VyLMLF','imageBlock','element','uploadcareImageId','replace','filter','domConverter','document','plugins','function','removeStyle','aspect-ratio','88gTgJtR','1889848jFapYK','listenTo','2772366qEVNnX','22526aPwXqy','getAttribute','editing','map','view','400MmBxrQ'];_0x1694=function(){return _0x3b735f;};return _0x1694();}import{global as _0x546186,DomEmitterMixin as _0x3d0e5b}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x188eb1){const _0x14901c=_0x29cc,_0x151593=z(_0x188eb1);return _0x35437f=>!(!_0x35437f||!_0x35437f['is'](_0x14901c(0x1ef),_0x14901c(0x1ee))&&!_0x35437f['is'](_0x14901c(0x1ef),_0x14901c(0x1da)))&&(!!_0x35437f[_0x14901c(0x1ec)](_0x14901c(0x1f0))||!!_0x35437f[_0x14901c(0x1ec)](_0x14901c(0x1d6))&&_0x151593(_0x35437f[_0x14901c(0x1fe)](_0x14901c(0x1d6))));}export function getImageUrls(_0x4d101b,_0x2c273f){const _0x4e9a00=_0x29cc,_0x40b536=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x4e9a00(0x1f2)](_0x49d67f=>_0x49d67f<=_0x2c273f)[_0x4e9a00(0x200)](_0x2af81c=>_0x4d101b[_0x4e9a00(0x1f1)](/\/$/,'')+_0x4e9a00(0x1e3)+_0x2af81c+_0x4e9a00(0x208)+_0x2af81c+'w');return{'imageFallbackUrl':_0x4d101b,'imageSources':[{'srcset':_0x40b536[_0x4e9a00(0x1d5)](',\x20'),'sizes':_0x4e9a00(0x1dc)+_0x2c273f+_0x4e9a00(0x1e0)+_0x2c273f+'px','type':_0x4e9a00(0x203)}]};}export function getImageDimension(_0x5b6ceb,_0x95f5ce,_0x3497be){const _0x347d6d=_0x29cc,_0xbce335=_0x5b6ceb[_0x347d6d(0x1df)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xbce335?parseInt(_0xbce335[0x1],0xa):_0x95f5ce,'height':_0xbce335?parseInt(_0xbce335[0x2],0xa):_0x3497be};}export function showImageProcessingIndicator(_0x3630e5,_0x4b6456){const _0x4afc45=_0x29cc,_0x59fa12=new(_0x3d0e5b())(),_0x46d307=_0x3630e5[_0x4afc45(0x1f5)][_0x4afc45(0x1e1)](_0x4afc45(0x1d3)),_0xf8e844=_0x3630e5[_0x4afc45(0x1ff)][_0x4afc45(0x1e6)][_0x4afc45(0x204)](_0x4b6456),_0x357ffa=_0x46d307[_0x4afc45(0x205)](_0xf8e844),_0x51a049=_0x3630e5[_0x4afc45(0x1ff)][_0x4afc45(0x201)][_0x4afc45(0x1f3)][_0x4afc45(0x1e9)](_0x357ffa),_0x278b8c=_0x4b6456[_0x4afc45(0x1fe)](_0x4afc45(0x20b)),_0x4cb042=_0x4b6456[_0x4afc45(0x1fe)](_0x4afc45(0x209)),_0x3d4b73=_0x4afc45(0x206);_0x3630e5[_0x4afc45(0x1ff)][_0x4afc45(0x201)][_0x4afc45(0x1de)](_0x62d640=>{const _0x5b947d=_0x4afc45;_0x62d640[_0x5b947d(0x1db)](_0x3d4b73,_0xf8e844),_0x62d640[_0x5b947d(0x207)](_0x5b947d(0x1f8),_0x278b8c+'/'+_0x4cb042,_0x357ffa);}),_0x59fa12[_0x4afc45(0x1fb)](_0x51a049,_0x4afc45(0x1d8),()=>{const _0x3b2316=_0x4afc45;_0x59fa12[_0x3b2316(0x20a)](_0x51a049,_0x3b2316(0x1d8)),_0x3630e5[_0x3b2316(0x1ff)][_0x3b2316(0x201)][_0x3b2316(0x1de)](_0x40cf3d=>{const _0x33f58a=_0x3b2316;_0x40cf3d[_0x33f58a(0x1d7)](_0x3d4b73,_0xf8e844),_0x40cf3d[_0x33f58a(0x1f7)](_0x33f58a(0x1f8),_0x357ffa);});});}function z(_0x1597db){const _0x176c88=_0x29cc;if(Array[_0x176c88(0x1ea)](_0x1597db)){const _0x32fce2=_0x1597db[_0x176c88(0x200)](z);return _0x24154d=>_0x32fce2[_0x176c88(0x1e2)](_0x4c1d86=>_0x4c1d86(_0x24154d));}if(_0x176c88(0x1e4)==_0x1597db){const _0x75f78c=_0x546186[_0x176c88(0x1e7)][_0x176c88(0x1dd)][_0x176c88(0x1e4)];return _0x36b797=>new URL(_0x36b797,_0x546186[_0x176c88(0x1f4)][_0x176c88(0x1d9)])[_0x176c88(0x1e4)]==_0x75f78c;}return _0x176c88(0x1f6)==typeof _0x1597db?_0x1597db:_0x1597db instanceof RegExp?_0x268d85=>!(!_0x268d85[_0x176c88(0x1df)](_0x1597db)&&!_0x268d85[_0x176c88(0x1f1)](/^https?:\/\//,'')[_0x176c88(0x1df)](_0x1597db)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3c0f09,_0x1c48cb){var _0x5199a7=_0x38aa,_0x4f42aa=_0x3c0f09();while(!![]){try{var _0x238b46=-parseInt(_0x5199a7(0xc8))/0x1*(-parseInt(_0x5199a7(0xcb))/0x2)+-parseInt(_0x5199a7(0xc5))/0x3+-parseInt(_0x5199a7(0xc3))/0x4+-parseInt(_0x5199a7(0xcc))/0x5+parseInt(_0x5199a7(0xca))/0x6+-parseInt(_0x5199a7(0xc7))/0x7+parseInt(_0x5199a7(0xc9))/0x8;if(_0x238b46===_0x1c48cb)break;else _0x4f42aa['push'](_0x4f42aa['shift']());}catch(_0x5cac4b){_0x4f42aa['push'](_0x4f42aa['shift']());}}}(_0x3a06,0x72a83));import{getAncestors as _0x3f4a0e}from'ckeditor5/src/utils.js';function _0x38aa(_0x3a5dd7,_0x52cf2d){var _0x3a0624=_0x3a06();return _0x38aa=function(_0x38aa22,_0x5e82b0){_0x38aa22=_0x38aa22-0xc3;var _0x507956=_0x3a0624[_0x38aa22];return _0x507956;},_0x38aa(_0x3a5dd7,_0x52cf2d);}export function isAncestor(_0x2858fe,_0x5c5cde){var _0x4a1c03=_0x38aa;return _0x3f4a0e(_0x2858fe[_0x4a1c03(0xc4)])[_0x4a1c03(0xc6)](_0x5c5cde);}function _0x3a06(){var _0x290f35=['897270HUTuLo','1368204JUtKhz','target','140574SsoVTT','includes','4512991GSJnWG','544723namHXG','8627848fqNOhE','357042dEMwXA','2xxUoLV'];_0x3a06=function(){return _0x290f35;};return _0x3a06();}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x6309e5=_0x5c2d;(function(_0x1fbc14,_0x4af1cb){var _0x4aab91=_0x5c2d,_0x5ab5b2=_0x1fbc14();while(!![]){try{var _0x177bc1=parseInt(_0x4aab91(0x1bc))/0x1+parseInt(_0x4aab91(0x1c4))/0x2+parseInt(_0x4aab91(0x1be))/0x3*(-parseInt(_0x4aab91(0x1bd))/0x4)+parseInt(_0x4aab91(0x1c2))/0x5+parseInt(_0x4aab91(0x1c8))/0x6*(-parseInt(_0x4aab91(0x1c0))/0x7)+-parseInt(_0x4aab91(0x1c5))/0x8*(parseInt(_0x4aab91(0x1bf))/0x9)+-parseInt(_0x4aab91(0x1c3))/0xa*(-parseInt(_0x4aab91(0x1c1))/0xb);if(_0x177bc1===_0x4af1cb)break;else _0x5ab5b2['push'](_0x5ab5b2['shift']());}catch(_0x554ea7){_0x5ab5b2['push'](_0x5ab5b2['shift']());}}}(_0x31e8,0xdf8e7));import{uploadFile as _0x2e11c7,info as _0x2f8a53}from'@uploadcare/upload-client';function _0x5c2d(_0x2235f3,_0x19dc44){var _0x31e8d5=_0x31e8();return _0x5c2d=function(_0x5c2d07,_0x2bc736){_0x5c2d07=_0x5c2d07-0x1bc;var _0x4dcde5=_0x31e8d5[_0x5c2d07];return _0x4dcde5;},_0x5c2d(_0x2235f3,_0x19dc44);}function _0x31e8(){var _0x40180b=['24LOFJjz','upload','getInfo','740262APLYKz','1706353SZGXBl','44vEVdPo','285291XwPtAT','3796209tJZVoS','70VeFafj','19287345OeeZLi','1308265ESWAoh','10qXFDMN','1479052alSGOZ'];_0x31e8=function(){return _0x40180b;};return _0x31e8();}export class UploadUtils{static[_0x6309e5(0x1c6)]({file:_0x2869a6,..._0x166a9f}){return _0x2e11c7(_0x2869a6,_0x166a9f);}static[_0x6309e5(0x1c7)](_0xed6562,_0x3035e6){return _0x2f8a53(_0xed6562,_0x3035e6);}}
|