@blockend/widget 1.0.39-beta.1 → 1.0.39

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 (110) hide show
  1. package/dist/{AllRoutes-pVn5r2AF.js → AllRoutes-qDXVEBq_.js} +17 -17
  2. package/dist/{Box-2EhEu03K.js → Box-DkvAdVmJ.js} +1 -1
  3. package/dist/{EstGas-WwkfFHpv.js → EstGas-CwWMUtsV.js} +224 -54
  4. package/dist/{Grow-D4EVow-M.js → Grow-w3xFin50.js} +2 -2
  5. package/dist/{InputComp-DQBDoD71.js → InputComp-DRGHX0JB.js} +6 -6
  6. package/dist/{LoadRoute-42ZgErfe.js → LoadRoute-Dgxq32oV.js} +39 -39
  7. package/dist/{QuotesProgress-CTlZ7elT.js → QuotesProgress-mMpawJHx.js} +1 -1
  8. package/dist/{SwapAsset-CU5YEZ75.js → SwapAsset-Cm3PfEdc.js} +17 -4
  9. package/dist/{Tooltip-DSOAqpED.js → Tooltip-BQd46Vx1.js} +3 -3
  10. package/dist/{TxnButton-CfruxaOs.js → TxnButton-C7D4coqw.js} +19 -19
  11. package/dist/{add-DayuYwbp.js → add-DJRptrWn.js} +1 -1
  12. package/dist/{all-wallets-B7lOWwQ-.js → all-wallets-BEwoK0hI.js} +1 -1
  13. package/dist/{app-store-CWVen5K_.js → app-store-BO2d_fOI.js} +1 -1
  14. package/dist/{apple-Xce5ePDw.js → apple-D4_HcFag.js} +1 -1
  15. package/dist/{arrow-bottom-circle-m6M-yL2m.js → arrow-bottom-circle-Czbe973X.js} +1 -1
  16. package/dist/{arrow-bottom-CJ5QodIU.js → arrow-bottom-zyNIGfu0.js} +1 -1
  17. package/dist/{arrow-left-gbgYje3p.js → arrow-left-2Hi0GW--.js} +1 -1
  18. package/dist/{arrow-right-BWBYQ-3w.js → arrow-right-DsstxcUl.js} +1 -1
  19. package/dist/{arrow-top-TV0fK_PC.js → arrow-top-Dne06L8p.js} +1 -1
  20. package/dist/{bank-D5WUpbbn.js → bank-BmHmaR1d.js} +1 -1
  21. package/dist/{basic-yKyoIw_n.js → basic-Bhds2Wiy.js} +3 -3
  22. package/dist/{browser-C1Gw-601.js → browser-CjYfBUW5.js} +1 -1
  23. package/dist/{card-BGu7Ytfr.js → card-Bi7Hbsfs.js} +1 -1
  24. package/dist/{ccip-8pKaCE7W.js → ccip-B-yKJCDq.js} +1 -1
  25. package/dist/{checkmark-bold-C-Za8drF.js → checkmark-bold-CcJ3JQev.js} +1 -1
  26. package/dist/{checkmark-DXjp9482.js → checkmark-zC82vmPx.js} +1 -1
  27. package/dist/{chevron-bottom-pyAIkjST.js → chevron-bottom-mKbX_tpu.js} +1 -1
  28. package/dist/{chevron-left-Fo0wnlZX.js → chevron-left-CfsLd6Kh.js} +1 -1
  29. package/dist/{chevron-right-DkmxB-lW.js → chevron-right-Cis0mx_w.js} +1 -1
  30. package/dist/{chevron-top-r9CVQcQg.js → chevron-top-BZ7z4zOm.js} +1 -1
  31. package/dist/{chrome-store-CRlb0bJh.js → chrome-store-xJbsiNft.js} +1 -1
  32. package/dist/{clock-TqJS2h0Z.js → clock-BST36xyV.js} +1 -1
  33. package/dist/{close-C2cPb_3q.js → close-CUnRl6rj.js} +1 -1
  34. package/dist/{coinPlaceholder-D-_tUshz.js → coinPlaceholder-eRYldXBb.js} +1 -1
  35. package/dist/{compass-D-JOMMbC.js → compass-B53Amzmz.js} +1 -1
  36. package/dist/{copy-CS7IA_r_.js → copy-CeMF3vNH.js} +1 -1
  37. package/dist/{core-DbjedOio.js → core-Ba7AWU2F.js} +3 -3
  38. package/dist/{cursor-3K2-QZLT.js → cursor-BXkX3Iej.js} +1 -1
  39. package/dist/{cursor-transparent-DKdHMJra.js → cursor-transparent-vN3U0Y44.js} +1 -1
  40. package/dist/{desktop-CAxsE6Ga.js → desktop-CQcrUlG2.js} +1 -1
  41. package/dist/{disconnect-Dc-LNqNb.js → disconnect-DqjgPdZy.js} +1 -1
  42. package/dist/{discord-VfiQtaLg.js → discord-CAeZvfjm.js} +1 -1
  43. package/dist/{down-C69EIwo1.js → down-C7Cxaule.js} +4 -4
  44. package/dist/{etherscan-nfJcVg9R.js → etherscan-BepqbIgx.js} +1 -1
  45. package/dist/{exclamation-triangle-DaMU5L_4.js → exclamation-triangle-BQlxBTQb.js} +1 -1
  46. package/dist/{extension-BaO8FLXh.js → extension-DNJRGdDb.js} +1 -1
  47. package/dist/{external-link-B9oCkuPJ.js → external-link-CvRsvpXe.js} +1 -1
  48. package/dist/{facebook-nSdQubUH.js → facebook-C_xJkTY_.js} +1 -1
  49. package/dist/{farcaster-BtInSUqS.js → farcaster-BmW5dRUe.js} +1 -1
  50. package/dist/{filters-C9LrueAm.js → filters-BC3dndy5.js} +1 -1
  51. package/dist/{getChainIds-CQg6djVc.js → getChainIds-rz0R4QLM.js} +2 -2
  52. package/dist/{getCosmosAddress-Qwk5Y2WB.js → getCosmosAddress-DwtEOPre.js} +2 -2
  53. package/dist/{github-BVzfRJXr.js → github-SFKWAQKv.js} +1 -1
  54. package/dist/{google-C_Zkq44M.js → google-CTJCrgwS.js} +1 -1
  55. package/dist/{hamburger-Bss9ENTU.js → hamburger-Bz6xyfny.js} +5 -5
  56. package/dist/{help-circle-D9KC2TTg.js → help-circle-tDDI6xDF.js} +1 -1
  57. package/dist/{id-D5ODDUPi.js → id-HUj92mdR.js} +1 -1
  58. package/dist/{image-D9BguVkX.js → image-kh61TiAZ.js} +1 -1
  59. package/dist/{index-mLOjEWq5.js → index-51ZOYWe6.js} +46 -20
  60. package/dist/{index-B-LMuVus.js → index-BIrmH9KU.js} +6 -6
  61. package/dist/{index-DTTNs7X2.js → index-Bp8YmQ0W.js} +1 -1
  62. package/dist/{index-B-Y6H6ZT.js → index-C59cU9Oj.js} +2 -2
  63. package/dist/{index-Csnr5wYZ.js → index-COJO0042.js} +142 -116
  64. package/dist/{index-B8BzdUYX.js → index-CbrDck1Q.js} +396 -396
  65. package/dist/{index-D7cNHH01.js → index-CzOzce-R.js} +1 -1
  66. package/dist/{index-Bknn7U1s.js → index-DRvmXt-Y.js} +87 -41
  67. package/dist/{index-C3Yx39QI.js → index-DgfOGyG9.js} +109 -43
  68. package/dist/{index-CCJxyv13.js → index-MSX0Gdx1.js} +1723 -1723
  69. package/dist/{index-D1suJrBe.js → index-u7LhDe5x.js} +78 -78
  70. package/dist/{index.es-J7Adt0qn.js → index.es-BVl6m7Pn.js} +2 -2
  71. package/dist/{index.es-BvpkVeYn.js → index.es-CVMqdfN3.js} +1 -1
  72. package/dist/index.es.js +1 -1
  73. package/dist/{info-BbZu8EmP.js → info-CqS3XBRw.js} +1 -1
  74. package/dist/{info-circle-DC4d8t58.js → info-circle-rygiOkU3.js} +1 -1
  75. package/dist/{lightbulb-B_XHWcwO.js → lightbulb-CKEjyRaf.js} +1 -1
  76. package/dist/{mail-DUBlSWnW.js → mail-BWMwauvE.js} +1 -1
  77. package/dist/{mobile-DW7n1RaC.js → mobile-68osTp4b.js} +1 -1
  78. package/dist/{more-CHiJ0jdA.js → more-BC8GE3IW.js} +1 -1
  79. package/dist/{network-placeholder-fkXdFnU3.js → network-placeholder--GIoATy6.js} +1 -1
  80. package/dist/{nftPlaceholder-CzdJZ_xc.js → nftPlaceholder-Dp8gBk3E.js} +1 -1
  81. package/dist/{off-liaZCdZH.js → off-DBKQ2uD0.js} +1 -1
  82. package/dist/{play-store-Dlmh4PlW.js → play-store-DLXuifjq.js} +1 -1
  83. package/dist/{plus-QBGWemZZ.js → plus-B2UVpZoZ.js} +1 -1
  84. package/dist/{qr-code-2rARSIxP.js → qr-code-B70pCkf_.js} +1 -1
  85. package/dist/{recycle-horizontal-DByCihYW.js → recycle-horizontal-f1-LcR5k.js} +1 -1
  86. package/dist/{refresh-BFM457iN.js → refresh-DqxcTS2O.js} +1 -1
  87. package/dist/{reown-logo-C9dbpsPZ.js → reown-logo-DPYJPO0J.js} +1 -1
  88. package/dist/{search-_GMCgtU4.js → search-C2ANVg9Q.js} +1 -1
  89. package/dist/{send-CBnSvpXY.js → send-jEzvJdO5.js} +1 -1
  90. package/dist/{swapHorizontal-BiN3nSBx.js → swapHorizontal-DsfyOh5t.js} +1 -1
  91. package/dist/{swapHorizontalBold-CAWIrlnq.js → swapHorizontalBold-BklgdCvD.js} +1 -1
  92. package/dist/{swapHorizontalMedium-DrfkO94z.js → swapHorizontalMedium-xuE1OPS7.js} +1 -1
  93. package/dist/{swapHorizontalRoundedBold-DbJnc4Gs.js → swapHorizontalRoundedBold-DXR4a277.js} +1 -1
  94. package/dist/{swapVertical-nx3G0q67.js → swapVertical-BaTPHjiX.js} +1 -1
  95. package/dist/{telegram-BBmONWiX.js → telegram-nFLInMdI.js} +1 -1
  96. package/dist/{three-dots-CxLcYR_u.js → three-dots-CkFcJxrL.js} +1 -1
  97. package/dist/{twitch-BCER0FU2.js → twitch-DRXpD9lS.js} +1 -1
  98. package/dist/{twitterIcon-D7lNSGDl.js → twitterIcon-DILOWGoL.js} +1 -1
  99. package/dist/{unsupportedProp-Cgx_R3Ro.js → unsupportedProp-wLSeuqFw.js} +1 -1
  100. package/dist/{useRegisterError-CIj7yT4N.js → useRegisterError-Bcj3H5Px.js} +1 -1
  101. package/dist/{verify-BtPqlMYv.js → verify-dxcsdtk9.js} +1 -1
  102. package/dist/{verify-filled-D69dNjXa.js → verify-filled-BHXk8ei0.js} +1 -1
  103. package/dist/{w3m-modal-BRaqvs1m.js → w3m-modal-CLvDtp4W.js} +2 -2
  104. package/dist/{wallet-B0uYbj_y.js → wallet-j7M44X01.js} +1 -1
  105. package/dist/{wallet-placeholder-C64Kayjj.js → wallet-placeholder-8MIkVS8L.js} +1 -1
  106. package/dist/{walletconnect-Bl6U4E40.js → walletconnect-DP64PiDx.js} +1 -1
  107. package/dist/{warning-circle-DdcOPYkT.js → warning-circle-BLBqorXY.js} +1 -1
  108. package/dist/widget.css +1 -1
  109. package/dist/{x-PEBthjJm.js → x-jWwE-bx-.js} +1 -1
  110. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
