@blockend/widget 1.0.49-beta.2 → 1.0.50

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 (116) hide show
  1. package/dist/{AllRoutes-SK8ZFq_x.js → AllRoutes-CULIQsat.js} +9 -9
  2. package/dist/{Box-DAMq9mQT.js → Box-NqP6AVwQ.js} +6 -6
  3. package/dist/EstGas-Dh9afjPx.js +12661 -0
  4. package/dist/{Grow-Qzfjlf_b.js → Grow-DimeDg31.js} +2 -2
  5. package/dist/{InputComp-BUhhYfS_.js → InputComp-yY8lKNsS.js} +3 -3
  6. package/dist/{LoadRoute-B9EnT59x.js → LoadRoute-C9PROsCB.js} +4 -4
  7. package/dist/{QuotesProgress-DMyLQ_Iw.js → QuotesProgress-BqAtKdL0.js} +1 -1
  8. package/dist/{SwapAsset-mgONO1Wh.js → SwapAsset-CZhHktg2.js} +1 -1
  9. package/dist/{Tooltip-CCwWxndh.js → Tooltip-BiZCYxM1.js} +3 -3
  10. package/dist/{TxnButton-CqL_9AIV.js → TxnButton-BZKqys7R.js} +23 -22
  11. package/dist/{add-DgNWpTbE.js → add-h0-mWiyZ.js} +1 -1
  12. package/dist/{all-wallets-DbLggbFH.js → all-wallets-B1G-BF4O.js} +1 -1
  13. package/dist/{app-store-BM-3bzwt.js → app-store-C6terlTd.js} +1 -1
  14. package/dist/{apple-DGgkQglq.js → apple-BAMP6vUT.js} +1 -1
  15. package/dist/{arrow-bottom-BCcsiVDf.js → arrow-bottom-5NtikK9r.js} +1 -1
  16. package/dist/{arrow-bottom-circle-BxnEnxCv.js → arrow-bottom-circle-GWblbKB-.js} +1 -1
  17. package/dist/{arrow-left-BajNw8Bo.js → arrow-left-CuwEORVr.js} +1 -1
  18. package/dist/{arrow-right-Kqyf83Ue.js → arrow-right-B7p52n9L.js} +1 -1
  19. package/dist/{arrow-top-P0YZuCsS.js → arrow-top-X0Z_PT4J.js} +1 -1
  20. package/dist/{bank-BdBlTjok.js → bank-I9RgXHkl.js} +1 -1
  21. package/dist/{basic-B7dsMTNk.js → basic-DlZzE8fW.js} +3 -3
  22. package/dist/{browser-CiQFAZ4t.js → browser-y883UdyY.js} +1 -1
  23. package/dist/{card-D94MFuQu.js → card-DFwMQe6t.js} +1 -1
  24. package/dist/{ccip-vv5r0Apm.js → ccip-BdqG54tP.js} +16 -16
  25. package/dist/{checkmark-Cucqq4L6.js → checkmark-DwHPcz7y.js} +1 -1
  26. package/dist/{checkmark-bold-C5WgesjY.js → checkmark-bold-CwUU9faI.js} +1 -1
  27. package/dist/{chevron-bottom-CyfhotQQ.js → chevron-bottom-CM8xoehI.js} +1 -1
  28. package/dist/{chevron-left-CXJ7R3iS.js → chevron-left-Bv_KYFge.js} +1 -1
  29. package/dist/{chevron-right-4ex-g3or.js → chevron-right-CuU7ZCUE.js} +1 -1
  30. package/dist/{chevron-top-BDfgSTbr.js → chevron-top-FBXj-YJj.js} +1 -1
  31. package/dist/{chrome-store-CX9plHu3.js → chrome-store-BIA_g9fd.js} +1 -1
  32. package/dist/{clock-CtQPqpVc.js → clock-CgcPvmV3.js} +1 -1
  33. package/dist/{close-CYlyCBrT.js → close-Dro7okSF.js} +1 -1
  34. package/dist/{coinPlaceholder-DS0YfqOM.js → coinPlaceholder-Df9r_k0L.js} +1 -1
  35. package/dist/{compass-DVktgTZ-.js → compass-zmLyV0WT.js} +1 -1
  36. package/dist/{copy-Bk0qGavv.js → copy-CIamcXhE.js} +1 -1
  37. package/dist/{core-DgJB3Qno.js → core-2WkYhq16.js} +17 -16
  38. package/dist/{cursor-CCqfxECm.js → cursor-C2EB1DLY.js} +1 -1
  39. package/dist/{cursor-transparent-CPbYJ9jd.js → cursor-transparent-BRACM7k5.js} +1 -1
  40. package/dist/{desktop-DAykpsO7.js → desktop-Nj8wnhrx.js} +1 -1
  41. package/dist/{disconnect-DL8vRZg2.js → disconnect-BA3_H2TE.js} +1 -1
  42. package/dist/{discord-BS8TPANA.js → discord-BnYi_b4O.js} +1 -1
  43. package/dist/{down-D6aGpC9P.js → down-BiWYZhrl.js} +2 -2
  44. package/dist/{etherscan-YSjUjqH5.js → etherscan-Oni_KoX7.js} +1 -1
  45. package/dist/{exclamation-triangle-Cd8s_lsN.js → exclamation-triangle-DensxwAC.js} +1 -1
  46. package/dist/{extension-BfYpl1LK.js → extension-CJ-ksDa9.js} +1 -1
  47. package/dist/{external-link-uF5MV_9t.js → external-link-D2xEf8Lc.js} +1 -1
  48. package/dist/{facebook-DO648yaX.js → facebook-Dc9l2BHT.js} +1 -1
  49. package/dist/{farcaster-DZF64pQM.js → farcaster-PnjVCWz_.js} +1 -1
  50. package/dist/{filters-DMTGJi0Y.js → filters-BHTpF3UH.js} +1 -1
  51. package/dist/{getChainIds-DUKOh0Kp.js → getChainIds-CfrzTUBX.js} +2 -2
  52. package/dist/getCosmosAddress-CQBPedP-.js +9565 -0
  53. package/dist/{github-DQDrN0RZ.js → github-SsGUhatp.js} +1 -1
  54. package/dist/{google-DRrIdyFk.js → google-ClSrT1Rw.js} +1 -1
  55. package/dist/{hamburger-DFh0u4ls.js → hamburger-CnBL_kWz.js} +5 -5
  56. package/dist/{help-circle-n5Ls2-2F.js → help-circle-6WH3b0xJ.js} +1 -1
  57. package/dist/{id-DbShnIoD.js → id-BpdNL8xg.js} +1 -1
  58. package/dist/{image-B5YOEd-c.js → image-D98hwlBe.js} +1 -1
  59. package/dist/index-270jcL0T.js +159 -0
  60. package/dist/{index-CL2LZuVL.js → index-BD7sxHzc.js} +2 -2
  61. package/dist/{index-BwAuNUFT.js → index-BYEfYYbR.js} +2192 -2170
  62. package/dist/{index-CktG1k9u.js → index-CbunQDKM.js} +1 -1
  63. package/dist/{index-CDBWyjo1.js → index-CdSs-KXV.js} +11 -11
  64. package/dist/index-DTish3yr.js +1014 -0
  65. package/dist/{index-DvR1iioL.js → index-DbBaCDf8.js} +78 -78
  66. package/dist/index-Hx1OgUt3.js +206 -0
  67. package/dist/{index-BC_WzIG-.js → index-Kcq8t_TI.js} +1 -1
  68. package/dist/index-VwOzTBuI.js +30707 -0
  69. package/dist/{index-D4uRM0hD.js → index-uMBmZTqD.js} +5 -5
  70. package/dist/{index-DuTB7F2j.js → index-yf9XBWfH.js} +259 -257
  71. package/dist/{index.es-DD1q2x58.js → index.es-DNIrxJpP.js} +1 -1
  72. package/dist/{index.es-BRVISbr4.js → index.es-extFs-He.js} +1712 -1625
  73. package/dist/index.es.js +1 -1
  74. package/dist/{info-5rQx4FCT.js → info-CX4R9q8L.js} +1 -1
  75. package/dist/{info-circle-DnNqx9Fu.js → info-circle-ByA7titS.js} +1 -1
  76. package/dist/{lightbulb-DEa_QXWk.js → lightbulb-DpdMU1eo.js} +1 -1
  77. package/dist/{mail-DNWPpemE.js → mail-D7BloLRj.js} +1 -1
  78. package/dist/{mobile-CsmBvAG0.js → mobile-BfhAPCLe.js} +1 -1
  79. package/dist/{more-Bjd7dOWF.js → more-2Fi4UnXg.js} +1 -1
  80. package/dist/{network-placeholder-DsQ_HMHG.js → network-placeholder-CQk-R-eu.js} +1 -1
  81. package/dist/{nftPlaceholder-KsQSrTt2.js → nftPlaceholder-D67aKpf-.js} +1 -1
  82. package/dist/{off-B0hqloiu.js → off-CER3l2ZF.js} +1 -1
  83. package/dist/{play-store-DseAgFmo.js → play-store-D3OG1Nf5.js} +1 -1
  84. package/dist/{plus-BJCNDRM3.js → plus-XfyglU6D.js} +1 -1
  85. package/dist/{qr-code-lEBAtsO4.js → qr-code-C2QzWWzi.js} +1 -1
  86. package/dist/{recycle-horizontal-K4rUQslN.js → recycle-horizontal-BNoCX8eV.js} +1 -1
  87. package/dist/{refresh-DEZrriLV.js → refresh-BtgNPYm1.js} +1 -1
  88. package/dist/{reown-logo-BHbe-CUO.js → reown-logo-BfwHREPj.js} +1 -1
  89. package/dist/{search-CIK9XN0-.js → search-xILtKxp2.js} +1 -1
  90. package/dist/{send-Bxpdb3Vf.js → send-Cbq82Ise.js} +1 -1
  91. package/dist/{swapHorizontal-BBHEuYx1.js → swapHorizontal-ieu8keoA.js} +1 -1
  92. package/dist/{swapHorizontalBold-t0VsiN4I.js → swapHorizontalBold-DB9kV8I4.js} +1 -1
  93. package/dist/{swapHorizontalMedium-PzUH_Th4.js → swapHorizontalMedium-CFcq-Eii.js} +1 -1
  94. package/dist/{swapHorizontalRoundedBold-EyDyL2Bj.js → swapHorizontalRoundedBold-J-bBHkKw.js} +1 -1
  95. package/dist/{swapVertical-CusOd1Kd.js → swapVertical-CdsB-iHQ.js} +1 -1
  96. package/dist/{telegram-DfP_Unfg.js → telegram-BcA4SOe-.js} +1 -1
  97. package/dist/{three-dots-BcnJZFUd.js → three-dots-tnSr7FoX.js} +1 -1
  98. package/dist/{twitch-CN0F2VUn.js → twitch-C0EXCOL_.js} +1 -1
  99. package/dist/{twitterIcon-DDA3Skm-.js → twitterIcon-D8gUfoR9.js} +1 -1
  100. package/dist/{unsupportedProp-CIQ48Cx8.js → unsupportedProp-ClTIJsqE.js} +1 -1
  101. package/dist/{useRegisterError-DuNi8RxR.js → useRegisterError-BrX0SzkP.js} +1 -1
  102. package/dist/{verify-BVsIUy32.js → verify-1fQ9qDGq.js} +1 -1
  103. package/dist/{verify-filled-bQ1f0Y-d.js → verify-filled-B-Bua_F7.js} +1 -1
  104. package/dist/{w3m-modal-Cg8vnNGL.js → w3m-modal-B4ljhCgE.js} +2 -2
  105. package/dist/{wallet-OISOAGe9.js → wallet-CHuFygGk.js} +1 -1
  106. package/dist/{wallet-placeholder-DZD3tMxc.js → wallet-placeholder-BY3FPHTK.js} +1 -1
  107. package/dist/{walletconnect-CCANKmqY.js → walletconnect-1yfFjEWg.js} +1 -1
  108. package/dist/{warning-circle-C_uh-wB2.js → warning-circle-CtfJ6Xr4.js} +1 -1
  109. package/dist/widget.css +1 -1
  110. package/dist/{x-BpuzG7VO.js → x-j-7tNFTH.js} +1 -1
  111. package/package.json +2 -4
  112. package/dist/EstGas-B9rFXiVW.js +0 -1486
  113. package/dist/getCosmosAddress-Cb98patK.js +0 -6075
  114. package/dist/index-BIN4LE_6.js +0 -42277
  115. package/dist/index-DEecyVOZ.js +0 -6711
  116. package/dist/index-VUJh-JIq.js +0 -206
