everest-npm-features 0.0.30 → 0.0.31

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 (92) hide show
  1. package/dist/assets/index4.css +1 -1
  2. package/dist/assets/styles2.css +1 -1
  3. package/dist/assets/tokenRow.css +1 -1
  4. package/dist/assets/withThemeProvider.css +1 -1
  5. package/dist/{auth-DoHhqFQx.js → auth-IOh0JhPD.js} +1 -1
  6. package/dist/{bank-DyVf4Uoo.js → bank-BNgO--wu.js} +1 -1
  7. package/dist/components/RocketRamp/MinimalKyc/form.js +2 -2
  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 +3 -3
  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 +3 -3
  15. package/dist/components/RocketRamp/Player/Sell/index.js +5 -5
  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/index.js +3 -3
  28. package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
  29. package/dist/components/Shared/FullKyc/userInfo.js +3 -3
  30. package/dist/components/Shared/HistoryItem/index.js +58 -51
  31. package/dist/components/Shared/MinimalKyc/index.js +2 -2
  32. package/dist/components/Wallet/Account/iban.js +3 -3
  33. package/dist/components/Wallet/Account/index.js +3 -3
  34. package/dist/components/Wallet/Account/sendIban.js +2 -2
  35. package/dist/components/Wallet/Buy/confirmTransaction.js +4 -4
  36. package/dist/components/Wallet/Buy/form.js +6 -5
  37. package/dist/components/Wallet/Buy/index.js +6 -6
  38. package/dist/components/Wallet/Deposit/index.js +14 -7
  39. package/dist/components/Wallet/EnterpriseKyc/edd.js +1 -1
  40. package/dist/components/Wallet/EnterpriseKyc/index.js +144 -147
  41. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +8 -14
  42. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +2 -2
  43. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
  44. package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
  45. package/dist/components/Wallet/History/index.js +2 -2
  46. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +2 -2
  47. package/dist/components/Wallet/Portfolio/index.js +6 -6
  48. package/dist/components/Wallet/Portfolio/tokenRow.js +1 -1
  49. package/dist/components/Wallet/Profile/documents.js +3 -4
  50. package/dist/components/Wallet/Profile/index.js +2 -2
  51. package/dist/components/Wallet/Receive/index.js +2 -2
  52. package/dist/components/Wallet/Sell/confirmTransaction.js +4 -4
  53. package/dist/components/Wallet/Sell/form.js +6 -5
  54. package/dist/components/Wallet/Sell/index.js +6 -6
  55. package/dist/components/Wallet/Send/index.js +2 -2
  56. package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
  57. package/dist/components/Wallet/Shared/Order/selectCustomIcon.d.ts +4 -0
  58. package/dist/components/Wallet/Shared/Order/selectCustomIcon.js +14 -0
  59. package/dist/components/Wallet/Shared/TokenModal/index.js +77 -75
  60. package/dist/components/Wallet/Shared/addBank.js +2 -2
  61. package/dist/components/Wallet/Shared/appButton.js +23 -20
  62. package/dist/components/Wallet/Shared/connectPlaidBank.js +2 -2
  63. package/dist/components/Wallet/SignIn/index.js +2 -2
  64. package/dist/components/Wallet/SignUp/index.js +2 -2
  65. package/dist/components/Wallet/Stake/index.js +3 -3
  66. package/dist/components/Wallet/Swap/index.js +158 -155
  67. package/dist/components/Wallet/Withdraw/bankSelect.js +5 -5
  68. package/dist/components/Wallet/Withdraw/confirmTransaction.js +4 -4
  69. package/dist/components/Wallet/Withdraw/form.js +6 -5
  70. package/dist/components/Wallet/Withdraw/index.js +5 -5
  71. package/dist/{constants-BF50a6s-.js → constants-DWENgBjv.js} +129 -128
  72. package/dist/{cryptoAssets-Dck03SPI.js → cryptoAssets-C7fIAflf.js} +1 -1
  73. package/dist/{documents-Sh6RH769.js → documents-BA_pUCQh.js} +57 -55
  74. package/dist/{fiatAssets-CTIJw9N4.js → fiatAssets-Bkh4X4hq.js} +1 -1
  75. package/dist/{index-GxLtFwhs.js → index-BtYuKn1z.js} +150 -147
  76. package/dist/{index-C3GMDAX6.js → index-BvD3O03n.js} +2 -2
  77. package/dist/{index-CbogTdwW.js → index-CNLxRkdf.js} +4 -4
  78. package/dist/{index-CABieRWd.js → index-Cz_n7X7q.js} +129 -116
  79. package/dist/{index-CWzs4-wZ.js → index-GXDDOdOI.js} +4 -4
  80. package/dist/{index-CmJNKC9m.js → index-dsM-tUkI.js} +125 -115
  81. package/dist/{kyc-kWxxF1vI.js → kyc-DbZ4KGFX.js} +1 -1
  82. package/dist/main.js +6 -6
  83. package/dist/{order-D-FBHreS.js → order-BLu2iLAt.js} +1 -1
  84. package/dist/{stake-mS8fdG8g.js → stake-tw1n23io.js} +1 -1
  85. package/dist/styles.module-CRVptIQs.js +33 -0
  86. package/dist/{tokenRow-DBnoUm0z.js → tokenRow-C5N2uPgO.js} +42 -42
  87. package/dist/util/constants.d.ts +1 -0
  88. package/dist/util/constants.js +76 -75
  89. package/dist/{wallet-BTc5u8j2.js → wallet-DZwD-8oa.js} +1 -1
  90. package/package.json +1 -1
  91. package/dist/ArrowBack-BV158RTp.js +0 -8
  92. package/dist/styles.module-B-t8vvWh.js +0 -31
