everest-npm-features 0.0.47 → 0.0.49

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 (112) hide show
  1. package/dist/{PlayArrow-Cm8tJN8W.js → PlayArrow-C3uVNo4F.js} +1 -1
  2. package/dist/assets/styles.css +1 -1
  3. package/dist/assets/styles2.css +1 -1
  4. package/dist/assets/styles3.css +1 -1
  5. package/dist/assets/styles4.css +1 -0
  6. package/dist/{auth-D0r8wtCH.js → auth-ClBgT--j.js} +1 -1
  7. package/dist/{bank-BmV_keEr.js → bank-Dz5km1qK.js} +3 -3
  8. package/dist/components/RocketRamp/MinimalKyc/form.js +14 -13
  9. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
  10. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
  11. package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
  12. package/dist/components/RocketRamp/Player/Buy/index.js +12 -11
  13. package/dist/components/RocketRamp/Player/Dashboard/index.js +25 -24
  14. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
  15. package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
  16. package/dist/components/RocketRamp/Player/Sell/index.js +12 -11
  17. package/dist/components/RocketRamp/Player/SignIn/index.js +20 -19
  18. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
  19. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
  20. package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
  21. package/dist/components/RocketRamp/Player/SignUp/index.js +39 -38
  22. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
  23. package/dist/components/RocketRamp/ResetPassword/index.js +21 -20
  24. package/dist/components/RocketRamp/Store/SignUp/index.js +48 -47
  25. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
  26. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
  27. package/dist/components/RocketRamp/Transactions/index.js +14 -13
  28. package/dist/components/Shared/FullKyc/edd.js +41 -41
  29. package/dist/components/Shared/FullKyc/index.js +11 -10
  30. package/dist/components/Shared/FullKyc/pep.js +1 -1
  31. package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
  32. package/dist/components/Shared/FullKyc/userInfo.js +4 -4
  33. package/dist/components/Shared/MinimalKyc/index.js +31 -30
  34. package/dist/components/Wallet/Account/createIban.d.ts +2 -0
  35. package/dist/components/Wallet/Account/createIban.js +70 -62
  36. package/dist/components/Wallet/Account/eWallet.d.ts +20 -0
  37. package/dist/components/Wallet/Account/eWallet.js +96 -0
  38. package/dist/components/Wallet/Account/iban.d.ts +2 -0
  39. package/dist/components/Wallet/Account/iban.js +38 -32
  40. package/dist/components/Wallet/Account/ibanItem.d.ts +5 -2
  41. package/dist/components/Wallet/Account/ibanItem.js +233 -76
  42. package/dist/components/Wallet/Account/index.d.ts +2 -0
  43. package/dist/components/Wallet/Account/index.js +164 -143
  44. package/dist/components/Wallet/Account/sendIban.js +3 -3
  45. package/dist/components/Wallet/Buy/confirmTransaction.js +6 -6
  46. package/dist/components/Wallet/Buy/form.js +6 -6
  47. package/dist/components/Wallet/Buy/index.js +14 -13
  48. package/dist/components/Wallet/Deposit/index.js +1 -1
  49. package/dist/components/Wallet/EnterpriseKyc/edd.js +9 -9
  50. package/dist/components/Wallet/EnterpriseKyc/index.js +23 -22
  51. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +24 -24
  52. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
  53. package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
  54. package/dist/components/Wallet/History/index.js +25 -24
  55. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +49 -48
  56. package/dist/components/Wallet/Portfolio/index.js +34 -33
  57. package/dist/components/Wallet/Profile/documents.js +527 -28
  58. package/dist/components/Wallet/Profile/index.js +179 -149
  59. package/dist/components/Wallet/Profile/storage.d.ts +11 -0
  60. package/dist/components/Wallet/Profile/storage.js +267 -0
  61. package/dist/components/Wallet/Receive/index.js +22 -21
  62. package/dist/components/Wallet/Sell/confirmTransaction.js +5 -5
  63. package/dist/components/Wallet/Sell/form.js +6 -6
  64. package/dist/components/Wallet/Sell/index.js +13 -12
  65. package/dist/components/Wallet/Send/index.js +44 -43
  66. package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
  67. package/dist/components/Wallet/Shared/BankSelect/index.js +36 -35
  68. package/dist/components/Wallet/Shared/CardCorp/index.d.ts +1 -1
  69. package/dist/components/Wallet/Shared/CardCorp/index.js +16 -16
  70. package/dist/components/Wallet/Shared/addBank.js +39 -38
  71. package/dist/components/Wallet/Shared/connectPlaidBank.js +19 -18
  72. package/dist/components/Wallet/Shared/manualSend.js +7 -6
  73. package/dist/components/Wallet/Shared/pin.js +1 -1
  74. package/dist/components/Wallet/SignIn/index.js +24 -23
  75. package/dist/components/Wallet/SignUp/index.js +22 -21
  76. package/dist/components/Wallet/Stake/gems/index.js +1 -1
  77. package/dist/components/Wallet/Stake/id/index.js +1 -1
  78. package/dist/components/Wallet/Stake/index.js +31 -30
  79. package/dist/components/Wallet/Swap/form.js +9 -8
  80. package/dist/components/Wallet/Swap/index.js +11 -10
  81. package/dist/components/Wallet/Withdraw/bankSelect.js +28 -27
  82. package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -5
  83. package/dist/components/Wallet/Withdraw/form.js +5 -5
  84. package/dist/components/Wallet/Withdraw/index.js +12 -11
  85. package/dist/{constants-BJhUp96H.js → constants-t7n9qCW3.js} +559 -553
  86. package/dist/{cryptoAssets-Q_UWeuzR.js → cryptoAssets-shEFU26O.js} +1 -1
  87. package/dist/hooks/useDialog/index.js +1 -1
  88. package/dist/hooks/useEverestDispatch.d.ts +6 -0
  89. package/dist/hooks/useEverestDispatch.js +5 -0
  90. package/dist/{index-Dkjl8hIv.js → index-B6MSTmAM.js} +112 -111
  91. package/dist/{index-MUaN67Ei.js → index-C2EjFXaz.js} +88 -87
  92. package/dist/{index-pCrOsXNC.js → index-Cs7bSfT3.js} +29 -28
  93. package/dist/{index-DegQ9bTI.js → index-DFRU-R-5.js} +39 -38
  94. package/dist/{index-BRnTzw1Z.js → index-Da0r8FX2.js} +11 -10
  95. package/dist/{index-Dq5wTY4S.js → index-RDV0mQbt.js} +36 -35
  96. package/dist/{index-B2wXmFh5.js → index-j0zehpzg.js} +41 -40
  97. package/dist/{kyc-DLaLS7sp.js → kyc-D9xahfH9.js} +1 -1
  98. package/dist/main.js +7 -7
  99. package/dist/{order-fWKVFTau.js → order-jqH948WM.js} +29 -25
  100. package/dist/{react-redux-B4BZippc.js → react-redux-C7I9-1M6.js} +2 -2
  101. package/dist/{stake-CQLutF0z.js → stake-Dcq6QpaA.js} +3 -3
  102. package/dist/{styles.module-O5VVND5e.js → styles.module-C1sNeKjL.js} +1 -1
  103. package/dist/styles.module-CHPRGltL.js +28 -0
  104. package/dist/{styles.module-CHEBh2ID.js → styles.module-DMd29SPQ.js} +1 -1
  105. package/dist/{styles.module-CUA1zLEJ.js → styles.module-verVx4pE.js} +1 -1
  106. package/dist/util/constants.d.ts +5 -0
  107. package/dist/util/constants.js +86 -81
  108. package/dist/util/functions.js +36 -36
  109. package/dist/{wallet-CuQDBP6a.js → wallet-DpkUmmq0.js} +1 -1
  110. package/package.json +3 -2
  111. package/dist/assets/documents.css +0 -1
  112. package/dist/documents-RjwlADn2.js +0 -552
