everest-npm-features 0.0.20 → 0.0.22

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 (81) hide show
  1. package/dist/{auth-CjrjTwt5.js → auth-CR0412E5.js} +1 -1
  2. package/dist/{bank-D3I5wL2-.js → bank-iFS1RXp-.js} +1 -1
  3. package/dist/components/RocketRamp/MinimalKyc/form.js +2 -2
  4. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
  5. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
  6. package/dist/components/RocketRamp/Player/Buy/form.js +3 -3
  7. package/dist/components/RocketRamp/Player/Buy/index.js +5 -5
  8. package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
  9. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
  10. package/dist/components/RocketRamp/Player/Sell/form.js +3 -3
  11. package/dist/components/RocketRamp/Player/Sell/index.js +5 -5
  12. package/dist/components/RocketRamp/Player/SignIn/index.js +2 -2
  13. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
  14. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
  15. package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
  16. package/dist/components/RocketRamp/Player/SignUp/index.js +2 -2
  17. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
  18. package/dist/components/RocketRamp/ResetPassword/index.js +2 -2
  19. package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
  20. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
  21. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
  22. package/dist/components/RocketRamp/Transactions/index.js +2 -2
  23. package/dist/components/Shared/FullKyc/index.js +3 -3
  24. package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
  25. package/dist/components/Shared/FullKyc/userInfo.js +3 -3
  26. package/dist/components/Shared/MinimalKyc/index.d.ts +2 -2
  27. package/dist/components/Shared/MinimalKyc/index.js +63 -55
  28. package/dist/components/Wallet/Account/iban.js +4 -4
  29. package/dist/components/Wallet/Account/index.js +4 -4
  30. package/dist/components/Wallet/Account/sendIban.js +2 -2
  31. package/dist/components/Wallet/Buy/confirmTransaction.js +3 -3
  32. package/dist/components/Wallet/Buy/form.js +3 -3
  33. package/dist/components/Wallet/Buy/index.js +6 -6
  34. package/dist/components/Wallet/Deposit/index.d.ts +4 -1
  35. package/dist/components/Wallet/Deposit/index.js +20 -19
  36. package/dist/components/Wallet/EnterpriseKyc/edd.js +1 -1
  37. package/dist/components/Wallet/EnterpriseKyc/index.js +3 -3
  38. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +26 -35
  39. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +2 -2
  40. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
  41. package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
  42. package/dist/components/Wallet/History/index.js +2 -2
  43. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +2 -2
  44. package/dist/components/Wallet/Portfolio/index.js +3 -3
  45. package/dist/components/Wallet/Profile/documents.js +2 -2
  46. package/dist/components/Wallet/Profile/index.d.ts +1 -0
  47. package/dist/components/Wallet/Profile/index.js +93 -78
  48. package/dist/components/Wallet/Receive/index.js +2 -2
  49. package/dist/components/Wallet/Sell/confirmTransaction.js +3 -3
  50. package/dist/components/Wallet/Sell/form.js +3 -3
  51. package/dist/components/Wallet/Sell/index.js +6 -6
  52. package/dist/components/Wallet/Send/index.js +2 -2
  53. package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
  54. package/dist/components/Wallet/Shared/addBank.js +2 -2
  55. package/dist/components/Wallet/Shared/connectPlaidBank.js +2 -2
  56. package/dist/components/Wallet/SignIn/index.js +2 -2
  57. package/dist/components/Wallet/SignUp/index.js +2 -2
  58. package/dist/components/Wallet/Stake/index.js +3 -3
  59. package/dist/components/Wallet/Swap/index.js +228 -213
  60. package/dist/components/Wallet/Withdraw/bankSelect.js +4 -4
  61. package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -3
  62. package/dist/components/Wallet/Withdraw/form.js +3 -3
  63. package/dist/components/Wallet/Withdraw/index.js +5 -5
  64. package/dist/{constants-CdVZO8DH.js → constants-BJByDTQY.js} +132 -131
  65. package/dist/{cryptoAssets-awZZ9HTs.js → cryptoAssets-BcVSdM1C.js} +1 -1
  66. package/dist/{documents-DvNPkuYe.js → documents-HjBKq9qA.js} +1 -1
  67. package/dist/{fiatAssets-yeCL6wA9.js → fiatAssets-C_F8qNzr.js} +1 -1
  68. package/dist/{iban-4bMHHpJO.js → iban-Dh7qBGGc.js} +3 -3
  69. package/dist/{index-86Hyynn-.js → index-B2OIoTNN.js} +98 -95
  70. package/dist/{index-CFWL7CoB.js → index-BEH1PkNC.js} +203 -200
  71. package/dist/{index-CTglGXWu.js → index-BFIhKqqi.js} +307 -294
  72. package/dist/{index-Dx7-MJk2.js → index-CQe8cwpc.js} +2 -2
  73. package/dist/{index-98VYd3cT.js → index-DSZxScyY.js} +188 -185
  74. package/dist/{index-SbY3kKNL.js → index-DkMQ44xy.js} +117 -111
  75. package/dist/{kyc-Dur3dRxq.js → kyc-DJpiKj5d.js} +1 -1
  76. package/dist/main.js +6 -6
  77. package/dist/order-DhUA-ZNX.js +43 -0
  78. package/dist/{stake-DaOB24Ou.js → stake-DWRuAE1u.js} +1 -1
  79. package/dist/{wallet-D76D_QSY.js → wallet-z7NHqtCj.js} +1 -1
  80. package/package.json +2 -2
  81. package/dist/order-DNSedxgT.js +0 -41