@@ -1,41 +1,42 @@
1
- import { jsxs as a, Fragment as P, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as o, Fragment as P, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as m, useEffect as g } from "react";
3
- import Ge from "./hoc/withThemeProvider.js";
4
- import { P as Ve } from "./PlayArrow-BCWGWaUq.js";
5
- import { I as He } from "./Info-0vSsl6Bm.js";
3
+ import Ve from "./hoc/withThemeProvider.js";
4
+ import { P as He } from "./PlayArrow-BCWGWaUq.js";
5
+ import { I as Xe } from "./Info-0vSsl6Bm.js";
6
6
  import { G as Ee } from "./generic-token-B_ptO5yb.js";
7
- import { PAYMENT_PROVIDER_PAYSAFE as Xe, ID_TOKEN_SYMBOL as Fe, FIAT_TO_EVER_ID as oe, FIAT_TO_TOKEN as se, ESTIMATE_TOOLTIP_TEXT as Je, PAYMENT_BANK as Ae, SEPA_ICON as Qe, VISA_ICON as Ze } from "./util/constants.js";
8
- import { ae as z } from "./constants-BF50a6s-.js";
9
- import { u as et } from "./index-v4KC1K_V.js";
10
- import { b as tt, c as Ie, d as nt, a as Me, o as rt, g as it } from "./order-D-FBHreS.js";
7
+ import { PAYMENT_PROVIDER_PAYSAFE as Je, ID_TOKEN_SYMBOL as Fe, FIAT_TO_EVER_ID as ae, FIAT_TO_TOKEN as se, ESTIMATE_TOOLTIP_TEXT as Qe, PAYMENT_BANK as Ae, SEPA_ICON as Ze, VISA_ICON as et } from "./util/constants.js";
8
+ import { af as z } from "./constants-DWENgBjv.js";
9
+ import { u as tt } from "./index-v4KC1K_V.js";
10
+ import { b as nt, c as Oe, d as rt, a as Me, o as it, g as ot } from "./order-BLu2iLAt.js";
11
11
  import { M as at } from "./tooltip-Dv3Lfsa2.js";
12
- import { getCurrencySymbol as Oe, getNetworkBackGround as ot } from "./util/functions.js";
12
+ import { getCurrencySymbol as we, getNetworkBackGround as st } from "./util/functions.js";
13
13
  import ce from "./components/Wallet/Shared/appButton.js";
14
- import st from "./components/Wallet/Shared/backBtn.js";
15
- import { s as c } from "./styles.module-B-t8vvWh.js";
14
+ import lt from "./components/Wallet/Shared/backBtn.js";
15
+ import { s as c } from "./styles.module-CRVptIQs.js";
16
16
  import { T as s } from "./Typography-BQDN44CM.js";
17
17
  import { B as F } from "./Box-BwKpr_VI.js";
18
18
  import { G as i } from "./Grid-CPkjiKqX.js";
19
19
  import { C as E } from "./CircularProgress-Yx712vpT.js";
20
- import { u as G, a as lt } from "./react-redux-C7I9-1M6.js";
21
- import { f as ct } from "./fiatAssets-CTIJw9N4.js";
22
- import { f as mt } from "./cryptoAssets-Dck03SPI.js";
23
- import { u as dt } from "./wallet-BTc5u8j2.js";
24
- import { useSnackBarContext as pt } from "./context/snackBarContext.js";
25
- import { AuthContainer as ft } from "./components/Wallet/Shared/Container/index.js";
26
- import ut from "./components/Wallet/Shared/CardPayment/index.js";
27
- import ht from "./components/Shared/MinimalKyc/index.js";
28
- import yt from "./components/Wallet/Shared/Input/index.js";
29
- import xt from "./components/Wallet/Shared/TokenModal/index.js";
30
- import { PaymentButton as _t } from "./components/Wallet/Shared/Order/paymentButton.js";
31
- import { F as D } from "./FormControl-H4D1Z6Ov.js";
20
+ import { u as G, a as ct } from "./react-redux-C7I9-1M6.js";
21
+ import { f as mt } from "./fiatAssets-Bkh4X4hq.js";
22
+ import { f as dt } from "./cryptoAssets-C7fIAflf.js";
23
+ import { u as pt } from "./wallet-DZwD-8oa.js";
24
+ import { useSnackBarContext as ft } from "./context/snackBarContext.js";
25
+ import { AuthContainer as ut } from "./components/Wallet/Shared/Container/index.js";
26
+ import ht from "./components/Wallet/Shared/CardPayment/index.js";
27
+ import yt from "./components/Shared/MinimalKyc/index.js";
28
+ import xt from "./components/Wallet/Shared/Input/index.js";
29
+ import _t from "./components/Wallet/Shared/TokenModal/index.js";
30
+ import { PaymentButton as gt } from "./components/Wallet/Shared/Order/paymentButton.js";
31
+ import Re from "./components/Wallet/Shared/Order/selectCustomIcon.js";
32
+ import { F as j } from "./FormControl-H4D1Z6Ov.js";
32
33
  import { F as Q } from "./FilledInput-QaJVaeIX.js";
