everest-npm-features 0.0.36 → 0.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/{PlayArrow-KBDRjTbR.js → PlayArrow-C6lnbwD4.js} +1 -1
  2. package/dist/{auth-BQ4bZOAL.js → auth-BMzyEvqd.js} +1 -1
  3. package/dist/bank-Bp23LpvN.js +30 -0
  4. package/dist/components/RocketRamp/MinimalKyc/form.js +2 -2
  5. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
  6. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
  7. package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
  8. package/dist/components/RocketRamp/Player/Buy/index.js +5 -5
  9. package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
  10. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
  11. package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
  12. package/dist/components/RocketRamp/Player/Sell/index.js +5 -5
  13. package/dist/components/RocketRamp/Player/SignIn/index.js +2 -2
  14. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
  15. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
  16. package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
  17. package/dist/components/RocketRamp/Player/SignUp/index.js +2 -2
  18. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
  19. package/dist/components/RocketRamp/ResetPassword/index.js +2 -2
  20. package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
  21. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
  22. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
  23. package/dist/components/RocketRamp/Transactions/index.js +2 -2
  24. package/dist/components/Shared/FullKyc/edd.js +2 -2
  25. package/dist/components/Shared/FullKyc/index.js +3 -3
  26. package/dist/components/Shared/FullKyc/pep.js +1 -1
  27. package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
  28. package/dist/components/Shared/FullKyc/userInfo.js +3 -3
  29. package/dist/components/Shared/Incode/index.js +10 -10
  30. package/dist/components/Shared/MinimalKyc/index.js +2 -2
  31. package/dist/components/Wallet/Account/createIban.d.ts +2 -0
  32. package/dist/components/Wallet/Account/createIban.js +165 -104
  33. package/dist/components/Wallet/Account/iban.js +71 -208
  34. package/dist/components/Wallet/Account/ibanItem.d.ts +15 -0
  35. package/dist/components/Wallet/Account/ibanItem.js +164 -0
  36. package/dist/components/Wallet/Account/index.js +136 -128
  37. package/dist/components/Wallet/Account/sendIban.d.ts +4 -1
  38. package/dist/components/Wallet/Account/sendIban.js +211 -140
  39. package/dist/components/Wallet/Buy/confirmTransaction.js +3 -3
  40. package/dist/components/Wallet/Buy/form.js +4 -4
  41. package/dist/components/Wallet/Buy/index.js +6 -6
  42. package/dist/components/Wallet/Deposit/index.js +13 -13
  43. package/dist/components/Wallet/EnterpriseKyc/edd.js +1 -1
  44. package/dist/components/Wallet/EnterpriseKyc/index.js +3 -3
  45. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +2 -2
  46. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
  47. package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
  48. package/dist/components/Wallet/History/index.js +2 -2
  49. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +8 -8
  50. package/dist/components/Wallet/Portfolio/index.js +3 -3
  51. package/dist/components/Wallet/Profile/documents.js +2 -2
  52. package/dist/components/Wallet/Profile/index.js +9 -9
  53. package/dist/components/Wallet/Receive/index.js +2 -2
  54. package/dist/components/Wallet/Sell/confirmTransaction.js +3 -3
  55. package/dist/components/Wallet/Sell/form.js +4 -4
  56. package/dist/components/Wallet/Sell/index.js +6 -6
  57. package/dist/components/Wallet/Send/index.js +12 -12
  58. package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
  59. package/dist/components/Wallet/Shared/addBank.js +2 -2
  60. package/dist/components/Wallet/Shared/connectPlaidBank.js +2 -2
  61. package/dist/components/Wallet/Shared/manualSend.js +3 -3
  62. package/dist/components/Wallet/SignIn/index.js +2 -2
  63. package/dist/components/Wallet/SignUp/index.js +2 -2
  64. package/dist/components/Wallet/Stake/index.js +3 -3
  65. package/dist/components/Wallet/Swap/form.js +5 -5
  66. package/dist/components/Wallet/Swap/index.js +5 -5
  67. package/dist/components/Wallet/Withdraw/bankSelect.js +4 -4
  68. package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -3
  69. package/dist/components/Wallet/Withdraw/form.js +4 -4
  70. package/dist/components/Wallet/Withdraw/index.js +5 -5
  71. package/dist/{constants-rDP6jwIs.js → constants-9grj4Du1.js} +67 -69
  72. package/dist/{cryptoAssets-BXjfidU4.js → cryptoAssets-Cf7xMoh9.js} +1 -1
  73. package/dist/{documents-CF1bpppV.js → documents-vj042AkQ.js} +25 -25
  74. package/dist/hooks/useDialog/index.js +45 -38
  75. package/dist/hooks/useDialog/types.d.ts +4 -1
  76. package/dist/{index-B9MyZ0sJ.js → index-BFKBLYk5.js} +13 -13
  77. package/dist/{index-aLtOG-sf.js → index-BXj7Wdol.js} +5 -5
  78. package/dist/{index-Btrmgb1g.js → index-CKEqyTf9.js} +76 -76
  79. package/dist/{index-PitHP3ul.js → index-CUhPCwCD.js} +5 -5
  80. package/dist/{index-JY7R8k4h.js → index-Cf_gfO-E.js} +4 -4
  81. package/dist/{index-CdfFs6U2.js → index-DrAXokdP.js} +16 -16
  82. package/dist/{index-0PiVFV1G.js → index-grkjwLQL.js} +6 -6
  83. package/dist/{kyc-ChoR-OWg.js → kyc-MeOwOyUF.js} +1 -1
  84. package/dist/main.js +7 -7
  85. package/dist/{order-CTEvMHv4.js → order-Cs5_3wOs.js} +1 -1
  86. package/dist/{stake-nzM9DW-r.js → stake-ClJWsrHb.js} +1 -1
  87. package/dist/{wallet-DZ3-OqYH.js → wallet-nsVuNagB.js} +1 -1
  88. package/package.json +2 -2
  89. package/dist/bank-Bz7oos87.js +0 -34
