everest-npm-features 0.0.48 → 0.0.50

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 (98) hide show
  1. package/dist/{PlayArrow-Cnrxi5yr.js → PlayArrow-C3uVNo4F.js} +1 -1
  2. package/dist/{auth-C45E0xvK.js → auth-ClBgT--j.js} +1 -1
  3. package/dist/{bank-DIdz4BaB.js → bank-Dz5km1qK.js} +3 -3
  4. package/dist/components/RocketRamp/MinimalKyc/form.js +14 -13
  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 +12 -11
  9. package/dist/components/RocketRamp/Player/Dashboard/index.js +25 -24
  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 +12 -11
  13. package/dist/components/RocketRamp/Player/SignIn/index.js +20 -19
  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 +39 -38
  18. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
  19. package/dist/components/RocketRamp/ResetPassword/index.js +21 -20
  20. package/dist/components/RocketRamp/Store/SignUp/index.js +48 -47
  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 +14 -13
  24. package/dist/components/Shared/FullKyc/edd.js +41 -41
  25. package/dist/components/Shared/FullKyc/index.js +11 -10
  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 +4 -4
  29. package/dist/components/Shared/MinimalKyc/index.js +31 -30
  30. package/dist/components/Wallet/Account/createIban.d.ts +2 -0
  31. package/dist/components/Wallet/Account/createIban.js +96 -88
  32. package/dist/components/Wallet/Account/eWallet.d.ts +20 -0
  33. package/dist/components/Wallet/Account/eWallet.js +118 -0
  34. package/dist/components/Wallet/Account/iban.d.ts +2 -0
  35. package/dist/components/Wallet/Account/iban.js +38 -32
  36. package/dist/components/Wallet/Account/ibanItem.d.ts +5 -2
  37. package/dist/components/Wallet/Account/ibanItem.js +233 -76
  38. package/dist/components/Wallet/Account/index.d.ts +2 -0
  39. package/dist/components/Wallet/Account/index.js +164 -143
  40. package/dist/components/Wallet/Account/sendIban.js +3 -3
  41. package/dist/components/Wallet/Buy/confirmTransaction.js +5 -5
  42. package/dist/components/Wallet/Buy/form.js +5 -5
  43. package/dist/components/Wallet/Buy/index.js +14 -13
  44. package/dist/components/Wallet/Deposit/index.js +1 -1
  45. package/dist/components/Wallet/EnterpriseKyc/edd.js +9 -9
  46. package/dist/components/Wallet/EnterpriseKyc/index.js +23 -22
  47. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +24 -24
  48. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
  49. package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
  50. package/dist/components/Wallet/History/index.js +25 -24
  51. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +49 -48
  52. package/dist/components/Wallet/Portfolio/index.js +22 -21
  53. package/dist/components/Wallet/Portfolio/tokenRow.js +1 -1
  54. package/dist/components/Wallet/Profile/documents.js +34 -33
  55. package/dist/components/Wallet/Profile/index.js +20 -19
  56. package/dist/components/Wallet/Profile/storage.js +26 -26
  57. package/dist/components/Wallet/Receive/index.js +22 -21
  58. package/dist/components/Wallet/Sell/confirmTransaction.js +4 -4
  59. package/dist/components/Wallet/Sell/form.js +5 -5
  60. package/dist/components/Wallet/Sell/index.js +13 -12
  61. package/dist/components/Wallet/Send/index.js +19 -18
  62. package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
  63. package/dist/components/Wallet/Shared/BankSelect/index.js +36 -35
  64. package/dist/components/Wallet/Shared/CardCorp/index.d.ts +1 -1
  65. package/dist/components/Wallet/Shared/CardCorp/index.js +16 -16
  66. package/dist/components/Wallet/Shared/addBank.js +39 -38
  67. package/dist/components/Wallet/Shared/connectPlaidBank.js +19 -18
  68. package/dist/components/Wallet/Shared/manualSend.js +6 -5
  69. package/dist/components/Wallet/SignIn/index.js +24 -23
  70. package/dist/components/Wallet/SignUp/index.js +22 -21
  71. package/dist/components/Wallet/Stake/index.js +30 -29
  72. package/dist/components/Wallet/Swap/form.js +8 -7
  73. package/dist/components/Wallet/Swap/index.js +11 -10
  74. package/dist/components/Wallet/Withdraw/bankSelect.js +28 -27
  75. package/dist/components/Wallet/Withdraw/confirmTransaction.js +4 -4
  76. package/dist/components/Wallet/Withdraw/form.js +4 -4
  77. package/dist/components/Wallet/Withdraw/index.js +12 -11
  78. package/dist/{constants-BSdmHYnc.js → constants-t7n9qCW3.js} +245 -244
  79. package/dist/{cryptoAssets-BdNVnpA_.js → cryptoAssets-shEFU26O.js} +1 -1
  80. package/dist/hooks/useEverestDispatch.d.ts +6 -0
  81. package/dist/hooks/useEverestDispatch.js +5 -0
  82. package/dist/{index-Be3ndI6s.js → index-B6MSTmAM.js} +104 -103
  83. package/dist/{index-HZ9RrpTC.js → index-C2EjFXaz.js} +87 -86
  84. package/dist/{index-BXF4OI74.js → index-Cs7bSfT3.js} +17 -16
  85. package/dist/{index-D3OzGVxQ.js → index-DFRU-R-5.js} +38 -37
  86. package/dist/{index-CRyby3Qm.js → index-Da0r8FX2.js} +11 -10
  87. package/dist/{index-BlfzmV5M.js → index-RDV0mQbt.js} +36 -35
  88. package/dist/{index-Cvp4wWrB.js → index-j0zehpzg.js} +40 -39
  89. package/dist/{kyc-BQsiHtP6.js → kyc-D9xahfH9.js} +1 -1
  90. package/dist/main.js +7 -7
  91. package/dist/{order-BKKCskeq.js → order-jqH948WM.js} +29 -25
  92. package/dist/{react-redux-B4BZippc.js → react-redux-C7I9-1M6.js} +2 -2
  93. package/dist/{stake-WjG22nIX.js → stake-Dcq6QpaA.js} +3 -3
  94. package/dist/{tokenRow-D32W5WH3.js → tokenRow-B-tustzZ.js} +8 -6
  95. package/dist/util/constants.d.ts +2 -0
  96. package/dist/util/constants.js +21 -19
  97. package/dist/{wallet-BXA-R-Ks.js → wallet-DpkUmmq0.js} +1 -1
  98. package/package.json +3 -2