1
  import { jsxs as u, jsx as e, Fragment as K } from "react/jsx-runtime";
2
2
  import de, { useState as N, useEffect as B, useRef as I1, Suspense as B1 } from "react";
3
- import { B as A1, i as Ee, u as ke, F as De, f as $e, C as _e, W as s1 } from "./useRegisterError-CIj7yT4N.js";
4
- import { u as l, l as pe, a as i1, c as Ve, S as j1, M as P1 } from "./index-CCJxyv13.js";
5
- import { C as L1, M as F1, g as e1 } from "./getChainIds-CQg6djVc.js";
6
- import { useQuery as a1 } from "@tanstack/react-query";
3
+ import { B as A1, i as Ee, u as ke, F as De, f as $e, C as _e, W as s1 } from "./useRegisterError-Bcj3H5Px.js";
4
+ import { u as a, l as pe, a as i1, c as Ve, S as j1, M as P1 } from "./index-MSX0Gdx1.js";
5
+ import { C as L1, M as F1, g as e1 } from "./getChainIds-rz0R4QLM.js";
6
+ import { useQuery as l1 } from "@tanstack/react-query";
7
7
  import { useAccount as ge, useConnect as M1, useConnections as E1, useBalance as O1 } from "wagmi";
8
8
  import { useDynamicContext as Ne, useIsLoggedIn as R1, useUserWallets as $1 } from "@dynamic-labs/sdk-react-core";
9
9
  import { S as _1 } from "./shareicon-CG3v7iKI.js";
10
- import { u as V1, B as z1 } from "./index-B-Y6H6ZT.js";
11
- import { useAccount as Oe, useStargateClient as l1, useSuggestChainAndConnect as S1, WalletType as Z1 } from "graz";
12
- import { S as H1, D as G1 } from "./down-C69EIwo1.js";
10
+ import { u as V1, B as z1 } from "./index-C59cU9Oj.js";
11
+ import { useAccount as Oe, useStargateClient as a1, useSuggestChainAndConnect as S1, WalletType as Z1 } from "graz";
12
+ import { S as H1, D as G1 } from "./down-C7Cxaule.js";
13
13
  import { R as K1 } from "./index-CDq3vNnP.js";
