@blockend/widget 1.0.48-beta.0 → 1.0.49-beta.2

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 (117) hide show
  1. package/dist/{AllRoutes-D8LuuVmM.js → AllRoutes-SK8ZFq_x.js} +9 -9
  2. package/dist/{Box-DM9yFOex.js → Box-DAMq9mQT.js} +5 -5
  3. package/dist/EstGas-B9rFXiVW.js +1486 -0
  4. package/dist/{Grow-DOn6L3co.js → Grow-Qzfjlf_b.js} +2 -2
  5. package/dist/{InputComp-NuVHgaJr.js → InputComp-BUhhYfS_.js} +3 -3
  6. package/dist/{LoadRoute-B67KdzDM.js → LoadRoute-B9EnT59x.js} +4 -4
  7. package/dist/{QuotesProgress-QaDMFoy1.js → QuotesProgress-DMyLQ_Iw.js} +1 -1
  8. package/dist/{SwapAsset-DS1khTG7.js → SwapAsset-mgONO1Wh.js} +1 -1
  9. package/dist/{Tooltip-Ba3WFgGd.js → Tooltip-CCwWxndh.js} +15 -15
  10. package/dist/TxnButton-CqL_9AIV.js +211 -0
  11. package/dist/{add-q9Nf6prg.js → add-DgNWpTbE.js} +1 -1
  12. package/dist/{all-wallets-DPeT0Mif.js → all-wallets-DbLggbFH.js} +1 -1
  13. package/dist/{app-store-DN3WdWdo.js → app-store-BM-3bzwt.js} +1 -1
  14. package/dist/{apple-DyzMqifv.js → apple-DGgkQglq.js} +1 -1
  15. package/dist/{arrow-bottom-DqoHxj9Z.js → arrow-bottom-BCcsiVDf.js} +1 -1
  16. package/dist/{arrow-bottom-circle-gYCPf_-a.js → arrow-bottom-circle-BxnEnxCv.js} +1 -1
  17. package/dist/{arrow-left-BCb0WGCp.js → arrow-left-BajNw8Bo.js} +1 -1
  18. package/dist/{arrow-right-COFDKXwO.js → arrow-right-Kqyf83Ue.js} +1 -1
  19. package/dist/{arrow-top-A2hPO7gg.js → arrow-top-P0YZuCsS.js} +1 -1
  20. package/dist/{bank-DzMH-tSV.js → bank-BdBlTjok.js} +1 -1
  21. package/dist/{basic-C5wivloW.js → basic-B7dsMTNk.js} +3 -3
  22. package/dist/{browser-pBih3Y0E.js → browser-CiQFAZ4t.js} +1 -1
  23. package/dist/{card-CnPr5FkC.js → card-D94MFuQu.js} +1 -1
  24. package/dist/{ccip-Di_Zaa6h.js → ccip-vv5r0Apm.js} +11 -11
  25. package/dist/{checkmark-DuHkawx4.js → checkmark-Cucqq4L6.js} +1 -1
  26. package/dist/{checkmark-bold-CbTyGrPC.js → checkmark-bold-C5WgesjY.js} +1 -1
  27. package/dist/{chevron-bottom-ClujWrwS.js → chevron-bottom-CyfhotQQ.js} +1 -1
  28. package/dist/{chevron-left-Bk48p4Zx.js → chevron-left-CXJ7R3iS.js} +1 -1
  29. package/dist/{chevron-right-DNGloKKX.js → chevron-right-4ex-g3or.js} +1 -1
  30. package/dist/{chevron-top-BeF-AMWu.js → chevron-top-BDfgSTbr.js} +1 -1
  31. package/dist/{chrome-store-DbhS7z0N.js → chrome-store-CX9plHu3.js} +1 -1
  32. package/dist/{clock-C_6_l4to.js → clock-CtQPqpVc.js} +1 -1
  33. package/dist/{close-CSt1jFt2.js → close-CYlyCBrT.js} +1 -1
  34. package/dist/{coinPlaceholder-BCj1y0PN.js → coinPlaceholder-DS0YfqOM.js} +1 -1
  35. package/dist/{compass-BylNTlMa.js → compass-DVktgTZ-.js} +1 -1
  36. package/dist/{copy-B5chXsW-.js → copy-Bk0qGavv.js} +1 -1
  37. package/dist/{core-DMrbUYAd.js → core-DgJB3Qno.js} +3 -3
  38. package/dist/{cursor-DOai1hPO.js → cursor-CCqfxECm.js} +1 -1
  39. package/dist/{cursor-transparent-Cadcmy6E.js → cursor-transparent-CPbYJ9jd.js} +1 -1
  40. package/dist/{desktop-DCy_OF9q.js → desktop-DAykpsO7.js} +1 -1
  41. package/dist/{disconnect-d_9YI8yP.js → disconnect-DL8vRZg2.js} +1 -1
  42. package/dist/{discord-C5PncbsA.js → discord-BS8TPANA.js} +1 -1
  43. package/dist/{down-B0DJRPMS.js → down-D6aGpC9P.js} +2 -2
  44. package/dist/{etherscan-ClGwr9lW.js → etherscan-YSjUjqH5.js} +1 -1
  45. package/dist/{exclamation-triangle-UG68kEuv.js → exclamation-triangle-Cd8s_lsN.js} +1 -1
  46. package/dist/{extension-Bhr-Ssau.js → extension-BfYpl1LK.js} +1 -1
  47. package/dist/{external-link-BRJo7SZO.js → external-link-uF5MV_9t.js} +1 -1
  48. package/dist/{facebook-BnA-xxoO.js → facebook-DO648yaX.js} +1 -1
  49. package/dist/{farcaster-CvgpGB8R.js → farcaster-DZF64pQM.js} +1 -1
  50. package/dist/{filters-2DNvXC2d.js → filters-DMTGJi0Y.js} +1 -1
  51. package/dist/{getChainIds-BJOBostX.js → getChainIds-DUKOh0Kp.js} +2 -2
  52. package/dist/getCosmosAddress-Cb98patK.js +6075 -0
  53. package/dist/{github-CqCIZfoi.js → github-DQDrN0RZ.js} +1 -1
  54. package/dist/{google-Cb46Xe1N.js → google-DRrIdyFk.js} +1 -1
  55. package/dist/{hamburger-Cj81xHVG.js → hamburger-DFh0u4ls.js} +5 -5
  56. package/dist/{help-circle-BQm3Y4uL.js → help-circle-n5Ls2-2F.js} +1 -1
  57. package/dist/{id-DlZAWXhX.js → id-DbShnIoD.js} +1 -1
  58. package/dist/{image-C-Rdb3yG.js → image-B5YOEd-c.js} +1 -1
  59. package/dist/{index-CxxmgFkL.js → index-BC_WzIG-.js} +1 -1
  60. package/dist/index-BIN4LE_6.js +42277 -0
  61. package/dist/{index-CUDhfiq5.js → index-BwAuNUFT.js} +2600 -2622
  62. package/dist/{index-BKAQ3OTd.js → index-CDBWyjo1.js} +11 -11
  63. package/dist/{index-N4PNqcjR.js → index-CL2LZuVL.js} +2 -2
  64. package/dist/{index-DeBuj-lE.js → index-CktG1k9u.js} +1 -1
  65. package/dist/index-D4uRM0hD.js +3010 -0
  66. package/dist/index-DEecyVOZ.js +6711 -0
  67. package/dist/{index-BEianCH_.js → index-DuTB7F2j.js} +279 -306
  68. package/dist/{index-DD4yqUTK.js → index-DvR1iioL.js} +78 -78
  69. package/dist/index-VUJh-JIq.js +206 -0
  70. package/dist/{index.es-BkvYD6Tp.js → index.es-BRVISbr4.js} +2498 -2373
  71. package/dist/{index.es-DGhokHli.js → index.es-DD1q2x58.js} +1 -1
  72. package/dist/index.es.js +1 -1
  73. package/dist/{info-o_cb8tTT.js → info-5rQx4FCT.js} +1 -1
  74. package/dist/{info-circle-BweemjWa.js → info-circle-DnNqx9Fu.js} +1 -1
  75. package/dist/{lightbulb-CIREQKfQ.js → lightbulb-DEa_QXWk.js} +1 -1
  76. package/dist/{mail-D7pla8qN.js → mail-DNWPpemE.js} +1 -1
  77. package/dist/{mobile-BfSFqXTR.js → mobile-CsmBvAG0.js} +1 -1
  78. package/dist/{more-Cm2OZt-4.js → more-Bjd7dOWF.js} +1 -1
  79. package/dist/{network-placeholder-cja_SKEh.js → network-placeholder-DsQ_HMHG.js} +1 -1
  80. package/dist/{nftPlaceholder-CPMGC0YA.js → nftPlaceholder-KsQSrTt2.js} +1 -1
  81. package/dist/{off-2ov8-cMg.js → off-B0hqloiu.js} +1 -1
  82. package/dist/{play-store-K7jF5Tx9.js → play-store-DseAgFmo.js} +1 -1
  83. package/dist/{plus-D2hT5Tke.js → plus-BJCNDRM3.js} +1 -1
  84. package/dist/{qr-code-DdAcFtyy.js → qr-code-lEBAtsO4.js} +1 -1
  85. package/dist/{recycle-horizontal-C_hgDyOE.js → recycle-horizontal-K4rUQslN.js} +1 -1
  86. package/dist/{refresh-DmHZ_uHs.js → refresh-DEZrriLV.js} +1 -1
  87. package/dist/{reown-logo-C7Ew_uaV.js → reown-logo-BHbe-CUO.js} +1 -1
  88. package/dist/{search-DIQ1nJd8.js → search-CIK9XN0-.js} +1 -1
  89. package/dist/{send-oPtL6xIE.js → send-Bxpdb3Vf.js} +1 -1
  90. package/dist/{swapHorizontal-Csk-Etan.js → swapHorizontal-BBHEuYx1.js} +1 -1
  91. package/dist/{swapHorizontalBold-BcWknhY6.js → swapHorizontalBold-t0VsiN4I.js} +1 -1
  92. package/dist/{swapHorizontalMedium-DmNmthd2.js → swapHorizontalMedium-PzUH_Th4.js} +1 -1
  93. package/dist/{swapHorizontalRoundedBold-Cqili0jK.js → swapHorizontalRoundedBold-EyDyL2Bj.js} +1 -1
  94. package/dist/{swapVertical-CmQhV1BW.js → swapVertical-CusOd1Kd.js} +1 -1
  95. package/dist/{telegram-8VqDFrbM.js → telegram-DfP_Unfg.js} +1 -1
  96. package/dist/{three-dots-54YC22RW.js → three-dots-BcnJZFUd.js} +1 -1
  97. package/dist/{twitch-BG66DH8z.js → twitch-CN0F2VUn.js} +1 -1
  98. package/dist/{twitterIcon-B3TRjKnO.js → twitterIcon-DDA3Skm-.js} +1 -1
  99. package/dist/{unsupportedProp-DxJPUr4X.js → unsupportedProp-CIQ48Cx8.js} +1 -1
  100. package/dist/useRegisterError-DuNi8RxR.js +8812 -0
  101. package/dist/{verify-Cxrk9OZf.js → verify-BVsIUy32.js} +1 -1
  102. package/dist/{verify-filled-DTYh5fHd.js → verify-filled-bQ1f0Y-d.js} +1 -1
  103. package/dist/{w3m-modal-BtzAU8Rd.js → w3m-modal-Cg8vnNGL.js} +2 -2
  104. package/dist/{wallet-CqHzy9UL.js → wallet-OISOAGe9.js} +1 -1
  105. package/dist/{wallet-placeholder-DUpL8Wi-.js → wallet-placeholder-DZD3tMxc.js} +1 -1
  106. package/dist/{walletconnect-CMShOjhI.js → walletconnect-CCANKmqY.js} +1 -1
  107. package/dist/{warning-circle-C-6BUTdg.js → warning-circle-C_uh-wB2.js} +1 -1
  108. package/dist/{x-Bs3i9yGj.js → x-BpuzG7VO.js} +1 -1
  109. package/package.json +3 -5
  110. package/dist/EstGas-BeT31S57.js +0 -13644
  111. package/dist/TxnButton-tr4Dz_jE.js +0 -223
  112. package/dist/getCosmosAddress-nYlLagxO.js +0 -8398
  113. package/dist/index-BJtXFuWZ.js +0 -160
  114. package/dist/index-CPAph-rb.js +0 -206
  115. package/dist/index-DQ-upUtl.js +0 -85050
  116. package/dist/index-eC9_VgZe.js +0 -3183
  117. package/dist/useRegisterError-RP3LuUvG.js +0 -8913
