@ckeditor/ckeditor5-uploadcare 47.2.0-alpha.4 → 47.2.0-alpha.5
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 _0x45e299,View as _0x27ffdd}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x27ffdd{constructor(_0x113032){super(_0x113032);const t=_0x113032['t'],_0xfc1f0a=this['bindTemplate'],_0x143b22=new _0x45e299();_0x143b22['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':[_0x143b22,{'text':_0xfc1f0a['to']('imageUploadProgress',_0x473d22=>t('Loading\x20image...')+'\x20('+(_0x473d22||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14291c=_0x4fbe;(function(_0x203ab0,_0x58a530){const _0x174419=_0x4fbe,_0x44412c=_0x203ab0();while(!![]){try{const _0x59d838=parseInt(_0x174419(0xe8))/0x1*(parseInt(_0x174419(0xe4))/0x2)+parseInt(_0x174419(0xd9))/0x3*(-parseInt(_0x174419(0xdc))/0x4)+parseInt(_0x174419(0xe6))/0x5*(parseInt(_0x174419(0xd7))/0x6)+-parseInt(_0x174419(0xe2))/0x7+parseInt(_0x174419(0xb7))/0x8+-parseInt(_0x174419(0xc1))/0x9*(-parseInt(_0x174419(0xc9))/0xa)+-parseInt(_0x174419(0xbd))/0xb*(-parseInt(_0x174419(0xce))/0xc);if(_0x59d838===_0x58a530)break;else _0x44412c['push'](_0x44412c['shift']());}catch(_0x52b2f3){_0x44412c['push'](_0x44412c['shift']());}}}(_0x5057,0x77f47));function _0x5057(){const _0x9cf303=['addEventListener','detail','disconnect','_items','length','fire','element','134500euRygt','uploading','setTemplate','focus','retry','95532byBFOa','addMany','target','_addErrorViewListeners','apply','ck-uploadcare-form','cancel','ready','status','6xhuwmK','change:status','291210Rveurt','_loadingView','createCollection','40mktzoN','getFocusableElement','nodeName','ck-reset_all-excluded','_focusableView','cdnUrl','4985603PAmgEu','toLowerCase','2dFpSRo','clear','3548470IJCaQF','set','548971ZRboMR','_setView','add','once','_editingView','_waitForImageEditorComponent','uc-cloud-image-editor','observe','5302192JEAMnd','filter','_addUploadcareImageEditorListeners','querySelector','_errorView','render','275saRlQX','error','div','addedNodes','36zRiURd'];_0x5057=function(){return _0x9cf303;};return _0x5057();}import{View as _0x3356ac}from'ckeditor5/src/ui.js';function _0x4fbe(_0x1e7d71,_0xe7ae6c){const _0x505720=_0x5057();return _0x4fbe=function(_0x4fbe67,_0x98dbdc){_0x4fbe67=_0x4fbe67-0xb2;let _0x38cca3=_0x505720[_0x4fbe67];return _0x38cca3;},_0x4fbe(_0x1e7d71,_0xe7ae6c);}import{UploadcareImageEditFormLoadingView as _0x12642d}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x46f53a}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xa74dd5}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x28f39b}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x28f39b{[_0x14291c(0xc5)];[_0x14291c(0xda)];[_0x14291c(0xbb)];[_0x14291c(0xb3)];[_0x14291c(0xe0)];constructor(_0x52d65f,_0x44c6ee,_0x50dc6a){const _0xce3a36=_0x14291c;super(_0x52d65f),this[_0xce3a36(0xc5)]=this[_0xce3a36(0xdb)](),this[_0xce3a36(0xda)]=new _0x12642d(_0x52d65f),this[_0xce3a36(0xbb)]=new _0x46f53a(_0x52d65f),this[_0xce3a36(0xb3)]=new _0xa74dd5(_0x52d65f,_0x50dc6a),this[_0xce3a36(0xe0)]=new _0x3356ac(_0x52d65f),this[_0xce3a36(0xe0)][_0xce3a36(0xcb)](this[_0xce3a36(0xdd)]()),this[_0xce3a36(0xe7)](_0xce3a36(0xd6),_0x44c6ee),this[_0xce3a36(0xcb)]({'tag':_0xce3a36(0xbf),'attributes':{'class':['ck',_0xce3a36(0xdf),_0xce3a36(0xd3)],'tabindex':'-1'},'children':this[_0xce3a36(0xc5)]}),this[_0xce3a36(0xe9)](),this[_0xce3a36(0xb2)](_0xce3a36(0xbc),()=>{const _0x26fdfb=_0xce3a36;this[_0x26fdfb(0xb4)](this[_0x26fdfb(0xc8)],_0xf60746=>{const _0x229571=_0x26fdfb;this[_0x229571(0xb9)](_0xf60746);});}),this['on'](_0xce3a36(0xd8),()=>{const _0x5ab500=_0xce3a36;this[_0x5ab500(0xe9)]();}),this[_0xce3a36(0xd1)]();}[_0x14291c(0xcc)](){const _0x44436f=_0x14291c;this[_0x44436f(0xc8)][_0x44436f(0xcc)]();}[_0x14291c(0xe9)](){const _0x1bb9d6=_0x14291c;switch(this[_0x1bb9d6(0xc5)][_0x1bb9d6(0xe5)](),this[_0x1bb9d6(0xd6)]){case _0x1bb9d6(0xca):this[_0x1bb9d6(0xc5)][_0x1bb9d6(0xea)](this[_0x1bb9d6(0xda)]);break;case _0x1bb9d6(0xbe):this[_0x1bb9d6(0xc5)][_0x1bb9d6(0xea)](this[_0x1bb9d6(0xbb)]);break;case _0x1bb9d6(0xd5):this[_0x1bb9d6(0xc5)][_0x1bb9d6(0xcf)]([this[_0x1bb9d6(0xb3)],this[_0x1bb9d6(0xe0)]]);}}[_0x14291c(0xb4)](_0x174d42,_0x2dcfd2){const _0x181ec8=_0x14291c,_0x48b046=_0x181ec8(0xb5),_0x2b576a=_0x174d42[_0x181ec8(0xba)](_0x48b046);if(_0x2b576a)return _0x2dcfd2(_0x2b576a);const _0x586169=new MutationObserver(_0x2ecb80=>{const _0xca6a2e=_0x181ec8,_0x3cf0dc=_0x2ecb80[_0xca6a2e(0xb8)](_0x1f138d=>_0x1f138d[_0xca6a2e(0xd0)]===_0x174d42&&_0x1f138d[_0xca6a2e(0xc0)][_0xca6a2e(0xc6)]>0x0&&_0x1f138d[_0xca6a2e(0xc0)][0x0][_0xca6a2e(0xde)][_0xca6a2e(0xe3)]()===_0x48b046);_0x3cf0dc[_0xca6a2e(0xc6)]&&(_0x586169[_0xca6a2e(0xc4)](),_0x2dcfd2(_0x3cf0dc[0x0][_0xca6a2e(0xc0)][0x0]));});_0x586169[_0x181ec8(0xb6)](_0x174d42,{'childList':!0x0,'subtree':!0x0});}[_0x14291c(0xb9)](_0x367775){const _0x5a81b6=_0x14291c;_0x367775[_0x5a81b6(0xc2)](_0x5a81b6(0xd2),_0x3f6b1e=>{const _0x568ba4=_0x5a81b6;this[_0x568ba4(0xc7)](_0x568ba4(0xd2),{'imageSrc':_0x3f6b1e[_0x568ba4(0xc3)][_0x568ba4(0xe1)]});}),_0x367775[_0x5a81b6(0xc2)](_0x5a81b6(0xd4),()=>{const _0x88fb07=_0x5a81b6;this[_0x88fb07(0xc7)](_0x88fb07(0xd4));});}[_0x14291c(0xd1)](){const _0x297122=_0x14291c;this[_0x297122(0xbb)]['on'](_0x297122(0xcd),()=>{const _0x5e521c=_0x297122;this[_0x5e521c(0xc7)](_0x5e521c(0xcd));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c5b51=_0x527c;(function(_0xdf8c08,_0x173f4e){const _0x4ee1bc=_0x527c,_0x261059=_0xdf8c08();while(!![]){try{const _0xfc2378=parseInt(_0x4ee1bc(0x9c))/0x1*(parseInt(_0x4ee1bc(0xa1))/0x2)+parseInt(_0x4ee1bc(0x93))/0x3*(parseInt(_0x4ee1bc(0x86))/0x4)+-parseInt(_0x4ee1bc(0x8d))/0x5+-parseInt(_0x4ee1bc(0x8b))/0x6*(-parseInt(_0x4ee1bc(0x8a))/0x7)+-parseInt(_0x4ee1bc(0xa0))/0x8+-parseInt(_0x4ee1bc(0x9a))/0x9*(parseInt(_0x4ee1bc(0x97))/0xa)+-parseInt(_0x4ee1bc(0x8e))/0xb*(parseInt(_0x4ee1bc(0x9d))/0xc);if(_0xfc2378===_0x173f4e)break;else _0x261059['push'](_0x261059['shift']());}catch(_0x2198d8){_0x261059['push'](_0x261059['shift']());}}}(_0x27ff,0x6e171));function _0x527c(_0x518f80,_0x44c646){const _0x27ff3f=_0x27ff();return _0x527c=function(_0x527cf6,_0x42fd71){_0x527cf6=_0x527cf6-0x82;let _0x4ed1ee=_0x27ff3f[_0x527cf6];return _0x4ed1ee;},_0x527c(_0x518f80,_0x44c646);}import{Command as _0x4d0afb}from'ckeditor5/src/core.js';import{Dialog as _0xedbe87}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x16a2e0}from'./ui/uploadcareimageeditcontroller.js';function _0x27ff(){const _0x4a9d72=['isEnabled','402745BHElEg','88DZOeYf','model','bind','plugins','element','9423wcgvUA','unbind','_isEditable','requires','4302390iqTskN','imageInline','set','9AGxcec','imageBlock','246481cuWWAz','30564ZzEbqI','document','refresh','3589512LIaYYM','4UboSaT','editor','imageEditController','isActive','selection','getSelectedElement','uploadcare.allowExternalImagesEditing','820BIdxwy','get','execute','config','70945MxyCTb','174jHbUCT'];_0x27ff=function(){return _0x4a9d72;};return _0x27ff();}import{createEditabilityChecker as _0x292346}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x4d0afb{[_0x3c5b51(0xa3)];static get[_0x3c5b51(0x96)](){return[_0xedbe87];}[_0x3c5b51(0x95)];constructor(_0x11a1f8){const _0x1059a4=_0x3c5b51;super(_0x11a1f8),this[_0x1059a4(0xa3)]=void 0x0,this[_0x1059a4(0x95)]=_0x292346(_0x11a1f8[_0x1059a4(0x89)][_0x1059a4(0x87)](_0x1059a4(0x85))||[]),this[_0x1059a4(0x99)]({'isActive':!0x1});}[_0x3c5b51(0x9f)](){const _0x101f3b=_0x3c5b51,_0x4ded66=this[_0x101f3b(0xa2)][_0x101f3b(0x8f)][_0x101f3b(0x9e)][_0x101f3b(0x83)][_0x101f3b(0x84)]();this[_0x101f3b(0x8c)]=this[_0x101f3b(0x95)](_0x4ded66);}[_0x3c5b51(0x88)](){const _0x213429=_0x3c5b51;this[_0x213429(0xa3)]&&(this[_0x213429(0x94)](_0x213429(0x82)),this[_0x213429(0xa3)]=void 0x0);const _0x144157=this[_0x213429(0xa2)][_0x213429(0x8f)][_0x213429(0x9e)][_0x213429(0x83)][_0x213429(0x84)]();_0x144157&&(_0x144157['is'](_0x213429(0x92),_0x213429(0x9b))||_0x144157['is'](_0x213429(0x92),_0x213429(0x98)))&&(this[_0x213429(0xa3)]=new _0x16a2e0(this[_0x213429(0xa2)],this[_0x213429(0xa2)][_0x213429(0x91)][_0x213429(0x87)](_0xedbe87),_0x144157),this[_0x213429(0x90)](_0x213429(0x82))['to'](this[_0x213429(0xa3)],_0x213429(0x82)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3aa3(){const _0x24500b=['10456839iynNLh','pluginName','ImageUtils','uploadcareImageEdit','ImageEditing','commands','14mfIENh','59EwBFes','isOfficialPlugin','add','2804444riXZtt','uploadcareImageReplace','UploadcareImageEditEditing','11cvPfjs','3949990lbvUFB','340552fLnVoL','664782PjKlSQ','33526szjFqx','isPremiumPlugin','22513590lOafGC','requires','3AyCfdC','init'];_0x3aa3=function(){return _0x24500b;};return _0x3aa3();}const _0x69f7a5=_0x32c7;function _0x32c7(_0x5dc0b5,_0x41c2ca){const _0x3aa317=_0x3aa3();return _0x32c7=function(_0x32c79d,_0x14b0d4){_0x32c79d=_0x32c79d-0x125;let _0x1f2a56=_0x3aa317[_0x32c79d];return _0x1f2a56;},_0x32c7(_0x5dc0b5,_0x41c2ca);}(function(_0x9ad4d4,_0xc1c0ae){const _0x42d29d=_0x32c7,_0x470a54=_0x9ad4d4();while(!![]){try{const _0x2d7431=parseInt(_0x42d29d(0x12c))/0x1*(parseInt(_0x42d29d(0x136))/0x2)+parseInt(_0x42d29d(0x13a))/0x3*(-parseInt(_0x42d29d(0x12f))/0x4)+-parseInt(_0x42d29d(0x133))/0x5+parseInt(_0x42d29d(0x135))/0x6+parseInt(_0x42d29d(0x12b))/0x7*(parseInt(_0x42d29d(0x134))/0x8)+-parseInt(_0x42d29d(0x125))/0x9+-parseInt(_0x42d29d(0x138))/0xa*(-parseInt(_0x42d29d(0x132))/0xb);if(_0x2d7431===_0xc1c0ae)break;else _0x470a54['push'](_0x470a54['shift']());}catch(_0x3937e1){_0x470a54['push'](_0x470a54['shift']());}}}(_0x3aa3,0xbf3e3));import{Plugin as _0x6b9d8c}from'ckeditor5/src/core.js';import{Notification as _0x7733a4}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x57dce0}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x51b62e}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x558b78}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x6b9d8c{static get[_0x69f7a5(0x126)](){const _0xf6df72=_0x69f7a5;return _0xf6df72(0x131);}static get[_0x69f7a5(0x139)](){const _0x12e247=_0x69f7a5;return[_0x558b78,_0x7733a4,_0x12e247(0x127),_0x12e247(0x129)];}static get[_0x69f7a5(0x12d)](){return!0x0;}static get[_0x69f7a5(0x137)](){return!0x0;}[_0x69f7a5(0x13b)](){const _0x126a93=_0x69f7a5,{editor:_0x5cc27f}=this;_0x5cc27f[_0x126a93(0x12a)][_0x126a93(0x12e)](_0x126a93(0x128),new _0x57dce0(_0x5cc27f)),_0x5cc27f[_0x126a93(0x12a)][_0x126a93(0x12e)](_0x126a93(0x130),new _0x51b62e(_0x5cc27f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2d9b6f}from'ckeditor5/src/core.js';import{ButtonView as _0x323875}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4775c5}from'ckeditor5/src/icons.js';import{createElement as _0x913ddc}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 _0x2d9b6f{['_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 _0x3100e5=this['editor'];_0x3100e5['ui']['componentFactory']['add']('uploadcareImageEdit',_0xc89c9c=>{const _0x3d0ac1=_0x3100e5['commands']['get']('uploadcareImageEdit'),_0x34ffc2=new _0x323875(_0xc89c9c),t=_0xc89c9c['t'];return _0x34ffc2['set']({'icon':_0x4775c5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x34ffc2['bind']('isEnabled')['to'](_0x3d0ac1),_0x34ffc2['bind']('isOn')['to'](_0x3d0ac1,'isActive'),this['listenTo'](_0x34ffc2,'execute',()=>{_0x3100e5['execute']('uploadcareImageEdit'),_0x3100e5['editing']['view']['focus']();}),_0x34ffc2;}),this['_initConfig']();}['_initConfig'](){const _0x313926=_0x913ddc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x313926),this['listenTo'](this['editor'],'destroy',()=>{_0x313926['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x53f9e6=_0x3acf;function _0x3acf(_0x19cc69,_0x33a487){var _0x5a39d6=_0x5a39();return _0x3acf=function(_0x3acf81,_0x708bfd){_0x3acf81=_0x3acf81-0xa3;var _0x455c91=_0x5a39d6[_0x3acf81];return _0x455c91;},_0x3acf(_0x19cc69,_0x33a487);}(function(_0x5e8935,_0x2f9931){var _0x35dd35=_0x3acf,_0x1ebd28=_0x5e8935();while(!![]){try{var _0x49f61b=parseInt(_0x35dd35(0xa9))/0x1+parseInt(_0x35dd35(0xa5))/0x2+parseInt(_0x35dd35(0xb2))/0x3+-parseInt(_0x35dd35(0xaa))/0x4+-parseInt(_0x35dd35(0xab))/0x5*(-parseInt(_0x35dd35(0xae))/0x6)+-parseInt(_0x35dd35(0xb3))/0x7*(-parseInt(_0x35dd35(0xad))/0x8)+-parseInt(_0x35dd35(0xb5))/0x9*(parseInt(_0x35dd35(0xa8))/0xa);if(_0x49f61b===_0x2f9931)break;else _0x1ebd28['push'](_0x1ebd28['shift']());}catch(_0x505fed){_0x1ebd28['push'](_0x1ebd28['shift']());}}}(_0x5a39,0xb5c4f));import{FocusTracker as _0x12b36a}from'ckeditor5/src/utils.js';import{View as _0x6e3246,FocusCycler as _0x36df4a}from'ckeditor5/src/ui.js';function _0x5a39(){var _0x3f610e=['4645580xpkwxr','5ovITvo','getFocusableElement','16hvfUCY','2099148sUHvUr','true','focusCycler','createCollection','285891dzuOPy','3185252HBaEpH','focusTracker','108gGKVMv','forwardCycle','div','1723364lILsrv','bindTemplate','fire','1447610eybxAJ','1426145Hjusog'];_0x5a39=function(){return _0x3f610e;};return _0x5a39();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x6e3246{[_0x53f9e6(0xb4)];[_0x53f9e6(0xb0)];constructor(_0x2521e9){var _0x14db98=_0x53f9e6;super(_0x2521e9),this[_0x14db98(0xb4)]=new _0x12b36a(),this[_0x14db98(0xb0)]=new _0x36df4a({'focusables':this[_0x14db98(0xb1)](),'focusTracker':this[_0x14db98(0xb4)]});}[_0x53f9e6(0xac)](){var _0x5f0044=_0x53f9e6;return{'tag':_0x5f0044(0xa4),'attributes':{'aria-hidden':_0x5f0044(0xaf),'tabindex':'0'},'on':{'focus':this[_0x5f0044(0xa6)]['to'](()=>{var _0x1c0d14=_0x5f0044;this[_0x1c0d14(0xb0)][_0x1c0d14(0xa7)](_0x1c0d14(0xa3));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x452d(_0x15603d,_0x5a57f3){const _0x228f19=_0x228f();return _0x452d=function(_0x452d0f,_0x3ebded){_0x452d0f=_0x452d0f-0x85;let _0xe60dfc=_0x228f19[_0x452d0f];return _0xe60dfc;},_0x452d(_0x15603d,_0x5a57f3);}(function(_0x58079b,_0x3ee98c){const _0x26d718=_0x452d,_0x3708b8=_0x58079b();while(!![]){try{const _0x4c0c54=parseInt(_0x26d718(0x93))/0x1+parseInt(_0x26d718(0x9a))/0x2+parseInt(_0x26d718(0x91))/0x3+parseInt(_0x26d718(0xa0))/0x4*(parseInt(_0x26d718(0x9e))/0x5)+parseInt(_0x26d718(0xa3))/0x6*(parseInt(_0x26d718(0xaf))/0x7)+-parseInt(_0x26d718(0xaa))/0x8*(parseInt(_0x26d718(0xa2))/0x9)+-parseInt(_0x26d718(0xb3))/0xa;if(_0x4c0c54===_0x3ee98c)break;else _0x3708b8['push'](_0x3708b8['shift']());}catch(_0x2dad81){_0x3708b8['push'](_0x3708b8['shift']());}}}(_0x228f,0x9cad7));import{global as _0x22c37c,DomEmitterMixin as _0x2d96bd}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x1f914d){const _0x1ed415=_0x452d,_0x177c39=G(_0x1f914d);return _0x5ddda0=>!(!_0x5ddda0||!_0x5ddda0['is'](_0x1ed415(0xbb),_0x1ed415(0x9f))&&!_0x5ddda0['is'](_0x1ed415(0xbb),_0x1ed415(0xb9)))&&(!!_0x5ddda0[_0x1ed415(0x8e)](_0x1ed415(0xb2))||!!_0x5ddda0[_0x1ed415(0x8e)](_0x1ed415(0xb5))&&_0x177c39(_0x5ddda0[_0x1ed415(0x8b)](_0x1ed415(0xb5))));}function _0x228f(){const _0x438a0a=['function','domConverter','x/\x20','getAttribute','aspect-ratio','/-/resize/','hasAttribute','(max-width:\x20','findViewImgElement','3358428bujqPt','toViewElement','553926xnLMAd','match','some','join','plugins','replace','filter','2463268aFwkIj','ImageUtils','baseURI','width','15RRymSs','imageBlock','88364SXLtTl','window','9vHosEa','5590908KMIobj','map','origin','addClass','stopListening','setStyle','mapper','7637032Chdaxg','get','view','location','px)\x20100vw,\x20','7HlEWlT','image/webp','removeClass','uploadcareImageId','23067470iLloBI','removeStyle','src','load','height','image-processing','imageInline','isArray','element','change','listenTo','editing','document','viewToDom'];_0x228f=function(){return _0x438a0a;};return _0x228f();}export function getImageUrls(_0x46084b,_0x4e3215){const _0x1a6e37=_0x452d,_0x5d5de4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x1a6e37(0x99)](_0xc9ee38=>_0xc9ee38<=_0x4e3215)[_0x1a6e37(0xa4)](_0x312264=>_0x46084b[_0x1a6e37(0x98)](/\/$/,'')+_0x1a6e37(0x8d)+_0x312264+_0x1a6e37(0x8a)+_0x312264+'w');return{'imageFallbackUrl':_0x46084b,'imageSources':[{'srcset':_0x5d5de4[_0x1a6e37(0x96)](',\x20'),'sizes':_0x1a6e37(0x8f)+_0x4e3215+_0x1a6e37(0xae)+_0x4e3215+'px','type':_0x1a6e37(0xb0)}]};}export function getImageDimension(_0x31bb54,_0x12a522,_0x5116e6){const _0x1cb37e=_0x452d,_0x4aae4e=_0x31bb54[_0x1cb37e(0x94)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4aae4e?parseInt(_0x4aae4e[0x1],0xa):_0x12a522,'height':_0x4aae4e?parseInt(_0x4aae4e[0x2],0xa):_0x5116e6};}export function showImageProcessingIndicator(_0x10b63d,_0x163e71){const _0x454f73=_0x452d,_0x425d13=new(_0x2d96bd())(),_0x66c1c1=_0x10b63d[_0x454f73(0x97)][_0x454f73(0xab)](_0x454f73(0x9b)),_0x103855=_0x10b63d[_0x454f73(0x85)][_0x454f73(0xa9)][_0x454f73(0x92)](_0x163e71),_0x45929a=_0x66c1c1[_0x454f73(0x90)](_0x103855),_0x1a6124=_0x10b63d[_0x454f73(0x85)][_0x454f73(0xac)][_0x454f73(0x89)][_0x454f73(0x87)](_0x45929a),_0x20ea00=_0x163e71[_0x454f73(0x8b)](_0x454f73(0x9d)),_0x9e943e=_0x163e71[_0x454f73(0x8b)](_0x454f73(0xb7)),_0x4cdf5a=_0x454f73(0xb8);_0x10b63d[_0x454f73(0x85)][_0x454f73(0xac)][_0x454f73(0xbc)](_0x22bcd9=>{const _0x504514=_0x454f73;_0x22bcd9[_0x504514(0xa6)](_0x4cdf5a,_0x103855),_0x22bcd9[_0x504514(0xa8)](_0x504514(0x8c),_0x20ea00+'/'+_0x9e943e,_0x45929a);}),_0x425d13[_0x454f73(0xbd)](_0x1a6124,_0x454f73(0xb6),()=>{const _0x442cf1=_0x454f73;_0x425d13[_0x442cf1(0xa7)](_0x1a6124,_0x442cf1(0xb6)),_0x10b63d[_0x442cf1(0x85)][_0x442cf1(0xac)][_0x442cf1(0xbc)](_0x22a6eb=>{const _0x3d2a2c=_0x442cf1;_0x22a6eb[_0x3d2a2c(0xb1)](_0x4cdf5a,_0x103855),_0x22a6eb[_0x3d2a2c(0xb4)](_0x3d2a2c(0x8c),_0x45929a);});});}function G(_0x5a10ee){const _0x37805c=_0x452d;if(Array[_0x37805c(0xba)](_0x5a10ee)){const _0x5310b0=_0x5a10ee[_0x37805c(0xa4)](G);return _0x17cc16=>_0x5310b0[_0x37805c(0x95)](_0x27dcc2=>_0x27dcc2(_0x17cc16));}if(_0x37805c(0xa5)==_0x5a10ee){const _0x34d4cc=_0x22c37c[_0x37805c(0xa1)][_0x37805c(0xad)][_0x37805c(0xa5)];return _0x5bc639=>new URL(_0x5bc639,_0x22c37c[_0x37805c(0x86)][_0x37805c(0x9c)])[_0x37805c(0xa5)]==_0x34d4cc;}return _0x37805c(0x88)==typeof _0x5a10ee?_0x5a10ee:_0x5a10ee instanceof RegExp?_0x2f8680=>!(!_0x2f8680[_0x37805c(0x94)](_0x5a10ee)&&!_0x2f8680[_0x37805c(0x98)](/^https?:\/\//,'')[_0x37805c(0x94)](_0x5a10ee)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x4f1b58,_0x1ace85){var _0x1b9cf7=_0x37e4,_0x59052b=_0x4f1b58();while(!![]){try{var _0x2824e4=-parseInt(_0x1b9cf7(0x104))/0x1*(-parseInt(_0x1b9cf7(0x102))/0x2)+parseInt(_0x1b9cf7(0x106))/0x3*(parseInt(_0x1b9cf7(0xff))/0x4)+parseInt(_0x1b9cf7(0x103))/0x5+parseInt(_0x1b9cf7(0xfe))/0x6*(-parseInt(_0x1b9cf7(0xfb))/0x7)+-parseInt(_0x1b9cf7(0x101))/0x8+-parseInt(_0x1b9cf7(0xfc))/0x9+-parseInt(_0x1b9cf7(0x100))/0xa;if(_0x2824e4===_0x1ace85)break;else _0x59052b['push'](_0x59052b['shift']());}catch(_0x55fe50){_0x59052b['push'](_0x59052b['shift']());}}}(_0x5c52,0xcb7c0));import{getAncestors as _0x2a9d05}from'ckeditor5/src/utils.js';export function isAncestor(_0x3a1233,_0x44a477){var _0x4ac748=_0x37e4;return _0x2a9d05(_0x3a1233[_0x4ac748(0xfd)])[_0x4ac748(0x105)](_0x44a477);}function _0x37e4(_0x434996,_0x24168b){var _0x5c52b8=_0x5c52();return _0x37e4=function(_0x37e448,_0x46a013){_0x37e448=_0x37e448-0xfb;var _0x1d6cf6=_0x5c52b8[_0x37e448];return _0x1d6cf6;},_0x37e4(_0x434996,_0x24168b);}function _0x5c52(){var _0x5b6dcb=['7628230TCDiEZ','322148YfbqKp','includes','23571Nkrxjy','203bgwlFL','11078613efSBSi','target','71466KZyXij','512vTtzKd','514110nWlVPy','5715032qFOhPw','4byFHMK'];_0x5c52=function(){return _0x5b6dcb;};return _0x5c52();}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x23c2(){var _0x131576=['8RmKHyz','12273246VWjJzq','4415943Tzuswo','24NOAZPE','792835UrLiII','upload','3178100ofmRkZ','7157276nGnuZs','8vSMYnP','2131695jKYjBP','152373ecSvoC','getInfo'];_0x23c2=function(){return _0x131576;};return _0x23c2();}function _0x396f(_0x502aa3,_0x48750f){var _0x23c261=_0x23c2();return _0x396f=function(_0x396f0e,_0x4d9813){_0x396f0e=_0x396f0e-0x1aa;var _0x15031b=_0x23c261[_0x396f0e];return _0x15031b;},_0x396f(_0x502aa3,_0x48750f);}var _0x8f6bdb=_0x396f;(function(_0x111c67,_0x690382){var _0x28c110=_0x396f,_0x544221=_0x111c67();while(!![]){try{var _0x45bc01=parseInt(_0x28c110(0x1b5))/0x1+parseInt(_0x28c110(0x1ad))/0x2*(-parseInt(_0x28c110(0x1af))/0x3)+-parseInt(_0x28c110(0x1ac))/0x4+parseInt(_0x28c110(0x1ae))/0x5*(parseInt(_0x28c110(0x1b4))/0x6)+parseInt(_0x28c110(0x1b3))/0x7*(-parseInt(_0x28c110(0x1b1))/0x8)+parseInt(_0x28c110(0x1b2))/0x9+-parseInt(_0x28c110(0x1ab))/0xa;if(_0x45bc01===_0x690382)break;else _0x544221['push'](_0x544221['shift']());}catch(_0xb0f731){_0x544221['push'](_0x544221['shift']());}}}(_0x23c2,0xe0ca7));import{uploadFile as _0x1f61a9,info as _0x302670}from'@uploadcare/upload-client';export class UploadUtils{static[_0x8f6bdb(0x1aa)]({file:_0x49b5f0,..._0x485426}){return _0x1f61a9(_0x49b5f0,_0x485426);}static[_0x8f6bdb(0x1b0)](_0x126302,_0x587fcf){return _0x302670(_0x126302,_0x587fcf);}}
|