@blockend/widget 1.0.39 → 1.0.40

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-qDXVEBq_.js → AllRoutes-pVn5r2AF.js} +17 -17
  2. package/dist/{Box-DkvAdVmJ.js → Box-2EhEu03K.js} +1 -1
  3. package/dist/{EstGas-CwWMUtsV.js → EstGas-WwkfFHpv.js} +54 -224
  4. package/dist/{Grow-w3xFin50.js → Grow-D4EVow-M.js} +2 -2
  5. package/dist/{InputComp-DRGHX0JB.js → InputComp-DQBDoD71.js} +6 -6
  6. package/dist/{LoadRoute-Dgxq32oV.js → LoadRoute-42ZgErfe.js} +39 -39
  7. package/dist/{QuotesProgress-mMpawJHx.js → QuotesProgress-CTlZ7elT.js} +1 -1
  8. package/dist/{SwapAsset-Cm3PfEdc.js → SwapAsset-CU5YEZ75.js} +4 -17
  9. package/dist/{Tooltip-BQd46Vx1.js → Tooltip-DSOAqpED.js} +3 -3
  10. package/dist/{TxnButton-C7D4coqw.js → TxnButton-CfruxaOs.js} +19 -19
  11. package/dist/{add-DJRptrWn.js → add-DayuYwbp.js} +1 -1
  12. package/dist/{all-wallets-BEwoK0hI.js → all-wallets-B7lOWwQ-.js} +1 -1
  13. package/dist/{app-store-BO2d_fOI.js → app-store-CWVen5K_.js} +1 -1
  14. package/dist/{apple-D4_HcFag.js → apple-Xce5ePDw.js} +1 -1
  15. package/dist/{arrow-bottom-zyNIGfu0.js → arrow-bottom-CJ5QodIU.js} +1 -1
  16. package/dist/{arrow-bottom-circle-Czbe973X.js → arrow-bottom-circle-m6M-yL2m.js} +1 -1
  17. package/dist/{arrow-left-2Hi0GW--.js → arrow-left-gbgYje3p.js} +1 -1
  18. package/dist/{arrow-right-DsstxcUl.js → arrow-right-BWBYQ-3w.js} +1 -1
  19. package/dist/{arrow-top-Dne06L8p.js → arrow-top-TV0fK_PC.js} +1 -1
  20. package/dist/{bank-BmHmaR1d.js → bank-D5WUpbbn.js} +1 -1
  21. package/dist/{basic-Bhds2Wiy.js → basic-yKyoIw_n.js} +3 -3
  22. package/dist/{browser-CjYfBUW5.js → browser-C1Gw-601.js} +1 -1
  23. package/dist/{card-Bi7Hbsfs.js → card-BGu7Ytfr.js} +1 -1
  24. package/dist/{ccip-B-yKJCDq.js → ccip-8pKaCE7W.js} +1 -1
  25. package/dist/{checkmark-zC82vmPx.js → checkmark-DXjp9482.js} +1 -1
  26. package/dist/{checkmark-bold-CcJ3JQev.js → checkmark-bold-C-Za8drF.js} +1 -1
  27. package/dist/{chevron-bottom-mKbX_tpu.js → chevron-bottom-pyAIkjST.js} +1 -1
  28. package/dist/{chevron-left-CfsLd6Kh.js → chevron-left-Fo0wnlZX.js} +1 -1
  29. package/dist/{chevron-right-Cis0mx_w.js → chevron-right-DkmxB-lW.js} +1 -1
  30. package/dist/{chevron-top-BZ7z4zOm.js → chevron-top-r9CVQcQg.js} +1 -1
  31. package/dist/{chrome-store-xJbsiNft.js → chrome-store-CRlb0bJh.js} +1 -1
  32. package/dist/{clock-BST36xyV.js → clock-TqJS2h0Z.js} +1 -1
  33. package/dist/{close-CUnRl6rj.js → close-C2cPb_3q.js} +1 -1
  34. package/dist/{coinPlaceholder-eRYldXBb.js → coinPlaceholder-D-_tUshz.js} +1 -1
  35. package/dist/{compass-B53Amzmz.js → compass-D-JOMMbC.js} +1 -1
  36. package/dist/{copy-CeMF3vNH.js → copy-CS7IA_r_.js} +1 -1
  37. package/dist/{core-Ba7AWU2F.js → core-DbjedOio.js} +3 -3
  38. package/dist/{cursor-BXkX3Iej.js → cursor-3K2-QZLT.js} +1 -1
  39. package/dist/{cursor-transparent-vN3U0Y44.js → cursor-transparent-DKdHMJra.js} +1 -1
  40. package/dist/{desktop-CQcrUlG2.js → desktop-CAxsE6Ga.js} +1 -1
  41. package/dist/{disconnect-DqjgPdZy.js → disconnect-Dc-LNqNb.js} +1 -1
  42. package/dist/{discord-CAeZvfjm.js → discord-VfiQtaLg.js} +1 -1
  43. package/dist/{down-C7Cxaule.js → down-C69EIwo1.js} +4 -4
  44. package/dist/{etherscan-BepqbIgx.js → etherscan-nfJcVg9R.js} +1 -1
  45. package/dist/{exclamation-triangle-BQlxBTQb.js → exclamation-triangle-DaMU5L_4.js} +1 -1
  46. package/dist/{extension-DNJRGdDb.js → extension-BaO8FLXh.js} +1 -1
  47. package/dist/{external-link-CvRsvpXe.js → external-link-B9oCkuPJ.js} +1 -1
  48. package/dist/{facebook-C_xJkTY_.js → facebook-nSdQubUH.js} +1 -1
  49. package/dist/{farcaster-BmW5dRUe.js → farcaster-BtInSUqS.js} +1 -1
  50. package/dist/{filters-BC3dndy5.js → filters-C9LrueAm.js} +1 -1
  51. package/dist/{getChainIds-rz0R4QLM.js → getChainIds-CQg6djVc.js} +2 -2
  52. package/dist/{getCosmosAddress-DwtEOPre.js → getCosmosAddress-Qwk5Y2WB.js} +2 -2
  53. package/dist/{github-SFKWAQKv.js → github-BVzfRJXr.js} +1 -1
  54. package/dist/{google-CTJCrgwS.js → google-C_Zkq44M.js} +1 -1
  55. package/dist/{hamburger-Bz6xyfny.js → hamburger-Bss9ENTU.js} +5 -5
  56. package/dist/{help-circle-tDDI6xDF.js → help-circle-D9KC2TTg.js} +1 -1
  57. package/dist/{id-HUj92mdR.js → id-D5ODDUPi.js} +1 -1
  58. package/dist/{image-kh61TiAZ.js → image-D9BguVkX.js} +1 -1
  59. package/dist/{index-BIrmH9KU.js → index-B-LMuVus.js} +6 -6
  60. package/dist/{index-C59cU9Oj.js → index-B-Y6H6ZT.js} +2 -2
  61. package/dist/{index-CbrDck1Q.js → index-B8BzdUYX.js} +396 -396
  62. package/dist/{index-DRvmXt-Y.js → index-Bknn7U1s.js} +41 -87
  63. package/dist/{index-DgfOGyG9.js → index-C3Yx39QI.js} +43 -109
  64. package/dist/{index-MSX0Gdx1.js → index-CCJxyv13.js} +1723 -1723
  65. package/dist/{index-COJO0042.js → index-Csnr5wYZ.js} +116 -142
  66. package/dist/{index-u7LhDe5x.js → index-D1suJrBe.js} +78 -78
  67. package/dist/{index-CzOzce-R.js → index-D7cNHH01.js} +1 -1
  68. package/dist/{index-Bp8YmQ0W.js → index-DTTNs7X2.js} +1 -1
  69. package/dist/{index-51ZOYWe6.js → index-mLOjEWq5.js} +20 -46
  70. package/dist/{index.es-CVMqdfN3.js → index.es-BvpkVeYn.js} +1 -1
  71. package/dist/{index.es-BVl6m7Pn.js → index.es-J7Adt0qn.js} +2 -2
  72. package/dist/index.es.js +1 -1
  73. package/dist/{info-CqS3XBRw.js → info-BbZu8EmP.js} +1 -1
  74. package/dist/{info-circle-rygiOkU3.js → info-circle-DC4d8t58.js} +1 -1
  75. package/dist/{lightbulb-CKEjyRaf.js → lightbulb-B_XHWcwO.js} +1 -1
  76. package/dist/{mail-BWMwauvE.js → mail-DUBlSWnW.js} +1 -1
  77. package/dist/{mobile-68osTp4b.js → mobile-DW7n1RaC.js} +1 -1
  78. package/dist/{more-BC8GE3IW.js → more-CHiJ0jdA.js} +1 -1
  79. package/dist/{network-placeholder--GIoATy6.js → network-placeholder-fkXdFnU3.js} +1 -1
  80. package/dist/{nftPlaceholder-Dp8gBk3E.js → nftPlaceholder-CzdJZ_xc.js} +1 -1
  81. package/dist/{off-DBKQ2uD0.js → off-liaZCdZH.js} +1 -1
  82. package/dist/{play-store-DLXuifjq.js → play-store-Dlmh4PlW.js} +1 -1
  83. package/dist/{plus-B2UVpZoZ.js → plus-QBGWemZZ.js} +1 -1
  84. package/dist/{qr-code-B70pCkf_.js → qr-code-2rARSIxP.js} +1 -1
  85. package/dist/{recycle-horizontal-f1-LcR5k.js → recycle-horizontal-DByCihYW.js} +1 -1
  86. package/dist/{refresh-DqxcTS2O.js → refresh-BFM457iN.js} +1 -1
  87. package/dist/{reown-logo-DPYJPO0J.js → reown-logo-C9dbpsPZ.js} +1 -1
  88. package/dist/{search-C2ANVg9Q.js → search-_GMCgtU4.js} +1 -1
  89. package/dist/{send-jEzvJdO5.js → send-CBnSvpXY.js} +1 -1
  90. package/dist/{swapHorizontal-DsfyOh5t.js → swapHorizontal-BiN3nSBx.js} +1 -1
  91. package/dist/{swapHorizontalBold-BklgdCvD.js → swapHorizontalBold-CAWIrlnq.js} +1 -1
  92. package/dist/{swapHorizontalMedium-xuE1OPS7.js → swapHorizontalMedium-DrfkO94z.js} +1 -1
  93. package/dist/{swapHorizontalRoundedBold-DXR4a277.js → swapHorizontalRoundedBold-DbJnc4Gs.js} +1 -1
  94. package/dist/{swapVertical-BaTPHjiX.js → swapVertical-nx3G0q67.js} +1 -1
  95. package/dist/{telegram-nFLInMdI.js → telegram-BBmONWiX.js} +1 -1
  96. package/dist/{three-dots-CkFcJxrL.js → three-dots-CxLcYR_u.js} +1 -1
  97. package/dist/{twitch-DRXpD9lS.js → twitch-BCER0FU2.js} +1 -1
  98. package/dist/{twitterIcon-DILOWGoL.js → twitterIcon-D7lNSGDl.js} +1 -1
  99. package/dist/{unsupportedProp-wLSeuqFw.js → unsupportedProp-Cgx_R3Ro.js} +1 -1
  100. package/dist/{useRegisterError-Bcj3H5Px.js → useRegisterError-CIj7yT4N.js} +1 -1
  101. package/dist/{verify-dxcsdtk9.js → verify-BtPqlMYv.js} +1 -1
  102. package/dist/{verify-filled-BHXk8ei0.js → verify-filled-D69dNjXa.js} +1 -1
  103. package/dist/{w3m-modal-CLvDtp4W.js → w3m-modal-BRaqvs1m.js} +2 -2
  104. package/dist/{wallet-j7M44X01.js → wallet-B0uYbj_y.js} +1 -1
  105. package/dist/{wallet-placeholder-8MIkVS8L.js → wallet-placeholder-C64Kayjj.js} +1 -1
  106. package/dist/{walletconnect-DP64PiDx.js → walletconnect-Bl6U4E40.js} +1 -1
  107. package/dist/{warning-circle-BLBqorXY.js → warning-circle-DdcOPYkT.js} +1 -1
  108. package/dist/widget.css +1 -1
  109. package/dist/{x-jWwE-bx-.js → x-PEBthjJm.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-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";
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";
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-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";
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";
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-DwtEOPre.js";
14
+ import { C as ze, P as be, u as J1, g as t1 } from "./getCosmosAddress-Qwk5Y2WB.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: l, defaultCoin: p } = Ee;
50
+ const [r, c] = N(t), [b, d] = N(""), { tick: a, 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: l, width: 10, height: 10, alt: "img" }) : /* @__PURE__ */ e(K, {})
109
+ s.chain === y.name ? /* @__PURE__ */ e("img", { src: a, 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 = a((l) => l.cosmosChainIds), { data: r } = Oe({
131
+ const [n, o] = N({}), s = l((a) => a.cosmosChainIds), { data: r } = Oe({
132
132
  chainId: s,
133
133
  multiChain: !0
134
- }), c = a((l) => l.fromChain), { data: b } = a1({
134
+ }), c = l((a) => a.fromChain), { data: b } = l1({
135
135
  chainId: [(t == null ? void 0 : t.chainId) || c.chainId],
136
136
  multiChain: !0
137
137
  });
138
- async function d(l) {
138
+ async function d(a) {
139
139
  var p, y;
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
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
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
- 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();
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();
223
223
  R1();
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({
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({
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 = 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({
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({
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, ae, oe, se, q, W, U, te, S, X, ce, ne;
236
+ var ee, le, 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 = (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) || "";
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) || "";
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, ae = ee + D, oe = w.slice(ee, ae);
264
+ }), D = 20, ee = J * D, le = ee + D, oe = w.slice(ee, le);
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 ae, oe, se, q, W, U;
272
+ var le, oe, se, q, W, U;
273
273
  return /* @__PURE__ */ u(
274
274
  "div",
275
275
  {
276
- ref: ee.length >= 20 && ee.length - 1 === D ? l : null,
276
+ ref: ee.length >= 20 && ee.length - 1 === D ? a : 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, le, we, je, ve, Pe, Le;
283
+ var S, X, ce, ne, Ce, ae, 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 = (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)
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)
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] ${(ae = w.image) != null && ae.length ? "bw-bg-background-coin" : ""}`, 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: [
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-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" })
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" })
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, 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);
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);
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
- l(!1);
378
+ a(!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
- l(!0);
442
+ a(!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: l, 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: a, 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: 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)) || "") }),
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)) || "") }),
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 = a((g) => g.configuration), d = a((g) => g.customWallet), { isConnected: l, isConnecting: p, isReconnecting: y } = ge();
526
+ const b = l((g) => g.configuration), d = l((g) => g.customWallet), { isConnected: a, 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
- a((g) => g.toDisconnect), a((g) => g.setToDisconnect);
533
- const f = a((g) => g.fromChain), h = a((g) => g.toChain);
532
+ l((g) => g.toDisconnect), l((g) => g.setToDisconnect);
533
+ const f = l((g) => g.fromChain), h = l((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-card 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-container 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-coin" : ""}`, 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: [
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-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" }) })
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" }) })
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 = a((I) => I.customWallet), d = a((I) => I.fromChain), l = a((I) => I.toChain), { getWallet: p } = ke({
574
+ const b = l((I) => I.customWallet), d = l((I) => I.fromChain), a = l((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) == (l == null ? void 0 : l.networkType) && s == "to" ? {
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" ? {
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 = a((c) => c.configuration);
610
+ const o = l((c) => c.configuration);
611
611
  return /* @__PURE__ */ e("div", { className: "bw-flex bw-justify-center", children: /* @__PURE__ */ u(
612
612
  "div",
613
613
  {
@@ -622,19 +622,12 @@ 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-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",
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",
626
626
  children: [
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
- ),
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
+ ] }),
638
631
  /* @__PURE__ */ e("div", { className: "bw-h-[70%] bw-right-0 bw-absolute bw-w-[1px] bw-bg-border-primary" })
639
632
  ]
640
633
  }
@@ -657,16 +650,9 @@ function st({ mode: t, handleMode: n }) {
657
650
  onClick: () => {
658
651
  n("Jito Tip");
659
652
  },
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] ",
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] ",
661
654
  children: [
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
- ),
655
+ /* @__PURE__ */ e("p", { className: `${t === "Jito Tip" ? "bw-opacity-0" : "bw-opacity-100"}`, style: { transition: "opacity 0.1s ease" }, children: "Jito Tip" }),
670
656
  /* @__PURE__ */ e("div", { className: "bw-h-[70%] bw-right-0 bw-absolute bw-w-[1px] bw-bg-border-primary" })
671
657
  ]
672
658
  }
@@ -677,18 +663,11 @@ function st({ mode: t, handleMode: n }) {
677
663
  onClick: () => {
678
664
  n("Both");
679
665
  },
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
- )
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
+ ] })
692
671
  }
693
672
  )
694
673
  ]
@@ -722,7 +701,7 @@ function d1({ options: t, handleOptions: n }) {
722
701
  { name: "Medium", value: "medium" },
723
702
  { name: "High", value: "high" },
724
703
  { name: "Degen", value: "ultra" }
725
- ], s = a((b) => b.configuration);
704
+ ], s = l((b) => b.configuration);
726
705
  return /* @__PURE__ */ u("div", { className: "bw-mt-5 bw-flex bw-items-center bw-justify-between", children: [
727
706
  /* @__PURE__ */ e("h2", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: "Speed" }),
728
707
  /* @__PURE__ */ e(
@@ -731,8 +710,8 @@ function d1({ options: t, handleOptions: n }) {
731
710
  style: {
732
711
  boxShadow: s && s.customTheme && ((c = (r = s.customTheme) == null ? void 0 : r.shadow) == null ? void 0 : c.boxShadow) || "0px 0px 12.5px 0px #0000001A"
733
712
  },
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(
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(
736
715
  "button",
737
716
  {
738
717
  onClick: () => {
@@ -747,12 +726,7 @@ function d1({ options: t, handleOptions: n }) {
747
726
  className: `
748
727
  bw-flex bw-flex-1 bw-relative bw-h-full bw-rounded-md bw-gap-x-1 bw-justify-center bw-items-center `,
749
728
  children: [
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, {}),
729
+ b.value === "ultra" ? /* @__PURE__ */ e(it, { fill: b.value === t.value ? "var(--tw-text-primary)" : "var(--tw-text-secondary)" }) : /* @__PURE__ */ e(K, {}),
756
730
  /* @__PURE__ */ e(
757
731
  "p",
758
732
  {
@@ -760,7 +734,7 @@ function d1({ options: t, handleOptions: n }) {
760
734
  children: b.name
761
735
  }
762
736
  ),
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" }),
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" }),
764
738
  /* @__PURE__ */ e(
765
739
  "div",
766
740
  {
@@ -796,7 +770,7 @@ function w1(t) {
796
770
  }
797
771
  function u1({ inputVal: t, handleCustomVal: n, title: o, inputSideText: s }) {
798
772
  var c, b;
799
- const r = a((d) => d.configuration);
773
+ const r = l((d) => d.configuration);
800
774
  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: [
801
775
  /* @__PURE__ */ e("h2", { className: "bw-text-sm bw-font-normal", children: o }),
802
776
  /* @__PURE__ */ u(
@@ -805,7 +779,7 @@ function u1({ inputVal: t, handleCustomVal: n, title: o, inputSideText: s }) {
805
779
  style: {
806
780
  boxShadow: r && r.customTheme && ((b = (c = r.customTheme) == null ? void 0 : c.shadow) == null ? void 0 : b.boxShadow) || "0px 0px 12.5px 0px #0000001A"
807
781
  },
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",
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",
809
783
  children: [
810
784
  /* @__PURE__ */ e(
811
785
  "input",
@@ -829,8 +803,8 @@ function u1({ inputVal: t, handleCustomVal: n, title: o, inputSideText: s }) {
829
803
  ] });
830
804
  }
831
805
  function m1({ handleSave: t, isSaveButtonDisabled: n }) {
832
- const o = a((s) => s.configuration);
833
- return a((s) => s.slippage), /* @__PURE__ */ e(
806
+ const o = l((s) => s.configuration);
807
+ return l((s) => s.slippage), /* @__PURE__ */ e(
834
808
  "div",
835
809
  {
836
810
  style: { ...o == null ? void 0 : o.gradientStyle },
@@ -862,7 +836,7 @@ function p1({ handleClose: t }) {
862
836
  }
863
837
  function g1({ slippage: t, handleSlippage: n }) {
864
838
  var s, r;
865
- const o = a((c) => c.configuration);
839
+ const o = l((c) => c.configuration);
866
840
  return /* @__PURE__ */ u("div", { className: "bw-flex bw-items-center bw-justify-between", children: [
867
841
  /* @__PURE__ */ e("p", { className: "bw-text-lg bw-font-normal bw-text-text-primary", children: "Max Slippage" }),
868
842
  /* @__PURE__ */ u(
@@ -907,8 +881,8 @@ function x1() {
907
881
  /* @__PURE__ */ e("div", { className: "bw-h-[1px] bw-flex-1 bw-bg-border-primary " })
908
882
  ] });
909
883
  }
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);
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);
912
886
  function H(g) {
913
887
  b(""), o(g.target.value);
914
888
  }
@@ -930,7 +904,7 @@ function lt({ handleClose: t }) {
930
904
  y(g.target.value);
931
905
  }
932
906
  B(() => {
933
- l(I);
907
+ a(I);
934
908
  }, [I]);
935
909
  function _() {
936
910
  if (d == "" && (n.length || s.name.length)) {
@@ -940,10 +914,10 @@ function lt({ handleClose: t }) {
940
914
  n.length ? (P(n), v(s)) : (P(""), L()), C(d), h(p), t();
941
915
  }
942
916
  function J(g) {
943
- b(""), l(g);
917
+ b(""), a(g);
944
918
  }
945
919
  return B(() => {
946
- !T && !A.name.length && (C(""), l(""));
920
+ !T && !A.name.length && (C(""), a(""));
947
921
  }, [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: [
948
922
  /* @__PURE__ */ e(p1, { handleClose: t }),
949
923
  /* @__PURE__ */ e("div", { className: "bw-mt-5 bw-mb-5", children: /* @__PURE__ */ e(g1, { slippage: p, handleSlippage: R }) }),
@@ -971,8 +945,8 @@ function lt({ handleClose: t }) {
971
945
  ] })
972
946
  ] });
973
947
  }
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;
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;
976
950
  function f(v, Z) {
977
951
  o(v);
978
952
  }
@@ -985,7 +959,7 @@ function at({ handleClose: t }) {
985
959
  y != null && y.length ? r(y) : r("");
986
960
  }, [y]);
987
961
  function C() {
988
- s.length ? (d(s), l(n)) : (d(""), l(n)), T(c), t();
962
+ s.length ? (d(s), a(n)) : (d(""), a(n)), T(c), t();
989
963
  }
990
964
  B(() => {
991
965
  b(I);
@@ -1017,7 +991,7 @@ function at({ handleClose: t }) {
1017
991
  ] });
1018
992
  }
1019
993
  function ct({ open: t, handleClose: n }) {
1020
- const o = a((r) => r.fromChain);
994
+ const o = l((r) => r.fromChain);
1021
995
  return /* @__PURE__ */ e(
1022
996
  F1,
1023
997
  {
@@ -1034,7 +1008,7 @@ function ct({ open: t, handleClose: n }) {
1034
1008
  // left: "47%",
1035
1009
  // transform: "translate(-50%, -50%)",
1036
1010
  bgcolor: "var(--tw-bg-container)"
1037
- }, children: o.networkType == "sol" ? /* @__PURE__ */ e(lt, { handleClose: n }) : /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(at, { handleClose: n }) }) })
1011
+ }, children: o.networkType == "sol" ? /* @__PURE__ */ e(at, { handleClose: n }) : /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(lt, { handleClose: n }) }) })
1038
1012
  }
1039
1013
  );
1040
1014
  }
@@ -1078,7 +1052,7 @@ function bt({ fill: t }) {
1078
1052
  );
1079
1053
  }
1080
1054
  function dt() {
1081
- const t = a((s) => s.configuration), n = t == null ? void 0 : t.headingStyles, o = (t == null ? void 0 : t.headingText) || "";
1055
+ const t = l((s) => s.configuration), n = t == null ? void 0 : t.headingStyles, o = (t == null ? void 0 : t.headingText) || "";
1082
1056
  return o.length ? /* @__PURE__ */ e(
1083
1057
  "span",
1084
1058
  {
@@ -1096,7 +1070,7 @@ function dt() {
1096
1070
  ] });
1097
1071
  }
1098
1072
  function wt() {
1099
- const t = a((o) => o.configuration), n = t == null ? void 0 : t.headingContainerStyles;
1073
+ const t = l((o) => o.configuration), n = t == null ? void 0 : t.headingContainerStyles;
1100
1074
  return /* @__PURE__ */ e(
1101
1075
  "div",
1102
1076
  {
@@ -1129,7 +1103,7 @@ function wt() {
1129
1103
  );
1130
1104
  }
1131
1105
  function ut() {
1132
- const [t, n] = N(!1), o = a((r) => r.fromChain);
1106
+ const [t, n] = N(!1), o = l((r) => r.fromChain);
1133
1107
  function s() {
1134
1108
  n(!1);
1135
1109
  }
@@ -1150,7 +1124,7 @@ function ut() {
1150
1124
  }
1151
1125
  let o1, Fe, he, Me = 0;
1152
1126
  function mt({ confirmRoute: t, setConfirmRoute: n, routes: o, routesData: s, isRoutesEnabled: r, fetchBalance: c }) {
1153
- const [b, d] = N(0), { getWallet: l } = ke({}), p = a((h) => h.fromChain), y = l(p), { isConnected: I } = ge();
1127
+ const [b, d] = N(0), { getWallet: a } = ke({}), p = l((h) => h.fromChain), y = a(p), { isConnected: I } = ge();
1154
1128
  B(() => {
1155
1129
  t && clearInterval(he);
1156
1130
  }, [t]), B(() => {
@@ -1186,19 +1160,19 @@ function mt({ confirmRoute: t, setConfirmRoute: n, routes: o, routesData: s, isR
1186
1160
  d((h) => h <= 0 ? (Me = 0, s.deadline) : (Me++, h - 1));
1187
1161
  }, 1e3), () => {
1188
1162
  he && clearInterval(he);
1189
- }), [s]), a((h) => h.timerValue), { quoteTimer: b, setQuoteTimer: d };
1163
+ }), [s]), l((h) => h.timerValue), { quoteTimer: b, setQuoteTimer: d };
1190
1164
  }
1191
1165
  function pt(t, n, o) {
1192
1166
  const { primaryWallet: s } = Ne(), [r, c] = N(0), b = async (d) => {
1193
1167
  if (!s) return;
1194
- const l = new ze(d || "https://tammi-n3hltb-fast-mainnet.helius-rpc.com/", "confirmed");
1195
- if (l)
1168
+ const a = new ze(d || "https://tammi-n3hltb-fast-mainnet.helius-rpc.com/", "confirmed");
1169
+ if (a)
1196
1170
  try {
1197
1171
  const p = new be(s.address);
1198
- l.onAccountChange(p, (T) => {
1172
+ a.onAccountChange(p, (T) => {
1199
1173
  c(T.lamports / 1e9);
1200
1174
  });
1201
- const I = await l.getBalance(p) / 1e9;
1175
+ const I = await a.getBalance(p) / 1e9;
1202
1176
  c(I), o(!1);
1203
1177
  } catch {
1204
1178
  o(!1);
@@ -1222,28 +1196,28 @@ async function ht(t, n) {
1222
1196
  });
1223
1197
  let c = {};
1224
1198
  for (const { account: b } of r.value) {
1225
- const d = b.data.parsed.info.mint, l = b.data.parsed.info.tokenAmount.uiAmount;
1226
- c[d] = l;
1199
+ const d = b.data.parsed.info.mint, a = b.data.parsed.info.tokenAmount.uiAmount;
1200
+ c[d] = a;
1227
1201
  }
1228
1202
  return c;
1229
1203
  }
1230
1204
  function yt(t, n) {
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({
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({
1232
1206
  chainId: I,
1233
1207
  multiChain: !0
1234
- }), f = a((m) => m.fromCoin), { data: h, isLoading: C } = O1({
1208
+ }), f = l((m) => m.fromCoin), { data: h, isLoading: C } = O1({
1235
1209
  address: p,
1236
1210
  token: gt((f == null ? void 0 : f.address) || ""),
1237
- chainId: Number((l == null ? void 0 : l.chainId) || 0),
1238
- enabled: !!((l.networkType == "evm" || n) && p && (p != null && p.length))
1211
+ chainId: Number((a == null ? void 0 : a.chainId) || 0),
1212
+ enabled: !!((a.networkType == "evm" || n) && p && (p != null && p.length))
1239
1213
  }), {
1240
1214
  data: A,
1241
1215
  isLoading: v,
1242
1216
  isFetching: Z,
1243
1217
  isInitialLoading: H,
1244
1218
  isRefetching: re
1245
- } = a1({
1246
- chainId: [l.chainId],
1219
+ } = l1({
1220
+ chainId: [a.chainId],
1247
1221
  multiChain: !0
1248
1222
  });
1249
1223
  async function L(m) {
@@ -1276,13 +1250,13 @@ function yt(t, n) {
1276
1250
  const k = new be(r.address);
1277
1251
  k && (_ = m.onAccountChange(k, (M) => {
1278
1252
  var F;
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());
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());
1280
1254
  }));
1281
1255
  }
1282
- B(() => ((l == null ? void 0 : l.networkType) === "sol" && J(), async () => {
1256
+ B(() => ((a == null ? void 0 : a.networkType) === "sol" && J(), async () => {
1283
1257
  if (!r) return;
1284
1258
  (await r.connector.getPublicClient()).removeAccountChangeListener(_);
1285
- }), [r == null ? void 0 : r.address, l == null ? void 0 : l.networkType, f]);
1259
+ }), [r == null ? void 0 : r.address, a == null ? void 0 : a.networkType, f]);
1286
1260
  async function g(m) {
1287
1261
  var M, F;
1288
1262
  let k = A[m] || A;
@@ -1296,37 +1270,37 @@ function yt(t, n) {
1296
1270
  }
1297
1271
  return B(() => {
1298
1272
  var m;
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]), {
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]), {
1301
1275
  getbal: o,
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
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
1303
1277
  };
1304
1278
  }
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"));
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"));
1306
1280
  function jt({ handleShowWallet: t, showWallet: n, fetchChains: o }) {
1307
1281
  var Ge, Ke, Je, qe, Xe, Qe, We;
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();
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();
1309
1283
  $1();
1310
1284
  const { address: v } = ge(), { address: Z } = i1(), { getbal: H, isBalanceLoading: re } = yt(h), { data: L, isConnected: R } = Oe({ chainId: "cosmoshub-4" });
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];
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];
1315
1289
  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;
1316
1290
  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({
1317
1291
  enabled: ee,
1318
- dependency: ae,
1292
+ dependency: le,
1319
1293
  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]
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),
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),
1324
1298
  refetchOnWindowFocus: !1
1325
1299
  }), { quoteTimer: je } = mt({
1326
1300
  routes: S,
1327
1301
  routesData: X,
1328
1302
  confirmRoute: d,
1329
- setConfirmRoute: l,
1303
+ setConfirmRoute: a,
1330
1304
  isRoutesEnabled: ee,
1331
1305
  fetchBalance: we
1332
1306
  });
@@ -1373,7 +1347,7 @@ function jt({ handleShowWallet: t, showWallet: n, fetchChains: o }) {
1373
1347
  b(!c);
1374
1348
  }
1375
1349
  function He(i) {
1376
- l(typeof i < "u" ? i : !d);
1350
+ a(typeof i < "u" ? i : !d);
1377
1351
  }
1378
1352
  function Re(i) {
1379
1353
  C(i);
@@ -1429,7 +1403,7 @@ function jt({ handleShowWallet: t, showWallet: n, fetchChains: o }) {
1429
1403
  /* @__PURE__ */ e(vt, { amount: j, setAmount: V, fetchBalance: we, getCoinBalance: H, isBalanceLoading: re }),
1430
1404
  /* @__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) }) }),
1431
1405
  /* @__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 : "" }),
1432
- /* @__PURE__ */ e(kt, { routes: S, routesData: X, confirmRoute: d, setConfirmRoute: l, isRoutesEnabled: ee, quoteTimer: je }),
1406
+ /* @__PURE__ */ e(kt, { routes: S, routesData: X, confirmRoute: d, setConfirmRoute: a, isRoutesEnabled: ee, quoteTimer: je }),
1433
1407
  /* @__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 })
1434
1408
  ] }) : /* @__PURE__ */ e(It, { handleConfirmClose: He, amount: j, routesData: X, resetAmount: v1, routes: S, handleStopRoute: ve, resetBalance: C1 }) }) });
1435
1409
  }