@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251019.0 → 0.0.0-nightly-20251020.0
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 _0x9a178b,View as _0x7ffc7b}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x7ffc7b{constructor(_0x64ad0b){super(_0x64ad0b);const t=_0x64ad0b['t'],_0x1b59d7=this['bindTemplate'],_0x20ef73=new _0x9a178b();_0x20ef73['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':[_0x20ef73,{'text':_0x1b59d7['to']('imageUploadProgress',_0x1b6d73=>t('Loading\x20image...')+'\x20('+(_0x1b6d73||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
|
+
const _0x1d0d07=_0x2db0;(function(_0x2e951d,_0x4a1401){const _0x1391af=_0x2db0,_0x127d23=_0x2e951d();while(!![]){try{const _0x4077bb=parseInt(_0x1391af(0x219))/0x1+-parseInt(_0x1391af(0x212))/0x2*(-parseInt(_0x1391af(0x201))/0x3)+-parseInt(_0x1391af(0x1fd))/0x4*(-parseInt(_0x1391af(0x1fe))/0x5)+-parseInt(_0x1391af(0x215))/0x6*(-parseInt(_0x1391af(0x1ef))/0x7)+parseInt(_0x1391af(0x213))/0x8+-parseInt(_0x1391af(0x20f))/0x9*(parseInt(_0x1391af(0x20b))/0xa)+-parseInt(_0x1391af(0x206))/0xb*(parseInt(_0x1391af(0x1fa))/0xc);if(_0x4077bb===_0x4a1401)break;else _0x127d23['push'](_0x127d23['shift']());}catch(_0x355269){_0x127d23['push'](_0x127d23['shift']());}}}(_0x31b9,0x8a05d));import{View as _0x3a98f8}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3fe522}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0xd0df5b}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x38245d}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2d1c10}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x2d1c10{[_0x1d0d07(0x1f0)];[_0x1d0d07(0x20c)];[_0x1d0d07(0x20a)];[_0x1d0d07(0x20d)];[_0x1d0d07(0x221)];constructor(_0xc4fb15,_0x148687,_0x616cf0){const _0x699218=_0x1d0d07;super(_0xc4fb15),this[_0x699218(0x1f0)]=this[_0x699218(0x1ec)](),this[_0x699218(0x20c)]=new _0x3fe522(_0xc4fb15),this[_0x699218(0x20a)]=new _0xd0df5b(_0xc4fb15),this[_0x699218(0x20d)]=new _0x38245d(_0xc4fb15,_0x616cf0),this[_0x699218(0x221)]=new _0x3a98f8(_0xc4fb15),this[_0x699218(0x221)][_0x699218(0x1f4)](this[_0x699218(0x1f7)]()),this[_0x699218(0x21e)](_0x699218(0x218),_0x148687),this[_0x699218(0x1f4)]({'tag':_0x699218(0x1f1),'attributes':{'class':['ck',_0x699218(0x220),_0x699218(0x211)],'tabindex':'-1'},'children':this[_0x699218(0x1f0)]}),this[_0x699218(0x208)](),this[_0x699218(0x20e)](_0x699218(0x214),()=>{const _0x15c63c=_0x699218;this[_0x15c63c(0x21f)](this[_0x15c63c(0x216)],_0x11bf6d=>{const _0x12d252=_0x15c63c;this[_0x12d252(0x1f6)](_0x11bf6d);});}),this['on'](_0x699218(0x1fc),()=>{const _0x35227d=_0x699218;this[_0x35227d(0x208)]();}),this[_0x699218(0x205)]();}[_0x1d0d07(0x202)](){const _0x5c3e83=_0x1d0d07;this[_0x5c3e83(0x216)][_0x5c3e83(0x202)]();}[_0x1d0d07(0x208)](){const _0x5ac885=_0x1d0d07;switch(this[_0x5ac885(0x1f0)][_0x5ac885(0x21d)](),this[_0x5ac885(0x218)]){case _0x5ac885(0x1f3):this[_0x5ac885(0x1f0)][_0x5ac885(0x21c)](this[_0x5ac885(0x20c)]);break;case _0x5ac885(0x21a):this[_0x5ac885(0x1f0)][_0x5ac885(0x21c)](this[_0x5ac885(0x20a)]);break;case _0x5ac885(0x1fb):this[_0x5ac885(0x1f0)][_0x5ac885(0x1eb)]([this[_0x5ac885(0x20d)],this[_0x5ac885(0x221)]]);}}[_0x1d0d07(0x21f)](_0x85144,_0x29864e){const _0xe6c564=_0x1d0d07,_0x4efa02=_0xe6c564(0x1ee),_0x205a20=_0x85144[_0xe6c564(0x1ed)](_0x4efa02);if(_0x205a20)return _0x29864e(_0x205a20);const _0x11ff5c=new MutationObserver(_0x342776=>{const _0x21ef21=_0xe6c564,_0x3fddd2=_0x342776[_0x21ef21(0x204)](_0x576028=>_0x576028[_0x21ef21(0x1f8)]===_0x85144&&_0x576028[_0x21ef21(0x1f5)][_0x21ef21(0x217)]>0x0&&_0x576028[_0x21ef21(0x1f5)][0x0][_0x21ef21(0x210)][_0x21ef21(0x222)]()===_0x4efa02);_0x3fddd2[_0x21ef21(0x217)]&&(_0x11ff5c[_0x21ef21(0x223)](),_0x29864e(_0x3fddd2[0x0][_0x21ef21(0x1f5)][0x0]));});_0x11ff5c[_0xe6c564(0x203)](_0x85144,{'childList':!0x0,'subtree':!0x0});}[_0x1d0d07(0x1f6)](_0x315077){const _0x413547=_0x1d0d07;_0x315077[_0x413547(0x21b)](_0x413547(0x207),_0x2f83aa=>{const _0x1f3269=_0x413547;this[_0x1f3269(0x1f9)](_0x1f3269(0x207),{'imageSrc':_0x2f83aa[_0x1f3269(0x209)][_0x1f3269(0x1f2)]});}),_0x315077[_0x413547(0x21b)](_0x413547(0x1ff),()=>{const _0x363804=_0x413547;this[_0x363804(0x1f9)](_0x363804(0x1ff));});}[_0x1d0d07(0x205)](){const _0x1a0e3a=_0x1d0d07;this[_0x1a0e3a(0x20a)]['on'](_0x1a0e3a(0x200),()=>{const _0xb2b844=_0x1a0e3a;this[_0xb2b844(0x1f9)](_0xb2b844(0x200));});}}function _0x2db0(_0x40f885,_0x131737){const _0x31b980=_0x31b9();return _0x2db0=function(_0x2db07c,_0x498a03){_0x2db07c=_0x2db07c-0x1eb;let _0x4eeab0=_0x31b980[_0x2db07c];return _0x4eeab0;},_0x2db0(_0x40f885,_0x131737);}function _0x31b9(){const _0xfb0d39=['fire','8628msWeSP','ready','change:status','2086436UeoavI','10LQwdfQ','cancel','retry','2157tMsZXX','focus','observe','filter','_addErrorViewListeners','26389NxoMcn','apply','_setView','detail','_errorView','174120gsUcCZ','_loadingView','_editingView','once','225qCqLVM','nodeName','ck-uploadcare-form','1316lHRIGh','2598056uxAZXN','render','78kRaIvX','element','length','status','478728gpnCke','error','addEventListener','add','clear','set','_waitForImageEditorComponent','ck-reset_all-excluded','_focusableView','toLowerCase','disconnect','addMany','createCollection','querySelector','uc-cloud-image-editor','218463bpjNzO','_items','div','cdnUrl','uploading','setTemplate','addedNodes','_addUploadcareImageEditorListeners','getFocusableElement','target'];_0x31b9=function(){return _0xfb0d39;};return _0x31b9();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd0cc26=_0x5976;(function(_0x59d1f2,_0x2fc0c9){const _0x12f839=_0x5976,_0x170b81=_0x59d1f2();while(!![]){try{const _0x52f2e9=parseInt(_0x12f839(0x14e))/0x1*(parseInt(_0x12f839(0x154))/0x2)+parseInt(_0x12f839(0x159))/0x3*(parseInt(_0x12f839(0x156))/0x4)+parseInt(_0x12f839(0x151))/0x5+parseInt(_0x12f839(0x155))/0x6*(parseInt(_0x12f839(0x158))/0x7)+parseInt(_0x12f839(0x15d))/0x8+parseInt(_0x12f839(0x140))/0x9+-parseInt(_0x12f839(0x15f))/0xa*(parseInt(_0x12f839(0x15e))/0xb);if(_0x52f2e9===_0x2fc0c9)break;else _0x170b81['push'](_0x170b81['shift']());}catch(_0x1e2269){_0x170b81['push'](_0x170b81['shift']());}}}(_0x1b36,0x659f9));import{Command as _0x2461be}from'ckeditor5/src/core.js';function _0x1b36(){const _0x103269=['_isEditable','imageInline','selection','set','plugins','bind','imageEditController','uploadcare.allowExternalImagesEditing','isActive','execute','unbind','76OElLuD','getSelectedElement','get','901675mLSOqb','document','requires','14992sVimxH','3228TswQnY','932IbeOsD','imageBlock','3416OkYedj','1629RdEiCD','editor','model','element','2625576QzYESU','33kmqTJh','4125410LMEXsF','isEnabled','1679229OKEbCr','refresh','config'];_0x1b36=function(){return _0x103269;};return _0x1b36();}import{Dialog as _0x2af0c4}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x3cfe0d}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x1e3e53}from'../utils/editingutils.js';function _0x5976(_0x291c66,_0x47eb3f){const _0x1b3665=_0x1b36();return _0x5976=function(_0x597664,_0x401c4c){_0x597664=_0x597664-0x140;let _0x5eb34b=_0x1b3665[_0x597664];return _0x5eb34b;},_0x5976(_0x291c66,_0x47eb3f);}export class UploadcareImageEditCommand extends _0x2461be{[_0xd0cc26(0x149)];static get[_0xd0cc26(0x153)](){return[_0x2af0c4];}[_0xd0cc26(0x143)];constructor(_0x362374){const _0x1dbf97=_0xd0cc26;super(_0x362374),this[_0x1dbf97(0x149)]=void 0x0,this[_0x1dbf97(0x143)]=_0x1e3e53(_0x362374[_0x1dbf97(0x142)][_0x1dbf97(0x150)](_0x1dbf97(0x14a))||[]),this[_0x1dbf97(0x146)]({'isActive':!0x1});}[_0xd0cc26(0x141)](){const _0xcd1a9b=_0xd0cc26,_0x572139=this[_0xcd1a9b(0x15a)][_0xcd1a9b(0x15b)][_0xcd1a9b(0x152)][_0xcd1a9b(0x145)][_0xcd1a9b(0x14f)]();this[_0xcd1a9b(0x160)]=this[_0xcd1a9b(0x143)](_0x572139);}[_0xd0cc26(0x14c)](){const _0x314cb8=_0xd0cc26;this[_0x314cb8(0x149)]&&(this[_0x314cb8(0x14d)](_0x314cb8(0x14b)),this[_0x314cb8(0x149)]=void 0x0);const _0x16b6d6=this[_0x314cb8(0x15a)][_0x314cb8(0x15b)][_0x314cb8(0x152)][_0x314cb8(0x145)][_0x314cb8(0x14f)]();_0x16b6d6&&(_0x16b6d6['is'](_0x314cb8(0x15c),_0x314cb8(0x157))||_0x16b6d6['is'](_0x314cb8(0x15c),_0x314cb8(0x144)))&&(this[_0x314cb8(0x149)]=new _0x3cfe0d(this[_0x314cb8(0x15a)],this[_0x314cb8(0x15a)][_0x314cb8(0x147)][_0x314cb8(0x150)](_0x2af0c4),_0x16b6d6),this[_0x314cb8(0x148)](_0x314cb8(0x14b))['to'](this[_0x314cb8(0x149)],_0x314cb8(0x14b)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9501da=_0x562e;(function(_0x1c9e74,_0x4fbc15){const _0x4e4ec1=_0x562e,_0x356162=_0x1c9e74();while(!![]){try{const _0x493418=-parseInt(_0x4e4ec1(0xc9))/0x1+parseInt(_0x4e4ec1(0xc7))/0x2+parseInt(_0x4e4ec1(0xcc))/0x3*(-parseInt(_0x4e4ec1(0xdb))/0x4)+-parseInt(_0x4e4ec1(0xce))/0x5+-parseInt(_0x4e4ec1(0xd7))/0x6+parseInt(_0x4e4ec1(0xd4))/0x7*(parseInt(_0x4e4ec1(0xda))/0x8)+parseInt(_0x4e4ec1(0xca))/0x9;if(_0x493418===_0x4fbc15)break;else _0x356162['push'](_0x356162['shift']());}catch(_0x5666ff){_0x356162['push'](_0x356162['shift']());}}}(_0x1c7a,0xb7881));import{Plugin as _0x146b0c}from'ckeditor5/src/core.js';import{Notification as _0x4692f0}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x21d97a}from'./uploadcareimageeditcommand.js';function _0x1c7a(){const _0x516b5d=['1266551rhiQDA','22799619QSOtix','isPremiumPlugin','9LAgDXD','uploadcareImageReplace','1717280XQYZZo','uploadcareImageEdit','isOfficialPlugin','pluginName','init','commands','1687uHzFaE','ImageEditing','ImageUtils','7420752MilOzY','UploadcareImageEditEditing','requires','33920XHfOgg','1771652ikBdmt','2744304UXRtiG','add'];_0x1c7a=function(){return _0x516b5d;};return _0x1c7a();}import{UploadcareImageReplaceCommand as _0x4e64fd}from'./uploadcareimagereplacecommand.js';function _0x562e(_0x357697,_0x2eb3dd){const _0x1c7a56=_0x1c7a();return _0x562e=function(_0x562eb2,_0x3a1086){_0x562eb2=_0x562eb2-0xc7;let _0x232e4f=_0x1c7a56[_0x562eb2];return _0x232e4f;},_0x562e(_0x357697,_0x2eb3dd);}import{UploadcareEditing as _0x404a17}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x146b0c{static get[_0x9501da(0xd1)](){const _0x764558=_0x9501da;return _0x764558(0xd8);}static get[_0x9501da(0xd9)](){const _0x1f57e7=_0x9501da;return[_0x404a17,_0x4692f0,_0x1f57e7(0xd6),_0x1f57e7(0xd5)];}static get[_0x9501da(0xd0)](){return!0x0;}static get[_0x9501da(0xcb)](){return!0x0;}[_0x9501da(0xd2)](){const _0x1147ff=_0x9501da,{editor:_0x2c964a}=this;_0x2c964a[_0x1147ff(0xd3)][_0x1147ff(0xc8)](_0x1147ff(0xcf),new _0x21d97a(_0x2c964a)),_0x2c964a[_0x1147ff(0xd3)][_0x1147ff(0xc8)](_0x1147ff(0xcd),new _0x4e64fd(_0x2c964a));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5f6913}from'ckeditor5/src/core.js';import{ButtonView as _0x51385a}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2ce353}from'ckeditor5/src/icons.js';import{createElement as _0x1c740a}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 _0x5f6913{['_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 _0x18e12a=this['editor'];_0x18e12a['ui']['componentFactory']['add']('uploadcareImageEdit',_0x54d281=>{const _0x47a072=_0x18e12a['commands']['get']('uploadcareImageEdit'),_0x2ab13f=new _0x51385a(_0x54d281),t=_0x54d281['t'];return _0x2ab13f['set']({'icon':_0x2ce353,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2ab13f['bind']('isEnabled')['to'](_0x47a072),_0x2ab13f['bind']('isOn')['to'](_0x47a072,'isActive'),this['listenTo'](_0x2ab13f,'execute',()=>{_0x18e12a['execute']('uploadcareImageEdit'),_0x18e12a['editing']['view']['focus']();}),_0x2ab13f;}),this['_initConfig']();}['_initConfig'](){const _0x46c6ca=_0x1c740a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x46c6ca),this['listenTo'](this['editor'],'destroy',()=>{_0x46c6ca['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x2112(){var _0x110a04=['21042tATpCL','1FRgoMA','forwardCycle','focusTracker','1048324UPcHZi','46341kCScEG','bindTemplate','true','createCollection','48426jZUmfl','25UQvhxo','fire','24cmlbxF','getFocusableElement','347244sBXiNy','9950127fiQhRe','320OjpkqW','97756hCjUBM','focusCycler','div'];_0x2112=function(){return _0x110a04;};return _0x2112();}function _0x5de0(_0x155838,_0x576463){var _0x21122d=_0x2112();return _0x5de0=function(_0x5de02f,_0x4dbc79){_0x5de02f=_0x5de02f-0xb6;var _0x32c376=_0x21122d[_0x5de02f];return _0x32c376;},_0x5de0(_0x155838,_0x576463);}var _0x3c07e8=_0x5de0;(function(_0x4a82ac,_0x457929){var _0x439f7e=_0x5de0,_0x96155=_0x4a82ac();while(!![]){try{var _0x22cfed=parseInt(_0x439f7e(0xbc))/0x1*(-parseInt(_0x439f7e(0xb8))/0x2)+parseInt(_0x439f7e(0xc4))/0x3+-parseInt(_0x439f7e(0xbf))/0x4+parseInt(_0x439f7e(0xc5))/0x5*(-parseInt(_0x439f7e(0xc9))/0x6)+-parseInt(_0x439f7e(0xbb))/0x7*(-parseInt(_0x439f7e(0xc7))/0x8)+-parseInt(_0x439f7e(0xc0))/0x9*(parseInt(_0x439f7e(0xb7))/0xa)+parseInt(_0x439f7e(0xb6))/0xb;if(_0x22cfed===_0x457929)break;else _0x96155['push'](_0x96155['shift']());}catch(_0x11df59){_0x96155['push'](_0x96155['shift']());}}}(_0x2112,0x2830c));import{FocusTracker as _0x32c5b5}from'ckeditor5/src/utils.js';import{View as _0x408271,FocusCycler as _0x57f2cb}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x408271{[_0x3c07e8(0xbe)];[_0x3c07e8(0xb9)];constructor(_0x2a967b){var _0x144b22=_0x3c07e8;super(_0x2a967b),this[_0x144b22(0xbe)]=new _0x32c5b5(),this[_0x144b22(0xb9)]=new _0x57f2cb({'focusables':this[_0x144b22(0xc3)](),'focusTracker':this[_0x144b22(0xbe)]});}[_0x3c07e8(0xc8)](){var _0xf5f77d=_0x3c07e8;return{'tag':_0xf5f77d(0xba),'attributes':{'aria-hidden':_0xf5f77d(0xc2),'tabindex':'0'},'on':{'focus':this[_0xf5f77d(0xc1)]['to'](()=>{var _0x33bc0c=_0xf5f77d;this[_0x33bc0c(0xb9)][_0x33bc0c(0xc6)](_0x33bc0c(0xbd));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4d9f16,_0x5203ed){const _0x327ef7=_0x21c2,_0x5904f9=_0x4d9f16();while(!![]){try{const _0x4c4914=-parseInt(_0x327ef7(0x209))/0x1+parseInt(_0x327ef7(0x1f7))/0x2+parseInt(_0x327ef7(0x1e8))/0x3+-parseInt(_0x327ef7(0x1fd))/0x4*(parseInt(_0x327ef7(0x1e4))/0x5)+-parseInt(_0x327ef7(0x1e2))/0x6*(parseInt(_0x327ef7(0x1f0))/0x7)+parseInt(_0x327ef7(0x1e9))/0x8+-parseInt(_0x327ef7(0x200))/0x9*(-parseInt(_0x327ef7(0x1f6))/0xa);if(_0x4c4914===_0x5203ed)break;else _0x5904f9['push'](_0x5904f9['shift']());}catch(_0x16ab45){_0x5904f9['push'](_0x5904f9['shift']());}}}(_0x2721,0x7259c));import{global as _0x406c38,DomEmitterMixin as _0x2a384d}from'ckeditor5/src/utils.js';function _0x2721(){const _0x34ed07=['/-/resize/','isArray','(max-width:\x20','66hSEyDN','change','395210PBnask','match','function','addClass','149424mXoDsv','7328992lXGtcE','height','window','plugins','filter','removeStyle','findViewImgElement','351463zCFkut','px)\x20100vw,\x20','location','imageInline','removeClass','view','61480vpnqQn','1044814ysetOW','ImageUtils','element','setStyle','viewToDom','domConverter','28GleWMB','src','join','1152jCaqGb','document','get','hasAttribute','map','x/\x20','uploadcareImageId','listenTo','some','701310MuwEjc','width','baseURI','imageBlock','image-processing','editing','load','toViewElement','stopListening','aspect-ratio','image/webp','replace','mapper','origin','getAttribute'];_0x2721=function(){return _0x34ed07;};return _0x2721();}export function createEditabilityChecker(_0x503062){const _0xa11dc7=_0x21c2,_0x2a7c17=z(_0x503062);return _0x3e15cc=>!(!_0x3e15cc||!_0x3e15cc['is'](_0xa11dc7(0x1f9),_0xa11dc7(0x1d3))&&!_0x3e15cc['is'](_0xa11dc7(0x1f9),_0xa11dc7(0x1f3)))&&(!!_0x3e15cc[_0xa11dc7(0x203)](_0xa11dc7(0x206))||!!_0x3e15cc[_0xa11dc7(0x203)](_0xa11dc7(0x1fe))&&_0x2a7c17(_0x3e15cc[_0xa11dc7(0x1de)](_0xa11dc7(0x1fe))));}function _0x21c2(_0x526fba,_0x165097){const _0x2721a5=_0x2721();return _0x21c2=function(_0x21c2a3,_0x6e740){_0x21c2a3=_0x21c2a3-0x1d1;let _0x41ed87=_0x2721a5[_0x21c2a3];return _0x41ed87;},_0x21c2(_0x526fba,_0x165097);}export function getImageUrls(_0x36a9b8,_0x1b9cc9){const _0x69ee20=_0x21c2,_0x27d913=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x69ee20(0x1ed)](_0x3647f1=>_0x3647f1<=_0x1b9cc9)[_0x69ee20(0x204)](_0x3c8255=>_0x36a9b8[_0x69ee20(0x1db)](/\/$/,'')+_0x69ee20(0x1df)+_0x3c8255+_0x69ee20(0x205)+_0x3c8255+'w');return{'imageFallbackUrl':_0x36a9b8,'imageSources':[{'srcset':_0x27d913[_0x69ee20(0x1ff)](',\x20'),'sizes':_0x69ee20(0x1e1)+_0x1b9cc9+_0x69ee20(0x1f1)+_0x1b9cc9+'px','type':_0x69ee20(0x1da)}]};}export function getImageDimension(_0x209703,_0x1991be,_0x315bfa){const _0x1ba243=_0x21c2,_0x10dbdb=_0x209703[_0x1ba243(0x1e5)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x10dbdb?parseInt(_0x10dbdb[0x1],0xa):_0x1991be,'height':_0x10dbdb?parseInt(_0x10dbdb[0x2],0xa):_0x315bfa};}export function showImageProcessingIndicator(_0x24afac,_0x246b03){const _0x596438=_0x21c2,_0x37e18f=new(_0x2a384d())(),_0x14308a=_0x24afac[_0x596438(0x1ec)][_0x596438(0x202)](_0x596438(0x1f8)),_0x550a9b=_0x24afac[_0x596438(0x1d5)][_0x596438(0x1dc)][_0x596438(0x1d7)](_0x246b03),_0x579157=_0x14308a[_0x596438(0x1ef)](_0x550a9b),_0x3f2f27=_0x24afac[_0x596438(0x1d5)][_0x596438(0x1f5)][_0x596438(0x1fc)][_0x596438(0x1fb)](_0x579157),_0x5e4776=_0x246b03[_0x596438(0x1de)](_0x596438(0x1d1)),_0x4652b5=_0x246b03[_0x596438(0x1de)](_0x596438(0x1ea)),_0x4abcb9=_0x596438(0x1d4);_0x24afac[_0x596438(0x1d5)][_0x596438(0x1f5)][_0x596438(0x1e3)](_0x3ec49e=>{const _0x3e063f=_0x596438;_0x3ec49e[_0x3e063f(0x1e7)](_0x4abcb9,_0x550a9b),_0x3ec49e[_0x3e063f(0x1fa)](_0x3e063f(0x1d9),_0x5e4776+'/'+_0x4652b5,_0x579157);}),_0x37e18f[_0x596438(0x207)](_0x3f2f27,_0x596438(0x1d6),()=>{const _0x519b3f=_0x596438;_0x37e18f[_0x519b3f(0x1d8)](_0x3f2f27,_0x519b3f(0x1d6)),_0x24afac[_0x519b3f(0x1d5)][_0x519b3f(0x1f5)][_0x519b3f(0x1e3)](_0x27e438=>{const _0x4b36d4=_0x519b3f;_0x27e438[_0x4b36d4(0x1f4)](_0x4abcb9,_0x550a9b),_0x27e438[_0x4b36d4(0x1ee)](_0x4b36d4(0x1d9),_0x579157);});});}function z(_0x5d7558){const _0xcaf683=_0x21c2;if(Array[_0xcaf683(0x1e0)](_0x5d7558)){const _0x49af95=_0x5d7558[_0xcaf683(0x204)](z);return _0x28eaff=>_0x49af95[_0xcaf683(0x208)](_0x985950=>_0x985950(_0x28eaff));}if(_0xcaf683(0x1dd)==_0x5d7558){const _0x2c8b0c=_0x406c38[_0xcaf683(0x1eb)][_0xcaf683(0x1f2)][_0xcaf683(0x1dd)];return _0x1f7d92=>new URL(_0x1f7d92,_0x406c38[_0xcaf683(0x201)][_0xcaf683(0x1d2)])[_0xcaf683(0x1dd)]==_0x2c8b0c;}return _0xcaf683(0x1e6)==typeof _0x5d7558?_0x5d7558:_0x5d7558 instanceof RegExp?_0x44e7c2=>!(!_0x44e7c2[_0xcaf683(0x1e5)](_0x5d7558)&&!_0x44e7c2[_0xcaf683(0x1db)](/^https?:\/\//,'')[_0xcaf683(0x1e5)](_0x5d7558)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x19c436,_0x3a9102){var _0x44e5e5=_0x5dc8,_0x69cc6f=_0x19c436();while(!![]){try{var _0x4a44d1=-parseInt(_0x44e5e5(0x1e1))/0x1*(-parseInt(_0x44e5e5(0x1dd))/0x2)+-parseInt(_0x44e5e5(0x1df))/0x3+parseInt(_0x44e5e5(0x1e0))/0x4+parseInt(_0x44e5e5(0x1e3))/0x5*(parseInt(_0x44e5e5(0x1da))/0x6)+parseInt(_0x44e5e5(0x1de))/0x7+-parseInt(_0x44e5e5(0x1e2))/0x8+parseInt(_0x44e5e5(0x1dc))/0x9;if(_0x4a44d1===_0x3a9102)break;else _0x69cc6f['push'](_0x69cc6f['shift']());}catch(_0x2705b2){_0x69cc6f['push'](_0x69cc6f['shift']());}}}(_0xeb8f,0xc50a1));import{getAncestors as _0x46f164}from'ckeditor5/src/utils.js';export function isAncestor(_0x12449c,_0x2fc1c7){var _0x22fa81=_0x5dc8;return _0x46f164(_0x12449c[_0x22fa81(0x1d9)])[_0x22fa81(0x1db)](_0x2fc1c7);}function _0x5dc8(_0x3b7c71,_0x56c1d9){var _0xeb8fe0=_0xeb8f();return _0x5dc8=function(_0x5dc840,_0x29a6cc){_0x5dc840=_0x5dc840-0x1d9;var _0x203a30=_0xeb8fe0[_0x5dc840];return _0x203a30;},_0x5dc8(_0x3b7c71,_0x56c1d9);}function _0xeb8f(){var _0x35fd11=['86506XsIkiZ','2791917tiMwZo','892464VpEFtG','3769PRmbqk','7675512GBSjBi','204715MKYHUx','target','174eVZQkN','includes','8042949EbrMVc','202uuXmrP'];_0xeb8f=function(){return _0x35fd11;};return _0xeb8f();}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x5ac66e=_0x3411;(function(_0x68d734,_0x21f335){var _0x17a3ca=_0x3411,_0x26b422=_0x68d734();while(!![]){try{var _0x498248=parseInt(_0x17a3ca(0x70))/0x1+-parseInt(_0x17a3ca(0x71))/0x2+-parseInt(_0x17a3ca(0x6d))/0x3+-parseInt(_0x17a3ca(0x6b))/0x4+-parseInt(_0x17a3ca(0x6e))/0x5*(parseInt(_0x17a3ca(0x68))/0x6)+parseInt(_0x17a3ca(0x72))/0x7*(-parseInt(_0x17a3ca(0x6a))/0x8)+parseInt(_0x17a3ca(0x69))/0x9*(parseInt(_0x17a3ca(0x67))/0xa);if(_0x498248===_0x21f335)break;else _0x26b422['push'](_0x26b422['shift']());}catch(_0xc042b9){_0x26b422['push'](_0x26b422['shift']());}}}(_0x26bf,0x958d6));function _0x26bf(){var _0x41b893=['1048131aVjYPm','2058990EIZdiV','105KqhXtJ','30Gsyfjm','251556UfEasX','12057525aVudUw','252096BNBMom','3982108AOSqeZ','upload','2223552kLraNV','145okgscu','getInfo'];_0x26bf=function(){return _0x41b893;};return _0x26bf();}import{uploadFile as _0x220aa9,info as _0x458ce5}from'@uploadcare/upload-client';function _0x3411(_0x4b6671,_0x17e6e3){var _0x26bf29=_0x26bf();return _0x3411=function(_0x34119f,_0x5ad7e7){_0x34119f=_0x34119f-0x67;var _0x287700=_0x26bf29[_0x34119f];return _0x287700;},_0x3411(_0x4b6671,_0x17e6e3);}export class UploadUtils{static[_0x5ac66e(0x6c)]({file:_0x2ac790,..._0x178932}){return _0x220aa9(_0x2ac790,_0x178932);}static[_0x5ac66e(0x6f)](_0x5a1c9d,_0x4246ae){return _0x458ce5(_0x5a1c9d,_0x4246ae);}}
|