@@ -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-BJhUp96H.js";
10
- import { a as H } from "../../../kyc-DLaLS7sp.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-BRnTzw1Z.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-BJhUp96H.js";
9
- import "../../../kyc-DLaLS7sp.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-BJhUp96H.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-BJhUp96H.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-BRnTzw1Z.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-BJhUp96H.js";
10
- import "../../../kyc-DLaLS7sp.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-BRnTzw1Z.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-BJhUp96H.js";
8
- import { r as V, u as X } from "../../../kyc-DLaLS7sp.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;
@@ -1,16 +1,16 @@
1
- import { jsx as a, jsxs as l, Fragment as P } from "react/jsx-runtime";
2
- import { useState as v, useRef as U } from "react";
3
- import { a as C } from "../../../react-redux-B4BZippc.js";
4
- import { DIALOG_ERROR_ICON as c, DIALOG_SUCCESS_ICON as V } from "../../../util/constants.js";
5
- import { C as _ } from "../../../Close-CNwiMz_O.js";
6
- import k from "../../Shared/transition.js";
7
- import D from "../Shared/CardPayment/index.js";
8
- import { a as M, ae as O, c as G, K } from "../../../constants-BJhUp96H.js";
1
+ import { jsx as a, jsxs as o, Fragment as v } from "react/jsx-runtime";
2
+ import { useState as _, useRef as V } from "react";
3
+ import { u as y } from "../../../react-redux-C7I9-1M6.js";
4
+ import { FEATURE_EWALLET as g, DIALOG_ERROR_ICON as c, DIALOG_SUCCESS_ICON as k } from "../../../util/constants.js";
5
+ import { C as D } from "../../../Close-CNwiMz_O.js";
6
+ import M from "../../Shared/transition.js";
7
+ import O from "../Shared/CardPayment/index.js";
8
+ import { a as F, af as G, c as K, K as Y } from "../../../constants-t7n9qCW3.js";
9
9
  import "../../../index-DlQqWbXG.js";