14
- import { C as ze, P as be, u as J1, g as t1 } from "./getCosmosAddress-Qwk5Y2WB.js";
14
+ import { C as ze, P as be, u as J1, g as t1 } from "./getCosmosAddress-DwtEOPre.js";
15
15
  function c1({ fill: t }) {
16
16
  return /* @__PURE__ */ u(
17
17
  "svg",
@@ -47,7 +47,7 @@ function c1({ fill: t }) {
47
47
  );
48
48
  }
49
49
  function q1({ data: t, handleBack: n, handleSetChainData: o, network: s }) {
50
- const [r, c] = N(t), [b, d] = N(""), { tick: a, defaultCoin: p } = Ee;
50
+ const [r, c] = N(t), [b, d] = N(""), { tick: l, defaultCoin: p } = Ee;
51
51
  return /* @__PURE__ */ u("div", { children: [
52
52
  /* @__PURE__ */ u("div", { className: "bw-flex bw-relative bw-justify-center bw-mb-2", children: [
53
53
  /* @__PURE__ */ e(
@@ -106,7 +106,7 @@ function q1({ data: t, handleBack: n, handleSetChainData: o, network: s }) {
106
106
  /* @__PURE__ */ e("img", { src: (T = y.image) != null && T.length ? y.image : p, className: "bw-rounded-[50%] bw-border bw-border-border-primary", width: 25, height: 25, alt: "img" }),
107
107
  " ",
108
108
  /* @__PURE__ */ e("p", { children: y.name }),
109
- s.chain === y.name ? /* @__PURE__ */ e("img", { src: a, width: 10, height: 10, alt: "img" }) : /* @__PURE__ */ e(K, {})
109
+ s.chain === y.name ? /* @__PURE__ */ e("img", { src: l, width: 10, height: 10, alt: "img" }) : /* @__PURE__ */ e(K, {})
110
110
  ] }),
111
111
  /* @__PURE__ */ u("div", { className: "bw-pr-2", children: [
112
112
  /* @__PURE__ */ e("p", { className: "bw-text-xs bw-font-normal", children: "Tokens" }),
@@ -128,18 +128,18 @@ function W1(t) {
128
128
  return t.slice(0, 2) === "0x" ? !0 : n ? t == n : !1;
129
129
  }
130
130
  function U1(t) {
131
- const [n, o] = N({}), s = l((a) => a.cosmosChainIds), { data: r } = Oe({
131
+ const [n, o] = N({}), s = a((l) => l.cosmosChainIds), { data: r } = Oe({
132
132
  chainId: s,
133
133
  multiChain: !0
134
- }), c = l((a) => a.fromChain), { data: b } = l1({
134
+ }), c = a((l) => l.fromChain), { data: b } = a1({
135
135
  chainId: [(t == null ? void 0 : t.chainId) || c.chainId],
136
136
  multiChain: !0
137
137
  });
138
- async function d(a) {
138
+ async function d(l) {
139
139
  var p, y;
140
- if ((p = r == null ? void 0 : r[a]) != null && p.bech32Address && b) {
141
- let T = await (b[a] || b).getAllBalances(
142
- (y = r == null ? void 0 : r[a]) == null ? void 0 : y.bech32Address
140
+ if ((p = r == null ? void 0 : r[l]) != null && p.bech32Address && b) {
141
+ let T = await (b[l] || b).getAllBalances(
142
+ (y = r == null ? void 0 : r[l]) == null ? void 0 : y.bech32Address
143
143
  ), P = pe.keyBy(T, "denom");
144
144
  o(P);
145
145
  }
@@ -218,24 +218,24 @@ function D1({ selectedChain: t }) {
218
218
  }
219
219
  const et = de.memo(function({ selectChainState: n, value: o, handleClosePopup: s, showExchangeList: r, setCoinData: c, setChainData: b }) {
220
220
  var Be, Ae;
221
- l((w) => w.searchCustomCoin);
222
- const d = l((w) => w.setSearchCustomCoin), { ref: a, inView: p } = V1(), { getWallet: y } = ke({}), { connected: I, address: T } = i1(), { isConnected: P, address: f } = ge(), { primaryWallet: h } = Ne();
221
+ a((w) => w.searchCustomCoin);
222
+ const d = a((w) => w.setSearchCustomCoin), { ref: l, inView: p } = V1(), { getWallet: y } = ke({}), { connected: I, address: T } = i1(), { isConnected: P, address: f } = ge(), { primaryWallet: h } = Ne();
223
223
  R1();
224
- const C = y(n), A = l((w) => w.fromChain), v = l((w) => w.fromCoin), Z = l((w) => w.toChain), H = l((w) => w.toCoin), [re, L] = N(!1), { cosmosBalance: R } = U1(n), { defaultCoin: _ } = Ee, [J, g] = N(0), m = I1(null), { data: k } = Oe({
224
+ const C = y(n), A = a((w) => w.fromChain), v = a((w) => w.fromCoin), Z = a((w) => w.toChain), H = a((w) => w.toCoin), [re, L] = N(!1), { cosmosBalance: R } = U1(n), { defaultCoin: _ } = Ee, [J, g] = N(0), m = I1(null), { data: k } = Oe({
225
225
  chainId: [n.chainId],
226
226
  multiChain: !0
227
- }), M = (n == null ? void 0 : n.networkType) === "evm" && f || (n == null ? void 0 : n.networkType) === "sol" && (h == null ? void 0 : h.address) || (n == null ? void 0 : n.networkType) === "tron" && T || (n == null ? void 0 : n.networkType) === "cosmos" && ((Be = k == null ? void 0 : k[n == null ? void 0 : n.chainId]) == null ? void 0 : Be.bech32Address), F = l((w) => w.toDisconnect);
228
- l((w) => w.setToDisconnect);
229
- const x = l((w) => w.customWallet), O = l((w) => w.setCustomWallet), $ = l((w) => w.tokens), [E, j] = N([]), [V, ie] = N([]), [Te, Y] = N([]), G = $, Q = a1({
227
+ }), M = (n == null ? void 0 : n.networkType) === "evm" && f || (n == null ? void 0 : n.networkType) === "sol" && (h == null ? void 0 : h.address) || (n == null ? void 0 : n.networkType) === "tron" && T || (n == null ? void 0 : n.networkType) === "cosmos" && ((Be = k == null ? void 0 : k[n == null ? void 0 : n.chainId]) == null ? void 0 : Be.bech32Address), F = a((w) => w.toDisconnect);
228
+ a((w) => w.setToDisconnect);
229
+ const x = a((w) => w.customWallet), O = a((w) => w.setCustomWallet), $ = a((w) => w.tokens), [E, j] = N([]), [V, ie] = N([]), [Te, Y] = N([]), G = $, Q = l1({
230
230
  queryKey: ["balance", C == null ? void 0 : C.address, n],
231
231
  queryFn: async () => await (await Ve.fetchBalance(C.address, n.chainId)).json(),
232
232
  enabled: !!((Ae = C == null ? void 0 : C.address) != null && Ae.length && n.chainId),
233
233
  refetchOnWindowFocus: !1
234
234
  });
235
235
  function z(w) {
236
- var ee, le, oe, se, q, W, U, te, S, X, ce, ne;
236
+ var ee, ae, oe, se, q, W, U, te, S, X, ce, ne;
237
237
  let D = b1(w.address);
238
- return w.networkType == "cosmos" ? $e(((ee = R == null ? void 0 : R[D]) == null ? void 0 : ee.amount) / Math.pow(10, w.decimals) || 0) || "" : $e((((W = (q = (se = (oe = (le = Q.data) == null ? void 0 : le.data) == null ? void 0 : oe[n == null ? void 0 : n.networkType]) == null ? void 0 : se[n.chainId]) == null ? void 0 : q[w.address]) == null ? void 0 : W.balance) || 0) / Math.pow(10, ((ne = (ce = (X = (S = (te = (U = Q.data) == null ? void 0 : U.data) == null ? void 0 : te[n == null ? void 0 : n.networkType]) == null ? void 0 : S[n.chainId]) == null ? void 0 : X[w.address]) == null ? void 0 : ce.asset) == null ? void 0 : ne.decimals) || 0) || 0) || "";
238
+ return w.networkType == "cosmos" ? $e(((ee = R == null ? void 0 : R[D]) == null ? void 0 : ee.amount) / Math.pow(10, w.decimals) || 0) || "" : $e((((W = (q = (se = (oe = (ae = Q.data) == null ? void 0 : ae.data) == null ? void 0 : oe[n == null ? void 0 : n.networkType]) == null ? void 0 : se[n.chainId]) == null ? void 0 : q[w.address]) == null ? void 0 : W.balance) || 0) / Math.pow(10, ((ne = (ce = (X = (S = (te = (U = Q.data) == null ? void 0 : U.data) == null ? void 0 : te[n == null ? void 0 : n.networkType]) == null ? void 0 : S[n.chainId]) == null ? void 0 : X[w.address]) == null ? void 0 : ce.asset) == null ? void 0 : ne.decimals) || 0) || 0) || "";
239
239
  }
240
240
  B(() => {
241
241
  o.length > 40 && W1(o) && !V.length ? (L(!0), d({
@@ -261,7 +261,7 @@ const et = de.memo(function({ selectChainState: n, value: o, handleClosePopup: s
261
261
  return ((W = q.name) == null ? void 0 : W.toLowerCase().includes(o == null ? void 0 : o.toLowerCase())) || ((U = q.symbol) == null ? void 0 : U.toLowerCase().includes(o == null ? void 0 : o.toLowerCase())) || ((S = (te = q.address) == null ? void 0 : te.toLowerCase()) == null ? void 0 : S.includes(o == null ? void 0 : o.toLowerCase()));
262
262
  })) == null ? void 0 : se.sort((q, W) => {
263
263
  if (M) return z(W) * W.lastPrice - z(q) * q.lastPrice;
264
- }), D = 20, ee = J * D, le = ee + D, oe = w.slice(ee, le);
264
+ }), D = 20, ee = J * D, ae = ee + D, oe = w.slice(ee, ae);
265
265
  J == 0 ? ie([...oe]) : ie([...V, ...oe]);
266
266
  }
267
267
  return B(() => {
@@ -269,31 +269,31 @@ const et = de.memo(function({ selectChainState: n, value: o, handleClosePopup: s
269
269
  }, [E, o, J, M, R, Q.data]), B(() => {
270
270
  p && g((w) => w + 1);
271
271
  }, [p]), /* @__PURE__ */ e("div", { ref: m, className: " bw-h-[200px] bw-pr-2 md:bw-h-[380px] bw-mt-2 bw-overflow-y-auto", children: V && (V == null ? void 0 : V.length) > 0 ? V == null ? void 0 : V.map((w, D, ee) => {
272
- var le, oe, se, q, W, U;
272
+ var ae, oe, se, q, W, U;
273
273
  return /* @__PURE__ */ u(
274
274
  "div",
275
275
  {
276
- ref: ee.length >= 20 && ee.length - 1 === D ? a : null,
276
+ ref: ee.length >= 20 && ee.length - 1 === D ? l : null,
277
277
  className: `bw-py-2
278
278
  ${r == "from" && H._id !== w._id || r == "to" && v._id !== w._id, ""}
279
279
  bw-flex bw-items-center bw-justify-between bw-cursor-pointer bw-border-b bw-border-border-primary
280
280
 
281
281
  }`,
282
282
  onClick: async () => {
283
- var S, X, ce, ne, Ce, ae, we, je, ve, Pe, Le;
283
+ var S, X, ce, ne, Ce, le, we, je, ve, Pe, Le;
284
284
  let te = {
285
285
  // ...coinData,
286
286
  coin: w.symbol,
287
287
  ...w,
288
- availBal: ((Ce = (ne = (ce = (X = (S = Q.data) == null ? void 0 : S.data) == null ? void 0 : X[n == null ? void 0 : n.networkType]) == null ? void 0 : ce[n.chainId]) == null ? void 0 : ne[w.address.toLowerCase()]) == null ? void 0 : Ce.balance) / Math.pow(10, ((Le = (Pe = (ve = (je = (we = (ae = Q.data) == null ? void 0 : ae.data) == null ? void 0 : we[n == null ? void 0 : n.networkType]) == null ? void 0 : je[n == null ? void 0 : n.chainId]) == null ? void 0 : ve[w.address.toLowerCase()]) == null ? void 0 : Pe.asset) == null ? void 0 : Le.decimals) || 0)
288
+ availBal: ((Ce = (ne = (ce = (X = (S = Q.data) == null ? void 0 : S.data) == null ? void 0 : X[n == null ? void 0 : n.networkType]) == null ? void 0 : ce[n.chainId]) == null ? void 0 : ne[w.address.toLowerCase()]) == null ? void 0 : Ce.balance) / Math.pow(10, ((Le = (Pe = (ve = (je = (we = (le = Q.data) == null ? void 0 : le.data) == null ? void 0 : we[n == null ? void 0 : n.networkType]) == null ? void 0 : je[n == null ? void 0 : n.chainId]) == null ? void 0 : ve[w.address.toLowerCase()]) == null ? void 0 : Pe.asset) == null ? void 0 : Le.decimals) || 0)
289
289
  };
290
290
  c(te), b(n), s(n, te), (n == null ? void 0 : n.networkType) === (Z == null ? void 0 : Z.networkType) || (n == null || n.networkType, A == null || A.networkType, O(""));
291
291
  },
292
292
  children: [
293
293
  /* @__PURE__ */ u("div", { className: "bw-flex bw-items-center bw-justify-center bw-w-max bw-gap-x-2", children: [
294
- /* @__PURE__ */ u("div", { className: `bw-relative bw-rounded-[50%] bw-w-[30px] bw-h-[30px] ${(le = w.image) != null && le.length ? "bw-bg-background-secondary" : ""}`, children: [
294
+ /* @__PURE__ */ u("div", { className: `bw-relative bw-rounded-[50%] bw-w-[30px] bw-h-[30px] ${(ae = w.image) != null && ae.length ? "bw-bg-background-coin" : ""}`, children: [
295
295
  (oe = w.image) != null && oe.length ? /* @__PURE__ */ e("img", { src: w.image, className: "bw-rounded-[50%] bw-max-w-[30px] bw-max-h-[30px] bw-object-contain", width: 30, height: 30, alt: "img" }) : /* @__PURE__ */ e("img", { src: _, className: "bw-rounded-[50%]", width: 30, height: 30, alt: "img" }),
296
- (se = n == null ? void 0 : n.image) != null && se.length ? /* @__PURE__ */ e("img", { src: n.image, className: `bw-absolute ${(q = n == null ? void 0 : n.image) != null && q.length ? "bw-bg-background-secondary" : ""} bw-right-0 bw-max-w-[16px] bw-max-h-[16px] bw-object-contain bw-bottom-[-4px] bw-border bw-border-border-primary bw-rounded-[50%]`, width: 16, height: 16, alt: "img" }) : /* @__PURE__ */ e("img", { src: _, className: "bw-absolute bw-bg-background-secondary bw-right-0 bw-bottom-[-4px] bw-border bw-border-border-primary bw-rounded-[50%]", width: 16, height: 16, alt: "img" })
296
+ (se = n == null ? void 0 : n.image) != null && se.length ? /* @__PURE__ */ e("img", { src: n.image, className: `bw-absolute ${(q = n == null ? void 0 : n.image) != null && q.length ? "bw-bg-background-coin" : ""} bw-right-0 bw-max-w-[16px] bw-max-h-[16px] bw-object-contain bw-bottom-[-4px] bw-border bw-border-border-primary bw-rounded-[50%]`, width: 16, height: 16, alt: "img" }) : /* @__PURE__ */ e("img", { src: _, className: "bw-absolute bw-bg-background-coin bw-right-0 bw-bottom-[-4px] bw-border bw-border-border-primary bw-rounded-[50%]", width: 16, height: 16, alt: "img" })
297
297
  ] }),
298
298
  /* @__PURE__ */ u("div", { children: [
299
299
  /* @__PURE__ */ u("p", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: [
@@ -354,12 +354,12 @@ const et = de.memo(function({ selectChainState: n, value: o, handleClosePopup: s
354
354
  });
355
355
  function tt({ setChainData: t, setCoinData: n, handleReset: o, chainData: s, coinData: r, showExchangeList: c, fetchChains: b }) {
356
356
  var g, m, k, M, F;
357
- const [d, a] = N(!1), [p, y] = N(""), I = l((x) => x.tokens), [T, P] = N([]), [f, h] = N(0), [C, A] = N({ chain: "" }), v = l((x) => x.gradient), Z = l((x) => x.configuration), H = l((x) => x.chainObj);
357
+ const [d, l] = N(!1), [p, y] = N(""), I = a((x) => x.tokens), [T, P] = N([]), [f, h] = N(0), [C, A] = N({ chain: "" }), v = a((x) => x.gradient), Z = a((x) => x.configuration), H = a((x) => x.chainObj);
358
358
  B(() => {
359
359
  var x, O, $, E;
360
360
  if ((O = (x = b.data) == null ? void 0 : x.data) != null && O.length) {
361
361
  let j = [...(E = ($ = b.data) == null ? void 0 : $.data) == null ? void 0 : E.slice(0, 9)], V = j.findIndex((z) => z.chainId === "137"), ie = j.findIndex((z) => z.chainId === "324"), Te = j.findIndex((z) => z.chainId === "10"), Y = j.findIndex((z) => z.chainId === "43114");
362
- j.splice(V, 1, H[80094] || {}), j.splice(ie, 1, H[2741] || {}), j.splice(Te, 1, H["eclipse-svm"] || {}), j.splice(Y, 1, H[999] || {}), !!pe.keyBy(j, "chainId")[C.chainId] || (j.pop(), j.push(C)), P(j);
362
+ j.splice(V, 1, H[80094]), j.splice(ie, 1, H[2741]), j.splice(Te, 1, H["eclipse-svm"]), j.splice(Y, 1, H[999]), !!pe.keyBy(j, "chainId")[C.chainId] || (j.pop(), j.push(C)), P(j);
363
363
  }
364
364
  }, [H, (g = b.data) == null ? void 0 : g.data, s, C]), B(() => {
365
365
  A(s);
@@ -375,7 +375,7 @@ function tt({ setChainData: t, setCoinData: n, handleReset: o, chainData: s, coi
375
375
  ($ = x.chain) != null && $.length && ((E = O == null ? void 0 : O.coin) != null && E.length) && o();
376
376
  }
377
377
  function L() {
378
- a(!1);
378
+ l(!1);
379
379
  }
380
380
  function R(x) {
381
381
  A(x);
@@ -439,7 +439,7 @@ function tt({ setChainData: t, setCoinData: n, handleReset: o, chainData: s, coi
439
439
  "div",
440
440
  {
441
441
  onClick: () => {
442
- a(!0);
442
+ l(!0);
443
443
  },
444
444
  className: "bw-p-2 bw-w-full bw-aspect-video bw-bg-background-networkcard bw-rounded-md bw-flex bw-flex-col bw-justify-center bw-items-center",
445
445
  style: { cursor: "pointer" },
@@ -490,7 +490,7 @@ function nt({
490
490
  handleShowWallet: r,
491
491
  setConnectWalletField: c
492
492
  }) {
493
- const [b, d] = N(null), { address: a, chain: p, data: y, disconnect: I, ...T } = t, [P, f] = N(), { connector: h } = ge(), { connectors: C } = M1(), A = () => {
493
+ const [b, d] = N(null), { address: l, chain: p, data: y, disconnect: I, ...T } = t, [P, f] = N(), { connector: h } = ge(), { connectors: C } = M1(), A = () => {
494
494
  c(o), o == "to" ? (v(), n(!0)) : v();
495
495
  };
496
496
  E1(), B(() => {
@@ -509,8 +509,8 @@ function nt({
509
509
  id: "basic-button",
510
510
  style: { fontSize: "12px" },
511
511
  className: "bw-bg-background-container bw-flex bw-items-center bw-justify-center bw-gap-x-2 bw-mb-[4px] bw-w-[100px] bw-h-[25px] bw-rounded-xl bw-border bw-border-border-primary",
512
- children: a ? /* @__PURE__ */ u(K, { children: [
513
- /* @__PURE__ */ e("p", { className: "bw-text-text-primary bw-text-xs bw-font-normal", children: ((a == null ? void 0 : a.substring(0, 4)) || "") + "..." + ((a == null ? void 0 : a.substring(a.length - 4, a.length)) || "") }),
512
+ children: l ? /* @__PURE__ */ u(K, { children: [
513
+ /* @__PURE__ */ e("p", { className: "bw-text-text-primary bw-text-xs bw-font-normal", children: ((l == null ? void 0 : l.substring(0, 4)) || "") + "..." + ((l == null ? void 0 : l.substring(l.length - 4, l.length)) || "") }),
514
514
  /* @__PURE__ */ e(
515
515
  "div",
516
516
  {
@@ -523,14 +523,14 @@ function nt({
523
523
  }
524
524
  function r1({ chainData: t, setShowExchangeList: n, handleShowWallet: o, setConnectWalletField: s, coinData: r, show: c }) {
525
525
  var A, v, Z, H, re, L, R, _, J;
526
- const b = l((g) => g.configuration), d = l((g) => g.customWallet), { isConnected: a, isConnecting: p, isReconnecting: y } = ge();
526
+ const b = a((g) => g.configuration), d = a((g) => g.customWallet), { isConnected: l, isConnecting: p, isReconnecting: y } = ge();
527
527
  Ne();
528
528
  const { defaultCoin: I } = Ee, { isAnyWalletConnected: T, getWallet: P } = ke({
529
529
  chainData: t,
530
530
  show: c
531
531
  });
532
- l((g) => g.toDisconnect), l((g) => g.setToDisconnect);
533
- const f = l((g) => g.fromChain), h = l((g) => g.toChain);
532
+ a((g) => g.toDisconnect), a((g) => g.setToDisconnect);
533
+ const f = a((g) => g.fromChain), h = a((g) => g.toChain);
534
534
  function C(g) {
535
535
  }
536
536
  return /* @__PURE__ */ u("div", { className: "bw-w-[50%] ", children: [
@@ -541,11 +541,11 @@ function r1({ chainData: t, setShowExchangeList: n, handleShowWallet: o, setConn
541
541
  style: {
542
542
  boxShadow: b && b.customTheme && ((v = (A = b.customTheme) == null ? void 0 : A.shadow) == null ? void 0 : v.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
543
543
  },
544
- className: "bw-w-full bw-h-[78px] bw-pl-4 md:bw-pl-5 bw-flex bw-items-center bw-gap-x-2 md:bw-gap-x-4 bw-bg-background-container bw-rounded-lg bw-border bw-border-border-primary",
544
+ className: "bw-w-full bw-h-[78px] bw-pl-4 md:bw-pl-5 bw-flex bw-items-center bw-gap-x-2 md:bw-gap-x-4 bw-bg-background-card bw-rounded-lg bw-border bw-border-border-primary",
545
545
  children: [
546
- /* @__PURE__ */ u("div", { className: `bw-w-[36px] bw-h-[36px] bw-flex bw-items-center bw-justify-center bw-rounded-[50%] bw-border bw-border-border-primary bw-relative ${r.image ? "bw-bg-background-secondary" : ""}`, children: [
546
+ /* @__PURE__ */ u("div", { className: `bw-w-[36px] bw-h-[36px] bw-flex bw-items-center bw-justify-center bw-rounded-[50%] bw-border bw-border-border-primary bw-relative ${r.image ? "bw-bg-background-coin" : ""}`, children: [
547
547
  r != null && r.image ? /* @__PURE__ */ e("img", { src: r.image, className: "bw-rounded-[50%] bw-max-w-[35px] bw-max-h-[35px] bw-object-contain", alt: "img", width: 35, height: 35 }) : /* @__PURE__ */ e("img", { src: I, className: "bw-rounded-[50%] bw-object-fill ", alt: "img", width: 35, height: 35 }),
548
- /* @__PURE__ */ e("div", { className: `bw-w-[21px] bw-h-[21px] bw-border bw-bg-background-secondary bw-border-border-primary bw-absolute bw-bottom-[-2px] bw-right-[-5px] bw-rounded-[50%] ${r.image ? "bw-bg-background-secondary" : ""}`, children: t != null && t.image ? /* @__PURE__ */ e("img", { className: "bw-rounded-[50%]", src: t.image, alt: "img" }) : /* @__PURE__ */ e("img", { className: "bw-rounded-[50%] ", src: I, alt: "img" }) })
548
+ /* @__PURE__ */ e("div", { className: `bw-w-[21px] bw-h-[21px] bw-border bw-bg-background-coin bw-border-border-primary bw-absolute bw-bottom-[-2px] bw-right-[-5px] bw-rounded-[50%] ${r.image ? "bw-bg-background-coin" : ""}`, children: t != null && t.image ? /* @__PURE__ */ e("img", { className: "bw-rounded-[50%]", src: t.image, alt: "img" }) : /* @__PURE__ */ e("img", { className: "bw-rounded-[50%] ", src: I, alt: "img" }) })
549
549
  ] }),
550
550
  /* @__PURE__ */ u(
551
551
  "div",
@@ -571,14 +571,14 @@ function r1({ chainData: t, setShowExchangeList: n, handleShowWallet: o, setConn
571
571
  }
572
572
  function rt({ isConnected: t, setConnectWalletField: n, handleShowWallet: o, show: s, chainData: r, handleToDisconnect: c }) {
573
573
  var y;
574
- const b = l((I) => I.customWallet), d = l((I) => I.fromChain), a = l((I) => I.toChain), { getWallet: p } = ke({
574
+ const b = a((I) => I.customWallet), d = a((I) => I.fromChain), l = a((I) => I.toChain), { getWallet: p } = ke({
575
575
  chainData: r,
576
576
  show: s
577
577
  });
578
578
  return /* @__PURE__ */ e("div", { className: "bw-mt-2 bw-flex bw-justify-end", children: t ? /* @__PURE__ */ e(
579
579
  nt,
580
580
  {
581
- walletDetails: (b == null ? void 0 : b.length) > 30 && s == "to" ? p({}) : (d == null ? void 0 : d.networkType) == (a == null ? void 0 : a.networkType) && s == "to" ? {
581
+ walletDetails: (b == null ? void 0 : b.length) > 30 && s == "to" ? p({}) : (d == null ? void 0 : d.networkType) == (l == null ? void 0 : l.networkType) && s == "to" ? {
582
582
  disconnect: c,
583
583
  address: (y = p(d)) == null ? void 0 : y.address
584
584
  } : p(r),
@@ -607,7 +607,7 @@ const ot = "_gradient_15zwe_1", Se = {
607
607
  };
608
608
  function st({ mode: t, handleMode: n }) {
609
609
  var s, r;
610
- const o = l((c) => c.configuration);
610
+ const o = a((c) => c.configuration);
611
611
  return /* @__PURE__ */ e("div", { className: "bw-flex bw-justify-center", children: /* @__PURE__ */ u(
612
612
  "div",
613
613
  {
@@ -622,12 +622,19 @@ function st({ mode: t, handleMode: n }) {
622
622
  onClick: () => {
623
623
  n("Priority Fee");
624
624
  },
625
- className: " bw-font-normal bw-text-text-secondary bw-border bw-border-r-0 bw-bg-background-container bw-flex bw-justify-center bw-items-center bw-relative bw-text-sm bw-flex-1 bw-h-[40px] bw-rounded-l-md bw-border-border-primary",
625
+ className: " bw-font-normal bw-text-text-secondary bw-border bw-border-r-0 bw-bg-background-card bw-flex bw-justify-center bw-items-center bw-relative bw-text-sm bw-flex-1 bw-h-[40px] bw-rounded-l-md bw-border-border-primary",
626
626
  children: [
627
- /* @__PURE__ */ u("p", { className: `${t === "Priority Fee" ? "bw-opacity-0" : "bw-opacity-100"}`, style: { transition: "opacity 0.1s ease" }, children: [
628
- " ",
629
- "Priority Fee"
630
- ] }),
627
+ /* @__PURE__ */ u(
628
+ "p",
629
+ {
630
+ className: `${t === "Priority Fee" ? "bw-opacity-0" : "bw-opacity-100"}`,
631
+ style: { transition: "opacity 0.1s ease" },
632
+ children: [
633
+ " ",
634
+ "Priority Fee"
635
+ ]
636
+ }
637
+ ),
631
638
  /* @__PURE__ */ e("div", { className: "bw-h-[70%] bw-right-0 bw-absolute bw-w-[1px] bw-bg-border-primary" })
632
639
  ]
633
640
  }
@@ -650,9 +657,16 @@ function st({ mode: t, handleMode: n }) {
650
657
  onClick: () => {
651
658
  n("Jito Tip");
652
659
  },
653
- className: "bw-font-normal bw-text-text-secondary bw-border bw-bg-background-container bw-border-x-0 bw-flex bw-justify-center bw-items-center bw-relative bw-text-sm bw-flex-1 bw-border-border-primary bw-h-[40px] ",
660
+ className: "bw-font-normal bw-text-text-secondary bw-border bw-bg-background-card bw-border-x-0 bw-flex bw-justify-center bw-items-center bw-relative bw-text-sm bw-flex-1 bw-border-border-primary bw-h-[40px] ",
654
661
  children: [
655
- /* @__PURE__ */ e("p", { className: `${t === "Jito Tip" ? "bw-opacity-0" : "bw-opacity-100"}`, style: { transition: "opacity 0.1s ease" }, children: "Jito Tip" }),
662
+ /* @__PURE__ */ e(
663
+ "p",
664
+ {
665
+ className: `${t === "Jito Tip" ? "bw-opacity-0" : "bw-opacity-100"}`,
666
+ style: { transition: "opacity 0.1s ease" },
667
+ children: "Jito Tip"
668
+ }
669
+ ),
656
670
  /* @__PURE__ */ e("div", { className: "bw-h-[70%] bw-right-0 bw-absolute bw-w-[1px] bw-bg-border-primary" })
657
671
  ]
658
672
  }
@@ -663,11 +677,18 @@ function st({ mode: t, handleMode: n }) {
663
677
  onClick: () => {
664
678
  n("Both");
665
679
  },
666
- className: "bw-font-normal bw-text-text-secondary bw-border bw-bg-background-container bw-border-l-0 bw-text-sm bw-flex-1 bw-border-border-primary bw-h-[40px] bw-rounded-r-md ",
667
- children: /* @__PURE__ */ u("p", { className: `${t === "Both" ? "bw-opacity-0" : "bw-opacity-100"}`, style: { transition: "opacity 0.1s ease" }, children: [
668
- " ",
669
- "Both"
670
- ] })
680
+ className: "bw-font-normal bw-text-text-secondary bw-border bw-bg-background-card bw-border-l-0 bw-text-sm bw-flex-1 bw-border-border-primary bw-h-[40px] bw-rounded-r-md ",
681
+ children: /* @__PURE__ */ u(
682
+ "p",
683
+ {
684
+ className: `${t === "Both" ? "bw-opacity-0" : "bw-opacity-100"}`,
685
+ style: { transition: "opacity 0.1s ease" },
686
+ children: [
687
+ " ",
688
+ "Both"
689
+ ]
690
+ }
691
+ )
671
692
  }
672
693
  )
673
694
  ]
@@ -701,7 +722,7 @@ function d1({ options: t, handleOptions: n }) {
701
722
  { name: "Medium", value: "medium" },
702
723
  { name: "High", value: "high" },
703
724
  { name: "Degen", value: "ultra" }
704
- ], s = l((b) => b.configuration);
725
+ ], s = a((b) => b.configuration);
705
726
  return /* @__PURE__ */ u("div", { className: "bw-mt-5 bw-flex bw-items-center bw-justify-between", children: [
706
727
  /* @__PURE__ */ e("h2", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: "Speed" }),
707
728
  /* @__PURE__ */ e(
@@ -710,8 +731,8 @@ function d1({ options: t, handleOptions: n }) {
710
731
  style: {
711
732
  boxShadow: s && s.customTheme && ((c = (r = s.customTheme) == null ? void 0 : r.shadow) == null ? void 0 : c.boxShadow) || "0px 0px 12.5px 0px #0000001A"
712
733
  },
713
- className: "bw-flex bw-border bw-bg-background-container bw-w-[70%] md:bw-w-[60%] bw-h-[40px] bw-rounded-md bw-border-border-primary bw-items-center bw-justify-between",
714
- children: o.map((b, d, a) => /* @__PURE__ */ u(
734
+ className: "bw-flex bw-border bw-bg-background-card bw-w-[70%] md:bw-w-[60%] bw-h-[40px] bw-rounded-md bw-border-border-primary bw-items-center bw-justify-between",
735
+ children: o.map((b, d, l) => /* @__PURE__ */ u(
715
736
  "button",
716
737
  {
717
738
  onClick: () => {
@@ -726,7 +747,12 @@ function d1({ options: t, handleOptions: n }) {
726
747
  className: `
727
748
  bw-flex bw-flex-1 bw-relative bw-h-full bw-rounded-md bw-gap-x-1 bw-justify-center bw-items-center `,
728
749
  children: [
729
- b.value === "ultra" ? /* @__PURE__ */ e(it, { fill: b.value === t.value ? "var(--tw-text-primary)" : "var(--tw-text-secondary)" }) : /* @__PURE__ */ e(K, {}),
750
+ b.value === "ultra" ? /* @__PURE__ */ e(
751
+ it,
752
+ {
753
+ fill: b.value === t.value ? "var(--tw-text-primary)" : "var(--tw-text-secondary)"
754
+ }
755
+ ) : /* @__PURE__ */ e(K, {}),
730
756
  /* @__PURE__ */ e(
731
757
  "p",
732
758
  {
@@ -734,7 +760,7 @@ function d1({ options: t, handleOptions: n }) {
734
760
  children: b.name
735
761
  }
736
762
  ),
737
- a.length - 1 !== d && /* @__PURE__ */ e("div", { className: "bw-h-[70%] bw-absolute bw-right-0 bw-w-[1px] bw-border bw-border-border-primary" }),
763
+ l.length - 1 !== d && /* @__PURE__ */ e("div", { className: "bw-h-[70%] bw-absolute bw-right-0 bw-w-[1px] bw-border bw-border-border-primary" }),
738
764
  /* @__PURE__ */ e(
739
765
  "div",
740
766
  {
@@ -770,7 +796,7 @@ function w1(t) {
770
796
  }
771
797
  function u1({ inputVal: t, handleCustomVal: n, title: o, inputSideText: s }) {
772
798
  var c, b;
773
- const r = l((d) => d.configuration);
799
+ const r = a((d) => d.configuration);
774
800
  return /* @__PURE__ */ u("div", { className: "bw-mt-5 bw-flex bw-items-center bw-justify-between bw-gap-x-3 bw-text-sm bw-font-normal bw-text-text-secondary", children: [
775
801
  /* @__PURE__ */ e("h2", { className: "bw-text-sm bw-font-normal", children: o }),
776
802
  /* @__PURE__ */ u(
@@ -779,7 +805,7 @@ function u1({ inputVal: t, handleCustomVal: n, title: o, inputSideText: s }) {
779
805
  style: {
780
806
  boxShadow: r && r.customTheme && ((b = (c = r.customTheme) == null ? void 0 : c.shadow) == null ? void 0 : b.boxShadow) || "0px 0px 12.5px 0px #0000001A"
781
807
  },
782
- className: "bw-h-[40px] bw-w-[70%] md:bw-w-[60%] bw-flex bw-rounded-md bw-border bw-border-border-primary bw-bg-background-container bw-p-1 bw-text-text-primary",
808
+ className: "bw-h-[40px] bw-w-[70%] md:bw-w-[60%] bw-flex bw-rounded-md bw-border bw-border-border-primary bw-bg-background-card bw-p-1 bw-text-text-primary",
783
809
  children: [
784
810
  /* @__PURE__ */ e(
785
811
  "input",
@@ -803,8 +829,8 @@ function u1({ inputVal: t, handleCustomVal: n, title: o, inputSideText: s }) {
803
829
  ] });
804
830
  }
805
831
  function m1({ handleSave: t, isSaveButtonDisabled: n }) {
806
- const o = l((s) => s.configuration);
807
- return l((s) => s.slippage), /* @__PURE__ */ e(
832
+ const o = a((s) => s.configuration);
833
+ return a((s) => s.slippage), /* @__PURE__ */ e(
808
834
  "div",
809
835
  {
810
836
  style: { ...o == null ? void 0 : o.gradientStyle },
@@ -836,7 +862,7 @@ function p1({ handleClose: t }) {
836
862
  }
837
863
  function g1({ slippage: t, handleSlippage: n }) {
838
864
  var s, r;
839
- const o = l((c) => c.configuration);
865
+ const o = a((c) => c.configuration);
840
866
  return /* @__PURE__ */ u("div", { className: "bw-flex bw-items-center bw-justify-between", children: [
841
867
  /* @__PURE__ */ e("p", { className: "bw-text-lg bw-font-normal bw-text-text-primary", children: "Max Slippage" }),
842
868
  /* @__PURE__ */ u(
@@ -881,8 +907,8 @@ function x1() {
881
907
  /* @__PURE__ */ e("div", { className: "bw-h-[1px] bw-flex-1 bw-bg-border-primary " })
882
908
  ] });
883
909
  }
884
- function at({ handleClose: t }) {
885
- const [n, o] = N(""), [s, r] = N({ name: "Low", value: "low" }), [c, b] = N(""), [d, a] = N(""), [p, y] = N(""), I = l((g) => g.broadCastMode), T = l((g) => g.customFee), P = l((g) => g.setCustomFee), f = l((g) => g.slippage), h = l((g) => g.setSlippage), C = l((g) => g.setBroadCastMode), A = l((g) => g.option), v = l((g) => g.setOption), Z = n == T && A.name == s.name && f == p && (d === I && d !== "" || !n.length && !A.name.length);
910
+ function lt({ handleClose: t }) {
911
+ const [n, o] = N(""), [s, r] = N({ name: "Low", value: "low" }), [c, b] = N(""), [d, l] = N(""), [p, y] = N(""), I = a((g) => g.broadCastMode), T = a((g) => g.customFee), P = a((g) => g.setCustomFee), f = a((g) => g.slippage), h = a((g) => g.setSlippage), C = a((g) => g.setBroadCastMode), A = a((g) => g.option), v = a((g) => g.setOption), Z = n == T && A.name == s.name && f == p && (d === I && d !== "" || !n.length && !A.name.length);
886
912
  function H(g) {
887
913
  b(""), o(g.target.value);
888
914
  }
@@ -904,7 +930,7 @@ function at({ handleClose: t }) {
904
930
  y(g.target.value);
905
931
  }
906
932
  B(() => {
907
- a(I);
933
+ l(I);
908
934
  }, [I]);
909
935
  function _() {
910
936
  if (d == "" && (n.length || s.name.length)) {
@@ -914,10 +940,10 @@ function at({ handleClose: t }) {
914
940
  n.length ? (P(n), v(s)) : (P(""), L()), C(d), h(p), t();
915
941
  }
916
942
  function J(g) {
917
- b(""), a(g);
943
+ b(""), l(g);
918
944
  }
919
945
  return B(() => {
920
- !T && !A.name.length && (C(""), a(""));
946
+ !T && !A.name.length && (C(""), l(""));
921
947
  }, [T, A.name]), /* @__PURE__ */ u("div", { className: "bw-w-full md:bw-w-[443px] bw-h-[447px] bw-rounded-lg bw-border bw-p-3 px-4 md:bw-px-6 bw-border-border-primary bw-text-white bw-bg-background-container", children: [
922
948
  /* @__PURE__ */ e(p1, { handleClose: t }),
923
949
  /* @__PURE__ */ e("div", { className: "bw-mt-5 bw-mb-5", children: /* @__PURE__ */ e(g1, { slippage: p, handleSlippage: R }) }),
@@ -945,8 +971,8 @@ function at({ handleClose: t }) {
945
971
  ] })
946
972
  ] });
947
973
  }
948
- function lt({ handleClose: t }) {
949
- const [n, o] = N({ name: "Low", value: "low" }), [s, r] = N(""), [c, b] = N(""), d = l((v) => v.setEvmGas), a = l((v) => v.setEvmSpeed), p = l((v) => v.evmSpeed), y = l((v) => v.evmGas), I = l((v) => v.slippage), T = l((v) => v.setSlippage), P = s == y && p.name == n.name && I == c;
974
+ function at({ handleClose: t }) {
975
+ const [n, o] = N({ name: "Low", value: "low" }), [s, r] = N(""), [c, b] = N(""), d = a((v) => v.setEvmGas), l = a((v) => v.setEvmSpeed), p = a((v) => v.evmSpeed), y = a((v) => v.evmGas), I = a((v) => v.slippage), T = a((v) => v.setSlippage), P = s == y && p.name == n.name && I == c;
950
976
  function f(v, Z) {
951
977
  o(v);
952
978
  }
@@ -959,7 +985,7 @@ function lt({ handleClose: t }) {
959
985
  y != null && y.length ? r(y) : r("");
960
986
  }, [y]);
961
987
  function C() {
962
- s.length ? (d(s), a(n)) : (d(""), a(n)), T(c), t();
988
+ s.length ? (d(s), l(n)) : (d(""), l(n)), T(c), t();
963
989
  }
964
990
  B(() => {
965
991
  b(I);
@@ -991,7 +1017,7 @@ function lt({ handleClose: t }) {
991
1017
  ] });
992
1018
  }
993
1019
  function ct({ open: t, handleClose: n }) {
994
- const o = l((r) => r.fromChain);
1020
+ const o = a((r) => r.fromChain);
995
1021
  return /* @__PURE__ */ e(
996
1022
  F1,
997
1023
  {
@@ -1008,7 +1034,7 @@ function ct({ open: t, handleClose: n }) {
1008
1034
  // left: "47%",
1009
1035
  // transform: "translate(-50%, -50%)",
1010
1036
  bgcolor: "var(--tw-bg-container)"
1011
- }, children: o.networkType == "sol" ? /* @__PURE__ */ e(at, { handleClose: n }) : /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(lt, { handleClose: n }) }) })
1037
+ }, children: o.networkType == "sol" ? /* @__PURE__ */ e(lt, { handleClose: n }) : /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(at, { handleClose: n }) }) })
1012
1038
  }
1013
1039
  );
1014
1040
  }
@@ -1052,7 +1078,7 @@ function bt({ fill: t }) {
1052
1078
  );
1053
1079
  }
1054
1080
  function dt() {
1055
- const t = l((s) => s.configuration), n = t == null ? void 0 : t.headingStyles, o = (t == null ? void 0 : t.headingText) || "";
1081
+ const t = a((s) => s.configuration), n = t == null ? void 0 : t.headingStyles, o = (t == null ? void 0 : t.headingText) || "";
1056
1082
  return o.length ? /* @__PURE__ */ e(
1057
1083
  "span",
1058
1084
  {
@@ -1070,7 +1096,7 @@ function dt() {
1070
1096
  ] });
1071
1097
  }
1072
1098
  function wt() {
1073
- const t = l((o) => o.configuration), n = t == null ? void 0 : t.headingContainerStyles;
1099
+ const t = a((o) => o.configuration), n = t == null ? void 0 : t.headingContainerStyles;
1074
1100
  return /* @__PURE__ */ e(
1075
1101
  "div",
1076
1102
  {
@@ -1103,7 +1129,7 @@ function wt() {
1103
1129
  );
1104
1130
  }
1105
1131
  function ut() {
1106
- const [t, n] = N(!1), o = l((r) => r.fromChain);
1132
+ const [t, n] = N(!1), o = a((r) => r.fromChain);
1107
1133
  function s() {
1108
1134
  n(!1);
1109
1135
  }
@@ -1124,7 +1150,7 @@ function ut() {
1124
1150
  }
1125
1151
  let o1, Fe, he, Me = 0;
1126
1152
  function mt({ confirmRoute: t, setConfirmRoute: n, routes: o, routesData: s, isRoutesEnabled: r, fetchBalance: c }) {
1127
- const [b, d] = N(0), { getWallet: a } = ke({}), p = l((h) => h.fromChain), y = a(p), { isConnected: I } = ge();
1153
+ const [b, d] = N(0), { getWallet: l } = ke({}), p = a((h) => h.fromChain), y = l(p), { isConnected: I } = ge();
1128
1154
  B(() => {
1129
1155
  t && clearInterval(he);
1130
1156
  }, [t]), B(() => {
@@ -1160,19 +1186,19 @@ function mt({ confirmRoute: t, setConfirmRoute: n, routes: o, routesData: s, isR
1160
1186
  d((h) => h <= 0 ? (Me = 0, s.deadline) : (Me++, h - 1));
1161
1187
  }, 1e3), () => {
1162
1188
  he && clearInterval(he);
1163
- }), [s]), l((h) => h.timerValue), { quoteTimer: b, setQuoteTimer: d };
1189
+ }), [s]), a((h) => h.timerValue), { quoteTimer: b, setQuoteTimer: d };
1164
1190
  }
1165
1191
  function pt(t, n, o) {
1166
1192
  const { primaryWallet: s } = Ne(), [r, c] = N(0), b = async (d) => {
1167
1193
  if (!s) return;
1168
- const a = new ze(d || "https://tammi-n3hltb-fast-mainnet.helius-rpc.com/", "confirmed");
1169
- if (a)
1194
+ const l = new ze(d || "https://tammi-n3hltb-fast-mainnet.helius-rpc.com/", "confirmed");
1195
+ if (l)
1170
1196
  try {
1171
1197
  const p = new be(s.address);
1172
- a.onAccountChange(p, (T) => {
1198
+ l.onAccountChange(p, (T) => {
1173
1199
  c(T.lamports / 1e9);
1174
1200
  });
1175
- const I = await a.getBalance(p) / 1e9;
1201
+ const I = await l.getBalance(p) / 1e9;
1176
1202
  c(I), o(!1);
1177
1203
  } catch {
1178
1204
  o(!1);
@@ -1196,28 +1222,28 @@ async function ht(t, n) {
1196
1222
  });
1197
1223
  let c = {};
1198
1224
  for (const { account: b } of r.value) {
1199
- const d = b.data.parsed.info.mint, a = b.data.parsed.info.tokenAmount.uiAmount;
1200
- c[d] = a;
1225
+ const d = b.data.parsed.info.mint, l = b.data.parsed.info.tokenAmount.uiAmount;
1226
+ c[d] = l;
1201
1227
  }
1202
1228
  return c;
1203
1229
  }
1204
1230
  function yt(t, n) {
1205
- const [o, s] = N(0), { primaryWallet: r, setPrimaryWallet: c } = Ne(), [b, d] = N(!1), a = l((m) => m.fromChain), { address: p, isConnected: y } = ge(), I = l((m) => m.cosmosChainIds), { data: T, isConnected: P } = Oe({
1231
+ const [o, s] = N(0), { primaryWallet: r, setPrimaryWallet: c } = Ne(), [b, d] = N(!1), l = a((m) => m.fromChain), { address: p, isConnected: y } = ge(), I = a((m) => m.cosmosChainIds), { data: T, isConnected: P } = Oe({
1206
1232
  chainId: I,
1207
1233
  multiChain: !0
1208
- }), f = l((m) => m.fromCoin), { data: h, isLoading: C } = O1({
1234
+ }), f = a((m) => m.fromCoin), { data: h, isLoading: C } = O1({
1209
1235
  address: p,
1210
1236
  token: gt((f == null ? void 0 : f.address) || ""),
1211
- chainId: Number((a == null ? void 0 : a.chainId) || 0),
1212
- enabled: !!((a.networkType == "evm" || n) && p && (p != null && p.length))
1237
+ chainId: Number((l == null ? void 0 : l.chainId) || 0),
1238
+ enabled: !!((l.networkType == "evm" || n) && p && (p != null && p.length))
1213
1239
  }), {
1214
1240
  data: A,
1215
1241
  isLoading: v,
1216
1242
  isFetching: Z,
1217
1243
  isInitialLoading: H,
1218
1244
  isRefetching: re
1219
- } = l1({
1220
- chainId: [a.chainId],
1245
+ } = a1({
1246
+ chainId: [l.chainId],
1221
1247
  multiChain: !0
1222
1248
  });
1223
1249
  async function L(m) {
@@ -1250,13 +1276,13 @@ function yt(t, n) {
1250
1276
  const k = new be(r.address);
1251
1277
  k && (_ = m.onAccountChange(k, (M) => {
1252
1278
  var F;
1253
- a.networkType == "sol" && (r != null && r.address) && (((F = f == null ? void 0 : f.symbol) == null ? void 0 : F.toLowerCase()) === "sol" ? L() : a.chainId === "eclipse-svm" ? f.symbol == "ETH" ? L("https://eclipse.lgns.net/") : R("https://eclipse.lgns.net/") : R());
1279
+ l.networkType == "sol" && (r != null && r.address) && (((F = f == null ? void 0 : f.symbol) == null ? void 0 : F.toLowerCase()) === "sol" ? L() : l.chainId === "eclipse-svm" ? f.symbol == "ETH" ? L("https://eclipse.lgns.net/") : R("https://eclipse.lgns.net/") : R());
1254
1280
  }));
1255
1281
  }
1256
- B(() => ((a == null ? void 0 : a.networkType) === "sol" && J(), async () => {
1282
+ B(() => ((l == null ? void 0 : l.networkType) === "sol" && J(), async () => {
1257
1283
  if (!r) return;
1258
1284
  (await r.connector.getPublicClient()).removeAccountChangeListener(_);
1259
- }), [r == null ? void 0 : r.address, a == null ? void 0 : a.networkType, f]);
1285
+ }), [r == null ? void 0 : r.address, l == null ? void 0 : l.networkType, f]);
1260
1286
  async function g(m) {
1261
1287
  var M, F;
1262
1288
  let k = A[m] || A;
@@ -1270,37 +1296,37 @@ function yt(t, n) {
1270
1296
  }
1271
1297
  return B(() => {
1272
1298
  var m;
1273
- a.networkType == "sol" && (r != null && r.address) ? ((m = f == null ? void 0 : f.symbol) == null ? void 0 : m.toLowerCase()) === "sol" ? L() : a.chainId == "eclipse-svm" ? f.symbol == "ETH" ? L("https://eclipse.lgns.net/") : R("https://eclipse.lgns.net/") : R() : a.networkType == "evm" && p && (p != null && p.length) ? s(Number((h == null ? void 0 : h.formatted) || 0)) : a.networkType == "cosmos" && P && !v && g(a == null ? void 0 : a.chainId);
1274
- }, [a.networkType, a == null ? void 0 : a.chainId, f.symbol, f == null ? void 0 : f.address, h, p, r == null ? void 0 : r.address, p, P, v, t]), {
1299
+ l.networkType == "sol" && (r != null && r.address) ? ((m = f == null ? void 0 : f.symbol) == null ? void 0 : m.toLowerCase()) === "sol" ? L() : l.chainId == "eclipse-svm" ? f.symbol == "ETH" ? L("https://eclipse.lgns.net/") : R("https://eclipse.lgns.net/") : R() : l.networkType == "evm" && p && (p != null && p.length) ? s(Number((h == null ? void 0 : h.formatted) || 0)) : l.networkType == "cosmos" && P && !v && g(l == null ? void 0 : l.chainId);
1300
+ }, [l.networkType, l == null ? void 0 : l.chainId, f.symbol, f == null ? void 0 : f.address, h, p, r == null ? void 0 : r.address, p, P, v, t]), {
1275
1301
  getbal: o,
1276
- isBalanceLoading: (a == null ? void 0 : a.networkType) == "sol" || (a == null ? void 0 : a.networkType) == "cosmos" ? b : (a == null ? void 0 : a.networkType) == "evm" ? C : !1
1302
+ isBalanceLoading: (l == null ? void 0 : l.networkType) == "sol" || (l == null ? void 0 : l.networkType) == "cosmos" ? b : (l == null ? void 0 : l.networkType) == "evm" ? C : !1
1277
1303
  };
1278
1304
  }
1279
- const Ct = de.lazy(() => import("./SwapAsset-CU5YEZ75.js")), vt = de.lazy(() => import("./InputComp-DQBDoD71.js")), kt = de.lazy(() => import("./QuotesProgress-CTlZ7elT.js")), Nt = de.lazy(() => import("./TxnButton-CfruxaOs.js")), Tt = de.lazy(() => import("./index-B8BzdUYX.js").then((t) => t.i)), It = de.lazy(() => import("./index-Bknn7U1s.js")), Bt = de.lazy(() => import("./LoadRoute-42ZgErfe.js")), At = de.lazy(() => import("./AllRoutes-pVn5r2AF.js"));
1305
+ const Ct = de.lazy(() => import("./SwapAsset-Cm3PfEdc.js")), vt = de.lazy(() => import("./InputComp-DRGHX0JB.js")), kt = de.lazy(() => import("./QuotesProgress-mMpawJHx.js")), Nt = de.lazy(() => import("./TxnButton-C7D4coqw.js")), Tt = de.lazy(() => import("./index-CbrDck1Q.js").then((t) => t.i)), It = de.lazy(() => import("./index-DRvmXt-Y.js")), Bt = de.lazy(() => import("./LoadRoute-Dgxq32oV.js")), At = de.lazy(() => import("./AllRoutes-qDXVEBq_.js"));
1280
1306
  function jt({ handleShowWallet: t, showWallet: n, fetchChains: o }) {
1281
1307
  var Ge, Ke, Je, qe, Xe, Qe, We;
1282
- const [s, r] = N(), [c, b] = N(!1), [d, a] = N(!1), [p, y] = N(!1), [I, T] = N(!1), [P, f] = N("all"), [h, C] = N(!1), { primaryWallet: A } = Ne();
1308
+ const [s, r] = N(), [c, b] = N(!1), [d, l] = N(!1), [p, y] = N(!1), [I, T] = N(!1), [P, f] = N("all"), [h, C] = N(!1), { primaryWallet: A } = Ne();
1283
1309
  $1();
1284
1310
  const { address: v } = ge(), { address: Z } = i1(), { getbal: H, isBalanceLoading: re } = yt(h), { data: L, isConnected: R } = Oe({ chainId: "cosmoshub-4" });
1285
- l((i) => i.configuration);
1286
- const _ = l((i) => i.persist), J = l((i) => i.setPersist), g = l((i) => i.route), m = l((i) => i.fromChain), k = l((i) => i.toChain), M = l((i) => i.fromCoin), F = l((i) => i.toCoin), x = l((i) => i.setFromChain), O = l((i) => i.setToChain), $ = l((i) => i.setFromCoin), E = l((i) => i.setToCoin), j = l((i) => i.amount), V = l((i) => i.setAmount), ie = l((i) => i.customWallet);
1287
- l((i) => i.setToDisconnect);
1288
- const Te = l((i) => i.setCosmosChainIds), Y = l((i) => i.customFee), G = l((i) => i.broadCastMode), Q = l((i) => i.evmGas), z = l((i) => i.evmSpeed), Ie = l((i) => i.slippage), ye = l((i) => i.option), Be = l((i) => i.setCustomWallet), Ae = l((i) => i.setSelectedProvider), { balanceSol: w } = pt(m, h, Re), { suggestAndConnectAsync: D } = S1(), ee = !!(j.length && m.chain.length && M.coin.length && k.chain.length && F.coin.length && !p && I), le = ["routes", v, m, k, M, F, j, A == null ? void 0 : A.address, Z, ie, L == null ? void 0 : L.bech32Address, Y, Q, z, Ie, G, ye.value];
1311
+ a((i) => i.configuration);
1312
+ const _ = a((i) => i.persist), J = a((i) => i.setPersist), g = a((i) => i.route), m = a((i) => i.fromChain), k = a((i) => i.toChain), M = a((i) => i.fromCoin), F = a((i) => i.toCoin), x = a((i) => i.setFromChain), O = a((i) => i.setToChain), $ = a((i) => i.setFromCoin), E = a((i) => i.setToCoin), j = a((i) => i.amount), V = a((i) => i.setAmount), ie = a((i) => i.customWallet);
1313
+ a((i) => i.setToDisconnect);
1314
+ const Te = a((i) => i.setCosmosChainIds), Y = a((i) => i.customFee), G = a((i) => i.broadCastMode), Q = a((i) => i.evmGas), z = a((i) => i.evmSpeed), Ie = a((i) => i.slippage), ye = a((i) => i.option), Be = a((i) => i.setCustomWallet), Ae = a((i) => i.setSelectedProvider), { balanceSol: w } = pt(m, h, Re), { suggestAndConnectAsync: D } = S1(), ee = !!(j.length && m.chain.length && M.coin.length && k.chain.length && F.coin.length && !p && I), ae = ["routes", v, m, k, M, F, j, A == null ? void 0 : A.address, Z, ie, L == null ? void 0 : L.bech32Address, Y, Q, z, Ie, G, ye.value];
1289
1315
  let oe = (G === "Priority Fee" || G === "Both") && (Y != null && Y.length) ? Y : ye.value, se = (G === "Jito Tip" || G === "Both") && (Y != null && Y.length) ? Y : ye.value, q = Q != null && Q.length ? Q : z.value;
1290
1316
  const W = (m == null ? void 0 : m.networkType) === "sol" ? G === "Priority Fee" ? `&solanaPriorityFee=${oe}` : G === "Jito Tip" ? `&solanaJitoTip=${se}` : `&solanaPriorityFee=${oe}&solanaJitoTip=${se}` : (m == null ? void 0 : m.networkType) === "evm" ? `&evmPriorityFee=${q}` : "", { getWallet: U, refetch: te } = ke({}), { routes: S, routesData: X, setRoutesData: ce, errorMessage: ne, setErrorMessage: Ce } = J1({
1291
1317
  enabled: ee,
1292
- dependency: le,
1318
+ dependency: ae,
1293
1319
  payload: [(m == null ? void 0 : m.networkType) === "cosmos" ? t1(L == null ? void 0 : L.bech32Address, (Ge = m == null ? void 0 : m.chainInfo) == null ? void 0 : Ge.bech32Config.bech32PrefixAccAddr) : ((Ke = U(m)) == null ? void 0 : Ke.address) || "", m, k, M, F, j, Number(Ie) * 100, (ie == null ? void 0 : ie.length) > 30 ? ((Je = U({})) == null ? void 0 : Je.address) || "" : (k == null ? void 0 : k.networkType) === "cosmos" ? t1(L == null ? void 0 : L.bech32Address, (qe = k == null ? void 0 : k.chainInfo) == null ? void 0 : qe.bech32Config.bech32PrefixAccAddr) : ((Xe = U(k)) == null ? void 0 : Xe.address) || "", W]
1294
- }), ae = U(m), we = a1({
1295
- queryKey: ["balance", ae == null ? void 0 : ae.address, m],
1296
- queryFn: async () => await (await Ve.fetchBalance(ae.address, m.chainId)).json(),
1297
- enabled: !!((Qe = ae == null ? void 0 : ae.address) != null && Qe.length && m.chainId),
1320
+ }), le = U(m), we = l1({
1321
+ queryKey: ["balance", le == null ? void 0 : le.address, m],
1322
+ queryFn: async () => await (await Ve.fetchBalance(le.address, m.chainId)).json(),
1323
+ enabled: !!((Qe = le == null ? void 0 : le.address) != null && Qe.length && m.chainId),
1298
1324
  refetchOnWindowFocus: !1
1299
1325
  }), { quoteTimer: je } = mt({
1300
1326
  routes: S,
1301
1327
  routesData: X,
1302
1328
  confirmRoute: d,
1303
- setConfirmRoute: a,
1329
+ setConfirmRoute: l,
1304
1330
  isRoutesEnabled: ee,
1305
1331
  fetchBalance: we
1306
1332
  });
@@ -1347,7 +1373,7 @@ function jt({ handleShowWallet: t, showWallet: n, fetchChains: o }) {
1347
1373
  b(!c);
1348
1374
  }
1349
1375
  function He(i) {
1350
- a(typeof i < "u" ? i : !d);
1376
+ l(typeof i < "u" ? i : !d);
1351
1377
  }
1352
1378
  function Re(i) {
1353
1379
  C(i);
@@ -1403,7 +1429,7 @@ function jt({ handleShowWallet: t, showWallet: n, fetchChains: o }) {
1403
1429
  /* @__PURE__ */ e(vt, { amount: j, setAmount: V, fetchBalance: we, getCoinBalance: H, isBalanceLoading: re }),
1404
1430
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(Bt, { routes: S, handleShowAllRoutes: Ze, routesData: X, amount: j, isRoutesEnabled: I, price: ((X == null ? void 0 : X.outputAmountDisplay) || "") * ((F == null ? void 0 : F.lastPrice) || 0) }) }),
1405
1431
  /* @__PURE__ */ e("p", { className: "bw-text-xs bw-font-normal bw-py-1 bw-text-text-redtext", children: typeof (ne == null ? void 0 : ne.error) == "string" ? ne == null ? void 0 : ne.error : "" }),
1406
- /* @__PURE__ */ e(kt, { routes: S, routesData: X, confirmRoute: d, setConfirmRoute: a, isRoutesEnabled: ee, quoteTimer: je }),
1432
+ /* @__PURE__ */ e(kt, { routes: S, routesData: X, confirmRoute: d, setConfirmRoute: l, isRoutesEnabled: ee, quoteTimer: je }),
1407
1433
  /* @__PURE__ */ e(Nt, { routesData: X, handleSuccess: Re, routes: S, fetchBalancePrev: we, amount: j, isAmountTyped: I, handleShowWallet: t, setConnectWalletField: f, handleConfirmClose: He, balanceSol: w, getCoinBalance: H })
1408
1434
  ] }) : /* @__PURE__ */ e(It, { handleConfirmClose: He, amount: j, routesData: X, resetAmount: v1, routes: S, handleStopRoute: ve, resetBalance: C1 }) }) });
1409
1435
  }