everest-npm-features 0.0.48 → 0.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/{PlayArrow-Cnrxi5yr.js → PlayArrow-C3uVNo4F.js} +1 -1
  2. package/dist/{auth-C45E0xvK.js → auth-ClBgT--j.js} +1 -1
  3. package/dist/{bank-DIdz4BaB.js → bank-Dz5km1qK.js} +3 -3
  4. package/dist/components/RocketRamp/MinimalKyc/form.js +14 -13
  5. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
  6. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
  7. package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
  8. package/dist/components/RocketRamp/Player/Buy/index.js +12 -11
  9. package/dist/components/RocketRamp/Player/Dashboard/index.js +25 -24
  10. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
  11. package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
  12. package/dist/components/RocketRamp/Player/Sell/index.js +12 -11
  13. package/dist/components/RocketRamp/Player/SignIn/index.js +20 -19
  14. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
  15. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
  16. package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
  17. package/dist/components/RocketRamp/Player/SignUp/index.js +39 -38
  18. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
  19. package/dist/components/RocketRamp/ResetPassword/index.js +21 -20
  20. package/dist/components/RocketRamp/Store/SignUp/index.js +48 -47
  21. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
  22. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
  23. package/dist/components/RocketRamp/Transactions/index.js +14 -13
  24. package/dist/components/Shared/FullKyc/edd.js +41 -41
  25. package/dist/components/Shared/FullKyc/index.js +11 -10
  26. package/dist/components/Shared/FullKyc/pep.js +1 -1
  27. package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
  28. package/dist/components/Shared/FullKyc/userInfo.js +4 -4
  29. package/dist/components/Shared/MinimalKyc/index.js +31 -30
  30. package/dist/components/Wallet/Account/createIban.d.ts +2 -0
  31. package/dist/components/Wallet/Account/createIban.js +96 -88
  32. package/dist/components/Wallet/Account/eWallet.d.ts +20 -0
  33. package/dist/components/Wallet/Account/eWallet.js +118 -0
  34. package/dist/components/Wallet/Account/iban.d.ts +2 -0
  35. package/dist/components/Wallet/Account/iban.js +38 -32
  36. package/dist/components/Wallet/Account/ibanItem.d.ts +5 -2
  37. package/dist/components/Wallet/Account/ibanItem.js +233 -76
  38. package/dist/components/Wallet/Account/index.d.ts +2 -0
  39. package/dist/components/Wallet/Account/index.js +164 -143
  40. package/dist/components/Wallet/Account/sendIban.js +3 -3
  41. package/dist/components/Wallet/Buy/confirmTransaction.js +5 -5
  42. package/dist/components/Wallet/Buy/form.js +5 -5
  43. package/dist/components/Wallet/Buy/index.js +14 -13
  44. package/dist/components/Wallet/Deposit/index.js +1 -1
  45. package/dist/components/Wallet/EnterpriseKyc/edd.js +9 -9
  46. package/dist/components/Wallet/EnterpriseKyc/index.js +23 -22
  47. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +24 -24
  48. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
  49. package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
  50. package/dist/components/Wallet/History/index.js +25 -24
  51. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +49 -48
  52. package/dist/components/Wallet/Portfolio/index.js +22 -21
  53. package/dist/components/Wallet/Portfolio/tokenRow.js +1 -1
  54. package/dist/components/Wallet/Profile/documents.js +34 -33
  55. package/dist/components/Wallet/Profile/index.js +20 -19
  56. package/dist/components/Wallet/Profile/storage.js +26 -26
  57. package/dist/components/Wallet/Receive/index.js +22 -21
  58. package/dist/components/Wallet/Sell/confirmTransaction.js +4 -4
  59. package/dist/components/Wallet/Sell/form.js +5 -5
  60. package/dist/components/Wallet/Sell/index.js +13 -12
  61. package/dist/components/Wallet/Send/index.js +19 -18
  62. package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
  63. package/dist/components/Wallet/Shared/BankSelect/index.js +36 -35
  64. package/dist/components/Wallet/Shared/CardCorp/index.d.ts +1 -1
  65. package/dist/components/Wallet/Shared/CardCorp/index.js +16 -16
  66. package/dist/components/Wallet/Shared/addBank.js +39 -38
  67. package/dist/components/Wallet/Shared/connectPlaidBank.js +19 -18
  68. package/dist/components/Wallet/Shared/manualSend.js +6 -5
  69. package/dist/components/Wallet/SignIn/index.js +24 -23
  70. package/dist/components/Wallet/SignUp/index.js +22 -21
  71. package/dist/components/Wallet/Stake/index.js +30 -29
  72. package/dist/components/Wallet/Swap/form.js +8 -7
  73. package/dist/components/Wallet/Swap/index.js +11 -10
  74. package/dist/components/Wallet/Withdraw/bankSelect.js +28 -27
  75. package/dist/components/Wallet/Withdraw/confirmTransaction.js +4 -4
  76. package/dist/components/Wallet/Withdraw/form.js +4 -4
  77. package/dist/components/Wallet/Withdraw/index.js +12 -11
  78. package/dist/{constants-BSdmHYnc.js → constants-t7n9qCW3.js} +245 -244
  79. package/dist/{cryptoAssets-BdNVnpA_.js → cryptoAssets-shEFU26O.js} +1 -1
  80. package/dist/hooks/useEverestDispatch.d.ts +6 -0
  81. package/dist/hooks/useEverestDispatch.js +5 -0
  82. package/dist/{index-Be3ndI6s.js → index-B6MSTmAM.js} +104 -103
  83. package/dist/{index-HZ9RrpTC.js → index-C2EjFXaz.js} +87 -86
  84. package/dist/{index-BXF4OI74.js → index-Cs7bSfT3.js} +17 -16
  85. package/dist/{index-D3OzGVxQ.js → index-DFRU-R-5.js} +38 -37
  86. package/dist/{index-CRyby3Qm.js → index-Da0r8FX2.js} +11 -10
  87. package/dist/{index-BlfzmV5M.js → index-RDV0mQbt.js} +36 -35
  88. package/dist/{index-Cvp4wWrB.js → index-j0zehpzg.js} +40 -39
  89. package/dist/{kyc-BQsiHtP6.js → kyc-D9xahfH9.js} +1 -1
  90. package/dist/main.js +7 -7
  91. package/dist/{order-BKKCskeq.js → order-jqH948WM.js} +29 -25
  92. package/dist/{react-redux-B4BZippc.js → react-redux-C7I9-1M6.js} +2 -2
  93. package/dist/{stake-WjG22nIX.js → stake-Dcq6QpaA.js} +3 -3
  94. package/dist/{tokenRow-D32W5WH3.js → tokenRow-B-tustzZ.js} +8 -6
  95. package/dist/util/constants.d.ts +2 -0
  96. package/dist/util/constants.js +21 -19
  97. package/dist/{wallet-BXA-R-Ks.js → wallet-DpkUmmq0.js} +1 -1
  98. package/package.json +3 -2
