@blockend/widget 1.0.42 → 1.0.44
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.
- package/dist/{AllRoutes-DZD7D5-7.js → AllRoutes-DNRXXb_2.js} +9 -9
- package/dist/{Box-Dzh_WtCl.js → Box-C8pz2hv3.js} +12 -12
- package/dist/{EstGas-BsHGw6jd.js → EstGas-BgT0B_Yy.js} +7 -7
- package/dist/{Grow-iau12ci1.js → Grow-Uj-CLT6y.js} +2 -2
- package/dist/{InputComp-BgwhfRJo.js → InputComp-Zzc6bF8h.js} +3 -3
- package/dist/{LoadRoute-FRPd_uiC.js → LoadRoute-CcIg50Yb.js} +4 -4
- package/dist/{QuotesProgress-DShC8Cqo.js → QuotesProgress-B79h-CTW.js} +1 -1
- package/dist/{SwapAsset-Dgs7iZyA.js → SwapAsset-BhD2UR3A.js} +1 -1
- package/dist/{Tooltip-DCX9lYmC.js → Tooltip-BBw0VxQs.js} +3 -3
- package/dist/{TxnButton-DRdcLQmQ.js → TxnButton-d1ubzbOq.js} +12 -12
- package/dist/{add-DDtmtPvo.js → add-D7EDXkj6.js} +1 -1
- package/dist/{all-wallets-bxuatxbR.js → all-wallets-BNC49nHR.js} +1 -1
- package/dist/{app-store-BqgLQQ93.js → app-store-BYPSmm1V.js} +1 -1
- package/dist/{apple-CJsdxjoW.js → apple-BlA2dOwt.js} +1 -1
- package/dist/{arrow-bottom-CCyYBkBK.js → arrow-bottom-D0UzrcnY.js} +1 -1
- package/dist/{arrow-bottom-circle-TODM2wkv.js → arrow-bottom-circle-DcUKKy5Z.js} +1 -1
- package/dist/{arrow-left-CKLaqeSe.js → arrow-left-B_zqcjVs.js} +1 -1
- package/dist/{arrow-right-CIOAHh8U.js → arrow-right-a79GuEYs.js} +1 -1
- package/dist/{arrow-top-C4UsdxAE.js → arrow-top-DHopdpJE.js} +1 -1
- package/dist/{bank-BYJPgsE0.js → bank-XzmUymmc.js} +1 -1
- package/dist/{basic-lq14gOxp.js → basic-Dqzh9dVE.js} +3 -3
- package/dist/{browser-IKcrlTkv.js → browser-CIoF1YoX.js} +1 -1
- package/dist/{card-BD5lr4mZ.js → card-DaVGBonJ.js} +1 -1
- package/dist/ccip-DRnomoC_.js +228 -0
- package/dist/{checkmark-easEA7tu.js → checkmark-Ncw4O7Nm.js} +1 -1
- package/dist/{checkmark-bold-DPFamGxu.js → checkmark-bold-wvoceNeQ.js} +1 -1
- package/dist/{chevron-bottom-D1DtVTxR.js → chevron-bottom-D-mmpTgi.js} +1 -1
- package/dist/{chevron-left-BECE6BGO.js → chevron-left-BvFPDKu5.js} +1 -1
- package/dist/{chevron-right-BqQfDgc0.js → chevron-right-CKCVXzZ4.js} +1 -1
- package/dist/{chevron-top-C9W1eUML.js → chevron-top-Cagzb_7s.js} +1 -1
- package/dist/{chrome-store-BkDKfGoT.js → chrome-store-D9aGw_OB.js} +1 -1
- package/dist/{clock-DNIdQSFa.js → clock-Dq-EYeWm.js} +1 -1
- package/dist/{close-pzcuYLWf.js → close-EqWFS6Im.js} +1 -1
- package/dist/{coinPlaceholder-DQ0W26Oo.js → coinPlaceholder-C6BCjMqD.js} +1 -1
- package/dist/{compass-DJY4sLHr.js → compass-C9BcMojK.js} +1 -1
- package/dist/{copy-m5YiPsf9.js → copy-COw9tdjy.js} +1 -1
- package/dist/{core-BI7GlSQQ.js → core-CQumm9MP.js} +3 -3
- package/dist/{cursor-Ddz0gQ35.js → cursor-DVlC7dCx.js} +1 -1
- package/dist/{cursor-transparent-B5zAQBSe.js → cursor-transparent-CaOUrkvY.js} +1 -1
- package/dist/{desktop-CmQdXq76.js → desktop-flG4HFxy.js} +1 -1
- package/dist/{disconnect-ZM9xlXig.js → disconnect-DgO0Zaaj.js} +1 -1
- package/dist/{discord-HNXUhlnS.js → discord-DZR27o0e.js} +1 -1
- package/dist/{down-CjLDSeju.js → down-BA4bctKM.js} +2 -2
- package/dist/{etherscan-Ce3s4U_7.js → etherscan-BR8_TZCc.js} +1 -1
- package/dist/{exclamation-triangle-n_cohfRW.js → exclamation-triangle-BCIm4J5M.js} +1 -1
- package/dist/{extension-D-WWZ6e4.js → extension-DFXXyTlv.js} +1 -1
- package/dist/{external-link-aJgbTjkL.js → external-link-Bszwcv0o.js} +1 -1
- package/dist/{facebook-0rRa1zVC.js → facebook-C9Ss5tGh.js} +1 -1
- package/dist/{farcaster-DRRFmE1F.js → farcaster-JTGZ86iu.js} +1 -1
- package/dist/{filters-BDLqhPOh.js → filters-BY8TtU8Q.js} +1 -1
- package/dist/{getChainIds-C2FxTGbk.js → getChainIds-DP6EGKno.js} +2 -2
- package/dist/getCosmosAddress-BqBmix5V.js +9565 -0
- package/dist/{github-Obng17RA.js → github-w0pe-Qfr.js} +1 -1
- package/dist/{google-BIXlIx3J.js → google-BlhvJi8X.js} +1 -1
- package/dist/{hamburger-CUt6_9MP.js → hamburger-DhyK9fM3.js} +5 -5
- package/dist/{help-circle-CB9MlFPx.js → help-circle-DgdDQwLT.js} +1 -1
- package/dist/{id-CSF1vlyc.js → id-BzCdKrqm.js} +1 -1
- package/dist/{image-Cq7nyoSF.js → image-RfsB1tTS.js} +1 -1
- package/dist/{index-DBYtMVsX.js → index-BF6flr1e.js} +4 -4
- package/dist/{index-DitHVC8k.js → index-BZ4_2wJd.js} +11 -11
- package/dist/index-BZtHqNTb.js +30414 -0
- package/dist/{index-zQJSlLTK.js → index-BqEEQKVk.js} +2 -2
- package/dist/{index-CA-JZieb.js → index-BwhP3k7y.js} +1 -1
- package/dist/{index-Bl9Ckfvc.js → index-D8sGMJ9k.js} +4 -4
- package/dist/{index-DHRd9r4E.js → index-Dbgjq840.js} +78 -78
- package/dist/{index-BFuPcLQl.js → index-DtOKGEj5.js} +142 -133
- package/dist/{index-aNL4las-.js → index-G-9qdNyB.js} +5 -5
- package/dist/{index-ByxiUEcM.js → index-Nzgx9EuZ.js} +1 -1
- package/dist/{index-LcA9mS3g.js → index-hZVsZOSw.js} +10 -10
- package/dist/{index.es-4EAPyRWu.js → index.es-LiKODD-K.js} +1 -1
- package/dist/{index.es-BbqQAF75.js → index.es-ON8SA0J5.js} +2 -2
- package/dist/index.es.js +1 -1
- package/dist/{info-DTwm7mjV.js → info-D2hFczyn.js} +1 -1
- package/dist/{info-circle-BgP1cn6l.js → info-circle-CMLmgvb7.js} +1 -1
- package/dist/{lightbulb-cdKRqxNY.js → lightbulb-YfLUKgvI.js} +1 -1
- package/dist/{mail-BYrqL901.js → mail-B8qD8KEi.js} +1 -1
- package/dist/{mobile-C38shLyr.js → mobile-Cx8Tpbyy.js} +1 -1
- package/dist/{more-gvTAE7al.js → more-OeJAgRgA.js} +1 -1
- package/dist/{network-placeholder-B0yFXA2M.js → network-placeholder-BaKNZBpG.js} +1 -1
- package/dist/{nftPlaceholder-kmLC1995.js → nftPlaceholder-C0C4GEzc.js} +1 -1
- package/dist/{off-D0x4UmXZ.js → off-LLbjNSXh.js} +1 -1
- package/dist/{play-store-RbbrnDa4.js → play-store-DDfgKw3t.js} +1 -1
- package/dist/{plus-Dxwb-0cG.js → plus-C_Y8RPTM.js} +1 -1
- package/dist/{qr-code-GqZ3Mb5_.js → qr-code-b4dWeBhG.js} +1 -1
- package/dist/{recycle-horizontal-BYh8pAZF.js → recycle-horizontal-B3_tmbpJ.js} +1 -1
- package/dist/{refresh-C4zqMfSb.js → refresh-B-Zeyb5f.js} +1 -1
- package/dist/{reown-logo-91rFej6P.js → reown-logo-B-JDiZf9.js} +1 -1
- package/dist/{search-Du4hJfnF.js → search-DobDc2vx.js} +1 -1
- package/dist/{send-D8srhqkz.js → send-3zkJM7P1.js} +1 -1
- package/dist/{swapHorizontal-BLYPf5tb.js → swapHorizontal-DWJzzfrI.js} +1 -1
- package/dist/{swapHorizontalBold-C67TzlMe.js → swapHorizontalBold-CKCSdXUZ.js} +1 -1
- package/dist/{swapHorizontalMedium-CzpKc1YY.js → swapHorizontalMedium-C6UwVh5S.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-DLunu-y4.js → swapHorizontalRoundedBold-CS5Tdw7m.js} +1 -1
- package/dist/{swapVertical-DLqVANj3.js → swapVertical-7J5EhrZ3.js} +1 -1
- package/dist/{telegram-C99wI1J_.js → telegram-C93uv36j.js} +1 -1
- package/dist/{three-dots-DpwwokeP.js → three-dots-D2Sa1KEa.js} +1 -1
- package/dist/{twitch-K-Z_CxH8.js → twitch-CzX1AsjP.js} +1 -1
- package/dist/{twitterIcon-PaM7mQWK.js → twitterIcon-DSPPNdge.js} +1 -1
- package/dist/{unsupportedProp-X0IfYgnd.js → unsupportedProp-DcfWDwEF.js} +1 -1
- package/dist/{useRegisterError-Czs99ziS.js → useRegisterError-NftvtRty.js} +1 -1
- package/dist/{verify-S_ANES9T.js → verify-Cq0ZFKmg.js} +1 -1
- package/dist/{verify-filled-CH-zFriN.js → verify-filled-BnLMJhra.js} +1 -1
- package/dist/{w3m-modal-PmO-JR-7.js → w3m-modal-BdXhL1DT.js} +2 -2
- package/dist/{wallet-DMWvMKpU.js → wallet-DmTSN-rl.js} +1 -1
- package/dist/{wallet-placeholder-WaUzlVmk.js → wallet-placeholder-DQ-E-KmO.js} +1 -1
- package/dist/{walletconnect-DNh4G8zR.js → walletconnect-Cjp1241X.js} +1 -1
- package/dist/{warning-circle-BHUoOEkq.js → warning-circle-DNr7pWWk.js} +1 -1
- package/dist/{x-y9xMGpeI.js → x-CAfd0Q5G.js} +1 -1
- package/package.json +1 -1
- package/dist/getCosmosAddress-ACoKmza-.js +0 -11859
- package/dist/index-CBTT9uoz.js +0 -16939
@@ -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
|
3
|
-
import { B as
|
4
|
-
import { u as l, l as pe, a as
|
5
|
-
import { C as
|
6
|
-
import { useQuery as
|
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-NftvtRty.js";
|
4
|
+
import { u as l, l as pe, a as a1, c as Ve, S as P1, M as L1 } from "./index-BZtHqNTb.js";
|
5
|
+
import { C as e1, M as F1, g as t1 } from "./getChainIds-DP6EGKno.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-
|
11
|
-
import { useAccount as Oe, useStargateClient as
|
12
|
-
import { S as H1, D as G1 } from "./down-
|
10
|
+
import { u as V1, B as z1 } from "./index-BqEEQKVk.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-BA4bctKM.js";
|
13
13
|
import { R as K1 } from "./index-CDq3vNnP.js";
|
14
|
-
import { C as ze, P as be, u as J1, g as
|
15
|
-
function
|
14
|
+
import { C as ze, P as be, u as J1, g as n1 } from "./getCosmosAddress-BqBmix5V.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(
|
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: (
|
81
|
-
d(
|
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(
|
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((
|
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:
|
98
|
-
n(
|
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 =
|
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:
|
109
|
-
s.chain ===
|
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: (
|
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",
|
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 } =
|
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,
|
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
|
-
(
|
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
|
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:
|
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 =
|
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" &&
|
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 =
|
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 =
|
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,
|
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
|
-
|
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(
|
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(
|
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 ||
|
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 ? `+${
|
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
|
-
|
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(
|
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:
|
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 &&
|
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[
|
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(
|
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
|
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:
|
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
|
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" ? (
|
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
|
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: (
|
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(
|
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
|
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
|
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
|
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
|
-
|
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
|
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
|
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
|
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
|
-
|
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
|
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,
|
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
|
-
|
902
|
-
}, [
|
910
|
+
f(h);
|
911
|
+
}, [y]);
|
903
912
|
function R(g) {
|
904
|
-
|
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),
|
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(
|
923
|
-
/* @__PURE__ */ e("div", { className: "bw-mt-5 bw-mb-5", children: /* @__PURE__ */ e(
|
924
|
-
/* @__PURE__ */ e("div", { className: "bw-mb-5", children: /* @__PURE__ */ e(
|
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(
|
935
|
+
/* @__PURE__ */ e(w1, { options: s, handleOptions: re }),
|
927
936
|
/* @__PURE__ */ e(
|
928
|
-
|
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
|
-
|
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),
|
950
|
-
function
|
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
|
962
|
+
function y(v) {
|
954
963
|
r(v.target.value);
|
955
964
|
}
|
956
965
|
B(() => {
|
957
966
|
o(p);
|
958
967
|
}, []), B(() => {
|
959
|
-
|
960
|
-
}, [
|
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(
|
972
|
-
/* @__PURE__ */ e("div", { className: "bw-mt-5 bw-mb-5", children: /* @__PURE__ */ e(
|
973
|
-
/* @__PURE__ */ e("div", { className: "bw-mb-5", children: /* @__PURE__ */ e(
|
974
|
-
/* @__PURE__ */ e(
|
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
|
-
|
985
|
+
m1,
|
977
986
|
{
|
978
987
|
title: "Gas Price",
|
979
988
|
inputSideText: "GWEI",
|
980
989
|
inputVal: s,
|
981
|
-
handleCustomVal:
|
990
|
+
handleCustomVal: y
|
982
991
|
}
|
983
992
|
),
|
984
993
|
/* @__PURE__ */ e(
|
985
|
-
|
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
|
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((
|
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
|
1132
|
-
b === 0 && document.visibilityState === "visible" && !t && r && ((
|
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
|
1138
|
-
d(
|
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",
|
1144
|
-
document.removeEventListener("visibilitychange",
|
1152
|
+
}, [s]), B(() => (pe.isEmpty(s) || document.addEventListener("visibilitychange", h), () => {
|
1153
|
+
document.removeEventListener("visibilitychange", h);
|
1145
1154
|
}), [s]);
|
1146
1155
|
function T() {
|
1147
|
-
|
1156
|
+
s1 = Date.now(), d((y) => (Fe = y, y));
|
1148
1157
|
}
|
1149
1158
|
function P() {
|
1150
|
-
let
|
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 =
|
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
|
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((
|
1169
|
+
d((y) => y <= 0 ? (Me = 0, s.deadline) : (Me++, y - 1));
|
1161
1170
|
}, 1e3), () => {
|
1162
1171
|
he && clearInterval(he);
|
1163
|
-
}), [s]), l((
|
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:
|
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
|
-
}),
|
1217
|
+
}), h = l((m) => m.fromCoin), { data: y, isLoading: C } = O1({
|
1209
1218
|
address: p,
|
1210
|
-
token: gt((
|
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
|
-
} =
|
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[
|
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 =
|
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,
|
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[
|
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 =
|
1274
|
-
}, [a.networkType, a == null ? void 0 : a.chainId,
|
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-
|
1288
|
+
const Ct = de.lazy(() => import("./SwapAsset-BhD2UR3A.js")), vt = de.lazy(() => import("./InputComp-Zzc6bF8h.js")), kt = de.lazy(() => import("./QuotesProgress-B79h-CTW.js")), Nt = de.lazy(() => import("./TxnButton-d1ubzbOq.js")), Tt = de.lazy(() => import("./index-BF6flr1e.js").then((t) => t.i)), It = de.lazy(() => import("./index-D8sGMJ9k.js")), Bt = de.lazy(() => import("./LoadRoute-CcIg50Yb.js")), At = de.lazy(() => import("./AllRoutes-DNRXXb_2.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,
|
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 } =
|
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,
|
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" ?
|
1294
|
-
}), ae = U(m), we =
|
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
|
-
|
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
|
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
|
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
|
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
|
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
|
1364
|
+
function C1(i) {
|
1356
1365
|
Ae(i == null ? void 0 : i.provider), ce(i);
|
1357
1366
|
}
|
1358
|
-
function
|
1367
|
+
function v1() {
|
1359
1368
|
setTimeout(() => {
|
1360
1369
|
Re(!0), we.refetch();
|
1361
1370
|
}, 1e3);
|
1362
1371
|
}
|
1363
|
-
function
|
1372
|
+
function k1() {
|
1364
1373
|
V("");
|
1365
1374
|
}
|
1366
|
-
function
|
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
|
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
|
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
|
-
}),
|
1401
|
+
}), N1(xe[me], $, fe);
|
1393
1402
|
} else
|
1394
1403
|
return;
|
1395
1404
|
}
|
1396
|
-
return /* @__PURE__ */ e(
|
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:
|
1400
|
-
/* @__PURE__ */ e(
|
1401
|
-
/* @__PURE__ */ e(
|
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:
|
1408
|
-
] }) : /* @__PURE__ */ e(It, { handleConfirmClose: He, amount: j, routesData: X, resetAmount:
|
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
|
-
|
1432
|
-
|
1440
|
+
d1 as p,
|
1441
|
+
u1 as r,
|
1433
1442
|
U1 as u
|
1434
1443
|
};
|