@ckeditor/ckeditor5-uploadcare 47.7.0-alpha.4 → 47.7.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 _0x5a0893,View as _0x10dd90}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x10dd90{constructor(_0x352c2b){super(_0x352c2b);const t=_0x352c2b['t'],_0x5c4dca=this['bindTemplate'],_0x355d20=new _0x5a0893();_0x355d20['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':[_0x355d20,{'text':_0x5c4dca['to']('imageUploadProgress',_0x419d15=>t('Loading\x20image...')+'\x20('+(_0x419d15||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 _0xae13e0=_0x66ce;function _0x66ce(_0x11ba4b,_0x1469c3){const _0x5b0a99=_0x5b0a();return _0x66ce=function(_0x66ce32,_0x251ee4){_0x66ce32=_0x66ce32-0x178;let _0x5beabe=_0x5b0a99[_0x66ce32];return _0x5beabe;},_0x66ce(_0x11ba4b,_0x1469c3);}(function(_0x3f1adc,_0x2f4213){const _0x5edc00=_0x66ce,_0x47cc65=_0x3f1adc();while(!![]){try{const _0x1a008f=-parseInt(_0x5edc00(0x179))/0x1*(-parseInt(_0x5edc00(0x17c))/0x2)+parseInt(_0x5edc00(0x185))/0x3+parseInt(_0x5edc00(0x178))/0x4+parseInt(_0x5edc00(0x1a4))/0x5*(parseInt(_0x5edc00(0x18e))/0x6)+-parseInt(_0x5edc00(0x19b))/0x7*(parseInt(_0x5edc00(0x1a8))/0x8)+parseInt(_0x5edc00(0x193))/0x9+-parseInt(_0x5edc00(0x18d))/0xa*(parseInt(_0x5edc00(0x183))/0xb);if(_0x1a008f===_0x2f4213)break;else _0x47cc65['push'](_0x47cc65['shift']());}catch(_0x56efdf){_0x47cc65['push'](_0x47cc65['shift']());}}}(_0x5b0a,0x24221));import{View as _0x52c7e1}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3fc0ad}from'./uploadcareimageeditformloadingview.js';function _0x5b0a(){const _0x239610=['42qlnmsD','length','set','error','querySelector','fire','cdnUrl','ready','addMany','109230FiXhRQ','observe','change:status','cancel','298808NvFVfp','status','clear','setTemplate','target','add','_editingView','_items','803464dJItFZ','45665oozRzj','ck-uploadcare-form','div','10TGeHvR','nodeName','toLowerCase','getFocusableElement','ck-reset_all-excluded','disconnect','_waitForImageEditorComponent','2303653HlzwLd','createCollection','542514UXiMPi','uc-cloud-image-editor','_focusableView','filter','_loadingView','detail','once','render','30NrhLYl','78ObuoKI','addedNodes','uploading','retry','_setView','957141tKdYFO','element','_addUploadcareImageEditorListeners','_addErrorViewListeners','apply','focus','_errorView','addEventListener'];_0x5b0a=function(){return _0x239610;};return _0x5b0a();}import{UploadcareImageEditFormErrorView as _0x170931}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x8e0536}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x302125}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x302125{[_0xae13e0(0x1af)];[_0xae13e0(0x189)];[_0xae13e0(0x199)];[_0xae13e0(0x1ae)];[_0xae13e0(0x187)];constructor(_0x587eef,_0x3c66f4,_0xe48bb8){const _0x5f43c9=_0xae13e0;super(_0x587eef),this[_0x5f43c9(0x1af)]=this[_0x5f43c9(0x184)](),this[_0x5f43c9(0x189)]=new _0x3fc0ad(_0x587eef),this[_0x5f43c9(0x199)]=new _0x170931(_0x587eef),this[_0x5f43c9(0x1ae)]=new _0x8e0536(_0x587eef,_0xe48bb8),this[_0x5f43c9(0x187)]=new _0x52c7e1(_0x587eef),this[_0x5f43c9(0x187)][_0x5f43c9(0x1ab)](this[_0x5f43c9(0x17f)]()),this[_0x5f43c9(0x19d)](_0x5f43c9(0x1a9),_0x3c66f4),this[_0x5f43c9(0x1ab)]({'tag':_0x5f43c9(0x17b),'attributes':{'class':['ck',_0x5f43c9(0x180),_0x5f43c9(0x17a)],'tabindex':'-1'},'children':this[_0x5f43c9(0x1af)]}),this[_0x5f43c9(0x192)](),this[_0x5f43c9(0x18b)](_0x5f43c9(0x18c),()=>{const _0x1d4928=_0x5f43c9;this[_0x1d4928(0x182)](this[_0x1d4928(0x194)],_0x397858=>{const _0xdf927c=_0x1d4928;this[_0xdf927c(0x195)](_0x397858);});}),this['on'](_0x5f43c9(0x1a6),()=>{const _0x202185=_0x5f43c9;this[_0x202185(0x192)]();}),this[_0x5f43c9(0x196)]();}[_0xae13e0(0x198)](){const _0x103c10=_0xae13e0;this[_0x103c10(0x194)][_0x103c10(0x198)]();}[_0xae13e0(0x192)](){const _0x18f12c=_0xae13e0;switch(this[_0x18f12c(0x1af)][_0x18f12c(0x1aa)](),this[_0x18f12c(0x1a9)]){case _0x18f12c(0x190):this[_0x18f12c(0x1af)][_0x18f12c(0x1ad)](this[_0x18f12c(0x189)]);break;case _0x18f12c(0x19e):this[_0x18f12c(0x1af)][_0x18f12c(0x1ad)](this[_0x18f12c(0x199)]);break;case _0x18f12c(0x1a2):this[_0x18f12c(0x1af)][_0x18f12c(0x1a3)]([this[_0x18f12c(0x1ae)],this[_0x18f12c(0x187)]]);}}[_0xae13e0(0x182)](_0x46bb6d,_0x579ce2){const _0x5a28f8=_0xae13e0,_0xc72b0f=_0x5a28f8(0x186),_0x355f76=_0x46bb6d[_0x5a28f8(0x19f)](_0xc72b0f);if(_0x355f76)return _0x579ce2(_0x355f76);const _0x78a854=new MutationObserver(_0x4934bf=>{const _0x4a3add=_0x5a28f8,_0x549d2f=_0x4934bf[_0x4a3add(0x188)](_0x99d5c8=>_0x99d5c8[_0x4a3add(0x1ac)]===_0x46bb6d&&_0x99d5c8[_0x4a3add(0x18f)][_0x4a3add(0x19c)]>0x0&&_0x99d5c8[_0x4a3add(0x18f)][0x0][_0x4a3add(0x17d)][_0x4a3add(0x17e)]()===_0xc72b0f);_0x549d2f[_0x4a3add(0x19c)]&&(_0x78a854[_0x4a3add(0x181)](),_0x579ce2(_0x549d2f[0x0][_0x4a3add(0x18f)][0x0]));});_0x78a854[_0x5a28f8(0x1a5)](_0x46bb6d,{'childList':!0x0,'subtree':!0x0});}[_0xae13e0(0x195)](_0xa7eb68){const _0x1e3e01=_0xae13e0;_0xa7eb68[_0x1e3e01(0x19a)](_0x1e3e01(0x197),_0x287b6b=>{const _0x46b246=_0x1e3e01;this[_0x46b246(0x1a0)](_0x46b246(0x197),{'imageSrc':_0x287b6b[_0x46b246(0x18a)][_0x46b246(0x1a1)]});}),_0xa7eb68[_0x1e3e01(0x19a)](_0x1e3e01(0x1a7),()=>{const _0x4dd5d3=_0x1e3e01;this[_0x4dd5d3(0x1a0)](_0x4dd5d3(0x1a7));});}[_0xae13e0(0x196)](){const _0x1fc929=_0xae13e0;this[_0x1fc929(0x199)]['on'](_0x1fc929(0x191),()=>{const _0x2244ba=_0x1fc929;this[_0x2244ba(0x1a0)](_0x2244ba(0x191));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x329fac=_0x2dce;(function(_0x28405d,_0x1f1382){const _0xf8a1aa=_0x2dce,_0x2185f0=_0x28405d();while(!![]){try{const _0x4b67f9=parseInt(_0xf8a1aa(0xa8))/0x1*(parseInt(_0xf8a1aa(0xb6))/0x2)+parseInt(_0xf8a1aa(0xaf))/0x3*(parseInt(_0xf8a1aa(0xbb))/0x4)+-parseInt(_0xf8a1aa(0xb7))/0x5*(-parseInt(_0xf8a1aa(0xab))/0x6)+parseInt(_0xf8a1aa(0xb1))/0x7+-parseInt(_0xf8a1aa(0xaa))/0x8+-parseInt(_0xf8a1aa(0xbd))/0x9*(-parseInt(_0xf8a1aa(0xae))/0xa)+-parseInt(_0xf8a1aa(0xb9))/0xb*(-parseInt(_0xf8a1aa(0xb2))/0xc);if(_0x4b67f9===_0x1f1382)break;else _0x2185f0['push'](_0x2185f0['shift']());}catch(_0x366c87){_0x2185f0['push'](_0x2185f0['shift']());}}}(_0x2cc3,0x7a900));function _0x2dce(_0x1bc9be,_0x3ded38){const _0x2cc300=_0x2cc3();return _0x2dce=function(_0x2dce15,_0x36e986){_0x2dce15=_0x2dce15-0xa2;let _0x572c76=_0x2cc300[_0x2dce15];return _0x572c76;},_0x2dce(_0x1bc9be,_0x3ded38);}import{Command as _0x51970f}from'ckeditor5/src/core.js';import{Dialog as _0x382c12}from'ckeditor5/src/ui.js';function _0x2cc3(){const _0x309634=['2hUVLkj','5dWxeCJ','bind','318043hVRDGC','get','8jpAJCC','set','424638BYgfEu','element','document','selection','uploadcare.allowExternalImagesEditing','isActive','refresh','imageBlock','config','getSelectedElement','model','editor','unbind','60667EnjLrX','_isEditable','5151112byOEej','1557276pBCggp','isEnabled','requires','20fUwRju','429102mYoIsM','imageInline','688128YDfjLF','144FPJVWO','plugins','execute','imageEditController'];_0x2cc3=function(){return _0x309634;};return _0x2cc3();}import{UploadcareImageEditController as _0x3b3818}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2572ae}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x51970f{[_0x329fac(0xb5)];static get[_0x329fac(0xad)](){return[_0x382c12];}[_0x329fac(0xa9)];constructor(_0xe1ec23){const _0x508665=_0x329fac;super(_0xe1ec23),this[_0x508665(0xb5)]=void 0x0,this[_0x508665(0xa9)]=_0x2572ae(_0xe1ec23[_0x508665(0xa3)][_0x508665(0xba)](_0x508665(0xc1))||[]),this[_0x508665(0xbc)]({'isActive':!0x1});}[_0x329fac(0xc3)](){const _0x230acc=_0x329fac,_0x39099e=this[_0x230acc(0xa6)][_0x230acc(0xa5)][_0x230acc(0xbf)][_0x230acc(0xc0)][_0x230acc(0xa4)]();this[_0x230acc(0xac)]=this[_0x230acc(0xa9)](_0x39099e);}[_0x329fac(0xb4)](){const _0x4fbd7c=_0x329fac;this[_0x4fbd7c(0xb5)]&&(this[_0x4fbd7c(0xa7)](_0x4fbd7c(0xc2)),this[_0x4fbd7c(0xb5)]=void 0x0);const _0x3bca8d=this[_0x4fbd7c(0xa6)][_0x4fbd7c(0xa5)][_0x4fbd7c(0xbf)][_0x4fbd7c(0xc0)][_0x4fbd7c(0xa4)]();_0x3bca8d&&(_0x3bca8d['is'](_0x4fbd7c(0xbe),_0x4fbd7c(0xa2))||_0x3bca8d['is'](_0x4fbd7c(0xbe),_0x4fbd7c(0xb0)))&&(this[_0x4fbd7c(0xb5)]=new _0x3b3818(this[_0x4fbd7c(0xa6)],this[_0x4fbd7c(0xa6)][_0x4fbd7c(0xb3)][_0x4fbd7c(0xba)](_0x382c12),_0x3bca8d),this[_0x4fbd7c(0xb8)](_0x4fbd7c(0xc2))['to'](this[_0x4fbd7c(0xb5)],_0x4fbd7c(0xc2)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4095e4=_0x41de;(function(_0x354365,_0x35877e){const _0x25cbe8=_0x41de,_0x2fcde8=_0x354365();while(!![]){try{const _0x5ef38b=parseInt(_0x25cbe8(0x1ac))/0x1*(parseInt(_0x25cbe8(0x1b5))/0x2)+parseInt(_0x25cbe8(0x1bf))/0x3+-parseInt(_0x25cbe8(0x1b9))/0x4+-parseInt(_0x25cbe8(0x1bd))/0x5*(-parseInt(_0x25cbe8(0x1b7))/0x6)+-parseInt(_0x25cbe8(0x1ba))/0x7+-parseInt(_0x25cbe8(0x1b3))/0x8+parseInt(_0x25cbe8(0x1c0))/0x9*(parseInt(_0x25cbe8(0x1b0))/0xa);if(_0x5ef38b===_0x35877e)break;else _0x2fcde8['push'](_0x2fcde8['shift']());}catch(_0x1ddd48){_0x2fcde8['push'](_0x2fcde8['shift']());}}}(_0x9653,0x8d859));import{Plugin as _0x5b9e23}from'ckeditor5/src/core.js';import{Notification as _0x3b145d}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x42d627}from'./uploadcareimageeditcommand.js';function _0x41de(_0x5533a2,_0x3d076a){const _0x965302=_0x9653();return _0x41de=function(_0x41dee8,_0x3b5fa8){_0x41dee8=_0x41dee8-0x1ac;let _0x9ec048=_0x965302[_0x41dee8];return _0x9ec048;},_0x41de(_0x5533a2,_0x3d076a);}import{UploadcareImageReplaceCommand as _0x22fef2}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0xfc39dc}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x5b9e23{static get[_0x4095e4(0x1ae)](){const _0x12c694=_0x4095e4;return _0x12c694(0x1b8);}static get[_0x4095e4(0x1b2)](){const _0x4cf32e=_0x4095e4;return[_0xfc39dc,_0x3b145d,_0x4cf32e(0x1ad),_0x4cf32e(0x1bc)];}static get[_0x4095e4(0x1b1)](){return!0x0;}static get[_0x4095e4(0x1af)](){return!0x0;}[_0x4095e4(0x1c1)](){const _0x17100e=_0x4095e4,{editor:_0x10fafc}=this;_0x10fafc[_0x17100e(0x1bb)][_0x17100e(0x1b4)](_0x17100e(0x1b6),new _0x42d627(_0x10fafc)),_0x10fafc[_0x17100e(0x1bb)][_0x17100e(0x1b4)](_0x17100e(0x1be),new _0x22fef2(_0x10fafc));}}function _0x9653(){const _0x19018f=['5035026JRYimw','UploadcareImageEditEditing','86788byLXKq','6820562vqoTIM','commands','ImageEditing','5vdrSkq','uploadcareImageReplace','453993hGjkWE','2772bnGgPj','init','4TsaWFh','ImageUtils','pluginName','isPremiumPlugin','6640DbnBDd','isOfficialPlugin','requires','2250320CSrWHb','add','331006wwjTJV','uploadcareImageEdit'];_0x9653=function(){return _0x19018f;};return _0x9653();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x347ee3}from'ckeditor5/src/core.js';import{ButtonView as _0x578d79}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x678f0e}from'ckeditor5/src/icons.js';import{createElement as _0x383f34}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 _0x347ee3{['_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 _0x42d684=this['editor'];_0x42d684['ui']['componentFactory']['add']('uploadcareImageEdit',_0x358637=>{const _0x4f2af6=_0x42d684['commands']['get']('uploadcareImageEdit'),_0xf619f6=new _0x578d79(_0x358637),t=_0x358637['t'];return _0xf619f6['set']({'icon':_0x678f0e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xf619f6['bind']('isEnabled')['to'](_0x4f2af6),_0xf619f6['bind']('isOn')['to'](_0x4f2af6,'isActive'),this['listenTo'](_0xf619f6,'execute',()=>{_0x42d684['execute']('uploadcareImageEdit'),_0x42d684['editing']['view']['focus']();}),_0xf619f6;}),this['_initConfig']();}['_initConfig'](){const _0x1e8dc2=_0x383f34(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1e8dc2),this['listenTo'](this['editor'],'destroy',()=>{_0x1e8dc2['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x175155=_0x1545;function _0x1545(_0x105922,_0x422922){var _0x2e72c2=_0x2e72();return _0x1545=function(_0x15458a,_0x51505f){_0x15458a=_0x15458a-0x1d0;var _0x5d32b8=_0x2e72c2[_0x15458a];return _0x5d32b8;},_0x1545(_0x105922,_0x422922);}(function(_0x4d3b0f,_0x547b5b){var _0x4d471e=_0x1545,_0x3b0e3a=_0x4d3b0f();while(!![]){try{var _0x33429d=parseInt(_0x4d471e(0x1e2))/0x1*(-parseInt(_0x4d471e(0x1e0))/0x2)+parseInt(_0x4d471e(0x1d4))/0x3*(-parseInt(_0x4d471e(0x1d7))/0x4)+-parseInt(_0x4d471e(0x1de))/0x5+parseInt(_0x4d471e(0x1dc))/0x6+-parseInt(_0x4d471e(0x1e1))/0x7+parseInt(_0x4d471e(0x1d8))/0x8*(parseInt(_0x4d471e(0x1d5))/0x9)+parseInt(_0x4d471e(0x1d3))/0xa;if(_0x33429d===_0x547b5b)break;else _0x3b0e3a['push'](_0x3b0e3a['shift']());}catch(_0x1e8e38){_0x3b0e3a['push'](_0x3b0e3a['shift']());}}}(_0x2e72,0x82ad4));import{FocusTracker as _0x3dc317}from'ckeditor5/src/utils.js';import{View as _0x5528f2,FocusCycler as _0x4a1d61}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x5528f2{[_0x175155(0x1d0)];[_0x175155(0x1d1)];constructor(_0x543a98){var _0x329a4c=_0x175155;super(_0x543a98),this[_0x329a4c(0x1d0)]=new _0x3dc317(),this[_0x329a4c(0x1d1)]=new _0x4a1d61({'focusables':this[_0x329a4c(0x1dd)](),'focusTracker':this[_0x329a4c(0x1d0)]});}[_0x175155(0x1d2)](){var _0x2a1aa9=_0x175155;return{'tag':_0x2a1aa9(0x1d9),'attributes':{'aria-hidden':_0x2a1aa9(0x1df),'tabindex':'0'},'on':{'focus':this[_0x2a1aa9(0x1db)]['to'](()=>{var _0x2ef5b9=_0x2a1aa9;this[_0x2ef5b9(0x1d1)][_0x2ef5b9(0x1d6)](_0x2ef5b9(0x1da));})}};}}function _0x2e72(){var _0x180912=['focusCycler','getFocusableElement','19217350CDzbdr','38844osTaaR','446697rYUcLO','fire','268eCsZaQ','104KNFBdG','div','forwardCycle','bindTemplate','5836248sckPfn','createCollection','5348520hXIOMc','true','2VrCelr','4341449mYtlEL','446993fjpaQn','focusTracker'];_0x2e72=function(){return _0x180912;};return _0x2e72();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x569211,_0x213d3d){const _0x408827=_0x106d,_0x20635f=_0x569211();while(!![]){try{const _0x2197ef=parseInt(_0x408827(0xd0))/0x1*(parseInt(_0x408827(0xd1))/0x2)+parseInt(_0x408827(0xbe))/0x3+-parseInt(_0x408827(0xbc))/0x4*(-parseInt(_0x408827(0xab))/0x5)+-parseInt(_0x408827(0xcd))/0x6+-parseInt(_0x408827(0xb4))/0x7+-parseInt(_0x408827(0xac))/0x8+-parseInt(_0x408827(0xcb))/0x9*(-parseInt(_0x408827(0xaa))/0xa);if(_0x2197ef===_0x213d3d)break;else _0x20635f['push'](_0x20635f['shift']());}catch(_0x406517){_0x20635f['push'](_0x20635f['shift']());}}}(_0x3729,0xadca4));function _0x106d(_0x15a40a,_0x225a0d){const _0x3729a9=_0x3729();return _0x106d=function(_0x106dd8,_0x2b16fb){_0x106dd8=_0x106dd8-0xa2;let _0x5c0958=_0x3729a9[_0x106dd8];return _0x5c0958;},_0x106d(_0x15a40a,_0x225a0d);}import{global as _0x17e346,DomEmitterMixin as _0x17507c}from'ckeditor5/src/utils.js';function _0x3729(){const _0x5de489=['editing','879961kQueYX','2SOIoCx','domConverter','function','map','document','hasAttribute','change','px)\x20100vw,\x20','src','join','filter','height','imageInline','get','getAttribute','image-processing','x/\x20','/-/resize/','4900KliRtF','56060YWTdnd','3523232fJUpbV','imageBlock','origin','image/webp','some','addClass','mapper','plugins','1688946RqZZWm','findViewImgElement','width','listenTo','location','isArray','uploadcareImageId','baseURI','20qgnhkC','removeClass','1286352JqmxtE','toViewElement','window','ImageUtils','removeStyle','element','(max-width:\x20','view','match','aspect-ratio','replace','load','setStyle','2169vtboAA','viewToDom','536214vLEzdx','stopListening'];_0x3729=function(){return _0x5de489;};return _0x3729();}export function createEditabilityChecker(_0x3d77e3){const _0x13a734=_0x106d,_0x22e60f=G(_0x3d77e3);return _0x5a1f2f=>!(!_0x5a1f2f||!_0x5a1f2f['is'](_0x13a734(0xc3),_0x13a734(0xad))&&!_0x5a1f2f['is'](_0x13a734(0xc3),_0x13a734(0xa4)))&&(!!_0x5a1f2f[_0x13a734(0xd6)](_0x13a734(0xba))||!!_0x5a1f2f[_0x13a734(0xd6)](_0x13a734(0xd9))&&_0x22e60f(_0x5a1f2f[_0x13a734(0xa6)](_0x13a734(0xd9))));}export function getImageUrls(_0x1fd28b,_0x188527){const _0x1b7f9f=_0x106d,_0x322bfd=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x1b7f9f(0xa2)](_0x3c83f6=>_0x3c83f6<=_0x188527)[_0x1b7f9f(0xd4)](_0x128636=>_0x1fd28b[_0x1b7f9f(0xc8)](/\/$/,'')+_0x1b7f9f(0xa9)+_0x128636+_0x1b7f9f(0xa8)+_0x128636+'w');return{'imageFallbackUrl':_0x1fd28b,'imageSources':[{'srcset':_0x322bfd[_0x1b7f9f(0xda)](',\x20'),'sizes':_0x1b7f9f(0xc4)+_0x188527+_0x1b7f9f(0xd8)+_0x188527+'px','type':_0x1b7f9f(0xaf)}]};}export function getImageDimension(_0x3a3ec9,_0x2b70ca,_0x4748a5){const _0x407d45=_0x106d,_0x1d8f66=_0x3a3ec9[_0x407d45(0xc6)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1d8f66?parseInt(_0x1d8f66[0x1],0xa):_0x2b70ca,'height':_0x1d8f66?parseInt(_0x1d8f66[0x2],0xa):_0x4748a5};}export function showImageProcessingIndicator(_0x386f00,_0x4ee93c){const _0x56face=_0x106d,_0x1e071a=new(_0x17507c())(),_0x473728=_0x386f00[_0x56face(0xb3)][_0x56face(0xa5)](_0x56face(0xc1)),_0x3b5571=_0x386f00[_0x56face(0xcf)][_0x56face(0xb2)][_0x56face(0xbf)](_0x4ee93c),_0xb38250=_0x473728[_0x56face(0xb5)](_0x3b5571),_0x15d5d0=_0x386f00[_0x56face(0xcf)][_0x56face(0xc5)][_0x56face(0xd2)][_0x56face(0xcc)](_0xb38250),_0x3d3213=_0x4ee93c[_0x56face(0xa6)](_0x56face(0xb6)),_0x5d25a9=_0x4ee93c[_0x56face(0xa6)](_0x56face(0xa3)),_0x4b9f20=_0x56face(0xa7);_0x386f00[_0x56face(0xcf)][_0x56face(0xc5)][_0x56face(0xd7)](_0x4a67c1=>{const _0x72bd2c=_0x56face;_0x4a67c1[_0x72bd2c(0xb1)](_0x4b9f20,_0x3b5571),_0x4a67c1[_0x72bd2c(0xca)](_0x72bd2c(0xc7),_0x3d3213+'/'+_0x5d25a9,_0xb38250);}),_0x1e071a[_0x56face(0xb7)](_0x15d5d0,_0x56face(0xc9),()=>{const _0x233b60=_0x56face;_0x1e071a[_0x233b60(0xce)](_0x15d5d0,_0x233b60(0xc9)),_0x386f00[_0x233b60(0xcf)][_0x233b60(0xc5)][_0x233b60(0xd7)](_0x5c66b0=>{const _0x509af5=_0x233b60;_0x5c66b0[_0x509af5(0xbd)](_0x4b9f20,_0x3b5571),_0x5c66b0[_0x509af5(0xc2)](_0x509af5(0xc7),_0xb38250);});});}function G(_0x53249e){const _0x125de2=_0x106d;if(Array[_0x125de2(0xb9)](_0x53249e)){const _0x1e6636=_0x53249e[_0x125de2(0xd4)](G);return _0x13f84f=>_0x1e6636[_0x125de2(0xb0)](_0x2ab9c4=>_0x2ab9c4(_0x13f84f));}if(_0x125de2(0xae)==_0x53249e){const _0x13ece5=_0x17e346[_0x125de2(0xc0)][_0x125de2(0xb8)][_0x125de2(0xae)];return _0x296f94=>new URL(_0x296f94,_0x17e346[_0x125de2(0xd5)][_0x125de2(0xbb)])[_0x125de2(0xae)]==_0x13ece5;}return _0x125de2(0xd3)==typeof _0x53249e?_0x53249e:_0x53249e instanceof RegExp?_0x40d796=>!(!_0x40d796[_0x125de2(0xc6)](_0x53249e)&&!_0x40d796[_0x125de2(0xc8)](/^https?:\/\//,'')[_0x125de2(0xc6)](_0x53249e)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x21bbe3,_0x38433b){var _0x3d3898=_0x45d4,_0x35134b=_0x21bbe3();while(!![]){try{var _0x147c7f=parseInt(_0x3d3898(0x119))/0x1+parseInt(_0x3d3898(0x11a))/0x2+parseInt(_0x3d3898(0x11f))/0x3+-parseInt(_0x3d3898(0x11e))/0x4+parseInt(_0x3d3898(0x122))/0x5*(parseInt(_0x3d3898(0x118))/0x6)+parseInt(_0x3d3898(0x11b))/0x7*(-parseInt(_0x3d3898(0x121))/0x8)+-parseInt(_0x3d3898(0x11c))/0x9;if(_0x147c7f===_0x38433b)break;else _0x35134b['push'](_0x35134b['shift']());}catch(_0x257b5b){_0x35134b['push'](_0x35134b['shift']());}}}(_0x369f,0xa7314));import{getAncestors as _0x256c42}from'ckeditor5/src/utils.js';function _0x369f(){var _0x174ee4=['target','507184VBfDwo','35ZbLUvx','148692ywgfIE','340412PVMirY','2513758hSBwFD','7FaAhOS','5247333SRUpHK','includes','2473768bqsFSI','536796nxAvgm'];_0x369f=function(){return _0x174ee4;};return _0x369f();}function _0x45d4(_0x5abc04,_0x8e3cae){var _0x369f13=_0x369f();return _0x45d4=function(_0x45d4e0,_0x278b4a){_0x45d4e0=_0x45d4e0-0x118;var _0x4f48ec=_0x369f13[_0x45d4e0];return _0x4f48ec;},_0x45d4(_0x5abc04,_0x8e3cae);}export function isAncestor(_0x8859fa,_0x2cc156){var _0x4d3ffe=_0x45d4;return _0x256c42(_0x8859fa[_0x4d3ffe(0x120)])[_0x4d3ffe(0x11d)](_0x2cc156);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x5871(){var _0x379972=['306341fKAuUc','10AwbcjU','1086896EDGSad','1881002aygJzL','getInfo','6UwnbNd','10859046YNCtws','192957kRYpot','1nchNCv','3825945jcWenU','8ZviYAi','7693506PhZJMx','upload'];_0x5871=function(){return _0x379972;};return _0x5871();}var _0x462f34=_0xf95e;(function(_0x47c1ef,_0x14ebc0){var _0x23535e=_0xf95e,_0x3d2d9c=_0x47c1ef();while(!![]){try{var _0x53e9c1=parseInt(_0x23535e(0x6d))/0x1*(parseInt(_0x23535e(0x68))/0x2)+-parseInt(_0x23535e(0x6c))/0x3+parseInt(_0x23535e(0x74))/0x4+-parseInt(_0x23535e(0x6e))/0x5*(parseInt(_0x23535e(0x6a))/0x6)+-parseInt(_0x23535e(0x72))/0x7+parseInt(_0x23535e(0x6f))/0x8*(-parseInt(_0x23535e(0x70))/0x9)+parseInt(_0x23535e(0x73))/0xa*(parseInt(_0x23535e(0x6b))/0xb);if(_0x53e9c1===_0x14ebc0)break;else _0x3d2d9c['push'](_0x3d2d9c['shift']());}catch(_0x4a2d0c){_0x3d2d9c['push'](_0x3d2d9c['shift']());}}}(_0x5871,0x7310a));import{uploadFile as _0x2e1d01,info as _0x38b254}from'@uploadcare/upload-client';function _0xf95e(_0x2be242,_0x411b71){var _0x587152=_0x5871();return _0xf95e=function(_0xf95e02,_0x39654b){_0xf95e02=_0xf95e02-0x68;var _0x127930=_0x587152[_0xf95e02];return _0x127930;},_0xf95e(_0x2be242,_0x411b71);}export class UploadUtils{static[_0x462f34(0x71)]({file:_0x47a4bd,..._0x2bab98}){return _0x2e1d01(_0x47a4bd,_0x2bab98);}static[_0x462f34(0x69)](_0x589e03,_0x587e1c){return _0x38b254(_0x589e03,_0x587e1c);}}
|