everest-npm-features 0.0.63 → 0.0.65
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-DbQI55la.js} +5 -5
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/{auth-BBeOw4mt.js → auth-D_DKdP4p.js} +1 -1
- package/dist/bank-DIuQN1YY.js +47 -0
- package/dist/components/RocketRamp/MinimalKyc/form.js +5 -5
- 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 +7 -7
- 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 +5 -5
- package/dist/components/Shared/FullKyc/index.js +11 -10
- package/dist/components/Shared/FullKyc/pep.js +77 -73
- package/dist/components/Shared/FullKyc/personalDetails.js +3 -3
- package/dist/components/Shared/FullKyc/types.d.ts +4 -4
- package/dist/components/Shared/FullKyc/userInfo.js +5 -5
- package/dist/components/Shared/MinimalKyc/index.js +2 -2
- package/dist/components/Shared/Sumsub/index.d.ts +1 -1
- package/dist/components/Shared/Sumsub/index.js +36 -34
- package/dist/components/Wallet/Account/createIban.js +16 -541
- 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 +21 -6
- package/dist/components/Wallet/Account/index.js +217 -182
- package/dist/components/Wallet/Account/sendIban.js +2 -2
- package/dist/components/Wallet/Buy/confirmTransaction.js +7 -7
- 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 +3 -3
- package/dist/components/Wallet/EnterpriseKyc/edd.js +4 -4
- package/dist/components/Wallet/EnterpriseKyc/index.d.ts +1 -1
- package/dist/components/Wallet/EnterpriseKyc/index.js +111 -109
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +5 -5
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/types.d.ts +16 -4
- package/dist/components/Wallet/EnterpriseKyc/verify.js +3 -3
- package/dist/components/Wallet/History/index.js +2 -2
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +5 -5
- package/dist/components/Wallet/Portfolio/dropdown.js +42 -27
- package/dist/components/Wallet/Portfolio/index.js +7 -7
- package/dist/components/Wallet/Profile/documents.js +76 -69
- package/dist/components/Wallet/Profile/index.js +71 -50
- package/dist/components/Wallet/Profile/storage.js +32 -25
- package/dist/components/Wallet/Receive/index.js +3 -3
- package/dist/components/Wallet/Sell/confirmTransaction.js +6 -6
- 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 +37 -37
- 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 +3 -3
- package/dist/components/Wallet/Shared/addBank.js +5 -5
- package/dist/components/Wallet/Shared/connectPlaidBank.js +7 -7
- package/dist/components/Wallet/Shared/manualSend.js +5 -5
- 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 +24 -16
- package/dist/components/Wallet/Stake/index.js +7 -7
- package/dist/components/Wallet/Swap/form.js +8 -8
- 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-B-_x7F8X.js} +221 -219
- package/dist/createIban-CbxsxTxl.js +580 -0
- package/dist/{cryptoAssets-B8rAI7pp.js → cryptoAssets-Cmdg7BR-.js} +1 -1
- package/dist/hooks/useDialog/index.js +11 -9
- package/dist/{index-DkiQ8pRO.js → index-9VVh1IhH.js} +52 -52
- package/dist/{index-JY6-UKlX.js → index-BeEuJLqT.js} +88 -87
- package/dist/{index-BQNs1mvn.js → index-CREgBh59.js} +4 -3
- package/dist/{index-_fiTunwZ.js → index-C_Vf8Evc.js} +4 -4
- package/dist/{index-bK14vCZw.js → index-Cx8dey5q.js} +6 -6
- package/dist/{index-B4XvACQN.js → index-DXw2h9nQ.js} +71 -70
- package/dist/index-DtTDOPWZ.js +562 -0
- package/dist/{index-DuWW5roi.js → index-DuOJBwgp.js} +66 -65
- package/dist/{kyc-BNMPoeHt.js → kyc-BXoUxN4z.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/{order-BXeCIvqC.js → order-DAiOqPsI.js} +1 -1
- package/dist/{otpForm-DeeegaX2.js → otpForm-WjQmPs8D.js} +2 -2
- package/dist/{stake-BO2TYVJ7.js → stake-CzXNB3em.js} +1 -1
- package/dist/styles.module-4N8hJhXS.js +22 -0
- package/dist/styles.module-DYytghn2.js +28 -0
- package/dist/util/constants.d.ts +2 -2
- package/dist/util/constants.js +1 -1
- package/dist/{wallet-BPXOp8UG.js → wallet-Cw-0XynY.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
- package/dist/styles.module-DFoezEqS.js +0 -28
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as r, Fragment as y, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as a } from "react";
|
|
3
|
-
import { Box as c, Typography as i, Grid as g, FormControl as m, Select as f, MenuItem as l, Autocomplete as
|
|
3
|
+
import { Box as c, Typography as i, Grid as g, FormControl as m, Select as f, MenuItem as l, Autocomplete as A, TextField as B, CircularProgress as F } from "@mui/material";
|
|
4
4
|
import _ from "../../Wallet/Shared/step.js";
|
|
5
5
|
import { c as q } from "../../../countries-BVn1FubK.js";
|
|
6
|
-
import
|
|
7
|
-
import { d as
|
|
8
|
-
const
|
|
6
|
+
import Y from "../../Wallet/Shared/appButton.js";
|
|
7
|
+
import { d as z, f as H } from "../../../constants-B-_x7F8X.js";
|
|
8
|
+
const K = [
|
|
9
9
|
"Hold a high public office",
|
|
10
10
|
"Have an immediate family member who does",
|
|
11
11
|
"A close business associate who does"
|
|
12
|
-
],
|
|
12
|
+
], T = [
|
|
13
13
|
"Savings from salary (basic and/or bonus)",
|
|
14
14
|
"Savings from salary (basic and/or bonus), self-employed",
|
|
15
15
|
"Savings from salary (basic and/or bonus), self-employed company less than one year old",
|
|
@@ -29,31 +29,31 @@ const z = [
|
|
|
29
29
|
"Company Profitsharing or Disbursement",
|
|
30
30
|
"Company Dividends",
|
|
31
31
|
"Gift"
|
|
32
|
-
],
|
|
32
|
+
], $ = [
|
|
33
33
|
"Once a year",
|
|
34
|
-
"Once every 3 months
|
|
35
|
-
"Once a month
|
|
36
|
-
"Once a week
|
|
34
|
+
"Once every 3 months",
|
|
35
|
+
"Once a month",
|
|
36
|
+
"Once a week",
|
|
37
37
|
"Other"
|
|
38
|
-
],
|
|
38
|
+
], j = [
|
|
39
39
|
"Investment",
|
|
40
|
-
"Cross Border
|
|
41
|
-
"Identity Services
|
|
42
|
-
"Buy, sell or trade Crypto
|
|
40
|
+
"Cross Border",
|
|
41
|
+
"Identity Services",
|
|
42
|
+
"Buy, sell or trade Crypto",
|
|
43
43
|
"Wallet Services",
|
|
44
44
|
"Custody Services",
|
|
45
45
|
"Other Services"
|
|
46
|
-
],
|
|
47
|
-
userInfo:
|
|
46
|
+
], Z = ({
|
|
47
|
+
userInfo: v,
|
|
48
48
|
setUserInfo: b,
|
|
49
49
|
processKyc: O,
|
|
50
|
-
buttonComponent:
|
|
51
|
-
processLoader:
|
|
52
|
-
kycFlow:
|
|
50
|
+
buttonComponent: P,
|
|
51
|
+
processLoader: L,
|
|
52
|
+
kycFlow: x
|
|
53
53
|
}) => {
|
|
54
|
-
const W =
|
|
54
|
+
const W = P ?? Y, [n, S] = a(!1), [d, C] = a(""), [p, D] = a("Once a week"), [h, E] = a("Buy, sell or trade Crypto"), [u, w] = a("Savings from salary (basic and/or bonus)"), [s, I] = a(v.nationality || null), N = () => {
|
|
55
55
|
s && (b({
|
|
56
|
-
...
|
|
56
|
+
...v,
|
|
57
57
|
isPoliticalExpose: n,
|
|
58
58
|
politicalExpose: d,
|
|
59
59
|
frequency: p,
|
|
@@ -69,19 +69,19 @@ const z = [
|
|
|
69
69
|
s.alpha3
|
|
70
70
|
));
|
|
71
71
|
};
|
|
72
|
-
return /* @__PURE__ */
|
|
73
|
-
|
|
74
|
-
/* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ r(y, { children: [
|
|
73
|
+
x !== z && /* @__PURE__ */ e(c, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ e(_, { totalSteps: 4, currentStep: 4 }) }),
|
|
74
|
+
/* @__PURE__ */ r(c, { mt: 4, children: [
|
|
75
75
|
/* @__PURE__ */ e(i, { variant: "h5", sx: { fontWeight: "bold" }, children: "Additional Questions" }),
|
|
76
|
-
/* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */ r("strong", { children: [
|
|
77
77
|
"Are you a politically exposed person?",
|
|
78
78
|
/* @__PURE__ */ e("span", { style: { color: "red" }, children: "*" })
|
|
79
79
|
] }) }),
|
|
80
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ r(g, { mt: 0, container: !0, spacing: 2, children: [
|
|
81
81
|
/* @__PURE__ */ e(g, { size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
82
82
|
c,
|
|
83
83
|
{
|
|
84
|
-
onClick: () =>
|
|
84
|
+
onClick: () => S(!0),
|
|
85
85
|
className: `political-expose ${n === !0 && "active"}`,
|
|
86
86
|
children: "Yes"
|
|
87
87
|
}
|
|
@@ -90,14 +90,14 @@ const z = [
|
|
|
90
90
|
c,
|
|
91
91
|
{
|
|
92
92
|
onClick: () => {
|
|
93
|
-
|
|
93
|
+
S(!1), C("");
|
|
94
94
|
},
|
|
95
95
|
className: `political-expose ${n === !1 && "active"}`,
|
|
96
96
|
children: "No"
|
|
97
97
|
}
|
|
98
98
|
) })
|
|
99
99
|
] }),
|
|
100
|
-
n && /* @__PURE__ */ e(m, { sx: { mt: 2 }, className: "text-left", fullWidth: !0, children: /* @__PURE__ */
|
|
100
|
+
n && /* @__PURE__ */ e(m, { sx: { mt: 2 }, className: "text-left", fullWidth: !0, children: /* @__PURE__ */ r(
|
|
101
101
|
f,
|
|
102
102
|
{
|
|
103
103
|
sx: {
|
|
@@ -110,18 +110,18 @@ const z = [
|
|
|
110
110
|
variant: "filled",
|
|
111
111
|
value: d,
|
|
112
112
|
displayEmpty: !0,
|
|
113
|
-
onChange: (t) =>
|
|
113
|
+
onChange: (t) => C(t.target.value),
|
|
114
114
|
children: [
|
|
115
115
|
/* @__PURE__ */ e(l, { value: "", children: "Please select" }),
|
|
116
|
-
|
|
116
|
+
K.map((t) => /* @__PURE__ */ e(l, { value: t, children: t }, t))
|
|
117
117
|
]
|
|
118
118
|
}
|
|
119
119
|
) }),
|
|
120
|
-
/* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */
|
|
120
|
+
/* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */ r("strong", { children: [
|
|
121
121
|
"Expected frequency of transactions?",
|
|
122
122
|
/* @__PURE__ */ e("span", { style: { color: "red" }, children: "*" })
|
|
123
123
|
] }) }),
|
|
124
|
-
/* @__PURE__ */ e(m, { className: "mt8 text-left", fullWidth: !0, children: /* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ e(m, { className: "mt8 text-left", fullWidth: !0, children: /* @__PURE__ */ r(
|
|
125
125
|
f,
|
|
126
126
|
{
|
|
127
127
|
sx: {
|
|
@@ -137,15 +137,15 @@ const z = [
|
|
|
137
137
|
onChange: (t) => D(t.target.value),
|
|
138
138
|
children: [
|
|
139
139
|
/* @__PURE__ */ e(l, { value: "", children: "Please select" }),
|
|
140
|
-
|
|
140
|
+
$.map((t) => /* @__PURE__ */ e(l, { value: t, children: t }, t))
|
|
141
141
|
]
|
|
142
142
|
}
|
|
143
143
|
) }),
|
|
144
|
-
/* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */ r("strong", { children: [
|
|
145
145
|
"Reason for signing up",
|
|
146
146
|
/* @__PURE__ */ e("span", { style: { color: "red" }, children: "*" })
|
|
147
147
|
] }) }),
|
|
148
|
-
/* @__PURE__ */ e(m, { sx: { mt: 1 }, className: "text-left", fullWidth: !0, children: /* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ e(m, { sx: { mt: 1 }, className: "text-left", fullWidth: !0, children: /* @__PURE__ */ r(
|
|
149
149
|
f,
|
|
150
150
|
{
|
|
151
151
|
sx: {
|
|
@@ -161,15 +161,15 @@ const z = [
|
|
|
161
161
|
onChange: (t) => E(t.target.value),
|
|
162
162
|
children: [
|
|
163
163
|
/* @__PURE__ */ e(l, { value: "", children: "Please select" }),
|
|
164
|
-
|
|
164
|
+
j.map((t) => /* @__PURE__ */ e(l, { value: t, children: t }, t))
|
|
165
165
|
]
|
|
166
166
|
}
|
|
167
167
|
) }),
|
|
168
|
-
/* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */ r("strong", { children: [
|
|
169
169
|
"Source of wealth",
|
|
170
170
|
/* @__PURE__ */ e("span", { style: { color: "red" }, children: "*" })
|
|
171
171
|
] }) }),
|
|
172
|
-
/* @__PURE__ */ e(m, { className: "mt8 text-left", fullWidth: !0, children: /* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ e(m, { className: "mt8 text-left", fullWidth: !0, children: /* @__PURE__ */ r(
|
|
173
173
|
f,
|
|
174
174
|
{
|
|
175
175
|
sx: {
|
|
@@ -182,19 +182,19 @@ const z = [
|
|
|
182
182
|
variant: "filled",
|
|
183
183
|
value: u,
|
|
184
184
|
displayEmpty: !0,
|
|
185
|
-
onChange: (t) =>
|
|
185
|
+
onChange: (t) => w(t.target.value),
|
|
186
186
|
children: [
|
|
187
187
|
/* @__PURE__ */ e(l, { value: "", children: "Please select" }),
|
|
188
|
-
|
|
188
|
+
T.map((t) => /* @__PURE__ */ e(l, { value: t, children: t }, t))
|
|
189
189
|
]
|
|
190
190
|
}
|
|
191
191
|
) }),
|
|
192
|
-
/* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */ r("strong", { children: [
|
|
193
193
|
"Origin of funds",
|
|
194
194
|
/* @__PURE__ */ e("span", { style: { color: "red" }, children: "*" })
|
|
195
195
|
] }) }),
|
|
196
196
|
/* @__PURE__ */ e(
|
|
197
|
-
|
|
197
|
+
A,
|
|
198
198
|
{
|
|
199
199
|
sx: {
|
|
200
200
|
mt: 2,
|
|
@@ -203,38 +203,42 @@ const z = [
|
|
|
203
203
|
}
|
|
204
204
|
},
|
|
205
205
|
value: s,
|
|
206
|
-
isOptionEqualToValue: (t,
|
|
207
|
-
onChange: (t,
|
|
206
|
+
isOptionEqualToValue: (t, o) => t.alpha3 === o.alpha3,
|
|
207
|
+
onChange: (t, o) => I(o),
|
|
208
208
|
options: q,
|
|
209
209
|
autoHighlight: !0,
|
|
210
210
|
openOnFocus: !0,
|
|
211
211
|
getOptionLabel: (t) => t.name,
|
|
212
|
-
renderOption: (t,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
212
|
+
renderOption: (t, o) => {
|
|
213
|
+
const { key: M, ...k } = t;
|
|
214
|
+
return /* @__PURE__ */ r(
|
|
215
|
+
c,
|
|
216
|
+
{
|
|
217
|
+
component: "li",
|
|
218
|
+
sx: { "& > img": { mr: 2, flexShrink: 0 } },
|
|
219
|
+
...k,
|
|
220
|
+
children: [
|
|
221
|
+
/* @__PURE__ */ e(
|
|
222
|
+
"img",
|
|
223
|
+
{
|
|
224
|
+
loading: "lazy",
|
|
225
|
+
width: "20",
|
|
226
|
+
src: `https://flagcdn.com/w20/${o.alpha2.toLowerCase()}.png`,
|
|
227
|
+
srcSet: `https://flagcdn.com/w40/${o.alpha2.toLowerCase()}.png 2x`,
|
|
228
|
+
alt: ""
|
|
229
|
+
}
|
|
230
|
+
),
|
|
231
|
+
o.name,
|
|
232
|
+
" (",
|
|
233
|
+
o.alpha3,
|
|
234
|
+
")"
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
M
|
|
238
|
+
);
|
|
239
|
+
},
|
|
236
240
|
renderInput: (t) => /* @__PURE__ */ e(
|
|
237
|
-
|
|
241
|
+
B,
|
|
238
242
|
{
|
|
239
243
|
className: "country-select-field",
|
|
240
244
|
...t,
|
|
@@ -257,14 +261,14 @@ const z = [
|
|
|
257
261
|
onClick: N,
|
|
258
262
|
disabled: !p || !h || !u || !s || n && !d,
|
|
259
263
|
fullWidth: !0,
|
|
260
|
-
children: /* @__PURE__ */ e("strong", { children:
|
|
264
|
+
children: /* @__PURE__ */ e("strong", { children: L ? /* @__PURE__ */ r(y, { children: [
|
|
261
265
|
/* @__PURE__ */ e(F, { size: 15, color: "inherit" }),
|
|
262
266
|
" Processing..."
|
|
263
|
-
] }) : /* @__PURE__ */ e(y, { children:
|
|
267
|
+
] }) : /* @__PURE__ */ e(y, { children: x === H ? "Submit KYC" : "Next" }) })
|
|
264
268
|
}
|
|
265
269
|
)
|
|
266
270
|
] });
|
|
267
271
|
};
|
|
268
272
|
export {
|
|
269
|
-
|
|
273
|
+
Z as default
|
|
270
274
|
};
|
|
@@ -5,8 +5,8 @@ import "../../../index-DlQqWbXG.js";
|
|
|
5
5
|
import "../../Wallet/Shared/appButton.js";
|
|
6
6
|
import "../../../hoc/withThemeProvider.js";
|
|
7
7
|
import "../../Wallet/Shared/Input/index.js";
|
|
8
|
-
import "../../../otpForm-
|
|
9
|
-
import "../../../constants-
|
|
8
|
+
import "../../../otpForm-WjQmPs8D.js";
|
|
9
|
+
import "../../../constants-B-_x7F8X.js";
|
|
10
10
|
import "../../../context/snackBarContext.js";
|
|
11
11
|
import "../../../util/conversions.js";
|
|
12
12
|
import "../../../index-CAoLi5Qq.js";
|
|
@@ -15,10 +15,10 @@ import "../../../react-webcam-B3cXh1XT.js";
|
|
|
15
15
|
import "../transition.js";
|
|
16
16
|
import "../../../tooltip-BW0UyWw7.js";
|
|
17
17
|
import "../../../moment-h96o7c8I.js";
|
|
18
|
+
import { P as y } from "../../../index-DtTDOPWZ.js";
|
|
18
19
|
import "../../../index.esm-BsMAMhYW.js";
|
|
19
20
|
import "../../../web3-u4qDZYpo.js";
|
|
20
21
|
import "../../../index-ceeCtFuh.js";
|
|
21
|
-
import { P as y } from "../../../index-CTPMPwYK.js";
|
|
22
22
|
import "../../../context/dialogContext.js";
|
|
23
23
|
import "@mui/icons-material";
|
|
24
24
|
import "./countryList.js";
|
|
@@ -4,10 +4,10 @@ import { EDD_SCREEN, INCODE_SCREEN, PEP_SCREEN, PERSONAL_DETAILS_SCREEN, USER_IN
|
|
|
4
4
|
import { KYC_FLOW_EDD_ONLY, KYC_FLOW_FULL_EDD, KYC_FLOW_FULL_ONLY, KycDocData, KycState } from 'everest-npm-api';
|
|
5
5
|
import { KycDocumentField } from '../../Wallet/EnterpriseKyc/types';
|
|
6
6
|
export interface FullKycProps {
|
|
7
|
-
configurationId
|
|
8
|
-
incodeApiKey
|
|
9
|
-
incodeApiUrl
|
|
10
|
-
incodeOnBoardingUrl
|
|
7
|
+
configurationId?: string;
|
|
8
|
+
incodeApiKey?: string;
|
|
9
|
+
incodeApiUrl?: string;
|
|
10
|
+
incodeOnBoardingUrl?: string;
|
|
11
11
|
inputComponent?: React.ComponentType<WalletInputProps>;
|
|
12
12
|
buttonComponent?: React.ComponentType<ButtonProps>;
|
|
13
13
|
withContainer?: boolean;
|
|
@@ -5,9 +5,9 @@ import "../../Wallet/Shared/Input/index.js";
|
|
|
5
5
|
import "../../Wallet/Shared/appButton.js";
|
|
6
6
|
import "../../../index-DlQqWbXG.js";
|
|
7
7
|
import "../../../hoc/withThemeProvider.js";
|
|
8
|
-
import "../../../otpForm-
|
|
9
|
-
import "../../../constants-
|
|
10
|
-
import "../../../kyc-
|
|
8
|
+
import "../../../otpForm-WjQmPs8D.js";
|
|
9
|
+
import "../../../constants-B-_x7F8X.js";
|
|
10
|
+
import "../../../kyc-BXoUxN4z.js";
|
|
11
11
|
import "../../../context/snackBarContext.js";
|
|
12
12
|
import "../../../hooks/useEverestDispatch.js";
|
|
13
13
|
import "../../../util/conversions.js";
|
|
@@ -17,11 +17,11 @@ import "../../../react-webcam-B3cXh1XT.js";
|
|
|
17
17
|
import "../transition.js";
|
|
18
18
|
import "../../../tooltip-BW0UyWw7.js";
|
|
19
19
|
import "../../../moment-h96o7c8I.js";
|
|
20
|
-
import "../../../index.esm-BsMAMhYW.js";
|
|
21
20
|
import "../../../countries-BVn1FubK.js";
|
|
21
|
+
import { U as B } from "../../../index-DtTDOPWZ.js";
|
|
22
|
+
import "../../../index.esm-BsMAMhYW.js";
|
|
22
23
|
import "../../../web3-u4qDZYpo.js";
|
|
23
24
|
import "../../../index-ceeCtFuh.js";
|
|
24
|
-
import { U as B } from "../../../index-CTPMPwYK.js";
|
|
25
25
|
import "../../../context/dialogContext.js";
|
|
26
26
|
import "@mui/icons-material";
|
|
27
27
|
import "./countryList.js";
|
|
@@ -5,8 +5,8 @@ import { u as I } from "../../../react-redux-C7I9-1M6.js";
|
|
|
5
5
|
import { Typography as M, Box as a, FormControl as Q, Select as U, MenuItem as z, CircularProgress as V } from "@mui/material";
|
|
6
6
|
import { removeExtraSpace as o } from "../../../util/functions.js";
|
|
7
7
|
import { nameRegex as X } from "../../../util/regex.js";
|
|
8
|
-
import "../../../constants-
|
|
9
|
-
import { r as $, u as ee } from "../../../kyc-
|
|
8
|
+
import "../../../constants-B-_x7F8X.js";
|
|
9
|
+
import { r as $, u as ee } from "../../../kyc-BXoUxN4z.js";
|
|
10
10
|
import { c as te } from "../../../countries-BVn1FubK.js";
|
|
11
11
|
import re from "../../Wallet/Shared/Input/index.js";
|
|
12
12
|
import { useSnackBarContext as ae } from "../../../context/snackBarContext.js";
|
|
@@ -1,41 +1,43 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { S as
|
|
1
|
+
import { jsxs as d, Fragment as m, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as f, useRef as b, useEffect as h, useCallback as n } from "react";
|
|
3
|
+
import { S as I } from "../../../index.esm-I_Bp2YLf.js";
|
|
4
4
|
import { Typography as k, Box as g, CircularProgress as D } from "@mui/material";
|
|
5
5
|
import { u as v } from "../../../react-redux-C7I9-1M6.js";
|
|
6
|
-
import "../../../constants-
|
|
7
|
-
import { g as
|
|
8
|
-
import
|
|
9
|
-
function K({ onApplicantIdLoaded:
|
|
10
|
-
const
|
|
6
|
+
import "../../../constants-B-_x7F8X.js";
|
|
7
|
+
import { g as A, b as w } from "../../../kyc-BXoUxN4z.js";
|
|
8
|
+
import y from "../../../hooks/useEverestDispatch.js";
|
|
9
|
+
function K({ onApplicantIdLoaded: c }) {
|
|
10
|
+
const o = y(), s = v((e) => e.user.kyc), [i, S] = f(null), a = b(null), [u, x] = f(!1), l = b(!1);
|
|
11
11
|
h(() => {
|
|
12
|
-
|
|
12
|
+
o(A());
|
|
13
13
|
}, []);
|
|
14
|
-
const
|
|
14
|
+
const T = n(async () => {
|
|
15
|
+
o(A());
|
|
16
|
+
}, [o]);
|
|
15
17
|
h(() => {
|
|
16
|
-
if (!
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
}, [i,
|
|
20
|
-
const
|
|
21
|
-
(
|
|
22
|
-
if (
|
|
23
|
-
const
|
|
24
|
-
|
|
18
|
+
if (!u) return;
|
|
19
|
+
const e = a.current ?? i;
|
|
20
|
+
e && (l.current || (l.current = !0, o(w(e))));
|
|
21
|
+
}, [i, o, u]);
|
|
22
|
+
const C = n(
|
|
23
|
+
(e, p) => {
|
|
24
|
+
if (e === "idCheck.onApplicantLoaded") {
|
|
25
|
+
const r = p;
|
|
26
|
+
r != null && r.applicantId && (a.current = r.applicantId, S(r.applicantId), c(r.applicantId));
|
|
25
27
|
return;
|
|
26
28
|
}
|
|
27
|
-
if (
|
|
28
|
-
const
|
|
29
|
-
(
|
|
29
|
+
if (e === "idCheck.onApplicantStatusChanged" || e === "idCheck.onApplicantActionCompleted") {
|
|
30
|
+
const r = p;
|
|
31
|
+
(r == null ? void 0 : r.reviewStatus) === "completed" && x(!0);
|
|
30
32
|
}
|
|
31
33
|
},
|
|
32
|
-
[
|
|
33
|
-
),
|
|
34
|
-
console.error("Sumsub WebSDK error:",
|
|
34
|
+
[o, c]
|
|
35
|
+
), E = n((e) => {
|
|
36
|
+
console.error("Sumsub WebSDK error:", e);
|
|
35
37
|
}, []);
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
-
|
|
38
|
-
!
|
|
38
|
+
return /* @__PURE__ */ d(m, { children: [
|
|
39
|
+
s.sumsubAccessTokenError && /* @__PURE__ */ t(k, { color: "error", variant: "body2", children: s.sumsubAccessTokenError }),
|
|
40
|
+
!s.sumsubAccessTokenError && (s.sumsubAccessTokenLoader || !s.sumsubAccessToken) && /* @__PURE__ */ t(
|
|
39
41
|
g,
|
|
40
42
|
{
|
|
41
43
|
sx: {
|
|
@@ -47,7 +49,7 @@ function K({ onApplicantIdLoaded: o }) {
|
|
|
47
49
|
children: /* @__PURE__ */ t(D, {})
|
|
48
50
|
}
|
|
49
51
|
),
|
|
50
|
-
!
|
|
52
|
+
!s.sumsubAccessTokenError && s.sumsubAccessToken && /* @__PURE__ */ d(m, { children: [
|
|
51
53
|
/* @__PURE__ */ t(
|
|
52
54
|
g,
|
|
53
55
|
{
|
|
@@ -73,10 +75,10 @@ function K({ onApplicantIdLoaded: o }) {
|
|
|
73
75
|
}
|
|
74
76
|
),
|
|
75
77
|
/* @__PURE__ */ t(
|
|
76
|
-
|
|
78
|
+
I,
|
|
77
79
|
{
|
|
78
|
-
accessToken:
|
|
79
|
-
expirationHandler:
|
|
80
|
+
accessToken: s.sumsubAccessToken,
|
|
81
|
+
expirationHandler: T,
|
|
80
82
|
config: {
|
|
81
83
|
lang: "en"
|
|
82
84
|
},
|
|
@@ -84,8 +86,8 @@ function K({ onApplicantIdLoaded: o }) {
|
|
|
84
86
|
addViewportTag: !1,
|
|
85
87
|
adaptIframeHeight: !0
|
|
86
88
|
},
|
|
87
|
-
onMessage:
|
|
88
|
-
onError:
|
|
89
|
+
onMessage: C,
|
|
90
|
+
onError: E
|
|
89
91
|
}
|
|
90
92
|
)
|
|
91
93
|
] })
|