ckbox 2.3.0 → 2.4.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 _0x1a5d08=_0x40f6;(function(_0x385c88,_0x4e739c){const _0x106d8c=_0x40f6,_0x9d65b=_0x385c88();while(!![]){try{const _0x4a07cc=-parseInt(_0x106d8c(0x172))/0x1*(-parseInt(_0x106d8c(0x17a))/0x2)+-parseInt(_0x106d8c(0x16f))/0x3*(-parseInt(_0x106d8c(0x17f))/0x4)+parseInt(_0x106d8c(0x170))/0x5*(parseInt(_0x106d8c(0x179))/0x6)+parseInt(_0x106d8c(0x173))/0x7+parseInt(_0x106d8c(0x177))/0x8*(parseInt(_0x106d8c(0x180))/0x9)+parseInt(_0x106d8c(0x175))/0xa+-parseInt(_0x106d8c(0x183))/0xb;if(_0x4a07cc===_0x4e739c)break;else _0x9d65b['push'](_0x9d65b['shift']());}catch(_0x25ba28){_0x9d65b['push'](_0x9d65b['shift']());}}}(_0x38e8,0x1eada));function _0x38e8(){const _0x31979e=['1807520FXXaZE','onClose','88KjMrvY','freeze','12cJFpvM','193874PJaDOu','assets','dialog','CKBox','unmount','123116qEcMne','144234JhGEbJ','createRoot','bind','4615028btaXKz','createElement','onChoose','3vTCgiG','94895wBLttP','boolean','1iPViPd','157458tBEDIX','call'];_0x38e8=function(){return _0x31979e;};return _0x38e8();}import*as _0x269695 from'react';export{_0x269695 as React};function _0x40f6(_0xcf6a47,_0x3d2fc8){const _0x38e81e=_0x38e8();return _0x40f6=function(_0x40f689,_0xbff1a4){_0x40f689=_0x40f689-0x16d;let _0x2d58dc=_0x38e81e[_0x40f689];return _0x2d58dc;},_0x40f6(_0xcf6a47,_0x3d2fc8);}import*as _0x59bbf from'react-dom/client';import{CKBox as _0x5cf7e6,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x41ae2a,_0x20dd05)=>{const _0x3c26c6=_0x40f6,_0x5d0207=_0x41ae2a[_0x3c26c6(0x17c)];if(!_0x5d0207)return![];if(typeof _0x5d0207===_0x3c26c6(0x171)){const _0xfef2e4=()=>{_0x20dd05();};return{'open':!![],'onClose':_0xfef2e4};}const _0x47addc=()=>{const _0x567533=_0x3c26c6;var _0x15aa1f;(_0x15aa1f=_0x5d0207[_0x567533(0x176)])===null||_0x15aa1f===void 0x0?void 0x0:_0x15aa1f['call'](_0x5d0207),_0x20dd05();};return{..._0x5d0207,'open':!![],'onClose':_0x47addc};},getAssetsProps=(_0x547aa9,_0x48cc23)=>{const _0x17a6f2=_0x40f6;var _0x3d4417;const _0x1b30a7=(_0x3d4417=_0x547aa9['assets'])===null||_0x3d4417===void 0x0?void 0x0:_0x3d4417[_0x17a6f2(0x16e)];if(!_0x1b30a7)return _0x547aa9[_0x17a6f2(0x17b)];const _0x2e4a7a=_0x945d1f=>{const _0x4653d0=_0x17a6f2;var _0x393baf;_0x1b30a7(_0x945d1f),_0x48cc23&&typeof _0x48cc23!=='boolean'&&((_0x393baf=_0x48cc23[_0x4653d0(0x176)])===null||_0x393baf===void 0x0?void 0x0:_0x393baf[_0x4653d0(0x174)](_0x48cc23));};return{..._0x547aa9[_0x17a6f2(0x17b)],'onChoose':_0x2e4a7a};},mount=(_0xd38293,_0x54c4ec)=>{const _0x25e543=_0x40f6,_0x1d8b4f=_0x59bbf[_0x25e543(0x181)](_0xd38293),_0x1746fb=_0x1d8b4f[_0x25e543(0x17e)]['bind'](_0x1d8b4f),_0x2454bf=getDialogProps(_0x54c4ec,_0x1746fb),_0x3d8fde=getAssetsProps(_0x54c4ec,_0x2454bf);return _0x1d8b4f['render'](_0x269695[_0x25e543(0x16d)](_0x5cf7e6,{..._0x54c4ec,'assets':_0x3d8fde,'dialog':_0x2454bf})),{'unmount':_0x1746fb};},mountImageEditor=(_0x39fd65,_0xcd9fce)=>{const _0x2616f4=_0x40f6,_0x1c754c=_0x59bbf['createRoot'](_0x39fd65),_0x22c920=_0x1c754c[_0x2616f4(0x17e)][_0x2616f4(0x182)](_0x1c754c),_0x580b0c=()=>{const _0x52a8df=_0x2616f4;var _0x182f36;(_0x182f36=_0xcd9fce[_0x52a8df(0x176)])===null||_0x182f36===void 0x0?void 0x0:_0x182f36[_0x52a8df(0x174)](_0xcd9fce),_0x22c920();};return _0x1c754c['render'](_0x269695[_0x2616f4(0x16d)](CKBoxImageEditor,{..._0xcd9fce,'open':!![],'onClose':_0x580b0c})),{'unmount':_0x22c920};};var CKBox=Object[_0x1a5d08(0x178)]({'__proto__':null,'React':_0x269695,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x3d3d5c=_0x1a5d08,_0x4c7a82=globalThis;!_0x4c7a82[_0x3d3d5c(0x17d)]&&(_0x4c7a82['CKBox']=CKBox);}());export{mount,mountImageEditor};