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,24 +1,24 @@
1
1
  import { jsxs as a, Fragment as w, jsx as e } from "react/jsx-runtime";
2
2
  import { useMemo as Ze, useState as d, useEffect as h, useCallback as et } from "react";
3
3
  import tt from "./hoc/withThemeProvider.js";
4
- import { P as nt, f as rt } from "./PlayArrow-Cnrxi5yr.js";
4
+ import { P as rt, f as nt } from "./PlayArrow-C3uVNo4F.js";
5
5
  import { I as ot } from "./Info-BVeUSPyk.js";
6
6
  import { G as Ie } from "./generic-token-B_ptO5yb.js";
7
7
  import { PAYMENT_PROVIDER_PAYSAFE as it, ID_TOKEN_SYMBOL as Oe, FIAT_TO_EVER_ID as fe, FIAT_TO_TOKEN as he, ESTIMATE_TOOLTIP_TEXT as at, DIALOG_SUCCESS_ICON as st, PAYMENT_PROVIDER_PLAID as lt, PAYMENT_PROVIDER_CARDCORP as ct, PAYMENT_BANK as ze, SEPA_ICON as mt, VISA_ICON as dt } from "./util/constants.js";
8
- import { ap as B } from "./constants-BSdmHYnc.js";
8
+ import { aq as B } from "./constants-t7n9qCW3.js";
9
9
  import { c as pt, d as ut, u as ft } from "./index-BQNs1mvn.js";
10
- import { e as ht, f as $e, c as ye, g as yt, h as ke, i as _t } from "./order-BKKCskeq.js";
10
+ import { e as ht, f as $e, c as ye, g as yt, h as ke, i as _t } from "./order-jqH948WM.js";
11
11
  import { M as xt } from "./tooltip-3UvETWtS.js";
12
12
  import { getCurrencySymbol as Ye, getNetworkBackGround as gt } from "./util/functions.js";
13
13
  import xe from "./components/Wallet/Shared/appButton.js";
14
14
  import Ct from "./components/Wallet/Shared/backBtn.js";
15
15
  import { s as m } from "./styles.module-DMd29SPQ.js";
16
- import { p as Nt, e as vt } from "./bank-DIdz4BaB.js";
16
+ import { p as Nt, e as vt } from "./bank-Dz5km1qK.js";
17
17
  import { u as bt } from "./index.esm-BsMAMhYW.js";
18
- import { a as W, u as Et } from "./react-redux-B4BZippc.js";
18
+ import { u as W } from "./react-redux-C7I9-1M6.js";
19
19
  import "./index-DlQqWbXG.js";
20
20
  import "./components/Wallet/Shared/Auth/otpForm.js";
21
- import { useSnackBarContext as Rt } from "./context/snackBarContext.js";
21
+ import { useSnackBarContext as Et } from "./context/snackBarContext.js";
22
22
  import "./util/conversions.js";
23
23
  import "./index-CAoLi5Qq.js";
24
24
  import "./react-webcam-B3cXh1XT.js";
@@ -27,19 +27,20 @@ import "./components/Wallet/Shared/pin.js";
27
27
  import "./moment-h96o7c8I.js";
28
28
  import "./web3-u4qDZYpo.js";
29
29
  import "./index-ceeCtFuh.js";
30
- import { useDialogContext as At } from "./context/dialogContext.js";
30
+ import { useDialogContext as Rt } from "./context/dialogContext.js";
31
31
  import { T as s } from "./Typography-pAaje37G.js";
32
32
  import { B as S } from "./Box-B0YSYLco.js";
33
33
  import { G as i } from "./Grid-CFe3amXO.js";
34
34
  import { C as P } from "./CircularProgress-xZA3lvba.js";
