@ckeditor/ckeditor5-uploadcare 47.7.1-alpha.0 → 47.7.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 _0x3f6471,View as _0x18f4be}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x18f4be{constructor(_0x33acf3){super(_0x33acf3);const t=_0x33acf3['t'],_0x434e21=this['bindTemplate'],_0x2e3314=new _0x3f6471();_0x2e3314['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':[_0x2e3314,{'text':_0x434e21['to']('imageUploadProgress',_0x21ff34=>t('Loading\x20image...')+'\x20('+(_0x21ff34||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 _0x7da7b3=_0x5b04;(function(_0x27b595,_0x7b8634){const _0xc25715=_0x5b04,_0xe60c67=_0x27b595();while(!![]){try{const _0x5f48e2=-parseInt(_0xc25715(0xe7))/0x1*(-parseInt(_0xc25715(0xda))/0x2)+-parseInt(_0xc25715(0xd4))/0x3+-parseInt(_0xc25715(0xfa))/0x4*(parseInt(_0xc25715(0xcd))/0x5)+parseInt(_0xc25715(0xde))/0x6+-parseInt(_0xc25715(0xf3))/0x7*(-parseInt(_0xc25715(0xd8))/0x8)+-parseInt(_0xc25715(0xca))/0x9+parseInt(_0xc25715(0xe9))/0xa*(parseInt(_0xc25715(0xfd))/0xb);if(_0x5f48e2===_0x7b8634)break;else _0xe60c67['push'](_0xe60c67['shift']());}catch(_0x577905){_0xe60c67['push'](_0xe60c67['shift']());}}}(_0x17c8,0x62a2a));import{View as _0x243fa5}from'ckeditor5/src/ui.js';function _0x17c8(){const _0x52113d=['917862etOGFx','observe','_loadingView','change:status','uploading','addedNodes','ready','addEventListener','add','380017EXddel','_addUploadcareImageEditorListeners','1007470WWrspP','nodeName','_editingView','cdnUrl','detail','_focusableView','querySelector','disconnect','createCollection','clear','181461HuKLOb','_items','set','ck-reset_all-excluded','uc-cloud-image-editor','_addErrorViewListeners','filter','8oCjATz','ck-uploadcare-form','once','99QFwfWA','render','target','apply','div','3676221iTglOs','error','_waitForImageEditorComponent','1721560aFhBUY','setTemplate','addMany','retry','_setView','_errorView','status','1137915toyusC','focus','toLowerCase','element','136TmFOrz','length','2eXmQgW','cancel','getFocusableElement','fire'];_0x17c8=function(){return _0x52113d;};return _0x17c8();}function _0x5b04(_0x2e1d28,_0xb2f84a){const _0x17c838=_0x17c8();return _0x5b04=function(_0x5b04d0,_0x32dfc3){_0x5b04d0=_0x5b04d0-0xc6;let _0x10de2e=_0x17c838[_0x5b04d0];return _0x10de2e;},_0x5b04(_0x2e1d28,_0xb2f84a);}import{UploadcareImageEditFormLoadingView as _0x241902}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2b3671}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x5cfbf8}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x651667}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x651667{[_0x7da7b3(0xf4)];[_0x7da7b3(0xe0)];[_0x7da7b3(0xd2)];[_0x7da7b3(0xeb)];[_0x7da7b3(0xee)];constructor(_0x27f82d,_0x1264a8,_0x187766){const _0x10d187=_0x7da7b3;super(_0x27f82d),this[_0x10d187(0xf4)]=this[_0x10d187(0xf1)](),this[_0x10d187(0xe0)]=new _0x241902(_0x27f82d),this[_0x10d187(0xd2)]=new _0x2b3671(_0x27f82d),this[_0x10d187(0xeb)]=new _0x5cfbf8(_0x27f82d,_0x187766),this[_0x10d187(0xee)]=new _0x243fa5(_0x27f82d),this[_0x10d187(0xee)][_0x10d187(0xce)](this[_0x10d187(0xdc)]()),this[_0x10d187(0xf5)](_0x10d187(0xd3),_0x1264a8),this[_0x10d187(0xce)]({'tag':_0x10d187(0xc9),'attributes':{'class':['ck',_0x10d187(0xf6),_0x10d187(0xfb)],'tabindex':'-1'},'children':this[_0x10d187(0xf4)]}),this[_0x10d187(0xd1)](),this[_0x10d187(0xfc)](_0x10d187(0xc6),()=>{const _0x259163=_0x10d187;this[_0x259163(0xcc)](this[_0x259163(0xd7)],_0x2b57e9=>{const _0x5974b5=_0x259163;this[_0x5974b5(0xe8)](_0x2b57e9);});}),this['on'](_0x10d187(0xe1),()=>{const _0x4e19b0=_0x10d187;this[_0x4e19b0(0xd1)]();}),this[_0x10d187(0xf8)]();}[_0x7da7b3(0xd5)](){const _0x15ce67=_0x7da7b3;this[_0x15ce67(0xd7)][_0x15ce67(0xd5)]();}[_0x7da7b3(0xd1)](){const _0x15af8e=_0x7da7b3;switch(this[_0x15af8e(0xf4)][_0x15af8e(0xf2)](),this[_0x15af8e(0xd3)]){case _0x15af8e(0xe2):this[_0x15af8e(0xf4)][_0x15af8e(0xe6)](this[_0x15af8e(0xe0)]);break;case _0x15af8e(0xcb):this[_0x15af8e(0xf4)][_0x15af8e(0xe6)](this[_0x15af8e(0xd2)]);break;case _0x15af8e(0xe4):this[_0x15af8e(0xf4)][_0x15af8e(0xcf)]([this[_0x15af8e(0xeb)],this[_0x15af8e(0xee)]]);}}[_0x7da7b3(0xcc)](_0x370e53,_0x17c5ef){const _0x37ee6e=_0x7da7b3,_0x52a1ab=_0x37ee6e(0xf7),_0x3c4bfb=_0x370e53[_0x37ee6e(0xef)](_0x52a1ab);if(_0x3c4bfb)return _0x17c5ef(_0x3c4bfb);const _0x1b73dc=new MutationObserver(_0x40f5c6=>{const _0x190fe7=_0x37ee6e,_0x1a402f=_0x40f5c6[_0x190fe7(0xf9)](_0x39966f=>_0x39966f[_0x190fe7(0xc7)]===_0x370e53&&_0x39966f[_0x190fe7(0xe3)][_0x190fe7(0xd9)]>0x0&&_0x39966f[_0x190fe7(0xe3)][0x0][_0x190fe7(0xea)][_0x190fe7(0xd6)]()===_0x52a1ab);_0x1a402f[_0x190fe7(0xd9)]&&(_0x1b73dc[_0x190fe7(0xf0)](),_0x17c5ef(_0x1a402f[0x0][_0x190fe7(0xe3)][0x0]));});_0x1b73dc[_0x37ee6e(0xdf)](_0x370e53,{'childList':!0x0,'subtree':!0x0});}[_0x7da7b3(0xe8)](_0x5bd801){const _0x50e025=_0x7da7b3;_0x5bd801[_0x50e025(0xe5)](_0x50e025(0xc8),_0x360d2a=>{const _0x35516e=_0x50e025;this[_0x35516e(0xdd)](_0x35516e(0xc8),{'imageSrc':_0x360d2a[_0x35516e(0xed)][_0x35516e(0xec)]});}),_0x5bd801[_0x50e025(0xe5)](_0x50e025(0xdb),()=>{const _0x44ec68=_0x50e025;this[_0x44ec68(0xdd)](_0x44ec68(0xdb));});}[_0x7da7b3(0xf8)](){const _0x5ed526=_0x7da7b3;this[_0x5ed526(0xd2)]['on'](_0x5ed526(0xd0),()=>{const _0x71e0f1=_0x5ed526;this[_0x71e0f1(0xdd)](_0x71e0f1(0xd0));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x32663d=_0x2949;(function(_0x2f96b4,_0x20d3f3){const _0x47dc46=_0x2949,_0x1b2410=_0x2f96b4();while(!![]){try{const _0xe1fe05=-parseInt(_0x47dc46(0x1d8))/0x1+-parseInt(_0x47dc46(0x1de))/0x2+parseInt(_0x47dc46(0x1ef))/0x3+parseInt(_0x47dc46(0x1ea))/0x4+-parseInt(_0x47dc46(0x1f6))/0x5*(-parseInt(_0x47dc46(0x1da))/0x6)+parseInt(_0x47dc46(0x1f3))/0x7+-parseInt(_0x47dc46(0x1e7))/0x8*(-parseInt(_0x47dc46(0x1e2))/0x9);if(_0xe1fe05===_0x20d3f3)break;else _0x1b2410['push'](_0x1b2410['shift']());}catch(_0x19ac21){_0x1b2410['push'](_0x1b2410['shift']());}}}(_0x52a9,0x56bde));import{Command as _0x23ee00}from'ckeditor5/src/core.js';import{Dialog as _0x1d327f}from'ckeditor5/src/ui.js';function _0x52a9(){const _0x4d0815=['model','_isEditable','imageInline','75129bSHSXg','requires','isActive','config','1680630cPYJKP','unbind','plugins','5TdYNzt','627565GtZJnX','isEnabled','3345144IabiSi','uploadcare.allowExternalImagesEditing','getSelectedElement','get','436206yDTVJi','element','refresh','editor','16587OaPWEI','bind','imageEditController','selection','imageBlock','1544CGxudA','set','execute','90424PUwJjp','document'];_0x52a9=function(){return _0x4d0815;};return _0x52a9();}import{UploadcareImageEditController as _0x1c6a03}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2c066a}from'../utils/editingutils.js';function _0x2949(_0x2df6ac,_0x5c61b4){const _0x52a9d5=_0x52a9();return _0x2949=function(_0x294963,_0x5d50fc){_0x294963=_0x294963-0x1d8;let _0x5878ae=_0x52a9d5[_0x294963];return _0x5878ae;},_0x2949(_0x2df6ac,_0x5c61b4);}export class UploadcareImageEditCommand extends _0x23ee00{[_0x32663d(0x1e4)];static get[_0x32663d(0x1f0)](){return[_0x1d327f];}[_0x32663d(0x1ed)];constructor(_0x5b3d03){const _0x2928fa=_0x32663d;super(_0x5b3d03),this[_0x2928fa(0x1e4)]=void 0x0,this[_0x2928fa(0x1ed)]=_0x2c066a(_0x5b3d03[_0x2928fa(0x1f2)][_0x2928fa(0x1dd)](_0x2928fa(0x1db))||[]),this[_0x2928fa(0x1e8)]({'isActive':!0x1});}[_0x32663d(0x1e0)](){const _0x22956c=_0x32663d,_0x40c63c=this[_0x22956c(0x1e1)][_0x22956c(0x1ec)][_0x22956c(0x1eb)][_0x22956c(0x1e5)][_0x22956c(0x1dc)]();this[_0x22956c(0x1d9)]=this[_0x22956c(0x1ed)](_0x40c63c);}[_0x32663d(0x1e9)](){const _0x2f146c=_0x32663d;this[_0x2f146c(0x1e4)]&&(this[_0x2f146c(0x1f4)](_0x2f146c(0x1f1)),this[_0x2f146c(0x1e4)]=void 0x0);const _0x209b6d=this[_0x2f146c(0x1e1)][_0x2f146c(0x1ec)][_0x2f146c(0x1eb)][_0x2f146c(0x1e5)][_0x2f146c(0x1dc)]();_0x209b6d&&(_0x209b6d['is'](_0x2f146c(0x1df),_0x2f146c(0x1e6))||_0x209b6d['is'](_0x2f146c(0x1df),_0x2f146c(0x1ee)))&&(this[_0x2f146c(0x1e4)]=new _0x1c6a03(this[_0x2f146c(0x1e1)],this[_0x2f146c(0x1e1)][_0x2f146c(0x1f5)][_0x2f146c(0x1dd)](_0x1d327f),_0x209b6d),this[_0x2f146c(0x1e3)](_0x2f146c(0x1f1))['to'](this[_0x2f146c(0x1e4)],_0x2f146c(0x1f1)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e82ac=_0x4a4b;(function(_0x421781,_0x20f9ad){const _0x2051ac=_0x4a4b,_0x210ed4=_0x421781();while(!![]){try{const _0xd78323=-parseInt(_0x2051ac(0x177))/0x1+parseInt(_0x2051ac(0x175))/0x2*(-parseInt(_0x2051ac(0x173))/0x3)+parseInt(_0x2051ac(0x182))/0x4+parseInt(_0x2051ac(0x17b))/0x5+parseInt(_0x2051ac(0x186))/0x6*(parseInt(_0x2051ac(0x174))/0x7)+parseInt(_0x2051ac(0x17d))/0x8*(-parseInt(_0x2051ac(0x178))/0x9)+-parseInt(_0x2051ac(0x184))/0xa;if(_0xd78323===_0x20f9ad)break;else _0x210ed4['push'](_0x210ed4['shift']());}catch(_0x6690ac){_0x210ed4['push'](_0x210ed4['shift']());}}}(_0xe38b,0x78b8f));import{Plugin as _0x44c467}from'ckeditor5/src/core.js';import{Notification as _0x2b79cc}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x425c9d}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x4eb5b2}from'./uploadcareimagereplacecommand.js';function _0x4a4b(_0x3b8464,_0x3d26a9){const _0xe38b75=_0xe38b();return _0x4a4b=function(_0x4a4b4b,_0x13008f){_0x4a4b4b=_0x4a4b4b-0x171;let _0x2ccc6a=_0xe38b75[_0x4a4b4b];return _0x2ccc6a;},_0x4a4b(_0x3b8464,_0x3d26a9);}function _0xe38b(){const _0x4bdd1b=['882Zacafo','isOfficialPlugin','add','291CZHZav','10941qRgZhu','5836CnOlLl','init','212470YSOciE','882glWkqQ','isPremiumPlugin','requires','1717365PNihsO','UploadcareImageEditEditing','3032NrHwHn','pluginName','uploadcareImageEdit','commands','ImageEditing','2702440ORxjuV','ImageUtils','2217070gdzpuR','uploadcareImageReplace'];_0xe38b=function(){return _0x4bdd1b;};return _0xe38b();}import{UploadcareEditing as _0x40a715}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x44c467{static get[_0x1e82ac(0x17e)](){const _0x501683=_0x1e82ac;return _0x501683(0x17c);}static get[_0x1e82ac(0x17a)](){const _0x322ce7=_0x1e82ac;return[_0x40a715,_0x2b79cc,_0x322ce7(0x183),_0x322ce7(0x181)];}static get[_0x1e82ac(0x171)](){return!0x0;}static get[_0x1e82ac(0x179)](){return!0x0;}[_0x1e82ac(0x176)](){const _0x260349=_0x1e82ac,{editor:_0xdeb76c}=this;_0xdeb76c[_0x260349(0x180)][_0x260349(0x172)](_0x260349(0x17f),new _0x425c9d(_0xdeb76c)),_0xdeb76c[_0x260349(0x180)][_0x260349(0x172)](_0x260349(0x185),new _0x4eb5b2(_0xdeb76c));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1ed12f}from'ckeditor5/src/core.js';import{ButtonView as _0x43791b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x330c43}from'ckeditor5/src/icons.js';import{createElement as _0x1dc693}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 _0x1ed12f{['_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 _0xaa7df3=this['editor'];_0xaa7df3['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5b44dc=>{const _0x171ce1=_0xaa7df3['commands']['get']('uploadcareImageEdit'),_0x3109c2=new _0x43791b(_0x5b44dc),t=_0x5b44dc['t'];return _0x3109c2['set']({'icon':_0x330c43,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3109c2['bind']('isEnabled')['to'](_0x171ce1),_0x3109c2['bind']('isOn')['to'](_0x171ce1,'isActive'),this['listenTo'](_0x3109c2,'execute',()=>{_0xaa7df3['execute']('uploadcareImageEdit'),_0xaa7df3['editing']['view']['focus']();}),_0x3109c2;}),this['_initConfig']();}['_initConfig'](){const _0x497a2b=_0x1dc693(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x497a2b),this['listenTo'](this['editor'],'destroy',()=>{_0x497a2b['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x20a917=_0x564d;(function(_0x5ced23,_0xa3c637){var _0x175d52=_0x564d,_0x1f8f95=_0x5ced23();while(!![]){try{var _0x36effa=-parseInt(_0x175d52(0x199))/0x1*(parseInt(_0x175d52(0x1a4))/0x2)+-parseInt(_0x175d52(0x1aa))/0x3+-parseInt(_0x175d52(0x19e))/0x4*(parseInt(_0x175d52(0x1a3))/0x5)+parseInt(_0x175d52(0x1a6))/0x6*(parseInt(_0x175d52(0x1a5))/0x7)+parseInt(_0x175d52(0x19c))/0x8+parseInt(_0x175d52(0x1ab))/0x9*(parseInt(_0x175d52(0x19f))/0xa)+parseInt(_0x175d52(0x1a9))/0xb;if(_0x36effa===_0xa3c637)break;else _0x1f8f95['push'](_0x1f8f95['shift']());}catch(_0x20214b){_0x1f8f95['push'](_0x1f8f95['shift']());}}}(_0x2242,0x8dc1f));function _0x564d(_0x548286,_0x47db9e){var _0x224255=_0x2242();return _0x564d=function(_0x564da0,_0x585c1d){_0x564da0=_0x564da0-0x198;var _0x26d882=_0x224255[_0x564da0];return _0x26d882;},_0x564d(_0x548286,_0x47db9e);}import{FocusTracker as _0x552758}from'ckeditor5/src/utils.js';import{View as _0x1b3cc1,FocusCycler as _0x348be8}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1b3cc1{[_0x20a917(0x19a)];[_0x20a917(0x19b)];constructor(_0xcb96e0){var _0x301128=_0x20a917;super(_0xcb96e0),this[_0x301128(0x19a)]=new _0x552758(),this[_0x301128(0x19b)]=new _0x348be8({'focusables':this[_0x301128(0x1a2)](),'focusTracker':this[_0x301128(0x19a)]});}[_0x20a917(0x19d)](){var _0x2b0745=_0x20a917;return{'tag':_0x2b0745(0x198),'attributes':{'aria-hidden':_0x2b0745(0x1a8),'tabindex':'0'},'on':{'focus':this[_0x2b0745(0x1a1)]['to'](()=>{var _0x5068b5=_0x2b0745;this[_0x5068b5(0x19b)][_0x5068b5(0x1a7)](_0x5068b5(0x1a0));})}};}}function _0x2242(){var _0x16e37e=['div','2657uZmVxd','focusTracker','focusCycler','2487456HqSaka','getFocusableElement','103568pzJclX','418690RDtQYD','forwardCycle','bindTemplate','createCollection','155FaYYth','730VBWTYZ','14IkSpvB','3428340twFZIC','fire','true','12992672tFgBdg','2729409dCDgzz','135ulcrET'];_0x2242=function(){return _0x16e37e;};return _0x2242();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2cd5(){const _0x315c83=['8CXuGfw','removeStyle','image-processing','1517412GRMgVH','join','(max-width:\x20','3428QIqwEU','element','uploadcareImageId','height','9486939pkucnU','width','document','removeClass','replace','x/\x20','listenTo','ImageUtils','view','domConverter','addClass','stopListening','window','aspect-ratio','viewToDom','getAttribute','7767186LAMeTF','14258934bhtgGp','setStyle','filter','map','/-/resize/','change','20lkIHfH','location','mapper','728pkCdiI','function','baseURI','some','imageInline','toViewElement','origin','match','plugins','hasAttribute','7062139RtJzDn','editing','21785fkelxV','imageBlock','image/webp','findViewImgElement','2001yHBnVQ','load','isArray','px)\x20100vw,\x20','src','get'];_0x2cd5=function(){return _0x315c83;};return _0x2cd5();}function _0x23d7(_0x10b5eb,_0x5edb96){const _0x2cd586=_0x2cd5();return _0x23d7=function(_0x23d74e,_0x3a0509){_0x23d74e=_0x23d74e-0x1df;let _0x455890=_0x2cd586[_0x23d74e];return _0x455890;},_0x23d7(_0x10b5eb,_0x5edb96);}(function(_0x1d4f6c,_0x3608da){const _0x488358=_0x23d7,_0x44e9e7=_0x1d4f6c();while(!![]){try{const _0x5cea50=-parseInt(_0x488358(0x203))/0x1+parseInt(_0x488358(0x206))/0x2*(parseInt(_0x488358(0x1fa))/0x3)+parseInt(_0x488358(0x1ea))/0x4*(parseInt(_0x488358(0x1f6))/0x5)+parseInt(_0x488358(0x1e0))/0x6+-parseInt(_0x488358(0x1f4))/0x7+-parseInt(_0x488358(0x200))/0x8*(parseInt(_0x488358(0x1e1))/0x9)+parseInt(_0x488358(0x1e7))/0xa*(parseInt(_0x488358(0x20a))/0xb);if(_0x5cea50===_0x3608da)break;else _0x44e9e7['push'](_0x44e9e7['shift']());}catch(_0x371706){_0x44e9e7['push'](_0x44e9e7['shift']());}}}(_0x2cd5,0xce4e2));import{global as _0xc34dea,DomEmitterMixin as _0x1558cd}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x20cebd){const _0x1d2f93=_0x23d7,_0x41f6e6=z(_0x20cebd);return _0x1e48c1=>!(!_0x1e48c1||!_0x1e48c1['is'](_0x1d2f93(0x207),_0x1d2f93(0x1f7))&&!_0x1e48c1['is'](_0x1d2f93(0x207),_0x1d2f93(0x1ee)))&&(!!_0x1e48c1[_0x1d2f93(0x1f3)](_0x1d2f93(0x208))||!!_0x1e48c1[_0x1d2f93(0x1f3)](_0x1d2f93(0x1fe))&&_0x41f6e6(_0x1e48c1[_0x1d2f93(0x1df)](_0x1d2f93(0x1fe))));}export function getImageUrls(_0x370091,_0x422ebb){const _0x9b2784=_0x23d7,_0x253b94=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x9b2784(0x1e3)](_0xf7f018=>_0xf7f018<=_0x422ebb)[_0x9b2784(0x1e4)](_0x5c5fdd=>_0x370091[_0x9b2784(0x20e)](/\/$/,'')+_0x9b2784(0x1e5)+_0x5c5fdd+_0x9b2784(0x20f)+_0x5c5fdd+'w');return{'imageFallbackUrl':_0x370091,'imageSources':[{'srcset':_0x253b94[_0x9b2784(0x204)](',\x20'),'sizes':_0x9b2784(0x205)+_0x422ebb+_0x9b2784(0x1fd)+_0x422ebb+'px','type':_0x9b2784(0x1f8)}]};}export function getImageDimension(_0x3179a8,_0x2991c2,_0x17fef3){const _0x1079ee=_0x23d7,_0xe894e8=_0x3179a8[_0x1079ee(0x1f1)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xe894e8?parseInt(_0xe894e8[0x1],0xa):_0x2991c2,'height':_0xe894e8?parseInt(_0xe894e8[0x2],0xa):_0x17fef3};}export function showImageProcessingIndicator(_0x69419c,_0x133558){const _0x4356ee=_0x23d7,_0x20b623=new(_0x1558cd())(),_0x4736bd=_0x69419c[_0x4356ee(0x1f2)][_0x4356ee(0x1ff)](_0x4356ee(0x211)),_0x55df0a=_0x69419c[_0x4356ee(0x1f5)][_0x4356ee(0x1e9)][_0x4356ee(0x1ef)](_0x133558),_0x5dd778=_0x4736bd[_0x4356ee(0x1f9)](_0x55df0a),_0x3b0589=_0x69419c[_0x4356ee(0x1f5)][_0x4356ee(0x212)][_0x4356ee(0x213)][_0x4356ee(0x218)](_0x5dd778),_0x26251e=_0x133558[_0x4356ee(0x1df)](_0x4356ee(0x20b)),_0x51fa93=_0x133558[_0x4356ee(0x1df)](_0x4356ee(0x209)),_0x3b397c=_0x4356ee(0x202);_0x69419c[_0x4356ee(0x1f5)][_0x4356ee(0x212)][_0x4356ee(0x1e6)](_0x3cb76e=>{const _0x52b9fe=_0x4356ee;_0x3cb76e[_0x52b9fe(0x214)](_0x3b397c,_0x55df0a),_0x3cb76e[_0x52b9fe(0x1e2)](_0x52b9fe(0x217),_0x26251e+'/'+_0x51fa93,_0x5dd778);}),_0x20b623[_0x4356ee(0x210)](_0x3b0589,_0x4356ee(0x1fb),()=>{const _0x6f9526=_0x4356ee;_0x20b623[_0x6f9526(0x215)](_0x3b0589,_0x6f9526(0x1fb)),_0x69419c[_0x6f9526(0x1f5)][_0x6f9526(0x212)][_0x6f9526(0x1e6)](_0x1a0e02=>{const _0x2b4c31=_0x6f9526;_0x1a0e02[_0x2b4c31(0x20d)](_0x3b397c,_0x55df0a),_0x1a0e02[_0x2b4c31(0x201)](_0x2b4c31(0x217),_0x5dd778);});});}function z(_0x2fdb09){const _0x410ea1=_0x23d7;if(Array[_0x410ea1(0x1fc)](_0x2fdb09)){const _0x28e7ad=_0x2fdb09[_0x410ea1(0x1e4)](z);return _0x22b9a2=>_0x28e7ad[_0x410ea1(0x1ed)](_0x24ad3c=>_0x24ad3c(_0x22b9a2));}if(_0x410ea1(0x1f0)==_0x2fdb09){const _0x4aa088=_0xc34dea[_0x410ea1(0x216)][_0x410ea1(0x1e8)][_0x410ea1(0x1f0)];return _0x4ff350=>new URL(_0x4ff350,_0xc34dea[_0x410ea1(0x20c)][_0x410ea1(0x1ec)])[_0x410ea1(0x1f0)]==_0x4aa088;}return _0x410ea1(0x1eb)==typeof _0x2fdb09?_0x2fdb09:_0x2fdb09 instanceof RegExp?_0x3078c2=>!(!_0x3078c2[_0x410ea1(0x1f1)](_0x2fdb09)&&!_0x3078c2[_0x410ea1(0x20e)](/^https?:\/\//,'')[_0x410ea1(0x1f1)](_0x2fdb09)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x191881,_0x326346){var _0x1091b3=_0x2c09,_0x4f9f10=_0x191881();while(!![]){try{var _0x4501b7=-parseInt(_0x1091b3(0x177))/0x1+-parseInt(_0x1091b3(0x173))/0x2*(-parseInt(_0x1091b3(0x175))/0x3)+parseInt(_0x1091b3(0x171))/0x4*(-parseInt(_0x1091b3(0x172))/0x5)+parseInt(_0x1091b3(0x16d))/0x6+-parseInt(_0x1091b3(0x178))/0x7+-parseInt(_0x1091b3(0x16f))/0x8*(-parseInt(_0x1091b3(0x16e))/0x9)+parseInt(_0x1091b3(0x174))/0xa*(parseInt(_0x1091b3(0x170))/0xb);if(_0x4501b7===_0x326346)break;else _0x4f9f10['push'](_0x4f9f10['shift']());}catch(_0x3137af){_0x4f9f10['push'](_0x4f9f10['shift']());}}}(_0x2962,0xbedb7));function _0x2962(){var _0x3064ef=['345965PrbVWm','3988xELaLH','120QUYEpQ','2283zsYnyT','includes','474267LdQpTm','8288245oePtbl','target','6407340bzsAJK','108009psHbjF','72LjAhoc','275242TGunuO','32ycUGPV'];_0x2962=function(){return _0x3064ef;};return _0x2962();}import{getAncestors as _0x2ccd89}from'ckeditor5/src/utils.js';function _0x2c09(_0x55996a,_0x3636d3){var _0x296237=_0x2962();return _0x2c09=function(_0x2c091a,_0x29cb70){_0x2c091a=_0x2c091a-0x16c;var _0x4ffdd7=_0x296237[_0x2c091a];return _0x4ffdd7;},_0x2c09(_0x55996a,_0x3636d3);}export function isAncestor(_0x43ad0d,_0x351567){var _0x46db12=_0x2c09;return _0x2ccd89(_0x43ad0d[_0x46db12(0x16c)])[_0x46db12(0x176)](_0x351567);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x142c81=_0x361c;(function(_0x507f3e,_0x17a527){var _0x4d79b5=_0x361c,_0x39ad41=_0x507f3e();while(!![]){try{var _0x48ed71=-parseInt(_0x4d79b5(0x14a))/0x1*(parseInt(_0x4d79b5(0x144))/0x2)+-parseInt(_0x4d79b5(0x13f))/0x3*(parseInt(_0x4d79b5(0x142))/0x4)+parseInt(_0x4d79b5(0x146))/0x5*(parseInt(_0x4d79b5(0x13d))/0x6)+-parseInt(_0x4d79b5(0x148))/0x7*(parseInt(_0x4d79b5(0x13e))/0x8)+-parseInt(_0x4d79b5(0x143))/0x9*(-parseInt(_0x4d79b5(0x140))/0xa)+parseInt(_0x4d79b5(0x145))/0xb+parseInt(_0x4d79b5(0x147))/0xc;if(_0x48ed71===_0x17a527)break;else _0x39ad41['push'](_0x39ad41['shift']());}catch(_0x5be002){_0x39ad41['push'](_0x39ad41['shift']());}}}(_0x3033,0x86763));import{uploadFile as _0x9e1fd6,info as _0x4f02dc}from'@uploadcare/upload-client';export class UploadUtils{static[_0x142c81(0x149)]({file:_0x265761,..._0x2448ee}){return _0x9e1fd6(_0x265761,_0x2448ee);}static[_0x142c81(0x141)](_0x19189b,_0x1c2492){return _0x4f02dc(_0x19189b,_0x1c2492);}}function _0x361c(_0x5e59eb,_0x31b596){var _0x3033eb=_0x3033();return _0x361c=function(_0x361c4d,_0x2a0379){_0x361c4d=_0x361c4d-0x13d;var _0x30748d=_0x3033eb[_0x361c4d];return _0x30748d;},_0x361c(_0x5e59eb,_0x31b596);}function _0x3033(){var _0x133076=['119932yyWlPc','7529016BOkBfU','15DyrGWf','2055216mRsupb','28987BoPyVh','upload','5GqMbFn','691116TcxVrn','16KOzFqk','319035qnGNVZ','50xxwdjV','getInfo','32TIDlur','915021XxpNwV'];_0x3033=function(){return _0x133076;};return _0x3033();}
|