@blockend/widget 1.0.49-beta.5 → 1.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/{AllRoutes-LD5p98zn.js → AllRoutes-CV0ZvXKH.js} +9 -9
  2. package/dist/{Box-Cs3JEIFG.js → Box-Cb39MKJA.js} +9 -9
  3. package/dist/EstGas-DScDuqvp.js +14426 -0
  4. package/dist/{Grow-BvHTdetx.js → Grow-CyOgpnIU.js} +2 -2
  5. package/dist/{InputComp-COwG8q-J.js → InputComp-B5PYzgiO.js} +3 -3
  6. package/dist/{LoadRoute-DsdVO6Oo.js → LoadRoute-DVPHaKWi.js} +4 -4
  7. package/dist/{QuotesProgress-B8bDI4r6.js → QuotesProgress-ClcaHGJM.js} +1 -1
  8. package/dist/{SwapAsset-Ddh66LWB.js → SwapAsset-Blw4SFxU.js} +1 -1
  9. package/dist/{Tooltip-hBxzXSU3.js → Tooltip-C0P7i2vF.js} +15 -15
  10. package/dist/TxnButton-CHHh05qr.js +223 -0
  11. package/dist/{add-DGq3NqFo.js → add-B1LcVGSW.js} +1 -1
  12. package/dist/{all-wallets-CzWn7-6X.js → all-wallets-BeJrQ3-B.js} +1 -1
  13. package/dist/{app-store-BGFzY2oe.js → app-store-CaDVWZZh.js} +1 -1
  14. package/dist/{apple-D5zFxCbx.js → apple-CkGFfDmj.js} +1 -1
  15. package/dist/{arrow-bottom-circle-CskusJTk.js → arrow-bottom-circle-KdHp0Ttj.js} +1 -1
  16. package/dist/{arrow-bottom-D25Ef730.js → arrow-bottom-riUHz5wW.js} +1 -1
  17. package/dist/{arrow-left-Bn-AuY99.js → arrow-left-4uZ_FCKk.js} +1 -1
  18. package/dist/{arrow-right-DJQCv_ak.js → arrow-right-CQx64HKf.js} +1 -1
  19. package/dist/{arrow-top-Do8qEhLT.js → arrow-top-DCNA0fLu.js} +1 -1
  20. package/dist/{bank-CBeLsi0M.js → bank-BnOJ4hFp.js} +1 -1
  21. package/dist/{basic-DLf5LiFg.js → basic-BwxnVi-O.js} +3 -3
  22. package/dist/{browser-DVamy-m2.js → browser-B5n8jjez.js} +1 -1
  23. package/dist/{card-tFF7X_nt.js → card-CyQg9FUR.js} +1 -1
  24. package/dist/{ccip-C4idlAuS.js → ccip-BJVsdO9f.js} +14 -14
  25. package/dist/{checkmark-DkVW1LY2.js → checkmark-TXxWxJ06.js} +1 -1
  26. package/dist/{checkmark-bold-BbQos6bO.js → checkmark-bold-D0241gVT.js} +1 -1
  27. package/dist/{chevron-bottom-DokKka1d.js → chevron-bottom-BUgj0Jms.js} +1 -1
  28. package/dist/{chevron-left-BPwuTnF_.js → chevron-left-CMc-uR1E.js} +1 -1
  29. package/dist/{chevron-right-Djdm9Vly.js → chevron-right-DgxFd0Bj.js} +1 -1
  30. package/dist/{chevron-top-DviiO5xj.js → chevron-top-DiIar6gP.js} +1 -1
  31. package/dist/{chrome-store-BFukaYHs.js → chrome-store-B8MGsjNr.js} +1 -1
  32. package/dist/{clock-gPhvJPEh.js → clock-Cyg_My5N.js} +1 -1
  33. package/dist/{close-CWK6JCCg.js → close-RY0sGjCf.js} +1 -1
  34. package/dist/{coinPlaceholder-DuZ2QujM.js → coinPlaceholder-DE_qwsbW.js} +1 -1
  35. package/dist/{compass-DlrcJ8Hk.js → compass-CEHhCP6E.js} +1 -1
  36. package/dist/{copy-CNAncK5I.js → copy-FM62Yyrj.js} +1 -1
  37. package/dist/{core-BkrnmkI7.js → core-BhR-bSA_.js} +16 -17
  38. package/dist/{cursor-BknQSZIa.js → cursor-DladmQh5.js} +1 -1
  39. package/dist/{cursor-transparent-D7K-weum.js → cursor-transparent-D0WNWO9Y.js} +1 -1
  40. package/dist/{desktop-Dvki1QtU.js → desktop-B6eJupyA.js} +1 -1
  41. package/dist/{disconnect-QbJ6g-Q9.js → disconnect-VPpMScfC.js} +1 -1
  42. package/dist/{discord-BtkOmfcK.js → discord-wBtYxM-t.js} +1 -1
  43. package/dist/{down-DRC2u-nt.js → down-Owe76_31.js} +2 -2
  44. package/dist/{etherscan-C4RKkVrP.js → etherscan-9nLZ-l75.js} +1 -1
  45. package/dist/{exclamation-triangle-CEoAdk7x.js → exclamation-triangle-BWl_FP8O.js} +1 -1
  46. package/dist/{extension-DkOomXUg.js → extension-BzBM3WFk.js} +1 -1
  47. package/dist/{external-link-D9HfOXel.js → external-link-Dyl12aJV.js} +1 -1
  48. package/dist/{facebook-zQmBHowA.js → facebook-CBkAbn5g.js} +1 -1
  49. package/dist/{farcaster-Cfy-sjqY.js → farcaster-BRpuoVay.js} +1 -1
  50. package/dist/{filters-Cq1K6QWb.js → filters-B7NeWYDv.js} +1 -1
  51. package/dist/{getChainIds-Btq6EjyX.js → getChainIds-3ucdX-1p.js} +2 -2
  52. package/dist/getCosmosAddress-COhqxzQU.js +8398 -0
  53. package/dist/{github-gNR-tm3O.js → github-BkQ92Psg.js} +1 -1
  54. package/dist/{google-rmnuGsrL.js → google-D-_oWzT6.js} +1 -1
  55. package/dist/{hamburger-CEQO6OZs.js → hamburger-BumvcHR4.js} +5 -5
  56. package/dist/{help-circle-Cj4bjfia.js → help-circle-YBo375ZL.js} +1 -1
  57. package/dist/{id-nb5m-NKY.js → id-125Dr2Fp.js} +1 -1
  58. package/dist/{image-BlK2k80L.js → image-KqH_HXHv.js} +1 -1
  59. package/dist/{index-CZQdiy7b.js → index-1-e5pJ-0.js} +2 -2
  60. package/dist/{index-salSLcoU.js → index-Bpdql1-8.js} +1 -1
  61. package/dist/{index-pieshoDv.js → index-CEXnASRZ.js} +466 -451
  62. package/dist/{index-7R8NiD42.js → index-CkwDOdMt.js} +1 -1
  63. package/dist/{index-D5aVEHZL.js → index-DJxdLFXV.js} +51 -51
  64. package/dist/index-DRUdCBxf.js +3189 -0
  65. package/dist/{index-7iRnvPpN.js → index-Drhw6mFH.js} +8 -7
  66. package/dist/{index-D0tb6mUR.js → index-DvuINyOl.js} +11 -11
  67. package/dist/{index-CbycATvf.js → index-O7aWWjZs.js} +78 -78
  68. package/dist/index-aoGlnTj5.js +70013 -0
  69. package/dist/{index-1OzJ9Z6-.js → index-uIBPDdlb.js} +10 -10
  70. package/dist/{index.es-CJ-ZznBF.js → index.es-C5JaVECC.js} +3032 -3244
  71. package/dist/{index.es-Ce_QYzsk.js → index.es-Dg8PGfqY.js} +1 -1
  72. package/dist/index.es.js +1 -1
  73. package/dist/{info-6RBhKgcd.js → info-D7JbYWOR.js} +1 -1
  74. package/dist/{info-circle-BlIbWe25.js → info-circle-wQJP08na.js} +1 -1
  75. package/dist/{lightbulb-CS3_wKY8.js → lightbulb-DvxJHkNC.js} +1 -1
  76. package/dist/{mail-CRsD8jAA.js → mail-BdTr8Qhk.js} +1 -1
  77. package/dist/{mobile-DMLTKouh.js → mobile-BYMl9NU4.js} +1 -1
  78. package/dist/{more-uoTJ3kvy.js → more-_GkH6PVz.js} +1 -1
  79. package/dist/{network-placeholder-D-XL3hqx.js → network-placeholder-RkFane_-.js} +1 -1
  80. package/dist/{nftPlaceholder-CiYWPSAY.js → nftPlaceholder-brLois7k.js} +1 -1
  81. package/dist/{off-B79emGaW.js → off-BvoRAKQk.js} +1 -1
  82. package/dist/{play-store-B828L964.js → play-store-PAYBmMKL.js} +1 -1
  83. package/dist/{plus-BRVCC9lV.js → plus-C7ndQrVG.js} +1 -1
  84. package/dist/{qr-code-qp9DeEO9.js → qr-code-BzVDMXG9.js} +1 -1
  85. package/dist/{recycle-horizontal-DoDvFScD.js → recycle-horizontal-CcSjuPBD.js} +1 -1
  86. package/dist/{refresh-BuegBzBd.js → refresh-EnEB4S0q.js} +1 -1
  87. package/dist/{reown-logo-BrUAyTxC.js → reown-logo-D-m3ZlCn.js} +1 -1
  88. package/dist/{search-CzpyG7ky.js → search-rK2TO8oW.js} +1 -1
  89. package/dist/{send-BHMxC1xj.js → send-ewC_Dr5a.js} +1 -1
  90. package/dist/{swapHorizontal-Bq8mR1QZ.js → swapHorizontal-D4_CLnQ1.js} +1 -1
  91. package/dist/{swapHorizontalBold-2ueiC4L9.js → swapHorizontalBold-BxJSvW__.js} +1 -1
  92. package/dist/{swapHorizontalMedium-9jh3zunE.js → swapHorizontalMedium-BC6YI70K.js} +1 -1
  93. package/dist/{swapHorizontalRoundedBold-BIk7kp2S.js → swapHorizontalRoundedBold-BvJ7MjAm.js} +1 -1
  94. package/dist/{swapVertical-DM_T3EzD.js → swapVertical-uQyY1dbd.js} +1 -1
  95. package/dist/{telegram-CbeDajqU.js → telegram-Dzfv7CZN.js} +1 -1
  96. package/dist/{three-dots-DUntIedp.js → three-dots-O3uLZLkz.js} +1 -1
  97. package/dist/{twitch-DIXNVK7h.js → twitch-CUtrbmL-.js} +1 -1
  98. package/dist/{twitterIcon-nHRKKmzg.js → twitterIcon-DZMQ8Bmn.js} +1 -1
  99. package/dist/{unsupportedProp-BAk0ueJt.js → unsupportedProp-Dh57ZITi.js} +1 -1
  100. package/dist/useRegisterError-Bp8xpLyh.js +8912 -0
  101. package/dist/{verify-CbyVHS7l.js → verify-1kJPzvCP.js} +1 -1
  102. package/dist/{verify-filled-QZDBE0oP.js → verify-filled-D6xGY8A5.js} +1 -1
  103. package/dist/{w3m-modal-Bp3nI0EC.js → w3m-modal-slf0WTO2.js} +2 -2
  104. package/dist/{wallet-DVjsV39Q.js → wallet-CI9ZKXI5.js} +1 -1
  105. package/dist/{wallet-placeholder-BgrGGLNk.js → wallet-placeholder-DHsdhsL5.js} +1 -1
  106. package/dist/{walletconnect-zriuFVFg.js → walletconnect-YEeO3478.js} +1 -1
  107. package/dist/{warning-circle-CpWwL8_f.js → warning-circle-CnXCXT-G.js} +1 -1
  108. package/dist/{x-DN0-dY3F.js → x-ChzZn6EY.js} +1 -1
  109. package/package.json +5 -2
  110. package/dist/EstGas-H-UdwS1f.js +0 -12659
  111. package/dist/TxnButton-jGgemD8y.js +0 -205
  112. package/dist/getCosmosAddress-Bu-V7Ot0.js +0 -9565
  113. package/dist/index-DTish3yr.js +0 -1014
  114. package/dist/index-Fv4UV6Sc.js +0 -30707
  115. package/dist/index-vM1noC-w.js +0 -3136
  116. package/dist/useRegisterError-tq4Tke9I.js +0 -8812
