everest-npm-features 0.0.19 → 0.0.20
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/Wallet/Account/iban.js +1 -1
- package/dist/components/Wallet/Account/index.js +22 -22
- package/dist/components/Wallet/Buy/confirmTransaction.js +1 -1
- package/dist/components/Wallet/Buy/form.js +1 -1
- package/dist/components/Wallet/Buy/index.js +1 -1
- package/dist/components/Wallet/Sell/confirmTransaction.js +1 -1
- package/dist/components/Wallet/Sell/form.js +1 -1
- package/dist/components/Wallet/Sell/index.js +1 -1
- package/dist/components/Wallet/Shared/addBank.js +35 -37
- package/dist/components/Wallet/Swap/index.js +1 -1
- package/dist/{iban-DC_VgH01.js → iban-4bMHHpJO.js} +35 -36
- package/dist/{index-DO2BVre7.js → index-98VYd3cT.js} +1 -1
- package/dist/{index-CmBjDnIf.js → index-CTglGXWu.js} +1 -1
- package/dist/main.js +2 -2
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ import "../../../bank-D3I5wL2-.js";
|
|
|
10
10
|
import "../../../tooltip-CwdohO6q.js";
|
|
11
11
|
import "../Shared/noData.js";
|
|
12
12
|
import "../../Shared/transition.js";
|
|
13
|
-
import { I as y } from "../../../iban-
|
|
13
|
+
import { I as y } from "../../../iban-4bMHHpJO.js";
|
|
14
14
|
import "./sendIban.js";
|
|
15
15
|
import "./createIban.js";
|
|
16
16
|
import "../../../context/snackBarContext.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e, Fragment as ee } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { a as te, u as
|
|
2
|
+
import { useState as g, useEffect as h } from "react";
|
|
3
|
+
import { a as te, u as b } from "../../../react-redux-C7I9-1M6.js";
|
|
4
4
|
import "../../../constants-CdVZO8DH.js";
|
|
5
5
|
import { b as ae, u as ne, c as se } from "../../../index-f15o1nhn.js";
|
|
6
6
|
import { u as re, a as oe, b as le, c as ie, d as ce, e as me } from "../../../wallet-D76D_QSY.js";
|
|
7
7
|
import { u as de, d as he } from "../../../bank-D3I5wL2-.js";
|
|
8
|
-
import { s as a, I as ue } from "../../../iban-
|
|
8
|
+
import { s as a, I as ue } from "../../../iban-4bMHHpJO.js";
|
|
9
9
|
import { LINKED_WALLET_TOOLTIP as pe, CONNECTED_WALLET_TOOLTIP as fe, WALLET_ICON as ge, DELETE_ICON as be } from "../../../util/constants.js";
|
|
10
10
|
import Ne from "../../../hoc/withThemeProvider.js";
|
|
11
11
|
import { M as R } from "../../../tooltip-CwdohO6q.js";
|
|
@@ -24,13 +24,13 @@ import { useSnackBarContext as Ae } from "../../../context/snackBarContext.js";
|
|
|
24
24
|
import { B as s } from "../../../Box-Be0E_-eR.js";
|
|
25
25
|
import { G as l } from "../../../Grid2-DX2sucnU.js";
|
|
26
26
|
import { T as i } from "../../../Typography-Ds4fpvK8.js";
|
|
27
|
-
import { I as
|
|
28
|
-
import { C as
|
|
27
|
+
import { I as N } from "../../../IconButton-8B2ygvr4.js";
|
|
28
|
+
import { C as W } from "../../../CircularProgress-fePUtoaj.js";
|
|
29
29
|
import { B as A } from "../../../Button-DCBtFwk3.js";
|
|
30
30
|
import { D as Te, a as Le } from "../../../DialogContent-D8jGp88c.js";
|
|
31
31
|
import { D as Be } from "../../../DialogTitle-CxbjAJOw.js";
|
|
32
32
|
const Se = ({ baseUrl: $, checkoutSdkKey: K, appKey: H }) => {
|
|
33
|
-
const o = te(), { showAlertMessage: c } = Ae(), { openDialog: T, ConfirmDialog: j } = De(), L =
|
|
33
|
+
const o = te(), { showAlertMessage: c } = Ae(), { openDialog: T, ConfirmDialog: j } = De(), L = b((t) => t.app.features), u = b(ae), F = u.loader, B = u.message, S = u.banks, G = u.iban, [z, E] = g(!1), [J, p] = g(!1), [x, Q] = g(""), [C, U] = g(""), P = b(ne), M = P.data, { error: k, message: v, loader: D } = P, O = b(se), f = O.data, {
|
|
34
34
|
error: w,
|
|
35
35
|
message: I,
|
|
36
36
|
loader: V
|
|
@@ -44,8 +44,8 @@ const Se = ({ baseUrl: $, checkoutSdkKey: K, appKey: H }) => {
|
|
|
44
44
|
}, [I]), h(() => {
|
|
45
45
|
k && c({ message: k });
|
|
46
46
|
}, [k]), h(() => {
|
|
47
|
-
v && c({ message: v, type: "success" });
|
|
48
|
-
}, [v]), h(() => (M.length <= 0 && o(re()),
|
|
47
|
+
v && (p(!1), c({ message: v, type: "success" }));
|
|
48
|
+
}, [v]), h(() => (M.length <= 0 && o(re()), f.length <= 0 && o(oe()), o(de()), () => {
|
|
49
49
|
o(le("")), o(ie(""));
|
|
50
50
|
}), []);
|
|
51
51
|
const X = () => {
|
|
@@ -79,7 +79,7 @@ const Se = ({ baseUrl: $, checkoutSdkKey: K, appKey: H }) => {
|
|
|
79
79
|
let d, m;
|
|
80
80
|
return r === "connectedWallet" || r === "linkedWallet" ? "name" in t && "address" in t && (d = t.name, m = t.address) : "accountName" in t && "accountNumber" in t && (d = t.accountName, m = t.accountNumber), /* @__PURE__ */ n(s, { className: a["account-item"], children: [
|
|
81
81
|
r === "bankAccount" && z && "id" in t && /* @__PURE__ */ e(
|
|
82
|
-
|
|
82
|
+
N,
|
|
83
83
|
{
|
|
84
84
|
className: a["remove-icon"],
|
|
85
85
|
onClick: () => Y(t.id),
|
|
@@ -111,10 +111,10 @@ const Se = ({ baseUrl: $, checkoutSdkKey: K, appKey: H }) => {
|
|
|
111
111
|
] }) }) })
|
|
112
112
|
] });
|
|
113
113
|
}, Z = (t) => {
|
|
114
|
-
const r =
|
|
114
|
+
const r = f.length;
|
|
115
115
|
let d = !1;
|
|
116
116
|
for (let m = 0; m < r; m++)
|
|
117
|
-
if (
|
|
117
|
+
if (f[m].address.toLowerCase() === t.toLowerCase()) {
|
|
118
118
|
d = !0;
|
|
119
119
|
break;
|
|
120
120
|
}
|
|
@@ -141,7 +141,7 @@ const Se = ({ baseUrl: $, checkoutSdkKey: K, appKey: H }) => {
|
|
|
141
141
|
{
|
|
142
142
|
title: /* @__PURE__ */ e(s, { sx: { whiteSpace: "pre-line" }, children: pe }),
|
|
143
143
|
placement: "bottom",
|
|
144
|
-
children: /* @__PURE__ */ e(
|
|
144
|
+
children: /* @__PURE__ */ e(N, { className: a["info-icon"], children: /* @__PURE__ */ e(
|
|
145
145
|
q,
|
|
146
146
|
{
|
|
147
147
|
sx: {
|
|
@@ -152,13 +152,13 @@ const Se = ({ baseUrl: $, checkoutSdkKey: K, appKey: H }) => {
|
|
|
152
152
|
) })
|
|
153
153
|
}
|
|
154
154
|
),
|
|
155
|
-
D && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(
|
|
155
|
+
D && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(W, { size: 50 }) }),
|
|
156
156
|
M.map((t, r) => /* @__PURE__ */ e(y, { type: "linkedWallet", data: t }, r)),
|
|
157
157
|
/* @__PURE__ */ e(
|
|
158
158
|
A,
|
|
159
159
|
{
|
|
160
160
|
sx: { mt: 4 },
|
|
161
|
-
onClick: () =>
|
|
161
|
+
onClick: () => p(!0),
|
|
162
162
|
className: "wallet-btn",
|
|
163
163
|
variant: "contained",
|
|
164
164
|
fullWidth: !0,
|
|
@@ -181,7 +181,7 @@ const Se = ({ baseUrl: $, checkoutSdkKey: K, appKey: H }) => {
|
|
|
181
181
|
{
|
|
182
182
|
title: /* @__PURE__ */ e(s, { sx: { whiteSpace: "pre-line" }, children: fe }),
|
|
183
183
|
placement: "bottom",
|
|
184
|
-
children: /* @__PURE__ */ e(
|
|
184
|
+
children: /* @__PURE__ */ e(N, { className: a["info-icon"], children: /* @__PURE__ */ e(
|
|
185
185
|
q,
|
|
186
186
|
{
|
|
187
187
|
sx: {
|
|
@@ -192,8 +192,8 @@ const Se = ({ baseUrl: $, checkoutSdkKey: K, appKey: H }) => {
|
|
|
192
192
|
) })
|
|
193
193
|
}
|
|
194
194
|
),
|
|
195
|
-
V && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(
|
|
196
|
-
|
|
195
|
+
V && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(W, { size: 50 }) }),
|
|
196
|
+
f.map((t, r) => /* @__PURE__ */ e(y, { type: "connectedWallet", data: t }, r)),
|
|
197
197
|
/* @__PURE__ */ e(
|
|
198
198
|
Ie,
|
|
199
199
|
{
|
|
@@ -230,7 +230,7 @@ const Se = ({ baseUrl: $, checkoutSdkKey: K, appKey: H }) => {
|
|
|
230
230
|
]
|
|
231
231
|
}
|
|
232
232
|
),
|
|
233
|
-
F && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(
|
|
233
|
+
F && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(W, { size: 50 }) }),
|
|
234
234
|
S.map((t, r) => /* @__PURE__ */ e(y, { type: "bankAccount", data: t }, r)),
|
|
235
235
|
/* @__PURE__ */ n(s, { mt: 4, children: [
|
|
236
236
|
/* @__PURE__ */ e(we, {}),
|
|
@@ -254,16 +254,16 @@ const Se = ({ baseUrl: $, checkoutSdkKey: K, appKey: H }) => {
|
|
|
254
254
|
{
|
|
255
255
|
fullWidth: !0,
|
|
256
256
|
open: J,
|
|
257
|
-
onClose: () =>
|
|
257
|
+
onClose: () => p(!1),
|
|
258
258
|
TransitionComponent: ke,
|
|
259
259
|
children: [
|
|
260
260
|
/* @__PURE__ */ n(Be, { className: "buy-modal-text-color", children: [
|
|
261
261
|
/* @__PURE__ */ e(i, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ e("strong", { children: "Wallets" }) }),
|
|
262
262
|
/* @__PURE__ */ e(
|
|
263
|
-
|
|
263
|
+
N,
|
|
264
264
|
{
|
|
265
265
|
"aria-label": "close",
|
|
266
|
-
onClick: () =>
|
|
266
|
+
onClick: () => p(!1),
|
|
267
267
|
className: "menu-buttons",
|
|
268
268
|
children: /* @__PURE__ */ e(Ce, {})
|
|
269
269
|
}
|
|
@@ -296,7 +296,7 @@ const Se = ({ baseUrl: $, checkoutSdkKey: K, appKey: H }) => {
|
|
|
296
296
|
variant: "contained",
|
|
297
297
|
fullWidth: !0,
|
|
298
298
|
children: /* @__PURE__ */ e("strong", { children: D ? /* @__PURE__ */ n(ee, { children: [
|
|
299
|
-
/* @__PURE__ */ e(
|
|
299
|
+
/* @__PURE__ */ e(W, { size: 15, color: "inherit" }),
|
|
300
300
|
" Processing..."
|
|
301
301
|
] }) : "Import Wallet" })
|
|
302
302
|
}
|
|
@@ -7,7 +7,7 @@ import "../../../styles.module-BFHktEw2.js";
|
|
|
7
7
|
import "../Shared/appButton.js";
|
|
8
8
|
import "../../../constants-CdVZO8DH.js";
|
|
9
9
|
import "../../../order-DNSedxgT.js";
|
|
10
|
-
import { a as c } from "../../../index-
|
|
10
|
+
import { a as c } from "../../../index-98VYd3cT.js";
|
|
11
11
|
import "../../../Typography-Ds4fpvK8.js";
|
|
12
12
|
import "../../../Box-Be0E_-eR.js";
|
|
13
13
|
import "../../../Grid2-DX2sucnU.js";
|
|
@@ -10,7 +10,7 @@ import "../../../order-DNSedxgT.js";
|
|
|
10
10
|
import "../../../tooltip-CwdohO6q.js";
|
|
11
11
|
import "../../../util/functions.js";
|
|
12
12
|
import "../Shared/appButton.js";
|
|
13
|
-
import { B as C } from "../../../index-
|
|
13
|
+
import { B as C } from "../../../index-98VYd3cT.js";
|
|
14
14
|
import "../../../styles.module-BFHktEw2.js";
|
|
15
15
|
import "../Shared/TokenModal/index.js";
|
|
16
16
|
import "../../../react-redux-C7I9-1M6.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../../hoc/withThemeProvider.js";
|
|
4
|
-
import { C as f, F as A, M as O, P, i as Y } from "../../../index-
|
|
4
|
+
import { C as f, F as A, M as O, P, i as Y } from "../../../index-98VYd3cT.js";
|
|
5
5
|
import "../../../react-redux-C7I9-1M6.js";
|
|
6
6
|
import "../../../constants-CdVZO8DH.js";
|
|
7
7
|
import "../../../fiatAssets-yeCL6wA9.js";
|
|
@@ -6,7 +6,7 @@ import "../../../styles.module-BFHktEw2.js";
|
|
|
6
6
|
import "../Shared/appButton.js";
|
|
7
7
|
import "../../../constants-CdVZO8DH.js";
|
|
8
8
|
import "../../../order-DNSedxgT.js";
|
|
9
|
-
import { a as g } from "../../../index-
|
|
9
|
+
import { a as g } from "../../../index-CTglGXWu.js";
|
|
10
10
|
import "../../../hooks/useDialog/index.js";
|
|
11
11
|
import "../../../util/constants.js";
|
|
12
12
|
import "../../../Typography-Ds4fpvK8.js";
|
|
@@ -9,7 +9,7 @@ import "../../../index-f15o1nhn.js";
|
|
|
9
9
|
import "../../../order-DNSedxgT.js";
|
|
10
10
|
import "../../../tooltip-CwdohO6q.js";
|
|
11
11
|
import "../../../util/functions.js";
|
|
12
|
-
import { S as D } from "../../../index-
|
|
12
|
+
import { S as D } from "../../../index-CTglGXWu.js";
|
|
13
13
|
import "../../../styles.module-BFHktEw2.js";
|
|
14
14
|
import "../Shared/TokenModal/index.js";
|
|
15
15
|
import "../Shared/appButton.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../../hoc/withThemeProvider.js";
|
|
4
|
-
import { C as e, F as f, M as O, i as d } from "../../../index-
|
|
4
|
+
import { C as e, F as f, M as O, i as d } from "../../../index-CTglGXWu.js";
|
|
5
5
|
import "../../../react-redux-C7I9-1M6.js";
|
|
6
6
|
import "../../../constants-CdVZO8DH.js";
|
|
7
7
|
import "../../../fiatAssets-yeCL6wA9.js";
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { jsxs as o, Fragment as I, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as n, useEffect as P } from "react";
|
|
3
|
-
import { a as
|
|
4
|
-
import { C as
|
|
3
|
+
import { a as T, u as R } from "../../../react-redux-C7I9-1M6.js";
|
|
4
|
+
import { C as w } from "../../../Close-D20PIPiF.js";
|
|
5
5
|
import t from "./inputField.js";
|
|
6
|
-
import
|
|
7
|
-
import { PAYMENT_PROVIDER_OPENPAYD as
|
|
6
|
+
import z from "../../Shared/transition.js";
|
|
7
|
+
import { PAYMENT_PROVIDER_OPENPAYD as M } from "../../../util/constants.js";
|
|
8
8
|
import "../../../hoc/withThemeProvider.js";
|
|
9
9
|
import "./appButton.js";
|
|
10
10
|
import "./Auth/otpForm.js";
|
|
11
11
|
import "../../../constants-CdVZO8DH.js";
|
|
12
|
-
import { a as
|
|
13
|
-
import { a as
|
|
14
|
-
import "../../../context/snackBarContext.js";
|
|
12
|
+
import { a as O, b as F } from "../../../index-f15o1nhn.js";
|
|
13
|
+
import { a as W } from "../../../bank-D3I5wL2-.js";
|
|
14
|
+
import { useSnackBarContext as j } from "../../../context/snackBarContext.js";
|
|
15
15
|
import "../../../util/conversions.js";
|
|
16
16
|
import "../../../index-CAoLi5Qq.js";
|
|
17
|
-
import { useSnackBar as G } from "../../../hooks/useSnackBar.js";
|
|
18
17
|
import "../../../react-webcam-B3cXh1XT.js";
|
|
19
18
|
import "./pin.js";
|
|
20
19
|
import "../../../moment-h96o7c8I.js";
|
|
@@ -23,23 +22,22 @@ import "../../../index.esm-BsMAMhYW.js";
|
|
|
23
22
|
import "../../../web3-u4qDZYpo.js";
|
|
24
23
|
import "../../../index-B8QKlEgj.js";
|
|
25
24
|
import "../../../index-ceeCtFuh.js";
|
|
26
|
-
import { B as
|
|
27
|
-
import { D as
|
|
28
|
-
import { D as
|
|
25
|
+
import { B as x } from "../../../Button-DCBtFwk3.js";
|
|
26
|
+
import { D as G, a as Y } from "../../../DialogContent-D8jGp88c.js";
|
|
27
|
+
import { D as _ } from "../../../DialogTitle-CxbjAJOw.js";
|
|
29
28
|
import { T as f } from "../../../Typography-Ds4fpvK8.js";
|
|
30
|
-
import { I as
|
|
29
|
+
import { I as q } from "../../../IconButton-8B2ygvr4.js";
|
|
31
30
|
import { G as s } from "../../../Grid2-DX2sucnU.js";
|
|
32
|
-
import { C as
|
|
33
|
-
const
|
|
34
|
-
const
|
|
31
|
+
import { C as L } from "../../../CircularProgress-fePUtoaj.js";
|
|
32
|
+
const Ie = () => {
|
|
33
|
+
const D = T(), y = R(O), { loader: h, error: c, message: u } = R(F), { firstName: E, lastName: H } = y, { showAlertMessage: a } = j(), [S, i] = n(!1), [d, g] = n(""), [p, b] = n(""), [l, N] = n(""), [C, B] = n(""), [m, k] = n(""), [v, A] = n("");
|
|
35
34
|
return P(() => {
|
|
36
35
|
c && a({ message: c });
|
|
37
36
|
}, [c]), P(() => {
|
|
38
37
|
u && (g(""), b(""), N(""), B(""), k(""), A(""), i(!1), a({ message: u, type: "success" }));
|
|
39
38
|
}, [u]), /* @__PURE__ */ o(I, { children: [
|
|
40
|
-
S,
|
|
41
39
|
/* @__PURE__ */ e(
|
|
42
|
-
|
|
40
|
+
x,
|
|
43
41
|
{
|
|
44
42
|
onClick: () => i(!0),
|
|
45
43
|
className: "wallet-btn",
|
|
@@ -49,26 +47,26 @@ const Re = () => {
|
|
|
49
47
|
}
|
|
50
48
|
),
|
|
51
49
|
/* @__PURE__ */ o(
|
|
52
|
-
|
|
50
|
+
G,
|
|
53
51
|
{
|
|
54
|
-
open:
|
|
52
|
+
open: S,
|
|
55
53
|
fullWidth: !0,
|
|
56
54
|
onClose: () => i(!1),
|
|
57
|
-
TransitionComponent:
|
|
55
|
+
TransitionComponent: z,
|
|
58
56
|
children: [
|
|
59
|
-
/* @__PURE__ */ o(
|
|
57
|
+
/* @__PURE__ */ o(_, { className: "buy-modal-text-color", children: [
|
|
60
58
|
/* @__PURE__ */ e(f, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ e("strong", { children: "Banks" }) }),
|
|
61
59
|
/* @__PURE__ */ e(
|
|
62
|
-
|
|
60
|
+
q,
|
|
63
61
|
{
|
|
64
62
|
"aria-label": "close",
|
|
65
63
|
onClick: () => i(!1),
|
|
66
64
|
className: "menu-buttons",
|
|
67
|
-
children: /* @__PURE__ */ e(
|
|
65
|
+
children: /* @__PURE__ */ e(w, {})
|
|
68
66
|
}
|
|
69
67
|
)
|
|
70
68
|
] }),
|
|
71
|
-
/* @__PURE__ */ o(
|
|
69
|
+
/* @__PURE__ */ o(Y, { className: "bank-modal-content", dividers: !0, children: [
|
|
72
70
|
/* @__PURE__ */ e(f, { className: "text-center buy-modal-text-color", variant: "h5", children: /* @__PURE__ */ e("strong", { children: "Add Bank" }) }),
|
|
73
71
|
/* @__PURE__ */ e(f, { className: "text-center", variant: "caption", component: "p", children: /* @__PURE__ */ e("strong", { children: "Only Euro denominated SEPA accounts are currently supported." }) }),
|
|
74
72
|
/* @__PURE__ */ e(
|
|
@@ -92,7 +90,7 @@ const Re = () => {
|
|
|
92
90
|
t,
|
|
93
91
|
{
|
|
94
92
|
label: "Account Number or IBAN",
|
|
95
|
-
value:
|
|
93
|
+
value: l,
|
|
96
94
|
onChangeHandler: (r) => N(r)
|
|
97
95
|
}
|
|
98
96
|
) }),
|
|
@@ -108,7 +106,7 @@ const Re = () => {
|
|
|
108
106
|
t,
|
|
109
107
|
{
|
|
110
108
|
label: "Routing/BIC Number",
|
|
111
|
-
value:
|
|
109
|
+
value: m,
|
|
112
110
|
onChangeHandler: (r) => k(r)
|
|
113
111
|
}
|
|
114
112
|
) }),
|
|
@@ -122,7 +120,7 @@ const Re = () => {
|
|
|
122
120
|
) })
|
|
123
121
|
] }),
|
|
124
122
|
/* @__PURE__ */ e(
|
|
125
|
-
|
|
123
|
+
x,
|
|
126
124
|
{
|
|
127
125
|
sx: { mt: 4 },
|
|
128
126
|
onClick: () => {
|
|
@@ -130,33 +128,33 @@ const Re = () => {
|
|
|
130
128
|
return a({ message: "Please provide account name" }), !1;
|
|
131
129
|
if (!p.trim())
|
|
132
130
|
return a({ message: "Please provide bank name" }), !1;
|
|
133
|
-
if (!
|
|
131
|
+
if (!l.trim())
|
|
134
132
|
return a({ message: "Please provide IBAN" }), !1;
|
|
135
|
-
if (
|
|
133
|
+
if (l !== C)
|
|
136
134
|
return a({
|
|
137
135
|
message: "IBAN and Confirm IBAN should be same"
|
|
138
136
|
}), !1;
|
|
139
|
-
if (!
|
|
137
|
+
if (!m.trim())
|
|
140
138
|
return a({ message: "Please provide routing number" }), !1;
|
|
141
|
-
if (
|
|
139
|
+
if (m !== v)
|
|
142
140
|
return a({
|
|
143
141
|
message: "Routing Number and Confirm Routing Number should be same"
|
|
144
142
|
}), !1;
|
|
145
|
-
h ||
|
|
143
|
+
h || D(W({
|
|
146
144
|
accountName: d,
|
|
147
|
-
accountNumber:
|
|
145
|
+
accountNumber: l,
|
|
148
146
|
bankName: p,
|
|
149
|
-
bicCode:
|
|
147
|
+
bicCode: m,
|
|
150
148
|
ownerFirstName: E,
|
|
151
149
|
ownerLastName: H,
|
|
152
|
-
provider:
|
|
150
|
+
provider: M
|
|
153
151
|
}));
|
|
154
152
|
},
|
|
155
153
|
className: "wallet-btn",
|
|
156
154
|
variant: "contained",
|
|
157
155
|
fullWidth: !0,
|
|
158
156
|
children: /* @__PURE__ */ e("strong", { children: h ? /* @__PURE__ */ o(I, { children: [
|
|
159
|
-
/* @__PURE__ */ e(
|
|
157
|
+
/* @__PURE__ */ e(L, { size: 15, color: "inherit" }),
|
|
160
158
|
" Processing..."
|
|
161
159
|
] }) : "Add Bank" })
|
|
162
160
|
}
|
|
@@ -168,5 +166,5 @@ const Re = () => {
|
|
|
168
166
|
] });
|
|
169
167
|
};
|
|
170
168
|
export {
|
|
171
|
-
|
|
169
|
+
Ie as default
|
|
172
170
|
};
|
|
@@ -116,7 +116,7 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
116
116
|
ke(t);
|
|
117
117
|
}, Ie = (t) => {
|
|
118
118
|
const i = t.target.value;
|
|
119
|
-
i ? /^([0-9
|
|
119
|
+
i ? /^([0-9.]+)$/.test(i) && R(ce(i, 8)) : R("");
|
|
120
120
|
}, oe = (t) => {
|
|
121
121
|
if (w) {
|
|
122
122
|
const i = w.find((T) => T.symbol === t);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e, Fragment as p } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { I as
|
|
4
|
-
import { C as
|
|
5
|
-
import { C as
|
|
6
|
-
import { DIALOG_SUCCESS_ICON as
|
|
7
|
-
import { a2 as
|
|
8
|
-
import { e as
|
|
9
|
-
import { e as
|
|
10
|
-
import { M as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { useSnackBarContext as
|
|
2
|
+
import { useState as v, useEffect as N } from "react";
|
|
3
|
+
import { I as w } from "./Info-83BXSu73.js";
|
|
4
|
+
import { C as B } from "./Close-D20PIPiF.js";
|
|
5
|
+
import { C as S } from "./ContentCopy-DzhD9ue3.js";
|
|
6
|
+
import { DIALOG_SUCCESS_ICON as A, WALLET_ICON as D } from "./util/constants.js";
|
|
7
|
+
import { a2 as T } from "./constants-CdVZO8DH.js";
|
|
8
|
+
import { e as z } from "./order-DNSedxgT.js";
|
|
9
|
+
import { e as $, c as R } from "./bank-D3I5wL2-.js";
|
|
10
|
+
import { M as W } from "./tooltip-CwdohO6q.js";
|
|
11
|
+
import L from "./components/Wallet/Shared/noData.js";
|
|
12
|
+
import P from "./components/Shared/transition.js";
|
|
13
|
+
import q from "./components/Wallet/Account/sendIban.js";
|
|
14
|
+
import E from "./components/Wallet/Account/createIban.js";
|
|
15
|
+
import { useSnackBarContext as F } from "./context/snackBarContext.js";
|
|
16
16
|
import { B as i } from "./Box-Be0E_-eR.js";
|
|
17
17
|
import { T as l } from "./Typography-Ds4fpvK8.js";
|
|
18
18
|
import { I as _ } from "./IconButton-8B2ygvr4.js";
|
|
@@ -39,7 +39,7 @@ import './assets/iban.css';const G = "_container_kzn77_1", j = "_heading_kzn77_2
|
|
|
39
39
|
value: a,
|
|
40
40
|
showCopyBtn: c
|
|
41
41
|
}) => {
|
|
42
|
-
const { showAlertMessage: h } =
|
|
42
|
+
const { showAlertMessage: h } = F();
|
|
43
43
|
return /* @__PURE__ */ t(p, { children: [
|
|
44
44
|
/* @__PURE__ */ e(r, { item: !0, xs: 5, className: "d-flex items-center", children: /* @__PURE__ */ e("strong", { children: n }) }),
|
|
45
45
|
/* @__PURE__ */ t(r, { item: !0, xs: 7, className: "fw500 text-left d-flex items-center", children: [
|
|
@@ -49,7 +49,7 @@ import './assets/iban.css';const G = "_container_kzn77_1", j = "_heading_kzn77_2
|
|
|
49
49
|
message: `${n} has been copied successfully.`,
|
|
50
50
|
type: "success"
|
|
51
51
|
});
|
|
52
|
-
}, children: /* @__PURE__ */ e(
|
|
52
|
+
}, children: /* @__PURE__ */ e(S, { fontSize: "small", color: "primary" }) })
|
|
53
53
|
] })
|
|
54
54
|
] });
|
|
55
55
|
}, Y = ({ data: n }) => {
|
|
@@ -60,7 +60,7 @@ import './assets/iban.css';const G = "_container_kzn77_1", j = "_heading_kzn77_2
|
|
|
60
60
|
className: "bank-account-item",
|
|
61
61
|
sx: { position: "relative", margin: "19px 0px" },
|
|
62
62
|
children: /* @__PURE__ */ e(r, { container: !0, children: /* @__PURE__ */ e(r, { item: !0, xs: 10, children: /* @__PURE__ */ t(r, { container: !0, children: [
|
|
63
|
-
/* @__PURE__ */ e(r, { item: !0, md: 1.2, xs: 2, className: "content-center", children: /* @__PURE__ */ e("img", { src:
|
|
63
|
+
/* @__PURE__ */ e(r, { item: !0, md: 1.2, xs: 2, className: "content-center", children: /* @__PURE__ */ e("img", { src: D, alt: "Icon", height: 28, width: 28 }) }),
|
|
64
64
|
/* @__PURE__ */ t(r, { item: !0, md: 10.8, xs: 10, children: [
|
|
65
65
|
/* @__PURE__ */ e(
|
|
66
66
|
l,
|
|
@@ -92,24 +92,23 @@ import './assets/iban.css';const G = "_container_kzn77_1", j = "_heading_kzn77_2
|
|
|
92
92
|
appKey: f,
|
|
93
93
|
iban: m
|
|
94
94
|
}) => {
|
|
95
|
-
g();
|
|
96
|
-
const o = m.data, C = m.loader, [k, d] = w(!1);
|
|
95
|
+
const o = m.data, g = m.loader, [C, d] = v(!1);
|
|
97
96
|
N(() => {
|
|
98
|
-
n(
|
|
97
|
+
n($());
|
|
99
98
|
}, []);
|
|
100
|
-
const
|
|
101
|
-
n(
|
|
99
|
+
const k = () => {
|
|
100
|
+
n(R(T));
|
|
102
101
|
};
|
|
103
102
|
N(() => {
|
|
104
103
|
new URLSearchParams(window.location.search).get("paymentStatus") === "success" && a({
|
|
105
104
|
title: "Payment Success",
|
|
106
105
|
message: "We have received your payment and will generate your Virtual IBAN after the payment has processed",
|
|
107
|
-
icon:
|
|
106
|
+
icon: A,
|
|
108
107
|
width: "575px",
|
|
109
108
|
confirmButtonText: "Continue"
|
|
110
109
|
});
|
|
111
110
|
}, []);
|
|
112
|
-
const
|
|
111
|
+
const I = (b) => {
|
|
113
112
|
const x = {
|
|
114
113
|
token: b,
|
|
115
114
|
amount: 12,
|
|
@@ -118,20 +117,20 @@ import './assets/iban.css';const G = "_container_kzn77_1", j = "_heading_kzn77_2
|
|
|
118
117
|
success_url: `${c}/accounts?payment=success`,
|
|
119
118
|
fail_url: `${c}/dashboard?payment=failed`
|
|
120
119
|
};
|
|
121
|
-
n(
|
|
120
|
+
n(z(x));
|
|
122
121
|
};
|
|
123
122
|
return /* @__PURE__ */ t(i, { className: u["inner-container"], children: [
|
|
124
123
|
/* @__PURE__ */ t(i, { p: 3, children: [
|
|
125
124
|
/* @__PURE__ */ e(l, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "Everest Accounts (Virtual IBAN)" }) }),
|
|
126
125
|
/* @__PURE__ */ e(
|
|
127
|
-
|
|
126
|
+
W,
|
|
128
127
|
{
|
|
129
128
|
title: /* @__PURE__ */ e(i, { sx: { whiteSpace: "pre-line" }, children: "Create a Virtual IBAN of EUR currency. This requires KYC and an annual payment" }),
|
|
130
129
|
placement: "bottom",
|
|
131
|
-
children: /* @__PURE__ */ e(_, { className: "info-fee-icon", children: /* @__PURE__ */ e(
|
|
130
|
+
children: /* @__PURE__ */ e(_, { className: "info-fee-icon", children: /* @__PURE__ */ e(w, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
|
|
132
131
|
}
|
|
133
132
|
),
|
|
134
|
-
|
|
133
|
+
g ? /* @__PURE__ */ e(i, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(V, { color: "primary", size: 50 }) }) : /* @__PURE__ */ e(p, { children: o.accountNumber ? /* @__PURE__ */ t(p, { children: [
|
|
135
134
|
/* @__PURE__ */ e(Y, { data: o }),
|
|
136
135
|
/* @__PURE__ */ t(r, { spacing: 2, container: !0, children: [
|
|
137
136
|
/* @__PURE__ */ e(r, { item: !0, md: 6, children: /* @__PURE__ */ e(
|
|
@@ -152,7 +151,7 @@ import './assets/iban.css';const G = "_container_kzn77_1", j = "_heading_kzn77_2
|
|
|
152
151
|
className: `${u["confirm-buy-edit"]} normal-text wd100`,
|
|
153
152
|
sx: { mt: 3, mb: 3 },
|
|
154
153
|
variant: "contained",
|
|
155
|
-
onClick:
|
|
154
|
+
onClick: k,
|
|
156
155
|
children: "Send"
|
|
157
156
|
}
|
|
158
157
|
) }),
|
|
@@ -185,20 +184,20 @@ import './assets/iban.css';const G = "_container_kzn77_1", j = "_heading_kzn77_2
|
|
|
185
184
|
]
|
|
186
185
|
}
|
|
187
186
|
) : /* @__PURE__ */ t(p, { children: [
|
|
188
|
-
/* @__PURE__ */ e(
|
|
187
|
+
/* @__PURE__ */ e(L, { text: "You currently have no IBAN Accounts" }),
|
|
189
188
|
/* @__PURE__ */ e(i, { mt: 4, children: /* @__PURE__ */ e(
|
|
190
|
-
|
|
189
|
+
E,
|
|
191
190
|
{
|
|
192
191
|
openDialog: a,
|
|
193
192
|
checkoutSdkKey: h,
|
|
194
|
-
paymentRequest:
|
|
193
|
+
paymentRequest: I,
|
|
195
194
|
iban: m
|
|
196
195
|
}
|
|
197
196
|
) })
|
|
198
197
|
] }) })
|
|
199
198
|
] }),
|
|
200
199
|
/* @__PURE__ */ e(
|
|
201
|
-
|
|
200
|
+
q,
|
|
202
201
|
{
|
|
203
202
|
iban: m,
|
|
204
203
|
dispatch: n,
|
|
@@ -208,10 +207,10 @@ import './assets/iban.css';const G = "_container_kzn77_1", j = "_heading_kzn77_2
|
|
|
208
207
|
/* @__PURE__ */ t(
|
|
209
208
|
M,
|
|
210
209
|
{
|
|
211
|
-
open:
|
|
210
|
+
open: C,
|
|
212
211
|
fullWidth: !0,
|
|
213
212
|
onClose: () => d(!1),
|
|
214
|
-
TransitionComponent:
|
|
213
|
+
TransitionComponent: P,
|
|
215
214
|
maxWidth: "md",
|
|
216
215
|
children: [
|
|
217
216
|
/* @__PURE__ */ t(U, { className: "buy-modal-text-color", children: [
|
|
@@ -222,7 +221,7 @@ import './assets/iban.css';const G = "_container_kzn77_1", j = "_heading_kzn77_2
|
|
|
222
221
|
"aria-label": "close",
|
|
223
222
|
onClick: () => d(!1),
|
|
224
223
|
className: "menu-buttons",
|
|
225
|
-
children: /* @__PURE__ */ e(
|
|
224
|
+
children: /* @__PURE__ */ e(B, {})
|
|
226
225
|
}
|
|
227
226
|
)
|
|
228
227
|
] }),
|
|
@@ -167,7 +167,7 @@ const Ct = ({
|
|
|
167
167
|
}, [h.types]);
|
|
168
168
|
const Ve = (t) => {
|
|
169
169
|
const r = t.target.value;
|
|
170
|
-
r ? /^([0-9]+)$/.test(r) && he(r) : he("");
|
|
170
|
+
r ? /^([0-9.]+)$/.test(r) && he(r) : he("");
|
|
171
171
|
}, xe = (t) => {
|
|
172
172
|
const r = L.find((o) => o.symbol === t);
|
|
173
173
|
se(r);
|
|
@@ -112,7 +112,7 @@ const ct = ({
|
|
|
112
112
|
}, [p.types]);
|
|
113
113
|
const We = (t) => {
|
|
114
114
|
const i = t.target.value;
|
|
115
|
-
i ? /^([0-9]+)$/.test(i) && J(i) : J("");
|
|
115
|
+
i ? /^([0-9.]+)$/.test(i) && J(i) : J("");
|
|
116
116
|
}, de = (t) => {
|
|
117
117
|
const i = P.find((d) => d.symbol === t);
|
|
118
118
|
ae(i);
|
package/dist/main.js
CHANGED
|
@@ -9,8 +9,8 @@ import { default as c } from "./components/Wallet/Account/index.js";
|
|
|
9
9
|
import { default as k } from "./components/Wallet/Stake/index.js";
|
|
10
10
|
import { default as g } from "./components/Wallet/MoveToEthereumOrEverChain/index.js";
|
|
11
11
|
import { default as w } from "./components/Wallet/SwapAndUniSwap/index.js";
|
|
12
|
-
import { i as P } from "./index-
|
|
13
|
-
import { i as v } from "./index-
|
|
12
|
+
import { i as P } from "./index-98VYd3cT.js";
|
|
13
|
+
import { i as v } from "./index-CTglGXWu.js";
|
|
14
14
|
import { i as D } from "./index-CFWL7CoB.js";
|
|
15
15
|
import { default as K } from "./components/Wallet/Swap/index.js";
|
|
16
16
|
import { default as A } from "./components/Wallet/EnterpriseKyc/index.js";
|