@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251221.0 → 0.0.0-nightly-20251222.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 _0x45a5da,View as _0x515d86}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x515d86{constructor(_0x3976d2){super(_0x3976d2);const t=_0x3976d2['t'],_0x5f4737=this['bindTemplate'],_0x19b1c8=new _0x45a5da();_0x19b1c8['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':[_0x19b1c8,{'text':_0x5f4737['to']('imageUploadProgress',_0x32627c=>t('Loading\x20image...')+'\x20('+(_0x32627c||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 _0x5bf43b=_0x50cd;(function(_0x5ae133,_0x2403ca){const _0x1453f4=_0x50cd,_0x42edd5=_0x5ae133();while(!![]){try{const _0x52cf0e=parseInt(_0x1453f4(0xa8))/0x1*(parseInt(_0x1453f4(0xbc))/0x2)+-parseInt(_0x1453f4(0xb4))/0x3*(parseInt(_0x1453f4(0xcc))/0x4)+-parseInt(_0x1453f4(0xbd))/0x5*(parseInt(_0x1453f4(0xca))/0x6)+parseInt(_0x1453f4(0x9f))/0x7*(parseInt(_0x1453f4(0xc8))/0x8)+-parseInt(_0x1453f4(0xac))/0x9+parseInt(_0x1453f4(0xa7))/0xa*(-parseInt(_0x1453f4(0xb9))/0xb)+parseInt(_0x1453f4(0xb5))/0xc;if(_0x52cf0e===_0x2403ca)break;else _0x42edd5['push'](_0x42edd5['shift']());}catch(_0x232565){_0x42edd5['push'](_0x42edd5['shift']());}}}(_0x2aa8,0xb0f54));import{View as _0x43beac}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5351eb}from'./uploadcareimageeditformloadingview.js';function _0x2aa8(){const _0x4c11e4=['observe','_editingView','change:status','_addUploadcareImageEditorListeners','ck-uploadcare-form','createCollection','detail','addEventListener','_focusableView','385BQKeuG','element','_setView','render','ck-reset_all-excluded','addMany','once','filter','120knUBAh','2EKuhLt','add','set','div','8102412HjsqQW','disconnect','_addErrorViewListeners','clear','target','cancel','apply','retry','378771dtHNBi','41510244ChHfxI','focus','querySelector','status','1055769nwSrap','_waitForImageEditorComponent','addedNodes','89902ZSSDnK','3011495LHloRu','length','uploading','error','cdnUrl','setTemplate','_items','getFocusableElement','_loadingView','_errorView','toLowerCase','103832SWCiFu','ready','6tjnmeQ','fire','28fcnXhv','uc-cloud-image-editor','nodeName'];_0x2aa8=function(){return _0x4c11e4;};return _0x2aa8();}import{UploadcareImageEditFormErrorView as _0x4af7f9}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x1a095c}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x489c2c}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x50cd(_0x4e96c5,_0x9f4efc){const _0x2aa8af=_0x2aa8();return _0x50cd=function(_0x50cddd,_0x29ef96){_0x50cddd=_0x50cddd-0x99;let _0x48050a=_0x2aa8af[_0x50cddd];return _0x48050a;},_0x50cd(_0x4e96c5,_0x9f4efc);}export class UploadcareImageEditFormView extends _0x489c2c{[_0x5bf43b(0xc3)];[_0x5bf43b(0xc5)];[_0x5bf43b(0xc6)];[_0x5bf43b(0xd0)];[_0x5bf43b(0x9e)];constructor(_0x15d27c,_0x17a427,_0x23abfc){const _0x4a09d5=_0x5bf43b;super(_0x15d27c),this[_0x4a09d5(0xc3)]=this[_0x4a09d5(0x9b)](),this[_0x4a09d5(0xc5)]=new _0x5351eb(_0x15d27c),this[_0x4a09d5(0xc6)]=new _0x4af7f9(_0x15d27c),this[_0x4a09d5(0xd0)]=new _0x1a095c(_0x15d27c,_0x23abfc),this[_0x4a09d5(0x9e)]=new _0x43beac(_0x15d27c),this[_0x4a09d5(0x9e)][_0x4a09d5(0xc2)](this[_0x4a09d5(0xc4)]()),this[_0x4a09d5(0xaa)](_0x4a09d5(0xb8),_0x17a427),this[_0x4a09d5(0xc2)]({'tag':_0x4a09d5(0xab),'attributes':{'class':['ck',_0x4a09d5(0xa3),_0x4a09d5(0x9a)],'tabindex':'-1'},'children':this[_0x4a09d5(0xc3)]}),this[_0x4a09d5(0xa1)](),this[_0x4a09d5(0xa5)](_0x4a09d5(0xa2),()=>{const _0x4d2f5d=_0x4a09d5;this[_0x4d2f5d(0xba)](this[_0x4d2f5d(0xa0)],_0x32479f=>{const _0x314b84=_0x4d2f5d;this[_0x314b84(0x99)](_0x32479f);});}),this['on'](_0x4a09d5(0xd1),()=>{const _0x25b3c7=_0x4a09d5;this[_0x25b3c7(0xa1)]();}),this[_0x4a09d5(0xae)]();}[_0x5bf43b(0xb6)](){const _0x4630ac=_0x5bf43b;this[_0x4630ac(0xa0)][_0x4630ac(0xb6)]();}[_0x5bf43b(0xa1)](){const _0x5ab40e=_0x5bf43b;switch(this[_0x5ab40e(0xc3)][_0x5ab40e(0xaf)](),this[_0x5ab40e(0xb8)]){case _0x5ab40e(0xbf):this[_0x5ab40e(0xc3)][_0x5ab40e(0xa9)](this[_0x5ab40e(0xc5)]);break;case _0x5ab40e(0xc0):this[_0x5ab40e(0xc3)][_0x5ab40e(0xa9)](this[_0x5ab40e(0xc6)]);break;case _0x5ab40e(0xc9):this[_0x5ab40e(0xc3)][_0x5ab40e(0xa4)]([this[_0x5ab40e(0xd0)],this[_0x5ab40e(0x9e)]]);}}[_0x5bf43b(0xba)](_0x786ea9,_0x5858e3){const _0x51fac7=_0x5bf43b,_0x55d99d=_0x51fac7(0xcd),_0x6dbee7=_0x786ea9[_0x51fac7(0xb7)](_0x55d99d);if(_0x6dbee7)return _0x5858e3(_0x6dbee7);const _0x3fa05b=new MutationObserver(_0x5321c2=>{const _0x14737b=_0x51fac7,_0x28eb51=_0x5321c2[_0x14737b(0xa6)](_0x25c083=>_0x25c083[_0x14737b(0xb0)]===_0x786ea9&&_0x25c083[_0x14737b(0xbb)][_0x14737b(0xbe)]>0x0&&_0x25c083[_0x14737b(0xbb)][0x0][_0x14737b(0xce)][_0x14737b(0xc7)]()===_0x55d99d);_0x28eb51[_0x14737b(0xbe)]&&(_0x3fa05b[_0x14737b(0xad)](),_0x5858e3(_0x28eb51[0x0][_0x14737b(0xbb)][0x0]));});_0x3fa05b[_0x51fac7(0xcf)](_0x786ea9,{'childList':!0x0,'subtree':!0x0});}[_0x5bf43b(0x99)](_0x57b26e){const _0x4b3e4a=_0x5bf43b;_0x57b26e[_0x4b3e4a(0x9d)](_0x4b3e4a(0xb2),_0x112e57=>{const _0x167c22=_0x4b3e4a;this[_0x167c22(0xcb)](_0x167c22(0xb2),{'imageSrc':_0x112e57[_0x167c22(0x9c)][_0x167c22(0xc1)]});}),_0x57b26e[_0x4b3e4a(0x9d)](_0x4b3e4a(0xb1),()=>{const _0x524d4b=_0x4b3e4a;this[_0x524d4b(0xcb)](_0x524d4b(0xb1));});}[_0x5bf43b(0xae)](){const _0xcd44f0=_0x5bf43b;this[_0xcd44f0(0xc6)]['on'](_0xcd44f0(0xb3),()=>{const _0x42aa9b=_0xcd44f0;this[_0x42aa9b(0xcb)](_0x42aa9b(0xb3));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x417e52=_0x3a00;(function(_0x1156ff,_0x4c40d7){const _0x55098a=_0x3a00,_0x373ce1=_0x1156ff();while(!![]){try{const _0x1671ca=-parseInt(_0x55098a(0x1e2))/0x1*(-parseInt(_0x55098a(0x1e6))/0x2)+-parseInt(_0x55098a(0x1ea))/0x3+-parseInt(_0x55098a(0x1e5))/0x4+-parseInt(_0x55098a(0x1d3))/0x5+-parseInt(_0x55098a(0x1e3))/0x6*(-parseInt(_0x55098a(0x1d2))/0x7)+-parseInt(_0x55098a(0x1e4))/0x8+parseInt(_0x55098a(0x1d0))/0x9;if(_0x1671ca===_0x4c40d7)break;else _0x373ce1['push'](_0x373ce1['shift']());}catch(_0x448019){_0x373ce1['push'](_0x373ce1['shift']());}}}(_0x4acc,0x35f71));import{Command as _0x1a69d1}from'ckeditor5/src/core.js';import{Dialog as _0x21ed66}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x53bf1c}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x173a96}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x1a69d1{[_0x417e52(0x1db)];static get[_0x417e52(0x1ed)](){return[_0x21ed66];}[_0x417e52(0x1d6)];constructor(_0x53c45d){const _0xfe3be4=_0x417e52;super(_0x53c45d),this[_0xfe3be4(0x1db)]=void 0x0,this[_0xfe3be4(0x1d6)]=_0x173a96(_0x53c45d[_0xfe3be4(0x1eb)][_0xfe3be4(0x1d9)](_0xfe3be4(0x1d7))||[]),this[_0xfe3be4(0x1e9)]({'isActive':!0x1});}[_0x417e52(0x1da)](){const _0x4037bb=_0x417e52,_0xb634d6=this[_0x4037bb(0x1dd)][_0x4037bb(0x1e1)][_0x4037bb(0x1d5)][_0x4037bb(0x1de)][_0x4037bb(0x1d4)]();this[_0x4037bb(0x1dc)]=this[_0x4037bb(0x1d6)](_0xb634d6);}[_0x417e52(0x1e0)](){const _0x103ceb=_0x417e52;this[_0x103ceb(0x1db)]&&(this[_0x103ceb(0x1d8)](_0x103ceb(0x1e7)),this[_0x103ceb(0x1db)]=void 0x0);const _0x387a14=this[_0x103ceb(0x1dd)][_0x103ceb(0x1e1)][_0x103ceb(0x1d5)][_0x103ceb(0x1de)][_0x103ceb(0x1d4)]();_0x387a14&&(_0x387a14['is'](_0x103ceb(0x1d1),_0x103ceb(0x1ee))||_0x387a14['is'](_0x103ceb(0x1d1),_0x103ceb(0x1ec)))&&(this[_0x103ceb(0x1db)]=new _0x53bf1c(this[_0x103ceb(0x1dd)],this[_0x103ceb(0x1dd)][_0x103ceb(0x1df)][_0x103ceb(0x1d9)](_0x21ed66),_0x387a14),this[_0x103ceb(0x1e8)](_0x103ceb(0x1e7))['to'](this[_0x103ceb(0x1db)],_0x103ceb(0x1e7)));}}function _0x3a00(_0x188eca,_0x2f447d){const _0x4accba=_0x4acc();return _0x3a00=function(_0x3a0045,_0x30e307){_0x3a0045=_0x3a0045-0x1d0;let _0x434c93=_0x4accba[_0x3a0045];return _0x434c93;},_0x3a00(_0x188eca,_0x2f447d);}function _0x4acc(){const _0xc18324=['set','562296DCjnYl','config','imageInline','requires','imageBlock','5678532EAsKkx','element','7aKFYza','995965LYXeGm','getSelectedElement','document','_isEditable','uploadcare.allowExternalImagesEditing','unbind','get','refresh','imageEditController','isEnabled','editor','selection','plugins','execute','model','1ZWiIYp','472536dsNaVb','178480lioKQe','635188nCbYyA','158138aUiDcC','isActive','bind'];_0x4acc=function(){return _0xc18324;};return _0x4acc();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x397f68=_0x2b97;(function(_0x2460fb,_0x513dac){const _0x5e19e1=_0x2b97,_0x1fbb7b=_0x2460fb();while(!![]){try{const _0x36871b=-parseInt(_0x5e19e1(0x1df))/0x1*(-parseInt(_0x5e19e1(0x1da))/0x2)+-parseInt(_0x5e19e1(0x1e0))/0x3*(parseInt(_0x5e19e1(0x1d6))/0x4)+-parseInt(_0x5e19e1(0x1e4))/0x5*(-parseInt(_0x5e19e1(0x1dc))/0x6)+parseInt(_0x5e19e1(0x1e3))/0x7*(parseInt(_0x5e19e1(0x1e8))/0x8)+parseInt(_0x5e19e1(0x1e2))/0x9+-parseInt(_0x5e19e1(0x1e5))/0xa+-parseInt(_0x5e19e1(0x1d4))/0xb*(-parseInt(_0x5e19e1(0x1de))/0xc);if(_0x36871b===_0x513dac)break;else _0x1fbb7b['push'](_0x1fbb7b['shift']());}catch(_0x194636){_0x1fbb7b['push'](_0x1fbb7b['shift']());}}}(_0x4c0a,0xf0f86));import{Plugin as _0x4356f6}from'ckeditor5/src/core.js';import{Notification as _0x295b61}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x24efea}from'./uploadcareimageeditcommand.js';function _0x2b97(_0xe354f1,_0x2a46a9){const _0x4c0a92=_0x4c0a();return _0x2b97=function(_0x2b97a5,_0x263908){_0x2b97a5=_0x2b97a5-0x1d1;let _0x1484d0=_0x4c0a92[_0x2b97a5];return _0x1484d0;},_0x2b97(_0xe354f1,_0x2a46a9);}import{UploadcareImageReplaceCommand as _0x29fc5c}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x24320c}from'../uploadcareediting.js';function _0x4c0a(){const _0x184249=['init','uploadcareImageReplace','12218xjothX','uploadcareImageEdit','1872pxXpmw','isPremiumPlugin','4028964UjAOpA','7NlyhNL','534UfFsvy','commands','7913223dqnadu','368711uhWSdu','1400TxKrlr','2817910CqERFQ','pluginName','requires','184elVtAH','UploadcareImageEditEditing','isOfficialPlugin','add','22JnZPrD','ImageEditing','36484XIVPVA','ImageUtils'];_0x4c0a=function(){return _0x184249;};return _0x4c0a();}export class UploadcareImageEditEditing extends _0x4356f6{static get[_0x397f68(0x1e6)](){const _0x7d838e=_0x397f68;return _0x7d838e(0x1d1);}static get[_0x397f68(0x1e7)](){const _0x1e8bb5=_0x397f68;return[_0x24320c,_0x295b61,_0x1e8bb5(0x1d7),_0x1e8bb5(0x1d5)];}static get[_0x397f68(0x1d2)](){return!0x0;}static get[_0x397f68(0x1dd)](){return!0x0;}[_0x397f68(0x1d8)](){const _0x3d4d41=_0x397f68,{editor:_0x51701b}=this;_0x51701b[_0x3d4d41(0x1e1)][_0x3d4d41(0x1d3)](_0x3d4d41(0x1db),new _0x24efea(_0x51701b)),_0x51701b[_0x3d4d41(0x1e1)][_0x3d4d41(0x1d3)](_0x3d4d41(0x1d9),new _0x29fc5c(_0x51701b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x350d3c}from'ckeditor5/src/core.js';import{ButtonView as _0x5efa7f}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4ddb2e}from'ckeditor5/src/icons.js';import{createElement as _0x5ddbf7}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 _0x350d3c{['_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 _0x4ed01b=this['editor'];_0x4ed01b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2488c6=>{const _0x157d2d=_0x4ed01b['commands']['get']('uploadcareImageEdit'),_0x556d60=new _0x5efa7f(_0x2488c6),t=_0x2488c6['t'];return _0x556d60['set']({'icon':_0x4ddb2e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x556d60['bind']('isEnabled')['to'](_0x157d2d),_0x556d60['bind']('isOn')['to'](_0x157d2d,'isActive'),this['listenTo'](_0x556d60,'execute',()=>{_0x4ed01b['execute']('uploadcareImageEdit'),_0x4ed01b['editing']['view']['focus']();}),_0x556d60;}),this['_initConfig']();}['_initConfig'](){const _0x7d3710=_0x5ddbf7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x7d3710),this['listenTo'](this['editor'],'destroy',()=>{_0x7d3710['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x360d(){var _0x117973=['31uAKoPt','createCollection','20CEQQPs','4227665jxTJhi','441WJMeVn','4563438Qktqll','9438654JzzBck','5853KNwxZQ','focusTracker','true','focusCycler','forwardCycle','getFocusableElement','18992808NebPlf','bindTemplate','div','83318ImDyiB','1228VWKEsz','27576KErIOr','7bntkjW','fire'];_0x360d=function(){return _0x117973;};return _0x360d();}function _0x1417(_0x1684c5,_0x3440ff){var _0x360dcf=_0x360d();return _0x1417=function(_0x1417e3,_0x47ea63){_0x1417e3=_0x1417e3-0xb0;var _0x4756f0=_0x360dcf[_0x1417e3];return _0x4756f0;},_0x1417(_0x1684c5,_0x3440ff);}var _0x4d7a80=_0x1417;(function(_0x40c212,_0x1f756c){var _0x51c790=_0x1417,_0x565e2a=_0x40c212();while(!![]){try{var _0x3d966c=-parseInt(_0x51c790(0xbe))/0x1*(-parseInt(_0x51c790(0xb9))/0x2)+parseInt(_0x51c790(0xb0))/0x3*(-parseInt(_0x51c790(0xba))/0x4)+-parseInt(_0x51c790(0xc1))/0x5+parseInt(_0x51c790(0xc4))/0x6*(parseInt(_0x51c790(0xbc))/0x7)+-parseInt(_0x51c790(0xbb))/0x8*(-parseInt(_0x51c790(0xc2))/0x9)+parseInt(_0x51c790(0xc0))/0xa*(parseInt(_0x51c790(0xc3))/0xb)+-parseInt(_0x51c790(0xb6))/0xc;if(_0x3d966c===_0x1f756c)break;else _0x565e2a['push'](_0x565e2a['shift']());}catch(_0x1e5d26){_0x565e2a['push'](_0x565e2a['shift']());}}}(_0x360d,0xcc15d));import{FocusTracker as _0xf9b102}from'ckeditor5/src/utils.js';import{View as _0x9de671,FocusCycler as _0x565aa9}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x9de671{[_0x4d7a80(0xb1)];[_0x4d7a80(0xb3)];constructor(_0x26ce03){var _0x245d6d=_0x4d7a80;super(_0x26ce03),this[_0x245d6d(0xb1)]=new _0xf9b102(),this[_0x245d6d(0xb3)]=new _0x565aa9({'focusables':this[_0x245d6d(0xbf)](),'focusTracker':this[_0x245d6d(0xb1)]});}[_0x4d7a80(0xb5)](){var _0x17f81b=_0x4d7a80;return{'tag':_0x17f81b(0xb8),'attributes':{'aria-hidden':_0x17f81b(0xb2),'tabindex':'0'},'on':{'focus':this[_0x17f81b(0xb7)]['to'](()=>{var _0x452158=_0x17f81b;this[_0x452158(0xb3)][_0x452158(0xbd)](_0x452158(0xb4));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x48e6c4,_0x5a0cec){const _0xa6fc54=_0x161b,_0x44b6a1=_0x48e6c4();while(!![]){try{const _0x575957=-parseInt(_0xa6fc54(0x10f))/0x1*(-parseInt(_0xa6fc54(0x118))/0x2)+parseInt(_0xa6fc54(0x11f))/0x3*(parseInt(_0xa6fc54(0x10d))/0x4)+parseInt(_0xa6fc54(0x112))/0x5+-parseInt(_0xa6fc54(0x138))/0x6+-parseInt(_0xa6fc54(0x10a))/0x7*(-parseInt(_0xa6fc54(0x123))/0x8)+-parseInt(_0xa6fc54(0x122))/0x9*(-parseInt(_0xa6fc54(0x132))/0xa)+-parseInt(_0xa6fc54(0x12a))/0xb;if(_0x575957===_0x5a0cec)break;else _0x44b6a1['push'](_0x44b6a1['shift']());}catch(_0x5b7cb0){_0x44b6a1['push'](_0x44b6a1['shift']());}}}(_0x18af,0x8ac40));function _0x161b(_0x3903c6,_0x2b5683){const _0x18af4e=_0x18af();return _0x161b=function(_0x161bff,_0x26d315){_0x161bff=_0x161bff-0x106;let _0x199560=_0x18af4e[_0x161bff];return _0x199560;},_0x161b(_0x3903c6,_0x2b5683);}import{global as _0x2d1e57,DomEmitterMixin as _0x7706fa}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x2ee650){const _0xe043dc=_0x161b,_0x3b2f44=z(_0x2ee650);return _0x44d02a=>!(!_0x44d02a||!_0x44d02a['is'](_0xe043dc(0x124),_0xe043dc(0x11e))&&!_0x44d02a['is'](_0xe043dc(0x124),_0xe043dc(0x12e)))&&(!!_0x44d02a[_0xe043dc(0x13a)](_0xe043dc(0x110))||!!_0x44d02a[_0xe043dc(0x13a)](_0xe043dc(0x11a))&&_0x3b2f44(_0x44d02a[_0xe043dc(0x11d)](_0xe043dc(0x11a))));}export function getImageUrls(_0x466bc0,_0x5ae577){const _0x15fc6a=_0x161b,_0x26a2d1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x15fc6a(0x12c)](_0x38be29=>_0x38be29<=_0x5ae577)[_0x15fc6a(0x121)](_0x3f6f5a=>_0x466bc0[_0x15fc6a(0x133)](/\/$/,'')+_0x15fc6a(0x10e)+_0x3f6f5a+_0x15fc6a(0x125)+_0x3f6f5a+'w');return{'imageFallbackUrl':_0x466bc0,'imageSources':[{'srcset':_0x26a2d1[_0x15fc6a(0x108)](',\x20'),'sizes':_0x15fc6a(0x120)+_0x5ae577+_0x15fc6a(0x130)+_0x5ae577+'px','type':_0x15fc6a(0x109)}]};}export function getImageDimension(_0x99d492,_0x29f35d,_0x4ebb62){const _0x1f0064=_0x161b,_0x2ddfe1=_0x99d492[_0x1f0064(0x135)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2ddfe1?parseInt(_0x2ddfe1[0x1],0xa):_0x29f35d,'height':_0x2ddfe1?parseInt(_0x2ddfe1[0x2],0xa):_0x4ebb62};}function _0x18af(){const _0x40c283=['plugins','stopListening','domConverter','join','image/webp','5582087qfOqqv','location','ImageUtils','3105836tomQkS','/-/resize/','4buKOhD','uploadcareImageId','some','4213190sBxSiG','isArray','addClass','view','baseURI','removeStyle','560124InhsZJ','width','src','setStyle','height','getAttribute','imageBlock','3GOWsRL','(max-width:\x20','map','117nNMDwg','8SptbBo','element','x/\x20','listenTo','findViewImgElement','get','load','34294128kFYYPa','editing','filter','mapper','imageInline','origin','px)\x20100vw,\x20','function','225310QSfEBT','replace','aspect-ratio','match','removeClass','image-processing','861942IYMiaV','toViewElement','hasAttribute','document','window','viewToDom','change'];_0x18af=function(){return _0x40c283;};return _0x18af();}export function showImageProcessingIndicator(_0x4472dd,_0x447401){const _0x5b73af=_0x161b,_0xe56329=new(_0x7706fa())(),_0x3ebc40=_0x4472dd[_0x5b73af(0x13f)][_0x5b73af(0x128)](_0x5b73af(0x10c)),_0x1e934d=_0x4472dd[_0x5b73af(0x12b)][_0x5b73af(0x12d)][_0x5b73af(0x139)](_0x447401),_0x3bb153=_0x3ebc40[_0x5b73af(0x127)](_0x1e934d),_0x318699=_0x4472dd[_0x5b73af(0x12b)][_0x5b73af(0x115)][_0x5b73af(0x107)][_0x5b73af(0x13d)](_0x3bb153),_0x72c3fd=_0x447401[_0x5b73af(0x11d)](_0x5b73af(0x119)),_0x148075=_0x447401[_0x5b73af(0x11d)](_0x5b73af(0x11c)),_0xbb7f7e=_0x5b73af(0x137);_0x4472dd[_0x5b73af(0x12b)][_0x5b73af(0x115)][_0x5b73af(0x13e)](_0x2a45ad=>{const _0x5a488b=_0x5b73af;_0x2a45ad[_0x5a488b(0x114)](_0xbb7f7e,_0x1e934d),_0x2a45ad[_0x5a488b(0x11b)](_0x5a488b(0x134),_0x72c3fd+'/'+_0x148075,_0x3bb153);}),_0xe56329[_0x5b73af(0x126)](_0x318699,_0x5b73af(0x129),()=>{const _0x138868=_0x5b73af;_0xe56329[_0x138868(0x106)](_0x318699,_0x138868(0x129)),_0x4472dd[_0x138868(0x12b)][_0x138868(0x115)][_0x138868(0x13e)](_0x3d363b=>{const _0x578043=_0x138868;_0x3d363b[_0x578043(0x136)](_0xbb7f7e,_0x1e934d),_0x3d363b[_0x578043(0x117)](_0x578043(0x134),_0x3bb153);});});}function z(_0x5e15b3){const _0x1b427c=_0x161b;if(Array[_0x1b427c(0x113)](_0x5e15b3)){const _0x2a1d23=_0x5e15b3[_0x1b427c(0x121)](z);return _0x17dda9=>_0x2a1d23[_0x1b427c(0x111)](_0x143564=>_0x143564(_0x17dda9));}if(_0x1b427c(0x12f)==_0x5e15b3){const _0x44fe82=_0x2d1e57[_0x1b427c(0x13c)][_0x1b427c(0x10b)][_0x1b427c(0x12f)];return _0x362ec7=>new URL(_0x362ec7,_0x2d1e57[_0x1b427c(0x13b)][_0x1b427c(0x116)])[_0x1b427c(0x12f)]==_0x44fe82;}return _0x1b427c(0x131)==typeof _0x5e15b3?_0x5e15b3:_0x5e15b3 instanceof RegExp?_0x1a7e35=>!(!_0x1a7e35[_0x1b427c(0x135)](_0x5e15b3)&&!_0x1a7e35[_0x1b427c(0x133)](/^https?:\/\//,'')[_0x1b427c(0x135)](_0x5e15b3)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0xda52(_0x51e9bb,_0x32eafc){var _0x48b5cb=_0x48b5();return _0xda52=function(_0xda52bb,_0x3fde20){_0xda52bb=_0xda52bb-0x1a0;var _0x1a05ef=_0x48b5cb[_0xda52bb];return _0x1a05ef;},_0xda52(_0x51e9bb,_0x32eafc);}(function(_0x15fd05,_0x1fe347){var _0x1e1fce=_0xda52,_0x566b8=_0x15fd05();while(!![]){try{var _0x1ab3a1=-parseInt(_0x1e1fce(0x1a4))/0x1*(-parseInt(_0x1e1fce(0x1a9))/0x2)+-parseInt(_0x1e1fce(0x1aa))/0x3+parseInt(_0x1e1fce(0x1a6))/0x4+parseInt(_0x1e1fce(0x1a3))/0x5+-parseInt(_0x1e1fce(0x1a7))/0x6+-parseInt(_0x1e1fce(0x1a2))/0x7*(-parseInt(_0x1e1fce(0x1a1))/0x8)+-parseInt(_0x1e1fce(0x1a0))/0x9;if(_0x1ab3a1===_0x1fe347)break;else _0x566b8['push'](_0x566b8['shift']());}catch(_0x1536dd){_0x566b8['push'](_0x566b8['shift']());}}}(_0x48b5,0xa7dfe));function _0x48b5(){var _0x204ef9=['446mRLOLj','41778jYiPYe','13663458BWwPKt','216VpOhak','172592HqRPWB','3463730KGhrul','4821uKBgaV','includes','3931984OsVxzD','7181010SrzLUn','target'];_0x48b5=function(){return _0x204ef9;};return _0x48b5();}import{getAncestors as _0x1b63f8}from'ckeditor5/src/utils.js';export function isAncestor(_0x34897a,_0x56659f){var _0x27daa0=_0xda52;return _0x1b63f8(_0x34897a[_0x27daa0(0x1a8)])[_0x27daa0(0x1a5)](_0x56659f);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x1cac(_0x4241ad,_0xcb0cf6){var _0x4570c3=_0x4570();return _0x1cac=function(_0x1cac0f,_0x4b812){_0x1cac0f=_0x1cac0f-0x144;var _0x5c8ed3=_0x4570c3[_0x1cac0f];return _0x5c8ed3;},_0x1cac(_0x4241ad,_0xcb0cf6);}var _0xe5912b=_0x1cac;(function(_0x78b21c,_0x59db43){var _0x429d1c=_0x1cac,_0x4958f7=_0x78b21c();while(!![]){try{var _0x1df299=-parseInt(_0x429d1c(0x14b))/0x1*(-parseInt(_0x429d1c(0x14c))/0x2)+-parseInt(_0x429d1c(0x145))/0x3+parseInt(_0x429d1c(0x147))/0x4*(-parseInt(_0x429d1c(0x14e))/0x5)+-parseInt(_0x429d1c(0x148))/0x6+-parseInt(_0x429d1c(0x144))/0x7+parseInt(_0x429d1c(0x149))/0x8+parseInt(_0x429d1c(0x146))/0x9*(parseInt(_0x429d1c(0x14d))/0xa);if(_0x1df299===_0x59db43)break;else _0x4958f7['push'](_0x4958f7['shift']());}catch(_0x450bb2){_0x4958f7['push'](_0x4958f7['shift']());}}}(_0x4570,0x90cc8));import{uploadFile as _0x4e3adc,info as _0x2e6fc5}from'@uploadcare/upload-client';function _0x4570(){var _0x1c5a51=['getInfo','22hXhmJr','3970zEgDmF','10LUIKtn','35QlrPYV','upload','2284464oVcikx','871725kvhpFR','14816133REQizh','177680WtUDPB','1637940ZDwsib','832368bjViQc'];_0x4570=function(){return _0x1c5a51;};return _0x4570();}export class UploadUtils{static[_0xe5912b(0x14f)]({file:_0x460633,..._0x2282ad}){return _0x4e3adc(_0x460633,_0x2282ad);}static[_0xe5912b(0x14a)](_0x5182ca,_0x58d1ed){return _0x2e6fc5(_0x5182ca,_0x58d1ed);}}
|