everest-npm-features 0.0.21 → 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-DHrWPN34.js → index-BFIhKqqi.js} +152 -142
  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,25 +1,25 @@
1
- import { jsxs as a, jsx as e, Fragment as x } from "react/jsx-runtime";
2
- import { useRef as Re, useState as u, useEffect as v } from "react";
3
- import { u as P, a as Ee } from "../../../react-redux-C7I9-1M6.js";
4
- import { P as Le } from "../../../PlayArrow-1Y66tCVx.js";
5
- import { I as We } from "../../../Info-83BXSu73.js";
6
- import { G as $e } from "../../../generic-token-B_ptO5yb.js";
7
- import { getCentralLedgetNetwork as B, getNetworkBackGround as le, getCurrencySymbol as Pe } from "../../../util/functions.js";
8
- import ce from "../Shared/TokenModal/index.js";
9
- import { formatNumberWithoutRounding as me } from "../../../util/conversions.js";
10
- import { F as Be } from "../../../constants-CdVZO8DH.js";
11
- import { u as De } from "../../../index-f15o1nhn.js";
12
- import { f as ze, a as Ue, b as qe } from "../../../cryptoAssets-awZZ9HTs.js";
13
- import { u as Ge } from "../../../wallet-D76D_QSY.js";
14
- import { o as D, a as Ye, b as je, c as He } from "../../../order-DNSedxgT.js";
15
- import { DIALOG_SUCCESS_ICON as Ke, TOKEN_TO_TOKEN as Xe, ARROW_ICON as Ve, ESTIMATE_TOOLTIP_TEXT as Je } from "../../../util/constants.js";
16
- import { M as Qe } from "../../../tooltip-CwdohO6q.js";
17
- import Ze from "../../../hoc/withThemeProvider.js";
1
+ import { jsxs as a, jsx as e, Fragment as b } from "react/jsx-runtime";
2
+ import { useRef as $e, useState as u, useEffect as y } from "react";
3
+ import { u as B, a as Pe } from "../../../react-redux-C7I9-1M6.js";
4
+ import { P as Be } from "../../../PlayArrow-1Y66tCVx.js";
5
+ import { I as De } from "../../../Info-83BXSu73.js";
6
+ import { G as ze } from "../../../generic-token-B_ptO5yb.js";
7
+ import { getCentralLedgetNetwork as D, getNetworkBackGround as me, getCurrencySymbol as Ue } from "../../../util/functions.js";
8
+ import de from "../Shared/TokenModal/index.js";
9
+ import { formatNumberWithoutRounding as ue } from "../../../util/conversions.js";
10
+ import { F as A } from "../../../constants-BJByDTQY.js";
11
+ import { u as qe } from "../../../index-f15o1nhn.js";
12
+ import { f as Ge, a as Ye, b as je } from "../../../cryptoAssets-BcVSdM1C.js";
13
+ import { u as He } from "../../../wallet-z7NHqtCj.js";
14
+ import { o as z, a as Ke, b as Xe, c as Ve, d as Je } from "../../../order-DhUA-ZNX.js";
15
+ import { DIALOG_SUCCESS_ICON as Qe, TOKEN_TO_TOKEN as U, ARROW_ICON as Ze, ESTIMATE_TOOLTIP_TEXT as et } from "../../../util/constants.js";
16
+ import { M as tt } from "../../../tooltip-CwdohO6q.js";
17
+ import rt from "../../../hoc/withThemeProvider.js";
18
18
  import "../Shared/appButton.js";
19
19
  import "../Shared/Auth/otpForm.js";
20
- import { AuthContainer as et } from "../Shared/Container/index.js";
21
- import { useSnackBarContext as tt } from "../../../context/snackBarContext.js";
22
- import { useDialog as rt } from "../../../hooks/useDialog/index.js";
20
+ import { AuthContainer as ot } from "../Shared/Container/index.js";
21
+ import { useSnackBarContext as at } from "../../../context/snackBarContext.js";
22
+ import { useDialog as nt } from "../../../hooks/useDialog/index.js";
23
23
  import "../../../index-CAoLi5Qq.js";
24
24
  import "../../../react-webcam-B3cXh1XT.js";
25
25
  import "../../Shared/transition.js";
@@ -29,154 +29,169 @@ import "../../../index.esm-BsMAMhYW.js";
29
29
  import "../../../web3-u4qDZYpo.js";
30
30
  import "../../../index-B8QKlEgj.js";
31
31
  import "../../../index-ceeCtFuh.js";
