ckbox 2.8.2 → 2.9.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 _0x578569=_0xc7d0;(function(_0xdd8420,_0x3ab543){const _0x4003ff=_0xc7d0,_0x35feab=_0xdd8420();while(!![]){try{const _0x31d70c=parseInt(_0x4003ff(0x190))/0x1*(parseInt(_0x4003ff(0x19e))/0x2)+parseInt(_0x4003ff(0x194))/0x3+parseInt(_0x4003ff(0x196))/0x4*(parseInt(_0x4003ff(0x191))/0x5)+parseInt(_0x4003ff(0x19b))/0x6*(parseInt(_0x4003ff(0x18e))/0x7)+-parseInt(_0x4003ff(0x199))/0x8*(parseInt(_0x4003ff(0x19a))/0x9)+-parseInt(_0x4003ff(0x197))/0xa+-parseInt(_0x4003ff(0x19f))/0xb;if(_0x31d70c===_0x3ab543)break;else _0x35feab['push'](_0x35feab['shift']());}catch(_0x36505f){_0x35feab['push'](_0x35feab['shift']());}}}(_0x28d0,0x674a7));function _0xc7d0(_0x58cce2,_0x4e4864){const _0x28d029=_0x28d0();return _0xc7d0=function(_0xc7d058,_0x447cbd){_0xc7d058=_0xc7d058-0x18d;let _0x2b67c5=_0x28d029[_0xc7d058];return _0x2b67c5;},_0xc7d0(_0x58cce2,_0x4e4864);}import*as _0xf8da10 from'react';export{_0xf8da10 as React};import*as _0x755e57 from'react-dom/client';function _0x28d0(){const _0x5cb093=['42184dUzpFX','603FqmJJb','1916286jtOTai','CKBox','bind','828062REXmOH','3664254AbriAf','onChoose','createRoot','call','boolean','unmount','7ahJAwj','freeze','1LSpSrt','10sLVEjm','render','onClose','332109HTfdjK','createElement','892632LVFWWD','1809470lzGIhG','assets'];_0x28d0=function(){return _0x5cb093;};return _0x28d0();}import{CKBox as _0x1a8def,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x37eb24,_0x324f8b)=>{const _0x4f5771=_0xc7d0,_0x2f7f23=_0x37eb24['dialog'];if(!_0x2f7f23)return![];if(typeof _0x2f7f23===_0x4f5771(0x1a3)){const _0x5bf130=()=>{_0x324f8b();};return{'open':!![],'onClose':_0x5bf130};}const _0x5597a8=()=>{const _0x646a8f=_0x4f5771;var _0x299403;(_0x299403=_0x2f7f23[_0x646a8f(0x193)])===null||_0x299403===void 0x0?void 0x0:_0x299403['call'](_0x2f7f23),_0x324f8b();};return{..._0x2f7f23,'open':!![],'onClose':_0x5597a8};},getAssetsProps=(_0x3a0065,_0x4caac0)=>{const _0x1eeadd=_0xc7d0;var _0x49b776;const _0x16d36d=(_0x49b776=_0x3a0065[_0x1eeadd(0x198)])===null||_0x49b776===void 0x0?void 0x0:_0x49b776[_0x1eeadd(0x1a0)];if(!_0x16d36d)return _0x3a0065[_0x1eeadd(0x198)];const _0x39d51f=_0x20bfd4=>{const _0x5047a0=_0x1eeadd;var _0x52ffe1;_0x16d36d(_0x20bfd4),_0x4caac0&&typeof _0x4caac0!=='boolean'&&((_0x52ffe1=_0x4caac0['onClose'])===null||_0x52ffe1===void 0x0?void 0x0:_0x52ffe1[_0x5047a0(0x1a2)](_0x4caac0));};return{..._0x3a0065[_0x1eeadd(0x198)],'onChoose':_0x39d51f};},mount=(_0x9985f0,_0x104ae0)=>{const _0x1d14eb=_0xc7d0,_0x5d79f1=_0x755e57[_0x1d14eb(0x1a1)](_0x9985f0),_0x909217=_0x5d79f1[_0x1d14eb(0x18d)][_0x1d14eb(0x19d)](_0x5d79f1),_0x550a24=getDialogProps(_0x104ae0,_0x909217),_0x3e1727=getAssetsProps(_0x104ae0,_0x550a24);return _0x5d79f1['render'](_0xf8da10['createElement'](_0x1a8def,{..._0x104ae0,'assets':_0x3e1727,'dialog':_0x550a24})),{'unmount':_0x909217};},mountImageEditor=(_0x48dedd,_0x42901b)=>{const _0x34e027=_0xc7d0,_0x61dfa7=_0x755e57[_0x34e027(0x1a1)](_0x48dedd),_0x2bca32=_0x61dfa7[_0x34e027(0x18d)][_0x34e027(0x19d)](_0x61dfa7),_0x5b2985=()=>{const _0x594593=_0x34e027;var _0x5978ba;(_0x5978ba=_0x42901b[_0x594593(0x193)])===null||_0x5978ba===void 0x0?void 0x0:_0x5978ba['call'](_0x42901b),_0x2bca32();};return _0x61dfa7[_0x34e027(0x192)](_0xf8da10[_0x34e027(0x195)](CKBoxImageEditor,{..._0x42901b,'open':!![],'onClose':_0x5b2985})),{'unmount':_0x2bca32};};var CKBox=Object[_0x578569(0x18f)]({'__proto__':null,'React':_0xf8da10,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x362126=_0x578569,_0x1b7e9b=globalThis;!_0x1b7e9b[_0x362126(0x19c)]&&(_0x1b7e9b['CKBox']=CKBox);}());export{mount,mountImageEditor};
4
+ const _0x398c15=_0x5b9d;(function(_0x1530b4,_0x1d6fd3){const _0x2b06c2=_0x5b9d,_0x3d55cd=_0x1530b4();while(!![]){try{const _0x43e4e1=parseInt(_0x2b06c2(0x1a1))/0x1+parseInt(_0x2b06c2(0x195))/0x2+-parseInt(_0x2b06c2(0x1a0))/0x3*(-parseInt(_0x2b06c2(0x199))/0x4)+-parseInt(_0x2b06c2(0x1a5))/0x5*(-parseInt(_0x2b06c2(0x19b))/0x6)+parseInt(_0x2b06c2(0x198))/0x7+parseInt(_0x2b06c2(0x19c))/0x8+-parseInt(_0x2b06c2(0x1a3))/0x9;if(_0x43e4e1===_0x1d6fd3)break;else _0x3d55cd['push'](_0x3d55cd['shift']());}catch(_0x59cfd9){_0x3d55cd['push'](_0x3d55cd['shift']());}}}(_0xaf6a,0x2fa20));import*as _0x2431b2 from'react';export{_0x2431b2 as React};function _0xaf6a(){const _0x441ff9=['unmount','1015878trxTVd','3017840cGPJrK','render','dialog','call','10419lJHxVQ','363503tsjzOY','createElement','10988325pzRrRn','createRoot','5ehkKvf','assets','onChoose','bind','boolean','onClose','509792GyUghS','CKBox','freeze','1684676cOmRET','12wNHOAk'];_0xaf6a=function(){return _0x441ff9;};return _0xaf6a();}import*as _0x2b6ff2 from'react-dom/client';import{CKBox as _0x32bcc0,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x1cb0d1,_0xc5db95)=>{const _0x351320=_0x5b9d,_0x5de55f=_0x1cb0d1[_0x351320(0x19e)];if(!_0x5de55f)return![];if(typeof _0x5de55f===_0x351320(0x193)){const _0x531127=()=>{_0xc5db95();};return{'open':!![],'onClose':_0x531127};}const _0x1375d2=()=>{const _0x4772e8=_0x351320;var _0x90574d;(_0x90574d=_0x5de55f[_0x4772e8(0x194)])===null||_0x90574d===void 0x0?void 0x0:_0x90574d[_0x4772e8(0x19f)](_0x5de55f),_0xc5db95();};return{..._0x5de55f,'open':!![],'onClose':_0x1375d2};},getAssetsProps=(_0x449fc1,_0x533739)=>{const _0x3eec9e=_0x5b9d;var _0x564139;const _0x388054=(_0x564139=_0x449fc1['assets'])===null||_0x564139===void 0x0?void 0x0:_0x564139[_0x3eec9e(0x1a7)];if(!_0x388054)return _0x449fc1[_0x3eec9e(0x1a6)];const _0x3b1998=_0xe491e7=>{const _0x3ca568=_0x3eec9e;var _0x59bda2;_0x388054(_0xe491e7),_0x533739&&typeof _0x533739!==_0x3ca568(0x193)&&((_0x59bda2=_0x533739[_0x3ca568(0x194)])===null||_0x59bda2===void 0x0?void 0x0:_0x59bda2[_0x3ca568(0x19f)](_0x533739));};return{..._0x449fc1[_0x3eec9e(0x1a6)],'onChoose':_0x3b1998};},mount=(_0x42cea3,_0xbb890)=>{const _0xcea95b=_0x5b9d,_0x270b68=_0x2b6ff2[_0xcea95b(0x1a4)](_0x42cea3),_0xb2e78=_0x270b68['unmount']['bind'](_0x270b68),_0x4d65ed=getDialogProps(_0xbb890,_0xb2e78),_0x1aa487=getAssetsProps(_0xbb890,_0x4d65ed);return _0x270b68[_0xcea95b(0x19d)](_0x2431b2[_0xcea95b(0x1a2)](_0x32bcc0,{..._0xbb890,'assets':_0x1aa487,'dialog':_0x4d65ed})),{'unmount':_0xb2e78};},mountImageEditor=(_0x7fadd4,_0x365c23)=>{const _0x4c0b08=_0x5b9d,_0xc7fac1=_0x2b6ff2[_0x4c0b08(0x1a4)](_0x7fadd4),_0x2e4b98=_0xc7fac1[_0x4c0b08(0x19a)][_0x4c0b08(0x192)](_0xc7fac1),_0x48b26f=()=>{const _0xde2df0=_0x4c0b08;var _0x27fb5d;(_0x27fb5d=_0x365c23[_0xde2df0(0x194)])===null||_0x27fb5d===void 0x0?void 0x0:_0x27fb5d['call'](_0x365c23),_0x2e4b98();};return _0xc7fac1[_0x4c0b08(0x19d)](_0x2431b2[_0x4c0b08(0x1a2)](CKBoxImageEditor,{..._0x365c23,'open':!![],'onClose':_0x48b26f})),{'unmount':_0x2e4b98};};var CKBox=Object[_0x398c15(0x197)]({'__proto__':null,'React':_0x2431b2,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x4aa677=_0x398c15,_0x5909cf=globalThis;!_0x5909cf['CKBox']&&(_0x5909cf[_0x4aa677(0x196)]=CKBox);}());function _0x5b9d(_0x4b684b,_0x4f0811){const _0xaf6a78=_0xaf6a();return _0x5b9d=function(_0x5b9d99,_0x245896){_0x5b9d99=_0x5b9d99-0x192;let _0x1c00ee=_0xaf6a78[_0x5b9d99];return _0x1c00ee;},_0x5b9d(_0x4b684b,_0x4f0811);}export{mount,mountImageEditor};