everest-npm-features 0.0.52 → 0.0.54

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 (91) hide show
  1. package/dist/{PlayArrow-C3uVNo4F.js → PlayArrow-jzz8Y3XD.js} +1 -1
  2. package/dist/{auth-ClBgT--j.js → auth-jjVjqywi.js} +1 -1
  3. package/dist/bank-BM66KfAv.js +37 -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/MinimalKyc/index.js +2 -2
  30. package/dist/components/Wallet/Account/createIban.d.ts +1 -2
  31. package/dist/components/Wallet/Account/createIban.js +77 -125
  32. package/dist/components/Wallet/Account/eWallet.d.ts +1 -0
  33. package/dist/components/Wallet/Account/eWallet.js +55 -72
  34. package/dist/components/Wallet/Account/iban.d.ts +1 -0
  35. package/dist/components/Wallet/Account/iban.js +48 -65
  36. package/dist/components/Wallet/Account/ibanItem.js +150 -123
  37. package/dist/components/Wallet/Account/index.js +181 -173
  38. package/dist/components/Wallet/Account/sendIban.js +2 -2
  39. package/dist/components/Wallet/Buy/confirmTransaction.js +5 -5
  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 +1 -1
  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 +3 -3
  50. package/dist/components/Wallet/Portfolio/index.js +4 -4
  51. package/dist/components/Wallet/Profile/documents.js +1 -1
  52. package/dist/components/Wallet/Profile/index.js +1 -1
  53. package/dist/components/Wallet/Profile/storage.js +1 -1
  54. package/dist/components/Wallet/Receive/index.js +2 -2
  55. package/dist/components/Wallet/Sell/confirmTransaction.js +3 -3
  56. package/dist/components/Wallet/Sell/form.js +4 -4
  57. package/dist/components/Wallet/Sell/index.js +6 -6
  58. package/dist/components/Wallet/Send/index.js +3 -3
  59. package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
  60. package/dist/components/Wallet/Shared/BankSelect/index.js +3 -3
  61. package/dist/components/Wallet/Shared/CardCorp/index.js +1 -1
  62. package/dist/components/Wallet/Shared/addBank.js +2 -2
  63. package/dist/components/Wallet/Shared/connectPlaidBank.js +2 -2
  64. package/dist/components/Wallet/Shared/manualSend.js +4 -4
  65. package/dist/components/Wallet/SignIn/index.js +2 -2
  66. package/dist/components/Wallet/SignUp/index.js +2 -2
  67. package/dist/components/Wallet/Stake/index.js +3 -3
  68. package/dist/components/Wallet/Swap/form.js +6 -6
  69. package/dist/components/Wallet/Swap/index.js +5 -5
  70. package/dist/components/Wallet/Withdraw/bankSelect.js +4 -4
  71. package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -3
  72. package/dist/components/Wallet/Withdraw/form.js +4 -4
  73. package/dist/components/Wallet/Withdraw/index.js +5 -5
  74. package/dist/{constants-t7n9qCW3.js → constants-Dtk3Gd0Y.js} +123 -123
  75. package/dist/{cryptoAssets-shEFU26O.js → cryptoAssets-DT2afvDJ.js} +1 -1
  76. package/dist/{index-DFRU-R-5.js → index-B4pP4oLo.js} +7 -7
  77. package/dist/{index-B6MSTmAM.js → index-BEFNlxwM.js} +15 -15
  78. package/dist/{index-Cs7bSfT3.js → index-BGJ8RVKA.js} +5 -5
  79. package/dist/{index-Dwid4PLx.js → index-BU6Lajc_.js} +2 -2
  80. package/dist/{index-C2EjFXaz.js → index-BUnkeQv6.js} +7 -7
  81. package/dist/{index-RDV0mQbt.js → index-CyPm8GTl.js} +4 -4
  82. package/dist/{index-j0zehpzg.js → index-JdlBukUO.js} +4 -4
  83. package/dist/{kyc-D9xahfH9.js → kyc-BOm2LCSg.js} +1 -1
  84. package/dist/main.js +7 -7
  85. package/dist/{order-jqH948WM.js → order-DuPcaU0K.js} +27 -31
  86. package/dist/{stake-Dcq6QpaA.js → stake-WaB8Q4v-.js} +3 -3
  87. package/dist/util/constants.d.ts +1 -0
  88. package/dist/util/constants.js +64 -63
  89. package/dist/{wallet-DpkUmmq0.js → wallet-BxwOFeSW.js} +1 -1
  90. package/package.json +2 -2
  91. package/dist/bank-Dz5km1qK.js +0 -33
