everest-npm-features 0.0.49 → 0.0.51
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/components/Shared/FullKyc/index.js +22 -7
- package/dist/components/Shared/FullKyc/personalDetails.js +1 -1
- package/dist/components/Shared/FullKyc/userInfo.js +1 -1
- package/dist/components/Wallet/Account/createIban.js +50 -50
- package/dist/components/Wallet/Account/eWallet.js +84 -62
- package/dist/components/Wallet/Account/iban.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/index.js +75 -75
- package/dist/components/Wallet/Portfolio/index.js +1 -1
- package/dist/components/Wallet/Portfolio/tokenRow.js +1 -1
- package/dist/index-BMts9nlV.js +503 -0
- package/dist/main.js +1 -1
- package/dist/{tokenRow-D32W5WH3.js → tokenRow-B-tustzZ.js} +8 -6
- package/dist/util/constants.d.ts +2 -2
- package/dist/util/constants.js +1 -1
- package/package.json +1 -1
- package/dist/index-Da0r8FX2.js +0 -503
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
import { jsxs as S, Fragment as ee, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as r, useEffect as q, useRef as Ce } from "react";
|
|
3
|
+
import { AuthContainer as ye } from "./components/Wallet/Shared/Container/index.js";
|
|
4
|
+
import Se from "./components/Shared/Incode/index.js";
|
|
5
|
+
import be from "./hoc/withThemeProvider.js";
|
|
6
|
+
import ue from "./components/Wallet/Shared/Input/index.js";
|
|
7
|
+
import pe from "./components/Wallet/Shared/appButton.js";
|
|
8
|
+
import "./index-DlQqWbXG.js";
|
|
9
|
+
import "./components/Wallet/Shared/Auth/otpForm.js";
|
|
10
|
+
import { d as N, f as ve } from "./constants-t7n9qCW3.js";
|
|
11
|
+
import { b as xe, c as De } from "./kyc-D9xahfH9.js";
|
|
12
|
+
import { useSnackBarContext as se } from "./context/snackBarContext.js";
|
|
13
|
+
import me from "./hooks/useEverestDispatch.js";
|
|
14
|
+
import "./util/conversions.js";
|
|
15
|
+
import "./index-CAoLi5Qq.js";
|
|
16
|
+
import fe from "./components/Wallet/Shared/step.js";
|
|
17
|
+
import "./react-webcam-B3cXh1XT.js";
|
|
18
|
+
import "./components/Shared/transition.js";
|
|
19
|
+
import "./tooltip-3UvETWtS.js";
|
|
20
|
+
import "./components/Wallet/Shared/pin.js";
|
|
21
|
+
import "./moment-h96o7c8I.js";
|
|
22
|
+
import "./index.esm-BsMAMhYW.js";
|
|
23
|
+
import { c as _e } from "./countries-BVn1FubK.js";
|
|
24
|
+
import "./web3-u4qDZYpo.js";
|
|
25
|
+
import "./index-ceeCtFuh.js";
|
|
26
|
+
import { useDialogContext as Ne } from "./context/dialogContext.js";
|
|
27
|
+
import te from "./components/Shared/FullKyc/countryList.js";
|
|
28
|
+
import { B as G } from "./Box-B0YSYLco.js";
|
|
29
|
+
import { T as w } from "./Typography-pAaje37G.js";
|
|
30
|
+
import Pe from "./components/Shared/FullKyc/pep.js";
|
|
31
|
+
import { u as $ } from "./react-redux-C7I9-1M6.js";
|
|
32
|
+
import Oe from "./components/Shared/FullKyc/edd.js";
|
|
33
|
+
import { F as Re } from "./FormControl-RtZDQMdA.js";
|
|
34
|
+
import { I as Ae } from "./TextField-DPpRUQe3.js";
|
|
35
|
+
import { S as Be } from "./Select-CB5yWmyn.js";
|
|
36
|
+
import { M as J } from "./MenuItem-DUdYOJr4.js";
|
|
37
|
+
import { G as Q } from "./Grid-CFe3amXO.js";
|
|
38
|
+
const Le = ({
|
|
39
|
+
inputComponent: p,
|
|
40
|
+
buttonComponent: L,
|
|
41
|
+
setUserInfo: P,
|
|
42
|
+
userInfo: i,
|
|
43
|
+
docData: n,
|
|
44
|
+
setScreen: m,
|
|
45
|
+
userEmail: E,
|
|
46
|
+
kycFlow: u
|
|
47
|
+
}) => {
|
|
48
|
+
const c = me();
|
|
49
|
+
Ne();
|
|
50
|
+
const { showAlertMessage: d } = se(), a = p ?? ue, T = L ?? pe, [l, O] = r(i.gender || ""), [b, g] = r(!1), [v, C] = r(i.email || ""), [k, j] = r(!1), [z, Y] = r(""), [y, f] = r(i.address || ""), [R, t] = r(i.city || ""), [x, D] = r(i.state || ""), [A, K] = r(i.zipCode || ""), [_, ie] = r(
|
|
51
|
+
i.country || null
|
|
52
|
+
), [B, s] = r(!1);
|
|
53
|
+
q(() => {
|
|
54
|
+
E && (C(E), j(!0));
|
|
55
|
+
}, [E]), q(() => {
|
|
56
|
+
var o;
|
|
57
|
+
if (n != null && n.issuingCountry) {
|
|
58
|
+
n.gender && (O(n.gender), g(!0));
|
|
59
|
+
const F = _e.find(
|
|
60
|
+
(h) => h.alpha3 === n.issuingCountry
|
|
61
|
+
);
|
|
62
|
+
P({ ...i, country: F, nationality: F });
|
|
63
|
+
const M = new Date(n.birthDate), I = M.getTimezoneOffset() * 6e4, H = new Date(
|
|
64
|
+
M.getTime() + I
|
|
65
|
+
);
|
|
66
|
+
if (Y(H.toLocaleDateString("en-US")), (o = n.checkedAddressBean) != null && o.street) {
|
|
67
|
+
const h = n.checkedAddressBean;
|
|
68
|
+
s(!0), f(h.street), t(h.city), D(h.state), K(h.postalCode);
|
|
69
|
+
}
|
|
70
|
+
} else
|
|
71
|
+
Z();
|
|
72
|
+
}, []);
|
|
73
|
+
const Z = () => {
|
|
74
|
+
c(xe());
|
|
75
|
+
};
|
|
76
|
+
return /* @__PURE__ */ S(ee, { children: [
|
|
77
|
+
u !== N && /* @__PURE__ */ e(G, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ e(fe, { totalSteps: 4, currentStep: 2 }) }),
|
|
78
|
+
/* @__PURE__ */ S(G, { pl: 2, mt: 4, children: [
|
|
79
|
+
/* @__PURE__ */ e(w, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "Personal details" }),
|
|
80
|
+
u !== N && /* @__PURE__ */ S(ee, { children: [
|
|
81
|
+
/* @__PURE__ */ e(w, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
|
|
82
|
+
/* @__PURE__ */ e(
|
|
83
|
+
a,
|
|
84
|
+
{
|
|
85
|
+
sx: { mt: 3 },
|
|
86
|
+
label: "Date of Birth",
|
|
87
|
+
value: z,
|
|
88
|
+
disabled: !0,
|
|
89
|
+
required: !0
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
/* @__PURE__ */ S(Re, { sx: { mt: 3 }, fullWidth: !0, children: [
|
|
93
|
+
/* @__PURE__ */ e(Ae, { children: "Gender" }),
|
|
94
|
+
/* @__PURE__ */ S(
|
|
95
|
+
Be,
|
|
96
|
+
{
|
|
97
|
+
value: l,
|
|
98
|
+
label: "Gender",
|
|
99
|
+
onChange: (o) => O(o.target.value),
|
|
100
|
+
disabled: !!(b && l),
|
|
101
|
+
required: !0,
|
|
102
|
+
children: [
|
|
103
|
+
/* @__PURE__ */ e(J, { value: "M", children: "Male" }, "M"),
|
|
104
|
+
/* @__PURE__ */ e(J, { value: "F", children: "Female" }, "F"),
|
|
105
|
+
/* @__PURE__ */ e(J, { value: "X", children: "Another" }, "X")
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
] }),
|
|
110
|
+
/* @__PURE__ */ e(
|
|
111
|
+
a,
|
|
112
|
+
{
|
|
113
|
+
sx: { mt: 3 },
|
|
114
|
+
label: "Email",
|
|
115
|
+
value: v,
|
|
116
|
+
onChange: (o) => C(o.target.value),
|
|
117
|
+
disabled: k,
|
|
118
|
+
required: !0
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
] }),
|
|
122
|
+
/* @__PURE__ */ e(
|
|
123
|
+
a,
|
|
124
|
+
{
|
|
125
|
+
sx: { mt: 3 },
|
|
126
|
+
label: "Home Address",
|
|
127
|
+
value: y,
|
|
128
|
+
onChange: (o) => f(o.target.value),
|
|
129
|
+
disabled: !!(B && y),
|
|
130
|
+
required: !0
|
|
131
|
+
}
|
|
132
|
+
),
|
|
133
|
+
/* @__PURE__ */ S(Q, { container: !0, spacing: 2, sx: { mt: 3 }, children: [
|
|
134
|
+
/* @__PURE__ */ e(Q, { size: 6, children: /* @__PURE__ */ e(
|
|
135
|
+
a,
|
|
136
|
+
{
|
|
137
|
+
label: "City",
|
|
138
|
+
value: R,
|
|
139
|
+
onChange: (o) => t(o.target.value),
|
|
140
|
+
disabled: !!(B && R),
|
|
141
|
+
required: !0
|
|
142
|
+
}
|
|
143
|
+
) }),
|
|
144
|
+
/* @__PURE__ */ e(Q, { size: 6, children: /* @__PURE__ */ e(
|
|
145
|
+
a,
|
|
146
|
+
{
|
|
147
|
+
label: "State/Province",
|
|
148
|
+
value: x,
|
|
149
|
+
onChange: (o) => D(o.target.value),
|
|
150
|
+
required: !0
|
|
151
|
+
}
|
|
152
|
+
) })
|
|
153
|
+
] }),
|
|
154
|
+
/* @__PURE__ */ e(
|
|
155
|
+
a,
|
|
156
|
+
{
|
|
157
|
+
sx: { mt: 3 },
|
|
158
|
+
label: "Zipcode",
|
|
159
|
+
value: A,
|
|
160
|
+
onChange: (o) => K(o.target.value),
|
|
161
|
+
disabled: !!(B && A),
|
|
162
|
+
required: !0
|
|
163
|
+
}
|
|
164
|
+
),
|
|
165
|
+
/* @__PURE__ */ e(
|
|
166
|
+
te,
|
|
167
|
+
{
|
|
168
|
+
value: _,
|
|
169
|
+
onChange: ie,
|
|
170
|
+
label: "Country of residence"
|
|
171
|
+
}
|
|
172
|
+
)
|
|
173
|
+
] }),
|
|
174
|
+
/* @__PURE__ */ e(
|
|
175
|
+
T,
|
|
176
|
+
{
|
|
177
|
+
sx: { mt: 3 },
|
|
178
|
+
variant: "contained",
|
|
179
|
+
onClick: () => {
|
|
180
|
+
if (u !== N) {
|
|
181
|
+
if (!z)
|
|
182
|
+
return d({ message: "Please provide date of birth" });
|
|
183
|
+
if (!l)
|
|
184
|
+
return d({ message: "Please provide gender" });
|
|
185
|
+
}
|
|
186
|
+
if (!y)
|
|
187
|
+
return d({ message: "Please provide address" });
|
|
188
|
+
if (!R) return d({ message: "Please provide city" });
|
|
189
|
+
if (!x) return d({ message: "Please provide state" });
|
|
190
|
+
if (!A)
|
|
191
|
+
return d({ message: "Please provide zip code" });
|
|
192
|
+
if (!_)
|
|
193
|
+
return d({
|
|
194
|
+
message: "Please select country of residency"
|
|
195
|
+
});
|
|
196
|
+
P({
|
|
197
|
+
...i,
|
|
198
|
+
gender: l,
|
|
199
|
+
email: v,
|
|
200
|
+
address: y,
|
|
201
|
+
city: R,
|
|
202
|
+
state: x,
|
|
203
|
+
zipCode: A,
|
|
204
|
+
country: _
|
|
205
|
+
}), m(
|
|
206
|
+
u !== N ? re : oe
|
|
207
|
+
);
|
|
208
|
+
},
|
|
209
|
+
disabled: u !== N && !v || u !== N && !l || !y || !_,
|
|
210
|
+
fullWidth: !0,
|
|
211
|
+
children: /* @__PURE__ */ e("strong", { children: "Next" })
|
|
212
|
+
}
|
|
213
|
+
)
|
|
214
|
+
] });
|
|
215
|
+
}, Te = ({
|
|
216
|
+
userInfo: p,
|
|
217
|
+
setUserInfo: L,
|
|
218
|
+
setScreen: P,
|
|
219
|
+
inputComponent: i,
|
|
220
|
+
buttonComponent: n
|
|
221
|
+
}) => {
|
|
222
|
+
const { showAlertMessage: m } = se(), E = i ?? ue, u = n ?? pe, [c, d] = r(
|
|
223
|
+
p.placeOfBirth || null
|
|
224
|
+
), [a, T] = r(
|
|
225
|
+
p.nationality || null
|
|
226
|
+
), [l, O] = r(p.occupation || ""), [b, g] = r(p.employer || "");
|
|
227
|
+
return /* @__PURE__ */ S(ee, { children: [
|
|
228
|
+
/* @__PURE__ */ e(G, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ e(fe, { totalSteps: 4, currentStep: 3 }) }),
|
|
229
|
+
/* @__PURE__ */ S(G, { pl: 2, mt: 4, children: [
|
|
230
|
+
/* @__PURE__ */ e(w, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "More Personal details" }),
|
|
231
|
+
/* @__PURE__ */ e(w, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
|
|
232
|
+
/* @__PURE__ */ e(
|
|
233
|
+
te,
|
|
234
|
+
{
|
|
235
|
+
value: c,
|
|
236
|
+
onChange: d,
|
|
237
|
+
label: "Place Of Birth"
|
|
238
|
+
}
|
|
239
|
+
),
|
|
240
|
+
/* @__PURE__ */ e(
|
|
241
|
+
te,
|
|
242
|
+
{
|
|
243
|
+
value: a,
|
|
244
|
+
onChange: T,
|
|
245
|
+
label: "Country of citizenship"
|
|
246
|
+
}
|
|
247
|
+
),
|
|
248
|
+
/* @__PURE__ */ e(
|
|
249
|
+
E,
|
|
250
|
+
{
|
|
251
|
+
sx: { mt: 3 },
|
|
252
|
+
label: "Occupation",
|
|
253
|
+
value: l,
|
|
254
|
+
onChange: (C) => O(C.target.value)
|
|
255
|
+
}
|
|
256
|
+
),
|
|
257
|
+
/* @__PURE__ */ e(
|
|
258
|
+
E,
|
|
259
|
+
{
|
|
260
|
+
sx: { mt: 3 },
|
|
261
|
+
label: "Employer",
|
|
262
|
+
value: b,
|
|
263
|
+
onChange: (C) => g(C.target.value)
|
|
264
|
+
}
|
|
265
|
+
)
|
|
266
|
+
] }),
|
|
267
|
+
/* @__PURE__ */ e(
|
|
268
|
+
u,
|
|
269
|
+
{
|
|
270
|
+
sx: { mt: 3 },
|
|
271
|
+
variant: "contained",
|
|
272
|
+
onClick: () => {
|
|
273
|
+
if (!c) {
|
|
274
|
+
m({ message: "Please select place of birth" });
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
if (!a) {
|
|
278
|
+
m({ message: "Please provide address" });
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
if (!l) {
|
|
282
|
+
m({ message: "Please provide city" });
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
L({
|
|
286
|
+
...p,
|
|
287
|
+
placeOfBirth: c,
|
|
288
|
+
nationality: a,
|
|
289
|
+
occupation: l,
|
|
290
|
+
employer: b
|
|
291
|
+
}), P(oe);
|
|
292
|
+
},
|
|
293
|
+
disabled: !c || !a || !l || !b,
|
|
294
|
+
fullWidth: !0,
|
|
295
|
+
children: /* @__PURE__ */ e("strong", { children: "Next" })
|
|
296
|
+
}
|
|
297
|
+
)
|
|
298
|
+
] });
|
|
299
|
+
}, V = "INCODE_SCREEN", W = "USER_INFO_SCREEN", re = "PERSONAL_DETAILS_SCREEN", oe = "PEP_SCREEN", Ke = "EDD_SCREEN", Fe = {
|
|
300
|
+
BANK_STATEMENT: {
|
|
301
|
+
text: "",
|
|
302
|
+
file: [],
|
|
303
|
+
preview: []
|
|
304
|
+
},
|
|
305
|
+
PROOF_OF_INCOME: {
|
|
306
|
+
text: "",
|
|
307
|
+
file: [],
|
|
308
|
+
preview: []
|
|
309
|
+
},
|
|
310
|
+
SOURCE_OF_WEALTH: {
|
|
311
|
+
text: "",
|
|
312
|
+
file: [],
|
|
313
|
+
preview: []
|
|
314
|
+
}
|
|
315
|
+
}, Me = ({
|
|
316
|
+
configurationId: p,
|
|
317
|
+
incodeApiKey: L,
|
|
318
|
+
incodeApiUrl: P,
|
|
319
|
+
incodeOnBoardingUrl: i,
|
|
320
|
+
withContainer: n = !1,
|
|
321
|
+
successHandler: m,
|
|
322
|
+
updateScreen: E,
|
|
323
|
+
isModalView: u = !1,
|
|
324
|
+
kycFlow: c
|
|
325
|
+
}) => {
|
|
326
|
+
const d = Ce(!0), { showAlertMessage: a } = se(), T = me(), l = $((s) => s.user), O = $((s) => s.user.kyc), b = $((s) => s.session.uuid), g = l.kyc, v = g.processComplete, C = {}, [k, j] = r(C), [z, Y] = r({ token: "" }), [y, f] = r(
|
|
327
|
+
c === N ? W : V
|
|
328
|
+
);
|
|
329
|
+
q(() => {
|
|
330
|
+
if (d.current) {
|
|
331
|
+
d.current = !1;
|
|
332
|
+
return;
|
|
333
|
+
}
|
|
334
|
+
let s;
|
|
335
|
+
switch (y) {
|
|
336
|
+
case W:
|
|
337
|
+
s = V;
|
|
338
|
+
break;
|
|
339
|
+
case re:
|
|
340
|
+
s = W;
|
|
341
|
+
break;
|
|
342
|
+
case oe:
|
|
343
|
+
s = re;
|
|
344
|
+
break;
|
|
345
|
+
default:
|
|
346
|
+
s = V;
|
|
347
|
+
}
|
|
348
|
+
f(s);
|
|
349
|
+
}, [E]), q(() => {
|
|
350
|
+
m && v && (a({ message: "KYC has been done successfully." }), m());
|
|
351
|
+
}, [m, v]);
|
|
352
|
+
const R = {
|
|
353
|
+
gender: "",
|
|
354
|
+
email: "",
|
|
355
|
+
address: "",
|
|
356
|
+
city: "",
|
|
357
|
+
state: "",
|
|
358
|
+
zipCode: "",
|
|
359
|
+
placeOfBirth: "",
|
|
360
|
+
country: "",
|
|
361
|
+
nationality: "",
|
|
362
|
+
occupation: "",
|
|
363
|
+
employer: "",
|
|
364
|
+
isPoliticalExpose: !1,
|
|
365
|
+
politicalExpose: "",
|
|
366
|
+
origin: "",
|
|
367
|
+
frequency: "",
|
|
368
|
+
reason: "",
|
|
369
|
+
source: ""
|
|
370
|
+
}, [t, x] = r(R), [D, A] = r(Fe);
|
|
371
|
+
q(() => {
|
|
372
|
+
D.BANK_STATEMENT.file.length > 0 && K(D);
|
|
373
|
+
}, [D]);
|
|
374
|
+
const K = (s) => {
|
|
375
|
+
_(
|
|
376
|
+
t.isPoliticalExpose,
|
|
377
|
+
t.politicalExpose,
|
|
378
|
+
t.frequency,
|
|
379
|
+
t.reason,
|
|
380
|
+
t.source,
|
|
381
|
+
t.origin,
|
|
382
|
+
s,
|
|
383
|
+
!0
|
|
384
|
+
);
|
|
385
|
+
}, _ = (s, Z, X, o, F, M, I, H = !1) => {
|
|
386
|
+
var h, ne, ae;
|
|
387
|
+
if (c !== ve && !H) {
|
|
388
|
+
f(Ke);
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
if (!g.loader) {
|
|
392
|
+
const he = {
|
|
393
|
+
street: t.address,
|
|
394
|
+
city: t.city,
|
|
395
|
+
postcode: t.zipCode,
|
|
396
|
+
state: t.state,
|
|
397
|
+
country: (h = t.country) == null ? void 0 : h.alpha3
|
|
398
|
+
}, Ee = {
|
|
399
|
+
isExposed: s,
|
|
400
|
+
exposed: Z,
|
|
401
|
+
frequency: X,
|
|
402
|
+
reason: o,
|
|
403
|
+
source: F,
|
|
404
|
+
originFunds: M
|
|
405
|
+
}, ge = {
|
|
406
|
+
frequency: X,
|
|
407
|
+
reason: o,
|
|
408
|
+
source: F,
|
|
409
|
+
originFunds: M
|
|
410
|
+
}, le = {
|
|
411
|
+
kycFlow: c,
|
|
412
|
+
email: t.email,
|
|
413
|
+
gender: t.gender,
|
|
414
|
+
birthPlace: (ne = t.placeOfBirth) == null ? void 0 : ne.alpha3,
|
|
415
|
+
nationality: (ae = t.nationality) == null ? void 0 : ae.alpha3,
|
|
416
|
+
occupation: t.occupation,
|
|
417
|
+
employer: t.employer,
|
|
418
|
+
residentialAddress: he,
|
|
419
|
+
politicalExposure: Ee,
|
|
420
|
+
customerDueDiligence: ge,
|
|
421
|
+
workflow: {
|
|
422
|
+
token: z.token
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
if (I) {
|
|
426
|
+
const ce = Object.entries(I).filter(([de, U]) => U.file && U.file.length > 0).map(([de, U]) => ({
|
|
427
|
+
file: U.file[0],
|
|
428
|
+
type: de
|
|
429
|
+
}));
|
|
430
|
+
ce.length > 0 && (le.eddDocuments = ce);
|
|
431
|
+
}
|
|
432
|
+
T(De(le));
|
|
433
|
+
}
|
|
434
|
+
}, B = {
|
|
435
|
+
INCODE_SCREEN: /* @__PURE__ */ e(
|
|
436
|
+
Se,
|
|
437
|
+
{
|
|
438
|
+
uuid: b,
|
|
439
|
+
successHandler: () => {
|
|
440
|
+
f(W);
|
|
441
|
+
},
|
|
442
|
+
configurationId: p,
|
|
443
|
+
apiKey: L,
|
|
444
|
+
apiUrl: P,
|
|
445
|
+
onBoardingUrl: i,
|
|
446
|
+
setDocumentsData: j,
|
|
447
|
+
setIncodeSessionData: Y,
|
|
448
|
+
isModalView: u
|
|
449
|
+
}
|
|
450
|
+
),
|
|
451
|
+
USER_INFO_SCREEN: /* @__PURE__ */ e(
|
|
452
|
+
Le,
|
|
453
|
+
{
|
|
454
|
+
docData: k,
|
|
455
|
+
setScreen: f,
|
|
456
|
+
setUserInfo: x,
|
|
457
|
+
userInfo: t,
|
|
458
|
+
userEmail: l.profile.email,
|
|
459
|
+
kycFlow: c
|
|
460
|
+
}
|
|
461
|
+
),
|
|
462
|
+
PERSONAL_DETAILS_SCREEN: /* @__PURE__ */ e(
|
|
463
|
+
Te,
|
|
464
|
+
{
|
|
465
|
+
setScreen: f,
|
|
466
|
+
setUserInfo: x,
|
|
467
|
+
userInfo: t
|
|
468
|
+
}
|
|
469
|
+
),
|
|
470
|
+
PEP_SCREEN: /* @__PURE__ */ e(
|
|
471
|
+
Pe,
|
|
472
|
+
{
|
|
473
|
+
setScreen: f,
|
|
474
|
+
setUserInfo: x,
|
|
475
|
+
userInfo: t,
|
|
476
|
+
processKyc: _,
|
|
477
|
+
processLoader: g.loader,
|
|
478
|
+
kycFlow: c
|
|
479
|
+
}
|
|
480
|
+
),
|
|
481
|
+
EDD_SCREEN: /* @__PURE__ */ e(
|
|
482
|
+
Oe,
|
|
483
|
+
{
|
|
484
|
+
kycStoreData: O,
|
|
485
|
+
eddData: D,
|
|
486
|
+
setEddData: A,
|
|
487
|
+
processKyc: K,
|
|
488
|
+
processLoader: g.loader
|
|
489
|
+
}
|
|
490
|
+
)
|
|
491
|
+
}[y];
|
|
492
|
+
return n ? /* @__PURE__ */ e(ye, { addPadding: !1, children: B }) : B;
|
|
493
|
+
}, St = be(Me);
|
|
494
|
+
export {
|
|
495
|
+
Ke as E,
|
|
496
|
+
St as F,
|
|
497
|
+
V as I,
|
|
498
|
+
Te as P,
|
|
499
|
+
Le as U,
|
|
500
|
+
W as a,
|
|
501
|
+
re as b,
|
|
502
|
+
oe as c
|
|
503
|
+
};
|
package/dist/main.js
CHANGED
|
@@ -17,7 +17,7 @@ import { i as b } from "./index-j0zehpzg.js";
|
|
|
17
17
|
import { i as F } from "./index-DFRU-R-5.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-BMts9nlV.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";
|
|
@@ -11,7 +11,7 @@ import './assets/tokenRow.css';const h = {
|
|
|
11
11
|
"dropdown-list-item": "_dropdown-list-item_1ehfm_19",
|
|
12
12
|
"balance-item": "_balance-item_1ehfm_31",
|
|
13
13
|
"crdt-links": "_crdt-links_1ehfm_57"
|
|
14
|
-
},
|
|
14
|
+
}, K = ({
|
|
15
15
|
token: s,
|
|
16
16
|
currencyData: c,
|
|
17
17
|
fiatBalance: x,
|
|
@@ -27,10 +27,12 @@ import './assets/tokenRow.css';const h = {
|
|
|
27
27
|
m && i.wallets && (F((r) => !r), _(o ? [] : i.wallets));
|
|
28
28
|
}, T = (i, r) => {
|
|
29
29
|
i.stopPropagation(), D("/withdraw", r);
|
|
30
|
-
},
|
|
30
|
+
}, E = (i) => {
|
|
31
31
|
switch (i) {
|
|
32
32
|
case "ID":
|
|
33
33
|
return "Everest ID";
|
|
34
|
+
case "EUR.c":
|
|
35
|
+
return "Euro";
|
|
34
36
|
case "CRDT":
|
|
35
37
|
return c.label;
|
|
36
38
|
default:
|
|
@@ -50,7 +52,7 @@ import './assets/tokenRow.css';const h = {
|
|
|
50
52
|
default:
|
|
51
53
|
return { se: i + "_" + r };
|
|
52
54
|
}
|
|
53
|
-
},
|
|
55
|
+
}, C = s.symbol.replace(".c", "");
|
|
54
56
|
return /* @__PURE__ */ e(u, { children: /* @__PURE__ */ t(
|
|
55
57
|
l,
|
|
56
58
|
{
|
|
@@ -76,7 +78,7 @@ import './assets/tokenRow.css';const h = {
|
|
|
76
78
|
) : /* @__PURE__ */ e("img", { src: b, width: 40, height: 40 }),
|
|
77
79
|
" ",
|
|
78
80
|
/* @__PURE__ */ t("span", { children: [
|
|
79
|
-
/* @__PURE__ */ e("strong", { children:
|
|
81
|
+
/* @__PURE__ */ e("strong", { children: E(s.symbol) }),
|
|
80
82
|
R && s.symbol === "EUR.c" ? /* @__PURE__ */ e("span", { className: h["crdt-links"], children: /* @__PURE__ */ e(
|
|
81
83
|
"span",
|
|
82
84
|
{
|
|
@@ -164,7 +166,7 @@ import './assets/tokenRow.css';const h = {
|
|
|
164
166
|
}
|
|
165
167
|
)
|
|
166
168
|
] }, r)),
|
|
167
|
-
o && f && !f.includes(
|
|
169
|
+
o && f && !f.includes(C) ? /* @__PURE__ */ t(u, { children: [
|
|
168
170
|
/* @__PURE__ */ e(N, { sx: { width: "100%", mt: 1 } }),
|
|
169
171
|
/* @__PURE__ */ e(l, { container: !0, sx: { width: "100%" }, children: /* @__PURE__ */ e(l, { className: "flex-center", size: 12, children: /* @__PURE__ */ e(
|
|
170
172
|
G,
|
|
@@ -181,6 +183,6 @@ import './assets/tokenRow.css';const h = {
|
|
|
181
183
|
) });
|
|
182
184
|
};
|
|
183
185
|
export {
|
|
184
|
-
|
|
186
|
+
K as T,
|
|
185
187
|
h as s
|
|
186
188
|
};
|
package/dist/util/constants.d.ts
CHANGED
|
@@ -94,8 +94,8 @@ export declare const LOGIN_SCREEN = "login_screen";
|
|
|
94
94
|
export declare const REGISTER_SCREEN = "register_screen";
|
|
95
95
|
export declare const INDIVIDUAL_KYC_TYPE = "Individual";
|
|
96
96
|
export declare const ORGANIZATION_KYC_TYPE = "Organization";
|
|
97
|
-
export declare const KYC_OVER_TRANSATION = "Over $
|
|
98
|
-
export declare const KYC_BETWEEN_TRANSATION = "Over $1,000 & Under $
|
|
97
|
+
export declare const KYC_OVER_TRANSATION = "Over $100,000";
|
|
98
|
+
export declare const KYC_BETWEEN_TRANSATION = "Over $1,000 & Under $100,000";
|
|
99
99
|
export declare const KYC_UNDER_TRANSATION = "Under $1,000";
|
|
100
100
|
export declare const CARD_PAYMENT_DECLINE = "Declined";
|
|
101
101
|
export declare const KYC_APROVED_TOOLTIP = "You are allowed to transact up to $10,000";
|
package/dist/util/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _ = "https://static-assets.everest.org", o = _ + "/web/widget", n = _ + "/web/enterprise", s = _ + "/web/wallet/images", t = s + "/new", E = t + "/sell-withdraw.png", e = t + "/back-btn.png", c = t + "/delete.png", T = n + "/history-buy.svg", A = n + "/history-sell.svg", a = n + "/history-swap.svg", I = t + "/wallet-icon.png", O = t + "/stake-id.png", N = s + "/stake-gem.png", S = n + "/swap-receive-down-arrow.svg", R = t + "/sepa-payment.png", r = t + "/sepa-payment-selected.png", i = t + "/visa-payment.png", L = t + "/visa-payment-selected.png", P = t + "/sepa.png", C = t + "/visa.png", D = t + "/dialog-error.png", d = t + "/dialog-success.png", p = n + "/expand-down-arrow.svg", Y = n + "/expand-right-arrow.svg", M = n + "/back-arrow.svg", g = n + "/right-arrow.svg", l = n + "/radio-button.svg", K = n + "/radio-button-selected.svg", U = n + "/sepa.png", u = n + "/sepa-selected.png", h = n + "/visa.png", v = n + "/visa-selected.png", B = t + "/cloud-icon.png", W = t + "/storage-success.png", y = "railsbank", m = "open_payd", w = "checkout", V = "trustpayments", G = "paysafe", b = "cardcorp", k = "plaid", H = "$", F = "€", f = "USD", $ = "EUR", X = "Binance", x = "Polygon", j = "EverChain", z = "IDChain", Z = "Ethereum", q = "Avalanche", J = "USD.c", Q = "EUR.c", tt = "EURE.c", nt = "BTC.c", _t = "GEMS.c", st = "ID", ot = "GEMS", Et = "USDR.c", et = "fiat_to_token", ct = "fiat_to_everid", Tt = "token_to_fiat", At = "token_to_token", at = "withdraw", It = "iban_creation", Ot = "bank_transfer", Nt = "bank_deposit", St = "Created", Rt = "In Process", rt = "Completed", it = "Failed", Lt = "Awaiting Approved", Pt = "Rejected", Ct = "ID", Dt = "GEMS", dt = 90, pt = 3, Yt = 180, Mt = 8, gt = 365, lt = 18, Kt = 365, Ut = 20, ut = "Linked Wallets make transactions easier, automating the signing process during Sell, Swap, Stake, Send and Remit transactions because you have backed up your Private Key with Everest.", ht = "Connected Wallets are those that you have demonstrated you control, but you must manually move tokens as the system can not do so without the Private Key.", vt = "The rate shown here is an estimate and the rate you receive will be determined at the time when your payment is settled. The time taken for your payment to settle can vary depending on currency and payment method.", Bt = 300, Wt = "username can only contain letters, numbers, underscores & cannot exceed more than 13 characters", yt = "_rr", mt = "credit_debit_card", wt = "sepa_bank_transfer", Vt = "player", Gt = "store", bt = "login_screen", kt = "register_screen", Ht = "Individual", Ft = "Organization", ft = "Over $
|
|
1
|
+
const _ = "https://static-assets.everest.org", o = _ + "/web/widget", n = _ + "/web/enterprise", s = _ + "/web/wallet/images", t = s + "/new", E = t + "/sell-withdraw.png", e = t + "/back-btn.png", c = t + "/delete.png", T = n + "/history-buy.svg", A = n + "/history-sell.svg", a = n + "/history-swap.svg", I = t + "/wallet-icon.png", O = t + "/stake-id.png", N = s + "/stake-gem.png", S = n + "/swap-receive-down-arrow.svg", R = t + "/sepa-payment.png", r = t + "/sepa-payment-selected.png", i = t + "/visa-payment.png", L = t + "/visa-payment-selected.png", P = t + "/sepa.png", C = t + "/visa.png", D = t + "/dialog-error.png", d = t + "/dialog-success.png", p = n + "/expand-down-arrow.svg", Y = n + "/expand-right-arrow.svg", M = n + "/back-arrow.svg", g = n + "/right-arrow.svg", l = n + "/radio-button.svg", K = n + "/radio-button-selected.svg", U = n + "/sepa.png", u = n + "/sepa-selected.png", h = n + "/visa.png", v = n + "/visa-selected.png", B = t + "/cloud-icon.png", W = t + "/storage-success.png", y = "railsbank", m = "open_payd", w = "checkout", V = "trustpayments", G = "paysafe", b = "cardcorp", k = "plaid", H = "$", F = "€", f = "USD", $ = "EUR", X = "Binance", x = "Polygon", j = "EverChain", z = "IDChain", Z = "Ethereum", q = "Avalanche", J = "USD.c", Q = "EUR.c", tt = "EURE.c", nt = "BTC.c", _t = "GEMS.c", st = "ID", ot = "GEMS", Et = "USDR.c", et = "fiat_to_token", ct = "fiat_to_everid", Tt = "token_to_fiat", At = "token_to_token", at = "withdraw", It = "iban_creation", Ot = "bank_transfer", Nt = "bank_deposit", St = "Created", Rt = "In Process", rt = "Completed", it = "Failed", Lt = "Awaiting Approved", Pt = "Rejected", Ct = "ID", Dt = "GEMS", dt = 90, pt = 3, Yt = 180, Mt = 8, gt = 365, lt = 18, Kt = 365, Ut = 20, ut = "Linked Wallets make transactions easier, automating the signing process during Sell, Swap, Stake, Send and Remit transactions because you have backed up your Private Key with Everest.", ht = "Connected Wallets are those that you have demonstrated you control, but you must manually move tokens as the system can not do so without the Private Key.", vt = "The rate shown here is an estimate and the rate you receive will be determined at the time when your payment is settled. The time taken for your payment to settle can vary depending on currency and payment method.", Bt = 300, Wt = "username can only contain letters, numbers, underscores & cannot exceed more than 13 characters", yt = "_rr", mt = "credit_debit_card", wt = "sepa_bank_transfer", Vt = "player", Gt = "store", bt = "login_screen", kt = "register_screen", Ht = "Individual", Ft = "Organization", ft = "Over $100,000", $t = "Over $1,000 & Under $100,000", Xt = "Under $1,000", xt = "Declined", jt = "You are allowed to transact up to $10,000", zt = "You are allowed to transact more than $10,000", Zt = "eWallet", qt = "Virtual IBAN";
|
|
2
2
|
export {
|
|
3
3
|
S as ARROW_ICON,
|
|
4
4
|
q as AVALANCHE_NETWORK,
|