10
10
  import "../Shared/appButton.js";
11
11
  import "../../../hoc/withThemeProvider.js";
12
12
  import "../Shared/Auth/otpForm.js";
13
- import { useSnackBarContext as F } from "../../../context/snackBarContext.js";
13
+ import { useSnackBarContext as b } from "../../../context/snackBarContext.js";
14
14
  import "../../../util/conversions.js";
15
15
  import "../../../index-CAoLi5Qq.js";
16
16
  import "../../../react-webcam-B3cXh1XT.js";
@@ -21,15 +21,15 @@ import "../../../index.esm-BsMAMhYW.js";
21
21
  import "../../../web3-u4qDZYpo.js";
22
22
  import "../../../context/dialogContext.js";
23
23
  import "../../../index-ceeCtFuh.js";
24
- import { B as S } from "../../../Box-B0YSYLco.js";
25
- import { C as b } from "../../../CircularProgress-xZA3lvba.js";
24
+ import { B } from "../../../Box-B0YSYLco.js";
25
+ import { C as W } from "../../../CircularProgress-xZA3lvba.js";
26
26
  import { T as h } from "../../../Typography-pAaje37G.js";
27
- import { D as Y, a as H } from "../../../DialogContent-BMwlOnbW.js";
28
- import { D as W } from "../../../DialogTitle-CfS0bb2K.js";
29
- import { I as z } from "../../../IconButton-DHm-hucF.js";
30
- import { S as j } from "../../../Select-CB5yWmyn.js";
27
+ import { D as H, a as z } from "../../../DialogContent-BMwlOnbW.js";
28
+ import { D as $ } from "../../../DialogTitle-CfS0bb2K.js";
29
+ import { I as j } from "../../../IconButton-DHm-hucF.js";
30
+ import { S as Z } from "../../../Select-CB5yWmyn.js";
31
31
  import { M as u } from "../../../MenuItem-DUdYOJr4.js";
