everest-npm-features 0.0.63 → 0.0.64
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/{PlayArrow-71FP5PzJ.js → PlayArrow-WUr_Eyo1.js} +5 -5
- package/dist/assets/styles2.css +1 -1
- package/dist/{auth-BBeOw4mt.js → auth-Cg-RJNB1.js} +1 -1
- package/dist/bank-CPJa0NOE.js +47 -0
- package/dist/components/RocketRamp/MinimalKyc/form.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
- package/dist/components/RocketRamp/Player/Buy/index.js +5 -5
- package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
- package/dist/components/RocketRamp/Player/Sell/index.js +6 -6
- 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 +2 -2
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/ResetPassword/index.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
- package/dist/components/RocketRamp/Transactions/index.js +2 -2
- package/dist/components/Shared/FullKyc/countryList.js +33 -30
- package/dist/components/Shared/FullKyc/edd.js +3 -3
- package/dist/components/Shared/FullKyc/index.js +11 -10
- package/dist/components/Shared/FullKyc/pep.js +68 -64
- package/dist/components/Shared/FullKyc/personalDetails.js +3 -3
- package/dist/components/Shared/FullKyc/userInfo.js +4 -4
- package/dist/components/Shared/MinimalKyc/index.js +2 -2
- package/dist/components/Shared/Sumsub/index.js +2 -2
- package/dist/components/Wallet/Account/createIban.js +15 -540
- package/dist/components/Wallet/Account/eWallet.js +7 -7
- package/dist/components/Wallet/Account/iban.js +77 -56
- package/dist/components/Wallet/Account/ibanItem.js +3 -3
- package/dist/components/Wallet/Account/index.js +216 -181
- package/dist/components/Wallet/Account/sendIban.js +2 -2
- package/dist/components/Wallet/Buy/confirmTransaction.js +6 -6
- package/dist/components/Wallet/Buy/form.js +5 -5
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/edd.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/index.js +4 -4
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/verify.js +2 -2
- package/dist/components/Wallet/History/index.js +2 -2
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +11 -11
- package/dist/components/Wallet/Portfolio/dropdown.js +42 -27
- package/dist/components/Wallet/Portfolio/index.js +5 -5
- package/dist/components/Wallet/Profile/documents.js +37 -37
- package/dist/components/Wallet/Profile/index.js +5 -5
- package/dist/components/Wallet/Profile/storage.js +14 -14
- package/dist/components/Wallet/Receive/index.js +3 -3
- package/dist/components/Wallet/Sell/confirmTransaction.js +5 -5
- package/dist/components/Wallet/Sell/form.js +5 -5
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +36 -36
- package/dist/components/Wallet/Shared/Auth/otpForm.js +3 -3
- package/dist/components/Wallet/Shared/BankSelect/index.js +4 -4
- package/dist/components/Wallet/Shared/CardCorp/index.js +2 -2
- package/dist/components/Wallet/Shared/addBank.js +4 -4
- package/dist/components/Wallet/Shared/connectPlaidBank.js +7 -7
- package/dist/components/Wallet/Shared/manualSend.js +4 -4
- package/dist/components/Wallet/SignIn/index.js +3 -3
- package/dist/components/Wallet/SignUp/index.js +3 -3
- package/dist/components/Wallet/Stake/gems/index.js +34 -31
- package/dist/components/Wallet/Stake/id/index.js +12 -9
- package/dist/components/Wallet/Stake/index.js +6 -6
- package/dist/components/Wallet/Swap/form.js +7 -7
- package/dist/components/Wallet/Swap/index.js +5 -5
- package/dist/components/Wallet/Withdraw/bankSelect.js +5 -5
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +4 -4
- package/dist/components/Wallet/Withdraw/form.js +4 -4
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-DX0YBtP2.js → constants-BRS2liAt.js} +214 -212
- package/dist/createIban-DKoCQ4o3.js +573 -0
- package/dist/{cryptoAssets-B8rAI7pp.js → cryptoAssets-BD0cJpXM.js} +1 -1
- package/dist/{index-JY6-UKlX.js → index-BUtxhHso.js} +87 -86
- package/dist/{index-B4XvACQN.js → index-C2weAjLp.js} +70 -69
- package/dist/{index-BQNs1mvn.js → index-CREgBh59.js} +4 -3
- package/dist/{index-_fiTunwZ.js → index-CZhiRUiE.js} +4 -4
- package/dist/{index-DuWW5roi.js → index-D7Eq-pbC.js} +65 -64
- package/dist/{index-DkiQ8pRO.js → index-DX8IEulu.js} +52 -52
- package/dist/{index-bK14vCZw.js → index-hgn4Pjw3.js} +5 -5
- package/dist/index-oPbOSCUk.js +545 -0
- package/dist/{kyc-BNMPoeHt.js → kyc-C7NviI9l.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/{order-BXeCIvqC.js → order-DBuLYKfx.js} +1 -1
- package/dist/{otpForm-DeeegaX2.js → otpForm-DhVp5Gvi.js} +2 -2
- package/dist/{stake-BO2TYVJ7.js → stake-DGXpiw_Y.js} +1 -1
- package/dist/styles.module-C99UuHOT.js +22 -0
- package/dist/{wallet-BPXOp8UG.js → wallet-BLx0XKpK.js} +1 -1
- package/package.json +7 -7
- package/dist/bank-HVb0GFsa.js +0 -37
- package/dist/index-CTPMPwYK.js +0 -533
- package/dist/styles.module-C1sNeKjL.js +0 -22
|
@@ -0,0 +1,545 @@
|
|
|
1
|
+
import { jsxs as A, Fragment as le, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as r, useEffect as M, useRef as Ae } from "react";
|
|
3
|
+
import { AuthContainer as Oe } from "./components/Wallet/Shared/Container/index.js";
|
|
4
|
+
import { Box as ee, Typography as te, FormControl as _e, InputLabel as Pe, Select as Re, MenuItem as oe, Grid as se } from "@mui/material";
|
|
5
|
+
import be from "./hoc/withThemeProvider.js";
|
|
6
|
+
import Se from "./components/Wallet/Shared/Input/index.js";
|
|
7
|
+
import ve from "./components/Wallet/Shared/appButton.js";
|
|
8
|
+
import "./index-DlQqWbXG.js";
|
|
9
|
+
import "./otpForm-DhVp5Gvi.js";
|
|
10
|
+
import { d as B, f as Be } from "./constants-BRS2liAt.js";
|
|
11
|
+
import { c as Le, d as Te } from "./kyc-C7NviI9l.js";
|
|
12
|
+
import { useSnackBarContext as pe } from "./context/snackBarContext.js";
|
|
13
|
+
import xe from "./hooks/useEverestDispatch.js";
|
|
14
|
+
import "./util/conversions.js";
|
|
15
|
+
import "./index-CAoLi5Qq.js";
|
|
16
|
+
import Ne from "./components/Wallet/Shared/step.js";
|
|
17
|
+
import "./react-webcam-B3cXh1XT.js";
|
|
18
|
+
import "./components/Shared/transition.js";
|
|
19
|
+
import "./tooltip-BW0UyWw7.js";
|
|
20
|
+
import "./moment-h96o7c8I.js";
|
|
21
|
+
import "./index.esm-BsMAMhYW.js";
|
|
22
|
+
import { c as Ie } from "./countries-BVn1FubK.js";
|
|
23
|
+
import "./web3-u4qDZYpo.js";
|
|
24
|
+
import "./index-ceeCtFuh.js";
|
|
25
|
+
import "./context/dialogContext.js";
|
|
26
|
+
import "@mui/icons-material";
|
|
27
|
+
import de from "./components/Shared/FullKyc/countryList.js";
|
|
28
|
+
import Ke from "./components/Shared/FullKyc/pep.js";
|
|
29
|
+
import { p as Fe } from "./index-CREgBh59.js";
|
|
30
|
+
import { u as H } from "./react-redux-C7I9-1M6.js";
|
|
31
|
+
import ze from "./components/Shared/FullKyc/edd.js";
|
|
32
|
+
import Me from "./components/Shared/Sumsub/index.js";
|
|
33
|
+
const qe = ({
|
|
34
|
+
inputComponent: g,
|
|
35
|
+
buttonComponent: Z,
|
|
36
|
+
setUserInfo: q,
|
|
37
|
+
userInfo: l,
|
|
38
|
+
docData: s,
|
|
39
|
+
setScreen: u,
|
|
40
|
+
userEmail: y,
|
|
41
|
+
kycFlow: h
|
|
42
|
+
}) => {
|
|
43
|
+
const d = xe(), { showAlertMessage: m } = pe(), o = g ?? Se, w = Z ?? ve, [a, c] = r(l.gender || ""), [f, L] = r(!1), [E, S] = r(l.email || ""), [ne, re] = r(!1), [$, ie] = r(""), [v, C] = r(l.address || ""), [T, n] = r(l.city || ""), [I, O] = r(l.state || ""), [K, U] = r(l.zipCode || ""), [_, V] = r(
|
|
44
|
+
l.country || null
|
|
45
|
+
), [e, W] = r(!1);
|
|
46
|
+
M(() => {
|
|
47
|
+
y && (S(y), re(!0));
|
|
48
|
+
}, [y]), M(() => {
|
|
49
|
+
var i;
|
|
50
|
+
if (s != null && s.issuingCountry) {
|
|
51
|
+
s.gender && (c(s.gender), L(!0));
|
|
52
|
+
const x = Ie.find(
|
|
53
|
+
(p) => p.alpha3 === s.issuingCountry
|
|
54
|
+
);
|
|
55
|
+
q({ ...l, country: x, nationality: x });
|
|
56
|
+
const N = new Date(s.birthDate), z = N.getTimezoneOffset() * 6e4, R = new Date(
|
|
57
|
+
N.getTime() + z
|
|
58
|
+
);
|
|
59
|
+
if (ie(R.toLocaleDateString("en-US")), (i = s.checkedAddressBean) != null && i.street) {
|
|
60
|
+
const p = s.checkedAddressBean;
|
|
61
|
+
W(!0), C(p.street), n(p.city), O(p.state), U(p.postalCode);
|
|
62
|
+
}
|
|
63
|
+
} else
|
|
64
|
+
P();
|
|
65
|
+
}, []);
|
|
66
|
+
const P = () => {
|
|
67
|
+
d(Le());
|
|
68
|
+
};
|
|
69
|
+
return /* @__PURE__ */ A(le, { children: [
|
|
70
|
+
h !== B && /* @__PURE__ */ t(ee, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(Ne, { totalSteps: 4, currentStep: 2 }) }),
|
|
71
|
+
/* @__PURE__ */ A(ee, { mt: 4, children: [
|
|
72
|
+
/* @__PURE__ */ t(te, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "Personal details" }),
|
|
73
|
+
h !== B && /* @__PURE__ */ A(le, { children: [
|
|
74
|
+
/* @__PURE__ */ t(te, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
|
|
75
|
+
/* @__PURE__ */ t(
|
|
76
|
+
o,
|
|
77
|
+
{
|
|
78
|
+
sx: { mt: 3 },
|
|
79
|
+
label: "Date of Birth",
|
|
80
|
+
value: $,
|
|
81
|
+
disabled: !0,
|
|
82
|
+
required: !0
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
/* @__PURE__ */ A(_e, { sx: { mt: 3 }, fullWidth: !0, children: [
|
|
86
|
+
/* @__PURE__ */ t(Pe, { children: "Gender" }),
|
|
87
|
+
/* @__PURE__ */ A(
|
|
88
|
+
Re,
|
|
89
|
+
{
|
|
90
|
+
value: a,
|
|
91
|
+
label: "Gender",
|
|
92
|
+
onChange: (i) => c(i.target.value),
|
|
93
|
+
disabled: !!(f && a),
|
|
94
|
+
required: !0,
|
|
95
|
+
children: [
|
|
96
|
+
/* @__PURE__ */ t(oe, { value: "M", children: "Male" }, "M"),
|
|
97
|
+
/* @__PURE__ */ t(oe, { value: "F", children: "Female" }, "F"),
|
|
98
|
+
/* @__PURE__ */ t(oe, { value: "X", children: "Another" }, "X")
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
] }),
|
|
103
|
+
/* @__PURE__ */ t(
|
|
104
|
+
o,
|
|
105
|
+
{
|
|
106
|
+
sx: { mt: 3 },
|
|
107
|
+
label: "Email",
|
|
108
|
+
value: E,
|
|
109
|
+
onChange: (i) => S(i.target.value),
|
|
110
|
+
disabled: ne,
|
|
111
|
+
required: !0
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
] }),
|
|
115
|
+
/* @__PURE__ */ t(
|
|
116
|
+
o,
|
|
117
|
+
{
|
|
118
|
+
sx: { mt: 3 },
|
|
119
|
+
label: "Home Address",
|
|
120
|
+
value: v,
|
|
121
|
+
onChange: (i) => C(i.target.value),
|
|
122
|
+
disabled: !!(e && v),
|
|
123
|
+
required: !0
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
/* @__PURE__ */ A(se, { container: !0, spacing: 2, sx: { mt: 3 }, children: [
|
|
127
|
+
/* @__PURE__ */ t(se, { size: 6, children: /* @__PURE__ */ t(
|
|
128
|
+
o,
|
|
129
|
+
{
|
|
130
|
+
label: "City",
|
|
131
|
+
value: T,
|
|
132
|
+
onChange: (i) => n(i.target.value),
|
|
133
|
+
disabled: !!(e && T),
|
|
134
|
+
required: !0
|
|
135
|
+
}
|
|
136
|
+
) }),
|
|
137
|
+
/* @__PURE__ */ t(se, { size: 6, children: /* @__PURE__ */ t(
|
|
138
|
+
o,
|
|
139
|
+
{
|
|
140
|
+
label: "State/Province",
|
|
141
|
+
value: I,
|
|
142
|
+
onChange: (i) => O(i.target.value)
|
|
143
|
+
}
|
|
144
|
+
) })
|
|
145
|
+
] }),
|
|
146
|
+
/* @__PURE__ */ t(
|
|
147
|
+
o,
|
|
148
|
+
{
|
|
149
|
+
sx: { mt: 3 },
|
|
150
|
+
label: "Zipcode",
|
|
151
|
+
value: K,
|
|
152
|
+
onChange: (i) => U(i.target.value),
|
|
153
|
+
disabled: !!(e && K),
|
|
154
|
+
required: !0
|
|
155
|
+
}
|
|
156
|
+
),
|
|
157
|
+
/* @__PURE__ */ t(
|
|
158
|
+
de,
|
|
159
|
+
{
|
|
160
|
+
value: _,
|
|
161
|
+
onChange: V,
|
|
162
|
+
label: "Country of residence"
|
|
163
|
+
}
|
|
164
|
+
)
|
|
165
|
+
] }),
|
|
166
|
+
/* @__PURE__ */ t(
|
|
167
|
+
w,
|
|
168
|
+
{
|
|
169
|
+
sx: { mt: 3 },
|
|
170
|
+
variant: "contained",
|
|
171
|
+
onClick: () => {
|
|
172
|
+
if (h !== B) {
|
|
173
|
+
if (!$)
|
|
174
|
+
return m({ message: "Please provide date of birth" });
|
|
175
|
+
if (!a)
|
|
176
|
+
return m({ message: "Please provide gender" });
|
|
177
|
+
}
|
|
178
|
+
if (!v)
|
|
179
|
+
return m({ message: "Please provide address" });
|
|
180
|
+
if (!T) return m({ message: "Please provide city" });
|
|
181
|
+
if (!K)
|
|
182
|
+
return m({ message: "Please provide zip code" });
|
|
183
|
+
if (!_)
|
|
184
|
+
return m({
|
|
185
|
+
message: "Please select country of residency"
|
|
186
|
+
});
|
|
187
|
+
q({
|
|
188
|
+
...l,
|
|
189
|
+
gender: a,
|
|
190
|
+
email: E,
|
|
191
|
+
address: v,
|
|
192
|
+
city: T,
|
|
193
|
+
state: I,
|
|
194
|
+
zipCode: K,
|
|
195
|
+
country: _
|
|
196
|
+
}), u(
|
|
197
|
+
h !== B ? ce : me
|
|
198
|
+
);
|
|
199
|
+
},
|
|
200
|
+
disabled: h !== B && !E || h !== B && !a || !v || !_,
|
|
201
|
+
fullWidth: !0,
|
|
202
|
+
children: /* @__PURE__ */ t("strong", { children: "Next" })
|
|
203
|
+
}
|
|
204
|
+
)
|
|
205
|
+
] });
|
|
206
|
+
}, we = ({
|
|
207
|
+
userInfo: g,
|
|
208
|
+
setUserInfo: Z,
|
|
209
|
+
setScreen: q,
|
|
210
|
+
inputComponent: l,
|
|
211
|
+
buttonComponent: s
|
|
212
|
+
}) => {
|
|
213
|
+
const { showAlertMessage: u } = pe(), y = l ?? Se, h = s ?? ve, [d, m] = r(
|
|
214
|
+
g.placeOfBirth || null
|
|
215
|
+
), [o, w] = r(
|
|
216
|
+
g.nationality || null
|
|
217
|
+
), [a, c] = r(g.occupation || ""), [f, L] = r(g.employer || "");
|
|
218
|
+
return /* @__PURE__ */ A(le, { children: [
|
|
219
|
+
/* @__PURE__ */ t(ee, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(Ne, { totalSteps: 4, currentStep: 3 }) }),
|
|
220
|
+
/* @__PURE__ */ A(ee, { mt: 4, children: [
|
|
221
|
+
/* @__PURE__ */ t(te, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "More Personal details" }),
|
|
222
|
+
/* @__PURE__ */ t(te, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
|
|
223
|
+
/* @__PURE__ */ t(
|
|
224
|
+
de,
|
|
225
|
+
{
|
|
226
|
+
value: d,
|
|
227
|
+
onChange: m,
|
|
228
|
+
label: "Place Of Birth"
|
|
229
|
+
}
|
|
230
|
+
),
|
|
231
|
+
/* @__PURE__ */ t(
|
|
232
|
+
de,
|
|
233
|
+
{
|
|
234
|
+
value: o,
|
|
235
|
+
onChange: w,
|
|
236
|
+
label: "Country of citizenship"
|
|
237
|
+
}
|
|
238
|
+
),
|
|
239
|
+
/* @__PURE__ */ t(
|
|
240
|
+
y,
|
|
241
|
+
{
|
|
242
|
+
sx: { mt: 3 },
|
|
243
|
+
label: "Occupation",
|
|
244
|
+
value: a,
|
|
245
|
+
onChange: (S) => c(S.target.value)
|
|
246
|
+
}
|
|
247
|
+
),
|
|
248
|
+
/* @__PURE__ */ t(
|
|
249
|
+
y,
|
|
250
|
+
{
|
|
251
|
+
sx: { mt: 3 },
|
|
252
|
+
label: "Employer",
|
|
253
|
+
value: f,
|
|
254
|
+
onChange: (S) => L(S.target.value)
|
|
255
|
+
}
|
|
256
|
+
)
|
|
257
|
+
] }),
|
|
258
|
+
/* @__PURE__ */ t(
|
|
259
|
+
h,
|
|
260
|
+
{
|
|
261
|
+
sx: { mt: 3 },
|
|
262
|
+
variant: "contained",
|
|
263
|
+
onClick: () => {
|
|
264
|
+
if (!d) {
|
|
265
|
+
u({ message: "Please select place of birth" });
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
if (!o) {
|
|
269
|
+
u({ message: "Please provide address" });
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
if (!a) {
|
|
273
|
+
u({ message: "Please provide city" });
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
Z({
|
|
277
|
+
...g,
|
|
278
|
+
placeOfBirth: d,
|
|
279
|
+
nationality: o,
|
|
280
|
+
occupation: a,
|
|
281
|
+
employer: f
|
|
282
|
+
}), q(me);
|
|
283
|
+
},
|
|
284
|
+
disabled: !d || !o || !a || !f,
|
|
285
|
+
fullWidth: !0,
|
|
286
|
+
children: /* @__PURE__ */ t("strong", { children: "Next" })
|
|
287
|
+
}
|
|
288
|
+
)
|
|
289
|
+
] });
|
|
290
|
+
}, ae = "INCODE_SCREEN", D = "USER_INFO_SCREEN", ce = "PERSONAL_DETAILS_SCREEN", me = "PEP_SCREEN", Ue = "EDD_SCREEN", We = {
|
|
291
|
+
BANK_STATEMENT: {
|
|
292
|
+
text: "",
|
|
293
|
+
file: [],
|
|
294
|
+
preview: []
|
|
295
|
+
},
|
|
296
|
+
PROOF_OF_INCOME: {
|
|
297
|
+
text: "",
|
|
298
|
+
file: [],
|
|
299
|
+
preview: []
|
|
300
|
+
},
|
|
301
|
+
SOURCE_OF_WEALTH: {
|
|
302
|
+
text: "",
|
|
303
|
+
file: [],
|
|
304
|
+
preview: []
|
|
305
|
+
}
|
|
306
|
+
}, Ge = ({
|
|
307
|
+
configurationId: g,
|
|
308
|
+
incodeApiKey: Z,
|
|
309
|
+
incodeApiUrl: q,
|
|
310
|
+
incodeOnBoardingUrl: l,
|
|
311
|
+
withContainer: s = !1,
|
|
312
|
+
successHandler: u,
|
|
313
|
+
updateScreen: y,
|
|
314
|
+
isModalView: h = !1,
|
|
315
|
+
kycFlow: d
|
|
316
|
+
}) => {
|
|
317
|
+
const m = Ae(!0), { showAlertMessage: o } = pe(), w = xe(), a = H((e) => e.user), c = H((e) => e.user.kyc);
|
|
318
|
+
H((e) => e.session.uuid);
|
|
319
|
+
const f = a.kyc, L = f.processComplete, E = H(Fe), S = {}, [ne, re] = r(S);
|
|
320
|
+
r({ token: "" });
|
|
321
|
+
const [$, ie] = r(""), [v, C] = r(
|
|
322
|
+
d === B ? D : ae
|
|
323
|
+
);
|
|
324
|
+
M(() => {
|
|
325
|
+
if (m.current) {
|
|
326
|
+
m.current = !1;
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
let e;
|
|
330
|
+
switch (v) {
|
|
331
|
+
case D:
|
|
332
|
+
e = ae;
|
|
333
|
+
break;
|
|
334
|
+
case ce:
|
|
335
|
+
e = D;
|
|
336
|
+
break;
|
|
337
|
+
case me:
|
|
338
|
+
e = ce;
|
|
339
|
+
break;
|
|
340
|
+
default:
|
|
341
|
+
e = ae;
|
|
342
|
+
}
|
|
343
|
+
C(e);
|
|
344
|
+
}, [y]), M(() => {
|
|
345
|
+
let e;
|
|
346
|
+
return u && L && (E.shouldAutoCreate && E.currency ? e = setTimeout(() => {
|
|
347
|
+
o({
|
|
348
|
+
message: "KYC verification complete. Creating your Virtual IBAN...",
|
|
349
|
+
type: "success"
|
|
350
|
+
}), u();
|
|
351
|
+
}, 1e3) : (o({
|
|
352
|
+
message: "KYC request has been received and will be processed shortly.",
|
|
353
|
+
type: "success"
|
|
354
|
+
}), u())), () => {
|
|
355
|
+
e && clearTimeout(e);
|
|
356
|
+
};
|
|
357
|
+
}, [u, L, E.shouldAutoCreate, E.currency]);
|
|
358
|
+
const T = {
|
|
359
|
+
gender: "",
|
|
360
|
+
email: "",
|
|
361
|
+
address: "",
|
|
362
|
+
city: "",
|
|
363
|
+
state: "",
|
|
364
|
+
zipCode: "",
|
|
365
|
+
placeOfBirth: "",
|
|
366
|
+
country: "",
|
|
367
|
+
nationality: "",
|
|
368
|
+
occupation: "",
|
|
369
|
+
employer: "",
|
|
370
|
+
isPoliticalExpose: !1,
|
|
371
|
+
politicalExpose: "",
|
|
372
|
+
origin: "",
|
|
373
|
+
frequency: "",
|
|
374
|
+
reason: "",
|
|
375
|
+
source: ""
|
|
376
|
+
}, [n, I] = r(T), [O, K] = r(We);
|
|
377
|
+
M(() => {
|
|
378
|
+
O.BANK_STATEMENT.file.length > 0 && U(O);
|
|
379
|
+
}, [O]);
|
|
380
|
+
const U = (e) => {
|
|
381
|
+
_(
|
|
382
|
+
n.isPoliticalExpose,
|
|
383
|
+
n.politicalExpose,
|
|
384
|
+
n.frequency,
|
|
385
|
+
n.reason,
|
|
386
|
+
n.source,
|
|
387
|
+
n.origin,
|
|
388
|
+
e,
|
|
389
|
+
!0
|
|
390
|
+
);
|
|
391
|
+
}, _ = (e, W, P, F, i, x, N, z = !1) => {
|
|
392
|
+
var R, p, G;
|
|
393
|
+
if (d !== Be && !z) {
|
|
394
|
+
C(Ue);
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
if (!f.loader) {
|
|
398
|
+
const X = {
|
|
399
|
+
street: n.address,
|
|
400
|
+
city: n.city,
|
|
401
|
+
postcode: n.zipCode,
|
|
402
|
+
state: n.state,
|
|
403
|
+
country: (R = n.country) == null ? void 0 : R.alpha3
|
|
404
|
+
}, J = {
|
|
405
|
+
isExposed: e,
|
|
406
|
+
exposed: W,
|
|
407
|
+
frequency: P,
|
|
408
|
+
reason: F,
|
|
409
|
+
source: i,
|
|
410
|
+
originFunds: x
|
|
411
|
+
}, Q = {
|
|
412
|
+
frequency: P,
|
|
413
|
+
reason: F,
|
|
414
|
+
source: i,
|
|
415
|
+
originFunds: x
|
|
416
|
+
}, Y = {
|
|
417
|
+
kycFlow: d,
|
|
418
|
+
email: n.email,
|
|
419
|
+
gender: n.gender,
|
|
420
|
+
birthPlace: (p = n.placeOfBirth) == null ? void 0 : p.alpha3,
|
|
421
|
+
nationality: (G = n.nationality) == null ? void 0 : G.alpha3,
|
|
422
|
+
occupation: n.occupation,
|
|
423
|
+
employer: n.employer,
|
|
424
|
+
residentialAddress: X,
|
|
425
|
+
politicalExposure: J,
|
|
426
|
+
customerDueDiligence: Q,
|
|
427
|
+
workflow: {
|
|
428
|
+
token: $
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
if (N) {
|
|
432
|
+
const j = Object.entries(N).filter(([k, b]) => b.file && b.file.length > 0).map(([k, b]) => ({
|
|
433
|
+
file: b.file[0],
|
|
434
|
+
type: k
|
|
435
|
+
}));
|
|
436
|
+
j.length > 0 && (Y.eddDocuments = j);
|
|
437
|
+
}
|
|
438
|
+
w(Te(Y));
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
M(() => {
|
|
442
|
+
var P, F, i, x, N, z, R, p, G, X, J, Q, Y, j, k, b, ue, fe, he, Ee, Ce, ge, ye;
|
|
443
|
+
const e = c == null ? void 0 : c.sumsubDocumentData;
|
|
444
|
+
if (!e) return;
|
|
445
|
+
const W = {
|
|
446
|
+
name: {
|
|
447
|
+
fullName: `${((P = e == null ? void 0 : e.documentData) == null ? void 0 : P.firstName) ?? ""} ${((F = e == null ? void 0 : e.documentData) == null ? void 0 : F.lastName) ?? ""}`.trim(),
|
|
448
|
+
firstName: ((i = e == null ? void 0 : e.documentData) == null ? void 0 : i.firstName) ?? "",
|
|
449
|
+
givenName: ((x = e == null ? void 0 : e.documentData) == null ? void 0 : x.firstName) ?? "",
|
|
450
|
+
paternalLastName: ((N = e == null ? void 0 : e.documentData) == null ? void 0 : N.lastName) ?? ""
|
|
451
|
+
},
|
|
452
|
+
address: ((R = (z = e == null ? void 0 : e.documentData) == null ? void 0 : z.address) == null ? void 0 : R.street) ?? "",
|
|
453
|
+
checkedAddressBean: {
|
|
454
|
+
street: ((G = (p = e == null ? void 0 : e.documentData) == null ? void 0 : p.address) == null ? void 0 : G.street) ?? "",
|
|
455
|
+
city: ((J = (X = e == null ? void 0 : e.documentData) == null ? void 0 : X.address) == null ? void 0 : J.city) ?? "",
|
|
456
|
+
state: ((Y = (Q = e == null ? void 0 : e.documentData) == null ? void 0 : Q.address) == null ? void 0 : Y.state) ?? "",
|
|
457
|
+
postalCode: ((k = (j = e == null ? void 0 : e.documentData) == null ? void 0 : j.address) == null ? void 0 : k.postcode) ?? "",
|
|
458
|
+
zipColonyOptions: []
|
|
459
|
+
},
|
|
460
|
+
typeOfId: ((b = e == null ? void 0 : e.document) == null ? void 0 : b.docType) ?? "",
|
|
461
|
+
documentFrontSubtype: "",
|
|
462
|
+
documentBackSubtype: "",
|
|
463
|
+
issueFront: 0,
|
|
464
|
+
issueBack: 0,
|
|
465
|
+
birthDate: Date.parse(((ue = e == null ? void 0 : e.documentData) == null ? void 0 : ue.dateOfBirth) ?? "") || 0,
|
|
466
|
+
gender: ((fe = e == null ? void 0 : e.documentData) == null ? void 0 : fe.gender) ?? "",
|
|
467
|
+
personalNumber: ((he = e == null ? void 0 : e.documentData) == null ? void 0 : he.number) ?? "",
|
|
468
|
+
issuedAt: "",
|
|
469
|
+
expireAt: ((Ee = e == null ? void 0 : e.documentData) == null ? void 0 : Ee.dateOfExpiry) ?? "",
|
|
470
|
+
expirationDate: Date.parse(((Ce = e == null ? void 0 : e.documentData) == null ? void 0 : Ce.dateOfExpiry) ?? "") || 0,
|
|
471
|
+
issueDate: 0,
|
|
472
|
+
issuingCountry: ((ge = e == null ? void 0 : e.document) == null ? void 0 : ge.issuingCountry) ?? ((ye = e == null ? void 0 : e.documentData) == null ? void 0 : ye.issuingCountry) ?? "",
|
|
473
|
+
notExtracted: 0,
|
|
474
|
+
notExtractedDetails: [],
|
|
475
|
+
additionalAttrs: [],
|
|
476
|
+
ocrDataConfidence: {
|
|
477
|
+
birthDateConfidence: 0,
|
|
478
|
+
nameConfidence: 0,
|
|
479
|
+
givenNameConfidence: 0,
|
|
480
|
+
fathersSurnameConfidence: 0,
|
|
481
|
+
addressConfidence: 0,
|
|
482
|
+
issueDateConfidence: 0,
|
|
483
|
+
expirationDateConfidence: 0,
|
|
484
|
+
issuedAtConfidence: 0,
|
|
485
|
+
expireAtConfidence: 0,
|
|
486
|
+
personalNumberConfidence: 0
|
|
487
|
+
}
|
|
488
|
+
};
|
|
489
|
+
re(W), C(D);
|
|
490
|
+
}, [c == null ? void 0 : c.sumsubDocumentData]);
|
|
491
|
+
const V = {
|
|
492
|
+
INCODE_SCREEN: /* @__PURE__ */ t(Me, { onApplicantIdLoaded: ie }),
|
|
493
|
+
USER_INFO_SCREEN: /* @__PURE__ */ t(
|
|
494
|
+
qe,
|
|
495
|
+
{
|
|
496
|
+
docData: ne,
|
|
497
|
+
setScreen: C,
|
|
498
|
+
setUserInfo: I,
|
|
499
|
+
userInfo: n,
|
|
500
|
+
userEmail: a.profile.email,
|
|
501
|
+
kycFlow: d
|
|
502
|
+
}
|
|
503
|
+
),
|
|
504
|
+
PERSONAL_DETAILS_SCREEN: /* @__PURE__ */ t(
|
|
505
|
+
we,
|
|
506
|
+
{
|
|
507
|
+
setScreen: C,
|
|
508
|
+
setUserInfo: I,
|
|
509
|
+
userInfo: n
|
|
510
|
+
}
|
|
511
|
+
),
|
|
512
|
+
PEP_SCREEN: /* @__PURE__ */ t(
|
|
513
|
+
Ke,
|
|
514
|
+
{
|
|
515
|
+
setScreen: C,
|
|
516
|
+
setUserInfo: I,
|
|
517
|
+
userInfo: n,
|
|
518
|
+
processKyc: _,
|
|
519
|
+
processLoader: f.loader,
|
|
520
|
+
kycFlow: d
|
|
521
|
+
}
|
|
522
|
+
),
|
|
523
|
+
EDD_SCREEN: /* @__PURE__ */ t(
|
|
524
|
+
ze,
|
|
525
|
+
{
|
|
526
|
+
kycStoreData: c,
|
|
527
|
+
eddData: O,
|
|
528
|
+
setEddData: K,
|
|
529
|
+
processKyc: U,
|
|
530
|
+
processLoader: f.loader
|
|
531
|
+
}
|
|
532
|
+
)
|
|
533
|
+
}[v];
|
|
534
|
+
return s ? /* @__PURE__ */ t(Oe, { addPadding: !0, children: V }) : V;
|
|
535
|
+
}, vt = be(Ge);
|
|
536
|
+
export {
|
|
537
|
+
Ue as E,
|
|
538
|
+
vt as F,
|
|
539
|
+
ae as I,
|
|
540
|
+
we as P,
|
|
541
|
+
qe as U,
|
|
542
|
+
D as a,
|
|
543
|
+
ce as b,
|
|
544
|
+
me as c
|
|
545
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a7 as s, a8 as e, a9 as t, aa as E, ab as _, ac as o, ad as c, ae as S } from "./constants-BRS2liAt.js";
|
|
2
2
|
const p = (a) => ({
|
|
3
3
|
type: _,
|
|
4
4
|
payload: a
|
package/dist/main.js
CHANGED
|
@@ -11,13 +11,13 @@ import { default as g } from "./components/Wallet/Account/index.js";
|
|
|
11
11
|
import { default as P } from "./components/Wallet/Stake/index.js";
|
|
12
12
|
import { default as w } from "./components/Wallet/MoveToEthereumOrEverChain/index.js";
|
|
13
13
|
import { default as C } from "./components/Wallet/SwapAndUniSwap/index.js";
|
|
14
|
-
import { i as M } from "./index-
|
|
15
|
-
import { i as E } from "./index-
|
|
16
|
-
import { i as b } from "./index-
|
|
17
|
-
import { i as F } from "./index-
|
|
14
|
+
import { i as M } from "./index-D7Eq-pbC.js";
|
|
15
|
+
import { i as E } from "./index-BUtxhHso.js";
|
|
16
|
+
import { i as b } from "./index-DX8IEulu.js";
|
|
17
|
+
import { i as F } from "./index-C2weAjLp.js";
|
|
18
18
|
import { default as I } from "./components/Wallet/EnterpriseKyc/index.js";
|
|
19
19
|
import { default as W } from "./components/Wallet/Deposit/index.js";
|
|
20
|
-
import { F as j } from "./index-
|
|
20
|
+
import { F as j } from "./index-oPbOSCUk.js";
|
|
21
21
|
import { useSnackBar as z } from "./hooks/useSnackBar.js";
|
|
22
22
|
import { SnackBarContext as J, useSnackBarContext as L } from "./context/snackBarContext.js";
|
|
23
23
|
import { useDialog as Q } from "./hooks/useDialog/index.js";
|
|
@@ -26,8 +26,8 @@ import { default as _ } from "./components/RocketRamp/Player/SignIn/index.js";
|
|
|
26
26
|
import { default as oo } from "./components/RocketRamp/Player/SignUp/index.js";
|
|
27
27
|
import { default as ao } from "./components/RocketRamp/Player/Dashboard/index.js";
|
|
28
28
|
import { default as to } from "./components/RocketRamp/Transactions/index.js";
|
|
29
|
-
import { i as po } from "./index-
|
|
30
|
-
import { i as so } from "./index-
|
|
29
|
+
import { i as po } from "./index-CZhiRUiE.js";
|
|
30
|
+
import { i as so } from "./index-hgn4Pjw3.js";
|
|
31
31
|
import { default as xo } from "./components/RocketRamp/MinimalKyc/index.js";
|
|
32
32
|
import { default as io } from "./components/RocketRamp/Store/SignUp/index.js";
|
|
33
33
|
import { default as Ro } from "./components/RocketRamp/Store/Dashboard/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as s, x as t, y as E, z as R, B as o, C as r, D as _, E as p, G as T, H as y, I as d, J as S, M as D } from "./constants-
|
|
1
|
+
import { O as s, x as t, y as E, z as R, B as o, C as r, D as _, E as p, G as T, H as y, I as d, J as S, M as D } from "./constants-BRS2liAt.js";
|
|
2
2
|
const O = (e) => ({
|
|
3
3
|
type: d,
|
|
4
4
|
payload: e
|
|
@@ -2,8 +2,8 @@ import { jsx as P, jsxs as re, Fragment as tn } from "react/jsx-runtime";
|
|
|
2
2
|
import { styled as on, Box as _t, Stack as mt, Typography as bt } from "@mui/material";
|
|
3
3
|
import * as d from "react";
|
|
4
4
|
import $e, { useState as Dt, useEffect as nn } from "react";
|
|
5
|
-
import "./constants-
|
|
6
|
-
import { l as rn } from "./auth-
|
|
5
|
+
import "./constants-BRS2liAt.js";
|
|
6
|
+
import { l as rn } from "./auth-Cg-RJNB1.js";
|
|
7
7
|
import { RESEND_EMAIL_TIMER as jt } from "./util/constants.js";
|
|
8
8
|
import Bt from "./components/Wallet/Shared/appButton.js";
|
|
9
9
|
import { P as e, j as sn, k as an, l as ln, n as cn, o as un, b as ne, i as dn, T as mo, a as se, g as ue, c as he, s as j, m as me, u as pe, d as ie, p as bo, r as Pe, q as Ot, e as zt, t as Wt, v as pn, w as fn, C as mn } from "./memoTheme-DnE8lj0t.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import './assets/styles2.css';const t = "_container_1dbo2_1", _ = "_active_1dbo2_43", o = {
|
|
2
|
+
container: t,
|
|
3
|
+
"inner-container": "_inner-container_1dbo2_15",
|
|
4
|
+
"sub-tabs": "_sub-tabs_1dbo2_29",
|
|
5
|
+
active: _,
|
|
6
|
+
"sub-tabs-item": "_sub-tabs-item_1dbo2_53",
|
|
7
|
+
"buy-sell-text": "_buy-sell-text_1dbo2_65",
|
|
8
|
+
"heading-text": "_heading-text_1dbo2_75",
|
|
9
|
+
"info-icon": "_info-icon_1dbo2_89",
|
|
10
|
+
"button-icon": "_button-icon_1dbo2_99",
|
|
11
|
+
"add-container": "_add-container_1dbo2_109",
|
|
12
|
+
"move-id": "_move-id_1dbo2_117",
|
|
13
|
+
"move-id-text": "_move-id-text_1dbo2_133",
|
|
14
|
+
"move-btn": "_move-btn_1dbo2_145",
|
|
15
|
+
"time-item": "_time-item_1dbo2_169",
|
|
16
|
+
"item-1st": "_item-1st_1dbo2_191",
|
|
17
|
+
"item-last": "_item-last_1dbo2_201",
|
|
18
|
+
"stake-modal-content": "_stake-modal-content_1dbo2_213"
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
o as s
|
|
22
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as a, U as e, p as t, q as E, r as T, s as A, t as _, u as o, v as S, w as l } from "./constants-
|
|
1
|
+
import { F as a, U as e, p as t, q as E, r as T, s as A, t as _, u as o, v as S, w as l } from "./constants-BRS2liAt.js";
|
|
2
2
|
const L = () => ({
|
|
3
3
|
type: e
|
|
4
4
|
}), d = () => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "everest-npm-features",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.64",
|
|
4
4
|
"description": "Everest frontend features library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -18,22 +18,22 @@
|
|
|
18
18
|
"preview": "vite preview"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
+
"@emotion/react": "^11.14.0",
|
|
22
|
+
"@emotion/styled": "^11.14.1",
|
|
23
|
+
"@mui/icons-material": "^7.2.0",
|
|
24
|
+
"@mui/material": "^7.2.0",
|
|
21
25
|
"@types/react": ">=18 <20",
|
|
22
26
|
"@types/react-dom": ">=18 <20",
|
|
23
27
|
"react": ">=18 <21",
|
|
24
28
|
"react-dom": ">=18 <21",
|
|
25
|
-
"react-redux": "^9.1.2"
|
|
26
|
-
"@emotion/react": "^11.14.0",
|
|
27
|
-
"@emotion/styled": "^11.14.1",
|
|
28
|
-
"@mui/icons-material": "^7.2.0",
|
|
29
|
-
"@mui/material": "^7.2.0"
|
|
29
|
+
"react-redux": "^9.1.2"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@coinbase/wallet-sdk": "^4.1.0",
|
|
33
33
|
"@metamask/sdk-react": "^0.29.2",
|
|
34
34
|
"@sumsub/websdk-react": "^2.5.0",
|
|
35
35
|
"@walletconnect/ethereum-provider": "^2.17.1",
|
|
36
|
-
"everest-npm-api": "^0.0.
|
|
36
|
+
"everest-npm-api": "^0.0.44",
|
|
37
37
|
"frames-react": "^1.2.2",
|
|
38
38
|
"moment": "^2.30.1",
|
|
39
39
|
"mui-one-time-password-input": "^5.0.0",
|