everest-npm-features 0.0.17 → 0.0.18

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 (133) hide show
  1. package/dist/CheckCircle-BiltyzEJ.js +8 -0
  2. package/dist/PlayArrow-BYMBg9J8.js +8 -0
  3. package/dist/assets/index10.css +1 -1
  4. package/dist/assets/index11.css +1 -1
  5. package/dist/assets/index2.css +1 -1
  6. package/dist/assets/index3.css +1 -1
  7. package/dist/assets/index4.css +1 -1
  8. package/dist/assets/index5.css +1 -1
  9. package/dist/assets/index6.css +1 -1
  10. package/dist/assets/index7.css +1 -1
  11. package/dist/assets/index8.css +1 -1
  12. package/dist/assets/index9.css +1 -1
  13. package/dist/assets/styles2.css +1 -1
  14. package/dist/assets/styles3.css +1 -0
  15. package/dist/{auth-PInt5Jrb.js → auth-RJ36qeYb.js} +1 -1
  16. package/dist/{bank-BDnnvwyk.js → bank-Dml7vXW5.js} +10 -10
  17. package/dist/components/RocketRamp/MinimalKyc/form.js +5 -5
  18. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
  19. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
  20. package/dist/components/RocketRamp/Player/Buy/form.js +5 -5
  21. package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
  22. package/dist/components/RocketRamp/Player/Dashboard/index.js +13 -15
  23. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
  24. package/dist/components/RocketRamp/Player/Sell/form.js +5 -5
  25. package/dist/components/RocketRamp/Player/Sell/index.js +8 -8
  26. package/dist/components/RocketRamp/Player/SignIn/index.js +3 -3
  27. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
  28. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
  29. package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
  30. package/dist/components/RocketRamp/Player/SignUp/index.js +3 -3
  31. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
  32. package/dist/components/RocketRamp/ResetPassword/index.js +3 -3
  33. package/dist/components/RocketRamp/Shared/Input/index.js +9 -9
  34. package/dist/components/RocketRamp/Store/SignUp/index.js +3 -3
  35. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
  36. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
  37. package/dist/components/RocketRamp/Transactions/index.js +7 -7
  38. package/dist/components/Shared/HistoryItem/index.js +40 -40
  39. package/dist/components/Shared/MinimalKyc/index.js +3 -3
  40. package/dist/components/Shared/tooltip.js +5 -2108
  41. package/dist/components/Wallet/Account/createIban.js +1 -1
  42. package/dist/components/Wallet/Account/iban.js +5 -5
  43. package/dist/components/Wallet/Account/index.js +17 -17
  44. package/dist/components/Wallet/Account/sendIban.js +16 -16
  45. package/dist/components/Wallet/Buy/confirmTransaction.d.ts +2 -2
  46. package/dist/components/Wallet/Buy/confirmTransaction.js +5 -4
  47. package/dist/components/Wallet/Buy/form.d.ts +2 -2
  48. package/dist/components/Wallet/Buy/form.js +9 -6
  49. package/dist/components/Wallet/Buy/index.d.ts +1 -1
  50. package/dist/components/Wallet/Buy/index.js +7 -7
  51. package/dist/components/Wallet/Deposit/index.d.ts +2 -0
  52. package/dist/components/Wallet/Deposit/index.js +110 -0
  53. package/dist/components/Wallet/EnterpriseKyc/edd.js +92 -80
  54. package/dist/components/Wallet/EnterpriseKyc/index.js +121 -108
  55. package/dist/components/Wallet/EnterpriseKyc/orgDetails.d.ts +1 -1
  56. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +110 -85
  57. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +2 -2
  58. package/dist/components/Wallet/EnterpriseKyc/types.d.ts +1 -0
  59. package/dist/components/Wallet/EnterpriseKyc/verify.js +2 -2
  60. package/dist/components/Wallet/History/index.js +4 -4
  61. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +33 -33
  62. package/dist/components/Wallet/Portfolio/index.js +171 -138
  63. package/dist/components/Wallet/Profile/documents.js +4 -4
  64. package/dist/components/Wallet/Profile/index.js +4 -4
  65. package/dist/components/Wallet/Receive/index.js +8 -8
  66. package/dist/components/Wallet/Sell/confirmTransaction.d.ts +3 -0
  67. package/dist/components/Wallet/Sell/confirmTransaction.js +18 -0
  68. package/dist/components/Wallet/Sell/form.d.ts +3 -0
  69. package/dist/components/Wallet/Sell/form.js +32 -0
  70. package/dist/components/Wallet/Sell/index.d.ts +6 -0
  71. package/dist/components/Wallet/Sell/index.js +22 -0
  72. package/dist/components/Wallet/Send/index.js +6 -6
  73. package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
  74. package/dist/components/Wallet/Shared/ConnectWallet/index.js +1 -1
  75. package/dist/components/Wallet/Shared/Container/index.js +1 -1
  76. package/dist/components/Wallet/Shared/Order/types.d.ts +51 -0
  77. package/dist/components/Wallet/Shared/TokenModal/index.d.ts +1 -1
  78. package/dist/components/Wallet/Shared/TokenModal/index.js +5 -5
  79. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +4 -4
  80. package/dist/components/Wallet/Shared/addBank.js +6 -6
  81. package/dist/components/Wallet/Shared/connectPlaidBank.js +7 -7
  82. package/dist/components/Wallet/Shared/pin.js +1 -1
  83. package/dist/components/Wallet/SignIn/index.js +3 -3
  84. package/dist/components/Wallet/SignUp/index.js +3 -3
  85. package/dist/components/Wallet/Stake/gems/index.js +1 -1
  86. package/dist/components/Wallet/Stake/id/index.js +3 -3
  87. package/dist/components/Wallet/Stake/index.js +7 -7
  88. package/dist/components/Wallet/Swap/index.d.ts +3 -2
  89. package/dist/components/Wallet/Swap/index.js +327 -271
  90. package/dist/components/Wallet/SwapAndUniSwap/index.js +31 -35
  91. package/dist/components/Wallet/{Buy → SwapAndUniSwap}/types.d.ts +4 -13
  92. package/dist/components/Wallet/SwapAndUniSwap/types.js +1 -0
  93. package/dist/components/Wallet/Withdraw/bankSelect.d.ts +4 -0
  94. package/dist/components/Wallet/Withdraw/bankSelect.js +21 -0
  95. package/dist/components/Wallet/Withdraw/confirmTransaction.d.ts +3 -0
  96. package/dist/components/Wallet/Withdraw/confirmTransaction.js +19 -0
  97. package/dist/components/Wallet/Withdraw/form.d.ts +3 -0
  98. package/dist/components/Wallet/Withdraw/form.js +26 -0
  99. package/dist/components/Wallet/Withdraw/index.d.ts +7 -0
  100. package/dist/components/Wallet/Withdraw/index.js +22 -0
  101. package/dist/constants-QcvnheTz.js +5307 -0
  102. package/dist/cryptoAssets-DBfxll21.js +16 -0
  103. package/dist/{documents-b3tR38Qf.js → documents-Bd28UFLu.js} +3 -3
  104. package/dist/{fiatAssets-Di1Dvl51.js → fiatAssets-w5Lh-MSu.js} +1 -1
  105. package/dist/hooks/useDialog/index.js +22 -22
  106. package/dist/hooks/useRrDialog/index.js +1 -1
  107. package/dist/{iban-D3Y3E3cN.js → iban-CKaN4sIM.js} +6 -6
  108. package/dist/index-BEdISdN-.js +709 -0
  109. package/dist/{index-BhJeqQtm.js → index-BNaxzTKI.js} +164 -163
  110. package/dist/index-BvftsxV1.js +677 -0
  111. package/dist/index-DSHZv8ZQ.js +569 -0
  112. package/dist/{index-D2XCPzg3.js → index-_KAhqkWc.js} +144 -143
  113. package/dist/{index-DQaPU81n.js → index-f15o1nhn.js} +3 -3
  114. package/dist/{kyc-8mSMgUlU.js → kyc-V7cIa71M.js} +1 -1
  115. package/dist/main.d.ts +4 -0
  116. package/dist/main.js +47 -39
  117. package/dist/order-6L4LZOBs.js +41 -0
  118. package/dist/{react-redux-B4BZippc.js → react-redux-C7I9-1M6.js} +2 -2
  119. package/dist/{stake-Cf5t27F3.js → stake-r4KUlRcz.js} +1 -1
  120. package/dist/styles.module-BFHktEw2.js +30 -0
  121. package/dist/{styles.module-Ctfaq7f2.js → styles.module-DJk7Pf0F.js} +1 -1
  122. package/dist/tooltip-BVZ66d8C.js +2111 -0
  123. package/dist/util/constants.d.ts +1 -0
  124. package/dist/util/constants.js +84 -83
  125. package/dist/{wallet-Bghw0_Nm.js → wallet-D7MEPP5y.js} +1 -1
  126. package/package.json +2 -2
  127. package/dist/PlayArrow-Dent7shn.js +0 -21
  128. package/dist/assets/index12.css +0 -1
  129. package/dist/assets/index13.css +0 -1
  130. package/dist/constants-A8X7fywY.js +0 -3882
  131. package/dist/index-Bqxs_jIU.js +0 -709
  132. package/dist/order-DTnCUIx0.js +0 -34
  133. /package/dist/components/Wallet/{Buy → Shared/Order}/types.js +0 -0
