everest-npm-features 0.0.19 → 0.0.21

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.
@@ -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-DC_VgH01.js";
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 f, useEffect as h } from "react";
3
- import { a as te, u as g } from "../../../react-redux-C7I9-1M6.js";
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-DC_VgH01.js";
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 b } from "../../../IconButton-8B2ygvr4.js";
28
- import { C as N } from "../../../CircularProgress-fePUtoaj.js";
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 = g((t) => t.app.features), u = g(ae), F = u.loader, B = u.message, S = u.banks, G = u.iban, [z, E] = f(!1), [J, W] = f(!1), [x, Q] = f(""), [C, U] = f(""), P = g(ne), M = P.data, { error: k, message: v, loader: D } = P, O = g(se), p = O.data, {
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()), p.length <= 0 && o(oe()), o(de()), () => {
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
- b,
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 = p.length;
114
+ const r = f.length;
115
115
  let d = !1;
116
116
  for (let m = 0; m < r; m++)
117
- if (p[m].address.toLowerCase() === t.toLowerCase()) {
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(b, { className: a["info-icon"], 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(N, { size: 50 }) }),
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: () => W(!0),
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(b, { className: a["info-icon"], 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(N, { size: 50 }) }),
196
- p.map((t, r) => /* @__PURE__ */ e(y, { type: "connectedWallet", data: t }, r)),
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(N, { size: 50 }) }),
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: () => W(!1),
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
- b,
263
+ N,
264
264
  {
265
265
  "aria-label": "close",
266
- onClick: () => W(!1),
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(N, { size: 15, color: "inherit" }),
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-DO2BVre7.js";
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-DO2BVre7.js";
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-DO2BVre7.js";
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-CmBjDnIf.js";
9
+ import { a as g } from "../../../index-DHrWPN34.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-CmBjDnIf.js";
12
+ import { S as D } from "../../../index-DHrWPN34.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-CmBjDnIf.js";
4
+ import { C as e, F as f, M as O, i as d } from "../../../index-DHrWPN34.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 w, u as R } from "../../../react-redux-C7I9-1M6.js";
4
- import { C as z } from "../../../Close-D20PIPiF.js";
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 M from "../../Shared/transition.js";
7
- import { PAYMENT_PROVIDER_OPENPAYD as O } from "../../../util/constants.js";
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 F, b as W } from "../../../index-f15o1nhn.js";
13
- import { a as j } from "../../../bank-D3I5wL2-.js";
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 D } from "../../../Button-DCBtFwk3.js";
27
- import { D as Y, a as _ } from "../../../DialogContent-D8jGp88c.js";
28
- import { D as q } from "../../../DialogTitle-CxbjAJOw.js";
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 L } from "../../../IconButton-8B2ygvr4.js";
29
+ import { I as q } from "../../../IconButton-8B2ygvr4.js";
31
30
  import { G as s } from "../../../Grid2-DX2sucnU.js";
32
- import { C as V } from "../../../CircularProgress-fePUtoaj.js";
33
- const Re = () => {
34
- const x = w(), y = R(F), { loader: h, error: c, message: u } = R(W), { firstName: E, lastName: H } = y, { showAlertMessage: a, snackBar: S } = G(), [T, i] = n(!1), [d, g] = n(""), [p, b] = n(""), [m, N] = n(""), [C, B] = n(""), [l, k] = n(""), [v, A] = n("");
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
- D,
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
- Y,
50
+ G,
53
51
  {
54
- open: T,
52
+ open: S,
55
53
  fullWidth: !0,
56
54
  onClose: () => i(!1),
57
- TransitionComponent: M,
55
+ TransitionComponent: z,
58
56
  children: [
59
- /* @__PURE__ */ o(q, { className: "buy-modal-text-color", children: [
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
- L,
60
+ q,
63
61
  {
64
62
  "aria-label": "close",
65
63
  onClick: () => i(!1),
66
64
  className: "menu-buttons",
67
- children: /* @__PURE__ */ e(z, {})
65
+ children: /* @__PURE__ */ e(w, {})
68
66
  }
69
67
  )
70
68
  ] }),
71
- /* @__PURE__ */ o(_, { className: "bank-modal-content", dividers: !0, children: [
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: m,
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: l,
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
- D,
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 (!m.trim())
131
+ if (!l.trim())
134
132
  return a({ message: "Please provide IBAN" }), !1;
135
- if (m !== C)
133
+ if (l !== C)
136
134
  return a({
137
135
  message: "IBAN and Confirm IBAN should be same"
138
136
  }), !1;
139
- if (!l.trim())
137
+ if (!m.trim())
140
138
  return a({ message: "Please provide routing number" }), !1;
141
- if (l !== v)
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 || x(j({
143
+ h || D(W({
146
144
  accountName: d,
147
- accountNumber: m,
145
+ accountNumber: l,
148
146
  bankName: p,
149
- bicCode: l,
147
+ bicCode: m,
150
148
  ownerFirstName: E,
151
149
  ownerLastName: H,
152
- provider: O
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(V, { size: 15, color: "inherit" }),
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
- Re as default
169
+ Ie as default
172
170
  };