@@ -0,0 +1,164 @@
1
+ import { jsx as e, Fragment as m, jsxs as o } from "react/jsx-runtime";
2
+ import { useState as u } from "react";
3
+ import c from "../Shared/appButton.js";
4
+ import { C } from "../../../ContentCopy-coPwrEuz.js";
5
+ import { C as g } from "../../../Close-CNwiMz_O.js";
6
+ import B from "../../Shared/transition.js";
7
+ import "../../../hoc/withThemeProvider.js";
8
+ import "../Shared/Auth/otpForm.js";
9
+ import "../../../constants-9grj4Du1.js";
10
+ import { useSnackBarContext as x } from "../../../context/snackBarContext.js";
11
+ import "../../../util/conversions.js";
12
+ import "../../../index-CAoLi5Qq.js";
13
+ import "../../../react-webcam-B3cXh1XT.js";
14
+ import "../../../tooltip-3UvETWtS.js";
15
+ import "../Shared/pin.js";
16
+ import "../../../moment-h96o7c8I.js";
17
+ import "../../../index.esm-BsMAMhYW.js";
18
+ import "../../../web3-u4qDZYpo.js";
19
+ import "../../../index-B8QKlEgj.js";
20
+ import "../../../index-ceeCtFuh.js";
21
+ import "../../../context/dialogContext.js";
22
+ import k from "./sendIban.js";
23
+ import { G as t } from "../../../Grid-CFe3amXO.js";
24
+ import { D as N, a as v } from "../../../DialogContent-BMwlOnbW.js";
25
+ import { D as w } from "../../../DialogTitle-CfS0bb2K.js";
26
+ import { T as h } from "../../../Typography-pAaje37G.js";
27
+ import { I as f } from "../../../IconButton-DHm-hucF.js";
28
+ import { B as I } from "../../../Box-B0YSYLco.js";
29
+ const n = ({
30
+ label: i,
31
+ value: r,
32
+ showCopyBtn: a
33
+ }) => {
34
+ const { showAlertMessage: s } = x();
35
+ return /* @__PURE__ */ o(m, { children: [
36
+ /* @__PURE__ */ e(t, { size: 5, className: "d-flex items-center", children: /* @__PURE__ */ e("strong", { children: i }) }),
37
+ /* @__PURE__ */ o(t, { size: 7, className: "fw500 text-left d-flex items-center", children: [
38
+ r,
39
+ a && /* @__PURE__ */ e(f, { onClick: () => {
40
+ navigator.clipboard.writeText(r), s({
41
+ message: `${i} has been copied successfully.`,
42
+ type: "success"
43
+ });
44
+ }, children: /* @__PURE__ */ e(C, { fontSize: "small", color: "primary" }) })
45
+ ] })
46
+ ] });
47
+ }, re = ({
48
+ AccountItem: i,
49
+ data: r,
50
+ appKey: a,
51
+ dispatch: s,
52
+ iban: p
53
+ }) => {
54
+ const [y, l] = u(!1), [b, d] = u(!1);
55
+ return /* @__PURE__ */ e(m, { children: r.accountNumber ? /* @__PURE__ */ o(m, { children: [
56
+ /* @__PURE__ */ e(i, { type: "iban", data: r, children: /* @__PURE__ */ o(t, { my: 1, spacing: 2, container: !0, children: [
57
+ /* @__PURE__ */ e(t, { size: { md: 6 }, children: /* @__PURE__ */ e(c, { fullWidth: !0, onClick: () => l(!0), children: "Deposit" }) }),
58
+ /* @__PURE__ */ e(t, { size: { md: 3 }, children: /* @__PURE__ */ e(c, { fullWidth: !0, onClick: () => d(!0), children: "Send" }) }),
59
+ /* @__PURE__ */ e(t, { size: { md: 3 }, children: /* @__PURE__ */ e(c, { fullWidth: !0, onClick: () => l(!0), children: "Receive" }) })
60
+ ] }) }),
61
+ /* @__PURE__ */ o(
62
+ N,
63
+ {
64
+ open: y,
65
+ fullWidth: !0,
66
+ onClose: () => l(!1),
67
+ TransitionComponent: B,
68
+ maxWidth: "md",
69
+ children: [
70
+ /* @__PURE__ */ o(w, { className: "buy-modal-text-color", children: [
71
+ /* @__PURE__ */ e(h, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ e("strong", { children: "Deposit / Receive" }) }),
72
+ /* @__PURE__ */ e(
73
+ f,
74
+ {
75
+ "aria-label": "close",
76
+ onClick: () => l(!1),
77
+ className: "menu-buttons",
78
+ children: /* @__PURE__ */ e(g, {})
79
+ }
80
+ )
81
+ ] }),
82
+ /* @__PURE__ */ o(v, { dividers: !0, children: [
83
+ /* @__PURE__ */ e(h, { variant: "h5", align: "center", children: /* @__PURE__ */ e("strong", { children: "Account Details" }) }),
84
+ /* @__PURE__ */ o(t, { container: !0, spacing: 2, sx: { padding: "5% 15%" }, children: [
85
+ /* @__PURE__ */ e(
86
+ n,
87
+ {
88
+ label: "Account Title",
89
+ value: `${r.ownerFirstName} ${r.ownerLastName}`
90
+ }
91
+ ),
92
+ /* @__PURE__ */ e(
93
+ n,
94
+ {
95
+ label: "Bank Account Currency",
96
+ value: r.currency || ""
97
+ }
98
+ ),
99
+ /* @__PURE__ */ e(n, { label: "Bank Name", value: r.bankName || "" }),
100
+ /* @__PURE__ */ e(
101
+ n,
102
+ {
103
+ label: "Bank Address",
104
+ value: r.bankBranchAddress || "",
105
+ showCopyBtn: !0
106
+ }
107
+ ),
108
+ /* @__PURE__ */ e(
109
+ n,
110
+ {
111
+ label: "Virtual IBAN",
112
+ value: r.accountNumber || "",
113
+ showCopyBtn: !0
114
+ }
115
+ ),
116
+ /* @__PURE__ */ e(
117
+ n,
118
+ {
119
+ label: "BIC/Swift Code",
120
+ value: r.bicCode || "",
121
+ showCopyBtn: !0
122
+ }
123
+ )
124
+ ] })
125
+ ] })
126
+ ]
127
+ }
128
+ ),
129
+ /* @__PURE__ */ e(
130
+ k,
131
+ {
132
+ iban: p,
133
+ data: r,
134
+ dispatch: s,
135
+ appKey: a,
136
+ openModal: b,
137
+ setOpenModal: d
138
+ }
139
+ )
140
+ ] }) : /* @__PURE__ */ o(
141
+ I,
142
+ {
143
+ className: "text-center",
144
+ sx: {
145
+ py: 2,
146
+ background: "#F0F0F0",
147
+ color: "#16359d",
148
+ fontWeight: "bold",
149
+ borderRadius: "5px"
150
+ },
151
+ children: [
152
+ /* @__PURE__ */ o("p", { children: [
153
+ "We have received your payment and ",
154
+ r.currency,
155
+ " Virtual IBAN creation is in progress. Please wait while we generate your Virtual IBAN."
156
+ ] }),
157
+ /* @__PURE__ */ e("p", { children: "This may take a few moments. Thank you for your patience!" })
158
+ ]
159
+ }
160
+ ) });
161
+ };
162
+ export {
163
+ re as default
164
+ };
@@ -1,41 +1,48 @@
1
- import { jsxs as n, jsx as e, Fragment as ne } from "react/jsx-runtime";
2
- import { useState as _, useEffect as h } from "react";
3
- import { u as ae, a as b } from "../../../react-redux-B4BZippc.js";
4
- import "../../../constants-rDP6jwIs.js";
5
- import { a as oe, c as re, d as se } from "../../../index-FwnHkXdK.js";
6
- import { u as ie, a as le, b as ce, c as me, d as de, e as he } from "../../../wallet-DZ3-OqYH.js";
7
- import { d as ue, e as pe } from "../../../bank-Bz7oos87.js";
8
- import { LINKED_WALLET_TOOLTIP as fe, CONNECTED_WALLET_TOOLTIP as ge, WALLET_ICON as _e, DELETE_ICON as be } from "../../../util/constants.js";
9
- import Ne from "../../../hoc/withThemeProvider.js";
10
- import { M as O } from "../../../tooltip-3UvETWtS.js";
1
+ import { jsxs as o, jsx as e, Fragment as oe } from "react/jsx-runtime";
2
+ import { useState as _, useEffect as d } from "react";
3
+ import { u as ne, a as N } from "../../../react-redux-B4BZippc.js";
4
+ import "../../../constants-9grj4Du1.js";
5
+ import { a as ae, c as re, d as se } from "../../../index-FwnHkXdK.js";
6
+ import { u as ie, a as le, b as ce, c as me, d as de, e as pe } from "../../../wallet-nsVuNagB.js";
7
+ import { u as ue, c as he, d as fe } from "../../../bank-Bp23LpvN.js";
8
+ import { LINKED_WALLET_TOOLTIP as ge, CONNECTED_WALLET_TOOLTIP as be, WALLET_ICON as _e, DELETE_ICON as Ne } from "../../../util/constants.js";
9
+ import xe from "../../../hoc/withThemeProvider.js";
10
+ import { M as R } from "../../../tooltip-3UvETWtS.js";
11
11
  import { I as $ } from "../../../Info-BVeUSPyk.js";