@@ -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 _e, W as i1 } from "./useRegisterError-RP3LuUvG.js";
4
- import { u as l, l as pe, a as a1, c as Se, S as P1, M as L1 } from "./index-DQ-upUtl.js";
5
- import { C as e1, M as F1, g as t1 } from "./getChainIds-BJOBostX.js";
6
- import { useQuery as l1 } from "@tanstack/react-query";
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";
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 _1 } from "./shareicon-CG3v7iKI.js";
10
- import { u as S1, B as V1 } from "./index-N4PNqcjR.js";
9
+ import { S as S1 } from "./shareicon-CG3v7iKI.js";
10
+ import { u as _1, B as V1 } from "./index-CL2LZuVL.js";
11
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-B0DJRPMS.js";
12
+ import { S as H1, D as G1 } from "./down-D6aGpC9P.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-nYlLagxO.js";
14
+ import { C as Ve, P as be, u as J1, g as n1 } from "./getCosmosAddress-Cb98patK.js";
15
15
  function b1({ fill: t }) {
16
16
  return /* @__PURE__ */ u(
17
17
  "svg",
@@ -47,7 +47,7 @@ function b1({ fill: t }) {
47
47
  );
48
48
  }
49
49
  function q1({ data: t, handleBack: n, handleSetChainData: s, network: o }) {
50
- const [r, c] = N(t), [b, d] = N(""), { tick: i, defaultCoin: m } = Ee;
50
+ const [r, c] = N(t), [b, w] = N(""), { tick: l, defaultCoin: p } = Ee;
51
51
  return /* @__PURE__ */ u("div", { children: [
52
52
  /* @__PURE__ */ u("div", { className: "bw-flex bw-relative bw-justify-center bw-mb-2", children: [
53
53
  /* @__PURE__ */ e(
@@ -78,7 +78,7 @@ function q1({ data: t, handleBack: n, handleSetChainData: s, network: o }) {
78
78
  type: "text",
79
79
  value: b,
80
80
  onChange: (f) => {
81
- d(f.target.value);
81
+ w(f.target.value);
82
82
  },
83
83
  className: `bw-text-sm bw-px-2 bw-w-full bw-h-[34px] ${b.length ? "bw-border-0 bw-border-transparent" : "bw-border bw-border-border-primary"} bw-rounded-[5px] bw-font-normal bw-bg-background-container placeholder:bw-text-text-placeholder bw-text-text-primary`,
84
84
  placeholder: "Search Network"
@@ -103,10 +103,10 @@ function q1({ data: t, handleBack: n, handleSetChainData: s, network: o }) {
103
103
  children: [
104
104
  /* @__PURE__ */ u("div", { className: "bw-flex bw-items-center bw-gap-x-3", children: [
105
105
  " ",
106
- /* @__PURE__ */ e("img", { src: (T = f.image) != null && T.length ? f.image : m, className: "bw-rounded-[50%] bw-border bw-border-border-primary", width: 25, height: 25, alt: "img" }),
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: i, width: 10, height: 10, alt: "img" }) : /* @__PURE__ */ e(K, {})
109
+ o.chain === f.name ? /* @__PURE__ */ e("img", { src: l, width: 10, height: 10, alt: "img" }) : /* @__PURE__ */ e(K, {})
110
110
  ] }),
111
111
  /* @__PURE__ */ u("div", { className: "bw-pr-2", children: [
112
112
  /* @__PURE__ */ e("p", { className: "bw-text-xs bw-font-normal", children: "Tokens" }),
@@ -123,29 +123,27 @@ const X1 = "_gradientbackground_7x8s8_1", Q1 = "_overlay_7x8s8_5", r1 = {
123
123
  gradientbackground: X1,
124
124
  overlay: Q1
125
125
  };
126
- function U1(t) {
126
+ function W1(t) {
127
127
  let n = t.match(/[1-9A-HJ-NP-Za-km-z]{32,44}/);
128
128
  return t.slice(0, 2) === "0x" ? !0 : n ? t == n : !1;
129
129
  }
130
- function Y1(t) {
131
- const [n, s] = N({}), o = l((i) => i.cosmosChainIds), { data: r } = Oe({
130
+ function U1(t) {
131
+ const [n, s] = N({}), o = a((l) => l.cosmosChainIds), { data: r } = Oe({
132
132
  chainId: o,
133
133
  multiChain: !0
134
- }), c = l((i) => i.fromChain), { data: b } = c1({
134
+ }), c = a((l) => l.fromChain), { data: b } = c1({
135
135
  chainId: [(t == null ? void 0 : t.chainId) || c.chainId],
136
136
  multiChain: !0
137
137
  });
138
- async function d(i) {
139
- var m, f;
140
- if ((m = r == null ? void 0 : r[i]) != null && m.bech32Address && b) {
141
- let T = await (b[i] || b).getAllBalances(
142
- (f = r == null ? void 0 : r[i]) == null ? void 0 : f.bech32Address
143
- ), L = pe.keyBy(T, "denom");
138
+ async function w(l) {
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");
144
142
  s(L);
145
143
  }
146
144
  }
147
145
  return B(() => {
148
- ((t == null ? void 0 : t.networkType) == "cosmos" || (c == null ? void 0 : c.networkType) == "cosmos") && d((t == null ? void 0 : t.chainId) || (c == null ? void 0 : c.chainId));
146
+ ((t == null ? void 0 : t.networkType) == "cosmos" || (c == null ? void 0 : c.networkType) == "cosmos") && w((t == null ? void 0 : t.chainId) || (c == null ? void 0 : c.chainId));
149
147
  }, [b, c, t]), { cosmosBalance: n };
150
148
  }
151
149
  function d1(t) {
@@ -156,7 +154,7 @@ function d1(t) {
156
154
  } else
157
155
  return t;
158
156
  }
159
- function W1({ fill: t }) {
157
+ function Y1({ fill: t }) {
160
158
  return /* @__PURE__ */ u(
161
159
  "svg",
162
160
  {
@@ -202,7 +200,7 @@ function D1({ selectedChain: t }) {
202
200
  alt: "chain"
203
201
  }
204
202
  ) : /* @__PURE__ */ e(K, {}),
205
- /* @__PURE__ */ e("div", { className: "bw-absolute bw-bg-background-container -bw-bottom-2 -bw-right-2 bw-flex bw-items-center bw-justify-center bw-rounded-full bw-border bw-border-border-primary bw-w-[44px] bw-h-[44px]", children: /* @__PURE__ */ e(W1, { fill: "var(--tw-text-secondary)" }) })
203
+ /* @__PURE__ */ e("div", { className: "bw-absolute bw-bg-background-container -bw-bottom-2 -bw-right-2 bw-flex bw-items-center bw-justify-center bw-rounded-full bw-border bw-border-border-primary bw-w-[44px] bw-h-[44px]", children: /* @__PURE__ */ e(Y1, { fill: "var(--tw-text-secondary)" }) })
206
204
  ] }) }),
207
205
  /* @__PURE__ */ u("h2", { className: "bw-text-base bw-text-center bw-mt-3 bw-font-bold bw-text-text-primary", children: [
208
206
  "No Tokens found on ",
@@ -218,127 +216,127 @@ function D1({ selectedChain: t }) {
218
216
  }
219
217
  const et = de.memo(function({ selectChainState: n, value: s, handleClosePopup: o, showExchangeList: r, setCoinData: c, setChainData: b }) {
220
218
  var Be, Ae;
221
- l((w) => w.searchCustomCoin);
222
- const d = l((w) => w.setSearchCustomCoin), { ref: i, inView: m } = S1(), { getWallet: f } = ke({}), { connected: I, address: T } = a1(), { isConnected: L, address: h } = ge(), { primaryWallet: y } = Ne();
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();
223
221
  R1();
224
- const C = f(n), A = l((w) => w.fromChain), v = l((w) => w.fromCoin), Z = l((w) => w.toChain), H = l((w) => w.toCoin), [ne, F] = N(!1), { cosmosBalance: $ } = Y1(n), { defaultCoin: _ } = Ee, [J, p] = N(0), k = B1(null), { data: g } = Oe({
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({
225
223
  chainId: [n.chainId],
226
224
  multiChain: !0
227
- }), P = (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 = g == null ? void 0 : g[n == null ? void 0 : n.chainId]) == null ? void 0 : Be.bech32Address), M = l((w) => w.toDisconnect);
228
- l((w) => w.setToDisconnect);
229
- const x = l((w) => w.customWallet), E = l((w) => w.setCustomWallet), O = l((w) => w.tokens), [R, j] = N([]), [S, ie] = N([]), [Te, W] = N([]), G = O, Q = l1({
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({
230
228
  queryKey: ["balance", C == null ? void 0 : C.address, n],
231
- queryFn: async () => await (await Se.fetchBalance(C.address, n.chainId)).json(),
229
+ queryFn: async () => await (await _e.fetchBalance(C.address, n.chainId)).json(),
232
230
  enabled: !!((Ae = C == null ? void 0 : C.address) != null && Ae.length && n.chainId),
233
231
  refetchOnWindowFocus: !1
234
232
  });
235
- function V(w) {
236
- var re, le, se, oe, q, U, Y, ee, z, X, ce, te;
237
- let D = d1(w.address);
238
- return w.networkType == "cosmos" ? $e(((re = $ == null ? void 0 : $[D]) == null ? void 0 : re.amount) / Math.pow(10, w.decimals) || 0) || "" : $e((((U = (q = (oe = (se = (le = Q.data) == null ? void 0 : le.data) == null ? void 0 : se[n == null ? void 0 : n.networkType]) == null ? void 0 : oe[n.chainId]) == null ? void 0 : q[w.address]) == null ? void 0 : U.balance) || 0) / Math.pow(10, ((te = (ce = (X = (z = (ee = (Y = Q.data) == null ? void 0 : Y.data) == null ? void 0 : ee[n == null ? void 0 : n.networkType]) == null ? void 0 : z[n.chainId]) == null ? void 0 : X[w.address]) == null ? void 0 : ce.asset) == null ? void 0 : te.decimals) || 0) || 0) || "";
233
+ function V(d) {
234
+ var re, ae, se, oe, q, W, U, ee, z, X, ce, te;
235
+ 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) || "";
239
237
  }
240
238
  B(() => {
241
- s.length > 40 && U1(s) && !S.length ? (F(!0), d({
239
+ s.length > 40 && W1(s) && !_.length ? (P(!0), w({
242
240
  chainId: n.chainId,
243
241
  address: s
244
- })) : s.length || (F(!1), d({ chainId: "", address: "" }));
245
- }, [s, S]), B(() => {
246
- p(0);
242
+ })) : s.length || (P(!1), w({ chainId: "", address: "" }));
243
+ }, [s, _]), B(() => {
244
+ g(0);
247
245
  }, [s]);
248
246
  function Ie() {
249
- p(0), ie([]), k.current.scrollTo(0, 0);
247
+ g(0), ie([]), m.current.scrollTo(0, 0);
250
248
  }
251
249
  B(() => {
252
- var w, D;
253
- G != null && G.isSuccess && (n != null && n.chainId) && j(((D = (w = G == null ? void 0 : G.data) == null ? void 0 : w.data) == null ? void 0 : D[n == null ? void 0 : n.chainId]) || []);
250
+ var d, D;
251
+ G != null && G.isSuccess && (n != null && n.chainId) && j(((D = (d = G == null ? void 0 : G.data) == null ? void 0 : d.data) == null ? void 0 : D[n == null ? void 0 : n.chainId]) || []);
254
252
  }, [G, n.chainId]), B(() => {
255
253
  Ie();
256
254
  }, [n.chainId]);
257
255
  function ye() {
258
256
  var oe;
259
- let w = (oe = R == null ? void 0 : R.filter((q) => {
260
- var U, Y, ee, z;
261
- return ((U = q.name) == null ? void 0 : U.toLowerCase().includes(s == null ? void 0 : s.toLowerCase())) || ((Y = q.symbol) == null ? void 0 : Y.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()));
262
- })) == null ? void 0 : oe.sort((q, U) => {
263
- if (P) return V(U) * U.lastPrice - V(q) * q.lastPrice;
264
- }), D = 20, re = J * D, le = re + D, se = w.slice(re, le);
265
- J == 0 ? ie([...se]) : ie([...S, ...se]);
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]);
266
264
  }
267
265
  return B(() => {
268
- R != null && R.length && ye();
269
- }, [R, s, J, P, $, Q.data]), B(() => {
270
- m && p((w) => w + 1);
271
- }, [m]), /* @__PURE__ */ e("div", { ref: k, className: " bw-h-[200px] bw-pr-2 md:bw-h-[380px] bw-mt-2 bw-overflow-y-auto", children: S && (S == null ? void 0 : S.length) > 0 ? S == null ? void 0 : S.map((w, D, re) => {
272
- var le, se, oe, q, U, Y;
266
+ E != null && E.length && ye();
267
+ }, [E, s, J, M, R, Q.data]), B(() => {
268
+ 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;
273
271
  return /* @__PURE__ */ u(
274
272
  "div",
275
273
  {
276
- ref: re.length >= 20 && re.length - 1 === D ? i : null,
274
+ ref: re.length >= 20 && re.length - 1 === D ? l : null,
277
275
  className: `bw-py-2
278
- ${r == "from" && H._id !== w._id || r == "to" && v._id !== w._id, ""}
276
+ ${r == "from" && H._id !== d._id || r == "to" && v._id !== d._id, ""}
279
277
  bw-flex bw-items-center bw-justify-between bw-cursor-pointer bw-border-b bw-border-border-primary
280
278
 
281
279
  }`,
282
280
  onClick: async () => {
283
- var z, X, ce, te, Ce, ae, we, je, ve, Pe, Le;
281
+ var z, X, ce, te, Ce, le, we, je, ve, Le, Pe;
284
282
  let ee = {
285
283
  // ...coinData,
286
- coin: w.symbol,
287
- ...w,
288
- 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[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)
284
+ coin: d.symbol,
285
+ ...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)
289
287
  };
290
- 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, E(""));
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(""));
291
289
  },
292
290
  children: [
293
291
  /* @__PURE__ */ u("div", { className: "bw-flex bw-items-center bw-justify-center bw-w-max bw-gap-x-2", children: [
294
- /* @__PURE__ */ u("div", { className: `bw-relative bw-rounded-[50%] bw-w-[30px] bw-h-[30px] ${(le = w.image) != null && le.length ? "bw-bg-background-secondary" : ""}`, children: [
295
- (se = w.image) != null && se.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
- (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: _, 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" })
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" })
297
295
  ] }),
298
296
  /* @__PURE__ */ u("div", { children: [
299
297
  /* @__PURE__ */ u("p", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: [
300
298
  /* @__PURE__ */ u("span", { className: "bw-font-bold bw-text-text-primary", children: [
301
- w.symbol || "",
299
+ d.symbol || "",
302
300
  " "
303
301
  ] }),
304
- w.name
302
+ d.name
305
303
  ] }),
306
304
  /* @__PURE__ */ u("div", { className: "bw-flex bw-items-center bw-gap-x-2", children: [
307
305
  /* @__PURE__ */ e("p", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: n.name }),
308
306
  /* @__PURE__ */ u("div", { className: "bw-bg-background-networkcard bw-flex bw-items-center bw-gap-x-2 bw-px-2", children: [
309
- /* @__PURE__ */ e("p", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: w != null && w.address ? w.address.substring(0, 6) + "..." + w.address.substring(w.address.length - 6, w.address.length) : "" }),
307
+ /* @__PURE__ */ e("p", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: d != null && d.address ? d.address.substring(0, 6) + "..." + d.address.substring(d.address.length - 6, d.address.length) : "" }),
310
308
  /* @__PURE__ */ e(
311
309
  "a",
312
310
  {
313
- href: (Y = (U = n.explorer) == null ? void 0 : U.token) == null ? void 0 : Y.replace("{tokenAddress}", w.address),
311
+ href: (U = (W = n.explorer) == null ? void 0 : W.token) == null ? void 0 : U.replace("{tokenAddress}", d.address),
314
312
  target: "_blank",
315
313
  onClick: (ee) => {
316
314
  ee.stopPropagation();
317
315
  },
318
316
  className: "hover:bw-opacity-70",
319
- children: /* @__PURE__ */ e(_1, { fill: "var(--tw-text-secondary)" })
317
+ children: /* @__PURE__ */ e(S1, { fill: "var(--tw-text-secondary)" })
320
318
  }
321
319
  )
322
320
  ] })
323
321
  ] })
324
322
  ] })
325
323
  ] }),
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 || M) ? /* @__PURE__ */ e(K, {}) : Q.isFetching ? /* @__PURE__ */ e(_e, { size: 12, thickness: 4, color: "inherit" }) : P ? V(w) > 0 ? /* @__PURE__ */ u(K, { children: [
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: [
327
325
  /* @__PURE__ */ e(
328
326
  De,
329
327
  {
330
- value: V(w) || "",
328
+ value: V(d) || "",
331
329
  options: {
332
330
  maxDecimals: 10
333
331
  }
334
332
  }
335
333
  ),
336
- /* @__PURE__ */ e("p", { className: "bw-text-text-secondary bw-font-normal bw-text-xs", children: V(w) * w.lastPrice > 0 ? /* @__PURE__ */ u(K, { children: [
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: [
337
335
  "$",
338
336
  /* @__PURE__ */ e(
339
337
  De,
340
338
  {
341
- value: $e(V(w) * w.lastPrice),
339
+ value: $e(V(d) * d.lastPrice),
342
340
  options: {
343
341
  maxDecimals: 10
344
342
  }
@@ -350,38 +348,38 @@ const et = de.memo(function({ selectChainState: n, value: s, handleClosePopup: o
350
348
  },
351
349
  D
352
350
  );
353
- }) : ne && !(O.isLoading && O.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(_e, { color: "inherit", size: 30 }) }) });
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 }) }) });
354
352
  });
355
353
  function tt({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coinData: r, showExchangeList: c, fetchChains: b }) {
356
- var p, k, g, P, M;
357
- const [d, i] = N(!1), [m, f] = N(""), I = l((x) => x.tokens), [T, L] = N([]), [h, y] = N(0), [C, A] = N({ chain: "" }), v = l((x) => x.gradient), Z = l((x) => x.configuration), H = l((x) => x.chainObj);
354
+ 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);
358
356
  B(() => {
359
- var x, E, O, R;
360
- if ((E = (x = b.data) == null ? void 0 : x.data) != null && E.length) {
361
- let j = [...(R = (O = b.data) == null ? void 0 : O.data) == null ? void 0 : R.slice(0, 9)], S = j.findIndex((V) => V.chainId === "137"), ie = j.findIndex((V) => V.chainId === "324"), Te = j.findIndex((V) => V.chainId === "10"), W = j.findIndex((V) => V.chainId === "43114");
362
- j.splice(S, 1, H[80094] || {}), j.splice(ie, 1, H[2741] || {}), j.splice(Te, 1, H["eclipse-svm"] || {}), j.splice(W, 1, H[999] || {}), !!pe.keyBy(j, "chainId")[C.chainId] || (j.pop(), j.push(C)), L(j);
357
+ var x, O, $, E;
358
+ 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);
363
361
  }
364
- }, [H, (p = b.data) == null ? void 0 : p.data, o, C]), B(() => {
362
+ }, [H, (g = b.data) == null ? void 0 : g.data, o, C]), B(() => {
365
363
  A(o);
366
364
  }, [o]), B(() => {
367
- var x, E, O;
368
- if ((E = (x = b.data) == null ? void 0 : x.data) != null && E.length) {
369
- let R = (O = b.data) == null ? void 0 : O.data.filter((j) => !0);
370
- y(R.length);
365
+ var x, O, $;
366
+ if ((O = (x = b.data) == null ? void 0 : x.data) != null && O.length) {
367
+ let E = ($ = b.data) == null ? void 0 : $.data.filter((j) => !0);
368
+ y(E.length);
371
369
  }
372
- }, [(k = b.data) == null ? void 0 : k.data]);
373
- function ne(x, E) {
374
- var O, R;
375
- (O = x.chain) != null && O.length && ((R = E == null ? void 0 : E.coin) != null && R.length) && s();
370
+ }, [(m = b.data) == null ? void 0 : m.data]);
371
+ function ne(x, O) {
372
+ var $, E;
373
+ ($ = x.chain) != null && $.length && ((E = O == null ? void 0 : O.coin) != null && E.length) && s();
376
374
  }
377
- function F() {
378
- i(!1);
375
+ function P() {
376
+ l(!1);
379
377
  }
380
- function $(x) {
378
+ function R(x) {
381
379
  A(x), f("");
382
380
  }
383
- const { tick: _, defaultCoin: J } = Ee;
384
- return d ? /* @__PURE__ */ e(q1, { handleSetChainData: $, data: (g = b.data) == null ? void 0 : g.data, handleBack: F, network: C }) : /* @__PURE__ */ u(K, { children: [
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: [
385
383
  /* @__PURE__ */ u("div", { children: [
386
384
  /* @__PURE__ */ u("div", { className: "bw-flex bw-relative bw-justify-center bw-mb-2", children: [
387
385
  /* @__PURE__ */ e(
@@ -399,9 +397,9 @@ function tt({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coi
399
397
  " Network"
400
398
  ] })
401
399
  ] }),
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: [
403
- b.isSuccess && T.map((x, E) => {
404
- var O, R;
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: [
401
+ b.isSuccess && T.map((x, O) => {
402
+ var $, E;
405
403
  return /* @__PURE__ */ e(
406
404
  "div",
407
405
  {
@@ -418,33 +416,33 @@ function tt({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coi
418
416
  ...x
419
417
  // networkType: "cosmos",
420
418
  };
421
- $(j);
419
+ R(j);
422
420
  },
423
421
  className: "bw-p-2 bw-w-full bw-aspect-video bw-relative bw-z-10 bw-bg-background-networkcard bw-rounded-md bw-flex bw-flex-col bw-justify-center bw-items-center",
424
422
  style: { cursor: "pointer" },
425
423
  children: [
426
- /* @__PURE__ */ e("img", { src: (O = x.image) != null && O.length ? x.image : J, width: 25, className: "bw-rounded-[50%] bw-border bw-border-border-primary", height: 25, alt: "img" }),
424
+ /* @__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" }),
427
425
  " ",
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: ((R = x.name) == null ? void 0 : R.length) > 7 ? x.name.substring(0, 7) + ".." : x.name }),
429
- (C == null ? void 0 : C.chain) == x ? /* @__PURE__ */ e("img", { width: 10, height: 10, src: _ }) : /* @__PURE__ */ e(K, {})
426
+ /* @__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, {})
430
428
  ]
431
429
  },
432
- E
430
+ O
433
431
  )
434
432
  },
435
- E
433
+ O
436
434
  );
437
435
  }),
438
436
  b.isSuccess && T.length ? /* @__PURE__ */ e("div", { className: "bw-p-[2px] bw-w-full", children: /* @__PURE__ */ u(
439
437
  "div",
440
438
  {
441
439
  onClick: () => {
442
- i(!0);
440
+ l(!0);
443
441
  },
444
442
  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
443
  style: { cursor: "pointer" },
446
444
  children: [
447
- /* @__PURE__ */ e("p", { className: "bw-text-xl bw-font-medium bw-text-text-primary", children: (M = (P = b.data) == null ? void 0 : P.data) != null && M.length ? `+${h - 9}` : "0" }),
445
+ /* @__PURE__ */ e("p", { className: "bw-text-xl bw-font-medium bw-text-text-primary", children: (F = (M = b.data) == null ? void 0 : M.data) != null && F.length ? `+${h - 9}` : "0" }),
448
446
  /* @__PURE__ */ e("p", { className: "bw-text-xs bw-font-normal bw-text-text-primary", children: "Networks" })
449
447
  ]
450
448
  }
@@ -456,7 +454,7 @@ function tt({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coi
456
454
  "div",
457
455
  {
458
456
  className: "bw-relative bw-mt-4",
459
- style: m.length ? {
457
+ style: p.length ? {
460
458
  background: "linear-gradient(to right,#A45EFF ,#2CFFE4)",
461
459
  padding: "1px",
462
460
  borderRadius: "5px"
@@ -466,15 +464,15 @@ function tt({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coi
466
464
  "input",
467
465
  {
468
466
  type: "text",
469
- value: m,
467
+ value: p,
470
468
  onChange: (x) => {
471
469
  f(x.target.value);
472
470
  },
473
- className: `bw-text-sm bw-px-2 bw-w-full bw-h-[34px] ${m.length ? "bw-border-0 bw-border-border-transparent" : "bw-border bw-border-border-primary"} bw-rounded-[5px] bw-font-normal bw-bg-background-container placeholder:bw-text-text-placeholder bw-text-text-primary`,
471
+ className: `bw-text-sm bw-px-2 bw-w-full bw-h-[34px] ${p.length ? "bw-border-0 bw-border-border-transparent" : "bw-border bw-border-border-primary"} bw-rounded-[5px] bw-font-normal bw-bg-background-container placeholder:bw-text-text-placeholder bw-text-text-primary`,
474
472
  placeholder: "Search Token Name or Contract Address"
475
473
  }
476
474
  ),
477
- /* @__PURE__ */ e("div", { className: "bw-absolute bw-right-2 bw-bg-background-container bw-top-[6px]", children: (I.isLoading || I.isFetching) && m.length ? /* @__PURE__ */ e("div", { className: " bw-bg-background-container bw-mt-1 bw-mr-1 bw-flex bw-items-center bw-w-[16px] bw-h-[16px]", children: /* @__PURE__ */ e(H1, {}) }) : m.length ? /* @__PURE__ */ e(
475
+ /* @__PURE__ */ e("div", { className: "bw-absolute bw-right-2 bw-bg-background-container bw-top-[6px]", children: (I.isLoading || I.isFetching) && p.length ? /* @__PURE__ */ e("div", { className: " bw-bg-background-container bw-mt-1 bw-mr-1 bw-flex bw-items-center bw-w-[16px] bw-h-[16px]", children: /* @__PURE__ */ e(H1, {}) }) : p.length ? /* @__PURE__ */ e(
478
476
  "button",
479
477
  {
480
478
  onClick: () => {
@@ -487,7 +485,7 @@ function tt({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coi
487
485
  ]
488
486
  }
489
487
  ),
490
- /* @__PURE__ */ e(et, { value: m, handleClosePopup: ne, showExchangeList: c, setChainData: t, setCoinData: n, selectChainState: C })
488
+ /* @__PURE__ */ e(et, { value: p, handleClosePopup: ne, showExchangeList: c, setChainData: t, setCoinData: n, selectChainState: C })
491
489
  ] })
492
490
  ] });
493
491
  }
@@ -499,7 +497,7 @@ function nt({
499
497
  handleShowWallet: r,
500
498
  setConnectWalletField: c
501
499
  }) {
502
- const [b, d] = N(null), { address: i, chain: m, data: f, disconnect: I, ...T } = t, [L, h] = N(), { connector: y } = ge(), { connectors: C } = M1(), A = () => {
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 = () => {
503
501
  c(s), s == "to" ? (v(), n(!0)) : v();
504
502
  };
505
503
  E1(), B(() => {
@@ -508,7 +506,7 @@ function nt({
508
506
  );
509
507
  }, [C]);
510
508
  async function v() {
511
- o === "evm" && (m == null ? void 0 : m.network) !== "custom" && (L != null && L[y == null ? void 0 : y.uid]), r();
509
+ o === "evm" && (p == null ? void 0 : p.network) !== "custom" && (L != null && L[y == null ? void 0 : y.uid]), r();
512
510
  }
513
511
  return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(
514
512
  "button",
@@ -518,29 +516,29 @@ function nt({
518
516
  id: "basic-button",
519
517
  style: { fontSize: "12px" },
520
518
  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",
521
- children: i ? /* @__PURE__ */ u(K, { children: [
522
- /* @__PURE__ */ e("p", { className: "bw-text-text-primary bw-text-xs bw-font-normal", children: ((i == null ? void 0 : i.substring(0, 4)) || "") + "..." + ((i == null ? void 0 : i.substring(i.length - 4, i.length)) || "") }),
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)) || "") }),
523
521
  /* @__PURE__ */ e(
524
522
  "div",
525
523
  {
526
524
  children: /* @__PURE__ */ e(i1, { fill: "var(--tw-text-secondary)" })
527
525
  }
528
526
  )
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" }) })
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" }) })
530
528
  }
531
529
  ) });
532
530
  }
533
531
  function s1({ chainData: t, setShowExchangeList: n, handleShowWallet: s, setConnectWalletField: o, coinData: r, show: c }) {
534
- var A, v, Z, H, ne, F, $, _, J;
535
- const b = l((p) => p.configuration), d = l((p) => p.customWallet), { isConnected: i, isConnecting: m, isReconnecting: f } = ge();
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();
536
534
  Ne();
537
535
  const { defaultCoin: I } = Ee, { isAnyWalletConnected: T, getWallet: L } = ke({
538
536
  chainData: t,
539
537
  show: c
540
538
  });
541
- l((p) => p.toDisconnect), l((p) => p.setToDisconnect);
542
- const h = l((p) => p.fromChain), y = l((p) => p.toChain);
543
- function C(p) {
539
+ a((g) => g.toDisconnect), a((g) => g.setToDisconnect);
540
+ const h = a((g) => g.fromChain), y = a((g) => g.toChain);
541
+ function C(g) {
544
542
  }
545
543
  return /* @__PURE__ */ u("div", { className: "bw-w-[50%] ", children: [
546
544
  /* @__PURE__ */ e("p", { className: "bw-text-sm bw-text-left bw-font-medium bw-mb-1 bw-text-text-secondary", children: c == "from" ? "Give" : "Get" }),
@@ -575,22 +573,22 @@ function s1({ chainData: t, setShowExchangeList: n, handleShowWallet: s, setConn
575
573
  ]
576
574
  }
577
575
  ),
578
- /* @__PURE__ */ e(rt, { isConnected: c == "to" ? (h == null ? void 0 : h.networkType) === (y == null ? void 0 : y.networkType) ? !!(($ = (F = L(h)) == null ? void 0 : F.address) != null && $.length || (d == null ? void 0 : d.length) > 30) : !!((J = (_ = L(y)) == null ? void 0 : _.address) != null && J.length || (d == null ? void 0 : d.length) > 30) : T, setConnectWalletField: o, handleShowWallet: s, show: c, chainData: t, handleToDisconnect: C })
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 })
579
577
  ] });
580
578
  }
581
579
  function rt({ isConnected: t, setConnectWalletField: n, handleShowWallet: s, show: o, chainData: r, handleToDisconnect: c }) {
582
580
  var f;
583
- const b = l((I) => I.customWallet), d = l((I) => I.fromChain), i = l((I) => I.toChain), { getWallet: m } = ke({
581
+ const b = a((I) => I.customWallet), w = a((I) => I.fromChain), l = a((I) => I.toChain), { getWallet: p } = ke({
584
582
  chainData: r,
585
583
  show: o
586
584
  });
587
585
  return /* @__PURE__ */ e("div", { className: "bw-mt-2 bw-flex bw-justify-end", children: t ? /* @__PURE__ */ e(
588
586
  nt,
589
587
  {
590
- walletDetails: (b == null ? void 0 : b.length) > 30 && o == "to" ? m({}) : (d == null ? void 0 : d.networkType) == (i == null ? void 0 : i.networkType) && o == "to" ? {
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" ? {
591
589
  disconnect: c,
592
- address: (f = m(d)) == null ? void 0 : f.address
593
- } : m(r),
590
+ address: (f = p(w)) == null ? void 0 : f.address
591
+ } : p(r),
594
592
  handleToDisconnect: c,
595
593
  show: o,
596
594
  networkType: r == null ? void 0 : r.networkType,
@@ -616,7 +614,7 @@ const st = "_gradient_15zwe_1", ze = {
616
614
  };
617
615
  function ot({ mode: t, handleMode: n }) {
618
616
  var o, r;
619
- const s = l((c) => c.configuration);
617
+ const s = a((c) => c.configuration);
620
618
  return /* @__PURE__ */ e("div", { className: "bw-flex bw-justify-center", children: /* @__PURE__ */ u(
621
619
  "div",
622
620
  {
@@ -710,7 +708,7 @@ function w1({ options: t, handleOptions: n }) {
710
708
  { name: "Medium", value: "medium" },
711
709
  { name: "High", value: "high" },
712
710
  { name: "Degen", value: "ultra" }
713
- ], o = l((b) => b.configuration);
711
+ ], o = a((b) => b.configuration);
714
712
  return /* @__PURE__ */ u("div", { className: "bw-mt-5 bw-flex bw-items-center bw-justify-between", children: [
715
713
  /* @__PURE__ */ e("h2", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: "Speed" }),
716
714
  /* @__PURE__ */ e(
@@ -720,7 +718,7 @@ function w1({ options: t, handleOptions: n }) {
720
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"
721
719
  },
722
720
  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",
723
- children: s.map((b, d, i) => /* @__PURE__ */ u(
721
+ children: s.map((b, w, l) => /* @__PURE__ */ u(
724
722
  "button",
725
723
  {
726
724
  onClick: () => {
@@ -743,7 +741,7 @@ function w1({ options: t, handleOptions: n }) {
743
741
  children: b.name
744
742
  }
745
743
  ),
746
- i.length - 1 !== d && /* @__PURE__ */ e("div", { className: "bw-h-[70%] bw-absolute bw-right-0 bw-w-[1px] bw-border bw-border-border-primary" }),
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" }),
747
745
  /* @__PURE__ */ e(
748
746
  "div",
749
747
  {
@@ -779,7 +777,7 @@ function u1(t) {
779
777
  }
780
778
  function m1({ inputVal: t, handleCustomVal: n, title: s, inputSideText: o }) {
781
779
  var c, b;
782
- const r = l((d) => d.configuration);
780
+ const r = a((w) => w.configuration);
783
781
  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: [
784
782
  /* @__PURE__ */ e("h2", { className: "bw-text-sm bw-font-normal", children: s }),
785
783
  /* @__PURE__ */ u(
@@ -797,8 +795,8 @@ function m1({ inputVal: t, handleCustomVal: n, title: s, inputSideText: o }) {
797
795
  className: "bw-bg-transparent bw-border-none bw-text-text-primary bw-text-xl bw-font-medium bw-pl-3 bw-pr-2 bw-w-[80%] bw-h-full bw-text-right",
798
796
  value: t,
799
797
  onChange: n,
800
- onKeyDown: (d) => {
801
- u1(d);
798
+ onKeyDown: (w) => {
799
+ u1(w);
802
800
  }
803
801
  }
804
802
  ),
@@ -812,8 +810,8 @@ function m1({ inputVal: t, handleCustomVal: n, title: s, inputSideText: o }) {
812
810
  ] });
813
811
  }
814
812
  function p1({ handleSave: t, isSaveButtonDisabled: n }) {
815
- const s = l((o) => o.configuration);
816
- return l((o) => o.slippage), /* @__PURE__ */ e(
813
+ const s = a((o) => o.configuration);
814
+ return a((o) => o.slippage), /* @__PURE__ */ e(
817
815
  "div",
818
816
  {
819
817
  style: { ...s == null ? void 0 : s.gradientStyle },
@@ -845,7 +843,7 @@ function g1({ handleClose: t }) {
845
843
  }
846
844
  function x1({ slippage: t, handleSlippage: n }) {
847
845
  var o, r;
848
- const s = l((c) => c.configuration);
846
+ const s = a((c) => c.configuration);
849
847
  return /* @__PURE__ */ u("div", { className: "bw-flex bw-items-center bw-justify-between", children: [
850
848
  /* @__PURE__ */ e("p", { className: "bw-text-lg bw-font-normal bw-text-text-primary", children: "Max Slippage" }),
851
849
  /* @__PURE__ */ u(
@@ -890,48 +888,48 @@ function f1() {
890
888
  /* @__PURE__ */ e("div", { className: "bw-h-[1px] bw-flex-1 bw-bg-border-primary " })
891
889
  ] });
892
890
  }
893
- function at({ handleClose: t }) {
894
- const [n, s] = N(""), [o, r] = N({ name: "Low", value: "low" }), [c, b] = N(""), [d, i] = N(""), [m, f] = N(""), I = l((p) => p.broadCastMode), T = l((p) => p.customFee), L = l((p) => p.setCustomFee), h = l((p) => p.slippage), y = l((p) => p.setSlippage), C = l((p) => p.setBroadCastMode), A = l((p) => p.option), v = l((p) => p.setOption), Z = n == T && A.name == o.name && h == m && (d === I && d !== "" || !n.length && !A.name.length);
895
- function H(p) {
896
- b(""), s(p.target.value);
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 H(g) {
894
+ b(""), s(g.target.value);
897
895
  }
898
- function ne(p, k) {
899
- b(""), r(p);
896
+ function ne(g, m) {
897
+ b(""), r(g);
900
898
  }
901
899
  B(() => {
902
900
  r(A);
903
901
  }, [A]), B(() => {
904
902
  T != null && T.length ? s(T) : s("");
905
903
  }, [T]);
906
- function F() {
904
+ function P() {
907
905
  v(o);
908
906
  }
909
907
  B(() => {
910
908
  f(h);
911
909
  }, [y]);
912
- function $(p) {
913
- f(p.target.value);
910
+ function R(g) {
911
+ f(g.target.value);
914
912
  }
915
913
  B(() => {
916
- i(I);
914
+ l(I);
917
915
  }, [I]);
918
- function _() {
919
- if (d == "" && (n.length || o.name.length)) {
916
+ function S() {
917
+ if (w == "" && (n.length || o.name.length)) {
920
918
  C(""), b("Please select a mode");
921
919
  return;
922
920
  }
923
- n.length ? (L(n), v(o)) : (L(""), F()), C(d), y(m), t();
921
+ n.length ? (L(n), v(o)) : (L(""), P()), C(w), y(p), t();
924
922
  }
925
- function J(p) {
926
- b(""), i(p);
923
+ function J(g) {
924
+ b(""), l(g);
927
925
  }
928
926
  return B(() => {
929
- !T && !A.name.length && (C(""), i(""));
927
+ !T && !A.name.length && (C(""), l(""));
930
928
  }, [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: [
931
929
  /* @__PURE__ */ e(g1, { handleClose: t }),
932
- /* @__PURE__ */ e("div", { className: "bw-mt-5 bw-mb-5", children: /* @__PURE__ */ e(x1, { slippage: m, handleSlippage: $ }) }),
930
+ /* @__PURE__ */ e("div", { className: "bw-mt-5 bw-mb-5", children: /* @__PURE__ */ e(x1, { slippage: p, handleSlippage: R }) }),
933
931
  /* @__PURE__ */ e("div", { className: "bw-mb-5", children: /* @__PURE__ */ e(f1, {}) }),
934
- /* @__PURE__ */ e(ot, { mode: d, handleMode: J }),
932
+ /* @__PURE__ */ e(ot, { mode: w, handleMode: J }),
935
933
  /* @__PURE__ */ e(w1, { options: o, handleOptions: ne }),
936
934
  /* @__PURE__ */ e(
937
935
  m1,
@@ -947,15 +945,15 @@ function at({ handleClose: t }) {
947
945
  /* @__PURE__ */ e(
948
946
  p1,
949
947
  {
950
- handleSave: _,
948
+ handleSave: S,
951
949
  isSaveButtonDisabled: Z
952
950
  }
953
951
  )
954
952
  ] })
955
953
  ] });
956
954
  }
957
- function lt({ handleClose: t }) {
958
- const [n, s] = N({ name: "Low", value: "low" }), [o, r] = N(""), [c, b] = N(""), d = l((v) => v.setEvmGas), i = l((v) => v.setEvmSpeed), m = l((v) => v.evmSpeed), f = l((v) => v.evmGas), I = l((v) => v.slippage), T = l((v) => v.setSlippage), L = o == f && m.name == n.name && I == c;
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;
959
957
  function h(v, Z) {
960
958
  s(v);
961
959
  }
@@ -963,12 +961,12 @@ function lt({ handleClose: t }) {
963
961
  r(v.target.value);
964
962
  }
965
963
  B(() => {
966
- s(m);
964
+ s(p);
967
965
  }, []), B(() => {
968
966
  f != null && f.length ? r(f) : r("");
969
967
  }, [f]);
970
968
  function C() {
971
- o.length ? (d(o), i(n)) : (d(""), i(n)), T(c), t();
969
+ o.length ? (w(o), l(n)) : (w(""), l(n)), T(c), t();
972
970
  }
973
971
  B(() => {
974
972
  b(I);
@@ -1000,7 +998,7 @@ function lt({ handleClose: t }) {
1000
998
  ] });
1001
999
  }
1002
1000
  function ct({ open: t, handleClose: n }) {
1003
- const s = l((r) => r.fromChain);
1001
+ const s = a((r) => r.fromChain);
1004
1002
  return /* @__PURE__ */ e(
1005
1003
  F1,
1006
1004
  {
@@ -1017,7 +1015,7 @@ function ct({ open: t, handleClose: n }) {
1017
1015
  // left: "47%",
1018
1016
  // transform: "translate(-50%, -50%)",
1019
1017
  bgcolor: "var(--tw-bg-container)"
1020
- }, children: s.networkType == "sol" ? /* @__PURE__ */ e(at, { handleClose: n }) : /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(lt, { handleClose: n }) }) })
1018
+ }, children: s.networkType == "sol" ? /* @__PURE__ */ e(lt, { handleClose: n }) : /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(at, { handleClose: n }) }) })
1021
1019
  }
1022
1020
  );
1023
1021
  }
@@ -1061,7 +1059,7 @@ function bt({ fill: t }) {
1061
1059
  );
1062
1060
  }
1063
1061
  function dt() {
1064
- const t = l((o) => o.configuration), n = t == null ? void 0 : t.headingStyles, s = (t == null ? void 0 : t.headingText) || "";
1062
+ const t = a((o) => o.configuration), n = t == null ? void 0 : t.headingStyles, s = (t == null ? void 0 : t.headingText) || "";
1065
1063
  return s.length ? /* @__PURE__ */ e(
1066
1064
  "span",
1067
1065
  {
@@ -1079,7 +1077,7 @@ function dt() {
1079
1077
  ] });
1080
1078
  }
1081
1079
  function wt() {
1082
- const t = l((s) => s.configuration), n = t == null ? void 0 : t.headingContainerStyles;
1080
+ const t = a((s) => s.configuration), n = t == null ? void 0 : t.headingContainerStyles;
1083
1081
  return /* @__PURE__ */ e(
1084
1082
  "div",
1085
1083
  {
@@ -1112,7 +1110,7 @@ function wt() {
1112
1110
  );
1113
1111
  }
1114
1112
  function ut() {
1115
- const [t, n] = N(!1), s = l((r) => r.fromChain);
1113
+ const [t, n] = N(!1), s = a((r) => r.fromChain);
1116
1114
  function o() {
1117
1115
  n(!1);
1118
1116
  }
@@ -1133,7 +1131,7 @@ function ut() {
1133
1131
  }
1134
1132
  let o1, Fe, he, Me = 0;
1135
1133
  function mt({ confirmRoute: t, setConfirmRoute: n, routes: s, routesData: o, isRoutesEnabled: r, fetchBalance: c }) {
1136
- const [b, d] = N(0), { getWallet: i } = ke({}), m = l((y) => y.fromChain), f = i(m), { isConnected: I } = ge();
1134
+ const [b, w] = N(0), { getWallet: l } = ke({}), p = a((y) => y.fromChain), f = l(p), { isConnected: I } = ge();
1137
1135
  B(() => {
1138
1136
  t && clearInterval(he);
1139
1137
  }, [t]), B(() => {
@@ -1144,44 +1142,44 @@ function mt({ confirmRoute: t, setConfirmRoute: n, routes: s, routesData: o, isR
1144
1142
  }, [s.isFetching]), B(() => {
1145
1143
  if (!pe.isEmpty(o)) {
1146
1144
  const y = Math.max(0, o.deadline - Me);
1147
- d(y);
1145
+ w(y);
1148
1146
  }
1149
1147
  return () => {
1150
- d(0);
1148
+ w(0);
1151
1149
  };
1152
1150
  }, [o]), B(() => (pe.isEmpty(o) || document.addEventListener("visibilitychange", h), () => {
1153
1151
  document.removeEventListener("visibilitychange", h);
1154
1152
  }), [o]);
1155
1153
  function T() {
1156
- o1 = Date.now(), d((y) => (Fe = y, y));
1154
+ o1 = Date.now(), w((y) => (Fe = y, y));
1157
1155
  }
1158
1156
  function L() {
1159
1157
  let y = Date.now(), C = Math.round((y - o1) / 1e3);
1160
1158
  o.deadline - Fe + C > o.deadline ? n((A) => {
1161
1159
  var v;
1162
- return A || ((v = f.address) != null && v.length && c.refetch(), s.refetch(), d(o.deadline)), A;
1163
- }) : Fe && C && d(Fe - C);
1160
+ return A || ((v = f.address) != null && v.length && c.refetch(), s.refetch(), w(o.deadline)), A;
1161
+ }) : Fe && C && w(Fe - C);
1164
1162
  }
1165
1163
  function h() {
1166
1164
  document.visibilityState === "visible" ? L() : T();
1167
1165
  }
1168
1166
  return B(() => (pe.isEmpty(o) ? he && clearInterval(he) : he = setInterval(() => {
1169
- d((y) => y <= 0 ? (Me = 0, o.deadline) : (Me++, y - 1));
1167
+ w((y) => y <= 0 ? (Me = 0, o.deadline) : (Me++, y - 1));
1170
1168
  }, 1e3), () => {
1171
1169
  he && clearInterval(he);
1172
- }), [o]), l((y) => y.timerValue), { quoteTimer: b, setQuoteTimer: d };
1170
+ }), [o]), a((y) => y.timerValue), { quoteTimer: b, setQuoteTimer: w };
1173
1171
  }
1174
1172
  function pt(t, n, s) {
1175
- const { primaryWallet: o } = Ne(), [r, c] = N(0), b = async (d) => {
1173
+ const { primaryWallet: o } = Ne(), [r, c] = N(0), b = async (w) => {
1176
1174
  if (!o) return;
1177
- const i = new Ve(d || "https://tammi-n3hltb-fast-mainnet.helius-rpc.com/", "confirmed");
1178
- if (i)
1175
+ const l = new Ve(w || "https://tammi-n3hltb-fast-mainnet.helius-rpc.com/", "confirmed");
1176
+ if (l)
1179
1177
  try {
1180
- const m = new be(o.address);
1181
- i.onAccountChange(m, (T) => {
1178
+ const p = new be(o.address);
1179
+ l.onAccountChange(p, (T) => {
1182
1180
  c(T.lamports / 1e9);
1183
1181
  });
1184
- const I = await i.getBalance(m) / 1e9;
1182
+ const I = await l.getBalance(p) / 1e9;
1185
1183
  c(I), s(!1);
1186
1184
  } catch {
1187
1185
  s(!1);
@@ -1205,20 +1203,20 @@ async function ht(t, n) {
1205
1203
  });
1206
1204
  let c = {};
1207
1205
  for (const { account: b } of r.value) {
1208
- const d = b.data.parsed.info.mint, i = b.data.parsed.info.tokenAmount.uiAmount;
1209
- c[d] = i;
1206
+ const w = b.data.parsed.info.mint, l = b.data.parsed.info.tokenAmount.uiAmount;
1207
+ c[w] = l;
1210
1208
  }
1211
1209
  return c;
1212
1210
  }
1213
1211
  function yt(t, n) {
1214
- const [s, o] = N(0), { primaryWallet: r, setPrimaryWallet: c } = Ne(), [b, d] = N(!1), i = l((g) => g.fromChain), { address: m, isConnected: f } = ge(), I = l((g) => g.cosmosChainIds), { data: T, isConnected: L } = Oe({
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({
1215
1213
  chainId: I,
1216
1214
  multiChain: !0
1217
- }), h = l((g) => g.fromCoin), { data: y, isLoading: C } = O1({
1218
- address: m,
1215
+ }), h = a((m) => m.fromCoin), { data: y, isLoading: C } = O1({
1216
+ address: p,
1219
1217
  token: gt((h == null ? void 0 : h.address) || ""),
1220
- chainId: Number((i == null ? void 0 : i.chainId) || 0),
1221
- enabled: !!((i.networkType == "evm" || n) && m && (m != null && m.length))
1218
+ chainId: Number((l == null ? void 0 : l.chainId) || 0),
1219
+ enabled: !!((l.networkType == "evm" || n) && p && (p != null && p.length))
1222
1220
  }), {
1223
1221
  data: A,
1224
1222
  isLoading: v,
@@ -1226,142 +1224,117 @@ function yt(t, n) {
1226
1224
  isInitialLoading: H,
1227
1225
  isRefetching: ne
1228
1226
  } = c1({
1229
- chainId: [i.chainId],
1227
+ chainId: [l.chainId],
1230
1228
  multiChain: !0
1231
1229
  });
1232
- async function F(g) {
1230
+ async function P(m) {
1233
1231
  if (!r) return;
1234
- const P = new Ve(g || "https://solana-rpc.publicnode.com");
1235
- if (P)
1232
+ const k = new Ve(m || "https://solana-rpc.publicnode.com");
1233
+ if (k)
1236
1234
  try {
1237
1235
  const M = new be(r.address);
1238
- d(!0);
1239
- const E = await P.getBalance(M) / 1e9;
1240
- o(E), d(!1);
1236
+ w(!0);
1237
+ const x = await k.getBalance(M) / 1e9;
1238
+ o(x), w(!1);
1241
1239
  } catch {
1242
- d(!1);
1240
+ w(!1);
1243
1241
  }
1244
1242
  }
1245
- async function $(g) {
1243
+ async function R(m) {
1246
1244
  try {
1247
- d(!0);
1248
- let P = await ht(r.address, g);
1249
- d(!1), o(P == null ? void 0 : P[h == null ? void 0 : h.address]);
1245
+ w(!0);
1246
+ let k = await ht(r.address, m);
1247
+ w(!1), o(k == null ? void 0 : k[h == null ? void 0 : h.address]);
1250
1248
  } catch {
1251
- d(!1);
1249
+ w(!1);
1252
1250
  }
1253
1251
  }
1254
- let _;
1252
+ let S;
1255
1253
  async function J() {
1256
1254
  if (!r) return;
1257
- const g = await r.connector.getPublicClient();
1258
- if (!g) return;
1259
- const P = new be(r.address);
1260
- P && (_ = g.onAccountChange(P, (M) => {
1261
- var x;
1262
- if (i.networkType == "sol" && (r != null && r.address))
1263
- if (((x = h == null ? void 0 : h.symbol) == null ? void 0 : x.toLowerCase()) === "sol")
1264
- F();
1265
- else if (i.chainId === "eclipse-svm")
1266
- h.symbol == "ETH" ? F("https://eclipse.lgns.net/") : $("https://eclipse.lgns.net/");
1267
- else {
1268
- if (i.networkType === "btc" || i.networkType === "sui")
1269
- return;
1270
- $();
1271
- }
1255
+ const m = await r.connector.getPublicClient();
1256
+ if (!m) return;
1257
+ const k = new be(r.address);
1258
+ k && (S = m.onAccountChange(k, (M) => {
1259
+ 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());
1272
1261
  }));
1273
1262
  }
1274
- async function p() {
1275
- d(!0);
1276
- const g = await r.getBalance();
1277
- o(g), d(!1);
1278
- }
1279
- B(() => ((i == null ? void 0 : i.networkType) === "sol" && J(), async () => {
1263
+ B(() => ((l == null ? void 0 : l.networkType) === "sol" && J(), async () => {
1280
1264
  if (!r) return;
1281
- const g = await r.connector.getPublicClient();
1282
- g && g.removeAccountChangeListener(_);
1283
- }), [r == null ? void 0 : r.address, i == null ? void 0 : i.networkType, h]);
1284
- async function k(g) {
1285
- var M, x;
1286
- let P = A[g] || A;
1265
+ (await r.connector.getPublicClient()).removeAccountChangeListener(S);
1266
+ }), [r == null ? void 0 : r.address, l == null ? void 0 : l.networkType, h]);
1267
+ async function g(m) {
1268
+ var M, F;
1269
+ let k = A[m] || A;
1287
1270
  try {
1288
- d(!0);
1289
- let E = await P.getAllBalances((M = T == null ? void 0 : T[g]) == null ? void 0 : M.bech32Address), O = pe.keyBy(E, "denom");
1290
- o(((x = O[d1(h.address)]) == null ? void 0 : x.amount) / Math.pow(10, h.decimals) || 0), d(!1);
1271
+ w(!0);
1272
+ 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);
1291
1274
  } catch {
1292
- d(!1);
1275
+ w(!1);
1293
1276
  }
1294
1277
  }
1295
1278
  return B(() => {
1296
- var g;
1297
- i.networkType == "sol" && (r != null && r.address) ? ((g = h == null ? void 0 : h.symbol) == null ? void 0 : g.toLowerCase()) === "sol" ? F() : i.chainId == "eclipse-svm" ? h.symbol == "ETH" ? F("https://eclipse.lgns.net/") : $("https://eclipse.lgns.net/") : $() : i.networkType == "sui" && (r == null ? void 0 : r.chain) == "SUI" || i.networkType == "btc" && (r == null ? void 0 : r.chain) == "BTC" ? p() : i.networkType == "evm" && m && (m != null && m.length) ? o(Number((y == null ? void 0 : y.formatted) || 0)) : i.networkType == "cosmos" && L && !v && k(i == null ? void 0 : i.chainId);
1298
- }, [i.networkType, i == null ? void 0 : i.chainId, h.symbol, h == null ? void 0 : h.address, y, m, r == null ? void 0 : r.address, m, L, v, r == null ? void 0 : r.chain, t]), {
1279
+ 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]), {
1299
1282
  getbal: s,
1300
- isBalanceLoading: (i == null ? void 0 : i.networkType) == "sol" || (i == null ? void 0 : i.networkType) == "cosmos" || (i == null ? void 0 : i.networkType) == "btc" || (i == null ? void 0 : i.networkType) == "sui" ? b : (i == null ? void 0 : i.networkType) == "evm" ? C : !1
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
1301
1284
  };
1302
1285
  }
1303
- const Ct = de.lazy(() => import("./SwapAsset-DS1khTG7.js")), vt = de.lazy(() => import("./InputComp-NuVHgaJr.js")), kt = de.lazy(() => import("./QuotesProgress-QaDMFoy1.js")), Nt = de.lazy(() => import("./TxnButton-tr4Dz_jE.js")), Tt = de.lazy(() => import("./index-eC9_VgZe.js").then((t) => t.i)), It = de.lazy(() => import("./index-CPAph-rb.js")), Bt = de.lazy(() => import("./LoadRoute-B67KdzDM.js")), At = de.lazy(() => import("./AllRoutes-D8LuuVmM.js"));
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"));
1304
1287
  function jt({ handleShowWallet: t, showWallet: n, fetchChains: s }) {
1305
- var Ge, Ke, Je, qe, Xe, Qe, Ue;
1306
- const [o, r] = N(), [c, b] = N(!1), [d, i] = N(!1), [m, f] = N(!1), [I, T] = N(!1), [L, h] = N("all"), [y, C] = N(!1), { primaryWallet: A } = Ne();
1288
+ 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();
1307
1290
  $1();
1308
- const { address: v } = ge(), { address: Z } = a1(), { getbal: H, isBalanceLoading: ne } = yt(y), { data: F, isConnected: $ } = Oe({ chainId: "cosmoshub-4" });
1309
- l((a) => a.configuration);
1310
- const _ = l((a) => a.persist), J = l((a) => a.setPersist), p = l((a) => a.route), k = l((a) => a.fromChain), g = l((a) => a.toChain), P = l((a) => a.fromCoin), M = l((a) => a.toCoin), x = l((a) => a.setFromChain), E = l((a) => a.setToChain), O = l((a) => a.setFromCoin), R = l((a) => a.setToCoin), j = l((a) => a.amount), S = l((a) => a.setAmount), ie = l((a) => a.customWallet);
1311
- l((a) => a.setToDisconnect);
1312
- const Te = l((a) => a.setCosmosChainIds), W = l((a) => a.customFee), G = l((a) => a.broadCastMode), Q = l((a) => a.evmGas), V = l((a) => a.evmSpeed), Ie = l((a) => a.slippage), ye = l((a) => a.option), Be = l((a) => a.setCustomWallet), Ae = l((a) => a.setSelectedProvider), { balanceSol: w } = pt(k, y, Re), { suggestAndConnectAsync: D } = z1(), re = !!(j.length && k.chain.length && P.coin.length && g.chain.length && M.coin.length && !m && I), le = ["routes", v, k, g, P, M, j, A == null ? void 0 : A.address, Z, ie, F == null ? void 0 : F.bech32Address, W, Q, V, Ie, G, ye.value];
1313
- let se = (G === "Priority Fee" || G === "Both") && (W != null && W.length) ? W : ye.value, oe = (G === "Jito Tip" || G === "Both") && (W != null && W.length) ? W : ye.value, q = Q != null && Q.length ? Q : V.value;
1314
- const U = (k == null ? void 0 : k.networkType) === "sol" ? G === "Priority Fee" ? `&solanaPriorityFee=${se}` : G === "Jito Tip" ? `&solanaJitoTip=${oe}` : `&solanaPriorityFee=${se}&solanaJitoTip=${oe}` : (k == null ? void 0 : k.networkType) === "evm" ? `&evmPriorityFee=${q}` : "", { getWallet: Y, refetch: ee } = ke({}), { routes: z, routesData: X, setRoutesData: ce, errorMessage: te, setErrorMessage: Ce } = J1({
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({
1315
1298
  enabled: re,
1316
- dependency: le,
1317
- payload: [
1318
- (k == null ? void 0 : k.networkType) === "cosmos" ? n1(F == null ? void 0 : F.bech32Address, (Ge = k == null ? void 0 : k.chainInfo) == null ? void 0 : Ge.bech32Config.bech32PrefixAccAddr) : ((Ke = Y(k)) == null ? void 0 : Ke.address) || "",
1319
- k,
1320
- g,
1321
- P,
1322
- M,
1323
- j,
1324
- Number(Ie) * 100,
1325
- (ie == null ? void 0 : ie.length) > 30 ? ((Je = Y({})) == null ? void 0 : Je.address) || "" : (g == null ? void 0 : g.networkType) === "cosmos" ? n1(F == null ? void 0 : F.bech32Address, (qe = g == null ? void 0 : g.chainInfo) == null ? void 0 : qe.bech32Config.bech32PrefixAccAddr) : ((Xe = Y(g)) == null ? void 0 : Xe.address) || "",
1326
- U
1327
- ]
1328
- }), ae = Y(k), we = l1({
1329
- queryKey: ["balance", ae == null ? void 0 : ae.address, k],
1330
- queryFn: async () => await (await Se.fetchBalance(ae.address, k.chainId)).json(),
1331
- enabled: !!((Qe = ae == null ? void 0 : ae.address) != null && Qe.length && k.chainId),
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),
1332
1305
  refetchOnWindowFocus: !1
1333
1306
  }), { quoteTimer: je } = mt({
1334
1307
  routes: z,
1335
1308
  routesData: X,
1336
- confirmRoute: d,
1337
- setConfirmRoute: i,
1309
+ confirmRoute: w,
1310
+ setConfirmRoute: l,
1338
1311
  isRoutesEnabled: re,
1339
1312
  fetchBalance: we
1340
1313
  });
1341
1314
  B(() => {
1342
1315
  j || ce({});
1343
- let a;
1344
- return Number(j) > 0 && (a = setTimeout(() => {
1316
+ let i;
1317
+ return Number(j) > 0 && (i = setTimeout(() => {
1345
1318
  T(!0);
1346
1319
  }, 500)), () => {
1347
- clearTimeout(a), T(!1);
1320
+ clearTimeout(i), T(!1);
1348
1321
  };
1349
1322
  }, [j]), B(() => {
1350
1323
  z.isFetching && ce({});
1351
1324
  }, [z.isFetching]);
1352
- function ve(a) {
1353
- f(a);
1325
+ function ve(i) {
1326
+ f(i);
1354
1327
  }
1355
- function Pe() {
1328
+ function Le() {
1356
1329
  r();
1357
1330
  }
1358
- async function Le(a) {
1359
- if ($)
1331
+ async function Pe(i) {
1332
+ if (R)
1360
1333
  try {
1361
1334
  let ue = await t1();
1362
- if (ue.length && !ue.includes(a.chainId)) {
1335
+ if (ue.length && !ue.includes(i.chainId)) {
1363
1336
  let xe = await D({
1364
- chainInfo: a,
1337
+ chainInfo: i,
1365
1338
  walletType: Z1.KEPLR
1366
1339
  }), me = await ee(), fe = await t1();
1367
1340
  Te(fe);
@@ -1371,23 +1344,23 @@ function jt({ handleShowWallet: t, showWallet: n, fetchChains: s }) {
1371
1344
  else
1372
1345
  return;
1373
1346
  }
1374
- function h1(a) {
1375
- (a == null ? void 0 : a.networkType) == "cosmos" && Le(a.chainInfo), S(""), Ce({ error: "" }), o == "from" ? x({ ...a }) : o == "to" && E({ ...a });
1347
+ function h1(i) {
1348
+ (i == null ? void 0 : i.networkType) == "cosmos" && Pe(i.chainInfo), _(""), Ce({ error: "" }), o == "from" ? x({ ...i }) : o == "to" && O({ ...i });
1376
1349
  }
1377
- function y1(a) {
1378
- Ce({ error: "" }), S(""), o == "from" ? O({ ...a }) : o == "to" && R({ ...a });
1350
+ function y1(i) {
1351
+ Ce({ error: "" }), _(""), o == "from" ? $({ ...i }) : o == "to" && E({ ...i });
1379
1352
  }
1380
1353
  function Ze() {
1381
1354
  b(!c);
1382
1355
  }
1383
- function He(a) {
1384
- i(typeof a < "u" ? a : !d);
1356
+ function He(i) {
1357
+ l(typeof i < "u" ? i : !w);
1385
1358
  }
1386
- function Re(a) {
1387
- C(a);
1359
+ function Re(i) {
1360
+ C(i);
1388
1361
  }
1389
- function C1(a) {
1390
- Ae(a == null ? void 0 : a.provider), ce(a);
1362
+ function C1(i) {
1363
+ Ae(i == null ? void 0 : i.provider), ce(i);
1391
1364
  }
1392
1365
  function v1() {
1393
1366
  setTimeout(() => {
@@ -1395,53 +1368,53 @@ function jt({ handleShowWallet: t, showWallet: n, fetchChains: s }) {
1395
1368
  }, 1e3);
1396
1369
  }
1397
1370
  function k1() {
1398
- S("");
1371
+ _("");
1399
1372
  }
1400
- function N1(a, ue, xe) {
1401
- Se.fetchTokens(a.chainId, xe).then((me) => me.json()).then((me) => {
1402
- var fe, Ye;
1403
- (Ye = (fe = me.data) == null ? void 0 : fe[a.chainId]) == null || Ye.forEach((We) => {
1373
+ function N1(i, ue, xe) {
1374
+ _e.fetchTokens(i.chainId, xe).then((me) => me.json()).then((me) => {
1375
+ var fe, Ue;
1376
+ (Ue = (fe = me.data) == null ? void 0 : fe[i.chainId]) == null || Ue.forEach((Ye) => {
1404
1377
  ue({
1405
- ...P,
1406
- coin: We.symbol,
1407
- ...We,
1378
+ ...M,
1379
+ coin: Ye.symbol,
1380
+ ...Ye,
1408
1381
  availBal: ""
1409
1382
  });
1410
1383
  });
1411
1384
  });
1412
1385
  }
1413
1386
  function T1() {
1414
- S(""), x(g), O(M), E(k), R(P), k.networkType !== g.networkType && Be("");
1387
+ _(""), x(k), $(F), O(m), E(M), m.networkType !== k.networkType && Be("");
1415
1388
  }
1416
1389
  B(() => {
1417
- _.isHistory && p === "" && (J({}), ve(!1));
1418
- }, [_]);
1419
- function I1(a) {
1390
+ S.isHistory && g === "" && (J({ allSteps: { steps: null, currentStep: 0 }, stepData: {} }), ve(!1));
1391
+ }, [S]);
1392
+ function I1(i) {
1420
1393
  var ue;
1421
- if (a && s.isSuccess && a !== (g == null ? void 0 : g.networkType) && a !== (k == null ? void 0 : k.networkType)) {
1422
- let xe = pe.keyBy(s.data.data, "chainId"), me = a == "evm" ? "8453" : a == "sol" ? "sol" : a == "sui" ? "1" : a == "btc" ? "btc" : "cosmoshub-4", fe = a == "evm" ? "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" : a == "sol" ? "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263" : a == "sui" ? "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" : a == "btc" ? "bitcoin" : "uatom";
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";
1423
1396
  x({
1424
1397
  ...xe[me],
1425
1398
  chain: ((ue = xe[me]) == null ? void 0 : ue.name) || ""
1426
- }), N1(xe[me], O, fe);
1399
+ }), N1(xe[me], $, fe);
1427
1400
  } else
1428
1401
  return;
1429
1402
  }
1430
- return /* @__PURE__ */ e(A1, { fallback: /* @__PURE__ */ e(L1, {}), children: /* @__PURE__ */ e("div", { children: n ? /* @__PURE__ */ e(Tt, { connectWalletField: L, handleShowWallet: t, handleRecentSelectedWallet: I1 }) : !d && !((Ue = _ == null ? void 0 : _.routeId) != null && Ue.length) ? c ? /* @__PURE__ */ e(At, { routes: z, handleShowAllRoutes: Ze, handleRoutesData: C1, convertVal: (M == null ? void 0 : M.lastPrice) || 0, amount: j }) : o ? /* @__PURE__ */ e(tt, { chainData: o == "from" ? k : g, coinData: o == "from" ? P : M, setChainData: h1, setCoinData: y1, handleReset: Pe, showExchangeList: o, fetchBalance: we, fetchChains: s }) : /* @__PURE__ */ u(K, { children: [
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: [
1431
1404
  /* @__PURE__ */ e(ut, {}),
1432
1405
  /* @__PURE__ */ u("div", { className: "bw-flex bw-relative bw-items-center bw-gap-x-2 bw-justify-between", children: [
1433
1406
  /* @__PURE__ */ e(Ct, { handleSwap: T1 }),
1434
- /* @__PURE__ */ e(s1, { chainData: k, show: "from", handleShowWallet: t, setShowExchangeList: r, setConnectWalletField: h, coinData: P }),
1435
- /* @__PURE__ */ e(s1, { chainData: g, show: "to", handleShowWallet: t, setShowExchangeList: r, setConnectWalletField: h, coinData: M })
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 })
1436
1409
  ] }),
1437
- /* @__PURE__ */ e(vt, { amount: j, setAmount: S, fetchBalance: we, getCoinBalance: H, isBalanceLoading: ne }),
1438
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(Bt, { routes: z, handleShowAllRoutes: Ze, routesData: X, amount: j, isRoutesEnabled: I, price: ((X == null ? void 0 : X.outputAmountDisplay) || "") * ((M == null ? void 0 : M.lastPrice) || 0) }) }),
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) }) }),
1439
1412
  /* @__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 : "" }),
1440
1413
  /* @__PURE__ */ e(kt, { amount: I, routes: z, routesData: X, quoteTimer: je }),
1441
- /* @__PURE__ */ e(Nt, { routesData: X, handleSuccess: Re, routes: z, fetchBalancePrev: we, amount: j, isAmountTyped: I, handleShowWallet: t, setConnectWalletField: h, handleConfirmClose: He, balanceSol: w, getCoinBalance: H })
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 })
1442
1415
  ] }) : /* @__PURE__ */ e(It, { handleConfirmClose: He, amount: j, routesData: X, resetAmount: k1, routes: z, handleStopRoute: ve, resetBalance: v1 }) }) });
1443
1416
  }
1444
- function Pt({ fetchChains: t }) {
1417
+ function Lt({ fetchChains: t }) {
1445
1418
  const [n, s] = N(!1), { isConnected: o } = ge();
1446
1419
  function r(c) {
1447
1420
  s(!n);
@@ -1457,12 +1430,12 @@ function Pt({ fetchChains: t }) {
1457
1430
  }
1458
1431
  const Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1459
1432
  __proto__: null,
1460
- default: Pt
1433
+ default: Lt
1461
1434
  }, Symbol.toStringTag, { value: "Module" }));
1462
1435
  export {
1463
1436
  gt as c,
1464
1437
  Kt as i,
1465
1438
  d1 as p,
1466
1439
  u1 as r,
1467
- Y1 as u
1440
+ U1 as u
1468
1441
  };