@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250928.0 → 0.0.0-nightly-20250929.0
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 _0x5db9bd,View as _0x133153}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x133153{constructor(_0x5bda9a){super(_0x5bda9a);const t=_0x5bda9a['t'],_0x3fb559=this['bindTemplate'],_0x909e8f=new _0x5db9bd();_0x909e8f['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':[_0x909e8f,{'text':_0x3fb559['to']('imageUploadProgress',_0x5a3455=>t('Loading\x20image...')+'\x20('+(_0x5a3455||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
|
+
function _0x580e(_0x2813c9,_0x42b87d){const _0xdd2f54=_0xdd2f();return _0x580e=function(_0x580e5e,_0x201cfc){_0x580e5e=_0x580e5e-0x79;let _0x3a2f44=_0xdd2f54[_0x580e5e];return _0x3a2f44;},_0x580e(_0x2813c9,_0x42b87d);}const _0x549d84=_0x580e;(function(_0x25f777,_0xbd6071){const _0x650de7=_0x580e,_0x1ff0dd=_0x25f777();while(!![]){try{const _0x58501c=-parseInt(_0x650de7(0x8b))/0x1+-parseInt(_0x650de7(0x79))/0x2*(-parseInt(_0x650de7(0x87))/0x3)+-parseInt(_0x650de7(0x90))/0x4*(-parseInt(_0x650de7(0x8f))/0x5)+-parseInt(_0x650de7(0xab))/0x6*(-parseInt(_0x650de7(0x7a))/0x7)+parseInt(_0x650de7(0x9f))/0x8*(-parseInt(_0x650de7(0xa3))/0x9)+parseInt(_0x650de7(0x81))/0xa+-parseInt(_0x650de7(0xaa))/0xb;if(_0x58501c===_0xbd6071)break;else _0x1ff0dd['push'](_0x1ff0dd['shift']());}catch(_0x18d968){_0x1ff0dd['push'](_0x1ff0dd['shift']());}}}(_0xdd2f,0x8b190));import{View as _0x27b8db}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x375054}from'./uploadcareimageeditformloadingview.js';function _0xdd2f(){const _0x5368a7=['_errorView','clear','cdnUrl','2026AiaxYW','7NPnyEB','apply','set','error','retry','addEventListener','ck-uploadcare-form','3504290jMNeaM','getFocusableElement','toLowerCase','ck-reset_all-excluded','detail','nodeName','3279vKRZLg','uploading','_addErrorViewListeners','div','319200tdYrMO','addedNodes','render','querySelector','35gEoHwX','500596cYBkvE','change:status','setTemplate','_focusableView','disconnect','status','ready','_addUploadcareImageEditorListeners','_editingView','observe','add','_loadingView','createCollection','target','fire','8162664nkBuQk','cancel','addMany','_setView','9asLYHj','focus','element','length','filter','_items','_waitForImageEditorComponent','16766849NvsZnc','6599130HZcwKZ','uc-cloud-image-editor','once'];_0xdd2f=function(){return _0x5368a7;};return _0xdd2f();}import{UploadcareImageEditFormErrorView as _0x3aa02f}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x2cb5f8}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1b0260}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x1b0260{[_0x549d84(0xa8)];[_0x549d84(0x9b)];[_0x549d84(0xae)];[_0x549d84(0x98)];[_0x549d84(0x93)];constructor(_0x19e1db,_0x22fd54,_0x24c933){const _0x4ec4d2=_0x549d84;super(_0x19e1db),this[_0x4ec4d2(0xa8)]=this[_0x4ec4d2(0x9c)](),this[_0x4ec4d2(0x9b)]=new _0x375054(_0x19e1db),this[_0x4ec4d2(0xae)]=new _0x3aa02f(_0x19e1db),this[_0x4ec4d2(0x98)]=new _0x2cb5f8(_0x19e1db,_0x24c933),this[_0x4ec4d2(0x93)]=new _0x27b8db(_0x19e1db),this[_0x4ec4d2(0x93)][_0x4ec4d2(0x92)](this[_0x4ec4d2(0x82)]()),this[_0x4ec4d2(0x7c)](_0x4ec4d2(0x95),_0x22fd54),this[_0x4ec4d2(0x92)]({'tag':_0x4ec4d2(0x8a),'attributes':{'class':['ck',_0x4ec4d2(0x84),_0x4ec4d2(0x80)],'tabindex':'-1'},'children':this[_0x4ec4d2(0xa8)]}),this[_0x4ec4d2(0xa2)](),this[_0x4ec4d2(0xad)](_0x4ec4d2(0x8d),()=>{const _0x34f199=_0x4ec4d2;this[_0x34f199(0xa9)](this[_0x34f199(0xa5)],_0x5a9370=>{const _0x23d07d=_0x34f199;this[_0x23d07d(0x97)](_0x5a9370);});}),this['on'](_0x4ec4d2(0x91),()=>{const _0x144a06=_0x4ec4d2;this[_0x144a06(0xa2)]();}),this[_0x4ec4d2(0x89)]();}[_0x549d84(0xa4)](){const _0x46f880=_0x549d84;this[_0x46f880(0xa5)][_0x46f880(0xa4)]();}[_0x549d84(0xa2)](){const _0xd38608=_0x549d84;switch(this[_0xd38608(0xa8)][_0xd38608(0xaf)](),this[_0xd38608(0x95)]){case _0xd38608(0x88):this[_0xd38608(0xa8)][_0xd38608(0x9a)](this[_0xd38608(0x9b)]);break;case _0xd38608(0x7d):this[_0xd38608(0xa8)][_0xd38608(0x9a)](this[_0xd38608(0xae)]);break;case _0xd38608(0x96):this[_0xd38608(0xa8)][_0xd38608(0xa1)]([this[_0xd38608(0x98)],this[_0xd38608(0x93)]]);}}[_0x549d84(0xa9)](_0x10a53b,_0x36814d){const _0xdfbc18=_0x549d84,_0x192414=_0xdfbc18(0xac),_0x297dc3=_0x10a53b[_0xdfbc18(0x8e)](_0x192414);if(_0x297dc3)return _0x36814d(_0x297dc3);const _0x1c4cf7=new MutationObserver(_0x5c4a82=>{const _0x4d0cc6=_0xdfbc18,_0x156d7b=_0x5c4a82[_0x4d0cc6(0xa7)](_0x40fe20=>_0x40fe20[_0x4d0cc6(0x9d)]===_0x10a53b&&_0x40fe20[_0x4d0cc6(0x8c)][_0x4d0cc6(0xa6)]>0x0&&_0x40fe20[_0x4d0cc6(0x8c)][0x0][_0x4d0cc6(0x86)][_0x4d0cc6(0x83)]()===_0x192414);_0x156d7b[_0x4d0cc6(0xa6)]&&(_0x1c4cf7[_0x4d0cc6(0x94)](),_0x36814d(_0x156d7b[0x0][_0x4d0cc6(0x8c)][0x0]));});_0x1c4cf7[_0xdfbc18(0x99)](_0x10a53b,{'childList':!0x0,'subtree':!0x0});}[_0x549d84(0x97)](_0x4487f5){const _0xecad35=_0x549d84;_0x4487f5[_0xecad35(0x7f)](_0xecad35(0x7b),_0x21563a=>{const _0x156724=_0xecad35;this[_0x156724(0x9e)](_0x156724(0x7b),{'imageSrc':_0x21563a[_0x156724(0x85)][_0x156724(0xb0)]});}),_0x4487f5[_0xecad35(0x7f)](_0xecad35(0xa0),()=>{const _0x44108c=_0xecad35;this[_0x44108c(0x9e)](_0x44108c(0xa0));});}[_0x549d84(0x89)](){const _0x20f0ef=_0x549d84;this[_0x20f0ef(0xae)]['on'](_0x20f0ef(0x7e),()=>{const _0x39b11b=_0x20f0ef;this[_0x39b11b(0x9e)](_0x39b11b(0x7e));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2657dd=_0x3eb9;(function(_0x5ef729,_0x3d886a){const _0xd4a4c2=_0x3eb9,_0x55063f=_0x5ef729();while(!![]){try{const _0x53ebc8=parseInt(_0xd4a4c2(0xb2))/0x1+parseInt(_0xd4a4c2(0xbb))/0x2+-parseInt(_0xd4a4c2(0xc4))/0x3*(parseInt(_0xd4a4c2(0xc0))/0x4)+-parseInt(_0xd4a4c2(0xd0))/0x5+-parseInt(_0xd4a4c2(0xb7))/0x6*(parseInt(_0xd4a4c2(0xbe))/0x7)+-parseInt(_0xd4a4c2(0xb5))/0x8*(-parseInt(_0xd4a4c2(0xbd))/0x9)+-parseInt(_0xd4a4c2(0xcc))/0xa*(parseInt(_0xd4a4c2(0xd2))/0xb);if(_0x53ebc8===_0x3d886a)break;else _0x55063f['push'](_0x55063f['shift']());}catch(_0x550276){_0x55063f['push'](_0x55063f['shift']());}}}(_0x47c2,0xc79cf));function _0x3eb9(_0x4a9ff0,_0x1ea759){const _0x47c2e9=_0x47c2();return _0x3eb9=function(_0x3eb97a,_0x1377e4){_0x3eb97a=_0x3eb97a-0xb2;let _0x67e226=_0x47c2e9[_0x3eb97a];return _0x67e226;},_0x3eb9(_0x4a9ff0,_0x1ea759);}import{Command as _0x1d7be6}from'ckeditor5/src/core.js';function _0x47c2(){const _0xc5b0f2=['isActive','editor','plugins','55010xBlmmL','unbind','requires','uploadcare.allowExternalImagesEditing','5011095iNHKQc','element','1001kMfMHx','629490YgFcfJ','execute','getSelectedElement','4287112avfDhl','model','114792kcNmxL','_isEditable','imageInline','isEnabled','3105472BhRCbg','config','18kETOVO','7fHFYuR','document','215164fwcQVO','refresh','set','imageEditController','51YNneIz','imageBlock','selection','bind','get'];_0x47c2=function(){return _0xc5b0f2;};return _0x47c2();}import{Dialog as _0x2a39a1}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1ccda7}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x628e31}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x1d7be6{[_0x2657dd(0xc3)];static get[_0x2657dd(0xce)](){return[_0x2a39a1];}[_0x2657dd(0xb8)];constructor(_0x2ade73){const _0x257f49=_0x2657dd;super(_0x2ade73),this[_0x257f49(0xc3)]=void 0x0,this[_0x257f49(0xb8)]=_0x628e31(_0x2ade73[_0x257f49(0xbc)][_0x257f49(0xc8)](_0x257f49(0xcf))||[]),this[_0x257f49(0xc2)]({'isActive':!0x1});}[_0x2657dd(0xc1)](){const _0x52b8c1=_0x2657dd,_0x35cbd0=this[_0x52b8c1(0xca)][_0x52b8c1(0xb6)][_0x52b8c1(0xbf)][_0x52b8c1(0xc6)][_0x52b8c1(0xb4)]();this[_0x52b8c1(0xba)]=this[_0x52b8c1(0xb8)](_0x35cbd0);}[_0x2657dd(0xb3)](){const _0x5784ab=_0x2657dd;this[_0x5784ab(0xc3)]&&(this[_0x5784ab(0xcd)](_0x5784ab(0xc9)),this[_0x5784ab(0xc3)]=void 0x0);const _0x46cbe4=this[_0x5784ab(0xca)][_0x5784ab(0xb6)][_0x5784ab(0xbf)][_0x5784ab(0xc6)][_0x5784ab(0xb4)]();_0x46cbe4&&(_0x46cbe4['is'](_0x5784ab(0xd1),_0x5784ab(0xc5))||_0x46cbe4['is'](_0x5784ab(0xd1),_0x5784ab(0xb9)))&&(this[_0x5784ab(0xc3)]=new _0x1ccda7(this[_0x5784ab(0xca)],this[_0x5784ab(0xca)][_0x5784ab(0xcb)][_0x5784ab(0xc8)](_0x2a39a1),_0x46cbe4),this[_0x5784ab(0xc7)](_0x5784ab(0xc9))['to'](this[_0x5784ab(0xc3)],_0x5784ab(0xc9)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1310e3=_0x5152;(function(_0x3a3acf,_0xbbba54){const _0x1ace1d=_0x5152,_0x36c908=_0x3a3acf();while(!![]){try{const _0x37fd3a=parseInt(_0x1ace1d(0x14a))/0x1+-parseInt(_0x1ace1d(0x152))/0x2+parseInt(_0x1ace1d(0x151))/0x3+parseInt(_0x1ace1d(0x148))/0x4+-parseInt(_0x1ace1d(0x153))/0x5+parseInt(_0x1ace1d(0x14c))/0x6+-parseInt(_0x1ace1d(0x156))/0x7;if(_0x37fd3a===_0xbbba54)break;else _0x36c908['push'](_0x36c908['shift']());}catch(_0x2effa4){_0x36c908['push'](_0x36c908['shift']());}}}(_0x3289,0x72c23));import{Plugin as _0x256c8a}from'ckeditor5/src/core.js';import{Notification as _0x2b41ad}from'ckeditor5/src/ui.js';function _0x3289(){const _0x1b6252=['uploadcareImageReplace','ImageEditing','isPremiumPlugin','UploadcareImageEditEditing','3011744HkVXUe','ImageUtils','788840VQDHUy','uploadcareImageEdit','4244334jNAUvZ','commands','requires','add','isOfficialPlugin','2338053tPLtJm','424150vDUCVy','3851930ICZbjb','pluginName','init','11032028nccaaL'];_0x3289=function(){return _0x1b6252;};return _0x3289();}function _0x5152(_0x5297a3,_0x184794){const _0x328939=_0x3289();return _0x5152=function(_0x5152cc,_0x884daa){_0x5152cc=_0x5152cc-0x144;let _0x4988c3=_0x328939[_0x5152cc];return _0x4988c3;},_0x5152(_0x5297a3,_0x184794);}import{UploadcareImageEditCommand as _0x181f1f}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x254282}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0xd54ec0}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x256c8a{static get[_0x1310e3(0x154)](){const _0x9d0acd=_0x1310e3;return _0x9d0acd(0x147);}static get[_0x1310e3(0x14e)](){const _0x27205d=_0x1310e3;return[_0xd54ec0,_0x2b41ad,_0x27205d(0x149),_0x27205d(0x145)];}static get[_0x1310e3(0x150)](){return!0x0;}static get[_0x1310e3(0x146)](){return!0x0;}[_0x1310e3(0x155)](){const _0x19a345=_0x1310e3,{editor:_0x43b591}=this;_0x43b591[_0x19a345(0x14d)][_0x19a345(0x14f)](_0x19a345(0x14b),new _0x181f1f(_0x43b591)),_0x43b591[_0x19a345(0x14d)][_0x19a345(0x14f)](_0x19a345(0x144),new _0x254282(_0x43b591));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1bbe50}from'ckeditor5/src/core.js';import{ButtonView as _0x5c84fa}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5c5bf1}from'ckeditor5/src/icons.js';import{createElement as _0x20307c}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 _0x1bbe50{['_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 _0x86f30c=this['editor'];_0x86f30c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x563454=>{const _0x22a123=_0x86f30c['commands']['get']('uploadcareImageEdit'),_0x2868e3=new _0x5c84fa(_0x563454),t=_0x563454['t'];return _0x2868e3['set']({'icon':_0x5c5bf1,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2868e3['bind']('isEnabled')['to'](_0x22a123),_0x2868e3['bind']('isOn')['to'](_0x22a123,'isActive'),this['listenTo'](_0x2868e3,'execute',()=>{_0x86f30c['execute']('uploadcareImageEdit'),_0x86f30c['editing']['view']['focus']();}),_0x2868e3;}),this['_initConfig']();}['_initConfig'](){const _0x3bfad6=_0x20307c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3bfad6),this['listenTo'](this['editor'],'destroy',()=>{_0x3bfad6['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x2ba9(){var _0x51fa16=['28523990XEOixU','focusTracker','forwardCycle','div','334040tCyExM','6742458xFVdmY','focusCycler','635MXbKfQ','989188Cozabk','getFocusableElement','3TDNiUW','fire','1UeiYDC','1965320RCepfK','true','23898qjGlDf','createCollection','1679788nJsgCh','bindTemplate'];_0x2ba9=function(){return _0x51fa16;};return _0x2ba9();}var _0x3bfbd8=_0x5ecc;(function(_0x2d7db6,_0x14a09c){var _0x5b32ae=_0x5ecc,_0x5264ac=_0x2d7db6();while(!![]){try{var _0xf5d24=parseInt(_0x5b32ae(0x1c0))/0x1*(-parseInt(_0x5b32ae(0x1bc))/0x2)+parseInt(_0x5b32ae(0x1be))/0x3*(-parseInt(_0x5b32ae(0x1c5))/0x4)+parseInt(_0x5b32ae(0x1bb))/0x5*(-parseInt(_0x5b32ae(0x1c3))/0x6)+-parseInt(_0x5b32ae(0x1b8))/0x7+-parseInt(_0x5b32ae(0x1c1))/0x8+-parseInt(_0x5b32ae(0x1b9))/0x9+parseInt(_0x5b32ae(0x1c7))/0xa;if(_0xf5d24===_0x14a09c)break;else _0x5264ac['push'](_0x5264ac['shift']());}catch(_0x198a94){_0x5264ac['push'](_0x5264ac['shift']());}}}(_0x2ba9,0x5f15e));import{FocusTracker as _0x2c443d}from'ckeditor5/src/utils.js';import{View as _0x77bd46,FocusCycler as _0x5b74b4}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x5ecc(_0x4a2ee2,_0x147bff){var _0x2ba91f=_0x2ba9();return _0x5ecc=function(_0x5eccb2,_0x3eae64){_0x5eccb2=_0x5eccb2-0x1b6;var _0x400f85=_0x2ba91f[_0x5eccb2];return _0x400f85;},_0x5ecc(_0x4a2ee2,_0x147bff);}export class DialogFocusManagerView extends _0x77bd46{[_0x3bfbd8(0x1c8)];[_0x3bfbd8(0x1ba)];constructor(_0x196020){var _0xf7df20=_0x3bfbd8;super(_0x196020),this[_0xf7df20(0x1c8)]=new _0x2c443d(),this[_0xf7df20(0x1ba)]=new _0x5b74b4({'focusables':this[_0xf7df20(0x1c4)](),'focusTracker':this[_0xf7df20(0x1c8)]});}[_0x3bfbd8(0x1bd)](){var _0x30289b=_0x3bfbd8;return{'tag':_0x30289b(0x1b7),'attributes':{'aria-hidden':_0x30289b(0x1c2),'tabindex':'0'},'on':{'focus':this[_0x30289b(0x1c6)]['to'](()=>{var _0x1156d9=_0x30289b;this[_0x1156d9(0x1ba)][_0x1156d9(0x1bf)](_0x1156d9(0x1b6));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3a3b40,_0x462168){const _0x15296c=_0x10ae,_0x388ac7=_0x3a3b40();while(!![]){try{const _0x41e7fb=-parseInt(_0x15296c(0x1ce))/0x1*(parseInt(_0x15296c(0x1c4))/0x2)+-parseInt(_0x15296c(0x1b8))/0x3*(parseInt(_0x15296c(0x1b1))/0x4)+parseInt(_0x15296c(0x1a3))/0x5+parseInt(_0x15296c(0x1a8))/0x6*(parseInt(_0x15296c(0x1c7))/0x7)+parseInt(_0x15296c(0x1c9))/0x8+-parseInt(_0x15296c(0x1bf))/0x9+parseInt(_0x15296c(0x1b5))/0xa*(parseInt(_0x15296c(0x1ba))/0xb);if(_0x41e7fb===_0x462168)break;else _0x388ac7['push'](_0x388ac7['shift']());}catch(_0x1bfade){_0x388ac7['push'](_0x388ac7['shift']());}}}(_0x555d,0xa29d4));import{global as _0x3dbe96,DomEmitterMixin as _0x4e4872}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x203bf8){const _0x402c94=_0x10ae,_0x5c67f9=G(_0x203bf8);return _0x1e5426=>!(!_0x1e5426||!_0x1e5426['is'](_0x402c94(0x1d1),_0x402c94(0x1ae))&&!_0x1e5426['is'](_0x402c94(0x1d1),_0x402c94(0x1a0)))&&(!!_0x1e5426[_0x402c94(0x1bc)](_0x402c94(0x1c0))||!!_0x1e5426[_0x402c94(0x1bc)](_0x402c94(0x1d0))&&_0x5c67f9(_0x1e5426[_0x402c94(0x1cb)](_0x402c94(0x1d0))));}function _0x555d(){const _0xc8ac74=['listenTo','get','view','1185558LxTuSp','aspect-ratio','px)\x20100vw,\x20','7077LFeXXX','toViewElement','1444160WvmGba','removeStyle','getAttribute','join','(max-width:\x20','2NSoqRW','mapper','src','element','image/webp','document','plugins','window','some','location','baseURI','/-/resize/','imageInline','width','filter','5862155JTEIlT','findViewImgElement','setStyle','x/\x20','replace','4230lnvgTA','map','ImageUtils','addClass','origin','image-processing','imageBlock','isArray','stopListening','1505436BCFxQh','viewToDom','change','height','10330dSrSxV','function','load','3fyjEyX','editing','5104ZeKlcr','removeClass','hasAttribute','match','domConverter','2853297UUjOmb','uploadcareImageId'];_0x555d=function(){return _0xc8ac74;};return _0x555d();}export function getImageUrls(_0x239da2,_0x39d7e9){const _0x1d9fe2=_0x10ae,_0x2659e7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x1d9fe2(0x1a2)](_0x41f293=>_0x41f293<=_0x39d7e9)[_0x1d9fe2(0x1a9)](_0x5a4632=>_0x239da2[_0x1d9fe2(0x1a7)](/\/$/,'')+_0x1d9fe2(0x19f)+_0x5a4632+_0x1d9fe2(0x1a6)+_0x5a4632+'w');return{'imageFallbackUrl':_0x239da2,'imageSources':[{'srcset':_0x2659e7[_0x1d9fe2(0x1cc)](',\x20'),'sizes':_0x1d9fe2(0x1cd)+_0x39d7e9+_0x1d9fe2(0x1c6)+_0x39d7e9+'px','type':_0x1d9fe2(0x198)}]};}function _0x10ae(_0x39b969,_0x1959fb){const _0x555ddb=_0x555d();return _0x10ae=function(_0x10ae1c,_0x946f78){_0x10ae1c=_0x10ae1c-0x198;let _0x493825=_0x555ddb[_0x10ae1c];return _0x493825;},_0x10ae(_0x39b969,_0x1959fb);}export function getImageDimension(_0x322bd4,_0xbe028d,_0x12be3c){const _0x45dc05=_0x10ae,_0x5d7a3c=_0x322bd4[_0x45dc05(0x1bd)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5d7a3c?parseInt(_0x5d7a3c[0x1],0xa):_0xbe028d,'height':_0x5d7a3c?parseInt(_0x5d7a3c[0x2],0xa):_0x12be3c};}export function showImageProcessingIndicator(_0x32b9a8,_0x48964d){const _0x516154=_0x10ae,_0x40980d=new(_0x4e4872())(),_0x3c7568=_0x32b9a8[_0x516154(0x19a)][_0x516154(0x1c2)](_0x516154(0x1aa)),_0x288329=_0x32b9a8[_0x516154(0x1b9)][_0x516154(0x1cf)][_0x516154(0x1c8)](_0x48964d),_0x42fdf0=_0x3c7568[_0x516154(0x1a4)](_0x288329),_0x21e95e=_0x32b9a8[_0x516154(0x1b9)][_0x516154(0x1c3)][_0x516154(0x1be)][_0x516154(0x1b2)](_0x42fdf0),_0x7f8c5c=_0x48964d[_0x516154(0x1cb)](_0x516154(0x1a1)),_0x5028f3=_0x48964d[_0x516154(0x1cb)](_0x516154(0x1b4)),_0x19fd1b=_0x516154(0x1ad);_0x32b9a8[_0x516154(0x1b9)][_0x516154(0x1c3)][_0x516154(0x1b3)](_0x412e0d=>{const _0x328022=_0x516154;_0x412e0d[_0x328022(0x1ab)](_0x19fd1b,_0x288329),_0x412e0d[_0x328022(0x1a5)](_0x328022(0x1c5),_0x7f8c5c+'/'+_0x5028f3,_0x42fdf0);}),_0x40980d[_0x516154(0x1c1)](_0x21e95e,_0x516154(0x1b7),()=>{const _0x3f4f28=_0x516154;_0x40980d[_0x3f4f28(0x1b0)](_0x21e95e,_0x3f4f28(0x1b7)),_0x32b9a8[_0x3f4f28(0x1b9)][_0x3f4f28(0x1c3)][_0x3f4f28(0x1b3)](_0x5025d6=>{const _0x32db52=_0x3f4f28;_0x5025d6[_0x32db52(0x1bb)](_0x19fd1b,_0x288329),_0x5025d6[_0x32db52(0x1ca)](_0x32db52(0x1c5),_0x42fdf0);});});}function G(_0x45cafe){const _0x564531=_0x10ae;if(Array[_0x564531(0x1af)](_0x45cafe)){const _0x5ba4e2=_0x45cafe[_0x564531(0x1a9)](G);return _0x181cb5=>_0x5ba4e2[_0x564531(0x19c)](_0x274180=>_0x274180(_0x181cb5));}if(_0x564531(0x1ac)==_0x45cafe){const _0x57dc75=_0x3dbe96[_0x564531(0x19b)][_0x564531(0x19d)][_0x564531(0x1ac)];return _0x4d8556=>new URL(_0x4d8556,_0x3dbe96[_0x564531(0x199)][_0x564531(0x19e)])[_0x564531(0x1ac)]==_0x57dc75;}return _0x564531(0x1b6)==typeof _0x45cafe?_0x45cafe:_0x45cafe instanceof RegExp?_0x36d14e=>!(!_0x36d14e[_0x564531(0x1bd)](_0x45cafe)&&!_0x36d14e[_0x564531(0x1a7)](/^https?:\/\//,'')[_0x564531(0x1bd)](_0x45cafe)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4aad(_0x506c24,_0x1d4bfd){var _0x16a963=_0x16a9();return _0x4aad=function(_0x4aada6,_0x2ee178){_0x4aada6=_0x4aada6-0x181;var _0x1db326=_0x16a963[_0x4aada6];return _0x1db326;},_0x4aad(_0x506c24,_0x1d4bfd);}(function(_0x225902,_0x543201){var _0xc22fd7=_0x4aad,_0x1b3839=_0x225902();while(!![]){try{var _0x1584bf=parseInt(_0xc22fd7(0x184))/0x1*(-parseInt(_0xc22fd7(0x189))/0x2)+-parseInt(_0xc22fd7(0x18a))/0x3*(parseInt(_0xc22fd7(0x18d))/0x4)+parseInt(_0xc22fd7(0x185))/0x5*(parseInt(_0xc22fd7(0x182))/0x6)+-parseInt(_0xc22fd7(0x188))/0x7*(parseInt(_0xc22fd7(0x183))/0x8)+-parseInt(_0xc22fd7(0x186))/0x9+-parseInt(_0xc22fd7(0x18b))/0xa+-parseInt(_0xc22fd7(0x18c))/0xb*(-parseInt(_0xc22fd7(0x187))/0xc);if(_0x1584bf===_0x543201)break;else _0x1b3839['push'](_0x1b3839['shift']());}catch(_0x3d7eb0){_0x1b3839['push'](_0x1b3839['shift']());}}}(_0x16a9,0x3726c));import{getAncestors as _0x3e8165}from'ckeditor5/src/utils.js';export function isAncestor(_0x4776f8,_0x5f1bf6){var _0x20e95f=_0x4aad;return _0x3e8165(_0x4776f8[_0x20e95f(0x181)])[_0x20e95f(0x18e)](_0x5f1bf6);}function _0x16a9(){var _0x1029e3=['2495RukyLS','3117168cCXZIW','24WrvhAU','871283DIEKkv','518764SXASBa','118452HQuByJ','1533970lfcfnM','7810022kPAhky','12hvunNL','includes','target','684lTEjEB','24sWyqmb','1XStjhr'];_0x16a9=function(){return _0x1029e3;};return _0x16a9();}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5e4f52=_0x513d;(function(_0xe8b1ca,_0x2e2134){var _0x32546a=_0x513d,_0x39d0ca=_0xe8b1ca();while(!![]){try{var _0x515ab8=parseInt(_0x32546a(0x196))/0x1+parseInt(_0x32546a(0x199))/0x2+-parseInt(_0x32546a(0x197))/0x3+-parseInt(_0x32546a(0x19b))/0x4*(parseInt(_0x32546a(0x195))/0x5)+parseInt(_0x32546a(0x19a))/0x6*(parseInt(_0x32546a(0x19f))/0x7)+-parseInt(_0x32546a(0x19e))/0x8+parseInt(_0x32546a(0x19c))/0x9;if(_0x515ab8===_0x2e2134)break;else _0x39d0ca['push'](_0x39d0ca['shift']());}catch(_0x56af95){_0x39d0ca['push'](_0x39d0ca['shift']());}}}(_0x4e36,0x55fef));import{uploadFile as _0x450393,info as _0x5082b5}from'@uploadcare/upload-client';function _0x513d(_0x36dc39,_0x59ae41){var _0x4e36fc=_0x4e36();return _0x513d=function(_0x513d54,_0x41a7ab){_0x513d54=_0x513d54-0x195;var _0x5bdc58=_0x4e36fc[_0x513d54];return _0x5bdc58;},_0x513d(_0x36dc39,_0x59ae41);}export class UploadUtils{static[_0x5e4f52(0x198)]({file:_0x4993b8,..._0x59f749}){return _0x450393(_0x4993b8,_0x59f749);}static[_0x5e4f52(0x19d)](_0x4804d7,_0x28f737){return _0x5082b5(_0x4804d7,_0x28f737);}}function _0x4e36(){var _0x429526=['128640fbBfdx','116148biQeTT','4iUXrmJ','8575173HMRZcg','getInfo','5196840ehBNao','112tmiQbH','982965sceUyM','423206BmMOFt','1654842MkxGHB','upload'];_0x4e36=function(){return _0x429526;};return _0x4e36();}
|