@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260103.0 → 0.0.0-nightly-next-20260104.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 _0x5cc079,View as _0x156c5e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x156c5e{constructor(_0x5d24af){super(_0x5d24af);const t=_0x5d24af['t'],_0x484c3d=this['bindTemplate'],_0x1d71a1=new _0x5cc079();_0x1d71a1['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':[_0x1d71a1,{'text':_0x484c3d['to']('imageUploadProgress',_0x1eda28=>t('Loading\x20image...')+'\x20('+(_0x1eda28||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 _0x5c7fc8=_0x4582;function _0x4582(_0x4283a6,_0x3c2772){const _0x5f2b75=_0x5f2b();return _0x4582=function(_0x45822b,_0x9e064d){_0x45822b=_0x45822b-0xb2;let _0x3d3642=_0x5f2b75[_0x45822b];return _0x3d3642;},_0x4582(_0x4283a6,_0x3c2772);}(function(_0x3bc2cc,_0x5659f3){const _0x3b2a37=_0x4582,_0x59ae03=_0x3bc2cc();while(!![]){try{const _0x490793=-parseInt(_0x3b2a37(0xb3))/0x1*(-parseInt(_0x3b2a37(0xde))/0x2)+parseInt(_0x3b2a37(0xb8))/0x3+-parseInt(_0x3b2a37(0xcc))/0x4*(parseInt(_0x3b2a37(0xbe))/0x5)+parseInt(_0x3b2a37(0xb4))/0x6+parseInt(_0x3b2a37(0xc4))/0x7+parseInt(_0x3b2a37(0xdf))/0x8+-parseInt(_0x3b2a37(0xdb))/0x9;if(_0x490793===_0x5659f3)break;else _0x59ae03['push'](_0x59ae03['shift']());}catch(_0x203ddb){_0x59ae03['push'](_0x59ae03['shift']());}}}(_0x5f2b,0xcd697));import{View as _0x4ad4e5}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x35dc36}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x1e42b4}from'./uploadcareimageeditformerrorview.js';function _0x5f2b(){const _0x275ad2=['createCollection','querySelector','length','retry','fire','detail','clear','ck-uploadcare-form','12033144fMihMq','addMany','once','206782iJNSsd','5466968kcmhZH','ck-reset_all-excluded','toLowerCase','target','_errorView','add','_addUploadcareImageEditorListeners','_loadingView','disconnect','change:status','2wEdmIw','114282WYCDdx','element','uploading','filter','1931307AvGgYo','_items','render','_focusableView','nodeName','_addErrorViewListeners','20LlbWst','cdnUrl','focus','getFocusableElement','addEventListener','observe','6134450SMoujT','ready','apply','div','set','_waitForImageEditorComponent','cancel','error','250936PuDFWq','setTemplate','uc-cloud-image-editor','status','addedNodes','_editingView','_setView'];_0x5f2b=function(){return _0x275ad2;};return _0x5f2b();}import{UploadcareImageEditFormEditingView as _0x27b0f1}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x207b70}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x207b70{[_0x5c7fc8(0xb9)];[_0x5c7fc8(0xe6)];[_0x5c7fc8(0xe3)];[_0x5c7fc8(0xd1)];[_0x5c7fc8(0xbb)];constructor(_0x4ee652,_0x1a6dc7,_0x3e9434){const _0x1257c7=_0x5c7fc8;super(_0x4ee652),this[_0x1257c7(0xb9)]=this[_0x1257c7(0xd3)](),this[_0x1257c7(0xe6)]=new _0x35dc36(_0x4ee652),this[_0x1257c7(0xe3)]=new _0x1e42b4(_0x4ee652),this[_0x1257c7(0xd1)]=new _0x27b0f1(_0x4ee652,_0x3e9434),this[_0x1257c7(0xbb)]=new _0x4ad4e5(_0x4ee652),this[_0x1257c7(0xbb)][_0x1257c7(0xcd)](this[_0x1257c7(0xc1)]()),this[_0x1257c7(0xc8)](_0x1257c7(0xcf),_0x1a6dc7),this[_0x1257c7(0xcd)]({'tag':_0x1257c7(0xc7),'attributes':{'class':['ck',_0x1257c7(0xe0),_0x1257c7(0xda)],'tabindex':'-1'},'children':this[_0x1257c7(0xb9)]}),this[_0x1257c7(0xd2)](),this[_0x1257c7(0xdd)](_0x1257c7(0xba),()=>{const _0xbf7ac2=_0x1257c7;this[_0xbf7ac2(0xc9)](this[_0xbf7ac2(0xb5)],_0x1fbcbe=>{const _0xdeb763=_0xbf7ac2;this[_0xdeb763(0xe5)](_0x1fbcbe);});}),this['on'](_0x1257c7(0xb2),()=>{const _0x10c046=_0x1257c7;this[_0x10c046(0xd2)]();}),this[_0x1257c7(0xbd)]();}[_0x5c7fc8(0xc0)](){const _0x10592b=_0x5c7fc8;this[_0x10592b(0xb5)][_0x10592b(0xc0)]();}[_0x5c7fc8(0xd2)](){const _0x1a7934=_0x5c7fc8;switch(this[_0x1a7934(0xb9)][_0x1a7934(0xd9)](),this[_0x1a7934(0xcf)]){case _0x1a7934(0xb6):this[_0x1a7934(0xb9)][_0x1a7934(0xe4)](this[_0x1a7934(0xe6)]);break;case _0x1a7934(0xcb):this[_0x1a7934(0xb9)][_0x1a7934(0xe4)](this[_0x1a7934(0xe3)]);break;case _0x1a7934(0xc5):this[_0x1a7934(0xb9)][_0x1a7934(0xdc)]([this[_0x1a7934(0xd1)],this[_0x1a7934(0xbb)]]);}}[_0x5c7fc8(0xc9)](_0xb651dc,_0x31eb96){const _0x3bd257=_0x5c7fc8,_0x1c96b6=_0x3bd257(0xce),_0x2ceab4=_0xb651dc[_0x3bd257(0xd4)](_0x1c96b6);if(_0x2ceab4)return _0x31eb96(_0x2ceab4);const _0x433ec0=new MutationObserver(_0x1742b0=>{const _0x48b513=_0x3bd257,_0x475899=_0x1742b0[_0x48b513(0xb7)](_0x10cb15=>_0x10cb15[_0x48b513(0xe2)]===_0xb651dc&&_0x10cb15[_0x48b513(0xd0)][_0x48b513(0xd5)]>0x0&&_0x10cb15[_0x48b513(0xd0)][0x0][_0x48b513(0xbc)][_0x48b513(0xe1)]()===_0x1c96b6);_0x475899[_0x48b513(0xd5)]&&(_0x433ec0[_0x48b513(0xe7)](),_0x31eb96(_0x475899[0x0][_0x48b513(0xd0)][0x0]));});_0x433ec0[_0x3bd257(0xc3)](_0xb651dc,{'childList':!0x0,'subtree':!0x0});}[_0x5c7fc8(0xe5)](_0x182c85){const _0x37607a=_0x5c7fc8;_0x182c85[_0x37607a(0xc2)](_0x37607a(0xc6),_0x28cc04=>{const _0x218448=_0x37607a;this[_0x218448(0xd7)](_0x218448(0xc6),{'imageSrc':_0x28cc04[_0x218448(0xd8)][_0x218448(0xbf)]});}),_0x182c85[_0x37607a(0xc2)](_0x37607a(0xca),()=>{const _0x3889f4=_0x37607a;this[_0x3889f4(0xd7)](_0x3889f4(0xca));});}[_0x5c7fc8(0xbd)](){const _0x1152ff=_0x5c7fc8;this[_0x1152ff(0xe3)]['on'](_0x1152ff(0xd6),()=>{const _0x5a985b=_0x1152ff;this[_0x5a985b(0xd7)](_0x5a985b(0xd6));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33299a=_0x34d5;function _0x34d5(_0x5d9ea3,_0x47b49c){const _0x3c4fcc=_0x3c4f();return _0x34d5=function(_0x34d581,_0x2f6528){_0x34d581=_0x34d581-0x14d;let _0x32bf08=_0x3c4fcc[_0x34d581];return _0x32bf08;},_0x34d5(_0x5d9ea3,_0x47b49c);}(function(_0x1af174,_0x1c9093){const _0x2cf28f=_0x34d5,_0x4febb0=_0x1af174();while(!![]){try{const _0x577bd8=-parseInt(_0x2cf28f(0x16c))/0x1*(parseInt(_0x2cf28f(0x157))/0x2)+parseInt(_0x2cf28f(0x15d))/0x3*(-parseInt(_0x2cf28f(0x16d))/0x4)+parseInt(_0x2cf28f(0x168))/0x5+parseInt(_0x2cf28f(0x14d))/0x6+-parseInt(_0x2cf28f(0x156))/0x7*(parseInt(_0x2cf28f(0x164))/0x8)+-parseInt(_0x2cf28f(0x152))/0x9+parseInt(_0x2cf28f(0x15f))/0xa*(parseInt(_0x2cf28f(0x15a))/0xb);if(_0x577bd8===_0x1c9093)break;else _0x4febb0['push'](_0x4febb0['shift']());}catch(_0x2c07d6){_0x4febb0['push'](_0x4febb0['shift']());}}}(_0x3c4f,0xab77d));import{Command as _0x3c7419}from'ckeditor5/src/core.js';import{Dialog as _0x3e6dd9}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x2c5cd0}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x1199bb}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3c7419{[_0x33299a(0x166)];static get[_0x33299a(0x158)](){return[_0x3e6dd9];}[_0x33299a(0x160)];constructor(_0x46ee66){const _0x2c6806=_0x33299a;super(_0x46ee66),this[_0x2c6806(0x166)]=void 0x0,this[_0x2c6806(0x160)]=_0x1199bb(_0x46ee66[_0x2c6806(0x163)][_0x2c6806(0x14f)](_0x2c6806(0x155))||[]),this[_0x2c6806(0x159)]({'isActive':!0x1});}[_0x33299a(0x162)](){const _0x740beb=_0x33299a,_0x2eb0b4=this[_0x740beb(0x15b)][_0x740beb(0x169)][_0x740beb(0x153)][_0x740beb(0x154)][_0x740beb(0x161)]();this[_0x740beb(0x167)]=this[_0x740beb(0x160)](_0x2eb0b4);}[_0x33299a(0x15c)](){const _0x28b1dd=_0x33299a;this[_0x28b1dd(0x166)]&&(this[_0x28b1dd(0x14e)](_0x28b1dd(0x165)),this[_0x28b1dd(0x166)]=void 0x0);const _0x535a82=this[_0x28b1dd(0x15b)][_0x28b1dd(0x169)][_0x28b1dd(0x153)][_0x28b1dd(0x154)][_0x28b1dd(0x161)]();_0x535a82&&(_0x535a82['is'](_0x28b1dd(0x150),_0x28b1dd(0x16a))||_0x535a82['is'](_0x28b1dd(0x150),_0x28b1dd(0x151)))&&(this[_0x28b1dd(0x166)]=new _0x2c5cd0(this[_0x28b1dd(0x15b)],this[_0x28b1dd(0x15b)][_0x28b1dd(0x16b)][_0x28b1dd(0x14f)](_0x3e6dd9),_0x535a82),this[_0x28b1dd(0x15e)](_0x28b1dd(0x165))['to'](this[_0x28b1dd(0x166)],_0x28b1dd(0x165)));}}function _0x3c4f(){const _0x24e397=['209teEOUY','editor','execute','6SevXxy','bind','1360570YlrBop','_isEditable','getSelectedElement','refresh','config','9999256zZclRL','isActive','imageEditController','isEnabled','2366950QEOJgX','model','imageBlock','plugins','1341513QrsEvI','27276SjzhGU','3770358jcCNob','unbind','get','element','imageInline','3415275UTtgJV','document','selection','uploadcare.allowExternalImagesEditing','7qUBxnO','2PKvPvP','requires','set'];_0x3c4f=function(){return _0x24e397;};return _0x3c4f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x474784=_0x3299;function _0x392b(){const _0x13b965=['uploadcareImageReplace','ImageUtils','3773cJWoKh','uploadcareImageEdit','ImageEditing','pluginName','6FFnYtQ','commands','requires','725432nVlXOu','138534SvVZQy','init','31390AlIpuk','isOfficialPlugin','2825124EVuRqX','169721JdHSJh','9diTDCY','1817715koFpOs','4nuHvro','UploadcareImageEditEditing','2205728tiZYru','isPremiumPlugin','add'];_0x392b=function(){return _0x13b965;};return _0x392b();}function _0x3299(_0x3500ef,_0x5e5ff2){const _0x392bf0=_0x392b();return _0x3299=function(_0x329907,_0x3e807c){_0x329907=_0x329907-0x1d8;let _0x23fe6d=_0x392bf0[_0x329907];return _0x23fe6d;},_0x3299(_0x3500ef,_0x5e5ff2);}(function(_0x5c3dec,_0x1a7af1){const _0x52a5e5=_0x3299,_0x1bd9da=_0x5c3dec();while(!![]){try{const _0x149f7c=parseInt(_0x52a5e5(0x1dc))/0x1*(-parseInt(_0x52a5e5(0x1ea))/0x2)+-parseInt(_0x52a5e5(0x1ee))/0x3*(-parseInt(_0x52a5e5(0x1df))/0x4)+parseInt(_0x52a5e5(0x1de))/0x5+-parseInt(_0x52a5e5(0x1db))/0x6+-parseInt(_0x52a5e5(0x1e1))/0x7+parseInt(_0x52a5e5(0x1ed))/0x8*(parseInt(_0x52a5e5(0x1dd))/0x9)+parseInt(_0x52a5e5(0x1d9))/0xa*(parseInt(_0x52a5e5(0x1e6))/0xb);if(_0x149f7c===_0x1a7af1)break;else _0x1bd9da['push'](_0x1bd9da['shift']());}catch(_0x4eb8ed){_0x1bd9da['push'](_0x1bd9da['shift']());}}}(_0x392b,0x44d64));import{Plugin as _0x11fc82}from'ckeditor5/src/core.js';import{Notification as _0x210c1e}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x515f34}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x4ecbe3}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x4cfe84}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x11fc82{static get[_0x474784(0x1e9)](){const _0x1a6a9b=_0x474784;return _0x1a6a9b(0x1e0);}static get[_0x474784(0x1ec)](){const _0x22e0df=_0x474784;return[_0x4cfe84,_0x210c1e,_0x22e0df(0x1e5),_0x22e0df(0x1e8)];}static get[_0x474784(0x1da)](){return!0x0;}static get[_0x474784(0x1e2)](){return!0x0;}[_0x474784(0x1d8)](){const _0x46812b=_0x474784,{editor:_0x127d06}=this;_0x127d06[_0x46812b(0x1eb)][_0x46812b(0x1e3)](_0x46812b(0x1e7),new _0x515f34(_0x127d06)),_0x127d06[_0x46812b(0x1eb)][_0x46812b(0x1e3)](_0x46812b(0x1e4),new _0x4ecbe3(_0x127d06));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x35a06e}from'ckeditor5/src/core.js';import{ButtonView as _0x2830cf}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x203f36}from'ckeditor5/src/icons.js';import{createElement as _0x5f02ad}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 _0x35a06e{['_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 _0x817255=this['editor'];_0x817255['ui']['componentFactory']['add']('uploadcareImageEdit',_0x133388=>{const _0x1512cd=_0x817255['commands']['get']('uploadcareImageEdit'),_0x39b45a=new _0x2830cf(_0x133388),t=_0x133388['t'];return _0x39b45a['set']({'icon':_0x203f36,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x39b45a['bind']('isEnabled')['to'](_0x1512cd),_0x39b45a['bind']('isOn')['to'](_0x1512cd,'isActive'),this['listenTo'](_0x39b45a,'execute',()=>{_0x817255['execute']('uploadcareImageEdit'),_0x817255['editing']['view']['focus']();}),_0x39b45a;}),this['_initConfig']();}['_initConfig'](){const _0x154ed9=_0x5f02ad(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x154ed9),this['listenTo'](this['editor'],'destroy',()=>{_0x154ed9['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x199294=_0x410c;(function(_0x316388,_0x423a06){var _0x3ec6b4=_0x410c,_0x5a96f2=_0x316388();while(!![]){try{var _0x41e9c3=parseInt(_0x3ec6b4(0x1df))/0x1*(parseInt(_0x3ec6b4(0x1d1))/0x2)+parseInt(_0x3ec6b4(0x1dd))/0x3*(parseInt(_0x3ec6b4(0x1d3))/0x4)+-parseInt(_0x3ec6b4(0x1d9))/0x5+parseInt(_0x3ec6b4(0x1da))/0x6+parseInt(_0x3ec6b4(0x1db))/0x7+parseInt(_0x3ec6b4(0x1d6))/0x8*(-parseInt(_0x3ec6b4(0x1e2))/0x9)+-parseInt(_0x3ec6b4(0x1e1))/0xa;if(_0x41e9c3===_0x423a06)break;else _0x5a96f2['push'](_0x5a96f2['shift']());}catch(_0x44177d){_0x5a96f2['push'](_0x5a96f2['shift']());}}}(_0x340b,0x1be4e));function _0x340b(){var _0x2d9a7a=['139677YKEDhl','getFocusableElement','1078630BODjbX','48258ZaTKKf','focusTracker','2bccXMc','forwardCycle','2836snARrz','div','true','88QLgUiS','fire','focusCycler','921545IpPCRH','259578jEGLtO','820897IaksVI','bindTemplate','699YwhUmS','createCollection'];_0x340b=function(){return _0x2d9a7a;};return _0x340b();}import{FocusTracker as _0xa218eb}from'ckeditor5/src/utils.js';import{View as _0x467182,FocusCycler as _0x7f7e8c}from'ckeditor5/src/ui.js';function _0x410c(_0x45c439,_0x463693){var _0x340b9e=_0x340b();return _0x410c=function(_0x410cda,_0x52f306){_0x410cda=_0x410cda-0x1d1;var _0x127208=_0x340b9e[_0x410cda];return _0x127208;},_0x410c(_0x45c439,_0x463693);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x467182{[_0x199294(0x1e3)];[_0x199294(0x1d8)];constructor(_0x84973a){var _0x41fbca=_0x199294;super(_0x84973a),this[_0x41fbca(0x1e3)]=new _0xa218eb(),this[_0x41fbca(0x1d8)]=new _0x7f7e8c({'focusables':this[_0x41fbca(0x1de)](),'focusTracker':this[_0x41fbca(0x1e3)]});}[_0x199294(0x1e0)](){var _0x47fdad=_0x199294;return{'tag':_0x47fdad(0x1d4),'attributes':{'aria-hidden':_0x47fdad(0x1d5),'tabindex':'0'},'on':{'focus':this[_0x47fdad(0x1dc)]['to'](()=>{var _0x581a7f=_0x47fdad;this[_0x581a7f(0x1d8)][_0x581a7f(0x1d7)](_0x581a7f(0x1d2));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2f6636,_0x57cf6c){const _0x29bf4a=_0x106c,_0x33b81d=_0x2f6636();while(!![]){try{const _0x2162ea=parseInt(_0x29bf4a(0x1e0))/0x1*(-parseInt(_0x29bf4a(0x1ea))/0x2)+parseInt(_0x29bf4a(0x1fc))/0x3*(-parseInt(_0x29bf4a(0x1e7))/0x4)+-parseInt(_0x29bf4a(0x1f7))/0x5*(-parseInt(_0x29bf4a(0x1d5))/0x6)+parseInt(_0x29bf4a(0x1ed))/0x7*(-parseInt(_0x29bf4a(0x1e6))/0x8)+-parseInt(_0x29bf4a(0x1f0))/0x9+parseInt(_0x29bf4a(0x1f1))/0xa+parseInt(_0x29bf4a(0x1d8))/0xb;if(_0x2162ea===_0x57cf6c)break;else _0x33b81d['push'](_0x33b81d['shift']());}catch(_0x110930){_0x33b81d['push'](_0x33b81d['shift']());}}}(_0x2dd1,0xe0ad3));import{global as _0x5586a6,DomEmitterMixin as _0x5f5929}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x155271){const _0x532a18=_0x106c,_0x21f3e0=G(_0x155271);return _0x4c9c51=>!(!_0x4c9c51||!_0x4c9c51['is'](_0x532a18(0x1c9),_0x532a18(0x1db))&&!_0x4c9c51['is'](_0x532a18(0x1c9),_0x532a18(0x1c7)))&&(!!_0x4c9c51[_0x532a18(0x1e2)](_0x532a18(0x1cd))||!!_0x4c9c51[_0x532a18(0x1e2)](_0x532a18(0x1e3))&&_0x21f3e0(_0x4c9c51[_0x532a18(0x1ec)](_0x532a18(0x1e3))));}export function getImageUrls(_0x108c97,_0x11735e){const _0x5e3c97=_0x106c,_0x90bc2c=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x5e3c97(0x1fa)](_0x5f0757=>_0x5f0757<=_0x11735e)[_0x5e3c97(0x1cc)](_0x187571=>_0x108c97[_0x5e3c97(0x1df)](/\/$/,'')+_0x5e3c97(0x1d7)+_0x187571+_0x5e3c97(0x1f8)+_0x187571+'w');return{'imageFallbackUrl':_0x108c97,'imageSources':[{'srcset':_0x90bc2c[_0x5e3c97(0x1f2)](',\x20'),'sizes':_0x5e3c97(0x1da)+_0x11735e+_0x5e3c97(0x1cb)+_0x11735e+'px','type':_0x5e3c97(0x1d4)}]};}function _0x106c(_0x597f5a,_0x3c85fb){const _0x2dd100=_0x2dd1();return _0x106c=function(_0x106c2e,_0x11ef1e){_0x106c2e=_0x106c2e-0x1c6;let _0x30be62=_0x2dd100[_0x106c2e];return _0x30be62;},_0x106c(_0x597f5a,_0x3c85fb);}function _0x2dd1(){const _0x3c6e58=['imageInline','view','element','function','px)\x20100vw,\x20','map','uploadcareImageId','change','setStyle','editing','stopListening','toViewElement','viewToDom','image/webp','1164AFzTOM','plugins','/-/resize/','31895622mHZimg','window','(max-width:\x20','imageBlock','removeStyle','load','addClass','replace','9VEtQLO','location','hasAttribute','src','findViewImgElement','origin','2704jWCedH','4NcvPtf','width','aspect-ratio','96898rDYvFo','ImageUtils','getAttribute','31738wFgfqd','mapper','match','8520444IeySXP','9293610QbdOrk','join','listenTo','image-processing','height','baseURI','13940LvGkaQ','x/\x20','removeClass','filter','document','1602933XETwsU','domConverter','some','isArray','get'];_0x2dd1=function(){return _0x3c6e58;};return _0x2dd1();}export function getImageDimension(_0xd8abe3,_0x4e39af,_0x44a3cc){const _0x58ec5a=_0x106c,_0x4ca039=_0xd8abe3[_0x58ec5a(0x1ef)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4ca039?parseInt(_0x4ca039[0x1],0xa):_0x4e39af,'height':_0x4ca039?parseInt(_0x4ca039[0x2],0xa):_0x44a3cc};}export function showImageProcessingIndicator(_0x371e15,_0x4b5866){const _0x21e94e=_0x106c,_0x4401bf=new(_0x5f5929())(),_0x5f14a1=_0x371e15[_0x21e94e(0x1d6)][_0x21e94e(0x1c6)](_0x21e94e(0x1eb)),_0x4c000c=_0x371e15[_0x21e94e(0x1d0)][_0x21e94e(0x1ee)][_0x21e94e(0x1d2)](_0x4b5866),_0x3e9a8d=_0x5f14a1[_0x21e94e(0x1e4)](_0x4c000c),_0x331238=_0x371e15[_0x21e94e(0x1d0)][_0x21e94e(0x1c8)][_0x21e94e(0x1fd)][_0x21e94e(0x1d3)](_0x3e9a8d),_0x1140d6=_0x4b5866[_0x21e94e(0x1ec)](_0x21e94e(0x1e8)),_0xe7678d=_0x4b5866[_0x21e94e(0x1ec)](_0x21e94e(0x1f5)),_0x1ddce6=_0x21e94e(0x1f4);_0x371e15[_0x21e94e(0x1d0)][_0x21e94e(0x1c8)][_0x21e94e(0x1ce)](_0x18b8bc=>{const _0x3e9b2b=_0x21e94e;_0x18b8bc[_0x3e9b2b(0x1de)](_0x1ddce6,_0x4c000c),_0x18b8bc[_0x3e9b2b(0x1cf)](_0x3e9b2b(0x1e9),_0x1140d6+'/'+_0xe7678d,_0x3e9a8d);}),_0x4401bf[_0x21e94e(0x1f3)](_0x331238,_0x21e94e(0x1dd),()=>{const _0x3561ad=_0x21e94e;_0x4401bf[_0x3561ad(0x1d1)](_0x331238,_0x3561ad(0x1dd)),_0x371e15[_0x3561ad(0x1d0)][_0x3561ad(0x1c8)][_0x3561ad(0x1ce)](_0x483788=>{const _0x528b1f=_0x3561ad;_0x483788[_0x528b1f(0x1f9)](_0x1ddce6,_0x4c000c),_0x483788[_0x528b1f(0x1dc)](_0x528b1f(0x1e9),_0x3e9a8d);});});}function G(_0x38017d){const _0x10da72=_0x106c;if(Array[_0x10da72(0x1ff)](_0x38017d)){const _0x1c6482=_0x38017d[_0x10da72(0x1cc)](G);return _0xbfb401=>_0x1c6482[_0x10da72(0x1fe)](_0x4c839d=>_0x4c839d(_0xbfb401));}if(_0x10da72(0x1e5)==_0x38017d){const _0x338cf6=_0x5586a6[_0x10da72(0x1d9)][_0x10da72(0x1e1)][_0x10da72(0x1e5)];return _0x1baaf2=>new URL(_0x1baaf2,_0x5586a6[_0x10da72(0x1fb)][_0x10da72(0x1f6)])[_0x10da72(0x1e5)]==_0x338cf6;}return _0x10da72(0x1ca)==typeof _0x38017d?_0x38017d:_0x38017d instanceof RegExp?_0x7263dc=>!(!_0x7263dc[_0x10da72(0x1ef)](_0x38017d)&&!_0x7263dc[_0x10da72(0x1df)](/^https?:\/\//,'')[_0x10da72(0x1ef)](_0x38017d)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x437d(_0x47b3b4,_0x5813b7){var _0x3104e9=_0x3104();return _0x437d=function(_0x437dcc,_0x1f06b8){_0x437dcc=_0x437dcc-0x160;var _0x5f578d=_0x3104e9[_0x437dcc];return _0x5f578d;},_0x437d(_0x47b3b4,_0x5813b7);}(function(_0x3f8915,_0x1a294d){var _0x15f58b=_0x437d,_0x2657fa=_0x3f8915();while(!![]){try{var _0x3f3ee1=parseInt(_0x15f58b(0x166))/0x1+-parseInt(_0x15f58b(0x167))/0x2*(-parseInt(_0x15f58b(0x160))/0x3)+parseInt(_0x15f58b(0x165))/0x4*(-parseInt(_0x15f58b(0x161))/0x5)+parseInt(_0x15f58b(0x16a))/0x6+-parseInt(_0x15f58b(0x168))/0x7+-parseInt(_0x15f58b(0x162))/0x8*(parseInt(_0x15f58b(0x16b))/0x9)+parseInt(_0x15f58b(0x164))/0xa;if(_0x3f3ee1===_0x1a294d)break;else _0x2657fa['push'](_0x2657fa['shift']());}catch(_0xb7f119){_0x2657fa['push'](_0x2657fa['shift']());}}}(_0x3104,0xa86e5));import{getAncestors as _0xdfe620}from'ckeditor5/src/utils.js';function _0x3104(){var _0x235907=['332646BTGnvx','74961pDOLHF','3783237JmKylm','9760UhhCkh','408qazNUj','includes','5013880TpleBu','1228EOBIDs','540890dOvhHK','2KnemBu','4514034XxfRIS','target'];_0x3104=function(){return _0x235907;};return _0x3104();}export function isAncestor(_0x3376ae,_0x5fa440){var _0x1e7200=_0x437d;return _0xdfe620(_0x3376ae[_0x1e7200(0x169)])[_0x1e7200(0x163)](_0x5fa440);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x519406=_0x562f;function _0x562f(_0x1f2c8d,_0x27f6eb){var _0x196cbf=_0x196c();return _0x562f=function(_0x562ff7,_0x1b56c8){_0x562ff7=_0x562ff7-0x15c;var _0x360173=_0x196cbf[_0x562ff7];return _0x360173;},_0x562f(_0x1f2c8d,_0x27f6eb);}(function(_0x484b2a,_0x38d3ca){var _0x2dd18c=_0x562f,_0x348dbc=_0x484b2a();while(!![]){try{var _0x240457=parseInt(_0x2dd18c(0x161))/0x1*(-parseInt(_0x2dd18c(0x167))/0x2)+-parseInt(_0x2dd18c(0x15f))/0x3*(parseInt(_0x2dd18c(0x165))/0x4)+-parseInt(_0x2dd18c(0x15c))/0x5+parseInt(_0x2dd18c(0x160))/0x6+parseInt(_0x2dd18c(0x166))/0x7+-parseInt(_0x2dd18c(0x15e))/0x8*(-parseInt(_0x2dd18c(0x162))/0x9)+parseInt(_0x2dd18c(0x164))/0xa;if(_0x240457===_0x38d3ca)break;else _0x348dbc['push'](_0x348dbc['shift']());}catch(_0x159260){_0x348dbc['push'](_0x348dbc['shift']());}}}(_0x196c,0xb552f));function _0x196c(){var _0x4e57d5=['1459835tKmtKm','getInfo','145592ulJqcD','1145679eWqvdX','7450446YFMGPH','348060PNFAdb','387ndWFtx','upload','2012450FEFhft','12GAzQDO','9429322lWVRgf','8NwmIRV'];_0x196c=function(){return _0x4e57d5;};return _0x196c();}import{uploadFile as _0x1ea461,info as _0x1c7ac7}from'@uploadcare/upload-client';export class UploadUtils{static[_0x519406(0x163)]({file:_0x180f79,..._0x2f23aa}){return _0x1ea461(_0x180f79,_0x2f23aa);}static[_0x519406(0x15d)](_0x31f81d,_0x4f197d){return _0x1c7ac7(_0x31f81d,_0x4f197d);}}
|