@blockend/widget 1.0.60 → 1.0.61-beta.1
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/AdvancedSettings-BSHVKOx8.js +60 -0
- package/dist/{AllRoutes-Bi2Qb6vT.js → AllRoutes-3rJ_6MZA.js} +9 -9
- package/dist/{Box-DofFTOO9.js → Box-k1E75YNB.js} +1 -1
- package/dist/EstGas-NmdlnuTV.js +1688 -0
- package/dist/{Grow-C7qv-xx7.js → Grow-DHSmig3g.js} +2 -2
- package/dist/{InputComp-B7JBOOCL.js → InputComp-Q8pjLoPE.js} +3 -3
- package/dist/{LoadRoute-KBCAhdb3.js → LoadRoute-C2z-mW9G.js} +4 -4
- package/dist/{QuotesProgress-DaVjqEE8.js → QuotesProgress-BD5CQpZ-.js} +1 -1
- package/dist/{SwapAsset-ClNXL1XN.js → SwapAsset-Kx0ombNP.js} +1 -1
- package/dist/{Tooltip-BfAqBg9y.js → Tooltip-Dx9YIENU.js} +3 -3
- package/dist/{TxnButton-41zPru_N.js → TxnButton-CWOz7URH.js} +31 -31
- package/dist/{add-Dtd6YmCJ.js → add-D_aca-vE.js} +1 -1
- package/dist/{all-wallets-fWl6fl6Y.js → all-wallets-D4BSWfpK.js} +1 -1
- package/dist/{app-store-DSLOwXZY.js → app-store-ST0Ravfg.js} +1 -1
- package/dist/{apple-BMDEkk8X.js → apple-DaFtNkdI.js} +1 -1
- package/dist/{arrow-bottom-BWURPGva.js → arrow-bottom-CuRXWFcr.js} +1 -1
- package/dist/{arrow-bottom-circle-BR18TdWN.js → arrow-bottom-circle-xfTEwf8w.js} +1 -1
- package/dist/{arrow-left-DSHPaT9f.js → arrow-left-Z346mTvE.js} +1 -1
- package/dist/{arrow-right-BQyfcxHk.js → arrow-right-CUIO0t26.js} +1 -1
- package/dist/{arrow-top-RP3srPoV.js → arrow-top-DmqPBsC5.js} +1 -1
- package/dist/{bank-C9VWqird.js → bank-BO1ZejV3.js} +1 -1
- package/dist/{basic-ChmJK0Xt.js → basic-P5IuMVWt.js} +3 -3
- package/dist/{browser-CSkm7gnt.js → browser-R_yTVBVl.js} +1 -1
- package/dist/{card-qLWgu9c8.js → card-CmQJzq49.js} +1 -1
- package/dist/{ccip-QF_uXtAt.js → ccip-Vdbs2YPx.js} +1 -1
- package/dist/{checkmark-BmzqmMw0.js → checkmark-BUj82mTz.js} +1 -1
- package/dist/{checkmark-bold-B6aImdAf.js → checkmark-bold-4sXAvyEi.js} +1 -1
- package/dist/{chevron-bottom-t4h4eaxS.js → chevron-bottom-BHRgOLsC.js} +1 -1
- package/dist/{chevron-left-D3susSgC.js → chevron-left-eVq5zb9x.js} +1 -1
- package/dist/{chevron-right-W13sAkua.js → chevron-right-BqbdhgX8.js} +1 -1
- package/dist/{chevron-top-Bx-QdB_J.js → chevron-top-lFcz1Dk9.js} +1 -1
- package/dist/{chrome-store-CGxM7IYK.js → chrome-store-CJjs0q6Z.js} +1 -1
- package/dist/{clock-DLxk1mp4.js → clock-LxWBSJ_V.js} +1 -1
- package/dist/{close-XyT_Ei7X.js → close-CJEyeA8d.js} +1 -1
- package/dist/{coinPlaceholder-COnVP39c.js → coinPlaceholder-A0px2L1V.js} +1 -1
- package/dist/{compass-B7Ua__ME.js → compass-CKpEE3QF.js} +1 -1
- package/dist/{copy-CwqmRN0X.js → copy-BGAVbyLK.js} +1 -1
- package/dist/{core-HN_b3jpG.js → core-UMj0YuPY.js} +6124 -4570
- package/dist/{cursor-CZUzCZDa.js → cursor-CdRK37lV.js} +1 -1
- package/dist/{cursor-transparent-C-iNJp5e.js → cursor-transparent-DCtZPn6M.js} +1 -1
- package/dist/{desktop-CKvUvwiO.js → desktop-BpmiexI7.js} +1 -1
- package/dist/{disconnect-Baq1ttCe.js → disconnect-CmRL6rxR.js} +1 -1
- package/dist/{discord-D8jJPT-u.js → discord-CgA8etyT.js} +1 -1
- package/dist/{down-CbXkinMO.js → down-veMPztmj.js} +2 -2
- package/dist/{etherscan-DmvsfmlR.js → etherscan-B0Iz4J9k.js} +1 -1
- package/dist/{exclamation-triangle-B5sVL0Op.js → exclamation-triangle-Box_8laE.js} +1 -1
- package/dist/{extension-DTURW9PD.js → extension-CT5kynXr.js} +1 -1
- package/dist/{external-link-BhiyYwAM.js → external-link-BmAqCUs9.js} +1 -1
- package/dist/{facebook-BKU8pCSU.js → facebook-CzlMPtlk.js} +1 -1
- package/dist/{farcaster-aPuBoT-f.js → farcaster-Z3KYAnFk.js} +1 -1
- package/dist/{filters-Dhcy_bWD.js → filters-CVtviD0v.js} +1 -1
- package/dist/{getChainIds-hFBaLC3P.js → getChainIds-DDKgS0TA.js} +2 -2
- package/dist/{getCosmosAddress-wW2QvGf4.js → getCosmosAddress-D-BxI1sZ.js} +2640 -2576
- package/dist/{github-DpOcHBpK.js → github-KjnPjzGN.js} +1 -1
- package/dist/{google-Dlr5X4XZ.js → google-CnyCazMS.js} +1 -1
- package/dist/{hamburger-CbTP1z8e.js → hamburger-DkyOLKDt.js} +5 -5
- package/dist/{help-circle-DfsreI1-.js → help-circle-BoN3xTWx.js} +1 -1
- package/dist/{id-CgVrDv4g.js → id-tq8aEw5U.js} +1 -1
- package/dist/{image-BgZMfISb.js → image-DBC1q2_n.js} +1 -1
- package/dist/{index-D-h2D2T4.js → index-37soHOzC.js} +2 -2
- package/dist/{index-BzlNNUJC.js → index-B6Hd7MNh.js} +211 -207
- package/dist/{index-Doq8prid.js → index-BMJemt0T.js} +1 -1
- package/dist/{index-DEzMTwnP.js → index-BnfXeC9U.js} +11 -11
- package/dist/{index-Dfnahm9u.js → index-BrUFU9w4.js} +4 -4
- package/dist/{index-W17Yun1B.js → index-C57ebjbd.js} +78 -78
- package/dist/{index-CQef3aFT.js → index-CrdvyxIs.js} +5 -5
- package/dist/{index-BNAc3BNQ.js → index-Dq-7CifU.js} +260 -259
- package/dist/{index-CzIE4OVR.js → index-DwgdKTri.js} +1 -1
- package/dist/{index-cmkdh21h.js → index-nbo2VFYc.js} +4 -4
- package/dist/{index-ij8WLtCK.js → index-u8Ded5qw.js} +10 -10
- package/dist/index.es-CXA8FwxC.js +14904 -0
- package/dist/{index.es-DznYPOeF.js → index.es-CwOZPtUM.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{info-CZQMmcBD.js → info-B-ADkq2O.js} +1 -1
- package/dist/{info-circle-CA3WSSRD.js → info-circle-CzjFim13.js} +1 -1
- package/dist/{lightbulb-8ISYXfUt.js → lightbulb-BzGUazBJ.js} +1 -1
- package/dist/{mail-CHIth09p.js → mail-CEB7w3xW.js} +1 -1
- package/dist/{mobile-CrFtClXb.js → mobile-D2As9Lxy.js} +1 -1
- package/dist/{more-mHern-4V.js → more-B3qgSPHK.js} +1 -1
- package/dist/{network-placeholder-CoODkTLk.js → network-placeholder-D3v1VNVd.js} +1 -1
- package/dist/{nftPlaceholder-CG7DC4DT.js → nftPlaceholder-7uzR-QgE.js} +1 -1
- package/dist/{off-CrgcN-zp.js → off-B5fhwDTB.js} +1 -1
- package/dist/{play-store-CQP9kqkp.js → play-store-fmnI2qeP.js} +1 -1
- package/dist/{plus-DHA7xDuc.js → plus-BPrwB2BV.js} +1 -1
- package/dist/{qr-code-zibhnzKq.js → qr-code-DRh63vJj.js} +1 -1
- package/dist/{recycle-horizontal-DywyCULr.js → recycle-horizontal-DGw86E5g.js} +1 -1
- package/dist/{refresh-e2GocWQK.js → refresh-Dg7iaYhB.js} +1 -1
- package/dist/{reown-logo-BU64qOXz.js → reown-logo-tiOXXURu.js} +1 -1
- package/dist/{search-DzxpvkH-.js → search-eG23Hr6c.js} +1 -1
- package/dist/{send-r9Pjl4vo.js → send-BOwE6eLM.js} +1 -1
- package/dist/{swapHorizontal-BTrXWq48.js → swapHorizontal-ywv205Wi.js} +1 -1
- package/dist/{swapHorizontalBold-CJqWkgp6.js → swapHorizontalBold-CzmBehA5.js} +1 -1
- package/dist/{swapHorizontalMedium-DX7hDgRK.js → swapHorizontalMedium-BLbLZusS.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-C51tXWKa.js → swapHorizontalRoundedBold-N_SHWa3r.js} +1 -1
- package/dist/{swapVertical-Crddwuzr.js → swapVertical-EAZRQhGp.js} +1 -1
- package/dist/{telegram-BC6rpZd8.js → telegram-n36fCk1z.js} +1 -1
- package/dist/{three-dots-DC9iZV71.js → three-dots-0tBgmH4A.js} +1 -1
- package/dist/{twitch-Dqthmddu.js → twitch-BhZ8ahtd.js} +1 -1
- package/dist/{twitterIcon-DIWxOs67.js → twitterIcon-DfNmxt1B.js} +1 -1
- package/dist/{unsupportedProp-BW6bMgdV.js → unsupportedProp-D3sAzZYG.js} +1 -1
- package/dist/{useRegisterError-D0oAcJrb.js → useRegisterError-Bo2lp0sa.js} +3 -2
- package/dist/{verify-GrViE51Y.js → verify-CWXFpftr.js} +1 -1
- package/dist/{verify-filled-Cws_QO3X.js → verify-filled-DP3y-Kx3.js} +1 -1
- package/dist/{w3m-modal-n7hzVP_I.js → w3m-modal-CwwnoSKf.js} +2 -2
- package/dist/{wallet-Cd1ruTUh.js → wallet-pQYrlhSS.js} +1 -1
- package/dist/{wallet-placeholder-Ce4gGswZ.js → wallet-placeholder-CFNKM5lP.js} +1 -1
- package/dist/{walletconnect-CqpJhu9-.js → walletconnect-CAtjZJiV.js} +1 -1
- package/dist/{warning-circle-DQ6ZS1NO.js → warning-circle-BOE2EoE9.js} +1 -1
- package/dist/widget.css +1 -1
- package/dist/{x-CR749er2.js → x-BqcRzM19.js} +1 -1
- package/package.json +1 -1
- package/dist/EstGas-w0MeYkJr.js +0 -1574
- package/dist/index.es-C8qSCFHh.js +0 -13234
@@ -1,18 +1,18 @@
|
|
1
1
|
import { jsxs as p, jsx as e, Fragment as J } from "react/jsx-runtime";
|
2
|
-
import
|
3
|
-
import { B as
|
4
|
-
import { u as c, l as pe, a as
|
5
|
-
import { C as
|
6
|
-
import { useQuery as
|
7
|
-
import { useAccount as
|
8
|
-
import { useDynamicContext as
|
9
|
-
import { S as
|
10
|
-
import { u as
|
11
|
-
import { useAccount as Oe, useStargateClient as
|
12
|
-
import { S as
|
13
|
-
import { R as
|
14
|
-
import { C as
|
15
|
-
function
|
2
|
+
import ce, { useState as v, useEffect as j, useRef as L1, Suspense as e1 } from "react";
|
3
|
+
import { B as P1, i as Ee, u as Te, F as t1, f as $e, C as Se, W as c1 } from "./useRegisterError-Bo2lp0sa.js";
|
4
|
+
import { u as c, l as pe, a as ze, c as _e, S as F1, M as M1 } from "./index-B6Hd7MNh.js";
|
5
|
+
import { C as n1, M as E1, g as r1 } from "./getChainIds-DDKgS0TA.js";
|
6
|
+
import { useQuery as l1 } from "@tanstack/react-query";
|
7
|
+
import { useAccount as fe, useConnect as O1, useConnections as R1, useBalance as $1 } from "wagmi";
|
8
|
+
import { useDynamicContext as Ie, useIsLoggedIn as S1 } from "@dynamic-labs/sdk-react-core";
|
9
|
+
import { S as _1 } from "./shareicon-CG3v7iKI.js";
|
10
|
+
import { u as z1, B as V1 } from "./index-37soHOzC.js";
|
11
|
+
import { useAccount as Oe, useStargateClient as b1, useSuggestChainAndConnect as Z1, WalletType as H1 } from "graz";
|
12
|
+
import { S as G1, D as K1 } from "./down-veMPztmj.js";
|
13
|
+
import { R as J1 } from "./index-CDq3vNnP.js";
|
14
|
+
import { C as Ve, P as de, u as q1, g as s1 } from "./getCosmosAddress-D-BxI1sZ.js";
|
15
|
+
function d1({ fill: t }) {
|
16
16
|
return /* @__PURE__ */ p(
|
17
17
|
"svg",
|
18
18
|
{
|
@@ -46,7 +46,7 @@ function b1({ fill: t }) {
|
|
46
46
|
}
|
47
47
|
);
|
48
48
|
}
|
49
|
-
function
|
49
|
+
function X1({ data: t, handleBack: n, handleSetChainData: s, network: o }) {
|
50
50
|
const [r, l] = v(t), [b, d] = v(""), { tick: i, defaultCoin: g } = Ee;
|
51
51
|
return /* @__PURE__ */ p("div", { children: [
|
52
52
|
/* @__PURE__ */ p("div", { className: "bw-flex bw-relative bw-justify-center bw-mb-2", children: [
|
@@ -57,7 +57,7 @@ function J1({ data: t, handleBack: n, handleSetChainData: s, network: o }) {
|
|
57
57
|
n();
|
58
58
|
},
|
59
59
|
className: "bw-absolute bw-left-0 bw-top-[25%]",
|
60
|
-
children: /* @__PURE__ */ e(
|
60
|
+
children: /* @__PURE__ */ e(P1, { 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" })
|
@@ -84,7 +84,7 @@ function J1({ data: t, handleBack: n, handleSetChainData: s, network: o }) {
|
|
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(d1, { fill: "var(--tw-background-secondary)" }) })
|
88
88
|
]
|
89
89
|
}
|
90
90
|
),
|
@@ -119,19 +119,19 @@ function J1({ data: t, handleBack: n, handleSetChainData: s, network: o }) {
|
|
119
119
|
}) })
|
120
120
|
] });
|
121
121
|
}
|
122
|
-
const
|
123
|
-
gradientbackground:
|
124
|
-
overlay:
|
122
|
+
const Q1 = "_gradientbackground_7x8s8_1", U1 = "_overlay_7x8s8_5", o1 = {
|
123
|
+
gradientbackground: Q1,
|
124
|
+
overlay: U1
|
125
125
|
};
|
126
|
-
function
|
126
|
+
function Y1(t) {
|
127
127
|
let n = t.match(/[1-9A-HJ-NP-Za-km-z]{32,44}/);
|
128
128
|
return t.slice(0, 2) === "0x" ? !0 : n ? t == n : !1;
|
129
129
|
}
|
130
|
-
function
|
130
|
+
function W1(t) {
|
131
131
|
const [n, s] = v({}), o = c((i) => i.cosmosChainIds), { data: r } = Oe({
|
132
132
|
chainId: o,
|
133
133
|
multiChain: !0
|
134
|
-
}), l = c((i) => i.fromChain), { data: b } =
|
134
|
+
}), l = c((i) => i.fromChain), { data: b } = b1({
|
135
135
|
chainId: [(t == null ? void 0 : t.chainId) || l.chainId],
|
136
136
|
multiChain: !0
|
137
137
|
});
|
@@ -146,7 +146,7 @@ function U1(t) {
|
|
146
146
|
((t == null ? void 0 : t.networkType) == "cosmos" || (l == null ? void 0 : l.networkType) == "cosmos") && d((t == null ? void 0 : t.chainId) || (l == null ? void 0 : l.chainId));
|
147
147
|
}, [b, l, t]), { cosmosBalance: n };
|
148
148
|
}
|
149
|
-
function
|
149
|
+
function w1(t) {
|
150
150
|
let n = t.split("/");
|
151
151
|
if (n.length > 1) {
|
152
152
|
let s = n[1].toUpperCase();
|
@@ -154,7 +154,7 @@ function d1(t) {
|
|
154
154
|
} else
|
155
155
|
return t;
|
156
156
|
}
|
157
|
-
function
|
157
|
+
function D1({ fill: t }) {
|
158
158
|
return /* @__PURE__ */ p(
|
159
159
|
"svg",
|
160
160
|
{
|
@@ -189,7 +189,7 @@ function Y1({ fill: t }) {
|
|
189
189
|
}
|
190
190
|
);
|
191
191
|
}
|
192
|
-
function
|
192
|
+
function et({ selectedChain: t }) {
|
193
193
|
return /* @__PURE__ */ p("div", { className: "bw-h-[100%] bw-flex bw-flex-col bw-justify-center bw-items-center", children: [
|
194
194
|
/* @__PURE__ */ e("div", { className: "bw-flex bw-justify-center bw-items-center", children: /* @__PURE__ */ p("div", { className: "bw-relative", children: [
|
195
195
|
t != null && t.image ? /* @__PURE__ */ e(
|
@@ -200,7 +200,7 @@ function W1({ selectedChain: t }) {
|
|
200
200
|
alt: "chain"
|
201
201
|
}
|
202
202
|
) : /* @__PURE__ */ e(J, {}),
|
203
|
-
/* @__PURE__ */ e("div", { className: "bw-absolute bw-bg-background-container -bw-bottom-2 -bw-right-2 bw-flex bw-items-center bw-justify-center bw-rounded-full bw-border bw-border-border-primary bw-w-[44px] bw-h-[44px]", children: /* @__PURE__ */ e(
|
203
|
+
/* @__PURE__ */ e("div", { className: "bw-absolute bw-bg-background-container -bw-bottom-2 -bw-right-2 bw-flex bw-items-center bw-justify-center bw-rounded-full bw-border bw-border-border-primary bw-w-[44px] bw-h-[44px]", children: /* @__PURE__ */ e(D1, { fill: "var(--tw-text-secondary)" }) })
|
204
204
|
] }) }),
|
205
205
|
/* @__PURE__ */ p("h2", { className: "bw-text-base bw-text-center bw-mt-3 bw-font-bold bw-text-text-primary", children: [
|
206
206
|
"No Tokens found on ",
|
@@ -214,84 +214,84 @@ function W1({ selectedChain: t }) {
|
|
214
214
|
] })
|
215
215
|
] });
|
216
216
|
}
|
217
|
-
const
|
218
|
-
var
|
217
|
+
const tt = ce.memo(function({ selectChainState: n, value: s, handleClosePopup: o, showExchangeList: r, setCoinData: l, setChainData: b }) {
|
218
|
+
var je, Le;
|
219
219
|
c((u) => u.searchCustomCoin);
|
220
|
-
const d = c((u) => u.setSearchCustomCoin), { ref: i, inView: g } =
|
221
|
-
|
222
|
-
const m = x(n), I = c((u) => u.fromChain), y = c((u) => u.fromCoin), S = c((u) => u.toChain), _ = c((u) => u.toCoin), [
|
220
|
+
const d = c((u) => u.setSearchCustomCoin), { ref: i, inView: g } = z1(), { getWallet: x } = Te({}), { connected: k, address: B } = ze(), { isConnected: M, address: F } = fe(), { primaryWallet: h } = Ie();
|
221
|
+
S1();
|
222
|
+
const m = x(n), I = c((u) => u.fromChain), y = c((u) => u.fromCoin), S = c((u) => u.toChain), _ = c((u) => u.toCoin), [te, E] = v(!1), { cosmosBalance: G } = W1(n), { defaultCoin: O } = Ee, [z, f] = v(0), C = L1(null), { data: P } = Oe({
|
223
223
|
chainId: [n.chainId],
|
224
224
|
multiChain: !0
|
225
|
-
}),
|
225
|
+
}), Z = (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" && B || (n == null ? void 0 : n.networkType) === "cosmos" && ((je = P == null ? void 0 : P[n == null ? void 0 : n.chainId]) == null ? void 0 : je.bech32Address), $ = c((u) => u.toDisconnect);
|
226
226
|
c((u) => u.setToDisconnect);
|
227
|
-
const w = c((u) => u.customWallet), T = c((u) => u.setCustomWallet), A = c((u) => u.tokens), [L, N] = v([]), [R,
|
227
|
+
const w = c((u) => u.customWallet), T = c((u) => u.setCustomWallet), A = c((u) => u.tokens), [L, N] = v([]), [R, re] = v([]), [Be, W] = v([]), H = A, U = l1({
|
228
228
|
queryKey: ["balance", m == null ? void 0 : m.address, n],
|
229
229
|
queryFn: async () => await (await _e.fetchBalance(m.address, n.chainId)).json(),
|
230
|
-
enabled: !!((
|
230
|
+
enabled: !!((Le = m == null ? void 0 : m.address) != null && Le.length && n.chainId),
|
231
231
|
refetchOnWindowFocus: !1
|
232
232
|
});
|
233
|
-
function
|
234
|
-
var
|
235
|
-
let D =
|
236
|
-
return u.networkType == "cosmos" ? $e(((
|
233
|
+
function V(u) {
|
234
|
+
var ne, le, se, oe, K, q, ae, ee, Y, ge, X, Q;
|
235
|
+
let D = w1(u.address);
|
236
|
+
return u.networkType == "cosmos" ? $e(((ne = G == null ? void 0 : G[D]) == null ? void 0 : ne.amount) / Math.pow(10, u.decimals) || 0) || "" : $e((((q = (K = (oe = (se = (le = U.data) == null ? void 0 : le.data) == null ? void 0 : se[n == null ? void 0 : n.networkType]) == null ? void 0 : oe[n.chainId]) == null ? void 0 : K[u.address]) == null ? void 0 : q.balance) || 0) / Math.pow(10, ((Q = (X = (ge = (Y = (ee = (ae = U.data) == null ? void 0 : ae.data) == null ? void 0 : ee[n == null ? void 0 : n.networkType]) == null ? void 0 : Y[n.chainId]) == null ? void 0 : ge[u.address]) == null ? void 0 : X.asset) == null ? void 0 : Q.decimals) || 0) || 0) || "";
|
237
237
|
}
|
238
238
|
j(() => {
|
239
|
-
s.length > 40 &&
|
239
|
+
s.length > 40 && Y1(s) && !R.length ? (E(!0), d({
|
240
240
|
chainId: n.chainId,
|
241
241
|
address: s
|
242
242
|
})) : s.length || (E(!1), d({ chainId: "", address: "" }));
|
243
243
|
}, [s, R]), j(() => {
|
244
244
|
f(0);
|
245
245
|
}, [s]);
|
246
|
-
function
|
247
|
-
f(0),
|
246
|
+
function Ae() {
|
247
|
+
f(0), re([]), C.current.scrollTo(0, 0);
|
248
248
|
}
|
249
249
|
j(() => {
|
250
250
|
var u, D;
|
251
|
-
|
252
|
-
}, [
|
253
|
-
|
251
|
+
H != null && H.isSuccess && (n != null && n.chainId) && N(((D = (u = H == null ? void 0 : H.data) == null ? void 0 : u.data) == null ? void 0 : D[n == null ? void 0 : n.chainId]) || []);
|
252
|
+
}, [H, n.chainId]), j(() => {
|
253
|
+
Ae();
|
254
254
|
}, [n.chainId]);
|
255
|
-
function
|
255
|
+
function ve() {
|
256
256
|
var oe;
|
257
|
-
let u = (oe = L == null ? void 0 : L.filter((
|
258
|
-
var
|
259
|
-
return ((
|
260
|
-
})) == null ? void 0 : oe.sort((
|
261
|
-
if (
|
262
|
-
}), D = 20,
|
263
|
-
|
257
|
+
let u = (oe = L == null ? void 0 : L.filter((K) => {
|
258
|
+
var q, ae, ee, Y;
|
259
|
+
return ((q = K.name) == null ? void 0 : q.toLowerCase().includes(s == null ? void 0 : s.toLowerCase())) || ((ae = K.symbol) == null ? void 0 : ae.toLowerCase().includes(s == null ? void 0 : s.toLowerCase())) || ((Y = (ee = K.address) == null ? void 0 : ee.toLowerCase()) == null ? void 0 : Y.includes(s == null ? void 0 : s.toLowerCase()));
|
260
|
+
})) == null ? void 0 : oe.sort((K, q) => {
|
261
|
+
if (Z) return V(q) * q.lastPrice - V(K) * K.lastPrice;
|
262
|
+
}), D = 20, ne = z * D, le = ne + D, se = u.slice(ne, le);
|
263
|
+
z == 0 ? re([...se]) : re([...R, ...se]);
|
264
264
|
}
|
265
265
|
return j(() => {
|
266
|
-
L != null && L.length &&
|
267
|
-
}, [L, s,
|
266
|
+
L != null && L.length && ve();
|
267
|
+
}, [L, s, z, Z, G, U.data]), j(() => {
|
268
268
|
g && f((u) => u + 1);
|
269
|
-
}, [g]), /* @__PURE__ */ e("div", { ref: C, className: " bw-pr-2 bw-h-[380px] bw-mt-2 bw-overflow-y-auto", children: R && (R == null ? void 0 : R.length) > 0 ? R == null ? void 0 : R.map((u, D,
|
270
|
-
var
|
269
|
+
}, [g]), /* @__PURE__ */ e("div", { ref: C, className: " bw-pr-2 bw-h-[380px] bw-mt-2 bw-overflow-y-auto", children: R && (R == null ? void 0 : R.length) > 0 ? R == null ? void 0 : R.map((u, D, ne) => {
|
270
|
+
var le, se, oe, K, q, ae;
|
271
271
|
return /* @__PURE__ */ p(
|
272
272
|
"div",
|
273
273
|
{
|
274
|
-
ref:
|
274
|
+
ref: ne.length >= 20 && ne.length - 1 === D ? i : null,
|
275
275
|
className: `bw-py-2
|
276
276
|
${r == "from" && _._id !== u._id || r == "to" && y._id !== u._id, ""}
|
277
277
|
bw-flex bw-items-center bw-justify-between bw-cursor-pointer bw-border-b bw-border-border-primary
|
278
278
|
|
279
279
|
}`,
|
280
280
|
onClick: async () => {
|
281
|
-
var
|
281
|
+
var Y, ge, X, Q, xe, be, ke, ie, we, Pe, Ne;
|
282
282
|
let ee = {
|
283
283
|
// ...coinData,
|
284
284
|
coin: u.symbol,
|
285
285
|
...u,
|
286
|
-
availBal: ((
|
286
|
+
availBal: ((xe = (Q = (X = (ge = (Y = U.data) == null ? void 0 : Y.data) == null ? void 0 : ge[n == null ? void 0 : n.networkType]) == null ? void 0 : X[n.chainId]) == null ? void 0 : Q[u.address.toLowerCase()]) == null ? void 0 : xe.balance) / Math.pow(10, ((Ne = (Pe = (we = (ie = (ke = (be = U.data) == null ? void 0 : be.data) == null ? void 0 : ke[n == null ? void 0 : n.networkType]) == null ? void 0 : ie[n == null ? void 0 : n.chainId]) == null ? void 0 : we[u.address.toLowerCase()]) == null ? void 0 : Pe.asset) == null ? void 0 : Ne.decimals) || 0)
|
287
287
|
};
|
288
288
|
l(ee), b(n), o(n, ee), (n == null ? void 0 : n.networkType) === (S == null ? void 0 : S.networkType) || (n == null || n.networkType, I == null || I.networkType, T(""));
|
289
289
|
},
|
290
290
|
children: [
|
291
291
|
/* @__PURE__ */ p("div", { className: "bw-flex bw-items-center bw-justify-center bw-w-max bw-gap-x-2", children: [
|
292
|
-
/* @__PURE__ */ p("div", { className: `bw-relative bw-rounded-[50%] bw-w-[30px] bw-h-[30px] ${(
|
292
|
+
/* @__PURE__ */ p("div", { className: `bw-relative bw-rounded-[50%] bw-w-[30px] bw-h-[30px] ${(le = u.image) != null && le.length ? "bw-bg-background-secondary" : ""}`, children: [
|
293
293
|
(se = u.image) != null && se.length ? /* @__PURE__ */ e("img", { src: u.image, className: "bw-rounded-[50%] bw-max-w-[30px] bw-max-h-[30px] bw-object-contain", width: 30, height: 30, alt: "img" }) : /* @__PURE__ */ e("img", { src: O, className: "bw-rounded-[50%]", width: 30, height: 30, alt: "img" }),
|
294
|
-
(oe = n == null ? void 0 : n.image) != null && oe.length ? /* @__PURE__ */ e("img", { src: n.image, className: `bw-absolute ${(
|
294
|
+
(oe = n == null ? void 0 : n.image) != null && oe.length ? /* @__PURE__ */ e("img", { src: n.image, className: `bw-absolute ${(K = n == null ? void 0 : n.image) != null && K.length ? "bw-bg-background-secondary" : ""} bw-right-0 bw-max-w-[16px] bw-max-h-[16px] bw-object-contain bw-bottom-[-4px] bw-border bw-border-border-primary bw-rounded-[50%]`, width: 16, height: 16, alt: "img" }) : /* @__PURE__ */ e("img", { src: O, className: "bw-absolute bw-bg-background-secondary bw-right-0 bw-bottom-[-4px] bw-border bw-border-border-primary bw-rounded-[50%]", width: 16, height: 16, alt: "img" })
|
295
295
|
] }),
|
296
296
|
/* @__PURE__ */ p("div", { children: [
|
297
297
|
/* @__PURE__ */ p("p", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: [
|
@@ -308,35 +308,35 @@ const D1 = de.memo(function({ selectChainState: n, value: s, handleClosePopup: o
|
|
308
308
|
/* @__PURE__ */ e(
|
309
309
|
"a",
|
310
310
|
{
|
311
|
-
href: (
|
311
|
+
href: (ae = (q = n.explorer) == null ? void 0 : q.token) == null ? void 0 : ae.replace("{tokenAddress}", u.address),
|
312
312
|
target: "_blank",
|
313
313
|
onClick: (ee) => {
|
314
314
|
ee.stopPropagation();
|
315
315
|
},
|
316
316
|
className: "hover:bw-opacity-70",
|
317
|
-
children: /* @__PURE__ */ e(
|
317
|
+
children: /* @__PURE__ */ e(_1, { fill: "var(--tw-text-secondary)" })
|
318
318
|
}
|
319
319
|
)
|
320
320
|
] })
|
321
321
|
] })
|
322
322
|
] })
|
323
323
|
] }),
|
324
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("p", { className: "bw-text-sm bw-text-right bw-font-medium bw-text-text-primary", children: r === "to" && w && ((w == null ? void 0 : w.length) > 30 || $) ? /* @__PURE__ */ e(J, {}) :
|
324
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("p", { className: "bw-text-sm bw-text-right bw-font-medium bw-text-text-primary", children: r === "to" && w && ((w == null ? void 0 : w.length) > 30 || $) ? /* @__PURE__ */ e(J, {}) : U.isFetching ? /* @__PURE__ */ e(Se, { size: 12, thickness: 4, color: "inherit" }) : Z ? V(u) > 0 ? /* @__PURE__ */ p(J, { children: [
|
325
325
|
/* @__PURE__ */ e(
|
326
|
-
|
326
|
+
t1,
|
327
327
|
{
|
328
|
-
value:
|
328
|
+
value: V(u) || "",
|
329
329
|
options: {
|
330
330
|
maxDecimals: 10
|
331
331
|
}
|
332
332
|
}
|
333
333
|
),
|
334
|
-
/* @__PURE__ */ e("p", { className: "bw-text-text-secondary bw-font-normal bw-text-xs", children:
|
334
|
+
/* @__PURE__ */ e("p", { className: "bw-text-text-secondary bw-font-normal bw-text-xs", children: V(u) * u.lastPrice > 0 ? /* @__PURE__ */ p(J, { children: [
|
335
335
|
"$",
|
336
336
|
/* @__PURE__ */ e(
|
337
|
-
|
337
|
+
t1,
|
338
338
|
{
|
339
|
-
value: $e(
|
339
|
+
value: $e(V(u) * u.lastPrice),
|
340
340
|
options: {
|
341
341
|
maxDecimals: 10
|
342
342
|
}
|
@@ -348,16 +348,16 @@ const D1 = de.memo(function({ selectChainState: n, value: s, handleClosePopup: o
|
|
348
348
|
},
|
349
349
|
D
|
350
350
|
);
|
351
|
-
}) :
|
351
|
+
}) : te && !(A.isLoading && A.isFetching) ? /* @__PURE__ */ e(et, { selectedChain: n }) : !s.length && /* @__PURE__ */ e("div", { className: "bw-w-full bw-flex bw-justify-center bw-mt-4 bw-text-text-primary", children: /* @__PURE__ */ e(Se, { color: "inherit", size: 30 }) }) });
|
352
352
|
});
|
353
|
-
function
|
354
|
-
var f, C, P,
|
353
|
+
function nt({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coinData: r, showExchangeList: l, fetchChains: b }) {
|
354
|
+
var f, C, P, Z, $;
|
355
355
|
const [d, i] = v(!1), [g, x] = v(""), k = c((w) => w.tokens), [B, M] = v([]), [F, h] = v(0), [m, I] = v({ chain: "" }), y = c((w) => w.gradient), S = c((w) => w.configuration), _ = c((w) => w.chainObj);
|
356
356
|
j(() => {
|
357
357
|
var w, T, A, L;
|
358
358
|
if ((T = (w = b.data) == null ? void 0 : w.data) != null && T.length) {
|
359
|
-
let N = [...(L = (A = b.data) == null ? void 0 : A.data) == null ? void 0 : L.slice(0, 9)], R = N.findIndex((
|
360
|
-
N.splice(R, 1, _[80094] || {}), N.splice(
|
359
|
+
let N = [...(L = (A = b.data) == null ? void 0 : A.data) == null ? void 0 : L.slice(0, 9)], R = N.findIndex((V) => V.chainId === "137"), re = N.findIndex((V) => V.chainId === "324"), Be = N.findIndex((V) => V.chainId === "10"), W = N.findIndex((V) => V.chainId === "43114");
|
360
|
+
N.splice(R, 1, _[80094] || {}), N.splice(re, 1, _[2741] || {}), N.splice(Be, 1, _["eclipse-svm"] || {}), N.splice(W, 1, _[999] || {}), !!pe.keyBy(N, "chainId")[m.chainId] || (N.pop(), N.push(m)), M(N);
|
361
361
|
}
|
362
362
|
}, [_, (f = b.data) == null ? void 0 : f.data, o, m]), j(() => {
|
363
363
|
I(o);
|
@@ -368,18 +368,18 @@ function et({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coi
|
|
368
368
|
h(L.length);
|
369
369
|
}
|
370
370
|
}, [(C = b.data) == null ? void 0 : C.data]);
|
371
|
-
function
|
371
|
+
function te(w, T) {
|
372
372
|
var A, L;
|
373
373
|
(A = w.chain) != null && A.length && ((L = T == null ? void 0 : T.coin) != null && L.length) && s();
|
374
374
|
}
|
375
375
|
function E() {
|
376
376
|
i(!1);
|
377
377
|
}
|
378
|
-
function
|
378
|
+
function G(w) {
|
379
379
|
I(w), x("");
|
380
380
|
}
|
381
|
-
const { tick: O, defaultCoin:
|
382
|
-
return d ? /* @__PURE__ */ e(
|
381
|
+
const { tick: O, defaultCoin: z } = Ee;
|
382
|
+
return d ? /* @__PURE__ */ e(X1, { handleSetChainData: G, data: (P = b.data) == null ? void 0 : P.data, handleBack: E, network: m }) : /* @__PURE__ */ p(J, { children: [
|
383
383
|
/* @__PURE__ */ p("div", { children: [
|
384
384
|
/* @__PURE__ */ p("div", { className: "bw-flex bw-relative bw-justify-center bw-mb-2", children: [
|
385
385
|
/* @__PURE__ */ e(
|
@@ -389,7 +389,7 @@ function et({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coi
|
|
389
389
|
s(), (!r.coin.length || !o.chain.length) && (n({ coin: "" }), t({ chain: "" }));
|
390
390
|
},
|
391
391
|
className: "bw-absolute bw-left-0 bw-top-[25%]",
|
392
|
-
children: /* @__PURE__ */ e(
|
392
|
+
children: /* @__PURE__ */ e(n1, { fill: "var(--tw-text-secondary)" })
|
393
393
|
}
|
394
394
|
),
|
395
395
|
/* @__PURE__ */ p("div", { className: "bw-text-base bw-font-normal bw-text-text-secondary", children: [
|
@@ -397,7 +397,7 @@ function et({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coi
|
|
397
397
|
" Network"
|
398
398
|
] })
|
399
399
|
] }),
|
400
|
-
b.isLoading ? /* @__PURE__ */ e(
|
400
|
+
b.isLoading ? /* @__PURE__ */ e(F1, { 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__ */ p("div", { className: "bw-grid bw-grid-cols-5 bw-gap-1 bw-overflow-y-auto bw-w-full", children: [
|
401
401
|
b.isSuccess && B.map((w, T) => {
|
402
402
|
var A, L;
|
403
403
|
return /* @__PURE__ */ e(
|
@@ -406,7 +406,7 @@ function et({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coi
|
|
406
406
|
style: m.name == w.name ? {
|
407
407
|
...S.gradientStyle
|
408
408
|
} : {},
|
409
|
-
className: ` bw-relative ${m.name == w.name ? (y ||
|
409
|
+
className: ` bw-relative ${m.name == w.name ? (y || o1.gradientbackground) + " " + o1.overlay : "bw-bg-transparent"} bw-p-[2px] bw-h-max bw-rounded-[7px]`,
|
410
410
|
children: /* @__PURE__ */ p(
|
411
411
|
"div",
|
412
412
|
{
|
@@ -416,12 +416,12 @@ function et({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coi
|
|
416
416
|
...w
|
417
417
|
// networkType: "cosmos",
|
418
418
|
};
|
419
|
-
|
419
|
+
G(N);
|
420
420
|
},
|
421
421
|
className: "bw-p-2 bw-w-full bw-aspect-video bw-relative bw-z-10 bw-bg-background-networkcard bw-rounded-md bw-flex bw-flex-col bw-justify-center bw-items-center",
|
422
422
|
style: { cursor: "pointer" },
|
423
423
|
children: [
|
424
|
-
/* @__PURE__ */ e("img", { src: (A = w.image) != null && A.length ? w.image :
|
424
|
+
/* @__PURE__ */ e("img", { src: (A = w.image) != null && A.length ? w.image : z, width: 25, className: "bw-rounded-[50%] bw-border bw-border-border-primary", height: 25, alt: "img" }),
|
425
425
|
" ",
|
426
426
|
/* @__PURE__ */ e("p", { className: `bw-text-xs bw-text-center ${m.name == w.name ? "bw-text-text-primary bw-font-semibold" : "bw-text-text-primary bw-font-normal"}`, children: ((L = w.name) == null ? void 0 : L.length) > 7 ? w.name.substring(0, 7) + ".." : w.name }),
|
427
427
|
(m == null ? void 0 : m.chain) == w ? /* @__PURE__ */ e("img", { width: 10, height: 10, src: O }) : /* @__PURE__ */ e(J, {})
|
@@ -442,7 +442,7 @@ function et({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coi
|
|
442
442
|
className: "bw-p-2 bw-w-full bw-aspect-video bw-bg-background-networkcard bw-rounded-md bw-flex bw-flex-col bw-justify-center bw-items-center",
|
443
443
|
style: { cursor: "pointer" },
|
444
444
|
children: [
|
445
|
-
/* @__PURE__ */ e("p", { className: "bw-text-xl bw-font-medium bw-text-text-primary", children: ($ = (
|
445
|
+
/* @__PURE__ */ e("p", { className: "bw-text-xl bw-font-medium bw-text-text-primary", children: ($ = (Z = b.data) == null ? void 0 : Z.data) != null && $.length ? `+${F - 9}` : "0" }),
|
446
446
|
/* @__PURE__ */ e("p", { className: "bw-text-xs bw-font-normal bw-text-text-primary", children: "Networks" })
|
447
447
|
]
|
448
448
|
}
|
@@ -472,24 +472,24 @@ function et({ setChainData: t, setCoinData: n, handleReset: s, chainData: o, coi
|
|
472
472
|
placeholder: "Search Token Name or Contract Address"
|
473
473
|
}
|
474
474
|
),
|
475
|
-
/* @__PURE__ */ e("div", { className: "bw-absolute bw-right-2 bw-bg-background-container bw-top-[6px]", children: (k.isLoading || k.isFetching) && g.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(
|
475
|
+
/* @__PURE__ */ e("div", { className: "bw-absolute bw-right-2 bw-bg-background-container bw-top-[6px]", children: (k.isLoading || k.isFetching) && g.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(G1, {}) }) : g.length ? /* @__PURE__ */ e(
|
476
476
|
"button",
|
477
477
|
{
|
478
478
|
onClick: () => {
|
479
479
|
x("");
|
480
480
|
},
|
481
481
|
className: "bw-mt-1 bw-mr-1",
|
482
|
-
children: /* @__PURE__ */ e(
|
482
|
+
children: /* @__PURE__ */ e(n1, { fill: "var(--tw-text-primary)" })
|
483
483
|
}
|
484
|
-
) : /* @__PURE__ */ e(
|
484
|
+
) : /* @__PURE__ */ e(d1, { fill: "var(--tw-background-secondary)" }) })
|
485
485
|
]
|
486
486
|
}
|
487
487
|
),
|
488
|
-
/* @__PURE__ */ e(
|
488
|
+
/* @__PURE__ */ e(tt, { value: g, handleClosePopup: te, showExchangeList: l, setChainData: t, setCoinData: n, selectChainState: m })
|
489
489
|
] })
|
490
490
|
] });
|
491
491
|
}
|
492
|
-
function
|
492
|
+
function rt({
|
493
493
|
walletDetails: t,
|
494
494
|
handleToDisconnect: n,
|
495
495
|
show: s,
|
@@ -497,10 +497,10 @@ function tt({
|
|
497
497
|
handleShowWallet: r,
|
498
498
|
setConnectWalletField: l
|
499
499
|
}) {
|
500
|
-
const [b, d] = v(null), { address: i, chain: g, data: x, disconnect: k, ...B } = t, [M, F] = v(), { connector: h } =
|
500
|
+
const [b, d] = v(null), { address: i, chain: g, data: x, disconnect: k, ...B } = t, [M, F] = v(), { connector: h } = fe(), { connectors: m } = O1(), I = () => {
|
501
501
|
l(s), s == "to" ? (y(), n(!0)) : y();
|
502
502
|
};
|
503
|
-
|
503
|
+
R1(), j(() => {
|
504
504
|
m.length && F(
|
505
505
|
pe.keyBy(m, (S) => S.uid)
|
506
506
|
);
|
@@ -521,18 +521,18 @@ function tt({
|
|
521
521
|
/* @__PURE__ */ e(
|
522
522
|
"div",
|
523
523
|
{
|
524
|
-
children: /* @__PURE__ */ e(
|
524
|
+
children: /* @__PURE__ */ e(c1, { fill: "var(--tw-text-secondary)" })
|
525
525
|
}
|
526
526
|
)
|
527
527
|
] }) : /* @__PURE__ */ e("div", { className: "bw-w-[10px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[10px]", children: /* @__PURE__ */ e(Se, { size: 10, thickness: 5, color: "inherit" }) })
|
528
528
|
}
|
529
529
|
) });
|
530
530
|
}
|
531
|
-
function
|
532
|
-
var I, y, S, _,
|
533
|
-
const b = c((f) => f.configuration), d = c((f) => f.customWallet), { isConnected: i, isConnecting: g, isReconnecting: x } =
|
534
|
-
|
535
|
-
const { defaultCoin: k } = Ee, { isAnyWalletConnected: B, getWallet: M } =
|
531
|
+
function a1({ chainData: t, setShowExchangeList: n, handleShowWallet: s, setConnectWalletField: o, coinData: r, show: l }) {
|
532
|
+
var I, y, S, _, te, E, G, O, z;
|
533
|
+
const b = c((f) => f.configuration), d = c((f) => f.customWallet), { isConnected: i, isConnecting: g, isReconnecting: x } = fe();
|
534
|
+
Ie();
|
535
|
+
const { defaultCoin: k } = Ee, { isAnyWalletConnected: B, getWallet: M } = Te({
|
536
536
|
chainData: t,
|
537
537
|
show: l
|
538
538
|
});
|
@@ -564,26 +564,26 @@ function o1({ chainData: t, setShowExchangeList: n, handleShowWallet: s, setConn
|
|
564
564
|
children: [
|
565
565
|
/* @__PURE__ */ p("div", { className: "bw-flex bw-min-w-[78px] bw-min-h-[28px] bw-items-center bw-gap-x-2", children: [
|
566
566
|
(S = r == null ? void 0 : r.coin) != null && S.length ? /* @__PURE__ */ e("p", { className: "bw-text-xl bw-font-bold bw-text-text-primary", children: r.coin }) : /* @__PURE__ */ e("p", { className: "bw-text-sm bw-text-text-primary bw-font-bold", children: "Select Token" }),
|
567
|
-
/* @__PURE__ */ e(
|
567
|
+
/* @__PURE__ */ e(K1, { fill: (_ = r == null ? void 0 : r.coin) != null && _.length ? "var(--tw-text-primary)" : "var(--tw-text-secondary)" })
|
568
568
|
] }),
|
569
|
-
(
|
569
|
+
(te = t == null ? void 0 : t.chain) != null && te.length ? /* @__PURE__ */ e("p", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: `on ${t.chain}`.length > 12 ? `on ${t.chain.substring(0, 12)}..` : `on ${t.chain}` }) : /* @__PURE__ */ e("p", { className: "bw-text-sm bw-font-bold bw-text-text-primary", children: "& Chain" })
|
570
570
|
]
|
571
571
|
}
|
572
572
|
)
|
573
573
|
]
|
574
574
|
}
|
575
575
|
),
|
576
|
-
/* @__PURE__ */ e(
|
576
|
+
/* @__PURE__ */ e(st, { isConnected: l == "to" ? (F == null ? void 0 : F.networkType) === (h == null ? void 0 : h.networkType) ? !!((G = (E = M(F)) == null ? void 0 : E.address) != null && G.length || (d == null ? void 0 : d.length) > 30) : !!((z = (O = M(h)) == null ? void 0 : O.address) != null && z.length || (d == null ? void 0 : d.length) > 30) : B, setConnectWalletField: o, handleShowWallet: s, show: l, chainData: t, handleToDisconnect: m })
|
577
577
|
] });
|
578
578
|
}
|
579
|
-
function
|
579
|
+
function st({ isConnected: t, setConnectWalletField: n, handleShowWallet: s, show: o, chainData: r, handleToDisconnect: l }) {
|
580
580
|
var x;
|
581
|
-
const b = c((k) => k.customWallet), d = c((k) => k.fromChain), i = c((k) => k.toChain), { getWallet: g } =
|
581
|
+
const b = c((k) => k.customWallet), d = c((k) => k.fromChain), i = c((k) => k.toChain), { getWallet: g } = Te({
|
582
582
|
chainData: r,
|
583
583
|
show: o
|
584
584
|
});
|
585
585
|
return /* @__PURE__ */ e("div", { className: "bw-mt-2 bw-flex bw-justify-end", children: t ? /* @__PURE__ */ e(
|
586
|
-
|
586
|
+
rt,
|
587
587
|
{
|
588
588
|
walletDetails: (b == null ? void 0 : b.length) > 30 && o == "to" ? g({}) : (d == null ? void 0 : d.networkType) == (i == null ? void 0 : i.networkType) && o == "to" ? {
|
589
589
|
disconnect: l,
|
@@ -604,15 +604,15 @@ function nt({ isConnected: t, setConnectWalletField: n, handleShowWallet: s, sho
|
|
604
604
|
className: "bw-mb-1 bw-relative bw-min-w-[100px] bw-flex bw-justify-center bw-items-center bw-gap-x-1 bw-w-[84px] bw-h-[25px] bw-text-xs bw-font-medium bw-px-2 bw-rounded-xl bw-border bw-border-border-primary bw-bg-background-container bw-text-text-primary",
|
605
605
|
children: [
|
606
606
|
/* @__PURE__ */ e("p", { className: "bw-mr-3", children: "Connect" }),
|
607
|
-
/* @__PURE__ */ e("div", { className: "bw-absolute bw-right-2", children: /* @__PURE__ */ e(
|
607
|
+
/* @__PURE__ */ e("div", { className: "bw-absolute bw-right-2", children: /* @__PURE__ */ e(c1, { fill: "var(--tw-text-secondary)" }) })
|
608
608
|
]
|
609
609
|
}
|
610
610
|
) });
|
611
611
|
}
|
612
|
-
const
|
613
|
-
gradient:
|
612
|
+
const ot = "_gradient_15zwe_1", Ze = {
|
613
|
+
gradient: ot
|
614
614
|
};
|
615
|
-
function
|
615
|
+
function at({ mode: t, handleMode: n }) {
|
616
616
|
var o, r;
|
617
617
|
const s = c((l) => l.configuration);
|
618
618
|
return /* @__PURE__ */ e("div", { className: "bw-flex bw-justify-center", children: /* @__PURE__ */ p(
|
@@ -681,7 +681,7 @@ function st({ mode: t, handleMode: n }) {
|
|
681
681
|
}
|
682
682
|
) });
|
683
683
|
}
|
684
|
-
function
|
684
|
+
function it({ fill: t }) {
|
685
685
|
return /* @__PURE__ */ e(
|
686
686
|
"svg",
|
687
687
|
{
|
@@ -702,7 +702,7 @@ function ot({ fill: t }) {
|
|
702
702
|
}
|
703
703
|
);
|
704
704
|
}
|
705
|
-
function
|
705
|
+
function u1({ options: t, handleOptions: n }) {
|
706
706
|
var r, l;
|
707
707
|
const s = [
|
708
708
|
{ name: "Medium", value: "medium" },
|
@@ -733,7 +733,7 @@ function w1({ options: t, handleOptions: n }) {
|
|
733
733
|
className: `
|
734
734
|
bw-flex bw-flex-1 bw-relative bw-h-full bw-rounded-md bw-gap-x-1 bw-justify-center bw-items-center `,
|
735
735
|
children: [
|
736
|
-
b.value === "ultra" ? /* @__PURE__ */ e(
|
736
|
+
b.value === "ultra" ? /* @__PURE__ */ e(it, { fill: b.value === t.value ? "var(--tw-text-primary)" : "var(--tw-text-secondary)" }) : /* @__PURE__ */ e(J, {}),
|
737
737
|
/* @__PURE__ */ e(
|
738
738
|
"p",
|
739
739
|
{
|
@@ -761,7 +761,7 @@ function w1({ options: t, handleOptions: n }) {
|
|
761
761
|
)
|
762
762
|
] });
|
763
763
|
}
|
764
|
-
function
|
764
|
+
function m1(t) {
|
765
765
|
const n = [
|
766
766
|
"Tab",
|
767
767
|
"Enter",
|
@@ -775,7 +775,7 @@ function u1(t) {
|
|
775
775
|
];
|
776
776
|
/^\d$/.test(t.key) || n.includes(t.key) || t.preventDefault();
|
777
777
|
}
|
778
|
-
function
|
778
|
+
function p1({ inputVal: t, handleCustomVal: n, title: s, inputSideText: o }) {
|
779
779
|
var l, b;
|
780
780
|
const r = c((d) => d.configuration);
|
781
781
|
return /* @__PURE__ */ p("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: [
|
@@ -796,7 +796,7 @@ function m1({ inputVal: t, handleCustomVal: n, title: s, inputSideText: o }) {
|
|
796
796
|
value: t,
|
797
797
|
onChange: n,
|
798
798
|
onKeyDown: (d) => {
|
799
|
-
|
799
|
+
m1(d);
|
800
800
|
}
|
801
801
|
}
|
802
802
|
),
|
@@ -809,7 +809,7 @@ function m1({ inputVal: t, handleCustomVal: n, title: s, inputSideText: o }) {
|
|
809
809
|
)
|
810
810
|
] });
|
811
811
|
}
|
812
|
-
function
|
812
|
+
function g1({ handleSave: t, isSaveButtonDisabled: n }) {
|
813
813
|
const s = c((o) => o.configuration);
|
814
814
|
return c((o) => o.slippage), /* @__PURE__ */ e(
|
815
815
|
"div",
|
@@ -827,11 +827,11 @@ function p1({ handleSave: t, isSaveButtonDisabled: n }) {
|
|
827
827
|
}
|
828
828
|
);
|
829
829
|
}
|
830
|
-
function
|
830
|
+
function f1({ handleClose: t }) {
|
831
831
|
return /* @__PURE__ */ p("div", { className: "bw-w-full bw-relative bw-flex bw-items-center bw-justify-center", children: [
|
832
832
|
/* @__PURE__ */ e("h2", { className: "bw-text-2xl bw-font-bold bw-text-text-primary", children: "Config" }),
|
833
833
|
/* @__PURE__ */ e(
|
834
|
-
|
834
|
+
V1,
|
835
835
|
{
|
836
836
|
disableRipple: !0,
|
837
837
|
onClick: t,
|
@@ -841,7 +841,7 @@ function g1({ handleClose: t }) {
|
|
841
841
|
)
|
842
842
|
] });
|
843
843
|
}
|
844
|
-
function
|
844
|
+
function x1({ slippage: t, handleSlippage: n }) {
|
845
845
|
var o, r;
|
846
846
|
const s = c((l) => l.configuration);
|
847
847
|
return /* @__PURE__ */ p("div", { className: "bw-flex bw-items-center bw-justify-between", children: [
|
@@ -871,7 +871,7 @@ function f1({ slippage: t, handleSlippage: n }) {
|
|
871
871
|
onChange: n,
|
872
872
|
type: "number",
|
873
873
|
onKeyDown: (l) => {
|
874
|
-
|
874
|
+
m1(l);
|
875
875
|
},
|
876
876
|
className: "bw-bg-transparent bw-border-none bw-text-text-primary bw-pl-2 bw-text-right bw-w-[80%]"
|
877
877
|
}
|
@@ -882,18 +882,18 @@ function f1({ slippage: t, handleSlippage: n }) {
|
|
882
882
|
)
|
883
883
|
] });
|
884
884
|
}
|
885
|
-
function
|
885
|
+
function h1() {
|
886
886
|
return /* @__PURE__ */ p("div", { className: "bw-flex bw-gap-x-5 bw-items-center ", children: [
|
887
887
|
/* @__PURE__ */ e("h2", { className: "bw-text-lg bw-font-normal bw-text-text-primary", children: "Transaction Fee" }),
|
888
888
|
/* @__PURE__ */ e("div", { className: "bw-h-[1px] bw-flex-1 bw-bg-border-primary " })
|
889
889
|
] });
|
890
890
|
}
|
891
|
-
function
|
891
|
+
function ct({ handleClose: t }) {
|
892
892
|
const [n, s] = v(""), [o, r] = v({ name: "Low", value: "low" }), [l, b] = v(""), [d, i] = v(""), [g, x] = v(""), k = c((f) => f.broadCastMode), B = c((f) => f.customFee), M = c((f) => f.setCustomFee), F = c((f) => f.slippage), h = c((f) => f.setSlippage), m = c((f) => f.setBroadCastMode), I = c((f) => f.option), y = c((f) => f.setOption), S = n == B && I.name == o.name && F == g && (d === k && d !== "" || !n.length && !I.name.length);
|
893
893
|
function _(f) {
|
894
894
|
b(""), s(f.target.value);
|
895
895
|
}
|
896
|
-
function
|
896
|
+
function te(f, C) {
|
897
897
|
b(""), r(f);
|
898
898
|
}
|
899
899
|
j(() => {
|
@@ -907,7 +907,7 @@ function at({ handleClose: t }) {
|
|
907
907
|
j(() => {
|
908
908
|
x(F);
|
909
909
|
}, [h]);
|
910
|
-
function
|
910
|
+
function G(f) {
|
911
911
|
x(f.target.value);
|
912
912
|
}
|
913
913
|
j(() => {
|
@@ -920,19 +920,19 @@ function at({ handleClose: t }) {
|
|
920
920
|
}
|
921
921
|
n.length ? (M(n), y(o)) : (M(""), E()), m(d), h(g), t();
|
922
922
|
}
|
923
|
-
function
|
923
|
+
function z(f) {
|
924
924
|
b(""), i(f);
|
925
925
|
}
|
926
926
|
return j(() => {
|
927
927
|
!B && !I.name.length && (m(""), i(""));
|
928
928
|
}, [B, I.name]), /* @__PURE__ */ p("div", { className: "bw-w-full md:bw-w-[443px] bw-h-[447px] bw-rounded-lg bw-border bw-p-3 px-4 md:bw-px-6 bw-border-border-primary bw-text-white bw-bg-background-container", children: [
|
929
|
-
/* @__PURE__ */ e(
|
930
|
-
/* @__PURE__ */ e("div", { className: "bw-mt-5 bw-mb-5", children: /* @__PURE__ */ e(
|
931
|
-
/* @__PURE__ */ e("div", { className: "bw-mb-5", children: /* @__PURE__ */ e(
|
932
|
-
/* @__PURE__ */ e(
|
933
|
-
/* @__PURE__ */ e(
|
929
|
+
/* @__PURE__ */ e(f1, { handleClose: t }),
|
930
|
+
/* @__PURE__ */ e("div", { className: "bw-mt-5 bw-mb-5", children: /* @__PURE__ */ e(x1, { slippage: g, handleSlippage: G }) }),
|
931
|
+
/* @__PURE__ */ e("div", { className: "bw-mb-5", children: /* @__PURE__ */ e(h1, {}) }),
|
932
|
+
/* @__PURE__ */ e(at, { mode: d, handleMode: z }),
|
933
|
+
/* @__PURE__ */ e(u1, { options: o, handleOptions: te }),
|
934
934
|
/* @__PURE__ */ e(
|
935
|
-
|
935
|
+
p1,
|
936
936
|
{
|
937
937
|
title: "Max Cap",
|
938
938
|
inputSideText: "SOL",
|
@@ -943,7 +943,7 @@ function at({ handleClose: t }) {
|
|
943
943
|
/* @__PURE__ */ p("div", { className: "bw-relative", children: [
|
944
944
|
/* @__PURE__ */ e("p", { className: "bw-w-full bw-absolute bw-text-center -bw-top-5 bw-text-xs bw-text-text-redtext", children: l }),
|
945
945
|
/* @__PURE__ */ e(
|
946
|
-
|
946
|
+
g1,
|
947
947
|
{
|
948
948
|
handleSave: O,
|
949
949
|
isSaveButtonDisabled: S
|
@@ -952,7 +952,7 @@ function at({ handleClose: t }) {
|
|
952
952
|
] })
|
953
953
|
] });
|
954
954
|
}
|
955
|
-
function
|
955
|
+
function lt({ handleClose: t }) {
|
956
956
|
const [n, s] = v({ name: "Low", value: "low" }), [o, r] = v(""), [l, b] = v(""), d = c((y) => y.setEvmGas), i = c((y) => y.setEvmSpeed), g = c((y) => y.evmSpeed), x = c((y) => y.evmGas), k = c((y) => y.slippage), B = c((y) => y.setSlippage), M = o == x && g.name == n.name && k == l;
|
957
957
|
function F(y, S) {
|
958
958
|
s(y);
|
@@ -975,12 +975,12 @@ function it({ handleClose: t }) {
|
|
975
975
|
b(y.target.value);
|
976
976
|
}
|
977
977
|
return /* @__PURE__ */ p("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: [
|
978
|
-
/* @__PURE__ */ e(
|
979
|
-
/* @__PURE__ */ e("div", { className: "bw-mt-5 bw-mb-5", children: /* @__PURE__ */ e(
|
980
|
-
/* @__PURE__ */ e("div", { className: "bw-mb-5", children: /* @__PURE__ */ e(
|
981
|
-
/* @__PURE__ */ e(
|
978
|
+
/* @__PURE__ */ e(f1, { handleClose: t }),
|
979
|
+
/* @__PURE__ */ e("div", { className: "bw-mt-5 bw-mb-5", children: /* @__PURE__ */ e(x1, { slippage: l, handleSlippage: I }) }),
|
980
|
+
/* @__PURE__ */ e("div", { className: "bw-mb-5", children: /* @__PURE__ */ e(h1, {}) }),
|
981
|
+
/* @__PURE__ */ e(u1, { options: n, handleOptions: F }),
|
982
982
|
/* @__PURE__ */ e(
|
983
|
-
|
983
|
+
p1,
|
984
984
|
{
|
985
985
|
title: "Gas Price",
|
986
986
|
inputSideText: "GWEI",
|
@@ -989,7 +989,7 @@ function it({ handleClose: t }) {
|
|
989
989
|
}
|
990
990
|
),
|
991
991
|
/* @__PURE__ */ e(
|
992
|
-
|
992
|
+
g1,
|
993
993
|
{
|
994
994
|
handleSave: m,
|
995
995
|
isSaveButtonDisabled: M
|
@@ -997,10 +997,10 @@ function it({ handleClose: t }) {
|
|
997
997
|
)
|
998
998
|
] });
|
999
999
|
}
|
1000
|
-
function
|
1000
|
+
function bt({ open: t, handleClose: n }) {
|
1001
1001
|
const s = c((r) => r.fromChain);
|
1002
1002
|
return /* @__PURE__ */ e(
|
1003
|
-
|
1003
|
+
E1,
|
1004
1004
|
{
|
1005
1005
|
open: t,
|
1006
1006
|
disablePortal: !0,
|
@@ -1015,11 +1015,11 @@ function ct({ open: t, handleClose: n }) {
|
|
1015
1015
|
// left: "47%",
|
1016
1016
|
// transform: "translate(-50%, -50%)",
|
1017
1017
|
bgcolor: "var(--tw-bg-container)"
|
1018
|
-
}, children: s.networkType == "sol" ? /* @__PURE__ */ e(
|
1018
|
+
}, children: s.networkType == "sol" ? /* @__PURE__ */ e(ct, { handleClose: n }) : /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(lt, { handleClose: n }) }) })
|
1019
1019
|
}
|
1020
1020
|
);
|
1021
1021
|
}
|
1022
|
-
function
|
1022
|
+
function dt({ fill: t }) {
|
1023
1023
|
return /* @__PURE__ */ p(
|
1024
1024
|
"svg",
|
1025
1025
|
{
|
@@ -1058,7 +1058,7 @@ function lt({ fill: t }) {
|
|
1058
1058
|
}
|
1059
1059
|
);
|
1060
1060
|
}
|
1061
|
-
function
|
1061
|
+
function wt() {
|
1062
1062
|
const t = c((o) => o.configuration), n = t == null ? void 0 : t.headingStyles, s = (t == null ? void 0 : t.headingText) || "";
|
1063
1063
|
return s.length ? /* @__PURE__ */ e(
|
1064
1064
|
"span",
|
@@ -1076,7 +1076,7 @@ function bt() {
|
|
1076
1076
|
"Y.exchange"
|
1077
1077
|
] });
|
1078
1078
|
}
|
1079
|
-
function
|
1079
|
+
function ut() {
|
1080
1080
|
const t = c((s) => s.configuration), n = t == null ? void 0 : t.headingContainerStyles;
|
1081
1081
|
return /* @__PURE__ */ e(
|
1082
1082
|
"div",
|
@@ -1105,35 +1105,35 @@ function dt() {
|
|
1105
1105
|
paddingLeft: "10px",
|
1106
1106
|
...n
|
1107
1107
|
},
|
1108
|
-
children: /* @__PURE__ */ e(
|
1108
|
+
children: /* @__PURE__ */ e(wt, {})
|
1109
1109
|
}
|
1110
1110
|
);
|
1111
1111
|
}
|
1112
|
-
function
|
1112
|
+
function mt() {
|
1113
1113
|
const [t, n] = v(!1), s = c((r) => r.fromChain);
|
1114
1114
|
function o() {
|
1115
1115
|
n(!1);
|
1116
1116
|
}
|
1117
1117
|
return /* @__PURE__ */ p(J, { children: [
|
1118
1118
|
/* @__PURE__ */ p("div", { className: "bw-flex bw-w-full -bw-mt-2 bw-mb-3 bw-items-center bw-justify-end", children: [
|
1119
|
-
/* @__PURE__ */ e(
|
1119
|
+
/* @__PURE__ */ e(ut, {}),
|
1120
1120
|
/* @__PURE__ */ e(
|
1121
1121
|
"div",
|
1122
1122
|
{
|
1123
1123
|
onClick: () => (s == null ? void 0 : s.networkType) !== "cosmos" && n(!0),
|
1124
1124
|
className: "bw-flex bw-relative bw-right-0 bw-items-center bw-gap-x-2",
|
1125
|
-
children: /* @__PURE__ */ e(
|
1125
|
+
children: /* @__PURE__ */ e(J1, { classnames: " ", children: /* @__PURE__ */ e(dt, { fill: "var(--tw-text-secondary)" }) })
|
1126
1126
|
}
|
1127
1127
|
)
|
1128
1128
|
] }),
|
1129
|
-
/* @__PURE__ */ e(
|
1129
|
+
/* @__PURE__ */ e(bt, { open: t, handleClose: o })
|
1130
1130
|
] });
|
1131
1131
|
}
|
1132
|
-
let
|
1133
|
-
function
|
1134
|
-
const [b, d] = v(0), { getWallet: i } =
|
1132
|
+
let i1, Fe, Ce, Me = 0;
|
1133
|
+
function pt({ confirmRoute: t, setConfirmRoute: n, routes: s, routesData: o, isRoutesEnabled: r, fetchBalance: l }) {
|
1134
|
+
const [b, d] = v(0), { getWallet: i } = Te({}), g = c((h) => h.fromChain), x = i(g), { isConnected: k } = fe();
|
1135
1135
|
j(() => {
|
1136
|
-
t && clearInterval(
|
1136
|
+
t && clearInterval(Ce);
|
1137
1137
|
}, [t]), j(() => {
|
1138
1138
|
var h;
|
1139
1139
|
b === 0 && document.visibilityState === "visible" && !t && r && ((h = x.address) != null && h.length && l.refetch(), s.refetch());
|
@@ -1151,10 +1151,10 @@ function ut({ confirmRoute: t, setConfirmRoute: n, routes: s, routesData: o, isR
|
|
1151
1151
|
document.removeEventListener("visibilitychange", F);
|
1152
1152
|
}), [o]);
|
1153
1153
|
function B() {
|
1154
|
-
|
1154
|
+
i1 = Date.now(), d((h) => (Fe = h, h));
|
1155
1155
|
}
|
1156
1156
|
function M() {
|
1157
|
-
let h = Date.now(), m = Math.round((h -
|
1157
|
+
let h = Date.now(), m = Math.round((h - i1) / 1e3);
|
1158
1158
|
o.deadline - Fe + m > o.deadline ? n((I) => {
|
1159
1159
|
var y;
|
1160
1160
|
return I || ((y = x.address) != null && y.length && l.refetch(), s.refetch(), d(o.deadline)), I;
|
@@ -1163,19 +1163,19 @@ function ut({ confirmRoute: t, setConfirmRoute: n, routes: s, routesData: o, isR
|
|
1163
1163
|
function F() {
|
1164
1164
|
document.visibilityState === "visible" ? M() : B();
|
1165
1165
|
}
|
1166
|
-
return j(() => (pe.isEmpty(o) ?
|
1166
|
+
return j(() => (pe.isEmpty(o) ? Ce && clearInterval(Ce) : Ce = setInterval(() => {
|
1167
1167
|
d((h) => h <= 0 ? (Me = 0, o.deadline) : (Me++, h - 1));
|
1168
1168
|
}, 1e3), () => {
|
1169
|
-
|
1169
|
+
Ce && clearInterval(Ce);
|
1170
1170
|
}), [o]), c((h) => h.timerValue), { quoteTimer: b, setQuoteTimer: d };
|
1171
1171
|
}
|
1172
|
-
function
|
1173
|
-
const { primaryWallet: o } =
|
1172
|
+
function gt(t, n, s) {
|
1173
|
+
const { primaryWallet: o } = Ie(), [r, l] = v(0), b = async (d) => {
|
1174
1174
|
if (!o) return;
|
1175
|
-
const i = new
|
1175
|
+
const i = new Ve(d || "https://tammi-n3hltb-fast-mainnet.helius-rpc.com/", "confirmed");
|
1176
1176
|
if (i)
|
1177
1177
|
try {
|
1178
|
-
const g = new
|
1178
|
+
const g = new de(o.address);
|
1179
1179
|
i.onAccountChange(g, (B) => {
|
1180
1180
|
l(B.lamports / 1e9);
|
1181
1181
|
});
|
@@ -1189,17 +1189,17 @@ function mt(t, n, s) {
|
|
1189
1189
|
(t == null ? void 0 : t.networkType) === "sol" && b((t == null ? void 0 : t.chainId) === "eclipse-svm" ? "https://eclipse.lgns.net/" : null);
|
1190
1190
|
}, [t == null ? void 0 : t.networkType, o, t == null ? void 0 : t.chainId, o == null ? void 0 : o.address]), { balanceSol: r, getBalanceSol: b };
|
1191
1191
|
}
|
1192
|
-
function
|
1192
|
+
function ft(t) {
|
1193
1193
|
return t == "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" ? "" : t;
|
1194
1194
|
}
|
1195
|
-
const
|
1196
|
-
new
|
1197
|
-
new
|
1198
|
-
new
|
1199
|
-
async function
|
1195
|
+
const xt = new de("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"), ht = new de("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");
|
1196
|
+
new de("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");
|
1197
|
+
new de("So11111111111111111111111111111111111111112");
|
1198
|
+
new de("9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP");
|
1199
|
+
async function yt(t, n) {
|
1200
1200
|
if (!t) return;
|
1201
|
-
const s = new
|
1202
|
-
programId: n ?
|
1201
|
+
const s = new Ve(n || "https://tammi-n3hltb-fast-mainnet.helius-rpc.com/", "confirmed"), o = new de(t), r = await s.getParsedTokenAccountsByOwner(o, {
|
1202
|
+
programId: n ? ht : xt
|
1203
1203
|
});
|
1204
1204
|
let l = {};
|
1205
1205
|
for (const { account: b } of r.value) {
|
@@ -1208,7 +1208,7 @@ async function xt(t, n) {
|
|
1208
1208
|
}
|
1209
1209
|
return l;
|
1210
1210
|
}
|
1211
|
-
const
|
1211
|
+
const Ct = "0000000000000000000000000000000000", vt = async (t) => {
|
1212
1212
|
try {
|
1213
1213
|
const n = await tronWeb.trx.getBalance(t);
|
1214
1214
|
return { balance: tronWeb.fromSun(n) };
|
@@ -1216,10 +1216,10 @@ const ht = "0000000000000000000000000000000000", yt = async (t) => {
|
|
1216
1216
|
throw n;
|
1217
1217
|
}
|
1218
1218
|
};
|
1219
|
-
async function
|
1219
|
+
async function kt(t, n) {
|
1220
1220
|
try {
|
1221
|
-
if (n ===
|
1222
|
-
return
|
1221
|
+
if (n === Ct)
|
1222
|
+
return vt(t);
|
1223
1223
|
const s = await tronWeb.contract().at(n), o = await s.balanceOf(t).call(), r = await s.decimals().call();
|
1224
1224
|
return {
|
1225
1225
|
balance: Number(o) / Math.pow(10, Number(r)),
|
@@ -1230,31 +1230,31 @@ async function Ct(t, n) {
|
|
1230
1230
|
throw s;
|
1231
1231
|
}
|
1232
1232
|
}
|
1233
|
-
function
|
1234
|
-
const [s, o] = v(0), { primaryWallet: r, setPrimaryWallet: l } =
|
1233
|
+
function Nt(t, n) {
|
1234
|
+
const [s, o] = v(0), { primaryWallet: r, setPrimaryWallet: l } = Ie(), [b, d] = v(!1), i = c((w) => w.fromChain), { address: g, isConnected: x } = fe(), { address: k, isConnected: B } = ze(), M = c((w) => w.cosmosChainIds), { data: F, isConnected: h } = Oe({
|
1235
1235
|
chainId: M,
|
1236
1236
|
multiChain: !0
|
1237
|
-
}), m = c((w) => w.fromCoin), { data: I, isLoading: y } =
|
1237
|
+
}), m = c((w) => w.fromCoin), { data: I, isLoading: y } = $1({
|
1238
1238
|
address: g,
|
1239
|
-
token:
|
1239
|
+
token: ft((m == null ? void 0 : m.address) || ""),
|
1240
1240
|
chainId: Number((i == null ? void 0 : i.chainId) || 0),
|
1241
1241
|
enabled: !!((i.networkType == "evm" || n) && g && (g != null && g.length))
|
1242
1242
|
}), {
|
1243
1243
|
data: S,
|
1244
1244
|
isLoading: _,
|
1245
|
-
isFetching:
|
1245
|
+
isFetching: te,
|
1246
1246
|
isInitialLoading: E,
|
1247
|
-
isRefetching:
|
1248
|
-
} =
|
1247
|
+
isRefetching: G
|
1248
|
+
} = b1({
|
1249
1249
|
chainId: [i.chainId],
|
1250
1250
|
multiChain: !0
|
1251
1251
|
});
|
1252
1252
|
async function O(w) {
|
1253
1253
|
if (!r) return;
|
1254
|
-
const T = new
|
1254
|
+
const T = new Ve(w || "https://solana-rpc.publicnode.com");
|
1255
1255
|
if (T)
|
1256
1256
|
try {
|
1257
|
-
const A = new
|
1257
|
+
const A = new de(r.address);
|
1258
1258
|
d(!0);
|
1259
1259
|
const N = await T.getBalance(A) / 1e9;
|
1260
1260
|
o(N), d(!1);
|
@@ -1262,10 +1262,10 @@ function vt(t, n) {
|
|
1262
1262
|
d(!1);
|
1263
1263
|
}
|
1264
1264
|
}
|
1265
|
-
async function
|
1265
|
+
async function z(w) {
|
1266
1266
|
try {
|
1267
1267
|
d(!0);
|
1268
|
-
let T = await
|
1268
|
+
let T = await yt(r.address, w);
|
1269
1269
|
d(!1), o(T == null ? void 0 : T[m == null ? void 0 : m.address]);
|
1270
1270
|
} catch {
|
1271
1271
|
d(!1);
|
@@ -1276,18 +1276,18 @@ function vt(t, n) {
|
|
1276
1276
|
if (!r) return;
|
1277
1277
|
const w = await r.connector.getPublicClient();
|
1278
1278
|
if (!w) return;
|
1279
|
-
const T = new
|
1279
|
+
const T = new de(r.address);
|
1280
1280
|
T && (f = w.onAccountChange(T, (A) => {
|
1281
1281
|
var L;
|
1282
1282
|
if (i.networkType == "sol" && (r != null && r.address))
|
1283
1283
|
if (((L = m == null ? void 0 : m.symbol) == null ? void 0 : L.toLowerCase()) === "sol")
|
1284
1284
|
O();
|
1285
1285
|
else if (i.chainId === "eclipse-svm")
|
1286
|
-
m.symbol == "ETH" ? O("https://eclipse.lgns.net/") :
|
1286
|
+
m.symbol == "ETH" ? O("https://eclipse.lgns.net/") : z("https://eclipse.lgns.net/");
|
1287
1287
|
else {
|
1288
1288
|
if (i.networkType === "btc" || i.networkType === "sui")
|
1289
1289
|
return;
|
1290
|
-
|
1290
|
+
z();
|
1291
1291
|
}
|
1292
1292
|
}));
|
1293
1293
|
}
|
@@ -1301,13 +1301,13 @@ function vt(t, n) {
|
|
1301
1301
|
const w = await r.connector.getPublicClient();
|
1302
1302
|
w && w.removeAccountChangeListener(f);
|
1303
1303
|
}), [r == null ? void 0 : r.address, i == null ? void 0 : i.networkType, m]);
|
1304
|
-
async function
|
1304
|
+
async function Z(w) {
|
1305
1305
|
var A, L;
|
1306
1306
|
let T = S[w] || S;
|
1307
1307
|
try {
|
1308
1308
|
d(!0);
|
1309
1309
|
let N = await T.getAllBalances((A = F == null ? void 0 : F[w]) == null ? void 0 : A.bech32Address), R = pe.keyBy(N, "denom");
|
1310
|
-
o(((L = R[
|
1310
|
+
o(((L = R[w1(m.address)]) == null ? void 0 : L.amount) / Math.pow(10, m.decimals) || 0), d(!1);
|
1311
1311
|
} catch {
|
1312
1312
|
d(!1);
|
1313
1313
|
}
|
@@ -1316,7 +1316,7 @@ function vt(t, n) {
|
|
1316
1316
|
o(0);
|
1317
1317
|
try {
|
1318
1318
|
d(!0);
|
1319
|
-
let A = await
|
1319
|
+
let A = await kt(w, T);
|
1320
1320
|
o((A == null ? void 0 : A.balance) || 0), d(!1);
|
1321
1321
|
} catch {
|
1322
1322
|
d(!1);
|
@@ -1324,36 +1324,36 @@ function vt(t, n) {
|
|
1324
1324
|
}
|
1325
1325
|
return j(() => {
|
1326
1326
|
var w;
|
1327
|
-
o(0), i.networkType == "sol" && (r != null && r.address) ? ((w = m == null ? void 0 : m.symbol) == null ? void 0 : w.toLowerCase()) === "sol" ? O() : i.chainId == "eclipse-svm" ? m.symbol == "ETH" ? O("https://eclipse.lgns.net/") :
|
1327
|
+
o(0), i.networkType == "sol" && (r != null && r.address) ? ((w = m == null ? void 0 : m.symbol) == null ? void 0 : w.toLowerCase()) === "sol" ? O() : i.chainId == "eclipse-svm" ? m.symbol == "ETH" ? O("https://eclipse.lgns.net/") : z("https://eclipse.lgns.net/") : z() : i.networkType == "sui" && (r == null ? void 0 : r.chain) == "SUI" || i.networkType == "btc" && (r == null ? void 0 : r.chain) == "BTC" ? P() : i.networkType == "evm" && g && (g != null && g.length) ? o(Number((I == null ? void 0 : I.formatted) || 0)) : i.networkType == "cosmos" && h && !_ ? Z(i == null ? void 0 : i.chainId) : i.networkType == "tron" && k && $(k, m == null ? void 0 : m.address);
|
1328
1328
|
}, [i.networkType, i == null ? void 0 : i.chainId, m.symbol, m == null ? void 0 : m.address, I, g, r == null ? void 0 : r.address, g, h, _, r == null ? void 0 : r.chain, t, k]), {
|
1329
1329
|
getbal: s,
|
1330
1330
|
isBalanceLoading: (i == null ? void 0 : i.networkType) == "evm" ? y : b
|
1331
1331
|
};
|
1332
1332
|
}
|
1333
|
-
const
|
1334
|
-
function
|
1333
|
+
const Tt = ce.lazy(() => import("./SwapAsset-Kx0ombNP.js")), It = ce.lazy(() => import("./InputComp-Q8pjLoPE.js")), Bt = ce.lazy(() => import("./QuotesProgress-BD5CQpZ-.js")), At = ce.lazy(() => import("./TxnButton-CWOz7URH.js")), jt = ce.lazy(() => import("./index-BrUFU9w4.js").then((t) => t.i)), Lt = ce.lazy(() => import("./index-nbo2VFYc.js")), Pt = ce.lazy(() => import("./LoadRoute-C2z-mW9G.js")), Ft = ce.lazy(() => import("./AllRoutes-3rJ_6MZA.js")), Mt = ce.lazy(() => import("./AdvancedSettings-BSHVKOx8.js"));
|
1334
|
+
function Et({ handleShowWallet: t, showWallet: n, fetchChains: s }) {
|
1335
1335
|
var Ke, Je, qe, Xe, Qe, Ue, Ye;
|
1336
|
-
const [o, r] = v(), [l, b] = v(!1), [d, i] = v(!1), [g, x] = v(!1), [k, B] = v(!1), [M, F] = v("all"), [h, m] = v(!1), { primaryWallet: I } =
|
1337
|
-
let
|
1338
|
-
const
|
1339
|
-
enabled:
|
1340
|
-
dependency:
|
1341
|
-
payload: [(C == null ? void 0 : C.networkType) === "cosmos" ?
|
1342
|
-
}), ie = Y(C), we =
|
1336
|
+
const [o, r] = v(), [l, b] = v(!1), [d, i] = v(!1), [g, x] = v(!1), [k, B] = v(!1), [M, F] = v("all"), [h, m] = v(!1), { primaryWallet: I } = Ie(), { address: y } = fe(), { address: S } = ze(), { getbal: _, isBalanceLoading: te } = Nt(h), { data: E, isConnected: G } = Oe({ chainId: "cosmoshub-4" }), O = c((a) => a.persist), z = c((a) => a.setPersist), f = c((a) => a.route), C = c((a) => a.fromChain), P = c((a) => a.toChain), Z = c((a) => a.fromCoin), $ = c((a) => a.toCoin), w = c((a) => a.setFromChain), T = c((a) => a.setToChain), A = c((a) => a.setFromCoin), L = c((a) => a.setToCoin), N = c((a) => a.amount), R = c((a) => a.setAmount), re = c((a) => a.customWallet), Be = c((a) => a.setCosmosChainIds), W = c((a) => a.customFee), H = c((a) => a.broadCastMode), U = c((a) => a.evmGas), V = c((a) => a.evmSpeed), Ae = c((a) => a.slippage), ve = c((a) => a.option), je = c((a) => a.setCustomWallet), Le = c((a) => a.setSelectedProvider), { balanceSol: u } = gt(C, h, Re), { suggestAndConnectAsync: D } = Z1(), ne = !!(N.length && C.chain.length && Z.coin.length && P.chain.length && $.coin.length && !g && k), le = c((a) => a.direct), se = c((a) => a.maxAccounts), oe = ["routes", y, C, P, Z, $, N, I == null ? void 0 : I.address, S, re, E == null ? void 0 : E.bech32Address, W, U, V, Ae, H, ve.value, le, se];
|
1337
|
+
let K = (H === "Priority Fee" || H === "Both") && (W != null && W.length) ? W : ve.value, q = (H === "Jito Tip" || H === "Both") && (W != null && W.length) ? W : ve.value, ae = U != null && U.length ? U : V.value;
|
1338
|
+
const ee = (C == null ? void 0 : C.networkType) === "sol" ? H === "Priority Fee" ? `&solanaPriorityFee=${K}` : H === "Jito Tip" ? { solanaJitoTip: q } : { solanaPriorityFee: K, solanaJitoTip: q } : (C == null ? void 0 : C.networkType) === "evm" ? { evmPriorityFee: ae } : "", { getWallet: Y, refetch: ge } = Te({}), { routes: X, routesData: Q, setRoutesData: xe, errorMessage: be, setErrorMessage: ke } = q1({
|
1339
|
+
enabled: ne,
|
1340
|
+
dependency: oe,
|
1341
|
+
payload: [(C == null ? void 0 : C.networkType) === "cosmos" ? s1(E == null ? void 0 : E.bech32Address, (Ke = C == null ? void 0 : C.chainInfo) == null ? void 0 : Ke.bech32Config.bech32PrefixAccAddr) : ((Je = Y(C)) == null ? void 0 : Je.address) || "", C, P, Z, $, N, Number(Ae) * 100, (re == null ? void 0 : re.length) > 30 ? ((qe = Y({})) == null ? void 0 : qe.address) || "" : (P == null ? void 0 : P.networkType) === "cosmos" ? s1(E == null ? void 0 : E.bech32Address, (Xe = P == null ? void 0 : P.chainInfo) == null ? void 0 : Xe.bech32Config.bech32PrefixAccAddr) : ((Qe = Y(P)) == null ? void 0 : Qe.address) || "", ee]
|
1342
|
+
}), ie = Y(C), we = l1({
|
1343
1343
|
queryKey: ["balance", ie == null ? void 0 : ie.address, C],
|
1344
1344
|
queryFn: async () => await (await _e.fetchBalance(ie.address, C.chainId)).json(),
|
1345
1345
|
enabled: !!((Ue = ie == null ? void 0 : ie.address) != null && Ue.length && C.chainId),
|
1346
1346
|
refetchOnWindowFocus: !1
|
1347
|
-
}), { quoteTimer:
|
1348
|
-
routes:
|
1349
|
-
routesData:
|
1347
|
+
}), { quoteTimer: Pe } = pt({
|
1348
|
+
routes: X,
|
1349
|
+
routesData: Q,
|
1350
1350
|
confirmRoute: d,
|
1351
1351
|
setConfirmRoute: i,
|
1352
|
-
isRoutesEnabled:
|
1352
|
+
isRoutesEnabled: ne,
|
1353
1353
|
fetchBalance: we
|
1354
1354
|
});
|
1355
1355
|
j(() => {
|
1356
|
-
N ||
|
1356
|
+
N || xe({});
|
1357
1357
|
let a;
|
1358
1358
|
return Number(N) > 0 && (a = setTimeout(() => {
|
1359
1359
|
B(!0);
|
@@ -1361,35 +1361,35 @@ function Pt({ handleShowWallet: t, showWallet: n, fetchChains: s }) {
|
|
1361
1361
|
clearTimeout(a), B(!1);
|
1362
1362
|
};
|
1363
1363
|
}, [N]), j(() => {
|
1364
|
-
|
1365
|
-
}, [
|
1366
|
-
function
|
1364
|
+
X.isFetching && xe({});
|
1365
|
+
}, [X.isFetching]);
|
1366
|
+
function Ne(a) {
|
1367
1367
|
x(a);
|
1368
1368
|
}
|
1369
|
-
function
|
1369
|
+
function y1() {
|
1370
1370
|
r();
|
1371
1371
|
}
|
1372
|
-
async function
|
1373
|
-
if (
|
1372
|
+
async function C1(a) {
|
1373
|
+
if (G)
|
1374
1374
|
try {
|
1375
|
-
let ue = await
|
1375
|
+
let ue = await r1();
|
1376
1376
|
if (ue.length && !ue.includes(a.chainId)) {
|
1377
|
-
let
|
1377
|
+
let he = await D({
|
1378
1378
|
chainInfo: a,
|
1379
|
-
walletType:
|
1380
|
-
}), me = await
|
1381
|
-
|
1379
|
+
walletType: H1.KEPLR
|
1380
|
+
}), me = await ge(), ye = await r1();
|
1381
|
+
Be(ye);
|
1382
1382
|
}
|
1383
1383
|
} catch {
|
1384
1384
|
}
|
1385
1385
|
else
|
1386
1386
|
return;
|
1387
1387
|
}
|
1388
|
-
function
|
1389
|
-
(a == null ? void 0 : a.networkType) == "cosmos" &&
|
1388
|
+
function v1(a) {
|
1389
|
+
(a == null ? void 0 : a.networkType) == "cosmos" && C1(a.chainInfo), R(""), ke({ error: "" }), o == "from" ? w({ ...a }) : o == "to" && T({ ...a });
|
1390
1390
|
}
|
1391
|
-
function
|
1392
|
-
|
1391
|
+
function k1(a) {
|
1392
|
+
ke({ error: "" }), R(""), o == "from" ? A({ ...a }) : o == "to" && L({ ...a });
|
1393
1393
|
}
|
1394
1394
|
function He() {
|
1395
1395
|
b(!l);
|
@@ -1400,23 +1400,23 @@ function Pt({ handleShowWallet: t, showWallet: n, fetchChains: s }) {
|
|
1400
1400
|
function Re(a) {
|
1401
1401
|
m(a);
|
1402
1402
|
}
|
1403
|
-
function
|
1404
|
-
|
1403
|
+
function N1(a) {
|
1404
|
+
Le(a == null ? void 0 : a.provider), xe(a);
|
1405
1405
|
}
|
1406
|
-
function
|
1406
|
+
function T1() {
|
1407
1407
|
setTimeout(() => {
|
1408
1408
|
Re(!0), we.refetch();
|
1409
1409
|
}, 1e3);
|
1410
1410
|
}
|
1411
|
-
function
|
1411
|
+
function I1() {
|
1412
1412
|
R("");
|
1413
1413
|
}
|
1414
|
-
function
|
1415
|
-
_e.fetchTokens(a.chainId,
|
1416
|
-
var
|
1417
|
-
(We = (
|
1414
|
+
function B1(a, ue, he) {
|
1415
|
+
_e.fetchTokens(a.chainId, he).then((me) => me.json()).then((me) => {
|
1416
|
+
var ye, We;
|
1417
|
+
(We = (ye = me.data) == null ? void 0 : ye[a.chainId]) == null || We.forEach((De) => {
|
1418
1418
|
ue({
|
1419
|
-
...
|
1419
|
+
...Z,
|
1420
1420
|
coin: De.symbol,
|
1421
1421
|
...De,
|
1422
1422
|
availBal: ""
|
@@ -1424,44 +1424,45 @@ function Pt({ handleShowWallet: t, showWallet: n, fetchChains: s }) {
|
|
1424
1424
|
});
|
1425
1425
|
});
|
1426
1426
|
}
|
1427
|
-
function
|
1428
|
-
R(""), w(P), A($), T(C), L(
|
1427
|
+
function A1() {
|
1428
|
+
R(""), w(P), A($), T(C), L(Z), C.networkType !== P.networkType && je("");
|
1429
1429
|
}
|
1430
1430
|
j(() => {
|
1431
|
-
O.isHistory && f === "" && (
|
1431
|
+
O.isHistory && f === "" && (z({ allSteps: { steps: null, currentStep: 0 }, stepData: {} }), Ne(!1));
|
1432
1432
|
}, [O]);
|
1433
|
-
function
|
1433
|
+
function j1(a) {
|
1434
1434
|
var ue;
|
1435
1435
|
if (a && s.isSuccess && a !== (P == null ? void 0 : P.networkType) && a !== (C == null ? void 0 : C.networkType)) {
|
1436
|
-
let
|
1436
|
+
let he = pe.keyBy(s.data.data, "chainId"), me = a == "evm" ? "8453" : a == "sol" ? "sol" : a == "sui" ? "1" : a == "btc" ? "btc" : a == "tron" ? "tron" : "cosmoshub-4", ye = a == "evm" ? "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" : a == "sol" ? "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263" : a == "sui" ? "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" : a == "btc" ? "bitcoin" : a == "tron" ? "0000000000000000000000000000000000" : "uatom";
|
1437
1437
|
w({
|
1438
|
-
...
|
1439
|
-
chain: ((ue =
|
1440
|
-
}),
|
1438
|
+
...he[me],
|
1439
|
+
chain: ((ue = he[me]) == null ? void 0 : ue.name) || ""
|
1440
|
+
}), B1(he[me], A, ye);
|
1441
1441
|
} else
|
1442
1442
|
return;
|
1443
1443
|
}
|
1444
|
-
return /* @__PURE__ */ e(
|
1445
|
-
/* @__PURE__ */ e(
|
1444
|
+
return /* @__PURE__ */ e(e1, { fallback: /* @__PURE__ */ e(M1, {}), children: /* @__PURE__ */ e("div", { children: n ? /* @__PURE__ */ e(jt, { connectWalletField: M, handleShowWallet: t, handleRecentSelectedWallet: j1 }) : !d && !((Ye = O == null ? void 0 : O.routeId) != null && Ye.length) ? l ? /* @__PURE__ */ e(Ft, { routes: X, handleShowAllRoutes: He, handleRoutesData: N1, convertVal: ($ == null ? void 0 : $.lastPrice) || 0, amount: N }) : o ? /* @__PURE__ */ e(nt, { chainData: o == "from" ? C : P, coinData: o == "from" ? Z : $, setChainData: v1, setCoinData: k1, handleReset: y1, showExchangeList: o, fetchBalance: we, fetchChains: s }) : /* @__PURE__ */ p(J, { children: [
|
1445
|
+
/* @__PURE__ */ e(mt, {}),
|
1446
1446
|
/* @__PURE__ */ p("div", { className: "bw-flex bw-relative bw-items-center bw-gap-x-2 bw-justify-between", children: [
|
1447
|
-
/* @__PURE__ */ e(
|
1448
|
-
/* @__PURE__ */ e(
|
1449
|
-
/* @__PURE__ */ e(
|
1447
|
+
/* @__PURE__ */ e(Tt, { handleSwap: A1 }),
|
1448
|
+
/* @__PURE__ */ e(a1, { chainData: C, show: "from", handleShowWallet: t, setShowExchangeList: r, setConnectWalletField: F, coinData: Z }),
|
1449
|
+
/* @__PURE__ */ e(a1, { chainData: P, show: "to", handleShowWallet: t, setShowExchangeList: r, setConnectWalletField: F, coinData: $ })
|
1450
1450
|
] }),
|
1451
|
-
/* @__PURE__ */ e(
|
1452
|
-
/* @__PURE__ */ e(
|
1453
|
-
/* @__PURE__ */ e("
|
1454
|
-
/* @__PURE__ */ e(
|
1455
|
-
/* @__PURE__ */ e(
|
1456
|
-
|
1451
|
+
/* @__PURE__ */ e(It, { amount: N, setAmount: R, fetchBalance: we, getCoinBalance: _, isBalanceLoading: te }),
|
1452
|
+
/* @__PURE__ */ e(e1, { fallback: /* @__PURE__ */ e("div", { children: "Loading..." }), children: /* @__PURE__ */ e(Mt, {}) }),
|
1453
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(Pt, { routes: X, handleShowAllRoutes: He, routesData: Q, amount: N, isRoutesEnabled: k, price: ((Q == null ? void 0 : Q.outputAmountDisplay) || "") * (($ == null ? void 0 : $.lastPrice) || 0) }) }),
|
1454
|
+
/* @__PURE__ */ e("p", { className: "bw-text-xs bw-font-normal bw-py-1 bw-text-text-redtext", children: typeof (be == null ? void 0 : be.error) == "string" ? be == null ? void 0 : be.error : "" }),
|
1455
|
+
/* @__PURE__ */ e(Bt, { amount: k, routes: X, routesData: Q, quoteTimer: Pe }),
|
1456
|
+
/* @__PURE__ */ e(At, { routesData: Q, handleSuccess: Re, routes: X, fetchBalancePrev: we, amount: N, isAmountTyped: k, handleShowWallet: t, setConnectWalletField: F, handleConfirmClose: Ge, balanceSol: u, getCoinBalance: _ })
|
1457
|
+
] }) : /* @__PURE__ */ e(Lt, { handleConfirmClose: Ge, amount: N, routesData: Q, resetAmount: I1, routes: X, handleStopRoute: Ne, resetBalance: T1 }) }) });
|
1457
1458
|
}
|
1458
|
-
function
|
1459
|
-
const [n, s] = v(!1), { isConnected: o } =
|
1459
|
+
function Ot({ fetchChains: t }) {
|
1460
|
+
const [n, s] = v(!1), { isConnected: o } = fe();
|
1460
1461
|
function r(l) {
|
1461
1462
|
s(!n);
|
1462
1463
|
}
|
1463
1464
|
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
1464
|
-
|
1465
|
+
Et,
|
1465
1466
|
{
|
1466
1467
|
handleShowWallet: r,
|
1467
1468
|
fetchChains: t,
|
@@ -1469,15 +1470,15 @@ function Ft({ fetchChains: t }) {
|
|
1469
1470
|
}
|
1470
1471
|
) });
|
1471
1472
|
}
|
1472
|
-
const
|
1473
|
+
const Ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1473
1474
|
__proto__: null,
|
1474
|
-
default:
|
1475
|
+
default: Ot
|
1475
1476
|
}, Symbol.toStringTag, { value: "Module" }));
|
1476
1477
|
export {
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1478
|
+
ft as c,
|
1479
|
+
vt as g,
|
1480
|
+
Ut as i,
|
1481
|
+
w1 as p,
|
1482
|
+
m1 as r,
|
1483
|
+
W1 as u
|
1483
1484
|
};
|