@ckeditor/ckeditor5-uploadcare 47.3.0-alpha.3 → 47.3.0-alpha.5
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 _0x12cee7,View as _0x269307}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x269307{constructor(_0x38826e){super(_0x38826e);const t=_0x38826e['t'],_0x229345=this['bindTemplate'],_0x5412d5=new _0x12cee7();_0x5412d5['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':[_0x5412d5,{'text':_0x229345['to']('imageUploadProgress',_0x178b27=>t('Loading\x20image...')+'\x20('+(_0x178b27||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 _0x248d1f=_0x34c2;(function(_0x33628c,_0x54e0eb){const _0x143e07=_0x34c2,_0x93f1df=_0x33628c();while(!![]){try{const _0x1ef3a5=parseInt(_0x143e07(0x16d))/0x1*(-parseInt(_0x143e07(0x185))/0x2)+parseInt(_0x143e07(0x174))/0x3*(parseInt(_0x143e07(0x18b))/0x4)+-parseInt(_0x143e07(0x168))/0x5*(-parseInt(_0x143e07(0x16c))/0x6)+parseInt(_0x143e07(0x186))/0x7*(parseInt(_0x143e07(0x18f))/0x8)+-parseInt(_0x143e07(0x17a))/0x9*(-parseInt(_0x143e07(0x190))/0xa)+parseInt(_0x143e07(0x160))/0xb*(-parseInt(_0x143e07(0x163))/0xc)+parseInt(_0x143e07(0x178))/0xd;if(_0x1ef3a5===_0x54e0eb)break;else _0x93f1df['push'](_0x93f1df['shift']());}catch(_0x25cdb4){_0x93f1df['push'](_0x93f1df['shift']());}}}(_0x1b16,0xaf4f6));import{View as _0x25376f}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1e9f61}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x753c7f}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x2c800e}from'./uploadcareimageeditformeditingview.js';function _0x1b16(){const _0x2bafca=['div','_focusableView','_errorView','getFocusableElement','toLowerCase','ready','132654uyenIE','84889KUMDqq','addMany','querySelector','cancel','detail','21116jxEDzR','add','cdnUrl','addedNodes','544krkMXk','6515390IZOOnY','_setView','_items','_loadingView','status','set','_editingView','uploading','_waitForImageEditorComponent','setTemplate','984467eRnECw','target','ck-reset_all-excluded','84jAYrxS','length','once','_addErrorViewListeners','focus','435TlUPOL','nodeName','element','createCollection','24834XRTqCL','17ckKEyE','uc-cloud-image-editor','fire','addEventListener','change:status','_addUploadcareImageEditorListeners','filter','135YZZOth','disconnect','apply','render','5177705zykuQy','ck-uploadcare-form','9zhYEox','clear','retry','observe','error'];_0x1b16=function(){return _0x2bafca;};return _0x1b16();}function _0x34c2(_0x45b09b,_0x4f8f95){const _0x1b1641=_0x1b16();return _0x34c2=function(_0x34c27e,_0x140ddc){_0x34c27e=_0x34c27e-0x15f;let _0x575323=_0x1b1641[_0x34c27e];return _0x575323;},_0x34c2(_0x45b09b,_0x4f8f95);}import{DialogFocusManagerView as _0x58c1cd}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x58c1cd{[_0x248d1f(0x192)];[_0x248d1f(0x193)];[_0x248d1f(0x181)];[_0x248d1f(0x196)];[_0x248d1f(0x180)];constructor(_0x51ad6a,_0x2682a5,_0x23891f){const _0xfee8b=_0x248d1f;super(_0x51ad6a),this[_0xfee8b(0x192)]=this[_0xfee8b(0x16b)](),this[_0xfee8b(0x193)]=new _0x1e9f61(_0x51ad6a),this[_0xfee8b(0x181)]=new _0x753c7f(_0x51ad6a),this[_0xfee8b(0x196)]=new _0x2c800e(_0x51ad6a,_0x23891f),this[_0xfee8b(0x180)]=new _0x25376f(_0x51ad6a),this[_0xfee8b(0x180)][_0xfee8b(0x15f)](this[_0xfee8b(0x182)]()),this[_0xfee8b(0x195)](_0xfee8b(0x194),_0x2682a5),this[_0xfee8b(0x15f)]({'tag':_0xfee8b(0x17f),'attributes':{'class':['ck',_0xfee8b(0x162),_0xfee8b(0x179)],'tabindex':'-1'},'children':this[_0xfee8b(0x192)]}),this[_0xfee8b(0x191)](),this[_0xfee8b(0x165)](_0xfee8b(0x177),()=>{const _0x1f7442=_0xfee8b;this[_0x1f7442(0x198)](this[_0x1f7442(0x16a)],_0x175aed=>{const _0x5dec8=_0x1f7442;this[_0x5dec8(0x172)](_0x175aed);});}),this['on'](_0xfee8b(0x171),()=>{const _0x5362bc=_0xfee8b;this[_0x5362bc(0x191)]();}),this[_0xfee8b(0x166)]();}[_0x248d1f(0x167)](){const _0x173638=_0x248d1f;this[_0x173638(0x16a)][_0x173638(0x167)]();}[_0x248d1f(0x191)](){const _0x2387d9=_0x248d1f;switch(this[_0x2387d9(0x192)][_0x2387d9(0x17b)](),this[_0x2387d9(0x194)]){case _0x2387d9(0x197):this[_0x2387d9(0x192)][_0x2387d9(0x18c)](this[_0x2387d9(0x193)]);break;case _0x2387d9(0x17e):this[_0x2387d9(0x192)][_0x2387d9(0x18c)](this[_0x2387d9(0x181)]);break;case _0x2387d9(0x184):this[_0x2387d9(0x192)][_0x2387d9(0x187)]([this[_0x2387d9(0x196)],this[_0x2387d9(0x180)]]);}}[_0x248d1f(0x198)](_0x82edfa,_0x243c90){const _0x4c5e34=_0x248d1f,_0x3505da=_0x4c5e34(0x16e),_0x2d8b58=_0x82edfa[_0x4c5e34(0x188)](_0x3505da);if(_0x2d8b58)return _0x243c90(_0x2d8b58);const _0x36d6f6=new MutationObserver(_0x312b39=>{const _0xc13d2f=_0x4c5e34,_0x3c975c=_0x312b39[_0xc13d2f(0x173)](_0x48d95b=>_0x48d95b[_0xc13d2f(0x161)]===_0x82edfa&&_0x48d95b[_0xc13d2f(0x18e)][_0xc13d2f(0x164)]>0x0&&_0x48d95b[_0xc13d2f(0x18e)][0x0][_0xc13d2f(0x169)][_0xc13d2f(0x183)]()===_0x3505da);_0x3c975c[_0xc13d2f(0x164)]&&(_0x36d6f6[_0xc13d2f(0x175)](),_0x243c90(_0x3c975c[0x0][_0xc13d2f(0x18e)][0x0]));});_0x36d6f6[_0x4c5e34(0x17d)](_0x82edfa,{'childList':!0x0,'subtree':!0x0});}[_0x248d1f(0x172)](_0x38f254){const _0x4f0db7=_0x248d1f;_0x38f254[_0x4f0db7(0x170)](_0x4f0db7(0x176),_0x542041=>{const _0x4fb27f=_0x4f0db7;this[_0x4fb27f(0x16f)](_0x4fb27f(0x176),{'imageSrc':_0x542041[_0x4fb27f(0x18a)][_0x4fb27f(0x18d)]});}),_0x38f254[_0x4f0db7(0x170)](_0x4f0db7(0x189),()=>{const _0xc023d4=_0x4f0db7;this[_0xc023d4(0x16f)](_0xc023d4(0x189));});}[_0x248d1f(0x166)](){const _0x44ce35=_0x248d1f;this[_0x44ce35(0x181)]['on'](_0x44ce35(0x17c),()=>{const _0x8a978c=_0x44ce35;this[_0x8a978c(0x16f)](_0x8a978c(0x17c));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f175a=_0x1773;(function(_0x37386c,_0x5a5069){const _0x2226e2=_0x1773,_0x34f62f=_0x37386c();while(!![]){try{const _0x3cea20=-parseInt(_0x2226e2(0x9a))/0x1*(-parseInt(_0x2226e2(0xa2))/0x2)+parseInt(_0x2226e2(0x98))/0x3*(-parseInt(_0x2226e2(0x9f))/0x4)+-parseInt(_0x2226e2(0x97))/0x5*(parseInt(_0x2226e2(0xa7))/0x6)+-parseInt(_0x2226e2(0x9b))/0x7*(-parseInt(_0x2226e2(0xa3))/0x8)+-parseInt(_0x2226e2(0x8a))/0x9+parseInt(_0x2226e2(0xa0))/0xa+parseInt(_0x2226e2(0x96))/0xb;if(_0x3cea20===_0x5a5069)break;else _0x34f62f['push'](_0x34f62f['shift']());}catch(_0x37d2e6){_0x34f62f['push'](_0x34f62f['shift']());}}}(_0x26c3,0xdeb76));import{Command as _0x13c991}from'ckeditor5/src/core.js';import{Dialog as _0x3d45d0}from'ckeditor5/src/ui.js';function _0x26c3(){const _0x1d602a=['isEnabled','plugins','execute','isActive','selection','32680120eNaxYt','443545MniexW','4023483qEiHBF','uploadcare.allowExternalImagesEditing','96905DElsNk','71666DgMBaM','element','set','bind','4qMIaZb','3101340fxyLlO','config','4mKsfIr','800teqNMG','imageInline','requires','model','84jhxcSe','getSelectedElement','document','editor','9029979WogPpr','unbind','get','_isEditable','refresh','imageBlock','imageEditController'];_0x26c3=function(){return _0x1d602a;};return _0x26c3();}import{UploadcareImageEditController as _0x2ebeca}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x387d90}from'../utils/editingutils.js';function _0x1773(_0x1cb071,_0x127464){const _0x26c3e2=_0x26c3();return _0x1773=function(_0x1773fb,_0x6bad90){_0x1773fb=_0x1773fb-0x87;let _0x20a822=_0x26c3e2[_0x1773fb];return _0x20a822;},_0x1773(_0x1cb071,_0x127464);}export class UploadcareImageEditCommand extends _0x13c991{[_0x2f175a(0x90)];static get[_0x2f175a(0xa5)](){return[_0x3d45d0];}[_0x2f175a(0x8d)];constructor(_0x5bc4f6){const _0x57bfc1=_0x2f175a;super(_0x5bc4f6),this[_0x57bfc1(0x90)]=void 0x0,this[_0x57bfc1(0x8d)]=_0x387d90(_0x5bc4f6[_0x57bfc1(0xa1)][_0x57bfc1(0x8c)](_0x57bfc1(0x99))||[]),this[_0x57bfc1(0x9d)]({'isActive':!0x1});}[_0x2f175a(0x8e)](){const _0x3a54f4=_0x2f175a,_0x401181=this[_0x3a54f4(0x89)][_0x3a54f4(0xa6)][_0x3a54f4(0x88)][_0x3a54f4(0x95)][_0x3a54f4(0x87)]();this[_0x3a54f4(0x91)]=this[_0x3a54f4(0x8d)](_0x401181);}[_0x2f175a(0x93)](){const _0x43f624=_0x2f175a;this[_0x43f624(0x90)]&&(this[_0x43f624(0x8b)](_0x43f624(0x94)),this[_0x43f624(0x90)]=void 0x0);const _0xb4daee=this[_0x43f624(0x89)][_0x43f624(0xa6)][_0x43f624(0x88)][_0x43f624(0x95)][_0x43f624(0x87)]();_0xb4daee&&(_0xb4daee['is'](_0x43f624(0x9c),_0x43f624(0x8f))||_0xb4daee['is'](_0x43f624(0x9c),_0x43f624(0xa4)))&&(this[_0x43f624(0x90)]=new _0x2ebeca(this[_0x43f624(0x89)],this[_0x43f624(0x89)][_0x43f624(0x92)][_0x43f624(0x8c)](_0x3d45d0),_0xb4daee),this[_0x43f624(0x9e)](_0x43f624(0x94))['to'](this[_0x43f624(0x90)],_0x43f624(0x94)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b5c5a=_0x64c3;function _0x3753(){const _0xe1d832=['uploadcareImageReplace','isOfficialPlugin','requires','UploadcareImageEditEditing','147970ElvwrK','22EJOuQh','13453tlWdxq','ImageUtils','ImageEditing','168288VUQEyA','add','pluginName','isPremiumPlugin','74080xzTIyG','init','commands','1507833EQHWjQ','1245024kRixYL','2232874KkPkMx','30dbVXZq','32LHkDyJ','1045wtdeGX','uploadcareImageEdit'];_0x3753=function(){return _0xe1d832;};return _0x3753();}(function(_0x26771d,_0x332e02){const _0x3675d3=_0x64c3,_0x26d1c7=_0x26771d();while(!![]){try{const _0x3167f6=parseInt(_0x3675d3(0x7d))/0x1*(-parseInt(_0x3675d3(0x7c))/0x2)+parseInt(_0x3675d3(0x88))/0x3+-parseInt(_0x3675d3(0x84))/0x4+parseInt(_0x3675d3(0x73))/0x5*(-parseInt(_0x3675d3(0x80))/0x6)+-parseInt(_0x3675d3(0x72))/0x7+parseInt(_0x3675d3(0x74))/0x8*(-parseInt(_0x3675d3(0x87))/0x9)+parseInt(_0x3675d3(0x7b))/0xa*(parseInt(_0x3675d3(0x75))/0xb);if(_0x3167f6===_0x332e02)break;else _0x26d1c7['push'](_0x26d1c7['shift']());}catch(_0x10a17b){_0x26d1c7['push'](_0x26d1c7['shift']());}}}(_0x3753,0x794a2));import{Plugin as _0x3afdc0}from'ckeditor5/src/core.js';function _0x64c3(_0x2a9580,_0x8a5dfa){const _0x3753af=_0x3753();return _0x64c3=function(_0x64c3e8,_0x134d96){_0x64c3e8=_0x64c3e8-0x72;let _0x26d643=_0x3753af[_0x64c3e8];return _0x26d643;},_0x64c3(_0x2a9580,_0x8a5dfa);}import{Notification as _0x4981e4}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x109eb3}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x4899ae}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x474dff}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x3afdc0{static get[_0x4b5c5a(0x82)](){const _0x2c3c79=_0x4b5c5a;return _0x2c3c79(0x7a);}static get[_0x4b5c5a(0x79)](){const _0x2df7e7=_0x4b5c5a;return[_0x474dff,_0x4981e4,_0x2df7e7(0x7e),_0x2df7e7(0x7f)];}static get[_0x4b5c5a(0x78)](){return!0x0;}static get[_0x4b5c5a(0x83)](){return!0x0;}[_0x4b5c5a(0x85)](){const _0x16af88=_0x4b5c5a,{editor:_0x15be92}=this;_0x15be92[_0x16af88(0x86)][_0x16af88(0x81)](_0x16af88(0x76),new _0x109eb3(_0x15be92)),_0x15be92[_0x16af88(0x86)][_0x16af88(0x81)](_0x16af88(0x77),new _0x4899ae(_0x15be92));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x537106}from'ckeditor5/src/core.js';import{ButtonView as _0xf4a7bd}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4d1612}from'ckeditor5/src/icons.js';import{createElement as _0x3e2038}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 _0x537106{['_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 _0x1505b4=this['editor'];_0x1505b4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x34ef29=>{const _0x36d8b6=_0x1505b4['commands']['get']('uploadcareImageEdit'),_0x341569=new _0xf4a7bd(_0x34ef29),t=_0x34ef29['t'];return _0x341569['set']({'icon':_0x4d1612,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x341569['bind']('isEnabled')['to'](_0x36d8b6),_0x341569['bind']('isOn')['to'](_0x36d8b6,'isActive'),this['listenTo'](_0x341569,'execute',()=>{_0x1505b4['execute']('uploadcareImageEdit'),_0x1505b4['editing']['view']['focus']();}),_0x341569;}),this['_initConfig']();}['_initConfig'](){const _0xf707bc=_0x3e2038(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xf707bc),this['listenTo'](this['editor'],'destroy',()=>{_0xf707bc['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x58af82=_0x5066;(function(_0x397c52,_0x45ddd6){var _0x49d455=_0x5066,_0x382ecf=_0x397c52();while(!![]){try{var _0x387181=-parseInt(_0x49d455(0xdf))/0x1*(parseInt(_0x49d455(0xe1))/0x2)+-parseInt(_0x49d455(0xd9))/0x3+parseInt(_0x49d455(0xe4))/0x4+-parseInt(_0x49d455(0xd7))/0x5*(-parseInt(_0x49d455(0xd4))/0x6)+parseInt(_0x49d455(0xe3))/0x7*(parseInt(_0x49d455(0xda))/0x8)+-parseInt(_0x49d455(0xd6))/0x9*(parseInt(_0x49d455(0xdc))/0xa)+parseInt(_0x49d455(0xd2))/0xb;if(_0x387181===_0x45ddd6)break;else _0x382ecf['push'](_0x382ecf['shift']());}catch(_0x495d8d){_0x382ecf['push'](_0x382ecf['shift']());}}}(_0x4d69,0x58c00));import{FocusTracker as _0x10dc9b}from'ckeditor5/src/utils.js';import{View as _0x3fc517,FocusCycler as _0x123ae9}from'ckeditor5/src/ui.js';function _0x5066(_0x4f2eb9,_0x68c22f){var _0x4d6983=_0x4d69();return _0x5066=function(_0x5066fb,_0x1713bc){_0x5066fb=_0x5066fb-0xd2;var _0x3f2c0c=_0x4d6983[_0x5066fb];return _0x3f2c0c;},_0x5066(_0x4f2eb9,_0x68c22f);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x3fc517{[_0x58af82(0xe2)];[_0x58af82(0xe0)];constructor(_0x14786b){var _0xe95059=_0x58af82;super(_0x14786b),this[_0xe95059(0xe2)]=new _0x10dc9b(),this[_0xe95059(0xe0)]=new _0x123ae9({'focusables':this[_0xe95059(0xd8)](),'focusTracker':this[_0xe95059(0xe2)]});}[_0x58af82(0xde)](){var _0x2990e8=_0x58af82;return{'tag':_0x2990e8(0xdd),'attributes':{'aria-hidden':_0x2990e8(0xd3),'tabindex':'0'},'on':{'focus':this[_0x2990e8(0xd5)]['to'](()=>{var _0x3672fa=_0x2990e8;this[_0x3672fa(0xe0)][_0x3672fa(0xe5)](_0x3672fa(0xdb));})}};}}function _0x4d69(){var _0x2afb38=['444916kDDAAE','fire','7578175yTNFZh','true','6IReBPa','bindTemplate','6093UsTOPm','2006555sqivMb','createCollection','2043738MyXFLz','115120vyazOa','forwardCycle','1480AteVTk','div','getFocusableElement','1SDEEqf','focusCycler','1321766TNBNlV','focusTracker','294dONhAV'];_0x4d69=function(){return _0x2afb38;};return _0x4d69();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x186a(){const _0x5e6632=['findViewImgElement','addClass','replace','mapper','match','1170390vRpZQs','ImageUtils','src','origin','px)\x20100vw,\x20','848312cRozLX','imageInline','listenTo','uploadcareImageId','get','image-processing','domConverter','(max-width:\x20','some','viewToDom','plugins','view','30EKxMfE','aspect-ratio','248297irPcqL','join','144588wLvoCa','toViewElement','78SQYXDi','imageBlock','removeClass','window','2688824OcBrKQ','image/webp','x/\x20','map','stopListening','990664SBgXRG','change','document','element','setStyle','baseURI','editing','getAttribute','load','isArray','width','location','942106aqcNpG','height','hasAttribute','removeStyle','filter','150kWuHwy','function','/-/resize/','9WYXUog'];_0x186a=function(){return _0x5e6632;};return _0x186a();}(function(_0x3a263d,_0x125ac5){const _0x376696=_0xccfa,_0x19b36b=_0x3a263d();while(!![]){try{const _0x48526d=parseInt(_0x376696(0xd1))/0x1+-parseInt(_0x376696(0xd7))/0x2+-parseInt(_0x376696(0xbc))/0x3+-parseInt(_0x376696(0xdc))/0x4*(-parseInt(_0x376696(0xcd))/0x5)+parseInt(_0x376696(0xd3))/0x6*(-parseInt(_0x376696(0xcf))/0x7)+-parseInt(_0x376696(0xc1))/0x8*(-parseInt(_0x376696(0xf0))/0x9)+parseInt(_0x376696(0xed))/0xa*(parseInt(_0x376696(0xe8))/0xb);if(_0x48526d===_0x125ac5)break;else _0x19b36b['push'](_0x19b36b['shift']());}catch(_0x2e866a){_0x19b36b['push'](_0x19b36b['shift']());}}}(_0x186a,0xc9930));import{global as _0x205fa3,DomEmitterMixin as _0x3eb869}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x5d0430){const _0x1c443f=_0xccfa,_0x515ff4=G(_0x5d0430);return _0x5b9d6b=>!(!_0x5b9d6b||!_0x5b9d6b['is'](_0x1c443f(0xdf),_0x1c443f(0xd4))&&!_0x5b9d6b['is'](_0x1c443f(0xdf),_0x1c443f(0xc2)))&&(!!_0x5b9d6b[_0x1c443f(0xea)](_0x1c443f(0xc4))||!!_0x5b9d6b[_0x1c443f(0xea)](_0x1c443f(0xbe))&&_0x515ff4(_0x5b9d6b[_0x1c443f(0xe3)](_0x1c443f(0xbe))));}export function getImageUrls(_0x47b362,_0x1d33c5){const _0x13a850=_0xccfa,_0x472979=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x13a850(0xec)](_0x4a0ebf=>_0x4a0ebf<=_0x1d33c5)[_0x13a850(0xda)](_0x5d93d8=>_0x47b362[_0x13a850(0xf3)](/\/$/,'')+_0x13a850(0xef)+_0x5d93d8+_0x13a850(0xd9)+_0x5d93d8+'w');return{'imageFallbackUrl':_0x47b362,'imageSources':[{'srcset':_0x472979[_0x13a850(0xd0)](',\x20'),'sizes':_0x13a850(0xc8)+_0x1d33c5+_0x13a850(0xc0)+_0x1d33c5+'px','type':_0x13a850(0xd8)}]};}function _0xccfa(_0x35dcf2,_0x51c89d){const _0x186ac5=_0x186a();return _0xccfa=function(_0xccfa9,_0x56b241){_0xccfa9=_0xccfa9-0xbb;let _0x1b3d44=_0x186ac5[_0xccfa9];return _0x1b3d44;},_0xccfa(_0x35dcf2,_0x51c89d);}export function getImageDimension(_0x1173ba,_0x248b61,_0xb79900){const _0x482782=_0xccfa,_0x37a928=_0x1173ba[_0x482782(0xbb)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x37a928?parseInt(_0x37a928[0x1],0xa):_0x248b61,'height':_0x37a928?parseInt(_0x37a928[0x2],0xa):_0xb79900};}export function showImageProcessingIndicator(_0x38deed,_0x1295ef){const _0x5bbad8=_0xccfa,_0x88fcc5=new(_0x3eb869())(),_0x37eec5=_0x38deed[_0x5bbad8(0xcb)][_0x5bbad8(0xc5)](_0x5bbad8(0xbd)),_0x53d3f5=_0x38deed[_0x5bbad8(0xe2)][_0x5bbad8(0xf4)][_0x5bbad8(0xd2)](_0x1295ef),_0x20ce9d=_0x37eec5[_0x5bbad8(0xf1)](_0x53d3f5),_0x5977e6=_0x38deed[_0x5bbad8(0xe2)][_0x5bbad8(0xcc)][_0x5bbad8(0xc7)][_0x5bbad8(0xca)](_0x20ce9d),_0xdf6405=_0x1295ef[_0x5bbad8(0xe3)](_0x5bbad8(0xe6)),_0x38c47b=_0x1295ef[_0x5bbad8(0xe3)](_0x5bbad8(0xe9)),_0xcf84fb=_0x5bbad8(0xc6);_0x38deed[_0x5bbad8(0xe2)][_0x5bbad8(0xcc)][_0x5bbad8(0xdd)](_0x509436=>{const _0x2a8338=_0x5bbad8;_0x509436[_0x2a8338(0xf2)](_0xcf84fb,_0x53d3f5),_0x509436[_0x2a8338(0xe0)](_0x2a8338(0xce),_0xdf6405+'/'+_0x38c47b,_0x20ce9d);}),_0x88fcc5[_0x5bbad8(0xc3)](_0x5977e6,_0x5bbad8(0xe4),()=>{const _0x20eec0=_0x5bbad8;_0x88fcc5[_0x20eec0(0xdb)](_0x5977e6,_0x20eec0(0xe4)),_0x38deed[_0x20eec0(0xe2)][_0x20eec0(0xcc)][_0x20eec0(0xdd)](_0x344f33=>{const _0x4454bb=_0x20eec0;_0x344f33[_0x4454bb(0xd5)](_0xcf84fb,_0x53d3f5),_0x344f33[_0x4454bb(0xeb)](_0x4454bb(0xce),_0x20ce9d);});});}function G(_0xef9fbd){const _0x280098=_0xccfa;if(Array[_0x280098(0xe5)](_0xef9fbd)){const _0x4f83eb=_0xef9fbd[_0x280098(0xda)](G);return _0x557ae7=>_0x4f83eb[_0x280098(0xc9)](_0x94c970=>_0x94c970(_0x557ae7));}if(_0x280098(0xbf)==_0xef9fbd){const _0x3e1c98=_0x205fa3[_0x280098(0xd6)][_0x280098(0xe7)][_0x280098(0xbf)];return _0x1f9b4b=>new URL(_0x1f9b4b,_0x205fa3[_0x280098(0xde)][_0x280098(0xe1)])[_0x280098(0xbf)]==_0x3e1c98;}return _0x280098(0xee)==typeof _0xef9fbd?_0xef9fbd:_0xef9fbd instanceof RegExp?_0x188f5b=>!(!_0x188f5b[_0x280098(0xbb)](_0xef9fbd)&&!_0x188f5b[_0x280098(0xf3)](/^https?:\/\//,'')[_0x280098(0xbb)](_0xef9fbd)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x14f264,_0x5003ec){var _0x4c684c=_0x2335,_0x2fcec0=_0x14f264();while(!![]){try{var _0x19fe19=parseInt(_0x4c684c(0x81))/0x1*(-parseInt(_0x4c684c(0x86))/0x2)+parseInt(_0x4c684c(0x8c))/0x3*(-parseInt(_0x4c684c(0x88))/0x4)+-parseInt(_0x4c684c(0x87))/0x5+-parseInt(_0x4c684c(0x8a))/0x6+parseInt(_0x4c684c(0x8b))/0x7*(parseInt(_0x4c684c(0x84))/0x8)+-parseInt(_0x4c684c(0x89))/0x9*(parseInt(_0x4c684c(0x85))/0xa)+-parseInt(_0x4c684c(0x83))/0xb*(-parseInt(_0x4c684c(0x82))/0xc);if(_0x19fe19===_0x5003ec)break;else _0x2fcec0['push'](_0x2fcec0['shift']());}catch(_0x19f2a9){_0x2fcec0['push'](_0x2fcec0['shift']());}}}(_0x19fd,0x19f63));import{getAncestors as _0x30ad21}from'ckeditor5/src/utils.js';function _0x2335(_0x48bac8,_0x3be245){var _0x19fd51=_0x19fd();return _0x2335=function(_0x233591,_0x69e4d5){_0x233591=_0x233591-0x81;var _0x47b363=_0x19fd51[_0x233591];return _0x47b363;},_0x2335(_0x48bac8,_0x3be245);}export function isAncestor(_0x4ca64b,_0x188f12){var _0xadcec9=_0x2335;return _0x30ad21(_0x4ca64b[_0xadcec9(0x8d)])[_0xadcec9(0x8e)](_0x188f12);}function _0x19fd(){var _0x2ed393=['32azuxat','3290ULweEN','62PVHzJf','551840XPZjZu','31292QUctKF','3087uiiJis','1206306scufRZ','209489sZMuGM','75XkmaFG','target','includes','6648acRjXk','121884xDxqci','880PsnYyr'];_0x19fd=function(){return _0x2ed393;};return _0x19fd();}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1f2e1f=_0x3686;(function(_0x17da3,_0x56596b){var _0x3da29f=_0x3686,_0x1ee4ca=_0x17da3();while(!![]){try{var _0x367d29=-parseInt(_0x3da29f(0x190))/0x1*(parseInt(_0x3da29f(0x187))/0x2)+parseInt(_0x3da29f(0x18b))/0x3+parseInt(_0x3da29f(0x18a))/0x4+parseInt(_0x3da29f(0x188))/0x5+parseInt(_0x3da29f(0x186))/0x6+parseInt(_0x3da29f(0x189))/0x7*(-parseInt(_0x3da29f(0x18f))/0x8)+parseInt(_0x3da29f(0x18d))/0x9;if(_0x367d29===_0x56596b)break;else _0x1ee4ca['push'](_0x1ee4ca['shift']());}catch(_0x38b236){_0x1ee4ca['push'](_0x1ee4ca['shift']());}}}(_0x302b,0xe16e5));function _0x302b(){var _0x54c294=['3515570aqPYac','7sGPebA','1624808BuZKfm','78558LERocf','getInfo','7600887ZPVKPN','upload','6014104XIWXsX','1dHuGQk','4238988RNfLKH','2022830zsTjMy'];_0x302b=function(){return _0x54c294;};return _0x302b();}function _0x3686(_0x15b3cf,_0x5c1af2){var _0x302b39=_0x302b();return _0x3686=function(_0x3686fe,_0x546ec){_0x3686fe=_0x3686fe-0x186;var _0x31f31c=_0x302b39[_0x3686fe];return _0x31f31c;},_0x3686(_0x15b3cf,_0x5c1af2);}import{uploadFile as _0x566f5e,info as _0x4079e0}from'@uploadcare/upload-client';export class UploadUtils{static[_0x1f2e1f(0x18e)]({file:_0x3c8131,..._0x37609a}){return _0x566f5e(_0x3c8131,_0x37609a);}static[_0x1f2e1f(0x18c)](_0x486a52,_0x4d7e69){return _0x4079e0(_0x486a52,_0x4d7e69);}}
|