@@ -1,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-BSdmHYnc.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 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";
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";
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";
31
- import { M as u } from "../../../MenuItem-DUdYOJr4.js";
32
- const Z = [
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 = [
33
33
  {
34
34
  alpha3: "AUT",
35
35
  alpha2: "AT",
@@ -195,21 +195,22 @@ const Z = [
195
195
  alpha2: "GB",
196
196
  name: "United Kingdom"
197
197
  }
198
- ], La = ({
199
- openDialog: t,
200
- checkoutSdkKey: y,
201
- paymentRequest: B,
202
- iban: g,
203
- navigate: T,
204
- currency: r,
205
- setIbanCurrency: d
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
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) {
209
- t({
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({
210
211
  title: "No Email",
211
212
  message: "Please contact support to update your email address.",
212
- icon: c,
213
+ icon: d,
213
214
  width: "575px",
214
215
  confirmButtonText: "Contact Suuport",
215
216
  cancelButtonShow: !0,
@@ -219,8 +220,8 @@ const Z = [
219
220
  });
220
221
  return;
221
222
  }
222
- if (p === M || p === O) {
223
- t({
223
+ if (m === F || m === G) {
224
+ r({
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.",
226
227
  width: "550px",
@@ -230,25 +231,25 @@ const Z = [
230
231
  });
231
232
  return;
232
233
  }
233
- if (p !== G && p !== K) {
234
- t({
234
+ if (m !== K && m !== Y) {
235
+ r({
235
236
  title: "Verifying",
236
237
  message: "We are gathering information, and will provision your Virtual IBAN shortly.",
237
238
  width: "575px",
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 === s.residentialAddress.country
247
248
  )) {
248
- t({
249
+ r({
249
250
  title: "Not Allowed",
250
251
  message: "Currently we are not supporting your country for Virtual IBAN.",
251
- icon: c,
252
+ icon: d,
252
253
  width: "575px",
253
254
  height: "450px",
254
255
  confirmButtonText: "Continue",
@@ -256,11 +257,11 @@ const Z = [
256
257
  });
257
258
  return;
258
259
  }
259
- if (i.memberType !== "individual") {
260
- t({
260
+ if (s.memberType !== "individual") {
261
+ r({
261
262
  title: "Not Allowed",
262
263
  message: "Currently we are not supporting organizational wallet(KYB) for Virtual IBAN.",
263
- icon: c,
264
+ icon: d,
264
265
  width: "575px",
265
266
  height: "450px",
266
267
  confirmButtonText: "Continue",
@@ -268,98 +269,105 @@ const Z = [
268
269
  });
269
270
  return;
270
271
  }
271
- t({
272
+ i === p && (t.current = "EUR", h("EUR")), r({
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(f, { children: i === p ? "You will be charged $2 per annum for creating an E-Wallet. Please proceed to payment." : "You will be charged $12 per annum for creating a Virtual IBAN. Please select the currency for the Virtual IBAN and proceed." }),
276
+ i !== p && /* @__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
+ t.current = l.target.value, h(l.target.value);
281
282
  },
282
283
  style: { marginTop: "10px" },
283
284
  displayEmpty: !0,
284
285
  fullWidth: !0,
285
286
  children: [
286
- /* @__PURE__ */ a(u, { value: "", children: "Select currency" }),
287
- /* @__PURE__ */ a(u, { value: "EUR", children: "EUR" }),
288
- /* @__PURE__ */ a(u, { value: "GBP", children: "GBP" })
287
+ /* @__PURE__ */ a(C, { value: "", children: "Select currency" }),
288
+ /* @__PURE__ */ a(C, { value: "EUR", children: "EUR" }),
289
+ /* @__PURE__ */ a(C, { value: "GBP", children: "GBP" })
289
290
  ]
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
+ t.current = "", h(""), n.current = !1;
302
303
  },
303
304
  onClose: () => {
304
- r.current = "", n.current = !1;
305
+ t.current = "", n.current = !1;
305
306
  }
306
307
  });
307
- }, R = () => !n.current, A = () => {
308
- if (n.current = !1, !r.current)
309
- return n.current = !0, f({
310
- message: "Please select currency for Virtual IBAN."
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."
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;
317
- m(!0);
313
+ if (S.data.length > 0) {
314
+ const e = S.data.find(
315
+ (l) => l.currency === t.current
316
+ );
317
+ if (e != null && e.id)
318
+ return n.current = !0, g({
319
+ message: `You already have the ${t.current} Virtual IBAN.`
320
+ }), !1;
321
+ }
322
+ c(!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
- h,
326
+ f,
322
327
  {
323
- onClick: w,
328
+ onClick: A,
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
+ i === p ? "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: w,
334
342
  fullWidth: !0,
335
- onClose: () => m(!1),
336
- TransitionComponent: k,
343
+ onClose: () => c(!1),
344
+ TransitionComponent: M,
337
345
  children: [
338
- /* @__PURE__ */ l(W, { className: "buy-modal-text-color", children: [
339
- /* @__PURE__ */ a(h, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ a("strong", { children: "Payment" }) }),
346
+ /* @__PURE__ */ o($, { className: "buy-modal-text-color", children: [
347
+ /* @__PURE__ */ a(f, { 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
- onClick: () => m(!1),
352
+ onClick: () => c(!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,
362
- backBtnFunc: () => m(!1)
367
+ checkoutKey: E,
368
+ orderData: x,
369
+ initPaymentRequest: T,
370
+ backBtnFunc: () => c(!1)
363
371
  }
364
372
  )
365
373
  }
@@ -370,5 +378,5 @@ const Z = [
370
378
  ] });
371
379
  };
372
380
  export {
373
- La as default
381
+ wa as default
374
382
  };
@@ -0,0 +1,20 @@
1
+ import { default as React, Dispatch } from 'react';
2
+ import { Bank, BankActionTypes, BankState, OrderActionTypes, Wallet } from 'everest-npm-api';
3
+ import { DialogOptions } from '../../../hooks/useDialog/types';
4
+ interface EWalletProps {
5
+ dispatch: Dispatch<BankActionTypes | OrderActionTypes>;
6
+ openDialog: (options: DialogOptions) => void;
7
+ baseUrl: string;
8
+ checkoutSdkKey: string;
9
+ appKey: string;
10
+ appKeyEur: string;
11
+ paymentWidgetSrcUrl: string;
12
+ iban: BankState["iban"];
13
+ navigate: (path: string) => void;
14
+ AccountItem: ({ data, type, }: {
15
+ data: Wallet | Bank;
16
+ type: string;
17
+ }) => JSX.Element;
18
+ }
19
+ declare const EWalletComp: React.FC<EWalletProps>;
20
+ export default EWalletComp;
@@ -0,0 +1,118 @@
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";
11
+ 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";
15
+ import { I as L } from "../../../IconButton-DHm-hucF.js";
16
+ import { C as z } from "../../../CircularProgress-xZA3lvba.js";
17
+ const re = ({
18
+ dispatch: s,
19
+ 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
28
+ }) => {
29
+ const p = a.data, C = a.loader, E = W(""), [S, D] = b("");
30
+ return w(() => {
31
+ new URLSearchParams(window.location.search).get("paymentStatus") === "success" && i({
32
+ title: "Payment Success",
33
+ message: "We have received your payment and will generate your Virtual IBAN after the payment has processed",
34
+ icon: N,
35
+ width: "575px",
36
+ confirmButtonText: "Continue"
37
+ });
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" }) }),
42
+ /* @__PURE__ */ e(
43
+ _,
44
+ {
45
+ title: /* @__PURE__ */ e(n, { sx: { whiteSpace: "pre-line" }, children: "Create an E-Wallet. This requires KYC and an annual payment" }),
46
+ placement: "bottom",
47
+ children: /* @__PURE__ */ e(L, { className: "info-fee-icon", children: /* @__PURE__ */ e(A, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
48
+ }
49
+ )
50
+ ] }),
51
+ /* @__PURE__ */ e(c, { size: 4, children: /* @__PURE__ */ e(n, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e(
52
+ v,
53
+ {
54
+ 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
75
+ }
76
+ ) }) })
77
+ ] }),
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 ?? ""}`
83
+ };
84
+ return /* @__PURE__ */ e(
85
+ B,
86
+ {
87
+ data: P,
88
+ AccountItem: g,
89
+ dispatch: s,
90
+ appKey: l,
91
+ appKeyEur: y,
92
+ paymentWidgetSrcUrl: x,
93
+ iban: a,
94
+ from: d
95
+ },
96
+ o
97
+ );
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: [
100
+ "Powered by",
101
+ " ",
102
+ /* @__PURE__ */ e(
103
+ "a",
104
+ {
105
+ href: "https://everest.org/terms-of-use",
106
+ target: "_blank",
107
+ rel: "noopener noreferrer",
108
+ style: { color: "inherit", textDecoration: "underline" },
109
+ children: "EMI PF"
110
+ }
111
+ )
112
+ ] }) })
113
+ ] })
114
+ ] }) });
115
+ };
116
+ export {
117
+ re as default
118
+ };
@@ -7,6 +7,8 @@ interface IbanProps {
7
7
  baseUrl: string;
8
8
  checkoutSdkKey: string;
9
9
  appKey: string;
10
+ appKeyEur: string;
11
+ paymentWidgetSrcUrl: string;
10
12
  iban: BankState["iban"];
11
13
  navigate: (path: string) => void;
12
14
  AccountItem: ({ data, type, }: {
@@ -1,48 +1,50 @@
1
1
  import { jsx as e, jsxs as o, Fragment as l } from "react/jsx-runtime";
2
- import { useRef as S, useState as g, useEffect as A } from "react";
3
- import { I as B } from "../../../Info-BVeUSPyk.js";
4
- import { DIALOG_SUCCESS_ICON as N } from "../../../util/constants.js";
5
- import "../../../constants-BSdmHYnc.js";
6
- import { b } from "../../../order-BKKCskeq.js";
7
- import { M as D } from "../../../tooltip-3UvETWtS.js";
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
8
  import q from "../Shared/noData.js";
9
9
  import w from "./createIban.js";
10
10
  import { AuthInnerContainer as P } from "../Shared/Container/index.js";
11
- import R from "./ibanItem.js";
11
+ import v from "./ibanItem.js";
12
12
  import { B as a } from "../../../Box-B0YSYLco.js";
13
13
  import { G as s } from "../../../Grid-CFe3amXO.js";
14
- import { T as v } from "../../../Typography-pAaje37G.js";
15
- import { I as T } from "../../../IconButton-DHm-hucF.js";
16
- import { C as _ } from "../../../CircularProgress-xZA3lvba.js";
17
- const Q = ({
14
+ import { T as E } from "../../../Typography-pAaje37G.js";
15
+ import { I as z } from "../../../IconButton-DHm-hucF.js";
16
+ import { C as L } from "../../../CircularProgress-xZA3lvba.js";
17
+ const ee = ({
18
18
  dispatch: c,
19
19
  openDialog: i,
20
20
  baseUrl: m,
21
- checkoutSdkKey: f,
21
+ checkoutSdkKey: d,
22
22
  appKey: u,
23
+ appKeyEur: y,
24
+ paymentWidgetSrcUrl: h,
23
25
  iban: r,
24
- navigate: d,
25
- AccountItem: y
26
+ navigate: I,
27
+ AccountItem: x
26
28
  }) => {
27
- const p = r.data, h = r.loader, I = S(""), [x, C] = g("");
28
- return A(() => {
29
+ const p = r.data, C = r.loader, A = B(""), [S, g] = N("");
30
+ return b(() => {
29
31
  new URLSearchParams(window.location.search).get("paymentStatus") === "success" && i({
30
32
  title: "Payment Success",
31
33
  message: "We have received your payment and will generate your Virtual IBAN after the payment has processed",
32
- icon: N,
34
+ icon: R,
33
35
  width: "575px",
34
36
  confirmButtonText: "Continue"
35
37
  });
36
38
  }, []), /* @__PURE__ */ e(P, { children: /* @__PURE__ */ o(a, { p: 3, children: [
37
39
  /* @__PURE__ */ o(s, { spacing: 2, container: !0, alignItems: "center", children: [
38
40
  /* @__PURE__ */ o(s, { size: 8, children: [
39
- /* @__PURE__ */ e(v, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "Everest Accounts (Virtual IBAN)" }) }),
41
+ /* @__PURE__ */ e(E, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "Everest Accounts (Virtual IBAN)" }) }),
40
42
  /* @__PURE__ */ e(
41
- D,
43
+ _,
42
44
  {
43
- title: /* @__PURE__ */ e(a, { sx: { whiteSpace: "pre-line" }, children: "Create a Virtual IBAN of EUR currency. This requires KYC and an annual payment" }),
45
+ title: /* @__PURE__ */ e(a, { sx: { whiteSpace: "pre-line" }, children: "Create a Virtual IBAN of selected currency. This requires KYC and an annual payment" }),
44
46
  placement: "bottom",
45
- children: /* @__PURE__ */ e(T, { className: "info-fee-icon", children: /* @__PURE__ */ e(B, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
47
+ children: /* @__PURE__ */ e(z, { className: "info-fee-icon", children: /* @__PURE__ */ e(D, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
46
48
  }
47
49
  )
48
50
  ] }),
@@ -50,7 +52,7 @@ const Q = ({
50
52
  w,
51
53
  {
52
54
  openDialog: i,
53
- checkoutSdkKey: f,
55
+ checkoutSdkKey: d,
54
56
  paymentRequest: (t) => {
55
57
  const n = {
56
58
  payment: {
@@ -61,30 +63,34 @@ const Q = ({
61
63
  success_url: `${m}/accounts?payment=success`,
62
64
  fail_url: `${m}/dashboard?payment=failed`
63
65
  },
64
- currency: x
66
+ currency: S
65
67
  };
66
- c(b(n));
68
+ c(T(n));
67
69
  },
68
70
  iban: r,
69
- navigate: d,
70
- currency: I,
71
- setIbanCurrency: C
71
+ navigate: I,
72
+ currency: A,
73
+ setIbanCurrency: g,
74
+ from: f
72
75
  }
73
76
  ) }) })
74
77
  ] }),
75
- h ? /* @__PURE__ */ e(a, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(_, { color: "primary", size: 50 }) }) : /* @__PURE__ */ e(l, { children: p.length > 0 ? /* @__PURE__ */ e(l, { children: p.map((t, n) => /* @__PURE__ */ e(
76
- R,
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,
77
80
  {
78
81
  data: t,
79
- AccountItem: y,
82
+ AccountItem: x,
80
83
  dispatch: c,
81
84
  appKey: u,
82
- iban: r
85
+ appKeyEur: y,
86
+ paymentWidgetSrcUrl: h,
87
+ iban: r,
88
+ from: f
83
89
  },
84
90
  n
85
91
  )) }) : /* @__PURE__ */ e(q, { text: "You currently have no IBAN Accounts" }) })
86
92
  ] }) });
87
93
  };
88
94
  export {
89
- Q as default
95
+ ee as default
90
96
  };
@@ -1,15 +1,18 @@
1
1
  import { Dispatch } from 'react';
2
- import { Bank, BankActionTypes, BankState, Iban, Wallet } from 'everest-npm-api';
2
+ import { Bank, BankActionTypes, BankState, Iban, Wallet, OrderActionTypes } from 'everest-npm-api';
3
3
  interface IbanItemProps {
4
4
  iban: BankState["iban"];
5
5
  data: Iban;
6
- dispatch: Dispatch<BankActionTypes>;
6
+ dispatch: Dispatch<BankActionTypes | OrderActionTypes>;
7
7
  appKey: string;
8
+ appKeyEur: string;
9
+ paymentWidgetSrcUrl: string;
8
10
  AccountItem: ({ data, type, children, }: {
9
11
  data: Wallet | Bank;
10
12
  type: string;
11
13
  children?: React.ReactNode;
12
14
  }) => JSX.Element;
15
+ from?: string;
13
16
  }
14
17
  declare const IbanItem: React.FC<IbanItemProps>;
15
18
  export default IbanItem;