@@ -1,35 +1,30 @@
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 p, DIALOG_ERROR_ICON as d, 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";
1
+ import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
+ import { useRef as N } from "react";
3
+ import { u as w } from "../../../react-redux-C7I9-1M6.js";
4
+ import { FEATURE_EWALLET as i, DIALOG_ERROR_ICON as d, DIALOG_SUCCESS_ICON as U } from "../../../util/constants.js";
5
+ import { a as v, af as P, c as _, K as V } from "../../../constants-Dtk3Gd0Y.js";
9
6
  import "../../../index-DlQqWbXG.js";
10
7
  import "../Shared/appButton.js";
11
8
  import "../../../hoc/withThemeProvider.js";
12
9
  import "../Shared/Auth/otpForm.js";
13
- import { useSnackBarContext as b } from "../../../context/snackBarContext.js";
10
+ import { useSnackBarContext as G } from "../../../context/snackBarContext.js";
14
11
  import "../../../util/conversions.js";
15
12
  import "../../../index-CAoLi5Qq.js";
16
13
  import "../../../react-webcam-B3cXh1XT.js";
14
+ import "../../Shared/transition.js";
17
15
  import "../../../tooltip-3UvETWtS.js";
18
16
  import "../Shared/pin.js";
19
17
  import "../../../moment-h96o7c8I.js";
20
18
  import "../../../index.esm-BsMAMhYW.js";
21
19
  import "../../../web3-u4qDZYpo.js";
22
- import "../../../context/dialogContext.js";
23
20
  import "../../../index-ceeCtFuh.js";