@@ -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 B1, Suspense as A1 } from "react";
3
- import { B as j1, i as Ee, u as ke, F as De, f as $e, C as Se, W as i1 } from "./useRegisterError-DuNi8RxR.js";
4
- import { u as a, l as pe, a as l1, c as _e, S as L1, M as P1 } from "./index-BIN4LE_6.js";
5
- import { C as e1, M as F1, g as t1 } from "./getChainIds-DUKOh0Kp.js";
6
- import { useQuery as a1 } from "@tanstack/react-query";
3
+ import { B as j1, i as Ee, u as ke, F as De, f as $e, C as _e, W as i1 } from "./useRegisterError-BrX0SzkP.js";
4
+ import { u as l, l as pe, a as a1, c as Ve, S as P1, M as L1 } from "./index-VwOzTBuI.js";
5
+ import { C as e1, M as F1, g as t1 } from "./getChainIds-CfrzTUBX.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
- import { S as S1 } from "./shareicon-CG3v7iKI.js";
10
- import { u as _1, B as V1 } from "./index-CL2LZuVL.js";
11
- import { useAccount as Oe, useStargateClient as c1, useSuggestChainAndConnect as z1, WalletType as Z1 } from "graz";
12
- import { S as H1, D as G1 } from "./down-D6aGpC9P.js";
9
+ import { S as _1 } from "./shareicon-CG3v7iKI.js";
10
+ import { u as V1, B as z1 } from "./index-BD7sxHzc.js";
11
+ import { useAccount as Oe, useStargateClient as c1, useSuggestChainAndConnect as S1, WalletType as Z1 } from "graz";
12
+ import { S as H1, D as G1 } from "./down-BiWYZhrl.js";
13
13
  import { R as K1 } from "./index-CDq3vNnP.js";
14
- import { C as Ve, P as be, u as J1, g as n1 } from "./getCosmosAddress-Cb98patK.js";
14
+ import { C as ze, P as be, u as J1, g as n1 } from "./getCosmosAddress-CQBPedP-.js";
15
15
  function b1({ fill: t }) {
16
16
  return /* @__PURE__ */ u(
17
17
  "svg",
@@ -46,8 +46,8 @@ function b1({ fill: t }) {
46
46
  }
47
47
  );
48
48
  }
