everest-npm-features 0.0.56 → 0.0.57

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.
@@ -1,29 +1,29 @@
1
- import { jsx as e, jsxs as r, Fragment as m } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as r, Fragment as l } from "react/jsx-runtime";
2
2
  import { useRef as W, useState as w, useEffect as A } from "react";
3
3
  import { I as N } from "../../../Info-BVeUSPyk.js";
4
- import { DIALOG_SUCCESS_ICON as P, FEATURE_EWALLET as l } from "../../../util/constants.js";
4
+ import { DIALOG_SUCCESS_ICON as P, FEATURE_EWALLET as p } from "../../../util/constants.js";
5
5
  import { M as T } from "../../../tooltip-3UvETWtS.js";
6
- import v from "../Shared/noData.js";
7
- import D from "./createIban.js";
8
- import { AuthInnerContainer as b } from "../Shared/Container/index.js";
6
+ import D from "../Shared/noData.js";
7
+ import b from "./createIban.js";
8
+ import { AuthInnerContainer as v } from "../Shared/Container/index.js";
9
9
  import B from "./ibanItem.js";
10
10
  import { B as t } from "../../../Box-B0YSYLco.js";
11
11
  import { G as a } from "../../../Grid-CFe3amXO.js";
12
- import { T as p } from "../../../Typography-pAaje37G.js";
12
+ import { T as h } from "../../../Typography-pAaje37G.js";
13
13
  import { I as L } from "../../../IconButton-DHm-hucF.js";
14
14
  import { C as z } from "../../../CircularProgress-xZA3lvba.js";
