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
|
@@ -0,0 +1,562 @@
|
|
|
1
|
+
import { jsxs as O, Fragment as de, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as r, useEffect as q, useRef as Ae } from "react";
|
|
3
|
+
import { AuthContainer as Oe } from "./components/Wallet/Shared/Container/index.js";
|
|
4
|
+
import { Box as te, Typography as ne, FormControl as _e, InputLabel as Pe, Select as Re, MenuItem as se, Grid as ae } from "@mui/material";
|
|
5
|
+
import be from "./hoc/withThemeProvider.js";
|
|
6
|
+
import ve from "./components/Wallet/Shared/Input/index.js";
|
|
7
|
+
import Se from "./components/Wallet/Shared/appButton.js";
|
|
8
|
+
import "./index-DlQqWbXG.js";
|
|
9
|
+
import "./otpForm-WjQmPs8D.js";
|
|
10
|
+
import { d as T, f as Be } from "./constants-B-_x7F8X.js";
|
|
11
|
+
import { c as Le, d as Te } from "./kyc-BXoUxN4z.js";
|
|
12
|
+
import { useSnackBarContext as me } 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 { c as Ie } from "./countries-BVn1FubK.js";
|
|
22
|
+
import "./index.esm-BsMAMhYW.js";
|
|
23
|
+
import "./web3-u4qDZYpo.js";
|
|
24
|
+
import "./index-ceeCtFuh.js";
|
|
25
|
+
import "./context/dialogContext.js";
|
|
26
|
+
import "@mui/icons-material";
|
|
27
|
+
import ce 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 D } from "./react-redux-C7I9-1M6.js";
|
|
31
|
+
import we from "./components/Shared/FullKyc/edd.js";
|
|
32
|
+
import ze from "./components/Shared/Sumsub/index.js";
|
|
33
|
+
const Me = ({
|
|
34
|
+
inputComponent: y,
|
|
35
|
+
buttonComponent: $,
|
|
36
|
+
setUserInfo: U,
|
|
37
|
+
userInfo: d,
|
|
38
|
+
docData: a,
|
|
39
|
+
setScreen: u,
|
|
40
|
+
userEmail: v,
|
|
41
|
+
kycFlow: h
|
|
42
|
+
}) => {
|
|
43
|
+
const c = xe(), { showAlertMessage: m } = me(), o = y ?? ve, W = $ ?? Se, [l, s] = r(d.gender || ""), [f, I] = r(!1), [E, S] = r(d.email || ""), [re, ie] = r(!1), [V, oe] = r(""), [x, g] = r(d.address || ""), [K, n] = r(d.city || ""), [F, _] = r(d.state || ""), [w, G] = r(d.zipCode || ""), [P, X] = r(
|
|
44
|
+
d.country || null
|
|
45
|
+
), [e, Y] = r(!1);
|
|
46
|
+
q(() => {
|
|
47
|
+
v && (S(v), ie(!0));
|
|
48
|
+
}, [v]), q(() => {
|
|
49
|
+
var i;
|
|
50
|
+
if (a != null && a.issuingCountry) {
|
|
51
|
+
a.gender && (s(a.gender), I(!0));
|
|
52
|
+
const N = Ie.find(
|
|
53
|
+
(p) => p.alpha3 === a.issuingCountry
|
|
54
|
+
);
|
|
55
|
+
U({ ...d, country: N, nationality: N });
|
|
56
|
+
const A = new Date(a.birthDate), M = A.getTimezoneOffset() * 6e4, b = new Date(
|
|
57
|
+
A.getTime() + M
|
|
58
|
+
);
|
|
59
|
+
if (oe(b.toLocaleDateString("en-US")), (i = a.checkedAddressBean) != null && i.street) {
|
|
60
|
+
const p = a.checkedAddressBean;
|
|
61
|
+
Y(!0), g(p.street), n(p.city), _(p.state), G(p.postalCode);
|
|
62
|
+
}
|
|
63
|
+
} else
|
|
64
|
+
R();
|
|
65
|
+
}, []);
|
|
66
|
+
const R = () => {
|
|
67
|
+
c(Le());
|
|
68
|
+
};
|
|
69
|
+
return /* @__PURE__ */ O(de, { children: [
|
|
70
|
+
h !== T && /* @__PURE__ */ t(te, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(Ne, { totalSteps: 4, currentStep: 2 }) }),
|
|
71
|
+
/* @__PURE__ */ O(te, { mt: 4, children: [
|
|
72
|
+
/* @__PURE__ */ t(ne, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "Personal details" }),
|
|
73
|
+
h !== T && /* @__PURE__ */ O(de, { children: [
|
|
74
|
+
/* @__PURE__ */ t(ne, { 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: V,
|
|
81
|
+
disabled: !0,
|
|
82
|
+
required: !0
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
/* @__PURE__ */ O(_e, { sx: { mt: 3 }, fullWidth: !0, children: [
|
|
86
|
+
/* @__PURE__ */ t(Pe, { children: "Gender" }),
|
|
87
|
+
/* @__PURE__ */ O(
|
|
88
|
+
Re,
|
|
89
|
+
{
|
|
90
|
+
value: l,
|
|
91
|
+
label: "Gender",
|
|
92
|
+
onChange: (i) => s(i.target.value),
|
|
93
|
+
disabled: !!(f && l),
|
|
94
|
+
required: !0,
|
|
95
|
+
children: [
|
|
96
|
+
/* @__PURE__ */ t(se, { value: "M", children: "Male" }, "M"),
|
|
97
|
+
/* @__PURE__ */ t(se, { value: "F", children: "Female" }, "F"),
|
|
98
|
+
/* @__PURE__ */ t(se, { 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: re,
|
|
111
|
+
required: !0
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
] }),
|
|
115
|
+
/* @__PURE__ */ t(
|
|
116
|
+
o,
|
|
117
|
+
{
|
|
118
|
+
sx: { mt: 3 },
|
|
119
|
+
label: "Home Address",
|
|
120
|
+
value: x,
|
|
121
|
+
onChange: (i) => g(i.target.value),
|
|
122
|
+
disabled: !!(e && x),
|
|
123
|
+
required: !0
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
/* @__PURE__ */ O(ae, { container: !0, spacing: 2, sx: { mt: 3 }, children: [
|
|
127
|
+
/* @__PURE__ */ t(ae, { size: 6, children: /* @__PURE__ */ t(
|
|
128
|
+
o,
|
|
129
|
+
{
|
|
130
|
+
label: "City",
|
|
131
|
+
value: K,
|
|
132
|
+
onChange: (i) => n(i.target.value),
|
|
133
|
+
disabled: !!(e && K),
|
|
134
|
+
required: !0
|
|
135
|
+
}
|
|
136
|
+
) }),
|
|
137
|
+
/* @__PURE__ */ t(ae, { size: 6, children: /* @__PURE__ */ t(
|
|
138
|
+
o,
|
|
139
|
+
{
|
|
140
|
+
label: "State/Province",
|
|
141
|
+
value: F,
|
|
142
|
+
onChange: (i) => _(i.target.value)
|
|
143
|
+
}
|
|
144
|
+
) })
|
|
145
|
+
] }),
|
|
146
|
+
/* @__PURE__ */ t(
|
|
147
|
+
o,
|
|
148
|
+
{
|
|
149
|
+
sx: { mt: 3 },
|
|
150
|
+
label: "Zipcode",
|
|
151
|
+
value: w,
|
|
152
|
+
onChange: (i) => G(i.target.value),
|
|
153
|
+
disabled: !!(e && w),
|
|
154
|
+
required: !0
|
|
155
|
+
}
|
|
156
|
+
),
|
|
157
|
+
/* @__PURE__ */ t(
|
|
158
|
+
ce,
|
|
159
|
+
{
|
|
160
|
+
value: P,
|
|
161
|
+
onChange: X,
|
|
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 !== T) {
|
|
173
|
+
if (!V)
|
|
174
|
+
return m({ message: "Please provide date of birth" });
|
|
175
|
+
if (!l)
|
|
176
|
+
return m({ message: "Please provide gender" });
|
|
177
|
+
}
|
|
178
|
+
if (!x)
|
|
179
|
+
return m({ message: "Please provide address" });
|
|
180
|
+
if (!K) return m({ message: "Please provide city" });
|
|
181
|
+
if (!w)
|
|
182
|
+
return m({ message: "Please provide zip code" });
|
|
183
|
+
if (!P)
|
|
184
|
+
return m({
|
|
185
|
+
message: "Please select country of residency"
|
|
186
|
+
});
|
|
187
|
+
U({
|
|
188
|
+
...d,
|
|
189
|
+
gender: l,
|
|
190
|
+
email: E,
|
|
191
|
+
address: x,
|
|
192
|
+
city: K,
|
|
193
|
+
state: F,
|
|
194
|
+
zipCode: w,
|
|
195
|
+
country: P
|
|
196
|
+
}), u(
|
|
197
|
+
h !== T ? pe : ue
|
|
198
|
+
);
|
|
199
|
+
},
|
|
200
|
+
disabled: h !== T && !E || h !== T && !l || !x || !P,
|
|
201
|
+
fullWidth: !0,
|
|
202
|
+
children: /* @__PURE__ */ t("strong", { children: "Next" })
|
|
203
|
+
}
|
|
204
|
+
)
|
|
205
|
+
] });
|
|
206
|
+
}, qe = ({
|
|
207
|
+
userInfo: y,
|
|
208
|
+
setUserInfo: $,
|
|
209
|
+
setScreen: U,
|
|
210
|
+
inputComponent: d,
|
|
211
|
+
buttonComponent: a
|
|
212
|
+
}) => {
|
|
213
|
+
const { showAlertMessage: u } = me(), v = d ?? ve, h = a ?? Se, [c, m] = r(
|
|
214
|
+
y.placeOfBirth || null
|
|
215
|
+
), [o, W] = r(
|
|
216
|
+
y.nationality || null
|
|
217
|
+
), [l, s] = r(y.occupation || ""), [f, I] = r(y.employer || "");
|
|
218
|
+
return /* @__PURE__ */ O(de, { children: [
|
|
219
|
+
/* @__PURE__ */ t(te, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(Ne, { totalSteps: 4, currentStep: 3 }) }),
|
|
220
|
+
/* @__PURE__ */ O(te, { mt: 4, children: [
|
|
221
|
+
/* @__PURE__ */ t(ne, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "More Personal details" }),
|
|
222
|
+
/* @__PURE__ */ t(ne, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
|
|
223
|
+
/* @__PURE__ */ t(
|
|
224
|
+
ce,
|
|
225
|
+
{
|
|
226
|
+
value: c,
|
|
227
|
+
onChange: m,
|
|
228
|
+
label: "Place Of Birth"
|
|
229
|
+
}
|
|
230
|
+
),
|
|
231
|
+
/* @__PURE__ */ t(
|
|
232
|
+
ce,
|
|
233
|
+
{
|
|
234
|
+
value: o,
|
|
235
|
+
onChange: W,
|
|
236
|
+
label: "Country of citizenship"
|
|
237
|
+
}
|
|
238
|
+
),
|
|
239
|
+
/* @__PURE__ */ t(
|
|
240
|
+
v,
|
|
241
|
+
{
|
|
242
|
+
sx: { mt: 3 },
|
|
243
|
+
label: "Occupation",
|
|
244
|
+
value: l,
|
|
245
|
+
onChange: (S) => s(S.target.value)
|
|
246
|
+
}
|
|
247
|
+
),
|
|
248
|
+
/* @__PURE__ */ t(
|
|
249
|
+
v,
|
|
250
|
+
{
|
|
251
|
+
sx: { mt: 3 },
|
|
252
|
+
label: "Employer",
|
|
253
|
+
value: f,
|
|
254
|
+
onChange: (S) => I(S.target.value)
|
|
255
|
+
}
|
|
256
|
+
)
|
|
257
|
+
] }),
|
|
258
|
+
/* @__PURE__ */ t(
|
|
259
|
+
h,
|
|
260
|
+
{
|
|
261
|
+
sx: { mt: 3 },
|
|
262
|
+
variant: "contained",
|
|
263
|
+
onClick: () => {
|
|
264
|
+
if (!c) {
|
|
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 (!l) {
|
|
273
|
+
u({ message: "Please provide city" });
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
$({
|
|
277
|
+
...y,
|
|
278
|
+
placeOfBirth: c,
|
|
279
|
+
nationality: o,
|
|
280
|
+
occupation: l,
|
|
281
|
+
employer: f
|
|
282
|
+
}), U(ue);
|
|
283
|
+
},
|
|
284
|
+
disabled: !c || !o || !l || !f,
|
|
285
|
+
fullWidth: !0,
|
|
286
|
+
children: /* @__PURE__ */ t("strong", { children: "Next" })
|
|
287
|
+
}
|
|
288
|
+
)
|
|
289
|
+
] });
|
|
290
|
+
}, le = "INCODE_SCREEN", ee = "USER_INFO_SCREEN", pe = "PERSONAL_DETAILS_SCREEN", ue = "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: y,
|
|
308
|
+
incodeApiKey: $,
|
|
309
|
+
incodeApiUrl: U,
|
|
310
|
+
incodeOnBoardingUrl: d,
|
|
311
|
+
withContainer: a = !1,
|
|
312
|
+
successHandler: u,
|
|
313
|
+
updateScreen: v,
|
|
314
|
+
isModalView: h = !1,
|
|
315
|
+
kycFlow: c
|
|
316
|
+
}) => {
|
|
317
|
+
const m = Ae(!0), { showAlertMessage: o } = me(), W = xe(), l = D((e) => e.user), s = D((e) => e.user.kyc);
|
|
318
|
+
D((e) => e.session.uuid);
|
|
319
|
+
const f = l.kyc, I = f.processComplete, E = D(Fe), S = {}, [re, ie] = r(S);
|
|
320
|
+
r({ token: "" });
|
|
321
|
+
const [V, oe] = r(""), [x, g] = r(
|
|
322
|
+
c === T ? ee : le
|
|
323
|
+
);
|
|
324
|
+
q(() => {
|
|
325
|
+
if (m.current) {
|
|
326
|
+
m.current = !1;
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
let e;
|
|
330
|
+
switch (x) {
|
|
331
|
+
case ee:
|
|
332
|
+
e = le;
|
|
333
|
+
break;
|
|
334
|
+
case pe:
|
|
335
|
+
e = ee;
|
|
336
|
+
break;
|
|
337
|
+
case ue:
|
|
338
|
+
e = pe;
|
|
339
|
+
break;
|
|
340
|
+
default:
|
|
341
|
+
e = le;
|
|
342
|
+
}
|
|
343
|
+
g(e);
|
|
344
|
+
}, [v]), q(() => {
|
|
345
|
+
let e;
|
|
346
|
+
return u && I && (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
|
+
}, [
|
|
358
|
+
u,
|
|
359
|
+
I,
|
|
360
|
+
E.shouldAutoCreate,
|
|
361
|
+
E.currency
|
|
362
|
+
]);
|
|
363
|
+
const K = {
|
|
364
|
+
gender: "",
|
|
365
|
+
email: "",
|
|
366
|
+
address: "",
|
|
367
|
+
city: "",
|
|
368
|
+
state: "",
|
|
369
|
+
zipCode: "",
|
|
370
|
+
placeOfBirth: "",
|
|
371
|
+
country: "",
|
|
372
|
+
nationality: "",
|
|
373
|
+
occupation: "",
|
|
374
|
+
employer: "",
|
|
375
|
+
isPoliticalExpose: !1,
|
|
376
|
+
politicalExpose: "",
|
|
377
|
+
origin: "",
|
|
378
|
+
frequency: "",
|
|
379
|
+
reason: "",
|
|
380
|
+
source: ""
|
|
381
|
+
}, [n, F] = r(K), [_, w] = r(We);
|
|
382
|
+
q(() => {
|
|
383
|
+
_.BANK_STATEMENT.file.length > 0 && G(_);
|
|
384
|
+
}, [_]);
|
|
385
|
+
const G = (e) => {
|
|
386
|
+
P(
|
|
387
|
+
n.isPoliticalExpose,
|
|
388
|
+
n.politicalExpose,
|
|
389
|
+
n.frequency,
|
|
390
|
+
n.reason,
|
|
391
|
+
n.source,
|
|
392
|
+
n.origin,
|
|
393
|
+
e,
|
|
394
|
+
!0
|
|
395
|
+
);
|
|
396
|
+
}, P = (e, Y, R, z, i, N, A, M = !1) => {
|
|
397
|
+
var b, p, j;
|
|
398
|
+
if (c !== Be && !M) {
|
|
399
|
+
g(Ue);
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
if (!f.loader) {
|
|
403
|
+
let B;
|
|
404
|
+
{
|
|
405
|
+
const C = s == null ? void 0 : s.sumsubDocumentData.documentData;
|
|
406
|
+
B = V || (C == null ? void 0 : C.scanReference) || "";
|
|
407
|
+
}
|
|
408
|
+
if (!B || B.trim() === "") {
|
|
409
|
+
o({
|
|
410
|
+
message: "Please wait for verification to complete before submitting. if this error persists, please contact refresh page and try again.",
|
|
411
|
+
type: "error"
|
|
412
|
+
});
|
|
413
|
+
return;
|
|
414
|
+
}
|
|
415
|
+
const J = {
|
|
416
|
+
street: n.address,
|
|
417
|
+
city: n.city,
|
|
418
|
+
postcode: n.zipCode,
|
|
419
|
+
state: n.state,
|
|
420
|
+
country: (b = n.country) == null ? void 0 : b.alpha3
|
|
421
|
+
}, Q = {
|
|
422
|
+
isExposed: e,
|
|
423
|
+
exposed: Y,
|
|
424
|
+
frequency: R,
|
|
425
|
+
reason: z,
|
|
426
|
+
source: i,
|
|
427
|
+
originFunds: N
|
|
428
|
+
}, H = {
|
|
429
|
+
frequency: R,
|
|
430
|
+
reason: z,
|
|
431
|
+
source: i,
|
|
432
|
+
originFunds: N
|
|
433
|
+
}, k = {
|
|
434
|
+
kycFlow: c,
|
|
435
|
+
email: n.email,
|
|
436
|
+
gender: n.gender,
|
|
437
|
+
birthPlace: (p = n.placeOfBirth) == null ? void 0 : p.alpha3,
|
|
438
|
+
nationality: (j = n.nationality) == null ? void 0 : j.alpha3,
|
|
439
|
+
occupation: n.occupation,
|
|
440
|
+
employer: n.employer,
|
|
441
|
+
residentialAddress: J,
|
|
442
|
+
politicalExposure: Q,
|
|
443
|
+
customerDueDiligence: H,
|
|
444
|
+
workflow: {
|
|
445
|
+
token: B
|
|
446
|
+
}
|
|
447
|
+
};
|
|
448
|
+
if (A) {
|
|
449
|
+
const C = Object.entries(A).filter(([Z, L]) => L.file && L.file.length > 0).map(([Z, L]) => ({
|
|
450
|
+
file: L.file[0],
|
|
451
|
+
type: Z
|
|
452
|
+
}));
|
|
453
|
+
C.length > 0 && (k.eddDocuments = C);
|
|
454
|
+
}
|
|
455
|
+
W(Te(k));
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
q(() => {
|
|
459
|
+
var R, z, i, N, A, M, b, p, j, B, J, Q, H, k, C, Z, L, fe, he, Ee, ge, Ce, ye;
|
|
460
|
+
const e = s == null ? void 0 : s.sumsubDocumentData;
|
|
461
|
+
if (!e) return;
|
|
462
|
+
const Y = {
|
|
463
|
+
name: {
|
|
464
|
+
fullName: `${((R = e == null ? void 0 : e.documentData) == null ? void 0 : R.firstName) ?? ""} ${((z = e == null ? void 0 : e.documentData) == null ? void 0 : z.lastName) ?? ""}`.trim(),
|
|
465
|
+
firstName: ((i = e == null ? void 0 : e.documentData) == null ? void 0 : i.firstName) ?? "",
|
|
466
|
+
givenName: ((N = e == null ? void 0 : e.documentData) == null ? void 0 : N.firstName) ?? "",
|
|
467
|
+
paternalLastName: ((A = e == null ? void 0 : e.documentData) == null ? void 0 : A.lastName) ?? ""
|
|
468
|
+
},
|
|
469
|
+
address: ((b = (M = e == null ? void 0 : e.documentData) == null ? void 0 : M.address) == null ? void 0 : b.street) ?? "",
|
|
470
|
+
checkedAddressBean: {
|
|
471
|
+
street: ((j = (p = e == null ? void 0 : e.documentData) == null ? void 0 : p.address) == null ? void 0 : j.street) ?? "",
|
|
472
|
+
city: ((J = (B = e == null ? void 0 : e.documentData) == null ? void 0 : B.address) == null ? void 0 : J.city) ?? "",
|
|
473
|
+
state: ((H = (Q = e == null ? void 0 : e.documentData) == null ? void 0 : Q.address) == null ? void 0 : H.state) ?? "",
|
|
474
|
+
postalCode: ((C = (k = e == null ? void 0 : e.documentData) == null ? void 0 : k.address) == null ? void 0 : C.postcode) ?? "",
|
|
475
|
+
zipColonyOptions: []
|
|
476
|
+
},
|
|
477
|
+
typeOfId: ((Z = e == null ? void 0 : e.document) == null ? void 0 : Z.docType) ?? "",
|
|
478
|
+
documentFrontSubtype: "",
|
|
479
|
+
documentBackSubtype: "",
|
|
480
|
+
issueFront: 0,
|
|
481
|
+
issueBack: 0,
|
|
482
|
+
birthDate: Date.parse(((L = e == null ? void 0 : e.documentData) == null ? void 0 : L.dateOfBirth) ?? "") || 0,
|
|
483
|
+
gender: ((fe = e == null ? void 0 : e.documentData) == null ? void 0 : fe.gender) ?? "",
|
|
484
|
+
personalNumber: ((he = e == null ? void 0 : e.documentData) == null ? void 0 : he.number) ?? "",
|
|
485
|
+
issuedAt: "",
|
|
486
|
+
expireAt: ((Ee = e == null ? void 0 : e.documentData) == null ? void 0 : Ee.dateOfExpiry) ?? "",
|
|
487
|
+
expirationDate: Date.parse(((ge = e == null ? void 0 : e.documentData) == null ? void 0 : ge.dateOfExpiry) ?? "") || 0,
|
|
488
|
+
issueDate: 0,
|
|
489
|
+
issuingCountry: ((Ce = e == null ? void 0 : e.document) == null ? void 0 : Ce.issuingCountry) ?? ((ye = e == null ? void 0 : e.documentData) == null ? void 0 : ye.issuingCountry) ?? "",
|
|
490
|
+
notExtracted: 0,
|
|
491
|
+
notExtractedDetails: [],
|
|
492
|
+
additionalAttrs: [],
|
|
493
|
+
ocrDataConfidence: {
|
|
494
|
+
birthDateConfidence: 0,
|
|
495
|
+
nameConfidence: 0,
|
|
496
|
+
givenNameConfidence: 0,
|
|
497
|
+
fathersSurnameConfidence: 0,
|
|
498
|
+
addressConfidence: 0,
|
|
499
|
+
issueDateConfidence: 0,
|
|
500
|
+
expirationDateConfidence: 0,
|
|
501
|
+
issuedAtConfidence: 0,
|
|
502
|
+
expireAtConfidence: 0,
|
|
503
|
+
personalNumberConfidence: 0
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
ie(Y), g(ee);
|
|
507
|
+
}, [s == null ? void 0 : s.sumsubDocumentData]);
|
|
508
|
+
const X = {
|
|
509
|
+
INCODE_SCREEN: /* @__PURE__ */ t(ze, { onApplicantIdLoaded: oe }),
|
|
510
|
+
USER_INFO_SCREEN: /* @__PURE__ */ t(
|
|
511
|
+
Me,
|
|
512
|
+
{
|
|
513
|
+
docData: re,
|
|
514
|
+
setScreen: g,
|
|
515
|
+
setUserInfo: F,
|
|
516
|
+
userInfo: n,
|
|
517
|
+
userEmail: l.profile.email,
|
|
518
|
+
kycFlow: c
|
|
519
|
+
}
|
|
520
|
+
),
|
|
521
|
+
PERSONAL_DETAILS_SCREEN: /* @__PURE__ */ t(
|
|
522
|
+
qe,
|
|
523
|
+
{
|
|
524
|
+
setScreen: g,
|
|
525
|
+
setUserInfo: F,
|
|
526
|
+
userInfo: n
|
|
527
|
+
}
|
|
528
|
+
),
|
|
529
|
+
PEP_SCREEN: /* @__PURE__ */ t(
|
|
530
|
+
Ke,
|
|
531
|
+
{
|
|
532
|
+
setScreen: g,
|
|
533
|
+
setUserInfo: F,
|
|
534
|
+
userInfo: n,
|
|
535
|
+
processKyc: P,
|
|
536
|
+
processLoader: f.loader,
|
|
537
|
+
kycFlow: c
|
|
538
|
+
}
|
|
539
|
+
),
|
|
540
|
+
EDD_SCREEN: /* @__PURE__ */ t(
|
|
541
|
+
we,
|
|
542
|
+
{
|
|
543
|
+
kycStoreData: s,
|
|
544
|
+
eddData: _,
|
|
545
|
+
setEddData: w,
|
|
546
|
+
processKyc: G,
|
|
547
|
+
processLoader: f.loader
|
|
548
|
+
}
|
|
549
|
+
)
|
|
550
|
+
}[x];
|
|
551
|
+
return a ? /* @__PURE__ */ t(Oe, { addPadding: !0, children: X }) : X;
|
|
552
|
+
}, St = be(Ge);
|
|
553
|
+
export {
|
|
554
|
+
Ue as E,
|
|
555
|
+
St as F,
|
|
556
|
+
le as I,
|
|
557
|
+
qe as P,
|
|
558
|
+
Me as U,
|
|
559
|
+
ee as a,
|
|
560
|
+
pe as b,
|
|
561
|
+
ue as c
|
|
562
|
+
};
|