35
- import { f as Ft } from "./cryptoAssets-BdNVnpA_.js";
36
- import { u as Pt, a as St } from "./wallet-BXA-R-Ks.js";
37
- import { AuthContainer as Mt } from "./components/Wallet/Shared/Container/index.js";
38
- import It from "./components/Wallet/Shared/CardPayment/index.js";
39
- import Ot from "./components/Shared/MinimalKyc/index.js";
40
- import zt from "./components/Wallet/Shared/Input/index.js";
41
- import kt from "./components/Wallet/Shared/CardCorp/index.js";
42
- import { c as wt } from "./countries-BVn1FubK.js";
35
+ import { f as At } from "./cryptoAssets-shEFU26O.js";
36
+ import { u as Ft, a as Pt } from "./wallet-DpkUmmq0.js";
37
+ import { AuthContainer as St } from "./components/Wallet/Shared/Container/index.js";
38
+ import Mt from "./components/Wallet/Shared/CardPayment/index.js";
39
+ import It from "./components/Shared/MinimalKyc/index.js";
40
+ import Ot from "./components/Wallet/Shared/Input/index.js";
41
+ import zt from "./components/Wallet/Shared/CardCorp/index.js";
42
+ import { c as kt } from "./countries-BVn1FubK.js";
43
+ import wt from "./hooks/useEverestDispatch.js";
43
44
  import Wt from "./components/Wallet/Shared/TokenModal/index.js";
44
45
  import { PaymentButton as Bt } from "./components/Wallet/Shared/Order/paymentButton.js";
45
46
  import we from "./components/Wallet/Shared/Order/selectCustomIcon.js";