15
15
  const J = ({
16
- dispatch: h,
16
+ dispatch: u,
17
17
  openDialog: i,
18
- appKey: u,
19
- appKeyEur: d,
20
- paymentWidgetSrcUrl: f,
18
+ appKey: d,
19
+ appKeyEur: f,
20
+ paymentWidgetSrcUrl: y,
21
21
  iban: o,
22
- navigate: y,
22
+ navigate: c,
23
23
  AccountItem: x,
24
- createIbanRequest: g
24
+ createIbanRequest: C
25
25
  }) => {
26
- const c = o.data, C = o.loader, I = W(""), [_, E] = w("");
26
+ const s = o.data, I = o.loader, g = W(""), [_, E] = w("");
27
27
  return A(() => {
28
28
  new URLSearchParams(window.location.search).get("paymentStatus") === "success" && i({
29
29
  title: "Payment Success",
@@ -32,10 +32,10 @@ const J = ({
32
32
  width: "575px",
33
33
  confirmButtonText: "Continue"
34
34
  });
35
- }, []), /* @__PURE__ */ e(b, { children: /* @__PURE__ */ r(t, { p: 3, children: [
35
+ }, []), /* @__PURE__ */ e(v, { children: /* @__PURE__ */ r(t, { p: 3, children: [
36
36
  /* @__PURE__ */ r(a, { spacing: 2, container: !0, alignItems: "center", children: [
37
37
  /* @__PURE__ */ r(a, { size: 8, children: [
38
- /* @__PURE__ */ e(p, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "E-Wallet" }) }),
38
+ /* @__PURE__ */ e(h, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "E-Wallet" }) }),
39
39
  /* @__PURE__ */ e(
40
40
  T,
41
41
  {
@@ -46,20 +46,20 @@ const J = ({
46
46
  )
47
47
  ] }),
48
48
  /* @__PURE__ */ e(a, { size: 4, children: /* @__PURE__ */ e(t, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e(
49
- D,
49
+ b,
50
50
  {
51
51
  openDialog: i,
52
- createIbanRequest: g,
52
+ createIbanRequest: C,
53
53
  iban: o,
54
- navigate: y,
55
- currency: I,
54
+ navigate: c,
55
+ currency: g,
56
56
  setIbanCurrency: E,
57
- from: l
57
+ from: p
58
58
  }
59
59
  ) }) })
60
60
  ] }),
61
- C ? /* @__PURE__ */ e(t, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(z, { color: "primary", size: 50 }) }) : /* @__PURE__ */ r(m, { children: [
62
- c.length > 0 ? /* @__PURE__ */ e(m, { children: c.map((n, s) => {
61
+ I ? /* @__PURE__ */ e(t, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(z, { color: "primary", size: 50 }) }) : /* @__PURE__ */ r(l, { children: [
62
+ s.length > 0 ? /* @__PURE__ */ e(l, { children: s.map((n, m) => {
63
63
  const S = {
64
64
  ...n,
65
65
  accountName: `E-Wallet - ${n.currency ?? ""}`
@@ -69,17 +69,18 @@ const J = ({
69
69
  {
70
70
  data: S,
71
71
  AccountItem: x,
72
- dispatch: h,
73
- appKey: u,
74
- appKeyEur: d,
75
- paymentWidgetSrcUrl: f,
72
+ dispatch: u,
73
+ appKey: d,
74
+ appKeyEur: f,
75
+ paymentWidgetSrcUrl: y,
76
76
  iban: o,
77
- from: l
77
+ navigate: c,
78
+ from: p
78
79
  },
79
- s
80
+ m
80
81
  );
81
- }) }) : /* @__PURE__ */ e(v, { text: "You currently have no E-Wallets" }),
82
- /* @__PURE__ */ e(t, { mt: 3, textAlign: "center", children: /* @__PURE__ */ r(p, { variant: "caption", color: "secondary", children: [
82
+ }) }) : /* @__PURE__ */ e(D, { text: "You currently have no E-Wallets" }),
83
+ /* @__PURE__ */ e(t, { mt: 3, textAlign: "center", children: /* @__PURE__ */ r(h, { variant: "caption", color: "secondary", children: [
83
84
  "Powered by",
84
85
  " ",
85
86
  /* @__PURE__ */ e(
@@ -1,29 +1,29 @@
1
- import { jsx as e, jsxs as o, Fragment as m } from "react/jsx-runtime";
2
- import { useRef as g, useState as S, useEffect as B } from "react";
1
+ import { jsx as r, jsxs as o, Fragment as l } from "react/jsx-runtime";
2
+ import { useRef as S, useState as g, useEffect as B } from "react";
3
3
  import { I as N } from "../../../Info-BVeUSPyk.js";
4
- import { DIALOG_SUCCESS_ICON as T, FEATURE_VIRTUAL_IBAN as l } from "../../../util/constants.js";
4
+ import { DIALOG_SUCCESS_ICON as T, FEATURE_VIRTUAL_IBAN as p } from "../../../util/constants.js";
5
5
  import { M as w } from "../../../tooltip-3UvETWtS.js";
6
6
  import b from "../Shared/noData.js";
7
- import v from "./createIban.js";
8
- import { AuthInnerContainer as D } from "../Shared/Container/index.js";
9
- import E from "./ibanItem.js";
7
+ import D from "./createIban.js";
8
+ import { AuthInnerContainer as E } from "../Shared/Container/index.js";
9
+ import P from "./ibanItem.js";
10
10
  import { B as t } from "../../../Box-B0YSYLco.js";
11
11
  import { G as n } from "../../../Grid-CFe3amXO.js";
12
- import { T as P } from "../../../Typography-pAaje37G.js";
12
+ import { T as v } from "../../../Typography-pAaje37G.js";
13
13
  import { I as z } from "../../../IconButton-DHm-hucF.js";
14
14
  import { C as L } from "../../../CircularProgress-xZA3lvba.js";
15
15
  const J = ({
16
- dispatch: p,
16
+ dispatch: u,
17
17
  openDialog: a,
18
- appKey: u,
19
- appKeyEur: f,
20
- paymentWidgetSrcUrl: h,
21
- iban: r,
22
- navigate: d,
18
+ appKey: f,
19
+ appKeyEur: h,
20
+ paymentWidgetSrcUrl: d,
21
+ iban: e,
22
+ navigate: i,
23
23
  AccountItem: I,
24
24
  createIbanRequest: y
25
25
  }) => {
26
- const i = r.data, x = r.loader, C = g(""), [R, A] = S("");
26
+ const c = e.data, x = e.loader, C = S(""), [R, A] = g("");
27
27
  return B(() => {
28
28
  new URLSearchParams(window.location.search).get("paymentStatus") === "success" && a({
29
29
  title: "Payment Success",
@@ -32,46 +32,47 @@ const J = ({
32
32
  width: "575px",
33
33
  confirmButtonText: "Continue"
34
34
  });
35
- }, []), /* @__PURE__ */ e(D, { children: /* @__PURE__ */ o(t, { p: 3, children: [
35
+ }, []), /* @__PURE__ */ r(E, { children: /* @__PURE__ */ o(t, { p: 3, children: [
36
36
  /* @__PURE__ */ o(n, { spacing: 2, container: !0, alignItems: "center", children: [
37
37
  /* @__PURE__ */ o(n, { size: 8, children: [
38
- /* @__PURE__ */ e(P, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "Everest Accounts (Virtual IBAN)" }) }),
39
- /* @__PURE__ */ e(
38
+ /* @__PURE__ */ r(v, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ r("strong", { children: "Everest Accounts (Virtual IBAN)" }) }),
39
+ /* @__PURE__ */ r(
40
40
  w,
41
41
  {
42
- title: /* @__PURE__ */ e(t, { sx: { whiteSpace: "pre-line" }, children: "Create a Virtual IBAN of selected currency. This requires KYC" }),
42
+ title: /* @__PURE__ */ r(t, { sx: { whiteSpace: "pre-line" }, children: "Create a Virtual IBAN of selected currency. This requires KYC" }),
43
43
  placement: "bottom",
44
- children: /* @__PURE__ */ e(z, { className: "info-fee-icon", children: /* @__PURE__ */ e(N, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
44
+ children: /* @__PURE__ */ r(z, { className: "info-fee-icon", children: /* @__PURE__ */ r(N, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
45
45
  }
46
46
  )
47
47
  ] }),
48
- /* @__PURE__ */ e(n, { size: 4, children: /* @__PURE__ */ e(t, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e(
49
- v,
48
+ /* @__PURE__ */ r(n, { size: 4, children: /* @__PURE__ */ r(t, { sx: { textAlign: "right" }, children: /* @__PURE__ */ r(
49
+ D,
50
50
  {
51
51
  openDialog: a,
52
52
  createIbanRequest: y,
53
- iban: r,
54
- navigate: d,
53
+ iban: e,
54
+ navigate: i,
55
55
  currency: C,
56
56
  setIbanCurrency: A,
57
- from: l
57
+ from: p
58
58
  }
59
59
  ) }) })
60
60
  ] }),
61
- x ? /* @__PURE__ */ e(t, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(L, { color: "primary", size: 50 }) }) : /* @__PURE__ */ e(m, { children: i.length > 0 ? /* @__PURE__ */ e(m, { children: i.map((c, s) => /* @__PURE__ */ e(
62
- E,
61
+ x ? /* @__PURE__ */ r(t, { mt: 4, className: "flex-center", children: /* @__PURE__ */ r(L, { color: "primary", size: 50 }) }) : /* @__PURE__ */ r(l, { children: c.length > 0 ? /* @__PURE__ */ r(l, { children: c.map((s, m) => /* @__PURE__ */ r(
62
+ P,
63
63
  {
64
- data: c,
64
+ data: s,
65
65
  AccountItem: I,
66
- dispatch: p,
67
- appKey: u,
68
- appKeyEur: f,
69
- paymentWidgetSrcUrl: h,
70
- iban: r,
71
- from: l
66
+ dispatch: u,
67
+ appKey: f,
68
+ appKeyEur: h,
69
+ paymentWidgetSrcUrl: d,
70
+ iban: e,
71
+ navigate: i,
72
+ from: p
72
73
  },
73
- s
74
- )) }) : /* @__PURE__ */ e(b, { text: "You currently have no IBAN Accounts" }) })
74
+ m
75
+ )) }) : /* @__PURE__ */ r(b, { text: "You currently have no IBAN Accounts" }) })
75
76
  ] }) });
76
77
  };
77
78
  export {
@@ -7,6 +7,7 @@ interface IbanItemProps {
7
7
  appKey: string;
8
8
  appKeyEur: string;
9
9
  paymentWidgetSrcUrl: string;
10
+ navigate: (path: string) => void;
10
11
  AccountItem: ({ data, type, children, }: {
11
12
  data: Wallet | Bank;
12
13
  type: string;
@@ -1,20 +1,20 @@
1
- import { jsx as e, Fragment as k, jsxs as o } from "react/jsx-runtime";
2
- import { useState as c, useMemo as M, useEffect as R } from "react";
1
+ import { jsx as e, Fragment as v, jsxs as o } from "react/jsx-runtime";
2
+ import { useState as a, useMemo as B, useEffect as E } from "react";
3
3
  import "../../../constants-Dtk3Gd0Y.js";
4
- import { v as ie } from "../../../order-DuPcaU0K.js";
5
- import g from "../Shared/appButton.js";
6
- import { C as le } from "../../../ContentCopy-coPwrEuz.js";
7
- import { C as L } from "../../../Close-CNwiMz_O.js";
8
- import $ from "../../Shared/transition.js";
4
+ import { v as le } from "../../../order-DuPcaU0K.js";
5
+ import z from "../Shared/appButton.js";
6
+ import { C as se } from "../../../ContentCopy-coPwrEuz.js";
7
+ import { C as O } from "../../../Close-CNwiMz_O.js";
8
+ import L from "../../Shared/transition.js";
9
9
  import "../../../index-DlQqWbXG.js";
10
10
  import "../../../hoc/withThemeProvider.js";
11
- import { u as j } from "../../../react-redux-C7I9-1M6.js";
12
- import { GBP_ISO3 as se, FEATURE_EWALLET as ce } from "../../../util/constants.js";
11
+ import { u as $ } from "../../../react-redux-C7I9-1M6.js";
12
+ import { GBP_ISO3 as ae, FEATURE_EWALLET as ce } from "../../../util/constants.js";
13
13
  import "../Shared/Auth/otpForm.js";
14
- import { useSnackBarContext as q } from "../../../context/snackBarContext.js";
14
+ import { useSnackBarContext as V } from "../../../context/snackBarContext.js";
15
15
  import "../../../util/conversions.js";
16
16
  import "../../../index-CAoLi5Qq.js";
17
- import ae from "../Shared/inputField.js";
17
+ import ue from "../Shared/inputField.js";
18
18
  import "../../../react-webcam-B3cXh1XT.js";
19
19
  import "../../../tooltip-3UvETWtS.js";
20
20
  import "../Shared/pin.js";
@@ -22,153 +22,180 @@ import "../../../moment-h96o7c8I.js";
22
22
  import "../../../index.esm-BsMAMhYW.js";
23
23
  import "../../../web3-u4qDZYpo.js";
24
24
  import "../../../index-ceeCtFuh.js";
25
- import ue from "../Shared/CardCorp/index.js";
25
+ import de from "../Shared/CardCorp/index.js";
26
26
  import "../../../context/dialogContext.js";
27
- import de from "./sendIban.js";
28
- import { G as a } from "../../../Grid-CFe3amXO.js";
29
- import { D as G, a as V } from "../../../DialogContent-BMwlOnbW.js";
27
+ import me from "./sendIban.js";
28
+ import { G as p } from "../../../Grid-CFe3amXO.js";
29
+ import { T as m } from "../../../Typography-pAaje37G.js";
30
+ import { D as j, a as G } from "../../../DialogContent-BMwlOnbW.js";
30
31
  import { D as H } from "../../../DialogTitle-CfS0bb2K.js";
31
- import { T as v } from "../../../Typography-pAaje37G.js";
32
- import { I as D } from "../../../IconButton-DHm-hucF.js";
33
- import { B as S } from "../../../Box-B0YSYLco.js";
34
- import { C as me } from "../../../CircularProgress-xZA3lvba.js";
32
+ import { I as S } from "../../../IconButton-DHm-hucF.js";
33
+ import { B as D } from "../../../Box-B0YSYLco.js";
34
+ import { C as pe } from "../../../CircularProgress-xZA3lvba.js";
35
35
  const i = ({
36
- label: T,
36
+ label: x,
37
37
  value: r,
38
- showCopyBtn: I
38
+ showCopyBtn: k
39
39
  }) => {
40
- const { showAlertMessage: N } = q();
41
- return /* @__PURE__ */ o(k, { children: [
42
- /* @__PURE__ */ e(a, { size: 5, className: "d-flex items-center", children: /* @__PURE__ */ e("strong", { children: T }) }),
43
- /* @__PURE__ */ o(a, { size: 7, className: "fw500 text-left d-flex items-center", children: [
40
+ const { showAlertMessage: I } = V();
41
+ return /* @__PURE__ */ o(v, { children: [
42
+ /* @__PURE__ */ e(p, { size: 5, className: "d-flex items-center", children: /* @__PURE__ */ e("strong", { children: x }) }),
43
+ /* @__PURE__ */ o(p, { size: 7, className: "fw500 text-left d-flex items-center", children: [
44
44
  r,
45
- I && /* @__PURE__ */ e(D, { onClick: () => {
46
- navigator.clipboard.writeText(r), N({
47
- message: `${T} has been copied successfully.`,
45
+ k && /* @__PURE__ */ e(S, { onClick: () => {
46
+ navigator.clipboard.writeText(r), I({
47
+ message: `${x} has been copied successfully.`,
48
48
  type: "success"
49
49
  });
50
- }, children: /* @__PURE__ */ e(le, { fontSize: "small", color: "primary" }) })
50
+ }, children: /* @__PURE__ */ e(se, { fontSize: "small", color: "primary" }) })
51
51
  ] })
52
52
  ] });
53
- }, qe = ({
54
- AccountItem: T,
53
+ }, Je = ({
54
+ AccountItem: x,
55
55
  data: r,
56
- appKey: I,
57
- appKeyEur: N,
58
- paymentWidgetSrcUrl: u,
56
+ appKey: k,
57
+ appKeyEur: I,
58
+ paymentWidgetSrcUrl: c,
59
59
  dispatch: F,
60
- iban: J,
60
+ iban: q,
61
+ navigate: J,
61
62
  from: K
62
63
  }) => {
63
- var O;
64
- const [Q, w] = c(!1), [X, U] = c(!1), [p, _] = c(!1), [W, x] = c(""), [A, h] = c(null), [P, f] = c(null), [d, l] = c(!1), { showAlertMessage: C } = q(), s = K === ce, b = j(
64
+ var _;
65
+ const [Q, M] = a(!1), [X, Y] = a(!1), [f, U] = a(!1), [P, T] = a(""), [N, h] = a(null), [R, y] = a(null), [u, l] = a(!1), { showAlertMessage: b } = V(), s = K === ce, C = $(
65
66
  (t) => t.order
66
- ), B = b.v4Payment ?? null, y = b.v4PaymentLoader ?? !1, Y = j((t) => t.session.uuid), Z = () => {
67
- x(""), h(null), f(null), l(!1), _(!0);
68
- }, z = () => {
69
- _(!1), x(""), h(null), f(null), l(!1);
70
- }, ee = () => {
71
- const t = Number(W);
72
- if (!W || Number.isNaN(t) || t <= 0) {
73
- C({
67
+ ), w = C.v4Payment ?? null, g = C.v4PaymentLoader ?? !1, Z = $((t) => t.session.uuid), ee = () => {
68
+ T(""), h(null), y(null), l(!1), U(!0);
69
+ }, W = () => {
70
+ U(!1), T(""), h(null), y(null), l(!1);
71
+ }, re = () => {
72
+ const t = Number(P);
73
+ if (!P || Number.isNaN(t) || t <= 0) {
74
+ b({
74
75
  message: "Please enter a valid amount greater than zero.",
75
76
  type: "error"
76
77
  });
77
78
  return;
78
79
  }
79
- if (!I) {
80
- C({
80
+ if (!k) {
81
+ b({
81
82
  message: "Unable to identify application key.",
82
83
  type: "error"
83
84
  });
84
85
  return;
85
86
  }
86
- if (!N) {
87
- C({
87
+ if (!I) {
88
+ b({
88
89
  message: "Unable to identify application EUR key.",
89
90
  type: "error"
90
91
  });
91
92
  return;
92
93
  }
93
- const te = Math.round(t * 100);
94
+ const ie = Math.round(t * 100);
94
95
  F(
95
- ie({
96
- apiKey: N,
96
+ le({
97
+ apiKey: I,
97
98
  ccy: "EUR",
98
99
  transaction_type: "CHECKOUT",
99
- amount: te,
100
- uuid: Y ?? void 0
100
+ amount: ie,
101
+ uuid: Z ?? void 0
101
102
  })
102
103
  ), l(!0);
103
- }, re = () => {
104
+ }, oe = () => {
104
105
  if (s) {
105
- Z();
106
+ ee();
106
107
  return;
107
108
  }
108
- w(!0);
109
- }, n = M(() => B ?? null, [B]), m = M(() => {
109
+ M(!0);
110
+ }, n = B(() => w ?? null, [w]), d = B(() => {
110
111
  var t;
111
112
  return n ? (n == null ? void 0 : n.checkout_id) ?? ((t = n == null ? void 0 : n.order) == null ? void 0 : t.provider_token) ?? (n == null ? void 0 : n.provider_token) ?? null : null;
112
- }, [n]), E = ((O = n == null ? void 0 : n.order) == null ? void 0 : O.order_id) ?? null, oe = M(() => u ? u.endsWith("/") ? u : `${u}/` : "", [u]), ne = M(() => P ? `/?paymentId=${encodeURIComponent(P)}` : "/", [P]);
113
- return R(() => {
114
- d && m && (h(m), f(E ?? null), l(!1));
115
- }, [d, m, E]), R(() => {
116
- d && p && (!m || A || (h(m), f(E ?? null), l(!1)));
113
+ }, [n]), A = ((_ = n == null ? void 0 : n.order) == null ? void 0 : _.order_id) ?? null, ne = B(() => c ? c.endsWith("/") ? c : `${c}/` : "", [c]), te = B(() => R ? `/?paymentId=${encodeURIComponent(R)}` : "/", [R]);
114
+ return E(() => {
115
+ u && d && (h(d), y(A ?? null), l(!1));
116
+ }, [u, d, A]), E(() => {
117
+ u && f && (!d || N || (h(d), y(A ?? null), l(!1)));
117
118
  }, [
119
+ u,
120
+ f,
118
121
  d,
119
- p,
120
- m,
121
- A,
122
- E
123
- ]), R(() => {
124
- s && (p || (x(""), h(null), f(null)));
125
- }, [s, p]), R(() => {
126
- if (d && !y) {
127
- if (B) {
122
+ N,
123
+ A
124
+ ]), E(() => {
125
+ s && (f || (T(""), h(null), y(null)));
126
+ }, [s, f]), E(() => {
127
+ if (u && !g) {
128
+ if (w) {
128
129
  l(!1);
129
130
  return;
130
131
  }
131
- b.error && (C({
132
- message: b.error,
132
+ C.error && (b({
133
+ message: C.error,
133
134
  type: "error"
134
135
  }), l(!1));
135
136
  }
136
137
  }, [
137
- d,
138
- y,
139
- B,
140
- b.error,
141
- C
142
- ]), /* @__PURE__ */ e(k, { children: r.accountNumber ? /* @__PURE__ */ o(k, { children: [
143
- /* @__PURE__ */ e(T, { type: "iban", data: r, children: /* @__PURE__ */ o(a, { my: 1, spacing: 2, container: !0, children: [
144
- /* @__PURE__ */ e(a, { size: { md: 6 }, children: /* @__PURE__ */ e(g, { fullWidth: !0, onClick: re, children: s ? "Topup" : "Deposit" }) }),
145
- /* @__PURE__ */ e(a, { size: { md: 3 }, children: /* @__PURE__ */ e(g, { fullWidth: !0, onClick: () => U(!0), children: "Send" }) }),
146
- /* @__PURE__ */ e(a, { size: { md: 3 }, children: /* @__PURE__ */ e(g, { fullWidth: !0, onClick: () => w(!0), children: "Receive" }) })
138
+ u,
139
+ g,
140
+ w,
141
+ C.error,
142
+ b
143
+ ]), /* @__PURE__ */ e(v, { children: r.accountNumber ? /* @__PURE__ */ o(v, { children: [
144
+ /* @__PURE__ */ e(x, { type: "iban", data: r, children: /* @__PURE__ */ o(p, { my: 1, spacing: 2, container: !0, alignItems: "center", children: [
145
+ /* @__PURE__ */ e(p, { size: { md: 6, xs: 12 }, children: /* @__PURE__ */ e(z, { fullWidth: !0, onClick: oe, children: s ? "Topup" : "Deposit" }) }),
146
+ /* @__PURE__ */ e(
147
+ p,
148
+ {
149
+ size: { md: 6, xs: 12 },
150
+ sx: {
151
+ display: "flex",
152
+ justifyContent: { md: "flex-end", xs: "flex-start" },
153
+ mt: { md: 0, xs: 1.5 }
154
+ },
155
+ children: /* @__PURE__ */ e(
156
+ m,
157
+ {
158
+ component: "button",
159
+ sx: {
160
+ background: "none",
161
+ border: "none",
162
+ padding: 0,
163
+ cursor: "pointer",
164
+ color: "primary.main",
165
+ textDecoration: "underline",
166
+ fontSize: 14
167
+ },
168
+ onClick: () => J("/history"),
169
+ children: "History"
170
+ }
171
+ )
172
+ }
173
+ )
147
174
  ] }) }),
148
175
  /* @__PURE__ */ o(
149
- G,
176
+ j,
150
177
  {
151
178
  open: Q,
152
179
  fullWidth: !0,
153
- onClose: () => w(!1),
154
- TransitionComponent: $,
180
+ onClose: () => M(!1),
181
+ TransitionComponent: L,
155
182
  maxWidth: "md",
156
183
  children: [
157
184
  /* @__PURE__ */ o(H, { className: "buy-modal-text-color", children: [
158
- /* @__PURE__ */ e(v, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ e("strong", { children: "Deposit / Receive" }) }),
185
+ /* @__PURE__ */ e(m, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ e("strong", { children: "Deposit / Receive" }) }),
159
186
  /* @__PURE__ */ e(
160
- D,
187
+ S,
161
188
  {
162
189
  "aria-label": "close",
163
- onClick: () => w(!1),
190
+ onClick: () => M(!1),
164
191
  className: "menu-buttons",
165
- children: /* @__PURE__ */ e(L, {})
192
+ children: /* @__PURE__ */ e(O, {})
166
193
  }
167
194
  )
168
195
  ] }),
169
- /* @__PURE__ */ o(V, { dividers: !0, children: [
170
- /* @__PURE__ */ e(v, { variant: "h5", align: "center", children: /* @__PURE__ */ e("strong", { children: "Account Details" }) }),
171
- /* @__PURE__ */ o(a, { container: !0, spacing: 2, sx: { padding: "5% 15%" }, children: [
196
+ /* @__PURE__ */ o(G, { dividers: !0, children: [
197
+ /* @__PURE__ */ e(m, { variant: "h5", align: "center", children: /* @__PURE__ */ e("strong", { children: "Account Details" }) }),
198
+ /* @__PURE__ */ o(p, { container: !0, spacing: 2, sx: { padding: "5% 15%" }, children: [
172
199
  /* @__PURE__ */ e(
173
200
  i,
174
201
  {
@@ -200,7 +227,7 @@ const i = ({
200
227
  showCopyBtn: !0
201
228
  }
202
229
  ),
203
- r.currency === se && /* @__PURE__ */ o(k, { children: [
230
+ r.currency === ae && /* @__PURE__ */ o(v, { children: [
204
231
  /* @__PURE__ */ e(
205
232
  i,
206
233
  {
@@ -232,50 +259,50 @@ const i = ({
232
259
  }
233
260
  ),
234
261
  s && /* @__PURE__ */ o(
235
- G,
262
+ j,
236
263
  {
237
- open: p,
264
+ open: f,
238
265
  fullWidth: !0,
239
266
  maxWidth: "sm",
240
- onClose: z,
241
- TransitionComponent: $,
267
+ onClose: W,
268
+ TransitionComponent: L,
242
269
  children: [
243
270
  /* @__PURE__ */ o(H, { className: "buy-modal-text-color", children: [
244
- /* @__PURE__ */ e(v, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ e("strong", { children: "E-Wallet Topup" }) }),
271
+ /* @__PURE__ */ e(m, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ e("strong", { children: "E-Wallet Topup" }) }),
245
272
  /* @__PURE__ */ e(
246
- D,
273
+ S,
247
274
  {
248
275
  "aria-label": "close",
249
- onClick: z,
276
+ onClick: W,
250
277
  className: "menu-buttons",
251
- children: /* @__PURE__ */ e(L, {})
278
+ children: /* @__PURE__ */ e(O, {})
252
279
  }
253
280
  )
254
281
  ] }),
255
- /* @__PURE__ */ e(V, { dividers: !0, children: A ? /* @__PURE__ */ o(S, { mt: 2, children: [
256
- /* @__PURE__ */ e(v, { variant: "body1", mb: 2, children: "Complete your payment using the secure widget below." }),
282
+ /* @__PURE__ */ e(G, { dividers: !0, children: N ? /* @__PURE__ */ o(D, { mt: 2, children: [
283
+ /* @__PURE__ */ e(m, { variant: "body1", mb: 2, children: "Complete your payment using the secure widget below." }),
257
284
  /* @__PURE__ */ e(
258
- ue,
285
+ de,
259
286
  {
260
- checkoutId: A,
261
- srcUrl: oe,
262
- onResultUrl: ne
287
+ checkoutId: N,
288
+ srcUrl: ne,
289
+ onResultUrl: te
263
290
  }
264
291
  )
265
- ] }) : /* @__PURE__ */ o(k, { children: [
266
- /* @__PURE__ */ e(v, { variant: "body1", children: "Enter the amount you would like to add to this E-Wallet." }),
292
+ ] }) : /* @__PURE__ */ o(v, { children: [
293
+ /* @__PURE__ */ e(m, { variant: "body1", children: "Enter the amount you would like to add to this E-Wallet." }),
267
294
  /* @__PURE__ */ e(
268
- ae,
295
+ ue,
269
296
  {
270
297
  label: "Topup Amount",
271
298
  type: "number",
272
- value: W,
273
- onChangeHandler: (t) => x(t),
299
+ value: P,
300
+ onChangeHandler: (t) => T(t),
274
301
  inputProps: { min: "0", step: "0.01" }
275
302
  }
276
303
  ),
277
304
  /* @__PURE__ */ o(
278
- S,
305
+ D,
279
306
  {
280
307
  mt: 4,
281
308
  display: "flex",
@@ -283,22 +310,22 @@ const i = ({
283
310
  gap: 2,
284
311
  children: [
285
312
  /* @__PURE__ */ e(
286
- g,
313
+ z,
287
314
  {
288
315
  variantType: "secondary",
289
- onClick: z,
290
- disabled: y,
316
+ onClick: W,
317
+ disabled: g,
291
318
  children: "Cancel"
292
319
  }
293
320
  ),
294
321
  /* @__PURE__ */ e(
295
- g,
322
+ z,
296
323
  {
297
- onClick: ee,
298
- disabled: y,
324
+ onClick: re,
325
+ disabled: g,
299
326
  children: /* @__PURE__ */ o("strong", { children: [
300
- y ? /* @__PURE__ */ e(
301
- me,
327
+ g ? /* @__PURE__ */ e(
328
+ pe,
302
329
  {
303
330
  size: 18,
304
331
  color: "inherit",
@@ -317,18 +344,18 @@ const i = ({
317
344
  }
318
345
  ),
319
346
  /* @__PURE__ */ e(
320
- de,
347
+ me,
321
348
  {
322
- iban: J,
349
+ iban: q,
323
350
  data: r,
324
351
  dispatch: F,
325
- appKey: I,
352
+ appKey: k,
326
353
  openModal: X,
327
- setOpenModal: U
354
+ setOpenModal: Y
328
355
  }
329
356
  )
330
357
  ] }) : /* @__PURE__ */ o(
331
- S,
358
+ D,
332
359
  {
333
360
  className: "text-center",
334
361
  sx: {
@@ -354,5 +381,5 @@ const i = ({
354
381
  ) });
355
382
  };
356
383
  export {
357
- qe as default
384
+ Je as default
358
385
  };
@@ -1,30 +1,30 @@
1
- import { jsxs as n, Fragment as V, jsx as e } from "react/jsx-runtime";
2
- import { useState as W, useEffect as d } from "react";
3
- import { u as C } from "../../../react-redux-C7I9-1M6.js";
1
+ import { jsxs as n, Fragment as J, jsx as e } from "react/jsx-runtime";
2
+ import { useState as N, useEffect as m } from "react";
3
+ import { u as W } from "../../../react-redux-C7I9-1M6.js";
4
4
  import "../../../constants-Dtk3Gd0Y.js";
5
- import { u as ce, c as le, d as me } from "../../../index-BQNs1mvn.js";
6
- import { u as de, a as ue, b as pe, c as he, d as fe, e as ge } from "../../../wallet-BxwOFeSW.js";
7
- import { u as be, c as xe, d as _e, e as Ne } from "../../../bank-BM66KfAv.js";
8
- import { LINKED_WALLET_TOOLTIP as We, CONNECTED_WALLET_TOOLTIP as Ce, WALLET_ICON as we, DELETE_ICON as ye } from "../../../util/constants.js";
9
- import { M as X } from "../../../tooltip-3UvETWtS.js";
10
- import { I as Y } from "../../../Info-BVeUSPyk.js";
11
- import { C as Ie } from "../../../Cancel-4lT7GZUA.js";
5
+ import { u as se, c as ie, d as ce } from "../../../index-BQNs1mvn.js";
6
+ import { u as le, a as me, b as de, c as ue, d as pe, e as he } from "../../../wallet-BxwOFeSW.js";
7
+ import { u as fe, c as ge, d as be, e as _e } from "../../../bank-BM66KfAv.js";
8
+ import { LINKED_WALLET_TOOLTIP as Ne, CONNECTED_WALLET_TOOLTIP as We, WALLET_ICON as xe, DELETE_ICON as Ce } from "../../../util/constants.js";
9
+ import { M as Q } from "../../../tooltip-3UvETWtS.js";
10
+ import { I as V } from "../../../Info-BVeUSPyk.js";
11
+ import { C as we } from "../../../Cancel-4lT7GZUA.js";
12
12
  import { D as ke } from "../../../Delete-jpMstGIF.js";
13
- import { C as ve } from "../../../Close-CNwiMz_O.js";
14
- import Ae from "../../Shared/transition.js";
15
- import Z from "../Shared/inputField.js";
13
+ import { C as Ie } from "../../../Close-CNwiMz_O.js";
14
+ import ve from "../../Shared/transition.js";
15
+ import X from "../Shared/inputField.js";
16
16
  import De from "../Shared/addBank.js";
17
- import Te from "../Shared/connectPlaidBank.js";
18
- import Le from "../Shared/ConnectWallet/index.js";
19
- import Be from "./iban.js";
20
- import Se from "./eWallet.js";
21
- import { useSnackBarContext as ze } from "../../../context/snackBarContext.js";
22
- import U from "../Shared/appButton.js";
23
- import { AuthInnerContainer as z } from "../Shared/Container/index.js";
17
+ import Ae from "../Shared/connectPlaidBank.js";
18
+ import ye from "../Shared/ConnectWallet/index.js";
19
+ import Le from "./iban.js";
20
+ import Te from "./eWallet.js";
21
+ import { useSnackBarContext as Be } from "../../../context/snackBarContext.js";
22
+ import Y from "../Shared/appButton.js";
23
+ import { AuthInnerContainer as B } from "../Shared/Container/index.js";
24
24
  import "../../../index-DlQqWbXG.js";
25
- import Ee from "../../../hoc/withThemeProvider.js";
25
+ import Se from "../../../hoc/withThemeProvider.js";
26
26
  import "../Shared/Auth/otpForm.js";
27
- import Re from "../../../hooks/useEverestDispatch.js";
27
+ import Ee from "../../../hooks/useEverestDispatch.js";
28
28
  import "../../../util/conversions.js";
29
29
  import "../../../index-CAoLi5Qq.js";
30
30
  import "../../../react-webcam-B3cXh1XT.js";
@@ -32,20 +32,20 @@ import "../Shared/pin.js";
32
32
  import "../../../moment-h96o7c8I.js";
33
33
  import "../../../index.esm-BsMAMhYW.js";
34
34
  import "../../../index-ceeCtFuh.js";
35
- import { useDialogContext as qe } from "../../../context/dialogContext.js";
35
+ import { useDialogContext as Re } from "../../../context/dialogContext.js";
36
36
  import { B as s } from "../../../Box-B0YSYLco.js";
37
- import { G as c } from "../../../Grid-CFe3amXO.js";
38
- import { T as i } from "../../../Typography-pAaje37G.js";
39
- import { I as w } from "../../../IconButton-DHm-hucF.js";
40
- import { C as y } from "../../../CircularProgress-xZA3lvba.js";
41
- import { B as Pe } from "../../../Button-Df4vgU24.js";
42
- import { S as Oe } from "../../../Stack-k55YTxET.js";
43
- import { D as $e, a as Me } from "../../../DialogContent-BMwlOnbW.js";
44
- import { D as He } from "../../../DialogTitle-CfS0bb2K.js";
45
- import '../../../assets/index3.css';const Fe = "_container_arwo8_1", je = "_heading_arwo8_27", r = {
46
- container: Fe,
37
+ import { G as d } from "../../../Grid-CFe3amXO.js";
38
+ import { T as l } from "../../../Typography-pAaje37G.js";
39
+ import { I as x } from "../../../IconButton-DHm-hucF.js";
40
+ import { C } from "../../../CircularProgress-xZA3lvba.js";
41
+ import { B as qe } from "../../../Button-Df4vgU24.js";
42
+ import { S as ze } from "../../../Stack-k55YTxET.js";
43
+ import { D as Pe, a as Oe } from "../../../DialogContent-BMwlOnbW.js";
44
+ import { D as $e } from "../../../DialogTitle-CfS0bb2K.js";
45
+ import '../../../assets/index3.css';const Me = "_container_arwo8_1", He = "_heading_arwo8_27", o = {
46
+ container: Me,
47
47
  "inner-container": "_inner-container_arwo8_13",
48
- heading: je,
48
+ heading: He,
49
49
  "account-item": "_account-item_arwo8_41",
50
50
  "account-item-text": "_account-item-text_arwo8_71",
51
51
  "primary-color": "_primary-color_arwo8_81",
@@ -54,151 +54,134 @@ import '../../../assets/index3.css';const Fe = "_container_arwo8_1", je = "_head
54
54
  "remove-icon": "_remove-icon_arwo8_107",
55
55
  "delete-disable": "_delete-disable_arwo8_121",
56
56
  "confirm-edit": "_confirm-edit_arwo8_137"
57
- }, Ge = ({
58
- baseUrl: E,
59
- checkoutSdkKey: R,
60
- appKey: q,
61
- appKeyEur: P,
62
- paymentWidgetSrcUrl: O,
63
- navigate: $
57
+ }, Fe = ({
58
+ baseUrl: S,
59
+ checkoutSdkKey: E,
60
+ appKey: R,
61
+ appKeyEur: q,
62
+ paymentWidgetSrcUrl: z,
63
+ navigate: P
64
64
  }) => {
65
- const o = Re(), { showAlertMessage: l } = ze(), { openDialog: I } = qe(), k = C((t) => t.app.features), h = C(ce), ee = h.loader, u = h.message, M = h.banks, H = h.iban, [F, j] = W(!1), [te, f] = W(!1), [v, ne] = W(""), [A, re] = W(""), G = C(le), K = G.data, { error: D, message: T, loader: L } = G, J = C(me), g = J.data, {
66
- error: B,
67
- message: S,
68
- loader: oe
69
- } = J;
70
- d(() => {
65
+ const a = Ee(), { showAlertMessage: i } = Be(), { openDialog: w } = Re(), k = W((t) => t.app.features), h = W(se), Z = h.loader, u = h.message, O = h.banks, $ = h.iban, [M, H] = N(!1), [U, f] = N(!1), [I, ee] = N(""), [v, te] = N(""), F = W(ie), j = F.data, { error: D, message: A, loader: y } = F, G = W(ce), g = G.data, {
66
+ error: L,
67
+ message: T,
68
+ loader: ne
69
+ } = G;
70
+ m(() => {
71
71
  if (u) {
72
- j(!1);
72
+ H(!1);
73
73
  const t = typeof u == "string" ? u : String(u);
74
- (t.includes("created") || t.includes("successfully") || t.includes("Account")) && l({ message: t, type: "success" });
74
+ (t.includes("created") || t.includes("successfully") || t.includes("Account")) && i({ message: t, type: "success" });
75
75
  }
76
- }, [u]), d(() => {
77
- B && l({ message: B });
78
- }, [B]), d(() => {
79
- S && l({ message: S, type: "success" });
80
- }, [S]), d(() => {
81
- D && l({ message: D });
82
- }, [D]), d(() => {
83
- T && (f(!1), l({ message: T, type: "success" }));
84
- }, [T]), d(() => (K.length <= 0 && o(de()), g.length <= 0 && o(ue()), o(be()), o(xe()), () => {
85
- o(pe("")), o(he(""));
76
+ }, [u]), m(() => {
77
+ L && i({ message: L });
78
+ }, [L]), m(() => {
79
+ T && i({ message: T, type: "success" });
80
+ }, [T]), m(() => {
81
+ D && i({ message: D });
82
+ }, [D]), m(() => {
83
+ A && (f(!1), i({ message: A, type: "success" }));
84
+ }, [A]), m(() => (j.length <= 0 && a(le()), g.length <= 0 && a(me()), a(fe()), a(ge()), () => {
85
+ a(de("")), a(ue(""));
86
86
  }), []);
87
- const ae = () => {
87
+ const oe = () => {
88
+ if (!I)
89
+ return i({ message: "Please provide the wallet name" }), !1;
88
90
  if (!v)
89
- return l({ message: "Please provide the wallet name" }), !1;
90
- if (!A)
91
- return l({
91
+ return i({
92
92
  message: "Please provide the wallet private key"
93
93
  }), !1;
94
- L || o(
95
- fe({
96
- name: v,
97
- privatekey: Buffer.from(A).toString("base64")
94
+ y || a(
95
+ pe({
96
+ name: I,
97
+ privatekey: Buffer.from(v).toString("base64")
98
98
  })
99
99
  );
100
- }, se = (t) => {
101
- I({
102
- icon: ye,
100
+ }, ae = (t) => {
101
+ w({
102
+ icon: Ce,
103
103
  height: "450px",
104
104
  title: "Are you sure you want to delete?",
105
105
  message: "This action cannot be undone.",
106
106
  onConfirm: () => {
107
- o(Ne(t));
107
+ a(_e(t));
108
108
  },
109
109
  cancelButtonShow: !0
110
110
  });
111
111
  }, p = ({
112
112
  data: t,
113
- type: a,
113
+ type: r,
114
114
  children: b
115
115
  }) => {
116
- let m, x, _, N;
117
- return a === "connectedWallet" || a === "linkedWallet" ? "name" in t && "address" in t && (m = t.name, x = t.address) : a === "iban" ? ("accountName" in t && "accountNumber" in t && (m = t.accountName, x = `${t.ownerFirstName} ${t.ownerLastName}: ${t.accountNumber}`), "balance" in t && "currency" in t && (_ = t.balance, N = t.currency)) : ("accountName" in t && "accountNumber" in t && (m = t.accountName, x = t.accountNumber), "balance" in t && "currency" in t && (_ = t.balance, N = t.currency)), /* @__PURE__ */ n(s, { className: r["account-item"], children: [
118
- a === "bankAccount" && F && "id" in t && /* @__PURE__ */ e(
119
- w,
116
+ let c, _;
117
+ return r === "connectedWallet" || r === "linkedWallet" ? "name" in t && "address" in t && (c = t.name, _ = t.address) : r === "iban" ? "accountName" in t && "accountNumber" in t && (c = t.accountName, _ = `${t.ownerFirstName} ${t.ownerLastName}: ${t.accountNumber}`) : "accountName" in t && "accountNumber" in t && (c = t.accountName, _ = t.accountNumber), /* @__PURE__ */ n(s, { className: o["account-item"], children: [
118
+ r === "bankAccount" && M && "id" in t && /* @__PURE__ */ e(
119
+ x,
120
120
  {
121
- className: r["remove-icon"],
122
- onClick: () => se(t.id),
123
- children: /* @__PURE__ */ e(Ie, {})
121
+ className: o["remove-icon"],
122
+ onClick: () => ae(t.id),
123
+ children: /* @__PURE__ */ e(we, {})
124
124
  }
125
125
  ),
126
- /* @__PURE__ */ n(c, { container: !0, width: "100%", alignItems: "center", children: [
127
- /* @__PURE__ */ e(c, { size: 8, children: /* @__PURE__ */ n(c, { container: !0, width: "100%", children: [
128
- /* @__PURE__ */ e(c, { size: { xs: 2, md: 1.5 }, className: "content-center", children: /* @__PURE__ */ e("img", { src: we, alt: "Icon", height: 28, width: 28 }) }),
129
- /* @__PURE__ */ n(c, { size: { xs: 10, md: 10.5 }, children: [
130
- /* @__PURE__ */ e(
131
- i,
132
- {
133
- variant: "body1",
134
- component: "p",
135
- className: `${r["account-item-text"]} ${r["primary-color"]}`,
136
- children: /* @__PURE__ */ e("strong", { children: m })
137
- }
138
- ),
139
- /* @__PURE__ */ e(
140
- i,
141
- {
142
- variant: "caption",
143
- component: "p",
144
- className: `${r["account-item-text"]} ${r["secondary-color"]}`,
145
- children: /* @__PURE__ */ e("strong", { children: x })
146
- }
147
- )
148
- ] })
149
- ] }) }),
150
- typeof _ == "number" && N && /* @__PURE__ */ e(c, { size: 4, children: /* @__PURE__ */ n(s, { sx: { textAlign: "right" }, children: [
126
+ /* @__PURE__ */ n(d, { container: !0, width: "100%", children: [
127
+ /* @__PURE__ */ e(d, { size: { xs: 2, md: 1.5 }, className: "content-center", children: /* @__PURE__ */ e("img", { src: xe, alt: "Icon", height: 28, width: 28 }) }),
128
+ /* @__PURE__ */ n(d, { size: { xs: 10, md: 10.5 }, children: [
151
129
  /* @__PURE__ */ e(
152
- i,
130
+ l,
153
131
  {
154
- variant: "caption",
155
- sx: { textTransform: "uppercase", color: "text.secondary" },
156
- children: "Balance"
132
+ variant: "body1",
133
+ component: "p",
134
+ className: `${o["account-item-text"]} ${o["primary-color"]}`,
135
+ children: /* @__PURE__ */ e("strong", { children: c })
157
136
  }
158
137
  ),
159
- /* @__PURE__ */ n(i, { variant: "subtitle1", color: "primary", children: [
160
- _,
161
- " ",
162
- N
163
- ] })
164
- ] }) })
138
+ /* @__PURE__ */ e(
139
+ l,
140
+ {
141
+ variant: "caption",
142
+ component: "p",
143
+ className: `${o["account-item-text"]} ${o["secondary-color"]}`,
144
+ children: /* @__PURE__ */ e("strong", { children: _ })
145
+ }
146
+ )
147
+ ] })
165
148
  ] }),
166
149
  b
167
150
  ] });
168
- }, ie = (t) => {
169
- const a = g.length;
151
+ }, re = (t) => {
152
+ const r = g.length;
170
153
  let b = !1;
171
- for (let m = 0; m < a; m++)
172
- if (g[m].address.toLowerCase() === t.toLowerCase()) {
154
+ for (let c = 0; c < r; c++)
155
+ if (g[c].address.toLowerCase() === t.toLowerCase()) {
173
156
  b = !0;
174
157
  break;
175
158
  }
176
- b ? l({
159
+ b ? i({
177
160
  message: "This wallet address is already connected."
178
- }) : o(ge(t));
179
- }, Q = (t) => {
180
- o(_e({ currency: t }));
161
+ }) : a(he(t));
162
+ }, K = (t) => {
163
+ a(be({ currency: t }));
181
164
  };
182
- return /* @__PURE__ */ n(V, { children: [
183
- /* @__PURE__ */ e(s, { className: r.container, children: /* @__PURE__ */ n(c, { spacing: 2, container: !0, width: "100%", children: [
184
- /* @__PURE__ */ n(c, { size: { md: 6, xs: 12 }, children: [
185
- /* @__PURE__ */ n(z, { p: 3, children: [
165
+ return /* @__PURE__ */ n(J, { children: [
166
+ /* @__PURE__ */ e(s, { className: o.container, children: /* @__PURE__ */ n(d, { spacing: 2, container: !0, width: "100%", children: [
167
+ /* @__PURE__ */ n(d, { size: { md: 6, xs: 12 }, children: [
168
+ /* @__PURE__ */ n(B, { p: 3, children: [
186
169
  /* @__PURE__ */ e(
187
- i,
170
+ l,
188
171
  {
189
- className: r.heading,
172
+ className: o.heading,
190
173
  variant: "h6",
191
174
  component: "span",
192
175
  children: /* @__PURE__ */ e("strong", { children: "Linked Wallets" })
193
176
  }
194
177
  ),
195
178
  /* @__PURE__ */ e(
196
- X,
179
+ Q,
197
180
  {
198
- title: /* @__PURE__ */ e(s, { sx: { whiteSpace: "pre-line" }, children: We }),
181
+ title: /* @__PURE__ */ e(s, { sx: { whiteSpace: "pre-line" }, children: Ne }),
199
182
  placement: "bottom",
200
- children: /* @__PURE__ */ e(w, { className: r["info-icon"], children: /* @__PURE__ */ e(
201
- Y,
183
+ children: /* @__PURE__ */ e(x, { className: o["info-icon"], children: /* @__PURE__ */ e(
184
+ V,
202
185
  {
203
186
  sx: {
204
187
  fontSize: "26px",
@@ -208,10 +191,10 @@ import '../../../assets/index3.css';const Fe = "_container_arwo8_1", je = "_head
208
191
  ) })
209
192
  }
210
193
  ),
211
- L && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(y, { size: 50 }) }),
212
- K.map((t, a) => /* @__PURE__ */ e(p, { type: "linkedWallet", data: t }, a)),
194
+ y && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(C, { size: 50 }) }),
195
+ j.map((t, r) => /* @__PURE__ */ e(p, { type: "linkedWallet", data: t }, r)),
213
196
  /* @__PURE__ */ e(
214
- U,
197
+ Y,
215
198
  {
216
199
  sx: { mt: 4 },
217
200
  onClick: () => f(!0),
@@ -220,23 +203,23 @@ import '../../../assets/index3.css';const Fe = "_container_arwo8_1", je = "_head
220
203
  }
221
204
  )
222
205
  ] }),
223
- /* @__PURE__ */ n(z, { p: 3, mt: 2, children: [
206
+ /* @__PURE__ */ n(B, { p: 3, mt: 2, children: [
224
207
  /* @__PURE__ */ e(
225
- i,
208
+ l,
226
209
  {
227
- className: r.heading,
210
+ className: o.heading,
228
211
  variant: "h6",
229
212
  component: "span",
230
213
  children: /* @__PURE__ */ e("strong", { children: "Connected Wallets" })
231
214
  }
232
215
  ),
233
216
  /* @__PURE__ */ e(
234
- X,
217
+ Q,
235
218
  {
236
- title: /* @__PURE__ */ e(s, { sx: { whiteSpace: "pre-line" }, children: Ce }),
219
+ title: /* @__PURE__ */ e(s, { sx: { whiteSpace: "pre-line" }, children: We }),
237
220
  placement: "bottom",
238
- children: /* @__PURE__ */ e(w, { className: r["info-icon"], children: /* @__PURE__ */ e(
239
- Y,
221
+ children: /* @__PURE__ */ e(x, { className: o["info-icon"], children: /* @__PURE__ */ e(
222
+ V,
240
223
  {
241
224
  sx: {
242
225
  fontSize: "26px",
@@ -246,115 +229,115 @@ import '../../../assets/index3.css';const Fe = "_container_arwo8_1", je = "_head
246
229
  ) })
247
230
  }
248
231
  ),
249
- oe && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(y, { size: 50 }) }),
250
- g.map((t, a) => /* @__PURE__ */ e(p, { type: "connectedWallet", data: t }, a)),
232
+ ne && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(C, { size: 50 }) }),
233
+ g.map((t, r) => /* @__PURE__ */ e(p, { type: "connectedWallet", data: t }, r)),
251
234
  /* @__PURE__ */ e(
252
- Le,
235
+ ye,
253
236
  {
254
- addressHandler: ie,
237
+ addressHandler: re,
255
238
  btnClass: "wallet-btn"
256
239
  }
257
240
  )
258
241
  ] })
259
242
  ] }),
260
- /* @__PURE__ */ n(c, { size: { md: 6, xs: 12 }, children: [
243
+ /* @__PURE__ */ n(d, { size: { md: 6, xs: 12 }, children: [
261
244
  k.eWallet && /* @__PURE__ */ e(s, { mb: 2, children: /* @__PURE__ */ e(
262
- Se,
245
+ Te,
263
246
  {
264
- openDialog: I,
265
- dispatch: o,
266
- iban: H,
267
- baseUrl: E,
268
- checkoutSdkKey: R,
269
- appKey: q,
270
- appKeyEur: P,
271
- paymentWidgetSrcUrl: O,
272
- navigate: $,
247
+ openDialog: w,
248
+ dispatch: a,
249
+ iban: $,
250
+ baseUrl: S,
251
+ checkoutSdkKey: E,
252
+ appKey: R,
253
+ appKeyEur: q,
254
+ paymentWidgetSrcUrl: z,
255
+ navigate: P,
273
256
  AccountItem: p,
274
- createIbanRequest: Q
257
+ createIbanRequest: K
275
258
  }
276
259
  ) }),
277
260
  k.iban && /* @__PURE__ */ e(
278
- Be,
261
+ Le,
279
262
  {
280
- openDialog: I,
281
- dispatch: o,
282
- iban: H,
283
- baseUrl: E,
284
- checkoutSdkKey: R,
285
- appKey: q,
286
- appKeyEur: P,
287
- paymentWidgetSrcUrl: O,
288
- navigate: $,
263
+ openDialog: w,
264
+ dispatch: a,
265
+ iban: $,
266
+ baseUrl: S,
267
+ checkoutSdkKey: E,
268
+ appKey: R,
269
+ appKeyEur: q,
270
+ paymentWidgetSrcUrl: z,
271
+ navigate: P,
289
272
  AccountItem: p,
290
- createIbanRequest: Q
273
+ createIbanRequest: K
291
274
  }
292
275
  ),
293
- /* @__PURE__ */ e(z, { mt: 2, children: /* @__PURE__ */ n(s, { p: 3, mt: k.iban ? 2 : 0, children: [
294
- /* @__PURE__ */ e(i, { className: r.heading, variant: "h6", children: /* @__PURE__ */ e("strong", { children: "Bank Accounts" }) }),
295
- M.length > 0 && /* @__PURE__ */ n(
296
- Pe,
276
+ /* @__PURE__ */ e(B, { mt: 2, children: /* @__PURE__ */ n(s, { p: 3, mt: k.iban ? 2 : 0, children: [
277
+ /* @__PURE__ */ e(l, { className: o.heading, variant: "h6", children: /* @__PURE__ */ e("strong", { children: "Bank Accounts" }) }),
278
+ O.length > 0 && /* @__PURE__ */ n(
279
+ qe,
297
280
  {
298
- className: `${F ? r["delete-disable"] : r["confirm-edit"]} normal-text`,
281
+ className: `${M ? o["delete-disable"] : o["confirm-edit"]} normal-text`,
299
282
  sx: { mt: 3, mb: 3 },
300
283
  variant: "contained",
301
- onClick: () => j((t) => !t),
284
+ onClick: () => H((t) => !t),
302
285
  children: [
303
286
  /* @__PURE__ */ e(ke, {}),
304
287
  "Delete"
305
288
  ]
306
289
  }
307
290
  ),
308
- ee && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(y, { size: 50 }) }),
309
- M.map((t, a) => /* @__PURE__ */ e(p, { type: "bankAccount", data: t }, a)),
310
- /* @__PURE__ */ n(Oe, { mt: 4, gap: 1, children: [
311
- /* @__PURE__ */ e(Te, {}),
312
- /* @__PURE__ */ e(i, { className: "text-center", variant: "h6", children: /* @__PURE__ */ e("strong", { children: "OR" }) }),
291
+ Z && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(C, { size: 50 }) }),
292
+ O.map((t, r) => /* @__PURE__ */ e(p, { type: "bankAccount", data: t }, r)),
293
+ /* @__PURE__ */ n(ze, { mt: 4, gap: 1, children: [
294
+ /* @__PURE__ */ e(Ae, {}),
295
+ /* @__PURE__ */ e(l, { className: "text-center", variant: "h6", children: /* @__PURE__ */ e("strong", { children: "OR" }) }),
313
296
  /* @__PURE__ */ e(De, {})
314
297
  ] })
315
298
  ] }) })
316
299
  ] })
317
300
  ] }) }),
318
301
  /* @__PURE__ */ n(
319
- $e,
302
+ Pe,
320
303
  {
321
304
  fullWidth: !0,
322
- open: te,
305
+ open: U,
323
306
  onClose: () => f(!1),
324
- TransitionComponent: Ae,
307
+ TransitionComponent: ve,
325
308
  children: [
326
- /* @__PURE__ */ n(He, { className: "buy-modal-text-color", children: [
327
- /* @__PURE__ */ e(i, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ e("strong", { children: "Wallets" }) }),
309
+ /* @__PURE__ */ n($e, { className: "buy-modal-text-color", children: [
310
+ /* @__PURE__ */ e(l, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ e("strong", { children: "Wallets" }) }),
328
311
  /* @__PURE__ */ e(
329
- w,
312
+ x,
330
313
  {
331
314
  "aria-label": "close",
332
315
  onClick: () => f(!1),
333
316
  className: "menu-buttons",
334
- children: /* @__PURE__ */ e(ve, {})
317
+ children: /* @__PURE__ */ e(Ie, {})
335
318
  }
336
319
  )
337
320
  ] }),
338
- /* @__PURE__ */ n(Me, { dividers: !0, children: [
339
- /* @__PURE__ */ e(i, { className: "text-center buy-modal-text-color", variant: "h5", children: /* @__PURE__ */ e("strong", { children: "Add Linked Wallet" }) }),
321
+ /* @__PURE__ */ n(Oe, { dividers: !0, children: [
322
+ /* @__PURE__ */ e(l, { className: "text-center buy-modal-text-color", variant: "h5", children: /* @__PURE__ */ e("strong", { children: "Add Linked Wallet" }) }),
340
323
  /* @__PURE__ */ e(
341
- Z,
324
+ X,
342
325
  {
343
326
  label: "Name",
344
- value: v,
345
- onChangeHandler: (t) => ne(t)
327
+ value: I,
328
+ onChangeHandler: (t) => ee(t)
346
329
  }
347
330
  ),
348
331
  /* @__PURE__ */ e(
349
- Z,
332
+ X,
350
333
  {
351
334
  label: "Private Key",
352
- value: A,
353
- onChangeHandler: (t) => re(t)
335
+ value: v,
336
+ onChangeHandler: (t) => te(t)
354
337
  }
355
338
  ),
356
- /* @__PURE__ */ e(U, { sx: { mt: 4 }, onClick: ae, fullWidth: !0, children: /* @__PURE__ */ e("strong", { children: L ? /* @__PURE__ */ n(V, { children: [
357
- /* @__PURE__ */ e(y, { size: 15, color: "inherit" }),
339
+ /* @__PURE__ */ e(Y, { sx: { mt: 4 }, onClick: oe, fullWidth: !0, children: /* @__PURE__ */ e("strong", { children: y ? /* @__PURE__ */ n(J, { children: [
340
+ /* @__PURE__ */ e(C, { size: 15, color: "inherit" }),
358
341
  " Processing..."
359
342
  ] }) : "Import Wallet" }) })
360
343
  ] })
@@ -362,7 +345,7 @@ import '../../../assets/index3.css';const Fe = "_container_arwo8_1", je = "_head
362
345
  }
363
346
  )
364
347
  ] });
365
- }, Rt = Ee(Ge);
348
+ }, Et = Se(Fe);
366
349
  export {
367
- Rt as default
350
+ Et as default
368
351
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "everest-npm-features",
3
- "version": "0.0.56",
3
+ "version": "0.0.57",
4
4
  "description": "Everest frontend features library.",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",