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,52 +1,49 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import W from "./
|
|
11
|
-
import "
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { B as v } from "../../../../Box-B0YSYLco.js";
|
|
17
|
-
import { S as F } from "../../../../Stack-k55YTxET.js";
|
|
18
|
-
import { T as u } from "../../../../Typography-pAaje37G.js";
|
|
1
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Container as b, Box as E, Stack as N, Typography as f } from "@mui/material";
|
|
3
|
+
import { useState as I, useEffect as u } from "react";
|
|
4
|
+
import { useSnackBar as _ } from "../../../../hooks/useSnackBar.js";
|
|
5
|
+
import { u as v } from "../../../../react-redux-C7I9-1M6.js";
|
|
6
|
+
import A from "../../../../hoc/withThemeProvider.js";
|
|
7
|
+
import { L as C } from "../../../../rr-primary-logo-CqI24c8v.js";
|
|
8
|
+
import L from "./email.js";
|
|
9
|
+
import T from "./personalInfo.js";
|
|
10
|
+
import W from "./summary.js";
|
|
11
|
+
import q from "./validateEmail.js";
|
|
12
|
+
import "../../../../constants-DX0YBtP2.js";
|
|
13
|
+
import { a as U, u as V, c as j, d as M } from "../../../../auth-BBeOw4mt.js";
|
|
14
|
+
import { USERNAME_SUFFIX as F } from "../../../../util/constants.js";
|
|
15
|
+
import P from "../../../../hooks/useEverestDispatch.js";
|
|
19
16
|
const z = ({ onRegister: k, navigate: h, navigatePath: g }) => {
|
|
20
|
-
const a =
|
|
17
|
+
const a = P(), r = v((t) => t.session), s = v((t) => t.app).store.name, m = r.loader, x = r.validationError, S = r.screen, w = r.otpLoader, p = r.uuid, c = r.token, l = r.error, B = 4, { showAlertMessage: n, snackBar: D } = _(), [e, R] = I({
|
|
21
18
|
email: "",
|
|
22
19
|
username: "",
|
|
23
20
|
firstName: "",
|
|
24
21
|
lastName: "",
|
|
25
22
|
phone: ""
|
|
26
23
|
});
|
|
27
|
-
|
|
28
|
-
a(
|
|
29
|
-
}, []),
|
|
24
|
+
u(() => () => {
|
|
25
|
+
a(U());
|
|
26
|
+
}, []), u(() => {
|
|
30
27
|
p && c && (k(p, c), h(g || "/dashboard"));
|
|
31
|
-
}, [p, c]),
|
|
28
|
+
}, [p, c]), u(() => {
|
|
32
29
|
l && n({ message: l });
|
|
33
30
|
}, [l]);
|
|
34
|
-
const d = (
|
|
35
|
-
a(
|
|
31
|
+
const d = (t) => {
|
|
32
|
+
a(V(t));
|
|
36
33
|
}, y = () => {
|
|
37
34
|
a(
|
|
38
|
-
|
|
35
|
+
j({
|
|
39
36
|
first_name: e.firstName,
|
|
40
37
|
last_name: e.lastName,
|
|
41
38
|
email: e.email,
|
|
42
|
-
username: e.username +
|
|
39
|
+
username: e.username + F,
|
|
43
40
|
phone: "+1" + e.phone,
|
|
44
41
|
storename: s
|
|
45
42
|
})
|
|
46
43
|
);
|
|
47
44
|
};
|
|
48
45
|
return /* @__PURE__ */ i(
|
|
49
|
-
|
|
46
|
+
b,
|
|
50
47
|
{
|
|
51
48
|
maxWidth: "sm",
|
|
52
49
|
component: "div",
|
|
@@ -59,10 +56,10 @@ const z = ({ onRegister: k, navigate: h, navigatePath: g }) => {
|
|
|
59
56
|
// alignItems: "center",
|
|
60
57
|
},
|
|
61
58
|
children: [
|
|
62
|
-
|
|
63
|
-
/* @__PURE__ */
|
|
59
|
+
D,
|
|
60
|
+
/* @__PURE__ */ o(E, { sx: { marginTop: "0.5rem", marginBottom: "2.25rem" }, children: /* @__PURE__ */ o("img", { alt: "RocketRamp logo", src: C }) }),
|
|
64
61
|
/* @__PURE__ */ i(
|
|
65
|
-
|
|
62
|
+
E,
|
|
66
63
|
{
|
|
67
64
|
sx: {
|
|
68
65
|
flex: 1,
|
|
@@ -77,22 +74,22 @@ const z = ({ onRegister: k, navigate: h, navigatePath: g }) => {
|
|
|
77
74
|
display: "flex"
|
|
78
75
|
},
|
|
79
76
|
children: [
|
|
80
|
-
/* @__PURE__ */ i(
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
/* @__PURE__ */ i(
|
|
83
|
-
/* @__PURE__ */ i(
|
|
77
|
+
/* @__PURE__ */ i(N, { direction: "column", spacing: 1.5, children: [
|
|
78
|
+
/* @__PURE__ */ o(f, { variant: "2xl", fontWeight: 600, children: "Create New Account" }),
|
|
79
|
+
/* @__PURE__ */ i(N, { direction: "row", gap: "0.25rem", children: [
|
|
80
|
+
/* @__PURE__ */ i(f, { variant: "md", fontWeight: 500, children: [
|
|
84
81
|
"Step ",
|
|
85
82
|
S
|
|
86
83
|
] }),
|
|
87
|
-
/* @__PURE__ */ i(
|
|
84
|
+
/* @__PURE__ */ i(f, { variant: "md", fontWeight: 200, children: [
|
|
88
85
|
"of ",
|
|
89
|
-
|
|
86
|
+
B
|
|
90
87
|
] })
|
|
91
88
|
] })
|
|
92
89
|
] }),
|
|
93
90
|
{
|
|
94
|
-
1: /* @__PURE__ */
|
|
95
|
-
|
|
91
|
+
1: /* @__PURE__ */ o(
|
|
92
|
+
L,
|
|
96
93
|
{
|
|
97
94
|
showAlertMessage: n,
|
|
98
95
|
loader: m,
|
|
@@ -105,8 +102,8 @@ const z = ({ onRegister: k, navigate: h, navigatePath: g }) => {
|
|
|
105
102
|
setCurrentStep: d
|
|
106
103
|
}
|
|
107
104
|
),
|
|
108
|
-
2: /* @__PURE__ */
|
|
109
|
-
|
|
105
|
+
2: /* @__PURE__ */ o(
|
|
106
|
+
T,
|
|
110
107
|
{
|
|
111
108
|
showAlertMessage: n,
|
|
112
109
|
loader: m,
|
|
@@ -118,8 +115,8 @@ const z = ({ onRegister: k, navigate: h, navigatePath: g }) => {
|
|
|
118
115
|
storeName: s
|
|
119
116
|
}
|
|
120
117
|
),
|
|
121
|
-
3: /* @__PURE__ */
|
|
122
|
-
|
|
118
|
+
3: /* @__PURE__ */ o(
|
|
119
|
+
W,
|
|
123
120
|
{
|
|
124
121
|
showAlertMessage: n,
|
|
125
122
|
loader: m,
|
|
@@ -129,23 +126,23 @@ const z = ({ onRegister: k, navigate: h, navigatePath: g }) => {
|
|
|
129
126
|
initRegister: y
|
|
130
127
|
}
|
|
131
128
|
),
|
|
132
|
-
4: /* @__PURE__ */
|
|
133
|
-
|
|
129
|
+
4: /* @__PURE__ */ o(
|
|
130
|
+
q,
|
|
134
131
|
{
|
|
135
132
|
showAlertMessage: n,
|
|
136
133
|
loader: m,
|
|
137
|
-
otpLoader:
|
|
134
|
+
otpLoader: w,
|
|
138
135
|
registerInfo: e,
|
|
139
|
-
initVerifyRegister: (
|
|
136
|
+
initVerifyRegister: (t) => {
|
|
140
137
|
a(
|
|
141
|
-
|
|
138
|
+
M({
|
|
142
139
|
first_name: e.firstName,
|
|
143
140
|
last_name: e.lastName,
|
|
144
141
|
email: e.email,
|
|
145
|
-
username: e.username +
|
|
142
|
+
username: e.username + F,
|
|
146
143
|
phone: "+1" + e.phone,
|
|
147
144
|
storename: s,
|
|
148
|
-
otp:
|
|
145
|
+
otp: t
|
|
149
146
|
})
|
|
150
147
|
);
|
|
151
148
|
},
|
|
@@ -159,7 +156,7 @@ const z = ({ onRegister: k, navigate: h, navigatePath: g }) => {
|
|
|
159
156
|
]
|
|
160
157
|
}
|
|
161
158
|
);
|
|
162
|
-
},
|
|
159
|
+
}, ne = A(z);
|
|
163
160
|
export {
|
|
164
|
-
|
|
161
|
+
ne as default
|
|
165
162
|
};
|
|
@@ -1,35 +1,29 @@
|
|
|
1
|
-
import { jsxs as u, Fragment as
|
|
1
|
+
import { jsxs as u, Fragment as F, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d } from "react";
|
|
3
|
-
import f from "
|
|
4
|
-
import
|
|
5
|
-
import "
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
import { S as y } from "../../../../Stack-k55YTxET.js";
|
|
12
|
-
import { I as E } from "../../../../InputAdornment-DMiED3JH.js";
|
|
13
|
-
import { F as B } from "../../../../FormControl-RtZDQMdA.js";
|
|
14
|
-
import { F as w, C as _ } from "../../../../FormControlLabel-BliKW48y.js";
|
|
15
|
-
import { L as j } from "../../../../Link-DBA9Yifs.js";
|
|
16
|
-
const I = ({
|
|
3
|
+
import { Typography as f, Box as T, Stack as b, InputAdornment as S, FormControl as U, FormControlLabel as W, Checkbox as E, Link as L } from "@mui/material";
|
|
4
|
+
import v from "../../Shared/Button/index.js";
|
|
5
|
+
import c, { UserNameInputField as w } from "../../Shared/Input/index.js";
|
|
6
|
+
import "../../../../constants-DX0YBtP2.js";
|
|
7
|
+
import { h as B } from "../../../../auth-BBeOw4mt.js";
|
|
8
|
+
import { userNameRegex as _ } from "../../../../util/regex.js";
|
|
9
|
+
import { USERNAME_SUFFIX as y, USERNAME_TOOLTIP as j } from "../../../../util/constants.js";
|
|
10
|
+
const J = ({
|
|
17
11
|
showAlertMessage: t,
|
|
18
|
-
loader:
|
|
19
|
-
registerInfo:
|
|
12
|
+
loader: p,
|
|
13
|
+
registerInfo: a,
|
|
20
14
|
setRegisterInfo: N,
|
|
21
15
|
setCurrentStep: h,
|
|
22
16
|
dispatch: P,
|
|
23
|
-
validationError:
|
|
17
|
+
validationError: l,
|
|
24
18
|
storeName: x
|
|
25
19
|
}) => {
|
|
26
|
-
const [
|
|
20
|
+
const [m, g] = d(!1), [n, k] = d({
|
|
27
21
|
username: !1,
|
|
28
22
|
firstName: !1,
|
|
29
23
|
lastName: !1,
|
|
30
24
|
phone: !1
|
|
31
|
-
}),
|
|
32
|
-
e === "phone" && !/^\d*$/.test(s) || e === "username" && !
|
|
25
|
+
}), o = (e, s) => {
|
|
26
|
+
e === "phone" && !/^\d*$/.test(s) || e === "username" && !_.test(s) || (N((i) => ({
|
|
33
27
|
...i,
|
|
34
28
|
[e]: s
|
|
35
29
|
})), k((i) => ({
|
|
@@ -37,91 +31,91 @@ const I = ({
|
|
|
37
31
|
[e]: !0
|
|
38
32
|
})));
|
|
39
33
|
}, C = (e) => {
|
|
40
|
-
if (e.preventDefault(), !
|
|
34
|
+
if (e.preventDefault(), !a.username)
|
|
41
35
|
return t({ message: "Please provide username." }), !1;
|
|
42
|
-
if (!
|
|
36
|
+
if (!a.firstName)
|
|
43
37
|
return t({ message: "Please provide your name." }), !1;
|
|
44
|
-
if (!
|
|
38
|
+
if (!a.lastName)
|
|
45
39
|
return t({ message: "Please provide your surname." }), !1;
|
|
46
|
-
if (!
|
|
40
|
+
if (!a.phone)
|
|
47
41
|
return t({ message: "Please provide your mobile number." }), !1;
|
|
48
|
-
if (!
|
|
42
|
+
if (!m)
|
|
49
43
|
return t({ message: "Please accept the privacy terms." }), !1;
|
|
50
44
|
h(3);
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
email:
|
|
55
|
-
username:
|
|
45
|
+
}, R = () => {
|
|
46
|
+
a.username && P(
|
|
47
|
+
B({
|
|
48
|
+
email: a.email,
|
|
49
|
+
username: a.username + y,
|
|
56
50
|
storename: x
|
|
57
51
|
})
|
|
58
52
|
);
|
|
59
53
|
};
|
|
60
|
-
return /* @__PURE__ */ u(
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
/* @__PURE__ */
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
|
|
54
|
+
return /* @__PURE__ */ u(F, { children: [
|
|
55
|
+
/* @__PURE__ */ r(f, { variant: "lg", fontWeight: "500", children: "Add your personal information" }),
|
|
56
|
+
/* @__PURE__ */ r(f, { variant: "sm", children: "Please, provide the following information:" }),
|
|
57
|
+
/* @__PURE__ */ r(T, { component: "form", onSubmit: C, width: "100%", children: /* @__PURE__ */ u(b, { direction: "column", gap: 2, children: [
|
|
58
|
+
/* @__PURE__ */ r(
|
|
59
|
+
w,
|
|
66
60
|
{
|
|
67
|
-
suffix:
|
|
68
|
-
value:
|
|
61
|
+
suffix: y,
|
|
62
|
+
value: a.username,
|
|
69
63
|
label: "Username",
|
|
70
64
|
placeholder: "Create a username",
|
|
71
|
-
onChange: (e) =>
|
|
72
|
-
onBlur:
|
|
73
|
-
error:
|
|
74
|
-
errorText:
|
|
65
|
+
onChange: (e) => o("username", e.target.value),
|
|
66
|
+
onBlur: R,
|
|
67
|
+
error: n.username && !a.username || !!l,
|
|
68
|
+
errorText: l,
|
|
75
69
|
showInfoIcon: !0,
|
|
76
|
-
tooltipText:
|
|
70
|
+
tooltipText: j,
|
|
77
71
|
autoFocus: !0,
|
|
78
72
|
fullWidth: !0
|
|
79
73
|
}
|
|
80
74
|
),
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
|
|
75
|
+
/* @__PURE__ */ r(
|
|
76
|
+
c,
|
|
83
77
|
{
|
|
84
|
-
value:
|
|
78
|
+
value: a.firstName,
|
|
85
79
|
label: "First name",
|
|
86
80
|
placeholder: "Enter your name",
|
|
87
|
-
onChange: (e) =>
|
|
88
|
-
error:
|
|
81
|
+
onChange: (e) => o("firstName", e.target.value),
|
|
82
|
+
error: n.firstName && !a.firstName,
|
|
89
83
|
fullWidth: !0
|
|
90
84
|
}
|
|
91
85
|
),
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
|
|
86
|
+
/* @__PURE__ */ r(
|
|
87
|
+
c,
|
|
94
88
|
{
|
|
95
|
-
value:
|
|
89
|
+
value: a.lastName,
|
|
96
90
|
label: "Last name",
|
|
97
91
|
placeholder: "Enter your surname",
|
|
98
|
-
onChange: (e) =>
|
|
99
|
-
error:
|
|
92
|
+
onChange: (e) => o("lastName", e.target.value),
|
|
93
|
+
error: n.lastName && !a.lastName,
|
|
100
94
|
fullWidth: !0
|
|
101
95
|
}
|
|
102
96
|
),
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
|
|
97
|
+
/* @__PURE__ */ r(
|
|
98
|
+
c,
|
|
105
99
|
{
|
|
106
|
-
value:
|
|
100
|
+
value: a.phone,
|
|
107
101
|
label: "Mobile number",
|
|
108
102
|
placeholder: "Enter your mobile number",
|
|
109
|
-
onChange: (e) =>
|
|
110
|
-
error:
|
|
103
|
+
onChange: (e) => o("phone", e.target.value),
|
|
104
|
+
error: n.phone && !a.phone,
|
|
111
105
|
slotProps: {
|
|
112
106
|
input: {
|
|
113
|
-
startAdornment: /* @__PURE__ */
|
|
107
|
+
startAdornment: /* @__PURE__ */ r(S, { position: "start", children: "+1" })
|
|
114
108
|
}
|
|
115
109
|
}
|
|
116
110
|
}
|
|
117
111
|
),
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
-
|
|
112
|
+
/* @__PURE__ */ r(U, { error: !m, component: "fieldset", children: /* @__PURE__ */ r(
|
|
113
|
+
W,
|
|
120
114
|
{
|
|
121
|
-
control: /* @__PURE__ */
|
|
122
|
-
|
|
115
|
+
control: /* @__PURE__ */ r(
|
|
116
|
+
E,
|
|
123
117
|
{
|
|
124
|
-
checked:
|
|
118
|
+
checked: m,
|
|
125
119
|
onChange: () => g((e) => !e),
|
|
126
120
|
color: "primary"
|
|
127
121
|
}
|
|
@@ -129,8 +123,8 @@ const I = ({
|
|
|
129
123
|
label: /* @__PURE__ */ u("span", { children: [
|
|
130
124
|
"I accept the",
|
|
131
125
|
" ",
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
|
|
126
|
+
/* @__PURE__ */ r(
|
|
127
|
+
L,
|
|
134
128
|
{
|
|
135
129
|
href: "https://www.rocket-ramp.com/page/privacy",
|
|
136
130
|
target: "_blank",
|
|
@@ -142,18 +136,18 @@ const I = ({
|
|
|
142
136
|
] })
|
|
143
137
|
}
|
|
144
138
|
) }),
|
|
145
|
-
/* @__PURE__ */
|
|
146
|
-
|
|
139
|
+
/* @__PURE__ */ r(
|
|
140
|
+
v,
|
|
147
141
|
{
|
|
148
142
|
type: "submit",
|
|
149
143
|
fullWidth: !0,
|
|
150
|
-
disabled: !!
|
|
151
|
-
isLoading:
|
|
144
|
+
disabled: !!l || p,
|
|
145
|
+
isLoading: p,
|
|
152
146
|
children: "Submit"
|
|
153
147
|
}
|
|
154
148
|
),
|
|
155
|
-
/* @__PURE__ */
|
|
156
|
-
|
|
149
|
+
/* @__PURE__ */ r(b, { direction: "row", alignItems: "flex-start", children: /* @__PURE__ */ r(
|
|
150
|
+
v,
|
|
157
151
|
{
|
|
158
152
|
isText: !0,
|
|
159
153
|
onClick: () => h(1),
|
|
@@ -166,5 +160,5 @@ const I = ({
|
|
|
166
160
|
] });
|
|
167
161
|
};
|
|
168
162
|
export {
|
|
169
|
-
|
|
163
|
+
J as default
|
|
170
164
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { B as p } from "../../../../Box-B0YSYLco.js";
|
|
7
|
-
const l = ({ label: r, value: a }) => /* @__PURE__ */ i(p, { children: [
|
|
1
|
+
import { jsxs as r, Fragment as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as o, Stack as t, Box as u } from "@mui/material";
|
|
3
|
+
import n from "../../Shared/Button/index.js";
|
|
4
|
+
import { USERNAME_SUFFIX as h } from "../../../../util/constants.js";
|
|
5
|
+
const l = ({ label: i, value: a }) => /* @__PURE__ */ r(u, { children: [
|
|
8
6
|
/* @__PURE__ */ e(
|
|
9
7
|
"label",
|
|
10
8
|
{
|
|
@@ -13,24 +11,24 @@ const l = ({ label: r, value: a }) => /* @__PURE__ */ i(p, { children: [
|
|
|
13
11
|
fontWeight: 400,
|
|
14
12
|
color: "#1A202C"
|
|
15
13
|
},
|
|
16
|
-
children:
|
|
14
|
+
children: i
|
|
17
15
|
}
|
|
18
16
|
),
|
|
19
|
-
/* @__PURE__ */ e(
|
|
20
|
-
] }),
|
|
21
|
-
loader:
|
|
17
|
+
/* @__PURE__ */ e(o, { variant: "md", children: a })
|
|
18
|
+
] }), v = ({
|
|
19
|
+
loader: i,
|
|
22
20
|
registerInfo: a,
|
|
23
|
-
setCurrentStep:
|
|
21
|
+
setCurrentStep: m,
|
|
24
22
|
storeName: c,
|
|
25
|
-
initRegister:
|
|
26
|
-
}) => /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */ e(
|
|
28
|
-
/* @__PURE__ */
|
|
23
|
+
initRegister: d
|
|
24
|
+
}) => /* @__PURE__ */ r(s, { children: [
|
|
25
|
+
/* @__PURE__ */ e(o, { variant: "lg", fontWeight: "500", children: "Before proceeding, please check and confirm your personal information" }),
|
|
26
|
+
/* @__PURE__ */ r(t, { direction: "column", gap: 2, children: [
|
|
29
27
|
/* @__PURE__ */ e(
|
|
30
28
|
l,
|
|
31
29
|
{
|
|
32
30
|
label: "Username",
|
|
33
|
-
value: a.username +
|
|
31
|
+
value: a.username + h
|
|
34
32
|
}
|
|
35
33
|
),
|
|
36
34
|
/* @__PURE__ */ e(l, { label: "Storename", value: c }),
|
|
@@ -39,19 +37,19 @@ const l = ({ label: r, value: a }) => /* @__PURE__ */ i(p, { children: [
|
|
|
39
37
|
/* @__PURE__ */ e(l, { label: "Mobile Number", value: "+1" + a.phone }),
|
|
40
38
|
/* @__PURE__ */ e(l, { label: "Email Address", value: a.email }),
|
|
41
39
|
/* @__PURE__ */ e(
|
|
42
|
-
|
|
40
|
+
n,
|
|
43
41
|
{
|
|
44
|
-
isLoading:
|
|
45
|
-
disabled:
|
|
46
|
-
onClick:
|
|
42
|
+
isLoading: i,
|
|
43
|
+
disabled: i,
|
|
44
|
+
onClick: d,
|
|
47
45
|
children: "Submit"
|
|
48
46
|
}
|
|
49
47
|
),
|
|
50
|
-
/* @__PURE__ */ e(
|
|
51
|
-
|
|
48
|
+
/* @__PURE__ */ e(t, { direction: "row", alignItems: "flex-start", children: /* @__PURE__ */ e(
|
|
49
|
+
n,
|
|
52
50
|
{
|
|
53
51
|
isText: !0,
|
|
54
|
-
onClick: () =>
|
|
52
|
+
onClick: () => m(2),
|
|
55
53
|
sx: { fontWeight: 500, padding: 0 },
|
|
56
54
|
customSize: "small",
|
|
57
55
|
children: "Go back and edit"
|
|
@@ -60,5 +58,5 @@ const l = ({ label: r, value: a }) => /* @__PURE__ */ i(p, { children: [
|
|
|
60
58
|
] })
|
|
61
59
|
] });
|
|
62
60
|
export {
|
|
63
|
-
|
|
61
|
+
v as default
|
|
64
62
|
};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { jsxs as r, Fragment as R, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as a, Box as P, Stack as d } from "@mui/material";
|
|
2
3
|
import h from "../../Shared/Button/index.js";
|
|
3
|
-
import
|
|
4
|
-
import { useState as
|
|
4
|
+
import C from "../../Shared/Input/index.js";
|
|
5
|
+
import { useState as s, useEffect as u } from "react";
|
|
5
6
|
import { RESEND_EMAIL_TIMER as f } from "../../../../util/constants.js";
|
|
6
|
-
|
|
7
|
-
import { B as C } from "../../../../Box-B0YSYLco.js";
|
|
8
|
-
import { S as d } from "../../../../Stack-k55YTxET.js";
|
|
9
|
-
const _ = ({
|
|
7
|
+
const D = ({
|
|
10
8
|
showAlertMessage: o,
|
|
11
9
|
loader: p,
|
|
12
10
|
otpLoader: g,
|
|
@@ -14,25 +12,25 @@ const _ = ({
|
|
|
14
12
|
initVerifyRegister: y,
|
|
15
13
|
initRegister: E
|
|
16
14
|
}) => {
|
|
17
|
-
const [e,
|
|
15
|
+
const [e, x] = s(""), [S, c] = s(!1), [i, m] = s(f);
|
|
18
16
|
u(() => {
|
|
19
|
-
if (
|
|
20
|
-
const
|
|
21
|
-
m((
|
|
17
|
+
if (i === 0) return;
|
|
18
|
+
const n = setInterval(() => {
|
|
19
|
+
m((l) => l - 1);
|
|
22
20
|
}, 1e3);
|
|
23
|
-
return () => clearInterval(
|
|
24
|
-
}, [
|
|
21
|
+
return () => clearInterval(n);
|
|
22
|
+
}, [i]), u(() => {
|
|
25
23
|
c(e ? e.length !== 6 : !1);
|
|
26
24
|
}, [e]);
|
|
27
|
-
const
|
|
25
|
+
const b = () => {
|
|
28
26
|
E(), m(f), o({
|
|
29
27
|
message: "A new OTP has been send to the given email address.",
|
|
30
28
|
type: "success",
|
|
31
29
|
duration: 6e3
|
|
32
30
|
});
|
|
33
|
-
},
|
|
34
|
-
const
|
|
35
|
-
return `${String(
|
|
31
|
+
}, T = (n) => {
|
|
32
|
+
const l = Math.floor(n / 60), I = n % 60;
|
|
33
|
+
return `${String(l).padStart(2, "0")}:${String(
|
|
36
34
|
I
|
|
37
35
|
).padStart(2, "0")}`;
|
|
38
36
|
}, k = () => {
|
|
@@ -49,34 +47,34 @@ const _ = ({
|
|
|
49
47
|
v.email,
|
|
50
48
|
" and enter the code in the field below within the next 5 minutes."
|
|
51
49
|
] }),
|
|
52
|
-
/* @__PURE__ */ r(
|
|
50
|
+
/* @__PURE__ */ r(P, { width: "100%", children: [
|
|
53
51
|
/* @__PURE__ */ t(d, { direction: "column", spacing: 2, children: /* @__PURE__ */ t(
|
|
54
|
-
|
|
52
|
+
C,
|
|
55
53
|
{
|
|
56
54
|
value: e,
|
|
57
55
|
label: "Enter code",
|
|
58
56
|
placeholder: "Enter code sent via Email",
|
|
59
|
-
onChange: (
|
|
57
|
+
onChange: (n) => x(n.target.value),
|
|
60
58
|
inputProps: { maxLength: 6 },
|
|
61
|
-
error:
|
|
59
|
+
error: S,
|
|
62
60
|
fullWidth: !0
|
|
63
61
|
}
|
|
64
62
|
) }),
|
|
65
63
|
/* @__PURE__ */ r(d, { direction: "column", alignItems: "center", spacing: 2, my: "1.2rem", children: [
|
|
66
64
|
/* @__PURE__ */ t(a, { variant: "body1", children: "Didn't receive the code?" }),
|
|
67
|
-
|
|
65
|
+
i > 0 && /* @__PURE__ */ r(a, { variant: "body2", mt: 1, children: [
|
|
68
66
|
" ",
|
|
69
67
|
"You can ask for another one in ",
|
|
70
|
-
|
|
68
|
+
T(i)
|
|
71
69
|
] }),
|
|
72
70
|
/* @__PURE__ */ t(
|
|
73
71
|
h,
|
|
74
72
|
{
|
|
75
|
-
onClick:
|
|
73
|
+
onClick: b,
|
|
76
74
|
customSize: "medium",
|
|
77
75
|
isText: !0,
|
|
78
76
|
sx: { padding: "0px", height: "2rem" },
|
|
79
|
-
disabled:
|
|
77
|
+
disabled: i > 0,
|
|
80
78
|
isLoading: g,
|
|
81
79
|
children: "Resend Email"
|
|
82
80
|
}
|
|
@@ -96,5 +94,5 @@ const _ = ({
|
|
|
96
94
|
] });
|
|
97
95
|
};
|
|
98
96
|
export {
|
|
99
|
-
|
|
97
|
+
D as default
|
|
100
98
|
};
|