49
- function q1({ data: t, handleBack: n, handleSetChainData: s, network: o }) {
50
- const [r, c] = N(t), [b, w] = N(""), { tick: l, defaultCoin: p } = Ee;
49
+ function q1({ data: t, handleBack: n, handleSetChainData: o, network: s }) {
50
+ const [r, c] = N(t), [b, w] = 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(
@@ -94,8 +94,8 @@ function q1({ data: t, handleBack: n, handleSetChainData: s, network: o }) {
94
94
  "div",
95
95
  {
96
96
  onClick: () => {
97
- let L = { chain: f.name, ...f };
98
- n(f), s(L);
97
+ let P = { chain: f.name, ...f };
98
+ n(f), o(P);
99
99
  },
100
100
  className: `first-letter:bw-py-2 bw-cursor-pointer bw-border-b bw-flex bw-items-center bw-justify-between bw-gap-x-3 bw-border-border-primary bw-text-sm bw-font-normal bw-text-text-primary
101
101
 
@@ -106,7 +106,7 @@ function q1({ data: t, handleBack: n, handleSetChainData: s, network: o }) {
106
106
  /* @__PURE__ */ e("img", { src: (T = f.image) != null && T.length ? f.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: f.name }),
109
- o.chain === f.name ? /* @__PURE__ */ e("img", { src: l, width: 10, height: 10, alt: "img" }) : /* @__PURE__ */ e(K, {})
109
+ s.chain === f.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,20 @@ 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, s] = N({}), o = a((l) => l.cosmosChainIds), { data: r } = Oe({
132
- chainId: o,
131
+ const [n, o] = N({}), s = l((a) => a.cosmosChainIds), { data: r } = Oe({
132
+ chainId: s,
133
133
  multiChain: !0
134
- }), c = a((l) => l.fromChain), { data: b } = c1({
134
+ }), c = l((a) => a.fromChain), { data: b } = c1({
135
135
  chainId: [(t == null ? void 0 : t.chainId) || c.chainId],
136
136
  multiChain: !0
137
137
  });
138
- async function w(l) {
138
+ async function w(a) {
139
139
  var p, f;
140
- if ((p = r == null ? void 0 : r[l]) != null && p.bech32Address && b) {
141
- let T = await (b[l] || b).getAllBalances((f = r == null ? void 0 : r[l]) == null ? void 0 : f.bech32Address), L = pe.keyBy(T, "denom");
142
- s(L);
140
+ if ((p = r == null ? void 0 : r[a]) != null && p.bech32Address && b) {
141
+ let T = await (b[a] || b).getAllBalances(
142
+ (f = r == null ? void 0 : r[a]) == null ? void 0 : f.bech32Address
143
+ ), P = pe.keyBy(T, "denom");
144
+ o(P);
143
145
  }
144
146
  }
145
147
  return B(() => {
@@ -149,8 +151,8 @@ function U1(t) {
149
151
  function d1(t) {
150
152
  let n = t.split("/");
151
153
  if (n.length > 1) {
152
- let s = n[1].toUpperCase();
153
- return n[1] = s, n.join("/");
154
+ let o = n[1].toUpperCase();
155
+ return n[1] = o, n.join("/");
154
156
  } else
155
157
  return t;
156
158
  }
@@ -214,35 +216,35 @@ function D1({ selectedChain: t }) {
214
216
  ] })
215
217
  ] });
216
218
  }
217
- const et = de.memo(function({ selectChainState: n, value: s, handleClosePopup: o, showExchangeList: r, setCoinData: c, setChainData: b }) {
219
+ const et = de.memo(function({ selectChainState: n, value: o, handleClosePopup: s, showExchangeList: r, setCoinData: c, setChainData: b }) {
218
220
  var Be, Ae;
219
- a((d) => d.searchCustomCoin);
220
- const w = a((d) => d.setSearchCustomCoin), { ref: l, inView: p } = _1(), { getWallet: f } = ke({}), { connected: I, address: T } = l1(), { isConnected: L, address: h } = ge(), { primaryWallet: y } = Ne();
221
+ l((d) => d.searchCustomCoin);
222
+ const w = l((d) => d.setSearchCustomCoin), { ref: a, inView: p } = V1(), { getWallet: f } = ke({}), { connected: I, address: T } = a1(), { isConnected: P, address: h } = ge(), { primaryWallet: y } = Ne();
221
223
  R1();
222
- const C = f(n), A = a((d) => d.fromChain), v = a((d) => d.fromCoin), Z = a((d) => d.toChain), H = a((d) => d.toCoin), [ne, P] = N(!1), { cosmosBalance: R } = U1(n), { defaultCoin: S } = Ee, [J, g] = N(0), m = B1(null), { data: k } = Oe({
224
+ const C = f(n), A = l((d) => d.fromChain), v = l((d) => d.fromCoin), Z = l((d) => d.toChain), H = l((d) => d.toCoin), [ne, L] = N(!1), { cosmosBalance: R } = U1(n), { defaultCoin: _ } = Ee, [J, g] = N(0), m = B1(null), { data: k } = Oe({
223
225
  chainId: [n.chainId],
224
226
  multiChain: !0
225
- }), M = (n == null ? void 0 : n.networkType) === "evm" && h || (n == null ? void 0 : n.networkType) === "sol" && (y == null ? void 0 : y.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((d) => d.toDisconnect);
226
- a((d) => d.setToDisconnect);
227
- const x = a((d) => d.customWallet), O = a((d) => d.setCustomWallet), $ = a((d) => d.tokens), [E, j] = N([]), [_, ie] = N([]), [Te, Y] = N([]), G = $, Q = a1({
227
+ }), M = (n == null ? void 0 : n.networkType) === "evm" && h || (n == null ? void 0 : n.networkType) === "sol" && (y == null ? void 0 : y.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((d) => d.toDisconnect);
228
+ l((d) => d.setToDisconnect);
229
+ const x = l((d) => d.customWallet), O = l((d) => d.setCustomWallet), $ = l((d) => d.tokens), [E, j] = N([]), [V, ie] = N([]), [Te, Y] = N([]), G = $, Q = l1({
228
230
  queryKey: ["balance", C == null ? void 0 : C.address, n],
229
- queryFn: async () => await (await _e.fetchBalance(C.address, n.chainId)).json(),
231
+ queryFn: async () => await (await Ve.fetchBalance(C.address, n.chainId)).json(),
230
232
  enabled: !!((Ae = C == null ? void 0 : C.address) != null && Ae.length && n.chainId),
231
233
  refetchOnWindowFocus: !1
232
234
  });
233
- function V(d) {
234
- var re, ae, se, oe, q, W, U, ee, z, X, ce, te;
235
+ function z(d) {
236
+ var re, le, oe, se, q, W, U, ee, S, X, ce, te;
235
237
  let D = d1(d.address);
236
- return d.networkType == "cosmos" ? $e(((re = R == null ? void 0 : R[D]) == null ? void 0 : re.amount) / Math.pow(10, d.decimals) || 0) || "" : $e((((W = (q = (oe = (se = (ae = Q.data) == null ? void 0 : ae.data) == null ? void 0 : se[n == null ? void 0 : n.networkType]) == null ? void 0 : oe[n.chainId]) == null ? void 0 : q[d.address]) == null ? void 0 : W.balance) || 0) / Math.pow(10, ((te = (ce = (X = (z = (ee = (U = Q.data) == null ? void 0 : U.data) == null ? void 0 : ee[n == null ? void 0 : n.networkType]) == null ? void 0 : z[n.chainId]) == null ? void 0 : X[d.address]) == null ? void 0 : ce.asset) == null ? void 0 : te.decimals) || 0) || 0) || "";
238
+ return d.networkType == "cosmos" ? $e(((re = R == null ? void 0 : R[D]) == null ? void 0 : re.amount) / Math.pow(10, d.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[d.address]) == null ? void 0 : W.balance) || 0) / Math.pow(10, ((te = (ce = (X = (S = (ee = (U = Q.data) == null ? void 0 : U.data) == null ? void 0 : ee[n == null ? void 0 : n.networkType]) == null ? void 0 : S[n.chainId]) == null ? void 0 : X[d.address]) == null ? void 0 : ce.asset) == null ? void 0 : te.decimals) || 0) || 0) || "";
237
239
  }
238
240
  B(() => {
239
- s.length > 40 && W1(s) && !_.length ? (P(!0), w({
241
+ o.length > 40 && W1(o) && !V.length ? (L(!0), w({
240
242
  chainId: n.chainId,
241
- address: s
242
- })) : s.length || (P(!1), w({ chainId: "", address: "" }));
243
- }, [s, _]), B(() => {
243
+ address: o
244
+ })) : o.length || (L(!1), w({ chainId: "", address: "" }));
245
+ }, [o, V]), B(() => {
244
246
  g(0);
245
- }, [s]);
247
+ }, [o]);
246
248
  function Ie() {
247
249
  g(0), ie([]), m.current.scrollTo(0, 0);
248
250
  }
@@ -253,45 +255,45 @@ const et = de.memo(function({ selectChainState: n, value: s, handleClosePopup: o
253
255
  Ie();
254
256
  }, [n.chainId]);
255
257
  function ye() {
256
- var oe;
257
- let d = (oe = E == null ? void 0 : E.filter((q) => {
258
- var W, U, ee, z;
259
- return ((W = q.name) == null ? void 0 : W.toLowerCase().includes(s == null ? void 0 : s.toLowerCase())) || ((U = q.symbol) == null ? void 0 : U.toLowerCase().includes(s == null ? void 0 : s.toLowerCase())) || ((z = (ee = q.address) == null ? void 0 : ee.toLowerCase()) == null ? void 0 : z.includes(s == null ? void 0 : s.toLowerCase()));
260
- })) == null ? void 0 : oe.sort((q, W) => {
261
- if (M) return V(W) * W.lastPrice - V(q) * q.lastPrice;
262
- }), D = 20, re = J * D, ae = re + D, se = d.slice(re, ae);
263
- J == 0 ? ie([...se]) : ie([..._, ...se]);
258
+ var se;
259
+ let d = (se = E == null ? void 0 : E.filter((q) => {
260
+ var W, U, ee, S;
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 = (ee = q.address) == null ? void 0 : ee.toLowerCase()) == null ? void 0 : S.includes(o == null ? void 0 : o.toLowerCase()));
262
+ })) == null ? void 0 : se.sort((q, W) => {
263
+ if (M) return z(W) * W.lastPrice - z(q) * q.lastPrice;
264
+ }), D = 20, re = J * D, le = re + D, oe = d.slice(re, le);
265
+ J == 0 ? ie([...oe]) : ie([...V, ...oe]);
264
266
  }
265
267
  return B(() => {
266
268
  E != null && E.length && ye();
267
- }, [E, s, J, M, R, Q.data]), B(() => {
269
+ }, [E, o, J, M, R, Q.data]), B(() => {
268
270
  p && g((d) => d + 1);
269
- }, [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: _ && (_ == null ? void 0 : _.length) > 0 ? _ == null ? void 0 : _.map((d, D, re) => {
270
- var ae, se, oe, q, W, U;
271
+ }, [p]), /* @__PURE__ */ e("div", { ref: m, className: " bw-pr-2 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((d, D, re) => {
272
+ var le, oe, se, q, W, U;
271
273
  return /* @__PURE__ */ u(
272
274
  "div",
273
275
  {
274
- ref: re.length >= 20 && re.length - 1 === D ? l : null,
276
+ ref: re.length >= 20 && re.length - 1 === D ? a : null,
275
277
  className: `bw-py-2
276
278
  ${r == "from" && H._id !== d._id || r == "to" && v._id !== d._id, ""}
277
279
  bw-flex bw-items-center bw-justify-between bw-cursor-pointer bw-border-b bw-border-border-primary
278
280
 
279
281
  }`,
280
282
  onClick: async () => {
281
- var z, X, ce, te, Ce, le, we, je, ve, Le, Pe;
283
+ var S, X, ce, te, Ce, ae, we, je, ve, Pe, Le;
282
284
  let ee = {
283
285
  // ...coinData,
284
286
  coin: d.symbol,
285
287
  ...d,
286
- availBal: ((Ce = (te = (ce = (X = (z = Q.data) == null ? void 0 : z.data) == null ? void 0 : X[n == null ? void 0 : n.networkType]) == null ? void 0 : ce[n.chainId]) == null ? void 0 : te[d.address.toLowerCase()]) == null ? void 0 : Ce.balance) / Math.pow(10, ((Pe = (Le = (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[d.address.toLowerCase()]) == null ? void 0 : Le.asset) == null ? void 0 : Pe.decimals) || 0)
288
+ availBal: ((Ce = (te = (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 : te[d.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[d.address.toLowerCase()]) == null ? void 0 : Pe.asset) == null ? void 0 : Le.decimals) || 0)
287
289
  };
288
- c(ee), b(n), o(n, ee), (n == null ? void 0 : n.networkType) === (Z == null ? void 0 : Z.networkType) || (n == null || n.networkType, A == null || A.networkType, O(""));
290
+ c(ee), b(n), s(n, ee), (n == null ? void 0 : n.networkType) === (Z == null ? void 0 : Z.networkType) || (n == null || n.networkType, A == null || A.networkType, O(""));
289
291
  },
290
292
  children: [
291
293
  /* @__PURE__ */ u("div", { className: "bw-flex bw-items-center bw-justify-center bw-w-max bw-gap-x-2", children: [
292
- /* @__PURE__ */ u("div", { className: `bw-relative bw-rounded-[50%] bw-w-[30px] bw-h-[30px] ${(ae = d.image) != null && ae.length ? "bw-bg-background-secondary" : ""}`, children: [
293
- (se = d.image) != null && se.length ? /* @__PURE__ */ e("img", { src: d.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: S, className: "bw-rounded-[50%]", width: 30, height: 30, alt: "img" }),
294
- (oe = n == null ? void 0 : n.image) != null && oe.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: S, 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" })
294
+ /* @__PURE__ */ u("div", { className: `bw-relative bw-rounded-[50%] bw-w-[30px] bw-h-[30px] ${(le = d.image) != null && le.length ? "bw-bg-background-secondary" : ""}`, children: [
295
+ (oe = d.image) != null && oe.length ? /* @__PURE__ */ e("img", { src: d.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" })
295
297
  ] }),
296
298
  /* @__PURE__ */ u("div", { children: [
297
299
  /* @__PURE__ */ u("p", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: [
@@ -314,29 +316,29 @@ const et = de.memo(function({ selectChainState: n, value: s, handleClosePopup: o
314
316
  ee.stopPropagation();
315
317
  },
316
318
  className: "hover:bw-opacity-70",
317
- children: /* @__PURE__ */ e(S1, { fill: "var(--tw-text-secondary)" })
319
+ children: /* @__PURE__ */ e(_1, { fill: "var(--tw-text-secondary)" })
318
320
  }
319
321
  )
320
322
  ] })
321
323
  ] })
322
324
  ] })
323
325
  ] }),
324
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("p", { className: "bw-text-sm bw-text-right bw-font-medium bw-text-text-primary", children: r === "to" && x && ((x == null ? void 0 : x.length) > 30 || F) ? /* @__PURE__ */ e(K, {}) : Q.isFetching ? /* @__PURE__ */ e(Se, { size: 12, thickness: 4, color: "inherit" }) : M ? V(d) > 0 ? /* @__PURE__ */ u(K, { children: [
326
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("p", { className: "bw-text-sm bw-text-right bw-font-medium bw-text-text-primary", children: r === "to" && x && ((x == null ? void 0 : x.length) > 30 || F) ? /* @__PURE__ */ e(K, {}) : Q.isFetching ? /* @__PURE__ */ e(_e, { size: 12, thickness: 4, color: "inherit" }) : M ? z(d) > 0 ? /* @__PURE__ */ u(K, { children: [
325
327
  /* @__PURE__ */ e(
326
328
  De,
327
329
  {
328
- value: V(d) || "",
330
+ value: z(d) || "",
329
331
  options: {
330
332
  maxDecimals: 10
331
333
  }
332
334
  }
333
335
  ),
334
- /* @__PURE__ */ e("p", { className: "bw-text-text-secondary bw-font-normal bw-text-xs", children: V(d) * d.lastPrice > 0 ? /* @__PURE__ */ u(K, { children: [
336
+ /* @__PURE__ */ e("p", { className: "bw-text-text-secondary bw-font-normal bw-text-xs", children: z(d) * d.lastPrice > 0 ? /* @__PURE__ */ u(K, { children: [
335
337
  "$",
336
338
  /* @__PURE__ */ e(
337
339
  De,
338
340
  {
339
- value: $e(V(d) * d.lastPrice),
341
+ value: $e(z(d) * d.lastPrice),
340
342
  options: {
341
343
  maxDecimals: 10
342
344
  }
@@ -348,20 +350,20 @@ const et = de.memo(function({ selectChainState: n, value: s, handleClosePopup: o
348
350
  },
349
351
  D
350
352
  );
351
- }) : ne && !($.isLoading && $.isFetching) ? /* @__PURE__ */ e(D1, { selectedChain: n }) : !s.length && /* @__PURE__ */ e("div", { className: "bw-w-full bw-flex bw-justify-center bw-mt-4 bw-text-text-primary", children: /* @__PURE__ */ e(Se, { color: "inherit", size: 30 }) }) });
353
+ }) : ne && !($.isLoading && $.isFetching) ? /* @__PURE__ */ e(D1, { selectedChain: n }) : !o.length && /* @__PURE__ */ e("div", { className: "bw-w-full bw-flex bw-justify-center bw-mt-4 bw-text-text-primary", children: /* @__PURE__ */ e(_e, { color: "inherit", size: 30 }) }) });
352
354
  });
353
- function tt({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coinData: r, showExchangeList: c, fetchChains: b }) {
355
+ function tt({ setChainData: t, setCoinData: n, handleReset: o, chainData: s, coinData: r, showExchangeList: c, fetchChains: b }) {
354
356
  var g, m, k, M, F;
355
- const [w, l] = N(!1), [p, f] = N(""), I = a((x) => x.tokens), [T, L] = N([]), [h, y] = N(0), [C, A] = N({ chain: "" }), v = a((x) => x.gradient), Z = a((x) => x.configuration), H = a((x) => x.chainObj);
357
+ const [w, a] = N(!1), [p, f] = N(""), I = l((x) => x.tokens), [T, P] = N([]), [h, y] = N(0), [C, A] = N({ chain: "" }), v = l((x) => x.gradient), Z = l((x) => x.configuration), H = l((x) => x.chainObj);
356
358
  B(() => {
357
359
  var x, O, $, E;
358
360
  if ((O = (x = b.data) == null ? void 0 : x.data) != null && O.length) {
359
- let j = [...(E = ($ = b.data) == null ? void 0 : $.data) == null ? void 0 : E.slice(0, 9)], _ = j.findIndex((V) => V.chainId === "137"), ie = j.findIndex((V) => V.chainId === "324"), Te = j.findIndex((V) => V.chainId === "10"), Y = j.findIndex((V) => V.chainId === "43114");
360
- j.splice(_, 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)), L(j);
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);
361
363
  }
362
- }, [H, (g = b.data) == null ? void 0 : g.data, o, C]), B(() => {
363
- A(o);
364
- }, [o]), B(() => {
364
+ }, [H, (g = b.data) == null ? void 0 : g.data, s, C]), B(() => {
365
+ A(s);
366
+ }, [s]), B(() => {
365
367
  var x, O, $;
366
368
  if ((O = (x = b.data) == null ? void 0 : x.data) != null && O.length) {
367
369
  let E = ($ = b.data) == null ? void 0 : $.data.filter((j) => !0);
@@ -370,23 +372,23 @@ function tt({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coi
370
372
  }, [(m = b.data) == null ? void 0 : m.data]);
371
373
  function ne(x, O) {
372
374
  var $, E;
373
- ($ = x.chain) != null && $.length && ((E = O == null ? void 0 : O.coin) != null && E.length) && s();
375
+ ($ = x.chain) != null && $.length && ((E = O == null ? void 0 : O.coin) != null && E.length) && o();
374
376
  }
375
- function P() {
376
- l(!1);
377
+ function L() {
378
+ a(!1);
377
379
  }
378
380
  function R(x) {
379
381
  A(x), f("");
380
382
  }
381
- const { tick: S, defaultCoin: J } = Ee;
382
- return w ? /* @__PURE__ */ e(q1, { handleSetChainData: R, data: (k = b.data) == null ? void 0 : k.data, handleBack: P, network: C }) : /* @__PURE__ */ u(K, { children: [
383
+ const { tick: _, defaultCoin: J } = Ee;
384
+ return w ? /* @__PURE__ */ e(q1, { handleSetChainData: R, data: (k = b.data) == null ? void 0 : k.data, handleBack: L, network: C }) : /* @__PURE__ */ u(K, { children: [
383
385
  /* @__PURE__ */ u("div", { children: [
384
386
  /* @__PURE__ */ u("div", { className: "bw-flex bw-relative bw-justify-center bw-mb-2", children: [
385
387
  /* @__PURE__ */ e(
386
388
  "button",
387
389
  {
388
390
  onClick: () => {
389
- s(), (!r.coin.length || !o.chain.length) && (n({ coin: "" }), t({ chain: "" }));
391
+ o(), (!r.coin.length || !s.chain.length) && (n({ coin: "" }), t({ chain: "" }));
390
392
  },
391
393
  className: "bw-absolute bw-left-0 bw-top-[25%]",
392
394
  children: /* @__PURE__ */ e(e1, { fill: "var(--tw-text-secondary)" })
@@ -397,7 +399,7 @@ function tt({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coi
397
399
  " Network"
398
400
  ] })
399
401
  ] }),
400
- b.isLoading ? /* @__PURE__ */ e(L1, { animation: "wave", variant: "rectangular", width: "100%", height: 134, className: "bw-rounded-md bw-flex bw-justify-center bw-bg-transparent bw-opacity-0 bw-items-center bw-text-text-primary" }) : /* @__PURE__ */ u("div", { className: "bw-grid bw-grid-cols-5 bw-gap-1 bw-overflow-y-auto bw-w-full", children: [
402
+ b.isLoading ? /* @__PURE__ */ e(P1, { animation: "wave", variant: "rectangular", width: "100%", height: 134, className: "bw-rounded-md bw-flex bw-justify-center bw-bg-transparent bw-opacity-0 bw-items-center bw-text-text-primary" }) : /* @__PURE__ */ u("div", { className: "bw-grid bw-grid-cols-5 bw-gap-1 bw-overflow-y-auto bw-w-full", children: [
401
403
  b.isSuccess && T.map((x, O) => {
402
404
  var $, E;
403
405
  return /* @__PURE__ */ e(
@@ -424,7 +426,7 @@ function tt({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coi
424
426
  /* @__PURE__ */ e("img", { src: ($ = x.image) != null && $.length ? x.image : J, width: 25, className: "bw-rounded-[50%] bw-border bw-border-border-primary", height: 25, alt: "img" }),
425
427
  " ",
426
428
  /* @__PURE__ */ e("p", { className: `bw-text-xs bw-text-center ${C.name == x.name ? "bw-text-text-primary bw-font-semibold" : "bw-text-text-primary bw-font-normal"}`, children: ((E = x.name) == null ? void 0 : E.length) > 7 ? x.name.substring(0, 7) + ".." : x.name }),
427
- (C == null ? void 0 : C.chain) == x ? /* @__PURE__ */ e("img", { width: 10, height: 10, src: S }) : /* @__PURE__ */ e(K, {})
429
+ (C == null ? void 0 : C.chain) == x ? /* @__PURE__ */ e("img", { width: 10, height: 10, src: _ }) : /* @__PURE__ */ e(K, {})
428
430
  ]
429
431
  },
430
432
  O
@@ -437,7 +439,7 @@ function tt({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coi
437
439
  "div",
438
440
  {
439
441
  onClick: () => {
440
- l(!0);
442
+ a(!0);
441
443
  },
442
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",
443
445
  style: { cursor: "pointer" },
@@ -492,13 +494,13 @@ function tt({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coi
492
494
  function nt({
493
495
  walletDetails: t,
494
496
  handleToDisconnect: n,
495
- show: s,
496
- networkType: o,
497
+ show: o,
498
+ networkType: s,
497
499
  handleShowWallet: r,
498
500
  setConnectWalletField: c
499
501
  }) {
500
- const [b, w] = N(null), { address: l, chain: p, data: f, disconnect: I, ...T } = t, [L, h] = N(), { connector: y } = ge(), { connectors: C } = M1(), A = () => {
501
- c(s), s == "to" ? (v(), n(!0)) : v();
502
+ const [b, w] = N(null), { address: a, chain: p, data: f, disconnect: I, ...T } = t, [P, h] = N(), { connector: y } = ge(), { connectors: C } = M1(), A = () => {
503
+ c(o), o == "to" ? (v(), n(!0)) : v();
502
504
  };
503
505
  E1(), B(() => {
504
506
  C.length && h(
@@ -506,7 +508,7 @@ function nt({
506
508
  );
507
509
  }, [C]);
508
510
  async function v() {
509
- o === "evm" && (p == null ? void 0 : p.network) !== "custom" && (L != null && L[y == null ? void 0 : y.uid]), r();
511
+ s === "evm" && (p == null ? void 0 : p.network) !== "custom" && (P != null && P[y == null ? void 0 : y.uid]), r();
510
512
  }
511
513
  return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(
512
514
  "button",
@@ -516,28 +518,28 @@ function nt({
516
518
  id: "basic-button",
517
519
  style: { fontSize: "12px" },
518
520
  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",
519
- children: l ? /* @__PURE__ */ u(K, { children: [
520
- /* @__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)) || "") }),
521
+ children: a ? /* @__PURE__ */ u(K, { children: [
522
+ /* @__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)) || "") }),
521
523
  /* @__PURE__ */ e(
522
524
  "div",
523
525
  {
524
526
  children: /* @__PURE__ */ e(i1, { fill: "var(--tw-text-secondary)" })
525
527
  }
526
528
  )
527
- ] }) : /* @__PURE__ */ e("div", { className: "bw-w-[10px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[10px]", children: /* @__PURE__ */ e(Se, { size: 10, thickness: 5, color: "inherit" }) })
529
+ ] }) : /* @__PURE__ */ e("div", { className: "bw-w-[10px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[10px]", children: /* @__PURE__ */ e(_e, { size: 10, thickness: 5, color: "inherit" }) })
528
530
  }
529
531
  ) });
530
532
  }
531
- function s1({ chainData: t, setShowExchangeList: n, handleShowWallet: s, setConnectWalletField: o, coinData: r, show: c }) {
532
- var A, v, Z, H, ne, P, R, S, J;
533
- const b = a((g) => g.configuration), w = a((g) => g.customWallet), { isConnected: l, isConnecting: p, isReconnecting: f } = ge();
533
+ function o1({ chainData: t, setShowExchangeList: n, handleShowWallet: o, setConnectWalletField: s, coinData: r, show: c }) {
534
+ var A, v, Z, H, ne, L, R, _, J;
535
+ const b = l((g) => g.configuration), w = l((g) => g.customWallet), { isConnected: a, isConnecting: p, isReconnecting: f } = ge();
534
536
  Ne();
535
- const { defaultCoin: I } = Ee, { isAnyWalletConnected: T, getWallet: L } = ke({
537
+ const { defaultCoin: I } = Ee, { isAnyWalletConnected: T, getWallet: P } = ke({
536
538
  chainData: t,
537
539
  show: c
538
540
  });
539
- a((g) => g.toDisconnect), a((g) => g.setToDisconnect);
540
- const h = a((g) => g.fromChain), y = a((g) => g.toChain);
541
+ l((g) => g.toDisconnect), l((g) => g.setToDisconnect);
542
+ const h = l((g) => g.fromChain), y = l((g) => g.toChain);
541
543
  function C(g) {
542
544
  }
543
545
  return /* @__PURE__ */ u("div", { className: "bw-w-[50%] ", children: [
@@ -573,33 +575,33 @@ function s1({ chainData: t, setShowExchangeList: n, handleShowWallet: s, setConn
573
575
  ]
574
576
  }
575
577
  ),
576
- /* @__PURE__ */ e(rt, { isConnected: c == "to" ? (h == null ? void 0 : h.networkType) === (y == null ? void 0 : y.networkType) ? !!((R = (P = L(h)) == null ? void 0 : P.address) != null && R.length || (w == null ? void 0 : w.length) > 30) : !!((J = (S = L(y)) == null ? void 0 : S.address) != null && J.length || (w == null ? void 0 : w.length) > 30) : T, setConnectWalletField: o, handleShowWallet: s, show: c, chainData: t, handleToDisconnect: C })
578
+ /* @__PURE__ */ e(rt, { isConnected: c == "to" ? (h == null ? void 0 : h.networkType) === (y == null ? void 0 : y.networkType) ? !!((R = (L = P(h)) == null ? void 0 : L.address) != null && R.length || (w == null ? void 0 : w.length) > 30) : !!((J = (_ = P(y)) == null ? void 0 : _.address) != null && J.length || (w == null ? void 0 : w.length) > 30) : T, setConnectWalletField: s, handleShowWallet: o, show: c, chainData: t, handleToDisconnect: C })
577
579
  ] });
578
580
  }
579
- function rt({ isConnected: t, setConnectWalletField: n, handleShowWallet: s, show: o, chainData: r, handleToDisconnect: c }) {
581
+ function rt({ isConnected: t, setConnectWalletField: n, handleShowWallet: o, show: s, chainData: r, handleToDisconnect: c }) {
580
582
  var f;
581
- const b = a((I) => I.customWallet), w = a((I) => I.fromChain), l = a((I) => I.toChain), { getWallet: p } = ke({
583
+ const b = l((I) => I.customWallet), w = l((I) => I.fromChain), a = l((I) => I.toChain), { getWallet: p } = ke({
582
584
  chainData: r,
583
- show: o
585
+ show: s
584
586
  });
585
587
  return /* @__PURE__ */ e("div", { className: "bw-mt-2 bw-flex bw-justify-end", children: t ? /* @__PURE__ */ e(
586
588
  nt,
587
589
  {
588
- walletDetails: (b == null ? void 0 : b.length) > 30 && o == "to" ? p({}) : (w == null ? void 0 : w.networkType) == (l == null ? void 0 : l.networkType) && o == "to" ? {
590
+ walletDetails: (b == null ? void 0 : b.length) > 30 && s == "to" ? p({}) : (w == null ? void 0 : w.networkType) == (a == null ? void 0 : a.networkType) && s == "to" ? {
589
591
  disconnect: c,
590
592
  address: (f = p(w)) == null ? void 0 : f.address
591
593
  } : p(r),
592
594
  handleToDisconnect: c,
593
- show: o,
595
+ show: s,
594
596
  networkType: r == null ? void 0 : r.networkType,
595
597
  setConnectWalletField: n,
596
- handleShowWallet: s
598
+ handleShowWallet: o
597
599
  }
598
600
  ) : /* @__PURE__ */ u(
599
601
  "button",
600
602
  {
601
603
  onClick: () => {
602
- n(o), s();
604
+ n(s), o();
603
605
  },
604
606
  className: "bw-mb-1 bw-relative bw-min-w-[100px] bw-flex bw-justify-center bw-items-center bw-gap-x-1 bw-w-[84px] bw-h-[25px] bw-text-xs bw-font-medium bw-px-2 bw-rounded-xl bw-border bw-border-border-primary bw-bg-background-container bw-text-text-primary",
605
607
  children: [
@@ -609,17 +611,17 @@ function rt({ isConnected: t, setConnectWalletField: n, handleShowWallet: s, sho
609
611
  }
610
612
  ) });
611
613
  }
612
- const st = "_gradient_15zwe_1", ze = {
613
- gradient: st
614
+ const ot = "_gradient_15zwe_1", Se = {
615
+ gradient: ot
614
616
  };
615
- function ot({ mode: t, handleMode: n }) {
616
- var o, r;
617
- const s = a((c) => c.configuration);
617
+ function st({ mode: t, handleMode: n }) {
618
+ var s, r;
619
+ const o = l((c) => c.configuration);
618
620
  return /* @__PURE__ */ e("div", { className: "bw-flex bw-justify-center", children: /* @__PURE__ */ u(
619
621
  "div",
620
622
  {
621
623
  style: {
622
- boxShadow: s && s.customTheme && ((r = (o = s.customTheme) == null ? void 0 : o.shadow) == null ? void 0 : r.boxShadow) || "0px 0px 12.5px 0px #0000001A"
624
+ boxShadow: o && o.customTheme && ((r = (s = o.customTheme) == null ? void 0 : s.shadow) == null ? void 0 : r.boxShadow) || "0px 0px 12.5px 0px #0000001A"
623
625
  },
624
626
  className: "bw-flex bw-relative bw-h-[40px] bw-w-full md:bw-w-[90%] bw-items-center",
625
627
  children: [
@@ -645,9 +647,9 @@ function ot({ mode: t, handleMode: n }) {
645
647
  style: {
646
648
  transition: "left 0.5s",
647
649
  width: "calc(100% / 3)",
648
- ...s == null ? void 0 : s.gradientStyle
650
+ ...o == null ? void 0 : o.gradientStyle
649
651
  },
650
- className: `${!(s != null && s.gradientStyle) && ze.gradient} ${t === "Both" ? "bw-left-[66.5%]" : t === "Priority Fee" ? "bw-left-0" : t === "Jito Tip" ? "bw-left-[33%]" : "bw-hidden"} bw-z-10 bw-cursor-pointer bw-absolute bw-h-[40px] bw-p-[2px] bw-rounded-md `,
652
+ className: `${!(o != null && o.gradientStyle) && Se.gradient} ${t === "Both" ? "bw-left-[66.5%]" : t === "Priority Fee" ? "bw-left-0" : t === "Jito Tip" ? "bw-left-[33%]" : "bw-hidden"} bw-z-10 bw-cursor-pointer bw-absolute bw-h-[40px] bw-p-[2px] bw-rounded-md `,
651
653
  children: /* @__PURE__ */ e("div", { className: "bw-w-full bw-h-full bw-text-text-primary bw-text-sm bw-font-extrabold bw-flex bw-justify-center bw-items-center bw-rounded-md bw-bg-background-container", children: t })
652
654
  }
653
655
  ),
@@ -704,21 +706,21 @@ function it({ fill: t }) {
704
706
  }
705
707
  function w1({ options: t, handleOptions: n }) {
706
708
  var r, c;
707
- const s = [
709
+ const o = [
708
710
  { name: "Medium", value: "medium" },
709
711
  { name: "High", value: "high" },
710
712
  { name: "Degen", value: "ultra" }
711
- ], o = a((b) => b.configuration);
713
+ ], s = l((b) => b.configuration);
712
714
  return /* @__PURE__ */ u("div", { className: "bw-mt-5 bw-flex bw-items-center bw-justify-between", children: [
713
715
  /* @__PURE__ */ e("h2", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: "Speed" }),
714
716
  /* @__PURE__ */ e(
715
717
  "div",
716
718
  {
717
719
  style: {
718
- boxShadow: o && o.customTheme && ((c = (r = o.customTheme) == null ? void 0 : r.shadow) == null ? void 0 : c.boxShadow) || "0px 0px 12.5px 0px #0000001A"
720
+ boxShadow: s && s.customTheme && ((c = (r = s.customTheme) == null ? void 0 : r.shadow) == null ? void 0 : c.boxShadow) || "0px 0px 12.5px 0px #0000001A"
719
721
  },
720
722
  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",
721
- children: s.map((b, w, l) => /* @__PURE__ */ u(
723
+ children: o.map((b, w, a) => /* @__PURE__ */ u(
722
724
  "button",
723
725
  {
724
726
  onClick: () => {
@@ -741,17 +743,17 @@ function w1({ options: t, handleOptions: n }) {
741
743
  children: b.name
742
744
  }
743
745
  ),
744
- l.length - 1 !== w && /* @__PURE__ */ e("div", { className: "bw-h-[70%] bw-absolute bw-right-0 bw-w-[1px] bw-border bw-border-border-primary" }),
746
+ a.length - 1 !== w && /* @__PURE__ */ e("div", { className: "bw-h-[70%] bw-absolute bw-right-0 bw-w-[1px] bw-border bw-border-border-primary" }),
745
747
  /* @__PURE__ */ e(
746
748
  "div",
747
749
  {
748
750
  style: {
749
751
  transition: "opacity 0.5s ease-in-out",
750
- ...o == null ? void 0 : o.gradientStyle
752
+ ...s == null ? void 0 : s.gradientStyle
751
753
  },
752
754
  className: `bw-w-full
753
755
 
754
- ${b.value === t.value ? "bw-opacity-100" : "bw-opacity-0"} bw-absolute bw-bottom-0 bw-h-[2px] bw-rounded-md ${!(o != null && o.gradientStyle) && ze.gradient}`
756
+ ${b.value === t.value ? "bw-opacity-100" : "bw-opacity-0"} bw-absolute bw-bottom-0 bw-h-[2px] bw-rounded-md ${!(s != null && s.gradientStyle) && Se.gradient}`
755
757
  }
756
758
  )
757
759
  ]
@@ -775,11 +777,11 @@ function u1(t) {
775
777
  ];
776
778
  /^\d$/.test(t.key) || n.includes(t.key) || t.preventDefault();
777
779
  }
