everest-npm-features 0.0.62 → 0.0.64

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 (109) hide show
  1. package/dist/ArrowBack-DEJjwfp0.js +8 -0
  2. package/dist/{PlayArrow-BVDyfxsQ.js → PlayArrow-WUr_Eyo1.js} +1 -1
  3. package/dist/assets/styles.css +1 -1
  4. package/dist/assets/styles2.css +1 -1
  5. package/dist/{auth-DTJdu6mq.js → auth-Cg-RJNB1.js} +1 -1
  6. package/dist/bank-CPJa0NOE.js +47 -0
  7. package/dist/components/RocketRamp/MinimalKyc/form.js +3 -3
  8. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
  9. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
  10. package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
  11. package/dist/components/RocketRamp/Player/Buy/index.js +5 -5
  12. package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
  13. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
  14. package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
  15. package/dist/components/RocketRamp/Player/Sell/index.js +6 -6
  16. package/dist/components/RocketRamp/Player/SignIn/index.js +2 -2
  17. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
  18. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
  19. package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
  20. package/dist/components/RocketRamp/Player/SignUp/index.js +2 -2
  21. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
  22. package/dist/components/RocketRamp/ResetPassword/index.js +2 -2
  23. package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
  24. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
  25. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
  26. package/dist/components/RocketRamp/Transactions/index.js +2 -2
  27. package/dist/components/Shared/FullKyc/countryList.js +33 -30
  28. package/dist/components/Shared/FullKyc/edd.js +3 -3
  29. package/dist/components/Shared/FullKyc/index.js +11 -10
  30. package/dist/components/Shared/FullKyc/pep.js +68 -64
  31. package/dist/components/Shared/FullKyc/personalDetails.js +3 -3
  32. package/dist/components/Shared/FullKyc/userInfo.js +4 -4
  33. package/dist/components/Shared/MinimalKyc/index.js +2 -2
  34. package/dist/components/Shared/Sumsub/index.js +2 -2
  35. package/dist/components/Wallet/Account/createIban.d.ts +1 -2
  36. package/dist/components/Wallet/Account/createIban.js +14 -314
  37. package/dist/components/Wallet/Account/eWallet.js +33 -35
  38. package/dist/components/Wallet/Account/iban.d.ts +1 -0
  39. package/dist/components/Wallet/Account/iban.js +75 -54
  40. package/dist/components/Wallet/Account/ibanItem.js +3 -3
  41. package/dist/components/Wallet/Account/index.d.ts +1 -0
  42. package/dist/components/Wallet/Account/index.js +221 -184
  43. package/dist/components/Wallet/Account/sendIban.js +2 -2
  44. package/dist/components/Wallet/Buy/confirmTransaction.js +6 -6
  45. package/dist/components/Wallet/Buy/form.js +5 -5
  46. package/dist/components/Wallet/Buy/index.js +6 -6
  47. package/dist/components/Wallet/Deposit/index.js +2 -2
  48. package/dist/components/Wallet/EnterpriseKyc/edd.js +2 -2
  49. package/dist/components/Wallet/EnterpriseKyc/index.js +4 -4
  50. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +3 -3
  51. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +2 -2
  52. package/dist/components/Wallet/EnterpriseKyc/verify.js +2 -2
  53. package/dist/components/Wallet/History/index.js +2 -2
  54. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +96 -95
  55. package/dist/components/Wallet/Portfolio/dropdown.js +42 -27
  56. package/dist/components/Wallet/Portfolio/index.js +5 -5
  57. package/dist/components/Wallet/Profile/documents.js +121 -124
  58. package/dist/components/Wallet/Profile/index.js +4 -4
  59. package/dist/components/Wallet/Profile/storage.js +15 -15
  60. package/dist/components/Wallet/Receive/index.js +3 -3
  61. package/dist/components/Wallet/Sell/confirmTransaction.js +5 -5
  62. package/dist/components/Wallet/Sell/form.js +5 -5
  63. package/dist/components/Wallet/Sell/index.js +6 -6
  64. package/dist/components/Wallet/Send/index.js +36 -36
  65. package/dist/components/Wallet/Shared/Auth/otpForm.js +3 -3
  66. package/dist/components/Wallet/Shared/BankSelect/index.js +4 -4
  67. package/dist/components/Wallet/Shared/CardCorp/index.js +2 -2
  68. package/dist/components/Wallet/Shared/Container/index.d.ts +2 -1
  69. package/dist/components/Wallet/Shared/Container/index.js +19 -18
  70. package/dist/components/Wallet/Shared/addBank.js +4 -4
  71. package/dist/components/Wallet/Shared/connectPlaidBank.js +7 -7
  72. package/dist/components/Wallet/Shared/manualSend.js +4 -4
  73. package/dist/components/Wallet/SignIn/index.js +3 -3
  74. package/dist/components/Wallet/SignUp/index.js +3 -3
  75. package/dist/components/Wallet/Stake/gems/index.js +74 -62
  76. package/dist/components/Wallet/Stake/id/index.js +69 -65
  77. package/dist/components/Wallet/Stake/index.js +6 -6
  78. package/dist/components/Wallet/Swap/form.js +7 -7
  79. package/dist/components/Wallet/Swap/index.js +5 -5
  80. package/dist/components/Wallet/Withdraw/bankSelect.js +5 -5
  81. package/dist/components/Wallet/Withdraw/confirmTransaction.js +4 -4
  82. package/dist/components/Wallet/Withdraw/form.js +4 -4
  83. package/dist/components/Wallet/Withdraw/index.js +5 -5
  84. package/dist/{constants-DrmtdI1J.js → constants-BRS2liAt.js} +216 -214
  85. package/dist/createIban-DKoCQ4o3.js +573 -0
  86. package/dist/{cryptoAssets-DyGDknvq.js → cryptoAssets-BD0cJpXM.js} +1 -1
  87. package/dist/{index-CDwzoHu7.js → index-BUtxhHso.js} +87 -86
  88. package/dist/{index-3OQ4M69t.js → index-C2weAjLp.js} +70 -69
  89. package/dist/{index-BQNs1mvn.js → index-CREgBh59.js} +4 -3
  90. package/dist/{index-ILpK4BCB.js → index-CZhiRUiE.js} +4 -4
  91. package/dist/{index-CYX3j0V7.js → index-D7Eq-pbC.js} +65 -64
  92. package/dist/{index-C1WPCgkl.js → index-DX8IEulu.js} +5 -5
  93. package/dist/{index-CK4kLRAw.js → index-hgn4Pjw3.js} +5 -5
  94. package/dist/index-oPbOSCUk.js +545 -0
  95. package/dist/{kyc-ksV3vBP_.js → kyc-C7NviI9l.js} +1 -1
  96. package/dist/main.js +7 -7
  97. package/dist/{order-DEp_Lmar.js → order-DBuLYKfx.js} +1 -1
  98. package/dist/{otpForm-fiNqeB5H.js → otpForm-DhVp5Gvi.js} +2 -2
  99. package/dist/{stake-Ct7-_aWW.js → stake-DGXpiw_Y.js} +1 -1
  100. package/dist/styles.module-C99UuHOT.js +22 -0
  101. package/dist/styles.module-DFoezEqS.js +28 -0
  102. package/dist/util/constants.d.ts +1 -0
  103. package/dist/util/constants.js +72 -71
  104. package/dist/{wallet-CauUBXou.js → wallet-BLx0XKpK.js} +1 -1
  105. package/package.json +7 -7
  106. package/dist/bank-C4pmTe--.js +0 -37
  107. package/dist/index-BBFbUCRZ.js +0 -537
  108. package/dist/styles.module-C1sNeKjL.js +0 -22
  109. package/dist/styles.module-CHPRGltL.js +0 -28