32
- import { s } from "../../../styles.module-BFHktEw2.js";
33
- import { B as y } from "../../../Box-Be0E_-eR.js";
32
+ import { s as i } from "../../../styles.module-BFHktEw2.js";
33
+ import { B as N } from "../../../Box-Be0E_-eR.js";
34
34
  import { G as n } from "../../../Grid-BaaKMDwM.js";
35
35
  import { T as l } from "../../../Typography-Ds4fpvK8.js";
36
- import { F as N } from "../../../FormControl-Cc-02KHW.js";
37
- import { F as A } from "../../../FilledInput-n9W_V8GV.js";
38
- import { F as de, I as z } from "../../../TextField-Cm9apaOp.js";
39
- import { C as f } from "../../../CircularProgress-fePUtoaj.js";
40
- import { S as U } from "../../../Select-DpKw-a6h.js";
41
- import { M as g } from "../../../MenuItem-BkJ_C9Xs.js";
42
- import { L as ue } from "../../../ListItemIcon-DIz-ZmJ0.js";
43
- import { I as pe } from "../../../IconButton-8B2ygvr4.js";
44
- import { B as ot } from "../../../Button-DCBtFwk3.js";
45
- const at = ({ partnerKey: I, navigate: q }) => {
46
- var se, ie;
47
- const G = Re(null), { openDialog: fe, ConfirmDialog: he } = rt(), { showAlertMessage: m } = tt(), k = P((t) => t.order), b = P(
36
+ import { F as _ } from "../../../FormControl-Cc-02KHW.js";
37
+ import { F as I } from "../../../FilledInput-n9W_V8GV.js";
38
+ import { F as pe, I as q } from "../../../TextField-Cm9apaOp.js";
39
+ import { C as h } from "../../../CircularProgress-fePUtoaj.js";
40
+ import { S as G } from "../../../Select-DpKw-a6h.js";
41
+ import { M as w } from "../../../MenuItem-BkJ_C9Xs.js";
42
+ import { L as fe } from "../../../ListItemIcon-DIz-ZmJ0.js";
43
+ import { I as he } from "../../../IconButton-8B2ygvr4.js";
44
+ import { B as st } from "../../../Button-DCBtFwk3.js";
45
+ const it = ({ partnerKey: M, navigate: Y }) => {
46
+ var le, ce;
47
+ const j = $e(null), { openDialog: xe, ConfirmDialog: ge } = nt(), { showAlertMessage: d } = at(), x = B((t) => t.order), v = B(
48
48
  (t) => t.cryptoAssets
49
- ), Y = P(De), xe = Y.data, { loader: ge } = Y, M = b.featureTokens.swap.inputList, r = b.featureTokens.swap.inputDefault, w = b.featureTokens.swap.outputList, o = b.featureTokens.swap.outputDefault, _ = b.loader, O = k.error, j = k.create.order_id, S = k.loader, c = k.estimate, C = c.output_token.amount, H = c.conversion_price, be = c.total_fee, F = Number((se = c == null ? void 0 : c.input_token) == null ? void 0 : se.fiat_amount), K = Number((ie = c == null ? void 0 : c.output_token) == null ? void 0 : ie.fiat_amount);
50
- let X = 0, V = 0;
51
- const J = c.fee_breakdown;
52
- for (let t = 0; t < J.length; t++) {
53
- const i = J[t];
54
- i.name === "ev_fee" ? X = Number(i.value) : i.name === "network_fee" && (V = Number(i.value));
49
+ ), H = B(qe), be = H.data, { loader: ye } = H, O = v.featureTokens.swap.inputList, r = v.featureTokens.swap.inputDefault, k = v.featureTokens.swap.outputList, o = v.featureTokens.swap.outputDefault, S = v.loader, R = x.error, K = x.create.order_id, F = x.loader, c = x.estimate[A], C = c.output_token.amount, X = c.conversion_price, we = c.total_fee, T = Number((le = c == null ? void 0 : c.input_token) == null ? void 0 : le.fiat_amount), V = Number((ce = c == null ? void 0 : c.output_token) == null ? void 0 : ce.fiat_amount);
50
+ let J = 0, Q = 0;
51
+ const Z = c.fee_breakdown;
52
+ for (let t = 0; t < Z.length; t++) {
53
+ const s = Z[t];
54
+ s.name === "ev_fee" ? J = Number(s.value) : s.name === "network_fee" && (Q = Number(s.value));
55
55
  }
56
- const [h, R] = u("50"), [E, we] = u(!1), [ve, Q] = u(!1), [ye, Z] = u(!1), [ee, Ne] = u(!1), [L, te] = u(!1), [p, ke] = u(""), [W, nt] = u(50), [_e, st] = u(1e4), [re, Se] = u(""), Ce = /^([0-9]*(\,|\.)[0-9]+|[0-9]+)$/, $ = Pe("USD"), d = Ee(), Fe = (t) => {
57
- d(Ue(t));
58
- }, oe = (t) => {
59
- d(qe(t));
56
+ const [g, E] = u("0.05"), [L, ve] = u(!1), [ke, ee] = u(!1), [Ne, te] = u(!1), [re, _e] = u(!1), [W, oe] = u(!1), [p, Se] = u(""), [$, Fe] = u(50), [Ce, Te] = u(1e4), [ae, Ae] = u(""), Ie = /^([0-9]*(\,|\.)[0-9]+|[0-9]+)$/, P = Ue("USD"), m = Pe(), Me = (t) => {
57
+ m(Ye(t));
58
+ }, ne = (t) => {
59
+ m(je(t));
60
60
  };
61
- v(() => {
62
- j && L && fe({
63
- icon: Ke,
61
+ y(() => {
62
+ K && W && xe({
63
+ icon: Qe,
64
64
  title: "Swap Success",
65
65
  message: "Your transaction was successful for more details on the transaction, please view your transaction history.",
66
66
  cancelButtonText: "Swap again",
67
67
  onCancel: () => {
68
- d(D()), te(!1);
68
+ m(z()), oe(!1);
69
69
  },
70
70
  confirmButtonText: "Track Order",
71
71
  onConfirm: () => {
72
- q && q("/history"), d(D());
72
+ Y && Y("/history"), m(z());
73
73
  },
74
74
  height: "490px"
75
75
  });
76
- }, [j]), v(() => {
77
- const t = G.current;
78
- (t == null ? void 0 : t.id) === r.id && (t == null ? void 0 : t.wallet) === p || (G.current = { id: r.id, wallet: p }, d(
79
- ze({
80
- type: Be,
76
+ }, [K]), y(() => {
77
+ const t = j.current;
78
+ (t == null ? void 0 : t.id) === r.id && (t == null ? void 0 : t.wallet) === p || (j.current = { id: r.id, wallet: p }, m(
79
+ Ge({
80
+ type: A,
81
81
  id: r.id,
82
82
  walletAddress: p,
83
- partnerKey: I
83
+ partnerKey: M
84
84
  })
85
85
  ));
86
- }, [r.id, p]), v(() => (d(Ge()), () => {
87
- d(D());
88
- }), []), v(() => {
89
- O && m({ message: O });
90
- }, [O]), v(() => {
91
- if (o && o.id && h) {
92
- d(Ye()), we(!1), Se("");
86
+ }, [r.id, p]), y(() => (m(He()), m(Ke(U)), () => {
87
+ m(z());
88
+ }), []), y(() => {
89
+ const t = x.types.length;
90
+ if (t > 0)
91
+ for (let s = 0; s < t; s++) {
92
+ const f = x.types[s];
93
+ if (f.type === U) {
94
+ Fe(parseFloat(f.min_deposit_amount)), Te(parseFloat(f.max_deposit_amount));
95
+ break;
96
+ }
97
+ }
98
+ }, [x.types]), y(() => {
99
+ R && d({ message: R });
100
+ }, [R]), y(() => {
101
+ if (o && o.id && g) {
102
+ m(Xe(A)), ve(!1), Ae("");
93
103
  const t = setTimeout(() => {
94
- Te();
104
+ Oe();
95
105
  }, 1e3);
96
106
  return () => clearTimeout(t);
97
107
  }
98
- }, [h, r, o]);
99
- const Te = () => {
100
- r.network && o && o.network && d(
101
- je({
102
- apiKey: I,
103
- transaction_type: Xe,
104
- coin_amount: h,
105
- input_token: r.symbol,
106
- input_token_network: B(r.network.name),
107
- exchange: r.exchange,
108
- output_token: o.symbol,
109
- output_token_network: B(
110
- o.network.name
111
- ),
112
- output_exchange: o.exchange
113
- })
108
+ }, [g, r, o]);
109
+ const Oe = () => {
110
+ r.network && o && o.network && m(
111
+ Ve(
112
+ {
113
+ apiKey: M,
114
+ transaction_type: U,
115
+ coin_amount: g,
116
+ input_token: r.symbol,
117
+ input_token_network: D(
118
+ r.network.name
119
+ ),
120
+ exchange: r.exchange,
121
+ output_token: o.symbol,
122
+ output_token_network: D(
123
+ o.network.name
124
+ ),
125
+ output_exchange: o.exchange
126
+ },
127
+ A
128
+ )
114
129
  );
115
- }, Ae = (t) => {
116
- ke(t);
117
- }, Ie = (t) => {
118
- const i = t.target.value;
119
- i ? /^([0-9.]+)$/.test(i) && R(me(i, 8)) : R("");
120
- }, ae = (t) => {
121
- if (w) {
122
- const i = w.find((T) => T.symbol === t);
123
- oe(i);
130
+ }, Re = (t) => {
131
+ Se(t);
132
+ }, Ee = (t) => {
133
+ const s = t.target.value;
134
+ s ? /^([0-9.]+)$/.test(s) && E(ue(s, 8)) : E("");
135
+ }, se = (t) => {
136
+ if (k) {
137
+ const s = k.find((f) => f.symbol === t);
138
+ ne(s);
124
139
  }
125
- }, ne = (t) => {
126
- oe({ symbol: "" });
127
- const i = M.find((T) => T.symbol === t);
128
- Fe(i);
129
- }, Me = () => {
140
+ }, ie = (t) => {
141
+ ne({ symbol: "" });
142
+ const s = O.find((f) => f.symbol === t);
143
+ Me(s);
144
+ }, Le = () => {
130
145
  if (!r)
131
- return m({
146
+ return d({
132
147
  message: "Please select token you want to swap"
133
148
  }), !1;
134
149
  if (!o)
135
- return m({
150
+ return d({
136
151
  message: "Please select token you want to receive"
137
152
  }), !1;
138
- if (!h)
139
- return m({ message: "Please enter amount" }), !1;
153
+ if (!g)
154
+ return d({ message: "Please enter amount" }), !1;
140
155
  if (!p)
141
- return m({ message: "Please select/enter wallet address" }), !1;
142
- if (!Ce.test(h))
143
- return m({ message: "Please provide a valid amount" }), !1;
156
+ return d({ message: "Please select/enter wallet address" }), !1;
157
+ if (!Ie.test(g))
158
+ return d({ message: "Please provide a valid amount" }), !1;
144
159
  if (!C)
145
- return m({
160
+ return d({
146
161
  message: "Please wait for the estimate to be calculated and then press next"
147
162
  }), !1;
148
- if (r.fmt_balance && h > r.fmt_balance)
149
- return m({
163
+ if (r.fmt_balance && g > r.fmt_balance)
164
+ return d({
150
165
  message: "You don't have enough balance to make this swap"
151
166
  }), !1;
152
- if (W * 1 > F * 1)
153
- return m({
167
+ if ($ * 1 > T * 1)
168
+ return d({
154
169
  message: "The input amount of this transaction is below our minimum, please try a higher transaction amount"
155
170
  }), !1;
156
- if (_e * 1 < F * 1)
157
- return m({
171
+ if (Ce * 1 < T * 1)
172
+ return d({
158
173
  message: "The input amount of this transaction is above our maximum, please try a lower transaction amount"
159
174
  }), !1;
160
- if (L)
175
+ if (W)
161
176
  return !1;
162
- te(!0), d(
163
- He({
164
- apiKey: I,
177
+ oe(!0), m(
178
+ Je({
179
+ apiKey: M,
165
180
  quoteId: c.quote_id,
166
181
  walletAddress: p
167
182
  })
168
183
  );
169
- }, Oe = () => {
170
- r && R(me(r.fmt_balance + "", 8));
184
+ }, We = () => {
185
+ r && E(ue(r.fmt_balance + "", 8));
171
186
  };
172
- return /* @__PURE__ */ a(et, { addPadding: !0, children: [
173
- /* @__PURE__ */ a(y, { children: [
174
- /* @__PURE__ */ e(he, {}),
187
+ return /* @__PURE__ */ a(ot, { addPadding: !0, children: [
188
+ /* @__PURE__ */ a(N, { children: [
189
+ /* @__PURE__ */ e(ge, {}),
175
190
  /* @__PURE__ */ a(n, { container: !0, children: [
176
191
  /* @__PURE__ */ e(n, { item: !0, xs: 2.5, children: /* @__PURE__ */ e(
177
192
  l,
178
193
  {
179
- className: s.label,
194
+ className: i.label,
180
195
  variant: "caption",
181
196
  component: "p",
182
197
  children: "You Swap"
@@ -185,7 +200,7 @@ const at = ({ partnerKey: I, navigate: q }) => {
185
200
  /* @__PURE__ */ e(n, { item: !0, xs: 9.5, children: p && r && /* @__PURE__ */ a(
186
201
  l,
187
202
  {
188
- className: s["balance-label"],
203
+ className: i["balance-label"],
189
204
  variant: "caption",
190
205
  component: "p",
191
206
  children: [
@@ -194,53 +209,53 @@ const at = ({ partnerKey: I, navigate: q }) => {
194
209
  " ",
195
210
  r.symbol,
196
211
  " ",
197
- /* @__PURE__ */ e("span", { className: s["max-btn"], onClick: Oe, children: "MAX" })
212
+ /* @__PURE__ */ e("span", { className: i["max-btn"], onClick: We, children: "MAX" })
198
213
  ]
199
214
  }
200
215
  ) })
201
216
  ] }),
202
217
  /* @__PURE__ */ a(n, { spacing: 0, mt: 0.5, container: !0, children: [
203
218
  /* @__PURE__ */ e(n, { item: !0, xs: 6, children: /* @__PURE__ */ a(
204
- N,
219
+ _,
205
220
  {
206
- className: `${s.amount} ${s["fiat-field"]}`,
221
+ className: `${i.amount} ${i["fiat-field"]}`,
207
222
  fullWidth: !0,
208
223
  children: [
209
224
  /* @__PURE__ */ e(
210
- A,
225
+ I,
211
226
  {
212
227
  disableUnderline: !0,
213
- value: h,
214
- onChange: Ie,
228
+ value: g,
229
+ onChange: Ee,
215
230
  type: "text",
216
- placeholder: `${W > 0 ? "$" + W + " minimum value" : ""}`,
217
- error: E,
231
+ placeholder: `${$ > 0 ? "$" + $ + " minimum value" : ""}`,
232
+ error: L,
218
233
  required: !0,
219
234
  fullWidth: !0
220
235
  }
221
236
  ),
222
- /* @__PURE__ */ e(de, { className: s["amount-symbol"], children: F > 0 ? "$" + (F * 1).toFixed(2) : /* @__PURE__ */ e(x, { children: " " }) })
237
+ /* @__PURE__ */ e(pe, { className: i["amount-symbol"], children: T > 0 ? "$" + (T * 1).toFixed(2) : /* @__PURE__ */ e(b, { children: " " }) })
223
238
  ]
224
239
  }
225
240
  ) }),
226
- /* @__PURE__ */ e(n, { item: !0, xs: 6, className: "content-center", children: _ ? /* @__PURE__ */ e(f, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ a(
227
- N,
241
+ /* @__PURE__ */ e(n, { item: !0, xs: 6, className: "content-center", children: S ? /* @__PURE__ */ e(h, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ a(
242
+ _,
228
243
  {
229
244
  variant: "filled",
230
- className: `text-left ${s["crypto-picker"]}`,
245
+ className: `text-left ${i["crypto-picker"]}`,
231
246
  fullWidth: !0,
232
247
  children: [
233
248
  (r == null ? void 0 : r.network) && /* @__PURE__ */ e(
234
- z,
249
+ q,
235
250
  {
236
- className: `${s["network-label"]} ${s[le(r == null ? void 0 : r.network.name)]}`,
237
- children: B(r == null ? void 0 : r.network.name)
251
+ className: `${i["network-label"]} ${i[me(r == null ? void 0 : r.network.name)]}`,
252
+ children: D(r == null ? void 0 : r.network.name)
238
253
  }
239
254
  ),
240
255
  /* @__PURE__ */ a(
241
- U,
256
+ G,
242
257
  {
243
- input: /* @__PURE__ */ e(A, { disableUnderline: !0 }),
258
+ input: /* @__PURE__ */ e(I, { disableUnderline: !0 }),
244
259
  sx: {
245
260
  borderTopLeftRadius: 0,
246
261
  "&::before": {
@@ -265,17 +280,17 @@ const at = ({ partnerKey: I, navigate: q }) => {
265
280
  variant: "filled",
266
281
  value: r && r.symbol,
267
282
  displayEmpty: !0,
268
- onChange: (t) => ne(t.target.value),
283
+ onChange: (t) => ie(t.target.value),
269
284
  onOpen: (t) => {
270
- Z(!0), t.preventDefault();
285
+ te(!0), t.preventDefault();
271
286
  },
272
287
  defaultOpen: !1,
273
288
  open: !1,
274
- error: E,
289
+ error: L,
275
290
  children: [
276
- /* @__PURE__ */ e(g, { value: "", children: "Please select input" }),
277
- M.map((t) => /* @__PURE__ */ a(g, { value: t.symbol, children: [
278
- /* @__PURE__ */ e(ue, { className: s["dropdown-list-item"], children: /* @__PURE__ */ e(
291
+ /* @__PURE__ */ e(w, { value: "", children: "Please select input" }),
292
+ O.map((t) => /* @__PURE__ */ a(w, { value: t.symbol, children: [
293
+ /* @__PURE__ */ e(fe, { className: i["dropdown-list-item"], children: /* @__PURE__ */ e(
279
294
  "img",
280
295
  {
281
296
  src: t.icon_uri,
@@ -292,13 +307,13 @@ const at = ({ partnerKey: I, navigate: q }) => {
292
307
  ]
293
308
  }
294
309
  ) }),
295
- re && /* @__PURE__ */ e(l, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: re }) })
310
+ ae && /* @__PURE__ */ e(l, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: ae }) })
296
311
  ] }),
297
312
  /* @__PURE__ */ a(n, { mt: 4, container: !0, children: [
298
313
  /* @__PURE__ */ e(n, { item: !0, xs: 4, children: /* @__PURE__ */ e(
299
314
  l,
300
315
  {
301
- className: s.label,
316
+ className: i.label,
302
317
  variant: "caption",
303
318
  component: "p",
304
319
  children: "You Receive"
@@ -311,19 +326,19 @@ const at = ({ partnerKey: I, navigate: q }) => {
311
326
  className: "text-center",
312
327
  item: !0,
313
328
  xs: 4,
314
- children: /* @__PURE__ */ e("img", { src: Ve, alt: "arrow" })
329
+ children: /* @__PURE__ */ e("img", { src: Ze, alt: "arrow" })
315
330
  }
316
331
  )
317
332
  ] }),
318
333
  /* @__PURE__ */ a(n, { mt: 0.5, container: !0, children: [
319
334
  /* @__PURE__ */ e(n, { item: !0, xs: 6, children: /* @__PURE__ */ a(
320
- N,
335
+ _,
321
336
  {
322
- className: `${s.amount} ${s["fiat-field"]}`,
337
+ className: `${i.amount} ${i["fiat-field"]}`,
323
338
  fullWidth: !0,
324
339
  children: [
325
340
  /* @__PURE__ */ e(
326
- A,
341
+ I,
327
342
  {
328
343
  disableUnderline: !0,
329
344
  value: C && parseFloat(C).toFixed(5),
@@ -332,34 +347,34 @@ const at = ({ partnerKey: I, navigate: q }) => {
332
347
  fullWidth: !0
333
348
  }
334
349
  ),
335
- /* @__PURE__ */ e(de, { className: s["amount-symbol"], children: K > 0 ? "$" + (K * 1).toFixed(2) : /* @__PURE__ */ e(x, { children: " " }) })
350
+ /* @__PURE__ */ e(pe, { className: i["amount-symbol"], children: V > 0 ? "$" + (V * 1).toFixed(2) : /* @__PURE__ */ e(b, { children: " " }) })
336
351
  ]
337
352
  }
338
353
  ) }),
339
- /* @__PURE__ */ e(n, { item: !0, xs: 6, className: "content-center", children: _ ? /* @__PURE__ */ e(
340
- f,
354
+ /* @__PURE__ */ e(n, { item: !0, xs: 6, className: "content-center", children: S ? /* @__PURE__ */ e(
355
+ h,
341
356
  {
342
357
  sx: { ml: 1 },
343
358
  size: 30
344
359
  }
345
360
  ) : /* @__PURE__ */ a(
346
- N,
361
+ _,
347
362
  {
348
363
  variant: "filled",
349
- className: `text-left ${s["crypto-picker"]}`,
364
+ className: `text-left ${i["crypto-picker"]}`,
350
365
  fullWidth: !0,
351
366
  children: [
352
367
  (o == null ? void 0 : o.network) && /* @__PURE__ */ e(
353
- z,
368
+ q,
354
369
  {
355
- className: `${s["network-label"]} ${s[le(o == null ? void 0 : o.network.name)]}`,
370
+ className: `${i["network-label"]} ${i[me(o == null ? void 0 : o.network.name)]}`,
356
371
  children: o == null ? void 0 : o.network.name
357
372
  }
358
373
  ),
359
374
  /* @__PURE__ */ a(
360
- U,
375
+ G,
361
376
  {
362
- input: /* @__PURE__ */ e(A, { disableUnderline: !0 }),
377
+ input: /* @__PURE__ */ e(I, { disableUnderline: !0 }),
363
378
  sx: {
364
379
  borderTopLeftRadius: 0,
365
380
  "&::before": {
@@ -384,21 +399,21 @@ const at = ({ partnerKey: I, navigate: q }) => {
384
399
  variant: "filled",
385
400
  value: o && o.symbol,
386
401
  displayEmpty: !0,
387
- onChange: (t) => ae(t.target.value),
402
+ onChange: (t) => se(t.target.value),
388
403
  onOpen: (t) => {
389
- Q(!0), t.preventDefault();
404
+ ee(!0), t.preventDefault();
390
405
  },
391
406
  defaultOpen: !1,
392
407
  open: !1,
393
408
  children: [
394
- /* @__PURE__ */ e(g, { value: "", children: "Please select output" }),
395
- w && w.map((t) => /* @__PURE__ */ a(g, { value: t.symbol, children: [
396
- /* @__PURE__ */ e(ue, { className: s["dropdown-list-item"], children: /* @__PURE__ */ e(
409
+ /* @__PURE__ */ e(w, { value: "", children: "Please select output" }),
410
+ k && k.map((t) => /* @__PURE__ */ a(w, { value: t.symbol, children: [
411
+ /* @__PURE__ */ e(fe, { className: i["dropdown-list-item"], children: /* @__PURE__ */ e(
397
412
  "img",
398
413
  {
399
414
  src: t.icon_uri,
400
- onError: ({ currentTarget: i }) => {
401
- i.onerror = null, i.src = $e;
415
+ onError: ({ currentTarget: s }) => {
416
+ s.onerror = null, s.src = ze;
402
417
  },
403
418
  alt: "tokenImage",
404
419
  width: "40",
@@ -414,21 +429,21 @@ const at = ({ partnerKey: I, navigate: q }) => {
414
429
  }
415
430
  ) })
416
431
  ] }),
417
- /* @__PURE__ */ e(y, { mt: 2.5, className: s["fee-area"], children: /* @__PURE__ */ a(n, { container: !0, children: [
432
+ /* @__PURE__ */ e(N, { mt: 2.5, className: i["fee-area"], children: /* @__PURE__ */ a(n, { container: !0, children: [
418
433
  /* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 12, children: /* @__PURE__ */ a(
419
- pe,
434
+ he,
420
435
  {
421
436
  sx: { padding: "0" },
422
- onClick: () => Ne((t) => !t),
437
+ onClick: () => _e((t) => !t),
423
438
  disableFocusRipple: !0,
424
439
  disableRipple: !0,
425
440
  children: [
426
441
  /* @__PURE__ */ e(l, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Fee Calculation" }) }),
427
442
  /* @__PURE__ */ e(
428
- Le,
443
+ Be,
429
444
  {
430
445
  sx: {
431
- transform: `rotate(${ee ? "90" : "0"}deg)`,
446
+ transform: `rotate(${re ? "90" : "0"}deg)`,
432
447
  fontSize: "15px"
433
448
  }
434
449
  }
@@ -436,116 +451,116 @@ const at = ({ partnerKey: I, navigate: q }) => {
436
451
  ]
437
452
  }
438
453
  ) }),
439
- ee && /* @__PURE__ */ a(x, { children: [
454
+ re && /* @__PURE__ */ a(b, { children: [
440
455
  /* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Everest Fee" }) }),
441
456
  /* @__PURE__ */ e(n, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
442
- $,
443
- S ? /* @__PURE__ */ e(
444
- f,
457
+ P,
458
+ F ? /* @__PURE__ */ e(
459
+ h,
445
460
  {
446
461
  sx: { ml: 1 },
447
462
  size: 15
448
463
  }
449
- ) : X.toFixed(2)
464
+ ) : J.toFixed(2)
450
465
  ] }) }),
451
466
  /* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Network Fee" }) }),
452
467
  /* @__PURE__ */ e(n, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
453
- $,
454
- S ? /* @__PURE__ */ e(
455
- f,
468
+ P,
469
+ F ? /* @__PURE__ */ e(
470
+ h,
456
471
  {
457
472
  sx: { ml: 1 },
458
473
  size: 15
459
474
  }
460
- ) : V.toFixed(2)
475
+ ) : Q.toFixed(2)
461
476
  ] }) })
462
477
  ] }),
463
478
  /* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Total Fees" }) }),
464
479
  /* @__PURE__ */ e(n, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
465
- $,
466
- S ? /* @__PURE__ */ e(
467
- f,
480
+ P,
481
+ F ? /* @__PURE__ */ e(
482
+ h,
468
483
  {
469
484
  sx: { ml: 1 },
470
485
  size: 15
471
486
  }
472
- ) : Number(be).toFixed(2)
487
+ ) : Number(we).toFixed(2)
473
488
  ] }) }),
474
- o && r && /* @__PURE__ */ a(x, { children: [
489
+ o && r && /* @__PURE__ */ a(b, { children: [
475
490
  /* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
476
491
  "1 ",
477
492
  r == null ? void 0 : r.symbol,
478
493
  " ",
479
- /* @__PURE__ */ e(Qe, { title: Je, placement: "right", children: /* @__PURE__ */ e(pe, { className: s["info-fee-icon"], children: /* @__PURE__ */ e(We, { sx: { fontSize: "14px" } }) }) })
494
+ /* @__PURE__ */ e(tt, { title: et, placement: "right", children: /* @__PURE__ */ e(he, { className: i["info-fee-icon"], children: /* @__PURE__ */ e(De, { sx: { fontSize: "14px" } }) }) })
480
495
  ] }) }),
481
- /* @__PURE__ */ e(n, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: S ? /* @__PURE__ */ e(
482
- f,
496
+ /* @__PURE__ */ e(n, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: F ? /* @__PURE__ */ e(
497
+ h,
483
498
  {
484
499
  sx: { ml: 1 },
485
500
  size: 15
486
501
  }
487
- ) : H && parseFloat(H).toFixed(6) + " " + (o == null ? void 0 : o.symbol) }) })
502
+ ) : X && parseFloat(X).toFixed(6) + " " + (o == null ? void 0 : o.symbol) }) })
488
503
  ] })
489
504
  ] }) }),
490
- /* @__PURE__ */ e(y, { sx: { alignItems: "left", width: "100%" }, children: ge ? /* @__PURE__ */ e(y, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(f, {}) }) : /* @__PURE__ */ e(x, { children: /* @__PURE__ */ a(
491
- N,
505
+ /* @__PURE__ */ e(N, { sx: { alignItems: "left", width: "100%" }, children: ye ? /* @__PURE__ */ e(N, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(h, {}) }) : /* @__PURE__ */ e(b, { children: /* @__PURE__ */ a(
506
+ _,
492
507
  {
493
508
  variant: "filled",
494
509
  fullWidth: !0,
495
510
  children: [
496
- !p && /* @__PURE__ */ e(z, { children: "Select wallet address" }),
511
+ !p && /* @__PURE__ */ e(q, { children: "Select wallet address" }),
497
512
  /* @__PURE__ */ a(
498
- U,
513
+ G,
499
514
  {
500
515
  value: p,
501
- onChange: (t) => Ae(t.target.value),
516
+ onChange: (t) => Re(t.target.value),
502
517
  children: [
503
- /* @__PURE__ */ e(g, { value: "", children: /* @__PURE__ */ e("em", { children: "None" }) }),
504
- xe.map((t, i) => /* @__PURE__ */ e(g, { value: t.address, children: t.name + "(" + t.address + ")" }, i))
518
+ /* @__PURE__ */ e(w, { value: "", children: /* @__PURE__ */ e("em", { children: "None" }) }),
519
+ be.map((t, s) => /* @__PURE__ */ e(w, { value: t.address, children: t.name + "(" + t.address + ")" }, s))
505
520
  ]
506
521
  }
507
522
  )
508
523
  ]
509
524
  }
510
525
  ) }) }),
511
- /* @__PURE__ */ e(y, { mt: 4, children: /* @__PURE__ */ e(
512
- ot,
526
+ /* @__PURE__ */ e(N, { mt: 4, children: /* @__PURE__ */ e(
527
+ st,
513
528
  {
514
529
  className: "wallet-btn",
515
530
  fullWidth: !0,
516
531
  variant: "contained",
517
- onClick: Me,
518
- disabled: E || !C,
519
- children: /* @__PURE__ */ e("strong", { children: L ? /* @__PURE__ */ a(x, { children: [
520
- /* @__PURE__ */ e(f, { size: 15, color: "inherit" }),
532
+ onClick: Le,
533
+ disabled: L || !C,
534
+ children: /* @__PURE__ */ e("strong", { children: W ? /* @__PURE__ */ a(b, { children: [
535
+ /* @__PURE__ */ e(h, { size: 15, color: "inherit" }),
521
536
  " Processing..."
522
537
  ] }) : "Swap" })
523
538
  }
524
539
  ) })
525
540
  ] }),
526
541
  /* @__PURE__ */ e(
527
- ce,
542
+ de,
528
543
  {
529
- open: ye,
530
- setModal: Z,
531
- loader: _,
532
- tokenList: M,
533
- tokenSelect: ne
544
+ open: Ne,
545
+ setModal: te,
546
+ loader: S,
547
+ tokenList: O,
548
+ tokenSelect: ie
534
549
  }
535
550
  ),
536
551
  /* @__PURE__ */ e(
537
- ce,
552
+ de,
538
553
  {
539
- open: ve,
540
- setModal: Q,
541
- loader: _,
542
- tokenList: w ?? [],
543
- tokenSelect: ae,
554
+ open: ke,
555
+ setModal: ee,
556
+ loader: S,
557
+ tokenList: k ?? [],
558
+ tokenSelect: se,
544
559
  showBalance: !1
545
560
  }
546
561
  )
547
562
  ] });
548
- }, Qt = Ze(at);
563
+ }, Zt = rt(it);
549
564
  export {
550
- Qt as default
565
+ Zt as default
551
566
  };