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,130 +1,135 @@
|
|
|
1
|
-
import { jsxs as u, Fragment as
|
|
1
|
+
import { jsxs as u, Fragment as R, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d } from "react";
|
|
3
3
|
import f from "../../Shared/Button/index.js";
|
|
4
|
-
import
|
|
5
|
-
import "../../../../constants-
|
|
6
|
-
import { e as
|
|
4
|
+
import p, { UserNameInputField as T } from "../../Shared/Input/index.js";
|
|
5
|
+
import "../../../../constants-74hrsFxy.js";
|
|
6
|
+
import { e as S } from "../../../../auth-CD4Ih2jU.js";
|
|
7
|
+
import { userNameRegex as L } from "../../../../util/regex.js";
|
|
8
|
+
import { USERNAME_SUFFIX as b, USERNAME_TOOLTIP as U } from "../../../../util/constants.js";
|
|
7
9
|
import { T as v } from "../../../../Typography-Du8mj1kr.js";
|
|
8
|
-
import { B as
|
|
9
|
-
import { S as
|
|
10
|
-
import { I as
|
|
11
|
-
import { F as
|
|
12
|
-
import { F as
|
|
13
|
-
import { L as j } from "../../../../Link-
|
|
14
|
-
const
|
|
10
|
+
import { B as W } from "../../../../Box-Bt8cGqC7.js";
|
|
11
|
+
import { S as y } from "../../../../Stack-Ce-OQAtj.js";
|
|
12
|
+
import { I as E } from "../../../../InputAdornment-HG4f5A6g.js";
|
|
13
|
+
import { F as B } from "../../../../FormControl-C_Aq5EJK.js";
|
|
14
|
+
import { F as w, C as _ } from "../../../../FormControlLabel-DzW2M9Zf.js";
|
|
15
|
+
import { L as j } from "../../../../Link-0ytX5jId.js";
|
|
16
|
+
const I = ({
|
|
15
17
|
showAlertMessage: t,
|
|
16
|
-
loader:
|
|
17
|
-
registerInfo:
|
|
18
|
-
setRegisterInfo:
|
|
19
|
-
setCurrentStep:
|
|
20
|
-
dispatch:
|
|
21
|
-
validationError:
|
|
22
|
-
storeName:
|
|
18
|
+
loader: c,
|
|
19
|
+
registerInfo: r,
|
|
20
|
+
setRegisterInfo: N,
|
|
21
|
+
setCurrentStep: h,
|
|
22
|
+
dispatch: x,
|
|
23
|
+
validationError: m,
|
|
24
|
+
storeName: P
|
|
23
25
|
}) => {
|
|
24
|
-
const [
|
|
26
|
+
const [l, g] = d(!1), [o, k] = d({
|
|
25
27
|
username: !1,
|
|
26
28
|
firstName: !1,
|
|
27
29
|
lastName: !1,
|
|
28
30
|
phone: !1
|
|
29
|
-
}), n = (
|
|
30
|
-
|
|
31
|
+
}), n = (e, s) => {
|
|
32
|
+
e === "phone" && !/^\d*$/.test(s) || e === "username" && !L.test(s) || (N((i) => ({
|
|
31
33
|
...i,
|
|
32
|
-
[
|
|
33
|
-
})),
|
|
34
|
+
[e]: s
|
|
35
|
+
})), k((i) => ({
|
|
34
36
|
...i,
|
|
35
|
-
[
|
|
37
|
+
[e]: !0
|
|
36
38
|
})));
|
|
37
|
-
},
|
|
38
|
-
if (
|
|
39
|
+
}, C = (e) => {
|
|
40
|
+
if (e.preventDefault(), !r.username)
|
|
39
41
|
return t({ message: "Please provide username." }), !1;
|
|
40
|
-
if (!
|
|
42
|
+
if (!r.firstName)
|
|
41
43
|
return t({ message: "Please provide your name." }), !1;
|
|
42
|
-
if (!
|
|
44
|
+
if (!r.lastName)
|
|
43
45
|
return t({ message: "Please provide your surname." }), !1;
|
|
44
|
-
if (!
|
|
46
|
+
if (!r.phone)
|
|
45
47
|
return t({ message: "Please provide your mobile number." }), !1;
|
|
46
|
-
if (!
|
|
48
|
+
if (!l)
|
|
47
49
|
return t({ message: "Please accept the privacy terms." }), !1;
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
email:
|
|
53
|
-
username:
|
|
54
|
-
storename:
|
|
50
|
+
h(3);
|
|
51
|
+
}, F = () => {
|
|
52
|
+
r.username && x(
|
|
53
|
+
S({
|
|
54
|
+
email: r.email,
|
|
55
|
+
username: r.username + b,
|
|
56
|
+
storename: P
|
|
55
57
|
})
|
|
56
58
|
);
|
|
57
59
|
};
|
|
58
|
-
return /* @__PURE__ */ u(
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
/* @__PURE__ */
|
|
63
|
-
|
|
60
|
+
return /* @__PURE__ */ u(R, { children: [
|
|
61
|
+
/* @__PURE__ */ a(v, { variant: "lg", fontWeight: "500", children: "Add your personal information" }),
|
|
62
|
+
/* @__PURE__ */ a(v, { variant: "sm", children: "Please, provide the following information:" }),
|
|
63
|
+
/* @__PURE__ */ a(W, { component: "form", onSubmit: C, width: "100%", children: /* @__PURE__ */ u(y, { direction: "column", gap: 2, children: [
|
|
64
|
+
/* @__PURE__ */ a(
|
|
65
|
+
T,
|
|
64
66
|
{
|
|
65
|
-
|
|
67
|
+
suffix: b,
|
|
68
|
+
value: r.username,
|
|
66
69
|
label: "Username",
|
|
67
70
|
placeholder: "Create a username",
|
|
68
|
-
onChange: (
|
|
69
|
-
onBlur:
|
|
70
|
-
error: o.username && !
|
|
71
|
-
errorText:
|
|
71
|
+
onChange: (e) => n("username", e.target.value),
|
|
72
|
+
onBlur: F,
|
|
73
|
+
error: o.username && !r.username || !!m,
|
|
74
|
+
errorText: m,
|
|
75
|
+
showInfoIcon: !0,
|
|
76
|
+
tooltipText: U,
|
|
72
77
|
autoFocus: !0,
|
|
73
78
|
fullWidth: !0
|
|
74
79
|
}
|
|
75
80
|
),
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
|
|
81
|
+
/* @__PURE__ */ a(
|
|
82
|
+
p,
|
|
78
83
|
{
|
|
79
|
-
value:
|
|
84
|
+
value: r.firstName,
|
|
80
85
|
label: "First name",
|
|
81
86
|
placeholder: "Enter your name",
|
|
82
|
-
onChange: (
|
|
83
|
-
error: o.firstName && !
|
|
87
|
+
onChange: (e) => n("firstName", e.target.value),
|
|
88
|
+
error: o.firstName && !r.firstName,
|
|
84
89
|
fullWidth: !0
|
|
85
90
|
}
|
|
86
91
|
),
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
|
|
92
|
+
/* @__PURE__ */ a(
|
|
93
|
+
p,
|
|
89
94
|
{
|
|
90
|
-
value:
|
|
95
|
+
value: r.lastName,
|
|
91
96
|
label: "Last name",
|
|
92
97
|
placeholder: "Enter your surname",
|
|
93
|
-
onChange: (
|
|
94
|
-
error: o.lastName && !
|
|
98
|
+
onChange: (e) => n("lastName", e.target.value),
|
|
99
|
+
error: o.lastName && !r.lastName,
|
|
95
100
|
fullWidth: !0
|
|
96
101
|
}
|
|
97
102
|
),
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
|
|
103
|
+
/* @__PURE__ */ a(
|
|
104
|
+
p,
|
|
100
105
|
{
|
|
101
|
-
value:
|
|
106
|
+
value: r.phone,
|
|
102
107
|
label: "Mobile number",
|
|
103
108
|
placeholder: "Enter your mobile number",
|
|
104
|
-
onChange: (
|
|
105
|
-
error: o.phone && !
|
|
109
|
+
onChange: (e) => n("phone", e.target.value),
|
|
110
|
+
error: o.phone && !r.phone,
|
|
106
111
|
slotProps: {
|
|
107
112
|
input: {
|
|
108
|
-
startAdornment: /* @__PURE__ */
|
|
113
|
+
startAdornment: /* @__PURE__ */ a(E, { position: "start", children: "+1" })
|
|
109
114
|
}
|
|
110
115
|
}
|
|
111
116
|
}
|
|
112
117
|
),
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
|
|
118
|
+
/* @__PURE__ */ a(B, { error: !l, component: "fieldset", children: /* @__PURE__ */ a(
|
|
119
|
+
w,
|
|
115
120
|
{
|
|
116
|
-
control: /* @__PURE__ */
|
|
117
|
-
|
|
121
|
+
control: /* @__PURE__ */ a(
|
|
122
|
+
_,
|
|
118
123
|
{
|
|
119
|
-
checked:
|
|
120
|
-
onChange: () =>
|
|
124
|
+
checked: l,
|
|
125
|
+
onChange: () => g((e) => !e),
|
|
121
126
|
color: "primary"
|
|
122
127
|
}
|
|
123
128
|
),
|
|
124
129
|
label: /* @__PURE__ */ u("span", { children: [
|
|
125
130
|
"I accept the",
|
|
126
131
|
" ",
|
|
127
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ a(
|
|
128
133
|
j,
|
|
129
134
|
{
|
|
130
135
|
href: "https://www.rocket-ramp.com/page/privacy",
|
|
@@ -137,21 +142,21 @@ const Q = ({
|
|
|
137
142
|
] })
|
|
138
143
|
}
|
|
139
144
|
) }),
|
|
140
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ a(
|
|
141
146
|
f,
|
|
142
147
|
{
|
|
143
148
|
type: "submit",
|
|
144
149
|
fullWidth: !0,
|
|
145
|
-
disabled: !!
|
|
146
|
-
isLoading:
|
|
150
|
+
disabled: !!m || c,
|
|
151
|
+
isLoading: c,
|
|
147
152
|
children: "Submit"
|
|
148
153
|
}
|
|
149
154
|
),
|
|
150
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ a(y, { direction: "row", alignItems: "flex-start", children: /* @__PURE__ */ a(
|
|
151
156
|
f,
|
|
152
157
|
{
|
|
153
158
|
isText: !0,
|
|
154
|
-
onClick: () =>
|
|
159
|
+
onClick: () => h(1),
|
|
155
160
|
sx: { fontWeight: 500, padding: 0 },
|
|
156
161
|
customSize: "small",
|
|
157
162
|
children: "Go back and edit"
|
|
@@ -161,5 +166,5 @@ const Q = ({
|
|
|
161
166
|
] });
|
|
162
167
|
};
|
|
163
168
|
export {
|
|
164
|
-
|
|
169
|
+
I as default
|
|
165
170
|
};
|
|
@@ -76,8 +76,8 @@ const _ = ({
|
|
|
76
76
|
customSize: "medium",
|
|
77
77
|
isText: !0,
|
|
78
78
|
sx: { padding: "0px", height: "2rem" },
|
|
79
|
-
disabled: n > 0,
|
|
80
|
-
isLoading:
|
|
79
|
+
disabled: n > 0 || !e,
|
|
80
|
+
isLoading: g,
|
|
81
81
|
children: "Resend Email"
|
|
82
82
|
}
|
|
83
83
|
)
|
|
@@ -88,7 +88,7 @@ const _ = ({
|
|
|
88
88
|
onClick: k,
|
|
89
89
|
fullWidth: !0,
|
|
90
90
|
disabled: !e,
|
|
91
|
-
isLoading:
|
|
91
|
+
isLoading: p,
|
|
92
92
|
children: "Confirm"
|
|
93
93
|
}
|
|
94
94
|
) })
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SnackBarParams } from '../../../hooks/useSnackBar';
|
|
2
|
+
interface MinimalKycFormProps {
|
|
3
|
+
onComplete: () => void;
|
|
4
|
+
showAlertMessage: (data: SnackBarParams) => void;
|
|
5
|
+
type: string;
|
|
6
|
+
}
|
|
7
|
+
declare const MinimalKycForm: ({ onComplete, showAlertMessage, type, }: MinimalKycFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default MinimalKycForm;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { jsxs as P, Fragment as h, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as u, useEffect as m } from "react";
|
|
3
|
+
import { u as R, a as S } from "../../../react-redux-B4BZippc.js";
|
|
4
|
+
import c from "../Shared/Input/index.js";
|
|
5
|
+
import q from "../Shared/Button/index.js";
|
|
6
|
+
import "../../../constants-74hrsFxy.js";
|
|
7
|
+
import { g as x, h as W } from "../../../auth-CD4Ih2jU.js";
|
|
8
|
+
import { B as d } from "../../../Box-Bt8cGqC7.js";
|
|
9
|
+
import { C as k } from "../../../CircularProgress-B06C3TSm.js";
|
|
10
|
+
const K = ({
|
|
11
|
+
onComplete: g,
|
|
12
|
+
showAlertMessage: r,
|
|
13
|
+
type: C
|
|
14
|
+
}) => {
|
|
15
|
+
const p = R(), o = S((e) => e.session), w = o.loader, n = o.error, [i, v] = u(""), [t, b] = u(""), [a, y] = u("");
|
|
16
|
+
m(() => {
|
|
17
|
+
n && r({ message: n });
|
|
18
|
+
}, [n]), m(() => {
|
|
19
|
+
o.resetPasswordSuccess && (r({
|
|
20
|
+
message: "Reset Password has been done successfully.",
|
|
21
|
+
type: "success"
|
|
22
|
+
}), g());
|
|
23
|
+
}, [o.resetPasswordSuccess]), m(() => () => {
|
|
24
|
+
p(x(!1));
|
|
25
|
+
}, []);
|
|
26
|
+
const N = () => {
|
|
27
|
+
if (!i) {
|
|
28
|
+
r({ message: "Please provide old password" });
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (!t) {
|
|
32
|
+
r({ message: "Please provide new password" });
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (!a) {
|
|
36
|
+
r({ message: "Please provide confirm new password" });
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (t !== a) {
|
|
40
|
+
r({
|
|
41
|
+
message: "New password & Confirm new password are not same"
|
|
42
|
+
});
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
w || p(W(C, {
|
|
46
|
+
old_password: i,
|
|
47
|
+
new_password: t,
|
|
48
|
+
confirm_password: a
|
|
49
|
+
}));
|
|
50
|
+
}, l = (e, f) => {
|
|
51
|
+
f(e || "");
|
|
52
|
+
};
|
|
53
|
+
return /* @__PURE__ */ P(h, { children: [
|
|
54
|
+
/* @__PURE__ */ s(d, { mt: 2, children: /* @__PURE__ */ s(
|
|
55
|
+
c,
|
|
56
|
+
{
|
|
57
|
+
type: "password",
|
|
58
|
+
autoComplete: "",
|
|
59
|
+
label: "Old Password",
|
|
60
|
+
value: i,
|
|
61
|
+
onChange: (e) => {
|
|
62
|
+
l(e.target.value, v);
|
|
63
|
+
},
|
|
64
|
+
fullWidth: !0,
|
|
65
|
+
required: !0
|
|
66
|
+
}
|
|
67
|
+
) }),
|
|
68
|
+
/* @__PURE__ */ s(d, { mt: 2, children: /* @__PURE__ */ s(
|
|
69
|
+
c,
|
|
70
|
+
{
|
|
71
|
+
type: "password",
|
|
72
|
+
autoComplete: "",
|
|
73
|
+
label: "New Password",
|
|
74
|
+
value: t,
|
|
75
|
+
onChange: (e) => {
|
|
76
|
+
l(e.target.value, b);
|
|
77
|
+
},
|
|
78
|
+
fullWidth: !0,
|
|
79
|
+
required: !0
|
|
80
|
+
}
|
|
81
|
+
) }),
|
|
82
|
+
/* @__PURE__ */ s(d, { mt: 2, children: /* @__PURE__ */ s(
|
|
83
|
+
c,
|
|
84
|
+
{
|
|
85
|
+
type: "password",
|
|
86
|
+
autoComplete: "",
|
|
87
|
+
label: "Confirm New Password",
|
|
88
|
+
value: a,
|
|
89
|
+
onChange: (e) => {
|
|
90
|
+
l(e.target.value, y);
|
|
91
|
+
},
|
|
92
|
+
fullWidth: !0,
|
|
93
|
+
required: !0
|
|
94
|
+
}
|
|
95
|
+
) }),
|
|
96
|
+
/* @__PURE__ */ s(d, { mt: 4, children: /* @__PURE__ */ s(q, { onClick: N, fullWidth: !0, children: /* @__PURE__ */ s("strong", { children: w ? /* @__PURE__ */ P(h, { children: [
|
|
97
|
+
/* @__PURE__ */ s(k, { size: 15, color: "inherit" }),
|
|
98
|
+
" Processing..."
|
|
99
|
+
] }) : "Submit" }) }) })
|
|
100
|
+
] });
|
|
101
|
+
};
|
|
102
|
+
export {
|
|
103
|
+
K as default
|
|
104
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PLAYER_WEBSITE, STORE_WEBSITE } from '../../../util/constants';
|
|
2
|
+
interface ResetPasswordProps {
|
|
3
|
+
onComplete: () => void;
|
|
4
|
+
type: typeof PLAYER_WEBSITE | typeof STORE_WEBSITE;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('react').FC<ResetPasswordProps & import('../../../hoc/withThemeProvider').WithThemeProviderProps>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import e from "../../../hoc/withThemeProvider.js";
|
|
3
|
+
import a from "./form.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "@incodetech/welcome";
|
|
6
|
+
import "../../../axios-BEX6n2A7.js";
|
|
7
|
+
import { useSnackBar as n } from "../../../hooks/useSnackBar.js";
|
|
8
|
+
import "../../SignUp/pin.js";
|
|
9
|
+
import "../../../constants-74hrsFxy.js";
|
|
10
|
+
import '../../../assets/main.css';/* empty css */
|
|
11
|
+
import "../../../util/conversions.js";
|
|
12
|
+
import "../../../index-CAoLi5Qq.js";
|
|
13
|
+
import "../../../react-webcam-B3cXh1XT.js";
|
|
14
|
+
import "../../Shared/transition.js";
|
|
15
|
+
import "../../Shared/pin.js";
|
|
16
|
+
import "../../../moment-h96o7c8I.js";
|
|
17
|
+
import "../../Shared/tooltip.js";
|
|
18
|
+
import "../../../index.esm-BsMAMhYW.js";
|
|
19
|
+
import "../../../web3-u4qDZYpo.js";
|
|
20
|
+
import "../../../index-B8QKlEgj.js";
|
|
21
|
+
import "../../../index-ceeCtFuh.js";
|
|
22
|
+
import { B as d } from "../../../Box-Bt8cGqC7.js";
|
|
23
|
+
import { T as o } from "../../../Typography-Du8mj1kr.js";
|
|
24
|
+
const c = ({ onComplete: t, type: i }) => {
|
|
25
|
+
const { showAlertMessage: m, snackBar: p } = n();
|
|
26
|
+
return /* @__PURE__ */ s(
|
|
27
|
+
d,
|
|
28
|
+
{
|
|
29
|
+
sx: {
|
|
30
|
+
padding: { xs: "1rem", md: "2rem" },
|
|
31
|
+
backgroundColor: "#FFFFFF",
|
|
32
|
+
borderRadius: "1rem",
|
|
33
|
+
boxShadow: "0px 0px 64px 0px rgba(247, 247, 248, 1)"
|
|
34
|
+
},
|
|
35
|
+
children: [
|
|
36
|
+
p,
|
|
37
|
+
/* @__PURE__ */ r(o, { variant: "4xl", fontWeight: 600, children: /* @__PURE__ */ r("b", { children: "Reset Password" }) }),
|
|
38
|
+
/* @__PURE__ */ r(o, { variant: "lg", children: "Reset Password of your Orion Stars account" }),
|
|
39
|
+
/* @__PURE__ */ r(
|
|
40
|
+
a,
|
|
41
|
+
{
|
|
42
|
+
onComplete: t,
|
|
43
|
+
type: i,
|
|
44
|
+
showAlertMessage: m
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}, W = e(c);
|
|
51
|
+
export {
|
|
52
|
+
W as default
|
|
53
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { B as d } from "../../../../Button-
|
|
3
|
-
import { C as m } from "../../../../CircularProgress-
|
|
2
|
+
import { B as d } from "../../../../Button-DwM6qNzr.js";
|
|
3
|
+
import { C as m } from "../../../../CircularProgress-B06C3TSm.js";
|
|
4
4
|
const f = ({
|
|
5
5
|
children: o,
|
|
6
6
|
variant: r = "contained",
|
|
@@ -3,10 +3,16 @@ interface RocketRampInputProps extends Omit<InputProps, "onInvalid" | "onKeyDown
|
|
|
3
3
|
label?: string;
|
|
4
4
|
errorText?: string;
|
|
5
5
|
helperText?: string;
|
|
6
|
+
showInfoIcon?: boolean;
|
|
7
|
+
tooltipText?: string;
|
|
6
8
|
highlightedLabel?: boolean;
|
|
7
9
|
backgroundColor?: string;
|
|
8
10
|
labelFontWeight?: number;
|
|
9
11
|
slotProps?: Record<string, any>;
|
|
10
12
|
}
|
|
13
|
+
interface UserNameInputProps extends RocketRampInputProps {
|
|
14
|
+
suffix: string;
|
|
15
|
+
}
|
|
11
16
|
declare const RocketRampInput: ({ label, highlightedLabel, error, errorText, helperText, backgroundColor, labelFontWeight, ...props }: RocketRampInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
17
|
export default RocketRampInput;
|
|
18
|
+
export declare const UserNameInputField: (props: UserNameInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,48 +1,87 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsxs as m, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import s from "../../../Shared/tooltip.js";
|
|
3
|
+
import { F as c } from "../../../../FormControl-C_Aq5EJK.js";
|
|
4
|
+
import { I as x } from "../../../../IconButton-DS04obIe.js";
|
|
5
|
+
import { I as f } from "../../../../Info-DTcjrneu.js";
|
|
6
|
+
import { T as u, F as a } from "../../../../TextField-CWAqkoYU.js";
|
|
7
|
+
import { I } from "../../../../InputAdornment-HG4f5A6g.js";
|
|
8
|
+
const g = ({
|
|
5
9
|
label: t,
|
|
6
|
-
highlightedLabel:
|
|
7
|
-
error:
|
|
8
|
-
errorText:
|
|
9
|
-
helperText:
|
|
10
|
-
backgroundColor:
|
|
11
|
-
labelFontWeight:
|
|
12
|
-
...
|
|
13
|
-
}) => /* @__PURE__ */
|
|
14
|
-
t && /* @__PURE__ */
|
|
10
|
+
highlightedLabel: i,
|
|
11
|
+
error: n,
|
|
12
|
+
errorText: e,
|
|
13
|
+
helperText: d,
|
|
14
|
+
backgroundColor: p,
|
|
15
|
+
labelFontWeight: l,
|
|
16
|
+
...r
|
|
17
|
+
}) => /* @__PURE__ */ m(c, { fullWidth: !0, variant: "outlined", error: n, children: [
|
|
18
|
+
t && /* @__PURE__ */ m(
|
|
15
19
|
"label",
|
|
16
20
|
{
|
|
17
21
|
style: {
|
|
18
|
-
fontSize:
|
|
19
|
-
fontWeight:
|
|
20
|
-
color:
|
|
22
|
+
fontSize: i ? "1.125rem" : "0.75rem",
|
|
23
|
+
fontWeight: l || 400,
|
|
24
|
+
color: i ? "black" : "#1A202C",
|
|
21
25
|
marginBottom: "0.2rem"
|
|
22
26
|
},
|
|
23
27
|
children: [
|
|
24
28
|
t,
|
|
25
29
|
" ",
|
|
26
|
-
|
|
30
|
+
r.required ? "*" : null,
|
|
31
|
+
r.showInfoIcon && /* @__PURE__ */ o(s, { title: r.tooltipText, placement: "top", children: /* @__PURE__ */ o(
|
|
32
|
+
x,
|
|
33
|
+
{
|
|
34
|
+
className: "info-fee-icon",
|
|
35
|
+
sx: { padding: 0, paddingLeft: "5px", paddingBottom: "3px" },
|
|
36
|
+
children: /* @__PURE__ */ o(f, { style: { fontSize: "14px" } })
|
|
37
|
+
}
|
|
38
|
+
) })
|
|
27
39
|
]
|
|
28
40
|
}
|
|
29
41
|
),
|
|
30
42
|
/* @__PURE__ */ o(
|
|
31
|
-
|
|
43
|
+
u,
|
|
32
44
|
{
|
|
33
45
|
variant: "outlined",
|
|
34
46
|
fullWidth: !0,
|
|
35
47
|
sx: {
|
|
36
|
-
backgroundColor:
|
|
37
|
-
borderColor:
|
|
48
|
+
backgroundColor: p ?? "white",
|
|
49
|
+
borderColor: n ? "red" : "#1A202C"
|
|
38
50
|
},
|
|
39
|
-
error:
|
|
40
|
-
...
|
|
51
|
+
error: n,
|
|
52
|
+
...r
|
|
41
53
|
}
|
|
42
54
|
),
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
] })
|
|
55
|
+
e && /* @__PURE__ */ o(a, { sx: { color: "red", margin: "5px 0px" }, children: e }),
|
|
56
|
+
d && /* @__PURE__ */ o(a, { sx: { color: "#718096", margin: "5px 0px" }, children: d })
|
|
57
|
+
] }), B = (t) => /* @__PURE__ */ o(
|
|
58
|
+
g,
|
|
59
|
+
{
|
|
60
|
+
...t,
|
|
61
|
+
slotProps: {
|
|
62
|
+
input: {
|
|
63
|
+
sx: {
|
|
64
|
+
padding: 0
|
|
65
|
+
},
|
|
66
|
+
endAdornment: /* @__PURE__ */ o(
|
|
67
|
+
I,
|
|
68
|
+
{
|
|
69
|
+
sx: {
|
|
70
|
+
backgroundColor: "#f0f0f0",
|
|
71
|
+
border: "1px solid #ccc",
|
|
72
|
+
padding: "27px 15px",
|
|
73
|
+
borderRadius: "0 4px 4px 0",
|
|
74
|
+
marginRight: "0px"
|
|
75
|
+
},
|
|
76
|
+
position: "start",
|
|
77
|
+
children: t.suffix
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
);
|
|
46
84
|
export {
|
|
47
|
-
|
|
85
|
+
B as UserNameInputField,
|
|
86
|
+
g as default
|
|
48
87
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { c as r } from "../../../createSvgIcon-DhzhBkIq.js";
|
|
3
|
-
import { I as e } from "../../../IconButton-
|
|
3
|
+
import { I as e } from "../../../IconButton-DS04obIe.js";
|
|
4
4
|
import { T as c } from "../../../Typography-Du8mj1kr.js";
|
|
5
5
|
const n = r(/* @__PURE__ */ o("path", {
|
|
6
6
|
d: "M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"
|
|
@@ -8,10 +8,10 @@ import _ from "../../../icons/pendingRedeemIcon.js";
|
|
|
8
8
|
import y from "../../../icons/canceledRedeemIcon.js";
|
|
9
9
|
import L from "../../../icons/failedRedeemIcon.js";
|
|
10
10
|
import { TS_COMPLETE_LABEL as o, TOKEN_TO_FIAT as A, TS_WAIT_APPROVAL_LABEL as c, TS_CREATED_LABEL as m, TS_PENDING_LABEL as l, TS_NOT_APPROVAL_LABEL as d, TS_FAIL_LABEL as p, FIAT_TO_TOKEN as B } from "../../../util/constants.js";
|
|
11
|
-
import { C as E, a as C } from "../../../CardContent-
|
|
11
|
+
import { C as E, a as C } from "../../../CardContent-D9I3IU_z.js";
|
|
12
12
|
import { B as t } from "../../../Box-Bt8cGqC7.js";
|
|
13
13
|
import { T as i } from "../../../Typography-Du8mj1kr.js";
|
|
14
|
-
import { I as D } from "../../../IconButton-
|
|
14
|
+
import { I as D } from "../../../IconButton-DS04obIe.js";
|
|
15
15
|
import { c as R } from "../../../createSvgIcon-DhzhBkIq.js";
|
|
16
16
|
const S = R(/* @__PURE__ */ e("path", {
|
|
17
17
|
d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
interface BalanceProps {
|
|
2
|
-
navigate: any;
|
|
3
2
|
isLoading: boolean;
|
|
4
3
|
amount: string | number;
|
|
5
|
-
isBuyAvailable: boolean;
|
|
6
|
-
isRedeemAvailable: boolean;
|
|
7
4
|
}
|
|
8
|
-
declare const Balance: ({ isLoading, amount
|
|
5
|
+
declare const Balance: ({ isLoading, amount }: BalanceProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
6
|
export default Balance;
|