ckbox 2.3.1 → 2.4.0-dev.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 +3 -3
- package/dist/ckbox.js +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/ckbox.css +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 _0x1942b6=_0x5c2b;function _0x25df(){const _0xeb924e=['onClose','1295727mZwoWc','1653075ngpquu','call','unmount','freeze','687851KDlnyB','73734VzqsQB','createRoot','boolean','createElement','252HSfwYq','bind','2287768RlrARZ','onChoose','11752752NGwzOW','assets','1054322ifWoZk','dialog'];_0x25df=function(){return _0xeb924e;};return _0x25df();}function _0x5c2b(_0xd75bcd,_0x106742){const _0x25df05=_0x25df();return _0x5c2b=function(_0x5c2b88,_0x1aa5a2){_0x5c2b88=_0x5c2b88-0x69;let _0x2791aa=_0x25df05[_0x5c2b88];return _0x2791aa;},_0x5c2b(_0xd75bcd,_0x106742);}(function(_0x4e5495,_0x5bce46){const _0x4b9773=_0x5c2b,_0x1d8207=_0x4e5495();while(!![]){try{const _0x575816=-parseInt(_0x4b9773(0x7b))/0x1+parseInt(_0x4b9773(0x73))/0x2+-parseInt(_0x4b9773(0x76))/0x3+-parseInt(_0x4b9773(0x6f))/0x4+-parseInt(_0x4b9773(0x77))/0x5+parseInt(_0x4b9773(0x69))/0x6*(parseInt(_0x4b9773(0x6d))/0x7)+parseInt(_0x4b9773(0x71))/0x8;if(_0x575816===_0x5bce46)break;else _0x1d8207['push'](_0x1d8207['shift']());}catch(_0x1e2f98){_0x1d8207['push'](_0x1d8207['shift']());}}}(_0x25df,0x65a56));import*as _0x4591eb from'react';export{_0x4591eb as React};import*as _0x52046c from'react-dom/client';import{CKBox as _0x21293c,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x3ae810,_0xda7124)=>{const _0xaa3642=_0x5c2b,_0x20659d=_0x3ae810[_0xaa3642(0x74)];if(!_0x20659d)return![];if(typeof _0x20659d===_0xaa3642(0x6b)){const _0x5a5865=()=>{_0xda7124();};return{'open':!![],'onClose':_0x5a5865};}const _0x36d1e0=()=>{const _0x14e9cf=_0xaa3642;var _0x49e8fb;(_0x49e8fb=_0x20659d[_0x14e9cf(0x75)])===null||_0x49e8fb===void 0x0?void 0x0:_0x49e8fb['call'](_0x20659d),_0xda7124();};return{..._0x20659d,'open':!![],'onClose':_0x36d1e0};},getAssetsProps=(_0x22bfd9,_0x36f2f0)=>{const _0x27cba9=_0x5c2b;var _0x385195;const _0x407338=(_0x385195=_0x22bfd9[_0x27cba9(0x72)])===null||_0x385195===void 0x0?void 0x0:_0x385195[_0x27cba9(0x70)];if(!_0x407338)return _0x22bfd9['assets'];const _0x56c99d=_0xbab3e=>{const _0x2e8ae4=_0x27cba9;var _0x1e0ce3;_0x407338(_0xbab3e),_0x36f2f0&&typeof _0x36f2f0!==_0x2e8ae4(0x6b)&&((_0x1e0ce3=_0x36f2f0[_0x2e8ae4(0x75)])===null||_0x1e0ce3===void 0x0?void 0x0:_0x1e0ce3[_0x2e8ae4(0x78)](_0x36f2f0));};return{..._0x22bfd9[_0x27cba9(0x72)],'onChoose':_0x56c99d};},mount=(_0x1df246,_0xf6a471)=>{const _0x2957e8=_0x5c2b,_0x5efd62=_0x52046c[_0x2957e8(0x6a)](_0x1df246),_0x262ae2=_0x5efd62[_0x2957e8(0x79)][_0x2957e8(0x6e)](_0x5efd62),_0x4ff09f=getDialogProps(_0xf6a471,_0x262ae2),_0x5df6e1=getAssetsProps(_0xf6a471,_0x4ff09f);return _0x5efd62['render'](_0x4591eb[_0x2957e8(0x6c)](_0x21293c,{..._0xf6a471,'assets':_0x5df6e1,'dialog':_0x4ff09f})),{'unmount':_0x262ae2};},mountImageEditor=(_0x3049b9,_0x1f1087)=>{const _0x24a105=_0x5c2b,_0x4c3a3c=_0x52046c[_0x24a105(0x6a)](_0x3049b9),_0x3b46e0=_0x4c3a3c[_0x24a105(0x79)][_0x24a105(0x6e)](_0x4c3a3c),_0x16d93e=()=>{const _0x2faef6=_0x24a105;var _0x2de723;(_0x2de723=_0x1f1087['onClose'])===null||_0x2de723===void 0x0?void 0x0:_0x2de723[_0x2faef6(0x78)](_0x1f1087),_0x3b46e0();};return _0x4c3a3c['render'](_0x4591eb[_0x24a105(0x6c)](CKBoxImageEditor,{..._0x1f1087,'open':!![],'onClose':_0x16d93e})),{'unmount':_0x3b46e0};};var CKBox=Object[_0x1942b6(0x7a)]({'__proto__':null,'React':_0x4591eb,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x21a548=globalThis;!_0x21a548['CKBox']&&(_0x21a548['CKBox']=CKBox);}());export{mount,mountImageEditor};
|