@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250525.0 → 0.0.0-nightly-20250526.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/uploadcareimageedit/uploadcareimagereplacecommand.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
|
-
const
|
|
23
|
+
const _0x3fd1d1=_0x2b28;(function(_0x538f85,_0x29d557){const _0x1f549e=_0x2b28,_0x543c10=_0x538f85();while(!![]){try{const _0x493efd=-parseInt(_0x1f549e(0xc6))/0x1*(-parseInt(_0x1f549e(0xd1))/0x2)+-parseInt(_0x1f549e(0xf6))/0x3*(-parseInt(_0x1f549e(0xcf))/0x4)+parseInt(_0x1f549e(0xe4))/0x5*(parseInt(_0x1f549e(0xf2))/0x6)+parseInt(_0x1f549e(0xda))/0x7*(parseInt(_0x1f549e(0xe5))/0x8)+parseInt(_0x1f549e(0xfa))/0x9*(parseInt(_0x1f549e(0xdd))/0xa)+parseInt(_0x1f549e(0xc4))/0xb*(parseInt(_0x1f549e(0xf3))/0xc)+-parseInt(_0x1f549e(0xed))/0xd;if(_0x493efd===_0x29d557)break;else _0x543c10['push'](_0x543c10['shift']());}catch(_0x536ceb){_0x543c10['push'](_0x543c10['shift']());}}}(_0x1b31,0x32406));import{View as _0xdef0db}from'ckeditor5/src/ui.js';import _0x39baa4 from'./uploadcareimageeditformloadingview.js';function _0x2b28(_0x2a28a6,_0x5c9387){const _0x1b31ac=_0x1b31();return _0x2b28=function(_0x2b28a8,_0x3425d5){_0x2b28a8=_0x2b28a8-0xc3;let _0x547429=_0x1b31ac[_0x2b28a8];return _0x547429;},_0x2b28(_0x2a28a6,_0x5c9387);}import _0x264e3a from'./uploadcareimageeditformerrorview.js';import _0x3bd205 from'./uploadcareimageeditformeditingview.js';function _0x1b31(){const _0x1913a1=['nodeName','uc-cloud-image-editor','observe','querySelector','set','setTemplate','element','740383LvxNAQ','_addUploadcareImageEditorListeners','_waitForImageEditorComponent','40kKJjIW','_loadingView','once','render','uploading','cancel','_items','14430VNSOMA','8UVdPQX','ck-uploadcare-form','error','_focusableView','ready','target','_setView','_addErrorViewListeners','10596690EdUxOE','addEventListener','add','toLowerCase','focus','414nzWEqY','3396WDXqDU','retry','getFocusableElement','534513FOeSyf','cdnUrl','clear','change:status','852867FLRVUz','ck-reset_all-excluded','disconnect','_errorView','2981vkwBSf','createCollection','82141DKYGxw','addMany','detail','apply','fire','_editingView','status','addedNodes','filter','4oPyUEy','length','2xNvxnt','div'];_0x1b31=function(){return _0x1913a1;};return _0x1b31();}import _0x7d4b6c from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x7d4b6c{[_0x3fd1d1(0xe3)];[_0x3fd1d1(0xde)];[_0x3fd1d1(0xc3)];[_0x3fd1d1(0xcb)];[_0x3fd1d1(0xe8)];constructor(_0x5e2629,_0x1dbaa2,_0x5f14d9){const _0x2f7b7a=_0x3fd1d1;super(_0x5e2629),this[_0x2f7b7a(0xe3)]=this[_0x2f7b7a(0xc5)](),this[_0x2f7b7a(0xde)]=new _0x39baa4(_0x5e2629),this[_0x2f7b7a(0xc3)]=new _0x264e3a(_0x5e2629),this[_0x2f7b7a(0xcb)]=new _0x3bd205(_0x5e2629,_0x5f14d9),this[_0x2f7b7a(0xe8)]=new _0xdef0db(_0x5e2629),this[_0x2f7b7a(0xe8)][_0x2f7b7a(0xd8)](this[_0x2f7b7a(0xf5)]()),this[_0x2f7b7a(0xd7)](_0x2f7b7a(0xcc),_0x1dbaa2),this[_0x2f7b7a(0xd8)]({'tag':_0x2f7b7a(0xd2),'attributes':{'class':['ck',_0x2f7b7a(0xfb),_0x2f7b7a(0xe6)],'tabindex':'-1'},'children':this[_0x2f7b7a(0xe3)]}),this[_0x2f7b7a(0xeb)](),this[_0x2f7b7a(0xdf)](_0x2f7b7a(0xe0),()=>{const _0x335c6d=_0x2f7b7a;this[_0x335c6d(0xdc)](this[_0x335c6d(0xd9)],_0x446e3e=>{const _0x4d9797=_0x335c6d;this[_0x4d9797(0xdb)](_0x446e3e);});}),this['on'](_0x2f7b7a(0xf9),()=>{const _0x4f6ecd=_0x2f7b7a;this[_0x4f6ecd(0xeb)]();}),this[_0x2f7b7a(0xec)]();}[_0x3fd1d1(0xf1)](){const _0xb1743f=_0x3fd1d1;this[_0xb1743f(0xd9)][_0xb1743f(0xf1)]();}[_0x3fd1d1(0xeb)](){const _0x5eb068=_0x3fd1d1;switch(this[_0x5eb068(0xe3)][_0x5eb068(0xf8)](),this[_0x5eb068(0xcc)]){case _0x5eb068(0xe1):this[_0x5eb068(0xe3)][_0x5eb068(0xef)](this[_0x5eb068(0xde)]);break;case _0x5eb068(0xe7):this[_0x5eb068(0xe3)][_0x5eb068(0xef)](this[_0x5eb068(0xc3)]);break;case _0x5eb068(0xe9):this[_0x5eb068(0xe3)][_0x5eb068(0xc7)]([this[_0x5eb068(0xcb)],this[_0x5eb068(0xe8)]]);}}[_0x3fd1d1(0xdc)](_0x55c3a1,_0x2998cc){const _0x28de9d=_0x3fd1d1,_0x4ba8b6=_0x28de9d(0xd4),_0x423b96=_0x55c3a1[_0x28de9d(0xd6)](_0x4ba8b6);if(_0x423b96)return _0x2998cc(_0x423b96);const _0x2e04d4=new MutationObserver(_0x4ba7e4=>{const _0x4ba1a6=_0x28de9d,_0x3e49c1=_0x4ba7e4[_0x4ba1a6(0xce)](_0x4c2cee=>_0x4c2cee[_0x4ba1a6(0xea)]===_0x55c3a1&&_0x4c2cee[_0x4ba1a6(0xcd)][_0x4ba1a6(0xd0)]>0x0&&_0x4c2cee[_0x4ba1a6(0xcd)][0x0][_0x4ba1a6(0xd3)][_0x4ba1a6(0xf0)]()===_0x4ba8b6);_0x3e49c1[_0x4ba1a6(0xd0)]&&(_0x2e04d4[_0x4ba1a6(0xfc)](),_0x2998cc(_0x3e49c1[0x0][_0x4ba1a6(0xcd)][0x0]));});_0x2e04d4[_0x28de9d(0xd5)](_0x55c3a1,{'childList':!0x0,'subtree':!0x0});}[_0x3fd1d1(0xdb)](_0x40e473){const _0x4b48c9=_0x3fd1d1;_0x40e473[_0x4b48c9(0xee)](_0x4b48c9(0xc9),_0x2cc3ca=>{const _0x34ce7a=_0x4b48c9;this[_0x34ce7a(0xca)](_0x34ce7a(0xc9),{'imageSrc':_0x2cc3ca[_0x34ce7a(0xc8)][_0x34ce7a(0xf7)]});}),_0x40e473[_0x4b48c9(0xee)](_0x4b48c9(0xe2),()=>{const _0x4918e0=_0x4b48c9;this[_0x4918e0(0xca)](_0x4918e0(0xe2));});}[_0x3fd1d1(0xec)](){const _0x633134=_0x3fd1d1;this[_0x633134(0xc3)]['on'](_0x633134(0xf4),()=>{const _0x243118=_0x633134;this[_0x243118(0xca)](_0x243118(0xf4));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16fe22=_0x3f0d;function _0x3f0d(_0x187441,_0x1385af){const _0x208414=_0x2084();return _0x3f0d=function(_0x3f0d0a,_0x1eedf7){_0x3f0d0a=_0x3f0d0a-0xe2;let _0x12e921=_0x208414[_0x3f0d0a];return _0x12e921;},_0x3f0d(_0x187441,_0x1385af);}(function(_0x17eb9b,_0x3fd0ed){const _0x41f080=_0x3f0d,_0x4ea2a4=_0x17eb9b();while(!![]){try{const _0x1f0be8=parseInt(_0x41f080(0xea))/0x1+parseInt(_0x41f080(0xf9))/0x2+parseInt(_0x41f080(0xe8))/0x3*(parseInt(_0x41f080(0xf2))/0x4)+parseInt(_0x41f080(0xfc))/0x5*(-parseInt(_0x41f080(0xfd))/0x6)+parseInt(_0x41f080(0xe2))/0x7*(parseInt(_0x41f080(0xeb))/0x8)+-parseInt(_0x41f080(0xff))/0x9*(-parseInt(_0x41f080(0xe4))/0xa)+-parseInt(_0x41f080(0xfa))/0xb;if(_0x1f0be8===_0x3fd0ed)break;else _0x4ea2a4['push'](_0x4ea2a4['shift']());}catch(_0x5a1c21){_0x4ea2a4['push'](_0x4ea2a4['shift']());}}}(_0x2084,0x261ff));function _0x2084(){const _0x1447a1=['model','execute','imageInline','get','11616DDNJhL','imageEditController','isActive','config','set','getSelectedElement','bind','185878Fxyhce','5508833yfVLzr','isEnabled','10lveFsN','533442AfRFrN','selection','2564307TQHEIA','requires','_isEditable','plugins','1008JgxJxi','refresh','10lqegVB','document','element','uploadcare.allowExternalImagesEditing','291uLhHNo','editor','166298nXTWGz','496vvjeoR','imageBlock','unbind'];_0x2084=function(){return _0x1447a1;};return _0x2084();}import{Command as _0x2c7a1c}from'ckeditor5/src/core.js';import{Dialog as _0x3315c5}from'ckeditor5/src/ui.js';import _0x5cb2da from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x526267}from'../utils/editingutils.js';export default class J extends _0x2c7a1c{[_0x16fe22(0xf3)];static get[_0x16fe22(0x100)](){return[_0x3315c5];}[_0x16fe22(0x101)];constructor(_0x31af1f){const _0x2bb306=_0x16fe22;super(_0x31af1f),this[_0x2bb306(0xf3)]=void 0x0,this[_0x2bb306(0x101)]=_0x526267(_0x31af1f[_0x2bb306(0xf5)][_0x2bb306(0xf1)](_0x2bb306(0xe7))||[]),this[_0x2bb306(0xf6)]({'isActive':!0x1});}[_0x16fe22(0xe3)](){const _0x518959=_0x16fe22,_0x31145b=this[_0x518959(0xe9)][_0x518959(0xee)][_0x518959(0xe5)][_0x518959(0xfe)][_0x518959(0xf7)]();this[_0x518959(0xfb)]=this[_0x518959(0x101)](_0x31145b);}[_0x16fe22(0xef)](){const _0x5b12c1=_0x16fe22;this[_0x5b12c1(0xf3)]&&(this[_0x5b12c1(0xed)](_0x5b12c1(0xf4)),this[_0x5b12c1(0xf3)]=void 0x0);const _0x5c5105=this[_0x5b12c1(0xe9)][_0x5b12c1(0xee)][_0x5b12c1(0xe5)][_0x5b12c1(0xfe)][_0x5b12c1(0xf7)]();_0x5c5105&&(_0x5c5105['is'](_0x5b12c1(0xe6),_0x5b12c1(0xec))||_0x5c5105['is'](_0x5b12c1(0xe6),_0x5b12c1(0xf0)))&&(this[_0x5b12c1(0xf3)]=new _0x5cb2da(this[_0x5b12c1(0xe9)],this[_0x5b12c1(0xe9)][_0x5b12c1(0x102)][_0x5b12c1(0xf1)](_0x3315c5),_0x5c5105),this[_0x5b12c1(0xf8)](_0x5b12c1(0xf4))['to'](this[_0x5b12c1(0xf3)],_0x5b12c1(0xf4)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b2e4d=_0x3515;function _0x5193(){const _0x4f64f9=['6MJesRg','commands','17394624sFeVLT','6870hqPNNj','isOfficialPlugin','ImageEditing','26081WdnMPk','ImageUtils','pluginName','uploadcareImageReplace','2944daNZiW','init','678sWTjCx','requires','uploadcareImageEdit','UploadcareImageEditEditing','935227aqooWf','add','2mMdguj','9976014DNlgzO','2345965HNxFdt','262280jGMOlG','isPremiumPlugin','273DENwGC'];_0x5193=function(){return _0x4f64f9;};return _0x5193();}(function(_0x5c0187,_0x1e7da8){const _0x14bd68=_0x3515,_0x3b155d=_0x5c0187();while(!![]){try{const _0x14a4c8=parseInt(_0x14bd68(0x126))/0x1*(parseInt(_0x14bd68(0x128))/0x2)+-parseInt(_0x14bd68(0x122))/0x3*(-parseInt(_0x14bd68(0x120))/0x4)+parseInt(_0x14bd68(0x12a))/0x5*(-parseInt(_0x14bd68(0x12e))/0x6)+parseInt(_0x14bd68(0x12d))/0x7*(parseInt(_0x14bd68(0x12b))/0x8)+-parseInt(_0x14bd68(0x129))/0x9+parseInt(_0x14bd68(0x131))/0xa*(parseInt(_0x14bd68(0x134))/0xb)+-parseInt(_0x14bd68(0x130))/0xc;if(_0x14a4c8===_0x1e7da8)break;else _0x3b155d['push'](_0x3b155d['shift']());}catch(_0x955bb8){_0x3b155d['push'](_0x3b155d['shift']());}}}(_0x5193,0xefb68));import{Plugin as _0x227698}from'ckeditor5/src/core.js';import{Notification as _0x21badf}from'ckeditor5/src/ui.js';import _0x569577 from'./uploadcareimageeditcommand.js';function _0x3515(_0x23d4bc,_0x2632de){const _0x5193af=_0x5193();return _0x3515=function(_0x351589,_0xf4a9e0){_0x351589=_0x351589-0x11f;let _0x52f089=_0x5193af[_0x351589];return _0x52f089;},_0x3515(_0x23d4bc,_0x2632de);}import _0x11296d from'./uploadcareimagereplacecommand.js';import _0x7d9222 from'../uploadcareediting.js';export default class g extends _0x227698{static get[_0x2b2e4d(0x136)](){const _0x57748c=_0x2b2e4d;return _0x57748c(0x125);}static get[_0x2b2e4d(0x123)](){const _0x3fd7e5=_0x2b2e4d;return[_0x7d9222,_0x21badf,_0x3fd7e5(0x135),_0x3fd7e5(0x133)];}static get[_0x2b2e4d(0x132)](){return!0x0;}static get[_0x2b2e4d(0x12c)](){return!0x0;}[_0x2b2e4d(0x121)](){const _0x34bbe0=_0x2b2e4d,{editor:_0x2cccb9}=this;_0x2cccb9[_0x34bbe0(0x12f)][_0x34bbe0(0x127)](_0x34bbe0(0x124),new _0x569577(_0x2cccb9)),_0x2cccb9[_0x34bbe0(0x12f)][_0x34bbe0(0x127)](_0x34bbe0(0x11f),new _0x11296d(_0x2cccb9));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x184438}from'ckeditor5/src/core.js';import{ButtonView as _0x1a8b01}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x296e56}from'ckeditor5/src/icons.js';import{createElement as _0x38a39f}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x184438{['_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 _0x35baa5=this['editor'];_0x35baa5['ui']['componentFactory']['add']('uploadcareImageEdit',_0x163ef7=>{const _0x293e66=_0x35baa5['commands']['get']('uploadcareImageEdit'),_0x334f54=new _0x1a8b01(_0x163ef7),t=_0x163ef7['t'];return _0x334f54['set']({'icon':_0x296e56,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x334f54['bind']('isEnabled')['to'](_0x293e66),_0x334f54['bind']('isOn')['to'](_0x293e66,'isActive'),this['listenTo'](_0x334f54,'execute',()=>{_0x35baa5['execute']('uploadcareImageEdit'),_0x35baa5['editing']['view']['focus']();}),_0x334f54;}),this['_initConfig']();}['_initConfig'](){const _0x423090=_0x38a39f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x423090),this['listenTo'](this['editor'],'destroy',()=>{_0x423090['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x31b1(_0x15a879,_0x1568e8){const _0x55e31f=_0x55e3();return _0x31b1=function(_0x31b18e,_0x7de653){_0x31b18e=_0x31b18e-0x14c;let _0x206087=_0x55e31f[_0x31b18e];return _0x206087;},_0x31b1(_0x15a879,_0x1568e8);}const _0x1c026b=_0x31b1;(function(_0x5f22ab,_0x5151b2){const _0x3b3f09=_0x31b1,_0x564eb8=_0x5f22ab();while(!![]){try{const _0x4a9fe3=-parseInt(_0x3b3f09(0x152))/0x1*(-parseInt(_0x3b3f09(0x153))/0x2)+-parseInt(_0x3b3f09(0x157))/0x3+parseInt(_0x3b3f09(0x151))/0x4+parseInt(_0x3b3f09(0x15c))/0x5+-parseInt(_0x3b3f09(0x154))/0x6+-parseInt(_0x3b3f09(0x159))/0x7+parseInt(_0x3b3f09(0x14e))/0x8*(parseInt(_0x3b3f09(0x161))/0x9);if(_0x4a9fe3===_0x5151b2)break;else _0x564eb8['push'](_0x564eb8['shift']());}catch(_0x1cb444){_0x564eb8['push'](_0x564eb8['shift']());}}}(_0x55e3,0xed448));function _0x55e3(){const _0x2d5eac=['getSelectedElement','5304135KyuMWi','removeAttribute','editor','sizes','model','9oaSbHN','setAttributes','element','imageBlock','isEnabled','refresh','10335704dADyPn','execute','imageInline','2477960TktfLa','16706gZIdMY','106wknNUN','9502386CfhwWX','selection','srcset','1640691esxffx','change','5286554JsFZAw','document'];_0x55e3=function(){return _0x2d5eac;};return _0x55e3();}import{Command as _0x2479a4}from'ckeditor5/src/core.js';export default class O extends _0x2479a4{[_0x1c026b(0x14d)](){const _0x5bcd7c=_0x1c026b,_0x2abd1b=this[_0x5bcd7c(0x15e)][_0x5bcd7c(0x160)][_0x5bcd7c(0x15a)][_0x5bcd7c(0x155)][_0x5bcd7c(0x15b)]();this[_0x5bcd7c(0x14c)]=Boolean(_0x2abd1b&&(_0x2abd1b['is'](_0x5bcd7c(0x163),_0x5bcd7c(0x164))||_0x2abd1b['is'](_0x5bcd7c(0x163),_0x5bcd7c(0x150))));}[_0x1c026b(0x14f)](_0x49f602){const _0x266733=_0x1c026b,_0x167622=this[_0x266733(0x15e)][_0x266733(0x160)][_0x266733(0x15a)][_0x266733(0x155)][_0x266733(0x15b)]();this[_0x266733(0x15e)][_0x266733(0x160)][_0x266733(0x158)](_0x963632=>{const _0x95ce05=_0x266733;_0x963632[_0x95ce05(0x162)](_0x49f602,_0x167622),_0x963632[_0x95ce05(0x15d)](_0x95ce05(0x156),_0x167622),_0x963632[_0x95ce05(0x15d)](_0x95ce05(0x15f),_0x167622);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x2c0b(_0x50996f,_0x1fafa5){var _0x21fcb8=_0x21fc();return _0x2c0b=function(_0x2c0b29,_0x165990){_0x2c0b29=_0x2c0b29-0x17e;var _0x10d9c0=_0x21fcb8[_0x2c0b29];return _0x10d9c0;},_0x2c0b(_0x50996f,_0x1fafa5);}function _0x21fc(){var _0x9f683f=['div','1944832yVzkhD','focusTracker','forwardCycle','215782xpKitF','4sYKCYk','focusCycler','getFocusableElement','true','84693JXXaIf','40065zTVPpU','2501040raHuwW','fire','2563347VZxTce','createCollection','846UjnOFF','bindTemplate','88420zhyAIq','40RmVKQr'];_0x21fc=function(){return _0x9f683f;};return _0x21fc();}var _0x567d9d=_0x2c0b;(function(_0x3fee33,_0x1f662f){var _0x25d551=_0x2c0b,_0x45ac6c=_0x3fee33();while(!![]){try{var _0x5b3914=parseInt(_0x25d551(0x18e))/0x1+-parseInt(_0x25d551(0x186))/0x2+-parseInt(_0x25d551(0x17f))/0x3*(-parseInt(_0x25d551(0x18a))/0x4)+-parseInt(_0x25d551(0x18f))/0x5+-parseInt(_0x25d551(0x190))/0x6+parseInt(_0x25d551(0x189))/0x7*(parseInt(_0x25d551(0x184))/0x8)+parseInt(_0x25d551(0x181))/0x9*(parseInt(_0x25d551(0x183))/0xa);if(_0x5b3914===_0x1f662f)break;else _0x45ac6c['push'](_0x45ac6c['shift']());}catch(_0xcb4fe9){_0x45ac6c['push'](_0x45ac6c['shift']());}}}(_0x21fc,0x80b2f));import{FocusTracker as _0x10ea43}from'ckeditor5/src/utils.js';import{View as _0x1bf3b9,FocusCycler as _0x174c4b}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x1bf3b9{[_0x567d9d(0x187)];[_0x567d9d(0x18b)];constructor(_0x781417){var _0x2792e5=_0x567d9d;super(_0x781417),this[_0x2792e5(0x187)]=new _0x10ea43(),this[_0x2792e5(0x18b)]=new _0x174c4b({'focusables':this[_0x2792e5(0x180)](),'focusTracker':this[_0x2792e5(0x187)]});}[_0x567d9d(0x18c)](){var _0x3cb5fe=_0x567d9d;return{'tag':_0x3cb5fe(0x185),'attributes':{'aria-hidden':_0x3cb5fe(0x18d),'tabindex':'0'},'on':{'focus':this[_0x3cb5fe(0x182)]['to'](()=>{var _0x2aaab6=_0x3cb5fe;this[_0x2aaab6(0x18b)][_0x2aaab6(0x17e)](_0x2aaab6(0x188));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x3613e8,_0x376903){const _0x2da6a8=_0x1217,_0x39aac6=_0x3613e8();while(!![]){try{const _0x3f159c=-parseInt(_0x2da6a8(0x17a))/0x1+parseInt(_0x2da6a8(0x17f))/0x2+parseInt(_0x2da6a8(0x191))/0x3*(parseInt(_0x2da6a8(0x181))/0x4)+parseInt(_0x2da6a8(0x189))/0x5+-parseInt(_0x2da6a8(0x16f))/0x6*(parseInt(_0x2da6a8(0x185))/0x7)+-parseInt(_0x2da6a8(0x182))/0x8*(parseInt(_0x2da6a8(0x15e))/0x9)+parseInt(_0x2da6a8(0x169))/0xa;if(_0x3f159c===_0x376903)break;else _0x39aac6['push'](_0x39aac6['shift']());}catch(_0xa5679){_0x39aac6['push'](_0x39aac6['shift']());}}}(_0x3334,0xed1cc));function _0x3334(){const _0x2bf584=['listenTo','898544lOVNvw','13502104lQYIlj','removeStyle','height','21FZYFFm','match','change','create','7687480GyztWj','stopListening','isArray','uploadcareImageId','function','aspect-ratio','imageInline','/-/resize/','15qCIMLo','domConverter','view','imageBlock','origin','mapper','window','9EYpiIV','some','get','baseURI','addClass','px)\x20100vw,\x20','load','(max-width:\x20','element','filter','src','19147870CDutHb','getAttribute','removeClass','findViewImgElement','replace','image-processing','3278274LEnHVg','x/\x20','hasAttribute','location','map','viewToDom','join','plugins','editing','setStyle','toViewElement','318439nbbpDv','document','image/webp','width','ImageUtils','82176UkHqEA'];_0x3334=function(){return _0x2bf584;};return _0x3334();}import{global as _0x122a33,DomEmitterMixin as _0x4b3194}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x55e39b){const _0x30a9ca=_0x1217,_0x5529a8=V(_0x55e39b);return _0x4116ca=>!(!_0x4116ca||!_0x4116ca['is'](_0x30a9ca(0x166),_0x30a9ca(0x15a))&&!_0x4116ca['is'](_0x30a9ca(0x166),_0x30a9ca(0x18f)))&&(!!_0x4116ca[_0x30a9ca(0x171)](_0x30a9ca(0x18c))||!!_0x4116ca[_0x30a9ca(0x171)](_0x30a9ca(0x168))&&_0x5529a8(_0x4116ca[_0x30a9ca(0x16a)](_0x30a9ca(0x168))));}export function getImageUrls(_0x1779dd,_0x131b25){const _0x44583c=_0x1217,_0x591eb7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x44583c(0x167)](_0x5732bc=>_0x5732bc<=_0x131b25)[_0x44583c(0x173)](_0x31d953=>_0x1779dd[_0x44583c(0x16d)](/\/$/,'')+_0x44583c(0x190)+_0x31d953+_0x44583c(0x170)+_0x31d953+'w');return{'imageFallbackUrl':_0x1779dd,'imageSources':[{'srcset':_0x591eb7[_0x44583c(0x175)](',\x20'),'sizes':_0x44583c(0x165)+_0x131b25+_0x44583c(0x163)+_0x131b25+'px','type':_0x44583c(0x17c)}]};}export function getImageDimension(_0x33509b,_0x370ed0,_0x35bba8){const _0x31fabc=_0x1217,_0x5e70d0=_0x33509b[_0x31fabc(0x186)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5e70d0?parseInt(_0x5e70d0[0x1],0xa):_0x370ed0,'height':_0x5e70d0?parseInt(_0x5e70d0[0x2],0xa):_0x35bba8};}function _0x1217(_0x228ad1,_0x2934db){const _0x33343e=_0x3334();return _0x1217=function(_0x121729,_0x15f4a8){_0x121729=_0x121729-0x158;let _0x53a07e=_0x33343e[_0x121729];return _0x53a07e;},_0x1217(_0x228ad1,_0x2934db);}export function showImageProcessingIndicator(_0x39e69e,_0x319609){const _0x2fccac=_0x1217,_0x27acb7=Object[_0x2fccac(0x188)](_0x4b3194),_0x423971=_0x39e69e[_0x2fccac(0x176)][_0x2fccac(0x160)](_0x2fccac(0x17e)),_0x40d022=_0x39e69e[_0x2fccac(0x177)][_0x2fccac(0x15c)][_0x2fccac(0x179)](_0x319609),_0xbe83f6=_0x423971[_0x2fccac(0x16c)](_0x40d022),_0x2a5718=_0x39e69e[_0x2fccac(0x177)][_0x2fccac(0x159)][_0x2fccac(0x158)][_0x2fccac(0x174)](_0xbe83f6),_0x552d30=_0x319609[_0x2fccac(0x16a)](_0x2fccac(0x17d)),_0x5348c8=_0x319609[_0x2fccac(0x16a)](_0x2fccac(0x184)),_0x527b3f=_0x2fccac(0x16e);_0x39e69e[_0x2fccac(0x177)][_0x2fccac(0x159)][_0x2fccac(0x187)](_0x588d2d=>{const _0x209257=_0x2fccac;_0x588d2d[_0x209257(0x162)](_0x527b3f,_0x40d022),_0x588d2d[_0x209257(0x178)](_0x209257(0x18e),_0x552d30+'/'+_0x5348c8,_0xbe83f6);}),_0x27acb7[_0x2fccac(0x180)](_0x2a5718,_0x2fccac(0x164),()=>{const _0x5aa8d2=_0x2fccac;_0x27acb7[_0x5aa8d2(0x18a)](_0x2a5718,_0x5aa8d2(0x164)),_0x39e69e[_0x5aa8d2(0x177)][_0x5aa8d2(0x159)][_0x5aa8d2(0x187)](_0x74a381=>{const _0x44fc9a=_0x5aa8d2;_0x74a381[_0x44fc9a(0x16b)](_0x527b3f,_0x40d022),_0x74a381[_0x44fc9a(0x183)](_0x44fc9a(0x18e),_0xbe83f6);});});}function V(_0x536da4){const _0x29ccae=_0x1217;if(Array[_0x29ccae(0x18b)](_0x536da4)){const _0x2479cc=_0x536da4[_0x29ccae(0x173)](V);return _0x5a32ba=>_0x2479cc[_0x29ccae(0x15f)](_0x2fba19=>_0x2fba19(_0x5a32ba));}if(_0x29ccae(0x15b)==_0x536da4){const _0xf0a9fb=_0x122a33[_0x29ccae(0x15d)][_0x29ccae(0x172)][_0x29ccae(0x15b)];return _0x55dace=>new URL(_0x55dace,_0x122a33[_0x29ccae(0x17b)][_0x29ccae(0x161)])[_0x29ccae(0x15b)]==_0xf0a9fb;}return _0x29ccae(0x18d)==typeof _0x536da4?_0x536da4:_0x536da4 instanceof RegExp?_0x2d2872=>!(!_0x2d2872[_0x29ccae(0x186)](_0x536da4)&&!_0x2d2872[_0x29ccae(0x16d)](/^https?:\/\//,'')[_0x29ccae(0x186)](_0x536da4)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x11f7ec,_0x10e51e){var _0x368685=_0x3fa8,_0x4b2127=_0x11f7ec();while(!![]){try{var _0x512a49=parseInt(_0x368685(0x130))/0x1+parseInt(_0x368685(0x131))/0x2+parseInt(_0x368685(0x129))/0x3+parseInt(_0x368685(0x12f))/0x4*(parseInt(_0x368685(0x12e))/0x5)+parseInt(_0x368685(0x12c))/0x6*(parseInt(_0x368685(0x128))/0x7)+-parseInt(_0x368685(0x133))/0x8+parseInt(_0x368685(0x12b))/0x9*(-parseInt(_0x368685(0x12a))/0xa);if(_0x512a49===_0x10e51e)break;else _0x4b2127['push'](_0x4b2127['shift']());}catch(_0x164406){_0x4b2127['push'](_0x4b2127['shift']());}}}(_0x5374,0x4270a));import{getAncestors as _0x21c834}from'ckeditor5/src/utils.js';function _0x3fa8(_0x27b773,_0x446d4d){var _0x5374f2=_0x5374();return _0x3fa8=function(_0x3fa8e3,_0x5c80d2){_0x3fa8e3=_0x3fa8e3-0x128;var _0x360d5c=_0x5374f2[_0x3fa8e3];return _0x360d5c;},_0x3fa8(_0x27b773,_0x446d4d);}export function isAncestor(_0x3775df,_0x31daaf){var _0x4c698b=_0x3fa8;return _0x21c834(_0x3775df[_0x4c698b(0x12d)])[_0x4c698b(0x132)](_0x31daaf);}function _0x5374(){var _0x3a9dfb=['includes','4265240kazTzd','7rZphmF','1302378IJUdME','599690ErrZZd','144RuzCKN','2058978tMXsxH','target','1925395NJKSeY','4RtoSlY','281762DpyklI','641334eadisb'];_0x5374=function(){return _0x3a9dfb;};return _0x5374();}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x2ea1(){var _0x494335=['upload','getInfo','5224941nzGpcO','309832gebIwV','1228176Mwlcaa','310dfBWXm','6986rMEskw','25AFBhlW','3756mptrtB','auto','12204320AdUXDb','60QjFTOA','1595079QEBgLM'];_0x2ea1=function(){return _0x494335;};return _0x2ea1();}var _0x2887a8=_0x4c6b;(function(_0x25b066,_0x50e828){var _0x1cf82f=_0x4c6b,_0x1ca689=_0x25b066();while(!![]){try{var _0x5d7007=parseInt(_0x1cf82f(0x12f))/0x1*(parseInt(_0x1cf82f(0x136))/0x2)+-parseInt(_0x1cf82f(0x130))/0x3+parseInt(_0x1cf82f(0x134))/0x4*(-parseInt(_0x1cf82f(0x12b))/0x5)+-parseInt(_0x1cf82f(0x12c))/0x6*(parseInt(_0x1cf82f(0x137))/0x7)+parseInt(_0x1cf82f(0x135))/0x8+parseInt(_0x1cf82f(0x133))/0x9+parseInt(_0x1cf82f(0x12e))/0xa;if(_0x5d7007===_0x50e828)break;else _0x1ca689['push'](_0x1ca689['shift']());}catch(_0x454cfb){_0x1ca689['push'](_0x1ca689['shift']());}}}(_0x2ea1,0x668e8));import{uploadFile as _0x585e93,info as _0x36d0c8}from'@uploadcare/upload-client';function _0x4c6b(_0x47f132,_0x492f77){var _0x2ea194=_0x2ea1();return _0x4c6b=function(_0x4c6b9c,_0x411850){_0x4c6b9c=_0x4c6b9c-0x12b;var _0x34e577=_0x2ea194[_0x4c6b9c];return _0x34e577;},_0x4c6b(_0x47f132,_0x492f77);}export default class C{static[_0x2887a8(0x131)]({file:_0x2c4c2a,publicKey:_0x4643dd,signal:_0x1b5640,onProgress:_0x9eddd5}){var _0x3d71bd=_0x2887a8;return _0x585e93(_0x2c4c2a,{'publicKey':_0x4643dd,'store':_0x3d71bd(0x12d),'signal':_0x1b5640,'onProgress':_0x9eddd5});}static[_0x2887a8(0x132)](_0x2decd8,_0x161d5e){return _0x36d0c8(_0x2decd8,_0x161d5e);}}
|