778
- function m1({ inputVal: t, handleCustomVal: n, title: s, inputSideText: o }) {
780
+ function m1({ inputVal: t, handleCustomVal: n, title: o, inputSideText: s }) {
779
781
  var c, b;
780
- const r = a((w) => w.configuration);
782
+ const r = l((w) => w.configuration);
781
783
  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: [
782
- /* @__PURE__ */ e("h2", { className: "bw-text-sm bw-font-normal", children: s }),
784
+ /* @__PURE__ */ e("h2", { className: "bw-text-sm bw-font-normal", children: o }),
783
785
  /* @__PURE__ */ u(
784
786
  "div",
785
787
  {
@@ -802,7 +804,7 @@ function m1({ inputVal: t, handleCustomVal: n, title: s, inputSideText: o }) {
802
804
  ),
803
805
  /* @__PURE__ */ u("div", { className: "bw-w-[20%] bw-h-full bw-flex bw-justify-center bw-items-center", children: [
804
806
  " ",
805
- /* @__PURE__ */ e("h2", { className: "bw-text-sm bw-text-text-secondary bw-font-normal", children: o })
807
+ /* @__PURE__ */ e("h2", { className: "bw-text-sm bw-text-text-secondary bw-font-normal", children: s })
806
808
  ] })
807
809
  ]
808
810
  }
@@ -810,12 +812,12 @@ function m1({ inputVal: t, handleCustomVal: n, title: s, inputSideText: o }) {
810
812
  ] });
811
813
  }
