everest-npm-features 0.0.27 → 0.0.28
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/{auth-SxpGte_3.js → auth-DoHhqFQx.js} +10 -10
- package/dist/components/RocketRamp/Player/SignIn/index.js +1 -1
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +1 -1
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +5 -5
- package/dist/components/RocketRamp/Player/SignUp/email.js +5 -5
- package/dist/components/RocketRamp/Player/SignUp/index.js +5 -5
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +1 -1
- package/dist/components/RocketRamp/ResetPassword/index.js +1 -1
- package/dist/components/RocketRamp/Store/SignUp/index.js +10 -10
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +1 -1
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +5 -5
- package/dist/components/Shared/FullKyc/index.js +2 -2
- package/dist/components/Shared/FullKyc/pep.js +1 -1
- package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
- package/dist/components/Shared/FullKyc/types.d.ts +1 -1
- package/dist/components/Shared/FullKyc/userInfo.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/index.js +79 -77
- package/dist/components/Wallet/Portfolio/dropdown.js +7 -7
- package/dist/components/Wallet/Portfolio/index.js +81 -77
- package/dist/components/Wallet/Shared/Auth/otpForm.js +1 -1
- package/dist/components/Wallet/Shared/Container/index.d.ts +3 -2
- package/dist/components/Wallet/Shared/Container/index.js +4 -3
- package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -12
- package/dist/components/Wallet/SignIn/index.js +6 -6
- package/dist/components/Wallet/SignUp/index.js +184 -57
- package/dist/components/Wallet/SignUp/terms.d.ts +1 -6
- package/dist/components/Wallet/SignUp/terms.js +516 -563
- package/dist/{index-D8j7wPDM.js → index-Db73x3ti.js} +174 -174
- package/dist/main.js +1 -1
- package/dist/{pep-D8bFjgpy.js → pep-C_LViPSb.js} +200 -200
- package/dist/util/constants.d.ts +4 -0
- package/dist/util/constants.js +82 -78
- package/package.json +1 -1
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
import { jsxs as E, Fragment as
|
|
2
|
-
import { useState as n, useEffect as
|
|
3
|
-
import { AuthContainer as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { a as
|
|
1
|
+
import { jsxs as E, Fragment as ee, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as n, useEffect as K } from "react";
|
|
3
|
+
import { AuthContainer as ce } from "./components/Wallet/Shared/Container/index.js";
|
|
4
|
+
import pe from "./components/Shared/Incode/index.js";
|
|
5
|
+
import de from "./hoc/withThemeProvider.js";
|
|
6
|
+
import te from "./components/Wallet/Shared/Input/index.js";
|
|
7
|
+
import oe from "./components/Wallet/Shared/appButton.js";
|
|
8
|
+
import { a as ne, u as Y } from "./react-redux-C7I9-1M6.js";
|
|
9
9
|
import "./components/Wallet/Shared/Auth/otpForm.js";
|
|
10
10
|
import "./constants-BF50a6s-.js";
|
|
11
|
-
import { b as
|
|
12
|
-
import { useSnackBarContext as
|
|
11
|
+
import { b as me, c as ue } from "./kyc-kWxxF1vI.js";
|
|
12
|
+
import { useSnackBarContext as se } from "./context/snackBarContext.js";
|
|
13
13
|
import "./util/conversions.js";
|
|
14
14
|
import "./index-CAoLi5Qq.js";
|
|
15
|
-
import
|
|
15
|
+
import re from "./components/Wallet/Shared/step.js";
|
|
16
16
|
import "./react-webcam-B3cXh1XT.js";
|
|
17
17
|
import "./components/Shared/transition.js";
|
|
18
|
-
import { useDialog as
|
|
18
|
+
import { useDialog as he } from "./hooks/useDialog/index.js";
|
|
19
19
|
import "./components/Wallet/Shared/pin.js";
|
|
20
20
|
import "./moment-h96o7c8I.js";
|
|
21
21
|
import "./tooltip-Dv3Lfsa2.js";
|
|
22
22
|
import "./index.esm-BsMAMhYW.js";
|
|
23
|
-
import { c as
|
|
23
|
+
import { c as U } from "./countries-BVn1FubK.js";
|
|
24
24
|
import "./web3-u4qDZYpo.js";
|
|
25
25
|
import "./index-B8QKlEgj.js";
|
|
26
26
|
import "./index-ceeCtFuh.js";
|
|
27
27
|
import "./context/dialogContext.js";
|
|
28
|
-
import { B as
|
|
29
|
-
import { T as
|
|
30
|
-
import { A as
|
|
31
|
-
import { I as
|
|
32
|
-
import { F as
|
|
33
|
-
import { S as
|
|
34
|
-
import { M as
|
|
35
|
-
import { G as
|
|
36
|
-
const
|
|
28
|
+
import { B as T } from "./Box-BwKpr_VI.js";
|
|
29
|
+
import { T as W } from "./Typography-BQDN44CM.js";
|
|
30
|
+
import { A as j, P as ge } from "./pep-C_LViPSb.js";
|
|
31
|
+
import { I as fe, T as Z } from "./TextField-DmiK1A_S.js";
|
|
32
|
+
import { F as ye } from "./FormControl-H4D1Z6Ov.js";
|
|
33
|
+
import { S as Ce } from "./Select-CGei0bav.js";
|
|
34
|
+
import { M as H } from "./MenuItem-ByxiQtY2.js";
|
|
35
|
+
import { G as V } from "./Grid-CPkjiKqX.js";
|
|
36
|
+
const Ee = ({
|
|
37
37
|
inputComponent: p,
|
|
38
|
-
buttonComponent:
|
|
39
|
-
setUserInfo:
|
|
38
|
+
buttonComponent: N,
|
|
39
|
+
setUserInfo: P,
|
|
40
40
|
userInfo: l,
|
|
41
41
|
docData: i,
|
|
42
42
|
setScreen: d,
|
|
43
43
|
userEmail: g
|
|
44
44
|
}) => {
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
g && (
|
|
48
|
-
}, [g]),
|
|
49
|
-
var
|
|
45
|
+
const R = ne(), { openDialog: f, ConfirmDialog: _ } = he(), { showAlertMessage: a } = se(), c = p ?? te, y = N ?? oe, [u, h] = n(l.gender || ""), [A, S] = n(!1), [C, m] = n(l.email || ""), [b, e] = n(!1), [o, q] = n(""), [O, F] = n(l.address || ""), [s, L] = n(l.city || ""), [D, B] = n(l.state || ""), [x, k] = n(l.zipCode || ""), [v, I] = n(!1);
|
|
46
|
+
K(() => {
|
|
47
|
+
g && (m(g), e(!0));
|
|
48
|
+
}, [g]), K(() => {
|
|
49
|
+
var r;
|
|
50
50
|
if (i != null && i.issuingCountry) {
|
|
51
51
|
i.gender && (h(i.gender), S(!0));
|
|
52
|
-
const
|
|
53
|
-
(
|
|
52
|
+
const G = U.find(
|
|
53
|
+
(w) => w.alpha3 === i.issuingCountry
|
|
54
54
|
);
|
|
55
|
-
|
|
56
|
-
const
|
|
57
|
-
|
|
55
|
+
P({ ...l, country: G, nationality: G });
|
|
56
|
+
const M = new Date(i.birthDate), ie = M.getTimezoneOffset() * 6e4, le = new Date(
|
|
57
|
+
M.getTime() + ie
|
|
58
58
|
);
|
|
59
|
-
if (
|
|
60
|
-
const
|
|
61
|
-
|
|
59
|
+
if (q(le.toLocaleDateString("en-US")), (r = i.checkedAddressBean) != null && r.street) {
|
|
60
|
+
const w = i.checkedAddressBean;
|
|
61
|
+
I(!0), F(w.street), L(w.city), B(w.state), k(w.postalCode);
|
|
62
62
|
}
|
|
63
63
|
} else
|
|
64
|
-
|
|
64
|
+
z();
|
|
65
65
|
}, []);
|
|
66
|
-
const
|
|
67
|
-
|
|
66
|
+
const z = () => {
|
|
67
|
+
R(me());
|
|
68
68
|
};
|
|
69
|
-
return /* @__PURE__ */ E(
|
|
70
|
-
/* @__PURE__ */ t(
|
|
71
|
-
/* @__PURE__ */ t(
|
|
72
|
-
/* @__PURE__ */ E(
|
|
73
|
-
/* @__PURE__ */ t(
|
|
74
|
-
/* @__PURE__ */ t(
|
|
69
|
+
return /* @__PURE__ */ E(ee, { children: [
|
|
70
|
+
/* @__PURE__ */ t(T, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(re, { totalSteps: 4, currentStep: 2 }) }),
|
|
71
|
+
/* @__PURE__ */ t(_, {}),
|
|
72
|
+
/* @__PURE__ */ E(T, { pl: 2, mt: 4, children: [
|
|
73
|
+
/* @__PURE__ */ t(W, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "Personal details" }),
|
|
74
|
+
/* @__PURE__ */ t(W, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
|
|
75
75
|
/* @__PURE__ */ t(
|
|
76
76
|
c,
|
|
77
77
|
{
|
|
@@ -81,19 +81,19 @@ const Ce = ({
|
|
|
81
81
|
disabled: !0
|
|
82
82
|
}
|
|
83
83
|
),
|
|
84
|
-
/* @__PURE__ */ E(
|
|
85
|
-
/* @__PURE__ */ t(
|
|
84
|
+
/* @__PURE__ */ E(ye, { sx: { mt: 3 }, fullWidth: !0, children: [
|
|
85
|
+
/* @__PURE__ */ t(fe, { children: "Gender" }),
|
|
86
86
|
/* @__PURE__ */ E(
|
|
87
|
-
|
|
87
|
+
Ce,
|
|
88
88
|
{
|
|
89
|
-
value:
|
|
89
|
+
value: u,
|
|
90
90
|
label: "Gender",
|
|
91
|
-
onChange: (
|
|
92
|
-
disabled: !!(
|
|
91
|
+
onChange: (r) => h(r.target.value),
|
|
92
|
+
disabled: !!(A && u),
|
|
93
93
|
children: [
|
|
94
|
-
/* @__PURE__ */ t(
|
|
95
|
-
/* @__PURE__ */ t(
|
|
96
|
-
/* @__PURE__ */ t(
|
|
94
|
+
/* @__PURE__ */ t(H, { value: "M", children: "Male" }, "M"),
|
|
95
|
+
/* @__PURE__ */ t(H, { value: "F", children: "Female" }, "F"),
|
|
96
|
+
/* @__PURE__ */ t(H, { value: "X", children: "Another" }, "X")
|
|
97
97
|
]
|
|
98
98
|
}
|
|
99
99
|
)
|
|
@@ -104,7 +104,7 @@ const Ce = ({
|
|
|
104
104
|
sx: { mt: 3 },
|
|
105
105
|
label: "Email",
|
|
106
106
|
value: C,
|
|
107
|
-
onChange: (
|
|
107
|
+
onChange: (r) => m(r.target.value),
|
|
108
108
|
disabled: b
|
|
109
109
|
}
|
|
110
110
|
),
|
|
@@ -113,27 +113,27 @@ const Ce = ({
|
|
|
113
113
|
{
|
|
114
114
|
sx: { mt: 3 },
|
|
115
115
|
label: "Home Address",
|
|
116
|
-
value:
|
|
117
|
-
onChange: (
|
|
118
|
-
disabled: !!(
|
|
116
|
+
value: O,
|
|
117
|
+
onChange: (r) => F(r.target.value),
|
|
118
|
+
disabled: !!(v && O)
|
|
119
119
|
}
|
|
120
120
|
),
|
|
121
|
-
/* @__PURE__ */ E(
|
|
122
|
-
/* @__PURE__ */ t(
|
|
121
|
+
/* @__PURE__ */ E(V, { container: !0, spacing: 2, sx: { mt: 3 }, children: [
|
|
122
|
+
/* @__PURE__ */ t(V, { size: 6, children: /* @__PURE__ */ t(
|
|
123
123
|
c,
|
|
124
124
|
{
|
|
125
125
|
label: "City",
|
|
126
126
|
value: s,
|
|
127
|
-
onChange: (
|
|
128
|
-
disabled: !!(
|
|
127
|
+
onChange: (r) => L(r.target.value),
|
|
128
|
+
disabled: !!(v && s)
|
|
129
129
|
}
|
|
130
130
|
) }),
|
|
131
|
-
/* @__PURE__ */ t(
|
|
131
|
+
/* @__PURE__ */ t(V, { size: 6, children: /* @__PURE__ */ t(
|
|
132
132
|
c,
|
|
133
133
|
{
|
|
134
134
|
label: "State",
|
|
135
|
-
value:
|
|
136
|
-
onChange: (
|
|
135
|
+
value: D,
|
|
136
|
+
onChange: (r) => B(r.target.value)
|
|
137
137
|
}
|
|
138
138
|
) })
|
|
139
139
|
] }),
|
|
@@ -142,9 +142,9 @@ const Ce = ({
|
|
|
142
142
|
{
|
|
143
143
|
sx: { mt: 3 },
|
|
144
144
|
label: "Zipcode",
|
|
145
|
-
value:
|
|
146
|
-
onChange: (
|
|
147
|
-
disabled: !!(
|
|
145
|
+
value: x,
|
|
146
|
+
onChange: (r) => k(r.target.value),
|
|
147
|
+
disabled: !!(v && x)
|
|
148
148
|
}
|
|
149
149
|
)
|
|
150
150
|
] }),
|
|
@@ -155,41 +155,41 @@ const Ce = ({
|
|
|
155
155
|
variant: "contained",
|
|
156
156
|
onClick: () => {
|
|
157
157
|
if (!o)
|
|
158
|
-
return
|
|
159
|
-
if (!
|
|
160
|
-
if (!
|
|
161
|
-
return
|
|
162
|
-
if (!s) return
|
|
163
|
-
if (!
|
|
164
|
-
if (!
|
|
165
|
-
return
|
|
166
|
-
|
|
158
|
+
return a({ message: "Please provide date of birth" });
|
|
159
|
+
if (!u) return a({ message: "Please provide gender" });
|
|
160
|
+
if (!O)
|
|
161
|
+
return a({ message: "Please provide address" });
|
|
162
|
+
if (!s) return a({ message: "Please provide city" });
|
|
163
|
+
if (!D) return a({ message: "Please provide state" });
|
|
164
|
+
if (!x)
|
|
165
|
+
return a({ message: "Please provide zip code" });
|
|
166
|
+
P({ ...l, gender: u, email: C, address: O, city: s, state: D, zipCode: x }), d(J);
|
|
167
167
|
},
|
|
168
|
-
disabled: !C || !
|
|
168
|
+
disabled: !C || !O || !u,
|
|
169
169
|
fullWidth: !0,
|
|
170
170
|
children: /* @__PURE__ */ t("strong", { children: "Next" })
|
|
171
171
|
}
|
|
172
172
|
)
|
|
173
173
|
] });
|
|
174
|
-
},
|
|
174
|
+
}, Se = ({
|
|
175
175
|
userInfo: p,
|
|
176
|
-
setUserInfo:
|
|
177
|
-
setScreen:
|
|
176
|
+
setUserInfo: N,
|
|
177
|
+
setScreen: P,
|
|
178
178
|
inputComponent: l,
|
|
179
179
|
buttonComponent: i
|
|
180
180
|
}) => {
|
|
181
|
-
const { showAlertMessage: d } =
|
|
181
|
+
const { showAlertMessage: d } = se(), g = l ?? te, R = i ?? oe, [f, _] = n(
|
|
182
182
|
p.placeOfBirth || null
|
|
183
|
-
), [
|
|
183
|
+
), [a, c] = n(
|
|
184
184
|
p.country || null
|
|
185
|
-
), [y,
|
|
185
|
+
), [y, u] = n(
|
|
186
186
|
p.nationality || null
|
|
187
|
-
), [h,
|
|
187
|
+
), [h, A] = n(p.occupation || ""), [S, C] = n(p.employer || ""), m = () => {
|
|
188
188
|
if (!f) {
|
|
189
189
|
d({ message: "Please select place of birth" });
|
|
190
190
|
return;
|
|
191
191
|
}
|
|
192
|
-
if (!
|
|
192
|
+
if (!a) {
|
|
193
193
|
d({ message: "Please select country of residency" });
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
@@ -201,15 +201,15 @@ const Ce = ({
|
|
|
201
201
|
d({ message: "Please provide city" });
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
|
-
|
|
204
|
+
N({
|
|
205
205
|
...p,
|
|
206
206
|
placeOfBirth: f,
|
|
207
|
-
country:
|
|
207
|
+
country: a,
|
|
208
208
|
nationality: y,
|
|
209
209
|
occupation: h,
|
|
210
210
|
employer: S
|
|
211
|
-
}),
|
|
212
|
-
}, b = (e, o) => /* @__PURE__ */ E(
|
|
211
|
+
}), P(ae);
|
|
212
|
+
}, b = (e, o) => /* @__PURE__ */ E(T, { component: "li", sx: { "& > img": { mr: 2, flexShrink: 0 } }, ...e, children: [
|
|
213
213
|
/* @__PURE__ */ t(
|
|
214
214
|
"img",
|
|
215
215
|
{
|
|
@@ -225,25 +225,25 @@ const Ce = ({
|
|
|
225
225
|
o.alpha3,
|
|
226
226
|
")"
|
|
227
227
|
] });
|
|
228
|
-
return /* @__PURE__ */ E(
|
|
229
|
-
/* @__PURE__ */ t(
|
|
230
|
-
/* @__PURE__ */ E(
|
|
231
|
-
/* @__PURE__ */ t(
|
|
232
|
-
/* @__PURE__ */ t(
|
|
228
|
+
return /* @__PURE__ */ E(ee, { children: [
|
|
229
|
+
/* @__PURE__ */ t(T, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(re, { totalSteps: 4, currentStep: 3 }) }),
|
|
230
|
+
/* @__PURE__ */ E(T, { pl: 2, mt: 4, children: [
|
|
231
|
+
/* @__PURE__ */ t(W, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "More Personal details" }),
|
|
232
|
+
/* @__PURE__ */ t(W, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
|
|
233
233
|
/* @__PURE__ */ t(
|
|
234
|
-
|
|
234
|
+
j,
|
|
235
235
|
{
|
|
236
236
|
sx: { mt: 2 },
|
|
237
237
|
value: f,
|
|
238
|
-
onChange: (e, o) =>
|
|
239
|
-
options:
|
|
238
|
+
onChange: (e, o) => _(o),
|
|
239
|
+
options: U,
|
|
240
240
|
isOptionEqualToValue: (e, o) => e.alpha3 === (o == null ? void 0 : o.alpha3),
|
|
241
241
|
getOptionLabel: (e) => e.name,
|
|
242
242
|
autoHighlight: !0,
|
|
243
243
|
openOnFocus: !0,
|
|
244
244
|
renderOption: b,
|
|
245
245
|
renderInput: (e) => /* @__PURE__ */ t(
|
|
246
|
-
|
|
246
|
+
Z,
|
|
247
247
|
{
|
|
248
248
|
...e,
|
|
249
249
|
label: "Place Of Birth",
|
|
@@ -256,19 +256,19 @@ const Ce = ({
|
|
|
256
256
|
}
|
|
257
257
|
),
|
|
258
258
|
/* @__PURE__ */ t(
|
|
259
|
-
|
|
259
|
+
j,
|
|
260
260
|
{
|
|
261
261
|
sx: { mt: 2 },
|
|
262
|
-
value:
|
|
262
|
+
value: a,
|
|
263
263
|
onChange: (e, o) => c(o),
|
|
264
|
-
options:
|
|
264
|
+
options: U,
|
|
265
265
|
isOptionEqualToValue: (e, o) => e.alpha3 === (o == null ? void 0 : o.alpha3),
|
|
266
266
|
getOptionLabel: (e) => e.name,
|
|
267
267
|
autoHighlight: !0,
|
|
268
268
|
openOnFocus: !0,
|
|
269
269
|
renderOption: b,
|
|
270
270
|
renderInput: (e) => /* @__PURE__ */ t(
|
|
271
|
-
|
|
271
|
+
Z,
|
|
272
272
|
{
|
|
273
273
|
...e,
|
|
274
274
|
label: "Country of residence",
|
|
@@ -281,19 +281,19 @@ const Ce = ({
|
|
|
281
281
|
}
|
|
282
282
|
),
|
|
283
283
|
/* @__PURE__ */ t(
|
|
284
|
-
|
|
284
|
+
j,
|
|
285
285
|
{
|
|
286
286
|
sx: { mt: 2 },
|
|
287
287
|
value: y,
|
|
288
|
-
onChange: (e, o) =>
|
|
289
|
-
options:
|
|
288
|
+
onChange: (e, o) => u(o),
|
|
289
|
+
options: U,
|
|
290
290
|
isOptionEqualToValue: (e, o) => e.alpha3 === (o == null ? void 0 : o.alpha3),
|
|
291
291
|
getOptionLabel: (e) => e.name,
|
|
292
292
|
autoHighlight: !0,
|
|
293
293
|
openOnFocus: !0,
|
|
294
294
|
renderOption: b,
|
|
295
295
|
renderInput: (e) => /* @__PURE__ */ t(
|
|
296
|
-
|
|
296
|
+
Z,
|
|
297
297
|
{
|
|
298
298
|
...e,
|
|
299
299
|
label: "Country of citizenship",
|
|
@@ -311,7 +311,7 @@ const Ce = ({
|
|
|
311
311
|
sx: { mt: 3 },
|
|
312
312
|
label: "Occupation",
|
|
313
313
|
value: h,
|
|
314
|
-
onChange: (e) =>
|
|
314
|
+
onChange: (e) => A(e.target.value)
|
|
315
315
|
}
|
|
316
316
|
),
|
|
317
317
|
/* @__PURE__ */ t(
|
|
@@ -325,44 +325,44 @@ const Ce = ({
|
|
|
325
325
|
)
|
|
326
326
|
] }),
|
|
327
327
|
/* @__PURE__ */ t(
|
|
328
|
-
|
|
328
|
+
R,
|
|
329
329
|
{
|
|
330
330
|
sx: { mt: 3 },
|
|
331
331
|
variant: "contained",
|
|
332
|
-
onClick:
|
|
333
|
-
disabled: !f || !
|
|
332
|
+
onClick: m,
|
|
333
|
+
disabled: !f || !a || !y || !h || !S,
|
|
334
334
|
fullWidth: !0,
|
|
335
335
|
children: /* @__PURE__ */ t("strong", { children: "Next" })
|
|
336
336
|
}
|
|
337
337
|
)
|
|
338
338
|
] });
|
|
339
|
-
},
|
|
339
|
+
}, $ = "INCODE_SCREEN", X = "USER_INFO_SCREEN", J = "PERSONAL_DETAILS_SCREEN", ae = "PEP_SCREEN", be = ({
|
|
340
340
|
configurationId: p,
|
|
341
|
-
incodeApiKey:
|
|
342
|
-
incodeApiUrl:
|
|
341
|
+
incodeApiKey: N,
|
|
342
|
+
incodeApiUrl: P,
|
|
343
343
|
incodeOnBoardingUrl: l,
|
|
344
344
|
withContainer: i = !1,
|
|
345
345
|
successHandler: d,
|
|
346
346
|
updateScreen: g
|
|
347
347
|
}) => {
|
|
348
|
-
const
|
|
349
|
-
|
|
348
|
+
const R = ne(), f = Y((s) => s.user), _ = Y((s) => s.session.uuid), a = f.kyc, c = a.processComplete, y = {}, [u, h] = n(y), [A, S] = n({ token: "" }), [C, m] = n($);
|
|
349
|
+
K(() => {
|
|
350
350
|
let s;
|
|
351
351
|
switch (C) {
|
|
352
|
-
case
|
|
353
|
-
s =
|
|
352
|
+
case X:
|
|
353
|
+
s = $;
|
|
354
354
|
break;
|
|
355
|
-
case
|
|
356
|
-
s =
|
|
355
|
+
case J:
|
|
356
|
+
s = X;
|
|
357
357
|
break;
|
|
358
|
-
case
|
|
359
|
-
s =
|
|
358
|
+
case ae:
|
|
359
|
+
s = J;
|
|
360
360
|
break;
|
|
361
361
|
default:
|
|
362
|
-
s =
|
|
362
|
+
s = $;
|
|
363
363
|
}
|
|
364
|
-
|
|
365
|
-
}, [g]),
|
|
364
|
+
m(s);
|
|
365
|
+
}, [g]), K(() => {
|
|
366
366
|
d && c && d();
|
|
367
367
|
}, [d, c]);
|
|
368
368
|
const b = {
|
|
@@ -383,96 +383,96 @@ const Ce = ({
|
|
|
383
383
|
frequency: "",
|
|
384
384
|
reason: "",
|
|
385
385
|
source: ""
|
|
386
|
-
}, [e, o] = n(b),
|
|
387
|
-
var
|
|
388
|
-
if (!
|
|
389
|
-
const
|
|
386
|
+
}, [e, o] = n(b), q = (s, L, D, B, x, k) => {
|
|
387
|
+
var v, I, z;
|
|
388
|
+
if (!a.loader) {
|
|
389
|
+
const Q = {
|
|
390
390
|
street: e.address,
|
|
391
391
|
city: e.city,
|
|
392
392
|
postcode: e.zipCode,
|
|
393
393
|
state: e.state,
|
|
394
|
-
country: (
|
|
395
|
-
},
|
|
396
|
-
isExposed:
|
|
397
|
-
exposed:
|
|
398
|
-
frequency:
|
|
399
|
-
reason:
|
|
400
|
-
source:
|
|
401
|
-
originFunds:
|
|
402
|
-
},
|
|
403
|
-
frequency:
|
|
404
|
-
reason:
|
|
405
|
-
source:
|
|
406
|
-
originFunds:
|
|
407
|
-
},
|
|
394
|
+
country: (v = e.country) == null ? void 0 : v.alpha3
|
|
395
|
+
}, r = {
|
|
396
|
+
isExposed: s,
|
|
397
|
+
exposed: L,
|
|
398
|
+
frequency: D,
|
|
399
|
+
reason: B,
|
|
400
|
+
source: x,
|
|
401
|
+
originFunds: k
|
|
402
|
+
}, G = {
|
|
403
|
+
frequency: D,
|
|
404
|
+
reason: B,
|
|
405
|
+
source: x,
|
|
406
|
+
originFunds: k
|
|
407
|
+
}, M = {
|
|
408
408
|
email: e.email,
|
|
409
409
|
gender: e.gender,
|
|
410
|
-
birthPlace: (
|
|
411
|
-
nationality: (
|
|
410
|
+
birthPlace: (I = e.placeOfBirth) == null ? void 0 : I.alpha3,
|
|
411
|
+
nationality: (z = e.nationality) == null ? void 0 : z.alpha3,
|
|
412
412
|
occupation: e.occupation,
|
|
413
413
|
employer: e.employer,
|
|
414
|
-
residentialAddress:
|
|
415
|
-
politicalExposure:
|
|
416
|
-
customerDueDiligence:
|
|
414
|
+
residentialAddress: Q,
|
|
415
|
+
politicalExposure: r,
|
|
416
|
+
customerDueDiligence: G,
|
|
417
417
|
workflow: {
|
|
418
|
-
token:
|
|
418
|
+
token: A.token
|
|
419
419
|
}
|
|
420
420
|
};
|
|
421
|
-
|
|
421
|
+
R(ue(M));
|
|
422
422
|
}
|
|
423
|
-
},
|
|
423
|
+
}, F = {
|
|
424
424
|
INCODE_SCREEN: /* @__PURE__ */ t(
|
|
425
|
-
|
|
425
|
+
pe,
|
|
426
426
|
{
|
|
427
|
-
uuid:
|
|
427
|
+
uuid: _,
|
|
428
428
|
successHandler: () => {
|
|
429
|
-
|
|
429
|
+
m(X);
|
|
430
430
|
},
|
|
431
431
|
configurationId: p,
|
|
432
|
-
apiKey:
|
|
433
|
-
apiUrl:
|
|
432
|
+
apiKey: N,
|
|
433
|
+
apiUrl: P,
|
|
434
434
|
onBoardingUrl: l,
|
|
435
435
|
setDocumentsData: h,
|
|
436
436
|
setIncodeSessionData: S
|
|
437
437
|
}
|
|
438
438
|
),
|
|
439
439
|
USER_INFO_SCREEN: /* @__PURE__ */ t(
|
|
440
|
-
|
|
440
|
+
Ee,
|
|
441
441
|
{
|
|
442
|
-
docData:
|
|
443
|
-
setScreen:
|
|
442
|
+
docData: u,
|
|
443
|
+
setScreen: m,
|
|
444
444
|
setUserInfo: o,
|
|
445
445
|
userInfo: e,
|
|
446
446
|
userEmail: f.profile.email
|
|
447
447
|
}
|
|
448
448
|
),
|
|
449
449
|
PERSONAL_DETAILS_SCREEN: /* @__PURE__ */ t(
|
|
450
|
-
|
|
450
|
+
Se,
|
|
451
451
|
{
|
|
452
|
-
setScreen:
|
|
452
|
+
setScreen: m,
|
|
453
453
|
setUserInfo: o,
|
|
454
454
|
userInfo: e
|
|
455
455
|
}
|
|
456
456
|
),
|
|
457
457
|
PEP_SCREEN: /* @__PURE__ */ t(
|
|
458
|
-
|
|
458
|
+
ge,
|
|
459
459
|
{
|
|
460
|
-
setScreen:
|
|
460
|
+
setScreen: m,
|
|
461
461
|
setUserInfo: o,
|
|
462
462
|
userInfo: e,
|
|
463
|
-
processKyc:
|
|
464
|
-
processLoader:
|
|
463
|
+
processKyc: q,
|
|
464
|
+
processLoader: a.loader
|
|
465
465
|
}
|
|
466
466
|
)
|
|
467
467
|
}[C];
|
|
468
|
-
return i ? /* @__PURE__ */ t(
|
|
469
|
-
}, nt =
|
|
468
|
+
return i ? /* @__PURE__ */ t(ce, { addPadding: !1, children: F }) : F;
|
|
469
|
+
}, nt = de(be);
|
|
470
470
|
export {
|
|
471
471
|
nt as F,
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
472
|
+
$ as I,
|
|
473
|
+
Se as P,
|
|
474
|
+
Ee as U,
|
|
475
|
+
X as a,
|
|
476
|
+
J as b,
|
|
477
|
+
ae as c
|
|
478
478
|
};
|
package/dist/main.js
CHANGED
|
@@ -16,7 +16,7 @@ import { i as K } from "./index-BRwse7X5.js";
|
|
|
16
16
|
import { default as A } from "./components/Wallet/Swap/index.js";
|
|
17
17
|
import { default as H } from "./components/Wallet/EnterpriseKyc/index.js";
|
|
18
18
|
import { default as M } from "./components/Wallet/Deposit/index.js";
|
|
19
|
-
import { F as W } from "./index-
|
|
19
|
+
import { F as W } from "./index-Db73x3ti.js";
|
|
20
20
|
import { useSnackBar as j } from "./hooks/useSnackBar.js";
|
|
21
21
|
import { SnackBarContext as z, useSnackBarContext as G } from "./context/snackBarContext.js";
|
|
22
22
|
import { useDialog as L } from "./hooks/useDialog/index.js";
|