@@ -1,39 +1,39 @@
1
1
  import { jsxs as a, Fragment as P, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as c, useEffect as x } from "react";
3
- import De from "./hoc/withThemeProvider.js";
4
- import { P as Ge } from "./PlayArrow-1Y66tCVx.js";
5
- import { I as He } from "./Info-83BXSu73.js";
6
- import { G as be } from "./generic-token-B_ptO5yb.js";
7
- import { PAYMENT_PROVIDER_PAYSAFE as Xe, ID_TOKEN_SYMBOL as ve, FIAT_TO_EVER_ID as ee, FIAT_TO_TOKEN as te, ESTIMATE_TOOLTIP_TEXT as Je, VISA_PAYMENT as Qe, VISA_PAYMENT_ACTIVE as Ze, SEPA_PAYMENT as et, SEPA_PAYMENT_ACTIVE as tt, PAYMENT_BANK as Ce, SEPA_ICON as nt, VISA_ICON as rt } from "./util/constants.js";
8
- import { a9 as it } from "./constants-CdVZO8DH.js";
3
+ import Ge from "./hoc/withThemeProvider.js";
4
+ import { P as He } from "./PlayArrow-1Y66tCVx.js";
5
+ import { I as Xe } from "./Info-83BXSu73.js";
6
+ import { G as ve } from "./generic-token-B_ptO5yb.js";
7
+ import { PAYMENT_PROVIDER_PAYSAFE as Je, ID_TOKEN_SYMBOL as Ce, FIAT_TO_EVER_ID as te, FIAT_TO_TOKEN as ne, ESTIMATE_TOOLTIP_TEXT as Qe, VISA_PAYMENT as Ze, VISA_PAYMENT_ACTIVE as et, SEPA_PAYMENT as tt, SEPA_PAYMENT_ACTIVE as nt, PAYMENT_BANK as Ee, SEPA_ICON as rt, VISA_ICON as it } from "./util/constants.js";
8
+ import { a9 as S } from "./constants-BJByDTQY.js";
9
9
  import { u as ot } from "./index-f15o1nhn.js";
10
- import { a as at, b as Te, c as st, f as Ee, o as lt, g as ct } from "./order-DNSedxgT.js";
10
+ import { b as at, c as ke, d as st, a as Ae, o as lt, g as ct } from "./order-DhUA-ZNX.js";
11
11
  import { M as mt } from "./tooltip-CwdohO6q.js";
12
- import { getCurrencySymbol as ke, getNetworkBackGround as dt } from "./util/functions.js";
13
- import re from "./components/Wallet/Shared/appButton.js";
12
+ import { getCurrencySymbol as Pe, getNetworkBackGround as dt } from "./util/functions.js";
13
+ import ie from "./components/Wallet/Shared/appButton.js";
14
14
  import ut from "./components/Wallet/Shared/backBtn.js";
15
15
  import { s as m } from "./styles.module-BFHktEw2.js";
16
16
  import { T as s } from "./Typography-Ds4fpvK8.js";
17
17
  import { B as b } from "./Box-Be0E_-eR.js";
18
18
  import { G as i } from "./Grid2-DX2sucnU.js";
19
19
  import { C as I } from "./CircularProgress-fePUtoaj.js";
20
- import { u as D, a as pt } from "./react-redux-C7I9-1M6.js";
21
- import { f as ft } from "./fiatAssets-yeCL6wA9.js";
22
- import { f as ht } from "./cryptoAssets-awZZ9HTs.js";
23
- import { u as yt } from "./wallet-D76D_QSY.js";
20
+ import { u as G, a as pt } from "./react-redux-C7I9-1M6.js";
21
+ import { f as ft } from "./fiatAssets-C_F8qNzr.js";
22
+ import { f as ht } from "./cryptoAssets-BcVSdM1C.js";
23
+ import { u as yt } from "./wallet-z7NHqtCj.js";
24
24
  import { useSnackBarContext as xt } from "./context/snackBarContext.js";
25
25
  import { AuthContainer as _t } from "./components/Wallet/Shared/Container/index.js";
26
26
  import gt from "./components/Wallet/Shared/CardPayment/index.js";
27
27
  import Nt from "./components/Shared/MinimalKyc/index.js";
28
28
  import bt from "./components/Wallet/Shared/Input/index.js";
29
29
  import vt from "./components/Wallet/Shared/TokenModal/index.js";