812
814
  function p1({ handleSave: t, isSaveButtonDisabled: n }) {
813
- const s = a((o) => o.configuration);
814
- return a((o) => o.slippage), /* @__PURE__ */ e(
815
+ const o = l((s) => s.configuration);
816
+ return l((s) => s.slippage), /* @__PURE__ */ e(
815
817
  "div",
816
818
  {
817
- style: { ...s == null ? void 0 : s.gradientStyle },
818
- className: `${n ? "bw-bg-border-primary" : !(s != null && s.gradientStyle) && ze.gradient} bw-rounded-sm bw-p-[2px] bw-mt-10`,
819
+ style: { ...o == null ? void 0 : o.gradientStyle },
820
+ className: `${n ? "bw-bg-border-primary" : !(o != null && o.gradientStyle) && Se.gradient} bw-rounded-sm bw-p-[2px] bw-mt-10`,
819
821
  children: /* @__PURE__ */ e(
820
822
  "button",
821
823
  {
@@ -831,7 +833,7 @@ function g1({ handleClose: t }) {
831
833
  return /* @__PURE__ */ u("div", { className: "bw-w-full bw-relative bw-flex bw-items-center bw-justify-center", children: [
832
834
  /* @__PURE__ */ e("h2", { className: "bw-text-2xl bw-font-bold bw-text-text-primary", children: "Config" }),
833
835
  /* @__PURE__ */ e(
834
- V1,
836
+ z1,
835
837
  {
836
838
  disableRipple: !0,
837
839
  onClick: t,
@@ -842,15 +844,15 @@ function g1({ handleClose: t }) {
842
844
  ] });
843
845
  }
844
846
  function x1({ slippage: t, handleSlippage: n }) {
845
- var o, r;
846
- const s = a((c) => c.configuration);
847
+ var s, r;
848
+ const o = l((c) => c.configuration);
847
849
  return /* @__PURE__ */ u("div", { className: "bw-flex bw-items-center bw-justify-between", children: [
848
850
  /* @__PURE__ */ e("p", { className: "bw-text-lg bw-font-normal bw-text-text-primary", children: "Max Slippage" }),
849
851
  /* @__PURE__ */ u(
850
852
  "div",
851
853
  {
852
854
  style: {
853
- boxShadow: s && s.customTheme && ((r = (o = s.customTheme) == null ? void 0 : o.shadow) == null ? void 0 : r.boxShadow) || "0px 0px 12.5px 0px #0000001A",
855
+ boxShadow: o && o.customTheme && ((r = (s = o.customTheme) == null ? void 0 : s.shadow) == null ? void 0 : r.boxShadow) || "0px 0px 12.5px 0px #0000001A",
854
856
  border: "1px solid var(--tw-border-primary)"
855
857
  },
856
858
  className: " bw-text-lg bw-w-[131px] bw-h-[40px] bw-rounded-md bw-flex bw-items-center ",
@@ -888,10 +890,10 @@ function f1() {
888
890
  /* @__PURE__ */ e("div", { className: "bw-h-[1px] bw-flex-1 bw-bg-border-primary " })
889
891
  ] });
890
892
  }
891
- function lt({ handleClose: t }) {
892
- const [n, s] = N(""), [o, r] = N({ name: "Low", value: "low" }), [c, b] = N(""), [w, l] = N(""), [p, f] = N(""), I = a((g) => g.broadCastMode), T = a((g) => g.customFee), L = a((g) => g.setCustomFee), h = a((g) => g.slippage), y = a((g) => g.setSlippage), C = a((g) => g.setBroadCastMode), A = a((g) => g.option), v = a((g) => g.setOption), Z = n == T && A.name == o.name && h == p && (w === I && w !== "" || !n.length && !A.name.length);
893
+ function at({ handleClose: t }) {
894
+ const [n, o] = N(""), [s, r] = N({ name: "Low", value: "low" }), [c, b] = N(""), [w, a] = N(""), [p, f] = N(""), I = l((g) => g.broadCastMode), T = l((g) => g.customFee), P = l((g) => g.setCustomFee), h = l((g) => g.slippage), y = 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 && h == p && (w === I && w !== "" || !n.length && !A.name.length);
893
895
  function H(g) {
894
- b(""), s(g.target.value);
896
+ b(""), o(g.target.value);
895
897
  }
896
898
  function ne(g, m) {
897
899
  b(""), r(g);
@@ -899,10 +901,10 @@ function lt({ handleClose: t }) {
899
901
  B(() => {
900
902
  r(A);
901
903
  }, [A]), B(() => {
902
- T != null && T.length ? s(T) : s("");
904
+ T != null && T.length ? o(T) : o("");
903
905
  }, [T]);
904
- function P() {
905
- v(o);
906
+ function L() {
907
+ v(s);
906
908
  }
907
909
  B(() => {
908
910
  f(h);
@@ -911,26 +913,26 @@ function lt({ handleClose: t }) {
911
913
  f(g.target.value);
912
914
  }
913
915
  B(() => {
914
- l(I);
916
+ a(I);
915
917
  }, [I]);
916
- function S() {
917
- if (w == "" && (n.length || o.name.length)) {
918
+ function _() {
919
+ if (w == "" && (n.length || s.name.length)) {
918
920
  C(""), b("Please select a mode");
919
921
  return;
920
922
  }
921
- n.length ? (L(n), v(o)) : (L(""), P()), C(w), y(p), t();
923
+ n.length ? (P(n), v(s)) : (P(""), L()), C(w), y(p), t();
922
924
  }
923
925
  function J(g) {
924
- b(""), l(g);
926
+ b(""), a(g);
925
927
  }
926
928
  return B(() => {
927
- !T && !A.name.length && (C(""), l(""));
929
+ !T && !A.name.length && (C(""), a(""));
928
930
  }, [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: [
929
931
  /* @__PURE__ */ e(g1, { handleClose: t }),
930
932
  /* @__PURE__ */ e("div", { className: "bw-mt-5 bw-mb-5", children: /* @__PURE__ */ e(x1, { slippage: p, handleSlippage: R }) }),
931
933
  /* @__PURE__ */ e("div", { className: "bw-mb-5", children: /* @__PURE__ */ e(f1, {}) }),
932
- /* @__PURE__ */ e(ot, { mode: w, handleMode: J }),
933
- /* @__PURE__ */ e(w1, { options: o, handleOptions: ne }),
934
+ /* @__PURE__ */ e(st, { mode: w, handleMode: J }),
935
+ /* @__PURE__ */ e(w1, { options: s, handleOptions: ne }),
934
936
  /* @__PURE__ */ e(
935
937
  m1,
936
938
  {
@@ -945,28 +947,28 @@ function lt({ handleClose: t }) {
945
947
  /* @__PURE__ */ e(
946
948
  p1,
947
949
  {
948
- handleSave: S,
950
+ handleSave: _,
949
951
  isSaveButtonDisabled: Z
950
952
  }
951
953
  )
952
954
  ] })
953
955
  ] });
954
956
  }
955
- function at({ handleClose: t }) {
956
- const [n, s] = N({ name: "Low", value: "low" }), [o, r] = N(""), [c, b] = N(""), w = a((v) => v.setEvmGas), l = a((v) => v.setEvmSpeed), p = a((v) => v.evmSpeed), f = a((v) => v.evmGas), I = a((v) => v.slippage), T = a((v) => v.setSlippage), L = o == f && p.name == n.name && I == c;
957
+ function lt({ handleClose: t }) {
958
+ const [n, o] = N({ name: "Low", value: "low" }), [s, r] = N(""), [c, b] = N(""), w = l((v) => v.setEvmGas), a = l((v) => v.setEvmSpeed), p = l((v) => v.evmSpeed), f = l((v) => v.evmGas), I = l((v) => v.slippage), T = l((v) => v.setSlippage), P = s == f && p.name == n.name && I == c;
957
959
  function h(v, Z) {
958
- s(v);
960
+ o(v);
959
961
  }
960
962
  function y(v) {
961
963
  r(v.target.value);
962
964
  }
963
965
  B(() => {
964
- s(p);
966
+ o(p);
965
967
  }, []), B(() => {
966
968
  f != null && f.length ? r(f) : r("");
967
969
  }, [f]);
968
970
  function C() {
969
- o.length ? (w(o), l(n)) : (w(""), l(n)), T(c), t();
971
+ s.length ? (w(s), a(n)) : (w(""), a(n)), T(c), t();
970
972
  }
971
973
  B(() => {
972
974
  b(I);
@@ -984,7 +986,7 @@ function at({ handleClose: t }) {
984
986
  {
985
987
  title: "Gas Price",
986
988
  inputSideText: "GWEI",
987
- inputVal: o,
989
+ inputVal: s,
988
990
  handleCustomVal: y
989
991
  }
990
992
  ),
@@ -992,13 +994,13 @@ function at({ handleClose: t }) {
992
994
  p1,
993
995
  {
994
996
  handleSave: C,
995
- isSaveButtonDisabled: L
997
+ isSaveButtonDisabled: P
996
998
  }
997
999
  )
998
1000
  ] });
999
1001
  }
1000
1002
  function ct({ open: t, handleClose: n }) {
1001
- const s = a((r) => r.fromChain);
1003
+ const o = l((r) => r.fromChain);
1002
1004
  return /* @__PURE__ */ e(
1003
1005
  F1,
1004
1006
  {
@@ -1015,7 +1017,7 @@ function ct({ open: t, handleClose: n }) {
1015
1017
  // left: "47%",
1016
1018
  // transform: "translate(-50%, -50%)",
1017
1019
  bgcolor: "var(--tw-bg-container)"
1018
- }, children: s.networkType == "sol" ? /* @__PURE__ */ e(lt, { handleClose: n }) : /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(at, { handleClose: n }) }) })
1020
+ }, children: o.networkType == "sol" ? /* @__PURE__ */ e(at, { handleClose: n }) : /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(lt, { handleClose: n }) }) })
1019
1021
  }
1020
1022
  );
1021
1023
  }
@@ -1059,8 +1061,8 @@ function bt({ fill: t }) {
1059
1061
  );
1060
1062
  }
1061
1063
  function dt() {
1062
- const t = a((o) => o.configuration), n = t == null ? void 0 : t.headingStyles, s = (t == null ? void 0 : t.headingText) || "";
1063
- return s.length ? /* @__PURE__ */ e(
1064
+ const t = l((s) => s.configuration), n = t == null ? void 0 : t.headingStyles, o = (t == null ? void 0 : t.headingText) || "";
1065
+ return o.length ? /* @__PURE__ */ e(
1064
1066
  "span",
1065
1067
  {
1066
1068
  style: {
@@ -1068,7 +1070,7 @@ function dt() {
1068
1070
  letterSpacing: "0.05em",
1069
1071
  ...n
1070
1072
  },
1071
- children: s
1073
+ children: o
1072
1074
  }
1073
1075
  ) : /* @__PURE__ */ u("span", { style: { transform: "skewX(20deg)" }, className: "bw-tracking-wider", children: [
1074
1076
  "LA",
@@ -1077,7 +1079,7 @@ function dt() {
1077
1079
  ] });
1078
1080
  }
1079
1081
  function wt() {
1080
- const t = a((s) => s.configuration), n = t == null ? void 0 : t.headingContainerStyles;
1082
+ const t = l((o) => o.configuration), n = t == null ? void 0 : t.headingContainerStyles;
1081
1083
  return /* @__PURE__ */ e(
1082
1084
  "div",
1083
1085
  {
@@ -1110,8 +1112,8 @@ function wt() {
1110
1112
  );
1111
1113
  }
1112
1114
  function ut() {
1113
- const [t, n] = N(!1), s = a((r) => r.fromChain);
1114
- function o() {
1115
+ const [t, n] = N(!1), o = l((r) => r.fromChain);
1116
+ function s() {
1115
1117
  n(!1);
1116
1118
  }
1117
1119
  return /* @__PURE__ */ u(K, { children: [
@@ -1120,74 +1122,74 @@ function ut() {
1120
1122
  /* @__PURE__ */ e(
1121
1123
  "div",
1122
1124
  {
1123
- onClick: () => (s == null ? void 0 : s.networkType) !== "cosmos" && n(!0),
1125
+ onClick: () => (o == null ? void 0 : o.networkType) !== "cosmos" && n(!0),
1124
1126
  className: "bw-flex bw-relative bw-right-0 bw-items-center bw-gap-x-2",
1125
1127
  children: /* @__PURE__ */ e(K1, { classnames: " ", children: /* @__PURE__ */ e(bt, { fill: "var(--tw-text-secondary)" }) })
1126
1128
  }
1127
1129
  )
1128
1130
  ] }),
1129
- /* @__PURE__ */ e(ct, { open: t, handleClose: o })
1131
+ /* @__PURE__ */ e(ct, { open: t, handleClose: s })
1130
1132
  ] });
1131
1133
  }
1132
- let o1, Fe, he, Me = 0;
1133
- function mt({ confirmRoute: t, setConfirmRoute: n, routes: s, routesData: o, isRoutesEnabled: r, fetchBalance: c }) {
1134
- const [b, w] = N(0), { getWallet: l } = ke({}), p = a((y) => y.fromChain), f = l(p), { isConnected: I } = ge();
1134
+ let s1, Fe, he, Me = 0;
1135
+ function mt({ confirmRoute: t, setConfirmRoute: n, routes: o, routesData: s, isRoutesEnabled: r, fetchBalance: c }) {
1136
+ const [b, w] = N(0), { getWallet: a } = ke({}), p = l((y) => y.fromChain), f = a(p), { isConnected: I } = ge();
1135
1137
  B(() => {
1136
1138
  t && clearInterval(he);
1137
1139
  }, [t]), B(() => {
1138
1140
  var y;
1139
- b === 0 && document.visibilityState === "visible" && !t && r && ((y = f.address) != null && y.length && c.refetch(), s.refetch());
1141
+ b === 0 && document.visibilityState === "visible" && !t && r && ((y = f.address) != null && y.length && c.refetch(), o.refetch());
1140
1142
  }, [b, t, r]), B(() => {
1141
- s.isFetching && (Me = 0);
1142
- }, [s.isFetching]), B(() => {
1143
- if (!pe.isEmpty(o)) {
1144
- const y = Math.max(0, o.deadline - Me);
1143
+ o.isFetching && (Me = 0);
1144
+ }, [o.isFetching]), B(() => {
1145
+ if (!pe.isEmpty(s)) {
1146
+ const y = Math.max(0, s.deadline - Me);
1145
1147
  w(y);
1146
1148
  }
1147
1149
  return () => {
1148
1150
  w(0);
1149
1151
  };
1150
- }, [o]), B(() => (pe.isEmpty(o) || document.addEventListener("visibilitychange", h), () => {
1152
+ }, [s]), B(() => (pe.isEmpty(s) || document.addEventListener("visibilitychange", h), () => {
1151
1153
  document.removeEventListener("visibilitychange", h);
1152
- }), [o]);
1154
+ }), [s]);
1153
1155
  function T() {
1154
- o1 = Date.now(), w((y) => (Fe = y, y));
1156
+ s1 = Date.now(), w((y) => (Fe = y, y));
1155
1157
  }
1156
- function L() {
1157
- let y = Date.now(), C = Math.round((y - o1) / 1e3);
1158
- o.deadline - Fe + C > o.deadline ? n((A) => {
1158
+ function P() {
1159
+ let y = Date.now(), C = Math.round((y - s1) / 1e3);
1160
+ s.deadline - Fe + C > s.deadline ? n((A) => {
1159
1161
  var v;
1160
- return A || ((v = f.address) != null && v.length && c.refetch(), s.refetch(), w(o.deadline)), A;
1162
+ return A || ((v = f.address) != null && v.length && c.refetch(), o.refetch(), w(s.deadline)), A;
1161
1163
  }) : Fe && C && w(Fe - C);
1162
1164
  }
1163
1165
  function h() {
1164
- document.visibilityState === "visible" ? L() : T();
1166
+ document.visibilityState === "visible" ? P() : T();
1165
1167
  }
1166
- return B(() => (pe.isEmpty(o) ? he && clearInterval(he) : he = setInterval(() => {
1167
- w((y) => y <= 0 ? (Me = 0, o.deadline) : (Me++, y - 1));
1168
+ return B(() => (pe.isEmpty(s) ? he && clearInterval(he) : he = setInterval(() => {
1169
+ w((y) => y <= 0 ? (Me = 0, s.deadline) : (Me++, y - 1));
1168
1170
  }, 1e3), () => {
1169
1171
  he && clearInterval(he);
1170
- }), [o]), a((y) => y.timerValue), { quoteTimer: b, setQuoteTimer: w };
1172
+ }), [s]), l((y) => y.timerValue), { quoteTimer: b, setQuoteTimer: w };
1171
1173
  }
1172
- function pt(t, n, s) {
1173
- const { primaryWallet: o } = Ne(), [r, c] = N(0), b = async (w) => {
1174
- if (!o) return;
1175
- const l = new Ve(w || "https://tammi-n3hltb-fast-mainnet.helius-rpc.com/", "confirmed");
1176
- if (l)
1174
+ function pt(t, n, o) {
1175
+ const { primaryWallet: s } = Ne(), [r, c] = N(0), b = async (w) => {
1176
+ if (!s) return;
1177
+ const a = new ze(w || "https://tammi-n3hltb-fast-mainnet.helius-rpc.com/", "confirmed");
1178
+ if (a)
1177
1179
  try {
1178
- const p = new be(o.address);
1179
- l.onAccountChange(p, (T) => {
1180
+ const p = new be(s.address);
1181
+ a.onAccountChange(p, (T) => {
1180
1182
  c(T.lamports / 1e9);
1181
1183
  });
1182
- const I = await l.getBalance(p) / 1e9;
1183
- c(I), s(!1);
1184
+ const I = await a.getBalance(p) / 1e9;
1185
+ c(I), o(!1);
1184
1186
  } catch {
1185
- s(!1);
1187
+ o(!1);
1186
1188
  }
1187
1189
  };
1188
1190
  return B(() => {
1189
1191
  (t == null ? void 0 : t.networkType) === "sol" && b((t == null ? void 0 : t.chainId) === "eclipse-svm" ? "https://eclipse.lgns.net/" : null);
1190
- }, [t == null ? void 0 : t.networkType, o, t == null ? void 0 : t.chainId, o == null ? void 0 : o.address]), { balanceSol: r, getBalanceSol: b };
1192
+ }, [t == null ? void 0 : t.networkType, s, t == null ? void 0 : t.chainId, s == null ? void 0 : s.address]), { balanceSol: r, getBalanceSol: b };
1191
1193
  }
1192
1194
  function gt(t) {
1193
1195
  return t == "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" ? "" : t;
@@ -1198,25 +1200,25 @@ new be("So11111111111111111111111111111111111111112");
1198
1200
  new be("9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP");
1199
1201
  async function ht(t, n) {
1200
1202
  if (!t) return;
1201
- const s = new Ve(n || "https://tammi-n3hltb-fast-mainnet.helius-rpc.com/", "confirmed"), o = new be(t), r = await s.getParsedTokenAccountsByOwner(o, {
1203
+ const o = new ze(n || "https://tammi-n3hltb-fast-mainnet.helius-rpc.com/", "confirmed"), s = new be(t), r = await o.getParsedTokenAccountsByOwner(s, {
1202
1204
  programId: n ? ft : xt
1203
1205
  });
1204
1206
  let c = {};
1205
1207
  for (const { account: b } of r.value) {
1206
- const w = b.data.parsed.info.mint, l = b.data.parsed.info.tokenAmount.uiAmount;
1207
- c[w] = l;
1208
+ const w = b.data.parsed.info.mint, a = b.data.parsed.info.tokenAmount.uiAmount;
1209
+ c[w] = a;
1208
1210
  }
1209
1211
  return c;
1210
1212
  }
1211
1213
  function yt(t, n) {
1212
- const [s, o] = N(0), { primaryWallet: r, setPrimaryWallet: c } = Ne(), [b, w] = N(!1), l = a((m) => m.fromChain), { address: p, isConnected: f } = ge(), I = a((m) => m.cosmosChainIds), { data: T, isConnected: L } = Oe({
1214
+ const [o, s] = N(0), { primaryWallet: r, setPrimaryWallet: c } = Ne(), [b, w] = N(!1), a = l((m) => m.fromChain), { address: p, isConnected: f } = ge(), I = l((m) => m.cosmosChainIds), { data: T, isConnected: P } = Oe({
1213
1215
  chainId: I,
1214
1216
  multiChain: !0
1215
- }), h = a((m) => m.fromCoin), { data: y, isLoading: C } = O1({
1217
+ }), h = l((m) => m.fromCoin), { data: y, isLoading: C } = O1({
1216
1218
  address: p,
1217
1219
  token: gt((h == null ? void 0 : h.address) || ""),
1218
- chainId: Number((l == null ? void 0 : l.chainId) || 0),
1219
- enabled: !!((l.networkType == "evm" || n) && p && (p != null && p.length))
1220
+ chainId: Number((a == null ? void 0 : a.chainId) || 0),
1221
+ enabled: !!((a.networkType == "evm" || n) && p && (p != null && p.length))
1220
1222
  }), {
1221
1223
  data: A,
1222
1224
  isLoading: v,
@@ -1224,18 +1226,18 @@ function yt(t, n) {
1224
1226
  isInitialLoading: H,
1225
1227
  isRefetching: ne
1226
1228
  } = c1({
1227
- chainId: [l.chainId],
1229
+ chainId: [a.chainId],
1228
1230
  multiChain: !0
1229
1231
  });
1230
- async function P(m) {
1232
+ async function L(m) {
1231
1233
  if (!r) return;
1232
- const k = new Ve(m || "https://solana-rpc.publicnode.com");
1234
+ const k = new ze(m || "https://solana-rpc.publicnode.com");
1233
1235
  if (k)
1234
1236
  try {
1235
1237
  const M = new be(r.address);
1236
1238
  w(!0);
1237
1239
  const x = await k.getBalance(M) / 1e9;
1238
- o(x), w(!1);
1240
+ s(x), w(!1);
1239
1241
  } catch {
1240
1242
  w(!1);
1241
1243
  }
@@ -1244,70 +1246,70 @@ function yt(t, n) {
1244
1246
  try {
1245
1247
  w(!0);
1246
1248
  let k = await ht(r.address, m);
1247
- w(!1), o(k == null ? void 0 : k[h == null ? void 0 : h.address]);
1249
+ w(!1), s(k == null ? void 0 : k[h == null ? void 0 : h.address]);
1248
1250
  } catch {
1249
1251
  w(!1);
1250
1252
  }
1251
1253
  }
1252
- let S;
1254
+ let _;
1253
1255
  async function J() {
1254
1256
  if (!r) return;
1255
1257
  const m = await r.connector.getPublicClient();
1256
1258
  if (!m) return;
1257
1259
  const k = new be(r.address);
1258
- k && (S = m.onAccountChange(k, (M) => {
1260
+ k && (_ = m.onAccountChange(k, (M) => {
1259
1261
  var F;
1260
- l.networkType == "sol" && (r != null && r.address) && (((F = h == null ? void 0 : h.symbol) == null ? void 0 : F.toLowerCase()) === "sol" ? P() : l.chainId === "eclipse-svm" ? h.symbol == "ETH" ? P("https://eclipse.lgns.net/") : R("https://eclipse.lgns.net/") : R());
1262
+ a.networkType == "sol" && (r != null && r.address) && (((F = h == null ? void 0 : h.symbol) == null ? void 0 : F.toLowerCase()) === "sol" ? L() : a.chainId === "eclipse-svm" ? h.symbol == "ETH" ? L("https://eclipse.lgns.net/") : R("https://eclipse.lgns.net/") : R());
1261
1263
  }));
1262
1264
  }
1263
- B(() => ((l == null ? void 0 : l.networkType) === "sol" && J(), async () => {
1265
+ B(() => ((a == null ? void 0 : a.networkType) === "sol" && J(), async () => {
1264
1266
  if (!r) return;
1265
- (await r.connector.getPublicClient()).removeAccountChangeListener(S);
1266
- }), [r == null ? void 0 : r.address, l == null ? void 0 : l.networkType, h]);
1267
+ (await r.connector.getPublicClient()).removeAccountChangeListener(_);
1268
+ }), [r == null ? void 0 : r.address, a == null ? void 0 : a.networkType, h]);
1267
1269
  async function g(m) {
1268
1270
  var M, F;
1269
1271
  let k = A[m] || A;
1270
1272
  try {
1271
1273
  w(!0);
1272
1274
  let x = await k.getAllBalances((M = T == null ? void 0 : T[m]) == null ? void 0 : M.bech32Address), O = pe.keyBy(x, "denom");
1273
- o(((F = O[d1(h.address)]) == null ? void 0 : F.amount) / Math.pow(10, h.decimals) || 0), w(!1);
1275
+ s(((F = O[d1(h.address)]) == null ? void 0 : F.amount) / Math.pow(10, h.decimals) || 0), w(!1);
1274
1276
  } catch {
1275
1277
  w(!1);
1276
1278
  }
1277
1279
  }
1278
1280
  return B(() => {
1279
1281
  var m;
1280
- o(0), l.networkType == "sol" && (r != null && r.address) ? ((m = h == null ? void 0 : h.symbol) == null ? void 0 : m.toLowerCase()) === "sol" ? P() : l.chainId == "eclipse-svm" ? h.symbol == "ETH" ? P("https://eclipse.lgns.net/") : R("https://eclipse.lgns.net/") : R() : l.networkType == "evm" && p && (p != null && p.length) ? o(Number((y == null ? void 0 : y.formatted) || 0)) : l.networkType == "cosmos" && L && !v && g(l == null ? void 0 : l.chainId);
1281
- }, [l.networkType, l == null ? void 0 : l.chainId, h.symbol, h == null ? void 0 : h.address, y, p, r == null ? void 0 : r.address, p, L, v, t]), {
1282
- getbal: s,
1283
- 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
1282
+ a.networkType == "sol" && (r != null && r.address) ? ((m = h == null ? void 0 : h.symbol) == null ? void 0 : m.toLowerCase()) === "sol" ? L() : a.chainId == "eclipse-svm" ? h.symbol == "ETH" ? L("https://eclipse.lgns.net/") : R("https://eclipse.lgns.net/") : R() : a.networkType == "evm" && p && (p != null && p.length) ? s(Number((y == null ? void 0 : y.formatted) || 0)) : a.networkType == "cosmos" && P && !v && g(a == null ? void 0 : a.chainId);
1283
+ }, [a.networkType, a == null ? void 0 : a.chainId, h.symbol, h == null ? void 0 : h.address, y, p, r == null ? void 0 : r.address, p, P, v, t]), {
1284
+ getbal: o,
1285
+ 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
1284
1286
  };
1285
1287
  }
1286
- const Ct = de.lazy(() => import("./SwapAsset-mgONO1Wh.js")), vt = de.lazy(() => import("./InputComp-BUhhYfS_.js")), kt = de.lazy(() => import("./QuotesProgress-DMyLQ_Iw.js")), Nt = de.lazy(() => import("./TxnButton-CqL_9AIV.js")), Tt = de.lazy(() => import("./index-D4uRM0hD.js").then((t) => t.i)), It = de.lazy(() => import("./index-VUJh-JIq.js")), Bt = de.lazy(() => import("./LoadRoute-B9EnT59x.js")), At = de.lazy(() => import("./AllRoutes-SK8ZFq_x.js"));
1287
- function jt({ handleShowWallet: t, showWallet: n, fetchChains: s }) {
1288
+ const Ct = de.lazy(() => import("./SwapAsset-CZhHktg2.js")), vt = de.lazy(() => import("./InputComp-yY8lKNsS.js")), kt = de.lazy(() => import("./QuotesProgress-BqAtKdL0.js")), Nt = de.lazy(() => import("./TxnButton-BZKqys7R.js")), Tt = de.lazy(() => import("./index-uMBmZTqD.js").then((t) => t.i)), It = de.lazy(() => import("./index-Hx1OgUt3.js")), Bt = de.lazy(() => import("./LoadRoute-C9PROsCB.js")), At = de.lazy(() => import("./AllRoutes-CULIQsat.js"));
1289
+ function jt({ handleShowWallet: t, showWallet: n, fetchChains: o }) {
1288
1290
  var Ge, Ke, Je, qe, Xe, Qe, We;
1289
- const [o, r] = N(), [c, b] = N(!1), [w, l] = N(!1), [p, f] = N(!1), [I, T] = N(!1), [L, h] = N("all"), [y, C] = N(!1), { primaryWallet: A } = Ne();
1291
+ const [s, r] = N(), [c, b] = N(!1), [w, a] = N(!1), [p, f] = N(!1), [I, T] = N(!1), [P, h] = N("all"), [y, C] = N(!1), { primaryWallet: A } = Ne();
1290
1292
  $1();
1291
- const { address: v } = ge(), { address: Z } = l1(), { getbal: H, isBalanceLoading: ne } = yt(y), { data: P, isConnected: R } = Oe({ chainId: "cosmoshub-4" });
1292
- a((i) => i.configuration);
1293
- const S = 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), _ = a((i) => i.setAmount), ie = a((i) => i.customWallet);
1294
- a((i) => i.setToDisconnect);
1295
- const Te = a((i) => i.setCosmosChainIds), Y = a((i) => i.customFee), G = a((i) => i.broadCastMode), Q = a((i) => i.evmGas), V = 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: d } = pt(m, y, Re), { suggestAndConnectAsync: D } = z1(), re = !!(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, P == null ? void 0 : P.bech32Address, Y, Q, V, Ie, G, ye.value];
1296
- let se = (G === "Priority Fee" || G === "Both") && (Y != null && Y.length) ? Y : ye.value, oe = (G === "Jito Tip" || G === "Both") && (Y != null && Y.length) ? Y : ye.value, q = Q != null && Q.length ? Q : V.value;
1297
- const W = (m == null ? void 0 : m.networkType) === "sol" ? G === "Priority Fee" ? `&solanaPriorityFee=${se}` : G === "Jito Tip" ? { solanaJitoTip: oe } : { solanaPriorityFee: se, solanaJitoTip: oe } : (m == null ? void 0 : m.networkType) === "evm" ? { evmPriorityFee: q } : "", { getWallet: U, refetch: ee } = ke({}), { routes: z, routesData: X, setRoutesData: ce, errorMessage: te, setErrorMessage: Ce } = J1({
1293
+ const { address: v } = ge(), { address: Z } = a1(), { getbal: H, isBalanceLoading: ne } = yt(y), { data: L, isConnected: R } = Oe({ chainId: "cosmoshub-4" });
1294
+ l((i) => i.configuration);
1295
+ 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);
1296
+ l((i) => i.setToDisconnect);
1297
+ 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: d } = pt(m, y, Re), { suggestAndConnectAsync: D } = S1(), re = !!(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];
1298
+ 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;
1299
+ 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: ee } = ke({}), { routes: S, routesData: X, setRoutesData: ce, errorMessage: te, setErrorMessage: Ce } = J1({
1298
1300
  enabled: re,
1299
- dependency: ae,
1300
- payload: [(m == null ? void 0 : m.networkType) === "cosmos" ? n1(P == null ? void 0 : P.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" ? n1(P == null ? void 0 : P.bech32Address, (qe = k == null ? void 0 : k.chainInfo) == null ? void 0 : qe.bech32Config.bech32PrefixAccAddr) : ((Xe = U(k)) == null ? void 0 : Xe.address) || "", W]
1301
- }), le = U(m), we = a1({
1302
- queryKey: ["balance", le == null ? void 0 : le.address, m],
1303
- queryFn: async () => await (await _e.fetchBalance(le.address, m.chainId)).json(),
1304
- enabled: !!((Qe = le == null ? void 0 : le.address) != null && Qe.length && m.chainId),
1301
+ dependency: le,
1302
+ payload: [(m == null ? void 0 : m.networkType) === "cosmos" ? n1(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" ? n1(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]
1303
+ }), ae = U(m), we = l1({
1304
+ queryKey: ["balance", ae == null ? void 0 : ae.address, m],
1305
+ queryFn: async () => await (await Ve.fetchBalance(ae.address, m.chainId)).json(),
1306
+ enabled: !!((Qe = ae == null ? void 0 : ae.address) != null && Qe.length && m.chainId),
1305
1307
  refetchOnWindowFocus: !1
1306
1308
  }), { quoteTimer: je } = mt({
1307
- routes: z,
1309
+ routes: S,
1308
1310
  routesData: X,
1309
1311
  confirmRoute: w,
1310
- setConfirmRoute: l,
1312
+ setConfirmRoute: a,
1311
1313
  isRoutesEnabled: re,
1312
1314
  fetchBalance: we
1313
1315
  });
@@ -1320,15 +1322,15 @@ function jt({ handleShowWallet: t, showWallet: n, fetchChains: s }) {
1320
1322
  clearTimeout(i), T(!1);
1321
1323
  };
1322
1324
  }, [j]), B(() => {
1323
- z.isFetching && ce({});
1324
- }, [z.isFetching]);
1325
+ S.isFetching && ce({});
1326
+ }, [S.isFetching]);
1325
1327
  function ve(i) {
1326
1328
  f(i);
1327
1329
  }
1328
- function Le() {
1330
+ function Pe() {
1329
1331
  r();
1330
1332
  }
1331
- async function Pe(i) {
1333
+ async function Le(i) {
1332
1334
  if (R)
1333
1335
  try {
1334
1336
  let ue = await t1();
@@ -1345,16 +1347,16 @@ function jt({ handleShowWallet: t, showWallet: n, fetchChains: s }) {
1345
1347
  return;
1346
1348
  }
1347
1349
  function h1(i) {
1348
- (i == null ? void 0 : i.networkType) == "cosmos" && Pe(i.chainInfo), _(""), Ce({ error: "" }), o == "from" ? x({ ...i }) : o == "to" && O({ ...i });
1350
+ (i == null ? void 0 : i.networkType) == "cosmos" && Le(i.chainInfo), V(""), Ce({ error: "" }), s == "from" ? x({ ...i }) : s == "to" && O({ ...i });
1349
1351
  }
1350
1352
  function y1(i) {
1351
- Ce({ error: "" }), _(""), o == "from" ? $({ ...i }) : o == "to" && E({ ...i });
1353
+ Ce({ error: "" }), V(""), s == "from" ? $({ ...i }) : s == "to" && E({ ...i });
1352
1354
  }
1353
1355
  function Ze() {
1354
1356
  b(!c);
1355
1357
  }
1356
1358
  function He(i) {
1357
- l(typeof i < "u" ? i : !w);
1359
+ a(typeof i < "u" ? i : !w);
1358
1360
  }
1359
1361
  function Re(i) {
1360
1362
  C(i);
@@ -1368,10 +1370,10 @@ function jt({ handleShowWallet: t, showWallet: n, fetchChains: s }) {
1368
1370
  }, 1e3);
1369
1371
  }
1370
1372
  function k1() {
1371
- _("");
1373
+ V("");
1372
1374
  }
1373
1375
  function N1(i, ue, xe) {
1374
- _e.fetchTokens(i.chainId, xe).then((me) => me.json()).then((me) => {
1376
+ Ve.fetchTokens(i.chainId, xe).then((me) => me.json()).then((me) => {
1375
1377
  var fe, Ue;
1376
1378
  (Ue = (fe = me.data) == null ? void 0 : fe[i.chainId]) == null || Ue.forEach((Ye) => {
1377
1379
  ue({
@@ -1384,15 +1386,15 @@ function jt({ handleShowWallet: t, showWallet: n, fetchChains: s }) {
1384
1386
  });
1385
1387
  }
1386
1388
  function T1() {
1387
- _(""), x(k), $(F), O(m), E(M), m.networkType !== k.networkType && Be("");
1389
+ V(""), x(k), $(F), O(m), E(M), m.networkType !== k.networkType && Be("");
1388
1390
  }
1389
1391
  B(() => {
1390
- S.isHistory && g === "" && (J({ allSteps: { steps: null, currentStep: 0 }, stepData: {} }), ve(!1));
1391
- }, [S]);
1392
+ _.isHistory && g === "" && (J({}), ve(!1));
1393
+ }, [_]);
1392
1394
  function I1(i) {
1393
1395
  var ue;
1394
- if (i && s.isSuccess && i !== (k == null ? void 0 : k.networkType) && i !== (m == null ? void 0 : m.networkType)) {
1395
- let xe = pe.keyBy(s.data.data, "chainId"), me = i == "evm" ? "8453" : i == "sol" ? "sol" : "cosmoshub-4", fe = i == "evm" ? "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" : i == "sol" ? "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263" : "uatom";
1396
+ if (i && o.isSuccess && i !== (k == null ? void 0 : k.networkType) && i !== (m == null ? void 0 : m.networkType)) {
1397
+ let xe = pe.keyBy(o.data.data, "chainId"), me = i == "evm" ? "8453" : i == "sol" ? "sol" : "cosmoshub-4", fe = i == "evm" ? "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" : i == "sol" ? "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263" : "uatom";
1396
1398
  x({
1397
1399
  ...xe[me],
1398
1400
  chain: ((ue = xe[me]) == null ? void 0 : ue.name) || ""
@@ -1400,24 +1402,24 @@ function jt({ handleShowWallet: t, showWallet: n, fetchChains: s }) {
1400
1402
  } else
1401
1403
  return;
1402
1404
  }
1403
- return /* @__PURE__ */ e(A1, { fallback: /* @__PURE__ */ e(P1, {}), children: /* @__PURE__ */ e("div", { children: n ? /* @__PURE__ */ e(Tt, { connectWalletField: L, handleShowWallet: t, handleRecentSelectedWallet: I1 }) : !w && !((We = S == null ? void 0 : S.routeId) != null && We.length) ? c ? /* @__PURE__ */ e(At, { routes: z, handleShowAllRoutes: Ze, handleRoutesData: C1, convertVal: (F == null ? void 0 : F.lastPrice) || 0, amount: j }) : o ? /* @__PURE__ */ e(tt, { chainData: o == "from" ? m : k, coinData: o == "from" ? M : F, setChainData: h1, setCoinData: y1, handleReset: Le, showExchangeList: o, fetchBalance: we, fetchChains: s }) : /* @__PURE__ */ u(K, { children: [
1405
+ return /* @__PURE__ */ e(A1, { fallback: /* @__PURE__ */ e(L1, {}), children: /* @__PURE__ */ e("div", { children: n ? /* @__PURE__ */ e(Tt, { connectWalletField: P, handleShowWallet: t, handleRecentSelectedWallet: I1 }) : !w && !((We = _ == null ? void 0 : _.routeId) != null && We.length) ? c ? /* @__PURE__ */ e(At, { routes: S, handleShowAllRoutes: Ze, handleRoutesData: C1, convertVal: (F == null ? void 0 : F.lastPrice) || 0, amount: j }) : s ? /* @__PURE__ */ e(tt, { chainData: s == "from" ? m : k, coinData: s == "from" ? M : F, setChainData: h1, setCoinData: y1, handleReset: Pe, showExchangeList: s, fetchBalance: we, fetchChains: o }) : /* @__PURE__ */ u(K, { children: [
1404
1406
  /* @__PURE__ */ e(ut, {}),
1405
1407
  /* @__PURE__ */ u("div", { className: "bw-flex bw-relative bw-items-center bw-gap-x-2 bw-justify-between", children: [
1406
1408
  /* @__PURE__ */ e(Ct, { handleSwap: T1 }),
1407
- /* @__PURE__ */ e(s1, { chainData: m, show: "from", handleShowWallet: t, setShowExchangeList: r, setConnectWalletField: h, coinData: M }),
1408
- /* @__PURE__ */ e(s1, { chainData: k, show: "to", handleShowWallet: t, setShowExchangeList: r, setConnectWalletField: h, coinData: F })
1409
+ /* @__PURE__ */ e(o1, { chainData: m, show: "from", handleShowWallet: t, setShowExchangeList: r, setConnectWalletField: h, coinData: M }),
1410
+ /* @__PURE__ */ e(o1, { chainData: k, show: "to", handleShowWallet: t, setShowExchangeList: r, setConnectWalletField: h, coinData: F })
1409
1411
  ] }),
1410
- /* @__PURE__ */ e(vt, { amount: j, setAmount: _, fetchBalance: we, getCoinBalance: H, isBalanceLoading: ne }),
1411
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(Bt, { routes: z, handleShowAllRoutes: Ze, routesData: X, amount: j, isRoutesEnabled: I, price: ((X == null ? void 0 : X.outputAmountDisplay) || "") * ((F == null ? void 0 : F.lastPrice) || 0) }) }),
1412
+ /* @__PURE__ */ e(vt, { amount: j, setAmount: V, fetchBalance: we, getCoinBalance: H, isBalanceLoading: ne }),
1413
+ /* @__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) }) }),
1412
1414
  /* @__PURE__ */ e("p", { className: "bw-text-xs bw-font-normal bw-py-1 bw-text-text-redtext", children: typeof (te == null ? void 0 : te.error) == "string" ? te == null ? void 0 : te.error : "" }),
1413
- /* @__PURE__ */ e(kt, { amount: I, routes: z, routesData: X, quoteTimer: je }),
1414
- /* @__PURE__ */ e(Nt, { routesData: X, handleSuccess: Re, routes: z, fetchBalancePrev: we, amount: j, isAmountTyped: I, handleShowWallet: t, setConnectWalletField: h, handleConfirmClose: He, balanceSol: d, getCoinBalance: H })
1415
- ] }) : /* @__PURE__ */ e(It, { handleConfirmClose: He, amount: j, routesData: X, resetAmount: k1, routes: z, handleStopRoute: ve, resetBalance: v1 }) }) });
1415
+ /* @__PURE__ */ e(kt, { amount: I, routes: S, routesData: X, quoteTimer: je }),
1416
+ /* @__PURE__ */ e(Nt, { routesData: X, handleSuccess: Re, routes: S, fetchBalancePrev: we, amount: j, isAmountTyped: I, handleShowWallet: t, setConnectWalletField: h, handleConfirmClose: He, balanceSol: d, getCoinBalance: H })
1417
+ ] }) : /* @__PURE__ */ e(It, { handleConfirmClose: He, amount: j, routesData: X, resetAmount: k1, routes: S, handleStopRoute: ve, resetBalance: v1 }) }) });
1416
1418
  }
1417
- function Lt({ fetchChains: t }) {
1418
- const [n, s] = N(!1), { isConnected: o } = ge();
1419
+ function Pt({ fetchChains: t }) {
1420
+ const [n, o] = N(!1), { isConnected: s } = ge();
1419
1421
  function r(c) {
1420
- s(!n);
1422
+ o(!n);
1421
1423
  }
1422
1424
  return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
1423
1425
  jt,
@@ -1430,7 +1432,7 @@ function Lt({ fetchChains: t }) {
1430
1432
  }
1431
1433
  const Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1432
1434
  __proto__: null,
1433
- default: Lt
1435
+ default: Pt
1434
1436
  }, Symbol.toStringTag, { value: "Module" }));
1435
1437
  export {
1436
1438
  gt as c,