everest-npm-features 0.0.37 → 0.0.38
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-KBDRjTbR.js → PlayArrow-C6lnbwD4.js} +1 -1
- package/dist/{auth-BQ4bZOAL.js → auth-BMzyEvqd.js} +1 -1
- package/dist/bank-Bp23LpvN.js +30 -0
- package/dist/components/RocketRamp/MinimalKyc/form.js +2 -2
- 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 +5 -5
- 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/edd.js +2 -2
- package/dist/components/Shared/FullKyc/index.js +3 -3
- package/dist/components/Shared/FullKyc/pep.js +1 -1
- package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
- package/dist/components/Shared/FullKyc/userInfo.js +3 -3
- package/dist/components/Shared/Incode/index.js +10 -10
- package/dist/components/Shared/MinimalKyc/index.js +2 -2
- package/dist/components/Wallet/Account/createIban.d.ts +2 -0
- package/dist/components/Wallet/Account/createIban.js +165 -104
- package/dist/components/Wallet/Account/iban.js +71 -208
- package/dist/components/Wallet/Account/ibanItem.d.ts +15 -0
- package/dist/components/Wallet/Account/ibanItem.js +164 -0
- package/dist/components/Wallet/Account/index.js +136 -128
- package/dist/components/Wallet/Account/sendIban.d.ts +4 -1
- package/dist/components/Wallet/Account/sendIban.js +211 -140
- package/dist/components/Wallet/Buy/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Buy/form.js +4 -4
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/edd.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/index.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
- package/dist/components/Wallet/History/index.js +2 -2
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +8 -8
- package/dist/components/Wallet/Portfolio/index.js +3 -3
- package/dist/components/Wallet/Profile/documents.js +2 -2
- package/dist/components/Wallet/Profile/index.js +9 -9
- package/dist/components/Wallet/Receive/index.js +2 -2
- package/dist/components/Wallet/Sell/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Sell/form.js +4 -4
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +12 -12
- package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
- package/dist/components/Wallet/Shared/addBank.js +2 -2
- package/dist/components/Wallet/Shared/connectPlaidBank.js +2 -2
- package/dist/components/Wallet/Shared/manualSend.js +3 -3
- package/dist/components/Wallet/SignIn/index.js +2 -2
- package/dist/components/Wallet/SignUp/index.js +2 -2
- package/dist/components/Wallet/Stake/index.js +3 -3
- package/dist/components/Wallet/Swap/form.js +5 -5
- package/dist/components/Wallet/Swap/index.js +5 -5
- package/dist/components/Wallet/Withdraw/bankSelect.js +4 -4
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Withdraw/form.js +4 -4
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-rDP6jwIs.js → constants-9grj4Du1.js} +67 -69
- package/dist/{cryptoAssets-BXjfidU4.js → cryptoAssets-Cf7xMoh9.js} +1 -1
- package/dist/{documents-CF1bpppV.js → documents-vj042AkQ.js} +25 -25
- package/dist/hooks/useDialog/index.js +45 -38
- package/dist/hooks/useDialog/types.d.ts +4 -1
- package/dist/{index-B9MyZ0sJ.js → index-BFKBLYk5.js} +13 -13
- package/dist/{index-aLtOG-sf.js → index-BXj7Wdol.js} +5 -5
- package/dist/{index-Btrmgb1g.js → index-CKEqyTf9.js} +76 -76
- package/dist/{index-PitHP3ul.js → index-CUhPCwCD.js} +5 -5
- package/dist/{index-JY7R8k4h.js → index-Cf_gfO-E.js} +4 -4
- package/dist/{index-CdfFs6U2.js → index-DrAXokdP.js} +16 -16
- package/dist/{index-0PiVFV1G.js → index-grkjwLQL.js} +6 -6
- package/dist/{kyc-ChoR-OWg.js → kyc-MeOwOyUF.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/{order-CTEvMHv4.js → order-Cs5_3wOs.js} +1 -1
- package/dist/{stake-nzM9DW-r.js → stake-ClJWsrHb.js} +1 -1
- package/dist/{wallet-DZ3-OqYH.js → wallet-nsVuNagB.js} +1 -1
- package/package.json +2 -2
- package/dist/bank-Bz7oos87.js +0 -34
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as y, Fragment as te, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as r, useEffect as
|
|
2
|
+
import { useState as r, useEffect as F, useRef as ge } from "react";
|
|
3
3
|
import { AuthContainer as Ce } from "./components/Wallet/Shared/Container/index.js";
|
|
4
4
|
import ye from "./components/Shared/Incode/index.js";
|
|
5
5
|
import Se from "./hoc/withThemeProvider.js";
|
|
@@ -7,8 +7,8 @@ import ce from "./components/Wallet/Shared/Input/index.js";
|
|
|
7
7
|
import de from "./components/Wallet/Shared/appButton.js";
|
|
8
8
|
import { u as ue, a as J } from "./react-redux-B4BZippc.js";
|
|
9
9
|
import "./components/Wallet/Shared/Auth/otpForm.js";
|
|
10
|
-
import { d as v, f as be } from "./constants-
|
|
11
|
-
import { b as ve, c as xe } from "./kyc-
|
|
10
|
+
import { d as v, f as be } from "./constants-9grj4Du1.js";
|
|
11
|
+
import { b as ve, c as xe } from "./kyc-MeOwOyUF.js";
|
|
12
12
|
import { useSnackBarContext as pe } from "./context/snackBarContext.js";
|
|
13
13
|
import "./util/conversions.js";
|
|
14
14
|
import "./index-CAoLi5Qq.js";
|
|
@@ -38,39 +38,39 @@ const Be = ({
|
|
|
38
38
|
inputComponent: f,
|
|
39
39
|
buttonComponent: R,
|
|
40
40
|
setUserInfo: x,
|
|
41
|
-
userInfo:
|
|
42
|
-
docData:
|
|
41
|
+
userInfo: i,
|
|
42
|
+
docData: n,
|
|
43
43
|
setScreen: h,
|
|
44
44
|
userEmail: g,
|
|
45
45
|
kycFlow: p
|
|
46
46
|
}) => {
|
|
47
|
-
const
|
|
47
|
+
const l = ue();
|
|
48
48
|
_e();
|
|
49
|
-
const { showAlertMessage: u } = pe(),
|
|
50
|
-
|
|
49
|
+
const { showAlertMessage: u } = pe(), a = f ?? ce, D = R ?? de, [c, _] = r(i.gender || ""), [m, N] = r(!1), [P, C] = r(i.email || ""), [Y, Z] = r(!1), [K, z] = r(""), [d, I] = r(i.address || ""), [t, O] = r(i.city || ""), [S, M] = r(i.state || ""), [b, A] = r(i.zipCode || ""), [B, q] = r(
|
|
50
|
+
i.country || null
|
|
51
51
|
), [s, X] = r(!1);
|
|
52
|
-
|
|
52
|
+
F(() => {
|
|
53
53
|
g && (C(g), Z(!0));
|
|
54
|
-
}, [g]),
|
|
54
|
+
}, [g]), F(() => {
|
|
55
55
|
var o;
|
|
56
|
-
if (
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
(E) => E.alpha3 ===
|
|
56
|
+
if (n != null && n.issuingCountry) {
|
|
57
|
+
n.gender && (_(n.gender), N(!0));
|
|
58
|
+
const L = De.find(
|
|
59
|
+
(E) => E.alpha3 === n.issuingCountry
|
|
60
60
|
);
|
|
61
|
-
x({ ...
|
|
62
|
-
const
|
|
63
|
-
|
|
61
|
+
x({ ...i, country: L, nationality: L });
|
|
62
|
+
const T = new Date(n.birthDate), $ = T.getTimezoneOffset() * 6e4, W = new Date(
|
|
63
|
+
T.getTime() + $
|
|
64
64
|
);
|
|
65
|
-
if (
|
|
66
|
-
const E =
|
|
67
|
-
X(!0), I(E.street), O(E.city), M(E.state),
|
|
65
|
+
if (z(W.toLocaleDateString("en-US")), (o = n.checkedAddressBean) != null && o.street) {
|
|
66
|
+
const E = n.checkedAddressBean;
|
|
67
|
+
X(!0), I(E.street), O(E.city), M(E.state), A(E.postalCode);
|
|
68
68
|
}
|
|
69
69
|
} else
|
|
70
70
|
U();
|
|
71
71
|
}, []);
|
|
72
72
|
const U = () => {
|
|
73
|
-
|
|
73
|
+
l(ve());
|
|
74
74
|
};
|
|
75
75
|
return /* @__PURE__ */ y(te, { children: [
|
|
76
76
|
p !== v && /* @__PURE__ */ e(w, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ e(me, { totalSteps: 4, currentStep: 2 }) }),
|
|
@@ -79,11 +79,11 @@ const Be = ({
|
|
|
79
79
|
p !== v && /* @__PURE__ */ y(te, { children: [
|
|
80
80
|
/* @__PURE__ */ e(j, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
|
|
81
81
|
/* @__PURE__ */ e(
|
|
82
|
-
|
|
82
|
+
a,
|
|
83
83
|
{
|
|
84
84
|
sx: { mt: 3 },
|
|
85
85
|
label: "Date of Birth",
|
|
86
|
-
value:
|
|
86
|
+
value: K,
|
|
87
87
|
disabled: !0,
|
|
88
88
|
required: !0
|
|
89
89
|
}
|
|
@@ -107,7 +107,7 @@ const Be = ({
|
|
|
107
107
|
)
|
|
108
108
|
] }),
|
|
109
109
|
/* @__PURE__ */ e(
|
|
110
|
-
|
|
110
|
+
a,
|
|
111
111
|
{
|
|
112
112
|
sx: { mt: 3 },
|
|
113
113
|
label: "Email",
|
|
@@ -119,7 +119,7 @@ const Be = ({
|
|
|
119
119
|
)
|
|
120
120
|
] }),
|
|
121
121
|
/* @__PURE__ */ e(
|
|
122
|
-
|
|
122
|
+
a,
|
|
123
123
|
{
|
|
124
124
|
sx: { mt: 3 },
|
|
125
125
|
label: "Home Address",
|
|
@@ -131,7 +131,7 @@ const Be = ({
|
|
|
131
131
|
),
|
|
132
132
|
/* @__PURE__ */ y(V, { container: !0, spacing: 2, sx: { mt: 3 }, children: [
|
|
133
133
|
/* @__PURE__ */ e(V, { size: 6, children: /* @__PURE__ */ e(
|
|
134
|
-
|
|
134
|
+
a,
|
|
135
135
|
{
|
|
136
136
|
label: "City",
|
|
137
137
|
value: t,
|
|
@@ -141,7 +141,7 @@ const Be = ({
|
|
|
141
141
|
}
|
|
142
142
|
) }),
|
|
143
143
|
/* @__PURE__ */ e(V, { size: 6, children: /* @__PURE__ */ e(
|
|
144
|
-
|
|
144
|
+
a,
|
|
145
145
|
{
|
|
146
146
|
label: "State",
|
|
147
147
|
value: S,
|
|
@@ -150,12 +150,12 @@ const Be = ({
|
|
|
150
150
|
) })
|
|
151
151
|
] }),
|
|
152
152
|
/* @__PURE__ */ e(
|
|
153
|
-
|
|
153
|
+
a,
|
|
154
154
|
{
|
|
155
155
|
sx: { mt: 3 },
|
|
156
156
|
label: "Zipcode",
|
|
157
157
|
value: b,
|
|
158
|
-
onChange: (o) =>
|
|
158
|
+
onChange: (o) => A(o.target.value),
|
|
159
159
|
disabled: !!(s && b),
|
|
160
160
|
required: !0
|
|
161
161
|
}
|
|
@@ -163,7 +163,7 @@ const Be = ({
|
|
|
163
163
|
/* @__PURE__ */ e(
|
|
164
164
|
re,
|
|
165
165
|
{
|
|
166
|
-
value:
|
|
166
|
+
value: B,
|
|
167
167
|
onChange: q,
|
|
168
168
|
label: "Country of residence"
|
|
169
169
|
}
|
|
@@ -176,7 +176,7 @@ const Be = ({
|
|
|
176
176
|
variant: "contained",
|
|
177
177
|
onClick: () => {
|
|
178
178
|
if (p !== v) {
|
|
179
|
-
if (!
|
|
179
|
+
if (!K)
|
|
180
180
|
return u({ message: "Please provide date of birth" });
|
|
181
181
|
if (!c)
|
|
182
182
|
return u({ message: "Please provide gender" });
|
|
@@ -186,24 +186,24 @@ const Be = ({
|
|
|
186
186
|
if (!t) return u({ message: "Please provide city" });
|
|
187
187
|
if (!b)
|
|
188
188
|
return u({ message: "Please provide zip code" });
|
|
189
|
-
if (!
|
|
189
|
+
if (!B)
|
|
190
190
|
return u({
|
|
191
191
|
message: "Please select country of residency"
|
|
192
192
|
});
|
|
193
193
|
x({
|
|
194
|
-
...
|
|
194
|
+
...i,
|
|
195
195
|
gender: c,
|
|
196
196
|
email: P,
|
|
197
197
|
address: d,
|
|
198
198
|
city: t,
|
|
199
199
|
state: S,
|
|
200
200
|
zipCode: b,
|
|
201
|
-
country:
|
|
201
|
+
country: B
|
|
202
202
|
}), h(
|
|
203
203
|
p !== v ? se : oe
|
|
204
204
|
);
|
|
205
205
|
},
|
|
206
|
-
disabled: p !== v && !P || p !== v && !c || !d || !
|
|
206
|
+
disabled: p !== v && !P || p !== v && !c || !d || !B,
|
|
207
207
|
fullWidth: !0,
|
|
208
208
|
children: /* @__PURE__ */ e("strong", { children: "Next" })
|
|
209
209
|
}
|
|
@@ -213,12 +213,12 @@ const Be = ({
|
|
|
213
213
|
userInfo: f,
|
|
214
214
|
setUserInfo: R,
|
|
215
215
|
setScreen: x,
|
|
216
|
-
inputComponent:
|
|
217
|
-
buttonComponent:
|
|
216
|
+
inputComponent: i,
|
|
217
|
+
buttonComponent: n
|
|
218
218
|
}) => {
|
|
219
|
-
const { showAlertMessage: h } = pe(), g =
|
|
219
|
+
const { showAlertMessage: h } = pe(), g = i ?? ce, p = n ?? de, [l, u] = r(
|
|
220
220
|
f.placeOfBirth || null
|
|
221
|
-
), [
|
|
221
|
+
), [a, D] = r(
|
|
222
222
|
f.nationality || null
|
|
223
223
|
), [c, _] = r(f.occupation || ""), [m, N] = r(f.employer || "");
|
|
224
224
|
return /* @__PURE__ */ y(te, { children: [
|
|
@@ -229,7 +229,7 @@ const Be = ({
|
|
|
229
229
|
/* @__PURE__ */ e(
|
|
230
230
|
re,
|
|
231
231
|
{
|
|
232
|
-
value:
|
|
232
|
+
value: l,
|
|
233
233
|
onChange: u,
|
|
234
234
|
label: "Place Of Birth"
|
|
235
235
|
}
|
|
@@ -237,7 +237,7 @@ const Be = ({
|
|
|
237
237
|
/* @__PURE__ */ e(
|
|
238
238
|
re,
|
|
239
239
|
{
|
|
240
|
-
value:
|
|
240
|
+
value: a,
|
|
241
241
|
onChange: D,
|
|
242
242
|
label: "Country of citizenship"
|
|
243
243
|
}
|
|
@@ -267,11 +267,11 @@ const Be = ({
|
|
|
267
267
|
sx: { mt: 3 },
|
|
268
268
|
variant: "contained",
|
|
269
269
|
onClick: () => {
|
|
270
|
-
if (!
|
|
270
|
+
if (!l) {
|
|
271
271
|
h({ message: "Please select place of birth" });
|
|
272
272
|
return;
|
|
273
273
|
}
|
|
274
|
-
if (!
|
|
274
|
+
if (!a) {
|
|
275
275
|
h({ message: "Please provide address" });
|
|
276
276
|
return;
|
|
277
277
|
}
|
|
@@ -281,13 +281,13 @@ const Be = ({
|
|
|
281
281
|
}
|
|
282
282
|
R({
|
|
283
283
|
...f,
|
|
284
|
-
placeOfBirth:
|
|
285
|
-
nationality:
|
|
284
|
+
placeOfBirth: l,
|
|
285
|
+
nationality: a,
|
|
286
286
|
occupation: c,
|
|
287
287
|
employer: m
|
|
288
288
|
}), x(oe);
|
|
289
289
|
},
|
|
290
|
-
disabled: !
|
|
290
|
+
disabled: !l || !a || !c || !m,
|
|
291
291
|
fullWidth: !0,
|
|
292
292
|
children: /* @__PURE__ */ e("strong", { children: "Next" })
|
|
293
293
|
}
|
|
@@ -313,23 +313,23 @@ const Be = ({
|
|
|
313
313
|
configurationId: f,
|
|
314
314
|
incodeApiKey: R,
|
|
315
315
|
incodeApiUrl: x,
|
|
316
|
-
incodeOnBoardingUrl:
|
|
317
|
-
withContainer:
|
|
316
|
+
incodeOnBoardingUrl: i,
|
|
317
|
+
withContainer: n = !1,
|
|
318
318
|
successHandler: h,
|
|
319
319
|
updateScreen: g,
|
|
320
320
|
isModalView: p = !1,
|
|
321
|
-
kycFlow:
|
|
321
|
+
kycFlow: l
|
|
322
322
|
}) => {
|
|
323
|
-
const u = ge(!0),
|
|
324
|
-
|
|
323
|
+
const u = ge(!0), a = ue(), D = J((s) => s.user), c = J((s) => s.user.kyc), _ = J((s) => s.session.uuid), m = D.kyc, N = m.processComplete, P = {}, [C, Y] = r(P), [Z, K] = r({ token: "" }), [z, d] = r(
|
|
324
|
+
l === v ? k : ee
|
|
325
325
|
);
|
|
326
|
-
|
|
326
|
+
F(() => {
|
|
327
327
|
if (u.current) {
|
|
328
328
|
u.current = !1;
|
|
329
329
|
return;
|
|
330
330
|
}
|
|
331
331
|
let s;
|
|
332
|
-
switch (
|
|
332
|
+
switch (z) {
|
|
333
333
|
case k:
|
|
334
334
|
s = ee;
|
|
335
335
|
break;
|
|
@@ -343,9 +343,9 @@ const Be = ({
|
|
|
343
343
|
s = ee;
|
|
344
344
|
}
|
|
345
345
|
d(s);
|
|
346
|
-
}, [g]),
|
|
346
|
+
}, [g]), F(() => {
|
|
347
347
|
h && N && h();
|
|
348
|
-
}, [h, N])
|
|
348
|
+
}, [h, N]);
|
|
349
349
|
const I = {
|
|
350
350
|
gender: "",
|
|
351
351
|
email: "",
|
|
@@ -365,11 +365,11 @@ const Be = ({
|
|
|
365
365
|
reason: "",
|
|
366
366
|
source: ""
|
|
367
367
|
}, [t, O] = r(I), [S, M] = r(Fe);
|
|
368
|
-
|
|
368
|
+
F(() => {
|
|
369
369
|
S.BANK_STATEMENT.file.length > 0 && b(S);
|
|
370
370
|
}, [S]);
|
|
371
371
|
const b = (s) => {
|
|
372
|
-
|
|
372
|
+
A(
|
|
373
373
|
t.isPoliticalExpose,
|
|
374
374
|
t.politicalExpose,
|
|
375
375
|
t.frequency,
|
|
@@ -379,9 +379,9 @@ const Be = ({
|
|
|
379
379
|
s,
|
|
380
380
|
!0
|
|
381
381
|
);
|
|
382
|
-
},
|
|
383
|
-
var W, E,
|
|
384
|
-
if (
|
|
382
|
+
}, A = (s, X, U, H, o, L, T, $ = !1) => {
|
|
383
|
+
var W, E, ie;
|
|
384
|
+
if (l !== be && !$) {
|
|
385
385
|
d(Te);
|
|
386
386
|
return;
|
|
387
387
|
}
|
|
@@ -398,18 +398,18 @@ const Be = ({
|
|
|
398
398
|
frequency: U,
|
|
399
399
|
reason: H,
|
|
400
400
|
source: o,
|
|
401
|
-
originFunds:
|
|
401
|
+
originFunds: L
|
|
402
402
|
}, Ee = {
|
|
403
403
|
frequency: U,
|
|
404
404
|
reason: H,
|
|
405
405
|
source: o,
|
|
406
|
-
originFunds:
|
|
407
|
-
},
|
|
408
|
-
kycFlow:
|
|
406
|
+
originFunds: L
|
|
407
|
+
}, ne = {
|
|
408
|
+
kycFlow: l,
|
|
409
409
|
email: t.email,
|
|
410
410
|
gender: t.gender,
|
|
411
411
|
birthPlace: (E = t.placeOfBirth) == null ? void 0 : E.alpha3,
|
|
412
|
-
nationality: (
|
|
412
|
+
nationality: (ie = t.nationality) == null ? void 0 : ie.alpha3,
|
|
413
413
|
occupation: t.occupation,
|
|
414
414
|
employer: t.employer,
|
|
415
415
|
residentialAddress: fe,
|
|
@@ -419,14 +419,14 @@ const Be = ({
|
|
|
419
419
|
token: Z.token
|
|
420
420
|
}
|
|
421
421
|
};
|
|
422
|
-
if (
|
|
423
|
-
const ae = Object.entries(
|
|
422
|
+
if (T) {
|
|
423
|
+
const ae = Object.entries(T).filter(([le, G]) => G.file && G.file.length > 0).map(([le, G]) => ({
|
|
424
424
|
file: G.file[0],
|
|
425
425
|
type: le
|
|
426
426
|
}));
|
|
427
|
-
ae.length > 0 && (
|
|
427
|
+
ae.length > 0 && (ne.eddDocuments = ae);
|
|
428
428
|
}
|
|
429
|
-
|
|
429
|
+
a(xe(ne));
|
|
430
430
|
}
|
|
431
431
|
}, q = {
|
|
432
432
|
INCODE_SCREEN: /* @__PURE__ */ e(
|
|
@@ -439,9 +439,9 @@ const Be = ({
|
|
|
439
439
|
configurationId: f,
|
|
440
440
|
apiKey: R,
|
|
441
441
|
apiUrl: x,
|
|
442
|
-
onBoardingUrl:
|
|
442
|
+
onBoardingUrl: i,
|
|
443
443
|
setDocumentsData: Y,
|
|
444
|
-
setIncodeSessionData:
|
|
444
|
+
setIncodeSessionData: K,
|
|
445
445
|
isModalView: p
|
|
446
446
|
}
|
|
447
447
|
),
|
|
@@ -453,7 +453,7 @@ const Be = ({
|
|
|
453
453
|
setUserInfo: O,
|
|
454
454
|
userInfo: t,
|
|
455
455
|
userEmail: D.profile.email,
|
|
456
|
-
kycFlow:
|
|
456
|
+
kycFlow: l
|
|
457
457
|
}
|
|
458
458
|
),
|
|
459
459
|
PERSONAL_DETAILS_SCREEN: /* @__PURE__ */ e(
|
|
@@ -470,9 +470,9 @@ const Be = ({
|
|
|
470
470
|
setScreen: d,
|
|
471
471
|
setUserInfo: O,
|
|
472
472
|
userInfo: t,
|
|
473
|
-
processKyc:
|
|
473
|
+
processKyc: A,
|
|
474
474
|
processLoader: m.loader,
|
|
475
|
-
kycFlow:
|
|
475
|
+
kycFlow: l
|
|
476
476
|
}
|
|
477
477
|
),
|
|
478
478
|
EDD_SCREEN: /* @__PURE__ */ e(
|
|
@@ -485,8 +485,8 @@ const Be = ({
|
|
|
485
485
|
processLoader: m.loader
|
|
486
486
|
}
|
|
487
487
|
)
|
|
488
|
-
}[
|
|
489
|
-
return
|
|
488
|
+
}[z];
|
|
489
|
+
return n ? /* @__PURE__ */ e(Ce, { addPadding: !1, children: q }) : q;
|
|
490
490
|
}, Ct = Se(Ke);
|
|
491
491
|
export {
|
|
492
492
|
Te as E,
|
|
@@ -5,18 +5,18 @@ import de from "./components/Wallet/Shared/backBtn.js";
|
|
|
5
5
|
import { DIALOG_SUCCESS_ICON as Se, PAYMENT_BANK as J, SEPA_ICON as Re, VISA_ICON as Te, RADIO_BUTTON_SELECTED as ze, RADIO_BUTTON as Ie, PAYMENT_PROVIDER_PAYSAFE as Be, FIAT_WITHDRAW as ee, EURO_ISO3 as Oe, US_DOLLAR_ISO3 as ce, SYNTHETIC_EUR as We, SYNTHETIC_USD as we } from "./util/constants.js";
|
|
6
6
|
import { s as d } from "./styles.module-CHEBh2ID.js";
|
|
7
7
|
import ne from "./components/Wallet/Shared/appButton.js";
|
|
8
|
-
import {
|
|
8
|
+
import { an as G } from "./constants-9grj4Du1.js";
|
|
9
9
|
import { a as pe } from "./index-FwnHkXdK.js";
|
|
10
|
-
import { b as te, e as ue, f as Pe, i as Me, d as Le, g as Ye } from "./order-
|
|
10
|
+
import { b as te, e as ue, f as Pe, i as Me, d as Le, g as Ye } from "./order-Cs5_3wOs.js";
|
|
11
11
|
import { a as $, u as fe } from "./react-redux-B4BZippc.js";
|
|
12
|
-
import { P as qe, f as Ue } from "./PlayArrow-
|
|
13
|
-
import { h as Ke, u as $e } from "./wallet-
|
|
12
|
+
import { P as qe, f as Ue } from "./PlayArrow-C6lnbwD4.js";
|
|
13
|
+
import { h as Ke, u as $e } from "./wallet-nsVuNagB.js";
|
|
14
14
|
import { useSnackBarContext as He } from "./context/snackBarContext.js";
|
|
15
15
|
import { AuthContainer as je } from "./components/Wallet/Shared/Container/index.js";
|
|
16
16
|
import Ge from "./components/Shared/MinimalKyc/index.js";
|
|
17
17
|
import De from "./components/Wallet/Shared/Input/index.js";
|
|
18
18
|
import Ve from "./components/Wallet/Shared/addBank.js";
|
|
19
|
-
import {
|
|
19
|
+
import { u as Xe } from "./bank-Bp23LpvN.js";
|
|
20
20
|
import Je from "./components/Wallet/Shared/connectPlaidBank.js";
|
|
21
21
|
import { B as C } from "./Box-B0YSYLco.js";
|
|
22
22
|
import { C as F } from "./CircularProgress-xZA3lvba.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as a, Fragment as F, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as c, useEffect as g } from "react";
|
|
3
3
|
import Oe from "./hoc/withThemeProvider.js";
|
|
4
|
-
import { P as we, f as Be } from "./PlayArrow-
|
|
4
|
+
import { P as we, f as Be } from "./PlayArrow-C6lnbwD4.js";
|
|
5
5
|
import { I as Le } from "./Info-BVeUSPyk.js";
|
|
6
6
|
import { G as Ve } from "./generic-token-B_ptO5yb.js";
|
|
7
7
|
import ne from "./components/RocketRamp/Shared/Input/index.js";
|
|
8
8
|
import { ID_TOKEN_SYMBOL as pe, FIAT_TO_EVER_ID as ae, FIAT_TO_TOKEN as ie, ESTIMATE_TOOLTIP_TEXT as Ye, VISA_PAYMENT as We, VISA_PAYMENT_ACTIVE as Ke, SEPA_PAYMENT as qe, SEPA_PAYMENT_ACTIVE as $e, PAYMENT_BANK as he, SEPA_ICON as De, VISA_ICON as be, PAYMENT_PROVIDER_CHECKOUT as fe } from "./util/constants.js";
|
|
9
|
-
import {
|
|
10
|
-
import { d as Ge, e as Ce, f as je, h as He, g as ye } from "./order-
|
|
9
|
+
import { aB as Ue, am as te } from "./constants-9grj4Du1.js";
|
|
10
|
+
import { d as Ge, e as Ce, f as je, h as He, g as ye } from "./order-Cs5_3wOs.js";
|
|
11
11
|
import { M as Xe } from "./tooltip-3UvETWtS.js";
|
|
12
12
|
import { getCurrencySymbol as Ne, removeExtraSpace as Qe, getOrionBalance as Je } from "./util/functions.js";
|
|
13
13
|
import oe from "./components/RocketRamp/Shared/Button/index.js";
|
|
@@ -19,7 +19,7 @@ import { C as I } from "./CircularProgress-xZA3lvba.js";
|
|
|
19
19
|
import { E as Ze } from "./ErrorOutline-CPQcnl2b.js";
|
|
20
20
|
import { s as xe, p as et, h as tt, v as rt } from "./index-ceeCtFuh.js";
|
|
21
21
|
import { u as nt, a as q } from "./react-redux-B4BZippc.js";
|
|
22
|
-
import { f as at } from "./cryptoAssets-
|
|
22
|
+
import { f as at } from "./cryptoAssets-Cf7xMoh9.js";
|
|
23
23
|
import it from "./components/RocketRamp/MinimalKyc/form.js";
|
|
24
24
|
import { useSnackBarContext as ot } from "./context/snackBarContext.js";
|
|
25
25
|
import { I as st } from "./TextField-DPpRUQe3.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as n, Fragment as E, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as et, useState as h, useEffect as x, useRef as tt } from "react";
|
|
3
3
|
import rt from "./hoc/withThemeProvider.js";
|
|
4
|
-
import { P as nt, f as ot } from "./PlayArrow-
|
|
4
|
+
import { P as nt, f as ot } from "./PlayArrow-C6lnbwD4.js";
|
|
5
5
|
import { I as it } from "./Info-BVeUSPyk.js";
|
|
6
6
|
import { G as me } from "./generic-token-B_ptO5yb.js";
|
|
7
7
|
import { TOKEN_TO_FIAT as de, ESTIMATE_TOOLTIP_TEXT as st, SELL_WITHDRAW_ICON as at, DIALOG_SUCCESS_ICON as Re, DIALOG_ERROR_ICON as lt } from "./util/constants.js";
|
|
8
|
-
import {
|
|
8
|
+
import { ao as R, aa as ct } from "./constants-9grj4Du1.js";
|
|
9
9
|
import { c as ze, d as mt } from "./index-FwnHkXdK.js";
|
|
10
|
-
import { d as dt, e as We, b as X, c as Ee, f as ut, j as pt, g as ht } from "./order-
|
|
10
|
+
import { d as dt, e as We, b as X, c as Ee, f as ut, j as pt, g as ht } from "./order-Cs5_3wOs.js";
|
|
11
11
|
import { M as ft } from "./tooltip-3UvETWtS.js";
|
|
12
12
|
import { getCurrencySymbol as Me, getNetworkBackGround as xt, displayWalletAddress as yt } from "./util/functions.js";
|
|
13
13
|
import gt from "./components/Wallet/Shared/backBtn.js";
|
|
@@ -31,8 +31,8 @@ import { T as i } from "./Typography-pAaje37G.js";
|
|
|
31
31
|
import { B as T } from "./Box-B0YSYLco.js";
|
|
32
32
|
import { G as r } from "./Grid-CFe3amXO.js";
|
|
33
33
|
import { C as I } from "./CircularProgress-xZA3lvba.js";
|
|
34
|
-
import { f as Ct } from "./cryptoAssets-
|
|
35
|
-
import { u as Nt, a as vt } from "./wallet-
|
|
34
|
+
import { f as Ct } from "./cryptoAssets-Cf7xMoh9.js";
|
|
35
|
+
import { u as Nt, a as vt } from "./wallet-nsVuNagB.js";
|
|
36
36
|
import { AuthContainer as kt } from "./components/Wallet/Shared/Container/index.js";
|
|
37
37
|
import St from "./components/Shared/MinimalKyc/index.js";
|
|
38
38
|
import Be from "./components/Wallet/Shared/Input/index.js";
|
|
@@ -70,7 +70,7 @@ const Ft = ({
|
|
|
70
70
|
(s) => s.address.toLowerCase() === t.address.toLowerCase()
|
|
71
71
|
)
|
|
72
72
|
)
|
|
73
|
-
], [F, w]), $ = u.fiats, he = u.loader, B = f.featureTokens.sell.list, _ = f.featureTokens.sell.default, fe = f.loader, Z = d.loader, C = d.estimate[R], W = C.fiat_out_amount, $e = C.conversion_price,
|
|
73
|
+
], [F, w]), $ = u.fiats, he = u.loader, B = f.featureTokens.sell.list, _ = f.featureTokens.sell.default, fe = f.loader, Z = d.loader, C = d.estimate[R], W = C.fiat_out_amount, $e = C.conversion_price, Ue = C.total_fee;
|
|
74
74
|
let xe = 0, ye = 0;
|
|
75
75
|
const ge = C.fee_breakdown;
|
|
76
76
|
for (let t = 0; t < ge.length; t++) {
|
|
@@ -79,7 +79,7 @@ const Ft = ({
|
|
|
79
79
|
}
|
|
80
80
|
const [a, be] = h({
|
|
81
81
|
symbol: ""
|
|
82
|
-
}), [ne, oe] = h(!1), [P,
|
|
82
|
+
}), [ne, oe] = h(!1), [P, qe] = h(2), [Ye, De] = h([]), [_e, Ge] = h(!1), [j, He] = h(50), [ie, Ke] = h(3e3), [Ce, se] = h(""), [U, ae] = h(C.crypto_amount || "0.05"), [je, Ne] = h(!1), ee = Number((ke = C == null ? void 0 : C.input_token) == null ? void 0 : ke.fiat_amount), q = $.find((t) => t.id === P), M = Me(q == null ? void 0 : q.symbol);
|
|
83
83
|
x(() => {
|
|
84
84
|
const t = [];
|
|
85
85
|
for (let s = 0; s < $.length; s++) {
|
|
@@ -98,14 +98,14 @@ const Ft = ({
|
|
|
98
98
|
}, [W]), x(() => {
|
|
99
99
|
P && S && S(P);
|
|
100
100
|
}, [P, p]), x(() => {
|
|
101
|
-
if (a && a.id &&
|
|
101
|
+
if (a && a.id && U && P) {
|
|
102
102
|
c(dt(R)), oe(!1), se("");
|
|
103
103
|
const t = setTimeout(() => {
|
|
104
104
|
Qe();
|
|
105
105
|
}, 1e3);
|
|
106
106
|
return () => clearTimeout(t);
|
|
107
107
|
}
|
|
108
|
-
}, [a,
|
|
108
|
+
}, [a, U, B, P]);
|
|
109
109
|
const Qe = () => {
|
|
110
110
|
var t;
|
|
111
111
|
c(
|
|
@@ -113,9 +113,9 @@ const Ft = ({
|
|
|
113
113
|
{
|
|
114
114
|
apiKey: z,
|
|
115
115
|
transaction_type: de,
|
|
116
|
-
coin_amount:
|
|
116
|
+
coin_amount: U,
|
|
117
117
|
exchange: a.exchange,
|
|
118
|
-
fiat_ccy:
|
|
118
|
+
fiat_ccy: q == null ? void 0 : q.symbol,
|
|
119
119
|
crypto_ccy: a.symbol,
|
|
120
120
|
network: (t = a.network) == null ? void 0 : t.name
|
|
121
121
|
},
|
|
@@ -143,7 +143,7 @@ const Ft = ({
|
|
|
143
143
|
}, Xe = () => {
|
|
144
144
|
if (!a.id)
|
|
145
145
|
return y({ message: "Please select token" }), !1;
|
|
146
|
-
if (!
|
|
146
|
+
if (!U)
|
|
147
147
|
return y({ message: "Please enter amount" }), !1;
|
|
148
148
|
if (!W)
|
|
149
149
|
return y({
|
|
@@ -157,7 +157,7 @@ const Ft = ({
|
|
|
157
157
|
return y({
|
|
158
158
|
message: "The input amount of this transaction is above our maximum, please try a lower transaction amount"
|
|
159
159
|
}), !1;
|
|
160
|
-
if (a.fmt_balance && +
|
|
160
|
+
if (a.fmt_balance && +U > parseFloat(a.fmt_balance))
|
|
161
161
|
return y({
|
|
162
162
|
message: "Insufficient Funds. Please provide amount less or equal to available balance"
|
|
163
163
|
}), !1;
|
|
@@ -212,7 +212,7 @@ const Ft = ({
|
|
|
212
212
|
/* @__PURE__ */ e(
|
|
213
213
|
te,
|
|
214
214
|
{
|
|
215
|
-
value:
|
|
215
|
+
value: U,
|
|
216
216
|
onChange: Ve,
|
|
217
217
|
type: "text",
|
|
218
218
|
placeholder: `${j > 0 ? M + j + " minimum value" : ""}`,
|
|
@@ -360,7 +360,7 @@ const Ft = ({
|
|
|
360
360
|
value: P,
|
|
361
361
|
variant: "filled",
|
|
362
362
|
displayEmpty: !0,
|
|
363
|
-
onChange: (t) =>
|
|
363
|
+
onChange: (t) => qe(t.target.value),
|
|
364
364
|
error: ne,
|
|
365
365
|
children: Ye.map((t) => /* @__PURE__ */ n(re, { value: t.id, children: [
|
|
366
366
|
/* @__PURE__ */ e(Ie, { className: l["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
@@ -433,7 +433,7 @@ const Ft = ({
|
|
|
433
433
|
/* @__PURE__ */ e(r, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Total Fees" }) }),
|
|
434
434
|
/* @__PURE__ */ e(r, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ n(i, { variant: "caption", children: [
|
|
435
435
|
M,
|
|
436
|
-
Z ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(
|
|
436
|
+
Z ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(Ue).toFixed(2)
|
|
437
437
|
] }) }),
|
|
438
438
|
a && /* @__PURE__ */ n(E, { children: [
|
|
439
439
|
/* @__PURE__ */ e(r, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ n(i, { variant: "caption", children: [
|
|
@@ -2,16 +2,16 @@ import { jsxs as a, Fragment as v, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as ye, useMemo as Ve, useState as p, useEffect as h } from "react";
|
|
3
3
|
import Je from "./hoc/withThemeProvider.js";
|
|
4
4
|
import { a as C, u as Ie } from "./react-redux-B4BZippc.js";
|
|
5
|
-
import { P as Qe } from "./PlayArrow-
|
|
5
|
+
import { P as Qe } from "./PlayArrow-C6lnbwD4.js";
|
|
6
6
|
import { I as Ze } from "./Info-BVeUSPyk.js";
|
|
7
7
|
import { G as et } from "./generic-token-B_ptO5yb.js";
|
|
8
8
|
import { getCentralLedgetNetwork as V, getNetworkBackGround as be, getCurrencySymbol as tt } from "./util/functions.js";
|
|
9
9
|
import Ne from "./components/Wallet/Shared/TokenModal/index.js";
|
|
10
10
|
import { formatNumberWithoutRounding as _e } from "./util/conversions.js";
|
|
11
|
-
import {
|
|
11
|
+
import { aa as A } from "./constants-9grj4Du1.js";
|
|
12
12
|
import { c as ot, d as rt } from "./index-FwnHkXdK.js";
|
|
13
|
-
import { f as nt, a as at, b as st } from "./cryptoAssets-
|
|
14
|
-
import { b as Z, c as ve, d as it, e as lt, f as ct, g as mt } from "./order-
|
|
13
|
+
import { f as nt, a as at, b as st } from "./cryptoAssets-Cf7xMoh9.js";
|
|
14
|
+
import { b as Z, c as ve, d as it, e as lt, f as ct, g as mt } from "./order-Cs5_3wOs.js";
|
|
15
15
|
import { DIALOG_SUCCESS_ICON as dt, TOKEN_TO_TOKEN as ee, ARROW_ICON as ut, ESTIMATE_TOOLTIP_TEXT as pt } from "./util/constants.js";
|
|
16
16
|
import { M as ft } from "./tooltip-3UvETWtS.js";
|
|
17
17
|
import Fe from "./components/Wallet/Shared/appButton.js";
|
|
@@ -28,11 +28,11 @@ import "./index-B8QKlEgj.js";
|
|
|
28
28
|
import "./index-ceeCtFuh.js";
|
|
29
29
|
import { s as i } from "./styles.module-CHEBh2ID.js";
|
|
30
30
|
import Ce from "./components/Wallet/Shared/Order/selectCustomIcon.js";
|
|
31
|
-
import { u as xt, a as gt } from "./wallet-
|
|
31
|
+
import { u as xt, a as gt } from "./wallet-nsVuNagB.js";
|
|
32
32
|
import { AuthContainer as yt } from "./components/Wallet/Shared/Container/index.js";
|
|
33
33
|
import bt from "./components/Shared/MinimalKyc/index.js";
|
|
34
34
|
import Nt from "./components/Wallet/Shared/Input/index.js";
|
|
35
|
-
import { M as _t } from "./index-
|
|
35
|
+
import { M as _t } from "./index-DrAXokdP.js";
|
|
36
36
|
import { useDialogContext as vt } from "./context/dialogContext.js";
|
|
37
37
|
import { B as R } from "./Box-B0YSYLco.js";
|
|
38
38
|
import { G as s } from "./Grid-CFe3amXO.js";
|
package/dist/main.js
CHANGED
|
@@ -10,13 +10,13 @@ import { default as k } from "./components/Wallet/Account/index.js";
|
|
|
10
10
|
import { default as y } from "./components/Wallet/Stake/index.js";
|
|
11
11
|
import { default as h } from "./components/Wallet/MoveToEthereumOrEverChain/index.js";
|
|
12
12
|
import { default as B } from "./components/Wallet/SwapAndUniSwap/index.js";
|
|
13
|
-
import { i as P } from "./index-
|
|
14
|
-
import { i as v } from "./index-
|
|
15
|
-
import { i as K } from "./index-
|
|
16
|
-
import { i as A } from "./index-
|
|
13
|
+
import { i as P } from "./index-BXj7Wdol.js";
|
|
14
|
+
import { i as v } from "./index-DrAXokdP.js";
|
|
15
|
+
import { i as K } from "./index-CUhPCwCD.js";
|
|
16
|
+
import { i as A } from "./index-grkjwLQL.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-CKEqyTf9.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";
|
|
@@ -25,8 +25,8 @@ import { default as Y } from "./components/RocketRamp/Player/SignIn/index.js";
|
|
|
25
25
|
import { default as _ } from "./components/RocketRamp/Player/SignUp/index.js";
|
|
26
26
|
import { default as oo } from "./components/RocketRamp/Player/Dashboard/index.js";
|
|
27
27
|
import { default as ao } from "./components/RocketRamp/Transactions/index.js";
|
|
28
|
-
import { i as to } from "./index-
|
|
29
|
-
import { i as po } from "./index-
|
|
28
|
+
import { i as to } from "./index-Cf_gfO-E.js";
|
|
29
|
+
import { i as po } from "./index-BFKBLYk5.js";
|
|
30
30
|
import { default as so } from "./components/RocketRamp/MinimalKyc/index.js";
|
|
31
31
|
import { default as xo } from "./components/RocketRamp/Store/SignUp/index.js";
|
|
32
32
|
import { default as io } from "./components/RocketRamp/Store/Dashboard/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as s, B as t, C as E, D as R, E as o, G as r, H as _, I as p, J as d, M as T, N as y, P as D } from "./constants-
|
|
1
|
+
import { O as s, B as t, C as E, D as R, E as o, G as r, H as _, I as p, J as d, M as T, N as y, P as D } from "./constants-9grj4Du1.js";
|
|
2
2
|
const n = (e) => ({
|
|
3
3
|
type: y,
|
|
4
4
|
payload: e
|