@@ -1,205 +0,0 @@
1
- import { jsx as N } from "react/jsx-runtime";
2
- import { useState as V, useEffect as P } from "react";
3
- import { useSwitchNetwork as Le, useDynamicContext as je, useIsLoggedIn as Ae } from "@dynamic-labs/sdk-react-core";
4
- import { a as _, u as h, aA as ve, aB as ze } from "./index-Fv4UV6Sc.js";
5
- import { s as f } from "./WidgetForm.module-QHJ0-m5f.js";
6
- import { useAccount as Me, useConfig as Oe, useSwitchChain as Re, useBalance as Ve } from "wagmi";
7
- import { u as we, d as Pe, c as _e, C as be } from "./useRegisterError-tq4Tke9I.js";
8
- import "./getCosmosAddress-Bu-V7Ot0.js";
9
- import { v as qe } from "./validError-CDlJpg_f.js";
10
- import { u as Qe, g as He, p as Je } from "./index-pieshoDv.js";
11
- function Ke(n) {
12
- const { wallet: x, address: p } = _(), [$, G] = V(0);
13
- async function m() {
14
- const j = await window.tronWeb.trx.getBalance(p);
15
- G(j / Math.pow(10, 6));
16
- }
17
- return P(() => {
18
- p && (n == null ? void 0 : n.networkType) === "tron" && m();
19
- }, [p, n == null ? void 0 : n.networkType]), { tronBal: $ };
20
- }
21
- function L(n) {
22
- if (n.key.toLowerCase() === "backpacksol")
23
- return !0;
24
- }
25
- function is({ routesData: n, routes: x, amount: p, isAmountTyped: $, handleShowWallet: G, setConnectWalletField: m, handleConfirmClose: j, balanceSol: E, getCoinBalance: pe, handleSuccess: ue }) {
26
- var Z, W, k, D, C, ee, se, te, re, ce, ne, ie, de;
27
- const l = h((t) => t.gradient), I = h((t) => t.configuration), e = h((t) => t.fromChain), i = h((t) => t.fromCoin), r = h((t) => t.toChain), o = h((t) => t.toCoin), { isConnected: F, address: q, chain: T } = Me(), { address: Q, isConnected: Ue } = _(), ge = Oe(), ye = Le(), { getBothWalletConnection: xe, getConnectWallet: Ie } = we({
28
- chainData: e
29
- }), { connected: H, address: J, disconnect: Xe } = _(), A = h((t) => t.toDisconnect), d = h((t) => t.customWallet), { getWallet: Te } = we({ chainData: e }), he = Ie(e, r), [v, me] = V("101"), { tronBal: z } = Ke(e), { cosmosBalance: K } = Qe(), M = ((Z = e.chain) == null ? void 0 : Z.length) && ((W = r.chain) == null ? void 0 : W.length), O = ((k = i.address) == null ? void 0 : k.length) && ((D = o.address) == null ? void 0 : D.length), Ne = Pe(), fe = ve(), { switchChain: Ye, switchChainAsync: Be, isPending: Ge } = Re({
30
- chainId: Number((e == null ? void 0 : e.chainId) || "0"),
31
- config: ge,
32
- throwForSwitchChainNotSupported: !0,
33
- onError(t) {
34
- qe(t.message) && Ne({ module: "wallet-error-switch", error: t.message });
35
- }
36
- }), u = Ve({
37
- address: q,
38
- token: "",
39
- chainId: Number((e == null ? void 0 : e.chainId) || 0),
40
- enabled: (e == null ? void 0 : e.networkType) == "evm"
41
- }), U = _e(pe || 0, 11), [w, a] = V({
42
- text: "",
43
- isGradient: !1,
44
- color: "bw-bg-border-primary"
45
- });
46
- async function Se() {
47
- if ((e == null ? void 0 : e.networkType) === "evm" && Number((e == null ? void 0 : e.chainId) || "0") !== (T == null ? void 0 : T.id))
48
- try {
49
- await Be({ chainId: Number((e == null ? void 0 : e.chainId) || "0") });
50
- } catch {
51
- }
52
- else if ((e == null ? void 0 : e.networkType) === "sol" && v !== ((e == null ? void 0 : e.chainId) == "eclipse-svm" ? "201" : "101"))
53
- try {
54
- let t = await ye({ wallet: b, network: e.chainId == "eclipse-svm" ? "201" : "101" });
55
- X();
56
- } catch {
57
- }
58
- else
59
- fe.emit(ze.TransactionStarted, {
60
- ...n
61
- }), S && (ue(!1), j());
62
- }
63
- const { primaryWallet: b } = je(), R = Ae(), S = (e == null ? void 0 : e.networkType) === r.networkType ? !!((ee = (C = Te(e)) == null ? void 0 : C.address) != null && ee.length) : xe(e == null ? void 0 : e.networkType, (d == null ? void 0 : d.length) > 30 ? "customWallet" : r == null ? void 0 : r.networkType), X = async () => {
64
- if (b)
65
- try {
66
- const t = await b.getNetwork();
67
- me(t);
68
- } catch {
69
- }
70
- else
71
- return;
72
- };
73
- P(() => {
74
- X();
75
- }, [b]);
76
- function Y(t, g) {
77
- let y = t / Math.pow(10, g);
78
- return y < 1e-6 ? y.toFixed(20) : y;
79
- }
80
- function $e() {
81
- var t;
82
- return Number(((t = u == null ? void 0 : u.data) == null ? void 0 : t.formatted) || 0);
83
- }
84
- function Ee(t) {
85
- var g;
86
- return Number(((g = K[Je(t.address)]) == null ? void 0 : g.amount) || 0) / Math.pow(10, t.decimals);
87
- }
88
- function Fe() {
89
- var ae;
90
- let t = {};
91
- function g(s, c) {
92
- let B = Object.keys(t);
93
- t[s == null ? void 0 : s.chainId] ? (t[s == null ? void 0 : s.chainId].amountInToken += c.amountInToken, t[s == null ? void 0 : s.chainId].gas += Y(c.amountInToken, s == null ? void 0 : s.decimals)) : t[s == null ? void 0 : s.chainId] = {
94
- amountInToken: c.amountInToken,
95
- gas: Y(c.amountInToken, s == null ? void 0 : s.decimals),
96
- token: s,
97
- nativeBal: (d == null ? void 0 : d.length) > 30 && !A && (s == null ? void 0 : s.chainId) == (r == null ? void 0 : r.chainId) && (r == null ? void 0 : r.chainId) !== (e == null ? void 0 : e.chainId) ? 0 : (s == null ? void 0 : s.networkType) == "sol" ? E : (s == null ? void 0 : s.networkType) == "tron" ? z : (s == null ? void 0 : s.networkType) == "cosmos" ? Ee(s) : (s == null ? void 0 : s.networkType) == "tron" ? He(Q) : $e(),
98
- isFromChain: (e == null ? void 0 : e.chainId) === (s == null ? void 0 : s.chainId.toString()),
99
- order: (e == null ? void 0 : e.chainId) === (s == null ? void 0 : s.chainId) ? 1 : (r == null ? void 0 : r.chainId) === (s == null ? void 0 : s.chainId) ? 2 : B.length > 2 ? 3 : 2
100
- };
101
- }
102
- (ae = n == null ? void 0 : n.fee) == null || ae.forEach((s) => {
103
- const { token: c } = s;
104
- s.source.toLowerCase() == "from_source_wallet" && g(c, s);
105
- });
106
- let y = U;
107
- if (Number(p) > Number(y))
108
- a({
109
- text: `Insufficient Balance ${i.coin || ""}`,
110
- isGradient: !1,
111
- color: "bw-bg-border-primary"
112
- });
113
- else if ((u != null && u.isLoading || u.isFetching) && (e == null ? void 0 : e.networkType) === "evm" || (typeof E > "u" || E === null) && (e == null ? void 0 : e.networkType) === "sol" || !z && (e == null ? void 0 : e.networkType) === "tron")
114
- a({
115
- text: "Fetching Balance..",
116
- isGradient: !1,
117
- color: "bw-bg-border-primary"
118
- });
119
- else {
120
- let s = Object.values(t).sort((c, B) => c.order - B.order);
121
- s.some((c) => {
122
- var B, le, oe;
123
- return c != null && c.isFromChain && Number(p) <= Number(y) && Number(c.nativeBal) - Number(p) < c.gas && (i != null && i.isNative) || Number(p) <= Number(y) && Number(c.nativeBal) < c.gas && !(i != null && i.isNative) && (c != null && c.isFromChain) ? (a({
124
- text: `Insufficient ${((B = c == null ? void 0 : c.token) == null ? void 0 : B.symbol) || ""} for gas on ${c.token.blockchain}`,
125
- isGradient: !1,
126
- color: "bw-bg-border-primary"
127
- }), !0) : c.nativeBal < c.gas && !((d == null ? void 0 : d.length) > 30 && ((le = c == null ? void 0 : c.token) == null ? void 0 : le.chainId) == (r == null ? void 0 : r.chainId)) ? (a({
128
- text: `Insufficient ${((oe = c == null ? void 0 : c.token) == null ? void 0 : oe.symbol) || ""} for gas on ${c.token.blockchain}`,
129
- isGradient: !1,
130
- color: "bw-bg-border-primary"
131
- }), !0) : (a({
132
- text: "",
133
- isGradient: !0,
134
- color: l || f.gradientbutton
135
- }), !0);
136
- }), s.length == 0 && (n != null && n.gasless || (n == null ? void 0 : n.provider) == "meson") && a({
137
- text: "",
138
- isGradient: !0,
139
- color: l || f.gradientbutton
140
- });
141
- }
142
- }
143
- return P(() => {
144
- var t, g, y;
145
- !i.coin.length || !(o != null && o.coin.length) ? a({
146
- text: "Select Token",
147
- isGradient: !0,
148
- color: l || f.gradientbutton
149
- }) : S ? typeof p < "u" && Number(p || 0) <= 0 ? a({
150
- text: "Enter Amount",
151
- isGradient: !1,
152
- color: "bw-bg-border-primary"
153
- }) : x.isFetching || !$ ? a({
154
- text: "Loading Routes...",
155
- isGradient: !1,
156
- color: "bw-bg-border-primary"
157
- }) : e.chainId === "eclipse-svm" && !L(b) ? a({
158
- text: `Select ${e.name} wallet`,
159
- isGradient: !0,
160
- color: l || f.gradientbutton
161
- }) : r.chainId === "eclipse-svm" && e.chainId !== "eclipse-svm" && !L(b) && d.length < 30 ? a({
162
- text: "Enter recipient wallet address",
163
- isGradient: !0,
164
- color: l || f.gradientbutton
165
- }) : (i == null ? void 0 : i.address) == (o == null ? void 0 : o.address) && (e == null ? void 0 : e.chainId) == (r == null ? void 0 : r.chainId) && !(d != null && d.length) || (e == null ? void 0 : e.networkType) == "evm" && q === d && (i == null ? void 0 : i.address) == (o == null ? void 0 : o.address) || (e == null ? void 0 : e.networkType) == "sol" && (b == null ? void 0 : b.address) === d && (i == null ? void 0 : i.address) == (o == null ? void 0 : o.address) ? a({
166
- text: "From and To asset can not be the same!",
167
- isGradient: !1,
168
- color: "bw-bg-border-primary"
169
- }) : (y = (g = (t = x == null ? void 0 : x.data) == null ? void 0 : t.data) == null ? void 0 : g.quotes) != null && y.length ? x != null && x.error ? a({
170
- text: "Failed to fetch Quotes",
171
- isGradient: !1,
172
- color: "bw-bg-border-primary"
173
- }) : F && Number((e == null ? void 0 : e.chainId) || "0") !== (T == null ? void 0 : T.id) && (e == null ? void 0 : e.networkType) === "evm" || R && ((e == null ? void 0 : e.chainId) === "eclipse-svm" ? "201" : "101") !== v && (e == null ? void 0 : e.networkType) === "sol" ? a({
174
- text: `Switch Chain to ${e.chain}`,
175
- isGradient: !0,
176
- color: l || f.gradientbutton
177
- }) : Fe() : a({
178
- text: "No Routes Found",
179
- isGradient: !1,
180
- color: "bw-bg-border-primary"
181
- }) : a({
182
- text: "",
183
- isGradient: !0,
184
- color: l || f.gradientbutton
185
- });
186
- }, [v, b, i, o, p, e, r, (se = u.data) == null ? void 0 : se.formatted, n, u.isFetching, u.isLoading, F, U, S, x.isFetching, T == null ? void 0 : T.id, $, z, E, d, K, Q]), `${(te = e.chain) == null ? void 0 : te.toLowerCase()}`, `${(re = e.chain) == null ? void 0 : re.toLowerCase()}`, /* @__PURE__ */ N(
187
- "button",
188
- {
189
- style: w != null && w.isGradient && M && O ? {
190
- ...I == null ? void 0 : I.gradientStyle,
191
- boxShadow: I && I.customTheme && ((ne = (ce = I.customTheme) == null ? void 0 : ce.shadow) == null ? void 0 : ne.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
192
- } : {
193
- boxShadow: I && I.customTheme && ((de = (ie = I.customTheme) == null ? void 0 : ie.shadow) == null ? void 0 : de.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
194
- },
195
- className: `bw-w-full bw-rounded-sm bw-h-[52px] ${w != null && w.isGradient ? "bw-p-[3px]" : "bw-p-[1px]"} bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-70 ${M && O && w.color} ${w.text.length > 29 ? "bw-text-xl" : "bw-text-2xl"} ${w != null && w.isGradient ? "bw-font-bold bw-text-text-primary" : "bw-font-normal bw-text-text-secondary"}`,
196
- onClick: () => {
197
- S || (G(!0), ((e == null ? void 0 : e.networkType) !== "evm" && F || (e == null ? void 0 : e.networkType) !== "sol" && R && b !== null || (e == null ? void 0 : e.networkType) !== "tron" && H && J) && !A ? m("from") : F && (r == null ? void 0 : r.networkType) !== "evm" || R && (r == null ? void 0 : r.networkType) !== "sol" || (r == null ? void 0 : r.networkType) !== "tron" && H && J || A ? m("to") : m("from")), e.chainId === "eclipse-svm" && !L(b) ? (G(!0), m("from")) : r.chainId === "eclipse-svm" && e.chainId !== "eclipse-svm" && !L(b) && d.length < 30 ? (G(!0), m("to")) : Se();
198
- },
199
- children: /* @__PURE__ */ N("div", { className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full", children: /* @__PURE__ */ N("p", { className: "bw-relative bw-z-20", children: M && O ? Ge ? /* @__PURE__ */ N("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ N(be, { size: 22, thickness: 5, color: "inherit" }) }) : S ? w.text.length ? w.text : "Start Transaction" : `Connect ${he} Wallet` : /* @__PURE__ */ N("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ N(be, { size: 22, thickness: 5, color: "inherit" }) }) }) })
200
- }
201
- );
202
- }
203
- export {
204
- is as default
205
- };