@blockend/widget 1.0.41 → 1.0.43

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 (111) hide show
  1. package/dist/{AllRoutes-QrZ7pQLj.js → AllRoutes-CJGurgjX.js} +9 -9
  2. package/dist/{Box-DSFgexHP.js → Box-DA6MWvnF.js} +12 -12
  3. package/dist/{EstGas-Cfyys8c-.js → EstGas-Co5ZHRq6.js} +7 -7
  4. package/dist/{Grow-5d7ST43Z.js → Grow-BC22ngtu.js} +2 -2
  5. package/dist/{InputComp-CnUyfHBk.js → InputComp-CUfYK6Y3.js} +11 -11
  6. package/dist/{LoadRoute-BcCbw9It.js → LoadRoute-CDQgol9I.js} +4 -4
  7. package/dist/{QuotesProgress-DzZhqliF.js → QuotesProgress-Ye4PPS1z.js} +1 -1
  8. package/dist/{SwapAsset-D5NIoW3H.js → SwapAsset-ChCb8j5s.js} +1 -1
  9. package/dist/{Tooltip-DX--M-2s.js → Tooltip-CI-bkLqe.js} +3 -3
  10. package/dist/{TxnButton-oruKvtpk.js → TxnButton-CzLN4kUm.js} +40 -39
  11. package/dist/{add-BBfsffzS.js → add-BLeY6EJ2.js} +1 -1
  12. package/dist/{all-wallets-GSM-S2EY.js → all-wallets-K5zwD5AM.js} +1 -1
  13. package/dist/{app-store-DeN1wZ28.js → app-store-R6Q1DaWB.js} +1 -1
  14. package/dist/{apple-f0rhDBWf.js → apple-e89FEH2M.js} +1 -1
  15. package/dist/{arrow-bottom-circle-B2bkO_jM.js → arrow-bottom-circle-xhOmN14h.js} +1 -1
  16. package/dist/{arrow-bottom-ClXTWJiE.js → arrow-bottom-vsgw3sxP.js} +1 -1
  17. package/dist/{arrow-left-D5fs189Z.js → arrow-left-DJ14J_QY.js} +1 -1
  18. package/dist/{arrow-right-CZH_01OV.js → arrow-right-Cc6stiEr.js} +1 -1
  19. package/dist/{arrow-top-DOKGpBV5.js → arrow-top-D9rT1XGt.js} +1 -1
  20. package/dist/{bank-Ci1bIrxU.js → bank-DkNbXzBp.js} +1 -1
  21. package/dist/{basic-CBd897q3.js → basic-wqsy3gnb.js} +3 -3
  22. package/dist/{browser-DPEFcFPn.js → browser-DWheGytd.js} +1 -1
  23. package/dist/{card-BrTdcKSB.js → card-o4cq3SI7.js} +1 -1
  24. package/dist/{checkmark-B_2wOwp3.js → checkmark-DL11Ciz8.js} +1 -1
  25. package/dist/{checkmark-bold-UKTXTe3X.js → checkmark-bold-DCUAj_bH.js} +1 -1
  26. package/dist/{chevron-bottom-C4i9UknS.js → chevron-bottom-BkaaSL3x.js} +1 -1
  27. package/dist/{chevron-left-CEQSGR4I.js → chevron-left-BAeYJPi6.js} +1 -1
  28. package/dist/{chevron-right-DPaIl5bS.js → chevron-right-C2n4XVBh.js} +1 -1
  29. package/dist/{chevron-top-EO3i_g8u.js → chevron-top-DqR7ISmP.js} +1 -1
  30. package/dist/{chrome-store-WaI848dE.js → chrome-store-BiE1SWxX.js} +1 -1
  31. package/dist/{clock-D6S6VuYv.js → clock-ANq0sPby.js} +1 -1
  32. package/dist/{close-Dyuh-pfe.js → close-CbLb_Ca0.js} +1 -1
  33. package/dist/{coinPlaceholder-DPiN3u1C.js → coinPlaceholder-DE9hh48R.js} +1 -1
  34. package/dist/{compass-Caeab2lN.js → compass-B6BsqN_r.js} +1 -1
  35. package/dist/{copy-CXjVowLP.js → copy-CFQenl_k.js} +1 -1
  36. package/dist/{core-D4HnN6eG.js → core-BNSQYV_O.js} +3 -3
  37. package/dist/{cursor-BiavFYeB.js → cursor-C79zZzG-.js} +1 -1
  38. package/dist/{cursor-transparent-C-o5nPnW.js → cursor-transparent-CkAaIX-6.js} +1 -1
  39. package/dist/{desktop-cftg6BMC.js → desktop-2wHbN2MU.js} +1 -1
  40. package/dist/{disconnect-CBVHZmy5.js → disconnect-CEod1F0O.js} +1 -1
  41. package/dist/{discord-DL5vSQIe.js → discord-BDARirn9.js} +1 -1
  42. package/dist/{down-CSXSe02P.js → down-CeMfA1IA.js} +2 -2
  43. package/dist/{etherscan-B0ZqMrl5.js → etherscan-D6btqGbz.js} +1 -1
  44. package/dist/{exclamation-triangle-DMJwxev5.js → exclamation-triangle-DZ3CigEq.js} +1 -1
  45. package/dist/{extension-Cw3kEP0F.js → extension-D3pA6KiS.js} +1 -1
  46. package/dist/{external-link-D2k06cXi.js → external-link-DNCoNBqg.js} +1 -1
  47. package/dist/{facebook-BFQhh4JT.js → facebook-DKPn5xlu.js} +1 -1
  48. package/dist/{farcaster-CTkrWMPV.js → farcaster-Coar4KLs.js} +1 -1
  49. package/dist/{filters-BNRidIfb.js → filters-tewd1AcQ.js} +1 -1
  50. package/dist/{getChainIds-dbxa6OPC.js → getChainIds-C6w4Bu5x.js} +2 -2
  51. package/dist/getCosmosAddress-B0ctKwuq.js +11859 -0
  52. package/dist/{github-BSvlr7uB.js → github-DPJsU3hM.js} +1 -1
  53. package/dist/{google-b7Ou74GO.js → google-BYVnmLyB.js} +1 -1
  54. package/dist/{hamburger-adHT75Tv.js → hamburger-KLZOXeDe.js} +5 -5
  55. package/dist/{help-circle-DVVgUa0A.js → help-circle-4bwWLdAq.js} +1 -1
  56. package/dist/{id-C1VTodFX.js → id-CZOIGovH.js} +1 -1
  57. package/dist/{image-oiGiQrkv.js → image-5Fv9h2Y7.js} +1 -1
  58. package/dist/{index-BDSA6Vmh.js → index--I2-zrX3.js} +78 -78
  59. package/dist/{index-D35_epCA.js → index-2PldMzhJ.js} +1 -1
  60. package/dist/{index-CxnNzJCI.js → index-6ItmM_aj.js} +142 -133
  61. package/dist/{index-vsTy-v7A.js → index-BzbW6hHX.js} +11 -11
  62. package/dist/{index-DFOB2nyL.js → index-C4FAqXXN.js} +2 -2
  63. package/dist/{index-Qvs-AUhn.js → index-CKfCnt73.js} +4 -4
  64. package/dist/index-COkzLDgT.js +16939 -0
  65. package/dist/{index-Cce3Jr06.js → index-CrkB9iyO.js} +5 -5
  66. package/dist/{index-DZx5rYk6.js → index-Dnhi5kZz.js} +1 -1
  67. package/dist/{index-Dtl4ODqT.js → index-UtdYkkpH.js} +4 -4
  68. package/dist/{index-uv8Q24to.js → index-nuJPoBGm.js} +10 -10
  69. package/dist/{index.es-ufjHqxj5.js → index.es-BQdr78IG.js} +1 -1
  70. package/dist/{index.es-oVEjdXD9.js → index.es-y4UXcbxS.js} +2 -2
  71. package/dist/index.es.js +1 -1
  72. package/dist/{info-CVKjuEYq.js → info-CAOkQnDz.js} +1 -1
  73. package/dist/{info-circle-D_MX3SA4.js → info-circle-B1p0FcXR.js} +1 -1
  74. package/dist/{lightbulb-xAPRcMv4.js → lightbulb-DpUPEVkD.js} +1 -1
  75. package/dist/{mail-D4ovKCpV.js → mail-N4_Uzyik.js} +1 -1
  76. package/dist/{mobile-BW9ciV-w.js → mobile-DWGaUWRU.js} +1 -1
  77. package/dist/{more-DVJG6d4w.js → more-Cumvra0H.js} +1 -1
  78. package/dist/{network-placeholder-BRna6-nm.js → network-placeholder-DeodbInD.js} +1 -1
  79. package/dist/{nftPlaceholder-uwZhnmIc.js → nftPlaceholder-DCoHGyrl.js} +1 -1
  80. package/dist/{off-DFC1yPv3.js → off-CygRkmac.js} +1 -1
  81. package/dist/{play-store-Byn_mMq_.js → play-store-DrSNzrTx.js} +1 -1
  82. package/dist/{plus-zUlg00_a.js → plus-DurmuqzE.js} +1 -1
  83. package/dist/{qr-code-DDbZcl7e.js → qr-code-21nqN-2b.js} +1 -1
  84. package/dist/{recycle-horizontal-ML8sklv5.js → recycle-horizontal-B4XnG_mk.js} +1 -1
  85. package/dist/{refresh-iUqYawLt.js → refresh-KeWfM6cd.js} +1 -1
  86. package/dist/{reown-logo-BMLlwYGo.js → reown-logo-BCCuFSwZ.js} +1 -1
  87. package/dist/{search-htBtAh5x.js → search-Bws-6c2H.js} +1 -1
  88. package/dist/{send-5NnEyeqk.js → send-Fu1aokOW.js} +1 -1
  89. package/dist/{swapHorizontal-C0RjVePv.js → swapHorizontal-B_Tl8ACO.js} +1 -1
  90. package/dist/{swapHorizontalBold-oabGP6AT.js → swapHorizontalBold-D_jGsZOC.js} +1 -1
  91. package/dist/{swapHorizontalMedium-BPycpUZj.js → swapHorizontalMedium-yA2CsCjD.js} +1 -1
  92. package/dist/{swapHorizontalRoundedBold-BrWMh09O.js → swapHorizontalRoundedBold-BIjKPKal.js} +1 -1
  93. package/dist/{swapVertical-Dab90B-o.js → swapVertical-DEGmJhlq.js} +1 -1
  94. package/dist/{telegram-BTgVizd-.js → telegram-yvkJwwAr.js} +1 -1
  95. package/dist/{three-dots-BWl-R2fX.js → three-dots-Cv2EJ6Q1.js} +1 -1
  96. package/dist/{twitch-BBSyKIRq.js → twitch-CauGkS12.js} +1 -1
  97. package/dist/{twitterIcon-DJa7a5mH.js → twitterIcon-C-uVhdej.js} +1 -1
  98. package/dist/{unsupportedProp-DFyakPn7.js → unsupportedProp-CquLw774.js} +1 -1
  99. package/dist/{useRegisterError-BIERR-27.js → useRegisterError-W3tXBEyF.js} +1 -1
  100. package/dist/{verify-CzlzFBIk.js → verify-C_tVaEN6.js} +1 -1
  101. package/dist/{verify-filled-DhPXgKCQ.js → verify-filled-C7vvdg3B.js} +1 -1
  102. package/dist/{w3m-modal-Chxai-K2.js → w3m-modal-BKIYf52c.js} +2 -2
  103. package/dist/{wallet-DSL4tZXp.js → wallet-CCOlaYgm.js} +1 -1
  104. package/dist/{wallet-placeholder-gRdwNEYW.js → wallet-placeholder-CvwIAC0m.js} +1 -1
  105. package/dist/{walletconnect-DorsPqE9.js → walletconnect-B9-VhTfx.js} +1 -1
  106. package/dist/{warning-circle-Cm3eg6Rl.js → warning-circle-B92PFoZF.js} +1 -1
  107. package/dist/{x-D9vS5YT4.js → x-DrIy8GD7.js} +1 -1
  108. package/package.json +1 -1
  109. package/dist/ccip-DvQaBUxu.js +0 -228
  110. package/dist/getCosmosAddress-VGyJ48hD.js +0 -9565
  111. package/dist/index-B9Yj3lNG.js +0 -30399