@@ -1,97 +1,131 @@
1
- import { jsxs as n, Fragment as u, jsx as e } from "react/jsx-runtime";
2
- import { useRef as Ne, useState as a, useEffect as X } from "react";
3
- import { a as Fe, u as Ie } from "../../../react-redux-B4BZippc.js";
4
- import { c as Ae, a as Se, P as Ce } from "../../../PlayArrow-Dent7shn.js";
1
+ import { jsxs as a, jsx as e, Fragment as x } from "react/jsx-runtime";
2
+ import { useState as u, useEffect as v } from "react";
3
+ import { u as P, a as Oe } from "../../../react-redux-C7I9-1M6.js";
4
+ import { P as Ee } from "../../../PlayArrow-BYMBg9J8.js";
5
5
  import { I as Le } from "../../../Info-DPMWjNcQ.js";
6
- import { G as Me } from "../../../generic-token-B_ptO5yb.js";
7
- import { getNetworkBackGround as J, getCentralLedgetNetwork as Te, getCurrencySymbol as We } from "../../../util/functions.js";
8
- import K from "../Shared/TokenModal/index.js";
9
- import { formatNumberWithoutRounding as Q } from "../../../util/conversions.js";
10
- import "../../../constants-A8X7fywY.js";
11
- import { ARROW_ICON as Oe, ESTIMATE_TOOLTIP_TEXT as Re } from "../../../util/constants.js";
12
- import Ee from "../../Shared/tooltip.js";
13
- import Pe from "../Shared/ConnectWallet/index.js";
14
- import "../../../hoc/withThemeProvider.js";
6
+ import { G as We } from "../../../generic-token-B_ptO5yb.js";
7
+ import { getCentralLedgetNetwork as D, getNetworkBackGround as se, getCurrencySymbol as Re } from "../../../util/functions.js";
8
+ import ie from "../Shared/TokenModal/index.js";
9
+ import { formatNumberWithoutRounding as le } from "../../../util/conversions.js";
10
+ import { F as $e } from "../../../constants-QcvnheTz.js";
11
+ import { u as Pe } from "../../../index-f15o1nhn.js";
12
+ import { f as De, a as ze, b as Be } from "../../../cryptoAssets-DBfxll21.js";
13
+ import { u as Ue } from "../../../wallet-D7MEPP5y.js";
14
+ import { o as z, a as qe, b as Ge, c as Ye } from "../../../order-6L4LZOBs.js";
15
+ import { DIALOG_SUCCESS_ICON as je, TOKEN_TO_TOKEN as He, ARROW_ICON as Ke, ESTIMATE_TOOLTIP_TEXT as Xe } from "../../../util/constants.js";
16
+ import { M as Ve } from "../../../tooltip-BVZ66d8C.js";
17
+ import Je from "../../../hoc/withThemeProvider.js";
15
18
  import "../Shared/appButton.js";
