@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251020.0 → 0.0.0-nightly-20251021.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 _0x4eb61d,View as _0x4a8463}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4a8463{constructor(_0x5bd035){super(_0x5bd035);const t=_0x5bd035['t'],_0x1e8a77=this['bindTemplate'],_0x30a5a0=new _0x4eb61d();_0x30a5a0['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':[_0x30a5a0,{'text':_0x1e8a77['to']('imageUploadProgress',_0x11ccad=>t('Loading\x20image...')+'\x20('+(_0x11ccad||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 _0x3fb375=_0x4917;(function(_0x37a136,_0x4a9642){const _0x2baba2=_0x4917,_0x5e930d=_0x37a136();while(!![]){try{const _0x2deda3=parseInt(_0x2baba2(0x1c9))/0x1+parseInt(_0x2baba2(0x1cb))/0x2+-parseInt(_0x2baba2(0x1e0))/0x3+-parseInt(_0x2baba2(0x1f4))/0x4*(-parseInt(_0x2baba2(0x1cf))/0x5)+-parseInt(_0x2baba2(0x1dd))/0x6+-parseInt(_0x2baba2(0x1f3))/0x7+parseInt(_0x2baba2(0x1e3))/0x8*(parseInt(_0x2baba2(0x1ee))/0x9);if(_0x2deda3===_0x4a9642)break;else _0x5e930d['push'](_0x5e930d['shift']());}catch(_0x73c122){_0x5e930d['push'](_0x5e930d['shift']());}}}(_0x4233,0x3b80e));import{View as _0x43cee7}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x422aeb}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x37b93c}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x3c007c}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x539d90}from'../../utils/dialogfocusmanagerview.js';function _0x4917(_0x383992,_0x4f75e3){const _0x4233ef=_0x4233();return _0x4917=function(_0x4917c7,_0x177a31){_0x4917c7=_0x4917c7-0x1c4;let _0x256003=_0x4233ef[_0x4917c7];return _0x256003;},_0x4917(_0x383992,_0x4f75e3);}import'../../../theme/uploadcare-form.css';function _0x4233(){const _0x138503=['div','target','disconnect','retry','9RTmRyM','_waitForImageEditorComponent','addEventListener','length','setTemplate','748636ijRqHb','232YFMzAx','filter','apply','createCollection','render','cdnUrl','clear','add','set','nodeName','_setView','101460wCWxEX','once','753038kMhGEr','ready','getFocusableElement','cancel','9015TGLpkQ','ck-uploadcare-form','_focusableView','detail','observe','element','addMany','error','ck-reset_all-excluded','uploading','status','change:status','_addErrorViewListeners','_editingView','1703946pWYuFM','addedNodes','toLowerCase','2184aLpGJQ','querySelector','_loadingView','422720kmzCOe','_errorView','uc-cloud-image-editor','_addUploadcareImageEditorListeners','fire','_items','focus'];_0x4233=function(){return _0x138503;};return _0x4233();}export class UploadcareImageEditFormView extends _0x539d90{[_0x3fb375(0x1e8)];[_0x3fb375(0x1e2)];[_0x3fb375(0x1e4)];[_0x3fb375(0x1dc)];[_0x3fb375(0x1d1)];constructor(_0x212466,_0x4a500b,_0x2b608d){const _0x5c8863=_0x3fb375;super(_0x212466),this[_0x5c8863(0x1e8)]=this[_0x5c8863(0x1f7)](),this[_0x5c8863(0x1e2)]=new _0x422aeb(_0x212466),this[_0x5c8863(0x1e4)]=new _0x37b93c(_0x212466),this[_0x5c8863(0x1dc)]=new _0x3c007c(_0x212466,_0x2b608d),this[_0x5c8863(0x1d1)]=new _0x43cee7(_0x212466),this[_0x5c8863(0x1d1)][_0x5c8863(0x1f2)](this[_0x5c8863(0x1cd)]()),this[_0x5c8863(0x1c6)](_0x5c8863(0x1d9),_0x4a500b),this[_0x5c8863(0x1f2)]({'tag':_0x5c8863(0x1ea),'attributes':{'class':['ck',_0x5c8863(0x1d7),_0x5c8863(0x1d0)],'tabindex':'-1'},'children':this[_0x5c8863(0x1e8)]}),this[_0x5c8863(0x1c8)](),this[_0x5c8863(0x1ca)](_0x5c8863(0x1f8),()=>{const _0x264311=_0x5c8863;this[_0x264311(0x1ef)](this[_0x264311(0x1d4)],_0x3163df=>{const _0x15762f=_0x264311;this[_0x15762f(0x1e6)](_0x3163df);});}),this['on'](_0x5c8863(0x1da),()=>{const _0x40d917=_0x5c8863;this[_0x40d917(0x1c8)]();}),this[_0x5c8863(0x1db)]();}[_0x3fb375(0x1e9)](){const _0x60a98f=_0x3fb375;this[_0x60a98f(0x1d4)][_0x60a98f(0x1e9)]();}[_0x3fb375(0x1c8)](){const _0x14b89a=_0x3fb375;switch(this[_0x14b89a(0x1e8)][_0x14b89a(0x1c4)](),this[_0x14b89a(0x1d9)]){case _0x14b89a(0x1d8):this[_0x14b89a(0x1e8)][_0x14b89a(0x1c5)](this[_0x14b89a(0x1e2)]);break;case _0x14b89a(0x1d6):this[_0x14b89a(0x1e8)][_0x14b89a(0x1c5)](this[_0x14b89a(0x1e4)]);break;case _0x14b89a(0x1cc):this[_0x14b89a(0x1e8)][_0x14b89a(0x1d5)]([this[_0x14b89a(0x1dc)],this[_0x14b89a(0x1d1)]]);}}[_0x3fb375(0x1ef)](_0x558841,_0x2d4459){const _0x37e9fc=_0x3fb375,_0x236426=_0x37e9fc(0x1e5),_0x4ec556=_0x558841[_0x37e9fc(0x1e1)](_0x236426);if(_0x4ec556)return _0x2d4459(_0x4ec556);const _0x2306eb=new MutationObserver(_0x2faa6e=>{const _0x39fb06=_0x37e9fc,_0x562975=_0x2faa6e[_0x39fb06(0x1f5)](_0x58d0a9=>_0x58d0a9[_0x39fb06(0x1eb)]===_0x558841&&_0x58d0a9[_0x39fb06(0x1de)][_0x39fb06(0x1f1)]>0x0&&_0x58d0a9[_0x39fb06(0x1de)][0x0][_0x39fb06(0x1c7)][_0x39fb06(0x1df)]()===_0x236426);_0x562975[_0x39fb06(0x1f1)]&&(_0x2306eb[_0x39fb06(0x1ec)](),_0x2d4459(_0x562975[0x0][_0x39fb06(0x1de)][0x0]));});_0x2306eb[_0x37e9fc(0x1d3)](_0x558841,{'childList':!0x0,'subtree':!0x0});}[_0x3fb375(0x1e6)](_0x53e807){const _0x24a6bb=_0x3fb375;_0x53e807[_0x24a6bb(0x1f0)](_0x24a6bb(0x1f6),_0x5da922=>{const _0x45624b=_0x24a6bb;this[_0x45624b(0x1e7)](_0x45624b(0x1f6),{'imageSrc':_0x5da922[_0x45624b(0x1d2)][_0x45624b(0x1f9)]});}),_0x53e807[_0x24a6bb(0x1f0)](_0x24a6bb(0x1ce),()=>{const _0x558f05=_0x24a6bb;this[_0x558f05(0x1e7)](_0x558f05(0x1ce));});}[_0x3fb375(0x1db)](){const _0x1750df=_0x3fb375;this[_0x1750df(0x1e4)]['on'](_0x1750df(0x1ed),()=>{const _0x5c7f76=_0x1750df;this[_0x5c7f76(0x1e7)](_0x5c7f76(0x1ed));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6e9248=_0x2aaa;(function(_0x21989b,_0x279be3){const _0x3c5d93=_0x2aaa,_0x36ce26=_0x21989b();while(!![]){try{const _0x1a1da2=parseInt(_0x3c5d93(0x168))/0x1+-parseInt(_0x3c5d93(0x14d))/0x2*(-parseInt(_0x3c5d93(0x164))/0x3)+parseInt(_0x3c5d93(0x15c))/0x4+parseInt(_0x3c5d93(0x153))/0x5+-parseInt(_0x3c5d93(0x165))/0x6*(parseInt(_0x3c5d93(0x14a))/0x7)+parseInt(_0x3c5d93(0x149))/0x8*(-parseInt(_0x3c5d93(0x14b))/0x9)+parseInt(_0x3c5d93(0x15e))/0xa*(-parseInt(_0x3c5d93(0x169))/0xb);if(_0x1a1da2===_0x279be3)break;else _0x36ce26['push'](_0x36ce26['shift']());}catch(_0x2c4b0b){_0x36ce26['push'](_0x36ce26['shift']());}}}(_0x4112,0x344d6));import{Command as _0xb9f44f}from'ckeditor5/src/core.js';function _0x2aaa(_0xb06f1e,_0x4d0991){const _0x4112e6=_0x4112();return _0x2aaa=function(_0x2aaad3,_0x5dbb8f){_0x2aaad3=_0x2aaad3-0x149;let _0xc1022a=_0x4112e6[_0x2aaad3];return _0xc1022a;},_0x2aaa(_0xb06f1e,_0x4d0991);}import{Dialog as _0x4c6052}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x5484e9}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2f3853}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0xb9f44f{[_0x6e9248(0x15a)];static get[_0x6e9248(0x14f)](){return[_0x4c6052];}[_0x6e9248(0x154)];constructor(_0xe1167b){const _0x429ec5=_0x6e9248;super(_0xe1167b),this[_0x429ec5(0x15a)]=void 0x0,this[_0x429ec5(0x154)]=_0x2f3853(_0xe1167b[_0x429ec5(0x14e)][_0x429ec5(0x167)](_0x429ec5(0x162))||[]),this[_0x429ec5(0x166)]({'isActive':!0x1});}[_0x6e9248(0x163)](){const _0x3f8bc7=_0x6e9248,_0x4e028a=this[_0x3f8bc7(0x158)][_0x3f8bc7(0x14c)][_0x3f8bc7(0x150)][_0x3f8bc7(0x151)][_0x3f8bc7(0x157)]();this[_0x3f8bc7(0x160)]=this[_0x3f8bc7(0x154)](_0x4e028a);}[_0x6e9248(0x152)](){const _0x4d5dd2=_0x6e9248;this[_0x4d5dd2(0x15a)]&&(this[_0x4d5dd2(0x15d)](_0x4d5dd2(0x161)),this[_0x4d5dd2(0x15a)]=void 0x0);const _0x39d9e1=this[_0x4d5dd2(0x158)][_0x4d5dd2(0x14c)][_0x4d5dd2(0x150)][_0x4d5dd2(0x151)][_0x4d5dd2(0x157)]();_0x39d9e1&&(_0x39d9e1['is'](_0x4d5dd2(0x156),_0x4d5dd2(0x15b))||_0x39d9e1['is'](_0x4d5dd2(0x156),_0x4d5dd2(0x15f)))&&(this[_0x4d5dd2(0x15a)]=new _0x5484e9(this[_0x4d5dd2(0x158)],this[_0x4d5dd2(0x158)][_0x4d5dd2(0x159)][_0x4d5dd2(0x167)](_0x4c6052),_0x39d9e1),this[_0x4d5dd2(0x155)](_0x4d5dd2(0x161))['to'](this[_0x4d5dd2(0x15a)],_0x4d5dd2(0x161)));}}function _0x4112(){const _0x381282=['refresh','3ZtgiJj','204iySGCX','set','get','222739SJruXn','286682pkHydi','1023728cSSaIV','60487sWoyXK','18qhCUHI','model','388742mWeomB','config','requires','document','selection','execute','2135870BonHuG','_isEditable','bind','element','getSelectedElement','editor','plugins','imageEditController','imageBlock','199928kdDvXi','unbind','50IimtHi','imageInline','isEnabled','isActive','uploadcare.allowExternalImagesEditing'];_0x4112=function(){return _0x381282;};return _0x4112();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52a8ab=_0x512a;function _0x512a(_0x3806cd,_0x187420){const _0x758e3=_0x758e();return _0x512a=function(_0x512ac5,_0x506c14){_0x512ac5=_0x512ac5-0x1de;let _0x421935=_0x758e3[_0x512ac5];return _0x421935;},_0x512a(_0x3806cd,_0x187420);}(function(_0x39bb50,_0x3d09f3){const _0x209bba=_0x512a,_0x140d9c=_0x39bb50();while(!![]){try{const _0x1f9253=parseInt(_0x209bba(0x1e4))/0x1+parseInt(_0x209bba(0x1e8))/0x2+parseInt(_0x209bba(0x1ea))/0x3+-parseInt(_0x209bba(0x1ec))/0x4+-parseInt(_0x209bba(0x1eb))/0x5*(parseInt(_0x209bba(0x1e5))/0x6)+-parseInt(_0x209bba(0x1e2))/0x7+parseInt(_0x209bba(0x1f0))/0x8;if(_0x1f9253===_0x3d09f3)break;else _0x140d9c['push'](_0x140d9c['shift']());}catch(_0x20cefb){_0x140d9c['push'](_0x140d9c['shift']());}}}(_0x758e,0x47dcb));import{Plugin as _0x10e513}from'ckeditor5/src/core.js';import{Notification as _0x3e024b}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x4daa12}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x5ce7fa}from'./uploadcareimagereplacecommand.js';function _0x758e(){const _0x279951=['2230520BdCEWz','commands','ImageUtils','requires','53960PuTjKd','isOfficialPlugin','UploadcareImageEditEditing','add','init','uploadcareImageReplace','1352603vgyAoh','uploadcareImageEdit','27329mcjrJM','43674PbjiAU','isPremiumPlugin','pluginName','1093124LAGySP','ImageEditing','1721265DsDgKq','75NHaeEc'];_0x758e=function(){return _0x279951;};return _0x758e();}import{UploadcareEditing as _0x5ef953}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x10e513{static get[_0x52a8ab(0x1e7)](){const _0x26486c=_0x52a8ab;return _0x26486c(0x1de);}static get[_0x52a8ab(0x1ef)](){const _0x1dcefd=_0x52a8ab;return[_0x5ef953,_0x3e024b,_0x1dcefd(0x1ee),_0x1dcefd(0x1e9)];}static get[_0x52a8ab(0x1f1)](){return!0x0;}static get[_0x52a8ab(0x1e6)](){return!0x0;}[_0x52a8ab(0x1e0)](){const _0x33e566=_0x52a8ab,{editor:_0x2e0c2e}=this;_0x2e0c2e[_0x33e566(0x1ed)][_0x33e566(0x1df)](_0x33e566(0x1e3),new _0x4daa12(_0x2e0c2e)),_0x2e0c2e[_0x33e566(0x1ed)][_0x33e566(0x1df)](_0x33e566(0x1e1),new _0x5ce7fa(_0x2e0c2e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x292eec}from'ckeditor5/src/core.js';import{ButtonView as _0x107d8b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x17ad7c}from'ckeditor5/src/icons.js';import{createElement as _0x179d3f}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 _0x292eec{['_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 _0x22a226=this['editor'];_0x22a226['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2edf5f=>{const _0x512c2e=_0x22a226['commands']['get']('uploadcareImageEdit'),_0x5a8d9d=new _0x107d8b(_0x2edf5f),t=_0x2edf5f['t'];return _0x5a8d9d['set']({'icon':_0x17ad7c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5a8d9d['bind']('isEnabled')['to'](_0x512c2e),_0x5a8d9d['bind']('isOn')['to'](_0x512c2e,'isActive'),this['listenTo'](_0x5a8d9d,'execute',()=>{_0x22a226['execute']('uploadcareImageEdit'),_0x22a226['editing']['view']['focus']();}),_0x5a8d9d;}),this['_initConfig']();}['_initConfig'](){const _0x111a69=_0x179d3f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x111a69),this['listenTo'](this['editor'],'destroy',()=>{_0x111a69['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x3eca47=_0x1b6c;(function(_0x3c514d,_0x26e07c){var _0x56a051=_0x1b6c,_0x4bd1da=_0x3c514d();while(!![]){try{var _0xd2d70d=parseInt(_0x56a051(0x8f))/0x1*(parseInt(_0x56a051(0x94))/0x2)+parseInt(_0x56a051(0x8e))/0x3+parseInt(_0x56a051(0x90))/0x4*(parseInt(_0x56a051(0x8a))/0x5)+-parseInt(_0x56a051(0x84))/0x6+parseInt(_0x56a051(0x92))/0x7*(-parseInt(_0x56a051(0x93))/0x8)+parseInt(_0x56a051(0x8b))/0x9*(parseInt(_0x56a051(0x87))/0xa)+parseInt(_0x56a051(0x97))/0xb*(-parseInt(_0x56a051(0x95))/0xc);if(_0xd2d70d===_0x26e07c)break;else _0x4bd1da['push'](_0x4bd1da['shift']());}catch(_0x299167){_0x4bd1da['push'](_0x4bd1da['shift']());}}}(_0x116b,0x1fc89));import{FocusTracker as _0x4c2f8b}from'ckeditor5/src/utils.js';function _0x1b6c(_0x565855,_0x169a47){var _0x116b23=_0x116b();return _0x1b6c=function(_0x1b6c52,_0x3c2619){_0x1b6c52=_0x1b6c52-0x83;var _0x3169f7=_0x116b23[_0x1b6c52];return _0x3169f7;},_0x1b6c(_0x565855,_0x169a47);}import{View as _0x188d5a,FocusCycler as _0x327e15}from'ckeditor5/src/ui.js';function _0x116b(){var _0x219841=['bindTemplate','10uPSdRO','focusCycler','div','52445LdeSUw','645111SuThjg','forwardCycle','true','606621NddpmW','2203tdozyV','12PHZtZl','fire','707BvOlhW','552FOHNAn','138btIfoO','104472CgHOaI','getFocusableElement','110UxShQJ','createCollection','1398876zNaavF','focusTracker'];_0x116b=function(){return _0x219841;};return _0x116b();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x188d5a{[_0x3eca47(0x85)];[_0x3eca47(0x88)];constructor(_0x584f82){var _0x3bd6df=_0x3eca47;super(_0x584f82),this[_0x3bd6df(0x85)]=new _0x4c2f8b(),this[_0x3bd6df(0x88)]=new _0x327e15({'focusables':this[_0x3bd6df(0x83)](),'focusTracker':this[_0x3bd6df(0x85)]});}[_0x3eca47(0x96)](){var _0x28464a=_0x3eca47;return{'tag':_0x28464a(0x89),'attributes':{'aria-hidden':_0x28464a(0x8d),'tabindex':'0'},'on':{'focus':this[_0x28464a(0x86)]['to'](()=>{var _0x432262=_0x28464a;this[_0x432262(0x88)][_0x432262(0x91)](_0x432262(0x8c));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4de1b3,_0x52f71d){const _0x457b77=_0x3152,_0xf6fe77=_0x4de1b3();while(!![]){try{const _0x5ee3eb=-parseInt(_0x457b77(0x1cb))/0x1+-parseInt(_0x457b77(0x1b4))/0x2*(parseInt(_0x457b77(0x1ae))/0x3)+-parseInt(_0x457b77(0x1af))/0x4+-parseInt(_0x457b77(0x1d4))/0x5+-parseInt(_0x457b77(0x1cc))/0x6+parseInt(_0x457b77(0x1be))/0x7*(parseInt(_0x457b77(0x1d1))/0x8)+parseInt(_0x457b77(0x1b0))/0x9;if(_0x5ee3eb===_0x52f71d)break;else _0xf6fe77['push'](_0xf6fe77['shift']());}catch(_0x3062cd){_0xf6fe77['push'](_0xf6fe77['shift']());}}}(_0x437a,0xb7a50));import{global as _0x1daa96,DomEmitterMixin as _0x1e78fa}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x15bd55){const _0x4bcc8d=_0x3152,_0x44cce9=G(_0x15bd55);return _0x567c94=>!(!_0x567c94||!_0x567c94['is'](_0x4bcc8d(0x1bd),_0x4bcc8d(0x1d7))&&!_0x567c94['is'](_0x4bcc8d(0x1bd),_0x4bcc8d(0x1d6)))&&(!!_0x567c94[_0x4bcc8d(0x1ba)](_0x4bcc8d(0x1b3))||!!_0x567c94[_0x4bcc8d(0x1ba)](_0x4bcc8d(0x1c9))&&_0x44cce9(_0x567c94[_0x4bcc8d(0x1d3)](_0x4bcc8d(0x1c9))));}function _0x437a(){const _0x43ef1c=['map','match','view','change','load','px)\x20100vw,\x20','src','location','445291gFJEhS','1402482mHxhkI','baseURI','editing','some','findViewImgElement','648136cRLWSI','domConverter','getAttribute','1468065tomQfY','(max-width:\x20','imageInline','imageBlock','viewToDom','addClass','ImageUtils','plugins','get','toViewElement','width','stopListening','replace','mapper','isArray','document','x/\x20','image/webp','638997BvtTBm','5540520QNIXGp','31094730cDleeJ','setStyle','image-processing','uploadcareImageId','4uNETyc','filter','aspect-ratio','removeStyle','join','function','hasAttribute','removeClass','window','element','7mBQeDo','height','/-/resize/','listenTo','origin'];_0x437a=function(){return _0x43ef1c;};return _0x437a();}export function getImageUrls(_0x5061a1,_0x43b441){const _0x1eb9a8=_0x3152,_0x1061d1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x1eb9a8(0x1b5)](_0x24309e=>_0x24309e<=_0x43b441)[_0x1eb9a8(0x1c3)](_0x94fd3e=>_0x5061a1[_0x1eb9a8(0x1a8)](/\/$/,'')+_0x1eb9a8(0x1c0)+_0x94fd3e+_0x1eb9a8(0x1ac)+_0x94fd3e+'w');return{'imageFallbackUrl':_0x5061a1,'imageSources':[{'srcset':_0x1061d1[_0x1eb9a8(0x1b8)](',\x20'),'sizes':_0x1eb9a8(0x1d5)+_0x43b441+_0x1eb9a8(0x1c8)+_0x43b441+'px','type':_0x1eb9a8(0x1ad)}]};}export function getImageDimension(_0x97cf5e,_0x481700,_0x17c31c){const _0x317e04=_0x3152,_0x249446=_0x97cf5e[_0x317e04(0x1c4)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x249446?parseInt(_0x249446[0x1],0xa):_0x481700,'height':_0x249446?parseInt(_0x249446[0x2],0xa):_0x17c31c};}function _0x3152(_0x3437e9,_0x13b372){const _0x437a02=_0x437a();return _0x3152=function(_0x3152a2,_0x3e715f){_0x3152a2=_0x3152a2-0x1a8;let _0x28d364=_0x437a02[_0x3152a2];return _0x28d364;},_0x3152(_0x3437e9,_0x13b372);}export function showImageProcessingIndicator(_0x16d084,_0xfc3fc6){const _0x1be112=_0x3152,_0x94aa9a=new(_0x1e78fa())(),_0x5d7f8=_0x16d084[_0x1be112(0x1db)][_0x1be112(0x1dc)](_0x1be112(0x1da)),_0x582066=_0x16d084[_0x1be112(0x1ce)][_0x1be112(0x1a9)][_0x1be112(0x1dd)](_0xfc3fc6),_0x49dd8c=_0x5d7f8[_0x1be112(0x1d0)](_0x582066),_0x584e20=_0x16d084[_0x1be112(0x1ce)][_0x1be112(0x1c5)][_0x1be112(0x1d2)][_0x1be112(0x1d8)](_0x49dd8c),_0x194c43=_0xfc3fc6[_0x1be112(0x1d3)](_0x1be112(0x1de)),_0x414952=_0xfc3fc6[_0x1be112(0x1d3)](_0x1be112(0x1bf)),_0x22918f=_0x1be112(0x1b2);_0x16d084[_0x1be112(0x1ce)][_0x1be112(0x1c5)][_0x1be112(0x1c6)](_0x4c6c1a=>{const _0x5831a4=_0x1be112;_0x4c6c1a[_0x5831a4(0x1d9)](_0x22918f,_0x582066),_0x4c6c1a[_0x5831a4(0x1b1)](_0x5831a4(0x1b6),_0x194c43+'/'+_0x414952,_0x49dd8c);}),_0x94aa9a[_0x1be112(0x1c1)](_0x584e20,_0x1be112(0x1c7),()=>{const _0x46f687=_0x1be112;_0x94aa9a[_0x46f687(0x1df)](_0x584e20,_0x46f687(0x1c7)),_0x16d084[_0x46f687(0x1ce)][_0x46f687(0x1c5)][_0x46f687(0x1c6)](_0x7b5c11=>{const _0x569a94=_0x46f687;_0x7b5c11[_0x569a94(0x1bb)](_0x22918f,_0x582066),_0x7b5c11[_0x569a94(0x1b7)](_0x569a94(0x1b6),_0x49dd8c);});});}function G(_0x2d5463){const _0x505214=_0x3152;if(Array[_0x505214(0x1aa)](_0x2d5463)){const _0x403311=_0x2d5463[_0x505214(0x1c3)](G);return _0x38e545=>_0x403311[_0x505214(0x1cf)](_0x204814=>_0x204814(_0x38e545));}if(_0x505214(0x1c2)==_0x2d5463){const _0x5205e2=_0x1daa96[_0x505214(0x1bc)][_0x505214(0x1ca)][_0x505214(0x1c2)];return _0x59e570=>new URL(_0x59e570,_0x1daa96[_0x505214(0x1ab)][_0x505214(0x1cd)])[_0x505214(0x1c2)]==_0x5205e2;}return _0x505214(0x1b9)==typeof _0x2d5463?_0x2d5463:_0x2d5463 instanceof RegExp?_0x1f2bc6=>!(!_0x1f2bc6[_0x505214(0x1c4)](_0x2d5463)&&!_0x1f2bc6[_0x505214(0x1a8)](/^https?:\/\//,'')[_0x505214(0x1c4)](_0x2d5463)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x33dc58,_0x190b5a){var _0x1d98c9=_0x4da3,_0x18a2e5=_0x33dc58();while(!![]){try{var _0x5aa06e=-parseInt(_0x1d98c9(0x133))/0x1+parseInt(_0x1d98c9(0x12e))/0x2+-parseInt(_0x1d98c9(0x134))/0x3+parseInt(_0x1d98c9(0x136))/0x4+parseInt(_0x1d98c9(0x132))/0x5+-parseInt(_0x1d98c9(0x12f))/0x6*(parseInt(_0x1d98c9(0x130))/0x7)+parseInt(_0x1d98c9(0x131))/0x8;if(_0x5aa06e===_0x190b5a)break;else _0x18a2e5['push'](_0x18a2e5['shift']());}catch(_0x53f0ca){_0x18a2e5['push'](_0x18a2e5['shift']());}}}(_0x272c,0x458be));import{getAncestors as _0x5c08c3}from'ckeditor5/src/utils.js';function _0x4da3(_0xa20bff,_0x5c187d){var _0x272cf5=_0x272c();return _0x4da3=function(_0x4da36c,_0x41dfeb){_0x4da36c=_0x4da36c-0x12e;var _0x4f6bd4=_0x272cf5[_0x4da36c];return _0x4f6bd4;},_0x4da3(_0xa20bff,_0x5c187d);}export function isAncestor(_0x16133b,_0x3d15fc){var _0x5301c4=_0x4da3;return _0x5c08c3(_0x16133b[_0x5301c4(0x137)])[_0x5301c4(0x135)](_0x3d15fc);}function _0x272c(){var _0xfc2b0=['35365gzsfNX','1394787wsYbny','includes','583088FQxsEi','target','593476SCqfab','1944666ngYQlo','7iREean','2546960cNqtBo','1741935NairIu'];_0x272c=function(){return _0xfc2b0;};return _0x272c();}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x16d0(_0x921100,_0x333398){var _0x1dfbe6=_0x1dfb();return _0x16d0=function(_0x16d064,_0x224e1a){_0x16d064=_0x16d064-0x85;var _0x3250db=_0x1dfbe6[_0x16d064];return _0x3250db;},_0x16d0(_0x921100,_0x333398);}var _0x2b92e8=_0x16d0;(function(_0x454a31,_0x57ee3a){var _0x2cc547=_0x16d0,_0x4ddd78=_0x454a31();while(!![]){try{var _0x5d50f9=-parseInt(_0x2cc547(0x89))/0x1*(parseInt(_0x2cc547(0x8b))/0x2)+-parseInt(_0x2cc547(0x85))/0x3*(-parseInt(_0x2cc547(0x87))/0x4)+parseInt(_0x2cc547(0x91))/0x5+-parseInt(_0x2cc547(0x8d))/0x6*(parseInt(_0x2cc547(0x8a))/0x7)+parseInt(_0x2cc547(0x8c))/0x8*(parseInt(_0x2cc547(0x8e))/0x9)+-parseInt(_0x2cc547(0x8f))/0xa+parseInt(_0x2cc547(0x86))/0xb*(parseInt(_0x2cc547(0x92))/0xc);if(_0x5d50f9===_0x57ee3a)break;else _0x4ddd78['push'](_0x4ddd78['shift']());}catch(_0x44f45a){_0x4ddd78['push'](_0x4ddd78['shift']());}}}(_0x1dfb,0x87051));function _0x1dfb(){var _0x59da21=['76808ayzEYy','18606jueVog','108GePjAR','5650070nqdRvf','getInfo','3596200QrLJoW','121836oSumoF','1407SKfxWS','693HEjlFz','4012iWTeYj','upload','391RFDuqP','539oxUzse','3006mWjUgc'];_0x1dfb=function(){return _0x59da21;};return _0x1dfb();}import{uploadFile as _0x15e75d,info as _0x401765}from'@uploadcare/upload-client';export class UploadUtils{static[_0x2b92e8(0x88)]({file:_0x52097b,..._0x5aa28b}){return _0x15e75d(_0x52097b,_0x5aa28b);}static[_0x2b92e8(0x90)](_0x5e8ae3,_0x5159d4){return _0x401765(_0x5e8ae3,_0x5159d4);}}
|