everest-npm-features 0.0.61 → 0.0.63
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/ArrowBack-DEJjwfp0.js +8 -0
- package/dist/{Cancel-4lT7GZUA.js → Cancel-pHQsCjtK.js} +1 -1
- package/dist/{Close-CNwiMz_O.js → Close-DSxLLo08.js} +1 -1
- package/dist/{ContentCopy-coPwrEuz.js → ContentCopy-D0C0zbQj.js} +1 -1
- package/dist/{Delete-jpMstGIF.js → Delete-Bj8zmXnh.js} +1 -1
- package/dist/{ErrorOutline-CPQcnl2b.js → ErrorOutline-Bt7P4ChN.js} +1 -1
- package/dist/{FileDownload-Bt3R_NBr.js → FileDownload-DqREXR3D.js} +1 -1
- package/dist/{Info-BVeUSPyk.js → Info-DOoRR7sR.js} +1 -1
- package/dist/PlayArrow-71FP5PzJ.js +13 -0
- package/dist/Portal-BeS9yJCZ.js +968 -0
- package/dist/assets/styles.css +1 -1
- package/dist/{auth-Cwq6nfwY.js → auth-BBeOw4mt.js} +11 -11
- package/dist/{bank-C4pmTe--.js → bank-HVb0GFsa.js} +1 -1
- package/dist/components/RocketRamp/MinimalKyc/form.js +46 -51
- package/dist/components/RocketRamp/MinimalKyc/index.js +6 -6
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +6 -8
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +5 -8
- package/dist/components/RocketRamp/Player/Buy/form.js +8 -17
- package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
- package/dist/components/RocketRamp/Player/Dashboard/balance.js +20 -26
- package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
- package/dist/components/RocketRamp/Player/Dashboard/transaction.js +13 -16
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +6 -11
- package/dist/components/RocketRamp/Player/Sell/form.js +8 -17
- package/dist/components/RocketRamp/Player/Sell/index.js +14 -13
- package/dist/components/RocketRamp/Player/SignIn/index.js +23 -25
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +33 -35
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +31 -33
- package/dist/components/RocketRamp/Player/SignUp/email.js +21 -23
- package/dist/components/RocketRamp/Player/SignUp/index.js +49 -52
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +68 -74
- package/dist/components/RocketRamp/Player/SignUp/summary.js +23 -25
- package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +23 -25
- package/dist/components/RocketRamp/ResetPassword/index.js +23 -25
- package/dist/components/RocketRamp/Shared/Button/index.js +16 -17
- package/dist/components/RocketRamp/Shared/Input/index.js +27 -30
- package/dist/components/RocketRamp/Shared/backBtn.js +10 -11
- package/dist/components/RocketRamp/Shared/transactionItem.js +40 -45
- package/dist/components/RocketRamp/Store/Dashboard/balance.js +12 -17
- package/dist/components/RocketRamp/Store/Dashboard/index.js +11 -12
- package/dist/components/RocketRamp/Store/Dashboard/stats.js +12 -17
- package/dist/components/RocketRamp/Store/Dashboard/transaction.js +13 -16
- package/dist/components/RocketRamp/Store/SignUp/index.js +53 -56
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +48 -54
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +33 -37
- package/dist/components/RocketRamp/Store/SignUp/summary.js +21 -23
- package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +23 -25
- package/dist/components/RocketRamp/Transactions/index.js +23 -24
- package/dist/components/Shared/FullKyc/countryList.js +15 -17
- package/dist/components/Shared/FullKyc/edd.js +51 -53
- package/dist/components/Shared/FullKyc/index.js +13 -11
- package/dist/components/Shared/FullKyc/pep.js +35 -43
- package/dist/components/Shared/FullKyc/personalDetails.js +6 -6
- package/dist/components/Shared/FullKyc/userInfo.js +8 -13
- package/dist/components/Shared/HistoryItem/index.js +43 -48
- package/dist/components/Shared/Incode/index.js +31 -35
- package/dist/components/Shared/MinimalKyc/index.js +60 -65
- package/dist/components/Shared/Sumsub/index.js +75 -62
- package/dist/components/Shared/loader.js +4 -5
- package/dist/components/Shared/tooltip.js +2 -2
- package/dist/components/Shared/transition.js +4 -4
- package/dist/components/Wallet/Account/createIban.d.ts +1 -2
- package/dist/components/Wallet/Account/createIban.js +324 -102
- package/dist/components/Wallet/Account/eWallet.js +37 -43
- package/dist/components/Wallet/Account/iban.d.ts +1 -0
- package/dist/components/Wallet/Account/iban.js +41 -45
- package/dist/components/Wallet/Account/ibanItem.js +70 -75
- package/dist/components/Wallet/Account/index.d.ts +1 -0
- package/dist/components/Wallet/Account/index.js +113 -118
- package/dist/components/Wallet/Account/sendIban.js +79 -88
- package/dist/components/Wallet/Buy/confirmTransaction.js +9 -11
- package/dist/components/Wallet/Buy/form.js +8 -18
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +16 -18
- package/dist/components/Wallet/EnterpriseKyc/edd.js +32 -33
- package/dist/components/Wallet/EnterpriseKyc/index.js +73 -77
- package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
- package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
- package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +33 -34
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3591 -1482
- package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
- package/dist/components/Wallet/EnterpriseKyc/verify.js +22 -22
- package/dist/components/Wallet/History/index.js +23 -797
- package/dist/components/Wallet/Home/index.js +13 -14
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +122 -126
- package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
- package/dist/components/Wallet/Portfolio/index.js +48 -51
- package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
- package/dist/components/Wallet/Profile/documents.js +164 -176
- package/dist/components/Wallet/Profile/index.js +39 -44
- package/dist/components/Wallet/Profile/storage.js +39 -47
- package/dist/components/Wallet/Receive/index.js +32 -37
- package/dist/components/Wallet/Sell/confirmTransaction.js +8 -10
- package/dist/components/Wallet/Sell/form.js +8 -18
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +98 -107
- package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
- package/dist/components/Wallet/Shared/Auth/otpForm.js +9 -356
- package/dist/components/Wallet/Shared/BankSelect/index.js +45 -49
- package/dist/components/Wallet/Shared/CardCorp/index.js +18 -19
- package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
- package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
- package/dist/components/Wallet/Shared/Container/index.d.ts +2 -1
- package/dist/components/Wallet/Shared/Container/index.js +11 -11
- package/dist/components/Wallet/Shared/Input/index.js +3 -3
- package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
- package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
- package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
- package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
- package/dist/components/Wallet/Shared/addBank.js +41 -45
- package/dist/components/Wallet/Shared/appButton.js +11 -15
- package/dist/components/Wallet/Shared/backBtn.js +8 -9
- package/dist/components/Wallet/Shared/button.js +7 -7
- package/dist/components/Wallet/Shared/connectPlaidBank.js +16 -17
- package/dist/components/Wallet/Shared/inputField.js +5 -5
- package/dist/components/Wallet/Shared/manualSend.js +9 -13
- package/dist/components/Wallet/Shared/noData.js +4 -5
- package/dist/components/Wallet/Shared/pin.js +25 -27
- package/dist/components/Wallet/Shared/radioButton.js +39 -5
- package/dist/components/Wallet/Shared/step.js +12 -13
- package/dist/components/Wallet/Shared/timer.js +1 -1
- package/dist/components/Wallet/SignIn/index.js +17 -17
- package/dist/components/Wallet/SignUp/index.js +63 -153
- package/dist/components/Wallet/SignUp/terms.js +1 -1
- package/dist/components/Wallet/Stake/gems/index.js +71 -69
- package/dist/components/Wallet/Stake/id/index.js +77 -84
- package/dist/components/Wallet/Stake/index.js +65 -68
- package/dist/components/Wallet/Swap/form.js +11 -20
- package/dist/components/Wallet/Swap/index.js +5 -5
- package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
- package/dist/components/Wallet/Withdraw/bankSelect.js +41 -45
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -8
- package/dist/components/Wallet/Withdraw/form.js +6 -17
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-DrmtdI1J.js → constants-DX0YBtP2.js} +19 -19
- package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
- package/dist/{cryptoAssets-DyGDknvq.js → cryptoAssets-B8rAI7pp.js} +1 -1
- package/dist/hoc/withThemeProvider.js +5 -732
- package/dist/hooks/useDialog/index.js +22 -23
- package/dist/hooks/useRrDialog/index.js +43 -46
- package/dist/hooks/useSnackBar.js +24 -696
- package/dist/icons/buyIcon.js +1 -1
- package/dist/icons/canceledBuyIcon.js +1 -1
- package/dist/icons/canceledRedeemIcon.js +1 -1
- package/dist/icons/failedBuyIcon.js +2 -2
- package/dist/icons/failedRedeemIcon.js +2 -2
- package/dist/icons/pendingBuyIcon.js +1 -1
- package/dist/icons/pendingRedeemIcon.js +1 -1
- package/dist/icons/redeemIcon.js +1 -1
- package/dist/{index-BbVpeed7.js → index-B4XvACQN.js} +89 -98
- package/dist/{index-BHG1bT4t.js → index-CTPMPwYK.js} +173 -182
- package/dist/{index-Dh_ahu-u.js → index-DkiQ8pRO.js} +95 -106
- package/dist/{index-C7Td5yoW.js → index-DuWW5roi.js} +175 -184
- package/dist/{index-eEBuSKOo.js → index-JY6-UKlX.js} +127 -137
- package/dist/{index-D2JWUPz8.js → index-_fiTunwZ.js} +154 -163
- package/dist/{index-B9oucF3r.js → index-bK14vCZw.js} +189 -198
- package/dist/{kyc-ksV3vBP_.js → kyc-BNMPoeHt.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/memoTheme-DnE8lj0t.js +3481 -0
- package/dist/{order-DEp_Lmar.js → order-BXeCIvqC.js} +1 -1
- package/dist/otpForm-DeeegaX2.js +7378 -0
- package/dist/{stake-Ct7-_aWW.js → stake-BO2TYVJ7.js} +1 -1
- package/dist/styles.module-DFoezEqS.js +28 -0
- package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
- package/dist/tooltip-BW0UyWw7.js +2129 -0
- package/dist/util/constants.d.ts +1 -0
- package/dist/util/constants.js +72 -71
- package/dist/{wallet-CauUBXou.js → wallet-BPXOp8UG.js} +1 -1
- package/package.json +6 -6
- package/dist/Alert-DzsbFW3-.js +0 -369
- package/dist/Autocomplete-CE-OI2t8.js +0 -2429
- package/dist/Avatar-1XklXr4O.js +0 -281
- package/dist/Backdrop-CioURPVG.js +0 -359
- package/dist/Box-B0YSYLco.js +0 -59
- package/dist/Button-Df4vgU24.js +0 -663
- package/dist/ButtonBase-DLF5c6wi.js +0 -870
- package/dist/CardContent-D9wTdpu-.js +0 -141
- package/dist/CircularProgress-xZA3lvba.js +0 -252
- package/dist/Close-CxzDL3J-.js +0 -9
- package/dist/Container-urNKV7hm.js +0 -181
- package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
- package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
- package/dist/DialogContent-BMwlOnbW.js +0 -567
- package/dist/DialogTitle-CfS0bb2K.js +0 -70
- package/dist/Divider-BShhMFf4.js +0 -297
- package/dist/FilledInput-DuNqnPjc.js +0 -1292
- package/dist/FormControl-RtZDQMdA.js +0 -258
- package/dist/FormControlLabel-BliKW48y.js +0 -519
- package/dist/GlobalStyles-ChMhDfTS.js +0 -59
- package/dist/Grid-CFe3amXO.js +0 -410
- package/dist/Grow-CnGtel3u.js +0 -196
- package/dist/HTMLElementType-BrQSV2FE.js +0 -13
- package/dist/IconButton-DHm-hucF.js +0 -297
- package/dist/InputAdornment-DMiED3JH.js +0 -173
- package/dist/Link-DBA9Yifs.js +0 -266
- package/dist/ListItemIcon-CUcyTEEm.js +0 -84
- package/dist/Menu-DLYFFrEk.js +0 -1239
- package/dist/MenuItem-DUdYOJr4.js +0 -271
- package/dist/Modal-CFIQ_s3T.js +0 -743
- package/dist/Paper-Bgt2WXI6.js +0 -186
- package/dist/PlayArrow-Bjz9LxhD.js +0 -13
- package/dist/Popper-BBAoiZKn.js +0 -1409
- package/dist/Portal-BMAxiQwe.js +0 -69
- package/dist/RadioGroup-nvoSN0JN.js +0 -189
- package/dist/Select-CB5yWmyn.js +0 -1886
- package/dist/Slide-B9Nw0LZ4.js +0 -235
- package/dist/Stack-k55YTxET.js +0 -172
- package/dist/SwitchBase-C8zFyg_x.js +0 -318
- package/dist/TextField-DPpRUQe3.js +0 -978
- package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
- package/dist/Typography-pAaje37G.js +0 -260
- package/dist/chainPropTypes-D9lkm76m.js +0 -8
- package/dist/clsx-BTaloaeC.js +0 -264
- package/dist/createChainedFunction-C0nujS3O.js +0 -9
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
- package/dist/createTheme-CD19zQB7.js +0 -3825
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/defaultTheme-C35y5cLB.js +0 -5
- package/dist/dividerClasses-BDxa2gAa.js +0 -10
- package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
- package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
- package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
- package/dist/exactProp-C1Lmtwf_.js +0 -13
- package/dist/extendSxProp-B8UjbJ56.js +0 -37
- package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
- package/dist/index-B0Z-Gjno.js +0 -22
- package/dist/index-DUcLo3x5.js +0 -43
- package/dist/isFocusVisible-CPZqtjv2.js +0 -12
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-DnSE4qG4.js +0 -13
- package/dist/memoTheme-yHaPezod.js +0 -15
- package/dist/ownerWindow-CRgpWY6I.js +0 -7
- package/dist/radioButton-CzlYB0Lh.js +0 -402
- package/dist/refType-BsTH3qnM.js +0 -56
- package/dist/styles.module-CHPRGltL.js +0 -28
- package/dist/tooltip-3UvETWtS.js +0 -740
- package/dist/useControlled-nm4pBabJ.js +0 -31
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useId-CK6Kn3Tn.js +0 -21
- package/dist/useSlot-CW7SOYlh.js +0 -125
- package/dist/useSlotProps-BfEOwJvJ.js +0 -25
- package/dist/useTheme-BQJ5lp0i.js +0 -11
- package/dist/useTheme-S5_DHFsQ.js +0 -17
- package/dist/useThemeProps-DN9MjdTl.js +0 -29
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
1
|
+
import { jsxs as i, jsx as s, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { Box as a, Typography as n, CircularProgress as h } from "@mui/material";
|
|
2
3
|
import f from "../../../hoc/withThemeProvider.js";
|
|
3
|
-
import
|
|
4
|
-
import { u as
|
|
5
|
-
import { useEffect as
|
|
6
|
-
import "../../../constants-
|
|
7
|
-
import {
|
|
8
|
-
import { useSnackBarContext as
|
|
9
|
-
import
|
|
10
|
-
import { B as n } from "../../../Box-B0YSYLco.js";
|
|
11
|
-
import { T as c } from "../../../Typography-pAaje37G.js";
|
|
12
|
-
import { C as y } from "../../../CircularProgress-xZA3lvba.js";
|
|
4
|
+
import g from "../Shared/Button/index.js";
|
|
5
|
+
import { u as w } from "../../../react-redux-C7I9-1M6.js";
|
|
6
|
+
import { useEffect as c } from "react";
|
|
7
|
+
import "../../../constants-DX0YBtP2.js";
|
|
8
|
+
import { g as x } from "../../../auth-BBeOw4mt.js";
|
|
9
|
+
import { useSnackBarContext as b } from "../../../context/snackBarContext.js";
|
|
10
|
+
import y from "../../../hooks/useEverestDispatch.js";
|
|
13
11
|
const P = ({ onComplete: m, type: d }) => {
|
|
14
|
-
const { showAlertMessage: o } =
|
|
15
|
-
return
|
|
12
|
+
const { showAlertMessage: o } = b(), l = y(), r = w((u) => u.session), t = r.loader, e = r.error;
|
|
13
|
+
return c(() => {
|
|
16
14
|
e && o({ message: e });
|
|
17
|
-
}, [e]),
|
|
18
|
-
|
|
15
|
+
}, [e]), c(() => {
|
|
16
|
+
r.resetPasswordSuccess && (o({
|
|
19
17
|
message: "Reset Password has been done successfully.",
|
|
20
18
|
type: "success"
|
|
21
19
|
}), m());
|
|
22
|
-
}, [
|
|
23
|
-
|
|
20
|
+
}, [r.resetPasswordSuccess]), /* @__PURE__ */ i(
|
|
21
|
+
a,
|
|
24
22
|
{
|
|
25
23
|
sx: {
|
|
26
24
|
padding: { xs: "1rem", md: "2rem" },
|
|
@@ -29,18 +27,18 @@ const P = ({ onComplete: m, type: d }) => {
|
|
|
29
27
|
boxShadow: "0px 0px 64px 0px rgba(247, 247, 248, 1)"
|
|
30
28
|
},
|
|
31
29
|
children: [
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
t || l(
|
|
36
|
-
}, fullWidth: !0, children: /* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ s(n, { variant: "4xl", fontWeight: 600, children: /* @__PURE__ */ s("b", { children: "Reset Password" }) }),
|
|
31
|
+
/* @__PURE__ */ s(n, { variant: "md", children: 'To reset your password, simply click on the "reset password" button, and you will shortly receive an email containing a new password for your Orion Stars account.' }),
|
|
32
|
+
/* @__PURE__ */ s(a, { mt: 4, children: /* @__PURE__ */ s(g, { onClick: () => {
|
|
33
|
+
t || l(x(d));
|
|
34
|
+
}, fullWidth: !0, children: /* @__PURE__ */ s("strong", { children: t ? /* @__PURE__ */ i(p, { children: [
|
|
35
|
+
/* @__PURE__ */ s(h, { size: 15, color: "inherit" }),
|
|
38
36
|
" Processing..."
|
|
39
37
|
] }) : "Submit" }) }) })
|
|
40
38
|
]
|
|
41
39
|
}
|
|
42
40
|
);
|
|
43
|
-
},
|
|
41
|
+
}, W = f(P);
|
|
44
42
|
export {
|
|
45
|
-
|
|
43
|
+
W as default
|
|
46
44
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const f = ({
|
|
1
|
+
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { Button as d, CircularProgress as x } from "@mui/material";
|
|
3
|
+
const m = ({
|
|
5
4
|
children: o,
|
|
6
|
-
variant:
|
|
7
|
-
sx:
|
|
5
|
+
variant: e = "contained",
|
|
6
|
+
sx: r = {},
|
|
8
7
|
customSize: n = "medium",
|
|
9
8
|
isText: i = !1,
|
|
10
9
|
isLoading: l = !1,
|
|
11
|
-
...
|
|
12
|
-
}) => i ? /* @__PURE__ */
|
|
10
|
+
...t
|
|
11
|
+
}) => i ? /* @__PURE__ */ a(
|
|
13
12
|
d,
|
|
14
13
|
{
|
|
15
14
|
variant: "text",
|
|
@@ -27,9 +26,9 @@ const f = ({
|
|
|
27
26
|
"&:focus": {
|
|
28
27
|
background: "none"
|
|
29
28
|
},
|
|
30
|
-
...
|
|
29
|
+
...r
|
|
31
30
|
},
|
|
32
|
-
...
|
|
31
|
+
...t,
|
|
33
32
|
children: o
|
|
34
33
|
}
|
|
35
34
|
) : /* @__PURE__ */ s(
|
|
@@ -37,7 +36,7 @@ const f = ({
|
|
|
37
36
|
{
|
|
38
37
|
fullWidth: !0,
|
|
39
38
|
disableRipple: !0,
|
|
40
|
-
variant:
|
|
39
|
+
variant: e,
|
|
41
40
|
sx: {
|
|
42
41
|
textTransform: "none",
|
|
43
42
|
height: n === "small" ? "2rem" : "3rem",
|
|
@@ -62,14 +61,14 @@ const f = ({
|
|
|
62
61
|
boxShadow: "none"
|
|
63
62
|
}
|
|
64
63
|
},
|
|
65
|
-
...
|
|
64
|
+
...r
|
|
66
65
|
},
|
|
67
|
-
...
|
|
66
|
+
...t,
|
|
68
67
|
children: [
|
|
69
|
-
l && /* @__PURE__ */
|
|
70
|
-
|
|
68
|
+
l && /* @__PURE__ */ a(
|
|
69
|
+
x,
|
|
71
70
|
{
|
|
72
|
-
color:
|
|
71
|
+
color: e === "outlined" ? "primary" : "secondary",
|
|
73
72
|
size: 20
|
|
74
73
|
}
|
|
75
74
|
),
|
|
@@ -78,5 +77,5 @@ const f = ({
|
|
|
78
77
|
}
|
|
79
78
|
);
|
|
80
79
|
export {
|
|
81
|
-
|
|
80
|
+
m as default
|
|
82
81
|
};
|
|
@@ -1,39 +1,36 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { T as u, F as l } from "../../../../TextField-DPpRUQe3.js";
|
|
7
|
-
import { I as g } from "../../../../InputAdornment-DMiED3JH.js";
|
|
8
|
-
const I = ({
|
|
1
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Info as x } from "@mui/icons-material";
|
|
3
|
+
import { FormControl as c, IconButton as s, TextField as u, FormHelperText as m, InputAdornment as f } from "@mui/material";
|
|
4
|
+
import { M as g } from "../../../../tooltip-BW0UyWw7.js";
|
|
5
|
+
const h = ({
|
|
9
6
|
label: t,
|
|
10
|
-
highlightedLabel:
|
|
11
|
-
error:
|
|
7
|
+
highlightedLabel: r,
|
|
8
|
+
error: i,
|
|
12
9
|
errorText: e,
|
|
13
10
|
helperText: d,
|
|
14
|
-
backgroundColor:
|
|
15
|
-
labelFontWeight:
|
|
11
|
+
backgroundColor: a,
|
|
12
|
+
labelFontWeight: l,
|
|
16
13
|
...n
|
|
17
|
-
}) => /* @__PURE__ */
|
|
18
|
-
t && /* @__PURE__ */
|
|
14
|
+
}) => /* @__PURE__ */ p(c, { fullWidth: !0, variant: "outlined", error: i, children: [
|
|
15
|
+
t && /* @__PURE__ */ p(
|
|
19
16
|
"label",
|
|
20
17
|
{
|
|
21
18
|
style: {
|
|
22
|
-
fontSize:
|
|
23
|
-
fontWeight:
|
|
24
|
-
color:
|
|
19
|
+
fontSize: r ? "1.125rem" : "0.75rem",
|
|
20
|
+
fontWeight: l || 400,
|
|
21
|
+
color: r ? "black" : "#1A202C",
|
|
25
22
|
marginBottom: "0.2rem"
|
|
26
23
|
},
|
|
27
24
|
children: [
|
|
28
25
|
t,
|
|
29
26
|
" ",
|
|
30
27
|
n.required ? "*" : null,
|
|
31
|
-
n.showInfoIcon && /* @__PURE__ */ o(
|
|
32
|
-
|
|
28
|
+
n.showInfoIcon && /* @__PURE__ */ o(g, { title: n.tooltipText, placement: "top", children: /* @__PURE__ */ o(
|
|
29
|
+
s,
|
|
33
30
|
{
|
|
34
31
|
className: "info-fee-icon",
|
|
35
32
|
sx: { padding: 0, paddingLeft: "5px", paddingBottom: "3px" },
|
|
36
|
-
children: /* @__PURE__ */ o(
|
|
33
|
+
children: /* @__PURE__ */ o(x, { style: { fontSize: "14px" } })
|
|
37
34
|
}
|
|
38
35
|
) })
|
|
39
36
|
]
|
|
@@ -45,17 +42,17 @@ const I = ({
|
|
|
45
42
|
variant: "outlined",
|
|
46
43
|
fullWidth: !0,
|
|
47
44
|
sx: {
|
|
48
|
-
backgroundColor:
|
|
49
|
-
borderColor:
|
|
45
|
+
backgroundColor: a ?? "white",
|
|
46
|
+
borderColor: i ? "red" : "#1A202C"
|
|
50
47
|
},
|
|
51
|
-
error:
|
|
48
|
+
error: i,
|
|
52
49
|
...n
|
|
53
50
|
}
|
|
54
51
|
),
|
|
55
|
-
e && /* @__PURE__ */ o(
|
|
56
|
-
d && /* @__PURE__ */ o(
|
|
57
|
-
] }),
|
|
58
|
-
|
|
52
|
+
e && /* @__PURE__ */ o(m, { sx: { color: "red", margin: "5px 0px" }, children: e }),
|
|
53
|
+
d && /* @__PURE__ */ o(m, { sx: { color: "#718096", margin: "5px 0px" }, children: d })
|
|
54
|
+
] }), A = (t) => /* @__PURE__ */ o(
|
|
55
|
+
h,
|
|
59
56
|
{
|
|
60
57
|
...t,
|
|
61
58
|
inputProps: {
|
|
@@ -68,7 +65,7 @@ const I = ({
|
|
|
68
65
|
padding: 0
|
|
69
66
|
},
|
|
70
67
|
endAdornment: /* @__PURE__ */ o(
|
|
71
|
-
|
|
68
|
+
f,
|
|
72
69
|
{
|
|
73
70
|
sx: {
|
|
74
71
|
backgroundColor: "#f0f0f0",
|
|
@@ -86,6 +83,6 @@ const I = ({
|
|
|
86
83
|
}
|
|
87
84
|
);
|
|
88
85
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
A as UserNameInputField,
|
|
87
|
+
h as default
|
|
91
88
|
};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const n = r(/* @__PURE__ */ o("path", {
|
|
1
|
+
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { c as e } from "../../../createSvgIcon-B28GrUxG.js";
|
|
3
|
+
import { IconButton as r, Typography as c } from "@mui/material";
|
|
4
|
+
const n = e(/* @__PURE__ */ t("path", {
|
|
6
5
|
d: "M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"
|
|
7
|
-
}), "KeyboardBackspace"),
|
|
8
|
-
|
|
6
|
+
}), "KeyboardBackspace"), p = ({ onClickHandler: o }) => /* @__PURE__ */ a(
|
|
7
|
+
r,
|
|
9
8
|
{
|
|
10
|
-
onClick:
|
|
9
|
+
onClick: o,
|
|
11
10
|
disableRipple: !0,
|
|
12
11
|
sx: { justifyContent: "flex-start", padding: "0", color: "black" },
|
|
13
12
|
children: [
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
13
|
+
/* @__PURE__ */ t(n, { fontSize: "medium" }),
|
|
14
|
+
/* @__PURE__ */ t(c, { variant: "lg", my: 2, fontWeight: 400, ml: 1, children: "Back" })
|
|
16
15
|
]
|
|
17
16
|
}
|
|
18
17
|
);
|
|
19
18
|
export {
|
|
20
|
-
|
|
19
|
+
p as default
|
|
21
20
|
};
|
|
@@ -1,33 +1,28 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import h from "
|
|
3
|
-
import
|
|
4
|
-
import g from "../../../icons/
|
|
5
|
-
import I from "../../../icons/
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
import { I as D } from "../../../IconButton-DHm-hucF.js";
|
|
15
|
-
import { c as R } from "../../../createSvgIcon-Cuzqm90l.js";
|
|
16
|
-
const S = R(/* @__PURE__ */ e("path", {
|
|
17
|
-
d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
18
|
-
}), "ChevronRight"), k = ({
|
|
2
|
+
import { Card as h, CardContent as x, Box as t, Typography as o, IconButton as T } from "@mui/material";
|
|
3
|
+
import { ChevronRight as _ } from "@mui/icons-material";
|
|
4
|
+
import g from "../../../icons/buyIcon.js";
|
|
5
|
+
import I from "../../../icons/pendingBuyIcon.js";
|
|
6
|
+
import y from "../../../icons/canceledBuyIcon.js";
|
|
7
|
+
import L from "../../../icons/failedBuyIcon.js";
|
|
8
|
+
import A from "../../../icons/redeemIcon.js";
|
|
9
|
+
import E from "../../../icons/pendingRedeemIcon.js";
|
|
10
|
+
import B from "../../../icons/canceledRedeemIcon.js";
|
|
11
|
+
import D from "../../../icons/failedRedeemIcon.js";
|
|
12
|
+
import { TS_COMPLETE_LABEL as i, TOKEN_TO_FIAT as R, TS_WAIT_APPROVAL_LABEL as s, TS_CREATED_LABEL as l, TS_PENDING_LABEL as m, TS_NOT_APPROVAL_LABEL as d, TS_FAIL_LABEL as p, FIAT_TO_TOKEN as w } from "../../../util/constants.js";
|
|
13
|
+
const V = ({
|
|
19
14
|
transaction: r
|
|
20
15
|
}) => {
|
|
21
|
-
const
|
|
22
|
-
const n = new Date(
|
|
23
|
-
return
|
|
16
|
+
const u = (f) => {
|
|
17
|
+
const n = new Date(f), c = /* @__PURE__ */ new Date();
|
|
18
|
+
return c.setHours(0, 0, 0, 0), new Date(
|
|
24
19
|
n.getFullYear(),
|
|
25
20
|
n.getMonth(),
|
|
26
21
|
n.getDate()
|
|
27
|
-
).getTime() ===
|
|
22
|
+
).getTime() === c.getTime() ? "Today" : n.toISOString().split("T")[0];
|
|
28
23
|
};
|
|
29
24
|
return /* @__PURE__ */ e(
|
|
30
|
-
|
|
25
|
+
h,
|
|
31
26
|
{
|
|
32
27
|
sx: {
|
|
33
28
|
borderRadius: "1rem",
|
|
@@ -37,7 +32,7 @@ const S = R(/* @__PURE__ */ e("path", {
|
|
|
37
32
|
boxShadow: "0px 2px 8px 0px rgba(0, 0, 0, 0.10)"
|
|
38
33
|
}
|
|
39
34
|
},
|
|
40
|
-
children: /* @__PURE__ */ e(
|
|
35
|
+
children: /* @__PURE__ */ e(x, { sx: { p: "0.5rem" }, children: /* @__PURE__ */ a(t, { display: "flex", alignItems: "center", children: [
|
|
41
36
|
/* @__PURE__ */ a(t, { display: "flex", alignItems: "center", children: [
|
|
42
37
|
/* @__PURE__ */ e(
|
|
43
38
|
t,
|
|
@@ -54,33 +49,33 @@ const S = R(/* @__PURE__ */ e("path", {
|
|
|
54
49
|
},
|
|
55
50
|
children: /* @__PURE__ */ e(() => {
|
|
56
51
|
switch (r.transaction_type) {
|
|
57
|
-
case
|
|
52
|
+
case w:
|
|
58
53
|
switch (r.transaction_status) {
|
|
59
|
-
case
|
|
60
|
-
return /* @__PURE__ */ e(
|
|
54
|
+
case i:
|
|
55
|
+
return /* @__PURE__ */ e(g, {});
|
|
61
56
|
case p:
|
|
62
57
|
case d:
|
|
63
|
-
return /* @__PURE__ */ e(
|
|
64
|
-
case l:
|
|
58
|
+
return /* @__PURE__ */ e(L, {});
|
|
65
59
|
case m:
|
|
66
|
-
case
|
|
67
|
-
|
|
60
|
+
case l:
|
|
61
|
+
case s:
|
|
62
|
+
return /* @__PURE__ */ e(I, {});
|
|
68
63
|
default:
|
|
69
|
-
return /* @__PURE__ */ e(
|
|
64
|
+
return /* @__PURE__ */ e(y, {});
|
|
70
65
|
}
|
|
71
|
-
case
|
|
66
|
+
case R:
|
|
72
67
|
switch (r.transaction_status) {
|
|
73
|
-
case
|
|
74
|
-
return /* @__PURE__ */ e(
|
|
68
|
+
case i:
|
|
69
|
+
return /* @__PURE__ */ e(A, {});
|
|
75
70
|
case p:
|
|
76
71
|
case d:
|
|
77
|
-
return /* @__PURE__ */ e(
|
|
78
|
-
case l:
|
|
72
|
+
return /* @__PURE__ */ e(D, {});
|
|
79
73
|
case m:
|
|
80
|
-
case
|
|
81
|
-
|
|
74
|
+
case l:
|
|
75
|
+
case s:
|
|
76
|
+
return /* @__PURE__ */ e(E, {});
|
|
82
77
|
default:
|
|
83
|
-
return /* @__PURE__ */ e(
|
|
78
|
+
return /* @__PURE__ */ e(B, {});
|
|
84
79
|
}
|
|
85
80
|
default:
|
|
86
81
|
return null;
|
|
@@ -90,24 +85,24 @@ const S = R(/* @__PURE__ */ e("path", {
|
|
|
90
85
|
),
|
|
91
86
|
/* @__PURE__ */ a(t, { display: "flex", flexDirection: "column", gap: "0.25rem", children: [
|
|
92
87
|
/* @__PURE__ */ e(
|
|
93
|
-
|
|
88
|
+
o,
|
|
94
89
|
{
|
|
95
90
|
variant: "h6",
|
|
96
91
|
sx: { textTransform: "capitalize", fontWeight: 600 },
|
|
97
92
|
children: r.transaction_type
|
|
98
93
|
}
|
|
99
94
|
),
|
|
100
|
-
/* @__PURE__ */ e(
|
|
95
|
+
/* @__PURE__ */ e(o, { variant: "body2", sx: { textTransform: "capitalize" }, children: u(r.created_at) })
|
|
101
96
|
] })
|
|
102
97
|
] }),
|
|
103
98
|
/* @__PURE__ */ e(t, { flexGrow: 1 }),
|
|
104
99
|
/* @__PURE__ */ e(t, { display: "flex", flexDirection: "column", alignItems: "flex-end", children: /* @__PURE__ */ a(
|
|
105
|
-
|
|
100
|
+
o,
|
|
106
101
|
{
|
|
107
102
|
variant: "h6",
|
|
108
103
|
sx: {
|
|
109
104
|
fontWeight: 400,
|
|
110
|
-
opacity: r.transaction_status ===
|
|
105
|
+
opacity: r.transaction_status === i ? 1 : 0.3
|
|
111
106
|
},
|
|
112
107
|
children: [
|
|
113
108
|
"$",
|
|
@@ -115,11 +110,11 @@ const S = R(/* @__PURE__ */ e("path", {
|
|
|
115
110
|
]
|
|
116
111
|
}
|
|
117
112
|
) }),
|
|
118
|
-
/* @__PURE__ */ e(
|
|
113
|
+
/* @__PURE__ */ e(T, { edge: "end", "aria-label": "chevron-right", children: /* @__PURE__ */ e(_, {}) })
|
|
119
114
|
] }) })
|
|
120
115
|
}
|
|
121
116
|
);
|
|
122
117
|
};
|
|
123
118
|
export {
|
|
124
|
-
|
|
119
|
+
V as default
|
|
125
120
|
};
|
|
@@ -1,35 +1,30 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { B as l } from "../../../../Box-B0YSYLco.js";
|
|
6
|
-
import { T as o } from "../../../../Typography-pAaje37G.js";
|
|
7
|
-
import { C as d } from "../../../../CircularProgress-xZA3lvba.js";
|
|
8
|
-
const C = ({ isLoading: e, amount: a }) => {
|
|
9
|
-
const t = n();
|
|
1
|
+
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as i, Card as c, CardContent as l, Stack as s, Box as d, Typography as e, CircularProgress as m } from "@mui/material";
|
|
3
|
+
const f = ({ isLoading: o, amount: t }) => {
|
|
4
|
+
const a = i();
|
|
10
5
|
return /* @__PURE__ */ r(
|
|
11
|
-
|
|
6
|
+
c,
|
|
12
7
|
{
|
|
13
8
|
sx: {
|
|
14
9
|
background: "url(/src/images/space.jpg) center/cover no-repeat",
|
|
15
10
|
borderRadius: "1rem"
|
|
16
11
|
},
|
|
17
|
-
children: /* @__PURE__ */ r(
|
|
18
|
-
/* @__PURE__ */ r(
|
|
12
|
+
children: /* @__PURE__ */ r(l, { sx: { color: "#fff" }, children: /* @__PURE__ */ r(s, { direction: "column", spacing: 2, children: /* @__PURE__ */ n(d, { children: [
|
|
13
|
+
/* @__PURE__ */ r(e, { fontSize: "2.5rem", fontWeight: 600, color: "primary", children: "Available balance" }),
|
|
19
14
|
/* @__PURE__ */ r(
|
|
20
|
-
|
|
15
|
+
e,
|
|
21
16
|
{
|
|
22
17
|
fontSize: "5rem",
|
|
23
18
|
fontWeight: "500",
|
|
24
|
-
children:
|
|
19
|
+
children: o ? /* @__PURE__ */ r(m, { size: 24 }) : t
|
|
25
20
|
}
|
|
26
21
|
),
|
|
27
22
|
/* @__PURE__ */ r(
|
|
28
|
-
|
|
23
|
+
e,
|
|
29
24
|
{
|
|
30
25
|
variant: "xl",
|
|
31
26
|
sx: { opacity: "0.75" },
|
|
32
|
-
fontFamily:
|
|
27
|
+
fontFamily: a.typography.redHatMono.fontFamily,
|
|
33
28
|
children: "Want to add more credits? Please contact your Distributor"
|
|
34
29
|
}
|
|
35
30
|
)
|
|
@@ -38,5 +33,5 @@ const C = ({ isLoading: e, amount: a }) => {
|
|
|
38
33
|
);
|
|
39
34
|
};
|
|
40
35
|
export {
|
|
41
|
-
|
|
36
|
+
f as default
|
|
42
37
|
};
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { jsxs as i, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as i, Fragment as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import a from "../../../../hoc/withThemeProvider.js";
|
|
3
3
|
import t from "./balance.js";
|
|
4
4
|
import { useRrDialog as s } from "../../../../hooks/useRrDialog/index.js";
|
|
5
|
-
import m from "
|
|
6
|
-
import
|
|
7
|
-
import { G as o } from "../../../../Grid-CFe3amXO.js";
|
|
5
|
+
import { Card as d, CardContent as m, Grid as o } from "@mui/material";
|
|
6
|
+
import l from "./stats.js";
|
|
8
7
|
const c = ({}) => {
|
|
9
|
-
const { openDialog: f, ConfirmDialog:
|
|
10
|
-
return /* @__PURE__ */ i(
|
|
11
|
-
/* @__PURE__ */ r(
|
|
12
|
-
/* @__PURE__ */ r(d, { sx: { backgroundColor: "#FFF", borderRadius: "1rem" }, children: /* @__PURE__ */ r(
|
|
8
|
+
const { openDialog: f, ConfirmDialog: e } = s();
|
|
9
|
+
return /* @__PURE__ */ i(n, { children: [
|
|
10
|
+
/* @__PURE__ */ r(e, {}),
|
|
11
|
+
/* @__PURE__ */ r(d, { sx: { backgroundColor: "#FFF", borderRadius: "1rem" }, children: /* @__PURE__ */ r(m, { children: /* @__PURE__ */ i(o, { container: !0, spacing: 2, children: [
|
|
13
12
|
/* @__PURE__ */ r(o, { size: 7, children: /* @__PURE__ */ r(t, { amount: 267, isLoading: !1 }) }),
|
|
14
|
-
/* @__PURE__ */ r(o, { size: 5, children: /* @__PURE__ */ r(
|
|
13
|
+
/* @__PURE__ */ r(o, { size: 5, children: /* @__PURE__ */ r(l, { amount: 267, isLoading: !1 }) })
|
|
15
14
|
] }) }) })
|
|
16
15
|
] });
|
|
17
|
-
},
|
|
16
|
+
}, D = a(c);
|
|
18
17
|
export {
|
|
19
|
-
|
|
18
|
+
D as default
|
|
20
19
|
};
|
|
@@ -1,35 +1,30 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { B as l } from "../../../../Box-B0YSYLco.js";
|
|
6
|
-
import { T as o } from "../../../../Typography-pAaje37G.js";
|
|
7
|
-
import { C as d } from "../../../../CircularProgress-xZA3lvba.js";
|
|
8
|
-
const C = ({ isLoading: t, amount: a }) => {
|
|
9
|
-
const e = n();
|
|
1
|
+
import { jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as n, Card as c, CardContent as l, Stack as s, Box as d, Typography as e, CircularProgress as m } from "@mui/material";
|
|
3
|
+
const p = ({ isLoading: o, amount: t }) => {
|
|
4
|
+
const i = n();
|
|
10
5
|
return /* @__PURE__ */ r(
|
|
11
|
-
|
|
6
|
+
c,
|
|
12
7
|
{
|
|
13
8
|
sx: {
|
|
14
9
|
background: "#E5F6EA",
|
|
15
10
|
borderRadius: "1rem"
|
|
16
11
|
},
|
|
17
|
-
children: /* @__PURE__ */ r(
|
|
18
|
-
/* @__PURE__ */ r(
|
|
12
|
+
children: /* @__PURE__ */ r(l, { sx: { color: "#fff" }, children: /* @__PURE__ */ r(s, { direction: "column", spacing: 2, children: /* @__PURE__ */ a(d, { children: [
|
|
13
|
+
/* @__PURE__ */ r(e, { fontSize: "2.5rem", fontWeight: 600, color: "primary", children: "Available balance" }),
|
|
19
14
|
/* @__PURE__ */ r(
|
|
20
|
-
|
|
15
|
+
e,
|
|
21
16
|
{
|
|
22
17
|
fontSize: "5rem",
|
|
23
18
|
fontWeight: "500",
|
|
24
|
-
children:
|
|
19
|
+
children: o ? /* @__PURE__ */ r(m, { size: 24 }) : t
|
|
25
20
|
}
|
|
26
21
|
),
|
|
27
22
|
/* @__PURE__ */ r(
|
|
28
|
-
|
|
23
|
+
e,
|
|
29
24
|
{
|
|
30
25
|
variant: "xl",
|
|
31
26
|
sx: { opacity: "0.75" },
|
|
32
|
-
fontFamily:
|
|
27
|
+
fontFamily: i.typography.redHatMono.fontFamily,
|
|
33
28
|
children: "Want to add more credits? Please contact your Distributor"
|
|
34
29
|
}
|
|
35
30
|
)
|
|
@@ -38,5 +33,5 @@ const C = ({ isLoading: t, amount: a }) => {
|
|
|
38
33
|
);
|
|
39
34
|
};
|
|
40
35
|
export {
|
|
41
|
-
|
|
36
|
+
p as default
|
|
42
37
|
};
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const j = ({
|
|
9
|
-
isLoading: n,
|
|
10
|
-
transactions: t,
|
|
1
|
+
import { jsxs as l, Fragment as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as i, Stack as n, Box as m, CircularProgress as d } from "@mui/material";
|
|
3
|
+
import h from "../../Shared/Button/index.js";
|
|
4
|
+
import p from "../../../Shared/HistoryItem/index.js";
|
|
5
|
+
const y = ({
|
|
6
|
+
isLoading: o,
|
|
7
|
+
transactions: r,
|
|
11
8
|
navigate: a
|
|
12
|
-
}) => /* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
}) => /* @__PURE__ */ l(e, { children: [
|
|
10
|
+
/* @__PURE__ */ t(i, { variant: "lg", my: 2, fontWeight: 600, children: "Latest Transactions" }),
|
|
11
|
+
/* @__PURE__ */ t(n, { direction: "column", spacing: 2, children: o ? /* @__PURE__ */ t(m, { className: "text-center", mt: 2, children: /* @__PURE__ */ t(d, { size: 50 }) }) : /* @__PURE__ */ t(e, { children: r.length > 0 ? /* @__PURE__ */ t(e, { children: r.map((c, s) => /* @__PURE__ */ t(p, { data: c }, s)) }) : /* @__PURE__ */ t(i, { className: "text-center", color: "primary", variant: "5xl", children: "No Records" }) }) }),
|
|
12
|
+
r.length > 0 && /* @__PURE__ */ t(n, { direction: "row", justifyContent: "center", children: /* @__PURE__ */ t(
|
|
13
|
+
h,
|
|
17
14
|
{
|
|
18
15
|
isText: !0,
|
|
19
16
|
onClick: () => a("/transactions"),
|
|
@@ -24,5 +21,5 @@ const j = ({
|
|
|
24
21
|
) })
|
|
25
22
|
] });
|
|
26
23
|
export {
|
|
27
|
-
|
|
24
|
+
y as default
|
|
28
25
|
};
|