@ckeditor/ckeditor5-uploadcare 47.2.0-alpha.3 → 47.2.0-alpha.4
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 _0x323a81,View as _0x4bd617}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4bd617{constructor(_0xe6b8){super(_0xe6b8);const t=_0xe6b8['t'],_0x1ff2f0=this['bindTemplate'],_0x3794b7=new _0x323a81();_0x3794b7['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':[_0x3794b7,{'text':_0x1ff2f0['to']('imageUploadProgress',_0x1a659c=>t('Loading\x20image...')+'\x20('+(_0x1a659c||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 _0xeb00f3=_0x557b;(function(_0x445868,_0x20faa6){const _0x4ad318=_0x557b,_0x1e43d6=_0x445868();while(!![]){try{const _0x496dc1=-parseInt(_0x4ad318(0x207))/0x1+-parseInt(_0x4ad318(0x1ff))/0x2+parseInt(_0x4ad318(0x1f9))/0x3*(parseInt(_0x4ad318(0x1eb))/0x4)+parseInt(_0x4ad318(0x1fb))/0x5+parseInt(_0x4ad318(0x203))/0x6+-parseInt(_0x4ad318(0x1e7))/0x7*(parseInt(_0x4ad318(0x1e8))/0x8)+parseInt(_0x4ad318(0x1ec))/0x9*(parseInt(_0x4ad318(0x206))/0xa);if(_0x496dc1===_0x20faa6)break;else _0x1e43d6['push'](_0x1e43d6['shift']());}catch(_0x3a2551){_0x1e43d6['push'](_0x1e43d6['shift']());}}}(_0x1bc6,0x68886));function _0x1bc6(){const _0x20e91f=['length','832766PKLaMm','nodeName','createCollection','_editingView','1488078TniOxp','retry','addedNodes','1345750LPHDym','499716OGbmQR','once','setTemplate','uploading','status','querySelector','ck-reset_all-excluded','toLowerCase','add','getFocusableElement','target','filter','ready','_focusableView','apply','detail','error','ck-uploadcare-form','div','addMany','_addErrorViewListeners','_waitForImageEditorComponent','_items','3678486PTgtWT','8rXZZIx','disconnect','element','260384GnYIEd','72gbTsSf','focus','observe','uc-cloud-image-editor','_loadingView','cancel','set','_addUploadcareImageEditorListeners','_errorView','render','addEventListener','clear','change:status','6PytuiR','_setView','2074790NYfjwH','fire','cdnUrl'];_0x1bc6=function(){return _0x20e91f;};return _0x1bc6();}import{View as _0x28eb50}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3b06aa}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x4192a8}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x419783}from'./uploadcareimageeditformeditingview.js';function _0x557b(_0x2352ec,_0x1e9561){const _0x1bc6db=_0x1bc6();return _0x557b=function(_0x557b80,_0x11b0fc){_0x557b80=_0x557b80-0x1d2;let _0x44227a=_0x1bc6db[_0x557b80];return _0x44227a;},_0x557b(_0x2352ec,_0x1e9561);}import{DialogFocusManagerView as _0x4389df}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x4389df{[_0xeb00f3(0x1e6)];[_0xeb00f3(0x1f0)];[_0xeb00f3(0x1f4)];[_0xeb00f3(0x202)];[_0xeb00f3(0x1dd)];constructor(_0x131430,_0x97e817,_0x3caa38){const _0x3bd5e1=_0xeb00f3;super(_0x131430),this[_0x3bd5e1(0x1e6)]=this[_0x3bd5e1(0x201)](),this[_0x3bd5e1(0x1f0)]=new _0x3b06aa(_0x131430),this[_0x3bd5e1(0x1f4)]=new _0x4192a8(_0x131430),this[_0x3bd5e1(0x202)]=new _0x419783(_0x131430,_0x3caa38),this[_0x3bd5e1(0x1dd)]=new _0x28eb50(_0x131430),this[_0x3bd5e1(0x1dd)][_0x3bd5e1(0x1d2)](this[_0x3bd5e1(0x1d9)]()),this[_0x3bd5e1(0x1f2)](_0x3bd5e1(0x1d4),_0x97e817),this[_0x3bd5e1(0x1d2)]({'tag':_0x3bd5e1(0x1e2),'attributes':{'class':['ck',_0x3bd5e1(0x1d6),_0x3bd5e1(0x1e1)],'tabindex':'-1'},'children':this[_0x3bd5e1(0x1e6)]}),this[_0x3bd5e1(0x1fa)](),this[_0x3bd5e1(0x208)](_0x3bd5e1(0x1f5),()=>{const _0x247b73=_0x3bd5e1;this[_0x247b73(0x1e5)](this[_0x247b73(0x1ea)],_0x24f6dc=>{const _0x261c5c=_0x247b73;this[_0x261c5c(0x1f3)](_0x24f6dc);});}),this['on'](_0x3bd5e1(0x1f8),()=>{const _0x35cdd2=_0x3bd5e1;this[_0x35cdd2(0x1fa)]();}),this[_0x3bd5e1(0x1e4)]();}[_0xeb00f3(0x1ed)](){const _0x119491=_0xeb00f3;this[_0x119491(0x1ea)][_0x119491(0x1ed)]();}[_0xeb00f3(0x1fa)](){const _0x4b7a45=_0xeb00f3;switch(this[_0x4b7a45(0x1e6)][_0x4b7a45(0x1f7)](),this[_0x4b7a45(0x1d4)]){case _0x4b7a45(0x1d3):this[_0x4b7a45(0x1e6)][_0x4b7a45(0x1d8)](this[_0x4b7a45(0x1f0)]);break;case _0x4b7a45(0x1e0):this[_0x4b7a45(0x1e6)][_0x4b7a45(0x1d8)](this[_0x4b7a45(0x1f4)]);break;case _0x4b7a45(0x1dc):this[_0x4b7a45(0x1e6)][_0x4b7a45(0x1e3)]([this[_0x4b7a45(0x202)],this[_0x4b7a45(0x1dd)]]);}}[_0xeb00f3(0x1e5)](_0x570666,_0x1adeae){const _0x15fce0=_0xeb00f3,_0x4e59f7=_0x15fce0(0x1ef),_0x5d8305=_0x570666[_0x15fce0(0x1d5)](_0x4e59f7);if(_0x5d8305)return _0x1adeae(_0x5d8305);const _0x582109=new MutationObserver(_0x2e8419=>{const _0x201019=_0x15fce0,_0x242a9b=_0x2e8419[_0x201019(0x1db)](_0x15d526=>_0x15d526[_0x201019(0x1da)]===_0x570666&&_0x15d526[_0x201019(0x205)][_0x201019(0x1fe)]>0x0&&_0x15d526[_0x201019(0x205)][0x0][_0x201019(0x200)][_0x201019(0x1d7)]()===_0x4e59f7);_0x242a9b[_0x201019(0x1fe)]&&(_0x582109[_0x201019(0x1e9)](),_0x1adeae(_0x242a9b[0x0][_0x201019(0x205)][0x0]));});_0x582109[_0x15fce0(0x1ee)](_0x570666,{'childList':!0x0,'subtree':!0x0});}[_0xeb00f3(0x1f3)](_0x5e2559){const _0x50b0ec=_0xeb00f3;_0x5e2559[_0x50b0ec(0x1f6)](_0x50b0ec(0x1de),_0x10261e=>{const _0x4dbe21=_0x50b0ec;this[_0x4dbe21(0x1fc)](_0x4dbe21(0x1de),{'imageSrc':_0x10261e[_0x4dbe21(0x1df)][_0x4dbe21(0x1fd)]});}),_0x5e2559[_0x50b0ec(0x1f6)](_0x50b0ec(0x1f1),()=>{const _0x1b8146=_0x50b0ec;this[_0x1b8146(0x1fc)](_0x1b8146(0x1f1));});}[_0xeb00f3(0x1e4)](){const _0x765fa=_0xeb00f3;this[_0x765fa(0x1f4)]['on'](_0x765fa(0x204),()=>{const _0x1d1900=_0x765fa;this[_0x1d1900(0x1fc)](_0x1d1900(0x204));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45d8e8=_0x2c26;function _0x2c26(_0x4032bb,_0x43961f){const _0x3f3e10=_0x3f3e();return _0x2c26=function(_0x2c264c,_0x1702da){_0x2c264c=_0x2c264c-0x79;let _0x5b5190=_0x3f3e10[_0x2c264c];return _0x5b5190;},_0x2c26(_0x4032bb,_0x43961f);}(function(_0x298077,_0x43ed45){const _0x5b36af=_0x2c26,_0x2c6ba0=_0x298077();while(!![]){try{const _0x5d186a=-parseInt(_0x5b36af(0x89))/0x1+-parseInt(_0x5b36af(0x8e))/0x2+-parseInt(_0x5b36af(0x91))/0x3+-parseInt(_0x5b36af(0x83))/0x4+parseInt(_0x5b36af(0x97))/0x5*(parseInt(_0x5b36af(0x95))/0x6)+-parseInt(_0x5b36af(0x8f))/0x7*(parseInt(_0x5b36af(0x80))/0x8)+parseInt(_0x5b36af(0x8d))/0x9*(parseInt(_0x5b36af(0x94))/0xa);if(_0x5d186a===_0x43ed45)break;else _0x2c6ba0['push'](_0x2c6ba0['shift']());}catch(_0x594030){_0x2c6ba0['push'](_0x2c6ba0['shift']());}}}(_0x3f3e,0xb3e10));import{Command as _0x3c15a8}from'ckeditor5/src/core.js';import{Dialog as _0x5a0735}from'ckeditor5/src/ui.js';function _0x3f3e(){const _0x5cb240=['910695pdxMFc','bind','model','set','117GltAwc','230792ZfvRbq','24423xrkZTS','getSelectedElement','2381361naBauq','uploadcare.allowExternalImagesEditing','imageEditController','3321170OtOSYF','3378byTirP','_isEditable','2815lmFPVd','get','requires','plugins','isEnabled','imageInline','editor','refresh','execute','1528eepreh','unbind','document','5645716hclwAF','config','isActive','selection','element','imageBlock'];_0x3f3e=function(){return _0x5cb240;};return _0x3f3e();}import{UploadcareImageEditController as _0x7d52c}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x1c67f9}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3c15a8{[_0x45d8e8(0x93)];static get[_0x45d8e8(0x79)](){return[_0x5a0735];}[_0x45d8e8(0x96)];constructor(_0x58ecd6){const _0x5a0d73=_0x45d8e8;super(_0x58ecd6),this[_0x5a0d73(0x93)]=void 0x0,this[_0x5a0d73(0x96)]=_0x1c67f9(_0x58ecd6[_0x5a0d73(0x84)][_0x5a0d73(0x98)](_0x5a0d73(0x92))||[]),this[_0x5a0d73(0x8c)]({'isActive':!0x1});}[_0x45d8e8(0x7e)](){const _0x57211c=_0x45d8e8,_0x55aaf6=this[_0x57211c(0x7d)][_0x57211c(0x8b)][_0x57211c(0x82)][_0x57211c(0x86)][_0x57211c(0x90)]();this[_0x57211c(0x7b)]=this[_0x57211c(0x96)](_0x55aaf6);}[_0x45d8e8(0x7f)](){const _0x5c9950=_0x45d8e8;this[_0x5c9950(0x93)]&&(this[_0x5c9950(0x81)](_0x5c9950(0x85)),this[_0x5c9950(0x93)]=void 0x0);const _0x5eae14=this[_0x5c9950(0x7d)][_0x5c9950(0x8b)][_0x5c9950(0x82)][_0x5c9950(0x86)][_0x5c9950(0x90)]();_0x5eae14&&(_0x5eae14['is'](_0x5c9950(0x87),_0x5c9950(0x88))||_0x5eae14['is'](_0x5c9950(0x87),_0x5c9950(0x7c)))&&(this[_0x5c9950(0x93)]=new _0x7d52c(this[_0x5c9950(0x7d)],this[_0x5c9950(0x7d)][_0x5c9950(0x7a)][_0x5c9950(0x98)](_0x5a0735),_0x5eae14),this[_0x5c9950(0x8a)](_0x5c9950(0x85))['to'](this[_0x5c9950(0x93)],_0x5c9950(0x85)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x2db45a=_0x5173;function _0x5c7a(){const _0x27961d=['init','requires','50TqQegB','16YdHrkp','add','1374kOeaQh','5645UVDtIU','54379pnLdQz','isPremiumPlugin','uploadcareImageReplace','isOfficialPlugin','uploadcareImageEdit','ImageEditing','1339765XPgKXf','2frdKcC','228330BdpkbH','UploadcareImageEditEditing','276Knscrv','163339KJlztx','commands','17613dNibZY','36yAKyOV','pluginName','ImageUtils','60222SkgZbC'];_0x5c7a=function(){return _0x27961d;};return _0x5c7a();}(function(_0x2c1032,_0x4e3dda){const _0x353296=_0x5173,_0x210b61=_0x2c1032();while(!![]){try{const _0x198ecb=parseInt(_0x353296(0x1a8))/0x1*(-parseInt(_0x353296(0x199))/0x2)+-parseInt(_0x353296(0x1ae))/0x3*(-parseInt(_0x353296(0x1af))/0x4)+-parseInt(_0x353296(0x1a0))/0x5*(parseInt(_0x353296(0x19f))/0x6)+parseInt(_0x353296(0x1a7))/0x7+-parseInt(_0x353296(0x19d))/0x8*(-parseInt(_0x353296(0x1a9))/0x9)+parseInt(_0x353296(0x19c))/0xa*(parseInt(_0x353296(0x1ac))/0xb)+parseInt(_0x353296(0x1ab))/0xc*(parseInt(_0x353296(0x1a1))/0xd);if(_0x198ecb===_0x4e3dda)break;else _0x210b61['push'](_0x210b61['shift']());}catch(_0x336721){_0x210b61['push'](_0x210b61['shift']());}}}(_0x5c7a,0x23ce9));import{Plugin as _0x315764}from'ckeditor5/src/core.js';import{Notification as _0x48d99d}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x3a9f65}from'./uploadcareimageeditcommand.js';function _0x5173(_0x2d119c,_0x440dda){const _0x5c7afa=_0x5c7a();return _0x5173=function(_0x517309,_0x17fcc8){_0x517309=_0x517309-0x197;let _0x1a4cc0=_0x5c7afa[_0x517309];return _0x1a4cc0;},_0x5173(_0x2d119c,_0x440dda);}import{UploadcareImageReplaceCommand as _0x3e7761}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x389c38}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x315764{static get[_0x2db45a(0x197)](){const _0x1ee6a3=_0x2db45a;return _0x1ee6a3(0x1aa);}static get[_0x2db45a(0x19b)](){const _0x3deddb=_0x2db45a;return[_0x389c38,_0x48d99d,_0x3deddb(0x198),_0x3deddb(0x1a6)];}static get[_0x2db45a(0x1a4)](){return!0x0;}static get[_0x2db45a(0x1a2)](){return!0x0;}[_0x2db45a(0x19a)](){const _0x1818aa=_0x2db45a,{editor:_0x6ad844}=this;_0x6ad844[_0x1818aa(0x1ad)][_0x1818aa(0x19e)](_0x1818aa(0x1a5),new _0x3a9f65(_0x6ad844)),_0x6ad844[_0x1818aa(0x1ad)][_0x1818aa(0x19e)](_0x1818aa(0x1a3),new _0x3e7761(_0x6ad844));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x519b42}from'ckeditor5/src/core.js';import{ButtonView as _0x48fdc1}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x20f3ec}from'ckeditor5/src/icons.js';import{createElement as _0x4405bb}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 _0x519b42{['_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 _0x58078d=this['editor'];_0x58078d['ui']['componentFactory']['add']('uploadcareImageEdit',_0xe93170=>{const _0x432386=_0x58078d['commands']['get']('uploadcareImageEdit'),_0x3d9ebf=new _0x48fdc1(_0xe93170),t=_0xe93170['t'];return _0x3d9ebf['set']({'icon':_0x20f3ec,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3d9ebf['bind']('isEnabled')['to'](_0x432386),_0x3d9ebf['bind']('isOn')['to'](_0x432386,'isActive'),this['listenTo'](_0x3d9ebf,'execute',()=>{_0x58078d['execute']('uploadcareImageEdit'),_0x58078d['editing']['view']['focus']();}),_0x3d9ebf;}),this['_initConfig']();}['_initConfig'](){const _0x14f035=_0x4405bb(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x14f035),this['listenTo'](this['editor'],'destroy',()=>{_0x14f035['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x812741=_0x47c9;(function(_0x2474f7,_0x39d300){var _0x4194e6=_0x47c9,_0x12db0d=_0x2474f7();while(!![]){try{var _0x170416=parseInt(_0x4194e6(0x1a1))/0x1*(-parseInt(_0x4194e6(0x199))/0x2)+parseInt(_0x4194e6(0x19c))/0x3*(parseInt(_0x4194e6(0x1a2))/0x4)+parseInt(_0x4194e6(0x190))/0x5+-parseInt(_0x4194e6(0x19d))/0x6*(parseInt(_0x4194e6(0x194))/0x7)+parseInt(_0x4194e6(0x195))/0x8+parseInt(_0x4194e6(0x19b))/0x9+-parseInt(_0x4194e6(0x198))/0xa*(parseInt(_0x4194e6(0x192))/0xb);if(_0x170416===_0x39d300)break;else _0x12db0d['push'](_0x12db0d['shift']());}catch(_0x113d66){_0x12db0d['push'](_0x12db0d['shift']());}}}(_0x578e,0xb9a85));import{FocusTracker as _0x2c0b83}from'ckeditor5/src/utils.js';import{View as _0x1934c1,FocusCycler as _0x34ae07}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1934c1{[_0x812741(0x19e)];[_0x812741(0x197)];constructor(_0x2ae3b3){var _0x4859e3=_0x812741;super(_0x2ae3b3),this[_0x4859e3(0x19e)]=new _0x2c0b83(),this[_0x4859e3(0x197)]=new _0x34ae07({'focusables':this[_0x4859e3(0x196)](),'focusTracker':this[_0x4859e3(0x19e)]});}[_0x812741(0x1a0)](){var _0x14d12e=_0x812741;return{'tag':_0x14d12e(0x19a),'attributes':{'aria-hidden':_0x14d12e(0x1a3),'tabindex':'0'},'on':{'focus':this[_0x14d12e(0x19f)]['to'](()=>{var _0x3d6e95=_0x14d12e;this[_0x3d6e95(0x197)][_0x3d6e95(0x193)](_0x3d6e95(0x191));})}};}}function _0x47c9(_0x292295,_0x2bb204){var _0x578e2c=_0x578e();return _0x47c9=function(_0x47c95,_0x3e9e0a){_0x47c95=_0x47c95-0x190;var _0x45176c=_0x578e2c[_0x47c95];return _0x45176c;},_0x47c9(_0x292295,_0x2bb204);}function _0x578e(){var _0x544410=['focusTracker','bindTemplate','getFocusableElement','34zcYTVS','416308yTqBmg','true','1206410nYBwhQ','forwardCycle','22xfZstu','fire','28sgXBdb','3369376kUyHSP','createCollection','focusCycler','413960xvdxTP','46286unodrv','div','7039764bbuSnW','27YnOiNH','1126854ubuJOb'];_0x578e=function(){return _0x544410;};return _0x578e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x5e75f6,_0x2651bd){const _0x5dedaf=_0x3982,_0x41360d=_0x5e75f6();while(!![]){try{const _0x21ccc6=-parseInt(_0x5dedaf(0xe5))/0x1+parseInt(_0x5dedaf(0xc6))/0x2+parseInt(_0x5dedaf(0xe0))/0x3*(parseInt(_0x5dedaf(0xc3))/0x4)+parseInt(_0x5dedaf(0xcf))/0x5+parseInt(_0x5dedaf(0xe7))/0x6*(parseInt(_0x5dedaf(0xcc))/0x7)+-parseInt(_0x5dedaf(0xb8))/0x8*(parseInt(_0x5dedaf(0xd7))/0x9)+-parseInt(_0x5dedaf(0xcd))/0xa;if(_0x21ccc6===_0x2651bd)break;else _0x41360d['push'](_0x41360d['shift']());}catch(_0xf879c6){_0x41360d['push'](_0x41360d['shift']());}}}(_0x11b0,0xe2ffc));function _0x11b0(){const _0x3ebc6c=['hasAttribute','getAttribute','change','px)\x20100vw,\x20','228Wilxxs','image-processing','viewToDom','2441286fnYUxR','setStyle','baseURI','removeClass','x/\x20','(max-width:\x20','7HCMCRu','10633500QeOAfG','editing','4903725MCfUNt','uploadcareImageId','toViewElement','window','location','plugins','imageBlock','src','9TGCUFY','aspect-ratio','filter','mapper','isArray','join','listenTo','replace','function','32754cYdORZ','element','some','image/webp','origin','387693ujLucT','ImageUtils','5616468NEFKxo','view','imageInline','stopListening','map','load','domConverter','get','document','width','11031688WcTxzy','/-/resize/','match','height','findViewImgElement','addClass','removeStyle'];_0x11b0=function(){return _0x3ebc6c;};return _0x11b0();}import{global as _0x457833,DomEmitterMixin as _0x29bc36}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0xe0f8fb){const _0x3626dd=_0x3982,_0x3fba70=z(_0xe0f8fb);return _0x278670=>!(!_0x278670||!_0x278670['is'](_0x3626dd(0xe1),_0x3626dd(0xd5))&&!_0x278670['is'](_0x3626dd(0xe1),_0x3626dd(0xb0)))&&(!!_0x278670[_0x3626dd(0xbf)](_0x3626dd(0xd0))||!!_0x278670[_0x3626dd(0xbf)](_0x3626dd(0xd6))&&_0x3fba70(_0x278670[_0x3626dd(0xc0)](_0x3626dd(0xd6))));}export function getImageUrls(_0x3438d5,_0x51b9a6){const _0x5efa5=_0x3982,_0x2d5ea1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x5efa5(0xd9)](_0x43fcc4=>_0x43fcc4<=_0x51b9a6)[_0x5efa5(0xb2)](_0x3b675b=>_0x3438d5[_0x5efa5(0xde)](/\/$/,'')+_0x5efa5(0xb9)+_0x3b675b+_0x5efa5(0xca)+_0x3b675b+'w');return{'imageFallbackUrl':_0x3438d5,'imageSources':[{'srcset':_0x2d5ea1[_0x5efa5(0xdc)](',\x20'),'sizes':_0x5efa5(0xcb)+_0x51b9a6+_0x5efa5(0xc2)+_0x51b9a6+'px','type':_0x5efa5(0xe3)}]};}function _0x3982(_0x1e74c8,_0x20b324){const _0x11b034=_0x11b0();return _0x3982=function(_0x39823e,_0x280e9c){_0x39823e=_0x39823e-0xb0;let _0x5d1c5a=_0x11b034[_0x39823e];return _0x5d1c5a;},_0x3982(_0x1e74c8,_0x20b324);}export function getImageDimension(_0x1a9b8b,_0x21bedd,_0x380fde){const _0x31ea4a=_0x3982,_0x338c92=_0x1a9b8b[_0x31ea4a(0xba)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x338c92?parseInt(_0x338c92[0x1],0xa):_0x21bedd,'height':_0x338c92?parseInt(_0x338c92[0x2],0xa):_0x380fde};}export function showImageProcessingIndicator(_0xa64b08,_0x1131fe){const _0x13d63b=_0x3982,_0x2f2254=new(_0x29bc36())(),_0x32d19e=_0xa64b08[_0x13d63b(0xd4)][_0x13d63b(0xb5)](_0x13d63b(0xe6)),_0x532968=_0xa64b08[_0x13d63b(0xce)][_0x13d63b(0xda)][_0x13d63b(0xd1)](_0x1131fe),_0x5d3e9e=_0x32d19e[_0x13d63b(0xbc)](_0x532968),_0x5b05c5=_0xa64b08[_0x13d63b(0xce)][_0x13d63b(0xe8)][_0x13d63b(0xb4)][_0x13d63b(0xc5)](_0x5d3e9e),_0x350b11=_0x1131fe[_0x13d63b(0xc0)](_0x13d63b(0xb7)),_0x1bbda8=_0x1131fe[_0x13d63b(0xc0)](_0x13d63b(0xbb)),_0x433f9=_0x13d63b(0xc4);_0xa64b08[_0x13d63b(0xce)][_0x13d63b(0xe8)][_0x13d63b(0xc1)](_0x3c4a0f=>{const _0x162d9e=_0x13d63b;_0x3c4a0f[_0x162d9e(0xbd)](_0x433f9,_0x532968),_0x3c4a0f[_0x162d9e(0xc7)](_0x162d9e(0xd8),_0x350b11+'/'+_0x1bbda8,_0x5d3e9e);}),_0x2f2254[_0x13d63b(0xdd)](_0x5b05c5,_0x13d63b(0xb3),()=>{const _0x5ffed4=_0x13d63b;_0x2f2254[_0x5ffed4(0xb1)](_0x5b05c5,_0x5ffed4(0xb3)),_0xa64b08[_0x5ffed4(0xce)][_0x5ffed4(0xe8)][_0x5ffed4(0xc1)](_0x2ac8e9=>{const _0x43001b=_0x5ffed4;_0x2ac8e9[_0x43001b(0xc9)](_0x433f9,_0x532968),_0x2ac8e9[_0x43001b(0xbe)](_0x43001b(0xd8),_0x5d3e9e);});});}function z(_0x3dbe0e){const _0x5c17a8=_0x3982;if(Array[_0x5c17a8(0xdb)](_0x3dbe0e)){const _0x552e3c=_0x3dbe0e[_0x5c17a8(0xb2)](z);return _0x318dc8=>_0x552e3c[_0x5c17a8(0xe2)](_0x45c584=>_0x45c584(_0x318dc8));}if(_0x5c17a8(0xe4)==_0x3dbe0e){const _0x1fa2e2=_0x457833[_0x5c17a8(0xd2)][_0x5c17a8(0xd3)][_0x5c17a8(0xe4)];return _0x39941f=>new URL(_0x39941f,_0x457833[_0x5c17a8(0xb6)][_0x5c17a8(0xc8)])[_0x5c17a8(0xe4)]==_0x1fa2e2;}return _0x5c17a8(0xdf)==typeof _0x3dbe0e?_0x3dbe0e:_0x3dbe0e instanceof RegExp?_0x2b06ff=>!(!_0x2b06ff[_0x5c17a8(0xba)](_0x3dbe0e)&&!_0x2b06ff[_0x5c17a8(0xde)](/^https?:\/\//,'')[_0x5c17a8(0xba)](_0x3dbe0e)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x334c(_0x1c6415,_0x181ed5){var _0x3aaa66=_0x3aaa();return _0x334c=function(_0x334cc7,_0x134c79){_0x334cc7=_0x334cc7-0x1ce;var _0x308e32=_0x3aaa66[_0x334cc7];return _0x308e32;},_0x334c(_0x1c6415,_0x181ed5);}(function(_0x95292c,_0x3d9229){var _0x5271c0=_0x334c,_0x1674c2=_0x95292c();while(!![]){try{var _0x1a60f8=-parseInt(_0x5271c0(0x1d9))/0x1*(-parseInt(_0x5271c0(0x1d7))/0x2)+-parseInt(_0x5271c0(0x1cf))/0x3+parseInt(_0x5271c0(0x1d2))/0x4*(-parseInt(_0x5271c0(0x1d0))/0x5)+-parseInt(_0x5271c0(0x1d1))/0x6+-parseInt(_0x5271c0(0x1d3))/0x7*(-parseInt(_0x5271c0(0x1d4))/0x8)+-parseInt(_0x5271c0(0x1d8))/0x9*(-parseInt(_0x5271c0(0x1d6))/0xa)+parseInt(_0x5271c0(0x1d5))/0xb;if(_0x1a60f8===_0x3d9229)break;else _0x1674c2['push'](_0x1674c2['shift']());}catch(_0x3026bd){_0x1674c2['push'](_0x1674c2['shift']());}}}(_0x3aaa,0x7958b));import{getAncestors as _0x1755c7}from'ckeditor5/src/utils.js';function _0x3aaa(){var _0xa434dd=['includes','target','1977936meFwXd','2837245EtJfhA','1603332hWeznx','4zXhMRI','4963gdHhLE','7576dENqGR','5088941DzrjmJ','10DeIwdh','736240vxFWIE','1086516BmJdJm','2cYDWwr'];_0x3aaa=function(){return _0xa434dd;};return _0x3aaa();}export function isAncestor(_0x1c0b64,_0x2d6520){var _0x108f94=_0x334c;return _0x1755c7(_0x1c0b64[_0x108f94(0x1ce)])[_0x108f94(0x1da)](_0x2d6520);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xd4ed(_0x39b282,_0x4154eb){var _0x27a525=_0x27a5();return _0xd4ed=function(_0xd4edb5,_0x13730a){_0xd4edb5=_0xd4edb5-0x1ed;var _0x36a65b=_0x27a525[_0xd4edb5];return _0x36a65b;},_0xd4ed(_0x39b282,_0x4154eb);}var _0x5de4f4=_0xd4ed;(function(_0x3b105a,_0x150525){var _0x54cd5f=_0xd4ed,_0x179e73=_0x3b105a();while(!![]){try{var _0x29b11e=-parseInt(_0x54cd5f(0x1f9))/0x1*(parseInt(_0x54cd5f(0x1f4))/0x2)+-parseInt(_0x54cd5f(0x1f6))/0x3*(-parseInt(_0x54cd5f(0x1f3))/0x4)+-parseInt(_0x54cd5f(0x1f8))/0x5*(-parseInt(_0x54cd5f(0x1ee))/0x6)+parseInt(_0x54cd5f(0x1ef))/0x7*(parseInt(_0x54cd5f(0x1f1))/0x8)+parseInt(_0x54cd5f(0x1f0))/0x9*(-parseInt(_0x54cd5f(0x1fb))/0xa)+parseInt(_0x54cd5f(0x1f5))/0xb+-parseInt(_0x54cd5f(0x1f2))/0xc*(parseInt(_0x54cd5f(0x1fa))/0xd);if(_0x29b11e===_0x150525)break;else _0x179e73['push'](_0x179e73['shift']());}catch(_0x4e0c4c){_0x179e73['push'](_0x179e73['shift']());}}}(_0x27a5,0xb4a1d));import{uploadFile as _0x3e5bf8,info as _0x4b5926}from'@uploadcare/upload-client';export class UploadUtils{static[_0x5de4f4(0x1f7)]({file:_0x2b8786,..._0x442f34}){return _0x3e5bf8(_0x2b8786,_0x442f34);}static[_0x5de4f4(0x1ed)](_0x15e90d,_0x23ba69){return _0x4b5926(_0x15e90d,_0x23ba69);}}function _0x27a5(){var _0x3f86ac=['8WRuOCk','24XbtYRZ','4sXaSCe','6inOPQc','9202006gmEbUc','3648111qUqPve','upload','1177840oWiWex','210228TOeDJg','14797627TbFkYF','10uWMCCz','getInfo','24VXOzFD','5523119nnceZp','1230849neOEat'];_0x27a5=function(){return _0x3f86ac;};return _0x27a5();}
|