30
- import { F as j } from "./FormControl-Cc-02KHW.js";
31
- import { F as X } from "./FilledInput-n9W_V8GV.js";
32
- import { F as Ae, I as Ie } from "./TextField-Cm9apaOp.js";
33
- import { S as Z } from "./Select-DpKw-a6h.js";
34
- import { M as J } from "./MenuItem-BkJ_C9Xs.js";
35
- import { L as Fe } from "./ListItemIcon-DIz-ZmJ0.js";
36
- import { I as Me } from "./IconButton-8B2ygvr4.js";
30
+ import { F as D } from "./FormControl-Cc-02KHW.js";
31
+ import { F as J } from "./FilledInput-n9W_V8GV.js";
32
+ import { F as Ie, I as Fe } from "./TextField-Cm9apaOp.js";
33
+ import { S as ee } from "./Select-DpKw-a6h.js";
34
+ import { M as Q } from "./MenuItem-BkJ_C9Xs.js";
35
+ import { L as Me } from "./ListItemIcon-DIz-ZmJ0.js";
36
+ import { I as Te } from "./IconButton-8B2ygvr4.js";
37
37
  const Ct = ({
38
38
  setScreen: F,
39
39
  orderData: h,
@@ -42,110 +42,113 @@ const Ct = ({
42
42
  cryptoAssets: d,
43
43
  getCryptoAssets: n,
44
44
  showAlertMessage: p,
45
- partnerKey: Y,
45
+ partnerKey: $,
46
46
  walletAddress: v,
47
- setWalletAddress: S
47
+ setWalletAddress: R
48
48
  }) => {
49
- var _e, ge;
50
- const R = D(ot), $ = R.data, { loader: C } = R, g = _.fiats, G = _.loader, L = d.featureTokens.buy.list, q = d.featureTokens.buy.default, u = d.loader, T = h.loader, f = h.estimate, z = f.crypto_out_amount, Se = f.conversion_price, Re = f.total_fee;
51
- let ie = 0, oe = 0;
52
- const ae = f.fee_breakdown;
53
- for (let t = 0; t < ae.length; t++) {
54
- const r = ae[t];
55
- r.name === "ev_fee" ? ie = Number(r.value) : r.name === "network_fee" && (oe = Number(r.value));
49
+ var ge, Ne;
50
+ const z = G(ot), L = z.data, { loader: C } = z, g = _.fiats, H = _.loader, q = d.featureTokens.buy.list, K = d.featureTokens.buy.default, u = d.loader, T = h.loader, f = h.estimate[S], O = f.crypto_out_amount, Re = f.conversion_price, ze = f.total_fee;
51
+ let oe = 0, ae = 0;
52
+ const se = f.fee_breakdown;
53
+ for (let t = 0; t < se.length; t++) {
54
+ const r = se[t];
55
+ r.name === "ev_fee" ? oe = Number(r.value) : r.name === "network_fee" && (ae = Number(r.value));
56
56
  }
57
- const [l, se] = c({
57
+ const [l, le] = c({
58
58
  symbol: ""
59
- }), [Q, K] = c(!1), [k, le] = c(0), [N, ze] = c(1), [ce, Oe] = c([]), [O, we] = c([]), [me, We] = c(!1), [de, Be] = c(50), [ue, Ye] = c(3e3), [U, $e] = c(50), [pe, Le] = c(3e3), [fe, V] = c(""), [w, he] = c(
60
- f.fiat_amount || U.toString()
61
- ), [qe, ye] = c(!1), W = g.find((t) => t.id === N), E = ke(W == null ? void 0 : W.symbol);
59
+ }), [Z, U] = c(!1), [k, ce] = c(0), [N, Oe] = c(1), [me, we] = c([]), [w, We] = c([]), [de, Be] = c(!1), [ue, Ye] = c(50), [pe, $e] = c(3e3), [V, Le] = c(50), [fe, qe] = c(3e3), [he, j] = c(""), [W, ye] = c(
60
+ f.fiat_amount || V.toString()
61
+ ), [Ke, xe] = c(!1), B = g.find((t) => t.id === N), E = Pe(B == null ? void 0 : B.symbol);
62
62
  x(() => {
63
63
  const t = [];
64
64
  for (let r = 0; r < g.length; r++) {
65
65
  const o = {}, y = g[r];
66
66
  o.id = y.id, o.name = y.name, o.icon_uri = y.icon_uri, o.symbol = y.symbol, o.payment_options = [];
67
67
  const A = y.payment_options;
68
- for (let B = 0; B < A.length; B++) {
69
- const Ne = {}, H = A[B];
70
- H.payment_provider !== Xe && H.active && H.payin_allowed && (Object.assign(Ne, H), o.payment_options.push(Ne));
68
+ for (let Y = 0; Y < A.length; Y++) {
69
+ const be = {}, X = A[Y];
70
+ X.payment_provider !== Je && X.active && X.payin_allowed && (Object.assign(be, X), o.payment_options.push(be));
71
71
  }
72
72
  o.payment_options.length > 0 && t.push(o);
73
73
  }
74
- we(t);
74
+ We(t);
75
75
  }, [g]), x(() => {
76
- if (!N || O.length === 0)
76
+ if (!N || w.length === 0)
77
77
  return;
78
78
  const t = [];
79
- for (let r = 0; r < O.length; r++) {
80
- if (O[r].id === N) {
81
- const o = O[r].payment_options;
79
+ for (let r = 0; r < w.length; r++) {
80
+ if (w[r].id === N) {
81
+ const o = w[r].payment_options;
82
82
  let y = !1;
83
83
  for (let A = 0; A < o.length; A++) {
84
- const B = o[A];
85
- B.active && (t.push(B), o[A].id === k && (y = !0));
84
+ const Y = o[A];
85
+ Y.active && (t.push(Y), o[A].id === k && (y = !0));
86
86
  }
87
- y || le(t[0].id);
87
+ y || ce(t[0].id);
88
88
  }
89
- Oe(t);
89
+ we(t);
90
90
  }
91
- }, [N, O]), x(() => {
92
- q && q.id && se(q);
93
- }, [q]), x(() => {
91
+ }, [N, w]), x(() => {
92
+ K && K.id && le(K);
93
+ }, [K]), x(() => {
94
94
  N && n && n(N);
95
95
  }, [N, v]), x(() => {
96
- if (l && l.id && w && k && N) {
97
- M(at()), K(!1), V("");
96
+ if (l && l.id && W && k && N) {
97
+ M(at(S)), U(!1), j("");
98
98
  const t = setTimeout(() => {
99
- Ke();
99
+ Ue();
100
100
  }, 1e3);
101
101
  return () => clearTimeout(t);
102
102
  }
103
- }, [l, w, k, L, N]);
104
- const Ke = () => {
103
+ }, [l, W, k, q, N]);
104
+ const Ue = () => {
105
105
  var y;
106
- const t = parseFloat(w);
107
- if (l.symbol === ve) {
108
- if (de > t)
109
- return V(
110
- `Minimum value should be greater than ${E + de}`
111
- ), K(!0), !1;
112
- if (ue * 1 < t)
113
- return V(
114
- `Maximum value should be less than ${E + ue}`
115
- ), K(!0), !1;
116
- } else {
117
- if (U * 1 > t)
118
- return V(
119
- `Minimum value should be greater than ${E + U}`
120
- ), K(!0), !1;
106
+ const t = parseFloat(W);
107
+ if (l.symbol === Ce) {
108
+ if (ue > t)
109
+ return j(
110
+ `Minimum value should be greater than ${E + ue}`
111
+ ), U(!0), !1;
121
112
  if (pe * 1 < t)
122
- return V(
113
+ return j(
123
114
  `Maximum value should be less than ${E + pe}`
124
- ), K(!0), !1;
115
+ ), U(!0), !1;
116
+ } else {
117
+ if (V * 1 > t)
118
+ return j(
119
+ `Minimum value should be greater than ${E + V}`
120
+ ), U(!0), !1;
121
+ if (fe * 1 < t)
122
+ return j(
123
+ `Maximum value should be less than ${E + fe}`
124
+ ), U(!0), !1;
125
125
  }
126
- const r = ce.find((A) => A.id === k), o = r.payment_type;
126
+ const r = me.find((A) => A.id === k), o = r.payment_type;
127
127
  M(
128
- Te({
129
- apiKey: Y,
130
- transaction_type: l.symbol === ve ? ee : te,
131
- coin_amount: w,
132
- exchange: l.exchange,
133
- payment_type: o,
134
- fiat_ccy: W == null ? void 0 : W.symbol,
135
- crypto_ccy: l.symbol,
136
- network: (y = l.network) == null ? void 0 : y.name,
137
- payment_provider: r.payment_provider
138
- })
128
+ ke(
129
+ {
130
+ apiKey: $,
131
+ transaction_type: l.symbol === Ce ? te : ne,
132
+ coin_amount: W,
133
+ exchange: l.exchange,
134
+ payment_type: o,
135
+ fiat_ccy: B == null ? void 0 : B.symbol,
136
+ crypto_ccy: l.symbol,
137
+ network: (y = l.network) == null ? void 0 : y.name,
138
+ payment_provider: r.payment_provider
139
+ },
140
+ S
141
+ )
139
142
  );
140
- }, Ue = ({ value: t, label: r }) => {
143
+ }, Ve = ({ value: t, label: r }) => {
141
144
  let o;
142
- if (r === "credit_debit_card" ? (o = Qe, k === t && (o = Ze)) : (o = et, k === t && (o = tt)), r)
145
+ if (r === "credit_debit_card" ? (o = Ze, k === t && (o = et)) : (o = tt, k === t && (o = nt)), r)
143
146
  return /* @__PURE__ */ e(
144
147
  b,
145
148
  {
146
149
  mt: 0.5,
147
150
  sx: { cursor: "pointer" },
148
- onClick: () => le(t * 1),
151
+ onClick: () => ce(t * 1),
149
152
  children: /* @__PURE__ */ e("img", { src: o, alt: "payment", width: "90%" })
150
153
  }
151
154
  );
@@ -155,80 +158,80 @@ const Ct = ({
155
158
  if (t > 0)
156
159
  for (let r = 0; r < t; r++) {
157
160
  const o = h.types[r];
158
- if (o.type === ee) {
159
- Be(parseFloat(o.min_deposit_amount)), Ye(parseFloat(o.max_deposit_amount));
161
+ if (o.type === te) {
162
+ Ye(parseFloat(o.min_deposit_amount)), $e(parseFloat(o.max_deposit_amount));
160
163
  break;
161
164
  }
162
- if (o.type === te) {
163
- $e(parseFloat(o.min_deposit_amount)), Le(parseFloat(o.max_deposit_amount));
165
+ if (o.type === ne) {
166
+ Le(parseFloat(o.min_deposit_amount)), qe(parseFloat(o.max_deposit_amount));
164
167
  break;
165
168
  }
166
169
  }
167
170
  }, [h.types]);
168
- const Ve = (t) => {
171
+ const je = (t) => {
169
172
  const r = t.target.value;
170
- r ? /^([0-9.]+)$/.test(r) && he(r) : he("");
171
- }, xe = (t) => {
172
- const r = L.find((o) => o.symbol === t);
173
- se(r);
174
- }, je = () => {
173
+ r ? /^([0-9.]+)$/.test(r) && ye(r) : ye("");
174
+ }, _e = (t) => {
175
+ const r = q.find((o) => o.symbol === t);
176
+ le(r);
177
+ }, De = () => {
175
178
  if (!l.id)
176
179
  return p({ message: "Please select token" }), !1;
177
180
  if (!k)
178
181
  return p({ message: "Please select payment method" }), !1;
179
- if (!w)
182
+ if (!W)
180
183
  return p({ message: "Please enter amount" }), !1;
181
184
  if (!v)
182
185
  return p({ message: "Please select wallet address" }), !1;
183
- if (!z)
186
+ if (!O)
184
187
  return p({
185
188
  message: "Please wait for the estimate to be calculated and then press next"
186
189
  }), !1;
187
- F(ne);
190
+ F(re);
188
191
  };
189
192
  return /* @__PURE__ */ a(P, { children: [
190
193
  /* @__PURE__ */ e(i, { container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ e(s, { className: m.label, variant: "caption", component: "p", children: "You Pay" }) }) }),
191
194
  /* @__PURE__ */ a(i, { mt: 0.5, spacing: 0, container: !0, children: [
192
195
  /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ a(
193
- j,
196
+ D,
194
197
  {
195
198
  variant: "filled",
196
199
  className: `${m.amount} ${m["fiat-field"]}`,
197
200
  fullWidth: !0,
198
201
  children: [
199
202
  /* @__PURE__ */ e(
200
- X,
203
+ J,
201
204
  {
202
- value: w,
203
- onChange: Ve,
205
+ value: W,
206
+ onChange: je,
204
207
  type: "text",
205
- placeholder: `${U > 0 ? "$" + U + " minimum value" : ""}`,
206
- error: Q,
208
+ placeholder: `${V > 0 ? "$" + V + " minimum value" : ""}`,
209
+ error: Z,
207
210
  disableUnderline: !0,
208
211
  required: !0,
209
212
  fullWidth: !0
210
213
  }
211
214
  ),
212
- /* @__PURE__ */ e(Ae, { className: m["amount-symbol"], children: " " })
215
+ /* @__PURE__ */ e(Ie, { className: m["amount-symbol"], children: " " })
213
216
  ]
214
217
  }
215
218
  ) }),
216
- /* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: G ? /* @__PURE__ */ e(
219
+ /* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: H ? /* @__PURE__ */ e(
217
220
  I,
218
221
  {
219
222
  sx: { ml: 1 },
220
223
  size: 30
221
224
  }
222
225
  ) : /* @__PURE__ */ e(
223
- j,
226
+ D,
224
227
  {
225
228
  variant: "filled",
226
229
  className: `text-left ${m["fiat-picker"]}`,
227
230
  fullWidth: !0,
228
231
  children: /* @__PURE__ */ e(
229
- Z,
232
+ ee,
230
233
  {
231
- input: /* @__PURE__ */ e(X, { disableUnderline: !0 }),
234
+ input: /* @__PURE__ */ e(J, { disableUnderline: !0 }),
232
235
  sx: {
233
236
  borderTopLeftRadius: 0,
234
237
  "&::before": {
@@ -251,15 +254,15 @@ const Ct = ({
251
254
  value: N,
252
255
  variant: "filled",
253
256
  displayEmpty: !0,
254
- onChange: (t) => ze(t.target.value),
255
- error: Q,
256
- children: O.map((t) => /* @__PURE__ */ a(J, { value: t.id, children: [
257
- /* @__PURE__ */ e(Fe, { className: m["dropdown-list-item"], children: /* @__PURE__ */ e(
257
+ onChange: (t) => Oe(t.target.value),
258
+ error: Z,
259
+ children: w.map((t) => /* @__PURE__ */ a(Q, { value: t.id, children: [
260
+ /* @__PURE__ */ e(Me, { className: m["dropdown-list-item"], children: /* @__PURE__ */ e(
258
261
  "img",
259
262
  {
260
263
  src: t.icon_uri,
261
264
  onError: ({ currentTarget: r }) => {
262
- r.onerror = null, r.src = be;
265
+ r.onerror = null, r.src = ve;
263
266
  },
264
267
  alt: "tokenImg",
265
268
  width: "40",
@@ -272,12 +275,12 @@ const Ct = ({
272
275
  )
273
276
  }
274
277
  ) }),
275
- fe && /* @__PURE__ */ e(s, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: fe }) })
278
+ he && /* @__PURE__ */ e(s, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: he }) })
276
279
  ] }),
277
280
  /* @__PURE__ */ a(b, { className: "text-left", mt: 3, children: [
278
281
  /* @__PURE__ */ e(s, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
279
- G ? /* @__PURE__ */ e(I, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(i, { mt: 0.5, container: !0, children: ce.map((t) => /* @__PURE__ */ e(i, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
280
- Ue,
282
+ H ? /* @__PURE__ */ e(I, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(i, { mt: 0.5, container: !0, children: me.map((t) => /* @__PURE__ */ e(i, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
283
+ Ve,
281
284
  {
282
285
  label: t.payment_type,
283
286
  value: t.id
@@ -287,43 +290,43 @@ const Ct = ({
287
290
  /* @__PURE__ */ e(i, { mt: 4, container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 4 }, children: /* @__PURE__ */ e(s, { className: m.label, variant: "caption", component: "p", children: "You Receive" }) }) }),
288
291
  /* @__PURE__ */ a(i, { mt: 0.5, container: !0, children: [
289
292
  /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ a(
290
- j,
293
+ D,
291
294
  {
292
295
  className: `${m.amount} ${m["fiat-field"]}`,
293
296
  fullWidth: !0,
294
297
  children: [
295
298
  /* @__PURE__ */ e(
296
- X,
299
+ J,
297
300
  {
298
301
  disableUnderline: !0,
299
- value: z && parseFloat((+z * 1).toFixed(5)),
302
+ value: O && parseFloat((+O * 1).toFixed(5)),
300
303
  type: "text",
301
304
  readOnly: !0,
302
305
  fullWidth: !0
303
306
  }
304
307
  ),
305
- /* @__PURE__ */ e(Ae, { className: m["amount-symbol"], children: +((_e = f == null ? void 0 : f.output_token) == null ? void 0 : _e.fiat_amount) * 1 > 0 ? E + (+((ge = f == null ? void 0 : f.output_token) == null ? void 0 : ge.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(P, { children: " " }) })
308
+ /* @__PURE__ */ e(Ie, { className: m["amount-symbol"], children: +((ge = f == null ? void 0 : f.output_token) == null ? void 0 : ge.fiat_amount) * 1 > 0 ? E + (+((Ne = f == null ? void 0 : f.output_token) == null ? void 0 : Ne.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(P, { children: " " }) })
306
309
  ]
307
310
  }
308
311
  ) }),
309
312
  /* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: u ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ a(
310
- j,
313
+ D,
311
314
  {
312
315
  variant: "filled",
313
316
  className: `text-left ${m["crypto-picker"]}`,
314
317
  fullWidth: !0,
315
318
  children: [
316
319
  (l == null ? void 0 : l.network) && /* @__PURE__ */ e(
317
- Ie,
320
+ Fe,
318
321
  {
319
322
  className: `${m["network-label"]} ${m[dt(l == null ? void 0 : l.network.name)]}`,
320
323
  children: l == null ? void 0 : l.network.name
321
324
  }
322
325
  ),
323
326
  /* @__PURE__ */ a(
324
- Z,
327
+ ee,
325
328
  {
326
- input: /* @__PURE__ */ e(X, { disableUnderline: !0 }),
329
+ input: /* @__PURE__ */ e(J, { disableUnderline: !0 }),
327
330
  sx: {
328
331
  borderTopLeftRadius: 0,
329
332
  "&::before": {
@@ -347,21 +350,21 @@ const Ct = ({
347
350
  variant: "filled",
348
351
  value: l.symbol,
349
352
  displayEmpty: !0,
350
- onChange: (t) => xe(t.target.value),
353
+ onChange: (t) => _e(t.target.value),
351
354
  onOpen: (t) => {
352
- ye(!0), t.preventDefault();
355
+ xe(!0), t.preventDefault();
353
356
  },
354
357
  defaultOpen: !1,
355
358
  open: !1,
356
359
  children: [
357
- /* @__PURE__ */ e(J, { value: "", children: "Please select" }),
358
- L.map((t) => /* @__PURE__ */ a(J, { value: t.symbol, children: [
359
- /* @__PURE__ */ e(Fe, { className: m["dropdown-list-item"], children: /* @__PURE__ */ e(
360
+ /* @__PURE__ */ e(Q, { value: "", children: "Please select" }),
361
+ q.map((t) => /* @__PURE__ */ a(Q, { value: t.symbol, children: [
362
+ /* @__PURE__ */ e(Me, { className: m["dropdown-list-item"], children: /* @__PURE__ */ e(
360
363
  "img",
361
364
  {
362
365
  src: t.icon_uri,
363
366
  onError: ({ currentTarget: r }) => {
364
- r.onerror = null, r.src = be;
367
+ r.onerror = null, r.src = ve;
365
368
  },
366
369
  alt: "tokenImg",
367
370
  width: "40",
@@ -379,19 +382,19 @@ const Ct = ({
379
382
  ] }),
380
383
  /* @__PURE__ */ e(b, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
381
384
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ a(
382
- Me,
385
+ Te,
383
386
  {
384
387
  sx: { padding: "0" },
385
- onClick: () => We((t) => !t),
388
+ onClick: () => Be((t) => !t),
386
389
  disableFocusRipple: !0,
387
390
  disableRipple: !0,
388
391
  children: [
389
392
  /* @__PURE__ */ e(s, { variant: "caption", fontWeight: 500, children: "Fee Calculation" }),
390
393
  /* @__PURE__ */ e(
391
- Ge,
394
+ He,
392
395
  {
393
396
  sx: {
394
- transform: `rotate(${me ? "90" : "0"}deg)`,
397
+ transform: `rotate(${de ? "90" : "0"}deg)`,
395
398
  fontSize: "15px"
396
399
  }
397
400
  }
@@ -399,11 +402,11 @@ const Ct = ({
399
402
  ]
400
403
  }
401
404
  ) }),
402
- me && /* @__PURE__ */ a(P, { children: [
405
+ de && /* @__PURE__ */ a(P, { children: [
403
406
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Everest Fee" }) }),
404
407
  /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
405
408
  E,
406
- T ? /* @__PURE__ */ e(I, { size: 30, color: "primary" }) : ie.toFixed(2)
409
+ T ? /* @__PURE__ */ e(I, { size: 30, color: "primary" }) : oe.toFixed(2)
407
410
  ] }) }),
408
411
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Network Fee" }) }),
409
412
  /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
@@ -415,13 +418,13 @@ const Ct = ({
415
418
  size: 15,
416
419
  color: "primary"
417
420
  }
418
- ) : oe.toFixed(2)
421
+ ) : ae.toFixed(2)
419
422
  ] }) })
420
423
  ] }),
421
424
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
422
425
  /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
423
426
  E,
424
- T ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(Re).toFixed(2)
427
+ T ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(ze).toFixed(2)
425
428
  ] }) }),
426
429
  l && /* @__PURE__ */ a(P, { children: [
427
430
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
@@ -431,10 +434,10 @@ const Ct = ({
431
434
  /* @__PURE__ */ e(
432
435
  mt,
433
436
  {
434
- title: Je,
437
+ title: Qe,
435
438
  placement: "right",
436
- children: /* @__PURE__ */ e(Me, { className: "info-fee-icon", children: /* @__PURE__ */ e(
437
- He,
439
+ children: /* @__PURE__ */ e(Te, { className: "info-fee-icon", children: /* @__PURE__ */ e(
440
+ Xe,
438
441
  {
439
442
  sx: {
440
443
  fontSize: "14px"
@@ -453,26 +456,26 @@ const Ct = ({
453
456
  size: 15,
454
457
  color: "primary"
455
458
  }
456
- ) : Number(Se).toFixed(2)
459
+ ) : Number(Re).toFixed(2)
457
460
  ] }) })
458
461
  ] })
459
462
  ] }) }),
460
- /* @__PURE__ */ e(b, { sx: { alignItems: "left", width: "100%" }, children: C ? /* @__PURE__ */ e(b, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(I, {}) }) : /* @__PURE__ */ e(P, { children: /* @__PURE__ */ a(j, { variant: "filled", fullWidth: !0, children: [
461
- !v && /* @__PURE__ */ e(Ie, { children: "Select wallet address" }),
463
+ /* @__PURE__ */ e(b, { sx: { alignItems: "left", width: "100%" }, children: C ? /* @__PURE__ */ e(b, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(I, {}) }) : /* @__PURE__ */ e(P, { children: /* @__PURE__ */ a(D, { variant: "filled", fullWidth: !0, children: [
464
+ !v && /* @__PURE__ */ e(Fe, { children: "Select wallet address" }),
462
465
  /* @__PURE__ */ e(
463
- Z,
466
+ ee,
464
467
  {
465
468
  value: v,
466
- onChange: (t) => S && S(t.target.value),
467
- children: $.map((t, r) => /* @__PURE__ */ e(J, { value: t.address, children: t.name + "(" + t.address + ")" }, r))
469
+ onChange: (t) => R && R(t.target.value),
470
+ children: L.map((t, r) => /* @__PURE__ */ e(Q, { value: t.address, children: t.name + "(" + t.address + ")" }, r))
468
471
  }
469
472
  )
470
473
  ] }) }) }),
471
474
  /* @__PURE__ */ e(b, { mt: 4, children: /* @__PURE__ */ e(
472
- re,
475
+ ie,
473
476
  {
474
- onClick: je,
475
- disabled: Q || !z,
477
+ onClick: De,
478
+ disabled: Z || !O,
476
479
  fullWidth: !0,
477
480
  children: /* @__PURE__ */ e("strong", { children: "Next" })
478
481
  }
@@ -480,11 +483,11 @@ const Ct = ({
480
483
  /* @__PURE__ */ e(
481
484
  vt,
482
485
  {
483
- open: qe,
484
- setModal: ye,
486
+ open: Ke,
487
+ setModal: xe,
485
488
  loader: u,
486
- tokenList: L,
487
- tokenSelect: xe
489
+ tokenList: q,
490
+ tokenSelect: _e
488
491
  }
489
492
  )
490
493
  ] });
@@ -495,15 +498,15 @@ const Ct = ({
495
498
  dispatch: _,
496
499
  walletAddress: d
497
500
  }) => {
498
- const n = M.estimate, p = M.create.order_id, Y = M.loader, v = n.fiat_amount, S = ke(n.fiat_currency), [R, $] = c(!1);
501
+ const n = M.estimate[S], p = M.create.order_id, $ = M.loader, v = n.fiat_amount, R = Pe(n.fiat_currency), [z, L] = c(!1);
499
502
  x(() => {
500
- p && R && F(At);
503
+ p && z && F(At);
501
504
  }, [p]), x(() => {
502
505
  C();
503
506
  }, []);
504
507
  const C = () => {
505
508
  _(
506
- Te({
509
+ ke({
507
510
  apiKey: h,
508
511
  transaction_type: n.transaction_type,
509
512
  coin_amount: n.fiat_amount,
@@ -513,7 +516,7 @@ const Ct = ({
513
516
  crypto_ccy: n.crypto_currency,
514
517
  network: n.network,
515
518
  payment_provider: n.payment_provider
516
- })
519
+ }, S)
517
520
  );
518
521
  }, g = () => {
519
522
  _(
@@ -522,13 +525,13 @@ const Ct = ({
522
525
  quoteId: n.quote_id,
523
526
  walletAddress: d
524
527
  })
525
- ), $(!0);
528
+ ), L(!0);
526
529
  };
527
530
  return /* @__PURE__ */ a(P, { children: [
528
531
  /* @__PURE__ */ e(
529
532
  ut,
530
533
  {
531
- onClickHandler: () => F(Pe),
534
+ onClickHandler: () => F(Se),
532
535
  backBtnText: "Confirm Your Order"
533
536
  }
534
537
  ),
@@ -537,12 +540,12 @@ const Ct = ({
537
540
  /* @__PURE__ */ e(
538
541
  "img",
539
542
  {
540
- src: n.payment_type === Ce ? nt : rt,
543
+ src: n.payment_type === Ee ? rt : it,
541
544
  width: 100,
542
545
  alt: "payment"
543
546
  }
544
547
  ),
545
- /* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: n.payment_type === Ce ? "Bank Account" : "Debit Card" }) })
548
+ /* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: n.payment_type === Ee ? "Bank Account" : "Debit Card" }) })
546
549
  ] }),
547
550
  /* @__PURE__ */ e(s, { mt: 4, variant: "sm", fontWeight: 600, children: "To Wallet Address" }),
548
551
  /* @__PURE__ */ e(
@@ -592,36 +595,36 @@ const Ct = ({
592
595
  ] }) }),
593
596
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
594
597
  /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ a("strong", { children: [
595
- S,
598
+ R,
596
599
  Number(v).toFixed(2),
597
600
  " ",
598
601
  n.fiat_currency
599
602
  ] }) }) })
600
603
  ] }) }),
601
604
  /* @__PURE__ */ e(b, { mt: 4, children: /* @__PURE__ */ e(
602
- re,
605
+ ie,
603
606
  {
604
607
  onClick: g,
605
- disabled: Y,
608
+ disabled: $,
606
609
  fullWidth: !0,
607
- children: /* @__PURE__ */ e("strong", { children: Y ? /* @__PURE__ */ a(P, { children: [
610
+ children: /* @__PURE__ */ e("strong", { children: $ ? /* @__PURE__ */ a(P, { children: [
608
611
  /* @__PURE__ */ e(I, { size: 15, color: "inherit" }),
609
612
  " Processing..."
610
613
  ] }) : "Payment Details" })
611
614
  }
612
615
  ) })
613
616
  ] });
614
- }, Pe = "FORM_SCREEN", ne = "CONFIRM_SCREEN", At = "PAYMENT_SCREEN", It = "MINIMAL_KYC_SCREEN", Ft = ({ partnerKey: F, baseUrl: h, checkoutSdkKey: M }) => {
615
- const { showAlertMessage: _ } = xt(), d = pt(), n = D((u) => u.order), p = n.error, v = D(
617
+ }, Se = "FORM_SCREEN", re = "CONFIRM_SCREEN", At = "PAYMENT_SCREEN", It = "MINIMAL_KYC_SCREEN", Ft = ({ partnerKey: F, baseUrl: h, checkoutSdkKey: M }) => {
618
+ const { showAlertMessage: _ } = xt(), d = pt(), n = G((u) => u.order), p = n.error, v = G(
616
619
  (u) => u.user.profile
617
- ).everWalletAddress, S = D((u) => u.fiatAssets), R = D(
620
+ ).everWalletAddress, R = G((u) => u.fiatAssets), z = G(
618
621
  (u) => u.cryptoAssets
619
- ), [$, C] = c(Pe), [g, G] = c(v);
622
+ ), [L, C] = c(Se), [g, H] = c(v);
620
623
  return x(() => {
621
624
  p && _({ message: p });
622
625
  }, [p]), x(() => {
623
626
  n.initMinimalKyc && (_({ message: p, type: "info" }), C(It));
624
- }, [n.initMinimalKyc]), x(() => (d(ft()), d(Ee(te)), d(Ee(ee)), d(yt()), () => {
627
+ }, [n.initMinimalKyc]), x(() => (d(ft()), d(Ae(ne)), d(Ae(te)), d(yt()), () => {
625
628
  d(lt());
626
629
  }), []), /* @__PURE__ */ e(_t, { addPadding: !0, children: {
627
630
  FORM_SCREEN: /* @__PURE__ */ e(
@@ -629,14 +632,14 @@ const Ct = ({
629
632
  {
630
633
  showAlertMessage: _,
631
634
  setScreen: C,
632
- fiatAssets: S,
633
- cryptoAssets: R,
635
+ fiatAssets: R,
636
+ cryptoAssets: z,
634
637
  orderData: n,
635
638
  dispatch: d,
636
639
  getCryptoAssets: (u) => {
637
640
  d(
638
641
  ht({
639
- type: it,
642
+ type: S,
640
643
  id: u,
641
644
  partnerKey: F,
642
645
  walletAddress: g
@@ -645,7 +648,7 @@ const Ct = ({
645
648
  },
646
649
  partnerKey: F,
647
650
  walletAddress: g,
648
- setWalletAddress: G
651
+ setWalletAddress: H
649
652
  }
650
653
  ),
651
654
  CONFIRM_SCREEN: /* @__PURE__ */ e(
@@ -665,7 +668,7 @@ const Ct = ({
665
668
  checkoutKey: M,
666
669
  orderData: n,
667
670
  initPaymentRequest: (u) => {
668
- const T = n.estimate, f = n.create.order_id, z = {
671
+ const T = n.estimate[S], f = n.create.order_id, O = {
669
672
  token: u,
670
673
  amount: Number(T.fiat_amount),
671
674
  currency: T.fiat_currency,
@@ -673,27 +676,27 @@ const Ct = ({
673
676
  success_url: `${h}/dashboard?payment=success`,
674
677
  fail_url: `${h}/dashboard?payment=failed`
675
678
  };
676
- d(ct(z));
679
+ d(ct(O));
677
680
  },
678
- backBtnFunc: () => C(ne)
681
+ backBtnFunc: () => C(re)
679
682
  }
680
683
  ),
681
684
  MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
682
685
  Nt,
683
686
  {
684
687
  inputComponent: bt,
685
- buttonComponent: re,
688
+ buttonComponent: ie,
686
689
  onComplete: () => {
687
- C(ne);
690
+ C(re);
688
691
  }
689
692
  }
690
693
  )
691
- }[$] });
692
- }, dn = De(Ft);
694
+ }[L] });
695
+ }, dn = Ge(Ft);
693
696
  export {
694
697
  Ct as B,
695
- ne as C,
696
- Pe as F,
698
+ re as C,
699
+ Se as F,
697
700
  It as M,
698
701
  At as P,
699
702
  Et as a,