@@ -1,18 +1,18 @@
1
1
  import { jsxs as u, jsx as e, Fragment as K } from "react/jsx-runtime";
2
- import de, { useState as N, useEffect as B, useRef as I1, Suspense as B1 } from "react";
3
- import { B as A1, i as Ee, u as ke, F as De, f as $e, C as _e, W as s1 } from "./useRegisterError-BIERR-27.js";
4
- import { u as l, l as pe, a as i1, c as Ve, S as j1, M as P1 } from "./index-B9Yj3lNG.js";
5
- import { C as L1, M as F1, g as e1 } from "./getChainIds-dbxa6OPC.js";
6
- import { useQuery as a1 } from "@tanstack/react-query";
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-W3tXBEyF.js";
4
+ import { u as l, l as pe, a as a1, c as Ve, S as P1, M as L1 } from "./index-COkzLDgT.js";
5
+ import { C as e1, M as F1, g as t1 } from "./getChainIds-C6w4Bu5x.js";
6
+ import { useQuery as l1 } from "@tanstack/react-query";
7
7
  import { useAccount as ge, useConnect as M1, useConnections as E1, useBalance as O1 } from "wagmi";
8
8
  import { useDynamicContext as Ne, useIsLoggedIn as R1, useUserWallets as $1 } from "@dynamic-labs/sdk-react-core";
9
9
  import { S as _1 } from "./shareicon-CG3v7iKI.js";
10
- import { u as V1, B as z1 } from "./index-DFOB2nyL.js";
11
- import { useAccount as Oe, useStargateClient as l1, useSuggestChainAndConnect as S1, WalletType as Z1 } from "graz";
12
- import { S as H1, D as G1 } from "./down-CSXSe02P.js";
10
+ import { u as V1, B as z1 } from "./index-C4FAqXXN.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-CeMfA1IA.js";
13
13
  import { R as K1 } from "./index-CDq3vNnP.js";
