@ckeditor/ckeditor5-uploadcare 47.6.1-alpha.1 → 47.6.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/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.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
|
-
const
|
|
23
|
+
function _0x2c1c(_0x1417df,_0x58238c){const _0x537035=_0x5370();return _0x2c1c=function(_0x2c1c96,_0x44c172){_0x2c1c96=_0x2c1c96-0x111;let _0x389afa=_0x537035[_0x2c1c96];return _0x389afa;},_0x2c1c(_0x1417df,_0x58238c);}const _0x56c889=_0x2c1c;(function(_0x452717,_0x458359){const _0x5f72bc=_0x2c1c,_0x5e4759=_0x452717();while(!![]){try{const _0x593784=parseInt(_0x5f72bc(0x114))/0x1*(parseInt(_0x5f72bc(0x134))/0x2)+-parseInt(_0x5f72bc(0x11e))/0x3+parseInt(_0x5f72bc(0x133))/0x4*(-parseInt(_0x5f72bc(0x132))/0x5)+-parseInt(_0x5f72bc(0x13e))/0x6+-parseInt(_0x5f72bc(0x141))/0x7+parseInt(_0x5f72bc(0x12f))/0x8+parseInt(_0x5f72bc(0x131))/0x9;if(_0x593784===_0x458359)break;else _0x5e4759['push'](_0x5e4759['shift']());}catch(_0x48900d){_0x5e4759['push'](_0x5e4759['shift']());}}}(_0x5370,0xba6dd));function _0x5370(){const _0x2db79b=['8279736sXcvor','length','observe','5356526iHMxZb','_errorView','error','cdnUrl','setTemplate','element','filter','addedNodes','_editingView','82963fCTfyD','_addUploadcareImageEditorListeners','div','focus','disconnect','uc-cloud-image-editor','uploading','querySelector','change:status','_addErrorViewListeners','482670wJaHiJ','_items','set','nodeName','render','getFocusableElement','fire','detail','addEventListener','ck-uploadcare-form','createCollection','status','toLowerCase','_loadingView','_setView','retry','once','1577576gfYuPv','apply','28866816wijxei','6237685TsTSAX','4HhfvRu','22xmQdRo','target','ck-reset_all-excluded','add','ready','addMany','clear','_waitForImageEditorComponent','_focusableView','cancel'];_0x5370=function(){return _0x2db79b;};return _0x5370();}import{View as _0x1f12b6}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5e67b7}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x11a4e6}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x2ae15a}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x24f6b9}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x24f6b9{[_0x56c889(0x11f)];[_0x56c889(0x12b)];[_0x56c889(0x142)];[_0x56c889(0x113)];[_0x56c889(0x13c)];constructor(_0x93ca0b,_0x52e400,_0x4332b4){const _0x2136db=_0x56c889;super(_0x93ca0b),this[_0x2136db(0x11f)]=this[_0x2136db(0x128)](),this[_0x2136db(0x12b)]=new _0x5e67b7(_0x93ca0b),this[_0x2136db(0x142)]=new _0x11a4e6(_0x93ca0b),this[_0x2136db(0x113)]=new _0x2ae15a(_0x93ca0b,_0x4332b4),this[_0x2136db(0x13c)]=new _0x1f12b6(_0x93ca0b),this[_0x2136db(0x13c)][_0x2136db(0x145)](this[_0x2136db(0x123)]()),this[_0x2136db(0x120)](_0x2136db(0x129),_0x52e400),this[_0x2136db(0x145)]({'tag':_0x2136db(0x116),'attributes':{'class':['ck',_0x2136db(0x136),_0x2136db(0x127)],'tabindex':'-1'},'children':this[_0x2136db(0x11f)]}),this[_0x2136db(0x12c)](),this[_0x2136db(0x12e)](_0x2136db(0x122),()=>{const _0x1136fd=_0x2136db;this[_0x1136fd(0x13b)](this[_0x1136fd(0x146)],_0x4f3782=>{const _0x30ff1d=_0x1136fd;this[_0x30ff1d(0x115)](_0x4f3782);});}),this['on'](_0x2136db(0x11c),()=>{const _0x206167=_0x2136db;this[_0x206167(0x12c)]();}),this[_0x2136db(0x11d)]();}[_0x56c889(0x117)](){const _0x539e58=_0x56c889;this[_0x539e58(0x146)][_0x539e58(0x117)]();}[_0x56c889(0x12c)](){const _0x55d1e0=_0x56c889;switch(this[_0x55d1e0(0x11f)][_0x55d1e0(0x13a)](),this[_0x55d1e0(0x129)]){case _0x55d1e0(0x11a):this[_0x55d1e0(0x11f)][_0x55d1e0(0x137)](this[_0x55d1e0(0x12b)]);break;case _0x55d1e0(0x143):this[_0x55d1e0(0x11f)][_0x55d1e0(0x137)](this[_0x55d1e0(0x142)]);break;case _0x55d1e0(0x138):this[_0x55d1e0(0x11f)][_0x55d1e0(0x139)]([this[_0x55d1e0(0x113)],this[_0x55d1e0(0x13c)]]);}}[_0x56c889(0x13b)](_0x214aa1,_0x5627d1){const _0x34d455=_0x56c889,_0x1c782b=_0x34d455(0x119),_0x34b312=_0x214aa1[_0x34d455(0x11b)](_0x1c782b);if(_0x34b312)return _0x5627d1(_0x34b312);const _0x48eab7=new MutationObserver(_0x8dbbef=>{const _0x54c1ef=_0x34d455,_0x19da21=_0x8dbbef[_0x54c1ef(0x111)](_0x30e075=>_0x30e075[_0x54c1ef(0x135)]===_0x214aa1&&_0x30e075[_0x54c1ef(0x112)][_0x54c1ef(0x13f)]>0x0&&_0x30e075[_0x54c1ef(0x112)][0x0][_0x54c1ef(0x121)][_0x54c1ef(0x12a)]()===_0x1c782b);_0x19da21[_0x54c1ef(0x13f)]&&(_0x48eab7[_0x54c1ef(0x118)](),_0x5627d1(_0x19da21[0x0][_0x54c1ef(0x112)][0x0]));});_0x48eab7[_0x34d455(0x140)](_0x214aa1,{'childList':!0x0,'subtree':!0x0});}[_0x56c889(0x115)](_0x5bedbc){const _0x5bf151=_0x56c889;_0x5bedbc[_0x5bf151(0x126)](_0x5bf151(0x130),_0x46bd91=>{const _0x3e7d3d=_0x5bf151;this[_0x3e7d3d(0x124)](_0x3e7d3d(0x130),{'imageSrc':_0x46bd91[_0x3e7d3d(0x125)][_0x3e7d3d(0x144)]});}),_0x5bedbc[_0x5bf151(0x126)](_0x5bf151(0x13d),()=>{const _0x4039d0=_0x5bf151;this[_0x4039d0(0x124)](_0x4039d0(0x13d));});}[_0x56c889(0x11d)](){const _0x11ae11=_0x56c889;this[_0x11ae11(0x142)]['on'](_0x11ae11(0x12d),()=>{const _0x4d20b9=_0x11ae11;this[_0x4d20b9(0x124)](_0x4d20b9(0x12d));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d5985=_0x5b91;(function(_0x3c6f09,_0x4f9565){const _0x5dce41=_0x5b91,_0x3f28e4=_0x3c6f09();while(!![]){try{const _0x18d20b=-parseInt(_0x5dce41(0xe9))/0x1*(parseInt(_0x5dce41(0x102))/0x2)+parseInt(_0x5dce41(0xef))/0x3*(parseInt(_0x5dce41(0x105))/0x4)+parseInt(_0x5dce41(0xff))/0x5+parseInt(_0x5dce41(0x106))/0x6+parseInt(_0x5dce41(0xf2))/0x7*(-parseInt(_0x5dce41(0x100))/0x8)+parseInt(_0x5dce41(0xfa))/0x9*(parseInt(_0x5dce41(0xfc))/0xa)+-parseInt(_0x5dce41(0xed))/0xb*(parseInt(_0x5dce41(0xea))/0xc);if(_0x18d20b===_0x4f9565)break;else _0x3f28e4['push'](_0x3f28e4['shift']());}catch(_0x283c3e){_0x3f28e4['push'](_0x3f28e4['shift']());}}}(_0x5e8f,0x71fab));import{Command as _0x11a942}from'ckeditor5/src/core.js';import{Dialog as _0x171251}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x43bf7a}from'./ui/uploadcareimageeditcontroller.js';function _0x5b91(_0x4ebc58,_0x323a59){const _0x5e8f6a=_0x5e8f();return _0x5b91=function(_0x5b910f,_0x212636){_0x5b910f=_0x5b910f-0xe6;let _0x2e85e=_0x5e8f6a[_0x5b910f];return _0x2e85e;},_0x5b91(_0x4ebc58,_0x323a59);}import{createEditabilityChecker as _0x284fd3}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x11a942{[_0x2d5985(0xf9)];static get[_0x2d5985(0xfd)](){return[_0x171251];}[_0x2d5985(0xf1)];constructor(_0x4fa5ab){const _0x4dfc47=_0x2d5985;super(_0x4fa5ab),this[_0x4dfc47(0xf9)]=void 0x0,this[_0x4dfc47(0xf1)]=_0x284fd3(_0x4fa5ab[_0x4dfc47(0xfb)][_0x4dfc47(0x107)](_0x4dfc47(0x103))||[]),this[_0x4dfc47(0xf8)]({'isActive':!0x1});}[_0x2d5985(0xf3)](){const _0x253d9c=_0x2d5985,_0x556294=this[_0x253d9c(0xee)][_0x253d9c(0xf6)][_0x253d9c(0x101)][_0x253d9c(0xf5)][_0x253d9c(0xe6)]();this[_0x253d9c(0xe7)]=this[_0x253d9c(0xf1)](_0x556294);}[_0x2d5985(0xf0)](){const _0x1d55e2=_0x2d5985;this[_0x1d55e2(0xf9)]&&(this[_0x1d55e2(0xf7)](_0x1d55e2(0xeb)),this[_0x1d55e2(0xf9)]=void 0x0);const _0x59244a=this[_0x1d55e2(0xee)][_0x1d55e2(0xf6)][_0x1d55e2(0x101)][_0x1d55e2(0xf5)][_0x1d55e2(0xe6)]();_0x59244a&&(_0x59244a['is'](_0x1d55e2(0x104),_0x1d55e2(0xe8))||_0x59244a['is'](_0x1d55e2(0x104),_0x1d55e2(0xfe)))&&(this[_0x1d55e2(0xf9)]=new _0x43bf7a(this[_0x1d55e2(0xee)],this[_0x1d55e2(0xee)][_0x1d55e2(0xec)][_0x1d55e2(0x107)](_0x171251),_0x59244a),this[_0x1d55e2(0xf4)](_0x1d55e2(0xeb))['to'](this[_0x1d55e2(0xf9)],_0x1d55e2(0xeb)));}}function _0x5e8f(){const _0x58cb7e=['document','198CaOlpj','uploadcare.allowExternalImagesEditing','element','114640jdlTaB','1660668iCfjVx','get','getSelectedElement','isEnabled','imageBlock','1423rrmggb','72dDPEhK','isActive','plugins','722557LbBkfq','editor','75MbsrRm','execute','_isEditable','1559117ZAECAC','refresh','bind','selection','model','unbind','set','imageEditController','5391fDUfhJ','config','2030RYoPWt','requires','imageInline','1662225ismPNo','16zgEnMG'];_0x5e8f=function(){return _0x58cb7e;};return _0x5e8f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x192114=_0xc3a2;(function(_0x2b55b3,_0x492bfc){const _0x4922ac=_0xc3a2,_0x4ab30d=_0x2b55b3();while(!![]){try{const _0x47f4f9=parseInt(_0x4922ac(0xee))/0x1*(-parseInt(_0x4922ac(0xe5))/0x2)+-parseInt(_0x4922ac(0xec))/0x3*(parseInt(_0x4922ac(0xdf))/0x4)+-parseInt(_0x4922ac(0xf1))/0x5*(-parseInt(_0x4922ac(0xe8))/0x6)+-parseInt(_0x4922ac(0xdc))/0x7*(parseInt(_0x4922ac(0xda))/0x8)+parseInt(_0x4922ac(0xef))/0x9+parseInt(_0x4922ac(0xeb))/0xa*(parseInt(_0x4922ac(0xe1))/0xb)+-parseInt(_0x4922ac(0xe0))/0xc*(-parseInt(_0x4922ac(0xdb))/0xd);if(_0x47f4f9===_0x492bfc)break;else _0x4ab30d['push'](_0x4ab30d['shift']());}catch(_0x6c2c4c){_0x4ab30d['push'](_0x4ab30d['shift']());}}}(_0x360b,0x53270));import{Plugin as _0x4fa8a7}from'ckeditor5/src/core.js';import{Notification as _0x1487ab}from'ckeditor5/src/ui.js';function _0x360b(){const _0x5c5200=['pluginName','add','16GbKhCM','984612zDXbWd','44DEWbyD','uploadcareImageEdit','init','UploadcareImageEditEditing','230LpkUhx','requires','ImageUtils','36CpJmnX','isOfficialPlugin','ImageEditing','143630fwsqeu','197160oJsSWE','commands','4931NPaInV','5657481vwsncn','uploadcareImageReplace','104565vyCYKW','isPremiumPlugin','1722872tCDQyc','91adgPoi','7jtWaQh'];_0x360b=function(){return _0x5c5200;};return _0x360b();}import{UploadcareImageEditCommand as _0x3fea0a}from'./uploadcareimageeditcommand.js';function _0xc3a2(_0x677037,_0x512aaf){const _0x360b52=_0x360b();return _0xc3a2=function(_0xc3a2ad,_0x1e0cd5){_0xc3a2ad=_0xc3a2ad-0xd9;let _0x9cea47=_0x360b52[_0xc3a2ad];return _0x9cea47;},_0xc3a2(_0x677037,_0x512aaf);}import{UploadcareImageReplaceCommand as _0x569615}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x14c648}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x4fa8a7{static get[_0x192114(0xdd)](){const _0x53a5e5=_0x192114;return _0x53a5e5(0xe4);}static get[_0x192114(0xe6)](){const _0x215085=_0x192114;return[_0x14c648,_0x1487ab,_0x215085(0xe7),_0x215085(0xea)];}static get[_0x192114(0xe9)](){return!0x0;}static get[_0x192114(0xd9)](){return!0x0;}[_0x192114(0xe3)](){const _0x4e9b0c=_0x192114,{editor:_0x3a1a1e}=this;_0x3a1a1e[_0x4e9b0c(0xed)][_0x4e9b0c(0xde)](_0x4e9b0c(0xe2),new _0x3fea0a(_0x3a1a1e)),_0x3a1a1e[_0x4e9b0c(0xed)][_0x4e9b0c(0xde)](_0x4e9b0c(0xf0),new _0x569615(_0x3a1a1e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x107d5b}from'ckeditor5/src/core.js';import{ButtonView as _0x268dee}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2e7462}from'ckeditor5/src/icons.js';import{createElement as _0x3432ba}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 _0x107d5b{['_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 _0x137869=this['editor'];_0x137869['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5d7fdd=>{const _0x5c6a4b=_0x137869['commands']['get']('uploadcareImageEdit'),_0x2a5bd1=new _0x268dee(_0x5d7fdd),t=_0x5d7fdd['t'];return _0x2a5bd1['set']({'icon':_0x2e7462,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2a5bd1['bind']('isEnabled')['to'](_0x5c6a4b),_0x2a5bd1['bind']('isOn')['to'](_0x5c6a4b,'isActive'),this['listenTo'](_0x2a5bd1,'execute',()=>{_0x137869['execute']('uploadcareImageEdit'),_0x137869['editing']['view']['focus']();}),_0x2a5bd1;}),this['_initConfig']();}['_initConfig'](){const _0x56c193=_0x3432ba(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x56c193),this['listenTo'](this['editor'],'destroy',()=>{_0x56c193['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x49c577=_0x1e4b;(function(_0x32c578,_0x1632ee){var _0xca7101=_0x1e4b,_0x4b6deb=_0x32c578();while(!![]){try{var _0x161c0f=parseInt(_0xca7101(0xee))/0x1*(parseInt(_0xca7101(0xf0))/0x2)+parseInt(_0xca7101(0xed))/0x3+parseInt(_0xca7101(0xe9))/0x4+parseInt(_0xca7101(0xf4))/0x5+-parseInt(_0xca7101(0xef))/0x6+-parseInt(_0xca7101(0xea))/0x7+parseInt(_0xca7101(0xf1))/0x8;if(_0x161c0f===_0x1632ee)break;else _0x4b6deb['push'](_0x4b6deb['shift']());}catch(_0x3df1bd){_0x4b6deb['push'](_0x4b6deb['shift']());}}}(_0x5d37,0x3b8e2));import{FocusTracker as _0x50dc71}from'ckeditor5/src/utils.js';import{View as _0x4aad7a,FocusCycler as _0x58c2c8}from'ckeditor5/src/ui.js';function _0x1e4b(_0x166140,_0x4ddce5){var _0x5d371a=_0x5d37();return _0x1e4b=function(_0x1e4b49,_0x316ef1){_0x1e4b49=_0x1e4b49-0xe7;var _0x5b107c=_0x5d371a[_0x1e4b49];return _0x5b107c;},_0x1e4b(_0x166140,_0x4ddce5);}function _0x5d37(){var _0x2b0f8f=['98810LJkeTI','focusCycler','true','div','fire','focusTracker','884436rwQxga','1876287aiiIqp','forwardCycle','bindTemplate','796050pkkFNc','1YyzOPA','2836242DjEUxP','190006oBaVta','3067696TlzTJn','getFocusableElement','createCollection'];_0x5d37=function(){return _0x2b0f8f;};return _0x5d37();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x4aad7a{[_0x49c577(0xe8)];[_0x49c577(0xf5)];constructor(_0x51e230){var _0x5bf78e=_0x49c577;super(_0x51e230),this[_0x5bf78e(0xe8)]=new _0x50dc71(),this[_0x5bf78e(0xf5)]=new _0x58c2c8({'focusables':this[_0x5bf78e(0xf3)](),'focusTracker':this[_0x5bf78e(0xe8)]});}[_0x49c577(0xf2)](){var _0x3a68e1=_0x49c577;return{'tag':_0x3a68e1(0xf7),'attributes':{'aria-hidden':_0x3a68e1(0xf6),'tabindex':'0'},'on':{'focus':this[_0x3a68e1(0xec)]['to'](()=>{var _0x3d0971=_0x3a68e1;this[_0x3d0971(0xf5)][_0x3d0971(0xe7)](_0x3d0971(0xeb));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x3c5fab,_0x47690b){const _0x25112f=_0x1a03,_0x2a0448=_0x3c5fab();while(!![]){try{const _0x33c361=-parseInt(_0x25112f(0xb4))/0x1*(-parseInt(_0x25112f(0x9f))/0x2)+-parseInt(_0x25112f(0x94))/0x3*(parseInt(_0x25112f(0xaf))/0x4)+-parseInt(_0x25112f(0xa1))/0x5+parseInt(_0x25112f(0x96))/0x6+parseInt(_0x25112f(0x9b))/0x7+-parseInt(_0x25112f(0xb5))/0x8+parseInt(_0x25112f(0xb2))/0x9;if(_0x33c361===_0x47690b)break;else _0x2a0448['push'](_0x2a0448['shift']());}catch(_0x58d3b1){_0x2a0448['push'](_0x2a0448['shift']());}}}(_0x2f80,0x2dc8b));function _0x1a03(_0x4129e9,_0x565c9e){const _0x2f806e=_0x2f80();return _0x1a03=function(_0x1a0388,_0xc663db){_0x1a0388=_0x1a0388-0x81;let _0x176f6d=_0x2f806e[_0x1a0388];return _0x176f6d;},_0x1a03(_0x4129e9,_0x565c9e);}import{global as _0x1df3f2,DomEmitterMixin as _0x27b4f3}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x268cad){const _0x1ad585=_0x1a03,_0x4f5b=z(_0x268cad);return _0x298dd2=>!(!_0x298dd2||!_0x298dd2['is'](_0x1ad585(0x95),_0x1ad585(0x8b))&&!_0x298dd2['is'](_0x1ad585(0x95),_0x1ad585(0x93)))&&(!!_0x298dd2[_0x1ad585(0xab)](_0x1ad585(0x83))||!!_0x298dd2[_0x1ad585(0xab)](_0x1ad585(0x90))&&_0x4f5b(_0x298dd2[_0x1ad585(0x84)](_0x1ad585(0x90))));}export function getImageUrls(_0x5618e5,_0x20a4e0){const _0xe490b2=_0x1a03,_0x141957=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0xe490b2(0x82)](_0x14f5cd=>_0x14f5cd<=_0x20a4e0)[_0xe490b2(0x92)](_0x33cbc5=>_0x5618e5[_0xe490b2(0x8f)](/\/$/,'')+_0xe490b2(0xad)+_0x33cbc5+_0xe490b2(0x88)+_0x33cbc5+'w');return{'imageFallbackUrl':_0x5618e5,'imageSources':[{'srcset':_0x141957[_0xe490b2(0xa6)](',\x20'),'sizes':_0xe490b2(0x8c)+_0x20a4e0+_0xe490b2(0xa7)+_0x20a4e0+'px','type':_0xe490b2(0x8a)}]};}export function getImageDimension(_0x23738f,_0x13ec04,_0x1a43ff){const _0x191a57=_0x1a03,_0x42a8b8=_0x23738f[_0x191a57(0xb6)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x42a8b8?parseInt(_0x42a8b8[0x1],0xa):_0x13ec04,'height':_0x42a8b8?parseInt(_0x42a8b8[0x2],0xa):_0x1a43ff};}export function showImageProcessingIndicator(_0x42ae80,_0x4153f3){const _0xcb81fc=_0x1a03,_0x5571e6=new(_0x27b4f3())(),_0x1f31af=_0x42ae80[_0xcb81fc(0xa4)][_0xcb81fc(0xa5)](_0xcb81fc(0xa3)),_0x1a7a85=_0x42ae80[_0xcb81fc(0x8d)][_0xcb81fc(0x9d)][_0xcb81fc(0xaa)](_0x4153f3),_0x48f026=_0x1f31af[_0xcb81fc(0xa2)](_0x1a7a85),_0x1d4b92=_0x42ae80[_0xcb81fc(0x8d)][_0xcb81fc(0xae)][_0xcb81fc(0x87)][_0xcb81fc(0xa0)](_0x48f026),_0x1b2e58=_0x4153f3[_0xcb81fc(0x84)](_0xcb81fc(0x99)),_0x33181c=_0x4153f3[_0xcb81fc(0x84)](_0xcb81fc(0xac)),_0xc5c354=_0xcb81fc(0x9c);_0x42ae80[_0xcb81fc(0x8d)][_0xcb81fc(0xae)][_0xcb81fc(0xa8)](_0x21ff4b=>{const _0x4c9cf9=_0xcb81fc;_0x21ff4b[_0x4c9cf9(0xb7)](_0xc5c354,_0x1a7a85),_0x21ff4b[_0x4c9cf9(0xa9)](_0x4c9cf9(0x89),_0x1b2e58+'/'+_0x33181c,_0x48f026);}),_0x5571e6[_0xcb81fc(0xb3)](_0x1d4b92,_0xcb81fc(0x9e),()=>{const _0x1e2e01=_0xcb81fc;_0x5571e6[_0x1e2e01(0x97)](_0x1d4b92,_0x1e2e01(0x9e)),_0x42ae80[_0x1e2e01(0x8d)][_0x1e2e01(0xae)][_0x1e2e01(0xa8)](_0xf0711a=>{const _0x59a8fc=_0x1e2e01;_0xf0711a[_0x59a8fc(0xb8)](_0xc5c354,_0x1a7a85),_0xf0711a[_0x59a8fc(0x98)](_0x59a8fc(0x89),_0x48f026);});});}function z(_0x4596e6){const _0xe048c0=_0x1a03;if(Array[_0xe048c0(0x85)](_0x4596e6)){const _0x41632c=_0x4596e6[_0xe048c0(0x92)](z);return _0x54f1b7=>_0x41632c[_0xe048c0(0x8e)](_0x17ca68=>_0x17ca68(_0x54f1b7));}if(_0xe048c0(0x86)==_0x4596e6){const _0x53dbd8=_0x1df3f2[_0xe048c0(0xb0)][_0xe048c0(0xb1)][_0xe048c0(0x86)];return _0x5e70f6=>new URL(_0x5e70f6,_0x1df3f2[_0xe048c0(0x91)][_0xe048c0(0x81)])[_0xe048c0(0x86)]==_0x53dbd8;}return _0xe048c0(0x9a)==typeof _0x4596e6?_0x4596e6:_0x4596e6 instanceof RegExp?_0x57140e=>!(!_0x57140e[_0xe048c0(0xb6)](_0x4596e6)&&!_0x57140e[_0xe048c0(0x8f)](/^https?:\/\//,'')[_0xe048c0(0xb6)](_0x4596e6)):()=>!0x1;}function _0x2f80(){const _0x588ae4=['listenTo','2nbpEtY','1746616ZQBmTH','match','addClass','removeClass','baseURI','filter','uploadcareImageId','getAttribute','isArray','origin','domConverter','x/\x20','aspect-ratio','image/webp','imageBlock','(max-width:\x20','editing','some','replace','src','document','map','imageInline','872238spDFSM','element','460734TfrOXN','stopListening','removeStyle','width','function','2597399nEIKSV','image-processing','mapper','load','282166glcbcp','viewToDom','839260FhBqpD','findViewImgElement','ImageUtils','plugins','get','join','px)\x20100vw,\x20','change','setStyle','toViewElement','hasAttribute','height','/-/resize/','view','4PBHxyy','window','location','1209996FFGVKh'];_0x2f80=function(){return _0x588ae4;};return _0x2f80();}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x28beca,_0x34e1c3){var _0x19f59d=_0x4db0,_0x29daa8=_0x28beca();while(!![]){try{var _0x4ae640=-parseInt(_0x19f59d(0x19e))/0x1+parseInt(_0x19f59d(0x19a))/0x2+-parseInt(_0x19f59d(0x19c))/0x3+parseInt(_0x19f59d(0x194))/0x4*(parseInt(_0x19f59d(0x193))/0x5)+-parseInt(_0x19f59d(0x195))/0x6*(-parseInt(_0x19f59d(0x198))/0x7)+-parseInt(_0x19f59d(0x197))/0x8*(-parseInt(_0x19f59d(0x199))/0x9)+parseInt(_0x19f59d(0x19b))/0xa;if(_0x4ae640===_0x34e1c3)break;else _0x29daa8['push'](_0x29daa8['shift']());}catch(_0x41b779){_0x29daa8['push'](_0x29daa8['shift']());}}}(_0x4c5f,0x92145));function _0x4c5f(){var _0x2a865f=['target','27312udMRmF','70yphFJW','1107gGJKyq','63194DrMkhe','7801080JCLjry','2123472QoworN','includes','159468lOLiDv','1520WFEhyl','876UlUzIn','100458vqQMqr'];_0x4c5f=function(){return _0x2a865f;};return _0x4c5f();}import{getAncestors as _0x29cd12}from'ckeditor5/src/utils.js';function _0x4db0(_0x345dd3,_0xc974a1){var _0x4c5fce=_0x4c5f();return _0x4db0=function(_0x4db057,_0x443a77){_0x4db057=_0x4db057-0x193;var _0x4abbe2=_0x4c5fce[_0x4db057];return _0x4abbe2;},_0x4db0(_0x345dd3,_0xc974a1);}export function isAncestor(_0x3bb15d,_0x3bbd15){var _0x5e9a2c=_0x4db0;return _0x29cd12(_0x3bb15d[_0x5e9a2c(0x196)])[_0x5e9a2c(0x19d)](_0x3bbd15);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x42331a=_0x4f8e;(function(_0x454052,_0x4d7e51){var _0x27a930=_0x4f8e,_0x5b2eed=_0x454052();while(!![]){try{var _0x546fc6=-parseInt(_0x27a930(0x1a2))/0x1*(-parseInt(_0x27a930(0x19f))/0x2)+parseInt(_0x27a930(0x1a9))/0x3+parseInt(_0x27a930(0x1a7))/0x4+parseInt(_0x27a930(0x19d))/0x5*(-parseInt(_0x27a930(0x1a0))/0x6)+parseInt(_0x27a930(0x1a5))/0x7+-parseInt(_0x27a930(0x1a8))/0x8*(-parseInt(_0x27a930(0x1a6))/0x9)+parseInt(_0x27a930(0x19e))/0xa*(-parseInt(_0x27a930(0x1a3))/0xb);if(_0x546fc6===_0x4d7e51)break;else _0x5b2eed['push'](_0x5b2eed['shift']());}catch(_0x13d953){_0x5b2eed['push'](_0x5b2eed['shift']());}}}(_0x22fe,0xc143e));function _0x22fe(){var _0x43f601=['3328qYXhXo','12cygjXc','getInfo','369geQafk','22HLwgtB','upload','6072045VfDDDM','63yRUpQM','3889940kPVtxd','1596152wNCptH','2577003AZJfUT','437135JIqett','18715510RzWcUm'];_0x22fe=function(){return _0x43f601;};return _0x22fe();}import{uploadFile as _0x4613a9,info as _0x31c891}from'@uploadcare/upload-client';function _0x4f8e(_0x393dd7,_0x293c11){var _0x22feae=_0x22fe();return _0x4f8e=function(_0x4f8e95,_0x422c70){_0x4f8e95=_0x4f8e95-0x19d;var _0x2835a5=_0x22feae[_0x4f8e95];return _0x2835a5;},_0x4f8e(_0x393dd7,_0x293c11);}export class UploadUtils{static[_0x42331a(0x1a4)]({file:_0x4f6e91,..._0x596731}){return _0x4613a9(_0x4f6e91,_0x596731);}static[_0x42331a(0x1a1)](_0x1f7bbd,_0xb96d43){return _0x31c891(_0x1f7bbd,_0xb96d43);}}
|