ckbox 2.8.0-rc.0 → 2.8.0-rc.1

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 _0x3c60ad=_0x5c77;function _0x5c77(_0x1d7309,_0x46f3c3){const _0x3fd6ac=_0x3fd6();return _0x5c77=function(_0x5c7751,_0x126acb){_0x5c7751=_0x5c7751-0x152;let _0x2a2225=_0x3fd6ac[_0x5c7751];return _0x2a2225;},_0x5c77(_0x1d7309,_0x46f3c3);}(function(_0xde24f8,_0x11fbe5){const _0x16edee=_0x5c77,_0x25343e=_0xde24f8();while(!![]){try{const _0x2e5463=-parseInt(_0x16edee(0x155))/0x1+parseInt(_0x16edee(0x165))/0x2*(parseInt(_0x16edee(0x164))/0x3)+-parseInt(_0x16edee(0x156))/0x4*(-parseInt(_0x16edee(0x153))/0x5)+-parseInt(_0x16edee(0x15d))/0x6*(-parseInt(_0x16edee(0x152))/0x7)+-parseInt(_0x16edee(0x166))/0x8+-parseInt(_0x16edee(0x167))/0x9*(parseInt(_0x16edee(0x15c))/0xa)+parseInt(_0x16edee(0x162))/0xb;if(_0x2e5463===_0x11fbe5)break;else _0x25343e['push'](_0x25343e['shift']());}catch(_0x1214f0){_0x25343e['push'](_0x25343e['shift']());}}}(_0x3fd6,0xdf6f5));import*as _0x3f89cb from'react';export{_0x3f89cb as React};function _0x3fd6(){const _0x4696bb=['9276yrsrhS','createElement','assets','CKBox','dialog','25755433ZfPAwK','bind','2157aOCpNK','1258dDZOCf','6379336tOtnjX','45kfyOzm','7217oQLvAl','2984190sNTnLy','render','1526077YyHnhl','4nWQiEL','onClose','createRoot','call','freeze','unmount','3491470DyxIBj'];_0x3fd6=function(){return _0x4696bb;};return _0x3fd6();}import*as _0x10e8d3 from'react-dom/client';import{CKBox as _0x356a92,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x4cf17f,_0x5db8d8)=>{const _0x47392e=_0x5c77,_0x527156=_0x4cf17f[_0x47392e(0x161)];if(!_0x527156)return![];if(typeof _0x527156==='boolean'){const _0x87228b=()=>{_0x5db8d8();};return{'open':!![],'onClose':_0x87228b};}const _0x5b2316=()=>{const _0x3124e9=_0x47392e;var _0x370617;(_0x370617=_0x527156[_0x3124e9(0x157)])===null||_0x370617===void 0x0?void 0x0:_0x370617[_0x3124e9(0x159)](_0x527156),_0x5db8d8();};return{..._0x527156,'open':!![],'onClose':_0x5b2316};},getAssetsProps=(_0x40e1a1,_0x3c264f)=>{const _0x198b8f=_0x5c77;var _0x5d46cf;const _0x251834=(_0x5d46cf=_0x40e1a1[_0x198b8f(0x15f)])===null||_0x5d46cf===void 0x0?void 0x0:_0x5d46cf['onChoose'];if(!_0x251834)return _0x40e1a1[_0x198b8f(0x15f)];const _0x42d473=_0x364db1=>{const _0x3bf2f6=_0x198b8f;var _0xb9219a;_0x251834(_0x364db1),_0x3c264f&&typeof _0x3c264f!=='boolean'&&((_0xb9219a=_0x3c264f['onClose'])===null||_0xb9219a===void 0x0?void 0x0:_0xb9219a[_0x3bf2f6(0x159)](_0x3c264f));};return{..._0x40e1a1[_0x198b8f(0x15f)],'onChoose':_0x42d473};},mount=(_0x1e065f,_0x31d72f)=>{const _0x23b0a3=_0x5c77,_0x591e85=_0x10e8d3[_0x23b0a3(0x158)](_0x1e065f),_0x18fcc3=_0x591e85[_0x23b0a3(0x15b)][_0x23b0a3(0x163)](_0x591e85),_0x537ebd=getDialogProps(_0x31d72f,_0x18fcc3),_0x415a0a=getAssetsProps(_0x31d72f,_0x537ebd);return _0x591e85[_0x23b0a3(0x154)](_0x3f89cb['createElement'](_0x356a92,{..._0x31d72f,'assets':_0x415a0a,'dialog':_0x537ebd})),{'unmount':_0x18fcc3};},mountImageEditor=(_0x36630d,_0x5eff18)=>{const _0x4a0c23=_0x5c77,_0x4605e2=_0x10e8d3[_0x4a0c23(0x158)](_0x36630d),_0xeba674=_0x4605e2[_0x4a0c23(0x15b)][_0x4a0c23(0x163)](_0x4605e2),_0x8ab90a=()=>{const _0x3d0d39=_0x4a0c23;var _0x15797d;(_0x15797d=_0x5eff18[_0x3d0d39(0x157)])===null||_0x15797d===void 0x0?void 0x0:_0x15797d[_0x3d0d39(0x159)](_0x5eff18),_0xeba674();};return _0x4605e2[_0x4a0c23(0x154)](_0x3f89cb[_0x4a0c23(0x15e)](CKBoxImageEditor,{..._0x5eff18,'open':!![],'onClose':_0x8ab90a})),{'unmount':_0xeba674};};var CKBox=Object[_0x3c60ad(0x15a)]({'__proto__':null,'React':_0x3f89cb,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0xd68599=_0x3c60ad,_0x3ed9e9=globalThis;!_0x3ed9e9[_0xd68599(0x160)]&&(_0x3ed9e9[_0xd68599(0x160)]=CKBox);}());export{mount,mountImageEditor};
4
+ const _0x693d2a=_0x124b;(function(_0x3a0db4,_0x313242){const _0x1eaf32=_0x124b,_0x4f0560=_0x3a0db4();while(!![]){try{const _0x1204c6=-parseInt(_0x1eaf32(0x110))/0x1*(-parseInt(_0x1eaf32(0x10a))/0x2)+parseInt(_0x1eaf32(0x104))/0x3*(-parseInt(_0x1eaf32(0x10d))/0x4)+-parseInt(_0x1eaf32(0x10f))/0x5+-parseInt(_0x1eaf32(0x103))/0x6*(-parseInt(_0x1eaf32(0xfe))/0x7)+parseInt(_0x1eaf32(0x109))/0x8*(parseInt(_0x1eaf32(0xff))/0x9)+parseInt(_0x1eaf32(0xfa))/0xa*(parseInt(_0x1eaf32(0x100))/0xb)+-parseInt(_0x1eaf32(0xfc))/0xc;if(_0x1204c6===_0x313242)break;else _0x4f0560['push'](_0x4f0560['shift']());}catch(_0x373069){_0x4f0560['push'](_0x4f0560['shift']());}}}(_0x4bfd,0x960c6));import*as _0x235a76 from'react';export{_0x235a76 as React};import*as _0x3197f4 from'react-dom/client';import{CKBox as _0x3f3989,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';function _0x4bfd(){const _0x145f4f=['bind','842570VDOWbR','9488mlYsCa','70IJbaIy','onChoose','13093080XdLIkC','onClose','7NgOcGd','246663Cecaob','261085upwPCV','CKBox','createRoot','5418582KwhwBl','9QQdJfE','createElement','render','call','dialog','280pnOZCU','74BzAUxD','assets','freeze','673788zozohu'];_0x4bfd=function(){return _0x145f4f;};return _0x4bfd();}const getDialogProps=(_0x3ed739,_0x530316)=>{const _0x2c55a3=_0x124b,_0x189592=_0x3ed739[_0x2c55a3(0x108)];if(!_0x189592)return![];if(typeof _0x189592==='boolean'){const _0x5f2a33=()=>{_0x530316();};return{'open':!![],'onClose':_0x5f2a33};}const _0x47089c=()=>{const _0x557d00=_0x2c55a3;var _0x32be84;(_0x32be84=_0x189592[_0x557d00(0xfd)])===null||_0x32be84===void 0x0?void 0x0:_0x32be84[_0x557d00(0x107)](_0x189592),_0x530316();};return{..._0x189592,'open':!![],'onClose':_0x47089c};},getAssetsProps=(_0x45bb52,_0x4f8690)=>{const _0xc25770=_0x124b;var _0x1323e9;const _0x4e3809=(_0x1323e9=_0x45bb52[_0xc25770(0x10b)])===null||_0x1323e9===void 0x0?void 0x0:_0x1323e9[_0xc25770(0xfb)];if(!_0x4e3809)return _0x45bb52[_0xc25770(0x10b)];const _0x567eb5=_0x5bbfc7=>{const _0x21f402=_0xc25770;var _0x25af56;_0x4e3809(_0x5bbfc7),_0x4f8690&&typeof _0x4f8690!=='boolean'&&((_0x25af56=_0x4f8690[_0x21f402(0xfd)])===null||_0x25af56===void 0x0?void 0x0:_0x25af56[_0x21f402(0x107)](_0x4f8690));};return{..._0x45bb52['assets'],'onChoose':_0x567eb5};},mount=(_0xab15ba,_0x20aa67)=>{const _0x3a315b=_0x124b,_0x1f06bf=_0x3197f4[_0x3a315b(0x102)](_0xab15ba),_0x3e4923=_0x1f06bf['unmount'][_0x3a315b(0x10e)](_0x1f06bf),_0x1dcc13=getDialogProps(_0x20aa67,_0x3e4923),_0x5308d8=getAssetsProps(_0x20aa67,_0x1dcc13);return _0x1f06bf[_0x3a315b(0x106)](_0x235a76[_0x3a315b(0x105)](_0x3f3989,{..._0x20aa67,'assets':_0x5308d8,'dialog':_0x1dcc13})),{'unmount':_0x3e4923};},mountImageEditor=(_0x37dc3f,_0x589fd4)=>{const _0x17a77a=_0x124b,_0x1fb317=_0x3197f4[_0x17a77a(0x102)](_0x37dc3f),_0x4f25f6=_0x1fb317['unmount'][_0x17a77a(0x10e)](_0x1fb317),_0x408173=()=>{const _0x3442bc=_0x17a77a;var _0x3c26b7;(_0x3c26b7=_0x589fd4['onClose'])===null||_0x3c26b7===void 0x0?void 0x0:_0x3c26b7[_0x3442bc(0x107)](_0x589fd4),_0x4f25f6();};return _0x1fb317[_0x17a77a(0x106)](_0x235a76['createElement'](CKBoxImageEditor,{..._0x589fd4,'open':!![],'onClose':_0x408173})),{'unmount':_0x4f25f6};};function _0x124b(_0x4eeede,_0x5d8030){const _0x4bfd9d=_0x4bfd();return _0x124b=function(_0x124bde,_0x421eb5){_0x124bde=_0x124bde-0xfa;let _0x87160e=_0x4bfd9d[_0x124bde];return _0x87160e;},_0x124b(_0x4eeede,_0x5d8030);}var CKBox=Object[_0x693d2a(0x10c)]({'__proto__':null,'React':_0x235a76,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x8f3e16=_0x693d2a,_0x39020c=globalThis;!_0x39020c[_0x8f3e16(0x101)]&&(_0x39020c[_0x8f3e16(0x101)]=CKBox);}());export{mount,mountImageEditor};