@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250618.0 → 0.0.0-nightly-20250619.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 _0x15185e,View as _0xc08a07}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0xc08a07{constructor(_0x201893){super(_0x201893);const t=_0x201893['t'],_0x4c5f84=this['bindTemplate'],_0x1c3802=new _0x15185e();_0x1c3802['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':[_0x1c3802,{'text':_0x4c5f84['to']('imageUploadProgress',_0x1112e0=>t('Loading\x20image...')+'\x20('+(_0x1112e0||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
|
-
function
|
|
23
|
+
const _0x11cbc8=_0x16f9;(function(_0x12787b,_0xd08cb5){const _0x1623d8=_0x16f9,_0xf0295a=_0x12787b();while(!![]){try{const _0x440a9a=parseInt(_0x1623d8(0x109))/0x1*(-parseInt(_0x1623d8(0xeb))/0x2)+parseInt(_0x1623d8(0xef))/0x3+parseInt(_0x1623d8(0xf4))/0x4*(-parseInt(_0x1623d8(0x102))/0x5)+parseInt(_0x1623d8(0x10b))/0x6*(-parseInt(_0x1623d8(0xec))/0x7)+-parseInt(_0x1623d8(0x104))/0x8*(parseInt(_0x1623d8(0x108))/0x9)+-parseInt(_0x1623d8(0x10a))/0xa+parseInt(_0x1623d8(0xf9))/0xb;if(_0x440a9a===_0xd08cb5)break;else _0xf0295a['push'](_0xf0295a['shift']());}catch(_0x3c8687){_0xf0295a['push'](_0xf0295a['shift']());}}}(_0x4e90,0xa4d0e));import{View as _0x694f83}from'ckeditor5/src/ui.js';function _0x4e90(){const _0x389233=['ck-reset_all-excluded','once','detail','uc-cloud-image-editor','_addErrorViewListeners','add','fire','cdnUrl','set','disconnect','cancel','element','44qdVAKX','168NccBgg','status','focus','1475055MjcezJ','_editingView','createCollection','_items','target','568XSCxRh','_errorView','ready','uploading','addMany','29313295WNdTSW','nodeName','getFocusableElement','_focusableView','clear','retry','querySelector','observe','error','6645HnnGgM','toLowerCase','24fUtTfh','filter','setTemplate','addedNodes','692451SCCmiA','43114CkbphH','7101050Ptjqtl','100824jFynno','ck-uploadcare-form','_addUploadcareImageEditorListeners','apply','change:status','_setView','_loadingView','div','render','addEventListener','_waitForImageEditorComponent','length'];_0x4e90=function(){return _0x389233;};return _0x4e90();}import{UploadcareImageEditFormLoadingView as _0x31c5e6}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x60211f}from'./uploadcareimageeditformerrorview.js';function _0x16f9(_0x4e670c,_0x1da2a8){const _0x4e9015=_0x4e90();return _0x16f9=function(_0x16f9b5,_0x3af98f){_0x16f9b5=_0x16f9b5-0xd9;let _0x138938=_0x4e9015[_0x16f9b5];return _0x138938;},_0x16f9(_0x4e670c,_0x1da2a8);}import{UploadcareImageEditFormEditingView as _0x4ffd23}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3a8b8b}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x3a8b8b{[_0x11cbc8(0xf2)];[_0x11cbc8(0xd9)];[_0x11cbc8(0xf5)];[_0x11cbc8(0xf0)];[_0x11cbc8(0xfc)];constructor(_0xd91b1c,_0x48927d,_0x1a2eb6){const _0x4bb43e=_0x11cbc8;super(_0xd91b1c),this[_0x4bb43e(0xf2)]=this[_0x4bb43e(0xf1)](),this[_0x4bb43e(0xd9)]=new _0x31c5e6(_0xd91b1c),this[_0x4bb43e(0xf5)]=new _0x60211f(_0xd91b1c),this[_0x4bb43e(0xf0)]=new _0x4ffd23(_0xd91b1c,_0x1a2eb6),this[_0x4bb43e(0xfc)]=new _0x694f83(_0xd91b1c),this[_0x4bb43e(0xfc)][_0x4bb43e(0x106)](this[_0x4bb43e(0xfb)]()),this[_0x4bb43e(0xe7)](_0x4bb43e(0xed),_0x48927d),this[_0x4bb43e(0x106)]({'tag':_0x4bb43e(0xda),'attributes':{'class':['ck',_0x4bb43e(0xdf),_0x4bb43e(0x10c)],'tabindex':'-1'},'children':this[_0x4bb43e(0xf2)]}),this[_0x4bb43e(0x110)](),this[_0x4bb43e(0xe0)](_0x4bb43e(0xdb),()=>{const _0x3e9b2a=_0x4bb43e;this[_0x3e9b2a(0xdd)](this[_0x3e9b2a(0xea)],_0x2cc7b5=>{const _0x189cca=_0x3e9b2a;this[_0x189cca(0x10d)](_0x2cc7b5);});}),this['on'](_0x4bb43e(0x10f),()=>{const _0x1edcf4=_0x4bb43e;this[_0x1edcf4(0x110)]();}),this[_0x4bb43e(0xe3)]();}[_0x11cbc8(0xee)](){const _0x2e17d3=_0x11cbc8;this[_0x2e17d3(0xea)][_0x2e17d3(0xee)]();}[_0x11cbc8(0x110)](){const _0x436389=_0x11cbc8;switch(this[_0x436389(0xf2)][_0x436389(0xfd)](),this[_0x436389(0xed)]){case _0x436389(0xf7):this[_0x436389(0xf2)][_0x436389(0xe4)](this[_0x436389(0xd9)]);break;case _0x436389(0x101):this[_0x436389(0xf2)][_0x436389(0xe4)](this[_0x436389(0xf5)]);break;case _0x436389(0xf6):this[_0x436389(0xf2)][_0x436389(0xf8)]([this[_0x436389(0xf0)],this[_0x436389(0xfc)]]);}}[_0x11cbc8(0xdd)](_0x12025f,_0x53d6c3){const _0x198cf5=_0x11cbc8,_0x3abe61=_0x198cf5(0xe2),_0x537505=_0x12025f[_0x198cf5(0xff)](_0x3abe61);if(_0x537505)return _0x53d6c3(_0x537505);const _0xcfb4ee=new MutationObserver(_0x3517ba=>{const _0x492093=_0x198cf5,_0x5771a4=_0x3517ba[_0x492093(0x105)](_0x5bc071=>_0x5bc071[_0x492093(0xf3)]===_0x12025f&&_0x5bc071[_0x492093(0x107)][_0x492093(0xde)]>0x0&&_0x5bc071[_0x492093(0x107)][0x0][_0x492093(0xfa)][_0x492093(0x103)]()===_0x3abe61);_0x5771a4[_0x492093(0xde)]&&(_0xcfb4ee[_0x492093(0xe8)](),_0x53d6c3(_0x5771a4[0x0][_0x492093(0x107)][0x0]));});_0xcfb4ee[_0x198cf5(0x100)](_0x12025f,{'childList':!0x0,'subtree':!0x0});}[_0x11cbc8(0x10d)](_0x1b8d51){const _0x5265e2=_0x11cbc8;_0x1b8d51[_0x5265e2(0xdc)](_0x5265e2(0x10e),_0x14fbc9=>{const _0x5ba97e=_0x5265e2;this[_0x5ba97e(0xe5)](_0x5ba97e(0x10e),{'imageSrc':_0x14fbc9[_0x5ba97e(0xe1)][_0x5ba97e(0xe6)]});}),_0x1b8d51[_0x5265e2(0xdc)](_0x5265e2(0xe9),()=>{const _0x2e5151=_0x5265e2;this[_0x2e5151(0xe5)](_0x2e5151(0xe9));});}[_0x11cbc8(0xe3)](){const _0x396990=_0x11cbc8;this[_0x396990(0xf5)]['on'](_0x396990(0xfe),()=>{const _0x251415=_0x396990;this[_0x251415(0xe5)](_0x251415(0xfe));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4009(_0x298ad9,_0x48efe7){const _0x19666c=_0x1966();return _0x4009=function(_0x40093e,_0x5c0b09){_0x40093e=_0x40093e-0x1bf;let _0x2b8ed5=_0x19666c[_0x40093e];return _0x2b8ed5;},_0x4009(_0x298ad9,_0x48efe7);}function _0x1966(){const _0x2d4ce6=['55806XOaOTe','1143LCRvcN','bind','15FlUWFc','document','isEnabled','uploadcare.allowExternalImagesEditing','imageInline','unbind','selection','get','1140952MWsYrb','2133822OPtpye','getSelectedElement','plugins','requires','imageEditController','51070qZbNnc','244736uhwtKL','42yQSYTO','8MKDVnB','set','config','_isEditable','execute','editor','model','refresh','imageBlock','element','398472bPBmEi','6172144SJrlqS','isActive'];_0x1966=function(){return _0x2d4ce6;};return _0x1966();}const _0x14bd84=_0x4009;(function(_0x17c2cc,_0x170e50){const _0x423231=_0x4009,_0x2de33c=_0x17c2cc();while(!![]){try{const _0x23b413=parseInt(_0x423231(0x1cd))/0x1+parseInt(_0x423231(0x1c7))/0x2+parseInt(_0x423231(0x1dc))/0x3*(parseInt(_0x423231(0x1cf))/0x4)+-parseInt(_0x423231(0x1df))/0x5*(-parseInt(_0x423231(0x1d9))/0x6)+-parseInt(_0x423231(0x1ce))/0x7*(parseInt(_0x423231(0x1c6))/0x8)+-parseInt(_0x423231(0x1dd))/0x9*(parseInt(_0x423231(0x1cc))/0xa)+parseInt(_0x423231(0x1da))/0xb;if(_0x23b413===_0x170e50)break;else _0x2de33c['push'](_0x2de33c['shift']());}catch(_0x3321c7){_0x2de33c['push'](_0x2de33c['shift']());}}}(_0x1966,0x93ad8));import{Command as _0x3ef839}from'ckeditor5/src/core.js';import{Dialog as _0x56e1b8}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1a21b1}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x5ba443}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3ef839{[_0x14bd84(0x1cb)];static get[_0x14bd84(0x1ca)](){return[_0x56e1b8];}[_0x14bd84(0x1d2)];constructor(_0x59d75a){const _0x2e3561=_0x14bd84;super(_0x59d75a),this[_0x2e3561(0x1cb)]=void 0x0,this[_0x2e3561(0x1d2)]=_0x5ba443(_0x59d75a[_0x2e3561(0x1d1)][_0x2e3561(0x1c5)](_0x2e3561(0x1c1))||[]),this[_0x2e3561(0x1d0)]({'isActive':!0x1});}[_0x14bd84(0x1d6)](){const _0x5afe63=_0x14bd84,_0x56fd5b=this[_0x5afe63(0x1d4)][_0x5afe63(0x1d5)][_0x5afe63(0x1bf)][_0x5afe63(0x1c4)][_0x5afe63(0x1c8)]();this[_0x5afe63(0x1c0)]=this[_0x5afe63(0x1d2)](_0x56fd5b);}[_0x14bd84(0x1d3)](){const _0x2f6d8f=_0x14bd84;this[_0x2f6d8f(0x1cb)]&&(this[_0x2f6d8f(0x1c3)](_0x2f6d8f(0x1db)),this[_0x2f6d8f(0x1cb)]=void 0x0);const _0x410faa=this[_0x2f6d8f(0x1d4)][_0x2f6d8f(0x1d5)][_0x2f6d8f(0x1bf)][_0x2f6d8f(0x1c4)][_0x2f6d8f(0x1c8)]();_0x410faa&&(_0x410faa['is'](_0x2f6d8f(0x1d8),_0x2f6d8f(0x1d7))||_0x410faa['is'](_0x2f6d8f(0x1d8),_0x2f6d8f(0x1c2)))&&(this[_0x2f6d8f(0x1cb)]=new _0x1a21b1(this[_0x2f6d8f(0x1d4)],this[_0x2f6d8f(0x1d4)][_0x2f6d8f(0x1c9)][_0x2f6d8f(0x1c5)](_0x56e1b8),_0x410faa),this[_0x2f6d8f(0x1de)](_0x2f6d8f(0x1db))['to'](this[_0x2f6d8f(0x1cb)],_0x2f6d8f(0x1db)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24f534=_0x1680;(function(_0x364aab,_0x4d15a0){const _0x2deaff=_0x1680,_0x5ebcd3=_0x364aab();while(!![]){try{const _0x120ddf=-parseInt(_0x2deaff(0x1f1))/0x1*(-parseInt(_0x2deaff(0x1fd))/0x2)+-parseInt(_0x2deaff(0x1f7))/0x3*(-parseInt(_0x2deaff(0x1f4))/0x4)+-parseInt(_0x2deaff(0x1fa))/0x5+-parseInt(_0x2deaff(0x1ef))/0x6+parseInt(_0x2deaff(0x1fc))/0x7+-parseInt(_0x2deaff(0x1f3))/0x8+parseInt(_0x2deaff(0x1fe))/0x9;if(_0x120ddf===_0x4d15a0)break;else _0x5ebcd3['push'](_0x5ebcd3['shift']());}catch(_0xa970f2){_0x5ebcd3['push'](_0x5ebcd3['shift']());}}}(_0x4f66,0x4fdc2));function _0x1680(_0x36c570,_0x1a19bc){const _0x4f664a=_0x4f66();return _0x1680=function(_0x1680ea,_0x29c113){_0x1680ea=_0x1680ea-0x1ed;let _0x15aab9=_0x4f664a[_0x1680ea];return _0x15aab9;},_0x1680(_0x36c570,_0x1a19bc);}import{Plugin as _0x119874}from'ckeditor5/src/core.js';import{Notification as _0x5a2b8a}from'ckeditor5/src/ui.js';function _0x4f66(){const _0x1c5088=['3186834eJBwFc','uploadcareImageEdit','89MBmtIa','commands','2216392YACYYt','32ZaKioH','ImageUtils','UploadcareImageEditEditing','207633XhEyyM','init','isPremiumPlugin','771260gYBuew','ImageEditing','354501zapdYu','10364QAhLUq','2016153zqzUAk','requires','add','uploadcareImageReplace','isOfficialPlugin','pluginName'];_0x4f66=function(){return _0x1c5088;};return _0x4f66();}import{UploadcareImageEditCommand as _0x18100d}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x26ca2e}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x44eaf2}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x119874{static get[_0x24f534(0x1ee)](){const _0xbabce1=_0x24f534;return _0xbabce1(0x1f6);}static get[_0x24f534(0x1ff)](){const _0x58bd84=_0x24f534;return[_0x44eaf2,_0x5a2b8a,_0x58bd84(0x1f5),_0x58bd84(0x1fb)];}static get[_0x24f534(0x1ed)](){return!0x0;}static get[_0x24f534(0x1f9)](){return!0x0;}[_0x24f534(0x1f8)](){const _0x1f7df1=_0x24f534,{editor:_0x2ef81a}=this;_0x2ef81a[_0x1f7df1(0x1f2)][_0x1f7df1(0x200)](_0x1f7df1(0x1f0),new _0x18100d(_0x2ef81a)),_0x2ef81a[_0x1f7df1(0x1f2)][_0x1f7df1(0x200)](_0x1f7df1(0x201),new _0x26ca2e(_0x2ef81a));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x462f1d}from'ckeditor5/src/core.js';import{ButtonView as _0x3b2e4e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xbac178}from'ckeditor5/src/icons.js';import{createElement as _0x4f0e68}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 _0x462f1d{['_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 _0x17a8d4=this['editor'];_0x17a8d4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5f4820=>{const _0x18ce72=_0x17a8d4['commands']['get']('uploadcareImageEdit'),_0xa9c3a1=new _0x3b2e4e(_0x5f4820),t=_0x5f4820['t'];return _0xa9c3a1['set']({'icon':_0xbac178,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xa9c3a1['bind']('isEnabled')['to'](_0x18ce72),_0xa9c3a1['bind']('isOn')['to'](_0x18ce72,'isActive'),this['listenTo'](_0xa9c3a1,'execute',()=>{_0x17a8d4['execute']('uploadcareImageEdit'),_0x17a8d4['editing']['view']['focus']();}),_0xa9c3a1;}),this['_initConfig']();}['_initConfig'](){const _0x1ab821=_0x4f0e68(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1ab821),this['listenTo'](this['editor'],'destroy',()=>{_0x1ab821['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x5f3c40=_0x50f4;(function(_0x7248a9,_0x4bb183){var _0x14a5d2=_0x50f4,_0x31f4d7=_0x7248a9();while(!![]){try{var _0x45a3bd=parseInt(_0x14a5d2(0x159))/0x1+parseInt(_0x14a5d2(0x146))/0x2+-parseInt(_0x14a5d2(0x14c))/0x3*(-parseInt(_0x14a5d2(0x149))/0x4)+parseInt(_0x14a5d2(0x14f))/0x5+parseInt(_0x14a5d2(0x154))/0x6*(parseInt(_0x14a5d2(0x150))/0x7)+parseInt(_0x14a5d2(0x152))/0x8*(parseInt(_0x14a5d2(0x14a))/0x9)+parseInt(_0x14a5d2(0x14e))/0xa*(-parseInt(_0x14a5d2(0x153))/0xb);if(_0x45a3bd===_0x4bb183)break;else _0x31f4d7['push'](_0x31f4d7['shift']());}catch(_0x5b9279){_0x31f4d7['push'](_0x31f4d7['shift']());}}}(_0x4aa3,0xd1682));function _0x4aa3(){var _0x189665=['focusTracker','div','focusCycler','createCollection','100815jrZJKB','1394670WNvBoY','true','fire','3414192QfNFUK','8371764McYAZb','forwardCycle','3naROlG','bindTemplate','70rbGvGJ','1838015SvZnfj','1806161SGNLSH','getFocusableElement','8JkXOMp','5314386VRQUKG','30LwdLil'];_0x4aa3=function(){return _0x189665;};return _0x4aa3();}import{FocusTracker as _0x4acaa6}from'ckeditor5/src/utils.js';function _0x50f4(_0x4faf4e,_0x436aba){var _0x4aa3f6=_0x4aa3();return _0x50f4=function(_0x50f448,_0x5cf10f){_0x50f448=_0x50f448-0x146;var _0x51ef4d=_0x4aa3f6[_0x50f448];return _0x51ef4d;},_0x50f4(_0x4faf4e,_0x436aba);}import{View as _0x1702b6,FocusCycler as _0x5c96f8}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1702b6{[_0x5f3c40(0x155)];[_0x5f3c40(0x157)];constructor(_0x3ae5ec){var _0x4e16dc=_0x5f3c40;super(_0x3ae5ec),this[_0x4e16dc(0x155)]=new _0x4acaa6(),this[_0x4e16dc(0x157)]=new _0x5c96f8({'focusables':this[_0x4e16dc(0x158)](),'focusTracker':this[_0x4e16dc(0x155)]});}[_0x5f3c40(0x151)](){var _0xb38883=_0x5f3c40;return{'tag':_0xb38883(0x156),'attributes':{'aria-hidden':_0xb38883(0x147),'tabindex':'0'},'on':{'focus':this[_0xb38883(0x14d)]['to'](()=>{var _0x2d7f16=_0xb38883;this[_0x2d7f16(0x157)][_0x2d7f16(0x148)](_0x2d7f16(0x14b));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x428dbb,_0x4689a3){const _0x5e9014=_0x45d8,_0x448e98=_0x428dbb();while(!![]){try{const _0x407dd3=-parseInt(_0x5e9014(0x1e1))/0x1*(parseInt(_0x5e9014(0x1eb))/0x2)+parseInt(_0x5e9014(0x1ec))/0x3+parseInt(_0x5e9014(0x1d9))/0x4*(parseInt(_0x5e9014(0x207))/0x5)+parseInt(_0x5e9014(0x1d3))/0x6*(-parseInt(_0x5e9014(0x1e6))/0x7)+-parseInt(_0x5e9014(0x1f9))/0x8+parseInt(_0x5e9014(0x1d8))/0x9+-parseInt(_0x5e9014(0x1ef))/0xa;if(_0x407dd3===_0x4689a3)break;else _0x448e98['push'](_0x448e98['shift']());}catch(_0x238929){_0x448e98['push'](_0x448e98['shift']());}}}(_0xecc2,0x5e8df));import{global as _0x1703c0,DomEmitterMixin as _0x568625}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x3a8dbe){const _0xfa642a=_0x45d8,_0x1f0fe7=G(_0x3a8dbe);return _0x9f6d4=>!(!_0x9f6d4||!_0x9f6d4['is'](_0xfa642a(0x1f8),_0xfa642a(0x1ed))&&!_0x9f6d4['is'](_0xfa642a(0x1f8),_0xfa642a(0x1e3)))&&(!!_0x9f6d4[_0xfa642a(0x1f1)](_0xfa642a(0x1e5))||!!_0x9f6d4[_0xfa642a(0x1f1)](_0xfa642a(0x201))&&_0x1f0fe7(_0x9f6d4[_0xfa642a(0x1d7)](_0xfa642a(0x201))));}function _0x45d8(_0xace016,_0x16d3c1){const _0xecc22c=_0xecc2();return _0x45d8=function(_0x45d8f9,_0x21518b){_0x45d8f9=_0x45d8f9-0x1d1;let _0x2a6dbd=_0xecc22c[_0x45d8f9];return _0x2a6dbd;},_0x45d8(_0xace016,_0x16d3c1);}export function getImageUrls(_0x3e9cb2,_0x457f1d){const _0x1661cd=_0x45d8,_0x3f3695=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x1661cd(0x1ea)](_0x4556be=>_0x4556be<=_0x457f1d)[_0x1661cd(0x1f0)](_0x3b836f=>_0x3e9cb2[_0x1661cd(0x1d6)](/\/$/,'')+_0x1661cd(0x1d2)+_0x3b836f+_0x1661cd(0x1e2)+_0x3b836f+'w');return{'imageFallbackUrl':_0x3e9cb2,'imageSources':[{'srcset':_0x3f3695[_0x1661cd(0x1f4)](',\x20'),'sizes':_0x1661cd(0x206)+_0x457f1d+_0x1661cd(0x1f6)+_0x457f1d+'px','type':_0x1661cd(0x1fb)}]};}export function getImageDimension(_0x2b8f97,_0x21156d,_0x4d167f){const _0xac4753=_0x45d8,_0x46d947=_0x2b8f97[_0xac4753(0x1f5)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x46d947?parseInt(_0x46d947[0x1],0xa):_0x21156d,'height':_0x46d947?parseInt(_0x46d947[0x2],0xa):_0x4d167f};}function _0xecc2(){const _0x22e165=['location','domConverter','removeClass','toViewElement','(max-width:\x20','1365mKndda','stopListening','editing','some','/-/resize/','6sCBFAL','isArray','origin','replace','getAttribute','3271824DTyTOb','2452wmmTZd','listenTo','ImageUtils','load','findViewImgElement','setStyle','plugins','image-processing','2oveDfK','x/\x20','imageInline','document','uploadcareImageId','1443911CvKGQq','change','removeStyle','width','filter','119752gLQVdb','1596180gUVWLP','imageBlock','baseURI','1241570oEwLOW','map','hasAttribute','window','mapper','join','match','px)\x20100vw,\x20','addClass','element','1803744wJXPsH','height','image/webp','aspect-ratio','view','get','function','viewToDom','src'];_0xecc2=function(){return _0x22e165;};return _0xecc2();}export function showImageProcessingIndicator(_0x5be23f,_0xe85146){const _0x2b482a=_0x45d8,_0x550695=new(_0x568625())(),_0x1d6fe8=_0x5be23f[_0x2b482a(0x1df)][_0x2b482a(0x1fe)](_0x2b482a(0x1db)),_0x43734e=_0x5be23f[_0x2b482a(0x209)][_0x2b482a(0x1f3)][_0x2b482a(0x205)](_0xe85146),_0x258e3f=_0x1d6fe8[_0x2b482a(0x1dd)](_0x43734e),_0x3f6615=_0x5be23f[_0x2b482a(0x209)][_0x2b482a(0x1fd)][_0x2b482a(0x203)][_0x2b482a(0x200)](_0x258e3f),_0x5a9ea9=_0xe85146[_0x2b482a(0x1d7)](_0x2b482a(0x1e9)),_0x270183=_0xe85146[_0x2b482a(0x1d7)](_0x2b482a(0x1fa)),_0x309da9=_0x2b482a(0x1e0);_0x5be23f[_0x2b482a(0x209)][_0x2b482a(0x1fd)][_0x2b482a(0x1e7)](_0x12064b=>{const _0x4a406b=_0x2b482a;_0x12064b[_0x4a406b(0x1f7)](_0x309da9,_0x43734e),_0x12064b[_0x4a406b(0x1de)](_0x4a406b(0x1fc),_0x5a9ea9+'/'+_0x270183,_0x258e3f);}),_0x550695[_0x2b482a(0x1da)](_0x3f6615,_0x2b482a(0x1dc),()=>{const _0x4df451=_0x2b482a;_0x550695[_0x4df451(0x208)](_0x3f6615,_0x4df451(0x1dc)),_0x5be23f[_0x4df451(0x209)][_0x4df451(0x1fd)][_0x4df451(0x1e7)](_0x29e354=>{const _0x5c9944=_0x4df451;_0x29e354[_0x5c9944(0x204)](_0x309da9,_0x43734e),_0x29e354[_0x5c9944(0x1e8)](_0x5c9944(0x1fc),_0x258e3f);});});}function G(_0x234458){const _0x5db939=_0x45d8;if(Array[_0x5db939(0x1d4)](_0x234458)){const _0x2dcc85=_0x234458[_0x5db939(0x1f0)](G);return _0x424f35=>_0x2dcc85[_0x5db939(0x1d1)](_0x20df42=>_0x20df42(_0x424f35));}if(_0x5db939(0x1d5)==_0x234458){const _0x10f5a9=_0x1703c0[_0x5db939(0x1f2)][_0x5db939(0x202)][_0x5db939(0x1d5)];return _0x27edfa=>new URL(_0x27edfa,_0x1703c0[_0x5db939(0x1e4)][_0x5db939(0x1ee)])[_0x5db939(0x1d5)]==_0x10f5a9;}return _0x5db939(0x1ff)==typeof _0x234458?_0x234458:_0x234458 instanceof RegExp?_0x28c725=>!(!_0x28c725[_0x5db939(0x1f5)](_0x234458)&&!_0x28c725[_0x5db939(0x1d6)](/^https?:\/\//,'')[_0x5db939(0x1f5)](_0x234458)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x330d(_0x5c9cca,_0x13389b){var _0x21df34=_0x21df();return _0x330d=function(_0x330d93,_0x5d427c){_0x330d93=_0x330d93-0x80;var _0x612214=_0x21df34[_0x330d93];return _0x612214;},_0x330d(_0x5c9cca,_0x13389b);}(function(_0x2be5cc,_0x16e531){var _0x5e9733=_0x330d,_0x3d96d3=_0x2be5cc();while(!![]){try{var _0x3d19b0=-parseInt(_0x5e9733(0x84))/0x1+parseInt(_0x5e9733(0x81))/0x2+-parseInt(_0x5e9733(0x82))/0x3+parseInt(_0x5e9733(0x89))/0x4+-parseInt(_0x5e9733(0x87))/0x5*(-parseInt(_0x5e9733(0x8a))/0x6)+-parseInt(_0x5e9733(0x85))/0x7+parseInt(_0x5e9733(0x86))/0x8*(parseInt(_0x5e9733(0x80))/0x9);if(_0x3d19b0===_0x16e531)break;else _0x3d96d3['push'](_0x3d96d3['shift']());}catch(_0x363f71){_0x3d96d3['push'](_0x3d96d3['shift']());}}}(_0x21df,0xb44b3));function _0x21df(){var _0x11379e=['4170IuWRZB','585iBkBou','652736wSkYeu','3042468XqGQZG','includes','1432471BOqvvK','1587180fnHGwm','162648NDmZFm','10330oGoRcQ','target','1312388lprebG'];_0x21df=function(){return _0x11379e;};return _0x21df();}import{getAncestors as _0x5ac48a}from'ckeditor5/src/utils.js';export function isAncestor(_0x20c9f0,_0x338079){var _0x1f8035=_0x330d;return _0x5ac48a(_0x20c9f0[_0x1f8035(0x88)])[_0x1f8035(0x83)](_0x338079);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x31e1d0=_0x49d1;function _0x2488(){var _0x58b009=['3jyzgRH','190246koSUaY','6967746vdHyMH','upload','27262CbuABd','58iwAxtf','getInfo','3851394QoIZdy','auto','1353168VxTFLm','2064640TwNtFy','1434752zAUVAI'];_0x2488=function(){return _0x58b009;};return _0x2488();}(function(_0xbc1598,_0x4d38df){var _0x5a08bb=_0x49d1,_0x5bbd50=_0xbc1598();while(!![]){try{var _0x5d2f07=parseInt(_0x5a08bb(0xf3))/0x1*(parseInt(_0x5a08bb(0xf2))/0x2)+-parseInt(_0x5a08bb(0xee))/0x3*(parseInt(_0x5a08bb(0xf9))/0x4)+parseInt(_0x5a08bb(0xf8))/0x5+parseInt(_0x5a08bb(0xf5))/0x6+parseInt(_0x5a08bb(0xef))/0x7+-parseInt(_0x5a08bb(0xf7))/0x8+-parseInt(_0x5a08bb(0xf0))/0x9;if(_0x5d2f07===_0x4d38df)break;else _0x5bbd50['push'](_0x5bbd50['shift']());}catch(_0x4fcbb8){_0x5bbd50['push'](_0x5bbd50['shift']());}}}(_0x2488,0x8b4cf));function _0x49d1(_0x47d932,_0x2c036f){var _0x24884e=_0x2488();return _0x49d1=function(_0x49d172,_0x3a23c0){_0x49d172=_0x49d172-0xee;var _0x442b6d=_0x24884e[_0x49d172];return _0x442b6d;},_0x49d1(_0x47d932,_0x2c036f);}import{uploadFile as _0x2559cc,info as _0xf28a6c}from'@uploadcare/upload-client';export class UploadUtils{static[_0x31e1d0(0xf1)]({file:_0x108fd3,publicKey:_0x3fd382,signal:_0x1161bd,onProgress:_0x4fd9bc}){var _0x5b1ae2=_0x31e1d0;return _0x2559cc(_0x108fd3,{'publicKey':_0x3fd382,'store':_0x5b1ae2(0xf6),'signal':_0x1161bd,'onProgress':_0x4fd9bc});}static[_0x31e1d0(0xf4)](_0x25ee3b,_0x4c2ec1){return _0xf28a6c(_0x25ee3b,_0x4c2ec1);}}
|