ckbox 2.4.0-dev.0 → 2.5.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/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 _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};
4
+ function _0x7471(_0x494e3a,_0x3b1f9a){const _0x1c1d07=_0x1c1d();return _0x7471=function(_0x747123,_0x286b7a){_0x747123=_0x747123-0x1b0;let _0x4081a4=_0x1c1d07[_0x747123];return _0x4081a4;},_0x7471(_0x494e3a,_0x3b1f9a);}(function(_0x257b5f,_0x60d5d3){const _0x250fcf=_0x7471,_0x275db1=_0x257b5f();while(!![]){try{const _0x3ab8d9=parseInt(_0x250fcf(0x1b7))/0x1*(-parseInt(_0x250fcf(0x1bb))/0x2)+-parseInt(_0x250fcf(0x1c3))/0x3*(parseInt(_0x250fcf(0x1bd))/0x4)+-parseInt(_0x250fcf(0x1c4))/0x5*(parseInt(_0x250fcf(0x1bf))/0x6)+parseInt(_0x250fcf(0x1c5))/0x7*(-parseInt(_0x250fcf(0x1b9))/0x8)+-parseInt(_0x250fcf(0x1b5))/0x9*(parseInt(_0x250fcf(0x1c6))/0xa)+-parseInt(_0x250fcf(0x1b3))/0xb+parseInt(_0x250fcf(0x1c2))/0xc*(parseInt(_0x250fcf(0x1c1))/0xd);if(_0x3ab8d9===_0x60d5d3)break;else _0x275db1['push'](_0x275db1['shift']());}catch(_0x22f1f2){_0x275db1['push'](_0x275db1['shift']());}}}(_0x1c1d,0x4fb1d));import*as _0x3f73d0 from'react';export{_0x3f73d0 as React};import*as _0x1d78f6 from'react-dom/client';import{CKBox as _0x5e0f31,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x5a5c0f,_0x1cfb86)=>{const _0x34722d=_0x7471,_0x29c1c9=_0x5a5c0f[_0x34722d(0x1b6)];if(!_0x29c1c9)return![];if(typeof _0x29c1c9===_0x34722d(0x1b8)){const _0x5690e8=()=>{_0x1cfb86();};return{'open':!![],'onClose':_0x5690e8};}const _0x47c628=()=>{const _0x55e199=_0x34722d;var _0x14ea25;(_0x14ea25=_0x29c1c9[_0x55e199(0x1b1)])===null||_0x14ea25===void 0x0?void 0x0:_0x14ea25[_0x55e199(0x1b0)](_0x29c1c9),_0x1cfb86();};return{..._0x29c1c9,'open':!![],'onClose':_0x47c628};},getAssetsProps=(_0x1c479f,_0x1fd053)=>{const _0x1d321d=_0x7471;var _0x364517;const _0x1636f6=(_0x364517=_0x1c479f[_0x1d321d(0x1c7)])===null||_0x364517===void 0x0?void 0x0:_0x364517[_0x1d321d(0x1b4)];if(!_0x1636f6)return _0x1c479f[_0x1d321d(0x1c7)];const _0x1511ad=_0xe4097b=>{const _0x1b4cb4=_0x1d321d;var _0x2d926a;_0x1636f6(_0xe4097b),_0x1fd053&&typeof _0x1fd053!==_0x1b4cb4(0x1b8)&&((_0x2d926a=_0x1fd053[_0x1b4cb4(0x1b1)])===null||_0x2d926a===void 0x0?void 0x0:_0x2d926a['call'](_0x1fd053));};return{..._0x1c479f[_0x1d321d(0x1c7)],'onChoose':_0x1511ad};},mount=(_0x4be362,_0x401e20)=>{const _0x56d687=_0x7471,_0x39c103=_0x1d78f6[_0x56d687(0x1bc)](_0x4be362),_0x6895bf=_0x39c103[_0x56d687(0x1b2)][_0x56d687(0x1c8)](_0x39c103),_0x1154ba=getDialogProps(_0x401e20,_0x6895bf),_0x52f52d=getAssetsProps(_0x401e20,_0x1154ba);return _0x39c103[_0x56d687(0x1ba)](_0x3f73d0[_0x56d687(0x1be)](_0x5e0f31,{..._0x401e20,'assets':_0x52f52d,'dialog':_0x1154ba})),{'unmount':_0x6895bf};},mountImageEditor=(_0x196024,_0x20b615)=>{const _0x34130f=_0x7471,_0x4f5a57=_0x1d78f6[_0x34130f(0x1bc)](_0x196024),_0xce516c=_0x4f5a57[_0x34130f(0x1b2)]['bind'](_0x4f5a57),_0x241c54=()=>{const _0x46d093=_0x34130f;var _0x317533;(_0x317533=_0x20b615[_0x46d093(0x1b1)])===null||_0x317533===void 0x0?void 0x0:_0x317533[_0x46d093(0x1b0)](_0x20b615),_0xce516c();};return _0x4f5a57['render'](_0x3f73d0['createElement'](CKBoxImageEditor,{..._0x20b615,'open':!![],'onClose':_0x241c54})),{'unmount':_0xce516c};};var CKBox=Object['freeze']({'__proto__':null,'React':_0x3f73d0,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});function _0x1c1d(){const _0x8f4a4c=['114ZXkthn','29045XleaTL','1121750nAlZEi','410FkolAx','assets','bind','call','onClose','unmount','6164059FdUCDV','onChoose','55125qidkjf','dialog','157fjmrxo','boolean','24OtLKBy','render','254BfNTKS','createRoot','21928qQGKUm','createElement','492mQpDzY','CKBox','429IYZHYU','844824YdMpCH'];_0x1c1d=function(){return _0x8f4a4c;};return _0x1c1d();}(function(){const _0x5e2d07=_0x7471,_0x2c370d=globalThis;!_0x2c370d['CKBox']&&(_0x2c370d[_0x5e2d07(0x1c0)]=CKBox);}());export{mount,mountImageEditor};