@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251010.1 → 0.0.0-nightly-20251012.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 _0x582e14,View as _0x4dcc86}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4dcc86{constructor(_0x34dae8){super(_0x34dae8);const t=_0x34dae8['t'],_0x1bad94=this['bindTemplate'],_0x444e9f=new _0x582e14();_0x444e9f['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':[_0x444e9f,{'text':_0x1bad94['to']('imageUploadProgress',_0x35bb14=>t('Loading\x20image...')+'\x20('+(_0x35bb14||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 _0x1049(_0x14de8b,_0x4fe620){const _0x137ea6=_0x137e();return _0x1049=function(_0x1049c9,_0x3ec640){_0x1049c9=_0x1049c9-0x173;let _0xc67818=_0x137ea6[_0x1049c9];return _0xc67818;},_0x1049(_0x14de8b,_0x4fe620);}const _0x550a49=_0x1049;(function(_0xc649a3,_0x5269be){const _0x189642=_0x1049,_0x445b52=_0xc649a3();while(!![]){try{const _0x18a5c1=parseInt(_0x189642(0x175))/0x1*(-parseInt(_0x189642(0x179))/0x2)+parseInt(_0x189642(0x18b))/0x3*(-parseInt(_0x189642(0x1a5))/0x4)+-parseInt(_0x189642(0x189))/0x5+parseInt(_0x189642(0x1a7))/0x6*(parseInt(_0x189642(0x17c))/0x7)+parseInt(_0x189642(0x19d))/0x8*(parseInt(_0x189642(0x1a3))/0x9)+-parseInt(_0x189642(0x190))/0xa+-parseInt(_0x189642(0x17a))/0xb*(-parseInt(_0x189642(0x176))/0xc);if(_0x18a5c1===_0x5269be)break;else _0x445b52['push'](_0x445b52['shift']());}catch(_0x593ed9){_0x445b52['push'](_0x445b52['shift']());}}}(_0x137e,0xec5e6));import{View as _0x274dd3}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x116a2d}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3cdc32}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xf526b7}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x18b36a}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x137e(){const _0x6dfa43=['_items','addMany','filter','clear','_setView','getFocusableElement','change:status','cdnUrl','target','error','once','1389780piWsKA','addEventListener','441423HBJyYo','uc-cloud-image-editor','ck-uploadcare-form','setTemplate','detail','9416070SRnYLF','_addErrorViewListeners','status','disconnect','render','apply','addedNodes','focus','querySelector','_waitForImageEditorComponent','ck-reset_all-excluded','length','set','6264uOlKsi','add','createCollection','uploading','nodeName','fire','3384YhZbpu','element','8UXjTuZ','ready','3612VNCRzp','_loadingView','_errorView','toLowerCase','observe','retry','div','162309QfjOSl','12mfHAFd','cancel','_focusableView','6Uoaoho','13652848RqoWbU','_addUploadcareImageEditorListeners','16667SRxGjm','_editingView'];_0x137e=function(){return _0x6dfa43;};return _0x137e();}export class UploadcareImageEditFormView extends _0x18b36a{[_0x550a49(0x17e)];[_0x550a49(0x1a8)];[_0x550a49(0x1a9)];[_0x550a49(0x17d)];[_0x550a49(0x178)];constructor(_0x14dadf,_0x1cf08b,_0x2934a4){const _0x31b9ff=_0x550a49;super(_0x14dadf),this[_0x31b9ff(0x17e)]=this[_0x31b9ff(0x19f)](),this[_0x31b9ff(0x1a8)]=new _0x116a2d(_0x14dadf),this[_0x31b9ff(0x1a9)]=new _0x3cdc32(_0x14dadf),this[_0x31b9ff(0x17d)]=new _0xf526b7(_0x14dadf,_0x2934a4),this[_0x31b9ff(0x178)]=new _0x274dd3(_0x14dadf),this[_0x31b9ff(0x178)][_0x31b9ff(0x18e)](this[_0x31b9ff(0x183)]()),this[_0x31b9ff(0x19c)](_0x31b9ff(0x192),_0x1cf08b),this[_0x31b9ff(0x18e)]({'tag':_0x31b9ff(0x174),'attributes':{'class':['ck',_0x31b9ff(0x19a),_0x31b9ff(0x18d)],'tabindex':'-1'},'children':this[_0x31b9ff(0x17e)]}),this[_0x31b9ff(0x182)](),this[_0x31b9ff(0x188)](_0x31b9ff(0x194),()=>{const _0x4b1e09=_0x31b9ff;this[_0x4b1e09(0x199)](this[_0x4b1e09(0x1a4)],_0x5e6e8b=>{const _0x3989fc=_0x4b1e09;this[_0x3989fc(0x17b)](_0x5e6e8b);});}),this['on'](_0x31b9ff(0x184),()=>{const _0x2d9518=_0x31b9ff;this[_0x2d9518(0x182)]();}),this[_0x31b9ff(0x191)]();}[_0x550a49(0x197)](){const _0x45403b=_0x550a49;this[_0x45403b(0x1a4)][_0x45403b(0x197)]();}[_0x550a49(0x182)](){const _0x51a653=_0x550a49;switch(this[_0x51a653(0x17e)][_0x51a653(0x181)](),this[_0x51a653(0x192)]){case _0x51a653(0x1a0):this[_0x51a653(0x17e)][_0x51a653(0x19e)](this[_0x51a653(0x1a8)]);break;case _0x51a653(0x187):this[_0x51a653(0x17e)][_0x51a653(0x19e)](this[_0x51a653(0x1a9)]);break;case _0x51a653(0x1a6):this[_0x51a653(0x17e)][_0x51a653(0x17f)]([this[_0x51a653(0x17d)],this[_0x51a653(0x178)]]);}}[_0x550a49(0x199)](_0x591a24,_0x204921){const _0x985c5c=_0x550a49,_0x53d7f3=_0x985c5c(0x18c),_0x2e221f=_0x591a24[_0x985c5c(0x198)](_0x53d7f3);if(_0x2e221f)return _0x204921(_0x2e221f);const _0x34d282=new MutationObserver(_0x543472=>{const _0xd77d1c=_0x985c5c,_0x20dd56=_0x543472[_0xd77d1c(0x180)](_0x3add17=>_0x3add17[_0xd77d1c(0x186)]===_0x591a24&&_0x3add17[_0xd77d1c(0x196)][_0xd77d1c(0x19b)]>0x0&&_0x3add17[_0xd77d1c(0x196)][0x0][_0xd77d1c(0x1a1)][_0xd77d1c(0x1aa)]()===_0x53d7f3);_0x20dd56[_0xd77d1c(0x19b)]&&(_0x34d282[_0xd77d1c(0x193)](),_0x204921(_0x20dd56[0x0][_0xd77d1c(0x196)][0x0]));});_0x34d282[_0x985c5c(0x1ab)](_0x591a24,{'childList':!0x0,'subtree':!0x0});}[_0x550a49(0x17b)](_0x3fa2bf){const _0x5889a2=_0x550a49;_0x3fa2bf[_0x5889a2(0x18a)](_0x5889a2(0x195),_0x57a40a=>{const _0x2e8ec7=_0x5889a2;this[_0x2e8ec7(0x1a2)](_0x2e8ec7(0x195),{'imageSrc':_0x57a40a[_0x2e8ec7(0x18f)][_0x2e8ec7(0x185)]});}),_0x3fa2bf[_0x5889a2(0x18a)](_0x5889a2(0x177),()=>{const _0x3a2333=_0x5889a2;this[_0x3a2333(0x1a2)](_0x3a2333(0x177));});}[_0x550a49(0x191)](){const _0x3715ac=_0x550a49;this[_0x3715ac(0x1a9)]['on'](_0x3715ac(0x173),()=>{const _0x48681e=_0x3715ac;this[_0x48681e(0x1a2)](_0x48681e(0x173));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x97ed9d=_0xb040;function _0xb040(_0x2425fa,_0x552b07){const _0x1761a0=_0x1761();return _0xb040=function(_0xb040d6,_0x5a7ac4){_0xb040d6=_0xb040d6-0xe8;let _0x345b24=_0x1761a0[_0xb040d6];return _0x345b24;},_0xb040(_0x2425fa,_0x552b07);}function _0x1761(){const _0x2e18e4=['258Gjmfoh','execute','model','imageBlock','uploadcare.allowExternalImagesEditing','getSelectedElement','1743108lWlnZS','21380kfOqXr','plugins','refresh','requires','877368kMNIcW','_isEditable','286563PCdDUb','25080XarqqO','imageEditController','config','unbind','imageInline','selection','27682pWJEot','4775256iuFuio','1337tMDYCp','document','get','bind','editor','set','element','isActive','isEnabled'];_0x1761=function(){return _0x2e18e4;};return _0x1761();}(function(_0x4bfd5d,_0x371e20){const _0x5dd7cd=_0xb040,_0x2ede5c=_0x4bfd5d();while(!![]){try{const _0x5bee4c=-parseInt(_0x5dd7cd(0x102))/0x1+-parseInt(_0x5dd7cd(0xf9))/0x2+-parseInt(_0x5dd7cd(0xfb))/0x3+-parseInt(_0x5dd7cd(0xf4))/0x4+parseInt(_0x5dd7cd(0xf5))/0x5*(parseInt(_0x5dd7cd(0xee))/0x6)+parseInt(_0x5dd7cd(0x104))/0x7*(parseInt(_0x5dd7cd(0xfc))/0x8)+parseInt(_0x5dd7cd(0x103))/0x9;if(_0x5bee4c===_0x371e20)break;else _0x2ede5c['push'](_0x2ede5c['shift']());}catch(_0x3d0bdc){_0x2ede5c['push'](_0x2ede5c['shift']());}}}(_0x1761,0x4d0b5));import{Command as _0x3fd34e}from'ckeditor5/src/core.js';import{Dialog as _0x158865}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x304086}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x3a6cca}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3fd34e{[_0x97ed9d(0xfd)];static get[_0x97ed9d(0xf8)](){return[_0x158865];}[_0x97ed9d(0xfa)];constructor(_0xc577b){const _0x50ca4b=_0x97ed9d;super(_0xc577b),this[_0x50ca4b(0xfd)]=void 0x0,this[_0x50ca4b(0xfa)]=_0x3a6cca(_0xc577b[_0x50ca4b(0xfe)][_0x50ca4b(0x106)](_0x50ca4b(0xf2))||[]),this[_0x50ca4b(0xea)]({'isActive':!0x1});}[_0x97ed9d(0xf7)](){const _0x9fd6ec=_0x97ed9d,_0x22eec4=this[_0x9fd6ec(0xe9)][_0x9fd6ec(0xf0)][_0x9fd6ec(0x105)][_0x9fd6ec(0x101)][_0x9fd6ec(0xf3)]();this[_0x9fd6ec(0xed)]=this[_0x9fd6ec(0xfa)](_0x22eec4);}[_0x97ed9d(0xef)](){const _0x4bf61a=_0x97ed9d;this[_0x4bf61a(0xfd)]&&(this[_0x4bf61a(0xff)](_0x4bf61a(0xec)),this[_0x4bf61a(0xfd)]=void 0x0);const _0x213844=this[_0x4bf61a(0xe9)][_0x4bf61a(0xf0)][_0x4bf61a(0x105)][_0x4bf61a(0x101)][_0x4bf61a(0xf3)]();_0x213844&&(_0x213844['is'](_0x4bf61a(0xeb),_0x4bf61a(0xf1))||_0x213844['is'](_0x4bf61a(0xeb),_0x4bf61a(0x100)))&&(this[_0x4bf61a(0xfd)]=new _0x304086(this[_0x4bf61a(0xe9)],this[_0x4bf61a(0xe9)][_0x4bf61a(0xf6)][_0x4bf61a(0x106)](_0x158865),_0x213844),this[_0x4bf61a(0xe8)](_0x4bf61a(0xec))['to'](this[_0x4bf61a(0xfd)],_0x4bf61a(0xec)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d3596=_0x339c;(function(_0xe39392,_0x174527){const _0x272d78=_0x339c,_0x57d66f=_0xe39392();while(!![]){try{const _0x29d64a=-parseInt(_0x272d78(0x17e))/0x1+parseInt(_0x272d78(0x17b))/0x2+-parseInt(_0x272d78(0x173))/0x3*(-parseInt(_0x272d78(0x179))/0x4)+parseInt(_0x272d78(0x178))/0x5+parseInt(_0x272d78(0x180))/0x6+parseInt(_0x272d78(0x171))/0x7*(-parseInt(_0x272d78(0x175))/0x8)+-parseInt(_0x272d78(0x176))/0x9;if(_0x29d64a===_0x174527)break;else _0x57d66f['push'](_0x57d66f['shift']());}catch(_0x35f885){_0x57d66f['push'](_0x57d66f['shift']());}}}(_0x2c33,0x5aeb9));import{Plugin as _0x39941c}from'ckeditor5/src/core.js';import{Notification as _0x49399d}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0xb15a27}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1b4560}from'./uploadcareimagereplacecommand.js';function _0x2c33(){const _0x28336b=['init','ImageEditing','uploadcareImageEdit','43106ZlpDHe','pluginName','352578tOGJvt','isPremiumPlugin','728NfmXwk','5464125HwynCI','ImageUtils','2041835snyJQB','16QTMoVY','UploadcareImageEditEditing','1315196iCQmhi','commands','isOfficialPlugin','434236YyKRLG','add','2628474Arihki','requires','uploadcareImageReplace'];_0x2c33=function(){return _0x28336b;};return _0x2c33();}function _0x339c(_0x347f2c,_0x111c2e){const _0x2c3385=_0x2c33();return _0x339c=function(_0x339c48,_0x37f689){_0x339c48=_0x339c48-0x16c;let _0x48c945=_0x2c3385[_0x339c48];return _0x48c945;},_0x339c(_0x347f2c,_0x111c2e);}import{UploadcareEditing as _0x56f9cd}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x39941c{static get[_0x5d3596(0x172)](){const _0x7e177=_0x5d3596;return _0x7e177(0x17a);}static get[_0x5d3596(0x16c)](){const _0x294b35=_0x5d3596;return[_0x56f9cd,_0x49399d,_0x294b35(0x177),_0x294b35(0x16f)];}static get[_0x5d3596(0x17d)](){return!0x0;}static get[_0x5d3596(0x174)](){return!0x0;}[_0x5d3596(0x16e)](){const _0x484b24=_0x5d3596,{editor:_0xca0270}=this;_0xca0270[_0x484b24(0x17c)][_0x484b24(0x17f)](_0x484b24(0x170),new _0xb15a27(_0xca0270)),_0xca0270[_0x484b24(0x17c)][_0x484b24(0x17f)](_0x484b24(0x16d),new _0x1b4560(_0xca0270));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1d1081}from'ckeditor5/src/core.js';import{ButtonView as _0x362231}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x552c9c}from'ckeditor5/src/icons.js';import{createElement as _0x2c10ec}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 _0x1d1081{['_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 _0x1dc81e=this['editor'];_0x1dc81e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x552bee=>{const _0xedbded=_0x1dc81e['commands']['get']('uploadcareImageEdit'),_0x5a8ac8=new _0x362231(_0x552bee),t=_0x552bee['t'];return _0x5a8ac8['set']({'icon':_0x552c9c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5a8ac8['bind']('isEnabled')['to'](_0xedbded),_0x5a8ac8['bind']('isOn')['to'](_0xedbded,'isActive'),this['listenTo'](_0x5a8ac8,'execute',()=>{_0x1dc81e['execute']('uploadcareImageEdit'),_0x1dc81e['editing']['view']['focus']();}),_0x5a8ac8;}),this['_initConfig']();}['_initConfig'](){const _0x2daa8c=_0x2c10ec(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2daa8c),this['listenTo'](this['editor'],'destroy',()=>{_0x2daa8c['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x4494c4=_0x21ce;(function(_0x287864,_0x38ab1f){var _0x5e5f7d=_0x21ce,_0x68d9e2=_0x287864();while(!![]){try{var _0x36f774=parseInt(_0x5e5f7d(0x1e2))/0x1*(-parseInt(_0x5e5f7d(0x1df))/0x2)+-parseInt(_0x5e5f7d(0x1e6))/0x3*(parseInt(_0x5e5f7d(0x1ed))/0x4)+-parseInt(_0x5e5f7d(0x1ea))/0x5*(parseInt(_0x5e5f7d(0x1e8))/0x6)+parseInt(_0x5e5f7d(0x1ef))/0x7*(parseInt(_0x5e5f7d(0x1ee))/0x8)+parseInt(_0x5e5f7d(0x1de))/0x9*(-parseInt(_0x5e5f7d(0x1f2))/0xa)+-parseInt(_0x5e5f7d(0x1f1))/0xb*(parseInt(_0x5e5f7d(0x1e7))/0xc)+parseInt(_0x5e5f7d(0x1e5))/0xd;if(_0x36f774===_0x38ab1f)break;else _0x68d9e2['push'](_0x68d9e2['shift']());}catch(_0x56cdea){_0x68d9e2['push'](_0x68d9e2['shift']());}}}(_0x3739,0x7e980));import{FocusTracker as _0x122b69}from'ckeditor5/src/utils.js';function _0x3739(){var _0x5341b8=['16lDYVTW','2369507poeTYQ','createCollection','9661058nhwfzK','137630zKDtZg','focusTracker','351nDqlca','762154rEKEaQ','true','fire','1GdKnCh','getFocusableElement','bindTemplate','43112264USqIhl','254829xWUINX','12ZyiZaO','4465902mvJRdg','forwardCycle','5AdbnfA','div','focusCycler','44MUXQxj'];_0x3739=function(){return _0x5341b8;};return _0x3739();}import{View as _0x1db38e,FocusCycler as _0x76a5bb}from'ckeditor5/src/ui.js';function _0x21ce(_0x70cab0,_0x48f4cf){var _0x3739c1=_0x3739();return _0x21ce=function(_0x21ceef,_0x3bae15){_0x21ceef=_0x21ceef-0x1de;var _0x1be26e=_0x3739c1[_0x21ceef];return _0x1be26e;},_0x21ce(_0x70cab0,_0x48f4cf);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1db38e{[_0x4494c4(0x1f3)];[_0x4494c4(0x1ec)];constructor(_0x480801){var _0x8b4c7c=_0x4494c4;super(_0x480801),this[_0x8b4c7c(0x1f3)]=new _0x122b69(),this[_0x8b4c7c(0x1ec)]=new _0x76a5bb({'focusables':this[_0x8b4c7c(0x1f0)](),'focusTracker':this[_0x8b4c7c(0x1f3)]});}[_0x4494c4(0x1e3)](){var _0x597bdc=_0x4494c4;return{'tag':_0x597bdc(0x1eb),'attributes':{'aria-hidden':_0x597bdc(0x1e0),'tabindex':'0'},'on':{'focus':this[_0x597bdc(0x1e4)]['to'](()=>{var _0x3e8740=_0x597bdc;this[_0x3e8740(0x1ec)][_0x3e8740(0x1e1)](_0x3e8740(0x1e9));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2c052f,_0x45e7e3){const _0x301b75=_0x4e9c,_0x4d012b=_0x2c052f();while(!![]){try{const _0x1a8332=parseInt(_0x301b75(0xf4))/0x1*(parseInt(_0x301b75(0xf2))/0x2)+parseInt(_0x301b75(0xf7))/0x3+parseInt(_0x301b75(0x10c))/0x4+-parseInt(_0x301b75(0x108))/0x5+parseInt(_0x301b75(0xec))/0x6+parseInt(_0x301b75(0xf5))/0x7+-parseInt(_0x301b75(0xe3))/0x8;if(_0x1a8332===_0x45e7e3)break;else _0x4d012b['push'](_0x4d012b['shift']());}catch(_0x4edec3){_0x4d012b['push'](_0x4d012b['shift']());}}}(_0x33f3,0x5dca7));function _0x4e9c(_0x5be7ec,_0x183c3d){const _0x33f3ac=_0x33f3();return _0x4e9c=function(_0x4e9cac,_0x28bb6a){_0x4e9cac=_0x4e9cac-0xe0;let _0x504ce9=_0x33f3ac[_0x4e9cac];return _0x504ce9;},_0x4e9c(_0x5be7ec,_0x183c3d);}function _0x33f3(){const _0x5da213=['addClass','1353648DpAlly','join','removeClass','aspect-ratio','getAttribute','image/webp','ImageUtils','view','element','mapper','imageInline','(max-width:\x20','location','some','12856248qqCxsR','hasAttribute','removeStyle','findViewImgElement','window','map','src','origin','document','4491162SMPMSZ','editing','imageBlock','replace','isArray','load','55668PdEVYR','/-/resize/','15PoLlTY','3965892LEmrFO','width','1803450polBgM','plugins','px)\x20100vw,\x20','baseURI','height','change','viewToDom','listenTo','uploadcareImageId','x/\x20','stopListening','get','match','setStyle','filter','domConverter','toViewElement','3404785FOLpsO','image-processing','function'];_0x33f3=function(){return _0x5da213;};return _0x33f3();}import{global as _0x4ae237,DomEmitterMixin as _0x2fd58e}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x54cc22){const _0x3e7c07=_0x4e9c,_0x3d8519=z(_0x54cc22);return _0x213068=>!(!_0x213068||!_0x213068['is'](_0x3e7c07(0x114),_0x3e7c07(0xee))&&!_0x213068['is'](_0x3e7c07(0x114),_0x3e7c07(0x116)))&&(!!_0x213068[_0x3e7c07(0xe4)](_0x3e7c07(0xff))||!!_0x213068[_0x3e7c07(0xe4)](_0x3e7c07(0xe9))&&_0x3d8519(_0x213068[_0x3e7c07(0x110)](_0x3e7c07(0xe9))));}export function getImageUrls(_0x22fdc8,_0x1faac1){const _0x5b21b4=_0x4e9c,_0x4c10b7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x5b21b4(0x105)](_0x2cca77=>_0x2cca77<=_0x1faac1)[_0x5b21b4(0xe8)](_0x6b359f=>_0x22fdc8[_0x5b21b4(0xef)](/\/$/,'')+_0x5b21b4(0xf3)+_0x6b359f+_0x5b21b4(0x100)+_0x6b359f+'w');return{'imageFallbackUrl':_0x22fdc8,'imageSources':[{'srcset':_0x4c10b7[_0x5b21b4(0x10d)](',\x20'),'sizes':_0x5b21b4(0xe0)+_0x1faac1+_0x5b21b4(0xf9)+_0x1faac1+'px','type':_0x5b21b4(0x111)}]};}export function getImageDimension(_0x2e53fb,_0x4b9ef0,_0x374ca8){const _0x3ff588=_0x4e9c,_0x24c7ec=_0x2e53fb[_0x3ff588(0x103)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x24c7ec?parseInt(_0x24c7ec[0x1],0xa):_0x4b9ef0,'height':_0x24c7ec?parseInt(_0x24c7ec[0x2],0xa):_0x374ca8};}export function showImageProcessingIndicator(_0x1d0dc2,_0x41847b){const _0x4cc31f=_0x4e9c,_0x1b1c8b=new(_0x2fd58e())(),_0x189d61=_0x1d0dc2[_0x4cc31f(0xf8)][_0x4cc31f(0x102)](_0x4cc31f(0x112)),_0x54e333=_0x1d0dc2[_0x4cc31f(0xed)][_0x4cc31f(0x115)][_0x4cc31f(0x107)](_0x41847b),_0x3274c7=_0x189d61[_0x4cc31f(0xe6)](_0x54e333),_0x613dc4=_0x1d0dc2[_0x4cc31f(0xed)][_0x4cc31f(0x113)][_0x4cc31f(0x106)][_0x4cc31f(0xfd)](_0x3274c7),_0x1c4060=_0x41847b[_0x4cc31f(0x110)](_0x4cc31f(0xf6)),_0x502739=_0x41847b[_0x4cc31f(0x110)](_0x4cc31f(0xfb)),_0x22bab8=_0x4cc31f(0x109);_0x1d0dc2[_0x4cc31f(0xed)][_0x4cc31f(0x113)][_0x4cc31f(0xfc)](_0x5bb987=>{const _0x1e845e=_0x4cc31f;_0x5bb987[_0x1e845e(0x10b)](_0x22bab8,_0x54e333),_0x5bb987[_0x1e845e(0x104)](_0x1e845e(0x10f),_0x1c4060+'/'+_0x502739,_0x3274c7);}),_0x1b1c8b[_0x4cc31f(0xfe)](_0x613dc4,_0x4cc31f(0xf1),()=>{const _0x569f74=_0x4cc31f;_0x1b1c8b[_0x569f74(0x101)](_0x613dc4,_0x569f74(0xf1)),_0x1d0dc2[_0x569f74(0xed)][_0x569f74(0x113)][_0x569f74(0xfc)](_0x31299a=>{const _0x46e696=_0x569f74;_0x31299a[_0x46e696(0x10e)](_0x22bab8,_0x54e333),_0x31299a[_0x46e696(0xe5)](_0x46e696(0x10f),_0x3274c7);});});}function z(_0x19224d){const _0xe57f5e=_0x4e9c;if(Array[_0xe57f5e(0xf0)](_0x19224d)){const _0x4dafb2=_0x19224d[_0xe57f5e(0xe8)](z);return _0x197bf7=>_0x4dafb2[_0xe57f5e(0xe2)](_0x20cb2a=>_0x20cb2a(_0x197bf7));}if(_0xe57f5e(0xea)==_0x19224d){const _0x5a1775=_0x4ae237[_0xe57f5e(0xe7)][_0xe57f5e(0xe1)][_0xe57f5e(0xea)];return _0x49d28c=>new URL(_0x49d28c,_0x4ae237[_0xe57f5e(0xeb)][_0xe57f5e(0xfa)])[_0xe57f5e(0xea)]==_0x5a1775;}return _0xe57f5e(0x10a)==typeof _0x19224d?_0x19224d:_0x19224d instanceof RegExp?_0x5007fe=>!(!_0x5007fe[_0xe57f5e(0x103)](_0x19224d)&&!_0x5007fe[_0xe57f5e(0xef)](/^https?:\/\//,'')[_0xe57f5e(0x103)](_0x19224d)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x17db44,_0x281b00){var _0x238f68=_0x51cb,_0x20e8ef=_0x17db44();while(!![]){try{var _0x49d783=-parseInt(_0x238f68(0x164))/0x1+parseInt(_0x238f68(0x162))/0x2*(parseInt(_0x238f68(0x165))/0x3)+parseInt(_0x238f68(0x166))/0x4+-parseInt(_0x238f68(0x167))/0x5+parseInt(_0x238f68(0x15f))/0x6*(-parseInt(_0x238f68(0x168))/0x7)+parseInt(_0x238f68(0x163))/0x8+-parseInt(_0x238f68(0x160))/0x9;if(_0x49d783===_0x281b00)break;else _0x20e8ef['push'](_0x20e8ef['shift']());}catch(_0x50b5f2){_0x20e8ef['push'](_0x20e8ef['shift']());}}}(_0x2a79,0x3d28d));function _0x2a79(){var _0x1b5046=['includes','515076wSxifN','4027806GIZVxG','target','2kJhnhK','1755096nKtLHG','7193rVNiFe','1113213CjxfKm','1816044eqYBMk','408475fesams','21RnVeFM'];_0x2a79=function(){return _0x1b5046;};return _0x2a79();}import{getAncestors as _0x4f6e7f}from'ckeditor5/src/utils.js';function _0x51cb(_0x15ca90,_0x2f35e3){var _0x2a79eb=_0x2a79();return _0x51cb=function(_0x51cbdc,_0x18aa6c){_0x51cbdc=_0x51cbdc-0x15f;var _0x626964=_0x2a79eb[_0x51cbdc];return _0x626964;},_0x51cb(_0x15ca90,_0x2f35e3);}export function isAncestor(_0x4d81a6,_0x4fa4f1){var _0x557f6a=_0x51cb;return _0x4f6e7f(_0x4d81a6[_0x557f6a(0x161)])[_0x557f6a(0x169)](_0x4fa4f1);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x441e(_0x55200d,_0x5ebd8c){var _0x26973f=_0x2697();return _0x441e=function(_0x441e47,_0x259158){_0x441e47=_0x441e47-0x11c;var _0x252cac=_0x26973f[_0x441e47];return _0x252cac;},_0x441e(_0x55200d,_0x5ebd8c);}var _0x5ce8ec=_0x441e;(function(_0x3053b7,_0x3df89b){var _0x17eafc=_0x441e,_0xc69d88=_0x3053b7();while(!![]){try{var _0x82b013=-parseInt(_0x17eafc(0x11d))/0x1*(-parseInt(_0x17eafc(0x124))/0x2)+parseInt(_0x17eafc(0x11c))/0x3+parseInt(_0x17eafc(0x121))/0x4*(-parseInt(_0x17eafc(0x126))/0x5)+parseInt(_0x17eafc(0x128))/0x6*(parseInt(_0x17eafc(0x129))/0x7)+-parseInt(_0x17eafc(0x123))/0x8+-parseInt(_0x17eafc(0x120))/0x9*(-parseInt(_0x17eafc(0x122))/0xa)+parseInt(_0x17eafc(0x11e))/0xb*(-parseInt(_0x17eafc(0x127))/0xc);if(_0x82b013===_0x3df89b)break;else _0xc69d88['push'](_0xc69d88['shift']());}catch(_0xb69c6f){_0xc69d88['push'](_0xc69d88['shift']());}}}(_0x2697,0xa48d8));function _0x2697(){var _0x5d3aab=['810TYKGGz','64060jnsRQL','36370EhQZal','49208ahmafr','2513606JRhnAy','upload','170vmKtdF','12dklIPI','17190jFpWBy','413ZaoBdU','2316594DlrpwT','1vAHAZd','14307667HaSoeI','getInfo'];_0x2697=function(){return _0x5d3aab;};return _0x2697();}import{uploadFile as _0x496fde,info as _0x58939a}from'@uploadcare/upload-client';export class UploadUtils{static[_0x5ce8ec(0x125)]({file:_0x4c90a1,..._0x5eee2c}){return _0x496fde(_0x4c90a1,_0x5eee2c);}static[_0x5ce8ec(0x11f)](_0xcd2387,_0x3cd066){return _0x58939a(_0xcd2387,_0x3cd066);}}
|