@ckeditor/ckeditor5-uploadcare 47.7.0-alpha.2 → 47.7.0-alpha.3
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 _0x4356af,View as _0x21766f}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x21766f{constructor(_0x167c2d){super(_0x167c2d);const t=_0x167c2d['t'],_0x1f993d=this['bindTemplate'],_0x50dca2=new _0x4356af();_0x50dca2['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':[_0x50dca2,{'text':_0x1f993d['to']('imageUploadProgress',_0x234ea4=>t('Loading\x20image...')+'\x20('+(_0x234ea4||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 _0x398b82=_0x11b1;(function(_0x19b860,_0x178d9b){const _0x500fb5=_0x11b1,_0x2c4087=_0x19b860();while(!![]){try{const _0x11e4ba=parseInt(_0x500fb5(0x1d3))/0x1*(-parseInt(_0x500fb5(0x1ca))/0x2)+parseInt(_0x500fb5(0x1ce))/0x3+-parseInt(_0x500fb5(0x1e5))/0x4*(parseInt(_0x500fb5(0x1e9))/0x5)+-parseInt(_0x500fb5(0x1c3))/0x6+parseInt(_0x500fb5(0x1e7))/0x7+-parseInt(_0x500fb5(0x1d5))/0x8*(parseInt(_0x500fb5(0x1d1))/0x9)+parseInt(_0x500fb5(0x1c2))/0xa*(-parseInt(_0x500fb5(0x1ec))/0xb);if(_0x11e4ba===_0x178d9b)break;else _0x2c4087['push'](_0x2c4087['shift']());}catch(_0x39194c){_0x2c4087['push'](_0x2c4087['shift']());}}}(_0x5ca0,0xefd87));function _0x11b1(_0x560d25,_0x4ab21f){const _0x5ca0e2=_0x5ca0();return _0x11b1=function(_0x11b15f,_0x38dd6a){_0x11b15f=_0x11b15f-0x1be;let _0x4b3850=_0x5ca0e2[_0x11b15f];return _0x4b3850;},_0x11b1(_0x560d25,_0x4ab21f);}import{View as _0xa22452}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x40b7a0}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x25f9bb}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x47a37b}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x5ec8e7}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x5ca0(){const _0x1e6bea=['cancel','_editingView','uploading','length','nodeName','setTemplate','change:status','_waitForImageEditorComponent','_setView','310hBIJdW','4871214oZDlZo','querySelector','_focusableView','target','focus','status','uc-cloud-image-editor','2PLBrlo','disconnect','_addUploadcareImageEditorListeners','cdnUrl','715383MMBkYS','getFocusableElement','add','621PoyGmS','toLowerCase','85307dhlCZV','detail','12168aUnfAW','ck-reset_all-excluded','addedNodes','retry','observe','set','ck-uploadcare-form','element','error','createCollection','apply','_loadingView','_errorView','clear','ready','addMany','4qeZnyF','_items','13295877lStTTu','div','473905bVQUnc','_addErrorViewListeners','addEventListener','20779Zvoldf','render','once','fire','filter'];_0x5ca0=function(){return _0x1e6bea;};return _0x5ca0();}export class UploadcareImageEditFormView extends _0x5ec8e7{[_0x398b82(0x1e6)];[_0x398b82(0x1e0)];[_0x398b82(0x1e1)];[_0x398b82(0x1f2)];[_0x398b82(0x1c5)];constructor(_0x29a47,_0x1057dc,_0x206189){const _0x772d1b=_0x398b82;super(_0x29a47),this[_0x772d1b(0x1e6)]=this[_0x772d1b(0x1de)](),this[_0x772d1b(0x1e0)]=new _0x40b7a0(_0x29a47),this[_0x772d1b(0x1e1)]=new _0x25f9bb(_0x29a47),this[_0x772d1b(0x1f2)]=new _0x47a37b(_0x29a47,_0x206189),this[_0x772d1b(0x1c5)]=new _0xa22452(_0x29a47),this[_0x772d1b(0x1c5)][_0x772d1b(0x1be)](this[_0x772d1b(0x1cf)]()),this[_0x772d1b(0x1da)](_0x772d1b(0x1c8),_0x1057dc),this[_0x772d1b(0x1be)]({'tag':_0x772d1b(0x1e8),'attributes':{'class':['ck',_0x772d1b(0x1d6),_0x772d1b(0x1db)],'tabindex':'-1'},'children':this[_0x772d1b(0x1e6)]}),this[_0x772d1b(0x1c1)](),this[_0x772d1b(0x1ee)](_0x772d1b(0x1ed),()=>{const _0x26c805=_0x772d1b;this[_0x26c805(0x1c0)](this[_0x26c805(0x1dc)],_0x2a345e=>{const _0x302c75=_0x26c805;this[_0x302c75(0x1cc)](_0x2a345e);});}),this['on'](_0x772d1b(0x1bf),()=>{const _0xbd2cb0=_0x772d1b;this[_0xbd2cb0(0x1c1)]();}),this[_0x772d1b(0x1ea)]();}[_0x398b82(0x1c7)](){const _0x51f08e=_0x398b82;this[_0x51f08e(0x1dc)][_0x51f08e(0x1c7)]();}[_0x398b82(0x1c1)](){const _0x5b1bd5=_0x398b82;switch(this[_0x5b1bd5(0x1e6)][_0x5b1bd5(0x1e2)](),this[_0x5b1bd5(0x1c8)]){case _0x5b1bd5(0x1f3):this[_0x5b1bd5(0x1e6)][_0x5b1bd5(0x1d0)](this[_0x5b1bd5(0x1e0)]);break;case _0x5b1bd5(0x1dd):this[_0x5b1bd5(0x1e6)][_0x5b1bd5(0x1d0)](this[_0x5b1bd5(0x1e1)]);break;case _0x5b1bd5(0x1e3):this[_0x5b1bd5(0x1e6)][_0x5b1bd5(0x1e4)]([this[_0x5b1bd5(0x1f2)],this[_0x5b1bd5(0x1c5)]]);}}[_0x398b82(0x1c0)](_0x51a0fc,_0x836b5b){const _0x1c566f=_0x398b82,_0x1954de=_0x1c566f(0x1c9),_0x1acfdb=_0x51a0fc[_0x1c566f(0x1c4)](_0x1954de);if(_0x1acfdb)return _0x836b5b(_0x1acfdb);const _0x516ef7=new MutationObserver(_0x5e8ce9=>{const _0x14b57a=_0x1c566f,_0x303d0f=_0x5e8ce9[_0x14b57a(0x1f0)](_0x5afadd=>_0x5afadd[_0x14b57a(0x1c6)]===_0x51a0fc&&_0x5afadd[_0x14b57a(0x1d7)][_0x14b57a(0x1f4)]>0x0&&_0x5afadd[_0x14b57a(0x1d7)][0x0][_0x14b57a(0x1f5)][_0x14b57a(0x1d2)]()===_0x1954de);_0x303d0f[_0x14b57a(0x1f4)]&&(_0x516ef7[_0x14b57a(0x1cb)](),_0x836b5b(_0x303d0f[0x0][_0x14b57a(0x1d7)][0x0]));});_0x516ef7[_0x1c566f(0x1d9)](_0x51a0fc,{'childList':!0x0,'subtree':!0x0});}[_0x398b82(0x1cc)](_0x306e67){const _0x1e1b72=_0x398b82;_0x306e67[_0x1e1b72(0x1eb)](_0x1e1b72(0x1df),_0x3e76c9=>{const _0x24df7e=_0x1e1b72;this[_0x24df7e(0x1ef)](_0x24df7e(0x1df),{'imageSrc':_0x3e76c9[_0x24df7e(0x1d4)][_0x24df7e(0x1cd)]});}),_0x306e67[_0x1e1b72(0x1eb)](_0x1e1b72(0x1f1),()=>{const _0x299075=_0x1e1b72;this[_0x299075(0x1ef)](_0x299075(0x1f1));});}[_0x398b82(0x1ea)](){const _0x4f5025=_0x398b82;this[_0x4f5025(0x1e1)]['on'](_0x4f5025(0x1d8),()=>{const _0x1027b1=_0x4f5025;this[_0x1027b1(0x1ef)](_0x1027b1(0x1d8));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x22dd(_0x57952f,_0x4f4fc7){const _0x59d4e8=_0x59d4();return _0x22dd=function(_0x22dd8c,_0x504bdc){_0x22dd8c=_0x22dd8c-0x192;let _0xacc21b=_0x59d4e8[_0x22dd8c];return _0xacc21b;},_0x22dd(_0x57952f,_0x4f4fc7);}const _0x162d94=_0x22dd;(function(_0x4cae7e,_0xfcab61){const _0x4f4834=_0x22dd,_0xb5a33c=_0x4cae7e();while(!![]){try{const _0x106cb9=-parseInt(_0x4f4834(0x1a3))/0x1+-parseInt(_0x4f4834(0x1a7))/0x2+parseInt(_0x4f4834(0x192))/0x3+parseInt(_0x4f4834(0x1a0))/0x4+parseInt(_0x4f4834(0x1a2))/0x5+-parseInt(_0x4f4834(0x193))/0x6+parseInt(_0x4f4834(0x1ab))/0x7;if(_0x106cb9===_0xfcab61)break;else _0xb5a33c['push'](_0xb5a33c['shift']());}catch(_0x52cc96){_0xb5a33c['push'](_0xb5a33c['shift']());}}}(_0x59d4,0xaa28c));import{Command as _0x3f7a5a}from'ckeditor5/src/core.js';import{Dialog as _0x13e64a}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x4439aa}from'./ui/uploadcareimageeditcontroller.js';function _0x59d4(){const _0x200f16=['editor','imageInline','_isEditable','4969656dCSdrv','model','494675McfNWn','809381OGCaSK','refresh','execute','bind','1805908uyfZcJ','get','unbind','set','4587737YNGbNo','uploadcare.allowExternalImagesEditing','isEnabled','imageEditController','3548544NDiETg','4621686AuyewA','element','requires','selection','config','imageBlock','plugins','document','getSelectedElement','isActive'];_0x59d4=function(){return _0x200f16;};return _0x59d4();}import{createEditabilityChecker as _0x2de712}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3f7a5a{[_0x162d94(0x1ae)];static get[_0x162d94(0x195)](){return[_0x13e64a];}[_0x162d94(0x19f)];constructor(_0x516624){const _0x487d03=_0x162d94;super(_0x516624),this[_0x487d03(0x1ae)]=void 0x0,this[_0x487d03(0x19f)]=_0x2de712(_0x516624[_0x487d03(0x197)][_0x487d03(0x1a8)](_0x487d03(0x1ac))||[]),this[_0x487d03(0x1aa)]({'isActive':!0x1});}[_0x162d94(0x1a4)](){const _0x513715=_0x162d94,_0x7d0d2b=this[_0x513715(0x19d)][_0x513715(0x1a1)][_0x513715(0x19a)][_0x513715(0x196)][_0x513715(0x19b)]();this[_0x513715(0x1ad)]=this[_0x513715(0x19f)](_0x7d0d2b);}[_0x162d94(0x1a5)](){const _0x98d63a=_0x162d94;this[_0x98d63a(0x1ae)]&&(this[_0x98d63a(0x1a9)](_0x98d63a(0x19c)),this[_0x98d63a(0x1ae)]=void 0x0);const _0x3565f1=this[_0x98d63a(0x19d)][_0x98d63a(0x1a1)][_0x98d63a(0x19a)][_0x98d63a(0x196)][_0x98d63a(0x19b)]();_0x3565f1&&(_0x3565f1['is'](_0x98d63a(0x194),_0x98d63a(0x198))||_0x3565f1['is'](_0x98d63a(0x194),_0x98d63a(0x19e)))&&(this[_0x98d63a(0x1ae)]=new _0x4439aa(this[_0x98d63a(0x19d)],this[_0x98d63a(0x19d)][_0x98d63a(0x199)][_0x98d63a(0x1a8)](_0x13e64a),_0x3565f1),this[_0x98d63a(0x1a6)](_0x98d63a(0x19c))['to'](this[_0x98d63a(0x1ae)],_0x98d63a(0x19c)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d24a2=_0x2236;(function(_0x20ed3a,_0x16aea8){const _0x1a4940=_0x2236,_0x5140c2=_0x20ed3a();while(!![]){try{const _0x4b9acc=parseInt(_0x1a4940(0x1ee))/0x1*(-parseInt(_0x1a4940(0x1e4))/0x2)+parseInt(_0x1a4940(0x1fa))/0x3*(-parseInt(_0x1a4940(0x1f8))/0x4)+-parseInt(_0x1a4940(0x1e8))/0x5+parseInt(_0x1a4940(0x1f9))/0x6+-parseInt(_0x1a4940(0x1f6))/0x7*(parseInt(_0x1a4940(0x1ed))/0x8)+-parseInt(_0x1a4940(0x1e5))/0x9*(-parseInt(_0x1a4940(0x1ec))/0xa)+-parseInt(_0x1a4940(0x1e9))/0xb*(-parseInt(_0x1a4940(0x1f3))/0xc);if(_0x4b9acc===_0x16aea8)break;else _0x5140c2['push'](_0x5140c2['shift']());}catch(_0x42400e){_0x5140c2['push'](_0x5140c2['shift']());}}}(_0x3ce4,0x47cdc));import{Plugin as _0x574bf0}from'ckeditor5/src/core.js';function _0x2236(_0x37e806,_0x2e070b){const _0x3ce464=_0x3ce4();return _0x2236=function(_0x223652,_0x276dfa){_0x223652=_0x223652-0x1e3;let _0x229feb=_0x3ce464[_0x223652];return _0x229feb;},_0x2236(_0x37e806,_0x2e070b);}import{Notification as _0xd1d026}from'ckeditor5/src/ui.js';function _0x3ce4(){const _0x4b9d14=['1808848IgqZdb','4HKJbyr','uploadcareImageReplace','isOfficialPlugin','commands','pluginName','91548rfNWHt','add','isPremiumPlugin','14OYmkpI','init','562276hyinqT','2937870fDAAoc','6lTXNXI','UploadcareImageEditEditing','217632XTSzXh','2474631UBPjAu','requires','ImageUtils','285765TilDhy','1089izuFXn','ImageEditing','uploadcareImageEdit','10EbnfPG'];_0x3ce4=function(){return _0x4b9d14;};return _0x3ce4();}import{UploadcareImageEditCommand as _0xc63c88}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x4217a7}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x3365e8}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x574bf0{static get[_0x4d24a2(0x1f2)](){const _0x2ea8b4=_0x4d24a2;return _0x2ea8b4(0x1e3);}static get[_0x4d24a2(0x1e6)](){const _0xf2f4df=_0x4d24a2;return[_0x3365e8,_0xd1d026,_0xf2f4df(0x1e7),_0xf2f4df(0x1ea)];}static get[_0x4d24a2(0x1f0)](){return!0x0;}static get[_0x4d24a2(0x1f5)](){return!0x0;}[_0x4d24a2(0x1f7)](){const _0x55367c=_0x4d24a2,{editor:_0x54a015}=this;_0x54a015[_0x55367c(0x1f1)][_0x55367c(0x1f4)](_0x55367c(0x1eb),new _0xc63c88(_0x54a015)),_0x54a015[_0x55367c(0x1f1)][_0x55367c(0x1f4)](_0x55367c(0x1ef),new _0x4217a7(_0x54a015));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5225d6}from'ckeditor5/src/core.js';import{ButtonView as _0x212d48}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x596042}from'ckeditor5/src/icons.js';import{createElement as _0x59c5d2}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 _0x5225d6{['_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 _0x14d69b=this['editor'];_0x14d69b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x29b55e=>{const _0x219090=_0x14d69b['commands']['get']('uploadcareImageEdit'),_0x20ff3a=new _0x212d48(_0x29b55e),t=_0x29b55e['t'];return _0x20ff3a['set']({'icon':_0x596042,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x20ff3a['bind']('isEnabled')['to'](_0x219090),_0x20ff3a['bind']('isOn')['to'](_0x219090,'isActive'),this['listenTo'](_0x20ff3a,'execute',()=>{_0x14d69b['execute']('uploadcareImageEdit'),_0x14d69b['editing']['view']['focus']();}),_0x20ff3a;}),this['_initConfig']();}['_initConfig'](){const _0x4697ef=_0x59c5d2(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4697ef),this['listenTo'](this['editor'],'destroy',()=>{_0x4697ef['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2f8398=_0xfc2f;(function(_0x21710a,_0x5a295e){var _0x34343e=_0xfc2f,_0x22f384=_0x21710a();while(!![]){try{var _0x81c1ed=-parseInt(_0x34343e(0xbe))/0x1+-parseInt(_0x34343e(0xc7))/0x2*(-parseInt(_0x34343e(0xbd))/0x3)+-parseInt(_0x34343e(0xc8))/0x4*(parseInt(_0x34343e(0xc9))/0x5)+-parseInt(_0x34343e(0xc2))/0x6*(-parseInt(_0x34343e(0xcc))/0x7)+-parseInt(_0x34343e(0xbf))/0x8*(-parseInt(_0x34343e(0xbc))/0x9)+parseInt(_0x34343e(0xc4))/0xa+-parseInt(_0x34343e(0xc0))/0xb;if(_0x81c1ed===_0x5a295e)break;else _0x22f384['push'](_0x22f384['shift']());}catch(_0x4349fe){_0x22f384['push'](_0x22f384['shift']());}}}(_0x5de4,0x9bec4));import{FocusTracker as _0xe0cf5a}from'ckeditor5/src/utils.js';function _0x5de4(){var _0x47ca26=['focusCycler','true','14gWUcHX','getFocusableElement','bindTemplate','div','66420jENzBB','1202697YunhPt','901798ZubQAH','544uHlQlU','8543062EvZOAQ','createCollection','197058fYMdqo','focusTracker','10673430cXmOJZ','fire','forwardCycle','6cWnatR','1732zWRWwg','6010GpfnTh'];_0x5de4=function(){return _0x47ca26;};return _0x5de4();}import{View as _0x2b562e,FocusCycler as _0xfebfa5}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0xfc2f(_0x51326a,_0x97366e){var _0x5de496=_0x5de4();return _0xfc2f=function(_0xfc2f43,_0x14dbcc){_0xfc2f43=_0xfc2f43-0xba;var _0x2da286=_0x5de496[_0xfc2f43];return _0x2da286;},_0xfc2f(_0x51326a,_0x97366e);}export class DialogFocusManagerView extends _0x2b562e{[_0x2f8398(0xc3)];[_0x2f8398(0xca)];constructor(_0x37c35e){var _0x16df2a=_0x2f8398;super(_0x37c35e),this[_0x16df2a(0xc3)]=new _0xe0cf5a(),this[_0x16df2a(0xca)]=new _0xfebfa5({'focusables':this[_0x16df2a(0xc1)](),'focusTracker':this[_0x16df2a(0xc3)]});}[_0x2f8398(0xcd)](){var _0x9270ce=_0x2f8398;return{'tag':_0x9270ce(0xbb),'attributes':{'aria-hidden':_0x9270ce(0xcb),'tabindex':'0'},'on':{'focus':this[_0x9270ce(0xba)]['to'](()=>{var _0x2ed80b=_0x9270ce;this[_0x2ed80b(0xca)][_0x2ed80b(0xc5)](_0x2ed80b(0xc6));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3eee1a,_0x4953dc){const _0x5af624=_0x2089,_0x2accbe=_0x3eee1a();while(!![]){try{const _0x58ca1b=parseInt(_0x5af624(0xb1))/0x1*(parseInt(_0x5af624(0xad))/0x2)+parseInt(_0x5af624(0x99))/0x3*(-parseInt(_0x5af624(0xb4))/0x4)+-parseInt(_0x5af624(0xb8))/0x5*(parseInt(_0x5af624(0xc3))/0x6)+parseInt(_0x5af624(0xa3))/0x7*(parseInt(_0x5af624(0xa1))/0x8)+-parseInt(_0x5af624(0xac))/0x9+parseInt(_0x5af624(0xbd))/0xa+parseInt(_0x5af624(0xb7))/0xb*(parseInt(_0x5af624(0xc7))/0xc);if(_0x58ca1b===_0x4953dc)break;else _0x2accbe['push'](_0x2accbe['shift']());}catch(_0x2dd283){_0x2accbe['push'](_0x2accbe['shift']());}}}(_0x25e3,0x37100));import{global as _0x3ace2b,DomEmitterMixin as _0x2b2eb5}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x32c4d2){const _0xda1ca=_0x2089,_0x3ad845=G(_0x32c4d2);return _0x18772d=>!(!_0x18772d||!_0x18772d['is'](_0xda1ca(0x94),_0xda1ca(0xb5))&&!_0x18772d['is'](_0xda1ca(0x94),_0xda1ca(0x9b)))&&(!!_0x18772d[_0xda1ca(0x9f)](_0xda1ca(0x96))||!!_0x18772d[_0xda1ca(0x9f)](_0xda1ca(0xb3))&&_0x3ad845(_0x18772d[_0xda1ca(0xaf)](_0xda1ca(0xb3))));}function _0x2089(_0x2d5bae,_0x6a14da){const _0x25e312=_0x25e3();return _0x2089=function(_0x2089c3,_0x13f69d){_0x2089c3=_0x2089c3-0x93;let _0x1b3e24=_0x25e312[_0x2089c3];return _0x1b3e24;},_0x2089(_0x2d5bae,_0x6a14da);}export function getImageUrls(_0x1c69d8,_0x241d67){const _0x2a1494=_0x2089,_0x1ec9fb=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x2a1494(0xa2)](_0x1f7cae=>_0x1f7cae<=_0x241d67)[_0x2a1494(0xab)](_0x28c4dc=>_0x1c69d8[_0x2a1494(0xc6)](/\/$/,'')+_0x2a1494(0xbb)+_0x28c4dc+_0x2a1494(0x9c)+_0x28c4dc+'w');return{'imageFallbackUrl':_0x1c69d8,'imageSources':[{'srcset':_0x1ec9fb[_0x2a1494(0xc4)](',\x20'),'sizes':_0x2a1494(0xae)+_0x241d67+_0x2a1494(0xb0)+_0x241d67+'px','type':_0x2a1494(0xc1)}]};}export function getImageDimension(_0x536139,_0x162209,_0x294b28){const _0x2ee58a=_0x2089,_0x59f24d=_0x536139[_0x2ee58a(0x98)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x59f24d?parseInt(_0x59f24d[0x1],0xa):_0x162209,'height':_0x59f24d?parseInt(_0x59f24d[0x2],0xa):_0x294b28};}function _0x25e3(){const _0x33c411=['68jckUFi','(max-width:\x20','getAttribute','px)\x20100vw,\x20','3833JkULbR','load','src','594856kxcMvn','imageBlock','toViewElement','11CkIJjF','2195CUUCTw','origin','baseURI','/-/resize/','addClass','1029950qXQYxq','aspect-ratio','plugins','document','image/webp','findViewImgElement','3954eUhyhT','join','removeStyle','replace','9488148nHachC','function','domConverter','mapper','get','isArray','ImageUtils','editing','element','setStyle','uploadcareImageId','change','match','9NuEkkr','removeClass','imageInline','x/\x20','image-processing','window','hasAttribute','height','1416nTzNTg','filter','15169OrhSGb','some','stopListening','width','view','viewToDom','listenTo','location','map','4019184FaTmqn'];_0x25e3=function(){return _0x33c411;};return _0x25e3();}export function showImageProcessingIndicator(_0x5a3686,_0x16c46d){const _0x457f8c=_0x2089,_0x5126a4=new(_0x2b2eb5())(),_0x216464=_0x5a3686[_0x457f8c(0xbf)][_0x457f8c(0xcb)](_0x457f8c(0xcd)),_0x4f56f6=_0x5a3686[_0x457f8c(0x93)][_0x457f8c(0xca)][_0x457f8c(0xb6)](_0x16c46d),_0x54e980=_0x216464[_0x457f8c(0xc2)](_0x4f56f6),_0x136e77=_0x5a3686[_0x457f8c(0x93)][_0x457f8c(0xa7)][_0x457f8c(0xc9)][_0x457f8c(0xa8)](_0x54e980),_0x3c33f5=_0x16c46d[_0x457f8c(0xaf)](_0x457f8c(0xa6)),_0x3ad060=_0x16c46d[_0x457f8c(0xaf)](_0x457f8c(0xa0)),_0x365027=_0x457f8c(0x9d);_0x5a3686[_0x457f8c(0x93)][_0x457f8c(0xa7)][_0x457f8c(0x97)](_0x29b908=>{const _0x289316=_0x457f8c;_0x29b908[_0x289316(0xbc)](_0x365027,_0x4f56f6),_0x29b908[_0x289316(0x95)](_0x289316(0xbe),_0x3c33f5+'/'+_0x3ad060,_0x54e980);}),_0x5126a4[_0x457f8c(0xa9)](_0x136e77,_0x457f8c(0xb2),()=>{const _0x391928=_0x457f8c;_0x5126a4[_0x391928(0xa5)](_0x136e77,_0x391928(0xb2)),_0x5a3686[_0x391928(0x93)][_0x391928(0xa7)][_0x391928(0x97)](_0x2b640b=>{const _0x39ecae=_0x391928;_0x2b640b[_0x39ecae(0x9a)](_0x365027,_0x4f56f6),_0x2b640b[_0x39ecae(0xc5)](_0x39ecae(0xbe),_0x54e980);});});}function G(_0x2479dd){const _0x2512c6=_0x2089;if(Array[_0x2512c6(0xcc)](_0x2479dd)){const _0x3f2b74=_0x2479dd[_0x2512c6(0xab)](G);return _0x1c3865=>_0x3f2b74[_0x2512c6(0xa4)](_0xfaf307=>_0xfaf307(_0x1c3865));}if(_0x2512c6(0xb9)==_0x2479dd){const _0x31ef1d=_0x3ace2b[_0x2512c6(0x9e)][_0x2512c6(0xaa)][_0x2512c6(0xb9)];return _0x53f2ce=>new URL(_0x53f2ce,_0x3ace2b[_0x2512c6(0xc0)][_0x2512c6(0xba)])[_0x2512c6(0xb9)]==_0x31ef1d;}return _0x2512c6(0xc8)==typeof _0x2479dd?_0x2479dd:_0x2479dd instanceof RegExp?_0x487d08=>!(!_0x487d08[_0x2512c6(0x98)](_0x2479dd)&&!_0x487d08[_0x2512c6(0xc6)](/^https?:\/\//,'')[_0x2512c6(0x98)](_0x2479dd)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2964(){var _0x314c15=['1978940VsaDxW','target','21pyLsBB','1101751sTIXGM','278vksRYb','10801544DKgfwI','includes','31262454sKfJkn','8011ENklKD','1027868ZlCKzn','9165234ZmIKbV'];_0x2964=function(){return _0x314c15;};return _0x2964();}(function(_0x346b82,_0x479251){var _0x864145=_0x3572,_0x1647e5=_0x346b82();while(!![]){try{var _0x431ae1=parseInt(_0x864145(0x122))/0x1*(-parseInt(_0x864145(0x11e))/0x2)+parseInt(_0x864145(0x11c))/0x3*(-parseInt(_0x864145(0x123))/0x4)+parseInt(_0x864145(0x11a))/0x5+-parseInt(_0x864145(0x124))/0x6+parseInt(_0x864145(0x11d))/0x7+parseInt(_0x864145(0x11f))/0x8+parseInt(_0x864145(0x121))/0x9;if(_0x431ae1===_0x479251)break;else _0x1647e5['push'](_0x1647e5['shift']());}catch(_0x21a380){_0x1647e5['push'](_0x1647e5['shift']());}}}(_0x2964,0xe4cb7));function _0x3572(_0x2c5810,_0x362d13){var _0x2964ce=_0x2964();return _0x3572=function(_0x3572ac,_0x5086b1){_0x3572ac=_0x3572ac-0x11a;var _0x231475=_0x2964ce[_0x3572ac];return _0x231475;},_0x3572(_0x2c5810,_0x362d13);}import{getAncestors as _0x3196ce}from'ckeditor5/src/utils.js';export function isAncestor(_0xd9c6ea,_0x303e34){var _0x41378a=_0x3572;return _0x3196ce(_0xd9c6ea[_0x41378a(0x11b)])[_0x41378a(0x120)](_0x303e34);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x32e0f0=_0x3297;(function(_0x12e20f,_0x598e07){var _0x1eae19=_0x3297,_0x5ce3d3=_0x12e20f();while(!![]){try{var _0x4d6989=-parseInt(_0x1eae19(0x185))/0x1+parseInt(_0x1eae19(0x184))/0x2+parseInt(_0x1eae19(0x181))/0x3+parseInt(_0x1eae19(0x183))/0x4*(-parseInt(_0x1eae19(0x180))/0x5)+-parseInt(_0x1eae19(0x187))/0x6+-parseInt(_0x1eae19(0x17e))/0x7+parseInt(_0x1eae19(0x186))/0x8*(parseInt(_0x1eae19(0x17f))/0x9);if(_0x4d6989===_0x598e07)break;else _0x5ce3d3['push'](_0x5ce3d3['shift']());}catch(_0x2de567){_0x5ce3d3['push'](_0x5ce3d3['shift']());}}}(_0x2b8d,0x67cef));import{uploadFile as _0x1ae499,info as _0xe7434d}from'@uploadcare/upload-client';export class UploadUtils{static[_0x32e0f0(0x17d)]({file:_0x57b35e,..._0x13a7fe}){return _0x1ae499(_0x57b35e,_0x13a7fe);}static[_0x32e0f0(0x182)](_0x169a3e,_0x3a602a){return _0xe7434d(_0x169a3e,_0x3a602a);}}function _0x3297(_0x5719aa,_0x2a4b61){var _0x2b8d8d=_0x2b8d();return _0x3297=function(_0x3297a4,_0x4456ad){_0x3297a4=_0x3297a4-0x17d;var _0x1295b5=_0x2b8d8d[_0x3297a4];return _0x1295b5;},_0x3297(_0x5719aa,_0x2a4b61);}function _0x2b8d(){var _0x1a6e2c=['512140iYmLcd','516297mXdUdD','getInfo','8iufNlt','743592Ohljpz','662107wUGigS','17251064feMOch','4286598iSYGNW','upload','4855781BCohco','9RTuWus'];_0x2b8d=function(){return _0x1a6e2c;};return _0x2b8d();}
|