ckbox 2.3.0 → 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/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 _0x1658c8=_0x1fda;(function(_0x2ca185,_0x5dbcbf){const _0x8527f7=_0x1fda,_0x42f694=_0x2ca185();while(!![]){try{const _0x28e53e=-parseInt(_0x8527f7(0x108))/0x1*(-parseInt(_0x8527f7(0x11c))/0x2)+-parseInt(_0x8527f7(0x10d))/0x3+-parseInt(_0x8527f7(0x109))/0x4+parseInt(_0x8527f7(0x10a))/0x5*(parseInt(_0x8527f7(0x114))/0x6)+-parseInt(_0x8527f7(0x117))/0x7+-parseInt(_0x8527f7(0x115))/0x8+-parseInt(_0x8527f7(0x11b))/0x9*(-parseInt(_0x8527f7(0x10b))/0xa);if(_0x28e53e===_0x5dbcbf)break;else _0x42f694['push'](_0x42f694['shift']());}catch(_0x23e512){_0x42f694['push'](_0x42f694['shift']());}}}(_0x3e1e,0xf355c));import*as _0x355ea9 from'react';export{_0x355ea9 as React};function _0x1fda(_0x5967a3,_0x4c1326){const _0x3e1ef4=_0x3e1e();return _0x1fda=function(_0x1fda0e,_0x5f97c8){_0x1fda0e=_0x1fda0e-0x108;let _0xfc3662=_0x3e1ef4[_0x1fda0e];return _0xfc3662;},_0x1fda(_0x5967a3,_0x4c1326);}import*as _0x19e39a from'react-dom/client';function _0x3e1e(){const _0x2a481d=['CKBox','9VAUjrV','3844686uGJRgR','call','1bCVGuZ','4744824JXNwLo','1215CxkXpV','33161790aDzEyW','createRoot','868419qnAnFx','assets','onChoose','createElement','freeze','unmount','dialog','2316dOQBUD','14038840edcdPv','render','7735602unVrRs','onClose','boolean'];_0x3e1e=function(){return _0x2a481d;};return _0x3e1e();}import{CKBox as _0x4a7946,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x28cbca,_0x38df47)=>{const _0x4034b0=_0x1fda,_0x1ec53c=_0x28cbca[_0x4034b0(0x113)];if(!_0x1ec53c)return![];if(typeof _0x1ec53c===_0x4034b0(0x119)){const _0x4c93bd=()=>{_0x38df47();};return{'open':!![],'onClose':_0x4c93bd};}const _0xe11b9b=()=>{const _0x104d7c=_0x4034b0;var _0x151ed0;(_0x151ed0=_0x1ec53c[_0x104d7c(0x118)])===null||_0x151ed0===void 0x0?void 0x0:_0x151ed0['call'](_0x1ec53c),_0x38df47();};return{..._0x1ec53c,'open':!![],'onClose':_0xe11b9b};},getAssetsProps=(_0x5f2b3b,_0x214d0a)=>{const _0x31bde6=_0x1fda;var _0x597cf3;const _0x2053ad=(_0x597cf3=_0x5f2b3b[_0x31bde6(0x10e)])===null||_0x597cf3===void 0x0?void 0x0:_0x597cf3[_0x31bde6(0x10f)];if(!_0x2053ad)return _0x5f2b3b[_0x31bde6(0x10e)];const _0x5e3eca=_0x41c65e=>{const _0x430289=_0x31bde6;var _0x1cd1ae;_0x2053ad(_0x41c65e),_0x214d0a&&typeof _0x214d0a!==_0x430289(0x119)&&((_0x1cd1ae=_0x214d0a[_0x430289(0x118)])===null||_0x1cd1ae===void 0x0?void 0x0:_0x1cd1ae[_0x430289(0x11d)](_0x214d0a));};return{..._0x5f2b3b['assets'],'onChoose':_0x5e3eca};},mount=(_0x44d92e,_0x1d582c)=>{const _0x1464ae=_0x1fda,_0x3d28b0=_0x19e39a[_0x1464ae(0x10c)](_0x44d92e),_0x2a0cc2=_0x3d28b0[_0x1464ae(0x112)]['bind'](_0x3d28b0),_0xb157b4=getDialogProps(_0x1d582c,_0x2a0cc2),_0x3037e5=getAssetsProps(_0x1d582c,_0xb157b4);return _0x3d28b0['render'](_0x355ea9[_0x1464ae(0x110)](_0x4a7946,{..._0x1d582c,'assets':_0x3037e5,'dialog':_0xb157b4})),{'unmount':_0x2a0cc2};},mountImageEditor=(_0x281383,_0x34857a)=>{const _0x44eaec=_0x1fda,_0x2eb79c=_0x19e39a[_0x44eaec(0x10c)](_0x281383),_0x371bb6=_0x2eb79c['unmount']['bind'](_0x2eb79c),_0x1249ee=()=>{const _0x1bae12=_0x44eaec;var _0x19d413;(_0x19d413=_0x34857a['onClose'])===null||_0x19d413===void 0x0?void 0x0:_0x19d413[_0x1bae12(0x11d)](_0x34857a),_0x371bb6();};return _0x2eb79c[_0x44eaec(0x116)](_0x355ea9['createElement'](CKBoxImageEditor,{..._0x34857a,'open':!![],'onClose':_0x1249ee})),{'unmount':_0x371bb6};};var CKBox=Object[_0x1658c8(0x111)]({'__proto__':null,'React':_0x355ea9,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x4903f8=_0x1658c8,_0x593dde=globalThis;!_0x593dde[_0x4903f8(0x11a)]&&(_0x593dde[_0x4903f8(0x11a)]=CKBox);}());export{mount,mountImageEditor};
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};