@@ -1,15 +1,15 @@
1
- import { jsxs as o, Fragment as y, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as r, Fragment as y, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as a } from "react";
3
- import { Box as c, Typography as i, Grid as g, FormControl as m, Select as f, MenuItem as l, Autocomplete as M, TextField as A, CircularProgress as F } from "@mui/material";
4
- import _ from "../../Wallet/Shared/step.js";
5
- import { c as q } from "../../../countries-BVn1FubK.js";
6
- import B from "../../Wallet/Shared/appButton.js";
7
- import { d as Y, f as k } from "../../../constants-DrmtdI1J.js";
8
- const z = [
3
+ import { Box as c, Typography as i, Grid as g, FormControl as m, Select as f, MenuItem as l, Autocomplete as F, TextField as _, CircularProgress as k } from "@mui/material";
4
+ import q from "../../Wallet/Shared/step.js";
5
+ import { c as B } from "../../../countries-BVn1FubK.js";
6
+ import Y from "../../Wallet/Shared/appButton.js";
7
+ import { d as z, f as H } from "../../../constants-BRS2liAt.js";
8
+ const K = [
9
9
  "Hold a high public office",
10
10
  "Have an immediate family member who does",
11
11
  "A close business associate who does"
12
- ], H = [
12
+ ], T = [
13
13
  "Savings from salary (basic and/or bonus)",
14
14
  "Savings from salary (basic and/or bonus), self-employed",
15
15
  "Savings from salary (basic and/or bonus), self-employed company less than one year old",
@@ -29,13 +29,13 @@ const z = [
29
29
  "Company Profitsharing or Disbursement",
30
30
  "Company Dividends",
31
31
  "Gift"
32
- ], K = [
32
+ ], $ = [
33
33
  "Once a year",
34
34
  "Once every 3 months ",
35
35
  "Once a month ",
36
36
  "Once a week ",
37
37
  "Other"
38
- ], T = [
38
+ ], j = [
39
39
  "Investment",
40
40
  "Cross Border ",
41
41
  "Identity Services ",
@@ -43,15 +43,15 @@ const z = [
43
43
  "Wallet Services",
44
44
  "Custody Services",
45
45
  "Other Services"
46
- ], J = ({
46
+ ], Z = ({
47
47
  userInfo: C,
48
48
  setUserInfo: b,
49
49
  processKyc: O,
50
- buttonComponent: L,
51
- processLoader: P,
50
+ buttonComponent: P,
51
+ processLoader: L,
52
52
  kycFlow: v
53
53
  }) => {
54
- const W = L ?? B, [n, x] = a(!1), [d, S] = a(""), [p, D] = a(""), [h, E] = a(""), [u, I] = a(""), [s, w] = a(null), N = () => {
54
+ const W = P ?? Y, [n, x] = a(!1), [d, S] = a(""), [p, D] = a(""), [h, E] = a(""), [u, I] = a(""), [s, w] = a(null), N = () => {
55
55
  s && (b({
56
56
  ...C,
57
57
  isPoliticalExpose: n,
@@ -69,15 +69,15 @@ const z = [
69
69
  s.alpha3
70
70
  ));
71
71
  };
72
- return /* @__PURE__ */ o(y, { children: [
73
- v !== Y && /* @__PURE__ */ e(c, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ e(_, { totalSteps: 4, currentStep: 4 }) }),
74
- /* @__PURE__ */ o(c, { pl: 2, mt: 4, children: [
72
+ return /* @__PURE__ */ r(y, { children: [
73
+ v !== z && /* @__PURE__ */ e(c, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ e(q, { totalSteps: 4, currentStep: 4 }) }),
74
+ /* @__PURE__ */ r(c, { mt: 4, children: [
75
75
  /* @__PURE__ */ e(i, { variant: "h5", sx: { fontWeight: "bold" }, children: "Additional Questions" }),
76
- /* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */ o("strong", { children: [
76
+ /* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */ r("strong", { children: [
77
77
  "Are you a politically exposed person?",
78
78
  /* @__PURE__ */ e("span", { style: { color: "red" }, children: "*" })
79
79
  ] }) }),
80
- /* @__PURE__ */ o(g, { mt: 0, container: !0, spacing: 2, children: [
80
+ /* @__PURE__ */ r(g, { mt: 0, container: !0, spacing: 2, children: [
81
81
  /* @__PURE__ */ e(g, { size: { xs: 6 }, children: /* @__PURE__ */ e(
82
82
  c,
83
83
  {
@@ -97,7 +97,7 @@ const z = [
97
97
  }
98
98
  ) })
99
99
  ] }),
100
- n && /* @__PURE__ */ e(m, { sx: { mt: 2 }, className: "text-left", fullWidth: !0, children: /* @__PURE__ */ o(
100
+ n && /* @__PURE__ */ e(m, { sx: { mt: 2 }, className: "text-left", fullWidth: !0, children: /* @__PURE__ */ r(
101
101
  f,
102
102
  {
103
103
  sx: {
@@ -113,15 +113,15 @@ const z = [
113
113
  onChange: (t) => S(t.target.value),
114
114
  children: [
115
115
  /* @__PURE__ */ e(l, { value: "", children: "Please select" }),
116
- z.map((t) => /* @__PURE__ */ e(l, { value: t, children: t }, t))
116
+ K.map((t) => /* @__PURE__ */ e(l, { value: t, children: t }, t))
117
117
  ]
118
118
  }
119
119
  ) }),
120
- /* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */ o("strong", { children: [
120
+ /* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */ r("strong", { children: [
121
121
  "Expected frequency of transactions?",
122
122
  /* @__PURE__ */ e("span", { style: { color: "red" }, children: "*" })
123
123
  ] }) }),
124
- /* @__PURE__ */ e(m, { className: "mt8 text-left", fullWidth: !0, children: /* @__PURE__ */ o(
124
+ /* @__PURE__ */ e(m, { className: "mt8 text-left", fullWidth: !0, children: /* @__PURE__ */ r(
125
125
  f,
126
126
  {
127
127
  sx: {
@@ -137,15 +137,15 @@ const z = [
137
137
  onChange: (t) => D(t.target.value),
138
138
  children: [
139
139
  /* @__PURE__ */ e(l, { value: "", children: "Please select" }),
140
- K.map((t) => /* @__PURE__ */ e(l, { value: t, children: t }, t))
140
+ $.map((t) => /* @__PURE__ */ e(l, { value: t, children: t }, t))
141
141
  ]
142
142
  }
143
143
  ) }),
144
- /* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */ o("strong", { children: [
144
+ /* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */ r("strong", { children: [
145
145
  "Reason for signing up",
146
146
  /* @__PURE__ */ e("span", { style: { color: "red" }, children: "*" })
147
147
  ] }) }),
148
- /* @__PURE__ */ e(m, { sx: { mt: 1 }, className: "text-left", fullWidth: !0, children: /* @__PURE__ */ o(
148
+ /* @__PURE__ */ e(m, { sx: { mt: 1 }, className: "text-left", fullWidth: !0, children: /* @__PURE__ */ r(
149
149
  f,
150
150
  {
151
151
  sx: {
@@ -161,15 +161,15 @@ const z = [
161
161
  onChange: (t) => E(t.target.value),
162
162
  children: [
163
163
  /* @__PURE__ */ e(l, { value: "", children: "Please select" }),
164
- T.map((t) => /* @__PURE__ */ e(l, { value: t, children: t }, t))
164
+ j.map((t) => /* @__PURE__ */ e(l, { value: t, children: t }, t))
165
165
  ]
166
166
  }
167
167
  ) }),
168
- /* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */ o("strong", { children: [
168
+ /* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */ r("strong", { children: [
169
169
  "Source of wealth",
170
170
  /* @__PURE__ */ e("span", { style: { color: "red" }, children: "*" })
171
171
  ] }) }),
172
- /* @__PURE__ */ e(m, { className: "mt8 text-left", fullWidth: !0, children: /* @__PURE__ */ o(
172
+ /* @__PURE__ */ e(m, { className: "mt8 text-left", fullWidth: !0, children: /* @__PURE__ */ r(
173
173
  f,
174
174
  {
175
175
  sx: {
@@ -185,16 +185,16 @@ const z = [
185
185
  onChange: (t) => I(t.target.value),
186
186
  children: [
187
187
  /* @__PURE__ */ e(l, { value: "", children: "Please select" }),
188
- H.map((t) => /* @__PURE__ */ e(l, { value: t, children: t }, t))
188
+ T.map((t) => /* @__PURE__ */ e(l, { value: t, children: t }, t))
189
189
  ]
190
190
  }
191
191
  ) }),
192
- /* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */ o("strong", { children: [
192
+ /* @__PURE__ */ e(i, { mt: 4, variant: "body1", children: /* @__PURE__ */ r("strong", { children: [
193
193
  "Origin of funds",
194
194
  /* @__PURE__ */ e("span", { style: { color: "red" }, children: "*" })
195
195
  ] }) }),
196
196
  /* @__PURE__ */ e(
197
- M,
197
+ F,
198
198
  {
199
199
  sx: {
200
200
  mt: 2,
@@ -203,38 +203,42 @@ const z = [
203
203
  }
204
204
  },
205
205
  value: s,
206
- isOptionEqualToValue: (t, r) => t.alpha3 === r.alpha3,
207
- onChange: (t, r) => w(r),
208
- options: q,
206
+ isOptionEqualToValue: (t, o) => t.alpha3 === o.alpha3,
207
+ onChange: (t, o) => w(o),
208
+ options: B,
209
209
  autoHighlight: !0,
210
210
  openOnFocus: !0,
211
211
  getOptionLabel: (t) => t.name,
212
- renderOption: (t, r) => /* @__PURE__ */ o(
213
- c,
214
- {
215
- component: "li",
216
- sx: { "& > img": { mr: 2, flexShrink: 0 } },
217
- ...t,
218
- children: [
219
- /* @__PURE__ */ e(
220
- "img",
221
- {
222
- loading: "lazy",
223
- width: "20",
224
- src: `https://flagcdn.com/w20/${r.alpha2.toLowerCase()}.png`,
225
- srcSet: `https://flagcdn.com/w40/${r.alpha2.toLowerCase()}.png 2x`,
226
- alt: ""
227
- }
228
- ),
229
- r.name,
230
- " (",
231
- r.alpha3,
232
- ")"
233
- ]
234
- }
235
- ),
212
+ renderOption: (t, o) => {
213
+ const { key: M, ...A } = t;
214
+ return /* @__PURE__ */ r(
215
+ c,
216
+ {
217
+ component: "li",
218
+ sx: { "& > img": { mr: 2, flexShrink: 0 } },
219
+ ...A,
220
+ children: [
221
+ /* @__PURE__ */ e(
222
+ "img",
223
+ {
224
+ loading: "lazy",
225
+ width: "20",
226
+ src: `https://flagcdn.com/w20/${o.alpha2.toLowerCase()}.png`,
227
+ srcSet: `https://flagcdn.com/w40/${o.alpha2.toLowerCase()}.png 2x`,
228
+ alt: ""
229
+ }
230
+ ),
231
+ o.name,
232
+ " (",
233
+ o.alpha3,
234
+ ")"
235
+ ]
236
+ },
237
+ M
238
+ );
239
+ },
236
240
  renderInput: (t) => /* @__PURE__ */ e(
237
- A,
241
+ _,
238
242
  {
239
243
  className: "country-select-field",
240
244
  ...t,
@@ -257,14 +261,14 @@ const z = [
257
261
  onClick: N,
258
262
  disabled: !p || !h || !u || !s || n && !d,
259
263
  fullWidth: !0,
260
- children: /* @__PURE__ */ e("strong", { children: P ? /* @__PURE__ */ o(y, { children: [
261
- /* @__PURE__ */ e(F, { size: 15, color: "inherit" }),
264
+ children: /* @__PURE__ */ e("strong", { children: L ? /* @__PURE__ */ r(y, { children: [
265
+ /* @__PURE__ */ e(k, { size: 15, color: "inherit" }),
262
266
  " Processing..."
263
- ] }) : /* @__PURE__ */ e(y, { children: v === k ? "Submit KYC" : "Next" }) })
267
+ ] }) : /* @__PURE__ */ e(y, { children: v === H ? "Submit KYC" : "Next" }) })
264
268
  }
265
269
  )
266
270
  ] });
267
271
  };
268
272
  export {
269
- J as default
273
+ Z as default
270
274
  };
@@ -5,8 +5,8 @@ import "../../../index-DlQqWbXG.js";
5
5
  import "../../Wallet/Shared/appButton.js";
6
6
  import "../../../hoc/withThemeProvider.js";
7
7
  import "../../Wallet/Shared/Input/index.js";
8
- import "../../../otpForm-fiNqeB5H.js";
9
- import "../../../constants-DrmtdI1J.js";
8
+ import "../../../otpForm-DhVp5Gvi.js";
9
+ import "../../../constants-BRS2liAt.js";
10
10
  import "../../../context/snackBarContext.js";
11
11
  import "../../../util/conversions.js";
12
12
  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 y } from "../../../index-BBFbUCRZ.js";
21
+ import { P as y } from "../../../index-oPbOSCUk.js";
22
22
  import "../../../context/dialogContext.js";
23
23
  import "@mui/icons-material";
24
24
  import "./countryList.js";
@@ -5,9 +5,9 @@ import "../../Wallet/Shared/Input/index.js";
5
5
  import "../../Wallet/Shared/appButton.js";
6
6
  import "../../../index-DlQqWbXG.js";
7
7
  import "../../../hoc/withThemeProvider.js";
8
- import "../../../otpForm-fiNqeB5H.js";
9
- import "../../../constants-DrmtdI1J.js";
10
- import "../../../kyc-ksV3vBP_.js";
8
+ import "../../../otpForm-DhVp5Gvi.js";
9
+ import "../../../constants-BRS2liAt.js";
10
+ import "../../../kyc-C7NviI9l.js";
11
11
  import "../../../context/snackBarContext.js";
12
12
  import "../../../hooks/useEverestDispatch.js";
13
13
  import "../../../util/conversions.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 B } from "../../../index-BBFbUCRZ.js";
24
+ import { U as B } from "../../../index-oPbOSCUk.js";
25
25
  import "../../../context/dialogContext.js";
26
26
  import "@mui/icons-material";
27
27
  import "./countryList.js";
@@ -5,8 +5,8 @@ import { u as I } from "../../../react-redux-C7I9-1M6.js";
5
5
  import { Typography as M, Box as a, FormControl as Q, Select as U, MenuItem as z, CircularProgress as V } from "@mui/material";
6
6
  import { removeExtraSpace as o } from "../../../util/functions.js";
7
7
  import { nameRegex as X } from "../../../util/regex.js";
8
- import "../../../constants-DrmtdI1J.js";
9
- import { r as $, u as ee } from "../../../kyc-ksV3vBP_.js";
8
+ import "../../../constants-BRS2liAt.js";
9
+ import { r as $, u as ee } from "../../../kyc-C7NviI9l.js";
10
10
  import { c as te } from "../../../countries-BVn1FubK.js";
11
11
  import re from "../../Wallet/Shared/Input/index.js";
12
12
  import { useSnackBarContext as ae } from "../../../context/snackBarContext.js";
@@ -3,8 +3,8 @@ import { useState as d, useRef as b, useEffect as h, useCallback as c } from "re
3
3
  import { S as E } from "../../../index.esm-I_Bp2YLf.js";
4
4
  import { Typography as k, Box as g, CircularProgress as D } from "@mui/material";
5
5
  import { u as v } from "../../../react-redux-C7I9-1M6.js";
6
- import "../../../constants-DrmtdI1J.js";
7
- import { g as w, b as y } from "../../../kyc-ksV3vBP_.js";
6
+ import "../../../constants-BRS2liAt.js";
7
+ import { g as w, b as y } from "../../../kyc-C7NviI9l.js";
8
8
  import R from "../../../hooks/useEverestDispatch.js";
9
9
  function K({ onApplicantIdLoaded: o }) {
10
10
  const n = R(), e = v((r) => r.user.kyc), [i, T] = d(null), u = b(null), [a, A] = d(!1), l = b(!1);
@@ -7,9 +7,8 @@ interface CreateIbanProps {
7
7
  createIbanRequest: (currency: string) => void;
8
8
  iban: BankState["iban"];
9
9
  navigate: (path: string) => void;
10
- currency: React.MutableRefObject<string>;
11
- setIbanCurrency: React.Dispatch<React.SetStateAction<string>>;
12
10
  from: typeof FEATURE_EWALLET | typeof FEATURE_VIRTUAL_IBAN;
11
+ brandId?: string;
13
12
  }
14
13
  declare const CreateIban: React.FC<CreateIbanProps>;
15
14
  export default CreateIban;
@@ -1,14 +1,18 @@
1
- import { jsx as t, jsxs as m } from "react/jsx-runtime";
2
- import { useRef as A } from "react";
3
- import { u as N } from "../../../react-redux-C7I9-1M6.js";
4
- import { Box as S, CircularProgress as U, Typography as E, Select as v, MenuItem as d } from "@mui/material";
5
- import { FEATURE_EWALLET as r, DIALOG_ERROR_ICON as f, DIALOG_SUCCESS_ICON as P } from "../../../util/constants.js";
6
- import { a as V, ah as _, c as G, K } from "../../../constants-DrmtdI1J.js";
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "../../../react-redux-C7I9-1M6.js";
4
+ import "@mui/material";
5
+ import "../../../ArrowBack-DEJjwfp0.js";
6
+ import "../../../Close-DSxLLo08.js";
7
+ import "../../../util/constants.js";
8
+ import "../../../constants-BRS2liAt.js";
9
+ import "../../../bank-CPJa0NOE.js";
7
10
  import "../../../index-DlQqWbXG.js";
8
11
  import "../Shared/appButton.js";
9
12
  import "../../../hoc/withThemeProvider.js";
10
- import "../../../otpForm-fiNqeB5H.js";
11
- import { useSnackBarContext as O } from "../../../context/snackBarContext.js";
13
+ import "../../../otpForm-DhVp5Gvi.js";
14
+ import "../../../context/snackBarContext.js";
15
+ import "../../../hooks/useEverestDispatch.js";
12
16
  import "../../../util/conversions.js";
13
17
  import "../../../index-CAoLi5Qq.js";
14
18
  import "../../../react-webcam-B3cXh1XT.js";
@@ -17,315 +21,11 @@ import "../../../tooltip-BW0UyWw7.js";
17
21
  import "../../../moment-h96o7c8I.js";
18
22
  import "../../../index.esm-BsMAMhYW.js";
19
23
  import "../../../web3-u4qDZYpo.js";
24
+ import { C as D } from "../../../createIban-DKoCQ4o3.js";
20
25
  import "../../../index-ceeCtFuh.js";
21
26
  import "../../../index.esm-I_Bp2YLf.js";
22
27
  import "../../../context/dialogContext.js";
23
28
  import "@mui/icons-material";
24
- const Y = [
25
- {
26
- alpha3: "AUT",
27
- alpha2: "AT",
28
- name: "Austria"
29
- },
30
- {
31
- alpha3: "BEL",
32
- alpha2: "BE",
33
- name: "Belgium"
34
- },
35
- {
36
- alpha3: "BGR",
37
- alpha2: "BG",
38
- name: "Bulgaria"
39
- },
40
- {
41
- alpha3: "HRV",
42
- alpha2: "HR",
43
- name: "Croatia"
44
- },
45
- {
46
- alpha3: "CYP",
47
- alpha2: "CY",
48
- name: "Cyprus"
49
- },
50
- {
51
- alpha3: "CZE",
52
- alpha2: "CZ",
53
- name: "Czechia"
54
- },
55
- {
56
- alpha3: "DNK",
57
- alpha2: "DK",
58
- name: "Denmark"
59
- },
60
- {
61
- alpha3: "EST",
62
- alpha2: "EE",
63
- name: "Estonia"
64
- },
65
- {
66
- alpha3: "FIN",
67
- alpha2: "FI",
68
- name: "Finland"
69
- },
70
- {
71
- alpha3: "FRA",
72
- alpha2: "FR",
73
- name: "France"
74
- },
75
- {
76
- alpha3: "DEU",
77
- alpha2: "DE",
78
- name: "Germany"
79
- },
80
- {
81
- alpha3: "GRC",
82
- alpha2: "GR",
83
- name: "Greece"
84
- },
85
- {
86
- alpha3: "HUN",
87
- alpha2: "HU",
88
- name: "Hungary"
89
- },
90
- {
91
- alpha3: "ISL",
92
- alpha2: "IS",
93
- name: "Iceland"
94
- },
95
- {
96
- alpha3: "IRL",
97
- alpha2: "IE",
98
- name: "Ireland"
99
- },
100
- {
101
- alpha3: "ITA",
102
- alpha2: "IT",
103
- name: "Italy"
104
- },
105
- {
106
- alpha3: "LVA",
107
- alpha2: "LV",
108
- name: "Latvia"
109
- },
110
- {
111
- alpha3: "LIE",
112
- alpha2: "LI",
113
- name: "Liechtenstein"
114
- },
115
- {
116
- alpha3: "LTU",
117
- alpha2: "LT",
118
- name: "Lithuania"
119
- },
120
- {
121
- alpha3: "LUX",
122
- alpha2: "LU",
123
- name: "Luxembourg"
124
- },
125
- {
126
- alpha3: "MLT",
127
- alpha2: "MT",
128
- name: "Malta"
129
- },
130
- {
131
- alpha3: "MCO",
132
- alpha2: "MC",
133
- name: "Monaco"
134
- },
135
- {
136
- alpha3: "NLD",
137
- alpha2: "NL",
138
- name: "Netherlands"
139
- },
140
- {
141
- alpha3: "NOR",
142
- alpha2: "NO",
143
- name: "Norway"
144
- },
145
- {
146
- alpha3: "POL",
147
- alpha2: "PL",
148
- name: "Poland"
149
- },
150
- {
151
- alpha3: "PRT",
152
- alpha2: "PT",
153
- name: "Portugal"
154
- },
155
- {
156
- alpha3: "ROU",
157
- alpha2: "RO",
158
- name: "Romania"
159
- },
160
- {
161
- alpha3: "SVK",
162
- alpha2: "SK",
163
- name: "Slovakia"
164
- },
165
- {
166
- alpha3: "SVN",
167
- alpha2: "SI",
168
- name: "Slovenia"
169
- },
170
- {
171
- alpha3: "ESP",
172
- alpha2: "ES",
173
- name: "Spain"
174
- },
175
- {
176
- alpha3: "SWE",
177
- alpha2: "SE",
178
- name: "Sweden"
179
- },
180
- {
181
- alpha3: "CHE",
182
- alpha2: "CH",
183
- name: "Switzerland"
184
- },
185
- {
186
- alpha3: "GBR",
187
- alpha2: "GB",
188
- name: "United Kingdom"
189
- }
190
- ], ha = ({
191
- openDialog: n,
192
- createIbanRequest: B,
193
- iban: s,
194
- navigate: L,
195
- currency: a,
196
- setIbanCurrency: c,
197
- from: e
198
- }) => {
199
- const { showAlertMessage: C } = O(), u = N((o) => o.user), p = u.profile, T = p.loader, y = u.kyc.loader, h = u.kyc.status, I = p.email, R = s.loader, l = A(!1), g = () => {
200
- if (!I) {
201
- n({
202
- title: "No Email",
203
- message: "Please contact support to update your email address.",
204
- icon: f,
205
- width: "575px",
206
- confirmButtonText: "Contact Suuport",
207
- cancelButtonShow: !0,
208
- onConfirm: () => {
209
- window.location.href = "mailto:support@everest.org";
210
- }
211
- });
212
- return;
213
- }
214
- if (h === V || h === _) {
215
- n({
216
- title: "Under Review",
217
- message: "Your profile is currently being reviewed. If approved, you will have additional capabilities on the Everest platform.",
218
- width: "550px",
219
- cancelButtonShow: !1,
220
- confirmButtonText: "Dismiss",
221
- height: "270px"
222
- });
223
- return;
224
- }
225
- if (h !== G && h !== K) {
226
- n({
227
- title: "Verification Required",
228
- message: `To create a ${e === r ? "E-Wallet" : "Virtual IBAN"}, we first need to verify your identity. You will now be taken to complete your KYC verification.`,
229
- width: "575px",
230
- height: "400px",
231
- confirmButtonText: "Start Verification",
232
- cancelButtonText: "Cancel",
233
- onConfirm: () => L("/kyc")
234
- });
235
- return;
236
- }
237
- if (!Y.find(
238
- (i) => i.alpha3 === p.residentialAddress.country
239
- )) {
240
- n({
241
- title: "Not Allowed",
242
- message: "Currently we are not supporting your country for Virtual IBAN.",
243
- icon: f,
244
- width: "575px",
245
- height: "450px",
246
- confirmButtonText: "Continue",
247
- cancelButtonShow: !1
248
- });
249
- return;
250
- }
251
- if (p.memberType !== "individual") {
252
- n({
253
- title: "Not Allowed",
254
- message: "Currently we are not supporting organizational wallet(KYB) for Virtual IBAN.",
255
- icon: f,
256
- width: "575px",
257
- height: "450px",
258
- confirmButtonText: "Continue",
259
- cancelButtonShow: !1
260
- });
261
- return;
262
- }
263
- e === r && (a.current = "EUR", c("EUR")), n({
264
- title: e === r ? "Create E-Wallet" : "Create Virtual IBAN",
265
- message: /* @__PURE__ */ m(S, { children: [
266
- /* @__PURE__ */ t(E, { children: e === r ? "Please proceed to create your E-Wallet." : "Please select the currency for the Virtual IBAN and proceed." }),
267
- e !== r && /* @__PURE__ */ m(
268
- v,
269
- {
270
- defaultValue: "",
271
- onChange: (i) => {
272
- a.current = i.target.value, c(i.target.value);
273
- },
274
- style: { marginTop: "10px" },
275
- displayEmpty: !0,
276
- fullWidth: !0,
277
- children: [
278
- /* @__PURE__ */ t(d, { value: "", children: "Select currency" }),
279
- /* @__PURE__ */ t(d, { value: "EUR", children: "EUR" }),
280
- /* @__PURE__ */ t(d, { value: "GBP", children: "GBP" })
281
- ]
282
- }
283
- )
284
- ] }),
285
- icon: P,
286
- width: "575px",
287
- confirmButtonText: "Create",
288
- cancelButtonShow: !0,
289
- cancelButtonText: "Cancel",
290
- closeModalConfirm: w,
291
- onConfirm: x,
292
- onCancel: () => {
293
- a.current = "", c(""), l.current = !1;
294
- },
295
- onClose: () => {
296
- a.current = "", l.current = !1;
297
- }
298
- });
299
- }, w = () => !l.current, x = () => {
300
- if (l.current = !1, !a.current)
301
- return l.current = !0, C({
302
- message: e === r ? "Currency selection is missing." : "Please select currency for Virtual IBAN."
303
- }), !1;
304
- if (s.data.length > 0) {
305
- const o = s.data.find(
306
- (i) => i.currency === a.current
307
- );
308
- if (o != null && o.id)
309
- return l.current = !0, C({
310
- message: `You already have the ${a.current} Virtual IBAN.`
311
- }), !1;
312
- }
313
- B(a.current);
314
- };
315
- return T || y || R ? /* @__PURE__ */ t(S, { mt: 4, className: "flex-center", children: /* @__PURE__ */ t(U, { color: "primary", size: 50 }) }) : /* @__PURE__ */ t(
316
- E,
317
- {
318
- onClick: g,
319
- component: "span",
320
- color: "primary",
321
- sx: { cursor: "pointer" },
322
- children: /* @__PURE__ */ m("span", { className: "text-underline", children: [
323
- "+ Add ",
324
- e === r ? "E-Wallet" : "Virtual IBAN"
325
- ] })
326
- }
327
- );
328
- };
329
29
  export {
330
- ha as default
30
+ D as default
331
31
  };