32
- const Z = [
32
+ const q = [
33
33
  {
34
34
  alpha3: "AUT",
35
35
  alpha2: "AT",
@@ -195,17 +195,18 @@ const Z = [
195
195
  alpha2: "GB",
196
196
  name: "United Kingdom"
197
197
  }
198
- ], La = ({
198
+ ], Aa = ({
199
199
  openDialog: t,
200
- checkoutSdkKey: y,
201
- paymentRequest: B,
202
- iban: g,
203
- navigate: T,
200
+ checkoutSdkKey: E,
201
+ paymentRequest: T,
202
+ iban: d,
203
+ navigate: I,
204
204
  currency: r,
205
- setIbanCurrency: d
205
+ setIbanCurrency: f,
206
+ from: C
206
207
  }) => {
207
- const { showAlertMessage: f } = F(), s = C((e) => e.user), i = s.profile, I = C((e) => e.order), x = i.loader, N = s.kyc.loader, p = s.kyc.status, E = i.email, [L, m] = v(!1), n = U(!1), w = () => {
208
- if (!E) {
208
+ const { showAlertMessage: S } = b(), s = y((e) => e.user), i = s.profile, x = y((e) => e.order), L = i.loader, N = s.kyc.loader, p = s.kyc.status, w = i.email, [A, m] = _(!1), n = V(!1), R = () => {
209
+ if (!w) {
209
210
  t({
210
211
  title: "No Email",
211
212
  message: "Please contact support to update your email address.",
@@ -219,7 +220,7 @@ const Z = [
219
220
  });
220
221
  return;
221
222
  }
222
- if (p === M || p === O) {
223
+ if (p === F || p === G) {
223
224
  t({
224
225
  title: "Under Review",
225
226
  message: "Your profile is currently being reviewed. If approved, you will have additional capabilities on the Everest platform.",
@@ -230,7 +231,7 @@ const Z = [
230
231
  });
231
232
  return;
232
233
  }
233
- if (p !== G && p !== K) {
234
+ if (p !== K && p !== Y) {
234
235
  t({
235
236
  title: "Verifying",
236
237
  message: "We are gathering information, and will provision your Virtual IBAN shortly.",
@@ -238,12 +239,12 @@ const Z = [
238
239
  height: "400px",
239
240
  confirmButtonText: "Continue",
240
241
  cancelButtonText: "Cancel",
241
- onConfirm: () => T("/kyc")
242
+ onConfirm: () => I("/kyc")
242
243
  });
243
244
  return;
244
245
  }
245
- if (!Z.find(
246
- (o) => o.alpha3 === i.residentialAddress.country
246
+ if (!q.find(
247
+ (l) => l.alpha3 === i.residentialAddress.country
247
248
  )) {
248
249
  t({
249
250
  title: "Not Allowed",
@@ -270,14 +271,14 @@ const Z = [
270
271
  }
271
272
  t({
272
273
  title: "Payment",
273
- message: /* @__PURE__ */ l(S, { children: [
274
- /* @__PURE__ */ a(h, { children: "You will be charged $12 per annum for creating an Virtual IBAN. Please select currency for the Virtual IBAN and proceed." }),
275
- /* @__PURE__ */ l(
276
- j,
274
+ message: /* @__PURE__ */ o(B, { children: [
275
+ /* @__PURE__ */ a(h, { children: C === g ? "You will be charged $2 per annum for creating an E-Wallet. Please select the currency for the E-Wallet and proceed." : "You will be charged $12 per annum for creating a Virtual IBAN. Please select the currency for the Virtual IBAN and proceed." }),
276
+ /* @__PURE__ */ o(
277
+ Z,
277
278
  {
278
279
  defaultValue: "",
279
- onChange: (o) => {
280
- r.current = o.target.value, d(o.target.value);
280
+ onChange: (l) => {
281
+ r.current = l.target.value, f(l.target.value);
281
282
  },
282
283
  style: { marginTop: "10px" },
283
284
  displayEmpty: !0,
@@ -290,75 +291,82 @@ const Z = [
290
291
  }
291
292
  )
292
293
  ] }),
293
- icon: V,
294
+ icon: k,
294
295
  width: "575px",
295
296
  confirmButtonText: "Make Payment",
296
297
  cancelButtonShow: !0,
297
298
  cancelButtonText: "Cancel",
298
- closeModalConfirm: R,
299
- onConfirm: A,
299
+ closeModalConfirm: P,
300
+ onConfirm: U,
300
301
  onCancel: () => {
301
- r.current = "", d(""), n.current = !1;
302
+ r.current = "", f(""), n.current = !1;
302
303
  },
303
304
  onClose: () => {
304
305
  r.current = "", n.current = !1;
305
306
  }
306
307
  });
307
- }, R = () => !n.current, A = () => {
308
+ }, P = () => !n.current, U = () => {
308
309
  if (n.current = !1, !r.current)
309
- return n.current = !0, f({
310
+ return n.current = !0, S({
310
311
  message: "Please select currency for Virtual IBAN."
311
312
  }), !1;
312
- const e = g.data.find((o) => o.currency === r.current);
313
- if (e != null && e.id)
314
- return n.current = !0, f({
315
- message: `You already have the ${r.current} Virtual IBAN.`
316
- }), !1;
313
+ if (d.data.length > 0) {
314
+ const e = d.data.find(
315
+ (l) => l.currency === r.current
316
+ );
317
+ if (e != null && e.id)
318
+ return n.current = !0, S({
319
+ message: `You already have the ${r.current} Virtual IBAN.`
320
+ }), !1;
321
+ }
317
322
  m(!0);
318
323
  };
319
- return x || N ? /* @__PURE__ */ a(S, { mt: 4, className: "flex-center", children: /* @__PURE__ */ a(b, { color: "primary", size: 50 }) }) : /* @__PURE__ */ l(P, { children: [
324
+ return L || N ? /* @__PURE__ */ a(B, { mt: 4, className: "flex-center", children: /* @__PURE__ */ a(W, { color: "primary", size: 50 }) }) : /* @__PURE__ */ o(v, { children: [
320
325
  /* @__PURE__ */ a(
321
326
  h,
322
327
  {
323
- onClick: w,
328
+ onClick: R,
324
329
  component: "span",
325
330
  color: "primary",
326
331
  sx: { cursor: "pointer" },
327
- children: /* @__PURE__ */ a("span", { className: "text-underline", children: "+ Add Virtual IBAN" })
332
+ children: /* @__PURE__ */ o("span", { className: "text-underline", children: [
333
+ "+ Add ",
334
+ C === g ? "E-Wallet" : "Virtual IBAN"
335
+ ] })
328
336
  }
329
337
  ),
330
- /* @__PURE__ */ l(
331
- Y,
338
+ /* @__PURE__ */ o(
339
+ H,
332
340
  {
333
- open: L,
341
+ open: A,
334
342
  fullWidth: !0,
335
343
  onClose: () => m(!1),
336
- TransitionComponent: k,
344
+ TransitionComponent: M,
337
345
  children: [
338
- /* @__PURE__ */ l(W, { className: "buy-modal-text-color", children: [
346
+ /* @__PURE__ */ o($, { className: "buy-modal-text-color", children: [
339
347
  /* @__PURE__ */ a(h, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ a("strong", { children: "Payment" }) }),
340
348
  /* @__PURE__ */ a(
341
- z,
349
+ j,
342
350
  {
343
351
  "aria-label": "close",
344
352
  onClick: () => m(!1),
345
353
  className: "menu-buttons",
346
- children: /* @__PURE__ */ a(_, {})
354
+ children: /* @__PURE__ */ a(D, {})
347
355
  }
348
356
  )
349
357
  ] }),
350
358
  /* @__PURE__ */ a(
351
- H,
359
+ z,
352
360
  {
353
361
  className: "bank-modal-content",
354
362
  sx: { padding: "50px" },
355
363
  dividers: !0,
356
364
  children: /* @__PURE__ */ a(
357
- D,
365
+ O,
358
366
  {
359
- checkoutKey: y,
360
- orderData: I,
361
- initPaymentRequest: B,
367
+ checkoutKey: E,
368
+ orderData: x,
369
+ initPaymentRequest: T,
362
370
  backBtnFunc: () => m(!1)
363
371
  }
364
372
  )
@@ -370,5 +378,5 @@ const Z = [
370
378
  ] });
371
379
  };
372
380
  export {
373
- La as default
381
+ Aa as default
374
382
  };