12
12
  import { C as We } from "../../../Cancel-4lT7GZUA.js";
13
- import { D as xe } from "../../../Delete-jpMstGIF.js";
14
- import { C as Ce } from "../../../Close-CNwiMz_O.js";
15
- import we from "../../Shared/transition.js";
16
- import R from "../Shared/inputField.js";
17
- import ke from "../Shared/addBank.js";
18
- import { useDialog as ve } from "../../../hooks/useDialog/index.js";
13
+ import { D as Ce } from "../../../Delete-jpMstGIF.js";
14
+ import { C as we } from "../../../Close-CNwiMz_O.js";
15
+ import ke from "../../Shared/transition.js";
16
+ import q from "../Shared/inputField.js";
17
+ import ve from "../Shared/addBank.js";
19
18
  import De from "../Shared/connectPlaidBank.js";
20
19
  import ye from "../Shared/ConnectWallet/index.js";
21
20
  import Ae from "../../../providers/metaMask.js";
22
21
  import Ie from "./iban.js";
23
22
  import { useSnackBarContext as Le } from "../../../context/snackBarContext.js";
24
- import q from "../Shared/appButton.js";
25
- import { AuthInnerContainer as A } from "../Shared/Container/index.js";
23
+ import K from "../Shared/appButton.js";
24
+ import { AuthInnerContainer as I } from "../Shared/Container/index.js";
25
+ import "../Shared/Auth/otpForm.js";
26
+ import "../../../util/conversions.js";
27
+ import "../../../index-CAoLi5Qq.js";
28
+ import "../../../react-webcam-B3cXh1XT.js";
29
+ import "../Shared/pin.js";
30
+ import "../../../moment-h96o7c8I.js";
31
+ import "../../../index-ceeCtFuh.js";
32
+ import { useDialogContext as Te } from "../../../context/dialogContext.js";
26
33
  import { B as i } from "../../../Box-B0YSYLco.js";