16
19
  import "../Shared/Auth/otpForm.js";
17
- import "../../../context/snackBarContext.js";
18
- import { useSnackBar as $e } from "../../../hooks/useSnackBar.js";
20
+ import { AuthContainer as Qe } from "../Shared/Container/index.js";
21
+ import { useSnackBarContext as Ze } from "../../../context/snackBarContext.js";
22
+ import { useDialog as et } from "../../../hooks/useDialog/index.js";
19
23
  import "../../../index-CAoLi5Qq.js";
20
24
  import "../../../react-webcam-B3cXh1XT.js";
21
25
  import "../../Shared/transition.js";
22
26
  import "../Shared/pin.js";
23
27
  import "../../../moment-h96o7c8I.js";
24
28
  import "../../../index.esm-BsMAMhYW.js";
29
+ import "../../../web3-u4qDZYpo.js";
25
30
  import "../../../index-B8QKlEgj.js";
26
31
  import "../../../index-ceeCtFuh.js";
27
- import { B as h } from "../../../Box-rIIGCyb6.js";
28
- import { G as l } from "../../../Grid-C6plET3a.js";
29
- import { T as i } from "../../../Typography-DiFeMX5p.js";
30
- import { F as f } from "../../../FormControl-uQi14shL.js";
31
- import { F as Z } from "../../../FilledInput-Bvhqpjsa.js";
32
- import { F as ee, I as C } from "../../../TextField-BtFFWrf2.js";
33
- import { C as d } from "../../../CircularProgress-CBhr9Pli.js";
34
- import { S as L } from "../../../Select-BsqVGicz.js";
35
- import { M as x } from "../../../MenuItem-BKHoKEhO.js";
36
- import { L as te } from "../../../ListItemIcon-BO6nZHNq.js";
37
- import { I as ae } from "../../../IconButton-DRnoPKKH.js";
38
- import { B as ze } from "../../../Button-Csuq67Py.js";
39
- import '../../../assets/index2.css';const Be = "_label_cuehd_1", De = "_amount_cuehd_71", s = {
40
- label: Be,
41
- "balance-label": "_balance-label_cuehd_13",
42
- "max-btn": "_max-btn_cuehd_25",
43
- amount: De,
44
- "MuiFilledInput-root": "_MuiFilledInput-root_cuehd_91",
45
- "amount-symbol": "_amount-symbol_cuehd_107",
46
- "crypto-picker": "_crypto-picker_cuehd_125",
47
- "fiat-picker": "_fiat-picker_cuehd_133",
48
- "network-label": "_network-label_cuehd_141",
49
- "eth-network": "_eth-network_cuehd_167",
50
- "everchain-network": "_everchain-network_cuehd_175",
51
- "buy-select-dd": "_buy-select-dd_cuehd_185",
52
- "MuiSelect-select": "_MuiSelect-select_cuehd_201",
53
- "dropdown-list-item": "_dropdown-list-item_cuehd_215",
54
- "fee-area": "_fee-area_cuehd_239",
55
- "info-fee-icon": "_info-fee-icon_cuehd_249",
56
- "wallet-caption-text": "_wallet-caption-text_cuehd_259"
57
- }, Yt = () => {
58
- const { showAlertMessage: m, snackBar: ne } = $e(), M = Fe((t) => t.cryptoAssets.tokens);
59
- Ne(null);
60
- const [g, Ge] = a(""), [k, Ye] = a(""), [p, N] = a("0.5"), [F, qe] = a(!1);
61
- a([]), a({});
62
- const [_, He] = a(!1), [re, Ue] = a(0), [le, je] = a(0), [se, Ve] = a(0);
63
- a("");
64
- const [oe, T] = a(!1), [W, Xe] = a(!1), [I, Je] = a([]), [o, O] = a();
65
- a({});
66
- const [ie, R] = a(!1), [E, ce] = a(!0), [v, me] = a([]), [r, de] = a(), [P, ue] = a(!1), [$, pe] = a(!1), [b, Ke] = a(0), [z, Qe] = a(0);
67
- a(!0), a(!1);
68
- const [he, B] = a(""), [D, G] = a(""), [w, Y] = a(""), [fe, Ze] = a(!0), [xe, et] = a([]);
69
- a([]), a([]), a([]);
70
- const [A, tt] = a(50), [ge, at] = a(1e4), [q, nt] = a("");
71
- parseFloat(p.replaceAll(",", "."));
72
- let H = "0.00";
73
- p && k && (H = k);
74
- const _e = /^([0-9]*(\,|\.)[0-9]+|[0-9]+)$/, S = We("USD"), U = Ie();
75
- X(() => {
76
- U(Ae()), U(Se());
77
- }, []), X(() => {
78
- w || (me(M), ce(!1));
79
- }, [M, w]), console.log("inputTokenList", v);
80
- const ve = (t) => {
81
- G(t), Y(t), B("");
82
- }, be = (t) => {
83
- B(t), Y(t), G("");
84
- }, we = (t) => {
85
- const c = t.target.value;
86
- c ? /^([0-9.,]+)$/.test(c) && N(Q(c, 8)) : N("");
87
- }, j = (t) => {
88
- const c = I.find((y) => y.id === t);
89
- O(c);
90
- }, V = (t) => {
91
- O({});
92
- const c = v.find((y) => y.id === t);
93
- de(c);
94
- }, ye = () => {
32
+ import { s } from "../../../styles.module-BFHktEw2.js";
33
+ import { B as w } from "../../../Box-rIIGCyb6.js";
34
+ import { G as n } from "../../../Grid-C6plET3a.js";
35
+ import { T as l } from "../../../Typography-DiFeMX5p.js";
36
+ import { F as y } from "../../../FormControl-uQi14shL.js";
37
+ import { F as A } from "../../../FilledInput-Bvhqpjsa.js";
38
+ import { F as ce, I as B } from "../../../TextField-BtFFWrf2.js";
39
+ import { C as p } from "../../../CircularProgress-CBhr9Pli.js";
40
+ import { S as U } from "../../../Select-BsqVGicz.js";
41
+ import { M as k } from "../../../MenuItem-BKHoKEhO.js";
42
+ import { L as me } from "../../../ListItemIcon-BO6nZHNq.js";
43
+ import { I as de } from "../../../IconButton-DRnoPKKH.js";
44
+ import { B as tt } from "../../../Button-Csuq67Py.js";
45
+ const rt = ({ partnerKey: I, navigate: q }) => {
46
+ var ae, ne;
47
+ const { openDialog: ue, ConfirmDialog: pe } = et(), { showAlertMessage: m } = Ze(), N = P((t) => t.order), g = P(
48
+ (t) => t.cryptoAssets
49
+ ), G = P(Pe), fe = G.data, { loader: he } = G, M = g.featureTokens.swap.inputList, r = g.featureTokens.swap.inputDefault, b = g.featureTokens.swap.outputList, o = g.featureTokens.swap.outputDefault, _ = g.loader, O = N.error, Y = N.create.order_id, S = N.loader, c = N.estimate, C = c.output_token.amount, xe = c.conversion_price, ge = c.total_fee, F = Number((ae = c == null ? void 0 : c.input_token) == null ? void 0 : ae.fiat_amount), j = Number((ne = c == null ? void 0 : c.output_token) == null ? void 0 : ne.fiat_amount);
50
+ let H = 0, K = 0;
51
+ const X = c.fee_breakdown;
52
+ for (let t = 0; t < X.length; t++) {
53
+ const i = X[t];
54
+ i.name === "ev_fee" ? H = Number(i.value) : i.name === "network_fee" && (K = Number(i.value));
55
+ }
56
+ const [f, E] = u("50"), [L, be] = u(!1), [ve, V] = u(!1), [we, J] = u(!1), [Q, ye] = u(!1), [W, Z] = u(!1), [h, ke] = u(""), [R, ot] = u(50), [Ne, at] = u(1e4), [ee, _e] = u(""), Se = /^([0-9]*(\,|\.)[0-9]+|[0-9]+)$/, $ = Re("USD"), d = Oe(), Ce = (t) => {
57
+ d(ze(t));
58
+ }, te = (t) => {
59
+ d(Be(t));
60
+ };
61
+ v(() => {
62
+ Y && W && ue({
63
+ icon: je,
64
+ title: "Swap Success",
65
+ message: "Your transaction was successful for more details on the transaction, please view your transaction history.",
66
+ cancelButtonText: "Swap again",
67
+ onCancel: () => {
68
+ d(z()), Z(!1);
69
+ },
70
+ confirmButtonText: "Track Order",
71
+ onConfirm: () => {
72
+ q && q("/history"), d(z());
73
+ },
74
+ height: "490px"
75
+ });
76
+ }, [Y]), v(() => {
77
+ d(
78
+ De({
79
+ type: $e,
80
+ id: r.id,
81
+ walletAddress: h,
82
+ partnerKey: I
83
+ })
84
+ );
85
+ }, [r.id, h]), v(() => (d(Ue()), () => {
86
+ d(z());
87
+ }), []), v(() => {
88
+ O && m({ message: O });
89
+ }, [O]), v(() => {
90
+ if (o && o.id && f) {
91
+ d(qe()), be(!1), _e("");
92
+ const t = setTimeout(() => {
93
+ Fe();
94
+ }, 1e3);
95
+ return () => clearTimeout(t);
96
+ }
97
+ }, [f, r, o]);
98
+ const Fe = () => {
99
+ r.network && o && o.network && d(
100
+ Ge({
101
+ apiKey: I,
102
+ transaction_type: He,
103
+ coin_amount: f,
104
+ input_token: r.symbol,
105
+ input_token_network: D(r.network.name),
106
+ exchange: r.exchange,
107
+ output_token: o.symbol,
108
+ output_token_network: D(
109
+ o.network.name
110
+ ),
111
+ output_exchange: o.exchange
112
+ })
113
+ );
114
+ }, Te = (t) => {
115
+ ke(t);
116
+ }, Ae = (t) => {
117
+ const i = t.target.value;
118
+ i ? /^([0-9.,]+)$/.test(i) && E(le(i, 8)) : E("");
119
+ }, re = (t) => {
120
+ if (b) {
121
+ const i = b.find((T) => T.symbol === t);
122
+ te(i);
123
+ }
124
+ }, oe = (t) => {
125
+ te({});
126
+ const i = M.find((T) => T.symbol === t);
127
+ Ce(i);
128
+ }, Ie = () => {
95
129
  if (!r)
96
130
  return m({
97
131
  message: "Please select token you want to swap"
@@ -100,40 +134,46 @@ import '../../../assets/index2.css';const Be = "_label_cuehd_1", De = "_amount_c
100
134
  return m({
101
135
  message: "Please select token you want to receive"
102
136
  }), !1;
103
- if (!p)
137
+ if (!f)
104
138
  return m({ message: "Please enter amount" }), !1;
105
- if (!w)
139
+ if (!h)
106
140
  return m({ message: "Please select/enter wallet address" }), !1;
107
- if (!_e.test(p))
141
+ if (!Se.test(f))
108
142
  return m({ message: "Please provide a valid amount" }), !1;
109
- if (!g)
143
+ if (!C)
110
144
  return m({
111
145
  message: "Please wait for the estimate to be calculated and then press next"
112
146
  }), !1;
113
- if (p > r.fmt_balance)
147
+ if (r.fmt_balance && f > r.fmt_balance)
114
148
  return m({
115
149
  message: "You don't have enough balance to make this swap"
116
150
  }), !1;
117
- if (A * 1 > b * 1)
151
+ if (R * 1 > F * 1)
118
152
  return m({
119
153
  message: "The input amount of this transaction is below our minimum, please try a higher transaction amount"
120
154
  }), !1;
121
- if (ge * 1 < b * 1)
155
+ if (Ne * 1 < F * 1)
122
156
  return m({
123
157
  message: "The input amount of this transaction is above our maximum, please try a lower transaction amount"
124
158
  }), !1;
125
- if ($)
159
+ if (W)
126
160
  return !1;
127
- pe(!0), alert("TRade");
128
- }, ke = () => {
129
- r && N(Q(r.fmt_balance + "", 8));
161
+ Z(!0), d(
162
+ Ye({
163
+ apiKey: I,
164
+ quoteId: c.quote_id,
165
+ walletAddress: h
166
+ })
167
+ );
168
+ }, Me = () => {
169
+ r && E(le(r.fmt_balance + "", 8));
130
170
  };
131
- return /* @__PURE__ */ n(u, { children: [
132
- ne,
133
- /* @__PURE__ */ n(h, { children: [
134
- /* @__PURE__ */ n(l, { container: !0, children: [
135
- /* @__PURE__ */ e(l, { item: !0, xs: 2.5, children: /* @__PURE__ */ e(
136
- i,
171
+ return /* @__PURE__ */ a(Qe, { addPadding: !0, children: [
172
+ /* @__PURE__ */ a(w, { children: [
173
+ /* @__PURE__ */ e(pe, {}),
174
+ /* @__PURE__ */ a(n, { container: !0, children: [
175
+ /* @__PURE__ */ e(n, { item: !0, xs: 2.5, children: /* @__PURE__ */ e(
176
+ l,
137
177
  {
138
178
  className: s.label,
139
179
  variant: "caption",
@@ -141,8 +181,8 @@ import '../../../assets/index2.css';const Be = "_label_cuehd_1", De = "_amount_c
141
181
  children: "You Swap"
142
182
  }
143
183
  ) }),
144
- /* @__PURE__ */ e(l, { item: !0, xs: 9.5, children: w && r && /* @__PURE__ */ n(
145
- i,
184
+ /* @__PURE__ */ e(n, { item: !0, xs: 9.5, children: h && r && /* @__PURE__ */ a(
185
+ l,
146
186
  {
147
187
  className: s["balance-label"],
148
188
  variant: "caption",
@@ -153,72 +193,88 @@ import '../../../assets/index2.css';const Be = "_label_cuehd_1", De = "_amount_c
153
193
  " ",
154
194
  r.symbol,
155
195
  " ",
156
- /* @__PURE__ */ e("span", { className: s["max-btn"], onClick: ke, children: "MAX" })
196
+ /* @__PURE__ */ e("span", { className: s["max-btn"], onClick: Me, children: "MAX" })
157
197
  ]
158
198
  }
159
199
  ) })
160
200
  ] }),
161
- /* @__PURE__ */ n(l, { mt: 0.5, container: !0, children: [
162
- /* @__PURE__ */ e(l, { item: !0, xs: 6, children: /* @__PURE__ */ n(f, { variant: "filled", className: s.amount, fullWidth: !0, children: [
163
- /* @__PURE__ */ e(
164
- Z,
165
- {
166
- value: p,
167
- onChange: we,
168
- type: "text",
169
- placeholder: `${A > 0 ? "$" + A + " minimum value" : ""}`,
170
- error: F,
171
- required: !0,
172
- fullWidth: !0
173
- }
174
- ),
175
- /* @__PURE__ */ e(ee, { className: s["amount-symbol"], children: b > 0 ? "$" + (b * 1).toFixed(2) : /* @__PURE__ */ e(u, { children: " " }) })
176
- ] }) }),
177
- /* @__PURE__ */ e(l, { item: !0, xs: 6, className: "content-center", children: E ? /* @__PURE__ */ e(
178
- d,
201
+ /* @__PURE__ */ a(n, { spacing: 0, mt: 0.5, container: !0, children: [
202
+ /* @__PURE__ */ e(n, { item: !0, xs: 6, children: /* @__PURE__ */ a(
203
+ y,
179
204
  {
180
- sx: { ml: 1 },
181
- size: 30
205
+ className: `${s.amount} ${s["fiat-field"]}`,
206
+ fullWidth: !0,
207
+ children: [
208
+ /* @__PURE__ */ e(
209
+ A,
210
+ {
211
+ disableUnderline: !0,
212
+ value: f,
213
+ onChange: Ae,
214
+ type: "text",
215
+ placeholder: `${R > 0 ? "$" + R + " minimum value" : ""}`,
216
+ error: L,
217
+ required: !0,
218
+ fullWidth: !0
219
+ }
220
+ ),
221
+ /* @__PURE__ */ e(ce, { className: s["amount-symbol"], children: F > 0 ? "$" + (F * 1).toFixed(2) : /* @__PURE__ */ e(x, { children: " " }) })
222
+ ]
182
223
  }
183
- ) : /* @__PURE__ */ n(
184
- f,
224
+ ) }),
225
+ /* @__PURE__ */ e(n, { item: !0, xs: 6, className: "content-center", children: _ ? /* @__PURE__ */ e(p, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ a(
226
+ y,
185
227
  {
186
228
  variant: "filled",
187
229
  className: `text-left ${s["crypto-picker"]}`,
188
230
  fullWidth: !0,
189
231
  children: [
190
232
  (r == null ? void 0 : r.network) && /* @__PURE__ */ e(
191
- C,
233
+ B,
192
234
  {
193
- className: `${s["network-label"]} ${s[J(r == null ? void 0 : r.network.symbol)]}`,
194
- children: Te(r == null ? void 0 : r.network.symbol)
235
+ className: `${s["network-label"]} ${s[se(r == null ? void 0 : r.network.name)]}`,
236
+ children: D(r == null ? void 0 : r.network.name)
195
237
  }
196
238
  ),
197
- /* @__PURE__ */ n(
198
- L,
239
+ /* @__PURE__ */ a(
240
+ U,
199
241
  {
242
+ input: /* @__PURE__ */ e(A, { disableUnderline: !0 }),
200
243
  sx: {
201
- fontWeight: "bold",
202
- ".MuiSvgIcon-root ": {
244
+ borderTopLeftRadius: 0,
245
+ "&::before": {
246
+ borderBottom: "none"
247
+ },
248
+ ".MuiSelect-select": {
249
+ fontSize: "21px",
250
+ fontWeight: "bold",
251
+ color: "#16359d",
252
+ padding: "27px 12px 10px !important"
253
+ },
254
+ ".dropdown-list-item, span": {
255
+ position: "relative",
256
+ bottom: "5px"
257
+ },
258
+ ".MuiSvgIcon-root": {
203
259
  fill: "#16359D !important"
204
260
  },
205
- padding: r && r.id > 0 ? "0px" : "4.95px"
261
+ padding: r.symbol !== "" ? "0px" : "4.95px"
206
262
  },
207
- className: s["buy-select-dd"],
208
- value: r && r.id,
263
+ className: "buy-select-dd",
209
264
  variant: "filled",
265
+ value: r && r.symbol,
210
266
  displayEmpty: !0,
211
- onChange: (t) => V(t.target.value),
267
+ onChange: (t) => oe(t.target.value),
212
268
  onOpen: (t) => {
213
- R(!0), t.preventDefault();
269
+ J(!0), t.preventDefault();
214
270
  },
215
271
  defaultOpen: !1,
216
272
  open: !1,
217
- error: F,
273
+ error: L,
218
274
  children: [
219
- /* @__PURE__ */ e(x, { value: "", children: "Please select input" }),
220
- v.map((t) => /* @__PURE__ */ n(x, { value: t.id, children: [
221
- /* @__PURE__ */ e(te, { className: s["dropdown-list-item"], children: /* @__PURE__ */ e(
275
+ /* @__PURE__ */ e(k, { value: "", children: "Please select input" }),
276
+ M.map((t) => /* @__PURE__ */ a(k, { value: t.symbol, children: [
277
+ /* @__PURE__ */ e(me, { className: s["dropdown-list-item"], children: /* @__PURE__ */ e(
222
278
  "img",
223
279
  {
224
280
  src: t.icon_uri,
@@ -235,11 +291,11 @@ import '../../../assets/index2.css';const Be = "_label_cuehd_1", De = "_amount_c
235
291
  ]
236
292
  }
237
293
  ) }),
238
- q && /* @__PURE__ */ e(i, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: q }) })
294
+ ee && /* @__PURE__ */ e(l, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: ee }) })
239
295
  ] }),
240
- /* @__PURE__ */ n(l, { mt: 4, container: !0, children: [
241
- /* @__PURE__ */ e(l, { item: !0, xs: 4, children: /* @__PURE__ */ e(
242
- i,
296
+ /* @__PURE__ */ a(n, { mt: 4, container: !0, children: [
297
+ /* @__PURE__ */ e(n, { item: !0, xs: 4, children: /* @__PURE__ */ e(
298
+ l,
243
299
  {
244
300
  className: s.label,
245
301
  variant: "caption",
@@ -248,78 +304,100 @@ import '../../../assets/index2.css';const Be = "_label_cuehd_1", De = "_amount_c
248
304
  }
249
305
  ) }),
250
306
  /* @__PURE__ */ e(
251
- l,
307
+ n,
252
308
  {
253
309
  sx: { marginTop: "-20px" },
254
310
  className: "text-center",
255
311
  item: !0,
256
312
  xs: 4,
257
- children: /* @__PURE__ */ e("img", { src: Oe, alt: "arrow" })
313
+ children: /* @__PURE__ */ e("img", { src: Ke, alt: "arrow" })
258
314
  }
259
315
  )
260
316
  ] }),
261
- /* @__PURE__ */ n(l, { mt: 0.5, container: !0, children: [
262
- /* @__PURE__ */ e(l, { item: !0, xs: 6, children: /* @__PURE__ */ n(f, { className: s.amount, fullWidth: !0, children: [
263
- /* @__PURE__ */ e(
264
- Z,
265
- {
266
- value: g && parseFloat(g).toFixed(5),
267
- type: "text",
268
- readOnly: !0,
269
- fullWidth: !0
270
- }
271
- ),
272
- /* @__PURE__ */ e(ee, { className: s["amount-symbol"], children: z > 0 ? "$" + (z * 1).toFixed(2) : /* @__PURE__ */ e(u, { children: " " }) })
273
- ] }) }),
274
- /* @__PURE__ */ e(l, { item: !0, xs: 6, className: "content-center", children: W ? /* @__PURE__ */ e(
275
- d,
317
+ /* @__PURE__ */ a(n, { mt: 0.5, container: !0, children: [
318
+ /* @__PURE__ */ e(n, { item: !0, xs: 6, children: /* @__PURE__ */ a(
319
+ y,
320
+ {
321
+ className: `${s.amount} ${s["fiat-field"]}`,
322
+ fullWidth: !0,
323
+ children: [
324
+ /* @__PURE__ */ e(
325
+ A,
326
+ {
327
+ disableUnderline: !0,
328
+ value: C && parseFloat(C).toFixed(5),
329
+ type: "text",
330
+ readOnly: !0,
331
+ fullWidth: !0
332
+ }
333
+ ),
334
+ /* @__PURE__ */ e(ce, { className: s["amount-symbol"], children: j > 0 ? "$" + (j * 1).toFixed(2) : /* @__PURE__ */ e(x, { children: " " }) })
335
+ ]
336
+ }
337
+ ) }),
338
+ /* @__PURE__ */ e(n, { item: !0, xs: 6, className: "content-center", children: _ ? /* @__PURE__ */ e(
339
+ p,
276
340
  {
277
341
  sx: { ml: 1 },
278
342
  size: 30
279
343
  }
280
- ) : /* @__PURE__ */ n(
281
- f,
344
+ ) : /* @__PURE__ */ a(
345
+ y,
282
346
  {
283
347
  variant: "filled",
284
348
  className: `text-left ${s["crypto-picker"]}`,
285
349
  fullWidth: !0,
286
350
  children: [
287
351
  (o == null ? void 0 : o.network) && /* @__PURE__ */ e(
288
- C,
352
+ B,
289
353
  {
290
- className: `${s["network-label"]} ${s[J(o == null ? void 0 : o.network.symbol)]}`,
291
- children: o == null ? void 0 : o.network.symbol
354
+ className: `${s["network-label"]} ${s[se(o == null ? void 0 : o.network.name)]}`,
355
+ children: o == null ? void 0 : o.network.name
292
356
  }
293
357
  ),
294
- /* @__PURE__ */ n(
295
- L,
358
+ /* @__PURE__ */ a(
359
+ U,
296
360
  {
361
+ input: /* @__PURE__ */ e(A, { disableUnderline: !0 }),
297
362
  sx: {
298
- fontWeight: "bold",
299
- ".MuiSvgIcon-root ": {
363
+ borderTopLeftRadius: 0,
364
+ "&::before": {
365
+ borderBottom: "none"
366
+ },
367
+ ".MuiSelect-select": {
368
+ fontSize: "21px",
369
+ fontWeight: "bold",
370
+ color: "#16359d",
371
+ padding: "27px 12px 10px !important"
372
+ },
373
+ ".dropdown-list-item, span": {
374
+ position: "relative",
375
+ bottom: "5px"
376
+ },
377
+ ".MuiSvgIcon-root": {
300
378
  fill: "#16359D !important"
301
379
  },
302
- padding: o && o.id > 0 ? "0px" : "4.95px"
380
+ padding: o && o.symbol !== "" ? "0px" : "4.95px"
303
381
  },
304
- className: s["buy-select-dd"],
382
+ className: "buy-select-dd",
305
383
  variant: "filled",
306
- value: o && o.id,
384
+ value: o && o.symbol,
307
385
  displayEmpty: !0,
308
- onChange: (t) => j(t.target.value),
386
+ onChange: (t) => re(t.target.value),
309
387
  onOpen: (t) => {
310
- T(!0), t.preventDefault();
388
+ V(!0), t.preventDefault();
311
389
  },
312
390
  defaultOpen: !1,
313
391
  open: !1,
314
392
  children: [
315
- /* @__PURE__ */ e(x, { value: "", children: "Please select output" }),
316
- I.map((t) => /* @__PURE__ */ n(x, { value: t.id, children: [
317
- /* @__PURE__ */ e(te, { className: s["dropdown-list-item"], children: /* @__PURE__ */ e(
393
+ /* @__PURE__ */ e(k, { value: "", children: "Please select output" }),
394
+ b && b.map((t) => /* @__PURE__ */ a(k, { value: t.symbol, children: [
395
+ /* @__PURE__ */ e(me, { className: s["dropdown-list-item"], children: /* @__PURE__ */ e(
318
396
  "img",
319
397
  {
320
398
  src: t.icon_uri,
321
- onError: ({ currentTarget: c }) => {
322
- c.onerror = null, c.src = Me;
399
+ onError: ({ currentTarget: i }) => {
400
+ i.onerror = null, i.src = We;
323
401
  },
324
402
  alt: "tokenImage",
325
403
  width: "40",
@@ -335,21 +413,21 @@ import '../../../assets/index2.css';const Be = "_label_cuehd_1", De = "_amount_c
335
413
  }
336
414
  ) })
337
415
  ] }),
338
- /* @__PURE__ */ e(h, { mt: 2.5, className: s["fee-area"], children: /* @__PURE__ */ n(l, { container: !0, children: [
339
- /* @__PURE__ */ e(l, { className: "text-left", item: !0, xs: 12, children: /* @__PURE__ */ n(
340
- ae,
416
+ /* @__PURE__ */ e(w, { mt: 2.5, className: s["fee-area"], children: /* @__PURE__ */ a(n, { container: !0, children: [
417
+ /* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 12, children: /* @__PURE__ */ a(
418
+ de,
341
419
  {
342
420
  sx: { padding: "0" },
343
- onClick: () => ue((t) => !t),
421
+ onClick: () => ye((t) => !t),
344
422
  disableFocusRipple: !0,
345
423
  disableRipple: !0,
346
424
  children: [
347
- /* @__PURE__ */ e(i, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Fee Calculation" }) }),
425
+ /* @__PURE__ */ e(l, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Fee Calculation" }) }),
348
426
  /* @__PURE__ */ e(
349
- Ce,
427
+ Ee,
350
428
  {
351
429
  sx: {
352
- transform: `rotate(${P ? "90" : "0"}deg)`,
430
+ transform: `rotate(${Q ? "90" : "0"}deg)`,
353
431
  fontSize: "15px"
354
432
  }
355
433
  }
@@ -357,134 +435,112 @@ import '../../../assets/index2.css';const Be = "_label_cuehd_1", De = "_amount_c
357
435
  ]
358
436
  }
359
437
  ) }),
360
- P && /* @__PURE__ */ n(u, { children: [
361
- /* @__PURE__ */ e(l, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Everest Fee" }) }),
362
- /* @__PURE__ */ e(l, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ n(i, { variant: "caption", children: [
363
- S,
364
- _ ? /* @__PURE__ */ e(
365
- d,
438
+ Q && /* @__PURE__ */ a(x, { children: [
439
+ /* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Everest Fee" }) }),
440
+ /* @__PURE__ */ e(n, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
441
+ $,
442
+ S ? /* @__PURE__ */ e(
443
+ p,
366
444
  {
367
445
  sx: { ml: 1 },
368
446
  size: 15
369
447
  }
370
- ) : le.toFixed(2)
448
+ ) : H.toFixed(2)
371
449
  ] }) }),
372
- /* @__PURE__ */ e(l, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Network Fee" }) }),
373
- /* @__PURE__ */ e(l, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ n(i, { variant: "caption", children: [
374
- S,
375
- _ ? /* @__PURE__ */ e(
376
- d,
450
+ /* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Network Fee" }) }),
451
+ /* @__PURE__ */ e(n, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
452
+ $,
453
+ S ? /* @__PURE__ */ e(
454
+ p,
377
455
  {
378
456
  sx: { ml: 1 },
379
457
  size: 15
380
458
  }
381
- ) : se.toFixed(2)
459
+ ) : K.toFixed(2)
382
460
  ] }) })
383
461
  ] }),
384
- /* @__PURE__ */ e(l, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Total Fees" }) }),
385
- /* @__PURE__ */ e(l, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ n(i, { variant: "caption", children: [
386
- S,
387
- _ ? /* @__PURE__ */ e(
388
- d,
462
+ /* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Total Fees" }) }),
463
+ /* @__PURE__ */ e(n, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
464
+ $,
465
+ S ? /* @__PURE__ */ e(
466
+ p,
389
467
  {
390
468
  sx: { ml: 1 },
391
469
  size: 15
392
470
  }
393
- ) : re.toFixed(2)
471
+ ) : Number(ge).toFixed(2)
394
472
  ] }) }),
395
- o && r && /* @__PURE__ */ n(u, { children: [
396
- /* @__PURE__ */ e(l, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ n(i, { variant: "caption", children: [
473
+ o && r && /* @__PURE__ */ a(x, { children: [
474
+ /* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
397
475
  "1 ",
398
476
  r == null ? void 0 : r.symbol,
399
477
  " ",
400
- /* @__PURE__ */ e(Ee, { title: Re, placement: "right", children: /* @__PURE__ */ e(ae, { className: s["info-fee-icon"], children: /* @__PURE__ */ e(Le, { sx: { fontSize: "14px" } }) }) })
478
+ /* @__PURE__ */ e(Ve, { title: Xe, placement: "right", children: /* @__PURE__ */ e(de, { className: s["info-fee-icon"], children: /* @__PURE__ */ e(Le, { sx: { fontSize: "14px" } }) }) })
401
479
  ] }) }),
402
- /* @__PURE__ */ e(l, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: _ ? /* @__PURE__ */ e(
403
- d,
480
+ /* @__PURE__ */ e(n, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: S ? /* @__PURE__ */ e(
481
+ p,
404
482
  {
405
483
  sx: { ml: 1 },
406
484
  size: 15
407
485
  }
408
- ) : parseFloat(H).toFixed(6) + " " + (o == null ? void 0 : o.symbol) }) })
486
+ ) : parseFloat(xe).toFixed(6) + " " + (o == null ? void 0 : o.symbol) }) })
409
487
  ] })
410
488
  ] }) }),
411
- /* @__PURE__ */ e(
412
- Pe,
489
+ /* @__PURE__ */ e(w, { sx: { alignItems: "left", width: "100%" }, children: he ? /* @__PURE__ */ e(w, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(p, {}) }) : /* @__PURE__ */ e(x, { children: /* @__PURE__ */ a(
490
+ y,
413
491
  {
414
- disabled: !k,
415
- walletAddress: he,
416
- from: "swap",
417
- addressHandler: be
492
+ variant: "filled",
493
+ fullWidth: !0,
494
+ children: [
495
+ !h && /* @__PURE__ */ e(B, { children: "Select wallet address" }),
496
+ /* @__PURE__ */ e(
497
+ U,
498
+ {
499
+ value: h,
500
+ onChange: (t) => Te(t.target.value),
501
+ children: fe.map((t, i) => /* @__PURE__ */ e(k, { value: t.address, children: t.name + "(" + t.address + ")" }, i))
502
+ }
503
+ )
504
+ ]
418
505
  }
419
- ),
420
- /* @__PURE__ */ e(h, { sx: { alignItems: "left", width: "100%" }, children: fe ? /* @__PURE__ */ e(h, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(d, {}) }) : /* @__PURE__ */ n(u, { children: [
421
- /* @__PURE__ */ e(
422
- i,
423
- {
424
- className: s["wallet-caption-text"],
425
- mt: 1,
426
- mb: 1,
427
- variant: "caption",
428
- component: "p",
429
- children: "Or"
430
- }
431
- ),
432
- /* @__PURE__ */ n(
433
- f,
434
- {
435
- variant: "filled",
436
- fullWidth: !0,
437
- children: [
438
- !D && /* @__PURE__ */ e(C, { children: "Select wallet address" }),
439
- /* @__PURE__ */ e(
440
- L,
441
- {
442
- value: D,
443
- onChange: (t) => ve(t.target.value),
444
- children: xe.map((t, c) => /* @__PURE__ */ e(x, { value: t.address, children: t.name + "(" + t.address + ")" }, c))
445
- }
446
- )
447
- ]
448
- }
449
- )
450
- ] }) }),
451
- /* @__PURE__ */ e(h, { mt: 4, children: /* @__PURE__ */ e(
452
- ze,
506
+ ) }) }),
507
+ /* @__PURE__ */ e(w, { mt: 4, children: /* @__PURE__ */ e(
508
+ tt,
453
509
  {
454
510
  className: "wallet-btn",
455
511
  fullWidth: !0,
456
512
  variant: "contained",
457
- onClick: ye,
458
- disabled: F || !g,
459
- children: /* @__PURE__ */ e("strong", { children: $ ? /* @__PURE__ */ n(u, { children: [
460
- /* @__PURE__ */ e(d, { size: 15, color: "inherit" }),
513
+ onClick: Ie,
514
+ disabled: L || !C,
515
+ children: /* @__PURE__ */ e("strong", { children: W ? /* @__PURE__ */ a(x, { children: [
516
+ /* @__PURE__ */ e(p, { size: 15, color: "inherit" }),
461
517
  " Processing..."
462
518
  ] }) : "Swap" })
463
519
  }
464
520
  ) })
465
521
  ] }),
466
522
  /* @__PURE__ */ e(
467
- K,
523
+ ie,
468
524
  {
469
- open: ie,
470
- setModal: R,
471
- loader: E,
472
- tokenList: v,
473
- tokenSelect: V
525
+ open: we,
526
+ setModal: J,
527
+ loader: _,
528
+ tokenList: M,
529
+ tokenSelect: oe
474
530
  }
475
531
  ),
476
532
  /* @__PURE__ */ e(
477
- K,
533
+ ie,
478
534
  {
479
- open: oe,
480
- setModal: T,
481
- loader: W,
482
- tokenList: I,
483
- tokenSelect: j
535
+ open: ve,
536
+ setModal: V,
537
+ loader: _,
538
+ tokenList: b ?? [],
539
+ tokenSelect: re
484
540
  }
485
541
  )
486
542
  ] });
487
- };
543
+ }, Vt = Je(rt);
488
544
  export {
489
- Yt as default
545
+ Vt as default
490
546
  };