@@ -60,7 +61,7 @@ const Tt = ({
60
61
  showAlertMessage: c,
61
62
  partnerKey: u,
62
63
  walletAddress: v,
63
- setWalletAddress: r,
64
+ setWalletAddress: n,
64
65
  outputToken: o,
65
66
  setOutputToken: I,
66
67
  paymentId: g,
@@ -71,27 +72,27 @@ const Tt = ({
71
72
  setPaymentOptions: b
72
73
  }) => {
73
74
  var Pe, Se;
74
- const H = W(pt), T = W(ut), { data: z, loader: X } = H, { data: ne, loader: de } = T, L = x.fiats, re = x.loader, k = M.featureTokens.buy.list, $ = M.featureTokens.buy.default, oe = M.loader, Y = y.loader, _ = y.estimate[B], J = _.crypto_out_amount, p = _.conversion_price, D = _.total_fee;
75
+ const H = W(pt), T = W(ut), { data: z, loader: X } = H, { data: re, loader: de } = T, L = x.fiats, ne = x.loader, k = M.featureTokens.buy.list, $ = M.featureTokens.buy.default, oe = M.loader, Y = y.loader, _ = y.estimate[B], J = _.crypto_out_amount, p = _.conversion_price, D = _.total_fee;
75
76
  let ie = 0, ae = 0;
76
77
  const ge = _.fee_breakdown;
77
78
  for (let t = 0; t < ge.length; t++) {
78
- const n = ge[t];
79
- n.name === "ev_fee" ? ie = Number(n.value) : n.name === "network_fee" && (ae = Number(n.value));
79
+ const r = ge[t];
80
+ r.name === "ev_fee" ? ie = Number(r.value) : r.name === "network_fee" && (ae = Number(r.value));
80
81
  }
81
82
  const De = Ze(() => [
82
83
  ...z,
83
- ...ne.filter(
84
+ ...re.filter(
84
85
  (t) => !z.some(
85
- (n) => n.address.toLowerCase() === t.address.toLowerCase()
86
+ (r) => r.address.toLowerCase() === t.address.toLowerCase()
86
87
  )
87
88
  )
88
- ], [z, ne]), [pe, Q] = d(!1), [q, qe] = d([]), [Ce, Ue] = d(!1), [Ne, Ke] = d(50), [ve, Ge] = d(3e3), [Z, Ve] = d(50), [be, je] = d(3e3), [Ee, ee] = d(""), [U, Re] = d(
89
+ ], [z, re]), [pe, Q] = d(!1), [q, qe] = d([]), [Ce, Ue] = d(!1), [Ne, Ke] = d(50), [ve, Ge] = d(3e3), [Z, Ve] = d(50), [be, je] = d(3e3), [Ee, ee] = d(""), [U, Re] = d(
89
90
  _.fiat_amount || Z.toString()
90
91
  ), [He, Ae] = d(!1), K = L.find((t) => t.id === f), A = Ye(K == null ? void 0 : K.symbol);
91
92
  h(() => {
92
93
  const t = [];
93
- for (let n = 0; n < L.length; n++) {
94
- const l = {}, C = L[n];
94
+ for (let r = 0; r < L.length; r++) {
95
+ const l = {}, C = L[r];
95
96
  l.id = C.id, l.name = C.name, l.icon_uri = C.icon_uri, l.symbol = C.symbol, l.payment_options = [];
96
97
  const F = C.payment_options;
97
98
  for (let G = 0; G < F.length; G++) {
@@ -105,9 +106,9 @@ const Tt = ({
105
106
  if (!f || q.length === 0)
106
107
  return;
107
108
  const t = [];
108
- for (let n = 0; n < q.length; n++) {
109
- if (q[n].id === f) {
110
- const l = q[n].payment_options;
109
+ for (let r = 0; r < q.length; r++) {
110
+ if (q[r].id === f) {
111
+ const l = q[r].payment_options;
111
112
  let C = !1;
112
113
  for (let F = 0; F < l.length; F++) {
113
114
  const G = l[F];
@@ -152,7 +153,7 @@ const Tt = ({
152
153
  `Maximum value should be less than ${A + be}`
153
154
  ), Q(!0), !1;
154
155
  }
155
- const n = j.find((F) => F.id === g), l = n.payment_type;
156
+ const r = j.find((F) => F.id === g), l = r.payment_type;
156
157
  E(
157
158
  $e(
158
159
  {
@@ -164,7 +165,7 @@ const Tt = ({
164
165
  fiat_ccy: K == null ? void 0 : K.symbol,
165
166
  crypto_ccy: o.symbol,
166
167
  network: (C = o.network) == null ? void 0 : C.name,
167
- payment_provider: n.payment_provider
168
+ payment_provider: r.payment_provider
168
169
  },
169
170
  B
170
171
  )
@@ -173,17 +174,17 @@ const Tt = ({
173
174
  h(() => {
174
175
  const t = y.types.length;
175
176
  if (t > 0)
176
- for (let n = 0; n < t; n++) {
177
- const l = y.types[n];
177
+ for (let r = 0; r < t; r++) {
178
+ const l = y.types[r];
178
179
  l.type === fe && (Ke(parseFloat(l.min_deposit_amount)), Ge(parseFloat(l.max_deposit_amount))), l.type === he && (Ve(parseFloat(l.min_deposit_amount)), je(parseFloat(l.max_deposit_amount)));
179
180
  }
180
181
  }, [y.types]);
181
182
  const Je = (t) => {
182
- const n = t.target.value;
183
- n ? /^([0-9.]+)$/.test(n) && Re(n) : Re("");
183
+ const r = t.target.value;
184
+ r ? /^([0-9.]+)$/.test(r) && Re(r) : Re("");
184
185
  }, Fe = (t) => {
185
- const n = k.find((l) => l.symbol === t);
186
- I(n);
186
+ const r = k.find((l) => l.symbol === t);
187
+ I(r);
187
188
  }, Qe = () => {
188
189
  if (!o.id)
189
190
  return c({ message: "Please select token" }), !1;
@@ -226,7 +227,7 @@ const Tt = ({
226
227
  ]
227
228
  }
228
229
  ) }),
229
- /* @__PURE__ */ e(i, { size: { xs: 5 }, className: "content-center", children: re ? /* @__PURE__ */ e(
230
+ /* @__PURE__ */ e(i, { size: { xs: 5 }, className: "content-center", children: ne ? /* @__PURE__ */ e(
230
231
  P,
231
232
  {
232
233
  sx: { ml: 1 },
@@ -272,8 +273,8 @@ const Tt = ({
272
273
  "img",
273
274
  {
274
275
  src: t.icon_uri,
275
- onError: ({ currentTarget: n }) => {
276
- n.onerror = null, n.src = Ie;
276
+ onError: ({ currentTarget: r }) => {
277
+ r.onerror = null, r.src = Ie;
277
278
  },
278
279
  alt: "tokenImg",
279
280
  width: "40",
@@ -290,7 +291,7 @@ const Tt = ({
290
291
  ] }),
291
292
  /* @__PURE__ */ a(S, { className: "text-left", mt: 3, children: [
292
293
  /* @__PURE__ */ e(s, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
293
- re ? /* @__PURE__ */ e(P, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(i, { mt: 0.5, container: !0, children: j.map((t) => /* @__PURE__ */ e(i, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
294
+ ne ? /* @__PURE__ */ e(P, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(i, { mt: 0.5, container: !0, children: j.map((t) => /* @__PURE__ */ e(i, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
294
295
  Bt,
295
296
  {
296
297
  label: t.payment_type,
@@ -377,8 +378,8 @@ const Tt = ({
377
378
  "img",
378
379
  {
379
380
  src: t.icon_uri,
380
- onError: ({ currentTarget: n }) => {
381
- n.onerror = null, n.src = Ie;
381
+ onError: ({ currentTarget: r }) => {
382
+ r.onerror = null, r.src = Ie;
382
383
  },
383
384
  alt: "tokenImg",
384
385
  width: "40",
@@ -405,7 +406,7 @@ const Tt = ({
405
406
  children: [
406
407
  /* @__PURE__ */ e(s, { variant: "caption", fontWeight: 700, children: "Fee Calculation" }),
407
408
  /* @__PURE__ */ e(
408
- nt,
409
+ rt,
409
410
  {
410
411
  sx: {
411
412
  transform: `rotate(${Ce ? "90" : "0"}deg)`,
@@ -487,8 +488,8 @@ const Tt = ({
487
488
  ue,
488
489
  {
489
490
  value: v,
490
- onChange: (t) => r && r(t.target.value),
491
- children: De.map((t, n) => /* @__PURE__ */ e(ce, { value: t.address, children: t.name + "(" + t.address + ")" }, n))
491
+ onChange: (t) => n && n(t.target.value),
492
+ children: De.map((t, r) => /* @__PURE__ */ e(ce, { value: t.address, children: t.name + "(" + t.address + ")" }, r))
492
493
  }
493
494
  )
494
495
  ] }) }) }),
@@ -521,7 +522,7 @@ const Tt = ({
521
522
  plaidCountry: R,
522
523
  navigate: c
523
524
  }) => {
524
- const { openDialog: u } = At(), { plaidToken: v } = W(ft), r = E.estimate[B], o = E.create.order_id, I = E.loader, g = r.fiat_amount, O = Ye(r.fiat_currency), [f, V] = d(!1), b = {
525
+ const { openDialog: u } = Rt(), { plaidToken: v } = W(ft), n = E.estimate[B], o = E.create.order_id, I = E.loader, g = n.fiat_amount, O = Ye(n.fiat_currency), [f, V] = d(!1), b = {
525
526
  onSuccess: et(() => {
526
527
  u({
527
528
  title: "Buy Success",
@@ -546,12 +547,12 @@ const Tt = ({
546
547
  h(() => {
547
548
  T && v && H();
548
549
  }, [T, v]), h(() => {
549
- o && f && (r.payment_provider === lt ? x(
550
+ o && f && (n.payment_provider === lt ? x(
550
551
  Nt({
551
552
  country_code: R,
552
553
  payment_id: E.create.provider_token
553
554
  })
554
- ) : r.payment_provider === ct ? N(Yt) : N($t));
555
+ ) : n.payment_provider === ct ? N(Yt) : N($t));
555
556
  }, [o]), h(() => {
556
557
  z();
557
558
  }, []);
@@ -560,14 +561,14 @@ const Tt = ({
560
561
  $e(
561
562
  {
562
563
  apiKey: y,
563
- transaction_type: r.transaction_type,
564
- coin_amount: r.fiat_amount,
565
- exchange: r.exchange,
566
- payment_type: r.payment_type,
567
- fiat_ccy: r.fiat_currency,
568
- crypto_ccy: r.crypto_currency,
569
- network: r.network,
570
- payment_provider: r.payment_provider
564
+ transaction_type: n.transaction_type,
565
+ coin_amount: n.fiat_amount,
566
+ exchange: n.exchange,
567
+ payment_type: n.payment_type,
568
+ fiat_ccy: n.fiat_currency,
569
+ crypto_ccy: n.crypto_currency,
570
+ network: n.network,
571
+ payment_provider: n.payment_provider
571
572
  },
572
573
  B
573
574
  )
@@ -576,7 +577,7 @@ const Tt = ({
576
577
  x(
577
578
  yt({
578
579
  apiKey: y,
579
- quoteId: r.quote_id,
580
+ quoteId: n.quote_id,
580
581
  walletAddress: M
581
582
  })
582
583
  ), V(!0);
@@ -590,16 +591,16 @@ const Tt = ({
590
591
  }
591
592
  ),
592
593
  /* @__PURE__ */ e(s, { mt: 2, variant: "sm", fontWeight: 600, children: "Using payment method" }),
593
- r.payment_type && /* @__PURE__ */ a(S, { mt: 2, className: m["confirm-payment"], children: [
594
+ n.payment_type && /* @__PURE__ */ a(S, { mt: 2, className: m["confirm-payment"], children: [
594
595
  /* @__PURE__ */ e(
595
596
  "img",
596
597
  {
597
- src: r.payment_type === ze ? mt : dt,
598
+ src: n.payment_type === ze ? mt : dt,
598
599
  width: 100,
599
600
  alt: "payment"
600
601
  }
601
602
  ),
602
- /* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: r.payment_type === ze ? "Bank Account" : "Debit Card" }) })
603
+ /* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: n.payment_type === ze ? "Bank Account" : "Debit Card" }) })
603
604
  ] }),
604
605
  /* @__PURE__ */ e(s, { mt: 4, variant: "sm", fontWeight: 600, children: "To Wallet Address" }),
605
606
  /* @__PURE__ */ e(
@@ -614,45 +615,45 @@ const Tt = ({
614
615
  /* @__PURE__ */ e(s, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
615
616
  /* @__PURE__ */ e(S, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
616
617
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
617
- r.crypto_currency.toUpperCase(),
618
+ n.crypto_currency.toUpperCase(),
618
619
  " @",
619
620
  " ",
620
- Number(r.conversion_price).toFixed(2),
621
+ Number(n.conversion_price).toFixed(2),
621
622
  " ",
622
- r.fiat_currency
623
+ n.fiat_currency
623
624
  ] }) }),
624
625
  /* @__PURE__ */ e(i, { className: "flex-right", size: { xs: 6 }, children: /* @__PURE__ */ e(
625
626
  "span",
626
627
  {
627
628
  className: m["confirm-transaction-network"],
628
629
  style: {
629
- backgroundColor: r.network === "Ethereum" ? "#A1A9DC" : "#5D8CCC"
630
+ backgroundColor: n.network === "Ethereum" ? "#A1A9DC" : "#5D8CCC"
630
631
  },
631
- children: r.network
632
+ children: n.network
632
633
  }
633
634
  ) }),
634
635
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
635
- Number(r.crypto_out_amount).toFixed(5),
636
+ Number(n.crypto_out_amount).toFixed(5),
636
637
  " ",
637
- r.crypto_currency.toUpperCase()
638
+ n.crypto_currency.toUpperCase()
638
639
  ] }) }),
639
640
  /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
640
- (Number(g) - Number(r.total_fee)).toFixed(2),
641
+ (Number(g) - Number(n.total_fee)).toFixed(2),
641
642
  " ",
642
- r.fiat_currency
643
+ n.fiat_currency
643
644
  ] }) }),
644
645
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
645
646
  /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
646
- Number(r.total_fee).toFixed(2),
647
+ Number(n.total_fee).toFixed(2),
647
648
  " ",
648
- r.fiat_currency
649
+ n.fiat_currency
649
650
  ] }) }),
650
651
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
651
652
  /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ a("strong", { children: [
652
653
  O,
653
654
  Number(g).toFixed(2),
654
655
  " ",
655
- r.fiat_currency
656
+ n.fiat_currency
656
657
  ] }) }) })
657
658
  ] }) }),
658
659
  /* @__PURE__ */ e(S, { mt: 4, children: /* @__PURE__ */ e(
@@ -675,25 +676,25 @@ const Tt = ({
675
676
  cardCorpSrcUrl: x,
676
677
  navigate: M
677
678
  }) => {
678
- const { showAlertMessage: R } = Rt(), c = Et(), u = W((p) => p.order), v = u.create.provider_token, r = u.create.checkout_integrity, o = u.error, I = W(
679
+ const { showAlertMessage: R } = Et(), c = wt(), u = W((p) => p.order), v = u.create.provider_token, n = u.create.checkout_integrity, o = u.error, I = W(
679
680
  (p) => p.user.profile
680
681
  ), g = I.everWalletAddress, O = I.residentialAddress.country || "USA", f = W((p) => p.fiatAssets), V = W(
681
682
  (p) => p.cryptoAssets
682
683
  ), [j, b] = d(_e), [H, T] = d({
683
684
  symbol: ""
684
- }), [z, X] = d(0), [ne, de] = d(1), [L, re] = d([]), [k, $] = d(g), [oe, Y] = d("");
685
+ }), [z, X] = d(0), [re, de] = d(1), [L, ne] = d([]), [k, $] = d(g), [oe, Y] = d("");
685
686
  return h(() => {
686
687
  if (O) {
687
- const p = wt.find((D) => D.alpha3 === O);
688
+ const p = kt.find((D) => D.alpha3 === O);
688
689
  p && Y(p.alpha2);
689
690
  }
690
691
  }, [O]), h(() => {
691
692
  o && R({ message: o });
692
693
  }, [o]), h(() => {
693
694
  u.initMinimalKyc && (R({ message: o, type: "info" }), b(Dt));
694
- }, [u.initMinimalKyc]), h(() => (c(rt()), c(ke(he)), c(ke(fe)), c(Pt()), c(St()), () => {
695
+ }, [u.initMinimalKyc]), h(() => (c(nt()), c(ke(he)), c(ke(fe)), c(Ft()), c(Pt()), () => {
695
696
  c(ye());
696
- }), []), /* @__PURE__ */ e(Mt, { addPadding: !0, children: {
697
+ }), []), /* @__PURE__ */ e(St, { addPadding: !0, children: {
697
698
  FORM_SCREEN: /* @__PURE__ */ e(
698
699
  Tt,
699
700
  {
@@ -705,7 +706,7 @@ const Tt = ({
705
706
  dispatch: c,
706
707
  getCryptoAssets: (p) => {
707
708
  c(
708
- Ft({
709
+ At({
709
710
  type: B,
710
711
  id: p,
711
712
  partnerKey: N,
@@ -720,10 +721,10 @@ const Tt = ({
720
721
  setOutputToken: T,
721
722
  paymentId: z,
722
723
  setPaymentId: X,
723
- currencyId: ne,
724
+ currencyId: re,
724
725
  setCurrencyId: de,
725
726
  paymentOptions: L,
726
- setPaymentOptions: re
727
+ setPaymentOptions: ne
727
728
  }
728
729
  ),
729
730
  CONFIRM_SCREEN: /* @__PURE__ */ e(
@@ -740,7 +741,7 @@ const Tt = ({
740
741
  }
741
742
  ),
742
743
  PAYMENT_SCREEN: /* @__PURE__ */ e(
743
- It,
744
+ Mt,
744
745
  {
745
746
  checkoutKey: E,
746
747
  orderData: u,
@@ -759,19 +760,19 @@ const Tt = ({
759
760
  }
760
761
  ),
761
762
  CARD_CORP_SCREEN: /* @__PURE__ */ e(
762
- kt,
763
+ zt,
763
764
  {
764
765
  checkoutId: v,
765
- integrity: r,
766
+ integrity: n,
766
767
  onResultUrl: `${y}/dashboard`,
767
768
  backBtnFunc: () => b(me),
768
769
  srcUrl: x
769
770
  }
770
771
  ),
771
772
  MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
772
- Ot,
773
+ It,
773
774
  {
774
- inputComponent: zt,
775
+ inputComponent: Ot,
775
776
  buttonComponent: xe,
776
777
  onComplete: () => {
777
778
  b(me);
@@ -779,7 +780,7 @@ const Tt = ({
779
780
  }
780
781
  )
781
782
  }[j] });
782
- }, qn = tt(qt);
783
+ }, qr = tt(qt);
783
784
  export {
784
785
  Tt as B,
785
786
  me as C,
@@ -788,5 +789,5 @@ export {
788
789
  $t as P,
789
790
  Lt as a,
790
791
  Yt as b,
791
- qn as i
792
+ qr as i
792
793
  };
@@ -1,19 +1,19 @@
1
1
  import { jsxs as n, Fragment as E, jsx as e } from "react/jsx-runtime";
2
2
  import { useMemo as et, useState as h, useEffect as x, useRef as tt } from "react";
3
3
  import rt from "./hoc/withThemeProvider.js";
4
- import { P as nt, f as ot } from "./PlayArrow-Cnrxi5yr.js";
4
+ import { P as nt, f as ot } from "./PlayArrow-C3uVNo4F.js";
5
5
  import { I as it } from "./Info-BVeUSPyk.js";
6
6
  import { G as me } from "./generic-token-B_ptO5yb.js";
7
7
  import { TOKEN_TO_FIAT as de, ESTIMATE_TOOLTIP_TEXT as st, SELL_WITHDRAW_ICON as at, DIALOG_SUCCESS_ICON as Re, DIALOG_ERROR_ICON as lt } from "./util/constants.js";
8
- import { aB as R, ac as ct } from "./constants-BSdmHYnc.js";
8
+ import { aC as R, ad as ct } from "./constants-t7n9qCW3.js";
9
9
  import { c as ze, d as mt } from "./index-BQNs1mvn.js";
10
- import { e as dt, f as We, c as X, d as Ee, g as ut, j as pt, h as ht } from "./order-BKKCskeq.js";
10
+ import { e as dt, f as We, c as X, d as Ee, g as ut, j as pt, h as ht } from "./order-jqH948WM.js";
11
11
  import { M as ft } from "./tooltip-3UvETWtS.js";
12
12
  import { getCurrencySymbol as Me, getNetworkBackGround as xt, displayWalletAddress as yt } from "./util/functions.js";
13
13
  import gt from "./components/Wallet/Shared/backBtn.js";
14
14
  import { s as l } from "./styles.module-DMd29SPQ.js";
15
15
  import J from "./components/Wallet/Shared/appButton.js";
16
- import { a as L, u as Le } from "./react-redux-B4BZippc.js";
16
+ import { u as L } from "./react-redux-C7I9-1M6.js";
17
17
  import "./index-DlQqWbXG.js";
18
18
  import "./components/Wallet/Shared/Auth/otpForm.js";
19
19
  import { useSnackBarContext as pe } from "./context/snackBarContext.js";
@@ -26,18 +26,19 @@ import "./moment-h96o7c8I.js";
26
26
  import "./index.esm-BsMAMhYW.js";
27
27
  import "./web3-u4qDZYpo.js";
28
28
  import "./index-ceeCtFuh.js";
29
- import { useDialogContext as Oe } from "./context/dialogContext.js";
29
+ import { useDialogContext as Le } from "./context/dialogContext.js";
30
30
  import { T as i } from "./Typography-pAaje37G.js";
31
31
  import { B as T } from "./Box-B0YSYLco.js";
32
32
  import { G as r } from "./Grid-CFe3amXO.js";
33
33
  import { C as I } from "./CircularProgress-xZA3lvba.js";
34
- import { f as Ct } from "./cryptoAssets-BdNVnpA_.js";
35
- import { u as Nt, a as vt } from "./wallet-BXA-R-Ks.js";
34
+ import { f as Ct } from "./cryptoAssets-shEFU26O.js";
35
+ import { u as Nt, a as vt } from "./wallet-DpkUmmq0.js";
36
36
  import { AuthContainer as kt } from "./components/Wallet/Shared/Container/index.js";
37
37
  import St from "./components/Shared/MinimalKyc/index.js";
38
- import Be from "./components/Wallet/Shared/Input/index.js";
38
+ import Oe from "./components/Wallet/Shared/Input/index.js";
39
39
  import { C as wt } from "./ContentCopy-coPwrEuz.js";
40
40
  import Et from "./components/Wallet/Shared/timer.js";
41
+ import Be from "./hooks/useEverestDispatch.js";
41
42
  import { D as le } from "./Divider-BShhMFf4.js";
42
43
  import { I as ue } from "./IconButton-DHm-hucF.js";
43
44
  import Tt from "./components/Wallet/Shared/TokenModal/index.js";
@@ -533,7 +534,7 @@ const Ft = ({
533
534
  walletAddress: f,
534
535
  navigate: S
535
536
  }) => {
536
- const y = tt(null), z = L(ze), { openDialog: p } = Oe();
537
+ const y = tt(null), z = L(ze), { openDialog: p } = Le();
537
538
  pe();
538
539
  const o = c.estimate[R], g = c.create.order_id, v = c.depositAddress, A = c.depositAddressError, b = c.loader;
539
540
  o.fiat_amount;
@@ -673,9 +674,9 @@ const Ft = ({
673
674
  navigate: f
674
675
  }) => {
675
676
  var B;
676
- const S = Le(), y = L(
677
+ const S = Be(), y = L(
677
678
  (_) => _.cryptoAssets
678
- ), { showAlertMessage: z } = pe(), { openDialog: p } = Oe(), o = d.create.order_id, g = d.depositAddress, v = d.depositComplete, A = d.error, [b, O] = h(!1), [D, G] = h(!1), [F, H] = h("");
679
+ ), { showAlertMessage: z } = pe(), { openDialog: p } = Le(), o = d.create.order_id, g = d.depositAddress, v = d.depositComplete, A = d.error, [b, O] = h(!1), [D, G] = h(!1), [F, H] = h("");
679
680
  let w = "Swap", m = d.estimate[ct];
680
681
  k === R && (w = "Sell", m = d.estimate[R]);
681
682
  let K = (B = y.tokens.find(
@@ -821,7 +822,7 @@ const Ft = ({
821
822
  ),
822
823
  /* @__PURE__ */ e(i, { mt: 4, variant: "body2", children: /* @__PURE__ */ e("b", { children: "Enter Transaction Hash" }) }),
823
824
  /* @__PURE__ */ e(
824
- Be,
825
+ Oe,
825
826
  {
826
827
  value: F,
827
828
  onChange: (_) => H(_.target.value),
@@ -836,7 +837,7 @@ const Ft = ({
836
837
  ] }) : "Continue" }) })
837
838
  ] });
838
839
  }, Y = "FORM_SCREEN", Pe = "CONFIRM_SCREEN", zt = "MANUAL_SEND_SCREEN", Wt = "MINIMAL_KYC_SCREEN", Mt = ({ partnerKey: k, navigate: d }) => {
839
- const c = Le(), u = L((b) => b.order), f = u.error, S = L((b) => b.fiatAssets), y = L(
840
+ const c = Be(), u = L((b) => b.order), f = u.error, S = L((b) => b.fiatAssets), y = L(
840
841
  (b) => b.cryptoAssets
841
842
  ), [z, p] = h(Y), [o, g] = h(""), { showAlertMessage: v } = pe();
842
843
  return x(() => {
@@ -896,7 +897,7 @@ const Ft = ({
896
897
  MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
897
898
  St,
898
899
  {
899
- inputComponent: Be,
900
+ inputComponent: Oe,
900
901
  buttonComponent: J,
901
902
  onComplete: () => {
902
903
  p(Pe);
@@ -904,7 +905,7 @@ const Ft = ({
904
905
  }
905
906
  )
906
907
  }[z] });
907
- }, zr = rt(Mt);
908
+ }, Wr = rt(Mt);
908
909
  export {
909
910
  Pe as C,
910
911
  Y as F,
@@ -913,5 +914,5 @@ export {
913
914
  It as a,
914
915
  zt as b,
915
916
  Wt as c,
916
- zr as i
917
+ Wr as i
917
918
  };