everest-npm-features 0.0.8 → 0.0.10
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/{Alert-BtAF4uo6.js → Alert-D1uo0xUN.js} +3 -3
- package/dist/{Button-S_vW7i_8.js → Button-DwM6qNzr.js} +1 -1
- package/dist/{ButtonBase-ILHWXvZi.js → ButtonBase-Bkt2XiiC.js} +2 -2
- package/dist/{CardContent-BLsvyJUZ.js → CardContent-D9I3IU_z.js} +2 -2
- package/dist/{CircularProgress-DYCklg37.js → CircularProgress-B06C3TSm.js} +1 -1
- package/dist/{DialogContent-BgKUjL4i.js → DialogContent-CGAaVPRP.js} +3 -3
- package/dist/{DialogTitle-1A1JxHKy.js → DialogTitle-CtNXjsMb.js} +1 -1
- package/dist/{FormControl-CKGUH1ax.js → FormControl-C_Aq5EJK.js} +1 -1
- package/dist/{FormControlLabel-Do2nmNuE.js → FormControlLabel-DzW2M9Zf.js} +2 -2
- package/dist/{Grow-Cl5q_s4E.js → Grow-BG0VcbVU.js} +2 -2
- package/dist/{IconButton-DJRmyJ7l.js → IconButton-DS04obIe.js} +2 -2
- package/dist/{Link-BoX8sDwo.js → Link-0ytX5jId.js} +1 -1
- package/dist/{ListItemIcon-SEyOLp6t.js → ListItemIcon-DcAQQVML.js} +2 -2
- package/dist/{MenuItem-DI0pq5k0.js → MenuItem-B5Ey6jYk.js} +3 -3
- package/dist/{Modal-DXE_7QA2.js → Modal-C4LVcV2P.js} +5 -5
- package/dist/{Paper-B2H6ZIFg.js → Paper-DcwigMU2.js} +1 -1
- package/dist/{PlayArrow-DNFHtcCO.js → PlayArrow-BWNpsDIu.js} +5 -5
- package/dist/{Portal-lSfc4EZw.js → Portal-CLVGr58E.js} +2 -2
- package/dist/{Select-Bs7YLhIQ.js → Select-PHF4wwtI.js} +12 -11
- package/dist/{Slide-BjOaaE2D.js → Slide-C7btcybu.js} +4 -3
- package/dist/{TextField-D4JEGFa0.js → TextField-CWAqkoYU.js} +4 -4
- package/dist/TransitionGroupContext-D3TPEzqp.js +37 -0
- package/dist/auth-CD4Ih2jU.js +66 -0
- package/dist/{bank-D37HPNrs.js → bank-WoJNjqIT.js} +1 -1
- package/dist/chainPropTypes-D9lkm76m.js +8 -0
- package/dist/components/Account/index.js +8 -8
- package/dist/components/History/index.js +6 -6
- package/dist/components/MoveToEthereumOrEverChain/index.js +17 -17
- package/dist/components/Profile/documents.js +8 -8
- package/dist/components/Profile/index.js +6 -6
- package/dist/components/Receive/index.js +7 -7
- package/dist/components/RocketRamp/MinimalKyc/form.js +6 -6
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +4 -4
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +4 -4
- package/dist/components/RocketRamp/Player/Buy/form.d.ts +1 -1
- package/dist/components/RocketRamp/Player/Buy/form.js +11 -11
- package/dist/components/RocketRamp/Player/Buy/index.js +5 -5
- package/dist/components/RocketRamp/Player/Buy/types.d.ts +2 -0
- package/dist/components/RocketRamp/Player/Dashboard/balance.js +2 -2
- package/dist/components/RocketRamp/Player/Dashboard/index.js +15 -13
- package/dist/components/RocketRamp/Player/Dashboard/transaction.js +1 -1
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +6 -6
- package/dist/components/RocketRamp/Player/Sell/form.js +11 -11
- package/dist/components/RocketRamp/Player/Sell/index.js +5 -5
- package/dist/components/RocketRamp/Player/SignIn/index.js +2 -2
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/index.js +9 -9
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +82 -77
- package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +3 -3
- package/dist/components/RocketRamp/ResetPassword/form.d.ts +8 -0
- package/dist/components/RocketRamp/ResetPassword/form.js +104 -0
- package/dist/components/RocketRamp/ResetPassword/index.d.ts +7 -0
- package/dist/components/RocketRamp/ResetPassword/index.js +53 -0
- package/dist/components/RocketRamp/Shared/Button/index.js +2 -2
- package/dist/components/RocketRamp/Shared/Input/index.d.ts +6 -0
- package/dist/components/RocketRamp/Shared/Input/index.js +65 -26
- package/dist/components/RocketRamp/Shared/backBtn.js +1 -1
- package/dist/components/RocketRamp/Shared/transactionItem.js +2 -2
- package/dist/components/RocketRamp/Store/Dashboard/balance.d.ts +1 -4
- package/dist/components/RocketRamp/Store/Dashboard/balance.js +35 -68
- package/dist/components/RocketRamp/Store/Dashboard/index.js +17 -61
- package/dist/components/RocketRamp/Store/Dashboard/stats.d.ts +6 -0
- package/dist/components/RocketRamp/Store/Dashboard/stats.js +42 -0
- package/dist/components/RocketRamp/Store/Dashboard/transaction.js +1 -1
- package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +73 -68
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +55 -47
- package/dist/components/RocketRamp/Transactions/index.js +2 -2
- package/dist/components/Send/index.js +10 -10
- package/dist/components/Shared/ConnectWallet/index.js +5 -5
- package/dist/components/Shared/HistoryItem/index.js +2 -2
- package/dist/components/Shared/TokenModal/index.js +5 -5
- package/dist/components/Shared/addBank.js +7 -7
- package/dist/components/Shared/button.js +1 -1
- package/dist/components/Shared/connectPlaidBank.js +4 -4
- package/dist/components/Shared/incode.js +6 -6
- package/dist/components/Shared/inputField.js +1 -1
- package/dist/components/Shared/pin.js +1 -1
- package/dist/components/Shared/tooltip.js +7 -6
- package/dist/components/Shared/transition.js +1 -1
- package/dist/components/SignIn/index.js +5 -5
- package/dist/components/SignUp/index.js +3 -3
- package/dist/components/SignUp/pin.js +6 -6
- package/dist/components/SignUp/userInfo.js +1 -1
- package/dist/components/Stake/gems/index.js +6 -6
- package/dist/components/Stake/id/index.js +6 -6
- package/dist/components/Stake/index.js +6 -6
- package/dist/components/Swap/index.js +10 -10
- package/dist/components/WalletPortfolio/index.js +9 -9
- package/dist/components/WalletPortfolio/tokenRow.js +2 -2
- package/dist/{constants-Bb9tNMO0.js → constants-74hrsFxy.js} +290 -287
- package/dist/{documents-DvBUIEko.js → documents-DFzrb5Js.js} +7 -7
- package/dist/{elementTypeAcceptingRef-BPeKuzZ8.js → elementTypeAcceptingRef-CXUi-GtI.js} +1 -1
- package/dist/{fiatAssets-Dymvf3Le.js → fiatAssets-BySmKCPn.js} +1 -1
- package/dist/hooks/useDialog/index.js +2 -2
- package/dist/hooks/useRrDialog/index.js +2 -2
- package/dist/hooks/useSnackBar.js +6 -6
- package/dist/index-DNVjDI72.js +825 -0
- package/dist/{index-DYCdRrDV.js → index-Dxl09QM3.js} +12 -12
- package/dist/main.d.ts +2 -0
- package/dist/main.js +25 -21
- package/dist/{order-DMts-8Nr.js → order-BJOkWhkX.js} +1 -1
- package/dist/{ownerWindow-mVfGbIa3.js → ownerWindow-CQLKd2qC.js} +1 -1
- package/dist/{stake-BRmggIPz.js → stake-DeB_prrU.js} +1 -1
- package/dist/store.d.ts +10 -2
- package/dist/{tokenRow-g9IBe02c.js → tokenRow-4ZCv_fEG.js} +1 -1
- package/dist/{useSlot-D3uYAK6m.js → useSlot-CLUg2AtS.js} +1 -1
- package/dist/user-Doi440iN.js +24 -0
- package/dist/util/constants.d.ts +4 -0
- package/dist/util/constants.js +24 -20
- package/dist/util/functions.js +1 -1
- package/dist/util/regex.d.ts +3 -0
- package/dist/util/regex.js +5 -2
- package/dist/{utils-gxE2aXKK.js → utils-DeERUHi2.js} +16 -15
- package/dist/{wallet-Dfn4nFOn.js → wallet-BeLTGObA.js} +1 -1
- package/package.json +1 -1
- package/dist/CheckCircle-Czm8oSt7.js +0 -8
- package/dist/TransitionGroupContext-VwpFXTPO.js +0 -43
- package/dist/auth-Czk2iJ8q.js +0 -58
- package/dist/index-CMHIKDWK.js +0 -814
- package/dist/user-CsPLUenD.js +0 -24
|
@@ -1,75 +1,42 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/* @__PURE__ */ o(h, { container: !0, justifyContent: "space-between", children: [
|
|
20
|
-
/* @__PURE__ */ o(y, { children: [
|
|
21
|
-
/* @__PURE__ */ r(i, { variant: "2xl", fontWeight: 600, color: "primary", children: "Game balance" }),
|
|
1
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { u as n } from "../../../../useTheme-D5is61S1.js";
|
|
3
|
+
import { C as s, a as c } from "../../../../CardContent-D9I3IU_z.js";
|
|
4
|
+
import { S as m } from "../../../../Stack-Ce-OQAtj.js";
|
|
5
|
+
import { B as l } from "../../../../Box-Bt8cGqC7.js";
|
|
6
|
+
import { T as o } from "../../../../Typography-Du8mj1kr.js";
|
|
7
|
+
import { C as d } from "../../../../CircularProgress-B06C3TSm.js";
|
|
8
|
+
const C = ({ isLoading: e, amount: a }) => {
|
|
9
|
+
const t = n();
|
|
10
|
+
return /* @__PURE__ */ r(
|
|
11
|
+
s,
|
|
12
|
+
{
|
|
13
|
+
sx: {
|
|
14
|
+
background: "url(/src/images/space.jpg) center/cover no-repeat",
|
|
15
|
+
borderRadius: "1rem"
|
|
16
|
+
},
|
|
17
|
+
children: /* @__PURE__ */ r(c, { sx: { color: "#fff" }, children: /* @__PURE__ */ r(m, { direction: "column", spacing: 2, children: /* @__PURE__ */ i(l, { children: [
|
|
18
|
+
/* @__PURE__ */ r(o, { fontSize: "2.5rem", fontWeight: 600, color: "primary", children: "Available balance" }),
|
|
22
19
|
/* @__PURE__ */ r(
|
|
23
|
-
|
|
20
|
+
o,
|
|
24
21
|
{
|
|
25
|
-
|
|
26
|
-
fontWeight:
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
fontSize: "5rem",
|
|
23
|
+
fontWeight: "500",
|
|
24
|
+
children: e ? /* @__PURE__ */ r(d, { size: 24 }) : a
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ r(
|
|
28
|
+
o,
|
|
29
|
+
{
|
|
30
|
+
variant: "xl",
|
|
31
|
+
sx: { opacity: "0.75" },
|
|
32
|
+
fontFamily: t.typography.redHatMono.fontFamily,
|
|
33
|
+
children: "Want to add more credits? Please contact your Distributor"
|
|
29
34
|
}
|
|
30
35
|
)
|
|
31
|
-
] })
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
{
|
|
35
|
-
direction: "row",
|
|
36
|
-
spacing: 1,
|
|
37
|
-
fontFamily: e.typography.redHatMono.fontFamily,
|
|
38
|
-
children: [
|
|
39
|
-
/* @__PURE__ */ r(i, { variant: "sm", color: "#fff", children: "1 credit =" }),
|
|
40
|
-
/* @__PURE__ */ r(i, { variant: "sm", color: "primary", children: "1$" })
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
)
|
|
44
|
-
] }),
|
|
45
|
-
/* @__PURE__ */ o(a, { direction: "row", spacing: 2, children: [
|
|
46
|
-
/* @__PURE__ */ r(
|
|
47
|
-
t,
|
|
48
|
-
{
|
|
49
|
-
onClick: () => n("/buy"),
|
|
50
|
-
sx: {
|
|
51
|
-
color: e.palette.primary.main,
|
|
52
|
-
background: "#fff"
|
|
53
|
-
},
|
|
54
|
-
disabled: !d,
|
|
55
|
-
children: "Buy"
|
|
56
|
-
}
|
|
57
|
-
),
|
|
58
|
-
/* @__PURE__ */ r(
|
|
59
|
-
t,
|
|
60
|
-
{
|
|
61
|
-
onClick: () => n("/sell"),
|
|
62
|
-
variant: "outlined",
|
|
63
|
-
sx: {
|
|
64
|
-
border: "1px solid #fff"
|
|
65
|
-
},
|
|
66
|
-
disabled: !m,
|
|
67
|
-
children: "Redeem"
|
|
68
|
-
}
|
|
69
|
-
)
|
|
70
|
-
] })
|
|
71
|
-
] }) }) });
|
|
36
|
+
] }) }) })
|
|
37
|
+
}
|
|
38
|
+
);
|
|
72
39
|
};
|
|
73
40
|
export {
|
|
74
|
-
|
|
41
|
+
C as default
|
|
75
42
|
};
|
|
@@ -1,64 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import "../../../../
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
), u = i.list, f = i.loader, [d, h] = B(0);
|
|
17
|
-
return r(() => {
|
|
18
|
-
p(b(1));
|
|
19
|
-
}, []), r(() => {
|
|
20
|
-
const t = new URLSearchParams(window.location.search).get("payment");
|
|
21
|
-
if (console.log(t), t) {
|
|
22
|
-
let a = {
|
|
23
|
-
icon: /* @__PURE__ */ e(v, { sx: { fontSize: 80 }, color: "primary" }),
|
|
24
|
-
title: "Transaction Failed",
|
|
25
|
-
message: "Your payment has been failed. Please try again or contact support.",
|
|
26
|
-
confirmButtonText: "Close",
|
|
27
|
-
cancelButtonShow: !1,
|
|
28
|
-
height: "400px",
|
|
29
|
-
width: "65%"
|
|
30
|
-
};
|
|
31
|
-
t === "success" && (a = {
|
|
32
|
-
...a,
|
|
33
|
-
icon: /* @__PURE__ */ e(T, { sx: { fontSize: 80 }, color: "primary" }),
|
|
34
|
-
title: "Transaction Success",
|
|
35
|
-
message: "We have received your payment. Your transaction is in process and will be completed in few minutes."
|
|
36
|
-
}), m(a);
|
|
37
|
-
}
|
|
38
|
-
}, []), r(() => {
|
|
39
|
-
h(D(n.tokens.list));
|
|
40
|
-
}, [n.tokens]), /* @__PURE__ */ g(y, { children: [
|
|
41
|
-
/* @__PURE__ */ e(l, {}),
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
x,
|
|
44
|
-
{
|
|
45
|
-
amount: d,
|
|
46
|
-
isBuyAvailable: !0,
|
|
47
|
-
isRedeemAvailable: !0,
|
|
48
|
-
isLoading: !1,
|
|
49
|
-
navigate: s
|
|
50
|
-
}
|
|
51
|
-
),
|
|
52
|
-
/* @__PURE__ */ e(
|
|
53
|
-
S,
|
|
54
|
-
{
|
|
55
|
-
isLoading: f,
|
|
56
|
-
transactions: u,
|
|
57
|
-
navigate: s
|
|
58
|
-
}
|
|
59
|
-
)
|
|
1
|
+
import { jsxs as i, Fragment as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import n from "../../../../hoc/withThemeProvider.js";
|
|
3
|
+
import t from "./balance.js";
|
|
4
|
+
import { useRrDialog as s } from "../../../../hooks/useRrDialog/index.js";
|
|
5
|
+
import m from "./stats.js";
|
|
6
|
+
import { C as d, a as l } from "../../../../CardContent-D9I3IU_z.js";
|
|
7
|
+
import { G as o } from "../../../../Grid2-IYppkw5f.js";
|
|
8
|
+
const c = ({}) => {
|
|
9
|
+
const { openDialog: f, ConfirmDialog: a } = s();
|
|
10
|
+
return /* @__PURE__ */ i(e, { children: [
|
|
11
|
+
/* @__PURE__ */ r(a, {}),
|
|
12
|
+
/* @__PURE__ */ r(d, { sx: { backgroundColor: "#FFF", borderRadius: "1rem" }, children: /* @__PURE__ */ r(l, { children: /* @__PURE__ */ i(o, { container: !0, spacing: 2, children: [
|
|
13
|
+
/* @__PURE__ */ r(o, { size: 7, children: /* @__PURE__ */ r(t, { amount: 267, isLoading: !1 }) }),
|
|
14
|
+
/* @__PURE__ */ r(o, { size: 5, children: /* @__PURE__ */ r(m, { amount: 267, isLoading: !1 }) })
|
|
15
|
+
] }) }) })
|
|
60
16
|
] });
|
|
61
|
-
},
|
|
17
|
+
}, F = n(c);
|
|
62
18
|
export {
|
|
63
|
-
|
|
19
|
+
F as default
|
|
64
20
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { u as n } from "../../../../useTheme-D5is61S1.js";
|
|
3
|
+
import { C as s, a as m } from "../../../../CardContent-D9I3IU_z.js";
|
|
4
|
+
import { S as c } from "../../../../Stack-Ce-OQAtj.js";
|
|
5
|
+
import { B as l } from "../../../../Box-Bt8cGqC7.js";
|
|
6
|
+
import { T as o } from "../../../../Typography-Du8mj1kr.js";
|
|
7
|
+
import { C as d } from "../../../../CircularProgress-B06C3TSm.js";
|
|
8
|
+
const C = ({ isLoading: t, amount: a }) => {
|
|
9
|
+
const e = n();
|
|
10
|
+
return /* @__PURE__ */ r(
|
|
11
|
+
s,
|
|
12
|
+
{
|
|
13
|
+
sx: {
|
|
14
|
+
background: "#E5F6EA",
|
|
15
|
+
borderRadius: "1rem"
|
|
16
|
+
},
|
|
17
|
+
children: /* @__PURE__ */ r(m, { sx: { color: "#fff" }, children: /* @__PURE__ */ r(c, { direction: "column", spacing: 2, children: /* @__PURE__ */ i(l, { children: [
|
|
18
|
+
/* @__PURE__ */ r(o, { fontSize: "2.5rem", fontWeight: 600, color: "primary", children: "Available balance" }),
|
|
19
|
+
/* @__PURE__ */ r(
|
|
20
|
+
o,
|
|
21
|
+
{
|
|
22
|
+
fontSize: "5rem",
|
|
23
|
+
fontWeight: "500",
|
|
24
|
+
children: t ? /* @__PURE__ */ r(d, { size: 24 }) : a
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ r(
|
|
28
|
+
o,
|
|
29
|
+
{
|
|
30
|
+
variant: "xl",
|
|
31
|
+
sx: { opacity: "0.75" },
|
|
32
|
+
fontFamily: e.typography.redHatMono.fontFamily,
|
|
33
|
+
children: "Want to add more credits? Please contact your Distributor"
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
] }) }) })
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
C as default
|
|
42
|
+
};
|
|
@@ -4,7 +4,7 @@ import d from "../../../Shared/HistoryItem/index.js";
|
|
|
4
4
|
import { T as i } from "../../../../Typography-Du8mj1kr.js";
|
|
5
5
|
import { S as o } from "../../../../Stack-Ce-OQAtj.js";
|
|
6
6
|
import { B as p } from "../../../../Box-Bt8cGqC7.js";
|
|
7
|
-
import { C as h } from "../../../../CircularProgress-
|
|
7
|
+
import { C as h } from "../../../../CircularProgress-B06C3TSm.js";
|
|
8
8
|
const j = ({
|
|
9
9
|
isLoading: n,
|
|
10
10
|
transactions: t,
|
|
@@ -8,8 +8,8 @@ import q from "./storeInfo.js";
|
|
|
8
8
|
import C from "./personalInfo.js";
|
|
9
9
|
import D from "./summary.js";
|
|
10
10
|
import L from "./validateEmail.js";
|
|
11
|
-
import "../../../../constants-
|
|
12
|
-
import { a as _, u as V, b as j, c as z, l as A } from "../../../../auth-
|
|
11
|
+
import "../../../../constants-74hrsFxy.js";
|
|
12
|
+
import { a as _, u as V, b as j, c as z, l as A } from "../../../../auth-CD4Ih2jU.js";
|
|
13
13
|
import { C as O } from "../../../../Container-Htc6vdB5.js";
|
|
14
14
|
import { T as f } from "../../../../Typography-Du8mj1kr.js";
|
|
15
15
|
import { B as S } from "../../../../Box-Bt8cGqC7.js";
|
|
@@ -1,140 +1,145 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import "../../../../constants-
|
|
6
|
-
import { f as
|
|
7
|
-
import { isValidEmail as L } from "../../../../util/functions.js";
|
|
1
|
+
import { jsxs as s, Fragment as S, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as b } from "react";
|
|
3
|
+
import T from "../../Shared/Button/index.js";
|
|
4
|
+
import i from "../../Shared/Input/index.js";
|
|
5
|
+
import "../../../../constants-74hrsFxy.js";
|
|
6
|
+
import { f as y } from "../../../../auth-CD4Ih2jU.js";
|
|
7
|
+
import { generateRandomString as B, isValidEmail as L } from "../../../../util/functions.js";
|
|
8
|
+
import { userNameRegex as W } from "../../../../util/regex.js";
|
|
8
9
|
import { T as v } from "../../../../Typography-Du8mj1kr.js";
|
|
9
|
-
import { B as
|
|
10
|
-
import { S as
|
|
11
|
-
import { I as
|
|
12
|
-
import { F as
|
|
13
|
-
import { F, C as
|
|
14
|
-
import { L as
|
|
15
|
-
const
|
|
16
|
-
showAlertMessage:
|
|
17
|
-
loader:
|
|
10
|
+
import { B as j } from "../../../../Box-Bt8cGqC7.js";
|
|
11
|
+
import { S as F } from "../../../../Stack-Ce-OQAtj.js";
|
|
12
|
+
import { I as E } from "../../../../InputAdornment-HG4f5A6g.js";
|
|
13
|
+
import { F as q } from "../../../../FormControl-C_Aq5EJK.js";
|
|
14
|
+
import { F as D, C as V } from "../../../../FormControlLabel-DzW2M9Zf.js";
|
|
15
|
+
import { L as _ } from "../../../../Link-0ytX5jId.js";
|
|
16
|
+
const I = ({
|
|
17
|
+
showAlertMessage: t,
|
|
18
|
+
loader: h,
|
|
18
19
|
registerInfo: e,
|
|
19
|
-
setRegisterInfo:
|
|
20
|
-
setCurrentStep:
|
|
21
|
-
dispatch:
|
|
22
|
-
validationError:
|
|
23
|
-
validationField:
|
|
20
|
+
setRegisterInfo: N,
|
|
21
|
+
setCurrentStep: P,
|
|
22
|
+
dispatch: f,
|
|
23
|
+
validationError: o,
|
|
24
|
+
validationField: m
|
|
24
25
|
}) => {
|
|
25
|
-
const [p,
|
|
26
|
+
const d = B(), [p, x] = b(!1), [l, C] = b({
|
|
26
27
|
firstName: !1,
|
|
27
28
|
lastName: !1,
|
|
28
29
|
phone: !1,
|
|
29
30
|
email: !1
|
|
30
|
-
}), n = (a,
|
|
31
|
-
a === "phone" && !/^\d*$/.test(
|
|
32
|
-
...
|
|
33
|
-
[a]:
|
|
34
|
-
})), C((
|
|
35
|
-
...
|
|
31
|
+
}), n = (a, u) => {
|
|
32
|
+
a === "phone" && !/^\d*$/.test(u) || a === "username" && !W.test(u) || (N((c) => ({
|
|
33
|
+
...c,
|
|
34
|
+
[a]: u
|
|
35
|
+
})), C((c) => ({
|
|
36
|
+
...c,
|
|
36
37
|
[a]: !0
|
|
37
38
|
})));
|
|
38
39
|
}, k = (a) => {
|
|
39
40
|
if (a.preventDefault(), !e.firstName)
|
|
40
|
-
return
|
|
41
|
+
return t({ message: "Please provide your name." }), !1;
|
|
41
42
|
if (!e.lastName)
|
|
42
|
-
return
|
|
43
|
+
return t({ message: "Please provide your surname." }), !1;
|
|
43
44
|
if (!e.phone)
|
|
44
|
-
return
|
|
45
|
+
return t({ message: "Please provide your mobile number." }), !1;
|
|
45
46
|
if (!e.email)
|
|
46
|
-
return
|
|
47
|
+
return t({ message: "Please provide email address." }), !1;
|
|
47
48
|
if (!L(e.email))
|
|
48
|
-
return
|
|
49
|
+
return t({ message: "Please provide valid email address." }), !1;
|
|
49
50
|
if (!p)
|
|
50
|
-
return
|
|
51
|
-
|
|
52
|
-
}, x = () => {
|
|
53
|
-
e.phone && h(
|
|
54
|
-
b({ phone: "+1" + e.phone })
|
|
55
|
-
);
|
|
51
|
+
return t({ message: "Please accept the privacy terms." }), !1;
|
|
52
|
+
P(2);
|
|
56
53
|
}, R = () => {
|
|
57
|
-
e.
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
e.phone && f(
|
|
55
|
+
y({
|
|
56
|
+
phone: "+1" + e.phone,
|
|
57
|
+
storename: d
|
|
58
|
+
})
|
|
59
|
+
);
|
|
60
|
+
}, g = () => {
|
|
61
|
+
e.email && f(
|
|
62
|
+
y({
|
|
63
|
+
email: e.email,
|
|
64
|
+
storename: d
|
|
60
65
|
})
|
|
61
66
|
);
|
|
62
67
|
};
|
|
63
|
-
return /* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */
|
|
68
|
+
return /* @__PURE__ */ s(S, { children: [
|
|
69
|
+
/* @__PURE__ */ s(v, { variant: "3xl", fontWeight: "bold", children: [
|
|
65
70
|
"Ready to join us?",
|
|
66
71
|
/* @__PURE__ */ r("br", {}),
|
|
67
72
|
"Tell us about yourself"
|
|
68
73
|
] }),
|
|
69
74
|
/* @__PURE__ */ r(v, { variant: "sm", children: "Please, provide the following information:" }),
|
|
70
|
-
/* @__PURE__ */ r(
|
|
75
|
+
/* @__PURE__ */ r(j, { component: "form", onSubmit: k, width: "100%", children: /* @__PURE__ */ s(F, { direction: "column", gap: 2, children: [
|
|
71
76
|
/* @__PURE__ */ r(
|
|
72
|
-
|
|
77
|
+
i,
|
|
73
78
|
{
|
|
74
79
|
value: e.firstName,
|
|
75
80
|
label: "First name",
|
|
76
81
|
placeholder: "Enter your name",
|
|
77
82
|
onChange: (a) => n("firstName", a.target.value),
|
|
78
|
-
error:
|
|
83
|
+
error: l.firstName && !e.firstName,
|
|
79
84
|
fullWidth: !0
|
|
80
85
|
}
|
|
81
86
|
),
|
|
82
87
|
/* @__PURE__ */ r(
|
|
83
|
-
|
|
88
|
+
i,
|
|
84
89
|
{
|
|
85
90
|
value: e.lastName,
|
|
86
91
|
label: "Last name",
|
|
87
92
|
placeholder: "Enter your surname",
|
|
88
93
|
onChange: (a) => n("lastName", a.target.value),
|
|
89
|
-
error:
|
|
94
|
+
error: l.lastName && !e.lastName,
|
|
90
95
|
fullWidth: !0
|
|
91
96
|
}
|
|
92
97
|
),
|
|
93
98
|
/* @__PURE__ */ r(
|
|
94
|
-
|
|
99
|
+
i,
|
|
95
100
|
{
|
|
96
101
|
value: e.phone,
|
|
97
102
|
label: "Mobile number",
|
|
98
103
|
placeholder: "Enter your mobile number",
|
|
99
104
|
onChange: (a) => n("phone", a.target.value),
|
|
100
|
-
onBlur:
|
|
101
|
-
error:
|
|
102
|
-
errorText:
|
|
105
|
+
onBlur: R,
|
|
106
|
+
error: l.phone && !e.phone || m === "phone" && !!o,
|
|
107
|
+
errorText: m === "phone" ? o : "",
|
|
103
108
|
slotProps: {
|
|
104
109
|
input: {
|
|
105
|
-
startAdornment: /* @__PURE__ */ r(
|
|
110
|
+
startAdornment: /* @__PURE__ */ r(E, { position: "start", children: "+1" })
|
|
106
111
|
}
|
|
107
112
|
}
|
|
108
113
|
}
|
|
109
114
|
),
|
|
110
115
|
/* @__PURE__ */ r(
|
|
111
|
-
|
|
116
|
+
i,
|
|
112
117
|
{
|
|
113
118
|
value: e.email,
|
|
114
119
|
label: "E-mail address",
|
|
115
120
|
onChange: (a) => n("email", a.target.value),
|
|
116
|
-
onBlur:
|
|
117
|
-
error:
|
|
118
|
-
errorText:
|
|
121
|
+
onBlur: g,
|
|
122
|
+
error: l.email && !e.email || m === "email" && !!o,
|
|
123
|
+
errorText: m === "email" ? o : "",
|
|
119
124
|
fullWidth: !0
|
|
120
125
|
}
|
|
121
126
|
),
|
|
122
|
-
/* @__PURE__ */ r(
|
|
123
|
-
|
|
127
|
+
/* @__PURE__ */ r(q, { error: !p, component: "fieldset", children: /* @__PURE__ */ r(
|
|
128
|
+
D,
|
|
124
129
|
{
|
|
125
130
|
control: /* @__PURE__ */ r(
|
|
126
|
-
|
|
131
|
+
V,
|
|
127
132
|
{
|
|
128
133
|
checked: p,
|
|
129
|
-
onChange: () =>
|
|
134
|
+
onChange: () => x((a) => !a),
|
|
130
135
|
color: "primary"
|
|
131
136
|
}
|
|
132
137
|
),
|
|
133
|
-
label: /* @__PURE__ */
|
|
138
|
+
label: /* @__PURE__ */ s("span", { children: [
|
|
134
139
|
"I accept the",
|
|
135
140
|
" ",
|
|
136
141
|
/* @__PURE__ */ r(
|
|
137
|
-
|
|
142
|
+
_,
|
|
138
143
|
{
|
|
139
144
|
href: "https://www.rocket-ramp.com/page/privacy",
|
|
140
145
|
target: "_blank",
|
|
@@ -147,12 +152,12 @@ const Y = ({
|
|
|
147
152
|
}
|
|
148
153
|
) }),
|
|
149
154
|
/* @__PURE__ */ r(
|
|
150
|
-
|
|
155
|
+
T,
|
|
151
156
|
{
|
|
152
157
|
type: "submit",
|
|
153
158
|
fullWidth: !0,
|
|
154
|
-
disabled: !!
|
|
155
|
-
isLoading:
|
|
159
|
+
disabled: !!o || h,
|
|
160
|
+
isLoading: h,
|
|
156
161
|
children: "Next"
|
|
157
162
|
}
|
|
158
163
|
)
|
|
@@ -160,5 +165,5 @@ const Y = ({
|
|
|
160
165
|
] });
|
|
161
166
|
};
|
|
162
167
|
export {
|
|
163
|
-
|
|
168
|
+
I as default
|
|
164
169
|
};
|