33
- import { F as Re, I as Se } from "./TextField-DmiK1A_S.js";
34
- import { S as ae } from "./Select-CGei0bav.js";
34
+ import { F as Se, I as Pe } from "./TextField-DmiK1A_S.js";
35
+ import { S as oe } from "./Select-CGei0bav.js";
35
36
  import { M as Z } from "./MenuItem-ByxiQtY2.js";
36
- import { L as Pe } from "./ListItemIcon-D657XWHf.js";
37
- import { I as ze } from "./IconButton-WneJM4uP.js";
38
- const gt = ({
37
+ import { L as ze } from "./ListItemIcon-D657XWHf.js";
38
+ import { I as Ie } from "./IconButton-WneJM4uP.js";
39
+ const Nt = ({
39
40
  setScreen: A,
40
41
  orderData: x,
41
42
  dispatch: M,
@@ -46,7 +47,7 @@ const gt = ({
46
47
  partnerKey: L,
47
48
  walletAddress: b,
48
49
  setWalletAddress: I,
49
- outputToken: o,
50
+ outputToken: a,
50
51
  setOutputToken: O,
51
52
  paymentId: p,
52
53
  setPaymentId: w,
@@ -56,16 +57,16 @@ const gt = ({
56
57
  setPaymentOptions: te
57
58
  }) => {
58
59
  var be, ve;
59
- const H = G(et), ne = H.data, { loader: re } = H, R = N.fiats, X = N.loader, Y = d.featureTokens.buy.list, q = d.featureTokens.buy.default, f = d.loader, S = x.loader, h = x.estimate[z], W = h.crypto_out_amount, We = h.conversion_price, Be = h.total_fee;
60
+ const H = G(tt), ne = H.data, { loader: re } = H, R = N.fiats, X = N.loader, Y = d.featureTokens.buy.list, q = d.featureTokens.buy.default, f = d.loader, S = x.loader, h = x.estimate[z], W = h.crypto_out_amount, Be = h.conversion_price, ke = h.total_fee;
60
61
  let me = 0, de = 0;
61
62
  const pe = h.fee_breakdown;
62
63
  for (let t = 0; t < pe.length; t++) {
63
64
  const r = pe[t];
64
65
  r.name === "ev_fee" ? me = Number(r.value) : r.name === "network_fee" && (de = Number(r.value));
65
66
  }
66
- const [ie, K] = m(!1), [B, ke] = m([]), [fe, Te] = m(!1), [ue, $e] = m(50), [he, Le] = m(3e3), [U, Ye] = m(50), [ye, qe] = m(3e3), [xe, j] = m(""), [k, _e] = m(
67
+ const [ie, K] = m(!1), [B, Te] = m([]), [fe, $e] = m(!1), [ue, Le] = m(50), [he, Ye] = m(3e3), [U, qe] = m(50), [ye, Ke] = m(3e3), [xe, D] = m(""), [k, _e] = m(
67
68
  h.fiat_amount || U.toString()
68
- ), [Ke, ge] = m(!1), T = R.find((t) => t.id === y), v = Oe(T == null ? void 0 : T.symbol);
69
+ ), [Ue, ge] = m(!1), T = R.find((t) => t.id === y), v = we(T == null ? void 0 : T.symbol);
69
70
  g(() => {
70
71
  const t = [];
71
72
  for (let r = 0; r < R.length; r++) {
@@ -74,11 +75,11 @@ const gt = ({
74
75
  const C = _.payment_options;
75
76
  for (let $ = 0; $ < C.length; $++) {
76
77
  const Ce = {}, J = C[$];
77
- J.payment_provider !== Xe && J.active && J.payin_allowed && (Object.assign(Ce, J), l.payment_options.push(Ce));
78
+ J.payment_provider !== Je && J.active && J.payin_allowed && (Object.assign(Ce, J), l.payment_options.push(Ce));
78
79
  }
79
80
  l.payment_options.length > 0 && t.push(l);
80
81
  }
81
- ke(t);
82
+ Te(t);
82
83
  }, [R]), g(() => {
83
84
  if (!y || B.length === 0)
84
85
  return;
@@ -96,52 +97,52 @@ const gt = ({
96
97
  te(t);
97
98
  }
98
99
  }, [y, B]), g(() => {
99
- !o.symbol && q && q.id && O(q);
100
+ !a.symbol && q && q.id && O(q);
100
101
  }, [q]), g(() => {
101
102
  y && n && n(y);
102
103
  }, [y, b]), g(() => {
103
- if (o && o.id && k && p && y) {
104
- M(tt(z)), K(!1), j("");
104
+ if (a && a.id && k && p && y) {
105
+ M(nt(z)), K(!1), D("");
105
106
  const t = setTimeout(() => {
106
- Ue();
107
+ De();
107
108
  }, 1e3);
108
109
  return () => clearTimeout(t);
109
110
  }
110
- }, [o, k, p, Y, y]);
111
- const Ue = () => {
111
+ }, [a, k, p, Y, y]);
112
+ const De = () => {
112
113
  var _;
113
114
  const t = parseFloat(k);
114
- if (o.symbol === Fe) {
115
+ if (a.symbol === Fe) {
115
116
  if (ue > t)
116
- return j(
117
+ return D(
117
118
  `Minimum value should be greater than ${v + ue}`
118
119
  ), K(!0), !1;
119
120
  if (he * 1 < t)
120
- return j(
121
+ return D(
121
122
  `Maximum value should be less than ${v + he}`
122
123
  ), K(!0), !1;
123
124
  } else {
124
125
  if (U * 1 > t)
125
- return j(
126
+ return D(
126
127
  `Minimum value should be greater than ${v + U}`
127
128
  ), K(!0), !1;
128
129
  if (ye * 1 < t)
129
- return j(
130
+ return D(
130
131
  `Maximum value should be less than ${v + ye}`
131
132
  ), K(!0), !1;
132
133
  }
133
134
  const r = V.find((C) => C.id === p), l = r.payment_type;
134
135
  M(
135
- Ie(
136
+ Oe(
136
137
  {
137
138
  apiKey: L,
138
- transaction_type: o.symbol === Fe ? oe : se,
139
+ transaction_type: a.symbol === Fe ? ae : se,
139
140
  coin_amount: k,
140
- exchange: o.exchange,
141
+ exchange: a.exchange,
141
142
  payment_type: l,
142
143
  fiat_ccy: T == null ? void 0 : T.symbol,
143
- crypto_ccy: o.symbol,
144
- network: (_ = o.network) == null ? void 0 : _.name,
144
+ crypto_ccy: a.symbol,
145
+ network: (_ = a.network) == null ? void 0 : _.name,
145
146
  payment_provider: r.payment_provider
146
147
  },
147
148
  z
@@ -153,12 +154,12 @@ const gt = ({
153
154
  if (t > 0)
154
155
  for (let r = 0; r < t; r++) {
155
156
  const l = x.types[r];
156
- if (l.type === oe) {
157
- $e(parseFloat(l.min_deposit_amount)), Le(parseFloat(l.max_deposit_amount));
157
+ if (l.type === ae) {
158
+ Le(parseFloat(l.min_deposit_amount)), Ye(parseFloat(l.max_deposit_amount));
158
159
  break;
159
160
  }
160
161
  if (l.type === se) {
161
- Ye(parseFloat(l.min_deposit_amount)), qe(parseFloat(l.max_deposit_amount));
162
+ qe(parseFloat(l.min_deposit_amount)), Ke(parseFloat(l.max_deposit_amount));
162
163
  break;
163
164
  }
164
165
  }
@@ -169,8 +170,8 @@ const gt = ({
169
170
  }, Ne = (t) => {
170
171
  const r = Y.find((l) => l.symbol === t);
171
172
  O(r);
172
- }, De = () => {
173
- if (!o.id)
173
+ }, Ge = () => {
174
+ if (!a.id)
174
175
  return u({ message: "Please select token" }), !1;
175
176
  if (!p)
176
177
  return u({ message: "Please select payment method" }), !1;
@@ -184,11 +185,11 @@ const gt = ({
184
185
  }), !1;
185
186
  A(le);
186
187
  };
187
- return /* @__PURE__ */ a(P, { children: [
188
+ return /* @__PURE__ */ o(P, { children: [
188
189
  /* @__PURE__ */ e(i, { container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ e(s, { className: c.label, variant: "caption", component: "p", children: "You Pay" }) }) }),
189
- /* @__PURE__ */ a(i, { mt: 0.5, spacing: 0, container: !0, className: c["field-set"], children: [
190
- /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ a(
191
- D,
190
+ /* @__PURE__ */ o(i, { mt: 0.5, spacing: 0, container: !0, className: c["field-set"], children: [
191
+ /* @__PURE__ */ e(i, { size: { xs: 7 }, children: /* @__PURE__ */ o(
192
+ j,
192
193
  {
193
194
  variant: "filled",
194
195
  className: `${c.amount} ${c["fiat-field"]}`,
@@ -207,25 +208,26 @@ const gt = ({
207
208
  fullWidth: !0
208
209
  }
209
210
  ),
210
- /* @__PURE__ */ e(Re, { className: c["amount-symbol"], children: " " })
211
+ /* @__PURE__ */ e(Se, { className: c["amount-symbol"], children: " " })
211
212
  ]
212
213
  }
213
214
  ) }),
214
- /* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: X ? /* @__PURE__ */ e(
215
+ /* @__PURE__ */ e(i, { size: { xs: 5 }, className: "content-center", children: X ? /* @__PURE__ */ e(
215
216
  E,
216
217
  {
217
218
  sx: { ml: 1 },
218
219
  size: 30
219
220
  }
220
221
  ) : /* @__PURE__ */ e(
221
- D,
222
+ j,
222
223
  {
223
224
  variant: "filled",
224
225
  className: `text-left ${c["fiat-picker"]}`,
225
226
  fullWidth: !0,
226
227
  children: /* @__PURE__ */ e(
227
- ae,
228
+ oe,
228
229
  {
230
+ IconComponent: Re,
229
231
  input: /* @__PURE__ */ e(Q, { disableUnderline: !0 }),
230
232
  sx: {
231
233
  borderTopLeftRadius: 0,
@@ -251,8 +253,8 @@ const gt = ({
251
253
  displayEmpty: !0,
252
254
  onChange: (t) => ee(t.target.value),
253
255
  error: ie,
254
- children: B.map((t) => /* @__PURE__ */ a(Z, { value: t.id, children: [
255
- /* @__PURE__ */ e(Pe, { className: c["dropdown-list-item"], children: /* @__PURE__ */ e(
256
+ children: B.map((t) => /* @__PURE__ */ o(Z, { value: t.id, children: [
257
+ /* @__PURE__ */ e(ze, { className: c["dropdown-list-item"], children: /* @__PURE__ */ e(
256
258
  "img",
257
259
  {
258
260
  src: t.icon_uri,
@@ -272,10 +274,10 @@ const gt = ({
272
274
  ) }),
273
275
  xe && /* @__PURE__ */ e(s, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: xe }) })
274
276
  ] }),
275
- /* @__PURE__ */ a(F, { className: "text-left", mt: 3, children: [
277
+ /* @__PURE__ */ o(F, { className: "text-left", mt: 3, children: [
276
278
  /* @__PURE__ */ e(s, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
277
279
  X ? /* @__PURE__ */ e(E, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(i, { mt: 0.5, container: !0, children: V.map((t) => /* @__PURE__ */ e(i, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
278
- _t,
280
+ gt,
279
281
  {
280
282
  label: t.payment_type,
281
283
  value: t.id,
@@ -285,11 +287,11 @@ const gt = ({
285
287
  ) }, t.id)) })
286
288
  ] }),
287
289
  /* @__PURE__ */ e(i, { mt: 4, container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 4 }, children: /* @__PURE__ */ e(s, { className: c.label, variant: "caption", component: "p", children: "You Receive" }) }) }),
288
- /* @__PURE__ */ a(i, { mt: 0.5, container: !0, className: c["field-set"], children: [
289
- /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ a(
290
- D,
290
+ /* @__PURE__ */ o(i, { mt: 0.5, container: !0, className: c["field-set"], children: [
291
+ /* @__PURE__ */ e(i, { size: { xs: 7 }, children: /* @__PURE__ */ o(
292
+ j,
291
293
  {
292
- className: `${c.amount} ${c["fiat-field"]}`,
294
+ className: `${c.amount} ${c["crypto-field"]}`,
293
295
  fullWidth: !0,
294
296
  children: [
295
297
  /* @__PURE__ */ e(
@@ -302,27 +304,28 @@ const gt = ({
302
304
  fullWidth: !0
303
305
  }
304
306
  ),
305
- /* @__PURE__ */ e(Re, { className: c["amount-symbol"], children: +((be = h == null ? void 0 : h.output_token) == null ? void 0 : be.fiat_amount) * 1 > 0 ? v + (+((ve = h == null ? void 0 : h.output_token) == null ? void 0 : ve.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(P, { children: " " }) })
307
+ /* @__PURE__ */ e(Se, { className: c["crypto-helper-text"], children: +((be = h == null ? void 0 : h.output_token) == null ? void 0 : be.fiat_amount) * 1 > 0 ? v + (+((ve = h == null ? void 0 : h.output_token) == null ? void 0 : ve.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(P, { children: " " }) })
306
308
  ]
307
309
  }
308
310
  ) }),
309
- /* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: f ? /* @__PURE__ */ e(E, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ a(
310
- D,
311
+ /* @__PURE__ */ e(i, { size: { xs: 5 }, className: "content-center", children: f ? /* @__PURE__ */ e(E, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ o(
312
+ j,
311
313
  {
312
314
  variant: "filled",
313
315
  className: `text-left ${c["crypto-picker"]}`,
314
316
  fullWidth: !0,
315
317
  children: [
316
- (o == null ? void 0 : o.network) && /* @__PURE__ */ e(
317
- Se,
318
+ (a == null ? void 0 : a.network) && /* @__PURE__ */ e(
319
+ Pe,
318
320
  {
319
- className: `${c["network-label"]} ${c[ot(o == null ? void 0 : o.network.name)]}`,
320
- children: o == null ? void 0 : o.network.name
321
+ className: `${c["network-label"]} ${c[st(a == null ? void 0 : a.network.name)]}`,
322
+ children: a == null ? void 0 : a.network.name
321
323
  }
322
324
  ),
323
- /* @__PURE__ */ a(
324
- ae,
325
+ /* @__PURE__ */ o(
326
+ oe,
325
327
  {
328
+ IconComponent: Re,
326
329
  input: /* @__PURE__ */ e(Q, { disableUnderline: !0 }),
327
330
  sx: {
328
331
  borderTopLeftRadius: 0,
@@ -345,7 +348,7 @@ const gt = ({
345
348
  },
346
349
  className: "buy-select-dd",
347
350
  variant: "filled",
348
- value: o.symbol,
351
+ value: a.symbol,
349
352
  displayEmpty: !0,
350
353
  onChange: (t) => Ne(t.target.value),
351
354
  onOpen: (t) => {
@@ -355,8 +358,8 @@ const gt = ({
355
358
  open: !1,
356
359
  children: [
357
360
  /* @__PURE__ */ e(Z, { value: "", children: "Please select" }),
358
- Y.map((t) => /* @__PURE__ */ a(Z, { value: t.symbol, children: [
359
- /* @__PURE__ */ e(Pe, { className: c["dropdown-list-item"], children: /* @__PURE__ */ e(
361
+ Y.map((t) => /* @__PURE__ */ o(Z, { value: t.symbol, children: [
362
+ /* @__PURE__ */ e(ze, { className: c["dropdown-list-item"], children: /* @__PURE__ */ e(
360
363
  "img",
361
364
  {
362
365
  src: t.icon_uri,
@@ -377,18 +380,18 @@ const gt = ({
377
380
  }
378
381
  ) })
379
382
  ] }),
380
- /* @__PURE__ */ e(F, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
381
- /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ a(
382
- ze,
383
+ /* @__PURE__ */ e(F, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ o(i, { container: !0, children: [
384
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ o(
385
+ Ie,
383
386
  {
384
387
  sx: { padding: "0" },
385
- onClick: () => Te((t) => !t),
388
+ onClick: () => $e((t) => !t),
386
389
  disableFocusRipple: !0,
387
390
  disableRipple: !0,
388
391
  children: [
389
392
  /* @__PURE__ */ e(s, { variant: "caption", fontWeight: 700, children: "Fee Calculation" }),
390
393
  /* @__PURE__ */ e(
391
- Ve,
394
+ He,
392
395
  {
393
396
  sx: {
394
397
  transform: `rotate(${fe ? "90" : "0"}deg)`,
@@ -399,9 +402,9 @@ const gt = ({
399
402
  ]
400
403
  }
401
404
  ) }),
402
- fe && /* @__PURE__ */ a(P, { children: [
405
+ fe && /* @__PURE__ */ o(P, { children: [
403
406
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Everest Fee" }) }),
404
- /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
407
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(s, { variant: "caption", children: [
405
408
  v,
406
409
  S ? /* @__PURE__ */ e(
407
410
  E,
@@ -413,7 +416,7 @@ const gt = ({
413
416
  ) : me.toFixed(2)
414
417
  ] }) }),
415
418
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Network Fee" }) }),
416
- /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
419
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(s, { variant: "caption", children: [
417
420
  v,
418
421
  S ? /* @__PURE__ */ e(
419
422
  E,
@@ -426,22 +429,22 @@ const gt = ({
426
429
  ] }) })
427
430
  ] }),
428
431
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
429
- /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
432
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(s, { variant: "caption", children: [
430
433
  v,
431
- S ? /* @__PURE__ */ e(E, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(Be).toFixed(2)
434
+ S ? /* @__PURE__ */ e(E, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(ke).toFixed(2)
432
435
  ] }) }),
433
- o && /* @__PURE__ */ a(P, { children: [
434
- /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
436
+ a && /* @__PURE__ */ o(P, { children: [
437
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ o(s, { variant: "caption", children: [
435
438
  "1 ",
436
- o.symbol,
439
+ a.symbol,
437
440
  " ",
438
441
  /* @__PURE__ */ e(
439
442
  at,
440
443
  {
441
- title: Je,
444
+ title: Qe,
442
445
  placement: "right",
443
- children: /* @__PURE__ */ e(ze, { className: "info-fee-icon", children: /* @__PURE__ */ e(
444
- He,
446
+ children: /* @__PURE__ */ e(Ie, { className: "info-fee-icon", children: /* @__PURE__ */ e(
447
+ Xe,
445
448
  {
446
449
  sx: {
447
450
  fontSize: "14px"
@@ -451,7 +454,7 @@ const gt = ({
451
454
  }
452
455
  )
453
456
  ] }) }),
454
- /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
457
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(s, { variant: "caption", children: [
455
458
  v,
456
459
  S ? /* @__PURE__ */ e(
457
460
  E,
@@ -460,14 +463,14 @@ const gt = ({
460
463
  size: 15,
461
464
  color: "primary"
462
465
  }
463
- ) : Number(We).toFixed(2)
466
+ ) : Number(Be).toFixed(2)
464
467
  ] }) })
465
468
  ] })
466
469
  ] }) }),
467
- /* @__PURE__ */ e(F, { sx: { alignItems: "left", width: "100%" }, children: re ? /* @__PURE__ */ e(F, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(E, {}) }) : /* @__PURE__ */ e(P, { children: /* @__PURE__ */ a(D, { variant: "filled", fullWidth: !0, children: [
468
- !b && /* @__PURE__ */ e(Se, { children: "Select wallet address" }),
470
+ /* @__PURE__ */ e(F, { sx: { alignItems: "left", width: "100%" }, children: re ? /* @__PURE__ */ e(F, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(E, {}) }) : /* @__PURE__ */ e(P, { children: /* @__PURE__ */ o(j, { variant: "filled", fullWidth: !0, children: [
471
+ !b && /* @__PURE__ */ e(Pe, { children: "Select wallet address" }),
469
472
  /* @__PURE__ */ e(
470
- ae,
473
+ oe,
471
474
  {
472
475
  value: b,
473
476
  onChange: (t) => I && I(t.target.value),
@@ -478,16 +481,16 @@ const gt = ({
478
481
  /* @__PURE__ */ e(F, { mt: 4, children: /* @__PURE__ */ e(
479
482
  ce,
480
483
  {
481
- onClick: De,
484
+ onClick: Ge,
482
485
  disabled: ie || !W,
483
486
  fullWidth: !0,
484
487
  children: /* @__PURE__ */ e("strong", { children: "Next" })
485
488
  }
486
489
  ) }),
487
490
  /* @__PURE__ */ e(
488
- xt,
491
+ _t,
489
492
  {
490
- open: Ke,
493
+ open: Ue,
491
494
  setModal: ge,
492
495
  loader: f,
493
496
  tokenList: Y,
@@ -495,22 +498,22 @@ const gt = ({
495
498
  }
496
499
  )
497
500
  ] });
498
- }, Nt = ({
501
+ }, bt = ({
499
502
  setScreen: A,
500
503
  partnerKey: x,
501
504
  orderData: M,
502
505
  dispatch: N,
503
506
  walletAddress: d
504
507
  }) => {
505
- const n = M.estimate[z], u = M.create.order_id, L = M.loader, b = n.fiat_amount, I = Oe(n.fiat_currency), [o, O] = m(!1);
508
+ const n = M.estimate[z], u = M.create.order_id, L = M.loader, b = n.fiat_amount, I = we(n.fiat_currency), [a, O] = m(!1);
506
509
  g(() => {
507
- u && o && A(bt);
510
+ u && a && A(vt);
508
511
  }, [u]), g(() => {
509
512
  p();
510
513
  }, []);
511
514
  const p = () => {
512
515
  N(
513
- Ie(
516
+ Oe(
514
517
  {
515
518
  apiKey: x,
516
519
  transaction_type: n.transaction_type,
@@ -527,27 +530,27 @@ const gt = ({
527
530
  );
528
531
  }, w = () => {
529
532
  N(
530
- nt({
533
+ rt({
531
534
  apiKey: x,
532
535
  quoteId: n.quote_id,
533
536
  walletAddress: d
534
537
  })
535
538
  ), O(!0);
536
539
  };
537
- return /* @__PURE__ */ a(P, { children: [
540
+ return /* @__PURE__ */ o(P, { children: [
538
541
  /* @__PURE__ */ e(
539
- st,
542
+ lt,
540
543
  {
541
- onClickHandler: () => A(we),
544
+ onClickHandler: () => A(We),
542
545
  backBtnText: "Confirm Your Order"
543
546
  }
544
547
  ),
545
548
  /* @__PURE__ */ e(s, { mt: 2, variant: "sm", fontWeight: 600, children: "Using payment method" }),
546
- n.payment_type && /* @__PURE__ */ a(F, { mt: 2, className: c["confirm-payment"], children: [
549
+ n.payment_type && /* @__PURE__ */ o(F, { mt: 2, className: c["confirm-payment"], children: [
547
550
  /* @__PURE__ */ e(
548
551
  "img",
549
552
  {
550
- src: n.payment_type === Ae ? Qe : Ze,
553
+ src: n.payment_type === Ae ? Ze : et,
551
554
  width: 100,
552
555
  alt: "payment"
553
556
  }
@@ -565,8 +568,8 @@ const gt = ({
565
568
  }
566
569
  ),
567
570
  /* @__PURE__ */ e(s, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
568
- /* @__PURE__ */ e(F, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
569
- /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
571
+ /* @__PURE__ */ e(F, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ o(i, { container: !0, children: [
572
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ o(s, { variant: "caption", children: [
570
573
  n.crypto_currency.toUpperCase(),
571
574
  " @",
572
575
  " ",
@@ -584,24 +587,24 @@ const gt = ({
584
587
  children: n.network
585
588
  }
586
589
  ) }),
587
- /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
590
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ o(s, { variant: "caption", children: [
588
591
  Number(n.crypto_out_amount).toFixed(5),
589
592
  " ",
590
593
  n.crypto_currency.toUpperCase()
591
594
  ] }) }),
592
- /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
595
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(s, { variant: "caption", children: [
593
596
  (Number(b) - Number(n.total_fee)).toFixed(2),
594
597
  " ",
595
598
  n.fiat_currency
596
599
  ] }) }),
597
600
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
598
- /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
601
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(s, { variant: "caption", children: [
599
602
  Number(n.total_fee).toFixed(2),
600
603
  " ",
601
604
  n.fiat_currency
602
605
  ] }) }),
603
606
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
604
- /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ a("strong", { children: [
607
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ o("strong", { children: [
605
608
  I,
606
609
  Number(b).toFixed(2),
607
610
  " ",
@@ -614,40 +617,40 @@ const gt = ({
614
617
  onClick: w,
615
618
  disabled: L,
616
619
  fullWidth: !0,
617
- children: /* @__PURE__ */ e("strong", { children: L ? /* @__PURE__ */ a(P, { children: [
620
+ children: /* @__PURE__ */ e("strong", { children: L ? /* @__PURE__ */ o(P, { children: [
618
621
  /* @__PURE__ */ e(E, { size: 15, color: "inherit" }),
619
622
  " Processing..."
620
623
  ] }) : "Payment Details" })
621
624
  }
622
625
  ) })
623
626
  ] });
624
- }, we = "FORM_SCREEN", le = "CONFIRM_SCREEN", bt = "PAYMENT_SCREEN", vt = "MINIMAL_KYC_SCREEN", Ct = ({ partnerKey: A, baseUrl: x, checkoutSdkKey: M }) => {
625
- const { showAlertMessage: N } = pt(), d = lt(), n = G((f) => f.order), u = n.error, b = G(
627
+ }, We = "FORM_SCREEN", le = "CONFIRM_SCREEN", vt = "PAYMENT_SCREEN", Ct = "MINIMAL_KYC_SCREEN", Et = ({ partnerKey: A, baseUrl: x, checkoutSdkKey: M }) => {
628
+ const { showAlertMessage: N } = ft(), d = ct(), n = G((f) => f.order), u = n.error, b = G(
626
629
  (f) => f.user.profile
627
- ).everWalletAddress, I = G((f) => f.fiatAssets), o = G(
630
+ ).everWalletAddress, I = G((f) => f.fiatAssets), a = G(
628
631
  (f) => f.cryptoAssets
629
- ), [O, p] = m(we), [w, y] = m({
632
+ ), [O, p] = m(We), [w, y] = m({
630
633
  symbol: ""
631
634
  }), [ee, V] = m(0), [te, H] = m(1), [ne, re] = m([]), [R, X] = m(b);
632
635
  return g(() => {
633
636
  u && N({ message: u });
634
637
  }, [u]), g(() => {
635
- n.initMinimalKyc && (N({ message: u, type: "info" }), p(vt));
636
- }, [n.initMinimalKyc]), g(() => (d(ct()), d(Me(se)), d(Me(oe)), d(dt()), () => {
637
- d(rt());
638
- }), []), /* @__PURE__ */ e(ft, { addPadding: !0, children: {
638
+ n.initMinimalKyc && (N({ message: u, type: "info" }), p(Ct));
639
+ }, [n.initMinimalKyc]), g(() => (d(mt()), d(Me(se)), d(Me(ae)), d(pt()), () => {
640
+ d(it());
641
+ }), []), /* @__PURE__ */ e(ut, { addPadding: !0, children: {
639
642
  FORM_SCREEN: /* @__PURE__ */ e(
640
- gt,
643
+ Nt,
641
644
  {
642
645
  showAlertMessage: N,
643
646
  setScreen: p,
644
647
  fiatAssets: I,
645
- cryptoAssets: o,
648
+ cryptoAssets: a,
646
649
  orderData: n,
647
650
  dispatch: d,
648
651
  getCryptoAssets: (f) => {
649
652
  d(
650
- mt({
653
+ dt({
651
654
  type: z,
652
655
  id: f,
653
656
  partnerKey: A,
@@ -669,7 +672,7 @@ const gt = ({
669
672
  }
670
673
  ),
671
674
  CONFIRM_SCREEN: /* @__PURE__ */ e(
672
- Nt,
675
+ bt,
673
676
  {
674
677
  partnerKey: A,
675
678
  setScreen: p,
@@ -680,7 +683,7 @@ const gt = ({
680
683
  }
681
684
  ),
682
685
  PAYMENT_SCREEN: /* @__PURE__ */ e(
683
- ut,
686
+ ht,
684
687
  {
685
688
  checkoutKey: M,
686
689
  orderData: n,
@@ -693,15 +696,15 @@ const gt = ({
693
696
  success_url: `${x}/dashboard?payment=success`,
694
697
  fail_url: `${x}/dashboard?payment=failed`
695
698
  };
696
- d(it(W));
699
+ d(ot(W));
697
700
  },
698
701
  backBtnFunc: () => p(le)
699
702
  }
700
703
  ),
701
704
  MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
702
- ht,
705
+ yt,
703
706
  {
704
- inputComponent: yt,
707
+ inputComponent: xt,
705
708
  buttonComponent: ce,
706
709
  onComplete: () => {
707
710
  p(le);
@@ -709,13 +712,13 @@ const gt = ({
709
712
  }
710
713
  )
711
714
  }[O] });
712
- }, ln = Ge(Ct);
715
+ }, mn = Ve(Et);
713
716
  export {
714
- gt as B,
717
+ Nt as B,
715
718
  le as C,
716
- we as F,
717
- vt as M,
718
- bt as P,
719
- Nt as a,
720
- ln as i
719
+ We as F,
720
+ Ct as M,
721
+ vt as P,
722
+ bt as a,
723
+ mn as i
721
724
  };