24
- import { B } from "../../../Box-B0YSYLco.js";
25
- import { C as W } from "../../../CircularProgress-xZA3lvba.js";
26
- import { T as f } from "../../../Typography-pAaje37G.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
- import { M as C } from "../../../MenuItem-DUdYOJr4.js";
32
- const q = [
21
+ import "../../../context/dialogContext.js";
22
+ import { B as S } from "../../../Box-B0YSYLco.js";
23
+ import { C as O } from "../../../CircularProgress-xZA3lvba.js";
24
+ import { T as E } from "../../../Typography-pAaje37G.js";
25
+ import { S as K } from "../../../Select-CB5yWmyn.js";
26
+ import { M as f } from "../../../MenuItem-DUdYOJr4.js";
27
+ const F = [
33
28
  {
34
29
  alpha3: "AUT",
35
30
  alpha2: "AT",
@@ -195,19 +190,18 @@ const q = [
195
190
  alpha2: "GB",
196
191
  name: "United Kingdom"
197
192
  }
198
- ], wa = ({
199
- openDialog: r,
200
- checkoutSdkKey: E,
201
- paymentRequest: T,
202
- iban: S,
203
- navigate: I,
204
- currency: t,
205
- setIbanCurrency: h,
206
- from: i
193
+ ], ua = ({
194
+ openDialog: t,
195
+ createIbanRequest: B,
196
+ iban: h,
197
+ navigate: L,
198
+ currency: a,
199
+ setIbanCurrency: m,
200
+ from: r
207
201
  }) => {
208
- const { showAlertMessage: g } = b(), u = y((e) => e.user), s = u.profile, x = y((e) => e.order), L = s.loader, N = u.kyc.loader, m = u.kyc.status, R = s.email, [w, c] = _(!1), n = V(!1), A = () => {
209
- if (!R) {
210
- r({
202
+ const { showAlertMessage: C } = G(), u = w((l) => l.user), p = u.profile, T = p.loader, g = u.kyc.loader, s = u.kyc.status, y = p.email, I = h.loader, n = N(!1), R = () => {
203
+ if (!y) {
204
+ t({
211
205
  title: "No Email",
212
206
  message: "Please contact support to update your email address.",
213
207
  icon: d,
@@ -220,8 +214,8 @@ const q = [
220
214
  });
221
215
  return;
222
216
  }
223
- if (m === F || m === G) {
224
- r({
217
+ if (s === v || s === P) {
218
+ t({
225
219
  title: "Under Review",
226
220
  message: "Your profile is currently being reviewed. If approved, you will have additional capabilities on the Everest platform.",
227
221
  width: "550px",
@@ -231,22 +225,22 @@ const q = [
231
225
  });
232
226
  return;
233
227
  }
234
- if (m !== K && m !== Y) {
235
- r({
228
+ if (s !== _ && s !== V) {
229
+ t({
236
230
  title: "Verifying",
237
231
  message: "We are gathering information, and will provision your Virtual IBAN shortly.",
238
232
  width: "575px",
239
233
  height: "400px",
240
234
  confirmButtonText: "Continue",
241
235
  cancelButtonText: "Cancel",
242
- onConfirm: () => I("/kyc")
236
+ onConfirm: () => L("/kyc")
243
237
  });
244
238
  return;
245
239
  }
246
- if (!q.find(
247
- (l) => l.alpha3 === s.residentialAddress.country
240
+ if (!F.find(
241
+ (o) => o.alpha3 === p.residentialAddress.country
248
242
  )) {
249
- r({
243
+ t({
250
244
  title: "Not Allowed",
251
245
  message: "Currently we are not supporting your country for Virtual IBAN.",
252
246
  icon: d,
@@ -257,8 +251,8 @@ const q = [
257
251
  });
258
252
  return;
259
253
  }
260
- if (s.memberType !== "individual") {
261
- r({
254
+ if (p.memberType !== "individual") {
255
+ t({
262
256
  title: "Not Allowed",
263
257
  message: "Currently we are not supporting organizational wallet(KYB) for Virtual IBAN.",
264
258
  icon: d,
@@ -269,114 +263,72 @@ const q = [
269
263
  });
270
264
  return;
271
265
  }
272
- i === p && (t.current = "EUR", h("EUR")), r({
273
- title: "Payment",
274
- message: /* @__PURE__ */ o(B, { children: [
275
- /* @__PURE__ */ a(f, { children: i === p ? "You will be charged $2 per annum for creating an E-Wallet. Please proceed to payment." : "You will be charged $0.10 per annum for creating a Virtual IBAN. Please select the currency for the Virtual IBAN and proceed." }),
276
- i !== p && /* @__PURE__ */ o(
277
- Z,
266
+ r === i && (a.current = "EUR", m("EUR")), t({
267
+ title: r === i ? "Create E-Wallet" : "Create Virtual IBAN",
268
+ message: /* @__PURE__ */ c(S, { children: [
269
+ /* @__PURE__ */ e(E, { children: r === i ? "Please proceed to create your E-Wallet." : "Please select the currency for the Virtual IBAN and proceed." }),
270
+ r !== i && /* @__PURE__ */ c(
271
+ K,
278
272
  {
279
273
  defaultValue: "",
280
- onChange: (l) => {
281
- t.current = l.target.value, h(l.target.value);
274
+ onChange: (o) => {
275
+ a.current = o.target.value, m(o.target.value);
282
276
  },
283
277
  style: { marginTop: "10px" },
284
278
  displayEmpty: !0,
285
279
  fullWidth: !0,
286
280
  children: [
287
- /* @__PURE__ */ a(C, { value: "", children: "Select currency" }),
288
- /* @__PURE__ */ a(C, { value: "EUR", children: "EUR" }),
289
- /* @__PURE__ */ a(C, { value: "GBP", children: "GBP" })
281
+ /* @__PURE__ */ e(f, { value: "", children: "Select currency" }),
282
+ /* @__PURE__ */ e(f, { value: "EUR", children: "EUR" }),
283
+ /* @__PURE__ */ e(f, { value: "GBP", children: "GBP" })
290
284
  ]
291
285
  }
292
286
  )
293
287
  ] }),
294
- icon: k,
288
+ icon: U,
295
289
  width: "575px",
296
- confirmButtonText: "Make Payment",
290
+ confirmButtonText: "Create",
297
291
  cancelButtonShow: !0,
298
292
  cancelButtonText: "Cancel",
299
- closeModalConfirm: P,
300
- onConfirm: U,
293
+ closeModalConfirm: x,
294
+ onConfirm: A,
301
295
  onCancel: () => {
302
- t.current = "", h(""), n.current = !1;
296
+ a.current = "", m(""), n.current = !1;
303
297
  },
304
298
  onClose: () => {
305
- t.current = "", n.current = !1;
299
+ a.current = "", n.current = !1;
306
300
  }
307
301
  });
308
- }, P = () => !n.current, U = () => {
309
- if (n.current = !1, !t.current)
310
- return n.current = !0, g({
311
- message: i === p ? "Currency selection is missing." : "Please select currency for Virtual IBAN."
302
+ }, x = () => !n.current, A = () => {
303
+ if (n.current = !1, !a.current)
304
+ return n.current = !0, C({
305
+ message: r === i ? "Currency selection is missing." : "Please select currency for Virtual IBAN."
312
306
  }), !1;
313
- if (S.data.length > 0) {
314
- const e = S.data.find(
315
- (l) => l.currency === t.current
307
+ if (h.data.length > 0) {
308
+ const l = h.data.find(
309
+ (o) => o.currency === a.current
316
310
  );
317
- if (e != null && e.id)
318
- return n.current = !0, g({
319
- message: `You already have the ${t.current} Virtual IBAN.`
311
+ if (l != null && l.id)
312
+ return n.current = !0, C({
313
+ message: `You already have the ${a.current} Virtual IBAN.`
320
314
  }), !1;
321
315
  }
322
- c(!0);
316
+ B(a.current);
323
317
  };
324
- return L || N ? /* @__PURE__ */ a(B, { mt: 4, className: "flex-center", children: /* @__PURE__ */ a(W, { color: "primary", size: 50 }) }) : /* @__PURE__ */ o(v, { children: [
325
- /* @__PURE__ */ a(
326
- f,
327
- {
328
- onClick: A,
329
- component: "span",
330
- color: "primary",
331
- sx: { cursor: "pointer" },
332
- children: /* @__PURE__ */ o("span", { className: "text-underline", children: [
333
- "+ Add ",
334
- i === p ? "E-Wallet" : "Virtual IBAN"
335
- ] })
336
- }
337
- ),
338
- /* @__PURE__ */ o(
339
- H,
340
- {
341
- open: w,
342
- fullWidth: !0,
343
- onClose: () => c(!1),
344
- TransitionComponent: M,
345
- children: [
346
- /* @__PURE__ */ o($, { className: "buy-modal-text-color", children: [
347
- /* @__PURE__ */ a(f, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ a("strong", { children: "Payment" }) }),
348
- /* @__PURE__ */ a(
349
- j,
350
- {
351
- "aria-label": "close",
352
- onClick: () => c(!1),
353
- className: "menu-buttons",
354
- children: /* @__PURE__ */ a(D, {})
355
- }
356
- )
357
- ] }),
358
- /* @__PURE__ */ a(
359
- z,
360
- {
361
- className: "bank-modal-content",
362
- sx: { padding: "50px" },
363
- dividers: !0,
364
- children: /* @__PURE__ */ a(
365
- O,
366
- {
367
- checkoutKey: E,
368
- orderData: x,
369
- initPaymentRequest: T,
370
- backBtnFunc: () => c(!1)
371
- }
372
- )
373
- }
374
- )
375
- ]
376
- }
377
- )
378
- ] });
318
+ return T || g || I ? /* @__PURE__ */ e(S, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(O, { color: "primary", size: 50 }) }) : /* @__PURE__ */ e(
319
+ E,
320
+ {
321
+ onClick: R,
322
+ component: "span",
323
+ color: "primary",
324
+ sx: { cursor: "pointer" },
325
+ children: /* @__PURE__ */ c("span", { className: "text-underline", children: [
326
+ "+ Add ",
327
+ r === i ? "E-Wallet" : "Virtual IBAN"
328
+ ] })
329
+ }
330
+ );
379
331
  };
380
332
  export {
381
- wa as default
333
+ ua as default
382
334
  };
@@ -15,6 +15,7 @@ interface EWalletProps {
15
15
  data: Wallet | Bank;
16
16
  type: string;
17
17
  }) => JSX.Element;
18
+ createIbanRequest: (currency: string) => void;
18
19
  }
19
20
  declare const EWalletComp: React.FC<EWalletProps>;
20
21
  export default EWalletComp;
@@ -1,102 +1,85 @@
1
- import { jsx as e, jsxs as t, Fragment as u } from "react/jsx-runtime";
2
- import { useRef as W, useState as b, useEffect as w } from "react";
3
- import { I as A } from "../../../Info-BVeUSPyk.js";
4
- import { DIALOG_SUCCESS_ICON as N, FEATURE_EWALLET as d } from "../../../util/constants.js";
5
- import "../../../constants-t7n9qCW3.js";
6
- import { b as T } from "../../../order-jqH948WM.js";
7
- import { M as _ } from "../../../tooltip-3UvETWtS.js";
8
- import q from "../Shared/noData.js";
9
- import v from "./createIban.js";
10
- import { AuthInnerContainer as R } from "../Shared/Container/index.js";
1
+ import { jsx as e, jsxs as r, Fragment as m } from "react/jsx-runtime";
2
+ import { useRef as W, useState as w, useEffect as A } from "react";
3
+ import { I as N } from "../../../Info-BVeUSPyk.js";
4
+ import { DIALOG_SUCCESS_ICON as P, FEATURE_EWALLET as l } from "../../../util/constants.js";
5
+ import { M as T } from "../../../tooltip-3UvETWtS.js";
6
+ import v from "../Shared/noData.js";
7
+ import D from "./createIban.js";
8
+ import { AuthInnerContainer as b } from "../Shared/Container/index.js";
11
9
  import B from "./ibanItem.js";
12
- import { B as n } from "../../../Box-B0YSYLco.js";
13
- import { G as c } from "../../../Grid-CFe3amXO.js";
14
- import { T as h } from "../../../Typography-pAaje37G.js";
10
+ import { B as t } from "../../../Box-B0YSYLco.js";
11
+ import { G as a } from "../../../Grid-CFe3amXO.js";
12
+ import { T as p } from "../../../Typography-pAaje37G.js";
15
13
  import { I as L } from "../../../IconButton-DHm-hucF.js";
16
14
  import { C as z } from "../../../CircularProgress-xZA3lvba.js";
17
- const re = ({
18
- dispatch: s,
15
+ const J = ({
16
+ dispatch: h,
19
17
  openDialog: i,
20
- baseUrl: m,
21
- checkoutSdkKey: f,
22
- appKey: l,
23
- appKeyEur: y,
24
- paymentWidgetSrcUrl: x,
25
- iban: a,
26
- navigate: I,
27
- AccountItem: g
18
+ appKey: u,
19
+ appKeyEur: d,
20
+ paymentWidgetSrcUrl: f,
21
+ iban: n,
22
+ navigate: y,
23
+ AccountItem: x,
24
+ createIbanRequest: g
28
25
  }) => {
29
- const p = a.data, C = a.loader, E = W(""), [S, D] = b("");
30
- return w(() => {
26
+ const c = n.data, C = n.loader, I = W(""), [_, E] = w("");
27
+ return A(() => {
31
28
  new URLSearchParams(window.location.search).get("paymentStatus") === "success" && i({
32
29
  title: "Payment Success",
33
30
  message: "We have received your payment and will generate your Virtual IBAN after the payment has processed",
34
- icon: N,
31
+ icon: P,
35
32
  width: "575px",
36
33
  confirmButtonText: "Continue"
37
34
  });
38
- }, []), /* @__PURE__ */ e(R, { children: /* @__PURE__ */ t(n, { p: 3, children: [
39
- /* @__PURE__ */ t(c, { spacing: 2, container: !0, alignItems: "center", children: [
40
- /* @__PURE__ */ t(c, { size: 8, children: [
41
- /* @__PURE__ */ e(h, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "E-Wallet" }) }),
35
+ }, []), /* @__PURE__ */ e(b, { children: /* @__PURE__ */ r(t, { p: 3, children: [
36
+ /* @__PURE__ */ r(a, { spacing: 2, container: !0, alignItems: "center", children: [
37
+ /* @__PURE__ */ r(a, { size: 8, children: [
38
+ /* @__PURE__ */ e(p, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "E-Wallet" }) }),
42
39
  /* @__PURE__ */ e(
43
- _,
40
+ T,
44
41
  {
45
- title: /* @__PURE__ */ e(n, { sx: { whiteSpace: "pre-line" }, children: "Create an E-Wallet. This requires KYC and an annual payment" }),
42
+ title: /* @__PURE__ */ e(t, { sx: { whiteSpace: "pre-line" }, children: "Create an E-Wallet. This requires KYC and an annual payment" }),
46
43
  placement: "bottom",
47
- children: /* @__PURE__ */ e(L, { className: "info-fee-icon", children: /* @__PURE__ */ e(A, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
44
+ children: /* @__PURE__ */ e(L, { className: "info-fee-icon", children: /* @__PURE__ */ e(N, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
48
45
  }
49
46
  )
50
47
  ] }),
51
- /* @__PURE__ */ e(c, { size: 4, children: /* @__PURE__ */ e(n, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e(
52
- v,
48
+ /* @__PURE__ */ e(a, { size: 4, children: /* @__PURE__ */ e(t, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e(
49
+ D,
53
50
  {
54
51
  openDialog: i,
55
- checkoutSdkKey: f,
56
- paymentRequest: (r) => {
57
- const o = {
58
- payment: {
59
- token: r,
60
- amount: 2,
61
- currency: "USD",
62
- app_key: l,
63
- success_url: `${m}/accounts?payment=success`,
64
- fail_url: `${m}/dashboard?payment=failed`
65
- },
66
- currency: S
67
- };
68
- s(T(o));
69
- },
70
- iban: a,
71
- navigate: I,
72
- currency: E,
73
- setIbanCurrency: D,
74
- from: d
52
+ createIbanRequest: g,
53
+ iban: n,
54
+ navigate: y,
55
+ currency: I,
56
+ setIbanCurrency: E,
57
+ from: l
75
58
  }
76
59
  ) }) })
77
60
  ] }),
78
- C ? /* @__PURE__ */ e(n, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(z, { color: "primary", size: 50 }) }) : /* @__PURE__ */ t(u, { children: [
79
- p.length > 0 ? /* @__PURE__ */ e(u, { children: p.map((r, o) => {
80
- const P = {
81
- ...r,
82
- accountName: `E-Wallet - ${r.currency ?? ""}`
61
+ C ? /* @__PURE__ */ e(t, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(z, { color: "primary", size: 50 }) }) : /* @__PURE__ */ r(m, { children: [
62
+ c.length > 0 ? /* @__PURE__ */ e(m, { children: c.map((o, s) => {
63
+ const S = {
64
+ ...o,
65
+ accountName: `E-Wallet - ${o.currency ?? ""}`
83
66
  };
84
67
  return /* @__PURE__ */ e(
85
68
  B,
86
69
  {
87
- data: P,
88
- AccountItem: g,
89
- dispatch: s,
90
- appKey: l,
91
- appKeyEur: y,
92
- paymentWidgetSrcUrl: x,
93
- iban: a,
94
- from: d
70
+ data: S,
71
+ AccountItem: x,
72
+ dispatch: h,
73
+ appKey: u,
74
+ appKeyEur: d,
75
+ paymentWidgetSrcUrl: f,
76
+ iban: n,
77
+ from: l
95
78
  },
96
- o
79
+ s
97
80
  );
98
- }) }) : /* @__PURE__ */ e(q, { text: "You currently have no E-Wallets" }),
99
- /* @__PURE__ */ e(n, { mt: 3, textAlign: "center", children: /* @__PURE__ */ t(h, { variant: "caption", color: "secondary", children: [
81
+ }) }) : /* @__PURE__ */ e(v, { text: "You currently have no E-Wallets" }),
82
+ /* @__PURE__ */ e(t, { mt: 3, textAlign: "center", children: /* @__PURE__ */ r(p, { variant: "caption", color: "secondary", children: [
100
83
  "Powered by",
101
84
  " ",
102
85
  /* @__PURE__ */ e(
@@ -114,5 +97,5 @@ const re = ({
114
97
  ] }) });
115
98
  };
116
99
  export {
117
- re as default
100
+ J as default
118
101
  };
@@ -15,6 +15,7 @@ interface IbanProps {
15
15
  data: Wallet | Bank;
16
16
  type: string;
17
17
  }) => JSX.Element;
18
+ createIbanRequest: (currency: string) => void;
18
19
  }
19
20
  declare const IbanComp: React.FC<IbanProps>;
20
21
  export default IbanComp;
@@ -1,96 +1,79 @@
1
- import { jsx as e, jsxs as o, Fragment as l } from "react/jsx-runtime";
2
- import { useRef as B, useState as N, useEffect as b } from "react";
3
- import { I as D } from "../../../Info-BVeUSPyk.js";
4
- import { DIALOG_SUCCESS_ICON as R, FEATURE_VIRTUAL_IBAN as f } from "../../../util/constants.js";
5
- import "../../../constants-t7n9qCW3.js";
6
- import { b as T } from "../../../order-jqH948WM.js";
7
- import { M as _ } from "../../../tooltip-3UvETWtS.js";
8
- import q from "../Shared/noData.js";
9
- import w from "./createIban.js";
10
- import { AuthInnerContainer as P } from "../Shared/Container/index.js";
11
- import v from "./ibanItem.js";
12
- import { B as a } from "../../../Box-B0YSYLco.js";
13
- import { G as s } from "../../../Grid-CFe3amXO.js";
14
- import { T as E } from "../../../Typography-pAaje37G.js";
1
+ import { jsx as e, jsxs as n, Fragment as m } from "react/jsx-runtime";
2
+ import { useRef as g, useState as S, useEffect as B } from "react";
3
+ import { I as N } from "../../../Info-BVeUSPyk.js";
4
+ import { DIALOG_SUCCESS_ICON as T, FEATURE_VIRTUAL_IBAN as l } from "../../../util/constants.js";
5
+ import { M as w } from "../../../tooltip-3UvETWtS.js";
6
+ import b from "../Shared/noData.js";
7
+ import v from "./createIban.js";
8
+ import { AuthInnerContainer as D } from "../Shared/Container/index.js";
9
+ import E from "./ibanItem.js";
10
+ import { B as t } from "../../../Box-B0YSYLco.js";
11
+ import { G as o } from "../../../Grid-CFe3amXO.js";
12
+ import { T as P } from "../../../Typography-pAaje37G.js";
15
13
  import { I as z } from "../../../IconButton-DHm-hucF.js";
16
14
  import { C as L } from "../../../CircularProgress-xZA3lvba.js";
17
- const ee = ({
18
- dispatch: c,
19
- openDialog: i,
20
- baseUrl: m,
21
- checkoutSdkKey: d,
15
+ const J = ({
16
+ dispatch: p,
17
+ openDialog: a,
22
18
  appKey: u,
23
- appKeyEur: y,
19
+ appKeyEur: f,
24
20
  paymentWidgetSrcUrl: h,
25
21
  iban: r,
26
- navigate: I,
27
- AccountItem: x
22
+ navigate: d,
23
+ AccountItem: y,
24
+ createIbanRequest: I
28
25
  }) => {
29
- const p = r.data, C = r.loader, A = B(""), [S, g] = N("");
30
- return b(() => {
31
- new URLSearchParams(window.location.search).get("paymentStatus") === "success" && i({
26
+ const i = r.data, x = r.loader, C = g(""), [R, A] = S("");
27
+ return B(() => {
28
+ new URLSearchParams(window.location.search).get("paymentStatus") === "success" && a({
32
29
  title: "Payment Success",
33
30
  message: "We have received your payment and will generate your Virtual IBAN after the payment has processed",
34
- icon: R,
31
+ icon: T,
35
32
  width: "575px",
36
33
  confirmButtonText: "Continue"
37
34
  });
38
- }, []), /* @__PURE__ */ e(P, { children: /* @__PURE__ */ o(a, { p: 3, children: [
39
- /* @__PURE__ */ o(s, { spacing: 2, container: !0, alignItems: "center", children: [
40
- /* @__PURE__ */ o(s, { size: 8, children: [
41
- /* @__PURE__ */ e(E, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "Everest Accounts (Virtual IBAN)" }) }),
35
+ }, []), /* @__PURE__ */ e(D, { children: /* @__PURE__ */ n(t, { p: 3, children: [
36
+ /* @__PURE__ */ n(o, { spacing: 2, container: !0, alignItems: "center", children: [
37
+ /* @__PURE__ */ n(o, { size: 8, children: [
38
+ /* @__PURE__ */ e(P, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "Everest Accounts (Virtual IBAN)" }) }),
42
39
  /* @__PURE__ */ e(
43
- _,
40
+ w,
44
41
  {
45
- title: /* @__PURE__ */ e(a, { sx: { whiteSpace: "pre-line" }, children: "Create a Virtual IBAN of selected currency. This requires KYC and an annual payment" }),
42
+ title: /* @__PURE__ */ e(t, { sx: { whiteSpace: "pre-line" }, children: "Create a Virtual IBAN of selected currency. This requires KYC and an annual payment" }),
46
43
  placement: "bottom",
47
- children: /* @__PURE__ */ e(z, { className: "info-fee-icon", children: /* @__PURE__ */ e(D, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
44
+ children: /* @__PURE__ */ e(z, { className: "info-fee-icon", children: /* @__PURE__ */ e(N, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
48
45
  }
49
46
  )
50
47
  ] }),
51
- /* @__PURE__ */ e(s, { size: 4, children: /* @__PURE__ */ e(a, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e(
52
- w,
48
+ /* @__PURE__ */ e(o, { size: 4, children: /* @__PURE__ */ e(t, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e(
49
+ v,
53
50
  {
54
- openDialog: i,
55
- checkoutSdkKey: d,
56
- paymentRequest: (t) => {
57
- const n = {
58
- payment: {
59
- token: t,
60
- amount: 0.1,
61
- currency: "USD",
62
- app_key: u,
63
- success_url: `${m}/accounts?payment=success`,
64
- fail_url: `${m}/dashboard?payment=failed`
65
- },
66
- currency: S
67
- };
68
- c(T(n));
69
- },
51
+ openDialog: a,
52
+ createIbanRequest: I,
70
53
  iban: r,
71
- navigate: I,
72
- currency: A,
73
- setIbanCurrency: g,
74
- from: f
54
+ navigate: d,
55
+ currency: C,
56
+ setIbanCurrency: A,
57
+ from: l
75
58
  }
76
59
  ) }) })
77
60
  ] }),
78
- C ? /* @__PURE__ */ e(a, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(L, { color: "primary", size: 50 }) }) : /* @__PURE__ */ e(l, { children: p.length > 0 ? /* @__PURE__ */ e(l, { children: p.map((t, n) => /* @__PURE__ */ e(
79
- v,
61
+ x ? /* @__PURE__ */ e(t, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(L, { color: "primary", size: 50 }) }) : /* @__PURE__ */ e(m, { children: i.length > 0 ? /* @__PURE__ */ e(m, { children: i.map((c, s) => /* @__PURE__ */ e(
62
+ E,
80
63
  {
81
- data: t,
82
- AccountItem: x,
83
- dispatch: c,
64
+ data: c,
65
+ AccountItem: y,
66
+ dispatch: p,
84
67
  appKey: u,
85
- appKeyEur: y,
68
+ appKeyEur: f,
86
69
  paymentWidgetSrcUrl: h,
87
70
  iban: r,
88
- from: f
71
+ from: l
89
72
  },
90
- n
91
- )) }) : /* @__PURE__ */ e(q, { text: "You currently have no IBAN Accounts" }) })
73
+ s
74
+ )) }) : /* @__PURE__ */ e(b, { text: "You currently have no IBAN Accounts" }) })
92
75
  ] }) });
93
76
  };
94
77
  export {
95
- ee as default
78
+ J as default
96
79
  };