ckbox 1.5.1 → 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(_0x556e13,_0x4a9217){const _0x404d8=_0x496f,_0x50582c=_0x556e13();while(!![]){try{const _0x178dc2=-parseInt(_0x404d8(0x8e))/0x1*(-parseInt(_0x404d8(0x9b))/0x2)+-parseInt(_0x404d8(0x91))/0x3+parseInt(_0x404d8(0x90))/0x4+parseInt(_0x404d8(0x93))/0x5*(parseInt(_0x404d8(0x8b))/0x6)+parseInt(_0x404d8(0x9d))/0x7+-parseInt(_0x404d8(0x98))/0x8+-parseInt(_0x404d8(0x94))/0x9*(parseInt(_0x404d8(0x8a))/0xa);if(_0x178dc2===_0x4a9217)break;else _0x50582c['push'](_0x50582c['shift']());}catch(_0x287a8e){_0x50582c['push'](_0x50582c['shift']());}}}(_0x2eee,0x20a94));import*as _0x28d161 from'react';function _0x496f(_0x4982e7,_0x192271){const _0x2eee20=_0x2eee();return _0x496f=function(_0x496fff,_0x4f669e){_0x496fff=_0x496fff-0x89;let _0x929dd1=_0x2eee20[_0x496fff];return _0x929dd1;},_0x496f(_0x4982e7,_0x192271);}export{_0x28d161 as React};import*as _0x29ce60 from'react-dom/client';import{CKBox as _0x1c377d,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x195af9,_0x32fa7a)=>{const _0x5221a0=_0x195af9['dialog'];if(!_0x5221a0)return![];if(typeof _0x5221a0==='boolean'){const _0x1468df=()=>{_0x32fa7a();};return{'open':!![],'onClose':_0x1468df};}const _0x3e86a3=()=>{const _0xd98cd9=_0x496f;var _0x16ccef;(_0x16ccef=_0x5221a0['onClose'])===null||_0x16ccef===void 0x0?void 0x0:_0x16ccef[_0xd98cd9(0x95)](_0x5221a0),_0x32fa7a();};return{..._0x5221a0,'open':!![],'onClose':_0x3e86a3};},getAssetsProps=(_0xe3e6aa,_0x219583)=>{const _0x319d90=_0x496f;var _0x43243c;const _0x5736a5=(_0x43243c=_0xe3e6aa[_0x319d90(0x8c)])===null||_0x43243c===void 0x0?void 0x0:_0x43243c[_0x319d90(0x9a)];if(!_0x5736a5)return _0xe3e6aa[_0x319d90(0x8c)];const _0x86cc27=_0x4acb33=>{const _0x1c7048=_0x319d90;var _0x3a15e5;_0x5736a5(_0x4acb33),_0x219583&&typeof _0x219583!==_0x1c7048(0x89)&&((_0x3a15e5=_0x219583[_0x1c7048(0x99)])===null||_0x3a15e5===void 0x0?void 0x0:_0x3a15e5[_0x1c7048(0x95)](_0x219583));};return{..._0xe3e6aa[_0x319d90(0x8c)],'onChoose':_0x86cc27};},mount=(_0x5ca365,_0x4be4ee)=>{const _0x5d78ca=_0x496f,_0x47475d=_0x29ce60[_0x5d78ca(0x96)](_0x5ca365),_0x1ff3a8=_0x47475d[_0x5d78ca(0x97)][_0x5d78ca(0x92)](_0x47475d),_0x5608f0=getDialogProps(_0x4be4ee,_0x1ff3a8),_0x30d2c4=getAssetsProps(_0x4be4ee,_0x5608f0);return _0x47475d[_0x5d78ca(0x8f)](_0x28d161[_0x5d78ca(0x9c)](_0x1c377d,{..._0x4be4ee,'assets':_0x30d2c4,'dialog':_0x5608f0})),{'unmount':_0x1ff3a8};};var CKBox=Object['freeze']({'__proto__':null,'React':_0x28d161,'mount':mount,'version':version});(function(){const _0x106ceb=_0x496f,_0x5628d2=globalThis;!_0x5628d2['CKBox']&&(_0x5628d2[_0x106ceb(0x8d)]=CKBox);}());export{mount};function _0x2eee(){const _0x2b23ea=['14IyDWgm','createElement','1538782FDgOBT','boolean','31490dqZoMo','166416mKkEEd','assets','CKBox','14687LfxbxK','render','708340mHyiJU','266214beDlrQ','bind','40UouoYS','963KKjDwM','call','createRoot','unmount','1297176OSZRGR','onClose','onChoose'];_0x2eee=function(){return _0x2b23ea;};return _0x2eee();}
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};