@@ -1,14 +1,14 @@
1
- import { jsxs as p, Fragment as u, jsx as n } from "react/jsx-runtime";
1
+ import { jsxs as p, Fragment as u, jsx as r } from "react/jsx-runtime";
2
2
  import { useRef as g, useState as q, useEffect as L, createRef as W } from "react";
3
3
  import j from "../../Wallet/Shared/Input/index.js";
4
- import K from "../../Wallet/Shared/appButton.js";
4
+ import v from "../../Wallet/Shared/appButton.js";
5
5
  import "../../../index-DlQqWbXG.js";
6
6
  import "../../../hoc/withThemeProvider.js";
7
- import { u as v } from "../../../react-redux-B4BZippc.js";
8
7
  import "../../Wallet/Shared/Auth/otpForm.js";
9
- import "../../../constants-BSdmHYnc.js";
10
- import { a as H } from "../../../kyc-BQsiHtP6.js";
11
- import { useSnackBarContext as V } from "../../../context/snackBarContext.js";
8
+ import "../../../constants-t7n9qCW3.js";
9
+ import { a as K } from "../../../kyc-D9xahfH9.js";
10
+ import { useSnackBarContext as H } from "../../../context/snackBarContext.js";
11
+ import V from "../../../hooks/useEverestDispatch.js";
12
12
  import "../../../util/conversions.js";
13
13
  import "../../../index-CAoLi5Qq.js";
14
14
  import { C as $ } from "../../../Close-CNwiMz_O.js";
@@ -26,41 +26,41 @@ import { B as x } from "../../../Box-B0YSYLco.js";
26
26
  import { I as G } from "../../../InputAdornment-DMiED3JH.js";
27
27
  import { I as c } from "../../../IconButton-DHm-hucF.js";
28
28
  import { C as J } from "../../../CircularProgress-xZA3lvba.js";