14
- import { C as ze, P as be, u as J1, g as t1 } from "./getCosmosAddress-VGyJ48hD.js";
15
- function c1({ fill: t }) {
14
+ import { C as ze, P as be, u as J1, g as n1 } from "./getCosmosAddress-B0ctKwuq.js";
15
+ function b1({ fill: t }) {
16
16
  return /* @__PURE__ */ u(
17
17
  "svg",
18
18
  {
@@ -57,7 +57,7 @@ function q1({ data: t, handleBack: n, handleSetChainData: o, network: s }) {
57
57
  n();
58
58
  },
59
59
  className: "bw-absolute bw-left-0 bw-top-[25%]",
60
- children: /* @__PURE__ */ e(A1, { fill: "var(--tw-text-secondary)" })
60
+ children: /* @__PURE__ */ e(j1, { fill: "var(--tw-text-secondary)" })
61
61
  }
62
62
  ),
63
63
  /* @__PURE__ */ e("div", { className: "bw-text-base bw-font-normal bw-text-text-secondary", children: "Network" })
@@ -77,25 +77,25 @@ function q1({ data: t, handleBack: n, handleSetChainData: o, network: s }) {
77
77
  {
78
78
  type: "text",
79
79
  value: b,
80
- onChange: (y) => {
81
- d(y.target.value);
80
+ onChange: (f) => {
81
+ d(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"
85
85
  }
86
86
  ),
87
- /* @__PURE__ */ e("div", { className: "bw-absolute bw-right-2 bw-bg-background-container bw-top-[6px]", children: /* @__PURE__ */ e(c1, { fill: "var(--tw-background-secondary)" }) })
87
+ /* @__PURE__ */ e("div", { className: "bw-absolute bw-right-2 bw-bg-background-container bw-top-[6px]", children: /* @__PURE__ */ e(b1, { fill: "var(--tw-background-secondary)" }) })
88
88
  ]
89
89
  }
90
90
  ),
91
- /* @__PURE__ */ e("div", { className: "bw-h-[500px] bw-pr-2 bw-mt-3 bw-overflow-y-auto", children: (r == null ? void 0 : r.length) && r.filter((y) => y.name.toLowerCase().includes(b.toLowerCase())).map((y, I) => {
91
+ /* @__PURE__ */ e("div", { className: "bw-h-[500px] bw-pr-2 bw-mt-3 bw-overflow-y-auto", children: (r == null ? void 0 : r.length) && r.filter((f) => f.name.toLowerCase().includes(b.toLowerCase())).map((f, I) => {
92
92
  var T;
93
93
  return /* @__PURE__ */ u(
94
94
  "div",
95
95
  {
96
96
  onClick: () => {
97
- let P = { chain: y.name, ...y };
98
- n(y), o(P);
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
 
@@ -103,14 +103,14 @@ function q1({ data: t, handleBack: n, handleSetChainData: o, network: s }) {
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 = y.image) != null && T.length ? y.image : p, 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
- /* @__PURE__ */ e("p", { children: y.name }),
109
- s.chain === y.name ? /* @__PURE__ */ e("img", { src: a, width: 10, height: 10, alt: "img" }) : /* @__PURE__ */ e(K, {})
108
+ /* @__PURE__ */ e("p", { children: f.name }),
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" }),
113
- /* @__PURE__ */ e("p", { className: "bw-text-xs bw-text-right bw-font-normal", children: (y == null ? void 0 : y.tokenCount) || 0 })
113
+ /* @__PURE__ */ e("p", { className: "bw-text-xs bw-text-right bw-font-normal", children: (f == null ? void 0 : f.tokenCount) || 0 })
114
114
  ] })
115
115
  ]
116
116
  },
@@ -119,7 +119,7 @@ function q1({ data: t, handleBack: n, handleSetChainData: o, network: s }) {
119
119
  }) })
120
120
  ] });
121
121
  }
122
- const X1 = "_gradientbackground_7x8s8_1", Q1 = "_overlay_7x8s8_5", n1 = {
122
+ const X1 = "_gradientbackground_7x8s8_1", Q1 = "_overlay_7x8s8_5", r1 = {
123
123
  gradientbackground: X1,
124
124
  overlay: Q1
125
125
  };
@@ -131,15 +131,15 @@ function U1(t) {
131
131
  const [n, o] = N({}), s = l((a) => a.cosmosChainIds), { data: r } = Oe({
132
132
  chainId: s,
133
133
  multiChain: !0
134
- }), c = l((a) => a.fromChain), { data: b } = l1({
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
138
  async function d(a) {
139
- var p, y;
139
+ var p, f;
140
140
  if ((p = r == null ? void 0 : r[a]) != null && p.bech32Address && b) {
141
141
  let T = await (b[a] || b).getAllBalances(
142
- (y = r == null ? void 0 : r[a]) == null ? void 0 : y.bech32Address
142
+ (f = r == null ? void 0 : r[a]) == null ? void 0 : f.bech32Address
143
143
  ), P = pe.keyBy(T, "denom");
144
144
  o(P);
145
145
  }
@@ -148,7 +148,7 @@ function U1(t) {
148
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));
149
149
  }, [b, c, t]), { cosmosBalance: n };
150
150
  }
151
- function b1(t) {
151
+ function d1(t) {
152
152
  let n = t.split("/");
153
153
  if (n.length > 1) {
154
154
  let o = n[1].toUpperCase();
@@ -219,14 +219,14 @@ function D1({ selectedChain: t }) {
219
219
  const et = de.memo(function({ selectChainState: n, value: o, handleClosePopup: s, showExchangeList: r, setCoinData: c, setChainData: b }) {
220
220
  var Be, Ae;
221
221
  l((w) => w.searchCustomCoin);
222
- const d = l((w) => w.setSearchCustomCoin), { ref: a, inView: p } = V1(), { getWallet: y } = ke({}), { connected: I, address: T } = i1(), { isConnected: P, address: f } = ge(), { primaryWallet: h } = Ne();
222
+ const d = l((w) => w.setSearchCustomCoin), { ref: a, inView: p } = V1(), { getWallet: f } = ke({}), { connected: I, address: T } = a1(), { isConnected: P, address: h } = ge(), { primaryWallet: y } = Ne();
223
223
  R1();
224
- const C = y(n), A = l((w) => w.fromChain), v = l((w) => w.fromCoin), Z = l((w) => w.toChain), H = l((w) => w.toCoin), [re, L] = N(!1), { cosmosBalance: R } = U1(n), { defaultCoin: _ } = Ee, [J, g] = N(0), m = I1(null), { data: k } = Oe({
224
+ const C = f(n), A = l((w) => w.fromChain), v = l((w) => w.fromCoin), Z = l((w) => w.toChain), H = l((w) => w.toCoin), [re, L] = N(!1), { cosmosBalance: R } = U1(n), { defaultCoin: _ } = Ee, [J, g] = N(0), m = B1(null), { data: k } = Oe({
225
225
  chainId: [n.chainId],
226
226
  multiChain: !0
227
- }), M = (n == null ? void 0 : n.networkType) === "evm" && f || (n == null ? void 0 : n.networkType) === "sol" && (h == null ? void 0 : h.address) || (n == null ? void 0 : n.networkType) === "tron" && T || (n == null ? void 0 : n.networkType) === "cosmos" && ((Be = k == null ? void 0 : k[n == null ? void 0 : n.chainId]) == null ? void 0 : Be.bech32Address), F = l((w) => w.toDisconnect);
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((w) => w.toDisconnect);
228
228
  l((w) => w.setToDisconnect);
229
- const x = l((w) => w.customWallet), O = l((w) => w.setCustomWallet), $ = l((w) => w.tokens), [E, j] = N([]), [V, ie] = N([]), [Te, Y] = N([]), G = $, Q = a1({
229
+ const x = l((w) => w.customWallet), O = l((w) => w.setCustomWallet), $ = l((w) => w.tokens), [E, j] = N([]), [V, ie] = N([]), [Te, Y] = N([]), G = $, Q = l1({
230
230
  queryKey: ["balance", C == null ? void 0 : C.address, n],
231
231
  queryFn: async () => await (await Ve.fetchBalance(C.address, n.chainId)).json(),
232
232
  enabled: !!((Ae = C == null ? void 0 : C.address) != null && Ae.length && n.chainId),
@@ -234,7 +234,7 @@ const et = de.memo(function({ selectChainState: n, value: o, handleClosePopup: s
234
234
  });
235
235
  function z(w) {
236
236
  var ee, le, oe, se, q, W, U, te, S, X, ce, ne;
237
- let D = b1(w.address);
237
+ let D = d1(w.address);
238
238
  return w.networkType == "cosmos" ? $e(((ee = R == null ? void 0 : R[D]) == null ? void 0 : ee.amount) / Math.pow(10, w.decimals) || 0) || "" : $e((((W = (q = (se = (oe = (le = Q.data) == null ? void 0 : le.data) == null ? void 0 : oe[n == null ? void 0 : n.networkType]) == null ? void 0 : se[n.chainId]) == null ? void 0 : q[w.address]) == null ? void 0 : W.balance) || 0) / Math.pow(10, ((ne = (ce = (X = (S = (te = (U = Q.data) == null ? void 0 : U.data) == null ? void 0 : te[n == null ? void 0 : n.networkType]) == null ? void 0 : S[n.chainId]) == null ? void 0 : X[w.address]) == null ? void 0 : ce.asset) == null ? void 0 : ne.decimals) || 0) || 0) || "";
239
239
  }
240
240
  B(() => {
@@ -354,7 +354,7 @@ const et = de.memo(function({ selectChainState: n, value: o, handleClosePopup: s
354
354
  });
355
355
  function tt({ setChainData: t, setCoinData: n, handleReset: o, chainData: s, coinData: r, showExchangeList: c, fetchChains: b }) {
356
356
  var g, m, k, M, F;
357
- const [d, a] = N(!1), [p, y] = N(""), I = l((x) => x.tokens), [T, P] = N([]), [f, h] = N(0), [C, A] = N({ chain: "" }), v = l((x) => x.gradient), Z = l((x) => x.configuration), H = l((x) => x.chainObj);
357
+ const [d, 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);
358
358
  B(() => {
359
359
  var x, O, $, E;
360
360
  if ((O = (x = b.data) == null ? void 0 : x.data) != null && O.length) {
@@ -367,7 +367,7 @@ function tt({ setChainData: t, setCoinData: n, handleReset: o, chainData: s, coi
367
367
  var x, O, $;
368
368
  if ((O = (x = b.data) == null ? void 0 : x.data) != null && O.length) {
369
369
  let E = ($ = b.data) == null ? void 0 : $.data.filter((j) => !0);
370
- h(E.length);
370
+ y(E.length);
371
371
  }
372
372
  }, [(m = b.data) == null ? void 0 : m.data]);
373
373
  function re(x, O) {
@@ -378,7 +378,7 @@ function tt({ setChainData: t, setCoinData: n, handleReset: o, chainData: s, coi
378
378
  a(!1);
379
379
  }
380
380
  function R(x) {
381
- A(x);
381
+ A(x), f("");
382
382
  }
383
383
  const { tick: _, defaultCoin: J } = Ee;
384
384
  return d ? /* @__PURE__ */ e(q1, { handleSetChainData: R, data: (k = b.data) == null ? void 0 : k.data, handleBack: L, network: C }) : /* @__PURE__ */ u(K, { children: [
@@ -391,7 +391,7 @@ function tt({ setChainData: t, setCoinData: n, handleReset: o, chainData: s, coi
391
391
  o(), (!r.coin.length || !s.chain.length) && (n({ coin: "" }), t({ chain: "" }));
392
392
  },
393
393
  className: "bw-absolute bw-left-0 bw-top-[25%]",
394
- children: /* @__PURE__ */ e(L1, { fill: "var(--tw-text-secondary)" })
394
+ children: /* @__PURE__ */ e(e1, { fill: "var(--tw-text-secondary)" })
395
395
  }
396
396
  ),
397
397
  /* @__PURE__ */ u("div", { className: "bw-text-base bw-font-normal bw-text-text-secondary", children: [
@@ -399,7 +399,7 @@ function tt({ setChainData: t, setCoinData: n, handleReset: o, chainData: s, coi
399
399
  " Network"
400
400
  ] })
401
401
  ] }),
402
- b.isLoading ? /* @__PURE__ */ e(j1, { 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: [
403
403
  b.isSuccess && T.map((x, O) => {
404
404
  var $, E;
405
405
  return /* @__PURE__ */ e(
@@ -408,7 +408,7 @@ function tt({ setChainData: t, setCoinData: n, handleReset: o, chainData: s, coi
408
408
  style: C.name == x.name ? {
409
409
  ...Z.gradientStyle
410
410
  } : {},
411
- className: ` bw-relative ${C.name == x.name ? (v || n1.gradientbackground) + " " + n1.overlay : "bw-bg-transparent"} bw-p-[2px] bw-h-max bw-rounded-[7px]`,
411
+ className: ` bw-relative ${C.name == x.name ? (v || r1.gradientbackground) + " " + r1.overlay : "bw-bg-transparent"} bw-p-[2px] bw-h-max bw-rounded-[7px]`,
412
412
  children: /* @__PURE__ */ u(
413
413
  "div",
414
414
  {
@@ -444,7 +444,7 @@ function tt({ setChainData: t, setCoinData: n, handleReset: o, chainData: s, coi
444
444
  className: "bw-p-2 bw-w-full bw-aspect-video bw-bg-background-networkcard bw-rounded-md bw-flex bw-flex-col bw-justify-center bw-items-center",
445
445
  style: { cursor: "pointer" },
446
446
  children: [
447
- /* @__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 ? `+${f - 9}` : "0" }),
447
+ /* @__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
448
  /* @__PURE__ */ e("p", { className: "bw-text-xs bw-font-normal bw-text-text-primary", children: "Networks" })
449
449
  ]
450
450
  }
@@ -468,13 +468,22 @@ function tt({ setChainData: t, setCoinData: n, handleReset: o, chainData: s, coi
468
468
  type: "text",
469
469
  value: p,
470
470
  onChange: (x) => {
471
- y(x.target.value);
471
+ f(x.target.value);
472
472
  },
473
473
  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
474
  placeholder: "Search Token Name or Contract Address"
475
475
  }
476
476
  ),
477
- /* @__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, {}) }) : /* @__PURE__ */ e(c1, { fill: "var(--tw-background-secondary)" }) })
477
+ /* @__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
+ "button",
479
+ {
480
+ onClick: () => {
481
+ f("");
482
+ },
483
+ className: "bw-mt-1 bw-mr-1",
484
+ children: /* @__PURE__ */ e(e1, { fill: "var(--tw-text-primary)" })
485
+ }
486
+ ) : /* @__PURE__ */ e(b1, { fill: "var(--tw-background-secondary)" }) })
478
487
  ]
479
488
  }
480
489
  ),
@@ -490,16 +499,16 @@ function nt({
490
499
  handleShowWallet: r,
491
500
  setConnectWalletField: c
492
501
  }) {
493
- const [b, d] = N(null), { address: a, chain: p, data: y, disconnect: I, ...T } = t, [P, f] = N(), { connector: h } = ge(), { connectors: C } = M1(), A = () => {
502
+ const [b, d] = N(null), { address: a, chain: p, data: f, disconnect: I, ...T } = t, [P, h] = N(), { connector: y } = ge(), { connectors: C } = M1(), A = () => {
494
503
  c(o), o == "to" ? (v(), n(!0)) : v();
495
504
  };
496
505
  E1(), B(() => {
497
- C.length && f(
506
+ C.length && h(
498
507
  pe.keyBy(C, (Z) => Z.uid)
499
508
  );
500
509
  }, [C]);
501
510
  async function v() {
502
- s === "evm" && (p == null ? void 0 : p.network) !== "custom" && (P != null && P[h == null ? void 0 : h.uid]), r();
511
+ s === "evm" && (p == null ? void 0 : p.network) !== "custom" && (P != null && P[y == null ? void 0 : y.uid]), r();
503
512
  }
504
513
  return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(
505
514
  "button",
@@ -514,23 +523,23 @@ function nt({
514
523
  /* @__PURE__ */ e(
515
524
  "div",
516
525
  {
517
- children: /* @__PURE__ */ e(s1, { fill: "var(--tw-text-secondary)" })
526
+ children: /* @__PURE__ */ e(i1, { fill: "var(--tw-text-secondary)" })
518
527
  }
519
528
  )
520
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" }) })
521
530
  }
522
531
  ) });
523
532
  }
524
- function r1({ chainData: t, setShowExchangeList: n, handleShowWallet: o, setConnectWalletField: s, coinData: r, show: c }) {
533
+ function o1({ chainData: t, setShowExchangeList: n, handleShowWallet: o, setConnectWalletField: s, coinData: r, show: c }) {
525
534
  var A, v, Z, H, re, L, R, _, J;
526
- const b = l((g) => g.configuration), d = l((g) => g.customWallet), { isConnected: a, isConnecting: p, isReconnecting: y } = ge();
535
+ const b = l((g) => g.configuration), d = l((g) => g.customWallet), { isConnected: a, isConnecting: p, isReconnecting: f } = ge();
527
536
  Ne();
528
537
  const { defaultCoin: I } = Ee, { isAnyWalletConnected: T, getWallet: P } = ke({
529
538
  chainData: t,
530
539
  show: c
531
540
  });
532
541
  l((g) => g.toDisconnect), l((g) => g.setToDisconnect);
533
- const f = l((g) => g.fromChain), h = l((g) => g.toChain);
542
+ const h = l((g) => g.fromChain), y = l((g) => g.toChain);
534
543
  function C(g) {
535
544
  }
536
545
  return /* @__PURE__ */ u("div", { className: "bw-w-[50%] ", children: [
@@ -566,11 +575,11 @@ function r1({ chainData: t, setShowExchangeList: n, handleShowWallet: o, setConn
566
575
  ]
567
576
  }
568
577
  ),
569
- /* @__PURE__ */ e(rt, { isConnected: c == "to" ? (f == null ? void 0 : f.networkType) === (h == null ? void 0 : h.networkType) ? !!((R = (L = P(f)) == null ? void 0 : L.address) != null && R.length || (d == null ? void 0 : d.length) > 30) : !!((J = (_ = P(h)) == null ? void 0 : _.address) != null && J.length || (d == null ? void 0 : d.length) > 30) : T, setConnectWalletField: s, handleShowWallet: o, 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 || (d == null ? void 0 : d.length) > 30) : !!((J = (_ = P(y)) == null ? void 0 : _.address) != null && J.length || (d == null ? void 0 : d.length) > 30) : T, setConnectWalletField: s, handleShowWallet: o, show: c, chainData: t, handleToDisconnect: C })
570
579
  ] });
571
580
  }
572
581
  function rt({ isConnected: t, setConnectWalletField: n, handleShowWallet: o, show: s, chainData: r, handleToDisconnect: c }) {
573
- var y;
582
+ var f;
574
583
  const b = l((I) => I.customWallet), d = l((I) => I.fromChain), a = l((I) => I.toChain), { getWallet: p } = ke({
575
584
  chainData: r,
576
585
  show: s
@@ -580,7 +589,7 @@ function rt({ isConnected: t, setConnectWalletField: n, handleShowWallet: o, sho
580
589
  {
581
590
  walletDetails: (b == null ? void 0 : b.length) > 30 && s == "to" ? p({}) : (d == null ? void 0 : d.networkType) == (a == null ? void 0 : a.networkType) && s == "to" ? {
582
591
  disconnect: c,
583
- address: (y = p(d)) == null ? void 0 : y.address
592
+ address: (f = p(d)) == null ? void 0 : f.address
584
593
  } : p(r),
585
594
  handleToDisconnect: c,
586
595
  show: s,
@@ -597,7 +606,7 @@ function rt({ isConnected: t, setConnectWalletField: n, handleShowWallet: o, sho
597
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",
598
607
  children: [
599
608
  /* @__PURE__ */ e("p", { className: "bw-mr-3", children: "Connect" }),
600
- /* @__PURE__ */ e("div", { className: "bw-absolute bw-right-2", children: /* @__PURE__ */ e(s1, { fill: "var(--tw-text-secondary)" }) })
609
+ /* @__PURE__ */ e("div", { className: "bw-absolute bw-right-2", children: /* @__PURE__ */ e(i1, { fill: "var(--tw-text-secondary)" }) })
601
610
  ]
602
611
  }
603
612
  ) });
@@ -695,7 +704,7 @@ function it({ fill: t }) {
695
704
  }
696
705
  );
697
706
  }
698
- function d1({ options: t, handleOptions: n }) {
707
+ function w1({ options: t, handleOptions: n }) {
699
708
  var r, c;
700
709
  const o = [
701
710
  { name: "Medium", value: "medium" },
@@ -754,7 +763,7 @@ function d1({ options: t, handleOptions: n }) {
754
763
  )
755
764
  ] });
756
765
  }
757
- function w1(t) {
766
+ function u1(t) {
758
767
  const n = [
759
768
  "Tab",
760
769
  "Enter",
@@ -768,7 +777,7 @@ function w1(t) {
768
777
  ];
769
778
  /^\d$/.test(t.key) || n.includes(t.key) || t.preventDefault();
770
779
  }
771
- function u1({ inputVal: t, handleCustomVal: n, title: o, inputSideText: s }) {
780
+ function m1({ inputVal: t, handleCustomVal: n, title: o, inputSideText: s }) {
772
781
  var c, b;
773
782
  const r = l((d) => d.configuration);
774
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: [
@@ -789,7 +798,7 @@ function u1({ inputVal: t, handleCustomVal: n, title: o, inputSideText: s }) {
789
798
  value: t,
790
799
  onChange: n,
791
800
  onKeyDown: (d) => {
792
- w1(d);
801
+ u1(d);
793
802
  }
794
803
  }
795
804
  ),
@@ -802,7 +811,7 @@ function u1({ inputVal: t, handleCustomVal: n, title: o, inputSideText: s }) {
802
811
  )
803
812
  ] });
804
813
  }
805
- function m1({ handleSave: t, isSaveButtonDisabled: n }) {
814
+ function p1({ handleSave: t, isSaveButtonDisabled: n }) {
806
815
  const o = l((s) => s.configuration);
807
816
  return l((s) => s.slippage), /* @__PURE__ */ e(
808
817
  "div",
@@ -820,7 +829,7 @@ function m1({ handleSave: t, isSaveButtonDisabled: n }) {
820
829
  }
821
830
  );
822
831
  }
823
- function p1({ handleClose: t }) {
832
+ function g1({ handleClose: t }) {
824
833
  return /* @__PURE__ */ u("div", { className: "bw-w-full bw-relative bw-flex bw-items-center bw-justify-center", children: [
825
834
  /* @__PURE__ */ e("h2", { className: "bw-text-2xl bw-font-bold bw-text-text-primary", children: "Config" }),
826
835
  /* @__PURE__ */ e(
@@ -834,7 +843,7 @@ function p1({ handleClose: t }) {
834
843
  )
835
844
  ] });
836
845
  }
837
- function g1({ slippage: t, handleSlippage: n }) {
846
+ function x1({ slippage: t, handleSlippage: n }) {
838
847
  var s, r;
839
848
  const o = l((c) => c.configuration);
840
849
  return /* @__PURE__ */ u("div", { className: "bw-flex bw-items-center bw-justify-between", children: [
@@ -864,7 +873,7 @@ function g1({ slippage: t, handleSlippage: n }) {
864
873
  onChange: n,
865
874
  type: "number",
866
875
  onKeyDown: (c) => {
867
- w1(c);
876
+ u1(c);
868
877
  },
869
878
  className: "bw-bg-transparent bw-border-none bw-text-text-primary bw-pl-2 bw-text-right bw-w-[80%]"
870
879
  }
@@ -875,14 +884,14 @@ function g1({ slippage: t, handleSlippage: n }) {
875
884
  )
876
885
  ] });
877
886
  }
878
- function x1() {
887
+ function f1() {
879
888
  return /* @__PURE__ */ u("div", { className: "bw-flex bw-gap-x-5 bw-items-center ", children: [
880
889
  /* @__PURE__ */ e("h2", { className: "bw-text-lg bw-font-normal bw-text-text-primary", children: "Transaction Fee" }),
881
890
  /* @__PURE__ */ e("div", { className: "bw-h-[1px] bw-flex-1 bw-bg-border-primary " })
882
891
  ] });
883
892
  }
884
893
  function at({ handleClose: t }) {
885
- const [n, o] = N(""), [s, r] = N({ name: "Low", value: "low" }), [c, b] = N(""), [d, a] = N(""), [p, y] = N(""), I = l((g) => g.broadCastMode), T = l((g) => g.customFee), P = l((g) => g.setCustomFee), f = l((g) => g.slippage), h = l((g) => g.setSlippage), C = l((g) => g.setBroadCastMode), A = l((g) => g.option), v = l((g) => g.setOption), Z = n == T && A.name == s.name && f == p && (d === I && d !== "" || !n.length && !A.name.length);
894
+ const [n, o] = N(""), [s, r] = N({ name: "Low", value: "low" }), [c, b] = N(""), [d, 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 && (d === I && d !== "" || !n.length && !A.name.length);
886
895
  function H(g) {
887
896
  b(""), o(g.target.value);
888
897
  }
@@ -898,10 +907,10 @@ function at({ handleClose: t }) {
898
907
  v(s);
899
908
  }
900
909
  B(() => {
901
- y(f);
902
- }, [h]);
910
+ f(h);
911
+ }, [y]);
903
912
  function R(g) {
904
- y(g.target.value);
913
+ f(g.target.value);
905
914
  }
906
915
  B(() => {
907
916
  a(I);
@@ -911,7 +920,7 @@ function at({ handleClose: t }) {
911
920
  C(""), b("Please select a mode");
912
921
  return;
913
922
  }
914
- n.length ? (P(n), v(s)) : (P(""), L()), C(d), h(p), t();
923
+ n.length ? (P(n), v(s)) : (P(""), L()), C(d), y(p), t();
915
924
  }
916
925
  function J(g) {
917
926
  b(""), a(g);
@@ -919,13 +928,13 @@ function at({ handleClose: t }) {
919
928
  return B(() => {
920
929
  !T && !A.name.length && (C(""), a(""));
921
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: [
922
- /* @__PURE__ */ e(p1, { handleClose: t }),
923
- /* @__PURE__ */ e("div", { className: "bw-mt-5 bw-mb-5", children: /* @__PURE__ */ e(g1, { slippage: p, handleSlippage: R }) }),
924
- /* @__PURE__ */ e("div", { className: "bw-mb-5", children: /* @__PURE__ */ e(x1, {}) }),
931
+ /* @__PURE__ */ e(g1, { handleClose: t }),
932
+ /* @__PURE__ */ e("div", { className: "bw-mt-5 bw-mb-5", children: /* @__PURE__ */ e(x1, { slippage: p, handleSlippage: R }) }),
933
+ /* @__PURE__ */ e("div", { className: "bw-mb-5", children: /* @__PURE__ */ e(f1, {}) }),
925
934
  /* @__PURE__ */ e(st, { mode: d, handleMode: J }),
926
- /* @__PURE__ */ e(d1, { options: s, handleOptions: re }),
935
+ /* @__PURE__ */ e(w1, { options: s, handleOptions: re }),
927
936
  /* @__PURE__ */ e(
928
- u1,
937
+ m1,
929
938
  {
930
939
  title: "Max Cap",
931
940
  inputSideText: "SOL",
@@ -936,7 +945,7 @@ function at({ handleClose: t }) {
936
945
  /* @__PURE__ */ u("div", { className: "bw-relative", children: [
937
946
  /* @__PURE__ */ e("p", { className: "bw-w-full bw-absolute bw-text-center -bw-top-5 bw-text-xs bw-text-text-redtext", children: c }),
938
947
  /* @__PURE__ */ e(
939
- m1,
948
+ p1,
940
949
  {
941
950
  handleSave: _,
942
951
  isSaveButtonDisabled: Z
@@ -946,18 +955,18 @@ function at({ handleClose: t }) {
946
955
  ] });
947
956
  }
948
957
  function lt({ handleClose: t }) {
949
- const [n, o] = N({ name: "Low", value: "low" }), [s, r] = N(""), [c, b] = N(""), d = l((v) => v.setEvmGas), a = l((v) => v.setEvmSpeed), p = l((v) => v.evmSpeed), y = l((v) => v.evmGas), I = l((v) => v.slippage), T = l((v) => v.setSlippage), P = s == y && p.name == n.name && I == c;
950
- function f(v, Z) {
958
+ const [n, o] = N({ name: "Low", value: "low" }), [s, r] = N(""), [c, b] = N(""), d = l((v) => v.setEvmGas), a = l((v) => v.setEvmSpeed), p = l((v) => v.evmSpeed), f = l((v) => v.evmGas), I = l((v) => v.slippage), T = l((v) => v.setSlippage), P = s == f && p.name == n.name && I == c;
959
+ function h(v, Z) {
951
960
  o(v);
952
961
  }
953
- function h(v) {
962
+ function y(v) {
954
963
  r(v.target.value);
955
964
  }
956
965
  B(() => {
957
966
  o(p);
958
967
  }, []), B(() => {
959
- y != null && y.length ? r(y) : r("");
960
- }, [y]);
968
+ f != null && f.length ? r(f) : r("");
969
+ }, [f]);
961
970
  function C() {
962
971
  s.length ? (d(s), a(n)) : (d(""), a(n)), T(c), t();
963
972
  }
@@ -968,21 +977,21 @@ function lt({ handleClose: t }) {
968
977
  b(v.target.value);
969
978
  }
970
979
  return /* @__PURE__ */ u("div", { className: "bw-w-full md:bw-w-[443px] bw-h-[396px] bw-rounded-md bw-border bw-p-3 bw-border-border-primary bw-text-white bw-bg-background-container", children: [
971
- /* @__PURE__ */ e(p1, { handleClose: t }),
972
- /* @__PURE__ */ e("div", { className: "bw-mt-5 bw-mb-5", children: /* @__PURE__ */ e(g1, { slippage: c, handleSlippage: A }) }),
973
- /* @__PURE__ */ e("div", { className: "bw-mb-5", children: /* @__PURE__ */ e(x1, {}) }),
974
- /* @__PURE__ */ e(d1, { options: n, handleOptions: f }),
980
+ /* @__PURE__ */ e(g1, { handleClose: t }),
981
+ /* @__PURE__ */ e("div", { className: "bw-mt-5 bw-mb-5", children: /* @__PURE__ */ e(x1, { slippage: c, handleSlippage: A }) }),
982
+ /* @__PURE__ */ e("div", { className: "bw-mb-5", children: /* @__PURE__ */ e(f1, {}) }),
983
+ /* @__PURE__ */ e(w1, { options: n, handleOptions: h }),
975
984
  /* @__PURE__ */ e(
976
- u1,
985
+ m1,
977
986
  {
978
987
  title: "Gas Price",
979
988
  inputSideText: "GWEI",
980
989
  inputVal: s,
981
- handleCustomVal: h
990
+ handleCustomVal: y
982
991
  }
983
992
  ),
984
993
  /* @__PURE__ */ e(
985
- m1,
994
+ p1,
986
995
  {
987
996
  handleSave: C,
988
997
  isSaveButtonDisabled: P
@@ -1122,45 +1131,45 @@ function ut() {
1122
1131
  /* @__PURE__ */ e(ct, { open: t, handleClose: s })
1123
1132
  ] });
1124
1133
  }
1125
- let o1, Fe, he, Me = 0;
1134
+ let s1, Fe, he, Me = 0;
1126
1135
  function mt({ confirmRoute: t, setConfirmRoute: n, routes: o, routesData: s, isRoutesEnabled: r, fetchBalance: c }) {
1127
- const [b, d] = N(0), { getWallet: a } = ke({}), p = l((h) => h.fromChain), y = a(p), { isConnected: I } = ge();
1136
+ const [b, d] = N(0), { getWallet: a } = ke({}), p = l((y) => y.fromChain), f = a(p), { isConnected: I } = ge();
1128
1137
  B(() => {
1129
1138
  t && clearInterval(he);
1130
1139
  }, [t]), B(() => {
1131
- var h;
1132
- b === 0 && document.visibilityState === "visible" && !t && r && ((h = y.address) != null && h.length && c.refetch(), o.refetch());
1140
+ var y;
1141
+ b === 0 && document.visibilityState === "visible" && !t && r && ((y = f.address) != null && y.length && c.refetch(), o.refetch());
1133
1142
  }, [b, t, r]), B(() => {
1134
1143
  o.isFetching && (Me = 0);
1135
1144
  }, [o.isFetching]), B(() => {
1136
1145
  if (!pe.isEmpty(s)) {
1137
- const h = Math.max(0, s.deadline - Me);
1138
- d(h);
1146
+ const y = Math.max(0, s.deadline - Me);
1147
+ d(y);
1139
1148
  }
1140
1149
  return () => {
1141
1150
  d(0);
1142
1151
  };
1143
- }, [s]), B(() => (pe.isEmpty(s) || document.addEventListener("visibilitychange", f), () => {
1144
- document.removeEventListener("visibilitychange", f);
1152
+ }, [s]), B(() => (pe.isEmpty(s) || document.addEventListener("visibilitychange", h), () => {
1153
+ document.removeEventListener("visibilitychange", h);
1145
1154
  }), [s]);
1146
1155
  function T() {
1147
- o1 = Date.now(), d((h) => (Fe = h, h));
1156
+ s1 = Date.now(), d((y) => (Fe = y, y));
1148
1157
  }
1149
1158
  function P() {
1150
- let h = Date.now(), C = Math.round((h - o1) / 1e3);
1159
+ let y = Date.now(), C = Math.round((y - s1) / 1e3);
1151
1160
  s.deadline - Fe + C > s.deadline ? n((A) => {
1152
1161
  var v;
1153
- return A || ((v = y.address) != null && v.length && c.refetch(), o.refetch(), d(s.deadline)), A;
1162
+ return A || ((v = f.address) != null && v.length && c.refetch(), o.refetch(), d(s.deadline)), A;
1154
1163
  }) : Fe && C && d(Fe - C);
1155
1164
  }
1156
- function f() {
1165
+ function h() {
1157
1166
  document.visibilityState === "visible" ? P() : T();
1158
1167
  }
1159
1168
  return B(() => (pe.isEmpty(s) ? he && clearInterval(he) : he = setInterval(() => {
1160
- d((h) => h <= 0 ? (Me = 0, s.deadline) : (Me++, h - 1));
1169
+ d((y) => y <= 0 ? (Me = 0, s.deadline) : (Me++, y - 1));
1161
1170
  }, 1e3), () => {
1162
1171
  he && clearInterval(he);
1163
- }), [s]), l((h) => h.timerValue), { quoteTimer: b, setQuoteTimer: d };
1172
+ }), [s]), l((y) => y.timerValue), { quoteTimer: b, setQuoteTimer: d };
1164
1173
  }
1165
1174
  function pt(t, n, o) {
1166
1175
  const { primaryWallet: s } = Ne(), [r, c] = N(0), b = async (d) => {
@@ -1202,12 +1211,12 @@ async function ht(t, n) {
1202
1211
  return c;
1203
1212
  }
1204
1213
  function yt(t, n) {
1205
- const [o, s] = N(0), { primaryWallet: r, setPrimaryWallet: c } = Ne(), [b, d] = N(!1), a = l((m) => m.fromChain), { address: p, isConnected: y } = ge(), I = l((m) => m.cosmosChainIds), { data: T, isConnected: P } = Oe({
1214
+ const [o, s] = N(0), { primaryWallet: r, setPrimaryWallet: c } = Ne(), [b, d] = N(!1), a = l((m) => m.fromChain), { address: p, isConnected: f } = ge(), I = l((m) => m.cosmosChainIds), { data: T, isConnected: P } = Oe({
1206
1215
  chainId: I,
1207
1216
  multiChain: !0
1208
- }), f = l((m) => m.fromCoin), { data: h, isLoading: C } = O1({
1217
+ }), h = l((m) => m.fromCoin), { data: y, isLoading: C } = O1({
1209
1218
  address: p,
1210
- token: gt((f == null ? void 0 : f.address) || ""),
1219
+ token: gt((h == null ? void 0 : h.address) || ""),
1211
1220
  chainId: Number((a == null ? void 0 : a.chainId) || 0),
1212
1221
  enabled: !!((a.networkType == "evm" || n) && p && (p != null && p.length))
1213
1222
  }), {
@@ -1216,7 +1225,7 @@ function yt(t, n) {
1216
1225
  isFetching: Z,
1217
1226
  isInitialLoading: H,
1218
1227
  isRefetching: re
1219
- } = l1({
1228
+ } = c1({
1220
1229
  chainId: [a.chainId],
1221
1230
  multiChain: !0
1222
1231
  });
@@ -1237,7 +1246,7 @@ function yt(t, n) {
1237
1246
  try {
1238
1247
  d(!0);
1239
1248
  let k = await ht(r.address, m);
1240
- d(!1), s(k == null ? void 0 : k[f == null ? void 0 : f.address]);
1249
+ d(!1), s(k == null ? void 0 : k[h == null ? void 0 : h.address]);
1241
1250
  } catch {
1242
1251
  d(!1);
1243
1252
  }
@@ -1250,48 +1259,48 @@ function yt(t, n) {
1250
1259
  const k = new be(r.address);
1251
1260
  k && (_ = m.onAccountChange(k, (M) => {
1252
1261
  var F;
1253
- a.networkType == "sol" && (r != null && r.address) && (((F = f == null ? void 0 : f.symbol) == null ? void 0 : F.toLowerCase()) === "sol" ? L() : a.chainId === "eclipse-svm" ? f.symbol == "ETH" ? L("https://eclipse.lgns.net/") : R("https://eclipse.lgns.net/") : R());
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());
1254
1263
  }));
1255
1264
  }
1256
1265
  B(() => ((a == null ? void 0 : a.networkType) === "sol" && J(), async () => {
1257
1266
  if (!r) return;
1258
1267
  (await r.connector.getPublicClient()).removeAccountChangeListener(_);
1259
- }), [r == null ? void 0 : r.address, a == null ? void 0 : a.networkType, f]);
1268
+ }), [r == null ? void 0 : r.address, a == null ? void 0 : a.networkType, h]);
1260
1269
  async function g(m) {
1261
1270
  var M, F;
1262
1271
  let k = A[m] || A;
1263
1272
  try {
1264
1273
  d(!0);
1265
1274
  let x = await k.getAllBalances((M = T == null ? void 0 : T[m]) == null ? void 0 : M.bech32Address), O = pe.keyBy(x, "denom");
1266
- s(((F = O[b1(f.address)]) == null ? void 0 : F.amount) / Math.pow(10, f.decimals) || 0), d(!1);
1275
+ s(((F = O[d1(h.address)]) == null ? void 0 : F.amount) / Math.pow(10, h.decimals) || 0), d(!1);
1267
1276
  } catch {
1268
1277
  d(!1);
1269
1278
  }
1270
1279
  }
1271
1280
  return B(() => {
1272
1281
  var m;
1273
- a.networkType == "sol" && (r != null && r.address) ? ((m = f == null ? void 0 : f.symbol) == null ? void 0 : m.toLowerCase()) === "sol" ? L() : a.chainId == "eclipse-svm" ? f.symbol == "ETH" ? L("https://eclipse.lgns.net/") : R("https://eclipse.lgns.net/") : R() : a.networkType == "evm" && p && (p != null && p.length) ? s(Number((h == null ? void 0 : h.formatted) || 0)) : a.networkType == "cosmos" && P && !v && g(a == null ? void 0 : a.chainId);
1274
- }, [a.networkType, a == null ? void 0 : a.chainId, f.symbol, f == null ? void 0 : f.address, h, p, r == null ? void 0 : r.address, p, P, v, t]), {
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]), {
1275
1284
  getbal: o,
1276
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
1277
1286
  };
1278
1287
  }
1279
- const Ct = de.lazy(() => import("./SwapAsset-D5NIoW3H.js")), vt = de.lazy(() => import("./InputComp-CnUyfHBk.js")), kt = de.lazy(() => import("./QuotesProgress-DzZhqliF.js")), Nt = de.lazy(() => import("./TxnButton-oruKvtpk.js")), Tt = de.lazy(() => import("./index-Dtl4ODqT.js").then((t) => t.i)), It = de.lazy(() => import("./index-Qvs-AUhn.js")), Bt = de.lazy(() => import("./LoadRoute-BcCbw9It.js")), At = de.lazy(() => import("./AllRoutes-QrZ7pQLj.js"));
1288
+ const Ct = de.lazy(() => import("./SwapAsset-ChCb8j5s.js")), vt = de.lazy(() => import("./InputComp-CUfYK6Y3.js")), kt = de.lazy(() => import("./QuotesProgress-Ye4PPS1z.js")), Nt = de.lazy(() => import("./TxnButton-CzLN4kUm.js")), Tt = de.lazy(() => import("./index-UtdYkkpH.js").then((t) => t.i)), It = de.lazy(() => import("./index-CKfCnt73.js")), Bt = de.lazy(() => import("./LoadRoute-CDQgol9I.js")), At = de.lazy(() => import("./AllRoutes-CJGurgjX.js"));
1280
1289
  function jt({ handleShowWallet: t, showWallet: n, fetchChains: o }) {
1281
1290
  var Ge, Ke, Je, qe, Xe, Qe, We;
1282
- const [s, r] = N(), [c, b] = N(!1), [d, a] = N(!1), [p, y] = N(!1), [I, T] = N(!1), [P, f] = N("all"), [h, C] = N(!1), { primaryWallet: A } = Ne();
1291
+ const [s, r] = N(), [c, b] = N(!1), [d, a] = N(!1), [p, f] = N(!1), [I, T] = N(!1), [P, h] = N("all"), [y, C] = N(!1), { primaryWallet: A } = Ne();
1283
1292
  $1();
1284
- const { address: v } = ge(), { address: Z } = i1(), { getbal: H, isBalanceLoading: re } = yt(h), { data: L, isConnected: R } = Oe({ chainId: "cosmoshub-4" });
1293
+ const { address: v } = ge(), { address: Z } = a1(), { getbal: H, isBalanceLoading: re } = yt(y), { data: L, isConnected: R } = Oe({ chainId: "cosmoshub-4" });
1285
1294
  l((i) => i.configuration);
1286
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);
1287
1296
  l((i) => i.setToDisconnect);
1288
- const Te = l((i) => i.setCosmosChainIds), Y = l((i) => i.customFee), G = l((i) => i.broadCastMode), Q = l((i) => i.evmGas), z = l((i) => i.evmSpeed), Ie = l((i) => i.slippage), ye = l((i) => i.option), Be = l((i) => i.setCustomWallet), Ae = l((i) => i.setSelectedProvider), { balanceSol: w } = pt(m, h, Re), { suggestAndConnectAsync: D } = S1(), ee = !!(j.length && m.chain.length && M.coin.length && k.chain.length && F.coin.length && !p && I), le = ["routes", v, m, k, M, F, j, A == null ? void 0 : A.address, Z, ie, L == null ? void 0 : L.bech32Address, Y, Q, z, Ie, G, ye.value];
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: w } = pt(m, y, Re), { suggestAndConnectAsync: D } = S1(), ee = !!(j.length && m.chain.length && M.coin.length && k.chain.length && F.coin.length && !p && I), le = ["routes", v, m, k, M, F, j, A == null ? void 0 : A.address, Z, ie, L == null ? void 0 : L.bech32Address, Y, Q, z, Ie, G, ye.value];
1289
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;
1290
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: te } = ke({}), { routes: S, routesData: X, setRoutesData: ce, errorMessage: ne, setErrorMessage: Ce } = J1({
1291
1300
  enabled: ee,
1292
1301
  dependency: le,
1293
- payload: [(m == null ? void 0 : m.networkType) === "cosmos" ? t1(L == null ? void 0 : L.bech32Address, (Ge = m == null ? void 0 : m.chainInfo) == null ? void 0 : Ge.bech32Config.bech32PrefixAccAddr) : ((Ke = U(m)) == null ? void 0 : Ke.address) || "", m, k, M, F, j, Number(Ie) * 100, (ie == null ? void 0 : ie.length) > 30 ? ((Je = U({})) == null ? void 0 : Je.address) || "" : (k == null ? void 0 : k.networkType) === "cosmos" ? t1(L == null ? void 0 : L.bech32Address, (qe = k == null ? void 0 : k.chainInfo) == null ? void 0 : qe.bech32Config.bech32PrefixAccAddr) : ((Xe = U(k)) == null ? void 0 : Xe.address) || "", W]
1294
- }), ae = U(m), we = a1({
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({
1295
1304
  queryKey: ["balance", ae == null ? void 0 : ae.address, m],
1296
1305
  queryFn: async () => await (await Ve.fetchBalance(ae.address, m.chainId)).json(),
1297
1306
  enabled: !!((Qe = ae == null ? void 0 : ae.address) != null && Qe.length && m.chainId),
@@ -1316,7 +1325,7 @@ function jt({ handleShowWallet: t, showWallet: n, fetchChains: o }) {
1316
1325
  S.isFetching && ce({});
1317
1326
  }, [S.isFetching]);
1318
1327
  function ve(i) {
1319
- y(i);
1328
+ f(i);
1320
1329
  }
1321
1330
  function Pe() {
1322
1331
  r();
@@ -1324,12 +1333,12 @@ function jt({ handleShowWallet: t, showWallet: n, fetchChains: o }) {
1324
1333
  async function Le(i) {
1325
1334
  if (R)
1326
1335
  try {
1327
- let ue = await e1();
1336
+ let ue = await t1();
1328
1337
  if (ue.length && !ue.includes(i.chainId)) {
1329
1338
  let xe = await D({
1330
1339
  chainInfo: i,
1331
1340
  walletType: Z1.KEPLR
1332
- }), me = await te(), fe = await e1();
1341
+ }), me = await te(), fe = await t1();
1333
1342
  Te(fe);
1334
1343
  }
1335
1344
  } catch {
@@ -1337,10 +1346,10 @@ function jt({ handleShowWallet: t, showWallet: n, fetchChains: o }) {
1337
1346
  else
1338
1347
  return;
1339
1348
  }
1340
- function f1(i) {
1349
+ function h1(i) {
1341
1350
  (i == null ? void 0 : i.networkType) == "cosmos" && Le(i.chainInfo), V(""), Ce({ error: "" }), s == "from" ? x({ ...i }) : s == "to" && O({ ...i });
1342
1351
  }
1343
- function h1(i) {
1352
+ function y1(i) {
1344
1353
  Ce({ error: "" }), V(""), s == "from" ? $({ ...i }) : s == "to" && E({ ...i });
1345
1354
  }
1346
1355
  function Ze() {
@@ -1352,18 +1361,18 @@ function jt({ handleShowWallet: t, showWallet: n, fetchChains: o }) {
1352
1361
  function Re(i) {
1353
1362
  C(i);
1354
1363
  }
1355
- function y1(i) {
1364
+ function C1(i) {
1356
1365
  Ae(i == null ? void 0 : i.provider), ce(i);
1357
1366
  }
1358
- function C1() {
1367
+ function v1() {
1359
1368
  setTimeout(() => {
1360
1369
  Re(!0), we.refetch();
1361
1370
  }, 1e3);
1362
1371
  }
1363
- function v1() {
1372
+ function k1() {
1364
1373
  V("");
1365
1374
  }
1366
- function k1(i, ue, xe) {
1375
+ function N1(i, ue, xe) {
1367
1376
  Ve.fetchTokens(i.chainId, xe).then((me) => me.json()).then((me) => {
1368
1377
  var fe, Ue;
1369
1378
  (Ue = (fe = me.data) == null ? void 0 : fe[i.chainId]) == null || Ue.forEach((Ye) => {
@@ -1376,36 +1385,36 @@ function jt({ handleShowWallet: t, showWallet: n, fetchChains: o }) {
1376
1385
  });
1377
1386
  });
1378
1387
  }
1379
- function N1() {
1388
+ function T1() {
1380
1389
  V(""), x(k), $(F), O(m), E(M), m.networkType !== k.networkType && Be("");
1381
1390
  }
1382
1391
  B(() => {
1383
1392
  _.isHistory && g === "" && (J({}), ve(!1));
1384
1393
  }, [_]);
1385
- function T1(i) {
1394
+ function I1(i) {
1386
1395
  var ue;
1387
1396
  if (i && o.isSuccess && i !== (k == null ? void 0 : k.networkType) && i !== (m == null ? void 0 : m.networkType)) {
1388
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";
1389
1398
  x({
1390
1399
  ...xe[me],
1391
1400
  chain: ((ue = xe[me]) == null ? void 0 : ue.name) || ""
1392
- }), k1(xe[me], $, fe);
1401
+ }), N1(xe[me], $, fe);
1393
1402
  } else
1394
1403
  return;
1395
1404
  }
1396
- return /* @__PURE__ */ e(B1, { fallback: /* @__PURE__ */ e(P1, {}), children: /* @__PURE__ */ e("div", { children: n ? /* @__PURE__ */ e(Tt, { connectWalletField: P, handleShowWallet: t, handleRecentSelectedWallet: T1 }) : !d && !((We = _ == null ? void 0 : _.routeId) != null && We.length) ? c ? /* @__PURE__ */ e(At, { routes: S, handleShowAllRoutes: Ze, handleRoutesData: y1, 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: f1, setCoinData: h1, handleReset: Pe, showExchangeList: s, fetchBalance: we, fetchChains: o }) : /* @__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 }) : !d && !((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: [
1397
1406
  /* @__PURE__ */ e(ut, {}),
1398
1407
  /* @__PURE__ */ u("div", { className: "bw-flex bw-relative bw-items-center bw-gap-x-2 bw-justify-between", children: [
1399
- /* @__PURE__ */ e(Ct, { handleSwap: N1 }),
1400
- /* @__PURE__ */ e(r1, { chainData: m, show: "from", handleShowWallet: t, setShowExchangeList: r, setConnectWalletField: f, coinData: M }),
1401
- /* @__PURE__ */ e(r1, { chainData: k, show: "to", handleShowWallet: t, setShowExchangeList: r, setConnectWalletField: f, coinData: F })
1408
+ /* @__PURE__ */ e(Ct, { handleSwap: T1 }),
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 })
1402
1411
  ] }),
1403
1412
  /* @__PURE__ */ e(vt, { amount: j, setAmount: V, fetchBalance: we, getCoinBalance: H, isBalanceLoading: re }),
1404
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) }) }),
1405
1414
  /* @__PURE__ */ e("p", { className: "bw-text-xs bw-font-normal bw-py-1 bw-text-text-redtext", children: typeof (ne == null ? void 0 : ne.error) == "string" ? ne == null ? void 0 : ne.error : "" }),
1406
1415
  /* @__PURE__ */ e(kt, { routes: S, routesData: X, confirmRoute: d, setConfirmRoute: a, isRoutesEnabled: ee, quoteTimer: je }),
1407
- /* @__PURE__ */ e(Nt, { routesData: X, handleSuccess: Re, routes: S, fetchBalancePrev: we, amount: j, isAmountTyped: I, handleShowWallet: t, setConnectWalletField: f, handleConfirmClose: He, balanceSol: w, getCoinBalance: H })
1408
- ] }) : /* @__PURE__ */ e(It, { handleConfirmClose: He, amount: j, routesData: X, resetAmount: v1, routes: S, handleStopRoute: ve, resetBalance: C1 }) }) });
1416
+ /* @__PURE__ */ e(Nt, { routesData: X, handleSuccess: Re, routes: S, fetchBalancePrev: we, amount: j, isAmountTyped: I, handleShowWallet: t, setConnectWalletField: h, handleConfirmClose: He, balanceSol: w, getCoinBalance: H })
1417
+ ] }) : /* @__PURE__ */ e(It, { handleConfirmClose: He, amount: j, routesData: X, resetAmount: k1, routes: S, handleStopRoute: ve, resetBalance: v1 }) }) });
1409
1418
  }
1410
1419
  function Pt({ fetchChains: t }) {
1411
1420
  const [n, o] = N(!1), { isConnected: s } = ge();
@@ -1428,7 +1437,7 @@ const Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1428
1437
  export {
1429
1438
  gt as c,
1430
1439
  Kt as i,
1431
- b1 as p,
1432
- w1 as r,
1440
+ d1 as p,
1441
+ u1 as r,
1433
1442
  U1 as u
1434
1443
  };