27
34
  import { G as l } from "../../../Grid-CFe3amXO.js";
28
35
  import { T as c } from "../../../Typography-pAaje37G.js";
29
- import { I as N } from "../../../IconButton-DHm-hucF.js";
36
+ import { I as x } from "../../../IconButton-DHm-hucF.js";
30
37
  import { C as W } from "../../../CircularProgress-xZA3lvba.js";
31
- import { B as Te } from "../../../Button-Df4vgU24.js";
32
- import { S as Be } from "../../../Stack-k55YTxET.js";
33
- import { D as Se, a as ze } from "../../../DialogContent-BMwlOnbW.js";
34
- import { D as Ee } from "../../../DialogTitle-CfS0bb2K.js";
35
- import '../../../assets/index3.css';const Pe = "_container_arwo8_1", Me = "_heading_arwo8_27", a = {
36
- container: Pe,
38
+ import { B as Be } from "../../../Button-Df4vgU24.js";
39
+ import { S as Se } from "../../../Stack-k55YTxET.js";
40
+ import { D as ze, a as Ee } from "../../../DialogContent-BMwlOnbW.js";
41
+ import { D as Pe } from "../../../DialogTitle-CfS0bb2K.js";
42
+ import '../../../assets/index3.css';const Me = "_container_arwo8_1", Oe = "_heading_arwo8_27", n = {
43
+ container: Me,
37
44
  "inner-container": "_inner-container_arwo8_13",
38
- heading: Me,
45
+ heading: Oe,
39
46
  "account-item": "_account-item_arwo8_41",
40
47
  "account-item-text": "_account-item-text_arwo8_71",
41
48
  "primary-color": "_primary-color_arwo8_81",
@@ -44,78 +51,79 @@ import '../../../assets/index3.css';const Pe = "_container_arwo8_1", Me = "_head
44
51
  "remove-icon": "_remove-icon_arwo8_107",
45
52
  "delete-disable": "_delete-disable_arwo8_121",
46
53
  "confirm-edit": "_confirm-edit_arwo8_137"
47
- }, Oe = ({
48
- baseUrl: K,
49
- checkoutSdkKey: F,
50
- appKey: H,
51
- navigate: j
54
+ }, Re = ({
55
+ baseUrl: F,
56
+ checkoutSdkKey: H,
57
+ appKey: j,
58
+ navigate: G
52
59
  }) => {
53
- const r = ae(), { showAlertMessage: m } = Le(), { openDialog: I, ConfirmDialog: G } = ve(), L = b((t) => t.app.features), u = b(oe), J = u.loader, T = u.message, B = u.banks, Q = u.iban, [S, z] = _(!1), [U, p] = _(!1), [x, V] = _(""), [C, X] = _(""), E = b(re), P = E.data, { error: w, message: k, loader: v } = E, M = b(se), f = M.data, {
54
- error: D,
55
- message: y,
60
+ const r = ne(), { showAlertMessage: m } = Le(), { openDialog: L } = Te(), T = N((t) => t.app.features), p = N(ae), J = p.loader, B = p.message, S = p.banks, Q = p.iban, [z, E] = _(!1), [U, u] = _(!1), [C, V] = _(""), [w, X] = _(""), P = N(re), M = P.data, { error: k, message: v, loader: D } = P, O = N(se), h = O.data, {
61
+ error: y,
62
+ message: A,
56
63
  loader: Y
57
- } = M;
58
- h(() => {
59
- T && z(!1);
60
- }, [T]), h(() => {
61
- D && m({ message: D });
62
- }, [D]), h(() => {
63
- y && m({ message: y, type: "success" });
64
- }, [y]), h(() => {
65
- w && m({ message: w });
66
- }, [w]), h(() => {
67
- k && (p(!1), m({ message: k, type: "success" }));
68
- }, [k]), h(() => (P.length <= 0 && r(ie()), f.length <= 0 && r(le()), r(ue()), () => {
64
+ } = O;
65
+ d(() => {
66
+ B && E(!1);
67
+ }, [B]), d(() => {
68
+ y && m({ message: y });
69
+ }, [y]), d(() => {
70
+ A && m({ message: A, type: "success" });
71
+ }, [A]), d(() => {
72
+ k && m({ message: k });
73
+ }, [k]), d(() => {
74
+ v && (u(!1), m({ message: v, type: "success" }));
75
+ }, [v]), d(() => (M.length <= 0 && r(ie()), h.length <= 0 && r(le()), r(ue()), r(he()), () => {
69
76
  r(ce("")), r(me(""));
70
77
  }), []);
71
78
  const Z = () => {
72
- if (!x)
73
- return m({ message: "Please provide the wallet name" }), !1;
74
79
  if (!C)
80
+ return m({ message: "Please provide the wallet name" }), !1;
81
+ if (!w)
75
82
  return m({
76
83
  message: "Please provide the wallet private key"
77
84
  }), !1;
78
- v || r(
85
+ D || r(
79
86
  de({
80
- name: x,
81
- privatekey: Buffer.from(C).toString("base64")
87
+ name: C,
88
+ privatekey: Buffer.from(w).toString("base64")
82
89
  })
83
90
  );
84
91
  }, ee = (t) => {
85
- I({
86
- icon: be,
92
+ L({
93
+ icon: Ne,
87
94
  height: "450px",
88
95
  title: "Are you sure you want to delete?",
89
96
  message: "This action cannot be undone.",
90
97
  onConfirm: () => {
91
- r(pe(t));
98
+ r(fe(t));
92
99
  },
93
100
  cancelButtonShow: !0
94
101
  });
95
- }, g = ({
102
+ }, f = ({
96
103
  data: t,
97
- type: o
104
+ type: a,
105
+ children: g
98
106
  }) => {
99
- let d, s;
100
- return o === "connectedWallet" || o === "linkedWallet" ? "name" in t && "address" in t && (d = t.name, s = t.address) : o === "iban" ? "accountName" in t && "accountNumber" in t && (d = t.accountName, s = `${t.ownerFirstName} ${t.ownerLastName}: ${t.accountNumber}`) : "accountName" in t && "accountNumber" in t && (d = t.accountName, s = t.accountNumber), /* @__PURE__ */ n(i, { className: a["account-item"], children: [
101
- o === "bankAccount" && S && "id" in t && /* @__PURE__ */ e(
102
- N,
107
+ let s, b;
108
+ return a === "connectedWallet" || a === "linkedWallet" ? "name" in t && "address" in t && (s = t.name, b = t.address) : a === "iban" ? "accountName" in t && "accountNumber" in t && (s = t.accountName, b = `${t.ownerFirstName} ${t.ownerLastName}: ${t.accountNumber}`) : "accountName" in t && "accountNumber" in t && (s = t.accountName, b = t.accountNumber), /* @__PURE__ */ o(i, { className: n["account-item"], children: [
109
+ a === "bankAccount" && z && "id" in t && /* @__PURE__ */ e(
110
+ x,
103
111
  {
104
- className: a["remove-icon"],
112
+ className: n["remove-icon"],
105
113
  onClick: () => ee(t.id),
106
114
  children: /* @__PURE__ */ e(We, {})
107
115
  }
108
116
  ),
109
- /* @__PURE__ */ e(l, { container: !0, width: "100%", children: /* @__PURE__ */ e(l, { size: 10, children: /* @__PURE__ */ n(l, { container: !0, width: "100%", children: [
117
+ /* @__PURE__ */ e(l, { container: !0, width: "100%", children: /* @__PURE__ */ e(l, { size: 10, children: /* @__PURE__ */ o(l, { container: !0, width: "100%", children: [
110
118
  /* @__PURE__ */ e(l, { size: { xs: 2, md: 1.2 }, className: "content-center", children: /* @__PURE__ */ e("img", { src: _e, alt: "Icon", height: 28, width: 28 }) }),
111
- /* @__PURE__ */ n(l, { size: { xs: 10, md: 10.8 }, children: [
119
+ /* @__PURE__ */ o(l, { size: { xs: 10, md: 10.8 }, children: [
112
120
  /* @__PURE__ */ e(
113
121
  c,
114
122
  {
115
123
  variant: "body1",
116
124
  component: "p",
117
- className: `${a["account-item-text"]} ${a["primary-color"]}`,
118
- children: /* @__PURE__ */ e("strong", { children: d })
125
+ className: `${n["account-item-text"]} ${n["primary-color"]}`,
126
+ children: /* @__PURE__ */ e("strong", { children: s })
119
127
  }
120
128
  ),
121
129
  /* @__PURE__ */ e(
@@ -123,45 +131,45 @@ import '../../../assets/index3.css';const Pe = "_container_arwo8_1", Me = "_head
123
131
  {
124
132
  variant: "caption",
125
133
  component: "p",
126
- className: `${a["account-item-text"]} ${a["secondary-color"]}`,
127
- children: /* @__PURE__ */ e("strong", { children: s })
134
+ className: `${n["account-item-text"]} ${n["secondary-color"]}`,
135
+ children: /* @__PURE__ */ e("strong", { children: b })
128
136
  }
129
137
  )
130
138
  ] })
131
- ] }) }) })
139
+ ] }) }) }),
140
+ g
132
141
  ] });
133
142
  }, te = (t) => {
134
- const o = f.length;
135
- let d = !1;
136
- for (let s = 0; s < o; s++)
137
- if (f[s].address.toLowerCase() === t.toLowerCase()) {
138
- d = !0;
143
+ const a = h.length;
144
+ let g = !1;
145
+ for (let s = 0; s < a; s++)
146
+ if (h[s].address.toLowerCase() === t.toLowerCase()) {
147
+ g = !0;
139
148
  break;
140
149
  }
141
- d ? m({
150
+ g ? m({
142
151
  message: "This wallet address is already connected."
143
- }) : r(he(t));
152
+ }) : r(pe(t));
144
153
  };
145
- return /* @__PURE__ */ n(Ae, { children: [
146
- /* @__PURE__ */ e(G, {}),
147
- /* @__PURE__ */ e(i, { className: a.container, children: /* @__PURE__ */ n(l, { spacing: 2, container: !0, width: "100%", children: [
148
- /* @__PURE__ */ n(l, { size: { md: 6, xs: 12 }, children: [
149
- /* @__PURE__ */ n(A, { p: 3, children: [
154
+ return /* @__PURE__ */ o(Ae, { children: [
155
+ /* @__PURE__ */ e(i, { className: n.container, children: /* @__PURE__ */ o(l, { spacing: 2, container: !0, width: "100%", children: [
156
+ /* @__PURE__ */ o(l, { size: { md: 6, xs: 12 }, children: [
157
+ /* @__PURE__ */ o(I, { p: 3, children: [
150
158
  /* @__PURE__ */ e(
151
159
  c,
152
160
  {
153
- className: a.heading,
161
+ className: n.heading,
154
162
  variant: "h6",
155
163
  component: "span",
156
164
  children: /* @__PURE__ */ e("strong", { children: "Linked Wallets" })
157
165
  }
158
166
  ),
159
167
  /* @__PURE__ */ e(
160
- O,
168
+ R,
161
169
  {
162
- title: /* @__PURE__ */ e(i, { sx: { whiteSpace: "pre-line" }, children: fe }),
170
+ title: /* @__PURE__ */ e(i, { sx: { whiteSpace: "pre-line" }, children: ge }),
163
171
  placement: "bottom",
164
- children: /* @__PURE__ */ e(N, { className: a["info-icon"], children: /* @__PURE__ */ e(
172
+ children: /* @__PURE__ */ e(x, { className: n["info-icon"], children: /* @__PURE__ */ e(
165
173
  $,
166
174
  {
167
175
  sx: {
@@ -172,34 +180,34 @@ import '../../../assets/index3.css';const Pe = "_container_arwo8_1", Me = "_head
172
180
  ) })
173
181
  }
174
182
  ),
175
- v && /* @__PURE__ */ e(i, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(W, { size: 50 }) }),
176
- P.map((t, o) => /* @__PURE__ */ e(g, { type: "linkedWallet", data: t }, o)),
183
+ D && /* @__PURE__ */ e(i, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(W, { size: 50 }) }),
184
+ M.map((t, a) => /* @__PURE__ */ e(f, { type: "linkedWallet", data: t }, a)),
177
185
  /* @__PURE__ */ e(
178
- q,
186
+ K,
179
187
  {
180
188
  sx: { mt: 4 },
181
- onClick: () => p(!0),
189
+ onClick: () => u(!0),
182
190
  fullWidth: !0,
183
191
  children: /* @__PURE__ */ e("strong", { children: "Add Wallet" })
184
192
  }
185
193
  )
186
194
  ] }),
187
- /* @__PURE__ */ n(A, { p: 3, mt: 2, children: [
195
+ /* @__PURE__ */ o(I, { p: 3, mt: 2, children: [
188
196
  /* @__PURE__ */ e(
189
197
  c,
190
198
  {
191
- className: a.heading,
199
+ className: n.heading,
192
200
  variant: "h6",
193
201
  component: "span",
194
202
  children: /* @__PURE__ */ e("strong", { children: "Connected Wallets" })
195
203
  }
196
204
  ),
197
205
  /* @__PURE__ */ e(
198
- O,
206
+ R,
199
207
  {
200
- title: /* @__PURE__ */ e(i, { sx: { whiteSpace: "pre-line" }, children: ge }),
208
+ title: /* @__PURE__ */ e(i, { sx: { whiteSpace: "pre-line" }, children: be }),
201
209
  placement: "bottom",
202
- children: /* @__PURE__ */ e(N, { className: a["info-icon"], children: /* @__PURE__ */ e(
210
+ children: /* @__PURE__ */ e(x, { className: n["info-icon"], children: /* @__PURE__ */ e(
203
211
  $,
204
212
  {
205
213
  sx: {
@@ -211,7 +219,7 @@ import '../../../assets/index3.css';const Pe = "_container_arwo8_1", Me = "_head
211
219
  }
212
220
  ),
213
221
  Y && /* @__PURE__ */ e(i, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(W, { size: 50 }) }),
214
- f.map((t, o) => /* @__PURE__ */ e(g, { type: "connectedWallet", data: t }, o)),
222
+ h.map((t, a) => /* @__PURE__ */ e(f, { type: "connectedWallet", data: t }, a)),
215
223
  /* @__PURE__ */ e(
216
224
  ye,
217
225
  {
@@ -221,84 +229,84 @@ import '../../../assets/index3.css';const Pe = "_container_arwo8_1", Me = "_head
221
229
  )
222
230
  ] })
223
231
  ] }),
224
- /* @__PURE__ */ n(l, { size: { md: 6, xs: 12 }, children: [
225
- L.iban && /* @__PURE__ */ e(
232
+ /* @__PURE__ */ o(l, { size: { md: 6, xs: 12 }, children: [
233
+ T.iban && /* @__PURE__ */ e(
226
234
  Ie,
227
235
  {
228
- openDialog: I,
236
+ openDialog: L,
229
237
  dispatch: r,
230
238
  iban: Q,
231
- baseUrl: K,
232
- checkoutSdkKey: F,
233
- appKey: H,
234
- navigate: j,
235
- AccountItem: g
239
+ baseUrl: F,
240
+ checkoutSdkKey: H,
241
+ appKey: j,
242
+ navigate: G,
243
+ AccountItem: f
236
244
  }
237
245
  ),
238
- /* @__PURE__ */ e(A, { mt: 2, children: /* @__PURE__ */ n(i, { p: 3, mt: L.iban ? 2 : 0, children: [
239
- /* @__PURE__ */ e(c, { className: a.heading, variant: "h6", children: /* @__PURE__ */ e("strong", { children: "Bank Accounts" }) }),
240
- B.length > 0 && /* @__PURE__ */ n(
241
- Te,
246
+ /* @__PURE__ */ e(I, { mt: 2, children: /* @__PURE__ */ o(i, { p: 3, mt: T.iban ? 2 : 0, children: [
247
+ /* @__PURE__ */ e(c, { className: n.heading, variant: "h6", children: /* @__PURE__ */ e("strong", { children: "Bank Accounts" }) }),
248
+ S.length > 0 && /* @__PURE__ */ o(
249
+ Be,
242
250
  {
243
- className: `${S ? a["delete-disable"] : a["confirm-edit"]} normal-text`,
251
+ className: `${z ? n["delete-disable"] : n["confirm-edit"]} normal-text`,
244
252
  sx: { mt: 3, mb: 3 },
245
253
  variant: "contained",
246
- onClick: () => z((t) => !t),
254
+ onClick: () => E((t) => !t),
247
255
  children: [
248
- /* @__PURE__ */ e(xe, {}),
256
+ /* @__PURE__ */ e(Ce, {}),
249
257
  "Delete"
250
258
  ]
251
259
  }
252
260
  ),
253
261
  J && /* @__PURE__ */ e(i, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(W, { size: 50 }) }),
254
- B.map((t, o) => /* @__PURE__ */ e(g, { type: "bankAccount", data: t }, o)),
255
- /* @__PURE__ */ n(Be, { mt: 4, gap: 1, children: [
262
+ S.map((t, a) => /* @__PURE__ */ e(f, { type: "bankAccount", data: t }, a)),
263
+ /* @__PURE__ */ o(Se, { mt: 4, gap: 1, children: [
256
264
  /* @__PURE__ */ e(De, {}),
257
265
  /* @__PURE__ */ e(c, { className: "text-center", variant: "h6", children: /* @__PURE__ */ e("strong", { children: "OR" }) }),
258
- /* @__PURE__ */ e(ke, {})
266
+ /* @__PURE__ */ e(ve, {})
259
267
  ] })
260
268
  ] }) })
261
269
  ] })
262
270
  ] }) }),
263
- /* @__PURE__ */ n(
264
- Se,
271
+ /* @__PURE__ */ o(
272
+ ze,
265
273
  {
266
274
  fullWidth: !0,
267
275
  open: U,
268
- onClose: () => p(!1),
269
- TransitionComponent: we,
276
+ onClose: () => u(!1),
277
+ TransitionComponent: ke,
270
278
  children: [
271
- /* @__PURE__ */ n(Ee, { className: "buy-modal-text-color", children: [
279
+ /* @__PURE__ */ o(Pe, { className: "buy-modal-text-color", children: [
272
280
  /* @__PURE__ */ e(c, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ e("strong", { children: "Wallets" }) }),
273
281
  /* @__PURE__ */ e(
274
- N,
282
+ x,
275
283
  {
276
284
  "aria-label": "close",
277
- onClick: () => p(!1),
285
+ onClick: () => u(!1),
278
286
  className: "menu-buttons",
279
- children: /* @__PURE__ */ e(Ce, {})
287
+ children: /* @__PURE__ */ e(we, {})
280
288
  }
281
289
  )
282
290
  ] }),
283
- /* @__PURE__ */ n(ze, { dividers: !0, children: [
291
+ /* @__PURE__ */ o(Ee, { dividers: !0, children: [
284
292
  /* @__PURE__ */ e(c, { className: "text-center buy-modal-text-color", variant: "h5", children: /* @__PURE__ */ e("strong", { children: "Add Linked Wallet" }) }),
285
293
  /* @__PURE__ */ e(
286
- R,
294
+ q,
287
295
  {
288
296
  label: "Name",
289
- value: x,
297
+ value: C,
290
298
  onChangeHandler: (t) => V(t)
291
299
  }
292
300
  ),
293
301
  /* @__PURE__ */ e(
294
- R,
302
+ q,
295
303
  {
296
304
  label: "Private Key",
297
- value: C,
305
+ value: w,
298
306
  onChangeHandler: (t) => X(t)
299
307
  }
300
308
  ),
301
- /* @__PURE__ */ e(q, { sx: { mt: 4 }, onClick: Z, fullWidth: !0, children: /* @__PURE__ */ e("strong", { children: v ? /* @__PURE__ */ n(ne, { children: [
309
+ /* @__PURE__ */ e(K, { sx: { mt: 4 }, onClick: Z, fullWidth: !0, children: /* @__PURE__ */ e("strong", { children: D ? /* @__PURE__ */ o(oe, { children: [
302
310
  /* @__PURE__ */ e(W, { size: 15, color: "inherit" }),
303
311
  " Processing..."
304
312
  ] }) : "Import Wallet" }) })
@@ -307,7 +315,7 @@ import '../../../assets/index3.css';const Pe = "_container_arwo8_1", Me = "_head
307
315
  }
308
316
  )
309
317
  ] });
310
- }, Nt = Ne(Oe);
318
+ }, yt = xe(Re);
311
319
  export {
312
- Nt as default
320
+ yt as default
313
321
  };
@@ -1,9 +1,12 @@
1
1
  import { default as React, Dispatch } from 'react';
2
- import { BankActionTypes, BankState } from 'everest-npm-api';
2
+ import { BankActionTypes, BankState, Iban } from 'everest-npm-api';
3
3
  interface SendIbanProps {
4
4
  iban: BankState["iban"];
5
+ data: Iban;
5
6
  dispatch: Dispatch<BankActionTypes>;
6
7
  appKey: string;
8
+ openModal: boolean;
9
+ setOpenModal: React.Dispatch<React.SetStateAction<boolean>>;
7
10
  }
8
11
  declare const SendIban: React.FC<SendIbanProps>;
9
12
  export default SendIban;