ckbox 1.5.1-rc.0 → 1.6.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/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
- function _0x2345(){const _0x307043=['2549912Eklwac','224202LlqfKg','465486gjRlmO','CKBox','boolean','assets','27576800ZmDKKb','call','2407321qswbbU','bind','978wqmQsy','dialog','8627931TSjJbp','onClose','unmount','11964KDGAsf','createElement','35GxGBHj','freeze','1fHTTOq'];_0x2345=function(){return _0x307043;};return _0x2345();}const _0x238d59=_0x3cf1;function _0x3cf1(_0x3d36f9,_0x315fcf){const _0x23459d=_0x2345();return _0x3cf1=function(_0x3cf19e,_0x3a5a3b){_0x3cf19e=_0x3cf19e-0x16c;let _0x5bad80=_0x23459d[_0x3cf19e];return _0x5bad80;},_0x3cf1(_0x3d36f9,_0x315fcf);}(function(_0x1d6029,_0x4d4dd3){const _0x1f3756=_0x3cf1,_0x166fe4=_0x1d6029();while(!![]){try{const _0x5a8e83=parseInt(_0x1f3756(0x17f))/0x1*(parseInt(_0x1f3756(0x16d))/0x2)+parseInt(_0x1f3756(0x176))/0x3*(parseInt(_0x1f3756(0x17b))/0x4)+parseInt(_0x1f3756(0x17d))/0x5*(parseInt(_0x1f3756(0x16e))/0x6)+parseInt(_0x1f3756(0x174))/0x7+parseInt(_0x1f3756(0x16c))/0x8+parseInt(_0x1f3756(0x178))/0x9+-parseInt(_0x1f3756(0x172))/0xa;if(_0x5a8e83===_0x4d4dd3)break;else _0x166fe4['push'](_0x166fe4['shift']());}catch(_0x275778){_0x166fe4['push'](_0x166fe4['shift']());}}}(_0x2345,0x7891f));import*as _0x432ef5 from'react';export{_0x432ef5 as React};import*as _0x5d7b94 from'react-dom/client';import{CKBox as _0x1057aa,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x2a7641,_0x103443)=>{const _0x4376f8=_0x3cf1,_0x98bd6=_0x2a7641[_0x4376f8(0x177)];if(!_0x98bd6)return![];if(typeof _0x98bd6===_0x4376f8(0x170)){const _0x534143=()=>{_0x103443();};return{'open':!![],'onClose':_0x534143};}const _0x178727=()=>{const _0x79f820=_0x4376f8;var _0xc07041;(_0xc07041=_0x98bd6[_0x79f820(0x179)])===null||_0xc07041===void 0x0?void 0x0:_0xc07041[_0x79f820(0x173)](_0x98bd6),_0x103443();};return{..._0x98bd6,'open':!![],'onClose':_0x178727};},getAssetsProps=(_0x3824e0,_0x1cb6f4)=>{const _0x1794d2=_0x3cf1;var _0x41a7ed;const _0x18a5a2=(_0x41a7ed=_0x3824e0[_0x1794d2(0x171)])===null||_0x41a7ed===void 0x0?void 0x0:_0x41a7ed['onChoose'];if(!_0x18a5a2)return _0x3824e0[_0x1794d2(0x171)];const _0x363340=_0xf5b81e=>{const _0x37e9ae=_0x1794d2;var _0xd9113e;_0x18a5a2(_0xf5b81e),_0x1cb6f4&&typeof _0x1cb6f4!=='boolean'&&((_0xd9113e=_0x1cb6f4['onClose'])===null||_0xd9113e===void 0x0?void 0x0:_0xd9113e[_0x37e9ae(0x173)](_0x1cb6f4));};return{..._0x3824e0['assets'],'onChoose':_0x363340};},mount=(_0x2a15c3,_0x14892e)=>{const _0xc4a8e3=_0x3cf1,_0x5b9f96=_0x5d7b94['createRoot'](_0x2a15c3),_0x3f1812=_0x5b9f96[_0xc4a8e3(0x17a)][_0xc4a8e3(0x175)](_0x5b9f96),_0x5b3c22=getDialogProps(_0x14892e,_0x3f1812),_0x73cdad=getAssetsProps(_0x14892e,_0x5b3c22);return _0x5b9f96['render'](_0x432ef5[_0xc4a8e3(0x17c)](_0x1057aa,{..._0x14892e,'assets':_0x73cdad,'dialog':_0x5b3c22})),{'unmount':_0x3f1812};};var CKBox=Object[_0x238d59(0x17e)]({'__proto__':null,'React':_0x432ef5,'mount':mount,'version':version});(function(){const _0x3dc611=_0x238d59,_0x424a85=globalThis;!_0x424a85[_0x3dc611(0x16f)]&&(_0x424a85['CKBox']=CKBox);}());export{mount};
4
+ const _0x59df30=_0x4894;function _0x1daa(){const _0x535518=['onClose','assets','onChoose','49AlRbYz','render','boolean','2502AoqbgI','bind','unmount','freeze','3104524QZrNSx','3HiQbWR','createRoot','261730INYiuD','dialog','7921950GMYehJ','1116311JAFnpa','3315854PkcrFS','329608BpZZYu','call','createElement','CKBox','8499540AftJkQ'];_0x1daa=function(){return _0x535518;};return _0x1daa();}(function(_0x33295a,_0x34fc9f){const _0x1d68f5=_0x4894,_0x6b9b0a=_0x33295a();while(!![]){try{const _0x282268=-parseInt(_0x1d68f5(0x11e))/0x1+parseInt(_0x1d68f5(0x11f))/0x2*(-parseInt(_0x1d68f5(0x119))/0x3)+-parseInt(_0x1d68f5(0x118))/0x4+-parseInt(_0x1d68f5(0x124))/0x5+-parseInt(_0x1d68f5(0x11d))/0x6+-parseInt(_0x1d68f5(0x128))/0x7*(-parseInt(_0x1d68f5(0x120))/0x8)+-parseInt(_0x1d68f5(0x114))/0x9*(-parseInt(_0x1d68f5(0x11b))/0xa);if(_0x282268===_0x34fc9f)break;else _0x6b9b0a['push'](_0x6b9b0a['shift']());}catch(_0x48cbb5){_0x6b9b0a['push'](_0x6b9b0a['shift']());}}}(_0x1daa,0xf2a6b));function _0x4894(_0x5667b0,_0x392fa5){const _0x1daa1c=_0x1daa();return _0x4894=function(_0x489410,_0x3d33aa){_0x489410=_0x489410-0x114;let _0xabab4a=_0x1daa1c[_0x489410];return _0xabab4a;},_0x4894(_0x5667b0,_0x392fa5);}import*as _0x393b1f from'react';export{_0x393b1f as React};import*as _0x2c8c25 from'react-dom/client';import{CKBox as _0x157fea,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x2ecb10,_0x4c782b)=>{const _0x494b18=_0x4894,_0x3acc95=_0x2ecb10[_0x494b18(0x11c)];if(!_0x3acc95)return![];if(typeof _0x3acc95===_0x494b18(0x12a)){const _0x5b58b5=()=>{_0x4c782b();};return{'open':!![],'onClose':_0x5b58b5};}const _0x5d66d9=()=>{const _0x29b664=_0x494b18;var _0x1cfa30;(_0x1cfa30=_0x3acc95[_0x29b664(0x125)])===null||_0x1cfa30===void 0x0?void 0x0:_0x1cfa30[_0x29b664(0x121)](_0x3acc95),_0x4c782b();};return{..._0x3acc95,'open':!![],'onClose':_0x5d66d9};},getAssetsProps=(_0x1d9b59,_0x185594)=>{const _0x24968a=_0x4894;var _0x167745;const _0x320f18=(_0x167745=_0x1d9b59[_0x24968a(0x126)])===null||_0x167745===void 0x0?void 0x0:_0x167745[_0x24968a(0x127)];if(!_0x320f18)return _0x1d9b59['assets'];const _0x5f0413=_0x107713=>{const _0x5053eb=_0x24968a;var _0x5d84da;_0x320f18(_0x107713),_0x185594&&typeof _0x185594!==_0x5053eb(0x12a)&&((_0x5d84da=_0x185594[_0x5053eb(0x125)])===null||_0x5d84da===void 0x0?void 0x0:_0x5d84da['call'](_0x185594));};return{..._0x1d9b59[_0x24968a(0x126)],'onChoose':_0x5f0413};},mount=(_0x4ab22b,_0x217553)=>{const _0x5a0c7c=_0x4894,_0x4e8439=_0x2c8c25[_0x5a0c7c(0x11a)](_0x4ab22b),_0x28bcd2=_0x4e8439[_0x5a0c7c(0x116)][_0x5a0c7c(0x115)](_0x4e8439),_0x4cd17e=getDialogProps(_0x217553,_0x28bcd2),_0x2263a1=getAssetsProps(_0x217553,_0x4cd17e);return _0x4e8439[_0x5a0c7c(0x129)](_0x393b1f[_0x5a0c7c(0x122)](_0x157fea,{..._0x217553,'assets':_0x2263a1,'dialog':_0x4cd17e})),{'unmount':_0x28bcd2};};var CKBox=Object[_0x59df30(0x117)]({'__proto__':null,'React':_0x393b1f,'mount':mount,'version':version});(function(){const _0x48b006=_0x59df30,_0x29191f=globalThis;!_0x29191f[_0x48b006(0x123)]&&(_0x29191f[_0x48b006(0x123)]=CKBox);}());export{mount};