@ckeditor/ckeditor5-uploadcare 47.4.0-alpha.0 → 47.4.0-alpha.1
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 _0x2bcfef,View as _0x5d547b}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x5d547b{constructor(_0x29bbfd){super(_0x29bbfd);const t=_0x29bbfd['t'],_0x4b5cbb=this['bindTemplate'],_0x54590d=new _0x2bcfef();_0x54590d['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':[_0x54590d,{'text':_0x4b5cbb['to']('imageUploadProgress',_0x3d287d=>t('Loading\x20image...')+'\x20('+(_0x3d287d||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 _0x2c8663=_0x15de;(function(_0xd78554,_0x1aed43){const _0x352ecb=_0x15de,_0x5ace66=_0xd78554();while(!![]){try{const _0x57fb69=-parseInt(_0x352ecb(0x102))/0x1+-parseInt(_0x352ecb(0x12e))/0x2*(-parseInt(_0x352ecb(0xfe))/0x3)+parseInt(_0x352ecb(0x130))/0x4+-parseInt(_0x352ecb(0x127))/0x5+parseInt(_0x352ecb(0x10a))/0x6*(-parseInt(_0x352ecb(0x122))/0x7)+-parseInt(_0x352ecb(0x11e))/0x8+parseInt(_0x352ecb(0x11f))/0x9;if(_0x57fb69===_0x1aed43)break;else _0x5ace66['push'](_0x5ace66['shift']());}catch(_0x33b433){_0x5ace66['push'](_0x5ace66['shift']());}}}(_0x2440,0xcb55e));import{View as _0x336a9d}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x2e3759}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3cd699}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x4a89f4}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1dda3d}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x2440(){const _0x12afd1=['status','_addErrorViewListeners','querySelector','observe','addMany','fire','add','change:status','ck-reset_all-excluded','10397128aWRbbu','27528462nkQnMv','set','ready','571823VpMosn','filter','createCollection','ck-uploadcare-form','_waitForImageEditorComponent','2834990qZtRQs','element','length','_editingView','addEventListener','apply','div','2WePLqr','_setView','3191716JraziX','detail','target','_items','849489LRqPKC','setTemplate','error','getFocusableElement','1195242qrhDxC','toLowerCase','_focusableView','disconnect','uc-cloud-image-editor','render','cdnUrl','retry','18AYKfuT','_loadingView','uploading','clear','focus','nodeName','_errorView','once','cancel','_addUploadcareImageEditorListeners','addedNodes'];_0x2440=function(){return _0x12afd1;};return _0x2440();}function _0x15de(_0x1deebc,_0x1cb12b){const _0x24409e=_0x2440();return _0x15de=function(_0x15de4b,_0x56267f){_0x15de4b=_0x15de4b-0xfd;let _0x351311=_0x24409e[_0x15de4b];return _0x351311;},_0x15de(_0x1deebc,_0x1cb12b);}export class UploadcareImageEditFormView extends _0x1dda3d{[_0x2c8663(0xfd)];[_0x2c8663(0x10b)];[_0x2c8663(0x110)];[_0x2c8663(0x12a)];[_0x2c8663(0x104)];constructor(_0x391f76,_0x50d752,_0x5a7d4b){const _0x2b8989=_0x2c8663;super(_0x391f76),this[_0x2b8989(0xfd)]=this[_0x2b8989(0x124)](),this[_0x2b8989(0x10b)]=new _0x2e3759(_0x391f76),this[_0x2b8989(0x110)]=new _0x3cd699(_0x391f76),this[_0x2b8989(0x12a)]=new _0x4a89f4(_0x391f76,_0x5a7d4b),this[_0x2b8989(0x104)]=new _0x336a9d(_0x391f76),this[_0x2b8989(0x104)][_0x2b8989(0xff)](this[_0x2b8989(0x101)]()),this[_0x2b8989(0x120)](_0x2b8989(0x115),_0x50d752),this[_0x2b8989(0xff)]({'tag':_0x2b8989(0x12d),'attributes':{'class':['ck',_0x2b8989(0x11d),_0x2b8989(0x125)],'tabindex':'-1'},'children':this[_0x2b8989(0xfd)]}),this[_0x2b8989(0x12f)](),this[_0x2b8989(0x111)](_0x2b8989(0x107),()=>{const _0x1f529c=_0x2b8989;this[_0x1f529c(0x126)](this[_0x1f529c(0x128)],_0x9bbad5=>{const _0x1128e1=_0x1f529c;this[_0x1128e1(0x113)](_0x9bbad5);});}),this['on'](_0x2b8989(0x11c),()=>{const _0xb8a280=_0x2b8989;this[_0xb8a280(0x12f)]();}),this[_0x2b8989(0x116)]();}[_0x2c8663(0x10e)](){const _0x22e1d9=_0x2c8663;this[_0x22e1d9(0x128)][_0x22e1d9(0x10e)]();}[_0x2c8663(0x12f)](){const _0x52a48=_0x2c8663;switch(this[_0x52a48(0xfd)][_0x52a48(0x10d)](),this[_0x52a48(0x115)]){case _0x52a48(0x10c):this[_0x52a48(0xfd)][_0x52a48(0x11b)](this[_0x52a48(0x10b)]);break;case _0x52a48(0x100):this[_0x52a48(0xfd)][_0x52a48(0x11b)](this[_0x52a48(0x110)]);break;case _0x52a48(0x121):this[_0x52a48(0xfd)][_0x52a48(0x119)]([this[_0x52a48(0x12a)],this[_0x52a48(0x104)]]);}}[_0x2c8663(0x126)](_0x2409a1,_0x4fff2d){const _0x4662aa=_0x2c8663,_0x25ae6d=_0x4662aa(0x106),_0x484182=_0x2409a1[_0x4662aa(0x117)](_0x25ae6d);if(_0x484182)return _0x4fff2d(_0x484182);const _0x51c172=new MutationObserver(_0x2fb39f=>{const _0xef8801=_0x4662aa,_0x1e2a18=_0x2fb39f[_0xef8801(0x123)](_0xe7586f=>_0xe7586f[_0xef8801(0x132)]===_0x2409a1&&_0xe7586f[_0xef8801(0x114)][_0xef8801(0x129)]>0x0&&_0xe7586f[_0xef8801(0x114)][0x0][_0xef8801(0x10f)][_0xef8801(0x103)]()===_0x25ae6d);_0x1e2a18[_0xef8801(0x129)]&&(_0x51c172[_0xef8801(0x105)](),_0x4fff2d(_0x1e2a18[0x0][_0xef8801(0x114)][0x0]));});_0x51c172[_0x4662aa(0x118)](_0x2409a1,{'childList':!0x0,'subtree':!0x0});}[_0x2c8663(0x113)](_0xb2e27a){const _0x59d0af=_0x2c8663;_0xb2e27a[_0x59d0af(0x12b)](_0x59d0af(0x12c),_0x20f51e=>{const _0x257bcf=_0x59d0af;this[_0x257bcf(0x11a)](_0x257bcf(0x12c),{'imageSrc':_0x20f51e[_0x257bcf(0x131)][_0x257bcf(0x108)]});}),_0xb2e27a[_0x59d0af(0x12b)](_0x59d0af(0x112),()=>{const _0x5424c8=_0x59d0af;this[_0x5424c8(0x11a)](_0x5424c8(0x112));});}[_0x2c8663(0x116)](){const _0x2de4a7=_0x2c8663;this[_0x2de4a7(0x110)]['on'](_0x2de4a7(0x109),()=>{const _0x49cbe5=_0x2de4a7;this[_0x49cbe5(0x11a)](_0x49cbe5(0x109));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xf0e7(_0x4c2535,_0x5b7e19){const _0x4e834b=_0x4e83();return _0xf0e7=function(_0xf0e722,_0x55ac51){_0xf0e722=_0xf0e722-0x1b0;let _0xd6226d=_0x4e834b[_0xf0e722];return _0xd6226d;},_0xf0e7(_0x4c2535,_0x5b7e19);}const _0x78f462=_0xf0e7;(function(_0x2a4b5a,_0x120162){const _0x2c8bc8=_0xf0e7,_0x3f3453=_0x2a4b5a();while(!![]){try{const _0x30cae8=-parseInt(_0x2c8bc8(0x1bf))/0x1+parseInt(_0x2c8bc8(0x1bc))/0x2*(-parseInt(_0x2c8bc8(0x1c8))/0x3)+-parseInt(_0x2c8bc8(0x1b5))/0x4+-parseInt(_0x2c8bc8(0x1b2))/0x5+-parseInt(_0x2c8bc8(0x1c9))/0x6+parseInt(_0x2c8bc8(0x1b8))/0x7+-parseInt(_0x2c8bc8(0x1c0))/0x8*(-parseInt(_0x2c8bc8(0x1c3))/0x9);if(_0x30cae8===_0x120162)break;else _0x3f3453['push'](_0x3f3453['shift']());}catch(_0x206e6){_0x3f3453['push'](_0x3f3453['shift']());}}}(_0x4e83,0xc3ad1));import{Command as _0x11ee33}from'ckeditor5/src/core.js';import{Dialog as _0x4c7a50}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1e0923}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x3b6f02}from'../utils/editingutils.js';function _0x4e83(){const _0x4c5f17=['bind','model','2908521nHrASr','execute','getSelectedElement','document','4rqaOZM','editor','isEnabled','855152hvwcfJ','481072qjLwUf','isActive','selection','702dTPQfv','refresh','requires','element','config','2393511ORcyWg','4799826bHHXIq','plugins','imageEditController','unbind','set','uploadcare.allowExternalImagesEditing','imageBlock','imageInline','844640qmcJdn','get','_isEditable','3538964FPqtej'];_0x4e83=function(){return _0x4c5f17;};return _0x4e83();}export class UploadcareImageEditCommand extends _0x11ee33{[_0x78f462(0x1cb)];static get[_0x78f462(0x1c5)](){return[_0x4c7a50];}[_0x78f462(0x1b4)];constructor(_0xce6783){const _0x373169=_0x78f462;super(_0xce6783),this[_0x373169(0x1cb)]=void 0x0,this[_0x373169(0x1b4)]=_0x3b6f02(_0xce6783[_0x373169(0x1c7)][_0x373169(0x1b3)](_0x373169(0x1ce))||[]),this[_0x373169(0x1cd)]({'isActive':!0x1});}[_0x78f462(0x1c4)](){const _0xdf092e=_0x78f462,_0x351dbe=this[_0xdf092e(0x1bd)][_0xdf092e(0x1b7)][_0xdf092e(0x1bb)][_0xdf092e(0x1c2)][_0xdf092e(0x1ba)]();this[_0xdf092e(0x1be)]=this[_0xdf092e(0x1b4)](_0x351dbe);}[_0x78f462(0x1b9)](){const _0x146712=_0x78f462;this[_0x146712(0x1cb)]&&(this[_0x146712(0x1cc)](_0x146712(0x1c1)),this[_0x146712(0x1cb)]=void 0x0);const _0x37dc46=this[_0x146712(0x1bd)][_0x146712(0x1b7)][_0x146712(0x1bb)][_0x146712(0x1c2)][_0x146712(0x1ba)]();_0x37dc46&&(_0x37dc46['is'](_0x146712(0x1c6),_0x146712(0x1b0))||_0x37dc46['is'](_0x146712(0x1c6),_0x146712(0x1b1)))&&(this[_0x146712(0x1cb)]=new _0x1e0923(this[_0x146712(0x1bd)],this[_0x146712(0x1bd)][_0x146712(0x1ca)][_0x146712(0x1b3)](_0x4c7a50),_0x37dc46),this[_0x146712(0x1b6)](_0x146712(0x1c1))['to'](this[_0x146712(0x1cb)],_0x146712(0x1c1)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x290dbf=_0x5ac3;(function(_0x56da0d,_0x75dc24){const _0x4e667d=_0x5ac3,_0x28b127=_0x56da0d();while(!![]){try{const _0x4274c0=parseInt(_0x4e667d(0x1cf))/0x1*(-parseInt(_0x4e667d(0x1d8))/0x2)+-parseInt(_0x4e667d(0x1e0))/0x3+parseInt(_0x4e667d(0x1d5))/0x4*(parseInt(_0x4e667d(0x1dc))/0x5)+parseInt(_0x4e667d(0x1d6))/0x6*(-parseInt(_0x4e667d(0x1e4))/0x7)+-parseInt(_0x4e667d(0x1de))/0x8*(parseInt(_0x4e667d(0x1d3))/0x9)+-parseInt(_0x4e667d(0x1d4))/0xa*(-parseInt(_0x4e667d(0x1e2))/0xb)+parseInt(_0x4e667d(0x1d1))/0xc*(parseInt(_0x4e667d(0x1df))/0xd);if(_0x4274c0===_0x75dc24)break;else _0x28b127['push'](_0x28b127['shift']());}catch(_0x449134){_0x28b127['push'](_0x28b127['shift']());}}}(_0xf356,0x4979b));import{Plugin as _0x5c7aa8}from'ckeditor5/src/core.js';import{Notification as _0x596c47}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x10b4ce}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x5eb4e3}from'./uploadcareimagereplacecommand.js';function _0x5ac3(_0x4d1b46,_0x30d916){const _0xf3567e=_0xf356();return _0x5ac3=function(_0x5ac389,_0x136c35){_0x5ac389=_0x5ac389-0x1cd;let _0x3159e3=_0xf3567e[_0x5ac389];return _0x3159e3;},_0x5ac3(_0x4d1b46,_0x30d916);}import{UploadcareEditing as _0x4f1eca}from'../uploadcareediting.js';function _0xf356(){const _0x12fade=['266840sPnrke','12PrKAQN','uploadcareImageReplace','980662vChgYq','isOfficialPlugin','UploadcareImageEditEditing','requires','35CfHvkX','pluginName','276856ckBnFJ','6751693njAMpJ','1620990nbOqMs','add','22iGqugr','init','214466ARDQsJ','ImageEditing','commands','ImageUtils','1SyrdOY','uploadcareImageEdit','24BRzDkG','isPremiumPlugin','90XNRMPH','1166350UOhsES'];_0xf356=function(){return _0x12fade;};return _0xf356();}export class UploadcareImageEditEditing extends _0x5c7aa8{static get[_0x290dbf(0x1dd)](){const _0x1b2d0c=_0x290dbf;return _0x1b2d0c(0x1da);}static get[_0x290dbf(0x1db)](){const _0x2e3455=_0x290dbf;return[_0x4f1eca,_0x596c47,_0x2e3455(0x1ce),_0x2e3455(0x1e5)];}static get[_0x290dbf(0x1d9)](){return!0x0;}static get[_0x290dbf(0x1d2)](){return!0x0;}[_0x290dbf(0x1e3)](){const _0x3ddaab=_0x290dbf,{editor:_0x4c7594}=this;_0x4c7594[_0x3ddaab(0x1cd)][_0x3ddaab(0x1e1)](_0x3ddaab(0x1d0),new _0x10b4ce(_0x4c7594)),_0x4c7594[_0x3ddaab(0x1cd)][_0x3ddaab(0x1e1)](_0x3ddaab(0x1d7),new _0x5eb4e3(_0x4c7594));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x893f04}from'ckeditor5/src/core.js';import{ButtonView as _0x23f0c2}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x9ccb5f}from'ckeditor5/src/icons.js';import{createElement as _0x33ead8}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 _0x893f04{['_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 _0x8b01cd=this['editor'];_0x8b01cd['ui']['componentFactory']['add']('uploadcareImageEdit',_0x27eeab=>{const _0x46a01f=_0x8b01cd['commands']['get']('uploadcareImageEdit'),_0x3e7a5f=new _0x23f0c2(_0x27eeab),t=_0x27eeab['t'];return _0x3e7a5f['set']({'icon':_0x9ccb5f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3e7a5f['bind']('isEnabled')['to'](_0x46a01f),_0x3e7a5f['bind']('isOn')['to'](_0x46a01f,'isActive'),this['listenTo'](_0x3e7a5f,'execute',()=>{_0x8b01cd['execute']('uploadcareImageEdit'),_0x8b01cd['editing']['view']['focus']();}),_0x3e7a5f;}),this['_initConfig']();}['_initConfig'](){const _0x169a8d=_0x33ead8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x169a8d),this['listenTo'](this['editor'],'destroy',()=>{_0x169a8d['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x2bc667=_0x274d;(function(_0x111cb6,_0x35e615){var _0x494bb6=_0x274d,_0xaa812f=_0x111cb6();while(!![]){try{var _0x2d8423=parseInt(_0x494bb6(0x164))/0x1*(-parseInt(_0x494bb6(0x15b))/0x2)+parseInt(_0x494bb6(0x161))/0x3*(-parseInt(_0x494bb6(0x157))/0x4)+-parseInt(_0x494bb6(0x160))/0x5+parseInt(_0x494bb6(0x158))/0x6+parseInt(_0x494bb6(0x156))/0x7*(-parseInt(_0x494bb6(0x15a))/0x8)+parseInt(_0x494bb6(0x154))/0x9+parseInt(_0x494bb6(0x15d))/0xa;if(_0x2d8423===_0x35e615)break;else _0xaa812f['push'](_0xaa812f['shift']());}catch(_0x2835da){_0xaa812f['push'](_0xaa812f['shift']());}}}(_0x5ebe,0x6f31c));import{FocusTracker as _0x5f04da}from'ckeditor5/src/utils.js';function _0x274d(_0x6def04,_0x1c391b){var _0x5ebe00=_0x5ebe();return _0x274d=function(_0x274dd0,_0x36ccb1){_0x274dd0=_0x274dd0-0x152;var _0x16c758=_0x5ebe00[_0x274dd0];return _0x16c758;},_0x274d(_0x6def04,_0x1c391b);}import{View as _0x2e43b4,FocusCycler as _0x5a711a}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x2e43b4{[_0x2bc667(0x15e)];[_0x2bc667(0x159)];constructor(_0x378039){var _0xa78925=_0x2bc667;super(_0x378039),this[_0xa78925(0x15e)]=new _0x5f04da(),this[_0xa78925(0x159)]=new _0x5a711a({'focusables':this[_0xa78925(0x153)](),'focusTracker':this[_0xa78925(0x15e)]});}[_0x2bc667(0x162)](){var _0x27c4f9=_0x2bc667;return{'tag':_0x27c4f9(0x15c),'attributes':{'aria-hidden':_0x27c4f9(0x15f),'tabindex':'0'},'on':{'focus':this[_0x27c4f9(0x152)]['to'](()=>{var _0x5c0538=_0x27c4f9;this[_0x5c0538(0x159)][_0x5c0538(0x163)](_0x5c0538(0x155));})}};}}function _0x5ebe(){var _0x67aba=['fire','337583xwSjlT','bindTemplate','createCollection','5912451vPzend','forwardCycle','4907XpcGxQ','3517972LiJbmj','1345692qsRJUn','focusCycler','2152mPlPuD','2dKJavx','div','14247810WVmBIA','focusTracker','true','2224525ESrMtA','3FYxRFP','getFocusableElement'];_0x5ebe=function(){return _0x67aba;};return _0x5ebe();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2109b3,_0x4f9de6){const _0x2afd77=_0x3d46,_0x13a21e=_0x2109b3();while(!![]){try{const _0x2eb293=parseInt(_0x2afd77(0xf4))/0x1*(-parseInt(_0x2afd77(0xf7))/0x2)+-parseInt(_0x2afd77(0xd2))/0x3*(-parseInt(_0x2afd77(0xde))/0x4)+-parseInt(_0x2afd77(0xd4))/0x5*(parseInt(_0x2afd77(0xe6))/0x6)+-parseInt(_0x2afd77(0x107))/0x7+parseInt(_0x2afd77(0xdc))/0x8+parseInt(_0x2afd77(0xf6))/0x9+parseInt(_0x2afd77(0xf5))/0xa;if(_0x2eb293===_0x4f9de6)break;else _0x13a21e['push'](_0x13a21e['shift']());}catch(_0x19c0dd){_0x13a21e['push'](_0x13a21e['shift']());}}}(_0x4083,0x62316));function _0x4083(){const _0x28a1b4=['some','ImageUtils','match','(max-width:\x20','change','toViewElement','window','baseURI','image/webp','removeStyle','load','3178084NVtFsh','listenTo','imageBlock','filter','12lsUCeJ','image-processing','2457445LVEkHN','isArray','view','join','setStyle','x/\x20','stopListening','removeClass','1899856VdqypH','location','220016byrGxR','get','height','mapper','uploadcareImageId','viewToDom','px)\x20100vw,\x20','domConverter','6BMrRKA','map','src','replace','hasAttribute','element','findViewImgElement','getAttribute','addClass','plugins','/-/resize/','imageInline','aspect-ratio','origin','42131dgATYJ','6374230xrTNZY','3412539Monwfg','6XJmRDu','function','document','width','editing'];_0x4083=function(){return _0x28a1b4;};return _0x4083();}function _0x3d46(_0x369e2d,_0x59b8ca){const _0x4083d8=_0x4083();return _0x3d46=function(_0x3d4687,_0x106266){_0x3d4687=_0x3d4687-0xd0;let _0x28aae7=_0x4083d8[_0x3d4687];return _0x28aae7;},_0x3d46(_0x369e2d,_0x59b8ca);}import{global as _0x13f20d,DomEmitterMixin as _0x39c7b8}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x3a3119){const _0x135dc2=_0x3d46,_0x445715=G(_0x3a3119);return _0x3b87f1=>!(!_0x3b87f1||!_0x3b87f1['is'](_0x135dc2(0xeb),_0x135dc2(0xd0))&&!_0x3b87f1['is'](_0x135dc2(0xeb),_0x135dc2(0xf1)))&&(!!_0x3b87f1[_0x135dc2(0xea)](_0x135dc2(0xe2))||!!_0x3b87f1[_0x135dc2(0xea)](_0x135dc2(0xe8))&&_0x445715(_0x3b87f1[_0x135dc2(0xed)](_0x135dc2(0xe8))));}export function getImageUrls(_0xeca838,_0x34d6b0){const _0xe94f1a=_0x3d46,_0x172b45=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0xe94f1a(0xd1)](_0x4f9bba=>_0x4f9bba<=_0x34d6b0)[_0xe94f1a(0xe7)](_0x21ba20=>_0xeca838[_0xe94f1a(0xe9)](/\/$/,'')+_0xe94f1a(0xf0)+_0x21ba20+_0xe94f1a(0xd9)+_0x21ba20+'w');return{'imageFallbackUrl':_0xeca838,'imageSources':[{'srcset':_0x172b45[_0xe94f1a(0xd7)](',\x20'),'sizes':_0xe94f1a(0xff)+_0x34d6b0+_0xe94f1a(0xe4)+_0x34d6b0+'px','type':_0xe94f1a(0x104)}]};}export function getImageDimension(_0x23f0ff,_0x552ee1,_0x431627){const _0x89c2b2=_0x3d46,_0x2f0d95=_0x23f0ff[_0x89c2b2(0xfe)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2f0d95?parseInt(_0x2f0d95[0x1],0xa):_0x552ee1,'height':_0x2f0d95?parseInt(_0x2f0d95[0x2],0xa):_0x431627};}export function showImageProcessingIndicator(_0x3bb6fd,_0x2a7bbc){const _0x10ec1a=_0x3d46,_0x415f9f=new(_0x39c7b8())(),_0x302404=_0x3bb6fd[_0x10ec1a(0xef)][_0x10ec1a(0xdf)](_0x10ec1a(0xfd)),_0x30a25e=_0x3bb6fd[_0x10ec1a(0xfb)][_0x10ec1a(0xe1)][_0x10ec1a(0x101)](_0x2a7bbc),_0x45f603=_0x302404[_0x10ec1a(0xec)](_0x30a25e),_0x22b9c9=_0x3bb6fd[_0x10ec1a(0xfb)][_0x10ec1a(0xd6)][_0x10ec1a(0xe5)][_0x10ec1a(0xe3)](_0x45f603),_0xa58330=_0x2a7bbc[_0x10ec1a(0xed)](_0x10ec1a(0xfa)),_0x4c37e3=_0x2a7bbc[_0x10ec1a(0xed)](_0x10ec1a(0xe0)),_0x18e7bc=_0x10ec1a(0xd3);_0x3bb6fd[_0x10ec1a(0xfb)][_0x10ec1a(0xd6)][_0x10ec1a(0x100)](_0x2ecb9c=>{const _0x5e3840=_0x10ec1a;_0x2ecb9c[_0x5e3840(0xee)](_0x18e7bc,_0x30a25e),_0x2ecb9c[_0x5e3840(0xd8)](_0x5e3840(0xf2),_0xa58330+'/'+_0x4c37e3,_0x45f603);}),_0x415f9f[_0x10ec1a(0x108)](_0x22b9c9,_0x10ec1a(0x106),()=>{const _0x6e8b7b=_0x10ec1a;_0x415f9f[_0x6e8b7b(0xda)](_0x22b9c9,_0x6e8b7b(0x106)),_0x3bb6fd[_0x6e8b7b(0xfb)][_0x6e8b7b(0xd6)][_0x6e8b7b(0x100)](_0x4becc4=>{const _0x314c17=_0x6e8b7b;_0x4becc4[_0x314c17(0xdb)](_0x18e7bc,_0x30a25e),_0x4becc4[_0x314c17(0x105)](_0x314c17(0xf2),_0x45f603);});});}function G(_0x5028be){const _0x394937=_0x3d46;if(Array[_0x394937(0xd5)](_0x5028be)){const _0x1eccac=_0x5028be[_0x394937(0xe7)](G);return _0xe0c9ce=>_0x1eccac[_0x394937(0xfc)](_0x1b5c66=>_0x1b5c66(_0xe0c9ce));}if(_0x394937(0xf3)==_0x5028be){const _0xd5e01f=_0x13f20d[_0x394937(0x102)][_0x394937(0xdd)][_0x394937(0xf3)];return _0x1a41b9=>new URL(_0x1a41b9,_0x13f20d[_0x394937(0xf9)][_0x394937(0x103)])[_0x394937(0xf3)]==_0xd5e01f;}return _0x394937(0xf8)==typeof _0x5028be?_0x5028be:_0x5028be instanceof RegExp?_0x4e25a9=>!(!_0x4e25a9[_0x394937(0xfe)](_0x5028be)&&!_0x4e25a9[_0x394937(0xe9)](/^https?:\/\//,'')[_0x394937(0xfe)](_0x5028be)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2f00(){var _0x326f53=['3852UwReWh','9104itWjoN','33HCFrfW','2770315glQQqU','includes','498jehtNX','140068oixRWW','6818PPEHYG','target','3889770JpWJnt','420198xKcIKL','201924AurALa'];_0x2f00=function(){return _0x326f53;};return _0x2f00();}(function(_0x5b1f33,_0x3f3741){var _0x461391=_0xa5bb,_0x2e0aa3=_0x5b1f33();while(!![]){try{var _0x1d13f2=parseInt(_0x461391(0x1db))/0x1+-parseInt(_0x461391(0x1dc))/0x2+-parseInt(_0x461391(0x1d3))/0x3*(parseInt(_0x461391(0x1d7))/0x4)+-parseInt(_0x461391(0x1d4))/0x5+parseInt(_0x461391(0x1d6))/0x6*(parseInt(_0x461391(0x1d8))/0x7)+parseInt(_0x461391(0x1d2))/0x8*(parseInt(_0x461391(0x1dd))/0x9)+parseInt(_0x461391(0x1da))/0xa;if(_0x1d13f2===_0x3f3741)break;else _0x2e0aa3['push'](_0x2e0aa3['shift']());}catch(_0x4120b7){_0x2e0aa3['push'](_0x2e0aa3['shift']());}}}(_0x2f00,0x523e5));function _0xa5bb(_0x426527,_0x1accb1){var _0x2f008e=_0x2f00();return _0xa5bb=function(_0xa5bb17,_0x473d0f){_0xa5bb17=_0xa5bb17-0x1d2;var _0x2544f2=_0x2f008e[_0xa5bb17];return _0x2544f2;},_0xa5bb(_0x426527,_0x1accb1);}import{getAncestors as _0x2f3c10}from'ckeditor5/src/utils.js';export function isAncestor(_0x10afa5,_0x224713){var _0x34309a=_0xa5bb;return _0x2f3c10(_0x10afa5[_0x34309a(0x1d9)])[_0x34309a(0x1d5)](_0x224713);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x1c0e(_0x27bb41,_0x1cfc3d){var _0x16cf6a=_0x16cf();return _0x1c0e=function(_0x1c0e3c,_0x1384fd){_0x1c0e3c=_0x1c0e3c-0x168;var _0x6ff2d2=_0x16cf6a[_0x1c0e3c];return _0x6ff2d2;},_0x1c0e(_0x27bb41,_0x1cfc3d);}var _0x58e8fb=_0x1c0e;(function(_0x169c3c,_0x8d8c84){var _0x4a9b1b=_0x1c0e,_0x2a9a1e=_0x169c3c();while(!![]){try{var _0xeb624b=parseInt(_0x4a9b1b(0x16b))/0x1+parseInt(_0x4a9b1b(0x16c))/0x2*(-parseInt(_0x4a9b1b(0x16a))/0x3)+-parseInt(_0x4a9b1b(0x169))/0x4+parseInt(_0x4a9b1b(0x172))/0x5+-parseInt(_0x4a9b1b(0x16d))/0x6+-parseInt(_0x4a9b1b(0x170))/0x7+-parseInt(_0x4a9b1b(0x16e))/0x8*(-parseInt(_0x4a9b1b(0x16f))/0x9);if(_0xeb624b===_0x8d8c84)break;else _0x2a9a1e['push'](_0x2a9a1e['shift']());}catch(_0x7b8ad5){_0x2a9a1e['push'](_0x2a9a1e['shift']());}}}(_0x16cf,0x19296));import{uploadFile as _0x39a7e5,info as _0x4f280c}from'@uploadcare/upload-client';function _0x16cf(){var _0x4dbf62=['39007nYTbno','254036hGFCrj','538860QsMZwN','8OCqwhQ','4540851MyvekC','607131hjKLVB','upload','247810OPMihx','getInfo','745940qjBQvV','3TaDMVG'];_0x16cf=function(){return _0x4dbf62;};return _0x16cf();}export class UploadUtils{static[_0x58e8fb(0x171)]({file:_0x1a885f,..._0x5befe2}){return _0x39a7e5(_0x1a885f,_0x5befe2);}static[_0x58e8fb(0x168)](_0x525489,_0x29d9ef){return _0x4f280c(_0x525489,_0x29d9ef);}}
|