ckbox 2.5.1 → 2.6.0-rc.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/README.md +4 -4
- package/dist/ckbox.js +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/ckbox.css +1 -1
- package/dist/translations/en.js +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
const
|
|
4
|
+
const _0x1c20e8=_0xc727;(function(_0x261116,_0x302702){const _0x15da26=_0xc727,_0x4f131a=_0x261116();while(!![]){try{const _0x4bc629=parseInt(_0x15da26(0x1b9))/0x1*(parseInt(_0x15da26(0x1b3))/0x2)+parseInt(_0x15da26(0x1bd))/0x3+-parseInt(_0x15da26(0x1b0))/0x4+-parseInt(_0x15da26(0x1b7))/0x5+parseInt(_0x15da26(0x1bf))/0x6+-parseInt(_0x15da26(0x1be))/0x7+parseInt(_0x15da26(0x1bc))/0x8;if(_0x4bc629===_0x302702)break;else _0x4f131a['push'](_0x4f131a['shift']());}catch(_0x3fa799){_0x4f131a['push'](_0x4f131a['shift']());}}}(_0x422b,0x97a76));import*as _0x1452bf from'react';function _0x422b(){const _0x1eba2e=['assets','7054296PxbnqP','1468200vofBKk','4172889BtgVvO','5393886bYRbGx','render','createElement','2729172HDylUj','onClose','freeze','2ljWGBG','unmount','createRoot','onChoose','4910285NkGklN','boolean','611483KWxJcZ','call'];_0x422b=function(){return _0x1eba2e;};return _0x422b();}export{_0x1452bf as React};import*as _0x21d384 from'react-dom/client';import{CKBox as _0x48c99d,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x503d54,_0x3f3e3e)=>{const _0x4c7f60=_0x503d54['dialog'];if(!_0x4c7f60)return![];if(typeof _0x4c7f60==='boolean'){const _0x106951=()=>{_0x3f3e3e();};return{'open':!![],'onClose':_0x106951};}const _0x30a5dd=()=>{const _0x5617cc=_0xc727;var _0x32631d;(_0x32631d=_0x4c7f60[_0x5617cc(0x1b1)])===null||_0x32631d===void 0x0?void 0x0:_0x32631d[_0x5617cc(0x1ba)](_0x4c7f60),_0x3f3e3e();};return{..._0x4c7f60,'open':!![],'onClose':_0x30a5dd};},getAssetsProps=(_0x5d949a,_0x5c2b12)=>{const _0x31506a=_0xc727;var _0x5d127c;const _0xab29d4=(_0x5d127c=_0x5d949a[_0x31506a(0x1bb)])===null||_0x5d127c===void 0x0?void 0x0:_0x5d127c[_0x31506a(0x1b6)];if(!_0xab29d4)return _0x5d949a[_0x31506a(0x1bb)];const _0x5cf9ea=_0x44d50d=>{const _0x3e440a=_0x31506a;var _0x232a93;_0xab29d4(_0x44d50d),_0x5c2b12&&typeof _0x5c2b12!==_0x3e440a(0x1b8)&&((_0x232a93=_0x5c2b12['onClose'])===null||_0x232a93===void 0x0?void 0x0:_0x232a93[_0x3e440a(0x1ba)](_0x5c2b12));};return{..._0x5d949a[_0x31506a(0x1bb)],'onChoose':_0x5cf9ea};},mount=(_0x4c07a1,_0x895ab0)=>{const _0x9dd191=_0xc727,_0xaf1e65=_0x21d384[_0x9dd191(0x1b5)](_0x4c07a1),_0x2f2d86=_0xaf1e65[_0x9dd191(0x1b4)]['bind'](_0xaf1e65),_0x410ef2=getDialogProps(_0x895ab0,_0x2f2d86),_0x23ba51=getAssetsProps(_0x895ab0,_0x410ef2);return _0xaf1e65[_0x9dd191(0x1c0)](_0x1452bf[_0x9dd191(0x1c1)](_0x48c99d,{..._0x895ab0,'assets':_0x23ba51,'dialog':_0x410ef2})),{'unmount':_0x2f2d86};},mountImageEditor=(_0x5561d0,_0x330600)=>{const _0x26e07c=_0xc727,_0x5b1230=_0x21d384[_0x26e07c(0x1b5)](_0x5561d0),_0x569f11=_0x5b1230['unmount']['bind'](_0x5b1230),_0x4d58cc=()=>{const _0x4315af=_0x26e07c;var _0x38340b;(_0x38340b=_0x330600[_0x4315af(0x1b1)])===null||_0x38340b===void 0x0?void 0x0:_0x38340b['call'](_0x330600),_0x569f11();};return _0x5b1230[_0x26e07c(0x1c0)](_0x1452bf['createElement'](CKBoxImageEditor,{..._0x330600,'open':!![],'onClose':_0x4d58cc})),{'unmount':_0x569f11};};function _0xc727(_0x170a1e,_0x4edbda){const _0x422b18=_0x422b();return _0xc727=function(_0xc7270d,_0x1b22c9){_0xc7270d=_0xc7270d-0x1b0;let _0x339329=_0x422b18[_0xc7270d];return _0x339329;},_0xc727(_0x170a1e,_0x4edbda);}var CKBox=Object[_0x1c20e8(0x1b2)]({'__proto__':null,'React':_0x1452bf,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x3bf389=globalThis;!_0x3bf389['CKBox']&&(_0x3bf389['CKBox']=CKBox);}());export{mount,mountImageEditor};
|