@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250927.0 → 0.0.0-nightly-20250928.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 _0xd2b9c5,View as _0x277a9d}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x277a9d{constructor(_0xa5f311){super(_0xa5f311);const t=_0xa5f311['t'],_0x597c21=this['bindTemplate'],_0x43b090=new _0xd2b9c5();_0x43b090['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':[_0x43b090,{'text':_0x597c21['to']('imageUploadProgress',_0x85f2f6=>t('Loading\x20image...')+'\x20('+(_0x85f2f6||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
|
-
|
|
23
|
+
const _0xf992d8=_0x4e8a;(function(_0x337f3f,_0x1f4dab){const _0x4549dd=_0x4e8a,_0x143ace=_0x337f3f();while(!![]){try{const _0x4e5111=parseInt(_0x4549dd(0x168))/0x1*(parseInt(_0x4549dd(0x163))/0x2)+parseInt(_0x4549dd(0x187))/0x3*(-parseInt(_0x4549dd(0x170))/0x4)+parseInt(_0x4549dd(0x15d))/0x5+parseInt(_0x4549dd(0x164))/0x6+-parseInt(_0x4549dd(0x174))/0x7+-parseInt(_0x4549dd(0x157))/0x8+parseInt(_0x4549dd(0x17e))/0x9;if(_0x4e5111===_0x1f4dab)break;else _0x143ace['push'](_0x143ace['shift']());}catch(_0x5b7d94){_0x143ace['push'](_0x143ace['shift']());}}}(_0x3b65,0xa24cb));import{View as _0x4b3050}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x503ae3}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x283cd3}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x390736}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3c8955}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x3b65(){const _0xbf980d=['createCollection','apply','target','8886493xVxmms','querySelector','fire','getFocusableElement','_editingView','_setView','once','_addErrorViewListeners','error','ready','8393958dEujez','element','retry','setTemplate','change:status','render','addMany','cancel','_focusableView','3QJnycp','ck-reset_all-excluded','add','ck-uploadcare-form','uploading','uc-cloud-image-editor','3901824JFPxTo','length','cdnUrl','observe','_waitForImageEditorComponent','filter','4088675urMhvM','div','_loadingView','disconnect','addedNodes','_items','4FfNdVY','4804242ZzSUcQ','toLowerCase','status','_errorView','589420cjMOys','detail','set','_addUploadcareImageEditorListeners','addEventListener','focus','nodeName','clear','5231752hHbGWO'];_0x3b65=function(){return _0xbf980d;};return _0x3b65();}function _0x4e8a(_0x417164,_0x5dd5a7){const _0x3b65c7=_0x3b65();return _0x4e8a=function(_0x4e8a4e,_0x68523a){_0x4e8a4e=_0x4e8a4e-0x155;let _0x5f075b=_0x3b65c7[_0x4e8a4e];return _0x5f075b;},_0x4e8a(_0x417164,_0x5dd5a7);}export class UploadcareImageEditFormView extends _0x3c8955{[_0xf992d8(0x162)];[_0xf992d8(0x15f)];[_0xf992d8(0x167)];[_0xf992d8(0x178)];[_0xf992d8(0x186)];constructor(_0x5884ba,_0x4330cf,_0x23602f){const _0x26627b=_0xf992d8;super(_0x5884ba),this[_0x26627b(0x162)]=this[_0x26627b(0x171)](),this[_0x26627b(0x15f)]=new _0x503ae3(_0x5884ba),this[_0x26627b(0x167)]=new _0x283cd3(_0x5884ba),this[_0x26627b(0x178)]=new _0x390736(_0x5884ba,_0x23602f),this[_0x26627b(0x186)]=new _0x4b3050(_0x5884ba),this[_0x26627b(0x186)][_0x26627b(0x181)](this[_0x26627b(0x177)]()),this[_0x26627b(0x16a)](_0x26627b(0x166),_0x4330cf),this[_0x26627b(0x181)]({'tag':_0x26627b(0x15e),'attributes':{'class':['ck',_0x26627b(0x188),_0x26627b(0x18a)],'tabindex':'-1'},'children':this[_0x26627b(0x162)]}),this[_0x26627b(0x179)](),this[_0x26627b(0x17a)](_0x26627b(0x183),()=>{const _0x584fe4=_0x26627b;this[_0x584fe4(0x15b)](this[_0x584fe4(0x17f)],_0x24b41e=>{const _0x3f7629=_0x584fe4;this[_0x3f7629(0x16b)](_0x24b41e);});}),this['on'](_0x26627b(0x182),()=>{const _0x51a943=_0x26627b;this[_0x51a943(0x179)]();}),this[_0x26627b(0x17b)]();}[_0xf992d8(0x16d)](){const _0x478b6b=_0xf992d8;this[_0x478b6b(0x17f)][_0x478b6b(0x16d)]();}[_0xf992d8(0x179)](){const _0xaae239=_0xf992d8;switch(this[_0xaae239(0x162)][_0xaae239(0x16f)](),this[_0xaae239(0x166)]){case _0xaae239(0x155):this[_0xaae239(0x162)][_0xaae239(0x189)](this[_0xaae239(0x15f)]);break;case _0xaae239(0x17c):this[_0xaae239(0x162)][_0xaae239(0x189)](this[_0xaae239(0x167)]);break;case _0xaae239(0x17d):this[_0xaae239(0x162)][_0xaae239(0x184)]([this[_0xaae239(0x178)],this[_0xaae239(0x186)]]);}}[_0xf992d8(0x15b)](_0x5e1a4e,_0x5cf8dc){const _0x341115=_0xf992d8,_0x389d6b=_0x341115(0x156),_0x194df9=_0x5e1a4e[_0x341115(0x175)](_0x389d6b);if(_0x194df9)return _0x5cf8dc(_0x194df9);const _0x4947c9=new MutationObserver(_0x48e5ef=>{const _0x5e92a8=_0x341115,_0x35d274=_0x48e5ef[_0x5e92a8(0x15c)](_0x4966f7=>_0x4966f7[_0x5e92a8(0x173)]===_0x5e1a4e&&_0x4966f7[_0x5e92a8(0x161)][_0x5e92a8(0x158)]>0x0&&_0x4966f7[_0x5e92a8(0x161)][0x0][_0x5e92a8(0x16e)][_0x5e92a8(0x165)]()===_0x389d6b);_0x35d274[_0x5e92a8(0x158)]&&(_0x4947c9[_0x5e92a8(0x160)](),_0x5cf8dc(_0x35d274[0x0][_0x5e92a8(0x161)][0x0]));});_0x4947c9[_0x341115(0x15a)](_0x5e1a4e,{'childList':!0x0,'subtree':!0x0});}[_0xf992d8(0x16b)](_0x3d8f63){const _0x195446=_0xf992d8;_0x3d8f63[_0x195446(0x16c)](_0x195446(0x172),_0x33445d=>{const _0x22c591=_0x195446;this[_0x22c591(0x176)](_0x22c591(0x172),{'imageSrc':_0x33445d[_0x22c591(0x169)][_0x22c591(0x159)]});}),_0x3d8f63[_0x195446(0x16c)](_0x195446(0x185),()=>{const _0x4c3fde=_0x195446;this[_0x4c3fde(0x176)](_0x4c3fde(0x185));});}[_0xf992d8(0x17b)](){const _0x46b508=_0xf992d8;this[_0x46b508(0x167)]['on'](_0x46b508(0x180),()=>{const _0x2987b2=_0x46b508;this[_0x2987b2(0x176)](_0x2987b2(0x180));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x217e(_0x5be252,_0x51aa47){const _0x38135c=_0x3813();return _0x217e=function(_0x217e2f,_0xa4a9f4){_0x217e2f=_0x217e2f-0x124;let _0x3409f2=_0x38135c[_0x217e2f];return _0x3409f2;},_0x217e(_0x5be252,_0x51aa47);}const _0x11fe5c=_0x217e;(function(_0x1ed054,_0x247c20){const _0x13e192=_0x217e,_0x2d8f54=_0x1ed054();while(!![]){try{const _0x1a4f56=parseInt(_0x13e192(0x133))/0x1+-parseInt(_0x13e192(0x135))/0x2*(parseInt(_0x13e192(0x130))/0x3)+parseInt(_0x13e192(0x124))/0x4+parseInt(_0x13e192(0x13d))/0x5+parseInt(_0x13e192(0x132))/0x6+-parseInt(_0x13e192(0x128))/0x7*(parseInt(_0x13e192(0x12e))/0x8)+-parseInt(_0x13e192(0x138))/0x9;if(_0x1a4f56===_0x247c20)break;else _0x2d8f54['push'](_0x2d8f54['shift']());}catch(_0x44e21a){_0x2d8f54['push'](_0x2d8f54['shift']());}}}(_0x3813,0xe85f1));import{Command as _0x2b7b34}from'ckeditor5/src/core.js';import{Dialog as _0xfa922f}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0xde3479}from'./ui/uploadcareimageeditcontroller.js';function _0x3813(){const _0x4f61d8=['1564891KiReHG','imageEditController','2rOnLWY','uploadcare.allowExternalImagesEditing','document','17603802icrMwx','unbind','model','execute','isEnabled','3135885fdGmbt','selection','bind','config','set','getSelectedElement','6719744xaANfs','imageInline','_isEditable','editor','16793Mqsglr','isActive','element','plugins','refresh','get','376XsjOwW','requires','4033992QNvuKg','imageBlock','2959104RjBTJa'];_0x3813=function(){return _0x4f61d8;};return _0x3813();}import{createEditabilityChecker as _0x145b55}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2b7b34{[_0x11fe5c(0x134)];static get[_0x11fe5c(0x12f)](){return[_0xfa922f];}[_0x11fe5c(0x126)];constructor(_0x5fe3f0){const _0x2cfde8=_0x11fe5c;super(_0x5fe3f0),this[_0x2cfde8(0x134)]=void 0x0,this[_0x2cfde8(0x126)]=_0x145b55(_0x5fe3f0[_0x2cfde8(0x140)][_0x2cfde8(0x12d)](_0x2cfde8(0x136))||[]),this[_0x2cfde8(0x141)]({'isActive':!0x1});}[_0x11fe5c(0x12c)](){const _0x1839c0=_0x11fe5c,_0x1e2622=this[_0x1839c0(0x127)][_0x1839c0(0x13a)][_0x1839c0(0x137)][_0x1839c0(0x13e)][_0x1839c0(0x142)]();this[_0x1839c0(0x13c)]=this[_0x1839c0(0x126)](_0x1e2622);}[_0x11fe5c(0x13b)](){const _0x444b3=_0x11fe5c;this[_0x444b3(0x134)]&&(this[_0x444b3(0x139)](_0x444b3(0x129)),this[_0x444b3(0x134)]=void 0x0);const _0x236625=this[_0x444b3(0x127)][_0x444b3(0x13a)][_0x444b3(0x137)][_0x444b3(0x13e)][_0x444b3(0x142)]();_0x236625&&(_0x236625['is'](_0x444b3(0x12a),_0x444b3(0x131))||_0x236625['is'](_0x444b3(0x12a),_0x444b3(0x125)))&&(this[_0x444b3(0x134)]=new _0xde3479(this[_0x444b3(0x127)],this[_0x444b3(0x127)][_0x444b3(0x12b)][_0x444b3(0x12d)](_0xfa922f),_0x236625),this[_0x444b3(0x13f)](_0x444b3(0x129))['to'](this[_0x444b3(0x134)],_0x444b3(0x129)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a61df=_0x1695;(function(_0x3984a5,_0x1a8ad6){const _0x306914=_0x1695,_0x4c41b9=_0x3984a5();while(!![]){try{const _0x598617=-parseInt(_0x306914(0x170))/0x1+-parseInt(_0x306914(0x166))/0x2+-parseInt(_0x306914(0x16e))/0x3*(-parseInt(_0x306914(0x16a))/0x4)+-parseInt(_0x306914(0x16d))/0x5*(parseInt(_0x306914(0x176))/0x6)+parseInt(_0x306914(0x16c))/0x7*(-parseInt(_0x306914(0x178))/0x8)+parseInt(_0x306914(0x179))/0x9*(parseInt(_0x306914(0x16f))/0xa)+parseInt(_0x306914(0x165))/0xb*(parseInt(_0x306914(0x163))/0xc);if(_0x598617===_0x1a8ad6)break;else _0x4c41b9['push'](_0x4c41b9['shift']());}catch(_0x1c891f){_0x4c41b9['push'](_0x4c41b9['shift']());}}}(_0x4454,0x75375));import{Plugin as _0x4ed5f0}from'ckeditor5/src/core.js';import{Notification as _0x489706}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x3580a2}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x5edb50}from'./uploadcareimagereplacecommand.js';function _0x4454(){const _0x3022d6=['60cKDAry','pluginName','706145PTybgc','57196SWrASQ','uploadcareImageEdit','isOfficialPlugin','UploadcareImageEditEditing','16SEJhgZ','uploadcareImageReplace','1382507PERoKj','31965jsZyUi','450222CJSQIn','10GidypZ','580381FkmHhD','init','ImageUtils','commands','requires','add','6ktyUXF','isPremiumPlugin','8ovRJCS','3345471szyLGd','ImageEditing'];_0x4454=function(){return _0x3022d6;};return _0x4454();}import{UploadcareEditing as _0x3335ca}from'../uploadcareediting.js';function _0x1695(_0x21ad50,_0x5de24c){const _0x4454d4=_0x4454();return _0x1695=function(_0x1695d5,_0x5e5d84){_0x1695d5=_0x1695d5-0x162;let _0x4a6d3d=_0x4454d4[_0x1695d5];return _0x4a6d3d;},_0x1695(_0x21ad50,_0x5de24c);}export class UploadcareImageEditEditing extends _0x4ed5f0{static get[_0x5a61df(0x164)](){const _0x2782ad=_0x5a61df;return _0x2782ad(0x169);}static get[_0x5a61df(0x174)](){const _0x2b2434=_0x5a61df;return[_0x3335ca,_0x489706,_0x2b2434(0x172),_0x2b2434(0x162)];}static get[_0x5a61df(0x168)](){return!0x0;}static get[_0x5a61df(0x177)](){return!0x0;}[_0x5a61df(0x171)](){const _0x48e282=_0x5a61df,{editor:_0x13cee6}=this;_0x13cee6[_0x48e282(0x173)][_0x48e282(0x175)](_0x48e282(0x167),new _0x3580a2(_0x13cee6)),_0x13cee6[_0x48e282(0x173)][_0x48e282(0x175)](_0x48e282(0x16b),new _0x5edb50(_0x13cee6));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1a5c11}from'ckeditor5/src/core.js';import{ButtonView as _0x335dae}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2be610}from'ckeditor5/src/icons.js';import{createElement as _0x4619e2}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 _0x1a5c11{['_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 _0x5d94c1=this['editor'];_0x5d94c1['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3a8473=>{const _0x93f6a4=_0x5d94c1['commands']['get']('uploadcareImageEdit'),_0x1adf60=new _0x335dae(_0x3a8473),t=_0x3a8473['t'];return _0x1adf60['set']({'icon':_0x2be610,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1adf60['bind']('isEnabled')['to'](_0x93f6a4),_0x1adf60['bind']('isOn')['to'](_0x93f6a4,'isActive'),this['listenTo'](_0x1adf60,'execute',()=>{_0x5d94c1['execute']('uploadcareImageEdit'),_0x5d94c1['editing']['view']['focus']();}),_0x1adf60;}),this['_initConfig']();}['_initConfig'](){const _0x3c0bf3=_0x4619e2(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3c0bf3),this['listenTo'](this['editor'],'destroy',()=>{_0x3c0bf3['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x3891d5=_0x3343;(function(_0x18057b,_0x2efae4){var _0x43e48f=_0x3343,_0x439fbc=_0x18057b();while(!![]){try{var _0x2cb3f4=parseInt(_0x43e48f(0x1ed))/0x1*(parseInt(_0x43e48f(0x1fb))/0x2)+parseInt(_0x43e48f(0x1f0))/0x3+parseInt(_0x43e48f(0x1f6))/0x4*(parseInt(_0x43e48f(0x1f7))/0x5)+parseInt(_0x43e48f(0x1ff))/0x6*(-parseInt(_0x43e48f(0x1f1))/0x7)+-parseInt(_0x43e48f(0x1fe))/0x8*(parseInt(_0x43e48f(0x1f8))/0x9)+parseInt(_0x43e48f(0x200))/0xa+-parseInt(_0x43e48f(0x201))/0xb*(parseInt(_0x43e48f(0x1f5))/0xc);if(_0x2cb3f4===_0x2efae4)break;else _0x439fbc['push'](_0x439fbc['shift']());}catch(_0x36f3ad){_0x439fbc['push'](_0x439fbc['shift']());}}}(_0x26f2,0xb1b65));import{FocusTracker as _0x3323a3}from'ckeditor5/src/utils.js';import{View as _0x2077a7,FocusCycler as _0x4758c1}from'ckeditor5/src/ui.js';function _0x26f2(){var _0x28d876=['2DPkbOZ','forwardCycle','getFocusableElement','6632OgTwxk','195528GCKkhb','852120gTxJBU','33zGxXRz','1378159iHvaQO','fire','focusCycler','4063848vjpxJk','252wvYDZE','bindTemplate','true','focusTracker','2311056XDwFmc','10636mhgZTD','600ySxmMv','7146mtwVpI','div','createCollection'];_0x26f2=function(){return _0x28d876;};return _0x26f2();}import'../../theme/uploadcare-form.css';function _0x3343(_0x19c9cc,_0x34e959){var _0x26f21c=_0x26f2();return _0x3343=function(_0x3343a6,_0x1055ca){_0x3343a6=_0x3343a6-0x1ed;var _0x521f5f=_0x26f21c[_0x3343a6];return _0x521f5f;},_0x3343(_0x19c9cc,_0x34e959);}export class DialogFocusManagerView extends _0x2077a7{[_0x3891d5(0x1f4)];[_0x3891d5(0x1ef)];constructor(_0x45ec8a){var _0x488c5b=_0x3891d5;super(_0x45ec8a),this[_0x488c5b(0x1f4)]=new _0x3323a3(),this[_0x488c5b(0x1ef)]=new _0x4758c1({'focusables':this[_0x488c5b(0x1fa)](),'focusTracker':this[_0x488c5b(0x1f4)]});}[_0x3891d5(0x1fd)](){var _0x5eb1b6=_0x3891d5;return{'tag':_0x5eb1b6(0x1f9),'attributes':{'aria-hidden':_0x5eb1b6(0x1f3),'tabindex':'0'},'on':{'focus':this[_0x5eb1b6(0x1f2)]['to'](()=>{var _0x58af39=_0x5eb1b6;this[_0x58af39(0x1ef)][_0x58af39(0x1ee)](_0x58af39(0x1fc));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xfd8452,_0x5a3221){const _0x253ca0=_0x3919,_0x2dbfa9=_0xfd8452();while(!![]){try{const _0x5bb2c3=-parseInt(_0x253ca0(0x188))/0x1*(-parseInt(_0x253ca0(0x168))/0x2)+-parseInt(_0x253ca0(0x182))/0x3*(parseInt(_0x253ca0(0x183))/0x4)+parseInt(_0x253ca0(0x17d))/0x5*(parseInt(_0x253ca0(0x172))/0x6)+-parseInt(_0x253ca0(0x160))/0x7+parseInt(_0x253ca0(0x153))/0x8+parseInt(_0x253ca0(0x15b))/0x9+parseInt(_0x253ca0(0x176))/0xa*(parseInt(_0x253ca0(0x171))/0xb);if(_0x5bb2c3===_0x5a3221)break;else _0x2dbfa9['push'](_0x2dbfa9['shift']());}catch(_0xd7b1c8){_0x2dbfa9['push'](_0x2dbfa9['shift']());}}}(_0x412c,0xa99c2));import{global as _0x507930,DomEmitterMixin as _0x578e48}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0xb22226){const _0x194901=_0x3919,_0x483532=z(_0xb22226);return _0x137a22=>!(!_0x137a22||!_0x137a22['is'](_0x194901(0x16d),_0x194901(0x169))&&!_0x137a22['is'](_0x194901(0x16d),_0x194901(0x185)))&&(!!_0x137a22[_0x194901(0x158)](_0x194901(0x156))||!!_0x137a22[_0x194901(0x158)](_0x194901(0x152))&&_0x483532(_0x137a22[_0x194901(0x173)](_0x194901(0x152))));}export function getImageUrls(_0xa3842f,_0x3dbb30){const _0x4c7fd7=_0x3919,_0x1b6e39=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x4c7fd7(0x150)](_0x6af1d5=>_0x6af1d5<=_0x3dbb30)[_0x4c7fd7(0x181)](_0x358491=>_0xa3842f[_0x4c7fd7(0x16b)](/\/$/,'')+_0x4c7fd7(0x170)+_0x358491+_0x4c7fd7(0x16f)+_0x358491+'w');return{'imageFallbackUrl':_0xa3842f,'imageSources':[{'srcset':_0x1b6e39[_0x4c7fd7(0x15d)](',\x20'),'sizes':_0x4c7fd7(0x179)+_0x3dbb30+_0x4c7fd7(0x16a)+_0x3dbb30+'px','type':_0x4c7fd7(0x166)}]};}function _0x3919(_0x1ce21d,_0x3f6d09){const _0x412cce=_0x412c();return _0x3919=function(_0x391903,_0x1dbc99){_0x391903=_0x391903-0x14f;let _0x155c7a=_0x412cce[_0x391903];return _0x155c7a;},_0x3919(_0x1ce21d,_0x3f6d09);}export function getImageDimension(_0x517982,_0x465fb6,_0x28314b){const _0x26db12=_0x3919,_0x5c6ffb=_0x517982[_0x26db12(0x15c)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5c6ffb?parseInt(_0x5c6ffb[0x1],0xa):_0x465fb6,'height':_0x5c6ffb?parseInt(_0x5c6ffb[0x2],0xa):_0x28314b};}export function showImageProcessingIndicator(_0x53b2bd,_0x3a201d){const _0xcb2c7b=_0x3919,_0x27b38c=new(_0x578e48())(),_0x338339=_0x53b2bd[_0xcb2c7b(0x17a)][_0xcb2c7b(0x174)](_0xcb2c7b(0x161)),_0x4e7c9f=_0x53b2bd[_0xcb2c7b(0x15e)][_0xcb2c7b(0x155)][_0xcb2c7b(0x17c)](_0x3a201d),_0x5002ac=_0x338339[_0xcb2c7b(0x16c)](_0x4e7c9f),_0x573d17=_0x53b2bd[_0xcb2c7b(0x15e)][_0xcb2c7b(0x187)][_0xcb2c7b(0x17e)][_0xcb2c7b(0x15a)](_0x5002ac),_0x73ec6=_0x3a201d[_0xcb2c7b(0x173)](_0xcb2c7b(0x159)),_0x41279b=_0x3a201d[_0xcb2c7b(0x173)](_0xcb2c7b(0x165)),_0x3eef2f=_0xcb2c7b(0x154);_0x53b2bd[_0xcb2c7b(0x15e)][_0xcb2c7b(0x187)][_0xcb2c7b(0x164)](_0x2e1cdd=>{const _0x2693ba=_0xcb2c7b;_0x2e1cdd[_0x2693ba(0x16e)](_0x3eef2f,_0x4e7c9f),_0x2e1cdd[_0x2693ba(0x178)](_0x2693ba(0x17b),_0x73ec6+'/'+_0x41279b,_0x5002ac);}),_0x27b38c[_0xcb2c7b(0x15f)](_0x573d17,_0xcb2c7b(0x151),()=>{const _0x30768a=_0xcb2c7b;_0x27b38c[_0x30768a(0x177)](_0x573d17,_0x30768a(0x151)),_0x53b2bd[_0x30768a(0x15e)][_0x30768a(0x187)][_0x30768a(0x164)](_0x4b3e21=>{const _0x156b1f=_0x30768a;_0x4b3e21[_0x156b1f(0x163)](_0x3eef2f,_0x4e7c9f),_0x4b3e21[_0x156b1f(0x184)](_0x156b1f(0x17b),_0x5002ac);});});}function z(_0x4fcabb){const _0x255476=_0x3919;if(Array[_0x255476(0x17f)](_0x4fcabb)){const _0xda86b0=_0x4fcabb[_0x255476(0x181)](z);return _0x2a7c48=>_0xda86b0[_0x255476(0x180)](_0x140492=>_0x140492(_0x2a7c48));}if(_0x255476(0x186)==_0x4fcabb){const _0x5ec627=_0x507930[_0x255476(0x157)][_0x255476(0x167)][_0x255476(0x186)];return _0x46237a=>new URL(_0x46237a,_0x507930[_0x255476(0x162)][_0x255476(0x14f)])[_0x255476(0x186)]==_0x5ec627;}return _0x255476(0x175)==typeof _0x4fcabb?_0x4fcabb:_0x4fcabb instanceof RegExp?_0x44ccd0=>!(!_0x44ccd0[_0x255476(0x15c)](_0x4fcabb)&&!_0x44ccd0[_0x255476(0x16b)](/^https?:\/\//,'')[_0x255476(0x15c)](_0x4fcabb)):()=>!0x1;}function _0x412c(){const _0x220989=['3920408jgtsPa','removeStyle','imageInline','origin','view','104498bxiGhC','baseURI','filter','load','src','10476536mCIyow','image-processing','mapper','uploadcareImageId','window','hasAttribute','width','viewToDom','10191411nStKyX','match','join','editing','listenTo','9118998ropeoI','ImageUtils','document','removeClass','change','height','image/webp','location','8qXKryg','imageBlock','px)\x20100vw,\x20','replace','findViewImgElement','element','addClass','x/\x20','/-/resize/','593648hbZlrQ','14496ftLKLu','getAttribute','get','function','20IiMkQH','stopListening','setStyle','(max-width:\x20','plugins','aspect-ratio','toViewElement','20FtnsxN','domConverter','isArray','some','map','3EQiDKl'];_0x412c=function(){return _0x220989;};return _0x412c();}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x1e759a,_0x5b4037){var _0x424014=_0x3f43,_0x3150e2=_0x1e759a();while(!![]){try{var _0x44d32c=parseInt(_0x424014(0xa8))/0x1*(parseInt(_0x424014(0xa4))/0x2)+-parseInt(_0x424014(0x9d))/0x3*(parseInt(_0x424014(0x9e))/0x4)+-parseInt(_0x424014(0x9c))/0x5*(-parseInt(_0x424014(0x9b))/0x6)+parseInt(_0x424014(0xa3))/0x7+-parseInt(_0x424014(0xa1))/0x8*(-parseInt(_0x424014(0xa6))/0x9)+-parseInt(_0x424014(0xa2))/0xa+parseInt(_0x424014(0xa7))/0xb*(-parseInt(_0x424014(0xa5))/0xc);if(_0x44d32c===_0x5b4037)break;else _0x3150e2['push'](_0x3150e2['shift']());}catch(_0x3b1ee2){_0x3150e2['push'](_0x3150e2['shift']());}}}(_0x39a4,0x27b65));function _0x3f43(_0x5149a4,_0x887996){var _0x39a495=_0x39a4();return _0x3f43=function(_0x3f43c6,_0x388c36){_0x3f43c6=_0x3f43c6-0x9b;var _0x416a8d=_0x39a495[_0x3f43c6];return _0x416a8d;},_0x3f43(_0x5149a4,_0x887996);}import{getAncestors as _0x5af423}from'ckeditor5/src/utils.js';function _0x39a4(){var _0x3c9396=['3756zTJtsS','207vHNuSY','9328fhowBF','1931tkgarr','169038WgLznf','5sZsEWG','3UOwYdl','539020qernkP','target','includes','91576BjMBVx','3096200QCFvYx','1944873TKWFYB','314Pjpyan'];_0x39a4=function(){return _0x3c9396;};return _0x39a4();}export function isAncestor(_0x5b3478,_0x338011){var _0x4bc401=_0x3f43;return _0x5af423(_0x5b3478[_0x4bc401(0x9f)])[_0x4bc401(0xa0)](_0x338011);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x36051d=_0x7ec3;function _0x7ec3(_0x2d7835,_0x895abd){var _0x240208=_0x2402();return _0x7ec3=function(_0x7ec3db,_0x4b6bd5){_0x7ec3db=_0x7ec3db-0x1b1;var _0x202fe8=_0x240208[_0x7ec3db];return _0x202fe8;},_0x7ec3(_0x2d7835,_0x895abd);}(function(_0x1506b7,_0x5052dc){var _0x4716bc=_0x7ec3,_0x8aa968=_0x1506b7();while(!![]){try{var _0x1dfd52=-parseInt(_0x4716bc(0x1b9))/0x1+parseInt(_0x4716bc(0x1b2))/0x2+parseInt(_0x4716bc(0x1b7))/0x3*(-parseInt(_0x4716bc(0x1b1))/0x4)+-parseInt(_0x4716bc(0x1b3))/0x5+-parseInt(_0x4716bc(0x1b5))/0x6+parseInt(_0x4716bc(0x1b4))/0x7+-parseInt(_0x4716bc(0x1b8))/0x8*(-parseInt(_0x4716bc(0x1b6))/0x9);if(_0x1dfd52===_0x5052dc)break;else _0x8aa968['push'](_0x8aa968['shift']());}catch(_0x52fd19){_0x8aa968['push'](_0x8aa968['shift']());}}}(_0x2402,0x76092));import{uploadFile as _0x192ce9,info as _0x54d67c}from'@uploadcare/upload-client';export class UploadUtils{static[_0x36051d(0x1bb)]({file:_0x226efb,..._0x3c0427}){return _0x192ce9(_0x226efb,_0x3c0427);}static[_0x36051d(0x1ba)](_0x1c5608,_0x1a4a47){return _0x54d67c(_0x1c5608,_0x1a4a47);}}function _0x2402(){var _0x57570b=['967465eDQfaW','3626266qWekGI','2986866iRhyNi','423KSoEPV','3ZgRIje','171016IAdnah','360753XipkEC','getInfo','upload','2794892atGAoA','1422994IPDcwe'];_0x2402=function(){return _0x57570b;};return _0x2402();}
|