29
- const Fe = ({
30
- inputComponent: C,
31
- buttonComponent: E,
32
- eddData: r,
29
+ const _e = ({
30
+ inputComponent: E,
31
+ buttonComponent: C,
32
+ eddData: n,
33
33
  kycStoreData: l,
34
- setEddData: a,
35
- processKyc: F,
36
- processLoader: _
34
+ setEddData: F,
35
+ processKyc: _,
36
+ processLoader: a
37
37
  }) => {
38
- const T = C ?? j, A = E ?? K, R = {
38
+ const T = E ?? j, A = C ?? v, R = {
39
39
  BANK_STATEMENT: {
40
- text: r.BANK_STATEMENT.text,
41
- file: r.BANK_STATEMENT.file,
42
- preview: r.BANK_STATEMENT.preview,
40
+ text: n.BANK_STATEMENT.text,
41
+ file: n.BANK_STATEMENT.file,
42
+ preview: n.BANK_STATEMENT.preview,
43
43
  label: "Bank Statement",
44
44
  required: !0,
45
45
  multiFile: !1
46
46
  },
47
47
  PROOF_OF_INCOME: {
48
- text: r.PROOF_OF_INCOME.text,
49
- file: r.PROOF_OF_INCOME.file,
50
- preview: r.PROOF_OF_INCOME.preview,
48
+ text: n.PROOF_OF_INCOME.text,
49
+ file: n.PROOF_OF_INCOME.file,
50
+ preview: n.PROOF_OF_INCOME.preview,
51
51
  label: "Proof of Income",
52
52
  required: !0,
53
53
  multiFile: !1
54
54
  },
55
55
  SOURCE_OF_WEALTH: {
56
- text: r.SOURCE_OF_WEALTH.text,
57
- file: r.SOURCE_OF_WEALTH.file,
58
- preview: r.SOURCE_OF_WEALTH.preview,
56
+ text: n.SOURCE_OF_WEALTH.text,
57
+ file: n.SOURCE_OF_WEALTH.file,
58
+ preview: n.SOURCE_OF_WEALTH.preview,
59
59
  label: "Source of Wealth",
60
60
  required: !0,
61
61
  multiFile: !1
62
62
  }
63
- }, I = v(), { showAlertMessage: d } = V(), w = g(null), [o, m] = q(R);
63
+ }, I = V(), { showAlertMessage: d } = H(), w = g(null), [o, m] = q(R);
64
64
  L(() => {
65
65
  if (l != null && l.uploadData.fileUrl && (l != null && l.uploadData.fileType)) {
66
66
  const i = l == null ? void 0 : l.uploadData.fileType;
@@ -78,7 +78,7 @@ const Fe = ({
78
78
  });
79
79
  }
80
80
  }, [l == null ? void 0 : l.uploadData.fileUrl, l == null ? void 0 : l.uploadData.fileType]);
81
- const h = Object.keys(r), O = g(
81
+ const h = Object.keys(n), O = g(
82
82
  h.reduce((i, e) => (i[e] = W(), i), {})
83
83
  ), N = () => {
84
84
  for (const i of Object.keys(o)) {
@@ -97,12 +97,12 @@ const Fe = ({
97
97
  }
98
98
  return !0;
99
99
  }, U = () => {
100
- N() && (a(o), F(o));
100
+ N() && (F(o), _(o));
101
101
  }, b = (i, e) => {
102
102
  const t = i.target.files;
103
103
  !t || t.length === 0 || Array.from(t).map((s) => {
104
104
  const B = URL.createObjectURL(s);
105
- I(H({ file: s, type: e })), m((f) => {
105
+ I(K({ file: s, type: e })), m((f) => {
106
106
  const P = f[e].file || [], M = f[e].text ? f[e].text.split(", ") : [];
107
107
  return {
108
108
  ...f,
@@ -116,8 +116,8 @@ const Fe = ({
116
116
  });
117
117
  };
118
118
  return /* @__PURE__ */ p(u, { children: [
119
- /* @__PURE__ */ n("form", { style: { height: "350px", overflowY: "scroll" }, ref: w, children: h.map((i) => /* @__PURE__ */ p(x, { mt: 2, children: [
120
- /* @__PURE__ */ n(
119
+ /* @__PURE__ */ r("form", { style: { height: "350px", overflowY: "scroll" }, ref: w, children: h.map((i) => /* @__PURE__ */ p(x, { mt: 2, children: [
120
+ /* @__PURE__ */ r(
121
121
  T,
122
122
  {
123
123
  label: o[i].label,
@@ -128,8 +128,8 @@ const Fe = ({
128
128
  })),
129
129
  slotProps: {
130
130
  input: {
131
- endAdornment: /* @__PURE__ */ n(G, { position: "end", children: o[i].file.length > 0 ? /* @__PURE__ */ p(u, { children: [
132
- /* @__PURE__ */ n(
131
+ endAdornment: /* @__PURE__ */ r(G, { position: "end", children: o[i].file.length > 0 ? /* @__PURE__ */ p(u, { children: [
132
+ /* @__PURE__ */ r(
133
133
  c,
134
134
  {
135
135
  onClick: () => m((e) => ({
@@ -137,19 +137,19 @@ const Fe = ({
137
137
  [i]: { ...e[i], file: [] }
138
138
  })),
139
139
  edge: "end",
140
- children: /* @__PURE__ */ n($, {})
140
+ children: /* @__PURE__ */ r($, {})
141
141
  }
142
142
  ),
143
- o[i].preview.map((e, t) => /* @__PURE__ */ n(
143
+ o[i].preview.map((e, t) => /* @__PURE__ */ r(
144
144
  c,
145
145
  {
146
146
  onClick: () => window.open(e),
147
147
  edge: "end",
148
- children: /* @__PURE__ */ n(z, {})
148
+ children: /* @__PURE__ */ r(z, {})
149
149
  },
150
150
  t
151
151
  ))
152
- ] }) : /* @__PURE__ */ n(
152
+ ] }) : /* @__PURE__ */ r(
153
153
  c,
154
154
  {
155
155
  onClick: () => {
@@ -157,7 +157,7 @@ const Fe = ({
157
157
  return (t = (e = O.current[i]) == null ? void 0 : e.current) == null ? void 0 : t.click();
158
158
  },
159
159
  edge: "end",
160
- children: /* @__PURE__ */ n(Y, {})
160
+ children: /* @__PURE__ */ r(Y, {})
161
161
  }
162
162
  ) })
163
163
  }
@@ -165,7 +165,7 @@ const Fe = ({
165
165
  required: o[i].required
166
166
  }
167
167
  ),
168
- /* @__PURE__ */ n(
168
+ /* @__PURE__ */ r(
169
169
  "input",
170
170
  {
171
171
  ref: O.current[i],
@@ -178,12 +178,12 @@ const Fe = ({
178
178
  }
179
179
  )
180
180
  ] }, i)) }),
181
- /* @__PURE__ */ n(x, { mt: 3.5, children: /* @__PURE__ */ n(A, { fullWidth: !0, onClick: U, children: /* @__PURE__ */ n("strong", { children: _ ? /* @__PURE__ */ p(u, { children: [
182
- /* @__PURE__ */ n(J, { size: 15, color: "inherit" }),
181
+ /* @__PURE__ */ r(x, { mt: 3.5, children: /* @__PURE__ */ r(A, { fullWidth: !0, onClick: U, children: /* @__PURE__ */ r("strong", { children: a ? /* @__PURE__ */ p(u, { children: [
182
+ /* @__PURE__ */ r(J, { size: 15, color: "inherit" }),
183
183
  " Processing..."
184
- ] }) : /* @__PURE__ */ n(u, { children: "Submit" }) }) }) })
184
+ ] }) : /* @__PURE__ */ r(u, { children: "Submit" }) }) }) })
185
185
  ] });
186
186
  };
187
187
  export {
188
- Fe as default
188
+ _e as default
189
189
  };
@@ -3,17 +3,18 @@ import "react";
3
3
  import "../../Wallet/Shared/Container/index.js";
4
4
  import "../Incode/index.js";
5
5
  import "../../../hoc/withThemeProvider.js";
6
- import { E as s, I as C, c as D, b as I, a as O, F as P } from "../../../index-CRyby3Qm.js";
6
+ import { E as C, I as D, c as I, b as O, a as P, F as e } from "../../../index-Da0r8FX2.js";
7
7
  import "./pep.js";
8
- import "../../../constants-BSdmHYnc.js";
9
- import "../../../kyc-BQsiHtP6.js";
10
- import "../../../react-redux-B4BZippc.js";
8
+ import "../../../constants-t7n9qCW3.js";
9
+ import "../../../kyc-D9xahfH9.js";
10
+ import "../../../react-redux-C7I9-1M6.js";
11
11
  import "./edd.js";
12
+ import "../../../hooks/useEverestDispatch.js";
12
13
  export {
13
- s as EDD_SCREEN,
14
- C as INCODE_SCREEN,
15
- D as PEP_SCREEN,
16
- I as PERSONAL_DETAILS_SCREEN,
17
- O as USER_INFO_SCREEN,
18
- P as default
14
+ C as EDD_SCREEN,
15
+ D as INCODE_SCREEN,
16
+ I as PEP_SCREEN,
17
+ O as PERSONAL_DETAILS_SCREEN,
18
+ P as USER_INFO_SCREEN,
19
+ e as default
19
20
  };
@@ -3,7 +3,7 @@ import { useState as n } from "react";
3
3
  import M from "../../Wallet/Shared/step.js";
4
4
  import { c as A } from "../../../countries-BVn1FubK.js";
5
5
  import F from "../../Wallet/Shared/appButton.js";
6
- import { d as B, f as _ } from "../../../constants-BSdmHYnc.js";
6
+ import { d as B, f as _ } from "../../../constants-t7n9qCW3.js";
7
7
  import { B as c } from "../../../Box-B0YSYLco.js";
8
8
  import { T as i } from "../../../Typography-pAaje37G.js";
9
9
  import { G as g } from "../../../Grid-CFe3amXO.js";
@@ -5,7 +5,7 @@ import "../../Wallet/Shared/appButton.js";
5
5
  import "../../../hoc/withThemeProvider.js";
6
6
  import "../../Wallet/Shared/Input/index.js";
7
7
  import "../../Wallet/Shared/Auth/otpForm.js";
8
- import "../../../constants-BSdmHYnc.js";
8
+ import "../../../constants-t7n9qCW3.js";
9
9
  import "../../../context/snackBarContext.js";
10
10
  import "../../../util/conversions.js";
11
11
  import "../../../index-CAoLi5Qq.js";
@@ -18,7 +18,7 @@ import "../../../moment-h96o7c8I.js";
18
18
  import "../../../index.esm-BsMAMhYW.js";
19
19
  import "../../../web3-u4qDZYpo.js";
20
20
  import "../../../index-ceeCtFuh.js";
21
- import { P as z } from "../../../index-CRyby3Qm.js";
21
+ import { P as z } from "../../../index-Da0r8FX2.js";
22
22
  import "../../../context/dialogContext.js";
23
23
  import "./countryList.js";
24
24
  import "../../../Box-B0YSYLco.js";
@@ -4,11 +4,11 @@ import "../../Wallet/Shared/Input/index.js";
4
4
  import "../../Wallet/Shared/appButton.js";
5
5
  import "../../../index-DlQqWbXG.js";
6
6
  import "../../../hoc/withThemeProvider.js";
7
- import "../../../react-redux-B4BZippc.js";
8
7
  import "../../Wallet/Shared/Auth/otpForm.js";
9
- import "../../../constants-BSdmHYnc.js";
10
- import "../../../kyc-BQsiHtP6.js";
8
+ import "../../../constants-t7n9qCW3.js";
9
+ import "../../../kyc-D9xahfH9.js";
11
10
  import "../../../context/snackBarContext.js";
11
+ import "../../../hooks/useEverestDispatch.js";
12
12
  import "../../../util/conversions.js";
13
13
  import "../../../index-CAoLi5Qq.js";
14
14
  import "../../Wallet/Shared/step.js";
@@ -21,7 +21,7 @@ import "../../../index.esm-BsMAMhYW.js";
21
21
  import "../../../countries-BVn1FubK.js";
22
22
  import "../../../web3-u4qDZYpo.js";
23
23
  import "../../../index-ceeCtFuh.js";
24
- import { U as H } from "../../../index-CRyby3Qm.js";
24
+ import { U as H } from "../../../index-Da0r8FX2.js";
25
25
  import "../../../context/dialogContext.js";
26
26
  import "./countryList.js";
27
27
  import "../../../Box-B0YSYLco.js";
@@ -1,39 +1,40 @@
1
- import { jsxs as d, Fragment as k, jsx as t } from "react/jsx-runtime";
2
- import { useState as s, useEffect as m } from "react";
1
+ import { jsxs as m, Fragment as k, jsx as t } from "react/jsx-runtime";
2
+ import { useState as s, useEffect as d } from "react";
3
3
  import { h as J } from "../../../moment-h96o7c8I.js";
4
- import { u as Q, a as M } from "../../../react-redux-B4BZippc.js";
4
+ import { u as M } from "../../../react-redux-C7I9-1M6.js";
5
5
  import { removeExtraSpace as i } from "../../../util/functions.js";
6
- import { nameRegex as U } from "../../../util/regex.js";
7
- import "../../../constants-BSdmHYnc.js";
8
- import { r as V, u as X } from "../../../kyc-BQsiHtP6.js";
9
- import { c as $ } from "../../../countries-BVn1FubK.js";
10
- import ee from "../../Wallet/Shared/Input/index.js";
11
- import { useSnackBarContext as te } from "../../../context/snackBarContext.js";
12
- import re from "../../Wallet/Shared/appButton.js";
6
+ import { nameRegex as Q } from "../../../util/regex.js";
7
+ import "../../../constants-t7n9qCW3.js";
8
+ import { r as U, u as V } from "../../../kyc-D9xahfH9.js";
9
+ import { c as X } from "../../../countries-BVn1FubK.js";
10
+ import $ from "../../Wallet/Shared/Input/index.js";
11
+ import { useSnackBarContext as ee } from "../../../context/snackBarContext.js";
12
+ import te from "../../Wallet/Shared/appButton.js";
13
+ import re from "../../../hooks/useEverestDispatch.js";
13
14
  import { T as I } from "../../../Typography-pAaje37G.js";
14
15
  import { B as a } from "../../../Box-B0YSYLco.js";
15
16
  import { F as ae } from "../../../FormControl-RtZDQMdA.js";
16
17
  import { S as se } from "../../../Select-CB5yWmyn.js";
17
18
  import { M as z } from "../../../MenuItem-DUdYOJr4.js";
18
19
  import { C as oe } from "../../../CircularProgress-xZA3lvba.js";
19
- const xe = ({
20
- onComplete: F,
21
- inputComponent: K,
22
- buttonComponent: Y
20
+ const Ae = ({
21
+ onComplete: E,
22
+ inputComponent: F,
23
+ buttonComponent: K
23
24
  }) => {
24
- const o = K ?? ee, E = Y ?? re, p = Q(), c = M(
25
+ const o = F ?? $, Y = K ?? te, p = re(), c = M(
25
26
  (e) => e.user.profile
26
- ), n = M((e) => e.user.kyc), g = n.loader, f = n.error, { showAlertMessage: r } = te(), [v, y] = s(""), [C, b] = s(""), [u, L] = s(""), [W, R] = s(""), [P, j] = s(""), [S, T] = s(""), [N, Z] = s(""), [q, w] = s(""), [h, O] = s("");
27
- m(() => () => {
28
- p(V());
29
- }, []), m(() => {
27
+ ), n = M((e) => e.user.kyc), g = n.loader, f = n.error, { showAlertMessage: r } = ee(), [v, y] = s(""), [C, b] = s(""), [u, L] = s(""), [W, R] = s(""), [P, j] = s(""), [S, T] = s(""), [N, Z] = s(""), [q, w] = s(""), [h, O] = s("");
28
+ d(() => () => {
29
+ p(U());
30
+ }, []), d(() => {
30
31
  f && r({ message: f });
31
- }, [f]), m(() => {
32
+ }, [f]), d(() => {
32
33
  n.minimal && (r({
33
34
  message: "Minimal KYC has been done successfully.",
34
35
  type: "success"
35
- }), F());
36
- }, [n]), m(() => {
36
+ }), E());
37
+ }, [n]), d(() => {
37
38
  y(c.firstName), b(c.lastName);
38
39
  }, [c]);
39
40
  const G = () => {
@@ -76,7 +77,7 @@ const xe = ({
76
77
  r({ message: "Please provide country" });
77
78
  return;
78
79
  }
79
- g || p(X({
80
+ g || p(V({
80
81
  personal_information: {
81
82
  first_name: e,
82
83
  last_name: l,
@@ -92,9 +93,9 @@ const xe = ({
92
93
  }
93
94
  }));
94
95
  }, x = (e, l) => {
95
- e ? U.test(e) && l(e) : l("");
96
+ e ? Q.test(e) && l(e) : l("");
96
97
  };
97
- return /* @__PURE__ */ d(k, { children: [
98
+ return /* @__PURE__ */ m(k, { children: [
98
99
  /* @__PURE__ */ t(I, { color: "primary", variant: "lg", fontWeight: 600, children: /* @__PURE__ */ t("b", { children: "Personal Details" }) }),
99
100
  /* @__PURE__ */ t(a, { mt: 2, children: /* @__PURE__ */ t(
100
101
  o,
@@ -195,7 +196,7 @@ const xe = ({
195
196
  required: !0
196
197
  }
197
198
  ) }),
198
- /* @__PURE__ */ d(a, { mt: 2, children: [
199
+ /* @__PURE__ */ m(a, { mt: 2, children: [
199
200
  /* @__PURE__ */ t(
200
201
  "label",
201
202
  {
@@ -208,7 +209,7 @@ const xe = ({
208
209
  children: "Country *"
209
210
  }
210
211
  ),
211
- /* @__PURE__ */ t(ae, { fullWidth: !0, children: /* @__PURE__ */ d(
212
+ /* @__PURE__ */ t(ae, { fullWidth: !0, children: /* @__PURE__ */ m(
212
213
  se,
213
214
  {
214
215
  value: h,
@@ -216,17 +217,17 @@ const xe = ({
216
217
  onChange: (e) => O(e.target.value),
217
218
  children: [
218
219
  /* @__PURE__ */ t(z, { value: "", children: "Select Country" }),
219
- $.map((e) => /* @__PURE__ */ t(z, { value: e.alpha3, children: e.name }, e.alpha3))
220
+ X.map((e) => /* @__PURE__ */ t(z, { value: e.alpha3, children: e.name }, e.alpha3))
220
221
  ]
221
222
  }
222
223
  ) })
223
224
  ] }),
224
- /* @__PURE__ */ t(a, { mt: 4, children: /* @__PURE__ */ t(E, { onClick: G, fullWidth: !0, children: /* @__PURE__ */ t("strong", { children: g ? /* @__PURE__ */ d(k, { children: [
225
+ /* @__PURE__ */ t(a, { mt: 4, children: /* @__PURE__ */ t(Y, { onClick: G, fullWidth: !0, children: /* @__PURE__ */ t("strong", { children: g ? /* @__PURE__ */ m(k, { children: [
225
226
  /* @__PURE__ */ t(oe, { size: 15, color: "inherit" }),
226
227
  " Processing..."
227
228
  ] }) : "Submit" }) }) })
228
229
  ] });
229
230
  };
230
231
  export {
231
- xe as default
232
+ Ae as default
232
233
  };
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { DialogOptions } from '../../../hooks/useDialog/types';
3
+ import { FEATURE_EWALLET, FEATURE_VIRTUAL_IBAN } from '../../../util/constants';
3
4
  import { BankState } from 'everest-npm-api';
4
5
  interface CreateIbanProps {
5
6
  openDialog: (options: DialogOptions) => void;
@@ -9,6 +10,7 @@ interface CreateIbanProps {
9
10
  navigate: (path: string) => void;
10
11
  currency: React.MutableRefObject<string>;
11
12
  setIbanCurrency: React.Dispatch<React.SetStateAction<string>>;
13
+ from: typeof FEATURE_EWALLET | typeof FEATURE_VIRTUAL_IBAN;
12
14
  }
13
15
  declare const CreateIban: React.FC<CreateIbanProps>;
14
16
  export default CreateIban;