@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251127.0 → 0.0.0-nightly-20251128.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 _0x56dafe,View as _0x3662ba}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x3662ba{constructor(_0x555d4d){super(_0x555d4d);const t=_0x555d4d['t'],_0x17540c=this['bindTemplate'],_0x2b4645=new _0x56dafe();_0x2b4645['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':[_0x2b4645,{'text':_0x17540c['to']('imageUploadProgress',_0x5904bc=>t('Loading\x20image...')+'\x20('+(_0x5904bc||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 _0x1ace78=_0x647f;function _0x647f(_0x60b299,_0x212d62){const _0x23e74a=_0x23e7();return _0x647f=function(_0x647fe0,_0x175470){_0x647fe0=_0x647fe0-0x12b;let _0x16bf78=_0x23e74a[_0x647fe0];return _0x16bf78;},_0x647f(_0x60b299,_0x212d62);}(function(_0x161084,_0x15378e){const _0x165af1=_0x647f,_0x5634f6=_0x161084();while(!![]){try{const _0x3225c9=parseInt(_0x165af1(0x150))/0x1+-parseInt(_0x165af1(0x15b))/0x2*(parseInt(_0x165af1(0x13c))/0x3)+-parseInt(_0x165af1(0x134))/0x4*(parseInt(_0x165af1(0x155))/0x5)+parseInt(_0x165af1(0x14c))/0x6+parseInt(_0x165af1(0x142))/0x7+parseInt(_0x165af1(0x144))/0x8+parseInt(_0x165af1(0x14e))/0x9;if(_0x3225c9===_0x15378e)break;else _0x5634f6['push'](_0x5634f6['shift']());}catch(_0x1bdd95){_0x5634f6['push'](_0x5634f6['shift']());}}}(_0x23e7,0xc2791));import{View as _0x2da677}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5a34be}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2ba277}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x55ea41}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x393a22}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x23e7(){const _0x2c77d2=['toLowerCase','getFocusableElement','ready','_addUploadcareImageEditorListeners','addEventListener','347716fpKFGP','length','div','status','render','_waitForImageEditorComponent','disconnect','uc-cloud-image-editor','set','_focusableView','_loadingView','addedNodes','change:status','_errorView','fire','680vWjYMe','detail','once','cancel','_addErrorViewListeners','ck-reset_all-excluded','setTemplate','ck-uploadcare-form','15MfExXL','retry','error','_editingView','add','uploading','7396109LLfSGd','cdnUrl','6172952FAqSfx','querySelector','target','element','focus','createCollection','clear','_setView','2162316GIigWJ','addMany','2806542nzCfUt','_items','234211xFCYsY','observe','apply','filter','nodeName','31435FMxDnR'];_0x23e7=function(){return _0x2c77d2;};return _0x23e7();}export class UploadcareImageEditFormView extends _0x393a22{[_0x1ace78(0x14f)];[_0x1ace78(0x12f)];[_0x1ace78(0x132)];[_0x1ace78(0x13f)];[_0x1ace78(0x12e)];constructor(_0x2e64bd,_0x2c0f36,_0x4f6aea){const _0x4ad7b2=_0x1ace78;super(_0x2e64bd),this[_0x4ad7b2(0x14f)]=this[_0x4ad7b2(0x149)](),this[_0x4ad7b2(0x12f)]=new _0x5a34be(_0x2e64bd),this[_0x4ad7b2(0x132)]=new _0x2ba277(_0x2e64bd),this[_0x4ad7b2(0x13f)]=new _0x55ea41(_0x2e64bd,_0x4f6aea),this[_0x4ad7b2(0x12e)]=new _0x2da677(_0x2e64bd),this[_0x4ad7b2(0x12e)][_0x4ad7b2(0x13a)](this[_0x4ad7b2(0x157)]()),this[_0x4ad7b2(0x12d)](_0x4ad7b2(0x15e),_0x2c0f36),this[_0x4ad7b2(0x13a)]({'tag':_0x4ad7b2(0x15d),'attributes':{'class':['ck',_0x4ad7b2(0x139),_0x4ad7b2(0x13b)],'tabindex':'-1'},'children':this[_0x4ad7b2(0x14f)]}),this[_0x4ad7b2(0x14b)](),this[_0x4ad7b2(0x136)](_0x4ad7b2(0x15f),()=>{const _0x3b30bd=_0x4ad7b2;this[_0x3b30bd(0x160)](this[_0x3b30bd(0x147)],_0x12b648=>{const _0x584a1c=_0x3b30bd;this[_0x584a1c(0x159)](_0x12b648);});}),this['on'](_0x4ad7b2(0x131),()=>{const _0x54c09d=_0x4ad7b2;this[_0x54c09d(0x14b)]();}),this[_0x4ad7b2(0x138)]();}[_0x1ace78(0x148)](){const _0x336977=_0x1ace78;this[_0x336977(0x147)][_0x336977(0x148)]();}[_0x1ace78(0x14b)](){const _0x72f85a=_0x1ace78;switch(this[_0x72f85a(0x14f)][_0x72f85a(0x14a)](),this[_0x72f85a(0x15e)]){case _0x72f85a(0x141):this[_0x72f85a(0x14f)][_0x72f85a(0x140)](this[_0x72f85a(0x12f)]);break;case _0x72f85a(0x13e):this[_0x72f85a(0x14f)][_0x72f85a(0x140)](this[_0x72f85a(0x132)]);break;case _0x72f85a(0x158):this[_0x72f85a(0x14f)][_0x72f85a(0x14d)]([this[_0x72f85a(0x13f)],this[_0x72f85a(0x12e)]]);}}[_0x1ace78(0x160)](_0xf67679,_0x230d07){const _0xfef79c=_0x1ace78,_0x30227e=_0xfef79c(0x12c),_0x448de3=_0xf67679[_0xfef79c(0x145)](_0x30227e);if(_0x448de3)return _0x230d07(_0x448de3);const _0x168f39=new MutationObserver(_0x23e827=>{const _0x25349a=_0xfef79c,_0x1fd7ec=_0x23e827[_0x25349a(0x153)](_0x1f4f3f=>_0x1f4f3f[_0x25349a(0x146)]===_0xf67679&&_0x1f4f3f[_0x25349a(0x130)][_0x25349a(0x15c)]>0x0&&_0x1f4f3f[_0x25349a(0x130)][0x0][_0x25349a(0x154)][_0x25349a(0x156)]()===_0x30227e);_0x1fd7ec[_0x25349a(0x15c)]&&(_0x168f39[_0x25349a(0x12b)](),_0x230d07(_0x1fd7ec[0x0][_0x25349a(0x130)][0x0]));});_0x168f39[_0xfef79c(0x151)](_0xf67679,{'childList':!0x0,'subtree':!0x0});}[_0x1ace78(0x159)](_0x290c70){const _0x1a572f=_0x1ace78;_0x290c70[_0x1a572f(0x15a)](_0x1a572f(0x152),_0x5ea95e=>{const _0x214018=_0x1a572f;this[_0x214018(0x133)](_0x214018(0x152),{'imageSrc':_0x5ea95e[_0x214018(0x135)][_0x214018(0x143)]});}),_0x290c70[_0x1a572f(0x15a)](_0x1a572f(0x137),()=>{const _0x558ec3=_0x1a572f;this[_0x558ec3(0x133)](_0x558ec3(0x137));});}[_0x1ace78(0x138)](){const _0x16676a=_0x1ace78;this[_0x16676a(0x132)]['on'](_0x16676a(0x13d),()=>{const _0x199a8e=_0x16676a;this[_0x199a8e(0x133)](_0x199a8e(0x13d));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3ee87b=_0x4f05;(function(_0x2915ec,_0x586f2b){const _0x2113dc=_0x4f05,_0x418eb9=_0x2915ec();while(!![]){try{const _0x3df22a=parseInt(_0x2113dc(0x1e8))/0x1+-parseInt(_0x2113dc(0x1e9))/0x2*(-parseInt(_0x2113dc(0x1df))/0x3)+parseInt(_0x2113dc(0x1e6))/0x4*(parseInt(_0x2113dc(0x1d6))/0x5)+-parseInt(_0x2113dc(0x1d5))/0x6+parseInt(_0x2113dc(0x1f2))/0x7*(-parseInt(_0x2113dc(0x1e5))/0x8)+parseInt(_0x2113dc(0x1d4))/0x9+parseInt(_0x2113dc(0x1ee))/0xa*(-parseInt(_0x2113dc(0x1e0))/0xb);if(_0x3df22a===_0x586f2b)break;else _0x418eb9['push'](_0x418eb9['shift']());}catch(_0x2a0c69){_0x418eb9['push'](_0x418eb9['shift']());}}}(_0x3c01,0x2328c));function _0x3c01(){const _0x347ff4=['requires','isEnabled','editor','192olYuho','67868njVfPI','selection','240938GpTiTS','6lUkiAv','uploadcare.allowExternalImagesEditing','element','model','unbind','10AIDXXs','execute','set','_isEditable','6153BzXuDZ','refresh','imageBlock','2572281rGAyui','438852FmUZdk','35fGbkyL','imageInline','isActive','config','plugins','getSelectedElement','bind','get','imageEditController','114465KMqgvU','5739041Cjvcww','document'];_0x3c01=function(){return _0x347ff4;};return _0x3c01();}function _0x4f05(_0x11cbff,_0x5efeaf){const _0x3c012=_0x3c01();return _0x4f05=function(_0x4f05cd,_0x59be2a){_0x4f05cd=_0x4f05cd-0x1d4;let _0x55dfba=_0x3c012[_0x4f05cd];return _0x55dfba;},_0x4f05(_0x11cbff,_0x5efeaf);}import{Command as _0x555f23}from'ckeditor5/src/core.js';import{Dialog as _0xb29d35}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x2bc0e8}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x52fc4c}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x555f23{[_0x3ee87b(0x1de)];static get[_0x3ee87b(0x1e2)](){return[_0xb29d35];}[_0x3ee87b(0x1f1)];constructor(_0x4b6ce2){const _0x1bbca8=_0x3ee87b;super(_0x4b6ce2),this[_0x1bbca8(0x1de)]=void 0x0,this[_0x1bbca8(0x1f1)]=_0x52fc4c(_0x4b6ce2[_0x1bbca8(0x1d9)][_0x1bbca8(0x1dd)](_0x1bbca8(0x1ea))||[]),this[_0x1bbca8(0x1f0)]({'isActive':!0x1});}[_0x3ee87b(0x1f3)](){const _0x309405=_0x3ee87b,_0x691036=this[_0x309405(0x1e4)][_0x309405(0x1ec)][_0x309405(0x1e1)][_0x309405(0x1e7)][_0x309405(0x1db)]();this[_0x309405(0x1e3)]=this[_0x309405(0x1f1)](_0x691036);}[_0x3ee87b(0x1ef)](){const _0x3fca3c=_0x3ee87b;this[_0x3fca3c(0x1de)]&&(this[_0x3fca3c(0x1ed)](_0x3fca3c(0x1d8)),this[_0x3fca3c(0x1de)]=void 0x0);const _0x363a41=this[_0x3fca3c(0x1e4)][_0x3fca3c(0x1ec)][_0x3fca3c(0x1e1)][_0x3fca3c(0x1e7)][_0x3fca3c(0x1db)]();_0x363a41&&(_0x363a41['is'](_0x3fca3c(0x1eb),_0x3fca3c(0x1f4))||_0x363a41['is'](_0x3fca3c(0x1eb),_0x3fca3c(0x1d7)))&&(this[_0x3fca3c(0x1de)]=new _0x2bc0e8(this[_0x3fca3c(0x1e4)],this[_0x3fca3c(0x1e4)][_0x3fca3c(0x1da)][_0x3fca3c(0x1dd)](_0xb29d35),_0x363a41),this[_0x3fca3c(0x1dc)](_0x3fca3c(0x1d8))['to'](this[_0x3fca3c(0x1de)],_0x3fca3c(0x1d8)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4dea(_0xae38e5,_0x228f52){const _0x308eb5=_0x308e();return _0x4dea=function(_0x4deaeb,_0x40d63d){_0x4deaeb=_0x4deaeb-0xa3;let _0x3ef27c=_0x308eb5[_0x4deaeb];return _0x3ef27c;},_0x4dea(_0xae38e5,_0x228f52);}const _0x37153b=_0x4dea;(function(_0x188a4a,_0x1f28ef){const _0x48cdf2=_0x4dea,_0x4e5feb=_0x188a4a();while(!![]){try{const _0x3b3d75=-parseInt(_0x48cdf2(0xb3))/0x1*(-parseInt(_0x48cdf2(0xa7))/0x2)+-parseInt(_0x48cdf2(0xac))/0x3*(parseInt(_0x48cdf2(0xad))/0x4)+-parseInt(_0x48cdf2(0xb1))/0x5+parseInt(_0x48cdf2(0xab))/0x6*(parseInt(_0x48cdf2(0xa3))/0x7)+-parseInt(_0x48cdf2(0xb2))/0x8+parseInt(_0x48cdf2(0xa4))/0x9+parseInt(_0x48cdf2(0xb8))/0xa;if(_0x3b3d75===_0x1f28ef)break;else _0x4e5feb['push'](_0x4e5feb['shift']());}catch(_0x1c1c25){_0x4e5feb['push'](_0x4e5feb['shift']());}}}(_0x308e,0x3ccd7));import{Plugin as _0x5db8e9}from'ckeditor5/src/core.js';import{Notification as _0x237334}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x5efa40}from'./uploadcareimageeditcommand.js';function _0x308e(){const _0x3157d5=['3495996KcPSCl','ImageUtils','ImageEditing','24XAytKp','commands','init','requires','6yvpkIL','6ywWhFp','237964GhNFZL','isOfficialPlugin','uploadcareImageEdit','UploadcareImageEditEditing','895940JhTZzq','1895360tlWJeh','5197outklR','isPremiumPlugin','pluginName','uploadcareImageReplace','add','262710uhwMrZ','2149406qitwsw'];_0x308e=function(){return _0x3157d5;};return _0x308e();}import{UploadcareImageReplaceCommand as _0x58e079}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x5daef2}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x5db8e9{static get[_0x37153b(0xb5)](){const _0x55df40=_0x37153b;return _0x55df40(0xb0);}static get[_0x37153b(0xaa)](){const _0x299c70=_0x37153b;return[_0x5daef2,_0x237334,_0x299c70(0xa5),_0x299c70(0xa6)];}static get[_0x37153b(0xae)](){return!0x0;}static get[_0x37153b(0xb4)](){return!0x0;}[_0x37153b(0xa9)](){const _0x34604c=_0x37153b,{editor:_0xe5dab5}=this;_0xe5dab5[_0x34604c(0xa8)][_0x34604c(0xb7)](_0x34604c(0xaf),new _0x5efa40(_0xe5dab5)),_0xe5dab5[_0x34604c(0xa8)][_0x34604c(0xb7)](_0x34604c(0xb6),new _0x58e079(_0xe5dab5));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x42379b}from'ckeditor5/src/core.js';import{ButtonView as _0x344364}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x70ae98}from'ckeditor5/src/icons.js';import{createElement as _0x3b1180}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 _0x42379b{['_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 _0x3b2a22=this['editor'];_0x3b2a22['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1da1f5=>{const _0x49fca3=_0x3b2a22['commands']['get']('uploadcareImageEdit'),_0x46db1a=new _0x344364(_0x1da1f5),t=_0x1da1f5['t'];return _0x46db1a['set']({'icon':_0x70ae98,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x46db1a['bind']('isEnabled')['to'](_0x49fca3),_0x46db1a['bind']('isOn')['to'](_0x49fca3,'isActive'),this['listenTo'](_0x46db1a,'execute',()=>{_0x3b2a22['execute']('uploadcareImageEdit'),_0x3b2a22['editing']['view']['focus']();}),_0x46db1a;}),this['_initConfig']();}['_initConfig'](){const _0x13f6f2=_0x3b1180(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x13f6f2),this['listenTo'](this['editor'],'destroy',()=>{_0x13f6f2['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xf718c8=_0x33de;(function(_0x2d2198,_0x368170){var _0x20db50=_0x33de,_0x4aea53=_0x2d2198();while(!![]){try{var _0x5a591b=parseInt(_0x20db50(0x117))/0x1+-parseInt(_0x20db50(0x116))/0x2+-parseInt(_0x20db50(0x113))/0x3*(-parseInt(_0x20db50(0x11c))/0x4)+-parseInt(_0x20db50(0x11d))/0x5*(-parseInt(_0x20db50(0x119))/0x6)+parseInt(_0x20db50(0x110))/0x7*(parseInt(_0x20db50(0x114))/0x8)+-parseInt(_0x20db50(0x120))/0x9*(-parseInt(_0x20db50(0x10f))/0xa)+-parseInt(_0x20db50(0x115))/0xb;if(_0x5a591b===_0x368170)break;else _0x4aea53['push'](_0x4aea53['shift']());}catch(_0x2318c6){_0x4aea53['push'](_0x4aea53['shift']());}}}(_0x40a9,0xc3d0d));function _0x40a9(){var _0x581a82=['bindTemplate','6CYIlFU','focusTracker','getFocusableElement','44408wJeASM','1589105CZsJJM','createCollection','fire','9lfUokh','focusCycler','div','1285510yRSvcf','3828013iMyuex','true','forwardCycle','165ojGYko','8GgRCRh','216370UBnyZk','2879932iAvrLG','657856gXmcxd'];_0x40a9=function(){return _0x581a82;};return _0x40a9();}import{FocusTracker as _0x5e1c55}from'ckeditor5/src/utils.js';import{View as _0x147508,FocusCycler as _0x2fd71b}from'ckeditor5/src/ui.js';function _0x33de(_0x50537d,_0x32c2a4){var _0x40a92b=_0x40a9();return _0x33de=function(_0x33de72,_0x9b9f99){_0x33de72=_0x33de72-0x10d;var _0x462b0f=_0x40a92b[_0x33de72];return _0x462b0f;},_0x33de(_0x50537d,_0x32c2a4);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x147508{[_0xf718c8(0x11a)];[_0xf718c8(0x10d)];constructor(_0x31206a){var _0x178504=_0xf718c8;super(_0x31206a),this[_0x178504(0x11a)]=new _0x5e1c55(),this[_0x178504(0x10d)]=new _0x2fd71b({'focusables':this[_0x178504(0x11e)](),'focusTracker':this[_0x178504(0x11a)]});}[_0xf718c8(0x11b)](){var _0x45f714=_0xf718c8;return{'tag':_0x45f714(0x10e),'attributes':{'aria-hidden':_0x45f714(0x111),'tabindex':'0'},'on':{'focus':this[_0x45f714(0x118)]['to'](()=>{var _0x32603c=_0x45f714;this[_0x32603c(0x10d)][_0x32603c(0x11f)](_0x32603c(0x112));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1844fb,_0x7d2515){const _0x12e841=_0x3367,_0x1fa093=_0x1844fb();while(!![]){try{const _0x4a00a3=parseInt(_0x12e841(0x122))/0x1+-parseInt(_0x12e841(0x133))/0x2*(parseInt(_0x12e841(0x119))/0x3)+-parseInt(_0x12e841(0x128))/0x4+-parseInt(_0x12e841(0xfc))/0x5+-parseInt(_0x12e841(0xfd))/0x6*(parseInt(_0x12e841(0x121))/0x7)+-parseInt(_0x12e841(0x100))/0x8+-parseInt(_0x12e841(0x10e))/0x9*(-parseInt(_0x12e841(0xff))/0xa);if(_0x4a00a3===_0x7d2515)break;else _0x1fa093['push'](_0x1fa093['shift']());}catch(_0x3a3307){_0x1fa093['push'](_0x1fa093['shift']());}}}(_0x4618,0x5cdc3));import{global as _0x2428fb,DomEmitterMixin as _0x5b2897}from'ckeditor5/src/utils.js';function _0x3367(_0x556911,_0x111d36){const _0x4618aa=_0x4618();return _0x3367=function(_0x336743,_0x36769b){_0x336743=_0x336743-0xfb;let _0x39f7a4=_0x4618aa[_0x336743];return _0x39f7a4;},_0x3367(_0x556911,_0x111d36);}export function createEditabilityChecker(_0x389f3c){const _0x2356d7=_0x3367,_0x4fe854=G(_0x389f3c);return _0x52f147=>!(!_0x52f147||!_0x52f147['is'](_0x2356d7(0x130),_0x2356d7(0x120))&&!_0x52f147['is'](_0x2356d7(0x130),_0x2356d7(0x112)))&&(!!_0x52f147[_0x2356d7(0x106)](_0x2356d7(0x115))||!!_0x52f147[_0x2356d7(0x106)](_0x2356d7(0x101))&&_0x4fe854(_0x52f147[_0x2356d7(0x11c)](_0x2356d7(0x101))));}export function getImageUrls(_0x1dec26,_0x11b1bc){const _0x4e6abd=_0x3367,_0x18515d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x4e6abd(0x12c)](_0x248984=>_0x248984<=_0x11b1bc)[_0x4e6abd(0x11b)](_0x897520=>_0x1dec26[_0x4e6abd(0x10c)](/\/$/,'')+_0x4e6abd(0x113)+_0x897520+_0x4e6abd(0x108)+_0x897520+'w');return{'imageFallbackUrl':_0x1dec26,'imageSources':[{'srcset':_0x18515d[_0x4e6abd(0x12e)](',\x20'),'sizes':_0x4e6abd(0x12b)+_0x11b1bc+_0x4e6abd(0x124)+_0x11b1bc+'px','type':_0x4e6abd(0x11d)}]};}export function getImageDimension(_0xac0384,_0x2bb112,_0xe9e6b3){const _0x5cdb6b=_0x3367,_0x89be55=_0xac0384[_0x5cdb6b(0x111)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x89be55?parseInt(_0x89be55[0x1],0xa):_0x2bb112,'height':_0x89be55?parseInt(_0x89be55[0x2],0xa):_0xe9e6b3};}export function showImageProcessingIndicator(_0x5bc175,_0x258f02){const _0x23272a=_0x3367,_0x3fcc98=new(_0x5b2897())(),_0x1d6200=_0x5bc175[_0x23272a(0x10d)][_0x23272a(0xfe)](_0x23272a(0x11e)),_0x5ede55=_0x5bc175[_0x23272a(0x12d)][_0x23272a(0x117)][_0x23272a(0x127)](_0x258f02),_0x48198d=_0x1d6200[_0x23272a(0x131)](_0x5ede55),_0x519561=_0x5bc175[_0x23272a(0x12d)][_0x23272a(0x132)][_0x23272a(0x102)][_0x23272a(0xfb)](_0x48198d),_0x108a4a=_0x258f02[_0x23272a(0x11c)](_0x23272a(0x126)),_0x374970=_0x258f02[_0x23272a(0x11c)](_0x23272a(0x12f)),_0xbfd8f5=_0x23272a(0x118);_0x5bc175[_0x23272a(0x12d)][_0x23272a(0x132)][_0x23272a(0x10a)](_0x486cfb=>{const _0x472a5c=_0x23272a;_0x486cfb[_0x472a5c(0x10b)](_0xbfd8f5,_0x5ede55),_0x486cfb[_0x472a5c(0x109)](_0x472a5c(0x104),_0x108a4a+'/'+_0x374970,_0x48198d);}),_0x3fcc98[_0x23272a(0x10f)](_0x519561,_0x23272a(0x123),()=>{const _0x36d16c=_0x23272a;_0x3fcc98[_0x36d16c(0x12a)](_0x519561,_0x36d16c(0x123)),_0x5bc175[_0x36d16c(0x12d)][_0x36d16c(0x132)][_0x36d16c(0x10a)](_0x241268=>{const _0x46eee1=_0x36d16c;_0x241268[_0x46eee1(0x105)](_0xbfd8f5,_0x5ede55),_0x241268[_0x46eee1(0x129)](_0x46eee1(0x104),_0x48198d);});});}function G(_0x202f1a){const _0xed64da=_0x3367;if(Array[_0xed64da(0x103)](_0x202f1a)){const _0xf90fa1=_0x202f1a[_0xed64da(0x11b)](G);return _0x3d788b=>_0xf90fa1[_0xed64da(0x116)](_0x40ea54=>_0x40ea54(_0x3d788b));}if(_0xed64da(0x125)==_0x202f1a){const _0x38d185=_0x2428fb[_0xed64da(0x114)][_0xed64da(0x107)][_0xed64da(0x125)];return _0x16a91c=>new URL(_0x16a91c,_0x2428fb[_0xed64da(0x11a)][_0xed64da(0x11f)])[_0xed64da(0x125)]==_0x38d185;}return _0xed64da(0x110)==typeof _0x202f1a?_0x202f1a:_0x202f1a instanceof RegExp?_0x153710=>!(!_0x153710[_0xed64da(0x111)](_0x202f1a)&&!_0x153710[_0xed64da(0x10c)](/^https?:\/\//,'')[_0xed64da(0x111)](_0x202f1a)):()=>!0x1;}function _0x4618(){const _0x31aa9f=['removeStyle','stopListening','(max-width:\x20','filter','editing','join','height','element','findViewImgElement','view','8rbnCOl','viewToDom','3282775WImZxP','702XgQZpf','get','70wOJZVH','4094272xrcvUK','src','domConverter','isArray','aspect-ratio','removeClass','hasAttribute','location','x/\x20','setStyle','change','addClass','replace','plugins','3472659mDWvHc','listenTo','function','match','imageInline','/-/resize/','window','uploadcareImageId','some','mapper','image-processing','232266VaIjpc','document','map','getAttribute','image/webp','ImageUtils','baseURI','imageBlock','34706RIwiUv','485280fIyDJF','load','px)\x20100vw,\x20','origin','width','toViewElement','2991076giauib'];_0x4618=function(){return _0x31aa9f;};return _0x4618();}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x36bea3,_0x1261b0){var _0x449d72=_0x1916,_0x3daf67=_0x36bea3();while(!![]){try{var _0x3c2738=-parseInt(_0x449d72(0x1d1))/0x1*(-parseInt(_0x449d72(0x1d2))/0x2)+parseInt(_0x449d72(0x1cc))/0x3*(-parseInt(_0x449d72(0x1cb))/0x4)+-parseInt(_0x449d72(0x1c8))/0x5+-parseInt(_0x449d72(0x1cf))/0x6+parseInt(_0x449d72(0x1c9))/0x7+-parseInt(_0x449d72(0x1c7))/0x8+parseInt(_0x449d72(0x1cd))/0x9*(parseInt(_0x449d72(0x1ce))/0xa);if(_0x3c2738===_0x1261b0)break;else _0x3daf67['push'](_0x3daf67['shift']());}catch(_0x9d2af8){_0x3daf67['push'](_0x3daf67['shift']());}}}(_0x371f,0x9513d));function _0x1916(_0x6b7335,_0x589e1f){var _0x371f57=_0x371f();return _0x1916=function(_0x191672,_0x31cf9c){_0x191672=_0x191672-0x1c7;var _0x4ce0af=_0x371f57[_0x191672];return _0x4ce0af;},_0x1916(_0x6b7335,_0x589e1f);}function _0x371f(){var _0x42e636=['4KFQVpm','1638645DmxEIr','90sMszqX','2091850aFUnMA','6254436bhUivR','includes','22sLmsFw','19724fnhksv','5373664GRSgkJ','1769300TDKVTT','6411972pcemCu','target'];_0x371f=function(){return _0x42e636;};return _0x371f();}import{getAncestors as _0x3c529f}from'ckeditor5/src/utils.js';export function isAncestor(_0x18c09e,_0x26c7c2){var _0x169f7c=_0x1916;return _0x3c529f(_0x18c09e[_0x169f7c(0x1ca)])[_0x169f7c(0x1d0)](_0x26c7c2);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x47b5f5=_0x5086;(function(_0x192470,_0x4705bf){var _0x2efc5b=_0x5086,_0x29201c=_0x192470();while(!![]){try{var _0x39651e=parseInt(_0x2efc5b(0x73))/0x1*(-parseInt(_0x2efc5b(0x6c))/0x2)+-parseInt(_0x2efc5b(0x75))/0x3*(parseInt(_0x2efc5b(0x6a))/0x4)+-parseInt(_0x2efc5b(0x6d))/0x5*(parseInt(_0x2efc5b(0x72))/0x6)+parseInt(_0x2efc5b(0x71))/0x7*(parseInt(_0x2efc5b(0x70))/0x8)+parseInt(_0x2efc5b(0x6f))/0x9+-parseInt(_0x2efc5b(0x6e))/0xa+parseInt(_0x2efc5b(0x6b))/0xb;if(_0x39651e===_0x4705bf)break;else _0x29201c['push'](_0x29201c['shift']());}catch(_0x355955){_0x29201c['push'](_0x29201c['shift']());}}}(_0x237f,0x23585));function _0x237f(){var _0x348af4=['5iNNhcH','1418130tzLbkm','1782333kOeBmf','98200rVNODh','91ILMXDf','1639746bjlRos','5SlbBwh','getInfo','51rsPPTu','upload','35836TcKToW','5356758nSZjZz','52964RFhWSM'];_0x237f=function(){return _0x348af4;};return _0x237f();}import{uploadFile as _0x1ec6f0,info as _0x38d8c5}from'@uploadcare/upload-client';function _0x5086(_0x1f2529,_0x19a5aa){var _0x237fec=_0x237f();return _0x5086=function(_0x508698,_0x4f5b47){_0x508698=_0x508698-0x6a;var _0xc91142=_0x237fec[_0x508698];return _0xc91142;},_0x5086(_0x1f2529,_0x19a5aa);}export class UploadUtils{static[_0x47b5f5(0x76)]({file:_0x113a1f,..._0x4a4434}){return _0x1ec6f0(_0x113a1f,_0x4a4434);}static[_0x47b5f5(0x74)](_0x29e235,_0x498688){return _0x38d8c5(_0x29e235,_0x498688);}}
|