@ckeditor/ckeditor5-uploadcare 47.4.0-alpha.2 → 47.4.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{SpinnerView as
|
|
23
|
+
import{SpinnerView as _0x2be8df,View as _0x57987d}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x57987d{constructor(_0x290874){super(_0x290874);const t=_0x290874['t'],_0xb1c381=this['bindTemplate'],_0x535529=new _0x2be8df();_0x535529['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':[_0x535529,{'text':_0xb1c381['to']('imageUploadProgress',_0x1f9edd=>t('Loading\x20image...')+'\x20('+(_0x1f9edd||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 _0x417812=_0x8c85;function _0x3938(){const _0x2ad9f1=['uploading','target','9YHFPJO','addedNodes','1409076NxYwTS','focus','ready','disconnect','2200ARmPiO','44XaMPKW','observe','_loadingView','clear','addEventListener','ck-reset_all-excluded','retry','1142151eGnTXP','fire','7106094nEKTgj','_addErrorViewListeners','6GtfBgl','_errorView','318532tDbrgA','_items','1948680TgFHQv','element','addMany','nodeName','filter','detail','error','_setView','toLowerCase','32543kxrYlC','_waitForImageEditorComponent','_addUploadcareImageEditorListeners','status','length','change:status','cancel','setTemplate','render','once','apply','_editingView','ck-uploadcare-form','uc-cloud-image-editor','createCollection','set','querySelector','4497175DWBxia','cdnUrl','_focusableView','add','div','getFocusableElement'];_0x3938=function(){return _0x2ad9f1;};return _0x3938();}(function(_0x4a4d76,_0x5eca8d){const _0x523da1=_0x8c85,_0x17b957=_0x4a4d76();while(!![]){try{const _0x4de396=parseInt(_0x523da1(0xe0))/0x1+-parseInt(_0x523da1(0xe6))/0x2*(parseInt(_0x523da1(0x10a))/0x3)+-parseInt(_0x523da1(0x10c))/0x4+parseInt(_0x523da1(0x102))/0x5*(-parseInt(_0x523da1(0xe4))/0x6)+-parseInt(_0x523da1(0xf1))/0x7*(-parseInt(_0x523da1(0x110))/0x8)+parseInt(_0x523da1(0xe2))/0x9+parseInt(_0x523da1(0xe8))/0xa*(-parseInt(_0x523da1(0x111))/0xb);if(_0x4de396===_0x5eca8d)break;else _0x17b957['push'](_0x17b957['shift']());}catch(_0x2a10a9){_0x17b957['push'](_0x17b957['shift']());}}}(_0x3938,0xab322));import{View as _0x1e747}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x377bc8}from'./uploadcareimageeditformloadingview.js';function _0x8c85(_0x28753e,_0x4e7920){const _0x393883=_0x3938();return _0x8c85=function(_0x8c854d,_0x45df72){_0x8c854d=_0x8c854d-0xdc;let _0x1e1b3a=_0x393883[_0x8c854d];return _0x1e1b3a;},_0x8c85(_0x28753e,_0x4e7920);}import{UploadcareImageEditFormErrorView as _0x76e7b2}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x338738}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x57ea25}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x57ea25{[_0x417812(0xe7)];[_0x417812(0x113)];[_0x417812(0xe5)];[_0x417812(0xfc)];[_0x417812(0x104)];constructor(_0x4b3c3d,_0x4802aa,_0x3bd6dd){const _0x205ab6=_0x417812;super(_0x4b3c3d),this[_0x205ab6(0xe7)]=this[_0x205ab6(0xff)](),this[_0x205ab6(0x113)]=new _0x377bc8(_0x4b3c3d),this[_0x205ab6(0xe5)]=new _0x76e7b2(_0x4b3c3d),this[_0x205ab6(0xfc)]=new _0x338738(_0x4b3c3d,_0x3bd6dd),this[_0x205ab6(0x104)]=new _0x1e747(_0x4b3c3d),this[_0x205ab6(0x104)][_0x205ab6(0xf8)](this[_0x205ab6(0x107)]()),this[_0x205ab6(0x100)](_0x205ab6(0xf4),_0x4802aa),this[_0x205ab6(0xf8)]({'tag':_0x205ab6(0x106),'attributes':{'class':['ck',_0x205ab6(0xde),_0x205ab6(0xfd)],'tabindex':'-1'},'children':this[_0x205ab6(0xe7)]}),this[_0x205ab6(0xef)](),this[_0x205ab6(0xfa)](_0x205ab6(0xf9),()=>{const _0x95d74e=_0x205ab6;this[_0x95d74e(0xf2)](this[_0x95d74e(0xe9)],_0xae7d9f=>{const _0x27a6a5=_0x95d74e;this[_0x27a6a5(0xf3)](_0xae7d9f);});}),this['on'](_0x205ab6(0xf6),()=>{const _0x4b866b=_0x205ab6;this[_0x4b866b(0xef)]();}),this[_0x205ab6(0xe3)]();}[_0x417812(0x10d)](){const _0x310a1c=_0x417812;this[_0x310a1c(0xe9)][_0x310a1c(0x10d)]();}[_0x417812(0xef)](){const _0x44189c=_0x417812;switch(this[_0x44189c(0xe7)][_0x44189c(0xdc)](),this[_0x44189c(0xf4)]){case _0x44189c(0x108):this[_0x44189c(0xe7)][_0x44189c(0x105)](this[_0x44189c(0x113)]);break;case _0x44189c(0xee):this[_0x44189c(0xe7)][_0x44189c(0x105)](this[_0x44189c(0xe5)]);break;case _0x44189c(0x10e):this[_0x44189c(0xe7)][_0x44189c(0xea)]([this[_0x44189c(0xfc)],this[_0x44189c(0x104)]]);}}[_0x417812(0xf2)](_0x36fb3b,_0x46aaef){const _0x3f0109=_0x417812,_0x14a95c=_0x3f0109(0xfe),_0x4911b9=_0x36fb3b[_0x3f0109(0x101)](_0x14a95c);if(_0x4911b9)return _0x46aaef(_0x4911b9);const _0x52b628=new MutationObserver(_0xb5b33c=>{const _0x4bceef=_0x3f0109,_0x1af9aa=_0xb5b33c[_0x4bceef(0xec)](_0x237c19=>_0x237c19[_0x4bceef(0x109)]===_0x36fb3b&&_0x237c19[_0x4bceef(0x10b)][_0x4bceef(0xf5)]>0x0&&_0x237c19[_0x4bceef(0x10b)][0x0][_0x4bceef(0xeb)][_0x4bceef(0xf0)]()===_0x14a95c);_0x1af9aa[_0x4bceef(0xf5)]&&(_0x52b628[_0x4bceef(0x10f)](),_0x46aaef(_0x1af9aa[0x0][_0x4bceef(0x10b)][0x0]));});_0x52b628[_0x3f0109(0x112)](_0x36fb3b,{'childList':!0x0,'subtree':!0x0});}[_0x417812(0xf3)](_0x81821e){const _0x273894=_0x417812;_0x81821e[_0x273894(0xdd)](_0x273894(0xfb),_0x3bb2af=>{const _0x51a4d8=_0x273894;this[_0x51a4d8(0xe1)](_0x51a4d8(0xfb),{'imageSrc':_0x3bb2af[_0x51a4d8(0xed)][_0x51a4d8(0x103)]});}),_0x81821e[_0x273894(0xdd)](_0x273894(0xf7),()=>{const _0x5aad2c=_0x273894;this[_0x5aad2c(0xe1)](_0x5aad2c(0xf7));});}[_0x417812(0xe3)](){const _0x3e5ded=_0x417812;this[_0x3e5ded(0xe5)]['on'](_0x3e5ded(0xdf),()=>{const _0x1b5b3c=_0x3e5ded;this[_0x1b5b3c(0xe1)](_0x1b5b3c(0xdf));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31bd06=_0x2292;(function(_0x5f1369,_0x41758e){const _0x1ba02f=_0x2292,_0x2086dc=_0x5f1369();while(!![]){try{const _0x692d9d=parseInt(_0x1ba02f(0x1c6))/0x1+parseInt(_0x1ba02f(0x1b3))/0x2+parseInt(_0x1ba02f(0x1b5))/0x3*(-parseInt(_0x1ba02f(0x1b2))/0x4)+parseInt(_0x1ba02f(0x1b9))/0x5+-parseInt(_0x1ba02f(0x1c7))/0x6*(-parseInt(_0x1ba02f(0x1ae))/0x7)+parseInt(_0x1ba02f(0x1af))/0x8+-parseInt(_0x1ba02f(0x1c8))/0x9;if(_0x692d9d===_0x41758e)break;else _0x2086dc['push'](_0x2086dc['shift']());}catch(_0x391615){_0x2086dc['push'](_0x2086dc['shift']());}}}(_0x85c8,0x72ccf));import{Command as _0x337ade}from'ckeditor5/src/core.js';import{Dialog as _0x3b18ef}from'ckeditor5/src/ui.js';function _0x85c8(){const _0x4ad40c=['1072508jjoEps','plugins','1206bFHQjY','set','get','imageInline','4039075kcOQGf','getSelectedElement','element','imageBlock','bind','unbind','_isEditable','requires','uploadcare.allowExternalImagesEditing','editor','selection','isActive','isEnabled','889279gKzHid','6vFHloz','13751658kHtcQI','imageEditController','config','execute','model','867685SRNHre','1626240PahxCd','document','refresh','5596HQYfxt'];_0x85c8=function(){return _0x4ad40c;};return _0x85c8();}import{UploadcareImageEditController as _0x10a10f}from'./ui/uploadcareimageeditcontroller.js';function _0x2292(_0x54e1e2,_0xb098ec){const _0x85c8c0=_0x85c8();return _0x2292=function(_0x229289,_0x368c85){_0x229289=_0x229289-0x1ac;let _0x5c2aed=_0x85c8c0[_0x229289];return _0x5c2aed;},_0x2292(_0x54e1e2,_0xb098ec);}import{createEditabilityChecker as _0x32e1d4}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x337ade{[_0x31bd06(0x1c9)];static get[_0x31bd06(0x1c0)](){return[_0x3b18ef];}[_0x31bd06(0x1bf)];constructor(_0x2b713a){const _0x40a057=_0x31bd06;super(_0x2b713a),this[_0x40a057(0x1c9)]=void 0x0,this[_0x40a057(0x1bf)]=_0x32e1d4(_0x2b713a[_0x40a057(0x1ca)][_0x40a057(0x1b7)](_0x40a057(0x1c1))||[]),this[_0x40a057(0x1b6)]({'isActive':!0x1});}[_0x31bd06(0x1b1)](){const _0x565056=_0x31bd06,_0x506d0c=this[_0x565056(0x1c2)][_0x565056(0x1ad)][_0x565056(0x1b0)][_0x565056(0x1c3)][_0x565056(0x1ba)]();this[_0x565056(0x1c5)]=this[_0x565056(0x1bf)](_0x506d0c);}[_0x31bd06(0x1ac)](){const _0x2d8c43=_0x31bd06;this[_0x2d8c43(0x1c9)]&&(this[_0x2d8c43(0x1be)](_0x2d8c43(0x1c4)),this[_0x2d8c43(0x1c9)]=void 0x0);const _0x22faad=this[_0x2d8c43(0x1c2)][_0x2d8c43(0x1ad)][_0x2d8c43(0x1b0)][_0x2d8c43(0x1c3)][_0x2d8c43(0x1ba)]();_0x22faad&&(_0x22faad['is'](_0x2d8c43(0x1bb),_0x2d8c43(0x1bc))||_0x22faad['is'](_0x2d8c43(0x1bb),_0x2d8c43(0x1b8)))&&(this[_0x2d8c43(0x1c9)]=new _0x10a10f(this[_0x2d8c43(0x1c2)],this[_0x2d8c43(0x1c2)][_0x2d8c43(0x1b4)][_0x2d8c43(0x1b7)](_0x3b18ef),_0x22faad),this[_0x2d8c43(0x1bd)](_0x2d8c43(0x1c4))['to'](this[_0x2d8c43(0x1c9)],_0x2d8c43(0x1c4)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4395da=_0x53d3;(function(_0x53b699,_0x3475cf){const _0x2b78f6=_0x53d3,_0x17089d=_0x53b699();while(!![]){try{const _0x58978b=parseInt(_0x2b78f6(0x7a))/0x1*(parseInt(_0x2b78f6(0x7b))/0x2)+-parseInt(_0x2b78f6(0x82))/0x3*(-parseInt(_0x2b78f6(0x80))/0x4)+-parseInt(_0x2b78f6(0x7d))/0x5+-parseInt(_0x2b78f6(0x8e))/0x6+-parseInt(_0x2b78f6(0x83))/0x7+parseInt(_0x2b78f6(0x84))/0x8+parseInt(_0x2b78f6(0x7c))/0x9*(parseInt(_0x2b78f6(0x81))/0xa);if(_0x58978b===_0x3475cf)break;else _0x17089d['push'](_0x17089d['shift']());}catch(_0x2757ea){_0x17089d['push'](_0x17089d['shift']());}}}(_0x54fd,0xc5424));import{Plugin as _0xd33029}from'ckeditor5/src/core.js';function _0x53d3(_0x5aca70,_0x55dae2){const _0x54fd78=_0x54fd();return _0x53d3=function(_0x53d308,_0x296b8e){_0x53d308=_0x53d308-0x79;let _0x32b439=_0x54fd78[_0x53d308];return _0x32b439;},_0x53d3(_0x5aca70,_0x55dae2);}import{Notification as _0x17a4be}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x35d60c}from'./uploadcareimageeditcommand.js';function _0x54fd(){const _0x5f05b7=['2139240wFkgAp','requires','ImageUtils','uploadcareImageReplace','isPremiumPlugin','pluginName','init','isOfficialPlugin','uploadcareImageEdit','add','4747050xJEnjr','ImageEditing','196654hCLXtZ','8iOBPfi','3995847COkfJY','3492065PQOrfI','commands','UploadcareImageEditEditing','5464FaDotV','10wdpizE','3081BCVirF','4223282SVfIRN'];_0x54fd=function(){return _0x5f05b7;};return _0x54fd();}import{UploadcareImageReplaceCommand as _0x18d22c}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x5979dd}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0xd33029{static get[_0x4395da(0x89)](){const _0x2456e2=_0x4395da;return _0x2456e2(0x7f);}static get[_0x4395da(0x85)](){const _0x53a80f=_0x4395da;return[_0x5979dd,_0x17a4be,_0x53a80f(0x86),_0x53a80f(0x79)];}static get[_0x4395da(0x8b)](){return!0x0;}static get[_0x4395da(0x88)](){return!0x0;}[_0x4395da(0x8a)](){const _0x2e0a9a=_0x4395da,{editor:_0xab73fc}=this;_0xab73fc[_0x2e0a9a(0x7e)][_0x2e0a9a(0x8d)](_0x2e0a9a(0x8c),new _0x35d60c(_0xab73fc)),_0xab73fc[_0x2e0a9a(0x7e)][_0x2e0a9a(0x8d)](_0x2e0a9a(0x87),new _0x18d22c(_0xab73fc));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x24e439}from'ckeditor5/src/core.js';import{ButtonView as _0x537c8c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1f444b}from'ckeditor5/src/icons.js';import{createElement as _0x2c7680}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 _0x24e439{['_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 _0x44992b=this['editor'];_0x44992b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x38e659=>{const _0x5b2e25=_0x44992b['commands']['get']('uploadcareImageEdit'),_0x482b85=new _0x537c8c(_0x38e659),t=_0x38e659['t'];return _0x482b85['set']({'icon':_0x1f444b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x482b85['bind']('isEnabled')['to'](_0x5b2e25),_0x482b85['bind']('isOn')['to'](_0x5b2e25,'isActive'),this['listenTo'](_0x482b85,'execute',()=>{_0x44992b['execute']('uploadcareImageEdit'),_0x44992b['editing']['view']['focus']();}),_0x482b85;}),this['_initConfig']();}['_initConfig'](){const _0xc0ba7c=_0x2c7680(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xc0ba7c),this['listenTo'](this['editor'],'destroy',()=>{_0xc0ba7c['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x475b2a=_0x2a3a;(function(_0x1a4c31,_0x5b39c7){var _0x1565a9=_0x2a3a,_0x6b79e=_0x1a4c31();while(!![]){try{var _0x58e3f7=-parseInt(_0x1565a9(0x160))/0x1*(parseInt(_0x1565a9(0x15a))/0x2)+parseInt(_0x1565a9(0x158))/0x3+parseInt(_0x1565a9(0x16b))/0x4+parseInt(_0x1565a9(0x15d))/0x5*(-parseInt(_0x1565a9(0x162))/0x6)+-parseInt(_0x1565a9(0x15f))/0x7*(-parseInt(_0x1565a9(0x161))/0x8)+parseInt(_0x1565a9(0x169))/0x9*(-parseInt(_0x1565a9(0x164))/0xa)+parseInt(_0x1565a9(0x167))/0xb;if(_0x58e3f7===_0x5b39c7)break;else _0x6b79e['push'](_0x6b79e['shift']());}catch(_0x46f882){_0x6b79e['push'](_0x6b79e['shift']());}}}(_0x428a,0xe7aa5));function _0x2a3a(_0xc51db8,_0x238364){var _0x428ae1=_0x428a();return _0x2a3a=function(_0x2a3a23,_0x1d57fb){_0x2a3a23=_0x2a3a23-0x158;var _0x34a404=_0x428ae1[_0x2a3a23];return _0x34a404;},_0x2a3a(_0xc51db8,_0x238364);}import{FocusTracker as _0x80ebd0}from'ckeditor5/src/utils.js';import{View as _0x34334f,FocusCycler as _0x330a7d}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x34334f{[_0x475b2a(0x15b)];[_0x475b2a(0x159)];constructor(_0x28e30e){var _0x21456e=_0x475b2a;super(_0x28e30e),this[_0x21456e(0x15b)]=new _0x80ebd0(),this[_0x21456e(0x159)]=new _0x330a7d({'focusables':this[_0x21456e(0x168)](),'focusTracker':this[_0x21456e(0x15b)]});}[_0x475b2a(0x166)](){var _0x23fa80=_0x475b2a;return{'tag':_0x23fa80(0x163),'attributes':{'aria-hidden':_0x23fa80(0x15c),'tabindex':'0'},'on':{'focus':this[_0x23fa80(0x15e)]['to'](()=>{var _0x4c1efa=_0x23fa80;this[_0x4c1efa(0x159)][_0x4c1efa(0x165)](_0x4c1efa(0x16a));})}};}}function _0x428a(){var _0x4ee7bf=['4923YLdPWt','forwardCycle','5289312FqlpUI','5020185OTjdaT','focusCycler','134KJpNXF','focusTracker','true','5RzPmKq','bindTemplate','14pvscmm','26027fnnEje','860968XxJDEi','4540494LDcuoU','div','31030CqPTZp','fire','getFocusableElement','21294185ZOchgV','createCollection'];_0x428a=function(){return _0x4ee7bf;};return _0x428a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x285f(_0x59a85f,_0x4a5cde){const _0x103dd1=_0x103d();return _0x285f=function(_0x285f33,_0x1d2a2d){_0x285f33=_0x285f33-0x92;let _0x161a50=_0x103dd1[_0x285f33];return _0x161a50;},_0x285f(_0x59a85f,_0x4a5cde);}(function(_0x257570,_0x4f6ccb){const _0x3caf99=_0x285f,_0x28ff02=_0x257570();while(!![]){try{const _0x42f3d8=-parseInt(_0x3caf99(0xa2))/0x1+parseInt(_0x3caf99(0xa7))/0x2*(parseInt(_0x3caf99(0xa4))/0x3)+-parseInt(_0x3caf99(0xb8))/0x4+-parseInt(_0x3caf99(0xc4))/0x5+-parseInt(_0x3caf99(0xc5))/0x6+-parseInt(_0x3caf99(0xa8))/0x7*(-parseInt(_0x3caf99(0xc0))/0x8)+parseInt(_0x3caf99(0x9d))/0x9;if(_0x42f3d8===_0x4f6ccb)break;else _0x28ff02['push'](_0x28ff02['shift']());}catch(_0x4b10ec){_0x28ff02['push'](_0x28ff02['shift']());}}}(_0x103d,0x36f7a));import{global as _0x279f60,DomEmitterMixin as _0x5453cd}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0xcea307){const _0x119f46=_0x285f,_0x4077a4=z(_0xcea307);return _0x426582=>!(!_0x426582||!_0x426582['is'](_0x119f46(0xc7),_0x119f46(0xb1))&&!_0x426582['is'](_0x119f46(0xc7),_0x119f46(0xc8)))&&(!!_0x426582[_0x119f46(0xaf)](_0x119f46(0xbf))||!!_0x426582[_0x119f46(0xaf)](_0x119f46(0x9f))&&_0x4077a4(_0x426582[_0x119f46(0xbb)](_0x119f46(0x9f))));}export function getImageUrls(_0xaecca7,_0x282653){const _0x33ee7a=_0x285f,_0x2c2e7a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x33ee7a(0x92)](_0x138463=>_0x138463<=_0x282653)[_0x33ee7a(0x98)](_0x5e151d=>_0xaecca7[_0x33ee7a(0xb9)](/\/$/,'')+_0x33ee7a(0x99)+_0x5e151d+_0x33ee7a(0x97)+_0x5e151d+'w');return{'imageFallbackUrl':_0xaecca7,'imageSources':[{'srcset':_0x2c2e7a[_0x33ee7a(0xc1)](',\x20'),'sizes':_0x33ee7a(0x94)+_0x282653+_0x33ee7a(0x95)+_0x282653+'px','type':_0x33ee7a(0x9c)}]};}export function getImageDimension(_0x176b63,_0x358142,_0x2fe33f){const _0x25f784=_0x285f,_0x114b97=_0x176b63[_0x25f784(0xba)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x114b97?parseInt(_0x114b97[0x1],0xa):_0x358142,'height':_0x114b97?parseInt(_0x114b97[0x2],0xa):_0x2fe33f};}export function showImageProcessingIndicator(_0x3dc532,_0x29ca1d){const _0x242a90=_0x285f,_0x480ceb=new(_0x5453cd())(),_0x5f4628=_0x3dc532[_0x242a90(0xb0)][_0x242a90(0xbc)](_0x242a90(0xad)),_0x5da25e=_0x3dc532[_0x242a90(0xb5)][_0x242a90(0xa1)][_0x242a90(0x9b)](_0x29ca1d),_0x599abb=_0x5f4628[_0x242a90(0xb6)](_0x5da25e),_0x137985=_0x3dc532[_0x242a90(0xb5)][_0x242a90(0xc6)][_0x242a90(0xb2)][_0x242a90(0xae)](_0x599abb),_0x34a38a=_0x29ca1d[_0x242a90(0xbb)](_0x242a90(0xb3)),_0x10572e=_0x29ca1d[_0x242a90(0xbb)](_0x242a90(0x9e)),_0x2875d4=_0x242a90(0x93);_0x3dc532[_0x242a90(0xb5)][_0x242a90(0xc6)][_0x242a90(0xac)](_0x37be63=>{const _0x1a884d=_0x242a90;_0x37be63[_0x1a884d(0xc2)](_0x2875d4,_0x5da25e),_0x37be63[_0x1a884d(0xc9)](_0x1a884d(0xa6),_0x34a38a+'/'+_0x10572e,_0x599abb);}),_0x480ceb[_0x242a90(0xb7)](_0x137985,_0x242a90(0xc3),()=>{const _0x30074a=_0x242a90;_0x480ceb[_0x30074a(0xb4)](_0x137985,_0x30074a(0xc3)),_0x3dc532[_0x30074a(0xb5)][_0x30074a(0xc6)][_0x30074a(0xac)](_0x2312db=>{const _0x735264=_0x30074a;_0x2312db[_0x735264(0xa3)](_0x2875d4,_0x5da25e),_0x2312db[_0x735264(0xbe)](_0x735264(0xa6),_0x599abb);});});}function z(_0x24943f){const _0x3b8b59=_0x285f;if(Array[_0x3b8b59(0xaa)](_0x24943f)){const _0x4359a6=_0x24943f[_0x3b8b59(0x98)](z);return _0x2c7319=>_0x4359a6[_0x3b8b59(0xa9)](_0x26f120=>_0x26f120(_0x2c7319));}if(_0x3b8b59(0x96)==_0x24943f){const _0x17627e=_0x279f60[_0x3b8b59(0x9a)][_0x3b8b59(0xab)][_0x3b8b59(0x96)];return _0x55bd71=>new URL(_0x55bd71,_0x279f60[_0x3b8b59(0xa0)][_0x3b8b59(0xa5)])[_0x3b8b59(0x96)]==_0x17627e;}return _0x3b8b59(0xbd)==typeof _0x24943f?_0x24943f:_0x24943f instanceof RegExp?_0x754dfb=>!(!_0x754dfb[_0x3b8b59(0xba)](_0x24943f)&&!_0x754dfb[_0x3b8b59(0xb9)](/^https?:\/\//,'')[_0x3b8b59(0xba)](_0x24943f)):()=>!0x1;}function _0x103d(){const _0x24d74d=['removeStyle','uploadcareImageId','1333496DMcyqb','join','addClass','load','779700zufEzw','156924SklwiN','view','element','imageInline','setStyle','filter','image-processing','(max-width:\x20','px)\x20100vw,\x20','origin','x/\x20','map','/-/resize/','window','toViewElement','image/webp','7553583Zlmfhn','height','src','document','mapper','388779nSJozA','removeClass','74724EIFcwj','baseURI','aspect-ratio','8kpXDLG','7jbDgEX','some','isArray','location','change','ImageUtils','viewToDom','hasAttribute','plugins','imageBlock','domConverter','width','stopListening','editing','findViewImgElement','listenTo','1238348VaohsR','replace','match','getAttribute','get','function'];_0x103d=function(){return _0x24d74d;};return _0x103d();}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x399f(){var _0x116931=['38AnXoSW','826100pHleBV','target','3525081xUgDGJ','1074496iZMDkb','126nEeyrp','837dVYZWW','525510dcgGAq','29312kJoZJF','48155JVAjZW','23448sdNvGK','includes'];_0x399f=function(){return _0x116931;};return _0x399f();}(function(_0x4d1735,_0x4053f9){var _0x140d21=_0x2841,_0x37ed74=_0x4d1735();while(!![]){try{var _0x1e9488=parseInt(_0x140d21(0x99))/0x1*(parseInt(_0x140d21(0x95))/0x2)+-parseInt(_0x140d21(0x94))/0x3+parseInt(_0x140d21(0x91))/0x4+-parseInt(_0x140d21(0x96))/0x5*(parseInt(_0x140d21(0x92))/0x6)+-parseInt(_0x140d21(0x9c))/0x7+-parseInt(_0x140d21(0x97))/0x8*(-parseInt(_0x140d21(0x93))/0x9)+parseInt(_0x140d21(0x9a))/0xa;if(_0x1e9488===_0x4053f9)break;else _0x37ed74['push'](_0x37ed74['shift']());}catch(_0x3eb1f7){_0x37ed74['push'](_0x37ed74['shift']());}}}(_0x399f,0x492dd));function _0x2841(_0xc9ca22,_0x328ff1){var _0x399f0e=_0x399f();return _0x2841=function(_0x28414a,_0x4f89f7){_0x28414a=_0x28414a-0x91;var _0x70519=_0x399f0e[_0x28414a];return _0x70519;},_0x2841(_0xc9ca22,_0x328ff1);}import{getAncestors as _0x16ac33}from'ckeditor5/src/utils.js';export function isAncestor(_0x323c9b,_0x5c85f5){var _0x4b4de7=_0x2841;return _0x16ac33(_0x323c9b[_0x4b4de7(0x9b)])[_0x4b4de7(0x98)](_0x5c85f5);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4b02(_0x588b1b,_0x472bf8){var _0x3b5496=_0x3b54();return _0x4b02=function(_0x4b0247,_0x22d6b4){_0x4b0247=_0x4b0247-0x184;var _0x443e5f=_0x3b5496[_0x4b0247];return _0x443e5f;},_0x4b02(_0x588b1b,_0x472bf8);}var _0x29f5af=_0x4b02;(function(_0x14f58a,_0x56c62f){var _0x50fb71=_0x4b02,_0x4f4299=_0x14f58a();while(!![]){try{var _0x3a6301=parseInt(_0x50fb71(0x186))/0x1+-parseInt(_0x50fb71(0x18f))/0x2*(-parseInt(_0x50fb71(0x187))/0x3)+parseInt(_0x50fb71(0x188))/0x4*(-parseInt(_0x50fb71(0x18b))/0x5)+-parseInt(_0x50fb71(0x189))/0x6*(-parseInt(_0x50fb71(0x18a))/0x7)+parseInt(_0x50fb71(0x18c))/0x8+parseInt(_0x50fb71(0x18d))/0x9+-parseInt(_0x50fb71(0x185))/0xa;if(_0x3a6301===_0x56c62f)break;else _0x4f4299['push'](_0x4f4299['shift']());}catch(_0x3aeffd){_0x4f4299['push'](_0x4f4299['shift']());}}}(_0x3b54,0xa52ea));function _0x3b54(){var _0x57134b=['13848HDIXTC','30066WmvpJv','1505VYJeYz','340WfKget','3879224bcFShP','3866166BrNOZE','getInfo','314QKfBGz','upload','24855280tvdgQW','433387DwOcrm','18579SEgwAI'];_0x3b54=function(){return _0x57134b;};return _0x3b54();}import{uploadFile as _0x3cea5a,info as _0x7cbe68}from'@uploadcare/upload-client';export class UploadUtils{static[_0x29f5af(0x184)]({file:_0x5c7751,..._0x1bafa6}){return _0x3cea5a(_0x5c7751,_0x1bafa6);}static[_0x29f5af(0x18e)](_0x5e9937,_0x3c698c){return _0x7cbe68(_0x5e9937,_0x3c698c);}}
|